Microsoft
Released December 12, 2024Cutoff June 2024

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.

Inputs
Text
Outputs
Text

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

5.9%
Intelligence

Accuracy & Capability Details

GPQA - Graduate Science57.5%
Humanity's Last Exam3.8%
SciCode - Scientific Coding26.0%
Instruction Following23.5%
Long Context Reasoning0.0%
τ²-Bench - Agentic Tasks0.0%
TerminalBench - System Control3.8%

Compare Models Side-by-Side

Evaluate specifications, pricing, and independent benchmark indices

Model Details
General Info
ProviderMicrosoftAnthropicOpenAI
Release DateDecember 12, 2024November 9, 2026November 17, 2026
Knowledge CutoffJun 2024--
Context & Limits
Context Window16K1M
1.1M
Best Context Window
Pricing (per 1M tokens)
Input Pricing
$0.13
Best Input Pricing
$8$8
Output Pricing
$0.50
Best Output Pricing
$40$40
Modalities
Inputs
text
textimagefile
textimagefile
Outputs
text
text
text
Benchmarks (0-100)
Intelligence Index5.9
64.8
Best Intelligence Index
62.2
Coding Index---
Agentic Index---

Benchmark comparison not available

Select at least two models that have available benchmark evaluation data to render the performance comparison charts.

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

View all