Learning Sample-wise Rank-aware Interpolation Weights for Composed Visual Data Retrieval

Boseung Jeong, Taegyu Park, Donghyeon Kwon, Hyunsouk Cho, Suha KwakarXiv 2026

TL;DR

Composed visual retrieval (searching with an image or video plus a text modifier) currently relies on slow, computationally heavy Multimodal Large Language Models (MLLMs). This paper introduces SRAIN, a framework that replaces MLLMs with a lightweight module that dynamically predicts query-specific interpolation weights in the embedding space. By optimizing for ranking rather than just target similarity, SRAIN matches or beats state-of-the-art accuracy while running up to 24 times faster.

What Problem Does This Paper Address?

Composed Image Retrieval (CoIR) and Composed Video Retrieval (CoVR) allow users to search for visual content using a reference visual input combined with a text modifier (e.g., submitting an image of a dog and typing "make it a bird"). Fusing these two distinct modalities into a single, cohesive query vector is a major challenge.

Currently, the best-performing methods use MLLMs to rewrite the image and text inputs into a single natural language description, which is then used for text-based retrieval. However, MLLMs introduce massive query-time latency, making them impractical for real-time, large-scale applications. Earlier training-free alternatives used simple linear interpolation but applied a single, fixed weight across the entire dataset. This is highly sub-optimal because different queries require different balances—some depend heavily on the original visual context, while others are driven primarily by the text modification.

Methods

The authors propose SRAIN (Sample-wise Rank-Aware INterpolation). Instead of using a heavy language model, SRAIN performs spherical linear interpolation (Slerp) directly within a shared embedding space using a dynamically predicted weight ($\alpha$).

The core innovations include:

  • Batch-wise Rank-Aware Weight Estimation: Because there is no explicit ground-truth for what the "perfect" fusion weight should be, SRAIN estimates it during training. It tests a discrete set of candidate weights and selects the one that maximizes the rank of the positive target against hard negatives in the mini-batch, rather than just maximizing raw similarity.
  • Conditioned Weight Prediction: The optimal weight inherently depends on the surrounding negative examples. SRAIN's lightweight weight predictor (a Transformer encoder followed by an MLP) is explicitly conditioned on a set of hard negatives during training.
  • Inference Memory Bank: At test time, the model does not have access to mini-batch negatives. To maintain consistency, SRAIN samples representative "hard negative prototypes" from a compact memory bank (updated via Exponential Moving Average during training) to act as conditioning tokens.
  • Two-Stage Training Strategy: Jointly training encoders and a weight predictor creates a "moving target" problem, leading to unstable training. SRAIN fixes this by first fine-tuning the encoders for modality alignment (Stage 1), freezing them, and then training only the weight predictor (Stage 2).

Datasets

The model was evaluated on several prominent benchmarks:

  • WebVid-CoVR: A large-scale composed video retrieval dataset containing 1.64M video-text-video triplets for training and 2,556 for testing.
  • FashionIQ: A domain-specific composed image retrieval dataset focused on fashion (Dress, Shirt, and Toptee categories).
  • CIRR: An open-domain composed image retrieval dataset built on real-life images.
  • CIRCO: A zero-shot composed image retrieval benchmark containing 800 test queries, specifically designed to assess generalization capability without fine-tuning.

Key Insights and Ideas

  • Rank over Similarity: The optimal fusion weight isn't just about making the query close to the target; it's about pushing it away from confusing negatives.
Fig. 2: Rank-aware optimal weight estimation. Rather than determining the weight solely based on the similarity to the positive target (a), SRAIN selects the weight based on rank, where the positive consistently outranks nearby hard negatives (b).
  • Decoupling Representation and Prediction: Updating the encoder simultaneously with a weight predictor causes the estimated ground-truth weights to fluctuate wildly. Freezing the representation layer before learning the interpolation function is essential for stable convergence.
  • Memory Banks as Context Providers: A simple, frozen memory bank can effectively mimic the distribution of hard negatives at inference time, bridging the gap between batch-dependent training and standalone inference.

Key Results

  • 24x Speedup: SRAIN achieves comparable performance to MLLM-based methods while being $\times24$ faster in throughput, drastically reducing query-time latency.
Fig. 1: Comparison of SRAIN with MLLM-based methods. (a) MLLM-based meth- ods process reference and modification text together through MLLMs to generate a composed query, introducing substantial computational overhead. (b) SRAIN predicts a sample-specific interpolation weight α and fuses reference and modification embed- dings through linear interpolation, enabling efficient retrieval. The right plot shows that SRAIN achieved comparable performance (mAP@5 on CIRCO) while being ×24 faster in throughput compared to MLLM-based methods. Meanwhile, BASIC [26], a training-free method without MLLM, underperformed in throughput as well as re- trieval accuracy since it requires numerous text encoder forward passes.
  • Video Retrieval SOTA: SRAIN achieved state-of-the-art performance on the WebVid-CoVR benchmark, hitting 61.07% R@1 (outperforming previous methods by nearly 1%).
  • Competitive Image Retrieval: On CoIR benchmarks (FashionIQ, CIRR, CIRCO), SRAIN matched or exceeded the performance of the best existing models without relying on external knowledge or heavy language models at inference time.

Limitations and Future Work

The authors acknowledge a notable "upper bound gap." An oracle model using the absolute optimal weights computed via their rank-aware estimation procedure achieves 71.95% R@1 on WebVid-CoVR, compared to SRAIN's predicted performance of 61.07%.

This gap is primarily attributed to the predictor's difficulty in approximating extreme values in the tails of the optimal weight distribution. Future work will likely focus on improving the weight predictor's ability to handle these edge cases or exploring more sophisticated conditioning mechanisms to close this 10% performance gap.

Summary updated

BibTeX
@misc{jeong2026learning,
  author = {Boseung Jeong and Taegyu Park and Donghyeon Kwon and Hyunsouk Cho and Suha Kwak},
  title = {{Learning Sample-wise Rank-aware Interpolation Weights for Composed Visual Data Retrieval}},
  year = {2026},
  eprint = {2608.22500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.22500},
}
Figure