Abstract
Continual Learning (CL) is frequently proposed as a sustainable alternative to the computationally expensive practice of retraining models from scratch (Joint Training). However, the energy efficiency of CL algorithms is rarely measured directly, with research typically prioritizing accuracy. This paper provides a systematic analysis of the energy consumption of various CL strategies—exemplar-based, prompt-based, and representation-based—using vision foundation models. We introduce the Energy NetScore ($\Omega$) to evaluate the trade-off between predictive performance and power consumption. Our findings reveal that while CL significantly reduces training energy, certain methods—particularly prompt-based approaches—impose a substantial "inference tax" that can eventually offset training savings.
Introduction
The rapid scaling of foundation models like the Vision Transformer (ViT) has precipitated a sustainability crisis in AI. As new data becomes available, the standard "Joint Training" approach requires retraining on the entire cumulative dataset, leading to a quadratic explosion in energy costs. Continual Learning (CL) aims to mitigate this by learning tasks sequentially. While theoretically greener, the actual energy footprint of the mechanisms used to prevent "catastrophic forgetting" remains under-explored. This study shifts the focus from purely algorithmic accuracy to a holistic view of energy consumption across the entire model lifecycle.
Methodology and Experimental Setup
We evaluated a variety of CL algorithms using a ViT-B/16 backbone across three benchmark datasets: CIFAR-100, ImageNet-R, and DN4IL (DomainNet). The algorithms were categorized into three families:
- Exemplar-based (e.g., iCaRL, MEMO): These methods maintain a buffer of previous data to replay during new tasks.
- Prompt-based (e.g., L2P, DualPrompt, CODA-Prompt): These keep the backbone frozen and learn task-specific prompts.
- Representation-based (e.g., SimpleCIL, EASE, RanPAC): These utilize the frozen features of a pre-trained model with minimal additional parameters.
To quantify energy usage, we utilized CodeCarbon to track the power consumption of the GPU, CPU, and RAM.
The Energy NetScore ($\Omega$)
To provide a unified metric for efficiency, we introduced the Energy NetScore ($\Omega$). Inspired by hardware evaluation metrics, it calculates a log-scale trade-off between Top-1 accuracy and the total energy consumed (in kWh). This allows for a ranking that penalizes energy-intensive models even if they achieve high accuracy.
Key Insights: The Hidden Costs of Learning
The Quadratic Trap
Our analysis confirms that Joint Training and exemplar-based methods (like iCaRL) exhibit quadratic growth in energy consumption as the number of tasks increases. This is due to the increasing size of the training set or the replay buffer. In contrast, exemplar-free methods scale linearly, identifying them as the only sustainable path for long-term, large-scale incremental learning.
The Inference Tax
A critical finding of this research is the "inference tax" associated with prompt-based and certain representation-based methods. For instance, prompt-based methods often require two forward passes for every prediction: one to select the appropriate prompt and another to generate the output. While these methods appear efficient during the training phase, their energy consumption during inference is effectively doubled compared to standard architectures.
The Break-Even Point
We analyzed the "break-even point"—the number of inference requests at which the energy saved during training is entirely consumed by the additional overhead of the model's architecture. For methods like EASE, this point is reached relatively quickly. For others, like RanPAC, the break-even point occurs after approximately 10 million requests, suggesting better long-term sustainability for high-traffic applications.
Results and Performance
- The Efficiency Champion: RanPAC achieved the highest Energy NetScore. It maintained accuracy levels competitive with Joint Training (78.07% vs 85.22% on ImageNet-R) while consuming only 0.07 kWh, compared to the 2.88 kWh required for Joint Training.
- Minimalist Efficiency: SimpleCIL was the most energy-efficient overall (0.01 kWh) because it requires virtually no training. However, its lower accuracy makes it less suitable for complex tasks.
- The Cost of Prompting: While CODA-Prompt showed strong accuracy, its NetScore was significantly lowered by the high energy demands of its inference phase.
- Domain Shift Challenges: In the DN4IL benchmark, which features significant domain shifts (e.g., from sketches to real photos), the performance gap between CL and Joint Training widened, indicating that current "green" methods still struggle to generalize under extreme data variance.
Conclusion
This study demonstrates that Continual Learning is not inherently "green" by default. The choice of algorithm must consider the total lifecycle energy, particularly the inference overhead. A truly sustainable CL algorithm must achieve a balance: it should be linear in training cost and, crucially, possess zero additional computational overhead during inference. Future research should prioritize architectures that can adapt to new information without increasing the cost of every forward pass.
Summary updated