[Paper Review] Evaluating Online Continual Learning with CALM
This paper introduces CALM, a class-agnostic continual language modeling benchmark for online continual learning, where text streams alternate between languages or domains without explicit task boundaries. It proposes novel metrics to measure catastrophic forgetting via loss spikes and introduces 'plastic gates'—a gating mechanism that improves Products of Experts models by learning latent similarities, significantly reducing forgetting and enabling better adaptation to distribution shifts.
Online Continual Learning (OCL) studies learning over a continuous data stream without observing any single example more than once, a setting that is closer to the experience of humans and systems that must learn "on-the-wild". Yet, commonly available benchmarks are far from these real-world conditions, because they explicitly signal different tasks, lack latent similarity structure or assume temporal independence between different examples. Here, we propose a new benchmark for OCL based on language modelling in which input alternates between different languages and domains without any explicit delimitation. Additionally, we propose new metrics to study catastrophic forgetting in this setting and evaluate multiple baseline models based on compositions of experts. Finally, we introduce a simple gating technique that learns the latent similarities between different inputs, improving the performance of a Products of Experts model.
Motivation & Objective
- To address the lack of realistic benchmarks for online continual learning in natural language, particularly those with temporal dependencies, latent similarities, and no explicit task boundaries.
- To develop a new evaluation framework that better reflects real-world continual learning conditions, such as those experienced by humans.
- To propose metrics that quantify catastrophic forgetting not just by accuracy drop but by the magnitude of loss spikes during distribution shifts.
- To evaluate baseline models in this new setting and introduce a novel gating mechanism that improves adaptation and reduces forgetting.
Proposed method
- Proposes CALM, a continual language modeling benchmark with two variants: character-based (five languages) and word-based (four domains), both with no explicit task delimitation.
- Designs novel metrics based on the size of loss spikes during distribution shifts to quantify catastrophic forgetting in online settings.
- Employs a Products of Experts (PoE) architecture with learnable gating mechanisms to dynamically route inputs to relevant experts.
- Introduces 'plastic gates'—a simple gating strategy that learns latent similarities between input classes, improving model adaptation and reducing forgetting.
- Uses mixture weights from the gating mechanism to analyze learned similarities and validate that they reflect underlying linguistic structures.
- Applies hierarchical clustering to gate vectors to verify that learned similarities align with known linguistic families.
Experimental results
Research questions
- RQ1How can we design a realistic benchmark for online continual learning in natural language that lacks explicit task boundaries and includes latent similarities between classes?
- RQ2To what extent do existing models suffer from catastrophic forgetting when faced with distribution shifts in a streaming, class-agnostic setting?
- RQ3Can a learnable gating mechanism improve the performance of a Products of Experts model in online continual learning by capturing latent similarities between input classes?
- RQ4Do the learned gating patterns reflect known structural relationships, such as linguistic families, in the input data?
- RQ5How do different data stream configurations (e.g., MultiLingual vs. MultiDomain) affect the potential for knowledge transfer and forgetting?
Key findings
- The MultiLingual benchmark, with its high statistical divergence between languages, limits knowledge transfer, while the MultiDomain benchmark enables significant transfer due to more nuanced similarities.
- The PoE+Plastic Gates model outperforms standard baselines, particularly in adapting to class switches, by effectively routing inputs to relevant experts.
- Loss spike analysis reveals that plastic gates reduce the magnitude of catastrophic forgetting peaks, indicating better stability during distribution shifts.
- The learned gating vectors correlate strongly with known linguistic families—e.g., Spanish and French share similar module usage, and hierarchical clustering recovers linguistic groupings.
- Modules with near-zero gating weights are protected from forgetting, and even negatively weighted modules may serve dual roles by encoding negative training signals.
- The plastic gates mechanism enables dual use of experts, where both positive and negative weights contribute to robustness by encoding both 'to-predict' and 'not-to-predict' signals.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.