Context Language Models
Rulin Shao, Shannon Zejiang Shen, Junjie Oscar Yin, Yuetai Li, Minheng Wang, Hamish Ivison, Radha Poovendran, Nathan Lambert,
Key points
From the paper's conclusion- We introduce Context Language Models (CLMs), language models that natively manage their own context by treating the context as a file and allowing the model to make unrestricted updates to this file. Building CLMs zero-shot with existing models outperforms SOTA context management strategies across a variety of tasks, and CLMs can be steered with natural-language instructions and an online reinforcement learning method, improving performance while reducing compute.
- CLMs zero-shot outperform SOTA context management strategies across tasks, achieving 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, and CLMs can be steered with natural-language instructions and an online reinforcement learning method, improving performance while reducing compute.
- CLMs naturally enable both in-context and parametric learning of context-management strategies and can be steered with natural-language instructions, improving performance while reducing compute.
Abstract
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.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- We introduce Context Language Models (CLMs), language models that natively manage their own context by treating the context as a file and allowing the model to make unrestricted updates to this file. Building CLMs zero-shot with existing models outperforms SOTA context management strategies across a variety of tasks, and CLMs can be steered with natural-language instructions and an online reinforcement learning method, improving performance while reducing compute.
- CLMs zero-shot outperform SOTA context management strategies across tasks, achieving 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, and CLMs can be steered with natural-language instructions and an online reinforcement learning method, improving performance while reducing compute.
- CLMs naturally enable both in-context and parametric learning of context-management strategies and can be steered with natural-language instructions, improving performance while reducing compute.
Readers' thoughts
No reader thoughts yet.
Related papers
- CTXAgent - Self-Controlled Context Management of LLM AgentsarXiv · 2026
- MoE-Context: Show the Model Only What It NeedsarXiv · 2026
- Letting Models Manage Their Own Context: Where We StandarXiv · 2026
- MEMENTO: Learning Context Management for Long Context Processing AgentsarXiv · 2026
- Persistent Context Graphs for Efficient Memory Compaction in LLM AgentsarXiv · 2026
- ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RLarXiv · 2026