Abstract
Updating visual retrieval models in large-scale systems typically necessitates a costly "backfilling" process, where every image in a database must be re-indexed to match a new model's feature space. This paper introduces Orthogonal Compatible Aligned (OCA), a framework designed to eliminate this requirement. By utilizing feature space expansion and a learnable orthogonal transformation layer, OCA ensures that new models remain backward-compatible with legacy embeddings without sacrificing retrieval performance. Our experiments on CIFAR-100 and ImageNet-1k demonstrate that OCA achieves state-of-the-art results in both compatibility and new-model accuracy.
Introduction
In modern visual retrieval systems, such as those used in image search engines or recommendation platforms, images are represented as high-dimensional feature vectors (embeddings) stored in a massive gallery. When a superior model is developed, its embeddings are usually incompatible with the existing gallery. To adopt the new model, systems must perform backfilling: re-computing embeddings for billions of images. This process is prohibitively expensive in terms of computational resources, time, and energy consumption.
While Backward-Compatible Training (BCT) has been proposed to mitigate this, existing methods often force a compromise between compatibility with the old model and the peak performance of the new model. The OCA framework addresses this trade-off by preserving the geometric integrity of the feature space while allowing for the integration of new information.
Methodology
The Orthogonal Compatible Aligned (OCA) approach is built upon three primary technical pillars designed to maintain representation stationarity across model versions.
1. Feature Space Expansion
Rather than restricting the new model to the original embedding dimensionality, OCA expands the feature space. The new embedding size consists of the original dimensions ($h_{bct}$), which are responsible for maintaining compatibility, and additional dimensions ($h_e$), which capture novel information from updated datasets or improved training regimes.
2. Aligning Compatible Embedding (ACE) Loss
To ensure the new model's embeddings are aligned with the legacy space, the authors employ the Aligning Compatible Embedding (ACE) loss. This loss function combines cross-entropy and cosine distance metrics to force the new model’s features to align closely with the "prototypes" (the mean feature vectors per class) of the previous model. This ensures that a query from the new model can effectively retrieve relevant items from the old gallery.
3. The Orthogonal Transformation Layer ($T_\perp$)
The core innovation of OCA is the use of a learnable orthogonal transformation layer during training. Standard linear layers often disrupt the existing feature distribution, leading to a loss of compatibility. In contrast, orthogonal matrices preserve the geometry of the space—specifically angles and distances. By implementing this layer using a skew-symmetric matrix and an exponential map, the model learns to integrate new features without warping the underlying compatible subspace.
4. Inference and Zero-Padding
Crucially, the orthogonal layer and auxiliary classifiers are only utilized during the training phase. At inference time, these components are discarded, and the raw expanded features are used for retrieval. To compare new queries against the old gallery, the legacy features are simply zero-padded to match the new dimensionality. This elegant solution allows for direct comparison without requiring complex mapping functions or re-indexing.
Experimental Evaluation
The authors evaluated OCA on two standard benchmarks, simulating "open class" scenarios where the number of categories increases over time:
- CIFAR-100: The model was initially trained on 50 classes and subsequently updated to the full 100 classes.
- ImageNet-1k: The model was initially trained on 500 classes and updated to the full 1,000 classes.
All experiments utilized a ResNet50 backbone with an initial embedding size of 128, expanded by 32 dimensions in the updated versions.
Key Results
OCA established new state-of-the-art (SOTA) benchmarks for backward compatibility:
- CIFAR-100: OCA achieved a 26.35 mAP for backward compatibility (New Query vs. Old Gallery), outperforming the previous best method ($BT^2$ at 26.05). Its "New vs. New" performance (52.06 mAP) also significantly exceeded $BT^2$ (50.36).
- ImageNet-1k: OCA reached 36.71 mAP for compatibility and 56.82 mAP for new-to-new retrieval.
- Dimensionality Robustness: Ablation studies revealed that OCA is remarkably stable. While competing methods often see performance degradation as extra dimensions are added, OCA’s performance remains consistent or improves, indicating superior management of the expanded feature space.
Discussion and Limitations
While OCA provides a robust solution for model updates, certain areas remain for future exploration. The current research focuses on updates where the backbone architecture (e.g., ResNet50) remains consistent; the efficacy of this orthogonal approach when transitioning between different architectures, such as from ResNet to Vision Transformers, is yet to be determined. Additionally, while adding dimensions is effective for a few updates, repeated updates could lead to unwieldy feature sizes, suggesting a need for future research into dimension recycling or compression.
Conclusion
OCA offers a mathematically grounded approach to backward-compatible training by leveraging the geometry-preserving properties of orthogonal transformations. By allowing models to grow in dimensionality while maintaining alignment with legacy subspaces, OCA provides a path toward sustainable, long-term evolution of visual retrieval systems without the prohibitive cost of backfilling.
Summary updated