arXiv:2609.03622cs.SDSep 2026

Manuscript Offprint

arXiv:2609.03622

Test-time adaptation for speech enhancement with an autoregressive speech prior

Sofiene Kammoun, Simon Leglaive, Xavier Alameda-Pineda, Timo Gerkmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Test-time adaptation (TTA) offers a promising direction for improving speech enhancement models under mismatched acoustic conditions, without requiring access to labeled target data. In this work, we propose a single-utterance TTA method that regularizes a pretrained speech enhancement model using an autoregressive prior trained on clean speech latent representations extracted from a neural audio codec. Adaptation is performed by minimizing the Kullback-Leibler divergence between the enhanced speech distribution and the clean speech prior. Experiments across multiple noisy speech datasets show consistent improvements in speech quality, particularly under training-testing noise mismatch conditions. Code and audio examples are available online.¹

Index Terms— Speech enhancement, test-time adaptation, neural audio codec, autoregressive model

1. INTRODUCTION

Speech enhancement (SE) aims to recover a clean speech signal from a degraded recording, typically affected by environmental noise. Recent SE systems predominantly rely on supervised deep learning models trained on paired noisy-clean speech data. While these approaches achieve strong performance under matched training and testing conditions, they can degrade significantly when the acoustic characteristics encountered at test time differ greatly from those seen during training, or when the input signal contains unseen corruption types such as reverberation, bandwidth reduction, clipping, or codec artifacts. In practical deployments, access to clean speech target signals or labeled training data is unavailable, motivating the adaptation of a supervised SE to the test distribution.

Existing adaptation strategies include supervised fine-tuning, unsupervised domain adaptation (UDA), test-time training (TTT), and test-time adaptation (TTA) [1]. Fine-tuning and UDA require access to the labeled source data [2, 3], while TTT constrains the original supervised training pipeline with auxiliary loss functions [4, 5]. In contrast, TTA methods update the pretrained model during inference using unsupervised loss functions, without modifying the original supervised training procedure [6, 7, 8, 9]. A commonly used variant, referred to as single-instance or -utterance TTA, adapts the model independently for each test sample and reinitializes the model to its pretrained parameters after each update, thereby mitigating catastrophic forgetting [10].

Domain adaptation has been extensively studied for classification tasks, where many methods exploit statistical properties of

model outputs. Those include techniques such as entropy minimization [1, 10, 11] and feature alignment [12, 13]. However, such approaches do not readily translate to SE, which is typically formulated as a regression problem rather than a classification task.

Early approaches to domain adaptation for SE drew inspiration from the TTT paradigm and generally combined labeled source data with unlabeled target data through adversarial learning [14, 15] or reconstruction-based consistency objectives [2, 3]. These methods require access to the source dataset during adaptation, which limits their practicality in real-world deployment. The TTT-based method [4] incorporates an auxiliary self-supervised loss during supervised training, which is then used only for adaptation on the unlabeled target data. Although effective, this method constrains the original training pipeline and cannot be applied to arbitrary pretrained SE models. This is not the case for the method proposed in [3], which explores the use of self-supervised models for speech representation learning. This approach performs adaptation by identifying samples in the source dataset whose latent representations are closest to those of the target unlabeled samples. However, this approach requires access to the source dataset during adaptation.

More recent research has focused on TTA methods that operate using exclusively unlabeled target data. RemixIT [16] and LaDen [8] both rely on a teacher-student framework where a student model is trained on the target data using pseudo-clean speech labels obtained with a teacher model. The method proposed in [9] introduces a single-utterance TTA method for SE methods based on time-frequency mask prediction. The approach fosters predicted masks to approach either 0 or 1 by minimizing their entropy, which encourages the model to produce more confident and discriminative masks for unseen noise conditions.

In this paper, we propose a novel single-utterance TTA method for SE that leverages an autoregressive prior trained on clean speech latent representations extracted from a pretrained neural audio codec (NAC). The core idea is to use the prior as a measure of how likely a given enhanced representation resembles clean speech, and to adapt the pretrained SE model by minimizing the Kullback–Leibler (KL) divergence between the distribution of the enhanced speech and the prior. As illustrated in Figure 1, a supervised SE model before adaptation can generalize poorly on unseen noise types, providing an output whose log-density under the prior is substantially lower than that of clean speech. Through TTA with the KL divergence, the enhanced output is progressively pushed toward regions of higher prior log-density, effectively encouraging it to align with the structure learned from clean data. Experimental results on multiple real and synthetic noisy speech benchmarks show that the proposed method consistently improves speech quality, especially when the pretrained SE model operates under mismatched noise conditions.

¹https://sofienekammoun.github.io/TAAP-SE/ This research was partly supported by the ANR project ANR-23-CE23-0009.

Figure

Fig. 1. Visualization of the clean-speech prior log-density and its role in TTA. Top: Spectrograms of a noisy input signal, the output of the pretrained SE model before and after adaptation, and the clean reference speech. Bottom: Normalized histogram of log-density values for the pretrained prior evaluated on clean and noisy speech datasets. Vertical lines indicate the log-density values for the examples shown on top. The proposed TTA method pushes the enhanced output toward higher prior log-density values and closer to the clean reference.

References (33)