Multi-Agent Simulator Drives Language Models for Legal Intensive Interaction

ShengbinYue ShengbinYue, Ting Huang, Zheng Jia, Siyuan Wang, Shujun Liu, Yun Song, Xuanjing Huang, Zhongyu WeiNAACL 2025

Abstract

While Large Language Models (LLMs) have shown promise in static legal tasks like document summarization, they often struggle with the dynamic, multi-turn interactions required in professional legal consultations. This paper introduces MASER (Multi-agent Legal Simulation Driver), a framework designed to generate high-quality synthetic data for interactive legal tasks. By simulating the interaction between a lawyer and a client under the oversight of a supervisor, the researchers produced the SynthLaw dataset and the MILE benchmark. Experimental results demonstrate that a 7B model fine-tuned on this data, SynthLaw-7B, outperforms GPT-4o in drafting complex legal complaints and maintaining professional rigor.

Introduction

In the legal domain, the ability to draft a complaint or provide counsel is not merely a writing task; it is an information-gathering process. Real-world legal work involves guiding a client through a "legal agenda" to extract necessary facts, even when the client is vague, emotional, or forgetful. Current LLMs face three primary obstacles in this area: a scarcity of private consultation data, the need for strict professional rigor, and the difficulty of maintaining character consistency over long dialogues.

To bridge this gap, this research moves beyond simple prompting and introduces a multi-agent simulation environment that generates the complex, multi-turn data necessary to train models for intensive legal interaction.

The MASER Framework

The Multi-agent Legal Simulation Driver (MASER) is a three-agent ecosystem designed to replicate the nuances of a legal consultation:

  • The Client Agent: This agent is grounded in "Non-legal Profiles" derived from real-world court cases. To simulate realistic human behavior, the agent is assigned "Big-5" personality traits and programmed with "distractor" behaviors, such as being evasive or omitting key details.
  • The Lawyer Agent: Guided by a specific "Legal Agenda," this agent is tasked with systematically collecting information—including plaintiff details, factual background, specific claims, and evidence—required to draft a formal legal complaint.
  • The Supervisor Agent: Acting as the framework's quality controller, the Supervisor monitors the interaction at the sentence level. It ensures the Client stays in character and the Lawyer adheres to the legal agenda. If an agent deviates from the professional path, the Supervisor provides real-time feedback, forcing an immediate revision of the response.

This structured supervision ensures that the resulting synthetic dialogues are procedurally sound and free from the "hallucinations" or persona-drift common in standard LLM outputs.

Datasets and Benchmarking

The researchers utilized MASER to create two significant resources for the legal AI community:

  1. SynthLaw: A synthetic dataset comprising 4,532 high-quality, multi-turn legal interactions. These simulations are grounded in real Chinese civil cases covering over 230 distinct case types, including labor disputes and contract law.
  2. MILE (Multi-stage Interactive Legal Evaluation): A benchmark consisting of 693 distinct complaint-drafting scenarios. MILE evaluates models on two fronts: Interaction (scoring professionality and logic) and Goal Achievement (assessing the accuracy and template compliance of the final draft).

Key Results and Insights

The researchers fine-tuned a Qwen2.5-7B model using the SynthLaw dataset, resulting in SynthLaw-7B. The model's performance highlights the efficacy of agenda-driven synthetic training:

  • Superiority over Generalist Models: SynthLaw-7B achieved an overall average score of 73.71 on the MILE benchmark, surpassing GPT-4o (71.44) and significantly outperforming existing specialized legal models like LawLLM (30.09).
  • Drafting Precision: In terms of "Standardability"—the ability to adhere to strict legal templates—SynthLaw-7B scored 91.74, notably higher than GPT-4o’s 84.63.
  • Generalizability: The MASER-generated data proved to be a powerful "driver" for various architectures; when applied to other base models like InternLM, it yielded an average performance boost of 28.1%.

Conclusion

The MASER framework demonstrates that high-quality synthetic data, generated through multi-agent simulation with sentence-level supervision, can effectively train models for high-stakes professional interactions. While currently focused on civil complaint drafting within the Chinese legal system, the methodology provides a blueprint for expanding AI capabilities into courtroom simulations and other complex, adversarial environments. Future work will look toward adapting these "Legal Agendas" to other jurisdictions and more unpredictable legal contexts.

Summary updated

BibTeX
@inproceedings{shengbinyue2025multi,
  author = {ShengbinYue ShengbinYue and Ting Huang and Zheng Jia and Siyuan Wang and Shujun Liu and Yun Song and Xuanjing Huang and Zhongyu Wei},
  title = {{Multi-Agent Simulator Drives Language Models for Legal Intensive Interaction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.365},
}
Figure