TL;DR
This paper introduces MALT, a novel multi-agent LLM training strategy that improves reasoning by dividing tasks into generation, verification, and refinement stages. By automatically generating synthetic training data through a tree-search and credit assignment process, MALT enables specialized LLM agents to learn from both correct and incorrect reasoning paths, leading to significant performance gains on challenging benchmarks.
What Problem Does This Paper Address?
Large Language Models (LLMs) often struggle with complex reasoning tasks because they typically produce a single "chain-of-thought" output. This limits their ability to explore alternative reasoning paths, self-correct errors, or refine their answers effectively. While multi-agent approaches have shown promise by distributing reasoning tasks, existing methods often use the same base LLM for all agents, leading to suboptimal performance. A key challenge is how to effectively train LLMs to specialize in distinct roles within a multi-agent system to enhance reasoning capabilities, especially when labeled data for such specialized roles is scarce and propagating gradients through multiple discrete steps is difficult.
Methods
MALT tackles this problem by introducing a post-training strategy that employs a sequential pipeline of three heterogeneous LLM agents: a Generator, a Verifier, and a Refiner.
- Data Generation: The core innovation lies in how MALT generates synthetic training data. For each question, it expands a multi-agent search tree by repeatedly sampling from the Generator, Verifier, and Refiner. This creates a vast number of reasoning trajectories.
- Credit Assignment: A crucial step is assigning credit for correct or incorrect reasoning. MALT uses a value iteration approach to propagate reward signals backward from the final output through the entire reasoning chain. This allows the system to identify which agent's output contributed to the final success or failure, even without explicit human supervision.
- Role-Specific Training: The generated data, now labeled with credit assignments, is used to post-train each agent independently. This involves Supervised Fine-Tuning (SFT) on correct trajectories and Direct Preference Optimization (DPO) on preference pairs (correct vs. incorrect trajectories) to learn specialized roles. The authors found that for the Generator, SFT alone was sufficient, likely due to the base model already being heavily trained on preferences.
Datasets
The paper evaluates MALT on the following standard benchmarks:
- GSM8K: A dataset of grade-school math problems.
- MATH: A more challenging dataset for mathematical reasoning.
- CommonsenseQA (CSQA): A multiple-choice question answering dataset focused on commonsense reasoning.
Additionally, MALT is evaluated on GSM-Symbolic P1, a synthetic extension of GSM8K designed to test reasoning beyond memorization.
Key Insights and Ideas
- Decomposition is Key: Breaking down complex reasoning into distinct, specialized roles (generate, verify, refine) significantly improves performance compared to a single-model approach.
- Synthetic Data is Powerful: MALT's ability to automatically generate large-scale, labeled synthetic data using a tree-search and value iteration credit assignment mechanism is a major breakthrough, bypassing the need for extensive human annotation.
- Learning from Mistakes: The DPO component, which trains on preference pairs (correct vs. incorrect), is vital for teaching agents to identify and correct errors, leading to robust self-correction capabilities.
- Modular Design: The generator-verifier-refiner pipeline is modular, suggesting that it can be extended to more agents or different roles, paving the way for more complex multi-agent reasoning systems.
Key Results
- Significant Performance Gains: MALT achieved substantial improvements over baseline LLMs. On MATH, CSQA, and GSM8K, MALT demonstrated relative improvements of 15.66%, 9.40%, and 7.42%, respectively, compared to a single-agent baseline.
- Outperforms Baselines: MALT consistently outperformed various baselines, including single-agent approaches, multi-agent debate frameworks, and STaR (a supervised fine-tuning method).
- Generalization: MALT showed strong generalization capabilities, achieving performance comparable to a significantly larger Llama-3.1-70B model on the challenging GSM-Symbolic P1 benchmark, despite using a smaller Llama-3.1-8B model.
- Self-Correction: Qualitative analysis showed MALT effectively corrects previously incorrect answers, with a much higher rate of correcting errors than introducing new ones.
Limitations and Future Work
- Computational Constraints: The authors acknowledge that experiments were limited by computational resources, preventing evaluation on significantly larger models or more extensive hyperparameter tuning.
- Offline Training: MALT currently uses an offline data generation and training scheme. Future work could explore online RL settings for more dynamic adaptation.
- Branching Factor: While an exponential branching factor is effective for data generation, its impact on inference time and computational cost could be further explored.
- Extending the Pipeline: The authors suggest future work could involve more complex multi-agent systems with more agents, iterative refinement rounds, or different role discovery mechanisms.
- Safety and Ethics: The paper briefly touches upon the potential of MALT-trained systems for AI safety and control, suggesting future research in this area.
Summary updated