Abstract
The last year has seen astonishing progress in text-prompted image generation premised on the idea of a cross-modal representation space in which the text and image domains are represented jointly. In ASR, this idea has found application as joint speech-text encoders that can scale to the capacities of very large parameter models by being trained on both unpaired speech and text. While these methods show promise, they have required special treatment of the sequence-length mismatch inherent in speech and text, either by up-sampling heuristics or an explicit alignment model. In this work, we offer evidence that joint speech-text encoders naturally achieve consistent representations across modalities by disregarding sequence length, and argue that consistency losses could forgive length differences and simply assume the best alignment. We show that such a loss improves downstream WER in both a large-parameter monolingual and multilingual system.
Introduction
Building models that understand both speech and text—"joint" encoders—is a fundamental goal in Automatic Speech Recognition (ASR). The objective is to map both modalities into a shared mathematical space where the acoustic signal of a word and its written form are represented similarly. However, a significant challenge arises from the "sequence-length mismatch": speech signals are typically much longer and more variable in duration than their corresponding text transcripts.
Traditionally, researchers have addressed this by either using manual heuristics (like repeating text tokens) or training explicit alignment models. Both approaches add complexity and potential error. This work investigates whether consistency can be enforced between speech and text representations without prior knowledge of their alignment.
Methods
The proposed architecture utilizes a shared encoder, based on the Conformer architecture, positioned above modality-specific front-ends for audio and text.
Best-Alignment Consistency Loss
The core innovation is a consistency loss function that "forgives" misalignment by searching for the optimal fit between modalities. Inspired by Dynamic Time Warping (DTW), the model calculates a distance matrix for all possible pairs of audio and text frames. It then identifies the path through this matrix that minimizes the total distance, representing the "best alignment."
The model is penalized based on the distance along this optimal path. To handle the non-differentiable nature of path selection, a "pass-through" approximation is used, where gradients are calculated as if the identified path were fixed during the forward pass.
Experimental Setup
The method was evaluated on two massive scales:
- Monolingual (English): A dataset consisting of ~200,000 hours of supervised speech and an unsupervised text corpus of ~200 billion examples.
- Multilingual: A corpus covering 11 languages (including French, Spanish, Arabic, Russian, Hindi, and Japanese) consisting of roughly 140 million paired examples.
Results and Discussion
Experimental results demonstrate that the "best-alignment" loss consistently outperforms baseline models using simple heuristic upsampling.
Multilingual Performance
The impact was particularly significant in multilingual settings. As shown in the results table, Word Error Rate (WER) improved across various languages. For instance, German (De) saw a reduction from 14.8 to 13.4, and Arabic (Ar) improved from 12.6 to 11.8.
Key Insights
- Emergent Alignment: Joint encoders naturally begin to align representations even without explicit alignment training, a phenomenon that strengthens in deeper network layers.
- Efficiency: The approach adds no extra parameters to the final model and the alignment calculation does not significantly impact training time.
- Robustness: Improvements were observed in both clean and noisy test environments, indicating more robust learned representations.
Conclusion and Future Work
This work demonstrates that a "forgiving" alignment approach effectively bridges the gap between speech and text modalities. While hyperparameter tuning for the consistency loss weight remains critical, the method offers a parameter-efficient way to improve ASR performance. Future research may extend this "best-alignment" principle to other cross-modal tasks such as video-text or sensor-fusion modeling.
Summary updated