SAME: Sparse and Anchored Model Editing for Heterogeneous Incremental Learning under Limited Data

Zixuan Duan, Zeyu Zhang, Fengyuan Lu, Shaofeng Zhang, Wenbin Li, Qi Fan, Yang GaoCVPR 2026

TL;DR

The authors introduce Heterogeneous Incremental Learning (HIL), a realistic continual learning setting characterized by ambiguous task boundaries, shifting domains, and scarce data. To tackle this, they propose SAME (Sparse and Anchored Model Editing), a parameter-efficient framework that adapts model-editing principles to Vision-Language Models, achieving state-of-the-art performance via a stable, closed-form mathematical solution.

What Problem Does This Paper Address?

Traditional Incremental Learning (IL) algorithms are usually evaluated under sanitized laboratory conditions. They typically fall into two categories: Class-Incremental Learning (CIL), which operates within a single domain, or Task-Incremental Learning (TIL), which provides the model with explicit "task identifiers" during inference so it knows exactly which classification head to use.

Real-world deployment is rarely this clean. A robot or web-scale classifier encounters data where domain boundaries are blurry, environments shift dynamically, and labeled data is highly limited (few-shot). To bridge this gap, the authors formalize Heterogeneous Incremental Learning (HIL). In HIL, a model must sequentially learn from diverse, data-limited domains without ever receiving task identifiers during inference.

Illustration of HIL compared to conventional CIL and TIL settings.

Methods

Instead of adding complex routing modules or expanding network architectures, the authors look to model editing—a paradigm popular in Large Language Models (LLMs) for surgically injecting facts—and adapt it to Vision-Language Models (VLMs) like CLIP.

The proposed framework, SAME (Sparse and Anchored Model Editing), operates through three core mechanisms:

  1. Key-Value Knowledge Extraction: The Feed-Forward Network (FFN) layers of a transformer can be viewed as a key-value memory storage. SAME fine-tunes the FFN output projection matrices ($W_{out}$) on a new task and computes second-order dataset statistics (covariance matrices). This allows the model to compactly summarize task knowledge without storing raw data tokens or images.
  2. Sparse Fine-Tuning: To minimize cross-task interference, a random binary mask freezes a fixed ratio ($p$) of the FFN parameters during training. This forces the model to selectively update parameters and reuse existing representational bases.
  3. Double-Anchor Regularization: When injecting the new task knowledge into the global model, the optimization objective is constrained by two anchors:
  4. A knowledge anchor that prevents the updated features from drifting away from the original pre-trained VLM feature space.
  5. A parameter anchor that constrains the absolute magnitude shifts of the weights to maintain structural stability.

Crucially, because the objective function is formulated quadratically, it yields a closed-form solution. The final model update is computed via a direct linear system solver, completely bypassing iterative backpropagation during the editing phase.

Figure 2. Overview of the proposed SAME framework. SAME operates under the HIL setting and performs Sparse Finetuning with a Double-Anchor constraint. The upper row illustrates Sparse Finetuning and Knowledge Injection, where new key–value pairs (K1, V1) are used to inject new task-specific knowledge into the FFN-out layer. The lower row shows the Knowledge Anchor and Parameter Anchor mechanisms, which preserve pretrained semantics and ensure stable adaptation.

Datasets

The method was evaluated on the Multi-Task Incremental Learning (MTIL) benchmark, which aggregates 11 diverse image datasets representing distinct visual domains:

  • Aircraft, Caltech101, CIFAR100, DTD (Textures), EuroSAT (Satellite), Flowers, Food, MNIST, OxfordPet, Cars, and SUN397.

The datasets were evaluated under a 5-shot setting across two sequential configurations: Split-2 (22 sequential tasks) and Split-3 (33 sequential tasks).

Key Insights and Ideas

  • FFN Editing Translates to VLMs: The insight that FFN layers act as key-value slots holds true for multi-modal foundation models like CLIP, making them highly effective targets for localized domain adaptation.
  • Order-Agnostic Learning: Traditional continual learning is highly sensitive to the order of incoming tasks. Because SAME aggregates task knowledge by adding covariance matrices together, the final closed-form optimization step is inherently order-invariant.
  • Orthogonal Parameter Updates: Directional analysis revealed that the weight updates ($\Delta W$) align closely with the new task requirements while remaining nearly orthogonal to the old-knowledge subspace. This explains mathematically why the model avoids catastrophic forgetting.

Key Results

  • State-of-the-Art Accuracy: Under the 22-task Split-2 setting, SAME achieved an average accuracy of 66.0%, outperforming standard continual fine-tuning by 20% and eclipsing the best competing CL method (MoE-Adapter) by 6.8%.
  • Approaching the Upper Bound: SAME retained 95.8% of the performance of an "Oracle" model (68.9%), which represents the ideal upper bound where a model is fine-tuned on each task independently without sequential interference.
  • Robustness to Task Shuffling: When evaluated across ten randomized task permutations, SAME demonstrated remarkable stability, showing virtually no performance fluctuations compared to highly sensitive baseline methods like ZSCL and GNSP.
Figure 3. Order-sensitivity comparison under random task permu- tations in the 5-shot Split-2 setting. Each bar shows the accuracy range across ten random task orders, and the red dashed line de- notes our SAME method.

Limitations and Future Work

The authors do not explicitly detail failure modes or heavy limitations within the text. However, inherent to model-editing approaches, SAME relies heavily on the representational quality of the initial pre-trained foundation model. Furthermore, while storing covariance matrices requires constant memory relative to the number of tasks, the size of these matrices scales quadratically with the FFN hidden dimension ($d_k \times d_k$), which could present a static storage bottleneck for extremely large scale models.

Summary updated

BibTeX
@inproceedings{duan2026same,
  author = {Zixuan Duan and Zeyu Zhang and Fengyuan Lu and Shaofeng Zhang and Wenbin Li and Qi Fan and Yang Gao},
  title = {{SAME: Sparse and Anchored Model Editing for Heterogeneous Incremental Learning under Limited Data}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=vybxnAtDOh},
}

Loading related content...

Figure