核心主张
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.
三个层级的结果
① Zero-shot(用现有模型搭 CLM)
· BrowseComp-Plus:准确率 +11.4%,FLOPs 少 21.5% · 12 小时 EdgeBench:得分 +5%,FLOPs 少 59% · 24 小时多仓库 agent-swarm 任务:同等算力下改进 +65%
② In-context learning
可用经标准 skill-optimization 循环演化的自然语言指令来引导 CLM, 在一个 context-management 任务上held-out 准确率提升最多 35.9 个点,同时减少算力。
③ Reinforcement learning
提出 CLM 的在线 RL 方法,把 Qwen3.5-9B 在 BrowseComp-Plus 上提升 47.6%,FLOPs 少 12%。
作者与机构
Rulin Shao¹², Shannon Zejiang Shen³, Junjie Oscar Yin¹², Yuetai Li¹, Minheng Wang¹, Hamish Ivison¹, Radha Poovendran¹, Nathan Lambert⁴, Teng Xiao¹, Mike Lewis², Wen-tau Yih², Luke Zettlemoyer¹², Pang Wei Koh¹
¹ University of Washington ² Meta Superintelligence Labs ³ MIT ⁴ Trillium Labs
仓库结构
| 目录 | 内容 |
|---|---|
clm/clm_harness | CLM 在 Harbor 里的实现 |
clm/clm_icl | CLM 的 in-context learning |
clm/clm_rl | CLM 的强化学习 |
suffix_cache_reuse | CLM 高效 serving 的 Suffix Cache Reuse |
Day 1 支持
pi install npm:@lolipopshock/pi-clm # Pi (earendil-works/pi)
快速开始
pip install -e .
clm-harbor run -p <harbor-task> -a clm-minimal -m openai/<model> \
--agent-kwarg api_base=http://localhost:8000/v1
Coming soon
- [ ] ContextBench