Phi-3: Small models and the textbook-quality data strategy
Phi-3-mini trains 3.8B parameters on 3.3T tokens using heavily filtered and synthetic textbook-quality data. It demonstrates local deployment potential while acknowledging capacity limits in factual knowledge.
On this page
Microsoft’s Phi-3 family centers on a 3.8B mini model trained on 3.3T tokens, with small and medium variants. Its data curriculum combines aggressively filtered web text and synthetic material targeting reasoning and foundational knowledge.
How it works
Training first emphasizes general knowledge and language, then shifts toward higher-quality reasoning data. Mini comes in 4K and 128K versions, followed by SFT and DPO. The report also demonstrates a 4-bit path to mobile deployment.
What the evidence shows
Phi-3-mini approaches larger models on several academic benchmarks, but the authors explicitly note limited factual storage and persistent hallucination risks. Comparisons still depend on prompts and sampling protocols.
A reproducible check
This snippet checks a public formula or configuration; it does not reproduce full training.
params_b, tokens_t = 3.8, 3.3
print("tokens per parameter =", tokens_t * 1000 / params_b)
print("4-bit weight storage in GB =", params_b * 0.5)
print("FP16 weight storage in GB =", params_b * 2)
tokens per parameter = 868.421052631579
4-bit weight storage in GB = 1.9
FP16 weight storage in GB = 7.6
The arithmetic is reproducible, but model quality still depends on the full experiments in the paper.
Limitations and common misreadings
Textbook-quality is an engineering selection strategy, not a formal data category. Running on a phone does not imply uniform speed across devices, contexts and generation lengths; quantized and full-precision results should be separated.
The key takeaway
The central hypothesis is that a small model should spend limited capacity on high-value knowledge and reasoning rather than indiscriminate web volume.
Further reading
FAQ
- How large is Phi-3-mini?
- It has 3.8B parameters, trains on 3.3T tokens and comes in 4K and 128K versions.
- What is textbook-quality data?
- Educational-value-filtered web data and synthetic explanatory or reasoning data, not merely digitized textbooks.
- What limitation do the authors emphasize?
- Limited capacity for factual knowledge, which leaves hallucination and coverage challenges.