Multi-Agent Sampling: Scaling Inference Compute for Data Synthesis with Tree Search-Based Agentic Collaboration

Hai Ye, Mingbao Lin, Hwee Tou Ng, Shuicheng YanarXiv 2024 · DOI

Abstract

Scaling inference-time compute has emerged as a powerful paradigm for enhancing Large Language Model (LLM) performance. While existing methods often focus on single-agent systems or fixed multi-agent workflows, we introduce Tree Search-based Orchestrated Agents (TOA). TOA dynamically coordinates a diverse "symphony" of LLMs using Monte Carlo Tree Search (MCTS) guided by a reward model. This framework treats model collaboration as a sequential decision-making process, allowing for adaptive refinement paths. Our results demonstrate that TOA significantly outperforms traditional ensemble and refinement methods across alignment, translation, and reasoning tasks, achieving state-of-the-art performance with superior compute efficiency.

Introduction

Scaling laws have traditionally focused on pre-training parameters and data. However, recent breakthroughs highlight the importance of scaling inference compute—allowing models more "thinking time" through techniques like best-of-N sampling or chain-of-thought. Current multi-agent approaches often rely on rigid, pre-defined pipelines (e.g., Model A always critiques Model B), which lack the flexibility to handle varying task complexities. TOA addresses this by framing multi-agent collaboration as a dynamic search problem, leveraging the unique strengths of diverse models like Llama, Qwen, and Mistral.

Methods

TOA (Tree Search-based Orchestrated Agents) moves beyond fixed pipelines by employing a tree search architecture. The process involves:

  1. Dynamic Orchestration: Selecting the optimal model to generate or refine a response at each step based on the specific query.
  2. MCTS Framework: Navigating a tree of Model Nodes and Response Nodes to find the most effective collaboration path. The search follows four key steps: Selection, Expansion, Simulation, and Backpropagation.
  3. Reward-Guided Exploration: Utilizing a separate Reward Model (e.g., ArmoRM) to provide real-time feedback, enabling the pruning of low-quality branches and prioritizing promising refinement paths.
  4. Iterative Refinement: Allowing models to build upon each other's outputs, effectively "evolving" the final solution through the tree.
The TOA framework (d) compared to traditional multi-agent structures (a-c), illustrating the MCTS-based selection, expansion, simulation, and backpropagation process.

Results and Discussion

TOA demonstrates remarkable performance across several benchmarks. On AlpacaEval 2.0, it achieved a 72.2% length-controlled (LC) win rate, significantly surpassing Mixture-of-Agents (64.1%) and single-model baselines. In machine translation (WMT’21/’22), TOA established new state-of-the-art results, even outperforming GPT-4 in reference-free metrics.

Crucially, TOA is highly compute-efficient. As shown in the scaling analysis, TOA achieves higher win rates for the same amount of inference FLOPs compared to parallel ensembles or sequential refinement. The system thrives on model diversity; analysis shows it rarely selects the same model twice in a row, preferring to pass the "baton" between different architectures to maximize refinement quality.

Scaling performance on AlpacaEval (GPT-4): TOA consistently achieves higher LC Win Rates at lower average inference FLOPs compared to other multi-agent and single-agent baselines.

Furthermore, data generated by TOA is of such high quality that fine-tuning a base model on it (using DPO) outperformed strong preference-learning baselines like SimPO. A Llama-3-8B model fine-tuned on TOA-synthesized data reached a 52.2% LC win rate on AlpacaEval.

Conclusion

TOA proves that a coordinated ensemble of diverse models is more effective than scaling a single agent. While the current implementation is resource-intensive due to the need for multiple models in memory, it opens new avenues for high-quality data synthesis and complex reasoning. Future work will focus on API integration to reduce local memory footprints and distilling these multi-agent capabilities into smaller, more efficient student models.

Summary updated

BibTeX
@misc{ye2024multi,
  author = {Hai Ye and Mingbao Lin and Hwee Tou Ng and Shuicheng Yan},
  title = {{Multi-Agent Sampling: Scaling Inference Compute for Data Synthesis with Tree Search-Based Agentic Collaboration}},
  year = {2024},
  eprint = {2412.17061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17061},
}
Figure