Introduction
Traditional speech-to-text systems are primarily autoregressive, generating text sequentially. While accurate, this process is inherently slow and lacks parallelization. Align-Refine introduces a non-autoregressive (NAR) approach that achieves the accuracy of these slow models while operating up to 14x faster. By iteratively refining latent "alignments"—the mapping of audio frames to text—rather than the text itself, the model enables flexible error correction, such as word insertion or deletion, in just a few parallel steps.
The Challenge of Non-Autoregressive Models
Standard NAR models often produce "globally inconsistent" outputs, such as repeating words because different parts of the model lack coordination. Previous solutions involved "infilling" (masking and re-predicting), but these typically fix sentence length at the start. If the initial length estimate is incorrect, the model cannot easily adjust, leading to persistent errors.
Methods: Iterative Realignment
The core innovation of this work is Iterative Realignment. Instead of refining the final word sequence, the model refines the latent Connectionist Temporal Classification (CTC) alignment. In CTC, labels (letters, subwords, or "blanks") are assigned to every audio slice.
The process involves:
- Encoder: A Transformer encoder generates an initial, noisy alignment guess from the audio.
- Refiner: A non-causal Transformer decoder takes this guess and the audio features to produce a refined alignment.
- Iteration: The refiner can run multiple times, using its previous output to improve. Working at the alignment level allows it to "insert" letters by replacing blanks or "delete" them by converting them to blanks.
- No Masking: Unlike infilling models, Align-Refine does not hide text during training, reducing train-test mismatch and increasing robustness.
Key Results
Align-Refine was evaluated on the WSJ (Wall Street Journal) and LibriSpeech benchmarks.
- Speed: On the WSJ dataset, Align-Refine matched the accuracy of a strong autoregressive baseline while being 14x faster, achieving a Real-Time Factor (RTF) of 0.068 compared to 0.97.
- Accuracy: On the challenging LibriSpeech "test-other" subset, it reached a Word Error Rate (WER) of 9.0% without an external language model—a 19% relative improvement over previous state-of-the-art iterative NAR models like Imputer.
- Efficiency: The model outperformed Imputer while requiring approximately 1/4th of the effective processing layers.
Insights and Limitations
The model's ability to edit alignments bypasses the need for a separate length predictor, as length is implicitly handled by audio duration. Furthermore, the non-causal refiner can correct multiple errors across a sentence simultaneously. For simpler utterances, the model often converges in 1-2 iterations, allowing for "early exiting" to save computation.
However, limitations remain. The 4x downsampling in the CNN frontend limits the density of characters in short audio segments. Additionally, in very slow speech, coordinating changes across many frames for a single word can be challenging. Future work may involve integrating non-autoregressive language models like BERT to further enhance output quality.
Summary updated