Context Language Models
Summary
Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 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. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.
- Venue
- arXiv
- Source
- arxiv
- Access
- public
- License
- CC-BY-4.0
- License family
- Permissive
- Language
- en
- Added
- Sep 30, 2026
- Verified
- Sep 30, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Sep 29, 2026
- arXiv categories
- cs.AI, cs.CL, cs.LG
- Citations
- 0
- References
- 41
Abstract (from arXiv)
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.
Tags
Topics
agents, long context, context management, reinforcement learning
Research notes
- Discovery: Aran Komatsuzaki (@arankomatsuzaki) on 2026-09-30: https://x.com/arankomatsuzaki/status/2105181276714242518
- Affiliations: University of Washington, Meta Superintelligence Labs, MIT, Trillium Labs.
- Submitted to arXiv 2026-09-29, cs.AI; CC-BY-4.0.
- Code: https://github.com/facebookresearch/context-language-models
- Connects to the collection's agent, long-context, and RL-for-reasoning entries. discovery tweets https://x.com/natolambert/status/2105284621638439271 (Nathan Lambert) and https://x.com/RulinShao/status/2105282444270448647 (Rulin Shao).
Notes about this
- Note
Long context: three bets and a weak spot in evaluation (overview)
An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.
Cites, within this collection
Similar entries
- Paper LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning
- Model Vast-10M (Voltropy)
- Thread Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
- Code FrontierAgent
- Paper Rufus-Air: An Open LLM Post-Training Recipe
- Paper RLTL;DR: Self-improvement by Internalizing Self-generated Feedback