Context Language Models
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
We introduce Context Language Models (CLMs), language models that natively manage their own context.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 55/100, grounding 75/100, status medium.
Implementation
Best maintained implementation now
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)
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- 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
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.
Quick start
git clone https://github.com/facebookresearch/context-language-models.git
pip install -e . Validation caveat
Repositories and ecosystem
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
Showing top 6 by score. 1 additional low-confidence matches are hidden.
- lolipopshock/pi-clm
Confidence: Low · 62 stars
- oaustegard/experiments
Confidence: Low · 3 stars
- HuiMa-pty/papergit2video
Confidence: Low · 8 stars
- masculinecache/clm-context
Confidence: Medium · 0 stars
- davidmacmillan/DeepLearningStudyGroup
Confidence: Low · 41 stars
- f2025408135-cyber/opencode-clm
Confidence: Low · 0 stars
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
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.