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 in the vision-language space. 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: The Challenge of Multimodal Distillation
Modern AI relies on vision-language models trained on millions of image-text pairs. However, traditional dataset distillation (DD) has been confined to image classification with discrete labels. Adapting DD to multimodal data presents three significant hurdles: the lack of discrete classes, the computational complexity of large architectures like Vision Transformers (ViTs), and the non-differentiable nature of discrete text.
Bi-Trajectory Vision-Language Co-Distillation
We introduce a novel method based on Bi-Trajectory Matching. Instead of matching gradients at a single point, the method ensures the "student" model (trained on synthetic data) follows the same training trajectory as an "expert" model (trained on the full dataset).
Key technical innovations include:
- Joint Co-Distillation: We optimize both image pixels and continuous text embeddings simultaneously via a bidirectional contrastive loss (InfoNCE). This ensures the synthetic pairs learn the relationship between modalities.
- LoRA Matching: To handle the parameter count of ViTs, we match trajectories of Low-Rank Adaptation (LoRA) matrices, reducing parameter tracking requirements by nearly 80%.
- Continuous Text Optimization: Distillation occurs in the continuous embedding space of a pretrained BERT model, bypassing the discrete text bottleneck.
Experimental Results
We evaluated our method on the Flickr30K and MS-COCO retrieval benchmarks against coreset selection baselines: Herding (H), K-center (K), and Forgetting (F).
Our results demonstrate that synthetic data is significantly more information-dense than real samples:
- 10x Data Efficiency: On Flickr30K, our distillation method achieved 9.9% Recall@1 with only 100 pairs, nearly doubling the performance of the best coreset method using 1,000 pairs (5.6%).
- Scaling Performance: With 1,000 distilled pairs, performance reached 13.3% R@1 on Flickr30K, consistently outperforming all selection-based baselines.
- Cross-Architecture Generalization: Data distilled using NFNets generalized effectively to ViT architectures, indicating that the distilled knowledge is model-agnostic.
Conclusion
This work presents the first distillation framework for vision-language datasets. By combining joint co-distillation with LoRA-based trajectory matching, we achieve unprecedented data efficiency, enabling high-performance training with an order of magnitude less data than traditional selection methods.
Summary updated