TL;DR
Upgrading large-scale vision-language models (VLMs) usually requires a prohibitively expensive re-indexing of millions or billions of gallery items. This paper introduces a training-free, query-side method that uses Spherical Linear Interpolation (SLERP) to combine old and new model representations, effectively restoring backward compatibility and improving retrieval performance without touching the existing gallery index.
What Problem Does This Paper Address?
In production environments, cross-modal retrieval systems (like searching for images using text) rely on contrastive models like CLIP. When a better model is released, engineers face a dilemma: to benefit from the new model, they must re-compute embeddings for every single item in their massive gallery. This "re-indexing tax" is not just computationally expensive; it’s often impossible due to data privacy laws or storage limits that prevent keeping the original raw data.
While researchers have tried "post-hoc alignment"—using math to map new model queries into the old model's coordinate space—these mappings are only approximate. As shown in the figure below, even after alignment, a significant "residual angular discrepancy" remains because different models organize fine-grained semantic details differently.
Methods
The authors propose a two-step, query-side upgrade path:
- Orthogonal Procrustes Alignment (SVD): Using a small "support set" of image-text pairs (like the CC3M validation set), they calculate an orthogonal transformation that maps the new model's embeddings into the old model's space. This preserves the new model's internal geometry while making it comparable to the old gallery.
- Spherical Linear Interpolation (SLERP): Instead of just using the aligned new query, they interpolate between the old-model query ($u$) and the aligned new-model query ($v$). Because VLM embeddings live on a hypersphere, they use SLERP to move along the "minor geodesic" (the shortest path on the sphere) at a constant angular speed.
The core theoretical contribution is a geometric characterization proving that there often exists an "interior" point on this arc that is closer to the "ideal" retrieval direction than either the old or the new model alone.
Datasets
The study evaluates the approach across several standard benchmarks and model families:
- Alignment Support: CC3M (validation split) was used to estimate the alignment map and select the interpolation weight ($\alpha$).
- Evaluation Benchmarks: Flickr30k, COCO2014, and NoCaps.
- Models: The authors tested upgrades across OpenAI CLIP (ViT-B/32, L/14, H/14), SigLIP1, and SigLIP2, covering both same-family and cross-family model transitions.
Key Insights and Ideas
- The "Interior" Advantage: The most surprising finding is that the best query isn't necessarily the one from the "better" new model. By interpolating, you essentially "average out" the fine-grained structural errors unique to each model.
- Weight Transferability: You don't need to tune the interpolation weight ($\alpha$) for every new dataset. A weight found on a general-purpose set like CC3M transfers remarkably well to specific benchmarks like Flickr30k.
- Flip Analysis: The improvement comes from a favorable balance of "flips." The new model corrects many queries the old model missed (positive flips) while the interpolation helps retain the queries the old model was already good at (minimizing negative flips).
Key Results
- Backward Compatibility: The method achieved empirical backward compatibility (where the new query vs. old gallery outperforms the old query vs. old gallery) in 85 out of 90 evaluated configurations. Standard SVD alignment alone only succeeded in 45 cases.
- Performance Recovery: In the CLIP ViT-L/14 to B/32 upgrade, SLERP recovered 91.1% of the improvement that would have been gained by a full (and expensive) re-indexing of the gallery.
- Consistency: The benefit was observed across both Image-to-Text (I2T) and Text-to-Image (T2I) retrieval tasks, as well as zero-shot classification.
Limitations and Future Work
- Inference Overhead: At query time, you must run both the old and new encoders. While this increases latency, the authors note it can be mitigated by running encoders in parallel on separate GPUs or caching old embeddings.
- Endpoint Quality: The method is a "tide that lifts all boats"—if both the old and new models are fundamentally weak for a specific domain, interpolation cannot magically inject new domain-specific knowledge.
- Query-Adaptive Weights: The current method uses a fixed weight for all queries. Oracle analysis suggests that picking a custom weight for each specific query could unlock even higher performance, representing a promising direction for future research.
Summary updated