Playing Lottery Tickets with Vision and Language

Zhe Gan, Yen-Chun Chen, Linjie Li, Tianlong Chen, Yu Cheng, Shuohang Wang, Jingjing Liu

Introduction

Large-scale Vision-and-Language (VL) pre-training has yielded state-of-the-art models like UNITER and LXMERT. However, these models often contain hundreds of millions of parameters, posing significant challenges for deployment on edge devices. This research investigates whether the Lottery Ticket Hypothesis (LTH)—the idea that dense networks contain sparse subnetworks that can match the full model's performance when trained from the same initialization—applies to the multi-modal domain.

Methodology: Finding the Winning Ticket

The authors employ Iterative Magnitude-based Pruning (IMP) to identify "winning tickets" within VL backbones. The process involves training the full model, pruning weights with the smallest magnitudes, resetting the remaining weights to their original pre-trained values, and repeating until the desired sparsity is achieved.

Overview of the IMP process for finding task-agnostic and task-specific tickets.

A key contribution of this work is the discovery of task-agnostic tickets. Unlike traditional pruning that targets a specific downstream task (like VQA), the authors perform IMP during the pre-training phase using tasks like Masked Language Modeling (MLM) and Image-Text Matching (ITM). This results in a single, universal subnetwork capable of transferring across diverse downstream applications.

Experimental Setup

The study evaluates three distinct architectures:

  • UNITER (one-stream)
  • LXMERT (two-stream)
  • ViLT (end-to-end)

Performance is measured across seven representative benchmarks, including VQA, GQA, VCR, NLVR², SNLI-VE, RefCOCO+, and Flickr30k. Pre-training utilizes standard datasets such as COCO, Visual Genome, Conceptual Captions, and SBU Captions.

Key Insights

The Universal Ticket

The research reveals that task-agnostic tickets found during pre-training are remarkably robust. At 60% sparsity, these tickets maintain approximately 98% of the full model's accuracy across all tested tasks. This suggests that the essential multi-modal interactions are captured early during the pre-training phase.

Architecture Redundancy

Pruning efficiency varies by architecture. Models like UNITER and LXMERT, which rely on pre-extracted regional features, can be pruned up to 70% while maintaining 99% performance. In contrast, ViLT—which processes raw image patches—shows significant performance degradation beyond 30% sparsity, likely because its transformer layers must handle both feature extraction and multi-modal fusion simultaneously.

Adversarial Robustness

Interestingly, incorporating adversarial training during the pruning process allows for even higher sparsity. Adversarial training effectively makes the winning tickets "10% sparser" for the same level of performance, indicating a link between model robustness and sparse structure.

Results and Discussion

The identified winning tickets consistently outperform random pruning baselines, confirming that the specific connectivity found via IMP is vital for multi-modal reasoning.

Performance comparison of IMP-based winning tickets vs. random pruning across sparsity levels.

As shown in the performance curves, IMP on both pre-training and fine-tuning tasks maintains high accuracy until roughly 60-70% sparsity, whereas random pruning leads to immediate and sharp performance drops. While "weight rewinding" (resetting to an early training state) is common in CV, it provided only marginal gains here compared to resetting to the initial pre-trained state.

Limitations and Future Outlook

While this work proves the existence of winning tickets in VL models, several challenges remain:

  • Unstructured Pruning: The current method uses unstructured pruning, which reduces parameter counts but requires specialized hardware or kernels for actual speedups.
  • Backbone Constraints: In models like UNITER, the heavy object detection backbone (Faster R-CNN) remains unpruned, limiting overall system efficiency.
  • Future Work: Future research should explore structured pruning and end-to-end pruning of both the visual backbone and the multi-modal transformer.

Conclusion

This study confirms that the Lottery Ticket Hypothesis holds for Vision-and-Language models. The discovery of task-agnostic winning tickets during pre-training offers a promising path toward creating smaller, more efficient multi-modal models that retain the intelligence of their larger counterparts.

Summary updated

BibTeX
@inproceedings{gan2022playing,
  author = {Zhe Gan and Yen-Chun Chen and Linjie Li and Tianlong Chen and Yu Cheng and Shuohang Wang and Jingjing Liu},
  title = {{Playing Lottery Tickets with Vision and Language}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.19945},
}
Figure