Global Pre-fixing, Local Adjusting: A Simple yet Effective Contrastive Strategy for Continual Learning

Jia Tang, Xinrui Wang, Songcan ChenarXiv 2025 · DOI

Abstract

Continual learning models often struggle to distinguish between classes from different tasks due to catastrophic forgetting and feature confusion. This paper introduces GPLASC, a strategy that pre-allocates distinct geometric regions in the feature space for different tasks (Global Pre-fixing) and optimizes class features strictly within those regions (Local Adjusting). By enforcing this structured geometry, the method significantly boosts accuracy and reduces forgetting in existing contrastive continual learning frameworks.

Introduction

In Class Incremental Learning (CIL), a model must learn new classes over time without forgetting previously learned ones, all without knowing the task ID during inference. While Supervised Contrastive Learning (SupCon) has been used to learn robust features, it suffers from two major geometric issues in sequential settings: inter-task feature confusion (overlapping features from different tasks) and intra-task feature confusion (tangled classes within a task when trying to avoid overwriting old knowledge).

The GPLASC Framework

The proposed GPLASC (Global Pre-fixing, Local Adjusting for Supervised Contrastive learning) decouples the learning of inter-task and intra-task features through a structured geometric approach.

Global Pre-fixing

To solve inter-task confusion, the method divides the unit hypersphere into non-overlapping regions before training begins. These regions are centered around an Equiangular Tight Frame (ETF)—a geometric structure where points are maximally and symmetrically separated. This pre-allocation ensures that each task has its own "territory" in the latent space.

Local Adjusting

To address intra-task confusion, the authors introduce the Region Restricted Supervised Contrastive Loss (R2SCL). Theoretical analysis shows that by constraining the inter-class similarity threshold, the model can shrink the radius of the feature distribution. R2SCL forces the classes of the current task to form their own miniature ETF strictly within their pre-allocated region.

Illustration of how R2SCL shrinks the feature structure into a smaller inscribed hypersphere compared to standard SupCon.

To prevent older task features from drifting out of their assigned regions as the network updates, a Mean Squared Error (MSE) distillation loss is applied to a small memory buffer of past samples.

Experimental Evaluation

GPLASC was evaluated on standard benchmarks (Seq-CIFAR-10/100, Tiny-ImageNet) and robustness benchmarks (CUB-200, ImageNet-R/A).

Key Results

  • Accuracy Improvements: Integrated into the Co2L baseline, GPLASC improved CIL accuracy by ~5% on CIFAR-10 and CIFAR-100. It also boosted standard Experience Replay (ER) and DER baselines.
  • Robustness to Domain Shifts: The method significantly outperformed existing approaches on CUB-200 and ImageNet-R, proving that the pre-fixed geometric structure helps preserve fine-grained and domain-shifted features.
  • Visual Confirmation: t-SNE visualizations and Kernel Density Estimation (KDE) heatmaps confirm that GPLASC drastically reduces feature overlap between tasks compared to standard contrastive learning.

Conclusion

GPLASC demonstrates that a well-separated feature space can be mathematically pre-allocated without seeing all data at once. By combining global geometric constraints with local feature adjustment, the method provides a robust, plug-and-play strategy for mitigating catastrophic forgetting in continual learning.

Summary updated

Abstract

Continual learning (CL) involves acquiring and accumulating knowledge from evolving tasks while alleviating catastrophic forgetting. Recently, leveraging contrastive loss to construct more transferable and less forgetful representations has been a promising direction in CL. Despite advancements, their performance is still limited due to confusion arising from both inter-task and intra-task features. To address the problem, we propose a simple yet effective contrastive strategy named \textbf{G}lobal \textbf{P}re-fixing, \textbf{L}ocal \textbf{A}djusting for \textbf{S}upervised \textbf{C}ontrastive learning (GPLASC). Specifically, to avoid task-level confusion, we divide the entire unit hypersphere of representations into non-overlapping regions, with the centers of the regions forming an inter-task pre-fixed \textbf{E}quiangular \textbf{T}ight \textbf{F}rame (ETF). Meanwhile, for individual tasks, our method helps regulate the feature structure and form intra-task adjustable ETFs within their respective allocated regions. As a result, our method \textit{simultaneously} ensures discriminative feature structures both between tasks and within tasks and can be seamlessly integrated into any existing contrastive continual learning framework. Extensive experiments validate its effectiveness.
BibTeX
@misc{tang2025global,
  author = {Jia Tang and Xinrui Wang and Songcan Chen},
  title = {{Global Pre-fixing, Local Adjusting: A Simple yet Effective Contrastive Strategy for Continual Learning}},
  year = {2025},
  eprint = {2509.15347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.15347},
}
Figure