Robust Cross-Modal Representation Learning with Progressive Self-Distillation

Alex Andonian, Shixing Chen, Raffay Hamid · DOI

Introduction

Vision-language models, most notably CLIP (Contrastive Language-Image Pre-training), have revolutionized the field of representation learning by enabling zero-shot transfer across a wide array of visual tasks. However, these models are notoriously resource-intensive, often requiring hundreds of millions of image-text pairs and immense computational power to achieve state-of-the-art performance. A primary bottleneck in this efficiency is the standard InfoNCE loss objective, which relies on a rigid "one-to-one" matching assumption. This paper introduces a novel training framework that moves beyond this limitation through progressive self-distillation, allowing models to learn more nuanced, "soft" semantic relationships from noisy, web-scale data.

The Problem: The Inefficiency of Rigid Matching

Standard contrastive learning assumes that within a training batch, an image corresponds exactly to its paired caption and is unrelated to all other captions. In this framework, every non-paired caption is treated as a "negative" to be repelled in the embedding space.

This assumption fails in the context of real-world, web-harvested data for two reasons:

  1. Semantic Overlap: A single image (e.g., a photo of a living room) may be accurately described by multiple captions in a large batch (e.g., "modern interior," "wooden floor," or "sunny apartment"). Forcing the model to repel these semantically similar items wastes compute and creates conflicting gradients.
  2. Data Noise: Web data is inherently messy; captions are often tangential or entirely unrelated to the image content. A hard matching objective forces the model to memorize these noisy associations rather than learning generalizable concepts.

Proposed Method: Progressive Self-Distillation

The authors propose a framework designed to embrace semantic ambiguity rather than penalize it. The method consists of two primary components:

1. Soft-Alignment via Swapped Prediction

Instead of using binary "0 or 1" labels, the model generates "soft" targets. It employs a "teacher"—which is a moving average or previous version of the model itself—to predict a distribution of similarities across the batch. Using a "swapped" prediction strategy, text features are used to generate targets for image features, and vice versa. This allows the model to recognize that "dog" and "puppy" are semantically related, even if they are not the specific pair defined by the dataset.

2. The Progressive $\alpha$ Schedule

Early in training, the model lacks the internal knowledge to act as a reliable teacher. To address this, the authors introduce a partitioning factor, $\alpha$, to balance hard labels and soft self-distillation.

  • Initial Phase: $\alpha$ starts high (e.g., 0.8), meaning 80% of the supervision comes from standard "hard" CLIP labels.
  • Progressive Decay: As training continues, $\alpha$ is decayed to 0.2. This transition allows the model to increasingly rely on its own evolving internal knowledge to supervise its learning process.

Crucially, this architecture adds no additional parameters and introduces negligible computational overhead compared to standard CLIP training.

Experimental Results

The framework was evaluated using models trained on MS COCO, CC3M, and CC12M datasets and tested across 14 diverse benchmarks, including ImageNet variants and retrieval tasks.

Zero-Shot Performance and Scaling

On the CC3M dataset, the proposed method achieved a 6.19% absolute improvement in average top-1 accuracy over standard CLIP across all datasets. Notably, the performance gap between this method and CLIP widened as the dataset size increased from 3M to 12M images, suggesting that the soft-alignment approach scales more effectively with larger data volumes.

Robustness to Distribution Shift

The model demonstrated significant gains in "natural" robustness. When tested on datasets like ImageNet-R (renditions), ImageNet-A (adversarial), and ObjectNet, the self-distilled model remained resilient. This indicates that by relaxing the matching constraints, the model learns core semantic concepts rather than overfitting to specific image-text textures or noise patterns.

Retrieval and Feature Quality

In MS COCO retrieval tasks, the model consistently outperformed CLIP, particularly in "Mean Rank." This suggests a more organized embedding space where semantically relevant results are kept near the top, even if they aren't the exact match. Furthermore, linear probing experiments—where the visual encoder is frozen—confirmed that the underlying visual features are of higher quality than those produced by standard contrastive methods.

Conclusion and Future Work

This research demonstrates that treating "negatives" as absolute zeros is a limitation in cross-modal learning. By incorporating progressive self-distillation, models can navigate the ambiguity of web-scale data more effectively. While the study was limited to the 12M image scale, the results suggest that soft-alignment is a promising path toward more efficient and robust vision-language models. Future work may explore how this technique interacts with even larger datasets (like LAION-5B) and other efficiency-focused architectures such as masked autoencoders.

Summary updated

BibTeX
@misc{andonian2022robust,
  author = {Alex Andonian and Shixing Chen and Raffay Hamid},
  title = {{Robust Cross-Modal Representation Learning with Progressive Self-Distillation}},
  year = {2022},
  eprint = {2204.04588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.04588},
}
Figure