Improved baselines for vision-language pre-training

Enrico Fini, Pietro Astolfi, Adriana Romero-Soriano, Jakob Verbeek, Michal Drozdzal

Abstract

Vision-Language Pre-training (VLP) has been dominated by the CLIP architecture, which utilizes contrastive learning to align image and text representations. Recent research has attempted to improve upon CLIP by introducing complex non-contrastive loss functions. This paper demonstrates that the perceived advantages of these complex methods often stem from superior training recipes rather than the loss functions themselves. By introducing an optimized training routine—termed CLIP $\text{\small \rocket}$—the authors achieve state-of-the-art results, outperforming more complex models while maintaining the simplicity of the original contrastive framework.

Introduction

The success of models like CLIP has established contrastive learning as the standard for connecting visual and textual data. However, CLIP's sensitivity to batch sizes and high computational requirements led researchers to explore alternative loss functions borrowed from self-supervised learning, such as those used in BYOL or Barlow Twins.

This study investigates whether these architectural complexities are truly necessary. The authors hypothesize that the performance gains attributed to new loss functions are largely a byproduct of modern training techniques. To test this, they disentangle the impact of the training "recipe" from the loss function, ultimately proposing a highly optimized version of CLIP that sets new benchmarks for efficiency and accuracy.

Methodology

New Baselines

To provide a fair comparison, the researchers first established four new VLP baselines—SiamLIP, BYOLIP, BarLIP, and SwALIP—which adapt successful visual self-supervised learning methods to the multimodal domain. These served as the control group to test the efficacy of non-contrastive losses against the standard contrastive approach.

The CLIP $\text{\small \rocket}$ Recipe

The core contribution of this work is CLIP $\text{\small \rocket}$, an improved training routine for the standard CLIP architecture. This recipe is built on four primary pillars:

  1. Enhanced Data Augmentation: The model utilizes aggressive image augmentations (color jittering, blurring, and solarization) and text augmentations (synonym replacement and word deletion) to improve robustness.
  2. Multi-view Training: The model is trained simultaneously on "weak" (simple crops) and "strong" (complex transformations) augmented versions of the same data pairs.
  3. Hybrid Projector Design: While linear layers are used for weak views, Multi-Layer Perceptrons (MLPs) are employed for strong views. This architectural nuance allows the model to better process the high-variance data generated by strong augmentations.
  4. Label Smoothing: This technique is applied to mitigate the impact of noisy, web-scraped data, preventing the model from becoming overconfident in potentially incorrect image-text pairings.

Experimental Setup

Datasets

The models were trained on a variety of large-scale datasets to test scalability:

  • Conceptual Captions (CC3M & CC12M)
  • YFCC15M (a filtered subset of Yahoo Flickr Creative Commons)
  • Open29M (a combined dataset of 29 million pairs)

Evaluation

Performance was primarily measured using ImageNet-1K zero-shot classification. Additionally, the researchers utilized the VTAB benchmark, which encompasses 22 diverse vision tasks, to ensure the model's generalizability across different domains.

Key Insights and Results

The Dominance of the Training Recipe

The most significant finding was that the advantage of non-contrastive losses disappeared when a high-quality training recipe was applied. A well-tuned CLIP model consistently matched or exceeded the performance of more complex alternatives. This suggests that data augmentation and optimization strategies are the primary drivers of performance in VLP.

Performance Benchmarks

  • Accuracy Gains: CLIP $\text{\small \rocket}$ achieved an absolute improvement of up to 11% in zero-shot ImageNet accuracy over the standard CLIP baseline.
  • State-of-the-Art Results: On the Open29M dataset, CLIP $\text{\small \rocket}$ outperformed DeCLIP—a leading complex model—by 4%.
  • Data Efficiency: Remarkably, the model achieved performance levels comparable to CLIP versions trained on the LAION-400M dataset, despite using 10x less training data.

Scaling and Consistency

The improvements were not limited to specific architectures; they remained consistent across various model sizes, from ViT-Small to ViT-Large. Furthermore, the gains were robust across all 22 tasks in the VTAB benchmark, proving that the recipe improves the fundamental quality of the learned representations.

Conclusion and Future Work

This research clarifies the current landscape of vision-language pre-training by demonstrating that the "secret sauce" for high performance lies in the training recipe rather than the complexity of the loss function. CLIP $\text{\small \rocket}$ provides a powerful, efficient, and simple baseline for future research.

Future work may address the computational overhead introduced by multi-view training. While the authors mitigated this by using lower-resolution images for strong views, further optimization remains a priority. Additionally, exploring more sophisticated, semantic-preserving text augmentations could further enhance the model's understanding of complex linguistic structures.

Summary updated

Abstract

Contrastive learning has emerged as an efficient framework to learn multimodal representations. CLIP, a seminal work in this area, achieved impressive results by training on paired image-text data using the contrastive loss. Recent work claims improvements over CLIP using additional non-contrastive losses inspired from self-supervised learning. However, it is sometimes hard to disentangle the contribution of these additional losses from other implementation details, \eg, data augmentation or regularization techniques, used to train the model. To shed light on this matter, in this paper, we first propose, implement and evaluate several baselines obtained by combining contrastive learning with recent advances in self-supervised learning. In particular, we use the loss functions that were proven successful for visual self-supervised learning to align image and text modalities. We find that these baselines outperform a basic implementation of CLIP. However, when a stronger training recipe is employed, the advantage disappears. Indeed, we find that a simple CLIP baseline can also be improved substantially, up to a 25\% relative improvement on downstream zero-shot tasks, by using well-known training techniques that are popular in other subfields. Moreover, we discover that it is enough to apply image and text augmentations to make up for most of the improvement attained by prior works. With our improved training recipe for CLIP, we obtain state-of-the-art performance on four standard datasets, and consistently outperform prior work (up to +4\% on the largest dataset), while being substantially simpler.
BibTeX
@article{fini2023improved,
  author = {Enrico Fini and Pietro Astolfi and Adriana Romero-Soriano and Jakob Verbeek and Michal Drozdzal},
  title = {{Improved baselines for vision-language pre-training}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=a7nvXxNmdV},
}
Figure