Manuscript Offprint
arXiv:2610.09700What Makes Synthetic Hard Negatives Work in Vision-Language Pretraining?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Nikos Giakoumoglou , Paschalis Giakoumoglou , Andreas Floros , Kleanthis Marios Papadopoulos , and Tania Stathaki
Imperial College London, London, UK
Centre for Research and Technology Hellas, Thessaloniki, Greece
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.
Keywords: CLIP · Contrastive learning · Hard negatives · Synthetic negatives · Vision-language pretraining · Zero-shot transfer
1 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 [18,42]. Seminal works CLIP [48], ALIGN [21], and BASIC [45] 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
N. Giakoumoglou et al.
softmax weight in InfoNCE, their availability depends on batch composition. Hard-negative sampling and synthesis provide explicit control over this training signal [22, 52].
In unimodal self-supervised learning, synthetic hard negatives generated directly in the representation space have proven highly effective [12,13,22], 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 [73, 79], LLM-based caption rewrites [10, 44], or diffusion-generated negative images [44]. These approaches incur significant computational overhead and typically address only one modality at a time (cf. Sec. 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 [30]: 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 (Secs. 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 (Sec. 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 (Sec. 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 (Tab. 5), zero-shot classification (Tab. 6), linear probe evaluation (Tab. 7), demonstrating broad improvements across the evaluated settings.
2.1 Vision-Language Contrastive Pretraining
CLIP [48] and ALIGN [21] established the standard approach for vision-language contrastive pretraining: learning aligned image-text representations via a batch-level InfoNCE loss [42] over large-scale web-crawled data. LiT [76] showed that freezing a pretrained vision encoder and training only the text tower can be surprisingly effective, while SigLIP [75] replaced the softmax-based InfoNCE with a pairwise sigmoid formulation that removes the need for global normalization. BASIC [45] 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 [16, 27, 67, 69], integration of self-supervised objectives [28, 37–39, 56, 81], architectural changes [3, 51, 61, 71], training efficiency improvements [29, 68], scaling [20, 58, 59, 65, 72], and improved training signals via synthetic captions [10, 32, 64, 77, 80]. 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.
2.2 Hard Negative Sampling
The quality and difficulty of negative samples are critical for contrastive learning [14, 54, 57, 63]. In vision, synthetic hard negatives generated in the representation space have been shown to significantly improve self-supervised representation learning [12, 13, 15, 22, 52]. MoCHi [22] mixes hard-negative features, while SynCo [13] studies six synthesis strategies that underpin our analysis. In vision-language learning, linguistic perturbations [73, 79] construct negative captions, and DiHT [47] increases the contribution of hard negatives through importance sampling while NegCLIP [73] and related methods [79] construct negatives through linguistic perturbations. In representation space, -Mix within -Mix [41] 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.
2.3 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,44], captioning models [32,68], or multimodal LLMs [26,33,64,80]. On the image side, TripletCLIP [44] generates hard negative images using text-to-image diffusion models (e.g., SDXL-Turbo [46]) 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
N. Giakoumoglou et al.

Fig. 1: Architecture comparison for the image-to-text direction. (a) Standard CLIP encodes images X and captions C into embeddings and , computing the similarity matrix using only batch negatives. (b) Our method generates synthetic text negatives directly in the representation space and concatenates them with batch embeddings to form an augmented similarity matrix . 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. Sec. 3.2).
in-batch embeddings alone, requiring no external models and no additional data. More on related work in Appendix Sec. C.
3 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 (Sec. 3.1), then describe how synthetic negatives augment the contrastive loss in the representation space (Sec. 3.2), and finally define the generation strategies (Sec. 3.3). These preliminaries set up the vocabulary for Sec. 4, where we analyze why naively applying these strategies to the vision-language setting fails and present the design choices that lead to SNAP.
3.1 Contrastive Language-Image Pretraining
We assume two parameterized models: an image encoder with parameters (e.g., a vision transformer [9] or a convnet [19]) and a text encoder with parameters (e.g., a GPT-style transformer [49,50]). Each input sample consists of an image and text caption . The encoders produce embeddings and , which are mapped to a common -dimensional embedding space via projection layers and -normalized, i.e., . For a batch , each sample is associated with one positive pair and in-batch negatives. To aid readability, throughout this section we use red to denote batch negatives. The bi-directional contrastive loss is computed as:
where 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 and the in-batch negatives , following the standard InfoNCE formulation [42]. In the standard CLIP formulation [48], negatives are drawn exclusively from the batch , 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].
3.2 Synthetic Hard Negatives in the Representation Space
We augment the denominators of both and 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 for each image query . Similarly, for the t2i term, we generate a set of synthetic image negatives for each text query . The augmented losses are:
Each query has its own synthetic-negative set, generated from its selected hard-negative pool; synthetic negatives are not shared across queries.
The final loss combines both augmented directional terms:
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. Sec. 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. D.1).
N. Giakoumoglou et al.
3.3 Synthetic Negative Generation Strategies
We define hardness by cosine similarity to the query [22]. Given a query image embedding , we select the top-N batch text negatives with the highest cosine similarity to ; analogously, we select for text query . We implement six strategies to generate synthetic negatives. For the i2t direction, each strategy produces a synthetic text negative from the query and one or two hard negatives , sampled uniformly from
All synthetic negatives are -normalized after generation. Strategies (interpolation) and (extrapolation) blend the query with hard negatives [78]; (mixup) combines pairs of hard negatives [62, 78]; perturbs a hard negative with Gaussian noise; and apply gradient-ascent and sign-based adversarial perturbations [17, 35] (see [13] for further detail). Crucially, and involve the query embedding (or in the t2i direction), producing cross-modal synthetic negatives, while and operate exclusively on same-modality negatives without involving any positive. As we show in Sec. 4.1, this distinction is critical in the vision-language setting.
4 Adapting Synthetic Negatives to Vision-Language Pretraining
The success of representation-space synthetic negatives in unimodal learning (Sec. 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 (Sec. 4.1) along their multimodal geometry (Sec. 4.2), their secondary effect on the learnable temperature (Sec. 4.1), and present the resulting design choices that define SNAP (Sec. 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 , , and are set empirically without extensive tuning, following [13].
4.1 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=1 and s=2

(a) Cross-modal Failure

(b) Positive Leakage

(c) SNAP (Ours)
Fig. 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 (Sec. 4.1). (b) Positive Leakage: Including the positive pair in synthesis creates negatives that contain the actual signal, causing gradient conflict (Sec. 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 (Sec. 4.3).
blend the image query with text negatives . However, vision-language models exhibit a well-documented modality gap [30] (Fig. 2a): image and text embeddings cluster in distinct cones of the shared space, and cross-modal interpolations such as produce vectors in the void between them that real embeddings never occupy, making them trivially separable. As shown in Table 1, restricting to in intra-modal mode nearly recovers the CLIP baseline (10.0 vs. 10.4 on IN-val); as we show in Section 4.1, the remaining gap is closed and surpassed once the temperature is fixed.
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 in with the matched text positive . However, this introduces a subtler failure. Consider the intra-modal interpolation: , where is the positive caption for query and is a different caption. Because is the correct match for , the synthetic “negative” inherits positive signal. As , it becomes nearly identical to the true positive, yet the InfoNCE denominator treats it as a negative. This positive leakage (Fig. 2b) sends contradictory gradients: the numerator of Eq. (2) encourages similarity with , while the denominator penalizes similarity with . Tab. 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
N. Giakoumoglou et al.
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 and recovers performance. We highlight the default hyperparameter.
| Method | Strategies | Mode | IN-val | IN-v2 |
|---|---|---|---|---|
| CLIP [48] | n/a | n/a | 10.4 | 8.4 |
| SNAP | all 6 | cross | 7.6 (↓) | 6.8 (↓) |
| SNAP | all 6 | intra | 8.7 (↓) | 7.5 (↓) |
| SNAP | s=3, 4 | intra | 10.0 (↓) | 8.0 (↓) |

Fig. 3: Pairwise strategy complementarity on IN-val. Strategies achieve the highest accuracy.
through explicit inclusion of the matched positive. Strategies avoid both by generating negatives from non-matching pairs only. Restricting to 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 (Section 4.1). Figure 3 confirms this: and consistently outperform any combination involving cross-modal blending or the positive pair.
Temperature divergence. Adding synthetic hard negatives changes the contrastive denominator and its interaction with the learnable temperature . In the evaluated configuration, CLIP+SNAP with learnable reaches the OpenCLIP logit-scale clamp of 100 within half an epoch after synthetic negatives are enabled (Fig. 4). This occurs with the positive-free intra-modal strategies . Fixing improves IN-val accuracy from 10.0 to 11.0 and IN-v2 accuracy from 8.0 to 9.6 (Tab. 2). Under the same fixed temperature, CLIP without synthetic negatives achieves 10.1 and 8.0, respectively. We therefore adopt fixed as part of the SNAP training recipe. The two cross-modal strategies fail through distinct mechanisms: extrapolation () pushes vectors beyond the text cone, while interpolation () pulls toward the image query and thus the positive, making positive leakage the dominant failure rather than trivial separability, as we quantify in Section 4.2.
4.2 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 , where values above the random baseline (0.19) indicate semantic contamination; trivially separable rate (TSR), the fraction of synthetics easier
Table 2: Temperature ablation. With fixed , CLIP+SNAP outperforms both fixed- and learnable-temperature CLIP. We highlight the default setting.
| Method | τ | IN-val | IN-v2 |
|---|---|---|---|
| CLIP | learn. | 10.4 | 8.4 |
| CLIP | fixed | 10.1 | 8.0 |
| CLIP+SNAP | learn. | 10.0 (↓) | 8.0 (↓) |
| CLIP+SNAP | fixed | 11.0 (↑) | 9.6 (↑) |

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

Fig. 5: Positive leakage per strategy (ViT-B/32, CC3M). mean per strategy; dashed line marks the random baseline (0.19).
Table 3: TSR and relative hardness. Lower TSR and higher hardness indicate harder, more informative negatives. We highlight SNAP strategies.
| Strategy | TSR (%)↓ | Δ hardness↑ |
|---|---|---|
| s=1 (cross) | 0.3 | +0.281 |
| s=2 (cross) | 87.8 | -0.189 |
| s=1 (intra) | 0.6 | +0.133 |
| s=2 (intra) | 74.0 | -0.096 |
| s=3 (SNAP) | 2.2 | +0.041 |
| s=4 (SNAP) | 13.2 | +0.045 |
than the 10th percentile of real hard negatives; and relative hardness . As shown in Fig. 5 and Tab. 3, cross-modal strategies fail for opposite reasons: (cross) lands in the void beyond the text cone (TSR , ), while (cross) interpolates toward the positive (leakage 0.33). Intra-modal strategies involving the positive suffer from contamination ( intra: 0.48; intra: 0.41) or trivial separability ( intra: TSR ). Only and avoid cross-modal mixing and explicit positive inclusion, exhibiting leakage close to the random baseline (0.23 and 0.19), low TSR ( and ), and positive relative hardness.
PCA subspace visualization. Fig. 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
N. Giakoumoglou et al.

Fig. 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 (, ) are confined within the text cone and away from the positive.
within the text cone but near the positive anchor, explaining the observed leakage. SNAP strategies (, ) are confined within the text cone and distributed away from the positive, occupying the same subspace as real text negatives.
4.3 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 and from Eq. (5), both operating in intra-modal mode (Fig. 2c). These avoid cross-modal geometric collapse and intra-modal positive leakage (Tab. 1 and Fig. 3).
Fixed temperature. SNAP fixes the temperature rather than learning it, preventing the logit scale saturation that arises when hard negatives interact with a learnable temperature (Tab. 2).
Table 4: Synthesis and directionality ablations on CC3M.
| Variant | IN-val | IN-v2 |
|---|---|---|
| Random-neg. dup. | 10.0 | 8.0 |
| Hard-neg. dup. | 10.4 | 8.5 |
| Hard-neg. wt. | 10.5 | 8.7 |
| s = 3 | 10.8 | 9.2 |
| s = 4 | 10.6 | 8.8 |
| s = 3, 4 (i2t only) | 10.7 | 8.8 |
| s = 3, 4 (t2i only) | 10.6 | 8.7 |
| SNAP | 11.0 | 9.6 |
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 (Tab. 4). Bidirectional synthesis also outperforms either direction alone.
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 [48] requires 32.5 minutes per epoch, while SNAP adds only 3 minutes, resulting in an 9.23% overhead. Similarly, FLIP [29] 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. D).
5 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 [75] under our training setup. Results for LaCLIP [10], TripletCLIP [44], and NegCLIP [73] are taken from [44] and included for reference only. Detailed implementation details in Appendix Sec. B.
5.1 Implementation Details
Pretraining datasets. We pretrain on two image-text datasets of varying scale: CC3M [55] and CC12M [4]. Due to image link rot, the versions we obtained contain fewer samples than the original releases: 1.7M out of 3.3M for CC3M and 7.2M 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 , we use ViT-B/16, ViT-B/32 [9], and ResNet-50 [19]. For the text encoder , we use a 12-layer Transformer [48]. Both encoders include projection heads mapping to a shared dimensional embedding space.
Training setup. We use AdamW [34] with learning rate , weight decay 0.2, and cosine scheduling with 10k warmup steps. Training uses batch size on A100 GPUs for 32 epochs, with images and text length 77. The temperature 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 Tables 5 to 7; for CC12M, a single checkpoint is used due to computational constraints.
N. Giakoumoglou et al.
5.2 Zero-Shot Image-Text Retrieval
We evaluate cross-modal retrieval on Flickr30k [70] and MSCOCO [31], computing pairwise cosine similarities over the full test split and reporting Recall@{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.
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 [44]
| Data Method | Text Retrieval | Image Retrieval | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Flickr30k | MSCOCO | Flickr30k | MSCOCO | ||||||||||
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | ||
| ViT-B/32 | |||||||||||||
| SigLIP [75] | |||||||||||||
| NegCLIP | |||||||||||||
| LaCLIP | |||||||||||||
| TripletCLIP | |||||||||||||
| CLIP [48] | |||||||||||||
| + SNAP | |||||||||||||
| FLIP [29] | |||||||||||||
| + SNAP | |||||||||||||
| CC12M | SigLIP [75] | ||||||||||||
| NegCLIP | |||||||||||||
| LaCLIP | |||||||||||||
| TripletCLIP | |||||||||||||
| CLIP [48] | |||||||||||||
| + SNAP | |||||||||||||
| FLIP [29] | |||||||||||||
| + SNAP | |||||||||||||
| ViT-B/16 | |||||||||||||
| CC3M | SigLIP [75] | ||||||||||||
| CLIP [48] | |||||||||||||
| + SNAP | |||||||||||||
| FLIP [29] | |||||||||||||
| + SNAP | |||||||||||||
| CC12M | SigLIP [75] | ||||||||||||
| CLIP [48] | |||||||||||||
| + SNAP | |||||||||||||
| FLIP [29] | |||||||||||||
| + SNAP | |||||||||||||
| RN-50 | |||||||||||||
| CC3M | SigLIP [75] | ||||||||||||
| CLIP [48] | |||||||||||||
| + SNAP | |||||||||||||
| FLIP [29] | |||||||||||||
| + SNAP | |||||||||||||
5.3 Zero-Shot Classification
We evaluate zero-shot classification on ImageNet [8, 53] and 10 downstream datasets spanning fine-grained recognition (Stanford Cars [24], FGVC Aircraft [36]), scene recognition (SUN397 [66]), texture classification (DTD [7]), and generic object classification (CIFAR [25]), 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 , Aircraft for CLIP), while general benchmarks such as ImageNet show steady improvements.
Table 6: Zero-shot classification. Top-1 accuracy on ImageNet and 10 downstream datasets spanning fine-grained, scene, and object recognition. Taken from [44].
| Data | Model | Food-101 | CIFAR-10 | CIFAR-100 | SUN397 | Cars | Aircraft | DTD | Pets | Caltech-101 | Flowers | ImageNet |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CC3M | ViT-B/32 | |||||||||||
| SigLIP [75] | ||||||||||||
| NegCLIP [73] | - | - | 8.2 | - | - | 1.0 | 6.8 | 4.1 | 29.4 | 3.7 | 4.6 | |
| LaCLIP [10] | - | - | 8.0 | - | - | 0.8 | 5.5 | 3.1 | 24.6 | 3.4 | 3.7 | |
| TripletCLIP [44] | - | - | 11.8 | - | - | 0.9 | 8.9 | 5.7 | 38.5 | 8.2 | 7.3 | |
| CLIP [48] | ||||||||||||
| + SNAP | ||||||||||||
| FLIP [29] | ||||||||||||
| + SNAP | ||||||||||||
| CC12M | SigLIP [75] | 11.2 | 45.4 | 28.1 | 31.2 | 3.4 | 2.1 | 15.6 | 32.5 | 64.1 | 14.2 | 22.1 |
| NegCLIP [73] | - | - | 26.0 | - | - | 1.5 | 14.2 | 30.8 | 63.4 | 13.5 | 20.2 | |
| LaCLIP [10] | - | - | 23.6 | - | - | 1.5 | 13.0 | 34.7 | 62.9 | 13.4 | 19.7 | |
| TripletCLIP [44] | - | - | 30.3 | - | - | 1.2 | 17.4 | 33.2 | 65.3 | 15.4 | 23.3 | |
| CLIP [48] | 13.1 | 50.2 | 31.5 | 35.1 | 4.1 | 2.5 | 18.2 | 35.8 | 67.4 | 16.8 | 24.6 | |
| + SNAP | 13.5 | 50.6 | 32.7 | 36.2 | 5.0 | 3.0 | 19.1 | 36.7 | 68.1 | 17.3 | 24.8 | |
| FLIP [29] | 11.8 | 46.5 | 28.9 | 32.4 | 3.5 | 2.2 | 16.1 | 33.4 | 64.8 | 14.9 | 22.8 | |
| + SNAP | 13.2 | 47.7 | 29.5 | 33.3 | 4.0 | 2.0 | 17.0 | 34.3 | 65.6 | 15.7 | 23.9 | |
| CC3M | ViT-B/16 | |||||||||||
| SigLIP [75] | ||||||||||||
| CLIP [48] | ||||||||||||
| + SNAP | ||||||||||||
| FLIP [29] | ||||||||||||
| + SNAP | ||||||||||||
| CC12M | SigLIP [75] | 19.8 | 58.4 | 36.2 | 41.5 | 6.2 | 4.1 | 22.1 | 51.2 | 78.4 | 24.1 | 31.2 |
| CLIP [48] | 22.4 | 63.1 | 39.5 | 44.8 | 7.5 | 4.8 | 24.8 | 55.4 | 82.1 | 27.5 | 34.6 | |
| + SNAP | 23.1 | 63.0 | 40.1 | 46.2 | 7.9 | 4.6 | 25.4 | 56.1 | 83.2 | 28.5 | 35.3 | |
| FLIP [29] | 20.2 | 59.8 | 37.5 | 42.6 | 6.5 | 4.3 | 22.8 | 52.4 | 79.8 | 25.3 | 32.4 | |
| + SNAP | 20.8 | 60.1 | 38.6 | 43.8 | 6.7 | 5.6 | 23.3 | 52.3 | 81.0 | 26.0 | 33.8 | |
| CC3M | RN-50 | |||||||||||
| SigLIP [75] | ||||||||||||
| CLIP [48] | ||||||||||||
| + SNAP | ||||||||||||
| FLIP [29] | ||||||||||||
| + SNAP | ||||||||||||
N. Giakoumoglou et al.
5.4 Linear Probe Classification
Following standard protocols [23, 48], we freeze the image encoder and train a linear classifier, reporting top-1 test accuracy (Tab. 7). SNAP consistently produces more linearly separable visual features across backbones and data scales.
Table 7: Linear probe evaluation. Top-1 accuracy of a linear classifier trained on frozen image encoder features across ImageNet and 10 transfer datasets.
| Data | Model | Food-101 | CIFAR-10 | CIFAR-100 | SUN397 | Cars | Aircraft | DTD | Pets | Caltech-101 | Flowers | ImageNet |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ViT-B/32 | ||||||||||||
| CC3M | SigLIP [75] | 35.4 | 72.5 | 48.4 | 29.4 | 9.5 | 13.6 | 31.9 | 34.0 | 61.6 | 50.8 | 30.2 |
| CLIP [48] | 40.7 | 77.2 | 54.6 | 32.7 | 13.2 | 20.1 | 38.3 | 40.7 | 71.1 | 61.5 | 33.9 | |
| + SNAP | 41.3 | 78.5 | 55.2 | 33.1 | 13.9 | 20.7 | 38.9 | 41.4 | 72.0 | 62.7 | 34.7 | |
| FLIP [29] | 40.8 | 74.8 | 52.8 | 34.7 | 13.9 | 17.9 | 39.8 | 37.6 | 69.7 | 61.1 | 32.9 | |
| + SNAP | 41.4 | 75.6 | 53.6 | 36.1 | 14.5 | 18.7 | 41.3 | 37.5 | 70.8 | 62.0 | 33.5 | |
| CC12M | SigLIP [75] | 54.2 | 84.6 | 63.8 | 44.1 | 24.8 | 31.2 | 48.9 | 56.4 | 79.2 | 78.4 | 45.8 |
| CLIP [48] | 58.6 | 88.5 | 68.4 | 47.9 | 28.5 | 36.8 | 54.2 | 62.1 | 85.1 | 85.9 | 48.7 | |
| + SNAP | 59.2 | 89.1 | 68.3 | 49.3 | 28.9 | 38.0 | 54.7 | 63.4 | 85.8 | 86.3 | 49.8 | |
| FLIP [29] | 57.5 | 87.2 | 67.1 | 46.8 | 27.4 | 35.1 | 53.0 | 60.9 | 83.9 | 84.1 | 47.5 | |
| + SNAP | 58.0 | 88.1 | 68.0 | 47.3 | 27.2 | 35.3 | 53.0 | 61.7 | 84.9 | 84.7 | 48.6 | |
| ViT-B/16 | ||||||||||||
| CC3M | SigLIP [75] | 46.3 | 73.7 | 50.3 | 37.6 | 14.7 | 21.7 | 45.0 | 47.2 | 70.8 | 66.8 | 41.3 |
| CLIP [48] | 49.2 | 77.1 | 55.2 | 40.3 | 18.1 | 24.6 | 47.8 | 51.2 | 73.7 | 71.6 | 43.1 | |
| + SNAP | 49.7 | 77.5 | 56.6 | 41.0 | 19.2 | 25.3 | 48.1 | 52.2 | 74.4 | 72.3 | 43.7 | |
| FLIP [29] | 48.6 | 75.0 | 52.9 | 41.0 | 16.0 | 21.3 | 46.2 | 47.4 | 73.2 | 70.6 | 40.9 | |
| + SNAP | 49.3 | 74.9 | 53.0 | 41.1 | 16.6 | 22.7 | 46.0 | 47.4 | 74.4 | 70.9 | 41.7 | |
| CC12M | SigLIP [75] | 64.1 | 85.8 | 66.2 | 51.4 | 32.5 | 38.7 | 58.1 | 65.8 | 84.2 | 86.4 | 55.4 |
| CLIP [48] | 68.4 | 89.2 | 70.5 | 55.1 | 36.8 | 43.1 | 62.4 | 70.5 | 88.5 | 90.1 | 58.7 | |
| + SNAP | 68.8 | 90.0 | 71.3 | 56.0 | 38.0 | 43.8 | 63.2 | 71.1 | 89.6 | 90.6 | 59.9 | |
| FLIP [29] | 67.1 | 88.0 | 69.3 | 54.0 | 35.5 | 41.8 | 61.2 | 69.3 | 87.2 | 88.9 | 57.5 | |
| + SNAP | 67.8 | 87.8 | 69.7 | 54.7 | 36.2 | 42.4 | 62.4 | 70.6 | 87.8 | 88.8 | 58.7 | |
| RN-50 | ||||||||||||
| CC3M | SigLIP [75] | 50.9 | 70.0 | 46.0 | 45.6 | 17.0 | 20.9 | 49.5 | 51.3 | 73.5 | 71.5 | 47.2 |
| CLIP [48] | 56.1 | 74.0 | 52.3 | 50.0 | 24.6 | 31.1 | 53.0 | 62.4 | 80.4 | 80.4 | 50.0 | |
| + SNAP | 56.7 | 74.1 | 52.8 | 50.8 | 25.3 | 31.8 | 54.3 | 63.6 | 81.1 | 80.8 | 51.4 | |
| FLIP [29] | 56.7 | 75.5 | 53.6 | 49.0 | 24.6 | 31.0 | 54.4 | 62.2 | 80.1 | 78.8 | 50.0 | |
| + SNAP | 56.8 | 76.1 | 54.0 | 49.6 | 25.4 | 31.7 | 55.8 | 63.1 | 80.7 | 80.0 | 50.7 | |
6 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.
References
-
Beaumont, R.: img2dataset: Easily turn large sets of image urls to an image dataset. https://github.com/rom1504/img2dataset (2021)
-
Bossard, L., Guillaumin, M., Van Gool, L.: Food-101 – Mining Discriminative Components with Random Forests. In: Eur. Conf. Comput. Vis. (ECCV). pp. 446–461 (2014)
-
Cao, A., Wei, X., Ma, Z.: FLAME: Frozen Large Language Models Enable Data-Efficient Language-Image Pre-training. In: CVPR (2025)
-
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)
-
Chen, T., Kornblith, S., Norouzi, M., Hinton, G.: A simple framework for contrastive learning of visual representations. In: ICML. pp. 1597–1607. PMLR (2020)
-
Cherti, M., Beaumont, R.: CLIP benchmark (Nov 2022). https://doi.org/10.5281/zenodo.15403103, https://doi.org/10.5281/zenodo.15403103
-
Cimpoi, M., Maji, S., Kokkinos, I., Vedaldi, A.: Describing Textures in the Wild. In: IEEE Conf. Comput. Vis. Pattern Recog. (CVPR). pp. 3606–3613 (2014)
-
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
-
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: International Conference on Learning Representations (2021), https://openreview.net/forum?id=YicbFdNTTy
-
Fan, L., Krishnan, D., Isola, P., Katabi, D., Tian, Y.: Improving CLIP Training with Language Rewrites. In: NeurIPS (2023)
-
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)
-
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=dg8Fua0KnC
-
Giakoumoglou, N., Stathaki, T.: SynCo: Synthetic Hard Negatives for Contrastive Visual Representation Learning (2024), https://arxiv.org/abs/2410.02401
-
Giakoumoglou, N., Stathaki, T., Gkelias, A.: A Review on Discriminative Self-supervised Learning Methods in Computer Vision (2025), https://arxiv.org/abs/2405.04969
-
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
N. Giakoumoglou et al.
-
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
-
Goodfellow, I.J., Shlens, J., Szegedy, C.: Explaining and Harnessing Adversarial Examples (2015), https://arxiv.org/abs/1412.6572
-
Hadsell, R., Chopra, S., LeCun, Y.: Dimensionality reduction by learning an invariant mapping. In: CVRP. vol. 2, pp. 1735–1742. IEEE (2006)
-
He, K., Zhang, X., Ren, S., Sun, J.: Deep Residual Learning for Image Recognition. CVPR pp. 770–778 (2016), https://api.semanticscholar.org/CorpusID:206594692
-
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.
-
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
-
Kalantidis, Y., Sariyildiz, M.B., Pion, N., Weinzaepfel, P., Larlus, D.: Hard Negative Mixing for Contrastive Learning. In: NeurIPS (2020)
-
Kornblith, S., Shlens, J., Le, Q.V.: Do Better ImageNet Models Transfer Better? (2019), https://arxiv.org/abs/1805.08974
-
Krause, J., Stark, M., Deng, J., Fei-Fei, L.: 3D Object Representations for Fine-Grained Categorization. In: IEEE Conf. Comput. Vis. Pattern Recog. (CVPR). pp. 554–561 (2013)
-
Krizhevsky, A.: Learning Multiple Layers of Features from Tiny Images. Tech. Rep. 0, University of Toronto (2009)
-
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)
-
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=iaV2fU6Dif
-
Li, Y., Liang, F., Zhao, L., Cui, Y., Ouyang, W., Shao, J., Yu, F., Yan, J.: Supervision exists everywhere: A data efficient contrastive language-image pre-training paradigm. In: ICLR (2022), https://openreview.net/forum?id=zq1iJkNk3uN
-
Li, Y., Fan, H., Hu, R., Feichtenhofer, C., He, K.: Scaling language-image pre-training via masking (2023), https://arxiv.org/abs/2212.00794
-
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
-
Lin, T.Y., Maire, M., Belongie, S.J., Bourdev, L.D., Girshick, R.B., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.: Microsoft COCO: Common Objects in Context. CoRR abs/1405.0312 (2014), http://dblp.uni-trier.de/db/journals/corr/corr1405.html/LinMBHPRDZ14
-
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)
-
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
-
Loshchilov, I., Hutter, F.: Decoupled Weight Decay Regularization. In: ICLR. OpenReview.net (2019), https://openreview.net/forum?id=Bkg6RiCqY7
-
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=rJzIBfZAb
-
Maji, S., Rahtu, E., Kannala, J., Blaschko, M.B., Vedaldi, A.: Fine-Grained Visual Classification of Aircraft. arXiv abs/1306.5151 (2013)
-
Maninis, K.K., Chen, K., Ghosh, S., Karpur, A., Chen, K., Xia, Y., Cao, B., Salz, D., Han, G., Dlabal, J., Gnanapragasam, D., Seyedhosseini, M., Zhou, H., Araujo, A.: TIPS: Text-Image Pretraining with Spatial Awareness. In: ICLR (2025)
-
Mu, N., Kirillov, A., Wagner, D., Xie, S.: Slip: Self-supervision meets language-image pre-training. In: European Conference on Computer Vision. pp. 523–540. Springer (2022)
-
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
-
Nilsback, M., Zisserman, A.: Automated Flower Classification by Use of Color, Shape, and Texture Features. Machine Vision and Applications 18(1), 27–39 (2008)
-
Oh, C., So, J., Byun, H., Lim, Y., Shin, M., Jeon, J.J., Song, K.: Geodesic multimodal mixup for robust fine-tuning. In: Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S. (eds.) Advances in Neural Information Processing Systems. 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
-
van den Oord, A., Li, Y., Vinyals, O.: Representation Learning with Contrastive Predictive Coding (2019), https://arxiv.org/abs/1807.03748
-
Parkhi, O.M., Vedaldi, A., Zisserman, A., Jawahar, C.V.: Cats and Dogs. In: IEEE Conf. Comput. Vis. Pattern Recog. (CVPR). pp. 3498–3505 (2012)
-
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)
-
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/https://doi.org/10.1016/j.neucom.2023.126658, https://www.sciencedirect.com/science/article/pii/S0925231223007816
-
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
-
Radenovic, 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: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 6967–6977 (June 2023)
-
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.html
-
Radford, A., Narasimhan, K., Salimans, T., Sutskever, I.: Improving language understanding by generative pre-training. Tech. rep., OpenAI (2018), https:
N. Giakoumoglou et al.
//cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf
-
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
-
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
-
Robinson, J., Chuang, C.Y., Sra, S., Jegelka, S.: Contrastive learning with hard negative samples. arXiv preprint arXiv:2010.04592 (2020)
-
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
-
Schroff, F., Kalenichenko, D., Philbin, J.: Facenet: A unified embedding for face recognition and clustering. In: 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). p. 815–823. IEEE (Jun 2015). https://doi.org/10.1109/cvpr.2015.7298682, http://dx.doi.org/10.1109/CVPR.2015.7298682
-
Sharma, P., Ding, N., Goodman, S., Soricut, R.: Conceptual Captions: A Cleaned, Hypernymed, Image Alt-text Dataset For Automatic Image Captioning. In: Proceedings of ACL (2018)
-
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)
-
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.) Advances in Neural Information Processing Systems. vol. 29. Curran Associates, Inc. (2016), https://proceedings.neurips.cc/paper_files/paper/2016/file/6b180037abbebea991d8b1232f8a8ca9-Paper.pdf
-
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
-
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
-
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)
-
Tschannen, M., Gritsenko, A., Wang, X., Naeem, M.F., Alabdulmohsin, I., Parthasarathy, N., Evans, T., Beyer, L., Xia, Y., Mustafa, B., Hénaff, 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
-
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
-
Wu, C.Y., Manmatha, R., Smola, A.J., Krähenbühl, P.: Sampling matters in deep embedding learning (2018), https://arxiv.org/abs/1706.07567
-
Wu, W., Zheng, K., Ma, S., Lu, F., Guo, Y., Zhang, Y., Chen, W., Guo, Q., Shen, Y., Zha, Z.J.: LoTLIP: Improving Language-Image Pre-training for Long Text Understanding. In: NeurIPS (2024), https://openreview.net/forum?id=pc4GSBi1Hx
-
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)
-
Xiao, J., Hays, J., Ehinger, K.A., Oliva, A., Torralba, A.: SUN Database: Large-scale Scene Recognition from Abbey to Zoo. In: IEEE Conf. Comput. Vis. Pattern Recog. (CVPR). pp. 3485–3492 (2010)
-
Yang, J., Li, C., Zhang, P., Xiao, B., Liu, C., Yuan, L., Gao, J.: Unified contrastive learning in image-text-label space (2022)
-
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)
-
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
-
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)
-
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=Ee277P3AYC
-
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
-
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
-
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: International Conference on Learning Representations (2023), https://openreview.net/forum?id=KRLUvxh8uaX
-
Zhai, X., Mustafa, B., Kolesnikov, A., Beyer, L.: Sigmoid Loss for Language Image Pre-Training (2023), https://arxiv.org/abs/2303.15343
-
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)
-
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)
-
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
-
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)
-
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)
-
Zhou, Y., Qi, L., Wang, J., Feng, M.H., Zhang, W., Yang, Z., Liu, W., Wang, Y.: Non-contrastive learning meets language-image pre-training. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 8913–8923 (June 2023)
N. Giakoumoglou et al.
A Dataset Details
A.1 Pretraining Datasets
We pretrain on two image-text datasets of varying scale: CC3M [55] 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. Sec. B.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.
A.2 Downstream Datasets
We evaluate zero-shot retrieval on Flickr30k [70] and MSCOCO [31], and classification on ImageNet [8] and 10 downstream datasets. Details are provided in Tab. 8.
Table 8: Details of downstream classification datasets.
| Dataset | Metric | Categories | Train Size | Test Size |
|---|---|---|---|---|
| Food-101 [2] | Accuracy | 101 | 75,750 | 25,250 |
| CIFAR-10 [25] | Accuracy | 10 | 50,000 | 10,000 |
| CIFAR-100 [25] | Accuracy | 100 | 50,000 | 10,000 |
| SUN397 [66] | Accuracy | 397 | 19,850 | 19,850 |
| Stanford Cars [24] | Accuracy | 196 | 8,144 | 8,041 |
| FGVC Aircraft [36] | Mean per class | 100 | 6,667 | 3,333 |
| DTD [7] | Accuracy | 47 | 3,760 | 1,880 |
| Oxford Pets [43] | Mean per class | 37 | 3,680 | 3,669 |
| Caltech-101 [11] | Mean per class | 102 | 3,060 | 6,085 |
| Oxford Flowers [40] | Mean per class | 102 | 2,040 | 6,149 |
| ImageNet [8] | Accuracy | 1,000 | 1,281,167 | 50,000 |
| Flickr30k [70] | Recall@k | - | 29,000 | 1,000 |
| MSCOCO [31] | Recall@k | - | 113,287 | 5,000 |
B Implementation Details
We build on the OpenCLIP [20] codebase and evaluate using CLIP Benchmark [6].
B.1 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 [48], the text encoder is a 12-layer Transformer with vocabulary size 49,408 and maximum context length 77.
B.2 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 Tabs. 9a and 9b.
Table 9: Hyperparameters. (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.
(a) CLIP/FLIP hyperparameters.
| Config | Value |
|---|---|
| Image resolution | |
| Max text length | 77 |
| Embedding dimension | 512 |
| Batch size | 4,096 |
| Optimizer | AdamW [34] |
| Learning rate | |
| Weight decay | 0.2 |
| Adam () | (0.9, 0.98) |
| Adam | |
| LR schedule | Cosine decay |
| Warmup steps | 10,000 |
| Total epochs | 32 |
| Temperature (init) | 0.07 (learnable) |
| GPUs | 4× NVIDIA A100 |
(b) SNAP hyperparameters.
| Config | Value |
|---|---|
| Top-N hard negatives | 256 |
| Negatives per strategy | 32 |
| Number of strategies | 2 |
| Total syn. negatives / query | 64 |
| Temperature | 0.07 (constant) |
| Strategy hyperparameters | |
| Interpolation | |
| Extrapolation | |
| Mixup | |
| Noise std | 0.01 |
| Gradient step | 0.01 |
| Adversarial | 0.01 |
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.
C Related Work
We briefly contrast SNAP with the most closely related vision-language methods that incorporate synthetic data during pretraining (cf. Fig. 7). NegCLIP [73]
N. Giakoumoglou et al.
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 [80] follows a similar philosophy but leverages multimodal LLMs (ShareGPT4V, LLaVA, InstructBLIP) to produce richer positive captions grounded in visual content. TripletCLIP [44] 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. All four 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.

Fig. 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.
D 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.
Table 10: Batch size ablation.
| Batch Size | Method | IN-val | IN-v2 |
|---|---|---|---|
| 1024 | CLIP | 9.2 | 7.2 |
| + SNAP | 9.5 | 8.3 | |
| 2048 | CLIP | 9.8 | 7.8 |
| + SNAP | 10.1 | 8.9 | |
| 4096 | CLIP | 10.4 | 8.4 |
| + SNAP | 11.0 | 9.6 |
Table 11: Synthetic negatives ablation.
| IN-val | IN-v2 | ||
|---|---|---|---|
| 32 | 16 | 10.4 | 8.4 |
| 64 | 32 | 10.5 | 8.5 |
| 128 | 64 | 11.0 | 9.6 |
| 256 | 128 | 10.7 | 8.9 |
| 512 | 256 | 9.1 | 7.0 |
| 1024 | 512 | 4.3 | 3.2 |
| 2048 | 1024 | 3.1 | 2.0 |
D.1 Batch Size
We evaluate SNAP at batch sizes of 1024, 2048, and 4096 (Tab. 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).
D.2 Number of Synthetic Negatives
We vary the total number of synthetic negatives , split equally between . As shown in Tab. 11, a small number of negatives () yields performance similar to the CLIP baseline, as the contrastive signal is not sufficiently challenging. While 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.
Synthesis controls. All synthesis controls use fixed . 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 [47].
D.3 Paired Seed-wise Improvements
Tab. 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.
N. Giakoumoglou et al.
Table 12: Paired seed-wise improvements on CC3M. ImageNet zero-shot accuracy summaries, with standard deviations shown as subscripts. Each paired gain 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.
| Backbone | Baseline | Accuracy | Paired gain (pp) | ||||
|---|---|---|---|---|---|---|---|
| Baseline | +SNAP | Seed 1 | Seed 2 | Seed 3 | Mean std. | ||
| ViT-B/32 | CLIP | ||||||
| FLIP | |||||||
| ViT-B/16 | CLIP | ||||||
| FLIP | |||||||
| RN-50 | CLIP | ||||||
| FLIP | |||||||
Table 13: Compositional evaluation. Scores (%) for ViT-B/16 pretrained on CC12M.
| Method | ARO | Winoground | |||
|---|---|---|---|---|---|
| Relation | Attribute | Text | Image | Group | |
| CLIP | 51.2 | 52.1 | 24.5 | 9.8 | 6.3 |
| + SNAP | 54.8 | 56.3 | 25.2 | 9.6 | 6.5 |
D.4 Compositional Evaluation
We evaluate CLIP and SNAP with ViT-B/16 pretrained on CC12M on ARO [74] and Winoground [60] (Tab. 13). SNAP improves ARO relation and attribute accuracy by 3.6 and 4.2 percentage points, respectively, while Winoground scores remain similar.
E 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.
F 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 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.
G 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 [48] and FLIP [29] frameworks evaluated here, including methods such as SLIP [38], DeCLIP [28], FLIP [29], LiT [76], LaCLIP [10], DreamLIP [80], CyCLIP [16], and TripletCLIP [44], all of which build on the same InfoNCE-style contrastive objective.
H Reproducibility
We build on the OpenCLIP [20] 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. Tab. 9). Training was performed on 4× 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.
I Algorithm
Algorithm 1 provides the pseudo-code of SNAP, followed by the detailed implementation of the two specific generation strategies, s = 3 and s = 4, used in our approach (Algorithm 2).
N. Giakoumoglou et al.
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] + arrange(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)