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

A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration

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

TL;DR

This paper introduces DyLAN, a novel framework for task-oriented agent collaboration that dynamically selects agents and communication structures. By optimizing agent teams for specific tasks, DyLAN significantly improves performance across various domains while maintaining computational efficiency.

What Problem Does This Paper Address?

Current LLM-powered agent collaboration approaches often rely on a fixed number of agents and static communication structures, limiting their adaptability to diverse tasks and domains. This rigidity hinders the ability to leverage specialized agent expertise effectively. The paper addresses this by proposing a dynamic system that can select the most suitable agents and adapt their communication patterns on the fly, mimicking how human teams optimize their composition for specific challenges.

Methods

DyLAN operates in a two-stage paradigm: Team Optimization and Task Solving.

  1. Team Optimization: This stage involves an unsupervised agent selection algorithm. It uses an "Agent Importance Score" derived from a preliminary trial to identify the most contributory agents for a given task. This score is calculated using a backward message-passing algorithm inspired by backpropagation.
  2. Task Solving: In this stage, the selected, optimized team of agents collaborates dynamically to solve the task. The framework models agent interactions using temporal feed-forward networks (T-FFNs), where each layer represents a time step and nodes represent agents. Agent team reformation can occur dynamically within this stage, allowing for the deactivation of less effective agents.

Key novelties include:

  • Dynamic Agent Selection: Moving beyond fixed teams to select agents based on their actual contributions to a specific task.
  • Dynamic Communication Structures: The T-FFN framework inherently supports evolving communication patterns.
  • Agent Importance Score: An unsupervised metric to quantify agent contributions in multi-round collaborations.
  • Two-Stage Paradigm: Separating team optimization from task execution for efficiency and effectiveness.

Datasets

The paper evaluates DyLAN on several standard benchmarks:

  • HumanEval: For code generation.
  • WebShop: For decision-making tasks.
  • MMLU (Massive Multitask Language Understanding): For general reasoning.
  • MATH: For arithmetic reasoning.

Key Insights and Ideas

  • Dynamic Teams Outperform Static Ones: The core insight is that adapting the agent team composition to the specific task significantly boosts performance, much like how human teams reconfigure for different projects.
  • Agent Importance Score is Robust: The unsupervised Agent Importance Score effectively captures agent contributions, even when agent roles are imbalanced or when comparing against human priors.
  • Efficiency Gains from Optimization: By selecting fewer, more relevant agents, DyLAN achieves better performance with reduced computational cost (fewer API calls).
  • T-FFN as a Flexible Framework: The temporal feed-forward network structure provides a versatile way to model dynamic agent interactions and communication.
  • Early Stopping Mechanism: This feature enhances efficiency by terminating the collaboration process when a consistent answer is reached, further reducing computational overhead.

Key Results

  • Improved Accuracy: DyLAN consistently outperforms strong baselines across code generation, decision-making, general reasoning, and arithmetic reasoning tasks. For instance, on specific MMLU subjects, agent selection improved accuracy by up to 25.0%.
  • Computational Efficiency: DyLAN achieves these performance gains with moderate computational cost, often requiring fewer API calls than baselines. For example, it achieved a 10.2% improvement over LLM Debate with 10.6% fewer API calls.
  • Robustness: DyLAN demonstrates stability across different foundation models and is less sensitive to temperature variations compared to other methods.
  • Data Efficiency: The team optimization stage can achieve similar performance with as little as 10% of the original dataset, highlighting its data efficiency.

Limitations and Future Work

  • Human Annotation for Evaluation: While DyLAN uses an unsupervised metric for agent selection, the paper suggests that human annotation could provide more precise evaluation of individual contributions, especially in data-scarce scenarios.
  • Cooperation of Optimization Methods: The current work focuses on agent selection and team reformation. Future work could explore finer-grained cooperation between off-collaboration and in-collaboration optimization methods.
  • Handling Contradictory Agents: The paper acknowledges that in extreme cases where agents are designed to contradict the task, low performance might occur. Solutions like replicating high-scoring agents or introducing more capable LLMs with validation are proposed.
  • Exploring Open-Source Models: The authors plan to explore the effectiveness of DyLAN built on open-source foundation models.

Summary updated

BibTeX
@inproceedings{liu2024dynamic,
  author = {Zijun Liu and Yanzhe Zhang and Peng Li and Yang Liu and Diyi Yang},
  title = {{A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=XII0Wp1XA9},
}
Figure