GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAs

Microsoft's 3.8B model plus a multimodal version that adds vision and speech as LoRAs on a frozen base, so text quality is untouched. Leads OpenASR; weak at answering spoken questions.

Breakdown by FDE Interviews · 13 min read · Updated

About the original · 2025
AUTHORS
Microsoft
FROM
Microsoft
PUBLISHED
Mar 2025 · arXiv preprint
CITED BY
654Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 17% of this breakdown.

01

The paper in one minute

Phi-4-Mini is a 3.8B decoder-only language model: 32 layers, hidden size 3,072, grouped-query attention with 24 query heads sharing 8 key-value heads, a 200,064-token vocabulary with tied input and output embeddings, and 128K context through LongRoPE. It was trained on 5 trillion tokens, with a better quality classifier than its predecessor, more instruction-based math and code data and Phi-4's synthetic data, then post-trained with more function calling, summarization and instruction-following data.

Phi-4-Multimodal (5.6B) adds vision and speech without touching the language model. The base stays frozen. Vision gets a SigLIP-400M encoder and projector (440M parameters) and a vision LoRA (370M); audio gets a conformer encoder and projector (460M) and an audio LoRA of rank 320 (460M). The authors call this a mixture of LoRAs: modality-specific adapters selected by input type, so text-only requests run the original model unchanged.

Phi-4-Mini averages 64.9 over 22 language benchmarks and 49.0 over 9 coding benchmarks, above every 3B model compared and some 8B models. Phi-4-Multimodal leads the OpenASR leaderboard at the time with 6.14 word error rate and scores 72.0 averaged over 15 vision benchmarks. An experimental reasoning version, trained on about 60 billion tokens of chain-of-thought from larger models and then fine-tuned and preference-trained, reaches 50.0 on AIME 2024; it was not released with the others.

THE IDEA, VISUALLY
ONE FROZEN BASE, A LORA PER MODALITY Phi-4-Mini 3.8B 32 layers · hidden 3,072 24 query / 8 KV heads 200,064 vocab, tied · 128K vision: SigLIP-400M + projector (440M) LoRA-V 370M audio: conformer + projector (460M) LoRA-A 460M, rank 320 LoRAs load only for their modality; text-only use runs the untouched 3.8B model. Total 5.6B. WHAT INPUTS COST IN TOKENS audio: one token per 80 ms = 750 per minute 30 minutes = 22,500 tokens; 128K ≈ 2.8 hours images: 448 × 448 crops, up to 36 per image (SFT) KV cache, bf16: 128 KiB per token (GQA, 3x smaller) 128K tokens of KV = 16 GiB, twice the bf16 weights LANGUAGE AVERAGE, 22 BENCHMARKS (TABLE 7) Qwen2.5 7B 67.9 Gemma 2 9B 66.0 Phi-4-Mini 3.8B 64.9 Llama 3.1 8B 63.9 Phi-3.5-Mini 3.8B 62.3 Qwen2.5 3B 61.4 Llama 3.2 3B 58.0 axis starts at 50 REASONING VERSION, NOT RELEASED (TABLE 9) AIME MATH-500 GPQA-D Phi-4-Mini 10.0 71.8 36.9 + distill pre-training 30.0 82.9 42.6 + distill fine-tuning 43.3 89.3 48.3 + roll-out DPO 50.0 90.4 49.0 R1-Distill-Qwen-7B 53.3 91.4 49.5 AIME has 30 problems: 50.0 vs 53.3 is 15 vs 16 OPENASR WORD ERROR RATE, LOWER IS BETTER Phi-4-Multimodal 5.6B 6.14 Qwen2-Audio 8B 7.43 Whisper V3 1.5B 7.44 Gemini 2.0 Flash 8.56 GPT-4o 15.76
The language model stays frozen and each modality brings its own encoder and LoRA, so adding speech cannot degrade text. The arithmetic around it (750 audio tokens a minute, 128 KiB of KV cache per token) decides what fits on a device.
Research notes: the problem, approach and results
64.9

Phi-4-Mini's average over 22 language benchmarks; Llama 3.1 8B scored 63.9 and Qwen2.5 7B 67.9

6.14

word error rate on OpenASR for Phi-4-Multimodal, against 7.44 for Whisper V3 and 15.76 for GPT-4o

128 KiB

KV cache per token in bf16 after grouped-query attention, so a 128K-token session needs 16 GiB, twice the weights

THE PROBLEM

Small models for laptops and phones usually come as separate text, vision and speech models, and fine-tuning one base for several modalities tends to degrade its text ability. Customers want one compact model that does all three on their hardware without losing language quality.

THE IDEA

Train a 3.8B language model on 5 trillion tokens of filtered web and synthetic data, with a 200k vocabulary and grouped-query attention. Then freeze it and add modalities as a mixture of LoRAs: a vision encoder, projector and LoRA, and an audio encoder, projector and LoRA, routed by input type.

THE RESULT

Phi-4-Mini averages 64.9 over 22 language benchmarks, above Llama 3.1 8B (63.9) and below Qwen2.5 7B (67.9) and Gemma 2 9B (66.0). Phi-4-Multimodal (5.6B) has 6.14 word error rate on OpenASR, below Whisper V3's 7.44, while scoring 38.5 on spoken MMMLU questions against 72.3 for Gemini 2.0 Flash.

02

Why it matters to an FDE

Customers ask for models that run on their hardware: laptops for field staff, an air-gapped server, a phone app that cannot send audio to the cloud. Phi-4-Mini is a reference point for what fits in that envelope, about 7.6 GB of weights in bf16, and this report gives the numbers to plan around.

One model, three inputs, no text regression. Because the language model is frozen and modalities are LoRAs, a customer can deploy one checkpoint for chat, image questions and transcription. Text answers come from the same weights as Phi-4-Mini.

Speech is strong for transcription and translation, weaker for spoken questions. It leads OpenASR and beats Whisper V3 on all three ASR test sets reported. But when the question itself is spoken (spoken MMMLU) it scores 38.5 against 72.3 for Gemini 2.0 Flash; the report suggests it was tuned for speech understanding while Gemini and GPT-4o may be tuned for chat. Transcribe, then answer in text, if knowledge matters.

Long context is mostly a memory question. The KV cache is 128 KiB per token in bf16 even with grouped-query attention. A 32K-token session needs 4 GiB, and 128K needs 16 GiB, twice the weights. Audio arrives at 750 tokens a minute, so a 30-minute recording is 22,500 tokens before any prompt.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 149 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    Language, code, vision and speech results, the reasoning recipe and three misreadings

    Free account
  2. 04How it works

    The language model, mixture of LoRAs, the multimodal training stages and the reasoning recipe

    Premium
  3. 05The numbers that matter

    Language, coding, vision, speech and reasoning tables with the models they were compared against

    Premium
  4. 06Try it yourself

    Check the report's arithmetic, see how coarse the reasoning benchmarks are, and size memory

    Premium
  5. 07Where it breaks

    Spoken-query weakness, small reasoning gaps, untested long audio, comparisons and the report's slips

    Premium
  6. 08Using it on a deployment

    Fitting a small multimodal model to the customer's device and tasks, and where to route around it

    Premium
  7. 09Interview angles

    Five questions this report prepares you for, with answer hints

    Premium
Back to the paper library →