Abstract
Continual learning remains a significant challenge for deep neural networks due to catastrophic forgetting, where new information overwrites previously learned knowledge. This paper introduces the Self-Attention Meta-Learner (SAM), a framework that leverages meta-learning to establish a robust base of prior knowledge. By integrating a meta-attention mechanism, SAM selectively activates relevant features for new tasks, significantly improving performance in task-agnostic scenarios where task identity is not provided during inference.
Introduction
Deep neural networks typically struggle with learning sequences of tasks. Standard models often suffer from catastrophic forgetting because they lack a mechanism to preserve old representations while acquiring new ones. Most current solutions face two primary hurdles: they often start from random initializations that do not provide a useful foundation, and they suffer from "interference" by attempting to use all previously learned features for every new task, regardless of relevance. Furthermore, many models rely on knowing the specific task identity at test time, a luxury rarely available in real-world applications. SAM addresses these issues by focusing on task-agnostic inference through a combination of meta-learning and selective feature activation.
The SAM Architecture
SAM's architecture is divided into two primary components designed to balance stability and plasticity:
- Shared Sub-network (Prior Knowledge): Instead of random weights, the model uses Model-Agnostic Meta-Learning (MAML) to train a shared backbone on a diverse meta-training dataset. This creates "generic" features optimized for rapid adaptation to new domains.
- Meta-Attention Mechanism: Inspired by Squeeze-and-Excitation networks, this module recalibrates feature maps after each layer in the shared network. It learns to "boost" informative features and "suppress" irrelevant ones based on the specific input, acting as a task-discriminator that narrows the search space for the final decision.
- Task-Specific Branches: For each new task, a small, task-specific "head" is added. During the continual learning phase, the shared backbone remains frozen, and only these small branches are trained, inherently preventing the degradation of core knowledge.
Experimental Evaluation
SAM was evaluated on standard benchmarks including Split MNIST (5 tasks) and Split CIFAR-10/100 (6 tasks). To ensure true generalization, meta-training was performed on different domains: Omniglot for MNIST experiments and MiniImagenet for CIFAR experiments.
Key Results
SAM demonstrates a substantial performance leap in task-agnostic inference compared to traditional regularization and architectural baselines.
In the Split CIFAR-10/100 benchmark, SAM achieved an average accuracy of approximately 48%, outperforming the architectural baseline CWR by 24.5%. In Split MNIST, SAM reached 62.63% accuracy in task-agnostic settings, while popular regularization methods like Elastic Weight Consolidation (EWC) and Synaptic Intelligence (SI) performed only slightly better than random guessing (~20%).
Beyond its performance as a standalone model, SAM serves as a powerful initialization tool. When combined with other algorithms like SI, SAM's initialization and attention mechanisms boosted SI's MNIST accuracy from 20% to over 67%.
Discussion and Future Work
The success of SAM highlights that simply freezing a pre-trained backbone is insufficient for complex continual learning; the method of selecting and recalibrating those features via attention is critical. However, the model currently relies on a fixed-capacity shared backbone. As task sequences grow longer and more diverse, the backbone may eventually lack the expressive power to accommodate new information. Future research may explore methods to allow the shared knowledge base to grow or update incrementally without triggering forgetting, potentially by merging SAM with advanced regularization techniques.
Summary updated