Manuscript Offprint

arXiv:2609.39836

Spherical Interpolation for Backward-Compatible Multimodal Representations

Simone Ricci, Niccolò Biondi, Federico Pernici

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Contrastive vision-language models map visual and textual representations into a shared normalized embedding space, making cosine similarity the natural metric for cross-modal retrieval. A practical challenge arises during model upgrades: independently trained models generally produce incompatible representation spaces, so replacing a deployed model typically requires recomputing embeddings for the entire gallery, which is prohibitively expensive at scale. Orthogonal post-hoc alignment can partially mitigate this problem by mapping new-model queries into the old-model gallery space. However, because independently trained models can differ in fine-grained representation structure, the orthogonal alignment remains approximate, leaving a residual angular discrepancy between the old-model query and the aligned new-model query. We study whether interpolation along the spherical geodesic between these two normalized query representations can improve retrieval without re-indexing the gallery. We characterize when this path contains an interior query direction closer to an idealized retrieval-optimal direction than either endpoint, and connect this characterization to Recall@K through a local margin-based certification result. Experiments across multiple benchmarks and model families show that post-alignment spherical interpolation improves over orthogonal alignment alone, recovering backward-compatibility in most evaluated settings. Consistent with our geometric characterization, per-query oracle analysis shows that retrieval-favorable interior points occur frequently in practice. Code is available at https://github.com/miccunifi/SLERP_backward_compatibility.

1 Introduction

Contrastive vision-language models (VLMs) have become a standard foundation for multimodal retrieval and zero-shot classification [1, 2, 3, 4, 5]. By mapping images and text into a shared normalized embedding space, these models leverage cosine similarity for cross-modal retrieval and prompt-based classification. As the ecosystem of pretrained models grows through public model releases and model hubs [6, 7, 8], a practical question arises: how can a deployed retrieval system benefit from a stronger model without recomputing all embeddings produced by the old one?

This question is particularly important in large-scale retrieval systems. In many production deployments, galleries containing millions or billions of items have already been encoded and indexed, making index reconstruction after every model update computationally prohibitive [9,10,11,12,13][9, 10, 11, 12, 13]. Moreover, re-indexing may be infeasible when the original raw data are no longer accessible due to privacy constraints, storage limitations, or data retention policies [14,15,16][14, 15, 16]. In such settings,

∗^{*}Corresponding author: simone.ricci@unifi.it.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) CC3M validation split, used to estimate the orthogonal map.

(b) Flickr30k dataset, used to evaluate the estimated orthogonal map in a zero-shot setting.

Figure 1: Residual discrepancy after orthogonal alignment from SigLIP2 to CLIP ViT-B/32. We show two complementary views: the distribution of residual angular mismatch between paired embeddings from the two models, and a 2D t-SNE projection of the corresponding feature spaces. The remaining angular mismatch after alignment suggests that the orthogonal map leaves a residual cross-model gap, motivating a post-alignment interpolation strategy.

backward-compatible upgrades that preserve the existing index may be the only viable option. Even when re-indexing is feasible, progressive upgrades create a migration period requiring compatibility with the existing gallery.

This compatibility challenge is increasingly common as advances in architectures, optimization, and training data drive frequent model upgrades [17, 18, 19, 20, 21]. Yet such updates can compromise backward-compatibility [10] and alter the behavior of downstream applications in undesirable ways [10, 22, 11, 15, 23, 24, 25, 26]. Independently trained models rarely produce directly comparable representations [27], so directly replacing a query encoder can break compatibility with an existing gallery. Backward-compatible training [10] addresses this issue by imposing restrictive constraints on the new-model training that can degrade its performance [28, 29]. A recent alternative is post-hoc alignment, which decouples model improvement from compatibility constraints by training the new model independently and restoring compatibility afterward through a lightweight mapping between representation spaces [12, 13, 30]. This approach is motivated by the manifold hypothesis and related views on latent-space convergence, which suggest that functionally similar models may differ largely by simple transformations of a shared latent structure [31, 32, 33, 34, 30].

