Abstract
In visual retrieval systems, updating the embedding model requires recomputing features for every piece of data. This expensive process is referred to as backfilling. Recently, the idea of backward compatible training (BCT) was proposed. To avoid the cost of backfilling, BCT modifies training of the new model to make its representations compatible with those of the old model. However, BCT can significantly hinder the performance of the new model. In this work, we propose a new learning paradigm for representation learning: forward compatible training (FCT). In FCT, when the old model is trained, we also prepare for a future unknown version of the model. We propose learning side-information, an auxiliary feature for each sample which facilitates future updates of the model. To develop a powerful and flexible framework for model compatibility, we combine side-information with a forward transformation from old to new embeddings. Training of the new model is not modified, hence, its accuracy is not degraded. We demonstrate significant retrieval accuracy improvement compared to BCT for various datasets: ImageNet-1k (+18.1%), Places-365 (+5.4%), and VGG-Face2 (+8.3%). FCT obtains model compatibility when the new and old models are trained across different datasets, losses, and architectures.
The Challenge of Model Updates: The Backfilling Crisis
Modern visual search and retrieval systems rely on embedding models to convert images into compact mathematical vectors. As research progresses and superior models are developed, system maintainers face a significant hurdle: the "backfilling" crisis. To utilize a new model, every image in a massive database—often numbering in the billions—must be re-processed to generate new embeddings. This process is prohibitively expensive in terms of time and computational resources.
Previous attempts to mitigate this, such as Backward Compatible Training (BCT), forced the new model to produce embeddings compatible with the old ones. While this avoids backfilling, it imposes a "legacy tax," where the performance of the state-of-the-art model is artificially constrained by the limitations of its predecessor.
Proposed Method: Forward Compatible Training (FCT)
FCT flips the paradigm by preparing the old model for a future, unknown update. The framework consists of three core components:
- Side-Information ($\psi$): During the initial training of the "old" model, an auxiliary head is trained to extract side-information. This captures data features that may not be necessary for current tasks but could be vital for future, more complex models—essentially preserving "information scraps" that would otherwise be discarded.
- Self-Supervised Learning: To ensure side-information is generalizable, the authors employ SimCLR (contrastive learning). This allows the model to learn the underlying structure of the data without being tied to specific labels of the current task.
- Transformation Function ($h$): When upgrading to a new model, a lightweight Multi-Layer Perceptron (MLP) is used. This function takes the old embedding and the saved side-information to "translate" them into the new model's embedding space.
Crucially, the new model is trained independently, allowing it to reach its maximum potential accuracy without any "legacy tax."
Experimental Results
FCT was evaluated across several large-scale benchmarks, including ImageNet-1k, VGGFace2, and Places-365. The results demonstrate that FCT significantly outperforms BCT by maintaining the new model's peak accuracy while providing high-quality backward compatibility.
Key performance gains over BCT include:
- ImageNet-1k: +18.1% top-1 retrieval accuracy.
- Places-365: +5.4% improvement.
- VGG-Face2: +8.3% improvement.
Conclusion and Future Work
Forward Compatible Training provides a scalable solution for updating large-scale retrieval systems without the need for exhaustive backfilling. By decoupling the training of old and new models, FCT allows for architectural flexibility and maximum performance. While FCT introduces a small storage overhead for side-information and faces challenges in extreme cross-domain updates, it represents a major step toward sustainable, long-term model evolution in production environments.
Summary updated