Prototype Perturbation for Relaxing Alignment Constraints in Backward-Compatible Learning

Zikun Zhou, Yazhou Sun, Wenjie Pei, Xin Li, Yaowei Wang

Abstract

Updating large-scale image retrieval models typically necessitates "backfilling"—a computationally expensive process of re-extracting features for every item in a database. Backward-Compatible Learning (BCL) offers a solution by ensuring new models are compatible with legacy features. However, strict alignment constraints often limit the discriminative power of the new model. This paper introduces Prototype Perturbation, a technique that relaxes these constraints by strategically shifting old class centers. This approach allows new models to maintain compatibility while achieving significantly higher accuracy.

The Challenge of Backfilling in Retrieval Systems

In production environments like e-commerce or landmark search, models are frequently upgraded to leverage better architectures or larger training sets. Traditionally, this upgrade triggers a "backfilling" phase where the entire gallery database must be re-indexed using the new model. For databases containing billions of images, this process is prohibitively expensive in terms of time and compute.

Traditional model updating with backfilling vs. the BCL process without backfilling.

Backward-Compatible Learning (BCL) aims to eliminate backfilling by training a new model such that its embeddings reside in the same feature space as the old model. This allows for direct comparison between new query features and old gallery features. However, a significant bottleneck exists: if the old model had poor class separation, strict BCL forces the new model to inherit these limitations, capping its potential performance.

Proposed Method: Prototype Perturbation

The authors identify that "overstrict alignment" is the primary cause of performance degradation in BCL. To address this, they propose Prototype Perturbation. Instead of forcing the new model to align perfectly with static old class centers (prototypes), they introduce calculated "nudges" to these prototypes. This creates a "pseudo-old" feature space that is more spread out, providing the new model with the necessary "room" to learn more discriminative features while remaining compatible with the original system.

Visualization of the feature space: old prototypes and embeddings vs. the more separable new embeddings.

The paper details two implementations:

  1. Neighbor-Driven Prototype Perturbation (NDPP): A heuristic method that pushes prototypes away from their $K$-nearest neighbors based on similarity. It is efficient and effective for smaller-scale tasks.
  2. Optimization-Driven Prototype Perturbation (ODPP): A robust approach where perturbations are treated as learnable parameters optimized via a hinge loss objective. This method is better suited for complex, large-scale datasets.

Experimental Evaluation

The researchers tested their approach across diverse benchmarks, including Google Landmarks v2 (GLDv2), In-shop clothing retrieval, and Market-1501 for person re-identification.

Key results include:

  • Landmark Retrieval: Moving from ResNet18 to ResNet50 on GLDv2, ODPP achieved a 15.10% mAP, outperforming the standard BCT baseline of 12.53%.
  • Person Re-ID: NDPP reached a 70.55% cross-test mAP on Market-1501, confirming that perturbations do not break compatibility with the old gallery.
  • Multimodal Retrieval: On the RSTPReid dataset, the method improved cross-test mAP by over 2%, showing its versatility across different data modalities.

Conclusion

Prototype Perturbation represents a significant step forward for BCL. By recognizing that "perfect" alignment is a hindrance, the authors demonstrate that relaxing constraints through strategic prototype shifts allows for the development of "compatible-plus" models. These models are not only backward-compatible but also significantly more powerful than those constrained by traditional BCL methods. While ODPP introduces some computational overhead, the gains in accuracy and the avoidance of massive backfilling operations make it a compelling choice for industrial-scale retrieval systems.

Summary updated

BibTeX
@misc{zhou2025prototype,
  author = {Zikun Zhou and Yazhou Sun and Wenjie Pei and Xin Li and Yaowei Wang},
  title = {{Prototype Perturbation for Relaxing Alignment Constraints in Backward-Compatible Learning}},
  year = {2025},
  eprint = {2503.14824},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.14824},
}
Figure