betaFeedback

WorksComputer Science

What Makes Synthetic Hard Negatives Work in Vision-Language Pretraining?

Abstract

Synthetic hard negatives generated in the representation space have proven effective for unimodal self-supervised learning, but transferring this idea to vision-language pretraining is not straightforward. We analyze six representation-space synthesis strategies and identify two failure modes in their transfer to vision-language pretraining: cross-modal constructions that produce overly easy negatives or pull them toward the query, and intra-modal constructions that incorporate the matched positive. We also observe logit-scale saturation when training with synthetic hard negatives and a learnable temperature, and find that fixing the temperature improves downstream performance. Using this geometric analysis we propose SNAP, which generates intra-modal hard negatives that never involve the positive from either modality, avoiding both failure modes entirely. SNAP is model-agnostic, requires no external generative models, and adds less than 10% training time overhead. Evaluated on top of CLIP and FLIP across multiple architectures and datasets, SNAP delivers consistent improvements on zero-shot retrieval, zero-shot classification, and linear probe evaluation.

Introduction

Contrastive pretraining using weakly-supervised image-text pairs collected from the web has become the dominant paradigm for learning generic visual representations, progressively replacing supervised pretraining on large labeled datasets [8]. The core idea is to jointly learn an aligned embedding space for images and text from paired data, maximizing the similarity of matched (“positive”) image-text pairs while pushing apart mismatched (“negative”) pairs via a batch-level InfoNCE loss [19, 43]. Seminal works CLIP [50], ALIGN [22], and BASIC [47] demonstrated remarkable zero-shot transfer capabilities by training on hundreds of millions of image-text pairs. However, standard CLIP-style training samples image–text pairs randomly, without explicitly controlling the difficulty or multiplicity of in-batch negatives. Although higher-similarity negatives already receive greater softmax weight in InfoNCE, their availability depends on batch composition. Hard-negative sampling and synthesis provide explicit control over this training signal [23, 54].

In unimodal self-supervised learning, synthetic hard negatives generated directly in the representation space have proven highly effective [12, 13, 14, 23], offering a fast and lightweight alternative to input-space augmentation. This raises a natural question: can representation-space synthetic negatives transfer to vision-language pretraining? Prior work has explored hard negatives for vision-language models primarily in the input space: rule-based text perturbations [75, 80], LLM-based caption rewrites [10, 45], or diffusion-generated negative images [45]. These approaches incur significant computational overhead and typically address only one modality at a time (cf. § 2). Representation-space generation would sidestep all of these issues. However, as we show in this paper, the transfer is not straightforward, and understanding why it fails reveals fundamental constraints imposed by multimodal representation geometry.

Unlike the single-modality setting where all representations inhabit one homogeneous space, vision-language models align two distinct modalities within a shared embedding space. This dual-domain structure introduces two geometric failure modes with no unimodal analogue. First, the cross-modal synthetic negatives that were tested, produced by blending image and text embeddings, fall into the modality gap [31]: a void between the image and text cones that real embeddings never occupy, making such samples trivially separable and uninformative. Second, restricting synthesis to a single modality but involving the positive pair causes positive leakage: the synthetic “negative” inherits genuine positive signal, sending contradictory gradients that confuse optimization. We characterize these geometric effects using representation-level diagnostics. Separately, we observe logit-scale saturation when synthetic hard negatives are introduced with a learnable temperature. Our temperature ablation supports combining positive-free intra-modal synthesis with a fixed temperature (§ 4.1 and § 4.2).

We make the following contributions: (i) We identify and characterize two geometric failure modes that prevent naive transfer of representation-space synthetic negatives to vision-language pretraining, i.e., modality gap collapse and positive leakage, and provide quantitative diagnostics for each (§ 4.1). (ii) Guided by this analysis, we propose SNAP, a model-agnostic method that generates synthetic hard negatives directly in the representation space for both image and text modalities, applicable on top of InfoNCE-based frameworks such as CLIP and FLIP (§ 4.3). (iii) We conduct comprehensive evaluations across multiple architectures (ViT-B/16, ViT-B/32, RN-50), datasets (CC3M, CC12M), and downstream tasks, e.g., zero-shot retrieval (Table 5), zero-shot classification (Table 6), linear probe evaluation (Table 7), demonstrating broad improvements across the evaluated settings.

DataMethodText Retrieval Flickr30k R@1R@5R@10Text Retrieval MSCOCO R@1R@5R@10Image Retrieval Flickr30k R@1R@5R@10Image Retrieval MSCOCO R@1R@5R@10
ViT-B/32 CC3MSigLIP [76]7.2.27.2_{.2}19.8.319.8_{.3}26.5.126.5_{.1}3.1.33.1_{.3}10.0.110.0_{.1}15.7.215.7_{.2}5.3.15.3_{.1}15.2.215.2_{.2}22.3.122.3_{.1}2.8.12.8_{.1}9.0.19.0_{.1}14.0.114.0_{.1}
ViT-B/32 CC3MNegCLIP [75]‡4.913.819.61.76.310.44.813.018.52.06.610.6
ViT-B/32 CC3MLaCLIP [10]‡3.710.916.01.65.18.93.510.816.01.76.09.5
ViT-B/32 CC3MTripletCLIP [45]‡9.122.029.83.210.416.28.422.029.63.611.317.4
ViT-B/32 CC3MCLIP [50]9.8.29.8_{.2}25.5.325.5_{.3}35.7.235.7_{.2}5.0.25.0_{.2}15.0.115.0_{.1}22.3.122.3_{.1}6.9.16.9_{.1}19.8.219.8_{.2}28.5.128.5_{.1}4.2.24.2_{.2}12.7.112.7_{.1}19.0.119.0_{.1}
ViT-B/32 CC3M+ SNAP10.4.210.4_{.2}26.3.126.3_{.1}36.9.336.9_{.3}5.5.25.5_{.2}15.2.215.2_{.2}23.0.223.0_{.2}7.9.17.9_{.1}20.4.220.4_{.2}28.9.128.9_{.1}4.1.14.1_{.1}13.6.113.6_{.1}20.1.220.1_{.2}
ViT-B/32 CC3MFLIP [30]6.3.36.3_{.3}18.5.118.5_{.1}26.4.226.4_{.2}3.3.33.3_{.3}10.7.310.7_{.3}16.7.316.7_{.3}5.8.35.8_{.3}16.9.116.9_{.1}24.0.324.0_{.3}3.1.13.1_{.1}9.6.19.6_{.1}14.7.214.7_{.2}
ViT-B/32 CC3M+ SNAP6.8.16.8_{.1}19.0.119.0_{.1}26.9.326.9_{.3}3.7.13.7_{.1}11.1.311.1_{.3}17.1.117.1_{.1}6.3.16.3_{.1}17.4.317.4_{.3}24.5.124.5_{.1}3.5.13.5_{.1}10.0.210.0_{.2}15.1.215.1_{.2}
ViT-B/32 CC12MSigLIP [76]31.457.269.516.236.147.223.148.860.811.528.138.4
ViT-B/32 CC12MNegCLIP [75]‡24.746.658.212.330.241.418.741.753.48.623.132.6
ViT-B/32 CC12MLaCLIP [10]‡21.342.754.610.525.935.615.136.347.07.219.828.4
ViT-B/32 CC12MTripletCLIP [45]‡28.055.965.714.633.043.825.352.463.311.428.539.0
ViT-B/32 CC12MCLIP [50]33.159.571.217.839.450.324.250.963.013.130.541.2
ViT-B/32 CC12M+ SNAP33.860.071.918.639.851.324.951.463.513.731.042.6
ViT-B/32 CC12MFLIP [30]26.250.161.814.432.143.520.244.156.110.726.236.4
ViT-B/32 CC12M+ SNAP27.250.963.115.132.744.520.945.456.810.426.837.2
ViT-B/16 CC3MSigLIP [76]13.6.313.6_{.3}31.5.131.5_{.1}43.6.143.6_{.1}7.0.27.0_{.2}19.8.119.8_{.1}28.1.228.1_{.2}9.3.19.3_{.1}24.5.224.5_{.2}33.4.133.4_{.1}5.6.15.6_{.1}15.8.215.8_{.2}23.1.323.1_{.3}
ViT-B/16 CC3MCLIP [50]16.2.316.2_{.3}37.8.237.8_{.2}49.6.249.6_{.2}7.7.27.7_{.2}21.5.221.5_{.2}31.5.231.5_{.2}12.0.212.0_{.2}28.4.228.4_{.2}38.2.138.2_{.1}6.6.36.6_{.3}18.1.318.1_{.3}26.2.126.2_{.1}
ViT-B/16 CC3M+ SNAP17.1.317.1_{.3}38.7.238.7_{.2}50.5.150.5_{.1}8.1.18.1_{.1}22.1.322.1_{.3}32.7.332.7_{.3}12.8.112.8_{.1}28.9.228.9_{.2}39.2.239.2_{.2}7.2.27.2_{.2}18.4.118.4_{.1}26.8.126.8_{.1}
ViT-B/16 CC3MFLIP [30]12.1.212.1_{.2}31.2.231.2_{.2}42.1.142.1_{.1}6.4.26.4_{.2}17.7.117.7_{.1}26.4.126.4_{.1}10.0.210.0_{.2}24.8.124.8_{.1}33.6.333.6_{.3}5.1.15.1_{.1}15.4.115.4_{.1}22.7.222.7_{.2}
ViT-B/16 CC3M+ SNAP12.3.212.3_{.2}31.7.331.7_{.3}43.1.143.1_{.1}7.1.37.1_{.3}18.9.218.9_{.2}27.0.327.0_{.3}10.9.310.9_{.3}25.6.325.6_{.3}34.8.134.8_{.1}5.9.15.9_{.1}16.3.316.3_{.3}24.0.224.0_{.2}
ViT-B/16 CC12MSigLIP [76]49.474.283.526.150.462.134.261.973.119.140.552.1
ViT-B/16 CC12MCLIP [50]53.677.585.929.453.865.838.566.276.921.844.456.1
ViT-B/16 CC12M+ SNAP55.178.387.130.254.767.139.067.678.222.345.056.6
ViT-B/16 CC12MFLIP [30]47.973.282.225.549.161.233.660.572.118.839.450.9
ViT-B/16 CC12M+ SNAP48.574.182.326.449.662.234.361.072.719.539.952.1
RN-50 CC3MSigLIP [76]19.4.119.4_{.1}44.8.144.8_{.1}56.4.156.4_{.1}10.5.110.5_{.1}27.0.127.0_{.1}37.5.137.5_{.1}14.0.114.0_{.1}31.5.531.5_{.5}42.0.042.0_{.0}8.0.18.0_{.1}21.3.121.3_{.1}29.8.129.8_{.1}
RN-50 CC3MCLIP [50]20.8.320.8_{.3}45.8.345.8_{.3}56.8.156.8_{.1}11.7.311.7_{.3}29.6.329.6_{.3}41.4.141.4_{.1}16.1.216.1_{.2}36.5.236.5_{.2}47.1.147.1_{.1}9.6.19.6_{.1}24.3.224.3_{.2}34.0.234.0_{.2}
RN-50 CC3M+ SNAP21.1.221.1_{.2}47.2.247.2_{.2}58.1.158.1_{.1}11.6.111.6_{.1}29.4.129.4_{.1}42.1.142.1_{.1}16.0.116.0_{.1}37.4.137.4_{.1}47.8.147.8_{.1}10.9.110.9_{.1}25.3.325.3_{.3}34.9.334.9_{.3}
RN-50 CC3MFLIP [30]20.6.120.6_{.1}44.2.244.2_{.2}56.5.256.5_{.2}11.3.111.3_{.1}29.4.229.4_{.2}40.4.140.4_{.1}15.8.215.8_{.2}36.0.136.0_{.1}47.0.347.0_{.3}8.8.28.8_{.2}23.6.123.6_{.1}33.1.333.1_{.3}
RN-50 CC3M+ SNAP21.2.121.2_{.1}44.6.244.6_{.2}57.2.257.2_{.2}12.2.312.2_{.3}29.9.329.9_{.3}40.9.340.9_{.3}16.2.316.2_{.3}36.9.136.9_{.1}46.9.246.9_{.2}9.2.39.2_{.3}24.0.224.0_{.2}34.5.234.5_{.2}

