Abstract
Modern automatic speech recognition (ASR) systems achieve remarkable performance in clean environments, but their robustness often scales with model size, leaving smaller, more efficient models vulnerable to acoustic noise. This paper introduces Cleancoder, a novel preprocessor designed to extract and leverage the inherent denoising capabilities of large, pretrained Conformer-based ASR models. By utilizing a parallel weighted sum of internal representations and a specialized reconstruction decoder, Cleancoder transforms noisy audio into clean spectrograms. Our results demonstrate that Cleancoder significantly improves the Word Error Rate (WER) for smaller models in challenging signal-to-noise ratio (SNR) conditions and accelerates training convergence without degrading performance on clean speech.
Introduction
End-to-End (E2E) ASR systems, such as OpenAI’s Whisper, have set new benchmarks for noise robustness. However, these models often contain billions of parameters, making them computationally prohibitive for edge devices or resource-constrained research environments. Smaller ASR models typically lack the depth required to implicitly learn complex denoising patterns, leading to significant performance degradation in real-world, noisy environments.
Previous attempts to bridge this gap often relied on architecture-specific features tied to older convolutional models. Cleancoder addresses this limitation by providing an architecture-agnostic framework that taps into the "noise-cleaning" wisdom of modern attention-based architectures like the Conformer. This approach allows researchers to use large models as feature extractors to benefit downstream, lightweight ASR tasks.
The Cleancoder Architecture
The Cleancoder operates as an encoder-decoder preprocessor that can be integrated as a "plug-and-play" frontend for any ASR system. Its architecture is defined by three primary components:
1. Feature Extraction via Parallel Weighted Sum
Rather than relying solely on the final output of a pretrained Conformer encoder, Cleancoder extracts information from every internal block. Each layer's output is fed into a separate linear projection layer, and the results are combined via a weighted sum. This mechanism allows the model to learn which specific layers—often the earlier ones—contain the most effective denoising representations.
2. Reconstruction Decoder
Conformer encoders typically reduce the temporal resolution of audio by a factor of four to improve efficiency. To restore the original resolution for the downstream ASR, Cleancoder employs a decoder consisting of four parallel Highway Networks. These networks work in tandem to reconstruct the four missing frames, effectively upsampling the representation back into a full-resolution, clean spectrogram.
3. Training Objective
The system is trained using an L1 Loss (Mean Absolute Error) function. During training, the Cleancoder compares its predicted "clean" spectrogram against the ground-truth clean audio from a paired noisy/clean dataset. Once trained, the original large model remains frozen, and the Cleancoder acts as a standalone frontend.
Experimental Setup
The researchers evaluated Cleancoder using two primary datasets:
- Noisy Speech Database (NSD): A dataset containing pairs of clean and noisy speech (including babble and street noise) at various SNRs (2.5 to 17.5). This served as the primary training and evaluation set for noise robustness.
- LibriSpeech: A standard corpus of clean English speech used to ensure that the preprocessor did not introduce artifacts that would harm performance in ideal acoustic conditions.
Key Results and Insights
Enhanced Robustness and Accuracy
Cleancoder demonstrated a significant reduction in Mean Absolute Error (MAE) across all tested noise levels. When integrated with a pretrained Conformer Transducer, it provided substantial Word Error Rate (WER) improvements in high-noise scenarios. Specifically, when training a small model from scratch on the NSD dataset, the "Large" variant of Cleancoder yielded an absolute improvement of nearly 4% in WER.
Faster Convergence
Beyond final accuracy, the inclusion of Cleancoder-processed audio influenced the training dynamics of downstream models. Smaller ASR models trained on Cleancoder outputs reached lower error rates faster than those trained on raw noisy data, suggesting that the preprocessor simplifies the optimization landscape for the student model.
Stability on Clean Speech
A critical requirement for any preprocessor is that it must not degrade performance when noise is absent. Testing on LibriSpeech confirmed that Cleancoder is stable; it maintained baseline performance on clean audio, making it safe for "always-on" deployment.
Discussion and Limitations
While Cleancoder is highly effective, the researchers identified a slight mismatch between the training objective and the final goal. L1 loss effectively cleans the spectrogram visually, but a "clean-looking" spectrogram is not always perfectly optimized for an ASR model's internal logic. Furthermore, while the "Large" Cleancoder variant was robust, the "Medium" variant occasionally introduced minor artifacts in very high SNR (clean) conditions, suggesting that higher capacity is beneficial for maintaining transparency.
Conclusion
Cleancoder represents a significant step toward making high-performance ASR accessible on smaller devices. By distilling the denoising power of large-scale Transformers into a modular frontend, it allows smaller models to punch above their weight class in noisy environments. Future work will explore alternative loss functions, such as Ideal Ratio Masking (IRM), and validate the approach across even more diverse architectures like Whisper.
Summary updated