Abstract
Dense Network Expansion (DNE) introduces a scalable architectural framework for Vision Transformers (ViTs) designed to address Class Incremental Learning (CIL). By utilizing a novel Task Attention Block (TAB), DNE enables the selective reuse of features from previous tasks, effectively mitigating catastrophic forgetting while maintaining a sustainable model size. Experimental results demonstrate that DNE achieves a 4% accuracy improvement over existing state-of-the-art methods on standard benchmarks like CIFAR100 and ImageNet100, while significantly reducing the computational gap between incremental and joint training.
Introduction
In Class Incremental Learning (CIL), the primary challenge is "catastrophic forgetting," where a deep learning model loses the ability to recognize previously learned classes upon training on new data. While Network Expansion (NE) methods—which freeze old weights and add new "expert" subnetworks—prevent forgetting, they typically suffer from two major drawbacks: unsustainable growth in model parameters and "knowledge silos," where new experts fail to leverage features already mastered by previous components.
Dense Network Expansion (DNE) addresses these issues by facilitating feature sharing across task-specific experts. Specifically designed for Transformer architectures, DNE moves away from isolated experts toward a densely connected structure that treats previous task outputs as a library of reusable knowledge.
Methodology
The Task Attention Block (TAB)
The core innovation of DNE is the Task Attention Block (TAB). In standard Transformers, self-attention mechanisms manage spatial relationships within an image. However, simply expanding these mechanisms to attend to multiple tasks simultaneously leads to "attention fragmentation," where the model becomes overwhelmed by redundant information across different task heads.
DNE solves this by decoupling the attention process:
- Spatial Attention: Each task expert independently identifies relevant spatial features within the image patches.
- Cross-Task Attention (via TAB): Instead of a standard Multi-Layer Perceptron (MLP), DNE employs the TAB to "query" features produced by previous task experts. This allows the current task to fuse relevant, pre-existing knowledge into its own feature representation.
Training Objectives
DNE is optimized using a composite loss function designed to balance new learning with old knowledge retention:
- Classification Loss: Standard cross-entropy for the current set of classes.
- Distillation Loss: Ensures that the model's outputs for previous classes remain consistent with earlier versions of the network.
- Task Expertise Loss: Encourages the new expert subnetwork to focus on features unique to the current task, preventing redundancy.
Experimental Evaluation
Datasets and Setup
The researchers evaluated DNE on two primary benchmarks: CIFAR100 and ImageNet100. The experiments followed a standard CIL protocol, starting with a base task of 50 classes followed by incremental steps of 5, 10, or 25 classes.
Performance and Efficiency
DNE consistently outperformed previous state-of-the-art (SOTA) methods, such as Dytox and DER, by approximately 4% in top-1 accuracy. Notably, DNE significantly narrowed the gap between incremental learning and "Joint Training" (the theoretical upper bound where the model is trained on all data simultaneously).
Beyond accuracy, DNE demonstrated superior efficiency. On CIFAR100 with 10-class increments, DNE achieved higher accuracy than the previous leading expansion method (DER) while utilizing roughly half the FLOPs (Floating Point Operations). This efficiency stems from the fact that dense feature reuse allows individual task components to remain smaller and more specialized.
Key Insights
- Feature Reuse vs. Relearning: DNE proves that allowing new layers to "read" from old layers is more effective than building massive, isolated subnetworks. A single-head expert in DNE can outperform multi-head experts in traditional models due to this connectivity.
- Avoiding Fragmentation: The research highlights why "Spatial-Task Attention" (STA) often fails; when attention is spread across identical image patches from multiple heads, the signal-to-noise ratio drops. TAB avoids this by separating spatial focus from task-based feature selection.
- Memory Robustness: DNE remains effective even when the "exemplar buffer" (the small subset of old data kept for rehearsal) is reduced, making it highly suitable for memory-constrained applications.
Conclusion and Future Work
Dense Network Expansion provides a robust path forward for scalable incremental learning in Vision Transformers. While the current implementation shows manageable growth in computational cost, the authors note that the number of connections between tasks grows quadratically, which may present a bottleneck for systems involving hundreds of sequential tasks. Future research may explore adapting the TAB philosophy to pure CNN architectures or investigating "blurry" incremental learning scenarios where task boundaries are not explicitly defined.
Summary updated