Distilled Dual-Encoder Model for Vision-Language Understanding

Zekun Wang, Wenhui Wang, Haichao Zhu, Ming Liu, Bing Qin +1 more
12/16/2021
cs.CLcs.CV

Official code: kugwzk/DiDE (31 stars, last commit 2023-05-01).

Abstract

We propose a cross-modal attention distillation framework to train a dual-encoder model for vision-language understanding tasks, such as visual reasoning and visual question answering. Dual-encoder models have a faster inference speed than fusion-encoder models and enable the pre-computation of images and text during inference. However, the shallow interaction module used in dual-encoder models is insufficient to handle complex vision-language understanding tasks. In order to learn deep interactions of images and text, we introduce cross-modal attention distillation, which uses the image-to-text and text-to-image attention distributions of a fusion-encoder model to guide the training of our dual-encoder model. In addition, we show that applying the cross-modal attention distillation for both pre-training and fine-tuning stages achieves further improvements. Experimental results demonstrate that the distilled dual-encoder model achieves competitive performance for visual reasoning, visual entailment and visual question answering tasks while enjoying a much faster inference speed than fusion-encoder models. Our code and models will be publicly available at https://github.com/kugwzk/Distilled-DualEncoder.

View on arXivView PDF

Code Implementations(1)

kugwzk/DiDEOfficial100%

Code for EMNLP 2022 paper “Distilled Dual-Encoder Model for Vision-Language Understanding”

311PythonDec 15, 20213 years ago

Similar Papers

Cite this paper

@article{wang2021distilled,
  title  = {Distilled Dual-Encoder Model for Vision-Language Understanding},
  author = {Zekun Wang and Wenhui Wang and Haichao Zhu and Ming Liu and Bing Qin and Furu Wei},
  year   = {2021},
  eprint = {2112.08723},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08723}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.08723.svg)](https://codeofpaper.com/paper/2112.08723)

Discussion