Table 5. Zero-shot image-text retrieval on Flickr30k and MSCOCO. We report Recall@K (R@K) metrics for text and image retrieval. Symbols: ‡ Taken from [45]

DataModelFood-101CIFAR-10CIFAR-100SUN397CarsAircraftDTDPetsCaltech-101FlowersImageNet
ViT-B/32
CC3MSigLIP [76]3.833.8_{3}23.8323.8_{3}8.128.1_{2}12.4212.4_{2}0.820.8_{2}0.910.9_{1}4.424.4_{2}4.114.1_{1}26.6226.6_{2}4.224.2_{2}5.615.6_{1}
NegCLIP [75]{sup}‡`––8.2––1.06.84.129.43.74.6
LaCLIP [10]{sup}‡`––8.0––0.85.53.124.63.43.7
TripletCLIP [45]{sup}‡`––11.8––0.98.95.738.58.27.3
CLIP [50]5.925.9_{2}28.7228.7_{2}10.0310.0_{3}14.5114.5_{1}0.830.8_{3}1.931.9_{3}8.228.2_{2}7.037.0_{3}41.5341.5_{3}5.915.9_{1}8.038.0_{3}
+ SNAP6.536.5_{3}29.3229.3_{2}10.4210.4_{2}14.7214.7_{2}1.931.9_{3}3.423.4_{2}9.019.0_{1}7.337.3_{3}42.1242.1_{2}7.327.3_{2}8.228.2_{2}
FLIP [30]4.714.7_{1}26.8226.8_{2}8.738.7_{3}11.4211.4_{2}0.620.6_{2}1.111.1_{1}4.514.5_{1}5.335.3_{3}37.1237.1_{2}3.913.9_{1}6.836.8_{3}
+ SNAP5.215.2_{1}28.1228.1_{2}9.229.2_{2}12.4312.4_{3}1.311.3_{1}2.622.6_{2}4.614.6_{1}5.825.8_{2}38.0238.0_{2}4.534.5_{3}7.217.2_{1}
CC12MSigLIP [76]11.245.428.131.23.42.115.632.564.114.222.1
NegCLIP [75]{sup}‡`––26.0––1.514.230.863.413.520.2
LaCLIP [10]{sup}‡`––23.6––1.513.034.762.913.419.7
TripletCLIP [45]{sup}‡`––30.3––1.217.433.265.315.423.3
CLIP [50]13.150.231.535.14.12.518.235.867.416.824.6
+ SNAP13.550.632.736.25.03.019.136.768.117.324.8
FLIP [30]11.846.528.932.43.52.216.133.464.814.922.8
+ SNAP13.247.729.533.34.02.017.034.365.615.723.9
ViT-B/16
CC3MSigLIP [76]6.236.2_{3}28.9328.9_{3}7.017.0_{1}18.3218.3_{2}1.131.1_{3}1.231.2_{3}8.718.7_{1}6.026.0_{2}35.5235.5_{2}7.017.0_{1}9.929.9_{2}
CLIP [50]7.417.4_{1}34.3234.3_{2}9.829.8_{2}19.0319.0_{3}0.930.9_{3}1.211.2_{1}10.1110.1_{1}9.029.0_{2}46.3146.3_{1}8.438.4_{3}10.4210.4_{2}
+ SNAP8.418.4_{1}34.4134.4_{1}10.5310.5_{3}19.6119.6_{1}1.321.3_{2}2.012.0_{1}10.8110.8_{1}10.5110.5_{1}47.3147.3_{1}9.029.0_{2}11.0211.0_{2}
FLIP [30]5.325.3_{2}24.1324.1_{3}9.339.3_{3}17.4117.4_{1}1.121.1_{2}1.431.4_{3}8.328.3_{2}6.426.4_{2}45.0245.0_{2}6.616.6_{1}10.3310.3_{3}
+ SNAP6.426.4_{2}25.3325.3_{3}10.5110.5_{1}18.2118.2_{1}1.731.7_{3}1.931.9_{3}9.139.1_{3}7.927.9_{2}45.7245.7_{2}8.018.0_{1}11.0211.0_{2}
CC12MSigLIP [76]19.858.436.241.56.24.122.151.278.424.131.2
CLIP [50]22.463.139.544.87.54.824.855.482.127.534.6
+ SNAP23.163.040.146.27.94.625.456.183.228.535.3
FLIP [30]20.259.837.542.66.54.322.852.479.825.332.4
+ SNAP20.860.138.643.86.75.623.352.381.026.033.8
RN-50
CC3MSigLIP [76]7.537.5_{3}17.9217.9_{2}5.215.2_{1}21.1121.1_{1}1.111.1_{1}1.521.5_{2}9.429.4_{2}8.818.8_{1}38.8138.8_{1}9.519.5_{1}13.1213.1_{2}
CLIP [50]7.717.7_{1}23.7123.7_{1}4.834.8_{3}23.3123.3_{1}1.421.4_{2}1.321.3_{2}9.319.3_{1}11.7211.7_{2}45.4245.4_{2}12.3212.3_{2}13.6113.6_{1}
+ SNAP8.238.2_{3}24.4224.4_{2}5.815.8_{1}24.0124.0_{1}1.931.9_{3}2.122.1_{2}10.8110.8_{1}12.8212.8_{2}46.1146.1_{1}12.1212.1_{2}14.7214.7_{2}
FLIP [30]9.019.0_{1}23.1123.1_{1}6.726.7_{2}22.4322.4_{3}0.810.8_{1}1.121.1_{2}10.9110.9_{1}9.029.0_{2}41.8241.8_{2}11.7111.7_{1}13.7113.7_{1}
+ SNAP9.539.5_{3}22.9122.9_{1}7.427.4_{2}23.2123.2_{1}1.621.6_{2}1.921.9_{2}11.7111.7_{1}10.4210.4_{2}42.2142.2_{1}13.0213.0_{2}14.9114.9_{1}

Table 6. Zero-shot classification. Top-1 accuracy on ImageNet and 10 downstream datasets spanning fine-grained, scene, and object recognition. {sup}‡Taken from {citep}[45]`.

DataModelFood-101CIFAR-10CIFAR-100SUN397CarsAircraftDTDPetsCaltech-101FlowersImageNet
CC3M| ViT-B/32 |
SigLIP [76]35.4{super}1`72.5{super}1`48.4{super}3`29.4{super}1`9.5{super}1`13.6{super}2`31.9{super}2`34.0{super}2`61.6{super}2`50.8{super}2`30.2{super}1`
CLIP [50]40.7{super}3`77.2{super}3`54.6{super}1`32.7{super}1`13.2{super}2`20.1{super}3`38.3{super}3`40.7{super}1`71.1{super}1`61.5{super}1`33.9{super}1`
+ SNAP41.3{super}2`78.5{super}2`55.2{super}3`33.1{super}3`13.9{super}1`20.7{super}1`38.9{super}3`41.4{super}3`72.0{super}1`62.7{super}2`34.7{super}1`
FLIP [30]40.8{super}1`74.8{super}2`52.8{super}2`34.7{super}3`13.9{super}2`17.9{super}2`39.8{super}2`37.6{super}2`69.7{super}1`61.1{super}2`32.9{super}2`
+ SNAP41.4{super}1`75.6{super}2`53.6{super}1`36.1{super}3`14.5{super}1`18.7{super}1`41.3{super}1`37.5{super}2`70.8{super}1`62.0{super}2`33.5{super}3`
CC12MSigLIP [76]54.284.663.844.124.831.248.956.479.278.445.8
CLIP [50]58.688.568.447.928.536.854.262.185.185.948.7
+ SNAP59.289.168.349.328.938.054.763.485.886.349.8
FLIP [30]57.587.267.146.827.435.153.060.983.984.147.5
+ SNAP58.088.168.047.327.235.353.061.784.984.748.6
| ViT-B/16 |
CC3MSigLIP [76]46.3{super}2`73.7{super}2`50.3{super}1`37.6{super}3`14.7{super}1`21.7{super}2`45.0{super}1`47.2{super}1`70.8{super}2`66.8{super}1`41.3{super}2`
CLIP [50]49.2{super}3`77.1{super}2`55.2{super}2`40.3{super}1`18.1{super}3`24.6{super}2`47.8{super}2`51.2{super}2`73.7{super}1`71.6{super}3`43.1{super}2`
+ SNAP49.7{super}3`77.5{super}1`56.6{super}1`41.0{super}1`19.2{super}1`25.3{super}1`48.1{super}3`52.2{super}2`74.4{super}3`72.3{super}3`43.7{super}2`
FLIP [30]48.6{super}1`75.0{super}1`52.9{super}3`41.0{super}2`16.0{super}2`21.3{super}3`46.2{super}1`47.4{super}3`73.2{super}2`70.6{super}3`40.9{super}1`
+ SNAP49.3{super}3`74.9{super}1`53.0{super}2`41.1{super}2`16.6{super}2`22.7{super}1`46.0{super}3`47.4{super}2`74.4{super}1`70.9{super}1`41.7{super}1`
CC12MSigLIP [76]64.185.866.251.432.538.758.165.884.286.455.4
CLIP [50]68.489.270.555.136.843.162.470.588.590.158.7
+ SNAP68.890.071.356.038.043.863.271.189.690.659.9
FLIP [30]67.188.069.354.035.541.861.269.387.288.957.5
+ SNAP67.887.869.754.736.242.462.470.687.888.858.7
| RN-50 |
CC3MSigLIP [76]50.9{super}1`70.0{super}2`46.0{super}2`45.6{super}1`17.0{super}1`20.9{super}2`49.5{super}2`51.3{super}2`73.5{super}3`71.5{super}2`47.2{super}2`
CLIP [50]56.1{super}1`74.0{super}3`52.3{super}3`50.0{super}3`24.6{super}3`31.1{super}3`53.0{super}3`62.4{super}2`80.4{super}3`80.4{super}3`50.0{super}2`
+ SNAP56.7{super}3`74.1{super}1`52.8{super}1`50.8{super}1`25.3{super}3`31.8{super}1`54.3{super}2`63.6{super}2`81.1{super}1`80.8{super}1`51.4{super}3`
FLIP [30]56.7{super}2`75.5{super}1`53.6{super}3`49.0{super}1`24.6{super}1`31.0{super}2`54.4{super}2`62.2{super}3`80.1{super}1`78.8{super}1`50.0{super}3`
+ SNAP56.8{super}1`76.1{super}1`54.0{super}1`49.6{super}3`25.4{super}2`31.7{super}2`55.8{super}2`63.1{super}2`80.7{super}2`80.0{super}1`50.7{super}1`

