CKAA: Cross-subspace Knowledge Alignment and Aggregation for Robust Continual Learning

Lingfeng He, De Cheng, Zhiheng Ma, Huaijie Wang, Dingwen Zhang, Nannan Wang, Xinbo GaoarXiv 2025 · DOI

Continual Learning (CL) is the challenge of learning new tasks sequentially while preserving knowledge of previous ones. While Parameter-Efficient Fine-Tuning (PEFT) techniques like adapters and prompts have advanced the field, they are vulnerable to "identity crises"—performance collapses caused by task-id misidentification. This paper introduces CKAA (Cross-subspace Knowledge Alignment and Aggregation), a framework designed to resolve feature subspace misalignment. By implementing a dual-level alignment strategy during training and a soft mixture-of-adapters approach during inference, CKAA achieves state-of-the-art results across diverse benchmarks, demonstrating particular resilience in long-term learning scenarios.

1. The "Identity Crisis" in Continual Learning

Modern Class-Incremental Learning (CIL) often assigns specific sub-modules, such as adapters, to individual tasks. At inference, a task recognizer determines which sub-module to activate. However, task-id misidentification is a frequent failure mode. When data from Task A is processed by Task B's sub-module, the resulting features often fall into undefined regions of the feature space, leading to ambiguous or incorrect classification decisions. This occurs because independently trained sub-modules lack a unified feature representation.

Figure 1: Conceptual comparison between existing training schemes and the proposed CKAA method. (a) Existing schemes suffer from misalignment and ambiguous decisions when task-ids are misidentified. (b) CKAA aligns features and classifiers to ensure consistent semantics and clear decision boundaries.

2. Proposed Methodology: CKAA

The CKAA framework addresses these challenges through two primary components: Dual-level Knowledge Alignment (DKA) and Task-Confidence-guided Mixture of Adapters (TC-MoA).

2.1 Dual-level Knowledge Alignment (DKA)

DKA harmonizes disparate task-specific subspaces through two mechanisms:

  • Feature-level Alignment (FA): Employs a Cross-Subspace Feature Alignment (CSFA) contrastive loss to ensure that features belonging to the same class are mapped to similar locations, regardless of the task-specific subspace used for projection.
  • Classifier-level Alignment (CA): To train a robust global classifier without storing raw data from previous tasks, CKAA uses "feature simulation." By modeling previous class distributions and simulating their appearance in the current subspace, the classifier learns to maintain distinct boundaries even under task-id uncertainty.

2.2 Task-Confidence-guided Mixture of Adapters (TC-MoA)

Rather than relying on a "hard" selection of a single adapter, TC-MoA utilizes a "soft" aggregation strategy. It generates confidence scores for all observed tasks and computes a weighted sum of outputs from multiple sub-modules. This ensemble approach mitigates the impact of a single incorrect task-id prediction, providing a more robust inference path.

Figure 2: Detailed architecture of the CKAA framework. (a) The PEFT-based backbone with task-specific adapters and shared prompts. (b) The DKA training process involving feature and classifier alignment. (c) The TC-MoA inference process using task-confidence for soft aggregation.

3. Experimental Results

CKAA was evaluated on benchmarks including ImageNet-R, ImageNet-A, CIFAR-100, DomainNet, and fine-grained datasets like CUB-200 and StanfordCars.

  • Robustness: On the challenging ImageNet-A dataset, CKAA reached 63.53% accuracy, significantly outperforming baselines. This is largely attributed to its ability to handle cases where the task-id is incorrectly predicted.
  • Scalability: In long-term scenarios (up to 100 sequential tasks), CKAA maintained a substantial performance lead, proving its effectiveness for enduring learning systems.
  • Fine-Grained Accuracy: On StanfordCars, CKAA achieved 80.92%, a dramatic improvement over the previous state-of-the-art (66.77%).

4. Conclusion

CKAA identifies subspace misalignment as a fundamental bottleneck in PEFT-based continual learning. By enforcing a "unified language" across task-specific modules and adopting a soft routing mechanism for inference, it effectively solves the "identity crisis" problem. While the linear growth of parameters remains a consideration for extremely long task sequences, CKAA's efficiency and robustness set a new standard for exemplar-free continual learning.

Summary updated

BibTeX
@misc{he2025ckaa,
  author = {Lingfeng He and De Cheng and Zhiheng Ma and Huaijie Wang and Dingwen Zhang and Nannan Wang and Xinbo Gao},
  title = {{CKAA: Cross-subspace Knowledge Alignment and Aggregation for Robust Continual Learning}},
  year = {2025},
  eprint = {2507.09471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09471},
}
Figure