MixBCT: Towards Self-Adapting Backward-Compatible Training

Yu Liang, Shiliang Zhang, Yaowei Wang, Sheng Xiao, Kenli Li, Xiaoyu WangarXiv 2023 · DOI

Introduction

In large-scale image retrieval systems, such as face recognition for security or product search in e-commerce, upgrading to a newer, more accurate model presents a significant logistical challenge. The mathematical signatures, or "embeddings," generated by a new model are typically incompatible with the billions of embeddings already stored in the database (the gallery).

Traditionally, this requires "backfilling"—re-running the new model on every original image to update the database. This process is often prohibitively expensive, time-consuming, or impossible if the original raw images were deleted for privacy or storage reasons. Backward-Compatible Training (BCT) aims to train new models so their embeddings can be directly compared with legacy ones. However, existing BCT methods often fail when the old model is low-quality because they align with rigid "class centers" and ignore the actual spread (intra-class variance) of the legacy features.

The MixBCT Framework

To address these limitations, the authors propose MixBCT, a lightweight framework that shifts the compatibility constraint from the feature extractor to the classifier.

The MixBCT framework: New and old features are mixed before being fed into a unified classifier to learn compatible decision boundaries.

The Mix Operation and Unified Classifier

During training, for every batch of data, a portion (typically 30%) of the features generated by the new model is replaced with features previously generated by the old model for the same images. These mixed features are then fed into a unified classifier. This forces the classifier to learn a decision boundary that is simultaneously effective for both old and new representations.

By placing the compatibility constraint on the classifier rather than directly on the backbone (the feature extractor), the new model retains the freedom to learn superior, highly discriminative features while the classifier handles the "translation" between generations.

Self-Adaptation to Feature Distribution

A core insight of MixBCT is that legacy models aren't just shifted in feature space; they are often "fuzzier" due to lower quality. By training on specific instances rather than just class prototypes, MixBCT captures the actual distribution of the old model.

Visualization of how the decision boundary (blue dotted line) adaptively adjusts as the variance of the old features (shaded regions) increases.

As shown in the visualization above, the classifier adaptively adjusts its decision boundaries based on the quality of the old features. If the legacy features for a specific identity are spread out and messy, the classifier learns a wider, more robust boundary. If they are compact, it maintains a tighter boundary. This self-adapting nature allows MixBCT to maintain high performance even when upgrading from very low-quality legacy systems.

Experimental Results

The researchers evaluated MixBCT on massive benchmarks including MS1Mv3 (5.1 million images), IJB-C, and Market1501. They tested various real-world upgrade scenarios, including Extended-Data and Open-Class configurations.

Key findings include:

  • Superior Performance: MixBCT consistently outperformed state-of-the-art methods like UniBCT and AdvBCT. In the challenging "Open-Class" scenario with a low-quality legacy model, it achieved a 10.4% improvement in 1:N identification.
  • Robustness: The performance gap between MixBCT and other methods widened as the quality of the old model decreased, proving its superior adaptive capabilities.
  • Scalability: Unlike methods requiring complex memory banks, MixBCT uses a single standard classification loss, making it highly suitable for production environments.

Conclusion

MixBCT provides a simple yet powerful strategy for model upgrades in large-scale systems. By leveraging a mixing operation and a unified classifier, it avoids the pitfalls of rigid feature alignment and adaptively handles the variance of legacy models. Future work may involve automating the tuning of the mixing ratio to further streamline the training process.

Summary updated

BibTeX
@misc{liang2023mixbct,
  author = {Yu Liang and Shiliang Zhang and Yaowei Wang and Sheng Xiao and Kenli Li and Xiaoyu Wang},
  title = {{MixBCT: Towards Self-Adapting Backward-Compatible Training}},
  year = {2023},
  eprint = {2308.06948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.06948},
}
Figure