Table 7. Table 7: Linear probe evaluation. Top-1 accuracy of a linear classifier trained on frozen image encoder features across ImageNet and 10 transfer datasets.

Related Work

Vision-Language Contrastive Pretraining

CLIP [50] and ALIGN [22] established the standard approach for vision-language contrastive pretraining: learning aligned image-text representations via a batch-level InfoNCE loss [43] over large-scale web-crawled data. LiT [77] showed that freezing a pretrained vision encoder and training only the text tower can be surprisingly effective, while SigLIP [76] replaced the softmax-based InfoNCE with a pairwise sigmoid formulation that removes the need for global normalization. BASIC [47] demonstrated the benefits of jointly scaling both encoders and data. Since then, a wide range of methods has advanced the field through modifications to the contrastive objective [17, 28, 69, 71], integration of self-supervised objectives [29, 38, 39, 40, 58, 82], architectural changes [3, 53, 63, 73], training efficiency improvements [30, 70], scaling [21, 60, 61, 67, 74], and improved training signals via synthetic captions [10, 33, 66, 78, 81]. SNAP is complementary to all these directions, augmenting the InfoNCE loss with representation-space synthetic negatives without modifying the architecture, data pipeline, or base objective.

Hard Negative Sampling

The quality and difficulty of negative samples are critical for contrastive learning [15, 56, 59, 65]. In vision, synthetic hard negatives generated in the representation space have been shown to significantly improve self-supervised representation learning [13, 14, 16, 23, 54]. MoCHi [23] mixes hard-negative features, while SynCo [14] studies six synthesis strategies that underpin our analysis. In vision-language learning, linguistic perturbations [75, 80] construct negative captions, and DiHT [49] increases the contribution of hard negatives through importance sampling while NegCLIP [75] and related methods [80] construct negatives through linguistic perturbations. In representation space, m2m^{2}-Mix within m3m^{3}-Mix [42] geodesically mixes another matched image-text pair to form cross-modal negatives. SNAP instead synthesizes query-specific negatives within each modality, using hard-negative mixing and noise during pretraining from scratch.

Synthetic Augmentation for Vision-Language Models

Several recent methods synthesize additional training data for CLIP-style pretraining, but these approaches operate in the input space and rely on large external foundation models. On the text side, captions are rewritten or generated using LLMs [10, 45], captioning models [33, 70], or multimodal LLMs [27, 34, 66, 81]. On the image side, TripletCLIP [45] generates hard negative images using text-to-image diffusion models (e.g., SDXL-Turbo [48]) conditioned on LLM-generated captions. These methods introduce external knowledge from models that may overlap with downstream benchmarks, making it difficult to disentangle representational improvements from data leakage, and add substantial computational overhead. SNAP avoids these issues: synthetic negatives are generated from in-batch embeddings alone, requiring no external models and no additional data. More on related work in Appendix Sec. 9.

Figure 1. Architecture comparison for the image-to-text direction. (a) Standard CLIP encodes images X and captions C into embeddings V∈Rd×∣B∣V \in\mathbb{R}^{d \times|\mathcal{B}|} and T∈Rd×∣B∣T \in\mathbb{R}^{d \times|\mathcal{B}|}, computing the similarity matrix VTT∈∣B∣×∣B∣V^{\mathsf{T}}T \in|\mathcal{B}| \times|\mathcal{B}| using only batch negatives. (b) Our method generates synthetic text negatives T~∈Rd×∣Stxt∣\widetilde{T} \in\mathbb{R}^{d \times|S_{\mathrm{txt}}|} directly in the representation space and concatenates them with batch embeddings to form an augmented similarity matrix VT[T∣T~]∈∣B∣×(∣B∣+∣Stxt∣)V^{\mathsf{T}}[T|\widetilde{T}] \in|\mathcal{B}| \times(|\mathcal{B}|+|S_{\mathrm{txt}}|). In the similarity matrices, green cells denote positive pairs, white cells denote batch negatives, and purple cells denote synthetic negatives. The text-to-image direction follows an analogous procedure with synthetic image negatives (cf. § 3.2).

Preliminaries

In this section, we present the building blocks for integrating synthetic hard negatives into vision-language contrastive learning. We first review the standard CLIP objective (§ 3.1), then describe how synthetic negatives augment the contrastive loss in the representation space (§ 3.2), and finally define the generation strategies (§ 3.3). These preliminaries set up the vocabulary for § 4, where we analyze why naively applying these strategies to the vision-language setting fails and present the design choices that lead to SNAP.

Contrastive Language-Image Pretraining

We assume two parameterized models: an image encoder fθf_{\theta} with parameters θ\theta (e.g., a vision transformer [9] or a convnet [20]) and a text encoder gϕg_{\phi} with parameters ϕ\phi (e.g., a GPT-style transformer [51, 52]). Each input sample (xi,ci)(x_i, c_i) consists of an image xix_i and text caption cic_i. The encoders produce embeddings vi=fθ(xi)v_i = f_{\theta}(x_i) and ti=gϕ(ci)t_i = g_{\phi}(c_i), which are mapped to a common dd-dimensional embedding space via projection layers and ℓ2\ell_2-normalized, i.e., ∥vi∥2=∥ti∥2=1\lVert v_i\rVert_2 = \lVert t_i\rVert_2 = 1. For a batch B\mathcal{B}, each sample ii is associated with one positive pair and ∣B∣−1|\mathcal{B}| - 1 in-batch negatives. To aid readability, throughout this section we use red to denote batch negatives. The bi-directional contrastive loss is computed as:

LCLIP=−12∣B∣(∑i∈Blog⁡exp⁡(vi⊤ti/τ)∑j∈Bexp⁡(vi⊤tj/τ)⏟Li2t+∑i∈Blog⁡exp⁡(ti⊤vi/τ)∑j∈Bexp⁡(ti⊤vj/τ)⏟Lt2i),(1)\mathcal{L}_{\mathrm{CLIP}}=-\frac{1}{2|\mathcal{B}|}\left(\underbrace{\sum_{i\in\mathcal{B}}\log\frac{\exp(\mathbf{v}_i^\top\mathbf{t}_i/\tau)}{\sum_{j\in\mathcal{B}}\exp(\mathbf{v}_i^\top\mathbf{t}_j/\tau)}}_{\mathcal{L}_{\mathrm{i2t}}}+\underbrace{\sum_{i\in\mathcal{B}}\log\frac{\exp(\mathbf{t}_i^\top\mathbf{v}_i/\tau)}{\sum_{j\in\mathcal{B}}\exp(\mathbf{t}_i^\top\mathbf{v}_j/\tau)}}_{\mathcal{L}_{\mathrm{t2i}}}\right), \tag*{(1)}

where τ\tau is a learnable temperature parameter. We denote the two directional terms as image-to-text (i2t) and text-to-image (t2i), respectively. The denominators include both the positive term j=ij=i and the ∣B∣−1|\mathcal{B}|-1 in-batch negatives j≠ij\ne i, following the standard InfoNCE formulation [43]. In the standard CLIP formulation [50], negatives are drawn exclusively from the batch B\mathcal{B}, requiring large batch sizes (e.g., 32,768) to provide a sufficiently large and diverse pool of negatives. Training with smaller batches significantly limits discriminative ability, as the lack of diverse negatives leads to weaker representations [5].

Synthetic Hard Negatives in the Representation Space

We augment the denominators of both Li2t\mathcal{L}_{\mathrm{i2t}} and Lt2i\mathcal{L}_{\mathrm{t2i}} with synthetically generated hard negatives directly in the representation space. To aid readability, we use purple to denote synthetic negatives throughout this section. For the i2t term, we generate a set of synthetic text negatives Stxti={t~k}\mathcal{S}_{\mathrm{txt}}^i=\{\tilde{\mathbf{t}}_k\} for each image query vi\mathbf{v}_i. Similarly, for the t2i term, we generate a set of synthetic image negatives Simgi={v~k}\mathcal{S}_{\mathrm{img}}^i=\{\tilde{\mathbf{v}}_k\} for each text query ti\mathbf{t}_i. The augmented losses are:

Lˉi2t=−1∣B∣∑i∈Blog⁡exp⁡(vi⊤ti/τ)∑j∈Bexp⁡(vi⊤tj/τ)+∑t~k∈Stxtiexp⁡(vi⊤t~k/τ)(2)\bar{\mathcal{L}}_{\mathrm{i2t}}=-\frac{1}{|\mathcal{B}|}\sum_{i\in\mathcal{B}}\log\frac{\exp(\mathbf{v}_i^\top\mathbf{t}_i/\tau)}{\sum_{j\in\mathcal{B}}\exp(\mathbf{v}_i^\top\mathbf{t}_j/\tau)+\sum_{\tilde{\mathbf{t}}_k\in\mathcal{S}_{\mathrm{txt}}^i}\exp(\mathbf{v}_i^\top\tilde{\mathbf{t}}_k/\tau)} \tag*{(2)}

Each query has its own synthetic-negative set, generated from its selected hard-negative pool; synthetic negatives are not shared across queries.

Lˉt2i=−1∣B∣∑i∈Blog⁡exp⁡(ti⊤vi/τ)∑j∈Bexp⁡(ti⊤vj/τ)+∑v~k∈Simgiexp⁡(ti⊤v~k/τ)(3)\bar{\mathcal{L}}_{\mathrm{t2i}}=-\frac{1}{|\mathcal{B}|}\sum_{i\in\mathcal{B}}\log\frac{\exp(\mathbf{t}_i^\top\mathbf{v}_i/\tau)}{\sum_{j\in\mathcal{B}}\exp(\mathbf{t}_i^\top\mathbf{v}_j/\tau)+\sum_{\tilde{\mathbf{v}}_k\in\mathcal{S}_{\mathrm{img}}^i}\exp(\mathbf{t}_i^\top\tilde{\mathbf{v}}_k/\tau)} \tag*{(3)}

The final loss combines both augmented directional terms:

Lˉ=12(Lˉi2t+Lˉt2i).(4)\bar{\mathcal{L}}=\frac{1}{2}\left(\bar{\mathcal{L}}_{\mathrm{i2t}}+\bar{\mathcal{L}}_{\mathrm{t2i}}\right). \tag*{(4)}

