Dynamic gradient reactivation for backward compatible person re-identification

Xiao Pan, Hao Luo, Weihua Chen, Fan Wang, Hao Li, Wei Jiang, Jianming Zhang, Jianyang Gu, Peike Li

Introduction

Updating person re-identification (Re-ID) models in large-scale systems is a significant challenge. Typically, images are stored as high-dimensional features. When a new, more accurate model is deployed, its features are incompatible with the existing gallery, necessitating a costly re-extraction process for billions of images. Backward Compatible Training (BCT) aims to train new models whose features can be directly compared with old ones. Traditional BCT relies on distillation, forcing the new model to mimic the old feature distribution. However, this often causes the new model to inherit the limitations and "entangled clusters" of the old one.

Ranking-based Backward Compatible Learning (RBCL)

The authors propose Ranking-based Backward Compatible Learning (RBCL), shifting the focus from feature alignment to ranking optimization. Instead of forcing new features to match old coordinates, RBCL optimizes a differentiable version of Mean Average Precision (mAP). This ensures that new features achieve optimal ranking positions within the old feature space, preserving the discriminative power of the new model.

Comparison of Distillation-Based vs. RBCL approaches. RBCL avoids mis-ranked features by focusing on ranking rather than strict alignment.

Dynamic Gradient Reactivation (DGR)

A common issue with differentiable ranking losses is the "gradient vanishing" problem caused by sigmoid functions. As training progresses, samples often move into the flat regions of the sigmoid curve, stalling the learning process. To address this, the authors introduce Dynamic Gradient Reactivation (DGR). DGR dynamically compresses samples back into the gradient-effective interval during the forward pass, effectively "reactivating" learning for hard samples and ensuring continuous refinement of feature boundaries.

Global Context with Neighbor Context Agents (NCAs)

To maintain a global perspective of the old feature space without the overhead of comparing against the entire gallery, the method employs Neighbor Context Agents (NCAs). These agents are representative cluster centroids that approximate the global distribution, allowing the model to target the best global ranking positions efficiently.

Experimental Evaluation

The method was evaluated on major Re-ID benchmarks, including Market-1501 and DukeMTMC-reID. RBCL demonstrates significant improvements over existing methods:

  • In-Domain Performance: In supervised settings, RBCL outperformed the Influence Loss baseline by 11.7% in mAP and 10.2% in Rank-1 accuracy.
  • Cross-Domain Robustness: RBCL showed superior performance in cross-domain and unsupervised domain adaptation (UDA) scenarios, surpassing the standard Triplet Loss by 10.7% mAP in cross-domain tests.
  • Architectural Flexibility: The approach remains effective even when upgrading to different model architectures (e.g., from ResNet-50 to IBN-ResNet-101), where distillation-based methods typically struggle.

Conclusion

RBCL redefines backward compatibility in Re-ID as a retrieval problem rather than a reconstruction task. By prioritizing ranking order and overcoming optimization hurdles with DGR, it allows for seamless model upgrades that maintain high accuracy without the need for gallery re-indexing. Future work may extend these principles to other retrieval domains such as image-to-text search.

Summary updated

BibTeX
@article{pan2022dynamic,
  author = {Xiao Pan and Hao Luo and Weihua Chen and Fan Wang and Hao Li and Wei Jiang and Jianming Zhang and Jianyang Gu and Peike Li},
  title = {{Dynamic gradient reactivation for backward compatible person re-identification}},
  journal = {Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=4h9Yw1Rr0r},
}
Figure