TL;DR
MALT (Multi-Agent LLM Training) is a novel post-training strategy that splits complex reasoning into a sequential pipeline of specialized agents: a Generator, a Verifier, and a Refiner. By leveraging tree-based search and value iteration to automatically assign credit and generate high-quality synthetic training data, MALT allows a single base model to specialize into distinct cooperative roles, significantly boosting reasoning performance without human or teacher-model supervision.
What Problem Does This Paper Address?
Large Language Models (LLMs) typically reason using a single chain-of-thought (CoT). While effective for simple queries, this linear approach restricts their ability to explore alternative reasoning paths or self-correct errors when tackling complex tasks.
To solve this, recent research has explored multi-agent frameworks (such as debate or orchestrated problem-solving) at inference time. However, these setups usually rely on the exact same unspecialized base model, leading to a severe distribution shift at test time. Jointly training multiple specialized LLM agents remains an open challenge due to three main obstacles:
- Gradient Propagation: It is difficult to pass gradient signals through multiple discrete token outputs.
- Data Scarcity: Labeled, role-specific multi-agent training data is virtually non-existent.
- Credit Assignment: In reinforcement learning, outcome rewards are sparse (usually just a binary correct/incorrect at the very end), making it hard to pinpoint which agent or intermediate step introduced an error.
Methods
MALT addresses these challenges by introducing a decentralized Generate-Verify-Refine pipeline consisting of three specialized roles derived from the same base model:
- Generator ($G$): Produces an initial response to the question.
- Verifier ($V$): Critiques the generated response and identifies potential issues.
- Refinement Model ($R$): Integrates the feedback to produce the final prediction.
Tree-Based Data Generation & Value Iteration
To train these agents without human intervention, MALT uses an offline data generation process. For every question in a training set, the models are repeatedly sampled to build a multi-agent search tree with an exponential branching factor $n$.
Once the leaf nodes (the final refined answers) are generated, they are graded against the ground truth to receive a binary reward ($0$ or $1$). MALT then uses a value-iteration-based attribution strategy to propagate these rewards backward through the tree. The value of any intermediate state (a generator's draft or a verifier's critique) is calculated as the expected value of its downstream paths.
These continuous expected values are binarized using a threshold of $0.5$. If a node's value is $> 0.5$, it means the intermediate step successfully guided the downstream agents toward a correct answer most of the time, and it is labeled as correct ($\checkmark$). Otherwise, it is labeled as incorrect ($\times$).
Post-Training Pipeline
Using this automatically labeled synthetic dataset, MALT trains the models in two stages:
- Supervised Fine-Tuning (SFT): All three models ($G$, $V$, and $R$) are fine-tuned on the positive ($\checkmark$) trajectories to bootstrap ideal behaviors.
- Direct Preference Optimization (DPO): The Verifier and Refiner undergo preference optimization using paired correct and incorrect traces. This contrastive training allows them to learn explicitly from mistakes and understand what makes a critique or refinement successful.
Datasets
The authors evaluated MALT across several challenging math and commonsense reasoning benchmarks:
- GSM8K: Grade-school math word problems.
- MATH: A highly challenging competition-level mathematics dataset.
- CommonsenseQA (CSQA): A multiple-choice dataset testing everyday commonsense reasoning.
- GSM-Symbolic (P1 variant): A harder extension of GSM8K that uses symbolic templates and extra clauses to penalize shallow memorization and test true generalization.
Key Insights and Ideas
- Global vs. Local Credit Assignment: Instead of judging an intermediate step in isolation, MALT determines its utility based entirely on how it influences downstream outcomes. A flawed initial answer that is easily fixable by the refiner still receives a high value, preventing the training signal from becoming overly pessimistic.
- DPO for Generalization: While SFT helps models memorize rules and patterns, applying DPO to the verifier and refiner forces them to recognize why certain paths fail. This contrastive learning prevents the models from learning spurious correlations and enables them to generalize to out-of-distribution tasks.
- Decentralization Benefits: Factorizing a massive joint action space into smaller sub-tasks allows each role-conditioned model to focus on a specific objective, leading to much more targeted exploration during tree search.
Key Results
MALT consistently outperformed single-agent and un-tuned multi-agent baselines across all tested models and benchmarks.
- Llama-3.1-8B-Instruct Improvements: MALT achieved absolute accuracies of 57.25% on MATH, 81.50% on CSQA, and 90.50% on GSM8K. This translates to relative improvements of 15.66%, 9.40%, and 7.42% respectively over the single-agent baseline.
- Smaller Model Scaling: When applied to the tiny Qwen-2.5-1.5B-Base model on GSM8K, MALT pushed accuracy up to 74.50%—a massive 20.65% relative improvement.
- Impressive Generalization: On the complex GSM-Symbolic benchmark, MALT applied to a Llama-3.1-8B model achieved an accuracy of 84.75%, nearly matching the performance of the much larger Llama-3.1-70B-Instruct baseline (88.25%).
Limitations and Future Work
- Compute Constraints: Due to hardware limitations, the authors could not scale their joint post-training experiments to larger frontier models (e.g., 70B+ parameters).
- Offline vs. Online RL: MALT currently relies on a fixed, offline-generated synthetic dataset. If the system encounters highly out-of-distribution data at test time, it cannot adapt online. The authors note that moving to an online reinforcement learning framework (like PPO) using the same credit assignment strategy is a promising but computationally expensive next step.
- Expanding Agent Horizons: Future work includes scaling the branching factors, allowing for repeated, multi-turn rounds of refinement, and automatically discovering optimal agent roles via search rather than hardcoding the Generate-Verify-Refine paradigm.
Summary updated