Introduction
In large-scale visual retrieval systems, such as face recognition or person re-identification, images are represented as high-dimensional embeddings. These embeddings are stored in massive "gallery" databases for efficient search. However, when a more accurate model version is released, the new embeddings typically reside in a different mathematical space, making them incompatible with the existing database. Traditionally, this necessitates a "backfill"—re-processing billions of images with the new model—which is computationally prohibitive and time-consuming.
Feature Compatible Learning (FCL) addresses this by training new models to be backward-compatible with legacy features. This paper introduces Dual-Tuning, a framework that ensures compatibility while simultaneously improving retrieval performance.
Methodology: The Dual-Tuning Framework
Dual-Tuning operates through two primary mechanisms designed to align feature spaces at both the global and structural levels.
1. Compatible Prototype Loss
Instead of forcing individual new features to match noisy old features, Dual-Tuning utilizes "prototypes" — the centroid of each class in the feature space. By aligning new features with these stable, global prototypes from the old model, the new model learns the underlying distribution of the legacy space more effectively. This approach minimizes the impact of outliers and ensures a more robust alignment.
2. Mutual Structural Regularization
A retrieval model is composed of an embedding backbone and a classifier. Dual-Tuning performs a cross-operation: it trains the new backbone to be compatible with the old classifier, while ensuring the new classifier can interpret features from the old backbone. This mutual regularization ensures that the geometric "rules" of the feature space remain consistent across model versions.
Experimental Evaluation
The authors evaluated Dual-Tuning on several large-scale benchmarks, including Market1501 and MSMT17 for person re-identification, and ImageNet and Place365 for general classification.
Key Results
- Superior Cross-Compatibility: In "cross-test" scenarios (new query vs. old gallery), Dual-Tuning significantly outperformed existing state-of-the-art methods. On Market1501, it achieved a 69.53% mAP, notably higher than the original old model's performance of 61.49%.
- Architecture Agnostic: The framework remains effective even when upgrading between different architectures, such as moving from a ResNet18 to a ResNet50.
- Robustness to Mixed Galleries: In environments where the database contains a mix of old and new features, Dual-Tuning maintains high accuracy, preventing the performance collapse seen in other methods.
Conclusion
Dual-Tuning provides a practical solution for upgrading visual retrieval systems without the need for expensive data backfilling. By leveraging class prototypes and structural regularization, it achieves backward compatibility without compromising the performance gains of newer architectures. Future research may extend these principles to self-supervised learning and transformer-based models.
Summary updated