Octopus: One Brain, Many Branches for Latent-KV Multi-Agent Reinforcement Learning
Computer Science > Machine Learning arXiv:2611.06956 (cs) [Submitted on 3 Nov 2026] Title: Octopus: One Brain, Many Branches for Latent-KV Multi-Agent Reinforcement Learning Authors: Tianming Sha.
计算机科学 > 机器学习 arXiv:2611.06956 (cs) [提交于 2026 年 11 月 3 日] 标题:Octopus:用于潜在 KV 多智能体强化学习的“一脑多支”架构 作者:Tianming Sha。
Abstract: Multi-agent LLM systems explore in parallel by spawning sub-agents with isolated context windows, whereas single-agent systems append every search and verification step into one growing trajectory. However, existing multi-agent frameworks duplicate prefix KV caches across branches, exchange findings by re-prefilling text summaries, and flatten or drop cross-branch dependencies during reinforcement learning (RL).
摘要:多智能体大语言模型系统通过生成具有独立上下文窗口的子智能体进行并行探索,而单智能体系统则将每一次搜索和验证步骤附加到一条不断增长的轨迹中。然而,现有的多智能体框架在分支间重复前缀 KV 缓存,通过重新预填充文本摘要来交换发现,并在强化学习(RL)过程中扁平化或丢弃跨分支依赖关系。
We introduce Octopus, a single-model multi-agent RL framework in which all threads share one backbone and coordinate over a GPU-resident directed acyclic graph (DAG) of KV states through five primitives (fork, read_thread, wait_threads, rewind, commit).
我们引入了 Octopus,这是一个单模型多智能体强化学习框架,其中所有线程共享一个主干,并通过五个原语(fork、read_thread、wait_threads、rewind、commit)在驻留于 GPU 的 KV 状态有向无环图(DAG)上进行协调。
Octopus combines three co-designed mechanisms: (1) Zero-Copy Radix Forking, which spawns branches as $\mathcal{O}(1)$ cursor views over shared physical KV pages; (2) Attention-Only KV Mounting, which mounts a sibling thread’s terminal KV blocks directly into full-attention layers while bypassing linear-recurrent states (Gated DeltaNet / Mamba-2), cutting off-task hijacking by $21\times$ ($57.9% \to 2.7%$) while retaining $92.2%$ of full-text mutual information at zero extra KV allocation; and (3) a Packed DAG-GRPO Trainer, which packs all episode branches into one block-sparse attention pass and assigns counterfactual branch credit via leave-one-branch-out marginal rewards.
Octopus 结合了三种协同设计的机制:(1)零拷贝基数分叉(Zero-Copy Radix Forking),将分支生成为共享物理 KV 页面上的 $\mathcal{O}(1)$ 指针视图;(2)仅注意力 KV 挂载(Attention-Only KV Mounting),将同级线程的终端 KV 块直接挂载到全注意力层中,同时绕过线性循环状态(Gated DeltaNet / Mamba-2),在零额外 KV 分配的情况下,将任务外劫持减少了 21 倍(从 57.9% 降至 2.7%),同时保留了 92.2% 的全文互信息;以及(3)打包 DAG-GRPO 训练器,将所有情节分支打包成一次块稀疏注意力传递,并通过“留一分支”边际奖励分配反事实分支信用。
Trained end-to-end with GRPO on Qwen3.5-4B over a sparse BM25 corpus, Octopus reaches $49.6%$ accuracy on BrowseComp-Plus ($+17.5$ points over single-agent GRPO at 143K context and $+12.5$ points over text-summary multi-agent RL) and $51.2%$ on OpenResearcher, outperforming dense-retrieval agents up to $250\times$ larger while increasing training throughput $3.3\times$ and cutting peak KV memory $2.8\times$.
通过在稀疏 BM25 语料库上使用 Qwen3.5-4B 进行 GRPO 端到端训练,Octopus 在 BrowseComp-Plus 上达到了 49.6% 的准确率(比 143K 上下文的单智能体 GRPO 高出 17.5 个百分点,比文本摘要多智能体强化学习高出 12.5 个百分点),在 OpenResearcher 上达到了 51.2% 的准确率,性能优于规模大至 250 倍的密集检索智能体,同时将训练吞吐量提高了 3.3 倍,并将峰值 KV 内存减少了 2.8 倍。