Updating large-scale image retrieval systems presents a significant logistical challenge. In a typical production environment, a gallery of billions of images is represented by mathematical embeddings generated by a specific AI model. When a superior model is developed, practitioners usually face a binary choice: either re-process the entire gallery to generate new embeddings (a process known as "backfilling") or stick with the legacy model, sacrificing performance.
In the paper "BT²: Backward-compatible Training with Basis Transformation," researchers from UC Berkeley, Cornell, and Meta AI propose a framework that breaks the traditional trade-off between backward compatibility and model performance.
The Compatibility-Performance Trade-off
In modern retrieval systems, a "query" image is compared against a "gallery" of stored images. If the query model is updated from version A to version B, the resulting embeddings are typically incompatible. Previous research into Backward Compatible Training (BCT) attempted to solve this by constraining the new model to produce embeddings similar to the old one. However, this often results in a "compatibility-performance trade-off," where the new model's accuracy is capped by its need to mimic an inferior predecessor.
The BT² Framework
The core innovation of BT² is the use of learnable, information-preserving Basis Transformations (BT). A BT applies an orthonormal transformation to the data, which preserves the dot product and cosine similarity between vectors. This allows the model to reorganize its internal representation without losing information.
Architecture and Parameterization
As shown in the architecture diagram, the system utilizes two BT blocks. The first block splits the new model's representation: one part is optimized to match the old model's "compatible" information, while the other part—the "extra dimensions"—stores the "incompatible" information that drives the new model's superior performance. To maintain orthonormality during training, the authors parameterize the BT matrix as the exponential of a learnable skew-symmetric matrix ($P = e^A$). This setup ensures that the query model can use the full vector for new images while gracefully truncating it when comparing against legacy gallery embeddings.
Experimental Results
The authors evaluated BT² across several standard benchmarks, including CIFAR-100 and ImageNet-1k, simulating scenarios where datasets and model architectures evolve.
Key findings include:
- CNN to Transformer Migration: When transitioning from a ResNet50 to a ViT-B16 on ImageNet, BT² achieved a 51.2% Top-1 accuracy for backward compatibility, significantly outperforming the 45.7% achieved by standard BCT.
- Modality Fusion: In a challenging test making a new image-to-image model compatible with an old text-to-image (CLIP) model, BT² improved retrieval accuracy (mAP) from 12.1 to 13.6.
- Efficiency: The research demonstrated that adding as few as 8 to 32 extra dimensions—a small fraction of the total embedding size—was sufficient to break the performance bottleneck.
Insights and Future Work
The primary insight of BT² is that adding dimensions is the key to breaking the compatibility trade-off, provided those dimensions are organized via a principled transformation. By acting as a "traffic controller," the BT blocks ensure that shared information remains in compatible slots while new features occupy the extra space.
While BT² is highly effective, it faces a limitation regarding dimension growth. As a system undergoes multiple updates, the total representation size increases. While this eventually necessitates a full backfill to reset the gallery, BT² provides a viable way to delay this massive expense for several model generations. Future research may focus on methods to compress or recycle these extra dimensions over time.
Summary updated