Phi 4
Phi 4 by Microsoft is a small language model built on a data-quality training recipe with synthetic data, reasoning on STEM tasks, and a 16K token context.
Model Overview
Capabilities, design details, and architectural traits
Phi 4 - Data-quality focused small language model
Phi 4 is a 14-billion-parameter language model from Microsoft positioned as a small but reasoning-focused model developed with a training recipe centered on data quality and extensive synthetic data generation, and released with multimodal and compact variants in the Phi family.
Defining Characteristics
- Data-quality training recipe: Phi 4’s development emphasizes curated high-quality data and synthetic data integrated throughout pretraining rather than relying primarily on organic web or code data.
- Parameter scale: Phi 4 is documented as a 14B-parameter model in official technical reports.
- Post-training and alignment: The model uses supervised fine-tuning and direct preference optimization to improve instruction following and safety.
Variants & Multimodality
- Officially published variants include Phi-4-Mini (3.8B) and Phi-4-Multimodal; the multimodal variant supports text, vision, and speech/audio via modality adapters and routing mechanisms.
- Phi-4-Mini expands vocabulary (200K tokens) and adopts group query attention for more efficient long-sequence generation, per the authors' reports.
Context Strategy & Use Cases
- Documented context length for Phi 4 inference is 16K tokens, making it suitable for longer-context reasoning within the small-model class.
- Microsoft positions Phi 4 as a building block for research and latency/memory-constrained deployments, with emphasis on English-language capabilities.
Benchmark Performance
Independent evaluations · Artificial Analysis
Accuracy & Capability Details
Compare Models Side-by-Side
Evaluate specifications, pricing, and independent benchmark indices
| Model Details | |||
|---|---|---|---|
| General Info | |||
| Provider | Microsoft | Anthropic | Anthropic |
| Release Date | December 12, 2024 | September 22, 2026 | September 28, 2026 |
| Knowledge Cutoff | Jun 2024 | - | Jun 2026 |
| Context & Limits | |||
| Context Window | 16K | 1M Best Context Window | 1M Best Context Window |
| Pricing (per 1M tokens) | |||
| Input Pricing | $0.13 Best Input Pricing | $4 | $2 |
| Output Pricing | $0.50 Best Output Pricing | $20 | $10 |
| Modalities | |||
| Inputs | text | textimagefile | textimagefile |
| Outputs | text | text | text |
| Benchmarks (0-100) | |||
| Intelligence Index | 5.9 | 57.6 Best Intelligence Index | 56.0 |
| Coding Index | - | - | - |
| Agentic Index | - | - | - |
Humanity's Last Exam
Extremely difficult logical reasoning and knowledge.
Long Context Reasoning
Logical reasoning over long context windows.
SciCode Benchmark
Scientific coding and mathematical modeling.
Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.
Explore more from Microsoft
Other models by Microsoft
Top AI Models
Leading alternatives by intelligence score