Cross Modal Retrieval with Querybank Normalisation

Simion-Vlad Bogolin, Ioana Croitoru, Hailin Jin, Yang Liu, Samuel Albanie

TL;DR

This paper introduces Querybank Normalisation (QB-NORM), a simple yet powerful post-processing framework that significantly boosts cross-modal retrieval performance by mitigating the "hubness problem." By re-normalising similarities using a bank of sample queries, the authors achieve state-of-the-art results across various modalities and models without requiring any retraining or impractical concurrent access to test queries.

What Problem Does This Paper Address?

Modern cross-modal retrieval (e.g., finding a video based on a text description) typically relies on joint embeddings, where different modalities are mapped into a shared high-dimensional vector space. While effective, these spaces suffer from a phenomenon called hubness: a small number of gallery items (the "hubs") appear as the nearest neighbors to a disproportionately large number of queries.

Figure 1. Left: The hubness problem. We consider the prob- lem of cross modal retrieval in which queries q1 and q2 are com- pared against a gallery of samples, x1 and x2. As we show in Sec. 3.2, the high-dimensional joint embeddings employed by modern methods for cross-modal retrieval suffer from the “hub- ness problem” [93]. A hub (e.g. x2) is the nearest neighbour to multiple queries (q1 and q2), producing poor quality retrieval re- sults (bottom left). Right: Querybank Normalisation employs a querybank to normalise similarities, reducing the similarity of hub x2 to query q1, improving the retrieval results (bottom right).

As shown in Figure 2, hubness is pervasive across leading models and datasets. When a hub "crowds out" the true target, retrieval quality plummets. Previous solutions often required access to all test queries at once—an unrealistic constraint for real-world systems that handle queries sequentially—or were highly sensitive to the choice of samples used for normalization.

Figure 2. Hubness is pervasive in leading methods for text-video retrieval. The charts depict the distribution of the number of times each gallery video was retrieved by test set queries (x-axes video ids are ordered by decreasing retrieval count). Top row (different models): We report retrieval distributions for CE [73], TT-CE+ [27], MMT [41] and CLIP2Video [35] on the MSR-VTT benchmark [121]. Bottom row (different datasets): We report retrieval distributions for the TT-CE+ [27] method on four additional datasets, DiDeMo [50], LSMDC [95], VaTeX [116], and ActivityNet-captions [66], In all instances, we observe strong hubness, in which a small number of videos are retrieved disproportionately often, damaging performance.

Methods

The authors propose the Querybank Normalisation (QB-NORM) framework, which consists of two main steps:

  1. Querybank Construction: A set of $N$ samples from the query modality (e.g., text) is collected to serve as a "probe" to identify hubs in the gallery.
  2. Similarity Normalisation: During inference, the similarity between a new query and the gallery is adjusted based on how "hub-like" each gallery item is relative to the querybank.

The core innovation is a new normalization module called Dynamic Inverted Softmax (DIS). Unlike prior methods that normalize every retrieval, DIS identifies a "gallery activation set"—a list of potential hubs—and only applies the Inverted Softmax (IS) normalization to retrievals that fall within this set. This "dynamic" approach ensures that the method "does no harm" even if the querybank is poorly chosen or out-of-domain.

Crucially, QB-NORM is non-parametric and requires no retraining. It can be applied as a "plug-and-play" enhancement to any existing joint-embedding model.

Datasets

The authors evaluated QB-NORM across a massive range of benchmarks to prove its generality:

  • Text-Video Retrieval: MSR-VTT, MSVD, DiDeMo, LSMDC, VaTeX, QueryYD, and ActivityNet-captions.
  • Text-Image Retrieval: MSCoCo.
  • Text-Audio Retrieval: AudioCaps.
  • Image-to-Image Retrieval: CUB-200-2011 and Stanford Online Products.

Key Insights and Ideas

  • Training Data is Enough: A major "aha" moment was discovering that a querybank sampled from the training set performs just as well as one sampled from the test set. This removes the need for concurrent access to test queries, making the method practical for real-time deployment.
  • Robustness via DIS: Existing normalization techniques like CSLS or standard Inverted Softmax can actually degrade performance if the querybank domain doesn't match the gallery. The proposed DIS is significantly more robust, maintaining or improving performance even with "adversarial" querybanks.
  • Intrinsic Dimensionality Matters: The authors found that hubness is more severe in models that use more modalities (e.g., video + audio + speech). Because QB-NORM targets hubness, it actually becomes more effective as the complexity and dimensionality of the retrieval task increase.

Key Results

QB-NORM consistently improved strong baselines across all tested tasks:

  • Text-Video: On the MSR-VTT benchmark, applying QB-NORM to the TT-CE+ model improved the R@1 (Recall at rank 1) from 29.6% to 33.3%.
  • Text-Audio: On AudioCaps, it boosted R@1 from 23.1% to 23.9%.
  • Qualitative Success: Figure 4 illustrates how QB-NORM corrects retrieval by penalizing generic hubs and allowing the semantically relevant video to rise to the top.
Figure 4. Qualitative results. We illustrate a sample query for which QB-NORM leads to the retrieval of the correct target video (whose frames are highlighted with a dashed green line). For fur- ther examples and more detailed analysis, see supplementary.

Limitations and Future Work

  • Computational Overhead: While efficient, QB-NORM does require pre-computing and storing a "probe matrix" (similarities between the querybank and the gallery), which adds to memory and initial setup costs.
  • Domain Gaps: Although DIS is robust, extreme domain gaps between the querybank and the gallery can still limit the benefits of normalization.
  • Future Directions: The authors suggest exploring how to optimally select querybank samples to maximize hubness detection with minimal samples, further reducing computational costs.

Summary updated

BibTeX
@misc{bogolin2021cross,
  author = {Simion-Vlad Bogolin and Ioana Croitoru and Hailin Jin and Yang Liu and Samuel Albanie},
  title = {{Cross Modal Retrieval with Querybank Normalisation}},
  year = {2021},
  eprint = {2112.12777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.12777},
}
Figure