Is Self-Supervised Learning Enough to Fill in the Gap? A Study on Speech Inpainting
Ihab Asaad, Maxime Jacquelin, Olivier Perrotin, Laurent Girin, Thomas Hueber
TL;DR
This work investigates whether a self-supervised speech encoder trained on a masking pretext can perform speech inpainting without fine-tuning, by pairing HuBERT with a neural vocoder. It compares two SSL-based pipelines—pre-trained HuBERT with a trained HiFi-GAN decoder (I_PT) and fine-tuned HuBERT with a frozen HiFi-GAN (I_FT)—against baselines including an ASR-TTS approach, across in-domain and out-of-domain data, single/multi-speaker conditions, and informed/blind inpainting. Objective and perceptual evaluations show that SSL-based methods outperform baselines, reconstructing gaps up to 200 ms and sometimes 400 ms, with FT favored for single-speaker and PT advantageous for multi-speaker contexts. The results demonstrate that SSL pretext tasks transfer effectively to inpainting, enabling robust speech reconstruction without task-specific SSL fine-tuning in many settings, and they highlight the potential of SSL-based inpainting for efficient, adaptable speech restoration. The study also provides a practical framework, code, and demo to facilitate further exploration of SSL-driven speech inpainting and its relation to linguistic predictability.
Abstract
Speech inpainting consists in reconstructing corrupted or missing speech segments using surrounding context, a process that closely resembles the pretext tasks in Self-Supervised Learning (SSL) for speech encoders. This study investigates using SSL-trained speech encoders for inpainting without any additional training beyond the initial pretext task, and simply adding a decoder to generate a waveform. We compare this approach to supervised fine-tuning of speech encoders for a downstream task -- here, inpainting. Practically, we integrate HuBERT as the SSL encoder and HiFi-GAN as the decoder in two configurations: (1) fine-tuning the decoder to align with the frozen pre-trained encoder's output and (2) fine-tuning the encoder for an inpainting task based on a frozen decoder's input. Evaluations are conducted under single- and multi-speaker conditions using in-domain datasets and out-of-domain datasets (including unseen speakers, diverse speaking styles, and noise). Both informed and blind inpainting scenarios are considered, where the position of the corrupted segment is either known or unknown. The proposed SSL-based methods are benchmarked against several baselines, including a text-informed method combining automatic speech recognition with zero-shot text-to-speech synthesis. Performance is assessed using objective metrics and perceptual evaluations. The results demonstrate that both approaches outperform baselines, successfully reconstructing speech segments up to 200 ms, and sometimes up to 400 ms. Notably, fine-tuning the SSL encoder achieves more accurate speech reconstruction in single-speaker settings, while a pre-trained encoder proves more effective for multi-speaker scenarios. This demonstrates that an SSL pretext task can transfer to speech inpainting, enabling successful speech reconstruction with a pre-trained encoder.
