Multi-Party Supervised Fine-tuning of Language Models for Multi-Party Dialogue Generation

Xiaoyu Wang, Ningyuan Xi, Teng Chen, Qingqing Gu, Yue Zhao, Xiaokai Chen, Zhonglin Jiang, Yong Chen, Luo Ji

TL;DR

While large language models (LLMs) excel at back-and-forth dyadic conversations, they struggle to follow and participate in multi-party dialogues where turn-taking and persona consistency are fluid. This paper introduces MuPaS (Multi-Party Supervised Fine-Tuning), a framework that trains a single LLM to natively handle multi-party interactions and accurately predict the next speaker. The resulting model can act as a robust multi-party dialogue simulator, outperforming complex multi-agent frameworks and zero-shot prompting baselines.

What Problem Does This Paper Address?

Standard instruction tuning aligns LLMs to act as a "helpful assistant" responding to a single "user." This rigid, two-party paradigm fails in real-world scenarios like business meetings, classroom debates, or scriptwriting, where multiple characters interact dynamically.

Fig. 1: The paradigm shift from the conventional two-party dialogue (Left) to the multi-party dialogue (Right). The train- ing target also change from the helpful assistant to different possible persona or roles.

When deployed in multi-party dialogues (MPD), standard LLMs struggle to track who should speak next, maintain distinct personas across multiple roles, and follow concurrent topics. Previous attempts to solve this either relied on complex multi-agent orchestrations—where individual agents still communicate pair-wisely—or heavy prompting, which struggles to scale and generalize. The authors address this gap by proposing a unified, purely training-based framework for multi-party dialogue generation.

Methods

The authors propose MuPaS (Multi-Party Supervised Fine-Tuning), which adapts a standard instruct-tuned LLM to multi-party formats through a specialized post-training stage.

During training, the dialogue dataset is formatted with a scene description and interleaved utterances from multiple roles. To calculate the loss, the framework computes a standard Supervised Fine-Tuning (SFT) loss for each role individually by masking out the tokens belonging to the system prompt and all other inactive roles, then averaging these losses across all roles.

The MuPaS framework during training (masking inactive roles) and inference (incremental generation).

To transform this fine-tuned model into an autonomous MPD Simulator (where the next speaker isn't known in advance), the authors design two distinct inference strategies:

  1. Speaker Predictor: The LLM is trained to generate the next speaker's name as a token ($r_t$) immediately before generating their utterance ($u_t$). This allows a single model instance to handle both turn-taking and text generation autoregressively.
  2. Silence Switcher: The simulator acts as a decentralized multi-agent framework. For each turn, every role profile evaluates its log-probability of remaining silent (<s>). The role with the lowest likelihood of silence is selected to speak next.

Datasets

The authors compiled a comprehensive training suite of multi-party dialogues spanning TV show scripts and formal debates:

TABLE I: Details of Training Datasets.
  • TV/Show Scripts: Friends, Chat-Haruhi, Chat-Suzumiya, and general TV dialogues.
  • Debates: British Parliamentary debates, IQ2US, and Annotated US Supreme Court Arguments.
  • Evaluation: In-domain testing was conducted on the Friends test split, while zero-shot out-of-distribution capabilities were evaluated using the Game of Thrones script dataset.

Key Insights and Ideas

  • The Power of Unified Autoregression: Instead of building complex routing logic or multi-agent communication graphs, simply treating the speaker identity as a token in a single causal sequence allows the LLM to implicitly learn the social dynamics and turn-taking flow of a group.
  • Persona Preservation without Interference: By masking out other characters' tokens during a specific role's loss calculation, the model learns to mimic multiple distinct personas simultaneously without them bleeding into one another.
  • Synergy with General Capabilities: Fine-tuning on multi-party data didn't degrade the model's core reasoning capabilities. Surprisingly, MuPaS actually improved performance on benchmarks like GSM8K and TruthfulQA compared to the base instruct model, suggesting that tracking complex multi-party contexts might bolster broader contextual reasoning.

Key Results

  • Superior Next-Speaker Prediction: MuPaS achieved over 81% accuracy in predicting the next speaker on the Friends test set, significantly outperforming zero-shot prompting with GPT-4 (72.47%) and specialized non-LLM baselines like MIDS (79.32%).
  • High-Quality Generation: In human evaluations scoring Fluency, Consistency, and Entertainment out of 10, MuPaS (built on Llama3-8B or Qwen2-7B) outperformed much larger zero-shot models (like Llama3-70B) and vanilla SFT baselines, achieving the highest total human preference scores (~24.5/30).
  • Efficient Optimization: As shown in the training dynamics, the specialized masking and label alignment of MuPaS allowed the training loss to converge much faster and more smoothly than a standard Vanilla SFT approach.
Fig. 3: Training loss curves of MuPaS-Speaker, MuPaS- Silence and VanillaSFT. To make the transient dynamics clear, only the first epoch (totally 2) is exhibited.

Limitations and Future Work

While MuPaS demonstrates robust multi-party simulation, the authors note several challenges and areas for future exploration:

  • Contextual Complexity & Scalability: As the number of participants and dialogue turns increases, tracking long-range dependencies and preventing context window overflow remains a challenge.
  • Turn-Taking Coordination: While the Speaker Predictor and Silence Switcher work well, real-world conversations include interruptions and overlapping speech, which are difficult to model in a purely sequential text format.
  • Safety and Bias: Multi-party models run the risk of amplifying biases or generating toxic content if one of the trained personas behaves maliciously, necessitating stricter safety guardrails during multi-role deployment.

Summary updated

Abstract

Large Language Models (LLM) are usually fine-tuned to participate in dyadic or two-party dialogues, which can not adapt well to multi-party dialogues (MPD), which hinders their applications in such scenarios including multi-personal meetings, discussions and daily communication. Previous LLM-based researches mainly focus on the multi-agent framework, while their base LLMs are still pairwisely fine-tuned. In this work, we design a multi-party fine-tuning framework (MuPaS) for LLMs on the multi-party dialogue datasets, and prove such a straightforward framework can let the LLM align with the multi-party conversation style efficiently and effectively. We also design two training strategies which can convert MuPaS into the MPD simulator. Substantial experiments show that MuPaS can achieve state-of-the-art multi-party response, higher accuracy of the-next-speaker prediction, higher human and automatic evaluated utterance qualities, and can even generate reasonably with out-of-distribution scene, topic and role descriptions. The MuPaS framework bridges the LLM training with more complicated multi-party applications, such as conversation generation, virtual rehearsal or meta-universe.
BibTeX
@inproceedings{wang2024multi,
  author = {Xiaoyu Wang and Ningyuan Xi and Teng Chen and Qingqing Gu and Yue Zhao and Xiaokai Chen and Zhonglin Jiang and Yong Chen and Luo Ji},
  title = {{Multi-Party Supervised Fine-tuning of Language Models for Multi-Party Dialogue Generation}},
  booktitle = {IJCNN},
  year = {2024},
  url = {https://openreview.net/forum?id=IxPgSCevCw},
}
Figure