Synthesizing Post-Training Data for LLMs through Multi-Agent Simulation

Shuo Tang, Xianghe Pang, Zexi Liu, Bohan Tang, Rui Ye +4 more
10/18/2024
cs.AIcs.CL

No official code found. Best implementation: ShuoTang123/MATRIX-Gen (47 stars, last commit 2024-10-22). 1 more below.

Abstract

Post-training is essential for enabling large language models (LLMs) to follow human instructions. However, its effectiveness depends on high-quality instruction data, which is challenging to obtain in the real world due to privacy concerns, data scarcity, and high annotation costs. To fill this gap, inspired by the recent success of using LLMs to simulate human society, we propose MATRIX, a multi-agent simulator that automatically generates diverse text-based scenarios, capturing a wide range of real-world human needs in a realistic and scalable manner. Leveraging these outputs, we introduce a novel scenario-driven instruction generator MATRIX-Gen for controllable and highly realistic data synthesis. Extensive experiments demonstrate that our framework effectively generates both general and domain-specific data. On AlpacaEval 2 and Arena-Hard benchmarks, Llama-3-8B-Base, post-trained on datasets synthesized by MATRIX-Gen with just 20K instruction-response pairs, outperforms Meta's Llama-3-8B-Instruct model, which was trained on over 10M pairs.

View on arXivView PDF

Code Implementations(2)

471Oct 16, 20241 years ago
MIT

Synthesizing Post-Training Data for LLMs through Multi-Agent Simulation(https://arxiv.org/abs/2410.14251) の非公式実装

01PythonNov 30, 202510 months agoMIT

Cite this paper

@article{tang2024synthesizing,
  title  = {Synthesizing Post-Training Data for LLMs through Multi-Agent Simulation},
  author = {Shuo Tang and Xianghe Pang and Zexi Liu and Bohan Tang and Rui Ye and Tian Jin and Xiaowen Dong and Yanfeng Wang and Siheng Chen},
  year   = {2024},
  eprint = {2410.14251},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.14251v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.14251.svg)](https://codeofpaper.com/paper/2410.14251)

Discussion