Privacy-Preserving Model Upgrades with Bidirectional Compatible Training in Image Retrieval

Shupeng Su, Binjie Zhang, Yixiao Ge, Xuyuan Xu, Yexin Wang, Chun Yuan, Ying ShanarXiv 2022 · DOI

Abstract

In large-scale image retrieval systems, privacy regulations often necessitate the deletion of raw images after feature extraction, creating a significant barrier to model upgrades. Traditional "backfilling"—re-extracting features with a new model—is impossible without the original data. While Backward-Compatible Training (BCT) allows new models to query old galleries, it shackles the new model to an inferior feature space. We present Bidirectional Compatible Training (BiCT), a framework that combines backward-compatible query training with a forward-compatible feature upgrade module. BiCT enables "backfill-free" upgrades that significantly outperform BCT by mapping old embeddings into a superior new feature space on-the-fly, without requiring access to original raw images.

1. Introduction

Modern image retrieval systems for tasks like face identification or person re-identification face a unique challenge: once a mathematical embedding is extracted, the raw image is often deleted to protect user privacy. This makes upgrading to a superior AI model difficult, as the system cannot re-process the original images to create a new gallery.

Existing solutions like Backward-Compatible Training (BCT) allow a new model to produce query features that are compatible with the old gallery. However, this approach forces the new model to remain within the constraints of an older, less discriminative feature space, leading to diminishing returns as technology evolves.

Comparison of retrieval system upgrade strategies: (a) the original system, (b) the standard BCT approach, and (c) the proposed BiCT framework.

2. Bidirectional Compatible Training (BiCT)

BiCT addresses the "BCT shackle" by tackling the upgrade from both ends of the retrieval pipeline:

  1. Backward-Compatible Training (BCT) for Queries: The new model ($\phi_{new}$) is trained to be highly discriminative while maintaining compatibility with the old model's ($\phi_{old}$) feature space. This allows for immediate deployment for new queries.
  2. Forward-Compatible Training (FCT) for the Gallery: Instead of leaving the gallery static, BiCT introduces a lightweight Feature Upgrade Module ($\psi$). This module is a small MLP trained to map old embeddings into the new model's superior feature space.

This bidirectional synergy allows for a "hot-refresh" of the gallery. The system can update gallery features in the background without ever needing the original raw images, gradually improving performance as the backfilling process completes online.

The BiCT training pipeline (a) and the resulting performance trajectory (b) during a hot-refresh upgrade.

3. Experimental Results

The researchers validated BiCT across benchmarks including Google Landmark v2 (GLDv2), ROxford, and RParis. In a scenario where training data was expanded from 25% to 100%, the original model achieved 21.63 mAP. While standard BCT improved this to 23.61 mAP, BiCT pushed the performance to 26.09 mAP, significantly narrowing the gap to the "Oracle" upper bound (28.84 mAP) which assumes access to raw images.

A key technical insight was the role of the loss weight $\lambda$. If $\lambda$ is too high, the new model's discriminative power is compromised; if too low, the feature upgrade module cannot bridge the gap between feature spaces. BiCT provides a robust mechanism to balance these competing objectives.

4. Conclusion

BiCT offers a practical, privacy-preserving path for upgrading image retrieval systems. By enabling the gallery to "look forward" while the query model "looks back," it breaks the performance limitations of traditional backward-compatible training. Future work will focus on optimizing sequential upgrades to prevent the accumulation of latency when stacking multiple feature upgrade modules over several generations of models.

Summary updated

BibTeX
@misc{su2022privacy,
  author = {Shupeng Su and Binjie Zhang and Yixiao Ge and Xuyuan Xu and Yexin Wang and Chun Yuan and Ying Shan},
  title = {{Privacy-Preserving Model Upgrades with Bidirectional Compatible Training in Image Retrieval}},
  year = {2022},
  eprint = {2204.13919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.13919},
}
Figure