TL;DR
This paper introduces the first dataset distillation method for vision-language tasks, moving beyond simple image classification to complex multimodal alignment. By matching the training trajectories of low-rank adapters (LoRA) in a contrastive framework, the authors create tiny synthetic datasets that outperform traditional data selection methods by an order of magnitude.
What Problem Does This Paper Address?
Dataset distillation (DD) aims to shrink massive datasets into a handful of synthetic samples that retain enough information to train a model from scratch. While DD has seen success in image classification (e.g., MNIST, CIFAR), it has largely ignored the multimodal world of vision-language (VL) models.
Distilling VL datasets is significantly harder for three reasons:
- No Discrete Classes: Unlike classification, VL tasks involve a continuous, open-ended relationship between images and text. There are no "cat" or "dog" buckets to ground the distillation.
- Computational Complexity: Modern VLMs use heavy architectures like Vision Transformers (ViTs). Prior DD methods often rely on small ConvNets and low-resolution images; scaling these to high-res ViTs is computationally prohibitive.
- Non-Differentiable Modalities: Text is discrete and non-differentiable, making it impossible to use standard gradient-based optimization directly on raw tokens.
Methods
The authors propose Bi-Trajectory Vision-Language Co-Distillation, which builds on the concept of Trajectory Matching.
- Bi-Trajectory Matching: The core idea is to make a "student" model (trained on synthetic data) follow the same parameter-update path as an "expert" model (trained on the full real dataset).
- Contrastive Formulation: To handle the lack of classes, they use a bidirectional contrastive loss (InfoNCE). This forces the distilled image-text pairs to learn strong alignment, effectively capturing the "essential bits" of the cross-modal relationship.
- LoRA Matching: To make distillation feasible for large models like ViTs, they don't match the entire parameter space. Instead, they leverage Low-Rank Adaptation (LoRA), matching only the trajectories of the low-rank matrices. This reduces the parameter overhead by nearly 80%, enabling distillation on high-resolution images.
- Joint Optimization: The method updates both the image pixels and the text embeddings (initialized via BERT) simultaneously to maximize information density.
Datasets
The authors evaluate their method on two standard image-text retrieval benchmarks:
- Flickr30K: 31,000 images, each with five captions.
- MS COCO: A larger-scale dataset with over 120,000 images.
- CIFAR-10: Used for a preliminary "sanity check" to compare classification-style distillation vs. retrieval-style distillation.
Key Insights and Ideas
- Co-Distillation is Non-Negotiable: Ablation studies showed that distilling only one modality while keeping the other fixed leads to poor results. The "magic" happens when images and text are optimized together to find a compact, shared representation.
- LoRA as a Distillation Tool: Beyond its usual role in fine-tuning, LoRA proves to be an excellent "bottleneck" for distillation, filtering out high-dimensional noise and focusing the optimization on the most critical model updates.
- Implicit Hard Negative Mining: The distillation process naturally acts as a hard negative miner. The synthetic samples that emerge are those that are most challenging—and thus most informative—for the model to align.
- Semantic Emergence: Even when starting from random text embeddings, the distilled text eventually shows high semantic similarity to the distilled images, suggesting the model is truly learning meaningful concepts rather than just exploiting statistical artifacts.
Key Results
The quantitative improvements over coreset selection (choosing the "best" real samples) are dramatic:
- Efficiency: On Flickr30K, the method achieves 9.9% Recall@1 with just 100 pairs. For comparison, the best coreset selection method requires 1,000 pairs to reach only 5.6%.
- Performance Gains: Across various budgets, the distillation approach outperforms baselines by 138% to 661%.
- Cross-Architecture Generalization: Data distilled using one architecture (e.g., NFNet) transfers effectively to others (e.g., ResNet50 or ViT), proving the distilled information is not architecture-specific.
Limitations and Future Work
- Computational Cost: While LoRA makes it feasible, distillation is still expensive, requiring 6–15 GPU hours depending on the configuration.
- Transferability Limits: The authors note the "No Free Lunch" theorem applies; the effectiveness of distilled data is still somewhat tied to the learning algorithms used during the distillation phase.
- Future Directions: The authors suggest exploring closed-form solutions or implicit gradient-based methods to further reduce the computational burden and improve the scalability of multimodal distillation.
Summary updated