Skip to content
OpenTrain AIFor AI Companies

Context Language Models

Rulin Shao, Shannon Zejiang Shen, Junjie Oscar Yin, Yuetai Li, Minheng Wang +8 morePublished Sep 29, 2026
arXiv PDF
Researcher verdict
Starting point
Use as implementation starting point
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few hours
Fast first run
Risk flags
1
Review before use

Abstract

Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.

We introduce Context Language Models (CLMs), language models that natively manage their own context. We implement this by treating the context as a file and allowing the model to make unrestricted updates to this file. This allows the model to learn what is most important to maintain in context, and naturally extends to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context management strategies across a variety of tasks: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Moreover, by shifting context management from external harness control to intrinsic model behavior, CLMs naturally enable both in-context and parametric learning of context-management strategies. We show that CLMs can be steered with natural-language instructions evolved through a standard skill-optimization loop, improving held-out accuracy by up to 35.9 points on a context-management task while reducing compute. We also introduce an online reinforcement learning method for CLMs, improving Qwen3.5-9B performance on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Finally, we co-design Suffix Cache Reuse for CLM serving, further reducing server-side compute by 35% relative to standard SGLang at matched performance.

Results and benchmarks

Freshness tier: hot
We introduce Context Language Models (CLMs), language models that natively manage their own context.

Implementation

Best maintained implementation now

Recommended
Confidence: Medium
Reproducibility: Moderate

Official repository for "Context Language Models"

598 stars · 73 forks · Last push Oct 1, 2026 · NOASSERTION license

  • License
  • CI
  • Dependencies
  • Docker

Matched via arXiv identifier search · Strong overlap with paper title keywords · Community adoption signal (598 stars)

Why this implementation
Confidence: medium

facebookresearch/context-language-models is the best available implementation candidate based on ranking signals, but recommendation confidence is not yet high. License is declared (NOASSERTION). Dependency/environment manifests are present.

Open facebookresearch/context-language-models
Reproduction risks
  • No CI workflows detected
  • Selected facebookresearch/context-language-models as the strongest maintained implementation for new work.
  • Includes dependency/environment manifest signals.
  • Repository activity is within the last 24 months.

Compare implementation paths

Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.

Maintenance
Active
Confidence
Medium
Reproducibility
Moderate
Stars
598
Last push
Oct 1, 2026 (7d)

Matched via arXiv identifier search · Strong overlap with paper title keywords

  • No CI pipeline detected
  • No tagged releases
  • No Docker setup
Maintenance
Active
Confidence
Low
Reproducibility
Moderate
Stars
62
Last push
Sep 30, 2026 (8d)

Matched via arXiv identifier search · Community adoption signal (62 stars)

  • No Docker setup
  • Dependency manifest missing
  • Low confidence match
Maintenance
Active
Confidence
Low
Reproducibility
Moderate
Stars
3
Last push
Oct 3, 2026 (5d)

Matched via arXiv identifier search

  • No Docker setup
  • Dependency manifest missing
  • Low confidence match

Reproduction readiness

Time to first repro: hours
Last checked: Oct 7, 2026

Setup required

Dependencies pinned, manual setup needed

  • facebookresearch/context-language-models has pyproject.toml but requires manual environment setup.
  • No Dockerfile, so you will set up the environment manually.
  • No CI pipeline, so test coverage is unknown.
Open facebookresearch/context-language-models

Quick start

git clone https://github.com/facebookresearch/context-language-models.git
pip install -e .

Repositories and ecosystem

No additional verified repositories beyond the primary recommendation.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Instruction tuning, Agentic tool use

Methods

Reinforcement learning

Domains

Natural Language Processing, Large Language Models, AI Agents

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers