Use Monte Carlo tree search to coordinate multiple LLMs and get more compute-efficient synthetic outputs

December 22, 20248 min

Overview

Decision SnapshotReady For Pilot

TOA shows consistent compute-efficiency gains on three tasks and large model sets, but depends on reward-model quality and increases GPU memory when hosting multiple models locally.

Citations0

Evidence Strength0.78

Confidence0.80

Risk Signals9

Trust Signals

Findings with numeric evidence: 5/5

Findings with evidence refs: 5/5

Results with explicit delta: 4/4

Reproducibility

Status: Code + data available

Open source: Partial

At A Glance

Cost impact: 75%

Production readiness: 70%

Novelty: 75%

Authors

Hai Ye, Mingbao Lin, Hwee Tou Ng, Shuicheng Yan

Links

Abstract / PDF / Code / Data

Why It Matters For Business

TOA lets you get higher-quality synthetic outputs per inference cost by coordinating multiple models dynamically; this can cut API costs or improve synthetic-labeling pipelines for fine-tuning.

Who Should Care

Summary TLDR

The paper studies scaling inference compute across multiple distinct language models by sampling many outputs (best-of-N) and coordinating models per input via a Monte Carlo Tree Search orchestrator called TOA. TOA dynamically builds a two-layer tree (model nodes and response nodes), uses a learned reward model for guidance, and selects the best outputs. Across alignment, translation, and math tests, multi-agent sampling beats single-agent sampling as compute grows. TOA is the most compute-efficient method in the experiments and produces synthetic alignment data that improves fine-tuned models.

Problem Statement

Existing inference-scaling work focuses on single models. Multi-agent sampling—drawing many samples from several different LLMs—needs an effective, input-specific coordination strategy to use compute efficiently and synthesize higher-quality data.

Main Contribution

Formalize multi-agent sampling as a sequential decision process where each new sample can refine or use previous responses.

Introduce TOA: a tree-search-based orchestrator that uses Monte Carlo Tree Search (MCTS) and a reward model to choose which model and which prior response to use at each step.

Key Findings

Multi-agent sampling yields better results than single-agent best-of-N as compute increases.

NumbersFigures 35: consistent performance gains across tasks; WMT avg KIWI-XXL 84.05 (TOA) vs lower single-model baselines

Practical UseIf you can afford cross-model sampling, distribute inference across complementary models to improve output quality for a given compute budget.

Evidence RefSections 6.2, Fig.3–5, Table 2

TOA is the most compute-efficient multi-agent coordination method in the experiments.

NumbersAlpacaEval LC win rate 72.2% (TOA) with best-of-160; WMT avg 84.05 with FLOPs 7.5×10^18

Practical UseUse TOA (MCTS + reward model) rather than fixed ensembles or simple refinement to get more quality per FLOP when synthesizing outputs.

Evidence RefTable 1 (AlpacaEval), Table 2 (WMT)

Results

MetricValueBaselineDeltaSplit / DatasetEvidenceEvidence Ref
AlpacaEval length-controlled win rate (LCWR)72.2%Seq. Refine 70.0% ; MoA 65.4%TOA +2.2 pp vs Seq. Refine; +6.8 pp vs MoAAlpacaEval best-of-160 samplingTable 1 (TOA LCWR 72.2%)Table 1
WMT average KIWI-XXL score84.05GPT-4 82.60+1.45WMT'21/22 (best-of-160 sampling)Table 2 (TOA Avg 84.05)Table 2

What To Try In 7 Days

Run best-of-N sampling across 2–4 complementary models with a small reward model to compare quality vs single-model best-of-N.

Implement a shallow TOA-like MCTS loop (selection/expansion/simulate/backprop) to choose which model refines which response per input.

Validate reward-guided selection with an independent metric or small human set to detect reward hacking before using synthetic data for finetuning.

Agent Features

Memory
short-term sample cache (previous responses used as context)
Planning
instance-level multi-step decision makingMCTS-guided action selection
Tool Use
MCTSreward models (ArmoRM, KIWI variants)
Frameworks
TOAMoAPRS
Is Agentic

Yes

Architectures
alternating model/response tree (TOA)Mixture-of-Agents (MoA)
Collaboration
Multi-agent CoordinationAgent OrchestrationModel Refinement Chains

Optimization Features

Token Efficiency
FLOPs accounting across multi-model sampling
Infra Optimization
trade-off guidance: multi-model local loading increases GPU memory vs API calls
System Optimization
option to call remote APIs to avoid local GPU memory pressure
Training Optimization
synthetic data generation for finetuningDPO-based preference optimization using generated positives/rejects
Inference Optimization
best-of-N samplingdynamic per-input model routing via MCTSpruning low-reward child nodes

Reproducibility

Code AvailableYes
Data AvailableYes
Open Source StatusPartial
LicenseUnknown

Data URLs

https://github.com/tatsu-lab/alpaca_eval (AlpacaEval)https://github.com/lmarena/arena-hard-auto (Arena-Hard)Ultrafeedback dataset referenced (princeton-nlp/llama3-ultrafeedback-armorm)

Risks & Boundaries

Limitations

Higher GPU memory if models are hosted locally; authors recommend using API calls to avoid this.

Dependence on learned reward models introduces reward hacking; external validation is necessary.

When Not To Use

If you must host many large models locally and lack GPU memory, avoid multi-model local loading.

If no reliable independent metric or human checks exist to detect reward hacking.

Failure Modes

Reward hacking: optimization finds high reward under the guide model but lower true quality.

Model coordination overhead negates compute gains if models are poorly matched.

Core Entities

Models

Llama-3.1-8B-InstructQwen2-7B-InstructMistral-7B-Instruct-v0.2Yi-1.5-9B-Chat-16KLlama-3.1-70B-InstructMistral-Large-Instruct-2407Qwen2-72B-InstructMixtral-8x22B-Instruct-v0.1WizardLM-2-8x22BGPT-4 (reference baselines noted)

Metrics

Length-controlled win rate (LCWR)Win rate (WR)KIWI (reference-free metric)KIWI-XXLMetricXaverage top-k reward (from reward model)

Datasets

AlpacaEvalArena-HardWMT'21WMT'22MATHUltrafeedback

Benchmarks

AlpacaEvalWMT (translation)Arena-HardMATH