Abstract
Modern Automatic Speech Recognition (ASR) systems face a significant operational challenge: maintaining performance as new data becomes available without incurring the prohibitive costs of retraining from scratch. Traditional fine-tuning on new data often leads to "catastrophic forgetting," where the model loses previously acquired knowledge. This paper presents an online continual learning framework for end-to-end ASR that utilizes Gradient Episodic Memory (GEM) combined with a novel selective sampling strategy. By constraining gradient updates to prevent interference with past knowledge and prioritizing the replay of "surprising" historical data, the proposed method achieves Word Error Rates (WER) comparable to full retraining while reducing computational overhead by up to 98% in high-frequency streaming scenarios.
Introduction
In real-world deployments, speech recognition models are rarely static. As users interact with smart speakers or mobile devices, a continuous stream of new acoustic data is generated. Ideally, these models should learn incrementally from this stream. However, the field of ASR has historically relied on two suboptimal approaches for model updates: full retraining and simple fine-tuning.
Full retraining involves combining all historical data with new arrivals to train a model from scratch. While this maintains the highest accuracy, it is computationally expensive, slow, and environmentally taxing. Conversely, fine-tuning—training only on the most recent data—is efficient but suffers from catastrophic forgetting. In this scenario, the model's weights are optimized for the new data distribution, often at the expense of its performance on older data. This paper addresses the "single-task online scenario," where the task (speech recognition) remains constant, but the data arrives in a continuous, unlabeled stream without clear boundaries.
Methodology
The researchers from Carnegie Mellon University propose an Online Gradient Episodic Memory (O-GEM) framework specifically tailored for the demands of ASR.
Gradient Episodic Memory (GEM)
The core of the approach involves maintaining a small "episodic memory"—a buffer containing a subset of past data. When the model processes new data, GEM calculates the necessary gradient updates. Before applying these updates, the system compares them against gradients derived from the memory buffer. If a proposed update would negatively impact performance on historical data (indicated by conflicting gradient directions), GEM projects the new gradient into a non-interfering subspace. This ensures that learning new information does not degrade existing capabilities.
Selective Sampling and Soft Constraints
To enhance the efficiency of the memory buffer, the authors introduced two key innovations:
- Selective Sampling: Rather than replaying random samples from the buffer, the system selects historical examples that have a lower cosine similarity to the current gradient. By prioritizing "unexpected" or dissimilar samples, the model focuses its computational resources on data that provides the most informative contrast to current learning, mimicking biological learning processes.
- Soft Constraints: The authors introduced a "slack variable" into the optimization problem. This relaxation of strict GEM constraints allows for greater flexibility during the online learning process, preventing the model from becoming overly rigid and facilitating better convergence on the incoming data stream.
Experimental Setup
The framework was evaluated using datasets that simulate natural growth over time:
- TED-LIUM (v1, v2, and v3): The researchers used v1 as the base model and treated subsequent releases (v2 and v3) as the incoming data stream.
- Wall Street Journal (WSJ): This was used to test the generalizability of the method across different data distributions (WSJ0 to WSJ1).
To simulate a true online environment, the new data was partitioned into $N$ sequential subsets, ranging from 2 to 200 splits. This allowed the researchers to observe how the model handled varying frequencies of data arrival.
Results and Discussion
Accuracy and Stability
The O-GEM approach demonstrated remarkable stability compared to standard fine-tuning. On the TED-LIUM 3-2 task, O-GEM achieved a WER of 8.6%, coming within 0.5% of the "All Data" gold standard (8.1%). In contrast, simple fine-tuning on new data resulted in a WER of 9.8%. Furthermore, while fine-tuning performance often fluctuated wildly as new data arrived, O-GEM showed steady, incremental improvement, effectively accumulating knowledge over time.
Computational Efficiency
The most significant advantage of the proposed framework is its efficiency. As the number of data splits ($N$) increased, the savings relative to full retraining grew exponentially:
- At 10 splits, O-GEM required only 23.8% of the computation time of full retraining.
- At 200 splits, the requirement dropped to less than 2%.
This efficiency makes the approach highly viable for production environments where data arrives in small, frequent batches.
Compatibility with Modern Architectures
The study also confirmed that this continual learning framework is compatible with modern Self-Supervised Learning (SSL) frontends, such as HuBERT. This suggests that the method can be integrated into state-of-the-art ASR pipelines without sacrificing the benefits of large-scale pre-training.
Conclusion and Future Work
This research provides a robust solution to the problem of catastrophic forgetting in online ASR. By combining gradient constraints with intelligent selective sampling, the O-GEM framework allows models to evolve alongside their data streams with minimal computational overhead.
Future research may address the long-term management of the episodic memory buffer, exploring compression or more sophisticated "forgetting" mechanisms to ensure the system remains scalable over years of operation. Additionally, while the current method is significantly faster than retraining, reducing the overhead of the quadratic programming required for gradient projection remains an area for further optimization.
Summary updated