Manuscript Offprint

arXiv:2610.33798

Whispers from the Neighbors: Rethinking Caption Consensus as Inference-Time Evidence for Vision-Language Retrieval

Khang Nhat Hoang Vo, Belal Shoer, Abhirama Subramanyam Penamakuri

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

Abstract

An image is rarely described only once. Retrieval benchmarks and many collections attach several captions to each picture, yet dual encoders still judge every image-caption pair in isolation. We ask what these neighboring captions contribute when a frozen encoder consults them at inference time. Fusing image similarity with similarity to an image's own captions improves text-to-image R@1 by 3.4 to 16.8 points across nine frozen encoders when the captions come from the same annotators as the queries. The gain falls to 1.9 to 7.2 points when an off-the-shelf captioner writes them, and to at most one point when they come from a different annotation source; a paraphrase-trained text encoder strengthens the text side further. A natural refinement, scoring the part of the image that the captions leave unexplained, appears to add much more under a leave-one-out evaluation. We show that this advantage arises because the correct candidate's supports are built differently from those of the negative candidates, with set size and query removal each contributing about half, and that under a fixed support index the residual reduces to a reweighting of what the captions already provide. On compositional benchmarks, the captions help by matching candidates to human descriptions of the image, without improving image-text grounding. The code is available at: https://github.com/nhatkhangcs/clip_consensus

1 Introduction

Dual encoders such as CLIP (Radford et al., 2021) and SigLIP (Zhai et al., 2023) map images and text into a shared embedding space and retrieve by cosine similarity. This simple design supports zero-shot classification and image-text retrieval at scale, and later work has improved it through alternative losses, data curation, and scaling (Cherti et al., 2023; Xu et al., 2024; Gadre et al., 2023; Fang et al., 2024; Sun et al., 2023). At retrieval time, however, each image is still represented by a

Figure

Figure 1: With image similarity alone, the query is closest to a distractor. Adding the consensus of the correct image’s own captions recovers the correct match.

single vector, and each image-caption pair is scored in isolation.

Many image collections offer more than the image itself. COCO and Flickr30K attach five human captions to every image (Lin et al., 2014; Young et al., 2014), and curated repositories often store alt text, descriptions, or other metadata alongside each picture. These captions describe overlapping but non-identical aspects of the scene: some content is mentioned by every annotator, while other details appear in only one caption (Plummer et al., 2017). Standard image-text benchmarks use them as queries or training targets, but not as evidence when a candidate image is scored.

Figure 1 illustrates why these captions can help. For the query “A person in a grass field flying a kite,” image similarity alone prefers a photo of a person reaching for a Frisbee in tall grass, whereas the captions of the correct image, which describe people flying kites on a lawn, lie much closer to the query than its image embedding does. Using candidate-side text in this way is a form of database-side augmentation and late fusion, long used in instance retrieval (Chum et al., 2007; Arandjelović and Zisserman, 2012), document expansion

(Nogueira et al., 2019), and retrieval over multimodal candidates (Wei et al., 2024). We do not propose it as a new method. Instead, we ask how much it actually helps frozen dual encoders, and how to evaluate it without leakage. We study a simple scorer: the support captions of each candidate image are averaged into a consensus direction, the image embedding is decomposed into a component along this direction and a residual, and the query is scored by a weighted sum of image, consensus, and residual similarity, with only two fusion weights tuned.

Evaluating such a scorer requires care. In multi-caption benchmarks, the query is usually one of the correct image's own captions, so it must be excluded from that image's supports. A natural remedy, leave-one-out (LOO), removes the query from the correct candidate only. Under LOO, the full scorer outperforms a tuned base-plus-consensus scorer by 5.3 to 8.1 points in image-to-text R@1 on COCO. Under a fixed support index, in which every candidate uses the same supports regardless of the query, this advantage falls to at most 0.7 points. A size-matched variant of LOO, in which every negative also drops one caption, recovers about half of the gap, so set size and query removal each account for roughly half of the inflation. The support captions themselves, however, help every encoder we evaluate.

Our contributions are as follows.

• A leakage-free protocol. We evaluate candidate-side captions under a fixed support index, with every scorer tuned on the same objective and image-clustered bootstrap intervals, and release it as a standalone evaluation script.

• An account of the LOO pitfall. We show that LOO inflates the apparent benefit of a residual term derived from the same captions. A size-matched LOO, a random-support control, and an algebraic analysis show that the residual reduces to a candidate-dependent reweighting of image and consensus similarity, which yields at most a small text-to-image gain.

• Measurements of when candidate-side text helps. Text-to-image R@1 improves by 3.4 to 16.8 points with same-source human captions across nine frozen encoders, by 1.9 to 7.2 points with captions from an off-the-shelf captioner across six, and by at most one point with captions from a different annotation source across four. A paraphrase-trained text encoder strengthens the text side, the gains persist under corrected COCO positives, and on SugarCrepe and ARO they come from text-to-text matching against human descriptions of the image, not from better image-text grounding.

