🚀NEW COURSEVibe Coding AI Apps with Claude Code 🤖✨Enroll now
← All papers  /  Sep 3 – Sep 3, 2026
Agents

Codebook Agent: Amortized Topology Design for LLM Multi-Agent Systems

First page
Codebook Agent: Amortized Topology Design for LLM Multi-Agent Systems
The curator’s take

Jinxi Yu, Eric Hanchen Jiang, Kai-Wei Chang, Ying Nian Wu and colleagues (UCLA) argue that per-query communication topology design for multi-agent LLM systems has been formulated wrong, and replace the whole search with a 16-entry learned codebook.

Ask this paper

Key points
01

Three empirical facts that break the standard recipe: Reward-filtered topologies collapse to about six distinct graphs even at codebook capacity 64; edge count correlates negatively with measured token cost (r about -0.4), so sparsifying makes inference more expensive; and a message-passing scorer over agent-profile nodes is adjacency-invariant when agents share a profile, which is the default in published benchmarks.

02

Codebook instead of graph generation: A VQ autoencoder compresses successful topologies into a query-independent codebook, a reward-weighted MLP maps the query embedding to a distribution over codes, and a flat-adjacency MLP proxy reranks decoded candidates in one batched pass.

03

No search, no message passing at test time: Topology emission takes 2.4 ms.

04

Best on all six benchmarks: 84.6 average against 83.0 for the strongest prior designer, with 21.9 to 33.2 percent fewer LLM tokens.

05

Why it matters: The edge-count finding alone should change how people build these systems. The field has been optimizing a proxy for cost that points the wrong way.

Abstract

Adapting the communication topology of an LLM multi-agent system to each query improves both accuracy and efficiency, yet current designers treat this as conditional graph generation: a variational, autoregressive, or diffusion decoder searches the $N \times N$ adjacency space, and a graph-network proxy trained on utility and a structural cost such as edge count ranks the sampled candidates. We argue that this formulation is misaligned with the problem. Empirically, topologies that survive a reward filter collapse to about six distinct graphs even when the codebook capacity grows from 8 to 64; edge count is negatively correlated with measured token consumption (Pearson $r \approx -0.4$), so sparsifying the graph makes inference more expensive; and a message-passing scorer over agent-profile nodes is adjacency-invariant whenever agents share a profile---the default configuration of published benchmarks---so it cannot rank candidates at all in that regime. These three facts motivate Codebook Agent: a vector-quantized autoencoder compresses successful topologies into a query-independent 16-entry codebook; a reward-weighted MLP maps the query embedding to a distribution over codes; and an MLP proxy that reads the flattened adjacency, regressed on measured utility and per-task normalized token cost, reranks the top decoded candidates in a single batched forward pass. With no iterative search and no message passing at test time, Codebook Agent is the most accurate method on all six benchmarks we compare (84.6 average against 83.0 for the strongest prior designer), emits a topology in 2.4 ms, and uses 21.9--33.2% fewer LLM tokens.

Every Monday
Get next week’s papers.
Subscribe on Substack