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
ProviderMicrosoftAnthropicAnthropic
Release DateDecember 12, 2024September 22, 2026September 28, 2026
Knowledge CutoffJun 2024-Jun 2026
Context & Limits
Context Window16K
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 Index5.9
57.6
Best Intelligence Index
56.0
Coding Index---
Agentic Index---
Phi 4
Claude Opus 5.5
Claude Sonnet 5.5

Humanity's Last Exam

Extremely difficult logical reasoning and knowledge.

4%
Phi 4
Humanity's Last Exam
Score: 4%
Phi 4
61%
Claude Opus 5.5
Humanity's Last Exam
Score: 61%
Claude Opus 5.5
55%
Claude Sonnet 5.5
Humanity's Last Exam
Score: 55%
Claude Sonnet 5.5

Long Context Reasoning

Logical reasoning over long context windows.

0%
Phi 4
Long Context Reasoning
Score: 0%
Phi 4
85%
Claude Opus 5.5
Long Context Reasoning
Score: 85%
Claude Opus 5.5
83%
Claude Sonnet 5.5
Long Context Reasoning
Score: 83%
Claude Sonnet 5.5

SciCode Benchmark

Scientific coding and mathematical modeling.

26%
Phi 4
SciCode Benchmark
Score: 26%
Phi 4
67%
Claude Opus 5.5
SciCode Benchmark
Score: 67%
Claude Opus 5.5
61%
Claude Sonnet 5.5
SciCode Benchmark
Score: 61%
Claude Sonnet 5.5

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