IN THIS BREAKDOWN · 10 SECTIONS
You can read 17% of this breakdown.
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.
Research notes: the problem, approach and results
Phi-4-Mini's average over 22 language benchmarks; Llama 3.1 8B scored 63.9 and Qwen2.5 7B 67.9
word error rate on OpenASR for Phi-4-Multimodal, against 7.44 for Whisper V3 and 15.76 for GPT-4o
KV cache per token in bf16 after grouped-query attention, so a 128K-token session needs 16 GiB, twice the weights
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.
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.
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.
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.
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
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
Language, code, vision and speech results, the reasoning recipe and three misreadings
Free account - 04How it works
The language model, mixture of LoRAs, the multimodal training stages and the reasoning recipe
Premium - 05The numbers that matter
Language, coding, vision, speech and reasoning tables with the models they were compared against
Premium - 06Try it yourself
Check the report's arithmetic, see how coarse the reasoning benchmarks are, and size memory
Premium - 07Where it breaks
Spoken-query weakness, small reasoning gaps, untested long audio, comparisons and the report's slips
Premium - 08Using it on a deployment
Fitting a small multimodal model to the customer's device and tasks, and where to route around it
Premium - 09Interview angles
Five questions this report prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
