Abstract
Conventional model upgrades for visual search systems require offline refresh of gallery features by feeding gallery images into new models (dubbed as “backfill”), which is time-consuming and expensive, especially in large-scale applications. The task of backward-compatible representation learning is therefore introduced to support backfill-free model upgrades, where the new query features are interoperable with the old gallery features. Despite the success, previous works only investigated a close-set training scenario (i.e., the new training set shares the same classes as the old one), and are limited by more realistic and challenging open-set scenarios. To this end, we first introduce a new problem of universal backward-compatible representation learning, covering all possible data split in model upgrades. We further propose a simple yet effective method, dubbed as Universal Backward-Compatible Training (UniBCT) with a novel structural prototype refinement algorithm, to learn compatible representations in all kinds of model upgrading benchmarks in a unified manner. Comprehensive experiments on the large-scale face recognition datasets MS1Mv3 and IJB-C fully demonstrate the effectiveness of our method.
Introduction: The Challenge of Model Upgrades
In large-scale visual retrieval systems, such as face recognition or product search, a gallery (database) stores features extracted by an "Old Model." When a superior "New Model" is developed, its features are typically incompatible with the existing gallery. Traditionally, this necessitates backfilling: re-extracting features for every image in the gallery using the new model. For databases with billions of images, this process is computationally prohibitive, time-consuming, and sometimes impossible if raw images have been deleted or are restricted by privacy regulations.
While Backward-Compatible Representation Learning (BCT) aims to solve this by making new query features interoperable with old gallery features, previous research focused on "close-set" scenarios where training classes remain identical. This paper introduces Universal BCT, addressing five realistic data-split scenarios encountered during model upgrades ranging from simple data expansion to entirely new classes.
Universal Backward-Compatible Training (UniBCT)
The proposed UniBCT framework enables a new model to achieve compatibility across diverse scenarios by treating the old model's latent space as a guide. The architecture consists of three main components:
- Pseudo-Classifier Generation: Since the old model may not have seen new classes, UniBCT extracts features of the new training data using the old model and calculates class centroids, or "prototypes." These serve as a pseudo-classifier to supervise the new model's training.
- Structural Prototype Refinement (SPR): To mitigate noise from the weaker old model, SPR uses a graph-based approach. It constructs a fully-connected graph of images within a class, weighting edges by similarity scores from the new (stronger) model. Information is then propagated to refine the old features, ensuring outliers do not degrade the class prototype.
- Unified Loss Function: The new model is optimized using a standard classification loss for discriminative power and a compatibility loss (UniBCT loss) to align with the refined prototypes.
Experimental Results and Key Insights
The authors evaluated UniBCT using the MS1Mv3 dataset (~5.2M images, ~93k identities) to simulate the five allocation types and tested on the IJB-C benchmark.
- Cross-Model Performance: UniBCT consistently achieved "compatibility," where New-to-Old search performance surpassed the original Old-to-Old baseline. In the "Extended-class" scenario, UniBCT reached a 93.75% True Acceptance Rate (TAR) in cross-testing, vastly outperforming regression-based baselines.
- The "Stronger Leads the Weaker" Principle: The SPR algorithm leverages the new model's superior feature-matching capabilities to identify reliable old features, effectively using the new model's strength to refine the old model's prototypes.
- Beyond Regression: Simple L2 regression between features is insufficient for complex tasks like face recognition. Compatibility requires a classification-like loss that balances intra-class similarity with inter-class constraints.
Conclusion
UniBCT provides a unified solution for backfill-free model upgrades across various real-world data distributions. While the "Open-class" scenario remains the most challenging due to the gap between self-test and cross-test performance, UniBCT significantly advances the state-of-the-art in universal compatibility. Future research may explore extreme domain gaps, such as transitioning from synthetic to real-world data.
Summary updated