Abstract
Deep neural networks face a significant challenge in continual learning: catastrophic forgetting. When models adapt to new tasks, internal representations for previous tasks often drift, leading to performance degradation. We introduce InTAct (Interval-based Task Activation Consolidation), a novel approach that enforces functional stability at the neuron level. By utilizing interval arithmetic to define "safe zones" within the activation space, InTAct provides a tractable mathematical guarantee that a model's behavior on historical tasks remains unchanged. Our method achieves state-of-the-art performance on Domain-Incremental Learning benchmarks while maintaining a constant memory footprint.
Introduction
The ability to learn a sequence of tasks without forgetting previous ones—continual learning—is a hallmark of human intelligence but remains elusive for deep neural networks. Standard training on new data typically overwrites features essential for earlier tasks, a phenomenon known as catastrophic forgetting. Existing approaches generally fall into three categories: replay-based methods (storing old data), parameter-isolation (dedicating neurons to tasks), and regularization-based methods (penalizing weight changes).
However, weight-based regularization (e.g., Elastic Weight Consolidation) is often a poor proxy for functional stability. Small changes in weights can lead to large changes in output, while large weight changes might not affect the output if they occur in redundant directions. InTAct shifts the focus from parameter rigidity to functional invariance by regulating the activation space.
Methodology: Regulating the Activation Space
InTAct regulates the internal signals of the network rather than its weights. This is motivated by the fact that activations have significantly lower dimensionality than the millions of parameters in modern models, making regulation more efficient.
Hypercube Construction and Safe Zones
For each layer, InTAct identifies "safe zones"—multidimensional hypercubes that encapsulate the activations for a specific task. To ensure robustness against outliers, these boundaries are defined using quantiles (e.g., the central 95% of activations). These hypercubes act as anchors, encouraging the model to maintain consistent logic within these trusted regions.
Mathematical Guarantees via Interval Arithmetic
The core of InTAct is the Internal Representation Drift Loss ($L_{IntDrift}$). Using Interval Arithmetic (IA), the method calculates the worst-case change in the classifier's output for any point inside the established hypercubes. By minimizing this loss, the model ensures that as long as an input falls into a previously established safe zone, the prediction remains stable.
Additional Stability Mechanisms
- Prompt-Dependent Stability ($L_{Feat}$): Integrated with prompt-based architectures like CODA-Prompt, InTAct uses distillation to ensure prompts map old data correctly into their respective hypercubes.
- Representation Structuring ($L_{Var}$ and $L_{Align}$): These losses keep activations compact and aligned with existing task geometry, preventing safe zones from overlapping or becoming excessively large.
Experimental Evaluation
We evaluated InTAct on four Domain-Incremental Learning (DIL) benchmarks:
- DomainNet: Six distinct visual domains (Clipart, Sketch, Real, etc.) processed sequentially.
- ImageNet-R: 200 classes rendered in diverse artistic styles.
- ImageNet-C: Robustness testing against 15 types of algorithmic corruptions.
- ImageNet-Mix: A 30-task benchmark combining styles and corruptions.
Key Results and Insights
InTAct achieved state-of-the-art performance across all benchmarks. On ImageNet-R, it reached an Average Accuracy (AA) of 74.23%, outperforming the previous best baseline by 7.7 percentage points. On ImageNet-Mix, it achieved 74.20% AA, a 4 p.p. improvement.
Crucially, InTAct demonstrates superior stability. While traditional baselines like EWC often see sharp performance drops as the task sequence grows, InTAct maintains a robust trajectory. Furthermore, the method introduces zero additional learnable parameters and maintains a constant memory footprint ($O(1)$) relative to the number of tasks, as it only needs to track the cumulative "convex hull" of historical safe zones.
Conclusion and Future Work
InTAct demonstrates that functional invariance via activation regulation is a powerful alternative to weight-based regularization. While effective, the method faces the "wrapping effect" inherent in Interval Arithmetic, where error bounds can become overly conservative. Future work may explore tighter integration with evolving prompt architectures and methods to further reduce the volume of the hypercubes without sacrificing stability.
Summary updated