@inproceedings{wang-etal-2023-efficientvlm,
    title = "{E}fficient{VLM}: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning",
    author = "Wang, Tiannan  and
      Zhou, Wangchunshu  and
      Zeng, Yan  and
      Zhang, Xinsong",
    editor = "Rogers, Anna  and
      Boyd-Graber, Jordan  and
      Okazaki, Naoaki",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2023",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.findings-acl.873",
    doi = "10.18653/v1/2023.findings-acl.873",
    pages = "13899--13913",
    abstract = "Pre-trained vision-language models (VLMs) have achieved impressive results in a range of vision-language tasks. However, popular VLMs usually consist of hundreds of millions of parameters which brings challenges for fine-tuning and deployment in real-world applications due to space, memory, and latency constraints. In this work, we introduce a distilling then pruning framework to compress large vision-language models into smaller, faster, and more accurate ones. We first shrink the size ofa pre-trained large VLM and apply knowledge distillation in the vision-language pre-training stage to obtain a task-agnostic compact VLM. Then we propose a modal-adaptive pruning algorithm to automatically infer the importance of vision and language modalities for different downstream tasks and adaptively remove redundant structures and neurons in different encoders with controllable target sparsity. We apply our framework to train EfficientVLM, a fast and accurate vision-language model consisting of 6 vision layers, 3 text layers, and 3 cross-modal fusion layers, accounting for only 93 million parameters in total, which is 44.3{\%} of the teacher model. EfficientVLM retains 98.4{\%} performance of the teacher model and accelerates its inference speed by 2.2{\mbox{$\times$}}. EfficientVLM achieves a large absolute improvement over previous SoTA efficient VLMs of similar sizes by a large margin on various vision-language tasks, including VQAv2 (+4.9{\%}), NLVR2 (+5.6{\%}), ITR (R@1 on TR +17.2{\%}, on IR + 15.6{\%} ) and COCO caption generation (CIDEr +6.5), demonstrating a large potential on training lightweight VLMs.",
}

Pre-trained vision-language models (VLMs) have achieved impressive results in a range of vision-language tasks. However, popular VLMs usually consist of hundreds of millions of parameters which brings challenges for fine-tuning and deployment in real-world applications due to space, memory, and latency constraints. In this work, we introduce a distilling then pruning framework to compress large vision-language models into smaller, faster, and more accurate ones. We first shrink the size ofa pre-trained large VLM and apply knowledge distillation in the vision-language pre-training stage to obtain a task-agnostic compact VLM. Then we propose a modal-adaptive pruning algorithm to automatically infer the importance of vision and language modalities for different downstream tasks and adaptively remove redundant structures and neurons in different encoders with controllable target sparsity. We apply our framework to train EfficientVLM, a fast and accurate vision-language model consisting of 6 vision layers, 3 text layers, and 3 cross-modal fusion layers, accounting for only 93 million parameters in total, which is 44.3{\%} of the teacher model. EfficientVLM retains 98.4{\%} performance of the teacher model and accelerates its inference speed by 2.2{\mbox{$\times$}}. EfficientVLM achieves a large absolute improvement over previous SoTA efficient VLMs of similar sizes by a large margin on various vision-language tasks, including VQAv2 (+4.9{\%}), NLVR2 (+5.6{\%}), ITR (R@1 on TR +17.2{\%}, on IR + 15.6{\%} ) and COCO caption generation (CIDEr +6.5), demonstrating a large potential on training lightweight VLMs.
Wang, Tiannan Zhou, Wangchunshu Zeng, Yan Zhang, Xinsong
EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning