Vision-Language Dataset Distillation

Xindi Wu, Zhiwei Deng, Olga Russakovsky, Russakovsky, Olga · DOI

Abstract

Dataset distillation methods reduce large-scale datasets to smaller sets of synthetic data, preserving sufficient information to quickly train a new model from scratch. However, prior work on dataset distillation has focused exclusively on image classification datasets, whereas modern large-scale datasets are primarily vision-language datasets. In this work, we design the first vision-language dataset distillation method, building on the idea of trajectory matching. A key challenge is that vision-language datasets do not have a set of discrete classes. To overcome this, our proposed method jointly distills image-text pairs in a contrastive formulation. Further, we leverage Low-Rank Adaptation (LoRA) matching to enable more efficient and effective trajectory matching in complex modern vision-language models. Since there are no existing baselines, we compare our distillation approach with three adapted vision-language coreset selection methods. We demonstrate significant improvements on the challenging Flickr30K and COCO retrieval benchmarks: for example, on Flickr30K, the best coreset selection method selecting 1000 image-text pairs for training achieves only 5.6% image-to-text retrieval accuracy (i.e., recall@1); in contrast, our dataset distillation almost doubles that to 9.9% with just 100 training pairs, an order of magnitude fewer.

Introduction

Dataset distillation (DD) aims to condense massive datasets into tiny, synthetic versions that retain enough information to train high-performing models. While DD has seen success in image classification (e.g., MNIST, CIFAR-10), these methods rely on discrete class labels as anchors. Modern AI, however, is increasingly driven by vision-language models (VLMs) trained on vast, uncurated image-caption pairs. These datasets lack discrete classes, featuring complex, continuous, and often redundant cross-modal relationships. Furthermore, the scale of modern architectures like Vision Transformers (ViTs) makes standard distillation techniques computationally prohibitive. This paper introduces the first dataset distillation method specifically designed for the multimodal era, addressing these challenges through joint image-text distillation and efficient parameter matching.

Methodology: Bi-Trajectory Co-Distillation

The proposed method, Bi-Trajectory Vision-Language Co-Distillation, moves beyond traditional classification-based distillation. The core innovation lies in aligning the learning dynamics of a "student" model with an "expert" model.

Bi-trajectory matching framework for vision-language dataset distillation.

Key components include:

  • Bi-Trajectory Matching: Extending the "Matching Training Trajectories" (MTT) framework, this method aligns the parameter evolution of a student model (trained on synthetic data) with that of an expert model (trained on the full dataset) over multiple training steps.
  • Joint Distillation: The method simultaneously optimizes synthetic image pixels and text embeddings (initialized from BERT). A bidirectional contrastive loss (InfoNCE) ensures tight alignment between modalities in a shared embedding space.
  • LoRA Matching: To handle large-scale ViTs, the authors utilize Low-Rank Adaptation (LoRA). Instead of matching the entire parameter set, the process focuses on low-rank "adapters," significantly reducing the optimization space while capturing essential learning signals.

Experimental Setup

The method was evaluated on two primary vision-language benchmarks:

  • Flickr30K: 31,000 images, each with five descriptive captions.
  • MS-COCO: A larger dataset of approximately 123,000 images, each with five captions.
  • CIFAR-10: Used as a sanity check to compare retrieval-based distillation against traditional classification-based methods.

Results and Discussion

The proposed distillation method demonstrates remarkable data efficiency compared to traditional coreset selection (choosing the most representative real samples).

Quantitative comparison of our distillation method against coreset selection baselines on Flickr30K and COCO.

Quantitative Performance

As shown in the table above, the performance gains are substantial. On Flickr30K image-to-text retrieval (Recall@1), the best coreset method achieved 5.6% accuracy with 1,000 training pairs. In contrast, the proposed distillation method reached 9.9% using only 100 pairs—nearly double the performance with 10x less data. When scaled to 1,000 distilled pairs, the method reached 13.3% R@1.

Key Insights

  • Class-Free Distillation: Discrete classes are not required for effective DD. Contrastive alignment provides a robust signal for creating informative synthetic data.
  • Information Density: Synthetic pairs are significantly more "dense" than natural ones, effectively synthesizing features from across the entire source dataset into a few representative samples.
  • Architecture Robustness: Knowledge distilled using one architecture (e.g., NFNet) generalizes well to others (e.g., ResNet or ViT), indicating that the distilled features are model-agnostic.

Conclusion and Future Work

While this work marks a significant step forward, several areas for future exploration remain. The effectiveness of distilled data remains somewhat sensitive to hyperparameters and learning algorithms. Additionally, while LoRA improves efficiency, generating expert trajectories and performing outer-loop optimization still requires substantial GPU time (6–15 hours). Future work could focus on distilling directly into discrete text tokens to make synthetic datasets human-readable and investigating potential bias amplification in distilled sets.

Summary updated

BibTeX
@article{wu2024vision,
  author = {Xindi Wu and Zhiwei Deng and Olga Russakovsky and Russakovsky, Olga},
  title = {{Vision-Language Dataset Distillation}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=6L6cD65pot},
}
Figure