Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/1FvkSpWosOl/1FvkSpWosOl.md +575 -0
- parse/train/1FvkSpWosOl/1FvkSpWosOl_content_list.json +0 -0
- parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO.md +290 -0
- parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_content_list.json +1238 -0
- parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_middle.json +0 -0
- parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_model.json +0 -0
- parse/train/HJgXsjA5tQ/HJgXsjA5tQ.md +549 -0
- parse/train/HJgXsjA5tQ/HJgXsjA5tQ_content_list.json +0 -0
- parse/train/HJgXsjA5tQ/HJgXsjA5tQ_middle.json +0 -0
- parse/train/HJgXsjA5tQ/HJgXsjA5tQ_model.json +0 -0
- parse/train/HJguLo0cKQ/HJguLo0cKQ.md +255 -0
- parse/train/HJguLo0cKQ/HJguLo0cKQ_content_list.json +1343 -0
- parse/train/HJguLo0cKQ/HJguLo0cKQ_middle.json +0 -0
- parse/train/HJguLo0cKQ/HJguLo0cKQ_model.json +0 -0
- parse/train/MmCRswl1UYl/MmCRswl1UYl.md +325 -0
- parse/train/MmCRswl1UYl/MmCRswl1UYl_model.json +0 -0
- parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH.md +479 -0
- parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_content_list.json +0 -0
- parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_middle.json +0 -0
- parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_model.json +0 -0
- parse/train/S1xjdoC9Fm/S1xjdoC9Fm.md +284 -0
- parse/train/S1xjdoC9Fm/S1xjdoC9Fm_content_list.json +1557 -0
- parse/train/S1xjdoC9Fm/S1xjdoC9Fm_middle.json +0 -0
- parse/train/S1xjdoC9Fm/S1xjdoC9Fm_model.json +0 -0
- parse/train/SkFqf0lAZ/SkFqf0lAZ.md +222 -0
- parse/train/SkFqf0lAZ/SkFqf0lAZ_content_list.json +1139 -0
- parse/train/SkFqf0lAZ/SkFqf0lAZ_middle.json +0 -0
- parse/train/SkFqf0lAZ/SkFqf0lAZ_model.json +0 -0
- parse/train/V5V1vGrI2z/V5V1vGrI2z.md +234 -0
- parse/train/V5V1vGrI2z/V5V1vGrI2z_content_list.json +981 -0
- parse/train/V5V1vGrI2z/V5V1vGrI2z_middle.json +0 -0
- parse/train/V5V1vGrI2z/V5V1vGrI2z_model.json +0 -0
- parse/train/r1ejxnCctX/r1ejxnCctX.md +252 -0
- parse/train/r1ejxnCctX/r1ejxnCctX_content_list.json +1295 -0
- parse/train/r1ejxnCctX/r1ejxnCctX_middle.json +0 -0
- parse/train/r1ejxnCctX/r1ejxnCctX_model.json +0 -0
- parse/train/rkg-mA4FDr/rkg-mA4FDr.md +261 -0
- parse/train/rkg-mA4FDr/rkg-mA4FDr_content_list.json +1402 -0
- parse/train/rkg-mA4FDr/rkg-mA4FDr_middle.json +0 -0
- parse/train/rkg-mA4FDr/rkg-mA4FDr_model.json +0 -0
- vlm/train/-b5OSCydOMe/0.png +3 -0
- vlm/train/-b5OSCydOMe/1.png +3 -0
- vlm/train/-b5OSCydOMe/10.png +3 -0
- vlm/train/-b5OSCydOMe/11.png +3 -0
- vlm/train/-b5OSCydOMe/12.png +3 -0
- vlm/train/-b5OSCydOMe/2.png +3 -0
- vlm/train/-b5OSCydOMe/3.png +3 -0
- vlm/train/-b5OSCydOMe/4.png +3 -0
- vlm/train/-b5OSCydOMe/5.png +3 -0
- vlm/train/-b5OSCydOMe/6.png +3 -0
parse/train/1FvkSpWosOl/1FvkSpWosOl.md
ADDED
|
@@ -0,0 +1,575 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IS ATTENTION BETTER THAN MATRIX DECOMPOSITION?
|
| 2 |
+
|
| 3 |
+
Zhengyang $\mathbf { G e n g ^ { 1 , 2 } }$ , Meng-Hao $\mathbf { G u o ^ { 3 } }$ ∗, Hongxu Chen4, Xia $\mathbf { L i } ^ { 2 }$ , Ke Wei4, Zhouchen $\mathbf { L i n ^ { 2 , 5 } }$ † 1Zhejiang Lab; 2Key Lab. of Machine Perception (MoE), School of EECS, Peking University; 3Tsinghua University; 4School of Data Science, Fudan University; 5Pazhou Lab
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
As an essential ingredient of modern deep learning, attention mechanism, especially self-attention, plays a vital role in the global correlation discovery. However, is hand-crafted attention irreplaceable when modeling the global context? Our intriguing finding is that self-attention is not better than the matrix decomposition (MD) model developed 20 years ago regarding the performance and computational cost for encoding the long-distance dependencies. We model the global context issue as a low-rank completion problem and show that its optimization algorithms can help design global information blocks. This paper then proposes a series of Hamburgers, in which we employ the optimization algorithms for solving MDs to factorize the input representations into sub-matrices and reconstruct a low-rank embedding. Hamburgers with different MDs can perform favorably against the popular global context module self-attention when carefully coping with gradients back-propagated through MDs. Comprehensive experiments are conducted in the vision tasks where it is crucial to learn the global context, including semantic segmentation and image generation, demonstrating significant improvements over self-attention and its variants. Code is available.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Since self-attention and transformer (Vaswani et al., 2017) showed significant advantages over recurrent neural networks and convolutional neural networks in capturing long-distance dependencies, attention has been widely adopted by computer vision (Wang et al., 2018; Zhang et al., 2019a) and natural language processing (Devlin et al., 2019) for global information mining. However, is hand-crafted attention irreplaceable when modeling the global context?
|
| 12 |
+
|
| 13 |
+
This paper focuses on a new approach to design global context modules. The key idea is, if we formulate the inductive bias like the global context into an objective function, the optimization algorithm to minimize the objective function can construct a computational graph, i.e., the architecture we need in the networks. We particularize this idea by developing a counterpart for the most representative global context module, self-attention. Considering extracting global information in the networks as finding a dictionary and the corresponding codes to capture the inherent correlation, we model the context discovery as low-rank completion of the input tensor and solve it via matrix decomposition. This paper then proposes a global correlation block, Hamburger, by employing matrix decomposition to factorize the learned representation into sub-matrices so as to recover the clean low-rank signal subspace. The iterative optimization algorithm to solve matrix decomposition defines the central computational graph, i.e., Hamburger’s architecture.
|
| 14 |
+
|
| 15 |
+
Our work takes advantage of the matrix decomposition models as the foundation of Hamburger, including Vector Quantization (VQ) (Gray & Neuhoff, 1998), Concept Decomposition (CD) (Dhillon & Modha, 2001), and Non-negative Matrix Factorization (NMF) (Lee & Seung, 1999). Additionally, instead of directly applying Back-Propagation Through Time (BPTT) algorithm (Werbos et al., 1990) to differentiate the iterative optimization, we adopt a truncated BPTT algorithm, i.e., one-step gradient, to back-propagate the gradient effectively. We illustrate the advantages of Hamburger in the fundamental vision tasks where global information has been proven crucial, including semantic segmentation and image generation. The experiments prove that optimization-designed Hamburger can perform competitively with state-of-the-art attention models when avoiding the unstable gradient back-propagated through the iterative computational graph of MD. Hamburger sets new state-ofthe-art records on the PASCAL VOC dataset (Everingham et al., 2010) and PASCAL Context dataset (Mottaghi et al., 2014) for semantic segmentation and surpasses existing attention modules for GANs in the large scale image generation on ImageNet (Deng et al., 2009).
|
| 16 |
+
|
| 17 |
+
The contributions of this paper are listed as follows:
|
| 18 |
+
|
| 19 |
+
• We show a white-box approach to design global information blocks, i.e., by turning the optimization algorithm that minimizes an objective function, in which modeling the global correlation is formulated as a low-rank completion problem, into the architecture. We propose Hamburger, a light yet powerful global context module with ${ \mathcal { O } } ( n )$ complexity, surpassing various attention modules on semantic segmentation and image generation. We figure out that the main obstacle of applying MD in the networks is the unstable backward gradient through its iterative optimization algorithm. As a pragmatic solution, the proposed one-step gradient facilitates the training of Hamburger with MDs.
|
| 20 |
+
|
| 21 |
+
# 2 METHODOLOGY
|
| 22 |
+
|
| 23 |
+
# 2.1 WARM UP
|
| 24 |
+
|
| 25 |
+
Since matrix decomposition is pivotal to the proposed Hamburger, we first review the idea of matrix decomposition. A common view is that matrix decomposition factorizes the observed matrix into a product of several sub-matrices, e.g., Singular Value Decomposition. However, a more illuminating perspective is that, by assuming the generation process, matrix decomposition acts as the inverse of the generation, disassembling the atoms that make up the complex data. From the reconstruction of the original matrices, matrix decomposition recovers the latent structure of observed data.
|
| 26 |
+
|
| 27 |
+
Suppose that the given data are arranged as the columns of a large matrix $\pmb { X } = [ \pmb { x } _ { 1 } , \dots , \pmb { x } _ { n } ] \in \mathbb { R } ^ { d \times n }$ . A general assumption is that there is a low-dimensional subspace, or a union of multiple subspaces hidden in $\boldsymbol { X }$ . That is, there exists a dictionary matrix $D = [ \bar { \bf d } _ { 1 } , \boldsymbol { \cdot } \cdot \cdot , { \bf d } _ { r } ] \in \mathbb { R } ^ { d \times r }$ and corresponding codes $C = [ \mathbf { c } _ { 1 } , \cdot \cdot \cdot , \mathbf { c } _ { n } ] \in \mathbb { R } ^ { r \times n }$ that $\boldsymbol { X }$ can be expressed as
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
X = \overbrace { \bar { X } + E = D C } ^ { g e n e r a t i o n } + E ,
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
where $\bar { \boldsymbol { X } } \in \mathbb { R } ^ { d \times n }$ is the output low-rank reconstruction, and $\pmb { { \cal E } } \in \mathbb { R } ^ { d \times n }$ is the noise matrix to be discarded. Here we assume that the recovered matrix $\bar { X }$ has the low-rank property, such that
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\operatorname { r a n k } ( { \bar { X } } ) \leq \operatorname* { m i n } ( \operatorname { r a n k } ( D ) , \operatorname { r a n k } ( C ) ) \leq r \ll \operatorname* { m i n } ( d , n ) .
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
Different MDs can be derived by assuming structures to matrices $\mathbf { \delta } _ { D , C }$ , and $\pmb { { \cal E } }$ (Kolda & Bader, 2009; Udell et al., 2016). MD is usually formulated as an objective with various constraints and then solved by optimization algorithms, with classic applications to image denoising (Wright et al., 2009; Lu et al., 2014), inpainting (Mairal et al., 2010), and feature extraction (Zhang et al., 2012).
|
| 40 |
+
|
| 41 |
+
# 2.2 PROPOSED METHOD
|
| 42 |
+
|
| 43 |
+
We focus on building global context modules for the networks without painstaking hand-crafted design. Before starting our discussion, we review the representative hand-designed context block self-attention pithily.
|
| 44 |
+
|
| 45 |
+
The attention mechanism aims at finding a group of concepts for further conscious reasoning from massive unconscious context (Xu et al., 2015; Bengio, 2017; Goyal et al., 2019). As a representative, self-attention (Vaswani et al., 2017) is proposed for learning long-range dependencies in machine translation,
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
{ \mathrm { A t t e n t i o n } } \left( Q , K , V \right) = { \mathrm { s o f t m a x } } \left( { \frac { Q K ^ { \top } } { \sqrt { d } } } \right) V ,
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
where $Q , K , V \in \mathbb { R } ^ { n \times d }$ are features projected by linear transformations from the input. Selfattention extracts global information via attending all tokens at a time rather than the typical one-byone processing of recurrent neural networks.
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
Figure 1: Overview of Hamburger
|
| 55 |
+
|
| 56 |
+
Though self-attention and its variants achieved great success, researchers are confronted with (1) developing new global context modules based on self-attention, typically via hand-crafted engineering, and (2) explaining why current attention models work. This paper bypasses both issues and finds a method to easily design global context modules via a well-defined white-box toolkit. We try to formulate the human inductive bias, like the global context, as an objective function and use the optimization algorithm to solve such a problem to design the module’s architecture. The optimization algorithm creates a computational graph, takes some input, and finally outputs the solution. We apply the computational graph of optimization algorithms for the central part of our context module.
|
| 57 |
+
|
| 58 |
+
Based on this approach, we need to model the networks’ global information issue as an optimization problem. Take the convolutional neural networks (CNN) as an example for further discussion. The networks output a tensor $\mathcal { X } \in \mathbb { R } ^ { C \times H \times W }$ after we feed into an image. Since the tensor can be seen as a set of $H W C$ -dimensional hyper-pixels, we unfold the tensor into a matrix $\pmb { X } \in \mathbb { R } ^ { C \times H W }$ . When the module learns the long-range dependencies or the global context, the hidden assumption is that the hyper-pixels are inherently correlated. For the sake of simplicity, we assume that hyper-pixels are linearly dependent, which means that each hyper-pixel in $\boldsymbol { X }$ can be expressed as the linear combination of bases whose elements are typically much less than $H W$ . In the ideal situation, the global information hidden in $\boldsymbol { X }$ can be low-rank. However, due to vanilla CNN’s poor ability to model the global context (Wang et al., 2018; Zhang et al., 2019a), the learned $\boldsymbol { X }$ is usually corrupted with redundant information or incompleteness. The above analysis suggests a potential method to model the global context, i.e., by completing the low-rank part $\bar { X }$ in the unfolded matrix $\boldsymbol { X }$ and discarding the noise part $\pmb { \cal E }$ , using the classic matrix decomposition models described in Eq. (1), which filters out the redundancy and incompleteness at the same time. We thus model learning the global context as a low-rank completion problem with matrix decomposition as its solution. Using the notion of Sec. 2.1, the general objective function of matrix decomposition is
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\operatorname* { m i n } _ { D , C } \mathcal { L } ( X , D C ) + \mathcal { R } _ { 1 } ( D ) + \mathcal { R } _ { 2 } ( C )
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
where $\mathcal { L }$ is the reconstruction loss, $\mathcal { R } _ { 1 }$ and $\mathcal { R } _ { 2 }$ are regularization terms for the dictionary $_ D$ and the codes $C$ . Denote the optimization algorithm to minimize Eq. (4) as $\mathcal { M } . \mathcal { M }$ is the core architecture we deploy in our global context module. To help readers further understand this modeling, We also provide a more intuitive illustration in Appendix G.
|
| 65 |
+
|
| 66 |
+
In the later sections, we introduce our global context block, Hamburger, and then discuss detailed MD models and optimization algorithms for $\mathcal { M }$ . Finally, we handle the gradient issue for back-propagation through matrix decomposition.
|
| 67 |
+
|
| 68 |
+
# 2.2.1 HAMBURGER
|
| 69 |
+
|
| 70 |
+
Hamburger consists of one slice of “ham” (matrix decomposition) and two slices of “bread” (linear transformation). As the name implies, Hamburger first maps the input $\boldsymbol { Z } \in \mathbb { R } ^ { d _ { z } \times n }$ into feature space with a linear transformation $W _ { l } ^ { ' } \in \mathbb { R } ^ { d \times d _ { z } }$ , namely “lower bread”, then uses matrix decomposition $\mathcal { M }$ to solve a low-rank signal subspace, corresponding to the “ham”, and finally transforms extracted signals into the output with another linear transformation $W _ { u } \in \mathbb { R } ^ { d _ { z } \times d }$ , called “upper bread”,
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array} { r } { \mathcal { H } ( Z ) = W _ { u } \mathcal { M } ( W _ { l } Z ) , } \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $\mathcal { M }$ is matrix decomposition to recover the clear latent structure, functioning as a global nonlinearity. Detailed architectures of $\mathcal { M }$ , i.e., optimization algorithms to factorize $\boldsymbol { X }$ , are discussed in Sec. 2.2.2. Fig. 1 describes the architecture of Hamburger, where it collaborates with the networks via Batch Normalization (BN) (Ioffe & Szegedy, 2015), a skip connection, and finally outputs $\mathbf { Y }$ ,
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\begin{array} { r } { Y = Z + \mathrm { B N } ( \mathcal { H } ( Z ) ) . } \end{array}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
# 2.2.2 HAMS
|
| 83 |
+
|
| 84 |
+
This section describes the structure of “ham”, i.e., $\mathcal { M }$ in Eq. (5). As discussed in the previous section, by formulating the global information discovery as an optimization problem of MD, algorithms to solve MD naturally compose $\mathcal { M } , \mathcal { M }$ takes the output of “lower bread” as its input and computes a low-rank reconstruction as its output, denoted as $\boldsymbol { X }$ and $\bar { X }$ , respectively.
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\mathcal { M } ( X ) = \bar { X } = D C .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
We investigate two MD models for $\mathcal { M }$ , Vector Quantization (VQ), and Non-negative Matrix Factorization (NMF) to solve $_ D$ and $C$ and reconstruct $\bar { X }$ , while leaving Concept Decomposition (CD) to Appendix B. The selected MD models are introduced briefly because we endeavor to illustrate the importance of the low-rank inductive bias and the optimization-driven designing method for global context modules rather than any specific MD models. It is preferred to abstract the MD part as a whole, i.e., $\mathcal { M }$ in the context of this paper, and focus on how Hamburger can show the superiority in its entirety.
|
| 91 |
+
|
| 92 |
+
Vector Quantization Vector Quantization (VQ) (Gray & Neuhoff, 1998), a classic data compression algorithm, can be formulated as an optimization problem in term of matrix decomposition:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\operatorname* { m i n } _ { D , C } \| X - D C \| _ { F } \quad { \mathrm { s . t . ~ } } \mathbf { c } _ { i } \in \{ \mathbf { e } _ { 1 } , \mathbf { e } _ { 2 } , \cdot \cdot \cdot , \mathbf { e } _ { r } \} ,
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $e _ { i }$ is the canonical basis vector, $\mathbf { e } _ { i } = [ 0 , \cdots , 1 , \cdots , 0 ] ^ { \top }$ . The solution to minimize the ith
|
| 99 |
+
objective in Eq. (8) is K-means (Gray & Neuhoff, 1998). However, to ensure that VQ is differentiable, we replace the hard arg min and Euclidean distance with sof tmax and cosine similarity, leading to Alg. 1, where cosine(D, X) is a similarity matrix whose entries satisfy cosine(D, X)ij = d>i xjkdkkxk , and sof tmax is applied column-wise and $T$ is the temperature. Further we can obtain a hard assignment by a one-hot vector when $T 0$ .
|
| 100 |
+
|
| 101 |
+
<table><tr><td>Algorithm 1 Ham: Soft VQ</td></tr><tr><td>Input X. Initialize D, C.</td></tr><tr><td>for k from 1 to K do</td></tr><tr><td>C ← softmax(⊥cosine(D,X))</td></tr><tr><td>D ← XCTdiag(C1n)-1</td></tr><tr><td>end for</td></tr><tr><td>Output X = DC.</td></tr></table>
|
| 102 |
+
|
| 103 |
+
<table><tr><td>Algorithm2Ham:NMF with MU</td></tr><tr><td>Input X. Initialize non-negative D, C</td></tr><tr><td>for k from 1 to K do (DTX)ij</td></tr><tr><td>Cij←Cij (DT DC)ij</td></tr><tr><td>(xCT)ij Dij←Dij</td></tr><tr><td>(DCCT)ij end for</td></tr><tr><td>Output X = DC.</td></tr></table>
|
| 104 |
+
|
| 105 |
+
Non-negative Matrix Factorization If we impose non-negative constraints on the dictionary $_ { D }$ and the codes $C$ , it leads to Non-negative Matrix Factorization (NMF) (Lee & Seung, 1999):
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\operatorname* { m i n } _ { D , C } \| X - D C \| _ { F } \quad \mathrm { s . t . } D _ { i j } \geq 0 , C _ { j k } \geq 0 .
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
To satisfy the non-negative constraints, we add a ReLU non-linearity before putting $\boldsymbol { X }$ into NMF. We apply the Multiplicative Update (MU) rules (Lee & Seung, 2001) in Alg. 2 to solve NMF, which guarantees the convergence.
|
| 112 |
+
|
| 113 |
+
As white-box global context modules, VQ, CD, and NMF are straightforward and light, showing remarkable efficiency. They are formulated into optimization algorithms that mainly consist of matrix multiplications with the complexity $\mathcal { O } ( n d r )$ , much cheaper than complexity $\mathcal { O } ( n ^ { 2 } \bar { d } )$ in self-attention as $r \ll n$ . All three MDs are memory-friendly since they avoid generating a large $n \times n$ matrix as an intermediate variable, like the product of $Q$ and $\kappa$ of self-attention in Eq. (3). In the later section, our experiments prove MDs are at least on par with self-attention, though the architectures of $\mathcal { M }$ are created by optimization and look different from classic dot product self-attention.
|
| 114 |
+
|
| 115 |
+
# 2.3 ONE-STEP GRADIENT
|
| 116 |
+
|
| 117 |
+
Since $\mathcal { M }$ involves an optimization algorithm as its computational graph, a crux to fuse it into the networks is how the iterative algorithm back-propagates gradient. The RNN-like behavior of optimization suggests Back-Propagation Through Time (BPTT) algorithm (Werbos et al., 1990) as the standard choice to differentiate the iterative process. We first review the BPTT algorithm below. However, in practice, the unstable gradient from BPTT does harm Hamburger’s performances. Hence we build an abstract model to analyze the drawbacks of BPTT and try to find a pragmatic solution while considering MD’s nature as an optimization algorithm.
|
| 118 |
+
|
| 119 |
+
As shown in Fig. 2, x, y and $\mathbf { h } ^ { t }$ denote input, output and intermediate result at time step $t$ , respectively, while $\mathcal { F }$ and $\mathcal { G }$ are operators. At each time step, the model receives the same input $\mathbf { x }$ processed by the underlying networks.
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\begin{array} { r } { \mathbf { h } ^ { t + 1 } = \mathcal { F } ( \mathbf { h } ^ { t } , \mathbf { x } ) . } \end{array}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
The intermediate results $\mathbf { h } ^ { i }$ are all discarded. Only the output of the last step $\mathbf { h } ^ { t }$ is passed through $\mathcal { G }$ for output $\mathbf { y }$ ,
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\mathbf { y } = \mathcal { G } ( \mathbf { h } ^ { t } ) .
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
In the BPPT algorithm, the gradient from output $\mathbf { y }$ to input $\mathbf { x }$ is given, according to the Chain rule:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\frac { \partial \mathbf { y } } { \partial \mathbf { x } } = \sum _ { i = 0 } ^ { t - 1 } \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \left( \prod _ { j = t - i } ^ { t - 1 } \frac { \partial \mathbf { h } ^ { j + 1 } } { \partial \mathbf { h } ^ { j } } \right) \frac { \partial \mathbf { h } ^ { t - i } } { \partial \mathbf { x } } .
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 2: One-step Gradient
|
| 139 |
+
|
| 140 |
+
A thought experiment is to consider $t \to \infty$ , leading to a fully converged result $\mathbf { h } ^ { * }$ and infinite terms in Eq. (12). We suppose
|
| 141 |
+
|
| 142 |
+
that both $\mathcal { F }$ and $\mathcal { G }$ are Lipschitz with constants $L _ { h }$ w.r.t. h, $L _ { x } w . r . t . \textbf { x }$ , and $L _ { \mathcal { G } }$ , and $L _ { h } < 1$ . Note that these assumptions apply to a large number of optimization or numerical methods. Then we have:
|
| 143 |
+
|
| 144 |
+
Proposition 1 $\{ \mathbf { h } ^ { i } \} _ { t }$ has linear convergence.
|
| 145 |
+
|
| 146 |
+
Proposition 2
|
| 147 |
+
|
| 148 |
+
Table 1: One-step Gradient & BPTT
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Method</td><td>One-step</td><td>BPTT</td></tr><tr><td>VQ</td><td>77.7(77.4)</td><td>76.6(76.3)</td></tr><tr><td>CD</td><td>78.1(77.5)</td><td>75.0(74.6)</td></tr><tr><td>NMF</td><td>78.3(77.8)</td><td>77.4(77.0)</td></tr></table>
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\begin{array} { r l } & { \underset { t \infty } { \operatorname* { l i m } } \frac { \partial \mathbf { y } } { \partial \mathbf { x } } = \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { * } } ( I - \frac { \partial \mathcal { F } } { \partial \mathbf { h } ^ { * } } ) ^ { - 1 } \frac { \partial \mathcal { F } } { \partial \mathbf { x } } . } \\ & { \underset { t \infty } { \operatorname* { l i m } } \Vert \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { 0 } } \Vert = 0 , \underset { t \infty } { \operatorname* { l i m } } \Vert \frac { \partial \mathbf { y } } { \partial \mathbf { x } } \Vert \leq \frac { L _ { \mathcal { G } } L _ { x } } { 1 - L _ { h } } . } \end{array}
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
Proposition 3
|
| 157 |
+
|
| 158 |
+
It is easy to incur gradient vanishing w.r.t. $\mathbf { h } ^ { 0 }$ when $L _ { h }$ is close to 0 and gradient explosion w.r.t. $\mathbf { x }$ $\begin{array} { r } { ( { I - \frac { \partial \mathcal { F } } { \partial { \bf h ^ { * } } } } ) ^ { - 1 } } \end{array}$ when $L _ { h }$ is close to 1. The Jacobian matrix when the largest eigenvalue of $\textstyle { \frac { \partial { \mathcal { F } } } { \partial \mathbf { h } } }$ , i.e., the Lipschitz constant of ∂x , moreover, suffers from an ill-conditioned term $\mathcal { F }$ w.r.t. h, approaches 1 and its minimal eigenvalue typically stays near 0, thus restricts the capability of the gradient to search the well-generalized solution in the parameter space. The erratic scale and spectrum of the gradient back through the optimization algorithm indicate the infeasibility to apply BPTT to Hamburger directly, corroborated by the experiments in Tab. 1, using the same ablation settings as Sec. 3.1.
|
| 159 |
+
|
| 160 |
+
The analysis inspires us a possible solution. Note that there are a multiplication of multiple Jacobian matrices ∂hj∂hj−1 and a summation of an infinite series in BPTT algorithm, leading to uncontrollable scales of gradients. It enlightens us to drop some minor terms in the gradient while preserving its dominant terms to ensure the direction is approximately right. Considering terms of Eq. (12) as a series, i.e., $\begin{array} { r } { \{ \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \left( \prod _ { j = t - i } ^ { t - 1 } \frac { \partial \mathbf { h } ^ { j + 1 } } { \partial \mathbf { h } ^ { j } } \right) \frac { \partial \mathbf { h } ^ { t - i } } { \partial \mathbf { x } } \} _ { i } } \end{array}$ , it makes sense to use the first term of this series to approximate the gradient if the scale of its terms decays exponentially measured by the operator norm. The first term of the gradient is from the last step of optimization, leading to the one-step gradient,
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\widehat { \frac { \partial \mathbf { y } } { \partial \mathbf { x } } } = \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \frac { \partial \mathbf { h } ^ { t } } { \partial \mathbf { x } } .
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
The one-step gradient is a linear approximation of the BPTT algorithm when $t \to \infty$ according to the Proposition 2. It is easy to implement, requiring a no_grad operation in PyTorch (Paszke et al., 2019) or stop_gradient operation in TensorFlow (Abadi et al., 2016) and reducing the time and space complexity from $\mathcal { O } ( t )$ in BPTT to $\mathcal { O } ( 1 )$ . We test adding more terms to the gradient but its performance is worse than using one step. According to experimental results, one-step gradient is acceptable to back-propagate gradient through MDs.
|
| 167 |
+
|
| 168 |
+
Table 2: Ablation on components of Hamburger with NMF Ham.
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Method</td><td>mIoU(%)</td><td>Params</td></tr><tr><td>baseline</td><td>75.9(75.7)</td><td>32.67M</td></tr><tr><td>basic</td><td>78.3(77.8)</td><td>+0.50M</td></tr><tr><td> - ham</td><td>75.8(75.6)</td><td>+0.50M</td></tr><tr><td>- upper bread</td><td>77.0(76.8)</td><td>+0.25M</td></tr><tr><td>- lower bread</td><td>77.3(77.2)</td><td>+0.25M</td></tr><tr><td>only ham</td><td>77.0(76.8)</td><td>+0M</td></tr></table>
|
| 171 |
+
|
| 172 |
+
# 3 EXPERIMENTS
|
| 173 |
+
|
| 174 |
+
In this section we present experimental results demonstrating the techniques described above. Two vision tasks that benefit a lot from global information and attention mechanism attract us, including semantic segmentation (over 50 papers using attention) and deep generative models like GANs (most state-of-the-art GANs adopt self-attention since SAGAN (Zhang et al., 2019a)). Both tasks are highly competitive and thus enough for comparing Hamburger with self-attention. Ablation studies show the importance of MD in Hamburger as well as the necessity of the one-step gradient. We emphasize the superiority of Hamburger on modeling global context over self-attention regarding both performance and computational cost.
|
| 175 |
+
|
| 176 |
+
# 3.1 ABLATION EXPERIMENTS
|
| 177 |
+
|
| 178 |
+
We choose to conduct all ablation experiments on the PASCAL VOC dataset (Everingham et al., 2010) for semantic segmentation, and report mIoU of 5 runs on the validation set in the form of best(mean). ResNet-50 (He et al., 2016) with output stride 16 is the backbone for all ablation experiments. We employ a $3 \times 3$ conv with BN (Ioffe & Szegedy, 2015) and ReLU to reduce channels from 2048 to 512 and then add Hamburger, the same location as popular attentions in semantic segmentation. For detailed training settings, please see Appendix E.1.
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 3: Ablation on $d$ and $r$
|
| 182 |
+
|
| 183 |
+
Breads and Hams We ablate each part of the Hamburger. Removing MD (ham) causes the most severe decay in performance, attesting to the importance of MD. Even if only the parameter-free MD is added (only ham), the performance can visibly improve. Parameterization also helps the Hamburger process the extracted features. Bread, especially upper bread, contributes considerable performance.
|
| 184 |
+
|
| 185 |
+
Latent Dimension $d$ and $r$ It is worth noting that there is no simple linear relation between $d$ and $r$ with performances measured by mIoU, though $d = 8 r$ is a satisfactory choice. Experiments show that even $r = 8$ performs well, revealing that it can be very cheap for modeling the global context.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
Figure 4: Ablation on $K$
|
| 189 |
+
|
| 190 |
+
Iterations $K$ We test more optimization steps in the evaluation stage. In general, the same $K$ for training and test is recommended. $K = 6$ is enough for CD and NMF, while even $K = 1$ is acceptable for VQ. Typically $3 { \sim } 6$ steps are enough since simple MD’s prior is still biased, and full convergence can overfit it. The few iterations are cheap and act as early stopping.
|
| 191 |
+
|
| 192 |
+
# 3.2 A CLOSE LOOK AT HAMBURGER
|
| 193 |
+
|
| 194 |
+
To understand the behavior of Hamburger in the networks, we visualize the spectrums of representations before and after Hamburger on the PASCAL VOC validation set. The input and output tensors are unfolded to $\mathbb { R } ^ { C \times H W }$ . The accumulative ratio of squared largest $r$ singular values over total squared singular values of the unfolded matrix has been shown in Fig. 5. A truncated spectrum is usually observed in classic matrix decomposition models’ results due to the low-rank reconstruction. In the networks, Hamburger also promotes energy concentration while preserving informative details via the skip connection. Additionally, we visualize the feature maps before and after Hamburger in Fig. 6. MD helps Hamburger learn interpretable global information by zeroing out uninformative channels, removing irregular noises, and completing details according to the context.
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 5: Accumulative Ratio
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
Figure 6: Visualization of feature maps
|
| 201 |
+
|
| 202 |
+
# 3.3 A COMPARISON WITH ATTENTION
|
| 203 |
+
|
| 204 |
+
This section shows the advantages of MD-based Hamburger over attention-related context modules in computational cost, memory consumption, and inference time. We compare Hamburger (Ham) with self-attention (SA) (Vaswani et al., 2017), Dual Attention (DA) module from DANet (Fu et al., 2019), Double Attention module from $A ^ { 2 }$ Net (Chen et al., 2018b), APC module from APCNet (He et al., 2019b), DM module from DMNet (He et al., 2019a), ACF module from CFNet (Zhang et al., 2019b), reporting parameters and costs of processing a tensor $\mathcal { Z } \in \mathbb { R } ^ { 1 \times 5 1 2 \times 1 2 8 \times 1 2 8 }$ in Tab. 3. Excessive memory usage is the key bottleneck of cooperating with attention in real applications. Hence we also provide the GPU load and inference time on NVIDIA TITAN Xp. In general, Hamburger is light in computation and memory compared with attention-related global context modules.
|
| 205 |
+
|
| 206 |
+
Table 3: Comparisons between Hamburger and context modules.
|
| 207 |
+
|
| 208 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Params</td><td rowspan="2">MACs</td><td colspan="2">GPU Load</td><td colspan="2">GPU Time</td></tr><tr><td>Train</td><td>Infer</td><td>Train</td><td>Infer</td></tr><tr><td>SA</td><td>1.00M</td><td>292G</td><td>5253MB</td><td>2148MB</td><td>242.0ms</td><td>82.2ms</td></tr><tr><td>DA</td><td>4.82M</td><td>79.5G</td><td>2395MB</td><td>2203MB</td><td>72.6ms</td><td>64.4ms</td></tr><tr><td>A2</td><td>1.01M</td><td>25.7G</td><td>326MB</td><td>165MB</td><td>22.9ms</td><td>8.0ms</td></tr><tr><td>APC</td><td>2.03M</td><td>17.6G</td><td>458MB</td><td>264MB</td><td>26.5ms</td><td>11.6ms</td></tr><tr><td>DM</td><td>3.00M</td><td>35.1G</td><td>557MB</td><td>268MB</td><td>65.7ms</td><td>23.3ms</td></tr><tr><td>ACF</td><td>0.75M</td><td>79.5G</td><td>1380MB</td><td>627MB</td><td>71.0ms</td><td>22.6ms</td></tr><tr><td>Ham (CD)</td><td>0.50M</td><td>16.2G</td><td>162MB</td><td>102MB</td><td>20.0ms</td><td>13.0ms</td></tr><tr><td>Ham (NMF)</td><td>0.50M</td><td>17.6G</td><td>202MB</td><td>98MB</td><td>15.6ms</td><td>7.7ms</td></tr></table>
|
| 209 |
+
|
| 210 |
+
# 3.4 SEMANTIC SEGMENTATION
|
| 211 |
+
|
| 212 |
+
We benchmark Hamburger on the PASCAL VOC dataset (Everingham et al., 2010), and the PASCAL Context dataset (Mottaghi et al., 2014), against state-of-the-art attentions. We use ResNet-101 (He et al., 2016) as our backbone. The output stride of the backbone is 8. The segmentation head is the same as ablation experiments. NMF is usually better than CD and VQ in ablation studies (see Tab. 1). Therefore, we mainly test NMF in further experiments. We use HamNet to represent ResNet with Hamburger in the following section.
|
| 213 |
+
|
| 214 |
+
Results on the PASCAL VOC test set, and the PASCAL Context validation set, are illustrated in Tab. 4, and Tab. 5, respectively. We mark all attention-based models with ∗ in which diverse attentions compose the segmentation heads. Though semantic segmentation is a saturated task, and most contemporary published works have approximate performances, Hamburger shows considerable improvements over previous state-of-the-art attention modules.
|
| 215 |
+
|
| 216 |
+
Table 4: Comparisons with state-of-the-art on the PASCAL VOC test set w/o COCO pretraining.
|
| 217 |
+
|
| 218 |
+
<table><tr><td>Method</td><td>mIoU(%)</td></tr><tr><td>PSPNet (Zhao et al., 2017)</td><td>82.6</td></tr><tr><td>DFN* (Yu et al., 2018)</td><td>82.7</td></tr><tr><td>EncNet (Zhang et al., 2018)</td><td>82.9</td></tr><tr><td>DANet* (Fu et al., 2019)</td><td>82.6</td></tr><tr><td>DMNet* (He et al., 2019a)</td><td>84.4</td></tr><tr><td>APCNet* (He et al., 2019b)</td><td>84.2</td></tr><tr><td>CFNet* (Zhang et al., 2019b)</td><td>84.2</td></tr><tr><td>SpyGR* (Li et al., 2020)</td><td>84.2</td></tr><tr><td>SANet* (Zhong et al., 2020)</td><td>83.2</td></tr><tr><td>OCR* (Yuan et al., 2020)</td><td>84.3</td></tr><tr><td>HamNet</td><td>85.9</td></tr></table>
|
| 219 |
+
|
| 220 |
+
Table 5: Results on the PASCAL-Context Val set.
|
| 221 |
+
|
| 222 |
+
<table><tr><td>Method</td><td>mIoU(%)</td></tr><tr><td>PSPNet (Zhao et al., 2017)</td><td>47.8</td></tr><tr><td>SGR* (Liang et al., 2018)</td><td>50.8</td></tr><tr><td>EncNet (Zhang et al., 2018)</td><td>51.7</td></tr><tr><td>DANet* (Fu et al., 2019)</td><td>52.6</td></tr><tr><td>EMANet* (Li et al., 2019)</td><td>53.1</td></tr><tr><td>DMNet* (He et al., 2019a)</td><td>54.4</td></tr><tr><td>APCNet* (He et al., 2019b)</td><td>54.7</td></tr><tr><td>CFNet* (Zhang et al., 2019b)</td><td>54.0</td></tr><tr><td>SpyGR* (Li et al., 2020)</td><td>52.8</td></tr><tr><td>SANet* (Zhong et al., 2020)</td><td>53.0</td></tr><tr><td>OCR*(Yuan et al., 2020)</td><td>54.8</td></tr><tr><td>HamNet</td><td>55.2</td></tr></table>
|
| 223 |
+
|
| 224 |
+
# 3.5 IMAGE GENERATION
|
| 225 |
+
|
| 226 |
+
Attention presents as the global context description block in deep generative models like GANs. Most state-of-the-art GANs for conditional image generation integrate self-attention into their architectures since SAGAN (Zhang et al., 2019a), e.g., BigGAN (Brock et al., 2018), $\mathrm { S ^ { 3 } G A N }$ (Luciˇ c et al.´ , 2019), and LOGAN (Wu et al., 2019). It is convincing to benchmark MDbased Hamburger in the challenging conditional image generation task on ImageNet (Deng et al., 2009).
|
| 227 |
+
|
| 228 |
+
Table 6: Results on ImageNet $1 2 8 \times 1 2 8$ . ∗ are from Tab. 1 and Tab. 2 of Zhang et al. (2019a).
|
| 229 |
+
|
| 230 |
+
<table><tr><td>Method</td><td>FID↓</td></tr><tr><td>SNGAN-projection*</td><td>27.62</td></tr><tr><td>SAGAN*</td><td>18.28</td></tr><tr><td>HamGAN-baby</td><td>16.05</td></tr><tr><td>YLG</td><td>15.94</td></tr><tr><td>HamGAN-strong</td><td>14.77</td></tr></table>
|
| 231 |
+
|
| 232 |
+
Experiments are conducted to compare Hamburger with self-attention on ImageNet $1 2 8 \times 1 2 8$ . Selfattention is replaced by Hamburger with NMF ham in both generator and discriminator at feature resolution $3 2 \times 3 2$ , named as HamGAN-baby. HamGAN achieves an appreciable improvement in Fr´echet Inception Distance (FID) (Heusel et al., 2017) over SAGAN. Additionally, we compare Hamburger with a recently developed attention variant Your Local GAN (YLG) (Daras et al., 2020) using their codebase and the same training settings, named HamGAN-strong. HamGAN-strong offers over $5 \%$ improvement in FID while being $15 \%$ faster for the total training time and $3 . 6 \mathbf { x }$ faster for the module time (1.54 iters/sec of HamGAN, 1.31 iters/sec of YLG, and 1.65 iters/sec without both context modules, averaged from 1000 iterations) on the same TPUv3 training platform.
|
| 233 |
+
|
| 234 |
+
# 4 RELATED WORK
|
| 235 |
+
|
| 236 |
+
General Survey for Attention The last five years have witnessed a roaring success of attention mechanisms (Bahdanau et al., 2015; Mnih et al., 2014; Xu et al., 2015; Luong et al., 2015) in deep learning. Roughly speaking, the attention mechanism is a term of adaptively generating the targets’ weights to be attended according to the requests. Its architectures are diverse, and the most well-known one is dot product self-attention (Vaswani et al., 2017). The attention mechanism has a wide range of applications, from a single source (Lin et al., 2017) to multi-source inputs (Luong et al., 2015; Parikh et al., 2016), from global information discovery (Wang et al., 2018; Zhang et al., 2019a) to local feature extraction (Dai et al., 2017; Parmar et al., 2019).
|
| 237 |
+
|
| 238 |
+
Previous researchers attempt to explain the effectiveness of attention mechanisms from numerous aspects. Capturing long-range dependencies (Wang et al., 2018), sequentially decomposing visual scenes (Eslami et al., 2016; Kosiorek et al., 2018), inferring relationships between the part and the whole (Sabour et al., 2017; Hinton et al., 2018), simulating interactions between objects (Greff et al., 2017; van Steenkiste et al., 2018), and learning the dynamics of environments (Goyal et al., 2019) are often considered as the underlying mechanisms of attention.
|
| 239 |
+
|
| 240 |
+
One common idea from biology is that attention simulates the emergence of concerns in many unconscious contexts (Xu et al., 2015). Some work tries to interpret the attention mechanism by visualizing or attacking attention weights (Serrano & Smith, 2019; Jain & Wallace, 2019; Wiegreffe & Pinter, 2019), while others formulate attention into non-local operation (Wang et al., 2018) or diffusion models (Tao et al., 2018; Lu et al., 2019) or build attention-like models via Expectation Maximization (Greff et al., 2017; Hinton et al., 2018; Li et al., 2019) or Variational Inference (Eslami et al., 2016) on a mixture model. A connection between transformer and graph neural network is discussed as well (Liang et al., 2018; Zhang et al., 2019c). Overall, discussions towards attention are still far from reaching agreements or consistent conclusions.
|
| 241 |
+
|
| 242 |
+
Efficient Attention Recent works develop efficient attention modules via low-rank approximation in both computer vision (Chen et al., 2018b; Zhu et al., 2019; Chen et al., 2019; Li et al., 2019) and natural language processing (Mehta et al., 2019; Katharopoulos et al., 2020; Wang et al., 2020; Song et al., 2020). Technically, the low-rank approximation usually targets at the correlation matrix, i.e., the product of $Q$ and $\kappa$ after the sof tmax operation, using a product of two smaller matrices to approximate the correlation matrix and applying the associative law to save the memory cost and computation, where the approximation involves kernel functions or other similarity functions. Other works (Babiloni et al., 2020; Ma et al., 2019) make efforts to formulate attention into tensor form but may generate large intermediate variables. In this paper, we do not approximate attention or make it efficient. This paper formulates modeling the global context as a low-rank completion problem. The computation and memory efficiency is a by-product of the low-rank assumption on the clean signal subspace and optimization algorithms as architectures.
|
| 243 |
+
|
| 244 |
+
Matrix Decomposition in Deep Learning There is a long history of combining MD with deep learning. Researchers focus on reducing the parameters in the networks via factorization on the weights, including the softmax layer (Sainath et al., 2013), the convolutional layer (Zhong et al., 2019), and the embedding layer (Lan et al., 2019). Tariyal et al. (2016) attempts to construct deep dictionary learning for feature extraction and trains the model greedily. This paper tries to factorize the representations to recover a clean signal subspace as the global context and provide a new formulation for modeling the long-range dependencies via matrix decomposition.
|
| 245 |
+
|
| 246 |
+
# 5 CONCLUSION
|
| 247 |
+
|
| 248 |
+
This paper studies modeling long-range dependencies in the networks. We formulate learning the global context as a low-rank completion problem. Inspired by such a low-rank formulation, we develop the Hamburger module based on well-studied matrix decomposition models. By specializing matrix decomposition’s objective function, the computational graph created by its optimization algorithm naturally defines ham, Hamburger’s core architecture. Hamburger learns interpretable global context via denoising and completing its input and improves the spectrum’s concentration. It is startling that, when prudently coped with the backward gradient, even simple matrix decomposition proposed 20 years ago is as powerful as self-attention in challenging vision tasks semantic segmentation and image generation, as well as light, fast, and memory-efficient. We plan to extend Hamburger to natural language processing by integrating positional information and designing a decoder like Transformer, build a theoretical foundation for the one-step gradient trick or find a better method to differentiate MDs, and integrate advanced MDs in the future.
|
| 249 |
+
|
| 250 |
+
# ACKNOWLEDGMENTS
|
| 251 |
+
|
| 252 |
+
Zhouchen Lin is supported by NSF China (grant no.s 61625301 and 61731018), Major Scientific Research Project of Zhejiang Lab (grant no.s 2019KB0AC01 and 2019KB0AB02), Beijing Academy of Artificial Intelligence, and Qualcomm. We thank Google’s Tensorflow Research Cloud (TFRC) for providing us Cloud TPUs.
|
| 253 |
+
|
| 254 |
+
# REFERENCES
|
| 255 |
+
|
| 256 |
+
Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: A system for large-scale machine learning. In Proceedings of the 12th USENIX Conference on Operating Systems Design and Implementation, OSDI’16, pp. 265–283. USENIX Association, 2016. 5, 18
|
| 257 |
+
|
| 258 |
+
Francesca Babiloni, Ioannis Marras, Gregory Slabaugh, and Stefanos Zafeiriou. Tesa: Tensor element self-attention via matricization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. 9
|
| 259 |
+
|
| 260 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In 3rd International Conference on Learning Representations, ICLR 2015, 2015. 8
|
| 261 |
+
|
| 262 |
+
Yoshua Bengio. The consciousness prior. arXiv preprint arXiv:1709.08568, 2017. 2
|
| 263 |
+
|
| 264 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2018. 8
|
| 265 |
+
|
| 266 |
+
Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoderdecoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pp. 801–818, 2018a. 17, 18
|
| 267 |
+
|
| 268 |
+
Yunpeng Chen, Yannis Kalantidis, Jianshu Li, Shuicheng Yan, and Jiashi Feng. $\mathbf { A } \hat { \mathbf { \xi } } ^ { 2 }$ -nets: Double attention networks. In Advances in Neural Information Processing Systems 31, pp. 352–361. Curran Associates, Inc., 2018b. 7, 9
|
| 269 |
+
|
| 270 |
+
Yunpeng Chen, Marcus Rohrbach, Zhicheng Yan, Yan Shuicheng, Jiashi Feng, and Yannis Kalantidis. Graph-based global reasoning networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 9
|
| 271 |
+
|
| 272 |
+
Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In Proceedings of the IEEE international conference on computer vision, pp. 764–773, 2017. 9
|
| 273 |
+
|
| 274 |
+
Giannis Daras, Augustus Odena, Han Zhang, and A. Dimakis. Your local gan: Designing two dimensional local attention mechanisms for generative models. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14519–14527, 2020. 8, 18
|
| 275 |
+
|
| 276 |
+
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. 2, 8, 17, 18
|
| 277 |
+
|
| 278 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019. 1
|
| 279 |
+
|
| 280 |
+
Inderjit S. Dhillon and Dharmendra S. Modha. Concept decompositions for large sparse text data using clustering. Machine Learning, 42(1):143–175, Jan 2001. ISSN 1573-0565. doi: 10.1023/A:1007612920971. 1, 15
|
| 281 |
+
|
| 282 |
+
S. M. Ali Eslami, Nicolas Heess, Theophane Weber, Yuval Tassa, David Szepesvari, koray kavukcuoglu, and Geoffrey E Hinton. Attend, infer, repeat: Fast scene understanding with generative models. In Advances in Neural Information Processing Systems 29, pp. 3225–3233. Curran Associates, Inc., 2016. 9
|
| 283 |
+
|
| 284 |
+
Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2): 303–338, 2010. 2, 6, 8, 17
|
| 285 |
+
|
| 286 |
+
Jun Fu, Jing Liu, Haijie Tian, Yong Li, Yongjun Bao, Zhiwei Fang, and Hanqing Lu. Dual attention network for scene segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3146–3154, 2019. 7, 8, 17
|
| 287 |
+
|
| 288 |
+
Anirudh Goyal, Alex Lamb, Jordan Hoffmann, Shagun Sodhani, Sergey Levine, Yoshua Bengio, and Bernhard Schölkopf. Recurrent independent mechanisms. arXiv preprint arXiv:1909.10893, 2019. 2, 9
|
| 289 |
+
|
| 290 |
+
R. M. Gray and D. L. Neuhoff. Quantization. IEEE Transactions on Information Theory, 44(6): 2325–2383, Oct 1998. doi: 10.1109/18.720541. 1, 4
|
| 291 |
+
|
| 292 |
+
Klaus Greff, Sjoerd van Steenkiste, and Jürgen Schmidhuber. Neural expectation maximization. In Advances in Neural Information Processing Systems 30, pp. 6691–6701. Curran Associates, Inc., 2017. 9
|
| 293 |
+
|
| 294 |
+
Junjun He, Zhongying Deng, and Yu Qiao. Dynamic multi-scale filters for semantic segmentation. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 3561–3571, 2019a. 7, 8
|
| 295 |
+
|
| 296 |
+
Junjun He, Zhongying Deng, L. Zhou, Yali Wang, and Yu Qiao. Adaptive pyramid context network for semantic segmentation. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7511–7520, 2019b. 7, 8
|
| 297 |
+
|
| 298 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. 6, 8, 17
|
| 299 |
+
|
| 300 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems, 2017. 8, 18
|
| 301 |
+
|
| 302 |
+
Geoffrey E Hinton, Sara Sabour, and Nicholas Frosst. Matrix capsules with EM routing. In International Conference on Learning Representations, 2018. 9
|
| 303 |
+
|
| 304 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. 4, 6
|
| 305 |
+
|
| 306 |
+
Sarthak Jain and Byron C Wallace. Attention is not explanation. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 3543–3556, 2019. 9
|
| 307 |
+
|
| 308 |
+
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and Franccois Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. ArXiv, abs/2006.16236, 2020. 9
|
| 309 |
+
|
| 310 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015. 18
|
| 311 |
+
|
| 312 |
+
Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM Review, 51(3): 455–500, 2009. doi: 10.1137/07070111X. 2
|
| 313 |
+
|
| 314 |
+
Adam Kosiorek, Hyunjik Kim, Yee Whye Teh, and Ingmar Posner. Sequential attend, infer, repeat: Generative modelling of moving objects. In Advances in Neural Information Processing Systems, pp. 8606–8616, 2018. 9
|
| 315 |
+
|
| 316 |
+
Karol Kurach, M. Lucic, Xiaohua Zhai, M. Michalski, and S. Gelly. A large-scale study on regularization and normalization in gans. In ICML, 2019. 18
|
| 317 |
+
|
| 318 |
+
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2019. 9
|
| 319 |
+
|
| 320 |
+
Daniel D Lee and H Sebastian Seung. Learning the parts of objects by non-negative matrix factorization. Nature, 401(6755):788, 1999. 1, 4
|
| 321 |
+
|
| 322 |
+
Daniel D. Lee and H. Sebastian Seung. Algorithms for non-negative matrix factorization. In Advances in Neural Information Processing Systems 13. MIT Press, 2001. 4
|
| 323 |
+
|
| 324 |
+
Xia Li, Zhisheng Zhong, Jianlong Wu, Yibo Yang, Zhouchen Lin, and Hong Liu. Expectationmaximization attention networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 9167–9176, 2019. 8, 9, 17
|
| 325 |
+
|
| 326 |
+
Xia Li, Y. Yang, Qijie Zhao, Tian cheng Shen, Zhouchen Lin, and Hong-Cheu Liu. Spatial pyramid based graph reasoning for semantic segmentation. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8947–8956, 2020. 8
|
| 327 |
+
|
| 328 |
+
Xiaodan Liang, Zhiting Hu, Hao Zhang, Liang Lin, and Eric P Xing. Symbolic graph reasoning meets convolutions. In Advances in Neural Information Processing Systems, pp. 1853–1863, 2018. 8, 9
|
| 329 |
+
|
| 330 |
+
Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. 9
|
| 331 |
+
|
| 332 |
+
Canyi Lu, Jinhui Tang, Shuicheng Yan, and Zhouchen Lin. Generalized nonconvex nonsmooth low-rank minimization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4130–4137, 2014. 2
|
| 333 |
+
|
| 334 |
+
Yiping Lu, Zhuohan Li, Di He, Zhiqing Sun, Bin Dong, Tao Qin, Liwei Wang, and Tie-Yan Liu. Understanding and improving transformer from a multi-particle dynamic system point of view. arXiv preprint arXiv:1906.02762, 2019. 9
|
| 335 |
+
|
| 336 |
+
Mario Luciˇ c, Michael Tschannen, Marvin Ritter, Xiaohua Zhai, Olivier Bachem, and Sylvain ´ Gelly. High-fidelity image generation with fewer labels. In International Conference on Machine Learning, pp. 4183–4192, 2019. 8
|
| 337 |
+
|
| 338 |
+
Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention-based neural machine translation. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pp. 1412–1421, 2015. 8, 9
|
| 339 |
+
|
| 340 |
+
Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan, Yuexian Hou, Ming Zhou, and Dawei Song. A tensorized transformer for language modeling. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. 9
|
| 341 |
+
|
| 342 |
+
Julien Mairal, Francis Bach, Jean Ponce, and Guillermo Sapiro. Online learning for matrix factorization and sparse coding. Journal of Machine Learning Research, 11(Jan):19–60, 2010. 2
|
| 343 |
+
|
| 344 |
+
Sneha Mehta, H. Rangwala, and N. Ramakrishnan. Low rank factorization for compact multi-head self-attention. ArXiv, abs/1912.00835, 2019. 9
|
| 345 |
+
|
| 346 |
+
Takeru Miyato and Masanori Koyama. cGANs with projection discriminator. In International Conference on Learning Representations, 2018. 17, 18
|
| 347 |
+
|
| 348 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018. 18
|
| 349 |
+
|
| 350 |
+
Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In Advances in neural information processing systems, pp. 2204–2212, 2014. 8
|
| 351 |
+
|
| 352 |
+
Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. arXiv preprint arXiv:1611.06440, 2016. 17
|
| 353 |
+
|
| 354 |
+
Roozbeh Mottaghi, Xianjie Chen, Xiaobai Liu, Nam-Gyu Cho, Seong-Whan Lee, Sanja Fidler, Raquel Urtasun, and Alan Yuille. The role of context for object detection and semantic segmentation in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 891–898, 2014. 2, 8, 17
|
| 355 |
+
|
| 356 |
+
Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model for natural language inference. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2249–2255, 2016. 9
|
| 357 |
+
|
| 358 |
+
Niki Parmar, Prajit Ramachandran, Ashish Vaswani, Irwan Bello, Anselm Levskaya, and Jon Shlens. Stand-alone self-attention in vision models. In Advances in Neural Information Processing Systems, pp. 68–80, 2019. 9
|
| 359 |
+
|
| 360 |
+
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, pp. 8024–8035, 2019. 5
|
| 361 |
+
|
| 362 |
+
Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. Dynamic routing between capsules. In Advances in neural information processing systems, pp. 3856–3866, 2017. 9
|
| 363 |
+
|
| 364 |
+
T. Sainath, Brian Kingsbury, V. Sindhwani, E. Arisoy, and B. Ramabhadran. Low-rank matrix factorization for deep neural network training with high-dimensional output targets. 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 6655–6659, 2013. 9
|
| 365 |
+
|
| 366 |
+
Sofia Serrano and Noah A Smith. Is attention interpretable? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2931–2951, 2019. 9
|
| 367 |
+
|
| 368 |
+
Kyungwoo Song, Yohan Jung, Dong-Jun Kim, and I. Moon. Implicit kernel attention. ArXiv, abs/2006.06147, 2020. 9
|
| 369 |
+
|
| 370 |
+
Yunzhe Tao, Qi Sun, Qiang Du, and Wei Liu. Nonlocal neural networks, nonlocal diffusion and nonlocal modeling. In Advances in Neural Information Processing Systems 31, pp. 496–506. Curran Associates, Inc., 2018. 9
|
| 371 |
+
|
| 372 |
+
Snigdha Tariyal, A. Majumdar, R. Singh, and Mayank Vatsa. Deep dictionary learning. IEEE Access, 4:10096–10109, 2016. 9
|
| 373 |
+
|
| 374 |
+
Madeleine Udell, Corinne Horn, Reza Zadeh, and Stephen Boyd. Generalized low rank models. Foundations and Trends in Machine Learning, 9(1):1–118, 2016. ISSN 1935-8237. doi: 10.1561/ 2200000055. 2
|
| 375 |
+
|
| 376 |
+
Sjoerd van Steenkiste, Michael Chang, Klaus Greff, and Jürgen Schmidhuber. Relational neural expectation maximization: Unsupervised discovery of objects and their interactions. In International Conference on Learning Representations, 2018. 9
|
| 377 |
+
|
| 378 |
+
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 30, pp. 5998–6008. Curran Associates, Inc., 2017. 1, 2, 7, 9
|
| 379 |
+
|
| 380 |
+
Sinong Wang, Belinda Z. Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. ArXiv, abs/2006.04768, 2020. 9
|
| 381 |
+
|
| 382 |
+
Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7794–7803, 2018. 1, 3, 9
|
| 383 |
+
|
| 384 |
+
Paul J Werbos et al. Backpropagation through time: what it does and how to do it. Proceedings of the IEEE, 78(10):1550–1560, 1990. 1, 5
|
| 385 |
+
|
| 386 |
+
Sarah Wiegreffe and Yuval Pinter. Attention is not not explanation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 11–20, 2019. 9
|
| 387 |
+
|
| 388 |
+
John Wright, Arvind Ganesh, Shankar Rao, Yigang Peng, and Yi Ma. Robust principal component analysis: Exact recovery of corrupted low-rank matrices via convex optimization. In Advances in neural information processing systems, pp. 2080–2088, 2009. 2
|
| 389 |
+
|
| 390 |
+
Yan Wu, Jeff Donahue, David Balduzzi, Karen Simonyan, and Timothy P. Lillicrap. Logan: Latent optimisation for generative adversarial networks. ArXiv, abs/1912.00953, 2019. 8
|
| 391 |
+
|
| 392 |
+
Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International conference on machine learning, pp. 2048–2057, 2015. 2, 8, 9
|
| 393 |
+
|
| 394 |
+
Changqian Yu, Jingbo Wang, Chao Peng, Changxin Gao, Gang Yu, and Nong Sang. Learning a discriminative feature network for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1857–1866, 2018. 8
|
| 395 |
+
|
| 396 |
+
Yuhui Yuan and Jingdong Wang. Ocnet: Object context network for scene parsing. arXiv preprint arXiv:1809.00916, 2018. 17
|
| 397 |
+
|
| 398 |
+
Yuhui Yuan, Xilin Chen, and Jingdong Wang. Object-contextual representations for semantic segmentation. arXiv preprint arXiv:1909.11065, 2020. 8, 17
|
| 399 |
+
|
| 400 |
+
Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. ICML, 2019a. 1, 3, 6, 8, 9, 17, 18
|
| 401 |
+
|
| 402 |
+
Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. ArXiv, abs/1910.12027, 2020. 18
|
| 403 |
+
|
| 404 |
+
Hang Zhang, Kristin Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, and Amit Agrawal. Context encoding for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7151–7160, 2018. 8
|
| 405 |
+
|
| 406 |
+
Hang Zhang, Han Zhang, Chenguang Wang, and Junyuan Xie. Co-occurrent features in semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 548–557, 2019b. 7, 8, 17
|
| 407 |
+
|
| 408 |
+
Songyang Zhang, Shipeng Yan, and Xuming He. LatentGNN: Learning efficient non-local relations for visual recognition. In Proceedings of the 36th International Conference on Machine Learning(ICML), volume 97 of Proceedings of Machine Learning Research, pp. 7374–7383. PMLR, 2019c. 9
|
| 409 |
+
|
| 410 |
+
Zhengdong Zhang, Arvind Ganesh, Xiao Liang, and Yi Ma. Tilt: Transform invariant low-rank textures. International journal of computer vision, 99(1):1–24, 2012. 2
|
| 411 |
+
|
| 412 |
+
Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2881–2890, 2017. 8, 18
|
| 413 |
+
|
| 414 |
+
Zhisheng Zhong, Fangyin Wei, Zhouchen Lin, and Chao Zhang. Ada-tucker: Compressing deep neural networks via adaptive dimension adjustment tucker decomposition. Neural networks : the official journal of the International Neural Network Society, 110:104–115, 2019. 9
|
| 415 |
+
|
| 416 |
+
Zilong Zhong, Zhong Qiu Lin, Rene Bidart, Xiaodan Hu, Ibrahim Ben Daya, Zhifeng Li, WeiShi Zheng, Jonathan Li, and Alexander Wong. Squeeze-and-attention networks for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. 8
|
| 417 |
+
|
| 418 |
+
Zhen Zhu, Mengde Xu, Song Bai, Tengteng Huang, and Xiang Bai. Asymmetric non-local neural networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 593–602, 2019. 9
|
| 419 |
+
|
| 420 |
+
# A TABLE OF NOTION
|
| 421 |
+
|
| 422 |
+
Table 7: Summary of notations in this paper
|
| 423 |
+
|
| 424 |
+
<table><tr><td rowspan=1 colspan=2>βXXZ</td><td rowspan=1 colspan=1>A scalar.A vector.A matrix.A tensor.</td></tr><tr><td rowspan=1 colspan=2>1nXiht8</td><td rowspan=1 colspan=1>A vector whose n elements are all 1.i-th column of matrix X.Vector h at time step t.Jacobian matrix of y W.r.t. X.</td></tr><tr><td rowspan=1 colspan=1>XX||F</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Operator norm.Frobenius norm.</td></tr><tr><td rowspan=1 colspan=2>diagcosinesoftmaxnormalize</td><td rowspan=1 colspan=1>Map a vector to a diagonal matrix.Cosine similarity used in Alg.1.Column-wise softmax function.Column-wise normalization by L2 norm.</td></tr></table>
|
| 425 |
+
|
| 426 |
+
# B HAMS
|
| 427 |
+
|
| 428 |
+
Additionally, we introduce another type of ham adopted by Hamburger, Concept Decomposition.
|
| 429 |
+
|
| 430 |
+
Concept Decomposition We first enhance Concept Decomposition (Dhillon & Modha, 2001) to the following form:
|
| 431 |
+
|
| 432 |
+
$$
|
| 433 |
+
\begin{array} { l } { \displaystyle \operatorname* { m i n } _ { D , C } \| X - D C \| _ { F } ^ { 2 } + \beta \| C \| _ { F } ^ { 2 } } \\ { \displaystyle \mathrm { s . t . } D \in \arg \operatorname* { m a x } _ { D } \mathcal { Q } \left( D , X \right) . } \end{array}
|
| 434 |
+
$$
|
| 435 |
+
|
| 436 |
+
This problem has a closed solution w.r.t. $C$ under a given $_ { D }$ , i.e., $\pmb { C } = ( \pmb { D } ^ { \top } \pmb { D } + \beta \pmb { I } ) ^ { - 1 } \pmb { D } ^ { \top } \pmb { X }$ . Since $D ^ { \top } D + \beta I$ is a positive definite matrix with a regularized conditional number, the inverse can be more numerically stable than the original one where a semi-positive definite matrix $D ^ { \top } D$ is given under $\beta = 0$ . In practice, 0.01 or 0.1 makes no difference for $\beta$ .
|
| 437 |
+
|
| 438 |
+
<table><tr><td>Algorithm 3 Ham: Soft CD</td></tr><tr><td>Input X. Initialize D, C</td></tr><tr><td>for k from 1 to K do</td></tr><tr><td>C ← softmax(Tcosine(D,X))</td></tr><tr><td>D ← normalize(XCT)</td></tr><tr><td>end for</td></tr><tr><td>C ← (DD+ βI)-1DTX</td></tr><tr><td>Output X = DC.</td></tr></table>
|
| 439 |
+
|
| 440 |
+
The dictionary in CD is given by spherical $\mathbf { K }$ -means (Dhillon & Modha, 2001) with objective $\mathcal { Q } \left( D , X \right)$ , as mentioned in Eq. (14).
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
\begin{array} { r l } { \arg \operatorname* { m a x } } & { \sum _ { j = 1 } ^ { r } \sum _ { \mathbf { x } \in \pi _ { j } } c o s i n e \left( \mathbf { x } , \mathbf { d } _ { j } \right) } \\ { D , \{ \pi _ { j } \} _ { r } } & { \phantom { \sum _ { j = 1 } ^ { r } \sum _ { \mathbf { x } \in \pi _ { j } } c o s i n e \left( \mathbf { x } , \mathbf { d } _ { j } \right) } } \\ { \mathrm { s . t . } } & { \| \mathbf { d } _ { j } \| = 1 . } \end{array}
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
The same strategy as VQ is adopted to make the whole algorithm differentiable, however, in which each column of $_ { D }$ is normalized to be a unit vector and thus differs from VQ.
|
| 447 |
+
|
| 448 |
+
# C PROOF OF PROPOSITIONS
|
| 449 |
+
|
| 450 |
+
We investigate an abstract RNN model inspired by numerical methods to understand the drawbacks of BPTT algorithm in differentiating the optimization algorithm of MDs, $\mathcal { M }$ . We show the propositions in Sec. 2.3 to illustrate the unstable gradient from $\mathcal { M }$ when using BPTT algorithm, considering MDs’ nature as optimization algorithms.
|
| 451 |
+
|
| 452 |
+
Proposition 1 The iterations of $\mathcal { F }$ have linear convergence.
|
| 453 |
+
|
| 454 |
+
Proof. It is obvious that $\mathcal { F }$ is a contraction mapping w.r.t. h under arbitrary given $\mathbf { x }$ . We can then conclude $\{ \mathbf { h } ^ { t } \}$ is a Cauthy sequence and $\mathcal { F } ( * , \mathbf { x } )$ admits a unique fixed point $\mathbf { h } ^ { * }$ due to Banach Fixed Point Theorem.
|
| 455 |
+
|
| 456 |
+
$$
|
| 457 |
+
\begin{array} { r l } & { \| \mathbf { h } ^ { t + 1 } - \mathbf { h } ^ { * } \| = \| \mathcal { F } ( \mathbf { h } ^ { t } , \mathbf { x } ) - \mathcal { F } ( \mathbf { h } ^ { * } , \mathbf { x } ) \| } \\ & { \qquad \leq L _ { h } \| \mathbf { h } ^ { t } - \mathbf { h } ^ { * } \| } \end{array}
|
| 458 |
+
$$
|
| 459 |
+
|
| 460 |
+
Eq. (16) shows the linear convergence.
|
| 461 |
+
|
| 462 |
+
Proposition 2 $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \frac { \partial \mathbf { y } } { \partial \mathbf { x } } = \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { \ast } } ( \pmb { I } - \frac { \partial \mathcal { F } } { \partial \mathbf { h } ^ { \ast } } ) ^ { - 1 } \frac { \partial \mathcal { F } } { \partial \mathbf { x } } . } \end{array}$
|
| 463 |
+
|
| 464 |
+
Proof. Note that $\mathcal { F } ( \ast , { \mathbf { x } } )$ admits a unique fixed point $\mathbf { h } ^ { * }$ under arbitrary given $\mathbf { x }$ , i.e.,
|
| 465 |
+
|
| 466 |
+
$$
|
| 467 |
+
\mathbf { h } ^ { * } = \mathcal { F } ( \mathbf { h } ^ { * } , \mathbf { x } ) \quad \Longrightarrow \quad \mathbf { h } ^ { * } - \mathcal { F } ( \mathbf { h } ^ { * } , \mathbf { x } ) = \mathbf { 0 }
|
| 468 |
+
$$
|
| 469 |
+
|
| 470 |
+
By differentiating the above equation, we can obtain
|
| 471 |
+
|
| 472 |
+
$$
|
| 473 |
+
( I - \frac { \partial \mathcal { F } } { \partial \mathbf { h } ^ { * } } ) \frac { \partial \mathbf { h } ^ { * } } { \partial \mathbf { x } } = \frac { \partial \mathcal { F } } { \partial \mathbf { x } }
|
| 474 |
+
$$
|
| 475 |
+
|
| 476 |
+
The Jacobian matrix $\begin{array} { r } { I - \frac { \partial \mathcal { F } } { \partial \mathbf { h } ^ { * } } } \end{array}$ is invertible, which implies the existence of the implicit function $\mathbf { h } ^ { * } ( \mathbf { x } )$ . Immediately, we have
|
| 477 |
+
|
| 478 |
+
$$
|
| 479 |
+
\operatorname* { l i m } _ { t \to \infty } \frac { \partial \mathbf { y } } { \partial \mathbf { x } } = \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { * } } \frac { \partial \mathbf { h } ^ { * } } { \partial \mathbf { x } } = \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { * } } ( \pmb { I } - \frac { \partial \mathcal { F } } { \partial \mathbf { h } ^ { * } } ) ^ { - 1 } \frac { \partial \mathcal { F } } { \partial \mathbf { x } } ,
|
| 480 |
+
$$
|
| 481 |
+
|
| 482 |
+
which completes the proof.
|
| 483 |
+
|
| 484 |
+
Proposition 3 $\begin{array} { r } { \underset { t \infty } { \operatorname* { l i m } } \Vert \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { 0 } } \Vert = 0 , \underset { t \infty } { \operatorname* { l i m } } \Vert \frac { \partial \mathbf { y } } { \partial \mathbf { x } } \Vert \leq \frac { L _ { \mathcal { G } } L _ { x } } { 1 - L _ { h } } . } \end{array}$
|
| 485 |
+
|
| 486 |
+
Proof.
|
| 487 |
+
|
| 488 |
+
$$
|
| 489 |
+
\| \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { 0 } } \| = \| \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \prod _ { i = 1 } ^ { t } \frac { \partial \mathbf { h } ^ { i } } { \partial \mathbf { h } ^ { i - 1 } } \| \leq \| \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \| \prod _ { i = 1 } ^ { t } \| \frac { \partial \mathbf { h } ^ { i } } { \partial \mathbf { h } ^ { i - 1 } } \| \leq L _ { \mathcal { G } } L _ { h } ^ { t }
|
| 490 |
+
$$
|
| 491 |
+
|
| 492 |
+
Then we have:
|
| 493 |
+
|
| 494 |
+
$$
|
| 495 |
+
\operatorname* { l i m } _ { t \infty } \lVert \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { 0 } } \rVert = 0 .
|
| 496 |
+
$$
|
| 497 |
+
|
| 498 |
+
$$
|
| 499 |
+
\begin{array} { r l } & { \| \displaystyle \frac { \partial \mathbf { y } } { \partial \mathbf { x } } \| = \| \sum _ { i = 0 } ^ { t } \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \| \prod _ { j = i + 1 } ^ { t } \frac { \partial \mathbf { h } ^ { j } } { \partial \mathbf { h } ^ { j - 1 } } \frac { \partial \mathbf { h } ^ { i } } { \partial \mathbf { x } } \| } \\ & { \qquad \le \displaystyle \sum _ { i = 0 } ^ { t } \| \frac { \partial \mathbf { y } } { \partial \mathbf { h } ^ { t } } \| \prod _ { j = i + 1 } ^ { t } \| \frac { \partial \mathbf { h } ^ { j } } { \partial \mathbf { h } ^ { j - 1 } } \| \| \frac { \partial \mathbf { h } ^ { i } } { \partial \mathbf { x } } \| } \\ & { \qquad \le L { \mathcal { C } } ( \displaystyle \sum _ { i = 0 } ^ { t - 1 } L _ { n } ^ { i } ) L _ { x } } \\ & { \qquad = \displaystyle \frac { L _ { G } L _ { x } ( 1 - L _ { h } ^ { t } ) } { 1 - L _ { h } } } \end{array}
|
| 500 |
+
$$
|
| 501 |
+
|
| 502 |
+
Then we have:
|
| 503 |
+
|
| 504 |
+
$$
|
| 505 |
+
\operatorname* { l i m } _ { t \to \infty } \| \frac { \partial \mathbf { y } } { \partial \mathbf { x } } \| \leq \frac { L _ { \mathcal { G } } L _ { x } } { 1 - L _ { h } } .
|
| 506 |
+
$$
|
| 507 |
+
|
| 508 |
+
# D DATASETS
|
| 509 |
+
|
| 510 |
+
PASCAL VOC The PASCAL VOC dataset (Everingham et al., 2010) is a widely used dataset in both semantic segmentation and detection. For segmentation, it contains 10,582 images for training, 1,449 images for validation and 1,456 images for testing. PASCAL VOC dataset involves 20 foreground object classes and a background class for segmentation and detection.
|
| 511 |
+
|
| 512 |
+
PASCAL Context The PASCAL Context dataset (Mottaghi et al., 2014) is a challenging dataset in semantic segmentation, which provides detailed labels and involves 59 foreground object classes and a background class for segmentation. It consists of 4,998 and 5,105 images in training and validation set, respectively.
|
| 513 |
+
|
| 514 |
+
ILSVRC 2012 The ILSVRC 2012 (ImageNet) (Deng et al., 2009) dataset contains 1.3M training samples and $5 0 \mathrm { k }$ test images, categorized into 1000 object classes. We resize images to resolution $1 2 8 \times 1 2 8$ , as done in SNGAN with projection (Miyato & Koyama, 2018) and SAGAN (Zhang et al., 2019a).
|
| 515 |
+
|
| 516 |
+
# E DETAILS OF EXPERIMENTS
|
| 517 |
+
|
| 518 |
+
# E.1 ABALATION EXPERIMENTS
|
| 519 |
+
|
| 520 |
+
We use dilated ResNet-50 (He et al., 2016) with the output stride 16 as the backbone. The backbone is pre-trained on ImageNet (Deng et al., 2009). We apply a poly-learning rate policy under batch size 12 and 30k iterations (about 35 epochs) for fast experiments (less than 12 hours using 1 NVIDIA TITAN Xp GPU). The initial learning rate is set to 0.009, multiplied by $\begin{array} { r } { ( 1 - \frac { i t e r } { i t e r _ { m a x } } ) ^ { \tilde { 0 . } 9 } } \end{array}$ )0.9 after each iteration, with momentum 0.9 and weight decay 0.0001. Hyperparameters of Hamburger are the same as Appendix E.3.
|
| 521 |
+
|
| 522 |
+
# E.2 A COMPARISON WITH ATTENTION MECHANISM
|
| 523 |
+
|
| 524 |
+
We report MACs according to Molchanov et al. (2016), using torchprofile1, a more accurate profiler for Pytorch. Real-time cost is measured by built-in Pytorch memory tools on NVIDIA TITAN Xp GPU with a input tensor $\mathcal { Z } \in \mathbb { R } ^ { 1 \times 5 1 2 \times 1 2 8 \times 1 2 8 }$ . Inference times are averaged results from 20 repeats of 100 runs.
|
| 525 |
+
|
| 526 |
+
# E.3 SEMANTIC SEGMENTATION
|
| 527 |
+
|
| 528 |
+
Architectures We use ResNet-101 (He et al., 2016) with the ouptput strid 8 as our backbone. We adopt dilated convolution (Chen et al., 2018a) to preserve more detail spatial information and enlarge receptive field as done in the backbone of state-of-the-art attention models ( $\mathrm { F u }$ et al., 2019; Li et al., 2019; Zhang et al., 2019b). We employ a $3 \times 3$ convolution layer with BN and ReLU to reduce channels from 2048 to 512 and then add Hamburger on the top of the backbone. Note that the input of Hamburger is a tensor $\mathcal { Z } \in \mathbb { R } ^ { C \times H \times W }$ . We unfold $\mathcal { Z }$ to a matrix $\boldsymbol { Z } \in \mathbb { R } ^ { C \times H W }$ and set $d _ { z } = C$ and $n = H W$ for Hamburger. Latent dimension $d$ and $r$ , i.e., the column vectors’ dimension of the input matrix $\pmb { X } \in \mathbb { R } ^ { d \times n }$ to $\mathcal { M }$ and the number of atoms in the dictionary $\pmb { D } \in \mathbb { R } ^ { r \times d }$ , are set to 512 and 64. The iterations of MD’s optimization algorithm, $K$ , are set to 6. Non-negative Matrix Factorization (NMF) is our default ham for semantic segmentation.
|
| 529 |
+
|
| 530 |
+
Data augmentation In the training stage, we apply random left-right flipping, random scaling (from 0.5 to 2), and cropping to augment the training data. Images are resized to $5 1 3 \times 5 1 3$ for the PASCAL VOC dataset and the PASCAL Context dataset. In the test stage, the multi-scale and flipping strategy is applied as other state-of-the-art attention-based models ( $\mathrm { F u }$ et al., 2019; Yuan & Wang, 2018; Yuan et al., 2020).
|
| 531 |
+
|
| 532 |
+
Optimization We use mini-batch SGD with momentum 0.9 to train HamNet. Synchronized Batch Normalization is adopted in experiments on semantic segmentation. All backbones are fine-tuned from ImageNet (Deng et al., 2009) pre-training. Following previous works (Zhao et al., 2017; Chen et al., 2018a), we apply a poly-learning rate policy. The initial learning rate is multiplied by $\begin{array} { r } { ( 1 - \frac { i t e r } { i t e r _ { m a x } } ) ^ { 0 . 9 } } \end{array}$ )0.9. For the PASCAL VOC dataset, learning rate, weight decay, batch size, iterations are set to 0.009, 0.0001, 16, and $6 0 \mathrm { k }$ , respectively. We fine-tune HamNet on the PASCAL VOC trainval set with the learning rate down to a tenth. The learning rate, weight decay, batch size, iterations are 0.002, 0.0001, 16, and 25k for the PASCAL-Context dataset.
|
| 533 |
+
|
| 534 |
+
# E.4 IMAGE GENERATION
|
| 535 |
+
|
| 536 |
+
We use the official GAN codebase2 from Tensorflow (Abadi et al., 2016) and TF-GAN to train HamGAN and evaluate FID.
|
| 537 |
+
|
| 538 |
+
Architectures Experiments on ImageNet are conducted using the same architecture as SAGAN (Zhang et al., 2019a), and YLG (Daras et al., 2020), including Spectral Normalization (Miyato et al., 2018) in both the generator and the discriminator, conditional Batch Normalization in the generator, and class projection in the discriminator (Miyato & Koyama, 2018). Hamburger with NMF ham is placed at feature resolution $3 2 \times 3 2$ in both the generator and the discriminator where self-attention can obtain the best FID according to Zhang et al. (2019a). We use $d = 8 r$ for Hamburger, and $d$ is the same as the input channels, while the optimization steps $K$ are 6. Restricted to expenditures of training GANs on ImageNet, $d , r$ , and $K$ are decided according to the ablation experiments on semantic segmentation without new ablation experiments.
|
| 539 |
+
|
| 540 |
+
Optimization For all models, we use Adam (Kingma & Ba, 2015) optimizer with TTUR (Heusel et al., 2017). HamGAN employs the same training settings as SAGAN (Miyato et al., 2018) and YLG (Daras et al., 2020), respectively.
|
| 541 |
+
|
| 542 |
+
Evaluation metrics The quality of images generated by GANs are evaluated by Fr´echet Inception Distance (FID) (Heusel et al., 2017). Lower FID indicates that the model can generate higher-fidelity images. In our experiments, $5 0 \mathrm { k }$ images are sampled from the generator to compute FID. We evaluate HamGAN for 6 runs and report the best FID to approximately match the convention in the modern GAN research like Kurach et al. (2019) and CR-GAN (Zhang et al., 2020), reporting top $5 \% / 1 5 \%$ results in the experiments.
|
| 543 |
+
|
| 544 |
+
# F FURTHER RESULTS FROM ABLATION EXPERIMENTS
|
| 545 |
+
|
| 546 |
+
Table 8: Ablation on initializations.
|
| 547 |
+
|
| 548 |
+
<table><tr><td>Init</td><td>NMF</td><td>CD</td><td>VQ</td></tr><tr><td>fixed</td><td>77.4(77.3)</td><td>77.7(77.4)</td><td>77.3(76.9)</td></tr><tr><td>learned</td><td>76.8(76.5)</td><td>75.0(73.7)</td><td>75.9(75.8)</td></tr><tr><td>random</td><td>78.3(77.8)</td><td>77.9(77.3)</td><td>77.7(77.4)</td></tr><tr><td>online</td><td>77.8(77.5)</td><td>78.1(77.5)</td><td>78.0(77.2)</td></tr></table>
|
| 549 |
+
|
| 550 |
+
Initialization We test four types of initialization for the dictionary $_ { D }$ , including fixed initialization, learned initialization, random initialization, and warm start with online update. Usually, random initialization is the best choice that means we can sample each entry of $_ { D }$ from a given distribution like Uniform $( 0 , 1 )$ as the initialization of the optimization algorithm $\mathcal { M }$ . For NMF, after initializing $_ { D }$ , we initialize $\begin{array} { r } { \dot { \mathbf { C } } = s o f t m a x ( \frac { 1 } { T } c o s i n e ( \mathbf { D } , \mathbf { \dot { X } } ) ) } \end{array}$ since $\mathbf { K }$ -means is usually applied for initializing NMF and this initialization for $\bar { C }$ is equivalent to a single update in Spherical K-means. A special reminder is that it is not suitable to initialize either $_ D$ or $C$ to values too close to 0 due to the property of the MU rule. So the temperature $T$ is recommended to be a higher value like 1 in this initialization for $C$ . Random initialization also works for $C$ in NMF with scores 77.8(77.6) when sampling $C _ { i j } \sim \mathrm { U n i f o r m } ( 0 , 1 )$ . Note that learned initialization is always the worst one since the BPTT algorithm is employed to learn the initialization that the gradient from $\mathcal { M }$ may impede the training of the backbone, instead of the one-step gradient. Warm start benefits MD with unit vectors in the dictionary $_ { D }$ like CD. In general, random initialization is good enough for all three selected MD models. A possible reason is that it can enforce the network to adapt to the results solved by different initializations during the training process, acting like an inner augmentation.
|
| 551 |
+
|
| 552 |
+
Temperature $T$ As we have claimed, when $T$ approaches 0, we can get a solution close to the original problem in both VQ and CD. In VQ and CD experiments, a relatively low temperature $T$ is more recommended to solve a better $_ { D }$ for MD. However, it will not receive more gains but increase the variance during training if we further lower $T$ .
|
| 553 |
+
|
| 554 |
+
Table 9: Influence of temperature $T$ with CD ham.
|
| 555 |
+
|
| 556 |
+
<table><tr><td>Temperature T</td><td>mIoU(%)</td></tr><tr><td>1</td><td>77.1(77.0)</td></tr><tr><td>0.1</td><td>78.2(77.5)</td></tr><tr><td>0.01</td><td>78.1(77.5)</td></tr></table>
|
| 557 |
+
|
| 558 |
+
Iterations $K$ We take the iterations $K$ of optimization algorithms $\mathcal { M }$ for all three MD models, NMF, CD, and VQ, into our consideration. More iterations and even fully converged results for $\mathcal { M }$ are tested in the evaluation stage but worse than little optimization steps. The smaller $K$ , ranging from 1 to 8, can be treated as early stopping for the optimization algorithm $\mathcal { M }$ , obtaining satisfactory performances. For a detailed visualization, see Fig. 7, Fig. 8, Fig. 9.
|
| 559 |
+
|
| 560 |
+

|
| 561 |
+
Figure 7: Impacts of $K$ on NMF
|
| 562 |
+
|
| 563 |
+

|
| 564 |
+
Figure 8: Impacts of $K$ on CD
|
| 565 |
+
|
| 566 |
+

|
| 567 |
+
Figure 9: Impacts of $K$ on VQ
|
| 568 |
+
|
| 569 |
+
# G AN INTUITIVE ILLUSTRATION
|
| 570 |
+
|
| 571 |
+
In this section, we hope to give an example to help our readers develop insight into why the low-rank assumption is useful for modeling the representations’ global context.
|
| 572 |
+
|
| 573 |
+
The low-rank assumption helps because it represents the inductive bias that the low-level representations contain limited and much less high-level concepts than the scale of the representations themselves. Imagine an image in which a person works on the road. Many hyper-pixels extracted by the backbone CNN will describe the road. Note that the road can be considered as repeats of small road patches, which means that we can represent the road via modeling the basic road patches and repeat them. Mathematically, it is equivalent to finding a small set of bases $_ D$ corresponding to different road patches and a coefficient matrix $C$ that captures the relation between the elementary road patches and the hyper-pixels. This example illustrates that the high-level concepts, i.e., the global context, can be low-rank in the ideal situation.
|
| 574 |
+
|
| 575 |
+
The hyper-pixels describing the road patches have close semantic attributes. However, due to the vanilla CNN’s inefficiency for modeling the long-range dependencies, the learned representation contains too many local details and incorrect information, lacking global guidance. Imagine that the person in the image wears gloves. When we see the gloves patch locally, we think that this patch describes gloves. When we consider the global context, we can understand that this patch is a part of a person. The semantic information is hierarchical, depending on at which level we hope to comprehend. This work aims at enabling the networks to understand the context globally via the low-rank completion formulation. We thus model the incorrect information, namely the redundancies and incompleteness, as a noise matrix. To emphasize the global context, we decompose the representations into two parts, a low-rank global information matrix and a noise matrix, by employing the optimization algorithm to recover the clean signal subspace, discard the noises, and enhance the global information via the skip connection. It could be learned from the data on how much global information the networks need for a specific task.
|
parse/train/1FvkSpWosOl/1FvkSpWosOl_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO.md
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Progressive Coordinate Transforms for Monocular 3D Object Detection
|
| 2 |
+
|
| 3 |
+
Li Wang1∗ Li Zhang1† Yi Zhu2 Zhi Zhang2 Tong He2 Mu Li2 Xiangyang Xue1 1Fudan University 2Amazon Inc.
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Recognizing and localizing objects in the 3D space is a crucial ability for an AI agent to perceive its surrounding environment. While significant progress has been achieved with expensive LiDAR point clouds, it poses a great challenge for 3D object detection given only a monocular image. While there exist different alternatives for tackling this problem, it is found that they are either equipped with heavy networks to fuse RGB and depth information or empirically ineffective to process millions of pseudo-LiDAR points. With in-depth examination, we realize that these limitations are rooted in inaccurate object localization. In this paper, we propose a novel and lightweight approach, dubbed Progressive Coordinate Transforms (PCT) to facilitate learning coordinate representations. Specifically, a localization boosting mechanism with confidence-aware loss is introduced to progressively refine the localization prediction. In addition, semantic image representation is also exploited to compensate for the usage of patch proposals. Despite being lightweight and simple, our strategy leads to superior improvements on the KITTI and Waymo Open Dataset monocular 3D detection benchmarks. At the same time, our proposed PCT shows great generalization to most coordinatebased 3D detection frameworks. The code is available at: https://github.com/ amazon-research/progressive-coordinate-transforms.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Object detection is a fundamental and challenging task in scene understanding applications. Recently, 3D object detection has received increasing attention and found applications in a wide range of scenarios such as autonomous driving, robotics, visual navigation and mixed reality. Despite the great progress from the area of 2D object detection [34, 49, 40, 18, 4], 3D object detection remains a largely unsolved problem as it aims to predict the object location in the 3D space alongside 3D object dimension and orientation.
|
| 12 |
+
|
| 13 |
+
Existing prevalent approaches [50, 44, 35, 10, 11] for 3D object detection largely rely on LiDAR sensors, which provide accurate 3D point clouds of the scene. Although these approaches achieve superior performance, the dependence on expensive equipment severely limits their applicability to generic 3D perception. There also exists a cheaper alternative that takes a single-view RGB image as input, termed as monocular 3D object detection. However, its performance is far from satisfactory as itself is an ill-posed problem due to the loss of depth information in 2D image planes. Hence, several recent attempts introduce depth information to help monocular 3D detection. Such attempts can be roughly categorized into two directions, pixel-based and coordinate-based. Pixel-based approaches [9, 36, 31, 41] turn to use estimated depth map as additional input for improved detection performance. But at the same time, this leads to heavy computational burden and large memory footprint since they often operate on the entire image. Coordinated-based approaches [42, 29, 46, 27] pursue the coordinate representations as in LiDAR-based methods. They use the predicted depth map to convert the monocular image pixels to 3D coordinate representations, then apply a 3D detector on the converted coordinates. In particular, they are often lightweight since their network inputs are object proposals generated by 2D detectors [29, 27]. However, the performance of coordinated-based methods lags far behind LiDAR-based methods. So we ask, can we identify the bottleneck that holds back the 3D detection accuracy of coordinate-based methods and how can we improve them?
|
| 14 |
+
|
| 15 |
+
Table 1: Probing investigation on coordinate-based methods, PatchNet [27] and Pseudo-LiDAR [42]. We examine the potential improvement by replacing the predicted factor with the corresponding ground truth. $^ *$ indicates our reproduced performance. We can see that coordinate-based methods mostly suffer from inaccurate localization.
|
| 16 |
+
|
| 17 |
+
<table><tr><td rowspan="2">Factor</td><td colspan="3">PatchNet*[AP3D/APBEV]</td><td colspan="3">Pseudo-LiDAR*[AP3D/APBEv]</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>Baseline</td><td>26.31/34.14</td><td>36.40/46.80</td><td>21.07/28.04</td><td>23.04/31.06</td><td>32.27/42.45</td><td>19.67/25.67</td></tr><tr><td>dimension</td><td>27.26/34.62</td><td>40.32/47.24</td><td>24.29/28.38</td><td>25.88/31.97</td><td>36.09/44.35</td><td>20.88/26.60</td></tr><tr><td>rotation</td><td>26.25/34.04</td><td>36.09/46.25</td><td>23.49/27.99</td><td>23.88/31.31</td><td>32.42/42.74</td><td>19.85/26.07</td></tr><tr><td>X</td><td>32.80/41.43</td><td>45.60/56.22</td><td>27.38/34.63</td><td>28.36/36.77</td><td>39.69/50.78</td><td>25.08/29.92</td></tr><tr><td>y</td><td>30.16/34.14</td><td>40.94/46.80</td><td>24.58/28.04</td><td>25.53/31.06</td><td>35.19/42.45</td><td>20.69/25.67</td></tr><tr><td>Z</td><td>42.42/53.48</td><td>55.42/68.29</td><td>35.54/45.60</td><td>38.37/50.81</td><td>50.04/63.96</td><td>32.24/43.32</td></tr><tr><td>location(xyz)</td><td>72.58/75.27</td><td>81.41/85.14</td><td>57.69/66.10</td><td>64.36/73.37</td><td>79.13/83.77</td><td>55.64/58.27</td></tr></table>
|
| 18 |
+
|
| 19 |
+
In order to determine the bottleneck, we conduct an investigation on two widely adopted coordinatebased methods, PatchNet [27] and Pseudo-LiDAR [42]. Specifically, for each prediction target, we examine the potential improvement by replacing its value with the corresponding ground truth, and then re-compute the 3D detection accuracy. As shown in Table 1, using ground truth dimension and rotation do not bring significant improvements over the baseline. But using ground truth location (i.e., x/y/z values of the objects) almost triples detection accuracy. This indicates that coordinate-based methods mostly suffer from inaccurate localization even with the assistance of estimated depth maps.
|
| 20 |
+
|
| 21 |
+
Based on this observation, we focus on improving the accuracy of 3D center localization. In this work, we propose a lightweight and generalized approach, called Progressive Coordinate Transforms (PCT), to enhance the localization capability for coordinate-based methods. First of all, since the localization regression network in most coordinate-based methods is less accurate but lightweight, we propose to progressively refine its prediction similar to gradient boosting [12, 13]. To be specific, a localization regression network can be seen as a weak learner, and we progressively train multiple consecutive networks such that each network fits the regression residual from the previous networks. These networks share the same lightweight structure so that the computation overhead is negligible. We also predict a confidence score for each network to help stabilize the end-to-end training. We term this progressive refining strategy as confidence-aware localization boosting (CLB). Compared to image-only or pixel-based methods, coordinated-based methods suffer from the problem of missing global context information due to the use of patched input. In order to further improve the localization accuracy, we exploit semantic image representations from 2D detector. We term this module as global context encoding (GCE). We find that GCE can not only improve center localization accuracy, but also contribute to the final 3D box estimation.
|
| 22 |
+
|
| 23 |
+
Through extensive experiments, our progressive coordinate transforms, consisting of CLB and GCE, is shown to improve popular coordinate-based models [42, 27] by generating more accurate localization. Without bells and whistles, we achieve state-of-the-art monocular 3D detection performance on KITTI [16, 17, 15] with a strong base method [27]. Additionally, this also leads to superior improvements on Waymo Open Dataset [38] compared with the base method PatchNet.
|
| 24 |
+
|
| 25 |
+
# 2 Related work
|
| 26 |
+
|
| 27 |
+
# 2.1 Monocular 3D object detection
|
| 28 |
+
|
| 29 |
+
Existing paradigms for monocular 3D object detection can be categorized into two types: image-only methods and depth-assisted methods.
|
| 30 |
+
|
| 31 |
+
For image-only methods, they often adapt architectures and good practices from popular 2D detectors [34, 49, 40]. However, locating objects in 3D space is much more challenging without depth information. Hence, several works [30, 2, 25, 6, 49] integrate geometry consistency into the training strategy to constrain the localization prediction. Deep3DBox [30] divides orientation into multi-bins to stably regress them, and combines the 2D-3D box constraint to recover accurate 3D object pose. M3D-RPN [2] utilizes the geometric relationship between 2D and 3D perspectives by sharing the prior anchors and classification targets. MonoPair [6] leverages the spatial relationships between paired objects to improve accuracy on occluded objects. To further improve the performance of truncated objects, MonoFlex [48] decouples the features learning and prediction of truncated objects, and formulates an depth estimation to adaptively combine independent estimator based on uncertainty. [33] designs CaDDN as a fully differentiable end-to-end approach for joint depth estimation and object detection.
|
| 32 |
+
|
| 33 |
+
Depth-assisted methods often estimate a depth map given a input image, and use it in different ways. Some pixel-based approaches [9, 26] directly feed images and estimated depth maps into networks to generate depth-aware features and enhance the 3D detection performance. Some other coordinatebased approaches first transform the pixels of input images to 3D coordinates by leveraging the depth and camera information, then feed the coordinate proposals to a 3D detector. Pioneering work Pseudo-LiDAR [42] imitates the process of LiDAR-based approaches, which uses LiDAR-based 3D detector upon coordinates proposals. AM3D [29] explores the multi-modal input fusion to embed the complementary RGB cue into the network. Recently, PatchNet [27] points out that the efficacy of pseudo-LiDAR representation comes from the coordinate transform, instead of sophisticated LiDAR-based networks. Hence, they design a simple 2D CNN to perform 3D detection. In this work, we follow the research of coordinate-based methods [42, 27]. Instead of regressing 3D localization directly with a single lightweight network, we propose to progressively refine the prediction inspired by gradient boosting. We also incorporate RGB image information to complement patch proposals and enhance global context modeling. Different from AM3D [29], we utilize the RGB features from the 2D detector directly which can share the same context, and we do not need to train another RGB network from scratch.
|
| 34 |
+
|
| 35 |
+
# 2.2 Gradient boosting
|
| 36 |
+
|
| 37 |
+
Gradient boosting is a well-known greedy algorithm proposed in [7], which trains a sequence of learners and progressively improves the prediction results. It is a general learning framework, and has been verified to be a formidable force when applied with lightweight learners. Meanwhile, when each learner in the sequence is heavy, the computation cost becomes high and the performance is not beneficial [24]. Early works in 2D detection area [19, 21, 22] also adopt the boosting mechanism following a standard cascade paradigm, and achieve improved performance. Li et al. [21] treat face detection as an image retrieval task and improve it with a boosted exemplar-based face detector. Karianakis et al. [19] and Li et al. [22] feed convolutional features of proposals instead of hand-crafted features to boosted classifiers and distinguish objects from backgrounds. We can also find the usage of gradient boosting in other computer vision tasks [37, 51].
|
| 38 |
+
|
| 39 |
+
To our best knowledge, we are the first to explore the boosting mechanism in coordinate-based methods for 3D object detection. We perform this mechanism in two folds. First, instead of the entire 3D detection pipeline, we only progressively boost the localization regression network as its computational cost is insignificant comparing to the entire pipeline. Second, we refine the localization with an additional confidence score in the boosting procedure, such that the loss is balanced. These choices greatly improves the performance with small extra parameters.
|
| 40 |
+
|
| 41 |
+
# 3 Background
|
| 42 |
+
|
| 43 |
+
Before diving into the details, we first revisit recent coordinate-based monocular 3D detection methods and present a visual depiction of its common pipeline in Figure 1. The framework usually consists of four main components: 2D bounding box generation, depth map estimation, data transformation and 3D box estimation. Specifically, given an image $I$ , the process can be described as:
|
| 44 |
+
|
| 45 |
+
2D bounding box generation. An off-the-shelf 2D object detector $F _ { 2 d }$ such as Faster R-CNN [34] is employed on image $I$ to generate region of interests (RoIs), $\mathscr { R } = F _ { 2 d } ( I )$ .
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 1: A common pipeline of coordinate-based monocular 3D detectors. It consists of four steps to predict the final 3D boxes: 2D bounding box generation, depth map estimation, data transformation and 3D box estimation. In this work, we focus on improving the last step: 3D box estimation.
|
| 49 |
+
|
| 50 |
+
Depth map estimation. An off-the-shelf depth estimator $F _ { z }$ such as DORN [14] is applied on image $I$ to predict its depth map, $\mathcal { Z } = F _ { z } ( I )$ .
|
| 51 |
+
|
| 52 |
+
Data transformation. To convert a pixel $( u , v )$ within a RoI to 3D space, the associated depth $z = \mathcal { Z } ( u , v )$ is used to transform it into its 3D coordinates $\left( c _ { x } , c _ { y } , c _ { z } \right)$ by
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
c _ { x } = { \frac { ( u - u ^ { \prime } ) \times z } { f _ { u } } } ; \quad c _ { y } = { \frac { ( v - v ^ { \prime } ) \times z } { f _ { v } } } ; \quad c _ { z } = z
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
Here, $\left( c _ { x } , c _ { y } , c _ { z } \right)$ is a pixel in the generated 3D coordinate patch $c$ . $( u ^ { \prime } , v ^ { \prime } )$ is the camera principal point. $f _ { u }$ and $f _ { v }$ are the focal length along horizontal and vertical axis, respectively. $u ^ { \prime } , v ^ { \prime } , \bar { f } _ { u } , f _ { v }$ are usually provided by the datasets.
|
| 59 |
+
|
| 60 |
+
3D box estimation. Once the 3D coordinates for each RoI are available, the final step is to predict 3D boxes with their center location, rotation and dimension. Different networks $F _ { 3 d }$ such as Frustum PointNet [32] can be employed to conduct 3D box prediction, $\boldsymbol { B } = F _ { 3 d } ( \boldsymbol { c } )$ . Here, $\boldsymbol { B }$ includes the center location $( x , y , z )$ , rotation $( \theta )$ , and dimensions $( w , h , l )$ of the 3D box.
|
| 61 |
+
|
| 62 |
+
Since the first two steps use off-the-shelf models and the third step can be computed analytically, in this paper, we focus on improving the last step of coordinated-based methods. In particular, our goal is to improve the accuracy of localization prediction motivated by the observation in Table 1.
|
| 63 |
+
|
| 64 |
+
# 4 Method
|
| 65 |
+
|
| 66 |
+
In this section, we present our progressive coordinate transforms (PCT) for improved 3D detection. In order to obtain more accurate localization predictions, we introduce a confidence-aware localization boosting mechanism (CLB) in Sec. 4.1 to progressively refine the prediction. Then in Sec. 4.2, we incorporate RGB image information by a global context encoding (GCE) strategy to compensate for the drawbacks of using patch proposals. In the end, we illustrate the overall framework of PCT in Figure 2 (a).
|
| 67 |
+
|
| 68 |
+
# 4.1 Confidence-aware localization boosting
|
| 69 |
+
|
| 70 |
+
Following Frustum PointNet [32], most coordinate-based methods [42, 45, 27, 43] divide the last step of 3D box estimation into two major components. The first component is a lightweight 3D localization regressor $F$ , whose input is 3D coordinate proposals generated from data transformation. The second component is a relatively heavy network $G$ used to regress the final 3D box $\boldsymbol { B }$ . Recalling the results in Table 1, 3D localization performance is the weakest point of a coordinate-based model, accounting for up to 50 AP loss when all other modules keep intact. Therefore, can we find an efficient way to improve the accuracy of localization prediction and also generalizes to other coordinated-based methods?
|
| 71 |
+
|
| 72 |
+
Gradient boosting [12, 13] is a general learning framework that combines multiple weak learners into a single strong one in an iterative fashion. Let $\mathcal { L } ( x )$ be the risk of ensemble models, the algorithm devotes to seek an approximation $h ( x )$ to minimize $\mathcal { L } ( y ^ { \ast } , x ) = \Psi ( y ^ { \ast } , h ( x ) )$ , where $y ^ { * }$ is a target value, $\Psi ( \cdot )$ is the loss function. $h ( x )$ is a linear combination of a set of weak (base) learners $f _ { t } ( x )$ from some class $\mathcal { F }$ , i.e., $\begin{array} { r } { h ( x ) = \sum _ { t = 1 } ^ { t = T } \gamma _ { t } f _ { t } ( x ) + c o n s t } \end{array}$ . Here, $T$ is the total training iterations and $\gamma _ { t }$ is the corresponding weight for each weak learner. To minimize the empirical risk, the algorithm starts with a model $h _ { 0 } ( x )$ , and then incrementally expands it in a greedy manner. This process manages to fit a new weak learner to the residual errors made by the previous set of learners. Mathematically, the
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 2: (a) Schematic illustration of proposed Coordinate Transforms (PCT). We treat $F$ as a weaker learner, and perform coordinate transform $T$ steps via confidence-aware localization boosting (CLB module) to obtain a better localization. Then the refined coordinate proposals combined with corresponding encoded RGB features (GCE module) are fed into network $\mathbf { G }$ to generate final 3D bounding boxes. (b) The data flow of CLB mechanism in detail. For step $t$ , it takes refined coordinate patches $c _ { t - 1 }$ as input, which is transformed based on predicted $\Delta ( x _ { t - 1 } , y _ { t - 1 } , z _ { t - 1 } )$ . Then network $F _ { t }$ generate the residual localization for the next step, and confidence $s _ { t }$ is also generated during the training process.
|
| 76 |
+
|
| 77 |
+
optimization can be formulated as
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r l } & { h _ { 0 } ( x ) = \underset { \gamma _ { 0 } } { \arg \operatorname* { m i n } } \mathcal { L } _ { 0 } ( y ^ { * } , x ) ; } \\ & { ~ \quad \quad \cdots } \\ & { h _ { t } ( x ) = h _ { t - 1 } ( x ) + \underset { f _ { t } \in \mathcal { F } } { \arg \operatorname* { m i n } } \mathcal { L } _ { t } ( y ^ { * } , h _ { t - 1 } ( x ) + f _ { t } ( x ) ) . } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
Inspired by gradient boosting, we imitate its optimization procedure to progressively adapt localization prediction by multiple localization regressors instead of a single one used in previous works [42, 29, 46, 27]. To be specific, we treat localization network $F$ as a weak learner and stack multiple of them as shown in Figure 2 (b). Given $F$ is a lightweight network, the extra computational cost brought by gradient boosting is insignificant. After the data transformation step, each 2D bounding box obtains its corresponding coordinate patch $c$ . We take the coordinate patch as the input of weak learner $F$ to regress the center localization residual $\Delta ( x , y , z )$ based on the prediction from previous stage,
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\Delta ( x _ { t } , y _ { t } , z _ { t } ) = F _ { t } ( c _ { t - 1 } ) ; { \mathrm { ~ w h e r e ~ } } c _ { t - 1 } = c _ { 0 } - \gamma _ { 0 } ( x _ { 0 } , y _ { 0 } , z _ { 0 } ) - \sum _ { i = 1 } ^ { t - 1 } \gamma _ { i } \Delta ( x _ { i } , y _ { i } , z _ { i } ) .
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
We denote $c _ { 0 }$ and $( x _ { 0 } , y _ { 0 } , z _ { 0 } )$ to be the initial coordinate input patch and object location, respectively. Coordinate input patch $c _ { t - 1 }$ is then transformed according to the localization residual prediction, and fed into the next weak learner.
|
| 90 |
+
|
| 91 |
+
Thus the risk at stage $t$ can be written as,
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\mathcal { L } _ { F _ { t } } ( ( x ^ { * } , y ^ { * } , z ^ { * } ) , c _ { t - 1 } ) = \Psi ( ( x ^ { * } , y ^ { * } , z ^ { * } ) , \gamma _ { 0 } ( x _ { 0 } , y _ { 0 } , z _ { 0 } ) + \sum _ { i = 1 } ^ { t - 1 } \gamma _ { i } \Delta ( x _ { i } , y _ { i } , z _ { i } ) )
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $( x ^ { * } , y ^ { * } , z ^ { * } )$ indicates the ground truth location. At this point, we can easily see that $\mathrm { E q 4 }$ is a natural derivation from $\operatorname { E q } 2$ . After $T$ iterations, the final adjusted prediction $c _ { T }$ is fed into the network $G$ to estimate the 3D box $\boldsymbol { B }$ $3 , i . e . B = G ( c _ { T } )$ .
|
| 98 |
+
|
| 99 |
+
Confidence-aware network loss In the case that the target of weak learner $f$ is differentiable, gradient boosting solves the optimization problem in a forward greedy manner as shown in Eq 2. For each iteration, it first fits the weak learner $f$ to the residual error, and then the optimal value of the coefficient weight $\gamma$ is determined for this weak learner. The optimization procedures train iteratively for $T$ iterations.
|
| 100 |
+
|
| 101 |
+
However, for our center regression task, we would like to train $T$ weak localization networks $F _ { t } ( c _ { t - 1 } ) , t \in { 1 , . . . , T }$ and a 3D box prediction network $G$ in an end-to-end manner instead of bootstrapping. This is challenging in terms of both computational cost and optimization stability, given the simultaneous training of a set of weak learners and their coefficient weights. Therefore, we first simplify the problem by treating all $\gamma _ { t }$ the same and only focus on optimizing the localization networks. However, the contribution from each weak learner $F$ may not be the same during end-toend training, which leads to unstable optimization. Hence, we tailor a confidence-aware boosting loss to facilitate network training, by learning confidence score $s _ { t }$ for each localization loss function $\mathcal { L } _ { F _ { t } }$ . The confidence score $s _ { t }$ is learned from a small decoder and followed a self-balancing formulation closely coupled to the network loss. The overall loss function is defined as
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\mathcal { L } ( \boldsymbol { B } ^ { * } , \boldsymbol { c } _ { 0 } ) = \sum _ { t = 1 } ^ { T } s _ { t } \ast \mathcal { L } _ { \boldsymbol { F } _ { t } } ( ( \boldsymbol { x } ^ { * } , \boldsymbol { y } ^ { * } , \boldsymbol { z } ^ { * } ) , \boldsymbol { c } _ { t - 1 } ) + \lambda _ { s } \prod _ { t = 1 } ^ { T } ( 1 - s _ { t } ) + \mathcal { L } _ { G } ( \boldsymbol { B } ^ { * } , \boldsymbol { c } _ { T } ) ,
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where $B ^ { * }$ is the 3D box ground truth, $( x ^ { \ast } , y ^ { \ast } , z ^ { \ast } ) \in B ^ { \ast }$ and $\lambda _ { s }$ is the balance weight. $s _ { t }$ is the prediction after sigmoid, which represents the confidence of the localization regression loss at $t ^ { t h }$ stage, and $\textstyle \prod _ { t = 1 } ^ { T } ( 1 - s _ { t } )$ is the penalty on the network uncertainty. In other words, if $s _ { t }$ is approaching 1, which means the network is confident about localization refinement at $t ^ { t h }$ stage, then no penalty will be applied. Otherwise, the uncertainty of regression loss is high, thus triggers a higher penalty.
|
| 108 |
+
|
| 109 |
+
# 4.2 Global context encoding
|
| 110 |
+
|
| 111 |
+
Typical coordinate-based methods [42, 45, 27, 43] perform 3D detection based on 2D RoIs, which is similar to two-stage 2D detection frameworks, such as Faster R-CNN [34]. In a two-stage 2D object detection framework, the second stage reuses the features from the first stage via RoIPooling [34] or RoIAlign operators [18] guided by ROI proposals, and then a small decoder is used for localization refinement. However, in 3D detection, only cropped patches with coordinates information are fed to the network for 3D box regression. Neither RGB information nor global context is included.
|
| 112 |
+
|
| 113 |
+
Considering that the RGB information is a vital visual clue, we explore its aggregation in the last 3D box estimation step. Similar to two-stage 2D detectors, we obtain the RGB information by directly cropping the corresponding features from a 2D detector $F _ { 2 d }$ . Then the input to 3D box estimator $G$ can be formulated as $\bar { c \mathbf { \eta } } = \{ [ \mathcal { D } ( { \boldsymbol u } , { \boldsymbol v } ) , \mathcal { A } ( { \boldsymbol u } , { \boldsymbol v } ) ] , \forall ( { \boldsymbol u } , { \boldsymbol v } ) \in \mathcal { R } \}$ . Here, $\mathcal { D } ( \cdot )$ represents the data transformation function and $\boldsymbol { \mathcal { A } } ( \cdot )$ represents the RoIAlign operation. Both operations are performed upon the generated regions of interest from $\mathcal { R }$ .
|
| 114 |
+
|
| 115 |
+
After RoIAlign operation, features are of size $C \times K \times K$ , where $C$ is the number of channels and $K \times K$ is the corresponding width and height, respectively. A small feature encoder is then used to encode cropped features into vectors with the dimension of $C$ . A feature fusion is followed to integrate coordinate representations with the obtained image representations. Benefiting from the large receptive fields of image feature representations, 3D box estimator can now have access to global context. Besides, directly cropping on RGB features also avoids learning image representations of RoIs from scratch and reduces the overall network parameters.
|
| 116 |
+
|
| 117 |
+
# 5 Experiments
|
| 118 |
+
|
| 119 |
+
Two monocular 3D detection benchmarks are introduced in Sec. 5.1 and Sec. 5.2, while experimental implementation details are described in Sec. 5.3. In Sec. 5.4, we conduct main analysis on KITTI dataset [16, 17, 15] with base method PatchNet [27] given its current best performance. More experiments on Waymo Open Dataset [38] are also demonstrated to further verify the generality of our proposed PCT in Sec. 5.5.
|
| 120 |
+
|
| 121 |
+
# 5.1 KITTI setup
|
| 122 |
+
|
| 123 |
+
We first evaluate our method on the KITTI benchmark [16, 17, 15], which contains 7,481 and 7,518 images for training and testing respectively. We follow [5] to split the 7,481 training images into 3712 for training and 3,769 for validation.
|
| 124 |
+
|
| 125 |
+
Table 2: Ablative analysis on KITTI validation set for $\mathrm { A P _ { 3 D } }$ and $\mathrm { A P _ { B E V } }$ at $\mathrm { I o U } = 0 . 7$ . Experiment Group (I) is the baseline method. Different experiment settings are explored: (II) applying localization boosting without confidence constraint, (III) performing confidence-aware localization boosting algorithm, (IV) adding global context encoding on Group (II), (V) our full approach.
|
| 126 |
+
|
| 127 |
+
<table><tr><td rowspan="2">Group</td><td rowspan="2">Localization Boosting</td><td rowspan="2">Uncertainty</td><td rowspan="2">GCE</td><td colspan="3">AP3D</td><td colspan="3">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>I</td><td>-</td><td>-</td><td>1</td><td>25.88</td><td>36.07</td><td>20.99</td><td>33.34</td><td>46.39</td><td>27.54</td></tr><tr><td>Ⅱ</td><td>√</td><td></td><td>1</td><td>26.78</td><td>37.29</td><td>24.11</td><td>34.39</td><td>47.08</td><td>28.28</td></tr><tr><td>Ⅲ</td><td>√</td><td>√</td><td>=</td><td>27.24</td><td>38.32</td><td>24.39</td><td>33.92</td><td>46.77</td><td>27.98</td></tr><tr><td>IV</td><td>√</td><td></td><td></td><td>27.12</td><td>37.38</td><td>24.11</td><td>34.46</td><td>46.70</td><td>28.32</td></tr><tr><td>V</td><td>√</td><td>√</td><td></td><td>27.53</td><td>38.39</td><td>24.44</td><td>34.65</td><td>47.16</td><td>28.47</td></tr></table>
|
| 128 |
+
|
| 129 |
+
Precision-recall curves are adopted for evaluation, and we report the average precision (AP) results of 3D and Bird’s eye view (BEV) object detection on KITTI validation and test set. For fair comparison to previous literature, the 40 recall positions-based metric $A P | _ { R 4 0 }$ is reported on test set while $\bar { A } P | _ { R 1 1 }$ is reported on validation set. Three levels of difficulty are defined in the benchmark according to the 2D bounding box height, occlusion, and truncation degree, namely, “Easy”, “Mod.”, and “Hard”. The KITTI benchmark ranks all methods based on the $\mathrm { A P _ { 3 D } }$ of “Mod.”. In particular, we focus on the “Car” category as in [42, 27], and we adopt $\mathrm { I o U } = 0 . 7$ as threshold for evaluation.
|
| 130 |
+
|
| 131 |
+
# 5.2 Waymo setup
|
| 132 |
+
|
| 133 |
+
We also carry out experiments on large-scale, high quality and diverse dataset, Waymo open dataset [38]. It provides pre-defined 798 training sequences and 202 validation sequences from different scenes, and another 150 test sequences without labels. The dataset contains camera images from five high-resolution pinhole cameras, and we only consider images with their 3D labels from front camera for monocular 3D detection task. We sample every third frame from the training sequences (total 52,386 images) as in CaDDN [33] to form the training set due to its large scale. And validation set contains all the 39,848 images from 202 different scenes.
|
| 134 |
+
|
| 135 |
+
For evaluation, we adopt the officially released evaluation [39] to calculate the mean average precision (mAP) and the mean average precision weighted by heading (mAPH). Two levels are included according to difficulty rating, which are defined by LiDAR points. 3D labels without any points are ignored, LEVEL_2 is assigned to examples when it contains equal or lesser than 5 points, while the rest of the examples are assigned to LEVEL_1. Additionally, three distances (0 - 30m, 30 - 50m, $5 0 \mathrm { m }$ $- \infty )$ ) to sensor are considered during evaluation.
|
| 136 |
+
|
| 137 |
+
# 5.3 Implementation details
|
| 138 |
+
|
| 139 |
+
Our overall framework of PCT can be visualized in Figure 2. In terms of implementation details, we instantiate our algorithm on two widely adopted coordinate-based methods with public released code [28], PatchNet and Pseudo LiDAR. Bearing efficiency in mind, we use a real-time 2D detector RTM3D [23] with DLA-34 [47] as backbone. For the sake of fair comparison, we adopt depth predictor DORN [14] on KITTI dataset as in most depth-assisted literature. Since there is no published depth results on Waymo open dataset, we adopt a most recent monocular depth estimator AdaBins [1] trained on Waymo training set. For the CLB mechanism, we inherit the original localization regression framework in each method. Each $F _ { t }$ shares the same structure. The corresponding confidence is generated following the last convolutional layers of $F _ { t }$ with three linear layers and a Sigmoid function. $T = 3$ and $\lambda _ { s } = 1$ are set for the following experiments except for the ablation study on boosting iterations. For GCE module, we get the corresponding input image features by performing RoIAlign on the features from last convolutional layer of 2D detector. We set the output of RoIAlign as $1 6 \times 1 6$ . As 2D detector use DLA-34 as backbone, the obtained image feature representations have the size of $6 4 \times 1 6 \times 1 6$ and entitle arbitrary sized receptive field theoretically due to the embedded deformable convolution [8]. The structure of feature encoder in global context module is two common $6 4 \times 3 \times 3$ convolutional layers (stride $^ { = 4 }$ ) and a $6 4 \times 1 \times 1$ convolutional layer (stride ${ \mathop : } = 1$ ). Hence, image feature representations are encoded to a vector with 64-dim. The obtained features are then concatenated with the coordinate feature vectors from the final global pooling of box prediction network $G$ . With the lightweight structure, we are able to optimize the network end-to-end on a single Nvidia V100
|
| 140 |
+
|
| 141 |
+

|
| 142 |
+
Figure 3: The statistic analysis and comparison on different Localization boosting stage when $T = 3$ . The vertical axis of the chart represents the number of samples after normalization. “loc. $1 / 2 / 3 ^ { \circ }$ denotes the $1 / 2 / 3 ^ { t h }$ step of localization errors in $F$ and “loc. $. 4 \ "$ is the final localization errors in $G$ . Note that when the curve is more thin, tall, and closer to zeros, the localization is more accurate.
|
| 143 |
+
|
| 144 |
+
GPU with 16G memory. The training criterion for network $F$ and $G$ and other training settings follow the corresponding base methods for fair comparison.
|
| 145 |
+
|
| 146 |
+
# 5.4 Method analysis on KITTI dataset
|
| 147 |
+
|
| 148 |
+
Main ablative analysis In Table 2, we conduct ablation studies to analyze the effectiveness of our contributions: I) Without any localization regression network $F$ , network $G$ generates 3D box prediction directly. II) This configuration only contains localization boosting part without confidence constraint. III) The entire CLB mechanism is included to progressively regress center localization. IV) GCE module is added to the network based on the localization boosting block without confidence constraint since the feature fusion can be performed on either the localization regression networks $F$ or 3D box prediction network $G$ . V) Our full method with all the components.
|
| 149 |
+
|
| 150 |
+
As depicted in Table 2, we can observe that the performance continues to grow with the addition of every component. From group II, localization boosting brings a noticeable improvement on all settings especially “Hard” set, which confirms its effectiveness in increasing localization accuracy. Group III shows that balancing training loss by adding confidence leads to better and more stable optimization. Group IV reveals that the proposed GCE module can effectively equip RGB information and global context with 3D coordinate representations. In the end, Group V demonstrates the complementarity of the proposed CLB mechanism and GCE module, leading to an improvement from 25.88/36.07/20.99 to 27.53/38.39/24.44 compared with Group I.
|
| 151 |
+
|
| 152 |
+
Table 3: Comparison of different boosting iteration settings on KITTI validation split set.
|
| 153 |
+
|
| 154 |
+
<table><tr><td rowspan="2">Localization Boost (T)</td><td colspan="3">AP3D/APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>1</td><td>25.88/33.34</td><td>36.07/46.39</td><td>20.99/27.54</td></tr><tr><td>1</td><td>26.31/34.14</td><td>36.40/46.80</td><td>21.07/28.04</td></tr><tr><td>2</td><td>26.69/34.06</td><td>37.17/46.42</td><td>24.04/28.03</td></tr><tr><td>3</td><td>26.78/34.39</td><td>37.29/47.08</td><td>24.11/28.28</td></tr><tr><td>4</td><td>26.77/34.21</td><td>37.12/47.00</td><td>23.48/28.23</td></tr><tr><td>5</td><td>26.64/34.43</td><td>37.24/47.04</td><td>23.89/28.27</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 4: Evaluation of different coordinate feature fusion with GCE on KITTI validation set. Baseline is the Group (II) in Table 2.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Method</td><td colspan="3">AP3D</td></tr><tr><td>Baseline</td><td>Mod. 26.78</td><td>Easy 37.29</td><td>Hard 24.11</td></tr><tr><td>F+GCE</td><td>27.08</td><td>37.33</td><td>24.07</td></tr><tr><td>G+GCE</td><td>27.12</td><td>37.38</td><td>24.11</td></tr><tr><td>All + GCE</td><td>27.07</td><td>37.43</td><td>24.18</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Localization boosting iteration settings We explore the effect of different localization boosting iteration settings in this part. For a fair comparison, we do not perform the confidence constraint on regression loss. As illustrated in Table 3, when boosting iteration $T = 3$ , we achieve the best 3D detection performance. More iterations of boosting do not bring improvements, which might be caused by overfitting with the increasing of network parameters.
|
| 161 |
+
|
| 162 |
+
To verify the improvement of each step in boosting procedure, we conduct the comparison of localization errors at iteration $T = 3$ on the specific metrics (location “xyz”) of the ground truth. In particular, three stacked localization networks $F$ generate intermediate localization $^ { \bullet \bullet } \mathrm { l o c . } 1 / 2 / 3 ^ { \bullet \bullet }$ and $G$ output the final localization “loc.4”. As shown in Figure 3, we can see that the distributions of $\mathbf { \ddot { x } } ^ { , 5 }$ , “y” and “z” errors tend to distributed to zero with localization boosting iterating. For instance, the red line in left chart is narrow and tall near zero along horizontal axis compared with other lines, which means that the corresponding x coordinate is more accurate than others. This further suggests that localization boosting is useful for object localization. The corresponding BEV visualization will be shown in Supplementary Material.
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
Figure 4: Qualitative comparison of ground truth (green), base method PatchNet (blue), and our method (red) on KITTI val set. The first and second rows show RGB and BEV images respectively.
|
| 166 |
+
|
| 167 |
+
Table 5: Comparison of generalization on KITTI validation set. $^ *$ denotes that the method is reproduced by ourselves.
|
| 168 |
+
|
| 169 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">AP3D</td><td colspan="3">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>Pseudo-LiDAR*[42]</td><td>23.04</td><td>32.27</td><td>19.67</td><td>31.06</td><td>42.45</td><td>25.67</td></tr><tr><td>Pseudo-LiDAR+ CLB</td><td>24.14</td><td>34.46</td><td>20.16</td><td>32.41</td><td>44.98</td><td>26.82</td></tr><tr><td>Pseudo-LiDAR + CLB +GCE</td><td>24.43</td><td>34.34</td><td>20.18</td><td>32.50</td><td>45.35</td><td>26.91</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Impact of global context encoding We also explore where the global context representation fusion operates. We take Group II as the baseline, and perform feature fusion on localization regression network $F$ (row one), 3D estimation network $G$ (row two) or on both (final row). RoI features are encoded into a vector with GCE and then concatenate with the feature vectors from network ( $F$ or $G$ ) global pooling. As shown in Table 4, the operation on $G$ outperforms it on $F$ , which indicates that image representation is more suitable for the overall box prediction rather than only localization as it contains the additional semantic appearance information. Although operation on all networks achieves a lightly higher than it on $G$ on the “Easy” and “Hard” set, introducing parameters is much larger due to operation on stacked localization networks. Hence, we only apply GCE on network $G$ in our approach for a lightweight network and avoid overfitting during training.
|
| 172 |
+
|
| 173 |
+
Generally applicable to other coordinate-based algorithm In this section, we demonstrate the generalization capability of our algorithm to classic coordinate-based methods Pseudo-LiDAR [42]. As shown in Table 5, each component of our algorithm improves the original methods a lot. Specially, our approach improves Pseudo-LiDAR by 1.43/2.06/0.51 while 1.22/1.99/3.36 gains on PatchNet.
|
| 174 |
+
|
| 175 |
+
Comparison with state-of-the-arts We build our test detector on the current state-of-the-art coordinate-based method PatchNet, and results are shown in Table 6. Quantitatively, our method achieves the highest performance on “Mod.” set with 22 FPS on NvidiaTesla v100 including 2D detector inference time, which is the main setting for ranking on the benchmark. Specially, large margins, 2.25/5.32/1.14 on 3D detection and 2.17/6.68/0.95 on BEV, are observed over the base method PatchNet with only additional 3.41M parameters. Besides, our methods also outperforms the pixel-based state-of-the-arts methods Liu et al. [26] especially on “Hard” set.
|
| 176 |
+
|
| 177 |
+
Qualitative comparisons are shown in Figure 4. The ground truth, base method (PatchNet), and our method are colored in green, blue, and red, respectively. For better visualization, the first and second rows show RGB images and BEV images, respectively. Compared with the base method, our algorithm can produce higher-quality 3D bounding boxes in different kinds of scenes.
|
| 178 |
+
|
| 179 |
+
Table 6: Comparison with SoTA methods on the KITTI test set at $\mathrm { I o U } = 0 . 7$ . Our algorithm achieves new SoTA performance. “Depth” means if the method belongs to depth-assisted methods or not. “Type” indicates the method input pattern, “Pixel” denotes the methods with image as inputs directly while “Coordinate” means the coordinate-based methods with 3D coordinates as inputs.
|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Depth</td><td rowspan="2">Type</td><td colspan="3">AP3D</td><td colspan="3">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>AM3D [29]</td><td>yes</td><td>Coordinate</td><td>10.74</td><td>16.50</td><td>9.52</td><td>17.32</td><td>25.30</td><td>14.91</td></tr><tr><td>PatchNet [27]</td><td>yes</td><td>Coordinate</td><td>11.12</td><td>15.68</td><td>10.17</td><td>16.86</td><td>22.97</td><td>14.97</td></tr><tr><td>GrooMeD-NMS[20]</td><td>no</td><td>Pixel</td><td>12.32</td><td>18.10</td><td>9.65</td><td>18.27</td><td>26.19</td><td>14.05</td></tr><tr><td>Kinematic3D[3]</td><td>yes</td><td>Pixel</td><td>12.72</td><td>19.07</td><td>9.17</td><td>17.52</td><td>26.69</td><td>13.10</td></tr><tr><td>DDMP-3D[41]</td><td>yes</td><td>Pixel</td><td>12.78</td><td>19.71</td><td>9.80</td><td>17.89</td><td>28.08</td><td>13.44</td></tr><tr><td>Liu et al. [26]</td><td>yes</td><td>Pixel</td><td>13.25</td><td>21.65</td><td>9.91</td><td>17.98</td><td>29.81</td><td>13.08</td></tr><tr><td>PCT</td><td>yes</td><td>Coordinate</td><td>13.37</td><td>21.00</td><td>11.31</td><td>19.03</td><td>29.65</td><td>15.92</td></tr></table>
|
| 182 |
+
|
| 183 |
+
# 5.5 Results on Waymo Open Dataset
|
| 184 |
+
|
| 185 |
+
Table 7 shows the results of base method PatchNet [27] and our proposed PCT. It can be observed that our method consistently outperforms the base method on mAP/mAPH of $0 . 5 0 \% / 0 . 5 1 \%$ and $0 . 2 8 \% / 0 . 3 0 \%$ on the LEVEL_1 and LEVEL_2 difficulties respectively under $\mathrm { I o U } = 0 . 7$ . Again, our method is efficient, e.g, it takes 5 days to complete training on large scale Waymo dataset with a 8-GPU node. More qualitative results can be seen at Supplementary Material.
|
| 186 |
+
|
| 187 |
+
Table 7: 3D performance on Waymo validation set. We demonstrate results of base method PatchNet [27] and corresponding PCT at $\mathrm { I o U } = 0 . 7$ and $\mathrm { I 0 U } = 0 . 5$ . Our proposed PCT achieves consistent improvements on all settings.
|
| 188 |
+
|
| 189 |
+
<table><tr><td rowspan="2">Difficulty</td><td rowspan="2">Threshold</td><td rowspan="2">Method</td><td colspan="4">3D mAP/3D mAPH</td></tr><tr><td>Overall</td><td>0-30m</td><td>30-50m</td><td>50-8</td></tr><tr><td rowspan="3">LEVEL_1</td><td>IoU=0.7</td><td>PatchNet PCT</td><td>0.39/0.37 0.89 / 0.88</td><td>1.67 / 1.63 3.18 / 3.15</td><td>0.13/0.12</td><td>0.03/0.03 0.07 /0.07</td></tr><tr><td rowspan="2">IoU=0.5</td><td>PatchNet</td><td>2.92/2.74</td><td>10.03/9.75</td><td>0.27 / 0.27 1.09/ 0.96</td><td>0.23/0.18</td></tr><tr><td>PCT</td><td>4.20 /4.15</td><td>14.70 / 14.54</td><td>1.78 / 1.75</td><td>0.39 / 0.39</td></tr><tr><td rowspan="3">LEVEL_2</td><td>IoU=0.7</td><td>PatchNet</td><td>0.38/0.36</td><td>1.67 / 1.63</td><td>0.13/0.11</td><td>0.03/0.03</td></tr><tr><td rowspan="2">IoU=0.5</td><td>PCT PatchNet</td><td>0.66 / 0.66</td><td>3.18 /3.15</td><td>0.27 /0.26</td><td>0.07 /0.07</td></tr><tr><td></td><td>2.42/2.28</td><td>10.01/9.73</td><td>1.07 /0.94</td><td>0.22/0.16</td></tr><tr><td></td><td></td><td>PCT</td><td>4.03 /3.99</td><td>14.67 / 14.51</td><td>1.74 / 1.71</td><td>0.36 / 0.35</td></tr></table>
|
| 190 |
+
|
| 191 |
+
# 6 Conclusions
|
| 192 |
+
|
| 193 |
+
In this paper, we have introduced a novel approach PCT to address the inaccurate localization problem for monocular 3D object detection. This is achieved by iteratively transforming the coordinate representation with a confidence-aware booting mechanism. Meanwhile, global context is introduced to compensate for the missing of semantic image representation in coordinated-based methods. Through extensive experiments, we have shown that our proposed PCT substantially improve the performance of the coordinate-based model by a large margin, and achieve state-of-the-art monocular 3D detection performance on KITTI test set. Moreover, we also show consistent improvements compared to the strong baseline on the large-scale Waymo Open dataset.
|
| 194 |
+
|
| 195 |
+
There are several limitations that could indicate the possible directions for future work. First, the performance of off-the-shelf 2D detector directly influences the accuracy of coordinate-based methods, hence how to effectively design the 3D box estimation algorithm to fit with existing 2D detectors is important. Second, we only concentrate on the lightweight coordinate-based methods. It requires further exploration to extend our approach to pixel-based methods. Finally, our proposed global context encoding is a simple module. Despite working well, a more tailored feature fusion strategy between coordinate representation and RGB image representation is worth exploring.
|
| 196 |
+
|
| 197 |
+
Potential impacts. Our method focuses on the monocular 3D detection which can be applied in autonomous driving field. One potential social problem of our work is that it may aggravate the employment crisis of human servants and drivers, which replaces human with autonomous robots and intelligent systems.
|
| 198 |
+
|
| 199 |
+
# Acknowledgments
|
| 200 |
+
|
| 201 |
+
This work was supported by Shanghai Municipal Science and Technology Major Projects (No.2021SHZDZX0103 and No.2018SHZDZX01).
|
| 202 |
+
|
| 203 |
+
# References
|
| 204 |
+
|
| 205 |
+
[1] Shariq Farooq Bhat, Ibraheem Alhashim, and Peter Wonka. Adabins: Depth estimation using adaptive bins. In CVPR, 2021.
|
| 206 |
+
[2] Garrick Brazil and Xiaoming Liu. M3d-rpn: Monocular 3d region proposal network for object detection. In ICCV, 2019.
|
| 207 |
+
[3] Garrick Brazil, Gerard Pons-Moll, Xiaoming Liu, and Bernt Schiele. Kinematic 3d object detection in monocular video. arXiv preprint, 2020.
|
| 208 |
+
[4] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020.
|
| 209 |
+
[5] Xiaozhi Chen, Kaustav Kundu, Yukun Zhu, Andrew G Berneshawi, Huimin Ma, Sanja Fidler, and Raquel Urtasun. 3d object proposals for accurate object class detection. In NeurIPS, 2015.
|
| 210 |
+
[6] Yongjian Chen, Lei Tai, Kai Sun, and Mingyang Li. Monopair: Monocular 3d object detection using pairwise spatial relationships. In CVPR, 2020.
|
| 211 |
+
[7] Corinna Cortes, Mehryar Mohri, and Umar Syed. Deep boosting. In ICML, 2014.
|
| 212 |
+
[8] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017.
|
| 213 |
+
[9] Mingyu Ding, Yuqi Huo, Hongwei Yi, Zhe Wang, Jianping Shi, Zhiwu Lu, and Ping Luo. Learning depth-guided convolutions for monocular 3d object detection. In CVPR, 2019.
|
| 214 |
+
[10] Liang Du, Xiaoqing Ye, Xiao Tan, Jianfeng Feng, Zhenbo Xu, Errui Ding, and Shilei Wen. Associate-3ddet: Perceptual-to-conceptual association for 3d point cloud object detection. In CVPR, 2020.
|
| 215 |
+
[11] Liang Du, Xiaoqing Ye, Xiao Tan, Edward Johns, Bo Chen, Errui Ding, Xiangyang Xue, and Jianfeng Feng. Ago-net: Association-guided 3d point cloud object detection network. TPAMI, 2021.
|
| 216 |
+
[12] Jerome H Friedman. Greedy function approximation: a gradient boosting machine. Annals of statistics, 2001.
|
| 217 |
+
[13] Jerome H Friedman. Stochastic gradient boosting. Computational statistics & data analysis, 2002.
|
| 218 |
+
[14] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In CVPR, 2018.
|
| 219 |
+
[15] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. http://www.cvlibs. net/datasets/kitti/eval_object.php?obj_benchmark $\cdot ^ { = }$ 3d. 2013.
|
| 220 |
+
[16] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. IJRR, 2013.
|
| 221 |
+
[17] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012.
|
| 222 |
+
[18] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In ICCV, 2017.
|
| 223 |
+
[19] Nikolaos Karianakis, Thomas J Fuchs, and Stefano Soatto. Boosting convolutional features for robust object proposals. arXiv preprint, 2015.
|
| 224 |
+
[20] Abhinav Kumar, Garrick Brazil, and Xiaoming Liu. Groomed-nms: Grouped mathematically differentiable nms for monocular 3d object detection. In CVPR, pages 8973–8983, 2021.
|
| 225 |
+
[21] Haoxiang Li, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Gang Hua. Efficient boosted exemplar-based face detection. In CVPR, 2014.
|
| 226 |
+
[22] Haoxiang Li, Zhe Lin, Xiaohui Shen, Jonathan Brandt, and Gang Hua. A convolutional neural network cascade for face detection. In CVPR, 2015.
|
| 227 |
+
[23] Peixuan Li, Huaici Zhao, Pengfei Liu, and Feidao Cao. Rtm3d: Real-time monocular 3d detection from object keypoints for autonomous driving. In ECCV, 2020.
|
| 228 |
+
[24] Xuchun Li, Lei Wang, and Eric Sung. A study of adaboost with svm based weak learners. In IJCNN, 2005.
|
| 229 |
+
[25] Lijie Liu, Jiwen Lu, Chunjing Xu, Qi Tian, and Jie Zhou. Deep fitting degree scoring network for monocular 3d object detection. In CVPR, 2019.
|
| 230 |
+
[26] Y. Liu, Y. Yuan, and M. Liu. Ground-aware monocular 3d object detection for autonomous driving. IEEE Robotics and Automation Letters, 2021.
|
| 231 |
+
[27] Xinzhu Ma, Shinan Liu, Zhiyi Xia, Hongwen Zhang, Xingyu Zeng, and Wanli Ouyang. Rethinking pseudo-lidar representation. In ECCV, 2020.
|
| 232 |
+
[28] Xinzhu Ma, Shinan Liu, Zhiyi Xia, Hongwen Zhang, Xingyu Zeng, and Wanli Ouyang. https: //github.com/xinzhuma/patchnet. 2020.
|
| 233 |
+
[29] Xinzhu Ma, Zhihui Wang, Haojie Li, Pengbo Zhang, Wanli Ouyang, and Xin Fan. Accurate monocular 3d object detection via color-embedded 3d reconstruction for autonomous driving. In ICCV, 2019.
|
| 234 |
+
[30] Arsalan Mousavian, Dragomir Anguelov, John Flynn, and Jana Kosecka. 3d bounding box estimation using deep learning and geometry. In CVPR, 2017.
|
| 235 |
+
[31] Erli Ouyang, Li Zhang, Mohan Chen, Anurag Arnab, and Yanwei Fu. Dynamic depth fusion and transformation for monocular 3d object detection. In ACCV, 2020.
|
| 236 |
+
[32] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, 2018.
|
| 237 |
+
[33] Cody Reading, Ali Harakeh, Julia Chae, and Steven L. Waslander. Categorical depth distributionnetwork for monocular 3d object detection. In CVPR, 2021.
|
| 238 |
+
[34] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015.
|
| 239 |
+
[35] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019.
|
| 240 |
+
[36] Xuepeng Shi, Zhixiang Chen, and Tae-Kyun Kim. Distance-normalized unified representation for monocular 3d object detection. In ECCV, 2020.
|
| 241 |
+
[37] Jeany Son, Ilchae Jung, Kayoung Park, and Bohyung Han. Tracking-by-segmentation with online gradient boosting decision tree. In ICCV, 2015.
|
| 242 |
+
[38] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. In CVPR, 2020.
|
| 243 |
+
[39] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. https://github.com/ waymo-research/waymo-open-dataset. 2020.
|
| 244 |
+
[40] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019.
|
| 245 |
+
[41] Li Wang, Liang Du, Xiaoqing Ye, Yanwei Fu, Guodong Guo, Xiangyang Xue, Jianfeng Feng, and Li Zhang. Depth-conditioned dynamic message propagation for monocular 3d object detection. In CVPR, 2021.
|
| 246 |
+
[42] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In CVPR, 2019.
|
| 247 |
+
[43] Xinshuo Weng and Kris Kitani. Monocular 3d object detection with pseudo-lidar point cloud. In ICCV workshops, 2019.
|
| 248 |
+
[44] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 2018.
|
| 249 |
+
[45] Xiaoqing Ye, Liang Du, Yifeng Shi, Yingying Li, Xiao Tan, Jianfeng Feng, Errui Ding, and Shilei Wen. Monocular 3d object detection via feature domain adaptation. In ECCV, 2020.
|
| 250 |
+
[46] Yurong You, Yan Wang, Wei-Lun Chao, Divyansh Garg, Geoff Pleiss, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar++: Accurate depth for 3d object detection in autonomous driving. arXiv preprint, 2019.
|
| 251 |
+
[47] Fisher Yu, Dequan Wang, Evan Shelhamer, and Trevor Darrell. Deep layer aggregation. In CVPR, 2018.
|
| 252 |
+
[48] Yunpeng Zhang, Jiwen Lu, and Jie Zhou. Objects are different: Flexible monocular 3d object detection. In CVPR, 2021.
|
| 253 |
+
[49] Xingyi Zhou, Dequan Wang, and Philipp Krähenbühl. Objects as points. arXiv preprint, 2019.
|
| 254 |
+
[50] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018.
|
| 255 |
+
[51] Yi Zhu, Zhongyue Zhang, Chongruo Wu, Zhi Zhang, Tong He, Hang Zhang, R. Manmatha, Mu Li, and Alexander Smola. Improving semantic segmentation via self-training. arXiv preprint arXiv:2004.14960, 2020.
|
| 256 |
+
|
| 257 |
+
# Checklist
|
| 258 |
+
|
| 259 |
+
1. For all authors...
|
| 260 |
+
|
| 261 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We have described exactly in abstract section and Sec. 1.
|
| 262 |
+
(b) Did you describe the limitations of your work? [Yes] See Sec. 6.
|
| 263 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Sec. 6.
|
| 264 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 265 |
+
|
| 266 |
+
2. If you are including theoretical results...
|
| 267 |
+
|
| 268 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 269 |
+
|
| 270 |
+
3. If you ran experiments...
|
| 271 |
+
|
| 272 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We demonstrate the codes in Github website. The dataset is public and URL [15, 39] is also attached in Sec. 5.
|
| 273 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 5.3.
|
| 274 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We report experiments results at the fixed seed.
|
| 275 |
+
|
| 276 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] The type of resources can be seen at Sec. 5.3. And each GPU can run two experiments, thus, our included experiments (total number of 15) in paper require about 8 Nvidia Tesla v100 GPUs (16G).
|
| 277 |
+
|
| 278 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 279 |
+
|
| 280 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] See Sec. 5
|
| 281 |
+
(b) Did you mention the license of the assets? [Yes] We conduct experiments on KITTI (license: CC BY-NC-SA 3.0) and Waymo (license: Custom (non-commercial)).
|
| 282 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
|
| 283 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 284 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We conduct experiments only on public datasets.
|
| 285 |
+
|
| 286 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 287 |
+
|
| 288 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 289 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 290 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_content_list.json
ADDED
|
@@ -0,0 +1,1238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Progressive Coordinate Transforms for Monocular 3D Object Detection ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
192,
|
| 8 |
+
122,
|
| 9 |
+
807,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Li Wang1∗ Li Zhang1† Yi Zhu2 Zhi Zhang2 Tong He2 Mu Li2 Xiangyang Xue1 1Fudan University 2Amazon Inc. ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
181,
|
| 19 |
+
223,
|
| 20 |
+
810,
|
| 21 |
+
261
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
296,
|
| 32 |
+
535,
|
| 33 |
+
314
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Recognizing and localizing objects in the 3D space is a crucial ability for an AI agent to perceive its surrounding environment. While significant progress has been achieved with expensive LiDAR point clouds, it poses a great challenge for 3D object detection given only a monocular image. While there exist different alternatives for tackling this problem, it is found that they are either equipped with heavy networks to fuse RGB and depth information or empirically ineffective to process millions of pseudo-LiDAR points. With in-depth examination, we realize that these limitations are rooted in inaccurate object localization. In this paper, we propose a novel and lightweight approach, dubbed Progressive Coordinate Transforms (PCT) to facilitate learning coordinate representations. Specifically, a localization boosting mechanism with confidence-aware loss is introduced to progressively refine the localization prediction. In addition, semantic image representation is also exploited to compensate for the usage of patch proposals. Despite being lightweight and simple, our strategy leads to superior improvements on the KITTI and Waymo Open Dataset monocular 3D detection benchmarks. At the same time, our proposed PCT shows great generalization to most coordinatebased 3D detection frameworks. The code is available at: https://github.com/ amazon-research/progressive-coordinate-transforms. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
329,
|
| 43 |
+
766,
|
| 44 |
+
577
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
604,
|
| 55 |
+
310,
|
| 56 |
+
622
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Object detection is a fundamental and challenging task in scene understanding applications. Recently, 3D object detection has received increasing attention and found applications in a wide range of scenarios such as autonomous driving, robotics, visual navigation and mixed reality. Despite the great progress from the area of 2D object detection [34, 49, 40, 18, 4], 3D object detection remains a largely unsolved problem as it aims to predict the object location in the 3D space alongside 3D object dimension and orientation. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
636,
|
| 66 |
+
825,
|
| 67 |
+
719
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Existing prevalent approaches [50, 44, 35, 10, 11] for 3D object detection largely rely on LiDAR sensors, which provide accurate 3D point clouds of the scene. Although these approaches achieve superior performance, the dependence on expensive equipment severely limits their applicability to generic 3D perception. There also exists a cheaper alternative that takes a single-view RGB image as input, termed as monocular 3D object detection. However, its performance is far from satisfactory as itself is an ill-posed problem due to the loss of depth information in 2D image planes. Hence, several recent attempts introduce depth information to help monocular 3D detection. Such attempts can be roughly categorized into two directions, pixel-based and coordinate-based. Pixel-based approaches [9, 36, 31, 41] turn to use estimated depth map as additional input for improved detection performance. But at the same time, this leads to heavy computational burden and large memory footprint since they often operate on the entire image. Coordinated-based approaches [42, 29, 46, 27] pursue the coordinate representations as in LiDAR-based methods. They use the predicted depth map to convert the monocular image pixels to 3D coordinate representations, then apply a 3D detector on the converted coordinates. In particular, they are often lightweight since their network inputs are object proposals generated by 2D detectors [29, 27]. However, the performance of coordinated-based methods lags far behind LiDAR-based methods. So we ask, can we identify the bottleneck that holds back the 3D detection accuracy of coordinate-based methods and how can we improve them? ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
726,
|
| 77 |
+
825,
|
| 78 |
+
837
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "table",
|
| 84 |
+
"img_path": "images/4737389cf59a150a31599b624a8e493a4cf5799866976f2476b32a23fe07ca0e.jpg",
|
| 85 |
+
"table_caption": [
|
| 86 |
+
"Table 1: Probing investigation on coordinate-based methods, PatchNet [27] and Pseudo-LiDAR [42]. We examine the potential improvement by replacing the predicted factor with the corresponding ground truth. $^ *$ indicates our reproduced performance. We can see that coordinate-based methods mostly suffer from inaccurate localization. "
|
| 87 |
+
],
|
| 88 |
+
"table_footnote": [],
|
| 89 |
+
"table_body": "<table><tr><td rowspan=\"2\">Factor</td><td colspan=\"3\">PatchNet*[AP3D/APBEV]</td><td colspan=\"3\">Pseudo-LiDAR*[AP3D/APBEv]</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>Baseline</td><td>26.31/34.14</td><td>36.40/46.80</td><td>21.07/28.04</td><td>23.04/31.06</td><td>32.27/42.45</td><td>19.67/25.67</td></tr><tr><td>dimension</td><td>27.26/34.62</td><td>40.32/47.24</td><td>24.29/28.38</td><td>25.88/31.97</td><td>36.09/44.35</td><td>20.88/26.60</td></tr><tr><td>rotation</td><td>26.25/34.04</td><td>36.09/46.25</td><td>23.49/27.99</td><td>23.88/31.31</td><td>32.42/42.74</td><td>19.85/26.07</td></tr><tr><td>X</td><td>32.80/41.43</td><td>45.60/56.22</td><td>27.38/34.63</td><td>28.36/36.77</td><td>39.69/50.78</td><td>25.08/29.92</td></tr><tr><td>y</td><td>30.16/34.14</td><td>40.94/46.80</td><td>24.58/28.04</td><td>25.53/31.06</td><td>35.19/42.45</td><td>20.69/25.67</td></tr><tr><td>Z</td><td>42.42/53.48</td><td>55.42/68.29</td><td>35.54/45.60</td><td>38.37/50.81</td><td>50.04/63.96</td><td>32.24/43.32</td></tr><tr><td>location(xyz)</td><td>72.58/75.27</td><td>81.41/85.14</td><td>57.69/66.10</td><td>64.36/73.37</td><td>79.13/83.77</td><td>55.64/58.27</td></tr></table>",
|
| 90 |
+
"bbox": [
|
| 91 |
+
178,
|
| 92 |
+
143,
|
| 93 |
+
818,
|
| 94 |
+
263
|
| 95 |
+
],
|
| 96 |
+
"page_idx": 1
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"type": "text",
|
| 100 |
+
"text": "",
|
| 101 |
+
"bbox": [
|
| 102 |
+
174,
|
| 103 |
+
284,
|
| 104 |
+
825,
|
| 105 |
+
409
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "In order to determine the bottleneck, we conduct an investigation on two widely adopted coordinatebased methods, PatchNet [27] and Pseudo-LiDAR [42]. Specifically, for each prediction target, we examine the potential improvement by replacing its value with the corresponding ground truth, and then re-compute the 3D detection accuracy. As shown in Table 1, using ground truth dimension and rotation do not bring significant improvements over the baseline. But using ground truth location (i.e., x/y/z values of the objects) almost triples detection accuracy. This indicates that coordinate-based methods mostly suffer from inaccurate localization even with the assistance of estimated depth maps. ",
|
| 112 |
+
"bbox": [
|
| 113 |
+
174,
|
| 114 |
+
414,
|
| 115 |
+
825,
|
| 116 |
+
511
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "Based on this observation, we focus on improving the accuracy of 3D center localization. In this work, we propose a lightweight and generalized approach, called Progressive Coordinate Transforms (PCT), to enhance the localization capability for coordinate-based methods. First of all, since the localization regression network in most coordinate-based methods is less accurate but lightweight, we propose to progressively refine its prediction similar to gradient boosting [12, 13]. To be specific, a localization regression network can be seen as a weak learner, and we progressively train multiple consecutive networks such that each network fits the regression residual from the previous networks. These networks share the same lightweight structure so that the computation overhead is negligible. We also predict a confidence score for each network to help stabilize the end-to-end training. We term this progressive refining strategy as confidence-aware localization boosting (CLB). Compared to image-only or pixel-based methods, coordinated-based methods suffer from the problem of missing global context information due to the use of patched input. In order to further improve the localization accuracy, we exploit semantic image representations from 2D detector. We term this module as global context encoding (GCE). We find that GCE can not only improve center localization accuracy, but also contribute to the final 3D box estimation. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
517,
|
| 126 |
+
826,
|
| 127 |
+
724
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "Through extensive experiments, our progressive coordinate transforms, consisting of CLB and GCE, is shown to improve popular coordinate-based models [42, 27] by generating more accurate localization. Without bells and whistles, we achieve state-of-the-art monocular 3D detection performance on KITTI [16, 17, 15] with a strong base method [27]. Additionally, this also leads to superior improvements on Waymo Open Dataset [38] compared with the base method PatchNet. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
732,
|
| 137 |
+
825,
|
| 138 |
+
801
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "2 Related work ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
823,
|
| 149 |
+
316,
|
| 150 |
+
840
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "2.1 Monocular 3D object detection ",
|
| 157 |
+
"text_level": 1,
|
| 158 |
+
"bbox": [
|
| 159 |
+
176,
|
| 160 |
+
856,
|
| 161 |
+
426,
|
| 162 |
+
871
|
| 163 |
+
],
|
| 164 |
+
"page_idx": 1
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"type": "text",
|
| 168 |
+
"text": "Existing paradigms for monocular 3D object detection can be categorized into two types: image-only methods and depth-assisted methods. ",
|
| 169 |
+
"bbox": [
|
| 170 |
+
174,
|
| 171 |
+
883,
|
| 172 |
+
823,
|
| 173 |
+
911
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "For image-only methods, they often adapt architectures and good practices from popular 2D detectors [34, 49, 40]. However, locating objects in 3D space is much more challenging without depth information. Hence, several works [30, 2, 25, 6, 49] integrate geometry consistency into the training strategy to constrain the localization prediction. Deep3DBox [30] divides orientation into multi-bins to stably regress them, and combines the 2D-3D box constraint to recover accurate 3D object pose. M3D-RPN [2] utilizes the geometric relationship between 2D and 3D perspectives by sharing the prior anchors and classification targets. MonoPair [6] leverages the spatial relationships between paired objects to improve accuracy on occluded objects. To further improve the performance of truncated objects, MonoFlex [48] decouples the features learning and prediction of truncated objects, and formulates an depth estimation to adaptively combine independent estimator based on uncertainty. [33] designs CaDDN as a fully differentiable end-to-end approach for joint depth estimation and object detection. ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
90,
|
| 183 |
+
826,
|
| 184 |
+
257
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 2
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Depth-assisted methods often estimate a depth map given a input image, and use it in different ways. Some pixel-based approaches [9, 26] directly feed images and estimated depth maps into networks to generate depth-aware features and enhance the 3D detection performance. Some other coordinatebased approaches first transform the pixels of input images to 3D coordinates by leveraging the depth and camera information, then feed the coordinate proposals to a 3D detector. Pioneering work Pseudo-LiDAR [42] imitates the process of LiDAR-based approaches, which uses LiDAR-based 3D detector upon coordinates proposals. AM3D [29] explores the multi-modal input fusion to embed the complementary RGB cue into the network. Recently, PatchNet [27] points out that the efficacy of pseudo-LiDAR representation comes from the coordinate transform, instead of sophisticated LiDAR-based networks. Hence, they design a simple 2D CNN to perform 3D detection. In this work, we follow the research of coordinate-based methods [42, 27]. Instead of regressing 3D localization directly with a single lightweight network, we propose to progressively refine the prediction inspired by gradient boosting. We also incorporate RGB image information to complement patch proposals and enhance global context modeling. Different from AM3D [29], we utilize the RGB features from the 2D detector directly which can share the same context, and we do not need to train another RGB network from scratch. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
263,
|
| 194 |
+
825,
|
| 195 |
+
484
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "2.2 Gradient boosting ",
|
| 202 |
+
"text_level": 1,
|
| 203 |
+
"bbox": [
|
| 204 |
+
174,
|
| 205 |
+
506,
|
| 206 |
+
339,
|
| 207 |
+
521
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "Gradient boosting is a well-known greedy algorithm proposed in [7], which trains a sequence of learners and progressively improves the prediction results. It is a general learning framework, and has been verified to be a formidable force when applied with lightweight learners. Meanwhile, when each learner in the sequence is heavy, the computation cost becomes high and the performance is not beneficial [24]. Early works in 2D detection area [19, 21, 22] also adopt the boosting mechanism following a standard cascade paradigm, and achieve improved performance. Li et al. [21] treat face detection as an image retrieval task and improve it with a boosted exemplar-based face detector. Karianakis et al. [19] and Li et al. [22] feed convolutional features of proposals instead of hand-crafted features to boosted classifiers and distinguish objects from backgrounds. We can also find the usage of gradient boosting in other computer vision tasks [37, 51]. ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
534,
|
| 217 |
+
825,
|
| 218 |
+
672
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "To our best knowledge, we are the first to explore the boosting mechanism in coordinate-based methods for 3D object detection. We perform this mechanism in two folds. First, instead of the entire 3D detection pipeline, we only progressively boost the localization regression network as its computational cost is insignificant comparing to the entire pipeline. Second, we refine the localization with an additional confidence score in the boosting procedure, such that the loss is balanced. These choices greatly improves the performance with small extra parameters. ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
679,
|
| 228 |
+
825,
|
| 229 |
+
762
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "3 Background ",
|
| 236 |
+
"text_level": 1,
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
786,
|
| 240 |
+
308,
|
| 241 |
+
804
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Before diving into the details, we first revisit recent coordinate-based monocular 3D detection methods and present a visual depiction of its common pipeline in Figure 1. The framework usually consists of four main components: 2D bounding box generation, depth map estimation, data transformation and 3D box estimation. Specifically, given an image $I$ , the process can be described as: ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
820,
|
| 251 |
+
825,
|
| 252 |
+
877
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "2D bounding box generation. An off-the-shelf 2D object detector $F _ { 2 d }$ such as Faster R-CNN [34] is employed on image $I$ to generate region of interests (RoIs), $\\mathscr { R } = F _ { 2 d } ( I )$ . ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
882,
|
| 262 |
+
821,
|
| 263 |
+
911
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "image",
|
| 269 |
+
"img_path": "images/7300362b1ae21126e252898156e0cc2a3864d52b7ebabd1472089dd56a29c819.jpg",
|
| 270 |
+
"image_caption": [
|
| 271 |
+
"Figure 1: A common pipeline of coordinate-based monocular 3D detectors. It consists of four steps to predict the final 3D boxes: 2D bounding box generation, depth map estimation, data transformation and 3D box estimation. In this work, we focus on improving the last step: 3D box estimation. "
|
| 272 |
+
],
|
| 273 |
+
"image_footnote": [],
|
| 274 |
+
"bbox": [
|
| 275 |
+
181,
|
| 276 |
+
92,
|
| 277 |
+
816,
|
| 278 |
+
161
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 3
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "Depth map estimation. An off-the-shelf depth estimator $F _ { z }$ such as DORN [14] is applied on image $I$ to predict its depth map, $\\mathcal { Z } = F _ { z } ( I )$ . ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
173,
|
| 287 |
+
232,
|
| 288 |
+
821,
|
| 289 |
+
262
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 3
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "Data transformation. To convert a pixel $( u , v )$ within a RoI to 3D space, the associated depth $z = \\mathcal { Z } ( u , v )$ is used to transform it into its 3D coordinates $\\left( c _ { x } , c _ { y } , c _ { z } \\right)$ by ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
266,
|
| 299 |
+
823,
|
| 300 |
+
296
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 3
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/14a9d072d611d93be41fbce212a03d4aebb6c15be68918003b3b1b4f24dc2f51.jpg",
|
| 307 |
+
"text": "$$\nc _ { x } = { \\frac { ( u - u ^ { \\prime } ) \\times z } { f _ { u } } } ; \\quad c _ { y } = { \\frac { ( v - v ^ { \\prime } ) \\times z } { f _ { v } } } ; \\quad c _ { z } = z\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
326,
|
| 311 |
+
303,
|
| 312 |
+
671,
|
| 313 |
+
337
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Here, $\\left( c _ { x } , c _ { y } , c _ { z } \\right)$ is a pixel in the generated 3D coordinate patch $c$ . $( u ^ { \\prime } , v ^ { \\prime } )$ is the camera principal point. $f _ { u }$ and $f _ { v }$ are the focal length along horizontal and vertical axis, respectively. $u ^ { \\prime } , v ^ { \\prime } , \\bar { f } _ { u } , f _ { v }$ are usually provided by the datasets. ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
351,
|
| 323 |
+
825,
|
| 324 |
+
392
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "3D box estimation. Once the 3D coordinates for each RoI are available, the final step is to predict 3D boxes with their center location, rotation and dimension. Different networks $F _ { 3 d }$ such as Frustum PointNet [32] can be employed to conduct 3D box prediction, $\\boldsymbol { B } = F _ { 3 d } ( \\boldsymbol { c } )$ . Here, $\\boldsymbol { B }$ includes the center location $( x , y , z )$ , rotation $( \\theta )$ , and dimensions $( w , h , l )$ of the 3D box. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
398,
|
| 334 |
+
825,
|
| 335 |
+
455
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "Since the first two steps use off-the-shelf models and the third step can be computed analytically, in this paper, we focus on improving the last step of coordinated-based methods. In particular, our goal is to improve the accuracy of localization prediction motivated by the observation in Table 1. ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
174,
|
| 344 |
+
460,
|
| 345 |
+
825,
|
| 346 |
+
503
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "4 Method ",
|
| 353 |
+
"text_level": 1,
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
522,
|
| 357 |
+
271,
|
| 358 |
+
540
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "In this section, we present our progressive coordinate transforms (PCT) for improved 3D detection. In order to obtain more accurate localization predictions, we introduce a confidence-aware localization boosting mechanism (CLB) in Sec. 4.1 to progressively refine the prediction. Then in Sec. 4.2, we incorporate RGB image information by a global context encoding (GCE) strategy to compensate for the drawbacks of using patch proposals. In the end, we illustrate the overall framework of PCT in Figure 2 (a). ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
554,
|
| 368 |
+
825,
|
| 369 |
+
638
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "4.1 Confidence-aware localization boosting ",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
655,
|
| 380 |
+
485,
|
| 381 |
+
670
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "Following Frustum PointNet [32], most coordinate-based methods [42, 45, 27, 43] divide the last step of 3D box estimation into two major components. The first component is a lightweight 3D localization regressor $F$ , whose input is 3D coordinate proposals generated from data transformation. The second component is a relatively heavy network $G$ used to regress the final 3D box $\\boldsymbol { B }$ . Recalling the results in Table 1, 3D localization performance is the weakest point of a coordinate-based model, accounting for up to 50 AP loss when all other modules keep intact. Therefore, can we find an efficient way to improve the accuracy of localization prediction and also generalizes to other coordinated-based methods? ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
173,
|
| 390 |
+
679,
|
| 391 |
+
825,
|
| 392 |
+
791
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "Gradient boosting [12, 13] is a general learning framework that combines multiple weak learners into a single strong one in an iterative fashion. Let $\\mathcal { L } ( x )$ be the risk of ensemble models, the algorithm devotes to seek an approximation $h ( x )$ to minimize $\\mathcal { L } ( y ^ { \\ast } , x ) = \\Psi ( y ^ { \\ast } , h ( x ) )$ , where $y ^ { * }$ is a target value, $\\Psi ( \\cdot )$ is the loss function. $h ( x )$ is a linear combination of a set of weak (base) learners $f _ { t } ( x )$ from some class $\\mathcal { F }$ , i.e., $\\begin{array} { r } { h ( x ) = \\sum _ { t = 1 } ^ { t = T } \\gamma _ { t } f _ { t } ( x ) + c o n s t } \\end{array}$ . Here, $T$ is the total training iterations and $\\gamma _ { t }$ is the corresponding weight for each weak learner. To minimize the empirical risk, the algorithm starts with a model $h _ { 0 } ( x )$ , and then incrementally expands it in a greedy manner. This process manages to fit a new weak learner to the residual errors made by the previous set of learners. Mathematically, the ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
173,
|
| 401 |
+
796,
|
| 402 |
+
825,
|
| 403 |
+
911
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "image",
|
| 409 |
+
"img_path": "images/9523a01cc930e55907dce22cf2a7d99cd0709e1b67369f64a9b03e5aa9e5b4bd.jpg",
|
| 410 |
+
"image_caption": [
|
| 411 |
+
"Figure 2: (a) Schematic illustration of proposed Coordinate Transforms (PCT). We treat $F$ as a weaker learner, and perform coordinate transform $T$ steps via confidence-aware localization boosting (CLB module) to obtain a better localization. Then the refined coordinate proposals combined with corresponding encoded RGB features (GCE module) are fed into network $\\mathbf { G }$ to generate final 3D bounding boxes. (b) The data flow of CLB mechanism in detail. For step $t$ , it takes refined coordinate patches $c _ { t - 1 }$ as input, which is transformed based on predicted $\\Delta ( x _ { t - 1 } , y _ { t - 1 } , z _ { t - 1 } )$ . Then network $F _ { t }$ generate the residual localization for the next step, and confidence $s _ { t }$ is also generated during the training process. "
|
| 412 |
+
],
|
| 413 |
+
"image_footnote": [],
|
| 414 |
+
"bbox": [
|
| 415 |
+
179,
|
| 416 |
+
94,
|
| 417 |
+
816,
|
| 418 |
+
273
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 4
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "optimization can be formulated as ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
416,
|
| 428 |
+
398,
|
| 429 |
+
431
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "equation",
|
| 435 |
+
"img_path": "images/5ab34280d4187cd864ac3803d97d914adc2f9a15a48103362d16d5d743052146.jpg",
|
| 436 |
+
"text": "$$\n\\begin{array} { r l } & { h _ { 0 } ( x ) = \\underset { \\gamma _ { 0 } } { \\arg \\operatorname* { m i n } } \\mathcal { L } _ { 0 } ( y ^ { * } , x ) ; } \\\\ & { ~ \\quad \\quad \\cdots } \\\\ & { h _ { t } ( x ) = h _ { t - 1 } ( x ) + \\underset { f _ { t } \\in \\mathcal { F } } { \\arg \\operatorname* { m i n } } \\mathcal { L } _ { t } ( y ^ { * } , h _ { t - 1 } ( x ) + f _ { t } ( x ) ) . } \\end{array}\n$$",
|
| 437 |
+
"text_format": "latex",
|
| 438 |
+
"bbox": [
|
| 439 |
+
316,
|
| 440 |
+
434,
|
| 441 |
+
679,
|
| 442 |
+
508
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 4
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Inspired by gradient boosting, we imitate its optimization procedure to progressively adapt localization prediction by multiple localization regressors instead of a single one used in previous works [42, 29, 46, 27]. To be specific, we treat localization network $F$ as a weak learner and stack multiple of them as shown in Figure 2 (b). Given $F$ is a lightweight network, the extra computational cost brought by gradient boosting is insignificant. After the data transformation step, each 2D bounding box obtains its corresponding coordinate patch $c$ . We take the coordinate patch as the input of weak learner $F$ to regress the center localization residual $\\Delta ( x , y , z )$ based on the prediction from previous stage, ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
173,
|
| 451 |
+
518,
|
| 452 |
+
826,
|
| 453 |
+
618
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "equation",
|
| 459 |
+
"img_path": "images/5227bdc64906cb8cf1a3d4af428388bcc5f4335bcb869d84e75ac23e8ecdeb79.jpg",
|
| 460 |
+
"text": "$$\n\\Delta ( x _ { t } , y _ { t } , z _ { t } ) = F _ { t } ( c _ { t - 1 } ) ; { \\mathrm { ~ w h e r e ~ } } c _ { t - 1 } = c _ { 0 } - \\gamma _ { 0 } ( x _ { 0 } , y _ { 0 } , z _ { 0 } ) - \\sum _ { i = 1 } ^ { t - 1 } \\gamma _ { i } \\Delta ( x _ { i } , y _ { i } , z _ { i } ) .\n$$",
|
| 461 |
+
"text_format": "latex",
|
| 462 |
+
"bbox": [
|
| 463 |
+
218,
|
| 464 |
+
622,
|
| 465 |
+
764,
|
| 466 |
+
665
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "We denote $c _ { 0 }$ and $( x _ { 0 } , y _ { 0 } , z _ { 0 } )$ to be the initial coordinate input patch and object location, respectively. Coordinate input patch $c _ { t - 1 }$ is then transformed according to the localization residual prediction, and fed into the next weak learner. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
670,
|
| 476 |
+
825,
|
| 477 |
+
713
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "Thus the risk at stage $t$ can be written as, ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
176,
|
| 486 |
+
718,
|
| 487 |
+
442,
|
| 488 |
+
733
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "equation",
|
| 494 |
+
"img_path": "images/c0c428b59c5e734a011fd61e6570f80f4a32c0a9c85ad8208e7147ca4dfca147.jpg",
|
| 495 |
+
"text": "$$\n\\mathcal { L } _ { F _ { t } } ( ( x ^ { * } , y ^ { * } , z ^ { * } ) , c _ { t - 1 } ) = \\Psi ( ( x ^ { * } , y ^ { * } , z ^ { * } ) , \\gamma _ { 0 } ( x _ { 0 } , y _ { 0 } , z _ { 0 } ) + \\sum _ { i = 1 } ^ { t - 1 } \\gamma _ { i } \\Delta ( x _ { i } , y _ { i } , z _ { i } ) )\n$$",
|
| 496 |
+
"text_format": "latex",
|
| 497 |
+
"bbox": [
|
| 498 |
+
238,
|
| 499 |
+
738,
|
| 500 |
+
758,
|
| 501 |
+
781
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "where $( x ^ { * } , y ^ { * } , z ^ { * } )$ indicates the ground truth location. At this point, we can easily see that $\\mathrm { E q 4 }$ is a natural derivation from $\\operatorname { E q } 2$ . After $T$ iterations, the final adjusted prediction $c _ { T }$ is fed into the network $G$ to estimate the 3D box $\\boldsymbol { B }$ $3 , i . e . B = G ( c _ { T } )$ . ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
792,
|
| 511 |
+
823,
|
| 512 |
+
837
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "Confidence-aware network loss In the case that the target of weak learner $f$ is differentiable, gradient boosting solves the optimization problem in a forward greedy manner as shown in Eq 2. For each iteration, it first fits the weak learner $f$ to the residual error, and then the optimal value of the coefficient weight $\\gamma$ is determined for this weak learner. The optimization procedures train iteratively for $T$ iterations. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
174,
|
| 521 |
+
842,
|
| 522 |
+
825,
|
| 523 |
+
911
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "However, for our center regression task, we would like to train $T$ weak localization networks $F _ { t } ( c _ { t - 1 } ) , t \\in { 1 , . . . , T }$ and a 3D box prediction network $G$ in an end-to-end manner instead of bootstrapping. This is challenging in terms of both computational cost and optimization stability, given the simultaneous training of a set of weak learners and their coefficient weights. Therefore, we first simplify the problem by treating all $\\gamma _ { t }$ the same and only focus on optimizing the localization networks. However, the contribution from each weak learner $F$ may not be the same during end-toend training, which leads to unstable optimization. Hence, we tailor a confidence-aware boosting loss to facilitate network training, by learning confidence score $s _ { t }$ for each localization loss function $\\mathcal { L } _ { F _ { t } }$ . The confidence score $s _ { t }$ is learned from a small decoder and followed a self-balancing formulation closely coupled to the network loss. The overall loss function is defined as ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
173,
|
| 532 |
+
90,
|
| 533 |
+
826,
|
| 534 |
+
229
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 5
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "equation",
|
| 540 |
+
"img_path": "images/ab37a8e43592edd65a8b898e2029bb744cd460f514ab885ccf296fa4eb18c719.jpg",
|
| 541 |
+
"text": "$$\n\\mathcal { L } ( \\boldsymbol { B } ^ { * } , \\boldsymbol { c } _ { 0 } ) = \\sum _ { t = 1 } ^ { T } s _ { t } \\ast \\mathcal { L } _ { \\boldsymbol { F } _ { t } } ( ( \\boldsymbol { x } ^ { * } , \\boldsymbol { y } ^ { * } , \\boldsymbol { z } ^ { * } ) , \\boldsymbol { c } _ { t - 1 } ) + \\lambda _ { s } \\prod _ { t = 1 } ^ { T } ( 1 - s _ { t } ) + \\mathcal { L } _ { G } ( \\boldsymbol { B } ^ { * } , \\boldsymbol { c } _ { T } ) ,\n$$",
|
| 542 |
+
"text_format": "latex",
|
| 543 |
+
"bbox": [
|
| 544 |
+
241,
|
| 545 |
+
248,
|
| 546 |
+
754,
|
| 547 |
+
292
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 5
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "where $B ^ { * }$ is the 3D box ground truth, $( x ^ { \\ast } , y ^ { \\ast } , z ^ { \\ast } ) \\in B ^ { \\ast }$ and $\\lambda _ { s }$ is the balance weight. $s _ { t }$ is the prediction after sigmoid, which represents the confidence of the localization regression loss at $t ^ { t h }$ stage, and $\\textstyle \\prod _ { t = 1 } ^ { T } ( 1 - s _ { t } )$ is the penalty on the network uncertainty. In other words, if $s _ { t }$ is approaching 1, which means the network is confident about localization refinement at $t ^ { t h }$ stage, then no penalty will be applied. Otherwise, the uncertainty of regression loss is high, thus triggers a higher penalty. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
173,
|
| 556 |
+
303,
|
| 557 |
+
825,
|
| 558 |
+
381
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 5
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "4.2 Global context encoding ",
|
| 565 |
+
"text_level": 1,
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
398,
|
| 569 |
+
382,
|
| 570 |
+
414
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 5
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "Typical coordinate-based methods [42, 45, 27, 43] perform 3D detection based on 2D RoIs, which is similar to two-stage 2D detection frameworks, such as Faster R-CNN [34]. In a two-stage 2D object detection framework, the second stage reuses the features from the first stage via RoIPooling [34] or RoIAlign operators [18] guided by ROI proposals, and then a small decoder is used for localization refinement. However, in 3D detection, only cropped patches with coordinates information are fed to the network for 3D box regression. Neither RGB information nor global context is included. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
173,
|
| 579 |
+
424,
|
| 580 |
+
825,
|
| 581 |
+
508
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "Considering that the RGB information is a vital visual clue, we explore its aggregation in the last 3D box estimation step. Similar to two-stage 2D detectors, we obtain the RGB information by directly cropping the corresponding features from a 2D detector $F _ { 2 d }$ . Then the input to 3D box estimator $G$ can be formulated as $\\bar { c \\mathbf { \\eta } } = \\{ [ \\mathcal { D } ( { \\boldsymbol u } , { \\boldsymbol v } ) , \\mathcal { A } ( { \\boldsymbol u } , { \\boldsymbol v } ) ] , \\forall ( { \\boldsymbol u } , { \\boldsymbol v } ) \\in \\mathcal { R } \\}$ . Here, $\\mathcal { D } ( \\cdot )$ represents the data transformation function and $\\boldsymbol { \\mathcal { A } } ( \\cdot )$ represents the RoIAlign operation. Both operations are performed upon the generated regions of interest from $\\mathcal { R }$ . ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
173,
|
| 590 |
+
513,
|
| 591 |
+
825,
|
| 592 |
+
598
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "After RoIAlign operation, features are of size $C \\times K \\times K$ , where $C$ is the number of channels and $K \\times K$ is the corresponding width and height, respectively. A small feature encoder is then used to encode cropped features into vectors with the dimension of $C$ . A feature fusion is followed to integrate coordinate representations with the obtained image representations. Benefiting from the large receptive fields of image feature representations, 3D box estimator can now have access to global context. Besides, directly cropping on RGB features also avoids learning image representations of RoIs from scratch and reduces the overall network parameters. ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
603,
|
| 602 |
+
825,
|
| 603 |
+
700
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "5 Experiments ",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
722,
|
| 614 |
+
312,
|
| 615 |
+
739
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Two monocular 3D detection benchmarks are introduced in Sec. 5.1 and Sec. 5.2, while experimental implementation details are described in Sec. 5.3. In Sec. 5.4, we conduct main analysis on KITTI dataset [16, 17, 15] with base method PatchNet [27] given its current best performance. More experiments on Waymo Open Dataset [38] are also demonstrated to further verify the generality of our proposed PCT in Sec. 5.5. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
755,
|
| 625 |
+
825,
|
| 626 |
+
824
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "5.1 KITTI setup ",
|
| 633 |
+
"text_level": 1,
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
843,
|
| 637 |
+
302,
|
| 638 |
+
858
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "We first evaluate our method on the KITTI benchmark [16, 17, 15], which contains 7,481 and 7,518 images for training and testing respectively. We follow [5] to split the 7,481 training images into 3712 for training and 3,769 for validation. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
868,
|
| 648 |
+
823,
|
| 649 |
+
911
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "table",
|
| 655 |
+
"img_path": "images/f370de2688269b944ce974de911d8e853d117ac31909683ff90d3fd447e02d7b.jpg",
|
| 656 |
+
"table_caption": [
|
| 657 |
+
"Table 2: Ablative analysis on KITTI validation set for $\\mathrm { A P _ { 3 D } }$ and $\\mathrm { A P _ { B E V } }$ at $\\mathrm { I o U } = 0 . 7$ . Experiment Group (I) is the baseline method. Different experiment settings are explored: (II) applying localization boosting without confidence constraint, (III) performing confidence-aware localization boosting algorithm, (IV) adding global context encoding on Group (II), (V) our full approach. "
|
| 658 |
+
],
|
| 659 |
+
"table_footnote": [],
|
| 660 |
+
"table_body": "<table><tr><td rowspan=\"2\">Group</td><td rowspan=\"2\">Localization Boosting</td><td rowspan=\"2\">Uncertainty</td><td rowspan=\"2\">GCE</td><td colspan=\"3\">AP3D</td><td colspan=\"3\">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>I</td><td>-</td><td>-</td><td>1</td><td>25.88</td><td>36.07</td><td>20.99</td><td>33.34</td><td>46.39</td><td>27.54</td></tr><tr><td>Ⅱ</td><td>√</td><td></td><td>1</td><td>26.78</td><td>37.29</td><td>24.11</td><td>34.39</td><td>47.08</td><td>28.28</td></tr><tr><td>Ⅲ</td><td>√</td><td>√</td><td>=</td><td>27.24</td><td>38.32</td><td>24.39</td><td>33.92</td><td>46.77</td><td>27.98</td></tr><tr><td>IV</td><td>√</td><td></td><td></td><td>27.12</td><td>37.38</td><td>24.11</td><td>34.46</td><td>46.70</td><td>28.32</td></tr><tr><td>V</td><td>√</td><td>√</td><td></td><td>27.53</td><td>38.39</td><td>24.44</td><td>34.65</td><td>47.16</td><td>28.47</td></tr></table>",
|
| 661 |
+
"bbox": [
|
| 662 |
+
173,
|
| 663 |
+
151,
|
| 664 |
+
821,
|
| 665 |
+
246
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 6
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "Precision-recall curves are adopted for evaluation, and we report the average precision (AP) results of 3D and Bird’s eye view (BEV) object detection on KITTI validation and test set. For fair comparison to previous literature, the 40 recall positions-based metric $A P | _ { R 4 0 }$ is reported on test set while $\\bar { A } P | _ { R 1 1 }$ is reported on validation set. Three levels of difficulty are defined in the benchmark according to the 2D bounding box height, occlusion, and truncation degree, namely, “Easy”, “Mod.”, and “Hard”. The KITTI benchmark ranks all methods based on the $\\mathrm { A P _ { 3 D } }$ of “Mod.”. In particular, we focus on the “Car” category as in [42, 27], and we adopt $\\mathrm { I o U } = 0 . 7$ as threshold for evaluation. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
273,
|
| 675 |
+
825,
|
| 676 |
+
371
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "5.2 Waymo setup ",
|
| 683 |
+
"text_level": 1,
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
390,
|
| 687 |
+
307,
|
| 688 |
+
405
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "We also carry out experiments on large-scale, high quality and diverse dataset, Waymo open dataset [38]. It provides pre-defined 798 training sequences and 202 validation sequences from different scenes, and another 150 test sequences without labels. The dataset contains camera images from five high-resolution pinhole cameras, and we only consider images with their 3D labels from front camera for monocular 3D detection task. We sample every third frame from the training sequences (total 52,386 images) as in CaDDN [33] to form the training set due to its large scale. And validation set contains all the 39,848 images from 202 different scenes. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
416,
|
| 698 |
+
825,
|
| 699 |
+
513
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "For evaluation, we adopt the officially released evaluation [39] to calculate the mean average precision (mAP) and the mean average precision weighted by heading (mAPH). Two levels are included according to difficulty rating, which are defined by LiDAR points. 3D labels without any points are ignored, LEVEL_2 is assigned to examples when it contains equal or lesser than 5 points, while the rest of the examples are assigned to LEVEL_1. Additionally, three distances (0 - 30m, 30 - 50m, $5 0 \\mathrm { m }$ $- \\infty )$ ) to sensor are considered during evaluation. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
173,
|
| 708 |
+
520,
|
| 709 |
+
825,
|
| 710 |
+
603
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "5.3 Implementation details ",
|
| 717 |
+
"text_level": 1,
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
622,
|
| 721 |
+
374,
|
| 722 |
+
637
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 6
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "Our overall framework of PCT can be visualized in Figure 2. In terms of implementation details, we instantiate our algorithm on two widely adopted coordinate-based methods with public released code [28], PatchNet and Pseudo LiDAR. Bearing efficiency in mind, we use a real-time 2D detector RTM3D [23] with DLA-34 [47] as backbone. For the sake of fair comparison, we adopt depth predictor DORN [14] on KITTI dataset as in most depth-assisted literature. Since there is no published depth results on Waymo open dataset, we adopt a most recent monocular depth estimator AdaBins [1] trained on Waymo training set. For the CLB mechanism, we inherit the original localization regression framework in each method. Each $F _ { t }$ shares the same structure. The corresponding confidence is generated following the last convolutional layers of $F _ { t }$ with three linear layers and a Sigmoid function. $T = 3$ and $\\lambda _ { s } = 1$ are set for the following experiments except for the ablation study on boosting iterations. For GCE module, we get the corresponding input image features by performing RoIAlign on the features from last convolutional layer of 2D detector. We set the output of RoIAlign as $1 6 \\times 1 6$ . As 2D detector use DLA-34 as backbone, the obtained image feature representations have the size of $6 4 \\times 1 6 \\times 1 6$ and entitle arbitrary sized receptive field theoretically due to the embedded deformable convolution [8]. The structure of feature encoder in global context module is two common $6 4 \\times 3 \\times 3$ convolutional layers (stride $^ { = 4 }$ ) and a $6 4 \\times 1 \\times 1$ convolutional layer (stride ${ \\mathop : } = 1$ ). Hence, image feature representations are encoded to a vector with 64-dim. The obtained features are then concatenated with the coordinate feature vectors from the final global pooling of box prediction network $G$ . With the lightweight structure, we are able to optimize the network end-to-end on a single Nvidia V100 ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
173,
|
| 731 |
+
648,
|
| 732 |
+
826,
|
| 733 |
+
911
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 6
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "image",
|
| 739 |
+
"img_path": "images/e1d29ed86083cfdcecf02e52932d516313e169150f98e7200986c3955e7caf75.jpg",
|
| 740 |
+
"image_caption": [
|
| 741 |
+
"Figure 3: The statistic analysis and comparison on different Localization boosting stage when $T = 3$ . The vertical axis of the chart represents the number of samples after normalization. “loc. $1 / 2 / 3 ^ { \\circ }$ denotes the $1 / 2 / 3 ^ { t h }$ step of localization errors in $F$ and “loc. $. 4 \\ \"$ is the final localization errors in $G$ . Note that when the curve is more thin, tall, and closer to zeros, the localization is more accurate. "
|
| 742 |
+
],
|
| 743 |
+
"image_footnote": [],
|
| 744 |
+
"bbox": [
|
| 745 |
+
183,
|
| 746 |
+
92,
|
| 747 |
+
812,
|
| 748 |
+
217
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 7
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "GPU with 16G memory. The training criterion for network $F$ and $G$ and other training settings follow the corresponding base methods for fair comparison. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
309,
|
| 758 |
+
821,
|
| 759 |
+
337
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 7
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "5.4 Method analysis on KITTI dataset ",
|
| 766 |
+
"text_level": 1,
|
| 767 |
+
"bbox": [
|
| 768 |
+
176,
|
| 769 |
+
353,
|
| 770 |
+
452,
|
| 771 |
+
367
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "Main ablative analysis In Table 2, we conduct ablation studies to analyze the effectiveness of our contributions: I) Without any localization regression network $F$ , network $G$ generates 3D box prediction directly. II) This configuration only contains localization boosting part without confidence constraint. III) The entire CLB mechanism is included to progressively regress center localization. IV) GCE module is added to the network based on the localization boosting block without confidence constraint since the feature fusion can be performed on either the localization regression networks $F$ or 3D box prediction network $G$ . V) Our full method with all the components. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
378,
|
| 781 |
+
825,
|
| 782 |
+
476
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "As depicted in Table 2, we can observe that the performance continues to grow with the addition of every component. From group II, localization boosting brings a noticeable improvement on all settings especially “Hard” set, which confirms its effectiveness in increasing localization accuracy. Group III shows that balancing training loss by adding confidence leads to better and more stable optimization. Group IV reveals that the proposed GCE module can effectively equip RGB information and global context with 3D coordinate representations. In the end, Group V demonstrates the complementarity of the proposed CLB mechanism and GCE module, leading to an improvement from 25.88/36.07/20.99 to 27.53/38.39/24.44 compared with Group I. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
481,
|
| 792 |
+
825,
|
| 793 |
+
593
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 7
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "table",
|
| 799 |
+
"img_path": "images/26211e7c811f6262880294138835cc0c4276008ead17df8fe481ee5b57f31cd2.jpg",
|
| 800 |
+
"table_caption": [
|
| 801 |
+
"Table 3: Comparison of different boosting iteration settings on KITTI validation split set. "
|
| 802 |
+
],
|
| 803 |
+
"table_footnote": [],
|
| 804 |
+
"table_body": "<table><tr><td rowspan=\"2\">Localization Boost (T)</td><td colspan=\"3\">AP3D/APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>1</td><td>25.88/33.34</td><td>36.07/46.39</td><td>20.99/27.54</td></tr><tr><td>1</td><td>26.31/34.14</td><td>36.40/46.80</td><td>21.07/28.04</td></tr><tr><td>2</td><td>26.69/34.06</td><td>37.17/46.42</td><td>24.04/28.03</td></tr><tr><td>3</td><td>26.78/34.39</td><td>37.29/47.08</td><td>24.11/28.28</td></tr><tr><td>4</td><td>26.77/34.21</td><td>37.12/47.00</td><td>23.48/28.23</td></tr><tr><td>5</td><td>26.64/34.43</td><td>37.24/47.04</td><td>23.89/28.27</td></tr></table>",
|
| 805 |
+
"bbox": [
|
| 806 |
+
173,
|
| 807 |
+
643,
|
| 808 |
+
547,
|
| 809 |
+
761
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 7
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "table",
|
| 815 |
+
"img_path": "images/49d656a84388a9be6c8b3a0d8ef0c606f283323843b8f17dcbba777e30cc8033.jpg",
|
| 816 |
+
"table_caption": [
|
| 817 |
+
"Table 4: Evaluation of different coordinate feature fusion with GCE on KITTI validation set. Baseline is the Group (II) in Table 2. "
|
| 818 |
+
],
|
| 819 |
+
"table_footnote": [],
|
| 820 |
+
"table_body": "<table><tr><td>Method</td><td colspan=\"3\">AP3D</td></tr><tr><td>Baseline</td><td>Mod. 26.78</td><td>Easy 37.29</td><td>Hard 24.11</td></tr><tr><td>F+GCE</td><td>27.08</td><td>37.33</td><td>24.07</td></tr><tr><td>G+GCE</td><td>27.12</td><td>37.38</td><td>24.11</td></tr><tr><td>All + GCE</td><td>27.07</td><td>37.43</td><td>24.18</td></tr></table>",
|
| 821 |
+
"bbox": [
|
| 822 |
+
578,
|
| 823 |
+
671,
|
| 824 |
+
818,
|
| 825 |
+
761
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 7
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Localization boosting iteration settings We explore the effect of different localization boosting iteration settings in this part. For a fair comparison, we do not perform the confidence constraint on regression loss. As illustrated in Table 3, when boosting iteration $T = 3$ , we achieve the best 3D detection performance. More iterations of boosting do not bring improvements, which might be caused by overfitting with the increasing of network parameters. ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
779,
|
| 835 |
+
825,
|
| 836 |
+
849
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 7
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "To verify the improvement of each step in boosting procedure, we conduct the comparison of localization errors at iteration $T = 3$ on the specific metrics (location “xyz”) of the ground truth. In particular, three stacked localization networks $F$ generate intermediate localization $^ { \\bullet \\bullet } \\mathrm { l o c . } 1 / 2 / 3 ^ { \\bullet \\bullet }$ and $G$ output the final localization “loc.4”. As shown in Figure 3, we can see that the distributions of $\\mathbf { \\ddot { x } } ^ { , 5 }$ , “y” and “z” errors tend to distributed to zero with localization boosting iterating. For instance, the red line in left chart is narrow and tall near zero along horizontal axis compared with other lines, which means that the corresponding x coordinate is more accurate than others. This further suggests that localization boosting is useful for object localization. The corresponding BEV visualization will be shown in Supplementary Material. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
174,
|
| 845 |
+
856,
|
| 846 |
+
825,
|
| 847 |
+
911
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 7
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "image",
|
| 853 |
+
"img_path": "images/c1f84afe258a114f12040dbc85530e9d69baa6299bc5ce42f2def65beeebaa14.jpg",
|
| 854 |
+
"image_caption": [
|
| 855 |
+
"Figure 4: Qualitative comparison of ground truth (green), base method PatchNet (blue), and our method (red) on KITTI val set. The first and second rows show RGB and BEV images respectively. "
|
| 856 |
+
],
|
| 857 |
+
"image_footnote": [],
|
| 858 |
+
"bbox": [
|
| 859 |
+
178,
|
| 860 |
+
88,
|
| 861 |
+
821,
|
| 862 |
+
232
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 8
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "table",
|
| 868 |
+
"img_path": "images/46e887bd10e5ffc09d3241262afdfc5b064b579ea8c733880e1f83b560e26699.jpg",
|
| 869 |
+
"table_caption": [
|
| 870 |
+
"Table 5: Comparison of generalization on KITTI validation set. $^ *$ denotes that the method is reproduced by ourselves. "
|
| 871 |
+
],
|
| 872 |
+
"table_footnote": [],
|
| 873 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">AP3D</td><td colspan=\"3\">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>Pseudo-LiDAR*[42]</td><td>23.04</td><td>32.27</td><td>19.67</td><td>31.06</td><td>42.45</td><td>25.67</td></tr><tr><td>Pseudo-LiDAR+ CLB</td><td>24.14</td><td>34.46</td><td>20.16</td><td>32.41</td><td>44.98</td><td>26.82</td></tr><tr><td>Pseudo-LiDAR + CLB +GCE</td><td>24.43</td><td>34.34</td><td>20.18</td><td>32.50</td><td>45.35</td><td>26.91</td></tr></table>",
|
| 874 |
+
"bbox": [
|
| 875 |
+
236,
|
| 876 |
+
324,
|
| 877 |
+
756,
|
| 878 |
+
395
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "",
|
| 885 |
+
"bbox": [
|
| 886 |
+
173,
|
| 887 |
+
424,
|
| 888 |
+
825,
|
| 889 |
+
494
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Impact of global context encoding We also explore where the global context representation fusion operates. We take Group II as the baseline, and perform feature fusion on localization regression network $F$ (row one), 3D estimation network $G$ (row two) or on both (final row). RoI features are encoded into a vector with GCE and then concatenate with the feature vectors from network ( $F$ or $G$ ) global pooling. As shown in Table 4, the operation on $G$ outperforms it on $F$ , which indicates that image representation is more suitable for the overall box prediction rather than only localization as it contains the additional semantic appearance information. Although operation on all networks achieves a lightly higher than it on $G$ on the “Easy” and “Hard” set, introducing parameters is much larger due to operation on stacked localization networks. Hence, we only apply GCE on network $G$ in our approach for a lightweight network and avoid overfitting during training. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
515,
|
| 899 |
+
825,
|
| 900 |
+
655
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Generally applicable to other coordinate-based algorithm In this section, we demonstrate the generalization capability of our algorithm to classic coordinate-based methods Pseudo-LiDAR [42]. As shown in Table 5, each component of our algorithm improves the original methods a lot. Specially, our approach improves Pseudo-LiDAR by 1.43/2.06/0.51 while 1.22/1.99/3.36 gains on PatchNet. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
174,
|
| 909 |
+
675,
|
| 910 |
+
825,
|
| 911 |
+
731
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "Comparison with state-of-the-arts We build our test detector on the current state-of-the-art coordinate-based method PatchNet, and results are shown in Table 6. Quantitatively, our method achieves the highest performance on “Mod.” set with 22 FPS on NvidiaTesla v100 including 2D detector inference time, which is the main setting for ranking on the benchmark. Specially, large margins, 2.25/5.32/1.14 on 3D detection and 2.17/6.68/0.95 on BEV, are observed over the base method PatchNet with only additional 3.41M parameters. Besides, our methods also outperforms the pixel-based state-of-the-arts methods Liu et al. [26] especially on “Hard” set. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
752,
|
| 921 |
+
825,
|
| 922 |
+
849
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 8
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "Qualitative comparisons are shown in Figure 4. The ground truth, base method (PatchNet), and our method are colored in green, blue, and red, respectively. For better visualization, the first and second rows show RGB images and BEV images, respectively. Compared with the base method, our algorithm can produce higher-quality 3D bounding boxes in different kinds of scenes. ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
176,
|
| 931 |
+
856,
|
| 932 |
+
825,
|
| 933 |
+
911
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 8
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "table",
|
| 939 |
+
"img_path": "images/aefbef6f696ce89288be470de712924acf99384cb9432c3cd973fe9864b7b676.jpg",
|
| 940 |
+
"table_caption": [
|
| 941 |
+
"Table 6: Comparison with SoTA methods on the KITTI test set at $\\mathrm { I o U } = 0 . 7$ . Our algorithm achieves new SoTA performance. “Depth” means if the method belongs to depth-assisted methods or not. “Type” indicates the method input pattern, “Pixel” denotes the methods with image as inputs directly while “Coordinate” means the coordinate-based methods with 3D coordinates as inputs. "
|
| 942 |
+
],
|
| 943 |
+
"table_footnote": [],
|
| 944 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Depth</td><td rowspan=\"2\">Type</td><td colspan=\"3\">AP3D</td><td colspan=\"3\">APBEV</td></tr><tr><td>Mod.</td><td>Easy</td><td>Hard</td><td>Mod.</td><td>Easy</td><td>Hard</td></tr><tr><td>AM3D [29]</td><td>yes</td><td>Coordinate</td><td>10.74</td><td>16.50</td><td>9.52</td><td>17.32</td><td>25.30</td><td>14.91</td></tr><tr><td>PatchNet [27]</td><td>yes</td><td>Coordinate</td><td>11.12</td><td>15.68</td><td>10.17</td><td>16.86</td><td>22.97</td><td>14.97</td></tr><tr><td>GrooMeD-NMS[20]</td><td>no</td><td>Pixel</td><td>12.32</td><td>18.10</td><td>9.65</td><td>18.27</td><td>26.19</td><td>14.05</td></tr><tr><td>Kinematic3D[3]</td><td>yes</td><td>Pixel</td><td>12.72</td><td>19.07</td><td>9.17</td><td>17.52</td><td>26.69</td><td>13.10</td></tr><tr><td>DDMP-3D[41]</td><td>yes</td><td>Pixel</td><td>12.78</td><td>19.71</td><td>9.80</td><td>17.89</td><td>28.08</td><td>13.44</td></tr><tr><td>Liu et al. [26]</td><td>yes</td><td>Pixel</td><td>13.25</td><td>21.65</td><td>9.91</td><td>17.98</td><td>29.81</td><td>13.08</td></tr><tr><td>PCT</td><td>yes</td><td>Coordinate</td><td>13.37</td><td>21.00</td><td>11.31</td><td>19.03</td><td>29.65</td><td>15.92</td></tr></table>",
|
| 945 |
+
"bbox": [
|
| 946 |
+
194,
|
| 947 |
+
143,
|
| 948 |
+
800,
|
| 949 |
+
263
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 9
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "5.5 Results on Waymo Open Dataset ",
|
| 956 |
+
"text_level": 1,
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
279,
|
| 960 |
+
441,
|
| 961 |
+
294
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 9
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Table 7 shows the results of base method PatchNet [27] and our proposed PCT. It can be observed that our method consistently outperforms the base method on mAP/mAPH of $0 . 5 0 \\% / 0 . 5 1 \\%$ and $0 . 2 8 \\% / 0 . 3 0 \\%$ on the LEVEL_1 and LEVEL_2 difficulties respectively under $\\mathrm { I o U } = 0 . 7$ . Again, our method is efficient, e.g, it takes 5 days to complete training on large scale Waymo dataset with a 8-GPU node. More qualitative results can be seen at Supplementary Material. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
173,
|
| 970 |
+
305,
|
| 971 |
+
825,
|
| 972 |
+
376
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "table",
|
| 978 |
+
"img_path": "images/4a350465591e97a98dda722d5bb68222c94f63bc2ae59bc284322d11c54d7e44.jpg",
|
| 979 |
+
"table_caption": [
|
| 980 |
+
"Table 7: 3D performance on Waymo validation set. We demonstrate results of base method PatchNet [27] and corresponding PCT at $\\mathrm { I o U } = 0 . 7$ and $\\mathrm { I 0 U } = 0 . 5$ . Our proposed PCT achieves consistent improvements on all settings. "
|
| 981 |
+
],
|
| 982 |
+
"table_footnote": [],
|
| 983 |
+
"table_body": "<table><tr><td rowspan=\"2\">Difficulty</td><td rowspan=\"2\">Threshold</td><td rowspan=\"2\">Method</td><td colspan=\"4\">3D mAP/3D mAPH</td></tr><tr><td>Overall</td><td>0-30m</td><td>30-50m</td><td>50-8</td></tr><tr><td rowspan=\"3\">LEVEL_1</td><td>IoU=0.7</td><td>PatchNet PCT</td><td>0.39/0.37 0.89 / 0.88</td><td>1.67 / 1.63 3.18 / 3.15</td><td>0.13/0.12</td><td>0.03/0.03 0.07 /0.07</td></tr><tr><td rowspan=\"2\">IoU=0.5</td><td>PatchNet</td><td>2.92/2.74</td><td>10.03/9.75</td><td>0.27 / 0.27 1.09/ 0.96</td><td>0.23/0.18</td></tr><tr><td>PCT</td><td>4.20 /4.15</td><td>14.70 / 14.54</td><td>1.78 / 1.75</td><td>0.39 / 0.39</td></tr><tr><td rowspan=\"3\">LEVEL_2</td><td>IoU=0.7</td><td>PatchNet</td><td>0.38/0.36</td><td>1.67 / 1.63</td><td>0.13/0.11</td><td>0.03/0.03</td></tr><tr><td rowspan=\"2\">IoU=0.5</td><td>PCT PatchNet</td><td>0.66 / 0.66</td><td>3.18 /3.15</td><td>0.27 /0.26</td><td>0.07 /0.07</td></tr><tr><td></td><td>2.42/2.28</td><td>10.01/9.73</td><td>1.07 /0.94</td><td>0.22/0.16</td></tr><tr><td></td><td></td><td>PCT</td><td>4.03 /3.99</td><td>14.67 / 14.51</td><td>1.74 / 1.71</td><td>0.36 / 0.35</td></tr></table>",
|
| 984 |
+
"bbox": [
|
| 985 |
+
207,
|
| 986 |
+
435,
|
| 987 |
+
789,
|
| 988 |
+
569
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "6 Conclusions ",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
590,
|
| 999 |
+
307,
|
| 1000 |
+
608
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 9
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "In this paper, we have introduced a novel approach PCT to address the inaccurate localization problem for monocular 3D object detection. This is achieved by iteratively transforming the coordinate representation with a confidence-aware booting mechanism. Meanwhile, global context is introduced to compensate for the missing of semantic image representation in coordinated-based methods. Through extensive experiments, we have shown that our proposed PCT substantially improve the performance of the coordinate-based model by a large margin, and achieve state-of-the-art monocular 3D detection performance on KITTI test set. Moreover, we also show consistent improvements compared to the strong baseline on the large-scale Waymo Open dataset. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
623,
|
| 1010 |
+
825,
|
| 1011 |
+
734
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 9
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "There are several limitations that could indicate the possible directions for future work. First, the performance of off-the-shelf 2D detector directly influences the accuracy of coordinate-based methods, hence how to effectively design the 3D box estimation algorithm to fit with existing 2D detectors is important. Second, we only concentrate on the lightweight coordinate-based methods. It requires further exploration to extend our approach to pixel-based methods. Finally, our proposed global context encoding is a simple module. Despite working well, a more tailored feature fusion strategy between coordinate representation and RGB image representation is worth exploring. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
741,
|
| 1021 |
+
825,
|
| 1022 |
+
838
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Potential impacts. Our method focuses on the monocular 3D detection which can be applied in autonomous driving field. One potential social problem of our work is that it may aggravate the employment crisis of human servants and drivers, which replaces human with autonomous robots and intelligent systems. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
176,
|
| 1031 |
+
856,
|
| 1032 |
+
823,
|
| 1033 |
+
911
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 9
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "Acknowledgments ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
176,
|
| 1043 |
+
89,
|
| 1044 |
+
328,
|
| 1045 |
+
106
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 10
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "This work was supported by Shanghai Municipal Science and Technology Major Projects (No.2021SHZDZX0103 and No.2018SHZDZX01). ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
176,
|
| 1054 |
+
121,
|
| 1055 |
+
823,
|
| 1056 |
+
148
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 10
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "References ",
|
| 1063 |
+
"text_level": 1,
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
169,
|
| 1067 |
+
266,
|
| 1068 |
+
185
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 10
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "[1] Shariq Farooq Bhat, Ibraheem Alhashim, and Peter Wonka. Adabins: Depth estimation using adaptive bins. In CVPR, 2021. \n[2] Garrick Brazil and Xiaoming Liu. M3d-rpn: Monocular 3d region proposal network for object detection. In ICCV, 2019. \n[3] Garrick Brazil, Gerard Pons-Moll, Xiaoming Liu, and Bernt Schiele. Kinematic 3d object detection in monocular video. arXiv preprint, 2020. \n[4] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020. \n[5] Xiaozhi Chen, Kaustav Kundu, Yukun Zhu, Andrew G Berneshawi, Huimin Ma, Sanja Fidler, and Raquel Urtasun. 3d object proposals for accurate object class detection. In NeurIPS, 2015. \n[6] Yongjian Chen, Lei Tai, Kai Sun, and Mingyang Li. Monopair: Monocular 3d object detection using pairwise spatial relationships. In CVPR, 2020. \n[7] Corinna Cortes, Mehryar Mohri, and Umar Syed. Deep boosting. In ICML, 2014. \n[8] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. \n[9] Mingyu Ding, Yuqi Huo, Hongwei Yi, Zhe Wang, Jianping Shi, Zhiwu Lu, and Ping Luo. Learning depth-guided convolutions for monocular 3d object detection. In CVPR, 2019. \n[10] Liang Du, Xiaoqing Ye, Xiao Tan, Jianfeng Feng, Zhenbo Xu, Errui Ding, and Shilei Wen. Associate-3ddet: Perceptual-to-conceptual association for 3d point cloud object detection. In CVPR, 2020. \n[11] Liang Du, Xiaoqing Ye, Xiao Tan, Edward Johns, Bo Chen, Errui Ding, Xiangyang Xue, and Jianfeng Feng. Ago-net: Association-guided 3d point cloud object detection network. TPAMI, 2021. \n[12] Jerome H Friedman. Greedy function approximation: a gradient boosting machine. Annals of statistics, 2001. \n[13] Jerome H Friedman. Stochastic gradient boosting. Computational statistics & data analysis, 2002. \n[14] Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In CVPR, 2018. \n[15] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. http://www.cvlibs. net/datasets/kitti/eval_object.php?obj_benchmark $\\cdot ^ { = }$ 3d. 2013. \n[16] Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. IJRR, 2013. \n[17] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In CVPR, 2012. \n[18] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In ICCV, 2017. \n[19] Nikolaos Karianakis, Thomas J Fuchs, and Stefano Soatto. Boosting convolutional features for robust object proposals. arXiv preprint, 2015. \n[20] Abhinav Kumar, Garrick Brazil, and Xiaoming Liu. Groomed-nms: Grouped mathematically differentiable nms for monocular 3d object detection. In CVPR, pages 8973–8983, 2021. \n[21] Haoxiang Li, Zhe Lin, Jonathan Brandt, Xiaohui Shen, and Gang Hua. Efficient boosted exemplar-based face detection. In CVPR, 2014. \n[22] Haoxiang Li, Zhe Lin, Xiaohui Shen, Jonathan Brandt, and Gang Hua. A convolutional neural network cascade for face detection. In CVPR, 2015. \n[23] Peixuan Li, Huaici Zhao, Pengfei Liu, and Feidao Cao. Rtm3d: Real-time monocular 3d detection from object keypoints for autonomous driving. In ECCV, 2020. \n[24] Xuchun Li, Lei Wang, and Eric Sung. A study of adaboost with svm based weak learners. In IJCNN, 2005. \n[25] Lijie Liu, Jiwen Lu, Chunjing Xu, Qi Tian, and Jie Zhou. Deep fitting degree scoring network for monocular 3d object detection. In CVPR, 2019. \n[26] Y. Liu, Y. Yuan, and M. Liu. Ground-aware monocular 3d object detection for autonomous driving. IEEE Robotics and Automation Letters, 2021. \n[27] Xinzhu Ma, Shinan Liu, Zhiyi Xia, Hongwen Zhang, Xingyu Zeng, and Wanli Ouyang. Rethinking pseudo-lidar representation. In ECCV, 2020. \n[28] Xinzhu Ma, Shinan Liu, Zhiyi Xia, Hongwen Zhang, Xingyu Zeng, and Wanli Ouyang. https: //github.com/xinzhuma/patchnet. 2020. \n[29] Xinzhu Ma, Zhihui Wang, Haojie Li, Pengbo Zhang, Wanli Ouyang, and Xin Fan. Accurate monocular 3d object detection via color-embedded 3d reconstruction for autonomous driving. In ICCV, 2019. \n[30] Arsalan Mousavian, Dragomir Anguelov, John Flynn, and Jana Kosecka. 3d bounding box estimation using deep learning and geometry. In CVPR, 2017. \n[31] Erli Ouyang, Li Zhang, Mohan Chen, Anurag Arnab, and Yanwei Fu. Dynamic depth fusion and transformation for monocular 3d object detection. In ACCV, 2020. \n[32] Charles R Qi, Wei Liu, Chenxia Wu, Hao Su, and Leonidas J Guibas. Frustum pointnets for 3d object detection from rgb-d data. In CVPR, 2018. \n[33] Cody Reading, Ali Harakeh, Julia Chae, and Steven L. Waslander. Categorical depth distributionnetwork for monocular 3d object detection. In CVPR, 2021. \n[34] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. \n[35] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In CVPR, 2019. \n[36] Xuepeng Shi, Zhixiang Chen, and Tae-Kyun Kim. Distance-normalized unified representation for monocular 3d object detection. In ECCV, 2020. \n[37] Jeany Son, Ilchae Jung, Kayoung Park, and Bohyung Han. Tracking-by-segmentation with online gradient boosting decision tree. In ICCV, 2015. \n[38] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. In CVPR, 2020. \n[39] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. https://github.com/ waymo-research/waymo-open-dataset. 2020. \n[40] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object detection. In ICCV, 2019. \n[41] Li Wang, Liang Du, Xiaoqing Ye, Yanwei Fu, Guodong Guo, Xiangyang Xue, Jianfeng Feng, and Li Zhang. Depth-conditioned dynamic message propagation for monocular 3d object detection. In CVPR, 2021. \n[42] Yan Wang, Wei-Lun Chao, Divyansh Garg, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar from visual depth estimation: Bridging the gap in 3d object detection for autonomous driving. In CVPR, 2019. \n[43] Xinshuo Weng and Kris Kitani. Monocular 3d object detection with pseudo-lidar point cloud. In ICCV workshops, 2019. \n[44] Yan Yan, Yuxing Mao, and Bo Li. Second: Sparsely embedded convolutional detection. Sensors, 2018. \n[45] Xiaoqing Ye, Liang Du, Yifeng Shi, Yingying Li, Xiao Tan, Jianfeng Feng, Errui Ding, and Shilei Wen. Monocular 3d object detection via feature domain adaptation. In ECCV, 2020. \n[46] Yurong You, Yan Wang, Wei-Lun Chao, Divyansh Garg, Geoff Pleiss, Bharath Hariharan, Mark Campbell, and Kilian Q Weinberger. Pseudo-lidar++: Accurate depth for 3d object detection in autonomous driving. arXiv preprint, 2019. \n[47] Fisher Yu, Dequan Wang, Evan Shelhamer, and Trevor Darrell. Deep layer aggregation. In CVPR, 2018. \n[48] Yunpeng Zhang, Jiwen Lu, and Jie Zhou. Objects are different: Flexible monocular 3d object detection. In CVPR, 2021. \n[49] Xingyi Zhou, Dequan Wang, and Philipp Krähenbühl. Objects as points. arXiv preprint, 2019. \n[50] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In CVPR, 2018. \n[51] Yi Zhu, Zhongyue Zhang, Chongruo Wu, Zhi Zhang, Tong He, Hang Zhang, R. Manmatha, Mu Li, and Alexander Smola. Improving semantic segmentation via self-training. arXiv preprint arXiv:2004.14960, 2020. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
183,
|
| 1078 |
+
828,
|
| 1079 |
+
916
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 10
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
171,
|
| 1088 |
+
65,
|
| 1089 |
+
828,
|
| 1090 |
+
916
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 11
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
171,
|
| 1099 |
+
90,
|
| 1100 |
+
826,
|
| 1101 |
+
535
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 12
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "Checklist ",
|
| 1108 |
+
"text_level": 1,
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
174,
|
| 1111 |
+
558,
|
| 1112 |
+
254,
|
| 1113 |
+
574
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 12
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "1. For all authors... ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
214,
|
| 1122 |
+
584,
|
| 1123 |
+
339,
|
| 1124 |
+
598
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 12
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We have described exactly in abstract section and Sec. 1. \n(b) Did you describe the limitations of your work? [Yes] See Sec. 6. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Sec. 6. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
238,
|
| 1133 |
+
603,
|
| 1134 |
+
825,
|
| 1135 |
+
719
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 12
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "2. If you are including theoretical results... ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
214,
|
| 1144 |
+
724,
|
| 1145 |
+
493,
|
| 1146 |
+
739
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 12
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
238,
|
| 1155 |
+
742,
|
| 1156 |
+
738,
|
| 1157 |
+
773
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 12
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "3. If you ran experiments... ",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
214,
|
| 1166 |
+
777,
|
| 1167 |
+
393,
|
| 1168 |
+
792
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 12
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We demonstrate the codes in Github website. The dataset is public and URL [15, 39] is also attached in Sec. 5. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. 5.3. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We report experiments results at the fixed seed. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
238,
|
| 1177 |
+
796,
|
| 1178 |
+
825,
|
| 1179 |
+
912
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 12
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "text",
|
| 1185 |
+
"text": "(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] The type of resources can be seen at Sec. 5.3. And each GPU can run two experiments, thus, our included experiments (total number of 15) in paper require about 8 Nvidia Tesla v100 GPUs (16G). ",
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
238,
|
| 1188 |
+
92,
|
| 1189 |
+
825,
|
| 1190 |
+
147
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 13
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
215,
|
| 1199 |
+
151,
|
| 1200 |
+
823,
|
| 1201 |
+
166
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 13
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Sec. 5 \n(b) Did you mention the license of the assets? [Yes] We conduct experiments on KITTI (license: CC BY-NC-SA 3.0) and Waymo (license: Custom (non-commercial)). \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] We conduct experiments only on public datasets. ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
238,
|
| 1210 |
+
170,
|
| 1211 |
+
825,
|
| 1212 |
+
291
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 13
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
214,
|
| 1221 |
+
295,
|
| 1222 |
+
705,
|
| 1223 |
+
310
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 13
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
238,
|
| 1232 |
+
314,
|
| 1233 |
+
825,
|
| 1234 |
+
404
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 13
|
| 1237 |
+
}
|
| 1238 |
+
]
|
parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/4G2dEuRZ7eO/4G2dEuRZ7eO_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgXsjA5tQ/HJgXsjA5tQ.md
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON THE LOSS LANDSCAPE OF A CLASS OF DEEP NEURAL NETWORKS WITH NO BAD LOCAL VALLEYS
|
| 2 |
+
|
| 3 |
+
Quynh Nguyen Saarland University, Germany
|
| 4 |
+
|
| 5 |
+
Mahesh Chandra Mukkamala Saarland University, Germany
|
| 6 |
+
|
| 7 |
+
Matthias Hein University of Tübingen, Germany
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
We identify a class of over-parameterized deep neural networks with standard activation functions and cross-entropy loss which provably have no bad local valley, in the sense that from any point in parameter space there exists a continuous path on which the cross-entropy loss is non-increasing and gets arbitrarily close to zero. This implies that these networks have no sub-optimal strict local minima.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
It has been empirically observed in deep learning (Dauphin et al., 2014; Goodfellow et al., 2015) that the training problem of over-parameterized1 deep CNNs (LeCun et al., 1990; Krizhevsky et al., 2012) does not seem to have a problem with bad local minima. In many cases, local search algorithms like stochastic gradient descent (SGD) frequently converge to a solution with zero training error even though the training objective is known to be non-convex and potentially has many distinct local minima (Auer et al., 1996; Safran & Shamir, 2018). This indicates that the problem of training practical over-parameterized neural networks is still far from the worst-case scenario where the problem is known to be NP-hard (Blum & Rivest., 1989; Sima, 2002; Livni et al., 2014; ShalevShwartz et al., 2017). A possible hypothesis is that the loss landscape of these networks is“wellbehaved” so that it becomes amenable to local search algorithms like SGD and its variants. As not all neural networks have a well-behaved loss landscape, it is interesting to identify sufficient conditions on their architecture so that this is guaranteed. In this paper our motivation is to come up with such a class of networks in a practically relevant setting, that is we study multi-class problems with the usual empirical cross-entropy loss and deep (convolutional) networks and almost no assumptions on the training data, in particular no distributional assumptions. Thus our results directly apply to the networks which we use in the experiments.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: An example loss landscape with bad local valleys (left) and without bad local valley (right).
|
| 19 |
+
|
| 20 |
+
Our contributions. We identify a family of deep networks with skip connections to the output layer whose loss landscape has no bad local valleys (see Figure 1 for an illustration). Our setting is for the empirical loss and there are no distributional assumptions on the training data. Moreover, we study directly the standard cross-entropy loss for multi-class problems. There are little assumptions on the network structure which can be arbitrarily deep and can have convolutional layers (weight sharing) and skip-connections between hidden layers. From a practical perspective, one can generate an architecture which fulfills our conditions by taking an existing CNN architecture and then adding skip-connections from a random subset of $N$ neurons ( $N$ is the number of training samples), possibly from multiple hidden layers, to the output layer (see Figure 2 for an illustration). For these networks we show that there always exists a continuous path from any point in parameter space on which the loss is non-increasing and gets arbitrarily close to zero. We note that this implies the loss landscape has no strict local minima, but theoretically non-strict local minima can still exist. Beside that, we show that the loss has also no local maxima.
|
| 21 |
+
|
| 22 |
+
Beside the theoretical analysis, we show in experiments that despite achieving zero training error, the aforementioned class of neural networks generalize well in practice when trained with SGD whereas an alternative training procedure guaranteed to achieve zero training error has significantly worse generalization performance and is overfitting. Thus we think that the presented class of neural networks offer an interesting test bed for future work to study the implicit bias/regularization of SGD.
|
| 23 |
+
|
| 24 |
+
# 2 DESCRIPTION OF NETWORK ARCHITECTURE
|
| 25 |
+
|
| 26 |
+
We consider a family of deep neural networks which have $d$ input units, $H$ hidden units, $m$ output units and satisfy the following conditions:
|
| 27 |
+
|
| 28 |
+
1. Every hidden unit of the first layer can be connected to an arbitrary subset of input units.
|
| 29 |
+
2. Every hidden unit at higher layers can take as input an arbitrary subset of hidden units from (multiple) lower hidden layers.
|
| 30 |
+
3. Any subgroup of hidden units lying on the same layer can have non-shared or shared weights, in the later case their number of incoming units have to be equal.
|
| 31 |
+
4. There exist $N$ hidden units which are connected to the output nodes with independent weights ( $N$ denotes the number of training samples).
|
| 32 |
+
5. The output of every hidden unit $j$ in the network, denoted as $f _ { j } : \mathbb { R } ^ { d } \mathbb { R }$ , is given as
|
| 33 |
+
|
| 34 |
+
$$
|
| 35 |
+
f _ { j } ( x ) = \sigma _ { j } \Bigl ( b _ { j } + \sum _ { k : k \to j } f _ { k } ( x ) u _ { k \to j } \Bigr )
|
| 36 |
+
$$
|
| 37 |
+
|
| 38 |
+
where $x \in \mathbb { R } ^ { d }$ is an input vector of the network, $\sigma _ { j } : \mathbb { R } \mathbb { R }$ is the activation function of unit $j$ , $b _ { j } \in \mathbb { R }$ is the bias of unit $j$ , and $u _ { k \to j } \in \mathbb { R }$ the weight from unit $k$ to unit $j$ .
|
| 39 |
+
|
| 40 |
+
This definition covers a class of deep fully connected and convolutional neural networks with an additional condition on the number of connections to the output layer. In particular, while conventional architectures have just connections from the last hidden layer to the output, we require in our setting that there must exist at least $N$ neurons, “regardless” of their hidden layer, that are connected to the output layer. Essentially, this means that if the last hidden layer of a traditional network has just $L < N$ neurons then one can add connections from $N - L$ neurons in the hidden layers below it to the output layer so that the network fulfills our conditions.
|
| 41 |
+
|
| 42 |
+
Similar skip-connections have been used in DenseNet (Huang et al., 2017) which are different from identity skip-connections as used in ResNets (He et al., 2016). In Figure 2 we illustrate a network with and without skip connections to the output layer which is analyzed in this paper. We note that several architectures like DenseNets Huang et al. (2017) already have skip-connections between hidden layers in their original architecture, whereas our special skip-connections go from hidden layers directly to the output layer. As our framework allow both kinds to exist in the same network (see Figure 2 for an example), we would like to separate them from each other by making the convention that in the following skip-connections, if not stated otherwise, always refer to ones which connect hidden neurons to output neurons.
|
| 43 |
+
|
| 44 |
+
We denote by $d$ the dimension of the input and index all neurons in the network from the input layer to the output layer as $1 , 2 , \ldots , d , d + 1 , \ldots , d + H , d + H + 1 , \ldots , d + H + m$ which correspond to $d$ input units, $H$ hidden units and $m$ output units respectively. As we only allow directed arcs from lower layers to upper layers, it follows that $k \ < \ j$ for every $k j$ . Let $N$ be the number of training samples. Suppose that there are $M$ hidden neurons which are directly connected to the output with independent weights where it holds $N \leq M \leq H$ . Let $\{ p _ { 1 } , \hdots , p _ { M } \}$ with $p _ { j } \in \{ d + 1 , \ldots , d + H \}$ be the set of hidden units which are directly connected to the output units. Let $\mathrm { i n } ( j )$ be the set of incoming nodes to unit $j$ and $u _ { j } = [ u _ { k j } ] _ { k \in \mathrm { i n } ( j ) }$ the weight vector of the $j$ -th unit. Let $U = ( u _ { d + 1 } , \dots , u _ { d + H } , b _ { d + 1 } , \dots , b _ { d + H } )$ denote the set of all weights and biases of all hidden units in the network. Let $V \in \mathbb { R } ^ { M \times m }$ be the weight matrix which connects the $M$ hidden neurons to the $m$ output units of the network. An important quantity in the following is the matrix $\Psi \in \mathbb { R } ^ { N \times M }$ defined as
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 2: Left: An example neural network represented as directed acyclic graph. Right: The same network with skip connections added from a subset of hidden neurons to the output layer. All neurons with the same color can have shared or non-shared weights.
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\Psi = \left[ \begin{array} { c c c } { { f _ { p _ { 1 } } ( x _ { 1 } ) } } & { { \ldots } } & { { f _ { p _ { M } } ( x _ { 1 } ) } } \\ { { \vdots } } & { { } } & { { \vdots } } \\ { { f _ { p _ { 1 } } ( x _ { N } ) } } & { { \ldots } } & { { f _ { p _ { M } } ( x _ { N } ) } } \end{array} \right]
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
As $\Psi$ depends on $U$ , we write $\Psi _ { U }$ or $\Psi ( U )$ as a function of $U$ . Let $G \in \mathbb { R } ^ { N \times m }$ be the output of the network for all training samples. In particular, $G _ { i j }$ is the value of the $j$ -th output neuron for training sample $x _ { i }$ . It follows from our definition that
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
G _ { i j } = \langle \Psi _ { i : } , V _ { : j } \rangle = \sum _ { k = 1 } ^ { M } f _ { p _ { k } } ( x _ { i } ) V _ { k j } , \quad \forall i \in [ N ] , j \in [ m ]
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Let $( x _ { i } , y _ { i } ) _ { i = 1 } ^ { N }$ be the training set where $y _ { i }$ denotes the target class for sample $x _ { i }$ . In the following we analyze the commonly used cross-entropy loss given as
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\Phi ( U , V ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } - \log \Big ( \frac { e ^ { G _ { i y _ { i } } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Big )
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
We refer to Section $\textrm { C }$ in the appendix for extension of our results to general convex losses. The cross-entropy loss is bounded from below by zero but this value is not attained. In fact the global minimum of the cross-entropy loss need not exist e.g. if a classifier achieves zero training error then by upscaling the function to infinity one can drive the loss arbitrarily close to zero. Due to this property, we do not study the global minima of the cross-entropy loss but the question if and how one can achieve zero training error. Moreover, we note that sufficiently small cross-entropy loss implies zero training error as shown in the following lemma.
|
| 66 |
+
|
| 67 |
+
Lemma 2.1 If $\begin{array} { r } { \Phi ( U , V ) < \frac { \log ( 2 ) } { N } } \end{array}$ , then the training error is zero.
|
| 68 |
+
|
| 69 |
+
Proof: We note that if $\begin{array} { r } { \Phi ( U , V ) < \frac { \log ( 2 ) } { N } } \end{array}$ < log(2)N , then it holds due to the positivity of the loss,
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\operatorname* { m a x } _ { i = 1 , \dots , N } - \log \Big ( \frac { e ^ { G _ { i y _ { i } } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Big ) \leq \sum _ { i = 1 } ^ { N } - \log \Big ( \frac { e ^ { G _ { i y _ { i } } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Big ) < \log ( 2 ) .
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
This implies that for all $i = 1 , \ldots , N$ ,
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\log \left( 1 + \sum _ { k \neq y _ { i } } e ^ { G _ { i k } - G _ { i y _ { i } } } \right) < \log ( 2 ) \quad \Longrightarrow \quad \sum _ { k \neq y _ { i } } e ^ { G _ { i k } - G _ { i y _ { i } } } < 1 .
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
In particular: $\begin{array} { r } { \operatorname* { m a x } _ { k \neq y _ { i } } e ^ { G _ { i k } - G _ { i y _ { i } } } < 1 } \end{array}$ and thus $\begin{array} { r } { \operatorname* { m a x } _ { k \neq y _ { i } } G _ { i k } - G _ { i y _ { i } } < 0 } \end{array}$ for all $i = 1 , \ldots , N$ which implies the result.
|
| 82 |
+
|
| 83 |
+
# 3 MAIN RESULT
|
| 84 |
+
|
| 85 |
+
The following conditions are required for the main result to hold.
|
| 86 |
+
|
| 87 |
+
Assumption 3.1 increasing
|
| 88 |
+
|
| 89 |
+
1. All activation functions $\{ \sigma _ { d + 1 } , \ldots , \sigma _ { d + H } \}$ are real analytic and strictly
|
| 90 |
+
|
| 91 |
+
2. Among $M$ neurons $\{ p _ { 1 } , \hdots , p _ { M } \}$ which are connected to the output units, there exist $N \leq M$ neurons, say w.l.o.g. $\{ p _ { 1 } , \dotsc , p _ { N } \}$ , such that one of the following conditions hold:
|
| 92 |
+
|
| 93 |
+
• For every $1 \le j \le N : \sigma _ { p _ { j } }$ is bounded and $\begin{array} { r } { \operatorname* { l i m } _ { t - \infty } \sigma _ { p _ { j } } ( t ) = 0 } \end{array}$ • For every $1 \le j \le N : \sigma _ { p _ { j } }$ is the softplus activation (3), and there exists a backward path from $p _ { j }$ to the first hidden layer s.t. on this path there is no neuron which has skip-connections to the output or shared weights with other skip-connection neurons.
|
| 94 |
+
|
| 95 |
+
3. The input patches of different training samples are distinct. In particular, let $n _ { 1 }$ be the number of units in the first hidden layer and denote by $S _ { i }$ for $i \in [ d + 1 , d + n _ { 1 } ]$ their input support, then for all $r \neq s \in [ N ]$ , and $i \in [ d + 1 , d + n _ { 1 } ]$ , it holds $x _ { r } | _ { S _ { i } } \neq x _ { s } | _ { S _ { i } }$ .
|
| 96 |
+
|
| 97 |
+
The first condition of Assumption 3.1 is satisfied for softplus, sigmoid, tanh, etc, whereas the second condition is fulfilled for sigmoid and softplus. For softplus activation function (smooth approximation of ReLU),
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\sigma _ { \gamma } ( t ) = \frac { 1 } { \gamma } \log ( 1 + e ^ { \gamma t } ) , ~ \mathrm { f o r ~ s o m e } \gamma > 0 ,
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
we require an additional assumption on the network architecture. The third condition is always satisfied for fully connected networks if the training samples are distinct. For CNNs, this condition means that the corresponding input patches across different training samples are distinct. This could be potentially violated if the first convolutional layer has very small receptive fields. However, if this condition is violated for the given training set then after an arbitrarily small random perturbation of all training inputs it will be satisfied with probability 1. Note that the $M$ neurons which are directly connected to the output units can lie on different hidden layers in the network. Also there is no condition on the width of every individual hidden layer as long as the total number of hidden neurons in the network is larger than $N$ so that our condition $M \geq N$ is feasible.
|
| 104 |
+
|
| 105 |
+
Overall, we would like to stress that Assumption 3.1 covers a quite large class of interesting network architectures but nevertheless allows us to show quite strong results on their empirical loss landscape.
|
| 106 |
+
|
| 107 |
+
The following key lemma shows that for almost all $U$ , the matrix $\Psi ( U )$ has full rank.
|
| 108 |
+
|
| 109 |
+
Lemma 3.2 Under Assumption 3.1, the set of $U$ such that $\Psi ( U )$ has not full rank N has Lebesgue measure zero.
|
| 110 |
+
|
| 111 |
+
Proof: (Proof sketch) Due to space limitation, we can only present below a proof sketch. We refer the reader to the appendix for the detailed proof. The proof consists of two main steps. First, we show that there exists $U$ s.t. the submatrix $\Psi _ { 1 : N , 1 : N }$ has full rank. By Assumption 3.1, all activation functions are real analytic, thus the determinant of $\Psi _ { 1 : N , 1 : N }$ is a real analytic function of the network parameters which $\Psi$ depends on. By the first result, this determinant function is not identically zero, thus Lemma A.1 shows that the set of $U$ for which $\Psi$ has not full rank has Lebesgue measure zero.
|
| 112 |
+
|
| 113 |
+
Now we sketch the proof for the first step, that is to find a $U$ s.t. $\Psi$ has full rank. By Assumption 3.1.3, one can always choose the weight vectors of the first hidden layer so that every neuron at this layer has distinct values for different training samples. For higher neurons, we set their initial weight vectors to be unit vectors with exactly one 1 and 0 elsewhere. Note that the above construction of weights can be easily done so that all the neurons from the same layer and with the same number of incoming units can have shared/unshared weights according to our description of network architecture in Section 2. Let $c ( j )$ be the neuron below $j$ s.t. $u _ { c ( j ) j } = 1$ . To find $U$ , we are going to scale up each weight vector $u _ { j }$ by a positive scalar $\alpha _ { j }$ . The idea is to show that the determinant of $\Psi _ { 1 : N , 1 : N }$ is non-zero for some positive value of $\{ \alpha _ { j } \}$ . The biases can be chosen in such a way that the following holds for some $\beta \in \mathbb { R }$ ,
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\Psi _ { i j } = f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \Big ( \beta + \alpha _ { p _ { j } } \big ( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \big ) \Big ) \quad \forall j \in [ N ]
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $f _ { c ( p _ { j } ) } ( \boldsymbol { x } ) = \sigma _ { c ( p _ { j } ) } ( \alpha _ { c ( p _ { j } ) } \sigma _ { c ( c ( p _ { j } ) ) } ( \ldots f _ { q _ { j } } ( \boldsymbol { x } ) \ldots ) )$ with $q _ { j }$ being the index of some neuron in the first hidden layer. Note that by our construction the value of unit $q _ { j }$ is distinct at different training samples, and thus it follows from the strict monotonic property of activation functions from Assumption 3.1 and the positivity of $\big \{ \alpha _ { c ( p _ { j } ) } , . . . \big \}$ that $f _ { c ( p _ { j } ) } ( x _ { i } ) \ne f _ { c ( p _ { j } ) } ( x _ { j } )$ for every $i \neq j$ . Next, we show that the set of training samples can be re-ordered in such a way that it holds $f _ { c ( p _ { j } ) } ( x _ { i } ) < f _ { c ( p _ { j } ) } ( x _ { j } )$ for every $i > j$ . Note that this re-ordering does not affect the rank of $\Psi$ Now, the intuition is that if one let $\alpha _ { p _ { j } }$ go to infinity then $\Psi _ { i j }$ converges to zero for $i > j$ because it holds for all activations from Assumption 3.1 that $\begin{array} { r } { \operatorname* { l i m } _ { t - \infty } \sigma _ { p _ { j } } ( t ) = 0 } \end{array}$ . Thus the determinant of $\Psi _ { 1 : 1 , 1 : N }$ converges to $\begin{array} { r } { \prod _ { i = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) } \end{array}$ which can be chosen to be non-zero by a predefined value of $\beta$ in which case $\Psi$ will have full rank. The detailed proof basically will show how to choose the specific values of $\{ \alpha _ { j } \}$ so that all the above criteria are met. In particular, it is important to make sure that the weight vectors of two neurons ${ j , j ^ { \prime } }$ from the same layer will be scaled by the same factor $\alpha _ { j } = \alpha _ { j \prime }$ as we want to maintain any potential weight-sharing conditions. The choice of activation functions from the second condition of Assumption 3.1 basically determines how the values of $\alpha$ should be chosen.
|
| 120 |
+
|
| 121 |
+
While we conjecture that the result of Lemma 3.2 holds for softplus activation function without the additional condition as mentioned in Assumption 3.1, the proof of this is considerably harder for such a general class of neural networks since one has to control the output of neurons with skip connection from different layers which depend on each other. However, please note that the condition is also not too restrictive as it just might require more connections from lower layers to upper layers but it does not require that the network is wide. Before presenting our main result, we first need a formal definition of bad local valleys.
|
| 122 |
+
|
| 123 |
+
Definition 3.3 The $\alpha$ -sublevel set of $\Phi$ is defined as $L _ { \alpha } = \{ ( U , V ) \mid \Phi ( U , V ) < \alpha \}$ . A local valley is defined as a connected component of some sublevel set $L _ { \alpha }$ . A bad local valley is a local valley on which the loss function $\Phi$ cannot be made “arbitrarily small”.
|
| 124 |
+
|
| 125 |
+
Intuitively, a typical example of a bad local valley is a small neighborhood around a sub-optimal strict local minimum. We are now ready to state our main result.
|
| 126 |
+
|
| 127 |
+
Theorem 3.4 The following holds under Assumption 3.1:
|
| 128 |
+
|
| 129 |
+
1. There exist uncountably many solutions with zero training error.
|
| 130 |
+
|
| 131 |
+
2. The loss landscape of $\Phi$ does not have any bad local valley.
|
| 132 |
+
|
| 133 |
+
3. There exists no suboptimal strict local minimum.
|
| 134 |
+
|
| 135 |
+
4. There exists no local maximum.
|
| 136 |
+
|
| 137 |
+
# Proof:
|
| 138 |
+
|
| 139 |
+
1. By Lemma 3.2 the set of $U$ such that $\Psi ( U )$ has not full rank $N$ has Lebesgue measure zero. Given $U$ such that $\Psi$ has full rank, the linear system $\Psi ( U ) V = Y$ has for every possible target output matrix $Y \in \mathbb { R } ^ { N \times m }$ at least one solution $V$ . As this is possible for almost all $U$ , there exist uncountably many solutions achieving zero training error.
|
| 140 |
+
|
| 141 |
+
2. Let $C$ be a non-empty, connected component of some $\alpha$ -sublevel set $L _ { \alpha }$ for $\alpha > 0$ . Suppose by contradiction that the loss on $C$ cannot be made arbitrarily small, that is there exists an $\epsilon > 0$ such that $\Phi ( U , V ) ~ \ge ~ \epsilon$ for all $( U , V ) \in C$ , where $\epsilon \ < \ \alpha$ . By definition, $L _ { \alpha }$ can be written as the pre-image of an open set under a continuous function, that is $L _ { \alpha } = \Phi ^ { - 1 } ( \{ a \mid a < \alpha \} )$ , and thus $L _ { \alpha }$ must be an open set (see Proposition A.2). Since $C$ is a non-empty connected component of $L _ { \alpha }$ , $C$ must be an open set as well, and thus $C$ has non-zero Lebesgue measure. By Lemma 3.2 the set of $U$ where $\Psi ( U )$ has not full rank has measure zero and thus $C$ must contain a point $( U , V )$ such that $\Psi ( U )$ has full rank. Let $Y$ be the usual zero-one one-hot encoding of the target network output. As $\Psi ( U )$ has full rank, there always exist $V ^ { * }$ such that $\Psi ( U ) V ^ { * } = Y t ^ { * }$ , where $\begin{array} { r } { t ^ { * } = \log \left( \frac { m - 1 } { e ^ { \frac { \epsilon } { 2 } } - 1 } \right) } \end{array}$ Note that the loss of $( U , V ^ { * } )$ is
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\Phi ( U , V ^ { * } ) = - \log \Big ( \frac { e ^ { t ^ { * } } } { e ^ { t ^ { * } } + ( m - 1 ) } \Big ) = \log ( 1 + ( m - 1 ) e ^ { - t ^ { * } } ) = \frac { \epsilon } { 2 } .
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
As the cross-entropy loss $\Phi ( U , V )$ is convex in $V$ and $\Phi ( U , V ) < \alpha$ we have for the line segment $V ( \lambda ) = \lambda V + ( 1 - \lambda ) V ^ { * }$ for $\lambda \in [ 0 , 1 ]$ ,
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\Phi ( U , V ( \lambda ) ) \le \lambda \Phi ( U , V ) + ( 1 - \lambda ) \Phi ( U , V ^ { * } ) < \lambda \alpha + ( 1 - \lambda ) \frac { \epsilon } { 2 } < \alpha .
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
Thus the whole line segment is contained in $L _ { \alpha }$ and as $C$ is a connected component it has to be contained in $C$ . However, this contradicts the assumption that for all $( U , V ) \in C$ it holds $\Phi ( U , V ) \ge \epsilon$ . Thus on every connected component $C$ of $L _ { \alpha }$ the training loss can be made arbitrarily close to zero and thus the loss landscape has no bad valleys.
|
| 154 |
+
|
| 155 |
+
3. Let $( U _ { 0 } , V _ { 0 } )$ be a strict suboptimal local minimum, then there exists $r > 0$ such that $\Phi ( U , V ) > \Phi ( U _ { 0 } , V _ { 0 } ) > 0$ for all $( U , V ) \in { \cal B } ( ( U _ { 0 } , V _ { 0 } ) , r ) \ : \backslash \ : \{ ( U _ { 0 } , V _ { 0 } ) \}$ where $B ( \cdot , r )$ denotes a closed ball of radius $r$ . Let $\begin{array} { r } { \alpha = \operatorname* { m i n } _ { ( U , V ) \in \partial B \big ( ( U _ { 0 } , V _ { 0 } ) , r \big ) } \Phi ( U , V ) } \end{array}$ which exists as $\Phi$ is continuous and the boundary $\partial B \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ of $B \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ is compact. Note that $\alpha > \Phi ( U _ { 0 } , V _ { 0 } )$ as $( U _ { 0 } , V _ { 0 } )$ is a strict local minimum. Consider the sub-level set $D = L _ { \frac { \alpha + \Phi ( U _ { 0 } , V _ { 0 } ) } { 2 } }$ . As ent o $\begin{array} { r } { \Phi ( U _ { 0 } , V _ { 0 } ) < \frac { \alpha + \Phi ( U _ { 0 } , V _ { 0 } ) } { 2 } } \end{array}$ α+Φ(U0,V0) it holds (U0, V0) ∈ D. Let E be the , that i t holds $D$ $( U _ { 0 } , V _ { 0 } )$ $( U _ { 0 } , V _ { 0 } ) \in E \subseteq D$ $E \subset B { \big ( } ( U _ { 0 } , V _ { 0 } ) , r { \big ) }$ as $\begin{array} { r } { \Phi ( U , V ) < \frac { \alpha + \Phi ( U _ { 0 } , V _ { 0 } ) } { 2 } < \alpha } \end{array}$ α+Φ(U0,V0) < α for all (U, V ) ∈ E. Moreover, $\Phi ( U , V ) \ge \Phi ( U _ { 0 } , V _ { 0 } ) > 0$ for all $( U , V ) \in E$ and thus $\Phi$ can not be made arbitrarily small on a connected component of a sublevel set of $\Phi$ and thus $E$ would be a bad local valley which contradicts 3.3.2.
|
| 156 |
+
|
| 157 |
+
4. Suppose by contradiction that $( U , V )$ is a local maximum. Then the Hessian of $\Phi$ is negative semi-definite. However, as principal submatrices of negative semi-definite matrices are again negative semi-definite, then also the Hessian of $\Phi$ w.r.t $V$ must be negative semidefinite. However, $\Phi$ is always convex in $V$ and thus its Hessian restricted to $V$ is positive semi-definite. The only matrix which is both p.s.d. and n.s.d. is the zero matrix. It follows that $\nabla _ { V } ^ { 2 } \Phi ( U , V ) = 0$ . One can easily show that
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\nabla _ { V _ { : j } } ^ { 2 } \Phi = \sum _ { i = 1 } ^ { N } \frac { e ^ { G _ { i j } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Bigl ( 1 - \frac { e ^ { G _ { i j } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Bigr ) \Psi _ { i : } \Psi _ { i : } ^ { T }
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
From Assumption 3.1 it holds that there exists $j \in [ N ]$ s.t. $\sigma _ { p _ { j } }$ is strictly positive, and thus some entries of $\Psi _ { i }$ : must be strictly positive. Moreover, one has ${ \frac { e ^ { G _ { i j } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } } \in ( 0 , 1 )$ . It follows that some entries of $\nabla _ { V : j } ^ { 2 } \Phi$ must be strictly positive. Thus $\nabla _ { V : j } ^ { 2 } \Phi$ cannot be identically zero, leading to a contradiction. Therefore $\Phi$ has no local maximum.
|
| 164 |
+
|
| 165 |
+
Theorem 3.4 shows that there are infinitely many solutions which achieve zero training error, and the loss landscape is nice in the sense that from any point in the parameter space there exists a continuous path that drives the loss arbitrarily close to zero (and thus a solution with zero training error) on which the loss is non-increasing.
|
| 166 |
+
|
| 167 |
+
While the networks are over-parameterized, we show in the next Section 4 that the modification of standard networks so that they fulfill our conditions leads nevertheless to good generalization performance, often even better than the original network. We would like to note that the proof of Theorem 3.4 also suggests a different algorithm to achieve zero training error: one initializes all weights, except the weights to the output layer, randomly (e.g. Gaussian weights), denoted as $U$ , and then just solves the linear system $\Psi ( U ) V = Y$ to obtain the weights $V$ to the output layer. Basically, this algorithm uses the network as a random feature generator and fits the last layer directly to achieve zero training error. The algorithm is successful with probability 1 due to Lemma 3.2. Note that from a solution with zero training error one can drive the cross-entropy loss to zero by upscaling to infinity but this does not change the classifier. We will see, that this simple algorithm shows bad generalization performance and overfitting, whereas training the full network with SGD leads to good generalization performance. This might seem counter-intuitive as our networks have more parameters than the original networks but is inline with recent observations in Zhang et al. (2017) that state-of-the art networks, also heavily over-parameterized, can fit even random labels but still generalize well on the original problem. Due to this qualitative difference of SGD and the simple algorithm which both are able to find solutions with zero training error, we think that our class of networks is an ideal test bed to study the implicit regularization/bias of SGD, see e.g. Soudry et al. (2018).
|
| 168 |
+
|
| 169 |
+
# 4 EXPERIMENTS
|
| 170 |
+
|
| 171 |
+
The main purpose of this section is to investigate the generalization ability of practical neural networks with skip-connections added to the output layer to fulfill Assumption 3.1.
|
| 172 |
+
|
| 173 |
+
Datasets. We consider MNIST and CIFAR10 datasets. MNIST contains $5 . 5 \times 1 0 ^ { 4 }$ training samples and $1 0 ^ { 4 }$ test samples, and CIFAR10 has $5 \times 1 0 ^ { 4 }$ training samples and $1 0 ^ { 4 }$ test samples. We do not use any data pre-processing nor data-augmentation in all of our experiments.
|
| 174 |
+
|
| 175 |
+
Network architectures. For MNIST, we use a plain CNN architecture with 13 layers, denoted as CNN13 (see Table 3 in the appendix for more details about this architecture). For CIFAR10 we use VGG11, VGG13, VGG16 (Simonyan & Zisserman, 2015) and DenseNet121 (Huang et al., 2017). As the VGG models were originally proposed for ImageNet and have very large fully connected layers, we adapted these layers for CIFAR10 by reducing their width from 4096 to 128. For each given network, we create the corresponding skip-networks by adding skip-connections to the output so that our condition $M \geq N$ from the main theorem is satisfied. In particular, we aggregate all neurons of all the hidden layers in a pool and randomly choose from there a subset of $N$ neurons to be connected to the output layer (see e.g. Figure 2 for an illustration). As existing network architectures have a large number of feature maps per layer, the total number of neurons is often very large compared to number of training samples, thus it is easy to choose from there a subset of $N$ neurons to connect to the output. In the following, we test both sigmoid and softplus activation function $( \gamma = 2 0 )$ ) for each network architecture and their skip-variants. We use the standard cross-entropy loss and train all models with SGD+Nesterov momentum for 300 epochs. The initial learning rate is set to 0.1 for Densenet121 and 0.01 for the other architectures. Following Huang et al. (2017), we also divide the learning rate by 10 after $5 0 \%$ and $7 5 \%$ of the total number of training epochs. Note that we do not use any explicit regularization like weight decay or dropout.
|
| 176 |
+
|
| 177 |
+
The main goal of our experiments is to investigate the influence of the additional skip-connections to the output layer on the generalization performance. We report the test accuracy for the original models and the ones with skip-connections to the output layer. For the latter one we have two different algorithms: standard SGD for training the full network as described above (SGD) and the randomized procedure (rand). The latter one uses a slight variant of the simple algorithm described at the end of the last section: randomly initialize the weights of the network $U$ up to the output layer by drawing each of them from a truncated Gaussian distribution with zero mean and variance $\textstyle { \frac { 2 } { d } }$ where $d$ is the number of weight parameters and the truncation is done after $\pm 2$ standard deviations (standard keras initialization), then use SGD to optimize the weights $V$ for a linear classifier with fixed features $\Psi ( U )$ which is a convex optimization problem.
|
| 178 |
+
|
| 179 |
+
Our experimental results are summarized in Table 1 for MNIST and Table 2 for CIFAR10. For skip-models, we report mean and standard deviation over 8 random choices of the subset of $N$ neurons connected to the output.
|
| 180 |
+
|
| 181 |
+
Discussion of results. First of all, we note that adding skip connections to the output improves the test accuracy in almost all networks (with the exception of Densenet121) when the full network is
|
| 182 |
+
|
| 183 |
+
<table><tr><td></td><td>Sigmoid activation function</td><td>Softplus activation function</td></tr><tr><td>CNN13</td><td>11.35</td><td>99.20</td></tr><tr><td>CNN13-skip (SGD)</td><td>98.40 ± 0.07</td><td>99.14 ± 0.04</td></tr></table>
|
| 184 |
+
|
| 185 |
+
Table 1: Test accuracy $( \% )$ of CNN13 on MNIST dataset. CNN13 denotes the original architecture from Table 3 while CNN13-skip denotes the corresponding skip-model. There are in total 179, 840 hidden neurons from the original CNN13 (see Table 3), out of which we choose a random subset of $N = 5 5$ , 000 neurons to connect to the output layer to obtain CNN13-skip.
|
| 186 |
+
|
| 187 |
+
Table 2: Traning and test accuracy of several CNN architectures with/without skip-connections on CIFAR10 (no data-augmentation). For each original model A, A-skip denotes the corresponding skip-model in which a subset of $N$ hidden neurons “randomly selected” from the hidden layers are connected to the output units. For Densenet121, these neurons are randomly chosen from the first dense block. The names in open brackets (rand/SGD) specify how the networks are trained: rand $U$ is randomized and fixed while $V$ is learned with SGD), SGD (both $U$ and $V$ are optimized with SGD). Additional experimental results with data-augmentation are shown in Table 5 in the appendix.
|
| 188 |
+
|
| 189 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Sigmoid activation function</td><td rowspan=1 colspan=2>Softplus activation function</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Test acc (%)</td><td rowspan=1 colspan=1>Train acc (%)</td><td rowspan=1 colspan=1>Test acc (%)</td><td rowspan=1 colspan=1>Train acc (%)</td></tr><tr><td rowspan=1 colspan=1>VGG11VGG11-skip (rand)VGG11-skip (SGD)</td><td rowspan=1 colspan=1>1062.81 ± 0.3972.51 ± 0.35</td><td rowspan=1 colspan=1>10100100</td><td rowspan=1 colspan=1>78.9264.49 ± 0.3880.57 ± 0.40</td><td rowspan=1 colspan=1>100100100</td></tr><tr><td rowspan=1 colspan=1>VGG13VGG13-skip (rand)VGG13-skip (SGD)</td><td rowspan=1 colspan=1>1061.50 ± 0.3470.24 ± 0.39</td><td rowspan=1 colspan=1>10100100</td><td rowspan=1 colspan=1>80.8461.42 ± 0.4081.94 ± 0.40</td><td rowspan=1 colspan=1>100100100</td></tr><tr><td rowspan=1 colspan=1>VGG16VGG16-skip (rand)VGG16-skip (SGD)</td><td rowspan=1 colspan=1>1061.57 ± 0.4170.61 ± 0.36</td><td rowspan=1 colspan=1>10100100</td><td rowspan=1 colspan=1>81.3361.46 ± 0.3481.91 ± 0.24</td><td rowspan=1 colspan=1>100100100</td></tr><tr><td rowspan=1 colspan=1>Densenet121Densenet121-skip (rand)Densenet121-skip (SGD)</td><td rowspan=1 colspan=1>86.4152.07 ± 0.4881.47 ± 1.03</td><td rowspan=1 colspan=1>100100100</td><td rowspan=1 colspan=1>89.3155.39 ± 0.4886.76 ± 0.49</td><td rowspan=1 colspan=1>100100100</td></tr></table>
|
| 190 |
+
|
| 191 |
+
trained with SGD. In particular, for the sigmoid activation function the skip connections allow for all models except Densenet121 to get reasonable performance whereas training the original model fails. This effect can be directly related to our result of Theorem 3.4 that the loss landscape of skip-networks has no bad local valley and thus it is not difficult to reach a solution with zero training error (see Section F in the appendix for more detailed discussions on this issue, as well as Section E for a visual example which shows why the skip-models can succeed while the original models fail). The exception is Densenet121 which gets already good performance for the sigmoid activation function for the original model. We think that the reason is that the original Densenet121 architecture has already quite a lot of skip-connections between the hidden layers which thus improves the loss surface already so that the additional connections added to the output units are not necessary anymore.
|
| 192 |
+
|
| 193 |
+
The second interesting observation is that we do not see any sign of overfitting for the SGD version even though we have increased for all models the number of parameters by adding skip connections to the output layer and we know from Theorem 3.4 that for all the skip-models one can easily achieve zero training error. This is in line with the recent observation of Zhang et al. (2017) that modern heavily over-parameterized networks can fit everything (random labels, random input) but nevertheless generalize well on the original training data when trained with SGD. This is currently an active research area to show that SGD has some implicit bias (Neyshabur et al., 2017; Brutzkus et al., 2018; Soudry et al., 2018) which leads to a kind of regularization effect similar to the linear least squares problem where SGD converges to the minimum norm solution. Our results confirm that there is an implicit bias as we see a strong contrast to the (skip-rand) results obtained by using the network as a random feature generator and just fitting the connections to the output units (i.e. $V$ ) which also leads to solutions with zero training error with probability 1 as shown in Lemma 3.2 and the proof of Theorem 3.4. For this version we see that the test accuracy gets worse as one is moving from simpler networks (VGG11) to more complex ones (VGG16 and Densenet121) which is a sign of overfitting. Thus we think that our class of networks is also an interesting test bed to understand the implicit regularization effect of SGD. It seems that SGD selects from the infinite pool of solutions with zero training error one which generalizes well, whereas the randomized feature generator selects one with much worse generalization performance.
|
| 194 |
+
|
| 195 |
+
# 5 RELATED WORK
|
| 196 |
+
|
| 197 |
+
In the literature, many interesting theoretical results have been developed on the loss surface of neural networks Yu & Chen (1995); Haeffele & Vidal (2017); Choromanska et al. (2015); Kawaguchi (2016); Safran & Shamir (2016); Hardt & Ma (2017); Yun et al. (2017); Lu & Kawaguchi (2017); Venturi et al. (2018); Liang et al. (2018b); Zhang et al. (2018); Nouiehed & Razaviyayn (2018). The behavior of SGD for the minimization of training objective has been also analyzed for various settings (Andoni et al., 2014; Sedghi & Anandkumar, 2015; Janzamin et al., 2016; Gautier et al., 2016; Brutzkus & Globerson, 2017; Soltanolkotabi, 2017; Soudry & Hoffer, 2017; Zhong et al., 2017; Tian, 2017; Du et al., 2018; Wang et al., 2018) to name a few. Most of current results are however limited to shallow networks (one hidden layer), deep linear networks and/or making simplifying assumptions on the architecture or the distribution of training data. An interesting recent exception is Liang et al. (2018a) where they show that for binary classification one neuron with a skip-connection to the output layer and exponential activation function is enough to eliminate all bad local minima under mild conditions on the loss function. More closely related in terms of the setting are (Nguyen & Hein, 2017; 2018) where they study the loss surface of fully connected and convolutional networks if one of the layers has more neurons than the number of training samples for the standard multi-class problem. However, the presented results are stronger as we show that our networks do not have any suboptimal local valley or strict local minima and there is less over-parameterization if the number of classes is small.
|
| 198 |
+
|
| 199 |
+
# 6 CONCLUSION
|
| 200 |
+
|
| 201 |
+
We have identified a class of deep neural networks whose loss landscape has no bad local valleys. While our networks are over-parameterized and can easily achieve zero training error, they generalize well in practice when trained with SGD. Interestingly, a simple different algorithm using the network as random feature generator also achieves zero training error but has significantly worse generalization performance. Thus we think that our class of models is an interesting test bed for studying the implicit regularization effect of SGD.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
A. Andoni, R. Panigrahy, G. Valiant, and L. Zhang. Learning polynomials with neural networks. ICML, 2014.
|
| 206 |
+
T. M. Apostol. Mathematical analysis. Addison Wesley, 1974.
|
| 207 |
+
P. Auer, M. Herbster, and M. K. Warmuth. Exponentially many local minima for single neurons. NIPS, 1996.
|
| 208 |
+
A. Blum and R. L Rivest. Training a 3-node neural network is np-complete. NIPS, 1989.
|
| 209 |
+
A. Brutzkus and A. Globerson. Globally optimal gradient descent for a convnet with gaussian inputs. ICML, 2017.
|
| 210 |
+
A. Brutzkus, A. Globerson, E. Malach, and S. Shalev-Shwartz. Sgd learns over-parameterized networks that provably generalize on linearly separable data. ICLR, 2018.
|
| 211 |
+
A. Choromanska, M. Hena, M. Mathieu, G. B. Arous, and Y. LeCun. The loss surfaces of multilayer networks. AISTATS, 2015.
|
| 212 |
+
Y. Dauphin, R. Pascanu, C. Gulcehre, K. Cho, S. Ganguli, and Y. Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. NIPS, 2014.
|
| 213 |
+
S. Du, J. Lee, Y. Tian, A. Singh, and B. Póczos. Gradient descent learns one-hidden-layer cnn: Don’t be afraid of spurious local minima. ICML, 2018.
|
| 214 |
+
A. Gautier, Q. Nguyen, and M. Hein. Globally optimal training of generalized polynomial neural networks with nonlinear spectral methods. NIPS, 2016.
|
| 215 |
+
X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. ICML, 2010.
|
| 216 |
+
I. J. Goodfellow, O. Vinyals, and A. M. Saxe. Qualitatively characterizing neural network optimization problems. ICLR, 2015.
|
| 217 |
+
B. D. Haeffele and R. Vidal. Global optimality in neural network training. CVPR, 2017.
|
| 218 |
+
M. Hardt and T. Ma. Identity matters in deep learning. ICLR, 2017.
|
| 219 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. CVPR, 2016.
|
| 220 |
+
G. Huang, Z. Liu, L. Maaten, and K. Weinberger. Densely connected convolutional networks. CVPR, 2017.
|
| 221 |
+
M. Janzamin, H. Sedghi, and A. Anandkumar. Beating the perils of non-convexity: Guaranteed training of neural networks using tensor methods. arXiv:1506.08473, 2016.
|
| 222 |
+
K. Kawaguchi. Deep learning without poor local minima. NIPS, 2016.
|
| 223 |
+
A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. NIPS, 2012.
|
| 224 |
+
Y. LeCun, B. Boser, J.S. Denker, D. Henderson, R.E. Howard, W. Hubbard, and L.D. Jackel. Handwritten digit recognition with a back-propagation network. NIPS, 1990.
|
| 225 |
+
H. Li, Z. Xu, G. Taylor, C. Studer, and T. Goldstein. Visualizing the loss landscape of neural nets. In ICLR Workshop, 2018.
|
| 226 |
+
S. Liang, R. Sun, J. D. Lee, and R. Srikant. Adding one neuron can eliminate all bad local minima. arXiv:1805.08671, 2018a.
|
| 227 |
+
S. Liang, R. Sun, Y. Li, and R. Srikant. Understanding the loss surface of neural networks for binary classification. In ICML, 2018b.
|
| 228 |
+
R. Livni, S. Shalev-Shwartz, and O. Shamir. On the computational efficiency of training neural networks. NIPS, 2014.
|
| 229 |
+
H. Lu and K. Kawaguchi. Depth creates no bad local minima. arXiv:1702.08580, 2017.
|
| 230 |
+
B. Mityagin. The zero set of a real analytic function. arXiv:1512.07276, 2015.
|
| 231 |
+
B. Neyshabur, S. Bhojanapalli, D. McAllester, and N. Srebro. Exploring generalization in deep learning. NIPS, 2017.
|
| 232 |
+
Q. Nguyen and M. Hein. The loss surface of deep and wide neural networks. ICML, 2017.
|
| 233 |
+
Q. Nguyen and M. Hein. Optimization landscape and expressivity of deep cnns. ICML, 2018.
|
| 234 |
+
V. D. Nguyen. Complex powers of analytic functions and meromorphic renormalization in qft. arXiv:1503.00995, 2015.
|
| 235 |
+
M. Nouiehed and M. Razaviyayn. Learning deep models: Critical points and local openness. ICLR Workshop, 2018.
|
| 236 |
+
I. Safran and O. Shamir. On the quality of the initial basin in overspecified networks. ICML, 2016.
|
| 237 |
+
I. Safran and O. Shamir. Spurious local minima are common in two-layer relu neural networks. ICML, 2018.
|
| 238 |
+
H. Sedghi and A. Anandkumar. Provable methods for training neural networks with sparse connectivity. ICLR Workshop, 2015.
|
| 239 |
+
S. Shalev-Shwartz, O. Shamir, and S. Shammah. Failures of gradient-based deep learning. ICML, 2017.
|
| 240 |
+
J. Sima. Training a single sigmoidal neuron is hard. Neural Computation, 14:2709–2728, 2002.
|
| 241 |
+
K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015.
|
| 242 |
+
M. Soltanolkotabi. Learning relus via gradient descent. NIPS, 2017.
|
| 243 |
+
D. Soudry and E. Hoffer. Exponentially vanishing sub-optimal local minima in multilayer neural networks. ICLR Workshop 2018, 2017.
|
| 244 |
+
D. Soudry, E. Hoffer, M. S. Nacson, and N. Srebro. The implicit bias of gradient descent on separable data. ICLR, 2018.
|
| 245 |
+
Y. Tian. An analytical formula of population gradient for two-layered relu network and its applications in convergence and critical point analysis. ICML, 2017.
|
| 246 |
+
L. Venturi, A. S. Bandeira, and J. Bruna. Spurious valleys in two-layer neural network optimization landscapes. arXiv:1802.06384, 2018.
|
| 247 |
+
G. Wang, G. B. Giannakis, and J. Chen. Learning relu networks on linearly separable data: Algorithm, optimality, and generalization. arXiv:1808.04685, 2018.
|
| 248 |
+
X. Yu and G. Chen. On the local minima free condition of backpropagation learning. IEEE Transaction on Neural Networks, 6:1300–1303, 1995.
|
| 249 |
+
C. Yun, S. Sra, and A. Jadbabaie. Global optimality conditions for deep neural networks. ICLR, 2017.
|
| 250 |
+
S. Zagoruyko and N. Komodakis. Wide residual networks. BMCV, 2016.
|
| 251 |
+
C. Zhang, S. Bengio, M. Hardt, B. Recht, and Oriol Vinyals. Understanding deep learning requires re-thinking generalization. ICLR, 2017.
|
| 252 |
+
H. Zhang, J. Shao, and R. Salakhutdinov. Deep neural networks with multi-branch architectures are less non-convex. arXiv:1806.01845, 2018.
|
| 253 |
+
K. Zhong, Z. Song, P. Jain, P. Bartlett, and I. Dhillon. Recovery guarantees for one-hidden-layer neural networks. ICML, 2017.
|
| 254 |
+
|
| 255 |
+
# A MATHEMATICAL TOOLS
|
| 256 |
+
|
| 257 |
+
In the proof of Lemma 3.2 we make use of the following property of analytic functions.
|
| 258 |
+
|
| 259 |
+
Lemma A.1 (Nguyen, 2015; Mityagin, 2015) If $f : \mathbb { R } ^ { n } \mathbb { R }$ is a real analytic function which is not identically zero then the set $\{ x \in \mathbb { R } ^ { n } \mid f ( x ) = 0 \}$ has Lebesgue measure zero.
|
| 260 |
+
|
| 261 |
+
We recall the following standard result from topology (see e.g. Apostol (1974), Theorem 4.23, p. 82), which is used in the proof of Theorem 3.4.
|
| 262 |
+
|
| 263 |
+
Proposition A.2 Let $f : \mathbb { R } ^ { m } \mathbb { R } ^ { n }$ be a continuous function. If $U \subseteq \mathbb { R } ^ { n }$ is an open set then $f ^ { - 1 } ( U )$ is also open.
|
| 264 |
+
|
| 265 |
+
# B PROOF OF LEMMA 3.2
|
| 266 |
+
|
| 267 |
+
Proof: We assume w.l.o.g. that $\{ p _ { 1 } , \dotsc , p _ { N } \}$ is a subset of the neurons with skip connections to the output layer and satisfy Assumption 3.1. In the following, we will show that there exists a weight configuration $U$ such that the submatrix $\Psi _ { 1 : N , 1 : N }$ has full rank. Using then that the determinant is an analytic function together with Lemma A.1, we will conclude that the set of weight configurations $U$ such that $\Psi$ has not full rank has Lebesgue measure zero.
|
| 268 |
+
|
| 269 |
+
We remind that all the hidden units in the network are indexed from the first hidden layer till the higher layers as $d + 1 , \dotsc , d + H$ . For every hidden neuron $j \in [ d + 1 , d + H ]$ , $u _ { j }$ denotes the associated weight vector
|
| 270 |
+
|
| 271 |
+
$$
|
| 272 |
+
u _ { j } = [ u _ { k j } ] _ { k \in \mathrm { i n } ( j ) } \in \mathbb { R } ^ { | \mathrm { i n } ( j ) | } , \quad \mathrm { w h e r e ~ i n } ( j ) = \mathrm { t h e ~ s e t ~ o f ~ i n c o m i n g ~ u n i t s ~ t o ~ u n i t ~ } j .
|
| 273 |
+
$$
|
| 274 |
+
|
| 275 |
+
Let $n _ { 1 }$ be the number of units of the first hidden layer. For every neuron $j$ from the first hidden layer, let us define the pre-activation output gj,
|
| 276 |
+
|
| 277 |
+
$$
|
| 278 |
+
g _ { j } ( x _ { i } ) = \sum _ { k j } ( x _ { i } ) _ { k } u _ { k } { } j .
|
| 279 |
+
$$
|
| 280 |
+
|
| 281 |
+
Due to Assumptions 3.1 (condition 3), we can always choose the weights $\{ u _ { d + 1 } , \ldots , u _ { d + n _ { 1 } } \}$ so that the output of every neuron in the first layer is distinct for different training samples, that is $g _ { j } ( x _ { i } ) \neq g _ { j } ( x _ { i ^ { \prime } } )$ for every $j \in [ d + 1 , d + n _ { 1 } ]$ and $i \neq i ^ { \prime }$ . For every neuron $j \in [ d + n _ { 1 } + 1 , d + H ]$ in the higher layers we choose the weight vector $u _ { j }$ such that it has exactly one 1 and 0 elsewhere. According to our definition of network in Section 2, the weight vectors of neurons of the same layer need not have the same dimension, but any subgroup of these neurons can still have shared weights as long as the dimensions among them agree. Thus the above choice of $u$ is always possible. In the following, let $c ( j )$ denote the neuron below $j$ such that $u _ { c ( j ) j } = 1$ . This leads to
|
| 282 |
+
|
| 283 |
+
$$
|
| 284 |
+
\sum _ { k j } f _ { k } ( x ) u _ { k j } = f _ { c ( j ) } ( x ) .
|
| 285 |
+
$$
|
| 286 |
+
|
| 287 |
+
Let $\alpha : = ( \alpha _ { d + 1 } , \dots , \alpha _ { d + H } )$ be a tuple of positive scalars. Let $\beta \in \mathbb { R }$ such that $\sigma _ { p _ { j } } ( \beta ) \neq 0$ for every $j \in [ N ]$ . We consider a family of configurations of network parameters of the form $( \alpha _ { j } u _ { j } , b _ { j } ) _ { j = d + 1 } ^ { d + H }$ where the biases are chosen as
|
| 288 |
+
|
| 289 |
+
$$
|
| 290 |
+
\begin{array} { l } { b _ { p _ { j } } = \beta - \alpha _ { p _ { j } } g _ { p _ { j } } ( x _ { j } ) \quad \forall j \in [ N ] , p _ { j } \in [ d + 1 , d + n _ { 1 } ] } \\ { b _ { p _ { j } } = \beta - \alpha _ { p _ { j } } f _ { c ( p _ { j } ) } ( x _ { j } ) \quad \forall j \in [ N ] , p _ { j } \notin [ d + 1 , d + n _ { 1 } ] } \\ { b _ { j } = 0 \quad \forall j \in \{ d + 1 , \ldots , d + H \} \setminus \{ p _ { 1 } , \ldots , p _ { N } \} } \end{array}
|
| 291 |
+
$$
|
| 292 |
+
|
| 293 |
+
Note that the assignment of biases can be done via a forward pass through the network. By the above choice of biases and our definition of neurons in Section 2, we have
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
\begin{array} { r l } & { f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \Big ( \beta + \alpha _ { p _ { j } } \big ( g _ { p _ { j } } ( x _ { i } ) - g _ { p _ { j } } ( x _ { j } ) \big ) \Big ) , \quad \forall j \in [ N ] , p _ { j } \in [ d + 1 , d + n _ { 1 } ] , } \\ & { f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \Big ( \beta + \alpha _ { p _ { j } } \big ( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \big ) \Big ) \quad \forall j \in [ N ] , p _ { j } \notin [ d + 1 , d + n _ { 1 } ] , } \\ & { f _ { j } ( x _ { i } ) = \sigma _ { j } \Big ( \alpha _ { j } f _ { c ( j ) } ( x _ { i } ) \Big ) \quad \forall j \in \{ d + n _ { 1 } + 1 , \ldots , d + H \} \setminus \{ p _ { 1 } , \ldots , p _ { N } \} , } \\ & { f _ { j } ( x _ { i } ) = \sigma _ { j } \Big ( \alpha _ { j } g _ { j } ( x _ { i } ) \Big ) \quad \forall j \in \{ d + 1 , \ldots , d + n _ { 1 } \} \setminus \{ p _ { 1 } , \ldots , p _ { N } \} . } \end{array}
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
One notes that the output of every skip-connection neuron $p _ { j }$ is given by the first equation if $p _ { j }$ lies on the first layer and by the second equation if $p _ { j }$ lies on higher layers. In the following, to reduce notational complexity we make a convention that: $f _ { c ( p _ { j } ) } = g _ { p _ { j } }$ for every $p _ { j }$ lies on the first layer. This allows us to use the second equation for every skip-connection neuron, that is,
|
| 300 |
+
|
| 301 |
+
$$
|
| 302 |
+
f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \left( \beta + \alpha _ { p _ { j } } \left( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \right) \right) \forall j \in [ N ] .
|
| 303 |
+
$$
|
| 304 |
+
|
| 305 |
+
Now, since $\alpha > 0$ and all activation functions are strictly increasing by Assumption 3.1, one can easily show from the above recursive definitions that if $p _ { j }$ is a skip-connection neuron which does not lie on the first hidden layer then one has the relation: $f _ { c ( p _ { j } ) } ( x _ { i } ) < f _ { c ( p _ { j } ) } ( x _ { j } )$ if and only if $g _ { q _ { j } } ( x _ { i } ) < g _ { q _ { j } } ( x _ { j } )$ , where $q _ { j }$ is some neuron in the first hidden layer. This means if one sorts the elements of the set $\left\{ f _ { c ( p _ { j } ) } ( x _ { 1 } ) , \ldots , f _ { c ( p _ { j } ) } ( x _ { N } ) \right\}$ in increasing order then for every positive tuple $\alpha$ , the order is fully determined by the corresponding order of $\left\{ g _ { q _ { j } } ( x _ { 1 } ) , \ldots , g _ { q _ { j } } ( x _ { N } ) \right\}$ for some neuron $q _ { j }$ in the first layer. Note that this order can be different for different neurons $q _ { j }$ in the first layer, and thus can be different for different skip-connection neurons $p _ { j }$ . Let $\pi$ be a permutation such that it holds for every $j = 1 , 2 , \dots , N$ that
|
| 306 |
+
|
| 307 |
+
$$
|
| 308 |
+
\pi ( j ) = \underset { i \in \{ 1 , \ldots , N \} \setminus \{ \pi ( 1 ) , \ldots , \pi ( j - 1 ) \} } { \arg \operatorname* { m a x } } f _ { c ( p _ { j } ) } ( x _ { i } )
|
| 309 |
+
$$
|
| 310 |
+
|
| 311 |
+
It follows from above that $\pi$ is fully determined by the values of $g$ at the first layer. By definition one has $f _ { c ( p _ { j } ) } ( x _ { \pi _ { i } } ) \mathop { < } _ { c ( p _ { j } ) } ( x _ { \pi _ { j } } )$ for every $i > j$ . Since $\pi$ is independent of every positive tuple $\alpha$ and fully determined by the values of $g$ , it can be fixed in the beginning. One can assume w.l.o.g. that $\pi$ is the identity permutation as otherwise one can reorder the training samples according to $\pi$ so that the rank of $\Psi$ does not change. Thus it holds for every $\alpha > 0$ that
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
\delta _ { i j } : = f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) < 0 \quad \forall i , j \in [ N ] , i > j
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
Now, we are ready to show that there exists a positive tuple $\alpha$ for which $\Psi$ has full rank. We consider two cases of the activation functions of skip-connection neurons as stated in Assumption 3.1:
|
| 318 |
+
|
| 319 |
+
• In the first case, the activation functions $\sigma _ { p _ { j } } : \mathbb { R } \mathbb { R }$ for every $j \in [ N ]$ are strictly increasing, bounded and $\begin{array} { r } { \operatorname* { l i m } _ { t - \infty } \sigma _ { p _ { j } } ( t ) = \mathbf { \bar { 0 } } } \end{array}$ . In the following, let $l ( j )$ denote the layer index of the hidden unit $j$ . For every hidden unit $j \in \{ d + 1 , \ldots , d + H \}$ we set $\alpha _ { j }$ to be the maximum of certain bounds (explained later in (10)) associated to all skip-connection neurons $p _ { k }$ lying on the same layer, that is,
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\alpha _ { j } = \operatorname* { m a x } \left\{ 1 , \operatorname* { m a x } _ { \substack { k \in [ N ] | l ( p _ { k } ) = l ( j ) } } \operatorname* { m a x } _ { i > k } \frac { \sigma _ { p _ { k } } ^ { - 1 } ( \epsilon ) - \beta } { f _ { c ( p _ { k } ) } ( x _ { i } ) - f _ { c ( p _ { k } ) } ( x _ { k } ) } \right\}
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
where $\epsilon > 0$ is an arbitrarily small constant which will be specified later. There are a few remarks we want to make for Eq. (9) before proceeding with our proof. First, the second term in (9) can be empty if there is no skip-connection unit $p _ { k }$ which lies on the same layer as unit $j$ , in which case $\alpha _ { j }$ is simply set to 1. Second, $\alpha _ { j }$ ’s are well-defined by constructing the values $f _ { c ( p _ { k } ) } ( x _ { r } )$ , $\dot { r } = 1 , \ldots , N$ by a forward pass through the network (note that the network is a directed, acyclic graph; in particular, in the formula of $\alpha _ { j }$ , one has $l ( c ( p _ { k } ) ) < l ( p _ { k } ) = l ( j )$ and thus the computation of $\alpha _ { j }$ is feasible given the values of hidden units lying below the layer of unit $j$ , namely $f _ { c ( p _ { k } ) } .$ ). Third, if $j$ and $j ^ { \prime }$ are two neurons from the same layer, i.e. $l ( j ) = l ( j ^ { \prime } )$ , then it follows from (9) that $\alpha _ { j } = \alpha _ { j \prime }$ , meaning that their corresponding weight vectors are scaled by the same factor, thus any potential weight sharing conditions imposed on these neurons can still be satisfied.
|
| 326 |
+
|
| 327 |
+
The main idea of choosing the above values of $\alpha$ is to obtain
|
| 328 |
+
|
| 329 |
+
$$
|
| 330 |
+
\begin{array} { r } { \Psi _ { i j } = f _ { p _ { j } } ( x _ { i } ) \le \epsilon \quad \forall i , j \in [ N ] , i > j . } \end{array}
|
| 331 |
+
$$
|
| 332 |
+
|
| 333 |
+
To see this, one first observes that the inequality (8) holds for the constructed values of $\alpha$ since they are all positive. From (9) it holds for every skip-connection unit $p _ { j }$ that
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
\alpha _ { p _ { j } } > \operatorname* { m a x } _ { i > j } \frac { \sigma _ { p _ { j } } ^ { - 1 } ( \epsilon ) - \beta } { f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) } \quad \forall j \in [ N ]
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
which combined with (8) leads to
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\begin{array} { r } { \alpha _ { p _ { j } } \big ( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \big ) \le \sigma _ { p _ { j } } ^ { - 1 } ( \epsilon ) - \beta \quad \forall i , j \in [ N ] , i > j . } \end{array}
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
and thus using (6) we obtain (10).
|
| 346 |
+
|
| 347 |
+
Coming back to the main proof of the lemma, since $\sigma _ { p _ { j } } ( j \in [ N ] )$ are bounded there exists a finite positive constant $C$ such that it holds that
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
\vert \Psi _ { i j } \vert \le C \quad \forall i , j \in [ N ]
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
By the Leibniz-formula one has
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
\operatorname* { d e t } ( \Psi _ { 1 : N , 1 : N } ) = \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) + \sum _ { \pi \in S _ { N } \backslash \{ \gamma \} } \mathrm { s i g n } ( \pi ) \prod _ { j = 1 } ^ { N } \Psi _ { \pi ( j ) j }
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
where $S _ { N }$ is the set of all $N !$ permutations of the set $\{ 1 , \ldots , N \}$ and $\gamma$ is the identity permutation. Now, one observes that for every permutation $\pi \neq \gamma$ , there always exists at least one component $j$ where $\pi ( j ) > j$ in which case it follows from (10) and (11) that
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\Bigl | \sum _ { \pi \in S _ { N } \backslash \{ \gamma \} } \mathrm { s i g n } ( \pi ) \prod _ { j = 1 } ^ { N } \Psi _ { \pi ( j ) j } \Bigr | \ \le N ! C ^ { N - 1 } \epsilon
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
By choosing $\begin{array} { r } { \epsilon = \frac { \bigg | \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) \bigg | } { 2 N ! C ^ { N - 1 } } } \end{array}$ , we get that
|
| 366 |
+
|
| 367 |
+
$$
|
| 368 |
+
\operatorname* { d e t } ( \Psi _ { 1 : N , 1 : N } ) \geq \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) - \frac { 1 } { 2 } \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) = \frac { 1 } { 2 } \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) \neq 0
|
| 369 |
+
$$
|
| 370 |
+
|
| 371 |
+
and thus $\Psi$ has full rank.
|
| 372 |
+
|
| 373 |
+
• In the second case we consider the softplus activation function which satisfies our Assumption 3.1 that there exists a backward path from every skip-connection neuron $p _ { j }$ to the first hidden layer s.t. on this path there is no neuron which has skip-connections to the output or shared weights with other skip-connection neurons.
|
| 374 |
+
|
| 375 |
+
We choose all the weights and biases similarly to the first case. The only difference is that for every skip-connection neuron $p _ { j } ( 1 \leq j \leq N )$ , the position of 1 in its weight vector $\boldsymbol { \underline { { u } } _ { p _ { j } } }$ is chosen s.t. the value of neuron $p _ { j }$ is determined by the first neuron on the corresponding backward path as stated in Assumption 3.1, that is,
|
| 376 |
+
|
| 377 |
+
$$
|
| 378 |
+
\sum _ { k p _ { j } } f _ { k } ( x _ { i } ) u _ { k p _ { j } } = f _ { c ( p _ { j } ) } ( x _ { i } ) .
|
| 379 |
+
$$
|
| 380 |
+
|
| 381 |
+
For skip-connection neurons we set all $\{ \alpha _ { p 1 } , \dotsc , \alpha _ { p _ { N } } \}$ to some scalar variable $\alpha$ , and for non-skip connection neurons $j$ we set $\alpha _ { j } = 1$ . From (6) and equations of (5) we have
|
| 382 |
+
|
| 383 |
+
$$
|
| 384 |
+
\begin{array} { r l } & { f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \Big ( \beta + \alpha \big ( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \big ) \Big ) \quad \forall j \in [ N ] , } \\ & { \quad f _ { j } ( x _ { i } ) = \sigma _ { j } \big ( f _ { c ( j ) } ( x _ { i } ) \big ) \quad \forall j \in \{ d + 1 , \ldots , d + H \} \setminus \{ p _ { 1 } , \ldots , p _ { N } \} . } \end{array}
|
| 385 |
+
$$
|
| 386 |
+
|
| 387 |
+
Note that with above construction of $u$ and $\alpha$ , the only case where our weight sharing conditions can be potentially violated is between a skip-connection neuron ( $( \alpha _ { j } = \alpha )$ ) with a neuron on a backward path ${ \bf \Phi } _ { \cdot } ( x _ { j } = 1$ ). However, this is not possible because our assumption in this case states that there is no weight sharing between a skip-connection neuron and a neuron on one of the backward paths.
|
| 388 |
+
|
| 389 |
+
Next, by our assumption the recursive backward path $c ^ { ( k ) } ( p _ { j } )$ does not contain any skipconnection unit and thus will eventually end up at some neuron $q _ { j } \in [ d + 1 , d + n _ { 1 } ]$ in the first hidden layer after some finite number of steps. Thus we can write for every $j \in [ N ]$
|
| 390 |
+
|
| 391 |
+
$$
|
| 392 |
+
f _ { p _ { j } } ( x _ { i } ) = \sigma _ { p _ { j } } \Bigl ( \beta + \alpha \bigl ( f _ { c ( p _ { j } ) } ( x _ { i } ) - f _ { c ( p _ { j } ) } ( x _ { j } ) \bigr ) \Bigr ) ,
|
| 393 |
+
$$
|
| 394 |
+
|
| 395 |
+
where
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
f _ { c ( p _ { j } ) } ( x _ { i } ) = \sigma _ { c ( p _ { j } ) } ( \sigma _ { c ( c ( p _ { j } ) ) } ( \hdots ( g _ { q _ { j } } ( x _ { i } ) ) \hdots ) ) \quad \forall i \in [ N ] .
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
Moreover, we have from (8) that $f _ { c ( p _ { j } ) } ( x _ { i } ) < f _ { c ( p _ { j } ) } ( x _ { j } )$ for every $i > j$ . Note that softplus fulfills for $t < 0$ , $\begin{array} { r } { \sigma _ { \gamma } ( t ) \leq \frac { 1 } { \gamma } e ^ { \gamma t } } \end{array}$ , whereas for $t > 0$ one has $\begin{array} { r } { \sigma _ { \gamma } ( t ) \leq \frac { 1 } { \gamma } + t } \end{array}$ . The latter property implies $\begin{array} { r } { \sigma ^ { ( K ) } ( t ) \le \frac { K } { \gamma } + t } \end{array}$ . Finally, this together implies that there exist positive constants $c _ { 1 } , c _ { 2 } , c _ { 3 } , c _ { 4 }$ such that it hods
|
| 402 |
+
|
| 403 |
+
$$
|
| 404 |
+
| \prod _ { j = 1 } ^ { N } \Psi _ { \pi ( j ) j } | \leq c _ { 1 } e ^ { - \alpha c _ { 2 } } ( c _ { 3 } + \alpha ) ^ { N - 1 } .
|
| 405 |
+
$$
|
| 406 |
+
|
| 407 |
+
This can be made arbitrarily small by increasing $\alpha$ . Thus we get
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\operatorname* { l i m } _ { \alpha \to \infty } \operatorname* { d e t } ( \Psi _ { 1 : N , 1 : N } ) = \prod _ { j = 1 } ^ { N } \sigma _ { p _ { j } } ( \beta ) \neq 0
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
So far, we have shown that there always exist $U$ such that $\Psi$ has full rank. Since every activation function is real analytic by Assumption 3.1, every entry of $\Psi$ is also a real analytic function of the network parameters where $\Psi$ depends on. The set of low rank matrices $\Psi$ can be characterized by a system of equations such that all the $\textstyle { \binom { M } { N } }$ determinants of all $N \times N$ sub-matrices of $\Psi$ are zero. As the determinant is a polynomial in the entries of the matrix and thus an analytic function of the entries and composition of analytic functions are again analytic, we conclude that each determinant is an analytic function of $U$ . As shown above, there exists at least one $U$ such that one of these determinant functions is not identically zero and thus by Lemma A.1, the set of $U$ where this determinant is zero has measure zero. But as all submatrices need to have low rank in order that $\Psi$ has low rank, it follows that the set of $U$ where $\Psi$ has low rank has just measure zero. $\boxed { \begin{array} { r l } \end{array} }$
|
| 414 |
+
|
| 415 |
+
# C EXTENSION OF THEOREM 3.4 TO GENERAL CONVEX LOSSES
|
| 416 |
+
|
| 417 |
+
In this section, we consider a more general training objective, defined as
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
\Phi ( U , V ) = \varphi ( G ( U , V ) )
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
where $G ( U , V ) = \Psi ( U ) V \in \mathbb { R } ^ { N \times m }$ is the output of the network for all training samples at some given parameters $( U , V )$ , and $\varphi : \mathbb { R } ^ { N \times m } \mathbb { R }$ the loss function applied on the network output.
|
| 424 |
+
|
| 425 |
+
Assumption C.1 The loss function $\varphi : \mathbb { R } ^ { N \times m } \mathbb { R }$ is convex and bounded from below.
|
| 426 |
+
|
| 427 |
+
One can easily check that the following loss functions satisfy Assumption C.1 as they are all convex and bounded from below by zero:
|
| 428 |
+
|
| 429 |
+
1. The cross-entropy loss from Equation 2, in particular:
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
\varphi ( G ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } - \log \Big ( \frac { e ^ { G _ { i y _ { i } } } } { \sum _ { k = 1 } ^ { m } e ^ { G _ { i k } } } \Big ) ,
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
where $( x _ { i } , y _ { i } ) _ { i = 1 } ^ { N }$ is the training data with $y _ { i }$ being the ground-truth class of $x _ { i }$
|
| 436 |
+
|
| 437 |
+
2. The standard square loss (for classification/regression tasks)
|
| 438 |
+
|
| 439 |
+
$$
|
| 440 |
+
\varphi ( G ) = \frac { 1 } { 2 } \left. G - Y \right. _ { F } ^ { 2 } ,
|
| 441 |
+
$$
|
| 442 |
+
|
| 443 |
+
where $Y \in \mathbb { R } ^ { N \times m }$ is the ground-truth matrix.
|
| 444 |
+
|
| 445 |
+
3. The multi-class Hinge-loss (for classification tasks)
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\varphi ( G ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \operatorname* { m a x } _ { j \neq y _ { i } } \operatorname* { m a x } ( 0 , 1 - ( G _ { i y _ { i } } - G _ { i j } ) ) ,
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
where $( x _ { i } , y _ { i } ) _ { i = 1 } ^ { N }$ is the training data with $y _ { i }$ being the ground-truth class of $x _ { i }$ .
|
| 452 |
+
|
| 453 |
+
By Assumption C.1, $\varphi$ is bounded from below, thus it attains a finite infimum:
|
| 454 |
+
|
| 455 |
+
$$
|
| 456 |
+
p ^ { * } : = \operatorname* { i n f } _ { G \in \mathbb { R } ^ { N \times m } } \varphi ( G ) < \infty .
|
| 457 |
+
$$
|
| 458 |
+
|
| 459 |
+
Basically, $p ^ { * }$ serves as a lower bound on our training objective $\Phi$ . For the above examples, it holds $p ^ { * } = 0$ . Next, we adapt the definition of “bad local valleys” from Definition 3.3 to the current setting.
|
| 460 |
+
|
| 461 |
+
Definition C.2 The $\alpha$ -sublevel set of $\Phi$ is defined as $L _ { \alpha } = \{ ( U , V ) \mid \Phi ( U , V ) < \alpha \} \ : ,$ . A local valley is defined as a connected component of some sublevel set $L _ { \alpha }$ . A bad local valley is a local valley on which the training objective $\Phi$ cannot be made arbitrarily close to $p ^ { * }$ .
|
| 462 |
+
|
| 463 |
+
The following result extends Theorem 3.4 to general convex losses. The proofs are mostly similar as before, but we present them below for the completeness and convenience of the reader.
|
| 464 |
+
|
| 465 |
+
Theorem C.3 The following holds under Assumption 3.1 and Assumption $C . I$ :
|
| 466 |
+
|
| 467 |
+
1. There exist uncountably many solutions with zero training error.
|
| 468 |
+
|
| 469 |
+
2. The loss landscape of $\Phi$ does not have any bad local valley.
|
| 470 |
+
|
| 471 |
+
3. There exists no suboptimal strict local minimum.
|
| 472 |
+
|
| 473 |
+
4. For cross-entropy loss (2) and square loss (14) there exists no local maximum.
|
| 474 |
+
|
| 475 |
+
# Proof:
|
| 476 |
+
|
| 477 |
+
1. By Lemma 3.2 the set of $U$ such that $\Psi ( U )$ has not full rank $N$ has Lebesgue measure zero. Given $U$ such that $\Psi$ has full rank, the linear system $\Psi ( U ) V = Y$ has for every possible target output matrix $Y \in \mathbb { R } ^ { N \times m }$ at least one solution $V$ . As this is possible for almost all $U$ , there exist uncountably many solutions achieving zero training error.
|
| 478 |
+
|
| 479 |
+
2. Let $C$ be a non-empty, connected component of some sub-level set $L _ { \alpha }$ where $\alpha > p ^ { * }$ . Note that $L _ { \alpha } = \mathcal { O }$ if $\alpha \leq p ^ { * }$ by Definition C.2. Given any $\epsilon \in ( p ^ { * } , \alpha )$ , we will show that $C$ always contains a point $( U , V )$ s.t. $\Phi ( U , V ) \leq \epsilon$ as this would imply that the loss $\Phi$ restricted to $C$ can always attain arbitrarily small value close to $p ^ { * }$ .
|
| 480 |
+
|
| 481 |
+
We note that $L _ { \alpha } = \Phi ^ { - 1 } ( ( - \infty , \alpha ) )$ is an open set according to Proposition A.2. Since $C$ is a non-empty connected component of $L _ { \alpha }$ , $C$ must also be an open set with non-zero Lebesgue measure. By Lemma 3.2 the set of $U$ where $\Psi ( U )$ has not full rank has measure zero and thus $C$ must contain a point $( U , V )$ such that $\Psi ( U )$ has full rank. By Assumption C.1, $\varphi$ attains its infimum at $p ^ { * } < \epsilon$ , and thus by continuity of $\varphi$ , there exists $\dot { G } ^ { * } \in \mathbb { R } ^ { N \times m }$ such that $p ^ { * } \leq \varphi ( G ^ { * } ) \leq \epsilon$ . As $\Psi ( U )$ has full rank, there always exist $V ^ { * }$ such that $\Psi ( U ) V ^ { * } = G ^ { * }$ Now, one notes that the loss $\Phi ( U , V ) = \varphi ( \Psi ( U ) V )$ is convex in $V$ , and that $\Phi ( U , V ) < \alpha$ thus we have for the line segment $V ( \lambda ) = \lambda V + ( 1 - \lambda ) V ^ { * }$ for $\lambda \in [ 0 , 1 ]$ ,
|
| 482 |
+
|
| 483 |
+
$$
|
| 484 |
+
\Phi ( U , V ( \lambda ) ) \le \lambda \Phi ( U , V ) + ( 1 - \lambda ) \Phi ( U , V ^ { * } ) < \lambda \alpha + ( 1 - \lambda ) \epsilon < \alpha .
|
| 485 |
+
$$
|
| 486 |
+
|
| 487 |
+
Thus the whole line segment from $( U , V )$ to $( U , V ^ { * } )$ is contained in $L _ { \alpha }$ . Since $C$ is a connected component of $L _ { \alpha }$ which contains $( U , V )$ , it follows that $( U , V ^ { * } ) \in C$ . Moreover, one has $\Phi ( U , \bar { V } ^ { * } ) = \varphi ( G ^ { * } ) \leq \epsilon .$ , which thus implies that the loss can always be made $\epsilon$ -small inside the set $C$ for every $\epsilon \in ( p ^ { * } , \alpha )$ .
|
| 488 |
+
|
| 489 |
+
3. Let $( U _ { 0 } , V _ { 0 } )$ be a strict suboptimal local minimum, then there exists $r > 0$ such that $\Phi ( U , V ) > \Phi ( U _ { 0 } , V _ { 0 } ) > p ^ { * }$ for all $( U , V ) \in { \cal B } ( ( U _ { 0 } , V _ { 0 } ) , r ) \ : \backslash \ : \{ ( U _ { 0 } , V _ { 0 } ) \}$ where $B ( \cdot , r )$ denotes a closed ball of radius r. Let α = min(U,V )∈∂B (U0,V0),r which exists as $\Phi$ is continuous and the boundary $\partial B \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ of $B \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ is compact. Note that $\Phi ( U _ { 0 } , V _ { 0 } ) < \alpha$ as $( U _ { 0 } , V _ { 0 } )$ is a strict local minimum, and thus $( U _ { 0 } , \dot { V } _ { 0 } ) \in L _ { \alpha }$ . Let $E$ be the connected component of $L _ { \alpha }$ which contains $( U _ { 0 } , V _ { 0 } )$ , that is, $( U _ { 0 } , V _ { 0 } ) \in E \subseteq L _ { \alpha }$ . Since the loss of every point inside $E$ is strictly smaller than $\alpha$ , whereas the loss of every point on the boundary $\mathrm { \widehat { \partial } } D \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ is greater than or equal to $\alpha$ , $E$ must be contained in the interior of the ball, that is $E \subset \dot { B } \big ( ( U _ { 0 } , V _ { 0 } ) , r \big )$ . Moreover, $\Phi ( U , V ) \ge \Phi ( U _ { 0 } , V _ { 0 } ) > p ^ { * }$ for every $( U , V ) \in E$ and thus the values of $\Phi$ restricted to $E$ can not be arbitrarily close to $p ^ { * }$ , which means that $E$ is a bad local valley, which contradicts G.3.2.
|
| 490 |
+
|
| 491 |
+
4. The proof for cross-entropy loss is similar to Theorem 3.4. For square loss, one has
|
| 492 |
+
|
| 493 |
+
$$
|
| 494 |
+
\Phi ( U , V ) = \frac { 1 } { 2 } \left\| \Psi ( U ) V - Y \right\| _ { F } ^ { 2 } = \frac { 1 } { 2 } \left\| \left( \mathbb { I } _ { m } \otimes \Psi ( U ) \right) \nu e c ( V ) - \nu e c ( Y ) \right\| _ { 2 } ^ { 2 }
|
| 495 |
+
$$
|
| 496 |
+
|
| 497 |
+
w.r.t. where $V$ $\otimes$ is denotes Kronecker product, and $\nabla _ { \nu e c ( V ) } ^ { 2 } \Phi = ( \mathbb { I } _ { m } \diamondsuit \Psi ( U ) ) ^ { T } ( \mathbb { I } _ { m } \otimes \Psi ( U ) )$ $\mathbb { I } _ { m }$ an $m \times m$ . identity matrix. The hessian of $\Phi$
|
| 498 |
+
|
| 499 |
+
Suppose by contradiction that $( U , V )$ is a local maximum. Then the Hessian of $\Phi$ is negative semi-definite. As principal submatrices of negative semi-definite matrices are again negative semi-definite, the Hessian of $\Phi$ w.r.t $V$ must be also negative semi-definite. However, $\Phi$ is which is both p.s.d. and n.s.d. is the zero matrix. It follows that convex in $V$ thus its Hessian restricted to $V$ must be positive semi-definite. The only matrix $\nabla _ { \nu e c ( V ) } ^ { 2 } \Phi ( U , V ) \stackrel { \cdot } { = } 0$ and thus $\Psi ( U ) = 0$ . By Assumption 3.1, there exists $j \in [ M ]$ s.t. $\sigma _ { p _ { j } }$ is strictly positive, thus some entries of $\Psi ( U )$ must be strictly positive, and so $\Psi ( U )$ cannot be identically zero, leading to a contradiction. Therefore $\Phi$ has no local maximum.
|
| 500 |
+
|
| 501 |
+
D THE ARCHITECTURE OF CNN13 FROM TABLE 1: SEE TABLE 3
|
| 502 |
+
|
| 503 |
+
<table><tr><td rowspan=1 colspan=1>Layer</td><td rowspan=1 colspan=1>Output size</td><td rowspan=1 colspan=1>#neurons</td></tr><tr><td rowspan=1 colspan=1>Input: 28 × 28</td><td rowspan=1 colspan=1>28×28×1</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>3×3conv-64,stride1</td><td rowspan=1 colspan=1>28×28×64</td><td rowspan=1 colspan=1>50176</td></tr><tr><td rowspan=1 colspan=1>3×3conv-64,stride1</td><td rowspan=1 colspan=1>28×28×64</td><td rowspan=1 colspan=1>50176</td></tr><tr><td rowspan=1 colspan=1>3×3conv-64,stride 2</td><td rowspan=1 colspan=1>14×14×64</td><td rowspan=1 colspan=1>12544</td></tr><tr><td rowspan=1 colspan=1>3 ×3conv -128,stride1</td><td rowspan=1 colspan=1>14×14×128</td><td rowspan=1 colspan=1>25088</td></tr><tr><td rowspan=1 colspan=1>3 ×3conv-128,stride1</td><td rowspan=1 colspan=1>14×14×128</td><td rowspan=1 colspan=1>25088</td></tr><tr><td rowspan=1 colspan=1>3 ×3conv-128,stride2</td><td rowspan=1 colspan=1>7×7×128</td><td rowspan=1 colspan=1>6272</td></tr><tr><td rowspan=1 colspan=1>3 ×3conv -256,stride1</td><td rowspan=1 colspan=1>7×7×256</td><td rowspan=1 colspan=1>12544</td></tr><tr><td rowspan=1 colspan=1>1 × 1conv - 256,stride1</td><td rowspan=1 colspan=1>7×7×256</td><td rowspan=1 colspan=1>12544</td></tr><tr><td rowspan=1 colspan=1>3×3conv-256,stride2</td><td rowspan=1 colspan=1>4×4×256</td><td rowspan=1 colspan=1>4096</td></tr><tr><td rowspan=1 colspan=1>3×3conv-256,stride1</td><td rowspan=1 colspan=1>4×4×256</td><td rowspan=1 colspan=1>4096</td></tr><tr><td rowspan=1 colspan=1>3×3conv-256,stride2</td><td rowspan=1 colspan=1>2×2×256</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>3 × 3conv- 256,stride1</td><td rowspan=1 colspan=1>2×2×256</td><td rowspan=1 colspan=1>1024</td></tr><tr><td rowspan=1 colspan=1>3×3conv-256,stride2</td><td rowspan=1 colspan=1>1×1×256</td><td rowspan=1 colspan=1>256</td></tr><tr><td rowspan=1 colspan=3>Fully connected,10 output units</td></tr></table>
|
| 504 |
+
|
| 505 |
+
Table 3: The architecture of CNN13 for MNIST dataset. There are in total 179, 840 hidden neurons.
|
| 506 |
+
|
| 507 |
+
# E VISUALIZATION OF THE LOSS LANDSCAPE BEFORE AND AFTER ADDING SKIP-CONNECTIONS TO THE OUTPUT LAYER
|
| 508 |
+
|
| 509 |
+
Similar to Li et al. (2018); Goodfellow et al. (2015), we visualize the loss surface restricted to a two dimensional subspace of the parameter space. The subspace is chosen to go through some point $( U _ { 0 } , V _ { 0 } )$ learned by SGD and spanned by two random directions $( U _ { 1 } , V _ { 1 } )$ and $( U _ { 2 } , V _ { 2 } )$ .
|
| 510 |
+
|
| 511 |
+
For the purpose of illustration, we train with SGD a two-hidden-layer fully connected network with 784 and 300 hidden units respectively, followed by a 10-way softmax. The training set consists of 1024 images, which are randomly selected from MNIST dataset. After adding skip-connections to the output, the network fulfills $M = N = 1 0 2 4$ . Figure 3 shows the heat map of the loss surface before and after adding skip-connections. One can see a visible effect that skip-connections have helped to smooth the loss landscape near a small sub-optimal region and allows gradient descent to flow directly from there to the bottom of the landscape with smaller objective value.
|
| 512 |
+
|
| 513 |
+
# F DISCUSSION OF TRAINING ERROR IN TABLE 2
|
| 514 |
+
|
| 515 |
+
Training error for the experiment in Table 2. As shown in Table 2, the training error is zero in all cases, except when the original VGG models are used with sigmoid activation function. The reason, as noticed in our experiments, is because the learning of these sigmoidal networks converges quickly to a constant zero classifier (i.e. the output of the last hidden layer converges to zero), which makes both training and test accuracy converge to $1 0 \%$ and the loss in Equation (2) converges to $- \log ( 1 / 1 0 )$ . While we are not aware of a theoretical explanation for this behavior, it is not restricted to the specific architecture of VGGs but hold in general for plain sigmoidal networks with depth ${ > } 5$ as pointed out earlier by Glorot & Bengio (2010). As shown in Table 2, Densenets however do not suffer from this phenomenon, probably because they already have skip-connections between all the hidden layers of a dense block, thus gradients can easily flow from the output to every layer of a dense block, which makes the training of this network with sigmoid activation function become feasible.
|
| 516 |
+
|
| 517 |
+

|
| 518 |
+
Figure 3: Loss surface of a two-hidden-layer network on a small MNIST dataset.
|
| 519 |
+
|
| 520 |
+

|
| 521 |
+
|
| 522 |
+
Discussion of convergence speed. For sigmoid activation, we noticed that skip-models when trained with the random sampling approach (skip-rand) often converge much slower than when trained with full SGD (skip-SGD). In our experiments, to be sure that one gets absolute zero training error, we set the number of training epochs to 5000 for the former case and 1000 for the later. Perhaps a better learning rate schedule might help to reduce this number, or maybe not, but this is beyond the scope of this paper. For softplus activation, we noticed a much faster convergence – all models often converge within 300 epochs to absolute zero training error.
|
| 523 |
+
|
| 524 |
+
Skip-connections are also helpful for training very deep networks with softplus activation. Previously we have shown that skip-connections are helpful for training deep sigmoidal networks. In this part, we show a similar result for softplus activation function. For the purpose of illustration, we create a small dataset with $N = 1 0 0 0$ training images randomly chosen from CIFAR10 dataset. We use a very deep network with 150 fully connected layers, each of width 10, and softplus activation. A skip-model is created by adding skip-connections from $N$ randomly chosen neurons to the output units. We train both networks with SGD. The best learning rate for each model is empirically chosen from $\left\{ 1 0 ^ { - 2 } , 1 0 ^ { - 3 } , 1 0 ^ { - 4 } , 1 0 ^ { - 5 } \right\}$ . We report the training loss and training error of both models in Figure 5. One can see that the skip-network easily converge to zero training error within 200 epochs, whereas the original network has stronger fluctuations and fails to converge after 1000 epochs. This is directly related to our result of Theorem 3.4 in the sense that skip-connections can help to smooth the loss landscape and enable effective training of very deep networks.
|
| 525 |
+
|
| 526 |
+

|
| 527 |
+
Figure 5: Training progress of a 150-layer neural network with and without skip-connections.
|
| 528 |
+
|
| 529 |
+
# G ADDITIONAL EXPERIMENTS: MAX-POOLING OF VGGS ARE REPLACED BY 2X2 CONVOLUTIONAL LAYERS OF STRIDE 2
|
| 530 |
+
|
| 531 |
+
The original VGG Simonyan & Zisserman (2015) and Densenet Huang et al. (2017) contain pooling layers in their architecture. In particular, original VGGs have max-pooling layers, and original Densenets have averaging pooling layers. In the following, we will clarify how/if these pooling layers have been used in our experiments in Table 2, and whether and how our theretical results are appicable to this case, as well as presenting additional experimental results in this regard.
|
| 532 |
+
|
| 533 |
+
First of all, we note that Densenets Huang et al. (2017) contain pooling layers only after the first dense block. Meanwhile, as noted in Table 2, our experiments with Densenets only use skip-connections from hidden units of the first dense block, and thus Lemma 3.2 and Theorem 3.4 are applicable. The reason is that one can restrict the full-rank analysis of matrix $\Psi$ in Lemma 3.2 to the hidden units of the first dense block, so that it follows that the set of parameters of the first dense block where $\Psi$ has not full rank has Lebesgue measure zero, from which our results of Theorem 3.4 follow immediately.
|
| 534 |
+
|
| 535 |
+
However for VGGs in Table 2, we kept their max-pooling layers similar to the original architecture as we wanted to have a fair comparison between our skip-models and the original models. In this setting, our results are not directly applicable because we lose the analytic property of the entries of $\Psi$ w.r.t. its dependent parameters, which is crucial to prove Lemma 3.2. Therefore in this section, we would like to present additional results to Table 2 in which we replace all max-pooling layers of all VGG models from Table 2 with $2 \mathbf { x } 2$ convolutional layers of stride 2. In this case, the whole network consists of only convolutional and fully connected layers, hence our theoretical results are applicable.
|
| 536 |
+
|
| 537 |
+
The experimental results are presented in Table 4. Overall, our main observations are similar as before. The performance gap between original models and their corresponding skip-variants are approximately the same as in Table 2 or slightly more pronounced in some cases. A one-to-one comparison with Table 2 also shows that the performance of skip-models themselves have decreased by $4 - 7 \%$ after the replacement of max-pooling layers with $2 \mathbf { x } 2$ convolutional layers. This is perhaps not so surprising because the problem gets potentially harder when the network has more layers to be learned, especially in case of sigmoid activation where the decrease is sharper. Similar to Table 2, adding skip-connections to the output units still prove to be very helpful – it improves the result for softplus while making the training of deep networks with sigmoid activation become possible at all. Finally, the training of full network with SGD still yields significantly better solutions in terms of generalization error than the random feature approach. This confirms once again the implicit bias of SGD towards high quality solutions among infinitely many solutions with zero training error.
|
| 538 |
+
|
| 539 |
+
Table 4: Test accuracy $( \% )$ of VGG networks from Table 2 where max-pooling layers are replaced by $2 \mathbf { x } 2$ convolutional layers of stride 2 (denoted as mp2conv). Other notations are similar to Table 2.
|
| 540 |
+
|
| 541 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Sigmoid activation function</td><td rowspan=1 colspan=2>Softplus activation function</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>C-10</td><td rowspan=1 colspan=1>C-10+</td><td rowspan=1 colspan=1>C-10</td><td rowspan=1 colspan=1>C-10+</td></tr><tr><td rowspan=1 colspan=1>VGG11-mp2convVGG11-mp2conv-skip (rand)VGG11-mp2conv-skip (SGD)</td><td rowspan=1 colspan=1>1053.65 ± 0.6664.45 ± 0.31</td><td rowspan=1 colspan=1>10-80.15 ± 0.59</td><td rowspan=1 colspan=1>74.5355.51 ± 0.4376.18 ± 0.58</td><td rowspan=1 colspan=1>88.80-89.93 ± 0.19</td></tr><tr><td rowspan=1 colspan=1>VGG13-mp2convVGG13-mp2conv-skip (rand)</td><td rowspan=1 colspan=1>1053.45 ± 0.23</td><td rowspan=2 colspan=1>10-82.40 ± 0.23</td><td rowspan=2 colspan=1>74.0453.33 ± 0.6775.58 ± 0.77</td><td rowspan=2 colspan=1>90.37-91.04 ± 0.20</td></tr><tr><td rowspan=1 colspan=1>VGG13-mp2conv-skip (SGD)</td><td rowspan=1 colspan=1>63.53 ± 0.37</td></tr><tr><td rowspan=1 colspan=1>VGG16-mp2convVGG16-mp2conv-skip (rand)VGG16-mp2conv-skip (SGD)</td><td rowspan=1 colspan=1>1053.83 ± 0.3065.77 ± 0.67</td><td rowspan=1 colspan=1>10-83.06 ± 0.34</td><td rowspan=1 colspan=1>74.0055.34 ± 0.6476.52 ± 0.78</td><td rowspan=1 colspan=1>90.38-91.00 ± 0.23</td></tr></table>
|
| 542 |
+
|
| 543 |
+
# H DATA-AUGMENTATION RESULTS FOR TABLE 2
|
| 544 |
+
|
| 545 |
+
The following Table 5 shows additional results to Table 2 where data-augmentation is used now. For data-augmentation, we follow the procedure as described in (Zagoruyko & Komodakis, 2016) by considering random crops of size $3 2 \times 3 2$ after 4 pixel padding on each side of the training images and random horizontal flips with probability 0.5. For the convenience of the reader, we also repeat the results of Table 2 in the new table 5.
|
| 546 |
+
|
| 547 |
+
Table 5: Test accuracy $( \% )$ of several CNN architectures with/without skip-connections on CIFAR10 $^ +$ denotes data augmentation). For each model A, A-skip denotes the corresponding skip-model in which a subset of $N$ hidden neurons “randomly selected” from the hidden layers are connected to the output units. For Densenet121, these neurons are randomly chosen from the first dense block. The names in open brackets (rand/SGD) specify how the networks are trained: rand ( $U$ is randomized and fixed while $V$ is learned with SGD), SGD (both $U$ and $V$ are optimized with SGD).
|
| 548 |
+
|
| 549 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Sigmoid activation function</td><td rowspan=1 colspan=2>Softplus activation function</td></tr><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>C-10</td><td rowspan=1 colspan=1>C-10+</td><td rowspan=1 colspan=1>C-10</td><td rowspan=1 colspan=1>C-10+</td></tr><tr><td rowspan=2 colspan=1>VGG11VGG11-skip (rand)VGG11-skip (SGD)</td><td rowspan=2 colspan=1>1062.81 ± 0.3972.51 ± 0.35</td><td rowspan=2 colspan=1>10-85.55 ± 0.09</td><td rowspan=1 colspan=1>78.92</td><td rowspan=2 colspan=1>88.62-89.32 ± 0.16</td></tr><tr><td rowspan=1 colspan=1>64.49 ± 0.3880.57 ± 0.40</td></tr><tr><td rowspan=1 colspan=1>VGG13VGG13-skip (rand)VGG13-skip (SGD)</td><td rowspan=1 colspan=1>1061.50 ± 0.3470.24 ± 0.39</td><td rowspan=1 colspan=1>10-86.48 ± 0.32</td><td rowspan=1 colspan=1>80.8461.42 ± 0.4081.94 ± 0.40</td><td rowspan=1 colspan=1>90.58-91.06 ± 0.12</td></tr><tr><td rowspan=1 colspan=1>VGG16VGG16-skip (rand)VGG16-skip (SGD)</td><td rowspan=1 colspan=1>1061.57 ± 0.4170.61 ± 0.36</td><td rowspan=1 colspan=1>10-86.42 ± 0.31</td><td rowspan=1 colspan=1>81.3361.46 ± 0.3481.91 ± 0.24</td><td rowspan=1 colspan=1>90.68-91.00 ± 0.22</td></tr><tr><td rowspan=1 colspan=1>Densenet121Densenet121-skip (rand)Densenet121-skip (SGD)</td><td rowspan=1 colspan=1>86.4152.07 ± 0.4881.47 ± 1.03</td><td rowspan=1 colspan=1>90.93-90.32 ± 0.50</td><td rowspan=1 colspan=1>89.3155.39 ± 0.4886.76 ± 0.49</td><td rowspan=1 colspan=1>94.20-93.23 ± 0.42</td></tr></table>
|
parse/train/HJgXsjA5tQ/HJgXsjA5tQ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgXsjA5tQ/HJgXsjA5tQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgXsjA5tQ/HJgXsjA5tQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJguLo0cKQ/HJguLo0cKQ.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STRENGTH IN NUMBERS: TRADING-OFF ROBUSTNESS AND COMPUTATION VIA ADVERSARIALLY-TRAINED ENSEMBLES
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
While deep learning has led to remarkable results on a number of challenging problems, researchers have discovered a vulnerability of neural networks in adversarial settings, where small but carefully chosen perturbations to the input can make the models produce extremely inaccurate outputs. This makes these models particularly unsuitable for safety-critical application domains (e.g. self-driving cars) where robustness is extremely important. Recent work has shown that augmenting training with adversarially generated data provides some degree of robustness against test-time attacks. In this paper we investigate how this approach scales as we increase the computational budget given to the defender. We show that increasing the number of parameters in adversarially-trained models increases their robustness, and in particular that ensembling smaller models while adversarially training the entire ensemble as a single model is a more efficient way of spending said budget than simply using a larger single model. Crucially, we show that it is the adversarial training of the ensemble, rather than the ensembling of adversarially trained models, which provides robustness.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep neural networks have demonstrated state-of-the-art performance in a wide range of application domains Krizhevsky et al. (2012). However, researchers have discovered that deep networks are in some sense ‘brittle’, in that small changes to their inputs can result in wildly different outputs (Huang et al., 2017; Jia & Liang, 2017; Szegedy et al., 2013). For instance, practically imperceptible (to human) modifications to images can result in misclassification of the image with high confidence. Not only are networks susceptible to these ‘attacks’, but these attacks are also relatively easy to compute using standard optimization techniques (Carlini & Wagner, 2017b; Goodfellow et al., 2014). These changes are often referred to as adversarial perturbations, in the sense that an adversary could craft a very small change to the input in order to create an undesirable outcome. This phenomenon is not unique to image classification, nor to particular network architectures, nor to particular training algorithms (Papernot et al., 2016; 2017).
|
| 12 |
+
|
| 13 |
+
Adversarial attacks can be broken into different categories depending on how much knowledge of the underlying model the adversary has access to. In ‘white-box’ attacks the adversary has full access to the model, and can perform both forward and backwards passes (though not change the weights or logic of the network) (Carlini & Wagner, 2017a; Goodfellow et al., 2014). In the ‘black-box’ setting the adversary has no access to the model, but perhaps knows the dataset that the model was trained on (Papernot et al., 2016; 2017). Despite several recent papers demonstrating new defences against adversarial attacks (Akhtar & Mian, 2018; Guo et al., 2017; Liao et al., 2017; Song et al., 2017; Tramer et al., 2018; Warde-Farley & Goodfellow, 2016; Xie et al., 2017; Yuan et al., 2017), recent \` papers have demonstrated that most of these new defences are still susceptible to attacks and largely just obfuscate the gradients that the attacker can follow, and that non-gradient based attacks are still effective Uesato et al. (2018); Athalye et al. (2018).
|
| 14 |
+
|
| 15 |
+
Exploring Tradeoff of Computation and Robustness In many safety-critical application domains (e.g. self-driving cars), robustness is extremely important even if it comes at the cost of increased computation. This motivated the central question considered by this paper: Is it possible to increase adversarial robustness of a classifier at the cost of increased computation?
|
| 16 |
+
|
| 17 |
+
There are a number of possibilities to employ extra computation available at runtime. We can use a much larger model that requires more time to run, execute the original model multiple times and aggregate the predictions, or instead of using a single model, make predictions from a portfolio or ensemble of models. While researchers have proposed the use of portfolios and ensembles as a mechanism to improve adversarial robustness Abbasi & Gagne (2017); Thilo Strauss (2017), our ´ experimental results indicate that stronger adversaries are able to attack the ensembles successfully.
|
| 18 |
+
|
| 19 |
+
Contributions In this paper, we study and analyze the trade-off of adversarial robustness and computation (memory and runtime). We propose the use of adversarial training of ensemble of models and through an exhaustive ablative analysis make the following empirical findings:
|
| 20 |
+
|
| 21 |
+
• increased computation and/or model size can be used to increase robustness,
|
| 22 |
+
• ensembles on their own are not very robust, but can be made robust through adversarial training where the ensemble is treated as a single model,
|
| 23 |
+
• adversarially trained ensembles are more robust than adversarially trained individual models requiring the same amount of parameters/computation
|
| 24 |
+
|
| 25 |
+
Related Work Recently, Tramer et al. (2018) investigated the use of ensembles for adversarial \` robustness. However, their goal and approach was quite different from the technique we are investigating. In Tramer et al. (2018), the authors generated adversarial perturbations using an ensemble of \` pre-trained models in order to transfer the example to another model during training. This procedure decouples adversarial example generation from the current model, and consequently the model being trained cannot simply ‘overfit’ to the procedure for generating adversarial examples, which they generally took to be single-step attack methods. The authors demonstrated strong robustness of the resulting trained model to black-box attacks. By contrast, in this paper we investigate using an ensemble of models as our predictive model, and we train the models using multi-step adversarial training. We show increased robustness to both black-box and white-box adversarial attacks using this strategy.
|
| 26 |
+
|
| 27 |
+
# 2 PRELIMINARIES
|
| 28 |
+
|
| 29 |
+
Here we lay out the basics of attacking a neural network by the generation of adversarial examples. Denote an input to the network as $\boldsymbol { x } \in \mathbb { R } ^ { d }$ with correct label $\hat { y } \in \mathcal { V } \subset \mathbb { N }$ , and let $m _ { \theta } : \mathbb { R } ^ { d } \mathbb { R } ^ { | \bar { y } | }$ be the mapping performed by the neural network which is parameterized by $\theta \in \mathbb { R } ^ { p }$ . Let $L : \mathcal { V } \times \mathbb { R } ^ { | \mathcal { V } | } \to$ $\mathbb { R }$ denote the loss we are trying to minimize (e.g., the cross-entropy). When training a neural network we seek to solve
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\begin{array} { r l } { \mathrm { m i n i m i z e } } & { { } \mathbb { E } _ { ( x , y ) \sim \mathcal { D } } L ( \hat { y } , m _ { \theta } ( x ) ) } \end{array}
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
over variable $\theta$ , where $\mathcal { D }$ is the data distribution. Given any fixed $\theta$ we can generate (untargeted) adversarial inputs by perturbing the input $x$ so as to maximize the loss. We restrict ourselves to small perturbations around a nominal input, and we denote by $\boldsymbol { B }$ this set of allowable inputs. For example, if we restrict ourselves to small perturbations in $\ell _ { \infty }$ norm around a nominal input $x ^ { \mathrm { n o m } }$ then we could set $\mathcal { B } = \left\{ x \vert \| x - x ^ { \mathrm { n o m } } \| _ { \infty } \leq \epsilon \right\}$ where $\epsilon > 0$ is the tolerance. A common approach for generating adversarial examples is projected gradient descent Carlini $\&$ Wagner (2016), i.e., to iteratively update the input $x$ by
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\tilde { { \boldsymbol { x } } } ^ { k + 1 } = \Pi _ { { \boldsymbol { \mathcal { B } } } } ( \tilde { { \boldsymbol { x } } } ^ { k } + \eta \nabla _ { x } L ( y , m _ { \theta } ( \tilde { { \boldsymbol { x } } } ^ { k } ) ) ) ,
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
where typically $x ^ { 0 } = x + \epsilon$ for some noise $\epsilon$ , $\eta > 0$ is a step-size parameter and $\Pi _ { B }$ denotes the Euclidean projection on $\boldsymbol { B }$ . We add noise to the initial point so that the network can’t memorize the training dataset and mask or obfuscate the gradients at that point Uesato et al. (2018); Athalye et al. (2018), in other words the added noise encourages generalization of adversarial robustness to the test dataset. If instead of using the gradient we just use the sign of the gradient then this is the fast-gradient-sign method Goodfellow et al. (2014). Empirically speaking, for most networks just a few steps of either of these procedures is sufficient to generate an $\tilde { x }$ that is close to $x ^ { \mathrm { n o m } }$ but has a different label with high confidence.
|
| 42 |
+
|
| 43 |
+
In this paper we are primarily concerned with the performance of ensembles of models when trained with adversarial training Madry et al. (2017). In adversarial training we train a network to minimize a weighted sum of two losses (where the relative weighting is a hyper-parameter). The first loss is the standard loss of the problem we are trying to solve on the normal training data, e.g., the cross-entropy for a classification task. The second loss is the same function as the first loss, except evaluated on adversarially generated data, where typically the adversarial data is generated by attacking the network at that time-step. In other words we replace the problem in eq. (1) with
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\mathbb { E } _ { ( x , y ) \sim \mathcal { D } } ( L ( \hat { y } , m _ { \theta } ( x ) ) + \rho L ( \hat { y } , m _ { \theta } ( \tilde { x } ) ) )
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $\rho \geq 0$ is the weighting parameter and $\tilde { x }$ is an adversarial example generated from $x$ at model parameters $\theta$ using, for example, the update in eq. (2). This problem is usually approximated by sampling and minimizing the empirical expectation.
|
| 50 |
+
|
| 51 |
+
# 3 ADVERSARIALLY-TRAINED ENSEMBLES
|
| 52 |
+
|
| 53 |
+
In this section we lay out the basic strategy of using ensembles of models to increase robustness to adversarial attacks. The notion of ensemble used here simply involves taking $k$ separatelyparameterized models and averaging their predictions. If the output of network $i$ as a function of input $x$ and with network parameters $\theta _ { i }$ is given by $p ( \cdot | x , \theta _ { i } ) = m _ { \theta _ { i } } ( \bar { x } )$ , then the output of the ensemble is
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
p ( \boldsymbol { y } | \boldsymbol { x } ) = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } p ( \boldsymbol { y } | \boldsymbol { x } , \boldsymbol { \theta } _ { i } ) .
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Alternatively, we could consider using a ‘gating network’ to generate data-dependent weights for each model rather than a simple average, though we found the performance to be similar.
|
| 60 |
+
|
| 61 |
+
Using ensembles to improve the performance of statistical models is a very old idea; see, e.g. Opitz & Maclin (1999) for a survey. The basic intuition is that several weak models can be combined in such a way that the ensemble performs better than any individual, and is sometimes explained as being caused by the errors of the models ‘cancelling’ with one another.
|
| 62 |
+
|
| 63 |
+
In order to ensure that the models are actually producing different outputs the diversity of the models must be maintained. This can be done in several ways, such as bootstrapping the data, whereby each model gets a slightly different copy of the data, or using totally different model types or architectures. In the case that the model training procedure is convex, and if all models architectures are the same and are getting the same data, then the models in the ensemble would be expected to converge on the same parameters. In the case of neural networks however, the model training procedure is not convex and so our strategy for maintaining diversity is very simple—initialize each model differently. Due to the nature of training neural networks it is likely that differently initialized networks will converge (assuming they do, in fact, converge) to different points of the parameter space. The insight that only different initialization is required is not new, previous papers have observed that different initialization is sufficient for uncertainty estimation Lakshminarayanan et al. (2016); Osband et al. (2016).
|
| 64 |
+
|
| 65 |
+
Different initialization for networks has an appealing interpretation. If we take a Bayesian approach to the classification problem, then we have a prior over possible model parameters, $p ( \theta )$ , a likelihood of the data, $p ( D | \theta ) ^ { \overline { { } } }$ , and a probability of a label $y$ given an input and a model, $\overset { \cdot } { p ( \boldsymbol { y } | \boldsymbol { x } , \boldsymbol { \theta } ) }$ . The ‘Bayes-optimal’ classification of a new data point $x$ is given by
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
y ^ { \star } = \mathrm { a r g m a x } _ { y } \int _ { \theta } p ( y | x , \theta ) p ( D | \theta ) p ( \theta ) .
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
This classifier is optimal in the sense that no other classifier can outperform it on average, given the same model class and knowledge of the prior and likelihood; however, the formulation is intractable for all but small problems. We can consider approximating it by the following approach, sample initial parameters from the prior $p ( \theta )$ and run an iterative procedure to (approximately) maximize the likelihood $p ( D | \theta )$ . Very loosely speaking, we can consider this procedure as approximately sampling from the posterior over models $p ( \theta | D ) \propto p ( D | \theta ) p ( \theta )$ . Consequently, we output the classification
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
y ^ { \star } = \operatorname { a r g m a x } _ { y } \sum _ { i = 1 } ^ { k } p ( y | x , \theta _ { i } ) ,
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Algorithm 1 Adversarial ensemble training using PGD under $\ell _ { \infty }$ norm constraint input: $k$ neural networks $m _ { \theta _ { i } }$ , $i = 1 , \ldots , k$ ; attack steps $N$ ; step sizes $\eta , \hat { \eta }$ ; initial variance $\sigma$ adversarial loss weighting $\rho$ ; perturbation width $\delta$
|
| 78 |
+
|
| 79 |
+
initialize: neural network parameters $\theta _ { i } ^ { 0 }$ randomly, $i = 1 , \ldots , k$
|
| 80 |
+
for time-step $t = 0 , 1 , \ldots , \mathbf { i }$ o sample input minibatch $( x , \hat { y } ) \sim \mathcal { D }$ initialize $\bar { \tilde { x } } { } ^ { 0 } = x + \epsilon$ where $\epsilon \sim \mathcal { N } ( 0 , \sigma ^ { 2 } I )$ define $\boldsymbol { \mathcal { B } } = \{ x ^ { \prime } \ | \ \| x - x ^ { \prime } \| _ { \infty } \leq \delta \}$ for $k = 0 , \ldots , N - 1$ do
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\tilde { { \boldsymbol { x } } } ^ { k + 1 } = \Pi _ { \mathcal { B } } \big ( \tilde { { \boldsymbol { x } } } ^ { k } + \hat { \eta } \nabla _ { x } L \big ( \hat { y } , \frac { 1 } { k } \sum _ { i = 1 } ^ { k } m _ { \theta _ { i } } ( \tilde { { \boldsymbol { x } } } ^ { k } ) \big ) \big )
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
# end for
|
| 87 |
+
|
| 88 |
+
update parameters for each $i = 1 , \ldots , k$ :
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\theta _ { i } ^ { t + 1 } = \theta _ { i } ^ { t } - \eta \nabla _ { \theta _ { i } } \left( L ( \hat { y } , \frac { 1 } { k } \sum _ { j = 1 } ^ { k } m _ { \theta _ { j } ^ { t } } ( x ) ) + \rho L ( \hat { y } , \frac { 1 } { k } \sum _ { j = 1 } ^ { k } m _ { \theta _ { j } ^ { t } } ( \tilde { x } ^ { N } ) ) \right)
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
# end for
|
| 95 |
+
|
| 96 |
+
i.e., the best guess of the ensemble. The role of initialization therefore is that of sampling from our prior over possible model parameters.
|
| 97 |
+
|
| 98 |
+
Adversarial training of Ensembles Up to this point we have discussed the use of ensembles for improving classification performance and approximating the Bayes optimal classifier. Typically speaking neural networks appear to not benefit much from ensembling in terms of nominal performance. Here, however, we make the claim that adversarially trained ensembles of networks provide a level of robustness to adversarial attacks. When using ensembles the loss function for adversarial training in (3) is replaced by the mean of the loss over the $k$ models, i.e., now we want to solve
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\begin{array} { r l } { \mathrm { m i n i m i z e } } & { \mathbb { E } _ { ( x , y ) \sim \mathcal { D } } \left( L \big ( \hat { y } , \frac { 1 } { k } \sum _ { i = 1 } ^ { k } m _ { \theta _ { i } } ( x ) \big ) + \rho L \big ( \hat { y } , \frac { 1 } { k } \sum _ { i = 1 } ^ { k } m _ { \theta _ { i } } ( \tilde { x } ) \big ) \right) } \end{array}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
over variables $\theta _ { i }$ , $i = 1 , \ldots , k .$ , and where $\tilde { x }$ is an adversarial example generating by attacking the entire ensemble. The exact procedure is outlined in Algorithm 1. We demonstrate empirically in the numerical results section that this procedure increases robustness to adversarial inputs. Following these results, we offer an analysis and hypothesis why ensembles outperform single models, even when controlling for number of parameters.
|
| 105 |
+
|
| 106 |
+
# 4 EXPERIMENTAL SETUP
|
| 107 |
+
|
| 108 |
+
# 4.1 MODELS COMPARED
|
| 109 |
+
|
| 110 |
+
Non-Adversarial Benchmarks The Baseline model for our investigation is a Wide ResNet (Zagoruyko & Komodakis, 2016) consisting of a $3 \times 3$ convolution layer, followed by three layers containing 28 ResNet blocks of width factor 10, followed by batch normalization Ioffe & Szegedy (2015) layer, followed by a ReLU (Nair & Hinton, 2010), and by a final linear layer projecting into the logits of the CIFAR-10 classes. All models we experimented with here are variations on this architecture, and where hyperparameters are not explicitly referenced, they are assumed to be the same as this base model. Ensemble2 contains two copies of the baseline architecture. This has twice the number of parameters of the baseline. Together with the base model, these constitute our non-adversarially trained benchmarks.
|
| 111 |
+
|
| 112 |
+
Adversarial Models When adding adversarial training to the baseline architecture, we obtain our SingleAdv benchmark, which has the same number of parameters as the baseline. When trained with adversarial training, whereby the whole ensemble is attacked by Iterated Fast Gradient Sign Method (IFGSM) (Kurakin et al., 2016) at each training step to obtain adversarial inputs, we refer to the ensemble as Ensemble2Adv. This ensemble has as many parameters as its non-adversarially-trained counterparts.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 1: Schematic depiction of classes of models compared in this paper. Here, $n$ indicates the number of parameters in the base model, $\hat { y }$ indicates the ground trouth label, $x$ is a clean input from the dataset, $\tilde { x }$ is that input after a number of steps of the chosen adversarial training attack (7 steps of IFGSM in our experiments), $y$ is the output distribution according to the network based on clean input $x$ , and $\tilde { y }$ is the output based on adversarial input $\tilde { x }$ . Adversarially trained networks are shown to have two inputs (and two losses) for compactness, but in practice two parameter-sharing copies of the network will be instantiated, with one taking clean input, the other taking adversarial input, and their losses will be computed separately and averaged before optimisation.
|
| 116 |
+
|
| 117 |
+
Comparisons to Ensemble2Adv In order to compare Ensemble2Adv to the SingleAdv benchmark while controlling for number of parameters, we introduce a variant DoubleAdv of this benchmark with ResNet blocks of width 15, which yields roughly the same number of parameters as Ensemble2Adv. Finally, we train two separately parameterised instances of SingleAdv and ensemble them at test time for the purpose of evaluating the hypothesis that it is adversarial training of ensembles that provides and advantage, and call this test-time model SeparateEnsemble2Adv.
|
| 118 |
+
|
| 119 |
+
The model variations described here are illustrated in Figure 1, which can serve as a basis for repeating these experiments with a different base model architecture.
|
| 120 |
+
|
| 121 |
+
# 4.2 TRAINING PROCEDURE
|
| 122 |
+
|
| 123 |
+
We train and evaluate our models on CIFAR-10 (Krizhevsky & Hinton, 2009). We use similar hyperparameters to Zagoruyko & Komodakis (2016), with additional iterations to account for the fact that minimizing the adversarial objective requires more training steps. We train all models for 500,000 iterations using a momentum optimiser with minibatches of size 128, with an initial learning rate of 0.1, a momentum of 0.9, and a learning rate factor (decay) of 0.2 after $\{ \mathrm { 3 0 k , 6 0 k , 9 0 k } \}$ steps. When doing adversarial training, we train both on “clean” versions of the minibatch images, and on adversarial examples produced by 7 steps of IFGSM, following Madry et al. (2017). The cross-entropy losses with regard to the ground truth labels for both the adversarial and clean images are averaged to obtain gradients for the model (i.e. $\rho = 1$ ).
|
| 124 |
+
|
| 125 |
+
# 4.3 EVALUATION PROCEDURE
|
| 126 |
+
|
| 127 |
+
During training, we run an evaluation job which evaluates the accuracy of the model on the entire CIFAR-10 test set. We consider two white-box adversaries, both with a maximum $L _ { \infty }$ perturbation of 8 (out of 255): IFGSM which performs the iterated fast gradient sign method update, which is equivalent to steepest descent with respect to the $L _ { \mathrm { i n f } }$ norm Madry et al. (2017); Kurakin et al. (2016) and PGD which performs projected gradient descent using the Adam Kingma & Ba (2014) update rule. During training, we evaluate using IFGSM7, the training adversary which performs 7 iterations of the IFGSM update, also used in Madry et al. (2017), as well as PGD5 and PGD20, the 5 and 20-step versions of our PGD attack. Additionally, for the best model, we run these attacks 500 steps in order to estimate the strongest possible attacks.
|
| 128 |
+
|
| 129 |
+
We further include a black-box adversary in our evaluation procedure. We use a dataset of precomputed adversarial examples, following the procedure in Liu et al. (2016) against an ensemble of a Wide ResNet Zagoruyko & Komodakis (2016) and VGG-like Simonyan & Zisserman (2014) architectures. The two models are trained with standard training procedures and achieve $9 6 . 0 \%$ and $9 4 . 5 \%$ accuracy respectively on the CIFAR-10 clean test set, and are ensembled by an arithmetic mean of their logits. The adversary is the PGD20 adversary which fools all members of the ensemble on $100 \%$ of the evaluation set. We note that the exact values for robustness of networks to black box attacks can be highly contingent on the similarity between the original and attacked networks Uesato et al. (2018), rather than the true adversarial robustness of the attacked network. However, we include black box accuracies for best practice, as a check against models which achieve illusory robustness through obscured gradients Goodfellow et al. (2014).
|
| 130 |
+
|
| 131 |
+
We trained and evaluated each model with three separate random seeds. Evaluation outliers, caused by occasional crashes of evaluation jobs, are removed according to the following procedure. We compute a smoothed version of each time series by using a centered rolling median window of width 50. We take the absolute difference of each original time series and its smoothed form, compute the mean of the difference, and replace points in the original time series with their smoothed version only when the absolute difference exceeds three standard deviations with this mean. This removes at most two outlier points per model per evaluation in our runs. Evaluation time series for different seeds are then interpolated to obtain results on the same 1000 time-steps, which are then averaged across seeds, per model class.
|
| 132 |
+
|
| 133 |
+
# 5 RESULTS AND ANALYSIS
|
| 134 |
+
|
| 135 |
+
We give a numerical break down of evaluation accuracies for the metrics described above, during and at the end training, in Table 1: in Table 1a, we report the average of the last 10 evaluation steps for all models, and in Table 1b, we report the evaluation metrics at the time step where each model obtained the best evaluation score on FGSM5. In Figures 2a and 2b, we show the evolution of evaluation accuracies for selected metrics. To more thoroughly evaluate the models compared here, we show in Figure 2c how the accuracy of our models drops as the number of PGD attack steps increases. We report the evaluation results for 500 steps of PGD of the model snapshots used for Table 1b in Table 1c.
|
| 136 |
+
|
| 137 |
+
Figures 2a and 2b show that adversarially trained models uniformly outperform non-adversarially trained ones. Especially with weaker attacks, such as IFGSM5 and PGD5, non-adversarially trained models exhibit some recovery of robustness to attacks after 2–300,000 steps of training, but this is not stable and decays with further training. We further confirm that even such models which achieve some robustness against weak adversaries have true adversarial robustness close to $0 \%$ when the adversarial optimization is run for longer. In contrast, the robustness of adversarially trained models is stable throughout training. We read, in Table 1b, that all models incorporating adversarial training do slightly worse on the CIFAR-10 test, suffering a drop of roughly 10 points in accuracy, a phenomenon which was also observed in other work Madry et al. (2017). On PGD20, the smallest gap between an adversarially trained model and a baseline is $22 \%$ . Ensemble2Adv yields an improvement of $7 \%$ over a SingleAdv, of $5 \%$ over the parameterically equivalent DoubleAdv, and of $29 \%$ over the non-adversarially trained Ensemble2Adv.
|
| 138 |
+
|
| 139 |
+
In Figure 2c, we see that while the accuracies of the Ensemble2Adv drop more readily as the number of attack steps increases, they preserve a gap 7 accuracy points over the SingleAdv benchmark. Here, we also compare to an ensemble, Separate2Adv, where the individual models in the ensemble were separately adversarially trained. We observe that this ensemble produces a robustness to adversarial attacks which is closer to the SingleAdv results than to Ensemble2Adv, despite having the exact same structure and number of parameters. We present the evaluation accuracies after 500 steps of PGD in Table 1c, which maintains the relative ordering and rough gaps between models seen in Table 1b, thereby helping validate our results.
|
| 140 |
+
|
| 141 |
+
Table 1: Evaluation Results
|
| 142 |
+
(a) Average of last 10 evaluation steps
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td>clean accuracy</td><td>IFGSM5 accuracy</td><td>PGD5 accuracy</td><td>PGD20 accuracy</td><td>black box accuracy</td></tr><tr><td>Baseline</td><td>0.94</td><td>0.34</td><td>0.15</td><td>0.01</td><td>0.27</td></tr><tr><td>Ensemble2</td><td>0.94</td><td>0.59</td><td>0.44</td><td>0.30</td><td>0.22</td></tr><tr><td>Ensemble4</td><td>0.91</td><td>0.50</td><td>0.40</td><td>0.34</td><td>0.26</td></tr><tr><td>SingleAdv</td><td>0.82</td><td>0.55</td><td>0.44</td><td>0.43</td><td>0.80</td></tr><tr><td>DoubleAdv</td><td>0.83</td><td>0.57</td><td>0.46</td><td>0.44</td><td>0.82</td></tr><tr><td>Ensemble2Adv</td><td>0.85</td><td>0.62</td><td>0.55</td><td>0.52</td><td>0.83</td></tr><tr><td>Ensemble4Adv</td><td>0.87</td><td>0.66</td><td>0.58</td><td>0.53</td><td>0.85</td></tr></table>
|
| 145 |
+
|
| 146 |
+
(b) Evaluation results for model at best IFGSM5 training step
|
| 147 |
+
|
| 148 |
+
<table><tr><td></td><td>clean accuracy</td><td>FGSM5 accuracy</td><td>PGD5 accuracy</td><td>PGD20 accuracy</td><td>black box accuracy</td></tr><tr><td>Baseline</td><td>0.95</td><td>0.57</td><td>0.29</td><td>0.09</td><td>0.26</td></tr><tr><td>Ensemble2</td><td>0.95</td><td>0.65</td><td>0.52</td><td>0.38</td><td>0.22</td></tr><tr><td>Ensemble4</td><td>0.93</td><td>0.60</td><td>0.48</td><td>0.43</td><td>0.24</td></tr><tr><td>SingleAdv</td><td>0.84</td><td>0.57</td><td>0.46</td><td>0.45</td><td>0.81</td></tr><tr><td>DoubleAdv</td><td>0.85</td><td>0.60</td><td>0.48</td><td>0.47</td><td>0.84</td></tr><tr><td>Ensemble2Adv</td><td>0.87</td><td>0.64</td><td>0.56</td><td>0.52</td><td>0.85</td></tr><tr><td>Ensemble4Adv</td><td>0.88</td><td>0.67</td><td>0.58</td><td>0.52</td><td>0.86</td></tr></table>
|
| 149 |
+
|
| 150 |
+
(c) Model accuracy after 500 attack steps.
|
| 151 |
+
|
| 152 |
+
<table><tr><td></td><td></td><td></td><td colspan="4">Ensemble</td></tr><tr><td></td><td>Baseline</td><td>SingleAdv</td><td>DoubleAdv</td><td>-2</td><td>-2Adv</td><td>Separate2Adv</td></tr><tr><td>IFGSM</td><td>0.16</td><td>0.46</td><td>0.47</td><td>0.13</td><td>0.55</td><td>0.49</td></tr><tr><td>PGD</td><td>0.04</td><td>0.44</td><td>0.47</td><td>0.02</td><td>0.52</td><td>0.47</td></tr></table>
|
| 153 |
+
|
| 154 |
+
# 6 DISCUSSION
|
| 155 |
+
|
| 156 |
+
In this section we briefly discuss the possible reasons for the behaviours observed. As we saw, an ensemble of models trained adversarially outperforms the other setups at test time. We suspect, that this might be happening due to a mechanism described below.
|
| 157 |
+
|
| 158 |
+
When the model is being trained, it is exposed to pairs of images, both “clean” and adversarially modified. The adversarial training exploits the fact that the original image is close to the decision boundary of the model. The model then, when provided with both clean and adversarial image would attempt to modify the decision boundary in order to engulf them both. It is relatively easy to imagine why SingleAdv would be weaker then the other models—it simply has less parameters than the competition. In order to accommodate the adversarial example it has to compromise the decision boundary somewhere else, pulling it close to other clean images, making it vulnerable to subsequent attack. This is illustrated in Figure 3a.
|
| 159 |
+
|
| 160 |
+
The possible reason why Ensemble2Adv outperforms DoubleAdv is more elusive. Both models have the same number of parameters, so one could expect them to display a similar performance. As Ensemble2Adv is more robust to white box attack during test time we argue, that this might be due to the fact that in abundance of flexibility DoubleAdv tends often to spread out thin “tentacles”
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 2: Evaluation Curves
|
| 164 |
+
|
| 165 |
+
(c) Accuracy under PGD attack as a function of the number of attack steps.
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 3: Different responses of various architectures to adversarial training. Solid lines represent decision boundary of the models that see only “clean” images. Dashed lines are the boundaries modified due to the presence of adversarial training. The black dot is a clean image, the red dot is its adversarial modification. In the presence of two models $\mathrm { M o d e l } _ { 1 }$ is blue and $\mathrm { M o d e l _ { 2 } }$ is green. In case it needs to be specified with respect to which model the adversarial example is constructed the red dot has a circle in an appropriate color around it.
|
| 169 |
+
|
| 170 |
+
(Figure 3b) which do not cover up too much of a space. On the other hand, given that Ensemble2Adv is comprised of two separate models they are both subject to lesser ability to overfit following from the smaller number of parameters available in them. Thus we argue, that in most cases the modification of the model with adversarial training covers the adversarial example by modifying one model more than the other. This way the decision boundary of the model modified to a lesser degree still “provides protection” for “clean” images, while at the same time the “tentacle” generated by the model modified more is thicker than the one DoubleAdv creates. We illustrate that with Figure 3c.
|
| 171 |
+
|
| 172 |
+
Finally, it was shown that SeparateEnsemble2Adv is outperformed by a Ensemble2Adv trained “jointly”. We think that this is due to the fact that the adversarial training has to weaken both of the submodels simultaneously. Figure 3d illustrates that.
|
| 173 |
+
|
| 174 |
+
For a further illustration of the effects of adversarial training we plotted actual images of the decision boundaries for non-adversarially and adversarially trained Baseline and 2-Ensemble models (Figure 4).
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
Figure 4: Decision boundaries for various architectures/training methods. Each column shows the decision regions of two models on the same 2-dimensional plane in the space of all images. On every picture the black dot corresponds to the datapoint—an unaltered (ship) image from the test dataset. The light rectangle superimposed over the dot represents the bounds of the permitted attack region within the region. The two red arrows are the two vectors—attack directions on the base image, with respect to respectively the first and second tested model. The red dots are the images resulting from the attack. The plane presented is then the (unique) 2-dimensional plane containing those 3 points. Dark grey is void (outside the slice boundaries), and all other pixels are generated by a forward pass of the model at those coordinates, with the colour used representing the majority class.
|
| 178 |
+
|
| 179 |
+
Decision regions of the models are 3072-dimensional sets, so visualizing them itself poses a challenge. What we present are color-coded values of the models restricted to 2-dimensional planes in the space of all images, chosen so that the original image and the closest adversarial example (or attempt to find one) for both models in a pair being compared are co-planar. We observe, amongst other things, some support for the hypothesis put forward in Figure 3: adversarial training adds “thickness” around the natural image points, pushing the boundary further away from them, and in doing so, making adversarial examples harder to find (even within the test set); ensembling makes some classes more “consistent” within the decision plane, but introduce small “pockets” or “tentacles” of other classes; and the combinator thereof removes said pockets to create large regions of the correct class around images. We believe that such an approach of choosing a good plane and plotting the values of models on it is a more informative way of visualizing phenomena taking place in the universe of robustness and adversarial examples than more traditional approaches like t-SNE plots (Maaten & Hinton, 2008).
|
| 180 |
+
|
| 181 |
+
# 7 CONCLUSIONS AND FURTHER WORK
|
| 182 |
+
|
| 183 |
+
In this paper, we provide an empirical study of the effect of increasing the number of parameters in a model trained with adversarial training methods, with regard to its robustness to test-time adversarial attacks. We showed that while increasing parameters improves robustness, it is better to do so by ensembling smaller models than by producing one larger model. Through our experiments, we show that this result is not only due to ensembling alone, or to the implicit robustness of an ensemble of adversarially trained models, but specifically to due to the adversarial training of an ensemble as if it were a single model. We proposed a high level interpretation of why this phenomenon might occur. Further work should seek to determine whether scaling the number of models in the ensemble while controlling for number of parameters produces significant improvements over the minimal ensembles studied here in an attempt to draw conclusions about why such architectures are generally more robust than larger single models, even under adversarial training.
|
| 184 |
+
|
| 185 |
+
# REFERENCES
|
| 186 |
+
|
| 187 |
+
Mahdieh Abbasi and Christian Gagne. Robustness to adversarial examples through an ensemble of ´ specialists. 2017. URL http://arxiv.org/abs/1702.06856.
|
| 188 |
+
|
| 189 |
+
Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. arXiv preprint arXiv:1801.00553, 2018.
|
| 190 |
+
|
| 191 |
+
Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. Accessed: 2018-02-03, 2018. URL https://arxiv.org/abs/1802.00420.
|
| 192 |
+
|
| 193 |
+
Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples. arXiv preprint arXiv:1607.04311, 2016.
|
| 194 |
+
|
| 195 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a.
|
| 196 |
+
|
| 197 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017b.
|
| 198 |
+
|
| 199 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 200 |
+
|
| 201 |
+
Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens van der Maaten. Countering adversarial images using input transformations. arXiv preprint arXiv:1711.00117, 2017.
|
| 202 |
+
|
| 203 |
+
Sandy Huang, Nicolas Papernot, Ian Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv preprint arXiv:1702.02284, 2017.
|
| 204 |
+
|
| 205 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 206 |
+
|
| 207 |
+
Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. arXiv preprint arXiv:1707.07328, 2017.
|
| 208 |
+
|
| 209 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 210 |
+
|
| 211 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images, 2009.
|
| 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 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016.
|
| 216 |
+
|
| 217 |
+
Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. arXiv preprint arXiv:1612.01474, 2016.
|
| 218 |
+
|
| 219 |
+
Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Xiaolin Hu. Defense against adversarial attacks using high-level representation guided denoiser. arXiv preprint arXiv:1712.02976, 2017.
|
| 220 |
+
|
| 221 |
+
Siqi Liu, Zhenhai Zhu, Ning Ye, Sergio Guadarrama, and Kevin Murphy. Improved image captioning via policy gradient optimization of spider. arXiv preprint arXiv:1612.00370, 2016.
|
| 222 |
+
|
| 223 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579–2605, 2008.
|
| 224 |
+
|
| 225 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 226 |
+
|
| 227 |
+
Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th international conference on machine learning (ICML-10), pp. 807–814, 2010.
|
| 228 |
+
|
| 229 |
+
David Opitz and Richard Maclin. Popular ensemble methods: An empirical study. Journal of artificial intelligence research, 11:169–198, 1999.
|
| 230 |
+
|
| 231 |
+
Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped DQN. In Advances In Neural Information Processing Systems, pp. 4026–4034, 2016.
|
| 232 |
+
|
| 233 |
+
Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016.
|
| 234 |
+
|
| 235 |
+
Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017.
|
| 236 |
+
|
| 237 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 238 |
+
|
| 239 |
+
Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017.
|
| 240 |
+
|
| 241 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 242 |
+
|
| 243 |
+
Andrej Junginger Holger Ulmer Thilo Strauss, Markus Hanselmann. Ensemble methods as a defense to adversarial perturbations against deep neural networks. 2017. URL https://arxiv.org/ abs/1709.03423.
|
| 244 |
+
|
| 245 |
+
Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble \` adversarial training: Attacks and defenses. In ICLR, 2018.
|
| 246 |
+
|
| 247 |
+
Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. In The 35th International Conference on Machine Learning (ICML), 2018.
|
| 248 |
+
|
| 249 |
+
David Warde-Farley and Ian Goodfellow. Adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016.
|
| 250 |
+
|
| 251 |
+
Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan Yuille. Mitigating adversarial effects through randomization. arXiv preprint arXiv:1711.01991, 2017.
|
| 252 |
+
|
| 253 |
+
Xiaoyong Yuan, Pan He, Qile Zhu, Rajendra Rana Bhat, and Xiaolin Li. Adversarial examples: Attacks and defenses for deep learning. arXiv preprint arXiv:1712.07107, 2017.
|
| 254 |
+
|
| 255 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
parse/train/HJguLo0cKQ/HJguLo0cKQ_content_list.json
ADDED
|
@@ -0,0 +1,1343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "STRENGTH IN NUMBERS: TRADING-OFF ROBUSTNESS AND COMPUTATION VIA ADVERSARIALLY-TRAINED ENSEMBLES ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
398,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
261,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "While deep learning has led to remarkable results on a number of challenging problems, researchers have discovered a vulnerability of neural networks in adversarial settings, where small but carefully chosen perturbations to the input can make the models produce extremely inaccurate outputs. This makes these models particularly unsuitable for safety-critical application domains (e.g. self-driving cars) where robustness is extremely important. Recent work has shown that augmenting training with adversarially generated data provides some degree of robustness against test-time attacks. In this paper we investigate how this approach scales as we increase the computational budget given to the defender. We show that increasing the number of parameters in adversarially-trained models increases their robustness, and in particular that ensembling smaller models while adversarially training the entire ensemble as a single model is a more efficient way of spending said budget than simply using a larger single model. Crucially, we show that it is the adversarial training of the ensemble, rather than the ensembling of adversarially trained models, which provides robustness. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
294,
|
| 43 |
+
766,
|
| 44 |
+
501
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
531,
|
| 55 |
+
336,
|
| 56 |
+
547
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks have demonstrated state-of-the-art performance in a wide range of application domains Krizhevsky et al. (2012). However, researchers have discovered that deep networks are in some sense ‘brittle’, in that small changes to their inputs can result in wildly different outputs (Huang et al., 2017; Jia & Liang, 2017; Szegedy et al., 2013). For instance, practically imperceptible (to human) modifications to images can result in misclassification of the image with high confidence. Not only are networks susceptible to these ‘attacks’, but these attacks are also relatively easy to compute using standard optimization techniques (Carlini & Wagner, 2017b; Goodfellow et al., 2014). These changes are often referred to as adversarial perturbations, in the sense that an adversary could craft a very small change to the input in order to create an undesirable outcome. This phenomenon is not unique to image classification, nor to particular network architectures, nor to particular training algorithms (Papernot et al., 2016; 2017). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
565,
|
| 66 |
+
825,
|
| 67 |
+
718
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Adversarial attacks can be broken into different categories depending on how much knowledge of the underlying model the adversary has access to. In ‘white-box’ attacks the adversary has full access to the model, and can perform both forward and backwards passes (though not change the weights or logic of the network) (Carlini & Wagner, 2017a; Goodfellow et al., 2014). In the ‘black-box’ setting the adversary has no access to the model, but perhaps knows the dataset that the model was trained on (Papernot et al., 2016; 2017). Despite several recent papers demonstrating new defences against adversarial attacks (Akhtar & Mian, 2018; Guo et al., 2017; Liao et al., 2017; Song et al., 2017; Tramer et al., 2018; Warde-Farley & Goodfellow, 2016; Xie et al., 2017; Yuan et al., 2017), recent \\` papers have demonstrated that most of these new defences are still susceptible to attacks and largely just obfuscate the gradients that the attacker can follow, and that non-gradient based attacks are still effective Uesato et al. (2018); Athalye et al. (2018). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
724,
|
| 77 |
+
825,
|
| 78 |
+
877
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Exploring Tradeoff of Computation and Robustness In many safety-critical application domains (e.g. self-driving cars), robustness is extremely important even if it comes at the cost of increased computation. This motivated the central question considered by this paper: Is it possible to increase adversarial robustness of a classifier at the cost of increased computation? ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
896,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "There are a number of possibilities to employ extra computation available at runtime. We can use a much larger model that requires more time to run, execute the original model multiple times and aggregate the predictions, or instead of using a single model, make predictions from a portfolio or ensemble of models. While researchers have proposed the use of portfolios and ensembles as a mechanism to improve adversarial robustness Abbasi & Gagne (2017); Thilo Strauss (2017), our ´ experimental results indicate that stronger adversaries are able to attack the ensembles successfully. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
138,
|
| 110 |
+
825,
|
| 111 |
+
223
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Contributions In this paper, we study and analyze the trade-off of adversarial robustness and computation (memory and runtime). We propose the use of adversarial training of ensemble of models and through an exhaustive ablative analysis make the following empirical findings: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
239,
|
| 121 |
+
825,
|
| 122 |
+
281
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• increased computation and/or model size can be used to increase robustness, \n• ensembles on their own are not very robust, but can be made robust through adversarial training where the ensemble is treated as a single model, \n• adversarially trained ensembles are more robust than adversarially trained individual models requiring the same amount of parameters/computation ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
215,
|
| 131 |
+
292,
|
| 132 |
+
825,
|
| 133 |
+
376
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Related Work Recently, Tramer et al. (2018) investigated the use of ensembles for adversarial \\` robustness. However, their goal and approach was quite different from the technique we are investigating. In Tramer et al. (2018), the authors generated adversarial perturbations using an ensemble of \\` pre-trained models in order to transfer the example to another model during training. This procedure decouples adversarial example generation from the current model, and consequently the model being trained cannot simply ‘overfit’ to the procedure for generating adversarial examples, which they generally took to be single-step attack methods. The authors demonstrated strong robustness of the resulting trained model to black-box attacks. By contrast, in this paper we investigate using an ensemble of models as our predictive model, and we train the models using multi-step adversarial training. We show increased robustness to both black-box and white-box adversarial attacks using this strategy. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
392,
|
| 143 |
+
825,
|
| 144 |
+
545
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 PRELIMINARIES ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
566,
|
| 155 |
+
339,
|
| 156 |
+
582
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Here we lay out the basics of attacking a neural network by the generation of adversarial examples. Denote an input to the network as $\\boldsymbol { x } \\in \\mathbb { R } ^ { d }$ with correct label $\\hat { y } \\in \\mathcal { V } \\subset \\mathbb { N }$ , and let $m _ { \\theta } : \\mathbb { R } ^ { d } \\mathbb { R } ^ { | \\bar { y } | }$ be the mapping performed by the neural network which is parameterized by $\\theta \\in \\mathbb { R } ^ { p }$ . Let $L : \\mathcal { V } \\times \\mathbb { R } ^ { | \\mathcal { V } | } \\to$ $\\mathbb { R }$ denote the loss we are trying to minimize (e.g., the cross-entropy). When training a neural network we seek to solve ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
598,
|
| 166 |
+
825,
|
| 167 |
+
670
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "equation",
|
| 173 |
+
"img_path": "images/4b8fe346b942fb8ab4f188bc857a254f5bf015df189ee744642145ad7c90fb56.jpg",
|
| 174 |
+
"text": "$$\n\\begin{array} { r l } { \\mathrm { m i n i m i z e } } & { { } \\mathbb { E } _ { ( x , y ) \\sim \\mathcal { D } } L ( \\hat { y } , m _ { \\theta } ( x ) ) } \\end{array}\n$$",
|
| 175 |
+
"text_format": "latex",
|
| 176 |
+
"bbox": [
|
| 177 |
+
383,
|
| 178 |
+
670,
|
| 179 |
+
612,
|
| 180 |
+
689
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "over variable $\\theta$ , where $\\mathcal { D }$ is the data distribution. Given any fixed $\\theta$ we can generate (untargeted) adversarial inputs by perturbing the input $x$ so as to maximize the loss. We restrict ourselves to small perturbations around a nominal input, and we denote by $\\boldsymbol { B }$ this set of allowable inputs. For example, if we restrict ourselves to small perturbations in $\\ell _ { \\infty }$ norm around a nominal input $x ^ { \\mathrm { n o m } }$ then we could set $\\mathcal { B } = \\left\\{ x \\vert \\| x - x ^ { \\mathrm { n o m } } \\| _ { \\infty } \\leq \\epsilon \\right\\}$ where $\\epsilon > 0$ is the tolerance. A common approach for generating adversarial examples is projected gradient descent Carlini $\\&$ Wagner (2016), i.e., to iteratively update the input $x$ by ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
691,
|
| 190 |
+
825,
|
| 191 |
+
790
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "equation",
|
| 197 |
+
"img_path": "images/c9fbd5edf2aa5dafb555e62e99d6a09eeda4f47f33136a11ca0303ed96fd15b0.jpg",
|
| 198 |
+
"text": "$$\n\\tilde { { \\boldsymbol { x } } } ^ { k + 1 } = \\Pi _ { { \\boldsymbol { \\mathcal { B } } } } ( \\tilde { { \\boldsymbol { x } } } ^ { k } + \\eta \\nabla _ { x } L ( y , m _ { \\theta } ( \\tilde { { \\boldsymbol { x } } } ^ { k } ) ) ) ,\n$$",
|
| 199 |
+
"text_format": "latex",
|
| 200 |
+
"bbox": [
|
| 201 |
+
369,
|
| 202 |
+
789,
|
| 203 |
+
627,
|
| 204 |
+
808
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "where typically $x ^ { 0 } = x + \\epsilon$ for some noise $\\epsilon$ , $\\eta > 0$ is a step-size parameter and $\\Pi _ { B }$ denotes the Euclidean projection on $\\boldsymbol { B }$ . We add noise to the initial point so that the network can’t memorize the training dataset and mask or obfuscate the gradients at that point Uesato et al. (2018); Athalye et al. (2018), in other words the added noise encourages generalization of adversarial robustness to the test dataset. If instead of using the gradient we just use the sign of the gradient then this is the fast-gradient-sign method Goodfellow et al. (2014). Empirically speaking, for most networks just a few steps of either of these procedures is sufficient to generate an $\\tilde { x }$ that is close to $x ^ { \\mathrm { n o m } }$ but has a different label with high confidence. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
811,
|
| 214 |
+
825,
|
| 215 |
+
924
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "In this paper we are primarily concerned with the performance of ensembles of models when trained with adversarial training Madry et al. (2017). In adversarial training we train a network to minimize a weighted sum of two losses (where the relative weighting is a hyper-parameter). The first loss is the standard loss of the problem we are trying to solve on the normal training data, e.g., the cross-entropy for a classification task. The second loss is the same function as the first loss, except evaluated on adversarially generated data, where typically the adversarial data is generated by attacking the network at that time-step. In other words we replace the problem in eq. (1) with ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
103,
|
| 225 |
+
825,
|
| 226 |
+
202
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "equation",
|
| 232 |
+
"img_path": "images/f197ef5806c345e30c754e32c4975131fc10d294b050fd8dabda5b53adcf6ebf.jpg",
|
| 233 |
+
"text": "$$\n\\mathbb { E } _ { ( x , y ) \\sim \\mathcal { D } } ( L ( \\hat { y } , m _ { \\theta } ( x ) ) + \\rho L ( \\hat { y } , m _ { \\theta } ( \\tilde { x } ) ) )\n$$",
|
| 234 |
+
"text_format": "latex",
|
| 235 |
+
"bbox": [
|
| 236 |
+
400,
|
| 237 |
+
205,
|
| 238 |
+
673,
|
| 239 |
+
223
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "where $\\rho \\geq 0$ is the weighting parameter and $\\tilde { x }$ is an adversarial example generated from $x$ at model parameters $\\theta$ using, for example, the update in eq. (2). This problem is usually approximated by sampling and minimizing the empirical expectation. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
227,
|
| 249 |
+
825,
|
| 250 |
+
270
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "3 ADVERSARIALLY-TRAINED ENSEMBLES ",
|
| 257 |
+
"text_level": 1,
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
289,
|
| 261 |
+
539,
|
| 262 |
+
305
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "In this section we lay out the basic strategy of using ensembles of models to increase robustness to adversarial attacks. The notion of ensemble used here simply involves taking $k$ separatelyparameterized models and averaging their predictions. If the output of network $i$ as a function of input $x$ and with network parameters $\\theta _ { i }$ is given by $p ( \\cdot | x , \\theta _ { i } ) = m _ { \\theta _ { i } } ( \\bar { x } )$ , then the output of the ensemble is ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
173,
|
| 271 |
+
320,
|
| 272 |
+
826,
|
| 273 |
+
377
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "equation",
|
| 279 |
+
"img_path": "images/8ff044190cc6bd96a68f565e0fd27ce5900cc7650a07a5211a8918d4dd2c97e4.jpg",
|
| 280 |
+
"text": "$$\np ( \\boldsymbol { y } | \\boldsymbol { x } ) = \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } p ( \\boldsymbol { y } | \\boldsymbol { x } , \\boldsymbol { \\theta } _ { i } ) .\n$$",
|
| 281 |
+
"text_format": "latex",
|
| 282 |
+
"bbox": [
|
| 283 |
+
408,
|
| 284 |
+
381,
|
| 285 |
+
588,
|
| 286 |
+
424
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "Alternatively, we could consider using a ‘gating network’ to generate data-dependent weights for each model rather than a simple average, though we found the performance to be similar. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
171,
|
| 295 |
+
428,
|
| 296 |
+
823,
|
| 297 |
+
457
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Using ensembles to improve the performance of statistical models is a very old idea; see, e.g. Opitz & Maclin (1999) for a survey. The basic intuition is that several weak models can be combined in such a way that the ensemble performs better than any individual, and is sometimes explained as being caused by the errors of the models ‘cancelling’ with one another. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
463,
|
| 307 |
+
825,
|
| 308 |
+
518
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "In order to ensure that the models are actually producing different outputs the diversity of the models must be maintained. This can be done in several ways, such as bootstrapping the data, whereby each model gets a slightly different copy of the data, or using totally different model types or architectures. In the case that the model training procedure is convex, and if all models architectures are the same and are getting the same data, then the models in the ensemble would be expected to converge on the same parameters. In the case of neural networks however, the model training procedure is not convex and so our strategy for maintaining diversity is very simple—initialize each model differently. Due to the nature of training neural networks it is likely that differently initialized networks will converge (assuming they do, in fact, converge) to different points of the parameter space. The insight that only different initialization is required is not new, previous papers have observed that different initialization is sufficient for uncertainty estimation Lakshminarayanan et al. (2016); Osband et al. (2016). ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
173,
|
| 317 |
+
525,
|
| 318 |
+
826,
|
| 319 |
+
693
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "Different initialization for networks has an appealing interpretation. If we take a Bayesian approach to the classification problem, then we have a prior over possible model parameters, $p ( \\theta )$ , a likelihood of the data, $p ( D | \\theta ) ^ { \\overline { { } } }$ , and a probability of a label $y$ given an input and a model, $\\overset { \\cdot } { p ( \\boldsymbol { y } | \\boldsymbol { x } , \\boldsymbol { \\theta } ) }$ . The ‘Bayes-optimal’ classification of a new data point $x$ is given by ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
173,
|
| 328 |
+
699,
|
| 329 |
+
825,
|
| 330 |
+
756
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "equation",
|
| 336 |
+
"img_path": "images/228a3851e4f7fde453c442f6fd4f2a0fe3c3e48f761b3673be38d61ef97ef45b.jpg",
|
| 337 |
+
"text": "$$\ny ^ { \\star } = \\mathrm { a r g m a x } _ { y } \\int _ { \\theta } p ( y | x , \\theta ) p ( D | \\theta ) p ( \\theta ) .\n$$",
|
| 338 |
+
"text_format": "latex",
|
| 339 |
+
"bbox": [
|
| 340 |
+
367,
|
| 341 |
+
760,
|
| 342 |
+
630,
|
| 343 |
+
792
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "This classifier is optimal in the sense that no other classifier can outperform it on average, given the same model class and knowledge of the prior and likelihood; however, the formulation is intractable for all but small problems. We can consider approximating it by the following approach, sample initial parameters from the prior $p ( \\theta )$ and run an iterative procedure to (approximately) maximize the likelihood $p ( D | \\theta )$ . Very loosely speaking, we can consider this procedure as approximately sampling from the posterior over models $p ( \\theta | D ) \\propto p ( D | \\theta ) p ( \\theta )$ . Consequently, we output the classification ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
173,
|
| 352 |
+
796,
|
| 353 |
+
825,
|
| 354 |
+
881
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 2
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "equation",
|
| 360 |
+
"img_path": "images/05915fb5b861975ff9c258344dae5397600a4ac4647845094e921dd701d37f8c.jpg",
|
| 361 |
+
"text": "$$\ny ^ { \\star } = \\operatorname { a r g m a x } _ { y } \\sum _ { i = 1 } ^ { k } p ( y | x , \\theta _ { i } ) ,\n$$",
|
| 362 |
+
"text_format": "latex",
|
| 363 |
+
"bbox": [
|
| 364 |
+
398,
|
| 365 |
+
885,
|
| 366 |
+
596,
|
| 367 |
+
928
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 2
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "Algorithm 1 Adversarial ensemble training using PGD under $\\ell _ { \\infty }$ norm constraint input: $k$ neural networks $m _ { \\theta _ { i } }$ , $i = 1 , \\ldots , k$ ; attack steps $N$ ; step sizes $\\eta , \\hat { \\eta }$ ; initial variance $\\sigma$ adversarial loss weighting $\\rho$ ; perturbation width $\\delta$ ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
176,
|
| 376 |
+
102,
|
| 377 |
+
710,
|
| 378 |
+
118
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "",
|
| 385 |
+
"bbox": [
|
| 386 |
+
181,
|
| 387 |
+
122,
|
| 388 |
+
820,
|
| 389 |
+
151
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "initialize: neural network parameters $\\theta _ { i } ^ { 0 }$ randomly, $i = 1 , \\ldots , k$ \nfor time-step $t = 0 , 1 , \\ldots , \\mathbf { i }$ o sample input minibatch $( x , \\hat { y } ) \\sim \\mathcal { D }$ initialize $\\bar { \\tilde { x } } { } ^ { 0 } = x + \\epsilon$ where $\\epsilon \\sim \\mathcal { N } ( 0 , \\sigma ^ { 2 } I )$ define $\\boldsymbol { \\mathcal { B } } = \\{ x ^ { \\prime } \\ | \\ \\| x - x ^ { \\prime } \\| _ { \\infty } \\leq \\delta \\}$ for $k = 0 , \\ldots , N - 1$ do ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
189,
|
| 398 |
+
151,
|
| 399 |
+
604,
|
| 400 |
+
236
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "equation",
|
| 406 |
+
"img_path": "images/6b313c9e80d7c33ecfbf99d09b0bc64dcc563fac7984cb71579d966b83e80912.jpg",
|
| 407 |
+
"text": "$$\n\\tilde { { \\boldsymbol { x } } } ^ { k + 1 } = \\Pi _ { \\mathcal { B } } \\big ( \\tilde { { \\boldsymbol { x } } } ^ { k } + \\hat { \\eta } \\nabla _ { x } L \\big ( \\hat { y } , \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } m _ { \\theta _ { i } } ( \\tilde { { \\boldsymbol { x } } } ^ { k } ) \\big ) \\big )\n$$",
|
| 408 |
+
"text_format": "latex",
|
| 409 |
+
"bbox": [
|
| 410 |
+
356,
|
| 411 |
+
241,
|
| 412 |
+
656,
|
| 413 |
+
284
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "end for ",
|
| 420 |
+
"text_level": 1,
|
| 421 |
+
"bbox": [
|
| 422 |
+
214,
|
| 423 |
+
291,
|
| 424 |
+
267,
|
| 425 |
+
303
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "update parameters for each $i = 1 , \\ldots , k$ : ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
215,
|
| 434 |
+
304,
|
| 435 |
+
483,
|
| 436 |
+
319
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "equation",
|
| 442 |
+
"img_path": "images/fdb92fd55519aff0b13a4724a636ca992f6c6d42702223e6054b575f2140ded6.jpg",
|
| 443 |
+
"text": "$$\n\\theta _ { i } ^ { t + 1 } = \\theta _ { i } ^ { t } - \\eta \\nabla _ { \\theta _ { i } } \\left( L ( \\hat { y } , \\frac { 1 } { k } \\sum _ { j = 1 } ^ { k } m _ { \\theta _ { j } ^ { t } } ( x ) ) + \\rho L ( \\hat { y } , \\frac { 1 } { k } \\sum _ { j = 1 } ^ { k } m _ { \\theta _ { j } ^ { t } } ( \\tilde { x } ^ { N } ) ) \\right)\n$$",
|
| 444 |
+
"text_format": "latex",
|
| 445 |
+
"bbox": [
|
| 446 |
+
277,
|
| 447 |
+
325,
|
| 448 |
+
735,
|
| 449 |
+
375
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "end for ",
|
| 456 |
+
"text_level": 1,
|
| 457 |
+
"bbox": [
|
| 458 |
+
189,
|
| 459 |
+
381,
|
| 460 |
+
243,
|
| 461 |
+
395
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "i.e., the best guess of the ensemble. The role of initialization therefore is that of sampling from our prior over possible model parameters. ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
424,
|
| 471 |
+
823,
|
| 472 |
+
453
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "Adversarial training of Ensembles Up to this point we have discussed the use of ensembles for improving classification performance and approximating the Bayes optimal classifier. Typically speaking neural networks appear to not benefit much from ensembling in terms of nominal performance. Here, however, we make the claim that adversarially trained ensembles of networks provide a level of robustness to adversarial attacks. When using ensembles the loss function for adversarial training in (3) is replaced by the mean of the loss over the $k$ models, i.e., now we want to solve ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
173,
|
| 481 |
+
468,
|
| 482 |
+
825,
|
| 483 |
+
553
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "equation",
|
| 489 |
+
"img_path": "images/702a2f34296e9b38b44185023d747c23244907dc343f1ea5fbaf35335ad1db7d.jpg",
|
| 490 |
+
"text": "$$\n\\begin{array} { r l } { \\mathrm { m i n i m i z e } } & { \\mathbb { E } _ { ( x , y ) \\sim \\mathcal { D } } \\left( L \\big ( \\hat { y } , \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } m _ { \\theta _ { i } } ( x ) \\big ) + \\rho L \\big ( \\hat { y } , \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } m _ { \\theta _ { i } } ( \\tilde { x } ) \\big ) \\right) } \\end{array}\n$$",
|
| 491 |
+
"text_format": "latex",
|
| 492 |
+
"bbox": [
|
| 493 |
+
256,
|
| 494 |
+
559,
|
| 495 |
+
736,
|
| 496 |
+
587
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "over variables $\\theta _ { i }$ , $i = 1 , \\ldots , k .$ , and where $\\tilde { x }$ is an adversarial example generating by attacking the entire ensemble. The exact procedure is outlined in Algorithm 1. We demonstrate empirically in the numerical results section that this procedure increases robustness to adversarial inputs. Following these results, we offer an analysis and hypothesis why ensembles outperform single models, even when controlling for number of parameters. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
592,
|
| 506 |
+
825,
|
| 507 |
+
662
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "4 EXPERIMENTAL SETUP ",
|
| 514 |
+
"text_level": 1,
|
| 515 |
+
"bbox": [
|
| 516 |
+
176,
|
| 517 |
+
683,
|
| 518 |
+
398,
|
| 519 |
+
699
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "4.1 MODELS COMPARED ",
|
| 526 |
+
"text_level": 1,
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
714,
|
| 530 |
+
361,
|
| 531 |
+
729
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Non-Adversarial Benchmarks The Baseline model for our investigation is a Wide ResNet (Zagoruyko & Komodakis, 2016) consisting of a $3 \\times 3$ convolution layer, followed by three layers containing 28 ResNet blocks of width factor 10, followed by batch normalization Ioffe & Szegedy (2015) layer, followed by a ReLU (Nair & Hinton, 2010), and by a final linear layer projecting into the logits of the CIFAR-10 classes. All models we experimented with here are variations on this architecture, and where hyperparameters are not explicitly referenced, they are assumed to be the same as this base model. Ensemble2 contains two copies of the baseline architecture. This has twice the number of parameters of the baseline. Together with the base model, these constitute our non-adversarially trained benchmarks. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
739,
|
| 541 |
+
825,
|
| 542 |
+
866
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Adversarial Models When adding adversarial training to the baseline architecture, we obtain our SingleAdv benchmark, which has the same number of parameters as the baseline. When trained with adversarial training, whereby the whole ensemble is attacked by Iterated Fast Gradient Sign Method (IFGSM) (Kurakin et al., 2016) at each training step to obtain adversarial inputs, we refer to the ensemble as Ensemble2Adv. This ensemble has as many parameters as its non-adversarially-trained counterparts. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
176,
|
| 551 |
+
882,
|
| 552 |
+
823,
|
| 553 |
+
924
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/d0b32f5f21f442b831718d3024e33f4917dfb7e7b43a58ba01d3feaeb82919d0.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 1: Schematic depiction of classes of models compared in this paper. Here, $n$ indicates the number of parameters in the base model, $\\hat { y }$ indicates the ground trouth label, $x$ is a clean input from the dataset, $\\tilde { x }$ is that input after a number of steps of the chosen adversarial training attack (7 steps of IFGSM in our experiments), $y$ is the output distribution according to the network based on clean input $x$ , and $\\tilde { y }$ is the output based on adversarial input $\\tilde { x }$ . Adversarially trained networks are shown to have two inputs (and two losses) for compactness, but in practice two parameter-sharing copies of the network will be instantiated, with one taking clean input, the other taking adversarial input, and their losses will be computed separately and averaged before optimisation. "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
214,
|
| 566 |
+
106,
|
| 567 |
+
774,
|
| 568 |
+
398
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "",
|
| 575 |
+
"bbox": [
|
| 576 |
+
174,
|
| 577 |
+
561,
|
| 578 |
+
825,
|
| 579 |
+
604
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "Comparisons to Ensemble2Adv In order to compare Ensemble2Adv to the SingleAdv benchmark while controlling for number of parameters, we introduce a variant DoubleAdv of this benchmark with ResNet blocks of width 15, which yields roughly the same number of parameters as Ensemble2Adv. Finally, we train two separately parameterised instances of SingleAdv and ensemble them at test time for the purpose of evaluating the hypothesis that it is adversarial training of ensembles that provides and advantage, and call this test-time model SeparateEnsemble2Adv. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
174,
|
| 588 |
+
626,
|
| 589 |
+
825,
|
| 590 |
+
710
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "The model variations described here are illustrated in Figure 1, which can serve as a basis for repeating these experiments with a different base model architecture. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
173,
|
| 599 |
+
717,
|
| 600 |
+
823,
|
| 601 |
+
746
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "4.2 TRAINING PROCEDURE ",
|
| 608 |
+
"text_level": 1,
|
| 609 |
+
"bbox": [
|
| 610 |
+
176,
|
| 611 |
+
770,
|
| 612 |
+
377,
|
| 613 |
+
784
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "We train and evaluate our models on CIFAR-10 (Krizhevsky & Hinton, 2009). We use similar hyperparameters to Zagoruyko & Komodakis (2016), with additional iterations to account for the fact that minimizing the adversarial objective requires more training steps. We train all models for 500,000 iterations using a momentum optimiser with minibatches of size 128, with an initial learning rate of 0.1, a momentum of 0.9, and a learning rate factor (decay) of 0.2 after $\\{ \\mathrm { 3 0 k , 6 0 k , 9 0 k } \\}$ steps. When doing adversarial training, we train both on “clean” versions of the minibatch images, and on adversarial examples produced by 7 steps of IFGSM, following Madry et al. (2017). The cross-entropy losses with regard to the ground truth labels for both the adversarial and clean images are averaged to obtain gradients for the model (i.e. $\\rho = 1$ ). ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
797,
|
| 623 |
+
825,
|
| 624 |
+
924
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "4.3 EVALUATION PROCEDURE ",
|
| 631 |
+
"text_level": 1,
|
| 632 |
+
"bbox": [
|
| 633 |
+
174,
|
| 634 |
+
103,
|
| 635 |
+
397,
|
| 636 |
+
117
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "During training, we run an evaluation job which evaluates the accuracy of the model on the entire CIFAR-10 test set. We consider two white-box adversaries, both with a maximum $L _ { \\infty }$ perturbation of 8 (out of 255): IFGSM which performs the iterated fast gradient sign method update, which is equivalent to steepest descent with respect to the $L _ { \\mathrm { i n f } }$ norm Madry et al. (2017); Kurakin et al. (2016) and PGD which performs projected gradient descent using the Adam Kingma & Ba (2014) update rule. During training, we evaluate using IFGSM7, the training adversary which performs 7 iterations of the IFGSM update, also used in Madry et al. (2017), as well as PGD5 and PGD20, the 5 and 20-step versions of our PGD attack. Additionally, for the best model, we run these attacks 500 steps in order to estimate the strongest possible attacks. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
131,
|
| 646 |
+
825,
|
| 647 |
+
256
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "We further include a black-box adversary in our evaluation procedure. We use a dataset of precomputed adversarial examples, following the procedure in Liu et al. (2016) against an ensemble of a Wide ResNet Zagoruyko & Komodakis (2016) and VGG-like Simonyan & Zisserman (2014) architectures. The two models are trained with standard training procedures and achieve $9 6 . 0 \\%$ and $9 4 . 5 \\%$ accuracy respectively on the CIFAR-10 clean test set, and are ensembled by an arithmetic mean of their logits. The adversary is the PGD20 adversary which fools all members of the ensemble on $100 \\%$ of the evaluation set. We note that the exact values for robustness of networks to black box attacks can be highly contingent on the similarity between the original and attacked networks Uesato et al. (2018), rather than the true adversarial robustness of the attacked network. However, we include black box accuracies for best practice, as a check against models which achieve illusory robustness through obscured gradients Goodfellow et al. (2014). ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
262,
|
| 657 |
+
825,
|
| 658 |
+
415
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "We trained and evaluated each model with three separate random seeds. Evaluation outliers, caused by occasional crashes of evaluation jobs, are removed according to the following procedure. We compute a smoothed version of each time series by using a centered rolling median window of width 50. We take the absolute difference of each original time series and its smoothed form, compute the mean of the difference, and replace points in the original time series with their smoothed version only when the absolute difference exceeds three standard deviations with this mean. This removes at most two outlier points per model per evaluation in our runs. Evaluation time series for different seeds are then interpolated to obtain results on the same 1000 time-steps, which are then averaged across seeds, per model class. ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
422,
|
| 668 |
+
825,
|
| 669 |
+
547
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "5 RESULTS AND ANALYSIS ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
570,
|
| 680 |
+
413,
|
| 681 |
+
587
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "We give a numerical break down of evaluation accuracies for the metrics described above, during and at the end training, in Table 1: in Table 1a, we report the average of the last 10 evaluation steps for all models, and in Table 1b, we report the evaluation metrics at the time step where each model obtained the best evaluation score on FGSM5. In Figures 2a and 2b, we show the evolution of evaluation accuracies for selected metrics. To more thoroughly evaluate the models compared here, we show in Figure 2c how the accuracy of our models drops as the number of PGD attack steps increases. We report the evaluation results for 500 steps of PGD of the model snapshots used for Table 1b in Table 1c. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
173,
|
| 690 |
+
603,
|
| 691 |
+
825,
|
| 692 |
+
714
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 5
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Figures 2a and 2b show that adversarially trained models uniformly outperform non-adversarially trained ones. Especially with weaker attacks, such as IFGSM5 and PGD5, non-adversarially trained models exhibit some recovery of robustness to attacks after 2–300,000 steps of training, but this is not stable and decays with further training. We further confirm that even such models which achieve some robustness against weak adversaries have true adversarial robustness close to $0 \\%$ when the adversarial optimization is run for longer. In contrast, the robustness of adversarially trained models is stable throughout training. We read, in Table 1b, that all models incorporating adversarial training do slightly worse on the CIFAR-10 test, suffering a drop of roughly 10 points in accuracy, a phenomenon which was also observed in other work Madry et al. (2017). On PGD20, the smallest gap between an adversarially trained model and a baseline is $22 \\%$ . Ensemble2Adv yields an improvement of $7 \\%$ over a SingleAdv, of $5 \\%$ over the parameterically equivalent DoubleAdv, and of $29 \\%$ over the non-adversarially trained Ensemble2Adv. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
722,
|
| 702 |
+
825,
|
| 703 |
+
888
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 5
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "In Figure 2c, we see that while the accuracies of the Ensemble2Adv drop more readily as the number of attack steps increases, they preserve a gap 7 accuracy points over the SingleAdv benchmark. Here, we also compare to an ensemble, Separate2Adv, where the individual models in the ensemble were separately adversarially trained. We observe that this ensemble produces a robustness to adversarial attacks which is closer to the SingleAdv results than to Ensemble2Adv, despite having the exact same structure and number of parameters. We present the evaluation accuracies after 500 steps of PGD in Table 1c, which maintains the relative ordering and rough gaps between models seen in Table 1b, thereby helping validate our results. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
895,
|
| 713 |
+
823,
|
| 714 |
+
924
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 5
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "table",
|
| 720 |
+
"img_path": "images/aa6ba1a8942994334be985594d8fe2e2e5443e48ca187ee8c9cd5f66b7261adc.jpg",
|
| 721 |
+
"table_caption": [
|
| 722 |
+
"Table 1: Evaluation Results ",
|
| 723 |
+
"(a) Average of last 10 evaluation steps "
|
| 724 |
+
],
|
| 725 |
+
"table_footnote": [
|
| 726 |
+
"(b) Evaluation results for model at best IFGSM5 training step "
|
| 727 |
+
],
|
| 728 |
+
"table_body": "<table><tr><td></td><td>clean accuracy</td><td>IFGSM5 accuracy</td><td>PGD5 accuracy</td><td>PGD20 accuracy</td><td>black box accuracy</td></tr><tr><td>Baseline</td><td>0.94</td><td>0.34</td><td>0.15</td><td>0.01</td><td>0.27</td></tr><tr><td>Ensemble2</td><td>0.94</td><td>0.59</td><td>0.44</td><td>0.30</td><td>0.22</td></tr><tr><td>Ensemble4</td><td>0.91</td><td>0.50</td><td>0.40</td><td>0.34</td><td>0.26</td></tr><tr><td>SingleAdv</td><td>0.82</td><td>0.55</td><td>0.44</td><td>0.43</td><td>0.80</td></tr><tr><td>DoubleAdv</td><td>0.83</td><td>0.57</td><td>0.46</td><td>0.44</td><td>0.82</td></tr><tr><td>Ensemble2Adv</td><td>0.85</td><td>0.62</td><td>0.55</td><td>0.52</td><td>0.83</td></tr><tr><td>Ensemble4Adv</td><td>0.87</td><td>0.66</td><td>0.58</td><td>0.53</td><td>0.85</td></tr></table>",
|
| 729 |
+
"bbox": [
|
| 730 |
+
228,
|
| 731 |
+
147,
|
| 732 |
+
771,
|
| 733 |
+
282
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 6
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "table",
|
| 739 |
+
"img_path": "images/f1446bee4c02c3574b9afca55e850bad3d26daf66c1624bee2815e021ceb4ff7.jpg",
|
| 740 |
+
"table_caption": [],
|
| 741 |
+
"table_footnote": [
|
| 742 |
+
"(c) Model accuracy after 500 attack steps. "
|
| 743 |
+
],
|
| 744 |
+
"table_body": "<table><tr><td></td><td>clean accuracy</td><td>FGSM5 accuracy</td><td>PGD5 accuracy</td><td>PGD20 accuracy</td><td>black box accuracy</td></tr><tr><td>Baseline</td><td>0.95</td><td>0.57</td><td>0.29</td><td>0.09</td><td>0.26</td></tr><tr><td>Ensemble2</td><td>0.95</td><td>0.65</td><td>0.52</td><td>0.38</td><td>0.22</td></tr><tr><td>Ensemble4</td><td>0.93</td><td>0.60</td><td>0.48</td><td>0.43</td><td>0.24</td></tr><tr><td>SingleAdv</td><td>0.84</td><td>0.57</td><td>0.46</td><td>0.45</td><td>0.81</td></tr><tr><td>DoubleAdv</td><td>0.85</td><td>0.60</td><td>0.48</td><td>0.47</td><td>0.84</td></tr><tr><td>Ensemble2Adv</td><td>0.87</td><td>0.64</td><td>0.56</td><td>0.52</td><td>0.85</td></tr><tr><td>Ensemble4Adv</td><td>0.88</td><td>0.67</td><td>0.58</td><td>0.52</td><td>0.86</td></tr></table>",
|
| 745 |
+
"bbox": [
|
| 746 |
+
223,
|
| 747 |
+
301,
|
| 748 |
+
772,
|
| 749 |
+
436
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 6
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "table",
|
| 755 |
+
"img_path": "images/a982ee2343680d25dab313daf8de311056f9a88836c6096b7f577b9a904603a5.jpg",
|
| 756 |
+
"table_caption": [],
|
| 757 |
+
"table_footnote": [],
|
| 758 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td colspan=\"4\">Ensemble</td></tr><tr><td></td><td>Baseline</td><td>SingleAdv</td><td>DoubleAdv</td><td>-2</td><td>-2Adv</td><td>Separate2Adv</td></tr><tr><td>IFGSM</td><td>0.16</td><td>0.46</td><td>0.47</td><td>0.13</td><td>0.55</td><td>0.49</td></tr><tr><td>PGD</td><td>0.04</td><td>0.44</td><td>0.47</td><td>0.02</td><td>0.52</td><td>0.47</td></tr></table>",
|
| 759 |
+
"bbox": [
|
| 760 |
+
214,
|
| 761 |
+
458,
|
| 762 |
+
784,
|
| 763 |
+
530
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 6
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "",
|
| 770 |
+
"bbox": [
|
| 771 |
+
174,
|
| 772 |
+
558,
|
| 773 |
+
825,
|
| 774 |
+
642
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 6
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "6 DISCUSSION ",
|
| 781 |
+
"text_level": 1,
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
666,
|
| 785 |
+
310,
|
| 786 |
+
683
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 6
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "In this section we briefly discuss the possible reasons for the behaviours observed. As we saw, an ensemble of models trained adversarially outperforms the other setups at test time. We suspect, that this might be happening due to a mechanism described below. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
700,
|
| 796 |
+
825,
|
| 797 |
+
742
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 6
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "When the model is being trained, it is exposed to pairs of images, both “clean” and adversarially modified. The adversarial training exploits the fact that the original image is close to the decision boundary of the model. The model then, when provided with both clean and adversarial image would attempt to modify the decision boundary in order to engulf them both. It is relatively easy to imagine why SingleAdv would be weaker then the other models—it simply has less parameters than the competition. In order to accommodate the adversarial example it has to compromise the decision boundary somewhere else, pulling it close to other clean images, making it vulnerable to subsequent attack. This is illustrated in Figure 3a. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
750,
|
| 807 |
+
825,
|
| 808 |
+
861
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "The possible reason why Ensemble2Adv outperforms DoubleAdv is more elusive. Both models have the same number of parameters, so one could expect them to display a similar performance. As Ensemble2Adv is more robust to white box attack during test time we argue, that this might be due to the fact that in abundance of flexibility DoubleAdv tends often to spread out thin “tentacles” ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
867,
|
| 818 |
+
825,
|
| 819 |
+
924
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 6
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "image",
|
| 825 |
+
"img_path": "images/5c4b090b6ca456a5dcfd4f927d29c66331eca4de1a9b116061e75e6ef1649367.jpg",
|
| 826 |
+
"image_caption": [
|
| 827 |
+
"Figure 2: Evaluation Curves "
|
| 828 |
+
],
|
| 829 |
+
"image_footnote": [],
|
| 830 |
+
"bbox": [
|
| 831 |
+
173,
|
| 832 |
+
103,
|
| 833 |
+
825,
|
| 834 |
+
453
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "(c) Accuracy under PGD attack as a function of the number of attack steps. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
274,
|
| 843 |
+
459,
|
| 844 |
+
720,
|
| 845 |
+
473
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "image",
|
| 851 |
+
"img_path": "images/4055ccb2906a1d043215a15cebe4524d3bf6c21f32ba5a13b0e698208f4bc5dc.jpg",
|
| 852 |
+
"image_caption": [
|
| 853 |
+
"Figure 3: Different responses of various architectures to adversarial training. Solid lines represent decision boundary of the models that see only “clean” images. Dashed lines are the boundaries modified due to the presence of adversarial training. The black dot is a clean image, the red dot is its adversarial modification. In the presence of two models $\\mathrm { M o d e l } _ { 1 }$ is blue and $\\mathrm { M o d e l _ { 2 } }$ is green. In case it needs to be specified with respect to which model the adversarial example is constructed the red dot has a circle in an appropriate color around it. "
|
| 854 |
+
],
|
| 855 |
+
"image_footnote": [],
|
| 856 |
+
"bbox": [
|
| 857 |
+
186,
|
| 858 |
+
517,
|
| 859 |
+
784,
|
| 860 |
+
618
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 7
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "(Figure 3b) which do not cover up too much of a space. On the other hand, given that Ensemble2Adv is comprised of two separate models they are both subject to lesser ability to overfit following from the smaller number of parameters available in them. Thus we argue, that in most cases the modification of the model with adversarial training covers the adversarial example by modifying one model more than the other. This way the decision boundary of the model modified to a lesser degree still “provides protection” for “clean” images, while at the same time the “tentacle” generated by the model modified more is thicker than the one DoubleAdv creates. We illustrate that with Figure 3c. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
741,
|
| 870 |
+
825,
|
| 871 |
+
840
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 7
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Finally, it was shown that SeparateEnsemble2Adv is outperformed by a Ensemble2Adv trained “jointly”. We think that this is due to the fact that the adversarial training has to weaken both of the submodels simultaneously. Figure 3d illustrates that. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
847,
|
| 881 |
+
825,
|
| 882 |
+
888
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 7
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "For a further illustration of the effects of adversarial training we plotted actual images of the decision boundaries for non-adversarially and adversarially trained Baseline and 2-Ensemble models (Figure 4). ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
895,
|
| 892 |
+
823,
|
| 893 |
+
924
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "image",
|
| 899 |
+
"img_path": "images/06b72f963fb9ff1deb22648a64125a6f8bf11253c105f734c872dc3a70301e2e.jpg",
|
| 900 |
+
"image_caption": [
|
| 901 |
+
"Figure 4: Decision boundaries for various architectures/training methods. Each column shows the decision regions of two models on the same 2-dimensional plane in the space of all images. On every picture the black dot corresponds to the datapoint—an unaltered (ship) image from the test dataset. The light rectangle superimposed over the dot represents the bounds of the permitted attack region within the region. The two red arrows are the two vectors—attack directions on the base image, with respect to respectively the first and second tested model. The red dots are the images resulting from the attack. The plane presented is then the (unique) 2-dimensional plane containing those 3 points. Dark grey is void (outside the slice boundaries), and all other pixels are generated by a forward pass of the model at those coordinates, with the colour used representing the majority class. "
|
| 902 |
+
],
|
| 903 |
+
"image_footnote": [],
|
| 904 |
+
"bbox": [
|
| 905 |
+
184,
|
| 906 |
+
101,
|
| 907 |
+
843,
|
| 908 |
+
386
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Decision regions of the models are 3072-dimensional sets, so visualizing them itself poses a challenge. What we present are color-coded values of the models restricted to 2-dimensional planes in the space of all images, chosen so that the original image and the closest adversarial example (or attempt to find one) for both models in a pair being compared are co-planar. We observe, amongst other things, some support for the hypothesis put forward in Figure 3: adversarial training adds “thickness” around the natural image points, pushing the boundary further away from them, and in doing so, making adversarial examples harder to find (even within the test set); ensembling makes some classes more “consistent” within the decision plane, but introduce small “pockets” or “tentacles” of other classes; and the combinator thereof removes said pockets to create large regions of the correct class around images. We believe that such an approach of choosing a good plane and plotting the values of models on it is a more informative way of visualizing phenomena taking place in the universe of robustness and adversarial examples than more traditional approaches like t-SNE plots (Maaten & Hinton, 2008). ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
551,
|
| 918 |
+
826,
|
| 919 |
+
718
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "7 CONCLUSIONS AND FURTHER WORK ",
|
| 926 |
+
"text_level": 1,
|
| 927 |
+
"bbox": [
|
| 928 |
+
176,
|
| 929 |
+
739,
|
| 930 |
+
514,
|
| 931 |
+
755
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 8
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "In this paper, we provide an empirical study of the effect of increasing the number of parameters in a model trained with adversarial training methods, with regard to its robustness to test-time adversarial attacks. We showed that while increasing parameters improves robustness, it is better to do so by ensembling smaller models than by producing one larger model. Through our experiments, we show that this result is not only due to ensembling alone, or to the implicit robustness of an ensemble of adversarially trained models, but specifically to due to the adversarial training of an ensemble as if it were a single model. We proposed a high level interpretation of why this phenomenon might occur. Further work should seek to determine whether scaling the number of models in the ensemble while controlling for number of parameters produces significant improvements over the minimal ensembles studied here in an attempt to draw conclusions about why such architectures are generally more robust than larger single models, even under adversarial training. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
174,
|
| 940 |
+
770,
|
| 941 |
+
825,
|
| 942 |
+
924
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 8
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "REFERENCES ",
|
| 949 |
+
"text_level": 1,
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
103,
|
| 953 |
+
287,
|
| 954 |
+
117
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Mahdieh Abbasi and Christian Gagne. Robustness to adversarial examples through an ensemble of ´ specialists. 2017. URL http://arxiv.org/abs/1702.06856. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
126,
|
| 964 |
+
823,
|
| 965 |
+
155
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. arXiv preprint arXiv:1801.00553, 2018. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
176,
|
| 974 |
+
162,
|
| 975 |
+
823,
|
| 976 |
+
193
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 9
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. Accessed: 2018-02-03, 2018. URL https://arxiv.org/abs/1802.00420. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
178,
|
| 985 |
+
200,
|
| 986 |
+
821,
|
| 987 |
+
243
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 9
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Nicholas Carlini and David Wagner. Defensive distillation is not robust to adversarial examples. arXiv preprint arXiv:1607.04311, 2016. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
169,
|
| 996 |
+
252,
|
| 997 |
+
825,
|
| 998 |
+
281
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 9
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017a. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
173,
|
| 1007 |
+
289,
|
| 1008 |
+
823,
|
| 1009 |
+
333
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 9
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy (SP), 2017 IEEE Symposium on, pp. 39–57. IEEE, 2017b. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
169,
|
| 1018 |
+
340,
|
| 1019 |
+
823,
|
| 1020 |
+
371
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 9
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
171,
|
| 1029 |
+
378,
|
| 1030 |
+
825,
|
| 1031 |
+
409
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 9
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens van der Maaten. Countering adversarial images using input transformations. arXiv preprint arXiv:1711.00117, 2017. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
173,
|
| 1040 |
+
416,
|
| 1041 |
+
823,
|
| 1042 |
+
445
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 9
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Sandy Huang, Nicolas Papernot, Ian Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv preprint arXiv:1702.02284, 2017. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
173,
|
| 1051 |
+
453,
|
| 1052 |
+
823,
|
| 1053 |
+
483
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 9
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
491,
|
| 1063 |
+
823,
|
| 1064 |
+
521
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 9
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. arXiv preprint arXiv:1707.07328, 2017. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
173,
|
| 1073 |
+
529,
|
| 1074 |
+
825,
|
| 1075 |
+
558
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 9
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
566,
|
| 1085 |
+
825,
|
| 1086 |
+
595
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 9
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images, 2009. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
173,
|
| 1095 |
+
603,
|
| 1096 |
+
826,
|
| 1097 |
+
621
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 9
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"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. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
176,
|
| 1106 |
+
627,
|
| 1107 |
+
825,
|
| 1108 |
+
671
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 9
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
173,
|
| 1117 |
+
679,
|
| 1118 |
+
823,
|
| 1119 |
+
708
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 9
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. arXiv preprint arXiv:1612.01474, 2016. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
173,
|
| 1128 |
+
717,
|
| 1129 |
+
823,
|
| 1130 |
+
747
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 9
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Xiaolin Hu. Defense against adversarial attacks using high-level representation guided denoiser. arXiv preprint arXiv:1712.02976, 2017. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
174,
|
| 1139 |
+
753,
|
| 1140 |
+
825,
|
| 1141 |
+
797
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 9
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Siqi Liu, Zhenhai Zhu, Ning Ye, Sergio Guadarrama, and Kevin Murphy. Improved image captioning via policy gradient optimization of spider. arXiv preprint arXiv:1612.00370, 2016. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
173,
|
| 1150 |
+
805,
|
| 1151 |
+
821,
|
| 1152 |
+
835
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 9
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579–2605, 2008. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
171,
|
| 1161 |
+
843,
|
| 1162 |
+
825,
|
| 1163 |
+
873
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
176,
|
| 1172 |
+
882,
|
| 1173 |
+
825,
|
| 1174 |
+
922
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th international conference on machine learning (ICML-10), pp. 807–814, 2010. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
176,
|
| 1183 |
+
103,
|
| 1184 |
+
825,
|
| 1185 |
+
146
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 10
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "David Opitz and Richard Maclin. Popular ensemble methods: An empirical study. Journal of artificial intelligence research, 11:169–198, 1999. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
155,
|
| 1195 |
+
826,
|
| 1196 |
+
184
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 10
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Ian Osband, Charles Blundell, Alexander Pritzel, and Benjamin Van Roy. Deep exploration via bootstrapped DQN. In Advances In Neural Information Processing Systems, pp. 4026–4034, 2016. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
171,
|
| 1205 |
+
193,
|
| 1206 |
+
825,
|
| 1207 |
+
222
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
176,
|
| 1216 |
+
229,
|
| 1217 |
+
825,
|
| 1218 |
+
272
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security, pp. 506–519. ACM, 2017. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
174,
|
| 1227 |
+
281,
|
| 1228 |
+
826,
|
| 1229 |
+
325
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 10
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
174,
|
| 1238 |
+
333,
|
| 1239 |
+
821,
|
| 1240 |
+
363
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 10
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
174,
|
| 1249 |
+
371,
|
| 1250 |
+
826,
|
| 1251 |
+
414
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 10
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
173,
|
| 1260 |
+
422,
|
| 1261 |
+
825,
|
| 1262 |
+
452
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 10
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Andrej Junginger Holger Ulmer Thilo Strauss, Markus Hanselmann. Ensemble methods as a defense to adversarial perturbations against deep neural networks. 2017. URL https://arxiv.org/ abs/1709.03423. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
174,
|
| 1271 |
+
460,
|
| 1272 |
+
826,
|
| 1273 |
+
503
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 10
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Dan Boneh, and Patrick McDaniel. Ensemble \\` adversarial training: Attacks and defenses. In ICLR, 2018. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
173,
|
| 1282 |
+
511,
|
| 1283 |
+
825,
|
| 1284 |
+
541
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 10
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. In The 35th International Conference on Machine Learning (ICML), 2018. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
173,
|
| 1293 |
+
549,
|
| 1294 |
+
825,
|
| 1295 |
+
593
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 10
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "David Warde-Farley and Ian Goodfellow. Adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
173,
|
| 1304 |
+
602,
|
| 1305 |
+
825,
|
| 1306 |
+
631
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 10
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan Yuille. Mitigating adversarial effects through randomization. arXiv preprint arXiv:1711.01991, 2017. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
173,
|
| 1315 |
+
638,
|
| 1316 |
+
825,
|
| 1317 |
+
669
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 10
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Xiaoyong Yuan, Pan He, Qile Zhu, Rajendra Rana Bhat, and Xiaolin Li. Adversarial examples: Attacks and defenses for deep learning. arXiv preprint arXiv:1712.07107, 2017. ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
173,
|
| 1326 |
+
676,
|
| 1327 |
+
825,
|
| 1328 |
+
707
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 10
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
173,
|
| 1337 |
+
714,
|
| 1338 |
+
825,
|
| 1339 |
+
743
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 10
|
| 1342 |
+
}
|
| 1343 |
+
]
|
parse/train/HJguLo0cKQ/HJguLo0cKQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJguLo0cKQ/HJguLo0cKQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/MmCRswl1UYl/MmCRswl1UYl.md
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OPEN QUESTION ANSWERING OVER TABLES AND TEXT
|
| 2 |
+
|
| 3 |
+
Wenhu Chen1 ∗, Ming-Wei Chang2, Eva Schlinger2, William Wang1, William W. Cohen2
|
| 4 |
+
|
| 5 |
+
1University of California, Santa Barbara 2Google Research {wenhuchen, william}@cs.ucsb.edu {mingweichang, eschling, wcohen}@google.com
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
In open question answering (QA), the answer to a question is produced by retrieving and then analyzing documents that might contain answers to the question. Most open QA systems have considered only retrieving information from unstructured text. Here we consider for the first time open QA over both tabular and textual data and present a new large-scale dataset Open Table-and-Text Question Answering (OTT-QA) to evaluate performance on this task1. Most questions in OTT-QA require multi-hop inference across tabular data and unstructured text, and the evidence required to answer a question can be distributed in different ways over these two types of input, making evidence retrieval challenging—our baseline model using an iterative retriever and BERT-based reader achieves an exact match score less than $10 \%$ . We then propose two novel techniques to address the challenge of retrieving and aggregating evidence for OTT-QA. The first technique is to use “early fusion” to group multiple highly relevant tabular and textual units into a fused block, which provides more context for the retriever to search for. The second technique is to use a cross-block reader to model the cross-dependency between multiple retrieved evidence with global-local sparse attention. Combining these two techniques improves the score significantly, to above $27 \%$ .
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Open question answering considers the problem of retrieving documents from a fixed corpus with a retriever, and then analyzes retrieved evidence to provide answers to a given question with a reader. Prior open question answering systems focused only on retrieving and reading free-form passages or documents. However, a significant amount of real-world information is stored in other forms, such as semi-structured web tables due to its compact representation to aggregate related information. For example, tables are often used to hold large quantities of related facts, especially numeric facts, such as ‘Career Statistics for Lebron James’. This type of detailed information is found much less frequently in unstructured text. Tables are also commonly used for collections of homogeneous entities or recurring events, like ‘List of Periodic Comets’ or ‘List of Champions League Winners since $\exists \in 6 6 ^ { \prime }$ . Hence tabular information serves as an excellent complement to textual data, especially in the open setting. Despite these advantages, no previous studies have exploited the millions of web tables to augment their open QA system.
|
| 14 |
+
|
| 15 |
+
In this paper, we describe the first study to jointly exploit tables and text for open-domain question answering. For this purpose, we construct a new dataset, Open Table-and-Text Question Answering (OTT-QA). OTT-QA is built on the HybridQA dataset (Chen et al., 2020), and like HybridQA, OTTQA questions are multi-hop questions which require aggregating information from both tables and text to answer. However, unlike HybridQA, OTT-QA requires the system to retrieve relevant tables and text — in contrast, in HybridQA, the ground truth tables and textual passages required for each question are given. To produce OTT-QA’s questions, we begin by re-annotating the questions from HybridQA to ‘decontextualize’ them—i.e., we make questions suitable for the open-domain setting so that unique answers can be determined from the question alone, without needing context from the provided text and tables. We then add new questions to remove potential biases. After these steps, OTT-QA contains $4 5 K$ human-annotated questions that require retrieving and aggregating information over tables and text from the whole Wikipedia. Examples from OTT-QA are depicted in Figure 1. Note the table and passages contain non-overlapping information, and both of them must be understood to answer the question. For example, the question has a low lexical overlap with the passage about the ‘Lakers’, and it needs the table as the bridge to retrieve this passage. Such cross-modality multi-hop retrieval features OTT-QA. More examples are displayed in Appendix.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The problem setting: A OTT-QA model needs to retrieve from two candidate pools and then perform multi-hop reasoning to find answers.
|
| 19 |
+
|
| 20 |
+
OTT-QA is distinguished from the existing QA datasets in two aspects. Existing table-based QA datasets (Pasupat & Liang, 2015; Yu et al., 2018; Chen et al., 2020) operates in the closed setting without requiring any retrieval, whereas most existing open QA datasets (Joshi et al., 2017; Yang et al., 2018) require only text retrieval, not table retrieval. One dataset, Natural Questions (NQ) (Kwiatkowski et al., 2019) includes some tabular information in its corpus, but the tables are nearly always of a restricted type (infobox tables with only a single row). In contrast, OTT-QA models require retrieving both tabular data and text, and unlike the NQ dataset, requires information fusion from text and tables in non-trivial ways. OTT-QA poses novel and realistic challenges to both the retriever and reader in open QA though the questions are less natural than the real queries from NQ (Kwiatkowski et al., 2019). Retrievers for OTT-QA need to consider two information formats, making the search space larger. Even worse, as questions in OTT-QA often require multi-hop inference, one round of retrieval is often not enough. Readers for OTT-QA also need to aggregate a significant amount of knowledge-intensive information, compared to other reader models: a single table in OTT-QA has an average length of over 300 words. Moreover, readers are often expected to process multiple retrieved units due to the uncertainty in retrieval, which makes it difficult to design strong reader models (Devlin et al., 2019; Liu et al., 2019) with a length limit of 512 tokens.
|
| 21 |
+
|
| 22 |
+
The baseline system that we propose to address these challenges uses an iterative retriever (Sun et al., 2019; Qi et al., 2019; Min et al., 2019; Ding et al., 2019; Asai et al., 2019) and a BERT reader (Devlin et al., 2019). The iterative retriever explores multiple evidence documents iteratively, interacting with the candidate pool to gradually reformulate the query. Beam search is used to find multiple subsets of documents that may contain all the required evidence, and each subset is then fed to the BERT reader to predict the answer span. The highest-scored prediction is chosen as the answer. The iterative retriever needs to re-encode the query with a big transformer and re-search over the candidate pool, such a procedure (especially dense) can be computationally expensive. Furthermore, the BERT reader fails to capture a global overview of the retrieved documents, which leads to bad local optimum in the model prediction.
|
| 23 |
+
|
| 24 |
+
We propose a more sophisticated system that addresses these challenges with two novel strategies: namely fusion retrieval and cross-block reading. The fusion retriever first pre-aligns the table segments to their highly related passages, using entity linking. Then, the aligned table segments and passages are grouped as a fused block, which contains aggregated information from two modalities; hence, compared to the previous documents, it contains richer context to benefit the following retrieval. We view the fused block as the basic unit to be retrieved, and instead of performing multiple runs of retrieval iteratively, the fusion retriever is used once to retrieve the top $K$ fused blocks; however, due to errors in fusion and retrieval, the retrieved top-1 fused block might not contain the necessary information. We thus also propose a cross-block reader based on a sparse-attention based transformer architecture (Ainslie et al., 2020; Zaheer et al., 2020), which can process extremely long sequences efficiently. We use the cross-block reader to read all the top-K retrieved fused blocks jointly. Both strategies have proven effective compared to the baseline system: the best model combining the two strategies improves the accuracy of the baseline system by a huge margin.
|
| 25 |
+
|
| 26 |
+
# 2 BACKGROUND
|
| 27 |
+
|
| 28 |
+
The aim of an open QA system is to extract an answer to a question $q$ from a given large corpus. Most open QA models are retriever-reader models, which extract answers in two steps: retrieval and reading. In the retrieval step, a retrieval model $f$ is used to retrieve a set of passages from the text corpus. In the reading step, the reader is then used to extract the answer from them.
|
| 29 |
+
|
| 30 |
+
Retrieval Function There are two commonly-used types of retrieval function $f$ : sparse retrievers and dense retrievers. Our sparse retriever uses a unigram-based BM-25 score to retrieve an evidence unit $b$ from the candidate pool $\mathbb { B }$ . Our dense retrieval function is a dual-encoder model (Bromley et al., 1994), and we follow (Lee et al., 2019; Guu et al., 2020) for the dual encoder design. The query and the passage are encoded with separate Transformers. As in (Devlin et al., 2019), the vector corresponding to the first token, [CLS], is used as a “pooled” representation of the sequence. The dense retrieval function is the dot product between $h _ { q } = \mathtt { B E R T } _ { \mathbb { Q } } ( q ) [ \mathrm { C L S } ]$ and $h _ { b } = \mathtt { B E R T _ { B } } ( b ) [ \mathrm { C L S } ]$ for each evidence block $b$ in the candidate corpus—i.e., the scoring function is $f ( q , b ) = h _ { q } ^ { T } h _ { b }$ , which can viewed as finding the nearest neighbor in vector space. In the multi-hop open QA setting (Yang et al., 2018), an iterative retrieval function (Sun et al., 2019; Min et al., 2019; Ding et al., 2019) is proposed, which defines the retrieval process as an auto-regressive formula. Our iterative retriever function is denoted as $f ( [ q , b _ { 1 } , \cdots , b _ { j - 1 } ] , b _ { j } )$ , which appends the previous $j - 1$ rounds of retrieval to the original $q$ in in the $j$ -th round of retrieval. Beam search is used in test time.
|
| 31 |
+
|
| 32 |
+
Single-Block Reader Due to the uncertainty in retrieval, the top-1 document might not always contain the answer. Existing models normally retrieve the top- $k$ documents and feed them to the reader for span selection. The standard reader (Chen et al., 2017; Joshi et al., 2017) aims to extract a span from each of the retrieved blocks $b _ { i }$ and assign a confidence $f ( q , b _ { i } ) f _ { r e a d } ( a | q , b _ { i } )$ to it, with $f ( \boldsymbol { q } , \boldsymbol { b } _ { i } )$ indicating the retrieval probability and $f _ { r e a d } ( a | q , b _ { i } )$ denoting the span selection probability by reader. Multiple answers $\{ \bar { a } _ { 1 } , \cdots , \bar { a } _ { k } \}$ are ranked with this confidence score and the highest scored answer span $\hat { a }$ is the final answer. Note that the reader needs to run $k$ times, once for each of the top- $k$ retrievals. We refer to this model as the single-block reader and use it as our baseline.
|
| 33 |
+
|
| 34 |
+
HybridQA HybridQA (Chen et al., 2020), a closed-domain QA dataset, is the most related to ours. During the annotation of HybridQA, a table $T$ and its relevant passages $\{ P _ { 1 } , \cdots , P _ { N } \}$ (surrounding text and hyperlinked passage) are given to a crowd worker to write questions which necessarily require both the passage and table information to answer. The original dataset contains 72K multi-hop questions paired with 13K tables with their paired passages. During training/testing time, the ground-truth tables and passages are given to a model, HYBRIDER, to find the final answer. HYBRIDER also serves as an important baseline in our paper.
|
| 35 |
+
|
| 36 |
+
# 3 TASK AND DATASET
|
| 37 |
+
|
| 38 |
+
In OTT-QA, the retrieval corpus consists of a set of table candidates $\mathbb { B } _ { T }$ and a set of passage candidates $\mathbb { B } _ { P }$ . The task is to answer question $q$ by extracting answer strings from blocks $b \in \mathbb { B } _ { T } \cup \mathbb { B } _ { P }$ , where $b$ can be either textual and tabular data. We adopt the standard exact match (EM) and F1 scores (Yang et al., 2018) for evaluation. Different from HybridQA, OTT-QA’s table candidates are web tables without hyperlinks provided. This decision was made to make the problem setting more general, as otherwise systems that solve OTT-QA could only be applied to high-quality data in Wikipedia. However, in OTT-QA, we provide hyperlinks in the training subset, but not dev/test set. Removing hyperlinks in tables makes the overall task much more challenging, but makes the final systems applicable to more general domains. Thus, an OTT-QA model needs to jointly retrieve both tables and text, without abusing gold hyperlinks, and then aggregate them to find the answer.
|
| 39 |
+
|
| 40 |
+
Candidate Pool For our table collection $\mathbb { B } _ { T }$ , we extracted all Wikipedia regular tables with their metadata including page title, page section title, and section text. The metadata, denoted $T _ { M }$ , is essential for de-contextualization. We obtain a table corpus containing over $4 0 0 k$ high-quality tables with an average length of 320 words including metadata. For the text passage collection $\mathbb { B } _ { P }$ , we crawl English Wikipedia dump pages and filter out noisy pages. We follow HybridQA (Chen et al., 2020) and only keep a maximum of 12 sentences in the introduction section as the passage. We obtain a corpus containing over 5 million passages, with an average of 94 words.
|
| 41 |
+
|
| 42 |
+
Notation We define each table as a matrix $T$ , which consists of cells $T _ { i , j }$ with $i$ specifying the row, and $j$ specifying the column. Each cell $T _ { i , j }$ could be a number, date, phrase or even sentence due to its semi-structured nature. However, a single complete table with structured representation (Herzig et al., 2020) can easily exceed the 512-token limit, which poses great challenges to the downstream reader to process top- $K$ retrieval. Hence we propose to decompose each table $T$ into multiple rows $R _ { i }$ , which are combined with the headers, metadata, and global max/min information from the original table as a table segment. The table segment is used as the basic retrieval block in our paper. This decomposition procedure increases candidate $\mathbb { B } _ { T }$ from $4 0 0 k$ to 5 million, making the retrieval problems even more fine-grained and more challenging. Our table segment representation is described in Appendix subsection B.1. In summary, we build a candidate pool of 5 million table segments $\mathbb { B } _ { T }$ and a pool of 5 million passages $\mathbb { B } _ { P }$ . We denote as $\mathbb { B }$ as our full candidate pool, which our model needs to find the block $b$ (a table segment or a passage) containing the answer span.
|
| 43 |
+
|
| 44 |
+
# 3.1 QUESTION AND ANSWER ANNOTATIONS
|
| 45 |
+
|
| 46 |
+
Our question and answer pairs are built upon the existing HybridQA (Chen et al., 2020) dataset, with several significant changes. First, crowd workers ‘decontextualize’ the questions so that they are not under-specified or context-dependent, and thus suitable for the open setting. Second, we add more questions to the development/test set to remove possible annotation bias. During annotation, we adopt strict quality control2 and more details are described in Appendix section A.1.
|
| 47 |
+
|
| 48 |
+
Decontextualization Most questions in HybridQA are contextualized with a given table and several passages, with corresponding questions written by crowd workers. Often, the crowdsourced questions assume the context. For example, the questions might contain the words "the players" because the given table is about "Netherlands players". We thus needed ‘decontextualize’ (Parikh et al., 2020) the original context-dependent questions, so they could serve as standalone questions, specific enough to imply a unique answer relative to the corpus. To discourage excessive unwanted modification, we enforce a two-step annotation procedure, as depicted in Figure 2. In the first phase, the worker is only allowed to insert minimum words or phrases (or replace pronouns) into the questions based on the information presented by Wikipedia Title, Section Title, and Section Text to make the question have a unique answer. After this step, we often potentially obtain overly-complicated questions that are artificial and unnatural. Therefore, we manually selected the worst $2 5 \%$ questions and sent them back to make them more concise and natural.
|
| 49 |
+
|
| 50 |
+
OTT-QA Annotation
|
| 51 |
+
|
| 52 |
+
<table><tr><td colspan="6">Page Title:Netherlandsatthe European Track Championships Section Title: European Track Championships (elite) 2010-current</td><td rowspan="2"></td></tr><tr><td>schema</td><td>Medal</td><td>Championship</td><td>Name</td><td>Event</td><td>Ranking</td></tr><tr><td rowspan="2">content</td><td>Silver</td><td>2010 Pruszk6w</td><td>Tim Veldt</td><td>Men'somnium</td><td>2nd</td><td rowspan="2"></td></tr><tr><td>Bronze</td><td>2011 Apeldoorn</td><td>Kirsten Wild</td><td>Women'somnium</td><td>3rd</td></tr></table>
|
| 53 |
+
|
| 54 |
+
Figure 2: The ‘de-contextualization’ annotation phase of OTT-QA. In the first step, the annotator is restricted to add phrases from the context. In the second step, the annotator is specifically requested to make the sentence more concise and natural.
|
| 55 |
+
|
| 56 |
+
<table><tr><td rowspan=1 colspan=1>0. Original</td><td rowspan=1 colspan=1>Which city does the player winning the silver medal in Men's Omnium come from?</td></tr><tr><td rowspan=1 colspan=1>1. Insertion</td><td rowspan=1 colspan=1>Which citydoes the Netherlands player winning the Men's Omnium silver medalin ETCafter 2010 come from?</td></tr><tr><td rowspan=1 colspan=1>2. Naturalize</td><td rowspan=1 colspan=1>Which city does the Netherlands Men's Omnium silver medalist after 2010 in ETC come from?</td></tr></table>
|
| 57 |
+
|
| 58 |
+
Additional Evaluation Examples As all the questions from HybridQA are based on the $1 3 k$ tables from the HybridQA set, no questions are asked about the newly crawled $4 0 0 k$ tables. This potentially generates unwanted statistical biases or artifacts for the model to exploit, and potentially biases the final evaluation results. Therefore, we randomly sampled another 1100 tables from the newly crawled tables, and follow the original annotation process used by HybridQA to re-collect 2200 new questions. These new questions were mainly used in the dev/test set. Below we refer to the subset of tables used by original HybridQA as the in-domain tables.
|
| 59 |
+
|
| 60 |
+
Distant Supervision Signals For the in-domain tables $( \approx 8 k )$ , the cell-wise hyperlinks are provided in OTT-QA as a potential signal for supervision. We use $H _ { i , j } = \left\{ b _ { 1 } , b _ { 2 } , . . . \in \mathbb { B } _ { P } \right\}$ to denote the hyperlinks in cell $T _ { i , j }$ . Since in HybridQA the oracle fine-grained answer span is not explicitly annotated, we approximate this by traversing the table and hyperlinked pasasages to find all exact matches. This process contains some noise—a manual study reveals that it roughly contains $15 \%$ error. We use this ‘weakly-supervised’ fine-grained information to train our models. We denote the ‘approximate’ block of the answer span for answer $a$ as $b _ { a }$ , and use it to train our model.
|
| 61 |
+
|
| 62 |
+
# 3.2 DATASET STATISTICS
|
| 63 |
+
|
| 64 |
+
After annotation, we sampled roughly 2K questions from the in-domain HybridQA dataset, and then mix them with the newly collected out-domain questions to construct our dev and test sets. Finally, we have 41,469 questions in the training set, 2,214 questions in the dev set, and 2,158 questions in the test set. We conduct more in-detailed analysis over the reasoning types and show them in the Appendix A.3, a remarkable difference from original HybridQA is that a proportion of questions actually have multiple plausible inference chains in the open-domain setting.
|
| 65 |
+
|
| 66 |
+
# 4 MODEL
|
| 67 |
+
|
| 68 |
+
Our model for OTT-QA is a retriever-reader model with new designs for both retriever and reader. As discussed briefly above, we propose to use a fusion retriever instead of using a standard iterative retrieve, and we also propose to use cross-block readers to replace a standard single-block reader.
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
Figure 3: Left: Iterative 3-step retrieval over individual blocks (baseline). Right: Fusion 1-step retrieval over fused groups, which greatly lowers the cost of iterative encoding and retrieving.
|
| 72 |
+
|
| 73 |
+
# 4.1 FUSION RETRIEVER
|
| 74 |
+
|
| 75 |
+
Iterative retrieval (Figure 3, Left) has the following issues. First, iterative retrieval training often requires having supervision signals for every retrieval step to reach good performance, which is not available in OTT-QA. The iterative retrieval also suffers from the problem of error propagation, as early mistakes can propagate to later retrieval stages. Finally, the computation cost for applying a dual-encoder for iterative retrieval is very high, as for every stage, the query embedding has to be re-encoded to include the entire retrieval history.
|
| 76 |
+
|
| 77 |
+
We propose an alternative strategy to replace multi-step retrieval, namely fusion retrieval (Figure 3, Right). In the fusion retriever, we first use an ‘early fusion’ strategy to group relevant heterogeneous data before retrieval. The fusion procedure groups several highly-relevant blocks from different modalities as a self-contained group (fused block), which provides more clues for the retriever to utilize. Early fusion is very important for retrieving table segments, which often have incomplete context by themselves. The early fusion process aims to fuse a table segment and relevant passages into a group. Here we propose to fuse entities mentioned in a table segment to the appropriate passages for those entities; this is similar to document expansion based on a traditional entity linking step. The problem is challenging due to the mismatch between the lexical forms from the
|
| 78 |
+
|
| 79 |
+
How many points per game did Lebron James get in the NBA Season suspended by COVID?
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 4: Left: Single-block reader with input shorter than 512 tokens (baseline). Right: Crossblock reader with length over 4K tokens, and $\bar { A }$ denotes the global state assigned to local block A. The single-block reader is stuck at local optimum, while cross-block reader outputs global optimum.
|
| 83 |
+
|
| 84 |
+
table (which for brevity are often abbreviated) and the relevant passage titles. For example, a cell in the table of "NCAA Division I Men’s Football Tournament" contains the term "Penn State". Directly matching "Penn State" against the passage corpus will lead to "Penn State University" rather than the ground-truth hyperlinked entity, named "Penn State Nittany Lions football". Therefore, we propose an additional augmentation step, which takes in a table segment block $b _ { T }$ and generates a sequence of augmented queries $q _ { 1 } , q _ { 2 } , \cdots , q _ { n }$ token by token to make the queries more similar to the passage title. The augmented queries are then used to search for nearest neighbors in the passage corpus $\mathbb { B } _ { P }$ using BM25 as the final entity linking step, which is depicted in Appendix. The query augmentation is implemented with a GPT-2 model (Radford et al., 2019), fine-tuned on the supervised pairs of (table segment, hyperlink) from the in-domain tables. Each $b _ { T }$ is fed to find its companions $b _ { P } ^ { 1 } , \cdots , b _ { P } ^ { n }$ , they are collectively called $b _ { F }$ .
|
| 85 |
+
|
| 86 |
+
We follow the standard dual-encoder setting (section 2) and the only difference is that we replace the input of the block encoder with $h _ { b } = \mathtt { B E R T _ B } ( [ b _ { T } , b _ { P } ^ { 1 } , \cdot \cdot \cdot , b _ { P } ^ { n } ] )$ ., which captures the cross-attention between the table and the text within a block. The fused embedding contains richer context from both modalities to complement each other. The retriever only needs to retrieve once from the candidate pool, which dramatically decreases the complexity compared to the existing iterative retrievers.
|
| 87 |
+
|
| 88 |
+
To enhance the neural retrieval system to retrieve fused blocks, we apply the Inverse Cloze Task (ICT) (Lee et al., 2019) pretraining task on the corpus of fused blocks. ICT is a way to generate pseudo-training data for dense retrieval. Unlike standard document-wise ICT, our fused block contains both table segments and multiple passages. Given a fused block $b _ { F }$ , we generate the pseudoquery in the following way: 1) we first corrupt the table segment by randomly dropping half of the words from the table metadata and cells to obtain a partial table segment $\hat { b } _ { T }$ . 2) We then randomly sample a sentence $\hat { b } _ { P }$ from the fused passage. We combine $\hat { b } _ { T }$ and $\bar { \boldsymbol { b } } _ { P }$ as a pseudo query $\hat { q }$ and pair it with the original fused block $b _ { F }$ as pre-training data. The pre-training data is applied to enhance the dual encoder’s ability to select lexically matched documents. After pre-training, the retriever is fine-tuned on OTT-QA. Finally, at inference time, the retriever is used to retrieve the top $K$ fused blocks for a question, which are then passed to the reader for answer prediction.
|
| 89 |
+
|
| 90 |
+
# 4.2 CROSS-BLOCK READER
|
| 91 |
+
|
| 92 |
+
The reader typically needs to process the top- $k$ retrieved blocks returned by the retriever to extract the best answer, as the top-1 block might not contain enough evidence to answer the question. As demonstrated in Figure 4, the cross-block reader aims to address this issue by using cross attention between different blocks to model their dependencies. To obtain the cross-block reader, we take the pre-trained long-range sparse attention transformer (ETC) (Ainslie et al., 2020), which can accept up to 4096 tokens as input, and then fine-tune the model on the distant supervision data. During training, the ground truth (fused) blocks are mixed with hard negative blocks from the retriever. We take the top- $k$ retrieval results to fill the 4096 token space (roughly 15 fused blocks).
|
| 93 |
+
|
| 94 |
+
Cross-attention between blocks allows a much more powerful way to aggregate information across the $k$ retrieved blocks compared to the single-block reader, especially when the blocks are fused. This is feasible because of the design of the sparse attention structure in ETC, which can constrain the attention of each token to its neighboring tokens within a local radius in its local block. Such sparse attention can decrease the attention computation complexity from quadratic $\mathcal { O } ( N ^ { 2 } )$ to linear $\mathcal { O } ( N | R | )$ , where $| R |$ is the local radius (where $N = 4 0 9 6$ and $| R | = 8 4$ in our experiments). To allow cross-block interaction, ETC assigns a global state for each local block in the long sequence, and blocks can attention to each other through multiple layers of such global-local structures.
|
| 95 |
+
|
| 96 |
+
Table 1: Main Results. We conduct experiments with both sparse and dense retrievers using the dev set, and then select the best setting to report the test set results (as indicated by the word ”Best”). Fusion-Retriever and Cross-Block Reader are combined to obtain the highest score. $\dagger$ are ablations.
|
| 97 |
+
|
| 98 |
+
<table><tr><td>Retriever</td><td colspan="2">Dev-Sparse</td><td colspan="2">Dev-Dense</td><td colspan="2">Test-Best</td></tr><tr><td>Model</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>HYBRIDER(Top-1) (Chen et al., 2020)</td><td>8.7</td><td>10.9</td><td>8.9</td><td>11.3</td><td>8.4</td><td>10.6</td></tr><tr><td>HYBRIDER (best Top-K) (Chen et al.,2020)</td><td>9.9</td><td>12.2</td><td>10.3</td><td>13.0</td><td>9.7</td><td>12.8</td></tr><tr><td>Iterative-Retrieval + Single-Block Reader</td><td>9.8</td><td>13.3</td><td>7.9</td><td>11.1</td><td>9.6</td><td>13.1</td></tr><tr><td>Fusion-Retrieval + Single-Block Reader</td><td>14.3</td><td>17.8</td><td>13.8</td><td>17.2</td><td>13.4</td><td>16.9</td></tr><tr><td>Iterative-Retrieval + Cross-Block Reader</td><td>17.1</td><td>20.7</td><td>14.4</td><td>18.5</td><td>16.9</td><td>20.9</td></tr><tr><td>Fusion-Retrieval + Cross-Block Reader</td><td>27.7</td><td>31.8</td><td>28.1</td><td>32.5</td><td>27.2</td><td>31.5</td></tr><tr><td>† Table-only Retrieval + Cross-Block Reader</td><td>4.6</td><td>6.9</td><td>4.9</td><td>7.2</td><td>4.4</td><td>7.0</td></tr><tr><td>† Text-only Retrieval + Cross-Block Reader</td><td>8.2</td><td>12.4</td><td>8.9</td><td>12.8</td><td>8.8</td><td>12.1</td></tr><tr><td>† Oracle Link + Fusion-Retrieval + Cross-Block Reader</td><td>35.8</td><td>40.1</td><td>35.2</td><td>39.9</td><td>35.0</td><td>39.5</td></tr><tr><td>† Oracle Table + Link (w/o Retrieval) + HYBRIDER</td><td>44.1</td><td>50.8</td><td>44.1</td><td>50.8</td><td>43.0</td><td>49.8</td></tr></table>
|
| 99 |
+
|
| 100 |
+
# 5 EXPERIMENTS
|
| 101 |
+
|
| 102 |
+
All of our code is based on Tensorflow (Abadi et al., 2016). For the retriever part, the sparse retriever is built on top of DrQA (Chen et al., 2017) with unigram features, and the dense retriever is built with BERT. The single-block retriever is based on BERT-uncased, and the cross-block reader is based on ETC (Ainslie et al., 2020). Both of them consist of 12 layers with a hidden size of 768, the minor differences in the relative positional embedding used in ETC. All the models are trained with a learning rate of 1e-5 optimized by AdamW (Loshchilov & Hutter, 2019). We use in-batch negatives (Lee et al., 2019) to train our dense retrievers. A more detailed implementation of the baseline iterative retriever is described in Appendix subsection B.2. In fusion retriever, we use the ‘fused’ block containing the ‘approximate’ answer block $b _ { a }$ as the positive instance. In iterative retriever, since the auto-regressive model $f ( b _ { j } | q , b _ { 1 } , \cdot \cdot \cdot , b _ { j - 1 } )$ requires fine-grained inference chain for step-wise supervision, which is not given in OTT-QA. We apply lexical match based heuristics to synthesize inference chains as weakly supervised training data (described in Appendix). For all the dense retrievers, we pre-train with 10K steps using the generated pseudo query and then fine-tune them another 10K step using a batch size of 2048. For the cross-block reader, we fine-tune with a batch size of 64. Both are using 16 cloud TPUs.
|
| 103 |
+
|
| 104 |
+
Main Results In our experiments, we experiment with different types of retriever and reader models under both sparse and dense setting, the details are described as follows:
|
| 105 |
+
|
| 106 |
+
• HYBRIDER: this model, designed for closed domain HybridQA questions, is one baseline. Since this model requires a ground truth table with its hyperlinks to do modularized reasoning, we use BM25 to retrieve the most relevant table and passages to reconstruct an ‘approximated’ input for this model. We experiment with top-1,2,3,4 cases where we use the answer with the highest confidence as the final result. We also directly feed the ground-truth table and hyperlinks to HYBRIDER, which roughly estimates an upper limit of this task.
|
| 107 |
+
|
| 108 |
+
• Iterative-Retriever (Sparse): We use a 2-step iterative retriever: in the first step, we apply the question to retrieve the top-10 table segments and top-10 passages. In the second step, we use each retrieved table segment to retrieve its related top-5 passages and concatenate each retrieved passage title with the original question to retrieve the top-5 table segments. We merge and calculate the retrieval score of each unique block and rank them by their score. For the single-block reader, we split the retrieved blocks into 512-token chunks and feed them to the BERT reader. For the cross-block reader, we truncate the top 4096 subword tokens and only feed these tokens to reader.
|
| 109 |
+
|
| 110 |
+
• Iterative-Retriever (Dense): We use a 3-step iterative retriever. In the first step, we encode the question and retrieve the top-8 blocks (either table segment or passage); in the second step, we concatenate the previous retrieved block and the question to re-encode the query vector to further retrieve top-4 blocks; similarly, the last step retrieves top-2 blocks.
|
| 111 |
+
|
| 112 |
+
• Fusion Retriever (Iterative): We use a sparse retriever to directly retrieve the top-15 fused blocks based on bag-of-words BM25 score, and then split it into individual table segments and passage blocks. Since passage could be associated with multiple fused blocks, we merge duplicate blocks and use their summed score. Finally, we rank each block based on its merged retrieval score and truncate the first 4096 subword tokens for the next step.
|
| 113 |
+
|
| 114 |
+
• Fusion Retriever (Iterative): We use a dual-encoder dense retriever to directly retrieve the top-15 fused blocks, and then follow the same procedure as above. Without specifying the dense retriever uses ICT for pre-training by default.
|
| 115 |
+
|
| 116 |
+
• Fusion Retriever w/o ICT and w/o GPT-2: these two ablation studies are aimed to show the effectiveness of our proposed ICT pre-training and query augmentation.
|
| 117 |
+
|
| 118 |
+
The main results are presented in Table 1. First, we can observe that best HYBRIDER top-2 can only achieve a comprised exact match of $9 . 9 \%$ while the oracle HYBRIDER can obtain a score of $44 \%$ , which reflects the difficulties of the hybrid retrieval in our dataset. We restrain the retriever to only retrieve table and text to answer the questions and report their results in Table 1, even with the strong cross-block reader, the model only obtains $10 \%$ EM. These experiments demonstrate the necessity to integrate information from both forms in OTT-QA.
|
| 119 |
+
|
| 120 |
+
By combining the standard iterative retriever and single-block reader, we can slightly improve the score can to roughly $10 \%$ . By replacing the iterative retriever with the proposed sparse fusion retriever, the EM score can reach $14 \%$ , a $4 . 5 \%$ absolute improvement. By replacing the single-block with the proposed cross-block reader, the EM score can reach $17 \%$ , a $7 \%$ absolute improvement. However, by combining the two strategies, the final EM score can reach $28 \%$ , with an $18 \%$ absolute improvement, which is greater than the sum of individual improvements. The observation suggests the two components can affect each other in a positive way. We conjecture that the fusion retriever is more likely to retrieve mutually-supportive blocks in a group, which makes the multi-hop reasoning across different blocks easier for the following cross-block reader. In comparison, the iterative retriever retrieves isolated table segments and passages separately, which can easily miss out on the bridging evidence for building the complete reasoning chain. Thus, the cross-block reader cannot maximize its advantage in reasoning across blocks.
|
| 121 |
+
|
| 122 |
+
By removing the ICT pre-training and query augmentation, we observe that the Dev-EM score drops to $2 4 . 6 \%$ . By removing the GPT-2 query augmentation, the Dev-EM performance drops to $2 2 . 1 \%$ . These two results indicate the effectiveness of the proposed two strategies. By replacing the predicted hyperlinks with the oracle links, the fusion model performance can increase by $7 \%$ EM. This indicates that there is still plenty of room to improve for the table-passage fusion model.
|
| 123 |
+
|
| 124 |
+
Linker/Retriever Results To understand the results more, we evaluate the standalone tablepassage entity linking accuracy and retriever recall.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 5: Entity linker performance (F1).
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 6: Retriever performance $( \mathrm { H I T S } @ 4 \mathrm { K } )$
|
| 131 |
+
|
| 132 |
+
We consider the following linking models: a) BM25 model, which directly uses the cell value to retrieve passages based on their titles without query augmentation, b) a Dual-Encoder model, which encodes the cell value and meta information into a query vector to compute dot-product over all the passage candidate to retrieve, c) a GPT-2 model, which first augments the cell value by the context and then uses BM25. We demonstrate our findings in Figure 5, and evaluate with table-segment-wise
|
| 133 |
+
|
| 134 |
+
F1 score. We observe that directly using BM25 leads to compromised precision of $3 0 . 3 \%$ , which is mainly due to the lack of context information. By using a dual-encoder retriever, the precision can be improved to $42 \%$ . However, many table segments have either zero or multiple linked passages and can be better modeled by an auto-regressive retrieval process.
|
| 135 |
+
|
| 136 |
+
We use $\mathrm { H I T S } @ 4 \mathrm { K }$ is used to measure the retriever performance, which indicates the chance of ground truth block existing in the retrieved 4096 subword tokens. The results are reported in Figure 6. We vary the steps of iterative retrievers to show the necessity of multi-hop retrieval in OTTQA. We observe that the 1-step retrieval has the lowest recall because the answer block in OTT-QA normally has a lower lexical overlap with the query. Adding the second retrieval step can greatly improve the recall, but adding the third retrieval hop has very little impact. In contrast to the iterative retriever, the fusion retriever can consistently improve the performance over the iterative setting for both sparse and dense setting. The sparse setting can rise from $3 5 . 8 \%$ to $4 8 . 1 \%$ indicating the advantage of ‘early’ fusion. The dense retriever’s improvement is more dramatic (from $2 7 . 2 \%$ to $5 2 . 4 \% )$ . We believe this is because the iterative retriever heavily relies on noisy synthetic inference chain data, while the fusion retriever does not require such a fine-grained supervision signal, thus less prone to noise. To better understand the retriever, we conduct detailed error analysis in Appendix C.
|
| 137 |
+
|
| 138 |
+
# 6 RELATED WORK
|
| 139 |
+
|
| 140 |
+
Table Retrieval: Tables are pervasive on the Web, there have been some studies on mining web tables to answer open-domain questions (Sun et al., 2016; Chakrabarti et al., 2020). In Sun et al. (2016), the authors have proposed a pipeline framework to first detect the topic entity and then generate a candidate chain, finally ranking chains to predict the answer cell. In Chakrabarti et al. (2020), the authors investigate different similarity matching features to retrieve tables from the web. Our paper is significantly different from these two studies in two aspects: 1) the previous papers use private small-scale datasets while we collect a large-scale dataset and release it for public use, 2) the previous studies are restricted to only using tables as evidence, while our paper considers a more realistic and challenging setting with both table and text corpus. Tables have been a ubiquitous information representation form to express semi-structured information. There has been a long-standing effort to utilize tables in natural language processing applications (Pasupat & Liang, 2015; Zhong et al., 2017; Yu et al., 2018; Parikh et al., 2020; Chen et al., 2019). However, these existing tasks are restricted to in-domain cases without requiring any retrieval, and our paper is the first to investigate retrieving web tables for downstream tasks. Another pair of related works are TAPAS (Herzig et al., 2020) and TABERT (Yin et al., 2020), which investigate joint pre-training over textual and tabular data. Our method draws inspiration from these models, and also uses special tokens and embeddings to encode spatial and logical operations inside tables.
|
| 141 |
+
|
| 142 |
+
Long Range Transformer: Recently, many transformer variants to resolve the $\mathcal { O } ( n ^ { 2 } )$ attention cost have been proposed including Sparse Attention (Child et al., 2019), Reformer (Kitaev et al., 2020), Routing Transformer (Roy et al., 2020), Longformer (Beltagy et al., 2020) and ETC (Ainslie et al., 2020). These different transformer models apply hierarchical architecture, local-sensitive hashing, global-local state to decrease the attention complexity to nearly linear. Our cross-block reader is based on ETC (Ainslie et al., 2020), but unlike prior works that process one long document for QA, our task requires reading multiple blocks containing both structured and unstructured data. To handle the long sequence of retrieved documents in open-domain question answering, Fusionin-Decoder (Izacard & Grave, 2020) has been proposed to replace the extractive model with an encoder-decoder generative model. The long sequence of passages are split and encoded independently to decrease the computation complexity, but the decoder still uses full attention over the tens of thousands of encoded vectors to generate the answer token by token. Such full-attention can decrease the decoding speed by an order of magnitude, while our sparse-attention-based cross-block reader can still maintain the same speed as the standard BERT model.
|
| 143 |
+
|
| 144 |
+
# 7 CONCLUSION
|
| 145 |
+
|
| 146 |
+
We focus on the problem of performing open question answering over tables and text in this paper. By proposing the fusion retriever and sparse reader, we manage the increase the model’s effectiveness and efficiency by a large margin. One interesting question we would like to ask in the future is: can we extend open question answering system to more modalities like images or audios, etc?
|
| 147 |
+
|
| 148 |
+
# REFERENCES
|
| 149 |
+
|
| 150 |
+
Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for largescale machine learning. In 12th {USENIX} symposium on operating systems design and implementation $\left( \left\{ O S D I \right\} \ I \bar { 6 } \right)$ , pp. 265–283, 2016.
|
| 151 |
+
|
| 152 |
+
Joshua Ainslie, Santiago Ontanon, Chris Alberti, Philip Pham, Anirudh Ravula, and Sumit Sanghai. Etc: Encoding long and structured data in transformers. Proceedings of EMNLP 2020, 2020.
|
| 153 |
+
|
| 154 |
+
Akari Asai, Kazuma Hashimoto, Hannaneh Hajishirzi, Richard Socher, and Caiming Xiong. Learning to retrieve reasoning paths over wikipedia graph for question answering. In International Conference on Learning Representations, 2019.
|
| 155 |
+
|
| 156 |
+
Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
|
| 157 |
+
|
| 158 |
+
Jane Bromley, Isabelle Guyon, Yann LeCun, Eduard Sackinger, and Roopak Shah. Signature verifi- ¨ cation using a” siamese” time delay neural network. In Advances in neural information processing systems, pp. 737–744, 1994.
|
| 159 |
+
|
| 160 |
+
Kaushik Chakrabarti, Zhimin Chen, Siamak Shakeri, and Guihong Cao. Open domain question answering using web tables. arXiv preprint arXiv:2001.03272, 2020.
|
| 161 |
+
|
| 162 |
+
Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading wikipedia to answer opendomain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1870–1879, 2017.
|
| 163 |
+
|
| 164 |
+
Wenhu Chen, Hongmin Wang, Jianshu Chen, Yunkai Zhang, Hong Wang, Shiyang Li, Xiyou Zhou, and William Yang Wang. Tabfact: A large-scale dataset for table-based fact verification. In International Conference on Learning Representations, 2019.
|
| 165 |
+
|
| 166 |
+
Wenhu Chen, Hanwen Zha, Zhiyu Chen, Wenhan Xiong, Hong Wang, and William Wang. Hybridqa: A dataset of multi-hop question answering over tabular and textual data. Proceedings of Findings of EMNLP 2020, 2020.
|
| 167 |
+
|
| 168 |
+
Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 169 |
+
|
| 170 |
+
Nicola De Cao, Gautier Izacard, Sebastian Riedel, and Fabio Petroni. Autoregressive entity retrieval. arXiv preprint arXiv:2010.00904, 2020.
|
| 171 |
+
|
| 172 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019.
|
| 173 |
+
|
| 174 |
+
Bhuwan Dhingra, Manzil Zaheer, Vidhisha Balachandran, Graham Neubig, Ruslan Salakhutdinov, and William W Cohen. Differentiable reasoning over a virtual knowledge base. In International Conference on Learning Representations, 2019.
|
| 175 |
+
|
| 176 |
+
Ming Ding, Chang Zhou, Qibin Chen, Hongxia Yang, and Jie Tang. Cognitive graph for multi-hop reading comprehension at scale. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2694–2703, 2019.
|
| 177 |
+
|
| 178 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. Realm: Retrievalaugmented language model pre-training. Proceedings of ICML 2020, 2020.
|
| 179 |
+
|
| 180 |
+
Jonathan Herzig, Paweł Krzysztof Nowak, Thomas Muller, Francesco Piccinno, and Julian Martin ¨ Eisenschlos. Tapas: Weakly supervised table parsing via pre-training. ACL 2020, 2020.
|
| 181 |
+
|
| 182 |
+
Gautier Izacard and Edouard Grave. Leveraging passage retrieval with generative models for open domain question answering. arXiv preprint arXiv:2007.01282, 2020.
|
| 183 |
+
|
| 184 |
+
Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1601–1611, 2017.
|
| 185 |
+
|
| 186 |
+
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen- ˘ tau Yih. Dense passage retrieval for open-domain question answering. EMNLP 2020, 2020.
|
| 187 |
+
|
| 188 |
+
Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. ICLR, 2020.
|
| 189 |
+
|
| 190 |
+
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453–466, 2019.
|
| 191 |
+
|
| 192 |
+
Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 6086–6096, 2019.
|
| 193 |
+
|
| 194 |
+
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.
|
| 195 |
+
|
| 196 |
+
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. ICLR 2019, 2019.
|
| 197 |
+
|
| 198 |
+
Sewon Min, Danqi Chen, Luke Zettlemoyer, and Hannaneh Hajishirzi. Knowledge guided text retrieval and reading for open domain question answering. arXiv preprint arXiv:1911.03868, 2019.
|
| 199 |
+
|
| 200 |
+
Ankur P Parikh, Xuezhi Wang, Sebastian Gehrmann, Manaal Faruqui, Bhuwan Dhingra, Diyi Yang, and Dipanjan Das. Totto: A controlled table-to-text generation dataset. arXiv preprint arXiv:2004.14373, 2020.
|
| 201 |
+
|
| 202 |
+
Panupong Pasupat and Percy Liang. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1470–1480, 2015.
|
| 203 |
+
|
| 204 |
+
Fabio Petroni, Aleksandra Piktus, Angela Fan, Patrick Lewis, Majid Yazdani, Nicola De Cao, James Thorne, Yacine Jernite, Vassilis Plachouras, Tim Rocktaschel, et al. Kilt: a benchmark for knowl-¨ edge intensive language tasks. arXiv preprint arXiv:2009.02252, 2020.
|
| 205 |
+
|
| 206 |
+
Peng Qi, Xiaowen Lin, Leo Mehr, Zijian Wang, and Christopher D Manning. Answering complex open-domain questions through iterative query generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 2590–2602, 2019.
|
| 207 |
+
|
| 208 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8):9, 2019.
|
| 209 |
+
|
| 210 |
+
Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond. Now Publishers Inc, 2009.
|
| 211 |
+
|
| 212 |
+
Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. arXiv preprint arXiv:2003.05997, 2020.
|
| 213 |
+
|
| 214 |
+
Haitian Sun, Bhuwan Dhingra, Manzil Zaheer, Kathryn Mazaitis, Ruslan Salakhutdinov, and William Cohen. Open domain question answering using early fusion of knowledge bases and text. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4231–4242, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1455. URL https://www.aclweb.org/anthology/ D18-1455.
|
| 215 |
+
|
| 216 |
+
Haitian Sun, Tania Bedrax-Weiss, and William Cohen. PullNet: Open domain question answering with iterative retrieval on knowledge bases and text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 2380–2390, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1242. URL https://www.aclweb.org/anthology/D19-1242.
|
| 217 |
+
|
| 218 |
+
Huan Sun, Hao Ma, Xiaodong He, Wen-tau Yih, Yu Su, and Xifeng Yan. Table cell search for question answering. In Proceedings of the 25th International Conference on World Wide Web, pp. 771–782, 2016.
|
| 219 |
+
|
| 220 |
+
Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2369–2380, 2018.
|
| 221 |
+
|
| 222 |
+
Wen-tau Yih, Kristina Toutanova, John C Platt, and Christopher Meek. Learning discriminative projections for text similarity measures. In Proceedings of the fifteenth conference on computational natural language learning, pp. 247–256, 2011.
|
| 223 |
+
|
| 224 |
+
Pengcheng Yin, Graham Neubig, Wen-tau Yih, and Sebastian Riedel. Tabert: Pretraining for joint understanding of textual and tabular data. ACL 2020, 2020.
|
| 225 |
+
|
| 226 |
+
Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, et al. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3911–3921, 2018.
|
| 227 |
+
|
| 228 |
+
Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. arXiv preprint arXiv:2007.14062, 2020.
|
| 229 |
+
|
| 230 |
+
Victor Zhong, Caiming Xiong, and Richard Socher. Seq2sql: Generating structured queries from natural language using reinforcement learning. arXiv preprint arXiv:1709.00103, 2017.
|
| 231 |
+
|
| 232 |
+
# A DATASET COLLECTION
|
| 233 |
+
|
| 234 |
+
# A.1 DATASET ANNOTATION
|
| 235 |
+
|
| 236 |
+
Filtering The original HybridQA dataset contains over $7 2 k$ questions paired with $1 3 k$ hyperlinked tables. We adopt two filtering heuristics to make the decontextualization easier. First, we filter out tables without enough meta-information or containing too much non-textual information3. Second, we filter out overly-long questions, i.e., questions longer than 30 words. These two filtering heuristics result in a cleaner subset of $4 6 k$ questions paired with $9 k$ in-domain tables.
|
| 237 |
+
|
| 238 |
+
Quality Control During annotation, we conduct strict manual quality evaluation over the decontextualized questions, with the following criteria: 1) the annotated question retains the same semantics and answer as before, 2) the annotated question still requires multi-hop reasoning over both table and passages, and 3) the annotated question is concise and fluent. The manual quality checking was performed over batches distributed to the same annotator. Each batch consists of six questions, one of which will be sampled to decide the acceptance/rejection of the whole batch. The overall acceptance rate for the crowd-sourcing job is $71 \%$ , and a rejected job was re-distributed until it was accepted.
|
| 239 |
+
|
| 240 |
+
# A.2 DATASET EXAMPLES
|
| 241 |
+
|
| 242 |
+
We demonstrate more examples in Figure 7, which includes more diverse inference chains, like table text; text table text; text $^ +$ text comparative table. Our model is able to perform these reasoning types quite well by jointly matching a query against a fused table-text block.
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
Figure 7: More examples from OTT-QA
|
| 246 |
+
|
| 247 |
+
# A.3 QUESTION TYPES
|
| 248 |
+
|
| 249 |
+
We randomly sampled 100 questions from the dataset to manually analyze the kinds of inference chains seen in OTT-QA and divide the major types into the following categories:
|
| 250 |
+
|
| 251 |
+
1. Single hop questions $( 1 3 \% )$ require reading one table or one passage to answer. 2. Two hop questions $( 5 7 \% )$ require reading one passage and one table to answer. These can be subclassified as ‘table bridge’ ‘answer text’4 or ‘text bridge’ ‘answer table’.
|
| 252 |
+
|
| 253 |
+
3. Multi-hop questions $( 3 0 \% )$ require reading two passages and one table to answer. These mainly following the reasoning chain of ‘text bridge’ ‘table bridge’ ‘answer text’.
|
| 254 |
+
|
| 255 |
+
4. Questions with multiple reasoning paths: Due to information redundancy in Wikipedia, similar information can appear in both tables and text. We find that $9 \%$ of questions are answerable by reading one text passage, $18 \%$ of questions are answerable by reading two text passages and $4 \%$ of questions are answerable by reading two tables.
|
| 256 |
+
|
| 257 |
+
# B MODEL DETAILS
|
| 258 |
+
|
| 259 |
+
# B.1 RETRIEVAL BLOCK REPRESENTATION
|
| 260 |
+
|
| 261 |
+
The table decomposition is visualized in Figure 8. The title/section title are prefixed to the table segment. We add the row position token ‘1st’ and a max/min special token over the column to infuse global table information into the segmented unit. The column embedding is added as another vector to the representation. The table segment representation is relatively small and easy to deal with in the following reader model. After the table-passage alignment, we group the highly related units together and represent them as the lower part demonstrated in Figure 8. We add [SEP] tokens to separate different passages and set their type id to 0. Such a flattened representation for fused block $b _ { F }$ will be used throughout our experiments for both sparse/dense retriever and ETC reader.
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
Figure 8: The decomposition of the original table into segments.
|
| 265 |
+
|
| 266 |
+
# B.2 ITERATIVE RETRIEVER
|
| 267 |
+
|
| 268 |
+
Iterative retrieval has been used in recent graph-based multi-hop retrieval models to gradually retrieve documents to find the correct supporting evidence. Specifically, the retriever conditions the $i$ -th round retrieval on the previous round of retrieval results.
|
| 269 |
+
|
| 270 |
+
Sparse Retriever The sparse retriever uses uni-gram lexical feature to compute the BM-25 score between the $q , . . , b _ { 1 . . j - 1 }$ over $b _ { j } \in \mathbb { B }$ to get the top candidates. Here we describe a two-step retrieval procedure, called here the LxM procedure. In the first step, the model calculates the BM25 score between question over all the candidates in $\mathbb { B }$ to select top $_ { \textrm { L } / 2 }$ table segments $b _ { T }$ , and $_ { \textrm { L } / 2 }$ passages $b _ { P }$ . In the second step, the question is concatenated with the retrieved table segment to form $_ { \textrm { L } / 2 }$ new queries $[ q ; b _ { T } ]$ which are used to retrieve LM/2 passages from $\mathbb { B }$ . The question is also concatenated with the retrieved passage titles to form another $\mathrm { \ K } / 2$ queries $[ q ; b _ { P } ]$ to retrieve LM/2 table segments. The retrieval procedure results in at most $_ { \mathrm { L M + L } }$ unique blocks. Each unique block aggregates its score from two rounds, denoted as $f ( \boldsymbol { q } , \boldsymbol { b } )$ , which is used to rank the top-K candidates for the next step. We truncate the top-K candidate by thresholding their combined length.
|
| 271 |
+
|
| 272 |
+
Dual-Encoder Retriever The dual encoder uses a BERT-based encoder to compress each question, table segment, and passage into a fixed-length vector and then computes the dot product between fixed vectors to obtain the highest scored candidates from pool $\mathbb { B }$ . However, since the dataset does not provide an explicit supervision signal for the iterative retrieval, we heuristically synthesize some noisy retrieval chains using lexical matching. The retrieval inference chain is depicted as $b _ { 1 } b _ { 2 } b _ { K }$ , which is used to train the model $f ( b _ { k } | q , b _ { 1 \dots k - 1 } )$ in a supervised manner. At inference time, the dual encoder retriever will encode a query $q$ into a fixed vector and retrieve the first $L$ blocks from $\mathbb { B }$ . The blocks are appended to query $q$ to form $L$ new queries $[ q ; b _ { i } ]$ , which is re-encoded and search for $L M$ new neighbors. We experiment with a maximum of 3-step retrieval of $\mathbf { L x M x N }$ to obtain a maximum of $_ \mathrm { L + L x M + L M N }$ unique blocks. Similarly, each unique block aggregates its score from different rounds to select the top-K candidates for the next step.
|
| 273 |
+
|
| 274 |
+
# B.3 SPARSE FUSED RETRIEVER
|
| 275 |
+
|
| 276 |
+
The sparse fused retriever uses the uni-gram lexical feature to compute the BM-25 score between $q$ over $b _ { F } \in \mathbb { B } _ { F }$ . The uni-gram feature of $b _ { F }$ is based on the representation depicted in subsection B.1. Note that this BM25 feature will be much more abundant than the BM25 feature in iterative sparse retriever because it encloses more uni-grams. Instead of doing multiple rounds of retrieval, the fused retrieval once retrieve once over the candidate pool and treat all the units inside the block as the same retrieval score. Finally, We truncate the top- $\mathbf { \nabla } \cdot \mathbf { K }$ candidate by thresholding their combined length.
|
| 277 |
+
|
| 278 |
+
# B.4 QUERY AUGMENTATION
|
| 279 |
+
|
| 280 |
+
The query augmentation procedure is depicted in Figure 9.
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 9: Fusion: 1) GPT-2 query augmentation, 2) nearest neighbor search over passages.
|
| 284 |
+
|
| 285 |
+
# B.5 DENSE RETRIEVAL/IN-BATCH NEGATIVE
|
| 286 |
+
|
| 287 |
+
Recently, different dense-retrieval methods (Lee et al., 2019; Guu et al., 2020; Karpukhin et al., 2020) based on dual-encoders (Bromley et al., 1994) have been shown to surpass traditional sparse retrieval in open-QA models. The query and the passage are both encoded using a Transformer, which produces a vector for every token. As in (Devlin et al., 2019), the vector corresponding to the first token, [CLS], which is used as a “pooled” representation of the sequence (denoted $\mathtt { B E R T } _ { \mathtt { C L S } } ,$ ). The dense retrieval function can be represented as the dot product between $\mathtt { B E R T } _ { \mathtt { C L S } } ( q )$ and $\mathtt { B E R T } _ { \mathtt { C L S } } ( p )$ for each document in the text collection, much like TF-IDF (Chen et al., 2017) and BM25 (Robertson & Zaragoza, 2009) on some Open QA datasets. To train the dual-encoder, the in-batch negative trick (Yih et al., 2011; Karpukhin et al., 2020) plays an important role, which uses B training instances in each batch and views the other B-1 instances inside the batch as the negatives. In this way, the model reuses computation and effectively trains on $B ^ { 2 }$ question/document pairs in each batch.
|
| 288 |
+
|
| 289 |
+
# C PERFORMANCE ANALYSIS
|
| 290 |
+
|
| 291 |
+
# C.1 QUESTION TYPE BREAKDOWN PERFORMANCE
|
| 292 |
+
|
| 293 |
+
We measure our best model’s performance (dense fusion retriever $^ +$ cross-block reader) and baseline model (dense Iterative-Retriever $^ +$ single-block reader) on different question types (subsection A.3) to show the breakdown statistics in Figure 10 and Figure 11. As we can observe, the gap between our model vs. baseline in 1-hop question is less significant as 2-hop and 3-hop questions. The iterative retriever’s performance is sensitive to the number of hops in the question, which is the largely due to the error propagation in the beam search stage. If the retriever fails to include the golden block in the earlier stage beam, the retrieval in later stage cannot recover from such failure. In contrast, our fusion retriever can group the related information prior to retrieval to retrieve all the blocks at once, which makes the model less prone to the error propagation issue. Another reason is due to the cross-block reader, which can reason over different blocks in the latent space, such implicit reasoning can also decrease the error propagation issue. To sum up, our model is more powerful to deal with complex multi-hop open questions with much less performance drop.
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 10: Breakdown for iterative retriever Figure 11: Breakdown for fusion retriever $^ +$ $^ +$ sing-block reader. cross-block reader.
|
| 297 |
+
Figure 12: The main error types in the retriever.
|
| 298 |
+
|
| 299 |
+
# C.2 RETRIEVER ERROR ANALYSIS
|
| 300 |
+
|
| 301 |
+
We conduct error analysis to see what are the major issues with the retriever and conclude the following types in Figure 12. The major issues causing the system to retrieve unrelated evidence are low lexical overlap, fusion errors, numerical reasoning and distracting passages or tables. In the
|
| 302 |
+
|
| 303 |
+
<table><tr><td>Reason</td><td>Example</td><td>Groundtruth Block</td></tr><tr><td>Low Lexical Overlap</td><td>Where is the NYU Alumni from 1980 who now serves as.</td><td>Table: New York University Alumni in Politics and Science....</td></tr><tr><td rowspan="2">Error in Fusion</td><td rowspan="2">Who is the coach of Pittsburgh team in NCAA division I football team in 1980?</td><td>Table: List of NCAA Division I Cell: Pittsburgh</td></tr><tr><td>Fail to link to the passage: Pitsburgh Panthers</td></tr><tr><td rowspan="2">Numerical Reasoning</td><td rowspan="2">Who achieves the highest score in the Grand Prix 1980s Men's..</td><td>Table: List of Grand Prix 1980s Men’'s.</td></tr><tr><td>The time is not in regular format, SQL operation</td></tr><tr><td rowspan="2">Distraction</td><td rowspan="2">Where of 1990 Grammy Award winner for ... .come from in?</td><td>cannot select the max/min row. Table: Grammy Lifetime Achievement Award</td></tr><tr><td>Many tables from are about general "Grammy Awards",the groundtruth table only differentiate</td></tr><tr><td colspan="2">Retriever Error Breakdown</td><td>from the others a little bit. Breakdown of Errors</td></tr><tr><td colspan="2">40% 36% 32%</td><td></td></tr><tr><td colspan="2">30% 24%</td><td></td></tr><tr><td colspan="2">20%</td><td>28% 49%</td></tr><tr><td colspan="2">10% 8%</td><td>23%</td></tr><tr><td colspan="2">0% Retriever</td><td></td></tr></table>
|
| 304 |
+
|
| 305 |
+
Low-Lexical-Overlap case, the errors are mainly coming from the abbreviation, rephrasing of the table metadata, for example, ‘New York University’ is shortened as ‘NYU’, etc. In the Fusion-Error case, the issue is mainly because the entity-linking model fails to fuse all the hyperlinked passages, the error $( \mathrm { F 1 } { = } 5 0 \%$ ) is quantitatively reflected in the entity-linker-performance figure. NumericalReasoning error is mainly related to the failure to find max/min/earliest/latest row in the table. The distraction error is mainly caused by some distracting passages or tables having very similar information. We sample 50 error samples from the dev-set and attribute their errors to the above categories. As shown in the left part, we found that the numerical reasoning error is not as severe as the other three types because the proportion of questions requiring it is relatively small. Besides the low-lexical overlap error, which is general across other open QA datasets like NQ and HoptpotQA, we found the fusion and distraction errors quite specific in our dataset.
|
| 306 |
+
|
| 307 |
+
• (Fusion) Questions which ask about tables which are linked to too many linked passages. For example, a question over table “Team Record” in https://en.wikipedia.org/ wiki/Sevens_Grand_Prix_Series is hard because some table rows associate with over 10 passages, it’s hard to link them and fuse all of them into a fused block. (Distraction) Questions which ask about topics which are contained by too many similar tables, it’s hard to differentiate the true one. For example, there are over ten tables in https://en.wikipedia.org/wiki/List_of_RMIT_University_ people, these similar tables can easily distract the attention of the retriever to select the wrong one from the same page.
|
| 308 |
+
|
| 309 |
+
From our quantitative results, we can attribute the errors to retriever and reader, among all the examples, $49 \%$ of examples cannot find the correct supporting block. For the rest $51 \%$ examples with correct block retrieved, the reader fails to select the correct span for $23 \%$ of them.
|
| 310 |
+
|
| 311 |
+
# C.3 LENGTH SENSITIVITY ANALYSIS OF RETRIEVAL/READER
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
We perform sensitivity analysis for both retriever and reader in Figure 13. We gradually increase
|
| 315 |
+
Figure 13: Analyzing retriever performance.
|
| 316 |
+
|
| 317 |
+
the length limit of retrieved evidence from 400 to 4096 to first visualize its impact on the sparse iterative and dense fusion retriever. For both fusion and iterative retriever, we can observe that both of their recall $@ \mathrm { K }$ significantly improves as the length limit increases. With a low budget of token limit, their performance is gap is smaller because its performance is dominated by the singlehop questions in the dataset. As the length limit increases, the improvement for fusion retriever is steeper than iterative retriever because the contextualized fusion block becomes easier to retrieve than standalone table segment or passage.
|
| 318 |
+
|
| 319 |
+
We also visualize the input length’s impact on the single-block The performance of single vs crossblock reader. With a low budget of token limit, both single-block and cross-block readers are comparable. However, as the limit increases to 4000, the cross-block reader can digest long input with its sparse attention mechanism to achieve better scores, while the single-block reader needs to truncate the information to read independently, which leads to a even lower EM score due to introduced noise. This observation reveals the importance of modeling cross-attention between different retrieved evidence units to reach a consistent answer. In single-block reader, dealing with different blocks independently can lead to suboptimal prediction in our dataset.
|
| 320 |
+
|
| 321 |
+
# D CONNECTION TO EXISTING WORK
|
| 322 |
+
|
| 323 |
+
KB and Text The problem combining structured and unstructured data has been studied in question answering. The previous approaches are mainly divided into two categories: 1) FusionNet and PullNet (Sun et al., 2018; 2019) simulate a KB-incomplete setting by masking out some triples from a knowledge graph and use textual information to complete the masked KB triples; these experiments are conducted on KB-based QA datasets. 2) DrKIT (Dhingra et al., 2019) and KnowledgeGuided Retrieval (Min et al., 2019) propose to use entity mentions and relations to guide the retrieval from the web. However, the KB is mainly used as an assisting tool, rather than a necessary information source. In OTT-QA, the structured data is used as necessary information in a realistic setting. The two information forms are combined in a non-trivial way, which makes the problem much harder than the other structure-unstructured QA settings.
|
| 324 |
+
|
| 325 |
+
Entity Linking Our generative entity linker is related to knowledge-enhanced language understanding (Petroni et al., 2020), which proposes a seq2seq model to deal with different knowledge-intensive tasks like slot filling, entity linking, etc. There is a concurrent related work on auto-regressive entity linking (De Cao et al., 2020), which also demonstrates the advantages of using an autoregressive generation model for entity retrieval.
|
parse/train/MmCRswl1UYl/MmCRswl1UYl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH.md
ADDED
|
@@ -0,0 +1,479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NEGATIVE DATA AUGMENTATION
|
| 2 |
+
|
| 3 |
+
Abhishek Sinha1∗ Kumar Ayush1∗ Jiaming Song1∗ Burak Uzkent1 Hongxia Jin2
|
| 4 |
+
|
| 5 |
+
# Stefano Ermon1
|
| 6 |
+
|
| 7 |
+
Department of Computer Science1
|
| 8 |
+
Stanford University
|
| 9 |
+
{a7b23, kayush, tsong, buzkent, ermon}@stanford.edu
|
| 10 |
+
|
| 11 |
+
Samsung Research America2
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Data augmentation is often used to enlarge datasets with synthetic samples generated in accordance with the underlying data distribution. To enable a wider range of augmentations, we explore negative data augmentation strategies (NDA) that intentionally create out-of-distribution samples. We show that such negative out-of-distribution samples provide information on the support of the data distribution, and can be leveraged for generative modeling and representation learning. We introduce a new GAN training objective where we use NDA as an additional source of synthetic data for the discriminator. We prove that under suitable conditions, optimizing the resulting objective still recovers the true data distribution but can directly bias the generator towards avoiding samples that lack the desired structure. Empirically, models trained with our method achieve improved conditional/unconditional image generation along with improved anomaly detection capabilities. Further, we incorporate the same negative data augmentation strategy in a contrastive learning framework for self-supervised representation learning on images and videos, achieving improved performance on downstream image classification, object detection, and action recognition tasks. These results suggest that prior knowledge on what does not constitute valid data is an effective form of weak supervision across a range of unsupervised learning tasks.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Data augmentation strategies for synthesizing new data in a way that is consistent with an underlying task are extremely effective in both supervised and unsupervised learning (Oord et al., 2018; Zhang et al., 2016; Noroozi & Favaro, 2016; Asano et al., 2019). Because they operate at the level of samples, they can be combined with most learning algorithms. They allow for the incorporation of prior knowledge (inductive bias) about properties of typical samples from the underlying data distribution (Jaiswal et al., 2018; Antoniou et al., 2017), e.g., by leveraging invariances to produce additional “positive” examples of how a task should be solved.
|
| 20 |
+
|
| 21 |
+
To enable users to specify an even wider range of inductive biases, we propose to leverage an alternative and complementary source of prior knowledge that specifies how a task should not be solved. We formalize this intuition by assuming access to a way of generating samples that are guaranteed to be out-of-support for the data distribution, which we call a Negative Data Augmentation (NDA). Intuitively, negative out-of-distribution (OOD) samples can be leveraged as a useful inductive bias because they provide information about the support of the data distribution to be learned by the model. For example, in a density estimation problem we can bias the model to avoid putting any probability mass in regions which we know a-priori should have zero probability. This can be an effective prior if the negative samples cover a sufficiently large area. The best NDA candidates are ones that expose common pitfalls of existing models, such as prioritizing local structure over global structure (Geirhos et al., 2018); this motivates us to consider known transformations from the literature that intentionally destroy the spatial coherence of an image (Noroozi & Favaro, 2016; DeVries & Taylor, 2017; Yun et al., 2019), such as Jigsaw transforms.
|
| 22 |
+
|
| 23 |
+
Building on this intuition, we introduce a new GAN training objective where we use NDA as an additional source of fake data for the discriminator as shown in Fig. 1. Theoretically, we can show that if the NDA assumption is valid, optimizing this objective will still recover the data distribution in the limit of infinite data. However, in the finite data regime, there is a need to generalize beyond the empirical distribution (Zhao et al., 2018). By explicitly providing the discriminator with samples we want to avoid, we are able to bias the generator towards avoiding undesirable samples thus improving generation quality.
|
| 24 |
+
|
| 25 |
+
Furthermore, we propose a way of leveraging NDA for unsupervised representation learning. We propose a new contrastive predictive coding (He et al., 2019; Han et al., 2019) (CPC) objective that encourages the distribution of representations corresponding to in-support data to become disjoint from that of NDA data. Empirically, we show that applying NDA with our proposed transformations (e.g., forcing the representation of normal and jigsaw images to be disjoint) improves performance in downstream tasks.
|
| 26 |
+
|
| 27 |
+
With appropriately chosen NDA strategies, we obtain superior empirical performance on a variety of tasks, with almost no cost in computation. For generative modeling, models trained with NDA achieve better image generation, image translation and anomaly detection performance compared with the same model trained without NDA. Similar gains are observed on representation learning for images and videos over downstream tasks such as image classification, object detection and action recognition.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: Negative Data Augmentation for GANs.
|
| 31 |
+
|
| 32 |
+
These results suggest that NDA has much potential to improve a variety of self-supervised learning techniques.
|
| 33 |
+
|
| 34 |
+
# 2 NEGATIVE DATA AUGMENTATION
|
| 35 |
+
|
| 36 |
+
The input to most learning algorithms is a dataset of samples from an underlying data distribution $p _ { d a t a }$ . While $p _ { d a t a }$ is unknown, learning algorithms always rely on prior knowledge about its properties (inductive biases (Wolpert & Macready, 1997)), e.g., by using specific functional forms such as neural networks. Similarly, data augmentation strategies exploit known invariances of $p _ { d a t a }$ , such as the conditional label distribution being invariant to semantic-preserving transformations.
|
| 37 |
+
|
| 38 |
+
While typical data augmentation strategies exploit prior knowledge about what is in support of $p _ { \mathrm { d a t a } }$ , in this paper, we propose to exploit prior knowledge about what is not in the support of $p _ { \mathrm { d a t a } }$ . This information is often available for common data modalities (e.g., natural images and videos) and is under-exploited by existing approaches. Specifically, we assume: (1) there exists an alternative distribution $\overline { { p } }$ such that its support is disjoint from that of $p _ { d a t a }$ ; and (2) access to a procedure to efficiently sample from $\overline { { p } }$ . We emphasize $\overline { { p } }$ need not be explicitly defined (e.g., through an explicit density) – it may be implicitly defined by a dataset or by a procedure that transforms samples from $p _ { \mathrm { d a t a } }$ into ones from $\overline { { p } }$ by suitably altering their structure.
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2: Negative augmentations produce out-of-distribution samples lacking the typical structure of natural images; these negative samples can be used to inform a model on what it should not learn.
|
| 42 |
+
|
| 43 |
+
Analogous to typical data augmentations, NDA strategies are by definition domain and task specific. In this paper, we focus on natural images and videos, and leave the application to other domains (such as natural language processing) as future work. How do we select a good NDA strategy? According to the manifold hypothesis (Fefferman et al., 2016), natural images lie on low-dimensional manifolds: $p _ { d a t a }$ is supported on a low-dimensional manifold of the ambient (pixel) space. This suggests that many negative data augmentation strategies exist. Indeed, sampling random noise is in most cases a valid NDA. However, while this prior is generic, it is not very informative, and this NDA will likely be ineffective for most learning problems. Intuitively, NDA is informative if its support is close (in a suitable metric) to that of $p _ { d a t a }$ , while being disjoint. These negative samples will provide information on the “boundary” of the support of $p _ { d a t a }$ , which we will show is helpful in several learning problems. In most of our tasks, the images are processed by convolutional neural networks (CNNs) that are good at processing local features but not necessarily global features (Geirhos et al., 2018). Therefore, we may consider NDA examples to be ones that preserve local features (“informative”) and break global features, so that it forces the CNNs to learn global features (by realizing NDAs are different from real data).
|
| 44 |
+
|
| 45 |
+
Leveraging this intuition, we show several image transformations from the literature that can be viewed as generic NDAs over natural images in Figure 2, that we will use for generative modeling and representation learning in the following sections. Details about these transformations can be found in Appendix B.
|
| 46 |
+
|
| 47 |
+
# 3 NDA FOR GENERATIVE ADVERSARIAL NETWORKS
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 3: Schematic overview of our NDA framework. Left: In the absence of NDA, the support of a generative model $P _ { \theta }$ (blue oval) learned from samples (green dots) may “over-generalize” and include samples from $\overline { { P _ { 1 } } }$ or $\overline { { P _ { 2 } } }$ . Right: With NDA, the learned distribution $P _ { \theta }$ becomes disjoint from NDA distributions $\overline { { P _ { 1 } } }$ and $\overline { { P _ { 2 } } }$ , thus pushing $P _ { \theta }$ closer to the true data distribution $p _ { d a t a }$ (green oval). As long as the prior is consistent, i.e. the supports of $\overline { { P _ { 1 } } }$ and $\overline { { P _ { 2 } } }$ are truly disjoint from $p _ { d a t a }$ , the best fit distribution in the infinite data regime does not change.
|
| 51 |
+
|
| 52 |
+
In GANs, we are interested in learning a generative model $G _ { \theta }$ from samples drawn from some data distribution $p _ { \mathrm { d a t a } }$ (Goodfellow et al., 2014). GANs use a binary classifier, the so-called discriminator $D _ { \phi }$ , to distinguish real data from generated (fake) samples. The generator $G _ { \theta }$ is trained via the following mini-max objective that performs variational Jensen-Shannon divergence minimization:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { c } { { \displaystyle \operatorname* { m i n } _ { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } \operatorname* { m a x } _ { D _ { \phi } } L _ { \mathrm { J S } } ( G _ { \theta } , D _ { \phi } ) \quad \mathrm { w h e r e } } } \\ { { \displaystyle L _ { \mathrm { J S } } ( G _ { \theta } , D _ { \phi } ) = \mathbb { E } _ { \mathbf { x } \sim p _ { \mathrm { d a t a } } } \left[ \log ( D _ { \phi } ( \pmb { x } ) ) \right] + \mathbb { E } _ { \mathbf { x } \sim G _ { \theta } } \left[ \log ( 1 - D _ { \phi } ( \pmb { x } ) ) \right] } } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
This is a special case to the more general variational $f$ -divergence minimization objective (Nowozin et al., 2016). The optimal $D _ { \phi }$ for any $G _ { \theta }$ is $( p _ { \mathrm { d a t a } } / G _ { \theta } ) / ( 1 + p _ { \mathrm { d a t a } } / G _ { \theta } )$ , so the discriminator can serve as a density ratio estimator between $p _ { \mathrm { d a t a } }$ and $G _ { \theta }$ .
|
| 59 |
+
|
| 60 |
+
With sufficiently expressive models and infinite capacity, $G _ { \theta }$ will match $p _ { \mathrm { d a t a } }$ . In practice, however, we have access to finite datasets and limited model capacity. This means that the generator needs to generalize beyond the empirical distribution, which is challenging because the number of possible discrete distributions scale doubly exponentially w.r.t. to the data dimension. Hence, as studied in (Zhao et al., 2018), the role of the inductive bias is critical. For example, Zhao et al. (2018) report that when trained on images containing 2 objects only, GANs and other generative models can sometimes “generalize” by generating images with 1 or 3 objects (which were never seen in the training set). The generalization behavior – which may or may not be desirable – is determined by factors such as network architectures, hyperparameters, etc., and is difficult to characterize analytically.
|
| 61 |
+
|
| 62 |
+
Here we propose to bias the learning process by directly specifying what the generator should not generate through NDA. We consider an adversarial game based on the following objective:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\operatorname* { m i n } _ { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } \operatorname* { m a x } _ { D _ { \phi } } L _ { \mathrm { J S } } ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } , D _ { \phi } )
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where the negative samples are generated from a mixture of $G _ { \theta }$ (the generator distribution) and $\overline { { P } }$ (the NDA distribution); the mixture weights are controlled by the hyperparameter $\lambda$ . Intuitively, this can help addresses the above “over-generalization” issue, as we can directly provide supervision on what should not be generated and thus guide the support of $G _ { \theta }$ (see Figure 3) . For instance, in the object count example above, we can empirically prevent the model from generating images with an undesired number of objects (see Appendix Section A for experimental results on this task).
|
| 69 |
+
|
| 70 |
+
In addition, the introduction of NDA samples will not affect the solution of the original GAN objective in the limit. In the following theorem, we show that given infinite training data and infinite capacity discriminators and generators, using NDA will not affect the optimal solution to the generator, i.e. the generator will still recover the true data distribution.
|
| 71 |
+
|
| 72 |
+
Theorem 1. Let $\overline { { P } } \in \mathcal { P } ( \mathcal { X } )$ be any distribution over $\mathcal { X }$ with disjoint support than $p _ { \mathrm { d a t a } } ,$ , i.e., such that $\operatorname { s u p p } ( p _ { \mathrm { d a t a } } ) \cap \operatorname { s u p p } ( { \overline { { P } } } ) = \emptyset$ . Let $D _ { \phi } : \mathcal { X } \mathbb { R }$ be the set of all discriminators over $\mathcal { X }$ , $f : \mathbb { R } _ { \geq 0 } \to \mathbb { R }$ be a convex, semi-continuous function such that $f ( 1 ) = { \dot { 0 } }$ , $f ^ { \star }$ be the convex conjugate of $f$ , ${ \overline { { f } } } ^ { \prime }$ its derivative, and $G _ { \theta }$ be a distribution with sample space $\mathcal { X }$ . Then $\forall \lambda \in ( 0 , 1 ]$ , we have:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\underset { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } { \arg \operatorname* { m i n } } \ \underset { D _ { \phi } : \mathcal { X } \to \mathbb { R } } { \operatorname* { m a x } } L _ { f } \big ( G _ { \theta } , D _ { \phi } \big ) = \underset { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } { \arg \operatorname* { m i n } } \ \underset { D _ { \phi } : \mathcal { X } \to \mathbb { R } } { \operatorname* { m a x } } L _ { f } \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } , D _ { \phi } \big ) = p _ { \mathrm { d a t a } }
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $L _ { f } ( Q , D _ { \phi } ) = \mathbb { E } _ { \pmb { x } \sim p _ { \mathrm { d a t a } } } [ D _ { \phi } ( \pmb { x } ) ] - \mathbb { E } _ { \pmb { x } \sim Q } [ f ^ { \star } ( D _ { \phi } ( \pmb { x } ) ) ]$ is the objective for $f$ -GAN (Nowozin et al., 2016). However, the optimal discriminators are different for the two objectives:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array} { c } { \underset { D _ { \phi } : \mathcal { X } \mathbb { R } } { \arg \operatorname* { m a x } } L _ { f } ( G _ { \theta } , D _ { \phi } ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / G _ { \theta } \big ) } \\ { \underset { \mathrm { a r g } \operatorname* { m a x } } { \arg \operatorname* { m a x } } L _ { f } \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } , D _ { \phi } \big ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } \big ) \big ) } \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
Proof. See Appendix C.
|
| 85 |
+
|
| 86 |
+
The above theorem shows that in the limit of infinite data and computation, adding NDA changes the optimal discriminator solution but not the optimal generator. In practice, when dealing with finite data, existing regularization techniques such as weight decay and spectral normalization (Miyato et al., 2018) allow potentially many solutions that achieve the same objective value. The introduction of NDA samples allows us to filter out certain solutions by providing additional inductive bias through OOD samples. In fact, the optimal discriminator will reflect the density ratio between $p _ { \mathrm { d a t a } }$ and $\bar { \lambda ( \bar { G } _ { \theta } + ( 1 - \lambda ) \bar { P } }$ (see Eq.(6)), and its values will be higher for samples from $p _ { \mathrm { d a t a } }$ compared to those from $\overline { { P } }$ . As we will show in Section 5, a discriminator trained with this objective and suitable NDA performs better than relevant baselines for other downstream tasks such as anomaly detection.
|
| 87 |
+
|
| 88 |
+
# 4 NDA FOR CONSTRASTIVE REPRESENTATION LEARNING
|
| 89 |
+
|
| 90 |
+
Using a classifier to estimate a density ratio is useful not only for estimating $f$ -divergences (as in the previous section) but also for estimating mutual information between two random variables. In representation learning, mutual information (MI) maximization is often employed to learn compact yet useful representations of the data, allowing one to perform downstream tasks efficiently (Tishby & Zaslavsky, 2015; Nguyen et al., 2008; Poole et al., 2019b; Oord et al., 2018). Here, we show that NDA samples are also beneficial for representation learning.
|
| 91 |
+
|
| 92 |
+
In contrastive representation learning (such as CPC (Oord et al., 2018)), the goal is to learn a mapping $h _ { \theta } ( \pmb { x } ) : \mathcal { X } \overset { \mathbf { \bar { \alpha } } } { } \mathcal { P } ( \mathcal { Z } )$ that maps a datapoint $_ { x }$ to some distribution over the representation space $\mathcal { Z }$ ; once the network $h _ { \theta }$ is learned, representations are obtained by sampling from $z \sim h _ { \theta } ( x )$ . CPC maximizes the following objective:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
I _ { \mathrm { C P C } } ( h _ { \theta } , g _ { \phi } ) : = \mathbb { E } _ { x \sim p _ { \mathrm { d a t a } } ( x ) , z \sim h _ { \theta } ( x ) , \widehat { z } _ { i } \sim p _ { \theta } ( z ) } \left[ \log \frac { n g _ { \phi } ( x , z ) } { g _ { \phi } ( x , z ) + \sum _ { j = 1 } ^ { n - 1 } g _ { \phi } ( x , \widehat { z _ { j } } ) } \right]
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $\begin{array} { r } { p _ { \theta } ( z ) = \int h _ { \theta } ( z | \boldsymbol x ) p _ { \mathrm { d a t a } } ( \boldsymbol x ) \mathrm d \boldsymbol x } \end{array}$ is the marginal distribution of the representations associated with $p _ { \mathrm { d a t a } }$ . Intuitively, the CPC objective involves an $n$ -class classification problem where $g _ { \phi }$ attempts to identify a matching pair (i.e. $( { \pmb x } , z ) )$ sampled from the joint distribution from the $( n - 1 )$ non-matching pairs (i.e. $( \pmb { x } , \widehat { \pmb { z } } _ { j } ) )$ sampled from the product of marginals distribution. Note that $g _ { \phi }$ bplays the role of a discriminator/critic, and is implicitly estimating a density ratio. As $n \infty$ , the optimal $g _ { \phi }$ corresponds to an un-normalized density ratio between the joint distribution and the product of marginals, and the CPC objective matches its upper bound which is the mutual information between $X$ and $Z$ (Poole et al., 2019a; Song & Ermon, 2019). However, this objective is no longer able to control the representations for data that are out of support of $p _ { \mathrm { d a t a } }$ , so there is a risk that the representations are similar between $p _ { \mathrm { d a t a } }$ samples and out-of-distribution ones.
|
| 99 |
+
|
| 100 |
+
To mitigate this issue, we propose to use NDA in the CPC objective, where we additionally introduce a batch of NDA samples, for each positive sample:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\overline { { I _ { \mathrm { C P C } } } } ( h _ { \theta } , g _ { \phi } ) : = { \mathbb E } \left[ \log \frac { ( n + m ) g _ { \phi } ( { \pmb x } , { \pmb z } ) } { g _ { \phi } ( { \pmb x } , { \pmb z } ) + \sum _ { j = 1 } ^ { n - 1 } g _ { \phi } ( { \pmb x } , \widehat { { \pmb z _ { j } } } ) + \sum _ { k = 1 } ^ { m } g _ { \phi } ( { \pmb x } , \overline { { { \pmb z _ { k } } } } ) } \right]
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
where the expectation is taken over $\pmb { x } \sim p _ { \mathrm { d a t a } } ( \pmb { x } ) , z \sim h _ { \theta } ( \pmb { x } ) , \widehat { z } _ { i } \sim p _ { \theta } ( z )$ , $\overline { { \mathbf { x } } } _ { k } \sim \overline { { p } }$ (NDA distribution), $\overline { { \boldsymbol { z } } } _ { k } \sim h _ { \theta } ( \overline { { \boldsymbol { x } } } _ { k } )$ for all $k \in [ m ]$ b. Here, the behavior of $h _ { \theta } ( { \pmb x } )$ when $_ { \textbf { \em x } }$ is NDA is optimized explicitly, allowing us to impose additional constraints to the NDA representations. This corresponds to a more challenging classification problem (compared to basic CPC) that encourages learning more informative representations. In the following theorem, we show that the proposed objective encourages the representations for NDA samples to become disjoint from the representations for $p _ { \mathrm { d a t a } }$ samples, i.e. NDA samples and $p _ { \mathrm { d a t a } }$ samples do not map to the same representation.
|
| 107 |
+
|
| 108 |
+
Theorem 2. (Informal) The optimal solution to $h _ { \theta }$ in the NDA-CPC objective maps the representations of data samples and NDA samples to disjoint regions.
|
| 109 |
+
|
| 110 |
+
Proof. See Appendix D for a detailed statement and proof.
|
| 111 |
+
|
| 112 |
+
# 5 NDA-GAN EXPERIMENTS
|
| 113 |
+
|
| 114 |
+
In this section we report experiments with different types of NDA for image generation. Additional details about the network architectures and hyperparameters can be found in Appendix K.
|
| 115 |
+
|
| 116 |
+
Unconditional Image Generation. We conduct experiments on various datasets using the BigGAN architecture (Brock et al., 2018) for unconditional image generation1. We first explore various image transformations from the literature to evaluate which ones are effective as NDA. For each transformation, we evaluate its performance as NDA (training as in Eq. 3) and as a traditional data augmentation strategy, where we enlarge the training set by applying the transformation to real images (denoted PDA for positive data augmentation). Table 1 shows the FID scores for different types of transformations as PDA/NDA. The results suggest that transformations that spatially corrupt the image are strong NDA candidates. It can be seen that Random Horizontal Flip is not effective as an NDA; this is because flipping does not spatially corrupt the image but is rather a semantic preserving transformation, hence the NDA distribution $\overline { { P } }$ is not disjoint from $p _ { d a t a }$ . On the contrary, it is reasonable to assume that if an image is likely under $p _ { d a t a }$ , its flipped variant should also be likely. This is confirmed by the effectiveness of this strategy as PDA.
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 4: Histogram of difference in the discriminator output for a real image and it’s Jigsaw version.
|
| 120 |
+
|
| 121 |
+
Table 1: FID scores over CIFAR-10 using different transformations as PDA and NDA in BigGAN. The results indicate that some transformations yield better results when used as NDA. The common feature of such transformations is they all spatially corrupt the images.
|
| 122 |
+
|
| 123 |
+
<table><tr><td rowspan="2">w/o Aug.</td><td colspan="2">Jigsaw</td><td colspan="2">Cutout</td><td colspan="2">Stitch</td><td colspan="2">Mixup</td><td colspan="2">Cutmix</td><td colspan="2">Random Crop</td><td colspan="2">Random Flip</td><td colspan="2">Gaussian</td></tr><tr><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td><td>PDA</td><td>NDA</td></tr><tr><td>18.64</td><td>98.09</td><td>12.61</td><td>79.72</td><td>14.69</td><td>108.69</td><td>13.97</td><td>70.64</td><td>17.29</td><td>90.81</td><td>15.01</td><td>20.02</td><td>15.05</td><td>16.65</td><td>124.32</td><td>44.41 </td><td>18.72</td></tr></table>
|
| 124 |
+
|
| 125 |
+
Table 2: Comparison of FID scores of different types of NDA for unconditional image generation on various datasets. The numbers in bracket represent the corresponding image resolution in pixels. Jigsaw consistently achieves the best or second best result.
|
| 126 |
+
|
| 127 |
+
<table><tr><td></td><td>BigGAN</td><td> Jigsaw</td><td>Stitching</td><td>Mixup</td><td>Cutout</td><td>Cutmix</td><td>CR-BigGAN</td></tr><tr><td>CIFAR-10 (32)</td><td>18.64</td><td>12.61</td><td>13.97</td><td>17.29</td><td>14.69</td><td>15.01</td><td>14.56</td></tr><tr><td>CIFAR-100 (32)</td><td>22.19</td><td>19.72</td><td>20.99</td><td>22.21</td><td>22.08</td><td>20.78</td><td>1</td></tr><tr><td>CelebA (64)</td><td>38.14</td><td>37.24</td><td>37.17</td><td>37.51</td><td>37.39</td><td>37.46</td><td>1</td></tr><tr><td>STL10 (32)</td><td>26.80</td><td>23.94</td><td>26.08</td><td>24.45</td><td>24.91</td><td>25.34</td><td>1</td></tr></table>
|
| 128 |
+
|
| 129 |
+
We believe spatially corrupted negatives perform well as NDA in that they push the discriminator to focus on global features instead of local ones (e.g., texture). We confirm this by plotting the histogram of differences in the discriminator output for a real image and it’s Jigsaw version as shown in Fig. 4. We show that the difference is (a) centered close to zero for normal BigGAN (so without NDA training, the discriminator cannot distinguish real and Jigsaw samples well), and (b) centered at a positive number (logit 10) for our method (NDA-BigGAN). Following our findings, in our remaining experiments we use Jigsaw, Cutout, Stitch, Mixup and Cutmix as they achieve significant improvements when used as NDA for unconditional image generation on CIFAR-10.
|
| 130 |
+
|
| 131 |
+
Table 2 shows the FID scores for BigGAN when trained with five types of negative data augmentation on four different benchmarks. Almost all the NDA augmentations improve the baseline across datasets. For all the datasets except CIFAR-100, $\lambda = 0 . 2 5$ , whereas for CIFAR-100 it is 0.5. We show the effect of $\lambda$ on CIFAR-10 performance in Appendix H. We additionally performed an experiment using a mixture of augmentation policy. The results (FID 16.24) were better than the baseline method (18.64) but not as good as using a single strategy.
|
| 132 |
+
|
| 133 |
+
Conditional Image Generation. We also investigate the benefits of NDA in conditional image generation using BigGAN. The results are shown in Table 3. In this setting as well, NDA gives a significant boost over the baseline model. We again use $\lambda = 0 . 2 5$ for CIFAR-10 and $\lambda = 0 . 5$ for CIFAR-100. For both unconditional and conditional setups we find the Jigsaw and Stitching augmentations to achieve a better FID score than the other augmentations.
|
| 134 |
+
|
| 135 |
+
Table 3: FID scores for conditional image generation using different NDAs.2
|
| 136 |
+
|
| 137 |
+
<table><tr><td></td><td>BigGAN</td><td> Jigsaw</td><td>Stitching</td><td>Mixup</td><td>Cutout</td><td>Cutmix</td><td>CR-BigGAN</td></tr><tr><td>C-10</td><td>11.51</td><td>9.42</td><td>9.47</td><td>13.87</td><td>10.52</td><td>10.3</td><td>11.48</td></tr><tr><td>C-100</td><td>15.04</td><td>14.12</td><td>13.90</td><td>15.27</td><td>14.21</td><td>13.99</td><td>1</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Image Translation. Next, we apply the NDA method to image translation. In particular, we use the Pix2Pix model (Isola et al., 2017) that can perform image-to-image translation using GANs provided paired training data. Here, the generator is conditioned on an image $\mathcal { T }$ , and the discriminator takes as input the concatenation of generated/real image and $\mathcal { T }$ . We use $\mathrm { P i x 2 P i x }$ for semantic segmentation on Cityscapes dataset (Cordts et al., 2016) (i.e. photos labels). Table 4 shows the quantitative gains obtained by using Jigsaw NDA3 while Figure 7 in Appendix F highlights the qualitative improvements. The NDA-Pix2Pix model avoids noisy segmentation on objects including buildings and trees.
|
| 140 |
+
|
| 141 |
+
Table 4: Results on CityScapes, using per pixel accuracy $( { \mathrm { P p . } } )$ , per class accuracy (Pc.) and mean Intersection over Union (mIOU). We compare Pix2Pix and its NDA version.
|
| 142 |
+
|
| 143 |
+
<table><tr><td>Metric</td><td>Pp.</td><td>Pc.</td><td>mIOU</td></tr><tr><td>Pix2Pix (cGAN)</td><td>0.80</td><td>0.24</td><td>0.27</td></tr><tr><td>NDA (cGAN)</td><td>0.84</td><td>0.34</td><td>0.28</td></tr><tr><td>Pix2Pix (L1+cGAN)</td><td>0.72</td><td>0.23</td><td>0.18</td></tr><tr><td>NDA (L1+cGAN)</td><td>0.75</td><td>0.28</td><td>0.22</td></tr></table>
|
| 144 |
+
|
| 145 |
+
Table 5: AUROC scores for different OOD datasets. OOD-1 contains different datasets, while OOD-2 contains the set of 19 different corruptions in CIFAR-10-C (Hendrycks & Dietterich, 2018) (the average score is reported).
|
| 146 |
+
|
| 147 |
+
<table><tr><td></td><td></td><td>BigGAN</td><td>Jigsaw</td><td>EBM</td></tr><tr><td rowspan="6">00D-1</td><td>DTD</td><td>0.70</td><td>0.69</td><td>0.48</td></tr><tr><td>SVHN</td><td>0.75</td><td>0.61</td><td>0.63</td></tr><tr><td>Places-365</td><td>0.35</td><td>0.58</td><td>0.68</td></tr><tr><td>TinyImageNet</td><td>0.40</td><td>0.62</td><td>0.67</td></tr><tr><td>CIFAR-100</td><td>0.63</td><td>0.64</td><td>0.50</td></tr><tr><td>Average</td><td>0.57</td><td>0.63</td><td>0.59</td></tr><tr><td>00D-2</td><td>CIFAR-10-C</td><td>0.56</td><td>0.63</td><td>0.60</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Anomaly Detection. As another added benefit of NDA for GANs, we utilize the output scores of the BigGAN discriminator for anomaly detection. We experiment with 2 different types of OOD datasets. The first set consists of SVHN (Netzer et al., 2011), DTD (Cimpoi et al., 2014), Places365 (Zhou et al., 2017), TinyImageNet, and CIFAR-100 as the OOD datapoints following the protocol in (Du & Mordatch, 2019; Hendrycks et al., 2018). We train BigGAN w/ and w/o Jigsaw NDA on the train set of CIFAR-10 and then use the output value of discriminator to classify the test set of CIFAR-10 (not anomalous) and different OOD datapoints (anomalous) as anomalous or not. We use the AUROC metric as proposed in (Hendrycks & Gimpel, 2016) to evaluate the anomaly detection performance. Table 5 compares the performance of NDA with a likelihood based model (Energy Based Models (EBM (Du & Mordatch, 2019)). Results show that Jigsaw NDA performs much better than baseline BigGAN and other generative models. We did not include other NDAs as Jigsaw achieved the best results.
|
| 150 |
+
|
| 151 |
+
We consider the extreme corruptions in CIFAR-10-C (Hendrycks & Dietterich, 2018) as the second set of OOD datasets. It consists of 19 different corruptions, each having 5 different levels of severity. We only consider the corruption of highest severity for our experiment, as these constitute a significant shift from the true data distribution. Averaged over all the 19 different corruptions, the AUROC score for the normal BigGAN is 0.56, whereas the BigGAN trained with Jigsaw NDA achieves 0.63. The histogram of difference in discriminator’s output for clean and OOD samples are shown in Figure 8 in the appendix. High difference values imply that the Jigsaw NDA is better at distinguishing OOD samples than the normal BigGAN.
|
| 152 |
+
|
| 153 |
+
# 6 REPRESENTATION LEARNING USING CONTRASTIVE LOSS AND NDA
|
| 154 |
+
|
| 155 |
+
Unsupervised Learning on Images. In this section, we perform experiments on three benchmarks: (a) CIFAR10 (C10), (b) CIFAR100 (C100), and (c) ImageNet-100 (Deng et al., 2009) to show the benefits of NDA on representation learning with the contrastive loss function. In our experiments, we use the momentum contrast method (He et al., 2019), MoCo-V2, as it is currently the state-of-theart model on unsupervised learning on ImageNet. For C10 and C100, we train the MoCo-V2 model for unsupervised learning (w/ and w/o NDA) for 1000 epochs. On the other hand, for ImageNet-100, we train the MoCo-V2 model (w/ and w/o NDA) for 200 epochs. Additional hyperparameter details can be found in the appendix. To evaluate the representations, we train a linear classifier on the representations on the same dataset with labels. Table 6 shows the top-1 accuracy of the classifier. We find that across all the three datasets, different NDA approaches outperform MoCo-V2. While Cutout NDA performs the best for C10, the best performing NDA for C100 and ImageNet-100 are Jigsaw and Mixup respectively. Figure 9 compares the cosine distance of the representations learned w/ and w/o NDA (jigsaw) and shows that jigsaw and normal images are projected far apart from each other when trained using NDA whereas with original MoCo-v2 they are projected close to each other.
|
| 156 |
+
|
| 157 |
+
Transfer Learning for Object Detection. We transfer the network pre-trained over ImageNet-100 for the task of Pascal-VOC object detection using a Faster R-CNN detector (C4 backbone) Ren et al. (2015). We fine-tune the network on Pascal VOC $2 0 0 7 + 2 0 1 2$ trainval set and test it on the 2007 test set. The baseline MoCo achieves 38.47 AP, 65.99 AP50, 38.81 AP75 whereas the MoCo trained with mixup NDA gets 38.72 AP, 66.23 AP50, 39.16 AP75 (an improvement of $\approx 0 . 3$ ).
|
| 158 |
+
|
| 159 |
+
Table 6: Top-1 accuracy results on image recognition w/ and w/o NDA on MoCo-V2.
|
| 160 |
+
|
| 161 |
+
<table><tr><td></td><td>MoCo-V2</td><td>Jigsaw</td><td>Stitching</td><td>Cutout</td><td>Cutmix</td><td>Mixup</td></tr><tr><td>CIFAR-10</td><td>91.20</td><td>91.66</td><td>91.59</td><td>92.26</td><td>91.51</td><td>91.36</td></tr><tr><td>CIFAR-100</td><td>69.63</td><td>70.17</td><td>69.21</td><td>69.81</td><td>69.83</td><td>69.99</td></tr><tr><td>ImageNet-100</td><td>69.41</td><td>69.95</td><td>69.54</td><td>69.77</td><td>69.61</td><td>70.01</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Unsupervised Learning on Videos. In this section, we investigate the benefits of NDA in selfsupervised learning of spatio-temporal embeddings from video, suitable for human action recognition. We apply NDA to Dense Predictive Coding (Han et al., 2019), which is a single stream (RGB only) method for self-supervised representation learning on videos. For videos, we create NDA samples by performing the same transformation on all frames of the video (e.g. the same jigsaw permutation is applied to all the frames of a video). We evaluate the approach by first training the DPC model with NDA on a large-scale dataset (UCF101), and then evaluate the representations by training a supervised action classifier on UCF101 and HMDB51 datasets. As shown in Table 7, Jigsaw and Cutmix NDA improve downstream task accuracy on UCF-101 and HMDB-51, achieving new state-of-the-art performance among single stream (RGB only) methods for self-supervised representation learning (when pre-trained using UCF-101).
|
| 164 |
+
|
| 165 |
+
Table 7: Top-1 accuracy results on action recognition in videos w/ and w/o NDA in DPC.
|
| 166 |
+
|
| 167 |
+
<table><tr><td></td><td>DPC</td><td>Jigsaw</td><td>Stitching</td><td>Cutout</td><td>Cutmix</td><td>Mixup</td></tr><tr><td>UCF-101 (Pre-trained on UCF-101)</td><td>61.35</td><td>64.54</td><td>66.07</td><td>64.52</td><td>63.52</td><td>63.65</td></tr><tr><td>HMDB51 (Pre-trained on UCF-101)</td><td>45.31</td><td>46.88</td><td>45.31</td><td>45.31</td><td>48.43</td><td>43.75</td></tr></table>
|
| 168 |
+
|
| 169 |
+
# 7 RELATED WORK
|
| 170 |
+
|
| 171 |
+
In several machine learning settings, negative samples are produced from a statistical generative model. Sung et al. (2019) aim to generate negative data using GANs for semi-supervised learning and novelty detection while we are concerned with efficiently creating negative data to improve generative models and self-supervised representation learning. Hanneke et al. (2018) also propose an alternative theoretical framework that relies on access to an oracle which classifies a sample as valid or not, but do not provide any practical implementation. Bose et al. (2018) use adversarial training to generate hard negatives that fool the discriminator for NLP tasks whereas we obtain NDA data from positive data to improve image generation and representation learning. Hou et al. (2018) use a GAN to learn the negative data distribution with the aim of classifying positive-unlabeled (PU) data whereas we do not have access to a mixture data but rather generate negatives by transforming the positive data.
|
| 172 |
+
|
| 173 |
+
In contrastive unsupervised learning, common negative examples are ones that are assumed to be further than the positive samples semantically. Word2Vec (Mikolov et al., 2013) considers negative samples to be ones from a different context and CPC-based methods (Oord et al., 2018) such as momentum contrast (He et al., 2019), the negative samples are data augmentations from a different image. Our work considers a new aspect of “negative samples” that are neither generated from some model, nor samples from the data distribution. Instead, by applying negative data augmentation (NDA) to existing samples, we are able to incorporate useful inductive biases that might be difficult to capture otherwise (Zhao et al., 2018).
|
| 174 |
+
|
| 175 |
+
# 8 CONCLUSION
|
| 176 |
+
|
| 177 |
+
We proposed negative data augmentation as a method to incorporate prior knowledge through out-ofdistribution (OOD) samples. NDAs are complementary to traditional data augmentation strategies, which are typically focused on in-distribution samples. Using the NDA framework, we interpret existing image transformations (e.g., jigsaw) as producing OOD samples and develop new learning algorithms to leverage them. Owing to rigorous mathematical characterization of the NDA assumption, we are able to theoretically analyze their properties. As an example, we bias the generator of a GAN to avoid the support of negative samples, improving results on conditional/unconditional image generation tasks. Finally, we leverage NDA for unsupervised representation learning in images and videos. By integrating NDA into MoCo-v2 and DPC, we improve results on image and action recognition on CIFAR10, CIFAR100, ImageNet-100, UCF-101, and HMDB-51 datasets. Future work include exploring other augmentation strategies as well as NDAs for other modalities.
|
| 178 |
+
|
| 179 |
+
# 9 ACKNOWLEDGEMENT
|
| 180 |
+
|
| 181 |
+
The authors would like to thank Shengjia Zhao and Kristy Choi for reviewing an earlier draft of the paper. This research was supprted by NSF (#1651565, #1522054, #1733686), ONR (N00014-19-1- 2145), AFOSR (FA9550-19-1-0024), ARO, and Amazon AWS.
|
| 182 |
+
|
| 183 |
+
# REFERENCES
|
| 184 |
+
|
| 185 |
+
Antreas Antoniou, Amos Storkey, and Harrison Edwards. Data augmentation generative adversarial networks. arXiv preprint arXiv:1711.04340, 2017.
|
| 186 |
+
|
| 187 |
+
Yuki M Asano, Christian Rupprecht, and Andrea Vedaldi. A critical analysis of self-supervision, or what we can learn from a single image. arXiv preprint arXiv:1904.13132, 2019.
|
| 188 |
+
|
| 189 |
+
Avishek Joey Bose, Huan Ling, and Yanshuai Cao. Adversarial contrastive estimation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1021–1032, 2018.
|
| 190 |
+
|
| 191 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
|
| 192 |
+
|
| 193 |
+
M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, , and A. Vedaldi. Describing textures in the wild. In Proceedings of the IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2014.
|
| 194 |
+
|
| 195 |
+
Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3213–3223, 2016.
|
| 196 |
+
|
| 197 |
+
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.
|
| 198 |
+
|
| 199 |
+
Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
|
| 200 |
+
|
| 201 |
+
Yilun Du and Igor Mordatch. Implicit generation and generalization in energy-based models. arXiv preprint arXiv:1903.08689, 2019.
|
| 202 |
+
|
| 203 |
+
Charles Fefferman, Sanjoy Mitter, and Hariharan Narayanan. Testing the manifold hypothesis. Journal of the American Mathematical Society, 29(4):983–1049, 2016.
|
| 204 |
+
|
| 205 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
|
| 206 |
+
|
| 207 |
+
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.
|
| 208 |
+
|
| 209 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017.
|
| 210 |
+
|
| 211 |
+
Tengda Han, Weidi Xie, and Andrew Zisserman. Video representation learning by dense predictive coding. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pp. 0–0, 2019.
|
| 212 |
+
|
| 213 |
+
Steve Hanneke, Adam Tauman Kalai, Gautam Kamath, and Christos Tzamos. Actively avoiding nonsense in generative models. In Conference On Learning Theory, pp. 209–227, 2018.
|
| 214 |
+
|
| 215 |
+
Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. arXiv preprint arXiv:1911.05722, 2019.
|
| 216 |
+
|
| 217 |
+
Dan Hendrycks and Thomas G Dietterich. Benchmarking neural network robustness to common corruptions and surface variations. arXiv preprint arXiv:1807.01697, 2018.
|
| 218 |
+
|
| 219 |
+
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv preprint arXiv:1610.02136, 2016.
|
| 220 |
+
|
| 221 |
+
Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. arXiv preprint arXiv:1812.04606, 2018.
|
| 222 |
+
|
| 223 |
+
Ming Hou, Brahim Chaib-Draa, Chao Li, and Qibin Zhao. Generative adversarial positive-unlabeled learning. In Proceedings of the 27th International Joint Conference on Artificial Intelligence, pp. 2255–2261, 2018.
|
| 224 |
+
|
| 225 |
+
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.
|
| 226 |
+
|
| 227 |
+
Ayush Jaiswal, Rex Yue Wu, Wael Abd-Almageed, and Prem Natarajan. Unsupervised adversarial invariance. In Advances in Neural Information Processing Systems, pp. 5092–5102, 2018.
|
| 228 |
+
|
| 229 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
|
| 230 |
+
|
| 231 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. arXiv preprint arXiv:1802.05957, 2018.
|
| 232 |
+
|
| 233 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 234 |
+
|
| 235 |
+
Xuanlong Nguyen, Martin J Wainwright, and Michael I Jordan. Estimating divergence functionals and the likelihood ratio by convex risk minimization. arXiv preprint arXiv:0809.0853, (11):5847– 5861, September 2008. doi: 10.1109/TIT.2010.2068870.
|
| 236 |
+
|
| 237 |
+
Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European Conference on Computer Vision, pp. 69–84. Springer, 2016.
|
| 238 |
+
|
| 239 |
+
Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. In Advances in neural information processing systems, pp. 271–279, 2016.
|
| 240 |
+
|
| 241 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 242 |
+
|
| 243 |
+
Ben Poole, Sherjil Ozair, Aaron van den Oord, Alexander A Alemi, and George Tucker. On variational bounds of mutual information. arXiv preprint arXiv:1905.06922, 2019a.
|
| 244 |
+
|
| 245 |
+
Ben Poole, Sherjil Ozair, Aaron van den Oord, Alexander A Alemi, and George Tucker. On variational bounds of mutual information. arXiv preprint arXiv:1905.06922, May 2019b.
|
| 246 |
+
|
| 247 |
+
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.
|
| 248 |
+
|
| 249 |
+
Jiaming Song and Stefano Ermon. Understanding the limitations of variational mutual information estimators. arXiv preprint arXiv:1910.06222, October 2019.
|
| 250 |
+
|
| 251 |
+
Yi Lin Sung, Sung-Hsien Hsieh, Soo-Chang Pei, and Chun-Shien Lu. Difference-seeking generative adversarial network–unseen sample generation. In International Conference on Learning Representations, 2019.
|
| 252 |
+
|
| 253 |
+
Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. arXiv preprint arXiv:1503.02406, March 2015.
|
| 254 |
+
|
| 255 |
+
David H Wolpert and William G Macready. No free lunch theorems for optimization. IEEE transactions on evolutionary computation, 1(1):67–82, 1997.
|
| 256 |
+
|
| 257 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6023–6032, 2019.
|
| 258 |
+
|
| 259 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
|
| 260 |
+
|
| 261 |
+
Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European conference on computer vision, pp. 649–666. Springer, 2016.
|
| 262 |
+
|
| 263 |
+
Shengjia Zhao, Hongyu Ren, Arianna Yuan, Jiaming Song, Noah Goodman, and Stefano Ermon. Bias and generalization in deep generative models: An empirical study. In Advances in Neural Information Processing Systems, pp. 10792–10801, 2018.
|
| 264 |
+
|
| 265 |
+
Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE transactions on pattern analysis and machine intelligence, 40(6):1452–1464, 2017.
|
| 266 |
+
|
| 267 |
+
# A NUMEROSITY CONTAINMENT
|
| 268 |
+
|
| 269 |
+
Zhao et al. (2018) systematically investigate generalization in deep generative models using two different datasets: (a) a toy dataset where there are $k$ non-overlapping dots (with random color and location) in the image (see Figure 5a), and (b) the CLEVR dataset where ther are $k$ objects (with random shape, color, location, and size) in the images (see Figure 5b). They train a GAN model (WGAN-GP Gulrajani et al. (2017)) with (either) dataset and observe that the learned distribution does not produce the same number of objects as in the dataset it was trained on. The distribution of the numerosity in the generated images is centered at the numerosity from the dataset, with a slightbias towards over-estimation. For, example when trained on images with six dots, the generated images contain anywhere from two to eight dots (see Figure 6a). The observation is similar when trained on images with two CLEVR objects. The generated images contain anywhere from one to three dots (see Figure 6b).
|
| 270 |
+
|
| 271 |
+
In order to remove samples with numerosity different from the train dataset, we use such samples as negative data during training. For example, while training on images with six dots we use images with four, five and seven dots as negative data for the GAN. The resulting distribution of the numerosity in the generated images is constrained to six. We observe similar behaviour when training a GAN with images containing two CLEVR objects as positive data and images with one or three objects as negative data.
|
| 272 |
+
|
| 273 |
+
# B IMAGE TRANSFORMATIONS
|
| 274 |
+
|
| 275 |
+
Given an image of size $H \times W$ , the different image transformations that we used are described below.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
Figure 5: Toy Datasets used in Numerosity experiments.
|
| 279 |
+
|
| 280 |
+

|
| 281 |
+
Figure 6: Left: Distribution over number of dots. The arrows are the number of dots the learning algorithm is trained on, and the solid line is the distribution over the number of dots the model generates. Right: Distribution over number of CLEVR objects the model generates. Generating CLEVR is harder so we explore only one, but the behaviour with NDA is similar to dots.
|
| 282 |
+
|
| 283 |
+
Jigsaw- $K$ (Noroozi & Favaro, 2016) We partition the image into a grid of $K \times K$ patches of size $( H / K ) \times ( W / K )$ , indexed by $[ 1 , \ldots , K \times K ]$ . Then we shuffle the image patches according to a random permutation (different from the original order) to produce the NDA image. Empirically, we find $K = 2$ to work the best for Jigsaw- $K$ NDA.
|
| 284 |
+
|
| 285 |
+
Stitching We stitch two equal-sized patches of two different images, either horizontally $( H / 2 \times W )$ or vertically $( H \times W / 2 )$ , chosen uniformly at random, to produce the NDA image.
|
| 286 |
+
|
| 287 |
+
Cutout / Cutmix We select a random patch in the image with its height and width lying between one-third and one-half of the image height and width respectively. To construct NDA images, this patch is replaced with the mean pixel value of the patch (like cutout (DeVries & Taylor, 2017) with the only difference that they use zero-masking), or the pixel values of another image at the same location (cutmix (Yun et al., 2019)).
|
| 288 |
+
|
| 289 |
+
Mixup- $\alpha$ NDA image is constructed from a linear interpolation between two images $_ { \textbf { \em x } }$ and $\textbf { { y } }$ (Zhang et al., 2017), $\gamma { \pmb x } + ( 1 - \gamma ) { \pmb y }$ ; $\gamma \sim \mathrm { B e t a } ( \alpha , \alpha )$ . $\alpha$ is chosen so that the distribution has high density at 0.5.
|
| 290 |
+
|
| 291 |
+
Other classes NDA images are sampled from other classes in the same dataset. See Appendix A.
|
| 292 |
+
|
| 293 |
+
# C NDA FOR GANS
|
| 294 |
+
|
| 295 |
+
Theorem 1. Let $\overline { { P } } \in \mathcal { P } ( \mathcal { X } )$ be any distribution over $\mathcal { X }$ with disjoint support than $p _ { \mathrm { d a t a } } ,$ , i.e., such that $\operatorname { s u p p } ( p _ { \mathrm { d a t a } } ) \cap \operatorname { s u p p } ( { \overline { { P } } } ) = \emptyset$ . Let $D _ { \phi } : \mathcal { X } \mathbb { R }$ be the set of all discriminators over $\mathcal { X }$ ,
|
| 296 |
+
|
| 297 |
+
$f : \mathbb { R } _ { \geq 0 } \to \mathbb { R }$ be a convex, semi-continuous function such that $f ( 1 ) = 0 { \mathrm { ; } }$ , $f ^ { \star }$ be the convex conjugate of $\cdot _ { f } , \bar { f } ^ { \prime }$ its derivative, and $G _ { \theta }$ be a distribution with sample space $\mathcal { X }$ . Then $\forall \lambda \in ( 0 , 1 ]$ , we have:
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
\underset { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } { \arg \operatorname* { m i n } } \ \underset { D _ { \phi } : \mathcal { X } \to \mathbb { R } } { \operatorname* { m a x } } L _ { f } \big ( G _ { \theta } , D _ { \phi } \big ) = \underset { G _ { \theta } \in \mathcal { P } ( \mathcal { X } ) } { \arg \operatorname* { m i n } } \ \underset { D _ { \phi } : \mathcal { X } \to \mathbb { R } } { \operatorname* { m a x } } L _ { f } \big ( \lambda G _ { \theta } + \big ( 1 - \lambda \big ) \overline { { P } } , D _ { \phi } \big ) = p _ { \mathrm { d a t a } }
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
where $L _ { f } ( Q , D _ { \phi } ) = \mathbb { E } _ { \pmb { x } \sim p _ { \mathrm { d a t a } } } [ D _ { \phi } ( \pmb { x } ) ] - \mathbb { E } _ { \pmb { x } \sim Q } [ f ^ { \star } ( D _ { \phi } ( \pmb { x } ) ) ]$ is the objective for $f$ -GAN (Nowozin et al., 2016). However, the optimal discriminators are different for the two objectives:
|
| 304 |
+
|
| 305 |
+
$$
|
| 306 |
+
\begin{array} { c } { \underset { D _ { \phi } : \mathcal { X } \mathbb { R } } { \arg \operatorname* { m a x } } L _ { f } ( G _ { \theta } , D _ { \phi } ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / G _ { \theta } \big ) } \\ { \underset { \mathrm { a r g } \operatorname* { m a x } } { \arg \operatorname* { m a x } } L _ { f } \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } , D _ { \phi } \big ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } \big ) \big ) } \end{array}
|
| 307 |
+
$$
|
| 308 |
+
|
| 309 |
+
Proof. Let us use $p ( x ) , { \bar { p } } ( x ) , q ( x )$ to denote the density functions of $p _ { \mathrm { d a t a } } , \overline { { P } }$ and $G _ { \theta }$ respectively (and $P , { \overline { { P } } } , Q$ for the respective distributions). First, from Lemma 1 in Nguyen et al. (2008), we have that
|
| 310 |
+
|
| 311 |
+
$$
|
| 312 |
+
\begin{array} { c } { { \displaystyle \operatorname* { m a x } _ { D _ { \phi } : \mathcal { X } \to \mathbb { R } } L _ { f } ( G _ { \theta } , D _ { \phi } ) = D _ { f } ( P \| G _ { \theta } ) } } \\ { { \displaystyle \operatorname* { m a x } _ { D _ { \phi } : \mathcal { X } \to \mathbb { R } } L _ { f } ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { { P } } } , D _ { \phi } ) = D _ { f } ( P \| \lambda Q + ( 1 - \lambda ) \overline { { { P } } } ) } } \end{array}
|
| 313 |
+
$$
|
| 314 |
+
|
| 315 |
+
where $D _ { f }$ refers to the $f$ -divergence. Then, we have
|
| 316 |
+
|
| 317 |
+
$$
|
| 318 |
+
\begin{array} { r l } & { \quad B _ { 2 } ( F ) [ M \otimes { \bf { j } } + ( 1 - \lambda ) F ] } \\ & { = \int _ { \gamma } \langle \partial _ { t } ( x ) + ( 1 - \lambda ) \widetilde { \partial } _ { t } ( x ) \rangle \qquad \left( \frac { p ( x ) } { M ( \sigma ) } \right) [ 1 \quad \lambda ] \widehat { \partial } _ { t } ( x ) \rangle } \\ & { = \int _ { \gamma } \lambda \widehat { \mu } _ { 0 } ( x ) \Big { \Big [ \displaystyle \frac { p ( x ) } { M ( \sigma ) + ( 1 - \lambda ) \widehat { \partial } _ { t } ( x ) } \Big ] } + ( 1 - \lambda ) f ( 0 ) 1 } \\ & { \quad \mathrm { s . a . j ~ } \left( \int _ { \gamma } \psi ( \sigma ) \frac { p ( x ) } { M ( \sigma ) + ( 1 - \lambda ) \widehat { \partial } _ { t } ( x ) } \right) - ( 1 - \lambda ) f ( 0 ) } \\ & { \quad \mathrm { ~ } } \\ & { \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad } \\ & { \quad \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \quad \mathrm { ~ } \quad \quad \mathrm { ~ } \quad \quad \mathrm { ~ } \quad \quad \mathrm { ~ } \quad p _ { G } ^ { ( 1 ) } [ M \otimes { \bf { j } } ] } \\ & { = \mathrm { ~ \mathcal { A } ~ } \left( \frac { 1 } { \lambda } \int _ { x } \lambda \widehat { \mu } ( x ) \right) \ \ \mathrm { ~ ( ~ \widehat { \mu } _ { 0 } ( x ) ) ~ } \ \mathrm { ~ ( ~ \widehat { \mu } _ { 0 } ( x ) ) ~ } \ \mathrm { ~ ( ~ \widehat { \mu } _ { 0 } ( x ) ) ~ } \ \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \mathrm { ~ } \quad p _ { G } ^ { ( 2 ) } [ x ] } \\ & \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \mathrm { ~ } \quad \ \end{array}
|
| 319 |
+
$$
|
| 320 |
+
|
| 321 |
+
where we use the fact that $f$ is convex with Jensen’s inequality in Eq.(11) and the fact that $p ( x ) { \overline { { p } } } ( x ) = 0 , \forall x \in \mathcal { X }$ in Eq.(12) since $P$ and $\overline { { P } }$ has disjoint support.
|
| 322 |
+
|
| 323 |
+
We also have
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
\begin{array} { l } { \displaystyle D _ { f } ( P | | \lambda P + ( 1 - \lambda ) \overline { { P } } ) = \int _ { \chi } \left( \lambda p ( x ) + ( 1 - \lambda ) \overline { { p } } ( x ) \right) f \left( \frac { p ( x ) } { \lambda p ( x ) + ( 1 - \lambda ) \overline { { p } } ( x ) } \right) } \\ { \displaystyle \qquad = \int _ { \chi } \left( \lambda p ( x ) \right) f \left( \frac { p ( x ) } { \lambda p ( x ) + ( 1 - \lambda ) \overline { { p } } ( x ) } \right) + ( 1 - \lambda ) f ( 0 ) } \\ { \displaystyle \qquad = \int _ { \chi } \left( \lambda p ( x ) \right) f \left( \frac { p ( x ) } { \lambda p ( x ) + 0 } \right) + ( 1 - \lambda ) f ( 0 ) } \\ { \displaystyle \qquad = \lambda f \left( \frac { 1 } { \lambda } \right) + ( 1 - \lambda ) f ( 0 ) } \end{array}
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
Therefore, in order for the inequality in Equation 11 to be an equality, we must have that $q ( { \pmb x } ) =$ $p ( { \pmb x } )$ for all $\textbf { \textit { x } } \in \textbf { \textit { X } }$ . Therefore, the generator distribution recovers the data distribution at the equlibrium posed by the NDA-GAN objective, which is also the case for the original GAN objective.
|
| 330 |
+
|
| 331 |
+
Moreover, from Lemma 1 in Nguyen et al. (2008), we have that:
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
\underset { D _ { \phi } } { \arg \operatorname* { m a x } } L _ { f } ( Q , D _ { \phi } ) = f ^ { \prime } ( p _ { \mathrm { d a t a } } / Q )
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
Therefore, by replacing $Q$ with $G _ { \theta }$ and $( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { { P } } } )$ , we have:
|
| 338 |
+
|
| 339 |
+
$$
|
| 340 |
+
\begin{array} { c } { \underset { D _ { \phi } : \mathcal { X } \mathbb { R } } { \arg \operatorname* { m a x } } L _ { f } ( G _ { \theta } , D _ { \phi } ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / G _ { \theta } \big ) } \\ { \underset { \mathrm { a r g } \ \mathrm { m a x } } { \arg \operatorname* { m a x } } L _ { f } \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } , D _ { \phi } \big ) = f ^ { \prime } \big ( p _ { \mathrm { d a t a } } / \big ( \lambda G _ { \theta } + ( 1 - \lambda ) \overline { { P } } \big ) \big ) } \end{array}
|
| 341 |
+
$$
|
| 342 |
+
|
| 343 |
+
which shows that the optimal discriminators are indeed different for the two objectives.
|
| 344 |
+
|
| 345 |
+
# D NDA FOR CONTRASTIVE REPRESENTATION LEARNING
|
| 346 |
+
|
| 347 |
+
We describe the detailed statement of Theorem 2 and proof as follows.
|
| 348 |
+
|
| 349 |
+
Theorem 3. For some distribution $\overline { { p } }$ over $\mathcal { X }$ such that $\mathrm { s u p p } ( \overline { { p } } ) \cap \mathrm { s u p p } ( p _ { \mathrm { d a t a } } ) = \emptyset$ , and for any maximizer of the NDA-CPC objective
|
| 350 |
+
|
| 351 |
+
$$
|
| 352 |
+
\hat { h } \in \underset { h _ { \theta } } { \arg \operatorname* { m a x } } \underset { g _ { \phi } } { \operatorname* { m a x } } \overline { { I _ { \mathrm { C P C } } } } ( h _ { \theta } , g _ { \phi } )
|
| 353 |
+
$$
|
| 354 |
+
|
| 355 |
+
the representations of negative samples are disjoint from that of positive samples for $\hat { h }$ ; i.e., $\forall { \mathbf { } } x \in$ $\operatorname { s u p p } ( p _ { \mathrm { d a t a } } ) , \bar { \pmb { x } } \in \operatorname { s u p p } ( \overline { { p } } )$ ,
|
| 356 |
+
|
| 357 |
+
$$
|
| 358 |
+
\mathrm { s u p p } ( \hat { h } ( \bar { \pmb x } ) ) \cap \mathrm { s u p p } ( \hat { h } ( \pmb x ) ) = \emptyset
|
| 359 |
+
$$
|
| 360 |
+
|
| 361 |
+
Proof. We use a contradiction argument to establish the proof. For any representation mapping that maximizes the NDA-CPC objective,
|
| 362 |
+
|
| 363 |
+
$$
|
| 364 |
+
\hat { h } \in \underset { h _ { \theta } } { \arg \operatorname* { m a x } } \underset { g _ { \phi } } { \operatorname* { m a x } } \overline { { I _ { \mathrm { C P C } } } } ( h _ { \theta } , g _ { \phi } )
|
| 365 |
+
$$
|
| 366 |
+
|
| 367 |
+
suppose that the positive and NDA samples share some support, i.e., $\exists x \ \in \ \operatorname { s u p p } ( p _ { \mathrm { d a t a } } ) , { \bar { x } } \ \in$ $\operatorname { s u p p } ( { \overline { { p } } } )$ ,
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\operatorname { s u p p } ( { \hat { h } } ( { \bar { x } } ) ) \cap \operatorname { s u p p } ( { \hat { h } } ( \mathbf { x } ) ) \neq \emptyset
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
We can always construct $\hat { h } ^ { \prime }$ that shares the same representation with $\hat { h }$ for $p _ { \mathrm { d a t a } }$ but have disjoint representations for NDA samples; i.e., $\forall x \in \mathrm { s u p p } ( \bar { p _ { \mathrm { d a t a } } } ) , \bar { x } \in \mathrm { s u p p } ( \bar { p } )$ , the following two statements are true:
|
| 374 |
+
|
| 375 |
+
1. $\hat { h } ( \pmb { x } ) = \hat { h } ^ { \prime } ( \pmb { x } )$ ;$2 . \ \operatorname { s u p p } ( { \hat { h } } ^ { \prime } ( { \bar { x } } ) ) \cap \operatorname { s u p p } ( { \hat { h } } ^ { \prime } ( x ) ) = \varnothing .$
|
| 376 |
+
|
| 377 |
+
Our goal is to prove that:
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
\operatorname* { m a x } _ { g _ { \phi } } \overline { { I _ { \mathrm { C P C } } } } ( \hat { h } ^ { \prime } , g _ { \phi } ) > \operatorname* { m a x } _ { g _ { \phi } } \overline { { I _ { \mathrm { C P C } } } } ( \hat { h } , g _ { \phi } )
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
which shows a contradiction.
|
| 384 |
+
|
| 385 |
+
For ease of exposition, let us allow zero values for the output of $g$ , and define $0 / 0 = 0$ (in this case, if $g$ assigns zero to positive values, then the CPC objective becomes $- \infty$ , so it cannot be a maximizer to the objective).
|
| 386 |
+
|
| 387 |
+
Let $\hat { g } \in \arg \operatorname* { m a x } _ { } \overline { { I _ { \mathrm { C P C } } } } ( \hat { h } , g _ { \phi } )$ be an optimal critic to the representation model $\hat { h _ { \theta } }$ . We then define a following critic function:
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
\hat { g } ^ { \prime } ( \pmb { x } , z ) = \left\{ \begin{array} { l l } { \hat { g } ( \pmb { x } , z ) } & { \mathrm { i f } \ \exists \pmb { x } \in \mathrm { s u p p } ( p _ { \mathrm { d a t a } } ) \quad s . t . \quad z \in \mathrm { s u p p } ( \hat { h } ^ { \prime } ( \pmb { x } ) ) } \\ { 0 } & { \mathrm { o t h e r w i s e } } \end{array} \right.
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
In other words, the critic assigns the same value for data-representation pairs over the support of $p _ { \mathrm { d a t a } }$ and zero otherwise. From the assumption over $\hat { h }$ $, \exists x \in \mathrm { s u p p } ( p _ { \mathrm { d a t a } } ) , \bar { x } \in \mathrm { s u p p } ( \bar { p } )$ , and $\overline { { z } } \in \operatorname { s u p p } ( \hat { h } ( \bar { \pmb x } ) )$ ,
|
| 394 |
+
|
| 395 |
+
$$
|
| 396 |
+
\overline { { z } } \in \operatorname { s u p p } ( \hat { h } ( \pmb { x } ) )
|
| 397 |
+
$$
|
| 398 |
+
|
| 399 |
+
so $( { \pmb x } , \overline { { { \pmb z } } } )$ can be sampled as a positive pair and $\hat { g } ( \pmb { x } , \overline { { \pmb { z } } } ) > 0$ .
|
| 400 |
+
|
| 401 |
+
Therefore,
|
| 402 |
+
|
| 403 |
+
$$
|
| 404 |
+
\begin{array} { r l } & { \quad \underset { g _ { \phi } } { \operatorname* { m a x } } \bar { I } _ { \mathrm { C P C } } ( \hat { h } ^ { \prime } , g _ { \phi } ) \geq \bar { I } _ { \mathrm { C P C } } ( \hat { h } ^ { \prime } , \hat { g } ^ { \prime } ) } \\ & { = \mathbb { E } \Bigg [ \log \frac { ( n + m ) \hat { g } ^ { \prime } ( { \pmb x } , z ) } { \hat { g } ^ { \prime } ( { \pmb x } , z ) + \sum _ { j = 1 } ^ { n - 1 } \hat { g } ^ { \prime } ( { \pmb x } , \hat { z _ { j } } ) + \sum _ { k = 1 } ^ { m } \underbrace { \hat { g } ^ { \prime } ( { \pmb x } , \overline { { z _ { k } } } ) } _ { = 0 } } \Bigg ] } \\ & { \geq \mathbb { E } \Bigg [ \log \frac { ( n + m ) \hat { g } ( { \pmb x } , z ) } { \hat { g } ( { \pmb x } , z ) + \sum _ { j = 1 } ^ { n - 1 } \hat { g } ( { \pmb x } , \hat { z _ { j } } ) + \sum _ { k = 1 } ^ { m } \hat { g } ( { \pmb x } , \overline { { z _ { k } } } ) } \Bigg ] } \\ & { = \underset { g _ { \phi } } { \operatorname* { m a x } } \bar { I } _ { \mathrm { C P C } } ( \hat { h } , g _ { \phi } ) } \end{array}
|
| 405 |
+
$$
|
| 406 |
+
|
| 407 |
+
which proves the theorem via contradiction.
|
| 408 |
+
|
| 409 |
+
(plug in definition for NDA-CPC)
|
| 410 |
+
|
| 411 |
+
(Assumption that $\hat { g }$ is optimal critic)
|
| 412 |
+
|
| 413 |
+
# E WHAT DOES THE THEORY OVER GANS ENTAIL?
|
| 414 |
+
|
| 415 |
+
Our goal is to show that NDA GAN objectives are principled in the sense that with infinite computation, data, and modeling capacity, NDA GAN will recover the same optimal generator as a regular GAN. In other words, under these assumptions, NDA will not bias the solution in an undesirable way. We note that the NDA GAN objective is as stable as regular GAN in practice since both methods estimate a lower bound to the divergence with the discriminator, and then minimize that lower bound w.r.t. the generator. The estimated divergences are slightly different, but they have the same minimizer (which is the ground truth data distribution). Intuitively, while GAN and NDA GAN will give the same solution asymptotically, NDA GAN might get there faster (with less data) because it leverages a stronger prior over what the support should (not) be.
|
| 416 |
+
|
| 417 |
+
# F PIX2PIX
|
| 418 |
+
|
| 419 |
+

|
| 420 |
+
Figure 7 highlights the qualitative improvements when we apply the NDA method to Pix2Pix model (Isola et al., 2017).
|
| 421 |
+
Figure 7: Qualitative results on Cityscapes.
|
| 422 |
+
|
| 423 |
+
# G ANOMALY DETECTION
|
| 424 |
+
|
| 425 |
+
Here, we show the histogram of difference in discriminator’s output for clean and OOD samples in Figure 8. High difference values imply that the Jigsaw NDA is better at distinguishing OOD samples than the normal BigGAN.
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
Figure 8: Histogram of D(clean) - D(corrupt) for 3 different corruptions.
|
| 429 |
+
|
| 430 |
+
H EFFECT OF HYPERPARAMETER ON UNCONDITIONAL IMAGE GENERATION
|
| 431 |
+
|
| 432 |
+
Here, we show the effect of $\lambda$ for unconditional image generation on CIFAR-10 dataset.
|
| 433 |
+
|
| 434 |
+
Table 8: Effect of $\lambda$ on the FID score for unconditional image generation on CIFAR-10 using Jigsaw as NDA.
|
| 435 |
+
|
| 436 |
+
<table><tr><td>入</td><td>1.0</td><td>0.75</td><td>0.5</td><td>0.25</td><td>0.15</td></tr><tr><td>FID</td><td>18.64</td><td>16.61</td><td>14.95</td><td>12.61</td><td>13.01</td></tr></table>
|
| 437 |
+
|
| 438 |
+
# I UNSUPERVISED LEARNING ON IMAGES
|
| 439 |
+
|
| 440 |
+

|
| 441 |
+
Figure 9: Comparing the cosine distance of the representations learned with Jigsaw NDA and MocoV2 (shaded blue), and original Moco-V2 (white). With NDA, we project normal and its jigsaw image representations further away from each other than the one without NDA.
|
| 442 |
+
|
| 443 |
+
# J DATASET PREPARATION FOR FID EVALUATION
|
| 444 |
+
|
| 445 |
+
For dataset preparation, we follow the the following procedures: (a) CIFAR-10 contains 60K $3 2 \times 3 2$ images with 10 labels, out of which 50K are used for training and 10K are used for testing, (b)
|
| 446 |
+
|
| 447 |
+
CIFAR-100 contains 60K $3 2 \times 3 2$ images with 100 labels, out of which 50K are used for training and 10K are used for testing, (c) CelebA contains 162,770 train images and 19,962 test images (we resize the images to $6 4 \times 6 4 \mathrm { p x } ,$ ), (d) STL-10 contains 100K (unlabeled) train images and 8K (labeled) test images (we resize the images to $3 2 \times 3 2 \mathrm { p x }$ ). In our experiments the FID is calculated on the test dataset. In particular, we use 10K generated images vs. 10K test images for CIFAR-10, 10K vs. 10K for CIFAR-100, 19,962 vs. 19,962 for CelebA, and 8K vs 8K for STL-10.
|
| 448 |
+
|
| 449 |
+
# K HYPERPARAMETERS AND NETWORK ARCHITECTURE
|
| 450 |
+
|
| 451 |
+
Generative Modeling. We use the same network architecture in BigGAN Brock et al. (2018) for our experiments. The code used for our experiments is based over the author’s PyTorch code. For CIFAR-10, CIFAR-100, and CelebA we train for 500 epochs whereas for STL-10 we train for 300 epochs. For all the datasets we use the following hyperparameters: batch-size $= 6 4$ , generator learning rate $= 2 \mathrm { e } { - } 4$ , discriminator learning rate $= 2 \mathrm { e } { - 4 }$ , discriminator update steps per generator update step $= 4$ . The best model was selected on the basis of FID scores on the test set (as explained above).
|
| 452 |
+
|
| 453 |
+
Momentum Contrastive Learning. We use the official PyTorch implementation for our experiments. For CIFAR-10 and CIFAR-100, we perform unsupervised pre-training for 1000 epochs and supervised training (linear classifier) for 100 epochs. For Imagenet-100, we perform unsupervised pre-training for 200 epochs and supervised training (linear classifier) for 100 epochs. For CIFAR10 and CIFAR-100, we use the following hyperparameters during pre-training: batch-size $= 2 5 6$ , learning-date $= 0 . 3$ , temperature $= 0 . 0 7$ , feature dimensionality $= 2 0 4 8$ . For ImageNet-100 pretraining we have the following: batch-size $= 1 2 8$ , learning-date $= 0 . 0 1 5$ , temperature $= 0 . 2$ , feature dimensionality $= 1 2 8$ . During linear classification we use a batch size of 256 for all the datasets and learning rate of 10 for CIFAR-10, CIFAR-100, whereas for ImageNet-100 we use learning rate of 30.
|
| 454 |
+
|
| 455 |
+
Dense Predictive Coding. We use the same network architecture and hyper-parameters in DPC Han et al. (2019) for our experiments and use the official PyTorch implementation. We perform self-supervised training on UCF-101 for 200 epochs and supervised training (action classifier) for 200 epochs on both UCF-101 and HMDB51 datasets.
|
| 456 |
+
|
| 457 |
+
# L CODE
|
| 458 |
+
|
| 459 |
+
The code to reproduce our experiments is given here.
|
| 460 |
+
|
| 461 |
+
# M IMPLEMENTATION DETAILS
|
| 462 |
+
|
| 463 |
+
For our experiment over GAN, we augment the batch of real samples with a negative augmentation of the same batch, and we treat the augmented images as fake images for the discriminator. Similarly, for the contrastive learning experiments, we consider negative augmentation of the query image batch as negatives for that batch.
|
| 464 |
+
|
| 465 |
+
For all our experiments we used existing open-source models. For experiments over GAN, we use the open-source implementations of BigGAN and Pix2Pix models, and for contrastive learning, we use the open-source implementation of the MoCo-v2 model and Dense Predictive Coding. Hence, we did not explain in detail each of the models. Implementing NDA is quite simple as we only need to generate NDA samples from the images in a mini-batch which only takes several lines of code.
|
| 466 |
+
|
| 467 |
+
# N DOES THE GAIN OF NDA FOR REPRESENTATION LEARNING COME FROM THE FACT THAT MORE NEGATIVE SAMPLES ARE USED?
|
| 468 |
+
|
| 469 |
+
We perform the experiments over MoCo-v2 which maintains a queue of negative samples. The number of negatives is around 65,536. With our approach, we use the augmented versions of images in the same batch as negative. We transform both the key and query images to create NDA samples.
|
| 470 |
+
|
| 471 |
+
Thus, the number of negatives for our approach is $^ { 6 5 , 5 3 6 + 2 }$ (one NDA sample created using query image and other using key image), only 0.00003051664 times more than the original number of negatives samples in MoCo-v2. Thus our experiments are comparable to the baseline MoCo-v2. In terms of computation, we need an additional forward pass in each batch to get the representations of the NDA samples. The normal MoCo-v2 requires 1.09 secs for entire forward computation, which includes forward pass through the network, momentum update of the key encoder and dot product between the positive and negative samples. With NDA, 1 forward computation requires 1.36 secs.
|
| 472 |
+
|
| 473 |
+
O WHAT HAPPENS WHEN NEGATIVE DATA AUGMENTATIONS ARE NOISY?
|
| 474 |
+
|
| 475 |
+
Regarding the performance of negative data augmentation, we perform 2 different experiments:
|
| 476 |
+
|
| 477 |
+
a) When the noise is low - When using jigsaw as our NDA strategy with a $2 \times 2$ grid, one out of the 24 permutations will be the original image. We find that when this special permutation is not removed, or there is $4 \%$ “noise”, the FID score is 12.61, but when it is removed the FID score is 12.59. So, we find that when the noise is low, the performance of our approach is not greatly affected and is robust in such scenarios.
|
| 478 |
+
|
| 479 |
+
b) When the noise is large - We use random vertical flipping as our NDA strategy, where with $50 \%$ probability the image is vertically flipped during NDA. In this case, the “noise” is large, as $50 \%$ of the time, the negative sample is actually the original image. We contrast this with the “noisefree” NDA strategy where the NDA image is always vertically flipped. We find that for the random vertical flipping NDA, the FID score of BigGAN is 15.84, whereas, with vertical flipping NDA, the FID score of BigGAN is 14.74. So performance degrades with larger amounts of noise.
|
parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ovp8dvB8IBH/Ovp8dvB8IBH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1xjdoC9Fm/S1xjdoC9Fm.md
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OFFLINE DEEP MODELS CALIBRATION WITH BAYESIAN NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this work the authors show that Bayesian Neural Networks (BNNs) can be efficiently applied to calibrate state-of-the-art Deep Neural Networks (DNN). Our approach acts offline, i.e., it is decoupled from the training of the DNN to be calibrated. This offline approach allow us to apply our BNN calibration to any model regardless of the limitations that the model may present during training. Note that this offline setting is also appropriate in order to deal with privacy concerns of DNN training data or implementation, among others. We show that our approach clearly outperforms other simple maximum likelihood based solutions that have recently shown very good performance, as temperature scaling (Guo et al., 2017). As an example, we reduce the Expected Calibration Error $( \mathrm { E C E } \% )$ from 0.52 to 0.24 on CIFAR-10 and from 4.28 to 2.46 on CIFAR-100 on two Wide ResNet with $9 6 . 1 3 \%$ and $8 0 . 3 9 \%$ accuracy respectively, which are among the best results published for these tasks. Moreover, we show that our approach improves the performance of online methods directly applied to the DNN, e.g. Gaussian processes or Bayesian Convolutional Neural Networks. Finally, this decoupled approach allows us to apply any further improvement to the BNN without considering the computational restrictions imposed by the deep model. In this sense, this offline setting is a practical application where BNNs can be considered, which is one of the main criticisms to these techniques. In terms of reproducibility, we provide all the implementation details in https://github.com/2019submission/bnn.2019.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep Neural Networks (DNNs) have achieved state of art performance in many task such as Image Recognition (Huang et al., 2017; Szegedy et al., 2017; Zagoruyko & Komodakis, 2016), language modeling (Mikolov et al., 2013a;b), machine translation (Vaswani et al., 2017) or speech (Hinton et al., 2012). For that reason, neural networks are now used in many applications. However, this state-of-theart performance is measured in terms of accuracy, but there are many tasks in which the probabilistic information must be also reliable. For example, a probabilistic classifier can be incorporated into a more complex model considering multiple sources of information, by the use of e.g., probabilistic graphical models (Koller & Friedman, 2009), or by combining neural networks with language models in natural language processing tasks (Gulcehre et al., 2017). In addition, probabilistic outputs of classifiers have proven to be useful in many areas apart from classical machine learning tasks, such as language recognition (Brümmer & van Leeuwen, 2006), language models for speech recognition (Tüske et al., 2018) or medical diagnosis (Caruana et al., 2015).
|
| 12 |
+
|
| 13 |
+
In Bayesian statistics, the reliability of probabilities is measured by their calibration. As a consequence, the machine learning community has been exploring methods to calibrate the output of classifiers to achieve the many beneficial properties of well-calibrated probabilities (Zadrozny & Elkan, 2002a; Cohen & Goldszmidt, 2004; Niculescu-Mizil & Caruana, 2005). Nowadays, there is an increasing interest in obtaining reliable probabilities in the deep learning community. In the past, neural networks trained with a cross-entropy criterion tended to present relatively good calibration. However, a relevant recent work in Guo et al. (2017) has evidenced that modern state-of-the-art neural networks are badly calibrated in general. Moreover, the same work shows that calibration can be dramatically improved by very simple maximum-likelihood parametric techniques, among which Temperature Scaling (TS) is highlighted as the preferred choice, due to its extreme simplicity, very good behavior in general and computational efficiency. In fact, TS outperforms more complex techniques in most cases, leading to the conclusion that good calibration can be better achieved with simpler techniques. This conclusion follows the hypothesis that the space configured by the outputs of a deep model is relatively simple, and therefore good performance, measured as Expected Calibration Error (ECE), can be achieved with very simple models. In fact, TS is a technique that performs nicely in complex multiclass tasks (Guo et al., 2017).
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
ResNet-101: $9 3 . 4 6 \%$ accuracy (CIFAR10)
|
| 17 |
+
Figure 1: Reliability diagrams (Guo et al., 2017) for two networks trained on CIFAR-10 and CIFAR100. The red line represents perfect calibration. We plot the Expected Calibration Error (ECE $\%$ ) for 15 bins (see section 5 for a description). The lower the better.
|
| 18 |
+
|
| 19 |
+
In general, there are two main approaches to reduce overconfidence: implicit or online and explicit or offline. An implicit method aims at obtaining calibrated distributions directly at the output of the model, while explicit methods post-process the output of the model to be calibrated. In this paper we propose an offline method based on a Bayesian Neural Networks (BNNs) to obtain calibrated probabilities, see figure 2. We use BNNs as we aim at being benefited from two key properties of Bayesian statistics and neural networks: the high expressiveness of neural network models and the capabilities of the Bayesian statistics to model the uncertainty. We assume the hypothesis that as long as the uncertainty is correctly modelled, we can use high expressive function approximators for the task of calibration. These high expressive models are required since we assume that the calibration space is not simple. However, the generalization capability of these models are achieved through proper uncertainty consideration. Figure 1 shows reliability diagrams comparing our BNN method to TS.
|
| 20 |
+
|
| 21 |
+
This work is organized as follows. We first provide an insight on why Bayesian Statistics and neural networks are suitable to adjust confidence in output probabilities. We then describe our offline calibration approach based on BNNs. We end up comparing our method to TS and reporting clear performance improvements. Finally, we discuss our approach against recent published techniques, enumerate some beneficial properties and propose possible improvements over this contribution.
|
| 22 |
+
|
| 23 |
+
# 2 BAYESIAN MODELLING AND CALIBRATION
|
| 24 |
+
|
| 25 |
+
In a classification scenario, calibration can be interpreted as the agreement between the probabilities of a class assigned by a model to a set of samples, and the proportion of those samples where that class is actually the true one.
|
| 26 |
+
|
| 27 |
+
One way of achieving calibration is to reliably modelling the probabilistic distributions of the data from the classes involved. This is the main strength of Bayesian models, which manage uncertainty properly, in contrast to point-estimate approaches (i.e. Maximum Likelihood or Maximum Posterior). In the former, the uncertainty is incorporated by taking an average of all the likelihood models under the posterior distribution on the parameters, given an observed set of data:
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
p ( t | x ) = \mathbb { E } _ { p ( \theta | \mathcal { O } ) } \{ p ( t | x , \theta ) \} ,
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
where $\theta$ are model parameters, $x$ represent a sample for which we want to predict a label $t$ and $\mathcal { O } = \{ ( x _ { i } , t _ { i } ) \} _ { i = 1 } ^ { N }$ is the set of observed samples1. In Bayesian approaches, it is indeed the observed data what model how representative a likelihood model is for a particular task, and thus how it influences the predictions. On the other hand, in point-estimate models all the decision is based on a choice of the parameter once the model is trained.
|
| 34 |
+
|
| 35 |
+
For instance, consider the case of a MAP network (e.g., a typical deep convolutional model trained with cross-entropy loss and $L _ { 2 }$ regularization). This model explains the data based on a point-estimate training, i.e., by representing what is more likely to appear. Nowadays, this gives outstanding accuracy in classification tasks, but it is easy to train an over/under-confident model, i.e., the one that outputs too extreme probabilities, even for unfavourable cases like e.g. when data that has conditions not unseen in the training set, or not explained by the expressiveness of the model itself. This could happen if the true distribution does not lie in the family of parametric models $p ( t | x , \theta )$ . We will refer to both conditions as mismatch. This is very harmful for the calibration, because in those mismatch cases, the model should yield more moderate probabilities, otherwise the classification errors will be more catastrophic. In other words, in tasks where calibration matters, a classification error has unequal consequences if the probabilities are moderate or extreme. Thus, for example, if there exists such mismatching conditions, what is likely to happen, a point estimate will not represent the data (i.e. the probability assigned) in the way it should, possibly leading to over-or under-estimation of probabilities. On the other hand, in the Bayesian framework, a posterior distribution on the parameters could consider networks explaining these mismatching conditions. By averaging different contributions, the model ideally moderates probabilities on unfavourable data. For the sake of illustration, we provide a simple example in appendix A. We encourage unfamiliar readers with Bayesian statistics and calibration to read this appendix.
|
| 36 |
+
|
| 37 |
+
Regarding the accuracy of Bayesian models, in Bayesian decision theory, if the model used to generate the data is known, the optimal error can be achieved, which also means optimal accuracy if all decision costs are equal. This suggests that a proper way of assigning probabilities is also paramount for the accuracy. Thus, by choosing appropriate densities for the class-conditional probabilities $p ( t | x )$ , such as factorized multivariate Bernoulli distributions like in point estimate models, the accuracy will also be correctly modelled. Moreover, it is well known that Bayesian models asymptotically tend to point estimate models as the data increases in size, see Duda et al. (2000) section 3.4. Therefore, it is expected that good accuracy performance achieved by point-estimate models should be also achievable by Bayesian models, at least for sufficient amounts of data.
|
| 38 |
+
|
| 39 |
+
# 3 OFFLINE CALIBRATION WITH BAYESIAN NEURAL NETWORKS
|
| 40 |
+
|
| 41 |
+
The architecture proposed in this work is shown in Figure 2. We apply a BNN to the potentially uncalibrated outputs of a DNN model. The goal is to improve the calibration minimizing the accuracy degradation of the original DNN model. Our approach works offline, meaning that given a DNN model, we project the available data to the space defined by the outputs of the model in the form of logit, i.e. pre-softmax values. This new representation is then the input to our BNN. The BNN aims at taking this uncalibrated so-called logit space and project it to a new calibrated one. The same procedure is applied for the TS method.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 2: Exemplary representation of the architecture of our proposed model. On the left, an expensive pretrained DNN on ImageNet is trained on a specific dataset (transfer learning). Then, the (uncalibrated) output of such DNN is the input to the BNN calibration stage. This stage is trained by the maximization of the Expected Lower Bound (ELBO) and predictions are done using Monte Carlo integration. The inputs and outputs of the Bayesian stage have same dimension (given by the number of classes), and lie in the so-called logit space. Orange Gaussians on each arrow represent variational distributions on parameters. We do not plot all the arrows for clarity. This Bayesian stage is independent of the previous one as we only require access to the logits of an already trained model.
|
| 45 |
+
|
| 46 |
+
This off-line set-up presents clear advantages. First, the approach is efficient, since the DNN model does not need to be re-trained for re-calibration. Furthermore, we can incorporate future improvements to the BNN calibration stage without affecting the previous DNN model. Second, our proposal is extremely flexible, as the proposed BNN calibration stage will work with any probabilistic model, even implicitly-calibrated models, with potential benefits on calibration performance. And finally, our proposal preserves privacy, because there is no need to access the original data used to train the DNN model, or even the DNN topology: to be trained, the BNN only needs the data projected to the outputs of the DNN on the logit space, and the original targets $t$ .
|
| 47 |
+
|
| 48 |
+
For these Bayesian approaches one has to compute the posterior distribution $p ( \theta | \mathcal { O } )$ and the expectation in equation 1. Using configurations that yield to analytic solutions to both problems result in low-expression models for this task. We solve this problem by choosing Neural Networks to parameterize the likelihood $p ( t | x , \theta )$ of our BNN, and therefore taking advantage of the high expressiveness of these models. In this case, several intractabilities arise that must be addressed.
|
| 49 |
+
|
| 50 |
+
In this work we approximate expectations on equation 1 with Monte Carlo integration, and the posterior is approximated by a variational distribution in terms of the Kulback-Lieber Divergence. This is done by the maximization the Evidence Lower Bound (ELBO). We use stochastic optimization based on the reparameterization trick (Kingma & Welling, 2014; Rezende et al., 2014) to approximate the expectation under the variational distribution, and also mini-batch stochastic optimization for expectations under data distribution. Thus, our training criteria is given by:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
E L B O = \frac { 1 } { N } \sum _ { ( x , t ) \sim p _ { d } ( x , t ) } \Bigl [ \frac { 1 } { K } \sum _ { \theta \sim q _ { \phi } ( \theta ) } [ \log p ( t | x , \theta ) ] - \beta \cdot D _ { K L } \{ q _ { \phi } ( \theta ) / / p ( \theta ) \} \Bigr ] ,
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where we introduce $\beta$ following Blundell et al. (2015).
|
| 57 |
+
|
| 58 |
+
Our variational distribution is a factorized Gaussian distribution and for that reason we refer to our BNN approach as a basic approach, as we do not incorporate any improvement recently proposed for BNN models, such as normalizing flows, local reparameterization, and so on. Also, we use a standard normal density for the prior. We choose this simple approximation to demonstrate our starting hypothesis: that BNNs can be applied to improve the calibration of state-of-the-art DNN in a very efficient way. Our basic BNN model can be improved by using normalizing flows (Rezende & Mohamed, 2015; Kingma et al., 2016; Huang et al., 2018; van den Berg et al., 2018), auxiliary variables (Agakov & Barber, 2004; Ranganath et al., 2016; Maaløe et al., 2016), local reparameterization (Kingma et al., 2015), combinations of all of them (Louizos & Welling, 2017) or deterministic models (Wu et al., 2018). Also, Cremer et al. (2018) has recently pointed out that amortized inference leads to an additional gap in the bound, in addition to the $D _ { K L }$ gap between the true and variational posteriors; and we can also use other proposals to mitigate this effect (Shu et al., 2018; Kim et al., 2018).
|
| 59 |
+
|
| 60 |
+
Finally, class predictions are assigned by first computing the logits of a test sample using the first DNN stage $\boldsymbol { B }$ , and then using them as inputs of our BNN to yield calibrated probabilities, which can be formalized as follows:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { c } { l = { } } \\ { { } } \\ { { p ( t | x , \mathcal { O } ) \approx \displaystyle \frac { 1 } { M } \sum _ { i = 1 } ^ { M } p ( t | l , \theta _ { i } ) ; \theta _ { i } \sim q _ { \phi } ( \theta ) , } } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $M$ is a value chosen on validation. Note that our proposed BNN is not as efficient as TS for calibration. However, the contributions to the weighted average can be fully parallelized computationally, as predictions do not depend on each other. Thus, we can use modern GPU libraries such as CUBLAS and batch-based operations to dramatically speed-up the process.
|
| 67 |
+
|
| 68 |
+
# 4 RELATED WORK
|
| 69 |
+
|
| 70 |
+
To our knowledge, TS (Guo et al., 2017) has been consistently reported as the best technique to improve calibration over a list of classical ways of improving calibration, such as histogram binning (Zadrozny & Elkan, 2001), isotonic regression (Zadrozny & Elkan, 2002b), Platt scaling (Platt, 1999) or Bayesian binning into quantiles (Naeini et al., 2015) among others. For a recent description and performance comparison with modern neural networks, see Guo et al. (2017). On the other hand, there are several works that study overconfident predictions and model uncertainty in different contexts, but without reporting an explicit measurement of calibration performance in deep neural models. For instance, Gal & Ghahramani (2015) connect Bernoulli dropout with BNNs, and Gal & Ghahramani (2016) links Gaussian processes with classical dropout regularized networks, showing how uncertainty estimates can be obtained from this networks. In the latter, the authors state that these Bayesian outputs are not calibrated. In Pereyra et al. (2017), an entropy term is added to the log-likelihood to relax overconfidence. Lakshminarayanan et al. (2017) propose training network ensembles with adversarial noise samples to output confident scores. Chen et al. (2018) propose a model that uses probes of the individual layers of the neural network classifier to create a confidence score for the network output. DeVries & Taylor (2018) train a second output obtained from the penultimate layer of the classifier to be confident by interpolation of the softmax output and the true value, scaled by this score. Lee et al. (2018) proposed a generative approach for detecting outof-distribution samples but evaluates calibration performance comparing their method with normal cross-entropy minimization, using TS as the calibration technique.
|
| 71 |
+
|
| 72 |
+
On the side of BNNs, Kingma et al. (2015) formalize Gaussian dropout as a Bayesian approach. In Louizos & Welling (2017), novel BNNs are proposed, mixing inverse autoregressive flows (Kingma et al., 2016), auxiliary variables (Maaløe et al., 2016) and local reparameretization (Kingma et al., 2015). None of these approaches measure calibration explicitly on deep neural models, as we do. For instance, Louizos & Welling (2017) and Lakshminarayanan et al. (2017) evaluate uncertainty by training on one dataset and use it on another, expecting a maximum entropy output distribution. More recently, Zhang et al. (2018) propose an scalable inference algorithm that is also asymptotically accurate as MCMC algorithms.
|
| 73 |
+
|
| 74 |
+
We compare our proposed BNN approach against TS, as to our knowledge it is the state of the art in calibration tasks involving deep neural models, according to the reviewed previous work. TS widely improves calibration without affecting the accuracy, and can be efficiently applied to any model. Formally, given $\mathcal { O }$ , TS maximizes the log-likelihood of the conditional distribution $p ( t | x / T )$ w.r.t. the parameter $T$ . In this case, $x$ also represents the output logits of the deep convolutional model.
|
| 75 |
+
|
| 76 |
+
In Section 6, we will comparatively discuss the properties and results of our proposal with other works recently found in the literature for calibration on deep models, some of them based on implicit and explicit models.
|
| 77 |
+
|
| 78 |
+
# 5 EXPERIMENTS
|
| 79 |
+
|
| 80 |
+
We demonstrate calibration performance on several computer vision models on several datasets. We have used CIFAR10 and CIFAR100 databases (Krizhevsky et al., a;b); SVHN (Netzer et al., 2011); and a GENDER recognition task (Eidinger et al., 2014). We use a validation set randomly taken from the training set with 5000 samples for CIFAR10 and CIFAR100, 10000 samples for SVHN and 4005 for GENDER. This validation set is used to train the TS parameter and to choose the number of Monte Carlo samples, $M$ in equation 2. We report results for the best model on validation for all the tested configurations. We optimize the ELBO using adam optimization (Kingma & Ba, 2014), since it performed better than stochastic gradient descent on our previous experiments. We used $\beta = 0 . 1$ from the set $\lbrace 1 , 0 . 1 , 0 . 0 1 \rbrace$ as it behaves better on validation.
|
| 81 |
+
|
| 82 |
+
In order to compare our experiments with uncalibrated and TS calibrated probabilities, we used an unbiased estimator of the Expected Calibration Error (ECE) computed as in Guo et al. (2017), with 15 bins. The ECE measures the expected value of the difference between accuracy and confidence:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\mathrm { E C E } = \sum _ { i = 1 } ^ { 1 5 } \frac { | B _ { i } | } { N } | \mathrm { a c c } ( B _ { i } ) - \mathrm { c o n f } ( B _ { i } ) |
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $N$ is the number of total samples; $B _ { i }$ represents the set of samples whose predictions $t$ confidence lie in bin $i$ ; $\mathrm { c o n f } ( B _ { i } )$ is the average confidence and $\operatorname { a c c } ( B _ { i } )$ is the accuracy of that bin. We also report the accuracy of our models. This is because a classifier can be perfectly calibrated, but useless from a classification point of view.
|
| 89 |
+
|
| 90 |
+
Note that we evaluate our proposed method on several state of art configurations of computer vision neural networks over the mentioned datasets: Wide Residual Networks (Zagoruyko & Komodakis, 2016), Residual Networks (He et al., 2016b), Densely Connected Neural Networks (Huang et al., 2017), Pre-Activation Residual Networks (He et al., 2016a), Dual Path Networks (Chen et al., 2017), VGG (Simonyan & Zisserman, 2014) and ResNext (Xie et al., 2017). The results reported in this work are obtained from some pretrained neural networks.
|
| 91 |
+
|
| 92 |
+
# 5.1 RESULTS
|
| 93 |
+
|
| 94 |
+
Table 1 shows the results for the different datasets, original DNNs and calibration approaches. We presents results in $\%$ , i.e. multiplying by 100 the result obtained in equation 4. The most important point is that calibration is improved by a wide margin in every model except for two models in CIFAR100 and one model in SVHN. Table 1 shows that in average our proposed calibration method outperforms TS with an insignificant accuracy loss. This means that high expressive models can cope with the calibration task as long as uncertainty is correctly modelled. Therefore, we propose an alternative hypothesis to the one given in Guo et al. (2017) where the authors argued that the calibration space is simple. We argue that if highly complex models outperform simple ones is because the distribution of the calibration space is also complex but the low dimensionality of the logit space makes high expressive models overfit.
|
| 95 |
+
|
| 96 |
+
We realized that more expressive models are needed by more complex tasks, like CIFAR100. For instance, ResNet-18 GENDER uses BNNs of two layers with two neurons per layer, while WideResNet 40x10 on CIFAR100 uses two layers of 2000 neurons. This reflects that, when dimensionality increases, more expressiveness is needed. Another important point observed in SVHN (see Densenet169, ResNet-50 and WideResNet 16x8) is that TS has degraded calibration by a factor of three in the worst case. In general BNNs do not degrade the calibration.
|
| 97 |
+
|
| 98 |
+
One drawback of our basic approach is that in some cases we obtain slight accuracy degradation. Accuracy degradation is more relevant only for CIFAR100, however our BNN method reduces ECE15 by a factor of two in some experiments in this task. Moreover, in some cases we are able to improve both, accuracy and calibration, see WideResNet $4 0 \mathrm { x } 1 0$ for CIFAR10 or ResNet-18 for GENDER dataset. Thus, we cannot conclude that BNNs are calibrating at the cost of losing accuracy. This motivates us towards further research on this accuracy degradation, as we expect to solve it with more sophisticated approximations in future work. Possible hypothesis for this degradation are that either the gap between the variational and the true posterior is still large, the variance of the ELBO estimator is large and does not allow us to converge to a better optimal, or the expressiveness of the likelihood model is not enough to deal with the particular logit space distribution. We found that for more complex logit space distribution (100 dimensional in CIFAR100) we could get better accuracy and better ECE increasing the expressiveness of the model. On the other hand in simpler logit space distribution (2 dimensional in GENDER) we found that the expressiveness must be reduced.
|
| 99 |
+
|
| 100 |
+
Table 1: ECE $1 5 ( \% )$ and Accuracy $( \% )$ comparing model uncalibrated, calibrated with TS and with BNN
|
| 101 |
+
|
| 102 |
+
<table><tr><td rowspan="2"></td><td colspan="2">uncalibrated</td><td colspan="2">CIFAR10 Temp Scal</td><td colspan="2">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet28x10</td><td>96.13</td><td>1.835</td><td>96.13</td><td>0.518</td><td>96.08</td><td>0.243</td></tr><tr><td>DenseNet 121</td><td>95.49</td><td>2.643</td><td>95.49</td><td>1.011</td><td>95.26</td><td>0.600</td></tr><tr><td>DenseNet 169</td><td>95.49</td><td>2.664</td><td>95.49</td><td>0.826</td><td>95.29</td><td>0.511</td></tr><tr><td>Dual Path Network 92</td><td>95.18</td><td>2.995</td><td>95.18</td><td>1.072</td><td>95.03</td><td>0.730</td></tr><tr><td>ResNet 101</td><td>93.46</td><td>4.268</td><td>93.46</td><td>1.196</td><td>93.38</td><td>0.776</td></tr><tr><td>VGG 19</td><td>93.68</td><td>4.412</td><td>93.68</td><td>1.708</td><td>93.67</td><td>0.843</td></tr><tr><td>Preactivation ResNet 18</td><td>94.93</td><td>3.155</td><td>94.93</td><td>0.570</td><td>94.73</td><td>0.455</td></tr><tr><td>Preactivation ResNet 164</td><td>93.91</td><td>4.102</td><td>93.91</td><td>0.437</td><td>93.82</td><td>0.331</td></tr><tr><td>ResNext29_8x16</td><td>94.79</td><td>2.833</td><td>94.79</td><td>0.741</td><td>94.61</td><td>0.728</td></tr><tr><td>Wide ResNet 40x10</td><td>95.01</td><td>3.001</td><td>95.01</td><td>0.921</td><td>95.08</td><td>0.594</td></tr><tr><td>average</td><td>94.81</td><td>3.191</td><td>94.81</td><td>0.9</td><td>94.70</td><td>0.581</td></tr></table>
|
| 103 |
+
|
| 104 |
+
<table><tr><td rowspan="2"></td><td colspan="2">uncalibrated</td><td colspan="2">SVHN Temp Scal</td><td colspan="2">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet 40x10</td><td>96.95</td><td>1.26</td><td>96.95</td><td>1.17</td><td>96.90</td><td>1.15</td></tr><tr><td>Densenet-121</td><td>96.76</td><td>2.021</td><td>96.76</td><td>1.092</td><td>96.69</td><td>0.716</td></tr><tr><td>Densenet-169</td><td>96.70</td><td>0.363</td><td>96.70</td><td>1.016</td><td>96.59</td><td>0.453</td></tr><tr><td>ResNet 50</td><td>96.47</td><td>0.886</td><td>96.47</td><td>1.030</td><td>96.33</td><td>0.857</td></tr><tr><td>Preactivation ResNet 164</td><td>96.20</td><td>2.539</td><td>96.20</td><td>1.079</td><td>96.08</td><td>0.921</td></tr><tr><td>Wide ResNet 16x8</td><td>96.88</td><td>0.710</td><td>96.88</td><td>1.318</td><td>96.82</td><td>0.739</td></tr><tr><td>Preactivation ResNet 18</td><td>96.15</td><td>1.574</td><td>96.15</td><td>0.645</td><td>96.05</td><td>1.096</td></tr><tr><td>average</td><td>96,587</td><td>1,336</td><td>96,587</td><td>1.05</td><td>96,494</td><td>0.847</td></tr></table>
|
| 105 |
+
|
| 106 |
+
CIFAR100
|
| 107 |
+
|
| 108 |
+
<table><tr><td rowspan="2"></td><td colspan="2">uncalibrated</td><td colspan="2">Temp Scal</td><td colspan="2">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet 28x10</td><td>80.39</td><td>4.853</td><td>80.39</td><td>4.276</td><td>77.59</td><td>2.456</td></tr><tr><td>DenseNet 121</td><td>78.8</td><td>8.724</td><td>78.8</td><td>3.476</td><td>75.9</td><td>2.534</td></tr><tr><td>ResNet 101</td><td>72</td><td>11.413</td><td>72</td><td>1.533</td><td>68.7</td><td>1.612</td></tr><tr><td>VGG 19</td><td>72.7</td><td>17.631</td><td>72.7</td><td>4.798</td><td>71.94</td><td>6</td></tr><tr><td>Preactivation ResNet 18</td><td>76.6</td><td>10.780</td><td>76.9</td><td>3.152</td><td>74.3</td><td>1.763</td></tr><tr><td>Preactivation ResNet 164</td><td>73.28</td><td>15.754</td><td>73.28</td><td>2.046</td><td>70.77</td><td>1.461</td></tr><tr><td>ResNext29_8x16</td><td>77.88</td><td>9.678</td><td>77.88</td><td>2.811</td><td>73.97</td><td>2.581</td></tr><tr><td>DenseNet 169</td><td>79.05</td><td>8.883</td><td>79.05</td><td>3.758</td><td>75.58</td><td>2.393</td></tr><tr><td>WideResNet 40x10</td><td>76.74</td><td>14.767</td><td>76.74</td><td>3.765</td><td>76.17</td><td>1.876</td></tr><tr><td>average</td><td>76,36</td><td>11,387</td><td>76,36</td><td>3,291</td><td>73,88</td><td>2,520</td></tr></table>
|
| 109 |
+
|
| 110 |
+
<table><tr><td rowspan="2"></td><td colspan="2">uncalibrated</td><td colspan="2">GENDER Temp Scal</td><td colspan="2">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>VGG-19</td><td>90.60</td><td>8.08</td><td>90.60</td><td>3.96</td><td>90.50</td><td>2.70</td></tr><tr><td>DenseNet 121</td><td>90.035</td><td>8.803</td><td>90.035</td><td>3.077</td><td>89.961</td><td>1.547</td></tr><tr><td>ResNet 18</td><td>90.42</td><td>8.45</td><td>90.42</td><td>3.8</td><td>90.44</td><td>3.082</td></tr><tr><td>average</td><td>90.352</td><td>8.444</td><td>90.352</td><td>3.612</td><td>90.30</td><td>2.443</td></tr></table>
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 3: This figures compares the ECE performance for TS and BNN in test and validation. On the left (CIFAR10) we show the performance of different training parameters. For example 30MC_500 means that the ELBO was optimized using $3 0 \mathrm { M C }$ steps to estimate the expectation and 500 epochs of Adam optimization. On the right (CIFAR100) we show the performance of a BNN trained with different number of epochs up to 2000, showing the robustness against the course of learning.
|
| 114 |
+
|
| 115 |
+
Finally, we realized that the BNNs are suitable and robust in the experiments carried out. In many experiments we found that all the tested configurations clearly outperform TS, as an example see figure 3.
|
| 116 |
+
|
| 117 |
+
# 6 DISCUSSION AND CONTRIBUTIONS
|
| 118 |
+
|
| 119 |
+
There is an increasing interest in adjusting confidence in deep learning, as this models are now becoming part of complex decision systems and critical applications. In the machine learning community there are two main approaches for reducing over-confidence, each one with its own pros and cons: implicit/online and explicit/offline. An implicit method aim at obtaining calibrated distributions directly at the output of the model, while explicit methods post-process the output of the model to be calibrated. Moreover both approaches can use either point estimate or Bayesian probabilistic models.
|
| 120 |
+
|
| 121 |
+
Explicit approaches have several advantages. First, one can calibrate pre-softmax values provided by other practitioners. Therefore, privacy concerns regarding the model or the original data used to train that model are considered. Second, explicit approaches can be combined with implicit ones (Lakshminarayanan et al., 2017; Seo et al., 2018; Kumar et al., 2018; Chen et al., 2018; DeVries & Taylor, 2018) to further improve calibration, as example see (Kumar et al., 2018; Lee et al., 2018), where TS is used within implicit approaches. Third, one can use impractical models applied directly to a deep model in this offline stage, e.g Bayesian Neural or Gaussian Processed. Fourth, we do not need deep architectures for the Bayesian stage as the input includes the already learned representation of the DNN. This stage only focus on adjusting probabilities. A two layer BNN is unable to reach the same accuracy as a deep convolutional model by its own, however, combined with it, can yield to state-of-the-art accuracy and calibration results, as we showed. Fifth, models to be calibrated does not need to be retrained. This easily let us calibrate, as example, models that make use of pretrained DNN (transfer learning applications). Sixth, any probabilistic model can be calibrated: CNN, LSTM-RNN, BLSTM-RNN, SVM, network ensembles... Seventh, some implicit methods, such as Gal & Ghahramani (2016); Seo et al. (2018) require us to train our deep models with Dropout or stochastic depth, respectively, while ours is totally independent on how the deep model is trained. On the other hand, implicit approaches are less sensible to overfitting. Guo et al. (2017) shows that more complex models yield worse calibration performance. However, we have demonstrated that correctly managing uncertainty allow us using complex models for post-processing, improving state-of-the-art explicit approaches, and getting competitive results with the most recent published implicit ones.
|
| 122 |
+
|
| 123 |
+
Regarding the calibration performance applied to deep learning models. Our method reaches competitive results with state-of-the-art implicit approaches on deep learning models (Seo et al., 2018; Kumar et al., 2018), and outperforms other proposed explicit (Guo et al., 2017) and implicit (Tran et al., 2018) techniques. In fact, Kumar et al. (2018) obtain competitive results when combining their implicit method with TS, which again shows that offline calibration is a desirable and flexible choice to be combined with implicit models. In fact, we have been able to apply BNNs to a task of interest for the machine learning community, which is the main criticism to these techniques. Kuleshov et al. (2018), which propose a procedure for calibrating Bayesian algorithms only for regression problems, and Lakshminarayanan et al. (2017) argue that a Bayesian treatment do not output calibrated distributions, as the Bayesian deep learning has several restrictions that the machine learning community is trying to overcome. However, this work demonstrates that if we let the major complexity of the task to a deep model, a simple Bayesian approach can adjust probabilities in an efficient way. As shown in our github, 2-layers Bayesian neural nets are enough to adjust probabilities.
|
| 124 |
+
|
| 125 |
+
In terms of efficiency our BNN method presents several benefits in comparison to other Bayesian or point estimate methods. Although making predictions is more expensive than with TS, this predictions can be fully parallelized, as noted above, computing predictions in only one step. Moreover, a forward through a deep model and a shallow BNN is less computational expensive than a forward through a deep Bayesian convolutional model that requires several forward (and backward) for test (and training). For instance we have models based on BNNs (Gal & Ghahramani, 2015) and based on Gaussian processes (Tran et al., 2018; Milios et al., 2018). Network ensembles (Lakshminarayanan et al., 2017) reduce overconfidence and output calibrated distributions, but it is not measure in a deep model application, and only compared to Monte Carlo Dropout and to the number of ensembles. Ensembles can be also paralellized but in case of deep learning models, which is our field of study, the performance is compromised by the deepness of the different ensembles. As the authors state, computation restriction arises when evaluation of ensembles is done on ImageNet with the Inception network. Our model not only uses shallow neural nets but is only compromised by the number of classes of the task to be performed, and not by the complexity of the task at hand, as once we are able to reach a good accuracy we only focus on adjusting probabilities. Other implicit approaches such as Seo et al. (2018), that compute the cost to be optimized based on several predictions of the model, require to perform as many forwards per training samples as samples we want to estimate the cost parameter. This also compromise performance in deep models.
|
| 126 |
+
|
| 127 |
+
Finally, Lakshminarayanan et al. (2017) propose to train models with proper scoring rules, such as negative log-likelihood. However, as demonstrated by Guo et al. (2017) it is not clear if deep generative models trained with this criteria presents uncalibrated distributions, at least in implicit approaches.
|
| 128 |
+
|
| 129 |
+
# 7 CONCLUSION AND FUTURE WORK
|
| 130 |
+
|
| 131 |
+
This work has shown the many beneficial properties of offline calibration with a Bayesian reasoning. We open future perspectives which include: incorporate Bayesian improvements on the variational posterior with the objective of reducing topologies (efficiency in training and test time), better calibration and accuracy; be able to analyze how the logit dimension influences the expressiveness needed by the likelihood model and which key factors of Bayesian algorithms are critical for good performance; how can we model prior information on the parameters to yield better results; other offline approaches based on Gaussian processes, as example; incorporate training based on different proper scoring rules; measure robustness against adversarial examples; and implement these models in task where having good calibration is critical.
|
| 132 |
+
|
| 133 |
+
# REFERENCES
|
| 134 |
+
|
| 135 |
+
Felix V. Agakov and David Barber. An auxiliary variational method. In Neural Information Processing, 11th International Conference, ICONIP 2004, Calcutta, India, November 22-25, 2004, Proceedings, pp. 561–566, 2004. doi: 10.1007/978-3-540-30499-9_86. URL https: //doi.org/10.1007/978-3-540-30499-9_86.
|
| 136 |
+
|
| 137 |
+
Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In Proceedings of the 32Nd International Conference on Machine Learning - Volume 37, ICML’15, pp. 1613–1622. JMLR.org, 2015. URL http://dl.acm.org/ citation.cfm?id=3045118.3045290.
|
| 138 |
+
|
| 139 |
+
N. Brümmer and D. van Leeuwen. On calibration of language recognition scores. In Proc. of Odyssey, San Juan, Puerto Rico, 2006.
|
| 140 |
+
|
| 141 |
+
Rich Caruana, Yin Lou, Johannes Gehrke, Paul Koch, Marc Sturm, and Noemie Elhadad. Intelligible models for healthcare: Predicting pneumonia risk and hospital 30-day readmission. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’15, pp. 1721–1730, New York, NY, USA, 2015. ACM. ISBN 978-1-4503-3664-2. doi: 10.1145/2783258.2788613. URL http://doi.acm.org/10.1145/2783258.2788613.
|
| 142 |
+
|
| 143 |
+
Tongfei Chen, Jirí Navrátil, Vijay Iyengar, and Karthikeyan Shanmugam. Confidence scoring using whitebox meta-models with linear classifier probes. CoRR, abs/1805.05396, 2018. URL http://arxiv.org/abs/1805.05396.
|
| 144 |
+
|
| 145 |
+
Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, and Jiashi Feng. Dual path networks. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 4467–4475. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7033-dual-path-networks.pdf.
|
| 146 |
+
|
| 147 |
+
I. Cohen and M. Goldszmidt. Properties and benefits of calibrated classifiers. In Knowledge Discovery in Databases: PKDD 2004, volume 3202 of Lecture Notes in Computer Science, Heidelberg - Berlin, 2004. Springer. doi: https://doi.org/10.1007/978-3-540-30116-5_14.
|
| 148 |
+
|
| 149 |
+
Chris Cremer, Xuechen Li, and David Duvenaud. Inference suboptimality in variational autoencoders. 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. 1086–1094, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings. mlr.press/v80/cremer18a.html.
|
| 150 |
+
|
| 151 |
+
Terrance DeVries and Graham W. Taylor. Learning confidence for out-of-distribution detection in neural networks. CoRR, abs/1802.04865, 2018.
|
| 152 |
+
|
| 153 |
+
Richard O. Duda, Peter E. Hart, and David G. Stork. Pattern Classification (2Nd Edition). WileyInterscience, New York, NY, USA, 2000. ISBN 0471056693.
|
| 154 |
+
|
| 155 |
+
Eran Eidinger, Roee Enbar, and Tal Hassner. Age and gender estimation of unfiltered faces. Trans. Info. For. Sec., 9(12):2170–2179, December 2014. ISSN 1556-6013. doi: 10.1109/TIFS.2014.2359646. URL https://doi.org/10.1109/TIFS.2014.2359646.
|
| 156 |
+
|
| 157 |
+
Yarin Gal and Zoubin Ghahramani. Bayesian convolutional neural networks with bernoulli approximate variational inference. CoRR, abs/1506.02158, 2015. URL http://arxiv.org/abs/ 1506.02158.
|
| 158 |
+
|
| 159 |
+
Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the 33rd International Conference on Machine Learning - Volume 48, ICML’16, pp. 1050–1059. JMLR.org, 2016. URL http://dl.acm. org/citation.cfm?id=3045390.3045502.
|
| 160 |
+
|
| 161 |
+
Caglar Gulcehre, Orhan Firat, Kelvin Xu, Kyunghyun Cho, and Yoshua Bengio. On integrating a language model into neural machine translation. Comput. Speech Lang., 45(C):137–148, September 2017. ISSN 0885-2308. doi: 10.1016/j.csl.2017.01.014. URL https://doi.org/10.1016/ j.csl.2017.01.014.
|
| 162 |
+
|
| 163 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1321–1330, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/guo17a.html.
|
| 164 |
+
|
| 165 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016a.
|
| 166 |
+
|
| 167 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pp. 770–778, 2016b. doi: 10.1109/CVPR.2016.90. URL https://doi.org/10.1109/CVPR.2016.90.
|
| 168 |
+
|
| 169 |
+
Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N. Sainath, , and Brian Kingsbury. Deep neural networks for acoustic modelling in speech recognition. the shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. doi: 10.1109/MSP.2012.2205597.
|
| 170 |
+
|
| 171 |
+
Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron C. Courville. Neural autoregressive flows. In ICML, 2018.
|
| 172 |
+
|
| 173 |
+
Gao Huang, Zhuang Liu, and Kilian Q. Weinberger. Densely connected convolutional networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2261–2269, 2017.
|
| 174 |
+
|
| 175 |
+
Yoon Kim, Sam Wiseman, Andrew Miller, David Sontag, and Alexander Rush. Semi-amortized variational autoencoders. 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. 2683–2692, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/kim18e.html.
|
| 176 |
+
|
| 177 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2014.
|
| 178 |
+
|
| 179 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes, 2014.
|
| 180 |
+
|
| 181 |
+
Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2575– 2583. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/ 5666-variational-dropout-and-the-local-reparameterization-trick. pdf.
|
| 182 |
+
|
| 183 |
+
Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4743–4751. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6581-improved-variational-inference-with-inverse-autoregressive-flow. pdf.
|
| 184 |
+
|
| 185 |
+
Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques - Adaptive Computation and Machine Learning. The MIT Press, Cambridge, MA, USA, 2009. ISBN 0262013193, 9780262013192.
|
| 186 |
+
|
| 187 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). a. URL http://www.cs.toronto.edu/\~kriz/cifar.html.
|
| 188 |
+
|
| 189 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-100 (canadian institute for advanced research). b. URL http://www.cs.toronto.edu/\~kriz/cifar.html.
|
| 190 |
+
|
| 191 |
+
Volodymyr Kuleshov, Nathan Fenner, and Stefano Ermon. Accurate uncertainties for deep learning using calibrated regression. In ICML, volume 80 of JMLR Workshop and Conference Proceedings, pp. 2801–2809. JMLR.org, 2018.
|
| 192 |
+
|
| 193 |
+
Aviral Kumar, Sunita Sarawagi, and Ujjwal Jain. Trainable calibration measures for neural networks from kernel mean embeddings. 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. 2805–2814, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/kumar18a.html.
|
| 194 |
+
|
| 195 |
+
Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6402– 6413. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7219-simple-and-scalable-predictive-uncertainty-estimation-using-deep-ensembles. pdf.
|
| 196 |
+
|
| 197 |
+
Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. International Conference On Learning Representations, abs/1711.09325, 2018.
|
| 198 |
+
|
| 199 |
+
Christos Louizos and Max Welling. Multiplicative normalizing flows for variational Bayesian neural networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2218–2227, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/louizos17a.html.
|
| 200 |
+
|
| 201 |
+
Lars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. In Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48, ICML’16, pp. 1445–1454. JMLR.org, 2016. URL http://dl.acm.org/citation.cfm?id=3045390.3045543.
|
| 202 |
+
|
| 203 |
+
Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. CoRR, abs/1301.3781, 2013a. URL http://arxiv.org/abs/1301. 3781.
|
| 204 |
+
|
| 205 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg Corrado, and Jeffrey Dean. Distributed representations of words and phrases and their compositionality. In Proceedings of the 26th International Conference on Neural Information Processing Systems - Volume 2, NIPS’13, pp. 3111–3119, USA, 2013b. Curran Associates Inc. URL http://dl.acm.org/citation.cfm?id= 2999792.2999959.
|
| 206 |
+
|
| 207 |
+
Dimitrios Milios, Raffaello Camoriano, Pietro Michiardi, Lorenzo Rosasco, and Maurizio Filippone. Dirichlet-based gaussian processes for large-scale calibrated classification, 2018.
|
| 208 |
+
|
| 209 |
+
Tom Minka. Inferring a Gaussian distribution, http://www.stat.cmu.edu/ $\sim$ minka/papers/gaussian.html.
|
| 210 |
+
|
| 211 |
+
Mahdi Pakdaman Naeini, Gregory F. Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using bayesian binning. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, AAAI’15, pp. 2901–2907. AAAI Press, 2015. ISBN 0-262-51129-0. URL http://dl.acm.org/citation.cfm?id=2888116.2888120.
|
| 212 |
+
|
| 213 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. 2011. URL https://www-cs. stanford.edu/\~twangcat/papers/nips2011_housenumbers.pdf.
|
| 214 |
+
|
| 215 |
+
Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In Proceedings of the 22nd International Conference on Machine Learning, pp. 625–632, Bonn, Germany, 2005. doi: 10.1145/1102351.1102430.
|
| 216 |
+
|
| 217 |
+
Gabriel Pereyra, George Tucker, Jan Chorowski, Lukasz Kaiser, and Geoffrey E. Hinton. Regularizing neural networks by penalizing confident output distributions. CoRR, abs/1701.06548, 2017.
|
| 218 |
+
|
| 219 |
+
John C. Platt. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. In ADVANCES IN LARGE MARGIN CLASSIFIERS, pp. 61–74. MIT Press, 1999.
|
| 220 |
+
|
| 221 |
+
Rajesh Ranganath, Dustin Tran, and David Blei. Hierarchical variational models. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 324–333, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http://proceedings.mlr.press/ v48/ranganath16.html.
|
| 222 |
+
|
| 223 |
+
Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32Nd International Conference on Machine Learning - Volume 37, ICML’15, pp. 1530–1538. JMLR.org, 2015. URL http://dl.acm.org/citation.cfm?id=3045118. 3045281.
|
| 224 |
+
|
| 225 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Eric P. Xing and Tony Jebara (eds.), Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 1278–1286, Bejing, China, 22–24 Jun 2014. PMLR. URL http://proceedings.mlr.press/v32/rezende14.html.
|
| 226 |
+
|
| 227 |
+
Seonguk Seo, Paul Hongsuck Seo, and Bohyung Han. Confidence calibration in deep neural networks through stochastic inferences, 2018.
|
| 228 |
+
|
| 229 |
+
Rui Shu, Hung H. Bui, Shengjia Zhao, Mykel J. Kochenderfer, and Stefano Ermon. Amortized inference regularization. CoRR, abs/1805.08913, 2018. URL http://arxiv.org/abs/ 1805.08913.
|
| 230 |
+
|
| 231 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition, 2014.
|
| 232 |
+
|
| 233 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A. Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA., pp. 4278–4284, 2017. URL http://aaai.org/ocs/index.php/AAAI/ AAAI17/paper/view/14806.
|
| 234 |
+
|
| 235 |
+
Gia-Lac Tran, Edwin V. Bonilla, John P. Cunningham, Pietro Michiardi, and Maurizio Filippone. Calibrating deep convolutional gaussian processes, 2018.
|
| 236 |
+
|
| 237 |
+
Zoltán Tüske, Ralf Schlüter, and Hermann Ney. Investigation on LSTM recurrent n-gram language models for speech recognition. In Interspeech, pp. 3358–3362. ISCA, 2018.
|
| 238 |
+
|
| 239 |
+
Rianne van den Berg, Leonard Hasenclever, Jakub M. Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. CoRR, abs/1803.05649, 2018.
|
| 240 |
+
|
| 241 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 5998–6008. Curran Associates, Inc., 2017. URL http: //papers.nips.cc/paper/7181-attention-is-all-you-need.pdf.
|
| 242 |
+
|
| 243 |
+
Anqi Wu, Sebastian Nowozin, Edward Meeds, Richard E. Turner, José Miguel Hernández-Lobato, and Alexander L. Gaunt. Fixing variational bayes: Deterministic variational inference for bayesian neural networks, 2018.
|
| 244 |
+
|
| 245 |
+
Saining Xie, Ross B. Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5987–5995, 2017.
|
| 246 |
+
|
| 247 |
+
B. Zadrozny and C. Elkan. Transforming classifier scores into accurate multiclass probability estimates. Proceeding of the Eight International Conference on Knowledge Discovery and Data Mining (KDD’02), 2002a. doi: 10.1145/775047.775151.
|
| 248 |
+
|
| 249 |
+
Bianca Zadrozny and Charles Elkan. Obtaining calibrated probability estimates from decision trees and naive bayesian classifiers. In Proceedings of the Eighteenth International Conference on Machine Learning, ICML ’01, pp. 609–616, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1-55860-778-1. URL http://dl.acm.org/citation.cfm?id= 645530.655658.
|
| 250 |
+
|
| 251 |
+
Bianca Zadrozny and Charles Elkan. Transforming classifier scores into accurate multiclass probability estimates. In Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’02, pp. 694–699, New York, NY, USA, 2002b. ACM. ISBN 1-58113-567-X. doi: 10.1145/775047.775151. URL http://doi.acm.org/10.1145/ 775047.775151.
|
| 252 |
+
|
| 253 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Edwin R. Hancock Richard C. Wilson and William A. P. Smith (eds.), Proceedings of the British Machine Vision Conference (BMVC), pp. 87.1–87.12. BMVA Press, September 2016. ISBN 1-901725-59-6. doi: 10.5244/C. 30.87. URL https://dx.doi.org/10.5244/C.30.87.
|
| 254 |
+
|
| 255 |
+
Yichuan Zhang, José Miguel Hernández-Lobato, and Zoubin Ghahramani. Variational measure preserving flows. CoRR, abs/1805.10377, 2018. URL http://arxiv.org/abs/1805. 10377.
|
| 256 |
+
|
| 257 |
+
# APPENDIX A: TOY EXAMPLE ON BAYESIAN CALIBRATION
|
| 258 |
+
|
| 259 |
+
In this case we consider a problem of density assignment. Formally, we have a set of data $\mathcal { O } =$ $\{ x _ { i } \} _ { i = 1 } ^ { N } , x \in \mathbb { R } ^ { 2 }$ belonging to class $c _ { 1 }$ , where its true distribution belongs to the family of bimodal Gaussian distributions. We want to assign a unimodal Gaussian parametric model $p ( x | \theta )$ where $\theta =$ $( \mu , \Sigma )$ . Note that in this case the parametric model would be unable to recover the true distribution, which is likely to happen in deep learning models due to the complexity of the distributions these models cope with.
|
| 260 |
+
|
| 261 |
+
In the Bayesian framework the density is computed by averaging each possible model parameterized by $\theta$ , using the posterior distribution computed from the observed data as the distribution over which we take the expectation:
|
| 262 |
+
|
| 263 |
+
$$
|
| 264 |
+
p ( x | \mathcal { O } , c _ { 1 } ) = \int d \theta _ { 1 } p ( x | \theta _ { 1 } ) \cdot p ( \theta _ { 1 } | \mathcal { O } )
|
| 265 |
+
$$
|
| 266 |
+
|
| 267 |
+
On the other hand, maximum likelihood would represent the data using the ML estimator $\theta ^ { M L }$ . In this setting, it can be computed uniquely as the loss function has a global optimum.
|
| 268 |
+
|
| 269 |
+
Figure 4 shows an example of how model averaging improves the assignments of probabilities, and therefore model calibration, contrary to ML. The figure shows some data points generated by our training distribution, where the color of each point is different for each of the Gaussian mixtures. A point-estimate maximum likelihood (ML) model $p ( x | \theta _ { 1 } ^ { M L } )$ (we use $\theta _ { 1 } ^ { M L }$ to refer to the model assigned to $c _ { 1 }$ datapoints) is fitted and represented as red contour lines. It can be seen that the ML model fails to accurately represent the true data distribution, although it can represent one of the two clusters of data moderately well. Two samples not observed in the training set are shown as a black and a gray dot. Also, different plausible likelihood models are represented in dashed contour plots.
|
| 270 |
+
|
| 271 |
+
We now assume that we have another set of data belonging to class $c _ { 2 }$ , but not represented in this figure as it is far in the data space. We fit $p ( x | \theta _ { 2 } ^ { M L } )$ for this dataset. We assume the prior distribution over the classes to be equal for both classes, and based on Bayes theory decision, our decision rule is given by:
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
Figure 4: Bimodal distribution of 2-dimensional training data (orange and blue points) with Maximum Likelihood estimation of a Gaussian distribution (red contour) and other possible likelihood models explaining the data (dashed plots). Green and black dots represent data not seen in the training data, for which densities are to be assigned. Best viewed in color.
|
| 275 |
+
|
| 276 |
+
$$
|
| 277 |
+
{ \frac { P ( c _ { 1 } | x ) } { P ( c _ { 2 } | x ) } } = { \frac { p ( x | c _ { 1 } ) } { p ( x | c _ { 2 } ) } } ,
|
| 278 |
+
$$
|
| 279 |
+
|
| 280 |
+
where for generality we do not explicitly indicate if the model $p ( x | c )$ is computed in the ML or Bayesian setting. As long as $p ( x | c _ { 1 } ) > \dot { p } ( x | c _ { 2 } )$ we will assign $c _ { 1 }$ to a given sample $x$ . It is clearly seen that for both the black and gray test samples, the density assigned by $p ( x | c _ { 1 } )$ is greater and thus these samples are assigned to class $c _ { 1 }$ . In fact, if both samples belong to this class we will have a perfect performance in terms of accuracy.
|
| 281 |
+
|
| 282 |
+
However, although the black dot is correctly assigned to $c _ { 1 }$ , the red ML model assigns extremely low density to it which is undesirable, as it has been actually generated like the rest of the data. This is not a desired behaviour, since it is in fact likely to belong to the blue component of the distribution as it is close to blue training samples in the data space. For that reason, if we compute probabilities under this model, the ultimate confidence would not reflect the true underlying process, and the calibration of the model will be affected. This effect is what we argue is happening in a classification framework: although we correctly choose the class (the cluster $c _ { 1 }$ ) the ML model does not assign a correct probability.
|
| 283 |
+
|
| 284 |
+
On the other hand, if we take average of all the different models parameterized by $\theta = ( \mu , \Sigma ) ; \mu \in$ $\mathbb { R } ^ { 2 } , \Sigma \in \mathbb { R } ^ { 2 \mathrm { x 2 } }$ (see dashed plots in the figure), the density assigned to the black dot would be raised by some of the models that explain the blue data points. The importance given to each likelihood is given by the posterior $p ( \theta | \mathcal { O } )$ . Therefore, other possibilities apart from the ML density will be considered, and thus we will be better modelling the probabilistic information. For an exact theoretical example on this same density estimation problem see (Minka, 2001). There you can find the exact posterior distribution using non-informative priors on the parameters.
|
parse/train/S1xjdoC9Fm/S1xjdoC9Fm_content_list.json
ADDED
|
@@ -0,0 +1,1557 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "OFFLINE DEEP MODELS CALIBRATION WITH BAYESIAN NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
383,
|
| 19 |
+
176,
|
| 20 |
+
614,
|
| 21 |
+
204
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
452,
|
| 31 |
+
246,
|
| 32 |
+
544,
|
| 33 |
+
261
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In this work the authors show that Bayesian Neural Networks (BNNs) can be efficiently applied to calibrate state-of-the-art Deep Neural Networks (DNN). Our approach acts offline, i.e., it is decoupled from the training of the DNN to be calibrated. This offline approach allow us to apply our BNN calibration to any model regardless of the limitations that the model may present during training. Note that this offline setting is also appropriate in order to deal with privacy concerns of DNN training data or implementation, among others. We show that our approach clearly outperforms other simple maximum likelihood based solutions that have recently shown very good performance, as temperature scaling (Guo et al., 2017). As an example, we reduce the Expected Calibration Error $( \\mathrm { E C E } \\% )$ from 0.52 to 0.24 on CIFAR-10 and from 4.28 to 2.46 on CIFAR-100 on two Wide ResNet with $9 6 . 1 3 \\%$ and $8 0 . 3 9 \\%$ accuracy respectively, which are among the best results published for these tasks. Moreover, we show that our approach improves the performance of online methods directly applied to the DNN, e.g. Gaussian processes or Bayesian Convolutional Neural Networks. Finally, this decoupled approach allows us to apply any further improvement to the BNN without considering the computational restrictions imposed by the deep model. In this sense, this offline setting is a practical application where BNNs can be considered, which is one of the main criticisms to these techniques. In terms of reproducibility, we provide all the implementation details in https://github.com/2019submission/bnn.2019. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
276,
|
| 43 |
+
766,
|
| 44 |
+
554
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
580,
|
| 55 |
+
334,
|
| 56 |
+
595
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep Neural Networks (DNNs) have achieved state of art performance in many task such as Image Recognition (Huang et al., 2017; Szegedy et al., 2017; Zagoruyko & Komodakis, 2016), language modeling (Mikolov et al., 2013a;b), machine translation (Vaswani et al., 2017) or speech (Hinton et al., 2012). For that reason, neural networks are now used in many applications. However, this state-of-theart performance is measured in terms of accuracy, but there are many tasks in which the probabilistic information must be also reliable. For example, a probabilistic classifier can be incorporated into a more complex model considering multiple sources of information, by the use of e.g., probabilistic graphical models (Koller & Friedman, 2009), or by combining neural networks with language models in natural language processing tasks (Gulcehre et al., 2017). In addition, probabilistic outputs of classifiers have proven to be useful in many areas apart from classical machine learning tasks, such as language recognition (Brümmer & van Leeuwen, 2006), language models for speech recognition (Tüske et al., 2018) or medical diagnosis (Caruana et al., 2015). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
611,
|
| 66 |
+
825,
|
| 67 |
+
777
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In Bayesian statistics, the reliability of probabilities is measured by their calibration. As a consequence, the machine learning community has been exploring methods to calibrate the output of classifiers to achieve the many beneficial properties of well-calibrated probabilities (Zadrozny & Elkan, 2002a; Cohen & Goldszmidt, 2004; Niculescu-Mizil & Caruana, 2005). Nowadays, there is an increasing interest in obtaining reliable probabilities in the deep learning community. In the past, neural networks trained with a cross-entropy criterion tended to present relatively good calibration. However, a relevant recent work in Guo et al. (2017) has evidenced that modern state-of-the-art neural networks are badly calibrated in general. Moreover, the same work shows that calibration can be dramatically improved by very simple maximum-likelihood parametric techniques, among which Temperature Scaling (TS) is highlighted as the preferred choice, due to its extreme simplicity, very good behavior in general and computational efficiency. In fact, TS outperforms more complex techniques in most cases, leading to the conclusion that good calibration can be better achieved with simpler techniques. This conclusion follows the hypothesis that the space configured by the outputs of a deep model is relatively simple, and therefore good performance, measured as Expected Calibration Error (ECE), can be achieved with very simple models. In fact, TS is a technique that performs nicely in complex multiclass tasks (Guo et al., 2017). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
785,
|
| 77 |
+
825,
|
| 78 |
+
924
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/06621e565922dc9459a398e6539aab8fce8f5c8812f3dd555f33807197667e37.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"ResNet-101: $9 3 . 4 6 \\%$ accuracy (CIFAR10) ",
|
| 87 |
+
"Figure 1: Reliability diagrams (Guo et al., 2017) for two networks trained on CIFAR-10 and CIFAR100. The red line represents perfect calibration. We plot the Expected Calibration Error (ECE $\\%$ ) for 15 bins (see section 5 for a description). The lower the better. "
|
| 88 |
+
],
|
| 89 |
+
"image_footnote": [],
|
| 90 |
+
"bbox": [
|
| 91 |
+
176,
|
| 92 |
+
128,
|
| 93 |
+
823,
|
| 94 |
+
421
|
| 95 |
+
],
|
| 96 |
+
"page_idx": 1
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"type": "text",
|
| 100 |
+
"text": "",
|
| 101 |
+
"bbox": [
|
| 102 |
+
173,
|
| 103 |
+
589,
|
| 104 |
+
825,
|
| 105 |
+
674
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "In general, there are two main approaches to reduce overconfidence: implicit or online and explicit or offline. An implicit method aims at obtaining calibrated distributions directly at the output of the model, while explicit methods post-process the output of the model to be calibrated. In this paper we propose an offline method based on a Bayesian Neural Networks (BNNs) to obtain calibrated probabilities, see figure 2. We use BNNs as we aim at being benefited from two key properties of Bayesian statistics and neural networks: the high expressiveness of neural network models and the capabilities of the Bayesian statistics to model the uncertainty. We assume the hypothesis that as long as the uncertainty is correctly modelled, we can use high expressive function approximators for the task of calibration. These high expressive models are required since we assume that the calibration space is not simple. However, the generalization capability of these models are achieved through proper uncertainty consideration. Figure 1 shows reliability diagrams comparing our BNN method to TS. ",
|
| 112 |
+
"bbox": [
|
| 113 |
+
173,
|
| 114 |
+
681,
|
| 115 |
+
825,
|
| 116 |
+
845
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "This work is organized as follows. We first provide an insight on why Bayesian Statistics and neural networks are suitable to adjust confidence in output probabilities. We then describe our offline calibration approach based on BNNs. We end up comparing our method to TS and reporting clear performance improvements. Finally, we discuss our approach against recent published techniques, enumerate some beneficial properties and propose possible improvements over this contribution. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
854,
|
| 126 |
+
825,
|
| 127 |
+
924
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "2 BAYESIAN MODELLING AND CALIBRATION ",
|
| 134 |
+
"text_level": 1,
|
| 135 |
+
"bbox": [
|
| 136 |
+
174,
|
| 137 |
+
102,
|
| 138 |
+
566,
|
| 139 |
+
118
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 2
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "In a classification scenario, calibration can be interpreted as the agreement between the probabilities of a class assigned by a model to a set of samples, and the proportion of those samples where that class is actually the true one. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
132,
|
| 149 |
+
825,
|
| 150 |
+
174
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 2
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "One way of achieving calibration is to reliably modelling the probabilistic distributions of the data from the classes involved. This is the main strength of Bayesian models, which manage uncertainty properly, in contrast to point-estimate approaches (i.e. Maximum Likelihood or Maximum Posterior). In the former, the uncertainty is incorporated by taking an average of all the likelihood models under the posterior distribution on the parameters, given an observed set of data: ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
181,
|
| 160 |
+
825,
|
| 161 |
+
252
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 2
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "equation",
|
| 167 |
+
"img_path": "images/02b2d89481fa7f7301c102324054435f6c84d4162ba24f1b1d2f17754d70b655.jpg",
|
| 168 |
+
"text": "$$\np ( t | x ) = \\mathbb { E } _ { p ( \\theta | \\mathcal { O } ) } \\{ p ( t | x , \\theta ) \\} ,\n$$",
|
| 169 |
+
"text_format": "latex",
|
| 170 |
+
"bbox": [
|
| 171 |
+
401,
|
| 172 |
+
271,
|
| 173 |
+
594,
|
| 174 |
+
290
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 2
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "text",
|
| 180 |
+
"text": "where $\\theta$ are model parameters, $x$ represent a sample for which we want to predict a label $t$ and $\\mathcal { O } = \\{ ( x _ { i } , t _ { i } ) \\} _ { i = 1 } ^ { N }$ is the set of observed samples1. In Bayesian approaches, it is indeed the observed data what model how representative a likelihood model is for a particular task, and thus how it influences the predictions. On the other hand, in point-estimate models all the decision is based on a choice of the parameter once the model is trained. ",
|
| 181 |
+
"bbox": [
|
| 182 |
+
174,
|
| 183 |
+
295,
|
| 184 |
+
825,
|
| 185 |
+
364
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 2
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "For instance, consider the case of a MAP network (e.g., a typical deep convolutional model trained with cross-entropy loss and $L _ { 2 }$ regularization). This model explains the data based on a point-estimate training, i.e., by representing what is more likely to appear. Nowadays, this gives outstanding accuracy in classification tasks, but it is easy to train an over/under-confident model, i.e., the one that outputs too extreme probabilities, even for unfavourable cases like e.g. when data that has conditions not unseen in the training set, or not explained by the expressiveness of the model itself. This could happen if the true distribution does not lie in the family of parametric models $p ( t | x , \\theta )$ . We will refer to both conditions as mismatch. This is very harmful for the calibration, because in those mismatch cases, the model should yield more moderate probabilities, otherwise the classification errors will be more catastrophic. In other words, in tasks where calibration matters, a classification error has unequal consequences if the probabilities are moderate or extreme. Thus, for example, if there exists such mismatching conditions, what is likely to happen, a point estimate will not represent the data (i.e. the probability assigned) in the way it should, possibly leading to over-or under-estimation of probabilities. On the other hand, in the Bayesian framework, a posterior distribution on the parameters could consider networks explaining these mismatching conditions. By averaging different contributions, the model ideally moderates probabilities on unfavourable data. For the sake of illustration, we provide a simple example in appendix A. We encourage unfamiliar readers with Bayesian statistics and calibration to read this appendix. ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
173,
|
| 194 |
+
372,
|
| 195 |
+
825,
|
| 196 |
+
622
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 2
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "Regarding the accuracy of Bayesian models, in Bayesian decision theory, if the model used to generate the data is known, the optimal error can be achieved, which also means optimal accuracy if all decision costs are equal. This suggests that a proper way of assigning probabilities is also paramount for the accuracy. Thus, by choosing appropriate densities for the class-conditional probabilities $p ( t | x )$ , such as factorized multivariate Bernoulli distributions like in point estimate models, the accuracy will also be correctly modelled. Moreover, it is well known that Bayesian models asymptotically tend to point estimate models as the data increases in size, see Duda et al. (2000) section 3.4. Therefore, it is expected that good accuracy performance achieved by point-estimate models should be also achievable by Bayesian models, at least for sufficient amounts of data. ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
174,
|
| 205 |
+
628,
|
| 206 |
+
825,
|
| 207 |
+
753
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "3 OFFLINE CALIBRATION WITH BAYESIAN NEURAL NETWORKS ",
|
| 214 |
+
"text_level": 1,
|
| 215 |
+
"bbox": [
|
| 216 |
+
174,
|
| 217 |
+
773,
|
| 218 |
+
717,
|
| 219 |
+
790
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "The architecture proposed in this work is shown in Figure 2. We apply a BNN to the potentially uncalibrated outputs of a DNN model. The goal is to improve the calibration minimizing the accuracy degradation of the original DNN model. Our approach works offline, meaning that given a DNN model, we project the available data to the space defined by the outputs of the model in the form of logit, i.e. pre-softmax values. This new representation is then the input to our BNN. The BNN aims at taking this uncalibrated so-called logit space and project it to a new calibrated one. The same procedure is applied for the TS method. ",
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
804,
|
| 229 |
+
825,
|
| 230 |
+
901
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "image",
|
| 236 |
+
"img_path": "images/7d26d0fed45dcf9dab9259ca9ea552334e4f35ca5924d1e83b3b311d694ee0c9.jpg",
|
| 237 |
+
"image_caption": [
|
| 238 |
+
"Figure 2: Exemplary representation of the architecture of our proposed model. On the left, an expensive pretrained DNN on ImageNet is trained on a specific dataset (transfer learning). Then, the (uncalibrated) output of such DNN is the input to the BNN calibration stage. This stage is trained by the maximization of the Expected Lower Bound (ELBO) and predictions are done using Monte Carlo integration. The inputs and outputs of the Bayesian stage have same dimension (given by the number of classes), and lie in the so-called logit space. Orange Gaussians on each arrow represent variational distributions on parameters. We do not plot all the arrows for clarity. This Bayesian stage is independent of the previous one as we only require access to the logits of an already trained model. "
|
| 239 |
+
],
|
| 240 |
+
"image_footnote": [],
|
| 241 |
+
"bbox": [
|
| 242 |
+
178,
|
| 243 |
+
104,
|
| 244 |
+
823,
|
| 245 |
+
267
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 3
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "This off-line set-up presents clear advantages. First, the approach is efficient, since the DNN model does not need to be re-trained for re-calibration. Furthermore, we can incorporate future improvements to the BNN calibration stage without affecting the previous DNN model. Second, our proposal is extremely flexible, as the proposed BNN calibration stage will work with any probabilistic model, even implicitly-calibrated models, with potential benefits on calibration performance. And finally, our proposal preserves privacy, because there is no need to access the original data used to train the DNN model, or even the DNN topology: to be trained, the BNN only needs the data projected to the outputs of the DNN on the logit space, and the original targets $t$ . ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
421,
|
| 255 |
+
825,
|
| 256 |
+
535
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 3
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "For these Bayesian approaches one has to compute the posterior distribution $p ( \\theta | \\mathcal { O } )$ and the expectation in equation 1. Using configurations that yield to analytic solutions to both problems result in low-expression models for this task. We solve this problem by choosing Neural Networks to parameterize the likelihood $p ( t | x , \\theta )$ of our BNN, and therefore taking advantage of the high expressiveness of these models. In this case, several intractabilities arise that must be addressed. ",
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
541,
|
| 266 |
+
825,
|
| 267 |
+
611
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 3
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "In this work we approximate expectations on equation 1 with Monte Carlo integration, and the posterior is approximated by a variational distribution in terms of the Kulback-Lieber Divergence. This is done by the maximization the Evidence Lower Bound (ELBO). We use stochastic optimization based on the reparameterization trick (Kingma & Welling, 2014; Rezende et al., 2014) to approximate the expectation under the variational distribution, and also mini-batch stochastic optimization for expectations under data distribution. Thus, our training criteria is given by: ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
173,
|
| 276 |
+
617,
|
| 277 |
+
826,
|
| 278 |
+
702
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 3
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "equation",
|
| 284 |
+
"img_path": "images/c0a2894a12f857290e27e9045effd3e22919128a4bc155a9a5733d0f174a0e6f.jpg",
|
| 285 |
+
"text": "$$\nE L B O = \\frac { 1 } { N } \\sum _ { ( x , t ) \\sim p _ { d } ( x , t ) } \\Bigl [ \\frac { 1 } { K } \\sum _ { \\theta \\sim q _ { \\phi } ( \\theta ) } [ \\log p ( t | x , \\theta ) ] - \\beta \\cdot D _ { K L } \\{ q _ { \\phi } ( \\theta ) / / p ( \\theta ) \\} \\Bigr ] ,\n$$",
|
| 286 |
+
"text_format": "latex",
|
| 287 |
+
"bbox": [
|
| 288 |
+
236,
|
| 289 |
+
718,
|
| 290 |
+
758,
|
| 291 |
+
760
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 3
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "where we introduce $\\beta$ following Blundell et al. (2015). ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
174,
|
| 300 |
+
762,
|
| 301 |
+
532,
|
| 302 |
+
777
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "Our variational distribution is a factorized Gaussian distribution and for that reason we refer to our BNN approach as a basic approach, as we do not incorporate any improvement recently proposed for BNN models, such as normalizing flows, local reparameterization, and so on. Also, we use a standard normal density for the prior. We choose this simple approximation to demonstrate our starting hypothesis: that BNNs can be applied to improve the calibration of state-of-the-art DNN in a very efficient way. Our basic BNN model can be improved by using normalizing flows (Rezende & Mohamed, 2015; Kingma et al., 2016; Huang et al., 2018; van den Berg et al., 2018), auxiliary variables (Agakov & Barber, 2004; Ranganath et al., 2016; Maaløe et al., 2016), local reparameterization (Kingma et al., 2015), combinations of all of them (Louizos & Welling, 2017) or deterministic models (Wu et al., 2018). Also, Cremer et al. (2018) has recently pointed out that amortized inference leads to an additional gap in the bound, in addition to the $D _ { K L }$ gap between the true and variational posteriors; and we can also use other proposals to mitigate this effect (Shu et al., 2018; Kim et al., 2018). ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
784,
|
| 312 |
+
825,
|
| 313 |
+
924
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "",
|
| 320 |
+
"bbox": [
|
| 321 |
+
176,
|
| 322 |
+
103,
|
| 323 |
+
823,
|
| 324 |
+
145
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 4
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Finally, class predictions are assigned by first computing the logits of a test sample using the first DNN stage $\\boldsymbol { B }$ , and then using them as inputs of our BNN to yield calibrated probabilities, which can be formalized as follows: ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
152,
|
| 334 |
+
823,
|
| 335 |
+
194
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 4
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "equation",
|
| 341 |
+
"img_path": "images/edfa99b96d0a49da1a70793188add84e383cdf84a4e24ae46e0f1942a27554ca.jpg",
|
| 342 |
+
"text": "$$\n\\begin{array} { c } { l = { } } \\\\ { { } } \\\\ { { p ( t | x , \\mathcal { O } ) \\approx \\displaystyle \\frac { 1 } { M } \\sum _ { i = 1 } ^ { M } p ( t | l , \\theta _ { i } ) ; \\theta _ { i } \\sim q _ { \\phi } ( \\theta ) , } } \\end{array}\n$$",
|
| 343 |
+
"text_format": "latex",
|
| 344 |
+
"bbox": [
|
| 345 |
+
354,
|
| 346 |
+
208,
|
| 347 |
+
642,
|
| 348 |
+
272
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 4
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "where $M$ is a value chosen on validation. Note that our proposed BNN is not as efficient as TS for calibration. However, the contributions to the weighted average can be fully parallelized computationally, as predictions do not depend on each other. Thus, we can use modern GPU libraries such as CUBLAS and batch-based operations to dramatically speed-up the process. ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
174,
|
| 357 |
+
292,
|
| 358 |
+
825,
|
| 359 |
+
351
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 4
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "4 RELATED WORK ",
|
| 366 |
+
"text_level": 1,
|
| 367 |
+
"bbox": [
|
| 368 |
+
176,
|
| 369 |
+
378,
|
| 370 |
+
343,
|
| 371 |
+
395
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 4
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "To our knowledge, TS (Guo et al., 2017) has been consistently reported as the best technique to improve calibration over a list of classical ways of improving calibration, such as histogram binning (Zadrozny & Elkan, 2001), isotonic regression (Zadrozny & Elkan, 2002b), Platt scaling (Platt, 1999) or Bayesian binning into quantiles (Naeini et al., 2015) among others. For a recent description and performance comparison with modern neural networks, see Guo et al. (2017). On the other hand, there are several works that study overconfident predictions and model uncertainty in different contexts, but without reporting an explicit measurement of calibration performance in deep neural models. For instance, Gal & Ghahramani (2015) connect Bernoulli dropout with BNNs, and Gal & Ghahramani (2016) links Gaussian processes with classical dropout regularized networks, showing how uncertainty estimates can be obtained from this networks. In the latter, the authors state that these Bayesian outputs are not calibrated. In Pereyra et al. (2017), an entropy term is added to the log-likelihood to relax overconfidence. Lakshminarayanan et al. (2017) propose training network ensembles with adversarial noise samples to output confident scores. Chen et al. (2018) propose a model that uses probes of the individual layers of the neural network classifier to create a confidence score for the network output. DeVries & Taylor (2018) train a second output obtained from the penultimate layer of the classifier to be confident by interpolation of the softmax output and the true value, scaled by this score. Lee et al. (2018) proposed a generative approach for detecting outof-distribution samples but evaluates calibration performance comparing their method with normal cross-entropy minimization, using TS as the calibration technique. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
174,
|
| 380 |
+
415,
|
| 381 |
+
825,
|
| 382 |
+
680
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 4
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "On the side of BNNs, Kingma et al. (2015) formalize Gaussian dropout as a Bayesian approach. In Louizos & Welling (2017), novel BNNs are proposed, mixing inverse autoregressive flows (Kingma et al., 2016), auxiliary variables (Maaløe et al., 2016) and local reparameretization (Kingma et al., 2015). None of these approaches measure calibration explicitly on deep neural models, as we do. For instance, Louizos & Welling (2017) and Lakshminarayanan et al. (2017) evaluate uncertainty by training on one dataset and use it on another, expecting a maximum entropy output distribution. More recently, Zhang et al. (2018) propose an scalable inference algorithm that is also asymptotically accurate as MCMC algorithms. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
686,
|
| 392 |
+
825,
|
| 393 |
+
797
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "We compare our proposed BNN approach against TS, as to our knowledge it is the state of the art in calibration tasks involving deep neural models, according to the reviewed previous work. TS widely improves calibration without affecting the accuracy, and can be efficiently applied to any model. Formally, given $\\mathcal { O }$ , TS maximizes the log-likelihood of the conditional distribution $p ( t | x / T )$ w.r.t. the parameter $T$ . In this case, $x$ also represents the output logits of the deep convolutional model. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
804,
|
| 403 |
+
825,
|
| 404 |
+
875
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 4
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "In Section 6, we will comparatively discuss the properties and results of our proposal with other works recently found in the literature for calibration on deep models, some of them based on implicit and explicit models. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
176,
|
| 413 |
+
881,
|
| 414 |
+
823,
|
| 415 |
+
924
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "5 EXPERIMENTS ",
|
| 422 |
+
"text_level": 1,
|
| 423 |
+
"bbox": [
|
| 424 |
+
176,
|
| 425 |
+
103,
|
| 426 |
+
325,
|
| 427 |
+
117
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 5
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "We demonstrate calibration performance on several computer vision models on several datasets. We have used CIFAR10 and CIFAR100 databases (Krizhevsky et al., a;b); SVHN (Netzer et al., 2011); and a GENDER recognition task (Eidinger et al., 2014). We use a validation set randomly taken from the training set with 5000 samples for CIFAR10 and CIFAR100, 10000 samples for SVHN and 4005 for GENDER. This validation set is used to train the TS parameter and to choose the number of Monte Carlo samples, $M$ in equation 2. We report results for the best model on validation for all the tested configurations. We optimize the ELBO using adam optimization (Kingma & Ba, 2014), since it performed better than stochastic gradient descent on our previous experiments. We used $\\beta = 0 . 1$ from the set $\\lbrace 1 , 0 . 1 , 0 . 0 1 \\rbrace$ as it behaves better on validation. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
132,
|
| 437 |
+
825,
|
| 438 |
+
258
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 5
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "In order to compare our experiments with uncalibrated and TS calibrated probabilities, we used an unbiased estimator of the Expected Calibration Error (ECE) computed as in Guo et al. (2017), with 15 bins. The ECE measures the expected value of the difference between accuracy and confidence: ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
174,
|
| 447 |
+
265,
|
| 448 |
+
823,
|
| 449 |
+
308
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 5
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "equation",
|
| 455 |
+
"img_path": "images/79c381d76d62a41dfa4a7a1712930a0dfebcb764726e5f2c7de9ca4fc274e5a2.jpg",
|
| 456 |
+
"text": "$$\n\\mathrm { E C E } = \\sum _ { i = 1 } ^ { 1 5 } \\frac { | B _ { i } | } { N } | \\mathrm { a c c } ( B _ { i } ) - \\mathrm { c o n f } ( B _ { i } ) |\n$$",
|
| 457 |
+
"text_format": "latex",
|
| 458 |
+
"bbox": [
|
| 459 |
+
374,
|
| 460 |
+
313,
|
| 461 |
+
622,
|
| 462 |
+
356
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 5
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "where $N$ is the number of total samples; $B _ { i }$ represents the set of samples whose predictions $t$ confidence lie in bin $i$ ; $\\mathrm { c o n f } ( B _ { i } )$ is the average confidence and $\\operatorname { a c c } ( B _ { i } )$ is the accuracy of that bin. We also report the accuracy of our models. This is because a classifier can be perfectly calibrated, but useless from a classification point of view. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
359,
|
| 472 |
+
825,
|
| 473 |
+
415
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 5
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "Note that we evaluate our proposed method on several state of art configurations of computer vision neural networks over the mentioned datasets: Wide Residual Networks (Zagoruyko & Komodakis, 2016), Residual Networks (He et al., 2016b), Densely Connected Neural Networks (Huang et al., 2017), Pre-Activation Residual Networks (He et al., 2016a), Dual Path Networks (Chen et al., 2017), VGG (Simonyan & Zisserman, 2014) and ResNext (Xie et al., 2017). The results reported in this work are obtained from some pretrained neural networks. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
174,
|
| 482 |
+
421,
|
| 483 |
+
825,
|
| 484 |
+
505
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 5
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "5.1 RESULTS ",
|
| 491 |
+
"text_level": 1,
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
522,
|
| 495 |
+
276,
|
| 496 |
+
536
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 5
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "Table 1 shows the results for the different datasets, original DNNs and calibration approaches. We presents results in $\\%$ , i.e. multiplying by 100 the result obtained in equation 4. The most important point is that calibration is improved by a wide margin in every model except for two models in CIFAR100 and one model in SVHN. Table 1 shows that in average our proposed calibration method outperforms TS with an insignificant accuracy loss. This means that high expressive models can cope with the calibration task as long as uncertainty is correctly modelled. Therefore, we propose an alternative hypothesis to the one given in Guo et al. (2017) where the authors argued that the calibration space is simple. We argue that if highly complex models outperform simple ones is because the distribution of the calibration space is also complex but the low dimensionality of the logit space makes high expressive models overfit. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
547,
|
| 506 |
+
825,
|
| 507 |
+
688
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 5
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "We realized that more expressive models are needed by more complex tasks, like CIFAR100. For instance, ResNet-18 GENDER uses BNNs of two layers with two neurons per layer, while WideResNet 40x10 on CIFAR100 uses two layers of 2000 neurons. This reflects that, when dimensionality increases, more expressiveness is needed. Another important point observed in SVHN (see Densenet169, ResNet-50 and WideResNet 16x8) is that TS has degraded calibration by a factor of three in the worst case. In general BNNs do not degrade the calibration. ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
174,
|
| 516 |
+
694,
|
| 517 |
+
825,
|
| 518 |
+
777
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 5
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "One drawback of our basic approach is that in some cases we obtain slight accuracy degradation. Accuracy degradation is more relevant only for CIFAR100, however our BNN method reduces ECE15 by a factor of two in some experiments in this task. Moreover, in some cases we are able to improve both, accuracy and calibration, see WideResNet $4 0 \\mathrm { x } 1 0$ for CIFAR10 or ResNet-18 for GENDER dataset. Thus, we cannot conclude that BNNs are calibrating at the cost of losing accuracy. This motivates us towards further research on this accuracy degradation, as we expect to solve it with more sophisticated approximations in future work. Possible hypothesis for this degradation are that either the gap between the variational and the true posterior is still large, the variance of the ELBO estimator is large and does not allow us to converge to a better optimal, or the expressiveness of the likelihood model is not enough to deal with the particular logit space distribution. We found that for more complex logit space distribution (100 dimensional in CIFAR100) we could get better accuracy and better ECE increasing the expressiveness of the model. On the other hand in simpler logit space distribution (2 dimensional in GENDER) we found that the expressiveness must be reduced. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
784,
|
| 528 |
+
825,
|
| 529 |
+
924
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "table",
|
| 535 |
+
"img_path": "images/feaa59613d712ca848df91f8876c204d0e9f86b0f0117fc854a54d3b7b4e338e.jpg",
|
| 536 |
+
"table_caption": [
|
| 537 |
+
"Table 1: ECE $1 5 ( \\% )$ and Accuracy $( \\% )$ comparing model uncalibrated, calibrated with TS and with BNN "
|
| 538 |
+
],
|
| 539 |
+
"table_footnote": [],
|
| 540 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">uncalibrated</td><td colspan=\"2\">CIFAR10 Temp Scal</td><td colspan=\"2\">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet28x10</td><td>96.13</td><td>1.835</td><td>96.13</td><td>0.518</td><td>96.08</td><td>0.243</td></tr><tr><td>DenseNet 121</td><td>95.49</td><td>2.643</td><td>95.49</td><td>1.011</td><td>95.26</td><td>0.600</td></tr><tr><td>DenseNet 169</td><td>95.49</td><td>2.664</td><td>95.49</td><td>0.826</td><td>95.29</td><td>0.511</td></tr><tr><td>Dual Path Network 92</td><td>95.18</td><td>2.995</td><td>95.18</td><td>1.072</td><td>95.03</td><td>0.730</td></tr><tr><td>ResNet 101</td><td>93.46</td><td>4.268</td><td>93.46</td><td>1.196</td><td>93.38</td><td>0.776</td></tr><tr><td>VGG 19</td><td>93.68</td><td>4.412</td><td>93.68</td><td>1.708</td><td>93.67</td><td>0.843</td></tr><tr><td>Preactivation ResNet 18</td><td>94.93</td><td>3.155</td><td>94.93</td><td>0.570</td><td>94.73</td><td>0.455</td></tr><tr><td>Preactivation ResNet 164</td><td>93.91</td><td>4.102</td><td>93.91</td><td>0.437</td><td>93.82</td><td>0.331</td></tr><tr><td>ResNext29_8x16</td><td>94.79</td><td>2.833</td><td>94.79</td><td>0.741</td><td>94.61</td><td>0.728</td></tr><tr><td>Wide ResNet 40x10</td><td>95.01</td><td>3.001</td><td>95.01</td><td>0.921</td><td>95.08</td><td>0.594</td></tr><tr><td>average</td><td>94.81</td><td>3.191</td><td>94.81</td><td>0.9</td><td>94.70</td><td>0.581</td></tr></table>",
|
| 541 |
+
"bbox": [
|
| 542 |
+
214,
|
| 543 |
+
140,
|
| 544 |
+
736,
|
| 545 |
+
352
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 6
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "table",
|
| 551 |
+
"img_path": "images/0c74d6f1f1917f18004f602191a0062de88608d1ca9a584b669903924b34ee6b.jpg",
|
| 552 |
+
"table_caption": [],
|
| 553 |
+
"table_footnote": [],
|
| 554 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">uncalibrated</td><td colspan=\"2\">SVHN Temp Scal</td><td colspan=\"2\">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet 40x10</td><td>96.95</td><td>1.26</td><td>96.95</td><td>1.17</td><td>96.90</td><td>1.15</td></tr><tr><td>Densenet-121</td><td>96.76</td><td>2.021</td><td>96.76</td><td>1.092</td><td>96.69</td><td>0.716</td></tr><tr><td>Densenet-169</td><td>96.70</td><td>0.363</td><td>96.70</td><td>1.016</td><td>96.59</td><td>0.453</td></tr><tr><td>ResNet 50</td><td>96.47</td><td>0.886</td><td>96.47</td><td>1.030</td><td>96.33</td><td>0.857</td></tr><tr><td>Preactivation ResNet 164</td><td>96.20</td><td>2.539</td><td>96.20</td><td>1.079</td><td>96.08</td><td>0.921</td></tr><tr><td>Wide ResNet 16x8</td><td>96.88</td><td>0.710</td><td>96.88</td><td>1.318</td><td>96.82</td><td>0.739</td></tr><tr><td>Preactivation ResNet 18</td><td>96.15</td><td>1.574</td><td>96.15</td><td>0.645</td><td>96.05</td><td>1.096</td></tr><tr><td>average</td><td>96,587</td><td>1,336</td><td>96,587</td><td>1.05</td><td>96,494</td><td>0.847</td></tr></table>",
|
| 555 |
+
"bbox": [
|
| 556 |
+
207,
|
| 557 |
+
368,
|
| 558 |
+
753,
|
| 559 |
+
536
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 6
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "table",
|
| 565 |
+
"img_path": "images/957455dcc0a75928f875ba0b3911f66f2d9cfd02f9f3cf6fe7410f23d2ca5f46.jpg",
|
| 566 |
+
"table_caption": [
|
| 567 |
+
"CIFAR100 "
|
| 568 |
+
],
|
| 569 |
+
"table_footnote": [],
|
| 570 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">uncalibrated</td><td colspan=\"2\">Temp Scal</td><td colspan=\"2\">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>WideResNet 28x10</td><td>80.39</td><td>4.853</td><td>80.39</td><td>4.276</td><td>77.59</td><td>2.456</td></tr><tr><td>DenseNet 121</td><td>78.8</td><td>8.724</td><td>78.8</td><td>3.476</td><td>75.9</td><td>2.534</td></tr><tr><td>ResNet 101</td><td>72</td><td>11.413</td><td>72</td><td>1.533</td><td>68.7</td><td>1.612</td></tr><tr><td>VGG 19</td><td>72.7</td><td>17.631</td><td>72.7</td><td>4.798</td><td>71.94</td><td>6</td></tr><tr><td>Preactivation ResNet 18</td><td>76.6</td><td>10.780</td><td>76.9</td><td>3.152</td><td>74.3</td><td>1.763</td></tr><tr><td>Preactivation ResNet 164</td><td>73.28</td><td>15.754</td><td>73.28</td><td>2.046</td><td>70.77</td><td>1.461</td></tr><tr><td>ResNext29_8x16</td><td>77.88</td><td>9.678</td><td>77.88</td><td>2.811</td><td>73.97</td><td>2.581</td></tr><tr><td>DenseNet 169</td><td>79.05</td><td>8.883</td><td>79.05</td><td>3.758</td><td>75.58</td><td>2.393</td></tr><tr><td>WideResNet 40x10</td><td>76.74</td><td>14.767</td><td>76.74</td><td>3.765</td><td>76.17</td><td>1.876</td></tr><tr><td>average</td><td>76,36</td><td>11,387</td><td>76,36</td><td>3,291</td><td>73,88</td><td>2,520</td></tr></table>",
|
| 571 |
+
"bbox": [
|
| 572 |
+
212,
|
| 573 |
+
565,
|
| 574 |
+
743,
|
| 575 |
+
748
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 6
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "table",
|
| 581 |
+
"img_path": "images/4f1b19960d1629c41664718038e9b0e8989b4b05876f90a7f3191749c4e00e0a.jpg",
|
| 582 |
+
"table_caption": [
|
| 583 |
+
""
|
| 584 |
+
],
|
| 585 |
+
"table_footnote": [],
|
| 586 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">uncalibrated</td><td colspan=\"2\">GENDER Temp Scal</td><td colspan=\"2\">BNN</td></tr><tr><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td><td>Acc</td><td>ECE</td></tr><tr><td>VGG-19</td><td>90.60</td><td>8.08</td><td>90.60</td><td>3.96</td><td>90.50</td><td>2.70</td></tr><tr><td>DenseNet 121</td><td>90.035</td><td>8.803</td><td>90.035</td><td>3.077</td><td>89.961</td><td>1.547</td></tr><tr><td>ResNet 18</td><td>90.42</td><td>8.45</td><td>90.42</td><td>3.8</td><td>90.44</td><td>3.082</td></tr><tr><td>average</td><td>90.352</td><td>8.444</td><td>90.352</td><td>3.612</td><td>90.30</td><td>2.443</td></tr></table>",
|
| 587 |
+
"bbox": [
|
| 588 |
+
259,
|
| 589 |
+
767,
|
| 590 |
+
736,
|
| 591 |
+
878
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 6
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "image",
|
| 597 |
+
"img_path": "images/d5f2dc77003d6ed18061b37b0766445346960f5546444890d6f27d5782722284.jpg",
|
| 598 |
+
"image_caption": [
|
| 599 |
+
"Figure 3: This figures compares the ECE performance for TS and BNN in test and validation. On the left (CIFAR10) we show the performance of different training parameters. For example 30MC_500 means that the ELBO was optimized using $3 0 \\mathrm { M C }$ steps to estimate the expectation and 500 epochs of Adam optimization. On the right (CIFAR100) we show the performance of a BNN trained with different number of epochs up to 2000, showing the robustness against the course of learning. "
|
| 600 |
+
],
|
| 601 |
+
"image_footnote": [],
|
| 602 |
+
"bbox": [
|
| 603 |
+
181,
|
| 604 |
+
111,
|
| 605 |
+
810,
|
| 606 |
+
294
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 7
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "",
|
| 613 |
+
"bbox": [
|
| 614 |
+
176,
|
| 615 |
+
409,
|
| 616 |
+
825,
|
| 617 |
+
452
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 7
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "Finally, we realized that the BNNs are suitable and robust in the experiments carried out. In many experiments we found that all the tested configurations clearly outperform TS, as an example see figure 3. ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
458,
|
| 627 |
+
825,
|
| 628 |
+
501
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 7
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "6 DISCUSSION AND CONTRIBUTIONS ",
|
| 635 |
+
"text_level": 1,
|
| 636 |
+
"bbox": [
|
| 637 |
+
174,
|
| 638 |
+
522,
|
| 639 |
+
498,
|
| 640 |
+
539
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 7
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "There is an increasing interest in adjusting confidence in deep learning, as this models are now becoming part of complex decision systems and critical applications. In the machine learning community there are two main approaches for reducing over-confidence, each one with its own pros and cons: implicit/online and explicit/offline. An implicit method aim at obtaining calibrated distributions directly at the output of the model, while explicit methods post-process the output of the model to be calibrated. Moreover both approaches can use either point estimate or Bayesian probabilistic models. ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
555,
|
| 650 |
+
825,
|
| 651 |
+
652
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 7
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "Explicit approaches have several advantages. First, one can calibrate pre-softmax values provided by other practitioners. Therefore, privacy concerns regarding the model or the original data used to train that model are considered. Second, explicit approaches can be combined with implicit ones (Lakshminarayanan et al., 2017; Seo et al., 2018; Kumar et al., 2018; Chen et al., 2018; DeVries & Taylor, 2018) to further improve calibration, as example see (Kumar et al., 2018; Lee et al., 2018), where TS is used within implicit approaches. Third, one can use impractical models applied directly to a deep model in this offline stage, e.g Bayesian Neural or Gaussian Processed. Fourth, we do not need deep architectures for the Bayesian stage as the input includes the already learned representation of the DNN. This stage only focus on adjusting probabilities. A two layer BNN is unable to reach the same accuracy as a deep convolutional model by its own, however, combined with it, can yield to state-of-the-art accuracy and calibration results, as we showed. Fifth, models to be calibrated does not need to be retrained. This easily let us calibrate, as example, models that make use of pretrained DNN (transfer learning applications). Sixth, any probabilistic model can be calibrated: CNN, LSTM-RNN, BLSTM-RNN, SVM, network ensembles... Seventh, some implicit methods, such as Gal & Ghahramani (2016); Seo et al. (2018) require us to train our deep models with Dropout or stochastic depth, respectively, while ours is totally independent on how the deep model is trained. On the other hand, implicit approaches are less sensible to overfitting. Guo et al. (2017) shows that more complex models yield worse calibration performance. However, we have demonstrated that correctly managing uncertainty allow us using complex models for post-processing, improving state-of-the-art explicit approaches, and getting competitive results with the most recent published implicit ones. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
173,
|
| 660 |
+
660,
|
| 661 |
+
825,
|
| 662 |
+
924
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 7
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "",
|
| 669 |
+
"bbox": [
|
| 670 |
+
173,
|
| 671 |
+
103,
|
| 672 |
+
823,
|
| 673 |
+
132
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 8
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "text",
|
| 679 |
+
"text": "Regarding the calibration performance applied to deep learning models. Our method reaches competitive results with state-of-the-art implicit approaches on deep learning models (Seo et al., 2018; Kumar et al., 2018), and outperforms other proposed explicit (Guo et al., 2017) and implicit (Tran et al., 2018) techniques. In fact, Kumar et al. (2018) obtain competitive results when combining their implicit method with TS, which again shows that offline calibration is a desirable and flexible choice to be combined with implicit models. In fact, we have been able to apply BNNs to a task of interest for the machine learning community, which is the main criticism to these techniques. Kuleshov et al. (2018), which propose a procedure for calibrating Bayesian algorithms only for regression problems, and Lakshminarayanan et al. (2017) argue that a Bayesian treatment do not output calibrated distributions, as the Bayesian deep learning has several restrictions that the machine learning community is trying to overcome. However, this work demonstrates that if we let the major complexity of the task to a deep model, a simple Bayesian approach can adjust probabilities in an efficient way. As shown in our github, 2-layers Bayesian neural nets are enough to adjust probabilities. ",
|
| 680 |
+
"bbox": [
|
| 681 |
+
173,
|
| 682 |
+
138,
|
| 683 |
+
825,
|
| 684 |
+
319
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 8
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "In terms of efficiency our BNN method presents several benefits in comparison to other Bayesian or point estimate methods. Although making predictions is more expensive than with TS, this predictions can be fully parallelized, as noted above, computing predictions in only one step. Moreover, a forward through a deep model and a shallow BNN is less computational expensive than a forward through a deep Bayesian convolutional model that requires several forward (and backward) for test (and training). For instance we have models based on BNNs (Gal & Ghahramani, 2015) and based on Gaussian processes (Tran et al., 2018; Milios et al., 2018). Network ensembles (Lakshminarayanan et al., 2017) reduce overconfidence and output calibrated distributions, but it is not measure in a deep model application, and only compared to Monte Carlo Dropout and to the number of ensembles. Ensembles can be also paralellized but in case of deep learning models, which is our field of study, the performance is compromised by the deepness of the different ensembles. As the authors state, computation restriction arises when evaluation of ensembles is done on ImageNet with the Inception network. Our model not only uses shallow neural nets but is only compromised by the number of classes of the task to be performed, and not by the complexity of the task at hand, as once we are able to reach a good accuracy we only focus on adjusting probabilities. Other implicit approaches such as Seo et al. (2018), that compute the cost to be optimized based on several predictions of the model, require to perform as many forwards per training samples as samples we want to estimate the cost parameter. This also compromise performance in deep models. ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
327,
|
| 694 |
+
825,
|
| 695 |
+
575
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 8
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "Finally, Lakshminarayanan et al. (2017) propose to train models with proper scoring rules, such as negative log-likelihood. However, as demonstrated by Guo et al. (2017) it is not clear if deep generative models trained with this criteria presents uncalibrated distributions, at least in implicit approaches. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
176,
|
| 704 |
+
583,
|
| 705 |
+
825,
|
| 706 |
+
638
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 8
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "7 CONCLUSION AND FUTURE WORK ",
|
| 713 |
+
"text_level": 1,
|
| 714 |
+
"bbox": [
|
| 715 |
+
176,
|
| 716 |
+
661,
|
| 717 |
+
491,
|
| 718 |
+
678
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 8
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "This work has shown the many beneficial properties of offline calibration with a Bayesian reasoning. We open future perspectives which include: incorporate Bayesian improvements on the variational posterior with the objective of reducing topologies (efficiency in training and test time), better calibration and accuracy; be able to analyze how the logit dimension influences the expressiveness needed by the likelihood model and which key factors of Bayesian algorithms are critical for good performance; how can we model prior information on the parameters to yield better results; other offline approaches based on Gaussian processes, as example; incorporate training based on different proper scoring rules; measure robustness against adversarial examples; and implement these models in task where having good calibration is critical. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
694,
|
| 728 |
+
825,
|
| 729 |
+
819
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 8
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "REFERENCES ",
|
| 736 |
+
"text_level": 1,
|
| 737 |
+
"bbox": [
|
| 738 |
+
176,
|
| 739 |
+
843,
|
| 740 |
+
285,
|
| 741 |
+
858
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 8
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Felix V. Agakov and David Barber. An auxiliary variational method. In Neural Information Processing, 11th International Conference, ICONIP 2004, Calcutta, India, November 22-25, 2004, Proceedings, pp. 561–566, 2004. doi: 10.1007/978-3-540-30499-9_86. URL https: //doi.org/10.1007/978-3-540-30499-9_86. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
867,
|
| 751 |
+
825,
|
| 752 |
+
922
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 8
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In Proceedings of the 32Nd International Conference on Machine Learning - Volume 37, ICML’15, pp. 1613–1622. JMLR.org, 2015. URL http://dl.acm.org/ citation.cfm?id=3045118.3045290. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
174,
|
| 761 |
+
103,
|
| 762 |
+
826,
|
| 763 |
+
160
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 9
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "N. Brümmer and D. van Leeuwen. On calibration of language recognition scores. In Proc. of Odyssey, San Juan, Puerto Rico, 2006. ",
|
| 770 |
+
"bbox": [
|
| 771 |
+
171,
|
| 772 |
+
167,
|
| 773 |
+
825,
|
| 774 |
+
196
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 9
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "Rich Caruana, Yin Lou, Johannes Gehrke, Paul Koch, Marc Sturm, and Noemie Elhadad. Intelligible models for healthcare: Predicting pneumonia risk and hospital 30-day readmission. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’15, pp. 1721–1730, New York, NY, USA, 2015. ACM. ISBN 978-1-4503-3664-2. doi: 10.1145/2783258.2788613. URL http://doi.acm.org/10.1145/2783258.2788613. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
174,
|
| 783 |
+
205,
|
| 784 |
+
826,
|
| 785 |
+
276
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 9
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "Tongfei Chen, Jirí Navrátil, Vijay Iyengar, and Karthikeyan Shanmugam. Confidence scoring using whitebox meta-models with linear classifier probes. CoRR, abs/1805.05396, 2018. URL http://arxiv.org/abs/1805.05396. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
285,
|
| 795 |
+
825,
|
| 796 |
+
328
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 9
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, and Jiashi Feng. Dual path networks. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 4467–4475. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7033-dual-path-networks.pdf. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
337,
|
| 806 |
+
826,
|
| 807 |
+
406
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 9
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "I. Cohen and M. Goldszmidt. Properties and benefits of calibrated classifiers. In Knowledge Discovery in Databases: PKDD 2004, volume 3202 of Lecture Notes in Computer Science, Heidelberg - Berlin, 2004. Springer. doi: https://doi.org/10.1007/978-3-540-30116-5_14. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
176,
|
| 816 |
+
415,
|
| 817 |
+
825,
|
| 818 |
+
458
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 9
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "Chris Cremer, Xuechen Li, and David Duvenaud. Inference suboptimality in variational autoencoders. 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. 1086–1094, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings. mlr.press/v80/cremer18a.html. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
173,
|
| 827 |
+
465,
|
| 828 |
+
826,
|
| 829 |
+
536
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 9
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "Terrance DeVries and Graham W. Taylor. Learning confidence for out-of-distribution detection in neural networks. CoRR, abs/1802.04865, 2018. ",
|
| 836 |
+
"bbox": [
|
| 837 |
+
173,
|
| 838 |
+
545,
|
| 839 |
+
823,
|
| 840 |
+
575
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 9
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "Richard O. Duda, Peter E. Hart, and David G. Stork. Pattern Classification (2Nd Edition). WileyInterscience, New York, NY, USA, 2000. ISBN 0471056693. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
173,
|
| 849 |
+
583,
|
| 850 |
+
823,
|
| 851 |
+
612
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 9
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "Eran Eidinger, Roee Enbar, and Tal Hassner. Age and gender estimation of unfiltered faces. Trans. Info. For. Sec., 9(12):2170–2179, December 2014. ISSN 1556-6013. doi: 10.1109/TIFS.2014.2359646. URL https://doi.org/10.1109/TIFS.2014.2359646. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
174,
|
| 860 |
+
621,
|
| 861 |
+
826,
|
| 862 |
+
664
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 9
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "Yarin Gal and Zoubin Ghahramani. Bayesian convolutional neural networks with bernoulli approximate variational inference. CoRR, abs/1506.02158, 2015. URL http://arxiv.org/abs/ 1506.02158. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
671,
|
| 872 |
+
826,
|
| 873 |
+
714
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 9
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the 33rd International Conference on Machine Learning - Volume 48, ICML’16, pp. 1050–1059. JMLR.org, 2016. URL http://dl.acm. org/citation.cfm?id=3045390.3045502. ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
174,
|
| 882 |
+
723,
|
| 883 |
+
826,
|
| 884 |
+
780
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 9
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "Caglar Gulcehre, Orhan Firat, Kelvin Xu, Kyunghyun Cho, and Yoshua Bengio. On integrating a language model into neural machine translation. Comput. Speech Lang., 45(C):137–148, September 2017. ISSN 0885-2308. doi: 10.1016/j.csl.2017.01.014. URL https://doi.org/10.1016/ j.csl.2017.01.014. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
174,
|
| 893 |
+
789,
|
| 894 |
+
826,
|
| 895 |
+
844
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 9
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On calibration of modern neural networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1321–1330, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/guo17a.html. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
176,
|
| 904 |
+
854,
|
| 905 |
+
825,
|
| 906 |
+
924
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 9
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016a. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
171,
|
| 915 |
+
103,
|
| 916 |
+
823,
|
| 917 |
+
132
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 10
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pp. 770–778, 2016b. doi: 10.1109/CVPR.2016.90. URL https://doi.org/10.1109/CVPR.2016.90. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
141,
|
| 927 |
+
825,
|
| 928 |
+
198
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 10
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Geoffrey Hinton, Li Deng, Dong Yu, George E. Dahl, Abdel rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N. Sainath, , and Brian Kingsbury. Deep neural networks for acoustic modelling in speech recognition. the shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012. doi: 10.1109/MSP.2012.2205597. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
207,
|
| 938 |
+
825,
|
| 939 |
+
263
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 10
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Chin-Wei Huang, David Krueger, Alexandre Lacoste, and Aaron C. Courville. Neural autoregressive flows. In ICML, 2018. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
174,
|
| 948 |
+
272,
|
| 949 |
+
825,
|
| 950 |
+
301
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 10
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Gao Huang, Zhuang Liu, and Kilian Q. Weinberger. Densely connected convolutional networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2261–2269, 2017. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
309,
|
| 960 |
+
826,
|
| 961 |
+
352
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 10
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Yoon Kim, Sam Wiseman, Andrew Miller, David Sontag, and Alexander Rush. Semi-amortized variational autoencoders. 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. 2683–2692, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/kim18e.html. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
361,
|
| 971 |
+
825,
|
| 972 |
+
433
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 10
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2014. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
440,
|
| 982 |
+
750,
|
| 983 |
+
455
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 10
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes, 2014. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
464,
|
| 993 |
+
686,
|
| 994 |
+
479
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 10
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Diederik P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2575– 2583. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/ 5666-variational-dropout-and-the-local-reparameterization-trick. pdf. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
173,
|
| 1003 |
+
488,
|
| 1004 |
+
826,
|
| 1005 |
+
571
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 10
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4743–4751. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6581-improved-variational-inference-with-inverse-autoregressive-flow. pdf. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
173,
|
| 1014 |
+
580,
|
| 1015 |
+
869,
|
| 1016 |
+
665
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 10
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques - Adaptive Computation and Machine Learning. The MIT Press, Cambridge, MA, USA, 2009. ISBN 0262013193, 9780262013192. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
674,
|
| 1026 |
+
828,
|
| 1027 |
+
717
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 10
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). a. URL http://www.cs.toronto.edu/\\~kriz/cifar.html. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
171,
|
| 1036 |
+
727,
|
| 1037 |
+
825,
|
| 1038 |
+
756
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 10
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-100 (canadian institute for advanced research). b. URL http://www.cs.toronto.edu/\\~kriz/cifar.html. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
171,
|
| 1047 |
+
763,
|
| 1048 |
+
823,
|
| 1049 |
+
792
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 10
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Volodymyr Kuleshov, Nathan Fenner, and Stefano Ermon. Accurate uncertainties for deep learning using calibrated regression. In ICML, volume 80 of JMLR Workshop and Conference Proceedings, pp. 2801–2809. JMLR.org, 2018. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
176,
|
| 1058 |
+
801,
|
| 1059 |
+
825,
|
| 1060 |
+
844
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 10
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Aviral Kumar, Sunita Sarawagi, and Ujjwal Jain. Trainable calibration measures for neural networks from kernel mean embeddings. 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. 2805–2814, Stockholmsmässan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/kumar18a.html. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
176,
|
| 1069 |
+
854,
|
| 1070 |
+
825,
|
| 1071 |
+
924
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 10
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6402– 6413. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7219-simple-and-scalable-predictive-uncertainty-estimation-using-deep-ensembles. pdf. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
173,
|
| 1080 |
+
103,
|
| 1081 |
+
982,
|
| 1082 |
+
202
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 11
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Kimin Lee, Honglak Lee, Kibok Lee, and Jinwoo Shin. Training confidence-calibrated classifiers for detecting out-of-distribution samples. International Conference On Learning Representations, abs/1711.09325, 2018. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
174,
|
| 1091 |
+
209,
|
| 1092 |
+
826,
|
| 1093 |
+
251
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 11
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Christos Louizos and Max Welling. Multiplicative normalizing flows for variational Bayesian neural networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2218–2227, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/louizos17a.html. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
258,
|
| 1103 |
+
825,
|
| 1104 |
+
330
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 11
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Lars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. In Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48, ICML’16, pp. 1445–1454. JMLR.org, 2016. URL http://dl.acm.org/citation.cfm?id=3045390.3045543. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
337,
|
| 1114 |
+
826,
|
| 1115 |
+
393
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 11
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. CoRR, abs/1301.3781, 2013a. URL http://arxiv.org/abs/1301. 3781. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
176,
|
| 1124 |
+
401,
|
| 1125 |
+
826,
|
| 1126 |
+
444
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 11
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg Corrado, and Jeffrey Dean. Distributed representations of words and phrases and their compositionality. In Proceedings of the 26th International Conference on Neural Information Processing Systems - Volume 2, NIPS’13, pp. 3111–3119, USA, 2013b. Curran Associates Inc. URL http://dl.acm.org/citation.cfm?id= 2999792.2999959. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
174,
|
| 1135 |
+
452,
|
| 1136 |
+
826,
|
| 1137 |
+
521
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 11
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Dimitrios Milios, Raffaello Camoriano, Pietro Michiardi, Lorenzo Rosasco, and Maurizio Filippone. Dirichlet-based gaussian processes for large-scale calibrated classification, 2018. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
529,
|
| 1147 |
+
823,
|
| 1148 |
+
559
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 11
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Tom Minka. Inferring a Gaussian distribution, http://www.stat.cmu.edu/ $\\sim$ minka/papers/gaussian.html. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
176,
|
| 1157 |
+
566,
|
| 1158 |
+
743,
|
| 1159 |
+
594
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 11
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Mahdi Pakdaman Naeini, Gregory F. Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using bayesian binning. In Proceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, AAAI’15, pp. 2901–2907. AAAI Press, 2015. ISBN 0-262-51129-0. URL http://dl.acm.org/citation.cfm?id=2888116.2888120. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
602,
|
| 1169 |
+
825,
|
| 1170 |
+
659
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 11
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. 2011. URL https://www-cs. stanford.edu/\\~twangcat/papers/nips2011_housenumbers.pdf. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
666,
|
| 1180 |
+
825,
|
| 1181 |
+
710
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 11
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Alexandru Niculescu-Mizil and Rich Caruana. Predicting good probabilities with supervised learning. In Proceedings of the 22nd International Conference on Machine Learning, pp. 625–632, Bonn, Germany, 2005. doi: 10.1145/1102351.1102430. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
176,
|
| 1190 |
+
717,
|
| 1191 |
+
826,
|
| 1192 |
+
760
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 11
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Gabriel Pereyra, George Tucker, Jan Chorowski, Lukasz Kaiser, and Geoffrey E. Hinton. Regularizing neural networks by penalizing confident output distributions. CoRR, abs/1701.06548, 2017. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
171,
|
| 1201 |
+
767,
|
| 1202 |
+
825,
|
| 1203 |
+
796
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 11
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "John C. Platt. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. In ADVANCES IN LARGE MARGIN CLASSIFIERS, pp. 61–74. MIT Press, 1999. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
804,
|
| 1213 |
+
823,
|
| 1214 |
+
844
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 11
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Rajesh Ranganath, Dustin Tran, and David Blei. Hierarchical variational models. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 324–333, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http://proceedings.mlr.press/ v48/ranganath16.html. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
176,
|
| 1223 |
+
854,
|
| 1224 |
+
825,
|
| 1225 |
+
922
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 11
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32Nd International Conference on Machine Learning - Volume 37, ICML’15, pp. 1530–1538. JMLR.org, 2015. URL http://dl.acm.org/citation.cfm?id=3045118. 3045281. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
174,
|
| 1234 |
+
103,
|
| 1235 |
+
826,
|
| 1236 |
+
159
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 12
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Eric P. Xing and Tony Jebara (eds.), Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 1278–1286, Bejing, China, 22–24 Jun 2014. PMLR. URL http://proceedings.mlr.press/v32/rezende14.html. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
173,
|
| 1245 |
+
166,
|
| 1246 |
+
826,
|
| 1247 |
+
237
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 12
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Seonguk Seo, Paul Hongsuck Seo, and Bohyung Han. Confidence calibration in deep neural networks through stochastic inferences, 2018. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
174,
|
| 1256 |
+
244,
|
| 1257 |
+
823,
|
| 1258 |
+
272
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 12
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Rui Shu, Hung H. Bui, Shengjia Zhao, Mykel J. Kochenderfer, and Stefano Ermon. Amortized inference regularization. CoRR, abs/1805.08913, 2018. URL http://arxiv.org/abs/ 1805.08913. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
173,
|
| 1267 |
+
280,
|
| 1268 |
+
823,
|
| 1269 |
+
321
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 12
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition, 2014. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
173,
|
| 1278 |
+
329,
|
| 1279 |
+
823,
|
| 1280 |
+
358
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 12
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A. Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA., pp. 4278–4284, 2017. URL http://aaai.org/ocs/index.php/AAAI/ AAAI17/paper/view/14806. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
366,
|
| 1290 |
+
826,
|
| 1291 |
+
435
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 12
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Gia-Lac Tran, Edwin V. Bonilla, John P. Cunningham, Pietro Michiardi, and Maurizio Filippone. Calibrating deep convolutional gaussian processes, 2018. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
173,
|
| 1300 |
+
443,
|
| 1301 |
+
825,
|
| 1302 |
+
472
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 12
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Zoltán Tüske, Ralf Schlüter, and Hermann Ney. Investigation on LSTM recurrent n-gram language models for speech recognition. In Interspeech, pp. 3358–3362. ISCA, 2018. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
171,
|
| 1311 |
+
478,
|
| 1312 |
+
823,
|
| 1313 |
+
508
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 12
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Rianne van den Berg, Leonard Hasenclever, Jakub M. Tomczak, and Max Welling. Sylvester normalizing flows for variational inference. CoRR, abs/1803.05649, 2018. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
169,
|
| 1322 |
+
513,
|
| 1323 |
+
823,
|
| 1324 |
+
544
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 12
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"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 I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 5998–6008. Curran Associates, Inc., 2017. URL http: //papers.nips.cc/paper/7181-attention-is-all-you-need.pdf. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
174,
|
| 1333 |
+
550,
|
| 1334 |
+
826,
|
| 1335 |
+
621
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 12
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "Anqi Wu, Sebastian Nowozin, Edward Meeds, Richard E. Turner, José Miguel Hernández-Lobato, and Alexander L. Gaunt. Fixing variational bayes: Deterministic variational inference for bayesian neural networks, 2018. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
174,
|
| 1344 |
+
627,
|
| 1345 |
+
823,
|
| 1346 |
+
670
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 12
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Saining Xie, Ross B. Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5987–5995, 2017. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
174,
|
| 1355 |
+
676,
|
| 1356 |
+
823,
|
| 1357 |
+
719
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 12
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "B. Zadrozny and C. Elkan. Transforming classifier scores into accurate multiclass probability estimates. Proceeding of the Eight International Conference on Knowledge Discovery and Data Mining (KDD’02), 2002a. doi: 10.1145/775047.775151. ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
176,
|
| 1366 |
+
727,
|
| 1367 |
+
823,
|
| 1368 |
+
770
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 12
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Bianca Zadrozny and Charles Elkan. Obtaining calibrated probability estimates from decision trees and naive bayesian classifiers. In Proceedings of the Eighteenth International Conference on Machine Learning, ICML ’01, pp. 609–616, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1-55860-778-1. URL http://dl.acm.org/citation.cfm?id= 645530.655658. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
174,
|
| 1377 |
+
776,
|
| 1378 |
+
825,
|
| 1379 |
+
847
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 12
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Bianca Zadrozny and Charles Elkan. Transforming classifier scores into accurate multiclass probability estimates. In Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’02, pp. 694–699, New York, NY, USA, 2002b. ACM. ISBN 1-58113-567-X. doi: 10.1145/775047.775151. URL http://doi.acm.org/10.1145/ 775047.775151. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
176,
|
| 1388 |
+
854,
|
| 1389 |
+
825,
|
| 1390 |
+
922
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 12
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Edwin R. Hancock Richard C. Wilson and William A. P. Smith (eds.), Proceedings of the British Machine Vision Conference (BMVC), pp. 87.1–87.12. BMVA Press, September 2016. ISBN 1-901725-59-6. doi: 10.5244/C. 30.87. URL https://dx.doi.org/10.5244/C.30.87. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
176,
|
| 1399 |
+
103,
|
| 1400 |
+
826,
|
| 1401 |
+
160
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 13
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "Yichuan Zhang, José Miguel Hernández-Lobato, and Zoubin Ghahramani. Variational measure preserving flows. CoRR, abs/1805.10377, 2018. URL http://arxiv.org/abs/1805. 10377. ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
176,
|
| 1410 |
+
169,
|
| 1411 |
+
826,
|
| 1412 |
+
210
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 13
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "APPENDIX A: TOY EXAMPLE ON BAYESIAN CALIBRATION",
|
| 1419 |
+
"text_level": 1,
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
174,
|
| 1422 |
+
102,
|
| 1423 |
+
660,
|
| 1424 |
+
118
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 14
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "In this case we consider a problem of density assignment. Formally, we have a set of data $\\mathcal { O } =$ $\\{ x _ { i } \\} _ { i = 1 } ^ { N } , x \\in \\mathbb { R } ^ { 2 }$ belonging to class $c _ { 1 }$ , where its true distribution belongs to the family of bimodal Gaussian distributions. We want to assign a unimodal Gaussian parametric model $p ( x | \\theta )$ where $\\theta =$ $( \\mu , \\Sigma )$ . Note that in this case the parametric model would be unable to recover the true distribution, which is likely to happen in deep learning models due to the complexity of the distributions these models cope with. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
173,
|
| 1433 |
+
137,
|
| 1434 |
+
825,
|
| 1435 |
+
222
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 14
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "In the Bayesian framework the density is computed by averaging each possible model parameterized by $\\theta$ , using the posterior distribution computed from the observed data as the distribution over which we take the expectation: ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
174,
|
| 1444 |
+
228,
|
| 1445 |
+
823,
|
| 1446 |
+
270
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 14
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "equation",
|
| 1452 |
+
"img_path": "images/1e2d283fb480a97b485efc37364fec1c23a602a8b652dbc36cc558c6b48bd5bb.jpg",
|
| 1453 |
+
"text": "$$\np ( x | \\mathcal { O } , c _ { 1 } ) = \\int d \\theta _ { 1 } p ( x | \\theta _ { 1 } ) \\cdot p ( \\theta _ { 1 } | \\mathcal { O } )\n$$",
|
| 1454 |
+
"text_format": "latex",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
370,
|
| 1457 |
+
296,
|
| 1458 |
+
627,
|
| 1459 |
+
329
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 14
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "On the other hand, maximum likelihood would represent the data using the ML estimator $\\theta ^ { M L }$ . In this setting, it can be computed uniquely as the loss function has a global optimum. ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
174,
|
| 1468 |
+
349,
|
| 1469 |
+
825,
|
| 1470 |
+
378
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 14
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "Figure 4 shows an example of how model averaging improves the assignments of probabilities, and therefore model calibration, contrary to ML. The figure shows some data points generated by our training distribution, where the color of each point is different for each of the Gaussian mixtures. A point-estimate maximum likelihood (ML) model $p ( x | \\theta _ { 1 } ^ { M L } )$ (we use $\\theta _ { 1 } ^ { M L }$ to refer to the model assigned to $c _ { 1 }$ datapoints) is fitted and represented as red contour lines. It can be seen that the ML model fails to accurately represent the true data distribution, although it can represent one of the two clusters of data moderately well. Two samples not observed in the training set are shown as a black and a gray dot. Also, different plausible likelihood models are represented in dashed contour plots. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
173,
|
| 1479 |
+
385,
|
| 1480 |
+
825,
|
| 1481 |
+
497
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 14
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "We now assume that we have another set of data belonging to class $c _ { 2 }$ , but not represented in this figure as it is far in the data space. We fit $p ( x | \\theta _ { 2 } ^ { M L } )$ for this dataset. We assume the prior distribution over the classes to be equal for both classes, and based on Bayes theory decision, our decision rule is given by: ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
174,
|
| 1490 |
+
503,
|
| 1491 |
+
825,
|
| 1492 |
+
560
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 14
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "image",
|
| 1498 |
+
"img_path": "images/3bebab5d15da9371e366f0490da0224ba223f37c2f0846d36f5162b8658b88ce.jpg",
|
| 1499 |
+
"image_caption": [
|
| 1500 |
+
"Figure 4: Bimodal distribution of 2-dimensional training data (orange and blue points) with Maximum Likelihood estimation of a Gaussian distribution (red contour) and other possible likelihood models explaining the data (dashed plots). Green and black dots represent data not seen in the training data, for which densities are to be assigned. Best viewed in color. "
|
| 1501 |
+
],
|
| 1502 |
+
"image_footnote": [],
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
281,
|
| 1505 |
+
617,
|
| 1506 |
+
681,
|
| 1507 |
+
853
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 14
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "equation",
|
| 1513 |
+
"img_path": "images/f8e02371f91dcf976412240d8237356a2313538eddd4a26487a1464c933ee94c.jpg",
|
| 1514 |
+
"text": "$$\n{ \\frac { P ( c _ { 1 } | x ) } { P ( c _ { 2 } | x ) } } = { \\frac { p ( x | c _ { 1 } ) } { p ( x | c _ { 2 } ) } } ,\n$$",
|
| 1515 |
+
"text_format": "latex",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
429,
|
| 1518 |
+
113,
|
| 1519 |
+
568,
|
| 1520 |
+
147
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 15
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "where for generality we do not explicitly indicate if the model $p ( x | c )$ is computed in the ML or Bayesian setting. As long as $p ( x | c _ { 1 } ) > \\dot { p } ( x | c _ { 2 } )$ we will assign $c _ { 1 }$ to a given sample $x$ . It is clearly seen that for both the black and gray test samples, the density assigned by $p ( x | c _ { 1 } )$ is greater and thus these samples are assigned to class $c _ { 1 }$ . In fact, if both samples belong to this class we will have a perfect performance in terms of accuracy. ",
|
| 1527 |
+
"bbox": [
|
| 1528 |
+
173,
|
| 1529 |
+
150,
|
| 1530 |
+
825,
|
| 1531 |
+
220
|
| 1532 |
+
],
|
| 1533 |
+
"page_idx": 15
|
| 1534 |
+
},
|
| 1535 |
+
{
|
| 1536 |
+
"type": "text",
|
| 1537 |
+
"text": "However, although the black dot is correctly assigned to $c _ { 1 }$ , the red ML model assigns extremely low density to it which is undesirable, as it has been actually generated like the rest of the data. This is not a desired behaviour, since it is in fact likely to belong to the blue component of the distribution as it is close to blue training samples in the data space. For that reason, if we compute probabilities under this model, the ultimate confidence would not reflect the true underlying process, and the calibration of the model will be affected. This effect is what we argue is happening in a classification framework: although we correctly choose the class (the cluster $c _ { 1 }$ ) the ML model does not assign a correct probability. ",
|
| 1538 |
+
"bbox": [
|
| 1539 |
+
174,
|
| 1540 |
+
227,
|
| 1541 |
+
825,
|
| 1542 |
+
338
|
| 1543 |
+
],
|
| 1544 |
+
"page_idx": 15
|
| 1545 |
+
},
|
| 1546 |
+
{
|
| 1547 |
+
"type": "text",
|
| 1548 |
+
"text": "On the other hand, if we take average of all the different models parameterized by $\\theta = ( \\mu , \\Sigma ) ; \\mu \\in$ $\\mathbb { R } ^ { 2 } , \\Sigma \\in \\mathbb { R } ^ { 2 \\mathrm { x 2 } }$ (see dashed plots in the figure), the density assigned to the black dot would be raised by some of the models that explain the blue data points. The importance given to each likelihood is given by the posterior $p ( \\theta | \\mathcal { O } )$ . Therefore, other possibilities apart from the ML density will be considered, and thus we will be better modelling the probabilistic information. For an exact theoretical example on this same density estimation problem see (Minka, 2001). There you can find the exact posterior distribution using non-informative priors on the parameters. ",
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
173,
|
| 1551 |
+
344,
|
| 1552 |
+
825,
|
| 1553 |
+
443
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 15
|
| 1556 |
+
}
|
| 1557 |
+
]
|
parse/train/S1xjdoC9Fm/S1xjdoC9Fm_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1xjdoC9Fm/S1xjdoC9Fm_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkFqf0lAZ/SkFqf0lAZ.md
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MEMORY ARCHITECTURES IN RECURRENT NEURAL NETWORK LANGUAGE MODELS
|
| 2 |
+
|
| 3 |
+
Dani Yogatama♣, Yishu Miao♠, Gabor Melis♣, Wang Ling♣, Adhiguna Kuncoro♣♠
|
| 4 |
+
Chris Dyer♣, Phil Blunsom♣♠
|
| 5 |
+
♣DeepMind and ♠University of Oxford
|
| 6 |
+
dyogatama@google.com, yishu.miao@cs.ox.ac.uk
|
| 7 |
+
{melisgl,lingwang,akuncoro,cdyer,pblunsom}@google.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
We compare and analyze sequential, random access, and stack memory architectures for recurrent neural network language models. Our experiments on the Penn Treebank and Wikitext-2 datasets show that stack-based memory architectures consistently achieve the best performance in terms of held out perplexity. We also propose a generalization to existing continuous stack models (Joulin & Mikolov, 2015; Grefenstette et al., 2015) to allow a variable number of pop operations more naturally that further improves performance. We further evaluate these language models in terms of their ability to capture non-local syntactic dependencies on a subject-verb agreement dataset (Linzen et al., 2016) and establish new state of the art results using memory augmented language models. Our results demonstrate the value of stack-structured memory for explaining the distribution of words in natural language, in line with linguistic theories claiming a context-free backbone for natural language.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Sequential recurrent neural networks such as LSTMs (Hochreiter & Schmidhuber, 1997) are the basis of state-of-the-art models of natural language in various tasks. They effectively learn to capture dependencies between events separated in time by learning to store and retrieve information in a hidden state. However, the ability of these methods to discover long-term dependencies is limited by the capacity of their hidden state and the difficulty of propagating reliable gradients. For example, LSTM language models have been shown to struggle to capture non-sequential syntactic dependencies in complex sentences without explicit supervision (Linzen et al., 2016). As an illustration of the kind of dependencies they have difficulty learning, in the sentence, the loss of basic needs providers emigrating from impoverished countries has a damaging effect, correctly predicting singular has rather than its plural form have requires that the LSTM have learned that it depends on the subject, in this case the first noun (loss) rather than any of the intervening non-subject nouns, such as countries. Linzen et al. (2016) show that LSTM language models fail to capture this kind of dependencies, especially as the number of attractors (underlined) increases.
|
| 16 |
+
|
| 17 |
+
Attempts to improve language models’ ability to capture non-local dependencies have recently been undertaken by introducing an external memory components. These include (i) a soft attention mechanism (Daniluk et al., 2017) and (ii) an explicit memory block or cache model (Tran et al., 2016; Grave et al., 2017). However, since very local context is often most highly informative for predicting the next word, existing memory-augmented RNN LMs use memory just to store information about local context (Daniluk et al., 2017).
|
| 18 |
+
|
| 19 |
+
In this work, we compare several memory architectures for recurrent neural network language models. Since our goal is to evaluate how well these types of memory architectures learn long term and syntactic dependencies, we focus on language models that are static as opposed to non-static models such as neural cache (Grave et al., 2017) and dynamic evaluation (Krause et al., 2017) that can update their distribution at test time. We consider increasing the capacity of a purely sequential memory model by increasing the capacity of an LSTM, a random access memory model as typified by an attention-based LSTM, and a new variant of a stack augmented recurrent neural network.
|
| 20 |
+
|
| 21 |
+
Unlike random access memory models, a stack has a built-in bias to discover hierarchical structures that are important in language. A continuous stack memory has been proposed to improve recurrent neural networks (Joulin & Mikolov, 2015; Grefenstette et al., 2015), although it has never been carefully evaluated in benchmark language modeling experiments. In the only set of results for a stack augmented recurrent language model, Joulin & Mikolov (2015) show that a stack augmented vanilla RNN outperforms a standard RNN and is comparable to an LSTM. We augment an LSTM with a stack memory and perform thorough comparisons to evaluate its efficacy as a language model. In contrast to prior work, our continuous stack allows for push, stay, and a variable number of pop operations at each time step (multiple pop operations are useful in modeling natural language sentences since while only a single new word is presented at each time step, multiple syntactic units may come to an end concurrently).
|
| 22 |
+
|
| 23 |
+
Our motivating hypothesis is that allowing the memory to dynamically store and retrieve contextual information with a stack will drive the model to use the memory to learn dependencies that are difficult to capture by a sequential model. Sequential memory has an easier time learning local dependencies, but it often fails to capture long term dependencies. Random access memory models capture longer range dependencies (i.e., proportional to the window size), but the learner has to infer these from data without any informative structural bias. We hypothesize that introducing a more appropriate inductive bias will make it easier for the model to learn long range and structurally meaningful dependencies, given that the variance in learning such dependencies can be high. Linguistic insights reveal that one possible inductive bias is in the form of a hierarchical nested structure that captures syntactic dependencies. Stack memory models provide a natural way for capturing hierarchical structures, providing an easier path for gradients to flow to particular locations in the past.
|
| 24 |
+
|
| 25 |
+
Our main contributions in this paper are as follows:
|
| 26 |
+
|
| 27 |
+
• We thoroughly evaluate the efficacy of a stack augmented RNN as a language model and propose a more expressive extension to existing stack models (§2.1). We compare how a recurrent neural network uses a stack memory, a sequential memory cell (i.e., an LSTM memory cell), and a random access memory (i.e., an attention mechanism) for language modeling. Experiments on the Penn Treebank and Wikitext-2 datasets (§3.2) show that both the stack model and the attention-based model outperform the LSTM model with a comparable (or even larger) number of parameters, and that the stack model eliminates the need to tune window size to achieve the best perplexity.
|
| 28 |
+
• We assess the ability of these memory models to discover long range structural dependencies commonly encountered in natural language using the subject-verb agreement dataset (Linzen et al., 2016). We achieve new state of the art results and show that the gap in accuracy between a sequential or random access memory model with a stack model gets bigger as the dependencies become more complex (i.e., number of attractors increases; $\ S 3 . 3 )$ . We also analyze the stack and find that the model tends to use it to enhance its sequential memory component in high entropy prediction contexts (§3.4).
|
| 29 |
+
|
| 30 |
+
# 2 MODEL
|
| 31 |
+
|
| 32 |
+
We consider a language modeling problem where the goal is to predict the next word $x _ { t }$ given previously seen context words $x _ { 0 } , \ldots , x _ { t - 1 }$ . We represent each input word $x$ by its $D$ -dimensional embedding vector $\mathbf { x } \in \mathbb { R } ^ { D }$ .
|
| 33 |
+
|
| 34 |
+
Our base model is an LSTM that computes a hidden state at timestep $t$ as follows:
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
\begin{array} { r l r l } & { \mathbf i _ { t } = \sigma \big ( \mathbf W _ { i , x } \mathbf x _ { t } + \mathbf W _ { i , h } \mathbf h _ { t - 1 } + \mathbf b _ { i } \big ) \quad } & & { \mathbf f _ { t } = \sigma \big ( \mathbf W _ { f , x } \mathbf x _ { t } + \mathbf W _ { f , h } \mathbf h _ { t - 1 } + \mathbf b _ { f } \big ) } \\ & { \mathbf o _ { t } = \sigma \big ( \mathbf W _ { o , x } \mathbf x _ { t } + \mathbf W _ { o , h } \mathbf h _ { t - 1 } + \mathbf b _ { o } \big ) \quad } & & { \mathbf g _ { t } = \mathrm { t a n h } \big ( \mathbf W _ { g , x } \mathbf x _ { t } + \mathbf W _ { g , h } \mathbf h _ { t - 1 } + \mathbf b _ { g } \big ) } \\ & { \mathbf c _ { t } = \mathbf f _ { t } \odot \mathbf c _ { t - 1 } + \mathbf i _ { t } \odot \mathbf g _ { t } \quad } & & { \mathbf h _ { t } = \mathbf o _ { t } \odot \mathrm { t a n h } \big ( \mathbf c _ { t } \big ) } \end{array}
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
Sequential memory. An LSTM has a sequential memory cell c to store and retrieve information that is regulated by the input, output, and forget gates. In order for long-term contextual information to be used in the future, it has to pass through these gates for multiple timesteps.
|
| 41 |
+
|
| 42 |
+
Random access memory. One common approach to retrieve information from the distant past more reliably is to augment the model with a random access memory block via an attention based
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 1: Multipop Adaptive Computation Stack Recurrent Neural Network.
|
| 46 |
+
|
| 47 |
+
method. In this model, we consider the previous $K$ states as the memory block, and construct a memory vector $\mathbf { m } _ { t }$ by a weighted combination of these states:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathbf { m } _ { t } = \sum _ { i = t - K } ^ { t - 1 } a _ { i } \mathbf { h } _ { i } , { \mathrm { w h e r e ~ } } a _ { i } \propto \exp ( \mathbf { w } _ { m , i } \mathbf { h } _ { i } + \mathbf { w } _ { m , h } \mathbf { h } _ { t } )
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
Such method can be improved further by partitioning $\mathbf { h }$ into a key, value, and predict subvectors (Daniluk et al., 2017).
|
| 54 |
+
|
| 55 |
+
Given the LSTM hidden state $\mathbf { h } _ { t }$ and the memory state $\mathbf { m } _ { t }$ , we combine them using a simple function:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\tilde { \mathbf { h } } _ { t } = \mathbf { W } _ { h , h } \mathbf { h } _ { t } + \mathbf { W } _ { h , m } \mathbf { m } _ { t }
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
to get the final representation $\tilde { \mathbf { h } } _ { t }$ . We compute the probability of predicting the next word as $p ( x _ { t } \mid \pmb { x } _ { < t } ) \propto \exp ( \mathbf { x } _ { t } ^ { \top } \tilde { \mathbf { h } } _ { t } + b _ { y , x _ { t } } )$ , where we follow Inan et al. (2017) and reuse the word embedding matrix $\mathbf { X }$ as the softmax parameters.
|
| 62 |
+
|
| 63 |
+
Stack memory. In this work, we propose to augment a recurrent LSTM language model with a stack memory M that has three basic operations:
|
| 64 |
+
|
| 65 |
+
• PUSH: Push the current hidden state $\mathbf { h } _ { t }$ onto the stack.
|
| 66 |
+
• POP: Remove the top element of the stack.
|
| 67 |
+
• STAY: Keep the stack unchanged.
|
| 68 |
+
|
| 69 |
+
Figure 1 shows an illustration of our stack augmented RNN. We describe the stack memory in details in the followings.
|
| 70 |
+
|
| 71 |
+
# 2.1 MULTIPOP ADAPTIVE COMPUTATION STACK
|
| 72 |
+
|
| 73 |
+
Our stack is a multipop adaptive computation stack—it learns how many POP operations need to be performed before predicting an output. In previous work (Joulin & Mikolov, 2015; Grefenstette et al., 2015), at every timestep $t$ , the job of the memory (stack) controller is to decide whether (i) to push the current state (either $\mathbf { h } _ { t }$ or $\mathbf { x } _ { t }$ ) onto the stack, (ii) to pop the top element of the stack $\mathbf { m } _ { 0 }$ , or (iii) to stay and keep the stack state unchanged. The stack of Joulin & Mikolov (2015) is primarily designed as a single computation stack that performs one of the available operations at every timestep. In order to capture long-term dependencies, the stack learns to carry the information across multiple timesteps by mainly relying on the LSTM hidden states for predictions in between and keeping the state of the stack the same (i.e., by choosing to stay), or by pushing and popping the same number of times in between these timesteps. While this promotes discoveries of hierarchical dependencies, the kind of hierarchical dependencies that it can discover is limited. A multipop stack, on the other hand, has greater flexibility since there are more ways to manipulate its state at each timestep. The stack of Grefenstette et al. (2015) implicitly allows multiple pop operations in a single timestep by setting the pop weights to be greater than one. However, the controller makes this decision based only on the element at the top of the stack (along with the input and the current hidden state), making it less plausible to know whether more than one pop operations are needed since it does not look at other elements of the stack. Our formulation of the multipop operations is more intuitive and takes inspirations from adaptive computation time (Graves, 2017).
|
| 74 |
+
|
| 75 |
+
Concretely, consider a stack memory with $K$ elements. In all our experiments, we limit the size of the stack to $K = 1 0$ for computational considerations. If the stack requires more than $K$ elements, the bottom element of the stack is removed to make space for the new element, which is added on the top of the stack. In a single computation stack, a feedforward policy network is used to compute the probability of choosing an action $a \in \{ \mathrm { S T A Y , P U S H , P O P } \}$ .
|
| 76 |
+
|
| 77 |
+
In our stack, we also use a feedforward policy network, but the number of possible POPs is $k \in$ $\{ 0 , 1 , \ldots , K \}$ . Denote the current top two elements of the stack after performing $k$ pops by $\mathbf { m } _ { k , 0 }$ $\mathbf { m } _ { k , 1 }$ , and the state of the stack after $k$ pops by $\operatorname { S T A Y } _ { k }$ (i.e., do $k$ pops and stay) or $\mathrm { P U S H } _ { k }$ (i.e., do $k$ pops and push the current hidden state $\mathbf { h } _ { t }$ ). We compute the probability of choosing an action recursively:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r l } & { p ( { \mathrm { S T A Y } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { M } ) = p ( { \mathrm { P O P } } _ { k - 1 } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k - 1 , 0 } , \mathbf { m } _ { k - 1 , 1 } ) \times p ( { \mathrm { S T A Y } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k , 0 } , \mathbf { m } _ { k , 1 } ) } \\ & { p ( { \mathrm { P U S H } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { M } ) = p ( { \mathrm { P O P } } _ { k - 1 } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k - 1 , 0 } , \mathbf { m } _ { k - 1 , 1 } ) \times p ( { \mathrm { P U S H } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k , 0 } , \mathbf { m } _ { k , 1 } ) } \\ & { p ( { \mathrm { P O P } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { M } ) = p ( { \mathrm { P O P } } _ { k - 1 } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k - 1 , 0 } , \mathbf { m } _ { k - 1 , 1 } ) \times p ( { \mathrm { P O P } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k , 0 } , \mathbf { m } _ { k , 1 } ) . } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
As a base case, we have $p ( \mathrm { P O P } _ { - 1 } \mid \mathbf { x } _ { t } , \mathbf { m } _ { k - 1 , 0 } , \mathbf { m } _ { k - 1 , 1 } ) = 1$ . To ensure that the probability sums to one, we set $p \big ( \mathrm { P O P } _ { K + 1 } \mid \mathbf { x } _ { t } , \mathbf { m } _ { K , 0 } , \mathbf { m } _ { K , 1 } \big ) = 0$ .
|
| 84 |
+
|
| 85 |
+
The final stack state is then computed as:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\mathbf { M } = \sum _ { k = 0 } ^ { K } p ( { \operatorname { S T A Y } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { M } ) \mathbf { M } _ { \operatorname { S T A Y } _ { k } } + p ( { \operatorname { P U S H } } _ { k } \mid \mathbf { x } _ { t } , \mathbf { M } ) \mathbf { M } _ { \operatorname { P U S H } _ { k } } ,
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $\mathbf { M } _ { * _ { k } }$ is the stack state after performing $k$ POP and PUSH or STAY. Denote the top of the final stack at timestep $t$ as $\mathbf { m } _ { t }$ . The final representation is
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\tilde { \mathbf { h } } _ { t } = \mathbf { W } _ { h , h } \mathbf { h } _ { t } + \mathbf { W } _ { h , m } \mathbf { m } _ { t } .
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
We propose to treat this stack as a fully differentiable continuous stack. Alternatively, our stack can also be treated as a discrete stack and trained with reinforcement learning (e.g., with REINFORCE; Williams, 1992). In this case, instead of summing over all possible stack states, we sample according to the probabilities. However, such methods can have slow convergence due to high variance. We include comparisons to discrete and continuous single computation stacks in our experiments (§3).
|
| 98 |
+
|
| 99 |
+
Adaptive and Variable Computation Networks Previous work on adaptive computation time (Graves, 2017) consider the number of computations as “thinking time”, where they show that their models use more computation time for more difficult predictions. In our work, the number of computations is related to how further back we need to look back when making a prediction at a given timestep. Note that when we decide to push, we push the current hidden state $\mathbf { h } _ { t }$ onto the stack. Since this operation is performed before making a prediction at every timestep, it is possible to use the stack to increase the number of parameters for some predictions (i.e., by pushing $\mathbf { h } _ { t }$ and immediately use it to compute $\tilde { \mathbf { h } } _ { t } = \mathbf { W } _ { h , h } \mathbf { h } _ { t } + \mathbf { W } _ { h , m } \mathbf { m } _ { t }$ , because immediately after a push $\mathbf { m } _ { t } = \mathbf { h } _ { t }$ ). As a result, our stack is also related to variable computation recurrent networks Jernite et al. (2017) that decide the number of dimensions to be used at each timestep.
|
| 100 |
+
|
| 101 |
+
# 3 EXPERIMENTS
|
| 102 |
+
|
| 103 |
+
# 3.1 SETUP
|
| 104 |
+
|
| 105 |
+
We compare the following methods in our experiments:
|
| 106 |
+
|
| 107 |
+
• Sequential memory: 650-dimension and 920-dimension vanilla LSTMs (650 or 920 for both the word embedding and the LSTM hidden size).
|
| 108 |
+
• Random access memory: a 650-dimension attention-based LSTM with attention size $K =$ $\{ 1 , 3 , 5 , 1 0 , 1 5 \}$ .
|
| 109 |
+
|
| 110 |
+
• Stack memory: a single computation discrete or continuous stack, or a multipop adaptive computation continuous stack on top of a 650-dimension LSTM.
|
| 111 |
+
|
| 112 |
+
Following Inan et al. (2017), we tie word embedding and word classifier layers and apply dropout to these layers with probability 0.6 (value chosen based on preliminary experiment results). We also use recurrent dropout (Semeniuta et al., 2016) and set it to 0.1. We perform non-episodic training with batch size 32 using RMSprop (Hinton, 2012) as our optimization method. We tune the RMSprop learning rate and $\ell _ { 2 }$ regularization parameter for all models on a development set by random search from [0.004, 0.009] and [0.0001, 0.0005] respectively, and use perplexity on the development set to choose the best model.
|
| 113 |
+
|
| 114 |
+
# 3.2 PERPLEXITY
|
| 115 |
+
|
| 116 |
+
We use standard language modeling datasets, the Penn TreeBank (PTB) and Wikitext-2 (Wik-2) corpora to evaluate perplexity. Our main results are summarized in Table 1, where we also show comparisons with previous work on these datasets.
|
| 117 |
+
|
| 118 |
+
Our basic LSTM model is comparable to some of the best LSTM models. The results show that increasing the sequential memory capacity by increasing the hidden size improves performance. However, the improvement is not as significant as adding random access or stack memory. The best attention model is the one with $K = 1 0$ and $K = 1 5$ on PTB and Wik-2 respectively, highlighting the necessity to tune to get the optimal window size. Our results generally agree with Daniluk et al. (2017) that show that increasing the attention size generally improves performance up to a certain threshold.
|
| 119 |
+
|
| 120 |
+
While both the discrete and continuous single computation stack models perform reasonably well, the discrete model underperforms the continuous model on Wik-2. Recall that we use REINFORCE to learn the optimal discrete stack operations. We leave it to future work to investigate whether better techniques can be used to improve the performance of the discrete stack. The best model on both datasets is consistently the multipop stack.
|
| 121 |
+
|
| 122 |
+
Overall perplexity on these datasets is strongly dominated by words that require little to no long term dependencies, making it difficult to assess when memory helps. In the next section, we look into a specifically designed linguistic task to get a better understanding of these memory models.
|
| 123 |
+
|
| 124 |
+
# 3.3 SYNTACTIC DEPENDENCIES
|
| 125 |
+
|
| 126 |
+
We evaluate these memory models for learning syntax-sensitive dependencies on the number prediction dataset from Linzen et al. (2016). In this dataset, the model is given a sentence up to—but not including—its verb, and the goal is to predict the number of the following verb (singular or plural). For example, given a sentence prefix with different numbers of intervening nouns:
|
| 127 |
+
|
| 128 |
+
• this robot {is, are}
|
| 129 |
+
• the users he mentioned $\left\{ i s , a r e \right\}$
|
| 130 |
+
• many systems , in addition to VBG a page of free text for each knowledge element , also {permit, permits}
|
| 131 |
+
|
| 132 |
+
the goal is to predict the correct verb form out of the possible answers in the brackets. In total, there are approximately 1.4 million test examples in this dataset with varying degrees of difficulty. One proxy to assess the difficulty of a test example is through the number of attractors (underlined)— which are defined as intervening nouns of the opposite singular/plural form to the subject. Each of the example above has zero, one, and four attractors, respectively. Naturally, examples with fewer numbers of attractors between the head of the syntactic subject and the predicted verb are easier than those with more. We follow the experimental setup in Linzen et al. (2016) and only use test examples where all the attractors are of contrasting form to the main subject (i.e., all intervening nouns between the subject and the verb must be plural if the subject is singular, and vice versa).
|
| 133 |
+
|
| 134 |
+
One way to do this task is to train a binary classifier that takes the context and predicts an answer. We approach this task from a language modeling perspective, where we simply train a language model and take the word with the higher probability between the two possible answers as the prediction. Success on this task requires a language model that understands syntactic—and in some cases long term—dependencies in natural language. For a purely sequential memory model to do well on this task, it has to be able to carry dependencies over multiple timesteps and attractors. On the other hand, our memory augmented recurrent models need to use the random access or stack memory component in conjunction with the sequential memory of their LSTM core to capture these dependencies.
|
| 135 |
+
|
| 136 |
+
Table 1: Perplexity on PTB and Wikitext-2 datasets. The two numbers $( { } ^ { * } { \bf M } / { } ^ { * } { \bf M } )$ in the # of params. column for models that we implemented denote the number of parameters for PTB and Wik-2 respectively.
|
| 137 |
+
|
| 138 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=2 colspan=1>LSTMhidden size</td><td rowspan=2 colspan=1>#ofparams.</td><td rowspan=1 colspan=2>PTB</td><td rowspan=1 colspan=2>Wik-2</td></tr><tr><td rowspan=1 colspan=1>Dev</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Dev</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=9 colspan=1>Var LSTM(Gal & Ghahramani, 2016)Var LSTM+REAL (Inan et al.,2017)Pointer LSTM (Merity et al., 2017b)Neural Cache (Grave et al., 2017)Neural Cache (Grave et al., 2017)NAS (Zoph & Le,2017)Optimized LSTM (Melis et al., 2017)AWD LSTM (Merity et al., 2017a)AWD LSTM + Cache (Merity et al., 2017a)</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>20M</td><td rowspan=1 colspan=1>81.9</td><td rowspan=1 colspan=1>79.7</td><td rowspan=1 colspan=1>101.7</td><td rowspan=1 colspan=1>96.3</td></tr><tr><td rowspan=1 colspan=1>1500</td><td rowspan=1 colspan=1>51M</td><td rowspan=1 colspan=1>71.1</td><td rowspan=1 colspan=1>68.5</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=7 colspan=1>1=1</td><td rowspan=1 colspan=1>21M</td><td rowspan=1 colspan=1>72.4</td><td rowspan=1 colspan=1>70.9</td><td rowspan=1 colspan=1>84.8</td><td rowspan=4 colspan=1>80.881.668.91</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>72.1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>162.4</td><td rowspan=2 colspan=1>==</td></tr><tr><td rowspan=1 colspan=1>54M</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>60.9</td><td rowspan=1 colspan=1>58.3</td><td rowspan=1 colspan=1>69.1</td><td rowspan=1 colspan=1>65.9</td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>60.0</td><td rowspan=1 colspan=1>57.3</td><td rowspan=1 colspan=1>68.6</td><td rowspan=1 colspan=1>65.8</td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>53.9</td><td rowspan=1 colspan=1>52.8</td><td rowspan=1 colspan=1>53.8</td><td rowspan=1 colspan=1>52.0</td></tr><tr><td rowspan=2 colspan=1>LSTMLSTM</td><td rowspan=2 colspan=1>650920</td><td rowspan=2 colspan=1>10M/25M16M/40M</td><td rowspan=2 colspan=1>69.267.8</td><td rowspan=1 colspan=1>67.2</td><td rowspan=1 colspan=1>83.9</td><td rowspan=1 colspan=1>80.8</td></tr><tr><td rowspan=1 colspan=1>65.4</td><td rowspan=1 colspan=1>79.8</td><td rowspan=1 colspan=1>77.4</td></tr><tr><td rowspan=1 colspan=1>Attention-1Attention-3Attention-5Attention-10Attention-15</td><td rowspan=1 colspan=1>650</td><td rowspan=1 colspan=1>12M/28M</td><td rowspan=1 colspan=1>68.667.967.567.266.6</td><td rowspan=1 colspan=1>66.165.465.264.763.6</td><td rowspan=1 colspan=1>80.478.778.277.677.7</td><td rowspan=1 colspan=1>76.374.674.673.774.3</td></tr><tr><td rowspan=1 colspan=1>Single Comp.Discrete StackSingle Comp. Continuous StackMultipop Adaptive Continuous Stack</td><td rowspan=1 colspan=1>650</td><td rowspan=1 colspan=1>11M/26M</td><td rowspan=1 colspan=1>66.165.865.9</td><td rowspan=1 colspan=1>63.563.863.5</td><td rowspan=1 colspan=1>78.176.775.9</td><td rowspan=1 colspan=1>74.773.072.4</td></tr></table>
|
| 139 |
+
|
| 140 |
+
Linzen et al. (2016) concluded that a vanilla LSTM trained only with a language modeling signal is insufficient for capturing such dependencies. They reported an overall accuracy of 93.22 with a language modeling objective (using a 50 dimension LSTM), and 99.17 with a supervised binary classifier objective.
|
| 141 |
+
|
| 142 |
+
We train the best vanilla LSTM (920 dimensions), the best attention-based LSTM ( $K = 1 0$ , since the Linzen dataset is derived from Wikipedia articles similar to Wik-2), and the best stack LSTM (multipop stack) on the provided training set that contains sentences of similar structures to the test set. There are approximately 3 million tokens on the training set $( \sim 1 4 0 , 0 0 0$ sentences). We tune the learning rate and $\ell _ { 2 }$ hyperparameter on the development set using perplexity as the tuning criterion.
|
| 143 |
+
|
| 144 |
+
Our results are shown in Table 2. We report accuracies per number of attractors, as well as the overall accuracy and perplexity. Contrary to the Linzen et al. (2016) results, all of our language models perform surprisingly well on this dataset. Our vanilla LSTM model outperforms Linzen’s best LSTM by a significant margin (99.11 vs. 93.22). One possible reason is that we are able to train a much bigger LSTM than Linzen—almost 20 times bigger in hidden size. The results clearly demonstrate the improvements from adding random access and stack memory. The performance of the attention model slowly degrades to the performance of a vanilla LSTM model as the number of attractors increases, since it becomes more difficult for a random access memory mechanism to attend to the syntactic head in the presence of multiple attractors. For example, when there are five attractors, our attention model performs just as well as our vanilla LSTM model.
|
| 145 |
+
|
| 146 |
+
<table><tr><td rowspan="2">Model</td><td colspan="6">Number of attractors</td><td rowspan="2">Acc.</td><td rowspan="2">Ppx.</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>Best LSTM</td><td>99.3</td><td>97.2</td><td>95.0</td><td>92.2</td><td>90.0</td><td>84.2</td><td>99.11</td><td>23.8</td></tr><tr><td>Best attention</td><td>99.4</td><td>97.7</td><td>95.9</td><td>92.9</td><td>90.7</td><td>84.2</td><td>99.18</td><td>22.7</td></tr><tr><td>Best stack</td><td>99.4</td><td>97.9</td><td>96.5</td><td>93.5</td><td>91.6</td><td>88.0</td><td>99.23</td><td>22.2</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Table 2: Accuracies on the Linzen number prediction dataset. 0, 1, 2, 3, 4, and 5 refer to the number of attractors between the subject and the predicted verb (see text for details).
|
| 149 |
+
|
| 150 |
+
Table 3: Examples of mistakes made by competing models on the Linzen number prediction dataset. $\pmb { \chi }$ indicates an incorrect prediction, whereas $\checkmark$ indicates a correct prediction. In general, we observe that the mistakes made by both the LSTM and attention models that are correctly predicted by the stack model (row 2) typically involve longer sentences regardless of the number of attractors.
|
| 151 |
+
|
| 152 |
+
<table><tr><td colspan="3">Model</td><td rowspan="2">Example</td></tr><tr><td>LSTM</td><td>attention</td><td>stack</td></tr><tr><td>X</td><td>X</td><td>X</td><td>the NN notes and front cover title {is,are}</td></tr><tr><td>X</td><td>X</td><td>√</td><td>other NNS that in the recent past were part of the JJ parish {is,are}</td></tr><tr><td>X</td><td>√</td><td>X</td><td>the class ofall VBN sets with JJ functions as NNS {form,forms}</td></tr><tr><td>√</td><td>X</td><td>X</td><td>various brands of JJ compound or NN NN {helps,helpl</td></tr><tr><td>X</td><td>√</td><td>√</td><td>score based on penalties forfallen bars,NNS,{falls,fall}</td></tr><tr><td>√</td><td>X</td><td></td><td>the loss of basic needs providers VBG from VBN countries {has,havel</td></tr><tr><td>√</td><td>√</td><td>X</td><td>the construction of the JJwalls,floors,and VBGwalls {is,are}</td></tr></table>
|
| 153 |
+
|
| 154 |
+
The stack model performs best on this dataset, across all numbers of attractors (except zero, tie with attention), Notably, the advantage of the stack model becomes more pronounced as the number of attractors increases. In $\ S 3 . 4$ , we analyze how the model uses its stack. We take this collection of results as evidence that a hierarchical bias introduced by a stack-like data structure helps the language model to learn better syntactic natural language dependencies.
|
| 155 |
+
|
| 156 |
+
We also investigate whether mistakes are made on the same test examples. Figure 2 shows a Venn diagram of mistakes made by each of the models. Most mistakes (6115) are the same across all three models. It is clear that adding a stack or an attention mechanism improves a vanilla LSTM model, as shown by the significant decrease in the number of mistakes that are made only by LSTM (3942) to 1938 and 2534 respectively. Nonetheless, since there are still a large number of mistakes that are complementary, an interesting future direction is to combine all three kinds of memory models efficiently in a single language model. Table 3 shows examples of mistakes made by each of these models.
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 2: A Venn diagram of mistakes made on the Linzen dataset.
|
| 160 |
+
|
| 161 |
+
# 3.4 ANALYSIS
|
| 162 |
+
|
| 163 |
+
In this section, we analyze how our stack model uses its memory to improve predictions. Recall that our adaptive continuous stack has 22 possible stack states at each timestep— $\mathrm { { S T A Y _ { 0 } } }$ , $\mathrm { P U S H _ { \mathrm { 0 } } }$ , $\mathrm { S T A Y _ { 1 } }$ , $\mathrm { P U S H _ { 1 } , \ldots , S T A Y _ { 1 0 } }$ , $\mathrm { P U S H _ { 1 0 } }$ —where the subscript indicates the number of pops that are performed, limited to $K = 1 0$ in our experiments. In Figure 3, we show the number of times each stack state has the highest probability on the Wik-2 test set (left figure, red denotes STAY and blue denotes PUSH) and the maximum action probability (right figure). The LSTM hidden states are not pushed onto the stack most of the times. We inspect what is pushed and find that the model uses the stack to mostly store hidden states for difficult predictions (more details below). While the overall distribution of the maximum action probability is not very peaky since the stack is not used most of the times, we also observe that the action probability is relatively peaky when the stack is activated.
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 3: Statistics of the stack actions on Wik-2 test dataset. The left plot shows the number of times (in log space) each stack state has the highest probability. The $x$ -axis represents the number of pops, and the color represents the last action taken after POP (red represents STAY, blue represents PUSH). We can see that most words are not pushed onto the stack and that the model takes advantage of the flexibility of the stack to pop multiple times. The right plot shows the value of the maximum action probability for all timesteps. We observe that for most words the maximum action probabilities are not peaky (the distribution is roughly uniform across all stack states). They tend to be peaky only when the model wants to use the stack.
|
| 169 |
+
Figure 4: An illustration of how the stack memory is written and read for a correct prediction. We follow Linzen et al. (2016) and convert some words (e.g., emigrating, impoverished) to their part of speech tags–given inside the brackets in the example above—to limit the vocabulary size.
|
| 170 |
+
|
| 171 |
+
We next investigate how the stack improves accuracy on the Linzen dataset by looking into how it operates when making both a correct prediction and a wrong prediction. In Figure 4, we show a randomly selected test sentence the loss of basic needs providers VBG from VBN countries {has, have}. Similar to Figure 3, the red and blue bars represent STAY and PUSH, while the $x$ -axis denotes the number of POPs. The $y$ -axis, on the other hand, denotes the probability of each action. The green dots above each word shows the magnitude of the norm of the contribution of the memory vector $\mathbf { W } _ { h , m } \mathbf { m } _ { t }$ to the final hidden state $\tilde { \mathbf { h } } _ { t }$ (bigger dots represent higher magnitudes). Interestingly, the model seems to use and push onto the stack when the next word prediction has a high entropy. For example, after the word the, of, or from, the model decides to increase its capacity by pushing the current hidden state onto the stack and activates its memory component (as illustrated by bigger green dots). In $\ S 2 . 1$ , we discuss connections of our stack model to adaptive computation time and variable computation RNN, which are designed to explicitly increase their capacity for difficult predictions. Our analysis shows that our stack model also exhibits this kind of behavior. For the Linzen dataset, we conjecture that the stack model is able to perform the best because it uses the stack as a controller to allow the sequential memory component from its base LSTM to carry longer term dependencies (e.g., tracking the subject of the sentence).
|
| 172 |
+
|
| 173 |
+
For comparison, we also show how the stack operates when it makes an incorrect prediction in Figure 5. Here, the stack behaves similarly, being mostly active for higher entropy predictions, although the model was unable to predict the correct verb right after walls.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 5: An illustration of how the stack memory is written and read for an incorrect prediction.
|
| 177 |
+
|
| 178 |
+
# 4 CONCLUSION
|
| 179 |
+
|
| 180 |
+
We proposed a generalization of the continuous stack model that allows a variable number of pop operations, and compared sequential, random access, and stack memory architectures for recurrent neural network language models. Our experiments on PTB and Wik-2 showed that adding the stack memory eliminates the need to tune window size in the random access attention model to achieve the best perplexity. We also evaluated these models on the Linzen syntactic dependencies dataset and demonstrated that the stack augmented model outperforms other methods in terms of both accuracy and perplexity, especially as the number of syntactic attractors increases.
|
| 181 |
+
|
| 182 |
+
# ACKNOWLEDGEMENTS
|
| 183 |
+
|
| 184 |
+
The authors thank Edward Grefenstette for valuable feedback on an earlier draft of this paper, Tal Linzen for his assistance with the Linzen dataset, and the DeepMind language group for helpful discussions.
|
| 185 |
+
|
| 186 |
+
# REFERENCES
|
| 187 |
+
|
| 188 |
+
Daniluk, Michal, Rocktaschel, Tim, Welbl, Johannes, and Riedel, Sebastian. Frustratingly short attention spans in neural language modeling. In Proc. of ICLR, 2017.
|
| 189 |
+
Gal, Yarin and Ghahramani, Zoubin. A theoretically grounded application of dropout in recurrent neural networks. In Proc. of NIPS, 2016.
|
| 190 |
+
Grave, Edouard, Joulin, Armand, and Usunier, Nicolas. Improving neural language models with a continuous cache. In Proc. of ICLR, 2017.
|
| 191 |
+
|
| 192 |
+
Graves, Alex. Adaptive computation time for recurrent neural networks. arXiv preprint, 2017.
|
| 193 |
+
|
| 194 |
+
Grefenstette, Edward, Hermann, Karl Moritz, Suleyman, Mustafa, and Blunsom, Phil. Learning to transduce with unbounded memory. In Proc. of NIPS, 2015.
|
| 195 |
+
|
| 196 |
+
Hinton, Geoffrey. Neural networks for machine learning, 2012. Lecture 6.5.
|
| 197 |
+
|
| 198 |
+
Hochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. Neural Computation, 9(8): 1735–1780, 1997.
|
| 199 |
+
|
| 200 |
+
Inan, Hakan, Khosravi, Khashayar, and Socher, Richard. Tying word vectors and word classifiers: A loss framework for language modeling. In Proc. of ICLR, 2017.
|
| 201 |
+
|
| 202 |
+
Jernite, Yacine, Grave, Edouard, Joulin, Armand, and Mikolov, Tomas. Variable computation in recurrent neural networks. In Proc. of ICLR, 2017.
|
| 203 |
+
|
| 204 |
+
Joulin, Armand and Mikolov, Tomas. Inferring algorithmic patterns with stack-augmented recurrent nets. arXiv preprint, 2015.
|
| 205 |
+
|
| 206 |
+
Krause, Ben, Kahembwe, Emmanuel, Murray, Iain, and Renals, Steve. Dynamic evaluation of neural sequence models. arXiv preprint, 2017.
|
| 207 |
+
|
| 208 |
+
Linzen, Tal, Dupoux, Emmanuel, and Goldberg, Yoav. Assessing the ability of lstms to learn syntaxsensitive dependencies. Transactions of the Association for Computational Linguistics, 4:521–535, 2016.
|
| 209 |
+
|
| 210 |
+
Melis, Gabor, Dyer, Chris, and Blusom, Phil. On the state of the art of evaluation in neural language models. arXiv preprint, 2017.
|
| 211 |
+
|
| 212 |
+
Merity, Stephen, Keskar, Nitish Shirish, and Socher, Richard. Regularizing and optimizing lstm language models. arXiv preprint, 2017a.
|
| 213 |
+
|
| 214 |
+
Merity, Stephen, Xiong, Caiming, and an Richard Socher, James Bradbury. Pointer sentinel mixture models. In Proc. of ICLR, 2017b.
|
| 215 |
+
|
| 216 |
+
Semeniuta, Stanislau, Severyn, Aliaksei, and Barth, Erhardt. Recurrent dropout without memory loss. In Proc. of COLING, 2016.
|
| 217 |
+
|
| 218 |
+
Tran, Ke, Bisazza, Arianna, and Monz, Christof. Recurrent memory networks for language modeling. In Proc. of NAACL-HLT, 2016.
|
| 219 |
+
|
| 220 |
+
Williams, Ronald J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8:229–256, 1992.
|
| 221 |
+
|
| 222 |
+
Zoph, Barret and Le, Quoc V. Neural architecture search with reinforcement learning. In Proc. of ICLR, 2017.
|
parse/train/SkFqf0lAZ/SkFqf0lAZ_content_list.json
ADDED
|
@@ -0,0 +1,1139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MEMORY ARCHITECTURES IN RECURRENT NEURAL NETWORK LANGUAGE MODELS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Dani Yogatama♣, Yishu Miao♠, Gabor Melis♣, Wang Ling♣, Adhiguna Kuncoro♣♠ \nChris Dyer♣, Phil Blunsom♣♠ \n♣DeepMind and ♠University of Oxford \ndyogatama@google.com, yishu.miao@cs.ox.ac.uk \n{melisgl,lingwang,akuncoro,cdyer,pblunsom}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
167,
|
| 20 |
+
767,
|
| 21 |
+
242
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
279,
|
| 32 |
+
544,
|
| 33 |
+
294
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We compare and analyze sequential, random access, and stack memory architectures for recurrent neural network language models. Our experiments on the Penn Treebank and Wikitext-2 datasets show that stack-based memory architectures consistently achieve the best performance in terms of held out perplexity. We also propose a generalization to existing continuous stack models (Joulin & Mikolov, 2015; Grefenstette et al., 2015) to allow a variable number of pop operations more naturally that further improves performance. We further evaluate these language models in terms of their ability to capture non-local syntactic dependencies on a subject-verb agreement dataset (Linzen et al., 2016) and establish new state of the art results using memory augmented language models. Our results demonstrate the value of stack-structured memory for explaining the distribution of words in natural language, in line with linguistic theories claiming a context-free backbone for natural language. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
310,
|
| 43 |
+
766,
|
| 44 |
+
491
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
517,
|
| 55 |
+
336,
|
| 56 |
+
532
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Sequential recurrent neural networks such as LSTMs (Hochreiter & Schmidhuber, 1997) are the basis of state-of-the-art models of natural language in various tasks. They effectively learn to capture dependencies between events separated in time by learning to store and retrieve information in a hidden state. However, the ability of these methods to discover long-term dependencies is limited by the capacity of their hidden state and the difficulty of propagating reliable gradients. For example, LSTM language models have been shown to struggle to capture non-sequential syntactic dependencies in complex sentences without explicit supervision (Linzen et al., 2016). As an illustration of the kind of dependencies they have difficulty learning, in the sentence, the loss of basic needs providers emigrating from impoverished countries has a damaging effect, correctly predicting singular has rather than its plural form have requires that the LSTM have learned that it depends on the subject, in this case the first noun (loss) rather than any of the intervening non-subject nouns, such as countries. Linzen et al. (2016) show that LSTM language models fail to capture this kind of dependencies, especially as the number of attractors (underlined) increases. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
547,
|
| 66 |
+
825,
|
| 67 |
+
728
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Attempts to improve language models’ ability to capture non-local dependencies have recently been undertaken by introducing an external memory components. These include (i) a soft attention mechanism (Daniluk et al., 2017) and (ii) an explicit memory block or cache model (Tran et al., 2016; Grave et al., 2017). However, since very local context is often most highly informative for predicting the next word, existing memory-augmented RNN LMs use memory just to store information about local context (Daniluk et al., 2017). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
736,
|
| 77 |
+
825,
|
| 78 |
+
819
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In this work, we compare several memory architectures for recurrent neural network language models. Since our goal is to evaluate how well these types of memory architectures learn long term and syntactic dependencies, we focus on language models that are static as opposed to non-static models such as neural cache (Grave et al., 2017) and dynamic evaluation (Krause et al., 2017) that can update their distribution at test time. We consider increasing the capacity of a purely sequential memory model by increasing the capacity of an LSTM, a random access memory model as typified by an attention-based LSTM, and a new variant of a stack augmented recurrent neural network. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
827,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Unlike random access memory models, a stack has a built-in bias to discover hierarchical structures that are important in language. A continuous stack memory has been proposed to improve recurrent neural networks (Joulin & Mikolov, 2015; Grefenstette et al., 2015), although it has never been carefully evaluated in benchmark language modeling experiments. In the only set of results for a stack augmented recurrent language model, Joulin & Mikolov (2015) show that a stack augmented vanilla RNN outperforms a standard RNN and is comparable to an LSTM. We augment an LSTM with a stack memory and perform thorough comparisons to evaluate its efficacy as a language model. In contrast to prior work, our continuous stack allows for push, stay, and a variable number of pop operations at each time step (multiple pop operations are useful in modeling natural language sentences since while only a single new word is presented at each time step, multiple syntactic units may come to an end concurrently). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
256
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Our motivating hypothesis is that allowing the memory to dynamically store and retrieve contextual information with a stack will drive the model to use the memory to learn dependencies that are difficult to capture by a sequential model. Sequential memory has an easier time learning local dependencies, but it often fails to capture long term dependencies. Random access memory models capture longer range dependencies (i.e., proportional to the window size), but the learner has to infer these from data without any informative structural bias. We hypothesize that introducing a more appropriate inductive bias will make it easier for the model to learn long range and structurally meaningful dependencies, given that the variance in learning such dependencies can be high. Linguistic insights reveal that one possible inductive bias is in the form of a hierarchical nested structure that captures syntactic dependencies. Stack memory models provide a natural way for capturing hierarchical structures, providing an easier path for gradients to flow to particular locations in the past. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
263,
|
| 110 |
+
825,
|
| 111 |
+
416
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Our main contributions in this paper are as follows: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
422,
|
| 121 |
+
511,
|
| 122 |
+
438
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We thoroughly evaluate the efficacy of a stack augmented RNN as a language model and propose a more expressive extension to existing stack models (§2.1). We compare how a recurrent neural network uses a stack memory, a sequential memory cell (i.e., an LSTM memory cell), and a random access memory (i.e., an attention mechanism) for language modeling. Experiments on the Penn Treebank and Wikitext-2 datasets (§3.2) show that both the stack model and the attention-based model outperform the LSTM model with a comparable (or even larger) number of parameters, and that the stack model eliminates the need to tune window size to achieve the best perplexity. \n• We assess the ability of these memory models to discover long range structural dependencies commonly encountered in natural language using the subject-verb agreement dataset (Linzen et al., 2016). We achieve new state of the art results and show that the gap in accuracy between a sequential or random access memory model with a stack model gets bigger as the dependencies become more complex (i.e., number of attractors increases; $\\ S 3 . 3 )$ . We also analyze the stack and find that the model tends to use it to enhance its sequential memory component in high entropy prediction contexts (§3.4). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
214,
|
| 131 |
+
446,
|
| 132 |
+
825,
|
| 133 |
+
664
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 MODEL ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
681,
|
| 144 |
+
269,
|
| 145 |
+
698
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "We consider a language modeling problem where the goal is to predict the next word $x _ { t }$ given previously seen context words $x _ { 0 } , \\ldots , x _ { t - 1 }$ . We represent each input word $x$ by its $D$ -dimensional embedding vector $\\mathbf { x } \\in \\mathbb { R } ^ { D }$ . ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
713,
|
| 155 |
+
825,
|
| 156 |
+
755
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Our base model is an LSTM that computes a hidden state at timestep $t$ as follows: ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
762,
|
| 166 |
+
710,
|
| 167 |
+
776
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "equation",
|
| 173 |
+
"img_path": "images/58ee6ca8fa2685034bdeba9e151a9927689f5456f22a812b166bd70c950acbce.jpg",
|
| 174 |
+
"text": "$$\n\\begin{array} { r l r l } & { \\mathbf i _ { t } = \\sigma \\big ( \\mathbf W _ { i , x } \\mathbf x _ { t } + \\mathbf W _ { i , h } \\mathbf h _ { t - 1 } + \\mathbf b _ { i } \\big ) \\quad } & & { \\mathbf f _ { t } = \\sigma \\big ( \\mathbf W _ { f , x } \\mathbf x _ { t } + \\mathbf W _ { f , h } \\mathbf h _ { t - 1 } + \\mathbf b _ { f } \\big ) } \\\\ & { \\mathbf o _ { t } = \\sigma \\big ( \\mathbf W _ { o , x } \\mathbf x _ { t } + \\mathbf W _ { o , h } \\mathbf h _ { t - 1 } + \\mathbf b _ { o } \\big ) \\quad } & & { \\mathbf g _ { t } = \\mathrm { t a n h } \\big ( \\mathbf W _ { g , x } \\mathbf x _ { t } + \\mathbf W _ { g , h } \\mathbf h _ { t - 1 } + \\mathbf b _ { g } \\big ) } \\\\ & { \\mathbf c _ { t } = \\mathbf f _ { t } \\odot \\mathbf c _ { t - 1 } + \\mathbf i _ { t } \\odot \\mathbf g _ { t } \\quad } & & { \\mathbf h _ { t } = \\mathbf o _ { t } \\odot \\mathrm { t a n h } \\big ( \\mathbf c _ { t } \\big ) } \\end{array}\n$$",
|
| 175 |
+
"text_format": "latex",
|
| 176 |
+
"bbox": [
|
| 177 |
+
218,
|
| 178 |
+
776,
|
| 179 |
+
779,
|
| 180 |
+
833
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "Sequential memory. An LSTM has a sequential memory cell c to store and retrieve information that is regulated by the input, output, and forget gates. In order for long-term contextual information to be used in the future, it has to pass through these gates for multiple timesteps. ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
173,
|
| 189 |
+
838,
|
| 190 |
+
825,
|
| 191 |
+
881
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Random access memory. One common approach to retrieve information from the distant past more reliably is to augment the model with a random access memory block via an attention based ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
173,
|
| 200 |
+
895,
|
| 201 |
+
823,
|
| 202 |
+
924
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "image",
|
| 208 |
+
"img_path": "images/8f898c37d3bb5705ab491d7152de39c1031529481009bfc5be9228436d0ba168.jpg",
|
| 209 |
+
"image_caption": [
|
| 210 |
+
"Figure 1: Multipop Adaptive Computation Stack Recurrent Neural Network. "
|
| 211 |
+
],
|
| 212 |
+
"image_footnote": [],
|
| 213 |
+
"bbox": [
|
| 214 |
+
254,
|
| 215 |
+
97,
|
| 216 |
+
743,
|
| 217 |
+
252
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "method. In this model, we consider the previous $K$ states as the memory block, and construct a memory vector $\\mathbf { m } _ { t }$ by a weighted combination of these states: ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
168,
|
| 226 |
+
305,
|
| 227 |
+
825,
|
| 228 |
+
334
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/764bea1452fb85a1fee66d831bd40a5b5e98c685daf87f77ba609d8bfa118558.jpg",
|
| 235 |
+
"text": "$$\n\\mathbf { m } _ { t } = \\sum _ { i = t - K } ^ { t - 1 } a _ { i } \\mathbf { h } _ { i } , { \\mathrm { w h e r e ~ } } a _ { i } \\propto \\exp ( \\mathbf { w } _ { m , i } \\mathbf { h } _ { i } + \\mathbf { w } _ { m , h } \\mathbf { h } _ { t } )\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
313,
|
| 239 |
+
339,
|
| 240 |
+
681,
|
| 241 |
+
385
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Such method can be improved further by partitioning $\\mathbf { h }$ into a key, value, and predict subvectors (Daniluk et al., 2017). ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
390,
|
| 251 |
+
823,
|
| 252 |
+
421
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Given the LSTM hidden state $\\mathbf { h } _ { t }$ and the memory state $\\mathbf { m } _ { t }$ , we combine them using a simple function: ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
426,
|
| 262 |
+
823,
|
| 263 |
+
441
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "equation",
|
| 269 |
+
"img_path": "images/048affadf22bd83c70ecf8b23fe2e6d3a0b08c1e883811dc19eac7be5ce9811b.jpg",
|
| 270 |
+
"text": "$$\n\\tilde { \\mathbf { h } } _ { t } = \\mathbf { W } _ { h , h } \\mathbf { h } _ { t } + \\mathbf { W } _ { h , m } \\mathbf { m } _ { t }\n$$",
|
| 271 |
+
"text_format": "latex",
|
| 272 |
+
"bbox": [
|
| 273 |
+
406,
|
| 274 |
+
448,
|
| 275 |
+
589,
|
| 276 |
+
468
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "to get the final representation $\\tilde { \\mathbf { h } } _ { t }$ . We compute the probability of predicting the next word as $p ( x _ { t } \\mid \\pmb { x } _ { < t } ) \\propto \\exp ( \\mathbf { x } _ { t } ^ { \\top } \\tilde { \\mathbf { h } } _ { t } + b _ { y , x _ { t } } )$ , where we follow Inan et al. (2017) and reuse the word embedding matrix $\\mathbf { X }$ as the softmax parameters. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
173,
|
| 285 |
+
477,
|
| 286 |
+
826,
|
| 287 |
+
522
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Stack memory. In this work, we propose to augment a recurrent LSTM language model with a stack memory M that has three basic operations: ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
173,
|
| 296 |
+
537,
|
| 297 |
+
823,
|
| 298 |
+
566
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "• PUSH: Push the current hidden state $\\mathbf { h } _ { t }$ onto the stack. \n• POP: Remove the top element of the stack. \n• STAY: Keep the stack unchanged. ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
215,
|
| 307 |
+
578,
|
| 308 |
+
589,
|
| 309 |
+
632
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "Figure 1 shows an illustration of our stack augmented RNN. We describe the stack memory in details in the followings. ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
169,
|
| 318 |
+
643,
|
| 319 |
+
823,
|
| 320 |
+
672
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "2.1 MULTIPOP ADAPTIVE COMPUTATION STACK ",
|
| 327 |
+
"text_level": 1,
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
689,
|
| 331 |
+
524,
|
| 332 |
+
704
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "Our stack is a multipop adaptive computation stack—it learns how many POP operations need to be performed before predicting an output. In previous work (Joulin & Mikolov, 2015; Grefenstette et al., 2015), at every timestep $t$ , the job of the memory (stack) controller is to decide whether (i) to push the current state (either $\\mathbf { h } _ { t }$ or $\\mathbf { x } _ { t }$ ) onto the stack, (ii) to pop the top element of the stack $\\mathbf { m } _ { 0 }$ , or (iii) to stay and keep the stack state unchanged. The stack of Joulin & Mikolov (2015) is primarily designed as a single computation stack that performs one of the available operations at every timestep. In order to capture long-term dependencies, the stack learns to carry the information across multiple timesteps by mainly relying on the LSTM hidden states for predictions in between and keeping the state of the stack the same (i.e., by choosing to stay), or by pushing and popping the same number of times in between these timesteps. While this promotes discoveries of hierarchical dependencies, the kind of hierarchical dependencies that it can discover is limited. A multipop stack, on the other hand, has greater flexibility since there are more ways to manipulate its state at each timestep. The stack of Grefenstette et al. (2015) implicitly allows multiple pop operations in a single timestep by setting the pop weights to be greater than one. However, the controller makes this decision based only on the element at the top of the stack (along with the input and the current hidden state), making it less plausible to know whether more than one pop operations are needed since it does not look at other elements of the stack. Our formulation of the multipop operations is more intuitive and takes inspirations from adaptive computation time (Graves, 2017). ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
173,
|
| 341 |
+
715,
|
| 342 |
+
826,
|
| 343 |
+
924
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "",
|
| 350 |
+
"bbox": [
|
| 351 |
+
174,
|
| 352 |
+
103,
|
| 353 |
+
823,
|
| 354 |
+
146
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "Concretely, consider a stack memory with $K$ elements. In all our experiments, we limit the size of the stack to $K = 1 0$ for computational considerations. If the stack requires more than $K$ elements, the bottom element of the stack is removed to make space for the new element, which is added on the top of the stack. In a single computation stack, a feedforward policy network is used to compute the probability of choosing an action $a \\in \\{ \\mathrm { S T A Y , P U S H , P O P } \\}$ . ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
152,
|
| 364 |
+
825,
|
| 365 |
+
223
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "In our stack, we also use a feedforward policy network, but the number of possible POPs is $k \\in$ $\\{ 0 , 1 , \\ldots , K \\}$ . Denote the current top two elements of the stack after performing $k$ pops by $\\mathbf { m } _ { k , 0 }$ $\\mathbf { m } _ { k , 1 }$ , and the state of the stack after $k$ pops by $\\operatorname { S T A Y } _ { k }$ (i.e., do $k$ pops and stay) or $\\mathrm { P U S H } _ { k }$ (i.e., do $k$ pops and push the current hidden state $\\mathbf { h } _ { t }$ ). We compute the probability of choosing an action recursively: ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
176,
|
| 374 |
+
229,
|
| 375 |
+
823,
|
| 376 |
+
300
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "equation",
|
| 382 |
+
"img_path": "images/d0a6b916ba4b26210efb0aefaf7a7de572ead50e17c5f9dfc1d5c3146396a604.jpg",
|
| 383 |
+
"text": "$$\n\\begin{array} { r l } & { p ( { \\mathrm { S T A Y } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { M } ) = p ( { \\mathrm { P O P } } _ { k - 1 } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k - 1 , 0 } , \\mathbf { m } _ { k - 1 , 1 } ) \\times p ( { \\mathrm { S T A Y } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k , 0 } , \\mathbf { m } _ { k , 1 } ) } \\\\ & { p ( { \\mathrm { P U S H } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { M } ) = p ( { \\mathrm { P O P } } _ { k - 1 } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k - 1 , 0 } , \\mathbf { m } _ { k - 1 , 1 } ) \\times p ( { \\mathrm { P U S H } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k , 0 } , \\mathbf { m } _ { k , 1 } ) } \\\\ & { p ( { \\mathrm { P O P } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { M } ) = p ( { \\mathrm { P O P } } _ { k - 1 } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k - 1 , 0 } , \\mathbf { m } _ { k - 1 , 1 } ) \\times p ( { \\mathrm { P O P } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k , 0 } , \\mathbf { m } _ { k , 1 } ) . } \\end{array}\n$$",
|
| 384 |
+
"text_format": "latex",
|
| 385 |
+
"bbox": [
|
| 386 |
+
217,
|
| 387 |
+
304,
|
| 388 |
+
779,
|
| 389 |
+
359
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "As a base case, we have $p ( \\mathrm { P O P } _ { - 1 } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { k - 1 , 0 } , \\mathbf { m } _ { k - 1 , 1 } ) = 1$ . To ensure that the probability sums to one, we set $p \\big ( \\mathrm { P O P } _ { K + 1 } \\mid \\mathbf { x } _ { t } , \\mathbf { m } _ { K , 0 } , \\mathbf { m } _ { K , 1 } \\big ) = 0$ . ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
363,
|
| 399 |
+
825,
|
| 400 |
+
392
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "The final stack state is then computed as: ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
174,
|
| 409 |
+
398,
|
| 410 |
+
442,
|
| 411 |
+
412
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/96ae7df6d373af50f4f2cbe3d74fd5e3448411dfa7d987a446dded7e02b51d36.jpg",
|
| 418 |
+
"text": "$$\n\\mathbf { M } = \\sum _ { k = 0 } ^ { K } p ( { \\operatorname { S T A Y } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { M } ) \\mathbf { M } _ { \\operatorname { S T A Y } _ { k } } + p ( { \\operatorname { P U S H } } _ { k } \\mid \\mathbf { x } _ { t } , \\mathbf { M } ) \\mathbf { M } _ { \\operatorname { P U S H } _ { k } } ,\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
281,
|
| 422 |
+
417,
|
| 423 |
+
715,
|
| 424 |
+
462
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "where $\\mathbf { M } _ { * _ { k } }$ is the stack state after performing $k$ POP and PUSH or STAY. Denote the top of the final stack at timestep $t$ as $\\mathbf { m } _ { t }$ . The final representation is ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
173,
|
| 433 |
+
467,
|
| 434 |
+
823,
|
| 435 |
+
496
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "equation",
|
| 441 |
+
"img_path": "images/37a5896496d46bf4bceb7807cdd8f6452d3f97a786cc7047b9bca267ee8b98e9.jpg",
|
| 442 |
+
"text": "$$\n\\tilde { \\mathbf { h } } _ { t } = \\mathbf { W } _ { h , h } \\mathbf { h } _ { t } + \\mathbf { W } _ { h , m } \\mathbf { m } _ { t } .\n$$",
|
| 443 |
+
"text_format": "latex",
|
| 444 |
+
"bbox": [
|
| 445 |
+
405,
|
| 446 |
+
501,
|
| 447 |
+
591,
|
| 448 |
+
521
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "We propose to treat this stack as a fully differentiable continuous stack. Alternatively, our stack can also be treated as a discrete stack and trained with reinforcement learning (e.g., with REINFORCE; Williams, 1992). In this case, instead of summing over all possible stack states, we sample according to the probabilities. However, such methods can have slow convergence due to high variance. We include comparisons to discrete and continuous single computation stacks in our experiments (§3). ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
173,
|
| 457 |
+
532,
|
| 458 |
+
825,
|
| 459 |
+
604
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Adaptive and Variable Computation Networks Previous work on adaptive computation time (Graves, 2017) consider the number of computations as “thinking time”, where they show that their models use more computation time for more difficult predictions. In our work, the number of computations is related to how further back we need to look back when making a prediction at a given timestep. Note that when we decide to push, we push the current hidden state $\\mathbf { h } _ { t }$ onto the stack. Since this operation is performed before making a prediction at every timestep, it is possible to use the stack to increase the number of parameters for some predictions (i.e., by pushing $\\mathbf { h } _ { t }$ and immediately use it to compute $\\tilde { \\mathbf { h } } _ { t } = \\mathbf { W } _ { h , h } \\mathbf { h } _ { t } + \\mathbf { W } _ { h , m } \\mathbf { m } _ { t }$ , because immediately after a push $\\mathbf { m } _ { t } = \\mathbf { h } _ { t }$ ). As a result, our stack is also related to variable computation recurrent networks Jernite et al. (2017) that decide the number of dimensions to be used at each timestep. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
173,
|
| 468 |
+
617,
|
| 469 |
+
825,
|
| 470 |
+
760
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "3 EXPERIMENTS ",
|
| 477 |
+
"text_level": 1,
|
| 478 |
+
"bbox": [
|
| 479 |
+
176,
|
| 480 |
+
780,
|
| 481 |
+
326,
|
| 482 |
+
796
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "3.1 SETUP ",
|
| 489 |
+
"text_level": 1,
|
| 490 |
+
"bbox": [
|
| 491 |
+
174,
|
| 492 |
+
810,
|
| 493 |
+
261,
|
| 494 |
+
825
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 3
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "We compare the following methods in our experiments: ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
174,
|
| 503 |
+
837,
|
| 504 |
+
537,
|
| 505 |
+
852
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 3
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "• Sequential memory: 650-dimension and 920-dimension vanilla LSTMs (650 or 920 for both the word embedding and the LSTM hidden size). \n• Random access memory: a 650-dimension attention-based LSTM with attention size $K =$ $\\{ 1 , 3 , 5 , 1 0 , 1 5 \\}$ . ",
|
| 512 |
+
"bbox": [
|
| 513 |
+
209,
|
| 514 |
+
862,
|
| 515 |
+
825,
|
| 516 |
+
924
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 3
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "• Stack memory: a single computation discrete or continuous stack, or a multipop adaptive computation continuous stack on top of a 650-dimension LSTM. ",
|
| 523 |
+
"bbox": [
|
| 524 |
+
209,
|
| 525 |
+
103,
|
| 526 |
+
823,
|
| 527 |
+
132
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 4
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "text",
|
| 533 |
+
"text": "Following Inan et al. (2017), we tie word embedding and word classifier layers and apply dropout to these layers with probability 0.6 (value chosen based on preliminary experiment results). We also use recurrent dropout (Semeniuta et al., 2016) and set it to 0.1. We perform non-episodic training with batch size 32 using RMSprop (Hinton, 2012) as our optimization method. We tune the RMSprop learning rate and $\\ell _ { 2 }$ regularization parameter for all models on a development set by random search from [0.004, 0.009] and [0.0001, 0.0005] respectively, and use perplexity on the development set to choose the best model. ",
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
142,
|
| 537 |
+
825,
|
| 538 |
+
239
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "text",
|
| 544 |
+
"text": "3.2 PERPLEXITY ",
|
| 545 |
+
"text_level": 1,
|
| 546 |
+
"bbox": [
|
| 547 |
+
174,
|
| 548 |
+
256,
|
| 549 |
+
302,
|
| 550 |
+
270
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "We use standard language modeling datasets, the Penn TreeBank (PTB) and Wikitext-2 (Wik-2) corpora to evaluate perplexity. Our main results are summarized in Table 1, where we also show comparisons with previous work on these datasets. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
281,
|
| 560 |
+
825,
|
| 561 |
+
323
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "Our basic LSTM model is comparable to some of the best LSTM models. The results show that increasing the sequential memory capacity by increasing the hidden size improves performance. However, the improvement is not as significant as adding random access or stack memory. The best attention model is the one with $K = 1 0$ and $K = 1 5$ on PTB and Wik-2 respectively, highlighting the necessity to tune to get the optimal window size. Our results generally agree with Daniluk et al. (2017) that show that increasing the attention size generally improves performance up to a certain threshold. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
330,
|
| 571 |
+
825,
|
| 572 |
+
428
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "While both the discrete and continuous single computation stack models perform reasonably well, the discrete model underperforms the continuous model on Wik-2. Recall that we use REINFORCE to learn the optimal discrete stack operations. We leave it to future work to investigate whether better techniques can be used to improve the performance of the discrete stack. The best model on both datasets is consistently the multipop stack. ",
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
435,
|
| 582 |
+
825,
|
| 583 |
+
505
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "Overall perplexity on these datasets is strongly dominated by words that require little to no long term dependencies, making it difficult to assess when memory helps. In the next section, we look into a specifically designed linguistic task to get a better understanding of these memory models. ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
512,
|
| 593 |
+
825,
|
| 594 |
+
554
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 4
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "3.3 SYNTACTIC DEPENDENCIES ",
|
| 601 |
+
"text_level": 1,
|
| 602 |
+
"bbox": [
|
| 603 |
+
176,
|
| 604 |
+
570,
|
| 605 |
+
406,
|
| 606 |
+
584
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "We evaluate these memory models for learning syntax-sensitive dependencies on the number prediction dataset from Linzen et al. (2016). In this dataset, the model is given a sentence up to—but not including—its verb, and the goal is to predict the number of the following verb (singular or plural). For example, given a sentence prefix with different numbers of intervening nouns: ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
176,
|
| 615 |
+
595,
|
| 616 |
+
826,
|
| 617 |
+
651
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "• this robot {is, are} \n• the users he mentioned $\\left\\{ i s , a r e \\right\\}$ \n• many systems , in addition to VBG a page of free text for each knowledge element , also {permit, permits} ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
212,
|
| 626 |
+
661,
|
| 627 |
+
823,
|
| 628 |
+
755
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "the goal is to predict the correct verb form out of the possible answers in the brackets. In total, there are approximately 1.4 million test examples in this dataset with varying degrees of difficulty. One proxy to assess the difficulty of a test example is through the number of attractors (underlined)— which are defined as intervening nouns of the opposite singular/plural form to the subject. Each of the example above has zero, one, and four attractors, respectively. Naturally, examples with fewer numbers of attractors between the head of the syntactic subject and the predicted verb are easier than those with more. We follow the experimental setup in Linzen et al. (2016) and only use test examples where all the attractors are of contrasting form to the main subject (i.e., all intervening nouns between the subject and the verb must be plural if the subject is singular, and vice versa). ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
762,
|
| 638 |
+
825,
|
| 639 |
+
888
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "One way to do this task is to train a binary classifier that takes the context and predicts an answer. We approach this task from a language modeling perspective, where we simply train a language model and take the word with the higher probability between the two possible answers as the prediction. Success on this task requires a language model that understands syntactic—and in some cases long term—dependencies in natural language. For a purely sequential memory model to do well on this task, it has to be able to carry dependencies over multiple timesteps and attractors. On the other hand, our memory augmented recurrent models need to use the random access or stack memory component in conjunction with the sequential memory of their LSTM core to capture these dependencies. ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
174,
|
| 648 |
+
895,
|
| 649 |
+
821,
|
| 650 |
+
924
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 4
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "table",
|
| 656 |
+
"img_path": "images/e9443e1609da262cce9b4827fa66e9d451fde3f7a12750f60487780b714b2bcf.jpg",
|
| 657 |
+
"table_caption": [
|
| 658 |
+
"Table 1: Perplexity on PTB and Wikitext-2 datasets. The two numbers $( { } ^ { * } { \\bf M } / { } ^ { * } { \\bf M } )$ in the # of params. column for models that we implemented denote the number of parameters for PTB and Wik-2 respectively. "
|
| 659 |
+
],
|
| 660 |
+
"table_footnote": [],
|
| 661 |
+
"table_body": "<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=2 colspan=1>LSTMhidden size</td><td rowspan=2 colspan=1>#ofparams.</td><td rowspan=1 colspan=2>PTB</td><td rowspan=1 colspan=2>Wik-2</td></tr><tr><td rowspan=1 colspan=1>Dev</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Dev</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=9 colspan=1>Var LSTM(Gal & Ghahramani, 2016)Var LSTM+REAL (Inan et al.,2017)Pointer LSTM (Merity et al., 2017b)Neural Cache (Grave et al., 2017)Neural Cache (Grave et al., 2017)NAS (Zoph & Le,2017)Optimized LSTM (Melis et al., 2017)AWD LSTM (Merity et al., 2017a)AWD LSTM + Cache (Merity et al., 2017a)</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>20M</td><td rowspan=1 colspan=1>81.9</td><td rowspan=1 colspan=1>79.7</td><td rowspan=1 colspan=1>101.7</td><td rowspan=1 colspan=1>96.3</td></tr><tr><td rowspan=1 colspan=1>1500</td><td rowspan=1 colspan=1>51M</td><td rowspan=1 colspan=1>71.1</td><td rowspan=1 colspan=1>68.5</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=7 colspan=1>1=1</td><td rowspan=1 colspan=1>21M</td><td rowspan=1 colspan=1>72.4</td><td rowspan=1 colspan=1>70.9</td><td rowspan=1 colspan=1>84.8</td><td rowspan=4 colspan=1>80.881.668.91</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>72.1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=1>162.4</td><td rowspan=2 colspan=1>==</td></tr><tr><td rowspan=1 colspan=1>54M</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>60.9</td><td rowspan=1 colspan=1>58.3</td><td rowspan=1 colspan=1>69.1</td><td rowspan=1 colspan=1>65.9</td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>60.0</td><td rowspan=1 colspan=1>57.3</td><td rowspan=1 colspan=1>68.6</td><td rowspan=1 colspan=1>65.8</td></tr><tr><td rowspan=1 colspan=1>24M</td><td rowspan=1 colspan=1>53.9</td><td rowspan=1 colspan=1>52.8</td><td rowspan=1 colspan=1>53.8</td><td rowspan=1 colspan=1>52.0</td></tr><tr><td rowspan=2 colspan=1>LSTMLSTM</td><td rowspan=2 colspan=1>650920</td><td rowspan=2 colspan=1>10M/25M16M/40M</td><td rowspan=2 colspan=1>69.267.8</td><td rowspan=1 colspan=1>67.2</td><td rowspan=1 colspan=1>83.9</td><td rowspan=1 colspan=1>80.8</td></tr><tr><td rowspan=1 colspan=1>65.4</td><td rowspan=1 colspan=1>79.8</td><td rowspan=1 colspan=1>77.4</td></tr><tr><td rowspan=1 colspan=1>Attention-1Attention-3Attention-5Attention-10Attention-15</td><td rowspan=1 colspan=1>650</td><td rowspan=1 colspan=1>12M/28M</td><td rowspan=1 colspan=1>68.667.967.567.266.6</td><td rowspan=1 colspan=1>66.165.465.264.763.6</td><td rowspan=1 colspan=1>80.478.778.277.677.7</td><td rowspan=1 colspan=1>76.374.674.673.774.3</td></tr><tr><td rowspan=1 colspan=1>Single Comp.Discrete StackSingle Comp. Continuous StackMultipop Adaptive Continuous Stack</td><td rowspan=1 colspan=1>650</td><td rowspan=1 colspan=1>11M/26M</td><td rowspan=1 colspan=1>66.165.865.9</td><td rowspan=1 colspan=1>63.563.863.5</td><td rowspan=1 colspan=1>78.176.775.9</td><td rowspan=1 colspan=1>74.773.072.4</td></tr></table>",
|
| 662 |
+
"bbox": [
|
| 663 |
+
150,
|
| 664 |
+
103,
|
| 665 |
+
843,
|
| 666 |
+
459
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
551,
|
| 676 |
+
825,
|
| 677 |
+
636
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 5
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Linzen et al. (2016) concluded that a vanilla LSTM trained only with a language modeling signal is insufficient for capturing such dependencies. They reported an overall accuracy of 93.22 with a language modeling objective (using a 50 dimension LSTM), and 99.17 with a supervised binary classifier objective. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
642,
|
| 687 |
+
825,
|
| 688 |
+
698
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "We train the best vanilla LSTM (920 dimensions), the best attention-based LSTM ( $K = 1 0$ , since the Linzen dataset is derived from Wikipedia articles similar to Wik-2), and the best stack LSTM (multipop stack) on the provided training set that contains sentences of similar structures to the test set. There are approximately 3 million tokens on the training set $( \\sim 1 4 0 , 0 0 0$ sentences). We tune the learning rate and $\\ell _ { 2 }$ hyperparameter on the development set using perplexity as the tuning criterion. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
705,
|
| 698 |
+
825,
|
| 699 |
+
775
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 5
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Our results are shown in Table 2. We report accuracies per number of attractors, as well as the overall accuracy and perplexity. Contrary to the Linzen et al. (2016) results, all of our language models perform surprisingly well on this dataset. Our vanilla LSTM model outperforms Linzen’s best LSTM by a significant margin (99.11 vs. 93.22). One possible reason is that we are able to train a much bigger LSTM than Linzen—almost 20 times bigger in hidden size. The results clearly demonstrate the improvements from adding random access and stack memory. The performance of the attention model slowly degrades to the performance of a vanilla LSTM model as the number of attractors increases, since it becomes more difficult for a random access memory mechanism to attend to the syntactic head in the presence of multiple attractors. For example, when there are five attractors, our attention model performs just as well as our vanilla LSTM model. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
781,
|
| 709 |
+
825,
|
| 710 |
+
921
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 5
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "table",
|
| 716 |
+
"img_path": "images/7358b5dfe644ab561f303000e5c6d85d3fd86938700d2a3c06d5982e3270622f.jpg",
|
| 717 |
+
"table_caption": [],
|
| 718 |
+
"table_footnote": [
|
| 719 |
+
"Table 2: Accuracies on the Linzen number prediction dataset. 0, 1, 2, 3, 4, and 5 refer to the number of attractors between the subject and the predicted verb (see text for details). "
|
| 720 |
+
],
|
| 721 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"6\">Number of attractors</td><td rowspan=\"2\">Acc.</td><td rowspan=\"2\">Ppx.</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td>Best LSTM</td><td>99.3</td><td>97.2</td><td>95.0</td><td>92.2</td><td>90.0</td><td>84.2</td><td>99.11</td><td>23.8</td></tr><tr><td>Best attention</td><td>99.4</td><td>97.7</td><td>95.9</td><td>92.9</td><td>90.7</td><td>84.2</td><td>99.18</td><td>22.7</td></tr><tr><td>Best stack</td><td>99.4</td><td>97.9</td><td>96.5</td><td>93.5</td><td>91.6</td><td>88.0</td><td>99.23</td><td>22.2</td></tr></table>",
|
| 722 |
+
"bbox": [
|
| 723 |
+
241,
|
| 724 |
+
101,
|
| 725 |
+
751,
|
| 726 |
+
188
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 6
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "table",
|
| 732 |
+
"img_path": "images/09bb10144afcd9ce7219c18e9aec48eec9e90f275073dbe41936b71cdb740547.jpg",
|
| 733 |
+
"table_caption": [
|
| 734 |
+
"Table 3: Examples of mistakes made by competing models on the Linzen number prediction dataset. $\\pmb { \\chi }$ indicates an incorrect prediction, whereas $\\checkmark$ indicates a correct prediction. In general, we observe that the mistakes made by both the LSTM and attention models that are correctly predicted by the stack model (row 2) typically involve longer sentences regardless of the number of attractors. "
|
| 735 |
+
],
|
| 736 |
+
"table_footnote": [],
|
| 737 |
+
"table_body": "<table><tr><td colspan=\"3\">Model</td><td rowspan=\"2\">Example</td></tr><tr><td>LSTM</td><td>attention</td><td>stack</td></tr><tr><td>X</td><td>X</td><td>X</td><td>the NN notes and front cover title {is,are}</td></tr><tr><td>X</td><td>X</td><td>√</td><td>other NNS that in the recent past were part of the JJ parish {is,are}</td></tr><tr><td>X</td><td>√</td><td>X</td><td>the class ofall VBN sets with JJ functions as NNS {form,forms}</td></tr><tr><td>√</td><td>X</td><td>X</td><td>various brands of JJ compound or NN NN {helps,helpl</td></tr><tr><td>X</td><td>√</td><td>√</td><td>score based on penalties forfallen bars,NNS,{falls,fall}</td></tr><tr><td>√</td><td>X</td><td></td><td>the loss of basic needs providers VBG from VBN countries {has,havel</td></tr><tr><td>√</td><td>√</td><td>X</td><td>the construction of the JJwalls,floors,and VBGwalls {is,are}</td></tr></table>",
|
| 738 |
+
"bbox": [
|
| 739 |
+
165,
|
| 740 |
+
234,
|
| 741 |
+
834,
|
| 742 |
+
388
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "The stack model performs best on this dataset, across all numbers of attractors (except zero, tie with attention), Notably, the advantage of the stack model becomes more pronounced as the number of attractors increases. In $\\ S 3 . 4$ , we analyze how the model uses its stack. We take this collection of results as evidence that a hierarchical bias introduced by a stack-like data structure helps the language model to learn better syntactic natural language dependencies. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
488,
|
| 752 |
+
550,
|
| 753 |
+
613
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "We also investigate whether mistakes are made on the same test examples. Figure 2 shows a Venn diagram of mistakes made by each of the models. Most mistakes (6115) are the same across all three models. It is clear that adding a stack or an attention mechanism improves a vanilla LSTM model, as shown by the significant decrease in the number of mistakes that are made only by LSTM (3942) to 1938 and 2534 respectively. Nonetheless, since there are still a large number of mistakes that are complementary, an interesting future direction is to combine all three kinds of memory models efficiently in a single language model. Table 3 shows examples of mistakes made by each of these models. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
621,
|
| 763 |
+
549,
|
| 764 |
+
676
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "image",
|
| 770 |
+
"img_path": "images/46f0957461fd509a24ea960e566c7874cc11226280178219366d32a6ac07ee39.jpg",
|
| 771 |
+
"image_caption": [
|
| 772 |
+
"Figure 2: A Venn diagram of mistakes made on the Linzen dataset. "
|
| 773 |
+
],
|
| 774 |
+
"image_footnote": [],
|
| 775 |
+
"bbox": [
|
| 776 |
+
570,
|
| 777 |
+
489,
|
| 778 |
+
816,
|
| 779 |
+
619
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 6
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
676,
|
| 789 |
+
826,
|
| 790 |
+
746
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 6
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "3.4 ANALYSIS ",
|
| 797 |
+
"text_level": 1,
|
| 798 |
+
"bbox": [
|
| 799 |
+
174,
|
| 800 |
+
770,
|
| 801 |
+
285,
|
| 802 |
+
784
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 6
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "In this section, we analyze how our stack model uses its memory to improve predictions. Recall that our adaptive continuous stack has 22 possible stack states at each timestep— $\\mathrm { { S T A Y _ { 0 } } }$ , $\\mathrm { P U S H _ { \\mathrm { 0 } } }$ , $\\mathrm { S T A Y _ { 1 } }$ , $\\mathrm { P U S H _ { 1 } , \\ldots , S T A Y _ { 1 0 } }$ , $\\mathrm { P U S H _ { 1 0 } }$ —where the subscript indicates the number of pops that are performed, limited to $K = 1 0$ in our experiments. In Figure 3, we show the number of times each stack state has the highest probability on the Wik-2 test set (left figure, red denotes STAY and blue denotes PUSH) and the maximum action probability (right figure). The LSTM hidden states are not pushed onto the stack most of the times. We inspect what is pushed and find that the model uses the stack to mostly store hidden states for difficult predictions (more details below). While the overall distribution of the maximum action probability is not very peaky since the stack is not used most of the times, we also observe that the action probability is relatively peaky when the stack is activated. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
799,
|
| 812 |
+
826,
|
| 813 |
+
924
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 6
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "image",
|
| 819 |
+
"img_path": "images/8de8028aa1b0101b2923084c9d384926dd4a433d64f8f60263369a5a35c478d2.jpg",
|
| 820 |
+
"image_caption": [],
|
| 821 |
+
"image_footnote": [],
|
| 822 |
+
"bbox": [
|
| 823 |
+
178,
|
| 824 |
+
99,
|
| 825 |
+
816,
|
| 826 |
+
238
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 7
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "image",
|
| 832 |
+
"img_path": "images/4edfd539dc9daa067c4c014d9f96ffc9939418f47f416a04273bbe2cc565fabe.jpg",
|
| 833 |
+
"image_caption": [
|
| 834 |
+
"Figure 3: Statistics of the stack actions on Wik-2 test dataset. The left plot shows the number of times (in log space) each stack state has the highest probability. The $x$ -axis represents the number of pops, and the color represents the last action taken after POP (red represents STAY, blue represents PUSH). We can see that most words are not pushed onto the stack and that the model takes advantage of the flexibility of the stack to pop multiple times. The right plot shows the value of the maximum action probability for all timesteps. We observe that for most words the maximum action probabilities are not peaky (the distribution is roughly uniform across all stack states). They tend to be peaky only when the model wants to use the stack. ",
|
| 835 |
+
"Figure 4: An illustration of how the stack memory is written and read for a correct prediction. We follow Linzen et al. (2016) and convert some words (e.g., emigrating, impoverished) to their part of speech tags–given inside the brackets in the example above—to limit the vocabulary size. "
|
| 836 |
+
],
|
| 837 |
+
"image_footnote": [],
|
| 838 |
+
"bbox": [
|
| 839 |
+
176,
|
| 840 |
+
366,
|
| 841 |
+
820,
|
| 842 |
+
592
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 7
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "",
|
| 849 |
+
"bbox": [
|
| 850 |
+
173,
|
| 851 |
+
664,
|
| 852 |
+
823,
|
| 853 |
+
693
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "We next investigate how the stack improves accuracy on the Linzen dataset by looking into how it operates when making both a correct prediction and a wrong prediction. In Figure 4, we show a randomly selected test sentence the loss of basic needs providers VBG from VBN countries {has, have}. Similar to Figure 3, the red and blue bars represent STAY and PUSH, while the $x$ -axis denotes the number of POPs. The $y$ -axis, on the other hand, denotes the probability of each action. The green dots above each word shows the magnitude of the norm of the contribution of the memory vector $\\mathbf { W } _ { h , m } \\mathbf { m } _ { t }$ to the final hidden state $\\tilde { \\mathbf { h } } _ { t }$ (bigger dots represent higher magnitudes). Interestingly, the model seems to use and push onto the stack when the next word prediction has a high entropy. For example, after the word the, of, or from, the model decides to increase its capacity by pushing the current hidden state onto the stack and activates its memory component (as illustrated by bigger green dots). In $\\ S 2 . 1$ , we discuss connections of our stack model to adaptive computation time and variable computation RNN, which are designed to explicitly increase their capacity for difficult predictions. Our analysis shows that our stack model also exhibits this kind of behavior. For the Linzen dataset, we conjecture that the stack model is able to perform the best because it uses the stack as a controller to allow the sequential memory component from its base LSTM to carry longer term dependencies (e.g., tracking the subject of the sentence). ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
173,
|
| 862 |
+
699,
|
| 863 |
+
825,
|
| 864 |
+
924
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "For comparison, we also show how the stack operates when it makes an incorrect prediction in Figure 5. Here, the stack behaves similarly, being mostly active for higher entropy predictions, although the model was unable to predict the correct verb right after walls. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
103,
|
| 874 |
+
825,
|
| 875 |
+
146
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "image",
|
| 881 |
+
"img_path": "images/7baddf218e2ada04c49ac6de9edfa4c4b977e95bd0c02141e8c7443e5d6b909d.jpg",
|
| 882 |
+
"image_caption": [
|
| 883 |
+
"Figure 5: An illustration of how the stack memory is written and read for an incorrect prediction. "
|
| 884 |
+
],
|
| 885 |
+
"image_footnote": [],
|
| 886 |
+
"bbox": [
|
| 887 |
+
207,
|
| 888 |
+
161,
|
| 889 |
+
790,
|
| 890 |
+
502
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 8
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "4 CONCLUSION ",
|
| 897 |
+
"text_level": 1,
|
| 898 |
+
"bbox": [
|
| 899 |
+
176,
|
| 900 |
+
560,
|
| 901 |
+
318,
|
| 902 |
+
575
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 8
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "We proposed a generalization of the continuous stack model that allows a variable number of pop operations, and compared sequential, random access, and stack memory architectures for recurrent neural network language models. Our experiments on PTB and Wik-2 showed that adding the stack memory eliminates the need to tune window size in the random access attention model to achieve the best perplexity. We also evaluated these models on the Linzen syntactic dependencies dataset and demonstrated that the stack augmented model outperforms other methods in terms of both accuracy and perplexity, especially as the number of syntactic attractors increases. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
592,
|
| 912 |
+
825,
|
| 913 |
+
689
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 8
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 920 |
+
"text_level": 1,
|
| 921 |
+
"bbox": [
|
| 922 |
+
176,
|
| 923 |
+
708,
|
| 924 |
+
334,
|
| 925 |
+
720
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "The authors thank Edward Grefenstette for valuable feedback on an earlier draft of this paper, Tal Linzen for his assistance with the Linzen dataset, and the DeepMind language group for helpful discussions. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
176,
|
| 934 |
+
733,
|
| 935 |
+
825,
|
| 936 |
+
775
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "REFERENCES ",
|
| 943 |
+
"text_level": 1,
|
| 944 |
+
"bbox": [
|
| 945 |
+
176,
|
| 946 |
+
796,
|
| 947 |
+
285,
|
| 948 |
+
810
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 8
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "Daniluk, Michal, Rocktaschel, Tim, Welbl, Johannes, and Riedel, Sebastian. Frustratingly short attention spans in neural language modeling. In Proc. of ICLR, 2017. \nGal, Yarin and Ghahramani, Zoubin. A theoretically grounded application of dropout in recurrent neural networks. In Proc. of NIPS, 2016. \nGrave, Edouard, Joulin, Armand, and Usunier, Nicolas. Improving neural language models with a continuous cache. In Proc. of ICLR, 2017. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
173,
|
| 957 |
+
819,
|
| 958 |
+
826,
|
| 959 |
+
924
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 8
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Graves, Alex. Adaptive computation time for recurrent neural networks. arXiv preprint, 2017. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
171,
|
| 968 |
+
103,
|
| 969 |
+
792,
|
| 970 |
+
119
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 9
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Grefenstette, Edward, Hermann, Karl Moritz, Suleyman, Mustafa, and Blunsom, Phil. Learning to transduce with unbounded memory. In Proc. of NIPS, 2015. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
171,
|
| 979 |
+
127,
|
| 980 |
+
825,
|
| 981 |
+
156
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 9
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "Hinton, Geoffrey. Neural networks for machine learning, 2012. Lecture 6.5. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
174,
|
| 990 |
+
165,
|
| 991 |
+
674,
|
| 992 |
+
181
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 9
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "Hochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. Neural Computation, 9(8): 1735–1780, 1997. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
173,
|
| 1001 |
+
189,
|
| 1002 |
+
825,
|
| 1003 |
+
218
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 9
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "Inan, Hakan, Khosravi, Khashayar, and Socher, Richard. Tying word vectors and word classifiers: A loss framework for language modeling. In Proc. of ICLR, 2017. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
171,
|
| 1012 |
+
226,
|
| 1013 |
+
825,
|
| 1014 |
+
256
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 9
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Jernite, Yacine, Grave, Edouard, Joulin, Armand, and Mikolov, Tomas. Variable computation in recurrent neural networks. In Proc. of ICLR, 2017. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
171,
|
| 1023 |
+
263,
|
| 1024 |
+
825,
|
| 1025 |
+
294
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 9
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "Joulin, Armand and Mikolov, Tomas. Inferring algorithmic patterns with stack-augmented recurrent nets. arXiv preprint, 2015. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
171,
|
| 1034 |
+
301,
|
| 1035 |
+
823,
|
| 1036 |
+
332
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 9
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Krause, Ben, Kahembwe, Emmanuel, Murray, Iain, and Renals, Steve. Dynamic evaluation of neural sequence models. arXiv preprint, 2017. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
171,
|
| 1045 |
+
339,
|
| 1046 |
+
825,
|
| 1047 |
+
369
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 9
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "Linzen, Tal, Dupoux, Emmanuel, and Goldberg, Yoav. Assessing the ability of lstms to learn syntaxsensitive dependencies. Transactions of the Association for Computational Linguistics, 4:521–535, 2016. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
176,
|
| 1056 |
+
377,
|
| 1057 |
+
823,
|
| 1058 |
+
420
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Melis, Gabor, Dyer, Chris, and Blusom, Phil. On the state of the art of evaluation in neural language models. arXiv preprint, 2017. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
171,
|
| 1067 |
+
429,
|
| 1068 |
+
825,
|
| 1069 |
+
458
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "Merity, Stephen, Keskar, Nitish Shirish, and Socher, Richard. Regularizing and optimizing lstm language models. arXiv preprint, 2017a. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
169,
|
| 1078 |
+
467,
|
| 1079 |
+
825,
|
| 1080 |
+
496
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Merity, Stephen, Xiong, Caiming, and an Richard Socher, James Bradbury. Pointer sentinel mixture models. In Proc. of ICLR, 2017b. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
171,
|
| 1089 |
+
503,
|
| 1090 |
+
825,
|
| 1091 |
+
534
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 9
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Semeniuta, Stanislau, Severyn, Aliaksei, and Barth, Erhardt. Recurrent dropout without memory loss. In Proc. of COLING, 2016. ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
171,
|
| 1100 |
+
541,
|
| 1101 |
+
825,
|
| 1102 |
+
571
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 9
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "Tran, Ke, Bisazza, Arianna, and Monz, Christof. Recurrent memory networks for language modeling. In Proc. of NAACL-HLT, 2016. ",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
173,
|
| 1111 |
+
579,
|
| 1112 |
+
825,
|
| 1113 |
+
609
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 9
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "Williams, Ronald J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8:229–256, 1992. ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
171,
|
| 1122 |
+
617,
|
| 1123 |
+
825,
|
| 1124 |
+
647
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 9
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "Zoph, Barret and Le, Quoc V. Neural architecture search with reinforcement learning. In Proc. of ICLR, 2017. ",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
171,
|
| 1133 |
+
655,
|
| 1134 |
+
825,
|
| 1135 |
+
685
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 9
|
| 1138 |
+
}
|
| 1139 |
+
]
|
parse/train/SkFqf0lAZ/SkFqf0lAZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkFqf0lAZ/SkFqf0lAZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/V5V1vGrI2z/V5V1vGrI2z.md
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Exploring Cross-Video and Cross-Modality Signals for Weakly-Supervised Audio-Visual Video Parsing
|
| 2 |
+
|
| 3 |
+
Yan-Bo Lin1,2 Hung-Yu Tseng3 Hsin-Ying Lee4 Yen-Yu Lin1 Ming-Hsuan Yang3,5,6
|
| 4 |
+
|
| 5 |
+
1National Yang Ming Chiao Tung University 2UNC Chapel Hill 3UC Merc 4Snap Research 5Google Research 6Yonsei University yblin@unc.edu htseng6@ucmerced.edu hlee5@snap.com lin@cs.nctu.edu.tw mhyang@ucmerced.edu
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
The audio-visual video parsing task aims to temporally parse a video into audio or visual event categories. However, it is labor-intensive to temporally annotate audio and visual events and thus hampers the learning of a parsing model. To this end, we propose to explore additional cross-video and cross-modality supervisory signals to facilitate weakly-supervised audio-visual video parsing. The proposed method exploits both the common and diverse event semantics across videos to identify audio or visual events. In addition, our method explores event co-occurrence across audio, visual, and audio-visual streams. We leverage the explored cross-modality co-occurrence to localize segments of target events while excluding irrelevant ones. The discovered supervisory signals across different videos and modalities can greatly facilitate the training with only video-level annotations. Quantitative and qualitative results demonstrate that the proposed method performs favorably against existing methods on weakly-supervised audio-visual video parsing.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Humans perceive multisensory signals via seeing, hearing, touching, etc., and obtain multimodal information while exploring the surrounding environments. Visual and audio signals, the most common modalities, motivate researchers to jointly comprehend audio-visual events (e.g., see people singing and hear their sounds) [1, 2, 3, 4, 5, 6, 7]. Events visible in images while hearable in audio are referred to as audio-visual events. However, learning-based models tend to recognize a particular audio-visual event by using the data from the dominant modality with richer information and overlook clues from either audio only or visual only events which still contribute to holistic video understanding. Therefore, the resultant models can generalize well on audio-visual events only instead of comprehensively understanding all kinds of video events. To address this issue, we target at audio-visual video parsing [4, 6] where predictions for audio, visual, and audio-visual events with temporal boundaries are all required but separately evaluated.
|
| 14 |
+
|
| 15 |
+
The time-consuming and labor-intensive annotation process poses a major challenge for the audiovisual video parsing task. To address this issue, Tian et al. [4] handle this task in a weakly-supervised manner given only video-level labels, which indicate events of presence without temporal boundaries and detailed modalities. They develop an audio-visual co-attention mechanism to assemble discriminative multimodal representations and use multiple instance learning to aggregate frame-level predictions into video-level ones. However, video-level labels alone cannot identify which modality events are from. Wu et al. [6] then propose to perform label refinement by swapping the audio and visual tracks of different videos to estimate and remove irrelevant event categories for each modality. They further adopt temporal contrastive learning to align audio and visual representations from the same frame. However, the contrastive learning is based on the assumption that audio and visual signals are synchronized, which may not hold in practical scenarios with complex events. Furthermore, these methods [4, 6] only consider audio and visual tracks of a single video without exploiting the relationship across categories and videos, which also provide rich shared semantics regarding event categories.
|
| 16 |
+
|
| 17 |
+
In this work, we propose to leverage audio and visual data across different videos to explore shared information of each category. For example, videos with singing events may have similar patterns whatever in an audio or a visual modality. By observing all videos in a training batch, we can not only explore the shared semantics among audio-visual data but also exclude unrelated events. In addition to the relationship across different videos, we exploit the dependency between event categories. For example, when people are singing, there is usually a music accompaniment. Therefore, we propose to treat audio, visual, and audio-visual streams separately and adopt an audio-visual class co-occurrence module that jointly explores the relationship of different categories among all streams. By measuring the similarity of event categories from audio, visual, and audio-visual events, the correlated events are more likely to be correctly determined as the presence or absence of event categories. Such a strategy can robustly learn the correlation of categories within/across modality and fully exploit video data. The proposed strategy can be applied to existing methods on video parsing.
|
| 18 |
+
|
| 19 |
+
We evaluate the proposed method on the LLP [4] dataset. Videos are parsed into audio, visual, and audio-visual events under both segment and event levels, and evaluated with F-scores metrics. Both qualitative and quantitative results demonstrate the effectiveness of the proposed method on the audio-visual video parsing task. The main contributions of this work are summarized as follows:
|
| 20 |
+
|
| 21 |
+
• We leverage audio and visual data across different videos and tracks, which can learn common semantics of the same events and discern unrelated clues. • We develop an audio-visual event co-occurrence module that jointly considers the relationship of categories in audio, visual, and audio-visual modalities, which can prevent models from differentiating the representations of the related events. • Qualitative and quantitative experimental results on the benchmark dataset demonstrate that the proposed method performs favorably against the state-of-the-arts in various settings.
|
| 22 |
+
|
| 23 |
+
# 2 Related Work
|
| 24 |
+
|
| 25 |
+
Audio-Visual Representation Learning. Implicit correlation between audio and visual data from videos provides rich information for audio-visual representation learning. First, the audio-visual pairs from the same video clip [8, 9, 10, 11, 12, 13, 14, 15, 16, 17] are strongly correlated based on the assumption that audio and visual data from a video are synchronized and highly correlated. Moreover, features extracted from unpaired video clips tend to be more diverse than those from the same clips. Second, by exploring audio-visual temporal synchronization [18, 19], temporal information can be served as a training guidance. Given a video sequence, existing methods [18, 19] distinguish audio and visual features from different frames while correlating features from the same frames. Such an idea enhances robust audio-visual representation learning that is essential to several tasks such as audio-visual event localization/parsing/recognition [1, 2, 3, 4, 5, 6, 7, 20], sound separation [21, 22, 23, 24, 25, 26, 27, 28, 29, 30], audio spatialization [31, 32, 33, 34, 35, 36, 37, 38], and sound localization [39, 40, 41, 42, 43, 44]. Instead of random sampling sound and images, our method selects both related and irreverent videos to explore common semantics and discern dissimilar events.
|
| 26 |
+
|
| 27 |
+
Audio-Visual Video Event Localization and Parsing. Audio-visual video parsing aims to detect events in videos and identify audio, visual, and audio-visual events (e.g., seeing the event and hearing its sound) and activities. Videos can be parsed with event categories and boundaries in both audio and visual modalities. Early researches [5, 7, 2, 3] aim to jointly derive audiovisual information in each local segment of the input video for audio-visual event localization, which emphasizes to detect only audio-visual events. However, due to the inconsistent information observed from audio and visual signals, data from either modality with insufficient clues may degrade the performance of prediction. Therefore, the work [7] focuses on audio/visual data with relevant categorical events to tackle this issue. Although methods of this category present favorable results, they are applicable to audio-visual event localization, which considers only synchronous audio-visual events or not. Recently, multi-modal multiple instance learning (MMIL) based methods with hybrid attention [4] carry out weakly-supervised audio-visual video parsing. These methods aggregate segment-level predictions into video-level ones, with which optimizing a model by using video-level or weak labels is enabled. Since video-level labels are typically insufficient to identify either audio or visual events, Wu et al. [6] generate pseudo labels for each modality by exchanging audio and visual tracks between unrelated videos. However, we notice that videos with replaced sounds or images may share some common semantics. Our method can exploit videos in a training batch to extract their common semantics for a categorical event and discern unrelated clues. Furthermore, we can leverage the relationship between event classes to find out related events (e.g., singing may accompany music).
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: Algorithmic overview. Our framework consists of a visual feature extractor, an audio feature extractor, a feature aggregation module, MMIL pooling, shared cross-modality semantics, and an cross-modality co-occurrence module. Given $n$ videos of $T$ seconds, the visual and audio feature extractors compute their visual and audio features. The feature aggregation module [4] conducts self- and cross-modality attention to aggregate segment-wise audio $\bar { \hat { \mathbf { f } ^ { a } } }$ and visual $\hat { \mathbf { f } ^ { v } }$ representations. We map segment-wise aggregated features to class-specific features by exploring cross-modality co-occurrence. By performing self- and cross-modality attention for class features, we identify within and cross modalities relationship between classes for event predictions. Note that $\otimes$ denotes matrix multiplication with the softmax operation performing on each row, and the green block only shows the example for segment-wise visual prediction at time $t$ . We also leverage the aggregated features of all $n$ videos to figure out common semantics regrading events by maximizing the similarities between related videos while minimizing those between unrelated videos with Eq. 8. The MMIL Pooling [4] is an attention-based pooling function that aggregates segment-wise results to produce video-level ones, which are optimized by the binary cross entropy loss described in Eq. 3 and Eq. 6.
|
| 31 |
+
|
| 32 |
+
# 3 Proposed Method
|
| 33 |
+
|
| 34 |
+
In this paper, we propose a novel framework for weakly-supervised audio-visual video parsing. In order to explore common semantics across videos and dependency across event categories, the proposed model leverages all audio and visual signals across videos in a training batch and the correlation between classes for each training instance. In Section 3.1, we first define the notations and settings considered in this paper and revisit the common backbone [4, 6] for weakly-supervised audio-visual video parsing, which consists of feature aggregation and multi-modal multiple instance learning (MMIL) pooling. Then in Section 3.2 and Section 3.3, we detail the modules we propose to capture dependency across different events and information across different videos, respectively.
|
| 35 |
+
|
| 36 |
+
# 3.1 Preliminaries
|
| 37 |
+
|
| 38 |
+
Problem Formulation and Notations. Given a video sequence $S$ with $T$ seconds long, we obtain $T$ non-overlapping audio and visual segments where each segment is one-second long. Models are aiming to predict the event labels for each segment, which may contain several or no events. At time $t$ , there are three targets for audio, visual, and audio-visual events: $\mathbf { y } _ { t } ^ { a } \in \mathbb { R } ^ { 1 \times C } , \mathbf { y } _ { t } ^ { v } \in \mathbb { R } ^ { 1 \times C }$ and $\mathbf { y } _ { t } ^ { a v } \in \mathbb { R } ^ { 1 \times C }$ are multi-class event label with $C$ event categories. $\mathbf { y } _ { t } ^ { a } , \mathbf { y } _ { t } ^ { v }$ , and ${ \bf y } _ { t } ^ { a v }$ denote audio, visual, and audio-visual event labels, respectively. We note that detailed annotations (e.g., $\mathbf { y } _ { t } ^ { a }$ , $\mathbf { y } _ { t } ^ { a }$ , and ${ \bf y } _ { t } ^ { a v }$ ) are not accessible during training and only available during evaluation. As for training, only video-level annotations are available during training. Video-level annotations only contain action event categories without indicating specific times slots or modalities (e.g., audio and visual event).
|
| 39 |
+
|
| 40 |
+
Revisit of Weakly-Supervised Audio-Visual Video Parsing. The previous method [4] presents promising results with feature aggregation based on transformers and multimodal multiple instance learning (MMIL) pooling. Given a video sequence $S$ of $T$ frames, we denote its audio and visual feature sets by ${ \bf F } ^ { a ^ { * } } = \{ { \bf f } _ { 1 } ^ { a ^ { * } } , . . . , { \bf f } _ { T } ^ { a } \} \in \mathbb { R } ^ { T \times d }$ and $\mathbf { F } ^ { v } = \{ \mathbf { f } _ { 1 } ^ { v } , . . . , \mathbf { f } _ { T } ^ { v } \} \in \mathbb { R } ^ { T \times d }$ , respectively, where $d$ is the feature dimension. The transformer encoder [45] is employed to aggregate both within-modality and cross-modality information using multi-head attention blocks:
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\begin{array} { l } { { \phi _ { s e l f } ( { \bf f } _ { t } ^ { a } , { \bf F } ^ { a } , { \bf F } ^ { a } ) = \mathrm { S o f t m a x } ( \frac { { \bf f } _ { t } ^ { a } { \bf F } ^ { a } ^ { \top } } { \sqrt { d } } ) { \bf F } ^ { a } , } } \\ { { \phi _ { c r o s s } ( { \bf f } _ { t } ^ { a } , { \bf F } ^ { v } , { \bf F } ^ { v } ) = \mathrm { S o f t m a x } ( \frac { { \bf f } _ { t } ^ { a } { \bf F } ^ { v } ^ { \top } } { \sqrt { d } } ) { \bf F } ^ { v } , } } \end{array}
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
where $\phi _ { s e l f } ( \cdot )$ and $\phi _ { c r o s s } ( \cdot )$ are self-attention and cross-modality attention functions respectively. They perform dot-product on features across time stamps by using non-shared MLPs. Then the jointly aggregated representations are described as follows:
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\begin{array} { r } { \hat { \mathbf { f } } _ { t } ^ { a } = \mathbf { f } _ { t } ^ { a } + \phi _ { s e l f } ( \mathbf { f } _ { t } ^ { a } , \mathbf { F } ^ { a } , \mathbf { F } ^ { a } ) + \phi _ { c r o s s } ( \mathbf { f } _ { t } ^ { a } , \mathbf { F } ^ { v } , \mathbf { F } ^ { v } ) , } \\ { \hat { \mathbf { f } } _ { t } ^ { v } = \mathbf { f } _ { t } ^ { v } + \phi _ { s e l f } ( \mathbf { f } _ { t } ^ { v } , \mathbf { F } ^ { v } , \mathbf { F } ^ { v } ) + \phi _ { c r o s s } ( \mathbf { f } _ { t } ^ { v } , \mathbf { F } ^ { a } , \mathbf { F } ^ { a } ) , } \end{array}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
With the aggregated audio and visual features $\hat { \mathbf { f } } _ { t } ^ { a }$ and $\hat { \mathbf { f } } _ { t } ^ { v }$ , we can obtain the frame-wise event prediction $\hat { \mathbf { p } } _ { t } ^ { a } \in \mathbb { R } ^ { 1 \times \widetilde { C } }$ and $\hat { \mathbf { p } } _ { t } ^ { v } \in \mathbb { R } ^ { 1 \times C }$ , and the attention weights computed by MLPs and normalized by a softmax function for audio, visual, and audio-visual streams (i.e., $\mathbf { w } _ { t } ^ { a } \in \mathbb { R } ^ { 1 \times C }$ , $\mathbf { w } _ { t } ^ { v } \in \mathbb { R } ^ { 1 \times C }$ , and $\mathbf { w } _ { t } ^ { a v } \in \mathbb { R } ^ { 2 \times C } ,$ ). Then the video-level prediction is gathered with the MMIL pooling:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\bar { \mathbf { p } } ^ { a } = \sum _ { t = 1 } ^ { T } \mathbf { w } _ { t } ^ { a } \hat { \mathbf { p } } _ { t } ^ { a } , \bar { \mathbf { p } } ^ { v } = \sum _ { t = 1 } ^ { T } \mathbf { w } _ { t } ^ { v } \hat { \mathbf { p } } _ { t } ^ { v } , \mathrm { a n d } \bar { \mathbf { p } } ^ { a v } = \sum _ { t = 1 } ^ { T } \mathbf { w } _ { t } ^ { a v } [ 0 ] \mathbf { w } _ { t } ^ { a } \hat { \mathbf { p } } _ { t } ^ { a } + \mathbf { w } _ { t } ^ { a v } [ 1 ] \mathbf { w } _ { t } ^ { v } \hat { \mathbf { p } } _ { t } ^ { v } .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
The model can then be optimized using the binary cross-entropy loss function between $\bar { \bf p }$ and a video-level weak label $\bar { \mathbf { y } } \in \mathbb { R } ^ { 1 \times C }$ , which does not indicate time boundaries and modalities for events.
|
| 59 |
+
|
| 60 |
+
# 3.2 Cross-Modality Co-Occurrence
|
| 61 |
+
|
| 62 |
+
Videos with multi-label events contain rich information among event categories because the related events are likely to present at the same time. The correlation is useful for models to robustly predict the presence or absence of events.
|
| 63 |
+
|
| 64 |
+
Similar to [46], to explicitly model the relationship between event categories in different modalities, we first obtain the representations for each class and then measure the correlation. We note that the class relationships may be different in audio and visual modalities. That is why the work [46] cannot be directly applied to audio-visual video parsing since audio or visual events can be partially or jointly presented at a single frame. Thus, jointly understanding the class relationship within a modality and across two modalities can benefit the audio-visual video parsing task.
|
| 65 |
+
|
| 66 |
+
In order to map the frame-wise audio and visual features into class-level ones, the nonlinear transformation with MLPs is formulated as follows:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\begin{array} { r } { \mathbf { a } _ { t , c } = \operatorname { R e L U } ( \hat { \mathbf { f } } _ { t } ^ { a } \mathbf { M } _ { c } ^ { a } + \mathbf { b } _ { c } ^ { a } ) , } \\ { \mathbf { v } _ { t , c } = \operatorname { R e L U } ( \hat { \mathbf { f } } _ { t } ^ { v } \mathbf { M } _ { c } ^ { v } + \mathbf { b } _ { c } ^ { v } ) , } \end{array}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $\mathbf { a } _ { t , c }$ and $\mathbf { v } _ { t , c }$ are audio and visual class-level features for class $c$ at time $t$ with dimension $1 \times d _ { c }$ , respectively. The weights and biases for class $c$ for audio and visual features are denoted as $\mathbf { M } _ { c } ^ { a }$ $\mathbf { \Psi } _ { : } ^ { i } , \mathbf { M } _ { c } ^ { i } \in \mathbb { R } ^ { d \times } \mathbf { \tilde { { d } } } _ { c }$ and ${ \bf b } _ { c } ^ { a }$ $\mathbf { \bar { b } } _ { c } ^ { v } \in \mathbb { R } ^ { 1 \times d _ { c } }$ . With class-level representations, we can further model the relationship between event categories within and across modalities by self-attention and crossmodality co-attention mechanism:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r } { \hat { \mathbf { a } } _ { t , c } = \mathbf { a } _ { t , c } + \phi _ { s e l f } ( \mathbf { a } _ { t , c } , \mathbf { A } _ { t } , \mathbf { A } _ { t } ) + \phi _ { c r o s s } ( \mathbf { a } _ { t , c } , \mathbf { V } _ { t } , \mathbf { V } _ { t } ) , } \\ { \hat { \mathbf { v } } _ { t , c } = \mathbf { v } _ { t , c } + \phi _ { s e l f } ( \mathbf { v } _ { t , c } , \mathbf { V } _ { t } , \mathbf { V } _ { t } ) + \phi _ { c r o s s } ( \mathbf { v } _ { t , c } , \mathbf { A } _ { t } , \mathbf { A } _ { t } ) , } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where $\mathbf { A } _ { t } = \{ \mathbf { a } _ { t , 1 } , \dotsc , \mathbf { a } _ { t , C } \}$ and $\mathbf { V } _ { t } = \{ \mathbf { v } _ { t , 1 } , \dots , \mathbf { v } _ { t , C } \}$ are sets of audio and visual class features at time $t$ . $\hat { \mathbf { a } } _ { t , c }$ and $\hat { \mathbf { v } } _ { t , c }$ are now co-occcurence features that consider the relationships between categories within and across modalities. We can then predict the probability for each event at time $t$ by MLPs and aggregate every segment-wise predictions into video-level ones i.e.,
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\begin{array} { r l } & { \hat { \mathbf { p } } _ { t } ^ { a } = \sigma ( \mathrm { M L P } _ { a } ( \{ \hat { \mathbf { a } } _ { t , 1 } , \dots , \hat { \mathbf { a } } _ { t , C } \} ) ) , \quad \hat { \mathbf { p } } _ { t } ^ { v } = \sigma ( \mathrm { M L P } _ { v } ( \{ \hat { \mathbf { v } } _ { t , 1 } , \dots , \hat { \mathbf { v } } _ { t , C } \} ) ) , } \\ & { \bar { \mathbf { p } } ^ { a } , \bar { \mathbf { p } } ^ { v } , \bar { \mathbf { p } } ^ { a v } = \mathrm { M M I L } ( \{ \hat { \mathbf { p } } _ { 1 } ^ { a } , \dots , \hat { \mathbf { p } } _ { T } ^ { a } \} , \{ \hat { \mathbf { p } } _ { 1 } ^ { v } , \dots , \hat { \mathbf { p } } _ { T } ^ { v } \} ) } \end{array}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $\sigma$ is the sigmoid function, and $\mathrm { M M L } ( \cdot )$ is the multi-modal multiple instance learning pooling described in Eq. 3 taking all segment-wise predictions as inputs. The video-level prediction can be optimized by the binary cross-entropy loss function with a video-level weak label $\bar { \mathbf { y } }$ .
|
| 85 |
+
|
| 86 |
+
# 3.3 Shared Cross-Modality Semantics across Videos
|
| 87 |
+
|
| 88 |
+
The information across different videos provides rich supervisory signals that benefit the training of weakly-supervised audio-visual video parsing. By observing videos in a training batch, we can discover both the common and diverse event semantics. With video-level labels, we can initially associate related and irrelevant videos. In order to obtain a discriminative categorical representation, we would like to encourage audio and visual representations from related events to be similar and differentiate those from irrelevant videos. However, targeting at segment-wise representations with specific events is difficult due to the lack of temporal annotations. Therefore, we seek event-related frames through the weights from MMIL pooling in Eq. 3:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
\tilde { \mathbf { f } } ^ { a } = \sum _ { t = 1 } ^ { T } \Big [ \frac { \exp \bigl ( g \bigl ( \bar { \mathbf { y } } \odot \mathbf { w } _ { t } ^ { a } \bigr ) \bigr ) } { \sum _ { t ^ { \prime } = 1 } ^ { T } \exp \bigl ( g \bigl ( \bar { \mathbf { y } } \odot \mathbf { w } _ { t ^ { \prime } } ^ { a } \bigr ) \bigr ) } \hat { \mathbf { f } } _ { t } ^ { a } \Big ] , \quad \tilde { \mathbf { f } } ^ { v } = \sum _ { t = 1 } ^ { T } \Big [ \frac { \exp \bigl ( g \bigl ( \bar { \mathbf { y } } \odot \mathbf { w } _ { t } ^ { v } \bigr ) \bigr ) } { \sum _ { t ^ { \prime } = 1 } ^ { T } \exp \bigl ( g \bigl ( \bar { \mathbf { y } } \odot \mathbf { w } _ { t ^ { \prime } } ^ { v } \bigr ) \bigr ) } \hat { \mathbf { f } } _ { t } ^ { v } \Big ] ,
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $\odot$ and $g ( . )$ are element-wise dot product and summation function over all elements respectively.
|
| 95 |
+
|
| 96 |
+
With video-level labels and features ${ \tilde { \mathbf { f } } } ^ { a }$ and $\tilde { \mathbf { f } } ^ { v }$ ), we adopt contrastive learning [47, 48, 49] to encourage features across modalities with the same event category (at least one) to be close and those with different events to be far away from each other. We leverage all $n$ videos in a batch to explore diverse semantics, where the sets of audio and visual features are denoted as $\{ \widetilde { \bf f } _ { ( 0 ) } ^ { a } , . . . , \widetilde { \bf f } _ { ( n ) } ^ { a } \}$ and $\{ \tilde { \mathbf { f } } _ { ( 0 ) } ^ { v } , . . . , \tilde { \mathbf { f } } _ { ( n ) } ^ { v } \}$ respectively with video-level labels $\left\{ \bar { \mathbf { y } } _ { ( 0 ) } , . . . , \bar { \mathbf { y } } _ { ( n ) } \right\}$ . The relationship across videos can be optimized by the proposed training objective as follows:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\mathcal { L } _ { \mathrm { c o n t r a s t } } = - \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \Big [ \log \frac { \sum _ { j = 1 } ^ { n } f ( \bar { \bf y } _ { i } \cdot \bar { \bf y } _ { j } ) \exp ( \tilde { \bf f } _ { ( i ) } ^ { a } \cdot \tilde { \bf f } _ { ( j ) } ^ { v } / \tau ) } { \sum _ { j = 1 } ^ { n } \exp ( \tilde { \bf f } _ { ( i ) } ^ { a } \cdot \tilde { \bf f } _ { ( j ) } ^ { v } / \tau ) } \Big ] ,
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $f ( \cdot )$ is a clipping function that clips values over 1, and $\tau$ denotes a hyper-parameter controlling the temperature. Thus, the proposed method can be optimized by joint the binary cross-entropy loss mentioned in Section 3.1 and the contrastive learning loss in Eq. 8. Our training strategy can exploit cross-modality information across videos and event categories to understand common semantics while ignoring irrelevant ones.
|
| 103 |
+
|
| 104 |
+
# 4 Experimental Results
|
| 105 |
+
|
| 106 |
+
Datasets. We use the Look, Listen and Parse (LLP) Dataset [4] for all experiments. The LLP dataset consists of 11, 849 10-seconds video clips annotated with 25 event categories. It covers various real-life scenes such as speech, music performances, car, cheering, dog, etc. Particularly, there are 7202 video clips labeled with more than one event category. We use the 10000 video clips with only video-level event annotations for model training. The detailed annotations (e.g., individual audio and visual events per second) are available for the remaining 1849 validation and test videos. For all experiments, we use the official data splits from the LLP dataset.
|
| 107 |
+
|
| 108 |
+
Evaluation Metrics. Following previous work [4, 6], we adopt F-scores as the evaluation metrics. Note that all types of events (audio, visual, and audio-visual) are measured under both segmentlevel and event-level metrics. The segment-level metrics can evaluate snippet-wise prediction results. As for the event-level metrics, the clips are extracted by concatenating positive consecutive segments in the same events. Then, we compute the event-level F-scores with $\mathrm { m I o U } = 0 . 5$ as the threshold. Furthermore, the overall Type $\ @ \mathbf { A V }$ performance on audio-visual scene is also considered by computing the averaged audio, visual, and audio-visual event evaluation results. Instead of directly averaging results from different event types, Event@AV considers all audio and visual event categories for each sample.
|
| 109 |
+
|
| 110 |
+
Table 1: Quantitative results of weakly-supervised audio-visual video parsing. We evaluate all methods on the LLP dataset [4] with F-scores in five different event types and two kinds of segments. The first row indicates five different event types (audio, visual, audio-visual, Type@AV, and Event@AV). In the second row, two kinds of segments are shown: Seg. and Event are segmentlevel and event-level; and $^ *$ indicates only label refinement is utilized for fair comparisons.
|
| 111 |
+
|
| 112 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Audio</td><td colspan="2">Visual</td><td colspan="2">Audio-visual</td><td colspan="2">Type@AV</td><td colspan="2">Event@AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>AVE [5]</td><td>47.2</td><td>40.4</td><td>37.1</td><td>34.7</td><td>35.4</td><td>31.6</td><td>39.9</td><td>35.5</td><td>41.6</td><td>36.5</td></tr><tr><td>AVSDN [2]</td><td>47.8</td><td>34.1</td><td>52.0</td><td>46.3</td><td>37.1</td><td>26.5</td><td>45.7</td><td>35.6</td><td>50.8</td><td>37.7</td></tr><tr><td>AVSDN + Ours</td><td>48.3</td><td>41.2</td><td>52.4</td><td>48.5</td><td>46.9</td><td>40.0</td><td>49.2</td><td>43.2</td><td>53.2</td><td>40.1</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + Ours</td><td>59.2</td><td>51.3</td><td>59.9</td><td>55.5</td><td>53.4</td><td>46.2</td><td>57.5</td><td>51.0</td><td>58.1</td><td>49.7</td></tr><tr><td>MA [6]</td><td>60.3</td><td>53.6</td><td>60.0</td><td>56.4</td><td>55.1</td><td>49.0</td><td>58.9</td><td>53.0</td><td>57.9</td><td>50.6</td></tr><tr><td>MA*</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA*+Ours</td><td>60.8</td><td>53.8</td><td>63.5</td><td>58.9</td><td>57.0</td><td>49.5</td><td>60.5</td><td>54.0</td><td>59.5</td><td>52.1</td></tr></table>
|
| 113 |
+
|
| 114 |
+
Implementation Details. We implement the proposed method using PyTorch [50], and conduct the training and evaluation processes on a single NVIDIA GTX 1080 Ti GPU with 11 GB memory. Following [4, 6], we use the same visual and audio encoders for fair comparisons. We adopt both ResNet-152 [51] pre-trained on ImageNet [52] and 3D ResNet [53] pre-trained on Kinetics-400 [54] as visual feature extractors. Visual frames are sampled at 8 fps and their 2D and 3D visual features are extracted. The 2D and 3D visual features are concatenated and then processed by an MLP as the segment-wise representations. As for audio data, we utilize VGGish [55] pre-trained on AudioSet [56] to extract 128-dimensional audio features. The code and models are publicly available.
|
| 115 |
+
|
| 116 |
+
Evaluated methods. We compare the proposed method based on several baselines to the following weakly-unsupervised approaches to the audio-visual video parsing task:
|
| 117 |
+
|
| 118 |
+
• AVE [5] consists of an audio-guided co-attention mechanism to adaptively learn the sounding regions. We note that AVE [5] deals with the audio-visual event localization task. Thus, we follow [4] and add additional audio and visual parsing branches for the weakly-supervised audio-visual video parsing task as a baseline.
|
| 119 |
+
• AVSDN [2] is a sequence-to-sequence-based model to integrate global audio and visual features to local ones. Since AVSDN [2] also deals with the audio-visual event localization task, we make the same modifications to AVSDN as those to AVE.
|
| 120 |
+
• HAN [4] is a multi-modal multiple instance learning-based method with a hybrid attention network.
|
| 121 |
+
• MA [6] reports the state-of-the-art performance on the weakly-supervised audio-visual video parsing task. It is a method based on HAN with the label refinement and the audio-visual contrastive learning differentiating temporal segments.
|
| 122 |
+
|
| 123 |
+
# 4.1 Quantitative Evaluation
|
| 124 |
+
|
| 125 |
+
Table 1 shows the quantitative comparisons on the LLP dataset [4]. The proposed method performs favorably against the competing approaches on the weakly-supervised audio-visual video parsing task. Since our method can be easily extended to existing methods, we extend the proposed on three baselines. The third, fifth, and last rows in Table 1 indicate that the proposed method generally benefits three baselines on several metrics of the audio-visual video parsing task by a large margin. We note that $\mathbf { M A } ^ { * }$ [6] only utilizes label refinement to refine labels for each modality, and temporal difference audio-visual contrastive learning [6] is not implemented.
|
| 126 |
+
|
| 127 |
+
Table 2: Ablation study. We investigate the effect of using different design components in the proposed method. We show how proposed cross-modality co-occurrence (CM-Co) in Section 3.3 and shared cross-modality semantics across videos (CM-S) module in Section 3.2 improve the baselines.
|
| 128 |
+
|
| 129 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Audio</td><td colspan="2">Visual</td><td colspan="2">Audio-visual</td><td colspan="2">Type@AV</td><td colspan="2">Event@AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + CM-S</td><td>58.1</td><td>49.6</td><td>58.3</td><td>53.6</td><td>53.2</td><td>46.3</td><td>56.5</td><td>49.8</td><td>55.9</td><td>47.5</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>51.4</td><td>57.4</td><td>52.4</td><td>51.9</td><td>44.2</td><td>56.3</td><td>49.3</td><td>57.4</td><td>48.5</td></tr><tr><td>HAN + Ours</td><td>59.2</td><td>51.3</td><td>59.9</td><td>55.5</td><td>53.4</td><td>46.2</td><td>57.5</td><td>51.0</td><td>58.1</td><td>49.7</td></tr><tr><td>MA [28]</td><td>60.3</td><td>53.6</td><td>60.0</td><td>56.4</td><td>55.1</td><td>49.0</td><td>58.9</td><td>53.0</td><td>57.9</td><td>50.6</td></tr><tr><td>MA + CM-Co</td><td>61.1</td><td>53.3</td><td>61.7</td><td>57.3</td><td>56.3</td><td>49.0</td><td>59.7</td><td>53.0</td><td>58.9</td><td>51.2</td></tr><tr><td>MA*</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA* + CM-S</td><td>60.4</td><td>53.5</td><td>60.7</td><td>56.5</td><td>55.8</td><td>47.5</td><td>58.9</td><td>52.5</td><td>58.6</td><td>51.0</td></tr><tr><td>MA* + CM-Co</td><td>60.5</td><td>53.6</td><td>61.3</td><td>56.5</td><td>54.9</td><td>46.7</td><td>58.9</td><td>52.3</td><td>59.1</td><td>51.4</td></tr><tr><td>MA* +Ours</td><td>60.8</td><td>53.8</td><td>63.5</td><td>58.9</td><td>57.0</td><td>49.5</td><td>60.5</td><td>54.0</td><td>59.5</td><td>52.1</td></tr></table>
|
| 130 |
+
|
| 131 |
+
We notice that our method significantly improves baselines in the metrics of visual, audio-visual, Type $@ \mathrm { A V } ,$ and Event $@$ AV. By observing the class distribution of training sets, we find that $3 1 \%$ , $7 \%$ , and $9 \%$ training videos contain speech, singing, and violin events. These events are more likely to present in the audio modality. Therefore, the video-level labels would limit the performance regarding visual events. The proposed method can leverage additional cross-video and cross-modality supervisory signals to explore common semantics, which can improve results in vision-related metrics.
|
| 132 |
+
|
| 133 |
+
# 4.2 Ablation Study
|
| 134 |
+
|
| 135 |
+
Cross-Modality Co-Occurrence and Semantics across Video. We conduct the ablation study to analyze the individual impact of each developed component in the proposed method. The results are presented in Table 2. CM-Co represents the usage of the cross-modality co-occurrence module described in Section 3.2, which leverages the relationship between categories within and cross modalities. CM-S indicates the shared cross-modality semantics across videos module described in Section 3.3, which considers all audio and visual information across videos in a batch.
|
| 136 |
+
|
| 137 |
+
In Table 2, we note that both CM-S and CM-Co can improve baselines in several metrics. By exploring common semantics among training videos (CM-S), we improve the performance on visual and audio-visual evaluation by a large margin. Such a strategy can exploit additional information from videos to address the potential drawback of video-level labels described in Section 4.1. Furthermore, the proposed cross-modality co-occurrence module (CM-Co) also presents favorable results. We note that the significant improvement in Event@AV evaluation with the usage of CM-Co can verify the efficacy of considering the relationship between categories within and across modalities. Since Event $@$ AV considers all audio and visual events for the F-score (e.g., truth positive from both audio and visual events), the improvement of Event@AV indicates our cross-modality co-occurrence can perform well on video parsing when events present in an audio or a visual modality.
|
| 138 |
+
|
| 139 |
+
In the second group of the evaluated methods in Table 2, we verify if the proposed CM-S works better than the contrastive learning method in MA. We perform our CM-S on the MA model. The CM-S exploits information across different videos to address the issue that audio and visual tracks may not be synchronized. Instead, the contrastive learning method in MA is developed based on the assumption of synchronization to associate the audio-visual representation in a single video. Since our CM-S learns diverse and common semantics, it is effective and complementary to the contrastive learning approach in MA performing on a single video. We note that our CM-S generally improves the performance over all segment-level metrics, which supports our claim.
|
| 140 |
+
|
| 141 |
+
Self-attention and Cross-Modality Co-attention in Co-Occurrence. Since our cross-modality co-occurrence module exploits self-attention among class-level features in the same modality and cross-modality co-attention on cross-modality class-level representations to model the relationship between categories in the same and different modalities. Taking class-level audio features in Eq. 5 as an example, the class-level self-attention and cross-modality co-attention are $\mathrm { a t t n } ( \mathbf { a } _ { t , c } , \mathbf { A } _ { t } , \mathbf { A } _ { t } )$ and $\operatorname { a t t n } ( \mathbf { a } _ { t , c } , \mathbf { V } _ { t } , \mathbf { V } _ { t } ) .$ , respectively.
|
| 142 |
+
|
| 143 |
+
Table 3: Ablation study. We investigate the effect of different developed mechanisms in the proposed cross-modality co-occurrence (CM-Co) module in Section 3.2. In Eq. 5, class-level features are processed by self-attention and cross-modality co-attention mechanisms. A Only and $\mathbf { V }$ Only indicate only self-attention performs for individual audio and visual events respectively. AV denotes performing self-attention for audio and visual events. CM-Co is the proposed method that considers relationship between categories within and cross modalities by both self-attention and cross-modality co-attention mechanisms.
|
| 144 |
+
|
| 145 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">Audio</td><td colspan="2">Visual</td><td colspan="2">Audio-visual</td><td colspan="2">Type@AV</td><td colspan="2">Event@ AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + A Only</td><td>60.5</td><td>52.3</td><td>49.8</td><td>43.9</td><td>45.6</td><td>38.3</td><td>52.0</td><td>44.8</td><td>55.7</td><td>45.9</td></tr><tr><td>HAN + V Only</td><td>56.1</td><td>44.5</td><td>56.8</td><td>53.2</td><td>49.7</td><td>40.7</td><td>54.2</td><td>46.1</td><td>54.1</td><td>44.6</td></tr><tr><td>HAN + AV</td><td>59.5</td><td>50.3</td><td>55.1</td><td>50.5</td><td>48.6</td><td>40.3</td><td>54.4</td><td>47.0</td><td>56.0</td><td>47.4</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>51.4</td><td>57.4</td><td>52.4</td><td>51.9</td><td>44.2</td><td>56.3</td><td>49.3</td><td>57.4</td><td>48.5</td></tr><tr><td>MA*[6]</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA*+ A Only</td><td>60.7</td><td>52.7</td><td>53.9</td><td>47.9</td><td>50.1</td><td>42.2</td><td>54.9</td><td>47.6</td><td>57.0</td><td>47.1</td></tr><tr><td>MA* + V Only</td><td>46.8</td><td>34.4</td><td>60.8</td><td>57.0</td><td>42.8</td><td>31.1</td><td>50.1</td><td>40.9</td><td>52.6</td><td>40.4</td></tr><tr><td>MA*+ AV</td><td>58.3</td><td>50.4</td><td>59.4</td><td>55.2</td><td>53.9</td><td>46.9</td><td>57.2</td><td>50.8</td><td>56.7</td><td>48.5</td></tr><tr><td>MA*+ CM-Co</td><td>60.5</td><td>53.6</td><td>61.3</td><td>56.5</td><td>54.9</td><td>46.7</td><td>58.9</td><td>52.3</td><td>59.1</td><td>51.4</td></tr></table>
|
| 146 |
+
|
| 147 |
+
Table 4: Ablation study. We evaluate the proposed method in accuracy, efficiency, and model sizes. We show the numbers of parameters and FLOPs for the proposed cross-modality co-occurrence (CM-Co) and HAN [4] with a few layers.
|
| 148 |
+
Note that the results are all in the segment level.
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Method</td><td>Audio</td><td>Visual</td><td>Audio-visual</td><td>Type@AV</td><td>Event@AV</td><td>GFLOPs</td><td>Params</td></tr><tr><td>HAN 1 Layer</td><td>60.1</td><td>52.9</td><td>48.9</td><td>54.0</td><td>55.4</td><td>6.63</td><td>2.4M</td></tr><tr><td>HAN 2 Layers</td><td>58.2</td><td>55.4</td><td>50.6</td><td>54.7</td><td>54.9</td><td>7.28</td><td>2.9M</td></tr><tr><td>HAN 3 Layers</td><td>58.1</td><td>55.2</td><td>50.3</td><td>54.5</td><td>54.6</td><td>7.97</td><td>3.5M</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>57.4</td><td>51.9</td><td>56.3</td><td>57.4</td><td>6.99</td><td>2.8M</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 3 presents the results in various modifications of the cross-modality co-occurrence module. We note that the design of co-occurrence in the same and cross modalities can generally improve the results in several metrics. We also evaluate the co-occurrence module in a single modality. The results are shown in the second, third, seventh, and eighth rows in Table 3, where A Only and $\mathbf { V }$ Only indicate the co-occurrence module only leverages the relationship between categories in audio or visual data respectively. As the results shown in the second and seventh rows, training with co-occurrence in audio events only (i.e., A Only) can slightly improve the performance on audio events. Similarly, considering visual event only (i.e., V Only) can benefit the results regarding visual events. Furthermore, the co-occurrence for both audio and visual categories (AV) in the fourth and ninth rows can contribute to the results in general metrics such as Type $@$ AV and Event $@ \mathrm { A V } .$ . We then further consider the correlation between events across modalities. That is the cross-modality co-occurrence module (CM-Co) in the fifth and tenth rows. The results can confirm the efficacy of the proposed cross-modality co-occurrence module in all metrics except segment-level audio events caused by similar reasons discussed in Section 4.1.
|
| 153 |
+
|
| 154 |
+
Model Capacity. Since our cross-modality co-occurrence module leverages class-level representations, it would increase the capability of models on capturing information. For fair comparisons, we add extra parameters to HAN [4] to analyze whether more parameters can contribute to performance gain. Specifically, we increase the number of layers in its transformer-based feature aggregation to 2 and 3, respectively.
|
| 155 |
+
|
| 156 |
+
In Table 4, we report the results in accuracy, computational costs, and model sizes. The first three rows show the performance of HAN with different numbers of layers. We note that HAN with one extra layer has more parameters than the proposed co-occurrence module. However, the results of HAN with extra layers indicate that using more parameters/layers for HAN does not improve the performance. The proposed cross-modality co-occurrence module enhances HAN more effectively.
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 2: Qualitative comparisons. We compare the proposed method with the state-of-the-art weakly-supervised audio-visual video parsing method on the LLP dataset [4]. The frame-wise annotations are shown in gray and purple bars. The gray bar denotes visual events, and the purple bar represents audio events. GT_V and GT_A are the ground-truth visual and audio events respectively. Our results are shown in the green block, and the results by the competing method, MA [6], are present in the blue block.
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 3: Audio feature distribution by using t-SNE. The upper figure shows the distribution by our method. The lower figure presents that by $\mathbf { M A } ^ { * }$ . The legend lists all event combinations.
|
| 163 |
+
|
| 164 |
+
# 4.3 Qualitative Evaluation
|
| 165 |
+
|
| 166 |
+
Qualitative Results. We present the qualitative results of the evaluated methods in Figure 2. GT_V and GT_A show the ground-truth annotations for visual and audio events, respectively. Pred_V and Pred_A present the predictions made by our method and the state-of-the-art competing method, MA [6], respectively. Our results are shown in the green block, while the results of MA are present in the blue block. In general, our method presents more accurate predictions in both audio and visual events than MA. We note that the whole violin is shown after 7 seconds. That would hamper models for understanding visual events e.g., MA predicts wrong results on violin visual events before 6 seconds. Since our method leverages the relationship between categories, it can still predict correct temporal boundaries for guitar events by jointly considering cello events in the videos.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 4: Visual feature distribution by using t-SNE. The upper figure shows the distribution by our method. The lower figure presents that by MA∗. The legend lists all event combinations.
|
| 170 |
+
|
| 171 |
+
Feature Distribution Visualized by t-SNE. We apply t-SNE to the aggregated audio and visual features from each segment described in Eq. 2. The visualization results are present in Figure 3 and Figure 4, respectively. The legends list all the combinations of multiple labels. For example, in Figure 3, audio events of singing are present as blue spots, and the mixed sounds of singing and violin are shown as purple spots. We note that the related events including multiple events are shown in similar colors. In Figure 4, the proposed method achieves better performance in the sense that similar color spots are closer than the spots in $\mathbf { M A } ^ { * }$ .
|
| 172 |
+
|
| 173 |
+
# 5 Conclusions
|
| 174 |
+
|
| 175 |
+
In this paper, we present a novel audio-visual video parsing framework in a weakly-supervised manner that can be applied to existing methods. We propose two modules to exploit the relationship across videos, modalities, and event categories, and explore additional supervisory signals that can benefit audio-visual video parsing. The shared cross-modality semantics module leverages common and diverse event semantics across videos to learn robust cross-modality representations that facilitate models to identify audio, visual, and audio-visual events. Furthermore, the cross-modality co-occurrence module aims to learn the relationship between event categories. It helps localize segments of target events and can exclude irrelevant ones by performing self-attention and crossmodality co-attention on class-wise features, Extensive experimental results show that our approach substantially improves several baselines and performs favorably against the state-of-the-art methods.
|
| 176 |
+
|
| 177 |
+
Acknowledgments. This work was supported in part by the Ministry of Science and Technology under grants 109- 2221-E-009-113-MY3, 110-2628-E-A49-008, and 110-2634-F007-015. It was also funded in part by Qualcomm through a Taiwan University Research Collaboration Project, the Higher Education Sprout Project of the National Yang Ming Chiao Tung University, and Ministry of Education.
|
| 178 |
+
|
| 179 |
+
References
|
| 180 |
+
[1] Jun-Tae Lee, Mihir Jain, Hyoungwoo Park, and Sungrack Yun. Cross-attentional audio-visual fusion for weakly-supervised action localization. In ICLR, 2021. 1, 2 [2] Yan-Bo Lin, Yu-Jhe Li, and Yu-Chiang Frank Wang. Dual-modality seq2seq network for audio-visual event localization. In ICASSP, 2019. 1, 2, 6
|
| 181 |
+
[3] Yan-Bo Lin and Yu-Chiang Frank Wang. Audiovisual transformer with instance attention for audio-visual event localization. In ACCV, 2020. 1, 2
|
| 182 |
+
[4] Yapeng Tian, Dingzeyu Li, and Chenliang Xu. Unified multisensory perception: Weaklysupervised audio-visual video parsing. In ECCV, 2020. 1, 2, 3, 4, 5, 6, 7, 8, 9
|
| 183 |
+
[5] Yapeng Tian, Jing Shi, Bochen Li, Zhiyao Duan, and Chenliang Xu. Audio-visual event localization in unconstrained videos. In ECCV, 2018. 1, 2, 6
|
| 184 |
+
[6] Yu Wu and Yi Yang. Exploring heterogeneous clues for weakly-supervised audio-visual video parsing. In CVPR, 2021. 1, 2, 3, 5, 6, 8, 9
|
| 185 |
+
[7] Yu Wu, Linchao Zhu, Yan Yan, and Yi Yang. Dual attention matching for audio-visual event localization. In ICCV, 2019. 1, 2
|
| 186 |
+
[8] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In ICCV, 2017. 2
|
| 187 |
+
[9] Relja Arandjelovic and Andrew Zisserman. Objects that sound. In ´ ECCV, 2018. 2
|
| 188 |
+
[10] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. Soundnet: Learning sound representations from unlabeled video. In NeurIPS, 2016. 2
|
| 189 |
+
[11] Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In ECCV, 2016. 2
|
| 190 |
+
[12] Jean-Baptiste Alayrac, Adrià Recasens, Rosalia Schneider, Relja Arandjelovic, Jason Ramapu- ´ ram, Jeffrey De Fauw, Lucas Smaira, Sander Dieleman, and Andrew Zisserman. Self-supervised multimodal versatile networks. In NeurIPS, 2020. 2
|
| 191 |
+
[13] Humam Alwassel, Dhruv Mahajan, Lorenzo Torresani, Bernard Ghanem, and Du Tran. Selfsupervised learning by cross-modal audio-video clustering. In NeurIPS, 2020. 2
|
| 192 |
+
[14] Yuki M Asano, Mandela Patrick, Christian Rupprecht, and Andrea Vedaldi. Labelling unlabelled videos from scratch with multi-modal self-supervision. In NeurIPS, 2020. 2
|
| 193 |
+
[15] Shuang Ma, Zhaoyang Zeng, Daniel McDuff, and Yale Song. Active contrastive learning of audio-visual video representations. In ICLR, 2021. 2
|
| 194 |
+
[16] Pedro Morgado, Nuno Vasconcelos, and Ishan Misra. Audio-visual instance discrimination with cross-modal agreement. In CVPR, 2021. 2
|
| 195 |
+
[17] Pedro Morgado, Ishan Misra, and Nuno Vasconcelos. Robust audio-visual instance discrimination. In CVPR, 2021. 2
|
| 196 |
+
[18] Andrew Owens and Alexei A. Efros. Audio-visual scene analysis with self-supervised multisensory features. In ECCV, 2018. 2
|
| 197 |
+
[19] Bruno Korbar, Du Tran, and Lorenzo Torresani. Cooperative learning of audio and video models from self-supervised synchronization. In NeurIPS, 2018. 2
|
| 198 |
+
[20] Jinxing Zhou, Liang Zheng, Yiran Zhong, Shijie Hao, and Meng Wang. Positive sample propagation along the audio-visual event line. In CVPR, 2021. 2
|
| 199 |
+
[21] Chuang Gan, Deng Huang, Hang Zhao, Joshua B Tenenbaum, and Antonio Torralba. Music gesture for visual sound separation. In CVPR, 2020. 2
|
| 200 |
+
[22] Ruohan Gao, Rogerio Feris, and Kristen Grauman. Learning to separate object sounds by watching unlabeled video. In ECCV, 2018. 2
|
| 201 |
+
[23] Ruohan Gao and Kristen Grauman. Co-separating sounds of visual objects. In ICCV, 2019. 2
|
| 202 |
+
[24] Xudong Xu, Bo Dai, and Dahua Lin. Recursive visual sound separation using minus-plus net. In ICCV, 2019. 2
|
| 203 |
+
[25] Hang Zhao, Chuang Gan, Wei-Chiu Ma, and Antonio Torralba. The sound of motions. In ICCV, 2019. 2
|
| 204 |
+
[26] Hang Zhao, Chuang Gan, Andrew Rouditchenko, Carl Vondrick, Josh McDermott, and Antonio Torralba. The sound of pixels. In ECCV, 2018. 2
|
| 205 |
+
[27] Efthymios Tzinis, Scott Wisdom, Aren Jansen, Shawn Hershey, Tal Remez, Dan Ellis, and John R. Hershey. Into the wild with audioscope: Unsupervised audio-visual separation of on-screen sounds. In ICLR, 2021. 2
|
| 206 |
+
[28] Yapeng Tian, Di Hu, and Chenliang Xu. Cyclic co-learning of sounding object visual grounding and sound separation. In CVPR, 2021. 2, 7
|
| 207 |
+
[29] Ruohan Gao and Kristen Grauman. Visualvoice: Audio-visual speech separation with crossmodal consistency. In CVPR, 2021. 2
|
| 208 |
+
[30] Ruohan Gao, Tae-Hyun Oh, Kristen Grauman, and Lorenzo Torresani. Listen to look: Action recognition by previewing audio. In CVPR, 2020. 2
|
| 209 |
+
[31] Ruohan Gao and Kristen Grauman. 2.5d-visual-sound. In CVPR, 2019. 2
|
| 210 |
+
[32] Pedro Morgado, Yi Li, and Nuno Vasconcelos. Learning representations from audio-visual spatial alignment. In NeurIPS, 2020. 2
|
| 211 |
+
[33] Pedro Morgado, Nuno Nvasconcelos, Timothy Langlois, and Oliver Wang. Self-supervised generation of spatial audio for 360 video. In NeurIPS, 2018. 2
|
| 212 |
+
[34] Karren Yang, Bryan Russell, and Justin Salamon. Telling left from right: Learning spatial correspondence of sight and sound. In CVPR, 2020. 2
|
| 213 |
+
[35] Hang Zhou, Xudong Xu, Dahua Lin, Xiaogang Wang, and Ziwei Liu. Sep-stereo: Visually guided stereophonic audio generation by associating source separation. In ECCV, 2020. 2
|
| 214 |
+
[36] Yan-Bo Lin and Yu-Chiang Frank Wang. Exploiting audio-visual consistency with partial supervision for spatial audio generation. In AAAI, 2021. 2
|
| 215 |
+
[37] Xudong Xu, Hang Zhou, Ziwei Liu, Bo Dai, Xiaogang Wang, and Dahua Lin. Visually informed binaural audio generation without binaural audios. In CVPR, 2021. 2
|
| 216 |
+
[38] Yu-Ding Lu, Hsin-Ying Lee, Hung-Yu Tseng, and Ming-Hsuan Yang. Self-supervised audio spatialization with correspondence classifier. In ICIP, 2019. 2
|
| 217 |
+
[39] Triantafyllos Afouras, Andrew Owens, Joon Son Chung, and Andrew Zisserman. Selfsupervised learning of audio-visual objects from video. In ECCV, 2020. 2
|
| 218 |
+
[40] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound source in visual scenes. In CVPR, 2018. 2
|
| 219 |
+
[41] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound sources in visual scenes: Analysis and applications. TPAMI, 2019. 2
|
| 220 |
+
[42] Rui Qian, Di Hu, Heinrich Dinkel, Mengyue Wu, Ning Xu, and Weiyao Lin. Multiple sound sources localization from coarse to fine. In ECCV, 2020. 2
|
| 221 |
+
[43] Di Hu, Feiping Nie, and Xuelong Li. Deep multimodal clustering for unsupervised audiovisual learning. In CVPR, 2019. 2
|
| 222 |
+
[44] Di Hu, Rui Qian, Minyue Jiang, Xiao Tan, Shilei Wen, Errui Ding, Weiyao Lin, and Dejing Dou. Discriminative sounding objects localization via self-supervised audiovisual matching. In NeurIPS, 2020. 2
|
| 223 |
+
[45] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. 4
|
| 224 |
+
[46] Praveen Tirupattur, Kevin Duarte, Yogesh Rawat, and Mubarak Shah. Modeling multi-label action dependencies for temporal action localization. In CVPR, 2021. 4
|
| 225 |
+
[47] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv Preprint, 2018. 5
|
| 226 |
+
[48] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, 2018. 5
|
| 227 |
+
[49] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. 5
|
| 228 |
+
[50] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019. 6
|
| 229 |
+
[51] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6
|
| 230 |
+
[52] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009. 6
|
| 231 |
+
[53] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In CVPR, 2018. 6
|
| 232 |
+
[54] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In CVPR, 2017. 6
|
| 233 |
+
[55] Shawn Hershey, Sourish Chaudhuri, Daniel P. W. Ellis, Jort F. Gemmeke, Aren Jansen, Channing Moore, Manoj Plakal, Devin Platt, Rif A. Saurous, Bryan Seybold, Malcolm Slaney, Ron Weiss, and Kevin Wilson. Cnn architectures for large-scale audio classification. In ICASSP, 2017. 6
|
| 234 |
+
[56] Jort F Gemmeke, Daniel PW Ellis, Dylan Freedman, Aren Jansen, Wade Lawrence, R Channing Moore, Manoj Plakal, and Marvin Ritter. Audio set: An ontology and human-labeled dataset for audio events. In ICASSP, 2017. 6
|
parse/train/V5V1vGrI2z/V5V1vGrI2z_content_list.json
ADDED
|
@@ -0,0 +1,981 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Exploring Cross-Video and Cross-Modality Signals for Weakly-Supervised Audio-Visual Video Parsing ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
189,
|
| 8 |
+
122,
|
| 9 |
+
810,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yan-Bo Lin1,2 Hung-Yu Tseng3 Hsin-Ying Lee4 Yen-Yu Lin1 Ming-Hsuan Yang3,5,6 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
187,
|
| 19 |
+
224,
|
| 20 |
+
818,
|
| 21 |
+
241
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1National Yang Ming Chiao Tung University 2UNC Chapel Hill 3UC Merc 4Snap Research 5Google Research 6Yonsei University yblin@unc.edu htseng6@ucmerced.edu hlee5@snap.com lin@cs.nctu.edu.tw mhyang@ucmerced.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
235,
|
| 30 |
+
241,
|
| 31 |
+
751,
|
| 32 |
+
296
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
332,
|
| 43 |
+
535,
|
| 44 |
+
348
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The audio-visual video parsing task aims to temporally parse a video into audio or visual event categories. However, it is labor-intensive to temporally annotate audio and visual events and thus hampers the learning of a parsing model. To this end, we propose to explore additional cross-video and cross-modality supervisory signals to facilitate weakly-supervised audio-visual video parsing. The proposed method exploits both the common and diverse event semantics across videos to identify audio or visual events. In addition, our method explores event co-occurrence across audio, visual, and audio-visual streams. We leverage the explored cross-modality co-occurrence to localize segments of target events while excluding irrelevant ones. The discovered supervisory signals across different videos and modalities can greatly facilitate the training with only video-level annotations. Quantitative and qualitative results demonstrate that the proposed method performs favorably against existing methods on weakly-supervised audio-visual video parsing. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
364,
|
| 54 |
+
766,
|
| 55 |
+
544
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
570,
|
| 66 |
+
310,
|
| 67 |
+
588
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Humans perceive multisensory signals via seeing, hearing, touching, etc., and obtain multimodal information while exploring the surrounding environments. Visual and audio signals, the most common modalities, motivate researchers to jointly comprehend audio-visual events (e.g., see people singing and hear their sounds) [1, 2, 3, 4, 5, 6, 7]. Events visible in images while hearable in audio are referred to as audio-visual events. However, learning-based models tend to recognize a particular audio-visual event by using the data from the dominant modality with richer information and overlook clues from either audio only or visual only events which still contribute to holistic video understanding. Therefore, the resultant models can generalize well on audio-visual events only instead of comprehensively understanding all kinds of video events. To address this issue, we target at audio-visual video parsing [4, 6] where predictions for audio, visual, and audio-visual events with temporal boundaries are all required but separately evaluated. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
603,
|
| 77 |
+
825,
|
| 78 |
+
755
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The time-consuming and labor-intensive annotation process poses a major challenge for the audiovisual video parsing task. To address this issue, Tian et al. [4] handle this task in a weakly-supervised manner given only video-level labels, which indicate events of presence without temporal boundaries and detailed modalities. They develop an audio-visual co-attention mechanism to assemble discriminative multimodal representations and use multiple instance learning to aggregate frame-level predictions into video-level ones. However, video-level labels alone cannot identify which modality events are from. Wu et al. [6] then propose to perform label refinement by swapping the audio and visual tracks of different videos to estimate and remove irrelevant event categories for each modality. They further adopt temporal contrastive learning to align audio and visual representations from the same frame. However, the contrastive learning is based on the assumption that audio and visual signals are synchronized, which may not hold in practical scenarios with complex events. Furthermore, these methods [4, 6] only consider audio and visual tracks of a single video without exploiting the relationship across categories and videos, which also provide rich shared semantics regarding event categories. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
762,
|
| 88 |
+
825,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
90,
|
| 99 |
+
825,
|
| 100 |
+
147
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this work, we propose to leverage audio and visual data across different videos to explore shared information of each category. For example, videos with singing events may have similar patterns whatever in an audio or a visual modality. By observing all videos in a training batch, we can not only explore the shared semantics among audio-visual data but also exclude unrelated events. In addition to the relationship across different videos, we exploit the dependency between event categories. For example, when people are singing, there is usually a music accompaniment. Therefore, we propose to treat audio, visual, and audio-visual streams separately and adopt an audio-visual class co-occurrence module that jointly explores the relationship of different categories among all streams. By measuring the similarity of event categories from audio, visual, and audio-visual events, the correlated events are more likely to be correctly determined as the presence or absence of event categories. Such a strategy can robustly learn the correlation of categories within/across modality and fully exploit video data. The proposed strategy can be applied to existing methods on video parsing. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
154,
|
| 110 |
+
825,
|
| 111 |
+
319
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "We evaluate the proposed method on the LLP [4] dataset. Videos are parsed into audio, visual, and audio-visual events under both segment and event levels, and evaluated with F-scores metrics. Both qualitative and quantitative results demonstrate the effectiveness of the proposed method on the audio-visual video parsing task. The main contributions of this work are summarized as follows: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
325,
|
| 121 |
+
825,
|
| 122 |
+
381
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We leverage audio and visual data across different videos and tracks, which can learn common semantics of the same events and discern unrelated clues. • We develop an audio-visual event co-occurrence module that jointly considers the relationship of categories in audio, visual, and audio-visual modalities, which can prevent models from differentiating the representations of the related events. • Qualitative and quantitative experimental results on the benchmark dataset demonstrate that the proposed method performs favorably against the state-of-the-arts in various settings. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
217,
|
| 131 |
+
391,
|
| 132 |
+
825,
|
| 133 |
+
497
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 Related Work ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
515,
|
| 144 |
+
321,
|
| 145 |
+
532
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Audio-Visual Representation Learning. Implicit correlation between audio and visual data from videos provides rich information for audio-visual representation learning. First, the audio-visual pairs from the same video clip [8, 9, 10, 11, 12, 13, 14, 15, 16, 17] are strongly correlated based on the assumption that audio and visual data from a video are synchronized and highly correlated. Moreover, features extracted from unpaired video clips tend to be more diverse than those from the same clips. Second, by exploring audio-visual temporal synchronization [18, 19], temporal information can be served as a training guidance. Given a video sequence, existing methods [18, 19] distinguish audio and visual features from different frames while correlating features from the same frames. Such an idea enhances robust audio-visual representation learning that is essential to several tasks such as audio-visual event localization/parsing/recognition [1, 2, 3, 4, 5, 6, 7, 20], sound separation [21, 22, 23, 24, 25, 26, 27, 28, 29, 30], audio spatialization [31, 32, 33, 34, 35, 36, 37, 38], and sound localization [39, 40, 41, 42, 43, 44]. Instead of random sampling sound and images, our method selects both related and irreverent videos to explore common semantics and discern dissimilar events. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
545,
|
| 155 |
+
825,
|
| 156 |
+
738
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Audio-Visual Video Event Localization and Parsing. Audio-visual video parsing aims to detect events in videos and identify audio, visual, and audio-visual events (e.g., seeing the event and hearing its sound) and activities. Videos can be parsed with event categories and boundaries in both audio and visual modalities. Early researches [5, 7, 2, 3] aim to jointly derive audiovisual information in each local segment of the input video for audio-visual event localization, which emphasizes to detect only audio-visual events. However, due to the inconsistent information observed from audio and visual signals, data from either modality with insufficient clues may degrade the performance of prediction. Therefore, the work [7] focuses on audio/visual data with relevant categorical events to tackle this issue. Although methods of this category present favorable results, they are applicable to audio-visual event localization, which considers only synchronous audio-visual events or not. Recently, multi-modal multiple instance learning (MMIL) based methods with hybrid attention [4] carry out weakly-supervised audio-visual video parsing. These methods aggregate segment-level predictions into video-level ones, with which optimizing a model by using video-level or weak labels is enabled. Since video-level labels are typically insufficient to identify either audio or visual events, Wu et al. [6] generate pseudo labels for each modality by exchanging audio and visual tracks between unrelated videos. However, we notice that videos with replaced sounds or images may share some common semantics. Our method can exploit videos in a training batch to extract their common semantics for a categorical event and discern unrelated clues. Furthermore, we can leverage the relationship between event classes to find out related events (e.g., singing may accompany music). ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
746,
|
| 166 |
+
825,
|
| 167 |
+
911
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "image",
|
| 173 |
+
"img_path": "images/270ce2aeb0adebd19f77c3fe3a37657e6dbf1b204e12e9a0401ee9485ffe46c2.jpg",
|
| 174 |
+
"image_caption": [
|
| 175 |
+
"Figure 1: Algorithmic overview. Our framework consists of a visual feature extractor, an audio feature extractor, a feature aggregation module, MMIL pooling, shared cross-modality semantics, and an cross-modality co-occurrence module. Given $n$ videos of $T$ seconds, the visual and audio feature extractors compute their visual and audio features. The feature aggregation module [4] conducts self- and cross-modality attention to aggregate segment-wise audio $\\bar { \\hat { \\mathbf { f } ^ { a } } }$ and visual $\\hat { \\mathbf { f } ^ { v } }$ representations. We map segment-wise aggregated features to class-specific features by exploring cross-modality co-occurrence. By performing self- and cross-modality attention for class features, we identify within and cross modalities relationship between classes for event predictions. Note that $\\otimes$ denotes matrix multiplication with the softmax operation performing on each row, and the green block only shows the example for segment-wise visual prediction at time $t$ . We also leverage the aggregated features of all $n$ videos to figure out common semantics regrading events by maximizing the similarities between related videos while minimizing those between unrelated videos with Eq. 8. The MMIL Pooling [4] is an attention-based pooling function that aggregates segment-wise results to produce video-level ones, which are optimized by the binary cross entropy loss described in Eq. 3 and Eq. 6. "
|
| 176 |
+
],
|
| 177 |
+
"image_footnote": [],
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
89,
|
| 181 |
+
818,
|
| 182 |
+
324
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
549,
|
| 192 |
+
825,
|
| 193 |
+
647
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "3 Proposed Method ",
|
| 200 |
+
"text_level": 1,
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
666,
|
| 204 |
+
352,
|
| 205 |
+
684
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "In this paper, we propose a novel framework for weakly-supervised audio-visual video parsing. In order to explore common semantics across videos and dependency across event categories, the proposed model leverages all audio and visual signals across videos in a training batch and the correlation between classes for each training instance. In Section 3.1, we first define the notations and settings considered in this paper and revisit the common backbone [4, 6] for weakly-supervised audio-visual video parsing, which consists of feature aggregation and multi-modal multiple instance learning (MMIL) pooling. Then in Section 3.2 and Section 3.3, we detail the modules we propose to capture dependency across different events and information across different videos, respectively. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
699,
|
| 215 |
+
825,
|
| 216 |
+
810
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "3.1 Preliminaries ",
|
| 223 |
+
"text_level": 1,
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
829,
|
| 227 |
+
307,
|
| 228 |
+
844
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Problem Formulation and Notations. Given a video sequence $S$ with $T$ seconds long, we obtain $T$ non-overlapping audio and visual segments where each segment is one-second long. Models are aiming to predict the event labels for each segment, which may contain several or no events. At time $t$ , there are three targets for audio, visual, and audio-visual events: $\\mathbf { y } _ { t } ^ { a } \\in \\mathbb { R } ^ { 1 \\times C } , \\mathbf { y } _ { t } ^ { v } \\in \\mathbb { R } ^ { 1 \\times C }$ and $\\mathbf { y } _ { t } ^ { a v } \\in \\mathbb { R } ^ { 1 \\times C }$ are multi-class event label with $C$ event categories. $\\mathbf { y } _ { t } ^ { a } , \\mathbf { y } _ { t } ^ { v }$ , and ${ \\bf y } _ { t } ^ { a v }$ denote audio, visual, and audio-visual event labels, respectively. We note that detailed annotations (e.g., $\\mathbf { y } _ { t } ^ { a }$ , $\\mathbf { y } _ { t } ^ { a }$ , and ${ \\bf y } _ { t } ^ { a v }$ ) are not accessible during training and only available during evaluation. As for training, only video-level annotations are available during training. Video-level annotations only contain action event categories without indicating specific times slots or modalities (e.g., audio and visual event). ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
176,
|
| 237 |
+
856,
|
| 238 |
+
825,
|
| 239 |
+
911
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
90,
|
| 249 |
+
826,
|
| 250 |
+
161
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 3
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "Revisit of Weakly-Supervised Audio-Visual Video Parsing. The previous method [4] presents promising results with feature aggregation based on transformers and multimodal multiple instance learning (MMIL) pooling. Given a video sequence $S$ of $T$ frames, we denote its audio and visual feature sets by ${ \\bf F } ^ { a ^ { * } } = \\{ { \\bf f } _ { 1 } ^ { a ^ { * } } , . . . , { \\bf f } _ { T } ^ { a } \\} \\in \\mathbb { R } ^ { T \\times d }$ and $\\mathbf { F } ^ { v } = \\{ \\mathbf { f } _ { 1 } ^ { v } , . . . , \\mathbf { f } _ { T } ^ { v } \\} \\in \\mathbb { R } ^ { T \\times d }$ , respectively, where $d$ is the feature dimension. The transformer encoder [45] is employed to aggregate both within-modality and cross-modality information using multi-head attention blocks: ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
174,
|
| 260 |
+
825,
|
| 261 |
+
258
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 3
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "equation",
|
| 267 |
+
"img_path": "images/df014a1b954a2bcc0c32855513113f4fe555449e7a17c022439841acbd5fd03e.jpg",
|
| 268 |
+
"text": "$$\n\\begin{array} { l } { { \\phi _ { s e l f } ( { \\bf f } _ { t } ^ { a } , { \\bf F } ^ { a } , { \\bf F } ^ { a } ) = \\mathrm { S o f t m a x } ( \\frac { { \\bf f } _ { t } ^ { a } { \\bf F } ^ { a } ^ { \\top } } { \\sqrt { d } } ) { \\bf F } ^ { a } , } } \\\\ { { \\phi _ { c r o s s } ( { \\bf f } _ { t } ^ { a } , { \\bf F } ^ { v } , { \\bf F } ^ { v } ) = \\mathrm { S o f t m a x } ( \\frac { { \\bf f } _ { t } ^ { a } { \\bf F } ^ { v } ^ { \\top } } { \\sqrt { d } } ) { \\bf F } ^ { v } , } } \\end{array}\n$$",
|
| 269 |
+
"text_format": "latex",
|
| 270 |
+
"bbox": [
|
| 271 |
+
352,
|
| 272 |
+
263,
|
| 273 |
+
645,
|
| 274 |
+
339
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 3
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "where $\\phi _ { s e l f } ( \\cdot )$ and $\\phi _ { c r o s s } ( \\cdot )$ are self-attention and cross-modality attention functions respectively. They perform dot-product on features across time stamps by using non-shared MLPs. Then the jointly aggregated representations are described as follows: ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
342,
|
| 284 |
+
828,
|
| 285 |
+
385
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 3
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "equation",
|
| 291 |
+
"img_path": "images/e6cff82b396fe130840dfd8f000dea5c20b6fe84a3191f893872089e8a3c5a7d.jpg",
|
| 292 |
+
"text": "$$\n\\begin{array} { r } { \\hat { \\mathbf { f } } _ { t } ^ { a } = \\mathbf { f } _ { t } ^ { a } + \\phi _ { s e l f } ( \\mathbf { f } _ { t } ^ { a } , \\mathbf { F } ^ { a } , \\mathbf { F } ^ { a } ) + \\phi _ { c r o s s } ( \\mathbf { f } _ { t } ^ { a } , \\mathbf { F } ^ { v } , \\mathbf { F } ^ { v } ) , } \\\\ { \\hat { \\mathbf { f } } _ { t } ^ { v } = \\mathbf { f } _ { t } ^ { v } + \\phi _ { s e l f } ( \\mathbf { f } _ { t } ^ { v } , \\mathbf { F } ^ { v } , \\mathbf { F } ^ { v } ) + \\phi _ { c r o s s } ( \\mathbf { f } _ { t } ^ { v } , \\mathbf { F } ^ { a } , \\mathbf { F } ^ { a } ) , } \\end{array}\n$$",
|
| 293 |
+
"text_format": "latex",
|
| 294 |
+
"bbox": [
|
| 295 |
+
326,
|
| 296 |
+
390,
|
| 297 |
+
668,
|
| 298 |
+
434
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 3
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "With the aggregated audio and visual features $\\hat { \\mathbf { f } } _ { t } ^ { a }$ and $\\hat { \\mathbf { f } } _ { t } ^ { v }$ , we can obtain the frame-wise event prediction $\\hat { \\mathbf { p } } _ { t } ^ { a } \\in \\mathbb { R } ^ { 1 \\times \\widetilde { C } }$ and $\\hat { \\mathbf { p } } _ { t } ^ { v } \\in \\mathbb { R } ^ { 1 \\times C }$ , and the attention weights computed by MLPs and normalized by a softmax function for audio, visual, and audio-visual streams (i.e., $\\mathbf { w } _ { t } ^ { a } \\in \\mathbb { R } ^ { 1 \\times C }$ , $\\mathbf { w } _ { t } ^ { v } \\in \\mathbb { R } ^ { 1 \\times C }$ , and $\\mathbf { w } _ { t } ^ { a v } \\in \\mathbb { R } ^ { 2 \\times C } ,$ ). Then the video-level prediction is gathered with the MMIL pooling: ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
173,
|
| 307 |
+
445,
|
| 308 |
+
825,
|
| 309 |
+
503
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "equation",
|
| 315 |
+
"img_path": "images/55d25e95859dcdbc0e18dcaa2f5b054e82fd68aa4b4e701a080a2cb7163a0878.jpg",
|
| 316 |
+
"text": "$$\n\\bar { \\mathbf { p } } ^ { a } = \\sum _ { t = 1 } ^ { T } \\mathbf { w } _ { t } ^ { a } \\hat { \\mathbf { p } } _ { t } ^ { a } , \\bar { \\mathbf { p } } ^ { v } = \\sum _ { t = 1 } ^ { T } \\mathbf { w } _ { t } ^ { v } \\hat { \\mathbf { p } } _ { t } ^ { v } , \\mathrm { a n d } \\bar { \\mathbf { p } } ^ { a v } = \\sum _ { t = 1 } ^ { T } \\mathbf { w } _ { t } ^ { a v } [ 0 ] \\mathbf { w } _ { t } ^ { a } \\hat { \\mathbf { p } } _ { t } ^ { a } + \\mathbf { w } _ { t } ^ { a v } [ 1 ] \\mathbf { w } _ { t } ^ { v } \\hat { \\mathbf { p } } _ { t } ^ { v } .\n$$",
|
| 317 |
+
"text_format": "latex",
|
| 318 |
+
"bbox": [
|
| 319 |
+
214,
|
| 320 |
+
508,
|
| 321 |
+
766,
|
| 322 |
+
553
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "The model can then be optimized using the binary cross-entropy loss function between $\\bar { \\bf p }$ and a video-level weak label $\\bar { \\mathbf { y } } \\in \\mathbb { R } ^ { 1 \\times C }$ , which does not indicate time boundaries and modalities for events. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
556,
|
| 332 |
+
825,
|
| 333 |
+
585
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "3.2 Cross-Modality Co-Occurrence ",
|
| 340 |
+
"text_level": 1,
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
601,
|
| 344 |
+
431,
|
| 345 |
+
616
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 3
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "Videos with multi-label events contain rich information among event categories because the related events are likely to present at the same time. The correlation is useful for models to robustly predict the presence or absence of events. ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
173,
|
| 354 |
+
626,
|
| 355 |
+
826,
|
| 356 |
+
667
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "Similar to [46], to explicitly model the relationship between event categories in different modalities, we first obtain the representations for each class and then measure the correlation. We note that the class relationships may be different in audio and visual modalities. That is why the work [46] cannot be directly applied to audio-visual video parsing since audio or visual events can be partially or jointly presented at a single frame. Thus, jointly understanding the class relationship within a modality and across two modalities can benefit the audio-visual video parsing task. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
173,
|
| 365 |
+
674,
|
| 366 |
+
825,
|
| 367 |
+
758
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "In order to map the frame-wise audio and visual features into class-level ones, the nonlinear transformation with MLPs is formulated as follows: ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
174,
|
| 376 |
+
763,
|
| 377 |
+
825,
|
| 378 |
+
791
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "equation",
|
| 384 |
+
"img_path": "images/7d313b9172ca9b6250573624cb928ff08260ac3770f3f987b57f8e82d08c0916.jpg",
|
| 385 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { a } _ { t , c } = \\operatorname { R e L U } ( \\hat { \\mathbf { f } } _ { t } ^ { a } \\mathbf { M } _ { c } ^ { a } + \\mathbf { b } _ { c } ^ { a } ) , } \\\\ { \\mathbf { v } _ { t , c } = \\operatorname { R e L U } ( \\hat { \\mathbf { f } } _ { t } ^ { v } \\mathbf { M } _ { c } ^ { v } + \\mathbf { b } _ { c } ^ { v } ) , } \\end{array}\n$$",
|
| 386 |
+
"text_format": "latex",
|
| 387 |
+
"bbox": [
|
| 388 |
+
403,
|
| 389 |
+
795,
|
| 390 |
+
593,
|
| 391 |
+
839
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "where $\\mathbf { a } _ { t , c }$ and $\\mathbf { v } _ { t , c }$ are audio and visual class-level features for class $c$ at time $t$ with dimension $1 \\times d _ { c }$ , respectively. The weights and biases for class $c$ for audio and visual features are denoted as $\\mathbf { M } _ { c } ^ { a }$ $\\mathbf { \\Psi } _ { : } ^ { i } , \\mathbf { M } _ { c } ^ { i } \\in \\mathbb { R } ^ { d \\times } \\mathbf { \\tilde { { d } } } _ { c }$ and ${ \\bf b } _ { c } ^ { a }$ $\\mathbf { \\bar { b } } _ { c } ^ { v } \\in \\mathbb { R } ^ { 1 \\times d _ { c } }$ . With class-level representations, we can further model the relationship between event categories within and across modalities by self-attention and crossmodality co-attention mechanism: ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
173,
|
| 400 |
+
842,
|
| 401 |
+
825,
|
| 402 |
+
911
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "equation",
|
| 408 |
+
"img_path": "images/72881a6d61d9ee642027dbd9fe83a19d454f3be0d7ee0d0382843a0d8348f6b1.jpg",
|
| 409 |
+
"text": "$$\n\\begin{array} { r } { \\hat { \\mathbf { a } } _ { t , c } = \\mathbf { a } _ { t , c } + \\phi _ { s e l f } ( \\mathbf { a } _ { t , c } , \\mathbf { A } _ { t } , \\mathbf { A } _ { t } ) + \\phi _ { c r o s s } ( \\mathbf { a } _ { t , c } , \\mathbf { V } _ { t } , \\mathbf { V } _ { t } ) , } \\\\ { \\hat { \\mathbf { v } } _ { t , c } = \\mathbf { v } _ { t , c } + \\phi _ { s e l f } ( \\mathbf { v } _ { t , c } , \\mathbf { V } _ { t } , \\mathbf { V } _ { t } ) + \\phi _ { c r o s s } ( \\mathbf { v } _ { t , c } , \\mathbf { A } _ { t } , \\mathbf { A } _ { t } ) , } \\end{array}\n$$",
|
| 410 |
+
"text_format": "latex",
|
| 411 |
+
"bbox": [
|
| 412 |
+
305,
|
| 413 |
+
87,
|
| 414 |
+
687,
|
| 415 |
+
123
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "where $\\mathbf { A } _ { t } = \\{ \\mathbf { a } _ { t , 1 } , \\dotsc , \\mathbf { a } _ { t , C } \\}$ and $\\mathbf { V } _ { t } = \\{ \\mathbf { v } _ { t , 1 } , \\dots , \\mathbf { v } _ { t , C } \\}$ are sets of audio and visual class features at time $t$ . $\\hat { \\mathbf { a } } _ { t , c }$ and $\\hat { \\mathbf { v } } _ { t , c }$ are now co-occcurence features that consider the relationships between categories within and across modalities. We can then predict the probability for each event at time $t$ by MLPs and aggregate every segment-wise predictions into video-level ones i.e., ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
173,
|
| 424 |
+
126,
|
| 425 |
+
825,
|
| 426 |
+
183
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 4
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "equation",
|
| 432 |
+
"img_path": "images/c29410692dc2863506c070ce822f56ae4879f19b55b5ec100c21bc53504c3d84.jpg",
|
| 433 |
+
"text": "$$\n\\begin{array} { r l } & { \\hat { \\mathbf { p } } _ { t } ^ { a } = \\sigma ( \\mathrm { M L P } _ { a } ( \\{ \\hat { \\mathbf { a } } _ { t , 1 } , \\dots , \\hat { \\mathbf { a } } _ { t , C } \\} ) ) , \\quad \\hat { \\mathbf { p } } _ { t } ^ { v } = \\sigma ( \\mathrm { M L P } _ { v } ( \\{ \\hat { \\mathbf { v } } _ { t , 1 } , \\dots , \\hat { \\mathbf { v } } _ { t , C } \\} ) ) , } \\\\ & { \\bar { \\mathbf { p } } ^ { a } , \\bar { \\mathbf { p } } ^ { v } , \\bar { \\mathbf { p } } ^ { a v } = \\mathrm { M M I L } ( \\{ \\hat { \\mathbf { p } } _ { 1 } ^ { a } , \\dots , \\hat { \\mathbf { p } } _ { T } ^ { a } \\} , \\{ \\hat { \\mathbf { p } } _ { 1 } ^ { v } , \\dots , \\hat { \\mathbf { p } } _ { T } ^ { v } \\} ) } \\end{array}\n$$",
|
| 434 |
+
"text_format": "latex",
|
| 435 |
+
"bbox": [
|
| 436 |
+
253,
|
| 437 |
+
185,
|
| 438 |
+
740,
|
| 439 |
+
223
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "where $\\sigma$ is the sigmoid function, and $\\mathrm { M M L } ( \\cdot )$ is the multi-modal multiple instance learning pooling described in Eq. 3 taking all segment-wise predictions as inputs. The video-level prediction can be optimized by the binary cross-entropy loss function with a video-level weak label $\\bar { \\mathbf { y } }$ . ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
173,
|
| 448 |
+
226,
|
| 449 |
+
825,
|
| 450 |
+
268
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 4
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "3.3 Shared Cross-Modality Semantics across Videos ",
|
| 457 |
+
"text_level": 1,
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
284,
|
| 461 |
+
547,
|
| 462 |
+
299
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "The information across different videos provides rich supervisory signals that benefit the training of weakly-supervised audio-visual video parsing. By observing videos in a training batch, we can discover both the common and diverse event semantics. With video-level labels, we can initially associate related and irrelevant videos. In order to obtain a discriminative categorical representation, we would like to encourage audio and visual representations from related events to be similar and differentiate those from irrelevant videos. However, targeting at segment-wise representations with specific events is difficult due to the lack of temporal annotations. Therefore, we seek event-related frames through the weights from MMIL pooling in Eq. 3: ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
173,
|
| 471 |
+
309,
|
| 472 |
+
825,
|
| 473 |
+
421
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "equation",
|
| 479 |
+
"img_path": "images/4b75402bbc144e55bc1f513cac29fe6ded89ed203a5d73acdcd8a4f394e79fba.jpg",
|
| 480 |
+
"text": "$$\n\\tilde { \\mathbf { f } } ^ { a } = \\sum _ { t = 1 } ^ { T } \\Big [ \\frac { \\exp \\bigl ( g \\bigl ( \\bar { \\mathbf { y } } \\odot \\mathbf { w } _ { t } ^ { a } \\bigr ) \\bigr ) } { \\sum _ { t ^ { \\prime } = 1 } ^ { T } \\exp \\bigl ( g \\bigl ( \\bar { \\mathbf { y } } \\odot \\mathbf { w } _ { t ^ { \\prime } } ^ { a } \\bigr ) \\bigr ) } \\hat { \\mathbf { f } } _ { t } ^ { a } \\Big ] , \\quad \\tilde { \\mathbf { f } } ^ { v } = \\sum _ { t = 1 } ^ { T } \\Big [ \\frac { \\exp \\bigl ( g \\bigl ( \\bar { \\mathbf { y } } \\odot \\mathbf { w } _ { t } ^ { v } \\bigr ) \\bigr ) } { \\sum _ { t ^ { \\prime } = 1 } ^ { T } \\exp \\bigl ( g \\bigl ( \\bar { \\mathbf { y } } \\odot \\mathbf { w } _ { t ^ { \\prime } } ^ { v } \\bigr ) \\bigr ) } \\hat { \\mathbf { f } } _ { t } ^ { v } \\Big ] ,\n$$",
|
| 481 |
+
"text_format": "latex",
|
| 482 |
+
"bbox": [
|
| 483 |
+
223,
|
| 484 |
+
424,
|
| 485 |
+
769,
|
| 486 |
+
468
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "where $\\odot$ and $g ( . )$ are element-wise dot product and summation function over all elements respectively. ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
173,
|
| 495 |
+
472,
|
| 496 |
+
823,
|
| 497 |
+
486
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "With video-level labels and features ${ \\tilde { \\mathbf { f } } } ^ { a }$ and $\\tilde { \\mathbf { f } } ^ { v }$ ), we adopt contrastive learning [47, 48, 49] to encourage features across modalities with the same event category (at least one) to be close and those with different events to be far away from each other. We leverage all $n$ videos in a batch to explore diverse semantics, where the sets of audio and visual features are denoted as $\\{ \\widetilde { \\bf f } _ { ( 0 ) } ^ { a } , . . . , \\widetilde { \\bf f } _ { ( n ) } ^ { a } \\}$ and $\\{ \\tilde { \\mathbf { f } } _ { ( 0 ) } ^ { v } , . . . , \\tilde { \\mathbf { f } } _ { ( n ) } ^ { v } \\}$ respectively with video-level labels $\\left\\{ \\bar { \\mathbf { y } } _ { ( 0 ) } , . . . , \\bar { \\mathbf { y } } _ { ( n ) } \\right\\}$ . The relationship across videos can be optimized by the proposed training objective as follows: ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
173,
|
| 506 |
+
492,
|
| 507 |
+
825,
|
| 508 |
+
588
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "equation",
|
| 514 |
+
"img_path": "images/575eda778d80d968a5746712c2c81b94feb4fdca31b45c4f7807df8f1f5230ba.jpg",
|
| 515 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { c o n t r a s t } } = - \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\Big [ \\log \\frac { \\sum _ { j = 1 } ^ { n } f ( \\bar { \\bf y } _ { i } \\cdot \\bar { \\bf y } _ { j } ) \\exp ( \\tilde { \\bf f } _ { ( i ) } ^ { a } \\cdot \\tilde { \\bf f } _ { ( j ) } ^ { v } / \\tau ) } { \\sum _ { j = 1 } ^ { n } \\exp ( \\tilde { \\bf f } _ { ( i ) } ^ { a } \\cdot \\tilde { \\bf f } _ { ( j ) } ^ { v } / \\tau ) } \\Big ] ,\n$$",
|
| 516 |
+
"text_format": "latex",
|
| 517 |
+
"bbox": [
|
| 518 |
+
292,
|
| 519 |
+
592,
|
| 520 |
+
704,
|
| 521 |
+
636
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 4
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "where $f ( \\cdot )$ is a clipping function that clips values over 1, and $\\tau$ denotes a hyper-parameter controlling the temperature. Thus, the proposed method can be optimized by joint the binary cross-entropy loss mentioned in Section 3.1 and the contrastive learning loss in Eq. 8. Our training strategy can exploit cross-modality information across videos and event categories to understand common semantics while ignoring irrelevant ones. ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
640,
|
| 531 |
+
825,
|
| 532 |
+
709
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "4 Experimental Results ",
|
| 539 |
+
"text_level": 1,
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
727,
|
| 543 |
+
385,
|
| 544 |
+
744
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Datasets. We use the Look, Listen and Parse (LLP) Dataset [4] for all experiments. The LLP dataset consists of 11, 849 10-seconds video clips annotated with 25 event categories. It covers various real-life scenes such as speech, music performances, car, cheering, dog, etc. Particularly, there are 7202 video clips labeled with more than one event category. We use the 10000 video clips with only video-level event annotations for model training. The detailed annotations (e.g., individual audio and visual events per second) are available for the remaining 1849 validation and test videos. For all experiments, we use the official data splits from the LLP dataset. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
173,
|
| 553 |
+
761,
|
| 554 |
+
826,
|
| 555 |
+
859
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Evaluation Metrics. Following previous work [4, 6], we adopt F-scores as the evaluation metrics. Note that all types of events (audio, visual, and audio-visual) are measured under both segmentlevel and event-level metrics. The segment-level metrics can evaluate snippet-wise prediction results. As for the event-level metrics, the clips are extracted by concatenating positive consecutive segments in the same events. Then, we compute the event-level F-scores with $\\mathrm { m I o U } = 0 . 5$ as the threshold. Furthermore, the overall Type $\\ @ \\mathbf { A V }$ performance on audio-visual scene is also considered by computing the averaged audio, visual, and audio-visual event evaluation results. Instead of directly averaging results from different event types, Event@AV considers all audio and visual event categories for each sample. ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
868,
|
| 565 |
+
825,
|
| 566 |
+
911
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "table",
|
| 572 |
+
"img_path": "images/084b18971d504f27393e74bd41c53c9cc07fa98ff1b6441b9862e1db77699897.jpg",
|
| 573 |
+
"table_caption": [
|
| 574 |
+
"Table 1: Quantitative results of weakly-supervised audio-visual video parsing. We evaluate all methods on the LLP dataset [4] with F-scores in five different event types and two kinds of segments. The first row indicates five different event types (audio, visual, audio-visual, Type@AV, and Event@AV). In the second row, two kinds of segments are shown: Seg. and Event are segmentlevel and event-level; and $^ *$ indicates only label refinement is utilized for fair comparisons. "
|
| 575 |
+
],
|
| 576 |
+
"table_footnote": [],
|
| 577 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Audio</td><td colspan=\"2\">Visual</td><td colspan=\"2\">Audio-visual</td><td colspan=\"2\">Type@AV</td><td colspan=\"2\">Event@AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>AVE [5]</td><td>47.2</td><td>40.4</td><td>37.1</td><td>34.7</td><td>35.4</td><td>31.6</td><td>39.9</td><td>35.5</td><td>41.6</td><td>36.5</td></tr><tr><td>AVSDN [2]</td><td>47.8</td><td>34.1</td><td>52.0</td><td>46.3</td><td>37.1</td><td>26.5</td><td>45.7</td><td>35.6</td><td>50.8</td><td>37.7</td></tr><tr><td>AVSDN + Ours</td><td>48.3</td><td>41.2</td><td>52.4</td><td>48.5</td><td>46.9</td><td>40.0</td><td>49.2</td><td>43.2</td><td>53.2</td><td>40.1</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + Ours</td><td>59.2</td><td>51.3</td><td>59.9</td><td>55.5</td><td>53.4</td><td>46.2</td><td>57.5</td><td>51.0</td><td>58.1</td><td>49.7</td></tr><tr><td>MA [6]</td><td>60.3</td><td>53.6</td><td>60.0</td><td>56.4</td><td>55.1</td><td>49.0</td><td>58.9</td><td>53.0</td><td>57.9</td><td>50.6</td></tr><tr><td>MA*</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA*+Ours</td><td>60.8</td><td>53.8</td><td>63.5</td><td>58.9</td><td>57.0</td><td>49.5</td><td>60.5</td><td>54.0</td><td>59.5</td><td>52.1</td></tr></table>",
|
| 578 |
+
"bbox": [
|
| 579 |
+
179,
|
| 580 |
+
166,
|
| 581 |
+
813,
|
| 582 |
+
320
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "",
|
| 589 |
+
"bbox": [
|
| 590 |
+
173,
|
| 591 |
+
348,
|
| 592 |
+
825,
|
| 593 |
+
433
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "Implementation Details. We implement the proposed method using PyTorch [50], and conduct the training and evaluation processes on a single NVIDIA GTX 1080 Ti GPU with 11 GB memory. Following [4, 6], we use the same visual and audio encoders for fair comparisons. We adopt both ResNet-152 [51] pre-trained on ImageNet [52] and 3D ResNet [53] pre-trained on Kinetics-400 [54] as visual feature extractors. Visual frames are sampled at 8 fps and their 2D and 3D visual features are extracted. The 2D and 3D visual features are concatenated and then processed by an MLP as the segment-wise representations. As for audio data, we utilize VGGish [55] pre-trained on AudioSet [56] to extract 128-dimensional audio features. The code and models are publicly available. ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
174,
|
| 602 |
+
441,
|
| 603 |
+
825,
|
| 604 |
+
553
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "Evaluated methods. We compare the proposed method based on several baselines to the following weakly-unsupervised approaches to the audio-visual video parsing task: ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
173,
|
| 613 |
+
563,
|
| 614 |
+
823,
|
| 615 |
+
590
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "• AVE [5] consists of an audio-guided co-attention mechanism to adaptively learn the sounding regions. We note that AVE [5] deals with the audio-visual event localization task. Thus, we follow [4] and add additional audio and visual parsing branches for the weakly-supervised audio-visual video parsing task as a baseline. \n• AVSDN [2] is a sequence-to-sequence-based model to integrate global audio and visual features to local ones. Since AVSDN [2] also deals with the audio-visual event localization task, we make the same modifications to AVSDN as those to AVE. \n• HAN [4] is a multi-modal multiple instance learning-based method with a hybrid attention network. \n• MA [6] reports the state-of-the-art performance on the weakly-supervised audio-visual video parsing task. It is a method based on HAN with the label refinement and the audio-visual contrastive learning differentiating temporal segments. ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
217,
|
| 624 |
+
597,
|
| 625 |
+
825,
|
| 626 |
+
763
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "4.1 Quantitative Evaluation ",
|
| 633 |
+
"text_level": 1,
|
| 634 |
+
"bbox": [
|
| 635 |
+
174,
|
| 636 |
+
786,
|
| 637 |
+
380,
|
| 638 |
+
801
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "Table 1 shows the quantitative comparisons on the LLP dataset [4]. The proposed method performs favorably against the competing approaches on the weakly-supervised audio-visual video parsing task. Since our method can be easily extended to existing methods, we extend the proposed on three baselines. The third, fifth, and last rows in Table 1 indicate that the proposed method generally benefits three baselines on several metrics of the audio-visual video parsing task by a large margin. We note that $\\mathbf { M A } ^ { * }$ [6] only utilizes label refinement to refine labels for each modality, and temporal difference audio-visual contrastive learning [6] is not implemented. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
814,
|
| 648 |
+
825,
|
| 649 |
+
911
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 5
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "table",
|
| 655 |
+
"img_path": "images/3c22ac25c5061d220d82ddeb6f86b8e8cce2d27d122739cee7c6f25d9429a171.jpg",
|
| 656 |
+
"table_caption": [
|
| 657 |
+
"Table 2: Ablation study. We investigate the effect of using different design components in the proposed method. We show how proposed cross-modality co-occurrence (CM-Co) in Section 3.3 and shared cross-modality semantics across videos (CM-S) module in Section 3.2 improve the baselines. "
|
| 658 |
+
],
|
| 659 |
+
"table_footnote": [],
|
| 660 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Audio</td><td colspan=\"2\">Visual</td><td colspan=\"2\">Audio-visual</td><td colspan=\"2\">Type@AV</td><td colspan=\"2\">Event@AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + CM-S</td><td>58.1</td><td>49.6</td><td>58.3</td><td>53.6</td><td>53.2</td><td>46.3</td><td>56.5</td><td>49.8</td><td>55.9</td><td>47.5</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>51.4</td><td>57.4</td><td>52.4</td><td>51.9</td><td>44.2</td><td>56.3</td><td>49.3</td><td>57.4</td><td>48.5</td></tr><tr><td>HAN + Ours</td><td>59.2</td><td>51.3</td><td>59.9</td><td>55.5</td><td>53.4</td><td>46.2</td><td>57.5</td><td>51.0</td><td>58.1</td><td>49.7</td></tr><tr><td>MA [28]</td><td>60.3</td><td>53.6</td><td>60.0</td><td>56.4</td><td>55.1</td><td>49.0</td><td>58.9</td><td>53.0</td><td>57.9</td><td>50.6</td></tr><tr><td>MA + CM-Co</td><td>61.1</td><td>53.3</td><td>61.7</td><td>57.3</td><td>56.3</td><td>49.0</td><td>59.7</td><td>53.0</td><td>58.9</td><td>51.2</td></tr><tr><td>MA*</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA* + CM-S</td><td>60.4</td><td>53.5</td><td>60.7</td><td>56.5</td><td>55.8</td><td>47.5</td><td>58.9</td><td>52.5</td><td>58.6</td><td>51.0</td></tr><tr><td>MA* + CM-Co</td><td>60.5</td><td>53.6</td><td>61.3</td><td>56.5</td><td>54.9</td><td>46.7</td><td>58.9</td><td>52.3</td><td>59.1</td><td>51.4</td></tr><tr><td>MA* +Ours</td><td>60.8</td><td>53.8</td><td>63.5</td><td>58.9</td><td>57.0</td><td>49.5</td><td>60.5</td><td>54.0</td><td>59.5</td><td>52.1</td></tr></table>",
|
| 661 |
+
"bbox": [
|
| 662 |
+
173,
|
| 663 |
+
137,
|
| 664 |
+
846,
|
| 665 |
+
333
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 6
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "We notice that our method significantly improves baselines in the metrics of visual, audio-visual, Type $@ \\mathrm { A V } ,$ and Event $@$ AV. By observing the class distribution of training sets, we find that $3 1 \\%$ , $7 \\%$ , and $9 \\%$ training videos contain speech, singing, and violin events. These events are more likely to present in the audio modality. Therefore, the video-level labels would limit the performance regarding visual events. The proposed method can leverage additional cross-video and cross-modality supervisory signals to explore common semantics, which can improve results in vision-related metrics. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
356,
|
| 675 |
+
826,
|
| 676 |
+
454
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "4.2 Ablation Study ",
|
| 683 |
+
"text_level": 1,
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
470,
|
| 687 |
+
318,
|
| 688 |
+
486
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Cross-Modality Co-Occurrence and Semantics across Video. We conduct the ablation study to analyze the individual impact of each developed component in the proposed method. The results are presented in Table 2. CM-Co represents the usage of the cross-modality co-occurrence module described in Section 3.2, which leverages the relationship between categories within and cross modalities. CM-S indicates the shared cross-modality semantics across videos module described in Section 3.3, which considers all audio and visual information across videos in a batch. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
501,
|
| 698 |
+
825,
|
| 699 |
+
584
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "In Table 2, we note that both CM-S and CM-Co can improve baselines in several metrics. By exploring common semantics among training videos (CM-S), we improve the performance on visual and audio-visual evaluation by a large margin. Such a strategy can exploit additional information from videos to address the potential drawback of video-level labels described in Section 4.1. Furthermore, the proposed cross-modality co-occurrence module (CM-Co) also presents favorable results. We note that the significant improvement in Event@AV evaluation with the usage of CM-Co can verify the efficacy of considering the relationship between categories within and across modalities. Since Event $@$ AV considers all audio and visual events for the F-score (e.g., truth positive from both audio and visual events), the improvement of Event@AV indicates our cross-modality co-occurrence can perform well on video parsing when events present in an audio or a visual modality. ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
589,
|
| 709 |
+
825,
|
| 710 |
+
728
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "In the second group of the evaluated methods in Table 2, we verify if the proposed CM-S works better than the contrastive learning method in MA. We perform our CM-S on the MA model. The CM-S exploits information across different videos to address the issue that audio and visual tracks may not be synchronized. Instead, the contrastive learning method in MA is developed based on the assumption of synchronization to associate the audio-visual representation in a single video. Since our CM-S learns diverse and common semantics, it is effective and complementary to the contrastive learning approach in MA performing on a single video. We note that our CM-S generally improves the performance over all segment-level metrics, which supports our claim. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
734,
|
| 720 |
+
825,
|
| 721 |
+
847
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 6
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Self-attention and Cross-Modality Co-attention in Co-Occurrence. Since our cross-modality co-occurrence module exploits self-attention among class-level features in the same modality and cross-modality co-attention on cross-modality class-level representations to model the relationship between categories in the same and different modalities. Taking class-level audio features in Eq. 5 as an example, the class-level self-attention and cross-modality co-attention are $\\mathrm { a t t n } ( \\mathbf { a } _ { t , c } , \\mathbf { A } _ { t } , \\mathbf { A } _ { t } )$ and $\\operatorname { a t t n } ( \\mathbf { a } _ { t , c } , \\mathbf { V } _ { t } , \\mathbf { V } _ { t } ) .$ , respectively. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
176,
|
| 730 |
+
856,
|
| 731 |
+
823,
|
| 732 |
+
911
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 6
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "table",
|
| 738 |
+
"img_path": "images/6d2690df8819bd3c6c2c8effa4b228db879b7c72a522eedf405aa11e230fcf3e.jpg",
|
| 739 |
+
"table_caption": [
|
| 740 |
+
"Table 3: Ablation study. We investigate the effect of different developed mechanisms in the proposed cross-modality co-occurrence (CM-Co) module in Section 3.2. In Eq. 5, class-level features are processed by self-attention and cross-modality co-attention mechanisms. A Only and $\\mathbf { V }$ Only indicate only self-attention performs for individual audio and visual events respectively. AV denotes performing self-attention for audio and visual events. CM-Co is the proposed method that considers relationship between categories within and cross modalities by both self-attention and cross-modality co-attention mechanisms. "
|
| 741 |
+
],
|
| 742 |
+
"table_footnote": [],
|
| 743 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Audio</td><td colspan=\"2\">Visual</td><td colspan=\"2\">Audio-visual</td><td colspan=\"2\">Type@AV</td><td colspan=\"2\">Event@ AV</td></tr><tr><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td><td>Seg.</td><td>Event</td></tr><tr><td>HAN [4]</td><td>60.1</td><td>51.3</td><td>52.9</td><td>48.9</td><td>48.9</td><td>43.0</td><td>54.0</td><td>47.7</td><td>55.4</td><td>48.0</td></tr><tr><td>HAN + A Only</td><td>60.5</td><td>52.3</td><td>49.8</td><td>43.9</td><td>45.6</td><td>38.3</td><td>52.0</td><td>44.8</td><td>55.7</td><td>45.9</td></tr><tr><td>HAN + V Only</td><td>56.1</td><td>44.5</td><td>56.8</td><td>53.2</td><td>49.7</td><td>40.7</td><td>54.2</td><td>46.1</td><td>54.1</td><td>44.6</td></tr><tr><td>HAN + AV</td><td>59.5</td><td>50.3</td><td>55.1</td><td>50.5</td><td>48.6</td><td>40.3</td><td>54.4</td><td>47.0</td><td>56.0</td><td>47.4</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>51.4</td><td>57.4</td><td>52.4</td><td>51.9</td><td>44.2</td><td>56.3</td><td>49.3</td><td>57.4</td><td>48.5</td></tr><tr><td>MA*[6]</td><td>59.8</td><td>52.1</td><td>57.5</td><td>54.4</td><td>52.6</td><td>45.8</td><td>56.6</td><td>50.8</td><td>56.6</td><td>49.4</td></tr><tr><td>MA*+ A Only</td><td>60.7</td><td>52.7</td><td>53.9</td><td>47.9</td><td>50.1</td><td>42.2</td><td>54.9</td><td>47.6</td><td>57.0</td><td>47.1</td></tr><tr><td>MA* + V Only</td><td>46.8</td><td>34.4</td><td>60.8</td><td>57.0</td><td>42.8</td><td>31.1</td><td>50.1</td><td>40.9</td><td>52.6</td><td>40.4</td></tr><tr><td>MA*+ AV</td><td>58.3</td><td>50.4</td><td>59.4</td><td>55.2</td><td>53.9</td><td>46.9</td><td>57.2</td><td>50.8</td><td>56.7</td><td>48.5</td></tr><tr><td>MA*+ CM-Co</td><td>60.5</td><td>53.6</td><td>61.3</td><td>56.5</td><td>54.9</td><td>46.7</td><td>58.9</td><td>52.3</td><td>59.1</td><td>51.4</td></tr></table>",
|
| 744 |
+
"bbox": [
|
| 745 |
+
173,
|
| 746 |
+
193,
|
| 747 |
+
826,
|
| 748 |
+
382
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 7
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "table",
|
| 754 |
+
"img_path": "images/89f0e2785faa97f098bed9fc6e71d1f81760b2cf7c930cd9333bc2b3bd34ab9b.jpg",
|
| 755 |
+
"table_caption": [
|
| 756 |
+
"Table 4: Ablation study. We evaluate the proposed method in accuracy, efficiency, and model sizes. We show the numbers of parameters and FLOPs for the proposed cross-modality co-occurrence (CM-Co) and HAN [4] with a few layers. ",
|
| 757 |
+
"Note that the results are all in the segment level. "
|
| 758 |
+
],
|
| 759 |
+
"table_footnote": [],
|
| 760 |
+
"table_body": "<table><tr><td>Method</td><td>Audio</td><td>Visual</td><td>Audio-visual</td><td>Type@AV</td><td>Event@AV</td><td>GFLOPs</td><td>Params</td></tr><tr><td>HAN 1 Layer</td><td>60.1</td><td>52.9</td><td>48.9</td><td>54.0</td><td>55.4</td><td>6.63</td><td>2.4M</td></tr><tr><td>HAN 2 Layers</td><td>58.2</td><td>55.4</td><td>50.6</td><td>54.7</td><td>54.9</td><td>7.28</td><td>2.9M</td></tr><tr><td>HAN 3 Layers</td><td>58.1</td><td>55.2</td><td>50.3</td><td>54.5</td><td>54.6</td><td>7.97</td><td>3.5M</td></tr><tr><td>HAN + CM-Co</td><td>59.7</td><td>57.4</td><td>51.9</td><td>56.3</td><td>57.4</td><td>6.99</td><td>2.8M</td></tr></table>",
|
| 761 |
+
"bbox": [
|
| 762 |
+
184,
|
| 763 |
+
462,
|
| 764 |
+
812,
|
| 765 |
+
541
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 7
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "",
|
| 772 |
+
"bbox": [
|
| 773 |
+
176,
|
| 774 |
+
569,
|
| 775 |
+
823,
|
| 776 |
+
598
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 7
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "Table 3 presents the results in various modifications of the cross-modality co-occurrence module. We note that the design of co-occurrence in the same and cross modalities can generally improve the results in several metrics. We also evaluate the co-occurrence module in a single modality. The results are shown in the second, third, seventh, and eighth rows in Table 3, where A Only and $\\mathbf { V }$ Only indicate the co-occurrence module only leverages the relationship between categories in audio or visual data respectively. As the results shown in the second and seventh rows, training with co-occurrence in audio events only (i.e., A Only) can slightly improve the performance on audio events. Similarly, considering visual event only (i.e., V Only) can benefit the results regarding visual events. Furthermore, the co-occurrence for both audio and visual categories (AV) in the fourth and ninth rows can contribute to the results in general metrics such as Type $@$ AV and Event $@ \\mathrm { A V } .$ . We then further consider the correlation between events across modalities. That is the cross-modality co-occurrence module (CM-Co) in the fifth and tenth rows. The results can confirm the efficacy of the proposed cross-modality co-occurrence module in all metrics except segment-level audio events caused by similar reasons discussed in Section 4.1. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
173,
|
| 785 |
+
604,
|
| 786 |
+
825,
|
| 787 |
+
797
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 7
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "Model Capacity. Since our cross-modality co-occurrence module leverages class-level representations, it would increase the capability of models on capturing information. For fair comparisons, we add extra parameters to HAN [4] to analyze whether more parameters can contribute to performance gain. Specifically, we increase the number of layers in its transformer-based feature aggregation to 2 and 3, respectively. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
174,
|
| 796 |
+
808,
|
| 797 |
+
825,
|
| 798 |
+
877
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 7
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "In Table 4, we report the results in accuracy, computational costs, and model sizes. The first three rows show the performance of HAN with different numbers of layers. We note that HAN with one extra layer has more parameters than the proposed co-occurrence module. However, the results of HAN with extra layers indicate that using more parameters/layers for HAN does not improve the performance. The proposed cross-modality co-occurrence module enhances HAN more effectively. ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
883,
|
| 808 |
+
820,
|
| 809 |
+
911
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 7
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "image",
|
| 815 |
+
"img_path": "images/3a3e5bddfd4d0b8b3df955da6588c994004175b863c809999ccff152b083248e.jpg",
|
| 816 |
+
"image_caption": [
|
| 817 |
+
"Figure 2: Qualitative comparisons. We compare the proposed method with the state-of-the-art weakly-supervised audio-visual video parsing method on the LLP dataset [4]. The frame-wise annotations are shown in gray and purple bars. The gray bar denotes visual events, and the purple bar represents audio events. GT_V and GT_A are the ground-truth visual and audio events respectively. Our results are shown in the green block, and the results by the competing method, MA [6], are present in the blue block. "
|
| 818 |
+
],
|
| 819 |
+
"image_footnote": [],
|
| 820 |
+
"bbox": [
|
| 821 |
+
189,
|
| 822 |
+
87,
|
| 823 |
+
802,
|
| 824 |
+
333
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 8
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "image",
|
| 830 |
+
"img_path": "images/21cead53b19ede061abdc05068f5d07b4594cffe449abe292ef47d1a62306ab2.jpg",
|
| 831 |
+
"image_caption": [
|
| 832 |
+
"Figure 3: Audio feature distribution by using t-SNE. The upper figure shows the distribution by our method. The lower figure presents that by $\\mathbf { M A } ^ { * }$ . The legend lists all event combinations. "
|
| 833 |
+
],
|
| 834 |
+
"image_footnote": [],
|
| 835 |
+
"bbox": [
|
| 836 |
+
235,
|
| 837 |
+
435,
|
| 838 |
+
754,
|
| 839 |
+
688
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 8
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "",
|
| 846 |
+
"bbox": [
|
| 847 |
+
174,
|
| 848 |
+
756,
|
| 849 |
+
825,
|
| 850 |
+
797
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 8
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "text",
|
| 856 |
+
"text": "4.3 Qualitative Evaluation ",
|
| 857 |
+
"text_level": 1,
|
| 858 |
+
"bbox": [
|
| 859 |
+
176,
|
| 860 |
+
815,
|
| 861 |
+
370,
|
| 862 |
+
830
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 8
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "Qualitative Results. We present the qualitative results of the evaluated methods in Figure 2. GT_V and GT_A show the ground-truth annotations for visual and audio events, respectively. Pred_V and Pred_A present the predictions made by our method and the state-of-the-art competing method, MA [6], respectively. Our results are shown in the green block, while the results of MA are present in the blue block. In general, our method presents more accurate predictions in both audio and visual events than MA. We note that the whole violin is shown after 7 seconds. That would hamper models for understanding visual events e.g., MA predicts wrong results on violin visual events before 6 seconds. Since our method leverages the relationship between categories, it can still predict correct temporal boundaries for guitar events by jointly considering cello events in the videos. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
842,
|
| 872 |
+
825,
|
| 873 |
+
911
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 8
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "image",
|
| 879 |
+
"img_path": "images/ed423064930570c6abeaee1db5cadd585aab212a9182498adeec79bb58aa61f7.jpg",
|
| 880 |
+
"image_caption": [
|
| 881 |
+
"Figure 4: Visual feature distribution by using t-SNE. The upper figure shows the distribution by our method. The lower figure presents that by MA∗. The legend lists all event combinations. "
|
| 882 |
+
],
|
| 883 |
+
"image_footnote": [],
|
| 884 |
+
"bbox": [
|
| 885 |
+
235,
|
| 886 |
+
90,
|
| 887 |
+
754,
|
| 888 |
+
342
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 9
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
420,
|
| 898 |
+
825,
|
| 899 |
+
476
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 9
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Feature Distribution Visualized by t-SNE. We apply t-SNE to the aggregated audio and visual features from each segment described in Eq. 2. The visualization results are present in Figure 3 and Figure 4, respectively. The legends list all the combinations of multiple labels. For example, in Figure 3, audio events of singing are present as blue spots, and the mixed sounds of singing and violin are shown as purple spots. We note that the related events including multiple events are shown in similar colors. In Figure 4, the proposed method achieves better performance in the sense that similar color spots are closer than the spots in $\\mathbf { M A } ^ { * }$ . ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
503,
|
| 909 |
+
825,
|
| 910 |
+
602
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 9
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "5 Conclusions ",
|
| 917 |
+
"text_level": 1,
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
633,
|
| 921 |
+
305,
|
| 922 |
+
651
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 9
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "In this paper, we present a novel audio-visual video parsing framework in a weakly-supervised manner that can be applied to existing methods. We propose two modules to exploit the relationship across videos, modalities, and event categories, and explore additional supervisory signals that can benefit audio-visual video parsing. The shared cross-modality semantics module leverages common and diverse event semantics across videos to learn robust cross-modality representations that facilitate models to identify audio, visual, and audio-visual events. Furthermore, the cross-modality co-occurrence module aims to learn the relationship between event categories. It helps localize segments of target events and can exclude irrelevant ones by performing self-attention and crossmodality co-attention on class-wise features, Extensive experimental results show that our approach substantially improves several baselines and performs favorably against the state-of-the-art methods. ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
174,
|
| 931 |
+
674,
|
| 932 |
+
825,
|
| 933 |
+
813
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 9
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Acknowledgments. This work was supported in part by the Ministry of Science and Technology under grants 109- 2221-E-009-113-MY3, 110-2628-E-A49-008, and 110-2634-F007-015. It was also funded in part by Qualcomm through a Taiwan University Research Collaboration Project, the Higher Education Sprout Project of the National Yang Ming Chiao Tung University, and Ministry of Education. ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
176,
|
| 942 |
+
842,
|
| 943 |
+
823,
|
| 944 |
+
911
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 9
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "References \n[1] Jun-Tae Lee, Mihir Jain, Hyoungwoo Park, and Sungrack Yun. Cross-attentional audio-visual fusion for weakly-supervised action localization. In ICLR, 2021. 1, 2 [2] Yan-Bo Lin, Yu-Jhe Li, and Yu-Chiang Frank Wang. Dual-modality seq2seq network for audio-visual event localization. In ICASSP, 2019. 1, 2, 6 \n[3] Yan-Bo Lin and Yu-Chiang Frank Wang. Audiovisual transformer with instance attention for audio-visual event localization. In ACCV, 2020. 1, 2 \n[4] Yapeng Tian, Dingzeyu Li, and Chenliang Xu. Unified multisensory perception: Weaklysupervised audio-visual video parsing. In ECCV, 2020. 1, 2, 3, 4, 5, 6, 7, 8, 9 \n[5] Yapeng Tian, Jing Shi, Bochen Li, Zhiyao Duan, and Chenliang Xu. Audio-visual event localization in unconstrained videos. In ECCV, 2018. 1, 2, 6 \n[6] Yu Wu and Yi Yang. Exploring heterogeneous clues for weakly-supervised audio-visual video parsing. In CVPR, 2021. 1, 2, 3, 5, 6, 8, 9 \n[7] Yu Wu, Linchao Zhu, Yan Yan, and Yi Yang. Dual attention matching for audio-visual event localization. In ICCV, 2019. 1, 2 \n[8] Relja Arandjelovic and Andrew Zisserman. Look, listen and learn. In ICCV, 2017. 2 \n[9] Relja Arandjelovic and Andrew Zisserman. Objects that sound. In ´ ECCV, 2018. 2 \n[10] Yusuf Aytar, Carl Vondrick, and Antonio Torralba. Soundnet: Learning sound representations from unlabeled video. In NeurIPS, 2016. 2 \n[11] Andrew Owens, Jiajun Wu, Josh H McDermott, William T Freeman, and Antonio Torralba. Ambient sound provides supervision for visual learning. In ECCV, 2016. 2 \n[12] Jean-Baptiste Alayrac, Adrià Recasens, Rosalia Schneider, Relja Arandjelovic, Jason Ramapu- ´ ram, Jeffrey De Fauw, Lucas Smaira, Sander Dieleman, and Andrew Zisserman. Self-supervised multimodal versatile networks. In NeurIPS, 2020. 2 \n[13] Humam Alwassel, Dhruv Mahajan, Lorenzo Torresani, Bernard Ghanem, and Du Tran. Selfsupervised learning by cross-modal audio-video clustering. In NeurIPS, 2020. 2 \n[14] Yuki M Asano, Mandela Patrick, Christian Rupprecht, and Andrea Vedaldi. Labelling unlabelled videos from scratch with multi-modal self-supervision. In NeurIPS, 2020. 2 \n[15] Shuang Ma, Zhaoyang Zeng, Daniel McDuff, and Yale Song. Active contrastive learning of audio-visual video representations. In ICLR, 2021. 2 \n[16] Pedro Morgado, Nuno Vasconcelos, and Ishan Misra. Audio-visual instance discrimination with cross-modal agreement. In CVPR, 2021. 2 \n[17] Pedro Morgado, Ishan Misra, and Nuno Vasconcelos. Robust audio-visual instance discrimination. In CVPR, 2021. 2 \n[18] Andrew Owens and Alexei A. Efros. Audio-visual scene analysis with self-supervised multisensory features. In ECCV, 2018. 2 \n[19] Bruno Korbar, Du Tran, and Lorenzo Torresani. Cooperative learning of audio and video models from self-supervised synchronization. In NeurIPS, 2018. 2 \n[20] Jinxing Zhou, Liang Zheng, Yiran Zhong, Shijie Hao, and Meng Wang. Positive sample propagation along the audio-visual event line. In CVPR, 2021. 2 \n[21] Chuang Gan, Deng Huang, Hang Zhao, Joshua B Tenenbaum, and Antonio Torralba. Music gesture for visual sound separation. In CVPR, 2020. 2 \n[22] Ruohan Gao, Rogerio Feris, and Kristen Grauman. Learning to separate object sounds by watching unlabeled video. In ECCV, 2018. 2 \n[23] Ruohan Gao and Kristen Grauman. Co-separating sounds of visual objects. In ICCV, 2019. 2 \n[24] Xudong Xu, Bo Dai, and Dahua Lin. Recursive visual sound separation using minus-plus net. In ICCV, 2019. 2 \n[25] Hang Zhao, Chuang Gan, Wei-Chiu Ma, and Antonio Torralba. The sound of motions. In ICCV, 2019. 2 \n[26] Hang Zhao, Chuang Gan, Andrew Rouditchenko, Carl Vondrick, Josh McDermott, and Antonio Torralba. The sound of pixels. In ECCV, 2018. 2 \n[27] Efthymios Tzinis, Scott Wisdom, Aren Jansen, Shawn Hershey, Tal Remez, Dan Ellis, and John R. Hershey. Into the wild with audioscope: Unsupervised audio-visual separation of on-screen sounds. In ICLR, 2021. 2 \n[28] Yapeng Tian, Di Hu, and Chenliang Xu. Cyclic co-learning of sounding object visual grounding and sound separation. In CVPR, 2021. 2, 7 \n[29] Ruohan Gao and Kristen Grauman. Visualvoice: Audio-visual speech separation with crossmodal consistency. In CVPR, 2021. 2 \n[30] Ruohan Gao, Tae-Hyun Oh, Kristen Grauman, and Lorenzo Torresani. Listen to look: Action recognition by previewing audio. In CVPR, 2020. 2 \n[31] Ruohan Gao and Kristen Grauman. 2.5d-visual-sound. In CVPR, 2019. 2 \n[32] Pedro Morgado, Yi Li, and Nuno Vasconcelos. Learning representations from audio-visual spatial alignment. In NeurIPS, 2020. 2 \n[33] Pedro Morgado, Nuno Nvasconcelos, Timothy Langlois, and Oliver Wang. Self-supervised generation of spatial audio for 360 video. In NeurIPS, 2018. 2 \n[34] Karren Yang, Bryan Russell, and Justin Salamon. Telling left from right: Learning spatial correspondence of sight and sound. In CVPR, 2020. 2 \n[35] Hang Zhou, Xudong Xu, Dahua Lin, Xiaogang Wang, and Ziwei Liu. Sep-stereo: Visually guided stereophonic audio generation by associating source separation. In ECCV, 2020. 2 \n[36] Yan-Bo Lin and Yu-Chiang Frank Wang. Exploiting audio-visual consistency with partial supervision for spatial audio generation. In AAAI, 2021. 2 \n[37] Xudong Xu, Hang Zhou, Ziwei Liu, Bo Dai, Xiaogang Wang, and Dahua Lin. Visually informed binaural audio generation without binaural audios. In CVPR, 2021. 2 \n[38] Yu-Ding Lu, Hsin-Ying Lee, Hung-Yu Tseng, and Ming-Hsuan Yang. Self-supervised audio spatialization with correspondence classifier. In ICIP, 2019. 2 \n[39] Triantafyllos Afouras, Andrew Owens, Joon Son Chung, and Andrew Zisserman. Selfsupervised learning of audio-visual objects from video. In ECCV, 2020. 2 \n[40] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound source in visual scenes. In CVPR, 2018. 2 \n[41] Arda Senocak, Tae-Hyun Oh, Junsik Kim, Ming-Hsuan Yang, and In So Kweon. Learning to localize sound sources in visual scenes: Analysis and applications. TPAMI, 2019. 2 \n[42] Rui Qian, Di Hu, Heinrich Dinkel, Mengyue Wu, Ning Xu, and Weiyao Lin. Multiple sound sources localization from coarse to fine. In ECCV, 2020. 2 \n[43] Di Hu, Feiping Nie, and Xuelong Li. Deep multimodal clustering for unsupervised audiovisual learning. In CVPR, 2019. 2 \n[44] Di Hu, Rui Qian, Minyue Jiang, Xiao Tan, Shilei Wen, Errui Ding, Weiyao Lin, and Dejing Dou. Discriminative sounding objects localization via self-supervised audiovisual matching. In NeurIPS, 2020. 2 \n[45] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. 4 \n[46] Praveen Tirupattur, Kevin Duarte, Yogesh Rawat, and Mubarak Shah. Modeling multi-label action dependencies for temporal action localization. In CVPR, 2021. 4 \n[47] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv Preprint, 2018. 5 \n[48] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, 2018. 5 \n[49] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. 5 \n[50] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019. 6 \n[51] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 6 \n[52] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009. 6 \n[53] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In CVPR, 2018. 6 \n[54] João Carreira and Andrew Zisserman. Quo vadis, action recognition? A new model and the kinetics dataset. In CVPR, 2017. 6 \n[55] Shawn Hershey, Sourish Chaudhuri, Daniel P. W. Ellis, Jort F. Gemmeke, Aren Jansen, Channing Moore, Manoj Plakal, Devin Platt, Rif A. Saurous, Bryan Seybold, Malcolm Slaney, Ron Weiss, and Kevin Wilson. Cnn architectures for large-scale audio classification. In ICASSP, 2017. 6 \n[56] Jort F Gemmeke, Daniel PW Ellis, Dylan Freedman, Aren Jansen, Wade Lawrence, R Channing Moore, Manoj Plakal, and Marvin Ritter. Audio set: An ontology and human-labeled dataset for audio events. In ICASSP, 2017. 6 ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
171,
|
| 953 |
+
60,
|
| 954 |
+
830,
|
| 955 |
+
914
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 10
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "",
|
| 962 |
+
"bbox": [
|
| 963 |
+
171,
|
| 964 |
+
50,
|
| 965 |
+
828,
|
| 966 |
+
916
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 11
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "",
|
| 973 |
+
"bbox": [
|
| 974 |
+
171,
|
| 975 |
+
87,
|
| 976 |
+
826,
|
| 977 |
+
603
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 12
|
| 980 |
+
}
|
| 981 |
+
]
|
parse/train/V5V1vGrI2z/V5V1vGrI2z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/V5V1vGrI2z/V5V1vGrI2z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1ejxnCctX/r1ejxnCctX.md
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# REPRESENTATION FLOW FOR ACTION RECOGNITION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this paper, we propose a convolutional layer inspired by optical flow algorithms to learn motion representations. Our representation flow layer is a fully-differentiable layer designed to capture the ‘flow’ of any representation channel within a convolutional neural network for action recognition. Its parameters for iterative flow optimization are learned in an end-to-end fashion together with the other model parameters, maximizing the action recognition performance. Furthermore, we newly introduce the concept of learning ‘flow of flow’ representations by stacking multiple representation flow layers. We conducted extensive experimental evaluations, confirming its advantages over previous recognition models using traditional optical flows in both computational speed and performance.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Activity recognition is an important problem in computer vision with many societal applications including surveillance, robot perception, smart environment/city, and more. Use of video convolutional neural networks (CNNs) have become the standard method for this task, as they can learn more optimal representations for the problem. Two-stream networks (Simonyan & Zisserman, 2014), taking both RGB frames and optical flow as input, provide state-of-the-art results and have been extremely popular. 3-D spatio-temporal CNN models, e.g., (Carreira & Zisserman, 2017), with XYT convolutions also found that such two-stream design $\mathrm { R G B } +$ optical flow) increases their accuracy. Abstracting both appearance information and explicit motion flow benefits the recognition.
|
| 12 |
+
|
| 13 |
+
However, optical flow is expensive to compute. It often requires hundreds of optimization iterations every frame, and causes learning of two separate CNN streams (i.e., RGB-stream and flow-stream). This requires significant computation cost and a great increase in the number of model parameters to learn. Further, this means that the model needs to compute optical flow every frame even during inference and run two parallel CNNs, limiting its real-time applications.
|
| 14 |
+
|
| 15 |
+
There were previous works to learn representations capturing motion information without using optical flow as input, such as motion feature networks (Lee et al., 2018) and ActionFlowNet $( \mathrm { N g }$ et al., 2018). However, although they were more advantageous in terms of the number of model parameters and computation speed, they suffered from inferior performance compared to two-stream models on public datasets such as Kinetics (Kay et al., 2017) and HMDB (Kuehne et al., 2011). We hypothesize that the iterative optimization performed by optical flow methods produces an important feature that other methods fail to capture.
|
| 16 |
+
|
| 17 |
+
In this paper, we propose a CNN layer inspired by optical flow algorithms to learn motion representations for action recognition without having to compute optical flow. Our representation flow layer is a fully-differentiable layer designed to capture ‘flow’ of any representation channels within the model. Its parameters for iterative flow optimization are learned together with other model parameters, maximizing the action recognition performance. This is also done without having/training multiple network streams, reducing the number of parameters in the model. Further, we newly introduce the concept of learning ‘flow of flow’ representations by stacking multiple representation flow layers. We conduct extensive action classification experimental evaluation of where to compute optical flow and various hyperparameters, learning parameters, and fusion techniques.
|
| 18 |
+
|
| 19 |
+
# 2 RELATED WORKS
|
| 20 |
+
|
| 21 |
+
Capturing motion and temporal information has been studied for activity recognition. Early, handcrafted approaches such as dense trajectories (Wang et al., 2011) captured motion information by tracking points through time. Many algorithms have been developed to compute optical flow as a way to capture motion in video (Fortun et al., 2015). Other works have explored learning the ordering of frames to summarize a video in a single ‘dynamic image’ used for activity recognition (Bilen et al., 2016).
|
| 22 |
+
|
| 23 |
+
Convolutional neural networks (CNNs) have been applied to activity recognition. Initial approaches explored methods to combine temporal information based on pooling or temporal convolution $( \mathrm { N g }$ et al., 2015; Karpathy et al., 2014). Other works have explored using attention to capture sub-events of activities (Piergiovanni et al., 2017). Two-stream networks have been very popular: they take input of a single RGB frame (captures appearance information) and a stack of optical flow frames (captures motion information). Often, the two network streams of the model are separately trained and the final predictions are averaged together (Simonyan & Zisserman, 2014). There were other two-stream CNN works exploring different ways to ‘fuse’ or combine the motion CNN with the appearance CNN (Feichtenhofer et al., 2016b;a). There were also large 3D XYT CNNs learning spatio-temporal patterns (Carreira & Zisserman, 2017; Xie et al., 2017), enabled by large video datasets such as Kinetics (Kay et al., 2017). However, these approaches still rely on optical flow input to maximize their accuracies.
|
| 24 |
+
|
| 25 |
+
Recently, there have been works on learning motion representations. Fan et al. (2018) implemented the TVL-1 method using deep learning libraries to increase its computational speed and allow for learning some parameters. The result was fed to a two-stream CNN for the recognition. Several works explored learning a CNN to predict optical flow, which also can be used for action recognition (Dosovitskiy et al., 2015; Hui et al., 2018; Gao et al., 2018; Sun et al., 2018; $\mathrm { N g }$ et al., 2018). Lee et al. (2018) shifted features from sequential frames to capture motion in a non-iterative fashion. Sun et al. (2018) proposed an optical flow guided feature (OFF) by computing the gradients of representations and temporal differences, but required RGB, optical flow and RGB differences to achieve state-of-the-art performance.
|
| 26 |
+
|
| 27 |
+
Unlike prior works, our proposed model with the representation flow layers relies only on the RGB input, learning much fewer parameters while correctly representing motion with the iterative optimization. It is significantly faster than the video CNNs requiring optical flow input, while still performing as good as or even better than the two-stream models. It clearly outperforms existing motion representation methods including (Fan et al., 2018) in both speed and accuracy, which we experimentally confirm.
|
| 28 |
+
|
| 29 |
+
# 3 APPROACH
|
| 30 |
+
|
| 31 |
+
Our method is a fully-differentiable convolutional layer inspired by optical flow algorithms. Unlike traditional optical flow methods, all the parameters of our method can be learned end-to-end, maximizing action recognition performance. Furthermore, our layer is designed to compute the ‘flow’ of any representation channels, instead of limiting its input to be traditional RGB frames.
|
| 32 |
+
|
| 33 |
+
# 3.1 REVIEW OF OPTICAL FLOW METHODS
|
| 34 |
+
|
| 35 |
+
Before describing our layer, we briefly review how optical flow is computed. Optical flow methods are based on the brightness consistency assumption. That is, given sequential images $I _ { 1 } , I _ { 2 }$ , a point $x , y$ in $I _ { 1 }$ is located at $x + \Delta x , y + \Delta y$ in $I _ { 2 }$ , or $I _ { 1 } ( x , y ) = I _ { 2 } ( x + \Delta x , y + \Delta y )$ . These methods assume small movements between frames, so this can be approximated with a Taylor series: $\begin{array} { r } { I _ { 2 } = I _ { 1 } + \frac { \delta I } { \delta x } \Delta x + \frac { \delta I } { \delta y } \Delta y } \end{array}$ , where $\pmb { u } = [ \Delta x , \Delta y ]$ . These equations are solved for $\textbf { \em u }$ to obtain the flow, but can only be approximated due to the two unknowns.
|
| 36 |
+
|
| 37 |
+
The standard, variational methods for approximating optical flow (e.g., Brox (Brox et al., 2004) and TVL-1 (Zach et al., 2007) methods) take sequential images $I _ { 1 } , I _ { 2 }$ as input. Variational optical flow methods estimate the flow field, $\textbf { \em u }$ , using an iterative optimization method. The tensor $\pmb { u } \in \dot { \mathcal { R } } ^ { 2 \times W \times H }$ is the $x$ and $y$ directional flow for every location in the image. Taking two sequential images as input, $I _ { 1 } , I _ { 2 }$ , the methods first compute the gradient in both $x$ and $y$ directions: $\nabla I _ { 2 }$ . The initial flow is set to 0, ${ \pmb u } = 0$ . Then $\rho$ , the residual, can be computed. For efficiency, the constant part of $\rho$ , $\rho _ { c }$ is pre-computed:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\rho _ { c } = I _ { 2 } - \nabla _ { x } I _ { 2 } \cdot \pmb { u } _ { x } - \nabla _ { y } I _ { 2 } \cdot \pmb { u } _ { y } - I _ { 1 }
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
The iterative optimization is then performed, each updating $\textbf { \em u }$ :
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\begin{array} { r l } & { \rho = \rho _ { c } + \nabla _ { x } I _ { 2 } \cdot \boldsymbol { u } _ { x } + \nabla _ { y } I _ { 2 } \cdot \boldsymbol { u } _ { y } } \\ & { \boldsymbol { v } = \left\{ \begin{array} { l l } { \boldsymbol { u } + \lambda \theta \nabla I _ { 2 } } & { \rho < - \lambda \theta | \nabla I _ { 2 } | ^ { 2 } } \\ { \boldsymbol { u } - \lambda \theta \nabla I _ { 2 } } & { \rho > \lambda \theta | \nabla I _ { 2 } | ^ { 2 } } \end{array} \right. } \\ & { \boldsymbol { u } - \rho \frac { \nabla I _ { 2 } } { | I _ { 2 } | ^ { 2 } } \quad \mathrm { o t h e r w i s e } } \\ & { \boldsymbol { u } = \boldsymbol { v } + \boldsymbol { \theta } \cdot \mathrm { d i v e r g e n c e } ( p ) } \\ & { p = \frac { p + \frac { \tau } { \theta } \nabla u } { 1 + \frac { \tau } { \theta } | \nabla u | } } \end{array}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
Here $\theta$ controls the weight of the TVL-1 regularization term, $\lambda$ controls the smoothness of the output and $\tau$ controls the time-step. These hyperparameters are manually set. $\pmb { p }$ is the dual vector fields, which are used to minimize the energy. The divergence of $\pmb { p }$ , or backward difference, is computed as:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\mathrm { d i v e r g e n c e } ( p ) = p _ { x , i , j } - p _ { x , i - 1 , j } + p _ { y , i , j } - p _ { y , i , j - 1 }
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
where ${ \pmb p } _ { x }$ is the $x$ direction and $\mathbf { \Delta } _ { p _ { y } }$ is the $y$ direction, and $\pmb { p }$ contains all the spatial locations in the image.
|
| 56 |
+
|
| 57 |
+
The goal is to minimize the total variational energy:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
E = | \nabla \boldsymbol { u } | + \lambda | I _ { 1 } \ast \boldsymbol { u } + I _ { 1 } - I _ { 2 } |
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
Approaches run this iterative optimization for multiple input scales, from small to large, and use the previous flow estimate $\textbf { \em u }$ to warp $I _ { 2 }$ at the larger scale, providing a coarse-to-fine optical flow estimation. These standard approaches require multiple scales and warpings to obtain a good flow estimate, taking thousands of iterations.
|
| 64 |
+
|
| 65 |
+
# 3.2 REPRESENTATION FLOW LAYER
|
| 66 |
+
|
| 67 |
+
Inspired by the optical flow algorithm, we design a fully-differentiable, learnable, convolutional representation flow layer by extending the general algorithm outlined above. The main differences are that (i) we allow the layer to capture flow of any CNN feature map, and that (ii) we learn its parameters including $\theta , \lambda .$ , and $\tau$ as well as the divergence weights. We also make several key changes to reduce computation time: (1) we only use a single scale, (2) we do not perform any warping, and (3) we compute the flow on a CNN tensor with a smaller spatial size. Multiple scale and warping are computationally expensive, each requiring many iterations. By learning the flow parameters, we can eliminate the need for these additional steps. Our method is applied on lower resolution CNN feature maps, instead of the RGB input, and is trained in an end-to-end fashion. This not only benefits its speed, but also allows the model to learn a motion representation optimized for activity recognition.
|
| 68 |
+
|
| 69 |
+
We note that the brightness consistency assumption can similarly be applied to CNN feature maps. Instead of capturing pixel brightness, we capture feature value consistency. This same assumption holds because CNNs are designed to be spatially invariant; i.e., they produce roughly the same feature value for the same object as it moves.
|
| 70 |
+
|
| 71 |
+
Given the input $F _ { 1 } , F _ { 2 }$ , a single channel from sequential CNN feature maps (or input image), we compute the gradient by convolving the input feature maps with the Sobel filter:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\nabla F _ { 2 x } = \left[ \begin{array} { l l l } { 1 } & { 0 } & { - 1 } \\ { 2 } & { 0 } & { - 2 } \\ { 1 } & { 0 } & { - 1 } \end{array} \right] * F _ { 2 } , \nabla F _ { 2 y } = \left[ \begin{array} { l l l } { 1 } & { 2 } & { 1 } \\ { 0 } & { 0 } & { 0 } \\ { - 1 } & { - 2 } & { - 1 } \end{array} \right] * F _ { 2 }
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
We set $\pmb { u } = 0 , \pmb { p } = 0$ initially, each having width and height matching the input, then we can compute $\rho _ { c } = F _ { 2 } - F _ { 1 }$ . Next, we run the iterative optimization for a fixed number of iterations,
|
| 78 |
+
|
| 79 |
+
following Eqs. 2-5. To compute the divergence, we zero-pad $\pmb { p }$ on the first column ( $\mathbf { \dot { x } }$ -direction) or row (y-direction) then convolve it with weights, $w _ { x } , w _ { y }$ to compute Eq. 6:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathrm { d i v e r g e n c e } ( p ) = p _ { x } * w _ { x } + p _ { y } * w _ { y }
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where initially $w _ { x } = [ - 1 \quad 1 ]$ and $w _ { y } = { \binom { - 1 } { 1 } }$ . Note that these parameters are differentiable and can be learned with backpropagation. We compute $\nabla \boldsymbol { u }$ as
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\nabla \pmb { u } _ { x } = \left[ \begin{array} { c c c } { 1 } & { 0 } & { - 1 } \\ { 2 } & { 0 } & { - 2 } \\ { 1 } & { 0 } & { - 1 } \end{array} \right] * \pmb { u } _ { x } , \nabla \pmb { u } _ { y } = \left[ \begin{array} { c c c } { 1 } & { 2 } & { 1 } \\ { 0 } & { 0 } & { 0 } \\ { - 1 } & { - 2 } & { - 1 } \end{array} \right] * \pmb { u } _ { y }
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
Algorithm 1 shows the process of our representation flow layer. Our flow layer with multiple iterations could also be interpreted as having a sequence of convolutional layers with each layer behavior dependent on its previous layer. Note that our method is fully differentiable and allows for the learning of all parameters, including $( \tau , \lambda , \theta )$ and the divergence weights $( w _ { x } , w _ { y } )$ .
|
| 92 |
+
|
| 93 |
+
<table><tr><td colspan="2">Algorithm1 Method for the representation flow layer</td></tr><tr><td colspan="2">function REPRESENTATIONFLOW(F1,F2)</td></tr><tr><td colspan="2">u=0,p=0</td></tr><tr><td colspan="2">Compute image/feature map gradients (Eq. 8)</td></tr><tr><td colspan="2">Pc=F2-F1</td></tr><tr><td colspan="2">for n iterations do</td></tr><tr><td rowspan="3">ρ= Pc+VxF2 :Ux +VyF2 :Uy</td><td></td></tr><tr><td>(u+λ0VF2 ρ<-X0|VF2l²</td></tr><tr><td>v ={u- λ0VF2 ρ> λ0|VF2|²</td></tr><tr><td rowspan="2">u-PF VF2 u = v + 0 · divergence(p)</td><td>otherwise</td></tr><tr><td></td></tr><tr><td>p+Vu p=</td><td></td></tr><tr><td colspan="2">1+Vu end for</td></tr><tr><td colspan="2">return u</td></tr><tr><td colspan="2">end function</td></tr></table>
|
| 94 |
+
|
| 95 |
+
Computing Flow-of-Flow Standard optical flow algorithms compute the flow for two sequential images. An optical flow image contains information about the direction and magnitude of the motion. Applying the flow algorithm directly on two flow images means that we are tracking pixels/locations showing similar motion in two consecutive frames. In practice, this typically leads to a worse performance due to inconsistent optical flow results and non-rigid motion. On the other hand, our representation flow layer is trained for the data, and is able to suppress such inconsistency and better abstract/represent motion by having multiple regular convolutional layers between the flow layers. Fig. 4 illustrates such design, which we confirm its benefits in the experiment section. By stacking multiple representation flow layers, our model is able to capture longer temporal intervals and consider locations with motion consistency.
|
| 96 |
+
|
| 97 |
+
Representation Flow within a CNN CNN feature maps may have hundreds or thousands of channels and our representation flow layer computes the flow for each channel, which can take significant time and memory. To address this, we apply a convolutional layer to reduce the number of channels from $C$ to $C ^ { \prime }$ before the flow layer (note that $C ^ { \prime }$ is still significantly more than traditional optical flow algorithms, which are only applied to a single channel, greyscale images). For numerical stability, we normalize this feature map to be in [0, 255], matching standard image values. We found that the CNN features were quite small on average $( < 0 . 5 )$ and the TVL-1 algorithm default hyperparameters are designed for standard images values in [0, 255], thus we found this normalization step important. Using the normalized feature, we compute the flow and stack the $x$ and $y$ flows, resulting in $2 C ^ { \prime }$ channels. Finally, we apply another convolutional layer to convert from $2 C ^ { \prime }$ channels to $C$ channels. This is passed to the remaining CNN layers for the prediction. We average predictions from many frames to classify each video, as shown in Fig. 1.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 1: Illustration of a video-CNN with our representation flow layer. The CNN computes intermediate feature maps, and sequential feature maps are used as input to the flow layer. The outputs of the flow layer are used for prediction.
|
| 101 |
+
|
| 102 |
+
# 3.3 ACTIVITY RECOGNITION MODEL
|
| 103 |
+
|
| 104 |
+
We place the representation flow layer inside a standard activity recognition model taking a $T \times C \times$ $W \times H$ tensor as input to a CNN. Here, $C$ is 3 as our model uses direct RGB frames as an input. $T$ is the number of frames the model processes, and $W$ and $H$ are the spatial dims. The CNN outputs a prediction per-timestep and these are temporally averaged to produce a probability for each class. The model is trained to minimize cross-entropy:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
L ( v , c ) = - \sum _ { i } ^ { K } ( c = = i ) \log ( C N N ( v ) _ { i } )
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $v$ is the video, $C N N$ is the classification CNN and $c$ represents which of the $K$ classes $v$ belongs. That is, the parameters in our flow layers are trained together with the other layers, so that it maximizes the final classification accuracy.
|
| 111 |
+
|
| 112 |
+
# 4 EXPERIMENTS
|
| 113 |
+
|
| 114 |
+
Implementation details We implemented our representation flow layer in PyTorch and will release our code and models upon publication. As training CNNs on videos is computationally expensive, we used a subset of the Kinetics dataset (Kay et al., 2017) with $1 0 0 \mathrm { k }$ videos from 150 classes: Tiny-Kinetics. This allowed testing many models more quickly, while still having sufficient data to train large CNNs. For most experiments, we used ResNet-34 (He et al., 2016) with input of size $1 6 \times 1 1 2 \times 1 1 2$ (i.e., 16 frames with spatial size of 112). As training video CNNs is computationally expensive, we used this smaller input, which reduces performance, but allowed us to use larger batch sizes and run many experiments more quickly. Our final models are trained on standard $2 2 4 \times 2 2 4$ images. See appendix A for specific training details.
|
| 115 |
+
|
| 116 |
+
Where to compute flow? To determine where in the network to compute the flow, we compare applying our flow layer on the RGB input, after the first conv. layer, and after the each of the 5 residual blocks. The results are shown in Table 1. We find that computing the flow on the input provides poor performance, similar to the performance of the flow-only networks, but there is a significant jump after even 1 layer, suggesting that computing the flow of a feature is beneficial, capturing both the appearance and motion information. However, after 4 layers, the performance begins to decline as the spatial information is too abstracted/compressed (due to pooling and large spatial receptive field size), and sequential features become very similar, containing less motion information. Note that our HMDB performance in this table is quite low compared to state-of-the-art
|
| 117 |
+
|
| 118 |
+
Table 1: Computing the optical flow representation after various number of CNN layers. Results are video classification accuracy on our Tiny-Kinetics and LowRes-HMDB51 datasets using 100 iterations to compute the flow representation.
|
| 119 |
+
Table 2: Comparison of learning different parameters. The flow was computed after Block 3 using 100 iterations.
|
| 120 |
+
|
| 121 |
+
<table><tr><td></td><td>Tiny-Kinetics</td><td>LowRes-HMDB</td></tr><tr><td>RGB CNN</td><td>55.2</td><td>35.5</td></tr><tr><td>Flow CNN</td><td>35.4</td><td>37.5</td></tr><tr><td>Two-Stream CNN</td><td>57.6</td><td>41.5</td></tr><tr><td>Flow Layer on RGB Input</td><td>37.4</td><td>40.5</td></tr><tr><td>After Block1</td><td>52.4</td><td>42.6</td></tr><tr><td>After Block 2</td><td>57.4</td><td>44.5</td></tr><tr><td>After Block 3</td><td>59.4</td><td>45.4</td></tr><tr><td>After Block 4</td><td>52.1</td><td>43.5</td></tr><tr><td>After Block 5</td><td>50.3</td><td>42.2</td></tr></table>
|
| 122 |
+
|
| 123 |
+
<table><tr><td></td><td>Tiny-Kinetics</td><td>LowRes-HMDB</td></tr><tr><td>None (all fixed)</td><td>59.4</td><td>45.4</td></tr><tr><td>Sobel kernels</td><td>58.5</td><td>43.5</td></tr><tr><td>Divergence (wx, wy)</td><td>60.2</td><td>46.4</td></tr><tr><td>T,入,θ</td><td>59.9</td><td>46.2</td></tr><tr><td>All</td><td>59.2</td><td>46.2</td></tr><tr><td>Divergence + T, 入,0</td><td>60.7</td><td>46.8</td></tr></table>
|
| 124 |
+
|
| 125 |
+
methods due to being trained from scratch using few frames and low spatial resolution $( 1 1 2 \times 1 1 2 )$ .
|
| 126 |
+
For the following experiments, unless otherwise noted, we apply the layer after the 3rd residual block.
|
| 127 |
+
|
| 128 |
+
What to learn? As our method is fully differentiable, we can learn any of the parameters, such as the kernels used to compute image gradients, the kernels for the divergence computation and even $\tau , \lambda , \theta$ . In Table 2, we compare the effects of learning different parameters. We find that learning the Sobel kernel reduces performance, but learning the divergence and $\tau , \lambda , \theta$ is beneficial.
|
| 129 |
+
|
| 130 |
+
How many iterations for flow? To confirm that the iterations are important and determine how many we need, we experiment with various numbers of iterations. We compare the number of iterations needed for both learning (divergence+ $\cdot \tau , \lambda , \theta )$ and not learning parameters. The flow is computed after 3 residual blocks. The results are shown in Table 3. We find that learning provides better performance with fewer iterations (similar to the finding in (Fan et al., 2018)), and that iteratively computing the feature is important. We use 10 or 20 iterations in the remaining experiments as they provide good perforamnce and are fast.
|
| 131 |
+
|
| 132 |
+
Two-stream fusion? Two-stream CNNs fusing both RGB and optical flow features has been heavily studied (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016b). Based on these works, we compare various ways of fusing RGB and our flow representation, shown in Fig. 2. We compare no fusion, late fusion (i.e., separate RGB and flow CNNs) and addition/multiplication/concatenation fusion. In Table 4, we compare different fusion methods for different locations in the network. We find that fusing RGB information is very important “when computing flow directly from RGB input”. However, it is not as beneficial when computing the optical flow of representations as the CNN has already abstracted much appearance information away. We found that concatenation of the RGB and flow features perform poorly compared to the others. We do not use two-stream fusion in any other experiments, as we found that computing the representation flow after the 3rd residual block provides sufficient performance.
|
| 133 |
+
|
| 134 |
+
Table 3: Effect of the number of iterations on our Tiny-Kinetics dataset for learning and not learning.
|
| 135 |
+
|
| 136 |
+
<table><tr><td></td><td>Not learned</td><td>Learned</td></tr><tr><td>1 iteration</td><td>46.7</td><td>49.5</td></tr><tr><td>5 iterations</td><td>51.3</td><td>55.4</td></tr><tr><td>10 iterations</td><td>52.4</td><td>59.4</td></tr><tr><td>20 iterations</td><td>53.6</td><td>60.7</td></tr><tr><td>50 iterations</td><td>59.2</td><td>60.9</td></tr><tr><td>100 iterations</td><td>59.4</td><td>60.7</td></tr></table>
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 2: Different approaches to fusing RGB and flow information. (a) No fusion (b) Late fusion (c) The circle represents elementwise addition/multiplication or concatenation.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 3: (a) RGB (b) Flow (c) Flow-of-Flow.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 4: Illustration of how our model computes the FoF.
|
| 148 |
+
Figure 5: Comparing the results of (b) TVL-1 and (c) our learned flow when applied to RGB images.
|
| 149 |
+
|
| 150 |
+
Flow-of-flow We can stack our layer multiple times, computing the flow-of-flow (FoF). This has the advantage of combining more temporal information into a single feature. Our results are shown in Table 5. Applying the TVL-1 algorithm twice gives quite poor performance, as optical flow features do not really satisfy the brightness consistency assumption, as they capture magnitude and direction of motion (shown in Fig. 3). Applying our representation flow layer twice performs significantly better than TVL-1 twice, but still worse than our baseline of not doing so. However, we can add a convolutional layer between the first and second flow layer, flow-conv-flow (FcF), (Fig. 4), allowing the model to better learn longer-term flow representations. We find this performs best, as this intermediate layer is able to smooth the flow and produce a better input for the representation flow layer. However, we find adding a third flow layer reduces performance as the motion representation becomes unreliable, due to the large spatial receptive field size.
|
| 151 |
+
|
| 152 |
+
Table 4: Different fusion methods for flow computed at different locations in the network on our Tiny-Kinetics dataset using 10 iterations and learning flow parameters.
|
| 153 |
+
|
| 154 |
+
<table><tr><td></td><td>RGB</td><td>1 Block</td><td>3 Blocks</td></tr><tr><td>None</td><td>37.4</td><td>52.4</td><td>59.4</td></tr><tr><td>Late</td><td>61.3</td><td>60.4</td><td>61.5</td></tr><tr><td>Add</td><td>59.7</td><td>57.2</td><td>56.5</td></tr><tr><td>Multiply</td><td>58.3</td><td>58.1</td><td>57.8</td></tr><tr><td>Layer + Multiply</td><td>60.1</td><td>61.7</td><td>61.7</td></tr><tr><td>Concat</td><td>42.4</td><td>48.5</td><td>47.6</td></tr></table>
|
| 155 |
+
|
| 156 |
+
Table 5: Computing the FoF representation. TVL-1 twice provides poor performance, using two flow layers with a conv. in between provides the best performance. Experiments used 10 iterations and learning flow parameters.
|
| 157 |
+
|
| 158 |
+
<table><tr><td></td><td>Tiny-Kinetics</td></tr><tr><td>TVL-1 twice</td><td>12.2</td></tr><tr><td>Single Flow Layer</td><td>59.4</td></tr><tr><td>Flow-of-Flow</td><td>47.2</td></tr><tr><td>Flow-Conv-Flow (FcF)</td><td>62.3</td></tr><tr><td>Flow-Conv-Flow-Conv-Flow</td><td>56.5</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Table 6: Flow using 3D ResNet-18.
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Tiny-Kinetics</td></tr><tr><td>RGB 3D ResNet-18 54.6</td></tr><tr><td>TVL-1 3D ResNet-18 37.6</td></tr><tr><td>Two-Stream 3DResNet 57.5</td></tr><tr><td>RGB-Only OFF (Sun et al., 2018) 54.8</td></tr><tr><td>Input (RGB) 38.5</td></tr><tr><td>After Block 1 58.4</td></tr><tr><td>After Block 3 59.7</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Table 7: Flow using $( 2 + 1 ) \mathrm { D }$ ResNet-18.
|
| 165 |
+
|
| 166 |
+
<table><tr><td></td><td>Tiny-Kinetics</td></tr><tr><td>RGB (2+1)D ResNet-18</td><td>53.4</td></tr><tr><td>TVL-1 (2+1)D ResNet-18</td><td>36.3</td></tr><tr><td>Two-Stream (2+1)D ResNet</td><td>55.6</td></tr><tr><td>RGB-Only OFF (Sun et al., 2018)</td><td>53.7</td></tr><tr><td>Input (RGB)</td><td>39.2</td></tr><tr><td>After Block1</td><td>57.3</td></tr><tr><td>After Block 3</td><td>60.7</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Flow of 3D CNN Feature Since 3D convolutions capture some temporal information, we test computing our flow representation on features from a 3D CNN. As 3D CNNs are expensive to train, we follow the method of Carreira & Zisserman (2017) to inflate a ResNet-18 pretrained on ImageNet to a 3D CNN for videos. We also compare to the $( 2 + 1 ) \mathrm { D }$ method of spatial conv. followed by temporal conv from (Xie et al., 2017), which produces a similar feature combining spatial and temporal information. We find our flow layer increases performance even with 3D and $( 2 + 1 ) \mathrm { D }$ CNNs already capturing some temporal information: Tables 6 and 7. These experiments used 10 iterations and learning the flow parameters. In this, FcF was not used.
|
| 169 |
+
|
| 170 |
+
We also compared to the OFF (Sun et al., 2018) using $( 2 + 1 ) \mathrm { D }$ and 3D CNNs. We observe that this method does not result in meaningful performance increases using CNNs that capture temporal information, while our approach does.
|
| 171 |
+
|
| 172 |
+
Comparison to other motion representations We compare to existing CNN-based motion representations methods to confirm that our iterative method to compute a representation is important. For these experiments, when available, we used code provided by the authors and otherwise implemented the methods ourselves. To better compare to existing works, we used $( 1 6 \times )$ $2 2 4 \times 2 2 4$ images. MFNet (Lee et al., 2018) captures motion by spatially shifting CNN feature maps, then summing the results, TVNet (Fan et al., 2018) applies a convolutional optical flow method to RGB inputs, and ActionFlowNet $\mathrm { N g }$ et al., 2018) trains a CNN to jointly predict optical flow and activity classes. We also compare to OFF (Sun et al., 2018) using only RGB inputs. Note that the HMDB performance in (Sun et al., 2018) is only reported using RGB, RGB-diff, and optical flow inputs, here we compare to RGB-only inputs. Our method, which applies the iterative optical flow method on CNN feature maps, performs the best.
|
| 173 |
+
|
| 174 |
+
Table 8: Comparisons to other CNN-based motion representations, using 10 iterations and learning flow parameters. This is without FcF and two-stream fusion.
|
| 175 |
+
|
| 176 |
+
<table><tr><td></td><td>Tiny-Kinetics</td><td>HMDB</td></tr><tr><td>ActionFlownet (Ng et al., 2018)</td><td>51.8</td><td>56.2</td></tr><tr><td>MFNet (Lee et al., 2018)</td><td>52.5</td><td>56.8</td></tr><tr><td>TVNet (Fan et al., 2018)</td><td>39.4</td><td>57.5</td></tr><tr><td>RGB-OFF (Sun et al., 2018)</td><td>55.6</td><td>56.9</td></tr><tr><td>Ours</td><td>61.1</td><td>65.4</td></tr></table>
|
| 177 |
+
|
| 178 |
+
Table 9: Comparison to the state-of-the-art action classifications. ‘HMDB $\mathrm { ( + K i n ) }$ ’ means that the model was pre-trained on Kinetics before training/testing with HMDB. Missing results are due to those papers not reporting that setting.
|
| 179 |
+
|
| 180 |
+
<table><tr><td></td><td>Kinetics</td><td>HMDB</td><td>HMDB(+Kin)</td><td>Run-time (ms)</td></tr><tr><td>2D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB</td><td>61.3</td><td>53.4</td><td></td><td>225±15</td></tr><tr><td>Flow</td><td>48.2</td><td>57.3</td><td></td><td>8039 ±140</td></tr><tr><td>Two-stream</td><td>64.5</td><td>62.4</td><td></td><td>8546 ±147</td></tr><tr><td>TVNet (+RGB) (Fan et al., 2018)</td><td>1</td><td>71.0</td><td></td><td>785 ±21</td></tr><tr><td>OFF (RGB Only) (Sun et al., 2018)</td><td>1</td><td>57.1</td><td></td><td>365±26</td></tr><tr><td>OFF (RGB + Flow + RGB Diff) (Sun et al., 2018)</td><td>-</td><td>74.2</td><td>-</td><td>9520 ±156</td></tr><tr><td>Ours (2D CNN + Rep.Flow)</td><td>68.5</td><td>73.5</td><td>76.4</td><td>524±24</td></tr><tr><td>Ours (2D CNN + FcF)</td><td>69.4</td><td>74.4</td><td>77.3</td><td>576±22</td></tr><tr><td>(2+1)D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB R(2+1)D (Tran et al., 2018)</td><td>74.3</td><td></td><td>74.5</td><td>471±18</td></tr><tr><td>Two-Stream R(2+1)D (Tran et al., 2018)</td><td>75.4</td><td></td><td>78.7</td><td>8623 ±152</td></tr><tr><td>Ours (2+1)D CNN + Rep. Flow)</td><td>75.5</td><td></td><td>77.1</td><td>622 ±23</td></tr><tr><td>Ours ((2+1)D CNN + FcF)</td><td>76.1</td><td></td><td>78.2</td><td>654±21</td></tr><tr><td>3D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB S3D (Xie et al., 2017)</td><td>74.7</td><td></td><td>75.9</td><td>525±22</td></tr><tr><td>Two-Stream S3D (Xie et al., 2017)</td><td>77.2</td><td>-</td><td>1</td><td>8886 ±162</td></tr><tr><td>I3D (RGB) (Carreira & Zisserman,2017)</td><td>71.1</td><td>49.8</td><td>74.3</td><td>594±23</td></tr><tr><td>I3D (Flow)</td><td>63.4</td><td>61.9</td><td>77.3</td><td>8845 ±148</td></tr><tr><td>I3D (Two-Stream)</td><td>74.2</td><td>66.4</td><td>80.7</td><td>9354 ±154</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Computation time We compare our representation flow to state-of-the-art two-stream approaches in terms of run-time and number of parameters. All timings were measured using a single Pascal Titan X GPU, for a batch of videos with size $3 2 \times 2 2 4 \times 2 2 4$ . The flow/two-stream CNNs include the time to run the TVL-1 algorithm (OpenCV GPU version) to compute the optical flow. All CNNs were based on the ResNet-34 architecture. As also shown in Table 9, our method is significantly faster than two-stream models relying on TVL-1 or other optical flow methods, while performing similarly or better. The number of parameters our model has is half of its two-stream competitors (e.g., 21M vs. 42M in the case of our 2D CNN).
|
| 183 |
+
|
| 184 |
+
Comparison to state-of-the-arts We also compared our action recognition accuracies with the state-of-the-arts on Kinetics and HMDB. For this, we train our models using $3 2 \times 2 2 4 \times 2 2 4$ inputs with the full kinetics dataset, using 8 V100s. We used the 2D ResNet-50 as the architecture. Based on our experiments, we applied our representation flow layer after the 3rd residual block, learned the hyperparameters and divergence kernels, and used 20 iterations. We also compare our flow-of-flow model. Following Szegedy et al. (2016), the evaluation is performed using a running average of the parameters over time. Our results, shown in Table 9, confirm that this approach outperforms existing models using only RGB as inputs and is competitive against expensive two-stream networks. Our model performs the best among those not using optical flow inputs (i.e., among the models only taking ${ \sim } 6 0 0 \mathrm { m s }$ per video). The models requiring optical flow were more than 10 times slower.
|
| 185 |
+
|
| 186 |
+
# 5 CONCLUSION
|
| 187 |
+
|
| 188 |
+
We introduced a learnable representation flow layer inspired by optical flow algorithms. We experimentally compared various forms of our layer to confirm that the iterative optimization and learnable parameters are important. Our model outperformed existing methods in both speed and accuracy on standard datasets. We also introduced the concept of ‘flow of flow’ to compute longer-term motion representations and showed it benefited performance.
|
| 189 |
+
|
| 190 |
+
# REFERENCES
|
| 191 |
+
|
| 192 |
+
Hakan Bilen, Basura Fernando, Efstratios Gavves, Andrea Vedaldi, and Stephen Gould. Dynamic image networks for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern
|
| 193 |
+
|
| 194 |
+
Recognition (CVPR), 2016.
|
| 195 |
+
|
| 196 |
+
Thomas Brox, Andrés Bruhn, Nils Papenberg, and Joachim Weickert. High accuracy optical flow estimation based on a theory for warping. In Proceedings of European Conference on Computer Vision (ECCV), 2004.
|
| 197 |
+
|
| 198 |
+
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 (CVPR), 2017.
|
| 199 |
+
|
| 200 |
+
Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015.
|
| 201 |
+
|
| 202 |
+
Lijie Fan, Wenbing Huang, Stefano Ermon Chuang Gan, Boqing Gong, and Junzhou Huang. End-to-end learning of motion representation for video understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 203 |
+
|
| 204 |
+
Christoph Feichtenhofer, Axel Pinz, and Richard Wildes. Spatiotemporal residual networks for video action recognition. In Advances in Neural Information Processing Systems (NIPS), 2016a.
|
| 205 |
+
|
| 206 |
+
Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016b.
|
| 207 |
+
|
| 208 |
+
Denis Fortun, Patrick Bouthemy, and Charles Kervrann. Optical flow modeling and computation: a survey. Computer Vision and Image Understanding, 134:1–21, 2015.
|
| 209 |
+
|
| 210 |
+
Ruohan Gao, Bo Xiong, and Kristen Grauman. Im2flow: Motion hallucination from static images for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 211 |
+
|
| 212 |
+
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 (CVPR), 2016.
|
| 213 |
+
|
| 214 |
+
Tak-Wai Hui, Xiaoou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 215 |
+
|
| 216 |
+
Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Largescale video classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1725–1732, 2014.
|
| 217 |
+
|
| 218 |
+
Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017.
|
| 219 |
+
|
| 220 |
+
H. Kuehne, H. Jhuang, E. Garrote, T. Poggio, and T. Serre. HMDB: a large video database for human motion recognition. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2011.
|
| 221 |
+
|
| 222 |
+
Myunggi Lee, Seung Eui Lee, Sung Joon Son, Gyutae Park, and Nojun Kwak. Motion feature network: Fixed motion filter for action recognition. In Proceedings of European Conference on Computer Vision (ECCV), 2018.
|
| 223 |
+
|
| 224 |
+
Joe Yue-Hei Ng, Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4694–4702. IEEE, 2015.
|
| 225 |
+
|
| 226 |
+
Joe Yue-Hei Ng, Jonghyun Choi, Jan Neumann, and Larry S Davis. Actionflownet: Learning motion representation for action recognition. In IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE, 2018.
|
| 227 |
+
|
| 228 |
+
AJ Piergiovanni, Chenyou Fan, and Michael S Ryoo. Learning latent sub-events in activity videos using temporal attention filters. In Proceedings of the American Association for Artificial Intelligence (AAAI), 2017.
|
| 229 |
+
|
| 230 |
+
Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NIPS), pp. 568–576, 2014.
|
| 231 |
+
|
| 232 |
+
Shuyang Sun, Zhanghui Kuang, Lu Sheng, Wanli Ouyang, and Wei Zhang. Optical flow guided feature: A fast and robust motion representation for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 233 |
+
|
| 234 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
|
| 235 |
+
|
| 236 |
+
Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 237 |
+
|
| 238 |
+
Heng Wang, Alexander Kläser, Cordelia Schmid, and Cheng-Lin Liu. Action recognition by dense trajectories. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3169–3176. IEEE, 2011.
|
| 239 |
+
|
| 240 |
+
Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning for video understanding. arXiv preprint arXiv:1712.04851, 2017.
|
| 241 |
+
|
| 242 |
+
Christopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007.
|
| 243 |
+
|
| 244 |
+
# A TRAINING AND IMPLEMENTATION DETAILS
|
| 245 |
+
|
| 246 |
+
Implementation Details When applying the representation flow layer within a CNN, we first applied a 1x1 convolutional layer to reduce the number of channels from $C$ to 32. CNN feature maps often have hundreds of channels, but computing the representation flow for hundreds of channels is computationally expensive. We found 32 channels to be a good trade-off between performance and speed. The flow layer produces output with 64 channels, $x$ and $y$ flows for the 32 input channels, which are concatenated together. We apply a 3x3 convolutional layer to this representation to produce $C$ output channels. This allows us to apply the rest of the standard CNN to the representation flow feature.
|
| 247 |
+
|
| 248 |
+
Two-stream networks stack 10 optical flow frames to capture temporal information (Simonyan & Zisserman, 2014). However, we found that stacking representation flows did not perform well. Instead, we computed the flow for sequential images and averaged the predictions from a sequence of 16 frames. We found this outperformed stacking flow representations.
|
| 249 |
+
|
| 250 |
+
Training Details We trained the network using stochastic gradient descent with momentum set to 0.9. For Kinetics and Tiny-Kinetics, the initial learning rate was 0.1 and decayed by a factor of 10 every 50 epochs. The model was trained for 200 epochs. The 2D CNNs were trained using a batch size of 32 on 4 Titan X GPUs. The 3D and $( 2 + 1 ) \mathrm { D }$ CNNs were trained with a batch size of 24 using 8 V100 GPUs. When fine-tuning on HMDB, the learning rate started at 0.005 and decayed by a factor of 10 every 20 epochs. The network was fine-tuned for 50 epochs. When learning the optical flow parameters, the learning rate for the parameters (i.e., $\lambda , \tau , \theta$ , divergence kernels and Sobel filters) was set of $0 . 0 1 \cdot \mathrm { l r }$ , otherwise the model produced poor predictions. This is likely due to the accumulation of gradients from the many iterations of the algorithm. For Kinetics and Tiny-Kinetics, we used dropout at 0.5 and for HMDB it was set to 0.8.
|
| 251 |
+
|
| 252 |
+
Testing Details For the results reported in Table 9, we classified actions by applying our model to 25 different random croppings of each video. As found in many previous works, this helps increasing the performance slightly. In all the other experiments (i.e., Tables 1-8), random cropping was not used. Also notice that only the results in Table 9 uses our full model with $3 2 \times 2 2 4 \times 2 2 4$ input resolution. The other experiments uses spatially and/or temporally smaller models.
|
parse/train/r1ejxnCctX/r1ejxnCctX_content_list.json
ADDED
|
@@ -0,0 +1,1295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "REPRESENTATION FLOW FOR ACTION RECOGNITION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
173,
|
| 8 |
+
98,
|
| 9 |
+
807,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
400,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
226
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In this paper, we propose a convolutional layer inspired by optical flow algorithms to learn motion representations. Our representation flow layer is a fully-differentiable layer designed to capture the ‘flow’ of any representation channel within a convolutional neural network for action recognition. Its parameters for iterative flow optimization are learned in an end-to-end fashion together with the other model parameters, maximizing the action recognition performance. Furthermore, we newly introduce the concept of learning ‘flow of flow’ representations by stacking multiple representation flow layers. We conducted extensive experimental evaluations, confirming its advantages over previous recognition models using traditional optical flows in both computational speed and performance. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
255,
|
| 43 |
+
766,
|
| 44 |
+
393
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
455,
|
| 55 |
+
336,
|
| 56 |
+
470
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Activity recognition is an important problem in computer vision with many societal applications including surveillance, robot perception, smart environment/city, and more. Use of video convolutional neural networks (CNNs) have become the standard method for this task, as they can learn more optimal representations for the problem. Two-stream networks (Simonyan & Zisserman, 2014), taking both RGB frames and optical flow as input, provide state-of-the-art results and have been extremely popular. 3-D spatio-temporal CNN models, e.g., (Carreira & Zisserman, 2017), with XYT convolutions also found that such two-stream design $\\mathrm { R G B } +$ optical flow) increases their accuracy. Abstracting both appearance information and explicit motion flow benefits the recognition. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
498,
|
| 66 |
+
825,
|
| 67 |
+
611
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "However, optical flow is expensive to compute. It often requires hundreds of optimization iterations every frame, and causes learning of two separate CNN streams (i.e., RGB-stream and flow-stream). This requires significant computation cost and a great increase in the number of model parameters to learn. Further, this means that the model needs to compute optical flow every frame even during inference and run two parallel CNNs, limiting its real-time applications. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
617,
|
| 77 |
+
825,
|
| 78 |
+
686
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "There were previous works to learn representations capturing motion information without using optical flow as input, such as motion feature networks (Lee et al., 2018) and ActionFlowNet $( \\mathrm { N g }$ et al., 2018). However, although they were more advantageous in terms of the number of model parameters and computation speed, they suffered from inferior performance compared to two-stream models on public datasets such as Kinetics (Kay et al., 2017) and HMDB (Kuehne et al., 2011). We hypothesize that the iterative optimization performed by optical flow methods produces an important feature that other methods fail to capture. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
694,
|
| 88 |
+
825,
|
| 89 |
+
791
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, we propose a CNN layer inspired by optical flow algorithms to learn motion representations for action recognition without having to compute optical flow. Our representation flow layer is a fully-differentiable layer designed to capture ‘flow’ of any representation channels within the model. Its parameters for iterative flow optimization are learned together with other model parameters, maximizing the action recognition performance. This is also done without having/training multiple network streams, reducing the number of parameters in the model. Further, we newly introduce the concept of learning ‘flow of flow’ representations by stacking multiple representation flow layers. We conduct extensive action classification experimental evaluation of where to compute optical flow and various hyperparameters, learning parameters, and fusion techniques. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
797,
|
| 99 |
+
825,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 RELATED WORKS ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
176,
|
| 110 |
+
102,
|
| 111 |
+
354,
|
| 112 |
+
117
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Capturing motion and temporal information has been studied for activity recognition. Early, handcrafted approaches such as dense trajectories (Wang et al., 2011) captured motion information by tracking points through time. Many algorithms have been developed to compute optical flow as a way to capture motion in video (Fortun et al., 2015). Other works have explored learning the ordering of frames to summarize a video in a single ‘dynamic image’ used for activity recognition (Bilen et al., 2016). ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
132,
|
| 122 |
+
825,
|
| 123 |
+
215
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Convolutional neural networks (CNNs) have been applied to activity recognition. Initial approaches explored methods to combine temporal information based on pooling or temporal convolution $( \\mathrm { N g }$ et al., 2015; Karpathy et al., 2014). Other works have explored using attention to capture sub-events of activities (Piergiovanni et al., 2017). Two-stream networks have been very popular: they take input of a single RGB frame (captures appearance information) and a stack of optical flow frames (captures motion information). Often, the two network streams of the model are separately trained and the final predictions are averaged together (Simonyan & Zisserman, 2014). There were other two-stream CNN works exploring different ways to ‘fuse’ or combine the motion CNN with the appearance CNN (Feichtenhofer et al., 2016b;a). There were also large 3D XYT CNNs learning spatio-temporal patterns (Carreira & Zisserman, 2017; Xie et al., 2017), enabled by large video datasets such as Kinetics (Kay et al., 2017). However, these approaches still rely on optical flow input to maximize their accuracies. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
223,
|
| 133 |
+
825,
|
| 134 |
+
390
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Recently, there have been works on learning motion representations. Fan et al. (2018) implemented the TVL-1 method using deep learning libraries to increase its computational speed and allow for learning some parameters. The result was fed to a two-stream CNN for the recognition. Several works explored learning a CNN to predict optical flow, which also can be used for action recognition (Dosovitskiy et al., 2015; Hui et al., 2018; Gao et al., 2018; Sun et al., 2018; $\\mathrm { N g }$ et al., 2018). Lee et al. (2018) shifted features from sequential frames to capture motion in a non-iterative fashion. Sun et al. (2018) proposed an optical flow guided feature (OFF) by computing the gradients of representations and temporal differences, but required RGB, optical flow and RGB differences to achieve state-of-the-art performance. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
173,
|
| 143 |
+
396,
|
| 144 |
+
825,
|
| 145 |
+
522
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Unlike prior works, our proposed model with the representation flow layers relies only on the RGB input, learning much fewer parameters while correctly representing motion with the iterative optimization. It is significantly faster than the video CNNs requiring optical flow input, while still performing as good as or even better than the two-stream models. It clearly outperforms existing motion representation methods including (Fan et al., 2018) in both speed and accuracy, which we experimentally confirm. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
529,
|
| 155 |
+
825,
|
| 156 |
+
613
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "3 APPROACH",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
176,
|
| 166 |
+
632,
|
| 167 |
+
297,
|
| 168 |
+
648
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Our method is a fully-differentiable convolutional layer inspired by optical flow algorithms. Unlike traditional optical flow methods, all the parameters of our method can be learned end-to-end, maximizing action recognition performance. Furthermore, our layer is designed to compute the ‘flow’ of any representation channels, instead of limiting its input to be traditional RGB frames. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
662,
|
| 178 |
+
825,
|
| 179 |
+
718
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "3.1 REVIEW OF OPTICAL FLOW METHODS ",
|
| 186 |
+
"text_level": 1,
|
| 187 |
+
"bbox": [
|
| 188 |
+
176,
|
| 189 |
+
734,
|
| 190 |
+
482,
|
| 191 |
+
750
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Before describing our layer, we briefly review how optical flow is computed. Optical flow methods are based on the brightness consistency assumption. That is, given sequential images $I _ { 1 } , I _ { 2 }$ , a point $x , y$ in $I _ { 1 }$ is located at $x + \\Delta x , y + \\Delta y$ in $I _ { 2 }$ , or $I _ { 1 } ( x , y ) = I _ { 2 } ( x + \\Delta x , y + \\Delta y )$ . These methods assume small movements between frames, so this can be approximated with a Taylor series: $\\begin{array} { r } { I _ { 2 } = I _ { 1 } + \\frac { \\delta I } { \\delta x } \\Delta x + \\frac { \\delta I } { \\delta y } \\Delta y } \\end{array}$ , where $\\pmb { u } = [ \\Delta x , \\Delta y ]$ . These equations are solved for $\\textbf { \\em u }$ to obtain the flow, but can only be approximated due to the two unknowns. ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
174,
|
| 200 |
+
761,
|
| 201 |
+
825,
|
| 202 |
+
847
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "The standard, variational methods for approximating optical flow (e.g., Brox (Brox et al., 2004) and TVL-1 (Zach et al., 2007) methods) take sequential images $I _ { 1 } , I _ { 2 }$ as input. Variational optical flow methods estimate the flow field, $\\textbf { \\em u }$ , using an iterative optimization method. The tensor $\\pmb { u } \\in \\dot { \\mathcal { R } } ^ { 2 \\times W \\times H }$ is the $x$ and $y$ directional flow for every location in the image. Taking two sequential images as input, $I _ { 1 } , I _ { 2 }$ , the methods first compute the gradient in both $x$ and $y$ directions: $\\nabla I _ { 2 }$ . The initial flow is set to 0, ${ \\pmb u } = 0$ . Then $\\rho$ , the residual, can be computed. For efficiency, the constant part of $\\rho$ , $\\rho _ { c }$ is pre-computed: ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
854,
|
| 212 |
+
825,
|
| 213 |
+
924
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "",
|
| 220 |
+
"bbox": [
|
| 221 |
+
169,
|
| 222 |
+
103,
|
| 223 |
+
825,
|
| 224 |
+
131
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "equation",
|
| 230 |
+
"img_path": "images/99503061eb7e6f170045331aeed9be4765b79f02c3343540363f07c43a7dff0b.jpg",
|
| 231 |
+
"text": "$$\n\\rho _ { c } = I _ { 2 } - \\nabla _ { x } I _ { 2 } \\cdot \\pmb { u } _ { x } - \\nabla _ { y } I _ { 2 } \\cdot \\pmb { u } _ { y } - I _ { 1 }\n$$",
|
| 232 |
+
"text_format": "latex",
|
| 233 |
+
"bbox": [
|
| 234 |
+
367,
|
| 235 |
+
131,
|
| 236 |
+
630,
|
| 237 |
+
148
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "The iterative optimization is then performed, each updating $\\textbf { \\em u }$ : ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
160,
|
| 247 |
+
583,
|
| 248 |
+
175
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "equation",
|
| 254 |
+
"img_path": "images/5e7bc644d28f4c63ecaf68e036fd1da776d56815b105ece6b495c4b62d2ef17a.jpg",
|
| 255 |
+
"text": "$$\n\\begin{array} { r l } & { \\rho = \\rho _ { c } + \\nabla _ { x } I _ { 2 } \\cdot \\boldsymbol { u } _ { x } + \\nabla _ { y } I _ { 2 } \\cdot \\boldsymbol { u } _ { y } } \\\\ & { \\boldsymbol { v } = \\left\\{ \\begin{array} { l l } { \\boldsymbol { u } + \\lambda \\theta \\nabla I _ { 2 } } & { \\rho < - \\lambda \\theta | \\nabla I _ { 2 } | ^ { 2 } } \\\\ { \\boldsymbol { u } - \\lambda \\theta \\nabla I _ { 2 } } & { \\rho > \\lambda \\theta | \\nabla I _ { 2 } | ^ { 2 } } \\end{array} \\right. } \\\\ & { \\boldsymbol { u } - \\rho \\frac { \\nabla I _ { 2 } } { | I _ { 2 } | ^ { 2 } } \\quad \\mathrm { o t h e r w i s e } } \\\\ & { \\boldsymbol { u } = \\boldsymbol { v } + \\boldsymbol { \\theta } \\cdot \\mathrm { d i v e r g e n c e } ( p ) } \\\\ & { p = \\frac { p + \\frac { \\tau } { \\theta } \\nabla u } { 1 + \\frac { \\tau } { \\theta } | \\nabla u | } } \\end{array}\n$$",
|
| 256 |
+
"text_format": "latex",
|
| 257 |
+
"bbox": [
|
| 258 |
+
372,
|
| 259 |
+
181,
|
| 260 |
+
620,
|
| 261 |
+
315
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "Here $\\theta$ controls the weight of the TVL-1 regularization term, $\\lambda$ controls the smoothness of the output and $\\tau$ controls the time-step. These hyperparameters are manually set. $\\pmb { p }$ is the dual vector fields, which are used to minimize the energy. The divergence of $\\pmb { p }$ , or backward difference, is computed as: ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
327,
|
| 271 |
+
826,
|
| 272 |
+
369
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "equation",
|
| 278 |
+
"img_path": "images/3bd236f687dc630ab37a0ce08aa72b632ad7e6d64a599ecb3956117db5e6588f.jpg",
|
| 279 |
+
"text": "$$\n\\mathrm { d i v e r g e n c e } ( p ) = p _ { x , i , j } - p _ { x , i - 1 , j } + p _ { y , i , j } - p _ { y , i , j - 1 }\n$$",
|
| 280 |
+
"text_format": "latex",
|
| 281 |
+
"bbox": [
|
| 282 |
+
320,
|
| 283 |
+
377,
|
| 284 |
+
676,
|
| 285 |
+
395
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "where ${ \\pmb p } _ { x }$ is the $x$ direction and $\\mathbf { \\Delta } _ { p _ { y } }$ is the $y$ direction, and $\\pmb { p }$ contains all the spatial locations in the image. ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
178,
|
| 294 |
+
401,
|
| 295 |
+
823,
|
| 296 |
+
430
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "The goal is to minimize the total variational energy: ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
436,
|
| 306 |
+
514,
|
| 307 |
+
452
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/d94efab31c6b9eb79dc7e2b2f18d2264a16eaeb8cf1fd503f8e431e4ab352082.jpg",
|
| 314 |
+
"text": "$$\nE = | \\nabla \\boldsymbol { u } | + \\lambda | I _ { 1 } \\ast \\boldsymbol { u } + I _ { 1 } - I _ { 2 } |\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
388,
|
| 318 |
+
458,
|
| 319 |
+
609,
|
| 320 |
+
476
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "Approaches run this iterative optimization for multiple input scales, from small to large, and use the previous flow estimate $\\textbf { \\em u }$ to warp $I _ { 2 }$ at the larger scale, providing a coarse-to-fine optical flow estimation. These standard approaches require multiple scales and warpings to obtain a good flow estimate, taking thousands of iterations. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
489,
|
| 330 |
+
825,
|
| 331 |
+
546
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "3.2 REPRESENTATION FLOW LAYER ",
|
| 338 |
+
"text_level": 1,
|
| 339 |
+
"bbox": [
|
| 340 |
+
176,
|
| 341 |
+
564,
|
| 342 |
+
436,
|
| 343 |
+
579
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "Inspired by the optical flow algorithm, we design a fully-differentiable, learnable, convolutional representation flow layer by extending the general algorithm outlined above. The main differences are that (i) we allow the layer to capture flow of any CNN feature map, and that (ii) we learn its parameters including $\\theta , \\lambda .$ , and $\\tau$ as well as the divergence weights. We also make several key changes to reduce computation time: (1) we only use a single scale, (2) we do not perform any warping, and (3) we compute the flow on a CNN tensor with a smaller spatial size. Multiple scale and warping are computationally expensive, each requiring many iterations. By learning the flow parameters, we can eliminate the need for these additional steps. Our method is applied on lower resolution CNN feature maps, instead of the RGB input, and is trained in an end-to-end fashion. This not only benefits its speed, but also allows the model to learn a motion representation optimized for activity recognition. ",
|
| 350 |
+
"bbox": [
|
| 351 |
+
173,
|
| 352 |
+
589,
|
| 353 |
+
825,
|
| 354 |
+
731
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 2
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "We note that the brightness consistency assumption can similarly be applied to CNN feature maps. Instead of capturing pixel brightness, we capture feature value consistency. This same assumption holds because CNNs are designed to be spatially invariant; i.e., they produce roughly the same feature value for the same object as it moves. ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
174,
|
| 363 |
+
736,
|
| 364 |
+
825,
|
| 365 |
+
792
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 2
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Given the input $F _ { 1 } , F _ { 2 }$ , a single channel from sequential CNN feature maps (or input image), we compute the gradient by convolving the input feature maps with the Sobel filter: ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
174,
|
| 374 |
+
799,
|
| 375 |
+
823,
|
| 376 |
+
829
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "equation",
|
| 382 |
+
"img_path": "images/de512bfec38d44a1143f22e20c639bdaaedc15184a210d59e3ac1014f6d08faa.jpg",
|
| 383 |
+
"text": "$$\n\\nabla F _ { 2 x } = \\left[ \\begin{array} { l l l } { 1 } & { 0 } & { - 1 } \\\\ { 2 } & { 0 } & { - 2 } \\\\ { 1 } & { 0 } & { - 1 } \\end{array} \\right] * F _ { 2 } , \\nabla F _ { 2 y } = \\left[ \\begin{array} { l l l } { 1 } & { 2 } & { 1 } \\\\ { 0 } & { 0 } & { 0 } \\\\ { - 1 } & { - 2 } & { - 1 } \\end{array} \\right] * F _ { 2 }\n$$",
|
| 384 |
+
"text_format": "latex",
|
| 385 |
+
"bbox": [
|
| 386 |
+
294,
|
| 387 |
+
835,
|
| 388 |
+
704,
|
| 389 |
+
881
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 2
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "We set $\\pmb { u } = 0 , \\pmb { p } = 0$ initially, each having width and height matching the input, then we can compute $\\rho _ { c } = F _ { 2 } - F _ { 1 }$ . Next, we run the iterative optimization for a fixed number of iterations, ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
173,
|
| 398 |
+
895,
|
| 399 |
+
825,
|
| 400 |
+
924
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "following Eqs. 2-5. To compute the divergence, we zero-pad $\\pmb { p }$ on the first column ( $\\mathbf { \\dot { x } }$ -direction) or row (y-direction) then convolve it with weights, $w _ { x } , w _ { y }$ to compute Eq. 6: ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
171,
|
| 409 |
+
103,
|
| 410 |
+
823,
|
| 411 |
+
133
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/500398b9584ac20355119211fc2ed14f1932eb92f1b56af5bba94efc0bc5854a.jpg",
|
| 418 |
+
"text": "$$\n\\mathrm { d i v e r g e n c e } ( p ) = p _ { x } * w _ { x } + p _ { y } * w _ { y }\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
375,
|
| 422 |
+
138,
|
| 423 |
+
620,
|
| 424 |
+
156
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "where initially $w _ { x } = [ - 1 \\quad 1 ]$ and $w _ { y } = { \\binom { - 1 } { 1 } }$ . Note that these parameters are differentiable and can be learned with backpropagation. We compute $\\nabla \\boldsymbol { u }$ as ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
173,
|
| 433 |
+
162,
|
| 434 |
+
825,
|
| 435 |
+
208
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "equation",
|
| 441 |
+
"img_path": "images/7f804add1367d69be65504b84e0bcc8ec0e8ff64fba192e0b1cfdf19518412dc.jpg",
|
| 442 |
+
"text": "$$\n\\nabla \\pmb { u } _ { x } = \\left[ \\begin{array} { c c c } { 1 } & { 0 } & { - 1 } \\\\ { 2 } & { 0 } & { - 2 } \\\\ { 1 } & { 0 } & { - 1 } \\end{array} \\right] * \\pmb { u } _ { x } , \\nabla \\pmb { u } _ { y } = \\left[ \\begin{array} { c c c } { 1 } & { 2 } & { 1 } \\\\ { 0 } & { 0 } & { 0 } \\\\ { - 1 } & { - 2 } & { - 1 } \\end{array} \\right] * \\pmb { u } _ { y }\n$$",
|
| 443 |
+
"text_format": "latex",
|
| 444 |
+
"bbox": [
|
| 445 |
+
299,
|
| 446 |
+
213,
|
| 447 |
+
699,
|
| 448 |
+
258
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Algorithm 1 shows the process of our representation flow layer. Our flow layer with multiple iterations could also be interpreted as having a sequence of convolutional layers with each layer behavior dependent on its previous layer. Note that our method is fully differentiable and allows for the learning of all parameters, including $( \\tau , \\lambda , \\theta )$ and the divergence weights $( w _ { x } , w _ { y } )$ . ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
173,
|
| 457 |
+
271,
|
| 458 |
+
825,
|
| 459 |
+
329
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "table",
|
| 465 |
+
"img_path": "images/25114b56fa2ed3f2d5eae792bec3315ca0386570c43d0f43d8d1ad1994bd332f.jpg",
|
| 466 |
+
"table_caption": [],
|
| 467 |
+
"table_footnote": [],
|
| 468 |
+
"table_body": "<table><tr><td colspan=\"2\">Algorithm1 Method for the representation flow layer</td></tr><tr><td colspan=\"2\">function REPRESENTATIONFLOW(F1,F2)</td></tr><tr><td colspan=\"2\">u=0,p=0</td></tr><tr><td colspan=\"2\">Compute image/feature map gradients (Eq. 8)</td></tr><tr><td colspan=\"2\">Pc=F2-F1</td></tr><tr><td colspan=\"2\">for n iterations do</td></tr><tr><td rowspan=\"3\">ρ= Pc+VxF2 :Ux +VyF2 :Uy</td><td></td></tr><tr><td>(u+λ0VF2 ρ<-X0|VF2l²</td></tr><tr><td>v ={u- λ0VF2 ρ> λ0|VF2|²</td></tr><tr><td rowspan=\"2\">u-PF VF2 u = v + 0 · divergence(p)</td><td>otherwise</td></tr><tr><td></td></tr><tr><td>p+Vu p=</td><td></td></tr><tr><td colspan=\"2\">1+Vu end for</td></tr><tr><td colspan=\"2\">return u</td></tr><tr><td colspan=\"2\">end function</td></tr></table>",
|
| 469 |
+
"bbox": [
|
| 470 |
+
173,
|
| 471 |
+
342,
|
| 472 |
+
826,
|
| 473 |
+
580
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "Computing Flow-of-Flow Standard optical flow algorithms compute the flow for two sequential images. An optical flow image contains information about the direction and magnitude of the motion. Applying the flow algorithm directly on two flow images means that we are tracking pixels/locations showing similar motion in two consecutive frames. In practice, this typically leads to a worse performance due to inconsistent optical flow results and non-rigid motion. On the other hand, our representation flow layer is trained for the data, and is able to suppress such inconsistency and better abstract/represent motion by having multiple regular convolutional layers between the flow layers. Fig. 4 illustrates such design, which we confirm its benefits in the experiment section. By stacking multiple representation flow layers, our model is able to capture longer temporal intervals and consider locations with motion consistency. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
173,
|
| 482 |
+
606,
|
| 483 |
+
825,
|
| 484 |
+
746
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Representation Flow within a CNN CNN feature maps may have hundreds or thousands of channels and our representation flow layer computes the flow for each channel, which can take significant time and memory. To address this, we apply a convolutional layer to reduce the number of channels from $C$ to $C ^ { \\prime }$ before the flow layer (note that $C ^ { \\prime }$ is still significantly more than traditional optical flow algorithms, which are only applied to a single channel, greyscale images). For numerical stability, we normalize this feature map to be in [0, 255], matching standard image values. We found that the CNN features were quite small on average $( < 0 . 5 )$ and the TVL-1 algorithm default hyperparameters are designed for standard images values in [0, 255], thus we found this normalization step important. Using the normalized feature, we compute the flow and stack the $x$ and $y$ flows, resulting in $2 C ^ { \\prime }$ channels. Finally, we apply another convolutional layer to convert from $2 C ^ { \\prime }$ channels to $C$ channels. This is passed to the remaining CNN layers for the prediction. We average predictions from many frames to classify each video, as shown in Fig. 1. ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
174,
|
| 493 |
+
757,
|
| 494 |
+
825,
|
| 495 |
+
924
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "image",
|
| 501 |
+
"img_path": "images/4234d2e9ea73c6a3106678a0c4f7e1631e757b7c619ee17371cfbc905ce98c8e.jpg",
|
| 502 |
+
"image_caption": [
|
| 503 |
+
"Figure 1: Illustration of a video-CNN with our representation flow layer. The CNN computes intermediate feature maps, and sequential feature maps are used as input to the flow layer. The outputs of the flow layer are used for prediction. "
|
| 504 |
+
],
|
| 505 |
+
"image_footnote": [],
|
| 506 |
+
"bbox": [
|
| 507 |
+
196,
|
| 508 |
+
99,
|
| 509 |
+
799,
|
| 510 |
+
340
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "3.3 ACTIVITY RECOGNITION MODEL ",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
178,
|
| 520 |
+
414,
|
| 521 |
+
444,
|
| 522 |
+
429
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "We place the representation flow layer inside a standard activity recognition model taking a $T \\times C \\times$ $W \\times H$ tensor as input to a CNN. Here, $C$ is 3 as our model uses direct RGB frames as an input. $T$ is the number of frames the model processes, and $W$ and $H$ are the spatial dims. The CNN outputs a prediction per-timestep and these are temporally averaged to produce a probability for each class. The model is trained to minimize cross-entropy: ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
440,
|
| 532 |
+
825,
|
| 533 |
+
511
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "equation",
|
| 539 |
+
"img_path": "images/f1874fe9e1b5faa5fd684373273cba1ab51390b98ecfda208f8dc55035a60fc6.jpg",
|
| 540 |
+
"text": "$$\nL ( v , c ) = - \\sum _ { i } ^ { K } ( c = = i ) \\log ( C N N ( v ) _ { i } )\n$$",
|
| 541 |
+
"text_format": "latex",
|
| 542 |
+
"bbox": [
|
| 543 |
+
361,
|
| 544 |
+
518,
|
| 545 |
+
635,
|
| 546 |
+
561
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "where $v$ is the video, $C N N$ is the classification CNN and $c$ represents which of the $K$ classes $v$ belongs. That is, the parameters in our flow layers are trained together with the other layers, so that it maximizes the final classification accuracy. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
174,
|
| 555 |
+
568,
|
| 556 |
+
825,
|
| 557 |
+
611
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "4 EXPERIMENTS ",
|
| 564 |
+
"text_level": 1,
|
| 565 |
+
"bbox": [
|
| 566 |
+
176,
|
| 567 |
+
632,
|
| 568 |
+
326,
|
| 569 |
+
647
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "Implementation details We implemented our representation flow layer in PyTorch and will release our code and models upon publication. As training CNNs on videos is computationally expensive, we used a subset of the Kinetics dataset (Kay et al., 2017) with $1 0 0 \\mathrm { k }$ videos from 150 classes: Tiny-Kinetics. This allowed testing many models more quickly, while still having sufficient data to train large CNNs. For most experiments, we used ResNet-34 (He et al., 2016) with input of size $1 6 \\times 1 1 2 \\times 1 1 2$ (i.e., 16 frames with spatial size of 112). As training video CNNs is computationally expensive, we used this smaller input, which reduces performance, but allowed us to use larger batch sizes and run many experiments more quickly. Our final models are trained on standard $2 2 4 \\times 2 2 4$ images. See appendix A for specific training details. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
660,
|
| 579 |
+
825,
|
| 580 |
+
786
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "Where to compute flow? To determine where in the network to compute the flow, we compare applying our flow layer on the RGB input, after the first conv. layer, and after the each of the 5 residual blocks. The results are shown in Table 1. We find that computing the flow on the input provides poor performance, similar to the performance of the flow-only networks, but there is a significant jump after even 1 layer, suggesting that computing the flow of a feature is beneficial, capturing both the appearance and motion information. However, after 4 layers, the performance begins to decline as the spatial information is too abstracted/compressed (due to pooling and large spatial receptive field size), and sequential features become very similar, containing less motion information. Note that our HMDB performance in this table is quite low compared to state-of-the-art ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
797,
|
| 590 |
+
825,
|
| 591 |
+
924
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "table",
|
| 597 |
+
"img_path": "images/3f93f7c00d0f67d8578606b237dc93948d9619f7e8ec803f68ad1ee551e8b676.jpg",
|
| 598 |
+
"table_caption": [
|
| 599 |
+
"Table 1: Computing the optical flow representation after various number of CNN layers. Results are video classification accuracy on our Tiny-Kinetics and LowRes-HMDB51 datasets using 100 iterations to compute the flow representation. ",
|
| 600 |
+
"Table 2: Comparison of learning different parameters. The flow was computed after Block 3 using 100 iterations. "
|
| 601 |
+
],
|
| 602 |
+
"table_footnote": [],
|
| 603 |
+
"table_body": "<table><tr><td></td><td>Tiny-Kinetics</td><td>LowRes-HMDB</td></tr><tr><td>RGB CNN</td><td>55.2</td><td>35.5</td></tr><tr><td>Flow CNN</td><td>35.4</td><td>37.5</td></tr><tr><td>Two-Stream CNN</td><td>57.6</td><td>41.5</td></tr><tr><td>Flow Layer on RGB Input</td><td>37.4</td><td>40.5</td></tr><tr><td>After Block1</td><td>52.4</td><td>42.6</td></tr><tr><td>After Block 2</td><td>57.4</td><td>44.5</td></tr><tr><td>After Block 3</td><td>59.4</td><td>45.4</td></tr><tr><td>After Block 4</td><td>52.1</td><td>43.5</td></tr><tr><td>After Block 5</td><td>50.3</td><td>42.2</td></tr></table>",
|
| 604 |
+
"bbox": [
|
| 605 |
+
282,
|
| 606 |
+
155,
|
| 607 |
+
715,
|
| 608 |
+
309
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 5
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "table",
|
| 614 |
+
"img_path": "images/696aba1df96fd98864a39130e1ff56ce6180ddc0d562a8db03098da9c4ddd466.jpg",
|
| 615 |
+
"table_caption": [],
|
| 616 |
+
"table_footnote": [],
|
| 617 |
+
"table_body": "<table><tr><td></td><td>Tiny-Kinetics</td><td>LowRes-HMDB</td></tr><tr><td>None (all fixed)</td><td>59.4</td><td>45.4</td></tr><tr><td>Sobel kernels</td><td>58.5</td><td>43.5</td></tr><tr><td>Divergence (wx, wy)</td><td>60.2</td><td>46.4</td></tr><tr><td>T,入,θ</td><td>59.9</td><td>46.2</td></tr><tr><td>All</td><td>59.2</td><td>46.2</td></tr><tr><td>Divergence + T, 入,0</td><td>60.7</td><td>46.8</td></tr></table>",
|
| 618 |
+
"bbox": [
|
| 619 |
+
300,
|
| 620 |
+
353,
|
| 621 |
+
696,
|
| 622 |
+
467
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "methods due to being trained from scratch using few frames and low spatial resolution $( 1 1 2 \\times 1 1 2 )$ . \nFor the following experiments, unless otherwise noted, we apply the layer after the 3rd residual block. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
486,
|
| 632 |
+
825,
|
| 633 |
+
515
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "What to learn? As our method is fully differentiable, we can learn any of the parameters, such as the kernels used to compute image gradients, the kernels for the divergence computation and even $\\tau , \\lambda , \\theta$ . In Table 2, we compare the effects of learning different parameters. We find that learning the Sobel kernel reduces performance, but learning the divergence and $\\tau , \\lambda , \\theta$ is beneficial. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
527,
|
| 643 |
+
825,
|
| 644 |
+
584
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "How many iterations for flow? To confirm that the iterations are important and determine how many we need, we experiment with various numbers of iterations. We compare the number of iterations needed for both learning (divergence+ $\\cdot \\tau , \\lambda , \\theta )$ and not learning parameters. The flow is computed after 3 residual blocks. The results are shown in Table 3. We find that learning provides better performance with fewer iterations (similar to the finding in (Fan et al., 2018)), and that iteratively computing the feature is important. We use 10 or 20 iterations in the remaining experiments as they provide good perforamnce and are fast. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
173,
|
| 653 |
+
597,
|
| 654 |
+
825,
|
| 655 |
+
695
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "Two-stream fusion? Two-stream CNNs fusing both RGB and optical flow features has been heavily studied (Simonyan & Zisserman, 2014; Feichtenhofer et al., 2016b). Based on these works, we compare various ways of fusing RGB and our flow representation, shown in Fig. 2. We compare no fusion, late fusion (i.e., separate RGB and flow CNNs) and addition/multiplication/concatenation fusion. In Table 4, we compare different fusion methods for different locations in the network. We find that fusing RGB information is very important “when computing flow directly from RGB input”. However, it is not as beneficial when computing the optical flow of representations as the CNN has already abstracted much appearance information away. We found that concatenation of the RGB and flow features perform poorly compared to the others. We do not use two-stream fusion in any other experiments, as we found that computing the representation flow after the 3rd residual block provides sufficient performance. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
708,
|
| 665 |
+
825,
|
| 666 |
+
765
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "table",
|
| 672 |
+
"img_path": "images/08fe9254154dff918d8f491f7f908f7f4e66dbd402bffb05a9a39c4393fe7886.jpg",
|
| 673 |
+
"table_caption": [
|
| 674 |
+
"Table 3: Effect of the number of iterations on our Tiny-Kinetics dataset for learning and not learning. "
|
| 675 |
+
],
|
| 676 |
+
"table_footnote": [],
|
| 677 |
+
"table_body": "<table><tr><td></td><td>Not learned</td><td>Learned</td></tr><tr><td>1 iteration</td><td>46.7</td><td>49.5</td></tr><tr><td>5 iterations</td><td>51.3</td><td>55.4</td></tr><tr><td>10 iterations</td><td>52.4</td><td>59.4</td></tr><tr><td>20 iterations</td><td>53.6</td><td>60.7</td></tr><tr><td>50 iterations</td><td>59.2</td><td>60.9</td></tr><tr><td>100 iterations</td><td>59.4</td><td>60.7</td></tr></table>",
|
| 678 |
+
"bbox": [
|
| 679 |
+
357,
|
| 680 |
+
808,
|
| 681 |
+
638,
|
| 682 |
+
921
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "image",
|
| 688 |
+
"img_path": "images/6e8c3e932994394863caa45ecee5ee3ae09be321f1fba131a0b803b452e812ce.jpg",
|
| 689 |
+
"image_caption": [],
|
| 690 |
+
"image_footnote": [],
|
| 691 |
+
"bbox": [
|
| 692 |
+
496,
|
| 693 |
+
102,
|
| 694 |
+
821,
|
| 695 |
+
164
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 6
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "image",
|
| 701 |
+
"img_path": "images/987460efdd61be120c38a3d17eb21e208da49dac0a07d7276b3ff3cb814870f8.jpg",
|
| 702 |
+
"image_caption": [
|
| 703 |
+
"Figure 2: Different approaches to fusing RGB and flow information. (a) No fusion (b) Late fusion (c) The circle represents elementwise addition/multiplication or concatenation. "
|
| 704 |
+
],
|
| 705 |
+
"image_footnote": [],
|
| 706 |
+
"bbox": [
|
| 707 |
+
202,
|
| 708 |
+
99,
|
| 709 |
+
475,
|
| 710 |
+
252
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "image",
|
| 716 |
+
"img_path": "images/be45bcfbe4033ba98f4ae4abc655b39b6cd9903834517012943f2118ee1bf8b4.jpg",
|
| 717 |
+
"image_caption": [
|
| 718 |
+
"Figure 3: (a) RGB (b) Flow (c) Flow-of-Flow. "
|
| 719 |
+
],
|
| 720 |
+
"image_footnote": [],
|
| 721 |
+
"bbox": [
|
| 722 |
+
504,
|
| 723 |
+
190,
|
| 724 |
+
813,
|
| 725 |
+
280
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 6
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "image",
|
| 731 |
+
"img_path": "images/21a5d3739adf98f9c83a4a9ae0e407bdf9f3aed39958cfd107d75f9389dd8663.jpg",
|
| 732 |
+
"image_caption": [
|
| 733 |
+
"Figure 4: Illustration of how our model computes the FoF. ",
|
| 734 |
+
"Figure 5: Comparing the results of (b) TVL-1 and (c) our learned flow when applied to RGB images. "
|
| 735 |
+
],
|
| 736 |
+
"image_footnote": [],
|
| 737 |
+
"bbox": [
|
| 738 |
+
336,
|
| 739 |
+
329,
|
| 740 |
+
660,
|
| 741 |
+
428
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "",
|
| 748 |
+
"bbox": [
|
| 749 |
+
173,
|
| 750 |
+
479,
|
| 751 |
+
825,
|
| 752 |
+
578
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 6
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Flow-of-flow We can stack our layer multiple times, computing the flow-of-flow (FoF). This has the advantage of combining more temporal information into a single feature. Our results are shown in Table 5. Applying the TVL-1 algorithm twice gives quite poor performance, as optical flow features do not really satisfy the brightness consistency assumption, as they capture magnitude and direction of motion (shown in Fig. 3). Applying our representation flow layer twice performs significantly better than TVL-1 twice, but still worse than our baseline of not doing so. However, we can add a convolutional layer between the first and second flow layer, flow-conv-flow (FcF), (Fig. 4), allowing the model to better learn longer-term flow representations. We find this performs best, as this intermediate layer is able to smooth the flow and produce a better input for the representation flow layer. However, we find adding a third flow layer reduces performance as the motion representation becomes unreliable, due to the large spatial receptive field size. ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
173,
|
| 761 |
+
597,
|
| 762 |
+
825,
|
| 763 |
+
750
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 6
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "table",
|
| 769 |
+
"img_path": "images/4a14e764f39afc2e97dd13634072eaaad851bbfe0f7774779a2213030eca9306.jpg",
|
| 770 |
+
"table_caption": [
|
| 771 |
+
"Table 4: Different fusion methods for flow computed at different locations in the network on our Tiny-Kinetics dataset using 10 iterations and learning flow parameters. "
|
| 772 |
+
],
|
| 773 |
+
"table_footnote": [],
|
| 774 |
+
"table_body": "<table><tr><td></td><td>RGB</td><td>1 Block</td><td>3 Blocks</td></tr><tr><td>None</td><td>37.4</td><td>52.4</td><td>59.4</td></tr><tr><td>Late</td><td>61.3</td><td>60.4</td><td>61.5</td></tr><tr><td>Add</td><td>59.7</td><td>57.2</td><td>56.5</td></tr><tr><td>Multiply</td><td>58.3</td><td>58.1</td><td>57.8</td></tr><tr><td>Layer + Multiply</td><td>60.1</td><td>61.7</td><td>61.7</td></tr><tr><td>Concat</td><td>42.4</td><td>48.5</td><td>47.6</td></tr></table>",
|
| 775 |
+
"bbox": [
|
| 776 |
+
330,
|
| 777 |
+
808,
|
| 778 |
+
666,
|
| 779 |
+
921
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 6
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "table",
|
| 785 |
+
"img_path": "images/c4fa12c038c1337afb950b35815a4e83e1486b239b47eb4fb2bc59e81d63c0dc.jpg",
|
| 786 |
+
"table_caption": [
|
| 787 |
+
"Table 5: Computing the FoF representation. TVL-1 twice provides poor performance, using two flow layers with a conv. in between provides the best performance. Experiments used 10 iterations and learning flow parameters. "
|
| 788 |
+
],
|
| 789 |
+
"table_footnote": [],
|
| 790 |
+
"table_body": "<table><tr><td></td><td>Tiny-Kinetics</td></tr><tr><td>TVL-1 twice</td><td>12.2</td></tr><tr><td>Single Flow Layer</td><td>59.4</td></tr><tr><td>Flow-of-Flow</td><td>47.2</td></tr><tr><td>Flow-Conv-Flow (FcF)</td><td>62.3</td></tr><tr><td>Flow-Conv-Flow-Conv-Flow</td><td>56.5</td></tr></table>",
|
| 791 |
+
"bbox": [
|
| 792 |
+
338,
|
| 793 |
+
155,
|
| 794 |
+
660,
|
| 795 |
+
255
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 7
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "table",
|
| 801 |
+
"img_path": "images/be5e317a02165c9b3cd461a71addffa86b0243ec9567531a90193d3fe0ad7733.jpg",
|
| 802 |
+
"table_caption": [
|
| 803 |
+
"Table 6: Flow using 3D ResNet-18. "
|
| 804 |
+
],
|
| 805 |
+
"table_footnote": [],
|
| 806 |
+
"table_body": "<table><tr><td>Tiny-Kinetics</td></tr><tr><td>RGB 3D ResNet-18 54.6</td></tr><tr><td>TVL-1 3D ResNet-18 37.6</td></tr><tr><td>Two-Stream 3DResNet 57.5</td></tr><tr><td>RGB-Only OFF (Sun et al., 2018) 54.8</td></tr><tr><td>Input (RGB) 38.5</td></tr><tr><td>After Block 1 58.4</td></tr><tr><td>After Block 3 59.7</td></tr></table>",
|
| 807 |
+
"bbox": [
|
| 808 |
+
173,
|
| 809 |
+
289,
|
| 810 |
+
496,
|
| 811 |
+
406
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 7
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "table",
|
| 817 |
+
"img_path": "images/b33dc0f8e8ea66407b23b9496e1b13f84a04033dd887a2043e49a1cde3504723.jpg",
|
| 818 |
+
"table_caption": [
|
| 819 |
+
"Table 7: Flow using $( 2 + 1 ) \\mathrm { D }$ ResNet-18. "
|
| 820 |
+
],
|
| 821 |
+
"table_footnote": [],
|
| 822 |
+
"table_body": "<table><tr><td></td><td>Tiny-Kinetics</td></tr><tr><td>RGB (2+1)D ResNet-18</td><td>53.4</td></tr><tr><td>TVL-1 (2+1)D ResNet-18</td><td>36.3</td></tr><tr><td>Two-Stream (2+1)D ResNet</td><td>55.6</td></tr><tr><td>RGB-Only OFF (Sun et al., 2018)</td><td>53.7</td></tr><tr><td>Input (RGB)</td><td>39.2</td></tr><tr><td>After Block1</td><td>57.3</td></tr><tr><td>After Block 3</td><td>60.7</td></tr></table>",
|
| 823 |
+
"bbox": [
|
| 824 |
+
509,
|
| 825 |
+
289,
|
| 826 |
+
831,
|
| 827 |
+
406
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 7
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "Flow of 3D CNN Feature Since 3D convolutions capture some temporal information, we test computing our flow representation on features from a 3D CNN. As 3D CNNs are expensive to train, we follow the method of Carreira & Zisserman (2017) to inflate a ResNet-18 pretrained on ImageNet to a 3D CNN for videos. We also compare to the $( 2 + 1 ) \\mathrm { D }$ method of spatial conv. followed by temporal conv from (Xie et al., 2017), which produces a similar feature combining spatial and temporal information. We find our flow layer increases performance even with 3D and $( 2 + 1 ) \\mathrm { D }$ CNNs already capturing some temporal information: Tables 6 and 7. These experiments used 10 iterations and learning the flow parameters. In this, FcF was not used. ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
173,
|
| 836 |
+
430,
|
| 837 |
+
825,
|
| 838 |
+
542
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 7
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "We also compared to the OFF (Sun et al., 2018) using $( 2 + 1 ) \\mathrm { D }$ and 3D CNNs. We observe that this method does not result in meaningful performance increases using CNNs that capture temporal information, while our approach does. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
549,
|
| 848 |
+
825,
|
| 849 |
+
592
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 7
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Comparison to other motion representations We compare to existing CNN-based motion representations methods to confirm that our iterative method to compute a representation is important. For these experiments, when available, we used code provided by the authors and otherwise implemented the methods ourselves. To better compare to existing works, we used $( 1 6 \\times )$ $2 2 4 \\times 2 2 4$ images. MFNet (Lee et al., 2018) captures motion by spatially shifting CNN feature maps, then summing the results, TVNet (Fan et al., 2018) applies a convolutional optical flow method to RGB inputs, and ActionFlowNet $\\mathrm { N g }$ et al., 2018) trains a CNN to jointly predict optical flow and activity classes. We also compare to OFF (Sun et al., 2018) using only RGB inputs. Note that the HMDB performance in (Sun et al., 2018) is only reported using RGB, RGB-diff, and optical flow inputs, here we compare to RGB-only inputs. Our method, which applies the iterative optical flow method on CNN feature maps, performs the best. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
173,
|
| 858 |
+
611,
|
| 859 |
+
826,
|
| 860 |
+
762
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 7
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "table",
|
| 866 |
+
"img_path": "images/f9dbd2e73d0e94cd90246a1c07fadb4efcd45a4a84c32c3f13b9e570961fcaea.jpg",
|
| 867 |
+
"table_caption": [
|
| 868 |
+
"Table 8: Comparisons to other CNN-based motion representations, using 10 iterations and learning flow parameters. This is without FcF and two-stream fusion. "
|
| 869 |
+
],
|
| 870 |
+
"table_footnote": [],
|
| 871 |
+
"table_body": "<table><tr><td></td><td>Tiny-Kinetics</td><td>HMDB</td></tr><tr><td>ActionFlownet (Ng et al., 2018)</td><td>51.8</td><td>56.2</td></tr><tr><td>MFNet (Lee et al., 2018)</td><td>52.5</td><td>56.8</td></tr><tr><td>TVNet (Fan et al., 2018)</td><td>39.4</td><td>57.5</td></tr><tr><td>RGB-OFF (Sun et al., 2018)</td><td>55.6</td><td>56.9</td></tr><tr><td>Ours</td><td>61.1</td><td>65.4</td></tr></table>",
|
| 872 |
+
"bbox": [
|
| 873 |
+
294,
|
| 874 |
+
821,
|
| 875 |
+
704,
|
| 876 |
+
921
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 7
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "table",
|
| 882 |
+
"img_path": "images/6e86654a612d142b3d52268907d0b22b8e89c0fbfd09274d04c8cfbd90ac44a3.jpg",
|
| 883 |
+
"table_caption": [
|
| 884 |
+
"Table 9: Comparison to the state-of-the-art action classifications. ‘HMDB $\\mathrm { ( + K i n ) }$ ’ means that the model was pre-trained on Kinetics before training/testing with HMDB. Missing results are due to those papers not reporting that setting. "
|
| 885 |
+
],
|
| 886 |
+
"table_footnote": [],
|
| 887 |
+
"table_body": "<table><tr><td></td><td>Kinetics</td><td>HMDB</td><td>HMDB(+Kin)</td><td>Run-time (ms)</td></tr><tr><td>2D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB</td><td>61.3</td><td>53.4</td><td></td><td>225±15</td></tr><tr><td>Flow</td><td>48.2</td><td>57.3</td><td></td><td>8039 ±140</td></tr><tr><td>Two-stream</td><td>64.5</td><td>62.4</td><td></td><td>8546 ±147</td></tr><tr><td>TVNet (+RGB) (Fan et al., 2018)</td><td>1</td><td>71.0</td><td></td><td>785 ±21</td></tr><tr><td>OFF (RGB Only) (Sun et al., 2018)</td><td>1</td><td>57.1</td><td></td><td>365±26</td></tr><tr><td>OFF (RGB + Flow + RGB Diff) (Sun et al., 2018)</td><td>-</td><td>74.2</td><td>-</td><td>9520 ±156</td></tr><tr><td>Ours (2D CNN + Rep.Flow)</td><td>68.5</td><td>73.5</td><td>76.4</td><td>524±24</td></tr><tr><td>Ours (2D CNN + FcF)</td><td>69.4</td><td>74.4</td><td>77.3</td><td>576±22</td></tr><tr><td>(2+1)D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB R(2+1)D (Tran et al., 2018)</td><td>74.3</td><td></td><td>74.5</td><td>471±18</td></tr><tr><td>Two-Stream R(2+1)D (Tran et al., 2018)</td><td>75.4</td><td></td><td>78.7</td><td>8623 ±152</td></tr><tr><td>Ours (2+1)D CNN + Rep. Flow)</td><td>75.5</td><td></td><td>77.1</td><td>622 ±23</td></tr><tr><td>Ours ((2+1)D CNN + FcF)</td><td>76.1</td><td></td><td>78.2</td><td>654±21</td></tr><tr><td>3D CNNs</td><td></td><td></td><td></td><td></td></tr><tr><td>RGB S3D (Xie et al., 2017)</td><td>74.7</td><td></td><td>75.9</td><td>525±22</td></tr><tr><td>Two-Stream S3D (Xie et al., 2017)</td><td>77.2</td><td>-</td><td>1</td><td>8886 ±162</td></tr><tr><td>I3D (RGB) (Carreira & Zisserman,2017)</td><td>71.1</td><td>49.8</td><td>74.3</td><td>594±23</td></tr><tr><td>I3D (Flow)</td><td>63.4</td><td>61.9</td><td>77.3</td><td>8845 ±148</td></tr><tr><td>I3D (Two-Stream)</td><td>74.2</td><td>66.4</td><td>80.7</td><td>9354 ±154</td></tr></table>",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
154,
|
| 891 |
+
833,
|
| 892 |
+
448
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Computation time We compare our representation flow to state-of-the-art two-stream approaches in terms of run-time and number of parameters. All timings were measured using a single Pascal Titan X GPU, for a batch of videos with size $3 2 \\times 2 2 4 \\times 2 2 4$ . The flow/two-stream CNNs include the time to run the TVL-1 algorithm (OpenCV GPU version) to compute the optical flow. All CNNs were based on the ResNet-34 architecture. As also shown in Table 9, our method is significantly faster than two-stream models relying on TVL-1 or other optical flow methods, while performing similarly or better. The number of parameters our model has is half of its two-stream competitors (e.g., 21M vs. 42M in the case of our 2D CNN). ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
173,
|
| 901 |
+
468,
|
| 902 |
+
825,
|
| 903 |
+
579
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Comparison to state-of-the-arts We also compared our action recognition accuracies with the state-of-the-arts on Kinetics and HMDB. For this, we train our models using $3 2 \\times 2 2 4 \\times 2 2 4$ inputs with the full kinetics dataset, using 8 V100s. We used the 2D ResNet-50 as the architecture. Based on our experiments, we applied our representation flow layer after the 3rd residual block, learned the hyperparameters and divergence kernels, and used 20 iterations. We also compare our flow-of-flow model. Following Szegedy et al. (2016), the evaluation is performed using a running average of the parameters over time. Our results, shown in Table 9, confirm that this approach outperforms existing models using only RGB as inputs and is competitive against expensive two-stream networks. Our model performs the best among those not using optical flow inputs (i.e., among the models only taking ${ \\sim } 6 0 0 \\mathrm { m s }$ per video). The models requiring optical flow were more than 10 times slower. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
592,
|
| 913 |
+
825,
|
| 914 |
+
731
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "5 CONCLUSION ",
|
| 921 |
+
"text_level": 1,
|
| 922 |
+
"bbox": [
|
| 923 |
+
176,
|
| 924 |
+
751,
|
| 925 |
+
318,
|
| 926 |
+
768
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 8
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "We introduced a learnable representation flow layer inspired by optical flow algorithms. We experimentally compared various forms of our layer to confirm that the iterative optimization and learnable parameters are important. Our model outperformed existing methods in both speed and accuracy on standard datasets. We also introduced the concept of ‘flow of flow’ to compute longer-term motion representations and showed it benefited performance. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
784,
|
| 936 |
+
825,
|
| 937 |
+
854
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 8
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "REFERENCES ",
|
| 944 |
+
"text_level": 1,
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
875,
|
| 948 |
+
285,
|
| 949 |
+
890
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 8
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Hakan Bilen, Basura Fernando, Efstratios Gavves, Andrea Vedaldi, and Stephen Gould. Dynamic image networks for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
178,
|
| 958 |
+
897,
|
| 959 |
+
823,
|
| 960 |
+
922
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "Recognition (CVPR), 2016. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
191,
|
| 969 |
+
104,
|
| 970 |
+
352,
|
| 971 |
+
117
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 9
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Thomas Brox, Andrés Bruhn, Nils Papenberg, and Joachim Weickert. High accuracy optical flow estimation based on a theory for warping. In Proceedings of European Conference on Computer Vision (ECCV), 2004. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
173,
|
| 980 |
+
127,
|
| 981 |
+
823,
|
| 982 |
+
154
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 9
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"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 (CVPR), 2017. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
161,
|
| 992 |
+
823,
|
| 993 |
+
189
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 9
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Alexey Dosovitskiy, Philipp Fischer, Eddy Ilg, Philip Hausser, Caner Hazirbas, Vladimir Golkov, Patrick Van Der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2015. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
196,
|
| 1003 |
+
823,
|
| 1004 |
+
237
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 9
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Lijie Fan, Wenbing Huang, Stefano Ermon Chuang Gan, Boqing Gong, and Junzhou Huang. End-to-end learning of motion representation for video understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
244,
|
| 1014 |
+
823,
|
| 1015 |
+
284
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 9
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "Christoph Feichtenhofer, Axel Pinz, and Richard Wildes. Spatiotemporal residual networks for video action recognition. In Advances in Neural Information Processing Systems (NIPS), 2016a. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
171,
|
| 1024 |
+
291,
|
| 1025 |
+
823,
|
| 1026 |
+
320
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 9
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1933–1941, 2016b. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
176,
|
| 1035 |
+
327,
|
| 1036 |
+
821,
|
| 1037 |
+
367
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 9
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Denis Fortun, Patrick Bouthemy, and Charles Kervrann. Optical flow modeling and computation: a survey. Computer Vision and Image Understanding, 134:1–21, 2015. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
375,
|
| 1047 |
+
823,
|
| 1048 |
+
402
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 9
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Ruohan Gao, Bo Xiong, and Kristen Grauman. Im2flow: Motion hallucination from static images for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
176,
|
| 1057 |
+
410,
|
| 1058 |
+
825,
|
| 1059 |
+
449
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"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 (CVPR), 2016. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
173,
|
| 1068 |
+
457,
|
| 1069 |
+
823,
|
| 1070 |
+
484
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Tak-Wai Hui, Xiaoou Tang, and Chen Change Loy. Liteflownet: A lightweight convolutional neural network for optical flow estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
174,
|
| 1079 |
+
492,
|
| 1080 |
+
823,
|
| 1081 |
+
531
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Largescale video classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1725–1732, 2014. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
173,
|
| 1090 |
+
540,
|
| 1091 |
+
823,
|
| 1092 |
+
580
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
588,
|
| 1102 |
+
823,
|
| 1103 |
+
627
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "H. Kuehne, H. Jhuang, E. Garrote, T. Poggio, and T. Serre. HMDB: a large video database for human motion recognition. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2011. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
635,
|
| 1113 |
+
823,
|
| 1114 |
+
662
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Myunggi Lee, Seung Eui Lee, Sung Joon Son, Gyutae Park, and Nojun Kwak. Motion feature network: Fixed motion filter for action recognition. In Proceedings of European Conference on Computer Vision (ECCV), 2018. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
173,
|
| 1123 |
+
671,
|
| 1124 |
+
825,
|
| 1125 |
+
710
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Joe Yue-Hei Ng, Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4694–4702. IEEE, 2015. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
178,
|
| 1134 |
+
718,
|
| 1135 |
+
825,
|
| 1136 |
+
758
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Joe Yue-Hei Ng, Jonghyun Choi, Jan Neumann, and Larry S Davis. Actionflownet: Learning motion representation for action recognition. In IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE, 2018. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
174,
|
| 1145 |
+
766,
|
| 1146 |
+
825,
|
| 1147 |
+
805
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "AJ Piergiovanni, Chenyou Fan, and Michael S Ryoo. Learning latent sub-events in activity videos using temporal attention filters. In Proceedings of the American Association for Artificial Intelligence (AAAI), 2017. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
814,
|
| 1157 |
+
823,
|
| 1158 |
+
842
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems (NIPS), pp. 568–576, 2014. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
849,
|
| 1168 |
+
825,
|
| 1169 |
+
876
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Shuyang Sun, Zhanghui Kuang, Lu Sheng, Wanli Ouyang, and Wei Zhang. Optical flow guided feature: A fast and robust motion representation for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
176,
|
| 1178 |
+
885,
|
| 1179 |
+
825,
|
| 1180 |
+
924
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
174,
|
| 1189 |
+
104,
|
| 1190 |
+
823,
|
| 1191 |
+
143
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 10
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
173,
|
| 1200 |
+
151,
|
| 1201 |
+
821,
|
| 1202 |
+
191
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 10
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Heng Wang, Alexander Kläser, Cordelia Schmid, and Cheng-Lin Liu. Action recognition by dense trajectories. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3169–3176. IEEE, 2011. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
173,
|
| 1211 |
+
199,
|
| 1212 |
+
828,
|
| 1213 |
+
238
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 10
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning for video understanding. arXiv preprint arXiv:1712.04851, 2017. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
171,
|
| 1222 |
+
247,
|
| 1223 |
+
823,
|
| 1224 |
+
273
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 10
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Christopher Zach, Thomas Pock, and Horst Bischof. A duality based approach for realtime tv-l 1 optical flow. In Joint Pattern Recognition Symposium, pp. 214–223. Springer, 2007. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
174,
|
| 1233 |
+
282,
|
| 1234 |
+
823,
|
| 1235 |
+
309
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 10
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "A TRAINING AND IMPLEMENTATION DETAILS ",
|
| 1242 |
+
"text_level": 1,
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
176,
|
| 1245 |
+
102,
|
| 1246 |
+
573,
|
| 1247 |
+
118
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 11
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Implementation Details When applying the representation flow layer within a CNN, we first applied a 1x1 convolutional layer to reduce the number of channels from $C$ to 32. CNN feature maps often have hundreds of channels, but computing the representation flow for hundreds of channels is computationally expensive. We found 32 channels to be a good trade-off between performance and speed. The flow layer produces output with 64 channels, $x$ and $y$ flows for the 32 input channels, which are concatenated together. We apply a 3x3 convolutional layer to this representation to produce $C$ output channels. This allows us to apply the rest of the standard CNN to the representation flow feature. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
173,
|
| 1256 |
+
133,
|
| 1257 |
+
825,
|
| 1258 |
+
244
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 11
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Two-stream networks stack 10 optical flow frames to capture temporal information (Simonyan & Zisserman, 2014). However, we found that stacking representation flows did not perform well. Instead, we computed the flow for sequential images and averaged the predictions from a sequence of 16 frames. We found this outperformed stacking flow representations. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
174,
|
| 1267 |
+
252,
|
| 1268 |
+
825,
|
| 1269 |
+
308
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 11
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Training Details We trained the network using stochastic gradient descent with momentum set to 0.9. For Kinetics and Tiny-Kinetics, the initial learning rate was 0.1 and decayed by a factor of 10 every 50 epochs. The model was trained for 200 epochs. The 2D CNNs were trained using a batch size of 32 on 4 Titan X GPUs. The 3D and $( 2 + 1 ) \\mathrm { D }$ CNNs were trained with a batch size of 24 using 8 V100 GPUs. When fine-tuning on HMDB, the learning rate started at 0.005 and decayed by a factor of 10 every 20 epochs. The network was fine-tuned for 50 epochs. When learning the optical flow parameters, the learning rate for the parameters (i.e., $\\lambda , \\tau , \\theta$ , divergence kernels and Sobel filters) was set of $0 . 0 1 \\cdot \\mathrm { l r }$ , otherwise the model produced poor predictions. This is likely due to the accumulation of gradients from the many iterations of the algorithm. For Kinetics and Tiny-Kinetics, we used dropout at 0.5 and for HMDB it was set to 0.8. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
174,
|
| 1278 |
+
323,
|
| 1279 |
+
825,
|
| 1280 |
+
462
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 11
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Testing Details For the results reported in Table 9, we classified actions by applying our model to 25 different random croppings of each video. As found in many previous works, this helps increasing the performance slightly. In all the other experiments (i.e., Tables 1-8), random cropping was not used. Also notice that only the results in Table 9 uses our full model with $3 2 \\times 2 2 4 \\times 2 2 4$ input resolution. The other experiments uses spatially and/or temporally smaller models. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
478,
|
| 1290 |
+
825,
|
| 1291 |
+
547
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 11
|
| 1294 |
+
}
|
| 1295 |
+
]
|
parse/train/r1ejxnCctX/r1ejxnCctX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1ejxnCctX/r1ejxnCctX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkg-mA4FDr/rkg-mA4FDr.md
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PRE-TRAINING TASKS FOR EMBEDDING-BASED LARGE-SCALE RETRIEVAL
|
| 2 |
+
|
| 3 |
+
Wei-Cheng Chang∗, Felix X. Yu, Yin-Wen Chang, Yiming Yang, Sanjiv Kumar Carnegie Mellon University & Google {wchang2,yiming}@cs.cmu.edu, {felixyu,yinwen,sanjivk}@google.com
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We consider the large-scale query-document retrieval problem: given a query (e.g., a question), return the set of relevant documents (e.g., paragraphs containing the answer) from a large document corpus. This problem is often solved in two steps. The retrieval phase first reduces the solution space, returning a subset of candidate documents. The scoring phase then re-ranks the documents. Critically, the retrieval algorithm not only desires high recall but also requires to be highly efficient, returning candidates in time sublinear to the number of documents. Unlike the scoring phase witnessing significant advances recently due to the BERT-style pre-training tasks on cross-attention models, the retrieval phase remains less well studied. Most previous works rely on classic Information Retrieval (IR) methods such as BM-25 (token matching $^ +$ TF-IDF weights). These models only accept sparse handcrafted features and can not be optimized for different downstream tasks of interest. In this paper, we conduct a comprehensive study on the embedding-based retrieval models. We show that the key ingredient of learning a strong embedding-based Transformer model is the set of pre-training tasks. With adequately designed paragraph-level pre-training tasks, the Transformer models can remarkably improve over the widely-used BM-25 as well as embedding models without Transformers. The paragraph-level pre-training tasks we studied are Inverse Cloze Task (ICT), Body First Selection (BFS), Wiki Link Prediction (WLP), and the combination of all three.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
We consider the large-scale retrieval problem: given a query, return the most relevant documents from a large corpus, where the size of the corpus can be hundreds of thousands or more. One can view this problem as learning a scoring function $f : \mathcal { X } \times \mathcal { Y } \mathbb { R }$ , that maps a pair of a query and a document $( \mathbf { { q } } , \mathbf { { d } } ) \in \mathcal { X } \times \mathcal { Y }$ to a score $f ( \pmb { q } , \pmb { d } )$ . The function should be designed such that the relevant $( \mathbf { \boldsymbol { q } } , \mathbf { \boldsymbol { d } } )$ pairs have high scores, whereas the irrelevant ones have low scores. Many real-world applications besides query-document retrieval can be cast into this form. For example, in recommendation systems, $\pmb q$ represents a user query and $^ d$ represents a candidate item to recommend (Krichene et al., 2019). In extreme multi-label classification, $\pmb q$ represents a web-page document and $^ d$ represents the categories or hashtags of interests (Jain et al., 2019; Chang et al., 2019). In open-domain question answering, $\pmb q$ represents a question and $^ d$ represents an evidence passage containing the answer (Chen et al., 2017; Hu et al., 2019; Lee et al., 2019).
|
| 12 |
+
|
| 13 |
+
Central to the above is designing the scoring function $f$ . Recently, BERT (Devlin et al., 2019), along with its many successors such as XLNet (Yang et al., 2019b) and RoBERTa (Liu et al., 2019), has led to significant improvements to many NLP tasks such as sentence pairs classification and question-answering. In BERT, the scoring function $f$ is a pre-trained deep bidirectional Transformer model. While BERT-style cross-attention models are very successful, it cannot be directly applied to large-scale retrieval problems because computing $f ( \boldsymbol { q } , \boldsymbol { d } )$ for every possible document can be prohibitively expensive. Thus, one typically first uses a less powerful but more efficient algorithm (another scoring function $f$ ) to reduce the solution space (the “retrieval phase”), and then use the BERT-style model to re-rank the retrieved documents (the “scoring phase”).
|
| 14 |
+
|
| 15 |
+
The retrieval phase is critical. Ideally speaking, the algorithm should have a high recall; otherwise, many relevant documents won’t even be considered in the scoring phase. The algorithm also needs to be highly efficient: it should return a small subset of relevant documents in time sublinear to the number of all documents. Although significant developments are advancing the scoring algorithms, the retrieval algorithms remain less studied, and this is the focus of this paper.
|
| 16 |
+
|
| 17 |
+
The retrieval algorithm can be put into two categories. The first type is classic information retrieval (IR) algorithms relying on token-based matching. One example is BM-25 (Robertson et al., 2009), which remains to be the most commonly-used (Nguyen et al., 2016; Yang et al., 2017; 2019a) and hard to beat (Chapelle & Chang, 2011; Lee et al., 2019) algorithm. Here the scoring function $f$ is based on token-matching between the two high-dimensional sparse vectors with TF-IDF token weights, and retrieval can be done in sublinear time using the inverted index. Despite the wide usage, these algorithms are handcrafted and therefore cannot be optimized for a specific task.
|
| 18 |
+
|
| 19 |
+
The second option is an embedding-based model that jointly embeds queries and documents in the same embedding space and use an inner product or cosine distance to measure the similarity between queries and documents. Let the query embedding model be $\phi ( \cdot )$ and the document embedding model be $\psi ( \cdot )$ . The scoring function is
|
| 20 |
+
|
| 21 |
+
$$
|
| 22 |
+
f ( q , d ) = \langle \phi ( q ) , \psi ( d ) \rangle .
|
| 23 |
+
$$
|
| 24 |
+
|
| 25 |
+
In the inference stage, retrieving relevant documents then becomes finding the nearest neighbors of a query in the embedding space. Since the embeddings of all candidate documents can be precomputed and indexed, the inference can be done efficiently with approximate nearest neighbor search algorithms in the embedding space (Shrivastava & Li, 2014; Guo et al., 2016).
|
| 26 |
+
|
| 27 |
+
In this paper, we refer to the above embedding-based model as the two-tower retrieval model, because the query and document embeddings are coming from two separate “towers” of neural networks. In the literature, it is also known as the Siamese network (Das et al., 2016; Triantafillou et al., 2017) or dual-encoder model (Cer et al., 2018; Mazare et al., 2018). Compared to the sparse ´ token-based models, the two-tower models can capture deeper semantic relationships within queries and documents, and the models can be optimized specifically for the task being considered.
|
| 28 |
+
|
| 29 |
+
In the heart of two-tower models is the embedding functions $\phi ( \cdot )$ and $\psi ( \cdot )$ . A modern choice is using Transformers to model the attention within queries and within documents, rather than the cross-attention between them as in the BERT model. The token-level masked-LM (MLM) pretraining task is crucial to the success of BERT-style cross-attention models. Nevertheless, what pre-training tasks are useful for improving two-tower Transformer models in large-scale retrieval, remains a crucial yet unsolved research problem. In this paper, we aim to answer this question by studying different pre-training tasks for the two-tower Transformer models. We contribute the following insight:
|
| 30 |
+
|
| 31 |
+
• The two-tower Transformer models with proper pre-training can significantly outperform the widely used BM-25 algorithm; • Paragraph-level pre-training tasks such as Inverse Cloze Task (ICT), Body First Selection (BFS), and Wiki Link Prediction (WLP) hugely improve the retrieval quality, whereas the most widely used pre-training task (the token-level masked-LM) gives only marginal gains. • The two-tower models with deep transformer encoders benefit more from paragraph-level pre-training compared to its shallow bag-of-word counterpart (BoW-MLP).
|
| 32 |
+
|
| 33 |
+
To the best of our knowledge, this is the first comprehensive study on pre-training tasks for efficient large-scale retrieval algorithms. The rest of the paper is organized as follows. We start by introducing the two-tower retrieval model in Section 2. The pre-training tasks are presented in 3, and the experiments and analysis are presented in Section 4. Finally, we conclude this work in Section 5.
|
| 34 |
+
|
| 35 |
+
# 2 THE TWO-TOWER RETRIEVAL MODEL
|
| 36 |
+
|
| 37 |
+
Given a query $\pmb q \in \mathcal X$ and a document $\pmb { d } \in \mathcal { V }$ , we consider two-tower retrieval models that consist of two encoder functions, $\phi : \mathcal { X } \to \mathbb { R } ^ { k }$ and $\psi : \mathcal { V } \to \mathbb { R } ^ { k }$ which map a sequence of tokens in $\mathcal { X }$ and $\mathcal { V }$ to their associated embeddings $\phi ( { \pmb q } )$ and $\psi ( d )$ , respectively. The scoring function $f : \mathbb { R } ^ { k } \times \mathbb { R } ^ { k } \to \mathbb { R }$
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 1: Difference between two-tower models and cross-attention models. Following previous works, we consider [CLS] embedding and average pooling as the aggregator’s output for the twotower Transformer model and the two-tower MLP model, respectively.
|
| 41 |
+
|
| 42 |
+
is then defined to be the inner product1 of the embeddings
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
f ( q , d ) = \langle \phi ( q ) , \psi ( d ) \rangle .
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
In this paper, we are interested in parameterizing the encoders $\phi , \psi$ as deep Transformer models (Vaswani et al., 2017) due to its expressive power in modeling natural language.
|
| 49 |
+
|
| 50 |
+
In the rest of this section, we illustrate the advantage of two-tower models in the inference phase; discuss the pros and cons of two-tower models in comparison with BERT-like cross-attention models; present the learning procedure of estimating model parameters under maximum likelihood principle; and review the related works.
|
| 51 |
+
|
| 52 |
+
Inference The difference between two-tower models and cross-attention models is shown in Figure 1. The advantage of two-tower models is the efficiency in the inference time. First, all the document embeddings can be pre-computed. Then, given an unseen query $\pmb q$ , we only need to rank the document based on its inner product with the query embedding. This is way more efficient than running inference on a cross-attention BERT-style model (often used in the scoring stage). To see this, the scoring function of BERT-style model is with the form
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
f _ { \boldsymbol { \theta } , { \boldsymbol { w } } } ( \mathbf { \boldsymbol { q } } , \mathbf { \boldsymbol { d } } ) = \psi _ { \boldsymbol { \theta } } ( \mathbf { \boldsymbol { q } } \oplus \mathbf { \boldsymbol { d } } ) ^ { T } \mathbf { \boldsymbol { w } } ,
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
where $\oplus$ denotes the concatenate operation of the query and the document sequence and $\mathbf { \boldsymbol { w } } \in \mathbb { R } ^ { k }$ is an additional model parameters. In BERT, for each query, one has to make the above expensive inference on all documents. For example, with the 128-dimensional embedding space, inner product between 1000 query embeddings with 1 million document embeddings only takes hundreds of milliseconds on CPUs, while computing the same scores with cross-attention models takes hours if not more even on GPUs.
|
| 59 |
+
|
| 60 |
+
Furthermore, retrieving the closest documents in the embedding space can be performed in sublinear time with the well-studied maximum inner product (MIPS) algorithms with almost no loss in recall (Shrivastava & Li, 2014; Guo et al., 2016).
|
| 61 |
+
|
| 62 |
+
Learning One unique advantage of the two-tower retrieval model in comparison with classic IR algorithms is the ability to train it for specific tasks. In this paper, we assume that the training data is presented as relevant “positive” query-document pairs $\mathcal { T } ~ = ~ \{ ( q _ { i } , d _ { i } ) \} _ { i = 1 } ^ { | \mathcal { T } | }$ . Let $\theta$ be the model parameters. We estimate the model parameters by maximizing the log likelihood maxθ $\sum _ { ( \pmb { q } , \pmb { d } ) \in \mathcal { T } } \log p _ { \theta } ( \pmb { d } | \pmb { q } )$ where the conditional probability is defined by the Softmax:
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
p _ { \theta } ( d | \mathbf { \epsilon } _ { q } ) = \frac { \exp \left( f _ { \theta } ( \mathbf { \epsilon } _ { q } , d ) \right) } { \sum _ { d ^ { \prime } \in \mathcal { D } } \exp \left( f _ { \theta } ( \mathbf { \epsilon } _ { q } , d ^ { \prime } ) \right) } ,
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
and $\mathcal { D }$ is the set of all possible documents. The Softmax involves computing the expensive denominator of Equation (3), a.k.a, the partition function, that scales linearly to the number of documents. In practice, we use the Sampled Softmax, an approximation of the full-Softmax where we replace $\mathcal { D }$ by a small subset of documents in the current batch, with a proper correcting term to ensure the unbiasedness of the partition function (Bengio & Senecal, 2008). Sampled Softmax has been widely ´ used in language modeling (Chen et al., 2016; Grave et al., 2017), recommendation systems (Yu et al., 2017; Krichene et al., 2019) and extreme classification (Blanc & Rendle, 2018; Reddi et al., 2019).
|
| 69 |
+
|
| 70 |
+
Since we often have a limited amount of supervised data from the downstream task, it is important to first train the retrieval model with positive pairs $\tau$ from a set of pre-training tasks. We then fine-tune it with positive pairs $\tau$ from the downstream task. We will present the set of pre-training tasks we study in Section 3.
|
| 71 |
+
|
| 72 |
+
Related Works Cer et al. (2018) study the two-tower Transformer model as a universal sentence encoder. The model is learned with multiple tasks including the unsupervised Skip-Thought task (Kiros et al., 2015), the supervised conversation input-response task (Henderson et al., 2017), and the supervised sentence classification SNLI task (Bowman et al., 2015). Humeau et al. (2019) propose the Poly-encoders architecture to balance the computation/expressiveness tradeoff between two-tower models and cross-attention models. Reimers & Gurevych (2019) fine-tune the deep twotower models on two supervised datasets, SNLI and MNLI (Williams et al., 2018), then apply it in solving other downstream tasks. Unlike all the above works that consider training the two-tower Transformer models on a limited amount of supervised corpus for the sentence classification tasks, we study different pre-training tasks and their contributions in the large-scale retrieval settings.
|
| 73 |
+
|
| 74 |
+
Another closely related topic is the open-domain question answering. Previous works consider using BM25 or other lexical matching methods to retrieve the top- $\mathbf { \nabla } _ { k }$ relevant passages efficiently and then deploy the more expensive cross-attention scoring function to find the answer (Chen et al., 2017; Yang et al., 2017; 2019a). Das et al. (2019) encode query and document separately with LSTM encoders. They employ a training procedure different from ours and do not consider pre-training. Very recently, Lee et al. (2019) propose to pre-train two-tower Transformer models with the Inverse Cloze Task (ICT) to replace BM25 in the passage retrieval phase. The advantage is that the retriever can be trained jointly with the reader/scorer. Nevertheless, their pre-trained two-tower models do not outperform BM25 on the SQuAD dataset, potentially because the fine-tuning is only performed on the query-tower.
|
| 75 |
+
|
| 76 |
+
Model distillation (Hinton et al., 2015) can be used to compress expensive BERT-like cross-attention models into efficient two-tower Transformer models for large-scale retrieval problems. For example, Tang et al. (2019) demonstrate initial success in distilling the BERT model into a two-tower model with BiLSTM as encoders. The pre-training tasks we study in this paper can be used as additional supervision in the distillation process, and therefore complementary to model distillation.
|
| 77 |
+
|
| 78 |
+
# 3 PRE-TRAINING TASKS OF DIFFERENT SEMANTIC GRANULARITIES
|
| 79 |
+
|
| 80 |
+
As mentioned in Section 2, due to the limited amount of supervised data from downstream tasks, a crucial step of learning deep retrieval models is to pre-train the model with a set of pre-training tasks (we will verify this in Section 4). Sentence-level pre-training tasks have been studied before. One example is reconstructing the surface form of surrounding sentences given the encoded sentence (Le & Mikolov, 2014; Kiros et al., 2015), and another one is discriminating the next sentence from random candidates (Jernite et al., 2017; Logeswaran & Lee, 2018).
|
| 81 |
+
|
| 82 |
+
In this paper, we assume that the pre-training data is defined as positive query-document $( q , d )$ pairs. A good pre-training task should have the following two properties. 1) It should be relevant to the downstream task. For example, when solving the question-answering retrieval problem, the model should capture different granularities of semantics between the query and document. The semantics can be the local context within a paragraph, global consistency within a document, and even semantic relation between two documents. 2) It should be cost-efficient to collect the pre-training data, ideally not requiring additional human supervision.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 2: An illustrative example of the three pre-training tasks where each query $\pmb q$ is highlighted in different colors. All queries are paired with the same text block $^ d$ . Concretely, $( q _ { 1 } , d )$ of ICT is defined locally within a paragraph; $( q _ { 2 } , d )$ of BFS is defined globally within an article; $( q _ { 3 } , d )$ o f WLP is defined distantly across two related articles hyper-linked by the Wikipedia entity.
|
| 86 |
+
|
| 87 |
+
In light of the above requirements, we present three pre-training tasks that emphasize different aspects of semantics between queries and documents: Inverse Cloze Task (ICT), Body First Selection (BFS), and Wiki Link Prediction (WLP). In specific, BFS and WLP are newly proposed in this paper. The training data for all these tasks can be freely obtained based from Wikipedia without an additional manual labeling process. Figure 2 provides illustrative examples of these tasks.
|
| 88 |
+
|
| 89 |
+
Inverse Cloze Task (ICT) Given a passage $\pmb { p }$ consisting of $n$ sentences, $\pmb { p } = \{ \pmb { s } _ { 1 } , \ldots , \pmb { s } _ { n } \}$ , the query $\pmb q$ is a sentence randomly drawn from the passage, $\mathbf { \Delta } q = s _ { i } , i \sim [ 1 , n ]$ , and the document $^ d$ is the rest of sentences, $d = \{ s _ { 1 } , \ldots , s _ { i - 1 } , s _ { i + 1 } , \ldots , s _ { n } \}$ . See $( q _ { 1 } , d )$ in Figure 2 as an example. This task captures the semantic context of a sentence and was originally proposed by Lee et al. (2019).
|
| 90 |
+
|
| 91 |
+
Body First Selection (BFS) We propose BFS to capture semantic relationship outside of the local paragraph. Here, the query $\pmb { q } _ { 2 }$ is a random sentence in the first section of a Wikipedia page, and the document $^ d$ is a random passage from the same page (Figure 2). Since the first section of a Wikipedia article is often the description or summary of the whole page, we expect it to contain information central to the topic.
|
| 92 |
+
|
| 93 |
+
Wiki Link Prediction (WLP) We propose WLP to capture inter-page semantic relation. The query $q _ { 3 }$ is a random sentence in the first section of a Wikipedia page, and the document $^ d$ is a passage from another page where there is a hyperlink link to the page of $\cdot$ (Figure 2). Intuitively, a hyperlink link indicates relationship between the two Wikipedia pages. Again, we take a sentence from the first section because it is often the description or summary of the topic.
|
| 94 |
+
|
| 95 |
+
Masked LM (MLM) In addition to the above tasks, we also consider the classic masked language model (MLM) pre-training task as a baseline: predict the randomly masked tokens in a sentence. MLM is the primary pre-training task used in BERT (Devlin et al., 2019).
|
| 96 |
+
|
| 97 |
+
<table><tr><td>Pre-training tasks :</td><td>#tokens</td><td>#pairs</td><td>avg. #query tokens</td><td>#doc tokens</td></tr><tr><td>ICT</td><td>11.2B</td><td>50.2M</td><td>30.41</td><td>193.89</td></tr><tr><td>BFS</td><td>3.3B</td><td>17.5M</td><td>28.02</td><td>160.46</td></tr><tr><td>WLP</td><td>2.7B</td><td>24.9M</td><td>29.42</td><td>82.14</td></tr></table>
|
| 98 |
+
|
| 99 |
+
Table 1: Data statistics of three pre-training tasks. #query tokens represent average number of tokens per query, and #doc tokens represent average number of tokens per passage.
|
| 100 |
+
|
| 101 |
+
# 4 EXPERIMENTS
|
| 102 |
+
|
| 103 |
+
# 4.1 EXPERIMENTAL SETTING
|
| 104 |
+
|
| 105 |
+
The two-tower retrieval model Each tower of the retrieval model follows the architecture and hyper-parameters of the 12 layers BERT-base model. For both towers, the final embedding is generated by applying a linear layer on the hidden state of the [CLS] token. The embedding dimension is 512. The sequence length for the query encoder and document encoder are set to be 64 and 288, respectively. We pre-train the model on 32 TPU v3 chips for 100K steps with an Adam optimizer and batch size of 8192. This process takes about 2.5 days. We use the Adam optimizer with an initial learning rate $1 \times 1 0 ^ { - 4 }$ with the warm-up ratio 0.1, followed by a linear learning rate decay. For fine-tuning, the learning rate of Adam is set to $5 \times 1 0 ^ { - 5 }$ with 2000 training steps and batch size 512.
|
| 106 |
+
|
| 107 |
+
Pre-training tasks We compare the token-level pre-training task MLM with the three paragraphlevel pre-training tasks, ICT, BFS and WLP. The data of ICT, BFS and WLP are generated from the Wikipedia corpus. The data statistics are reported in Table 1. Note that #tokens represents the number of sub-words tokenized by WordPiece (Wu et al., 2016). The pre-training tasks define the positive $( q , d )$ pair for learning the two-tower Transformer models. For ICT, the $^ d$ is a pair of article title and passage separated by [SEP] symbol as input to the doc-tower.
|
| 108 |
+
|
| 109 |
+
We propose to pre-train the two-tower Transformer models jointly with all three paragraph-level pretraining tasks, hence the name $1 mathsf { C T } + \mathsf { B F S } + \mathsf { W L P }$ . Here the model is pre-trained on one combined set of $( q , d )$ pairs, where each pair is uniformly sampled from the three pre-training tasks in Table 1. See Section 4.2 and 4.3 for its outstanding performance over other baselines.
|
| 110 |
+
|
| 111 |
+
Downstream tasks We consider the Retrieval Question-Answering (ReQA) benchmark, proposed by Ahmad et al. (2019).2 The two QA datasets we consider are SQuAD and Natural Questions. Note that each entry of QA datasets is a tuple $( \pmb q , \pmb { a } , \pmb { p } )$ , where $\pmb q$ is the question, $\textbf { \em a }$ is the answer span, and $\pmb { p }$ is the evidence passage containing $\textbf { \em a }$ . Following Ahmad et al. (2019), we split a passage into sentences, $\pmb { p } = \pmb { s } _ { 1 } \pmb { s } _ { 2 } \dots \pmb { s } _ { n }$ and transform the original entry $( \pmb q , \pmb { a } , \pmb { p } )$ to a new tuple $( q , s _ { i } , p )$ where $\mathbf { \boldsymbol { s } } _ { i }$ is the sentence contains the answer span $^ { a }$ .
|
| 112 |
+
|
| 113 |
+
The retrieval problem is that given a question $\pmb q$ , retrieve the correct sentence and evidence passage pair $( \boldsymbol { s } , \boldsymbol { p } )$ from all candidates. For each passage $\pmb { p }$ , we create a set of candidate pairs $( \boldsymbol { s } _ { i } , \boldsymbol { p } )$ where $i = 1 \dots n$ , and the retrieval candidate set is built by combining such pairs for all passages. This problem is more challenging than retrieving the evidence passage only since the larger number of candidates to be retrieved. The data statistics of the downstream ReQA benchmark are shown in Table 2. Note that, similar to Ahmad et al. (2019), the ReQA benchmark is not entirely opendomain QA retrieval as the candidates $( \boldsymbol { s } , \boldsymbol { p } )$ only cover the training set of QA dataset instead of entire Wikipedia articles. For the open-domain retrieval experiment, see details in Section 4.4.
|
| 114 |
+
|
| 115 |
+
Evaluation For each dataset, we consider different training/test split of the data $( 1 \% / 9 9 \%$ , $5 \% / 9 5 \%$ and, $8 0 \% / 2 0 \% )$ in the fine-tuning stage and the $10 \%$ of training set is held out as the validation set for hyper-parameter tuning. The split is created assuming a cold-start retrieval scenario where the queries in the test (query, document) pairs are not seen in training.
|
| 116 |
+
|
| 117 |
+
Table 2: Data statistics of ReQA benchmark. candidate represents all (sentence, passage) pairs.
|
| 118 |
+
|
| 119 |
+
<table><tr><td>ReQA Dataset</td><td>#query</td><td>#candidate</td><td>#tuples</td><td>#query tokens</td><td>#doc tokens</td></tr><tr><td>SQuAD</td><td>97,888</td><td>101,951</td><td>99,024</td><td>11.55</td><td>291.35</td></tr><tr><td>Natural Questions</td><td>74,097</td><td>239,008</td><td>74,097</td><td>9.29</td><td>352.67</td></tr></table>
|
| 120 |
+
|
| 121 |
+
<table><tr><td rowspan=1 colspan=1>train/test ratio</td><td rowspan=1 colspan=1>Encoder</td><td rowspan=1 colspan=3>Pre-training task</td><td rowspan=1 colspan=1>R@1 R@5 R@10 R@50 R@100</td></tr><tr><td rowspan=5 colspan=1>1%/99%</td><td rowspan=5 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=2 colspan=3>No PretrainingNo Pretraining</td><td rowspan=1 colspan=1>41.86 58.00 63.64 74.15 77.91</td></tr><tr><td rowspan=1 colspan=2>NoPret</td><td rowspan=1 colspan=2>No Pretraining</td><td rowspan=1 colspan=1>0.14 0.35 0.49 1.13 1.72</td></tr><tr><td rowspan=3 colspan=3>ICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>+WLP</td><td rowspan=1 colspan=1>22.55 41.03 49.93 69.70 77.01</td></tr><tr><td rowspan=1 colspan=1>0.02 0.06 0.08 0.31 0.540.18 0.51 0.82 2.46 3.93</td></tr><tr><td rowspan=1 colspan=1>0.18 0.51 0.82 2.46 3.9337.43 61.48 70.18 85.37 89.85</td></tr><tr><td rowspan=6 colspan=1>5%/95%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=3>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>41.87 57.98 63.63 74.17 77.91</td></tr><tr><td rowspan=1 colspan=1>1.13 2.68 3.62 7.16 9.55</td></tr><tr><td rowspan=1 colspan=1>26.23 46.49 55.68 75.28 81.89</td></tr><tr><td rowspan=1 colspan=1>0.17 0.36 0.54 1.43 2.17</td></tr><tr><td rowspan=1 colspan=1>1.19 3.59 5.40 12.52 17.41</td></tr><tr><td rowspan=1 colspan=1>45.90 70.89 78.47 90.49 93.64</td></tr><tr><td rowspan=6 colspan=1>80%/20%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=3>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>41.77 57.95 63.55 73.94 77.49</td></tr><tr><td rowspan=1 colspan=1>19.65 36.31 44.19 62.40 69.19</td></tr><tr><td rowspan=1 colspan=1>32.24 55.26 65.49 83.37 88.50</td></tr><tr><td rowspan=1 colspan=1>12.32 26.88 34.46 53.74 61.53</td></tr><tr><td rowspan=1 colspan=1>27.34 49.59 58.17 74.89 80.33</td></tr><tr><td rowspan=1 colspan=1>58.35 82.76 88.44 95.87 97.49</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 3: Recall $@ \mathbf { k }$ on SQuAD. Numbers are in percentage $( \% )$
|
| 124 |
+
|
| 125 |
+
For the evaluation metric, we focus on recall $\ @ \mathrm { k } ^ { 3 }$ because the goal of the retrieval phase is to capture the positives in the top-k results. The retrieval performance can be understood independently of the scoring model used by measuring recall at different k. In fact, in the extreme cases when the scoring model is either oracle or random, the final precision metric is proportional to recall $@ \mathbf { k }$ .
|
| 126 |
+
|
| 127 |
+
# 4.2 MAIN RESULTS
|
| 128 |
+
|
| 129 |
+
Table 3 and Table 4 compare the proposed combination of pre-training tasks, $1 C T + B F S + W L P$ , to various baselines on SQuAD and Natural Questions, respectively. In both benchmarks, $1 C T + B F S + W L P$ notably outperforms all other methods. This suggests that one should use a twotower Transformer model with properly designed pre-training tasks in the retrieval stage to replace the widely used BM-25 algorithm. We present some of the detailed findings below.
|
| 130 |
+
|
| 131 |
+
The BM-25 baseline In retrieval, BM-25 is a simple but tough-to-beat unsupervised baseline using token-matching with TF-IDF weights as the scoring function. BM-25 performs especially well for the SQuAD benchmark, as the data collection process and human annotations of this dataset are biased towards question-answer pairs with overlapping tokens (Rajpurkar et al., 2016; Kwiatkowski et al., 2019). For instance, in the limited fine-tuning data scenario (e.g., $1 \%$ and $5 \%$ ), BM-25 outperforms the two-tower transformer models with no pre-training (No Pretraining) or with lesseffective pre-training tasks (MLM). This result verifies that BM-25 is a robust retrieval model and therefore widely used in recent works (Chen et al., 2017; Yang et al., 2017; Lee et al., 2019)4.
|
| 132 |
+
|
| 133 |
+
Encoder architecture We justify the use of Transformer as encoders by comparing it with a shallow bag-of-word MLP model (BoW-MLP). Specifically, BoW-MLP looks up uni-grams from the embedding table5, aggregates the embeddings with average pooling, and passes them through a shallow two-layer MLP network with tanh activation to generate the final 512-dimensional query/document embeddings. For fair comparison, the BoW-MLP encoder has a comparable model size to the Transformer encoder (i.e., 128M v.s. 110M parameters, slightly favorable to BoW-MLP encoder).
|
| 134 |
+
|
| 135 |
+
With a properly designed pre-training task (e.g., $\mathsf { I C T } + \mathsf { B F S } + \mathsf { W L P } )$ ), the Transformer encoder considerably outperforms its shallow counterpart (BoW-MLP), suggesting that the former benefits more from the unsupervised pre-training tasks. On the other hand, without any pre-training, the performance of the Transformer encoder is worse than BoW-MLP encoder, possibly because the former is over-fitting on the limited amount of labeled fine-tuning data.
|
| 136 |
+
|
| 137 |
+
Pre-training tasks When pre-training the two-tower Transformer model, we compare the pretraining tasks to two baselines: No Pretraining and MLM. No Pretraining represents random initializing the model, and MLM is the token-level masked-LM task introduced in Section 3.
|
| 138 |
+
|
| 139 |
+
On both datasets, the token-level pre-training task MLM only marginally improves over the nopretraining baseline (No Pretraining). In contrast, combining the paragraph-level pre-training tasks $1 C T + B F S + W L P$ provides a huge boost on the performance. This verifies our assumption that the design of task-related pre-training tasks is crucial. The performance of adding individual pre-training tasks is presented in the next section.
|
| 140 |
+
|
| 141 |
+
<table><tr><td rowspan=1 colspan=1>train/test ratio</td><td rowspan=1 colspan=1>Encoder</td><td rowspan=1 colspan=1>Pre-training task</td><td rowspan=1 colspan=1>R@1 R@5 R@10 R@50 R@100</td></tr><tr><td rowspan=6 colspan=1>1%/99%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>4.99 11.91 15.41 24.00 27.97</td></tr><tr><td rowspan=1 colspan=1>0.28 0.80 1.08 2.02 2.66</td></tr><tr><td rowspan=1 colspan=1>9.22 24.98 33.36 53.67 61.30</td></tr><tr><td rowspan=1 colspan=1>0.07 0.19 0.28 0.56 0.85</td></tr><tr><td rowspan=1 colspan=1>0.18 0.56 0.81 1.95 2.98</td></tr><tr><td rowspan=1 colspan=1>17.31 43.62 55.00 76.59 82.84</td></tr><tr><td rowspan=5 colspan=1>5%/95%</td><td rowspan=5 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=5 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>5.03 11.96 15.47 24.04 28.00</td></tr><tr><td rowspan=1 colspan=1>1.36 3.77 4.98 8.56 10.77</td></tr><tr><td rowspan=1 colspan=1>11.40 30.64 40.63 62.95 70.85</td></tr><tr><td rowspan=1 colspan=1>0.37 1.07 1.40 2.73 3.82</td></tr><tr><td rowspan=1 colspan=1>1.10 3.42 4.89 10.49 14.3721.46 51.03 62.99 83.04 88.05</td></tr><tr><td rowspan=6 colspan=1>80%/20%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>4.93 11.52 14.96 23.64 27.77</td></tr><tr><td rowspan=1 colspan=1>9.78 26.76 34.16 50.34 56.44</td></tr><tr><td rowspan=1 colspan=1>13.58 37.78 50.40 76.11 82.98</td></tr><tr><td rowspan=1 colspan=1>7.49 20.11 25.40 38.26 43.75</td></tr><tr><td rowspan=1 colspan=1>16.74 40.48 49.53 67.91 73.91</td></tr><tr><td rowspan=1 colspan=1>30.27 63.97 75.85 91.84 94.60</td></tr></table>
|
| 142 |
+
|
| 143 |
+
Table 4: Recall $@ \mathbf { k }$ on Natural Questions. Numbers are in percentage $( \% )$
|
| 144 |
+
|
| 145 |
+
# 4.3 ABLATION STUDY
|
| 146 |
+
|
| 147 |
+
We conduct a more thorough ablation study on Natural Questions involving (1) the number of layers in Transformer; (2) different pre-training tasks; and (3) dimension of the embedding space. The result is presented in Table 5.
|
| 148 |
+
|
| 149 |
+
Index 1, 2, and 3 show the individual performance of three pre-training tasks. All of these tasks are much more effective than MLM. Among them, ICT has the best performance, followed by BFS, and then WLP. This suggests that the (query, document) pairs defined by local context within passage are suitable for the ReQA task.
|
| 150 |
+
|
| 151 |
+
<table><tr><td rowspan="2">Index</td><td colspan="3">Ablation Configuration</td><td colspan="4">R @ 100 on different train/test ratio</td></tr><tr><td>#layer</td><td>Pre-training task</td><td>emb-dim|</td><td>1%</td><td>5%</td><td>10%</td><td>80%</td></tr><tr><td>1</td><td>4</td><td>ICT</td><td>128</td><td>77.13</td><td>82.03</td><td>84.22</td><td>91.88</td></tr><tr><td>2</td><td>4</td><td>BFS</td><td>128</td><td>72.99</td><td>78.34</td><td>80.47</td><td>89.82</td></tr><tr><td>3</td><td>4</td><td>WLP</td><td>128</td><td>56.94</td><td>68.08</td><td>72.51</td><td>86.15</td></tr><tr><td>4</td><td>12</td><td>No Pretraining</td><td>128</td><td>0.72</td><td>3.88</td><td>6.94</td><td>38.94</td></tr><tr><td>5</td><td>12</td><td>MLM</td><td>128</td><td>2.99</td><td>12.21</td><td>22.97</td><td>71.12</td></tr><tr><td>6</td><td>12</td><td>ICT</td><td>128</td><td>79.80</td><td>85.97</td><td>88.13</td><td>93.91</td></tr><tr><td>7</td><td>12</td><td>ICT+BFS+WLP</td><td>128</td><td>81.31</td><td>87.08</td><td>89.06</td><td>94.37</td></tr><tr><td>8</td><td>12</td><td>ICT+BFS+WLP</td><td>256</td><td>81.48</td><td>87.74</td><td>89.54</td><td>94.73</td></tr><tr><td>9</td><td>12</td><td>ICT+BFS+WLP</td><td>512</td><td>82.84</td><td>88.05</td><td>90.03</td><td>94.60</td></tr></table>
|
| 152 |
+
|
| 153 |
+
Table 5: Ablation study on Natural Questions based on Recall $@$ 100. Index 9 represents the proposed method in Table 4.
|
| 154 |
+
|
| 155 |
+
Also note from Index 6 and 7, $1 mathsf { C T } + \mathsf { B F S } + \mathsf { W L P }$ pre-training is better than ICT with $1 . 5 \%$ absolute improvement over ICT in the low-data regime. This reflects that, when there’s no sufficient downstream training data, more globally pre-training tasks is beneficial as it encodes multi-hop reasoning priors such as different passages within the same article (BFS) or even going beyond to different articles linked by the same entities (WLP).
|
| 156 |
+
|
| 157 |
+
Finally, The advantage of increasing number of layers is manifest by comparing Index 1 and Index 6, while Index 7, 8 and 9 show the benefit of increasing the dimension of the embedding space.
|
| 158 |
+
|
| 159 |
+
# 4.4 EVALUATION OF OPEN-DOMAIN RETRIEVAL
|
| 160 |
+
|
| 161 |
+
We consider the open-domain retrieval setting by augmenting the candidate set of the ReQA benchmark with large-scale (sentence, evidence passage) pairs extracted from general Wikipedia articles. In particular, we preprocess/sub-sample the open-domain Wikipedia retrieval set of the DrQA paper (Chen et al., 2017) into one million (sentence, evidence passage) pairs, and add this external 1M candidate pairs into the existing retrieval candidate set of the ReQA benchmark.
|
| 162 |
+
|
| 163 |
+
Table 6: Open-domain retrieval results of Natural Questions dataset, where existing candidates are augmented with additional 1M retrieval candidates (i.e., 1M of $( \boldsymbol { s } , \boldsymbol { p } )$ candidate pairs) extracted from open-domain Wikipedia articles.
|
| 164 |
+
|
| 165 |
+
<table><tr><td>train/test ratio</td><td>Pre-training task</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@50</td><td>R@100</td></tr><tr><td rowspan="3">1%/99%</td><td>BM-25</td><td>3.70</td><td>9.58</td><td>12.69</td><td>20.27</td><td>23.83</td></tr><tr><td>ICT</td><td>14.18</td><td>37.36</td><td>48.08</td><td>69.23</td><td>76.01</td></tr><tr><td>ICT+BFS+WLP</td><td>13.19</td><td>37.61</td><td>48.77</td><td>70.43</td><td>77.20</td></tr><tr><td rowspan="3">5%/95%</td><td>BM-25</td><td>3.21</td><td>8.62</td><td>11.50</td><td>18.59</td><td>21.78</td></tr><tr><td>ICT</td><td>17.94</td><td>45.65</td><td>57.11</td><td>76.87</td><td>82.60</td></tr><tr><td>ICT+BFS+WLP</td><td>17.62</td><td>45.92</td><td>57.75</td><td>78.14</td><td>83.78</td></tr><tr><td rowspan="3">80%/20%</td><td>BM-25</td><td>3.12</td><td>8.45</td><td>11.18</td><td>18.05</td><td>21.30</td></tr><tr><td>ICT</td><td>24.89</td><td>57.89</td><td>69.86</td><td>87.67</td><td>91.29</td></tr><tr><td>ICT+BFS+WLP</td><td>25.41</td><td>59.36</td><td>71.12</td><td>88.25</td><td>91.71</td></tr></table>
|
| 166 |
+
|
| 167 |
+
The results of open-domain retrieval on Natural Questions are presented in Table 6. Firstly, we see that the two-tower Transformer models pretrained with $1 mathsf { C T } + \mathsf { B F S } + \mathsf { W L P }$ and ICT substantially outperform the BM-25 baseline. Secondly, $1 C T + B F S + W L P$ pre-training method consistently improves the ICT pre-training method in most cases. Interestingly, the improvements are more noticeable at $\mathrm { R @ 5 0 }$ and $\mathbf { R } @ \mathbf { l } 0 0$ , possibly due to that the distant multi-hop per-training supervision induces better retrieval quality at the latter part of the rank list. Finally, we conclude that the evaluation results of the 1M open-domain retrieval are consistent with our previous empirical evaluation on the ReQA benchmark with smaller retrieval candidate sets (Section 4.2).
|
| 168 |
+
|
| 169 |
+
# 5 CONCLUSION
|
| 170 |
+
|
| 171 |
+
We conducted a comprehensive study on how various pre-training tasks help in the large-scale retrieval problem such as evidence retrieval for question-answering. We showed that the two-tower Transformer models with random initialization (No Pretraining) or the unsuitable token-level pretraining task (MLM) are no better than the robust IR baseline BM-25 in most cases. With properly designed paragraph-level pre-training tasks inlcuding ICT, BFS and WLP, the two-tower Transformer models can considerably improve over the widely used BM-25 algorithm.
|
| 172 |
+
|
| 173 |
+
For future works, we plan to study how the pre-training tasks apply to other types of encoders architectures, generating the pre-training data from corpora other than Wikipedia, and how pretraining compares with different types of regularizations.
|
| 174 |
+
|
| 175 |
+
# REFERENCES
|
| 176 |
+
|
| 177 |
+
Amin Ahmad, Noah Constant, Yinfei Yang, and Daniel Cer. ReQA: An evaluation for end-to-end answer retrieval models. In Proceedings of the 2nd Workshop on Machine Reading for Question Answering, pp. 137–146, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-5819. URL https://www.aclweb.org/anthology/ D19-5819.
|
| 178 |
+
|
| 179 |
+
Yoshua Bengio and Jean-Sebastien Sen ´ ecal. Adaptive importance sampling to accelerate training of ´ a neural probabilistic language model. IEEE Transactions on Neural Networks, 19(4):713–722, 2008.
|
| 180 |
+
|
| 181 |
+
Guy Blanc and Steffen Rendle. Adaptive sampled softmax with kernel based sampling. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 590–599, 2018.
|
| 182 |
+
|
| 183 |
+
Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 632–642, 2015.
|
| 184 |
+
|
| 185 |
+
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. In ACL, 2018.
|
| 186 |
+
|
| 187 |
+
Wei-Cheng Chang, Hsiang-Fu Yu, Kai Zhong, Yiming Yang, and Inderjit Dhillon. X-BERT: eXtreme multi-label text with BERT. arXiv preprint arXiv:1905.02331, 2019.
|
| 188 |
+
|
| 189 |
+
Olivier Chapelle and Yi Chang. Yahoo! learning to rank challenge overview. In Proceedings of the learning to rank challenge, pp. 1–24, 2011.
|
| 190 |
+
|
| 191 |
+
Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to answer opendomain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL) (Volume 1: Long Papers), pp. 1870–1879, 2017.
|
| 192 |
+
|
| 193 |
+
Welin Chen, David Grangier, and Michael Auli. Strategies for training large vocabulary neural language models. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL), pp. 1975–1985, 2016.
|
| 194 |
+
|
| 195 |
+
Arpita Das, Harish Yenala, Manoj Chinnakotla, and Manish Shrivastava. Together we stand: Siamese networks for similar question retrieval. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL) (Volume 1: Long Papers), pp. 378–387, 2016.
|
| 196 |
+
|
| 197 |
+
Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. Multi-step retrieverreader interaction for scalable open-domain question answering. In Proceedings of the International Conference on Learning Representations (ICLR), 2019.
|
| 198 |
+
|
| 199 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2019.
|
| 200 |
+
|
| 201 |
+
Edouard Grave, Armand Joulin, Moustapha Cisse, Herv ´ e J ´ egou, et al. Efficient softmax approxima- ´ tion for gpus. In Proceedings of the 34th International Conference on Machine Learning (ICML), pp. 1302–1310. JMLR. org, 2017.
|
| 202 |
+
|
| 203 |
+
Ruiqi Guo, Sanjiv Kumar, Krzysztof Choromanski, and David Simcha. Quantization based fast inner product search. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 482–490, 2016.
|
| 204 |
+
|
| 205 |
+
Matthew Henderson, Rami Al-Rfou, Brian Strope, Yun-hsuan Sung, Laszl ´ o Luk ´ acs, Ruiqi Guo, ´ Sanjiv Kumar, Balint Miklos, and Ray Kurzweil. Efficient natural language response suggestion for smart reply. arXiv preprint arXiv:1705.00652, 2017.
|
| 206 |
+
|
| 207 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 208 |
+
|
| 209 |
+
Minghao Hu, Yuxing Peng, Zhen Huang, and Dongsheng Li. Retrieve, read, rerank: Towards end-toend multi-document reading comprehension. In Proceedings of InProceedings of the 57th Annual Meeting of the Association for Computa-tional Linguistics (ACL), 2019.
|
| 210 |
+
|
| 211 |
+
Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. Poly-encoders: Transformer architectures and pre-training strategies for fast and accurate multi-sentence scoring. arXiv preprint arXiv:1905.01969, 2019.
|
| 212 |
+
|
| 213 |
+
Himanshu Jain, Venkatesh Balasubramanian, Bhanu Chunduri, and Manik Varma. Slice: Scalable linear extreme classifiers trained on 100 million labels for related searches. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, pp. 528–536. ACM, 2019.
|
| 214 |
+
|
| 215 |
+
Yacine Jernite, Samuel R Bowman, and David Sontag. Discourse-based objectives for fast unsupervised sentence representation learning. arXiv preprint arXiv:1705.00557, 2017.
|
| 216 |
+
|
| 217 |
+
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 (NIPS), pp. 3294–3302, 2015.
|
| 218 |
+
|
| 219 |
+
Walid Krichene, Nicolas Mayoraz, Steffen Rendle, Li Zhang, Xinyang Yi, Lichan Hong, Ed Chi, and John Anderson. Efficient training on very large corpora via gramian estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2019.
|
| 220 |
+
|
| 221 |
+
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics (TACL), 7:453–466, 2019.
|
| 222 |
+
|
| 223 |
+
Quoc Le and Tomas Mikolov. Distributed representations of sentences and documents. In International conference on machine learning (ICML), pp. 1188–1196, 2014.
|
| 224 |
+
|
| 225 |
+
Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), July 2019.
|
| 226 |
+
|
| 227 |
+
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.
|
| 228 |
+
|
| 229 |
+
Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. In Proceedings of the International Conference on Learning Representations (ICLR), 2018.
|
| 230 |
+
|
| 231 |
+
Pierre-Emmanuel Mazare, Samuel Humeau, Martin Raison, and Antoine Bordes. Training millions´ of personalized dialogue agents. In EMNLP, 2018.
|
| 232 |
+
|
| 233 |
+
Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. MS MARCO: A human-generated machine reading comprehension dataset. 2016.
|
| 234 |
+
|
| 235 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 2383–2392, 2016.
|
| 236 |
+
|
| 237 |
+
Sashank J Reddi, Satyen Kale, Felix Yu, Dan Holtmann-Rice, Jiecao Chen, and Sanjiv Kumar. Stochastic negative mining for learning with large output spaces. In Proceedings of the 22nd International Conference on Artificial Intelligence and Statistics (AISTATS), 2019.
|
| 238 |
+
|
| 239 |
+
Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using siamese BERTnetworks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019.
|
| 240 |
+
|
| 241 |
+
Stephen Robertson, Hugo Zaragoza, et al. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends $\textsuperscript { \textregistered }$ in Information Retrieval, 3(4):333–389, 2009.
|
| 242 |
+
|
| 243 |
+
Anshumali Shrivastava and Ping Li. Asymmetric LSH (ALSH) for sublinear time maximum inner product search (mips). In Advances in Neural Information Processing Systems (NIPS), pp. 2321– 2329, 2014.
|
| 244 |
+
|
| 245 |
+
Raphael Tang, Yao Lu, Linqing Liu, Lili Mou, Olga Vechtomova, and Jimmy Lin. Distilling taskspecific knowledge from BERT into simple neural networks. arXiv preprint arXiv:1903.12136, 2019.
|
| 246 |
+
|
| 247 |
+
Eleni Triantafillou, Richard Zemel, and Raquel Urtasun. Few-shot learning through an information retrieval lens. In Advances in Neural Information Processing Systems, pp. 2255–2265, 2017.
|
| 248 |
+
|
| 249 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, 2017.
|
| 250 |
+
|
| 251 |
+
Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics : Human Language Technologies (NAACL-HLT 2018), Volume 1 (Long Papers), June 2018.
|
| 252 |
+
|
| 253 |
+
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.
|
| 254 |
+
|
| 255 |
+
Peilin Yang, Hui Fang, and Jimmy Lin. Anserini: Enabling the use of lucene for information retrieval research. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1253–1256. ACM, 2017.
|
| 256 |
+
|
| 257 |
+
Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li, and Jimmy Lin. End-to-end open-domain question answering with BERTserini. In InProceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics : Human Language Technologies (NAACL-HLT 2019): Demonstrations, 2019a.
|
| 258 |
+
|
| 259 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. XLNet: Generalized autoregressive pretraining for language understanding. In NIPS, 2019b.
|
| 260 |
+
|
| 261 |
+
Hsiang-Fu Yu, Mikhail Bilenko, and Chih-Jen Lin. Selection of negative samples for one-class matrix factorization. In Proceedings of the 2017 SIAM International Conference on Data Mining, pp. 363–371. SIAM, 2017.
|
parse/train/rkg-mA4FDr/rkg-mA4FDr_content_list.json
ADDED
|
@@ -0,0 +1,1402 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "PRE-TRAINING TASKS FOR EMBEDDING-BASED LARGE-SCALE RETRIEVAL ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Wei-Cheng Chang∗, Felix X. Yu, Yin-Wen Chang, Yiming Yang, Sanjiv Kumar Carnegie Mellon University & Google {wchang2,yiming}@cs.cmu.edu, {felixyu,yinwen,sanjivk}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
797,
|
| 21 |
+
213
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
248,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We consider the large-scale query-document retrieval problem: given a query (e.g., a question), return the set of relevant documents (e.g., paragraphs containing the answer) from a large document corpus. This problem is often solved in two steps. The retrieval phase first reduces the solution space, returning a subset of candidate documents. The scoring phase then re-ranks the documents. Critically, the retrieval algorithm not only desires high recall but also requires to be highly efficient, returning candidates in time sublinear to the number of documents. Unlike the scoring phase witnessing significant advances recently due to the BERT-style pre-training tasks on cross-attention models, the retrieval phase remains less well studied. Most previous works rely on classic Information Retrieval (IR) methods such as BM-25 (token matching $^ +$ TF-IDF weights). These models only accept sparse handcrafted features and can not be optimized for different downstream tasks of interest. In this paper, we conduct a comprehensive study on the embedding-based retrieval models. We show that the key ingredient of learning a strong embedding-based Transformer model is the set of pre-training tasks. With adequately designed paragraph-level pre-training tasks, the Transformer models can remarkably improve over the widely-used BM-25 as well as embedding models without Transformers. The paragraph-level pre-training tasks we studied are Inverse Cloze Task (ICT), Body First Selection (BFS), Wiki Link Prediction (WLP), and the combination of all three. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
280,
|
| 43 |
+
764,
|
| 44 |
+
556
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
584,
|
| 55 |
+
334,
|
| 56 |
+
601
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "We consider the large-scale retrieval problem: given a query, return the most relevant documents from a large corpus, where the size of the corpus can be hundreds of thousands or more. One can view this problem as learning a scoring function $f : \\mathcal { X } \\times \\mathcal { Y } \\mathbb { R }$ , that maps a pair of a query and a document $( \\mathbf { { q } } , \\mathbf { { d } } ) \\in \\mathcal { X } \\times \\mathcal { Y }$ to a score $f ( \\pmb { q } , \\pmb { d } )$ . The function should be designed such that the relevant $( \\mathbf { \\boldsymbol { q } } , \\mathbf { \\boldsymbol { d } } )$ pairs have high scores, whereas the irrelevant ones have low scores. Many real-world applications besides query-document retrieval can be cast into this form. For example, in recommendation systems, $\\pmb q$ represents a user query and $^ d$ represents a candidate item to recommend (Krichene et al., 2019). In extreme multi-label classification, $\\pmb q$ represents a web-page document and $^ d$ represents the categories or hashtags of interests (Jain et al., 2019; Chang et al., 2019). In open-domain question answering, $\\pmb q$ represents a question and $^ d$ represents an evidence passage containing the answer (Chen et al., 2017; Hu et al., 2019; Lee et al., 2019). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
616,
|
| 66 |
+
825,
|
| 67 |
+
768
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Central to the above is designing the scoring function $f$ . Recently, BERT (Devlin et al., 2019), along with its many successors such as XLNet (Yang et al., 2019b) and RoBERTa (Liu et al., 2019), has led to significant improvements to many NLP tasks such as sentence pairs classification and question-answering. In BERT, the scoring function $f$ is a pre-trained deep bidirectional Transformer model. While BERT-style cross-attention models are very successful, it cannot be directly applied to large-scale retrieval problems because computing $f ( \\boldsymbol { q } , \\boldsymbol { d } )$ for every possible document can be prohibitively expensive. Thus, one typically first uses a less powerful but more efficient algorithm (another scoring function $f$ ) to reduce the solution space (the “retrieval phase”), and then use the BERT-style model to re-rank the retrieved documents (the “scoring phase”). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
776,
|
| 77 |
+
825,
|
| 78 |
+
901
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The retrieval phase is critical. Ideally speaking, the algorithm should have a high recall; otherwise, many relevant documents won’t even be considered in the scoring phase. The algorithm also needs to be highly efficient: it should return a small subset of relevant documents in time sublinear to the number of all documents. Although significant developments are advancing the scoring algorithms, the retrieval algorithms remain less studied, and this is the focus of this paper. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
174
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "The retrieval algorithm can be put into two categories. The first type is classic information retrieval (IR) algorithms relying on token-based matching. One example is BM-25 (Robertson et al., 2009), which remains to be the most commonly-used (Nguyen et al., 2016; Yang et al., 2017; 2019a) and hard to beat (Chapelle & Chang, 2011; Lee et al., 2019) algorithm. Here the scoring function $f$ is based on token-matching between the two high-dimensional sparse vectors with TF-IDF token weights, and retrieval can be done in sublinear time using the inverted index. Despite the wide usage, these algorithms are handcrafted and therefore cannot be optimized for a specific task. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
180,
|
| 99 |
+
825,
|
| 100 |
+
279
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The second option is an embedding-based model that jointly embeds queries and documents in the same embedding space and use an inner product or cosine distance to measure the similarity between queries and documents. Let the query embedding model be $\\phi ( \\cdot )$ and the document embedding model be $\\psi ( \\cdot )$ . The scoring function is ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
285,
|
| 110 |
+
825,
|
| 111 |
+
340
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "equation",
|
| 117 |
+
"img_path": "images/39173eac3daf06d077319bd3c6608084cf74f1fe97cf9df200ebaa6215eb8691.jpg",
|
| 118 |
+
"text": "$$\nf ( q , d ) = \\langle \\phi ( q ) , \\psi ( d ) \\rangle .\n$$",
|
| 119 |
+
"text_format": "latex",
|
| 120 |
+
"bbox": [
|
| 121 |
+
416,
|
| 122 |
+
342,
|
| 123 |
+
581,
|
| 124 |
+
359
|
| 125 |
+
],
|
| 126 |
+
"page_idx": 1
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "text",
|
| 130 |
+
"text": "In the inference stage, retrieving relevant documents then becomes finding the nearest neighbors of a query in the embedding space. Since the embeddings of all candidate documents can be precomputed and indexed, the inference can be done efficiently with approximate nearest neighbor search algorithms in the embedding space (Shrivastava & Li, 2014; Guo et al., 2016). ",
|
| 131 |
+
"bbox": [
|
| 132 |
+
173,
|
| 133 |
+
366,
|
| 134 |
+
825,
|
| 135 |
+
422
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "In this paper, we refer to the above embedding-based model as the two-tower retrieval model, because the query and document embeddings are coming from two separate “towers” of neural networks. In the literature, it is also known as the Siamese network (Das et al., 2016; Triantafillou et al., 2017) or dual-encoder model (Cer et al., 2018; Mazare et al., 2018). Compared to the sparse ´ token-based models, the two-tower models can capture deeper semantic relationships within queries and documents, and the models can be optimized specifically for the task being considered. ",
|
| 142 |
+
"bbox": [
|
| 143 |
+
174,
|
| 144 |
+
429,
|
| 145 |
+
823,
|
| 146 |
+
513
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "In the heart of two-tower models is the embedding functions $\\phi ( \\cdot )$ and $\\psi ( \\cdot )$ . A modern choice is using Transformers to model the attention within queries and within documents, rather than the cross-attention between them as in the BERT model. The token-level masked-LM (MLM) pretraining task is crucial to the success of BERT-style cross-attention models. Nevertheless, what pre-training tasks are useful for improving two-tower Transformer models in large-scale retrieval, remains a crucial yet unsolved research problem. In this paper, we aim to answer this question by studying different pre-training tasks for the two-tower Transformer models. We contribute the following insight: ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
173,
|
| 155 |
+
518,
|
| 156 |
+
825,
|
| 157 |
+
631
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "• The two-tower Transformer models with proper pre-training can significantly outperform the widely used BM-25 algorithm; • Paragraph-level pre-training tasks such as Inverse Cloze Task (ICT), Body First Selection (BFS), and Wiki Link Prediction (WLP) hugely improve the retrieval quality, whereas the most widely used pre-training task (the token-level masked-LM) gives only marginal gains. • The two-tower models with deep transformer encoders benefit more from paragraph-level pre-training compared to its shallow bag-of-word counterpart (BoW-MLP). ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
215,
|
| 166 |
+
643,
|
| 167 |
+
825,
|
| 168 |
+
757
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "To the best of our knowledge, this is the first comprehensive study on pre-training tasks for efficient large-scale retrieval algorithms. The rest of the paper is organized as follows. We start by introducing the two-tower retrieval model in Section 2. The pre-training tasks are presented in 3, and the experiments and analysis are presented in Section 4. Finally, we conclude this work in Section 5. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
770,
|
| 178 |
+
825,
|
| 179 |
+
825
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "2 THE TWO-TOWER RETRIEVAL MODEL ",
|
| 186 |
+
"text_level": 1,
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
848,
|
| 190 |
+
514,
|
| 191 |
+
864
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Given a query $\\pmb q \\in \\mathcal X$ and a document $\\pmb { d } \\in \\mathcal { V }$ , we consider two-tower retrieval models that consist of two encoder functions, $\\phi : \\mathcal { X } \\to \\mathbb { R } ^ { k }$ and $\\psi : \\mathcal { V } \\to \\mathbb { R } ^ { k }$ which map a sequence of tokens in $\\mathcal { X }$ and $\\mathcal { V }$ to their associated embeddings $\\phi ( { \\pmb q } )$ and $\\psi ( d )$ , respectively. The scoring function $f : \\mathbb { R } ^ { k } \\times \\mathbb { R } ^ { k } \\to \\mathbb { R }$ ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
176,
|
| 200 |
+
882,
|
| 201 |
+
825,
|
| 202 |
+
924
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "image",
|
| 208 |
+
"img_path": "images/2a41632632b99bb29d6cff23bb7781060c349ab0f1044fb58293d5e02bf10dd5.jpg",
|
| 209 |
+
"image_caption": [
|
| 210 |
+
"Figure 1: Difference between two-tower models and cross-attention models. Following previous works, we consider [CLS] embedding and average pooling as the aggregator’s output for the twotower Transformer model and the two-tower MLP model, respectively. "
|
| 211 |
+
],
|
| 212 |
+
"image_footnote": [],
|
| 213 |
+
"bbox": [
|
| 214 |
+
187,
|
| 215 |
+
101,
|
| 216 |
+
808,
|
| 217 |
+
321
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "is then defined to be the inner product1 of the embeddings ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
406,
|
| 227 |
+
555,
|
| 228 |
+
421
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/0d5e8de61f5843dcfa5afcb0b29a37c8b8e0d1eb9bc7b4df7ff4b0f65a5c23ea.jpg",
|
| 235 |
+
"text": "$$\nf ( q , d ) = \\langle \\phi ( q ) , \\psi ( d ) \\rangle .\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
416,
|
| 239 |
+
430,
|
| 240 |
+
581,
|
| 241 |
+
448
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "In this paper, we are interested in parameterizing the encoders $\\phi , \\psi$ as deep Transformer models (Vaswani et al., 2017) due to its expressive power in modeling natural language. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
171,
|
| 250 |
+
457,
|
| 251 |
+
823,
|
| 252 |
+
484
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "In the rest of this section, we illustrate the advantage of two-tower models in the inference phase; discuss the pros and cons of two-tower models in comparison with BERT-like cross-attention models; present the learning procedure of estimating model parameters under maximum likelihood principle; and review the related works. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
173,
|
| 261 |
+
491,
|
| 262 |
+
825,
|
| 263 |
+
547
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Inference The difference between two-tower models and cross-attention models is shown in Figure 1. The advantage of two-tower models is the efficiency in the inference time. First, all the document embeddings can be pre-computed. Then, given an unseen query $\\pmb q$ , we only need to rank the document based on its inner product with the query embedding. This is way more efficient than running inference on a cross-attention BERT-style model (often used in the scoring stage). To see this, the scoring function of BERT-style model is with the form ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
173,
|
| 272 |
+
564,
|
| 273 |
+
825,
|
| 274 |
+
648
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "equation",
|
| 280 |
+
"img_path": "images/e23eaa2d30e56cb19f0334afa08a6d6f8b6196a59edfa67af62761b4209b1089.jpg",
|
| 281 |
+
"text": "$$\nf _ { \\boldsymbol { \\theta } , { \\boldsymbol { w } } } ( \\mathbf { \\boldsymbol { q } } , \\mathbf { \\boldsymbol { d } } ) = \\psi _ { \\boldsymbol { \\theta } } ( \\mathbf { \\boldsymbol { q } } \\oplus \\mathbf { \\boldsymbol { d } } ) ^ { T } \\mathbf { \\boldsymbol { w } } ,\n$$",
|
| 282 |
+
"text_format": "latex",
|
| 283 |
+
"bbox": [
|
| 284 |
+
401,
|
| 285 |
+
657,
|
| 286 |
+
596,
|
| 287 |
+
676
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "where $\\oplus$ denotes the concatenate operation of the query and the document sequence and $\\mathbf { \\boldsymbol { w } } \\in \\mathbb { R } ^ { k }$ is an additional model parameters. In BERT, for each query, one has to make the above expensive inference on all documents. For example, with the 128-dimensional embedding space, inner product between 1000 query embeddings with 1 million document embeddings only takes hundreds of milliseconds on CPUs, while computing the same scores with cross-attention models takes hours if not more even on GPUs. ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
174,
|
| 296 |
+
685,
|
| 297 |
+
825,
|
| 298 |
+
770
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "Furthermore, retrieving the closest documents in the embedding space can be performed in sublinear time with the well-studied maximum inner product (MIPS) algorithms with almost no loss in recall (Shrivastava & Li, 2014; Guo et al., 2016). ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
174,
|
| 307 |
+
776,
|
| 308 |
+
821,
|
| 309 |
+
819
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "Learning One unique advantage of the two-tower retrieval model in comparison with classic IR algorithms is the ability to train it for specific tasks. In this paper, we assume that the training data is presented as relevant “positive” query-document pairs $\\mathcal { T } ~ = ~ \\{ ( q _ { i } , d _ { i } ) \\} _ { i = 1 } ^ { | \\mathcal { T } | }$ . Let $\\theta$ be the model parameters. We estimate the model parameters by maximizing the log likelihood maxθ $\\sum _ { ( \\pmb { q } , \\pmb { d } ) \\in \\mathcal { T } } \\log p _ { \\theta } ( \\pmb { d } | \\pmb { q } )$ where the conditional probability is defined by the Softmax: ",
|
| 316 |
+
"bbox": [
|
| 317 |
+
174,
|
| 318 |
+
837,
|
| 319 |
+
823,
|
| 320 |
+
896
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "",
|
| 327 |
+
"bbox": [
|
| 328 |
+
169,
|
| 329 |
+
102,
|
| 330 |
+
758,
|
| 331 |
+
119
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/79ad11c56a91bdf244ffe3d5f95196e390fd3948be8a23799e4a2e53fb670876.jpg",
|
| 338 |
+
"text": "$$\np _ { \\theta } ( d | \\mathbf { \\epsilon } _ { q } ) = \\frac { \\exp \\left( f _ { \\theta } ( \\mathbf { \\epsilon } _ { q } , d ) \\right) } { \\sum _ { d ^ { \\prime } \\in \\mathcal { D } } \\exp \\left( f _ { \\theta } ( \\mathbf { \\epsilon } _ { q } , d ^ { \\prime } ) \\right) } ,\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
379,
|
| 342 |
+
128,
|
| 343 |
+
619,
|
| 344 |
+
166
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "and $\\mathcal { D }$ is the set of all possible documents. The Softmax involves computing the expensive denominator of Equation (3), a.k.a, the partition function, that scales linearly to the number of documents. In practice, we use the Sampled Softmax, an approximation of the full-Softmax where we replace $\\mathcal { D }$ by a small subset of documents in the current batch, with a proper correcting term to ensure the unbiasedness of the partition function (Bengio & Senecal, 2008). Sampled Softmax has been widely ´ used in language modeling (Chen et al., 2016; Grave et al., 2017), recommendation systems (Yu et al., 2017; Krichene et al., 2019) and extreme classification (Blanc & Rendle, 2018; Reddi et al., 2019). ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
173,
|
| 353 |
+
171,
|
| 354 |
+
825,
|
| 355 |
+
284
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "Since we often have a limited amount of supervised data from the downstream task, it is important to first train the retrieval model with positive pairs $\\tau$ from a set of pre-training tasks. We then fine-tune it with positive pairs $\\tau$ from the downstream task. We will present the set of pre-training tasks we study in Section 3. ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
174,
|
| 364 |
+
290,
|
| 365 |
+
825,
|
| 366 |
+
347
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "Related Works Cer et al. (2018) study the two-tower Transformer model as a universal sentence encoder. The model is learned with multiple tasks including the unsupervised Skip-Thought task (Kiros et al., 2015), the supervised conversation input-response task (Henderson et al., 2017), and the supervised sentence classification SNLI task (Bowman et al., 2015). Humeau et al. (2019) propose the Poly-encoders architecture to balance the computation/expressiveness tradeoff between two-tower models and cross-attention models. Reimers & Gurevych (2019) fine-tune the deep twotower models on two supervised datasets, SNLI and MNLI (Williams et al., 2018), then apply it in solving other downstream tasks. Unlike all the above works that consider training the two-tower Transformer models on a limited amount of supervised corpus for the sentence classification tasks, we study different pre-training tasks and their contributions in the large-scale retrieval settings. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
362,
|
| 376 |
+
825,
|
| 377 |
+
502
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "Another closely related topic is the open-domain question answering. Previous works consider using BM25 or other lexical matching methods to retrieve the top- $\\mathbf { \\nabla } _ { k }$ relevant passages efficiently and then deploy the more expensive cross-attention scoring function to find the answer (Chen et al., 2017; Yang et al., 2017; 2019a). Das et al. (2019) encode query and document separately with LSTM encoders. They employ a training procedure different from ours and do not consider pre-training. Very recently, Lee et al. (2019) propose to pre-train two-tower Transformer models with the Inverse Cloze Task (ICT) to replace BM25 in the passage retrieval phase. The advantage is that the retriever can be trained jointly with the reader/scorer. Nevertheless, their pre-trained two-tower models do not outperform BM25 on the SQuAD dataset, potentially because the fine-tuning is only performed on the query-tower. ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
173,
|
| 386 |
+
508,
|
| 387 |
+
825,
|
| 388 |
+
647
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Model distillation (Hinton et al., 2015) can be used to compress expensive BERT-like cross-attention models into efficient two-tower Transformer models for large-scale retrieval problems. For example, Tang et al. (2019) demonstrate initial success in distilling the BERT model into a two-tower model with BiLSTM as encoders. The pre-training tasks we study in this paper can be used as additional supervision in the distillation process, and therefore complementary to model distillation. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
655,
|
| 398 |
+
825,
|
| 399 |
+
724
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "3 PRE-TRAINING TASKS OF DIFFERENT SEMANTIC GRANULARITIES ",
|
| 406 |
+
"text_level": 1,
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
747,
|
| 410 |
+
746,
|
| 411 |
+
761
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "As mentioned in Section 2, due to the limited amount of supervised data from downstream tasks, a crucial step of learning deep retrieval models is to pre-train the model with a set of pre-training tasks (we will verify this in Section 4). Sentence-level pre-training tasks have been studied before. One example is reconstructing the surface form of surrounding sentences given the encoded sentence (Le & Mikolov, 2014; Kiros et al., 2015), and another one is discriminating the next sentence from random candidates (Jernite et al., 2017; Logeswaran & Lee, 2018). ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
776,
|
| 421 |
+
825,
|
| 422 |
+
861
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "In this paper, we assume that the pre-training data is defined as positive query-document $( q , d )$ pairs. A good pre-training task should have the following two properties. 1) It should be relevant to the downstream task. For example, when solving the question-answering retrieval problem, the model should capture different granularities of semantics between the query and document. The semantics can be the local context within a paragraph, global consistency within a document, and even semantic relation between two documents. 2) It should be cost-efficient to collect the pre-training data, ideally not requiring additional human supervision. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
867,
|
| 432 |
+
823,
|
| 433 |
+
924
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "image",
|
| 439 |
+
"img_path": "images/cee9ffed37bc13879c0b3443175748368c1aaee1426b9b432db46c7e29502e1e.jpg",
|
| 440 |
+
"image_caption": [
|
| 441 |
+
"Figure 2: An illustrative example of the three pre-training tasks where each query $\\pmb q$ is highlighted in different colors. All queries are paired with the same text block $^ d$ . Concretely, $( q _ { 1 } , d )$ of ICT is defined locally within a paragraph; $( q _ { 2 } , d )$ of BFS is defined globally within an article; $( q _ { 3 } , d )$ o f WLP is defined distantly across two related articles hyper-linked by the Wikipedia entity. "
|
| 442 |
+
],
|
| 443 |
+
"image_footnote": [],
|
| 444 |
+
"bbox": [
|
| 445 |
+
176,
|
| 446 |
+
106,
|
| 447 |
+
820,
|
| 448 |
+
348
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 4
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "",
|
| 455 |
+
"bbox": [
|
| 456 |
+
176,
|
| 457 |
+
455,
|
| 458 |
+
823,
|
| 459 |
+
497
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "In light of the above requirements, we present three pre-training tasks that emphasize different aspects of semantics between queries and documents: Inverse Cloze Task (ICT), Body First Selection (BFS), and Wiki Link Prediction (WLP). In specific, BFS and WLP are newly proposed in this paper. The training data for all these tasks can be freely obtained based from Wikipedia without an additional manual labeling process. Figure 2 provides illustrative examples of these tasks. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
173,
|
| 468 |
+
505,
|
| 469 |
+
825,
|
| 470 |
+
574
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "Inverse Cloze Task (ICT) Given a passage $\\pmb { p }$ consisting of $n$ sentences, $\\pmb { p } = \\{ \\pmb { s } _ { 1 } , \\ldots , \\pmb { s } _ { n } \\}$ , the query $\\pmb q$ is a sentence randomly drawn from the passage, $\\mathbf { \\Delta } q = s _ { i } , i \\sim [ 1 , n ]$ , and the document $^ d$ is the rest of sentences, $d = \\{ s _ { 1 } , \\ldots , s _ { i - 1 } , s _ { i + 1 } , \\ldots , s _ { n } \\}$ . See $( q _ { 1 } , d )$ in Figure 2 as an example. This task captures the semantic context of a sentence and was originally proposed by Lee et al. (2019). ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
174,
|
| 479 |
+
602,
|
| 480 |
+
825,
|
| 481 |
+
659
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 4
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "Body First Selection (BFS) We propose BFS to capture semantic relationship outside of the local paragraph. Here, the query $\\pmb { q } _ { 2 }$ is a random sentence in the first section of a Wikipedia page, and the document $^ d$ is a random passage from the same page (Figure 2). Since the first section of a Wikipedia article is often the description or summary of the whole page, we expect it to contain information central to the topic. ",
|
| 488 |
+
"bbox": [
|
| 489 |
+
174,
|
| 490 |
+
685,
|
| 491 |
+
825,
|
| 492 |
+
756
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "Wiki Link Prediction (WLP) We propose WLP to capture inter-page semantic relation. The query $q _ { 3 }$ is a random sentence in the first section of a Wikipedia page, and the document $^ d$ is a passage from another page where there is a hyperlink link to the page of $\\cdot$ (Figure 2). Intuitively, a hyperlink link indicates relationship between the two Wikipedia pages. Again, we take a sentence from the first section because it is often the description or summary of the topic. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
784,
|
| 502 |
+
825,
|
| 503 |
+
853
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Masked LM (MLM) In addition to the above tasks, we also consider the classic masked language model (MLM) pre-training task as a baseline: predict the randomly masked tokens in a sentence. MLM is the primary pre-training task used in BERT (Devlin et al., 2019). ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
176,
|
| 512 |
+
882,
|
| 513 |
+
823,
|
| 514 |
+
924
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "table",
|
| 520 |
+
"img_path": "images/32db23ecd4a9606f421cc6a66d3c034a566065e397e167bb47b274b51e2a15ba.jpg",
|
| 521 |
+
"table_caption": [],
|
| 522 |
+
"table_footnote": [
|
| 523 |
+
"Table 1: Data statistics of three pre-training tasks. #query tokens represent average number of tokens per query, and #doc tokens represent average number of tokens per passage. "
|
| 524 |
+
],
|
| 525 |
+
"table_body": "<table><tr><td>Pre-training tasks :</td><td>#tokens</td><td>#pairs</td><td>avg. #query tokens</td><td>#doc tokens</td></tr><tr><td>ICT</td><td>11.2B</td><td>50.2M</td><td>30.41</td><td>193.89</td></tr><tr><td>BFS</td><td>3.3B</td><td>17.5M</td><td>28.02</td><td>160.46</td></tr><tr><td>WLP</td><td>2.7B</td><td>24.9M</td><td>29.42</td><td>82.14</td></tr></table>",
|
| 526 |
+
"bbox": [
|
| 527 |
+
240,
|
| 528 |
+
101,
|
| 529 |
+
753,
|
| 530 |
+
172
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "4 EXPERIMENTS ",
|
| 537 |
+
"text_level": 1,
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
229,
|
| 541 |
+
326,
|
| 542 |
+
246
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "4.1 EXPERIMENTAL SETTING ",
|
| 549 |
+
"text_level": 1,
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
261,
|
| 553 |
+
392,
|
| 554 |
+
275
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 5
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "The two-tower retrieval model Each tower of the retrieval model follows the architecture and hyper-parameters of the 12 layers BERT-base model. For both towers, the final embedding is generated by applying a linear layer on the hidden state of the [CLS] token. The embedding dimension is 512. The sequence length for the query encoder and document encoder are set to be 64 and 288, respectively. We pre-train the model on 32 TPU v3 chips for 100K steps with an Adam optimizer and batch size of 8192. This process takes about 2.5 days. We use the Adam optimizer with an initial learning rate $1 \\times 1 0 ^ { - 4 }$ with the warm-up ratio 0.1, followed by a linear learning rate decay. For fine-tuning, the learning rate of Adam is set to $5 \\times 1 0 ^ { - 5 }$ with 2000 training steps and batch size 512. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
286,
|
| 564 |
+
825,
|
| 565 |
+
411
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 5
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "Pre-training tasks We compare the token-level pre-training task MLM with the three paragraphlevel pre-training tasks, ICT, BFS and WLP. The data of ICT, BFS and WLP are generated from the Wikipedia corpus. The data statistics are reported in Table 1. Note that #tokens represents the number of sub-words tokenized by WordPiece (Wu et al., 2016). The pre-training tasks define the positive $( q , d )$ pair for learning the two-tower Transformer models. For ICT, the $^ d$ is a pair of article title and passage separated by [SEP] symbol as input to the doc-tower. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
426,
|
| 575 |
+
825,
|
| 576 |
+
511
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 5
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "We propose to pre-train the two-tower Transformer models jointly with all three paragraph-level pretraining tasks, hence the name $1 mathsf { C T } + \\mathsf { B F S } + \\mathsf { W L P }$ . Here the model is pre-trained on one combined set of $( q , d )$ pairs, where each pair is uniformly sampled from the three pre-training tasks in Table 1. See Section 4.2 and 4.3 for its outstanding performance over other baselines. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
174,
|
| 585 |
+
518,
|
| 586 |
+
823,
|
| 587 |
+
574
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 5
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "Downstream tasks We consider the Retrieval Question-Answering (ReQA) benchmark, proposed by Ahmad et al. (2019).2 The two QA datasets we consider are SQuAD and Natural Questions. Note that each entry of QA datasets is a tuple $( \\pmb q , \\pmb { a } , \\pmb { p } )$ , where $\\pmb q$ is the question, $\\textbf { \\em a }$ is the answer span, and $\\pmb { p }$ is the evidence passage containing $\\textbf { \\em a }$ . Following Ahmad et al. (2019), we split a passage into sentences, $\\pmb { p } = \\pmb { s } _ { 1 } \\pmb { s } _ { 2 } \\dots \\pmb { s } _ { n }$ and transform the original entry $( \\pmb q , \\pmb { a } , \\pmb { p } )$ to a new tuple $( q , s _ { i } , p )$ where $\\mathbf { \\boldsymbol { s } } _ { i }$ is the sentence contains the answer span $^ { a }$ . ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
588,
|
| 597 |
+
825,
|
| 598 |
+
672
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "The retrieval problem is that given a question $\\pmb q$ , retrieve the correct sentence and evidence passage pair $( \\boldsymbol { s } , \\boldsymbol { p } )$ from all candidates. For each passage $\\pmb { p }$ , we create a set of candidate pairs $( \\boldsymbol { s } _ { i } , \\boldsymbol { p } )$ where $i = 1 \\dots n$ , and the retrieval candidate set is built by combining such pairs for all passages. This problem is more challenging than retrieving the evidence passage only since the larger number of candidates to be retrieved. The data statistics of the downstream ReQA benchmark are shown in Table 2. Note that, similar to Ahmad et al. (2019), the ReQA benchmark is not entirely opendomain QA retrieval as the candidates $( \\boldsymbol { s } , \\boldsymbol { p } )$ only cover the training set of QA dataset instead of entire Wikipedia articles. For the open-domain retrieval experiment, see details in Section 4.4. ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
173,
|
| 607 |
+
680,
|
| 608 |
+
825,
|
| 609 |
+
791
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 5
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "Evaluation For each dataset, we consider different training/test split of the data $( 1 \\% / 9 9 \\%$ , $5 \\% / 9 5 \\%$ and, $8 0 \\% / 2 0 \\% )$ in the fine-tuning stage and the $10 \\%$ of training set is held out as the validation set for hyper-parameter tuning. The split is created assuming a cold-start retrieval scenario where the queries in the test (query, document) pairs are not seen in training. ",
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
806,
|
| 619 |
+
823,
|
| 620 |
+
862
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "table",
|
| 626 |
+
"img_path": "images/7d1579b7e1fcbb08cb6c8f52998673a77782c677a41acb67ffe103a59190c1d8.jpg",
|
| 627 |
+
"table_caption": [
|
| 628 |
+
"Table 2: Data statistics of ReQA benchmark. candidate represents all (sentence, passage) pairs. "
|
| 629 |
+
],
|
| 630 |
+
"table_footnote": [],
|
| 631 |
+
"table_body": "<table><tr><td>ReQA Dataset</td><td>#query</td><td>#candidate</td><td>#tuples</td><td>#query tokens</td><td>#doc tokens</td></tr><tr><td>SQuAD</td><td>97,888</td><td>101,951</td><td>99,024</td><td>11.55</td><td>291.35</td></tr><tr><td>Natural Questions</td><td>74,097</td><td>239,008</td><td>74,097</td><td>9.29</td><td>352.67</td></tr></table>",
|
| 632 |
+
"bbox": [
|
| 633 |
+
207,
|
| 634 |
+
102,
|
| 635 |
+
790,
|
| 636 |
+
159
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 6
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "table",
|
| 642 |
+
"img_path": "images/096c3c29e078e084ea64c4d8c595fc4dfabbc2db8f94d4cbc678cfe3332ef67c.jpg",
|
| 643 |
+
"table_caption": [],
|
| 644 |
+
"table_footnote": [
|
| 645 |
+
"Table 3: Recall $@ \\mathbf { k }$ on SQuAD. Numbers are in percentage $( \\% )$ "
|
| 646 |
+
],
|
| 647 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>train/test ratio</td><td rowspan=1 colspan=1>Encoder</td><td rowspan=1 colspan=3>Pre-training task</td><td rowspan=1 colspan=1>R@1 R@5 R@10 R@50 R@100</td></tr><tr><td rowspan=5 colspan=1>1%/99%</td><td rowspan=5 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=2 colspan=3>No PretrainingNo Pretraining</td><td rowspan=1 colspan=1>41.86 58.00 63.64 74.15 77.91</td></tr><tr><td rowspan=1 colspan=2>NoPret</td><td rowspan=1 colspan=2>No Pretraining</td><td rowspan=1 colspan=1>0.14 0.35 0.49 1.13 1.72</td></tr><tr><td rowspan=3 colspan=3>ICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>+WLP</td><td rowspan=1 colspan=1>22.55 41.03 49.93 69.70 77.01</td></tr><tr><td rowspan=1 colspan=1>0.02 0.06 0.08 0.31 0.540.18 0.51 0.82 2.46 3.93</td></tr><tr><td rowspan=1 colspan=1>0.18 0.51 0.82 2.46 3.9337.43 61.48 70.18 85.37 89.85</td></tr><tr><td rowspan=6 colspan=1>5%/95%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=3>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>41.87 57.98 63.63 74.17 77.91</td></tr><tr><td rowspan=1 colspan=1>1.13 2.68 3.62 7.16 9.55</td></tr><tr><td rowspan=1 colspan=1>26.23 46.49 55.68 75.28 81.89</td></tr><tr><td rowspan=1 colspan=1>0.17 0.36 0.54 1.43 2.17</td></tr><tr><td rowspan=1 colspan=1>1.19 3.59 5.40 12.52 17.41</td></tr><tr><td rowspan=1 colspan=1>45.90 70.89 78.47 90.49 93.64</td></tr><tr><td rowspan=6 colspan=1>80%/20%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=3>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>41.77 57.95 63.55 73.94 77.49</td></tr><tr><td rowspan=1 colspan=1>19.65 36.31 44.19 62.40 69.19</td></tr><tr><td rowspan=1 colspan=1>32.24 55.26 65.49 83.37 88.50</td></tr><tr><td rowspan=1 colspan=1>12.32 26.88 34.46 53.74 61.53</td></tr><tr><td rowspan=1 colspan=1>27.34 49.59 58.17 74.89 80.33</td></tr><tr><td rowspan=1 colspan=1>58.35 82.76 88.44 95.87 97.49</td></tr></table>",
|
| 648 |
+
"bbox": [
|
| 649 |
+
176,
|
| 650 |
+
203,
|
| 651 |
+
823,
|
| 652 |
+
487
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "For the evaluation metric, we focus on recall $\\ @ \\mathrm { k } ^ { 3 }$ because the goal of the retrieval phase is to capture the positives in the top-k results. The retrieval performance can be understood independently of the scoring model used by measuring recall at different k. In fact, in the extreme cases when the scoring model is either oracle or random, the final precision metric is proportional to recall $@ \\mathbf { k }$ . ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
544,
|
| 662 |
+
825,
|
| 663 |
+
601
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 6
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "4.2 MAIN RESULTS ",
|
| 670 |
+
"text_level": 1,
|
| 671 |
+
"bbox": [
|
| 672 |
+
174,
|
| 673 |
+
622,
|
| 674 |
+
323,
|
| 675 |
+
636
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 6
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "Table 3 and Table 4 compare the proposed combination of pre-training tasks, $1 C T + B F S + W L P$ , to various baselines on SQuAD and Natural Questions, respectively. In both benchmarks, $1 C T + B F S + W L P$ notably outperforms all other methods. This suggests that one should use a twotower Transformer model with properly designed pre-training tasks in the retrieval stage to replace the widely used BM-25 algorithm. We present some of the detailed findings below. ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
174,
|
| 684 |
+
650,
|
| 685 |
+
825,
|
| 686 |
+
719
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 6
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "The BM-25 baseline In retrieval, BM-25 is a simple but tough-to-beat unsupervised baseline using token-matching with TF-IDF weights as the scoring function. BM-25 performs especially well for the SQuAD benchmark, as the data collection process and human annotations of this dataset are biased towards question-answer pairs with overlapping tokens (Rajpurkar et al., 2016; Kwiatkowski et al., 2019). For instance, in the limited fine-tuning data scenario (e.g., $1 \\%$ and $5 \\%$ ), BM-25 outperforms the two-tower transformer models with no pre-training (No Pretraining) or with lesseffective pre-training tasks (MLM). This result verifies that BM-25 is a robust retrieval model and therefore widely used in recent works (Chen et al., 2017; Yang et al., 2017; Lee et al., 2019)4. ",
|
| 693 |
+
"bbox": [
|
| 694 |
+
173,
|
| 695 |
+
739,
|
| 696 |
+
825,
|
| 697 |
+
852
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 6
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Encoder architecture We justify the use of Transformer as encoders by comparing it with a shallow bag-of-word MLP model (BoW-MLP). Specifically, BoW-MLP looks up uni-grams from the embedding table5, aggregates the embeddings with average pooling, and passes them through a shallow two-layer MLP network with tanh activation to generate the final 512-dimensional query/document embeddings. For fair comparison, the BoW-MLP encoder has a comparable model size to the Transformer encoder (i.e., 128M v.s. 110M parameters, slightly favorable to BoW-MLP encoder). ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
173,
|
| 706 |
+
103,
|
| 707 |
+
825,
|
| 708 |
+
200
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 7
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "With a properly designed pre-training task (e.g., $\\mathsf { I C T } + \\mathsf { B F S } + \\mathsf { W L P } )$ ), the Transformer encoder considerably outperforms its shallow counterpart (BoW-MLP), suggesting that the former benefits more from the unsupervised pre-training tasks. On the other hand, without any pre-training, the performance of the Transformer encoder is worse than BoW-MLP encoder, possibly because the former is over-fitting on the limited amount of labeled fine-tuning data. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
207,
|
| 718 |
+
823,
|
| 719 |
+
279
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 7
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "Pre-training tasks When pre-training the two-tower Transformer model, we compare the pretraining tasks to two baselines: No Pretraining and MLM. No Pretraining represents random initializing the model, and MLM is the token-level masked-LM task introduced in Section 3. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
176,
|
| 728 |
+
292,
|
| 729 |
+
821,
|
| 730 |
+
334
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 7
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "On both datasets, the token-level pre-training task MLM only marginally improves over the nopretraining baseline (No Pretraining). In contrast, combining the paragraph-level pre-training tasks $1 C T + B F S + W L P$ provides a huge boost on the performance. This verifies our assumption that the design of task-related pre-training tasks is crucial. The performance of adding individual pre-training tasks is presented in the next section. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
342,
|
| 740 |
+
825,
|
| 741 |
+
411
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 7
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "table",
|
| 747 |
+
"img_path": "images/db50032838c4f2d662ed4be29b73473c456eab7c6c0999d7679ff84bfde6bc8a.jpg",
|
| 748 |
+
"table_caption": [],
|
| 749 |
+
"table_footnote": [
|
| 750 |
+
"Table 4: Recall $@ \\mathbf { k }$ on Natural Questions. Numbers are in percentage $( \\% )$ "
|
| 751 |
+
],
|
| 752 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>train/test ratio</td><td rowspan=1 colspan=1>Encoder</td><td rowspan=1 colspan=1>Pre-training task</td><td rowspan=1 colspan=1>R@1 R@5 R@10 R@50 R@100</td></tr><tr><td rowspan=6 colspan=1>1%/99%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>4.99 11.91 15.41 24.00 27.97</td></tr><tr><td rowspan=1 colspan=1>0.28 0.80 1.08 2.02 2.66</td></tr><tr><td rowspan=1 colspan=1>9.22 24.98 33.36 53.67 61.30</td></tr><tr><td rowspan=1 colspan=1>0.07 0.19 0.28 0.56 0.85</td></tr><tr><td rowspan=1 colspan=1>0.18 0.56 0.81 1.95 2.98</td></tr><tr><td rowspan=1 colspan=1>17.31 43.62 55.00 76.59 82.84</td></tr><tr><td rowspan=5 colspan=1>5%/95%</td><td rowspan=5 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=5 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>5.03 11.96 15.47 24.04 28.00</td></tr><tr><td rowspan=1 colspan=1>1.36 3.77 4.98 8.56 10.77</td></tr><tr><td rowspan=1 colspan=1>11.40 30.64 40.63 62.95 70.85</td></tr><tr><td rowspan=1 colspan=1>0.37 1.07 1.40 2.73 3.82</td></tr><tr><td rowspan=1 colspan=1>1.10 3.42 4.89 10.49 14.3721.46 51.03 62.99 83.04 88.05</td></tr><tr><td rowspan=6 colspan=1>80%/20%</td><td rowspan=6 colspan=1>BM-25BoW-MLPBoW-MLPTransformerTransformerTransformer</td><td rowspan=6 colspan=1>No PretrainingNo PretrainingICT+BFS+WLPNo PretrainingMLMICT+BFS+WLP</td><td rowspan=1 colspan=1>4.93 11.52 14.96 23.64 27.77</td></tr><tr><td rowspan=1 colspan=1>9.78 26.76 34.16 50.34 56.44</td></tr><tr><td rowspan=1 colspan=1>13.58 37.78 50.40 76.11 82.98</td></tr><tr><td rowspan=1 colspan=1>7.49 20.11 25.40 38.26 43.75</td></tr><tr><td rowspan=1 colspan=1>16.74 40.48 49.53 67.91 73.91</td></tr><tr><td rowspan=1 colspan=1>30.27 63.97 75.85 91.84 94.60</td></tr></table>",
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
424,
|
| 756 |
+
823,
|
| 757 |
+
708
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "4.3 ABLATION STUDY ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
758,
|
| 768 |
+
341,
|
| 769 |
+
773
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 7
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "We conduct a more thorough ablation study on Natural Questions involving (1) the number of layers in Transformer; (2) different pre-training tasks; and (3) dimension of the embedding space. The result is presented in Table 5. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
176,
|
| 778 |
+
785,
|
| 779 |
+
825,
|
| 780 |
+
827
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Index 1, 2, and 3 show the individual performance of three pre-training tasks. All of these tasks are much more effective than MLM. Among them, ICT has the best performance, followed by BFS, and then WLP. This suggests that the (query, document) pairs defined by local context within passage are suitable for the ReQA task. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
834,
|
| 790 |
+
825,
|
| 791 |
+
890
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "table",
|
| 797 |
+
"img_path": "images/caf2ab623e3476b457dfcf523b0b4c059367022651e9008d3cae5e51fcbb0d5a.jpg",
|
| 798 |
+
"table_caption": [],
|
| 799 |
+
"table_footnote": [
|
| 800 |
+
"Table 5: Ablation study on Natural Questions based on Recall $@$ 100. Index 9 represents the proposed method in Table 4. "
|
| 801 |
+
],
|
| 802 |
+
"table_body": "<table><tr><td rowspan=\"2\">Index</td><td colspan=\"3\">Ablation Configuration</td><td colspan=\"4\">R @ 100 on different train/test ratio</td></tr><tr><td>#layer</td><td>Pre-training task</td><td>emb-dim|</td><td>1%</td><td>5%</td><td>10%</td><td>80%</td></tr><tr><td>1</td><td>4</td><td>ICT</td><td>128</td><td>77.13</td><td>82.03</td><td>84.22</td><td>91.88</td></tr><tr><td>2</td><td>4</td><td>BFS</td><td>128</td><td>72.99</td><td>78.34</td><td>80.47</td><td>89.82</td></tr><tr><td>3</td><td>4</td><td>WLP</td><td>128</td><td>56.94</td><td>68.08</td><td>72.51</td><td>86.15</td></tr><tr><td>4</td><td>12</td><td>No Pretraining</td><td>128</td><td>0.72</td><td>3.88</td><td>6.94</td><td>38.94</td></tr><tr><td>5</td><td>12</td><td>MLM</td><td>128</td><td>2.99</td><td>12.21</td><td>22.97</td><td>71.12</td></tr><tr><td>6</td><td>12</td><td>ICT</td><td>128</td><td>79.80</td><td>85.97</td><td>88.13</td><td>93.91</td></tr><tr><td>7</td><td>12</td><td>ICT+BFS+WLP</td><td>128</td><td>81.31</td><td>87.08</td><td>89.06</td><td>94.37</td></tr><tr><td>8</td><td>12</td><td>ICT+BFS+WLP</td><td>256</td><td>81.48</td><td>87.74</td><td>89.54</td><td>94.73</td></tr><tr><td>9</td><td>12</td><td>ICT+BFS+WLP</td><td>512</td><td>82.84</td><td>88.05</td><td>90.03</td><td>94.60</td></tr></table>",
|
| 803 |
+
"bbox": [
|
| 804 |
+
210,
|
| 805 |
+
101,
|
| 806 |
+
787,
|
| 807 |
+
282
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 8
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Also note from Index 6 and 7, $1 mathsf { C T } + \\mathsf { B F S } + \\mathsf { W L P }$ pre-training is better than ICT with $1 . 5 \\%$ absolute improvement over ICT in the low-data regime. This reflects that, when there’s no sufficient downstream training data, more globally pre-training tasks is beneficial as it encodes multi-hop reasoning priors such as different passages within the same article (BFS) or even going beyond to different articles linked by the same entities (WLP). ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
345,
|
| 817 |
+
825,
|
| 818 |
+
416
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 8
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "Finally, The advantage of increasing number of layers is manifest by comparing Index 1 and Index 6, while Index 7, 8 and 9 show the benefit of increasing the dimension of the embedding space. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
424,
|
| 828 |
+
823,
|
| 829 |
+
452
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 8
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "4.4 EVALUATION OF OPEN-DOMAIN RETRIEVAL ",
|
| 836 |
+
"text_level": 1,
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
468,
|
| 840 |
+
519,
|
| 841 |
+
483
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "We consider the open-domain retrieval setting by augmenting the candidate set of the ReQA benchmark with large-scale (sentence, evidence passage) pairs extracted from general Wikipedia articles. In particular, we preprocess/sub-sample the open-domain Wikipedia retrieval set of the DrQA paper (Chen et al., 2017) into one million (sentence, evidence passage) pairs, and add this external 1M candidate pairs into the existing retrieval candidate set of the ReQA benchmark. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
494,
|
| 851 |
+
825,
|
| 852 |
+
565
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 8
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "table",
|
| 858 |
+
"img_path": "images/11f57e7c5a243b6fa58b3333d9c1a4d043185d28605adb36dce6967d0f823454.jpg",
|
| 859 |
+
"table_caption": [
|
| 860 |
+
"Table 6: Open-domain retrieval results of Natural Questions dataset, where existing candidates are augmented with additional 1M retrieval candidates (i.e., 1M of $( \\boldsymbol { s } , \\boldsymbol { p } )$ candidate pairs) extracted from open-domain Wikipedia articles. "
|
| 861 |
+
],
|
| 862 |
+
"table_footnote": [],
|
| 863 |
+
"table_body": "<table><tr><td>train/test ratio</td><td>Pre-training task</td><td>R@1</td><td>R@5</td><td>R@10</td><td>R@50</td><td>R@100</td></tr><tr><td rowspan=\"3\">1%/99%</td><td>BM-25</td><td>3.70</td><td>9.58</td><td>12.69</td><td>20.27</td><td>23.83</td></tr><tr><td>ICT</td><td>14.18</td><td>37.36</td><td>48.08</td><td>69.23</td><td>76.01</td></tr><tr><td>ICT+BFS+WLP</td><td>13.19</td><td>37.61</td><td>48.77</td><td>70.43</td><td>77.20</td></tr><tr><td rowspan=\"3\">5%/95%</td><td>BM-25</td><td>3.21</td><td>8.62</td><td>11.50</td><td>18.59</td><td>21.78</td></tr><tr><td>ICT</td><td>17.94</td><td>45.65</td><td>57.11</td><td>76.87</td><td>82.60</td></tr><tr><td>ICT+BFS+WLP</td><td>17.62</td><td>45.92</td><td>57.75</td><td>78.14</td><td>83.78</td></tr><tr><td rowspan=\"3\">80%/20%</td><td>BM-25</td><td>3.12</td><td>8.45</td><td>11.18</td><td>18.05</td><td>21.30</td></tr><tr><td>ICT</td><td>24.89</td><td>57.89</td><td>69.86</td><td>87.67</td><td>91.29</td></tr><tr><td>ICT+BFS+WLP</td><td>25.41</td><td>59.36</td><td>71.12</td><td>88.25</td><td>91.71</td></tr></table>",
|
| 864 |
+
"bbox": [
|
| 865 |
+
223,
|
| 866 |
+
578,
|
| 867 |
+
776,
|
| 868 |
+
744
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 8
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "The results of open-domain retrieval on Natural Questions are presented in Table 6. Firstly, we see that the two-tower Transformer models pretrained with $1 mathsf { C T } + \\mathsf { B F S } + \\mathsf { W L P }$ and ICT substantially outperform the BM-25 baseline. Secondly, $1 C T + B F S + W L P$ pre-training method consistently improves the ICT pre-training method in most cases. Interestingly, the improvements are more noticeable at $\\mathrm { R @ 5 0 }$ and $\\mathbf { R } @ \\mathbf { l } 0 0$ , possibly due to that the distant multi-hop per-training supervision induces better retrieval quality at the latter part of the rank list. Finally, we conclude that the evaluation results of the 1M open-domain retrieval are consistent with our previous empirical evaluation on the ReQA benchmark with smaller retrieval candidate sets (Section 4.2). ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
174,
|
| 877 |
+
811,
|
| 878 |
+
825,
|
| 879 |
+
924
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 8
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "5 CONCLUSION ",
|
| 886 |
+
"text_level": 1,
|
| 887 |
+
"bbox": [
|
| 888 |
+
176,
|
| 889 |
+
102,
|
| 890 |
+
318,
|
| 891 |
+
117
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 9
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "We conducted a comprehensive study on how various pre-training tasks help in the large-scale retrieval problem such as evidence retrieval for question-answering. We showed that the two-tower Transformer models with random initialization (No Pretraining) or the unsuitable token-level pretraining task (MLM) are no better than the robust IR baseline BM-25 in most cases. With properly designed paragraph-level pre-training tasks inlcuding ICT, BFS and WLP, the two-tower Transformer models can considerably improve over the widely used BM-25 algorithm. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
133,
|
| 901 |
+
823,
|
| 902 |
+
217
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 9
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "For future works, we plan to study how the pre-training tasks apply to other types of encoders architectures, generating the pre-training data from corpora other than Wikipedia, and how pretraining compares with different types of regularizations. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
224,
|
| 912 |
+
825,
|
| 913 |
+
266
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 9
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "REFERENCES ",
|
| 920 |
+
"text_level": 1,
|
| 921 |
+
"bbox": [
|
| 922 |
+
174,
|
| 923 |
+
287,
|
| 924 |
+
285,
|
| 925 |
+
303
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 9
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Amin Ahmad, Noah Constant, Yinfei Yang, and Daniel Cer. ReQA: An evaluation for end-to-end answer retrieval models. In Proceedings of the 2nd Workshop on Machine Reading for Question Answering, pp. 137–146, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-5819. URL https://www.aclweb.org/anthology/ D19-5819. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
174,
|
| 934 |
+
310,
|
| 935 |
+
825,
|
| 936 |
+
381
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 9
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Yoshua Bengio and Jean-Sebastien Sen ´ ecal. Adaptive importance sampling to accelerate training of ´ a neural probabilistic language model. IEEE Transactions on Neural Networks, 19(4):713–722, 2008. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
178,
|
| 945 |
+
390,
|
| 946 |
+
823,
|
| 947 |
+
433
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 9
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Guy Blanc and Steffen Rendle. Adaptive sampled softmax with kernel based sampling. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 590–599, 2018. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
441,
|
| 957 |
+
823,
|
| 958 |
+
472
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 9
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 632–642, 2015. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
176,
|
| 967 |
+
479,
|
| 968 |
+
821,
|
| 969 |
+
523
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 9
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"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. In ACL, 2018. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
173,
|
| 978 |
+
531,
|
| 979 |
+
825,
|
| 980 |
+
575
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 9
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Wei-Cheng Chang, Hsiang-Fu Yu, Kai Zhong, Yiming Yang, and Inderjit Dhillon. X-BERT: eXtreme multi-label text with BERT. arXiv preprint arXiv:1905.02331, 2019. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
171,
|
| 989 |
+
583,
|
| 990 |
+
821,
|
| 991 |
+
613
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 9
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Olivier Chapelle and Yi Chang. Yahoo! learning to rank challenge overview. In Proceedings of the learning to rank challenge, pp. 1–24, 2011. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
621,
|
| 1001 |
+
823,
|
| 1002 |
+
651
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 9
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading Wikipedia to answer opendomain questions. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (ACL) (Volume 1: Long Papers), pp. 1870–1879, 2017. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
173,
|
| 1011 |
+
660,
|
| 1012 |
+
825,
|
| 1013 |
+
703
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 9
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "Welin Chen, David Grangier, and Michael Auli. Strategies for training large vocabulary neural language models. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL), pp. 1975–1985, 2016. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
174,
|
| 1022 |
+
712,
|
| 1023 |
+
823,
|
| 1024 |
+
755
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 9
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Arpita Das, Harish Yenala, Manoj Chinnakotla, and Manish Shrivastava. Together we stand: Siamese networks for similar question retrieval. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (ACL) (Volume 1: Long Papers), pp. 378–387, 2016. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
174,
|
| 1033 |
+
763,
|
| 1034 |
+
825,
|
| 1035 |
+
819
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 9
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. Multi-step retrieverreader interaction for scalable open-domain question answering. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
829,
|
| 1045 |
+
823,
|
| 1046 |
+
872
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2019. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
881,
|
| 1056 |
+
825,
|
| 1057 |
+
924
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 9
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Edouard Grave, Armand Joulin, Moustapha Cisse, Herv ´ e J ´ egou, et al. Efficient softmax approxima- ´ tion for gpus. In Proceedings of the 34th International Conference on Machine Learning (ICML), pp. 1302–1310. JMLR. org, 2017. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
103,
|
| 1067 |
+
823,
|
| 1068 |
+
146
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 10
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Ruiqi Guo, Sanjiv Kumar, Krzysztof Choromanski, and David Simcha. Quantization based fast inner product search. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 482–490, 2016. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
176,
|
| 1077 |
+
154,
|
| 1078 |
+
823,
|
| 1079 |
+
198
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 10
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Matthew Henderson, Rami Al-Rfou, Brian Strope, Yun-hsuan Sung, Laszl ´ o Luk ´ acs, Ruiqi Guo, ´ Sanjiv Kumar, Balint Miklos, and Ray Kurzweil. Efficient natural language response suggestion for smart reply. arXiv preprint arXiv:1705.00652, 2017. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
173,
|
| 1088 |
+
205,
|
| 1089 |
+
821,
|
| 1090 |
+
248
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 10
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
173,
|
| 1099 |
+
256,
|
| 1100 |
+
821,
|
| 1101 |
+
286
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 10
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "Minghao Hu, Yuxing Peng, Zhen Huang, and Dongsheng Li. Retrieve, read, rerank: Towards end-toend multi-document reading comprehension. In Proceedings of InProceedings of the 57th Annual Meeting of the Association for Computa-tional Linguistics (ACL), 2019. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
171,
|
| 1110 |
+
294,
|
| 1111 |
+
825,
|
| 1112 |
+
337
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 10
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. Poly-encoders: Transformer architectures and pre-training strategies for fast and accurate multi-sentence scoring. arXiv preprint arXiv:1905.01969, 2019. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
173,
|
| 1121 |
+
344,
|
| 1122 |
+
826,
|
| 1123 |
+
388
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 10
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "Himanshu Jain, Venkatesh Balasubramanian, Bhanu Chunduri, and Manik Varma. Slice: Scalable linear extreme classifiers trained on 100 million labels for related searches. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, pp. 528–536. ACM, 2019. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
173,
|
| 1132 |
+
396,
|
| 1133 |
+
826,
|
| 1134 |
+
453
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "Yacine Jernite, Samuel R Bowman, and David Sontag. Discourse-based objectives for fast unsupervised sentence representation learning. arXiv preprint arXiv:1705.00557, 2017. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
173,
|
| 1143 |
+
462,
|
| 1144 |
+
820,
|
| 1145 |
+
491
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 10
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"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 (NIPS), pp. 3294–3302, 2015. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
173,
|
| 1154 |
+
498,
|
| 1155 |
+
826,
|
| 1156 |
+
541
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "Walid Krichene, Nicolas Mayoraz, Steffen Rendle, Li Zhang, Xinyang Yi, Lichan Hong, Ed Chi, and John Anderson. Efficient training on very large corpora via gramian estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
174,
|
| 1165 |
+
550,
|
| 1166 |
+
823,
|
| 1167 |
+
594
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics (TACL), 7:453–466, 2019. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
601,
|
| 1177 |
+
825,
|
| 1178 |
+
659
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 10
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Quoc Le and Tomas Mikolov. Distributed representations of sentences and documents. In International conference on machine learning (ICML), pp. 1188–1196, 2014. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
169,
|
| 1187 |
+
666,
|
| 1188 |
+
823,
|
| 1189 |
+
696
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 10
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), July 2019. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
176,
|
| 1198 |
+
704,
|
| 1199 |
+
823,
|
| 1200 |
+
747
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 10
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"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. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
178,
|
| 1209 |
+
755,
|
| 1210 |
+
823,
|
| 1211 |
+
797
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 10
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. In Proceedings of the International Conference on Learning Representations (ICLR), 2018. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
176,
|
| 1220 |
+
806,
|
| 1221 |
+
823,
|
| 1222 |
+
848
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "Pierre-Emmanuel Mazare, Samuel Humeau, Martin Raison, and Antoine Bordes. Training millions´ of personalized dialogue agents. In EMNLP, 2018. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
858,
|
| 1232 |
+
820,
|
| 1233 |
+
887
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. MS MARCO: A human-generated machine reading comprehension dataset. 2016. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
176,
|
| 1242 |
+
895,
|
| 1243 |
+
821,
|
| 1244 |
+
924
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 10
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 2383–2392, 2016. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
176,
|
| 1253 |
+
103,
|
| 1254 |
+
823,
|
| 1255 |
+
146
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Sashank J Reddi, Satyen Kale, Felix Yu, Dan Holtmann-Rice, Jiecao Chen, and Sanjiv Kumar. Stochastic negative mining for learning with large output spaces. In Proceedings of the 22nd International Conference on Artificial Intelligence and Statistics (AISTATS), 2019. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
176,
|
| 1264 |
+
155,
|
| 1265 |
+
820,
|
| 1266 |
+
198
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using siamese BERTnetworks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
176,
|
| 1275 |
+
205,
|
| 1276 |
+
821,
|
| 1277 |
+
250
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 11
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Stephen Robertson, Hugo Zaragoza, et al. The probabilistic relevance framework: BM25 and beyond. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Information Retrieval, 3(4):333–389, 2009. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
173,
|
| 1286 |
+
257,
|
| 1287 |
+
820,
|
| 1288 |
+
287
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 11
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Anshumali Shrivastava and Ping Li. Asymmetric LSH (ALSH) for sublinear time maximum inner product search (mips). In Advances in Neural Information Processing Systems (NIPS), pp. 2321– 2329, 2014. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
173,
|
| 1297 |
+
295,
|
| 1298 |
+
826,
|
| 1299 |
+
338
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 11
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Raphael Tang, Yao Lu, Linqing Liu, Lili Mou, Olga Vechtomova, and Jimmy Lin. Distilling taskspecific knowledge from BERT into simple neural networks. arXiv preprint arXiv:1903.12136, 2019. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
173,
|
| 1308 |
+
347,
|
| 1309 |
+
825,
|
| 1310 |
+
388
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 11
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "Eleni Triantafillou, Richard Zemel, and Raquel Urtasun. Few-shot learning through an information retrieval lens. In Advances in Neural Information Processing Systems, pp. 2255–2265, 2017. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
173,
|
| 1319 |
+
398,
|
| 1320 |
+
821,
|
| 1321 |
+
428
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 11
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"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 NIPS, 2017. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
174,
|
| 1330 |
+
435,
|
| 1331 |
+
821,
|
| 1332 |
+
465
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 11
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics : Human Language Technologies (NAACL-HLT 2018), Volume 1 (Long Papers), June 2018. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
174,
|
| 1341 |
+
473,
|
| 1342 |
+
825,
|
| 1343 |
+
531
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 11
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"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. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
173,
|
| 1352 |
+
539,
|
| 1353 |
+
825,
|
| 1354 |
+
595
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 11
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "Peilin Yang, Hui Fang, and Jimmy Lin. Anserini: Enabling the use of lucene for information retrieval research. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1253–1256. ACM, 2017. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
174,
|
| 1363 |
+
604,
|
| 1364 |
+
823,
|
| 1365 |
+
648
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 11
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Wei Yang, Yuqing Xie, Aileen Lin, Xingyu Li, Luchen Tan, Kun Xiong, Ming Li, and Jimmy Lin. End-to-end open-domain question answering with BERTserini. In InProceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics : Human Language Technologies (NAACL-HLT 2019): Demonstrations, 2019a. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
174,
|
| 1374 |
+
656,
|
| 1375 |
+
825,
|
| 1376 |
+
713
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 11
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. XLNet: Generalized autoregressive pretraining for language understanding. In NIPS, 2019b. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
173,
|
| 1385 |
+
722,
|
| 1386 |
+
823,
|
| 1387 |
+
751
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 11
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "Hsiang-Fu Yu, Mikhail Bilenko, and Chih-Jen Lin. Selection of negative samples for one-class matrix factorization. In Proceedings of the 2017 SIAM International Conference on Data Mining, pp. 363–371. SIAM, 2017. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
174,
|
| 1396 |
+
760,
|
| 1397 |
+
825,
|
| 1398 |
+
803
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 11
|
| 1401 |
+
}
|
| 1402 |
+
]
|
parse/train/rkg-mA4FDr/rkg-mA4FDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkg-mA4FDr/rkg-mA4FDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/train/-b5OSCydOMe/0.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/1.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/10.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/11.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/12.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/2.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/3.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/4.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/5.png
ADDED
|
Git LFS Details
|
vlm/train/-b5OSCydOMe/6.png
ADDED
|
Git LFS Details
|