Backward Compatible Training for Large Scale Retrieval

This direction is split into other directions: compatibility-performance tradeoff. Its last version stays readable and citable here.

Version 1 of 130 papers40 conceptsfrozen 2026-10-04

In large-scale retrieval systems—such as those used for face recognition or web-scale image search—upgrading a model is a logistical nightmare. When a researcher develops a superior embedding model, the new mathematical vectors (embeddings) it produces are typically incompatible with the billions of vectors already stored in the system's "gallery."

To make the new model usable, systems traditionally undergo backfilling: re-extracting feature embeddings for every single item in the database. For a gallery with billions of images, this process can take weeks of compute time and cost millions of dollars. Backward-Compatible Training (BCT) aims to eliminate this cost by training new models to "speak" the language of the old ones, allowing a new query model to search an old database without re-indexing.

The Compatibility-Accuracy Trade-off

The fundamental challenge in BCT is the tension between compatibility and performance. As Vivek Ramanujan and colleagues note in Forward Compatible Training for Large-Scale Embedding Retrieval Systems, forcing a new, high-capacity model to remain compatible with a legacy embedding space often limits its accuracy.

Think of it as a vocabulary constraint: if a "genius" model (the upgrade) is forced to use only the limited vocabulary of a "toddler" model (the legacy version), the genius cannot express complex ideas. This creates a "performance ceiling" where the upgraded model is tethered to the geometric limitations and representational errors of its predecessor.

Aligning Latent Spaces

To achieve compatibility, the new model must map its representations into the same latent space as the old model. Early approaches focused on strict alignment. Jile Jiao and the team behind Dual-Tuning proposed using class prototypes—central points for each category—to transfer knowledge from the old model to the new one while regularizing the structure of the new feature space.

However, strict alignment often forces the new model to inherit the "noise" of the old one. To combat this, Binjie Zhang introduced Darwinian Model Upgrades, which uses selective compatibility. Instead of forcing the new model to match every legacy embedding, it allows the model to "evolve" away from low-quality features, maintaining alignment only where the legacy model was actually reliable.

Preventing Negative Flips

Compatibility isn't just about retrieval; it's also about behavioral consistency. In An Empirical Analysis of Backward Compatibility in Machine Learning Systems, Megha Srivastava and her co-authors highlight the problem of negative flips: instances where a "better" model (with higher aggregate accuracy) fails on a specific example that the old model handled correctly.

To address this, Sijie Yan proposed Positive-Congruent Training. This approach uses a specialized loss function to ensure that the new model's predictions are a superset of the old model's correct predictions. The goal is "regression-free" updates, where the system only improves and never backslides on individual cases.

Geometric and Structural Innovations

Recent work has moved beyond simple loss functions to more sophisticated geometric transformations.

  • Basis Transformation: Yifei Zhou developed BT2, which uses a linear transformation to map new features back to the legacy space. This allows the new model to learn its own optimal representation during training, only "translating" to the old format at the very end.
  • Hyperbolic Spaces: Ngoc Bui explored Hyperbolic Backward-Compatible Training, treating the "time" of model evolution as a dimension in hyperbolic geometry. This allows the model to naturally represent the hierarchy and uncertainty of evolving datasets.
  • Prototype Perturbation: To break the performance ceiling, Zikun Zhou introduced Prototype Perturbation, which intentionally pushes legacy class centers apart. This "relaxes" the alignment constraint, giving the new model more room to develop discriminative features while remaining functionally compatible.

By treating compatibility as a flexible constraint rather than a rigid requirement, these researchers are enabling a future where AI systems can evolve continuously without the prohibitive cost of re-processing the past.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_backward_compatible_training_for_large_s_4d225835,
  title = {Backward Compatible Training for Large Scale Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/backward-compatible-training-for-large-scale-retrieval/rdr_4d22583518344ad8912b9d80feb24679},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_backward_compatible_training_for_large_s_4d225835_v1,
  title = {Backward Compatible Training for Large Scale Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/backward-compatible-training-for-large-scale-retrieval/rdr_4d22583518344ad8912b9d80feb24679/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}