Online Continual Learning of End-to-End Speech Recognition Models

Muqiao Yang, Ian Lane, Shinji Watanabe

TL;DR

This paper introduces an efficient framework for online continual learning in end-to-end speech recognition. By adapting the Gradient Episodic Memory (GEM) algorithm with a novel selective sampling strategy, the authors enable ASR models to learn from streaming data without retraining from scratch, achieving near-state-of-the-art accuracy at a fraction of the computational cost.

What Problem Does This Paper Address?

Traditional machine learning models are "static"—they are trained on a fixed dataset and deployed. In real-world applications like voice transcription or search, new data arrives constantly. To incorporate this data, engineers typically face two bad choices:

  1. Retrain from scratch: This yields the best accuracy but is computationally expensive, slow, and environmentally unfriendly due to high carbon emissions.
  2. Fine-tune on new data only: This is fast but leads to Catastrophic Forgetting, where the model abruptly loses the ability to recognize speech patterns it learned previously.

While most continual learning research focuses on switching between different tasks (e.g., moving from English to French), this paper tackles the more common industrial scenario: a single-task stream where the dataset simply grows over time without explicit boundaries.

Methods

The authors propose Online GEM (O-GEM), a replay-based approach tailored for speech.

  • Gradient Episodic Memory (GEM): The model maintains a small "episodic memory" buffer of past samples. When training on new data, GEM treats the gradients of these past samples as constraints. It ensures that the weight updates for new data do not increase the loss on old data by keeping the inner product of their gradients non-negative.
  • Selective Sampling Strategy: Instead of replaying random past samples, the authors use a neuroscience-inspired strategy. They assign a probability score to samples based on cosine similarity; samples that are less similar to the current memory (i.e., "unexpected" or "surprising" events) are prioritized for replay.
  • Relaxed Constraints: Because there are no clear task boundaries in a continuous stream, the authors introduce a slack variable to the GEM quadratic programming problem. This "softens" the constraints, allowing the model to converge more effectively on non-stationary data.

Datasets

The study utilizes datasets that naturally represent the evolution of data over time:

  • TED-LIUM (v1, v2, v3): A series of corpora derived from TED talks. Each version is an expansion of the previous one, providing a perfect benchmark for growing data streams.
  • Wall Street Journal (WSJ0 and WSJ1): Used to demonstrate the method's generalizability across different ASR datasets.
  • HuBERT: The authors also verify their method using self-supervised learning (SSL) features as a frontend to ensure compatibility with modern pre-trained models.
The overall statistics of TED-LIUM corpus v1 to v3.

Key Insights and Ideas

  • Single-Task Continual Learning: The paper shifts the focus from "task-to-task" adaptation to "data-to-data" growth within a single domain, which is highly relevant for production ASR systems.
  • The "Surprise" Factor: The selective sampling results suggest that replaying "dissimilar" or "unexpected" speech samples is more effective for maintaining long-term memory than random sampling.
  • Efficiency Scales with Data: The computational advantage of O-GEM grows as the dataset expands. While retraining time scales linearly (or worse) with the total amount of data, O-GEM's update time only scales with the new data.

Key Results

The authors compared O-GEM against "All Data" (retraining from scratch) and "New Data" (naive fine-tuning).

  • Accuracy: On the TED-LIUM 3-2 expansion, O-GEM achieved a Word Error Rate (WER) of 8.5%, coming remarkably close to the 8.1% achieved by retraining on the entire combined dataset. In contrast, training on new data alone resulted in a much higher 9.8% WER due to forgetting.
  • Computational Savings: As shown in Figure 1b, O-GEM required significantly less time. For a setup with 10 data splits, O-GEM used only ~24% of the computation time required for retraining. When the number of splits increased to 200, the update time dropped to just 1.92% of the "All Data" approach.
  • Stability: Validation accuracy for O-GEM showed a steady upward trend, whereas the "New Data" approach suffered from stochastic performance dips every time a new data split was introduced.
Figure 1: Results for validation accuracy (%), word error rate (WER, %) and accumulated computation time (hrs) for different methods where N = 10.

Limitations and Future Work

  • Task Boundaries: While the method handles the lack of explicit boundaries, the authors acknowledge that the underlying data distribution in their experiments (TED talks) is relatively stable. Future work could test O-GEM on streams with more aggressive domain shifts.
  • Memory Overhead: Like all replay-based methods, O-GEM requires storage for the episodic memory buffer. While small, this could be a constraint for edge devices.
  • Multi-Task Extension: The current work focuses on a single task; extending this to a multi-task online scenario (e.g., learning new languages on the fly) remains an open challenge.

Summary updated

BibTeX
@inproceedings{yang2022online,
  author = {Muqiao Yang and Ian Lane and Shinji Watanabe},
  title = {{Online Continual Learning of End-to-End Speech Recognition Models}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-11093},
}
Figure