Updating Only Encoders Prevents Catastrophic Forgetting of End-to-End ASR Models

Yuki Takashima, Shota Horiguchi, Shinji Watanabe, Paola Trindade Garcia, Yohei Kawaguchi · DOI

Abstract

Incremental domain adaptation is essential for maintaining the performance of automatic speech recognition (ASR) models in evolving acoustic environments. However, end-to-end (E2E) ASR models often suffer from catastrophic forgetting, where the model loses its ability to transcribe the original source domain while learning a new target domain. This paper investigates parameter-efficient strategies to mitigate this issue. We demonstrate that adapting only the linear layers of the encoder—specifically the Multi-Head Attention (MHA) and Feed-Forward Network (FFN) modules—effectively prevents catastrophic forgetting. Furthermore, we introduce an element-wise parameter selection method that further reduces the number of fine-tuning parameters while maintaining high accuracy on both source and target domains.

Introduction

When ASR models trained on clean, narrated speech (e.g., LibriSpeech) are deployed in real-world scenarios like noisy meetings (e.g., AMI), an acoustic mismatch occurs. Incremental domain adaptation aims to update the model with target-domain data. Traditional regularization methods like Elastic Weight Consolidation (EWC) or architectural expansion are often computationally prohibitive for massive E2E models. This research seeks a simpler, more efficient approach by identifying which specific model components are responsible for learning new acoustic features versus preserving general linguistic knowledge.

Methodology

We evaluated two primary E2E architectures: a Transformer-based model (Hybrid CTC/Attention) and an RNN-Transducer (RNN-T) with a Conformer encoder. Our investigation followed a two-step approach:

  1. Module-wise Selection: The model was partitioned into functional blocks (e.g., Input Embedding, Encoder MHA/FFN, Decoder MHA/FFN, Output layers). We systematically fine-tuned different combinations to observe the trade-off between target-domain improvement and source-domain degradation.
  2. Element-wise Selection: Within the most effective modules, we applied pruning-inspired techniques to select a subset of parameters for updating. We compared random selection against magnitude-based selection (updating only the largest or smallest weights).

Experimental Results

The Encoder as the Optimal Adaptation Site

Our experiments on the LibriSpeech (source) and AMI (target) datasets revealed that the encoder is the primary driver of successful adaptation. As shown in the figure below, updating the encoder's MHA and FFN modules (labeled 3 & 4) consistently resulted in the lowest Word Error Rate (WER) on the AMI corpus while keeping the LibriSpeech WER near its baseline.

WER performance across different model architectures. Updating encoder modules (3 & 4) minimizes degradation on the source domain (LibriSpeech) while improving target domain (AMI) accuracy.

In contrast, fine-tuning the decoder or output layers (which function similarly to a language model) led to significant catastrophic forgetting. This suggests that the model's linguistic knowledge, learned from the large source dataset, is fragile and should be preserved, while the acoustic interpretation (handled by the encoder) can be safely adapted to new environments.

Efficiency through Element-wise Selection

To further optimize the adaptation process, we applied element-wise selection. By focusing updates on a subset of parameters within the encoder's MHA and FFN layers, we achieved competitive results with significantly fewer updates.

Element-wise parameter selection results comparing the whole model to specific encoder modules (MHA & FFN). Updating only encoder parameters consistently prevents catastrophic forgetting.

As illustrated in the comparison above, selecting parameters from the whole model (right) leads to a much higher variance and significant drift in source-domain WER (x-axis). However, when selection is restricted to the encoder modules (left), the model maintains its source-domain performance even as target-domain accuracy improves. Magnitude-based selection of "larger" weights proved particularly effective, allowing for a reduction in updated parameters to approximately 37.8M without sacrificing performance.

Conclusion

This study demonstrates that preventing catastrophic forgetting in E2E ASR models does not require complex regularization or massive parameter overhead. By selectively updating only the linear layers of the encoder, models can adapt to new acoustic domains while retaining their original capabilities. This parameter-efficient approach is both simpler to implement and more effective than traditional full-model fine-tuning or complex regularization techniques like EWC.

Summary updated

Abstract

In this paper, we present an incremental domain adaptation technique to prevent catastrophic forgetting for an end-to-end automatic speech recognition (ASR) model. Conventional approaches require extra parameters of the same size as the model for optimization, and it is difficult to apply these approaches to end-to-end ASR models because they have a huge amount of parameters. To solve this problem, we first investigate which parts of end-to-end ASR models contribute to high accuracy in the target domain while preventing catastrophic forgetting. We conduct experiments on incremental domain adaptation from the LibriSpeech dataset to the AMI meeting corpus with two popular end-to-end ASR models and found that adapting only the linear layers of their encoders can prevent catastrophic forgetting. Then, on the basis of this finding, we develop an element-wise parameter selection focused on specific layers to further reduce the number of fine-tuning parameters. Experimental results show that our approach consistently prevents catastrophic forgetting compared to parameter selection from the whole model.
BibTeX
@inproceedings{takashima2022updating,
  author = {Yuki Takashima and Shota Horiguchi and Shinji Watanabe and Paola Trindade Garcia and Yohei Kawaguchi},
  title = {{Updating Only Encoders Prevents Catastrophic Forgetting of End-to-End ASR Models}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-11282},
}
Figure