NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic LLM-Agent Network: An LLM-agent Collaboration Framework with Agent Team Optimization

Zijun Liu, Yanzhe Zhang, Peng Li, Yang Liu, Diyi Yang · OpenReview

Abstract

Large language model (LLM) agents have been shown effective on a wide range of tasks, and by ensembling multiple LLM agents, their performances could be further improved. Existing approaches employ a fixed set of agents to interact with each other in a static architecture, which limits their generalizability to various tasks and requires strong human prior in designing these agents. In this work, we propose to construct a strategic team of agents communicating in a dynamic interaction architecture based on the task query. Specifically, we build a framework named Dynamic LLM-Agent Network (DyLAN) for LLM-agent collaboration on complicated tasks like reasoning and code generation. DyLAN enables agents to interact for multiple rounds in a dynamic architecture with inference-time agent selection and an early-stopping mechanism to improve performance and efficiency. We further design an automatic agent team optimization algorithm based on an unsupervised metric termed Agent Importance Score, enabling the selection of best agents based on the contribution each agent makes. Empirically, we demonstrate that DyLAN performs well in both reasoning and code generation tasks with reasonable computational cost. DyLAN achieves 13.0% and 13.3% improvement on MATH and HumanEval, respectively, compared to a single execution on GPT-35-turbo. On specific subjects of MMLU, agent team optimization in DyLAN increases accuracy by up to 25.0%.

Introduction

Most current multi-agent LLM systems rely on a fixed number of agents and a static communication structure. This "one-size-fits-all" approach fails to mirror how human experts collaborate, where teams are often assembled based on specific expertise and irrelevant voices drop out as a conversation focuses. Static LLM teams suffer from two primary issues: inefficiency, where large teams waste resources on simple tasks, and noise, where "generalist" agents can degrade performance in highly specialized domains by providing confident but incorrect information.

Comparison of DyLAN with existing multi-agent collaboration structures, highlighting its unique support for dynamic structures and team optimization.

DyLAN (Dynamic LLM-Powered Agent Network) addresses these limitations by treating multi-agent collaboration as a dynamic, optimizable network. It conceptualizes agent interaction as a Temporal Feed-Forward Network (T-FFN), where each layer represents a time step, nodes represent agents, and edges represent information flow.

The DyLAN Framework

The framework operates in two distinct stages to ensure both high performance and computational efficiency:

  1. Team Optimization: Before tackling the primary query, DyLAN runs a preliminary trial. Agents interact and rate each other’s contributions. These peer ratings are processed via a novel, unsupervised metric called the Agent Importance Score (AIS). Inspired by back-propagation, AIS identifies which agents drove the conversation toward a solution. The top $k$ agents are then selected for the final task-solving team.
  2. Task Solving: The optimized team executes the final query. This stage features Agent Team Reformation, where an "LLM Ranker" can deactivate low-performing agents mid-task. It also incorporates an Early Stopping mechanism based on Byzantine Consensus theory: if more than two-thirds of the agents reach a consistent answer, the process terminates early to save costs.
The two-stage DyLAN workflow: Team Optimization via AIS and Task Solving with dynamic reformation.

Experimental Results

DyLAN was evaluated across four diverse domains: HumanEval (code generation), WebShop (decision making), MMLU (general reasoning), and MATH (arithmetic reasoning).

Key findings include:

  • Performance Gains: DyLAN achieved an 82.9% Pass@1 on HumanEval, outperforming strong baselines like LATS (81.1%) and Reflexion (68.3%). On specific MMLU subjects, team optimization improved accuracy by up to 25.0%.
  • Efficiency: In general reasoning tasks, DyLAN outperformed "LLM Debate" while utilizing 36.6% fewer API calls.
  • Agent Judgment: The unsupervised AIS metric correlates highly with the Shapley Value, demonstrating that LLM agents are effective at peer-reviewing each other without requiring ground-truth labels.
  • Robustness: DyLAN remains stable at higher temperatures (randomness), as the team optimization and reformation stages effectively filter out hallucinations.

Discussion and Limitations

While DyLAN sets a new standard for dynamic agent collaboration, the authors note several areas for future work. Currently, the framework uses text-similarity metrics (BLEU) for consensus in open-ended tasks; moving toward execution-based unit tests for early stopping would increase robustness. Additionally, the AIS metric relies on a preliminary trial, which may be costly for one-off queries. Future research will explore DyLAN’s effectiveness with open-source models like Llama 3 and finer-grained optimization of individual agent roles.

Summary updated

BibTeX
@inproceedings{liu2024dynamic,
  author = {Zijun Liu and Yanzhe Zhang and Peng Li and Yang Liu and Diyi Yang},
  title = {{Dynamic LLM-Agent Network: An LLM-agent Collaboration Framework with Agent Team Optimization}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=XII0Wp1XA9},
}
Figure