mishig HF Staff commited on
Commit
6d7a3d0
·
verified ·
1 Parent(s): 5674715

Add 1 files

Browse files
Files changed (1) hide show
  1. 2205/2205.12005.md +328 -0
2205/2205.12005.md ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Title: mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections
2
+
3
+ URL Source: https://arxiv.org/html/2205.12005
4
+
5
+ Markdown Content:
6
+ \useunder
7
+ \ul
8
+
9
+ Chenliang Li, Haiyang Xu*{}^{*}start_FLOATSUPERSCRIPT * end_FLOATSUPERSCRIPT, Junfeng Tian, Wei Wang, Ming Yan, Bin Bi††{}^{\dagger}start_FLOATSUPERSCRIPT † end_FLOATSUPERSCRIPT, Jiabo Ye, Hehong Chen,
10
+
11
+ Guohai Xu, Zheng Cao, Ji Zhang, Songfang Huang, Fei Huang, Jingren Zhou, Luo Si
12
+
13
+ DAMO Academy, Alibaba Group
14
+
15
+ {lcl193798, shuofeng.xhy, tjf141457, hebian.ww, ym119608, b.bi, yejiabo.yjb, hehong.chh,
16
+
17
+ guohai.xgh, zhengzhi.cz, zj122146, songfang.hsf, f.huang, jingren.zhou, luo.si}@alibaba-inc.com
18
+
19
+ ###### Abstract
20
+
21
+ Large-scale pretrained foundation models have been an emerging paradigm for building artificial intelligence (AI) systems, which can be quickly adapted to a wide range of downstream tasks. This paper presents mPLUG, a new vision-language foundation model for both cross-modal understanding and generation. Most existing pre-trained models suffer from the problems of low computational efficiency and information asymmetry brought by the long visual sequence in cross-modal alignment. To address these problems, mPLUG introduces an effective and efficient vision-language architecture with novel cross-modal skip-connections, which creates inter-layer shortcuts that skip a certain number of layers for time-consuming full self-attention on the vision side.
22
+
23
+ mPLUG is pre-trained end-to-end on large-scale image-text pairs with both discriminative and generative objectives. It achieves state-of-the-art results on a wide range of vision-language downstream tasks, such as image captioning, image-text retrieval, visual grounding and visual question answering. mPLUG also demonstrates strong zero-shot transferability when directly transferred to multiple video-language tasks.
24
+
25
+ 1 Introduction
26
+ --------------
27
+
28
+ Large-scale pre-training of vision-language models have recently received tremendous success on a wide range of cross-modal tasks[[1](https://arxiv.org/html/2205.12005#bib.bib1), [2](https://arxiv.org/html/2205.12005#bib.bib2), [3](https://arxiv.org/html/2205.12005#bib.bib3), [4](https://arxiv.org/html/2205.12005#bib.bib4), [5](https://arxiv.org/html/2205.12005#bib.bib5), [6](https://arxiv.org/html/2205.12005#bib.bib6), [7](https://arxiv.org/html/2205.12005#bib.bib7)]. Such vision-language models learn cross-modal representations from a quantity of image-text pairs by aligning the visual and linguistic modalities. A great challenge of learning vision-language models is to find a good alignment between the two modalities to close the semantic gap in-between.
29
+
30
+ ![Image 1: Refer to caption](https://arxiv.org/html/extracted/2205.12005v2/figures/mplug_figure1.png)
31
+
32
+ Figure 1: Illustration of two conventional cross-modal fusion networks and our proposed cross-modal skip-connected network. We compare the running time and performance of different fusion networks, where the total fusion layers, image encoder and text encoder are all kept the same. The running time is the total forward time of 100 samples in different fusion networks.
33
+
34
+ To discover a cross-modal alignment, prior studies[[4](https://arxiv.org/html/2205.12005#bib.bib4), [8](https://arxiv.org/html/2205.12005#bib.bib8), [9](https://arxiv.org/html/2205.12005#bib.bib9)] employ a pre-trained object detector to extract salient regions from images, which are then aligned with language counterparts. Such an architecture, however, is generally limited by the power of the object detector, the pre-defined visual semantics it can represent, and the quantity of annotations available. Besides, it is also computationally expensive to extract region-based visual features from high-resolution (e.g. 600×\times×1000) images. More recent work[[3](https://arxiv.org/html/2205.12005#bib.bib3), [7](https://arxiv.org/html/2205.12005#bib.bib7), [6](https://arxiv.org/html/2205.12005#bib.bib6), [10](https://arxiv.org/html/2205.12005#bib.bib10), [11](https://arxiv.org/html/2205.12005#bib.bib11)], which scales and performs better on many vision-language tasks, drops the requirement of pre-trained object detection and enables a direct alignment between the image and text representations in an end-to-end manner. These models extract finer-grained visual representation with a long sequence of image patches or grids for good vision understanding[[11](https://arxiv.org/html/2205.12005#bib.bib11)]. However, there exist two significant problems in modeling long visual sequences: 1) efficiency: full self-attention on long visual sequences requires much more computation than that on textual sequences, and 2) information asymmetry: the caption text in widely-used image-text pre-training data is usually short and highly abstract while more detailed and diverse information can be extracted from the image. This asymmetry presents challenges for effective multi-modal fusion between the modalities.
35
+
36
+ One straightforward way of multi-modal fusion is the connected-attention network as shown in Figure[1](https://arxiv.org/html/2205.12005#S1.F1 "Figure 1 ‣ 1 Introduction ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") (a). It adopts a single Transformer[[12](https://arxiv.org/html/2205.12005#bib.bib12)] network for early fusion of vision and language by simply taking the concatenation of visual and linguistic features as input[[13](https://arxiv.org/html/2205.12005#bib.bib13)]. This paradigm allows self-attention to discover alignments between the modalities from the bottom level, and requires full self-attention on the concatenation of cross-modal sequences, which is rather time-consuming. Besides, this type of methods process information from both modalities equally, which may suffer from the information asymmetry especially when there is a big difference in information density or sequence lengths between the modalities.
37
+
38
+ Another line of work keeps separate Transformer networks for both textual and visual features, and uses techniques such as cross-attention to enable cross-modal interaction[[11](https://arxiv.org/html/2205.12005#bib.bib11)], as shown in Figure[1](https://arxiv.org/html/2205.12005#S1.F1 "Figure 1 ‣ 1 Introduction ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") (b). This architecture design conducts multi-modal fusion on both modalities independently, which can help alleviate the information asymmetry problem. However, it still suffers from computation inefficiency for full self-attention on long visual sequences, and it is not that parameter-efficient with two separate Transformer networks.
39
+
40
+ In this work, we propose mPLUG, a unified Multi-modal Pre-training framework for both vision-Language Understanding and Generation. mPLUG performs effective and efficient vision-language learning with novel cross-modal skip-connections to address the fundamental information asymmetry problem. Instead of fusing visual and linguistic representations at the same levels, the cross-modal skip-connections enables the fusion to occur at disparate levels in the abstraction hierarchy across the modalities. It creates inter-layer shortcuts that skip a certain number of layers for visual representations to reflect the semantic richness of language compared to vision. As shown in Figure[1](https://arxiv.org/html/2205.12005#S1.F1 "Figure 1 ‣ 1 Introduction ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") (c), in each block of our cross-modal skip-connected network, mPLUG first adopts an asymmetric co-attention architecture at the first few layers for efficiency, by removing the co-attention on vision side. It is then followed by one layer of connected-attention, by concatenating the original visual representation and the co-attention output on the language side as input. In addition to the modeling efficacy due to the asymmetry, the cross-modal skip-connections ease the model training by alleviating vanishing gradients with the inserted shortcuts. Figure[1](https://arxiv.org/html/2205.12005#S1.F1 "Figure 1 ‣ 1 Introduction ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows that the new cross-modal skip-connected network achieves superior performance with at least four times speeding-up than other cross-modal fusion networks.
41
+
42
+ Our key contributions can be summarized as follows:
43
+
44
+ * •
45
+ We propose a unified vision-language pretrained model mPLUG of cross-modal understanding and generation for both effectiveness and efficiency in cross-modal learning.
46
+
47
+ * •
48
+ We introduce a new asymmetric vision-language architecture with novel cross-modal skip-connections, to address two fundamental problems of information asymmetry and computation inefficiency in multi-modal fusion.
49
+
50
+ * •
51
+ mPLUG achieves state-of-the-art performance on a wide range of vision-language tasks, including image captioning, image-text retrieval, visual grounding and visual question answering. mPLUG also demonstrates strong zero-shot transferability when directly transferred to a wide range of vision-language and video-language tasks.
52
+
53
+ 2 Related Work
54
+ --------------
55
+
56
+ ### 2.1 Vision-Language Pre-training
57
+
58
+ Vision-Language pre-training (VLP) has recently received tremendous success and achieved state-of-the-art results across a variety of vision-language tasks[[14](https://arxiv.org/html/2205.12005#bib.bib14), [15](https://arxiv.org/html/2205.12005#bib.bib15), [16](https://arxiv.org/html/2205.12005#bib.bib16)]. In terms of how information from different modalities are aggregated, typical approaches to VLP[[1](https://arxiv.org/html/2205.12005#bib.bib1), [2](https://arxiv.org/html/2205.12005#bib.bib2), [3](https://arxiv.org/html/2205.12005#bib.bib3), [5](https://arxiv.org/html/2205.12005#bib.bib5), [6](https://arxiv.org/html/2205.12005#bib.bib6), [17](https://arxiv.org/html/2205.12005#bib.bib17), [18](https://arxiv.org/html/2205.12005#bib.bib18)] can be roughly divided into two categories: dual encoder and fusion encoder. Dual encoder approach utilizes two single-modal encoders to encode images and text separately, and then uses simple functions such as dot product to model the instance-level cross-modal interaction between image and text. The advantage of dual encoder models like CLIP[[17](https://arxiv.org/html/2205.12005#bib.bib17)] and ALIGN[[18](https://arxiv.org/html/2205.12005#bib.bib18)] is that images and text can be pre-computed and cached, which is quite computation-efficient and more appropriate for retrieval tasks. However, they tend to fail in handling more complicated VL understanding tasks that require complex reasoning, such as visual question answering[[14](https://arxiv.org/html/2205.12005#bib.bib14)]. In contrast, fusion encoder approach uses deep fusion functions such as multi-layer self-attention and cross-attention networks to model the fine-grained cross-modal interaction between image and text sequences. Representative methods of this category include the single-stream architecture such as UNITER[[2](https://arxiv.org/html/2205.12005#bib.bib2)] and OSCAR[[4](https://arxiv.org/html/2205.12005#bib.bib4)], and two-stream architecture such as LXMERT[[1](https://arxiv.org/html/2205.12005#bib.bib1)], ALBEF[[6](https://arxiv.org/html/2205.12005#bib.bib6)] and ERNIE-ViL[[5](https://arxiv.org/html/2205.12005#bib.bib5)]. This kind of methods can better capture the underlying association between image and text for vision-language understanding tasks, while it needs to jointly encode all possible image-text pairs, which leads to a relatively slow inference speed.
59
+
60
+ To improve the inference speed, some recent work such as Pixel-BERT[[3](https://arxiv.org/html/2205.12005#bib.bib3)], E2E-VLP [[19](https://arxiv.org/html/2205.12005#bib.bib19)] and ViLT[[10](https://arxiv.org/html/2205.12005#bib.bib10)] removes the complicated object detector in feature extraction, and conducts end-to-end VL learning with CNN-based grid features and linearly projected patched embeddings, respectively. To combine the benefits of both categories of architectures, VLMo[[20](https://arxiv.org/html/2205.12005#bib.bib20)] further unifies the dual encoder and fusion encoder modules with shared mixture-of-modality-experts Transformer. In this work, mPLUG introduces a new cross-modal fusion mechanism with cross-modal skip-connections, to enables the fusion to occur at disparate levels in the abstraction hierarchy across the modalities. It achieves superior performances in effectiveness and efficiency across a wide range of VL tasks.
61
+
62
+ ### 2.2 Skip-connection
63
+
64
+ Skip-connection is a popular technique to bypass the gradient exploding or vanishing problem for model optimization in deep neural networks, which is widely-used in CV and NLP architectures such as ResNet[[21](https://arxiv.org/html/2205.12005#bib.bib21)] and Transformer[[12](https://arxiv.org/html/2205.12005#bib.bib12)]. A variety of skip connection methods have been proposed in recent years[[22](https://arxiv.org/html/2205.12005#bib.bib22), [21](https://arxiv.org/html/2205.12005#bib.bib21), [12](https://arxiv.org/html/2205.12005#bib.bib12), [23](https://arxiv.org/html/2205.12005#bib.bib23), [24](https://arxiv.org/html/2205.12005#bib.bib24), [25](https://arxiv.org/html/2205.12005#bib.bib25)]. ResNet[[21](https://arxiv.org/html/2205.12005#bib.bib21)] introduces summed shortcut connections between different layers using simple identity mapping, while highway network[[22](https://arxiv.org/html/2205.12005#bib.bib22)] designs a transform gating function to control the balance of the input and the transformed input. DenseNet[[23](https://arxiv.org/html/2205.12005#bib.bib23)] designs new architectures with concatenated skip-connections, allowing the subsequent layers to re-use all the middle representations of previous layers. Layer Normalization and recursive skip connection are further used in combination with plain skip connection for further stablizing model optimization and better incorporating the transformed input[[12](https://arxiv.org/html/2205.12005#bib.bib12), [25](https://arxiv.org/html/2205.12005#bib.bib25)]. In this work, mPLUG proposes a new cross-modal skip connection method to address cross-modal fusion problem, and combines the concatenated skip-connection and summed skip-connection for choosing whether to attend to all the concatenated representations of different modalities or just focus on the cross-modal interaction part at each layer.
65
+
66
+ ![Image 2: Refer to caption](https://arxiv.org/html/x1.png)
67
+
68
+ (a)
69
+
70
+ ![Image 3: Refer to caption](https://arxiv.org/html/x2.png)
71
+
72
+ (b)
73
+
74
+ Figure 2: The model architecture and objectives of mPLUG, which consists of two unimodal encoders for images and text separately, a cross-modal skip-connected network and a decoder for text generation. An image-text contrastive loss is first applied to align the unimodal representations from the visual encoder and text encoder. Then, we use a novel cross-modal skip-connected network to fuse the visual and linguistic representations effectively and efficiently. We adopt connected cross-modal fusion to every S 𝑆 S italic_S asymmetric co-attention layers, where S 𝑆 S italic_S is a fixed stride value. Based on the connected representation of the image and prefix sub-sequence, the decoder is trained with a prefix language modeling (Prefix LM) loss by generating the remaining caption.
75
+
76
+ 3 mPLUG
77
+ -------
78
+
79
+ In this section, we will first introduce our new model architecture with the key module of the cross-modal skip-connected network, and then give the details of the pre-training objectives and scalable training infrastructure.
80
+
81
+ ### 3.1 Model Architecture
82
+
83
+ As shown in Figure [2](https://arxiv.org/html/2205.12005#S2.F2 "Figure 2 ‣ 2.2 Skip-connection ‣ 2 Related Work ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), mPLUG consists of two unimodal encoders for image and text independently, a cross-modal skip-connected network and a decoder for text generation. To better model the inherent modality bias information, we first use two unimodal encoders to encode image and text separately. Following [[11](https://arxiv.org/html/2205.12005#bib.bib11), [26](https://arxiv.org/html/2205.12005#bib.bib26)], we use a visual transformer[[27](https://arxiv.org/html/2205.12005#bib.bib27)] directly on the image patches as the visual encoder, which is more computation-friendly than using pre-trained object detectors for visual feature extraction[[8](https://arxiv.org/html/2205.12005#bib.bib8), [9](https://arxiv.org/html/2205.12005#bib.bib9)]. The visual encoder divides an input image into patches and encodes them as a sequence of embeddings {v c⁢l⁢s,v 1,v 2,…,v M}subscript 𝑣 𝑐 𝑙 𝑠 subscript 𝑣 1 subscript 𝑣 2…subscript 𝑣 𝑀\{v_{cls},v_{1},v_{2},...,v_{M}\}{ italic_v start_POSTSUBSCRIPT italic_c italic_l italic_s end_POSTSUBSCRIPT , italic_v start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_v start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_v start_POSTSUBSCRIPT italic_M end_POSTSUBSCRIPT } with an additional [C⁢L⁢S]delimited-[]𝐶 𝐿 𝑆[CLS][ italic_C italic_L italic_S ] token. The input text is fed to the text encoder and represented as a sequence of embeddings {l c⁢l⁢s,l 1,l 2,…,l N}subscript 𝑙 𝑐 𝑙 𝑠 subscript 𝑙 1 subscript 𝑙 2…subscript 𝑙 𝑁\{l_{cls},l_{1},l_{2},...,l_{N}\}{ italic_l start_POSTSUBSCRIPT italic_c italic_l italic_s end_POSTSUBSCRIPT , italic_l start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_l start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_l start_POSTSUBSCRIPT italic_N end_POSTSUBSCRIPT }, where l c⁢l⁢s subscript 𝑙 𝑐 𝑙 𝑠 l_{cls}italic_l start_POSTSUBSCRIPT italic_c italic_l italic_s end_POSTSUBSCRIPT is the embedding of the [C⁢L⁢S]delimited-[]𝐶 𝐿 𝑆[CLS][ italic_C italic_L italic_S ] token and used to summarize the input text. Then, the visual and linguistic representations are fed into a cross-modal skip-connected network, which consists of multiple skip-connected fusion blocks. In each skip-connected fusion block, we adopt connected cross-modal fusion to each of S 𝑆 S italic_S asymmetric co-attention layers where S 𝑆 S italic_S is a fixed stride value. The aim of this network is to take advantage of the effectiveness of the connected cross-modal fusion and the efficiency of the asymmetric co-attention for enhanced cross-modal fusion in a recursive manner. Finally, the output cross-modal representations are fed into a transformer decoder for sequence to sequence learning, which equips mPLUG with both understanding and generation capabilities.
84
+
85
+ ### 3.2 Cross-modal Skip-connected Network
86
+
87
+ The cross-modal skip-connected network consists of N 𝑁 N italic_N skip-connected fusion blocks. In each skip-connected fusion block, we adopt connected-attention layer to each of S 𝑆 S italic_S asymmetric co-attention layers where S 𝑆 S italic_S is a fixed stride value. We first pass the text feature and image feature from unimodal encoders through the S 𝑆 S italic_S asymmetric co-attention layers, and then connect the output text feature and image feature to one connected-attention layer. We repeat the skip-connected fusion block N 𝑁 N italic_N times for the final connected image and text representation.
88
+
89
+ Specifically, the asymmetric co-attention is composed of the self-attention (SA) layer, cross-attention (CA) layer and the feed-forward network (FFN). The input text feature l n−1 superscript 𝑙 𝑛 1 l^{n-1}italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT is first fed to the self-attention layer, and then the visual feature v n−1 superscript 𝑣 𝑛 1 v^{n-1}italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT is injected into the text feature l S⁢A n subscript superscript 𝑙 𝑛 𝑆 𝐴 l^{n}_{SA}italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT by the cross-attention layer which gives l C⁢A n subscript superscript 𝑙 𝑛 𝐶 𝐴 l^{n}_{CA}italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_C italic_A end_POSTSUBSCRIPT. The output of self-attention l S⁢A n subscript superscript 𝑙 𝑛 𝑆 𝐴 l^{n}_{SA}italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT and cross-attention l S⁢A n subscript superscript 𝑙 𝑛 𝑆 𝐴 l^{n}_{SA}italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT are added up and fed to the FFN layer for the visual-aware text representation l n superscript 𝑙 𝑛 l^{n}italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT:
90
+
91
+ l S⁢A n=L⁢N⁢(S⁢A⁢(l n−1)+l n−1)subscript superscript 𝑙 𝑛 𝑆 𝐴 𝐿 𝑁 𝑆 𝐴 superscript 𝑙 𝑛 1 superscript 𝑙 𝑛 1 l^{n}_{SA}=LN(SA(l^{n-1})+l^{n-1})italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT = italic_L italic_N ( italic_S italic_A ( italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ) + italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT )(1)
92
+
93
+ l C⁢A n=L⁢N⁢(C⁢A⁢(l S⁢A n,v n−1)+l S⁢A n)subscript superscript 𝑙 𝑛 𝐶 𝐴 𝐿 𝑁 𝐶 𝐴 subscript superscript 𝑙 𝑛 𝑆 𝐴 superscript 𝑣 𝑛 1 subscript superscript 𝑙 𝑛 𝑆 𝐴 l^{n}_{CA}=LN(CA(l^{n}_{SA},v^{n-1})+l^{n}_{SA})italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_C italic_A end_POSTSUBSCRIPT = italic_L italic_N ( italic_C italic_A ( italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT , italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ) + italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT )(2)
94
+
95
+ l n=L⁢N⁢(F⁢F⁢N⁢(l C⁢A n)+l C⁢A n)superscript 𝑙 𝑛 𝐿 𝑁 𝐹 𝐹 𝑁 subscript superscript 𝑙 𝑛 𝐶 𝐴 subscript superscript 𝑙 𝑛 𝐶 𝐴 l^{n}=LN(FFN(l^{n}_{CA})+l^{n}_{CA})italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT = italic_L italic_N ( italic_F italic_F italic_N ( italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_C italic_A end_POSTSUBSCRIPT ) + italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_C italic_A end_POSTSUBSCRIPT )(3)
96
+
97
+ where LN is short for layer normalization.
98
+
99
+ The connected-attention layer is composed of the self-attention (SA) layer and the feed-forward network (FFN). We connect the image feature v n−1 superscript 𝑣 𝑛 1 v^{n-1}italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT and input text feature l n−1 superscript 𝑙 𝑛 1 l^{n-1}italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT, where l n−1 superscript 𝑙 𝑛 1 l^{n-1}italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT is the output of S 𝑆 S italic_S asymmetric co-attention layers. The connected image and text feature [v n−1;l n−1]superscript 𝑣 𝑛 1 superscript 𝑙 𝑛 1[v^{n-1};l^{n-1}][ italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ] are fed to the self-attention layer and FFN layer:
100
+
101
+ [v S⁢A n;l S⁢A n]=L⁢N⁢(S⁢A⁢([v n−1;l n−1])+[v n−1;l n−1])subscript superscript 𝑣 𝑛 𝑆 𝐴 subscript superscript 𝑙 𝑛 𝑆 𝐴 𝐿 𝑁 𝑆 𝐴 superscript 𝑣 𝑛 1 superscript 𝑙 𝑛 1 superscript 𝑣 𝑛 1 superscript 𝑙 𝑛 1[v^{n}_{SA};l^{n}_{SA}]=LN(SA([v^{n-1};l^{n-1}])+[v^{n-1};l^{n-1}])[ italic_v start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ] = italic_L italic_N ( italic_S italic_A ( [ italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ] ) + [ italic_v start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ] )(4)
102
+
103
+ [v n;l n]=L⁢N⁢(F⁢F⁢N⁢([v S⁢A n;l S⁢A n])+[v S⁢A n;l S⁢A n])superscript 𝑣 𝑛 superscript 𝑙 𝑛 𝐿 𝑁 𝐹 𝐹 𝑁 subscript superscript 𝑣 𝑛 𝑆 𝐴 subscript superscript 𝑙 𝑛 𝑆 𝐴 subscript superscript 𝑣 𝑛 𝑆 𝐴 subscript superscript 𝑙 𝑛 𝑆 𝐴[v^{n};l^{n}]=LN(FFN([v^{n}_{SA};l^{n}_{SA}])+[v^{n}_{SA};l^{n}_{SA}])[ italic_v start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ] = italic_L italic_N ( italic_F italic_F italic_N ( [ italic_v start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ] ) + [ italic_v start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_S italic_A end_POSTSUBSCRIPT ] )(5)
104
+
105
+ Then [v n;l n]superscript 𝑣 𝑛 superscript 𝑙 𝑛[v^{n};l^{n}][ italic_v start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ; italic_l start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ] is fed into the next cross-modal skip-connected network repeatedly to get the final connected image and text representation. Finally, the connected output is fed into a Transformer decoder for sequence to sequence learning.
106
+
107
+ ### 3.3 Pre-training Tasks
108
+
109
+ We perform four pre-training tasks including three understanding tasks (Image-Text Contrastive Learning, Image-Text Matching, Masked Language Modeling) and one generation task (Prefix Language Modeling). These pre-training tasks are optimized jointly.
110
+
111
+ Image-Text Contrastive (ITC): Following [[6](https://arxiv.org/html/2205.12005#bib.bib6)], we employ the task to align the image features and the text features from the unimodal encoders. Specifically, we calculate the softmax-normalized image-to-text and text-to-image similarity, and take two dynamic memory queues (text, image) to increase the number of negative examples as MoCo [[28](https://arxiv.org/html/2205.12005#bib.bib28)].
112
+
113
+ Image-Text Matching (ITM): This task aims to predict whether an image and a sentence match with each other on the cross-modal representation. We also select hard negative image-text pairs based on the contrastive text-image similarity as [[6](https://arxiv.org/html/2205.12005#bib.bib6)].
114
+
115
+ Masked Language Modeling (MLM): The task setup is basically the same as in BERT[[29](https://arxiv.org/html/2205.12005#bib.bib29)], where we randomly mask 15%percent 15 15\%15 % of tokens in text and the model is asked to predict these masked words with the cross-modal representations.
116
+
117
+ Prefix Language Modeling (PrefixLM): This task aims to generate the caption given an image and predict the text segment subsequent to the cross-modal context as [[30](https://arxiv.org/html/2205.12005#bib.bib30)]. It optimizes a cross entropy loss by maximizing the likelihood of text in an autoregressive manner.
118
+
119
+ 4 Distributed Learning on a Large Scale
120
+ ---------------------------------------
121
+
122
+ Training a big model like mPLUG on large-scale datasets faces many efficiency challenges. We increase the throughput from the perspective of reducing memory usage and computation time, thereby accelerating the training of the model.
123
+
124
+ The memory usage during model training is mainly composed of two aspects: the static memory usage composed of parameters/optimizer states/gradients, etc., and the runtime memory usage caused by intermediate variables like activation values. For static memory overhead, we use the ZeRO[[31](https://arxiv.org/html/2205.12005#bib.bib31)] technique to partition parameters/optimizer states/gradients into the entire data-parallel group, so that the static memory overhead of a single GPU can be approximately reduced to 1/N 1 𝑁 1/N 1 / italic_N, where N 𝑁 N italic_N denotes the number of GPU cards. We use gradient checkpointing[[32](https://arxiv.org/html/2205.12005#bib.bib32)] for the runtime memory cost, which greatly reduces the runtime memory usage at the expense of increasing forward time by recomputing part of the activation values during backward pass without keeping them in memory.
125
+
126
+ To reduce the computation time, we use BF16 precision training. BF16 is a new data type supported by NVIDIA’s new Ampere architecture GPU like A100. Compared with the previously widely used mixed-precision training of FP16 and FP32, BF16 has the same representation range as FP32, thereby reducing the risk of numerical overflow and ensuring model convergence stability, and at the same time has the same fast computing speed as FP16.
127
+
128
+ 5 Experiments
129
+ -------------
130
+
131
+ ### 5.1 Data & Setup
132
+
133
+ Table 1: Evaluation Results on COCO Caption ”Karpathy” test split and NoCaps validation set. B@4: BLEU@4, M: METEOR, C: CIDEr, S: SPICE.
134
+
135
+ Following the previous work [[6](https://arxiv.org/html/2205.12005#bib.bib6)], we use the same pre-training dataset with 14M images with texts, which includes two in-domain datasets (MS COCO [[36](https://arxiv.org/html/2205.12005#bib.bib36)] and Visual Genome [[37](https://arxiv.org/html/2205.12005#bib.bib37)]), and three web out-domain datasets (Conceptual Captions [[38](https://arxiv.org/html/2205.12005#bib.bib38)], Conceptual 12M [[39](https://arxiv.org/html/2205.12005#bib.bib39)], SBU Captions [[40](https://arxiv.org/html/2205.12005#bib.bib40)].
136
+
137
+ We pretrain the model for 30 epochs with the total batch size of 1024 on 16 NVIDIA A100 GPUs. We use a 6-layer Transformer for both the text encoder and the cross-modal skip-connected network, and a 12-layer Transformer for the decoder. The text encoder is initialized using the first 6 layers of the BERT b⁢a⁢s⁢e 𝑏 𝑎 𝑠 𝑒{}_{base}start_FLOATSUBSCRIPT italic_b italic_a italic_s italic_e end_FLOATSUBSCRIPT[[29](https://arxiv.org/html/2205.12005#bib.bib29)] model and the skip-connected network is initialized using the last 6 layers of the BERT b⁢a⁢s⁢e 𝑏 𝑎 𝑠 𝑒{}_{base}start_FLOATSUBSCRIPT italic_b italic_a italic_s italic_e end_FLOATSUBSCRIPT. We initialize the visual encoder by CLIP-ViT [[17](https://arxiv.org/html/2205.12005#bib.bib17)] pretrained on 400M noisy image-text pairs. The visual transformer with ViT-B/16 is used as our base architecture, the one with ViT-L/14 as the large architecture. We use the AdamW [[41](https://arxiv.org/html/2205.12005#bib.bib41)] optimizer with a weight decay of 0.02. The learning rate is warmed-up to 1e-5 (ViT-B/16) and 1e-4 (BERT b⁢a⁢s⁢e 𝑏 𝑎 𝑠 𝑒{}_{base}start_FLOATSUBSCRIPT italic_b italic_a italic_s italic_e end_FLOATSUBSCRIPT) for mPLUGViT-B , and 5e-6 (ViT-L/14) and 5e-5 (BERT b⁢a⁢s⁢e 𝑏 𝑎 𝑠 𝑒{}_{base}start_FLOATSUBSCRIPT italic_b italic_a italic_s italic_e end_FLOATSUBSCRIPT) for mPLUGViT-L in the first 1000 iterations, and decayed to 1e-6 following a cosine schedule. During pre-training, we take random image crops of resolution 256 ×\times× 256 (ViT-B/16)/224 ×\times× 224 (ViT-L/14) as input, and also apply RandAugment [[42](https://arxiv.org/html/2205.12005#bib.bib42)] to improve the generalization of vision encoders. For VQA and image captioning tasks, we do an additional continue pre-training on 4M image-text pairs. We increase the image resolution during finetuning. For image-text contrastive learning, the queue size is set as 65,536 and the momentum coefficient is set as 0.995.
138
+
139
+ ### 5.2 Evaluation on Vision-Language Tasks
140
+
141
+ We compare our pre-trained model against other VLP models on the six downstream V+L tasks. We introduce each task and our fine-tuning strategy below. Details of the datasets and fine-tuning hyperparameters are in Appendix.
142
+
143
+ Table 2: Evaluation Results on VQA test set.
144
+
145
+ #### 5.2.1 Visual Question Answering
146
+
147
+ The VQA task [[14](https://arxiv.org/html/2205.12005#bib.bib14)] requires the model to answer natural language questions given an image. Most methods[[1](https://arxiv.org/html/2205.12005#bib.bib1), [20](https://arxiv.org/html/2205.12005#bib.bib20), [4](https://arxiv.org/html/2205.12005#bib.bib4), [7](https://arxiv.org/html/2205.12005#bib.bib7)] deal with visual question answering tasks as multi-label classification on predefined answer sets. This strategy achieves strong performance, but it is not suitable for real-world open scenarios. We treat VQA as an answer generation task and directly use unconstrained open-vocab generation during inference, which is different from constrained close-vocab generation models [[6](https://arxiv.org/html/2205.12005#bib.bib6), [35](https://arxiv.org/html/2205.12005#bib.bib35)]. Following [[4](https://arxiv.org/html/2205.12005#bib.bib4), [35](https://arxiv.org/html/2205.12005#bib.bib35)], we concatenate the question with the object labels and OCR tokens extracted from image. As shown in Table [2](https://arxiv.org/html/2205.12005#S5.T2 "Table 2 ‣ 5.2 Evaluation on Vision-Language Tasks ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), mPLUG achieves 81.27 on Test-std split and outperforms the SOTA models including SimVLM and Florence, which use 100 X 𝑋 X italic_X and 60 X 𝑋 X italic_X more pre-training image-text pairs, respectively. Based on the same 4M pre-training data, mPLUG outperforms CLIP-ViL and METER, which also use CLIP[[17](https://arxiv.org/html/2205.12005#bib.bib17)] as the visual encoder. Besides, under the same settings, mPLUG always significantly outperforms ALBEF and BLIP which only rely on co-attention from images to text for cross-modal fusion. The gain can derive from the network design of cross-modal skip-connections specifically for information asymmetry of the two modalities. Neither ALBEF nor BLIP addresses this problem well, with bias towards the language modality.
148
+
149
+ Table 3: Image-text retrieval results on Flickr30K and COCO datasets.
150
+
151
+ #### 5.2.2 Image Captioning
152
+
153
+ The image captioning task requires a model to generate an appropriate and fluent caption for a given image. We evaluate image captioning on two datasets COCO Caption[[47](https://arxiv.org/html/2205.12005#bib.bib47)] and NoCaps[[48](https://arxiv.org/html/2205.12005#bib.bib48)]. mPLUG finetuned with training data of COCO Caption is tested on both of the datasets. We train mPLUG on the MS COCO Caption and test on the same Karpathy split[[4](https://arxiv.org/html/2205.12005#bib.bib4), [7](https://arxiv.org/html/2205.12005#bib.bib7)] and NoCaps validation set. Following[[4](https://arxiv.org/html/2205.12005#bib.bib4), [35](https://arxiv.org/html/2205.12005#bib.bib35)], we first fine-tune mPLUG with cross-entropy loss and then with CIDEr optimization[[49](https://arxiv.org/html/2205.12005#bib.bib49)] for extra 5 epochs. As shown in Table[1](https://arxiv.org/html/2205.12005#S5.T1 "Table 1 ‣ 5.1 Data & Setup ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), mPLUG with only 14M pre-training images can outperform the SOTA models including LEMON and SimVLM on both COCO Caption and Nocaps datasets, which uses more than 10 X 𝑋 X italic_X and 100 X 𝑋 X italic_X pre-training data, respectively. For the COCO Caption, mPLUG performs the best on CIDEr evaluation and surpasses the SOTA model by a large margin of 5.5 on Karpathy test set. We use the best checkpoint on COCO Caption and predict on the Nocaps validation set directly.
154
+
155
+ Table 4: Visual grounding results (Acc@0.5) on ReferCOCO, ReferCOCO+, and ReferCOCOg.
156
+
157
+ #### 5.2.3 Image-Text Retrieval
158
+
159
+ We conduct experiments for both image-to-text retrieval (TR) and text-to-image retrieval (IR) on COCO [[36](https://arxiv.org/html/2205.12005#bib.bib36)] and Flickr30K [[53](https://arxiv.org/html/2205.12005#bib.bib53)] datasets. Following [[6](https://arxiv.org/html/2205.12005#bib.bib6), [34](https://arxiv.org/html/2205.12005#bib.bib34)], we jointly optimize the ITC loss and the ITM loss during fine-tuning. During inference, we first select top-k candidates by computing the dot-product similarity between the image and text encoder features, and then rerank the selected candidates based on their ITM scores. We set k=256 𝑘 256 k=256 italic_k = 256 for COCO and k=128 𝑘 128 k=128 italic_k = 128 for Flickr30K. As shown in Table [3](https://arxiv.org/html/2205.12005#S5.T3 "Table 3 ‣ 5.2.1 Visual Question Answering ‣ 5.2 Evaluation on Vision-Language Tasks ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), mPLUG outperforms all existing methods on both datasets. Using 14M images, mPLUG achieves better performance than BLIP with 129M and Florence with 0.9B pre-training data. Using the same 14M pre-training images, mPLUG substantially outperforms the previous best model BLIP by +2.7% in TR recall@1 on COCO and +1.0 % in TR recall@1 on Flickr30K.
160
+
161
+ #### 5.2.4 Visual Grounding
162
+
163
+ Given a query in plain text and an image, visual grounding requires models to localize the referred object in the image. Instead of regressing the bounding boxes directly, we concatenate visual features and attended textual features and feed them into the decoder to predict the coordinates. Table [4](https://arxiv.org/html/2205.12005#S5.T4 "Table 4 ‣ 5.2.2 Image Captioning ‣ 5.2 Evaluation on Vision-Language Tasks ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows that mPLUG outperforms all the SOTA methods. We observe that in RefCOCO testB the images often contain arbitrary objects and in RecCOCOg test-u the expressions are longer than other datasets. Compared with the previous best model OFA, mPLUG achieves 3.16% absolute improvement on RefCOCO testB and 1.22% absolute improvement on RefCOCOg test-u. It demonstrates that mPLUG learns better multi-modal interaction from cross-modal skip-connections and is better at handling complex images and long queries.
164
+
165
+ #### 5.2.5 Visual Reasoning
166
+
167
+ We consider two datasets for visual reasoning: NLVR2[[54](https://arxiv.org/html/2205.12005#bib.bib54)] and SNLI-VE[[55](https://arxiv.org/html/2205.12005#bib.bib55)]. The NLVR2[[54](https://arxiv.org/html/2205.12005#bib.bib54)] task requires the model to predict whether a sentence describes a pair of images. Following [[34](https://arxiv.org/html/2205.12005#bib.bib34)], we use two cross-attention layers to process the two input images, and their outputs are merged and fed to the FFN. An MLP classifier is then applied on the output embedding of the language [CLS] token. The SNLI-VE[[55](https://arxiv.org/html/2205.12005#bib.bib55)] task requires the model to evaluate how the given image and text are semantically correlated, i.e., entailment, neutral, or contradiction. Following [[35](https://arxiv.org/html/2205.12005#bib.bib35)], the image premise, text premise and text hypothesis are fed to the encoder. While we remove the decoder, and only use the encoder modules for three-way classification, which can save nearly half of the total computation cost. We predict the class probabilities using the multimodal encoder’s output representation of the language [CLS] token. As shown in Table [5](https://arxiv.org/html/2205.12005#S5.T5 "Table 5 ‣ 5.2.5 Visual Reasoning ‣ 5.2 Evaluation on Vision-Language Tasks ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), mPLUG can obtain competitive performances to the SOTA models 1 1 1 The SOTA models such as OFA and VLMo both add large-scale text-only and image-only pre-training data for improving the reasoning ability. in both visual reasoning tasks, and even outperform SimVLM[[7](https://arxiv.org/html/2205.12005#bib.bib7)] and BLIP[[34](https://arxiv.org/html/2205.12005#bib.bib34)], which use far more pre-training data.
168
+
169
+ Table 5: Evaluation Results on NLVR2 and SNLI-VE.
170
+
171
+ ### 5.3 Effectiveness and Efficiency
172
+
173
+ To validate the effectiveness and efficiency of our proposed cross-modal skip-connected network, we conduct in-depth analysis on different stride values and various cross-modal fusion methods.
174
+
175
+ #### 5.3.1 Analysis of Stride for Skip
176
+
177
+ ![Image 4: Refer to caption](https://arxiv.org/html/extracted/2205.12005v2/figures/analysis_stride.png)
178
+
179
+ Figure 3: Results w.r.t different stride values in cross-modal skip-connected network on running time and performance of VQA test-dev and NLVR2 test-P, where the running time is the total forward time of 100 samples.
180
+
181
+ The stride _S_ is the key factor to control the effectiveness and efficiency tradeoff. Therefore, we further compare the running time and performance of different stride value _S_ in cross-modal skip-connected network on VQA and NLVR2 tasks. Specifically, we test four different stride values, which can be divisible by the total number of cross-modal fusion layers. The model is chosen as mPLUGViT-B and all the other experiment settings are kept the same. As shown in Figure[3](https://arxiv.org/html/2205.12005#S5.F3 "Figure 3 ‣ 5.3.1 Analysis of Stride for Skip ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), we can see that the larger _S_ is, the more efficient cross-modal fusion is, where the running time can be largely reduced from skipping the vision co-attention layers by 5 X 𝑋 X italic_X times from _S_=1 _S_ 1\emph{S}=1 S = 1 to _S_=6 _S_ 6\emph{S}=6 S = 6. The performances of mPLUG on both datasets gradually increases when _S_=3 _S_ 3\emph{S}=3 S = 3, and slightly decreases later on. Compared with _S_=3 _S_ 3\emph{S}=3 S = 3, mPLUG can achieve comparable performance at _S_=6 _S_ 6\emph{S}=6 S = 6, while speeding up by nearly 30%. Therefore, we set _S_=6 _S_ 6\emph{S}=6 S = 6 on mPLUGViT-L for faster pre-training.
182
+
183
+ #### 5.3.2 Analysis of Cross-modal Fusion
184
+
185
+ ![Image 5: Refer to caption](https://arxiv.org/html/extracted/2205.12005v2/figures/analysis_fusion.png)
186
+
187
+ Figure 4: Results w.r.t different cross-modal fusions on running time and performance on VQA test-dev and NLVR2 test-P, where the running time is the total forward time of 100 samples.
188
+
189
+ We compare the effectiveness and efficiency of different cross-modal fusion variants in terms of running time and performance on VQA and NLVR2 tasks. Specifically, we pre-train mPLUG with different cross-modal fusion network based on the same image encoder and text encoder. All the pre-training settings and the number of fusion layers are kept the same as in the original mPLUG pre-training. As shown in Figure[4](https://arxiv.org/html/2205.12005#S5.F4 "Figure 4 ‣ 5.3.2 Analysis of Cross-modal Fusion ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), the fusion methods of co-attention and connected-attention both requires much more running time due to long visual sequence. Compared with the two fusion methods, our proposed skip-connected network is 4 X 𝑋 X italic_X faster and obtain better performance on both datasets. We also compare it with the asymmetric co-attention used in BLIP [[6](https://arxiv.org/html/2205.12005#bib.bib6), [34](https://arxiv.org/html/2205.12005#bib.bib34)] which only relies on the co-attention layers from images to text. Despite running slightly faster than the skip-connected network does, the asymmetric co-attention performs worse in accuracy on both datasets. The performance degradation is attributed to the information asymmetry and bias towards language, as shown in Section[5.2.1](https://arxiv.org/html/2205.12005#S5.SS2.SSS1 "5.2.1 Visual Question Answering ‣ 5.2 Evaluation on Vision-Language Tasks ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections").
190
+
191
+ Table 6: Training Throughput
192
+
193
+ #### 5.3.3 Large-scale Training
194
+
195
+ Combining the techniques introduced in Section 4 has dramatically increased the training throughput. With the utilization of memory saving and accelerated training techniques, the throughput of mPLUG improves 3 X 𝑋 X italic_X more from 124 samples per second to 422 samples per second, as shown in Table [6](https://arxiv.org/html/2205.12005#S5.T6 "Table 6 ‣ 5.3.2 Analysis of Cross-modal Fusion ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections").
196
+
197
+ Table 7: Image captioning results on NoCaps validation split (zero-shot and finetuned), and {In, Near, Out} refer to in-domain, near-domain and out-of-domain respectively. ††\dagger† denotes the models finetuned on COCO Caption dataset.
198
+
199
+ Table 8: Zero-shot image-text retrieval results on Flickr30K. ††\dagger† denotes the models finetuned on COCO.
200
+
201
+ Table 9: Zero-shot video-language results on text-to-video retrieval on the 1k test split of the MSRVTT dataset. ††\dagger† denotes the models finetuned on COCO. Video datasets include HowTo100M[[62](https://arxiv.org/html/2205.12005#bib.bib62)], WebVid-2M(W2M)[[63](https://arxiv.org/html/2205.12005#bib.bib63)], YT-Temporal-180M( Y180M)[[64](https://arxiv.org/html/2205.12005#bib.bib64)]. Image datasets include CC3M(C3M)[[38](https://arxiv.org/html/2205.12005#bib.bib38)], FLD900M[[45](https://arxiv.org/html/2205.12005#bib.bib45)], WIT400M[[17](https://arxiv.org/html/2205.12005#bib.bib17)]. Audio datasets include AudioSet(AudSet)[[65](https://arxiv.org/html/2205.12005#bib.bib65)].
202
+
203
+ ### 5.4 Zero-shot Transferability
204
+
205
+ In this section, we examine the generalization of mPLUG and compare the zero-shot result on two Vision-Language and three Video-Language tasks.
206
+
207
+ #### 5.4.1 Zero-shot Vision-Language Tasks
208
+
209
+ The pretraining of mPLUG adopts image-text contrastive and prefix language modeling tasks on large-scale image-text pairs. Thus, mPLUG has zero-shot generalization ability in image-text retrieval and image captioning. Image Caption: First, we take the pretrained mPLUG model and directly decode on NoCaps validation set without further finetuning. Following[[7](https://arxiv.org/html/2205.12005#bib.bib7), [34](https://arxiv.org/html/2205.12005#bib.bib34)], we feed a prefix prompt _“A picture of”_ into the text encoder to improve the quality of decoded captions. As shown in Table [7](https://arxiv.org/html/2205.12005#S5.T7 "Table 7 ‣ 5.3.3 Large-scale Training ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), the zero-shot performance of mPLUG is competitive with fully supervised baselines such like Oscar and VinVL. With further finetuning on MSCOCO dataset, mPLUG outperforms the SimVLM h⁢u⁢g⁢e ℎ 𝑢 𝑔 𝑒{}_{huge}start_FLOATSUBSCRIPT italic_h italic_u italic_g italic_e end_FLOATSUBSCRIPT, which use more pre-training image-text pairs and has larger model parameters. Image-text Retrieval: We perform zero-shot retrieval on Flickr30K. The result is shown in Table [8](https://arxiv.org/html/2205.12005#S5.T8 "Table 8 ‣ 5.3.3 Large-scale Training ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), where zero-shot mPLUG outperforms models (CLIP, ALIGN, Florence) pretrained with more image-text pairs. Following [[34](https://arxiv.org/html/2205.12005#bib.bib34)], we also evaluate zero-shot retrieval by the model finetuned on MSCOCO dataset. Table [8](https://arxiv.org/html/2205.12005#S5.T8 "Table 8 ‣ 5.3.3 Large-scale Training ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows that mPLUG achieves better performance than the previous SOTA models.
210
+
211
+ #### 5.4.2 Zero-shot Transfer to Video-Language Tasks
212
+
213
+ To evaluate the generalization ability of mPLUG to Video-Language Tasks, we conduct zero-shot experiments on Video-text Retrieval, Video Caption and Video Question Answering. Following [[34](https://arxiv.org/html/2205.12005#bib.bib34)], we uniformly sample n 𝑛 n italic_n frames for each video (n=8 𝑛 8 n=8 italic_n = 8 for Retrieval, n=16 𝑛 16 n=16 italic_n = 16 for QA, n=8 𝑛 8 n=8 italic_n = 8 for Caption), and concatenate the frame features into a single sequence. Video-text Retrieval: We evaluate the mPLUG models pretrained and further finetuned on the COCO-retrieval image-text dataset without any video pre-training or supervision. Table [9](https://arxiv.org/html/2205.12005#S5.T9 "Table 9 ‣ 5.3.3 Large-scale Training ‣ 5.3 Effectiveness and Efficiency ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows that zero-shot mPLUG can outperform the SOTA models pretrained on far more pretraining data (e.g., Florence, BLIP), and can even outperform models finetuned on the supervised video dataset without using temporal information (e.g., VideoCLIP, VIOLET); Video Question Answering: Following BLIP [[34](https://arxiv.org/html/2205.12005#bib.bib34)], We treat Video QA as an answer generation task and perform evaluation based on models finetuned on VQA. As shown in Table [10](https://arxiv.org/html/2205.12005#S5.T10 "Table 10 ‣ 5.4.2 Zero-shot Transfer to Video-Language Tasks ‣ 5.4 Zero-shot Transferability ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"), the zero-shot mPLUG outperforms BLIP pretrained with more image-text pairs; Video Caption: We use a prefix prompt _“A video of”_ to improve the quality of decoded captions. Table [10](https://arxiv.org/html/2205.12005#S5.T10 "Table 10 ‣ 5.4.2 Zero-shot Transfer to Video-Language Tasks ‣ 5.4 Zero-shot Transferability ‣ 5 Experiments ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows that zero-shot mPLUG also achieves better performance than BLIP.
214
+
215
+ Table 10: Zero-shot video-language results on Question-Answer and Caption tasks.
216
+
217
+ 6 Conclusion
218
+ ------------
219
+
220
+ This paper presents mPLUG, an effective and efficient VLP framework for both cross-modal understanding and generation. mPLUG introduces a new asymmetric vision-language architecture with novel cross-modal skip-connections, to address two fundamental problems of information asymmetry and computation efficiency in cross-modal alignment. Pretrained on large-scale image-text pairs, mPLUG achieves state-of-the-art performance on a wide range of vision-language tasks. mPLUG also demonstrates strong zero-shot transfer ability when directly applied to multiple video-language tasks. Our work explores the cross-modal alignment with a newly-designed VLP architecture and we hope it can help promote future research on image-text foundation models.
221
+
222
+ References
223
+ ----------
224
+
225
+ * Tan and Bansal [2019] Hao Tan and Mohit Bansal. 2019. Lxmert: Learning cross-modality encoder representations from transformers. _arXiv preprint arXiv:1908.07490_.
226
+ * Chen et al. [2020] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. 2020. Uniter: Universal image-text representation learning. In _European conference on computer vision_, pages 104–120. Springer.
227
+ * Huang et al. [2020] Zhicheng Huang, Zhaoyang Zeng, Bei Liu, Dongmei Fu, and Jianlong Fu. 2020. Pixel-bert: Aligning image pixels with text by deep multi-modal transformers. _arXiv preprint arXiv:2004.00849_.
228
+ * Li et al. [2020a] Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, et al. 2020a. Oscar: Object-semantics aligned pre-training for vision-language tasks. In _European Conference on Computer Vision_, pages 121–137. Springer.
229
+ * Yu et al. [2021] Fei Yu, Jiji Tang, Weichong Yin, Yu Sun, Hao Tian, Hua Wu, and Haifeng Wang. 2021. Ernie-vil: Knowledge enhanced vision-language representations through scene graphs. In _Proceedings of the AAAI Conference on Artificial Intelligence_, volume 35, pages 3208–3216.
230
+ * Li et al. [2021a] Junnan Li, Ramprasaath Selvaraju, Akhilesh Gotmare, Shafiq Joty, Caiming Xiong, and Steven Chu Hong Hoi. 2021a. Align before fuse: Vision and language representation learning with momentum distillation. _Advances in Neural Information Processing Systems_, 34.
231
+ * Wang et al. [2021a] Zirui Wang, Jiahui Yu, Adams Wei Yu, Zihang Dai, Yulia Tsvetkov, and Yuan Cao. 2021a. Simvlm: Simple visual language model pretraining with weak supervision. _CoRR_, abs/2108.10904.
232
+ * Anderson et al. [2018] Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 2018. Bottom-up and top-down attention for image captioning and visual question answering. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 6077–6086.
233
+ * Zhang et al. [2021] Pengchuan Zhang, Xiujun Li, Xiaowei Hu, Jianwei Yang, Lei Zhang, Lijuan Wang, Yejin Choi, and Jianfeng Gao. 2021. Vinvl: Revisiting visual representations in vision-language models. In _Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition_, pages 5579–5588.
234
+ * Kim et al. [2021] Wonjae Kim, Bokyung Son, and Ildoo Kim. 2021. Vilt: Vision-and-language transformer without convolution or region supervision. _arXiv preprint arXiv:2102.03334_.
235
+ * Dou et al. [2021] Zi-Yi Dou, Yichong Xu, Zhe Gan, Jianfeng Wang, Shuohang Wang, Lijuan Wang, Chenguang Zhu, Zicheng Liu, Michael Zeng, et al. 2021. An empirical study of training end-to-end vision-and-language transformers. _arXiv preprint arXiv:2111.02387_.
236
+ * Vaswani et al. [2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In _Advances in neural information processing systems_, pages 5998–6008.
237
+ * Li et al. [2019] Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. 2019. Visualbert: A simple and performant baseline for vision and language. _arXiv preprint arXiv:1908.03557_.
238
+ * Antol et al. [2015] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. 2015. Vqa: Visual question answering. In _Proceedings of the IEEE international conference on computer vision_, pages 2425–2433.
239
+ * Chen et al. [2015a] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. 2015a. Microsoft coco captions: Data collection and evaluation server. _arXiv preprint arXiv:1504.00325_.
240
+ * Yu et al. [2016] Licheng Yu, Patrick Poirson, Shan Yang, Alexander C Berg, and Tamara L Berg. 2016. Modeling context in referring expressions. In _European Conference on Computer Vision_, pages 69–85. Springer.
241
+ * Radford et al. [2021] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. _arXiv preprint arXiv:2103.00020_.
242
+ * Jia et al. [2021] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. 2021. Scaling up visual and vision-language representation learning with noisy text supervision. _arXiv preprint arXiv:2102.05918_.
243
+ * Xu et al. [2021a] Haiyang Xu, Ming Yan, Chenliang Li, Bin Bi, Songfang Huang, Wenming Xiao, and Fei Huang. 2021a. E2e-vlp: End-to-end vision-language pre-training enhanced by visual learning. _arXiv preprint arXiv:2106.01804_.
244
+ * Wang et al. [2021b] Wenhui Wang, Hangbo Bao, Li Dong, and Furu Wei. 2021b. Vlmo: Unified vision-language pre-training with mixture-of-modality-experts. _arXiv preprint arXiv:2111.02358_.
245
+ * He et al. [2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 770–778.
246
+ * Srivastava et al. [2015] Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. 2015. Highway networks. _arXiv preprint arXiv:1505.00387_.
247
+ * Huang et al. [2017] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. 2017. Densely connected convolutional networks. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 4700–4708.
248
+ * Szegedy et al. [2017] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. 2017. Inception-v4, inception-resnet and the impact of residual connections on learning. In _Thirty-first AAAI conference on artificial intelligence_.
249
+ * Liu et al. [2021] Fenglin Liu, Xuancheng Ren, Zhiyuan Zhang, Xu Sun, and Yuexian Zou. 2021. Rethinking skip connection with layer normalization in transformers and resnets. _arXiv preprint arXiv:2105.07205_.
250
+ * Shen et al. [2021] Sheng Shen, Liunian Harold Li, Hao Tan, Mohit Bansal, Anna Rohrbach, Kai-Wei Chang, Zhewei Yao, and Kurt Keutzer. 2021. How much can clip benefit vision-and-language tasks? _arXiv preprint arXiv:2107.06383_.
251
+ * Dosovitskiy et al. [2020] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. In _International Conference on Learning Representations_.
252
+ * He et al. [2020] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. 2020. Momentum contrast for unsupervised visual representation learning. In _Proceedings of the IEEE/CVF conference on computer vision and pattern recognition_, pages 9729–9738.
253
+ * Devlin et al. [2018] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. _arXiv preprint arXiv:1810.04805_.
254
+ * Bi et al. [2020] Bin Bi, Chenliang Li, Chen Wu, Ming Yan, Wei Wang, Songfang Huang, Fei Huang, and Luo Si. 2020. Palm: Pre-training an autoencoding&autoregressive language model for context-conditioned generation. _arXiv preprint arXiv:2004.07159_.
255
+ * Rajbhandari et al. [2020] Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020. Zero: Memory optimizations toward training trillion parameter models. In _SC20: International Conference for High Performance Computing, Networking, Storage and Analysis_, pages 1–16. IEEE.
256
+ * Chen et al. [2016] Tianqi Chen, Bing Xu, Chiyuan Zhang, and Carlos Guestrin. 2016. Training deep nets with sublinear memory cost. _arXiv preprint arXiv:1604.06174_.
257
+ * Hu et al. [2021] Xiaowei Hu, Zhe Gan, Jianfeng Wang, Zhengyuan Yang, Zicheng Liu, Yumao Lu, and Lijuan Wang. 2021. [Scaling up vision-language pre-training for image captioning](http://arxiv.org/abs/2111.12233). _CoRR_, abs/2111.12233.
258
+ * Li et al. [2022] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. 2022. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. _arXiv preprint arXiv:2201.12086_.
259
+ * Wang et al. [2022] Peng Wang, An Yang, Rui Men, Junyang Lin, Shuai Bai, Zhikang Li, Jianxin Ma, Chang Zhou, Jingren Zhou, and Hongxia Yang. 2022. Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. _arXiv preprint arXiv:2202.03052_.
260
+ * Lin et al. [2014] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In _European conference on computer vision_, pages 740–755. Springer.
261
+ * Krishna et al. [2017] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. 2017. Visual genome: Connecting language and vision using crowdsourced dense image annotations. _International journal of computer vision_, 123(1):32–73.
262
+ * Sharma et al. [2018] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. 2018. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In _Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_, pages 2556–2565.
263
+ * Changpinyo et al. [2021] Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. 2021. Conceptual 12m: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In _Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition_, pages 3558–3568.
264
+ * Ordonez et al. [2011] Vicente Ordonez, Girish Kulkarni, and Tamara L Berg. 2011. Im2text: Describing images using 1 million captioned photographs. In _Advances in neural information processing systems_, pages 1143–1151.
265
+ * Loshchilov and Hutter [2017] Ilya Loshchilov and Frank Hutter. 2017. Decoupled weight decay regularization. _arXiv preprint arXiv:1711.05101_.
266
+ * Cubuk et al. [2020] Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. 2020. Randaugment: Practical automated data augmentation with a reduced search space. In _Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops_, pages 702–703.
267
+ * Lu et al. [2019] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. 2019. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In _Advances in Neural Information Processing Systems_, pages 13–23.
268
+ * Cho et al. [2021] Jaemin Cho, Jie Lei, Hao Tan, and Mohit Bansal. 2021. [Unifying vision-and-language tasks via text generation](https://proceedings.mlr.press/v139/cho21a.html). In _Proceedings of the 38th International Conference on Machine Learning_, volume 139 of _Proceedings of Machine Learning Research_, pages 1931–1942. PMLR.
269
+ * Yuan et al. [2021] Lu Yuan, Dongdong Chen, Yi-Ling Chen, Noel Codella, Xiyang Dai, Jianfeng Gao, Houdong Hu, Xuedong Huang, Boxin Li, Chunyuan Li, et al. 2021. Florence: A new foundation model for computer vision. _arXiv preprint arXiv:2111.11432_.
270
+ * Li et al. [2020b] Wei Li, Can Gao, Guocheng Niu, Xinyan Xiao, Hao Liu, Jiachen Liu, Hua Wu, and Haifeng Wang. 2020b. Unimo: Towards unified-modal understanding and generation via cross-modal contrastive learning. _arXiv preprint arXiv:2012.15409_.
271
+ * Chen et al. [2015b] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C.Lawrence Zitnick. 2015b. [Microsoft COCO captions: Data collection and evaluation server](http://arxiv.org/abs/1504.00325). _CoRR_, abs/1504.00325.
272
+ * Agrawal et al. [2018] Harsh Agrawal, Karan Desai, Yufei Wang, Xinlei Chen, Rishabh Jain, Mark Johnson, Dhruv Batra, Devi Parikh, Stefan Lee, and Peter Anderson. 2018. [nocaps: novel object captioning at scale](http://arxiv.org/abs/1812.08658). _CoRR_, abs/1812.08658.
273
+ * Rennie et al. [2017] Steven J. Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. 2017. [Self-critical sequence training for image captioning](https://doi.org/10.1109/CVPR.2017.131). In _2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)_, pages 1179–1195.
274
+ * Gan et al. [2020] Zhe Gan, Yen-Chun Chen, Linjie Li, Chen Zhu, Yu Cheng, and Jingjing Liu. 2020. [Large-scale adversarial training for vision-and-language representation learning](https://proceedings.neurips.cc/paper/2020/hash/49562478de4c54fafd4ec46fdb297de5-Abstract.html). In _Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual_.
275
+ * Kamath et al. [2021] Aishwarya Kamath, Mannat Singh, Yann LeCun, Gabriel Synnaeve, Ishan Misra, and Nicolas Carion. 2021. [MDETR - modulated detection for end-to-end multi-modal understanding](https://doi.org/10.1109/ICCV48922.2021.00180). In _2021 IEEE/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021_, pages 1760–1770. IEEE.
276
+ * Yang et al. [2021a] Zhengyuan Yang, Zhe Gan, Jianfeng Wang, Xiaowei Hu, Faisal Ahmed, Zicheng Liu, Yumao Lu, and Lijuan Wang. 2021a. [Crossing the format boundary of text and boxes: Towards unified vision-language modeling](http://arxiv.org/abs/2111.12085). _CoRR_, abs/2111.12085.
277
+ * Plummer et al. [2015] Bryan A Plummer, Liwei Wang, Chris M Cervantes, Juan C Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. 2015. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In _Proceedings of the IEEE international conference on computer vision_, pages 2641–2649.
278
+ * Suhr et al. [2018] Alane Suhr, Stephanie Zhou, Ally Zhang, Iris Zhang, Huajun Bai, and Yoav Artzi. 2018. A corpus for reasoning about natural language grounded in photographs. _arXiv preprint arXiv:1811.00491_.
279
+ * Xie et al. [2019] Ning Xie, Farley Lai, Derek Doran, and Asim Kadav. 2019. [Visual entailment: A novel task for fine-grained image understanding](http://arxiv.org/abs/1901.06706). _CoRR_, abs/1901.06706.
280
+ * Yao et al. [2021] Lewei Yao, Runhui Huang, Lu Hou, Guansong Lu, Minzhe Niu, Hang Xu, Xiaodan Liang, Zhenguo Li, Xin Jiang, and Chunjing Xu. 2021. Filip: Fine-grained interactive language-image pre-training. _arXiv preprint arXiv:2111.07783_.
281
+ * Miech et al. [2020] Antoine Miech, Jean-Baptiste Alayrac, Lucas Smaira, Ivan Laptev, Josef Sivic, and Andrew Zisserman. 2020. End-to-end learning of visual representations from uncurated instructional videos. In _Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition_, pages 9879–9889.
282
+ * Xu et al. [2021b] Hu Xu, Gargi Ghosh, Po-Yao Huang, Dmytro Okhonko, Armen Aghajanyan, Florian Metze, Luke Zettlemoyer, and Christoph Feichtenhofer. 2021b. Videoclip: Contrastive pre-training for zero-shot video-text understanding. In _Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing_, pages 6787–6800.
283
+ * Akbari et al. [2021] Hassan Akbari, Liangzhe Yuan, Rui Qian, Wei-Hong Chuang, Shih-Fu Chang, Yin Cui, and Boqing Gong. 2021. Vatt: Transformers for multimodal self-supervised learning from raw video, audio and text. _Advances in Neural Information Processing Systems_, 34.
284
+ * Li et al. [2021b] Dongxu Li, Junnan Li, Hongdong Li, Juan Carlos Niebles, and Steven CH Hoi. 2021b. Align and prompt: Video-and-language pre-training with entity prompts. _arXiv preprint arXiv:2112.09583_.
285
+ * Fu et al. [2021] Tsu-Jui Fu, Linjie Li, Zhe Gan, Kevin Lin, William Yang Wang, Lijuan Wang, and Zicheng Liu. 2021. Violet: End-to-end video-language transformers with masked visual-token modeling. _arXiv preprint arXiv:2111.12681_.
286
+ * Miech et al. [2019] Antoine Miech, Dimitri Zhukov, Jean-Baptiste Alayrac, Makarand Tapaswi, Ivan Laptev, and Josef Sivic. 2019. Howto100m: Learning a text-video embedding by watching hundred million narrated video clips. In _Proceedings of the IEEE/CVF International Conference on Computer Vision_, pages 2630–2640.
287
+ * Bain et al. [2021] Max Bain, Arsha Nagrani, Gül Varol, and Andrew Zisserman. 2021. Frozen in time: A joint video and image encoder for end-to-end retrieval. In _Proceedings of the IEEE/CVF International Conference on Computer Vision_, pages 1728–1738.
288
+ * Zellers et al. [2021] Rowan Zellers, Ximing Lu, Jack Hessel, Youngjae Yu, Jae Sung Park, Jize Cao, Ali Farhadi, and Yejin Choi. 2021. Merlot: Multimodal neural script knowledge models. _Advances in Neural Information Processing Systems_, 34.
289
+ * Gemmeke et al. [2017] Jort F Gemmeke, Daniel PW Ellis, Dylan Freedman, Aren Jansen, Wade Lawrence, R Channing Moore, Manoj Plakal, and Marvin Ritter. 2017. Audio set: An ontology and human-labeled dataset for audio events. In _2017 IEEE international conference on acoustics, speech and signal processing (ICASSP)_, pages 776–780. IEEE.
290
+ * Yang et al. [2021b] Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. 2021b. Just ask: Learning to answer questions from millions of narrated videos. In _Proceedings of the IEEE/CVF International Conference on Computer Vision_, pages 1686–1697.
291
+ * Goyal et al. [2017] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 2017. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 6904–6913.
292
+ * Karpathy and Fei-Fei [2015] Andrej Karpathy and Li Fei-Fei. 2015. Deep visual-semantic alignments for generating image descriptions. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 3128–3137.
293
+ * Mao et al. [2016] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan L Yuille, and Kevin Murphy. 2016. Generation and comprehension of unambiguous object descriptions. In _Proceedings of the IEEE conference on computer vision and pattern recognition_, pages 11–20.
294
+
295
+ 7 More Experiments Details
296
+ --------------------------
297
+
298
+ ### 7.1 Downstream Task Details
299
+
300
+ We evaluate mPLUG on the six downstream vision-language tasks. The hyperparameters that we use for finetuning on the downstream tasks are listed in Table [11](https://arxiv.org/html/2205.12005#S7.T11 "Table 11 ‣ VQA. ‣ 7.1 Downstream Task Details ‣ 7 More Experiments Details ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections"). Following [[6](https://arxiv.org/html/2205.12005#bib.bib6)], all tasks adopt RandAugment, AdamW optimizer with a weight decay of 0.05 and a cosine learning rate schedule. We use an image resolution of 336 ×\times× 336, except for VQA where we use 504 ×\times× 504 images. For VQA and image captioning tasks, we also do an additional continue pre-training on 4M image-text pairs, which can bring about 0.2+ accuracy improvement. Next we introduce the dataset settings in detail.
301
+
302
+ ##### VQA.
303
+
304
+ We conduct experiment on the VQA2.0 dataset [[67](https://arxiv.org/html/2205.12005#bib.bib67)], which contains 83k/41k/81k images for training/validation/test. Following [[6](https://arxiv.org/html/2205.12005#bib.bib6)], we use both training and validation splits for training, and incorporate additional training data from Visual Genome[[37](https://arxiv.org/html/2205.12005#bib.bib37)].
305
+
306
+ Table 11: Finetuning hyperparameters for downstream tasks. ††\dagger† denotes two stages fine-tuning.
307
+
308
+ ##### Image Captioning.
309
+
310
+ We finetune on COCO’s Karpathy train split, and evaluate on COCO’s Karpathy test split and No-Caps validation split. Following[[4](https://arxiv.org/html/2205.12005#bib.bib4), [35](https://arxiv.org/html/2205.12005#bib.bib35)], we first fine-tune mPLUG with cross-entropy loss for 5 epochs with a learning rate of 1e-5 and a batch size of 256. Based on the fine-tuned model, we the fine-tune it with CIDEr optimization[[49](https://arxiv.org/html/2205.12005#bib.bib49)] for extra 5 epochs with a smaller learning rate of 8e-7. During inference, we use beam search with a beam size of 10, and set the maximum generation length as 20.
311
+
312
+ ##### Image-Text Retrieval.
313
+
314
+ We adopt the widely-used Karpathy split [[68](https://arxiv.org/html/2205.12005#bib.bib68)] for both COCO and Flickr30K. COCO contains 113/5k/5k images for train/validation/test, and Flickr30K contains 29k/1k/1k images for train/validation/test.
315
+
316
+ ##### Visual Grounding.
317
+
318
+ We evaluate our method on three referring expression grounding datasets: RefCOCO, RefCOCO+[[16](https://arxiv.org/html/2205.12005#bib.bib16)] and RefCOCOg[[69](https://arxiv.org/html/2205.12005#bib.bib69)]. The RefCOCO and RefCOCO+ datasets share 19K images and contain 142/141K queries. The RefCOCOg dataset contains 25K images and 95K queries. To fully use training data, we first train the model with a mixed dataset with a learning rate of 2e-5. Then we continue fine-tuning the model on each dataset with a learning rate of 2e-6.
319
+
320
+ ##### NLVR2 & SNLI-VE.
321
+
322
+ We conduct experiment both on the official split[[54](https://arxiv.org/html/2205.12005#bib.bib54), [55](https://arxiv.org/html/2205.12005#bib.bib55)].
323
+
324
+ ### 7.2 Pre-training Dataset Details
325
+
326
+ Table [12](https://arxiv.org/html/2205.12005#S7.T12 "Table 12 ‣ 7.2 Pre-training Dataset Details ‣ 7 More Experiments Details ‣ mPLUG: Effective and Efficient Vision-Language Learning by Cross-modal Skip-connections") shows the statistics of the 14M pre-training images with texts.
327
+
328
+ Table 12: Statistics of the pre-training datasets.