DyTopo: Dynamic Topology Routing for Multi-Agent Reasoning via Semantic Matching
Yuxing Lu, Yucheng Hu, Xukai Zhao, Jiuxin Cao
TL;DR
We address fixed topology limitations in multi-agent reasoning with large language models by introducing DyTopo, which dynamically rewires a sparse directed graph $G^{(t)}$ at each round under a manager-specified goal. Agents emit a need descriptor $s^{(t)}_{q,i}$ and a key descriptor $s^{(t)}_{k,i}$; a semantic encoder computes $q_i^{(t)}$ and $k_j^{(t)}$, and edges are activated when $r_{i,j}^{(t)}> au_{edge}$ where $r_{i,j}^{(t)}=(\hat{q}_i^{(t)})^T\hat{k}_j^{(t)}$. A Manager meta-agent maintains global state $S_{global}^{(t)}$ and makes halting decisions based on a threshold $\\gamma_{success}$, enabling a bi-level feedback loop for round progression. Empirically, across code-generation and mathematical reasoning benchmarks and multiple backbones, DyTopo outperforms fixed or random topologies, while offering an interpretable view into how communication paths reconfigure throughout reasoning.
Abstract
Multi-agent systems built from prompted large language models can improve multi-round reasoning, yet most existing pipelines rely on fixed, trajectory-wide communication patterns that are poorly matched to the stage-dependent needs of iterative problem solving. We introduce DyTopo, a manager-guided multi-agent framework that reconstructs a sparse directed communication graph at each round. Conditioned on the manager's round goal, each agent outputs lightweight natural-language query (need) and \key (offer) descriptors; DyTopo embeds these descriptors and performs semantic matching, routing private messages only along the induced edges. Across code generation and mathematical reasoning benchmarks and four LLM backbones, DyTopo consistently outperforms over the strongest baseline (avg. +6.2). Beyond accuracy, DyTopo yields an interpretable coordination trace via the evolving graphs, enabling qualitative inspection of how communication pathways reconfigure across rounds.
