This paper introduces LightCL, a compact continual learning (CL) framework specifically designed to run on resource-constrained edge devices. By analyzing how different layers in a neural network contribute to learning new tasks versus remembering old ones, the authors developed a strategy that significantly slashes memory usage while maintaining high accuracy.
TL;DR
LightCL achieves efficient on-device continual learning by freezing "generalizable" lower network layers and using a lightweight feature-map regulation technique in deeper layers. This approach reduces the training memory footprint by up to 6.16× compared to state-of-the-art methods while remaining competitive in accuracy.
What Problem Does This Paper Address?
Continual Learning (CL) allows AI models to adapt to new data over time without forgetting what they previously learned (a problem known as "catastrophic forgetting"). While powerful, most CL methods are extremely resource-intensive. They often require storing old data samples for "replay" or maintaining complex importance maps for every model parameter.
For edge devices—like smart cameras, mobile phones, or IoT sensors—these requirements are often deal-breakers due to limited computation, constrained storage, and, most critically, insufficient memory. The authors argue that the "memory wall" is the primary bottleneck for deploying adaptive AI at the edge.
Methods
The core innovation of LightCL stems from a quantitative analysis of generalizability across different layers of a neural network. The authors define two metrics:
- Memory Stability (MS): How much old knowledge is lost when a layer is updated.
- Learning Plasticity (LP): How well a layer adapts to new knowledge.
Their analysis (visualized in Figure 2) revealed a crucial trend: lower and middle layers exhibit high generalizability (high plasticity and high stability), while deeper layers are "specialists" that forget easily.
Based on this, LightCL employs two main strategies (illustrated in Figure 3):
- Maintain Generalizability: The highly generalizable lower and middle layers are frozen. Because these layers don't participate in backpropagation, the system doesn't need to store their gradients or intermediate feature maps, leading to massive memory savings.
- Memorize Feature Patterns: For the deeper, less-stable layers, LightCL uses a regulation method. Instead of storing old data samples (which is costly and raises privacy concerns), it identifies vital feature map positions. Before training a new task, it runs a few samples of the new task through the old model to create "feature map standards." During training, it regulates the new model to ensure its feature extraction patterns don't drift too far from these standards.
Datasets
The authors evaluated LightCL using standard CL benchmarks:
- Split CIFAR-10: The dataset is split into 5 tasks, each containing 2 classes.
- Split Tiny-ImageNet: The dataset is split into 10 tasks, each containing 20 classes.
Experiments were conducted using ResNet-18 and ResNet-50 backbones, both starting from pre-trained weights and training from scratch.
Key Insights and Ideas
- Layer-wise Heterogeneity: Not all layers in a deep network serve the same purpose in continual learning. Lower layers learn general features that are useful across many tasks, while deeper layers learn task-specific features.
- Memory vs. Computation: In edge training, the memory footprint of intermediate feature maps and gradients is often a bigger hurdle than the raw number of FLOPs. Freezing layers is an extremely effective way to bypass this "memory wall."
- Data-Free Regulation: You don't necessarily need old data to remember old tasks. By regulating the output patterns (feature maps) of the model using current data, you can preserve previous knowledge with minimal extra memory overhead (~1.9MB in their tests).
Key Results
LightCL was compared against several state-of-the-art (SOTA) methods, including EWC, ER, DER++, and the efficient SparCL.
- Memory Reduction: LightCL reduced the memory footprint by up to 6.16× compared to SparCL-DER++ on Tiny-ImageNet (see Figure 1).
- Accuracy: Despite the massive memory savings, LightCL outperformed or remained competitive with SOTA methods. On CIFAR-10 (CIL setting), LightCL achieved 55.53% accuracy, significantly higher than DER++ (40.75%) and SparCL (36.98%).
- Edge Deployment: The authors verified their results on an NVIDIA Jetson Nano. As shown in Figure 5, LightCL maintained a much lower and more stable memory profile over time compared to SparCL.
Limitations and Future Work
- Manual Tuning: The "freezing point" (which layers to freeze) was determined manually through analysis. Future work could involve automating this process for different architectures.
- Pre-training Dependency: While the authors show LightCL works when training from scratch, it performs best when starting from a pre-trained model, which might not always be available for niche edge applications.
- Sparsity Integration: While LightCL was tested with pruning (LightCL$_{0.9}$), the authors noted that freezing layers can sometimes weaken dynamic pruning processes, suggesting a need for more integrated optimization between freezing and pruning strategies.
Summary updated