MASTER: Enhancing Large Language Model via Multi-Agent Simulated Teaching

Liang Yue, Yihong Tang, Kehai Chen, Jie Liu, Min Zhang

Introduction

Instruction fine-tuning is the critical process that transforms a raw pretrained model into a functional AI assistant. However, the efficacy of this process is often limited by the quality and structure of the training data. Most existing synthetic datasets rely on "self-chat" or single-turn responses, which lack the iterative, corrective, and multi-perspective nature of real-world human learning.

In this paper, we introduce MASTER (Multi-Agent Simulated Teaching Enhanced Resource), a novel data augmentation framework designed to bridge this gap. By simulating interactions between teacher and student agents across diverse pedagogical scenarios, MASTER transforms static instruction datasets into dynamic, multi-turn "classroom" dialogues. This approach produces BOOST-QA, a dataset that significantly enhances the reasoning and problem-solving capabilities of Large Language Models (LLMs).

Methodology: The MACLASS Framework

The core of the MASTER framework is MACLASS, a multi-agent classroom simulator. To ensure a productive "cognitive gap," the system utilizes different LLMs to play specific roles, mimicking the hierarchy of a real educational environment.

1. Error Correction (CA)

Traditional fine-tuning data typically presents only the correct solution path. MASTER introduces "structured noise" by intentionally prompting a "dull" student model (Qwen2.5-0.5B) to provide an initial, potentially flawed answer. A more capable teacher model (Qwen2.5-14B) then identifies the error and provides corrective guidance. Finally, a "smart" student model generates the final corrected solution. This process teaches the model how to navigate and recover from reasoning failures.

2. Collaborative Debate (DA)

To explore the solution space more thoroughly, MASTER employs multiple student agents (Qwen2.5-7B) to discuss a single problem. These agents offer different perspectives and critique each other's logic. A teacher/summarizer agent then evaluates the debate to reach a final consensus. This method helps the model explore a wider "loss landscape" of potential solutions and understand the nuances of complex problems.

3. Analogical Reasoning (AA)

Reinforcement of underlying logic is achieved through semantic retrieval. After solving a problem, the system retrieves a semantically similar question using cosine similarity via embeddings. The student must then solve this new, related problem. This ensures the model learns the underlying principles and reasoning patterns rather than simply memorizing specific answers.

Dataset and Evaluation

The authors applied the MASTER framework to 19,000 instances sampled from three primary sources: Orca-Math-Word-200K (mathematics), ProcQA (programming), and OpenHermes 2.5 (general reasoning). The resulting multi-turn interactions were formatted into ShareGPT style to create the BOOST-QA dataset.

To evaluate the effectiveness of this approach, LLaMA-3-8B, Qwen2.5-7B, and Mistral-7B were fine-tuned using BOOST-QA and tested against a battery of standard benchmarks, including HumanEval, MBPP, MATH, MMLU-PRO, and GSM8K.

Key Results

  • General Performance Gains: Across all tested architectures, models trained on BOOST-QA consistently outperformed those trained on the original source data. For LLaMA-3-8B, the average score across all benchmarks rose from 45.98% to 51.26%.
  • Reasoning Breakthroughs: The most dramatic improvements were observed in complex multiple-choice reasoning tasks. On the GSM8K-MC benchmark, the MASTER-enhanced model showed a 31.46% improvement over the baseline.
  • Superiority Over Baselines: BOOST-QA outperformed other sophisticated data selection and augmentation methods, such as TAGCOS and CoT-fine, proving that the interaction structure is a vital component of high-quality training data.

Discussion and Limitations

While MASTER provides a powerful tool for model enhancement, it introduces certain considerations. The multi-turn nature of the training data may increase inference overhead if the model is expected to follow a similar corrective pattern during deployment. Additionally, the quality of the augmented data is heavily dependent on the "Teacher" model; if the teacher makes an error in the simulation, that error is baked into the fine-tuning set.

Conclusion

MASTER demonstrates that the structure of synthetic training data is as important as its content. By injecting "cognitive patterns"—such as learning from failure, debating perspectives, and applying analogies—into the training process, we can develop LLMs that are more robust, better at reasoning, and more capable of handling complex, multi-step tasks.

Summary updated

BibTeX
@inproceedings{yue2025master,
  author = {Liang Yue and Yihong Tang and Kehai Chen and Jie Liu and Min Zhang},
  title = {{MASTER: Enhancing Large Language Model via Multi-Agent Simulated Teaching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=5GaDcRVgBw},
}
Figure