Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models

Xinrong Zhang, Yingfa Chen, Shengding Hu, Xu Han, Zihang Xu, Yuanwei Xu, Weilin Zhao, Maosong Sun, Zhiyuan Liu

TL;DR

Current Large Language Models (LLMs) operate like walkie-talkies: one person speaks while the other waits in silence. This paper introduces duplex models, which use a time-division-multiplexing (TDM) strategy to listen and speak simultaneously, enabling natural interruptions and real-time feedback without sacrificing the model's core reasoning capabilities.

What Problem Does This Paper Address?

Despite their intelligence, interacting with LLMs often feels "robotic" because of their turn-based nature. In a standard setup, a model must receive and encode a complete user message before it can begin generating a single token of response. If you want to interrupt a rambling AI, you usually have to click a "stop" button—a far cry from the fluid, overlapping nature of human conversation where we use backchannels ("mm-hmm"), interject, or pivot topics mid-sentence.

The authors identify two main hurdles:

  1. Architectural: Autoregressive models are designed for sequential, turn-taking processing.
  2. Data: Existing SFT (Supervised Fine-Tuning) datasets are strictly turn-based, providing no examples of how to handle fragmented inputs or mid-stream interruptions.

Methods

To bridge this gap, the researchers adapted a lightweight LLM (MiniCPM-2.4B) into a duplex configuration using two primary innovations:

  • Time-Division-Multiplexing (TDM) Encoding-Decoding: Instead of waiting for a full sentence, the system divides the interaction into 2-second "time slices" (roughly 4-6 words). The model processes these input slices incrementally and generates corresponding output slices pseudo-simultaneously.
  • The <idle> Token: To prevent the model from blabbering constantly, the authors introduced a special <idle> token. This allows the model to "decide" to remain silent and continue listening if the user's input is incomplete or if a response isn't yet warranted.
  • Duplex Alignment: Because standard LLMs fail when fed incomplete text fragments (see Figure 2), the authors fine-tuned the model on a specialized dataset designed to handle "thinking while listening."
Figure 1: Illustration of the input/output processing scheme of traditional models (1a) and duplex models (1b). Traditional models receive the complete input from the user before generating the response. In contrast, duplex models process the input and generate the output in an online manner.

Datasets

The authors created Duplex-UltraChat, a massive dataset of 4.8 million dialogues derived from the original UltraChat. It differs from standard datasets by splitting messages into time slices and injecting four specific types of interactive scenarios:

  1. Generation Termination: The user cuts the assistant off to start a new point.
  2. Regeneration: The user is dissatisfied and provides a new prompt while the AI is still talking.
  3. Dialogue Reset: The user abruptly switches to a completely different topic.
  4. Back on Topic: The user asks a quick clarifying question mid-response, and the AI must answer before resuming its original thought.
Figure 4: Some examples from Duplex-UltraChat.

Key Insights and Ideas

  • Performance is Robust to Fragmentation: One might worry that chopping a prompt into 2-second chunks would break the model's "train of thought." Surprisingly, the experiments show that with proper fine-tuning, LLMs preserve their original performance on standard benchmarks (like MMLU and CMMLU) despite the segmented processing.
  • Intuitive Turn-Taking: By training on the <idle> token, the model learns to intuitively determine the appropriate moment to respond, mimicking human conversational flow rather than relying on explicit "end of turn" triggers.
  • Politeness and Robustness: The training ensures the assistant remains polite even when "rudely" interrupted and stays robust when the chat history contains incomplete, cut-off messages.

Key Results

The researchers evaluated their prototype, MiniCPM-duplex, against the vanilla version:

  • Benchmark Stability: The duplex model showed negligible performance drops on standard benchmarks. For instance, it scored 53.76 on MMLU compared to the vanilla model's 53.45.
  • Human Preference: In a user study with 14 participants, the duplex model was a clear winner. It outperformed the vanilla model by 81.05% in responsiveness and 43.37% in human-likeness.
  • Win Rates: As shown in the evaluation distributions, the duplex model significantly improved overall user satisfaction by providing a more natural, fluid interaction.
Figure 5: Human evaluation scores showing the duplex model's superiority in responsiveness and human-likeness.

Limitations and Future Work

  • Pseudo-Duplexing: The current implementation is "pseudo-duplex" because it still relies on fixed-interval TDM rather than true simultaneous encoding and decoding at the architectural level.
  • The TTS Bottleneck: While the model can generate text in real-time slices, current Text-to-Speech (TTS) software struggles to turn those text chunks into a smooth, continuous voice. The resulting audio can sound "choppy" due to inconsistent intonation between chunks.
  • Proactive Interaction: The authors note that while the model handles interruptions well, it hasn't yet learned to proactively start conversations or change topics on its own initiative.

Summary updated

BibTeX
@inproceedings{zhang2024beyond,
  author = {Xinrong Zhang and Yingfa Chen and Shengding Hu and Xu Han and Zihang Xu and Yuanwei Xu and Weilin Zhao and Maosong Sun and Zhiyuan Liu},
  title = {{Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.644},
}
Figure