This formulation enriches the negative set with diverse, hard examples that would be computationally prohibitive to generate in the input space, while requiring minimal overhead as the generation occurs directly in the representation space during the forward pass (cf. § 4.3). With synthetic negatives, we produce high-quality, diverse negatives fast and cheaply, enabling effective training even with moderate batch sizes (cf. Appendix Sec. 9).

Synthetic Negative Generation Strategies

We define hardness by cosine similarity to the query [23]. Given a query image embedding vi\mathbf{v}_i, we select the top-NN batch text negatives T^Ni⊂B∖i\widehat{\mathcal{T}}_N^i \subset\mathcal{B} \setminus i with the highest cosine similarity to vi\mathbf{v}_i; analogously, we select V^Ni\widehat{\mathcal{V}}_N^i for text query ti\mathbf{t}_i. We implement six strategies to generate synthetic negatives. For the i2t direction, each strategy produces a synthetic text negative t~k\widetilde{\mathbf{t}}_k from the query vi\mathbf{v}_i and one or two hard negatives tj,tl\mathbf{t}_j, \mathbf{t}_l sampled uniformly from T^Ni\widehat{\mathcal{T}}_N^i

t~k(s)={αk⋅vi+(1−αk)⋅tj,s=1,αk∼U(0,0.5)tj+βk⋅(tj−vi),s=2,βk∼U(1,1.5)γk⋅tj+(1−γk)⋅tl,s=3,γk∼U(0,1)tj+N(0,σ2⋅I),s=4tj+δ⋅∇tj(vi⊤tj),s=5tj+η⋅sign⁡(∇tj(vi⊤tj)),s=6(5)\widetilde{\mathbf{t}}_k^{(s)} = \left\{ \begin{array}{ll} \alpha_k \cdot\mathbf{v}_i + (1-\alpha_k) \cdot\mathbf{t}_j, & s=1,\quad\alpha_k \sim\mathcal{U}(0,0.5) \\ \mathbf{t}_j + \beta_k \cdot(\mathbf{t}_j-\mathbf{v}_i), & s=2,\quad\beta_k \sim\mathcal{U}(1,1.5) \\ \gamma_k \cdot\mathbf{t}_j + (1-\gamma_k) \cdot\mathbf{t}_l, & s=3,\quad\gamma_k \sim\mathcal{U}(0,1) \\ \mathbf{t}_j + \mathcal{N}(\mathbf{0},\sigma^2 \cdot\mathbf{I}), & s=4 \\ \mathbf{t}_j + \delta\cdot\nabla_{\mathbf{t}_j}(\mathbf{v}_i^\top\mathbf{t}_j), & s=5 \\ \mathbf{t}_j + \eta\cdot\operatorname{sign}(\nabla_{\mathbf{t}_j}(\mathbf{v}_i^\top\mathbf{t}_j)), & s=6 \end{array} \right. \tag*{(5)}

All synthetic negatives are ℓ2\ell_2-normalized after generation. Strategies s=1s=1 (interpolation) and s=2s=2 (extrapolation) blend the query with hard negatives [79]; s=3s=3 (mixup) combines pairs of hard negatives [64, 79]; s=4s=4 perturbs a hard negative with Gaussian noise; and s=5,6s=5,6 apply gradient-ascent and sign-based adversarial perturbations [18, 36] (see [14] for further detail). Crucially, s=1s=1 and s=2s=2 involve the query embedding vi\mathbf{v}_i (or ti\mathbf{t}_i in the t2i direction), producing cross-modal synthetic negatives, while s=3s=3 and s=4s=4 operate exclusively on same-modality negatives without involving any positive. As we show in § 4.1, this distinction is critical in the vision-language setting.

Adapting Synthetic Negatives to Vision-Language Pretraining

The success of representation-space synthetic negatives in unimodal learning (§ 3.3) naturally suggests applying the same strategies to CLIP-style training. However, the dual-modality structure of vision-language models introduces failure modes with no unimodal analogue. This raises a central question: What makes synthetic hard negatives work in vision-language pretraining? In this section, we systematically analyze these failure modes (§ 4.1) along their multimodal geometry (§ 4.2), their secondary effect on the learnable temperature (§ 4.1), and present the resulting design choices that define SNAP (§ 4.3). All ablations use CC3M with ViT-B/16, reporting IN-val and IN-v2 zero-shot accuracy. We generate 64 synthetic negatives per query from the top-256 hardest negatives, split equally among active strategies. The hyperparameters σ=0.01\sigma=0.01, δ=0.01\delta=0.01, and η=0.01\eta=0.01 are set empirically without extensive tuning, following [14].

Naive Extension and Failure Modes

Cross-modal synthetic negatives fail due to geometry. The most direct extension is to apply all six strategies from Eq. (5) as defined, where s=1s=1 and s=2s=2 blend the image query vi\mathbf{v}_i with text negatives tj\mathbf{t}_j. However, vision-language models exhibit a well-documented modality gap [31] (Figure 2a): image and text embeddings cluster in distinct cones of the shared space, and cross-modal interpolations such as α⋅vi+(1−α)⋅tj\alpha\cdot\mathbf{v}_i + (1-\alpha) \cdot\mathbf{t}_j produce vectors in the void between them that real embeddings never occupy, making them trivially separable. As shown in Table 1, restricting to s=3,4s=3,4 in intra-modal mode nearly recovers the CLIP baseline (10.0 vs. 10.4 on IN-val); as we show in § 4.1, the remaining gap is closed and surpassed once the temperature is fixed.

Figure 2. Geometric intuition of failure modes in vision-language pretraining. (a) Cross-modal failure: Blending image and text embeddings creates samples in the “modality gap” that are trivially rejected (§ 4.1). (b) Positive Leakage: Including the positive pair in synthesis creates negatives that contain the actual signal, causing gradient conflict (§ 4.1). (c) SNAP: By generating intra-modal negatives and filtering the positive anchor, we create high-quality hard negatives that respect the modality geometry (§ 4.3).

MethodStrategiesModeIN-valIN-v2
CLIP [50]n/an/a10.48.4
SNAPall 6cross7.6 (↓)6.8 (↓)
SNAPall 6intra8.7 (↓)7.5 (↓)
SNAPs=3,4s=3,4intra10.0 (↓)8.0 (↓)

Table 1. Cross-modal vs. intra-modal strats. Applying all six strategies in cross-modal mode degrades performance below the CLIP baseline. Converting to intra-modal mode helps but still underperforms. Restricting to s=3s=3 and s=4s=4 recovers performance. We highlight the default hyperparameter.

Intra-modal negatives involving the positive fail due to semantic leakage. A natural fix is to convert all strategies to intra-modal variants by replacing the cross-modal query vi\mathbf{v}_i in s=1,2s=1,2 with the matched text positive ti\mathbf{t}_i. However, this introduces a subtler failure. Consider the intra-modal interpolation: t~=α⋅ti+(1−α)⋅tj\tilde{\mathbf{t}} = \alpha\cdot\mathbf{t}_i + (1-\alpha) \cdot\mathbf{t}_j, where ti\mathbf{t}_i is the positive caption for query vi\mathbf{v}_i and tj\mathbf{t}_j is a different caption. Because ti\mathbf{t}_i is the correct match for vi\mathbf{v}_i, the synthetic “negative” t~\tilde{\mathbf{t}} inherits positive signal. As α→1\alpha\to1, it becomes nearly identical to the true positive, yet the InfoNCE denominator treats it as a negative. This positive leakage (Figure 2b) sends contradictory gradients: the numerator of Eq. (2) encourages similarity with ti\mathbf{t}_i, while the denominator penalizes similarity with t~≈ti\tilde{\mathbf{t}} \approx\mathbf{t}_i. Table 1 confirms that intra-modal generation with all six strategies (8.7 on IN-val) improves over the cross-modal variant but still underperforms the CLIP baseline.

Two distinct failure modes, one solution. The tested constructions alter negative geometry through cross-modal operations or introduce positive signal through explicit inclusion of the matched positive. Strategies s∈{3,4}s \in\{3,4\} avoid both by generating negatives from non-matching pairs only. Restricting to s∈{3,4}s \in\{3,4\} nearly recovers the CLIP baseline (10.0 vs. 10.4 on IN-val, 8.0 vs. 8.4 on IN-v2; Table 1), with the remaining gap closed and surpassed once temperature is fixed (§ 4.1). Figure 3 confirms this: s=3s=3 and s=4s=4 consistently outperform any combination involving cross-modal blending or the positive pair.

Pairwise strategy complementarity heatmap

Figure 3. Pairwise strategy complementarity on IN-val. Strategies s=3,4s=3,4 achieve the highest accuracy.

Temperature divergence. Adding synthetic hard negatives changes the contrastive denominator and its interaction with the learnable temperature τ\tau. In the evaluated configuration, CLIP+SNAP with learnable τ\tau reaches the OpenCLIP logit-scale clamp of 100 within half an epoch after synthetic negatives are enabled (Figure 4). This occurs with the positive-free intra-modal strategies s=3,4s=3,4. Fixing τ=0.07\tau=0.07 improves IN-val accuracy from 10.0 to 11.0 and IN-v2 accuracy from 8.0 to 9.6 (Table 2). Under the same fixed temperature, CLIP without synthetic negatives achieves 10.1 and 8.0, respectively. We therefore adopt fixed τ=0.07\tau=0.07 as part of the SNAP training recipe. The two cross-modal strategies fail through distinct mechanisms: extrapolation (s=2s=2) pushes vectors beyond the text cone, while interpolation (s=1s=1) pulls toward the image query and thus the positive, making positive leakage the dominant failure rather than trivial separability, as we quantify in § 4.2.

Methodτ\tauIN-valIN-v2
CLIPlearn.10.48.4
CLIPfixed10.18.0
CLIP+SNAPlearn.10.0 (↓\downarrow)8.0 (↓\downarrow)
CLIP+SNAPfixed11.0 (↑\uparrow)9.6 (↑\uparrow)

Table 2. Temperature ablation. With fixed τ=0.07\tau= 0.07, CLIP+SNAP outperforms both fixed- and learnable-temperature CLIP. We highlight the default setting.

Figure 4. Logit scale trajectories (ViT-B/32, CC3M, epochs 5 to 10). CLIP+SNAP with a learnable τ\tau saturates the OpenCLIP clamp within half an epoch. Both fixed-τ\tau runs remain stable.

Multimodal Geometry of Synthetic Negatives

We characterize the failure modes in Sec. 4.1 using four complementary representation level diagnostics computed on ViT-B/32 trained on CC3M.

Leakage, separability, and hardness diagnostics. We quantify the failure modes with three metrics over 2,000 validation pairs (ViT-B/32, CC3M): positive leakage cos⁡(t~,ti)\cos(\tilde{t},t_i), where values above the random baseline (0.19) indicate semantic contamination; trivially separable rate (TSR), the fraction of synthetics easier than the 10th percentile of real hard negatives; and relative hardness Δ=cos⁡(vi,t~)−cos⁡(vi,trand)\Delta= \cos(v_i, \tilde{t}) - \cos(v_i, t_{\mathrm{rand}}). As shown in Figure 5 and Table 3, cross-modal strategies fail for opposite reasons: s=2s=2 (cross) lands in the void beyond the text cone (TSR 87.8%, Δ=−0.189\Delta= -0.189), while s=1s=1 (cross) interpolates toward the positive (leakage 0.33). Intra-modal strategies involving the positive suffer from contamination (s=1s=1 intra: 0.48; s=2s=2 intra: 0.41) or trivial separability (s=2s=2 intra: TSR 74.0%). Only s=3s=3 and s=4s=4 avoid cross-modal mixing and explicit positive inclusion, exhibiting leakage close to the random baseline (0.23 and 0.19), low TSR (2.2% and 13.2%), and positive relative hardness.

Figure 5. Positive leakage per strategy (ViT-B/32, CC3M). mean cos⁡(t~,ti)\cos(\tilde{t}, t_i) per strategy; dashed line marks the random baseline (0.19).

StrategyTSR (%)↓\downarrowΔ\Delta hardness↑\uparrow
s=1s=1 (cross)0.3+0.281
s=2s=2 (cross)87.8−0.189
s=1s=1 (intra)0.6+0.133
s=2s=2 (intra)74.0−0.096
s=3s=3 (SNAP)2.2+0.041
s=4s=4 (SNAP)13.2+0.045

Table 3. TSR and relative hardness. Lower TSR and higher Δ\Delta hardness indicate harder, more informative negatives. We highlight SNAP strategies.

PCA subspace visualization. Figure 6 projects image embeddings, text embeddings, and synthetic negatives onto the first two principal components. Cross-modal strategies scatter into the void between the image and text cones, a region real embeddings never occupy. Intra-modal strategies involving the positive cluster within the text cone but near the positive anchor, explaining the observed leakage. SNAP strategies (s=3s=3, s=4s=4) are confined within the text cone and distributed away from the positive, occupying the same subspace as real text negatives.

Figure 6. PCA subspace of synthetic negatives (ViT-B/32, CC3M). (a) Cross-modal negatives land in the gap void between modality cones. (b) Intra-modal negatives involving the positive cluster near the positive anchor, causing leakage. (c) SNAP negatives (s=3s=3, s=4s=4) are confined within the text cone and away from the positive.

SNAP

Guided by the analysis in Secs. 4.1 and 4.2, we propose SNAP (Synthetically Negative Augmented Pretraining) that makes three principled design choices.

Intra-modal, positive-free strategies. SNAP uses only strategies s=3s=3 and s=4s=4 from Eq. (5), both operating in intra-modal mode (Figure 2c). These avoid cross-modal geometric collapse and intra-modal positive leakage (Table 1 and Figure 3).

Fixed temperature. SNAP fixes the temperature τ\tau rather than learning it, preventing the logit scale saturation that arises when hard negatives interact with a learnable temperature (Table 2).

Bidirectional synthesis. SNAP generates synthetic negatives for both i2t and t2i directions. We compare against repeating randomly sampled or hard negatives in the contrastive denominator, and increasing the weight of hard-negative terms. Both synthesis strategies outperform these controls, with their combination performing best (Table 4). Bidirectional synthesis also outperforms either direction alone.

VariantIN-valIN-v2
Random-neg. dup.10.08.0
Hard-neg. dup.10.48.5
Hard-neg. wt.10.58.7
s=3s=310.89.2
s=4s=410.68.8
s=3s=3, 44 (i2t only)10.78.8
s=3s=3, 44 (t2i only)10.68.7
SNAP11.09.6

Table 4. Synthesis and directionality ablations on CC3M.

Computational overhead. Since SNAP generates negatives via vector operations—specifically additions, scalar multiplications, and normalization—on pre-computed embeddings, it avoids additional forward or backward passes through the encoders. This design ensures minimal impact on training efficiency, requiring no external generative models or architectural modifications. On a ViT-B/16 backbone, CLIP [50] requires 32.5 minutes per epoch, while SNAP adds only 3 minutes, resulting in an 9.23% overhead. Similarly, FLIP [30] requires 14.9 minutes per epoch, and the addition of SNAP increases this to 16.2 minutes, a comparable overhead of 8.72%. These results demonstrate that SNAP provides significant discriminative gains with a negligible increase in training time. Further ablations on batch size and the number of synthetic negatives are provided in the supplementary material (Appendix Sec. 10).

Experiments

We train the CLIP and FLIP baselines and their SNAP variants under matched data and training configurations, except for the temperature treatment described above. We also train SigLIP [76] under our training setup. Results for LaCLIP [10], TripletCLIP [45], and NegCLIP [75] are taken from [45] and included for reference only. Detailed implementation details in Appendix Sec. 8.

Implementation Details

Pretraining datasets. We pretrain on two image-text datasets of varying scale: CC3M [57] and CC12M [4]. Due to image link rot, the versions we obtained contain fewer samples than the original releases: ≈1.7M\approx1.7\mathrm{M} out of 3.3M for CC3M and ≈7.2M\approx7.2\mathrm{M} out of 12.4M for CC12M. This may lead to minor performance differences compared to models trained on the full datasets.

Model architectures. For the image encoder fθf_{\theta}, we use ViT-B/16, ViT-B/32 [9], and ResNet-50 [20]. For the text encoder gφg_{\varphi}, we use a 12-layer Transformer [50]. Both encoders include projection heads mapping to a shared d=512d = 512 dimensional embedding space.

Training setup. We use AdamW [35] with learning rate 5×10−45 \times10^{-4}, weight decay 0.2, and cosine scheduling with 10k warmup steps. Training uses batch size ∣B∣=4096|\mathcal{B}| = 4096 on 4×4 \times A100 GPUs for 32 epochs, with 224×224224 \times224 images and text length 77. The temperature τ\tau is initialized to 0.07 (and kept constant for SNAP).

Reproducibility. For CC3M, we pretrain three checkpoints (different seeds) and report the mean, with standard deviations as subscripts in Table 5 to Table 7; for CC12M, a single checkpoint is used due to computational constraints.

Zero-Shot Image-Text Retrieval

We evaluate cross-modal retrieval on Flickr30k [72] and MSCOCO [32], computing pairwise cosine similarities over the full test split and reporting Recall@{1,5,10}\{1,5,10\} for both image-to-text and text-to-image retrieval in Table 5. SNAP improves retrieval in the large majority of settings for both CLIP and FLIP, holding across all three backbones and both pretraining scales, with gains appearing on both retrieval directions rather than favoring one; the few exceptions are isolated cells that are unchanged or lower by at most a few tenths of a point.

Zero-Shot Classification

We evaluate zero-shot classification on ImageNet [8, 55] and 10 downstream datasets spanning fine-grained recognition (Stanford Cars [25], FGVC Aircraft [37]), scene recognition (SUN397 [68]), texture classification (DTD [7]), and generic object classification (CIFAR [26]), encoding class names as text prompts and predicting via cosine similarity without any task-specific training (Table 6). SNAP improves accuracy across settings, with the clearest gains on the fine-grained Cars and Aircraft benchmarks, where CC3M ViT-B/32 accuracy roughly doubles (e.g., Cars 0.8 → 1.9, Aircraft 1.9 → 3.4 for CLIP), while general benchmarks such as ImageNet show steady improvements.

Linear Probe Classification

Following standard protocols [24, 50], we freeze the image encoder and train a linear classifier, reporting top-1 test accuracy (Table 7). SNAP consistently produces more linearly separable visual features across backbones and data scales.

Discussion & Limitations

The failure modes we identify arise from the dual-modality structure of contrastive learning rather than from a CLIP-specific architectural choice. We therefore expect the design principles of SNAP to be relevant to other dual-encoder frameworks using representation-space synthetic negatives. Our evaluation is limited to CC3M and CC12M due to computational constraints; scaling to larger datasets such as LAION-400M remains future work.

Acknowledgements

We acknowledge the computational resources and support provided by the Imperial College Research Computing Service (http://doi.org/10.14469/hpc/2232), which enabled our experiments.

Dataset Details

Pretraining Datasets

We pretrain on two image-text datasets of varying scale: CC3M [57] and CC12M [4]. Both datasets were downloaded using img2dataset [1]. Due to image link rot, the versions we obtained contain slightly fewer samples than the original releases, which may lead to minor performance differences compared to models trained on the full datasets. The same training configuration is used for both datasets (cf. § 9.2).

CC3M: This dataset comprises 3.3 million image-text pairs extracted from 5 billion webpages, with image descriptions derived from the HTML alt-text attribute. The version we used contains 1,666,040 unique samples.

CC12M: Following a similar collection procedure as CC3M but with more relaxed filters, CC12M consists of 12.4 million image-text pairs covering a wider range of topics and visual concepts. The version we acquired contains 7,277,079 samples.

Downstream Datasets

We evaluate zero-shot retrieval on Flickr30k [72] and MSCOCO [32], and classification on ImageNet [8] and 10 downstream datasets. Details are provided in Table 8.

DatasetMetricCategoriesTrain SizeTest Size
Food-101 [2]Accuracy10175,75025,250
CIFAR-10 [26]Accuracy1050,00010,000
CIFAR-100 [26]Accuracy10050,00010,000
SUN397 [68]Accuracy39719,85019,850
Stanford Cars [25]Accuracy1968,1448,041
FGVC Aircraft [37]Mean per class1006,6673,333
DTD [7]Accuracy473,7601,880
Oxford Pets [44]Mean per class373,6803,669
Caltech-101 [11]Mean per class1023,0606,085
Oxford Flowers [41]Mean per class1022,0406,149
ImageNet [8]Accuracy1,0001,281,16750,000
Flickr30k [72]Recall@k–29,0001,000
MSCOCO [32]Recall@k–113,2875,000

Table 8. Details of downstream classification datasets.

Implementation Details

We build on the OpenCLIP [21] codebase and evaluate using CLIP Benchmark [6].

Encoders

We use ViT-B/16, ViT-B/32 [9], and ResNet-50 (RN-50) as vision encoders. All models are pretrained on CC3M, while ViT-B/16 and ViT-B/32 are additionally trained on CC12M. Following CLIP [50], the text encoder is a 12-layer Transformer with vocabulary size 49,408 and maximum context length 77.

Hyperparameters

We use the same training configuration across all architectures and both pretraining datasets. The only difference between architectures is the image encoder itself; all other hyperparameters, including those for synthetic negative generation, are kept identical. Detailed configurations are provided in Table 9a and Table 9b.

ConfigValueConfigValue
Image resolution224×224224 \times224Top-NN hard negatives256
Max text length77Negatives per strategy32
Embedding dimension dd512Number of strategies2
Batch size ∣B∣|\mathcal{B}|4,096Total syn. negatives / query64
OptimizerAdamW [35]Temperature τ\tau0.07 (constant)
Learning rate5×10−45 \times10^{-4}Strategy hyperparameters
Weight decay0.2Interpolation αk\alpha_k∼U(0,0.5)\sim U(0, 0.5)
Adam (β1,β2)(\beta_1,\beta_2)(0.9, 0.98)Extrapolation βk\beta_k∼U(1,1.5)\sim U(1, 1.5)
Adam ϵ\epsilon1×10−81 \times10^{-8}Mixup γk\gamma_k∼U(0,1)\sim U(0, 1)
LR scheduleCosine decayNoise std σ\sigma0.01
Warmup steps10,000Gradient step δ\delta0.01
Total epochs32Adversarial η\eta0.01
Temperature τ\tau (init)0.07 (learnable)
GPUs4×4 \times NVIDIA A100

Table 9. (a) CLIP/FLIP training configuration, identical for ViT-B/16, ViT-B/32, and RN-50 on both CC3M and CC12M. (b) SNAP synthetic negative generation parameters.

Distributed mining and gradient flow. Each GPU selects hard negatives for its local queries from the globally gathered current batch, excluding the matched positives. Gathering is performed without gradients, and source embeddings are detached during synthesis. Gradients from synthetic-negative terms flow through the query embeddings.

Related Work

We briefly contrast SNAP with the most closely related vision-language methods that incorporate synthetic data during pretraining (cf. Fig. 7). NegCLIP [75] constructs hard negative captions by swapping linguistic elements (attributes, relations, objects) in the original text and retrieves positive images from the three nearest neighbors in the training set. LaCLIP [10] augments the text side with synthetic positive captions generated by large language models such as ChatGPT, Bard, and LLaMA. DreamLIP [81] follows a similar philosophy but leverages multimodal LLMs (ShareGPT4V, LLaVA, InstructBLIP) to produce richer positive captions grounded in visual content. TripletCLIP [45] operates on both modalities: it generates hard negative captions via in-context learning with Mistral-7B-Instruct-v0.2 and then synthesizes corresponding negative images using SDXL-Turbo conditioned on those captions. SPEC [46] synthesizes images with controlled variations in object size, position, existence, and count to improve fine-grained vision-language understanding. All five methods operate in the input space and depend on external foundation models pretrained on large-scale data, introducing both computational overhead and potential data leakage from the generative models into downstream evaluation. In contrast, SNAP generates hard negatives directly in the representation space from in-batch embeddings alone, requires no external models or additional data, and applies to both modalities symmetrically with less than 10% training time overhead.

Figure 7. Comparison of vision-language pretraining methods using synthetic data. Top: Existing input-space methods rely on external foundation models (e.g., LLMs for text, Diffusion for images) to generate synthetic data, incurring significant computational overhead and risk of data leakage. Bottom: SNAP operates directly in the representation space, using in-batch embeddings to symmetrically generate hard negatives for both modalities.

Further Ablations and Results

We conduct additional ablation studies on CC3M with ViT-B/16, reporting zero-shot classification accuracy on IN-val and IN-v2.

Batch Size

We evaluate SNAP at batch sizes of 1024, 2048, and 4096 (Table 10). SNAP outperforms CLIP at each tested batch size, although its performance decline as batch size decreases is slightly larger. These results demonstrate benefits across the tested batch sizes. The hard-negative pool remains fixed at 256 candidates, so its proportion of the available negatives increases as batch size decreases (cf. Tab. 10).

Batch SizeMethodIN-valIN-v2
1024CLIP9.27.2
+ SNAP9.58.3
2048CLIP9.87.8
+ SNAP10.18.9
4096CLIP10.48.4
+ SNAP11.09.6

Table 10. Batch size ablation.

Number of Synthetic Negatives

We vary the total number of synthetic negatives ∣S∣=∣Stxt∣+∣Simg∣|S| = |S_{\mathrm{txt}}| + |S_{\mathrm{img}}|, split equally between s=3,4s = 3, 4. As shown in Table 11, a small number of negatives (∣S∣≤64|S| \le64) yields performance similar to the CLIP baseline, as the contrastive signal is not sufficiently challenging. While ∣S∣≥1024|S| \ge1024 significantly degrades performance. At a batch size of 4096, using 512 or 1024 synthetic negatives—representing 12.5% and 25.0% of the real negative count, respectively—makes the contrastive task too difficult to solve.

∣S∣|S|∣Stxt∣|S_{\mathrm{txt}}|IN-valIN-v2
321610.48.4
643210.58.5
1286411.09.6
25612810.78.9
5122569.17.0
10245124.33.2
204810243.12.0

Table 11. Synthetic negatives ablation.

Synthesis controls. All synthesis controls use fixed τ=0.07\tau= 0.07. The single-strategy variants each generate 64 synthetic negatives per query and direction, matching the total count of full SNAP. The hard-negative weighting control follows the importance-sampling approach of DiHT [49].

Paired Seed-wise Improvements

Table 12 reports paired seed-wise improvements for the principal CC3M ImageNet comparisons. SNAP improves accuracy for every evaluated seed across all three backbones and both baselines, showing that the average gains are consistent across the three runs.

BackboneBaselineBaseline +SNAPSeed 1Seed 2Seed 3Mean ± std.
ViT-B/32 CLIP8.0.38.0_{.3}8.2.28.2_{.2}+0.46+0.02+0.06+0.18 ± 0.24
FLIP6.8.36.8_{.3}7.2.17.2_{.1}+0.10+0.27+0.74+0.37 ± 0.33
ViT-B/16 CLIP10.4.210.4_{.2}11.0.211.0_{.2}+1.07+0.30+0.37+0.58 ± 0.43
FLIP10.3.310.3_{.3}11.0.211.0_{.2}+0.88+1.16+0.12+0.72 ± 0.54
RN-50 CLIP13.6.113.6_{.1}14.7.214.7_{.2}+0.99+1.05+1.32+1.12 ± 0.18
FLIP13.7.113.7_{.1}14.9.114.9_{.1}+1.17+1.25+1.15+1.19 ± 0.05

Table 12. Paired seed-wise improvements on CC3M. ImageNet zero-shot accuracy summaries, with standard deviations shown as subscripts. Each paired gain Δ\Delta is the accuracy with SNAP minus the baseline accuracy for the same seed, in percentage points. The final column reports the mean and sample standard deviation of the three paired gains.

Compositional Evaluation

We evaluate CLIP and SNAP with ViT-B/16 pretrained on CC12M on ARO [75] and Winoground [62] (Table 13). SNAP improves ARO relation and attribute accuracy by 3.6 and 4.2 percentage points, respectively, while Winoground scores remain similar.

MethodRelationAttributeTextImageGroup
CLIP51.252.124.59.86.3
+ SNAP54.856.325.29.66.5

Table 13. Compositional evaluation. Scores (%) for ViT-B/16 pretrained on CC12M.

Future Work

An immediate direction is to study SNAP at larger scales: training on web-scale datasets, exploring deeper and wider architectures, and integrating with recent advances in text and image encoders. The top-similarity hard-negative pool may also contain semantically compatible but unmatched examples, particularly in web-crawled data. SNAP does not explicitly filter such false negatives; incorporating semantic filtering or auditing their prevalence is left for future work.

Limitations

Our experiments are conducted on CC3M and CC12M, which are relatively small-scale compared to proprietary datasets used by methods such as CLIP (400M pairs) and ALIGN (1B pairs). Training on larger datasets was not feasible given our computational budget of 4×4 \times A100 GPUs, where a single CC12M run already requires multiple days. Scaling to larger data and model sizes, while remaining environmentally conscious, is an important direction for future work. We observe broad improvements across the evaluated settings; whether these benefits persist at larger data and model scales remains to be tested.

Discussion

SNAP operates as a drop-in augmentation to any contrastive framework that uses an InfoNCE-style loss with a softmax denominator over negatives. Since synthetic negatives are generated from in-batch embeddings alone, the method is agnostic to the choice of encoders, data, and training procedure. We expect SNAP to be applicable beyond the CLIP [50] and FLIP [30] frameworks evaluated here, including methods such as SLIP [39], DeCLIP [29], FLIP [30], LiT [77], LaCLIP [10], DreamLIP [81], CyCLIP [17], and TripletCLIP [45], all of which build on the same InfoNCE-style contrastive objective.

Reproducibility

We build on the OpenCLIP [21] codebase for all training and use CLIP Benchmark [6] for all downstream evaluations. Pretraining datasets were downloaded using img2dataset [1]. All experiments use identical hyperparameters across architectures and datasets (cf. Table 9). Training was performed on 4×4 \times NVIDIA A100 80GB GPUs using PyTorch with mixed-precision (FP16) training. We use the same set of random seeds across all runs for reproducibility. SNAP requires no external models, no additional data, and no offline preprocessing—the only modification to the standard OpenCLIP training loop is the synthetic negative generation module, which operates entirely in the representation space during the forward pass as detailed in Algorithms 1 and 2. We will release our code and pretrained model weights upon acceptance to facilitate reproduction of all reported results.

Algorithm

Algorithm 1 provides the pseudo-code of SNAP, followed by the detailed implementation of the two specific generation strategies, s=3s = 3 and s=4s = 4, used in our approach (Algorithm 2).

Algorithm 1. Pseudocode of SNAP in a PyTorch-like style.

# f_v, f_t: visual and text encoders
# t: fixed temperature parameter
# n_hard: pool size for sampling anchors (e.g., 256)
# s3, s4: number of synthetic negatives per strategy (default: 32 each)

# t: fixed temperature
# n_hard: hard-negative pool size
# s3, s4: synthetic negatives per strategy and direction

def synthetic_logits(query, candidates, labels):
    scores = query @ candidates.T
    scores = scores.clone()
    scores[arange(query.shape[0]), labels] = -inf
    idxs = topk(scores, k=n_hard, dim=1).indices

    mix = generate_s3(candidates, idxs, s3)
    noise = generate_s4(candidates, idxs, s4)
    synthetic = cat([mix, noise], dim=1)
    return einsum("nc,nkc->nk", query, synthetic)

for images, texts in loader:
    v = normalize(f_v(images), dim=-1)
    u = normalize(f_t(texts), dim=-1)

    # Global current-batch candidates, detached for synthesis
    all_v = gather_no_grad(v.detach())
    all_u = gather_no_grad(u.detach())

    # Positive indices in the globally gathered batch
    # Assumes equal local batch sizes and rank-ordered gathering
    labels = rank * v.shape[0] + arange(v.shape[0])

    syn_i2t = synthetic_logits(v, all_u, labels)
    syn_t2i = synthetic_logits(u, all_v, labels)

    # Obtain base logits with the existing CLIP gradient handling
    base_i2t, base_t2i = clip_logits(v, u)

    logits_i2t = cat([base_i2t, syn_i2t], dim=1) / t
    logits_t2i = cat([base_t2i, syn_t2i], dim=1) / t

    loss = 0.5 * (
        cross_entropy(logits_i2t, labels)
        + cross_entropy(logits_t2i, labels)
    )

    optimizer.zero_grad()
    loss.backward()
    optimizer.step()

Algorithm 2 SNAP Generation Strategies in a PyTorch-like style.

def generate_s3(t_feat, idxs_hard, num_neg, gamma=1.0):
    """Mixup_between_two_hard_negatives."""
    # sample_two_sets_of_indices_from_the_hard_pool
    idx1 = randint(0, n_hard, size=(batch_size, num_neg))
    idx2 = randint(0, n_hard, size=(batch_size, num_neg))

    h1 = t_feat[gather(idxs_hard, 1, idx1)]
    h2 = t_feat[gather(idxs_hard, 1, idx2)]

    lam = rand(batch_size, num_neg, 1) * gamma
    s3 = lam * h1 + (1 - lam) * h2
    return normalize(s3, dim=-1)

def generate_s4(t_feat, idxs_hard, num_neg, sigma=0.01):
    """Noise_injection_into_a_hard_negative."""
    idx = randint(0, n_hard, size=(batch_size, num_neg))
    h = t_feat[gather(idxs_hard, 1, idx)]

    noise = randn_like(h) * sigma
    return normalize(h + noise, dim=-1)

References

  1. [1]Beaumont, R.: img2dataset: Easily turn large sets of image urls to an image dataset. https://github.com/rom1504/img2dataset (2021)
  2. [2]Bossard, L., Guillaumin, M., Van Gool, L.: Food-101 – Mining Discriminative Components with Random Forests. In: ECCV. pp. 446–461 (2014)DOI
  3. [3]Cao, A., Wei, X., Ma, Z.: FLAME: Frozen Large Language Models Enable Data-Efficient Language-Image Pre-training. In: CVPR (2025)arxiv.org/abs/2411.11927
  4. [4]Changpinyo, S., Sharma, P., Ding, N., Soricut, R.: Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training To Recognize Long-Tail Visual Concepts. In: CVPR. pp. 3558–3568 (June 2021)arxiv.org/abs/2102.08981
  5. [5]Chen, T., Kornblith, S., Norouzi, M., Hinton, G.: A simple framework for contrastive learning of visual representations. In: ICML. pp. 1597–1607. PMLR (2020)arxiv.org/abs/2002.05709
  6. [6]Cherti, M., Beaumont, R.: CLIP benchmark (Nov 2022). https://doi.org/10.5281/zenodo.15403103, https://doi.org/10.5281/zenodo.15403103
  7. [7]Cimpoi, M., Maji, S., Kokkinos, I., Vedaldi, A.: Describing Textures in the Wild. In: CVPR. pp. 3606–3613 (2014)arxiv.org/abs/1311.3618
  8. [8]Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., Fei-Fei, L.: ImageNet: A large-scale hierarchical image database. In: CVPR. pp. 248–255 (2009). https://doi.org/10.1109/CVPR.2009.5206848
  9. [9]Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., Houlsby, N.: An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. In: ICLR (2021), https://openreview.net/forum?id=YicbFdNTTy
  10. [10]Fan, L., Krishnan, D., Isola, P., Katabi, D., Tian, Y.: Improving CLIP Training with Language Rewrites. In: NeurIPS (2023)arxiv.org/abs/2305.20088
  11. [11]Fei-Fei, L., Fergus, R., Perona, P.: Learning Generative Visual Models from Few Training Examples: An Incremental Bayesian Approach Tested on 101 Object Categories. Computer Vision and Image Understanding 106(1), 59–70 (2007)
  12. [12]Giakoumoglou, N., Floros, A., Papadopoulos, K.M., Stathaki, T.: Take & Square: Training Self-Supervised Vision Transformers with Synthetic Data and Synthetic Hard Negatives. In: Representation Learning with Very Limited Resources: When Data, Modalities, Labels, and Computing Resources are Scarce (2025), https://openreview.net/forum?id=TJUFbYKo2carxiv.org/abs/2509.02029
  13. [13]Giakoumoglou, N., Floros, A., Papadopoulos, K.M., Stathaki, T.: Unsupervised Training of Vision Transformers with Synthetic Negatives. In: Second Workshop on Visual Concepts (2025), https://openreview.net/forum?id=dgBFUaoKNcarxiv.org/abs/2509.02024
  14. [14]Giakoumoglou, N., Stathaki, T.: SynCo: Synthetic Hard Negatives for Contrastive Visual Representation Learning (2024), https://arxiv.org/abs/2410.02401
  15. [15]Giakoumoglou, N., Stathaki, T., Gkelias, A.: A Review on Discriminative Self-supervised Learning Methods in Computer Vision (2025), https://arxiv.org/abs/2405.04969
  16. [16]Giakoumoglou, N., Floros, A., Papadopoulos, K.M., Stathaki, T.: ViTAMINS: An Empirical Study of Training Self-Supervised Vision Transformers with Synthetic Hard Negatives (2026), https://arxiv.org/abs/2609.01041
  17. [17]Goel, S., Bansal, H., Bhatia, S., Rossi, R.A., Vinay, V., Grover, A.: Cyclip: Cyclic contrastive language-image pretraining (2022), https://arxiv.org/abs/2205.14459
  18. [18]Goodfellow, I.J., Shlens, J., Szegedy, C.: Explaining and Harnessing Adversarial Examples (2015), https://arxiv.org/abs/1412.6572
  19. [19]Hadsell, R., Chopra, S., LeCun, Y.: Dimensionality reduction by learning an invariant mapping. In: CVPR. vol. 2, pp. 1735–1742 (2006). https://doi.org/10.1109/CVPR.2006.100
  20. [20]He, K., Zhang, X., Ren, S., Sun, J.: Deep Residual Learning for Image Recognition. CVPR pp. 770–778 (2016), https://api.semanticscholar.org/CorpusID:206594692arxiv.org/abs/1512.03385
  21. [21]Ilharco, G., Wortsman, M., Wightman, R., Gordon, C., Carlini, N., Taori, R., Dave, A., Shankar, V., Namkoong, H., Miller, J., Hajishirzi, H., Farhadi, A., Schmidt, L.: OpenCLIP (Jul 2021). https://doi.org/10.5281/zenodo.5143773, https://doi.org/10.5281/zenodo.5143773, if you use this software, please cite it as below.
  22. [22]Jia, C., Yang, Y., Xia, Y., Chen, Y.T., Parekh, Z., Pham, H., Le, Q.V., Sung, Y., Li, Z., Duerig, T.: Scaling up visual and vision-language representation learning with noisy text supervision (2021), https://arxiv.org/abs/2102.05918
  23. [23]Kalantidis, Y., Sariyildiz, M.B., Pion, N., Weinzaepfel, P., Larlus, D.: Hard Negative Mixing for Contrastive Learning. In: NeurIPS (2020)arxiv.org/abs/2010.01028
  24. [24]Kornblith, S., Shlens, J., Le, Q.V.: Do Better ImageNet Models Transfer Better? (2019), https://arxiv.org/abs/1805.08974
  25. [25]Krause, J., Stark, M., Deng, J., Fei-Fei, L.: 3d object representations for fine-grained categorization. In: ICCVW. pp. 554–561 (2013). https://doi.org/10.1109/ICCVW.2013.77
  26. [26]Krizhevsky, A.: Learning Multiple Layers of Features from Tiny Images. Tech. Rep. 0, University of Toronto (2009)
  27. [27]Lai, Z., Zhang, H., Zhang, B., Wu, W., Bai, H., Timofeev, A., Du, X., Gan, Z., Shan, J., Chuah, C.N., Yang, Y., Cao, M.: VeCLIP: Improving CLIP Training via Visual-enriched Captions (2024)arxiv.org/abs/2310.07699
  28. [28]Lavoie, S., Kirichenko, P., Ibrahim, M., Assran, M., Wilson, A.G., Courville, A., Ballas, N.: Modeling caption diversity in contrastive vision-language pretraining. In: ICML (2024), https://openreview.net/forum?id=iaV2fU6Difarxiv.org/abs/2405.00740
  29. [29]Li, Y., Liang, F., Zhao, L., Cui, Y., Ouyang, W., Shao, J., Yu, F., Yang, J.: Supervision exists everywhere: A data efficient contrastive language-image pre-training paradigm. In: ICLR (2022), https://openreview.net/forum?id=zq1jJkNk3uNarxiv.org/abs/2110.05208
  30. [30]Li, Y., Fan, H., Hu, R., Feichtenhofer, C., He, K.: Scaling language-image pre-training via masking (2023), https://arxiv.org/abs/2212.00794
  31. [31]Liang, W., Zhang, Y., Kwon, Y., Yeung, S., Zou, J.: Mind the gap: Understanding the modality gap in multi-modal contrastive representation learning (2022), https://arxiv.org/abs/2203.02053
  32. [32]Lin, T.Y., Maire, M., Belongie, S., Bourdev, L., Girshick, R., Hays, J., Perona, P., Ramanan, D., Zitnick, C.L., Dollár, P.: Microsoft coco: Common objects in context (2015), https://arxiv.org/abs/1405.0312
  33. [33]Liu, Y., Li, X., Wang, Z., Zhao, B., Xie, C.: CLIPS: An Enhanced CLIP Framework for Learning with Synthetic Captions. arXiv preprint arXiv:2411.16828 (2024)arxiv.org/abs/2411.16828
  34. [34]Liu, Y., Wang, K., Shao, W., Luo, P., Qiao, Y., Shou, M.Z., Zhang, K., You, Y.: MLLMs-Augmented Visual-Language Representation Learning (2024), https://arxiv.org/abs/2311.18765
  35. [35]Loshchilov, I., Hutter, F.: Decoupled Weight Decay Regularization. In: ICLR. OpenReview.net (2019), https://openreview.net/forum?id=Bkg6RiCqY7
  36. [36]Madry, A., Makelov, A., Schmidt, L., Tsipras, D., Vladu, A.: Towards Deep Learning Models Resistant to Adversarial Attacks. In: ICLR (2018), https://openreview.net/forum?id=rJzIBfZAbarxiv.org/abs/1706.06083
  37. [37]Maji, S., Rahtu, E., Kannala, J., Blaschko, M.B., Vedaldi, A.: Fine-Grained Visual Classification of Aircraft. arXiv abs/1306.5151 (2013)arxiv.org/abs/1306.5151
  38. [38]Maninis, K.K., Chen, K., Ghosh, S., Karpur, A., Chen, K., Xia, Y., Cao, B., Salz, D., Han, G., Diabal, J., Gnanapragasam, D., Seyedhosseini, M., Zhou, H., Araujo, A.: TIPS: Text-Image Pretraining with Spatial Awareness. In: ICLR (2025)arxiv.org/abs/2410.16512
  39. [39]Mu, N., Kirillov, A., Wagner, D., Xie, S.: Slip: Self-supervision meets language-image pre-training. In: ECCV. pp. 523–540. Springer (2022)arxiv.org/abs/2112.12750
  40. [40]Naeem, M.F., Xian, Y., Zhai, X., Hoyer, L., Gool, L.V., Tombari, F.: Silc: Improving vision language pretraining with self-distillation (2023), https://arxiv.org/abs/2310.13355
  41. [41]Nilsback, M.E., Zisserman, A.: Automated flower classification over a large number of classes. In: ICVGIP. pp. 722–729. IEEE (2008)DOI
  42. [42]Oh, C., So, J., Byun, H., Lim, Y., Shin, M., Jeon, J.J., Song, K.: Geodesic multi-modal mixup for robust fine-tuning. In: Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S. (eds.) NeurIPS. vol. 36, pp. 52326–52341. Curran Associates, Inc. (2023). https://doi.org/10.52202/075280-2278, https://proceedings.neurips.cc/paper_files/paper/2023/file/a45296e83b19f656392e0130d9e53cb1-Paper-Conference.pdf
  43. [43]van den Oord, A., Li, Y., Vinyals, O.: Representation Learning with Contrastive Predictive Coding (2019), https://arxiv.org/abs/1807.03748
  44. [44]Parkhi, O.M., Vedaldi, A., Zisserman, A., Jawahar, C.V.: Cats and Dogs. In: CVPR. pp. 3498–3505 (2012)
  45. [45]Patel, M., Kusumba, A., Cheng, S., Kim, C., Gokhale, T., Baral, C., Yang, Y.: TripletCLIP: Improving Compositional Reasoning of CLIP via Synthetic Vision-Language Negatives. NeurIPS (2024)
  46. [46]Peng, W., Xie, S., You, Z., Lan, S., Wu, Z.: Synthesize, diagnose, and optimize: Towards fine-grained vision-language understanding (2024), https://arxiv.org/abs/2312.00081
  47. [47]Pham, H., Dai, Z., Ghiasi, G., Kawaguchi, K., Liu, H., Yu, A.W., Yu, J., Chen, Y.T., Luong, M.T., Wu, Y., Tan, M., Le, Q.V.: Combined scaling for zero-shot transfer learning. Neurocomputing 555, 126658 (2023). https://doi.org/10.1016/j.neucom.2023.126658, https://www.sciencedirect.com/science/article/pii/S0925231223007816
  48. [48]Podell, D., English, Z., Lacey, K., Blattmann, A., Dockhorn, T., Müller, J., Penna, J., Rombach, R.: Sdxl: Improving latent diffusion models for high-resolution image synthesis (2023), https://arxiv.org/abs/2307.01952
  49. [49]Radonovic, F., Dubey, A., Kadian, A., Mihaylov, T., Vandenhende, S., Patel, Y., Wen, Y., Ramanathan, V., Mahajan, D.: Filtering, distillation, and hard negatives for vision-language pre-training. In: CVPR. pp. 6967–6977 (June 2023)
  50. [50]Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., Sutskever, I.: Learning Transferable Visual Models From Natural Language Supervision. In: Meila, M., Zhang, T. (eds.) ICML. Proceedings of Machine Learning Research, vol. 139, pp. 8748–8763. PMLR (18–24 Jul 2021), https://proceedings.mlr.press/v139/radford21a.htmlarxiv.org/abs/2103.00020
  51. [51]Radford, A., Narasimhan, K., Salimans, T., Sutskever, I.: Improving language understanding by generative pre-training. Tech. rep., OpenAI (2018), https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf
  52. [52]Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I.: Language Models are Unsupervised Multitask Learners. Tech. rep., OpenAI (2019), https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf
  53. [53]Ranasinghe, K., McKinzie, B., Ravi, S., Yang, Y., Toshev, A., Shlens, J.: Perceptual grouping in contrastive vision-language models (2023), https://arxiv.org/abs/2210.09996
  54. [54]Robinson, J., Chuang, C.Y., Sra, S., Jegelka, S.: Contrastive learning with hard negative samples. arXiv preprint arXiv:2010.04592 (2020)arxiv.org/abs/2010.04592
  55. [55]Russakovsky, O., Deng, J., Su, H., Krause, J., Satheesh, S., Ma, S., Huang, Z., Karpathy, A., Khosla, A., Bernstein, M., Berg, A.C., Fei-Fei, L.: ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision 115(3), 211–252 (Apr 2015). https://doi.org/10.1007/s11263-015-0816-y, http://dx.doi.org/10.1007/s11263-015-0816-y
  56. [56]Schroff, F., Kalenichenko, D., Philbin, J.: Facenet: A unified embedding for face recognition and clustering. In: CVPR. pp. 815–823. IEEE (Jun 2015). https://doi.org/10.1109/cvpr.2015.7298682, http://dx.doi.org/10.1109/CVPR.2015.7298682
  57. [57]Sharma, P., Ding, N., Goodman, S., Soricut, R.: Conceptual Captions: A Cleaned, Hypernymed, Image Alt-text Dataset For Automatic Image Captioning. In: ACL (2018)DOI
  58. [58]Singh, A., Hu, R., Goswami, V., Couairon, G., Galuba, W., Rohrbach, M., Kiela, D.: FLAVA: A foundational language and vision alignment model. In: CVPR (2022)arxiv.org/abs/2112.04482
  59. [59]Sohn, K.: Improved deep metric learning with multi-class n-pair loss objective. In: Lee, D., Sugiyama, M., Luxburg, U., Guyon, I., Garnett, R. (eds.) NeurIPS. vol. 29. Curran Associates, Inc. (2016), https://proceedings.neurips.cc/paper_files/paper/2016/file/6b180037abebea991d8b1322f8a8ac9-Paper.pdf
  60. [60]Sun, Q., Fang, Y., Wu, L., Wang, X., Cao, Y.: Eva-clip: Improved training techniques for clip at scale (2023), https://arxiv.org/abs/2303.15389
  61. [61]Sun, Q., Wang, J., Yu, Q., Cui, Y., Zhang, F., Zhang, X., Wang, X.: Eva-clip-18b: Scaling clip to 18 billion parameters (2024), https://arxiv.org/abs/2402.04252
  62. [62]Thrush, T., Jiang, R., Bartolo, M., Singh, A., Williams, A., Kiela, D., Ross, C.: Winoground: Probing vision and language models for visio-linguistic compositionality. In: CVPR (2022)arxiv.org/abs/2204.03162
  63. [63]Tschannen, M., Gritsenko, A., Wang, X., Naeem, M.F., Alabdulmohsin, I., Parthasarathy, N., Evans, T., Beyer, L., Xia, Y., Mustafa, B., Hänäh, O., Harmsen, J., Steiner, A., Zhai, X.: Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features (2025), https://arxiv.org/abs/2502.14786
  64. [64]Verma, V., Lamb, A., Beckham, C., Najafi, A., Mitliagkas, I., Courville, A., Lopez-Paz, D., Bengio, Y.: Manifold Mixup: Better Representations by Interpolating Hidden States (2019), https://arxiv.org/abs/1806.05236
  65. [65]Wu, C.Y., Manmatha, R., Smola, A.J., Krähenbühl, P.: Sampling matters in deep embedding learning. In: ICCV. pp. 2840–2848 (2017). https://doi.org/10.1109/ICCV.2017.309
  66. [66]Wu, W., Zheng, K., Ma, S., Lu, F., Guo, Y., Zhang, Y., Chen, W., Guo, Q., Shen, Y., Zha, J.: LLaTO-LIP: Improving Language-Image Pre-training for Long Text Understanding. In: NeurIPS (2024), https://openreview.net/forum?id=pc4GSBi1Hx
  67. [67]Xiao, B., Wu, H., Xu, W., Dai, X., Hu, H., Lu, Y., Zeng, M., Liu, C., Yuan, L.: Florence-2: Advancing a unified representation for a variety of vision tasks. arXiv preprint arXiv:2311.06242 (2023)arxiv.org/abs/2311.06242
  68. [68]Xiao, J., Hays, J., Ehinger, K.A., Oliva, A., Torralba, A.: SUN Database: Large-scale Scene Recognition from Abbey to Zoo. In: CVPR, pp. 3485–3492 (2010)DOI
  69. [69]Yang, J., Li, C., Zhang, P., Xiao, B., Liu, C., Yuan, L., Gao, J.: Unified contrastive learning in image-text-label space (2022)arxiv.org/abs/2204.03610
  70. [70]Yang, K., Deng, J., An, X., Li, J., Feng, Z., Guo, J., Yang, J., Liu, T.: ALIP: Adaptive Language-Image Pre-training with Synthetic Caption (2023)arxiv.org/abs/2308.08428
  71. [71]Yao, L., Huang, R., Hou, L., Lu, G., Niu, M., Xu, H., Liang, X., Li, Z., Jiang, X., Xu, C.: Filip: Fine-grained interactive language-image pre-training (2021), https://arxiv.org/abs/2111.07783
  72. [72]Young, P., Lai, A., Hodosh, M., Hockenmaier, J.: From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics 2, 67–78 (2014)
  73. [73]Yu, J., Wang, Z., Vasudevan, V., Yeung, L., Seyedhosseini, M., Wu, Y.: CoCa: Contrastive Captioners are Image-Text Foundation Models. TMLR (2022), https://openreview.net/forum?id=Ee277P3AYCarxiv.org/abs/2205.01917
  74. [74]Yuan, L., Chen, D., Chen, Y.L., Codella, N., Dai, X., Gao, J., Hu, H., Huang, X., Li, B., Li, C., Liu, C., Liu, M., Liu, Z., Lu, Y., Shi, Y., Wang, L., Wang, J., Xiao, B., Xiao, Z., Yang, J., Zeng, M., Zhou, L., Zhang, P.: Florence: A new foundation model for computer vision (2021), https://arxiv.org/abs/2111.11432
  75. [75]Yuksekgonul, M., Bianchi, F., Kalluri, P., Jurafsky, D., Zou, J.: When and why Vision-Language Models behave like Bags-of-Words, and what to do about it? In: ICLR (2023), https://openreview.net/forum?id=KRLUvxh8uaX
  76. [76]Zhai, X., Mustafa, B., Kolesnikov, A., Beyer, L.: Sigmoid Loss for Language Image Pre-Training (2023), https://arxiv.org/abs/2303.15343
  77. [77]Zhai, X., Wang, X., Mustafa, B., Steiner, A., Keysers, D., Kolesnikov, A., Beyer, L.: LiT: Zero-Shot Transfer with Locked-image text Tuning. In: CVPR. pp. 18123–18133 (June 2022)arxiv.org/abs/2111.07991
  78. [78]Zhang, B., Zhang, P., Dong, X., Zang, Y., Wang, J.: Long-clip: Unlocking the long-text capability of clip. arXiv preprint arXiv:2403.15378 (2024)arxiv.org/abs/2403.15378
  79. [79]Zhang, H., Cisse, M., Dauphin, Y.N., Lopez-Paz, D.: mixup: Beyond Empirical Risk Minimization. In: ICLR (2018), https://openreview.net/forum?id=r1Ddp1-Rb
  80. [80]Zhang, L., Awal, R., Agrawal, A.: Contrasting Intra-Modal and Ranking Cross-Modal Hard Negatives to Enhance Visio-Linguistic Fine-grained Understanding. arXiv preprint arXiv:2306.08832 (2023)arxiv.org/abs/2306.08832
  81. [81]Zheng, K., Zhang, Y., Wu, W., Lu, F., Ma, S., Jin, X., Chen, W., Shen, Y.: DreamLIP: Language-Image Pre-training with Long Captions. In: ECCV (2024)arxiv.org/abs/2403.17007
  82. [82]Zhou, J., Dong, L., Gan, Z., Wang, L., Wei, F.: Non-contrastive learning meets language-image pre-training (2022), https://arxiv.org/abs/2210.09304

Paper details

vlnc:W_5pepnxnz
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents