Abstract
Full-duplex spoken dialogue systems significantly surpass traditional turn-based dialogue systems, as they allow simultaneous bidirectional communication, closely mirroring human-human interactions. However, achieving low latency and natural interactions in full-duplex dialogue systems remains a significant challenge, especially considering human conversation dynamics such as interruptions, backchannels, and overlapping speech. In this paper, we introduce a novel End-to-End GPT-based model OmniFlatten for full-duplex conversation, capable of effectively modeling the complex behaviors inherent to natural conversations with low latency. To achieve full-duplex conversation capabilities, we propose a multi-stage post-training scheme that progressively adapts a text large language model (LLM) backbone into a speech-text dialogue LLM, capable of generating text and speech in real time, without modifying the architecture of the backbone LLM. The training process comprises three stages: modality alignment, half-duplex dialogue learning, and full-duplex dialogue learning. In all training stages, we standardize the data using a flattening operation, which enables unifying the training methods and the GPT backbone across different modalities and tasks. Our approach offers a simple modeling technique and a promising research direction for developing efficient and natural end-to-end full-duplex spoken dialogue systems.
Introduction
Traditional voice assistants typically operate in a half-duplex mode, where communication is strictly turn-based: the user speaks while the system listens, and then the system speaks while the user listens. This paradigm fails to capture the fluid nature of human conversation, which involves interruptions, backchannels (e.g., "uh-huh"), and overlapping speech. Achieving true full-duplex communication—simultaneous bidirectional interaction—remains a major challenge in AI.
Current systems often rely on modular pipelines (ASR -> LLM -> TTS), which introduce significant latency. While some end-to-end models have emerged, they often require specialized architectures to handle parallel audio streams. OmniFlatten addresses these issues by adapting a standard, unmodified GPT architecture (specifically Qwen2-0.5B) to handle full-duplex voice interaction through a novel "flattening" operation.
Methodology: The Flattening Operation
The core innovation of OmniFlatten is the flattening operation, which interleaves speech and text tokens into a single, linear sequence. Instead of using separate parallel tracks for user and assistant audio, the model discretizes audio into tokens using the CosyVoice tokenizer and processes them alongside text tokens.
The model is trained through a multi-stage progressive post-training scheme:
- Modality Alignment: The model learns the relationship between speech and text tokens via ASR and TTS tasks.
- Half-duplex Dialogue Learning: The model is trained on turn-based conversations using four streams: User Speech, User Text, Assistant Text, and Assistant Speech.
- Full-duplex Dialogue Learning: The model is fine-tuned on "chunked" data, eventually moving to a two-stream setup (User Speech and Assistant Speech). This forces the model to rely on speech-to-speech generation while maintaining semantic consistency through the earlier text-aligned training.
By processing audio in chunks (e.g., 10 tokens per chunk), OmniFlatten can "listen" to a user chunk and "predict" the next assistant chunk almost simultaneously, minimizing latency.
Data Simulation Pipeline
Because high-quality, full-duplex conversational data is scarce, the researchers developed a simulation pipeline to generate synthetic training data. They converted approximately 390,000 multi-turn text dialogues into 2,000 hours of multi-channel spoken dialogue.
The pipeline involves four stages:
- Text Preparation: Preparing multi-turn dialogue text.
- TTS Synthesis: Using random speaker timbres for the user and fixed timbres for the assistant.
- Interaction Simulation: Concatenating single-turn audio and simulating user/assistant turn-taking, including interruptions and early stops.
- Noise Addition: Adding noise to the user channel while keeping the assistant channel clean to simulate realistic environments.
Results and Discussion
OmniFlatten demonstrates significant improvements in latency and conversational quality:
- Latency: The model achieved an average response time of 193ms, outperforming the Moshi baseline (553ms).
- Quality: In evaluations using Qwen-max as a judge, OmniFlatten surpassed Moshi in English conversation quality.
- Turn-taking: The model effectively handles user interruptions by stopping its own speech generation, though perfecting the timing of these stops remains an area for improvement.
Conclusion
OmniFlatten presents a simple yet effective method for enabling full-duplex capabilities in standard GPT models. By using text as a semantic scaffold and a progressive training curriculum, the model achieves natural, low-latency interactions. Future work will focus on scaling the model size, capturing more complex human conversational dynamics, and extending the flattening approach to other modalities like vision.
Summary updated