In the world of AI-driven communication, speed is just as important as accuracy. Imagine a real-time translation device that takes several seconds to process every sentence—the conversation would be disjointed and frustrating. While end-to-end (E2E) speech translation (ST) models have made great strides, they typically rely on autoregressive (AR) decoding, which generates text one token at a time. This sequential nature creates a significant bottleneck.
A new paper titled "Orthros: Non-autoregressive End-to-end Speech Translation with Dual-decoder" introduces a clever way to break this bottleneck. By combining the speed of non-autoregressive models with the "wisdom" of autoregressive ones, the authors achieve state-of-the-art quality with a massive boost in inference speed.
TL;DR
Orthros is a novel end-to-end speech translation framework that uses a dual-decoder architecture (one non-autoregressive and one autoregressive) sharing a single speech encoder. It achieves translation quality comparable to—and sometimes better than—traditional models while providing up to a 2.3x speedup over E2E autoregressive systems and a 4.6x speedup over cascaded systems.
What Problem Does This Paper Address?
The primary challenge in speech translation is the trade-off between latency and quality.
- The Autoregressive Bottleneck: Standard models generate translations word-by-word (left-to-right). Each new word depends on all previous words, making the process inherently slow and unable to fully utilize GPU parallelism.
- The Multimodality Problem: Non-autoregressive (NAR) models try to generate all words at once. However, because there are many valid ways to translate a sentence, NAR models often get "confused" and produce inconsistent or repetitive text.
- The Length Prediction Problem: In text-to-text translation, it's relatively easy to guess how long the output should be. In speech-to-text, the length of the audio (acoustic frames) varies wildly based on speaking rate and silence, making it very difficult for an NAR model to predict the correct number of target tokens.
Methods
The authors propose Orthros, named after the two-headed dog of Greek mythology, because it features two decoders sitting on top of a shared speech encoder:
- The NAR Decoder: Based on a Conditional Masked Language Model (CMLM). It generates a translation by starting with a sequence of
[MASK]tokens and iteratively refining them over a few passes (e.g., 4 or 10 iterations). - The AR Decoder: Instead of generating text, this decoder acts as a "judge." During inference, the NAR decoder generates several candidate translations of different lengths. The AR decoder then rescores these candidates in parallel. Because the AR decoder uses self-attention, it can "look" at all tokens in a candidate simultaneously during rescoring, adding almost no extra time to the process.
- SMART Training: They use Semi-AutoRegressive Training (SMART) to bridge the gap between how the model is trained (on ground truth) and how it's used (on its own potentially messy predictions).
- Joint Optimization: The entire system—encoder, NAR decoder, AR decoder, a length predictor, and an auxiliary ASR (Automatic Speech Recognition) task—is trained together using a multi-task loss function.
Datasets
The researchers evaluated Orthros on four major benchmarks:
- Must-C: English to German (En-De) and English to French (En-Fr).
- Fisher-CallHome Spanish: Spanish to English (Es-En).
- Libri-trans: English to French (En-Fr).
These datasets represent a mix of formal talks (Must-C), conversational telephone speech (Fisher-CH), and audiobooks (Libri-trans).
Key Insights and Ideas
- The AR Decoder is a "Cheap" Judge: The most brilliant part of Orthros is using the AR decoder for selection rather than generation. Generating text with an AR model is slow ($O(N)$), but scoring an existing sequence is fast ($O(1)$ with respect to sequence steps) because of the parallel nature of Transformers.
- NAR Models Love Big Vocabularies: Surprisingly, the authors found that NAR models perform better with larger vocabulary sizes (e.g., 16k BPE tokens) compared to AR models. Larger units (like whole words or longer subwords) reduce the number of conditional dependencies the model has to resolve, which plays to the strengths of parallel generation.
- Shared Encoders Matter: By sharing the encoder between the NAR and AR decoders, the model ensures that the "judge" (AR) and the "creator" (NAR) are looking at the exact same acoustic features, leading to better candidate selection.
Key Results
- Speed: Orthros achieved a 2.31x speedup over the standard AR Transformer and a 4.61x speedup over traditional cascaded (ASR + MT) systems.
- Accuracy: On the Must-C En-De task, Orthros (N4) achieved a BLEU score of 22.88, outperforming the baseline AR model (21.54).
- Latency: Average decoding time per sentence dropped from 271ms (AR) to roughly 111ms (Orthros).
Limitations and Future Work
- Encoder Bottleneck: While the decoding is much faster, the speech encoder itself (which processes hundreds of acoustic frames) remains a significant part of the total computation time. Future work could look into more efficient encoder architectures.
- Iterative Nature: Although it's "non-autoregressive," the CMLM still requires multiple iterations (T=4 or T=10) to reach peak quality. A "pure" one-pass NAR model that matches this quality remains an open challenge.
- Vocabulary Tuning: The paper notes that BPE (Byte Pair Encoding) sizes need to be tuned specifically for NAR vs. AR models, suggesting that standard "off-the-shelf" vocabularies might not be optimal for this architecture.
Summary updated