For contrastive VLMs, orthogonal Procrustes provides a natural alignment map: embeddings are normalized and compared by cosine similarity, so the resulting orthogonal transformation preserves inner products and therefore the image–text geometry underlying retrieval and zero-shot classification [35]. Moreover, agreement of the multimodal similarity kernel between independently trained contrastive VLMs identifies a single orthogonal map shared across image and text encoders, enabling cross-modal transfer of an alignment estimated from one modality [35]. Related unimodal literature further supports orthogonal transformations over unconstrained linear maps, particularly when the new model is more informative, as an isometry preserves rather than distorts its discriminative geometry [33, 36, 30]. However, independent training can induce representation differences that are not captured by a single global isometry. Orthogonal post-hoc alignment is therefore approximate: the aligned new-model query embedding will not, in general, coincide with the embedding that the old model would have produced for the same input, especially when models share coarse semantic structure but differ in fine-grained organization [37]. Consistent with this observation, Fig. 1 shows that a non-negligible residual angular mismatch remains after orthogonally aligning SigLIP2 to CLIP ViT-B/32, both on the alignment dataset and under zero-shot transfer.

Motivated by the residual angular discrepancy, we treat the old-model query and the aligned new-model query as endpoints in a shared normalized representation space. Rather than assuming that either endpoint is optimal for retrieval, we ask whether an intermediate direction along the spherical geodesic connecting them can be more effective against the old-model gallery. Because retrieval is based on cosine similarity between normalized embeddings, the corresponding spherical interpolation is the minor geodesic between the two query directions. We parameterize this path using spherical linear interpolation (SLERP) [38], which traverses the geodesic at constant angular speed and therefore gives the interpolation weight a consistent geometric interpretation across queries. We formalize this intuition by considering an idealized retrieval-optimal query direction, used only as an analytical reference, and characterizing when the interpolation geodesic contains an interior point with a smaller angular gap to this direction than either endpoint. Geometrically, this occurs exactly when the normalized projection of the retrieval-optimal direction onto the interpolation plane lies in the relative interior of the arc; otherwise, the optimum along the arc is attained at an endpoint. We then connect this angular characterization to top-K retrieval through a margin perturbation bound and a local Recall@K certification result.

We propose an approach that requires no model retraining or gradient-based optimization: the deployed gallery remains unchanged, while the new-model query is mapped into the old-model space by orthogonal Procrustes alignment and then interpolated with the old-model query using a fixed weight selected on the alignment support set. Empirically, we evaluate backward-compatible cross-modal retrieval across multiple benchmarks and model families. Orthogonal alignment provides a useful shared coordinate system but often fails to achieve backward-compatibility on its own, whereas post-alignment spherical interpolation improves over orthogonal alignment and frequently restores compatibility. Controlled ablations show that endpoint combination accounts for most of the mean retrieval improvement, while support-set weight selection primarily improves compatibility robustness. The weight selected on the same CC3M alignment support set used to estimate the Procrustes map transfers across retrieval datasets, achieving performance close to the per-dataset optimum without target-test tuning. A per-query oracle analysis, reported only as an upper bound, shows that retrieval-favorable interior positions occur frequently in practice; flip-rate analysis further reveals that the retrieval gains arise from a favorable balance between positive and negative retrieval flips. Finally, the approach remains effective when the gallery is re-indexed and in zero-shot classification.

Our main contributions are:

• We geometrically characterize when spherical interpolation between old-model and aligned new-model queries contains an interior direction closer to an idealized retrieval-optimal direction than either endpoint, and connect this characterization to top-K retrieval.

• We introduce a query-side approach for contrastive VLM upgrades that combines orthogonal Procrustes alignment with spherical interpolation, requiring neither model retraining nor gradient-based optimization, using a fixed interpolation weight selected on the alignment support set, while leaving the deployed gallery unchanged.

• We validate the approach across CLIP, SigLIP1, and SigLIP2 on Flickr30k, COCO2014, and NoCaps, showing gains over orthogonal alignment and frequent backward-compatibility recovery. Ablations show that endpoint combination drives most of the improvement, while support-set weight selection transfers across datasets without target-test tuning.

