Duo brings full-duplex voice to instruction-tuned LLMs
Engineers built Duo, a voice agent that combines full-duplex speech handling with the reasoning of Qwen3.5-4B using delayed-streams modeling and on-policy distillation.
A new engineering post details the construction of Duo, a full-duplex voice agent that merges real-time conversational fluidity with the instruction-following capabilities of large language models. Released in late November 2026, the system adapts the open-weight Qwen3.5-4B model to process streaming audio and text simultaneously, avoiding the latency and rigidity of traditional pipelined voice systems.
What happened
Traditional AI voice agents typically chain separate models for speech-to-text, language processing, and text-to-speech. This modular approach allows for independent upgrades but introduces significant latency and loses acoustic nuances like hesitation or tone during transcription. While newer fused architectures feed audio directly into speech-language models to preserve these cues, they often remain turn-based, relying on separate voice activity detection models that struggle with interruptions and background noise.
The team behind Duo sought to bridge the gap between the natural flow of full-duplex speech models and the controllability of instruction-tuned LLMs. Instead of training a speech-to-speech model from scratch, they started with Qwen3.5-4B, a hybrid architecture using Gated DeltaNet and attention layers. They adapted this backbone to handle streaming audio on speaker-separated human conversations, using the original text model as a teacher to maintain its language and reasoning skills.
The resulting system reads and writes six interleaved streams: four for text (system instructions, user transcript, assistant words, tool calls) and two for audio (user speech features and assistant speech latents). These streams advance together on a shared 80 ms clock, allowing the agent to listen and speak continuously without waiting for silence timeouts or explicit turn-taking signals.
How it works
Duo relies on delayed-streams modeling to align time-aligned input and output streams. The model introduces a delay between input and output, allowing it to generate responses as data arrives. For text streams, which are sparser than audio, the system uses factorized delayed-streams modeling. This separates the decision to emit a token from the choice of token itself, using a binary head to predict whether a stream should speak. This preserves the language model’s text-only perplexity and skips unnecessary computations on silent frames.
To manage efficiency, the system packs these parallel streams into a single causal sequence. Empty cells in the time grid are dropped, more than halving the sequence length during training. Positional encoding remains tied to time rows rather than packed length, ensuring the model understands temporal distance. During inference, each frame is processed in a single pass, with query tokens standing in for silent streams to maintain recurrent state continuity.
Memory management is handled through sliding audio window attention. Since old audio is rarely needed verbatim once transcribed, the model limits attention over audio keys to a sliding window of the last two to three minutes. Text keys, including transcripts and tool results, remain visible for the entire conversation. This approach keeps audio memory fixed regardless of conversation length, while text context accumulates indefinitely.
Key details
- The backbone is initialized from Qwen3.5-4B, with a frozen copy serving as the teacher model for distillation.
- Audio is processed using a streaming FastConformer encoder for user input and Mimi-family latents for assistant output.
- The system operates on a 12.5 Hz clock, with each 80 ms frame containing one frame of user audio, one of assistant audio, and at most one token per text stream.
- Tool calls are written on text-only rows between audio frames, allowing them to execute faster than the audio clock, up to 16 tokens per frame.
- Training uses Lagrangian self-distillation for the flow-map head, enabling single-pass sampling of audio frames without discrete codebooks.
- On-policy distillation allows the model to learn from its own rollouts, with weights updating between decode steps without pausing generation.
Why it matters
For developers building real-time AI interfaces, Duo demonstrates how to retain the reasoning power of existing LLMs while achieving natural, interruptible voice interactions. The ability to handle backchannels and interruptions without separate detection models simplifies the architecture and reduces the failure modes associated with voice activity detection. This makes voice agents more robust in noisy environments or multi-speaker scenarios.
The technique of packing parallel streams into a single sequence offers a practical solution for managing the computational cost of multimodal models. By decoupling tool execution speed from audio generation, the system ensures that complex reasoning or API calls do not block the conversational flow. This separation of clocks for thinking and speaking is a critical pattern for building responsive agents that can perform tasks while maintaining engagement.
What you can do
- Evaluate factorized delayed-streams modeling for your own streaming sequence-to-sequence tasks to reduce computation on silent frames.
- Implement sliding window attention for audio keys to manage KV cache memory in long-running voice conversations.
- Consider packing sparse multimodal streams into a single causal sequence to improve training efficiency and reduce sequence length.
- Use on-policy distillation to fine-tune models on their own generated trajectories, improving performance on tasks where teacher forcing is insufficient.
- Decouple tool execution clocks from audio generation clocks to allow faster reasoning without disrupting speech fluidity.
- Experiment with query tokens to maintain recurrent state continuity for streams that are temporarily silent.



