ZHANGYUXUAN-zR commited on
Commit
157dc6c
·
verified ·
1 Parent(s): fa54c4b

Add files using upload-large-folder tool

Browse files
parse/train/B1eY_pVYvB/B1eY_pVYvB.md ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EFFICIENT AND INFORMATION-PRESERVING FUTURE FRAME PREDICTION AND BEYOND
2
+
3
+ Wei ${ { \bf { Y } } { \bf { u } } ^ { 1 } }$ , Yichao $\mathbf { L u } ^ { 1 }$ , Steve Easterbrook1, Sanja Fidler1,2,3
4
+
5
+ 1Department of Computer Science, University of Toronto 2Vector Institute, Canada
6
+ 3NVIDIA
7
+ {gnosis,yichao,sme,fidler}@cs.toronto.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Applying resolution-preserving blocks is a common practice to maximize information preservation in video prediction, yet their high memory consumption greatly limits their application scenarios. We propose CrevNet, a Conditionally Reversible Network that uses reversible architectures to build a bijective two-way autoencoder and its complementary recurrent predictor. Our model enjoys the theoretically guaranteed property of no information loss during the feature extraction, much lower memory consumption and computational efficiency. The lightweight nature of our model enables us to incorporate 3D convolutions without concern of memory bottleneck, enhancing the model’s ability to capture both short-term and long-term temporal dependencies. Our proposed approach achieves state-of-the-art results on Moving MNIST, Traffic4cast and KITTI datasets. We further demonstrate the transferability of our self-supervised learning method by exploiting its learnt features for object detection on KITTI. Our competitive results indicate the potential of using CrevNet as a generative pre-training strategy to guide downstream tasks.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Deep learning has enjoyed tremendous success in recent years due to its ability to capture complex dependencies and non-linearities in large datasets (Krizhevsky et al. (2012); He et al. (2016); Gomez et al. (2017)). Excellent performance has been achieved on a wide range of supervised machine learning tasks, ranging from image classification (He et al. (2016)) and object detection (Ren et al. (2015)) to speech recognition (Amodei et al. (2016)). Despite the significant breakthrough in supervised learning, the potential of applying deep architectures to unsupervised learning problems remains largely unexplored. Lately there has been a surge of interest in the task of video prediction, i.e., to predict future frames of a video sequence (Wang et al. (2017; 2018); Denton et al. (2017); Denton & Fergus (2018); Villegas et al. (2017); Lee et al. (2018)). The significance of video prediction primarily lies in its potential of discovering dynamics in the physical world. The self-supervised nature of video prediction aligns well with how humans learn, without requiring large amounts of labeled data. In addition, videos can provide an abundant and virtually unlimited source of visual information. This allows video prediction models to serve as a generative pre-training strategy of feature representation learning for a variety of downstream supervised tasks.
16
+
17
+ To date, most of the existing models for video prediction employ a hybrid of convolutional and recurrent layers as the underlying architecture (Wang et al. (2017); Shi et al. (2015); Lotter et al. (2016)). Such architectural design enables the model to simultaneously exploit the ability of convolutional units to model spatial relationships and the potential of recurrent units to capture temporal dependencies. Despite their prevalence in the literature, classical video prediction architectures suffer from two major limitations. Firstly, in dense prediction tasks such as video prediction, models are required to make pixel-wise predictions, which emphasizes the demand for the preservation of information through layers. Prior works attempt to address such demand through the extensive use of resolution-preserving blocks (Wang et al. (2017; 2018); Kalchbrenner et al. (2016)). Nevertheless, these resolution-preserving blocks are not guaranteed to preserve all the relevant information, and they greatly increase the memory consumption and computational cost of the models. The second drawback of existing video prediction models is that they cannot efficiently take advantage of 3D convolutions, as that would make these already cumbersome architectures even larger. 3D convolutions have been shown to be a very effective alternative to RNNs to capture temporal relations in a variety of video tasks (Liu et al. (2018); Carreira & Zisserman (2017)), and thus desirable to exploit.
18
+
19
+ ![](images/2814f3e7c41cd24b84d6f7d7d8910bd06c6aa74d5183b36c2eadb0881c09f737.jpg)
20
+ Figure 1: The pipeline of our proposed CrevNet where a single two-way autoencoder serves as both encoder and decoder. CrevNet first observes a warm-up video sequence and then starts a multi-frame video prediction without refeeding its own predictions.
21
+
22
+ Recently, reversible architectures (Dinh et al. (2014); Gomez et al. (2017); Jacobsen et al. (2018)) have attracted attention due to their light memory demand and their information preserving property by design. However, the effectiveness of reversible models remains greatly unexplored in the video literature. In this paper, we introduce a novel, conditionally reversible video prediction model, CrevNet, in the sense that when conditioned on previous hidden states, it can exactly reconstruct the input from its predictions. The contribution of this work can be summarized as follows:
23
+
24
+ • We introduce a two-way autoencoder that uses the forward and backward passes of an invertible network as encoder and decoder (Fig 1). The volume-preserving two-way autoencoder not only greatly reduces the memory demand and computational cost, but also enjoys the theoretically guaranteed property of no information loss. The lightweight nature of our model enables us to incorporate 3D convolutions without concern of memory bottleneck. We propose the reversible predictive module (RPM), as illustrated in Fig 2b, which extends the reversibility from spatial to temporal domain. RPM, together with the two-way autoencoder, provides a conditionally reversible architecture (CrevNet) for spatiotemporal learning. CrevNet achieves the state-of-the-art results on Moving MNIST, Traffic4cast and KITTI. We evaluate the effectiveness of features learnt from self-supervision by adapting our CrevNet for object detection on KITTI. Our competitive results indicate the potential of using CrevNet as a generative pre-training strategy to guide downstream CV tasks.
25
+
26
+ # 2 APPROACH
27
+
28
+ We first outline the general pipeline of our method. Our CrevNet consists of two subnetworks, an autonencoder network with an encoder $\mathcal { E }$ , decoder $\mathcal { D }$ and a recurrent predictor $\mathcal { P }$ bridging encoder and decoder. Let $\boldsymbol { x } _ { t } \in \mathbb { R } ^ { w \times h \times c }$ represent the $t _ { \mathrm { t h } }$ frame in video $x$ , where $w , h .$ , and $c$ denote its width, height, and the number of channels. Given $x _ { 0 : t - 1 }$ , the model predicts the next frame $\hat { x } _ { t }$ as follows:
29
+
30
+ $$
31
+ \hat { x } _ { t } = \mathcal { D } ( \mathcal { P } ( \mathcal { E } ( x _ { t - 1 } ) | x _ { 0 : t - 2 } ) )
32
+ $$
33
+
34
+ In the case of 3D convolution, $\boldsymbol { x } _ { t } \in \mathbb { R } ^ { k \times w \times h \times c }$ denotes the short video clip from $t$ to $t + k - 1$ instead of a single frame at timestep $t$ , where $k$ is the temporal dimension of input or output. During the multi-frame generation process without access to the ground truth frames, the model uses its previous predictions instead.
35
+
36
+ # 2.1 THE INVERTIBLE TWO-WAY AUTOENCODER
37
+
38
+ We propose a bijective two-way autoencoder based on the additive coupling layer introduced in NICE (Dinh et al. (2014)). We begin with describing the building block of the two-way autoencoder
39
+
40
+ ![](images/82c62b6a2698f2565cb8ca6a3f84285551bbb5913c9507f6e1009f46cb4a594c.jpg)
41
+ Figure 2: The network architecture of CrevNet (Better viewed in color). The input video frames are first reshaped and split channelwise into two groups. These two groups are passed to the two-way autoencoder (a) for feature extraction, and then to the predictor made up of multiple reversible predictive modules (b). The transformed high-level features produced by predictor are then passed back through the decoding pass of (a), shown here as a representative block (c) to yield its prediction.
42
+
43
+ (Fig 2a). Formally, the input $x$ is first reshaped and split channelwise into two groups, denoted as $x ^ { 1 }$ and $x ^ { 2 }$ . During the forward pass of each building block, one group, e.g. $x ^ { 1 }$ , passes through several convolutions and activations and is then added to another group, $x ^ { \bar { 2 } }$ , like a residual block:
44
+
45
+ $$
46
+ \hat { x } ^ { 2 } = x ^ { 2 } + \mathcal { F } _ { 1 } ( x ^ { 1 } ) \qquad \hat { x } ^ { 1 } = x ^ { 1 } + \mathcal { F } _ { 2 } ( \hat { x } ^ { 2 } )
47
+ $$
48
+
49
+ where $\mathcal { F }$ is a composite non-linear operator consisting of convolutions and activations, and ${ \hat { x } } ^ { 1 }$ and ${ \hat { x } } ^ { 2 }$ are the updated $x ^ { 1 }$ and $x ^ { 2 }$ . Note that $x ^ { 1 }$ and $x ^ { 2 }$ can be simply recovered from ${ \hat { x } } ^ { 2 }$ and ${ \hat { x } } ^ { 1 }$ by the inverse computation (Fig 2c) as follows:
50
+
51
+ $$
52
+ x ^ { 1 } = \hat { x } ^ { 1 } - \mathcal { F } _ { 2 } ( \hat { x } ^ { 2 } ) \qquad x ^ { 2 } = \hat { x } ^ { 2 } - \mathcal { F } _ { 1 } ( x ^ { 1 } )
53
+ $$
54
+
55
+ Multiple building blocks are stacked in an alternating fashion between $x ^ { 1 }$ and $x ^ { 2 }$ to construct a two-way autoencoder, as shown in Fig 2a. A series of the forward and inverse computations builds a one-to-one and onto, i.e. bijective , mapping between the input and features. Such invertibility ensures that there is no information loss during the feature extraction, which is presumably more favorable for video prediction since the model is expected to restore the future frames with finegrained details. To enable the invertibility of the entire autoencoder, our two-way autoencoder uses a bijective downsampling, pixel shuffle layer (Shi et al. (2016)), that changes the shape of feature from $( w , h , c )$ to $( w / n , \bar { h } / n , \bar { c } \times n ^ { 2 } )$ . The resulting volume-preserving architecture can greatly reduce its memory consumption compared with the existing resolution-preserving methods.
56
+
57
+ We further argue that for generative tasks, e.g. video prediction, we can effectively utilize a single two-way autoencoder, and to use its forward and backward pass as the encoder and the decoder, respectively. The predicted frame $\hat { x } _ { t }$ is thus given by
58
+
59
+ $$
60
+ \hat { x } _ { t } = \mathcal { E } ^ { - 1 } ( \mathcal { P } ( \mathcal { E } ( x _ { t - 1 } ) | x _ { 0 : t - 2 } ) )
61
+ $$
62
+
63
+ where ${ { \mathcal { E } } ^ { - 1 } }$ is the backward pass of $\mathcal { E }$ . Our rationale is that, such setting would not only reduce the number of parameters in the model, but also encourage the model to explore the shared feature space between the inputs and the targets. As a result, our method does not require any form of information sharing, e.g. skip connection, between the encoder and decoder. In addition, our two-way autoencoder can enjoy a lower computational cost at the multi-frame prediction phase where the encoding pass is no longer needed and the predictor directly takes the output from previous timestep as input, as shown in Fig 1, since $\mathcal { E } ( \mathcal { E } ^ { - 1 } )$ is an identity mapping .
64
+
65
+ # 2.2 REVERSIBLE PREDICTIVE MODULE
66
+
67
+ In this section, we describe the second part of our video prediction model, the predictor $\mathcal { P }$ , which computes dependencies along both the space and time dimensions. Although the traditional stackedConvRNN layers architecture is the most straightforward choice of predictor, we find that it fails to establish a consistent temporal dependency when equipped with our two-way autoencoder through experiments. Therefore, we propose a novel reversible predictive module (RPM), which can be regarded as a recurrent extension of the two-way autoencoder. In the RPM, we substitute all standard convolutions with layers from the ConvRNN family (e.g. ConvLSTM or spatiotemporal LSTM) and introduce a soft attention (weighting gates) mechanism to form a weighted sum of the two groups instead of the direct addition. The main operations of RPM used in this paper are given as follows:
68
+
69
+ ConvRNN
70
+
71
+ $$
72
+ \begin{array} { r l } & { h _ { t } ^ { 1 } = \mathrm { C o n v R N N } ( x _ { t } ^ { 1 } , h _ { t - 1 } ^ { 1 } ) } \\ & { g _ { t } = \phi ( W _ { 2 } * \mathrm { R e L U } ( W _ { 1 } * h _ { t } ^ { 1 } + b _ { 1 } ) + b _ { 2 } ) } \\ & { \hat { x _ { t } ^ { 2 } } = ( 1 - g _ { t } ) \odot x _ { t } ^ { 2 } + g _ { t } \odot h _ { t } ^ { 1 } } \end{array}
73
+ $$
74
+
75
+ Attention module
76
+
77
+ Weighted sum
78
+
79
+ where $\boldsymbol { x } _ { t } ^ { 1 }$ and $\boldsymbol { x } _ { t } ^ { 2 }$ denote two groups of features at timestep $t$ , $h _ { t } ^ { 1 }$ denote the hidden states of ConvRNN layer, $\phi$ is sigmoid activation, $^ *$ is the standard convolution operator and $\odot$ is the Hadamard product. The architecture of reversible predictive module is also shown in Fig 2b. RPM adopts a similar architectural design as the two-way autoencoder to ensure a pixel-wise alignment between the input and the output, i.e. each position of features can be traced back to certain pixel, and thus make it compatible with our two-way autoencoder. It also mitigates the vanishing gradient issues across stacked layers since the coupling layer provides a nice property w.r.t. the Jacobian (Dinh et al. (2014)). In addition, the attention mechanism in the RPM enables the model to focus on objects in motion instead of background, which further improves the video prediction quality. Similarly, multiple RPMs alternate between the two groups to form a predictor. We call this predictor conditionally reversible since, given $h _ { t - 1 }$ , we are able to reconstruct $x _ { t - 1 }$ from $\hat { x } _ { t }$ if there are no numerical errors:
80
+
81
+ $$
82
+ x _ { t - 1 } = \mathcal { E } ^ { - 1 } ( \mathcal { P } ^ { - 1 } ( \mathcal { E } ( \hat { x } _ { t } ) | h _ { t - 1 } ) )
83
+ $$
84
+
85
+ where $\mathcal { P } ^ { - 1 }$ is the inverse computation of the predictor $\mathcal { P }$ . We name the video prediction model using two-way autoencoder as its backbone and RPMs as its predictor CrevNet. Another key factor of RPM is the choice of ConvRNN. In this paper, we mainly employ ConvLSTM (Shi et al. (2015)) and spatiotemporal LSTM (ST-LSTM, Wang et al. (2017)) to enable a fair comparison with baselines.
86
+
87
+ # 2.3 3D CONVOLUTIONS
88
+
89
+ 3D convolutions are proposed to address the shortcomings of standard 2D convolutions. The major difference between 2D-CNNs and 3D-CNNs is that at each time step 2D-CNNs take as input one video frame, while 3D-CNNs read in and output a short video clip containing $k$ continuous video frames. By applying convolutions on the temporal dimension along with the spatial dimension, models equipped with 3D convolution filters can not only extract representative spatiotemporal features, but also learn to produce consistent video clip at each generation, which further improve the quality of long-term prediction. In some cases, e.g. sequences are too short, we will use 2 consecutive frames stacked in the channel dimension instead as input at each timestep to assemble a valid warm-up sequence for ConvRNN.
90
+
91
+ # 3 EXPERIMENTS
92
+
93
+ # 3.1 LONG-TERM PREDICTION—MOVING MNIST
94
+
95
+ Moving MNIST (Srivastava et al. (2015)) is a synthetically generated dataset that contains an infinite number of sequences of length 20. Each sequence shows how 2 digits move at a constant speed and bounce inside a $6 4 \times 6 4$ frame, where each handwritten digit is randomly sampled from the MNIST dataset. By assigning different initial locations and velocities to each digit, it is possible to generate an unlimited number of sequences, thus enabling us to accurately evaluate the performance of each model without the concern of data insufficiency issues. In the default setting, models are trained to predict 10 future frames after observing 10 prior frames in the sequence. Although the dynamics of Moving MNIST seems to be simple at first glance. It is quite hard to generate consistent future frames in the task of long-term prediction as digits can bounce or occlude each other frequently.
96
+
97
+ Datasets and Setup: The general architecture of CrevNet used on Moving MNIST is composed of a 36-layer two-way autoencoder and 8 RPMs. All variants of CrevNet are trained by using the Adam optimizer with a starting learning rate of $5 \times 1 0 ^ { - 4 }$ to minimize MSE. The training process is stopped
98
+
99
+ after 300, 000 iterations with the batch size of 16 and evaluated with a fixed test set containing 5, 000 sequences. To ensure that all samples in the test set are unseen by the model, digits in the training set and the testing set are separately sampled from two mutually exclusive subsets of MNIST.
100
+
101
+ <table><tr><td rowspan="2">Model</td><td colspan="3">MNIST-2</td><td colspan="2">MNIST-3 MSE</td><td rowspan="2">Memory (1 sample)</td><td rowspan="2">FLOPS (1 frame)</td></tr><tr><td>SSIM</td><td>MSE</td><td>Human</td><td>SSIM</td><td></td></tr><tr><td>ConvLSTM (Shi et al. (2015))</td><td>0.707</td><td>103.3</td><td>0.923</td><td>0.695</td><td>127.3</td><td>1043 MB</td><td>107.4 G</td></tr><tr><td>FRNN (Oliu et al. (2018))</td><td>0.819</td><td>68.4</td><td>0.848</td><td>0.791</td><td>90.4</td><td>717MB</td><td>80.1G</td></tr><tr><td>VPN (Kalchbrenner et al. (2016))</td><td>0.870</td><td>70.0</td><td>0.831</td><td>0.820</td><td>85.6</td><td>5206MB</td><td>309.6 G</td></tr><tr><td>PredRNN (Wang et al. (2017))</td><td>0.869</td><td>56.8</td><td>0.837</td><td>0.822</td><td>83.1</td><td>1666 MB</td><td>192.9 G</td></tr><tr><td>PredRNN++ (Wang et al. (2018))</td><td>0.898</td><td>46.5</td><td>0.781</td><td>0.864</td><td>68.4</td><td>2017MB</td><td>106.8 G</td></tr><tr><td>E3D-LSTM (Wang et al. (2019))</td><td>0.910</td><td>41.3</td><td>0.706</td><td>0.870</td><td>62.4</td><td>2695 MB</td><td>381.3 G</td></tr><tr><td>CrevNet+ConvLSTM</td><td>0.928</td><td>38.5</td><td>0.602</td><td>0.886</td><td>57.2</td><td>130 MB</td><td>0.919 G</td></tr><tr><td>CrevNet + ST-LSTM</td><td>0.949</td><td>22.3</td><td>0.558</td><td>0.916</td><td>40.6</td><td>195MB</td><td>1.618 G</td></tr></table>
102
+
103
+ Table 1: Quantitative evaluation of different methods on Moving MNIST. All metrics are averaged over the 10 predictions. Lower MSE and higher SSIM indicates better prediction accuracy.
104
+
105
+ We compare CrevNet to six popular benchmark models from the literature: (i) ConvLSTM (Shi et al. (2015)), (ii) FRNN (Oliu et al. (2018)), (iii) VPN (Kalchbrenner et al. (2016)), (iv) PredRNN (Wang et al. (2017)) , (v) PredRNN $^ { + + }$ (Wang et al. (2018)), and (vi) E3D-LSTM (Wang et al. (2019)),. All baselines are implemented and optimized by following their corresponding protocols. To test our model in a more challenging setting, we also extend Moving MNIST to a 3-digit version where digits are more likely to occlude each other.
106
+
107
+ Results: The performance of each model in terms of per-frame MSE and the Structural Similarity Index Measure (SSIM) (Wang et al. (2004)) is presented in Table 1. CrevNet outperforms all previous methods by a wide margin on both metrics while memory consumption of all CrevNet variants is significantly lower than that of other baselines. In particular, CrevNet with ConvLSTM only uses 130 MB memory per sample and is still capable of yielding results better than any baselines.
108
+
109
+ To analyze the contribution of each module, we conduct an ablation study on both ConvLSTM and ST-LSTM with respect to 3D convolution, two-way autoencoder and RPM and summarize the results in Table 2. Note that we do not include the quantitative results of the combination of two-way autoencoder and stack-ConvRNN predictor because it fails to produce consistent long-term generations and we choose UNet (Ronneberger et al. (2015)) as an alternative to our two-way autoencoder. We can observe a significant improvement over ConvLSTM after we embed it into our CrevNet framework, indicating the effectiveness of reversible architectures. Also, integrating 3D convolution can consistently enhance the performance of all architectures. To further show the superior performance of CrevNet, we evaluate it on a harder 3-digit setting. Results are shown in the right column of Table 1. Compared with the 2-digit setting, all models suffer a deterioration in quantitative performance due to the more frequent occurrence of overlapping digits. Nevertheless, our CrevNet still achieves the best result.
110
+
111
+ ![](images/7ed8d7ba2d38f9bb78e2fb72587a3164387b1cd5d302ac1569447f621063ef89.jpg)
112
+ Figure 3: An extremely hard sequence of Moving MNIST where two digits are continuously overlapped during the warm-up phase.
113
+
114
+ <table><tr><td>Model</td><td>ConvLSTM MSE SSIM|</td><td>ST-LSTM MSE SSIM</td></tr><tr><td>Stacked-RNN</td><td>103.3 0.707</td><td>56.8 0.869</td></tr><tr><td>3D Stacked-RNN</td><td>85.8 0.785</td><td>46.2 0.878</td></tr><tr><td>UNet+StackedRNN 83.5</td><td>0.793</td><td>58.8 0.865</td></tr><tr><td>UNet+RPM</td><td>63.4 0.855</td><td>50.2 0.896</td></tr><tr><td>CrevNet w/o 3D</td><td>50.2 0.888</td><td>40.4 0.916</td></tr><tr><td>CrevNet + 3D</td><td>38.5 0.928</td><td>22.3 0.949</td></tr></table>
115
+
116
+ Table 2: An ablation study w.r.t. 3D convolution, RPM and two-way autoencoder. All metrics are averaged over the 10 predictions.
117
+
118
+ In Fig 3 , our qualitative analysis shows how each model performs on an extremely hard case of Moving MNIST where two digits are continuously overlapped during the warm-up phase.
119
+
120
+ ![](images/5d5e85adb45b4e2b127effb0619d1ce9ff93eb2c78c8c9d4df842a4141a5c165.jpg)
121
+ Figure 4: The visual comparison of Traffic4cast. The red boxes track some dynamics successfully captured by our CrevNet. Better viewed large.
122
+
123
+ As we can see, our model is the only model that can differentiate the overlapping digits. The information-preserving property of the two-way autoencoder enables our method to reconstruct every fine detail of moving digits after occlusion while baselines typically only restore the basic shape of these numbers. In fact, our CrevNet works almost perfectly on Moving MNIST, with most of its generations being visually indistinguishable from groundtruth.
124
+
125
+ We perform a human study to assess the fidelity of the video clips generated by different models. We presented pairs of video clips to human judges, where each pair consists of a video clip from the test set together with the prediction generated by the model. The judges were asked to decide which of the two video clips is more likely to be the groundtruth. To make each trail blind, the judges were not informed which model is used for generation and two sequences were randomly displayed on either side of the screen. We totally collected 2439 responses made by 58 human subjects and then calculated the probability that human judges answered correctly. The results are reported in Table 1. The accuracy of $5 5 . 8 \%$ suggests that subjects could hardly detect the difference and their decisions were very close to random guesses.
126
+
127
+ # 3.2 SHORT-TERM PREDICTION—TRAFFIC FLOW FORECASTING
128
+
129
+ Next, we evaluate our model on a more complicated real-world dataset, Traffic4cast (IARAI (2019)), which collects the traffic statuses of 3 big cities over a year at a 5-minute interval. Traffic forecasting can be straightforwardly defined as video prediction task by its spatiotemporal nature. However, this dataset is quite challenging for the following reasons. (1). High resolution: The frame resolution of Traffic4cast is $4 9 5 \times 4 3 6$ , which is the highest among all datasets. Existing resolution-preserving methods can hardly be adapted to this dataset since they all require extremely large memory and computation. Even if these models can be fitted in GPUs, they still do not have large enough receptive fields to capture the meaningful dynamics as vehicles can move up to 100 pixels between consecutive frames. (2). Complicated nonlinear dynamics: Valid data points only reside on the hidden roadmap of each city, which is not explicitly provided in this dataset. Moving vehicles on these curved roads along with tangled road conditions will produce very complex nonlinear behaviours. It also involves many unobservable conditions or random events like weather and car accidents.
130
+
131
+ Datasets and Setup: Each frame in Traffic4cast dataset is a $4 9 5 \times 4 3 6 \times 3$ heatmap, where the last dimension records 3 traffic statuses representing volume, mean speed and major direction at given location. The architecture of CrevNet is the same as the one we used on Moving MNIST. As we mentioned before, the existing resolution-preserving methods cannot handle such high resolution input. Thus, to make the comparison possible, we add U-Net encoder-decoder to the baseline models including ConvLSTM and ST-LSTM. We train each model to predict next 3 frames (the next 15 minutes) from 9 observations and evaluate prediction with MSE criterion.
132
+
133
+ <table><tr><td>Model</td><td>CrevNet</td><td>UNet+ST-LSTM</td><td>UNet+ConvLSTM丨Best Team</td><td></td><td>2nd Best Team</td></tr><tr><td>MSE</td><td>9.340×10-3</td><td>9.725× 10-3</td><td>9.846 ×10-3</td><td>9.559×10-3</td><td>9.717 × 10-3</td></tr></table>
134
+
135
+ Table 3: Quantitative evaluation on Traffic4cast. Lower MSE indicates better prediction accuracy.
136
+
137
+ ![](images/d59d0905d69ce4a69c2e0d6fb0d4d47d0f31ad6570a2d67a3b99ee83bd6a76ef.jpg)
138
+ Figure 5: The visual comparison of next-frame predictions on Caltech Pedestrian.
139
+
140
+ Results: The quantitative comparison including the best two results on the leaderboard before the submission of this paper is provided in Table 3. Unlike all previous state-of-the-art methods, CrevNet does not suffer from high memory consumption so that we were able to train our model in a single V100 GPU. The invertibility of two-way autoencoder preserves all necessary information for spatiotemporal learning and allows our model to generate sharp and reasonable predictions. As illustrated in Fig 4, our model can identify and remember the hidden roadmap of each city through the learning of complicated nonlinear dynamics and accurately predict how traffic system will evolve.
141
+
142
+ # 3.3 NEXT-FRAME PREDICTION AND BEYOND—CAR-MOUNTED CAMERA VIDEO
143
+
144
+ The real-world videos are usually long-term unpredictable because of the intrinsic randomness and the lack of necessary information. Thus, the common practice for datasets like KITTI (Geiger et al. (2012)), a car-mounted camera video dataset, is to perform next-frame prediction. In this section, we further demonstrate the superior performance of our CrevNet by conducting experiments on KITTI and Caltech Pedestrian (Dollár et al. (2009)). Compared with the previous two settings, carmounted camera videos dataset presents another level of difficulty for video prediction as it describes various nonlinear three-dimensional dynamics of multiple moving objects including backgrounds. Furthermore, as our well-trained model is capable of generating authentic future frames, it should spontaneously learn at least the shape and location of all moving objects, which indicates that the learnt features are very informative for downstream tasks. For example, in the case of object detection, these features can be incorporated to estimate more accurate locations and sizes of bounding boxes. Therefore, we also explore the effectiveness of our self-supervised learning method on the 2D object detection on KITTI.
145
+
146
+ # 3.3.1 VIDEO PREDICTION
147
+
148
+ Datasets and Setup: We follow the same protocol used in PredNet (Lotter et al. (2016)) for preprocessing and evaluation. We first center-crop all video frames and resize them into $1 2 8 \times 1 6 0$ . We compare our proposed method with 4 state-of-the-art benchmark models. Models are trained on KITTI dataset to predict the next frame after 10-frame warm-up and are evaluated on Caltech Pedestrian. The architecture of CrevNet used on KITTI is composed of a 48-layer two-way autoencoder and 40 RPMs. Note that it is the memory efficiency of our method that allows us to deploy such deep model. Since our model also possess good capability of long-term prediction. We add a 12-frame prediction comparison with CycleGAN (Kwon & Park (2019)) and PredNet (Lotter et al. (2016)).
149
+
150
+ ![](images/0deecc352bfbe70c65085939887ec28bba178661485724005c1bcff8bc8ec03e.jpg)
151
+ Figure 6: The visual comparison of 12-frame prediction on Caltech Pedestrian. Notice how well CrevNet captures the detail and geometry of the buildings in the background, and the overall shading.
152
+
153
+ <table><tr><td>Model</td><td colspan="2">Next-Frame</td><td>3rd</td><td>6th</td><td>9th</td><td>12th</td><td>Average</td></tr><tr><td></td><td>PSNR</td><td>SSIM</td><td colspan="5">SSIM</td></tr><tr><td>Copy-Last-Frame Dual Motion GAN (Liang et al. (2017))</td><td>23.3</td><td>0.779 0.899</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ContextVP (Byeon et al. (2018)) PredNet (Lotter et al. (2016))</td><td>28.7 27.6</td><td>0.921 0.905</td><td>0.72</td><td>0.66</td><td>0.61</td><td>0.58</td><td>0.701</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CycleGAN (Kwon &amp; Park (2019))</td><td>29.2</td><td>0.919</td><td>0.83</td><td>0.73</td><td>0.67</td><td>0.63</td><td>0.752</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CrevNet</td><td>29.3</td><td>0.925</td><td>0.84</td><td>0.76</td><td>0.70</td><td>0.65</td><td>0.776</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
154
+
155
+ Table 4: Quantitative evaluation of different methods on the Caltech Pedestrian dataset. Higher PSNR or SSIM means better prediction accuracy.
156
+
157
+ Results: Performance of different models in terms of PSNR and SSIM is displayed in Table 4. CrevNet outperforms all baselines in both next-frame and multi-frame prediction regimes. Visual comparisons are provided in Fig 5 and Fig 6. Especially, in the case of 12-frame generation, we can observe that compared with our method, PredNet suffers severely from the famous error propagation of RNN issue while CycleGAN produces realistic yet physically inconsistent predictions.
158
+
159
+ # 3.3.2 2D OBJECT DETECTION
160
+
161
+ Datasets and Setup: KITTI provides three prior frames of unlabeled data for each labeled image. This allows us to run our CrevNet to extract useful spatiotemporal features for object detection. All video sequences were recorded at $1 0 \ : \mathrm { H z }$ with resolution of $1 2 4 2 \times 3 7 5$ . We first resize each frame to $4 1 6 \times 1 2 8$ and finetune our best model on the video prediction task solely. The combinations of features extracted by our two-way autoencoder and attention masks of the target frame are then fed into the detection head for the further training. Note that we do not update the weights of CrevNet at this stage to purely demonstrate the power of self-supervised learning. Two image-based detection models, SqueezeDet and RRC, are compared as baselines. We also add an experiment on transfer learning of features learnt by PredNet on KITTI as comparison. To be consistent with related work, we use SSD (Liu et al. (2016)) as detection head.
162
+
163
+ Table 5: Quantitative evaluation of different methods on 2D KITTI detection in term of Average Precision (AP). The numbers in the "Best Results on the Leaderboard " are achieved by different best models on each class according to the default ranking mechanism on the Leaderboard.
164
+
165
+ <table><tr><td rowspan="2">Backbone</td><td rowspan="2">Add-ons</td><td colspan="3">Car L</td><td colspan="3">Pedestrain M</td><td colspan="3">Cyclist</td><td rowspan="2">mAP</td></tr><tr><td>E</td><td>M</td><td>H</td><td>E</td><td></td><td>H</td><td>E</td><td>M</td><td>H</td></tr><tr><td>SqueezeDet RRC</td><td>(Wu et al. (2017)) (Ren et al. (2017))</td><td>90.4 90.61</td><td>87.1 90.23</td><td>78.9 87.44</td><td>81.4 84.16</td><td>71.3 75.33</td><td>68.5 70.39</td><td>87.6 84.96</td><td>80.3 76.49</td><td>78.1 65.46</td><td>80.4 80.56</td></tr><tr><td colspan="2">Best Results on the Leaderboard</td><td>91.96</td><td>91.97</td><td>84.57</td><td>88.27</td><td>81.73</td><td>75.29</td><td>84.28</td><td>79.24</td><td>71.22</td><td>83.17</td></tr><tr><td>PredNet</td><td>(Lotter et al. (2016))</td><td>59.05</td><td>41.61</td><td>37.53</td><td>50.88</td><td>47.51</td><td>43.44</td><td>46.25</td><td>43.79</td><td>38.66</td><td>45.41</td></tr><tr><td>CrevNet</td><td>attention mask + extracted features</td><td>91.53 91.94</td><td>90.95 91.84</td><td>85.71 85.97</td><td>89.31 89.66</td><td>82.55 83.17</td><td>75.21 75.80</td><td>85.51 87.33</td><td>80.41 80.91</td><td>71.52 72.21</td><td>83.63 84.31</td></tr></table>
166
+
167
+ Results: The results of all experiments and baselines can be found in Table 5. Surprisingly, our CrevNet even outperforms the combination of the best model on each class in term of mAP. Since our model is capable of capturing the motion information, it is sensitive to the small (hard) moving objects. However, the motion information alone is not sufficient for object detection due to the appearance of relatively static objects. Therefore, we can observe a performance boost after we incorporate the features extracted by our two-way autoencoder. Another advantage of our method is that it can provide a better localization of bounding box since the learnt features of CrevNet remain the pixel-wise alignment with the input and output frame. Finally, thanks to the lightweight nature of our CrevNet, our best detection model can run at 6.8 FPS at the testing time.
168
+
169
+ # 4 RELATED WORK
170
+
171
+ Deep Learning in Video Prediction: Mainstream video prediction models can mostly be categorized into two frameworks, stacked ConvRNNs and encoder-predictor-decoder models. The former framework attempts to design a new spatiotemporal module and then stacks multiple such modules to form the final model, while the latter usually utilizes an autoencoder to project video frames into their latent representations and then employs a recurrent neural network to model the temporal transformations. PredNet (Lotter et al. (2016)) is a good representative of stacked ConvRNNs framework. In PredNet, each ConvLSTM layer produces a layer-specific prediction at every time step to transmit an error term to the next layer. This model works well for predicting the next frame, but fails to maintain its performance in a long-term setting. To tackle long-term predictions, PredRNN (Wang et al. (2017)) proposed a new spatiotemporal LSTM, which allows memory to flow both vertically and horizontally. PredRNN $^ { + + }$ (Wang et al. (2018)) further improved the results by rearranging spatial and temporal memory in a cascaded mechanism, and by using a gradient highway architecture to ease the optimization. E3D-LSTM (Wang et al. (2019)) effectively recalled the previous memory states and also proposed to include 3D convolutions to enhance its performance. ContextVP (Byeon et al. (2018)) introduced a fully context-aware architecture consisting of parallel multi-dimensional LSTM units and blending units. Methods from stacked ConvRNNs family usually yield more accurate deterministic predictions but they consume considerable GPU memory and computational power as they abandon downsampling to prevent information loss.
172
+
173
+ The encoder-predictor-decoder framework, on the other hand, provides more flexibility than its counterpart. MCNET (Villegas et al. (2017)) and DrNet (Denton et al. (2017)) decompose the content and motion in videos by building their corresponding encoders and then integrate this disentangled information to yield the next frame. Retrospective CycleGAN (Kwon & Park (2019)) combines sequential adversarial loss with frame adversarial loss, which encourages the model to generate frames that are visually similar to authentic images. In terms of modeling stochasticity, SVG (Denton & Fergus (2018)) and SAVG (Lee et al. (2018)) utilize a prior inference network to mimic the uncertainty in the environment, and then embed it into a deterministic generative model to produce stochastic video frames. VPN (Kalchbrenner et al. (2016)) estimates the discrete joint distribution of the raw pixel values in a video using the well-established PixelCNNs. It is worth noticing that VPN employs a resolution-preserving encoder to circumvent the information loss, showing the need for an efficient information-preserving encoder in the community.
174
+
175
+ Comparison with Related Works: To the best of our knowledge, our CrevNet is the first conditionally reversible model in the video prediction literature. There are three prior arts, E3D-LSTM (Wang et al. (2019)), FRNN (Oliu et al. (2018)) and VideoFlow (Kumar et al. (2019)), having some similarities with our CrevNet. While E3D-LSTM also employs 3D convolutions, their implementation is essentially equivalent to applying two 2D convolutional operations, as there is no shared filter on the temporal dimension. Similar to CrevNet, FRNN reduces its computational cost by eliminating the need to re-encode the output of decoder. However, FRNN has a substantially different architecture compared to CrevNet. While the encoder and decoder in our model do not need information sharing at all, FRNN relies heavily on the sharing of the hidden states between them. Although VideoFlow also utilizes invertible transformation. This approach is very different from ours because: (1). VideoFlow is built upon Glow, a very memory-consuming architecture. Such memory limits preclude the use of 3D convolutions, or even from training the model with Adam. (2). They use ANN to model temporal relationship. As such, VideoFlow cannot capture complex dynamics. (3). So far, VideoFlow has only been applied to stochastic video generation instead of deterministic video prediction.
176
+
177
+ The Reversible and Invertible Architectures: The idea of the coupling layer was initially introduced in NICE (Dinh et al. (2014)) so as to make the computation of the determinant of the Jacobian and inverse Jacobian trival. Inspired by additive coupling layer, RevNet (Gomez et al. (2017)) introduced a reversible block that allowed the reconstruction of activations of each layer from that of the next layer, thus eliminating the need to store activations between downsampling and significantly reducing its memory consumption. The follow-up work by (Jacobsen et al. (2018)) further proposed an invertible extension, i-RevNet, which enabled the model to preserve all information of input through layers while still being capable of extracting a useful representation for classification.
178
+
179
+ # 5 CONCLUSION
180
+
181
+ We described a novel conditionally reversible network, CrevNet, for pixel-level prediction of future frames in videos. The originality of our model lies in our use of the reversible two-way autoencoder and the accompanying reversible predictive module. Such architectural design enables the model to preserve fine-grained information without significant memory and computation overhead. CrevNet achieves state-of-the-art results on both synthetic and real-world datasets. The subsequent detection experiments demonstrate the potential of CrevNet to be a continuous self-supervised learning system to enhance downstream CV tasks, as shown in the case of BERT (Devlin et al. (2018)) for NLP tasks.
182
+
183
+ # REFERENCES
184
+
185
+ Dario Amodei, Sundaram Ananthanarayanan, Rishita Anubhai, Jingliang Bai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Qiang Cheng, Guoliang Chen, et al. Deep speech 2: Endto-end speech recognition in english and mandarin. In International Conference on Machine Learning, pp. 173–182, 2016.
186
+
187
+ Wonmin Byeon, Qin Wang, Rupesh Kumar Srivastava, and Petros Koumoutsakos. Contextvp: Fully context-aware video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 753–769, 2018.
188
+
189
+ Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6299–6308, 2017.
190
+
191
+ Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1174–1183, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/denton18a.html.
192
+
193
+ Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in Neural Information Processing Systems, pp. 4417–4426, 2017.
194
+
195
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
196
+
197
+ Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014.
198
+
199
+ Piotr Dollár, Christian Wojek, Bernt Schiele, and Pietro Perona. Pedestrian detection: A benchmark. 2009 IEEE Conference on Computer Vision and Pattern Recognition, 2009.
200
+
201
+ Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pp. 3354–3361. IEEE, 2012.
202
+
203
+ Aidan N Gomez, Mengye Ren, Raquel Urtasun, and Roger B Grosse. The reversible residual network: Backpropagation without storing activations. In Advances in Neural Information Processing Systems, pp. 2211–2221, 2017.
204
+
205
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
206
+
207
+ IARAI. Traffic4cast: Traffic map movie forecasting. https://www.iarai.ac.at/ traffic4cast, 2019. Accessed: 2019-09-25.
208
+
209
+ Jörn-Henrik Jacobsen, Arnold Smeulders, and Edouard Oyallon. i-revnet: Deep invertible networks. arXiv preprint arXiv:1802.07088, 2018.
210
+
211
+ Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Graves, and Koray Kavukcuoglu. Video pixel networks. arXiv preprint arXiv:1610.00527, 2016.
212
+
213
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
214
+
215
+ Manoj Kumar, Mohammad Babaeizadeh, Dumitru Erhan, Chelsea Finn, Sergey Levine, Laurent Dinh, and Durk Kingma. Videoflow: A flow-based generative model for video. arXiv preprint arXiv:1903.01434, 2019.
216
+
217
+ Yong-Hoon Kwon and Min-Gyu Park. Predicting future frames using retrospective cycle gan. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1811–1820, 2019.
218
+
219
+ Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv preprint arXiv:1804.01523, 2018.
220
+
221
+ Xiaodan Liang, Lisa Lee, Wei Dai, and Eric P Xing. Dual motion gan for future-flow embedded video prediction. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1744–1752, 2017.
222
+
223
+ Kun Liu, Wu Liu, Chuang Gan, Mingkui Tan, and Huadong Ma. T-c3d: Temporal convolutional 3d network for real-time action recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
224
+
225
+ Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pp. 21–37. Springer, 2016.
226
+
227
+ William Lotter, Gabriel Kreiman, and David Cox. Deep predictive coding networks for video prediction and unsupervised learning. arXiv preprint arXiv:1605.08104, 2016.
228
+
229
+ Marc Oliu, Javier Selva, and Sergio Escalera. Folded recurrent neural networks for future video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 716–731, 2018.
230
+
231
+ Jimmy Ren, Xiaohao Chen, Jianbo Liu, Wenxiu Sun, Jiahao Pang, Qiong Yan, Yu-Wing Tai, and Li Xu. Accurate single stage detector using recurrent rolling convolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5420–5428, 2017.
232
+
233
+ Shaoqing Ren, Kaiming He, Ross Girprerhick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015.
234
+
235
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computerassisted intervention, pp. 234–241. Springer, 2015.
236
+
237
+ Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1874–1883, 2016.
238
+
239
+ Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pp. 802–810, 2015.
240
+
241
+ Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In International conference on machine learning, pp. 843–852, 2015.
242
+
243
+ Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. arXiv preprint arXiv:1706.08033, 2017.
244
+
245
+ Yunbo Wang, Mingsheng Long, Jianmin Wang, Zhifeng Gao, and S Yu Philip. Predrnn: Recurrent neural networks for predictive learning using spatiotemporal lstms. In Advances in Neural Information Processing Systems, pp. 879–888, 2017.
246
+
247
+ Yunbo Wang, Zhifeng Gao, Mingsheng Long, Jianmin Wang, and Philip S Yu. PredRNN $^ { + + }$ : Towards a resolution of the deep-in-time dilemma in spatiotemporal predictive learning. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5123–5132, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/wang18b.html.
248
+
249
+ Yunbo Wang, Lu Jiang, Ming-Hsuan Yang, Li-Jia Li, Mingsheng Long, and Li Fei-Fei. Eidetic 3d LSTM: A model for video prediction and beyond. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ B1lKS2AqtX.
250
+
251
+ Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004.
252
+
253
+ Bichen Wu, Forrest Iandola, Peter H Jin, and Kurt Keutzer. Squeezedet: Unified, small, low power fully convolutional neural networks for real-time object detection for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 129–137, 2017.
254
+
255
+ # A CONVLSTM AND ST-LSTM
256
+
257
+ The key equations of ConvLSTM are shown as belows.
258
+
259
+ $$
260
+ \begin{array} { r l } & { i _ { t } = \sigma \big ( W _ { x i } \ast \mathcal { X } _ { t } + W _ { h i } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { i } \big ) } \\ & { f _ { t } = \sigma \big ( W _ { x f } \ast \mathcal { X } _ { t } + W _ { h f } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { f } \big ) } \\ & { \mathcal { C } _ { t } ^ { l } = f _ { t } \circ \mathcal { C } _ { t - 1 } ^ { l } + i _ { t } \circ \operatorname { t a n h } \bigl ( W _ { x c } \ast \mathcal { X } _ { t } + W _ { h c } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { c } \bigr ) } \\ & { o _ { t } = \sigma \big ( W _ { x o } \ast \mathcal { X } _ { t } + W _ { h o } \ast \mathcal { H } _ { t - 1 } ^ { l } + W _ { c o } \circ \mathcal { C } _ { t } ^ { l } + b _ { o } \big ) } \\ & { \mathcal { H } _ { t } ^ { l } = o _ { t } \circ \operatorname { t a n h } ( \mathcal { C } _ { t } ^ { l } ) } \end{array}
261
+ $$
262
+
263
+ where $^ *$ denotes the convolution operator and $\circ$ denotes the Hadamard product. Based on ConvLSTM, spatiotemporal LSTM (ST-LSTM) in PredRNN adds another vertical memory flow to enhance the long-term temporal dependency as follow.
264
+
265
+ $$
266
+ \begin{array} { r l } & { i _ { t } = \sigma ( W _ { x i } \ast \mathcal { X } _ { t } + W _ { h i } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { i } ) } \\ & { f _ { t } = \sigma ( W _ { x f } \ast \mathcal { X } _ { t } + W _ { h f } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { f } ) } \\ & { \mathcal { C } _ { t } ^ { l } = f _ { t } \circ \mathcal { C } _ { t - 1 } ^ { l } + i _ { t } \circ \operatorname { t a n h } ( W _ { x c } \ast \mathcal { X } _ { t } + W _ { h c } \ast \mathcal { H } _ { t - 1 } ^ { l } + b _ { c } ) } \\ & { \dot { u } _ { t } ^ { l } = \sigma ( W _ { x i } ^ { r } \ast \mathcal { X } _ { t } + W _ { m i } \ast \mathcal { M } _ { t } ^ { l - 1 } + b _ { i } ^ { i } ) } \\ & { f _ { t } ^ { \prime } = \sigma ( W _ { x f } ^ { r } \ast \mathcal { X } _ { t } + W _ { m f } \ast \mathcal { M } _ { t } ^ { l - 1 } + b _ { f } ^ { \prime } ) } \\ & { \mathcal { M } _ { t } ^ { l } = f _ { t } ^ { \prime } \circ \mathcal { M } _ { t } ^ { l - 1 } + i _ { t } ^ { \prime } \circ \operatorname { t a n h } ( W _ { x m } \ast \mathcal { X } _ { t } + W _ { m m } \ast \mathcal { M } _ { t } ^ { l - 1 } + b _ { m } ) } \\ & { o _ { t } = \sigma ( W _ { x o } \ast \mathcal { X } _ { t } + W _ { h o } \ast \mathcal { H } _ { t - 1 } ^ { l } + W _ { c o } \circ \mathcal { C } _ { t } ^ { l } + W _ { m o } \circ \mathcal { M } _ { t } ^ { l } + b _ { o } ) } \\ & { \mathcal { H } _ { t } = o _ { t } \mathrm { o t } \operatorname { t a n h } ( W _ { 1 x } | C _ { t } ^ { l } , \mathcal { M } _ { t } ^ { l } | ) } \end{array}
267
+ $$
268
+
269
+ where blue part overlaps ConvLSTM. Note that $\mathcal { M } _ { t } ^ { l }$ usually receives information from the previous layer instead of the previous state and the special case is that $\boldsymbol { \mathcal { M } } _ { t } ^ { 1 }$ receives $\mathcal { M } _ { t - 1 } ^ { L }$ to constitute a zigzag information flow. As we can see, ST-LSTM basically doubles the size of feature map and the number of parameters compared with ConvLSTM.
270
+
271
+ # B CONDITIONAL REVERSIBILITY
272
+
273
+ As we mentioned in Section 2.2, conditional reversibility is an interesting property of our CrevNet. In this section, we will provide more details about it. Given $\hat { x } _ { t } ^ { 2 } , x _ { t } ^ { 1 }$ and $h _ { t - 1 } ^ { 1 }$ , the reversible predictive module can recover $\boldsymbol { x } _ { t } ^ { 2 }$ as follow
274
+
275
+ $$
276
+ \begin{array} { r l } & { h _ { t } ^ { 1 } = \mathrm { C o n v R N N } ( x _ { t } ^ { 1 } , h _ { t - 1 } ^ { 1 } ) } \\ & { g _ { t } = \phi ( W * h _ { t } ^ { 1 } + b ) } \\ & { x _ { t } ^ { 2 } = ( \hat { x } _ { t } ^ { 2 } - g _ { t } \odot h _ { t } ^ { 1 } ) \odot 1 / 1 - g _ { t } } \end{array}
277
+ $$
278
+
279
+ Ideally, if there is no numerical error during the calculation, we can get the perfect reconstruction of input by applying this inverse operation repeatedly. In practice, while the most of reverse generations are successful, the inevitable numerical error will still result in some failing cases, especially in the case of a very deep architecture because errors will be amplified layer by layer.
280
+
281
+ C OBJECT DETECTION
282
+
283
+ ![](images/7b2150b3b04ec4bfef448c6064e3b09a1763f16086583fdf4984344b7d0c05cb.jpg)
284
+ Figure 7: Visualization of 2D Object Detection on KITTI.
parse/train/B1eY_pVYvB/B1eY_pVYvB_content_list.json ADDED
@@ -0,0 +1,1528 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EFFICIENT AND INFORMATION-PRESERVING FUTURE FRAME PREDICTION AND BEYOND ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Wei ${ { \\bf { Y } } { \\bf { u } } ^ { 1 } }$ , Yichao $\\mathbf { L u } ^ { 1 }$ , Steve Easterbrook1, Sanja Fidler1,2,3 ",
17
+ "bbox": [
18
+ 183,
19
+ 169,
20
+ 588,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Department of Computer Science, University of Toronto 2Vector Institute, Canada \n3NVIDIA \n{gnosis,yichao,sme,fidler}@cs.toronto.edu ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 555,
32
+ 242
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 279,
43
+ 544,
44
+ 294
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Applying resolution-preserving blocks is a common practice to maximize information preservation in video prediction, yet their high memory consumption greatly limits their application scenarios. We propose CrevNet, a Conditionally Reversible Network that uses reversible architectures to build a bijective two-way autoencoder and its complementary recurrent predictor. Our model enjoys the theoretically guaranteed property of no information loss during the feature extraction, much lower memory consumption and computational efficiency. The lightweight nature of our model enables us to incorporate 3D convolutions without concern of memory bottleneck, enhancing the model’s ability to capture both short-term and long-term temporal dependencies. Our proposed approach achieves state-of-the-art results on Moving MNIST, Traffic4cast and KITTI datasets. We further demonstrate the transferability of our self-supervised learning method by exploiting its learnt features for object detection on KITTI. Our competitive results indicate the potential of using CrevNet as a generative pre-training strategy to guide downstream tasks. ",
51
+ "bbox": [
52
+ 233,
53
+ 313,
54
+ 766,
55
+ 506
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 536,
66
+ 334,
67
+ 553
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Deep learning has enjoyed tremendous success in recent years due to its ability to capture complex dependencies and non-linearities in large datasets (Krizhevsky et al. (2012); He et al. (2016); Gomez et al. (2017)). Excellent performance has been achieved on a wide range of supervised machine learning tasks, ranging from image classification (He et al. (2016)) and object detection (Ren et al. (2015)) to speech recognition (Amodei et al. (2016)). Despite the significant breakthrough in supervised learning, the potential of applying deep architectures to unsupervised learning problems remains largely unexplored. Lately there has been a surge of interest in the task of video prediction, i.e., to predict future frames of a video sequence (Wang et al. (2017; 2018); Denton et al. (2017); Denton & Fergus (2018); Villegas et al. (2017); Lee et al. (2018)). The significance of video prediction primarily lies in its potential of discovering dynamics in the physical world. The self-supervised nature of video prediction aligns well with how humans learn, without requiring large amounts of labeled data. In addition, videos can provide an abundant and virtually unlimited source of visual information. This allows video prediction models to serve as a generative pre-training strategy of feature representation learning for a variety of downstream supervised tasks. ",
74
+ "bbox": [
75
+ 174,
76
+ 569,
77
+ 825,
78
+ 763
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "To date, most of the existing models for video prediction employ a hybrid of convolutional and recurrent layers as the underlying architecture (Wang et al. (2017); Shi et al. (2015); Lotter et al. (2016)). Such architectural design enables the model to simultaneously exploit the ability of convolutional units to model spatial relationships and the potential of recurrent units to capture temporal dependencies. Despite their prevalence in the literature, classical video prediction architectures suffer from two major limitations. Firstly, in dense prediction tasks such as video prediction, models are required to make pixel-wise predictions, which emphasizes the demand for the preservation of information through layers. Prior works attempt to address such demand through the extensive use of resolution-preserving blocks (Wang et al. (2017; 2018); Kalchbrenner et al. (2016)). Nevertheless, these resolution-preserving blocks are not guaranteed to preserve all the relevant information, and they greatly increase the memory consumption and computational cost of the models. The second drawback of existing video prediction models is that they cannot efficiently take advantage of 3D convolutions, as that would make these already cumbersome architectures even larger. 3D convolutions have been shown to be a very effective alternative to RNNs to capture temporal relations in a variety of video tasks (Liu et al. (2018); Carreira & Zisserman (2017)), and thus desirable to exploit. ",
85
+ "bbox": [
86
+ 174,
87
+ 771,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/2814f3e7c41cd24b84d6f7d7d8910bd06c6aa74d5183b36c2eadb0881c09f737.jpg",
96
+ "image_caption": [
97
+ "Figure 1: The pipeline of our proposed CrevNet where a single two-way autoencoder serves as both encoder and decoder. CrevNet first observes a warm-up video sequence and then starts a multi-frame video prediction without refeeding its own predictions. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 204,
102
+ 101,
103
+ 790,
104
+ 262
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 174,
113
+ 338,
114
+ 825,
115
+ 393
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Recently, reversible architectures (Dinh et al. (2014); Gomez et al. (2017); Jacobsen et al. (2018)) have attracted attention due to their light memory demand and their information preserving property by design. However, the effectiveness of reversible models remains greatly unexplored in the video literature. In this paper, we introduce a novel, conditionally reversible video prediction model, CrevNet, in the sense that when conditioned on previous hidden states, it can exactly reconstruct the input from its predictions. The contribution of this work can be summarized as follows: ",
122
+ "bbox": [
123
+ 174,
124
+ 400,
125
+ 825,
126
+ 484
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• We introduce a two-way autoencoder that uses the forward and backward passes of an invertible network as encoder and decoder (Fig 1). The volume-preserving two-way autoencoder not only greatly reduces the memory demand and computational cost, but also enjoys the theoretically guaranteed property of no information loss. The lightweight nature of our model enables us to incorporate 3D convolutions without concern of memory bottleneck. We propose the reversible predictive module (RPM), as illustrated in Fig 2b, which extends the reversibility from spatial to temporal domain. RPM, together with the two-way autoencoder, provides a conditionally reversible architecture (CrevNet) for spatiotemporal learning. CrevNet achieves the state-of-the-art results on Moving MNIST, Traffic4cast and KITTI. We evaluate the effectiveness of features learnt from self-supervision by adapting our CrevNet for object detection on KITTI. Our competitive results indicate the potential of using CrevNet as a generative pre-training strategy to guide downstream CV tasks. ",
133
+ "bbox": [
134
+ 215,
135
+ 494,
136
+ 826,
137
+ 670
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 APPROACH",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 174,
147
+ 689,
148
+ 299,
149
+ 705
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "We first outline the general pipeline of our method. Our CrevNet consists of two subnetworks, an autonencoder network with an encoder $\\mathcal { E }$ , decoder $\\mathcal { D }$ and a recurrent predictor $\\mathcal { P }$ bridging encoder and decoder. Let $\\boldsymbol { x } _ { t } \\in \\mathbb { R } ^ { w \\times h \\times c }$ represent the $t _ { \\mathrm { t h } }$ frame in video $x$ , where $w , h .$ , and $c$ denote its width, height, and the number of channels. Given $x _ { 0 : t - 1 }$ , the model predicts the next frame $\\hat { x } _ { t }$ as follows: ",
156
+ "bbox": [
157
+ 173,
158
+ 719,
159
+ 825,
160
+ 776
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "equation",
166
+ "img_path": "images/61b3e3a7b453b84623249f224e30da8594b7e2c1c2b38c1201522f8bf16742ea.jpg",
167
+ "text": "$$\n\\hat { x } _ { t } = \\mathcal { D } ( \\mathcal { P } ( \\mathcal { E } ( x _ { t - 1 } ) | x _ { 0 : t - 2 } ) )\n$$",
168
+ "text_format": "latex",
169
+ "bbox": [
170
+ 401,
171
+ 779,
172
+ 594,
173
+ 795
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "In the case of 3D convolution, $\\boldsymbol { x } _ { t } \\in \\mathbb { R } ^ { k \\times w \\times h \\times c }$ denotes the short video clip from $t$ to $t + k - 1$ instead of a single frame at timestep $t$ , where $k$ is the temporal dimension of input or output. During the multi-frame generation process without access to the ground truth frames, the model uses its previous predictions instead. ",
180
+ "bbox": [
181
+ 174,
182
+ 796,
183
+ 825,
184
+ 853
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "2.1 THE INVERTIBLE TWO-WAY AUTOENCODER ",
191
+ "text_level": 1,
192
+ "bbox": [
193
+ 174,
194
+ 869,
195
+ 521,
196
+ 883
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "We propose a bijective two-way autoencoder based on the additive coupling layer introduced in NICE (Dinh et al. (2014)). We begin with describing the building block of the two-way autoencoder ",
203
+ "bbox": [
204
+ 176,
205
+ 895,
206
+ 823,
207
+ 924
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "image",
213
+ "img_path": "images/82c62b6a2698f2565cb8ca6a3f84285551bbb5913c9507f6e1009f46cb4a594c.jpg",
214
+ "image_caption": [
215
+ "Figure 2: The network architecture of CrevNet (Better viewed in color). The input video frames are first reshaped and split channelwise into two groups. These two groups are passed to the two-way autoencoder (a) for feature extraction, and then to the predictor made up of multiple reversible predictive modules (b). The transformed high-level features produced by predictor are then passed back through the decoding pass of (a), shown here as a representative block (c) to yield its prediction. "
216
+ ],
217
+ "image_footnote": [],
218
+ "bbox": [
219
+ 207,
220
+ 101,
221
+ 790,
222
+ 285
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "(Fig 2a). Formally, the input $x$ is first reshaped and split channelwise into two groups, denoted as $x ^ { 1 }$ and $x ^ { 2 }$ . During the forward pass of each building block, one group, e.g. $x ^ { 1 }$ , passes through several convolutions and activations and is then added to another group, $x ^ { \\bar { 2 } }$ , like a residual block: ",
229
+ "bbox": [
230
+ 173,
231
+ 390,
232
+ 823,
233
+ 433
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "equation",
239
+ "img_path": "images/d95aecb8c2c14af02e752cc513afd78afeaacd1d65061f104df5d9e2f2402584.jpg",
240
+ "text": "$$\n\\hat { x } ^ { 2 } = x ^ { 2 } + \\mathcal { F } _ { 1 } ( x ^ { 1 } ) \\qquad \\hat { x } ^ { 1 } = x ^ { 1 } + \\mathcal { F } _ { 2 } ( \\hat { x } ^ { 2 } )\n$$",
241
+ "text_format": "latex",
242
+ "bbox": [
243
+ 339,
244
+ 436,
245
+ 656,
246
+ 455
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "where $\\mathcal { F }$ is a composite non-linear operator consisting of convolutions and activations, and ${ \\hat { x } } ^ { 1 }$ and ${ \\hat { x } } ^ { 2 }$ are the updated $x ^ { 1 }$ and $x ^ { 2 }$ . Note that $x ^ { 1 }$ and $x ^ { 2 }$ can be simply recovered from ${ \\hat { x } } ^ { 2 }$ and ${ \\hat { x } } ^ { 1 }$ by the inverse computation (Fig 2c) as follows: ",
253
+ "bbox": [
254
+ 178,
255
+ 463,
256
+ 826,
257
+ 506
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "equation",
263
+ "img_path": "images/9380049f9f3aed3c215b5c5411bf98e9d94ec930e6518078f41fcbb1bbbd2d77.jpg",
264
+ "text": "$$\nx ^ { 1 } = \\hat { x } ^ { 1 } - \\mathcal { F } _ { 2 } ( \\hat { x } ^ { 2 } ) \\qquad x ^ { 2 } = \\hat { x } ^ { 2 } - \\mathcal { F } _ { 1 } ( x ^ { 1 } )\n$$",
265
+ "text_format": "latex",
266
+ "bbox": [
267
+ 341,
268
+ 511,
269
+ 658,
270
+ 530
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Multiple building blocks are stacked in an alternating fashion between $x ^ { 1 }$ and $x ^ { 2 }$ to construct a two-way autoencoder, as shown in Fig 2a. A series of the forward and inverse computations builds a one-to-one and onto, i.e. bijective , mapping between the input and features. Such invertibility ensures that there is no information loss during the feature extraction, which is presumably more favorable for video prediction since the model is expected to restore the future frames with finegrained details. To enable the invertibility of the entire autoencoder, our two-way autoencoder uses a bijective downsampling, pixel shuffle layer (Shi et al. (2016)), that changes the shape of feature from $( w , h , c )$ to $( w / n , \\bar { h } / n , \\bar { c } \\times n ^ { 2 } )$ . The resulting volume-preserving architecture can greatly reduce its memory consumption compared with the existing resolution-preserving methods. ",
277
+ "bbox": [
278
+ 173,
279
+ 536,
280
+ 825,
281
+ 664
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "We further argue that for generative tasks, e.g. video prediction, we can effectively utilize a single two-way autoencoder, and to use its forward and backward pass as the encoder and the decoder, respectively. The predicted frame $\\hat { x } _ { t }$ is thus given by ",
288
+ "bbox": [
289
+ 174,
290
+ 670,
291
+ 825,
292
+ 712
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "equation",
298
+ "img_path": "images/a3839b7c74b4c0b80a36d8f0e702cd15824e7b5565ad9f60df012db0d06e7793.jpg",
299
+ "text": "$$\n\\hat { x } _ { t } = \\mathcal { E } ^ { - 1 } ( \\mathcal { P } ( \\mathcal { E } ( x _ { t - 1 } ) | x _ { 0 : t - 2 } ) )\n$$",
300
+ "text_format": "latex",
301
+ "bbox": [
302
+ 395,
303
+ 717,
304
+ 602,
305
+ 736
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "where ${ { \\mathcal { E } } ^ { - 1 } }$ is the backward pass of $\\mathcal { E }$ . Our rationale is that, such setting would not only reduce the number of parameters in the model, but also encourage the model to explore the shared feature space between the inputs and the targets. As a result, our method does not require any form of information sharing, e.g. skip connection, between the encoder and decoder. In addition, our two-way autoencoder can enjoy a lower computational cost at the multi-frame prediction phase where the encoding pass is no longer needed and the predictor directly takes the output from previous timestep as input, as shown in Fig 1, since $\\mathcal { E } ( \\mathcal { E } ^ { - 1 } )$ is an identity mapping . ",
312
+ "bbox": [
313
+ 174,
314
+ 741,
315
+ 825,
316
+ 840
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "2.2 REVERSIBLE PREDICTIVE MODULE ",
323
+ "text_level": 1,
324
+ "bbox": [
325
+ 176,
326
+ 856,
327
+ 462,
328
+ 869
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "In this section, we describe the second part of our video prediction model, the predictor $\\mathcal { P }$ , which computes dependencies along both the space and time dimensions. Although the traditional stackedConvRNN layers architecture is the most straightforward choice of predictor, we find that it fails to establish a consistent temporal dependency when equipped with our two-way autoencoder through experiments. Therefore, we propose a novel reversible predictive module (RPM), which can be regarded as a recurrent extension of the two-way autoencoder. In the RPM, we substitute all standard convolutions with layers from the ConvRNN family (e.g. ConvLSTM or spatiotemporal LSTM) and introduce a soft attention (weighting gates) mechanism to form a weighted sum of the two groups instead of the direct addition. The main operations of RPM used in this paper are given as follows: ",
335
+ "bbox": [
336
+ 174,
337
+ 881,
338
+ 825,
339
+ 924
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "",
346
+ "bbox": [
347
+ 174,
348
+ 103,
349
+ 823,
350
+ 188
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "ConvRNN ",
357
+ "bbox": [
358
+ 622,
359
+ 195,
360
+ 691,
361
+ 209
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "equation",
367
+ "img_path": "images/530f97d8faf577eafc39dd240b00c9a6595d8f264fd0aafc776adb39772c3705.jpg",
368
+ "text": "$$\n\\begin{array} { r l } & { h _ { t } ^ { 1 } = \\mathrm { C o n v R N N } ( x _ { t } ^ { 1 } , h _ { t - 1 } ^ { 1 } ) } \\\\ & { g _ { t } = \\phi ( W _ { 2 } * \\mathrm { R e L U } ( W _ { 1 } * h _ { t } ^ { 1 } + b _ { 1 } ) + b _ { 2 } ) } \\\\ & { \\hat { x _ { t } ^ { 2 } } = ( 1 - g _ { t } ) \\odot x _ { t } ^ { 2 } + g _ { t } \\odot h _ { t } ^ { 1 } } \\end{array}\n$$",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 259,
372
+ 191,
373
+ 539,
374
+ 257
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Attention module ",
381
+ "bbox": [
382
+ 622,
383
+ 217,
384
+ 736,
385
+ 231
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Weighted sum ",
392
+ "bbox": [
393
+ 622,
394
+ 238,
395
+ 715,
396
+ 252
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "where $\\boldsymbol { x } _ { t } ^ { 1 }$ and $\\boldsymbol { x } _ { t } ^ { 2 }$ denote two groups of features at timestep $t$ , $h _ { t } ^ { 1 }$ denote the hidden states of ConvRNN layer, $\\phi$ is sigmoid activation, $^ *$ is the standard convolution operator and $\\odot$ is the Hadamard product. The architecture of reversible predictive module is also shown in Fig 2b. RPM adopts a similar architectural design as the two-way autoencoder to ensure a pixel-wise alignment between the input and the output, i.e. each position of features can be traced back to certain pixel, and thus make it compatible with our two-way autoencoder. It also mitigates the vanishing gradient issues across stacked layers since the coupling layer provides a nice property w.r.t. the Jacobian (Dinh et al. (2014)). In addition, the attention mechanism in the RPM enables the model to focus on objects in motion instead of background, which further improves the video prediction quality. Similarly, multiple RPMs alternate between the two groups to form a predictor. We call this predictor conditionally reversible since, given $h _ { t - 1 }$ , we are able to reconstruct $x _ { t - 1 }$ from $\\hat { x } _ { t }$ if there are no numerical errors: ",
403
+ "bbox": [
404
+ 173,
405
+ 262,
406
+ 825,
407
+ 416
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "equation",
413
+ "img_path": "images/3de1193dd535592a443543cd614eef93c5c7e331cdfd62cac2995db79a841eba.jpg",
414
+ "text": "$$\nx _ { t - 1 } = \\mathcal { E } ^ { - 1 } ( \\mathcal { P } ^ { - 1 } ( \\mathcal { E } ( \\hat { x } _ { t } ) | h _ { t - 1 } ) )\n$$",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 392,
418
+ 421,
419
+ 606,
420
+ 440
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "where $\\mathcal { P } ^ { - 1 }$ is the inverse computation of the predictor $\\mathcal { P }$ . We name the video prediction model using two-way autoencoder as its backbone and RPMs as its predictor CrevNet. Another key factor of RPM is the choice of ConvRNN. In this paper, we mainly employ ConvLSTM (Shi et al. (2015)) and spatiotemporal LSTM (ST-LSTM, Wang et al. (2017)) to enable a fair comparison with baselines. ",
427
+ "bbox": [
428
+ 174,
429
+ 446,
430
+ 825,
431
+ 503
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "2.3 3D CONVOLUTIONS ",
438
+ "text_level": 1,
439
+ "bbox": [
440
+ 176,
441
+ 520,
442
+ 354,
443
+ 534
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "3D convolutions are proposed to address the shortcomings of standard 2D convolutions. The major difference between 2D-CNNs and 3D-CNNs is that at each time step 2D-CNNs take as input one video frame, while 3D-CNNs read in and output a short video clip containing $k$ continuous video frames. By applying convolutions on the temporal dimension along with the spatial dimension, models equipped with 3D convolution filters can not only extract representative spatiotemporal features, but also learn to produce consistent video clip at each generation, which further improve the quality of long-term prediction. In some cases, e.g. sequences are too short, we will use 2 consecutive frames stacked in the channel dimension instead as input at each timestep to assemble a valid warm-up sequence for ConvRNN. ",
450
+ "bbox": [
451
+ 174,
452
+ 545,
453
+ 825,
454
+ 671
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "3 EXPERIMENTS ",
461
+ "text_level": 1,
462
+ "bbox": [
463
+ 176,
464
+ 691,
465
+ 326,
466
+ 708
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "3.1 LONG-TERM PREDICTION—MOVING MNIST ",
473
+ "text_level": 1,
474
+ "bbox": [
475
+ 176,
476
+ 723,
477
+ 529,
478
+ 738
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "Moving MNIST (Srivastava et al. (2015)) is a synthetically generated dataset that contains an infinite number of sequences of length 20. Each sequence shows how 2 digits move at a constant speed and bounce inside a $6 4 \\times 6 4$ frame, where each handwritten digit is randomly sampled from the MNIST dataset. By assigning different initial locations and velocities to each digit, it is possible to generate an unlimited number of sequences, thus enabling us to accurately evaluate the performance of each model without the concern of data insufficiency issues. In the default setting, models are trained to predict 10 future frames after observing 10 prior frames in the sequence. Although the dynamics of Moving MNIST seems to be simple at first glance. It is quite hard to generate consistent future frames in the task of long-term prediction as digits can bounce or occlude each other frequently. ",
485
+ "bbox": [
486
+ 174,
487
+ 748,
488
+ 825,
489
+ 875
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "Datasets and Setup: The general architecture of CrevNet used on Moving MNIST is composed of a 36-layer two-way autoencoder and 8 RPMs. All variants of CrevNet are trained by using the Adam optimizer with a starting learning rate of $5 \\times 1 0 ^ { - 4 }$ to minimize MSE. The training process is stopped ",
496
+ "bbox": [
497
+ 176,
498
+ 882,
499
+ 823,
500
+ 924
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "table",
506
+ "img_path": "images/1aa6e3d4cafbe149996ed511c28554bb07fd62b3aaffd7270ba4ba6cd6c446ea.jpg",
507
+ "table_caption": [
508
+ "after 300, 000 iterations with the batch size of 16 and evaluated with a fixed test set containing 5, 000 sequences. To ensure that all samples in the test set are unseen by the model, digits in the training set and the testing set are separately sampled from two mutually exclusive subsets of MNIST. "
509
+ ],
510
+ "table_footnote": [],
511
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">MNIST-2</td><td colspan=\"2\">MNIST-3 MSE</td><td rowspan=\"2\">Memory (1 sample)</td><td rowspan=\"2\">FLOPS (1 frame)</td></tr><tr><td>SSIM</td><td>MSE</td><td>Human</td><td>SSIM</td><td></td></tr><tr><td>ConvLSTM (Shi et al. (2015))</td><td>0.707</td><td>103.3</td><td>0.923</td><td>0.695</td><td>127.3</td><td>1043 MB</td><td>107.4 G</td></tr><tr><td>FRNN (Oliu et al. (2018))</td><td>0.819</td><td>68.4</td><td>0.848</td><td>0.791</td><td>90.4</td><td>717MB</td><td>80.1G</td></tr><tr><td>VPN (Kalchbrenner et al. (2016))</td><td>0.870</td><td>70.0</td><td>0.831</td><td>0.820</td><td>85.6</td><td>5206MB</td><td>309.6 G</td></tr><tr><td>PredRNN (Wang et al. (2017))</td><td>0.869</td><td>56.8</td><td>0.837</td><td>0.822</td><td>83.1</td><td>1666 MB</td><td>192.9 G</td></tr><tr><td>PredRNN++ (Wang et al. (2018))</td><td>0.898</td><td>46.5</td><td>0.781</td><td>0.864</td><td>68.4</td><td>2017MB</td><td>106.8 G</td></tr><tr><td>E3D-LSTM (Wang et al. (2019))</td><td>0.910</td><td>41.3</td><td>0.706</td><td>0.870</td><td>62.4</td><td>2695 MB</td><td>381.3 G</td></tr><tr><td>CrevNet+ConvLSTM</td><td>0.928</td><td>38.5</td><td>0.602</td><td>0.886</td><td>57.2</td><td>130 MB</td><td>0.919 G</td></tr><tr><td>CrevNet + ST-LSTM</td><td>0.949</td><td>22.3</td><td>0.558</td><td>0.916</td><td>40.6</td><td>195MB</td><td>1.618 G</td></tr></table>",
512
+ "bbox": [
513
+ 171,
514
+ 157,
515
+ 825,
516
+ 301
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Table 1: Quantitative evaluation of different methods on Moving MNIST. All metrics are averaged over the 10 predictions. Lower MSE and higher SSIM indicates better prediction accuracy. ",
523
+ "bbox": [
524
+ 174,
525
+ 310,
526
+ 823,
527
+ 340
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "We compare CrevNet to six popular benchmark models from the literature: (i) ConvLSTM (Shi et al. (2015)), (ii) FRNN (Oliu et al. (2018)), (iii) VPN (Kalchbrenner et al. (2016)), (iv) PredRNN (Wang et al. (2017)) , (v) PredRNN $^ { + + }$ (Wang et al. (2018)), and (vi) E3D-LSTM (Wang et al. (2019)),. All baselines are implemented and optimized by following their corresponding protocols. To test our model in a more challenging setting, we also extend Moving MNIST to a 3-digit version where digits are more likely to occlude each other. ",
534
+ "bbox": [
535
+ 173,
536
+ 354,
537
+ 825,
538
+ 438
539
+ ],
540
+ "page_idx": 4
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "Results: The performance of each model in terms of per-frame MSE and the Structural Similarity Index Measure (SSIM) (Wang et al. (2004)) is presented in Table 1. CrevNet outperforms all previous methods by a wide margin on both metrics while memory consumption of all CrevNet variants is significantly lower than that of other baselines. In particular, CrevNet with ConvLSTM only uses 130 MB memory per sample and is still capable of yielding results better than any baselines. ",
545
+ "bbox": [
546
+ 174,
547
+ 444,
548
+ 825,
549
+ 515
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "To analyze the contribution of each module, we conduct an ablation study on both ConvLSTM and ST-LSTM with respect to 3D convolution, two-way autoencoder and RPM and summarize the results in Table 2. Note that we do not include the quantitative results of the combination of two-way autoencoder and stack-ConvRNN predictor because it fails to produce consistent long-term generations and we choose UNet (Ronneberger et al. (2015)) as an alternative to our two-way autoencoder. We can observe a significant improvement over ConvLSTM after we embed it into our CrevNet framework, indicating the effectiveness of reversible architectures. Also, integrating 3D convolution can consistently enhance the performance of all architectures. To further show the superior performance of CrevNet, we evaluate it on a harder 3-digit setting. Results are shown in the right column of Table 1. Compared with the 2-digit setting, all models suffer a deterioration in quantitative performance due to the more frequent occurrence of overlapping digits. Nevertheless, our CrevNet still achieves the best result. ",
556
+ "bbox": [
557
+ 173,
558
+ 522,
559
+ 825,
560
+ 688
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "image",
566
+ "img_path": "images/7ed8d7ba2d38f9bb78e2fb72587a3164387b1cd5d302ac1569447f621063ef89.jpg",
567
+ "image_caption": [
568
+ "Figure 3: An extremely hard sequence of Moving MNIST where two digits are continuously overlapped during the warm-up phase. "
569
+ ],
570
+ "image_footnote": [],
571
+ "bbox": [
572
+ 174,
573
+ 705,
574
+ 482,
575
+ 837
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "table",
581
+ "img_path": "images/4208b05051866c5c53c107bf9ad21ea65eed4d4e2e2e3847cf81ae1e953d4187.jpg",
582
+ "table_caption": [],
583
+ "table_footnote": [],
584
+ "table_body": "<table><tr><td>Model</td><td>ConvLSTM MSE SSIM|</td><td>ST-LSTM MSE SSIM</td></tr><tr><td>Stacked-RNN</td><td>103.3 0.707</td><td>56.8 0.869</td></tr><tr><td>3D Stacked-RNN</td><td>85.8 0.785</td><td>46.2 0.878</td></tr><tr><td>UNet+StackedRNN 83.5</td><td>0.793</td><td>58.8 0.865</td></tr><tr><td>UNet+RPM</td><td>63.4 0.855</td><td>50.2 0.896</td></tr><tr><td>CrevNet w/o 3D</td><td>50.2 0.888</td><td>40.4 0.916</td></tr><tr><td>CrevNet + 3D</td><td>38.5 0.928</td><td>22.3 0.949</td></tr></table>",
585
+ "bbox": [
586
+ 509,
587
+ 705,
588
+ 825,
589
+ 835
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Table 2: An ablation study w.r.t. 3D convolution, RPM and two-way autoencoder. All metrics are averaged over the 10 predictions. ",
596
+ "bbox": [
597
+ 509,
598
+ 847,
599
+ 825,
600
+ 888
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "In Fig 3 , our qualitative analysis shows how each model performs on an extremely hard case of Moving MNIST where two digits are continuously overlapped during the warm-up phase. ",
607
+ "bbox": [
608
+ 171,
609
+ 895,
610
+ 826,
611
+ 924
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "image",
617
+ "img_path": "images/5d5e85adb45b4e2b127effb0619d1ce9ff93eb2c78c8c9d4df842a4141a5c165.jpg",
618
+ "image_caption": [
619
+ "Figure 4: The visual comparison of Traffic4cast. The red boxes track some dynamics successfully captured by our CrevNet. Better viewed large. "
620
+ ],
621
+ "image_footnote": [],
622
+ "bbox": [
623
+ 174,
624
+ 102,
625
+ 820,
626
+ 243
627
+ ],
628
+ "page_idx": 5
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "As we can see, our model is the only model that can differentiate the overlapping digits. The information-preserving property of the two-way autoencoder enables our method to reconstruct every fine detail of moving digits after occlusion while baselines typically only restore the basic shape of these numbers. In fact, our CrevNet works almost perfectly on Moving MNIST, with most of its generations being visually indistinguishable from groundtruth. ",
633
+ "bbox": [
634
+ 174,
635
+ 304,
636
+ 825,
637
+ 375
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "We perform a human study to assess the fidelity of the video clips generated by different models. We presented pairs of video clips to human judges, where each pair consists of a video clip from the test set together with the prediction generated by the model. The judges were asked to decide which of the two video clips is more likely to be the groundtruth. To make each trail blind, the judges were not informed which model is used for generation and two sequences were randomly displayed on either side of the screen. We totally collected 2439 responses made by 58 human subjects and then calculated the probability that human judges answered correctly. The results are reported in Table 1. The accuracy of $5 5 . 8 \\%$ suggests that subjects could hardly detect the difference and their decisions were very close to random guesses. ",
644
+ "bbox": [
645
+ 173,
646
+ 395,
647
+ 825,
648
+ 520
649
+ ],
650
+ "page_idx": 5
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "3.2 SHORT-TERM PREDICTION—TRAFFIC FLOW FORECASTING ",
655
+ "text_level": 1,
656
+ "bbox": [
657
+ 174,
658
+ 540,
659
+ 619,
660
+ 554
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Next, we evaluate our model on a more complicated real-world dataset, Traffic4cast (IARAI (2019)), which collects the traffic statuses of 3 big cities over a year at a 5-minute interval. Traffic forecasting can be straightforwardly defined as video prediction task by its spatiotemporal nature. However, this dataset is quite challenging for the following reasons. (1). High resolution: The frame resolution of Traffic4cast is $4 9 5 \\times 4 3 6$ , which is the highest among all datasets. Existing resolution-preserving methods can hardly be adapted to this dataset since they all require extremely large memory and computation. Even if these models can be fitted in GPUs, they still do not have large enough receptive fields to capture the meaningful dynamics as vehicles can move up to 100 pixels between consecutive frames. (2). Complicated nonlinear dynamics: Valid data points only reside on the hidden roadmap of each city, which is not explicitly provided in this dataset. Moving vehicles on these curved roads along with tangled road conditions will produce very complex nonlinear behaviours. It also involves many unobservable conditions or random events like weather and car accidents. ",
667
+ "bbox": [
668
+ 174,
669
+ 565,
670
+ 825,
671
+ 733
672
+ ],
673
+ "page_idx": 5
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "Datasets and Setup: Each frame in Traffic4cast dataset is a $4 9 5 \\times 4 3 6 \\times 3$ heatmap, where the last dimension records 3 traffic statuses representing volume, mean speed and major direction at given location. The architecture of CrevNet is the same as the one we used on Moving MNIST. As we mentioned before, the existing resolution-preserving methods cannot handle such high resolution input. Thus, to make the comparison possible, we add U-Net encoder-decoder to the baseline models including ConvLSTM and ST-LSTM. We train each model to predict next 3 frames (the next 15 minutes) from 9 observations and evaluate prediction with MSE criterion. ",
678
+ "bbox": [
679
+ 174,
680
+ 739,
681
+ 825,
682
+ 838
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "table",
688
+ "img_path": "images/95fbe680383c4a027540e26210dcfbb0d13f584aa464962f6bed9037f37a43bd.jpg",
689
+ "table_caption": [],
690
+ "table_footnote": [
691
+ "Table 3: Quantitative evaluation on Traffic4cast. Lower MSE indicates better prediction accuracy. "
692
+ ],
693
+ "table_body": "<table><tr><td>Model</td><td>CrevNet</td><td>UNet+ST-LSTM</td><td>UNet+ConvLSTM丨Best Team</td><td></td><td>2nd Best Team</td></tr><tr><td>MSE</td><td>9.340×10-3</td><td>9.725× 10-3</td><td>9.846 ×10-3</td><td>9.559×10-3</td><td>9.717 × 10-3</td></tr></table>",
694
+ "bbox": [
695
+ 171,
696
+ 853,
697
+ 826,
698
+ 895
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "image",
704
+ "img_path": "images/d59d0905d69ce4a69c2e0d6fb0d4d47d0f31ad6570a2d67a3b99ee83bd6a76ef.jpg",
705
+ "image_caption": [
706
+ "Figure 5: The visual comparison of next-frame predictions on Caltech Pedestrian. "
707
+ ],
708
+ "image_footnote": [],
709
+ "bbox": [
710
+ 176,
711
+ 103,
712
+ 818,
713
+ 449
714
+ ],
715
+ "page_idx": 6
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Results: The quantitative comparison including the best two results on the leaderboard before the submission of this paper is provided in Table 3. Unlike all previous state-of-the-art methods, CrevNet does not suffer from high memory consumption so that we were able to train our model in a single V100 GPU. The invertibility of two-way autoencoder preserves all necessary information for spatiotemporal learning and allows our model to generate sharp and reasonable predictions. As illustrated in Fig 4, our model can identify and remember the hidden roadmap of each city through the learning of complicated nonlinear dynamics and accurately predict how traffic system will evolve. ",
720
+ "bbox": [
721
+ 174,
722
+ 494,
723
+ 825,
724
+ 592
725
+ ],
726
+ "page_idx": 6
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "3.3 NEXT-FRAME PREDICTION AND BEYOND—CAR-MOUNTED CAMERA VIDEO ",
731
+ "text_level": 1,
732
+ "bbox": [
733
+ 176,
734
+ 608,
735
+ 735,
736
+ 622
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "The real-world videos are usually long-term unpredictable because of the intrinsic randomness and the lack of necessary information. Thus, the common practice for datasets like KITTI (Geiger et al. (2012)), a car-mounted camera video dataset, is to perform next-frame prediction. In this section, we further demonstrate the superior performance of our CrevNet by conducting experiments on KITTI and Caltech Pedestrian (Dollár et al. (2009)). Compared with the previous two settings, carmounted camera videos dataset presents another level of difficulty for video prediction as it describes various nonlinear three-dimensional dynamics of multiple moving objects including backgrounds. Furthermore, as our well-trained model is capable of generating authentic future frames, it should spontaneously learn at least the shape and location of all moving objects, which indicates that the learnt features are very informative for downstream tasks. For example, in the case of object detection, these features can be incorporated to estimate more accurate locations and sizes of bounding boxes. Therefore, we also explore the effectiveness of our self-supervised learning method on the 2D object detection on KITTI. ",
743
+ "bbox": [
744
+ 174,
745
+ 633,
746
+ 825,
747
+ 814
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "3.3.1 VIDEO PREDICTION ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 176,
757
+ 830,
758
+ 362,
759
+ 843
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Datasets and Setup: We follow the same protocol used in PredNet (Lotter et al. (2016)) for preprocessing and evaluation. We first center-crop all video frames and resize them into $1 2 8 \\times 1 6 0$ . We compare our proposed method with 4 state-of-the-art benchmark models. Models are trained on KITTI dataset to predict the next frame after 10-frame warm-up and are evaluated on Caltech Pedestrian. The architecture of CrevNet used on KITTI is composed of a 48-layer two-way autoencoder and 40 RPMs. Note that it is the memory efficiency of our method that allows us to deploy such deep model. Since our model also possess good capability of long-term prediction. We add a 12-frame prediction comparison with CycleGAN (Kwon & Park (2019)) and PredNet (Lotter et al. (2016)). ",
766
+ "bbox": [
767
+ 174,
768
+ 854,
769
+ 825,
770
+ 922
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "image",
776
+ "img_path": "images/0deecc352bfbe70c65085939887ec28bba178661485724005c1bcff8bc8ec03e.jpg",
777
+ "image_caption": [
778
+ "Figure 6: The visual comparison of 12-frame prediction on Caltech Pedestrian. Notice how well CrevNet captures the detail and geometry of the buildings in the background, and the overall shading. "
779
+ ],
780
+ "image_footnote": [],
781
+ "bbox": [
782
+ 179,
783
+ 102,
784
+ 820,
785
+ 407
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "",
792
+ "bbox": [
793
+ 174,
794
+ 468,
795
+ 825,
796
+ 512
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "table",
802
+ "img_path": "images/f84c2ec775ee9046b89ae75fff242d4d36554a7ec0dca297d612d9e21ac999d3.jpg",
803
+ "table_caption": [],
804
+ "table_footnote": [],
805
+ "table_body": "<table><tr><td>Model</td><td colspan=\"2\">Next-Frame</td><td>3rd</td><td>6th</td><td>9th</td><td>12th</td><td>Average</td></tr><tr><td></td><td>PSNR</td><td>SSIM</td><td colspan=\"5\">SSIM</td></tr><tr><td>Copy-Last-Frame Dual Motion GAN (Liang et al. (2017))</td><td>23.3</td><td>0.779 0.899</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>ContextVP (Byeon et al. (2018)) PredNet (Lotter et al. (2016))</td><td>28.7 27.6</td><td>0.921 0.905</td><td>0.72</td><td>0.66</td><td>0.61</td><td>0.58</td><td>0.701</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CycleGAN (Kwon &amp; Park (2019))</td><td>29.2</td><td>0.919</td><td>0.83</td><td>0.73</td><td>0.67</td><td>0.63</td><td>0.752</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>CrevNet</td><td>29.3</td><td>0.925</td><td>0.84</td><td>0.76</td><td>0.70</td><td>0.65</td><td>0.776</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
806
+ "bbox": [
807
+ 176,
808
+ 525,
809
+ 820,
810
+ 661
811
+ ],
812
+ "page_idx": 7
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Table 4: Quantitative evaluation of different methods on the Caltech Pedestrian dataset. Higher PSNR or SSIM means better prediction accuracy. ",
817
+ "bbox": [
818
+ 173,
819
+ 671,
820
+ 823,
821
+ 699
822
+ ],
823
+ "page_idx": 7
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "Results: Performance of different models in terms of PSNR and SSIM is displayed in Table 4. CrevNet outperforms all baselines in both next-frame and multi-frame prediction regimes. Visual comparisons are provided in Fig 5 and Fig 6. Especially, in the case of 12-frame generation, we can observe that compared with our method, PredNet suffers severely from the famous error propagation of RNN issue while CycleGAN produces realistic yet physically inconsistent predictions. ",
828
+ "bbox": [
829
+ 174,
830
+ 715,
831
+ 825,
832
+ 786
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "3.3.2 2D OBJECT DETECTION ",
839
+ "text_level": 1,
840
+ "bbox": [
841
+ 174,
842
+ 801,
843
+ 397,
844
+ 816
845
+ ],
846
+ "page_idx": 7
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Datasets and Setup: KITTI provides three prior frames of unlabeled data for each labeled image. This allows us to run our CrevNet to extract useful spatiotemporal features for object detection. All video sequences were recorded at $1 0 \\ : \\mathrm { H z }$ with resolution of $1 2 4 2 \\times 3 7 5$ . We first resize each frame to $4 1 6 \\times 1 2 8$ and finetune our best model on the video prediction task solely. The combinations of features extracted by our two-way autoencoder and attention masks of the target frame are then fed into the detection head for the further training. Note that we do not update the weights of CrevNet at this stage to purely demonstrate the power of self-supervised learning. Two image-based detection models, SqueezeDet and RRC, are compared as baselines. We also add an experiment on transfer learning of features learnt by PredNet on KITTI as comparison. To be consistent with related work, we use SSD (Liu et al. (2016)) as detection head. ",
851
+ "bbox": [
852
+ 174,
853
+ 825,
854
+ 825,
855
+ 924
856
+ ],
857
+ "page_idx": 7
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "",
862
+ "bbox": [
863
+ 173,
864
+ 103,
865
+ 825,
866
+ 146
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "table",
872
+ "img_path": "images/4b6cfaf8ca9ffb0affdd5164b8168c8fc38add6fd288de6a9eb46b2929055867.jpg",
873
+ "table_caption": [
874
+ "Table 5: Quantitative evaluation of different methods on 2D KITTI detection in term of Average Precision (AP). The numbers in the \"Best Results on the Leaderboard \" are achieved by different best models on each class according to the default ranking mechanism on the Leaderboard. "
875
+ ],
876
+ "table_footnote": [],
877
+ "table_body": "<table><tr><td rowspan=\"2\">Backbone</td><td rowspan=\"2\">Add-ons</td><td colspan=\"3\">Car L</td><td colspan=\"3\">Pedestrain M</td><td colspan=\"3\">Cyclist</td><td rowspan=\"2\">mAP</td></tr><tr><td>E</td><td>M</td><td>H</td><td>E</td><td></td><td>H</td><td>E</td><td>M</td><td>H</td></tr><tr><td>SqueezeDet RRC</td><td>(Wu et al. (2017)) (Ren et al. (2017))</td><td>90.4 90.61</td><td>87.1 90.23</td><td>78.9 87.44</td><td>81.4 84.16</td><td>71.3 75.33</td><td>68.5 70.39</td><td>87.6 84.96</td><td>80.3 76.49</td><td>78.1 65.46</td><td>80.4 80.56</td></tr><tr><td colspan=\"2\">Best Results on the Leaderboard</td><td>91.96</td><td>91.97</td><td>84.57</td><td>88.27</td><td>81.73</td><td>75.29</td><td>84.28</td><td>79.24</td><td>71.22</td><td>83.17</td></tr><tr><td>PredNet</td><td>(Lotter et al. (2016))</td><td>59.05</td><td>41.61</td><td>37.53</td><td>50.88</td><td>47.51</td><td>43.44</td><td>46.25</td><td>43.79</td><td>38.66</td><td>45.41</td></tr><tr><td>CrevNet</td><td>attention mask + extracted features</td><td>91.53 91.94</td><td>90.95 91.84</td><td>85.71 85.97</td><td>89.31 89.66</td><td>82.55 83.17</td><td>75.21 75.80</td><td>85.51 87.33</td><td>80.41 80.91</td><td>71.52 72.21</td><td>83.63 84.31</td></tr></table>",
878
+ "bbox": [
879
+ 176,
880
+ 160,
881
+ 821,
882
+ 276
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "Results: The results of all experiments and baselines can be found in Table 5. Surprisingly, our CrevNet even outperforms the combination of the best model on each class in term of mAP. Since our model is capable of capturing the motion information, it is sensitive to the small (hard) moving objects. However, the motion information alone is not sufficient for object detection due to the appearance of relatively static objects. Therefore, we can observe a performance boost after we incorporate the features extracted by our two-way autoencoder. Another advantage of our method is that it can provide a better localization of bounding box since the learnt features of CrevNet remain the pixel-wise alignment with the input and output frame. Finally, thanks to the lightweight nature of our CrevNet, our best detection model can run at 6.8 FPS at the testing time. ",
889
+ "bbox": [
890
+ 173,
891
+ 347,
892
+ 825,
893
+ 472
894
+ ],
895
+ "page_idx": 8
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "4 RELATED WORK ",
900
+ "text_level": 1,
901
+ "bbox": [
902
+ 176,
903
+ 496,
904
+ 341,
905
+ 511
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Deep Learning in Video Prediction: Mainstream video prediction models can mostly be categorized into two frameworks, stacked ConvRNNs and encoder-predictor-decoder models. The former framework attempts to design a new spatiotemporal module and then stacks multiple such modules to form the final model, while the latter usually utilizes an autoencoder to project video frames into their latent representations and then employs a recurrent neural network to model the temporal transformations. PredNet (Lotter et al. (2016)) is a good representative of stacked ConvRNNs framework. In PredNet, each ConvLSTM layer produces a layer-specific prediction at every time step to transmit an error term to the next layer. This model works well for predicting the next frame, but fails to maintain its performance in a long-term setting. To tackle long-term predictions, PredRNN (Wang et al. (2017)) proposed a new spatiotemporal LSTM, which allows memory to flow both vertically and horizontally. PredRNN $^ { + + }$ (Wang et al. (2018)) further improved the results by rearranging spatial and temporal memory in a cascaded mechanism, and by using a gradient highway architecture to ease the optimization. E3D-LSTM (Wang et al. (2019)) effectively recalled the previous memory states and also proposed to include 3D convolutions to enhance its performance. ContextVP (Byeon et al. (2018)) introduced a fully context-aware architecture consisting of parallel multi-dimensional LSTM units and blending units. Methods from stacked ConvRNNs family usually yield more accurate deterministic predictions but they consume considerable GPU memory and computational power as they abandon downsampling to prevent information loss. ",
912
+ "bbox": [
913
+ 174,
914
+ 529,
915
+ 825,
916
+ 777
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "The encoder-predictor-decoder framework, on the other hand, provides more flexibility than its counterpart. MCNET (Villegas et al. (2017)) and DrNet (Denton et al. (2017)) decompose the content and motion in videos by building their corresponding encoders and then integrate this disentangled information to yield the next frame. Retrospective CycleGAN (Kwon & Park (2019)) combines sequential adversarial loss with frame adversarial loss, which encourages the model to generate frames that are visually similar to authentic images. In terms of modeling stochasticity, SVG (Denton & Fergus (2018)) and SAVG (Lee et al. (2018)) utilize a prior inference network to mimic the uncertainty in the environment, and then embed it into a deterministic generative model to produce stochastic video frames. VPN (Kalchbrenner et al. (2016)) estimates the discrete joint distribution of the raw pixel values in a video using the well-established PixelCNNs. It is worth noticing that VPN employs a resolution-preserving encoder to circumvent the information loss, showing the need for an efficient information-preserving encoder in the community. ",
923
+ "bbox": [
924
+ 174,
925
+ 785,
926
+ 825,
927
+ 924
928
+ ],
929
+ "page_idx": 8
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "",
934
+ "bbox": [
935
+ 171,
936
+ 103,
937
+ 823,
938
+ 132
939
+ ],
940
+ "page_idx": 9
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Comparison with Related Works: To the best of our knowledge, our CrevNet is the first conditionally reversible model in the video prediction literature. There are three prior arts, E3D-LSTM (Wang et al. (2019)), FRNN (Oliu et al. (2018)) and VideoFlow (Kumar et al. (2019)), having some similarities with our CrevNet. While E3D-LSTM also employs 3D convolutions, their implementation is essentially equivalent to applying two 2D convolutional operations, as there is no shared filter on the temporal dimension. Similar to CrevNet, FRNN reduces its computational cost by eliminating the need to re-encode the output of decoder. However, FRNN has a substantially different architecture compared to CrevNet. While the encoder and decoder in our model do not need information sharing at all, FRNN relies heavily on the sharing of the hidden states between them. Although VideoFlow also utilizes invertible transformation. This approach is very different from ours because: (1). VideoFlow is built upon Glow, a very memory-consuming architecture. Such memory limits preclude the use of 3D convolutions, or even from training the model with Adam. (2). They use ANN to model temporal relationship. As such, VideoFlow cannot capture complex dynamics. (3). So far, VideoFlow has only been applied to stochastic video generation instead of deterministic video prediction. ",
945
+ "bbox": [
946
+ 174,
947
+ 138,
948
+ 825,
949
+ 333
950
+ ],
951
+ "page_idx": 9
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "The Reversible and Invertible Architectures: The idea of the coupling layer was initially introduced in NICE (Dinh et al. (2014)) so as to make the computation of the determinant of the Jacobian and inverse Jacobian trival. Inspired by additive coupling layer, RevNet (Gomez et al. (2017)) introduced a reversible block that allowed the reconstruction of activations of each layer from that of the next layer, thus eliminating the need to store activations between downsampling and significantly reducing its memory consumption. The follow-up work by (Jacobsen et al. (2018)) further proposed an invertible extension, i-RevNet, which enabled the model to preserve all information of input through layers while still being capable of extracting a useful representation for classification. ",
956
+ "bbox": [
957
+ 174,
958
+ 340,
959
+ 825,
960
+ 452
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "5 CONCLUSION ",
967
+ "text_level": 1,
968
+ "bbox": [
969
+ 176,
970
+ 472,
971
+ 318,
972
+ 488
973
+ ],
974
+ "page_idx": 9
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "We described a novel conditionally reversible network, CrevNet, for pixel-level prediction of future frames in videos. The originality of our model lies in our use of the reversible two-way autoencoder and the accompanying reversible predictive module. Such architectural design enables the model to preserve fine-grained information without significant memory and computation overhead. CrevNet achieves state-of-the-art results on both synthetic and real-world datasets. The subsequent detection experiments demonstrate the potential of CrevNet to be a continuous self-supervised learning system to enhance downstream CV tasks, as shown in the case of BERT (Devlin et al. (2018)) for NLP tasks. ",
979
+ "bbox": [
980
+ 174,
981
+ 503,
982
+ 825,
983
+ 601
984
+ ],
985
+ "page_idx": 9
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "REFERENCES ",
990
+ "text_level": 1,
991
+ "bbox": [
992
+ 174,
993
+ 622,
994
+ 285,
995
+ 637
996
+ ],
997
+ "page_idx": 9
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Dario Amodei, Sundaram Ananthanarayanan, Rishita Anubhai, Jingliang Bai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Qiang Cheng, Guoliang Chen, et al. Deep speech 2: Endto-end speech recognition in english and mandarin. In International Conference on Machine Learning, pp. 173–182, 2016. ",
1002
+ "bbox": [
1003
+ 173,
1004
+ 646,
1005
+ 825,
1006
+ 702
1007
+ ],
1008
+ "page_idx": 9
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Wonmin Byeon, Qin Wang, Rupesh Kumar Srivastava, and Petros Koumoutsakos. Contextvp: Fully context-aware video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 753–769, 2018. ",
1013
+ "bbox": [
1014
+ 173,
1015
+ 712,
1016
+ 823,
1017
+ 753
1018
+ ],
1019
+ "page_idx": 9
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6299–6308, 2017. ",
1024
+ "bbox": [
1025
+ 171,
1026
+ 763,
1027
+ 825,
1028
+ 805
1029
+ ],
1030
+ "page_idx": 9
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1174–1183, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/denton18a.html. ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 815,
1038
+ 825,
1039
+ 885
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in Neural Information Processing Systems, pp. 4417–4426, 2017. ",
1046
+ "bbox": [
1047
+ 173,
1048
+ 895,
1049
+ 821,
1050
+ 924
1051
+ ],
1052
+ "page_idx": 9
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1057
+ "bbox": [
1058
+ 171,
1059
+ 103,
1060
+ 823,
1061
+ 133
1062
+ ],
1063
+ "page_idx": 10
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "Laurent Dinh, David Krueger, and Yoshua Bengio. Nice: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516, 2014. ",
1068
+ "bbox": [
1069
+ 171,
1070
+ 141,
1071
+ 823,
1072
+ 171
1073
+ ],
1074
+ "page_idx": 10
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Piotr Dollár, Christian Wojek, Bernt Schiele, and Pietro Perona. Pedestrian detection: A benchmark. 2009 IEEE Conference on Computer Vision and Pattern Recognition, 2009. ",
1079
+ "bbox": [
1080
+ 173,
1081
+ 179,
1082
+ 823,
1083
+ 209
1084
+ ],
1085
+ "page_idx": 10
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pp. 3354–3361. IEEE, 2012. ",
1090
+ "bbox": [
1091
+ 173,
1092
+ 218,
1093
+ 825,
1094
+ 261
1095
+ ],
1096
+ "page_idx": 10
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Aidan N Gomez, Mengye Ren, Raquel Urtasun, and Roger B Grosse. The reversible residual network: Backpropagation without storing activations. In Advances in Neural Information Processing Systems, pp. 2211–2221, 2017. ",
1101
+ "bbox": [
1102
+ 173,
1103
+ 270,
1104
+ 826,
1105
+ 314
1106
+ ],
1107
+ "page_idx": 10
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1112
+ "bbox": [
1113
+ 174,
1114
+ 323,
1115
+ 826,
1116
+ 366
1117
+ ],
1118
+ "page_idx": 10
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "IARAI. Traffic4cast: Traffic map movie forecasting. https://www.iarai.ac.at/ traffic4cast, 2019. Accessed: 2019-09-25. ",
1123
+ "bbox": [
1124
+ 173,
1125
+ 376,
1126
+ 825,
1127
+ 405
1128
+ ],
1129
+ "page_idx": 10
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "Jörn-Henrik Jacobsen, Arnold Smeulders, and Edouard Oyallon. i-revnet: Deep invertible networks. arXiv preprint arXiv:1802.07088, 2018. ",
1134
+ "bbox": [
1135
+ 171,
1136
+ 412,
1137
+ 826,
1138
+ 443
1139
+ ],
1140
+ "page_idx": 10
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "Nal Kalchbrenner, Aaron van den Oord, Karen Simonyan, Ivo Danihelka, Oriol Vinyals, Alex Graves, and Koray Kavukcuoglu. Video pixel networks. arXiv preprint arXiv:1610.00527, 2016. ",
1145
+ "bbox": [
1146
+ 169,
1147
+ 452,
1148
+ 825,
1149
+ 482
1150
+ ],
1151
+ "page_idx": 10
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1156
+ "bbox": [
1157
+ 174,
1158
+ 489,
1159
+ 825,
1160
+ 534
1161
+ ],
1162
+ "page_idx": 10
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Manoj Kumar, Mohammad Babaeizadeh, Dumitru Erhan, Chelsea Finn, Sergey Levine, Laurent Dinh, and Durk Kingma. Videoflow: A flow-based generative model for video. arXiv preprint arXiv:1903.01434, 2019. ",
1167
+ "bbox": [
1168
+ 173,
1169
+ 542,
1170
+ 825,
1171
+ 585
1172
+ ],
1173
+ "page_idx": 10
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Yong-Hoon Kwon and Min-Gyu Park. Predicting future frames using retrospective cycle gan. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1811–1820, 2019. ",
1178
+ "bbox": [
1179
+ 174,
1180
+ 594,
1181
+ 826,
1182
+ 637
1183
+ ],
1184
+ "page_idx": 10
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv preprint arXiv:1804.01523, 2018. ",
1189
+ "bbox": [
1190
+ 171,
1191
+ 647,
1192
+ 823,
1193
+ 678
1194
+ ],
1195
+ "page_idx": 10
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Xiaodan Liang, Lisa Lee, Wei Dai, and Eric P Xing. Dual motion gan for future-flow embedded video prediction. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1744–1752, 2017. ",
1200
+ "bbox": [
1201
+ 173,
1202
+ 685,
1203
+ 826,
1204
+ 729
1205
+ ],
1206
+ "page_idx": 10
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Kun Liu, Wu Liu, Chuang Gan, Mingkui Tan, and Huadong Ma. T-c3d: Temporal convolutional 3d network for real-time action recognition. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
1211
+ "bbox": [
1212
+ 173,
1213
+ 738,
1214
+ 825,
1215
+ 781
1216
+ ],
1217
+ "page_idx": 10
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pp. 21–37. Springer, 2016. ",
1222
+ "bbox": [
1223
+ 174,
1224
+ 790,
1225
+ 825,
1226
+ 833
1227
+ ],
1228
+ "page_idx": 10
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "William Lotter, Gabriel Kreiman, and David Cox. Deep predictive coding networks for video prediction and unsupervised learning. arXiv preprint arXiv:1605.08104, 2016. ",
1233
+ "bbox": [
1234
+ 171,
1235
+ 842,
1236
+ 825,
1237
+ 872
1238
+ ],
1239
+ "page_idx": 10
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Marc Oliu, Javier Selva, and Sergio Escalera. Folded recurrent neural networks for future video prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 716–731, 2018. ",
1244
+ "bbox": [
1245
+ 174,
1246
+ 881,
1247
+ 825,
1248
+ 922
1249
+ ],
1250
+ "page_idx": 10
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Jimmy Ren, Xiaohao Chen, Jianbo Liu, Wenxiu Sun, Jiahao Pang, Qiong Yan, Yu-Wing Tai, and Li Xu. Accurate single stage detector using recurrent rolling convolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5420–5428, 2017. ",
1255
+ "bbox": [
1256
+ 176,
1257
+ 103,
1258
+ 823,
1259
+ 146
1260
+ ],
1261
+ "page_idx": 11
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Shaoqing Ren, Kaiming He, Ross Girprerhick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015. ",
1266
+ "bbox": [
1267
+ 174,
1268
+ 155,
1269
+ 823,
1270
+ 196
1271
+ ],
1272
+ "page_idx": 11
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computerassisted intervention, pp. 234–241. Springer, 2015. ",
1277
+ "bbox": [
1278
+ 174,
1279
+ 207,
1280
+ 826,
1281
+ 250
1282
+ ],
1283
+ "page_idx": 11
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1874–1883, 2016. ",
1288
+ "bbox": [
1289
+ 174,
1290
+ 257,
1291
+ 826,
1292
+ 314
1293
+ ],
1294
+ "page_idx": 11
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pp. 802–810, 2015. ",
1299
+ "bbox": [
1300
+ 174,
1301
+ 323,
1302
+ 826,
1303
+ 366
1304
+ ],
1305
+ "page_idx": 11
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Nitish Srivastava, Elman Mansimov, and Ruslan Salakhudinov. Unsupervised learning of video representations using lstms. In International conference on machine learning, pp. 843–852, 2015. ",
1310
+ "bbox": [
1311
+ 173,
1312
+ 375,
1313
+ 825,
1314
+ 405
1315
+ ],
1316
+ "page_idx": 11
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. arXiv preprint arXiv:1706.08033, 2017. ",
1321
+ "bbox": [
1322
+ 171,
1323
+ 412,
1324
+ 825,
1325
+ 441
1326
+ ],
1327
+ "page_idx": 11
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "Yunbo Wang, Mingsheng Long, Jianmin Wang, Zhifeng Gao, and S Yu Philip. Predrnn: Recurrent neural networks for predictive learning using spatiotemporal lstms. In Advances in Neural Information Processing Systems, pp. 879–888, 2017. ",
1332
+ "bbox": [
1333
+ 174,
1334
+ 450,
1335
+ 825,
1336
+ 493
1337
+ ],
1338
+ "page_idx": 11
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "Yunbo Wang, Zhifeng Gao, Mingsheng Long, Jianmin Wang, and Philip S Yu. PredRNN $^ { + + }$ : Towards a resolution of the deep-in-time dilemma in spatiotemporal predictive learning. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5123–5132, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/wang18b.html. ",
1343
+ "bbox": [
1344
+ 176,
1345
+ 501,
1346
+ 826,
1347
+ 587
1348
+ ],
1349
+ "page_idx": 11
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Yunbo Wang, Lu Jiang, Ming-Hsuan Yang, Li-Jia Li, Mingsheng Long, and Li Fei-Fei. Eidetic 3d LSTM: A model for video prediction and beyond. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ B1lKS2AqtX. ",
1354
+ "bbox": [
1355
+ 176,
1356
+ 594,
1357
+ 825,
1358
+ 638
1359
+ ],
1360
+ "page_idx": 11
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600–612, 2004. ",
1365
+ "bbox": [
1366
+ 174,
1367
+ 646,
1368
+ 826,
1369
+ 689
1370
+ ],
1371
+ "page_idx": 11
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "Bichen Wu, Forrest Iandola, Peter H Jin, and Kurt Keutzer. Squeezedet: Unified, small, low power fully convolutional neural networks for real-time object detection for autonomous driving. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 129–137, 2017. ",
1376
+ "bbox": [
1377
+ 174,
1378
+ 698,
1379
+ 826,
1380
+ 755
1381
+ ],
1382
+ "page_idx": 11
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "A CONVLSTM AND ST-LSTM ",
1387
+ "text_level": 1,
1388
+ "bbox": [
1389
+ 176,
1390
+ 101,
1391
+ 450,
1392
+ 118
1393
+ ],
1394
+ "page_idx": 12
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "The key equations of ConvLSTM are shown as belows. ",
1399
+ "bbox": [
1400
+ 173,
1401
+ 132,
1402
+ 537,
1403
+ 148
1404
+ ],
1405
+ "page_idx": 12
1406
+ },
1407
+ {
1408
+ "type": "equation",
1409
+ "img_path": "images/bc8d3cae7fbdc020a524e33ba4634a1e04c5b570b9b5f0930852ec16a4abb7ba.jpg",
1410
+ "text": "$$\n\\begin{array} { r l } & { i _ { t } = \\sigma \\big ( W _ { x i } \\ast \\mathcal { X } _ { t } + W _ { h i } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { i } \\big ) } \\\\ & { f _ { t } = \\sigma \\big ( W _ { x f } \\ast \\mathcal { X } _ { t } + W _ { h f } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { f } \\big ) } \\\\ & { \\mathcal { C } _ { t } ^ { l } = f _ { t } \\circ \\mathcal { C } _ { t - 1 } ^ { l } + i _ { t } \\circ \\operatorname { t a n h } \\bigl ( W _ { x c } \\ast \\mathcal { X } _ { t } + W _ { h c } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { c } \\bigr ) } \\\\ & { o _ { t } = \\sigma \\big ( W _ { x o } \\ast \\mathcal { X } _ { t } + W _ { h o } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + W _ { c o } \\circ \\mathcal { C } _ { t } ^ { l } + b _ { o } \\big ) } \\\\ & { \\mathcal { H } _ { t } ^ { l } = o _ { t } \\circ \\operatorname { t a n h } ( \\mathcal { C } _ { t } ^ { l } ) } \\end{array}\n$$",
1411
+ "text_format": "latex",
1412
+ "bbox": [
1413
+ 305,
1414
+ 154,
1415
+ 692,
1416
+ 258
1417
+ ],
1418
+ "page_idx": 12
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "where $^ *$ denotes the convolution operator and $\\circ$ denotes the Hadamard product. Based on ConvLSTM, spatiotemporal LSTM (ST-LSTM) in PredRNN adds another vertical memory flow to enhance the long-term temporal dependency as follow. ",
1423
+ "bbox": [
1424
+ 176,
1425
+ 262,
1426
+ 823,
1427
+ 304
1428
+ ],
1429
+ "page_idx": 12
1430
+ },
1431
+ {
1432
+ "type": "equation",
1433
+ "img_path": "images/51d1cb21befee84cd58881dd1d342717c376c9b2ef0223032870cbb6324fa49d.jpg",
1434
+ "text": "$$\n\\begin{array} { r l } & { i _ { t } = \\sigma ( W _ { x i } \\ast \\mathcal { X } _ { t } + W _ { h i } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { i } ) } \\\\ & { f _ { t } = \\sigma ( W _ { x f } \\ast \\mathcal { X } _ { t } + W _ { h f } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { f } ) } \\\\ & { \\mathcal { C } _ { t } ^ { l } = f _ { t } \\circ \\mathcal { C } _ { t - 1 } ^ { l } + i _ { t } \\circ \\operatorname { t a n h } ( W _ { x c } \\ast \\mathcal { X } _ { t } + W _ { h c } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + b _ { c } ) } \\\\ & { \\dot { u } _ { t } ^ { l } = \\sigma ( W _ { x i } ^ { r } \\ast \\mathcal { X } _ { t } + W _ { m i } \\ast \\mathcal { M } _ { t } ^ { l - 1 } + b _ { i } ^ { i } ) } \\\\ & { f _ { t } ^ { \\prime } = \\sigma ( W _ { x f } ^ { r } \\ast \\mathcal { X } _ { t } + W _ { m f } \\ast \\mathcal { M } _ { t } ^ { l - 1 } + b _ { f } ^ { \\prime } ) } \\\\ & { \\mathcal { M } _ { t } ^ { l } = f _ { t } ^ { \\prime } \\circ \\mathcal { M } _ { t } ^ { l - 1 } + i _ { t } ^ { \\prime } \\circ \\operatorname { t a n h } ( W _ { x m } \\ast \\mathcal { X } _ { t } + W _ { m m } \\ast \\mathcal { M } _ { t } ^ { l - 1 } + b _ { m } ) } \\\\ & { o _ { t } = \\sigma ( W _ { x o } \\ast \\mathcal { X } _ { t } + W _ { h o } \\ast \\mathcal { H } _ { t - 1 } ^ { l } + W _ { c o } \\circ \\mathcal { C } _ { t } ^ { l } + W _ { m o } \\circ \\mathcal { M } _ { t } ^ { l } + b _ { o } ) } \\\\ & { \\mathcal { H } _ { t } = o _ { t } \\mathrm { o t } \\operatorname { t a n h } ( W _ { 1 x } | C _ { t } ^ { l } , \\mathcal { M } _ { t } ^ { l } | ) } \\end{array}\n$$",
1435
+ "text_format": "latex",
1436
+ "bbox": [
1437
+ 281,
1438
+ 310,
1439
+ 717,
1440
+ 477
1441
+ ],
1442
+ "page_idx": 12
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "where blue part overlaps ConvLSTM. Note that $\\mathcal { M } _ { t } ^ { l }$ usually receives information from the previous layer instead of the previous state and the special case is that $\\boldsymbol { \\mathcal { M } } _ { t } ^ { 1 }$ receives $\\mathcal { M } _ { t - 1 } ^ { L }$ to constitute a zigzag information flow. As we can see, ST-LSTM basically doubles the size of feature map and the number of parameters compared with ConvLSTM. ",
1447
+ "bbox": [
1448
+ 173,
1449
+ 489,
1450
+ 826,
1451
+ 547
1452
+ ],
1453
+ "page_idx": 12
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "B CONDITIONAL REVERSIBILITY ",
1458
+ "text_level": 1,
1459
+ "bbox": [
1460
+ 176,
1461
+ 568,
1462
+ 462,
1463
+ 583
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "As we mentioned in Section 2.2, conditional reversibility is an interesting property of our CrevNet. In this section, we will provide more details about it. Given $\\hat { x } _ { t } ^ { 2 } , x _ { t } ^ { 1 }$ and $h _ { t - 1 } ^ { 1 }$ , the reversible predictive module can recover $\\boldsymbol { x } _ { t } ^ { 2 }$ as follow ",
1470
+ "bbox": [
1471
+ 174,
1472
+ 598,
1473
+ 826,
1474
+ 643
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "equation",
1480
+ "img_path": "images/e2f29cb29b20d2464cc7b54fce55720e7ca814c376913f261367084175ff0b1c.jpg",
1481
+ "text": "$$\n\\begin{array} { r l } & { h _ { t } ^ { 1 } = \\mathrm { C o n v R N N } ( x _ { t } ^ { 1 } , h _ { t - 1 } ^ { 1 } ) } \\\\ & { g _ { t } = \\phi ( W * h _ { t } ^ { 1 } + b ) } \\\\ & { x _ { t } ^ { 2 } = ( \\hat { x } _ { t } ^ { 2 } - g _ { t } \\odot h _ { t } ^ { 1 } ) \\odot 1 / 1 - g _ { t } } \\end{array}\n$$",
1482
+ "text_format": "latex",
1483
+ "bbox": [
1484
+ 388,
1485
+ 648,
1486
+ 607,
1487
+ 712
1488
+ ],
1489
+ "page_idx": 12
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Ideally, if there is no numerical error during the calculation, we can get the perfect reconstruction of input by applying this inverse operation repeatedly. In practice, while the most of reverse generations are successful, the inevitable numerical error will still result in some failing cases, especially in the case of a very deep architecture because errors will be amplified layer by layer. ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 715,
1497
+ 826,
1498
+ 772
1499
+ ],
1500
+ "page_idx": 12
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "C OBJECT DETECTION ",
1505
+ "bbox": [
1506
+ 174,
1507
+ 791,
1508
+ 380,
1509
+ 808
1510
+ ],
1511
+ "page_idx": 12
1512
+ },
1513
+ {
1514
+ "type": "image",
1515
+ "img_path": "images/7b2150b3b04ec4bfef448c6064e3b09a1763f16086583fdf4984344b7d0c05cb.jpg",
1516
+ "image_caption": [
1517
+ "Figure 7: Visualization of 2D Object Detection on KITTI. "
1518
+ ],
1519
+ "image_footnote": [],
1520
+ "bbox": [
1521
+ 200,
1522
+ 118,
1523
+ 797,
1524
+ 864
1525
+ ],
1526
+ "page_idx": 13
1527
+ }
1528
+ ]
parse/train/B1eY_pVYvB/B1eY_pVYvB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1eY_pVYvB/B1eY_pVYvB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyGTuv9eg/HyGTuv9eg.md ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INCORPORATING LONG-RANGE CONSISTENCY I NCNN-BASED TEXTURE GENERATION
2
+
3
+ Guillaume Berger & Roland Memisevic
4
+
5
+ Department of Computer Science and Operations Research
6
+ University of Montreal
7
+ guillaume.berger@umontreal.ca, memisevr@iro.umontreal.ca
8
+
9
+ # ABSTRACT
10
+
11
+ Gatys et al. (2015a) showed that pair-wise products of features in a convolutional network are a very effective representation of image textures. We propose a simple modification to that representation which makes it possible to incorporate longrange structure into image generation, and to render images that satisfy various symmetry constraints. We show how this can greatly improve rendering of regular textures and of images that contain other kinds of symmetric structure. We also present applications to inpainting and season transfer.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ There are currently two dominant approaches to texture synthesis: non-parametric techniques, which synthesize a texture by extracting pixels (or patches) from a reference image that are resampled for rendering (Efros & Leung, 1999; Kwatra et al., 2003), and parametric statistical models, which optimize reconstructions to match certain statistics computed on filter responses (Heeger & Bergen, 1995; Portilla & Simoncelli, 2000). Recently, the second approach has seen a significant advancement, after Gatys et al. (2015a) showed that a CNN pre-trained on an object classification task, such as ImageNet (Russakovsky et al., 2015), can be very effective at generating textures. Gatys et al. (2015a) propose to minimize with respect to the input image a loss function, that measures how well certain high-level features of a reference image are preserved. The reference image constitutes an example of the texture to be generated. The high-level features to be preserved are pair-wise products of feature responses, averaged over the whole image, referred to as the “Gramian” in that work. In Gatys et al. (2015b), the same authors show that by adding a second term to the cost, which matches the content of another image, one can render that other image in the “style” (texture) of the first. Numerous follow-up works have since then analysed and extended this approach (Ulyanov et al., 2016; Johnson et al., 2016; Ustyuzhaninov et al., 2016).
16
+
17
+ As shown in Figure 1, this method produces impressive results. However, it fails to take into account non-local structure, and consequently cannot generate results that exhibit long-range correlations in images. An example of the importance of long-range structure is the regular brick wall texture in the middle of the figure. Another example is the task of inpainting, where the goal is to fill in a missing part of an image, such that it is faithful to the non-missing pixels. Our main contribution is to introduce a way to deal with long-range structure using a simple modification to the product-based texture features. Our approach is based on imposing a “Markov-structure” on high-level features, allowing us to establish feature constraints that range across sites instead of being local. Unlike classical approaches to preserving spatial structure in image generation, such as Markov Random Fields and learning-based extensions (Roth & Black, 2005), our approach does not impose any explicit local constraints on pixels themselves. Rather, inspired by Gatys et al. (2015a), it encourages consistency to be satisfied on high-level features and on average across the whole image. We present applications to texture generation, inpainting and season transfer.
18
+
19
+ # 2 THE ARTISTIC STYLE ALGORITHM
20
+
21
+ # 2.1 SYNTHESIS PROCEDURE
22
+
23
+ Given a reference texture, $x$ , the algorithm described in Gatys et al. (2015a) permits to synthesize by optimization a new texture $\hat { x }$ similar to $x$ . To achieve this, the algorithm exploits an ImageNet
24
+
25
+ ![](images/fdfb6b9e81db4b326e7af8723287b7dd54410b08bb7ba3391927271ae0a5b270.jpg)
26
+ Figure 1: Reference image (left) and generated texture (right) using the procedure described in Gatys et al. (2015a).
27
+
28
+ ![](images/d62b0a03199a11debffeb0150e39840133ebb843e2d97dbc40ddfdcc856e8665.jpg)
29
+ Figure 2: Summary of the texture synthesis procedure described in Gatys et al. (2015a). We use a VGG-19 network Simonyan & Zisserman (2014) as the pre-trained CNN.
30
+
31
+ pre-trained model to define metrics suitable for describing textures: “Gram” matrices of feature maps, computed on top of $L$ selected layers. Formally, let $\hat { N } ^ { l }$ be the number of maps in layer $l$ of a pre-trained CNN. The corresponding Gram matrix $G ^ { \bar { l } }$ is a $N ^ { l } \times N ^ { l }$ matrix defined as:
32
+
33
+ $$
34
+ G _ { i j } ^ { l } = \frac { 1 } { M ^ { l } } \sum _ { k = 1 } ^ { M ^ { l } } F _ { i k } ^ { l } F _ { j k } ^ { l } = \frac { 1 } { M ^ { l } } \langle F _ { i : } ^ { l } , F _ { j : } ^ { l } \rangle
35
+ $$
36
+
37
+ where $F _ { i : } ^ { l }$ is the $i ^ { t h }$ vectorized feature map of layer $l$ , $M ^ { l }$ is the number of elements in each map of this layer, and where $\langle \cdot , \cdot \rangle$ denotes the inner product. Equation 1 makes it clear that $G ^ { l }$ captures how feature maps from layer $l$ are correlated to each other. Diagonal terms, $G _ { i i } ^ { l }$ are the squared Frobenius norm of the $i ^ { t h }$ map $\left\| F _ { i : } ^ { l } \right\| _ { F } ^ { 2 }$ , so they represent its spatially averaged energy. We will discuss the Gramians in more detail in the next paragraph. Once the Gram matrices $\{ G ^ { l } \} _ { l \in [ 1 , L ] }$ of the reference texture are computed, the synthesis procedure by Gatys et al. (2015a) amounts to constructing an image that produces Gram matrices $\{ \hat { G } ^ { l } \} _ { l \in [ 1 , L ] }$ that match the ones of the reference texture. More precisely, the following loss function is minimized with respect to the image being constructed:
38
+
39
+ $$
40
+ \mathcal { L } _ { s t y l e } = \sum _ { l = 1 } ^ { L } w _ { l } \left. \hat { \boldsymbol { G } } ^ { l } - \boldsymbol { G } ^ { l } \right. _ { F } ^ { 2 } = \sum _ { l = 1 } ^ { L } w _ { l } \mathcal { L } _ { s t y l e } ^ { l }
41
+ $$
42
+
43
+ where $w _ { l }$ is a normalizing constant similar to Gatys et al. (2015a).
44
+
45
+ The overall process is summarized in Figure 2. While the procedure can be computationally expensive, there have been successful attempts reported recently which reduce the generation time (Ulyanov et al., 2016; Johnson et al., 2016).
46
+
47
+ # 2.2 WHY GRAM MATRICES WORK
48
+
49
+ Feature Gram matrices are effective at representing texture, because they capture global statistics across the image due to spatial averaging. Since textures are static, averaging over positions is required and makes Gram matrices fully blind to the global arrangement of objects inside the reference image. This property permits to generate very diverse textures by just changing the starting point of the optimization. Despite averaging over positions, coherence across multiple features needs to be preserved (locally) to model visually sensible textures. This requirement is taken care of by the off-diagonal terms in the Gram matrix, which capture the co-occurence of different features at a single spatial location. Indeed, Figure 3 shows that restricting the texture representation to the squared Frobenius norm of feature maps (i.e. diagonal terms) makes distinct object-parts from the reference texture encroach on each other in the reconstruction, as local coherence is not captured by the model. Exploiting off-diagonal terms improves the quality of the reconstruction as consistency across feature maps is enforced (on average across the image).
50
+
51
+ ![](images/81370cb9bdd3f71e6f5fa79f9a4d5298de9b1732fa438e0865bb44a9d80ca202.jpg)
52
+ Figure 3: Exploiting Gram matrices of feature maps as in Gatys et al. (2015a) $( 1 ^ { s t } r o w )$ or only the squared Frobenius norm of feature maps $( 2 ^ { n d } r o w )$ for increasingly deep layers (from left to right).
53
+
54
+ The importance of local coherence can be intuitively understood in the case of linear features (or in the lowest layer of a convolutional network): when decomposing an image using Gabor-like features, local structure can be expressed as the relative offsets in the Fourier phase angles between multiple different filter responses. A sharp step-edge, for example, requires the phases of local Fourier components at different frequencies to align in a different way than a blurry edge or a ridge (Morrone & Burr, 1988; Kovesi, 1999). Also, natural images exhibit very specific phaserelationships across frequency components in general, and destroying these makes the image look unnatural (Wang & Simoncelli, 2003). The same is not true of Fourier amplitudes (represented on the diagonals of the Gramian), which play a much less important role in the visual appearance (Oppenheim & Lim, 1981). In the case of deeper representations, the situation is more complex, but it is still local co-occurrence averaged over the whole image that captures texture.
55
+
56
+ Unfortunately, average local coherence falls short of capturing long-range structure in images. Spatial consistency is hard to capture within a single filter bank, because of combinatorial effects. Indeed, since Gram matrices capture coherence at a single spatial location, every feature would have to be matched to multiple transformed versions of itself. A corollary is that every feature would have to appear in the form of multiple transformed copies of itself in order to capture spatial consistency. However, this requirement clashes with the limited number of features available in each CNN layer. One way to address this is to use higher-layer features, whose receptive fields are larger. Unfortunately, as illustrated in Figure 3, even if using layers up to pool5 whose input receptive field covers the whole image1 (first row, last column), the reconstruction remains mainly unstructured and the method fails to produce spatial regularities.
57
+
58
+ # 3 MODELING SPATIAL CO-OCCURENCES
59
+
60
+ To account for spatial structure in images, we propose encoding this structure in the feature selfsimilarity matrices themselves. To this end, we suggest that, instead of computing co-occurences between multiple features within a map, we compute co-occurences between feature maps $F ^ { l }$ and spatially transformed feature maps $T ( F ^ { l } )$ , where $T$ denotes a spatial transformation. In the simplest case, $T$ represents local translation, which amounts to measuring similarities between local features and other neighbouring features. We denote by $T _ { x , + \delta }$ the operation consisting in horizontally translating feature maps by $\delta$ pixels and define the transformed Gramian:
61
+
62
+ $$
63
+ G _ { x , \delta , i j } ^ { l } = \frac { 1 } { M ^ { l } } \langle T _ { x , + \delta } \left( F _ { i : } ^ { l } \right) , T _ { x , - \delta } \left( F _ { j : } ^ { l } \right) \rangle
64
+ $$
65
+
66
+ ![](images/a94944d3a051ed2f9aae98e632a49046bd878a60099da97d9cc1efc68fe4cea9.jpg)
67
+ Figure 4: Computing the shifted Gram matrix for a given layer with feature maps of width $X$ .
68
+
69
+ where $T _ { x , - \delta }$ performs a translation in the opposite direction. As illustrated in Figure 4, the transformation in practice simply amounts to removing the $\delta$ first or last columns from the raw feature maps. Therefore, the inner product now captures how features at position $( i , j )$ are correlated with features located at position $( i , j + \delta )$ in average. While Figure 4 illustrates the case where feature maps are horizontally shifted, one would typically use translations along both the $x$ -axis and the $y$ -axis. Our transformed Gramians are related to Gray-Level Co-occurrence Matrices (GLCM) (Haralick et al., 1973) which compute the unnormalized frequencies of pixel values for a given offset in an image. While GLCMs have been mainly used for analysis, some work tried to use these features for texture synthesis (Lohmann, 1995). Usually, GLCMs are defined along 4 directions: $0 ^ { \circ }$ and $9 0 °$ (i.e. horizontal and vertical offsets), as well as $4 5 ^ { \circ }$ and $1 3 5 ^ { \circ }$ (i.e. diagonal offsets). In comparison, our method does not consider diagonal offsets and captures spatial coherence on high-level features, making use of a pre-trained CNN, instead of working directly in the pixel domain.
70
+
71
+ With this definition for transformed Gram matrices, we propose defining the loss as: $\begin{array} { r l } { \mathcal { L } } & { { } = } \end{array}$ $\mathcal { L } _ { s t y l e } + \mathcal { L } _ { c c }$ , where $c c$ stands for cross-correlation. Like $\mathcal { L } _ { s t y l e }$ , $\mathcal { L } _ { c c }$ is a weighted sum of multiple losses $\mathcal { L } _ { c c , \delta } ^ { l }$ defined for several selected layers as the mean squared error between transformed Gram matrices of the reference texture and the one being constructed:
72
+
73
+ $$
74
+ \mathcal { L } _ { c c , \delta } ^ { l } = \frac { 1 } { 2 } \left( \mathcal { L } _ { c c , x , \delta } ^ { l } + \mathcal { L } _ { c c , y , \delta } ^ { l } \right) = \frac { 1 } { 2 } \left( \left. \hat { G } _ { x , \delta } ^ { l } - G _ { x , \delta } ^ { l } \right. _ { F } ^ { 2 } + \left. \hat { G } _ { y , \delta } ^ { l } - G _ { y , \delta } ^ { l } \right. _ { F } ^ { 2 } \right)
75
+ $$
76
+
77
+ Although this amounts to adding more terms to a representation that was already high-dimensional and overparametrized, we found that these additional terms do not hurt the diversity of generated textures. Indeed, the new loss remains blind to the global arrangement of objects. In fact, there exists a specific situation where our approach is strictly equivalent to computing Gram matrices of deeper layers: with linear activations and “one-hot” convolution kernels2, deeper layers would simply contain translated versions of lower feature maps. In that case, computing Gram matrices of deeper layers would permit to directly capture cross-correlation statistics in lower ones. Nevertheless, this situation is very unlikely when using a pretrained CNN, as the network probably learned operations more useful than simple translations during its supervised training.
78
+
79
+ While we focus on translation for most of our results, we shall discuss other types of transformation in the experiments Section.
80
+
81
+ # 4 EXPERIMENTS
82
+
83
+ In our experiments, we exploit the same normalized version of the VGG-19 network3 (Simonyan & Zisserman, 2014) as in Gatys et al. (2015a;b) and layers conv1 1, pool1, pool2, pool3, and pool4 are always used to define the standard Gram matrices. In our method, we did not use conv1 1 to define cross-correlation terms, as the large number of neurons at this stage makes the computation of Gram matrices costly. Corresponding $\delta$ values for each layer are discussed in the next paragraph.
84
+
85
+ ![](images/a4fe332fd30d43110d6b3cb6270896f60861c155adfa9dd5fdca304e451c2575.jpg)
86
+ Figure 5: P ool2 reconstruction using different values for $\delta$ in $\mathcal { L } _ { c c , \delta } ^ { p o o l 2 }$ . $\boldsymbol { \cdot } \boldsymbol { 1 } ^ { s t }$ column): Without crosscorrelation terms. (Other columns): Using a single cross-correlation term with a fixed value $( 1 ^ { s t }$ row) or using multiple cross-correlation terms with distinct $\delta$ values $( 2 ^ { n d } r o w )$ .
87
+
88
+ Finally, our implementation4 uses Lasagne (Dieleman et al., 2015). Each image is of size $3 8 4 \times 3 8 4$ Most textures used as references in this paper were taken from textures.com and pixabay.com.
89
+
90
+ # 4.1 EXPERIMENTS WITH TRANSLATION-GRAMIANS
91
+
92
+ The $\delta$ parameter is of central importance as it dictates the range of the spatial constraints. We observed that the optimal value depends on both the considered layer in the pre-trained CNN and the reference texture, making it difficult to choose a value automatically.
93
+
94
+ For instance, Figure 5 shows generated images from the brick wall texture using only the pool2 layer with different $\delta$ configurations. The first row depicts the results when considering single values of $\delta$ only. While $\delta = 4$ or $\delta = 8$ are good choices, considering extreme long-range correlations does not help for this particular texture: a brick depends mostly on its neighbouring bricks and not the far-away ones. More precisely, a translation of more than 16 pixels in the pool2 layer makes the input receptive field move more than 64 pixels. Therefore $\delta = 1 6$ or $\delta = 3 2$ do not capture any information about neighbouring bricks. Unfortunately, this is not true for all textures, and $\delta = 1 6$ or $\delta = 3 2$ might be good choices for another image that exhibits longer structures.
95
+
96
+ Searching systematically for a $\delta$ configuration that works well with the reference texture being considered would be a tedious task: even for a very regular texture with a periodic horizontal (or vertical) pattern, it is hard to guess the optimal $\delta$ values for each layer (for deeper ones in particular). Instead, we propose to use a fixed but wide set of $\delta$ values per layer, by defining the cost to be: $\mathcal { L } _ { c c } ^ { l } = \sum _ { k } \mathcal { L } _ { c c , \delta _ { k } } ^ { l }$ . A potential concern is that combining many loss terms can hurt the reconstruction or the diversity of generated textures. Figure 5 (second row) shows contrarily that there is no visual effect from using $\delta$ values that are not specifically useful for the reference texture being considered: the rendering benefits from using $\bar { \delta } \in \{ 2 , \dot { 4 } , 8 \}$ while considering bigger values $( \delta \in \{ 2 , 4 , 8 , 1 6 , 3 2 \}$ , e.g.) does not help, but does not hurt the reconstruction either. We found the same to be true for other textures as well, and our results (shown in the next Section) show that combining the loss terms is able to generate very diverse textures. A drawback from using multiple cross-correlation terms per layers, however, is computational. We found that in our experimental setups, adding cross-correlation terms increases the generation time by roughly $8 0 \%$ .
97
+
98
+ As a guide-line, for image sizes of roughly $3 8 4 \times 3 8 4$ pixels, we recommend the following $\delta$ values per layer (which we used in all our following experiments): $\{ 2 , 4 , 8 , 1 6 , 3 2 , 6 4 \}$ for pool1, $\{ 2 , 4 , 8 , 1 6 , 3 2 \}$ for pool2, $\{ 2 , 4 , 8 , 1 6 \}$ for pool3, and $\{ 2 , 4 , 8 \}$ for pool4. The number and the range of $\delta$ values decrease with depth because feature maps are getting smaller due to $2 \times 2$ pooling layers. This configuration should be sufficient to account for spatial structure in any $3 8 4 \times 3 8 4$ image.
99
+
100
+ ![](images/0733b00648dcc0afd39301437db05c2b2d3c89d6c966c8fe19133bf1c9e0c450.jpg)
101
+ Figure 6: Some results of our approach compared with Gatys et al. (2015a). Only the initialization differs in the last two columns. Further results are shown in the supplementary material.
102
+
103
+ # 4.2 SYNTHESIS OF STRUCTURED TEXTURE EXAMPLES
104
+
105
+ Figure 6 shows the result of our approach applied to various structured and unstructured textures. It demonstrates that the method is effective at capturing long-range correlations without simply copying the content of the original texture. For instance, note how our model captures the depth aspect of the reference image in the third and fourth rows.
106
+
107
+ ![](images/b3c7674352750d3be3a9314c029171b2f99b3d3205948b2e93a221b3ce6f6dba.jpg)
108
+ Figure 7: Texture generation applied to in-painting. More in-painted images can be found in the supplementary material.
109
+
110
+ ![](images/dd51b4bc2b046d0074a607813aa7e8c25954f2a16b93452368583276119ba3e2.jpg)
111
+ Figure 8: Season transfer examples.
112
+
113
+ The problem of synthesizing near-regular structures is challenging because stochasticity and regularity are adversarial properties (Lin et al., 2006). Non-parametric patch-based techniques, such as Efros & Freeman (2001), are better suited for this task because they can $t i l e ^ { 5 }$ the reference image. On the other hand, regular structures are usually more problematic for parametric statistical models. Nevertheless, the two first rows of Figure 6 demonstrate that our approach can produce good visual results and can reduce the gap to patch-based methods on these kinds of texture.
114
+
115
+ Even if the reference image is not a texture, the generated images in the last row (Leonardo Dicaprio’s face) provide a good visual illustration of the effect of translation terms. In contrast to Gatys et al., our approach preserves longer-range structure, such as the alignment and similar appearance of the eyes, hair on top of the forehead, the chin below the mouth, etc. Finally, when the reference texture is unstructured (fifth row), our solution does not necessarily provide a benefit, but it also does not hurt the visual quality or the diversity of the generated textures.
116
+
117
+ # 4.3 INPAINTING APPLICATION
118
+
119
+ Modelling long-range correlations can make it possible to apply texture generation to inpainting, because it allows us to impose consistency constraints between the newly rendered region and the unmodified parts of the original image.
120
+
121
+ To apply our approach to texture inpainting, we extracted two patches from the original image: one that covers the whole area to inpaint, and another one that serves as the reference texture. Then, approximately the same process as for texture generation is used, with the following two modifications: First, instead of random noise, the optimization starts from the masked content patch (the one to inpaint) showing a grey area and its non-missing surrounding. Second, we encourage the borders of the output to not change much with respect to the original image using an $L _ { 2 }$ penalty. We apply the penalty both in the Gatys et al. rendering and in ours. Some inpainted images are shown in Figure 7. As seen in the figure, our solution significantly outperforms Gatys et al. in terms of visual quality. Further results are shown in the supplementary material.
122
+
123
+ ![](images/1fbcc91968bc06348295a657a024bdfd88b21ab99f4a0f4a49d20e11ff2acdfd.jpg)
124
+ Figure 9: Generation of abstract symmetric textures.
125
+
126
+ # 4.4 SEASON TRANSFER
127
+
128
+ Figure 8 shows the result of applying our approach to a style transfer task, as in Gatys et al. (2015b): transferring the “season” of a landscape image to another one. On this task, the results from our approach are similar to those from Gatys et al. (2015b). Nevertheless, in contrast to the Gatys et al. results, our approach seems to better capture global information, such as sky color and leaves (bottom row), or the appearance of branches in the winter image (top row).
129
+
130
+ # 4.5 INCORPORATING OTHER TYPES OF STRUCTURE
131
+
132
+ While we focused on feature map translations in most of our experiments, other transformations can be applied as well. To illustrate this point, we explored a way to generate symmetric textures using another simple transformation. To this end, we propose flipping one of the two feature maps before computing the Gram matrices: $G _ { l r , i j } ^ { l } = \langle F _ { i : } ^ { l } , T _ { l r } \ ' ( F _ { j : } ^ { l } ) \rangle$ . Here $T _ { l r }$ corresponds to the left-right flipping operation, but we also considered up-down flipping of feature maps: $\mathcal { L } ^ { l } = \mathcal { L } _ { s t y l e } ^ { l } + \mathcal { L } _ { l r } ^ { l } +$ L lud .
133
+
134
+ As can be seen in Figure 9, in contrast to Gatys et al., the additional loss terms capture which objects are symmetric in the reference texture, and enforce these same objects to be symmetric in the reconstruction as well. Other kinds of transformation could be used, depending on the type of property in the source texture one desires to preserve.
135
+
136
+ # 5 CONCLUSION
137
+
138
+ We presented an approach to satisfying long-range consistency constraints in the generation of images. It is based on a variation of the method by Gatys et al., and considers spatial co-occurences of local features (instead of only co-occurences across features). We showed that the approach permits to generate textures with various global symmetry properties and that it makes it possible to apply texture generation to in-painting. Since it preserves correlations across sites, the approach is reminiscent of an MRF, but in contrast to an MRF or other graphical models, it defines correlationconstraints on high-level features of a (pre-trained) CNN rather than on pixels.
139
+
140
+ # REFERENCES
141
+
142
+ Sander Dieleman, Jan Schlter, Colin Raffel, et al. Lasagne: First release., August 2015. URL http://dx. doi.org/10.5281/zenodo.27878.
143
+ A. A. Efros and T. K. Leung. Texture synthesis by non-parametric sampling. In Proceedings of the International Conference on Computer Vision-Volume 2, ICCV ’99, pp. 1033–, 1999.
144
+ Alexei A. Efros and William T. Freeman. Image Quilting for Texture Synthesis and Transfer. Proceedings of SIGGRAPH 2001, pp. 341–346, August 2001.
145
+ L. A. Gatys, A. S. Ecker, and M. Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems 28, 2015a. URL http://arxiv.org/abs/1505.07376.
146
+ L. A. Gatys, A. S. Ecker, and M. Bethge. A neural algorithm of artistic style. CoRR, abs/1508.06576, 2015b. URL http://arxiv.org/abs/1508.06576.
147
+ R. Haralick, K. Shanmugam, and I. Dinstein. Texture features for image classification. IEEE Transactions on Systems, Man, and Cybernetics 3 (6), 1973.
148
+ David J. Heeger and James R. Bergen. Pyramid-based texture analysis/synthesis. In Proceedings of the 22nd Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 1995, pp. 229–238, 1995.
149
+ J. Johnson, A. Alahi, and L. Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. CoRR, abs/1603.08155, 2016. URL http://arxiv.org/abs/1603.08155.
150
+ P. Kovesi. Image features from phase congruency. Videre, 1(3):2–27, 1999.
151
+ V. Kwatra, A. Schdl, I. Essa, G. Turk, and A. Bobick. Graphcut textures: Image and video synthesis using graph cuts. ACM Transactions on Graphics, SIGGRAPH 2003, 22(3):277–286, 2003.
152
+ Wen-Chieh Lin, James Hays, Chenyu Wu, V. Kwatra, and Yanxi Liu. Quantitative evaluation on near regular texture synthesis. In CVPR ’06, volume 1, pp. 427 – 434, June 2006.
153
+ G. Lohmann. Analysis and synthesis of textures: A co-occurrence-based approach. Computers and Graphics, 19(1), pp. 29–36, 1995.
154
+ M. C. Morrone and D. C. Burr. Feature detection in human vision: A phase-dependent energy model. Proceedings of the Royal Society of London B: Biological Sciences, 235(1280):221–245, 1988.
155
+ A. V. Oppenheim and J. S. Lim. The importance of phase in signals. Proceedings of the IEEE, 69(5):529–541, 1981. ISSN 0018-9219.
156
+ J. Portilla and E. P. Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. Int. J. Comput. Vision, 40(1):49–70, 2000.
157
+ S. Roth and M. J. Black. Fields of experts: A framework for learning image priors. In IEEE Conf. on Computer Vision and Pattern Recognition, volume 2, pp. 860–867, June 2005.
158
+ O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015.
159
+ K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
160
+ D. Ulyanov, V. Lebedev, A. Vedaldi, and V. Lempitsky. Texture networks: Feed-forward synthesis of textures and stylized images. In International Conference on Machine Learning (ICML), 2016.
161
+ I. Ustyuzhaninov, W. Brendel, L. A. Gatys, and M. Bethge. Texture synthesis using shallow convolutional networks with random filters. CoRR, abs/1606.00021, 2016. URL http://arxiv.org/abs/1606. 00021.
162
+ Z. Wang and E. P. Simoncelli. Local phase coherence and the perception of blur. In Advances in Neural Information Processing Systems 16 [NIPS 2003], pp. 1435–1442, 2003.
163
+ Ciyou Zhu, Richard H. Byrd, Peihuang Lu, and Jorge Nocedal. L-bfgs-b - fortran subroutines for large-scale bound constrained optimization. Technical report, ACM Trans. Math. Software, 1994.
164
+
165
+ # Supplementary material
166
+
167
+ A TEXTURE GENERATION
168
+
169
+ ![](images/7996b087aac1120f4135dc33c1be02fad01fda7f4f161d9c89a75c42da2f811e.jpg)
170
+
171
+ ![](images/10a8cc26ef285ca401b2e76fa624cfbae157f2de6a8075520d9bece66f04319f.jpg)
172
+
173
+ # B INPAINTING
174
+
175
+ ![](images/6201af3b350a06711412fc7b240a36cc657b5ef4cdbcb06c4bde514444bda001.jpg)
176
+
177
+ ![](images/455b2d1f33375b4133b4b298627eb4879109e41a4f9f13fe6e66715d6daae2d2.jpg)
178
+
179
+ ![](images/267bf72c6aca6e0e1e6e883796f77dbea9556357f14c4d5ea7c1d3cb0399c383.jpg)
180
+
181
+ ![](images/d2dfcfb15fed6909b957b975612920289da35cb18b6401e73af4ecbb17c18f92.jpg)
182
+ Gatys et al.
183
+
184
+ ![](images/f5cbb699d907e2eac9878e99f3830544c0028945aa7c44e4d26985e0004266f9.jpg)
185
+ Inpainted image
186
+
187
+ ![](images/675e22dc39763b4f655d38d605aba2ad35e17199acb9830163b57035fd91d414.jpg)
188
+ Gatys et al.
189
+
190
+ ![](images/d9f6f36c89d7a8c86ebae09f8f61b55f4a623c6064c1fded1a16a1696709d7e0.jpg)
191
+
192
+ ![](images/3bae23c5542923774b38a947f266d94da913576141432c0f47b112ea97f15e13.jpg)
193
+
194
+ Table 1: Final Gatys et al. loss for all inpainted textures (by order of appearance).
195
+
196
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Gatys et al. loss</td></tr><tr><td rowspan=1 colspan=1>Texture</td><td rowspan=1 colspan=1>Gatys et al.</td><td rowspan=1 colspan=1>Ours</td></tr><tr><td rowspan=1 colspan=1>&quot;red_leaves”</td><td rowspan=1 colspan=1>3.38e-4</td><td rowspan=1 colspan=1>4.72e-4</td></tr><tr><td rowspan=1 colspan=1>“floor”</td><td rowspan=1 colspan=1>3.68e-4</td><td rowspan=1 colspan=1>4.73e-4</td></tr><tr><td rowspan=1 colspan=1>Supplementa</td><td rowspan=1 colspan=1>rymaterialtex</td><td rowspan=1 colspan=1>tures</td></tr><tr><td rowspan=1 colspan=1>&quot;leaves&quot;</td><td rowspan=1 colspan=1>4.08e-4</td><td rowspan=1 colspan=1>5.14e-4</td></tr><tr><td rowspan=1 colspan=1>“cargo”</td><td rowspan=1 colspan=1>3.39e-4</td><td rowspan=1 colspan=1>4.73e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;building”</td><td rowspan=1 colspan=1>8.90e-4</td><td rowspan=1 colspan=1>6.67e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;building2&quot;</td><td rowspan=1 colspan=1>7.19e-4</td><td rowspan=1 colspan=1>7.78e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;cargo2&quot;</td><td rowspan=1 colspan=1>1.05e-3</td><td rowspan=1 colspan=1>1.18e-3</td></tr><tr><td rowspan=1 colspan=1>&quot;small_bricks&quot;</td><td rowspan=1 colspan=1>1.21e-3</td><td rowspan=1 colspan=1>6.82e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;football_team&quot;</td><td rowspan=1 colspan=1>4.56e-3</td><td rowspan=1 colspan=1>5.68e-3</td></tr></table>
197
+
198
+ Table 1 reports the final Gatys et al. losses obtained by both approaches for all inpainted textures showed previously. In most cases, the Gatys et al. (2015a) approach converges to a smaller value, which is not surprising since our method optimizes a modified version of the loss. Table 1, combined with the visual aspect of Gatys et al. inpainted renderings, illustrates that only imposing local coherence is not enough to obtain good inpainted textures. Our texture representation seems to be better suited for this task.
199
+
200
+ ![](images/2231dc59db139e901ed523d9c558bec18b16d8935cd502936456659b797a3cde.jpg)
201
+
202
+ ![](images/e0fa62ff4230f9c419d3d39bd52bfa9c05b0730b5ff3652b369555d4cfae2a42.jpg)
203
+
204
+ ![](images/7cd2b08cfe5550333150be8478841c746a249da2ce20540ee9b25ad7a09d0aed.jpg)
205
+ Style
206
+
207
+ ![](images/b11d2a55d9752e5cc1349d9e99b1d8ff309f0a3b2e36271d669c7c05e237643f.jpg)
208
+ Content (&init)
209
+
210
+ ![](images/32cae7131934dfbed3305598754f0968fe23b5e3a724f9b5c832ee8385ab0c1a.jpg)
211
+ Ours
212
+
213
+ ![](images/6ee592082e45d87c3ff944ef1fa30d5b08a60546fcc2adc7e12c8e37868b8f0b.jpg)
214
+ Gatys
215
+
216
+ ![](images/4979210ace33ad8aadca5edafe85398ff90db694cd7f16502bfe8ea8c4682526.jpg)
217
+
218
+ ![](images/66541a0ba406f23dbfab5e6aa52db140a57333d83d1f90070ddc9efc7e3eea6b.jpg)
219
+
220
+ ![](images/af9da92cc614db1ca298004e54e4372697b826ce6efbb764deff7b922b87e852.jpg)
221
+
222
+ # C SYMMETRIC TEXTURES
223
+
224
+ ![](images/aee878193ca11f6507957dcf5903f3dd8195b3beabcbeae2cdf46ef0386165a5.jpg)
parse/train/HyGTuv9eg/HyGTuv9eg_content_list.json ADDED
@@ -0,0 +1,1126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "INCORPORATING LONG-RANGE CONSISTENCY I NCNN-BASED TEXTURE GENERATION",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 101,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Guillaume Berger & Roland Memisevic ",
17
+ "bbox": [
18
+ 186,
19
+ 170,
20
+ 460,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Department of Computer Science and Operations Research \nUniversity of Montreal \nguillaume.berger@umontreal.ca, memisevr@iro.umontreal.ca ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 717,
32
+ 226
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 452,
42
+ 247,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Gatys et al. (2015a) showed that pair-wise products of features in a convolutional network are a very effective representation of image textures. We propose a simple modification to that representation which makes it possible to incorporate longrange structure into image generation, and to render images that satisfy various symmetry constraints. We show how this can greatly improve rendering of regular textures and of images that contain other kinds of symmetric structure. We also present applications to inpainting and season transfer. ",
51
+ "bbox": [
52
+ 232,
53
+ 276,
54
+ 764,
55
+ 375
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 392,
66
+ 336,
67
+ 409
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "There are currently two dominant approaches to texture synthesis: non-parametric techniques, which synthesize a texture by extracting pixels (or patches) from a reference image that are resampled for rendering (Efros & Leung, 1999; Kwatra et al., 2003), and parametric statistical models, which optimize reconstructions to match certain statistics computed on filter responses (Heeger & Bergen, 1995; Portilla & Simoncelli, 2000). Recently, the second approach has seen a significant advancement, after Gatys et al. (2015a) showed that a CNN pre-trained on an object classification task, such as ImageNet (Russakovsky et al., 2015), can be very effective at generating textures. Gatys et al. (2015a) propose to minimize with respect to the input image a loss function, that measures how well certain high-level features of a reference image are preserved. The reference image constitutes an example of the texture to be generated. The high-level features to be preserved are pair-wise products of feature responses, averaged over the whole image, referred to as the “Gramian” in that work. In Gatys et al. (2015b), the same authors show that by adding a second term to the cost, which matches the content of another image, one can render that other image in the “style” (texture) of the first. Numerous follow-up works have since then analysed and extended this approach (Ulyanov et al., 2016; Johnson et al., 2016; Ustyuzhaninov et al., 2016). ",
74
+ "bbox": [
75
+ 174,
76
+ 424,
77
+ 825,
78
+ 632
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "As shown in Figure 1, this method produces impressive results. However, it fails to take into account non-local structure, and consequently cannot generate results that exhibit long-range correlations in images. An example of the importance of long-range structure is the regular brick wall texture in the middle of the figure. Another example is the task of inpainting, where the goal is to fill in a missing part of an image, such that it is faithful to the non-missing pixels. Our main contribution is to introduce a way to deal with long-range structure using a simple modification to the product-based texture features. Our approach is based on imposing a “Markov-structure” on high-level features, allowing us to establish feature constraints that range across sites instead of being local. Unlike classical approaches to preserving spatial structure in image generation, such as Markov Random Fields and learning-based extensions (Roth & Black, 2005), our approach does not impose any explicit local constraints on pixels themselves. Rather, inspired by Gatys et al. (2015a), it encourages consistency to be satisfied on high-level features and on average across the whole image. We present applications to texture generation, inpainting and season transfer. ",
85
+ "bbox": [
86
+ 173,
87
+ 638,
88
+ 825,
89
+ 819
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 THE ARTISTIC STYLE ALGORITHM ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 174,
99
+ 839,
100
+ 490,
101
+ 854
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "2.1 SYNTHESIS PROCEDURE ",
108
+ "text_level": 1,
109
+ "bbox": [
110
+ 176,
111
+ 869,
112
+ 383,
113
+ 883
114
+ ],
115
+ "page_idx": 0
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "Given a reference texture, $x$ , the algorithm described in Gatys et al. (2015a) permits to synthesize by optimization a new texture $\\hat { x }$ similar to $x$ . To achieve this, the algorithm exploits an ImageNet ",
120
+ "bbox": [
121
+ 174,
122
+ 895,
123
+ 823,
124
+ 924
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "image",
130
+ "img_path": "images/fdfb6b9e81db4b326e7af8723287b7dd54410b08bb7ba3391927271ae0a5b270.jpg",
131
+ "image_caption": [
132
+ "Figure 1: Reference image (left) and generated texture (right) using the procedure described in Gatys et al. (2015a). "
133
+ ],
134
+ "image_footnote": [],
135
+ "bbox": [
136
+ 178,
137
+ 102,
138
+ 821,
139
+ 183
140
+ ],
141
+ "page_idx": 1
142
+ },
143
+ {
144
+ "type": "image",
145
+ "img_path": "images/d62b0a03199a11debffeb0150e39840133ebb843e2d97dbc40ddfdcc856e8665.jpg",
146
+ "image_caption": [
147
+ "Figure 2: Summary of the texture synthesis procedure described in Gatys et al. (2015a). We use a VGG-19 network Simonyan & Zisserman (2014) as the pre-trained CNN. "
148
+ ],
149
+ "image_footnote": [],
150
+ "bbox": [
151
+ 196,
152
+ 233,
153
+ 803,
154
+ 367
155
+ ],
156
+ "page_idx": 1
157
+ },
158
+ {
159
+ "type": "text",
160
+ "text": "pre-trained model to define metrics suitable for describing textures: “Gram” matrices of feature maps, computed on top of $L$ selected layers. Formally, let $\\hat { N } ^ { l }$ be the number of maps in layer $l$ of a pre-trained CNN. The corresponding Gram matrix $G ^ { \\bar { l } }$ is a $N ^ { l } \\times N ^ { l }$ matrix defined as: ",
161
+ "bbox": [
162
+ 174,
163
+ 435,
164
+ 825,
165
+ 478
166
+ ],
167
+ "page_idx": 1
168
+ },
169
+ {
170
+ "type": "equation",
171
+ "img_path": "images/52794122ec98d0dcfd2541a4c6babb5236a6429591371cb6356d46b63d7c5389.jpg",
172
+ "text": "$$\nG _ { i j } ^ { l } = \\frac { 1 } { M ^ { l } } \\sum _ { k = 1 } ^ { M ^ { l } } F _ { i k } ^ { l } F _ { j k } ^ { l } = \\frac { 1 } { M ^ { l } } \\langle F _ { i : } ^ { l } , F _ { j : } ^ { l } \\rangle\n$$",
173
+ "text_format": "latex",
174
+ "bbox": [
175
+ 367,
176
+ 486,
177
+ 632,
178
+ 531
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "where $F _ { i : } ^ { l }$ is the $i ^ { t h }$ vectorized feature map of layer $l$ , $M ^ { l }$ is the number of elements in each map of this layer, and where $\\langle \\cdot , \\cdot \\rangle$ denotes the inner product. Equation 1 makes it clear that $G ^ { l }$ captures how feature maps from layer $l$ are correlated to each other. Diagonal terms, $G _ { i i } ^ { l }$ are the squared Frobenius norm of the $i ^ { t h }$ map $\\left\\| F _ { i : } ^ { l } \\right\\| _ { F } ^ { 2 }$ , so they represent its spatially averaged energy. We will discuss the Gramians in more detail in the next paragraph. Once the Gram matrices $\\{ G ^ { l } \\} _ { l \\in [ 1 , L ] }$ of the reference texture are computed, the synthesis procedure by Gatys et al. (2015a) amounts to constructing an image that produces Gram matrices $\\{ \\hat { G } ^ { l } \\} _ { l \\in [ 1 , L ] }$ that match the ones of the reference texture. More precisely, the following loss function is minimized with respect to the image being constructed: ",
185
+ "bbox": [
186
+ 173,
187
+ 539,
188
+ 825,
189
+ 675
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "equation",
195
+ "img_path": "images/63a4422daa98d2165b447d1017c54d6cb11dad89bdff68b005809c83129c56bc.jpg",
196
+ "text": "$$\n\\mathcal { L } _ { s t y l e } = \\sum _ { l = 1 } ^ { L } w _ { l } \\left. \\hat { \\boldsymbol { G } } ^ { l } - \\boldsymbol { G } ^ { l } \\right. _ { F } ^ { 2 } = \\sum _ { l = 1 } ^ { L } w _ { l } \\mathcal { L } _ { s t y l e } ^ { l }\n$$",
197
+ "text_format": "latex",
198
+ "bbox": [
199
+ 348,
200
+ 671,
201
+ 650,
202
+ 715
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "where $w _ { l }$ is a normalizing constant similar to Gatys et al. (2015a). ",
209
+ "bbox": [
210
+ 174,
211
+ 718,
212
+ 607,
213
+ 733
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "The overall process is summarized in Figure 2. While the procedure can be computationally expensive, there have been successful attempts reported recently which reduce the generation time (Ulyanov et al., 2016; Johnson et al., 2016). ",
220
+ "bbox": [
221
+ 174,
222
+ 739,
223
+ 821,
224
+ 782
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "2.2 WHY GRAM MATRICES WORK ",
231
+ "text_level": 1,
232
+ "bbox": [
233
+ 176,
234
+ 799,
235
+ 421,
236
+ 814
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Feature Gram matrices are effective at representing texture, because they capture global statistics across the image due to spatial averaging. Since textures are static, averaging over positions is required and makes Gram matrices fully blind to the global arrangement of objects inside the reference image. This property permits to generate very diverse textures by just changing the starting point of the optimization. Despite averaging over positions, coherence across multiple features needs to be preserved (locally) to model visually sensible textures. This requirement is taken care of by the off-diagonal terms in the Gram matrix, which capture the co-occurence of different features at a single spatial location. Indeed, Figure 3 shows that restricting the texture representation to the squared Frobenius norm of feature maps (i.e. diagonal terms) makes distinct object-parts from the reference texture encroach on each other in the reconstruction, as local coherence is not captured by the model. Exploiting off-diagonal terms improves the quality of the reconstruction as consistency across feature maps is enforced (on average across the image). ",
243
+ "bbox": [
244
+ 173,
245
+ 825,
246
+ 825,
247
+ 924
248
+ ],
249
+ "page_idx": 1
250
+ },
251
+ {
252
+ "type": "image",
253
+ "img_path": "images/81370cb9bdd3f71e6f5fa79f9a4d5298de9b1732fa438e0865bb44a9d80ca202.jpg",
254
+ "image_caption": [
255
+ "Figure 3: Exploiting Gram matrices of feature maps as in Gatys et al. (2015a) $( 1 ^ { s t } r o w )$ or only the squared Frobenius norm of feature maps $( 2 ^ { n d } r o w )$ for increasingly deep layers (from left to right). "
256
+ ],
257
+ "image_footnote": [],
258
+ "bbox": [
259
+ 178,
260
+ 101,
261
+ 820,
262
+ 277
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "",
269
+ "bbox": [
270
+ 174,
271
+ 344,
272
+ 825,
273
+ 415
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "The importance of local coherence can be intuitively understood in the case of linear features (or in the lowest layer of a convolutional network): when decomposing an image using Gabor-like features, local structure can be expressed as the relative offsets in the Fourier phase angles between multiple different filter responses. A sharp step-edge, for example, requires the phases of local Fourier components at different frequencies to align in a different way than a blurry edge or a ridge (Morrone & Burr, 1988; Kovesi, 1999). Also, natural images exhibit very specific phaserelationships across frequency components in general, and destroying these makes the image look unnatural (Wang & Simoncelli, 2003). The same is not true of Fourier amplitudes (represented on the diagonals of the Gramian), which play a much less important role in the visual appearance (Oppenheim & Lim, 1981). In the case of deeper representations, the situation is more complex, but it is still local co-occurrence averaged over the whole image that captures texture. ",
280
+ "bbox": [
281
+ 174,
282
+ 421,
283
+ 825,
284
+ 574
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "Unfortunately, average local coherence falls short of capturing long-range structure in images. Spatial consistency is hard to capture within a single filter bank, because of combinatorial effects. Indeed, since Gram matrices capture coherence at a single spatial location, every feature would have to be matched to multiple transformed versions of itself. A corollary is that every feature would have to appear in the form of multiple transformed copies of itself in order to capture spatial consistency. However, this requirement clashes with the limited number of features available in each CNN layer. One way to address this is to use higher-layer features, whose receptive fields are larger. Unfortunately, as illustrated in Figure 3, even if using layers up to pool5 whose input receptive field covers the whole image1 (first row, last column), the reconstruction remains mainly unstructured and the method fails to produce spatial regularities. ",
291
+ "bbox": [
292
+ 173,
293
+ 580,
294
+ 825,
295
+ 719
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "3 MODELING SPATIAL CO-OCCURENCES ",
302
+ "text_level": 1,
303
+ "bbox": [
304
+ 174,
305
+ 741,
306
+ 522,
307
+ 756
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "To account for spatial structure in images, we propose encoding this structure in the feature selfsimilarity matrices themselves. To this end, we suggest that, instead of computing co-occurences between multiple features within a map, we compute co-occurences between feature maps $F ^ { l }$ and spatially transformed feature maps $T ( F ^ { l } )$ , where $T$ denotes a spatial transformation. In the simplest case, $T$ represents local translation, which amounts to measuring similarities between local features and other neighbouring features. We denote by $T _ { x , + \\delta }$ the operation consisting in horizontally translating feature maps by $\\delta$ pixels and define the transformed Gramian: ",
314
+ "bbox": [
315
+ 173,
316
+ 770,
317
+ 825,
318
+ 868
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "equation",
324
+ "img_path": "images/f989a0266377fab63ae12c9434f6fda93bd38e9c405a3ac84da59025e6b7910d.jpg",
325
+ "text": "$$\nG _ { x , \\delta , i j } ^ { l } = \\frac { 1 } { M ^ { l } } \\langle T _ { x , + \\delta } \\left( F _ { i : } ^ { l } \\right) , T _ { x , - \\delta } \\left( F _ { j : } ^ { l } \\right) \\rangle\n$$",
326
+ "text_format": "latex",
327
+ "bbox": [
328
+ 361,
329
+ 872,
330
+ 635,
331
+ 901
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "image",
337
+ "img_path": "images/a94944d3a051ed2f9aae98e632a49046bd878a60099da97d9cc1efc68fe4cea9.jpg",
338
+ "image_caption": [
339
+ "Figure 4: Computing the shifted Gram matrix for a given layer with feature maps of width $X$ . "
340
+ ],
341
+ "image_footnote": [],
342
+ "bbox": [
343
+ 178,
344
+ 98,
345
+ 823,
346
+ 229
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "where $T _ { x , - \\delta }$ performs a translation in the opposite direction. As illustrated in Figure 4, the transformation in practice simply amounts to removing the $\\delta$ first or last columns from the raw feature maps. Therefore, the inner product now captures how features at position $( i , j )$ are correlated with features located at position $( i , j + \\delta )$ in average. While Figure 4 illustrates the case where feature maps are horizontally shifted, one would typically use translations along both the $x$ -axis and the $y$ -axis. Our transformed Gramians are related to Gray-Level Co-occurrence Matrices (GLCM) (Haralick et al., 1973) which compute the unnormalized frequencies of pixel values for a given offset in an image. While GLCMs have been mainly used for analysis, some work tried to use these features for texture synthesis (Lohmann, 1995). Usually, GLCMs are defined along 4 directions: $0 ^ { \\circ }$ and $9 0 °$ (i.e. horizontal and vertical offsets), as well as $4 5 ^ { \\circ }$ and $1 3 5 ^ { \\circ }$ (i.e. diagonal offsets). In comparison, our method does not consider diagonal offsets and captures spatial coherence on high-level features, making use of a pre-trained CNN, instead of working directly in the pixel domain. ",
353
+ "bbox": [
354
+ 174,
355
+ 285,
356
+ 825,
357
+ 453
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "With this definition for transformed Gram matrices, we propose defining the loss as: $\\begin{array} { r l } { \\mathcal { L } } & { { } = } \\end{array}$ $\\mathcal { L } _ { s t y l e } + \\mathcal { L } _ { c c }$ , where $c c$ stands for cross-correlation. Like $\\mathcal { L } _ { s t y l e }$ , $\\mathcal { L } _ { c c }$ is a weighted sum of multiple losses $\\mathcal { L } _ { c c , \\delta } ^ { l }$ defined for several selected layers as the mean squared error between transformed Gram matrices of the reference texture and the one being constructed: ",
364
+ "bbox": [
365
+ 174,
366
+ 459,
367
+ 825,
368
+ 518
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "equation",
374
+ "img_path": "images/64689127ebd1aa3c0ded3747badfff4cb5be8504f48c528eed1f148a5298e960.jpg",
375
+ "text": "$$\n\\mathcal { L } _ { c c , \\delta } ^ { l } = \\frac { 1 } { 2 } \\left( \\mathcal { L } _ { c c , x , \\delta } ^ { l } + \\mathcal { L } _ { c c , y , \\delta } ^ { l } \\right) = \\frac { 1 } { 2 } \\left( \\left. \\hat { G } _ { x , \\delta } ^ { l } - G _ { x , \\delta } ^ { l } \\right. _ { F } ^ { 2 } + \\left. \\hat { G } _ { y , \\delta } ^ { l } - G _ { y , \\delta } ^ { l } \\right. _ { F } ^ { 2 } \\right)\n$$",
376
+ "text_format": "latex",
377
+ "bbox": [
378
+ 248,
379
+ 537,
380
+ 750,
381
+ 571
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "Although this amounts to adding more terms to a representation that was already high-dimensional and overparametrized, we found that these additional terms do not hurt the diversity of generated textures. Indeed, the new loss remains blind to the global arrangement of objects. In fact, there exists a specific situation where our approach is strictly equivalent to computing Gram matrices of deeper layers: with linear activations and “one-hot” convolution kernels2, deeper layers would simply contain translated versions of lower feature maps. In that case, computing Gram matrices of deeper layers would permit to directly capture cross-correlation statistics in lower ones. Nevertheless, this situation is very unlikely when using a pretrained CNN, as the network probably learned operations more useful than simple translations during its supervised training. ",
388
+ "bbox": [
389
+ 173,
390
+ 583,
391
+ 825,
392
+ 709
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "While we focus on translation for most of our results, we shall discuss other types of transformation in the experiments Section. ",
399
+ "bbox": [
400
+ 174,
401
+ 729,
402
+ 823,
403
+ 757
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "4 EXPERIMENTS ",
410
+ "text_level": 1,
411
+ "bbox": [
412
+ 176,
413
+ 780,
414
+ 326,
415
+ 796
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "In our experiments, we exploit the same normalized version of the VGG-19 network3 (Simonyan & Zisserman, 2014) as in Gatys et al. (2015a;b) and layers conv1 1, pool1, pool2, pool3, and pool4 are always used to define the standard Gram matrices. In our method, we did not use conv1 1 to define cross-correlation terms, as the large number of neurons at this stage makes the computation of Gram matrices costly. Corresponding $\\delta$ values for each layer are discussed in the next paragraph. ",
422
+ "bbox": [
423
+ 176,
424
+ 813,
425
+ 825,
426
+ 882
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "image",
432
+ "img_path": "images/a4fe332fd30d43110d6b3cb6270896f60861c155adfa9dd5fdca304e451c2575.jpg",
433
+ "image_caption": [
434
+ "Figure 5: P ool2 reconstruction using different values for $\\delta$ in $\\mathcal { L } _ { c c , \\delta } ^ { p o o l 2 }$ . $\\boldsymbol { \\cdot } \\boldsymbol { 1 } ^ { s t }$ column): Without crosscorrelation terms. (Other columns): Using a single cross-correlation term with a fixed value $( 1 ^ { s t }$ row) or using multiple cross-correlation terms with distinct $\\delta$ values $( 2 ^ { n d } r o w )$ . "
435
+ ],
436
+ "image_footnote": [],
437
+ "bbox": [
438
+ 200,
439
+ 98,
440
+ 795,
441
+ 281
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Finally, our implementation4 uses Lasagne (Dieleman et al., 2015). Each image is of size $3 8 4 \\times 3 8 4$ Most textures used as references in this paper were taken from textures.com and pixabay.com. ",
448
+ "bbox": [
449
+ 174,
450
+ 373,
451
+ 821,
452
+ 402
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "4.1 EXPERIMENTS WITH TRANSLATION-GRAMIANS ",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 174,
462
+ 421,
463
+ 544,
464
+ 435
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "The $\\delta$ parameter is of central importance as it dictates the range of the spatial constraints. We observed that the optimal value depends on both the considered layer in the pre-trained CNN and the reference texture, making it difficult to choose a value automatically. ",
471
+ "bbox": [
472
+ 174,
473
+ 449,
474
+ 825,
475
+ 491
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "For instance, Figure 5 shows generated images from the brick wall texture using only the pool2 layer with different $\\delta$ configurations. The first row depicts the results when considering single values of $\\delta$ only. While $\\delta = 4$ or $\\delta = 8$ are good choices, considering extreme long-range correlations does not help for this particular texture: a brick depends mostly on its neighbouring bricks and not the far-away ones. More precisely, a translation of more than 16 pixels in the pool2 layer makes the input receptive field move more than 64 pixels. Therefore $\\delta = 1 6$ or $\\delta = 3 2$ do not capture any information about neighbouring bricks. Unfortunately, this is not true for all textures, and $\\delta = 1 6$ or $\\delta = 3 2$ might be good choices for another image that exhibits longer structures. ",
482
+ "bbox": [
483
+ 174,
484
+ 497,
485
+ 825,
486
+ 609
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "Searching systematically for a $\\delta$ configuration that works well with the reference texture being considered would be a tedious task: even for a very regular texture with a periodic horizontal (or vertical) pattern, it is hard to guess the optimal $\\delta$ values for each layer (for deeper ones in particular). Instead, we propose to use a fixed but wide set of $\\delta$ values per layer, by defining the cost to be: $\\mathcal { L } _ { c c } ^ { l } = \\sum _ { k } \\mathcal { L } _ { c c , \\delta _ { k } } ^ { l }$ . A potential concern is that combining many loss terms can hurt the reconstruction or the diversity of generated textures. Figure 5 (second row) shows contrarily that there is no visual effect from using $\\delta$ values that are not specifically useful for the reference texture being considered: the rendering benefits from using $\\bar { \\delta } \\in \\{ 2 , \\dot { 4 } , 8 \\}$ while considering bigger values $( \\delta \\in \\{ 2 , 4 , 8 , 1 6 , 3 2 \\}$ , e.g.) does not help, but does not hurt the reconstruction either. We found the same to be true for other textures as well, and our results (shown in the next Section) show that combining the loss terms is able to generate very diverse textures. A drawback from using multiple cross-correlation terms per layers, however, is computational. We found that in our experimental setups, adding cross-correlation terms increases the generation time by roughly $8 0 \\%$ . ",
493
+ "bbox": [
494
+ 173,
495
+ 616,
496
+ 825,
497
+ 804
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "As a guide-line, for image sizes of roughly $3 8 4 \\times 3 8 4$ pixels, we recommend the following $\\delta$ values per layer (which we used in all our following experiments): $\\{ 2 , 4 , 8 , 1 6 , 3 2 , 6 4 \\}$ for pool1, $\\{ 2 , 4 , 8 , 1 6 , 3 2 \\}$ for pool2, $\\{ 2 , 4 , 8 , 1 6 \\}$ for pool3, and $\\{ 2 , 4 , 8 \\}$ for pool4. The number and the range of $\\delta$ values decrease with depth because feature maps are getting smaller due to $2 \\times 2$ pooling layers. This configuration should be sufficient to account for spatial structure in any $3 8 4 \\times 3 8 4$ image. ",
504
+ "bbox": [
505
+ 174,
506
+ 811,
507
+ 825,
508
+ 896
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "image",
514
+ "img_path": "images/0733b00648dcc0afd39301437db05c2b2d3c89d6c966c8fe19133bf1c9e0c450.jpg",
515
+ "image_caption": [
516
+ "Figure 6: Some results of our approach compared with Gatys et al. (2015a). Only the initialization differs in the last two columns. Further results are shown in the supplementary material. "
517
+ ],
518
+ "image_footnote": [],
519
+ "bbox": [
520
+ 220,
521
+ 83,
522
+ 776,
523
+ 775
524
+ ],
525
+ "page_idx": 5
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "4.2 SYNTHESIS OF STRUCTURED TEXTURE EXAMPLES ",
530
+ "text_level": 1,
531
+ "bbox": [
532
+ 176,
533
+ 842,
534
+ 558,
535
+ 856
536
+ ],
537
+ "page_idx": 5
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Figure 6 shows the result of our approach applied to various structured and unstructured textures. It demonstrates that the method is effective at capturing long-range correlations without simply copying the content of the original texture. For instance, note how our model captures the depth aspect of the reference image in the third and fourth rows. ",
542
+ "bbox": [
543
+ 174,
544
+ 867,
545
+ 825,
546
+ 924
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "image",
552
+ "img_path": "images/b3c7674352750d3be3a9314c029171b2f99b3d3205948b2e93a221b3ce6f6dba.jpg",
553
+ "image_caption": [
554
+ "Figure 7: Texture generation applied to in-painting. More in-painted images can be found in the supplementary material. "
555
+ ],
556
+ "image_footnote": [],
557
+ "bbox": [
558
+ 209,
559
+ 102,
560
+ 790,
561
+ 299
562
+ ],
563
+ "page_idx": 6
564
+ },
565
+ {
566
+ "type": "image",
567
+ "img_path": "images/dd51b4bc2b046d0074a607813aa7e8c25954f2a16b93452368583276119ba3e2.jpg",
568
+ "image_caption": [
569
+ "Figure 8: Season transfer examples. "
570
+ ],
571
+ "image_footnote": [],
572
+ "bbox": [
573
+ 222,
574
+ 359,
575
+ 777,
576
+ 526
577
+ ],
578
+ "page_idx": 6
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "The problem of synthesizing near-regular structures is challenging because stochasticity and regularity are adversarial properties (Lin et al., 2006). Non-parametric patch-based techniques, such as Efros & Freeman (2001), are better suited for this task because they can $t i l e ^ { 5 }$ the reference image. On the other hand, regular structures are usually more problematic for parametric statistical models. Nevertheless, the two first rows of Figure 6 demonstrate that our approach can produce good visual results and can reduce the gap to patch-based methods on these kinds of texture. ",
583
+ "bbox": [
584
+ 174,
585
+ 585,
586
+ 825,
587
+ 669
588
+ ],
589
+ "page_idx": 6
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "Even if the reference image is not a texture, the generated images in the last row (Leonardo Dicaprio’s face) provide a good visual illustration of the effect of translation terms. In contrast to Gatys et al., our approach preserves longer-range structure, such as the alignment and similar appearance of the eyes, hair on top of the forehead, the chin below the mouth, etc. Finally, when the reference texture is unstructured (fifth row), our solution does not necessarily provide a benefit, but it also does not hurt the visual quality or the diversity of the generated textures. ",
594
+ "bbox": [
595
+ 174,
596
+ 676,
597
+ 825,
598
+ 761
599
+ ],
600
+ "page_idx": 6
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "4.3 INPAINTING APPLICATION ",
605
+ "text_level": 1,
606
+ "bbox": [
607
+ 176,
608
+ 779,
609
+ 395,
610
+ 792
611
+ ],
612
+ "page_idx": 6
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "Modelling long-range correlations can make it possible to apply texture generation to inpainting, because it allows us to impose consistency constraints between the newly rendered region and the unmodified parts of the original image. ",
617
+ "bbox": [
618
+ 174,
619
+ 805,
620
+ 825,
621
+ 848
622
+ ],
623
+ "page_idx": 6
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "To apply our approach to texture inpainting, we extracted two patches from the original image: one that covers the whole area to inpaint, and another one that serves as the reference texture. Then, approximately the same process as for texture generation is used, with the following two modifications: First, instead of random noise, the optimization starts from the masked content patch (the one to inpaint) showing a grey area and its non-missing surrounding. Second, we encourage the borders of the output to not change much with respect to the original image using an $L _ { 2 }$ penalty. We apply the penalty both in the Gatys et al. rendering and in ours. Some inpainted images are shown in Figure 7. As seen in the figure, our solution significantly outperforms Gatys et al. in terms of visual quality. Further results are shown in the supplementary material. ",
628
+ "bbox": [
629
+ 176,
630
+ 854,
631
+ 823,
632
+ 897
633
+ ],
634
+ "page_idx": 6
635
+ },
636
+ {
637
+ "type": "image",
638
+ "img_path": "images/1fbcc91968bc06348295a657a024bdfd88b21ab99f4a0f4a49d20e11ff2acdfd.jpg",
639
+ "image_caption": [
640
+ "Figure 9: Generation of abstract symmetric textures. "
641
+ ],
642
+ "image_footnote": [],
643
+ "bbox": [
644
+ 243,
645
+ 101,
646
+ 754,
647
+ 419
648
+ ],
649
+ "page_idx": 7
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "",
654
+ "bbox": [
655
+ 173,
656
+ 488,
657
+ 825,
658
+ 573
659
+ ],
660
+ "page_idx": 7
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "4.4 SEASON TRANSFER ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 176,
668
+ 604,
669
+ 348,
670
+ 618
671
+ ],
672
+ "page_idx": 7
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "Figure 8 shows the result of applying our approach to a style transfer task, as in Gatys et al. (2015b): transferring the “season” of a landscape image to another one. On this task, the results from our approach are similar to those from Gatys et al. (2015b). Nevertheless, in contrast to the Gatys et al. results, our approach seems to better capture global information, such as sky color and leaves (bottom row), or the appearance of branches in the winter image (top row). ",
677
+ "bbox": [
678
+ 173,
679
+ 636,
680
+ 825,
681
+ 707
682
+ ],
683
+ "page_idx": 7
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "4.5 INCORPORATING OTHER TYPES OF STRUCTURE ",
688
+ "text_level": 1,
689
+ "bbox": [
690
+ 174,
691
+ 739,
692
+ 539,
693
+ 752
694
+ ],
695
+ "page_idx": 7
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "While we focused on feature map translations in most of our experiments, other transformations can be applied as well. To illustrate this point, we explored a way to generate symmetric textures using another simple transformation. To this end, we propose flipping one of the two feature maps before computing the Gram matrices: $G _ { l r , i j } ^ { l } = \\langle F _ { i : } ^ { l } , T _ { l r } \\ ' ( F _ { j : } ^ { l } ) \\rangle$ . Here $T _ { l r }$ corresponds to the left-right flipping operation, but we also considered up-down flipping of feature maps: $\\mathcal { L } ^ { l } = \\mathcal { L } _ { s t y l e } ^ { l } + \\mathcal { L } _ { l r } ^ { l } +$ L lud . ",
700
+ "bbox": [
701
+ 173,
702
+ 770,
703
+ 825,
704
+ 862
705
+ ],
706
+ "page_idx": 7
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "As can be seen in Figure 9, in contrast to Gatys et al., the additional loss terms capture which objects are symmetric in the reference texture, and enforce these same objects to be symmetric in the reconstruction as well. Other kinds of transformation could be used, depending on the type of property in the source texture one desires to preserve. ",
711
+ "bbox": [
712
+ 174,
713
+ 867,
714
+ 825,
715
+ 924
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "5 CONCLUSION ",
722
+ "text_level": 1,
723
+ "bbox": [
724
+ 176,
725
+ 102,
726
+ 318,
727
+ 117
728
+ ],
729
+ "page_idx": 8
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "We presented an approach to satisfying long-range consistency constraints in the generation of images. It is based on a variation of the method by Gatys et al., and considers spatial co-occurences of local features (instead of only co-occurences across features). We showed that the approach permits to generate textures with various global symmetry properties and that it makes it possible to apply texture generation to in-painting. Since it preserves correlations across sites, the approach is reminiscent of an MRF, but in contrast to an MRF or other graphical models, it defines correlationconstraints on high-level features of a (pre-trained) CNN rather than on pixels. ",
734
+ "bbox": [
735
+ 174,
736
+ 133,
737
+ 825,
738
+ 231
739
+ ],
740
+ "page_idx": 8
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "REFERENCES ",
745
+ "text_level": 1,
746
+ "bbox": [
747
+ 174,
748
+ 251,
749
+ 285,
750
+ 265
751
+ ],
752
+ "page_idx": 8
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Sander Dieleman, Jan Schlter, Colin Raffel, et al. Lasagne: First release., August 2015. URL http://dx. doi.org/10.5281/zenodo.27878. \nA. A. Efros and T. K. Leung. Texture synthesis by non-parametric sampling. In Proceedings of the International Conference on Computer Vision-Volume 2, ICCV ’99, pp. 1033–, 1999. \nAlexei A. Efros and William T. Freeman. Image Quilting for Texture Synthesis and Transfer. Proceedings of SIGGRAPH 2001, pp. 341–346, August 2001. \nL. A. Gatys, A. S. Ecker, and M. Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems 28, 2015a. URL http://arxiv.org/abs/1505.07376. \nL. A. Gatys, A. S. Ecker, and M. Bethge. A neural algorithm of artistic style. CoRR, abs/1508.06576, 2015b. URL http://arxiv.org/abs/1508.06576. \nR. Haralick, K. Shanmugam, and I. Dinstein. Texture features for image classification. IEEE Transactions on Systems, Man, and Cybernetics 3 (6), 1973. \nDavid J. Heeger and James R. Bergen. Pyramid-based texture analysis/synthesis. In Proceedings of the 22nd Conference on Computer Graphics and Interactive Techniques, SIGGRAPH 1995, pp. 229–238, 1995. \nJ. Johnson, A. Alahi, and L. Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. CoRR, abs/1603.08155, 2016. URL http://arxiv.org/abs/1603.08155. \nP. Kovesi. Image features from phase congruency. Videre, 1(3):2–27, 1999. \nV. Kwatra, A. Schdl, I. Essa, G. Turk, and A. Bobick. Graphcut textures: Image and video synthesis using graph cuts. ACM Transactions on Graphics, SIGGRAPH 2003, 22(3):277–286, 2003. \nWen-Chieh Lin, James Hays, Chenyu Wu, V. Kwatra, and Yanxi Liu. Quantitative evaluation on near regular texture synthesis. In CVPR ’06, volume 1, pp. 427 – 434, June 2006. \nG. Lohmann. Analysis and synthesis of textures: A co-occurrence-based approach. Computers and Graphics, 19(1), pp. 29–36, 1995. \nM. C. Morrone and D. C. Burr. Feature detection in human vision: A phase-dependent energy model. Proceedings of the Royal Society of London B: Biological Sciences, 235(1280):221–245, 1988. \nA. V. Oppenheim and J. S. Lim. The importance of phase in signals. Proceedings of the IEEE, 69(5):529–541, 1981. ISSN 0018-9219. \nJ. Portilla and E. P. Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. Int. J. Comput. Vision, 40(1):49–70, 2000. \nS. Roth and M. J. Black. Fields of experts: A framework for learning image priors. In IEEE Conf. on Computer Vision and Pattern Recognition, volume 2, pp. 860–867, June 2005. \nO. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115(3):211–252, 2015. \nK. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. \nD. Ulyanov, V. Lebedev, A. Vedaldi, and V. Lempitsky. Texture networks: Feed-forward synthesis of textures and stylized images. In International Conference on Machine Learning (ICML), 2016. \nI. Ustyuzhaninov, W. Brendel, L. A. Gatys, and M. Bethge. Texture synthesis using shallow convolutional networks with random filters. CoRR, abs/1606.00021, 2016. URL http://arxiv.org/abs/1606. 00021. \nZ. Wang and E. P. Simoncelli. Local phase coherence and the perception of blur. In Advances in Neural Information Processing Systems 16 [NIPS 2003], pp. 1435–1442, 2003. \nCiyou Zhu, Richard H. Byrd, Peihuang Lu, and Jorge Nocedal. L-bfgs-b - fortran subroutines for large-scale bound constrained optimization. Technical report, ACM Trans. Math. Software, 1994. ",
757
+ "bbox": [
758
+ 171,
759
+ 266,
760
+ 826,
761
+ 926
762
+ ],
763
+ "page_idx": 8
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "",
768
+ "bbox": [
769
+ 173,
770
+ 104,
771
+ 826,
772
+ 213
773
+ ],
774
+ "page_idx": 9
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "Supplementary material ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 173,
782
+ 99,
783
+ 529,
784
+ 127
785
+ ],
786
+ "page_idx": 10
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "A TEXTURE GENERATION ",
791
+ "bbox": [
792
+ 176,
793
+ 150,
794
+ 405,
795
+ 165
796
+ ],
797
+ "page_idx": 10
798
+ },
799
+ {
800
+ "type": "image",
801
+ "img_path": "images/7996b087aac1120f4135dc33c1be02fad01fda7f4f161d9c89a75c42da2f811e.jpg",
802
+ "image_caption": [],
803
+ "image_footnote": [],
804
+ "bbox": [
805
+ 181,
806
+ 174,
807
+ 820,
808
+ 828
809
+ ],
810
+ "page_idx": 10
811
+ },
812
+ {
813
+ "type": "image",
814
+ "img_path": "images/10a8cc26ef285ca401b2e76fa624cfbae157f2de6a8075520d9bece66f04319f.jpg",
815
+ "image_caption": [],
816
+ "image_footnote": [],
817
+ "bbox": [
818
+ 178,
819
+ 176,
820
+ 821,
821
+ 830
822
+ ],
823
+ "page_idx": 11
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "B INPAINTING ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 174,
831
+ 102,
832
+ 310,
833
+ 117
834
+ ],
835
+ "page_idx": 12
836
+ },
837
+ {
838
+ "type": "image",
839
+ "img_path": "images/6201af3b350a06711412fc7b240a36cc657b5ef4cdbcb06c4bde514444bda001.jpg",
840
+ "image_caption": [],
841
+ "image_footnote": [],
842
+ "bbox": [
843
+ 174,
844
+ 140,
845
+ 825,
846
+ 308
847
+ ],
848
+ "page_idx": 12
849
+ },
850
+ {
851
+ "type": "image",
852
+ "img_path": "images/455b2d1f33375b4133b4b298627eb4879109e41a4f9f13fe6e66715d6daae2d2.jpg",
853
+ "image_caption": [],
854
+ "image_footnote": [],
855
+ "bbox": [
856
+ 245,
857
+ 373,
858
+ 753,
859
+ 540
860
+ ],
861
+ "page_idx": 12
862
+ },
863
+ {
864
+ "type": "image",
865
+ "img_path": "images/267bf72c6aca6e0e1e6e883796f77dbea9556357f14c4d5ea7c1d3cb0399c383.jpg",
866
+ "image_caption": [
867
+ ""
868
+ ],
869
+ "image_footnote": [],
870
+ "bbox": [
871
+ 243,
872
+ 569,
873
+ 450,
874
+ 727
875
+ ],
876
+ "page_idx": 12
877
+ },
878
+ {
879
+ "type": "image",
880
+ "img_path": "images/d2dfcfb15fed6909b957b975612920289da35cb18b6401e73af4ecbb17c18f92.jpg",
881
+ "image_caption": [
882
+ "Gatys et al. "
883
+ ],
884
+ "image_footnote": [],
885
+ "bbox": [
886
+ 545,
887
+ 569,
888
+ 751,
889
+ 728
890
+ ],
891
+ "page_idx": 12
892
+ },
893
+ {
894
+ "type": "image",
895
+ "img_path": "images/f5cbb699d907e2eac9878e99f3830544c0028945aa7c44e4d26985e0004266f9.jpg",
896
+ "image_caption": [
897
+ "Inpainted image "
898
+ ],
899
+ "image_footnote": [],
900
+ "bbox": [
901
+ 245,
902
+ 760,
903
+ 751,
904
+ 904
905
+ ],
906
+ "page_idx": 12
907
+ },
908
+ {
909
+ "type": "image",
910
+ "img_path": "images/675e22dc39763b4f655d38d605aba2ad35e17199acb9830163b57035fd91d414.jpg",
911
+ "image_caption": [
912
+ "Gatys et al. "
913
+ ],
914
+ "image_footnote": [],
915
+ "bbox": [
916
+ 200,
917
+ 102,
918
+ 797,
919
+ 305
920
+ ],
921
+ "page_idx": 13
922
+ },
923
+ {
924
+ "type": "image",
925
+ "img_path": "images/d9f6f36c89d7a8c86ebae09f8f61b55f4a623c6064c1fded1a16a1696709d7e0.jpg",
926
+ "image_caption": [],
927
+ "image_footnote": [],
928
+ "bbox": [
929
+ 197,
930
+ 383,
931
+ 802,
932
+ 838
933
+ ],
934
+ "page_idx": 13
935
+ },
936
+ {
937
+ "type": "image",
938
+ "img_path": "images/3bae23c5542923774b38a947f266d94da913576141432c0f47b112ea97f15e13.jpg",
939
+ "image_caption": [],
940
+ "image_footnote": [],
941
+ "bbox": [
942
+ 200,
943
+ 104,
944
+ 799,
945
+ 311
946
+ ],
947
+ "page_idx": 14
948
+ },
949
+ {
950
+ "type": "table",
951
+ "img_path": "images/4bed86a0169d629cb1ae84d288ad1049dcdacfd700a429b72c1293c00fe392e8.jpg",
952
+ "table_caption": [
953
+ "Table 1: Final Gatys et al. loss for all inpainted textures (by order of appearance). "
954
+ ],
955
+ "table_footnote": [],
956
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Gatys et al. loss</td></tr><tr><td rowspan=1 colspan=1>Texture</td><td rowspan=1 colspan=1>Gatys et al.</td><td rowspan=1 colspan=1>Ours</td></tr><tr><td rowspan=1 colspan=1>&quot;red_leaves”</td><td rowspan=1 colspan=1>3.38e-4</td><td rowspan=1 colspan=1>4.72e-4</td></tr><tr><td rowspan=1 colspan=1>“floor”</td><td rowspan=1 colspan=1>3.68e-4</td><td rowspan=1 colspan=1>4.73e-4</td></tr><tr><td rowspan=1 colspan=1>Supplementa</td><td rowspan=1 colspan=1>rymaterialtex</td><td rowspan=1 colspan=1>tures</td></tr><tr><td rowspan=1 colspan=1>&quot;leaves&quot;</td><td rowspan=1 colspan=1>4.08e-4</td><td rowspan=1 colspan=1>5.14e-4</td></tr><tr><td rowspan=1 colspan=1>“cargo”</td><td rowspan=1 colspan=1>3.39e-4</td><td rowspan=1 colspan=1>4.73e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;building”</td><td rowspan=1 colspan=1>8.90e-4</td><td rowspan=1 colspan=1>6.67e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;building2&quot;</td><td rowspan=1 colspan=1>7.19e-4</td><td rowspan=1 colspan=1>7.78e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;cargo2&quot;</td><td rowspan=1 colspan=1>1.05e-3</td><td rowspan=1 colspan=1>1.18e-3</td></tr><tr><td rowspan=1 colspan=1>&quot;small_bricks&quot;</td><td rowspan=1 colspan=1>1.21e-3</td><td rowspan=1 colspan=1>6.82e-4</td></tr><tr><td rowspan=1 colspan=1>&quot;football_team&quot;</td><td rowspan=1 colspan=1>4.56e-3</td><td rowspan=1 colspan=1>5.68e-3</td></tr></table>",
957
+ "bbox": [
958
+ 354,
959
+ 335,
960
+ 643,
961
+ 510
962
+ ],
963
+ "page_idx": 14
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Table 1 reports the final Gatys et al. losses obtained by both approaches for all inpainted textures showed previously. In most cases, the Gatys et al. (2015a) approach converges to a smaller value, which is not surprising since our method optimizes a modified version of the loss. Table 1, combined with the visual aspect of Gatys et al. inpainted renderings, illustrates that only imposing local coherence is not enough to obtain good inpainted textures. Our texture representation seems to be better suited for this task. ",
968
+ "bbox": [
969
+ 173,
970
+ 559,
971
+ 825,
972
+ 642
973
+ ],
974
+ "page_idx": 14
975
+ },
976
+ {
977
+ "type": "image",
978
+ "img_path": "images/2231dc59db139e901ed523d9c558bec18b16d8935cd502936456659b797a3cde.jpg",
979
+ "image_caption": [],
980
+ "image_footnote": [],
981
+ "bbox": [
982
+ 196,
983
+ 75,
984
+ 803,
985
+ 917
986
+ ],
987
+ "page_idx": 15
988
+ },
989
+ {
990
+ "type": "image",
991
+ "img_path": "images/e0fa62ff4230f9c419d3d39bd52bfa9c05b0730b5ff3652b369555d4cfae2a42.jpg",
992
+ "image_caption": [],
993
+ "image_footnote": [],
994
+ "bbox": [
995
+ 197,
996
+ 78,
997
+ 799,
998
+ 698
999
+ ],
1000
+ "page_idx": 16
1001
+ },
1002
+ {
1003
+ "type": "image",
1004
+ "img_path": "images/7cd2b08cfe5550333150be8478841c746a249da2ce20540ee9b25ad7a09d0aed.jpg",
1005
+ "image_caption": [
1006
+ "Style "
1007
+ ],
1008
+ "image_footnote": [],
1009
+ "bbox": [
1010
+ 200,
1011
+ 154,
1012
+ 338,
1013
+ 318
1014
+ ],
1015
+ "page_idx": 17
1016
+ },
1017
+ {
1018
+ "type": "image",
1019
+ "img_path": "images/b11d2a55d9752e5cc1349d9e99b1d8ff309f0a3b2e36271d669c7c05e237643f.jpg",
1020
+ "image_caption": [
1021
+ "Content (&init) "
1022
+ ],
1023
+ "image_footnote": [],
1024
+ "bbox": [
1025
+ 354,
1026
+ 155,
1027
+ 491,
1028
+ 233
1029
+ ],
1030
+ "page_idx": 17
1031
+ },
1032
+ {
1033
+ "type": "image",
1034
+ "img_path": "images/32cae7131934dfbed3305598754f0968fe23b5e3a724f9b5c832ee8385ab0c1a.jpg",
1035
+ "image_caption": [
1036
+ "Ours "
1037
+ ],
1038
+ "image_footnote": [],
1039
+ "bbox": [
1040
+ 508,
1041
+ 154,
1042
+ 643,
1043
+ 233
1044
+ ],
1045
+ "page_idx": 17
1046
+ },
1047
+ {
1048
+ "type": "image",
1049
+ "img_path": "images/6ee592082e45d87c3ff944ef1fa30d5b08a60546fcc2adc7e12c8e37868b8f0b.jpg",
1050
+ "image_caption": [
1051
+ "Gatys "
1052
+ ],
1053
+ "image_footnote": [],
1054
+ "bbox": [
1055
+ 508,
1056
+ 239,
1057
+ 643,
1058
+ 319
1059
+ ],
1060
+ "page_idx": 17
1061
+ },
1062
+ {
1063
+ "type": "image",
1064
+ "img_path": "images/4979210ace33ad8aadca5edafe85398ff90db694cd7f16502bfe8ea8c4682526.jpg",
1065
+ "image_caption": [],
1066
+ "image_footnote": [],
1067
+ "bbox": [
1068
+ 354,
1069
+ 239,
1070
+ 490,
1071
+ 319
1072
+ ],
1073
+ "page_idx": 17
1074
+ },
1075
+ {
1076
+ "type": "image",
1077
+ "img_path": "images/66541a0ba406f23dbfab5e6aa52db140a57333d83d1f90070ddc9efc7e3eea6b.jpg",
1078
+ "image_caption": [],
1079
+ "image_footnote": [],
1080
+ "bbox": [
1081
+ 197,
1082
+ 414,
1083
+ 800,
1084
+ 598
1085
+ ],
1086
+ "page_idx": 17
1087
+ },
1088
+ {
1089
+ "type": "image",
1090
+ "img_path": "images/af9da92cc614db1ca298004e54e4372697b826ce6efbb764deff7b922b87e852.jpg",
1091
+ "image_caption": [],
1092
+ "image_footnote": [],
1093
+ "bbox": [
1094
+ 197,
1095
+ 690,
1096
+ 802,
1097
+ 875
1098
+ ],
1099
+ "page_idx": 17
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "C SYMMETRIC TEXTURES ",
1104
+ "text_level": 1,
1105
+ "bbox": [
1106
+ 174,
1107
+ 102,
1108
+ 406,
1109
+ 117
1110
+ ],
1111
+ "page_idx": 18
1112
+ },
1113
+ {
1114
+ "type": "image",
1115
+ "img_path": "images/aee878193ca11f6507957dcf5903f3dd8195b3beabcbeae2cdf46ef0386165a5.jpg",
1116
+ "image_caption": [],
1117
+ "image_footnote": [],
1118
+ "bbox": [
1119
+ 200,
1120
+ 132,
1121
+ 799,
1122
+ 868
1123
+ ],
1124
+ "page_idx": 18
1125
+ }
1126
+ ]
parse/train/HyGTuv9eg/HyGTuv9eg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyGTuv9eg/HyGTuv9eg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/NJS8kp15zzH/NJS8kp15zzH_content_list.json ADDED
@@ -0,0 +1,850 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Rethinking Calibration of Deep Neural Networks: Do Not Be Afraid of Overconfidence ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 199,
8
+ 122,
9
+ 803,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Deng-Bao Wang,1,2 Lei Feng,3 Min-Ling Zhang1,2∗ ",
17
+ "bbox": [
18
+ 320,
19
+ 219,
20
+ 681,
21
+ 236
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1School of Computer Science and Engineering, Southeast University, Nanjing 210096, China \n2Key Laboratory of Computer Network and Information Integration (Southeast University), Ministry of Education, China 3College of Computer Science, Chongqing University, Chongqing, 400044, China wangdb@seu.edu.cn, lfeng@cqu.edu.cn, zhangml@seu.edu.cn ",
28
+ "bbox": [
29
+ 196,
30
+ 237,
31
+ 805,
32
+ 308
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 319,
43
+ 535,
44
+ 334
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Capturing accurate uncertainty quantification of the predictions from deep neural networks is important in many real-world decision-making applications. A reliable predictor is expected to be accurate when it is confident about its predictions and indicate high uncertainty when it is likely to be inaccurate. However, modern neural networks have been found to be poorly calibrated, primarily in the direction of overconfidence. In recent years, there is a surge of research on model calibration by leveraging implicit or explicit regularization techniques during training, which achieve well calibration performance by avoiding overconfident outputs. In our study, we empirically found that despite the predictions obtained from these regularized models are better calibrated, they suffer from not being as calibratable, namely, it is harder to further calibrate these predictions with post-hoc calibration methods like temperature scaling and histogram binning. We conduct a series of empirical studies showing that overconfidence may not hurt final calibration performance if post-hoc calibration is allowed, rather, the penalty of confident outputs will compress the room of potential improvement in post-hoc calibration phase. Our experimental findings point out a new direction to improve calibration of DNNs by considering main training and post-hoc calibration as a unified framework. ",
51
+ "bbox": [
52
+ 233,
53
+ 337,
54
+ 766,
55
+ 570
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 594,
66
+ 310,
67
+ 611
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Modern over-parameterized deep neural networks (DNNs) have been shown to be very powerful modeling tools for many prediction tasks involving complex input patterns [37]. In addition to obtaining accurate predictions, it is also important to capture accurate quantification of prediction uncertainty from deep neural networks in many real-world decision-making applications. A reliable predictive model should be accurate when it is confident about its predictions and indicate high uncertainty when it is likely to be inaccurate. However, modern DNNs trained with cross-entropy (CE) loss, despite being highly accurate, have been recently found to predict poorly calibrated probabilities, unlike traditional models trained with the same objective [4]. The overconfident predictions of DNNs could cause undesired consequences in safety-critical applications such as medical diagnosis and autonomous driving. Bayesian DNNs, which indirectly infer prediction uncertainty through weight uncertainties, have innate abilities to represent the model uncertainty [2, 16]. But training and inferring those bayesian models are computationally more expensive and conceptually more complicated than non-bayesian models, and their performance depends on the form of approximation made due to computational constraints. Therefore, the study on uncertainty calibration of deterministic DNNs is important for both development practice and the perspective of understanding DNNs. ",
74
+ "bbox": [
75
+ 174,
76
+ 626,
77
+ 825,
78
+ 845
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Post-hoc calibration addresses the miscalibration problem by equipping a given neural network with an additional parameterized calibration component, which can be tuned with a hold-out validation dataset. Guo et al. [4] experimented with several classical calibration fixes and found that simple post-hoc methods like Temperature Scaling (TS) [25] and Histogram Binning (HB) [33] are significantly effective for DNNs. The authors of [10] and [27] proposed to learn linear and non-linear transformation functions to rescale the original output logits respectively. Gupta et al. [5] proposed to obtain a calibration function by approximating the empirical cumulative distribution of output probabilities via splines. Kumar et al. [11] proposed to integrate TS with HB to achieve more stable calibration performance. Patel et al. [24] proposed a mutual information maximization-based binning strategy to solve the severe sample-inefficiency issue in HB. ",
85
+ "bbox": [
86
+ 178,
87
+ 853,
88
+ 823,
89
+ 881
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 90,
99
+ 825,
100
+ 202
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Recently, there is another line of research which presents a possibility of improving the calibration quality of deterministic DNNs via regularization during training. Guo et al. [4] found that training DNNs with strong weight decay, which used to be the predominant regularization mechanism for training neural networks, has a positive impact on calibration. Müller et al. [19] showed that training models using the standard CE loss with label smoothing [28], instead of one-hot labels, has a very favourable effect on model calibration. Mukhoti et al. [18] proposed to improve uncertainty calibration by replacing the conventionally used CE loss with the focal loss proposed in [14] when training DNNs. It is important to note that CE loss with label smoothing and focal loss can be considered as standard CE with an additional maximum-entropy regularizer, which means minimizing these losses is equivalent to minimizing CE loss and maximizing the entropy of the predicted distribution simultaneously [18, 17]. Following these studies, a recent work [7] explored several explicit regularization techniques for improving the predictive uncertainty calibration directly. ",
107
+ "bbox": [
108
+ 174,
109
+ 208,
110
+ 825,
111
+ 375
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we conduct an empirical study showing that despite the predictions obtained from the regularized models are well calibrated, they suffer from worse calibratable, namely, it is harder to further improve the calibrate performance with post-hoc calibration methods like temperature scaling and histogram binning. We found that the regularization works by simply aligning the average confidence of the whole dataset to the accuracy with some specific regularization strengths, and cannot achieve fine-grained calibration. The comparison results show that when post-hoc calibration methods are allowed, the standard CE loss yields better calibration performance than those regularization methods. The extended experiments demonstrate that regularization will make DNNs lose the important information about the hardness of samples, which results in compressing the room of potential improvement by post-hoc calibration. Based on the experimental findings, we raise a natural question: can we design new loss functions in the opposite direction of these regularization methods to further improve the calibration performance? To this end, we propose inverse focal loss, and empirically found that it can learn more calibratable models in some cases compared with the CE loss, though it causes severer overconfidence problem without post-hoc calibration. Most importantly, our findings show that overconfidence of DNNs is not the nightmare in uncertainty qualification and point out a new direction to improve the calibration of DNNs by considering main training and post-hoc calibration as a unified framework. ",
118
+ "bbox": [
119
+ 174,
120
+ 381,
121
+ 825,
122
+ 616
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 Preliminaries ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 637,
133
+ 318,
134
+ 655
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Let $\\mathcal { V } = \\{ { 1 , . . . , K } \\}$ denote the label space and $\\mathcal { X } = \\mathbb { R } ^ { d }$ denote the feature space. Given a sample $( { \\pmb x } , y ) \\in \\mathcal { X } \\times \\mathcal { Y }$ sampled from an unknown distribution, a learned neural network classifier $f ^ { \\theta } :$ $\\mathcal { X } \\to \\Delta ^ { K }$ can produce a probability distribution for $_ { \\textbf { \\em x } }$ on $K$ classes, where $\\Delta ^ { K }$ denotes the $K - 1$ dimensional unit simplex. Here we assume $f ^ { \\theta }$ as a composition of a non-probabilistic $K$ -way classifier $g ^ { \\theta }$ and a softmax function $\\sigma$ , i.e. $\\dot { \\pmb { f } } ^ { \\theta } = \\pmb { g } ^ { \\theta } \\circ \\pmb { \\sigma }$ . For a query instance $_ { \\textbf { \\em x } }$ , $f ^ { \\theta }$ gives its probability of assigning it to label i as exp(g i P (x))Kk=1 exp(gθk(x)) , where $g _ { i } ^ { \\theta } ( { \\pmb x } )$ denotes the $i$ -th element of the logit vector produced by $g ^ { \\theta }$ . Then, ${ \\hat { y } } : = \\arg \\operatorname* { m a x } _ { i } f _ { i } ^ { \\theta } ( { \\pmb x } )$ can be returned as the predicted label and ${ \\hat { p } } : = \\operatorname* { m a x } _ { i } f _ { i } ^ { \\theta } ( { \\pmb x } )$ can be treated as the associated confidence score. ",
141
+ "bbox": [
142
+ 173,
143
+ 670,
144
+ 825,
145
+ 796
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Expected Calibration Error (ECE) For a well-calibrated model, $\\hat { p }$ is expected to represent the true probability of correctness. Formally, a perfectly calibrated model satisfies $\\mathbb { P } ( \\boldsymbol { \\hat { y } } = \\boldsymbol { y } | \\boldsymbol { \\hat { p } } = \\boldsymbol { p } ) = \\boldsymbol { p }$ for any $p \\in [ 0 , 1 ]$ . In practice, ECE [20] is a commonly used calibration metric from finite samples. It works by firstly grouping all samples (let $n$ denote the number of samples) into $M$ equally interval bins betw $\\{ \\bar { B _ { m } } \\} _ { m = 1 } ^ { M }$ with respect to their confideuracy and average confidence: c e. $\\begin{array} { r } { \\mathrm { E C E } = \\sum _ { m = 1 } ^ { M } \\frac { | B _ { m } | } { n } | \\mathrm { a c c } ( B _ { m } ) - \\mathrm { a v g } \\mathrm { C o n f } ( B _ { m } ) | . } \\end{array}$ ",
152
+ "bbox": [
153
+ 174,
154
+ 801,
155
+ 825,
156
+ 891
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Temperature Scaling By scaling the logits produced by $g ^ { \\theta }$ with a temperature $T$ , the sharpness of output probabilities can be changed. Formally, after adding TS, the new prediction confidence can be expressed as: $\\begin{array} { r } { \\hat { p } = \\operatorname* { m a x } _ { i } \\frac { \\exp ( g _ { i } ^ { \\theta } ( \\pmb { x } ) / T ) } { \\sum _ { k = 1 } ^ { K } \\exp ( g _ { k } ^ { \\theta } ( \\pmb { x } ) / T ) } } \\end{array}$ . The temperature softens the output probability with and sharpens the probability with $T < 1$ . As , the output probability collapses to one-hot vector. As $T \\to \\infty$ , the output probability approaches to a uniform distribution. After training of the model, $T$ can be tuned on a hold-out validation set by optimization methods. ",
163
+ "bbox": [
164
+ 173,
165
+ 896,
166
+ 821,
167
+ 912
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "",
174
+ "bbox": [
175
+ 173,
176
+ 90,
177
+ 825,
178
+ 170
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Histogram Binning is a non-parametric calibration approach. Given an uncalibrated model, all the prediction confidences of validation samples can be divided into mutually exclusive $N$ bins $\\{ B _ { n } \\} _ { n = 1 } ^ { N }$ according to a set of intervals $\\{ I _ { n } \\} _ { n = 1 } ^ { N + 1 }$ which partitions [0, 1]. Each bin is assigned a confidence score , which can be simply set to the corresponding accuracy of samples in each bin. If the uncalibrated confidence $\\hat { p }$ of a query instance falls into bin $B _ { n }$ , then the calibrated confidence is $\\eta _ { n }$ . The bins can be chosen by two simple schemes: equal size binning (uniformly partitioning the probability interval in $[ 0 , 1 ] \\cdot$ ) and equal mass binning (uniformly distributing samples over bins). Note that although the HB scheme is simple to implement and was demonstrated to achieve good calibration results in some datasets, it makes the predictor only produce very sparse confidence distribution, and compromises the many legitimately confident predictions. ",
185
+ "bbox": [
186
+ 173,
187
+ 175,
188
+ 826,
189
+ 316
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "3 Regularization in Neural Networks for Calibration ",
196
+ "text_level": 1,
197
+ "bbox": [
198
+ 174,
199
+ 334,
200
+ 629,
201
+ 352
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "In recent years, there is a surge of research on model calibration by leveraging implicit or explicit regularization techniques during training of DNNs, which makes better calibrated predictions by avoiding the overconfident outputs. In this section, we firstly review three representative regularization methods and then empirically show their improvements on ECE compared with the baseline. ",
208
+ "bbox": [
209
+ 174,
210
+ 366,
211
+ 825,
212
+ 421
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Label Smoothing is widely used as a means to reduce overfitting of DNNs. The mechanism of LS is simple: when training with CE loss, the one-hot label vector $\\textbf { { y } }$ is replaced with soft label vector $\\widetilde { \\pmb { y } }$ , whose elements can be formally denoted as $\\widetilde { y _ { i } } = ( 1 - \\epsilon ) y _ { i } + \\epsilon / K , \\forall i \\in \\{ 1 , . . . , K \\}$ , where $\\epsilon > 0$ e eis a strength coefficient. Müller et al. [19] demonstrated that label smoothing implicitly calibrates DNNs by preventing the networks from becoming overconfident. Let $\\mathcal { L } _ { c e }$ denote the CE loss, then the following equation holds: ",
219
+ "bbox": [
220
+ 173,
221
+ 426,
222
+ 825,
223
+ 511
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "equation",
229
+ "img_path": "images/e71628b96ddde4746861a10ae3be295dc323b28f5b37aa41962e64381ebf6a96.jpg",
230
+ "text": "$$\n\\mathcal { L } _ { c e } ( \\widetilde { \\pmb { y } } , \\pmb { f } ^ { \\theta } ) = ( 1 - \\epsilon ) \\mathcal { L } _ { c e } ( \\pmb { y } , \\pmb { f } ^ { \\theta } ) + \\epsilon \\mathcal { L } _ { c e } ( \\pmb { u } , \\pmb { f } ^ { \\theta } )\n$$",
231
+ "text_format": "latex",
232
+ "bbox": [
233
+ 339,
234
+ 516,
235
+ 658,
236
+ 535
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "This can be simply proved. Therefore, minimizing CE loss between smoothed labels and the model outputs is equivalent to adding a confidence penalty term, i.e., a weighted CE loss between the uniform distribution $\\textbf { \\em u }$ and the model outputs, to the original CE loss. ",
243
+ "bbox": [
244
+ 174,
245
+ 540,
246
+ 825,
247
+ 583
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "$L _ { p }$ Norm in the Function Space is one of the explicit regularization methods for calibration investigated by the recent work [7]. For a real number $p \\geq 1$ , the $L _ { p }$ Norm of a vector $_ { z }$ with dimension $n$ can be expressed as: $\\begin{array} { r } { \\| z \\| _ { p } = ( \\sum _ { i = 1 } ^ { n } | z _ { i } | ^ { p } ) ^ { 1 / p } } \\end{array}$ . By adding $L _ { p }$ Norm of logits $g ^ { \\theta }$ with a weighting coefficient $\\alpha$ into final objective function, i.e. $\\mathcal { L } _ { L _ { p } } ( y , f ^ { \\theta } ) = \\mathcal { L } _ { c e } ( y , f ^ { \\theta } ) + \\alpha \\left\\| g ^ { \\theta } \\right\\| _ { p }$ , the function complexity of neural networks can be directly penalized during training. ",
254
+ "bbox": [
255
+ 174,
256
+ 588,
257
+ 825,
258
+ 667
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Focal Loss is originally proposed to address the class imbalance problem in object detection. By reshaping the standard CE loss through weighting loss components of all samples according to how well the model fits them, focal loss focuses on fitting hard samples and prevents the easy samples from overwhelming the training procedure. Formally, for classification tasks where the target distribution is one-hot encoding, it is defined as: $\\mathcal { L } _ { f } = - \\dot { ( } 1 - f _ { y } ^ { \\theta } ) ^ { \\gamma } \\log f _ { y } ^ { \\theta }$ , where $\\gamma$ is a predefined coefficient. Mukhoti et al. [18] found that the models learned by focal loss produce output probabilities which are already very well calibrated. Interestingly, they also showed that focal loss is an upper bound of the regularized KL-divergence, which can be expressed formally as follows: ",
265
+ "bbox": [
266
+ 173,
267
+ 671,
268
+ 825,
269
+ 784
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "equation",
275
+ "img_path": "images/f30c0b546825f3f7824b27ff24d053a857730eaf5ca82188b85567b4e85a0cd7.jpg",
276
+ "text": "$$\n\\mathcal { L } _ { f } \\geq \\mathrm { K L } ( \\pmb { y } | | \\pmb { f } ^ { \\theta } ) - \\gamma \\mathrm { H } ( \\pmb { f } ^ { \\theta } )\n$$",
277
+ "text_format": "latex",
278
+ "bbox": [
279
+ 401,
280
+ 789,
281
+ 594,
282
+ 808
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "where $\\operatorname { H } ( p )$ denotes the entropy of distribution $\\pmb { p }$ . This upper bound property shows that replacing the CE loss with focal loss has the effect of adding a maximum-entropy regularizer. ",
289
+ "bbox": [
290
+ 173,
291
+ 813,
292
+ 825,
293
+ 842
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "3.1 Empirical Comparison ",
300
+ "text_level": 1,
301
+ "bbox": [
302
+ 174,
303
+ 857,
304
+ 372,
305
+ 872
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "We conduct a comparison study of the above regularization methods on four commonly used datasets. We train ResNet-32 [6] models on SVHN [21], CIFAR-10/100 [9] and train a 8-layer 1D-CNN model on 20Newsgroups [13], using the standard CE loss and the above regularized losses respectively, with state-of-the-art learning policy settings (see implementation details in Appendix). For Norm regularization, we use $L _ { 1 }$ Norm, which has been shown effective for calibration despite its simple form [7]. Table 1 shows the comparison of these methods. Note that for each of the above three regularization methods, there is a coefficient, i.e., \u000f, $\\alpha$ and $\\gamma$ , controlling the strength of regularization. We conduct experiments using these methods with the following coefficient settings: $\\{ 0 . 0 1 , 0 . 0 3 , 0 . 0 5 , 0 . 0 7 , 0 . 0 \\bar { 9 } \\}$ for label smoothing, $\\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 , 0 . 0 5 , 0 . 1 \\}$ for $L _ { 1 }$ Norm and $\\{ 1 , 3 , 5 , 7 , 9 \\}$ for focal loss. And we choose the best coefficient for each method and dataset, according to their ECE directly on test data. ",
312
+ "bbox": [
313
+ 173,
314
+ 882,
315
+ 823,
316
+ 911
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "table",
322
+ "img_path": "images/aa924487088cb9c81fc7600c2d9242b8190b39772084005cb0c773f18f2b4cbc.jpg",
323
+ "table_caption": [
324
+ "Table 1: Comparison results (mean±std) of ECE $( \\% )$ with $M = 1 5$ and predictive accuracy $( \\% )$ over 5 random runs. The values with underline in first row represent the chosen coefficients of each regularization method on four datasets according to the ECE on test data. "
325
+ ],
326
+ "table_footnote": [],
327
+ "table_body": "<table><tr><td></td><td></td><td>Cross-Entropy</td><td>Label Smoothing 0.01/0.05/0.09/0.09</td><td>L1Norm 0.01/0.05/0.01/0.01</td><td>Focal Loss 1/3/5/5</td></tr><tr><td rowspan=\"2\">SVHN</td><td>ECE</td><td>3.03±0.16</td><td>1.84±0.19</td><td>1.85±0.04</td><td>1.01±0.21</td></tr><tr><td>Accuracy</td><td>95.00±0.27</td><td>95.21±0.23</td><td>95.29±0.13</td><td>94.77±0.19</td></tr><tr><td rowspan=\"2\">CIFAR-10</td><td>ECE</td><td>6.43±0.22</td><td>2.72±0.32</td><td>2.93±0.39</td><td>3.00±0.26</td></tr><tr><td>Accuracy</td><td>90.46±0.23</td><td>90.09±0.41</td><td>90.06±0.59</td><td>87.84±0.17</td></tr><tr><td rowspan=\"2\">CIFAR-100</td><td>ECE</td><td>19.53±0.36</td><td>2.27±0.48</td><td>8.07±0.44</td><td>2.34±0.35</td></tr><tr><td>Accuracy</td><td>64.64±0.43</td><td>63.73±0.67</td><td>63.07±0.29</td><td>60.36±0.44</td></tr><tr><td rowspan=\"2\">20 Newsgroups</td><td>ECE</td><td>20.82±0.93</td><td>5.85±0.64</td><td>13.31±0.56</td><td>3.82±0.51</td></tr><tr><td>Accuracy</td><td>72.85±0.89</td><td>72.81±0.26</td><td>73.61±0.80</td><td>59.17±1.81</td></tr></table>",
328
+ "bbox": [
329
+ 181,
330
+ 137,
331
+ 812,
332
+ 299
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "",
339
+ "bbox": [
340
+ 173,
341
+ 316,
342
+ 826,
343
+ 441
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "From the results of Table 1, it is obvious that the regularization methods significantly decrease the ECE on all datasets, compared with the standard CE loss. The prediction accuracy results are also reported. When the strength coefficients of $L _ { 1 }$ Norm and focal loss are large, their predictive performances are harmed. Especially, $L _ { 1 }$ Norm fails on CIFAR-100 and 20Newsgroups when $\\alpha \\ge 0 . 0 5$ , thus $\\alpha$ is chosen from $\\{ 0 . 0 0 1 , 0 . 0 0 5 , 0 . 0 1 \\}$ on these two datasets. ",
350
+ "bbox": [
351
+ 174,
352
+ 448,
353
+ 825,
354
+ 517
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "4 Does Regularization Really Help Calibration? ",
361
+ "text_level": 1,
362
+ "bbox": [
363
+ 174,
364
+ 536,
365
+ 588,
366
+ 554
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "As shown by the above empirical results, the regularization methods do help the calibration of DNNs during training, especially alleviate the overconfidence issue caused by the standard CE loss. In this section, we empirically investigate their calibration performance when integrating them with post-hoc calibration. After training, we use the post-hoc methods TS and HB to further calibrate the output probabilities. For TS, we simply search the best temperature in the temperature pool {0.01,0.02...,10} on the validation set (see data splits in Appendix). For HB, we use equal size binning scheme on the top-1 prediction of all classes with bin number set as 15. The experimental details used in this section are the same with those in Section 3. ",
373
+ "bbox": [
374
+ 173,
375
+ 566,
376
+ 825,
377
+ 678
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "Comparison Results Table 2 shows the comparison results of ECE with the help of TS and HB. We can see that: (1) The standard CE loss achieves the best calibration performance on most cases. (2) The searched temperatures of models trained with the CE loss are significantly higher than those of other losses, which indicates that CE loss causes higher predictive confidences. These results demonstrate that despite the regularized models can produce better calibrated predictions, it is harder to further improve them with post-hoc calibration methods after main training. In other words, the penalty of confident predictions will compress the room of potential improvement by post-hoc methods. We also conduct experiments on CIFAR-10 and CIFAR-100 using a deeper model ResNet-110 and similar comparison results are obtained (see Appendix Table A). ",
384
+ "bbox": [
385
+ 173,
386
+ 684,
387
+ 825,
388
+ 809
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "Coefficient Sensitivity Figure 1(a), 1(b) and 1(c) illustrate the ECEs of these three regularization methods with varied coefficient strengths. As we can see, since the complexity of the used datasets are different, the best coefficients of these methods markedly vary across the datasets, and a small change on these coefficients may cause large ECE increase. This means that we need to carefully choose the coefficient of each method when employing them on new datasets, to achieve good calibration. We can also observe that for SVHN, on which the accuracy is highest among four datasets, the regularization methods obtain lowest ECE with small coefficients. For CIFAR-100 and 20Newsgroups, on which the accuracy is relatively lower, the regularization methods need larger coefficients for better calibration. Based on this observation, we conduct another experiment for investigating the correlation between the regularization coefficients and accuracy. We learn networks on CIFAR-10 by controlling training data size, which leads to varied predictive accuracies, and choose the best coefficient for each case. Here, $\\epsilon$ , $\\alpha$ and $\\gamma$ are chosen from $\\{ 0 . 0 1 , 0 . 0 2 , . . . , 0 . 2 5 \\}$ , $\\{ 0 . 0 1 , 0 . 0 2 , . . . , 0 . 1 \\}$ and $\\{ 1 , 3 , 5 , 7 , 9 \\}$ respectively. Figure 2(d) shows that with the increase of training data size, which results in increase of predictive accuracy, the best coefficients of the regularization methods keep decreasing. ",
395
+ "bbox": [
396
+ 174,
397
+ 814,
398
+ 825,
399
+ 911
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "table",
405
+ "img_path": "images/e27983661b963d061d1c8cf9f994232e27f3e9cf665f331d112e3b22208663af.jpg",
406
+ "table_caption": [
407
+ "Table 2: Comparison results (mean±std) of ECE $( \\% )$ with $M = 1 5$ over 5 random runs. The coefficients of the regularization methods on each dataset are same with those in Table 1. N/N and $\\diagup$ indicate that the average ECE of regularization methods are higher and lower than standard CE, where $\\blacktriangle$ and $\\boldsymbol { \\vee }$ are based on two-sample t-test at 0.05 significance level. "
408
+ ],
409
+ "table_footnote": [],
410
+ "table_body": "<table><tr><td colspan=\"2\"></td><td>Cross-Entropy</td><td>Label Smoothing 0.01/0.05/0.09/0.09</td><td>L1Norm 0.01/0.05/0.01/0.01</td><td>Focal Loss 1/3/5/5</td></tr><tr><td rowspan=\"3\">SVHN</td><td>with TS Temperature</td><td>0.72±0.26 1.82</td><td>1.35±0.11 1.11</td><td>1.22±0.08 1.12</td><td>0.80±0.22 1.10</td></tr><tr><td>with HB</td><td>0.68±0.22</td><td>0.70±0.21</td><td>0.73±0.20</td><td>0.96±0.14</td></tr><tr><td>with TS Temperature</td><td>0.95±0.19 2.51</td><td>2.54±0.11 0.96</td><td>2.71±0.36</td><td>1.39±0.28</td></tr><tr><td rowspan=\"2\">CIFAR-10</td><td>with HB</td><td>0.74±0.15</td><td>0.94±0.21</td><td>0.95 1.16±0.54</td><td>0.76 1.65±0.31</td></tr><tr><td>with TS Temperature</td><td>1.35±0.19 2.19</td><td>1.37±0.27 1.04</td><td>3.92±0.21</td><td>2.14±0.42</td></tr><tr><td rowspan=\"2\">CIFAR-100</td><td>with HB</td><td>1.27±0.27</td><td>2.01±0.22</td><td>1.24 1.56±0.44</td><td>0.97 1.83±0.30</td></tr><tr><td>with TS</td><td>3.11±0.33</td><td>5.22±0.60</td><td>2.71±0.25</td><td>3.77±0.41</td></tr><tr><td rowspan=\"2\">20 Newsgroups</td><td>Temperature</td><td>4.18</td><td>1.06</td><td>1.48</td><td>0.89</td></tr><tr><td>with HB</td><td>2.52±0.47</td><td>2.67±0.82</td><td>2.61±0.95</td><td>3.16±0.97</td></tr></table>",
411
+ "bbox": [
412
+ 173,
413
+ 150,
414
+ 825,
415
+ 353
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "image",
421
+ "img_path": "images/dc28ce39124194e523cb322a5691e5dbda67d0d11c34ed73d324ccc32182fcab.jpg",
422
+ "image_caption": [
423
+ "Figure 1: (a-c): ECE $( \\% )$ with $M = 1 5$ of regularization methods with controlled regularization strength. (d): Best coefficients of regularization methods with respect to ECE with controlled training data size. "
424
+ ],
425
+ "image_footnote": [],
426
+ "bbox": [
427
+ 174,
428
+ 372,
429
+ 815,
430
+ 468
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "",
437
+ "bbox": [
438
+ 174,
439
+ 537,
440
+ 825,
441
+ 636
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Reliability Diagram We use reliability diagram to visually represent the gap between predictive confidence and accuracy of each method. Due to the space limitation, here we only present the diagrams of CIFAR-10, and the rest figures are presented in Appendix. We can see that these visual results are similar with the comparison results of ECE reported in Table 2. Although the gap between confidence and accuracy is large when using the standard CE loss, it can be significantly diminished after using TS. However, the improvements of TS for the regularization methods are not obvious. Most importantly, no matter whether TS is used or not, the regularization methods suffer from overconfidence on samples which have high predictive uncertainty, especially on label smoothing and $L _ { 1 }$ Norm, which contradicts the traditional view. Combining with the observation in Figure 2(d), it is indicated that the regularization methods work by simply aligning the average predictive confidence of the whole dataset to the accuracy with some specific regularization strengths, and does not produce fine-grained calibration with respect to the difference of samples. ",
448
+ "bbox": [
449
+ 173,
450
+ 641,
451
+ 825,
452
+ 808
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Impact of Validation Size We also wonder how does the validation data size impact the post-hoc calibration. Figure 3 shows the ECE results with controlled validation data size. We can see that quite low ECE can be obtained with only a small size of validation data when using TS, which offers high efficiency for practice development. Relatively, HB needs more validation samples to obtain better calibration performance. Nevertheless, the standard CE loss stably achieves better calibration across varied validation data size with both TS and HB. ",
459
+ "bbox": [
460
+ 174,
461
+ 813,
462
+ 825,
463
+ 896
464
+ ],
465
+ "page_idx": 4
466
+ },
467
+ {
468
+ "type": "image",
469
+ "img_path": "images/27966219feac50faf7c7caca796c0660612cfdd81581b6a556ebfa0cf0f27b7d.jpg",
470
+ "image_caption": [
471
+ "Figure 2: Reliability diagrams of each methods (after TS calibration) on CIFAR-10. The results are chosen from one of the 5 random runs of Table 1. Darker color of bars indicates that more samples are assigned with the corresponding confidence intervals. "
472
+ ],
473
+ "image_footnote": [],
474
+ "bbox": [
475
+ 161,
476
+ 97,
477
+ 823,
478
+ 212
479
+ ],
480
+ "page_idx": 5
481
+ },
482
+ {
483
+ "type": "image",
484
+ "img_path": "images/d6d05b4aeef156c24bb978f3ec868ed4e45ea0130abecc85e4cbd7d333e3ab38.jpg",
485
+ "image_caption": [
486
+ "Figure 3: ECE $( \\% )$ (after post-hoc calibration) with of regularization methods with controlled validation data size. "
487
+ ],
488
+ "image_footnote": [],
489
+ "bbox": [
490
+ 158,
491
+ 281,
492
+ 825,
493
+ 512
494
+ ],
495
+ "page_idx": 5
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "5 From Calibrated to Calibratable: A Closer Look ",
500
+ "text_level": 1,
501
+ "bbox": [
502
+ 173,
503
+ 574,
504
+ 616,
505
+ 592
506
+ ],
507
+ "page_idx": 5
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "The results reported in above section show the degradation of regularization methods when integrating them with post-hoc calibration methods, which indicates that though regularization helps DNNs obtain well-calibrated predictions, it makes these predictions worse calibratable. In this Section, we further investigate this phenomenon by a series of illustrative experiments. We firstly attempt to empirically understand the reason of the calibration degradation from the view of information loss. Then, we propose an inverse form of focal loss to give a closer look at the correlation between the loss functions used in training and the calibration performance. The implementation details used in this section are also the same with those in Section 3. ",
512
+ "bbox": [
513
+ 173,
514
+ 606,
515
+ 825,
516
+ 717
517
+ ],
518
+ "page_idx": 5
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "5.1 Information Loss of Regularized Models ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 174,
526
+ 733,
527
+ 495,
528
+ 748
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "ECE among Epochs We start by investigating the ECEs of temperature-scaled outputs over epochs during model training. To avoid the impact of the bias of validation data, we directly search the best temperature on test data in each training epoch. We denote the corresponding ECE with this searched temperature as optimal ECE, which is the lower bound of ECE with temperatures searched on validation data. Figure 4 shows the curves of optimal ECE during epochs using label smoothing with different smoothing coefficients. We can observe that the optimal ECE rises after some learning epochs: On SVHN and CIFAR-10, it starts to significantly rise around the 10th epoch, and on CIFAR-100 and 20Newsgroups, it tends to rise after 100 and 50 epochs, where the learning rate drops by a factor of 10. Another observation is that larger smoothing strength $\\epsilon$ results in worse calibration performance and more remarkable (also earlier) ECE rising. According to the memorization effect [35], DNNs usually learn easy samples at the early stage of training and tend to fit the hard ones later. ",
535
+ "bbox": [
536
+ 173,
537
+ 758,
538
+ 825,
539
+ 911
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "image",
545
+ "img_path": "images/33c00a14094f2b53a1e6919bddc2dd98da1353492d763f7256f12cd39dba3625.jpg",
546
+ "image_caption": [
547
+ "Figure 4: Curves of optimal ECE $( \\% )$ during learning epochs using label smoothing with different coefficients. Dark colors show the mean results of 5 random runs and light colors show the ranges between minimal and maximum results of 5 runs. "
548
+ ],
549
+ "image_footnote": [],
550
+ "bbox": [
551
+ 156,
552
+ 104,
553
+ 825,
554
+ 212
555
+ ],
556
+ "page_idx": 6
557
+ },
558
+ {
559
+ "type": "image",
560
+ "img_path": "images/0ae6e6cf4cbd74214819296e296f6755197c03aceea1c5842458826ed114e888.jpg",
561
+ "image_caption": [
562
+ "Figure 5: Histograms of maximum logits produced from models trained with different methods. Different colors of bars represent distributions of samples with different learned epochs. The first row and second row are results of CIFAR-10 and CIFAR-100 respectively. "
563
+ ],
564
+ "image_footnote": [],
565
+ "bbox": [
566
+ 178,
567
+ 277,
568
+ 807,
569
+ 483
570
+ ],
571
+ "page_idx": 6
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Therefore, a simple conjecture for the ECE rising is that after some learning epochs, DNNs start to fit hard samples, at the same time the regularizer would penalize the confidences of easy samples, which makes the predictive confidences of those easy and hard samples difficult to be distinguished. Similar phenomenon is also observed when using $L _ { 1 }$ Norm (see Appendix Figure A(a-d)) except 20Newsgroups dataset, on which large norm coefficient will hurt the calibration. For focal loss (see Appendix Figure A(e-h)), the optimal ECEs trained with large regularization strengths keep high without the remarkable rising. ",
576
+ "bbox": [
577
+ 173,
578
+ 554,
579
+ 825,
580
+ 652
581
+ ],
582
+ "page_idx": 6
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Histogram of Logits We use histograms to visualize what the patterns of model outputs learned with different methods look like. Before that, we define learned epoch 2 of an individual training sample as the epoch, since which the sample can be correctly classified till the final learning epoch. As we mentioned above, DNNs usually learn hard samples after easy ones, hence the learned epoch of a sample can be used to indicate its corresponding hardness degree to be learned. Based on this, we want to investigate if the samples with different hardness degrees can be distinguished by model itself after training. To this end, we record the learned epochs of all training samples of CIFAR-10 and CIFAR-100 during training and statistic the distributions of their maximum logit outputs (i.e. $\\operatorname* { m a x } _ { i } g _ { i } ^ { \\theta } ( { \\pmb x } ) )$ ). As shown in Figure 5, the logits of models trained with the standard CE loss cover much larger ranges, and the regularization methods compress the distributions too tight without distinction between samples with different learned epochs, especially in label smoothing and $L _ { 1 }$ Norm. This visual observation further confirms that the regularization of DNNs works by only penalizing the confidence of the whole dataset to a low level with a specific regularization strength. This will result in loss of the important information about the hardness of samples as an undesirable side effects, and compress the room of potential improvement by post-hoc calibration. On the contrary, models trained with the standard CE loss manage to preserve this information to a certain extent during training, hence achieve better results after post-hoc calibration. ",
587
+ "bbox": [
588
+ 173,
589
+ 659,
590
+ 826,
591
+ 866
592
+ ],
593
+ "page_idx": 6
594
+ },
595
+ {
596
+ "type": "image",
597
+ "img_path": "images/2faab9556d8c6d6e4dedd9e2959d0614bc01c6bb24ba522a2a3c58f25b426b59.jpg",
598
+ "image_caption": [
599
+ "Figure 6: (a): Visual representation of focal loss, CE loss and inverse focal loss. (b): Predictive accuracies $( \\% )$ of different methods. (c): ECEs $( \\% )$ with $M = 1 5$ of different methods without post-hoc calibration. (d): Searched temperatures on validation data. (e-f): ECEs $( \\% )$ with $M = 1 5$ of different methods with the help of post-hoc calibration. "
600
+ ],
601
+ "image_footnote": [],
602
+ "bbox": [
603
+ 168,
604
+ 97,
605
+ 813,
606
+ 313
607
+ ],
608
+ "page_idx": 7
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "",
613
+ "bbox": [
614
+ 173,
615
+ 393,
616
+ 825,
617
+ 421
618
+ ],
619
+ "page_idx": 7
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "5.2 Is Cross-Entropy the Best for Calibration? ",
624
+ "text_level": 1,
625
+ "bbox": [
626
+ 174,
627
+ 438,
628
+ 509,
629
+ 453
630
+ ],
631
+ "page_idx": 7
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Based on our experimental findings, one natural question is that can we design some loss functions in the opposite direction of these regularization methods to further improve the calibration? For label smoothing and $L _ { p }$ Norm, we can simply set the regularization coefficients of these methods as negative values. However, we empirically found this will cause extremely low predictive accuracies even failures of training using only very small weighting coefficients. Fortunately, we can design an inverse version of focal loss without prediction degradation by mimicking the original focal loss3. Recall the form of focal loss, we see that it works by assigning larger weights to the samples with smaller confidences. This makes the optimizer pay more attention to those hard samples when updating model parameters. Actually, this weighting scheme also implicitly exists in the standard CE loss, and this can be expressed by the gradients of CE loss function w.r.t. model parameters $\\theta$ : ",
636
+ "bbox": [
637
+ 173,
638
+ 462,
639
+ 826,
640
+ 602
641
+ ],
642
+ "page_idx": 7
643
+ },
644
+ {
645
+ "type": "equation",
646
+ "img_path": "images/02af05181eac4fd87c3a8945b6f7f105efa5091df5f950dccc7c1756a7f495e9.jpg",
647
+ "text": "$$\n\\frac { \\partial \\mathcal { L } _ { c e } ( y , f ^ { \\theta } ( { \\pmb x } ) ) } { \\partial \\theta } = - \\frac { 1 } { f _ { y } ^ { \\theta } ( { \\pmb x } ) } \\nabla _ { \\theta } f _ { y } ^ { \\theta } ( { \\pmb x } )\n$$",
648
+ "text_format": "latex",
649
+ "bbox": [
650
+ 372,
651
+ 607,
652
+ 625,
653
+ 645
654
+ ],
655
+ "page_idx": 7
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "where the factor term $\\frac { 1 } { f _ { y } ^ { \\theta } ( { \\pmb x } ) }$ indicates that samples with smaller confidences are weighted larger in gradient calculation. Opposite to the principle of focal loss, we propose inverse focal loss as follows: ",
660
+ "bbox": [
661
+ 173,
662
+ 651,
663
+ 825,
664
+ 685
665
+ ],
666
+ "page_idx": 7
667
+ },
668
+ {
669
+ "type": "equation",
670
+ "img_path": "images/0200a73870b96ea968c9568c8e59073233c1487db65118647ab9a816c940b0fc.jpg",
671
+ "text": "$$\n\\mathcal { L } _ { \\bar { f } } = - ( 1 + f _ { y } ^ { \\theta } ) ^ { \\bar { \\gamma } } \\log f _ { y } ^ { \\theta }\n$$",
672
+ "text_format": "latex",
673
+ "bbox": [
674
+ 415,
675
+ 690,
676
+ 583,
677
+ 712
678
+ ],
679
+ "page_idx": 7
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "By a simple modification on the weighting term of original focal loss, the inverse focal loss assigns larger weights to the samples with larger output confidences. Similar with original focal loss, the choice of coefficient $\\bar { \\gamma }$ has a huge impact on the property of this loss. In Figure 6(a), we plot the curves of inverse focal loss with varied $\\bar { \\gamma }$ and also plot the standard CE loss and focal loss for comparison. We can see that different from the original focal loss, the curves of inverse focal loss are steeper when confidence is large, and larger $\\bar { \\gamma }$ gives steeper curves. ",
684
+ "bbox": [
685
+ 173,
686
+ 715,
687
+ 825,
688
+ 799
689
+ ],
690
+ "page_idx": 7
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "We conduct another experiment to evaluate the inverse focal loss, and also investigate what will happen when we increase its coefficient $\\bar { \\gamma }$ . Figure 6(c) shows the ECE results without post-hoc calibration. The ECEs of inverse focal loss are larger than CE and focal loss in most cases. This is consistent to our expectation since inverse focal loss aggravates the overconfidence issue of DNNs by weighting larger on the easy samples. Figure 6(e) and 6(f) show the ECE results with the help of post-hoc calibration. When using HB, the ECEs of inverse focal loss are worse than CE on SVHN and CIFAR-10, while better than CE on CIFAR-100. Generally speaking, there is no clear trend when we increase $\\bar { \\gamma }$ . More interesting results appear when using TS: (1) On CIFAR-10 and CIFAR-100, the ECE results of inverse focal loss are better than that of the standard CE loss; and (2) there is a descend-then-ascend trend from focal loss with $\\gamma = 3$ to inverse focal loss with $\\bar { \\gamma } = 3$ . From these observations, we may say that the best loss function for calibration is varied across different tasks according to the characteristics of datasets. On SVHN, which is a relatively easy dataset, standard CE loss yields pretty good results; on CIFAR-10 and CIFAR-100, which is more complex and difficult, the best results are obtained using inverse focal loss; on 20Newsgroups, which has fewest training samples among four datasets, the best result is obtained when using focal loss with $\\gamma = 1$ . The searched temperatures when using TS are presented in Figure 6(d). The increasing of best temperatures indicates that the overconfidence problem is severer when using inverse focal loss with larger $\\bar { \\gamma }$ . The predictive accuracies are presented in Figure 6(a). As is shown that inverse focal loss yields highly competitive results compared with the standard CE loss on SVHN, CIFAR-10 and CIFAR-100. On 20Newsgroups, when using large $\\bar { \\gamma }$ , the predictive performance of inverse focal loss is worse than the CE loss. ",
695
+ "bbox": [
696
+ 173,
697
+ 805,
698
+ 825,
699
+ 876
700
+ ],
701
+ "page_idx": 7
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "",
706
+ "bbox": [
707
+ 174,
708
+ 90,
709
+ 825,
710
+ 313
711
+ ],
712
+ "page_idx": 8
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "6 Related Work ",
717
+ "text_level": 1,
718
+ "bbox": [
719
+ 174,
720
+ 333,
721
+ 321,
722
+ 351
723
+ ],
724
+ "page_idx": 8
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "In machine learning, calibration has long been studied [25, 33, 34, 22], and many classical methods, like Platt Scaling [25] and Histogram Binning [33], have been proposed in the literature. In recent years, deep neural networks trained with commonly used CE loss, have been empirically found to predict poorly calibrated probabilities. The early researches for this problem focus on bayesian models [2, 16, 3, 1], which indirectly infer prediction uncertainty through weight uncertainties. But training and inferring the bayesian DNNs are computationally more expensive and conceptually more complicated than deterministic DNNs. Therefore, the uncertainty qualification of the nonbayesian models has always been an important topic, which also attracts a lot of researchers from the perspective of understanding DNNs. ",
729
+ "bbox": [
730
+ 174,
731
+ 366,
732
+ 825,
733
+ 491
734
+ ],
735
+ "page_idx": 8
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "Guo et al. [4] systematically investigated the miscalibration problem of the deterministic DNNs and empirically compared several conventional post-hoc calibration fixes. Two key findings are suggested in their paper: (1) Increasing model capacity and regularization strength negatively affect the calibration. (2) Simple post-hoc methods like TS [25] and HB [33] can reduce the calibration error to a quite low level. Following their work, there is a surge of research that proposed new post-hoc calibration methods [10, 27, 5, 11, 24, 36, 26]. Different from post-hoc calibration methods, another line of research aims to learn calibrated networks during training by modifying the training process [29, 12, 8]. Thulasidasan et al. [29] found that DNNs trained with mixup are significantly better calibrated than DNNs trained in the regular fashion. Kumar et al. [12] proposed a RKHS kernel based measure of calibration that is efficiently trainable alongside the standard CE loss, which can minimize an explicit calibration error during training. Krishnan and Tichoo [8] introduced a differentiable accuracy versus uncertainty calibration loss function that allows a model to learn to provide well-calibrated uncertainties, in addition to improved accuracy. Recently, inspired by the findings in [4], several studies were proposed to leverage the regularization of DNNs to improve calibration performance during training [19, 18, 7]. As we described in Section 3, these implicit or explicit regularization techniques can improve calibration by penalizing the predictive confidences of DNNs. It is worth nothing that besides the studies on improving calibration performance, there are also several studies that focus on the measure of calibration performance [23, 31, 32, 5]. ",
740
+ "bbox": [
741
+ 174,
742
+ 497,
743
+ 825,
744
+ 746
745
+ ],
746
+ "page_idx": 8
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "7 Conclusion ",
751
+ "text_level": 1,
752
+ "bbox": [
753
+ 174,
754
+ 767,
755
+ 297,
756
+ 785
757
+ ],
758
+ "page_idx": 8
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "In this work, we investigate the uncertainty calibration problem of DNNs by a series of experiments. The empirical study shows that despite the predictions obtained from the regularized models are better calibrated, worse results would be obtained if we employ post-hoc calibration methods on these regularized models. Extended experiments demonstrate that the regularized DNNs will lose the important information about the hardness of samples, which results in the harm of post-hoc calibration. Based on the experimental observations, we design a new loss function in the opposite direction of previous regularization methods, and empirically show the superiority of this loss in calibration with the help of post-hoc methods, even though it causes severer overconfidence issue in the main training phase. Our findings suggest that overconfidence of DNNs is not the nightmare in model calibration and point out a new direction to improve the calibration performance of DNNs by considering main training and post-hoc calibration as a unified framework. Moreover, the study of the phenomena of deep learning uncertainty under distribution shift is very interesting as one of the future work, since the behaviour with distribution shifts might be most important in practice. ",
763
+ "bbox": [
764
+ 174,
765
+ 800,
766
+ 825,
767
+ 911
768
+ ],
769
+ "page_idx": 8
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "",
774
+ "bbox": [
775
+ 174,
776
+ 90,
777
+ 825,
778
+ 161
779
+ ],
780
+ "page_idx": 9
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "8 Acknowledgments ",
785
+ "text_level": 1,
786
+ "bbox": [
787
+ 174,
788
+ 181,
789
+ 357,
790
+ 199
791
+ ],
792
+ "page_idx": 9
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "The authors wish to thank the anonymous reviewers for their helpful comments and suggestions. This work was supported by the National Science Foundation of China (62176055), the Postgraduate Research & Practice Innovation Program of Jiangsu Province (KYCX21_0151) and the China University S&T Innovation Plan Guided by the Ministry of Education. We thank the Big Data Center of Southeast University for providing the facility support on the numerical calculations in this paper. ",
797
+ "bbox": [
798
+ 174,
799
+ 213,
800
+ 826,
801
+ 284
802
+ ],
803
+ "page_idx": 9
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "References ",
808
+ "text_level": 1,
809
+ "bbox": [
810
+ 174,
811
+ 303,
812
+ 266,
813
+ 319
814
+ ],
815
+ "page_idx": 9
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "[1] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pages 1613–1622, 2015. \n[2] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In International Conference on Machine Learning, pages 1050–1059, 2016. \n[3] Alex Graves. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pages 2348–2356, 2011. \n[4] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In International Conference on Machine Learning, pages 1321–1330, 2017. \n[5] Kartik Gupta, Amir Rahimi, Thalaiyasingam Ajanthan, Thomas Mensink, Cristian Sminchisescu, and Richard Hartley. Calibration of neural networks using splines. In International Conference on Representation Learning, 2021. \n[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016. \n[7] Taejong Joo and Uijung Chung. Revisiting explicit regularization in neural networks for well-calibrated predictive uncertainty. arXiv:2006.06399, 2021. \n[8] Ranganath Krishnan and Omesh Tickoo. Improving model calibration with accuracy versus uncertainty optimization. In Advances in Neural Information Processing Systems, pages 18237– 18248, 2020. \n[9] Alex Krizhevsky. Learning multiple layers of features from tiny images. In Tech Report, 2009. \n[10] Meelis Kull, Miquel Perello Nieto, Markus Kängsepp, Telmo Silva Filho, Hao Song, and Peter Flach. Beyond temperature scaling: Obtaining well-calibrated multi-class probabilities with dirichlet calibration. In Advances in Neural Information Processing Systems, pages 12295–12305, 2019. \n[11] Ananya Kumar, Percy S Liang, and Tengyu Ma. Verified uncertainty calibration. In Advances in Neural Information Processing Systems, pages 3787–3798, 2019. \n[12] Aviral Kumar, Sunita Sarawagi, and Ujjwal Jain. Trainable calibration measures for neural networks from kernel mean embeddings. In International Conference on Machine Learning, pages 2805–2814, 2018. \n[13] Ken Lang. Newsweeder: Learning to filter netnews. In International Conference on Machine Learning, pages 331–339, 1995. \n[14] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In IEEE International Conference on Computer Vision, pages 2980–2988, 2017. \n[15] Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In International Conference on Neural Information Processing Systems, pages 1647–1657, 2018. \n[16] Wesley J Maddox, Pavel Izmailov, Timur Garipov, Dmitry P Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. In Advances in Neural Information Processing Systems, pages 13153–13164, 2019. \n[17] Clara Meister, Elizabeth Salesky, and Ryan Cotterell. Generalized entropy regularization or: There’s nothing special about label smoothing. In Annual Meeting of the Association for Computational Linguistics, pages 6870–6886, 2020. \n[18] Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip Torr, and Puneet Dokania. Calibrating deep neural networks using focal loss. In Advances in Neural Information Processing Systems, pages 15288–15299, 2020. \n[19] Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? In Advances in Neural Information Processing Systems, pages 4696–4705, 2019. \n[20] Mahdi Pakdaman Naeini, Gregory Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using bayesian binning. In AAAI Conference on Artificial Intelligence, pages 2901–2907, 2015. \n[21] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In Advances in Neural Information Processing Systems Workshops, 2011. \n[22] Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In International Conference on Machine learning, pages 625–632, 2005. \n[23] Jeremy Nixon, Michael W. Dusenberry, Linchuan Zhang, Ghassen Jerfel, and Dustin Tran. Measuring calibration in deep learning. In IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 38–41, 2019. \n[24] Kanil Patel, William Beluch, Bin Yang, Michael Pfeiffer, and Dan Zhang. Multi-class uncertainty calibration via mutual information maximization-based binning. In International Conference on Representation Learning, 2021. \n[25] John Platt et al. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Advances in Large Margin Classifiers, 10(3):61–74, 1999. \n[26] Amir Rahimi, Kartik Gupta, Thalaiyasingam Ajanthan, Thomas Mensink, Cristian Sminchisescu, and Richard Hartley. Post-hoc calibration of neural networks. arXiv:2006.12807, 2020. \n[27] Amir Rahimi, Amirreza Shaban, Ching-An Cheng, Richard Hartley, and Byron Boots. Intra order-preserving functions for calibration of multi-class neural networks. In Advances in Neural Information Processing Systems, 2020. \n[28] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In IEEE Conference on Computer Vision and Pattern Recognition, pages 2818–2826, 2016. \n[29] Sunil Thulasidasan, Gopinath Chennupati, Jeff A. Bilmes, Tanmoy Bhattacharya, and Sarah Michalak. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. In Advances in Neural Information Processing Systems, pages 13888–13899, 2019. \n[30] Mariya Toneva, Alessandro Sordoni, Remi Tachet des Combes, Adam Trischler, Yoshua Bengio, and Geoffrey J. Gordon. An empirical study of example forgetting during deep neural network learning. In International Conference on Representation Learning, 2019. \n[31] Juozas Vaicenavicius, David Widmann, Carl R. Andersson, Fredrik Lindsten, Jacob Roll, and Thomas B. Schön. Evaluating model calibration in classification. In International Conference on Artificial Intelligence and Statistics, pages 3459–3467, 2019. \n[32] David Widmann, Fredrik Lindsten, and Dave Zachariah. Calibration tests in multi-class classification: A unifying framework. In Advances in Neural Information Processing Systems, pages 12236–12246, 2019. \n[33] Bianca Zadrozny and Charles Elkan. Obtaining calibrated probability estimates from decision trees and naive bayesian classifiers. In International Conference on Machine Learning, pages 609–616, 2001. \n[34] Bianca Zadrozny and Charles Elkan. Transforming classifier scores into accurate multiclass probability estimates. In ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pages 694–699, 2002. \n[35] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Representation Learning, 2017. \n[36] Jize Zhang, Bhavya Kailkhura, and T Yong-Jin Han. Mix-n-match: Ensemble and compositional methods for uncertainty calibration in deep learning. In International Conference on Machine Learning, pages 11117–11128, 2020. \n[37] Zhi-Hua Zhou. Why over-parameterization of deep neural networks does not overfit? Science China Information Sciences, 64(1):1–3, 2021. ",
820
+ "bbox": [
821
+ 174,
822
+ 319,
823
+ 826,
824
+ 917
825
+ ],
826
+ "page_idx": 9
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "",
831
+ "bbox": [
832
+ 171,
833
+ 59,
834
+ 826,
835
+ 916
836
+ ],
837
+ "page_idx": 10
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "",
842
+ "bbox": [
843
+ 171,
844
+ 89,
845
+ 826,
846
+ 430
847
+ ],
848
+ "page_idx": 11
849
+ }
850
+ ]
parse/train/NJS8kp15zzH/NJS8kp15zzH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rd138pWXMvG/Rd138pWXMvG_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rd138pWXMvG/Rd138pWXMvG_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJzwb2RcK7/SJzwb2RcK7.md ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ADVERSARIAL DECOMPOSITION OF TEXT REPRESENTATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In this paper, we present a method for adversarial decomposition of text representation. This method can be used to decompose a representation of an input sentence into several independent vectors, where each vector is responsible for a specific aspect of the input sentence. We evaluate the proposed method on two case studies: the conversion between different social registers and diachronic language change. We show that the proposed method is capable of fine-grained controlled change of these aspects of the input sentence. For example, our model is capable of learning a continuous (rather than categorical) representation of the style of the sentence, in line with the reality of language use. The model uses adversarial-motivational training and includes a special motivational loss, which acts opposite to the discriminator and encourages a better decomposition. Finally, we evaluate the obtained meaning embeddings on a downstream task of paraphrase detection and show that they are significantly better than embeddings of a regular autoencoder.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Despite the recent successes in using neural models for representation learning for natural language text, learning a meaningful representation of input sentences remains an open research problem. A variety of approaches, from sequence-to-sequence models that followed the work of Sutskever et al. (2014) to the more recent proposals (Arora et al., 2017; Nangia et al., 2017; Conneau et al., 2017; Logeswaran & Lee, 2018; Subramanian et al., 2018; Cer et al., 2018) share one common drawback. Namely, all of them encode the input sentence into just one single vector of a fixed size. One way to bypass the limitations of a single vector representation is to use an attention mechanism (Bahdanau et al., 2014; Vaswani et al., 2017). We propose to approach this problem differently and design a method for adversarial decomposition of the learned input representation into multiple components. Our method encodes the input sentence into several vectors, where each vector is responsible for a specific aspect of the sentence.
12
+
13
+ In terms of learning different separable components of input representation, our work most closely relates to the style transfer work, which has been applied to a variety of different aspects of language, from diachronic language differences (Xu et al., 2012) to authors’ personalities (Lipton et al., 2015) and even sentiment (Hu et al., 2017; Fu et al., 2017). The style transfer work effectively relies on the more classical distinction between meaning and form (de Saussure, 1959), which accounts for the fact that multiple surface realizations are possible for the same meaning. For simplicity, we will use this terminology throughout the rest of the paper.
14
+
15
+ Consider the case when we encode an input sentence into a meaning vector and a form vector. We are then able to perform a controllable change of meaning or form by a simple change applied to these vectors. For example, we can encode two sentences written in two different styles, then swap the form vectors while leaving the meaning vectors intact. We can then generate new unique sentences with the original meaning, but written in a different style.
16
+
17
+ In the present work, we propose a novel model for this type of decomposition based on adversarialmotivational training and design an architecture inspired by the GANs (Goodfellow et al., 2014) and adversarial autoencoders (Makhzani et al., 2015). In addition to the adversarial loss, we use a special motivator (Albanie et al., 2017), which, in contrast to the discriminator, is used to provide a motivational loss to encourage the model to better decomposition of the meaning and the form, as well as specific aspects of meaning. We make all the code publicly available on GitHub 1.
18
+
19
+ We evaluate the proposed methods for learning separate aspects of input representation on the following case studies:
20
+
21
+ 1. Learning to separate out a representation of the specific diachronic slice of language. One may express the same meaning using the Early Modern English (e.g. What would she have?) and the contemporary English ( What does she want?)
22
+ 2. Learning a representation for a social register (Halliday et al., 1968) – that is, subsets of language appropriate in a given context or characteristic of a certain group of speakers. These include formal and informal language, the language used in different genres (e.g., fiction vs. newspapers vs. academic texts), different dialects, and even literary idiostyles. We experiment with the registers corresponding to the titles of scientific papers vs. newspaper articles.
23
+
24
+ # 2 RELATED WORK
25
+
26
+ As mentioned above, the most relevant previous work comes from the style transfer research, and it can be divided into two groups:
27
+
28
+ 1. Approaches that aim to generate text in a given form. For example, the task may be to produce just any verse as long as it is in the “style” of the target poet. 2. Approaches that aim to induce a change in either the “form” or the “meaning” of an existing utterance. For example, “Good bye, Mr. Anderson.” can be transformed to “Fare you well, good Master Anderson” (Xu et al., 2012)).
29
+
30
+ An example of the first group is the work by Potash et al. (2015), who trained several separate networks on verses by different hip-hip artists. An LSTM network successfully generated verses that were stylistically similar to the verses of the target artist (as measured by cosine distance on TfIdf vectors). More complicated approaches use language models that are conditioned in some way. For example, Lipton et al. (2015) produced product reviews with a target rating by passing the rating as an additional input at each timestep of an LSTM model. Tang et al. (2016) generated reviews not only with a given rating but also for a specific product. At each timestep a special context vector was provided as input, gated so as to enable the model to decide how much attention to pay to that vector and the current hidden state. Li et al. (2016) used “speaker” vectors as an additional input to a conversational model, improving consistency of dialog responses. Finally, Ficler & Goldberg (2017) performed an extensive evaluation of conditioned language models based on “content” (theme and sentiment) and “style” (professional, personal, length, descriptiveness). Importantly, they showed that it is possible to control both “content” and “style” simultaneously.
31
+
32
+ Work from the second group can further be divided into two clusters by the nature of the training data: parallel aligned corpora, or non-aligned datasets. The aligned corpora enable approaching the problem of form shift as a paraphrasing or machine translation problem. Xu et al. (2012) used statistical and dictionary-based systems on a dataset of original plays by Shakespeare and their contemporary translations. Carlson et al. (2017) trained an LSTM network on 33 versions of the Bible. Jhamtani et al. (2017) used a Pointer Network (Vinyals et al., 2015), an architecture that was successfully applied to a wide variety of tasks (Merity et al., 2016; Gulcehre et al., 2016; Potash et al., 2017), to enable direct copying of the input tokens to the output. Note that these works use BLEU (Papineni et al., 2002) as the main, or even the only evaluation measure. This is only possible in cases where a parallel corpus is available.
33
+
34
+ Recently, new approaches that do not require a parallel corpora were developed in both CV (Zhu et al., 2017) and NLP. Hu et al. (2017) succeeded in changing tense and sentiment of sentences with a two steps procedure based on a variational auto-encoder (VAE) (Kingma & Welling, 2013). After training a VAE, a discriminator and a generator are trained in an alternate manner, where the discriminator tries to correctly classify the target sentence attributes. A special loss component forces the hidden representation of the encoded sentence to not have any information about the target sentence attributes. Mueller et al. (2017) used a VAE to produce a hidden representation of a sentence, and then modify it to match the desired form. Unlike Hu et al. (2017), they do not separate the form and meaning embeddings. Shen et al. (2017) applied a GAN to align the hidden representation of sentences from two corpora and force them to do not have any information about the form via adversarial loss. During the decoding, similarly the work by Lipton et al. (2015), special “style” vectors are passed to the decoder at every timestep to produce a sentence with the desired properties. The model is trained using the Professor-Forcing algorithm (Lamb et al., 2016). Kim et al. (2017) worked directly on hidden space vectors that are constrained with the same adversarial loss instead of outputs of the generator, and use two different generators for two different “styles”. Finally, Fu et al. (2017) proposed two models for generating sentences with the target properties using an adversarial loss, similarly to Shen et al. (2017) and Kim et al. (2017).
35
+
36
+ Comparison with previous work In contrast to the proposals of $\mathrm { X u }$ et al. (2012), Carlson et al. (2017), Jhamtani et al. (2017), our solution does not require a parallel corpus. Furthermore, unlike the model by Shen et al. (2017), our model works directly on representation of sentences in the hidden space.
37
+
38
+ Most importantly, in contrast to the proposals by Mueller et al. (2017), Hu et al. (2017), Kim et al. (2017), Fu et al. (2017), our model produces a representation for both meaning and form and does not treat the form as a categorical (in the vast majority of works, binary) variable. Although the form was represented as dense vectors in previous work, it is still just a binary feature, as they use a single pre-defined vector for each form, with all sentences of the same form assigned the same form vector. In contrast, our work treats form as a truly continuous variable, where each sentence has its own, unique, form vector.
39
+
40
+ Treating meaning and form not as binary/categorical, but as continuous is more consistent with the reality of language use, since there are different degrees of overlap between the language used by different registers or in different diachronic slices. Indeed, language change is gradual, and the acceptability of expressions in a given register also forms a continuum, so one expects a substantial overlap between the grammar and vocabulary used, for example, on Twitter and by New York Times. To the best of our knowledge, this is the first model that considers linguistic form in the task of text generation as a continuous variable.
41
+
42
+ One significant consequence of learning a continuous representation for form is that it allows the model to work with a large, and potentially infinite, number of forms. Note that in this case the locations of areas of specific forms in the vector style space would reflect the similarity between these forms. For example, the proposed model could be directly applied to the authorship attribution problem. In this case, each author would have their own area in the form space, and the more similar the authors are in terms of writing style, the closer these areas would be to each other. We performed preliminary experiments on this and report the results in Appendix A.
43
+
44
+ # 3 FORMULATION
45
+
46
+ Let us formulate the problem of decomposition of text representation on an example of controlled change of linguistic form and conversion of Shakespeare plays in the original Early Modern to contemporary English. Let $X ^ { a }$ be a corpus of texts $\pmb { x } _ { i } ^ { a } \in \mathcal { X } ^ { a }$ in Early Middle English $\mathbf { f } ^ { a } \in \mathcal { F }$ , and $X ^ { b }$ be a corpus of texts $\pmb { x } _ { i } ^ { b } \in \mathcal { X } ^ { b }$ in modern English $\mathbf { f } ^ { b } \in \mathcal { F }$ . We assume that the texts in both $X ^ { a }$ and $X ^ { b }$ has the same distribution of meaning $\mathbf { m } \in \mathcal { M }$ . The form f , however, is different and generated from a mixture of two distributions:
47
+
48
+ $$
49
+ \mathbf { f } _ { i } = \alpha _ { i } ^ { a } p ( \mathbf { f } ^ { a } ) + \alpha _ { i } ^ { b } p ( \mathbf { f } ^ { b } )
50
+ $$
51
+
52
+ where $\mathbf { f } ^ { a }$ and $\mathbf { f } ^ { b }$ are two different languages (Early Modern and contemporary English). Intuitively, we say that a sample $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ has the form $\mathbf { f } ^ { a }$ if $\alpha _ { i } ^ { a } > \alpha _ { i } ^ { b }$ , and it has the form $\mathbf { f } ^ { b }$ if $\alpha _ { i } ^ { b } > \alpha _ { i } ^ { a }$ .
53
+
54
+ The goal of dissociation meaning and form is to learn two encoders $E _ { \mathbf { m } } : \mathcal { X } \mathcal { M }$ and $E _ { \mathbf { f } } : \mathcal { X } \mathcal { F }$ for the meaning and form correspondingly, and the generator $G : { \mathcal { M } } , { \mathcal { F } } \to { \mathcal { X } }$ such that
55
+
56
+ $$
57
+ \forall j \in \{ a , b \} , \forall k \in \{ a , b \} : G ( E _ { \mathbf { m } } ( x ^ { k } ) , E _ { \mathbf { f } } ( x ^ { j } ) ) \mathcal { X } ^ { j }
58
+ $$
59
+
60
+ That is, the form of a generated sample depends exclusively on the provided $\mathbf { f } _ { j }$ and can be the in the same domain for two different ${ \bf m } _ { u }$ and $\mathbf { m } _ { v }$ from two samples from different domains $\mathcal { X } ^ { a }$ and $\mathcal { X } ^ { b }$ .
61
+
62
+ Note that, in contrast to the previously proposals, the form f is not a categorical variable but a continuous vector. This enables fine-grained controllable change of form: the original form $\mathbf { f } _ { i }$ is changed to reflect the form of the specific target sentence $\mathbf { f } _ { j }$ with its own unique $\alpha ^ { a }$ and $\alpha ^ { b }$ while preserving the original meaning $\mathbf { m } _ { i }$ .
63
+
64
+ An important caveat concerns the core assumption of the similar meaning distribution in the two corpora, which is also made in all other works reviewed in Section 2. It limits the possible use of this approach to cases where the distributions are in fact similar (i.e. parallel or at least comparable corpora are available). It does not apply to many cases that could be analyzed in terms of meaning and form. For example, books for children and scholarly papers are both registers, they have their own form (i.e. specific subsets of linguistic means and structure conventions) – but there is little overlap in the content. This would make it hard even for a professional writer to turn a research paper into a fairy tale.
65
+
66
+ # 4 METHOD DESCRIPTION
67
+
68
+ Inspired by Makhzani et al. (2015), Kim et al. (2017), and Albanie et al. (2017), we propose ADNet, a new model for adversarial decomposition of text representation (Figure 1).
69
+
70
+ ![](images/3abb02e83857746da9d726ec7398bd1454ecd5ed2a8931c9876ed697853ada2e.jpg)
71
+ Figure 1: Overview of ADNet. Encoder encodes the inputs sentences into two latent vectors m and f. The Generator takes them as the input and produces the output sentence. During the training, the Discriminator is used for an adversarial loss that forces m to do not carry any information about the form, and the M otivator is used for a motivational loss that encourages f to carry the needed information about the form.
72
+
73
+ Our solution is based on a widely used sequence-to-sequence framework (Sutskever et al., 2014) and consists of four main parts. The encoder $E$ encodes the inputs sequence $_ { \textbf { \em x } }$ into two latent vectors $\mathbf { m }$ and f which capture the meaning and the form of the sentence correspondingly. The generator $G$ then takes these two vectors as the input and produces a reconstruction of the original input sequence $\hat { \pmb x }$ .
74
+
75
+ The encoder and generator by themselves will likely not achieve the dissociation of the meaning and form. We encourage this behavior in a way similar to Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), which had an overwhelming success the past few years and have been proven to be a good way of enforcing a specific distribution and characteristics on the output of a model.
76
+
77
+ Inspired by the work of Albanie et al. (2017) and the principle of ”carrot and stick” (Safire, 1995), in contrast to the majority of work that promotes pure adversarial approach (Goodfel
78
+
79
+ low et al., 2014; Shen et al., 2017; Fu et al., 2017; Zhu et al., 2017), we propose two additional components, the discriminator $D$ and the motivator $M$ to force and motivate the model to learn the dissociation of the meaning and the form. Similarly to a regular GAN model, the adversarial discriminator $D$ tries to classify the form f based on the latent meaning vector $\mathbf { m }$ , and the encoder $E$ is penalized to make this task as hard as possible.
80
+
81
+ Opposed to such vicious behaviour, the motivator $M$ tries to classify the form based on the latent form vector f, as it should be done, and encourages the encoder $E$ to make this task as simple as possible. We could apply the adversarial approach here as well and force the distribution of the form vectors to fit a mixture of Gaussians (in this particular case, a mixture of two Guassians) with another discriminator, as it is done by Makhzani et al. (2015), but we opted for the “dualistic” path of two complimentary forces.
82
+
83
+ # 4.1 ENCODER-DECODER
84
+
85
+ Both the encoder $E$ and the generator $G$ are modeled with a neural network. Gated Recurrent Unit (GRU) (Chung et al., 2014) is used for $E$ to encode the input sentence $_ { \textbf { \em x } }$ into a hidden vector $\pmb { h } = \mathbf { G } \mathbf { R } \mathbf { U } ( \pmb { x } )$ .
86
+
87
+ The vector $^ { h }$ is then passed through two different fully connected layers to produce the latent vectors of the form and the meaning of the input sentence:
88
+
89
+ $$
90
+ { \bf m } = \operatorname { t a n h } ( W _ { m } h + b _ { m } ) { \bf f } = \operatorname { t a n h } ( W _ { f } h + b _ { f } )
91
+ $$
92
+
93
+ We use $\theta _ { E }$ to denote the parameters of the encoder $E \colon W _ { m } , b _ { m } , W _ { f } , b _ { f }$ , and the parameters of the GRU unit.
94
+
95
+ The generator $G$ is also modelled with a GRU unit. The generator takes as input the meaning vector $\mathbf { m }$ and the form vector f, concatenates them, and passes trough a fully-connected layer to obtain a hidden vector $_ z$ that represents both meaning and form of the original input sentence:
96
+
97
+ $$
98
+ z = \operatorname { t a n h } ( W _ { z } [ \mathbf { m } ; \mathbf { f } ] + b _ { m } )
99
+ $$
100
+
101
+ After that, we use a GRU unit to generate the output sentence as a probability distribution over the vocabulary tokens:
102
+
103
+ $$
104
+ p ( \hat { \pmb x } ) = \prod _ { t = 1 } ^ { T } p ( \hat { \pmb x } _ { t } | \boldsymbol z , \hat { \pmb x } _ { 1 } , \dots , \hat { \pmb x } _ { t - 1 } )
105
+ $$
106
+
107
+ We use $\theta _ { G }$ to denote the parameters of the generator $G$ : $W _ { z }$ , $b _ { m }$ , and the parameters of the used GRU. The encoder and generator are trained using the standard reconstruction loss:
108
+
109
+ $$
110
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { r e c } } ( \pmb { \theta } _ { E } , \pmb { \theta } _ { G } ) = \mathbb { E } _ { \pmb { x } \sim \pmb { X } ^ { a } } [ - \log p ( \hat { \pmb x } | \pmb { x } ) ] + \mathbb { E } _ { \pmb { x } \sim \pmb { X } ^ { b } } [ - \log p ( \hat { \pmb x } | \pmb { x } ) ] } \end{array}
111
+ $$
112
+
113
+ # 4.2 DISCRIMINATOR
114
+
115
+ The representation of the meaning m produced by the encoder $E$ should not contain any information about the form f . We achieve this by using an adversarial approach. First, we train a discriminator $D$ , consisting of several fully connected layers with ELU activation function (Clevert et al., 2015) between them, to predict the form f of a sentence by its meaning vector: $\hat { f } _ { D } = D ( { \bf m } )$ , where $\hat { f }$ is the score (logit) reflecting the probability of the sentence $_ { \textbf { \em x } }$ to belong to one of the form domains.
116
+
117
+ Motivated by the Wasserstein GAN (Arjovsky et al., 2017), we use the following loss function instead of the standard cross-entropy:
118
+
119
+ $$
120
+ \mathcal { L } _ { D } ( \pmb { \theta } _ { D } ) = \mathbb { E } _ { \pmb { x } \sim \pmb { X } ^ { a } } [ D ( E _ { \mathbf { m } } ( \pmb { x } ) ) ] - \mathbb { E } _ { \pmb { x } \sim \pmb { X } ^ { b } } [ D ( E _ { \mathbf { m } } ( \pmb { x } ) ) ]
121
+ $$
122
+
123
+ Thus, a successful discriminator will produce negative scores $\hat { f }$ for sentences from $X ^ { a }$ and positive scores for sentences from $X ^ { b }$ . This discriminator is then used in an adversarial manner to provide a learning signal for the encoder and force dissociation of the meaning and form by maximizing $\mathcal { L } _ { D }$ $: \mathcal { L } _ { \mathrm { a d v } } ( \pmb { \theta } _ { E } ) = - \lambda _ { \mathrm { a d v } } \mathcal { L } _ { D }$ , where $\lambda _ { \mathrm { a d v } }$ is a hyperparameter reflecting the strength of the adversarial loss. Note that this loss applies to the parameters of the encoder.
124
+
125
+ # 4.3 MOTIVATOR
126
+
127
+ Our experiments showed that it is enough to have just the discriminator $D$ and the adversarial loss $\mathcal { L } _ { \mathrm { a d v } }$ to force the model to dissociate the form and the meaning. However, in order to achieve a better dissociation, we propose to use a motivator $M$ (Albanie et al., 2017) and the corresponding motivational loss. Conceptually, this is the opposite of the adversarial loss, hence the name. As the discriminator $D$ , the motivator $M$ learns to classify the form f of the input sentence. However, its input is not not the meaning vector but the form vector: ${ \hat { f } } _ { M } = M ( \mathbf { f } )$ .
128
+
129
+ The motivator has the same architecture as the discriminator, and the same loss function. While the adversarial loss forces the encoder $E$ to produce a meaning vector m with no information about the form f , the motivational loss encourages $E$ to encode this information in the form vector by minimizing ${ \mathcal { L } } _ { M }$ ${ \bf \chi } _ { \ / t } \colon \mathcal { L } _ { \mathrm { m o t i v } } ( \pmb { \theta } _ { E } ) = \lambda _ { \mathrm { m o t i v } } \mathcal { L } _ { \ / M }$ .
130
+
131
+ # 4.4 TRAINING PROCEDURE
132
+
133
+ The overall training procedure follows the methods for training GANs (Goodfellow et al., 2014; Arjovsky et al., 2017) and consists of two stages: training the discriminator $D$ and the motivator $M$ , and training the encoder $E$ and the generator $G$ .
134
+
135
+ In contrast to Arjovsky et al. (2017), we do not train the $D$ and $M$ more than the $E$ and the $G$ . In our experiments we found that simple training in two stages is enough to achieve dissociation of the meaning and the form. Encoder and generator are trained with the following loss function that combines reconstruction loss with the losses from the discriminator and the motivator:
136
+
137
+ $$
138
+ \mathcal { L } _ { \mathrm { t o t a l } } ( \theta _ { E } , \theta _ { G } ) = \mathcal { L } _ { \mathrm { r e c } } + \mathcal { L } _ { \mathrm { a d v } } + \mathcal { L } _ { \mathrm { m o t i v } }
139
+ $$
140
+
141
+ # 5 EXPERIMENTAL SETUP
142
+
143
+ # 5.1 EVALUATION
144
+
145
+ Similarly to the evaluation of style transfer in CV (Isola et al., 2017), evaluation of this task is difficult. We follow the approach of Isola et al. (2017); Shen et al. (2017) and recently proposed by Fu et al. (2017) methods of evaluation of “transfer strength” and “content preservation”. The authors showed the proposed automatic metrics to a large degree correlate with human judgment and can serve as a proxy. Below we give an overview of these metrics.
146
+
147
+ Transfer Strength. The goal of this metric is to capture whether the form has been changed successfully. To do that, a classifier $C$ is trained on the two corpora, $X ^ { a }$ and $X ^ { b }$ to recognize the linguistic “form” typical of each of them. After that, a sentence the form/meaning of which was changed is passed to the classifier. The overall accuracy reflects the degree of success of changing the form/meaning. This approach is widely used in CV (Isola et al., 2017), and was applied in NLP as well (Shen et al., 2017).
148
+
149
+ In our experiments we used a GRU unit followed by four fully-connected layers with ELU activation functions between them as the classifier.
150
+
151
+ Content preservation Note that transfer strength by itself does not capture the overall quality of a changed sentence. A extremely overfitted model that produces the same, the most characteristic sentence of one corpus all the time would have a high score according to this metric. Thus, we need to measure how much of the meaning was preserved while changing the form. To do that, Fu et al. (2017) proposed to use a cosine similarity based metric using pretrained word embeddings. First, a sentence embedding is computed by concatenation of max, mean, and average pooling over the timesteps:
152
+
153
+ $$
154
+ \pmb { v } = [ \operatorname* { m a x } ( \pmb { v } _ { 1 } , \dots , \pmb { v } _ { T } ) ; \operatorname* { m i n } ( \pmb { v } _ { 1 } , \dots , \pmb { v } _ { T } ) ; \operatorname* { m e a n } ( \pmb { v } _ { 1 } , \dots , \pmb { v } _ { T } ) ]
155
+ $$
156
+
157
+ Next, the cosine similarity score $s _ { i }$ between the embedding $\pmb { v } _ { i } ^ { s }$ of the original source sentence and the target sentence with the changed form $\mathbf { \Delta } \mathbf { \vec { v } } _ { i } ^ { t }$ is computed, and the scores across the dataset are averaged to obtain the total score:
158
+
159
+ $$
160
+ \mathbf { s } = \frac { 1 } { 2 } \left[ \frac { 1 } { | X ^ { a } | } \sum _ { i = 1 } ^ { | X ^ { a } | } \mathrm { s } _ { i } + \frac { 1 } { | X ^ { b } | } \sum _ { i = 1 } ^ { | X ^ { b } | } \mathrm { s } _ { i } \right]
161
+ $$
162
+
163
+ # 5.1.1 CONTINUOUS FORM
164
+
165
+ The metrics described above treat the form as a categorical (in most cases, even binary) variable. This was not a problem in previous work since the change of form could be done by just inverting the form vector. Our work, in contrast, treats the form as a continuous variable, and, therefore, we cannot just use the proposed metrics directly. To enable a fair comparison, we propose the following procedure.
166
+
167
+ For each sentence $s _ { s } ^ { a }$ in the test set from the corpus $X ^ { a }$ we sample $k = 1 0$ random sentence from the corpus $X ^ { b }$ of the opposite form. After that, we encode them into the meaning $m _ { i }$ and form $f _ { i }$ vectors, and average the form vectors to obtain a single form vector $\begin{array} { r } { { f } _ { \mathrm { a v g } } = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } { f } _ { i } } \end{array}$ . We then generate a new sentence with its original meaning vector $m _ { s }$ and the resulting form vector $\pmb { f } _ { \mathrm { a v g } }$ , and use it for evalation. This process enables a fair comparison with the previous works that treat form as a binary variable.
168
+
169
+ # 5.2 DATASETS
170
+
171
+ We performed an extensive evaluation of the proposed method on several dataset that reflect different changes of meaning, form, or specific aspects of meaning, such as sentiment polarity.
172
+
173
+ Changing form: register This experiment is conducted with a dataset of titles of scientific papers and news articles published by Fu et al. (2017). This dataset (referred to as “Headlines”) contains titles of scientific articles crawled from online digital libraries, such as “ACM Digital Library” and “arXiv”. The titles of the news articles are taken from the “News Aggregator Data Set” from UCI Machine Learning Repository (Dheeru & Karra Taniskidou, 2017)
174
+
175
+ Changing form: language diachrony Diachronic language change is explored with the dataset composed by Xu et al. (2012). It includes the texts of 17 plays by William Shakespeare in the original Early Modern English, and their translations into contemporary English. We randomly permuted all sentences from all plays and sampled the training, validation, and test sets. Note that this is the smallest dataset in our experiments.
176
+
177
+ Previous work on style transfer for text also included the experiments with changing sentiment polarity (Shen et al., 2017; Fu et al., 2017). We do not report the experiments with sentiment data, since the change in sentiment polarity corresponds to a change in a specific aspect of meaning, rather than form. We therefore believe the comparison with these data would not be instructive.
178
+
179
+ # 6 RESULTS AND DISCUSSION
180
+
181
+ ![](images/345122e7aea7fa589082eadec03c850ada45c1d27c374c52dc7d77b4925102de.jpg)
182
+ Figure 2: Transfer strength vs Content preservation (see subsection 5.1) for different combination of the size of the meaning and form vectors. Each point is labeled with ”¡meaning vector size¿, ¡form vector size¿”.
183
+
184
+ Probably, the most recent and similar to our work is the model proposed by Fu et al. (2017), in particular the “style-embedding” model. We implemented this model to provide a baseline for comparison.
185
+
186
+ The classifier used in the transfer strength metric achieves very high accuracy (0.832 and 0.99 for the Shakespeare and Headlines datasets correspondingly). These results concur with the results of Shen et al. (2017) and Fu et al. (2017), and show that the two forms in the corpora are significantly different.
187
+
188
+ Following Fu et al. (2017), we show the result of different configuration of the size of the form and meaning vectors on Figure 2. Namely, we report combinations of 64 and 256-dimensional vectors. Note that the sizes of the form vector are important. The larger is the form vector, the higher is the transfer strength, but smaller is content preservation. This is consistent with Fu et al. (2017), where they observed a similar behaviour.
189
+
190
+ It is clear that the proposed method achieves significantly better transfer strength then the previously proposed model. It also has a lower content preservation score, which means that it repeats fewer exact words from the source sentence. Note that a low transfer strength and very high (0.9) content ˜ preservation score means that the model was not able to successfully learn to transfer the form and the target sentence is almost identical to the source sentence. The Shakespeare dataset is the hardest for the model in terms of transfer strength, probably because it is the smallest dataset, but the proposed method performs consistently well in transfer of both form and meaning and, in contrast to the baseline.
191
+
192
+ Fluency of generated sentences Note that there is no guarantee that the generated sentences would be coherent after switching the form vector. In order to estimate how this switch affects the fluency of generated sentences, we trained a language model on the Shakespeare dataset and calculated the perplexity of the generated sentences using the original form vector and the average of form vectors of $k$ random sentences from the opposite style (see subsubsection 5.1.1). While the perplexity of such sentences does go up, this change is not big (6.89 vs 9.74).
193
+
194
+ # 6.1 IMPACT OF THE MOTIVATIONAL TRAINING
195
+
196
+ To investigate the impact of the motivator, we visualized form and meaning embeddings of 1000 random samples from the Headlines dataset using t-SNE algorithm (Van Der Maaten, 2014) with the Multicore-TSNE library (Ulyanov, 2016). The result is presented in Figure 3.
197
+
198
+ There are three important observations. First, there is no clear separation in the meaning embeddings, which means that any accurate form transfer is due to the form embeddings, and the dissociation of form and meaning was successful.
199
+
200
+ Second, even without the motivator the model is able to produce the form embeddings that are clustered into two group. Recall from section 4 that without the motivational loss there are no forces that influence the form embeddings, but nevertheless the model learns to separate them.
201
+
202
+ However, the separation effect is much more pronounced in the presence of motivator. This explains why the motivator consistently improved transfer strength of ADNet, as shown in Figure 2.
203
+
204
+ ![](images/177a04829132ea7eb43a11912ab21cf3b18fabd8252eb4e7e976664a6e7b58b0.jpg)
205
+ Figure 3: t-SNE visualization of the form and meaning embeddings of 1000 random sentences. Green point represent sentences form news headlines, and red points represent titles of scientific articles.
206
+
207
+ # 6.2 QUALITATIVE EVALUATION
208
+
209
+ Table 1 and Table 2 show several examples of the successful form/meaning transfer achieved by ADNet. Table 1 presentes the results of an experiment that to some extent replicates the approach taken by the authors who treat linguistic form as a binary variable (Shen et al., 2017; Fu et al., 2017). The sentences the original Shakespeare plays were averaged to get the “typical” Early Modern English form vector. This averaged vector was used to decode a sentence from the modern English translation back into the original. The same was done in the opposite direction.
210
+
211
+ Table 1: Decoding of the source sentence from Early Modern English (EME) into contemporary English (CE), and vice versa.
212
+
213
+ <table><tr><td>Aye,sir. (EME)</td><td>→ Yes,sir. (CE)</td></tr><tr><td>Fare thee well, my lord (EME)</td><td>Fare you well, my lord (CE)</td></tr><tr><td>This guy will tell us everything. (CE)</td><td>This man will tell us everything. (EME)</td></tr><tr><td>Ive done no more to caesar than you will do to me.(CE)</td><td>Ihave done no more to caesar than,you shall do to me.(EME)</td></tr></table>
214
+
215
+ Table 2 illustrates the possibilities of ADNet on fine-grained transfer applied to the change of register. We encoded two sentences in different registers from the Headlines dataset to produce form and meaning embeddings, and then we decoded the first sentence with the meaning embedding of the second, and vice versa. As can be seen from Table 2, the model correctly captures the meaning of sentences and decodes them using the form of the source sentences. Note how the model preserves specific words and the structure of the source sentence. In particular, note how in the first example, the model decided to put the colon after the “crisis management”, as the source form sentence has this syntactic structure (“A review:”). This is not possible in the previously proposed models, as they treat form as just a binary variable.
216
+
217
+ <table><tr><td>A review: detection techniques for LTE system Situation management knowledge from social media</td><td>→Crisis management: media practices in telecommunication management →Areview study against intelligence internet</td></tr><tr><td>Security flaw could notaffect digital devices,experts say Semantic approach to event processing</td><td>→Semantic approach approach: current multimedia networks as modeling processes →Security flaw to verifyleaks</td></tr></table>
218
+
219
+ Table 2: Flipping the meaning and the form embeddings of two sentence from different registers. Note the use of the colon in the first example, and the use of the “to”-constructions in the second example, consistent with the form of the source sentences.
220
+
221
+ # 6.3 PERFORMANCE OF MEANING EMBEDDINGS ON DOWNSTREAM TASKS
222
+
223
+ We conducted some experiments to test the assumption that the derived meaning embeddings should improve performance on downstream tasks that require understanding of the meaning of the sentences regardless of their form. We evaluated embeddings produced by the ADNet, trained in the Headlines dataset, on a task of paraphrase detection. We used the SentEval toolkit (Conneau et al., 2017) and the Microsoft Research Paraphrase Corpus (Dolan et al., 2004). The F1 scores on this task for different models are presented in Table 3. Note that all models, except InferSent, are unsupervised. The InferSent model was trained on a big SNLI dataset, consisting of more than 500,000 manually annotated pairs. ADNet achieves the the highest score among the unsupervised systems and outperforms the regular sequence-to-sequence autoencoder with a large gap.
224
+
225
+ Table 3: F1 scores on the task of paraphrase detection using the SentEval toolkit (Conneau et al., 2017)
226
+
227
+ <table><tr><td>BoW</td><td>Seq2Seq</td><td>InferSent</td><td>Fu et al. (2017)</td><td>ADNet</td></tr><tr><td>80.82</td><td>74.68</td><td>83.17</td><td>78.88</td><td>81.38</td></tr></table>
228
+
229
+ # 7 CONCLUSION
230
+
231
+ In this paper, we presented ADNet, a new model that performs adversarial decomposition of text representation. In contrast to previous work, it does not require a parallel training corpus and works directly on hidden representations of sentences. Most importantly, is does not treat the form as a binary variable (as done in most previously proposed models), enabling a fine-grained change of the form of sentences or specific aspects of meaning. We evaluate ADNet on two tasks: the shift of language register and diachronic language change. Our solution achieves superior results, and t-SNE visualizations of the learned meaning and style embeddings illustrate that the proposed motivational loss leads to significantly better separation of the form embeddings.
232
+
233
+ # REFERENCES
234
+
235
+ Samuel Albanie, Sebastien Ehrhardt, and Jo ´ ao F Henriques. Stopping gan violence: Generative ˜ unadversarial networks. arXiv preprint arXiv:1703.02528, 2017.
236
+
237
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. ´ arXiv preprint arXiv:1701.07875, 2017.
238
+
239
+ Sanjeev Arora, Yingyu Liang, and Tengyu Ma. A simple but tough-to-beat baseline for sentence embeddings. In International Conference on Learning Representation, 2017.
240
+
241
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
242
+
243
+ Keith Carlson, Allen Riddell, and Daniel Rockmore. Zero-shot style transfer in text using recurrent neural networks. arXiv preprint arXiv:1711.04731, 2017.
244
+
245
+ Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, et al. Universal sentence encoder. arXiv preprint arXiv:1803.11175, 2018.
246
+
247
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
248
+
249
+ Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015.
250
+
251
+ Alexis Conneau, Douwe Kiela, Holger Schwenk, Lo¨ıc Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 670–680, 2017.
252
+
253
+ Ferdinand de Saussure. Course in General Linguistics. New York : Philosophical Library, 1959. URL http://archive.org/details/courseingenerall00saus.
254
+
255
+ Dua Dheeru and Efi Karra Taniskidou. UCI machine learning repository, 2017. URL http: //archive.ics.uci.edu/ml.
256
+
257
+ Bill Dolan, Chris Quirk, and Chris Brockett. Unsupervised construction of large paraphrase corpora: Exploiting massively parallel news sources. In Proceedings of the 20th international conference on Computational Linguistics, pp. 350. Association for Computational Linguistics, 2004.
258
+
259
+ Jessica Ficler and Yoav Goldberg. Controlling linguistic style aspects in neural language generation. In Proceedings of the Workshop on Stylistic Variation, pp. 94–104, 2017.
260
+
261
+ Zhenxin Fu, Xiaoye Tan, Nanyun Peng, Dongyan Zhao, and Rui Yan. Style transfer in text: Exploration and evaluation. arXiv preprint arXiv:1711.06861, 2017.
262
+
263
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
264
+
265
+ Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 140–149, 2016.
266
+
267
+ M. A. K. Halliday, A. McIntosh, and P. Stevens. The Linguistic Sciences and Language Teaching. Longmans, Green and Co., London, 1968.
268
+
269
+ Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In International Conference on Machine Learning, pp. 1587–1596, 2017.
270
+
271
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1125–1134, 2017.
272
+
273
+ Harsh Jhamtani, Varun Gangal, Eduard Hovy, and Eric Nyberg. Shakespearizing modern language using copy-enriched sequence-to-sequence models. arXiv preprint arXiv:1707.01161, 2017.
274
+
275
+ Yoon Kim, Kelly Zhang, Alexander M Rush, Yann LeCun, et al. Adversarially regularized autoencoders for generating discrete structures. arXiv preprint arXiv:1706.04223, 2017.
276
+
277
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
278
+
279
+ Alex M Lamb, Anirudh Goyal ALIAS PARTH GOYAL, Ying Zhang, Saizheng Zhang, Aaron C Courville, and Yoshua Bengio. Professor forcing: A new algorithm for training recurrent networks. In Advances In Neural Information Processing Systems, pp. 4601–4609, 2016.
280
+
281
+ Jiwei Li, Michel Galley, Chris Brockett, Georgios Spithourakis, Jianfeng Gao, and Bill Dolan. A persona-based neural conversation model. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 994–1003, 2016.
282
+
283
+ Zachary C Lipton, Sharad Vikram, and Julian McAuley. Generative concatenative nets jointly learn to write and classify reviews. arXiv preprint arXiv:1511.03683, 2015.
284
+
285
+ Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. arXiv preprint arXiv:1803.02893, 2018.
286
+
287
+ Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015.
288
+
289
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
290
+
291
+ Jonas Mueller, David Gifford, and Tommi Jaakkola. Sequence to better sequence: continuous revision of combinatorial structures. In International Conference on Machine Learning, pp. 2536– 2544, 2017.
292
+
293
+ Nikita Nangia, Adina Williams, Angeliki Lazaridou, and Samuel R Bowman. The repeval 2017 shared task: Multi-genre natural language inference with sentence representations. arXiv preprint arXiv:1707.08172, 2017.
294
+
295
+ Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting on association for computational linguistics, pp. 311–318. Association for Computational Linguistics, 2002.
296
+
297
+ Peter Potash, Alexey Romanov, and Anna Rumshisky. Ghostwriter: using an lstm for automatic rap lyric generation. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 1919–1924, 2015.
298
+
299
+ Peter Potash, Alexey Romanov, and Anna Rumshisky. Here’s my point: Joint pointer architecture for argument mining. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1364–1373, 2017.
300
+
301
+ William Safire. On Language Gotcha! Gang Strikes Again, 1995. URL https://www.nytimes.com/1995/12/31/magazine/ on-language-gotcha-gang-strikes-again.html.
302
+
303
+ Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi Jaakkola. Style transfer from non-parallel text by cross-alignment. In Advances in Neural Information Processing Systems, pp. 6833–6844, 2017.
304
+
305
+ Efstathios Stamatatos. Authorship attribution using text distortion. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, volume 1, pp. 1138–1149, 2017.
306
+
307
+ Sandeep Subramanian, Adam Trischler, Yoshua Bengio, and Christopher J Pal. Learning general purpose distributed sentence representations via large scale multi-task learning. arXiv preprint arXiv:1804.00079, 2018.
308
+
309
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.
310
+ Jian Tang, Yifan Yang, Sam Carton, Ming Zhang, and Qiaozhu Mei. Context-aware natural language generation with recurrent neural networks. arXiv preprint arXiv:1611.09900, 2016.
311
+ Dmitry Ulyanov. Multicore-tsne. https://github.com/DmitryUlyanov/ Multicore-TSNE, 2016.
312
+ Laurens Van Der Maaten. Accelerating t-sne using tree-based algorithms. Journal of machine learning research, 15(1):3221–3245, 2014.
313
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 6000–6010, 2017.
314
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015.
315
+ Wei Xu, Alan Ritter, Bill Dolan, Ralph Grishman, and Colin Cherry. Paraphrasing for style. Proceedings of COLING 2012, pp. 2899–2914, 2012.
316
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2223–2232, 2017.
317
+
318
+ # A MULTIPLE FORMS AND STYLISTIC SIMILARITIES
319
+
320
+ ![](images/0e733eb345569ac00898384b916d68adac3771ae1b15c0710524723af5f8dfcc.jpg)
321
+ Figure 4: t-SNE visualization of the form and meaning embeddings. Each color corresponds to a different author.
322
+
323
+ In order to go beyond just two different forms, we experimented with training the model on a set of literature novels from six different authors from Project Gutenberg2 written in two different time periods. A t-SNE visualization of the resulting meaning and form embeddings is presented in Figure 4. Note how form embeddings create a six-pointed star. After further examination, we observed that common phrases (for example, “Good morning” or “Hello!”) were embedded into the center of the star, whereas the most specific sentences from a given author were placed into the rays of the star. In particular, some sentences included character names, thus further research is required to mitigate this problem. Stamatatos (2017) provides a promising direction for solving this.
parse/train/SJzwb2RcK7/SJzwb2RcK7_content_list.json ADDED
@@ -0,0 +1,1700 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ADVERSARIAL DECOMPOSITION OF TEXT REPRESENTATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In this paper, we present a method for adversarial decomposition of text representation. This method can be used to decompose a representation of an input sentence into several independent vectors, where each vector is responsible for a specific aspect of the input sentence. We evaluate the proposed method on two case studies: the conversion between different social registers and diachronic language change. We show that the proposed method is capable of fine-grained controlled change of these aspects of the input sentence. For example, our model is capable of learning a continuous (rather than categorical) representation of the style of the sentence, in line with the reality of language use. The model uses adversarial-motivational training and includes a special motivational loss, which acts opposite to the discriminator and encourages a better decomposition. Finally, we evaluate the obtained meaning embeddings on a downstream task of paraphrase detection and show that they are significantly better than embeddings of a regular autoencoder. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 462
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 493,
55
+ 336,
56
+ 510
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Despite the recent successes in using neural models for representation learning for natural language text, learning a meaningful representation of input sentences remains an open research problem. A variety of approaches, from sequence-to-sequence models that followed the work of Sutskever et al. (2014) to the more recent proposals (Arora et al., 2017; Nangia et al., 2017; Conneau et al., 2017; Logeswaran & Lee, 2018; Subramanian et al., 2018; Cer et al., 2018) share one common drawback. Namely, all of them encode the input sentence into just one single vector of a fixed size. One way to bypass the limitations of a single vector representation is to use an attention mechanism (Bahdanau et al., 2014; Vaswani et al., 2017). We propose to approach this problem differently and design a method for adversarial decomposition of the learned input representation into multiple components. Our method encodes the input sentence into several vectors, where each vector is responsible for a specific aspect of the sentence. ",
63
+ "bbox": [
64
+ 174,
65
+ 526,
66
+ 825,
67
+ 679
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In terms of learning different separable components of input representation, our work most closely relates to the style transfer work, which has been applied to a variety of different aspects of language, from diachronic language differences (Xu et al., 2012) to authors’ personalities (Lipton et al., 2015) and even sentiment (Hu et al., 2017; Fu et al., 2017). The style transfer work effectively relies on the more classical distinction between meaning and form (de Saussure, 1959), which accounts for the fact that multiple surface realizations are possible for the same meaning. For simplicity, we will use this terminology throughout the rest of the paper. ",
74
+ "bbox": [
75
+ 174,
76
+ 688,
77
+ 825,
78
+ 784
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Consider the case when we encode an input sentence into a meaning vector and a form vector. We are then able to perform a controllable change of meaning or form by a simple change applied to these vectors. For example, we can encode two sentences written in two different styles, then swap the form vectors while leaving the meaning vectors intact. We can then generate new unique sentences with the original meaning, but written in a different style. ",
85
+ "bbox": [
86
+ 174,
87
+ 791,
88
+ 823,
89
+ 861
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In the present work, we propose a novel model for this type of decomposition based on adversarialmotivational training and design an architecture inspired by the GANs (Goodfellow et al., 2014) and adversarial autoencoders (Makhzani et al., 2015). In addition to the adversarial loss, we use a special motivator (Albanie et al., 2017), which, in contrast to the discriminator, is used to provide a motivational loss to encourage the model to better decomposition of the meaning and the form, as well as specific aspects of meaning. We make all the code publicly available on GitHub 1. ",
96
+ "bbox": [
97
+ 176,
98
+ 868,
99
+ 823,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 173,
109
+ 103,
110
+ 821,
111
+ 132
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We evaluate the proposed methods for learning separate aspects of input representation on the following case studies: ",
118
+ "bbox": [
119
+ 173,
120
+ 138,
121
+ 820,
122
+ 166
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "1. Learning to separate out a representation of the specific diachronic slice of language. One may express the same meaning using the Early Modern English (e.g. What would she have?) and the contemporary English ( What does she want?) \n2. Learning a representation for a social register (Halliday et al., 1968) – that is, subsets of language appropriate in a given context or characteristic of a certain group of speakers. These include formal and informal language, the language used in different genres (e.g., fiction vs. newspapers vs. academic texts), different dialects, and even literary idiostyles. We experiment with the registers corresponding to the titles of scientific papers vs. newspaper articles. ",
129
+ "bbox": [
130
+ 210,
131
+ 179,
132
+ 825,
133
+ 310
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 333,
144
+ 341,
145
+ 348
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "As mentioned above, the most relevant previous work comes from the style transfer research, and it can be divided into two groups: ",
152
+ "bbox": [
153
+ 174,
154
+ 364,
155
+ 823,
156
+ 393
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "1. Approaches that aim to generate text in a given form. For example, the task may be to produce just any verse as long as it is in the “style” of the target poet. 2. Approaches that aim to induce a change in either the “form” or the “meaning” of an existing utterance. For example, “Good bye, Mr. Anderson.” can be transformed to “Fare you well, good Master Anderson” (Xu et al., 2012)). ",
163
+ "bbox": [
164
+ 212,
165
+ 406,
166
+ 825,
167
+ 482
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "An example of the first group is the work by Potash et al. (2015), who trained several separate networks on verses by different hip-hip artists. An LSTM network successfully generated verses that were stylistically similar to the verses of the target artist (as measured by cosine distance on TfIdf vectors). More complicated approaches use language models that are conditioned in some way. For example, Lipton et al. (2015) produced product reviews with a target rating by passing the rating as an additional input at each timestep of an LSTM model. Tang et al. (2016) generated reviews not only with a given rating but also for a specific product. At each timestep a special context vector was provided as input, gated so as to enable the model to decide how much attention to pay to that vector and the current hidden state. Li et al. (2016) used “speaker” vectors as an additional input to a conversational model, improving consistency of dialog responses. Finally, Ficler & Goldberg (2017) performed an extensive evaluation of conditioned language models based on “content” (theme and sentiment) and “style” (professional, personal, length, descriptiveness). Importantly, they showed that it is possible to control both “content” and “style” simultaneously. ",
174
+ "bbox": [
175
+ 174,
176
+ 494,
177
+ 825,
178
+ 674
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Work from the second group can further be divided into two clusters by the nature of the training data: parallel aligned corpora, or non-aligned datasets. The aligned corpora enable approaching the problem of form shift as a paraphrasing or machine translation problem. Xu et al. (2012) used statistical and dictionary-based systems on a dataset of original plays by Shakespeare and their contemporary translations. Carlson et al. (2017) trained an LSTM network on 33 versions of the Bible. Jhamtani et al. (2017) used a Pointer Network (Vinyals et al., 2015), an architecture that was successfully applied to a wide variety of tasks (Merity et al., 2016; Gulcehre et al., 2016; Potash et al., 2017), to enable direct copying of the input tokens to the output. Note that these works use BLEU (Papineni et al., 2002) as the main, or even the only evaluation measure. This is only possible in cases where a parallel corpus is available. ",
185
+ "bbox": [
186
+ 174,
187
+ 681,
188
+ 825,
189
+ 820
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Recently, new approaches that do not require a parallel corpora were developed in both CV (Zhu et al., 2017) and NLP. Hu et al. (2017) succeeded in changing tense and sentiment of sentences with a two steps procedure based on a variational auto-encoder (VAE) (Kingma & Welling, 2013). After training a VAE, a discriminator and a generator are trained in an alternate manner, where the discriminator tries to correctly classify the target sentence attributes. A special loss component forces the hidden representation of the encoded sentence to not have any information about the target sentence attributes. Mueller et al. (2017) used a VAE to produce a hidden representation of a sentence, and then modify it to match the desired form. Unlike Hu et al. (2017), they do not separate the form and meaning embeddings. Shen et al. (2017) applied a GAN to align the hidden representation of sentences from two corpora and force them to do not have any information about the form via adversarial loss. During the decoding, similarly the work by Lipton et al. (2015), special “style” vectors are passed to the decoder at every timestep to produce a sentence with the desired properties. The model is trained using the Professor-Forcing algorithm (Lamb et al., 2016). Kim et al. (2017) worked directly on hidden space vectors that are constrained with the same adversarial loss instead of outputs of the generator, and use two different generators for two different “styles”. Finally, Fu et al. (2017) proposed two models for generating sentences with the target properties using an adversarial loss, similarly to Shen et al. (2017) and Kim et al. (2017). ",
196
+ "bbox": [
197
+ 174,
198
+ 828,
199
+ 823,
200
+ 897
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "",
207
+ "bbox": [
208
+ 173,
209
+ 103,
210
+ 825,
211
+ 270
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Comparison with previous work In contrast to the proposals of $\\mathrm { X u }$ et al. (2012), Carlson et al. (2017), Jhamtani et al. (2017), our solution does not require a parallel corpus. Furthermore, unlike the model by Shen et al. (2017), our model works directly on representation of sentences in the hidden space. ",
218
+ "bbox": [
219
+ 174,
220
+ 285,
221
+ 825,
222
+ 342
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Most importantly, in contrast to the proposals by Mueller et al. (2017), Hu et al. (2017), Kim et al. (2017), Fu et al. (2017), our model produces a representation for both meaning and form and does not treat the form as a categorical (in the vast majority of works, binary) variable. Although the form was represented as dense vectors in previous work, it is still just a binary feature, as they use a single pre-defined vector for each form, with all sentences of the same form assigned the same form vector. In contrast, our work treats form as a truly continuous variable, where each sentence has its own, unique, form vector. ",
229
+ "bbox": [
230
+ 174,
231
+ 348,
232
+ 825,
233
+ 445
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "Treating meaning and form not as binary/categorical, but as continuous is more consistent with the reality of language use, since there are different degrees of overlap between the language used by different registers or in different diachronic slices. Indeed, language change is gradual, and the acceptability of expressions in a given register also forms a continuum, so one expects a substantial overlap between the grammar and vocabulary used, for example, on Twitter and by New York Times. To the best of our knowledge, this is the first model that considers linguistic form in the task of text generation as a continuous variable. ",
240
+ "bbox": [
241
+ 174,
242
+ 452,
243
+ 825,
244
+ 549
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "One significant consequence of learning a continuous representation for form is that it allows the model to work with a large, and potentially infinite, number of forms. Note that in this case the locations of areas of specific forms in the vector style space would reflect the similarity between these forms. For example, the proposed model could be directly applied to the authorship attribution problem. In this case, each author would have their own area in the form space, and the more similar the authors are in terms of writing style, the closer these areas would be to each other. We performed preliminary experiments on this and report the results in Appendix A. ",
251
+ "bbox": [
252
+ 174,
253
+ 556,
254
+ 825,
255
+ 655
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "3 FORMULATION ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 674,
266
+ 331,
267
+ 690
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Let us formulate the problem of decomposition of text representation on an example of controlled change of linguistic form and conversion of Shakespeare plays in the original Early Modern to contemporary English. Let $X ^ { a }$ be a corpus of texts $\\pmb { x } _ { i } ^ { a } \\in \\mathcal { X } ^ { a }$ in Early Middle English $\\mathbf { f } ^ { a } \\in \\mathcal { F }$ , and $X ^ { b }$ be a corpus of texts $\\pmb { x } _ { i } ^ { b } \\in \\mathcal { X } ^ { b }$ in modern English $\\mathbf { f } ^ { b } \\in \\mathcal { F }$ . We assume that the texts in both $X ^ { a }$ and $X ^ { b }$ has the same distribution of meaning $\\mathbf { m } \\in \\mathcal { M }$ . The form f , however, is different and generated from a mixture of two distributions: ",
274
+ "bbox": [
275
+ 174,
276
+ 704,
277
+ 825,
278
+ 792
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "equation",
284
+ "img_path": "images/4a11e7c60e2c8b0d0355c151e4bfe43c3f0471022bc86dfcef0ddc385ae6c31f.jpg",
285
+ "text": "$$\n\\mathbf { f } _ { i } = \\alpha _ { i } ^ { a } p ( \\mathbf { f } ^ { a } ) + \\alpha _ { i } ^ { b } p ( \\mathbf { f } ^ { b } )\n$$",
286
+ "text_format": "latex",
287
+ "bbox": [
288
+ 415,
289
+ 797,
290
+ 581,
291
+ 816
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "where $\\mathbf { f } ^ { a }$ and $\\mathbf { f } ^ { b }$ are two different languages (Early Modern and contemporary English). Intuitively, we say that a sample $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ has the form $\\mathbf { f } ^ { a }$ if $\\alpha _ { i } ^ { a } > \\alpha _ { i } ^ { b }$ , and it has the form $\\mathbf { f } ^ { b }$ if $\\alpha _ { i } ^ { b } > \\alpha _ { i } ^ { a }$ . ",
298
+ "bbox": [
299
+ 174,
300
+ 823,
301
+ 823,
302
+ 854
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "The goal of dissociation meaning and form is to learn two encoders $E _ { \\mathbf { m } } : \\mathcal { X } \\mathcal { M }$ and $E _ { \\mathbf { f } } : \\mathcal { X } \\mathcal { F }$ for the meaning and form correspondingly, and the generator $G : { \\mathcal { M } } , { \\mathcal { F } } \\to { \\mathcal { X } }$ such that ",
309
+ "bbox": [
310
+ 173,
311
+ 859,
312
+ 828,
313
+ 890
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "equation",
319
+ "img_path": "images/a441574f5e8c112d32d76863ae817cd1ac446e2f802d171019672f92738679d7.jpg",
320
+ "text": "$$\n\\forall j \\in \\{ a , b \\} , \\forall k \\in \\{ a , b \\} : G ( E _ { \\mathbf { m } } ( x ^ { k } ) , E _ { \\mathbf { f } } ( x ^ { j } ) ) \\mathcal { X } ^ { j }\n$$",
321
+ "text_format": "latex",
322
+ "bbox": [
323
+ 316,
324
+ 906,
325
+ 679,
326
+ 925
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "That is, the form of a generated sample depends exclusively on the provided $\\mathbf { f } _ { j }$ and can be the in the same domain for two different ${ \\bf m } _ { u }$ and $\\mathbf { m } _ { v }$ from two samples from different domains $\\mathcal { X } ^ { a }$ and $\\mathcal { X } ^ { b }$ . ",
333
+ "bbox": [
334
+ 173,
335
+ 103,
336
+ 823,
337
+ 133
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "Note that, in contrast to the previously proposals, the form f is not a categorical variable but a continuous vector. This enables fine-grained controllable change of form: the original form $\\mathbf { f } _ { i }$ is changed to reflect the form of the specific target sentence $\\mathbf { f } _ { j }$ with its own unique $\\alpha ^ { a }$ and $\\alpha ^ { b }$ while preserving the original meaning $\\mathbf { m } _ { i }$ . ",
344
+ "bbox": [
345
+ 174,
346
+ 140,
347
+ 825,
348
+ 196
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "An important caveat concerns the core assumption of the similar meaning distribution in the two corpora, which is also made in all other works reviewed in Section 2. It limits the possible use of this approach to cases where the distributions are in fact similar (i.e. parallel or at least comparable corpora are available). It does not apply to many cases that could be analyzed in terms of meaning and form. For example, books for children and scholarly papers are both registers, they have their own form (i.e. specific subsets of linguistic means and structure conventions) – but there is little overlap in the content. This would make it hard even for a professional writer to turn a research paper into a fairy tale. ",
355
+ "bbox": [
356
+ 174,
357
+ 204,
358
+ 825,
359
+ 315
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "4 METHOD DESCRIPTION ",
366
+ "text_level": 1,
367
+ "bbox": [
368
+ 176,
369
+ 362,
370
+ 398,
371
+ 377
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "Inspired by Makhzani et al. (2015), Kim et al. (2017), and Albanie et al. (2017), we propose ADNet, a new model for adversarial decomposition of text representation (Figure 1). ",
378
+ "bbox": [
379
+ 173,
380
+ 409,
381
+ 823,
382
+ 436
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "image",
388
+ "img_path": "images/3abb02e83857746da9d726ec7398bd1454ecd5ed2a8931c9876ed697853ada2e.jpg",
389
+ "image_caption": [
390
+ "Figure 1: Overview of ADNet. Encoder encodes the inputs sentences into two latent vectors m and f. The Generator takes them as the input and produces the output sentence. During the training, the Discriminator is used for an adversarial loss that forces m to do not carry any information about the form, and the M otivator is used for a motivational loss that encourages f to carry the needed information about the form. "
391
+ ],
392
+ "image_footnote": [],
393
+ "bbox": [
394
+ 174,
395
+ 455,
396
+ 473,
397
+ 590
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Our solution is based on a widely used sequence-to-sequence framework (Sutskever et al., 2014) and consists of four main parts. The encoder $E$ encodes the inputs sequence $_ { \\textbf { \\em x } }$ into two latent vectors $\\mathbf { m }$ and f which capture the meaning and the form of the sentence correspondingly. The generator $G$ then takes these two vectors as the input and produces a reconstruction of the original input sequence $\\hat { \\pmb x }$ . ",
404
+ "bbox": [
405
+ 514,
406
+ 444,
407
+ 823,
408
+ 569
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "The encoder and generator by themselves will likely not achieve the dissociation of the meaning and form. We encourage this behavior in a way similar to Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), which had an overwhelming success the past few years and have been proven to be a good way of enforcing a specific distribution and characteristics on the output of a model. ",
415
+ "bbox": [
416
+ 514,
417
+ 577,
418
+ 823,
419
+ 700
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "Inspired by the work of Albanie et al. (2017) and the principle of ”carrot and stick” (Safire, 1995), in contrast to the majority of work that promotes pure adversarial approach (Goodfel",
426
+ "bbox": [
427
+ 514,
428
+ 708,
429
+ 823,
430
+ 763
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "low et al., 2014; Shen et al., 2017; Fu et al., 2017; Zhu et al., 2017), we propose two additional components, the discriminator $D$ and the motivator $M$ to force and motivate the model to learn the dissociation of the meaning and the form. Similarly to a regular GAN model, the adversarial discriminator $D$ tries to classify the form f based on the latent meaning vector $\\mathbf { m }$ , and the encoder $E$ is penalized to make this task as hard as possible. ",
437
+ "bbox": [
438
+ 174,
439
+ 763,
440
+ 823,
441
+ 833
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Opposed to such vicious behaviour, the motivator $M$ tries to classify the form based on the latent form vector f, as it should be done, and encourages the encoder $E$ to make this task as simple as possible. We could apply the adversarial approach here as well and force the distribution of the form vectors to fit a mixture of Gaussians (in this particular case, a mixture of two Guassians) with another discriminator, as it is done by Makhzani et al. (2015), but we opted for the “dualistic” path of two complimentary forces. ",
448
+ "bbox": [
449
+ 174,
450
+ 840,
451
+ 825,
452
+ 924
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "4.1 ENCODER-DECODER ",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 174,
462
+ 103,
463
+ 359,
464
+ 118
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "Both the encoder $E$ and the generator $G$ are modeled with a neural network. Gated Recurrent Unit (GRU) (Chung et al., 2014) is used for $E$ to encode the input sentence $_ { \\textbf { \\em x } }$ into a hidden vector $\\pmb { h } = \\mathbf { G } \\mathbf { R } \\mathbf { U } ( \\pmb { x } )$ . ",
471
+ "bbox": [
472
+ 174,
473
+ 128,
474
+ 825,
475
+ 172
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "The vector $^ { h }$ is then passed through two different fully connected layers to produce the latent vectors of the form and the meaning of the input sentence: ",
482
+ "bbox": [
483
+ 171,
484
+ 178,
485
+ 823,
486
+ 207
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "equation",
492
+ "img_path": "images/0deb193caf16da6d6a73f2f3fc17dc117c64c3f456de8a4cea96a726fc6ed20e.jpg",
493
+ "text": "$$\n{ \\bf m } = \\operatorname { t a n h } ( W _ { m } h + b _ { m } ) { \\bf f } = \\operatorname { t a n h } ( W _ { f } h + b _ { f } )\n$$",
494
+ "text_format": "latex",
495
+ "bbox": [
496
+ 326,
497
+ 210,
498
+ 669,
499
+ 228
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "We use $\\theta _ { E }$ to denote the parameters of the encoder $E \\colon W _ { m } , b _ { m } , W _ { f } , b _ { f }$ , and the parameters of the GRU unit. ",
506
+ "bbox": [
507
+ 173,
508
+ 237,
509
+ 825,
510
+ 266
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "The generator $G$ is also modelled with a GRU unit. The generator takes as input the meaning vector $\\mathbf { m }$ and the form vector f, concatenates them, and passes trough a fully-connected layer to obtain a hidden vector $_ z$ that represents both meaning and form of the original input sentence: ",
517
+ "bbox": [
518
+ 173,
519
+ 272,
520
+ 825,
521
+ 315
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/ae7a560cbf35d009c903ccd101880e0426bc40be0e6a42687f1a980136116b70.jpg",
528
+ "text": "$$\nz = \\operatorname { t a n h } ( W _ { z } [ \\mathbf { m } ; \\mathbf { f } ] + b _ { m } )\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 405,
532
+ 319,
533
+ 591,
534
+ 337
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "After that, we use a GRU unit to generate the output sentence as a probability distribution over the vocabulary tokens: ",
541
+ "bbox": [
542
+ 176,
543
+ 339,
544
+ 823,
545
+ 366
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "equation",
551
+ "img_path": "images/60b5cf97e32b9c2307e0e93e84c169b7d5520a7ec2f571dbfbb0930d11558f63.jpg",
552
+ "text": "$$\np ( \\hat { \\pmb x } ) = \\prod _ { t = 1 } ^ { T } p ( \\hat { \\pmb x } _ { t } | \\boldsymbol z , \\hat { \\pmb x } _ { 1 } , \\dots , \\hat { \\pmb x } _ { t - 1 } )\n$$",
553
+ "text_format": "latex",
554
+ "bbox": [
555
+ 383,
556
+ 364,
557
+ 612,
558
+ 409
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "We use $\\theta _ { G }$ to denote the parameters of the generator $G$ : $W _ { z }$ , $b _ { m }$ , and the parameters of the used GRU. The encoder and generator are trained using the standard reconstruction loss: ",
565
+ "bbox": [
566
+ 171,
567
+ 415,
568
+ 825,
569
+ 445
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "equation",
575
+ "img_path": "images/8810459513e31102b13681a71fb72547ce03cc5c0aa9cff380ff21ef787e92ec.jpg",
576
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { r e c } } ( \\pmb { \\theta } _ { E } , \\pmb { \\theta } _ { G } ) = \\mathbb { E } _ { \\pmb { x } \\sim \\pmb { X } ^ { a } } [ - \\log p ( \\hat { \\pmb x } | \\pmb { x } ) ] + \\mathbb { E } _ { \\pmb { x } \\sim \\pmb { X } ^ { b } } [ - \\log p ( \\hat { \\pmb x } | \\pmb { x } ) ] } \\end{array}\n$$",
577
+ "text_format": "latex",
578
+ "bbox": [
579
+ 287,
580
+ 463,
581
+ 710,
582
+ 481
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "4.2 DISCRIMINATOR ",
589
+ "text_level": 1,
590
+ "bbox": [
591
+ 174,
592
+ 496,
593
+ 330,
594
+ 511
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "The representation of the meaning m produced by the encoder $E$ should not contain any information about the form f . We achieve this by using an adversarial approach. First, we train a discriminator $D$ , consisting of several fully connected layers with ELU activation function (Clevert et al., 2015) between them, to predict the form f of a sentence by its meaning vector: $\\hat { f } _ { D } = D ( { \\bf m } )$ , where $\\hat { f }$ is the score (logit) reflecting the probability of the sentence $_ { \\textbf { \\em x } }$ to belong to one of the form domains. ",
601
+ "bbox": [
602
+ 173,
603
+ 521,
604
+ 825,
605
+ 594
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Motivated by the Wasserstein GAN (Arjovsky et al., 2017), we use the following loss function instead of the standard cross-entropy: ",
612
+ "bbox": [
613
+ 173,
614
+ 599,
615
+ 823,
616
+ 628
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "equation",
622
+ "img_path": "images/74103d494cb6da9fc3f8a3f091a472533016f4cb31134796ded0580940289afd.jpg",
623
+ "text": "$$\n\\mathcal { L } _ { D } ( \\pmb { \\theta } _ { D } ) = \\mathbb { E } _ { \\pmb { x } \\sim \\pmb { X } ^ { a } } [ D ( E _ { \\mathbf { m } } ( \\pmb { x } ) ) ] - \\mathbb { E } _ { \\pmb { x } \\sim \\pmb { X } ^ { b } } [ D ( E _ { \\mathbf { m } } ( \\pmb { x } ) ) ]\n$$",
624
+ "text_format": "latex",
625
+ "bbox": [
626
+ 313,
627
+ 632,
628
+ 684,
629
+ 650
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Thus, a successful discriminator will produce negative scores $\\hat { f }$ for sentences from $X ^ { a }$ and positive scores for sentences from $X ^ { b }$ . This discriminator is then used in an adversarial manner to provide a learning signal for the encoder and force dissociation of the meaning and form by maximizing $\\mathcal { L } _ { D }$ $: \\mathcal { L } _ { \\mathrm { a d v } } ( \\pmb { \\theta } _ { E } ) = - \\lambda _ { \\mathrm { a d v } } \\mathcal { L } _ { D }$ , where $\\lambda _ { \\mathrm { a d v } }$ is a hyperparameter reflecting the strength of the adversarial loss. Note that this loss applies to the parameters of the encoder. ",
636
+ "bbox": [
637
+ 173,
638
+ 661,
639
+ 825,
640
+ 733
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "4.3 MOTIVATOR ",
647
+ "text_level": 1,
648
+ "bbox": [
649
+ 174,
650
+ 748,
651
+ 299,
652
+ 763
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Our experiments showed that it is enough to have just the discriminator $D$ and the adversarial loss $\\mathcal { L } _ { \\mathrm { a d v } }$ to force the model to dissociate the form and the meaning. However, in order to achieve a better dissociation, we propose to use a motivator $M$ (Albanie et al., 2017) and the corresponding motivational loss. Conceptually, this is the opposite of the adversarial loss, hence the name. As the discriminator $D$ , the motivator $M$ learns to classify the form f of the input sentence. However, its input is not not the meaning vector but the form vector: ${ \\hat { f } } _ { M } = M ( \\mathbf { f } )$ . ",
659
+ "bbox": [
660
+ 173,
661
+ 773,
662
+ 825,
663
+ 862
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "The motivator has the same architecture as the discriminator, and the same loss function. While the adversarial loss forces the encoder $E$ to produce a meaning vector m with no information about the form f , the motivational loss encourages $E$ to encode this information in the form vector by minimizing ${ \\mathcal { L } } _ { M }$ ${ \\bf \\chi } _ { \\ / t } \\colon \\mathcal { L } _ { \\mathrm { m o t i v } } ( \\pmb { \\theta } _ { E } ) = \\lambda _ { \\mathrm { m o t i v } } \\mathcal { L } _ { \\ / M }$ . ",
670
+ "bbox": [
671
+ 174,
672
+ 867,
673
+ 823,
674
+ 925
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "4.4 TRAINING PROCEDURE ",
681
+ "text_level": 1,
682
+ "bbox": [
683
+ 174,
684
+ 103,
685
+ 375,
686
+ 117
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "The overall training procedure follows the methods for training GANs (Goodfellow et al., 2014; Arjovsky et al., 2017) and consists of two stages: training the discriminator $D$ and the motivator $M$ , and training the encoder $E$ and the generator $G$ . ",
693
+ "bbox": [
694
+ 174,
695
+ 128,
696
+ 823,
697
+ 171
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "In contrast to Arjovsky et al. (2017), we do not train the $D$ and $M$ more than the $E$ and the $G$ . In our experiments we found that simple training in two stages is enough to achieve dissociation of the meaning and the form. Encoder and generator are trained with the following loss function that combines reconstruction loss with the losses from the discriminator and the motivator: ",
704
+ "bbox": [
705
+ 174,
706
+ 178,
707
+ 825,
708
+ 234
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "img_path": "images/0f9ae7dacfb13a6ce4f138bbdd554f89aea0ca4c9ec776ed1fbdc79d0c83fb7c.jpg",
715
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { t o t a l } } ( \\theta _ { E } , \\theta _ { G } ) = \\mathcal { L } _ { \\mathrm { r e c } } + \\mathcal { L } _ { \\mathrm { a d v } } + \\mathcal { L } _ { \\mathrm { m o t i v } }\n$$",
716
+ "text_format": "latex",
717
+ "bbox": [
718
+ 374,
719
+ 242,
720
+ 622,
721
+ 260
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "5 EXPERIMENTAL SETUP ",
728
+ "text_level": 1,
729
+ "bbox": [
730
+ 174,
731
+ 279,
732
+ 397,
733
+ 294
734
+ ],
735
+ "page_idx": 5
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "5.1 EVALUATION ",
740
+ "text_level": 1,
741
+ "bbox": [
742
+ 174,
743
+ 310,
744
+ 307,
745
+ 324
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Similarly to the evaluation of style transfer in CV (Isola et al., 2017), evaluation of this task is difficult. We follow the approach of Isola et al. (2017); Shen et al. (2017) and recently proposed by Fu et al. (2017) methods of evaluation of “transfer strength” and “content preservation”. The authors showed the proposed automatic metrics to a large degree correlate with human judgment and can serve as a proxy. Below we give an overview of these metrics. ",
752
+ "bbox": [
753
+ 174,
754
+ 335,
755
+ 825,
756
+ 406
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "Transfer Strength. The goal of this metric is to capture whether the form has been changed successfully. To do that, a classifier $C$ is trained on the two corpora, $X ^ { a }$ and $X ^ { b }$ to recognize the linguistic “form” typical of each of them. After that, a sentence the form/meaning of which was changed is passed to the classifier. The overall accuracy reflects the degree of success of changing the form/meaning. This approach is widely used in CV (Isola et al., 2017), and was applied in NLP as well (Shen et al., 2017). ",
763
+ "bbox": [
764
+ 174,
765
+ 421,
766
+ 825,
767
+ 506
768
+ ],
769
+ "page_idx": 5
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "In our experiments we used a GRU unit followed by four fully-connected layers with ELU activation functions between them as the classifier. ",
774
+ "bbox": [
775
+ 173,
776
+ 512,
777
+ 823,
778
+ 541
779
+ ],
780
+ "page_idx": 5
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Content preservation Note that transfer strength by itself does not capture the overall quality of a changed sentence. A extremely overfitted model that produces the same, the most characteristic sentence of one corpus all the time would have a high score according to this metric. Thus, we need to measure how much of the meaning was preserved while changing the form. To do that, Fu et al. (2017) proposed to use a cosine similarity based metric using pretrained word embeddings. First, a sentence embedding is computed by concatenation of max, mean, and average pooling over the timesteps: ",
785
+ "bbox": [
786
+ 173,
787
+ 556,
788
+ 825,
789
+ 654
790
+ ],
791
+ "page_idx": 5
792
+ },
793
+ {
794
+ "type": "equation",
795
+ "img_path": "images/aa6b3cce295505e9e1362bbb90560bbaca4d0e390facec904ab9a870af5729a0.jpg",
796
+ "text": "$$\n\\pmb { v } = [ \\operatorname* { m a x } ( \\pmb { v } _ { 1 } , \\dots , \\pmb { v } _ { T } ) ; \\operatorname* { m i n } ( \\pmb { v } _ { 1 } , \\dots , \\pmb { v } _ { T } ) ; \\operatorname* { m e a n } ( \\pmb { v } _ { 1 } , \\dots , \\pmb { v } _ { T } ) ]\n$$",
797
+ "text_format": "latex",
798
+ "bbox": [
799
+ 294,
800
+ 652,
801
+ 704,
802
+ 670
803
+ ],
804
+ "page_idx": 5
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Next, the cosine similarity score $s _ { i }$ between the embedding $\\pmb { v } _ { i } ^ { s }$ of the original source sentence and the target sentence with the changed form $\\mathbf { \\Delta } \\mathbf { \\vec { v } } _ { i } ^ { t }$ is computed, and the scores across the dataset are averaged to obtain the total score: ",
809
+ "bbox": [
810
+ 174,
811
+ 680,
812
+ 825,
813
+ 723
814
+ ],
815
+ "page_idx": 5
816
+ },
817
+ {
818
+ "type": "equation",
819
+ "img_path": "images/26568db59e4c4e1fd47436a124b10e742b95274a340c236bb4c228029957fc3c.jpg",
820
+ "text": "$$\n\\mathbf { s } = \\frac { 1 } { 2 } \\left[ \\frac { 1 } { | X ^ { a } | } \\sum _ { i = 1 } ^ { | X ^ { a } | } \\mathrm { s } _ { i } + \\frac { 1 } { | X ^ { b } | } \\sum _ { i = 1 } ^ { | X ^ { b } | } \\mathrm { s } _ { i } \\right]\n$$",
821
+ "text_format": "latex",
822
+ "bbox": [
823
+ 372,
824
+ 729,
825
+ 624,
826
+ 781
827
+ ],
828
+ "page_idx": 5
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "5.1.1 CONTINUOUS FORM ",
833
+ "text_level": 1,
834
+ "bbox": [
835
+ 174,
836
+ 794,
837
+ 369,
838
+ 809
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "The metrics described above treat the form as a categorical (in most cases, even binary) variable. This was not a problem in previous work since the change of form could be done by just inverting the form vector. Our work, in contrast, treats the form as a continuous variable, and, therefore, we cannot just use the proposed metrics directly. To enable a fair comparison, we propose the following procedure. ",
845
+ "bbox": [
846
+ 174,
847
+ 818,
848
+ 825,
849
+ 888
850
+ ],
851
+ "page_idx": 5
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "For each sentence $s _ { s } ^ { a }$ in the test set from the corpus $X ^ { a }$ we sample $k = 1 0$ random sentence from the corpus $X ^ { b }$ of the opposite form. After that, we encode them into the meaning $m _ { i }$ and form $f _ { i }$ vectors, and average the form vectors to obtain a single form vector $\\begin{array} { r } { { f } _ { \\mathrm { a v g } } = \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } { f } _ { i } } \\end{array}$ . We then generate a new sentence with its original meaning vector $m _ { s }$ and the resulting form vector $\\pmb { f } _ { \\mathrm { a v g } }$ , and use it for evalation. This process enables a fair comparison with the previous works that treat form as a binary variable. ",
856
+ "bbox": [
857
+ 173,
858
+ 895,
859
+ 823,
860
+ 924
861
+ ],
862
+ "page_idx": 5
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "",
867
+ "bbox": [
868
+ 174,
869
+ 101,
870
+ 825,
871
+ 160
872
+ ],
873
+ "page_idx": 6
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "5.2 DATASETS ",
878
+ "text_level": 1,
879
+ "bbox": [
880
+ 174,
881
+ 176,
882
+ 287,
883
+ 190
884
+ ],
885
+ "page_idx": 6
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "We performed an extensive evaluation of the proposed method on several dataset that reflect different changes of meaning, form, or specific aspects of meaning, such as sentiment polarity. ",
890
+ "bbox": [
891
+ 173,
892
+ 202,
893
+ 823,
894
+ 231
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Changing form: register This experiment is conducted with a dataset of titles of scientific papers and news articles published by Fu et al. (2017). This dataset (referred to as “Headlines”) contains titles of scientific articles crawled from online digital libraries, such as “ACM Digital Library” and “arXiv”. The titles of the news articles are taken from the “News Aggregator Data Set” from UCI Machine Learning Repository (Dheeru & Karra Taniskidou, 2017) ",
901
+ "bbox": [
902
+ 174,
903
+ 246,
904
+ 825,
905
+ 315
906
+ ],
907
+ "page_idx": 6
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Changing form: language diachrony Diachronic language change is explored with the dataset composed by Xu et al. (2012). It includes the texts of 17 plays by William Shakespeare in the original Early Modern English, and their translations into contemporary English. We randomly permuted all sentences from all plays and sampled the training, validation, and test sets. Note that this is the smallest dataset in our experiments. ",
912
+ "bbox": [
913
+ 174,
914
+ 330,
915
+ 825,
916
+ 400
917
+ ],
918
+ "page_idx": 6
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Previous work on style transfer for text also included the experiments with changing sentiment polarity (Shen et al., 2017; Fu et al., 2017). We do not report the experiments with sentiment data, since the change in sentiment polarity corresponds to a change in a specific aspect of meaning, rather than form. We therefore believe the comparison with these data would not be instructive. ",
923
+ "bbox": [
924
+ 174,
925
+ 406,
926
+ 825,
927
+ 463
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "6 RESULTS AND DISCUSSION ",
934
+ "text_level": 1,
935
+ "bbox": [
936
+ 176,
937
+ 483,
938
+ 429,
939
+ 498
940
+ ],
941
+ "page_idx": 6
942
+ },
943
+ {
944
+ "type": "image",
945
+ "img_path": "images/345122e7aea7fa589082eadec03c850ada45c1d27c374c52dc7d77b4925102de.jpg",
946
+ "image_caption": [
947
+ "Figure 2: Transfer strength vs Content preservation (see subsection 5.1) for different combination of the size of the meaning and form vectors. Each point is labeled with ”¡meaning vector size¿, ¡form vector size¿”. "
948
+ ],
949
+ "image_footnote": [],
950
+ "bbox": [
951
+ 209,
952
+ 525,
953
+ 787,
954
+ 699
955
+ ],
956
+ "page_idx": 6
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Probably, the most recent and similar to our work is the model proposed by Fu et al. (2017), in particular the “style-embedding” model. We implemented this model to provide a baseline for comparison. ",
961
+ "bbox": [
962
+ 173,
963
+ 770,
964
+ 825,
965
+ 811
966
+ ],
967
+ "page_idx": 6
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "The classifier used in the transfer strength metric achieves very high accuracy (0.832 and 0.99 for the Shakespeare and Headlines datasets correspondingly). These results concur with the results of Shen et al. (2017) and Fu et al. (2017), and show that the two forms in the corpora are significantly different. ",
972
+ "bbox": [
973
+ 174,
974
+ 819,
975
+ 825,
976
+ 875
977
+ ],
978
+ "page_idx": 6
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Following Fu et al. (2017), we show the result of different configuration of the size of the form and meaning vectors on Figure 2. Namely, we report combinations of 64 and 256-dimensional vectors. Note that the sizes of the form vector are important. The larger is the form vector, the higher is the transfer strength, but smaller is content preservation. This is consistent with Fu et al. (2017), where they observed a similar behaviour. ",
983
+ "bbox": [
984
+ 176,
985
+ 881,
986
+ 823,
987
+ 924
988
+ ],
989
+ "page_idx": 6
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "",
994
+ "bbox": [
995
+ 173,
996
+ 103,
997
+ 823,
998
+ 132
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "It is clear that the proposed method achieves significantly better transfer strength then the previously proposed model. It also has a lower content preservation score, which means that it repeats fewer exact words from the source sentence. Note that a low transfer strength and very high (0.9) content ˜ preservation score means that the model was not able to successfully learn to transfer the form and the target sentence is almost identical to the source sentence. The Shakespeare dataset is the hardest for the model in terms of transfer strength, probably because it is the smallest dataset, but the proposed method performs consistently well in transfer of both form and meaning and, in contrast to the baseline. ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 138,
1008
+ 825,
1009
+ 250
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Fluency of generated sentences Note that there is no guarantee that the generated sentences would be coherent after switching the form vector. In order to estimate how this switch affects the fluency of generated sentences, we trained a language model on the Shakespeare dataset and calculated the perplexity of the generated sentences using the original form vector and the average of form vectors of $k$ random sentences from the opposite style (see subsubsection 5.1.1). While the perplexity of such sentences does go up, this change is not big (6.89 vs 9.74). ",
1016
+ "bbox": [
1017
+ 174,
1018
+ 267,
1019
+ 825,
1020
+ 351
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "6.1 IMPACT OF THE MOTIVATIONAL TRAINING ",
1027
+ "text_level": 1,
1028
+ "bbox": [
1029
+ 174,
1030
+ 371,
1031
+ 506,
1032
+ 383
1033
+ ],
1034
+ "page_idx": 7
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "To investigate the impact of the motivator, we visualized form and meaning embeddings of 1000 random samples from the Headlines dataset using t-SNE algorithm (Van Der Maaten, 2014) with the Multicore-TSNE library (Ulyanov, 2016). The result is presented in Figure 3. ",
1039
+ "bbox": [
1040
+ 174,
1041
+ 396,
1042
+ 825,
1043
+ 438
1044
+ ],
1045
+ "page_idx": 7
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "There are three important observations. First, there is no clear separation in the meaning embeddings, which means that any accurate form transfer is due to the form embeddings, and the dissociation of form and meaning was successful. ",
1050
+ "bbox": [
1051
+ 174,
1052
+ 445,
1053
+ 823,
1054
+ 487
1055
+ ],
1056
+ "page_idx": 7
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Second, even without the motivator the model is able to produce the form embeddings that are clustered into two group. Recall from section 4 that without the motivational loss there are no forces that influence the form embeddings, but nevertheless the model learns to separate them. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 494,
1064
+ 825,
1065
+ 536
1066
+ ],
1067
+ "page_idx": 7
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "However, the separation effect is much more pronounced in the presence of motivator. This explains why the motivator consistently improved transfer strength of ADNet, as shown in Figure 2. ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 544,
1075
+ 825,
1076
+ 573
1077
+ ],
1078
+ "page_idx": 7
1079
+ },
1080
+ {
1081
+ "type": "image",
1082
+ "img_path": "images/177a04829132ea7eb43a11912ab21cf3b18fabd8252eb4e7e976664a6e7b58b0.jpg",
1083
+ "image_caption": [
1084
+ "Figure 3: t-SNE visualization of the form and meaning embeddings of 1000 random sentences. Green point represent sentences form news headlines, and red points represent titles of scientific articles. "
1085
+ ],
1086
+ "image_footnote": [],
1087
+ "bbox": [
1088
+ 186,
1089
+ 589,
1090
+ 813,
1091
+ 731
1092
+ ],
1093
+ "page_idx": 7
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "6.2 QUALITATIVE EVALUATION ",
1098
+ "text_level": 1,
1099
+ "bbox": [
1100
+ 176,
1101
+ 814,
1102
+ 403,
1103
+ 828
1104
+ ],
1105
+ "page_idx": 7
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Table 1 and Table 2 show several examples of the successful form/meaning transfer achieved by ADNet. Table 1 presentes the results of an experiment that to some extent replicates the approach taken by the authors who treat linguistic form as a binary variable (Shen et al., 2017; Fu et al., 2017). The sentences the original Shakespeare plays were averaged to get the “typical” Early Modern English form vector. This averaged vector was used to decode a sentence from the modern English translation back into the original. The same was done in the opposite direction. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 840,
1113
+ 825,
1114
+ 924
1115
+ ],
1116
+ "page_idx": 7
1117
+ },
1118
+ {
1119
+ "type": "table",
1120
+ "img_path": "images/48fab46f9e741a871d5a244a76c9f4e66d510443109411ad64023b2ea1d9ac5a.jpg",
1121
+ "table_caption": [
1122
+ "Table 1: Decoding of the source sentence from Early Modern English (EME) into contemporary English (CE), and vice versa. "
1123
+ ],
1124
+ "table_footnote": [],
1125
+ "table_body": "<table><tr><td>Aye,sir. (EME)</td><td>→ Yes,sir. (CE)</td></tr><tr><td>Fare thee well, my lord (EME)</td><td>Fare you well, my lord (CE)</td></tr><tr><td>This guy will tell us everything. (CE)</td><td>This man will tell us everything. (EME)</td></tr><tr><td>Ive done no more to caesar than you will do to me.(CE)</td><td>Ihave done no more to caesar than,you shall do to me.(EME)</td></tr></table>",
1126
+ "bbox": [
1127
+ 181,
1128
+ 101,
1129
+ 816,
1130
+ 150
1131
+ ],
1132
+ "page_idx": 8
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Table 2 illustrates the possibilities of ADNet on fine-grained transfer applied to the change of register. We encoded two sentences in different registers from the Headlines dataset to produce form and meaning embeddings, and then we decoded the first sentence with the meaning embedding of the second, and vice versa. As can be seen from Table 2, the model correctly captures the meaning of sentences and decodes them using the form of the source sentences. Note how the model preserves specific words and the structure of the source sentence. In particular, note how in the first example, the model decided to put the colon after the “crisis management”, as the source form sentence has this syntactic structure (“A review:”). This is not possible in the previously proposed models, as they treat form as just a binary variable. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 218,
1140
+ 825,
1141
+ 344
1142
+ ],
1143
+ "page_idx": 8
1144
+ },
1145
+ {
1146
+ "type": "table",
1147
+ "img_path": "images/189a9802191980e6625dd56d88134683cf1e22672a45fcbea58d6eadb8c9badc.jpg",
1148
+ "table_caption": [],
1149
+ "table_footnote": [],
1150
+ "table_body": "<table><tr><td>A review: detection techniques for LTE system Situation management knowledge from social media</td><td>→Crisis management: media practices in telecommunication management →Areview study against intelligence internet</td></tr><tr><td>Security flaw could notaffect digital devices,experts say Semantic approach to event processing</td><td>→Semantic approach approach: current multimedia networks as modeling processes →Security flaw to verifyleaks</td></tr></table>",
1151
+ "bbox": [
1152
+ 181,
1153
+ 361,
1154
+ 816,
1155
+ 406
1156
+ ],
1157
+ "page_idx": 8
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Table 2: Flipping the meaning and the form embeddings of two sentence from different registers. Note the use of the colon in the first example, and the use of the “to”-constructions in the second example, consistent with the form of the source sentences. ",
1162
+ "bbox": [
1163
+ 174,
1164
+ 419,
1165
+ 823,
1166
+ 460
1167
+ ],
1168
+ "page_idx": 8
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "6.3 PERFORMANCE OF MEANING EMBEDDINGS ON DOWNSTREAM TASKS ",
1173
+ "text_level": 1,
1174
+ "bbox": [
1175
+ 176,
1176
+ 494,
1177
+ 691,
1178
+ 507
1179
+ ],
1180
+ "page_idx": 8
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "We conducted some experiments to test the assumption that the derived meaning embeddings should improve performance on downstream tasks that require understanding of the meaning of the sentences regardless of their form. We evaluated embeddings produced by the ADNet, trained in the Headlines dataset, on a task of paraphrase detection. We used the SentEval toolkit (Conneau et al., 2017) and the Microsoft Research Paraphrase Corpus (Dolan et al., 2004). The F1 scores on this task for different models are presented in Table 3. Note that all models, except InferSent, are unsupervised. The InferSent model was trained on a big SNLI dataset, consisting of more than 500,000 manually annotated pairs. ADNet achieves the the highest score among the unsupervised systems and outperforms the regular sequence-to-sequence autoencoder with a large gap. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 520,
1188
+ 825,
1189
+ 645
1190
+ ],
1191
+ "page_idx": 8
1192
+ },
1193
+ {
1194
+ "type": "table",
1195
+ "img_path": "images/ab266bb82c389d88561ac65cd20daea25d30d98240a874e61f8c0cf0bba5b08d.jpg",
1196
+ "table_caption": [
1197
+ "Table 3: F1 scores on the task of paraphrase detection using the SentEval toolkit (Conneau et al., 2017) "
1198
+ ],
1199
+ "table_footnote": [],
1200
+ "table_body": "<table><tr><td>BoW</td><td>Seq2Seq</td><td>InferSent</td><td>Fu et al. (2017)</td><td>ADNet</td></tr><tr><td>80.82</td><td>74.68</td><td>83.17</td><td>78.88</td><td>81.38</td></tr></table>",
1201
+ "bbox": [
1202
+ 305,
1203
+ 661,
1204
+ 692,
1205
+ 705
1206
+ ],
1207
+ "page_idx": 8
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "7 CONCLUSION ",
1212
+ "text_level": 1,
1213
+ "bbox": [
1214
+ 176,
1215
+ 779,
1216
+ 318,
1217
+ 795
1218
+ ],
1219
+ "page_idx": 8
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "In this paper, we presented ADNet, a new model that performs adversarial decomposition of text representation. In contrast to previous work, it does not require a parallel training corpus and works directly on hidden representations of sentences. Most importantly, is does not treat the form as a binary variable (as done in most previously proposed models), enabling a fine-grained change of the form of sentences or specific aspects of meaning. We evaluate ADNet on two tasks: the shift of language register and diachronic language change. Our solution achieves superior results, and t-SNE visualizations of the learned meaning and style embeddings illustrate that the proposed motivational loss leads to significantly better separation of the form embeddings. ",
1224
+ "bbox": [
1225
+ 174,
1226
+ 811,
1227
+ 825,
1228
+ 924
1229
+ ],
1230
+ "page_idx": 8
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "REFERENCES ",
1235
+ "text_level": 1,
1236
+ "bbox": [
1237
+ 176,
1238
+ 103,
1239
+ 287,
1240
+ 117
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Samuel Albanie, Sebastien Ehrhardt, and Jo ´ ao F Henriques. Stopping gan violence: Generative ˜ unadversarial networks. arXiv preprint arXiv:1703.02528, 2017. ",
1247
+ "bbox": [
1248
+ 174,
1249
+ 126,
1250
+ 823,
1251
+ 155
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. ´ arXiv preprint arXiv:1701.07875, 2017. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 162,
1261
+ 820,
1262
+ 191
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Sanjeev Arora, Yingyu Liang, and Tengyu Ma. A simple but tough-to-beat baseline for sentence embeddings. In International Conference on Learning Representation, 2017. ",
1269
+ "bbox": [
1270
+ 174,
1271
+ 199,
1272
+ 820,
1273
+ 229
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
1280
+ "bbox": [
1281
+ 174,
1282
+ 237,
1283
+ 823,
1284
+ 267
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Keith Carlson, Allen Riddell, and Daniel Rockmore. Zero-shot style transfer in text using recurrent neural networks. arXiv preprint arXiv:1711.04731, 2017. ",
1291
+ "bbox": [
1292
+ 173,
1293
+ 275,
1294
+ 823,
1295
+ 304
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, et al. Universal sentence encoder. arXiv preprint arXiv:1803.11175, 2018. ",
1302
+ "bbox": [
1303
+ 174,
1304
+ 311,
1305
+ 823,
1306
+ 354
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
1313
+ "bbox": [
1314
+ 171,
1315
+ 363,
1316
+ 823,
1317
+ 393
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015. ",
1324
+ "bbox": [
1325
+ 171,
1326
+ 400,
1327
+ 823,
1328
+ 430
1329
+ ],
1330
+ "page_idx": 9
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "Alexis Conneau, Douwe Kiela, Holger Schwenk, Lo¨ıc Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 670–680, 2017. ",
1335
+ "bbox": [
1336
+ 174,
1337
+ 436,
1338
+ 823,
1339
+ 494
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Ferdinand de Saussure. Course in General Linguistics. New York : Philosophical Library, 1959. URL http://archive.org/details/courseingenerall00saus. ",
1346
+ "bbox": [
1347
+ 171,
1348
+ 502,
1349
+ 823,
1350
+ 534
1351
+ ],
1352
+ "page_idx": 9
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Dua Dheeru and Efi Karra Taniskidou. UCI machine learning repository, 2017. URL http: //archive.ics.uci.edu/ml. ",
1357
+ "bbox": [
1358
+ 173,
1359
+ 540,
1360
+ 821,
1361
+ 570
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Bill Dolan, Chris Quirk, and Chris Brockett. Unsupervised construction of large paraphrase corpora: Exploiting massively parallel news sources. In Proceedings of the 20th international conference on Computational Linguistics, pp. 350. Association for Computational Linguistics, 2004. ",
1368
+ "bbox": [
1369
+ 176,
1370
+ 578,
1371
+ 823,
1372
+ 622
1373
+ ],
1374
+ "page_idx": 9
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "Jessica Ficler and Yoav Goldberg. Controlling linguistic style aspects in neural language generation. In Proceedings of the Workshop on Stylistic Variation, pp. 94–104, 2017. ",
1379
+ "bbox": [
1380
+ 169,
1381
+ 628,
1382
+ 820,
1383
+ 659
1384
+ ],
1385
+ "page_idx": 9
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Zhenxin Fu, Xiaoye Tan, Nanyun Peng, Dongyan Zhao, and Rui Yan. Style transfer in text: Exploration and evaluation. arXiv preprint arXiv:1711.06861, 2017. ",
1390
+ "bbox": [
1391
+ 171,
1392
+ 666,
1393
+ 823,
1394
+ 695
1395
+ ],
1396
+ "page_idx": 9
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1401
+ "bbox": [
1402
+ 174,
1403
+ 704,
1404
+ 823,
1405
+ 747
1406
+ ],
1407
+ "page_idx": 9
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 140–149, 2016. ",
1412
+ "bbox": [
1413
+ 174,
1414
+ 755,
1415
+ 823,
1416
+ 799
1417
+ ],
1418
+ "page_idx": 9
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "M. A. K. Halliday, A. McIntosh, and P. Stevens. The Linguistic Sciences and Language Teaching. Longmans, Green and Co., London, 1968. ",
1423
+ "bbox": [
1424
+ 176,
1425
+ 806,
1426
+ 821,
1427
+ 835
1428
+ ],
1429
+ "page_idx": 9
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In International Conference on Machine Learning, pp. 1587–1596, 2017. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 843,
1437
+ 821,
1438
+ 873
1439
+ ],
1440
+ "page_idx": 9
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1125–1134, 2017. ",
1445
+ "bbox": [
1446
+ 174,
1447
+ 882,
1448
+ 825,
1449
+ 924
1450
+ ],
1451
+ "page_idx": 9
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "Harsh Jhamtani, Varun Gangal, Eduard Hovy, and Eric Nyberg. Shakespearizing modern language using copy-enriched sequence-to-sequence models. arXiv preprint arXiv:1707.01161, 2017. ",
1456
+ "bbox": [
1457
+ 173,
1458
+ 103,
1459
+ 823,
1460
+ 133
1461
+ ],
1462
+ "page_idx": 10
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Yoon Kim, Kelly Zhang, Alexander M Rush, Yann LeCun, et al. Adversarially regularized autoencoders for generating discrete structures. arXiv preprint arXiv:1706.04223, 2017. ",
1467
+ "bbox": [
1468
+ 173,
1469
+ 140,
1470
+ 820,
1471
+ 170
1472
+ ],
1473
+ "page_idx": 10
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1478
+ "bbox": [
1479
+ 173,
1480
+ 176,
1481
+ 823,
1482
+ 205
1483
+ ],
1484
+ "page_idx": 10
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Alex M Lamb, Anirudh Goyal ALIAS PARTH GOYAL, Ying Zhang, Saizheng Zhang, Aaron C Courville, and Yoshua Bengio. Professor forcing: A new algorithm for training recurrent networks. In Advances In Neural Information Processing Systems, pp. 4601–4609, 2016. ",
1489
+ "bbox": [
1490
+ 176,
1491
+ 213,
1492
+ 823,
1493
+ 257
1494
+ ],
1495
+ "page_idx": 10
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Jiwei Li, Michel Galley, Chris Brockett, Georgios Spithourakis, Jianfeng Gao, and Bill Dolan. A persona-based neural conversation model. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 994–1003, 2016. ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 263,
1503
+ 825,
1504
+ 320
1505
+ ],
1506
+ "page_idx": 10
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Zachary C Lipton, Sharad Vikram, and Julian McAuley. Generative concatenative nets jointly learn to write and classify reviews. arXiv preprint arXiv:1511.03683, 2015. ",
1511
+ "bbox": [
1512
+ 169,
1513
+ 328,
1514
+ 823,
1515
+ 358
1516
+ ],
1517
+ "page_idx": 10
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. arXiv preprint arXiv:1803.02893, 2018. ",
1522
+ "bbox": [
1523
+ 171,
1524
+ 366,
1525
+ 823,
1526
+ 395
1527
+ ],
1528
+ "page_idx": 10
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015. ",
1533
+ "bbox": [
1534
+ 173,
1535
+ 401,
1536
+ 823,
1537
+ 431
1538
+ ],
1539
+ "page_idx": 10
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
1544
+ "bbox": [
1545
+ 173,
1546
+ 439,
1547
+ 823,
1548
+ 468
1549
+ ],
1550
+ "page_idx": 10
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "Jonas Mueller, David Gifford, and Tommi Jaakkola. Sequence to better sequence: continuous revision of combinatorial structures. In International Conference on Machine Learning, pp. 2536– 2544, 2017. ",
1555
+ "bbox": [
1556
+ 173,
1557
+ 476,
1558
+ 821,
1559
+ 518
1560
+ ],
1561
+ "page_idx": 10
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "Nikita Nangia, Adina Williams, Angeliki Lazaridou, and Samuel R Bowman. The repeval 2017 shared task: Multi-genre natural language inference with sentence representations. arXiv preprint arXiv:1707.08172, 2017. ",
1566
+ "bbox": [
1567
+ 171,
1568
+ 526,
1569
+ 823,
1570
+ 569
1571
+ ],
1572
+ "page_idx": 10
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting on association for computational linguistics, pp. 311–318. Association for Computational Linguistics, 2002. ",
1577
+ "bbox": [
1578
+ 174,
1579
+ 577,
1580
+ 823,
1581
+ 621
1582
+ ],
1583
+ "page_idx": 10
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "Peter Potash, Alexey Romanov, and Anna Rumshisky. Ghostwriter: using an lstm for automatic rap lyric generation. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 1919–1924, 2015. ",
1588
+ "bbox": [
1589
+ 174,
1590
+ 627,
1591
+ 823,
1592
+ 671
1593
+ ],
1594
+ "page_idx": 10
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Peter Potash, Alexey Romanov, and Anna Rumshisky. Here’s my point: Joint pointer architecture for argument mining. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1364–1373, 2017. ",
1599
+ "bbox": [
1600
+ 174,
1601
+ 679,
1602
+ 821,
1603
+ 722
1604
+ ],
1605
+ "page_idx": 10
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "William Safire. On Language Gotcha! Gang Strikes Again, 1995. URL https://www.nytimes.com/1995/12/31/magazine/ on-language-gotcha-gang-strikes-again.html. ",
1610
+ "bbox": [
1611
+ 176,
1612
+ 728,
1613
+ 821,
1614
+ 772
1615
+ ],
1616
+ "page_idx": 10
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi Jaakkola. Style transfer from non-parallel text by cross-alignment. In Advances in Neural Information Processing Systems, pp. 6833–6844, 2017. ",
1621
+ "bbox": [
1622
+ 174,
1623
+ 780,
1624
+ 823,
1625
+ 821
1626
+ ],
1627
+ "page_idx": 10
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "Efstathios Stamatatos. Authorship attribution using text distortion. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, volume 1, pp. 1138–1149, 2017. ",
1632
+ "bbox": [
1633
+ 178,
1634
+ 830,
1635
+ 823,
1636
+ 875
1637
+ ],
1638
+ "page_idx": 10
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "Sandeep Subramanian, Adam Trischler, Yoshua Bengio, and Christopher J Pal. Learning general purpose distributed sentence representations via large scale multi-task learning. arXiv preprint arXiv:1804.00079, 2018. ",
1643
+ "bbox": [
1644
+ 174,
1645
+ 881,
1646
+ 825,
1647
+ 924
1648
+ ],
1649
+ "page_idx": 10
1650
+ },
1651
+ {
1652
+ "type": "text",
1653
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014. \nJian Tang, Yifan Yang, Sam Carton, Ming Zhang, and Qiaozhu Mei. Context-aware natural language generation with recurrent neural networks. arXiv preprint arXiv:1611.09900, 2016. \nDmitry Ulyanov. Multicore-tsne. https://github.com/DmitryUlyanov/ Multicore-TSNE, 2016. \nLaurens Van Der Maaten. Accelerating t-sne using tree-based algorithms. Journal of machine learning research, 15(1):3221–3245, 2014. \nAshish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 6000–6010, 2017. \nOriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pp. 2692–2700, 2015. \nWei Xu, Alan Ritter, Bill Dolan, Ralph Grishman, and Colin Cherry. Paraphrasing for style. Proceedings of COLING 2012, pp. 2899–2914, 2012. \nJun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2223–2232, 2017. ",
1654
+ "bbox": [
1655
+ 169,
1656
+ 102,
1657
+ 826,
1658
+ 425
1659
+ ],
1660
+ "page_idx": 11
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "A MULTIPLE FORMS AND STYLISTIC SIMILARITIES ",
1665
+ "text_level": 1,
1666
+ "bbox": [
1667
+ 174,
1668
+ 452,
1669
+ 612,
1670
+ 467
1671
+ ],
1672
+ "page_idx": 11
1673
+ },
1674
+ {
1675
+ "type": "image",
1676
+ "img_path": "images/0e733eb345569ac00898384b916d68adac3771ae1b15c0710524723af5f8dfcc.jpg",
1677
+ "image_caption": [
1678
+ "Figure 4: t-SNE visualization of the form and meaning embeddings. Each color corresponds to a different author. "
1679
+ ],
1680
+ "image_footnote": [],
1681
+ "bbox": [
1682
+ 258,
1683
+ 483,
1684
+ 743,
1685
+ 628
1686
+ ],
1687
+ "page_idx": 11
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "In order to go beyond just two different forms, we experimented with training the model on a set of literature novels from six different authors from Project Gutenberg2 written in two different time periods. A t-SNE visualization of the resulting meaning and form embeddings is presented in Figure 4. Note how form embeddings create a six-pointed star. After further examination, we observed that common phrases (for example, “Good morning” or “Hello!”) were embedded into the center of the star, whereas the most specific sentences from a given author were placed into the rays of the star. In particular, some sentences included character names, thus further research is required to mitigate this problem. Stamatatos (2017) provides a promising direction for solving this. ",
1692
+ "bbox": [
1693
+ 173,
1694
+ 686,
1695
+ 825,
1696
+ 799
1697
+ ],
1698
+ "page_idx": 11
1699
+ }
1700
+ ]
parse/train/SJzwb2RcK7/SJzwb2RcK7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJzwb2RcK7/SJzwb2RcK7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygXPaEYvH/SygXPaEYvH.md ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VL-BERT: PRE-TRAINING OF GENERIC VISUALLINGUISTIC REPRESENTATIONS
2
+
3
+ Weijie $\mathbf { S u } ^ { 1 , 2 * }$ , Xizhou $\mathbf { Z } \mathbf { h } \mathbf { u } ^ { 1 , 2 * }$ , Yue $\mathbf { C a o ^ { 2 } }$ , Bin $\mathbf { L i } ^ { 1 }$ , Lewei $\mathbf { L } \mathbf { u } ^ { 2 }$ , Furu Wei2, Jifeng Dai2†
4
+
5
+ 1University of Science and Technology of China
6
+ 2Microsoft Research Asia
7
+ {jackroos,ezra0408}@mail.ustc.edu.cn, binli@ustc.edu.cn
8
+ {yuecao,lewlu,fuwei,jifdai}@microsoft.com
9
+
10
+ # ABSTRACT
11
+
12
+ We introduce a new pre-trainable generic representation for visual-linguistic tasks, called Visual-Linguistic BERT (VL-BERT for short). VL-BERT adopts the simple yet powerful Transformer model as the backbone, and extends it to take both visual and linguistic embedded features as input. In it, each element of the input is either of a word from the input sentence, or a region-of-interest (RoI) from the input image. It is designed to fit for most of the visual-linguistic downstream tasks. To better exploit the generic representation, we pre-train VL-BERT on the massive-scale Conceptual Captions dataset, together with text-only corpus. Extensive empirical analysis demonstrates that the pre-training procedure can better align the visual-linguistic clues and benefit the downstream tasks, such as visual commonsense reasoning, visual question answering and referring expression comprehension. It is worth noting that VL-BERT achieved the first place of single model on the leaderboard of the VCR benchmark. Code is released at https://github.com/jackroos/VL-BERT.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Pre-training of generic feature representations applicable to a variety of tasks in a domain is a hallmark of the success of deep networks. Firstly in computer vision, backbone networks designed for and pre-trained on ImageNet (Deng et al., 2009) classification are found to be effective for improving numerous image recognition tasks. Recently in natural language processing (NLP), Transformer networks (Vaswani et al., 2017) pre-trained with “masked language model” (MLM) objective (Devlin et al., 2018) on large language corpus excel at a variety of NLP tasks.
17
+
18
+ Meanwhile, for tasks at the intersection of vision and language, such as image captioning (Young et al., 2014; Chen et al., 2015; Sharma et al., 2018), visual question answering (VQA) (Antol et al., 2015; Johnson et al., 2017; Goyal et al., 2017; Hudson & Manning, 2019), visual commonsense reasoning (VCR) (Zellers et al., 2019; Gao et al., 2019), there lacks such pre-trained generic feature representations. The previous practice is to combine base networks pre-trained for image recognition and NLP respectively in a task-specific way. The task-specific model is directly finetuned for the specific target task, without any generic visual-linguistic pre-training. The task-specific model may well suffer from overfitting when the data for the target task is scarce. Also, due to the task-specific model design, it is difficult to benefit from pre-training, where the pre-training task may well be different from the target. There lacks a common ground for studying the feature design and pretraining of visual-linguistic tasks in general.
19
+
20
+ In the various network architectures designed for different visual-linguistic tasks, a key goal is to effectively aggregate the multi-modal information in both the visual and linguistic domains. For example, to pick the right answer in the VQA task, the network should empower integrating linguistic information from the question and the answers, and aggregating visual information from the input image, together with aligning the linguistic meanings with the visual clues. Thus, we seek to derive generic representations that can effectively aggregate and align visual and linguistic information.
21
+
22
+ In the meantime, we see the successful application of Transformer attention (Vaswani et al., 2017) in NLP, together with its MLM-based pre-training technique in BERT (Devlin et al., 2018). The attention module is powerful and flexible in aggregating and aligning word embedded features in sentences, while the pre-training in BERT further enhances the capability.
23
+
24
+ Inspired by that, we developed VL-BERT, a pre-trainable generic representation for visual-linguistic tasks, as shown in Figure 1. The backbone of VL-BERT is of (multi-modal) Transformer attention module taking both visual and linguistic embedded features as input. In it, each element is either of a word from the input sentence, or a region-of-interest (RoI) from the input image, together with certain special elements to disambiguate different input formats. Each element can adaptively aggregate information from all the other elements according to the compatibility defined on their contents, positions, categories, and etc. The content features of a word / an RoI are domain specific (WordPiece embeddings (Wu et al., 2016) as word features, Fast R-CNN (Girshick, 2015) features for RoIs). By stacking multiple layers of multi-modal Transformer attention modules, the derived representation is of rich capability in aggregating and aligning visual-linguistic clues. And taskspecific branches can be added above for specific visual-linguistic tasks.
25
+
26
+ To better exploit the generic representation, we pre-train VL-BERT at both large visual-linguistic corpus and text-only datasets1. The pre-training loss on the visual-linguistic corpus is incurred via predicting randomly masked words or RoIs. Such pre-training sharpens the capability of VL-BERT in aggregating and aligning visual-linguistic clues. While the loss on the text-only corpus is of the standard MLM loss in BERT, improving the generalization on long and complex sentences.
27
+
28
+ Comprehensive empirical evidence demonstrates that the proposed VL-BERT achieves state-of-theart performance on various downstream visual-linguistic tasks, such as visual commonsense reasoning, visual question answering and referring expression comprehension. In particular, we achieved the first place of single model on the leaderboard of visual commonsense reasoning.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Pre-training for Computer Vision Prior to the era of deep networks, it is far from mature to share features among different tasks and to improve the features via pre-training. The models for various computer vision tasks are of too diverse design choices to derive a generic representation. With the success of AlexNet (Krizhevsky et al., 2012) in ImageNet (Deng et al., 2009) classification, we see the renaissance of convolutional neural networks (CNNs) in the vision community. Soon after that, researchers found that ImageNet pre-trained CNNs can serve well as generic feature representation for various downstream tasks (Donahue et al., 2014), such as object detection (Girshick et al., 2014), semantic segmentation (Long et al., 2015), instance segmentation (Hariharan et al., 2014). The improvement in backbone networks for ImageNet classification further improves the downstream tasks. Recently there are research works on directly training CNNs from scratch on massive-scale target datasets, without ImageNet pre-training (He et al., 2018). They achieved performance on par with those with ImageNet pre-training. While they also note that pre-training on a proper massive dataset is vital for improving performance on target tasks with scarce data.
33
+
34
+ Pre-training for Natural Language Processing (NLP) It is interesting to note that the development of pre-training techniques in NLP lags quite behind computer vision. There are previous research works on improving word embedding (Mikolov et al., 2013; Pennington et al., 2014; Kiros et al., 2015), which is a low-level linguistic feature representation. On top of that, numerous diverse architectures are designed for various NLP tasks. In the milestone work of Transformers (Vaswani et al., 2017), the Transformer attention module is proposed as a generic building block for various NLP tasks. After that, a serious of approaches are proposed for pre-training the generic representation, mainly based on Transformers, such as GPT (Radford et al., 2018), BERT (Devlin et al., 2018), GPT-2 (Radford et al., 2019), XLNet (Yang et al., 2019), XLM (Lample & Conneau, 2019), and RoBERTa (Liu et al., 2019). Among them, BERT is perhaps the most popular one due to its simplicity and superior performance.
35
+
36
+ Pre-training for Visual-Linguistic Tasks. The development course of models for visual-linguistic tasks is also quite similar to those in the computer vision and NLP communities. Previously, taskspecific models are designed, wherein the features derived from off-the-shelf computer vision and NLP models are combined in an ad-hoc way for specific tasks. Model training is performed on the dataset for the specific task only.
37
+
38
+ VideoBERT (Sun et al., 2019b) is the first work seeking to conduct pre-training for visual-linguistic tasks. In it, video clips are processed by off-the-shelf networks for action recognition, and are assigned to different clusters (visual words) based on the derived features. The pre-training loss is incurred via predicting the cluster ids of masked video clips. Due to the abrupt clustering of the video clips, it losses considerable visual content information and hinders updating visual network parameters. In the following work of CBT (Sun et al., 2019a), such clustering mechanism is removed. Both works are applied on videos, which are of linear structure in the time dimension, same as sentences. It is highly desired to study at the well-established image-based visual-linguistic tasks.
39
+
40
+ Concurrent to our work, multiple works released on Arxiv very recently also seek to derive a pretrainable generic representation for visual-linguistic tasks. Table 5 in Appendix compares among them. We briefly discuss some of these works here.
41
+
42
+ In ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019), which are under review or just got accepted, the network architectures are of two single-modal networks applied on input sentences and images respectively, followed by a cross-modal Transformer combining information from the two sources. The attention pattern in the cross-modal Transformer is restricted, where the authors believe to improve the performance. The authors of ViLBERT claim that such two-stream design is superior than a single-stream unified model. Meanwhile, in the proposed VL-BERT, it is of a unified architecture based on Transformers without any restriction on the attention patterns. The visual and linguistic contents are fed as input to VL-BERT, wherein they interact early and freely. We found that our unified model of VL-BERT outperforms such two-stream designs.
43
+
44
+ VisualBert (Li et al., 2019b), B2T2 (Alberti et al., 2019), and Unicoder-VL (Li et al., 2019a), which are of work in progress or under review, are also of unified single-stream architecture. The differences of these works are compared in Table 5. The concurrent emergency of these research works indicates the importance of deriving a generic pre-trainable representation for visual-linguistic tasks.
45
+
46
+ In addition, there are three noticeable differences between VL-BERT and other concurrent works in pre-training. Their effects are validated in Section 4.3. (1) We found the task of Sentence-Image Relationship Prediction used in all of the other concurrent works (e.g., ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019)) is of no help in pre-training visual-linguistic representations. Thus such a task is not incorporated in VL-BERT. (2) We pre-train VL-BERT on both visual-linguistic and text-only datasets. We found such joint pre-training improves the generalization over long and complex sentences. (3) Improved tuning of the visual representation. In VL-BERT, the parameters of Fast R-CNN, deriving the visual features, are also updated. To avoid visual clue leakage in the pre-training task of Masked RoI Classification with Linguistic Clues, the masking operation is conducted on the input raw pixels, other than the feature maps produced by layers of convolution.
47
+
48
+ # 3 VL-BERT
49
+
50
+ # 3.1 REVISIT BERT MODEL
51
+
52
+ Let $\boldsymbol { x } = \{ x _ { 1 } , . . . , x _ { N } \}$ be the input elements in BERT (Devlin et al., 2018), which are of embedded features encoding sentence words. They are processed by a multi-layer bidirectional Transformer (Vaswani et al., 2017), where the embedding features of each element are transformed layer-by-layer in the fashion of aggregating features from the other elements with adaptive attention weights. Let $x ^ { l } = \{ x _ { 1 } ^ { l } , . . . , x _ { N } ^ { l } \}$ be the features of the $l$ -th layer $\cdot x ^ { 0 }$ is set as the input $x$ ). The features of the $( l + 1 )$ -th layer, $x ^ { l + 1 }$ , is computed by
53
+
54
+ $$
55
+ \begin{array} { r l } & { \tilde { h } _ { i } ^ { l + 1 } = \displaystyle \sum _ { m = 1 } ^ { M } W _ { m } ^ { l + 1 } \Big \{ \sum _ { j = 1 } ^ { N } A _ { i , j } ^ { m } \cdot V _ { m } ^ { l + 1 } x _ { j } ^ { l } \Big \} } \\ & { { \displaystyle h _ { i } ^ { l + 1 } = \mathrm { L a y e r N o r m } ( x _ { i } ^ { l } + \tilde { h } _ { i } ^ { l + 1 } ) } } \\ & { \tilde { x } _ { i } ^ { l + 1 } = W _ { 2 } ^ { l + 1 } \cdot \mathrm { G E L U } ( W _ { 1 } ^ { l + 1 } h _ { i } ^ { l + 1 } + b _ { 1 } ^ { l + 1 } ) + b _ { 2 } ^ { l + 1 } } \\ & { x _ { i } ^ { l + 1 } = \mathrm { L a y e r N o r m } ( h _ { i } ^ { l + 1 } + \tilde { x } _ { i } ^ { l + 1 } ) } \end{array}
56
+ $$
57
+
58
+ where notes t $m$ in Eq. 1 indexes over the attention attention weights between elements eadsand and in t $A _ { i , j } ^ { m } \ \propto \ \exp [ ( Q _ { m } ^ { l + 1 } x _ { i } ^ { l } ) ^ { T } ( K _ { m } ^ { l + 1 } x _ { j } ^ { l } ) ]$ de- by $i$ $j$ $m$
59
+ $\textstyle \sum _ { j = 1 } ^ { N } A _ { i , j } ^ { m } \ = \ 1$ . $W _ { m } ^ { l + 1 }$ , $Q _ { m } ^ { l + 1 }$ , $K _ { m } ^ { l + 1 }$ and $V _ { m } ^ { l + 1 }$ are learnable weights for $m ^ { \mathrm { t h } }$ attention head, $W _ { 1 } ^ { l + 1 }$ , $W _ { 2 } ^ { l + 1 }$ and $b _ { 1 } ^ { l + 1 } , b _ { 2 } ^ { l + 1 }$ in Eq. 3 are learnable weights and biases, respectively. Note that, the operations in Eq. $1 \sim 4$ is irrelevant to the order of input sequence, i.e. the final BERT representation of permuted input is same as the final BERT representation of the original input after the same permutation. The position of an element in BERT is encoded in its own embedding features by sequence positional embedding. Thanks to such decoupled representation, the BERT model is flexible enough to be pre-trained and finetuned for a variety of NLP tasks.
60
+
61
+ In BERT pre-training, the masked language modeling (MLM) task is introduced. The embedded features of a certain input word would be randomly masked out (the token embedding channels capturing the word content is replaced by a special [MASK] token). The BERT model is trained to predict the masked word from linguistic clues of all the other unmasked elements. As explained in Wang & Cho (2019), the overall MLM-based training of BERT is equivalent to optimizing the following joint probability distribution
62
+
63
+ $$
64
+ \log P ( x | \theta ) = \frac { 1 } { Z ( \theta ) } \sum _ { i = 1 } ^ { N } \log \phi _ { i } ( x | \theta ) ,
65
+ $$
66
+
67
+ where $\phi _ { i } ( x | \theta )$ is the potential function for the $i$ -th input element, with parameters $\theta$ , and $Z ( \theta )$ is the partition function. Each log-potential term $\log \phi _ { i } ( x )$ is defined as
68
+
69
+ $$
70
+ \log \phi _ { i } ( x | \theta ) = x _ { i } ^ { T } f _ { i } ( x _ { \backslash i } | \theta ) _ { i } ,
71
+ $$
72
+
73
+ where $f _ { i } ( x _ { \backslash i } | \theta )$ denotes the final output feature of BERT corresponding to the $i$ -th element for input $x _ { \backslash i }$ , where $x _ { \backslash i }$ is defined as $x _ { \backslash i } = \{ x _ { 1 } , . . . , x _ { i - 1 } , [ \mathbf { M A S K } ] , x _ { i + 1 } , . . . , x _ { N } \} .$ . The incurred MLM-based loss is as
74
+
75
+ $$
76
+ L _ { \mathrm { M L M } } ( \theta ) = - E _ { x \sim D , i \sim \{ 1 , \ldots , N \} } \log \phi _ { i } ( x ) ,
77
+ $$
78
+
79
+ where $x$ is a randomly sampled sentence from the training set $D$ , and $i$ is a randomly sampled location for masking words.
80
+
81
+ The second pre-training task, Next Sentence Prediction, focuses on modeling the relationship between two sentences. Two sentences are sampled from the input document, and the model should predict whether the second sentence is the direct successor of the first. In BERT, the sampled two sentences are concatenated into one input sequence, with special elements [CLS] and [SEP] inserted prior to the first and the second sentences, respectively. A Sigmoid classifier is appended on the final output feature corresponding to the [CLS] element to make the prediction. Let $x$ be the input sequence, $t \in \{ 0 , 1 \}$ indicates the relationship between the two sentences. The loss function is defined as
82
+
83
+ $$
84
+ L _ { \mathrm { N S P } } ( \theta ) = - E _ { ( x , t ) \sim D } \big [ t \log ( g ( x _ { 0 } ^ { L } ) ) + ( 1 - t ) \log ( 1 - g ( x _ { 0 } ^ { L } ) ) \big ] ,
85
+ $$
86
+
87
+ where $x _ { 0 } ^ { L }$ is the final output feature of the [CLS] element (at the $L$ -th layer), and $g ( x _ { 0 } ^ { L } )$ is the classifier output.
88
+
89
+ # 3.2 MODEL ARCHITECTURE
90
+
91
+ Figure 1 illustrates the architecture of VL-BERT. Basically, it modifies the original BERT (Devlin et al., 2018) model by adding new elements to accommodate the visual contents, and a new type of visual feature embedding to the input feature embeddings. Similar to BERT, the backbone is of multi-layer bidirectional Transformer encoder (Vaswani et al., 2017), enabling dependency modeling among all the input elements. Different to BERT processing sentence words only, VL-BERT takes both visual and linguistic elements as input, which are of features defined on regions-of-interest (RoIs) in images and sub-words from input sentences, respectively. The RoIs can either be bounding boxes produced by object detectors, or be annotated ones in certain tasks.
92
+
93
+ It is worth noting that the input formats vary for different visual-linguistic tasks (e.g., <Caption, Image $>$ for image captioning, and $<$ <Question, Answer, Image $>$ for VQA (Antol et al., 2015; Johnson et al., 2017; Goyal et al., 2017; Hudson & Manning, 2019) and VCR (Zellers et al., 2019; Gao et al., 2019)). But thanks to the unordered representation nature of Transformer attention (e.g., the position of a word in sentence is encoded by the positional embedding only, other than the order in the input sequence), a generic representation can be derived as long as the input elements and embedding features are properly designed. Three types of input elements are involved, namely, visual, linguistic, and special elements for disambiguating different input formats. The input sequence always starts with a special classification element ([CLS]), then goes on with linguistic elements, then follows up with visual elements, and ends with a special ending element ([END]). A special separation element ([SEP]) is inserted in between different sentences in the linguistic elements, and between the linguistic and visual elements. For each input element, its embedding feature is the summation of four types of embedding, namely, token embedding, visual feature embedding, segment embedding, and sequence position embedding. Among them, the visual feature embedding is newly introduced for capturing visual clues, while the other three embeddings follow the design in the original BERT paper.
94
+
95
+ ![](images/3540328e50418d41b6f05a0aa4b47e6155f02e42de19e4c5d81baa32c0b03377.jpg)
96
+ Figure 1: Architecture for pre-training VL-BERT. All the parameters in this architecture including VL-BERT and Fast R-CNN are jointly trained in both pre-training and fine-tuning phases.
97
+
98
+ Token Embedding Following the practice in BERT, the linguistic words are embedded with WordPiece embeddings (Wu et al., 2016) with a 30,000 vocabulary. A special token is assigned to each special element. For the visual elements, a special [IMG] token is assigned for each one of them.
99
+
100
+ Visual Feature Embedding We firstly describe visual appearance feature and visual geometry embedding separately, and then how to combine them to form the visual feature embedding.
101
+
102
+ For the visual element corresponding to an RoI, the visual appearance feature is extracted by applying a Fast R-CNN (Girshick, 2015) detector (i.e., the detection branch in Faster R-CNN (Ren et al., 2015)), where the feature vector prior to the output layer of each RoI is utilized as the visual feature embedding (of 2048-d in paper). For the non-visual elements, the corresponding visual appearance features are of features extracted on the whole input image. They are obtained by applying Faster R-CNN on an RoI covering the whole input image.
103
+
104
+ The visual geometry embedding is designed to inform VL-BERT the geometry location of each inelemand ge. Each RoI is characterized by a 4-d vector, as denote the coordinate of the top-left and bottom $\textstyle \left( { \frac { x _ { \mathrm { L T } } } { W } } , { \frac { y _ { \mathrm { L T } } } { H } } , { \frac { x _ { \mathrm { R B } } } { W } } , { \frac { h _ { \mathrm { R B } } } { H } } \right)$ , wherectively, $( x _ { \mathrm { L T } } , y _ { \mathrm { L T } } )$ $\left( x _ { \mathrm { R B } } , y _ { \mathrm { R B } } \right)$ and $W , H$ are of the width and height of the input image. Following the practice in Relation Networks (Hu et al., 2018), the 4-d vector is embedded into a high-dimensional representation (of 2048-d in paper) by computing sine and cosine functions of different wavelengths.
105
+
106
+ The visual feature embedding is attached to each of the input elements, which is the output of a fully connected layer taking the concatenation of visual appearance feature and visual geometry embedding as input.
107
+
108
+ Segment Embedding Three types of segment, $A , B , C$ , are defined to separate input elements from different sources, namely, $A$ and $B$ for the words from the first and second input sentence respectively, and $C$ for the RoIs from the input image. For example, for input format of $<$ Question, Answer, Image $>$ , $A$ denotes Question, $B$ denotes Answer, and $C$ denotes Image. For input format of <Caption, Image>, $A$ denotes Caption, and $C$ denotes Image. A learned segment embedding is added to every input element for indicating which segment it belongs to.
109
+
110
+ Sequence Position Embedding A learnable sequence position embedding is added to every input element indicating its order in the input sequence, same as BERT. Because there is no natural order among input visual elements, any permutation of them in the input sequence should achieve the same result. Thus the sequence position embedding for all visual elements are the same.
111
+
112
+ # 3.3 PRE-TRAINING VL-BERT
113
+
114
+ The generic feature representation of VL-BERT enables us to pre-train it on massive-scale datasets, with properly designed pre-training tasks. We pre-train VL-BERT on both visual-linguistic and textonly datasets. Here we utilize the Conceptual Captions dataset (Sharma et al., 2018) as the visuallinguistic corpus. It contains around 3.3 million images annotated with captions, which are harvested from web data and processed through an automatic pipeline. The issue with the Conceptual Captions dataset is that the captions are mainly simple clauses, which are too short and simple for many downstream tasks. To avoid overfitting on such short and simple text scenario, we also pre-train VL-BERT on text-only corpus with long and complex sentences. We utilize the BooksCorpus (Zhu et al., 2015) and the English Wikipedia datasets, which are also utilized in pre-training BERT.
115
+
116
+ In SGD training, in each mini-batch, samples are randomly drawn from both Conceptual Captions and BooksCorpus & English Wikipedia (at a ratio of 1:1). For a sample drawn from Conceptual Captions, the input format to VL-BERT is of $<$ Caption, Image $>$ , where the RoIs in the image are localized and categorized by a pre-trained Faster R-CNN object detector. Two pre-training tasks are exploited to incur loss, which are as follows.
117
+
118
+ Task #1: Masked Language Modeling with Visual Clues This task is very similar to the Masked Language Modeling (MLM) task utilized in BERT. The key difference is that visual clues are incorporated in VL-BERT for capturing the dependencies among visual and linguistic contents. During pre-training, each word in the input sentence(s) is randomly masked (at a probability of $1 5 \%$ ). For the masked word, its token is replaced with a special token of [MASK]. The model is trained to predict the masked words, based on the unmasked words and the visual features. The task drives the network to not only model the dependencies in sentence words, but also to align the visual and linguistic contents. For example, in Figure 1 “kitten drinking from [MASK]”, without the input image, the masked word could be any containers, such as “bowl”, “spoon” and “bottle”. The representation should capture the correspondence of the word “bottle” and the corresponding RoIs in the image to make the right guess. During pre-training, the final output feature corresponding to the masked word is fed into a classifier over the whole vocabulary, driven by Softmax cross-entropy loss.
119
+
120
+ Task #2: Masked RoI Classification with Linguistic Clues This is a dual task of Task #1. Each RoI in image is randomly masked out (with $15 \%$ probability), and the pre-training task is to predict the category label of the masked RoI from the other clues. To avoid any visual clue leakage from the visual feature embedding of other elements, the pixels laid in the masked RoI are set as zeros before applying Fast R-CNN. During pre-training, the final output feature corresponding to the masked RoI is fed into a classifier with Softmax cross-entropy loss for object category classification. The category label predicted by pre-trained Faster R-CNN is set as the ground-truth. An example is shown in Figure 1. The RoI corresponding to cat in image is masked out, and the corresponding category cannot be predicted from any visual clues. But with the input caption of “kitten drinking from bottle”, the model can infer the category by exploiting the linguistic clues.
121
+
122
+ For a sample drawn from the BooksCorpus & English Wikipedia datasets, the input format to VLBERT degenerates to be $<$ Text, $\mathcal { O } >$ , where no visual information is involved. The “visual feature embedding” term in Figure 1 is a learnable embedding shared for all words. The training loss is from the standard task of Masked Language Modeling (MLM) as in BERT.
123
+
124
+ In summary, the pre-training on visual-linguistic corpus improves the detailed alignment between visual and linguistic contents. Such detailed alignment is vital for many downstream tasks (for example, in Visual Grounding (Kazemzadeh et al., 2014), the model locates the most relevant object or region in an image based on a natural language query). While the pre-training on text-only corpus facilitates downstream tasks involving understanding of long and complex sentences.
125
+
126
+ # 3.4 FINE-TUNING VL-BERT
127
+
128
+ VL-BERT is designed to be a generic feature representation for various visual-linguistic tasks. It is relatively simple to finetune VL-BERT for various downstream tasks. We simply need to feed VLBERT with properly formatted input and output, and finetune all the network parameters end-to-end. For the input, the typical formats of $<$ <Caption, Image> and $<$ Question, Answer, Image> cover the majority visual-linguistic tasks. VL-BERT also supports more sentences and more images as long as appropriate segment embeddings are introduced to identify different input sources. At the output, typically, the final output feature of the [CLS] element is used for sentence-image-relation level prediction. The final output features of words or RoIs are for word-level or RoI-level prediction. In addition to the input and output format, task-specific loss functions and training strategies also need to be tuned. See Section 4.2 for the detailed design choices and settings.
129
+
130
+ # 4 EXPERIMENT
131
+
132
+ # 4.1 PRE-TRAINING
133
+
134
+ As described in Section 3.3, we pre-train VL-BERT jointly on Conceptual Captions (Sharma et al., 2018) as visual-linguistic corpus, and BooksCorpus (Zhu et al., 2015) & English Wikipedia as textonly corpus. As VL-BERT is developed via adding new inputs capturing visual information to the original BERT model, we initialize the parameters to be the same as the original BERT described in (Devlin et al., 2018). VL-BERTBASE and VL-BERTLARGE denote models developed from the original BERTBASE and BERTLARGE models, respectively. The newly added parameters in VL-BERT are randomly initialized from a Gaussian distribution with mean of 0 and standard deviation of 0.02. Visual content embedding is produced by Faster $\mathrm { R { \mathrm { - } C N N + \mathrm { R e s N e t { - } 1 0 1 } } }$ , initialized from parameters pre-trained on Visual Genome (Krishna et al., 2017) for object detection (see BUTD (Anderson et al., 2018)).
135
+
136
+ Prior to pre-training on Conceptual Captions, the pre-trained Faster R-CNN is applied to extract RoIs. Specifically, at most 100 RoIs with detection scores higher than 0.5 are selected for each image. At minimum, 10 RoIs are selected from one image, regardless of the detection score threshold. The detailed parameter settings are in Appendix.
137
+
138
+ # 4.2 FINE-TUNING ON DOWNSTREAM TASKS
139
+
140
+ The pre-trained VL-BERT model can be fine-tuned for various downstream visual-linguistic tasks, with simple modifications on the input format, output prediction, loss function and training strategy.
141
+
142
+ 4.2.1 VISUAL COMMONSENSE REASONING (VCR)
143
+ Table 1: Comparison to the state-of-the-art methods with single model on the VCR dataset. $\dagger$ indicates concurrent works.
144
+
145
+ <table><tr><td>Model</td><td>Q→A val</td><td>test</td><td>QA→R val</td><td>test</td><td>Q→AR val</td><td>test</td></tr><tr><td>R2C (Zellers et al., 2019)</td><td>63.8</td><td>65.1</td><td>67.2</td><td>67.3</td><td>43.1</td><td>44.0</td></tr><tr><td>ViLBERT (Lu et al.,2019)+</td><td>72.4</td><td>73.3</td><td>74.5</td><td>74.6</td><td>54.0</td><td>54.8</td></tr><tr><td>VisualBERT (Li et al.,2019b)†</td><td>70.8</td><td>71.6</td><td>73.2</td><td>73.2</td><td>52.2</td><td>52.4</td></tr><tr><td>B2T2 (Alberti et al.,2019)+</td><td>71.9</td><td>72.6</td><td>76.0</td><td>75.7</td><td>54.9</td><td>55.0</td></tr><tr><td>VL-BERTBAsE W/O pre-training</td><td>73.1</td><td>-</td><td>73.8</td><td>-</td><td>54.2</td><td>1</td></tr><tr><td>VL-BERTBASE</td><td>73.8</td><td>=</td><td>74.4</td><td>=</td><td>55.2</td><td>1</td></tr><tr><td>VL-BERTLARGE</td><td>75.5</td><td>75.8</td><td>77.9</td><td>78.4</td><td>58.9</td><td>59.7</td></tr></table>
146
+
147
+ Visual Commonsense Reasoning (VCR) focuses on higher-order cognitive and commonsense understanding of the given image. In the dataset of Zellers et al. (2019), given an image and a list of categorized RoIs, a question at cognition level is raised. The model should pick the right answer to the question and provide the rationale explanation. For each question, there are 4 candidate answers and 4 candidate rationales. This holistic task $( \mathbf { Q } \to \mathbf { A R } )$ ) is decomposed into two sub-tasks wherein researchers can train specific individual models: question answering $( \mathbf { Q } \mathbf { A } )$ ) and answer justification $( \mathrm { Q A } \to \mathrm { R }$ ). The released VCR dataset consists of $2 6 5 \mathrm { k }$ pairs of questions, answers, and rationales, over $1 0 0 \mathrm { k }$ unique movie scenes ( $1 0 0 \mathrm { k }$ images). They are split into training, validation, and test sets consisting of 213k questions and 80k images, 27k questions and 10k images, and $2 5 \mathrm { k }$ questions and $1 0 \mathrm { k }$ images, respectively.
148
+
149
+ ![](images/8d93389419b06a119b0e9a5c8dba2e7e7897e9be07d33e6073828e5814699bba.jpg)
150
+ Figure 2: Input and output formats for fine-tuning different visual-linguistic downstream tasks.
151
+
152
+ Our experimental protocol for VCR follows that in R2C (Zellers et al., 2019). The model is trained on the train split, and is evaluated at the val and test sets. In the original work R2C, task-specific “Grounding”, “Contextualization” and “Reasoning” modules are designed. Here we simply adopt the generic representation of VL-BERT for the task. Figure 2 (a) illustrates the input format, <Question, Answer, Image>. For the sub-task of $Q \mathbf { A }$ , ‘Q’ and ‘A’ are filled to the Question section and Answer section respectively. For the sub-task of $\mathrm { Q A } \to \mathrm { R }$ , the concatenation of $\mathbf { \bar { Q } } ^ { \prime }$ and ‘A’ is filled to the Question section, and ‘R’ is filled to the Answer section. The input RoIs to VL-BERT are the ground-truth annotations in the dataset. The final output feature of [CLS] element is fed to a Softmax classifier for predicting whether the given Answer is the correct choice. During fine-tuning, we adopt two losses, the classification over the correctness of the answers and the RoI classification with linguistic clues. The detailed parameter settings are in Appendix.
153
+
154
+ Table 1 presents the experiment results. Pre-training VL-BERT improves the performance by $1 . 0 \%$ in the final $\mathrm { Q } \mathrm { A R }$ task, which validates the effectiveness of pre-training. Compared with R2C, we do not use ad-hoc task-specific modules. Instead, we simply adopt the generic representation of VL-BERT and jointly train the whole model end-to-end. Despite the same input, output and experimental protocol as R2C, VL-BERT outperforms R2C by large margins, indicating the power of our simple cross-modal architecture. Compared with other concurrent works, i.e., ViLBERT, VisualBERT and B2T2, our VL-BERT achieves the state-of-the-art performance.
155
+
156
+ # 4.2.2 VISUAL QUESTION ANSWERING (VQA)
157
+
158
+ In the VQA task, given a natural image, a question at the perceptual level is asked, and the algorithm should generate / choose the correct answer. Here we conduct experiments on the widely-used VQA v2.0 dataset (Goyal et al., 2017), which is built based on the COCO (Lin et al., 2014) images. The VQA $\mathrm { { v } } 2 . 0$ dataset is split into train ( $8 3 \mathrm { k }$ images and 444k questions), validation (41k images and
159
+
160
+ Table 2: Comparison to the state-of-the-art methods with single model on the VQA dataset. $\dagger$ indicates concurrent works.
161
+
162
+ <table><tr><td>Model</td><td>test-dev</td><td>test-std</td></tr><tr><td>BUTD (Anderson et al.,2018)</td><td>65.32</td><td>65.67</td></tr><tr><td>ViLBERT (Lu et al.,2019)†</td><td>70.55</td><td>70.92</td></tr><tr><td>VisualBERT (Li et al.,2019b)t LXMERT(Tan &amp; Bansal, 2019)†</td><td>70.80</td><td>71.00</td></tr><tr><td>VL-BERTBAsE W/o pre-training</td><td>72.42</td><td>72.54</td></tr><tr><td>VL-BERTBASE</td><td>69.58 71.16</td><td>1</td></tr><tr><td>VL-BERTLARGE</td><td></td><td>-</td></tr><tr><td></td><td>71.79</td><td>72.22</td></tr></table>
163
+
164
+ $2 1 4 \mathrm { k }$ questions), and test (81k images and $4 4 8 \mathrm { k }$ questions) sets. Following the experimental protocol in BUTD (Anderson et al., 2018), for each question, the algorithm should pick the corresponding answer from a shared set consisting of 3,129 answers.
165
+
166
+ Figure 2 (b) illustrates the input format for the VQA task, which is of $<$ <Question, Answer, Image>. As the possible answers are from a shared pool independent to the question, we only fill a [MASK] element to the Answer section. As in BUTD (Anderson et al., 2018), the input RoIs in VL-BERT are generated by a Faster R-CNN detector pre-trained on Visual Genome (Krishna et al., 2017). The answer prediction is made from a multi-class classifier based upon the output feature of the [MASK] element. During fine-tuning, the network training is driven by the multi-class cross-entropy loss over the possible answers. The detailed parameter settings are in Appendix.
167
+
168
+ Table 2 presents our experimental results. Pre-training VL-BERT improves the performance by $1 . 6 \%$ , which validates the importance of pre-training. VL-BERT shares the same input (i.e., question, image, and RoIs), output and experimental protocol with BUTD, a prevalent model specifically designed for the task. Still, VL-BERT surpasses BUTD by over $5 \%$ in accuracy. Except for LXMERT, our VL-BERT achieves better performance than the other concurrent works. This is because LXMERT is pre-trained on massive visual question answering data (aggregating almost all the VQA datasets based on COCO and Visual Genome). While our model is only pre-trained on captioning and text-only dataset, where there is still gap with the VQA task.
169
+
170
+ # 4.2.3 REFERRING EXPRESSION COMPREHENSION
171
+
172
+ <table><tr><td rowspan="2">Model</td><td colspan="3">Ground-truth Regions</td><td colspan="3">Detected Regions</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>MAttNet (Yu et al.,2018)</td><td>71.01</td><td>75.13</td><td>66.17</td><td>65.33</td><td>71.62</td><td>56.02</td></tr><tr><td>ViLBERT (Lu et al.,2019)†</td><td>-</td><td>-</td><td>1</td><td>72.34</td><td>78.52</td><td>62.61</td></tr><tr><td>VL-BERTBAsE W/o pre-training</td><td>74.41</td><td>77.28</td><td>67.52</td><td>66.03</td><td>71.87</td><td>56.13</td></tr><tr><td>VL-BERTBASE</td><td>79.88</td><td>82.40</td><td>75.01</td><td>71.60</td><td>77.72</td><td>60.99</td></tr><tr><td>VL-BERTLARGE</td><td>80.31</td><td>83.62</td><td>75.45</td><td>72.59</td><td>78.57</td><td>62.30</td></tr></table>
173
+
174
+ Table 3: Comparison to the state-of-the-art methods with single model on the RefCOCO $^ +$ dataset. $\dagger$ indicates concurrent work.
175
+
176
+ A referring expression is a natural language phrase that refers to an object in an image. The referring expression comprehension task is to localize the object in an image with the given referring expression. We adopt the RefCOCO $^ +$ (Kazemzadeh et al., 2014) dataset for evaluation, consisting of 141k expressions for 50k referred objects in $2 0 \mathrm { k }$ images in the COCO dataset (Lin et al., 2014). The referring expressions in $\operatorname { R e f C O C O + }$ are forbidden from using absolute location words, e.g. left dog. Therefore the referring expressions focus on purely appearance-based descriptions. $\operatorname { R e f C O C O + }$ are split into four sets, training set (train), validation set (val), and two testing sets (testA and testB). Images containing multiple people are in testA set, while images containing multiple objects of other categories are in testB set. There is no overlap between the training, validation and testing images.
177
+
178
+ Figure 2 (c) illustrates the input format for referring expression comprehension , where the input format is of $<$ <Query, Image>. Model training and evaluation are conducted either on the groundtruth RoIs or on the detected boxes in MAttNet (Yu et al., 2018). And the results are reported either in the track of ground-truth regions or that of detected regions, respectively. During training, we compute the classification scores for all the input RoIs. For each RoI, a binary classification loss is applied. During inference, we directly choose the RoI with the highest classification score as the referred object of the input referring expression. The detailed parameter settings are in Appendix.
179
+
180
+ Table 3 presents our experimental results. Pre-trained VL-BERT significantly improves the performance. Compared with MAttNet, VL-BERT is much simpler without task-specific architecture designs, yet much better. VL-BERT achieves comparable performance with the concurrent work of ViLBERT.
181
+
182
+ # 4.3 ABLATION STUDY
183
+
184
+ Table 4: Ablation study for VL-BERTBASE with $0 . 5 \times$ fine-tuning epochs.
185
+
186
+ <table><tr><td>Settings</td><td>MaskedLanguage Modeling with Visual Clues</td><td>Masked RoI Classification with Linguistic Clues</td><td>Sentence-Image Relationship Prediction</td><td>with Text-only Corpus</td><td>Tuning Fast R-CNN</td><td>VCR Q→A val val</td><td>QA→R test-dev</td><td>VQA</td><td>RefCOCO+ Detected Regions val</td></tr><tr><td>w/o pre-training</td><td></td><td></td><td></td><td></td><td></td><td>72.9</td><td>73.0</td><td>69.5</td><td>62.7</td></tr><tr><td>(a)</td><td></td><td></td><td></td><td></td><td></td><td>72.9</td><td>73.1</td><td>71.0</td><td>69.1</td></tr><tr><td>(b)</td><td>√ √</td><td>√</td><td></td><td></td><td></td><td>73.0</td><td>73.1</td><td>71.1</td><td>70.7</td></tr><tr><td>(c)</td><td>√</td><td>√</td><td>√</td><td></td><td></td><td>72.2</td><td>72.4</td><td>70.3</td><td>69.5</td></tr><tr><td>(d)</td><td>√</td><td>√</td><td></td><td>√</td><td></td><td>73.4</td><td>73.8</td><td>71.1</td><td>70.7</td></tr><tr><td>VL-BERTBASE</td><td>√</td><td>√</td><td></td><td>√</td><td>√</td><td>73.8</td><td>73.9</td><td>71.2</td><td>71.1</td></tr></table>
187
+
188
+ Table 4 ablates key design choices in pre-training VL-BERT. For experimental efficiency, the finetuning epoches of VL-BERT are of $0 . 5 \times$ of those in Section 4.2, with only VL-BERTBASE model.
189
+
190
+ Overall, the pre-training of VL-BERT improves the performance over all the three down-stream tasks (by comparing setting “w/o pre-training” and VL-BERTBASE). The improvement amplitude varies for different tasks. By comparing setting (a) to that of “w/o pre-training”, we see the benefits of Task #1, Masked Language Modeling with Visual Clues. By further incorporating Task #2, Masked RoI Classification with Linguistic Clues, the accuracy further improves on $\operatorname { R e f C O C O + }$ , but gets stuck at VCR and VQA. This might be because only $\operatorname { R e f C O C O + }$ utilizes the final output feature corresponding to [IMG] tokens for prediction. Thus the pre-training of such features is beneficial. Setting (c) incorporates the task of Sentence-Image Relationship Prediction as in ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019). It would hurt accuracy on all the three downstream tasks. We guess the reason is because the task of Sentence-Image Relationship Prediction would introduce unmatched image and caption pairs as negative examples. Such unmatched samples would hamper the training of other tasks. Setting (d) adds text-only corpus during pre-training. Compared with setting (b), it improves the performance over all three down-stream tasks, and is most significant on VCR. This is because the task of VCR involves more complex and longer sentences than those in VQA and $_ \mathrm { R e f C O C O + } 2$ . By further finetuning the network parameters of Fast R-CNN, which generates the visual features, we get the final setting of VL-BERTBASE. Such end-to-end training of the entire network is helpful for all the downstream tasks.
191
+
192
+ # 5 CONCLUSION
193
+
194
+ In this paper, we developed VL-BERT, a new pre-trainable generic representation for visuallinguistic tasks. Instead of using ad-hoc task-specific modules, VL-BERT adopts the simple yet powerful Transformer model as the backbone. It is pre-trained on the massive-scale Conceptual Captions dataset, together with text-only corpus. Extensive empirical analysis demonstrates that the pre-training procedure can better align the visual-linguistic clues, and thus benefit the downstream tasks. In the future, we would like to seek better pre-training tasks, which could beneficial more downstream tasks (e.g., Image Caption Generation).
195
+
196
+ # ACKNOWLEDGMENTS
197
+
198
+ The work is partially supported by the National Natural Science Foundation of China under grand No.U19B2044 and No.61836011.
199
+
200
+ # REFERENCES
201
+
202
+ Chris Alberti, Jeffrey Ling, Michael Collins, and David Reitter. Fusion of detected objects in text for visual question answering. arXiv preprint arXiv:1908.05054, 2019.
203
+
204
+ Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 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, pp. 6077–6086, 2018.
205
+
206
+ Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pp. 2425–2433, 2015.
207
+
208
+ Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollar, and ´ C Lawrence Zitnick. Microsoft coco captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015.
209
+
210
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
211
+
212
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
213
+
214
+ Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In International conference on machine learning, pp. 647–655, 2014.
215
+
216
+ Difei Gao, Ruiping Wang, Shiguang Shan, and Xilin Chen. From two graphs to n questions: A vqa dataset for compositional reasoning on vision and commonsense. arXiv preprint arXiv:1908.02962, 2019.
217
+
218
+ Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015.
219
+
220
+ Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 580–587, 2014.
221
+
222
+ Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 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, pp. 6904–6913, 2017.
223
+
224
+ Bharath Hariharan, Pablo Arbelaez, Ross Girshick, and Jitendra Malik. Simultaneous detection and ´ segmentation. In European Conference on Computer Vision, pp. 297–312. Springer, 2014.
225
+
226
+ Kaiming He, Ross Girshick, and Piotr Dollar. Rethinking imagenet pre-training. ´ arXiv preprint arXiv:1811.08883, 2018.
227
+
228
+ Han Hu, Jiayuan Gu, Zheng Zhang, Jifeng Dai, and Yichen Wei. Relation networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3588–3597, 2018.
229
+
230
+ Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6700–6709, 2019.
231
+
232
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2901–2910, 2017.
233
+
234
+ Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. Referitgame: Referring to objects in photographs of natural scenes. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 787–798, 2014.
235
+
236
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
237
+
238
+ Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Advances in neural information processing systems, pp. 3294–3302, 2015.
239
+
240
+ Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32–73, 2017.
241
+
242
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
243
+
244
+ Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291, 2019.
245
+
246
+ Gen Li, Nan Duan, Yuejian Fang, Daxin Jiang, and Ming Zhou. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training, 2019a.
247
+
248
+ Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019b.
249
+
250
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ European conference on computer vision, pp. 740–755. Springer, 2014.
251
+
252
+ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
253
+
254
+ Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3431–3440, 2015.
255
+
256
+ Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019.
257
+
258
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
259
+
260
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
261
+
262
+ Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018.
263
+
264
+ Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8), 2019.
265
+
266
+ Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015.
267
+
268
+ Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. 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), pp. 2556–2565, 2018.
269
+
270
+ Chen Sun, Fabien Baradel, Kevin Murphy, and Cordelia Schmid. Contrastive bidirectional transformer for temporal representation learning. arXiv preprint arXiv:1906.05743, 2019a.
271
+
272
+ Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. Videobert: A joint model for video and language representation learning. arXiv preprint arXiv:1904.01766, 2019b.
273
+
274
+ Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing, 2019.
275
+
276
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
277
+
278
+ Jesse Vig. A multiscale visualization of attention in the transformer model. arXiv preprint arXiv:1906.05714, 2019. URL https://arxiv.org/abs/1906.05714.
279
+
280
+ Alex Wang and Kyunghyun Cho. Bert has a mouth, and it must speak: Bert as a markov random field language model. arXiv preprint arXiv:1902.04094, 2019.
281
+
282
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
283
+
284
+ Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019.
285
+
286
+ Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014.
287
+
288
+ Licheng Yu, Zhe Lin, Xiaohui Shen, Jimei Yang, Xin Lu, Mohit Bansal, and Tamara L Berg. Mattnet: Modular attention network for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1307–1315, 2018.
289
+
290
+ Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6720–6731, 2019.
291
+
292
+ Yuke Zhu, Oliver Groth, Michael Bernstein, and Li Fei-Fei. Visual7w: Grounded question answering in images. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4995–5004, 2016.
293
+
294
+ Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pp. 19–27, 2015.
295
+
296
+ # A APPENDIX
297
+
298
+ # A.1 COMPARISON AMONG VL-BERT AND OTHER WORKS
299
+
300
+ Table 5 compares among VL-BERT and other concurrent works for pre-training generic visuallinguistic representations.
301
+
302
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1>Visual Token</td><td rowspan=1 colspan=1>Pre-train Datasets</td><td rowspan=1 colspan=1>Pre-train Tasks</td><td rowspan=1 colspan=1>Downstream Tasks</td></tr><tr><td rowspan=1 colspan=1>PublishedWorks</td><td rowspan=1 colspan=1>VideoBERT(Sun et al., 2019b)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>video frame</td><td rowspan=1 colspan=1>Cooking312K(Sun et al., 2019b)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-words prediction</td><td rowspan=1 colspan=1>1) zero-shot action classification2) video captioning</td></tr><tr><td rowspan=7 colspan=1>WorksUnderReview /Just GotAccepted</td><td rowspan=1 colspan=1>CBT(Sun et al., 2019a)</td><td rowspan=1 colspan=1>two single-modal Transformer(vision &amp; language respectively)+ one cross-modal Transformer</td><td rowspan=1 colspan=1>video frame</td><td rowspan=1 colspan=1>Cooking312K(Sun et al., 2019b)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature regression</td><td rowspan=1 colspan=1>1) action anticipation2) video captioning</td></tr><tr><td rowspan=1 colspan=1>ViLBERT(Lu et al., 2019)</td><td rowspan=1 colspan=1>one single-modal Transformer(language)+ one cross-modal Transformer(with restricted attention pattern)</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al., 2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature classification</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) grounding referring expressions4) image retrieval5) zero-shot image retrieval</td></tr><tr><td rowspan=1 colspan=1>B2T2(Alberti et al., 2019)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al.,2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling</td><td rowspan=1 colspan=1>1) visual commonsense reasoning</td></tr><tr><td rowspan=1 colspan=1>LXMERT(Tan &amp; Bansal, 2019)</td><td rowspan=1 colspan=1>two single-modal Transformer(vision &amp; language respectively)+ one cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>COCO Caption+ VG Caption+ VG QA+VQA+GQA</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature classification4) masked visual-feature regression5) visual question answering</td><td rowspan=1 colspan=1>1) visual question answering2) natural language visual reasoning</td></tr><tr><td rowspan=1 colspan=1>VisualBERT(Li et al., 2019b)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>COCO Caption(Chen et al., 2015)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) natural language visual reasoning4) grounding phrases</td></tr><tr><td rowspan=1 colspan=1>Unicoder-VL(Li et al., 2019a)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al.,2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3)maskedvisual-featureclassification</td><td rowspan=1 colspan=1>1) image-text retrieval2)zero-shotimage-textretrieval</td></tr><tr><td rowspan=1 colspan=1>Our VL-BERT</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al., 2018)+ BooksCorpus(Zhu et al.,2015)+ English Wikipedia</td><td rowspan=1 colspan=1>1) masked language modeling2) masked visual-feature classification</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) grounding referring expressions</td></tr></table>
303
+
304
+ ‡ LXMERT is pre-trained on COCO Caption (Chen et al., 2015), VG Caption (Krishna et al., 2017), VG QA (Zhu et al., 2016), VQA (Antol et al., 2015) and GQA (Hudson & Manning, 2019).
305
+
306
+ Table 5: Comparison among our VL-BERT and other works seeking to derive pre-trainable generic representations for visual-linguistic tasks.
307
+
308
+ # A.2 DETAILED EXPERIMENT SETTINGS
309
+
310
+ Pre-training is conducted on 16 Tesla V100 GPUs for $2 5 0 \mathrm { k }$ iterations by SGD. In each mini-batch, 256 samples are drawn. Among them, 128 samples are of ${ < } \mathbf { C }$ aption, Image $>$ pairs from Conceptual Captions, and the rest 128 samples are sequential tokens (at most 64 tokens for each sequence) from BooksCorpus & English Wikipedia. In SGD, Adam optimizer (Kingma & Ba, 2014) is applied, with base learning rate of $2 \times 1 0 ^ { - 5 }$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 0 ^ { - 4 }$ , learning rate warmed up over the first 8,000 steps, and linear decay of the learning rate. All the parameters in VL-BERT and Fast R-CNN are jointly trained in both pre-training and fine-tuning phase. The visual feature input for textual corpus is a learnable embedding shared for all words. In the task of Masked RoI Classification with Linguistic Clues, the pixels lying in all the masked RoIs are set as zeros in the image. A box covering the whole image is added as a RoI and would not be masked.
311
+
312
+ For VCR, the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each mini-batch, 256 triplets of <Question, Answer, Image $>$ are sampled. In SGD, the basic mini-batch gradient descent is conducted, with base learning rate of $5 \times \mathrm { 1 \bar { 0 } ^ { - 3 } }$ , momentum of 0.9, and weight decay of $1 0 ^ { - 4 }$ . The learning rate is linearly warmed up in the first 1,000 steps from an initial learning rate of 0, and is decayed by 0.1 at the 14-th and the 18-th epochs.
313
+
314
+ For VQA, the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each mini-batch, 256 triplets of $<$ <Question, Answer, Image $>$ are sampled. In SGD, Adam optimizer is applied, with base learning rate of $1 \times 1 0 ^ { - 4 }$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 0 ^ { - 4 }$ , learning rate warmed up over the first 2,000 steps, and linear decay of the learning rate.
315
+
316
+ For $\operatorname { R e f C O C O + }$ , the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each minibatch, 256 pairs of $<$ <Query, Image $>$ are sampled. In SGD, Adam optimizer is applied, with base learning rate of $1 \times 1 0 ^ { - 4 }$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 \dot { 0 } ^ { - 4 }$ , learning rate warmed up over the first 500 steps, and linear decay of the learning rate.
317
+
318
+ ![](images/27d26e5998a446d208137b24004ce833aead6fd5de0e5fa774c2524c34106ac3.jpg)
319
+ Figure 3: Visualization of attention maps in pre-trained VL-BERTBASE. Line intensity indicates the magnitude of attention probability with the text token as query and the image RoI as key. The intensity is affinely rescaled to set the maximum value as 1 and the minimum as 0, across different heads in each layer. The index of network layer and attention head is counted from 0.
320
+
321
+ # A.3 VISUALIZATION OF ATTENTION MAPS IN VL-BERT
322
+
323
+ To better understand what VL-BERT learns from pre-training, we visualized the attention maps of pre-trained VL-BERT (without fine-tuning on downstream tasks) using BertViz3(Vig, 2019).
324
+
325
+ Some visualization results on COCO (Lin et al., 2014; Chen et al., 2015) val2017 set are shown in Figure 3. We can see different attention patterns across attention heads. For some attention heads, text tokens attend more on the associated image RoIs. While in some other heads, text tokens attend uniformly to all RoIs. It demonstrates the ability of VL-BERT in aggregating and aligning visuallinguistic contents.
parse/train/SygXPaEYvH/SygXPaEYvH_content_list.json ADDED
@@ -0,0 +1,1766 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VL-BERT: PRE-TRAINING OF GENERIC VISUALLINGUISTIC REPRESENTATIONS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Weijie $\\mathbf { S u } ^ { 1 , 2 * }$ , Xizhou $\\mathbf { Z } \\mathbf { h } \\mathbf { u } ^ { 1 , 2 * }$ , Yue $\\mathbf { C a o ^ { 2 } }$ , Bin $\\mathbf { L i } ^ { 1 }$ , Lewei $\\mathbf { L } \\mathbf { u } ^ { 2 }$ , Furu Wei2, Jifeng Dai2† ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 779,
21
+ 185
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1University of Science and Technology of China \n2Microsoft Research Asia \n{jackroos,ezra0408}@mail.ustc.edu.cn, binli@ustc.edu.cn \n{yuecao,lewlu,fuwei,jifdai}@microsoft.com ",
28
+ "bbox": [
29
+ 184,
30
+ 186,
31
+ 707,
32
+ 241
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 277,
43
+ 544,
44
+ 292
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We introduce a new pre-trainable generic representation for visual-linguistic tasks, called Visual-Linguistic BERT (VL-BERT for short). VL-BERT adopts the simple yet powerful Transformer model as the backbone, and extends it to take both visual and linguistic embedded features as input. In it, each element of the input is either of a word from the input sentence, or a region-of-interest (RoI) from the input image. It is designed to fit for most of the visual-linguistic downstream tasks. To better exploit the generic representation, we pre-train VL-BERT on the massive-scale Conceptual Captions dataset, together with text-only corpus. Extensive empirical analysis demonstrates that the pre-training procedure can better align the visual-linguistic clues and benefit the downstream tasks, such as visual commonsense reasoning, visual question answering and referring expression comprehension. It is worth noting that VL-BERT achieved the first place of single model on the leaderboard of the VCR benchmark. Code is released at https://github.com/jackroos/VL-BERT. ",
51
+ "bbox": [
52
+ 233,
53
+ 308,
54
+ 764,
55
+ 501
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 525,
66
+ 336,
67
+ 541
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Pre-training of generic feature representations applicable to a variety of tasks in a domain is a hallmark of the success of deep networks. Firstly in computer vision, backbone networks designed for and pre-trained on ImageNet (Deng et al., 2009) classification are found to be effective for improving numerous image recognition tasks. Recently in natural language processing (NLP), Transformer networks (Vaswani et al., 2017) pre-trained with “masked language model” (MLM) objective (Devlin et al., 2018) on large language corpus excel at a variety of NLP tasks. ",
74
+ "bbox": [
75
+ 174,
76
+ 556,
77
+ 823,
78
+ 640
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Meanwhile, for tasks at the intersection of vision and language, such as image captioning (Young et al., 2014; Chen et al., 2015; Sharma et al., 2018), visual question answering (VQA) (Antol et al., 2015; Johnson et al., 2017; Goyal et al., 2017; Hudson & Manning, 2019), visual commonsense reasoning (VCR) (Zellers et al., 2019; Gao et al., 2019), there lacks such pre-trained generic feature representations. The previous practice is to combine base networks pre-trained for image recognition and NLP respectively in a task-specific way. The task-specific model is directly finetuned for the specific target task, without any generic visual-linguistic pre-training. The task-specific model may well suffer from overfitting when the data for the target task is scarce. Also, due to the task-specific model design, it is difficult to benefit from pre-training, where the pre-training task may well be different from the target. There lacks a common ground for studying the feature design and pretraining of visual-linguistic tasks in general. ",
85
+ "bbox": [
86
+ 174,
87
+ 647,
88
+ 825,
89
+ 800
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In the various network architectures designed for different visual-linguistic tasks, a key goal is to effectively aggregate the multi-modal information in both the visual and linguistic domains. For example, to pick the right answer in the VQA task, the network should empower integrating linguistic information from the question and the answers, and aggregating visual information from the input image, together with aligning the linguistic meanings with the visual clues. Thus, we seek to derive generic representations that can effectively aggregate and align visual and linguistic information. ",
96
+ "bbox": [
97
+ 174,
98
+ 806,
99
+ 825,
100
+ 890
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In the meantime, we see the successful application of Transformer attention (Vaswani et al., 2017) in NLP, together with its MLM-based pre-training technique in BERT (Devlin et al., 2018). The attention module is powerful and flexible in aggregating and aligning word embedded features in sentences, while the pre-training in BERT further enhances the capability. ",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 823,
111
+ 159
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Inspired by that, we developed VL-BERT, a pre-trainable generic representation for visual-linguistic tasks, as shown in Figure 1. The backbone of VL-BERT is of (multi-modal) Transformer attention module taking both visual and linguistic embedded features as input. In it, each element is either of a word from the input sentence, or a region-of-interest (RoI) from the input image, together with certain special elements to disambiguate different input formats. Each element can adaptively aggregate information from all the other elements according to the compatibility defined on their contents, positions, categories, and etc. The content features of a word / an RoI are domain specific (WordPiece embeddings (Wu et al., 2016) as word features, Fast R-CNN (Girshick, 2015) features for RoIs). By stacking multiple layers of multi-modal Transformer attention modules, the derived representation is of rich capability in aggregating and aligning visual-linguistic clues. And taskspecific branches can be added above for specific visual-linguistic tasks. ",
118
+ "bbox": [
119
+ 174,
120
+ 166,
121
+ 825,
122
+ 319
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To better exploit the generic representation, we pre-train VL-BERT at both large visual-linguistic corpus and text-only datasets1. The pre-training loss on the visual-linguistic corpus is incurred via predicting randomly masked words or RoIs. Such pre-training sharpens the capability of VL-BERT in aggregating and aligning visual-linguistic clues. While the loss on the text-only corpus is of the standard MLM loss in BERT, improving the generalization on long and complex sentences. ",
129
+ "bbox": [
130
+ 174,
131
+ 327,
132
+ 823,
133
+ 396
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Comprehensive empirical evidence demonstrates that the proposed VL-BERT achieves state-of-theart performance on various downstream visual-linguistic tasks, such as visual commonsense reasoning, visual question answering and referring expression comprehension. In particular, we achieved the first place of single model on the leaderboard of visual commonsense reasoning. ",
140
+ "bbox": [
141
+ 176,
142
+ 404,
143
+ 823,
144
+ 458
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 RELATED WORK ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 176,
154
+ 479,
155
+ 344,
156
+ 496
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Pre-training for Computer Vision Prior to the era of deep networks, it is far from mature to share features among different tasks and to improve the features via pre-training. The models for various computer vision tasks are of too diverse design choices to derive a generic representation. With the success of AlexNet (Krizhevsky et al., 2012) in ImageNet (Deng et al., 2009) classification, we see the renaissance of convolutional neural networks (CNNs) in the vision community. Soon after that, researchers found that ImageNet pre-trained CNNs can serve well as generic feature representation for various downstream tasks (Donahue et al., 2014), such as object detection (Girshick et al., 2014), semantic segmentation (Long et al., 2015), instance segmentation (Hariharan et al., 2014). The improvement in backbone networks for ImageNet classification further improves the downstream tasks. Recently there are research works on directly training CNNs from scratch on massive-scale target datasets, without ImageNet pre-training (He et al., 2018). They achieved performance on par with those with ImageNet pre-training. While they also note that pre-training on a proper massive dataset is vital for improving performance on target tasks with scarce data. ",
163
+ "bbox": [
164
+ 173,
165
+ 511,
166
+ 825,
167
+ 691
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Pre-training for Natural Language Processing (NLP) It is interesting to note that the development of pre-training techniques in NLP lags quite behind computer vision. There are previous research works on improving word embedding (Mikolov et al., 2013; Pennington et al., 2014; Kiros et al., 2015), which is a low-level linguistic feature representation. On top of that, numerous diverse architectures are designed for various NLP tasks. In the milestone work of Transformers (Vaswani et al., 2017), the Transformer attention module is proposed as a generic building block for various NLP tasks. After that, a serious of approaches are proposed for pre-training the generic representation, mainly based on Transformers, such as GPT (Radford et al., 2018), BERT (Devlin et al., 2018), GPT-2 (Radford et al., 2019), XLNet (Yang et al., 2019), XLM (Lample & Conneau, 2019), and RoBERTa (Liu et al., 2019). Among them, BERT is perhaps the most popular one due to its simplicity and superior performance. ",
174
+ "bbox": [
175
+ 173,
176
+ 699,
177
+ 825,
178
+ 852
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Pre-training for Visual-Linguistic Tasks. The development course of models for visual-linguistic tasks is also quite similar to those in the computer vision and NLP communities. Previously, taskspecific models are designed, wherein the features derived from off-the-shelf computer vision and NLP models are combined in an ad-hoc way for specific tasks. Model training is performed on the dataset for the specific task only. ",
185
+ "bbox": [
186
+ 174,
187
+ 858,
188
+ 821,
189
+ 886
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "",
196
+ "bbox": [
197
+ 176,
198
+ 103,
199
+ 823,
200
+ 146
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "VideoBERT (Sun et al., 2019b) is the first work seeking to conduct pre-training for visual-linguistic tasks. In it, video clips are processed by off-the-shelf networks for action recognition, and are assigned to different clusters (visual words) based on the derived features. The pre-training loss is incurred via predicting the cluster ids of masked video clips. Due to the abrupt clustering of the video clips, it losses considerable visual content information and hinders updating visual network parameters. In the following work of CBT (Sun et al., 2019a), such clustering mechanism is removed. Both works are applied on videos, which are of linear structure in the time dimension, same as sentences. It is highly desired to study at the well-established image-based visual-linguistic tasks. ",
207
+ "bbox": [
208
+ 174,
209
+ 152,
210
+ 825,
211
+ 263
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Concurrent to our work, multiple works released on Arxiv very recently also seek to derive a pretrainable generic representation for visual-linguistic tasks. Table 5 in Appendix compares among them. We briefly discuss some of these works here. ",
218
+ "bbox": [
219
+ 174,
220
+ 271,
221
+ 825,
222
+ 313
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "In ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019), which are under review or just got accepted, the network architectures are of two single-modal networks applied on input sentences and images respectively, followed by a cross-modal Transformer combining information from the two sources. The attention pattern in the cross-modal Transformer is restricted, where the authors believe to improve the performance. The authors of ViLBERT claim that such two-stream design is superior than a single-stream unified model. Meanwhile, in the proposed VL-BERT, it is of a unified architecture based on Transformers without any restriction on the attention patterns. The visual and linguistic contents are fed as input to VL-BERT, wherein they interact early and freely. We found that our unified model of VL-BERT outperforms such two-stream designs. ",
229
+ "bbox": [
230
+ 174,
231
+ 319,
232
+ 825,
233
+ 445
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "VisualBert (Li et al., 2019b), B2T2 (Alberti et al., 2019), and Unicoder-VL (Li et al., 2019a), which are of work in progress or under review, are also of unified single-stream architecture. The differences of these works are compared in Table 5. The concurrent emergency of these research works indicates the importance of deriving a generic pre-trainable representation for visual-linguistic tasks. ",
240
+ "bbox": [
241
+ 174,
242
+ 452,
243
+ 825,
244
+ 508
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "In addition, there are three noticeable differences between VL-BERT and other concurrent works in pre-training. Their effects are validated in Section 4.3. (1) We found the task of Sentence-Image Relationship Prediction used in all of the other concurrent works (e.g., ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019)) is of no help in pre-training visual-linguistic representations. Thus such a task is not incorporated in VL-BERT. (2) We pre-train VL-BERT on both visual-linguistic and text-only datasets. We found such joint pre-training improves the generalization over long and complex sentences. (3) Improved tuning of the visual representation. In VL-BERT, the parameters of Fast R-CNN, deriving the visual features, are also updated. To avoid visual clue leakage in the pre-training task of Masked RoI Classification with Linguistic Clues, the masking operation is conducted on the input raw pixels, other than the feature maps produced by layers of convolution. ",
251
+ "bbox": [
252
+ 174,
253
+ 515,
254
+ 825,
255
+ 654
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "3 VL-BERT ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 174,
265
+ 672,
266
+ 294,
267
+ 689
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "3.1 REVISIT BERT MODEL ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 176,
277
+ 704,
278
+ 377,
279
+ 719
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "Let $\\boldsymbol { x } = \\{ x _ { 1 } , . . . , x _ { N } \\}$ be the input elements in BERT (Devlin et al., 2018), which are of embedded features encoding sentence words. They are processed by a multi-layer bidirectional Transformer (Vaswani et al., 2017), where the embedding features of each element are transformed layer-by-layer in the fashion of aggregating features from the other elements with adaptive attention weights. Let $x ^ { l } = \\{ x _ { 1 } ^ { l } , . . . , x _ { N } ^ { l } \\}$ be the features of the $l$ -th layer $\\cdot x ^ { 0 }$ is set as the input $x$ ). The features of the $( l + 1 )$ -th layer, $x ^ { l + 1 }$ , is computed by ",
286
+ "bbox": [
287
+ 174,
288
+ 729,
289
+ 823,
290
+ 815
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "equation",
296
+ "img_path": "images/2e4a808109378150e7d0b6717120ffaa59711097c4679cd6591ea4d843a81b5f.jpg",
297
+ "text": "$$\n\\begin{array} { r l } & { \\tilde { h } _ { i } ^ { l + 1 } = \\displaystyle \\sum _ { m = 1 } ^ { M } W _ { m } ^ { l + 1 } \\Big \\{ \\sum _ { j = 1 } ^ { N } A _ { i , j } ^ { m } \\cdot V _ { m } ^ { l + 1 } x _ { j } ^ { l } \\Big \\} } \\\\ & { { \\displaystyle h _ { i } ^ { l + 1 } = \\mathrm { L a y e r N o r m } ( x _ { i } ^ { l } + \\tilde { h } _ { i } ^ { l + 1 } ) } } \\\\ & { \\tilde { x } _ { i } ^ { l + 1 } = W _ { 2 } ^ { l + 1 } \\cdot \\mathrm { G E L U } ( W _ { 1 } ^ { l + 1 } h _ { i } ^ { l + 1 } + b _ { 1 } ^ { l + 1 } ) + b _ { 2 } ^ { l + 1 } } \\\\ & { x _ { i } ^ { l + 1 } = \\mathrm { L a y e r N o r m } ( h _ { i } ^ { l + 1 } + \\tilde { x } _ { i } ^ { l + 1 } ) } \\end{array}\n$$",
298
+ "text_format": "latex",
299
+ "bbox": [
300
+ 232,
301
+ 819,
302
+ 563,
303
+ 928
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "where notes t $m$ in Eq. 1 indexes over the attention attention weights between elements eadsand and in t $A _ { i , j } ^ { m } \\ \\propto \\ \\exp [ ( Q _ { m } ^ { l + 1 } x _ { i } ^ { l } ) ^ { T } ( K _ { m } ^ { l + 1 } x _ { j } ^ { l } ) ]$ de- by $i$ $j$ $m$ \n$\\textstyle \\sum _ { j = 1 } ^ { N } A _ { i , j } ^ { m } \\ = \\ 1$ . $W _ { m } ^ { l + 1 }$ , $Q _ { m } ^ { l + 1 }$ , $K _ { m } ^ { l + 1 }$ and $V _ { m } ^ { l + 1 }$ are learnable weights for $m ^ { \\mathrm { t h } }$ attention head, $W _ { 1 } ^ { l + 1 }$ , $W _ { 2 } ^ { l + 1 }$ and $b _ { 1 } ^ { l + 1 } , b _ { 2 } ^ { l + 1 }$ in Eq. 3 are learnable weights and biases, respectively. Note that, the operations in Eq. $1 \\sim 4$ is irrelevant to the order of input sequence, i.e. the final BERT representation of permuted input is same as the final BERT representation of the original input after the same permutation. The position of an element in BERT is encoded in its own embedding features by sequence positional embedding. Thanks to such decoupled representation, the BERT model is flexible enough to be pre-trained and finetuned for a variety of NLP tasks. ",
310
+ "bbox": [
311
+ 173,
312
+ 102,
313
+ 825,
314
+ 236
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "In BERT pre-training, the masked language modeling (MLM) task is introduced. The embedded features of a certain input word would be randomly masked out (the token embedding channels capturing the word content is replaced by a special [MASK] token). The BERT model is trained to predict the masked word from linguistic clues of all the other unmasked elements. As explained in Wang & Cho (2019), the overall MLM-based training of BERT is equivalent to optimizing the following joint probability distribution ",
321
+ "bbox": [
322
+ 173,
323
+ 242,
324
+ 825,
325
+ 327
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/30682f9d76d69ce90a4eeabbef027427b634882329b5562fdd326495360cdec5.jpg",
332
+ "text": "$$\n\\log P ( x | \\theta ) = \\frac { 1 } { Z ( \\theta ) } \\sum _ { i = 1 } ^ { N } \\log \\phi _ { i } ( x | \\theta ) ,\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 379,
336
+ 333,
337
+ 620,
338
+ 377
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "where $\\phi _ { i } ( x | \\theta )$ is the potential function for the $i$ -th input element, with parameters $\\theta$ , and $Z ( \\theta )$ is the partition function. Each log-potential term $\\log \\phi _ { i } ( x )$ is defined as ",
345
+ "bbox": [
346
+ 173,
347
+ 383,
348
+ 821,
349
+ 412
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "equation",
355
+ "img_path": "images/28a662382c252e2d7d89ff5b9107134d9751453249fafeb60a412060f603c2c2.jpg",
356
+ "text": "$$\n\\log \\phi _ { i } ( x | \\theta ) = x _ { i } ^ { T } f _ { i } ( x _ { \\backslash i } | \\theta ) _ { i } ,\n$$",
357
+ "text_format": "latex",
358
+ "bbox": [
359
+ 405,
360
+ 420,
361
+ 593,
362
+ 439
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "where $f _ { i } ( x _ { \\backslash i } | \\theta )$ denotes the final output feature of BERT corresponding to the $i$ -th element for input $x _ { \\backslash i }$ , where $x _ { \\backslash i }$ is defined as $x _ { \\backslash i } = \\{ x _ { 1 } , . . . , x _ { i - 1 } , [ \\mathbf { M A S K } ] , x _ { i + 1 } , . . . , x _ { N } \\} .$ . The incurred MLM-based loss is as ",
369
+ "bbox": [
370
+ 174,
371
+ 445,
372
+ 825,
373
+ 489
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "equation",
379
+ "img_path": "images/863816be059da7c7082b3c75b103caed3b5488d837679796e60ec550f696d518.jpg",
380
+ "text": "$$\nL _ { \\mathrm { M L M } } ( \\theta ) = - E _ { x \\sim D , i \\sim \\{ 1 , \\ldots , N \\} } \\log \\phi _ { i } ( x ) ,\n$$",
381
+ "text_format": "latex",
382
+ "bbox": [
383
+ 361,
384
+ 488,
385
+ 637,
386
+ 507
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "where $x$ is a randomly sampled sentence from the training set $D$ , and $i$ is a randomly sampled location for masking words. ",
393
+ "bbox": [
394
+ 173,
395
+ 510,
396
+ 825,
397
+ 537
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "The second pre-training task, Next Sentence Prediction, focuses on modeling the relationship between two sentences. Two sentences are sampled from the input document, and the model should predict whether the second sentence is the direct successor of the first. In BERT, the sampled two sentences are concatenated into one input sequence, with special elements [CLS] and [SEP] inserted prior to the first and the second sentences, respectively. A Sigmoid classifier is appended on the final output feature corresponding to the [CLS] element to make the prediction. Let $x$ be the input sequence, $t \\in \\{ 0 , 1 \\}$ indicates the relationship between the two sentences. The loss function is defined as ",
404
+ "bbox": [
405
+ 173,
406
+ 544,
407
+ 825,
408
+ 655
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/d32f28293707e48357d3f6f38933a97f173f17b9f3def06d3b34c42da3fcabf4.jpg",
415
+ "text": "$$\nL _ { \\mathrm { N S P } } ( \\theta ) = - E _ { ( x , t ) \\sim D } \\big [ t \\log ( g ( x _ { 0 } ^ { L } ) ) + ( 1 - t ) \\log ( 1 - g ( x _ { 0 } ^ { L } ) ) \\big ] ,\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 285,
419
+ 652,
420
+ 710,
421
+ 672
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "where $x _ { 0 } ^ { L }$ is the final output feature of the [CLS] element (at the $L$ -th layer), and $g ( x _ { 0 } ^ { L } )$ is the classifier output. ",
428
+ "bbox": [
429
+ 176,
430
+ 678,
431
+ 823,
432
+ 707
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "3.2 MODEL ARCHITECTURE ",
439
+ "text_level": 1,
440
+ "bbox": [
441
+ 174,
442
+ 723,
443
+ 383,
444
+ 738
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "Figure 1 illustrates the architecture of VL-BERT. Basically, it modifies the original BERT (Devlin et al., 2018) model by adding new elements to accommodate the visual contents, and a new type of visual feature embedding to the input feature embeddings. Similar to BERT, the backbone is of multi-layer bidirectional Transformer encoder (Vaswani et al., 2017), enabling dependency modeling among all the input elements. Different to BERT processing sentence words only, VL-BERT takes both visual and linguistic elements as input, which are of features defined on regions-of-interest (RoIs) in images and sub-words from input sentences, respectively. The RoIs can either be bounding boxes produced by object detectors, or be annotated ones in certain tasks. ",
451
+ "bbox": [
452
+ 173,
453
+ 748,
454
+ 825,
455
+ 861
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "It is worth noting that the input formats vary for different visual-linguistic tasks (e.g., <Caption, Image $>$ for image captioning, and $<$ <Question, Answer, Image $>$ for VQA (Antol et al., 2015; Johnson et al., 2017; Goyal et al., 2017; Hudson & Manning, 2019) and VCR (Zellers et al., 2019; Gao et al., 2019)). But thanks to the unordered representation nature of Transformer attention (e.g., the position of a word in sentence is encoded by the positional embedding only, other than the order in the input sequence), a generic representation can be derived as long as the input elements and embedding features are properly designed. Three types of input elements are involved, namely, visual, linguistic, and special elements for disambiguating different input formats. The input sequence always starts with a special classification element ([CLS]), then goes on with linguistic elements, then follows up with visual elements, and ends with a special ending element ([END]). A special separation element ([SEP]) is inserted in between different sentences in the linguistic elements, and between the linguistic and visual elements. For each input element, its embedding feature is the summation of four types of embedding, namely, token embedding, visual feature embedding, segment embedding, and sequence position embedding. Among them, the visual feature embedding is newly introduced for capturing visual clues, while the other three embeddings follow the design in the original BERT paper. ",
462
+ "bbox": [
463
+ 174,
464
+ 867,
465
+ 823,
466
+ 924
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "image",
472
+ "img_path": "images/3540328e50418d41b6f05a0aa4b47e6155f02e42de19e4c5d81baa32c0b03377.jpg",
473
+ "image_caption": [
474
+ "Figure 1: Architecture for pre-training VL-BERT. All the parameters in this architecture including VL-BERT and Fast R-CNN are jointly trained in both pre-training and fine-tuning phases. "
475
+ ],
476
+ "image_footnote": [],
477
+ "bbox": [
478
+ 174,
479
+ 99,
480
+ 823,
481
+ 314
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "",
488
+ "bbox": [
489
+ 174,
490
+ 378,
491
+ 825,
492
+ 545
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Token Embedding Following the practice in BERT, the linguistic words are embedded with WordPiece embeddings (Wu et al., 2016) with a 30,000 vocabulary. A special token is assigned to each special element. For the visual elements, a special [IMG] token is assigned for each one of them. ",
499
+ "bbox": [
500
+ 176,
501
+ 551,
502
+ 821,
503
+ 594
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Visual Feature Embedding We firstly describe visual appearance feature and visual geometry embedding separately, and then how to combine them to form the visual feature embedding. ",
510
+ "bbox": [
511
+ 173,
512
+ 601,
513
+ 820,
514
+ 628
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "For the visual element corresponding to an RoI, the visual appearance feature is extracted by applying a Fast R-CNN (Girshick, 2015) detector (i.e., the detection branch in Faster R-CNN (Ren et al., 2015)), where the feature vector prior to the output layer of each RoI is utilized as the visual feature embedding (of 2048-d in paper). For the non-visual elements, the corresponding visual appearance features are of features extracted on the whole input image. They are obtained by applying Faster R-CNN on an RoI covering the whole input image. ",
521
+ "bbox": [
522
+ 174,
523
+ 636,
524
+ 825,
525
+ 719
526
+ ],
527
+ "page_idx": 4
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "The visual geometry embedding is designed to inform VL-BERT the geometry location of each inelemand ge. Each RoI is characterized by a 4-d vector, as denote the coordinate of the top-left and bottom $\\textstyle \\left( { \\frac { x _ { \\mathrm { L T } } } { W } } , { \\frac { y _ { \\mathrm { L T } } } { H } } , { \\frac { x _ { \\mathrm { R B } } } { W } } , { \\frac { h _ { \\mathrm { R B } } } { H } } \\right)$ , wherectively, $( x _ { \\mathrm { L T } } , y _ { \\mathrm { L T } } )$ $\\left( x _ { \\mathrm { R B } } , y _ { \\mathrm { R B } } \\right)$ and $W , H$ are of the width and height of the input image. Following the practice in Relation Networks (Hu et al., 2018), the 4-d vector is embedded into a high-dimensional representation (of 2048-d in paper) by computing sine and cosine functions of different wavelengths. ",
532
+ "bbox": [
533
+ 174,
534
+ 727,
535
+ 823,
536
+ 813
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "The visual feature embedding is attached to each of the input elements, which is the output of a fully connected layer taking the concatenation of visual appearance feature and visual geometry embedding as input. ",
543
+ "bbox": [
544
+ 174,
545
+ 819,
546
+ 823,
547
+ 861
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Segment Embedding Three types of segment, $A , B , C$ , are defined to separate input elements from different sources, namely, $A$ and $B$ for the words from the first and second input sentence respectively, and $C$ for the RoIs from the input image. For example, for input format of $<$ Question, Answer, Image $>$ , $A$ denotes Question, $B$ denotes Answer, and $C$ denotes Image. For input format of <Caption, Image>, $A$ denotes Caption, and $C$ denotes Image. A learned segment embedding is added to every input element for indicating which segment it belongs to. ",
554
+ "bbox": [
555
+ 174,
556
+ 867,
557
+ 823,
558
+ 924
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "",
565
+ "bbox": [
566
+ 171,
567
+ 103,
568
+ 823,
569
+ 132
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Sequence Position Embedding A learnable sequence position embedding is added to every input element indicating its order in the input sequence, same as BERT. Because there is no natural order among input visual elements, any permutation of them in the input sequence should achieve the same result. Thus the sequence position embedding for all visual elements are the same. ",
576
+ "bbox": [
577
+ 174,
578
+ 138,
579
+ 825,
580
+ 194
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "3.3 PRE-TRAINING VL-BERT ",
587
+ "text_level": 1,
588
+ "bbox": [
589
+ 176,
590
+ 229,
591
+ 395,
592
+ 243
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "The generic feature representation of VL-BERT enables us to pre-train it on massive-scale datasets, with properly designed pre-training tasks. We pre-train VL-BERT on both visual-linguistic and textonly datasets. Here we utilize the Conceptual Captions dataset (Sharma et al., 2018) as the visuallinguistic corpus. It contains around 3.3 million images annotated with captions, which are harvested from web data and processed through an automatic pipeline. The issue with the Conceptual Captions dataset is that the captions are mainly simple clauses, which are too short and simple for many downstream tasks. To avoid overfitting on such short and simple text scenario, we also pre-train VL-BERT on text-only corpus with long and complex sentences. We utilize the BooksCorpus (Zhu et al., 2015) and the English Wikipedia datasets, which are also utilized in pre-training BERT. ",
599
+ "bbox": [
600
+ 174,
601
+ 262,
602
+ 825,
603
+ 387
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "In SGD training, in each mini-batch, samples are randomly drawn from both Conceptual Captions and BooksCorpus & English Wikipedia (at a ratio of 1:1). For a sample drawn from Conceptual Captions, the input format to VL-BERT is of $<$ Caption, Image $>$ , where the RoIs in the image are localized and categorized by a pre-trained Faster R-CNN object detector. Two pre-training tasks are exploited to incur loss, which are as follows. ",
610
+ "bbox": [
611
+ 174,
612
+ 395,
613
+ 825,
614
+ 464
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Task #1: Masked Language Modeling with Visual Clues This task is very similar to the Masked Language Modeling (MLM) task utilized in BERT. The key difference is that visual clues are incorporated in VL-BERT for capturing the dependencies among visual and linguistic contents. During pre-training, each word in the input sentence(s) is randomly masked (at a probability of $1 5 \\%$ ). For the masked word, its token is replaced with a special token of [MASK]. The model is trained to predict the masked words, based on the unmasked words and the visual features. The task drives the network to not only model the dependencies in sentence words, but also to align the visual and linguistic contents. For example, in Figure 1 “kitten drinking from [MASK]”, without the input image, the masked word could be any containers, such as “bowl”, “spoon” and “bottle”. The representation should capture the correspondence of the word “bottle” and the corresponding RoIs in the image to make the right guess. During pre-training, the final output feature corresponding to the masked word is fed into a classifier over the whole vocabulary, driven by Softmax cross-entropy loss. ",
621
+ "bbox": [
622
+ 174,
623
+ 470,
624
+ 825,
625
+ 637
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Task #2: Masked RoI Classification with Linguistic Clues This is a dual task of Task #1. Each RoI in image is randomly masked out (with $15 \\%$ probability), and the pre-training task is to predict the category label of the masked RoI from the other clues. To avoid any visual clue leakage from the visual feature embedding of other elements, the pixels laid in the masked RoI are set as zeros before applying Fast R-CNN. During pre-training, the final output feature corresponding to the masked RoI is fed into a classifier with Softmax cross-entropy loss for object category classification. The category label predicted by pre-trained Faster R-CNN is set as the ground-truth. An example is shown in Figure 1. The RoI corresponding to cat in image is masked out, and the corresponding category cannot be predicted from any visual clues. But with the input caption of “kitten drinking from bottle”, the model can infer the category by exploiting the linguistic clues. ",
632
+ "bbox": [
633
+ 174,
634
+ 645,
635
+ 825,
636
+ 784
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "For a sample drawn from the BooksCorpus & English Wikipedia datasets, the input format to VLBERT degenerates to be $<$ Text, $\\mathcal { O } >$ , where no visual information is involved. The “visual feature embedding” term in Figure 1 is a learnable embedding shared for all words. The training loss is from the standard task of Masked Language Modeling (MLM) as in BERT. ",
643
+ "bbox": [
644
+ 174,
645
+ 790,
646
+ 823,
647
+ 847
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "In summary, the pre-training on visual-linguistic corpus improves the detailed alignment between visual and linguistic contents. Such detailed alignment is vital for many downstream tasks (for example, in Visual Grounding (Kazemzadeh et al., 2014), the model locates the most relevant object or region in an image based on a natural language query). While the pre-training on text-only corpus facilitates downstream tasks involving understanding of long and complex sentences. ",
654
+ "bbox": [
655
+ 174,
656
+ 854,
657
+ 823,
658
+ 924
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "3.4 FINE-TUNING VL-BERT ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 176,
668
+ 103,
669
+ 387,
670
+ 117
671
+ ],
672
+ "page_idx": 6
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "VL-BERT is designed to be a generic feature representation for various visual-linguistic tasks. It is relatively simple to finetune VL-BERT for various downstream tasks. We simply need to feed VLBERT with properly formatted input and output, and finetune all the network parameters end-to-end. For the input, the typical formats of $<$ <Caption, Image> and $<$ Question, Answer, Image> cover the majority visual-linguistic tasks. VL-BERT also supports more sentences and more images as long as appropriate segment embeddings are introduced to identify different input sources. At the output, typically, the final output feature of the [CLS] element is used for sentence-image-relation level prediction. The final output features of words or RoIs are for word-level or RoI-level prediction. In addition to the input and output format, task-specific loss functions and training strategies also need to be tuned. See Section 4.2 for the detailed design choices and settings. ",
677
+ "bbox": [
678
+ 173,
679
+ 130,
680
+ 825,
681
+ 268
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "4 EXPERIMENT ",
688
+ "text_level": 1,
689
+ "bbox": [
690
+ 176,
691
+ 289,
692
+ 316,
693
+ 304
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "4.1 PRE-TRAINING ",
700
+ "text_level": 1,
701
+ "bbox": [
702
+ 176,
703
+ 320,
704
+ 318,
705
+ 333
706
+ ],
707
+ "page_idx": 6
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "As described in Section 3.3, we pre-train VL-BERT jointly on Conceptual Captions (Sharma et al., 2018) as visual-linguistic corpus, and BooksCorpus (Zhu et al., 2015) & English Wikipedia as textonly corpus. As VL-BERT is developed via adding new inputs capturing visual information to the original BERT model, we initialize the parameters to be the same as the original BERT described in (Devlin et al., 2018). VL-BERTBASE and VL-BERTLARGE denote models developed from the original BERTBASE and BERTLARGE models, respectively. The newly added parameters in VL-BERT are randomly initialized from a Gaussian distribution with mean of 0 and standard deviation of 0.02. Visual content embedding is produced by Faster $\\mathrm { R { \\mathrm { - } C N N + \\mathrm { R e s N e t { - } 1 0 1 } } }$ , initialized from parameters pre-trained on Visual Genome (Krishna et al., 2017) for object detection (see BUTD (Anderson et al., 2018)). ",
712
+ "bbox": [
713
+ 173,
714
+ 345,
715
+ 825,
716
+ 484
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "Prior to pre-training on Conceptual Captions, the pre-trained Faster R-CNN is applied to extract RoIs. Specifically, at most 100 RoIs with detection scores higher than 0.5 are selected for each image. At minimum, 10 RoIs are selected from one image, regardless of the detection score threshold. The detailed parameter settings are in Appendix. ",
723
+ "bbox": [
724
+ 174,
725
+ 491,
726
+ 825,
727
+ 547
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "4.2 FINE-TUNING ON DOWNSTREAM TASKS ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 176,
737
+ 564,
738
+ 491,
739
+ 579
740
+ ],
741
+ "page_idx": 6
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "The pre-trained VL-BERT model can be fine-tuned for various downstream visual-linguistic tasks, with simple modifications on the input format, output prediction, loss function and training strategy. ",
746
+ "bbox": [
747
+ 169,
748
+ 590,
749
+ 823,
750
+ 619
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "table",
756
+ "img_path": "images/727292a804b0fe1aa47e2567ee471ff29b56dcad4bbf30fbba66a15e829d02cc.jpg",
757
+ "table_caption": [
758
+ "4.2.1 VISUAL COMMONSENSE REASONING (VCR) ",
759
+ "Table 1: Comparison to the state-of-the-art methods with single model on the VCR dataset. $\\dagger$ indicates concurrent works. "
760
+ ],
761
+ "table_footnote": [],
762
+ "table_body": "<table><tr><td>Model</td><td>Q→A val</td><td>test</td><td>QA→R val</td><td>test</td><td>Q→AR val</td><td>test</td></tr><tr><td>R2C (Zellers et al., 2019)</td><td>63.8</td><td>65.1</td><td>67.2</td><td>67.3</td><td>43.1</td><td>44.0</td></tr><tr><td>ViLBERT (Lu et al.,2019)+</td><td>72.4</td><td>73.3</td><td>74.5</td><td>74.6</td><td>54.0</td><td>54.8</td></tr><tr><td>VisualBERT (Li et al.,2019b)†</td><td>70.8</td><td>71.6</td><td>73.2</td><td>73.2</td><td>52.2</td><td>52.4</td></tr><tr><td>B2T2 (Alberti et al.,2019)+</td><td>71.9</td><td>72.6</td><td>76.0</td><td>75.7</td><td>54.9</td><td>55.0</td></tr><tr><td>VL-BERTBAsE W/O pre-training</td><td>73.1</td><td>-</td><td>73.8</td><td>-</td><td>54.2</td><td>1</td></tr><tr><td>VL-BERTBASE</td><td>73.8</td><td>=</td><td>74.4</td><td>=</td><td>55.2</td><td>1</td></tr><tr><td>VL-BERTLARGE</td><td>75.5</td><td>75.8</td><td>77.9</td><td>78.4</td><td>58.9</td><td>59.7</td></tr></table>",
763
+ "bbox": [
764
+ 258,
765
+ 664,
766
+ 740,
767
+ 787
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Visual Commonsense Reasoning (VCR) focuses on higher-order cognitive and commonsense understanding of the given image. In the dataset of Zellers et al. (2019), given an image and a list of categorized RoIs, a question at cognition level is raised. The model should pick the right answer to the question and provide the rationale explanation. For each question, there are 4 candidate answers and 4 candidate rationales. This holistic task $( \\mathbf { Q } \\to \\mathbf { A R } )$ ) is decomposed into two sub-tasks wherein researchers can train specific individual models: question answering $( \\mathbf { Q } \\mathbf { A } )$ ) and answer justification $( \\mathrm { Q A } \\to \\mathrm { R }$ ). The released VCR dataset consists of $2 6 5 \\mathrm { k }$ pairs of questions, answers, and rationales, over $1 0 0 \\mathrm { k }$ unique movie scenes ( $1 0 0 \\mathrm { k }$ images). They are split into training, validation, and test sets consisting of 213k questions and 80k images, 27k questions and 10k images, and $2 5 \\mathrm { k }$ questions and $1 0 \\mathrm { k }$ images, respectively. ",
774
+ "bbox": [
775
+ 174,
776
+ 839,
777
+ 825,
778
+ 924
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "image",
784
+ "img_path": "images/8d93389419b06a119b0e9a5c8dba2e7e7897e9be07d33e6073828e5814699bba.jpg",
785
+ "image_caption": [
786
+ "Figure 2: Input and output formats for fine-tuning different visual-linguistic downstream tasks. "
787
+ ],
788
+ "image_footnote": [],
789
+ "bbox": [
790
+ 253,
791
+ 102,
792
+ 759,
793
+ 450
794
+ ],
795
+ "page_idx": 7
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "",
800
+ "bbox": [
801
+ 174,
802
+ 502,
803
+ 825,
804
+ 559
805
+ ],
806
+ "page_idx": 7
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "Our experimental protocol for VCR follows that in R2C (Zellers et al., 2019). The model is trained on the train split, and is evaluated at the val and test sets. In the original work R2C, task-specific “Grounding”, “Contextualization” and “Reasoning” modules are designed. Here we simply adopt the generic representation of VL-BERT for the task. Figure 2 (a) illustrates the input format, <Question, Answer, Image>. For the sub-task of $Q \\mathbf { A }$ , ‘Q’ and ‘A’ are filled to the Question section and Answer section respectively. For the sub-task of $\\mathrm { Q A } \\to \\mathrm { R }$ , the concatenation of $\\mathbf { \\bar { Q } } ^ { \\prime }$ and ‘A’ is filled to the Question section, and ‘R’ is filled to the Answer section. The input RoIs to VL-BERT are the ground-truth annotations in the dataset. The final output feature of [CLS] element is fed to a Softmax classifier for predicting whether the given Answer is the correct choice. During fine-tuning, we adopt two losses, the classification over the correctness of the answers and the RoI classification with linguistic clues. The detailed parameter settings are in Appendix. ",
811
+ "bbox": [
812
+ 174,
813
+ 565,
814
+ 825,
815
+ 718
816
+ ],
817
+ "page_idx": 7
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Table 1 presents the experiment results. Pre-training VL-BERT improves the performance by $1 . 0 \\%$ in the final $\\mathrm { Q } \\mathrm { A R }$ task, which validates the effectiveness of pre-training. Compared with R2C, we do not use ad-hoc task-specific modules. Instead, we simply adopt the generic representation of VL-BERT and jointly train the whole model end-to-end. Despite the same input, output and experimental protocol as R2C, VL-BERT outperforms R2C by large margins, indicating the power of our simple cross-modal architecture. Compared with other concurrent works, i.e., ViLBERT, VisualBERT and B2T2, our VL-BERT achieves the state-of-the-art performance. ",
822
+ "bbox": [
823
+ 174,
824
+ 724,
825
+ 825,
826
+ 823
827
+ ],
828
+ "page_idx": 7
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "4.2.2 VISUAL QUESTION ANSWERING (VQA) ",
833
+ "text_level": 1,
834
+ "bbox": [
835
+ 176,
836
+ 842,
837
+ 508,
838
+ 856
839
+ ],
840
+ "page_idx": 7
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "In the VQA task, given a natural image, a question at the perceptual level is asked, and the algorithm should generate / choose the correct answer. Here we conduct experiments on the widely-used VQA v2.0 dataset (Goyal et al., 2017), which is built based on the COCO (Lin et al., 2014) images. The VQA $\\mathrm { { v } } 2 . 0$ dataset is split into train ( $8 3 \\mathrm { k }$ images and 444k questions), validation (41k images and ",
845
+ "bbox": [
846
+ 174,
847
+ 867,
848
+ 823,
849
+ 924
850
+ ],
851
+ "page_idx": 7
852
+ },
853
+ {
854
+ "type": "table",
855
+ "img_path": "images/a733ca5a4f2a572b929e196e4727d7672b7b14f6b8acafac61e1d7c3d2af6b2c.jpg",
856
+ "table_caption": [
857
+ "Table 2: Comparison to the state-of-the-art methods with single model on the VQA dataset. $\\dagger$ indicates concurrent works. "
858
+ ],
859
+ "table_footnote": [],
860
+ "table_body": "<table><tr><td>Model</td><td>test-dev</td><td>test-std</td></tr><tr><td>BUTD (Anderson et al.,2018)</td><td>65.32</td><td>65.67</td></tr><tr><td>ViLBERT (Lu et al.,2019)†</td><td>70.55</td><td>70.92</td></tr><tr><td>VisualBERT (Li et al.,2019b)t LXMERT(Tan &amp; Bansal, 2019)†</td><td>70.80</td><td>71.00</td></tr><tr><td>VL-BERTBAsE W/o pre-training</td><td>72.42</td><td>72.54</td></tr><tr><td>VL-BERTBASE</td><td>69.58 71.16</td><td>1</td></tr><tr><td>VL-BERTLARGE</td><td></td><td>-</td></tr><tr><td></td><td>71.79</td><td>72.22</td></tr></table>",
861
+ "bbox": [
862
+ 325,
863
+ 101,
864
+ 673,
865
+ 212
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "$2 1 4 \\mathrm { k }$ questions), and test (81k images and $4 4 8 \\mathrm { k }$ questions) sets. Following the experimental protocol in BUTD (Anderson et al., 2018), for each question, the algorithm should pick the corresponding answer from a shared set consisting of 3,129 answers. ",
872
+ "bbox": [
873
+ 173,
874
+ 275,
875
+ 823,
876
+ 318
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Figure 2 (b) illustrates the input format for the VQA task, which is of $<$ <Question, Answer, Image>. As the possible answers are from a shared pool independent to the question, we only fill a [MASK] element to the Answer section. As in BUTD (Anderson et al., 2018), the input RoIs in VL-BERT are generated by a Faster R-CNN detector pre-trained on Visual Genome (Krishna et al., 2017). The answer prediction is made from a multi-class classifier based upon the output feature of the [MASK] element. During fine-tuning, the network training is driven by the multi-class cross-entropy loss over the possible answers. The detailed parameter settings are in Appendix. ",
883
+ "bbox": [
884
+ 173,
885
+ 324,
886
+ 825,
887
+ 422
888
+ ],
889
+ "page_idx": 8
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Table 2 presents our experimental results. Pre-training VL-BERT improves the performance by $1 . 6 \\%$ , which validates the importance of pre-training. VL-BERT shares the same input (i.e., question, image, and RoIs), output and experimental protocol with BUTD, a prevalent model specifically designed for the task. Still, VL-BERT surpasses BUTD by over $5 \\%$ in accuracy. Except for LXMERT, our VL-BERT achieves better performance than the other concurrent works. This is because LXMERT is pre-trained on massive visual question answering data (aggregating almost all the VQA datasets based on COCO and Visual Genome). While our model is only pre-trained on captioning and text-only dataset, where there is still gap with the VQA task. ",
894
+ "bbox": [
895
+ 173,
896
+ 429,
897
+ 825,
898
+ 541
899
+ ],
900
+ "page_idx": 8
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "4.2.3 REFERRING EXPRESSION COMPREHENSION ",
905
+ "text_level": 1,
906
+ "bbox": [
907
+ 174,
908
+ 556,
909
+ 531,
910
+ 570
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "table",
916
+ "img_path": "images/6588f65e136bfe960738b933792a9621aec18761277a989c2b13c7c502852dd4.jpg",
917
+ "table_caption": [],
918
+ "table_footnote": [
919
+ "Table 3: Comparison to the state-of-the-art methods with single model on the RefCOCO $^ +$ dataset. $\\dagger$ indicates concurrent work. "
920
+ ],
921
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">Ground-truth Regions</td><td colspan=\"3\">Detected Regions</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>MAttNet (Yu et al.,2018)</td><td>71.01</td><td>75.13</td><td>66.17</td><td>65.33</td><td>71.62</td><td>56.02</td></tr><tr><td>ViLBERT (Lu et al.,2019)†</td><td>-</td><td>-</td><td>1</td><td>72.34</td><td>78.52</td><td>62.61</td></tr><tr><td>VL-BERTBAsE W/o pre-training</td><td>74.41</td><td>77.28</td><td>67.52</td><td>66.03</td><td>71.87</td><td>56.13</td></tr><tr><td>VL-BERTBASE</td><td>79.88</td><td>82.40</td><td>75.01</td><td>71.60</td><td>77.72</td><td>60.99</td></tr><tr><td>VL-BERTLARGE</td><td>80.31</td><td>83.62</td><td>75.45</td><td>72.59</td><td>78.57</td><td>62.30</td></tr></table>",
922
+ "bbox": [
923
+ 235,
924
+ 584,
925
+ 761,
926
+ 680
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "A referring expression is a natural language phrase that refers to an object in an image. The referring expression comprehension task is to localize the object in an image with the given referring expression. We adopt the RefCOCO $^ +$ (Kazemzadeh et al., 2014) dataset for evaluation, consisting of 141k expressions for 50k referred objects in $2 0 \\mathrm { k }$ images in the COCO dataset (Lin et al., 2014). The referring expressions in $\\operatorname { R e f C O C O + }$ are forbidden from using absolute location words, e.g. left dog. Therefore the referring expressions focus on purely appearance-based descriptions. $\\operatorname { R e f C O C O + }$ are split into four sets, training set (train), validation set (val), and two testing sets (testA and testB). Images containing multiple people are in testA set, while images containing multiple objects of other categories are in testB set. There is no overlap between the training, validation and testing images. ",
933
+ "bbox": [
934
+ 173,
935
+ 734,
936
+ 825,
937
+ 861
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Figure 2 (c) illustrates the input format for referring expression comprehension , where the input format is of $<$ <Query, Image>. Model training and evaluation are conducted either on the groundtruth RoIs or on the detected boxes in MAttNet (Yu et al., 2018). And the results are reported either in the track of ground-truth regions or that of detected regions, respectively. During training, we compute the classification scores for all the input RoIs. For each RoI, a binary classification loss is applied. During inference, we directly choose the RoI with the highest classification score as the referred object of the input referring expression. The detailed parameter settings are in Appendix. ",
944
+ "bbox": [
945
+ 174,
946
+ 867,
947
+ 823,
948
+ 924
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "",
955
+ "bbox": [
956
+ 174,
957
+ 103,
958
+ 823,
959
+ 146
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Table 3 presents our experimental results. Pre-trained VL-BERT significantly improves the performance. Compared with MAttNet, VL-BERT is much simpler without task-specific architecture designs, yet much better. VL-BERT achieves comparable performance with the concurrent work of ViLBERT. ",
966
+ "bbox": [
967
+ 174,
968
+ 152,
969
+ 825,
970
+ 208
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "4.3 ABLATION STUDY ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 174,
980
+ 227,
981
+ 341,
982
+ 241
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "table",
988
+ "img_path": "images/d5f0ef1e3e5d02f52868f717e3368a22827af7daa1f6956e7952aeb9e88d5210.jpg",
989
+ "table_caption": [
990
+ "Table 4: Ablation study for VL-BERTBASE with $0 . 5 \\times$ fine-tuning epochs. "
991
+ ],
992
+ "table_footnote": [],
993
+ "table_body": "<table><tr><td>Settings</td><td>MaskedLanguage Modeling with Visual Clues</td><td>Masked RoI Classification with Linguistic Clues</td><td>Sentence-Image Relationship Prediction</td><td>with Text-only Corpus</td><td>Tuning Fast R-CNN</td><td>VCR Q→A val val</td><td>QA→R test-dev</td><td>VQA</td><td>RefCOCO+ Detected Regions val</td></tr><tr><td>w/o pre-training</td><td></td><td></td><td></td><td></td><td></td><td>72.9</td><td>73.0</td><td>69.5</td><td>62.7</td></tr><tr><td>(a)</td><td></td><td></td><td></td><td></td><td></td><td>72.9</td><td>73.1</td><td>71.0</td><td>69.1</td></tr><tr><td>(b)</td><td>√ √</td><td>√</td><td></td><td></td><td></td><td>73.0</td><td>73.1</td><td>71.1</td><td>70.7</td></tr><tr><td>(c)</td><td>√</td><td>√</td><td>√</td><td></td><td></td><td>72.2</td><td>72.4</td><td>70.3</td><td>69.5</td></tr><tr><td>(d)</td><td>√</td><td>√</td><td></td><td>√</td><td></td><td>73.4</td><td>73.8</td><td>71.1</td><td>70.7</td></tr><tr><td>VL-BERTBASE</td><td>√</td><td>√</td><td></td><td>√</td><td>√</td><td>73.8</td><td>73.9</td><td>71.2</td><td>71.1</td></tr></table>",
994
+ "bbox": [
995
+ 176,
996
+ 257,
997
+ 825,
998
+ 354
999
+ ],
1000
+ "page_idx": 9
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Table 4 ablates key design choices in pre-training VL-BERT. For experimental efficiency, the finetuning epoches of VL-BERT are of $0 . 5 \\times$ of those in Section 4.2, with only VL-BERTBASE model. ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 397,
1008
+ 825,
1009
+ 425
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Overall, the pre-training of VL-BERT improves the performance over all the three down-stream tasks (by comparing setting “w/o pre-training” and VL-BERTBASE). The improvement amplitude varies for different tasks. By comparing setting (a) to that of “w/o pre-training”, we see the benefits of Task #1, Masked Language Modeling with Visual Clues. By further incorporating Task #2, Masked RoI Classification with Linguistic Clues, the accuracy further improves on $\\operatorname { R e f C O C O + }$ , but gets stuck at VCR and VQA. This might be because only $\\operatorname { R e f C O C O + }$ utilizes the final output feature corresponding to [IMG] tokens for prediction. Thus the pre-training of such features is beneficial. Setting (c) incorporates the task of Sentence-Image Relationship Prediction as in ViLBERT (Lu et al., 2019) and LXMERT (Tan & Bansal, 2019). It would hurt accuracy on all the three downstream tasks. We guess the reason is because the task of Sentence-Image Relationship Prediction would introduce unmatched image and caption pairs as negative examples. Such unmatched samples would hamper the training of other tasks. Setting (d) adds text-only corpus during pre-training. Compared with setting (b), it improves the performance over all three down-stream tasks, and is most significant on VCR. This is because the task of VCR involves more complex and longer sentences than those in VQA and $_ \\mathrm { R e f C O C O + } 2$ . By further finetuning the network parameters of Fast R-CNN, which generates the visual features, we get the final setting of VL-BERTBASE. Such end-to-end training of the entire network is helpful for all the downstream tasks. ",
1016
+ "bbox": [
1017
+ 173,
1018
+ 433,
1019
+ 825,
1020
+ 667
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "5 CONCLUSION ",
1027
+ "text_level": 1,
1028
+ "bbox": [
1029
+ 176,
1030
+ 689,
1031
+ 318,
1032
+ 705
1033
+ ],
1034
+ "page_idx": 9
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "In this paper, we developed VL-BERT, a new pre-trainable generic representation for visuallinguistic tasks. Instead of using ad-hoc task-specific modules, VL-BERT adopts the simple yet powerful Transformer model as the backbone. It is pre-trained on the massive-scale Conceptual Captions dataset, together with text-only corpus. Extensive empirical analysis demonstrates that the pre-training procedure can better align the visual-linguistic clues, and thus benefit the downstream tasks. In the future, we would like to seek better pre-training tasks, which could beneficial more downstream tasks (e.g., Image Caption Generation). ",
1039
+ "bbox": [
1040
+ 174,
1041
+ 722,
1042
+ 825,
1043
+ 819
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "ACKNOWLEDGMENTS ",
1050
+ "text_level": 1,
1051
+ "bbox": [
1052
+ 176,
1053
+ 837,
1054
+ 326,
1055
+ 849
1056
+ ],
1057
+ "page_idx": 9
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "The work is partially supported by the National Natural Science Foundation of China under grand No.U19B2044 and No.61836011. ",
1062
+ "bbox": [
1063
+ 176,
1064
+ 859,
1065
+ 821,
1066
+ 887
1067
+ ],
1068
+ "page_idx": 9
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "REFERENCES ",
1073
+ "text_level": 1,
1074
+ "bbox": [
1075
+ 176,
1076
+ 102,
1077
+ 287,
1078
+ 118
1079
+ ],
1080
+ "page_idx": 10
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Chris Alberti, Jeffrey Ling, Michael Collins, and David Reitter. Fusion of detected objects in text for visual question answering. arXiv preprint arXiv:1908.05054, 2019. ",
1085
+ "bbox": [
1086
+ 173,
1087
+ 126,
1088
+ 823,
1089
+ 155
1090
+ ],
1091
+ "page_idx": 10
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Peter Anderson, Xiaodong He, Chris Buehler, Damien Teney, Mark Johnson, Stephen Gould, and Lei Zhang. 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, pp. 6077–6086, 2018. ",
1096
+ "bbox": [
1097
+ 174,
1098
+ 165,
1099
+ 826,
1100
+ 222
1101
+ ],
1102
+ "page_idx": 10
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pp. 2425–2433, 2015. ",
1107
+ "bbox": [
1108
+ 174,
1109
+ 232,
1110
+ 825,
1111
+ 275
1112
+ ],
1113
+ "page_idx": 10
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollar, and ´ C Lawrence Zitnick. Microsoft coco captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015. ",
1118
+ "bbox": [
1119
+ 173,
1120
+ 285,
1121
+ 826,
1122
+ 329
1123
+ ],
1124
+ "page_idx": 10
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 338,
1132
+ 823,
1133
+ 381
1134
+ ],
1135
+ "page_idx": 10
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1140
+ "bbox": [
1141
+ 169,
1142
+ 391,
1143
+ 823,
1144
+ 421
1145
+ ],
1146
+ "page_idx": 10
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In International conference on machine learning, pp. 647–655, 2014. ",
1151
+ "bbox": [
1152
+ 173,
1153
+ 430,
1154
+ 825,
1155
+ 474
1156
+ ],
1157
+ "page_idx": 10
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Difei Gao, Ruiping Wang, Shiguang Shan, and Xilin Chen. From two graphs to n questions: A vqa dataset for compositional reasoning on vision and commonsense. arXiv preprint arXiv:1908.02962, 2019. ",
1162
+ "bbox": [
1163
+ 173,
1164
+ 484,
1165
+ 825,
1166
+ 526
1167
+ ],
1168
+ "page_idx": 10
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015. ",
1173
+ "bbox": [
1174
+ 173,
1175
+ 536,
1176
+ 823,
1177
+ 566
1178
+ ],
1179
+ "page_idx": 10
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 580–587, 2014. ",
1184
+ "bbox": [
1185
+ 174,
1186
+ 575,
1187
+ 823,
1188
+ 619
1189
+ ],
1190
+ "page_idx": 10
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 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, pp. 6904–6913, 2017. ",
1195
+ "bbox": [
1196
+ 176,
1197
+ 628,
1198
+ 823,
1199
+ 672
1200
+ ],
1201
+ "page_idx": 10
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Bharath Hariharan, Pablo Arbelaez, Ross Girshick, and Jitendra Malik. Simultaneous detection and ´ segmentation. In European Conference on Computer Vision, pp. 297–312. Springer, 2014. ",
1206
+ "bbox": [
1207
+ 174,
1208
+ 683,
1209
+ 823,
1210
+ 712
1211
+ ],
1212
+ "page_idx": 10
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Kaiming He, Ross Girshick, and Piotr Dollar. Rethinking imagenet pre-training. ´ arXiv preprint arXiv:1811.08883, 2018. ",
1217
+ "bbox": [
1218
+ 173,
1219
+ 722,
1220
+ 825,
1221
+ 751
1222
+ ],
1223
+ "page_idx": 10
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Han Hu, Jiayuan Gu, Zheng Zhang, Jifeng Dai, and Yichen Wei. Relation networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3588–3597, 2018. ",
1228
+ "bbox": [
1229
+ 173,
1230
+ 761,
1231
+ 825,
1232
+ 804
1233
+ ],
1234
+ "page_idx": 10
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6700–6709, 2019. ",
1239
+ "bbox": [
1240
+ 173,
1241
+ 814,
1242
+ 823,
1243
+ 857
1244
+ ],
1245
+ "page_idx": 10
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2901–2910, 2017. ",
1250
+ "bbox": [
1251
+ 174,
1252
+ 867,
1253
+ 825,
1254
+ 924
1255
+ ],
1256
+ "page_idx": 10
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. Referitgame: Referring to objects in photographs of natural scenes. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 787–798, 2014. ",
1261
+ "bbox": [
1262
+ 176,
1263
+ 103,
1264
+ 821,
1265
+ 147
1266
+ ],
1267
+ "page_idx": 11
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1272
+ "bbox": [
1273
+ 171,
1274
+ 154,
1275
+ 823,
1276
+ 183
1277
+ ],
1278
+ "page_idx": 11
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Advances in neural information processing systems, pp. 3294–3302, 2015. ",
1283
+ "bbox": [
1284
+ 176,
1285
+ 190,
1286
+ 823,
1287
+ 233
1288
+ ],
1289
+ "page_idx": 11
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International Journal of Computer Vision, 123(1):32–73, 2017. ",
1294
+ "bbox": [
1295
+ 173,
1296
+ 241,
1297
+ 825,
1298
+ 297
1299
+ ],
1300
+ "page_idx": 11
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
1305
+ "bbox": [
1306
+ 173,
1307
+ 306,
1308
+ 823,
1309
+ 348
1310
+ ],
1311
+ "page_idx": 11
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291, 2019. ",
1316
+ "bbox": [
1317
+ 174,
1318
+ 356,
1319
+ 823,
1320
+ 386
1321
+ ],
1322
+ "page_idx": 11
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Gen Li, Nan Duan, Yuejian Fang, Daxin Jiang, and Ming Zhou. Unicoder-vl: A universal encoder for vision and language by cross-modal pre-training, 2019a. ",
1327
+ "bbox": [
1328
+ 171,
1329
+ 392,
1330
+ 823,
1331
+ 422
1332
+ ],
1333
+ "page_idx": 11
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019b. ",
1338
+ "bbox": [
1339
+ 171,
1340
+ 429,
1341
+ 823,
1342
+ 459
1343
+ ],
1344
+ "page_idx": 11
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ European conference on computer vision, pp. 740–755. Springer, 2014. ",
1349
+ "bbox": [
1350
+ 176,
1351
+ 467,
1352
+ 823,
1353
+ 511
1354
+ ],
1355
+ "page_idx": 11
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. ",
1360
+ "bbox": [
1361
+ 176,
1362
+ 517,
1363
+ 823,
1364
+ 560
1365
+ ],
1366
+ "page_idx": 11
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3431–3440, 2015. ",
1371
+ "bbox": [
1372
+ 171,
1373
+ 568,
1374
+ 823,
1375
+ 611
1376
+ ],
1377
+ "page_idx": 11
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. arXiv preprint arXiv:1908.02265, 2019. ",
1382
+ "bbox": [
1383
+ 173,
1384
+ 618,
1385
+ 820,
1386
+ 648
1387
+ ],
1388
+ "page_idx": 11
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. ",
1393
+ "bbox": [
1394
+ 171,
1395
+ 655,
1396
+ 821,
1397
+ 685
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014. ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 691,
1407
+ 823,
1408
+ 736
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018. ",
1415
+ "bbox": [
1416
+ 169,
1417
+ 742,
1418
+ 823,
1419
+ 772
1420
+ ],
1421
+ "page_idx": 11
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8), 2019. ",
1426
+ "bbox": [
1427
+ 171,
1428
+ 780,
1429
+ 823,
1430
+ 809
1431
+ ],
1432
+ "page_idx": 11
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015. ",
1437
+ "bbox": [
1438
+ 174,
1439
+ 816,
1440
+ 823,
1441
+ 859
1442
+ ],
1443
+ "page_idx": 11
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. 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), pp. 2556–2565, 2018. ",
1448
+ "bbox": [
1449
+ 174,
1450
+ 867,
1451
+ 825,
1452
+ 924
1453
+ ],
1454
+ "page_idx": 11
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "Chen Sun, Fabien Baradel, Kevin Murphy, and Cordelia Schmid. Contrastive bidirectional transformer for temporal representation learning. arXiv preprint arXiv:1906.05743, 2019a. ",
1459
+ "bbox": [
1460
+ 173,
1461
+ 103,
1462
+ 823,
1463
+ 133
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "Chen Sun, Austin Myers, Carl Vondrick, Kevin Murphy, and Cordelia Schmid. Videobert: A joint model for video and language representation learning. arXiv preprint arXiv:1904.01766, 2019b. ",
1470
+ "bbox": [
1471
+ 173,
1472
+ 140,
1473
+ 823,
1474
+ 171
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "Hao Tan and Mohit Bansal. Lxmert: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing, 2019. ",
1481
+ "bbox": [
1482
+ 176,
1483
+ 179,
1484
+ 821,
1485
+ 222
1486
+ ],
1487
+ "page_idx": 12
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017. ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 231,
1495
+ 823,
1496
+ 273
1497
+ ],
1498
+ "page_idx": 12
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Jesse Vig. A multiscale visualization of attention in the transformer model. arXiv preprint arXiv:1906.05714, 2019. URL https://arxiv.org/abs/1906.05714. ",
1503
+ "bbox": [
1504
+ 174,
1505
+ 281,
1506
+ 820,
1507
+ 311
1508
+ ],
1509
+ "page_idx": 12
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "Alex Wang and Kyunghyun Cho. Bert has a mouth, and it must speak: Bert as a markov random field language model. arXiv preprint arXiv:1902.04094, 2019. ",
1514
+ "bbox": [
1515
+ 173,
1516
+ 319,
1517
+ 820,
1518
+ 349
1519
+ ],
1520
+ "page_idx": 12
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. ",
1525
+ "bbox": [
1526
+ 173,
1527
+ 357,
1528
+ 825,
1529
+ 414
1530
+ ],
1531
+ "page_idx": 12
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019. ",
1536
+ "bbox": [
1537
+ 173,
1538
+ 422,
1539
+ 823,
1540
+ 465
1541
+ ],
1542
+ "page_idx": 12
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics, 2:67–78, 2014. ",
1547
+ "bbox": [
1548
+ 173,
1549
+ 473,
1550
+ 823,
1551
+ 517
1552
+ ],
1553
+ "page_idx": 12
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "Licheng Yu, Zhe Lin, Xiaohui Shen, Jimei Yang, Xin Lu, Mohit Bansal, and Tamara L Berg. Mattnet: Modular attention network for referring expression comprehension. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1307–1315, 2018. ",
1558
+ "bbox": [
1559
+ 173,
1560
+ 525,
1561
+ 823,
1562
+ 569
1563
+ ],
1564
+ "page_idx": 12
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6720–6731, 2019. ",
1569
+ "bbox": [
1570
+ 174,
1571
+ 577,
1572
+ 823,
1573
+ 621
1574
+ ],
1575
+ "page_idx": 12
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "Yuke Zhu, Oliver Groth, Michael Bernstein, and Li Fei-Fei. Visual7w: Grounded question answering in images. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4995–5004, 2016. ",
1580
+ "bbox": [
1581
+ 173,
1582
+ 628,
1583
+ 823,
1584
+ 672
1585
+ ],
1586
+ "page_idx": 12
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pp. 19–27, 2015. ",
1591
+ "bbox": [
1592
+ 174,
1593
+ 680,
1594
+ 826,
1595
+ 738
1596
+ ],
1597
+ "page_idx": 12
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "A APPENDIX ",
1602
+ "text_level": 1,
1603
+ "bbox": [
1604
+ 176,
1605
+ 102,
1606
+ 297,
1607
+ 117
1608
+ ],
1609
+ "page_idx": 13
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "A.1 COMPARISON AMONG VL-BERT AND OTHER WORKS ",
1614
+ "text_level": 1,
1615
+ "bbox": [
1616
+ 176,
1617
+ 138,
1618
+ 588,
1619
+ 152
1620
+ ],
1621
+ "page_idx": 13
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "Table 5 compares among VL-BERT and other concurrent works for pre-training generic visuallinguistic representations. ",
1626
+ "bbox": [
1627
+ 174,
1628
+ 167,
1629
+ 821,
1630
+ 196
1631
+ ],
1632
+ "page_idx": 13
1633
+ },
1634
+ {
1635
+ "type": "table",
1636
+ "img_path": "images/3268a63a92f11643105fc42a016f6c677a3a1bbb39847efa4d29a6d2f018d993.jpg",
1637
+ "table_caption": [],
1638
+ "table_footnote": [
1639
+ "‡ LXMERT is pre-trained on COCO Caption (Chen et al., 2015), VG Caption (Krishna et al., 2017), VG QA (Zhu et al., 2016), VQA (Antol et al., 2015) and GQA (Hudson & Manning, 2019). "
1640
+ ],
1641
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Architecture</td><td rowspan=1 colspan=1>Visual Token</td><td rowspan=1 colspan=1>Pre-train Datasets</td><td rowspan=1 colspan=1>Pre-train Tasks</td><td rowspan=1 colspan=1>Downstream Tasks</td></tr><tr><td rowspan=1 colspan=1>PublishedWorks</td><td rowspan=1 colspan=1>VideoBERT(Sun et al., 2019b)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>video frame</td><td rowspan=1 colspan=1>Cooking312K(Sun et al., 2019b)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-words prediction</td><td rowspan=1 colspan=1>1) zero-shot action classification2) video captioning</td></tr><tr><td rowspan=7 colspan=1>WorksUnderReview /Just GotAccepted</td><td rowspan=1 colspan=1>CBT(Sun et al., 2019a)</td><td rowspan=1 colspan=1>two single-modal Transformer(vision &amp; language respectively)+ one cross-modal Transformer</td><td rowspan=1 colspan=1>video frame</td><td rowspan=1 colspan=1>Cooking312K(Sun et al., 2019b)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature regression</td><td rowspan=1 colspan=1>1) action anticipation2) video captioning</td></tr><tr><td rowspan=1 colspan=1>ViLBERT(Lu et al., 2019)</td><td rowspan=1 colspan=1>one single-modal Transformer(language)+ one cross-modal Transformer(with restricted attention pattern)</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al., 2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature classification</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) grounding referring expressions4) image retrieval5) zero-shot image retrieval</td></tr><tr><td rowspan=1 colspan=1>B2T2(Alberti et al., 2019)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al.,2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling</td><td rowspan=1 colspan=1>1) visual commonsense reasoning</td></tr><tr><td rowspan=1 colspan=1>LXMERT(Tan &amp; Bansal, 2019)</td><td rowspan=1 colspan=1>two single-modal Transformer(vision &amp; language respectively)+ one cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>COCO Caption+ VG Caption+ VG QA+VQA+GQA</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3) masked visual-feature classification4) masked visual-feature regression5) visual question answering</td><td rowspan=1 colspan=1>1) visual question answering2) natural language visual reasoning</td></tr><tr><td rowspan=1 colspan=1>VisualBERT(Li et al., 2019b)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>COCO Caption(Chen et al., 2015)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) natural language visual reasoning4) grounding phrases</td></tr><tr><td rowspan=1 colspan=1>Unicoder-VL(Li et al., 2019a)</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al.,2018)</td><td rowspan=1 colspan=1>1) sentence-image alignment2) masked language modeling3)maskedvisual-featureclassification</td><td rowspan=1 colspan=1>1) image-text retrieval2)zero-shotimage-textretrieval</td></tr><tr><td rowspan=1 colspan=1>Our VL-BERT</td><td rowspan=1 colspan=1>single cross-modal Transformer</td><td rowspan=1 colspan=1>image RoI</td><td rowspan=1 colspan=1>Conceptual Captions(Sharma et al., 2018)+ BooksCorpus(Zhu et al.,2015)+ English Wikipedia</td><td rowspan=1 colspan=1>1) masked language modeling2) masked visual-feature classification</td><td rowspan=1 colspan=1>1) visual question answering2) visual commonsense reasoning3) grounding referring expressions</td></tr></table>",
1642
+ "bbox": [
1643
+ 176,
1644
+ 217,
1645
+ 823,
1646
+ 463
1647
+ ],
1648
+ "page_idx": 13
1649
+ },
1650
+ {
1651
+ "type": "text",
1652
+ "text": "Table 5: Comparison among our VL-BERT and other works seeking to derive pre-trainable generic representations for visual-linguistic tasks. ",
1653
+ "bbox": [
1654
+ 174,
1655
+ 483,
1656
+ 821,
1657
+ 511
1658
+ ],
1659
+ "page_idx": 13
1660
+ },
1661
+ {
1662
+ "type": "text",
1663
+ "text": "A.2 DETAILED EXPERIMENT SETTINGS ",
1664
+ "text_level": 1,
1665
+ "bbox": [
1666
+ 176,
1667
+ 553,
1668
+ 457,
1669
+ 566
1670
+ ],
1671
+ "page_idx": 13
1672
+ },
1673
+ {
1674
+ "type": "text",
1675
+ "text": "Pre-training is conducted on 16 Tesla V100 GPUs for $2 5 0 \\mathrm { k }$ iterations by SGD. In each mini-batch, 256 samples are drawn. Among them, 128 samples are of ${ < } \\mathbf { C }$ aption, Image $>$ pairs from Conceptual Captions, and the rest 128 samples are sequential tokens (at most 64 tokens for each sequence) from BooksCorpus & English Wikipedia. In SGD, Adam optimizer (Kingma & Ba, 2014) is applied, with base learning rate of $2 \\times 1 0 ^ { - 5 }$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 0 ^ { - 4 }$ , learning rate warmed up over the first 8,000 steps, and linear decay of the learning rate. All the parameters in VL-BERT and Fast R-CNN are jointly trained in both pre-training and fine-tuning phase. The visual feature input for textual corpus is a learnable embedding shared for all words. In the task of Masked RoI Classification with Linguistic Clues, the pixels lying in all the masked RoIs are set as zeros in the image. A box covering the whole image is added as a RoI and would not be masked. ",
1676
+ "bbox": [
1677
+ 173,
1678
+ 582,
1679
+ 825,
1680
+ 722
1681
+ ],
1682
+ "page_idx": 13
1683
+ },
1684
+ {
1685
+ "type": "text",
1686
+ "text": "For VCR, the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each mini-batch, 256 triplets of <Question, Answer, Image $>$ are sampled. In SGD, the basic mini-batch gradient descent is conducted, with base learning rate of $5 \\times \\mathrm { 1 \\bar { 0 } ^ { - 3 } }$ , momentum of 0.9, and weight decay of $1 0 ^ { - 4 }$ . The learning rate is linearly warmed up in the first 1,000 steps from an initial learning rate of 0, and is decayed by 0.1 at the 14-th and the 18-th epochs. ",
1687
+ "bbox": [
1688
+ 174,
1689
+ 728,
1690
+ 825,
1691
+ 797
1692
+ ],
1693
+ "page_idx": 13
1694
+ },
1695
+ {
1696
+ "type": "text",
1697
+ "text": "For VQA, the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each mini-batch, 256 triplets of $<$ <Question, Answer, Image $>$ are sampled. In SGD, Adam optimizer is applied, with base learning rate of $1 \\times 1 0 ^ { - 4 }$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 0 ^ { - 4 }$ , learning rate warmed up over the first 2,000 steps, and linear decay of the learning rate. ",
1698
+ "bbox": [
1699
+ 174,
1700
+ 804,
1701
+ 823,
1702
+ 861
1703
+ ],
1704
+ "page_idx": 13
1705
+ },
1706
+ {
1707
+ "type": "text",
1708
+ "text": "For $\\operatorname { R e f C O C O + }$ , the fine-tuning is conducted on 16 Tesla V100 GPUs for 20 epochs. In each minibatch, 256 pairs of $<$ <Query, Image $>$ are sampled. In SGD, Adam optimizer is applied, with base learning rate of $1 \\times 1 0 ^ { - 4 }$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , weight decay of $1 \\dot { 0 } ^ { - 4 }$ , learning rate warmed up over the first 500 steps, and linear decay of the learning rate. ",
1709
+ "bbox": [
1710
+ 174,
1711
+ 867,
1712
+ 823,
1713
+ 924
1714
+ ],
1715
+ "page_idx": 13
1716
+ },
1717
+ {
1718
+ "type": "image",
1719
+ "img_path": "images/27d26e5998a446d208137b24004ce833aead6fd5de0e5fa774c2524c34106ac3.jpg",
1720
+ "image_caption": [
1721
+ "Figure 3: Visualization of attention maps in pre-trained VL-BERTBASE. Line intensity indicates the magnitude of attention probability with the text token as query and the image RoI as key. The intensity is affinely rescaled to set the maximum value as 1 and the minimum as 0, across different heads in each layer. The index of network layer and attention head is counted from 0. "
1722
+ ],
1723
+ "image_footnote": [],
1724
+ "bbox": [
1725
+ 225,
1726
+ 89,
1727
+ 799,
1728
+ 852
1729
+ ],
1730
+ "page_idx": 14
1731
+ },
1732
+ {
1733
+ "type": "text",
1734
+ "text": "A.3 VISUALIZATION OF ATTENTION MAPS IN VL-BERT ",
1735
+ "text_level": 1,
1736
+ "bbox": [
1737
+ 174,
1738
+ 103,
1739
+ 576,
1740
+ 117
1741
+ ],
1742
+ "page_idx": 15
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "To better understand what VL-BERT learns from pre-training, we visualized the attention maps of pre-trained VL-BERT (without fine-tuning on downstream tasks) using BertViz3(Vig, 2019). ",
1747
+ "bbox": [
1748
+ 171,
1749
+ 128,
1750
+ 823,
1751
+ 159
1752
+ ],
1753
+ "page_idx": 15
1754
+ },
1755
+ {
1756
+ "type": "text",
1757
+ "text": "Some visualization results on COCO (Lin et al., 2014; Chen et al., 2015) val2017 set are shown in Figure 3. We can see different attention patterns across attention heads. For some attention heads, text tokens attend more on the associated image RoIs. While in some other heads, text tokens attend uniformly to all RoIs. It demonstrates the ability of VL-BERT in aggregating and aligning visuallinguistic contents. ",
1758
+ "bbox": [
1759
+ 174,
1760
+ 165,
1761
+ 825,
1762
+ 234
1763
+ ],
1764
+ "page_idx": 15
1765
+ }
1766
+ ]
parse/train/SygXPaEYvH/SygXPaEYvH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SygXPaEYvH/SygXPaEYvH_model.json ADDED
The diff for this file is too large to render. See raw diff