CL2R: Compatible Lifelong Learning Representations

Niccolo Biondi, Federico Pernici, Matteo Bruni, Daniele Mugnai, Alberto Del Bimbo · DOI

Abstract

In this paper, we propose a method to partially mimic natural intelligence for the problem of lifelong learning representations that are compatible. We take the perspective of a learning agent that is interested in recognizing object instances in an open dynamic universe in a way in which any update to its internal feature representation does not render the features in the gallery unusable for visual search. We refer to this learning problem as Compatible Lifelong Learning Representations (CL2R). We identify stationarity as the property that the feature representation is required to hold to achieve compatibility and propose a novel training procedure that encourages local and global stationarity on the learned representation. Extensive experiments on standard benchmark datasets show that our CL2R training procedure outperforms alternative baselines and state-of-the-art methods.

Introduction

In large-scale visual search systems—such as face recognition or product retrieval—Deep Convolutional Neural Networks (DCNNs) are employed to map images into a high-dimensional feature space. These features are stored in a "gallery" for future matching. However, as new data and classes emerge, these models must be updated.

Standard Lifelong Learning (LL) focuses on mitigating "catastrophic forgetting," ensuring the model retains the ability to classify old tasks. Yet, even if classification accuracy remains high, the internal "language" or geometric arrangement of the feature space typically shifts during updates. This phenomenon, known as representation drift, renders old gallery features incompatible with the new model's query features. To maintain system integrity, practitioners are often forced to re-index: a process of re-processing every original image with the new model. Re-indexing is frequently infeasible due to the massive computational cost, privacy regulations (e.g., GDPR) requiring the deletion of original images, and the operational latency of updating billions of entries.

CL2R addresses this by introducing the concept of lifelong compatibility, allowing new model queries to work seamlessly with legacy gallery features without re-indexing.

The CL2R Framework

The core insight of CL2R is that compatibility is a byproduct of stationarity—the stability of feature distributions over time. If the coordinate system of the feature space remains anchored, the vectors remain interoperable across model versions. The authors propose two primary mechanisms to enforce this property:

1. Global Stationarity via Fixed $d$-Simplex Classifiers

In traditional training, class prototypes (the weights in the final classification layer) are learned and move freely, causing the entire feature space to shift. CL2R instead utilizes a fixed classifier where class prototypes are pre-allocated as vertices of a $d$-Simplex (a regular polytope). By fixing these "target destinations" for features at the start of the lifelong learning process, the global geometry of the feature space is anchored, preventing the underlying coordinate system from drifting as new classes are added.

2. Local Stationarity via Memory-Based Feature Distillation ($\mathcal{L}_{FD}^M$)

While global geometry is fixed by the $d$-Simplex, local feature arrangements can still fluctuate. To counter this, CL2R employs Feature Distillation (FD). Unlike standard approaches that distill over all current data, CL2R applies distillation specifically to samples stored in episodic memory (a small set of exemplars from previous tasks). This targeted distillation forces the model to maintain local stability for previously learned representations while preserving the plasticity needed to learn distinct features for new tasks.

Evaluation Metrics

To rigorously evaluate compatibility under catastrophic forgetting, the paper introduces three novel metrics:

  • Average Compatibility (AC): Evaluates the average performance of the new model when searching against the original gallery across all time steps.
  • Backward Compatibility (BC): Measures the performance gap between the current model and its predecessors. A positive BC indicates the new model is actually more effective at searching the old gallery than the model that originally created it.
  • Forward Compatibility (FC): Measures how current learning influences the compatibility of future, yet-to-be-learned tasks.

Experimental Results

The authors evaluated CL2R against state-of-the-art continual learning methods (e.g., PODNet, LUCIR) and specialized compatible learning baselines (e.g., BCT) across benchmarks including CIFAR100, ImageNet, and face verification datasets like IJB-C.

  • Performance Gains: On the 10-task CIFAR10 benchmark, CL2R achieved an Average Compatibility (AC) of 0.44, nearly doubling the performance of PODNet (0.27).
  • Positive Backward Compatibility: CL2R frequently achieved near-zero or positive BC. This is a significant milestone, as it suggests the model improves its understanding of the feature space without needing to re-process old data.
  • Real-World Scalability: On the IJB-C face recognition dataset, CL2R maintained high verification accuracy across sequential updates, demonstrating its readiness for biometric systems where re-indexing is often legally or logistically impossible.

Conclusion

CL2R shifts the focus of lifelong learning from mere classification retention to representation interoperability. By enforcing stationarity through fixed geometric classifiers and memory-based distillation, CL2R enables sustainable, long-term AI systems that can evolve without the prohibitive costs of data re-indexing. Future work remains to address the challenge of maintaining compatibility when the underlying model architecture itself changes (e.g., transitioning from ResNet to Vision Transformers).

Summary updated

BibTeX
@article{biondi2022cl,
  author = {Niccolo Biondi and Federico Pernici and Matteo Bruni and Daniele Mugnai and Alberto Del Bimbo},
  title = {{CL2R: Compatible Lifelong Learning Representations}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2022},
  doi = {10.1145/3564786},
}
Figure