RePair: Turning Retrieval Failures into Counterfactual Hard Pairs
Not on the map. Why?
Abstract (arXiv)
Vision-language retrieval with CLIP-style dual encoders achieves strong cross-modal performance, yet practical accuracy often hinges on localized semantic distinctions where top-ranked near misses differ from the true match by a single critical detail. Hard-sample mining can select confusable candidates but cannot construct corrected counterparts; synthetic augmentation can generate novel samples but, without conditioning on actual model failures, targets irrelevant dimensions of hardness. We observe that a top-ranked false positive is a counterfactual scaffold---sharing most of the query's semantics while differing in a localized failure-causing residual. Minimally correcting this residual yields a hard positive of the ground truth in the same modality; the corrected and unedited versions form a hard negative pair that straddles the decision boundary, producing complementary pull--push supervision. We introduce RePair, guided by three principles---Validity, Minimality, and Locality---which mines false positives bidirectionally, applies LLM-guided counterfactual editing, and trains with a local hard-pair contrastive objective. On Flickr30K and COCO30K, RePair outperforms controlled augmentation baselines with only 107K synthetic samples---26%--75% fewer than comparable methods---confirming failure-conditioned repair is more data-efficient than error-agnostic augmentation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 46 references that are in the map. First posted on arXiv 30 Aug 2026.
Builds on
33 of 46 references.
References · 33
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructionscited by 2,591
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
- 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2020Contrastive Learning with Hard Negative Samplescited by 619
21 more
- 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
- 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
- 2020Hard Negative Mixing for Contrastive Learningcited by 399
- 2020Debiased Contrastive Learningcited by 354
- 2017Sampling Matters in Deep Embedding Learningcited by 285
- 2023SugarCrepe: Fixing Hackable Benchmarks for Vision-Language Compositionalitycited by 238
- 2023Improving CLIP Training with Language Rewritescited by 216
- 2022CREPE: Can Vision-Language Foundation Models Reason Compositionally?cited by 177
- 2023StableRep: Synthetic Images from Text-to-Image Models Make Strong Visual Representation Learnerscited by 177
- 2023Diversify Your Vision Datasets with Automatic Diffusion-Based Augmentationcited by 100
- 2024TripletCLIP: Improving Compositional Reasoning of CLIP via Synthetic Vision-Language Negativescited by 57
- 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
- 2024CounterCurate: Enhancing Physical and Semantic Visio-Linguistic Compositional Reasoning via Counterfactual Examplescited by 35
- 2024The Hard Positive Truth about Vision-Language Compositionalitycited by 21
- 2023Diffusion Based Augmentation for Captioning and Retrieval in Cultural Heritagecited by 12
- 2024Unleashing the Power of Large Language Models in Zero-shot Relation Extraction via Self-Promptingcited by 10
- 2023GeNIe: Generative Hard Negative Images Through Diffusioncited by 8
- 2023Getting More Juice Out of Your Data: Hard Pair Refinement Enhances Visual-Language Models Without Extra Datacited by 3
- 2024Assessing News Thumbnail Representativeness: Counterfactual text can enhance the cross-modal matching abilitycited by 3
- 2024ARMADA: Attribute-Based Multimodal Data Augmentationcited by 2
- 2026HNC: Leveraging Hard Negative Captions towards Models with Fine-Grained Visual-Linguistic Comprehension Capabilitiescited by 1
Built on by
Not cited yet.