Introduction
Spoken Language Models (SLMs) represent a significant frontier in artificial intelligence, aiming to extend the reasoning capabilities of Large Language Models (LLMs) to the auditory domain. Typically, these models are constructed by integrating a pre-trained speech encoder with a frozen or fine-tuned LLM via an adapter module. However, a persistent challenge in this architecture is the "modality gap." Speech signals are inherently high-dimensional, temporally elongated, and saturated with paralinguistic information—such as pitch, tempo, and background noise—that is irrelevant to linguistic content.
This paper introduces Optimal Transport Regularization (OTReg), a parameter-free method designed to bridge this gap. By leveraging the mathematical framework of Optimal Transport, OTReg forces speech embeddings to align more precisely with their corresponding text representations, enhancing the model's ability to generalize across diverse and unfamiliar audio environments.
The Challenge: Generalization and the Modality Gap
While current SLMs achieve impressive results on in-domain datasets, their performance often degrades significantly when exposed to out-of-distribution data. This "generalization collapse" occurs because models often learn to exploit paralinguistic shortcuts—memorizing specific acoustic patterns or recording conditions—rather than internalizing the underlying linguistic structure.
To achieve true cross-domain robustness, the speech representations must be mapped into the same semantic space as text. Existing methods often rely on frame-by-frame annotations or complex intermediate classifiers to prune speech signals. OTReg addresses this by treating alignment as a global optimization problem, ensuring that the "mass" of speech embeddings is efficiently transported to the corresponding text embeddings.
Methodology: Optimal Transport Regularization (OTReg)
OTReg treats the alignment between speech and text as a mathematical transportation problem, utilizing the Sinkhorn algorithm to find an optimal mapping. The method consists of several key components:
1. Optimal Transport Formulation
The method defines transformed speech embeddings as a "source" distribution and unique transcript embeddings as a "target" distribution. By calculating the cosine similarity between these two sets, the model determines the most efficient way to map speech frames to text tokens. This approach is inherently order-invariant, allowing the model to focus on semantic matching regardless of the temporal stretching or compression of the speech signal.
2. The OTReg Loss Function ($L_{OT}$)
The regularization loss is composed of two primary objectives:
- Transport Cost: This minimizes the total "distance" required to move speech mass to text mass, effectively pulling speech embeddings closer to their textual counterparts in the latent space.
- Sparsity Constraint: This encourages a one-to-one mapping. It prevents the model from "blurring" a single speech segment across multiple text tokens, ensuring that each acoustic unit corresponds to a distinct linguistic unit.
3. OT-based Compression and Training
Beyond regularization, OTReg facilitates intelligent compression. By analyzing the similarity matrix, the model merges adjacent speech frames that are semantically redundant and discards frames that represent silence or padding. The training follows a two-stage process: an initial Supervised Fine-Tuning (SFT) stage to orient the adapter, followed by a joint optimization stage using both standard language modeling loss and the $L_{OT}$ loss.
Experimental Results
The researchers evaluated OTReg on multilingual Automatic Speech Recognition (ASR) tasks, focusing on English, French, and Spanish. While in-domain performance remained high, the most significant gains were observed in cross-domain generalization tests using the CoVoST-2 and FLEURS datasets.
- English ASR: On the CoVoST-2 dataset, the baseline SLM recorded a Word Error Rate (WER) of 16.06%. With the application of OTReg, the WER dropped to 13.12%.
- Multilingual Robustness: In Spanish cross-domain evaluations, OTReg improved the WER from 12.42% to 9.54%.
These results demonstrate that OTReg consistently outperforms Connectionist Temporal Classification (CTC)-based alignment. By providing direct embedding-to-embedding supervision, OTReg allows the model to ignore acoustic noise and focus on the "linguistic core" of the audio.
Discussion and Limitations
A key insight of this work is the use of unique transcript embeddings. By extracting unique representations for tokens, the authors avoid the ambiguity of repetitive words, providing a more stable target for alignment. Furthermore, because OTReg is parameter-free, it adds no complexity to the model architecture itself, though it does introduce a minor computational overhead during the training phase due to the iterative nature of the Sinkhorn algorithm.
Currently, the method has been primarily validated on ASR tasks. Future research will explore the efficacy of OTReg in more complex speech-reasoning tasks, such as spoken question answering or translation, where the output is not a direct transcription of the input.
Conclusion
OTReg provides a robust, mathematically grounded solution to the modality gap in Spoken Language Models. By enforcing a strict semantic alignment between speech and text, it mitigates overfitting to paralinguistic noise and significantly improves the model's ability to generalize to new speakers, accents, and recording environments. This work paves the way for more reliable and versatile speech-to-text understanding systems.
Summary updated