InTAct: Interval-based Task Activation Consolidation for Continual Learning

Patryk Krukowski, Jan Miksa, Piotr Helm, Jacek Tabor, Paweł Wawrzyński, Przemysław SpurekNeurIPS 2026

TL;DR

When neural networks learn new tasks sequentially, they normally suffer from "catastrophic forgetting," overwriting old skills with new ones. Rather than locking down millions of individual model weights or replaying old training data, InTAct draws protective geometric bounding boxes around the activation regions used by past tasks. Inside these boxes, the network’s behavior is kept strictly stable; outside of them, it is completely free to adapt—giving models a mathematically grounded way to learn new domains without losing their minds.

What Problem Does This Paper Address?

Teaching a deep neural network a sequence of tasks (continual learning) involves a tug-of-war between stability (remembering task A) and plasticity (adapting to task B).

Recently, prompt-based continual learning has become a go-to strategy: freeze a massive pre-trained Vision Transformer (ViT) and only train lightweight, task-specific "prompts" alongside a shared classification head. Yet, this setup breaks down in Domain-Incremental Learning (DIL)—where the classes stay the same, but the visual style or environment shifts dramatically (say, moving from clean photos to sketches or snowy images). Because the prompt pool and classifier are continuously updated across domains, internal representations drift, scrambling prior knowledge.

Most existing fixes try to constrain weights directly, which is indirect—freezing or penalizing parameters doesn't guarantee the network's actual function stays the same. Other approaches use Interval Arithmetic (IA) in weight space for formal guarantees, but propagating intervals end-to-end through deep networks causes the "wrapping effect," where numerical bounds balloon with every layer until they become uselessly loose.

Methods

Instead of policing weights, InTAct (Interval-based Task Activation Consolidation) polices what neurons actually output—their activations. It plugs directly into existing prompt-based ViTs without storing any past data.

Figure 1: Method Overview. During training on task (N+1), InTAct preserves the functional region established by task N (pink) while allowing the model to learn new knowledge in a distinct region (orange). After training, these regions merge into an expanded protected region (yellow), defining where the layer’s transformation should remain stable in future updates. The dashed curves illustrate transformations from earlier tasks, highlighting that their behaviors remain preserved within their respective regions, while adaptation is freely allowed outside them.

Here is how the recipe works:

  • Activation Hypercubes: After finishing a task, InTAct records the 5th-to-95th percentile range (with $\alpha=0.95$) of activations across every feature dimension in the [CLS] token embeddings and intermediate classifier layers. Together, these intervals form an axis-aligned bounding box—a multidimensional "hypercube." Over time, boxes from new tasks merge into a single cumulative hull requiring negligible memory (just two numbers—min and max—per dimension).
  • Bounding Functional Drift ($\mathcal{L}_{\text{IntDrift}}$): Checking every point inside a high-dimensional box is impossible. Instead, InTAct uses Interval Arithmetic locally on the classifier's linear layers to compute the exact worst-case minimum and maximum change in output across the entire historical hypercube at once, penalizing any deviation. Because this is done layer-by-layer rather than end-to-end, it dodges the wrapping effect while providing a formal local stability guarantee (Theorem 1).
  • Anchoring & Sculpting Space: Protecting the classifier only works if old data still lands inside the protected box. InTAct adds three complementary losses—computed strictly on the current batch without replay:
  • Feature Consistency ($\mathcal{L}_{\text{Feat}}$): Uses a coordinate-wise binary gate to force the current model's representations to match a frozen copy of the previous task's model only on dimensions falling inside the protected box.
  • Variance ($\mathcal{L}_{\text{Var}}$) & Alignment ($\mathcal{L}_{\text{Align}}$): Pulls current-task activations tightly around their batch centroid and nudges non-overlapping dimensions toward the historical box's center, keeping the protected zone compact so plenty of "free real estate" remains for future tasks.
Figure 3: Overview of the proposed regularization framework. LIntDrift and LFeat preserve functional behavior within protected hypercubes corresponding to previously learned tasks (pink). LVar encourages compact activation regions for newly acquired tasks (orange), while LAlign limits excessive expansion of the cumulative feature space by aligning task centers across tasks. Together, these constraints produce compact and stable feature regions, illustrated by the purple contours.

Datasets

