[Paper Review] Towards Backward-Compatible Representation Learning
This paper proposes Backward-Compatible Training (BCT), a method to learn visual embeddings that remain compatible with previously computed features even when models differ in architecture, loss function, or dimensionality. By incorporating a classifier from the old model as a regularizer during training, BCT enables direct comparison between new and old embeddings, eliminating the need for backfilling and allowing backfill-free model updates without sacrificing accuracy.
We propose a way to learn visual features that are compatible with previously computed ones even when they have different dimensions and are learned via different neural network architectures and loss functions. Compatible means that, if such features are used to compare images, then "new" features can be compared directly to "old" features, so they can be used interchangeably. This enables visual search systems to bypass computing new features for all previously seen images when updating the embedding models, a process known as backfilling. Backward compatibility is critical to quickly deploy new embedding models that leverage ever-growing large-scale training datasets and improvements in deep learning architectures and training methods. We propose a framework to train embedding models, called backward-compatible training (BCT), as a first step towards backward compatible representation learning. In experiments on learning embeddings for face recognition, models trained with BCT successfully achieve backward compatibility without sacrificing accuracy, thus enabling backfill-free model updates of visual embeddings.
Motivation & Objective
- To address the scalability bottleneck in visual retrieval systems caused by backfilling when updating embedding models.
- To formalize backward-compatible representation learning as a critical requirement for continuous deployment of improved models in open-set recognition.
- To develop a training framework that ensures new embeddings can be directly compared with old ones, regardless of architectural or loss function differences.
- To enable backfill-free updates in large-scale visual search systems, reducing computational cost and deployment latency.
- To demonstrate transitive compatibility across multiple model versions through chain-like BCT training.
Proposed method
- Introduce an influence loss that uses the classifier weights from the old embedding model as a regularizer during training of the new model.
- Train the new model to align its predictions with those of the old model’s classifier, ensuring compatibility in the embedding space.
- Use the old model’s classifier as a proxy to guide the new model’s feature learning, preserving compatibility without requiring feature dimension matching.
- Apply BCT in a chain: train model 2 with BCT using model 1, then train model 3 with BCT using model 2, achieving transitive compatibility.
- Use a linear projection layer to match feature dimensions when necessary, though direct compatibility is achieved even without dimension matching.
- Evaluate compatibility via 1:1 verification and mean average precision (mAP) on benchmark datasets like IJB-C and Market-1501.
Experimental results
Research questions
- RQ1Can new visual embedding models be trained to be directly comparable with previously computed embeddings, even when architectures and loss functions differ?
- RQ2To what extent can backward compatibility be achieved without degrading the accuracy of the new model?
- RQ3Can backward compatibility be extended across multiple model versions through sequential training?
- RQ4What factors—such as loss function type or activation functions—undermine backward compatibility, and how can they be mitigated?
- RQ5Is BCT robust to changes in training data size, model architecture, and embedding dimensionality?
Key findings
- BCT enables backward-compatible representation learning with minimal accuracy loss, achieving 45.0% mean AP on IJB-C when comparing old and new models, compared to 26.7% without BCT.
- The new model trained with BCT achieves 60.1% mAP on Market-1501, matching the performance of a non-backward-compatible model, demonstrating no accuracy sacrifice.
- Transitive compatibility is achieved: a model trained via BCT with a prior version remains compatible with earlier models, even without direct training on them.
- BCT successfully maintains compatibility across multiple changing factors, including model architecture, loss function, and data scale, as shown in ablation studies.
- Failure cases occur when using Cosine Margin Loss with Softmax loss or adding ReLU activation, indicating distributional shifts can break compatibility.
- The method eliminates the need for backfilling in visual search systems, enabling backfill-free model updates in large-scale retrieval applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.