A Full-duplex Speech Dialogue Scheme Based On Large Language Models

Peng Wang, Songshuo Lu, Yaohua Tang, Sijie Yan, Yuanjun Xiong, Wei Xia

Abstract

We present a generative dialogue system capable of operating in a full-duplex manner, allowing for seamless interaction. It is based on a large language model (LLM) carefully aligned to be aware of a perception module, a motor function module, and the concept of a simple finite state machine (called neural FSM) with two states. The perception and motor function modules operate in tandem, allowing the system to speak and listen to the user simultaneously. The LLM generates textual tokens for inquiry responses and makes autonomous decisions to start responding to, wait for, or interrupt the user by emitting control tokens to the neural FSM. All these tasks of the LLM are carried out as next token prediction on a serialized view of the dialogue in real-time. In automatic quality evaluations simulating real-life interaction, the proposed system reduces the average conversation response latency by more than threefold compared with LLM-based half-duplex dialogue systems while responding within less than 500 milliseconds in more than 50% of evaluated interactions. Running an LLM with only 8 billion parameters, our system exhibits an 8% higher interruption precision rate than the best available commercial LLM for voice-based dialogue.

Introduction

Traditional voice-based dialogue systems often suffer from a "walkie-talkie" effect, known as half-duplex communication. In these systems, only one party can transmit information at a time; the user must wait for the system to finish processing before receiving a response, and the system typically cannot process user input while it is speaking. This leads to high latency and a robotic interaction style that lacks the fluidity of human conversation.

Human dialogue is naturally full-duplex. We provide backchannel affirmations (like "mm-hmm"), interrupt to correct errors, and begin formulating responses while the other person is still speaking. This paper introduces a novel scheme that enables LLMs to operate in a full-duplex manner by integrating perception and motor functions directly into the model's token prediction process.

Methodology

The proposed architecture consists of three primary modules: a Perception module (Streaming ASR), a Motor Function module (Streaming TTS), and a Full-duplex LLM.

The Neural Finite State Machine (FSM)

The core innovation is the Neural FSM, which is embedded directly into the LLM's training. Instead of relying on external logic to manage dialogue turns, the LLM is trained to manage its own state using two primary states: SPEAK and LISTEN. The model emits specific control tokens (e.g., [S.SPEAK], [C.LISTEN]) to transition between these states.

The system architecture (left) and the Neural FSM state transition logic (right).

By treating the dialogue as a serialized "tape" of tokens, the LLM can maintain a causal view of the interaction in real-time. When the ASR module detects user speech while the LLM is in the SPEAK state, the LLM can autonomously decide to emit a [S.LISTEN] token. This immediately halts the TTS output and allows the model to process the new user input, enabling natural interruptions.

Experimental Evaluation

The system was evaluated using a specialized benchmark, duplex-dialogue-3k, which includes transcripts with interruptions, noise, and affirmations.

Latency Performance

A key metric for full-duplex systems is the "First Token Emission Delay" (FTED). The proposed system (Configuration 4) achieved an average latency of 0.68 seconds, a more than threefold reduction compared to the baseline half-duplex configuration (2.28 seconds). Notably, the system achieved a median (50%) latency of just 0.41 seconds, meeting the threshold for near-instantaneous human-like response.

Latency comparison across different system configurations, highlighting the efficiency of the full-duplex approach.

Interruption and Robustness

The model demonstrated superior performance in handling interruptions. An 8-billion parameter model fine-tuned with this scheme achieved an interruption precision of 54.7%, outperforming GPT-4o (46.6%). Furthermore, the system showed high robustness, with a 96.7% proper response rate (PRR) to user interruptions, effectively distinguishing between meaningful speech and background noise.

Conclusion

By unifying dialogue state management into the next-token prediction task, this full-duplex scheme significantly enhances the naturalness and responsiveness of AI voice assistants. While the current modular pipeline introduces some inherent latency, the success of the Neural FSM suggests that future native multimodal models could achieve even more seamless, human-level interaction.

Summary updated

BibTeX
@inproceedings{wang2024full,
  author = {Peng Wang and Songshuo Lu and Yaohua Tang and Sijie Yan and Yuanjun Xiong and Wei Xia},
  title = {{A Full-duplex Speech Dialogue Scheme Based On Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=YawXY6mWiK},
}
Figure