The authors evaluate InTAct on four standard Domain-Incremental Learning (DIL) image classification benchmarks (no new datasets are introduced):

  • DomainNet (diverse visual domains like clipart, painting, real photos)
  • ImageNet-R (artistic renditions of ImageNet classes across 15 sequential tasks)
  • ImageNet-C (natural images under various synthetic corruptions)
  • ImageNet-Mix (a hybrid benchmark combining corruptions and renditions)

Key Insights and Ideas

  • Regulate function, not weights: Two very different sets of weights can compute the exact same function on a given region, and tiny weight tweaks can unexpectedly wreck activations. Bounding activation regions controls what we actually care about—input-output behavior—while leaving weights free to reorganize for new tasks.
  • Local IA beats the wrapping effect: Applying Interval Arithmetic locally to linear classifier layers gives rigorous worst-case drift bounds without the bound explosion that plagues full-network interval propagation.
  • Compactness fuels plasticity: In ablation studies, removing both the drift penalty ($\mathcal{L}_{\text{IntDrift}}$) and compactness loss ($\mathcal{L}_{\text{Var}}$) caused nearly twice the accuracy drop of their individual removals combined. If past tasks sprawl across feature space, the protective box swallows everything, starving future tasks of room to learn.
  • Coordinate-wise gating is crucial: In high dimensions, almost no sample falls inside the historical box across every single dimension simultaneously. Gating feature consistency coordinate-by-coordinate makes historical anchoring practical without old data.

Key Results

  • New SOTA in DIL: Integrated into KA-Prompt, InTAct achieves the highest overall Average Accuracy (71.89%) across the four benchmarks, beating KA-Prompt (71.30%) and C-Prompt (66.57%). Its biggest wins come on ImageNet-R (67.90%, +1.39 percentage points) and ImageNet-Mix (70.94%, +0.59 p.p.), while reaching 85.75% on ImageNet-C and 62.96% on DomainNet.
  • Plug-and-Play Boosts: While gains over KA-Prompt are modest (since KA-Prompt already uses an exponential moving average on classifier weights), plugging InTAct into earlier prompt methods like L2P, DualPrompt, and CODA-Prompt boosts accuracy by 4.1 to 13.0 percentage points.
  • Ablation Impact: On ImageNet-R (with CODA-Prompt, 74.23% baseline AA), dropping $\mathcal{L}_{\text{IntDrift}}$ hurts the most (-3.48 p.p.), followed by $\mathcal{L}_{\text{Feat}}$ (-1.79 p.p.), $\mathcal{L}_{\text{Var}}$ (-0.95 p.p.), and $\mathcal{L}_{\text{Align}}$ (-0.47 p.p.). Empirically, 96.1% to 97.0% of historical activation coordinates remain safely inside the cumulative hypercube by the end of training.

Limitations and Future Work

  • Conditional, layer-wise guarantees: The mathematical stability bound holds locally for linear classifier layers rather than end-to-end through the ViT backbone, and relies on optimization successfully keeping $\mathcal{L}_{\text{IntDrift}}$ small and representations staying inside the box.
  • Box size trade-off: Larger hypercubes protect more of the feature space at the cost of looser theoretical drift bounds, whereas tighter boxes give stronger guarantees over smaller areas.
  • Rigid geometry: Axis-aligned hypercubes are a rough approximation for complex, curved, or multi-modal feature distributions—and merging boxes via a single cumulative hull can capture empty "dead space" between tasks. Exploring more flexible geometric shapes to represent historical activation regions is a key next step.

Summary updated

Abstract

Continual learning seeks to acquire new knowledge while preserving previously learned representations. Despite the success of prompt-based methods, they remain fragile in domain-incremental learning scenarios, where shifts in the input distribution cause representation drift in shared layers and lead to forgetting. We introduce InTAct, a method that preserves functional behavior in shared representations without freezing parameters or retaining past data. InTAct constrains updates within activation regions associated with prior domains, while allowing flexible adaptation elsewhere, thereby stabilizing neuron functionality rather than directly restricting parameter values. The approach is architecture-agnostic, integrates seamlessly with existing prompt-based frameworks, and matches or outperforms state-of-the-art methods on domain-incremental benchmarks.
BibTeX
@inproceedings{krukowski2026intact,
  author = {Patryk Krukowski and Jan Miksa and Piotr Helm and Jacek Tabor and Paweł Wawrzyński and Przemysław Spurek},
  title = {{InTAct: Interval-based Task Activation Consolidation for Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1YkQOLXLUU},
}
Figure