TL;DR
TodyComm introduces a task-oriented dynamic communication framework for multi-round, Large Language Model (LLM)-based multi-agent systems. By modeling agent interactions as a Markov Decision Process and optimizing communication graphs round-by-round via reinforcement learning, it dynamically cuts off unreliable or adversarial agents. This approach significantly boosts task accuracy in unpredictable environments while maintaining high token efficiency.
What Problem Does This Paper Address?
Large Language Model multi-agent systems (MAS) excel at solving complex tasks by allowing multiple specialized agents to collaborate. In multi-round setups, agents iteratively exchange information to refine their answers. However, most existing frameworks rely on a fixed communication topology at inference time.
This static design fails in real-world scenarios where environment dynamics change. Specifically, the authors highlight the danger of dynamic adversaries—agents that randomly transition to malicious or unreliable behavior mid-task due to context drift, prompt injection, or system fatigue. In a rigid network, one corrupted agent can easily propagate misinformation and tank the entire system's performance. Existing defense mechanisms either require impractical adversity labels during training or fail to incorporate task-level feedback (like final accuracy) to optimize the communication structure.
Methods
The authors propose TodyComm (Task-Oriented Dynamic Communication), which formulates multi-agent interaction as a Markov Decision Process (MDP). Instead of agents choosing text responses directly, the policy determines the inter-agent communication graph at each round, alongside a final decision graph.
The core architecture consists of three main steps executed each round:
- Node Embedding Generation: A Gated Recurrent Network (GRN) tracks the history of each agent. It takes a concatenated feature vector containing the agent's own current output ("self info"), its neighbors' outputs ("neighbor info"), and the semantic divergence between them ("difference info").
- Preliminary Screening: An MLP maps these GRN embeddings to a scalar "empirical node potential" ($c_i^t$), representing how useful an agent is as a communication endpoint. An $\epsilon$-greedy screening step filters out agents with low potentials.
- Constrained Graph Projection: To avoid the combinatorial explosion of predicting full $N \times N$ edge probabilities, TodyComm uses a greedy search based on the product of node potentials ($c_i^t \cdot c_j^t$). It constructs a directed acyclic graph (DAG) that strictly respects pre-defined in-degree and out-degree budgets.
The entire framework is trained end-to-end using the REINFORCE policy gradient algorithm, where the reward signal is simply the final task utility (e.g., accuracy on the dataset).
Datasets
TodyComm was evaluated across five diverse reasoning benchmarks:
- Commonsense Reasoning: MMLU, ARC-Challenge
- Mathematical Reasoning: GSM8K
- Scientific Reasoning: OpenBookQA, MedQA
The authors simulated a dynamically adversarial environment using a targeted attack setup: six agents collaborate over four rounds, and a controlled percentage of them randomly turn adversarial at round 3 or 4, intentionally generating plausible but incorrect answers.
Key Insights and Ideas
- Communication Potential over Explicit Labels: Instead of trying to explicitly classify agents as "good" or "bad," TodyComm learns a continuous "communication potential." This allows the system to naturally handle agents that are helpful in early reasoning stages but become redundant or misleading later.
- The Power of Degree Budgets: Introducing strict node-degree budgets acts as a powerful regularizer. If an adversarial agent accidentally passes the preliminary screening, the degree budget limits its capacity to spread misinformation, preventing it from contaminating the broader network.
- Sequence Matters: The ablation studies revealed that constructing edges in a learned, potential-descending sequence is crucial. Building graphs with random edge ordering severely degrades performance, proving that the structural hierarchy discovered by the RL agent is meaningful.
Key Results
TodyComm consistently outperformed static and pruning-based baselines (Random Graph, Complete Graph, G-Designer, and AgentPrune), particularly under high attack rates ($\ge 50\%$ adversarial agents).
- Robustness to Attacks: On the MMLU dataset under a $>50\%$ attack rate, TodyComm achieved 64.71% accuracy, significantly outperforming AgentPrune (53.38%) and G-Designer (45.97%).
- Token Efficiency: TodyComm matches or beats the token efficiency of pruning methods because it actively avoids connecting to adversarial agents, saving substantial generation costs.
- Generalization: The model demonstrated strong zero-shot generalization when trained on fewer agents (e.g., training on 4 agents and testing on 6) and when transferred across entirely different task domains or attack mechanisms (targeted vs. untargeted options).
Limitations and Future Work
While TodyComm excels in adversarial settings, the authors note that its evaluation was heavily focused on defending against malicious agents. Future work is needed to validate how well this dynamic topology adaptation improves performance in purely collaborative, benign settings where agents simply experience normal variations in reasoning quality. Additionally, the framework currently relies on centralized training, which could be extended to multi-agent strategic equilibria in decentralized environments.
Summary updated