References (49)

  • Qwen2.5-VL Technical Report
  • Xing Cheng, Hezheng Lin, Xiangyu Wu, Fan Yang, and Dong Shen. 2021. Improving video-text retrieval by multi-stream corpus alignment and dual softmax loss. arXiv preprint arXiv:2109.04290. (opens arXiv in a new tab)
  • Towards General Text Embeddings with Multi-stage Contrastive Learning
  • Rodrigo Nogueira, Wei Yang, Jimmy Lin, and Kyunghyun Cho. 2019. Document expansion by query prediction. arXiv preprint arXiv:1904.08375. (opens arXiv in a new tab)
  • Quan Sun, Yuxin Fang, Ledell Wu, Xinlong Wang, and Yue Cao. 2023. EVA-CLIP: Improved training techniques for CLIP at scale. arXiv preprint arXiv:2303.15389. (opens arXiv in a new tab)
  • Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533. (opens arXiv in a new tab)
  • >Backbone</td><td colspan=
  • $s(I_{i}, T_{q}) = \mathbf{t}_{q}^{\top} \mathbf{u}_{i}$ with $u_{i} = \alpha v_{i} + \beta c_{i} + \gamma \hat{p}_{i}$
  • These numbers are therefore not comparable to standard 5K image-to-text results (e.g., 54.96 vs. 73.44 for SigLIP Base on COCO) and serve as a diagnostic of the scorers
  • >Encoder</td><td colspan=
  • Every gain of B+C over Base has a 95% CI that excludes zero
  • We re-score the fixed-index results on COCO eval2500 with the additional positives of CxC (Parekh et al., 2021) and ECCV Caption (Chun et al., 2022)
  • Base T2I@1 falls with position because short queries are harder (Table 9)
  • ECCV uses its 643 text and 3,060 image queries that fall in eval2500
  • Results are averaged over five folds and three sampling seeds (Table 10)
  • Flickr30K shows the same trend
  • Under size-matched LOO, Full falls below B+C in T2I for four of the six encoders on COCO, so equalizing set size removes the T2I advantage that some encoders show under standard LOO; the fixed index restores a small one
  • ><tr><td rowspan=
  • Asym keeps the LOO structure, where the positive drops one of its (now random) supports
  • >COCO</td><td>real (LOO)</td><td>$-1.88 / +2.94$</td><td>$+4.56 / +3.16$</td></tr><tr><td>random, asym</td><td>$-8.16 / -2.27$</td><td>$-28.12 / -11.22$</td></tr><tr><td>random, sym</td><td>$-5.72 / -0.50$</td><td>$-22.40 / -6.13$</td></tr><tr><td rowspan=
  • The LOO gain of Full therefore requires two conditions to hold jointly: supports specific to the positive (removing this condition in Section 4.2 removes the gain) and supports that truly describe the image (removing this condition here removes the gain)
  • We test four variants, each tuned on tune2500 under the fixed protocol:
  • replace $\hat{\mathbf{p}}_i$ with the normalized $\mathbf{v}_i - P_{S_i}\mathbf{v}_i$, removing all support directions instead of only their mean
  • $\mathbf{c}_i = \text{norm}\left(\sum_k w_k \mathbf{t}_{i,k}\right)$ with $w_k = \text{softmax}_k(\tau \mathbf{v}_i^\top \mathbf{t}_{i,k})$, giving more weight to captions that agree with the image
  • For caption $T_{i,m}$, let $\rho_{i,m} = \mathbf{c}_{i,-m}^{\top} \mathbf{t}_{i,m}$ be its similarity to the consensus of the other captions of the same image, and $\eta_{i,m}$ the norm of $\mathbf{t}_{i,m}$ after removing its component along $\mathbf{c}_{i,-m}$
  • The caption residual norm shows the opposite pattern, but this is not independent evidence: for unit vectors $\eta = \sqrt{1 - \rho^2}$
  • These scorers do not use the image, so one row covers all encoders
  • Describe this image in one sentence
  • ( $\gamma = 0$ )
  • For unit vectors, $\eta = \sqrt{1 - \rho^2}$, so the first two rows carry the same information
  • Supports never come from the query's annotation source, so no LOO is needed
  • Table 21 reports T2I/I2T R@1 with weights fixed at their clean values and with weights retuned on tune2500 at each mismatch level
  • $^{\dagger}$ Transductive: normalizes over the evaluated queries
  • “Fixed” keeps the weights tuned on clean supports; “returned” tunes them on tune2500 at each mismatch level
  • Only Visual Genome images that are also COCO images have human captions, so we evaluate 11,503 Relation and 14,208 Attribution items (48% of each set)
  • These encoders also carry the experiments that were not rerun on the six main encoders: the fusion-rule comparison, cross-source supports (Appendix E.2), residual variants (Appendix C.4), and the random-support control (Appendix C.2)
  • GPT-2 fluency does not depend on the encoder: 44.4 (SugarCrepe), 97.4 and 98.4 (ARO-Order), 59.6 and 79.0 (ARO-VG)
  • Add-attribute and add-object gains come almost entirely from text (e.g., CLIP ViT-L/14 add-att: 71.4 Base, 93.4 text only, 90.0 B+C)
  • All baselines are tuned on tune2500 with the same objective and evaluated under the fixed protocol
  • For each query, we show the top three images retrieved by Base and by Full; the correct image is framed in green and the others in red
  • a double decker bus driving down a street
  • >Backbone</td><td rowspan=
  • Under LOO, the positive image's supports exclude the query while negatives keep all captions; under the fixed protocol, all candidates share one support index
  • >Method</td><td colspan=
  • *Tuning set the consensus weight to zero, reducing RRF to Base
  • a street with garbage cans and street signs in the dark hours
  • Woman waiting for a serve in a tennis match
  • A skateboarder does a trick at an indoor skate park
  • The correct image (green) drops from rank 1 under Base to rank 2 under Full; in each case the new top-ranked image is also a plausible match for the generic query