公开研究台账

← 回 inbox 条目列表

Context Language Models (CLMs) — facebookresearch

inbox · 2026-10-02 · 0007_clm_context_language_models · 70 行 · 更新于 2026-10-02(4 周前)
工作稿全文:事实、推断与「查不到」并存,是研究过程,不是结论; 已撤回或修正的数字以错误账为准。研究记录,不构成投资建议。
元数据(10 项)
idmaterial_2026_10_02_0007
captured_at2026-10-02T14:25:00+08:00
kindrepo
source_tierofficial
channelgui
title"Context Language Models (CLMs) — facebookresearch"
statusextracted
fact_ids[]
urlhttps://github.com/facebookresearch/context-language-models
arxiv2609.37725

核心主张

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_harnessCLM 在 Harbor 里的实现
clm/clm_iclCLM 的 in-context learning
clm/clm_rlCLM 的强化学习
suffix_cache_reuseCLM 高效 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