mlsanityData to 7 Oct 2026

RePair: Turning Retrieval Failures into Counterfactual Hard Pairs

arXiv 2608.29604 ↗First posted 30 Aug 2026cs.IR cs.CVcited by 0

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  7. 2022InstructPix2Pix: Learning to Follow Image Editing Instructionscited by 2,591
  8. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
  9. 2015Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Modelscited by 1,352
  10. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
  11. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
  12. 2020Contrastive Learning with Hard Negative Samplescited by 619
21 more
  1. 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 603
  2. 2022Winoground: Probing Vision and Language Models for Visio-Linguistic Compositionalitycited by 523
  3. 2020Hard Negative Mixing for Contrastive Learningcited by 399
  4. 2020Debiased Contrastive Learningcited by 354
  5. 2017Sampling Matters in Deep Embedding Learningcited by 285
  6. 2023SugarCrepe: Fixing Hackable Benchmarks for Vision-Language Compositionalitycited by 238
  7. 2023Improving CLIP Training with Language Rewritescited by 216
  8. 2022CREPE: Can Vision-Language Foundation Models Reason Compositionally?cited by 177
  9. 2023StableRep: Synthetic Images from Text-to-Image Models Make Strong Visual Representation Learnerscited by 177
  10. 2023Diversify Your Vision Datasets with Automatic Diffusion-Based Augmentationcited by 100
  11. 2024TripletCLIP: Improving Compositional Reasoning of CLIP via Synthetic Vision-Language Negativescited by 57
  12. 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
  13. 2024CounterCurate: Enhancing Physical and Semantic Visio-Linguistic Compositional Reasoning via Counterfactual Examplescited by 35
  14. 2024The Hard Positive Truth about Vision-Language Compositionalitycited by 21
  15. 2023Diffusion Based Augmentation for Captioning and Retrieval in Cultural Heritagecited by 12
  16. 2024Unleashing the Power of Large Language Models in Zero-shot Relation Extraction via Self-Promptingcited by 10
  17. 2023GeNIe: Generative Hard Negative Images Through Diffusioncited by 8
  18. 2023Getting More Juice Out of Your Data: Hard Pair Refinement Enhances Visual-Language Models Without Extra Datacited by 3
  19. 2024Assessing News Thumbnail Representativeness: Counterfactual text can enhance the cross-modal matching abilitycited by 3
  20. 2024ARMADA: Attribute-Based Multimodal Data Augmentationcited by 2
  21. 2026HNC: Leveraging Hard Negative Captions towards Models with Fine-Grained Visual-Linguistic Comprehension Capabilitiescited by 1

Built on by

Not cited yet.