Streaming Sequence-to-Sequence Learning with Delayed Streams Modeling

Neil Zeghidour, Eugene Kharitonov, Manu Orsini, Václav Volhejn, Gabriel de Marmiesse, Edouard Grave, Patrick Pérez, Laurent Mazaré, Alexandre Défossez

TL;DR

Delayed Streams Modeling (DSM) is a simple and powerful framework that turns streaming sequence-to-sequence learning into a unified, time-aligned language modeling problem. By shifting alignment to a pre-processing step and introducing a controlled delay between input and output token streams, DSM achieves state-of-the-art streaming performance for both speech recognition and speech synthesis while enabling massive throughput via standard batching.

What Problem Does This Paper Address?

Traditional sequence-to-sequence (seq2seq) models, like those used for Automatic Speech Recognition (ASR) or Text-to-Speech (TTS), typically operate offline. They require processing an entire input sequence before generating any output.

To make these systems work in real-time streaming scenarios (e.g., live captioning or interactive voice assistants), researchers usually have to design complex alignment policies—such as Transducers or monotonic attention mechanisms—to decide exactly when the model should read an input chunk versus write an output token. These policies are computationally expensive to train and severely break batching during inference because every sequence follows a different execution path. Furthermore, text and audio operate at completely different framerates, making synchronous processing a major architectural headache.

DSM addresses these challenges by eliminating complex runtime alignment policies entirely, replacing them with a unified, batch-friendly, decoder-only architecture.

Methods

Instead of dynamically calculating alignments at runtime, DSM shifts the alignment to a pre-processing step where all modalities are mapped to a shared, constant framerate.

The core architecture relies on a standard decoder-only Transformer that processes multiple parallel token streams simultaneously. The crucial trick is the introduction of a stream delay ($\tau$):

  • For ASR: The text stream is delayed relative to the audio stream. The model processes the audio tokens first, giving it the necessary acoustic context before it predicts the corresponding text tokens.
  • For TTS: The audio stream is delayed relative to the text stream.
Figure 1: Delayed streams modeling for speech-text tasks. Depending on which stream is delayed with respect to the other, we solve either an ASR or a TTS task. For TTS, we further need an action stream for the model to let us know when it is ready to receive a new word.

Architecture Components

  1. Transformer Backbone: A standard autoregressive Transformer (using RoPE positional encodings).
  2. Input Embedder: Learnt embedding tables for each discrete token stream. Crucially, the embeddings of parallel streams are simply summed together before being fed into the backbone.
  3. Conditional Sampler: A linear layer for text vocabulary, or a small Residual Vector Quantization (RVQ) Transformer (like Mimi codec) to sample multi-codebook audio tokens.
The DSM architecture utilizing a Transformer backbone with summed stream embeddings.

Advanced Streaming Tricks for TTS

To handle text input during streaming synthesis without knowing word durations in advance, DSM-TTS introduces two novel streams:

  • Action Output Stream: Predicts whether the next input text token should be a WORD token or a PAD token, controlling when the model pulls in new text.
  • Lookahead Text Stream: Feeds future text tokens into the model ahead of time, providing the necessary semantic context to plan natural pauses and prosody.
DSM-TTS inference mechanism featuring action and lookahead streams.

Delay Conditioning

To avoid retraining separate models for different latency requirements, the authors train DSM-ASR with randomized delays and condition the network on a cosine embedding of the target delay. This allows users to dynamically adjust the latency/quality trade-off at inference time.

Datasets

  • Pretraining: An massive audio collection of 2.5 million hours of English and French content, pseudo-labeled with word-level timestamps using whisper-timestamped.
  • ASR Finetuning: A 28,000-hour mixture of public datasets including LibriSpeech, VoxPopuli, GigaSpeech, AMI, SPGISpeech, TED-LIUM, and Earnings22. Long-form training was augmented using concatenated LibriSpeech segments and synthetic dialogs.
  • TTS Evaluation: News articles from NTREX-128 (for monologues) and 110 LLM-generated synthetic scripts (for dialogs), using voice conditioning from VCTK and CML.

Key Insights and Ideas

  • The Power of Constant Framerates: Forcing text and audio into a shared time grid allows the model to step through time uniformly. This unlocks standard, highly optimized Transformer batching during streaming inference—a feature missing from most streaming architectures.
  • Distillation Can Outperform the Teacher: Surprisingly, DSM-ASR achieved a lower Word Error Rate (6.4%) than the Whisper Medium teacher model (8.1%) used to generate its pretraining labels. The authors attribute this to low-temperature sampling smoothing out the teacher's systematic errors, combined with the regularizing effect of codebook dropout.
  • Dynamic Latency Control: Explicitly conditioning the model on the stream delay allows a single network weights file to behave as an ultra-low latency model or a high-accuracy near-offline model on the fly.

Key Results

Automatic Speech Recognition (ASR)

DSM-ASR achieves competitive performance with top-tier offline models and significantly outperforms existing streaming baselines. On short-form evaluation, it hits an average Word Error Rate (WER) of 6.4%.

Table 1: Short-form ASR performance. We report Word Error Rates (WER, %) for DSM-ASR and selected non-streaming baselines from the OpenASR leaderboard, along with streaming baselines.

For long-form audio (up to 2 hours), DSM-ASR maintains an average WER of 7.9%, demonstrating robust stability over infinite contexts without needing manual chunking or stitching.

Table 2: Long-form ASR performance. We report Word Error Rates (WER, %) across four long- form datasets for DSM-ASR and a set of streaming and non-streaming baselines.

Text-To-Speech (TTS) & Throughput

  • Quality: DSM-TTS achieved the lowest WER across both English and French monologues and dialogs compared to open-source alternatives (like F5-TTS and CosyVoice).
  • Throughput: Because it supports standard batching, a single DSM model running on an H100 GPU can process 400 audio streams simultaneously in real-time, yielding a 100x throughput advantage over architectures like Whisper-Streaming.

Limitations and Future Work

  • Domain Alignment Dependency: The framework relies heavily on the ability to align input and output domains to a shared time grid during pre-processing. This requires reliable word-level timestamping tools during dataset preparation.
  • Watermarking Vulnerability: In their security analysis, the authors discovered that passing watermarked audio through the Mimi neural audio codec almost entirely erases standard acoustic watermarks. This poses a challenge for tracking and securing open-source TTS deployments.
  • Future Directions: The authors plan to scale DSM beyond speech and text to handle more complex, multi-stream sequential multimodal tasks.

Summary updated

BibTeX
@misc{zeghidour2025streaming,
  author = {Neil Zeghidour and Eugene Kharitonov and Manu Orsini and Václav Volhejn and Gabriel de Marmiesse and Edouard Grave and Patrick Pérez and Laurent Mazaré and Alexandre Défossez},
  title = {{Streaming Sequence-to-Sequence Learning with Delayed Streams Modeling}},
  year = {2025},
  eprint = {2509.08753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.08753},
}
Figure