Introduction
Generative Spoken Language Models (SLMs), such as Meta’s Spirit LM or Microsoft’s Phi-4-Multimodal, represent a significant leap in processing interleaved audio and text. However, these models face a persistent challenge: acoustic shift. Real-world conditions—ranging from background noise and reverberation to varying microphone qualities—often cause performance to degrade sharply compared to controlled training environments.
Traditionally, addressing this requires offline domain adaptation, a process that is both data-intensive and slow. To overcome these hurdles, we introduce SLM-TTA, the first framework designed for Test-Time Adaptation (TTA) of generative SLMs. By allowing models to adjust to specific acoustic environments on the fly using only the incoming test audio, SLM-TTA significantly enhances robustness without requiring labeled data or extensive fine-tuning.
The SLM-TTA Framework
The core of SLM-TTA is episodic adaptation. In this approach, the model adapts to a small batch of incoming data, performs its task, and then resets to its original state. This prevents the "model drift" or collapse often associated with continuous unsupervised learning.
The framework incorporates several key innovations:
- Targeted Parameter Updates: Rather than updating the entire multi-billion parameter model, SLM-TTA focuses on a tiny fraction (~0.05%) of parameters—specifically normalization and convolutional subsampling layers (approximately 2.58M parameters). This makes the adaptation computationally efficient for real-time applications.
- Unsupervised Objectives: The model guides its own adaptation using two primary strategies: Entropy Minimization, which encourages more certain predictions by leveraging the full probability distribution, and Pseudo-Labeling, which treats high-confidence predictions as ground truth.
- Confidence-Aware Filtering: To prevent the model from learning from its own errors, a threshold ($\tau$) is applied. Only tokens where the model's confidence exceeds this threshold contribute to the parameter updates, effectively filtering out noisy signals.
Experimental Setup and Evaluation
We evaluated SLM-TTA across three diverse tasks:
- Automatic Speech Recognition (ASR): Tested on LibriSpeech (test-clean).
- Speech Translation (ST): Evaluated using CoVoST 2 across four language pairs (German/Chinese to/from English).
- Audio Understanding: Assessed using 19 tasks from the AIR-Bench Foundation benchmark.
To simulate real-world complexity, we introduced noise from the WHAM! dataset and modeled 400 distinct room environments with varying reverberation levels using the pyroomacoustics toolkit.
Key Insights and Performance
Our experiments revealed several critical insights into the behavior of TTA for generative models:
- Entropy vs. Pseudo-Labeling: Entropy minimization consistently outperformed pseudo-labeling. This is likely because entropy minimization utilizes the full probability distribution of the output, whereas pseudo-labeling relies on a single "best guess" that may be incorrect.
- The Confidence Trade-off: The optimal confidence threshold ($\tau$) is task-dependent. For ASR, where the model is already relatively strong, a high threshold ($\tau=0.8$) ensures stability. Conversely, for harder tasks like translation where baseline confidence is lower, a threshold of 0 (no filtering) proved more effective by providing sufficient data for adaptation.
- Robustness in Chaos: Interestingly, TTA showed greater relative improvements in highly reverberant environments compared to simple noisy ones, suggesting it is particularly effective at correcting significant deviations from training data.
As shown in the results table, SLM-TTA achieved a 14.41% relative reduction in Word Error Rate (WER) for ASR and gains of up to +1.97 BLEU points in speech translation. In challenging QA settings, accuracy improved by up to +0.79%. These results demonstrate that even a small amount of test-time data can lead to substantial performance recoveries.
Conclusion and Future Work
SLM-TTA demonstrates that generative SLMs can be made significantly more robust to environmental noise through efficient, on-the-fly adaptation. By updating only a fraction of weights, the framework remains suitable for deployment on resource-constrained platforms like mobile devices or edge hardware.
Future research will explore extending TTA to open-ended "chat-style" interactions where output is more subjective. Additionally, moving from episodic to stable "continuous" adaptation—where the model maintains environmental knowledge over long sessions—remains a key goal for practical real-world deployment.
Summary updated