References (80)

  • Learning transferable visual models from natural language supervision
  • Scaling up visual and vision-language representation learning with noisy text supervision
  • Sigmoid loss for language image pre-training
  • Flava: A foundational language and vision alignment model
  • HuggingFace's Transformers: State-of-the-art Natural Language Processing
  • Torchvision the machine-vision package of torch
  • Billion-scale similarity search with GPUs (opens arXiv in a new tab)
  • Towards backward-compatible representation learning
  • Learning compatible embeddings
  • Forward compatible training for large-scale embedding retrieval systems
  • Fastfill: Efficient compatible model update
  • Towards universal backward-compatible representation learning
  • Stationary representations: Optimally approximating compatibility and implications for improved model replacements
  • Privacy in the age of medical big data
  • LLaMA: Open and Efficient Foundation Language Models
  • Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, et al. Textbooks are all you need. arXiv preprint arXiv:2306.11644, 2023. (opens arXiv in a new tab)
  • A suite for analyzing large language models across training and scaling
  • A survey on model moerging: Recycling and routing among specialized experts for collaborative learning
  • Positive-congruent training: Towards regression-free model updates
  • MUSCLE: A model update strategy for compatible LLM evolution
  • Beyond accuracy: The role of mental models in human-ai team performance
  • Mitigating negative flips via margin preserving training
  • A stationary (and therefore compatible) representation is all you need
  • Convergent learning: Do different neural networks learn the same representations? In Feature Extraction: Modern Questions and Challenges, pages 196–212
  • Bt^ 2: Backward-compatible training with basis transformation
  • Backward-compatible aligned representations via an orthogonal transformation layer
  • λ-orthogonality regularization for compatible representation learning
  • Testing the manifold hypothesis
  • Position: The platonic representation hypothesis
  • Latent space translation via semantic alignment
  • Latent functional maps: a spectral framework for representation alignment
  • Canonicalizing multimodal contrastive representation learning (opens arXiv in a new tab)
  • Generalized clustering and multi-manifold learning with geometric structure preservation
  • Back into plato’s cave: Examining cross-modal representational (opens arXiv in a new tab)
  • Neighborhood consensus contrastive learning for backward-compatible representation
  • Hot-refresh model upgrades with regression-free compatible training in image retrieval
  • Cores: Compatible representations via stationarity
  • Cl2r: Compatible lifelong learning representations
  • Regular polytope networks
  • Prevalence of neural collapse during the terminal phase of deep learning training
  • Darwinian model upgrades: Model evolving with selective compatibility
  • Learning along the arrow of time: Hyperbolic geometry for backward-compatible representation learning
  • Prototype perturbation for relaxing alignment constraints in backward-compatible learning
  • L2r: Lifelong learning for first-stage retrieval with backward-compatible representations
  • Learning continual compatible representation for re-indexing free lifelong person re-identification
  • Towards cross-modal backward-compatible representation learning for vision-language models
  • Loss surfaces, mode connectivity, and fast ensembling of DNNs
  • Averaging weights leads to wider optima and better generalization
  • averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
  • Git re-basin: Merging models modulo permutation symmetries
  • Ties-merging: Resolving interference when merging models
  • Task arithmetic in the tangent space: Improved editing of pre-trained models
  • Task arithmetic through the lens of one-shot federated learning
  • Spherical linear interpolation and text-anchoring for zero-shot composed image retrieval
  • WARP: On the benefits of weight averaged rewarded policies (opens arXiv in a new tab)
  • Quaternions, interpolation and animation
  • Reproducible scaling laws for contrastive language-image learning
  • Openclip, July 2021
  • Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Deep visual-semantic alignments for generating image descriptions
  • Microsoft coco: Common objects in context
  • Nocaps: Novel object captioning at scale
  • Unsupervised alignment of embeddings with wasserstein procrustes
  • A general framework for manifold alignment
  • Manifold alignment using procrustes analysis
  • Relative representations enable zero-shot latent space communication
  • Multi-way representation alignment (opens arXiv in a new tab)
  • Meta-learning advisor networks for long-tail and noisy labels in social image classification
  • Improving general text embedding model: Tackling task conflict and data imbalance through model merging (opens arXiv in a new tab)
  • Understanding contrastive representation learning through alignment and uniformity on the hypersphere
  • Mind the gap: Understanding the modality gap in multi-modal contrastive representation learning
  • Two effects, one trigger: On the modality gap, object bias, and information imbalance in contrastive vision-language models
  • Cross the gap: Exposing the intra-modal misalignment in CLIP via modality inversion
  • Isoclip: Decomposing CLIP projectors for efficient intra-modal alignment
  • Infonce induces gaussian distribution
  • Imagenet: A large-scale hierarchical image database
  • Ridge regression: Biased estimation for nonorthogonal problems
  • Canonical correlation analysis: An overview with application to learning methods
  • Metric compatible training for online backfilling in large-scale retrieval