Abstract
Online Continual Learning (OCL) presents a significant challenge: models must learn from a continuous stream of data, seeing each sample only once, while avoiding the "catastrophic forgetting" of previous tasks. This paper introduces Feature-based Graph Attention Networks (FGAT), a framework that treats images as dynamic graphs rather than static grids. By combining multi-scale CNN features with Graph Attention Networks (GATv2) and a novel "memory duplication" strategy, FGAT achieves state-of-the-art performance on challenging benchmarks like CIFAR100 and MiniImageNet. The approach demonstrates superior stability and plasticity compared to traditional CNN and GNN baselines.
Introduction
In OCL, models face a non-stationary data distribution where task boundaries are often unknown. Standard Convolutional Neural Networks (CNNs) are limited by their fixed-grid processing, which struggles to capture long-range dependencies and adapt to evolving data without overwriting prior knowledge. While Transformers offer better relational modeling, their computational cost is often prohibitive for online settings. FGAT addresses these issues by leveraging the flexibility of Graph Neural Networks (GNNs) to model images as relational structures, allowing for more efficient and adaptive learning.
Methods
The FGAT framework consists of several integrated components designed to balance stability and plasticity.
Feature-Based Graph Construction
Instead of using raw pixels, FGAT employs a frozen ResNet18 backbone to extract multi-scale feature maps. These are concatenated to form node representations that capture both local textures and global semantics. Nodes are connected via a k-nearest neighbor (k-NN) algorithm based on spatial proximity.
Graph Attention Network (GATv2)
The model utilizes GATv2 layers to update node representations dynamically. The attention mechanism enables the model to focus on task-relevant features, facilitating adaptation to new data while preserving essential structural information.
Weighted Global Mean Pooling
To aggregate node features into a final image representation, FGAT introduces a learnable weighting layer. Unlike standard mean pooling, this mechanism assigns relative importance to different nodes, enhancing the model's discriminative power. This process involves rearranging features and applying a linear layer without bias to determine weights before final aggregation.
Rehearsal Memory Duplication
To mitigate the imbalance between the small memory buffer of old samples and the incoming stream of new data, FGAT duplicates old samples within each training batch. This simple yet effective strategy stabilizes training and mimics joint training conditions, significantly improving performance on long-term tasks.
Results
FGAT was evaluated on SVHN, CIFAR10, CIFAR100, and MiniImageNet in an online class-incremental setting. The model significantly outperformed existing methods:
- CIFAR100: 43.87% average accuracy (vs. 39.60% for MuFAN).
- MiniImageNet: 41.06% average accuracy (vs. 34.70% for MuFAN).
- Parameter Efficiency: FGAT remains highly efficient; its trainable parameters account for only approximately 1% of the size of a small Vision Transformer (ViT).
Ablation studies confirmed that the synergy between memory duplication, distillation (LwF), and Soft Pixel Normalization (SPN) is critical for these gains, with the combined effect exceeding the sum of individual components.
Conclusion
FGAT demonstrates that graph-based representations are highly effective for Online Continual Learning. By treating images as dynamic graphs of features, the model achieves a superior balance of stability and plasticity. While the model faced challenges with noisy labels in datasets like SVHN, its performance on complex benchmarks like CIFAR100 and MiniImageNet sets a new standard for rehearsal-based OCL. Future work will focus on improving robustness to label noise and exploring more flexible graph construction techniques.
Summary updated