Communicating Activations Between Language Model Agents
Vignav Ramesh, Kenneth Li
TL;DR
This work introduces activation-based communication between language-model agents, replacing traditional natural-language messages with a one-shot transfer of intermediate activations to a partner model during inference. By pausing one model at layer $j$, fusing its post-layer activation with another model's at layer $k$ via a simple function $f$ (e.g., replace, sum, mean), and continuing the forward pass, the approach achieves compute savings and scales to new tasks without additional parameters or training. The authors provide a formal compute analysis and validate the method on multi-player coordination games and seven reasoning benchmarks, showing up to 27% improvements over natural-language communication with less compute and good generalization across model families. They also explore a task-agnostic linear mapping between activation spaces and discuss limitations around alignment and API access, offering avenues for future work in cross-model collaboration and interpretability of activations.
Abstract
Communication between multiple language model (LM) agents has been shown to scale up the reasoning ability of LMs. While natural language has been the dominant medium for inter-LM communication, it is not obvious this should be the standard: not only does natural language communication incur high inference costs that scale quickly with the number of both agents and messages, but also the decoding process abstracts away too much rich information that could be otherwise accessed from the internal activations. In this work, we propose a simple technique whereby LMs communicate via activations; concretely, we pause an LM $\textit{B}$'s computation at an intermediate layer, combine its current activation with another LM $\textit{A}$'s intermediate activation via some function $\textit{f}$, then pass $\textit{f}$'s output into the next layer of $\textit{B}$ and continue the forward pass till decoding is complete. This approach scales up LMs on new tasks with zero additional parameters and data, and saves a substantial amount of compute over natural language communication. We test our method with various functional forms $\textit{f}$ on two experimental setups--multi-player coordination games and reasoning benchmarks--and find that it achieves up to $27.0\%$ improvement over natural language communication across datasets with $<$$1/4$ the compute, illustrating the superiority and robustness of activations as an alternative "language" for communication between LMs.
