Octopus: One Brain, Many Branches -- Learning Multi-Agent Collaboration through Shared KV Memory
Tianming Sha, Junnan Li, Siqi Zhao
原文摘要
A long task asks a model to manage its working memory: what to hand off, what to forget, and what to consult. Current agents make these decisions for the model, with rules that compact its context and hierarchies in which each agent sees only what it was handed. We present Octopus, a runtime and a training method that let the model make them itself. Octopus runs one model as a tree of branches over shared KV memory and gives it three operations: a fork hands work to a branch that starts from its parent's state, a rewind forgets a dead end, and a read consults another branch by mounting its memory into attention layers only. On hybrid recurrent-attention models this keeps the reader on its own task, where pasting the same work as text sends most of its following turns astray. DAG-GRPO trains the use of the three operations from outcome rewards alone, treating the whole tree as one sample. On BrowseComp-Plus, a 4B model trained this way reaches 48.3%, the accuracy of OpenAI o3, and outperforms a single agent trained the same way with a window four times as long. It learns all three operations without a reward that names any of them. A 27B model reaches 64.9% with the same operations and no training.
cs.LG · cs.CL