ZHANGYUXUAN-zR commited on
Commit
7c84d5a
·
verified ·
1 Parent(s): 1b7548c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/6puCSjH3hwA/6puCSjH3hwA.md +524 -0
  2. parse/train/6puCSjH3hwA/6puCSjH3hwA_content_list.json +0 -0
  3. parse/train/6puCSjH3hwA/6puCSjH3hwA_middle.json +0 -0
  4. parse/train/6puCSjH3hwA/6puCSjH3hwA_model.json +0 -0
  5. parse/train/BJxh2j0qYm/BJxh2j0qYm_content_list.json +1516 -0
  6. parse/train/BJxh2j0qYm/BJxh2j0qYm_model.json +0 -0
  7. parse/train/BfPzZSype5M/BfPzZSype5M.md +262 -0
  8. parse/train/BfPzZSype5M/BfPzZSype5M_middle.json +0 -0
  9. parse/train/BkS3fnl0W/BkS3fnl0W.md +264 -0
  10. parse/train/BkS3fnl0W/BkS3fnl0W_content_list.json +1430 -0
  11. parse/train/BkS3fnl0W/BkS3fnl0W_middle.json +0 -0
  12. parse/train/BkS3fnl0W/BkS3fnl0W_model.json +0 -0
  13. parse/train/BygdyxHFDS/BygdyxHFDS.md +367 -0
  14. parse/train/BygdyxHFDS/BygdyxHFDS_content_list.json +0 -0
  15. parse/train/BygdyxHFDS/BygdyxHFDS_middle.json +0 -0
  16. parse/train/BygdyxHFDS/BygdyxHFDS_model.json +0 -0
  17. parse/train/HJlA0C4tPS/HJlA0C4tPS.md +284 -0
  18. parse/train/HJlA0C4tPS/HJlA0C4tPS_content_list.json +1518 -0
  19. parse/train/HJlA0C4tPS/HJlA0C4tPS_middle.json +0 -0
  20. parse/train/HJlA0C4tPS/HJlA0C4tPS_model.json +0 -0
  21. parse/train/S1Q79heRW/S1Q79heRW.md +209 -0
  22. parse/train/S1Q79heRW/S1Q79heRW_content_list.json +1099 -0
  23. parse/train/S1Q79heRW/S1Q79heRW_middle.json +0 -0
  24. parse/train/S1Q79heRW/S1Q79heRW_model.json +0 -0
  25. parse/train/SJHRf5nW93/SJHRf5nW93.md +291 -0
  26. parse/train/SJHRf5nW93/SJHRf5nW93_content_list.json +1318 -0
  27. parse/train/SylKikSYDH/SylKikSYDH.md +358 -0
  28. parse/train/SylKikSYDH/SylKikSYDH_content_list.json +1708 -0
  29. parse/train/SylKikSYDH/SylKikSYDH_middle.json +0 -0
  30. parse/train/SylKikSYDH/SylKikSYDH_model.json +0 -0
  31. parse/train/kHSu4ebxFXY/kHSu4ebxFXY.md +329 -0
  32. parse/train/kHSu4ebxFXY/kHSu4ebxFXY_content_list.json +1679 -0
  33. parse/train/kHSu4ebxFXY/kHSu4ebxFXY_middle.json +0 -0
  34. parse/train/kHSu4ebxFXY/kHSu4ebxFXY_model.json +0 -0
  35. parse/train/qDrpme0FAi/qDrpme0FAi.md +244 -0
  36. parse/train/qDrpme0FAi/qDrpme0FAi_content_list.json +1168 -0
  37. parse/train/qDrpme0FAi/qDrpme0FAi_middle.json +0 -0
  38. parse/train/qDrpme0FAi/qDrpme0FAi_model.json +0 -0
  39. parse/train/r1SuFjkRW/r1SuFjkRW_middle.json +0 -0
  40. parse/train/rylwJxrYDS/rylwJxrYDS.md +278 -0
  41. parse/train/rylwJxrYDS/rylwJxrYDS_content_list.json +1517 -0
  42. parse/train/rylwJxrYDS/rylwJxrYDS_middle.json +0 -0
  43. parse/train/rylwJxrYDS/rylwJxrYDS_model.json +0 -0
  44. vlm/train/1-j4VLSHApJ/0.png +3 -0
  45. vlm/train/1-j4VLSHApJ/1.png +3 -0
  46. vlm/train/1-j4VLSHApJ/10.png +3 -0
  47. vlm/train/1-j4VLSHApJ/2.png +3 -0
  48. vlm/train/1-j4VLSHApJ/3.png +3 -0
  49. vlm/train/1-j4VLSHApJ/4.png +3 -0
  50. vlm/train/1-j4VLSHApJ/5.png +3 -0
parse/train/6puCSjH3hwA/6puCSjH3hwA.md ADDED
@@ -0,0 +1,524 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A GOOD IMAGE GENERATOR IS WHAT YOU NEED FOR HIGH-RESOLUTION VIDEO SYNTHESIS
2
+
3
+ Yu Tian1∗, Jian $\mathbf { R e n } ^ { 2 }$ , Menglei Chai2, Kyle Olszewski2, Xi Peng3,
4
+ Dimitris N. Metaxas1, Sergey Tulyakov2
5
+ 1Rutgers University, 2Snap Inc., 3University of Delaware
6
+ {yt219, dnm}@cs.rutgers.edu,
7
+ {jren, mchai, kolszewski, stulyakov}@snapchat.com
8
+
9
+ # ABSTRACT
10
+
11
+ Image and video synthesis are closely related areas aiming at generating content from noise. While rapid progress has been demonstrated in improving imagebased models to handle large resolutions, high-quality renderings, and wide variations in image content, achieving comparable video generation results remains problematic. We present a framework that leverages contemporary image generators to render high-resolution videos. We frame the video synthesis problem as discovering a trajectory in the latent space of a pre-trained and fixed image generator. Not only does such a framework render high-resolution videos, but it also is an order of magnitude more computationally efficient. We introduce a motion generator that discovers the desired trajectory, in which content and motion are disentangled. With such a representation, our framework allows for a broad range of applications, including content and motion manipulation. Furthermore, we introduce a new task, which we call cross-domain video synthesis, in which the image and motion generators are trained on disjoint datasets belonging to different domains. This allows for generating moving objects for which the desired video data is not available. Extensive experiments on various datasets demonstrate the advantages of our methods over existing video generation techniques. Code will be released at https://github.com/snap-research/MoCoGAN-HD.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Video synthesis seeks to generate a sequence of moving pictures from noise. While its closely related counterpart—image synthesis—has seen substantial advances in recent years, allowing for synthesizing at high resolutions (Karras et al., 2017), rendering images often indistinguishable from real ones (Karras et al., 2019), and supporting multiple classes of image content (Zhang et al., 2019), contemporary improvements in the domain of video synthesis have been comparatively modest. Due to the statistical complexity of videos and larger model sizes, video synthesis produces relatively low-resolution videos, yet requires longer training times. For example, scaling the image generator of Brock et al. (2019) to generate $2 5 6 \times 2 5 6$ videos requires a substantial computational budget1. Can we use a similar method to attain higher resolutions? We believe a different approach is needed.
16
+
17
+ There are two desired properties for generated videos: (i) high quality for each individual frame, and (ii) the frame sequence should be temporally consistent, i.e. depicting the same content with plausible motion. Previous works (Tulyakov et al., 2018; Clark et al., 2019) attempt to achieve both goals with a single framework, making such methods computationally demanding when high resolution is desired. We suggest a different perspective on this problem. We hypothesize that, given an image generator that has learned the distribution of video frames as independent images, a video can be represented as a sequence of latent codes from this generator. The problem of video synthesis can then be framed as discovering a latent trajectory that renders temporally consistent images. Hence, we demonstrate that (i) can be addressed by a pre-trained and fixed image generator, and (ii) can be achieved using the proposed framework to create appropriate image sequences.
18
+
19
+ To discover the appropriate latent trajectory, we introduce a motion generator, implemented via two recurrent neural networks, that operates on the initial content code to obtain the motion representation. We model motion as a residual between continuous latent codes that are passed to the image generator for individual frame generation. Such a residual representation can also facilitate the disentangling of motion and content. The motion generator is trained using the chosen image discriminator with contrastive loss to force the content to be temporally consistent, and a patch-based multi-scale video discriminator for learning motion patterns. Our framework supports contemporary image generators such as StyleGAN2 (Karras et al., 2019) and BigGAN (Brock et al., 2019).
20
+
21
+ We name our approach as MoCoGAN-HD (Motion and Content decomposed GAN for HighDefinition video synthesis) as it features several major advantages over traditional video synthesis pipelines. First, it transcends the limited resolutions of existing techniques, allowing for the generation of high-quality videos at resolutions up to $1 0 2 4 \times 1 0 2 4$ . Second, as we search for a latent trajectory in an image generator, our method is computationally more efficient, requiring an order of magnitude less training time than previous video-based works (Clark et al., 2019). Third, as the image generator is fixed, it can be trained on a separate high-quality image dataset. Due to the disentangled representation of motion and content, our approach can learn motion from a video dataset and apply it to an image dataset, even in the case of two datasets belonging to different domains. It thus unleashes the power of an image generator to synthesize high quality videos when a domain (e.g., dogs) contains many high-quality images but no corresponding high-quality videos (see Fig. 4). In this manner, our method can generate realistic videos of objects it has never seen moving during training (such as generating realistic pet face videos using motions extracted from images of talking people). We refer to this new video generation task as cross-domain video synthesis. Finally, we quantitatively and qualitatively evaluate our approach, attaining state-of-the-art performance on each benchmark, and establish a challenging new baseline for video synthesis methods.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Video Synthesis. Approaches to image generation and translation using Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) have demonstrated the ability to synthesize high quality images (Radford et al., 2016; Zhang et al., 2019; Brock et al., 2019; Donahue & Simonyan, 2019; Jin et al., 2021). Built upon image translation (Isola et al., 2017; Wang et al., 2018b), works on video-to-video translation (Bansal et al., 2018; Wang et al., 2018a) are capable of converting an input video to a high-resolution output in another domain. However, the task of high-fidelity video generation, in the unconditional setting, is still a difficult and unresolved problem. Without the strong conditional inputs such as segmentation masks (Wang et al., 2019) or human poses (Chan et al., 2019; Ren et al., 2020) that are employed by video-to-video translation works, generating videos following the distribution of training video samples is challenging. Earlier works on GANbased video modeling, including MDPGAN (Yushchenko et al., 2019), VGAN (Vondrick et al., 2016), TGAN (Saito et al., 2017), MoCoGAN (Tulyakov et al., 2018), ProgressiveVGAN (Acharya et al., 2018), TGANv2 (Saito et al., 2020) show promising results on low-resolution datasets. Recent efforts demonstrate the capacity to generate more realistic videos, but with significantly more computation (Clark et al., 2019; Weissenborn et al., 2020). In this paper, we focus on generating realistic videos using manageable computational resources. LDVDGAN (Kahembwe & Ramamoorthy, 2020) uses low dimensional discriminator to reduce model size and can generate videos with resolution up to $5 1 2 \times 5 1 2$ , while we decrease training cost by utilizing a pre-trained image generator. The high-quality generation is achieved by using pre-trained image generators, while the motion trajectory is modeled within the latent space. Additionally, learning motion in the latent space allows us to easily adapt the video generation model to the task of video prediction (Denton et al., 2017), in which the starting frame is given (Denton & Fergus, 2018; Zhao et al., 2018; Walker et al., 2017; Villegas et al., 2017b;a; Babaeizadeh et al., 2017; Hsieh et al., 2018; Byeon et al., 2018), by inverting the initial frame through the generator (Abdal et al., 2020), instead of training an extra image encoder (Tulyakov et al., 2018; Zhang et al., 2020).
26
+
27
+ Interpretable Latent Directions. The latent space of GANs is known to consist of semantically meaningful vectors for image manipulation. Both supervised methods, either using human annotations or pre-trained image classifiers (Goetschalckx et al., 2019; Shen et al., 2020), and unsupervised methods (Jahanian et al., 2020; Plumerault et al., 2020), are able to find interpretable directions for image editing, such as supervising directions for image rotation or background removal (Voynov &
28
+
29
+ ![](images/1d51f6cbf295d027c9a3cd793ca8bdc6862f3cbdc3e68b27dcb8f2dd21f8b26d.jpg)
30
+ Figure 1: Left: Given an initial latent code $\mathbf { z } _ { 1 }$ , a trajectory $\epsilon _ { t }$ , and a PCA basis $\mathbf { V }$ , the motion generator $G _ { \mathrm { M } }$ encodes $\mathbf { z } _ { 1 }$ using $\mathrm { L S T M _ { \mathrm { e n c } } }$ to get the initial hidden state and uses $\mathrm { L S T M _ { d e c } }$ to estimate hidden states for future frames. The image generator $G _ { \mathrm { I } }$ synthesizes images using the predicted latent codes. The discriminator $D _ { \mathrm { { V } } }$ is trained on both real and generated video sequences. Right: For each generated video, the first and subsequent frames are sent to an image discriminator $D _ { \mathrm { I } }$ . An encoder-like network $F$ calculates the features of synthesized images used to compute the contrastive loss ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ with positive (same image content, but different augmentation, shown in blue) and negative pairs (different image content and augmentation, shown in red).
31
+
32
+ Babenko, 2020; Shen & Zhou, 2020). We further consider the motion vectors in the latent space. By disentangling the motion trajectories in an unsupervised fashion, we are able to transfer the motion information from a video dataset to an image dataset in which no temporal information is available.
33
+
34
+ Contrastive Representation Learning is widely studied in unsupervised learning tasks (He et al., 2020; Chen et al., 2020a;b; Henaff et al., 2020; L ´ owe et al., 2019; Oord et al., 2018; Misra & Maaten, ¨ 2020). Related inputs, such as images (Wu et al., 2018) or latent representations (Hjelm et al., 2019), which can vary while training due to data augmentation, are forced to be close by minimizing differences in their representation during training. Recent work (Park et al., 2020) applies noisecontrastive estimation (Gutmann & Hyvarinen, 2010) to image generation tasks by learning the ¨ correspondence between image patches, achieving performance superior to that attained when using cycle-consistency constraints (Zhu et al., 2017; Yi et al., 2017). On the other hand, we learn an image discriminator to create videos with coherent content by leveraging contrastive loss (Hadsell et al., 2006) along with an adversarial loss (Goodfellow et al., 2014).
35
+
36
+ # 3 METHOD
37
+
38
+ In this section, we introduce our method for high-resolution video generation. Our framework is built on top of a pre-trained image generator (Karras et al., 2020a;b; Zhao et al., 2020a;b), which helps to generate high-quality image frames and boosts the training efficiency with manageable computational resources. In addition, with the image generator fixed during training, we can disentangle video motion from image content, and enable video synthesis even when the image content and the video motion come from different domains.
39
+
40
+ More specifically, our inference framework includes a motion generator $G _ { \mathrm { M } }$ and an image generator $G _ { \mathrm { I } }$ . $G _ { \mathrm { M } }$ is implemented with two LSTM networks (Hochreiter & Schmidhuber, 1997) and predicts the latent motion trajectory $\mathbf { Z } = \left\{ \mathbf { z } _ { 1 } , \mathbf { z } _ { 2 } , \cdots , \mathbf { z } _ { n } \right\}$ , where $n$ is the number of frames in the synthesized video. The image generator $G _ { \mathrm { I } }$ can thus synthesize each individual frame from the motion trajectory. The generated video sequence $\tilde { \mathbf { v } }$ is given by $\tilde { \mathbf { v } } = \{ \tilde { \mathbf { x } } _ { 1 } , \tilde { \mathbf { x } } _ { 2 } , \cdots , \tilde { \mathbf { x } } _ { n } \}$ . For each synthesized frame $\tilde { \mathbf { x } } _ { t }$ , we have $\tilde { \mathbf { x } } _ { t } = G _ { \mathrm { I } } ( \mathbf { z } _ { t } )$ for $t = 1 , 2 , \cdots , n$ . We also define the real video clip as $\mathbf { v } = \{ \mathbf { x } _ { 1 } , \mathbf { x } _ { 2 } , \cdots , \mathbf { x } _ { n } \}$ and the training video distribution as $p _ { v }$ .
41
+
42
+ To train the motion generator $G _ { \mathrm { M } }$ to discover the desired motion trajectory, we apply a video discriminator to constrain the generated motion patterns to be similar to those of the training videos, and an image discriminator to force the frame content to be temporally consistent. Our framework is illustrated in Fig. 1. We describe each component in more detail in the following sections.
43
+
44
+ # 3.1 MOTION GENERATOR
45
+
46
+ The motion generator $G _ { \mathrm { M } }$ predicts consecutive latent codes using an input code $\mathbf { z } _ { 1 } \in { \mathcal { Z } }$ , where the latent space $\mathcal { Z }$ is also shared by the image generator. For BigGAN (Brock et al., 2019), we sample $\mathbf { z } _ { 1 }$ from the normal distribution $p _ { z }$ . For StyleGAN2 (Karras et al., 2020b), $p _ { z }$ is the distribution after the multi-layer perceptron (MLP), as the latent codes within this distribution can be semantically disentangled better than when using the normal distribution (Shen et al., 2020; Zhu et al., 2020).
47
+
48
+ Formally, $G _ { \mathrm { M } }$ includes an LSTM encoder $\mathrm { L S T M _ { \mathrm { e n c } } }$ , which encodes $\mathbf { z } _ { 1 }$ to get the initial hidden state, and a LSTM decoder $\mathrm { L S T M _ { d e c } }$ , which estimates $n - 1$ continuous hidden states recursively:
49
+
50
+ $$
51
+ \begin{array} { c } { { { \bf h } _ { 1 } , { \bf c } _ { 1 } = \mathrm { L S T M } _ { \mathrm { e n c } } ( { \bf z } _ { 1 } ) , } } \\ { { { \bf h } _ { t } , { \bf c } _ { t } = \mathrm { L S T M } _ { \mathrm { d e c } } ( \epsilon _ { t } , ( { \bf h } _ { t - 1 } , { \bf c } _ { t - 1 } ) ) , t = 2 , 3 , \cdots , n , } } \end{array}
52
+ $$
53
+
54
+ where $\mathbf { h }$ and c denote the hidden state and cell state respectively, and $\epsilon _ { t }$ is a noise vector sampled from the normal distribution to model the motion diversity at timestamp $t$ .
55
+
56
+ Motion Disentanglement. Prior work (Tulyakov et al., 2018) applies $\mathbf { h } _ { t }$ as the motion code for the frame to be generated, while the content code is fixed for all frames. However, such a design requires a recurrent network to estimate the motion while preserving consistent content from the latent vector, which is difficult to learn in practice. Instead, we propose to use a sequence of motion residuals for estimating the motion trajectory. Specifically, we model the motion residual as the linear combination of a set of interpretable directions in the latent space (Shen & Zhou, 2020; Hark ¨ onen ¨ et al., 2020). We first conduct principal component analysis (PCA) on $m$ randomly sampled latent vectors from $\mathcal { Z }$ to get the basis $\mathbf { V }$ . Then, we estimate the motion direction from the previous frame $\mathbf { z } _ { t - 1 }$ to the current frame $\mathbf { z } _ { t }$ by using $\mathbf { h } _ { t }$ and $\mathbf { V }$ as follows:
57
+
58
+ $$
59
+ \mathbf { z } _ { t } = \mathbf { z } _ { t - 1 } + \lambda \cdot \mathbf { h } _ { t } \cdot \mathbf { V } , t = 2 , 3 , \cdots , n ,
60
+ $$
61
+
62
+ where the hidden state ${ \mathbf h } _ { t } \in [ - 1 , 1 ]$ , and $\lambda$ controls the step given by the residual. With Eqn. 1 and Eqn. 2, we have $G _ { \mathrm { M } } ( \mathbf { z } _ { 1 } ) = \left\{ \mathbf { z } _ { 1 } , \mathbf { z } _ { 2 } , \cdots , \mathbf { z } _ { n } \right\}$ , and the generated video $\tilde { \mathbf { v } }$ is given as $\tilde { { \textbf { v } } } =$ $G _ { \mathrm { I } } ( G _ { \mathrm { M } } ( \mathbf { z } _ { 1 } ) )$ .
63
+
64
+ Motion Diversity. In Eqn. 1, we introduce a noise vector $\epsilon _ { t }$ to control the diversity of motion. However, we observe that the LSTM decoder tends to neglect the $\epsilon _ { t }$ , resulting in motion mode collapse, meaning that $G _ { \mathrm { M } }$ cannot capture the diverse motion patterns from training videos and generate distinct videos from one initial latent code with similar motion patterns for different sequences of noise vectors. To alleviate this issue, we introduce a mutual information loss ${ \mathcal { L } } _ { \mathrm { m } }$ to maximize the mutual information between the hidden vector $\mathbf { h } _ { t }$ and the noise vector $\epsilon _ { t }$ . With $\mathrm { s i m } ( \mathbf { u } , \mathbf { v } ) = \mathbf { u } ^ { T } \mathbf { v } / \left\| \mathbf { u } \right\| \left\| \mathbf { v } \right\|$ denoting the cosine similarity between vectors $\mathbf { u }$ and $\mathbf { v }$ , we define ${ \mathcal { L } } _ { \mathrm { m } }$ as follows:
65
+
66
+ $$
67
+ \mathcal { L } _ { \mathrm { m } } = \frac { 1 } { n - 1 } \sum _ { t = 2 } ^ { n } \sin ( H ( \mathbf { h } _ { t } ) , \epsilon _ { t } ) ,
68
+ $$
69
+
70
+ where $H$ is a 2-layer MLP that serves as a mapping function.
71
+
72
+ Learning. To learn the appropriate parameters for the motion generator $G _ { \mathrm { M } }$ , we apply a multi-scale video discriminator $D _ { \mathrm { { V } } }$ to tell whether a video sequence is real or synthesized. The discriminator is based on the architecture of PatchGAN (Isola et al., 2017). However, we use 3D convolutional layers in $D _ { \mathrm { { V } } }$ , as they can model temporal dynamics better than 2D convolutional layers. We divide input video sequence into small 3D patches, and classify each patch as real or fake. The local responses for the input sequence are averaged to produce the final output. Additionally, each frame in the input video sequence is conditioned on the first frame, as it falls into the distribution of the pre-trained image generator, for more stable training. We thus optimize the following adversarial loss to learn $G _ { \mathrm { M } }$ and $D _ { \mathrm { { V } } }$ :
73
+
74
+ $$
75
+ \mathcal { L } _ { D _ { \mathrm { V } } } = \mathbb { E } _ { { \mathbf { v } } \sim p _ { v } } \left[ \log D _ { \mathrm { v } } ( { \mathbf { v } } ) \right] + \mathbb { E } _ { { \mathbf { z } } _ { 1 } \sim p _ { z } } \left[ \log ( 1 - D _ { \mathrm { V } } ( G _ { \mathrm { I } } ( G _ { \mathrm { M } } ( { \mathbf { z } } _ { 1 } ) ) ) ) \right] .
76
+ $$
77
+
78
+ # 3.2 CONTRASTIVE IMAGE DISCRIMINATOR
79
+
80
+ As our image generator is pre-trained, we may use an image generator that is trained on a given domain, e.g. images of animal faces (Choi et al., 2020), and learn the motion generator parameters using videos from a different domain, such as videos of human facial expressions (Nagrani et al.,
81
+
82
+ 2017). With Eqn. 4 alone, however, we lack the ability to explicitly constrain the generated images $\tilde { \mathbf { x } } _ { t \mid t > 1 }$ to possess similar quality and content as the first image $\tilde { \mathbf { x } } _ { 1 }$ , which is sampled from the image space of the image generator and thus has high fidelity. Hence, we introduce a contrastive image discriminator $D _ { \mathrm { I } }$ , which is illustrated in Fig. 1, to match both image quality and content between $\tilde { \mathbf { x } } _ { 1 }$ and $\tilde { \mathbf { x } } _ { t \mid t > 1 }$ .
83
+
84
+ Quality Matching. To increase the perceptual quality, we train $D _ { \mathrm { I } }$ and $G _ { \mathrm { M } }$ adversarially by forwarding $\tilde { \mathbf { x } } _ { t }$ into the discriminator $D _ { \mathrm { I } }$ and using $\tilde { \mathbf { x } } _ { 1 }$ as real sample and $\tilde { \mathbf { X } } _ { t \mid t > 1 }$ as the fake sample.
85
+
86
+ $$
87
+ \mathcal { L } _ { D _ { 1 } } = \mathbb { E } _ { \mathbf { z } _ { 1 } \sim p _ { z } } \left[ \log D _ { \mathrm { I } } ( G _ { \mathrm { I } } ( \mathbf { z } _ { 1 } ) ) \right] + \mathbb { E } _ { \mathbf { z } _ { 1 } \sim p _ { z } , \mathbf { z } _ { t } \sim G _ { \mathrm { M } } ( \mathbf { z } _ { 1 } ) | t > 1 } \left[ \log ( 1 - D _ { \mathrm { I } } ( G _ { \mathrm { I } } ( \mathbf { z } _ { t } ) ) ) \right] .
88
+ $$
89
+
90
+ Content Matching. To learn content similarity between frames within a video, we use the image discriminator as a feature extractor and train it with a form of contrastive loss known as InfoNCE (Oord et al., 2018). The goal is that pairs of images with the same content should be close together in embedding space, while images containing different content should be far apart.
91
+
92
+ Given a minibatch of $N$ generated videos $\{ \tilde { \mathbf { v } } ^ { ( 1 ) } , \tilde { \mathbf { v } } ^ { ( 2 ) } , \cdots , \tilde { \mathbf { v } } ^ { ( N ) } \}$ , we randomly sample one frame $t$ from each video: $\{ \tilde { \mathbf { x } } _ { t } ^ { ( 1 ) } , \tilde { \mathbf { x } } _ { t } ^ { ( 2 ) } , \cdot \cdot \cdot , \tilde { \mathbf { x } } _ { t } ^ { ( N ) } \}$ , and make two randomly augmented versions $( \tilde { \mathbf { x } } _ { t } ^ { ( i a ) } , \tilde { \mathbf { x } } _ { t } ^ { ( i b ) } )$ for each frame $\tilde { \mathbf { x } } _ { t } ^ { ( i ) }$ , resulting in $2 N$ samples. $( \tilde { \mathbf { x } } _ { t } ^ { ( i a ) } , \tilde { \mathbf { x } } _ { t } ^ { ( i b ) } )$ are positive pairs, as they share the same content. $( \tilde { \mathbf { x } } _ { t } ^ { ( i \cdot ) } , \tilde { \mathbf { x } } _ { t } ^ { ( j \cdot ) } )$ are all negative pairs for $i \neq j$ .
93
+
94
+ Let $F$ be an encoder network, which shares the same weights and architecture of $D _ { \mathrm { I } }$ , but excluding the last layer of $D _ { \mathrm { I } }$ and including a 2-layer MLP as a projection head that produces the representation of the input images. We have a contrastive loss function ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ , which is the cross-entropy computed across $2 N$ augmentations as follows:
95
+
96
+ $$
97
+ \mathcal { L } _ { \mathrm { c o n t r } } = - \sum _ { i = 1 } ^ { N } \sum _ { \alpha = a } ^ { b } \log \frac { \exp ( \sin ( F ( \tilde { \mathbf { x } } _ { t } ^ { ( i a ) } ) , F ( \tilde { \mathbf { x } } _ { t } ^ { ( i b ) } ) ) / \tau ) } { \sum _ { j = 1 } ^ { N } \sum _ { \beta = a } ^ { b } \mathbb { 1 } _ { [ j \neq i ] } ( \exp ( \sin ( F ( \tilde { \mathbf { x } } _ { t } ^ { ( i \alpha ) } ) , F ( \tilde { \mathbf { x } } _ { t } ^ { ( j \beta ) } ) ) / \tau ) } ,
98
+ $$
99
+
100
+ where $\sin ( \cdot , \cdot )$ is the cosine similarity function defined in Eqn. 3, $\mathbb { 1 } _ { [ j \neq i ] } \in \{ 0 , 1 \}$ is equal to 1 iff $j \neq i$ , and $\tau$ is a temperature parameter empirically set to 0.07. We use a momentum decoder mechanism similar to that of MoCo (He et al., 2020) by maintaining a memory bank to delete the oldest negative pairs and update the new negative pairs. We apply augmentation methods including translation, color jittering, and cutout (DeVries & Taylor, 2017) on synthesized images. With the positive and negative pairs generated on-the-fly during training, the discriminator can effectively focus on the content of the input samples.
101
+
102
+ The choice of positive pairs in Eqn. 6 is specifically designed for cross-domain video synthesis, as videos of arbitrary content from the image domain is not available. In the case that images and videos are from the same domain, the positive and negative pairs are easier to obtain. We randomly select and augment two frames from a real video to create positive pairs sharing the same content, while the negative pairs contain augmented images from different real videos.
103
+
104
+ Aside from ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ , we also adopt the feature matching loss (Wang et al., 2018b) ${ \mathcal { L } } _ { \mathrm { f } }$ between the generated first frame and other frames by changing the $L _ { 1 }$ regularization to cosine similarity.
105
+
106
+ Full Objective. The overall loss function for training motion generator, video discriminator, and image discriminator is thus defined as:
107
+
108
+ $$
109
+ \operatorname* { m i n } _ { G _ { \mathrm { M } } } ( \operatorname* { m a x } _ { D _ { \mathrm { V } } } \mathcal { L } _ { D _ { \mathrm { V } } } + \operatorname* { m a x } _ { D _ { \mathrm { I } } } \mathcal { L } _ { D _ { \mathrm { I } } } ) + \operatorname* { m a x } _ { G _ { \mathrm { M } } } ( \lambda _ { \mathrm { m } } \mathcal { L } _ { \mathrm { m } } + \lambda _ { \mathrm { f } } \mathcal { L } _ { \mathrm { f } } ) + \operatorname* { m i n } _ { D _ { \mathrm { I } } } ( \lambda _ { \mathrm { c o n t r } } \mathcal { L } _ { \mathrm { c o n t r } } )
110
+ $$
111
+
112
+ where $\lambda _ { \mathrm { m } }$ , $\lambda _ { \mathrm { c o n t r } }$ , and $\lambda _ { \mathrm { f } }$ are hyperparameters to balance losses.
113
+
114
+ # 4 EXPERIMENTS
115
+
116
+ In this section, we evaluate the proposed approach on several benchmark datasets for video generation. We also demonstrate cross-domain video synthesis for various image and video datasets.
117
+
118
+ # 4.1 VIDEO GENERATION
119
+
120
+ We conduct experiments on three datasets including UCF-101 (Soomro et al., 2012), FaceForensics (Rossler et al., 2018), and Sky Time-lapse (Xiong et al., 2018) for unconditional video synthesis. ¨ We use StyleGAN2 as the image generator. Training details can be found in Appx. B.
121
+
122
+ Table 1: IS and FVD on UCF-101.
123
+
124
+ <table><tr><td>Method</td><td>IS (↑)</td><td>FVD (↓)</td></tr><tr><td>VGAN</td><td>8.31 ± .09</td><td></td></tr><tr><td>TGAN</td><td>11.85 ± .07</td><td></td></tr><tr><td>MoCoGAN</td><td>12.42 ± .07</td><td></td></tr><tr><td>ProgressiveVGAN</td><td>14.56 ± .05</td><td></td></tr><tr><td>LDVD-GAN</td><td>22.91 ± .19</td><td></td></tr><tr><td>TGANv2</td><td>26.60 ± .47</td><td>1209 ± 28</td></tr><tr><td>DVD-GAN</td><td>27.38 ± .53</td><td>=</td></tr><tr><td>Ours</td><td>33.95 ± .25</td><td>700 ± 24</td></tr></table>
125
+
126
+ Table 2: FVD, ACD, and Human Preference on FaceForensics.
127
+
128
+ <table><tr><td>Method</td><td>FVD (↓)</td><td>ACD (↓)</td></tr><tr><td>GT</td><td>9.02</td><td>0.2935</td></tr><tr><td>TGANv2 Ours</td><td>58.03 53.26</td><td>0.4914 0.3300</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Method</td><td>Human Preference</td><td>(%)</td></tr><tr><td>Ours /TGANv2</td><td></td><td>73.6 / 26.4</td></tr></table>
129
+
130
+ UCF-101 is widely used in video generation. The dataset includes 13, 320 videos of 101 sport categories. The resolution of each video is $3 2 0 \times 2 4 0$ . To process the data, we crop a rectangle with size of $2 4 0 \times 2 4 0$ from each frame in a video and resize it to $2 5 6 \times 2 5 6$ . We train the motion generator to predict 16 frames. For evaluation, we report Inception Score (IS) (Saito et al., 2020) on 10, 000 generated videos and Fr´echet Video Distance (FVD) (Unterthiner et al., 2018) on 2, 048 videos. The classifier used to calculate IS is a C3D network (Tran et al., 2015) that is trained on the Sports-1M dataset (Karpathy et al., 2014) and fine-tuned on UCF-101, which is the same model used in previous works (Saito et al., 2020; Clark et al., 2019).
131
+
132
+ The quantitative results are shown in Tab. 1. Our method achieves state-of-the-art results for both IS and FVD, and outperforms existing works by a large margin. Interestingly, this result indicates that a well-trained image generator has learned to represent rich motion patterns, and therefore can be used to synthesize high-quality videos when used with a well-trained motion generator.
133
+
134
+ FaceForensics is a dataset containing news videos featuring various reporters. We use all the images from 704 training videos, with a resolution of $2 5 6 \times 2 5 6$ , to learn an image generator, and sequences of 16 consecutive frames to train motion generator. Note that our network can generate even longer continuous sequences, e.g. 64 frames (Fig. 12 in Appx.), though only 16 frames are used for training.
135
+
136
+ We show the FVD between generated and real video clips (16 frames in length) for different methods in Tab. 2. Additionally, we use the Average Content Distance (ACD) from MoCoGAN (Tulyakov et al., 2018) to evaluate the identity consistency for these human face videos. We calculate ACD values over 256 videos. We also report the two metrics for ground truth (GT) videos. To get FVD of GT videos, we randomly sample two groups of real videos and compute the score. Our method achieves better results than TGANv2 (Saito et al., 2020). Both methods have low FVD values, and can generate complex motion patterns
137
+
138
+ ![](images/009d321d03f84d81cb9272a74b4285a7fff0d1fa52834fcf57e94097294ed8e9.jpg)
139
+ Figure 2: Example generated videos from a model trained on FaceForensics. We can generate natural and photo-realistic videos with various motion patterns, such as eye blink and talking. Four examples show frames 2, 7, 11, and 16.
140
+
141
+ close to the real data. However, the much lower ACD value of our approach, which is close to GT, demonstrates that the videos it synthesizes have much better identity consistency than the videos from TGANv2. Qualitative examples in Fig. 2 illustrate different motions patterns learned from the dataset. Furthermore, we perform perceptual experiments using Amazon Mechanical Turk (AMT) by presenting a pair of videos from the two methods to users and asking them to select a more realistic one. Results in Tab. 2 indicate our method outperforms TGANv2 in $7 3 . 6 \%$ of the comparisons.
142
+
143
+ Sky Time-Lapse is a video dataset consisting of dynamic sky scenes, such as moving clouds. The number of video clips for training and testing is 35, 392 and 2, 815, respectively. We resize images to $1 2 8 \times 1 2 8$ and train the model to generate 16 frames. We compare our methods with the two recent approaches of MDGAN (Xiong et al., 2018) and DTVNet (Zhang et al., 2020), which are specifically designed for this dataset. In Tab. 3, we report the FVD for all three methods. It is clear that our approach significantly outperforms the others. Example sequences are shown in Fig. 3.
144
+
145
+ Following DTVNet (Zhang et al., 2020), we evaluate the proposed model for the task of video prediction. We use the Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) (Wang et al., 2004) as evaluation metrics to measure the frame quality at the pixel level and the structural similarity between synthesized and real video frames. Evaluation is performed on the testing set. We select the first frame $\mathbf { x } _ { 1 }$ from each video clip and project it to the latent space of the image generator (Abdal et al., 2020) to get $\hat { \mathbf { z } } _ { 1 }$ . We use $\hat { \mathbf { z } } _ { 1 }$ as the starting latent code for motion generator to get 16 latent codes, and interpolate them to get 32 latent codes to synthesize a video sequence, where the first frame is given by $G _ { \mathrm { I } } ( \hat { \bf z } _ { 1 } )$ . For a fair comparison, we also use $G _ { \mathrm { I } } ( \hat { \bf z } _ { 1 } )$ as the starting frame for MDGAN and DTVNet to calculate the metrics with ground truth videos. In addition, we calculate the PSNR and SSIM between $\mathbf { x } _ { 1 }$ and $G _ { \mathrm { I } } ( \hat { \bf z } _ { 1 } )$ as the upper bound for all methods, which we denote as Up-B. Tab. 3 shows the video prediction results, which demonstrate that our method’s performance is superior to those of MDGAN and DTVNet. Interestingly, by simply interpolating the motion trajectory, we can easily generate longer video sequence, e.g. from 16 to 32 frames, while retaining high quality.
146
+
147
+ Table 3: Evaluation on Sky Time-lapse for video synthesis and prediction.
148
+
149
+ <table><tr><td>Method</td><td>FVD (↓)</td><td>PSNR (↑)</td><td>SSIM (↑)</td></tr><tr><td>Up-B</td><td>1</td><td>25.367</td><td>0.781</td></tr><tr><td>MDGAN</td><td>840.95</td><td>13.840</td><td>0.581</td></tr><tr><td>DTVNet</td><td>451.14</td><td>21.953</td><td>0.531</td></tr><tr><td>Ours</td><td>77.77</td><td>22.286</td><td>0.688</td></tr></table>
150
+
151
+ ![](images/e2a803672b70bf1b3a1b61ee267e94d5b0a9b41de7977e03b19b1449e7d3eb79.jpg)
152
+ Figure 3: Sample generated frames at several time steps $\mathbf { \rho } ( t )$ for the Sky Time-lapse dataset.
153
+
154
+ ![](images/6ea4cb0bfae791a923a6b9dadc2f96d39c0ed245967d5bbd678103fcd228f383.jpg)
155
+ Figure 4: Example sequences for cross-domain video generation. First Row: (FFHQ, VoxCeleb). Second Row: (LSUN-Church, TLVDB). Third Row: (AFHQ-Dog, VoxCeleb). Fourth Row: (AnimeFaces, VoxCeleb). Images in the first and second rows have a resolution of $2 5 6 \times 2 5 6$ , while the third and fourth rows have a resolution of $5 1 2 \times 5 1 2$ .
156
+
157
+ # 4.2 CROSS-DOMAIN VIDEO GENERATION
158
+
159
+ To demonstrate how our approach can disentangle motion from image content and transfer motion patterns from one domain to another, we perform several experiments on various datasets. More specifically, we use the StyleGAN2 model, pre-trained on the FFHQ (Karras et al., 2019), AFHQDog (Choi et al., 2020), AnimeFaces (Branwen, 2019), and LSUN-Church (Yu et al., 2015) datasets, as the image generators. We learn human facial motion from VoxCeleb (Nagrani et al., 2020) and time-lapse transitions in outdoor scenes from TLVDB (Shih et al., 2013). In these experiments, a pair such as (FFHQ, VoxCeleb) indicates that we synthesize videos with image content from FFHQ and motion patterns from VoxCeleb. We generate videos with a resolution of $2 5 6 \times 2 5 6$ and $1 0 2 4 \times 1 0 2 4$ for FFHQ, $5 1 2 \times 5 1 2$ for AFHQ-Dog and AnimeFaces, and $2 5 6 \times 2 5 6$ for LSUN-Church. Qualitative examples for (FFHQ, VoxCeleb), (LSUN-Church, TLVDB), (AFHQ-Dog, VoxCeleb), and (AnimeFaces, VoxCeleb) are shown in Fig. 4, depicting high-quality and temporally consistent videos (more videos, including results with BigGAN as the image generator, are shown in the Appendix).
160
+
161
+ We also demonstrate how the motion and content are disentangled in Fig. 5 and Fig. 6, which portray generated videos with the same identity but performing diverse motion patterns, and the same motion applied to different identities, respectively. We show results from (AFHQ-Dog, VoxCeleb) (first two rows) and (AnimeFaces, VoxCeleb) (last two rows) in these two figures.
162
+
163
+ ![](images/09659f6861048e5e0134752c50211a917651a84a057589302fb57f579616201b.jpg)
164
+ Figure 5: The first and second row (also the third and fourth row) share the same initial content code but with different motion codes.
165
+
166
+ ![](images/52bc42e59b25ba73ffc31e42a584757750dcc1cbb3d55b7b1ac10dc667e8de59.jpg)
167
+ Figure 6: The first and second row (also the third and fourth row) share the same motion code but with different content codes.
168
+
169
+ # 4.3 ABLATION ANALYSIS
170
+
171
+ We first report IS and FVD in Tab. 4 for UCF-101 using the following methods: w/o Eqn. 2 uses $\mathbf { z } _ { t } =$ $\mathbf { h } _ { t }$ instead of estimating the residual as in Eqn. 2; w/o $D _ { \mathrm { I } }$ omits the contrastive image discriminator $D _ { \mathrm { I } }$ and uses the video discriminator $D _ { \mathrm { { V } } }$ only for learning the motion generator; w/o $D _ { \mathrm { { V } } }$ omits $D _ { \mathrm { V } }$ during training; and Full-128 and $F u l l { - } 2 5 6$ indicate that we generate videos using our full method with resolutions of $1 2 8 \times 1 2 8$ and $2 5 6 \times 2 5 6$ , respectively. We resize frames for all methods to $1 2 8 \times 1 2 8$ when calculating IS and FVD. The full method outperforms all others, proving the importance of each module for learning temporally consistent and high-quality videos.
172
+
173
+ We perform further analysis of our cross-domain video generation on (FFHQ, VoxCeleb). We compare our full method $( F u l l )$ with two variants. w/o ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ denotes that we omit the contrastive loss (Eqn. 6) from $D _ { \mathrm { I } }$ , and w/o ${ \mathcal { L } } _ { \mathrm { m } }$ indicates that we omit the mutual information loss (Eqn. 3) for the motion generator. The results in Tab. 5 demonstrate that ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ is beneficial for learning videos with coherent content, as employing ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ results in lower ACD values and higher human preferences. ${ \mathcal { L } } _ { \mathrm { m } }$ also contributes to generating higher quality videos by mitigating motion synchronization. To validate the motion diversity, we show pairs of 9 randomly generated videos from the two methods to users and ask them to choose which one has superior motion diversity, including rotations and facial expressions. User preference suggests that using ${ \mathcal { L } } _ { \mathrm { m } }$ increases motion diversity.
174
+
175
+ Table 4: Ablation study on UCF-101.
176
+
177
+ <table><tr><td>Method</td><td>IS (↑)</td><td>FVD (↓)</td></tr><tr><td>w/o Eqn. 2</td><td>28.20</td><td>790.87</td></tr><tr><td>w/o D1</td><td>33.22</td><td>796.67</td></tr><tr><td>w/o Dv</td><td>33.84</td><td>867.43</td></tr><tr><td>Full-128</td><td>32.36</td><td>838.09</td></tr><tr><td>Full-256</td><td>33.95</td><td>700.00</td></tr></table>
178
+
179
+ Table 5: Ablation study on (FFHQ, VoxCeleb).
180
+
181
+ <table><tr><td>Method</td><td>w/o Lcontr</td><td>w/o Lm</td><td>Full</td></tr><tr><td>ACD (↓)</td><td>0.5328</td><td>0.5158</td><td>0.4353</td></tr><tr><td>Method</td><td></td><td>Human Preference (%)</td><td></td></tr><tr><td>Full vs w/o Lcontr Full vs w/o Lm</td><td></td><td>68.3 / 31.7 64.4 / 35.6</td><td></td></tr></table>
182
+
183
+ # 4.4 LONG SEQUENCE GENERATION
184
+
185
+ Due to the limitation of computational resources, we train MoCoGAN-HD to synthesize 16 consecutive frames. However, we can generate longer video sequences during inference by applying the following two ways.
186
+
187
+ Motion Generator Unrolling. For motion generator, we can run the LSTM decoder for more steps to synthesize long video sequences. In Fig. 7, we show a synthesized video example of 64 frames using the model trained on the FaceForensics dataset. Our method is capable to synthesize videos with more frames than the number of frames used for training.
188
+
189
+ ![](images/eb58dda6e71eb8437862ac9901d8339ddc7f246564f649044df7a6980983a46f.jpg)
190
+ Figure 7: The generation of a 64-frame video using a model trained with 16-frame on FaceForensics.
191
+
192
+ Motion Interpolation. We can do interpolation on the motion trajectory directly to synthesize long videos. Fig. 8 shows an interpolation example of 32-frame on (AFHQ-Dog, VoxCeleb) dataset.
193
+
194
+ ![](images/516b6dbf38791c9a04fa97dffd0f9fd5c0d80ee72907af4bbb938ef7aa66bd6c.jpg)
195
+ Figure 8: The generation of a 32-frame video on (AFHQ-Dog, VoxCeleb) by doing the interpolation on motion trajectory.
196
+
197
+ # 5 CONCLUSION
198
+
199
+ In this work, we present a novel approach to video synthesis. Building on contemporary advances in image synthesis, we show that a good image generator and our framework are essential ingredients to boost video synthesis fidelity and resolution. The key is to find a meaningful trajectory in the image generator’s latent space. This is achieved using the proposed motion generator, which produces a sequence of motion residuals, with the contrastive image discriminator and video discriminator. This disentangled representation further extends applications of video synthesis to content and motion manipulation and cross-domain video synthesis. The framework achieves superior results on a variety of benchmarks and reaches resolutions unattainable by prior state-of-the-art techniques.
200
+
201
+ # REFERENCES
202
+
203
+ Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan $^ { + + }$ : How to edit the embedded images? In CVPR, 2020.
204
+
205
+ Dinesh Acharya, Zhiwu Huang, Danda Pani Paudel, and Luc Van Gool. Towards high resolution video generation with progressive growing of sliced wasserstein gans. arXiv:1810.02419, 2018.
206
+
207
+ Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. In ICLR, 2017.
208
+
209
+ Aayush Bansal, Shugao Ma, Deva Ramanan, and Yaser Sheikh. Recycle-gan: Unsupervised video retargeting. In ECCV, 2018.
210
+
211
+ Gwern Branwen. Making anime faces with stylegan. 2019.
212
+
213
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In ICLR, 2019.
214
+
215
+ Wonmin Byeon, Qin Wang, Rupesh Kumar Srivastava, and Petros Koumoutsakos. Contextvp: Fully context-aware video prediction. In ECCV, 2018.
216
+
217
+ Caroline Chan, Shiry Ginosar, Tinghui Zhou, and Alexei A Efros. Everybody dance now. In ICCV, 2019.
218
+
219
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020a.
220
+
221
+ Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big selfsupervised models are strong semi-supervised learners. arXiv:2006.10029, 2020b.
222
+
223
+ Yunjey Choi, Youngjung Uh, Jaejun Yoo, and Jung-Woo Ha. Stargan v2: Diverse image synthesis for multiple domains. In CVPR, 2020.
224
+
225
+ Aidan Clark, Jeff Donahue, and Karen Simonyan. Adversarial video generation on complex datasets. arXiv, 2019.
226
+
227
+ Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. In ICML, 2018.
228
+
229
+ Emily L Denton et al. Unsupervised learning of disentangled representations from video. In Advances in neural information processing systems, pp. 4414–4423, 2017.
230
+
231
+ Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv:1708.04552, 2017.
232
+
233
+ Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. In NeurIPS, 2019.
234
+
235
+ Frederik Ebert, Chelsea Finn, Alex X Lee, and Sergey Levine. Self-supervised visual planning with temporal skip connections. arXiv preprint arXiv:1710.05268, 2017.
236
+
237
+ Lore Goetschalckx, Alex Andonian, Aude Oliva, and Phillip Isola. Ganalyze: Toward visual definitions of cognitive image properties. In ICCV, 2019.
238
+
239
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NeurIPS, 2014.
240
+
241
+ Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle ¨ for unnormalized statistical models. In AISTATS, 2010.
242
+
243
+ Raia Hadsell, Sumit Chopra, and Yann LeCun. Dimensionality reduction by learning an invariant mapping. In CVPR, 2006.
244
+
245
+ Erik Hark ¨ onen, Aaron Hertzmann, Jaakko Lehtinen, and Sylvain Paris. Ganspace: Discovering ¨ interpretable gan controls. arXiv:2004.02546, 2020.
246
+
247
+ Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
248
+
249
+ Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. In ICML, 2020.
250
+
251
+ 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 NeurIPs, 2017.
252
+
253
+ R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019.
254
+
255
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
256
+
257
+ Jun-Ting Hsieh, Bingbin Liu, De-An Huang, Li F Fei-Fei, and Juan Carlos Niebles. Learning to decompose and disentangle representations for video prediction. In NeurIPS, 2018.
258
+
259
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In CVPR, 2017.
260
+
261
+ Ali Jahanian, Lucy Chai, and Phillip Isola. On the”steerability” of generative adversarial networks. In ICLR, 2020.
262
+
263
+ Qing Jin, Jian Ren, Oliver J. Woodford, Jiazhuo Wang, Geng Yuan Yuan, Yanzhi Wang, and Sergey Tulyakov. Teachers do more than teach: Compressing image-to-image models. arXiv preprint arXiv:2103.03467, 2021.
264
+
265
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In ECCV, 2016.
266
+
267
+ Emmanuel Kahembwe and Subramanian Ramamoorthy. Lower dimensional kernels for video discriminators. Neural Networks, 132:506–520, 2020.
268
+
269
+ Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li FeiFei. Large-scale video classification with convolutional neural networks. In CVPR, 2014.
270
+
271
+ Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv:1710.10196, 2017.
272
+
273
+ Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019.
274
+
275
+ Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. arXiv:2006.06676, 2020a.
276
+
277
+ Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In CVPR, 2020b.
278
+
279
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014.
280
+
281
+ Sindy Lowe, Peter O’Connor, and Bastiaan Veeling. Putting an end to end-to-end: Gradient-isolated ¨ learning of representations. In NeurIPS, 2019.
282
+
283
+ Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In CVPR, 2020.
284
+
285
+ A. Nagrani, J. S. Chung, and A. Zisserman. Voxceleb: a large-scale speaker identification dataset. In INTERSPEECH, 2017.
286
+
287
+ Arsha Nagrani, Joon Son Chung, Weidi Xie, and Andrew Zisserman. Voxceleb: Large-scale speaker verification in the wild. Computer Speech & Language, 2020.
288
+
289
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv:1807.03748, 2018.
290
+ Taesung Park, Alexei A. Efros, Richard Zhang, and Jun-Yan Zhu. Contrastive learning for unpaired image-to-image translation. In ECCV, 2020.
291
+ Antoine Plumerault, Herve Le Borgne, and C ´ eline Hudelot. Controlling generative models with ´ continuous factors of variations. In ICLR, 2020.
292
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016.
293
+ Jian Ren, Menglei Chai, Sergey Tulyakov, Chen Fang, Xiaohui Shen, and Jianchao Yang. Human motion transfer from poses in the wild. arXiv:2004.03142, 2020.
294
+ Andreas Rossler, Davide Cozzolino, Luisa Verdoliva, Christian Riess, Justus Thies, and Matthias ¨ Nießner. Faceforensics: A large-scale video dataset for forgery detection in human faces. arXiv:1803.09179, 2018.
295
+ Masaki Saito, Eiichi Matsumoto, and Shunta Saito. Temporal generative adversarial nets with singular value clipping. In ICCV, 2017.
296
+ Masaki Saito, Shunta Saito, Masanori Koyama, and Sosuke Kobayashi. Train sparsely, generate densely: Memory-efficient unsupervised training of high-resolution temporal gan. IJCV, 2020.
297
+ Yujun Shen and Bolei Zhou. Closed-form factorization of latent semantics in gans. arXiv:2007.06600, 2020.
298
+ Yujun Shen, Jinjin Gu, Xiaoou Tang, and Bolei Zhou. Interpreting the latent space of gans for semantic face editing. In CVPR, 2020.
299
+ Yichang Shih, Sylvain Paris, Fredo Durand, and William T Freeman. Data-driven hallucination of ´ different times of day from a single outdoor photo. TOG, 2013.
300
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556, 2014.
301
+ Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv:1212.0402, 2012.
302
+ Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015.
303
+ Sergey Tulyakov, Ming-Yu Liu, Xiaodong Yang, and Jan Kautz. Mocogan: Decomposing motion and content for video generation. In CVPR, 2018.
304
+ Thomas Unterthiner, Sjoerd van Steenkiste, Karol Kurach, Raphael Marinier, Marcin Michalski, and Sylvain Gelly. Towards accurate generative models of video: A new metric & challenges. arXiv:1812.01717, 2018.
305
+ Ruben Villegas, Jimei Yang, Seunghoon Hong, Xunyu Lin, and Honglak Lee. Decomposing motion and content for natural video sequence prediction. In ICLR, 2017a.
306
+ Ruben Villegas, Jimei Yang, Yuliang Zou, Sungryull Sohn, Xunyu Lin, and Honglak Lee. Learning to generate long-term future via hierarchical prediction. In ICML, 2017b.
307
+ Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. In NeurIPS, 2016.
308
+ Andrey Voynov and Artem Babenko. Unsupervised discovery of interpretable directions in the gan latent space. In ICML, 2020.
309
+ Jacob Walker, Kenneth Marino, Abhinav Gupta, and Martial Hebert. The pose knows: Video forecasting by generating pose futures. In ICCV, 2017.
310
+
311
+ Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. In NeurIPS, 2018a.
312
+
313
+ Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Highresolution image synthesis and semantic manipulation with conditional gans. In CVPR, 2018b.
314
+
315
+ Ting-Chun Wang, Ming-Yu Liu, Andrew Tao, Guilin Liu, Jan Kautz, and Bryan Catanzaro. Fewshot video-to-video synthesis. In NeurIPS, 2019.
316
+
317
+ Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. TIP, 2004.
318
+
319
+ Dirk Weissenborn, Oscar Tackstr ¨ om, and Jakob Uszkoreit. Scaling autoregressive video models. In ¨ ICLR, 2020.
320
+
321
+ Zhirong Wu, Yuanjun Xiong, X Yu Stella, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In CVPR, 2018.
322
+
323
+ Wei Xiong, Wenhan Luo, Lin Ma, Wei Liu, and Jiebo Luo. Learning to generate time-lapse videos using multi-stage dynamic generative adversarial networks. In CVPR, 2018.
324
+
325
+ Zili Yi, Hao Zhang, Ping Tan, and Minglun Gong. Dualgan: Unsupervised dual learning for imageto-image translation. In ICCV, 2017.
326
+
327
+ Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv:1506.03365, 2015.
328
+
329
+ Vladyslav Yushchenko, Nikita Araslanov, and Stefan Roth. Markov decision process for video generation. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pp. 0–0, 2019.
330
+
331
+ Han Zhang, Ian Goodfellow, Dimitris Metaxas, and Augustus Odena. Self-attention generative adversarial networks. In ICML, 2019.
332
+
333
+ Jiangning Zhang, Chao Xu, Liang Liu, Mengmeng Wang, Xia Wu, Yong Liu, and Yunliang Jiang. Dtvnet: Dynamic time-lapse video generation via single still image. In ECCV, 2020.
334
+
335
+ Long Zhao, Xi Peng, Yu Tian, Mubbasir Kapadia, and Dimitris Metaxas. Learning to forecast and refine residual motion for image-to-video generation. In Proceedings of the European conference on computer vision (ECCV), pp. 387–403, 2018.
336
+
337
+ Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han. Differentiable augmentation for data-efficient gan training. arXiv:2006.10738, 2020a.
338
+
339
+ Zhengli Zhao, Zizhao Zhang, Ting Chen, Sameer Singh, and Han Zhang. Image augmentations for gan training. arXiv:2006.02595, 2020b.
340
+
341
+ Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain gan inversion for real image editing. In ECCV, 2020.
342
+
343
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV, 2017.
344
+
345
+ # A ADDITIONAL DETAILS FOR THE FRAMEWORK
346
+
347
+ # A.1 ADDITIONAL DETAILS FOR THE MOTION GENERATOR
348
+
349
+ To use StyleGAN2 (Karras et al., 2020b) as the image generator, we randomly sample $1 , 0 0 0 , 0 0 0$ latent codes from the input space $\mathcal { Z }$ and send them to the 8-layer MLPs to get the latent codes in the space of $\mathcal { W }$ . Each latent code is a 512-dimension vector. We perform PCA on these 1, 000, 000 latent codes and select the top 384 principal components to form the matrix $\mathbf { V } \in \mathbb { R } ^ { 3 8 4 \times 5 1 2 }$ , which is used to model the motion residuals in Eqn. 2. The LSTM encoder and the LSTM decoder in the motion generator both have an input size of 512 and a hidden size of 384. The noise vector $\epsilon _ { t }$ in Eqn. 1 is also a 512-dimension vector, and the network $H$ in Eqn. 3 is a 2-layer MLPs with 512 hidden units in each of the two fully-connected layers.
350
+
351
+ For BigGAN (Brock et al., 2019), we sample the latent code directly from the space of $\mathcal { Z }$
352
+
353
+ A.2 ADDITIONAL DETAILS FOR THE DISCRIMINATORS
354
+
355
+ # A.2.1 VIDEO DISCRIMINATOR
356
+
357
+ The input images for the video discriminator $D _ { \mathrm { { V } } }$ are processed at two scales. We downsample the output images from the image generator to the resolution of $1 2 8 \times 1 2 8$ and $6 4 \times 6 4$ . For indomain video synthesis, the input sequences for $D _ { \mathrm { { V } } }$ have the shape of $6 \times ( n - 1 ) \times 1 2 8 \times 1 2 8$ and $6 \times ( n - 1 ) \times \mathbf { \bar { 6 4 } } \times 6 4$ , where $n$ is the sequence length used for training. For each of the $( n - 1 )$ subsequent frames, we concatenate the RGB channels of both the first frame and that subsequent frame, resulting in a 6-channel input. For cross-domain video synthesis, the input sequences for $D _ { \mathrm { { V } } }$ have the shape of $3 \times n \times 1 2 8 \times 1 2 8$ and $3 \times n \times 6 4 \times 6 4$ , as the concatenation of the first frame will make the discriminator aware the domain gaps. Details for $D _ { \mathrm { { V } } }$ are shown in Tab. 6.
358
+
359
+ Table 6: The network architecture for video discriminator.
360
+
361
+ <table><tr><td>Operation</td><td>Kernel</td><td>Strides</td><td># Channels</td><td>Norm Type</td><td>Nonlinearity</td></tr><tr><td>Conv3d</td><td>4×4</td><td>2</td><td>64</td><td></td><td>Leaky ReLU (0.2)</td></tr><tr><td>Conv3d</td><td>4×4</td><td>2</td><td>128</td><td>InstanceNorm3d</td><td>Leaky ReLU (0.2)</td></tr><tr><td>Conv3d</td><td>4×4</td><td>2</td><td>256</td><td>InstanceNorm3d</td><td>Leaky ReLU (0.2)</td></tr><tr><td>Conv3d</td><td>4×4</td><td>1</td><td>512</td><td>InstanceNorm3d</td><td>Leaky ReLU (0.2)</td></tr><tr><td>Conv3d</td><td>4×4</td><td>1</td><td>1</td><td>=</td><td>=</td></tr></table>
362
+
363
+ # A.2.2 IMAGE DISCRIMINATOR
364
+
365
+ The image discriminator $D _ { \mathrm { I } }$ has an architecture based on that of the $\mathrm { B i g G A N }$ discriminator, except that we remove the self-attention layer. The feature extractor $F$ used for contrastive learning has the same architecture as $D _ { \mathrm { I } }$ , except that it does not include the last layer of $D _ { \mathrm { I } }$ but has two additional fully connected (FC) layers as the projection head. The number of hidden units for these two FC layers are both 256.
366
+
367
+ Here we describe in more detail the image augmentation and memory bank techniques used for conducting contrastive learning.
368
+
369
+ Image Augmentation. We perform data augmentation on images to create positive and negative pairs. We normalize the images to $[ - 1 , 1 ]$ and apply the following augmentation techniques.
370
+
371
+ • Affine. We augment each image with an affine transformation defined with three random parameters: rotation $\alpha _ { r } \in \mathcal { U } ( \bar { - } 1 8 0 , 1 8 0 )$ , translation $\alpha _ { t } \in \mathcal { U } ( - 0 . 1 , 0 . 1 )$ , and scale $\alpha _ { s } \in$ $\mathcal { U } ( 0 . 9 5 , 1 . 0 5 )$ .
372
+ • Brightness. We add a random value $\alpha _ { b } \sim \mathcal { U } ( - 0 . 5 , 0 . 5 )$ to all channels of each image.
373
+ • Color. We add a random value $\alpha _ { c } \sim \mathcal { U } ( - 0 . 5 , 0 . 5 )$ to one randomly-selected channel of each image.
374
+
375
+ • Cutout (DeVries & Taylor, 2017). We mask out pixels in a random subregion of each image to 0. Each subregion starts at a random point and with size $( \alpha _ { m } H , \alpha _ { m } W )$ , where $\alpha _ { m } \sim \mathcal { U } ( 0 , 0 . 2 5 )$ and $( H , W )$ is the image resolution.
376
+
377
+ • Flipping. We horizontally flip the image with the probability of 0.5.
378
+
379
+ Memory Bank. It has been shown that contrastive learning benefits from large batch-sizes and negative pairs (Chen et al., 2020b). To increase the number of negative pairs, we incorporate the memory mechanism from MoCo (He et al., 2020), which designates a memory bank to store negative examples. More specifically, we keep an exponential moving average of the image discriminator, and its output of fake video frames are buffered as negative examples. We use a memory bank with a dictionary size of 4, 096.
380
+
381
+ # B MORE DETAILS FOR EXPERIMENTS
382
+
383
+ Image Generators. We train the unconditional StyleGAN2 models from scratch on the UCF-101, FaceForensics, Sky Time-lapse, and AFHQ-Dog datasets. We train the image generators with the official Tensorflow code2 and select the checkpoints that obtain the best Fr´echet inception distance (FID) (Heusel et al., 2017) score to be used as the image generators. The FID score of each image generator is shown in Table 7. For FFHQ, AnimeFaces, and LSUN-Church, we simply use the released pre-trained models.
384
+
385
+ We also train an unconditional BigGAN model on the FFHQ dataset using the public PyTorch code3.
386
+ We train a model with resolution $1 2 8 \times 1 2 8$ and select the last checkpoint as the image generator.
387
+
388
+ Table 7: FID of our trained StyleGAN2 models on different datasets.
389
+
390
+ <table><tr><td></td><td>UCF-101</td><td>FaceForensics</td><td>Sky Time-lapse</td><td>AFHQ-Dog</td></tr><tr><td>FID</td><td>45.63</td><td>10.99</td><td>10.80</td><td>7.85</td></tr></table>
391
+
392
+ Training Time. We train each image generator for UCF-101, FaceForensics, Sky Time-lapse, and AFHQ-Dog in less than 2 days using 8 Tesla V100 GPUs. For FFHQ, AnimeFaces, and LSUNChurch, we use the released models with no training cost. The training time for video generators ranges from $1 . 5 \sim 3$ days depending on the datasets (Due to the memory issue, the training for generating videos with resolution of $1 , 0 2 4 \times 1 , 0 2 4$ was done on 8 Quadro RTX 8000, with 5 days). The total training time for all the datasets is $1 . 5 \sim 5$ days and the estimated cost for training on Google Cloud is $\$ 0.78 \sim \ S 2.3 K$ .
393
+
394
+ Implementation Details. We implement our experiments with PyTorch 1.3.1 and also tested them with PyTorch 1.6. We use the Adam optimizer (Kingma & Ba, 2014) with a learning rate of 0.0001 for $G _ { \mathrm { M } }$ , $D _ { \mathrm { { V } } }$ , and $D _ { \mathrm { I } }$ in all experiments. In Eqn. 2, we set $\lambda = 0 . 5$ for conventional video generation tasks and use a smaller $\lambda = 0 . 2$ for cross-domain video generation, as it improves the content consistency. In Eqn. 7, we set $\lambda _ { \mathrm { m } } = \lambda _ { \mathrm { c o n t r } } = \lambda _ { \mathrm { f } } = 1$ . Grid searching on these hyper-parameters could potentially lead to a performance boost. For TGANv2, we use the released code4 to train the models on UCF-101 and FaceForensics using 8 Tesla V100 with 16GB of GPU memory.
395
+
396
+ Video Prediction. For video prediction, we predict consecutive frames, given the first frame $\mathbf { x }$ from a test video clip as the input. We find the inverse latent code $\hat { \bf z } _ { 1 }$ for $\mathbf { x } _ { 1 }$ by minimizing the following objective:
397
+
398
+ $$
399
+ \hat { \mathbf { z } } _ { 1 } = \underset { \hat { \mathbf { z } } _ { 1 } } { \arg \operatorname* { m i n } } \left\| \mathbf { x } _ { 1 } - G _ { \mathrm { I } } ( \hat { \mathbf { z } } _ { 1 } ) \right\| _ { 2 } + \lambda _ { \mathrm { v g g } } \left\| F _ { \mathrm { v g g } } ( \mathbf { x } _ { 1 } ) - F _ { \mathrm { v g g } } ( G _ { \mathrm { I } } ( \hat { \mathbf { z } } _ { 1 } ) ) \right\| _ { 2 } ,
400
+ $$
401
+
402
+ where $\lambda _ { \mathrm { v g g } }$ is the weight for perceptual loss (Johnson et al., 2016), $F _ { \mathrm { v g g } }$ is the VGG feature extraction model (Simonyan $\&$ Zisserman, 2014). We set $\lambda _ { \mathrm { v g g } } = 1$ and optimize Eqn. 8 for $2 0 , 0 0 0$ iterations. We take $\hat { \mathbf { z } } _ { 1 }$ as the input to our model for video prediction.
403
+
404
+ AMT Experiments. We present more details on the AMT experiments for different experimental settings and datasets. For each experiment, we run 5 iterations to get the averaged score.
405
+
406
+ • FaceForensics, Ours vs TGANv2. We randomly select 300 videos from each method and ask users to select the better one from a pair of videos. • Sky Time-lapse, Ours vs DTVNet. We compare our method with DTVNet on the video prediction task. The testing set of Sky Time-lapse dataset includes 2, 815 short video clips. Considering that many of these video clips share similar content and are sampled from 148 long videos, we select 148 short videos with different content for testing. For these videos, we perform inversion (Eqn. 8) on the first frame to get the latent code and generate videos. For DTVNet, we use the first frame directly as input to produce their results. We ask users to chose the one with better video quality from a pair of videos generated by our method and DTVNet. The results shown in Tab. 8 demonstrate the clear advantage of our approach.
407
+
408
+ Table 8: Human evaluation experiments on Sky Time-lapse dataset.
409
+
410
+ <table><tr><td>Method</td><td>Human Preference (%)</td></tr><tr><td>Ours /DTVNet</td><td>77.3 / 22.7</td></tr></table>
411
+
412
+ • FFHQ, Full vs w/o ${ \mathcal { L } } _ { \mathrm { c o n t r } }$ . We randomly sample 200 videos generated by each method and ask users to select the more realistic one from a pair of videos.
413
+
414
+ • FFHQ, Full vs w/o ${ \mathcal { L } } _ { \mathrm { m } }$ . For each method, we use the same content code $\mathbf { z } _ { 1 }$ to generate 9 videos with different motion trajectories, and organize them into a $3 \times 3$ grid. To conduct AMT experiments, we randomly generate $5 0 3 \times 3$ videos for each method and ask users to choose the one with higher motion diversity from a pair of videos.
415
+
416
+ Cross-Domain Video Generation. We provide more details on the image and video datasets.
417
+
418
+ • Image Datasets:
419
+
420
+ – FFHQ (Karras et al., 2019) consists of 70, 000 high-quality face images at $1 0 2 4 \times 1 0 2 4$ resolution with considerable variation in terms of age, ethnicity, and background.
421
+ – AFHQ-Dog (Choi et al., 2020) contains 5, 239 high-quality dog images at $5 1 2 \times 5 1 2$ resolution with both training and testing sets.
422
+ – AnimeFaces (Branwen, 2019) includes 2, 232, 462 anime face images at $5 1 2 \times 5 1 2$ resolution.
423
+ – LSUN-Church (Yu et al., 2015) includes 126, 227 in-the-wild church images at $2 5 6 \times$ 256 resolution.
424
+
425
+ • Video Datasets:
426
+
427
+ – VoxCeleb (Nagrani et al., 2020) consists of 22, 496 short clips of human speech, extracted from interview videos uploaded to YouTube.
428
+ – TLVDB (Shih et al., 2013) includes 463 time-lapse videos, covering a wide range of landscapes and cityscapes.
429
+
430
+ For the video datasets, we randomly select 32 consecutive frames from training videos and select every other frame to form a 16-frame sequence for training.
431
+
432
+ # C MORE VIDEO RESULTS
433
+
434
+ In this section, we provide more qualitative video results generated by our approach. We show the thumbnail from each video in the figures. Full resolution videos are in the supplementary material. We also provide an HTML page to visualize these videos.
435
+
436
+ UCF-101. In Fig. 9, we show videos generated by our approach on the UCF-101 dataset.
437
+
438
+ FaceForensics. In Fig. 10, we show the generated videos for FaceForensics. In Fig. 11 and Fig. 12, we show that our approach can generate long consecutive results, 32 and 64 frames respectively, even when trained with 16-frame clips. In Fig. 13, we demonstrate that our approach can generate diverse motion patterns using the same content code. In Fig. 14, we apply the same motion codes with different content to get the synthesized videos.
439
+
440
+ Sky Time-lapse. Fig. 15 shows the generated videos for the Sky Time-lapse dataset.
441
+
442
+ (FFHQ, VoxCeleb). Fig. 16, Fig. 17, and Fig. 18 present the generated videos that have motion patterns from VoxCeleb and content from FFHQ, with resolutions of $1 2 8 \times 1 2 8$ , $2 5 6 \times 2 5 6$ , and $1 0 2 4 \times 1 0 2 4$ , respectively. We use BigGAN as the generator for Fig. 16 and StyleGAN2 for Fig. 17 and Fig. 18.
443
+
444
+ (AFHQ-Dog, VoxCeleb). Fig. 19 presents the generated videos that have motion patterns from VoxCeleb and content from AFHQ-Dog. The videos have a resolution of $5 1 2 \times 5 1 2$ . In Fig. 20, we show the interpolation between every two frames to get longer sequences.
445
+
446
+ (AnimeFaces, VoxCeleb). Fig. 21 shows the generated videos that have motion patterns from VoxCeleb and content from AmimeFaces. The videos have a resolution of $5 1 2 \times 5 1 2$ .
447
+
448
+ (LSUN-Church, TLVDB). Fig. 22 presents the generated videos that have time-lapse changing style from TLVDB and content from LSUN-Church.
449
+
450
+ ![](images/656422d8a2df210e3146707dcdb12fde3649bcd3fcf93f62ecdf145702a17967.jpg)
451
+ Figure 9: Example videos generated by our approach on the UCF-101 dataset.
452
+
453
+ ![](images/c5ff5419633d0644e0e341a7d75db48338d2b5671868858be71bd04e7c6153c9.jpg)
454
+ Figure 10: Example videos generated by our approach on the FaceForensics dataset.
455
+
456
+ ![](images/761d1c674d9ee743520b4d034eacf7d8346b26568f13046f11ddbba719fa7f2f.jpg)
457
+ Figure 11: The generated videos on the FaceForensics dataset consisting of 32 frames.
458
+
459
+ ![](images/4ad635a60c3aa8237ade234971f9517c9b4f08c1ac26fe96e7b8da092a2e4e05.jpg)
460
+ Figure 12: The generated videos on the FaceForensics dataset consisting of 64 frames.
461
+
462
+ ![](images/ad012a7a8f176597f32f4e1311158d969b6df2f4076ace43e878320dae39797c.jpg)
463
+ Figure 13: Each row is synthesized using the same content code to generate diverse motion patterns. Please see the corresponding supplementary video for a better illustration.
464
+
465
+ ![](images/4003a2aba6d19b3fe338880c8b3e5c746593f5f9594f7bc953b40b71f3a38c3c.jpg)
466
+ Figure 14: Each row is synthesized with the same motion trajectory but different content codes. Please see the corresponding supplementary video for a better illustration.
467
+
468
+ ![](images/b09b8b7b2442b49f813aef812bf5318c58277beb10c2652b3353bffd59871d25.jpg)
469
+ Figure 15: Example videos generated by our approach on the Sky Time-lapse dataset. The videos have a resolution of $1 2 8 \times 1 2 8$ .
470
+
471
+ ![](images/4c1fdaa7a976b8b57c81778061255328995263d4c5ebb109c4052315586de727.jpg)
472
+ Figure 16: Cross-domain video generation for (FFHQ, Vox). The videos have a resolution of $1 2 8 \times 1 2 8$ .
473
+
474
+ ![](images/56cc49b5a03b5c0cbe43a035e35986744b62a7d970b623473e8d5733feee46b7.jpg)
475
+ Figure 17: Cross-domain video generation for (FFHQ, Vox). The videos have a resolution of $2 5 6 \times 2 5 6$ .
476
+
477
+ ![](images/183d0acfc91549f201c5ccdfaeca4ec1e9c5528883c01ff6f7b227665552e808.jpg)
478
+ Figure 18: Cross-domain video generation for (FFHQ, Vox). The videos have a resolution of $1 0 2 4 \times 1 0 2 4$ .
479
+
480
+ ![](images/fe517c17c7bcd4684ef59d85cc5e690d7dbd7a3e30efb2733313cb7f8d5680ac.jpg)
481
+ Figure 19: Cross-domain video generation for (AFHQ-Dog, Vox). The videos have a resolution of $5 1 2 \times 5 1 2$ .
482
+
483
+ ![](images/7b9c9e6c87fcefbc321f30d0b5fe95a91ed52cda550800332e0721ca28cdd274.jpg)
484
+ Figure 20: Cross-domain video generation for (AFHQ-Dog, Vox). We interpolate every two frames to get 32 sequential frames. The videos have a resolution of $5 1 2 \times 5 1 2$ .
485
+
486
+ ![](images/407cf308e90a25e7054af47caa2195e530ebe7e2c0eadad7146c7c49c8fcb5ff.jpg)
487
+ Figure 21: Cross-domain video generation for (AnimeFaces, Vox). The videos have a resolution of $5 1 2 \times 5 1 2$ .
488
+
489
+ ![](images/e8e559630390e3cf2b0fa67b36c8a27d2dd8d927cedb590947e66c71c6b98aae.jpg)
490
+ Figure 22: Cross-domain video generation for (LSUN-Church, TLVDB). The videos have a resolution of $2 5 6 \times 2 5 6$ .
491
+
492
+ # D MORE ABLATION ANALYSIS FOR MUTUAL INFORMATION LOSS ${ \mathcal { L } } _ { \mathrm { m } }$
493
+
494
+ In addition to Tab. 5, we perform another ablation experiment to show how mutual information loss ${ \mathcal { L } } _ { \mathrm { m } }$ improves motion diversity by considering the following setting. We random sample a content code $z _ { 1 } \in { \mathcal { Z } }$ and use it as an input to synthesize 100 videos, where each video contains 16 frames. We average the generated 100 videos (they share the same first frame) to get one meanvideo, which contains 16 frames. For example, for the last frame in the mean-video, it is obtained by averaging all the last frames from the 100 generated videos. We also calculate the per-pixel standard deviation (std) for each averaged frame in the mean-video. More blurry frames and higher per-pixel std indicate the 100 synthetic videos contain more diverse motion.
495
+
496
+ We evaluate the settings of $F u l l$ and w/o ${ \mathcal { L } } _ { \mathrm { m } }$ (without using the mutual information loss) by running the above experiments for 50 times, e.g., sampling $z _ { 1 }$ for 50 times. Across the 50 trials, for Full model, the mean and std of the per-pixel std for the $1 6 ^ { t h }$ frame (the last frame in a generated video) is $0 . 2 3 3 \pm 0 . 0 3 6$ , which is significantly higher than that of the w/o ${ \mathcal { L } } _ { \mathrm { m } }$ model $( 0 . 1 2 6 \pm 0 . 0 2 5 )$ . In Fig. 23, we show 8 examples of the last frame from the mean-video and the images with per-pixel std (See supplementary material for the whole videos). Our Full model has more diverse motion as the averaged frame is more blurry and the per-pixel std is higher. Note that StyleGAN2 enables noise inputs for extra randomness, we disable it in this ablation study.
497
+
498
+ ![](images/51c0580023dc8299a096d24d1d17147ffce9571574f91afc09ee116a73dc2d59.jpg)
499
+ Figure 23: Row 1 and 3: The last frame of the mean-video and per-pixel std of w/o ${ \mathcal { L } } _ { \mathrm { m } }$ model. Row 2 and 4: The last frame of the mean-video and per-pixel std of the Full model. The Full model has a more blurry mean-video and higher per-pixel std, which indicates more diverse motion.
500
+
501
+ # E LIMITATIONS
502
+
503
+ Our framework requires a well-trained image generator for frame synthesis. In order to synthesize high-quality and temporally coherent videos, an ideal image generator should satisfy two requirements: R1. The image generator should synthesize high-quality images, otherwise the video discriminator can easily tell the generated videos as the image quality is different from the real videos. R2. The image generator should be able to generate diverse image contents to include enough motion modes for sequence modeling.
504
+
505
+ Example of R1. UCF-101 is a challenging dataset even for the training of an image generator. In Tab. 7, the StyleGAN2 model trained on UCF-101 has FID 45.63, which is much worse than the others. We hypothesis the reason is that UCF-101 dataset has many categories, but within each category, it includes relatively a small amount of videos and these videos share very similar content. Such observation is also discussed in DVDGAN (Clark et al., 2019). Although we can achieve state-of-the-art performance on UCF-101 dataset, the quality of the generated videos is not as good as other datasets (Fig. 9), and the quality of synthesized videos is still not close to real videos.
506
+
507
+ Example of R2. We test our method on BAIR Robot Pushing Dataset (Ebert et al., 2017). We train a $6 4 \times 6 4$ StyleGAN2 image generator with using the frames from BAIR videos. The image generator has FID as 6.12. Based on the image generator, we train a video generation model that can synthesize 16 frames. An example of synthesized video is shown in Fig. 24 (more videos are in the supplementary materials). We can see our method can successfully model shadow changing, the robot arm moving, but it struggles to decouple the robot arm from some small objects in the background, which we show analysis follows.
508
+
509
+ ![](images/e0a325556e98c9afa069fb37200cb4337e35330e735c2c25f0a85677a8bc04eb.jpg)
510
+ Figure 24: A synthesized video using BAIR dataset. Note the background changing of the first frame (upper-left) and the last frame (bottom-right).
511
+
512
+ # E.1 ANALYSIS OF THE INFORMATION CONTAINED IN PCA COMPONENTS.
513
+
514
+ Inspired by previous work (Hark ¨ onen et al., 2020), we further investigate the latent space of the ¨ image generator by considering the information contained in each PCA component. Fig. 25 shows the percentage of total variance captured by top PCA components. The image generator on BAIR compresses most of the information on a few components. Specially, the top $2 0 \mathrm { P C A }$ components captures $8 5 \%$ of the variance. In contrast, the latent space of the image generator trained on FFHQ (and FFHQ 1024 for high-resolution image synthesis) uses $1 0 0 ~ \mathrm { P C A }$ components to capture $8 5 \%$ information. This implies the BAIR generator models the dataset in a low-dimension space, and such generator increases the difficulty for fully disentangling all the objects in images for manipulation.
515
+
516
+ ![](images/713dfec61ead66f47ab290bc97279a7013cf407f42be55df1cb69d2350749654.jpg)
517
+ Figure 25: Percentage of variations captured by top PCA components on different models.
518
+
519
+ Moreover, we visualize the video synthesis results by moving along the top $2 0 ~ \mathrm { P C A }$ components. Let $V _ { i }$ denote the $i ^ { t h }$ PCA component. Given content code $z _ { 1 }$ , we synthesize a 5-frame video clip by using the following sequence as input: $\left\{ z _ { 1 } - 2 V _ { i } , z _ { 1 } - V _ { i } , z _ { 1 } , z _ { 1 } + V _ { i } , z _ { 1 } + 2 V _ { i } \right\}$ . In Fig. 26, we show the video synthesis results by moving along the top $2 0 ~ \mathrm { P C A }$ directions. It can be seen that: 1) changing the later components (the $8 ^ { t h }$ and later rows) of BAIR only make small changes; 2) the first 7 components of BAIR have entangled semantic meaning, while the components in FFHQ have more disentangled meaning ( $2 ^ { n d }$ row, rotation; $2 0 ^ { t h }$ row, smile). This indicates the image generator of BAIR may not cover enough (disentangled) motion modes, and it might be hard for the motion generator to fully disentangle all the contents and motion with only a few dominating PCA components, while for the image generator trained on FFHQ, it is much easier for disentangling foreground and background.
520
+
521
+ ![](images/621309b8d0cfc18d02ea6eb4d0907fd0b2ba1236fa9d88914060e90d5d238210.jpg)
522
+ Figure 26: Visualization of top 20 principle components of BAIR (left) and FFHQ (right).
523
+
524
+ ![](images/16867bbe72a5c0478477b3900f51e5bedb8d081ccc14e71cbb70cf69c80d4340.jpg)
parse/train/6puCSjH3hwA/6puCSjH3hwA_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6puCSjH3hwA/6puCSjH3hwA_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6puCSjH3hwA/6puCSjH3hwA_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJxh2j0qYm/BJxh2j0qYm_content_list.json ADDED
@@ -0,0 +1,1516 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Dynamic Channel Pruning: Feature Boosting and Suppression ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 678,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Xitong Gao $\\bot$ ∗, Yiren Zhao $^ 2$ ∗, Lukasz Dudziak $^ 3$ , Robert Mullins4, Cheng-zhong $\\mathbf { X u } ^ { \\mathrm { 5 } }$ ",
17
+ "bbox": [
18
+ 187,
19
+ 169,
20
+ 846,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 Shenzhen Institutes of Advanced Technology, Shenzhen, China \n2,3,4 University of Cambridge, Cambridge, UK \n5 University of Macau, Macau, China \n1 xt.gao@siat.ac.cn, 2 yaz21@cam.ac.uk ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 647,
32
+ 242
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 452,
42
+ 277,
43
+ 545,
44
+ 294
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Making deep convolutional neural networks more accurate typically comes at the cost of increased computational and memory resources. In this paper, we reduce this cost by exploiting the fact that the importance of features computed by convolutional layers is highly input-dependent, and propose feature boosting and suppression (FBS), a new method to predictively amplify salient convolutional channels and skip unimportant ones at run-time. FBS introduces small auxiliary connections to existing convolutional layers. In contrast to channel pruning methods which permanently remove channels, it preserves the full network structures and accelerates convolution by dynamically skipping unimportant input and output channels. FBS-augmented networks are trained with conventional stochastic gradient descent, making it readily available for many state-of-the-art CNNs. We compare FBS to a range of existing channel pruning and dynamic execution schemes and demonstrate large improvements on ImageNet classification. Experiments show that FBS can respectively provide $5 \\times$ and $2 \\times$ savings in compute on VGG-16 and ResNet-18, both with less than $0 . 6 \\%$ top-5 accuracy loss. ",
51
+ "bbox": [
52
+ 233,
53
+ 310,
54
+ 764,
55
+ 545
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 571,
66
+ 339,
67
+ 588
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "State-of-the-art vision and image-based tasks such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016), object detection (Ren et al., 2017; Huang et al., 2017) and segmentation (Long et al., 2015) are all built upon deep convolutional neural networks (CNNs). While CNN architectures have evolved to become more efficient, the general trend has been to use larger models with greater memory utilization, bandwidth and compute requirements to achieve higher accuracy. The formidable amount of computational resources used by CNNs present a great challenge in the deployment of CNNs in both cost-sensitive cloud services and low-powered edge computing applications. ",
74
+ "bbox": [
75
+ 174,
76
+ 602,
77
+ 825,
78
+ 714
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One common approach to reduce the memory, bandwidth and compute costs is to prune over-parameterized CNNs. If performed in a coarse-grain manner this approach is known as channel pruning (Ye et al., 2018; He et al., 2017; Liu et al., 2017; Wen et al., 2016). Channel pruning evaluates channel saliency measures and removes all input and output connections from unimportant channels— generating a smaller dense model. A saliency-based pruning method, however, has threefold disadvantages. Firstly, by removing channels, the capabilities of CNNs are permanently lost, and the resulting CNN may never regain its accuracy for difficult inputs for which the removed channels were responsible. Secondly, despite the fact that channel pruning may drastically shrink model size, without careful design, computational resources cannot be effectively reduced in a CNN without a detrimental impact on its accuracy. Finally, the saliency of a neuron is not static, which can be illustrated by the feature visualization in Figure 1. Here, a CNN is shown a set of input images, certain channel neurons in a convolutional output may get highly excited, whereas another set of images elicit little response from the same channels. This is in line with our understanding of CNNs that neurons in a convolutional layer specialize in recognizing distinct features, and the relative importance of a neuron depends heavily on the inputs. ",
85
+ "bbox": [
86
+ 174,
87
+ 722,
88
+ 825,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 176,
98
+ 103,
99
+ 823,
100
+ 146
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The above shortcomings prompt the question: why should we prune by static importance, if the importance is highly input-dependent? Surely, a more promising alternative is to prune dynamically depending on the current input. A dynamic channel pruning strategy allows the network to learn to prioritize certain convolutional channels and ignore irrelevant ones. Instead of simply reducing model size at the cost of accuracy with pruning, we can accelerate convolution by selectively computing only a subset of channels predicted to be important at run-time, while considering the sparse input from the preceding convolution layer. In effect, the amount of cached activations and the number of read, write and arithmetic operations used by a well-designed dynamic model can be almost identical to an equivalently sparse statically pruned one. In addition to saving computational resources, a dynamic model preserves all neurons of the full model, which minimizes the impact on task accuracy. ",
107
+ "bbox": [
108
+ 174,
109
+ 154,
110
+ 825,
111
+ 305
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we propose feature boosting and suppression (FBS) to dynamically amplify and suppress output channels computed by the convolutional layer. Intuitively, we can imagine that the flow of information of each output channel can be amplified or restricted under the control of a “valve”. This allows salient information to flow freely while we stop all information from unimportant channels and skip their computation. Unlike pruning statically, the valves use features from the previous layer to predict the saliency of output channels. With conventional stochastic gradient descent (SGD) methods, the predictor can learn to adapt itself by observing the input and output features of the convolution operation. ",
118
+ "bbox": [
119
+ 174,
120
+ 313,
121
+ 823,
122
+ 424
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "FBS introduces tiny auxiliary connections to existing convolutional layers. The minimal overhead added to the existing model is thus negligible when compared to the potential speed up provided by the dynamic sparsity. Existing dynamic computation strategies in CNNs (Lin et al., 2017; Odena et al., 2017; Bolukbasi et al., 2017) produce on/off pruning decisions or execution path selections. Training them thus often resorts to reinforcement learning, which in practice is often computationally expensive. Even though FBS similarly use non-differentiable functions, contrary to these methods, the unified losses are still wellminimized with conventional SGD. ",
129
+ "bbox": [
130
+ 174,
131
+ 431,
132
+ 823,
133
+ 541
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We apply FBS to a custom CIFAR-10 (Krizhevsky et al., 2014) classifier and popular CNN models such as VGG-16 (Simonyan & Zisserman, 2015) and ResNet-18 (He et al., 2016) trained on the ImageNet dataset (Deng et al., 2009). Empirical results show that under the same speed-ups, FBS can produce models with validation accuracies surpassing all other channel pruning and dynamic conditional execution methods examined in the paper. ",
140
+ "bbox": [
141
+ 174,
142
+ 549,
143
+ 823,
144
+ 618
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/ec163895e99a91029cb698a9a91ed95b476b1369b23dfb25f76e0587a202b687.jpg",
151
+ "image_caption": [
152
+ "Figure 1: When images from the ImageNet validation dataset are shown to a pre-trained ResNet-18 (He et al., 2016), the outputs from certain channel neurons may vary drastically. The top rows in (a) and (b) are found respectively to greatly excite neurons in channels 114 and 181 of layer block 3b/conv2, whereas the bottom images elicit little activation from the same channel neurons. The number below each image indicate the maximum values observed in the channel before adding the shortcut and activation. Finally, (c) shows the distribution of maximum activations observed in the first 20 channels. "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 148,
157
+ 647,
158
+ 820,
159
+ 781
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 Related Work ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 102,
170
+ 354,
171
+ 118
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2.1 Structured Sparsity ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 176,
181
+ 135,
182
+ 390,
183
+ 148
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Since LeCun et al. (1990) introduced optimal brain damage, the idea of creating more compact and efficient CNNs by removing connections or neurons has received significant attention. Early literature on pruning deep CNNs zero out individual weight parameters (Hassibi et al., 1994; Guo et al., 2016). This results in highly irregular sparse connections, which were notoriously difficult for GPUs to exploit. This has prompted custom accelerator solutions that exploit sparse weights (Parashar et al., 2017; Han et al., 2016). Although supporting both sparse and dense convolutions efficiently normally involves some compromises in terms of efficiency or performance. ",
190
+ "bbox": [
191
+ 174,
192
+ 161,
193
+ 823,
194
+ 273
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Alternatively, recent work has thus increasingly focused on introducing structured sparsity (Wen et al., 2016; Ye et al., 2018; Alvarez & Salzmann, 2016; Zhou et al., 2016), which can be exploited by GPUs and allows custom accelerators to focus solely on efficient dense operations. Wen et al. (2016) added group Lasso on channel weights to the model’s training loss function. This has the effect of reducing the magnitude of channel weights to diminish during training, and remove connections from zeroed-out channels. To facilitate this process, Alvarez & Salzmann (2016) additionally used proximal gradient descent, while Li et al. (2017) and He et al. (2018a) proposed to prune channels by thresholds, i.e. they set unimportant channels to zero, and fine-tune the resulting CNN. The objective to induce sparsity in groups of weights may present difficulties for gradient-based methods, given the large number of weights that need to be optimized. A common approach to overcome this is to solve (He et al., 2017) or learn (Liu et al., 2017; Ye et al., 2018) channel saliencies to drive the sparsification of CNNs. He et al. (2017) solved an optimization problem which limits the number of active convolutional channels while minimizing the reconstruction error on the convolutional output. Liu et al. (2017) used Lasso regularization on channel saliencies to induce sparsity and prune channels with a global threshold. Ye et al. (2018) learned to sparsify CNNs with an iterative shrinkage/thresholding algorithm applied to the scaling factors in batch normalization. There are methods (Luo et al., 2017; Zhuang et al., 2018) that use greedy algorithms for channel selection. Huang et al. (2018) and He et al. (2018b) adopted reinforcement learning to train agents to produce channel pruning decisions. PerforatedCNNs, proposed by Figurnov et al. (2016), use predefined masks that are model-agnostic to skip the output pixels in convolutional layers. ",
201
+ "bbox": [
202
+ 174,
203
+ 279,
204
+ 825,
205
+ 584
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "2.2 Dynamic Execution ",
212
+ "text_level": 1,
213
+ "bbox": [
214
+ 176,
215
+ 604,
216
+ 379,
217
+ 618
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "In a pruned model produced by structured sparsity methods, the capabilities of the pruned neurons and connections are permanently lost. Therefore, many propose to use dynamic networks as an alternative to structured sparsity. During inference, a dynamic network can use the input data to choose parts of the network to evaluate. ",
224
+ "bbox": [
225
+ 176,
226
+ 631,
227
+ 823,
228
+ 686
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Convolutional layers are usually spatially sparse, i.e. their activation outputs may contain only small patches of salient regions. A number of recent publications exploit this for acceleration. Dong et al. (2017) introduced low-cost collaborative layers which induce spatial sparsity in cheap convolutions, so that the main expensive ones can use the same sparsity information. Figurnov et al. (2017) proposed spatially adaptive computation time for residual networks (He et al., 2016), which learns the number of residual blocks required to compute a certain spatial location. Almahairi et al. (2016) presented dynamic capacity networks, which use the gradient of a coarse output’s entropy to select salient locations in the input image for refinement. Ren et al. (2018) assumed the availability of $a$ priori spatial sparsity in the input image, and accelerated the convolutional layer by computing non-sparse regions. ",
235
+ "bbox": [
236
+ 174,
237
+ 694,
238
+ 823,
239
+ 833
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "There are dynamic networks that make binary decisions or multiple choices for the inference paths taken. BlockDrop, proposed by Wu et al. (2018), trains a policy network to skip blocks in residual networks. Liu & Deng (2018) proposed conditional branches in deep neural networks (DNNs), and used Q-learning to train the branching policies. Odena et al. (2017) designed a DNN with layers containing multiple modules, and decided which module to use with a recurrent neural network (RNN). Lin et al. (2017) learned an RNN to adaptively prune channels in convolutional layers. The on/off decisions commonly used in these networks cannot be represented by differentiable functions, hence the gradients are not well-defined. Consequently, the dynamic networks above train their policy functions by reinforcement learning. There exist, however, methods that workaround such limitations. Shazeer et al. (2017) introduced sparsely-gated mixture-of-experts and used a noisy ranking on the backpropagate-able gating networks to select the expensive experts to evaluate. Bolukbasi et al. (2017) trained differentiable policy functions to implement early exits in a DNN. Hua et al. (2018) learned binary policies that decide whether partial or all input channels are used for convolution, but approximate the gradients of the non-differentiable policy functions with continuous ones. ",
246
+ "bbox": [
247
+ 174,
248
+ 840,
249
+ 823,
250
+ 924
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "",
257
+ "bbox": [
258
+ 174,
259
+ 103,
260
+ 823,
261
+ 242
262
+ ],
263
+ "page_idx": 3
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "3 Feature Boosting and Suppression ",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 174,
271
+ 262,
272
+ 555,
273
+ 279
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "We start with a high-level illustration (Figure 2) of how FBS accelerates a convolutional layer with batch normalization (BN). The auxiliary components (in red) predict the importance of each output channel based on the input features, and amplify the output features accordingly. Moreover, certain output channels are predicted to be entirely suppressed (or zero-valued as represented by $\\varTheta$ ), such output sparsity information can advise the convolution operation to skip the computation of these channels, as indicated by the dashed arrow. It is notable that the expensive convolution can be doubly accelerated by skipping the inactive channels from both the input features and the predicted output channel saliencies. The rest of this section provides detailed explanation of the components in Figure 2. ",
280
+ "bbox": [
281
+ 173,
282
+ 292,
283
+ 825,
284
+ 419
285
+ ],
286
+ "page_idx": 3
287
+ },
288
+ {
289
+ "type": "image",
290
+ "img_path": "images/00841c99e6441664d8e5cf5e76ee9ffd57468d400db2d18166279b67b9b3218e.jpg",
291
+ "image_caption": [
292
+ "Figure 2: A high level view of a convolutional layer with FBS. By way of illustration, we use the $l ^ { \\mathrm { t h } }$ layer with 8-channel input and output features, where channels are colored to indicate different saliencies, and the white blocks $( \\boxed { \\mathcal { Q } } )$ represent all-zero channels. "
293
+ ],
294
+ "image_footnote": [],
295
+ "bbox": [
296
+ 171,
297
+ 429,
298
+ 825,
299
+ 593
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "3.1 Preliminaries ",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 174,
309
+ 679,
310
+ 330,
311
+ 693
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "For simplicity, we consider a deep sequential batch-normalized (Ioffe & Szegedy, 2015) CNN with $L$ convolutional layers, i.e ${ \\bf \\therefore } \\ { \\bf x } _ { L } = F ( { \\bf x } _ { 0 } ) = f _ { L } \\left( \\cdot \\cdot \\cdot f _ { 2 } ( f _ { 1 } ( { \\bf x } _ { 0 } ) \\right) \\cdot \\cdot \\cdot { \\bf \\cdot } ) $ , where the $l ^ { \\mathrm { t h } }$ layer $f _ { l } : \\mathbb { R } ^ { C _ { l - 1 } \\times H _ { l - 1 } \\times W _ { l - 1 } } \\to \\mathbb { R } ^ { C _ { l } \\times H _ { l } \\times W _ { l } }$ computes the features $\\mathbf { x } _ { l } \\in \\mathbb { R } ^ { C _ { l } \\times H _ { l } \\times W _ { l } }$ , which comprise of $C _ { l }$ channels of features with height $H _ { l }$ and width $W _ { l }$ . The $l ^ { \\mathrm { t h } }$ layer is thus defined as: ",
318
+ "bbox": [
319
+ 173,
320
+ 704,
321
+ 825,
322
+ 761
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/a5e81b45c2e5279220decb2960ae82304dc8ac1381af1eac6978be4b60fddd7b.jpg",
329
+ "text": "$$\nf _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) = ( \\gamma _ { l } \\cdot \\mathsf { n o r m } \\left( \\mathsf { c o n v } _ { l } \\left( \\mathbf { x } _ { l - 1 } , \\pmb { \\theta } _ { l } \\right) \\right) + \\beta _ { l } ) _ { + } .\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 333,
333
+ 767,
334
+ 665,
335
+ 784
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "Here, additions $( + )$ and multiplications $( \\cdot )$ are element-wise, $( \\mathbf { z } ) _ { + } = \\operatorname* { m a x } \\left( \\mathbf { z } , 0 \\right)$ denotes the ReLU activation, $\\gamma _ { l } , \\beta _ { l } \\in \\mathbb { R } ^ { C _ { l } }$ are trainable parameters, norm $\\mathbf { \\rho } ( \\mathbf { z } )$ normalizes each channel of features $\\mathbf { z }$ across the population of $\\mathbf { z }$ , with $\\mu _ { \\mathbf { z } } , \\pmb { \\sigma } _ { \\mathbf { z } } ^ { 2 } \\in \\mathbb { R } ^ { C _ { l } }$ respectively containing the population mean and variance of each channel, and a small $\\epsilon$ prevents division by zero: ",
342
+ "bbox": [
343
+ 173,
344
+ 790,
345
+ 825,
346
+ 847
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "equation",
352
+ "img_path": "images/d5b447fe1f9ab3851f17298f5661a2b9783c3e1643bb592babfcaf96be7294fe.jpg",
353
+ "text": "$$\n\\mathsf { n o r m } \\left( \\mathbf { z } \\right) = \\frac { \\mathbf { z } - \\mu _ { \\mathbf { z } } } { \\sqrt { \\pmb { \\sigma } _ { \\mathbf { z } } ^ { 2 } + \\epsilon } } .\n$$",
354
+ "text_format": "latex",
355
+ "bbox": [
356
+ 421,
357
+ 853,
358
+ 576,
359
+ 886
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Additionally, convl $\\left( \\mathbf { x } _ { l - 1 } , \\pmb { \\theta } _ { l } \\right)$ computes the convolution of input features using the weight tensor $\\pmb { \\theta } _ { l } \\in \\mathbb { R } ^ { C ^ { l } \\times C ^ { l - 1 } \\times k ^ { 2 } }$ , where $k$ −is the kernel size. Specifically, FBS concerns the ",
366
+ "bbox": [
367
+ 174,
368
+ 892,
369
+ 825,
370
+ 924
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "optimization of convl $\\left( \\mathbf { x } _ { l - 1 } , \\pmb { \\theta } _ { l } \\right)$ functions, as a CNN spends the majority of its inference time in them, using $k ^ { 2 } C _ { l - 1 } C _ { l } H _ { l } W _ { l }$ multiply-accumulate operations (MACs) for the $l ^ { \\mathrm { t h } }$ layer. ",
377
+ "bbox": [
378
+ 171,
379
+ 102,
380
+ 823,
381
+ 133
382
+ ],
383
+ "page_idx": 4
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "3.2 Designing a Dynamic Layer ",
388
+ "text_level": 1,
389
+ "bbox": [
390
+ 176,
391
+ 148,
392
+ 444,
393
+ 164
394
+ ],
395
+ "page_idx": 4
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "Consider the following generalization of a layer with dynamic execution: ",
400
+ "bbox": [
401
+ 173,
402
+ 175,
403
+ 691,
404
+ 190
405
+ ],
406
+ "page_idx": 4
407
+ },
408
+ {
409
+ "type": "equation",
410
+ "img_path": "images/148fc840c3f70274c29e506d264467ff7460fb6969aec714a824a1c88c42e750.jpg",
411
+ "text": "$$\n\\hat { f } \\left( \\mathbf { x } , \\cdots \\right) = f \\left( \\mathbf { x } , \\pmb { \\theta } , \\cdots \\right) \\cdot \\pi \\left( \\mathbf { x } , \\pmb { \\phi } , \\cdots \\right) ,\n$$",
412
+ "text_format": "latex",
413
+ "bbox": [
414
+ 364,
415
+ 199,
416
+ 633,
417
+ 217
418
+ ],
419
+ "page_idx": 4
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "where $f$ and $\\pi$ respectively use weight parameters $\\pmb { \\theta }$ and $\\phi$ and may have additional inputs, and compute tensors of the same output shape, denoted by $\\mathbf { F }$ and $\\mathbf { G }$ . Intuitively, the expensive $\\mathbf { F } ^ { [ \\mathbf { i } ] }$ can always be skipped for any index i whenever the cost-effective $\\mathbf { G } ^ { [ \\mathbf { i } ] }$ evaluates to $\\mathbf { 0 }$ . Here, the superscript [i] is used to index the $\\mathbf { i } ^ { \\mathrm { t h } }$ slice of the tensor. For example, if we have features $\\mathbf { F } \\in \\mathbb { R } ^ { C \\times H \\times W }$ containing $C$ channels of $H$ -by- $W$ features, $\\mathbf { F } ^ { \\left\\lfloor c \\right\\rfloor } \\in \\mathbb { R } ^ { H \\times W }$ retrieves the $c ^ { \\mathrm { t h } }$ feature image. We can further sparsify and accelerate the layer by adding, for instance, a Lasso on $\\pi$ to the total loss, where $\\mathbb { E } _ { \\mathbf { x } } \\left[ \\mathbf { z } \\right]$ is the expectation of $\\mathbf { z }$ over $\\mathbf { x }$ : ",
424
+ "bbox": [
425
+ 173,
426
+ 224,
427
+ 825,
428
+ 324
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "equation",
434
+ "img_path": "images/c5126d08b6fc83037d16757c2f44b50932a7a5d6f4814c740d9d1edcdc3b65b9.jpg",
435
+ "text": "$$\n\\mathcal { R } \\left( \\mathbf { x } \\right) = \\mathbb { E } _ { \\mathbf { x } } \\left[ \\left. \\pi \\left( \\mathbf { x } , \\phi , \\cdot \\cdot \\cdot \\right) \\right. _ { 1 } \\right] ,\n$$",
436
+ "text_format": "latex",
437
+ "bbox": [
438
+ 395,
439
+ 333,
440
+ 602,
441
+ 348
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Despite the simplicity of this formulation, it is however very tricky to design $\\hat { f }$ properly. Under the right conditions, we can arbitrarily minimize the Lasso while maintaining the same output from the layer by scaling parameters. For example, in low-cost collaborative layers (Dong et al., 2017), $f$ and $\\pi$ are simply convolutions (with or without ReLU activation) that respectively have weights $\\pmb { \\theta }$ and $\\phi$ . Since $f$ and $\\pi$ are homogeneous functions, one can always halve $\\phi$ and double $\\pmb { \\theta }$ to decrease (4) while the network output remains the same. In other words, the optimal network must have $\\| \\phi \\| _ { \\infty } 0$ , which is infeasible in finiteprecision arithmetic. For the above reasons, Dong et al. (2017) observed that the additional loss in (4) always degrades the CNN’s task performance. Ye et al. (2018) pointed out that gradient-based training algorithms are highly inefficient in exploring such reparameterization patterns, and channel pruning methods may experience similar difficulties. Shazeer et al. (2017) avoided this limitation by finishing $\\pi$ with a softmax normalization, but (4) can no longer be used as the softmax renders the $\\ell ^ { 1 }$ -norm, which now evaluates to 1, useless. In addition, similar to sigmoid, softmax (without the cross entropy) is easily saturated, and thus may equally suffer from vanishing gradients. Many instead design $\\pi$ to produce on/off decisions and train them with reinforcement learning as discussed in Section 2. ",
448
+ "bbox": [
449
+ 173,
450
+ 358,
451
+ 825,
452
+ 582
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "3.3 Feature Boosting and Suppression with Channel Saliencies ",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 174,
462
+ 598,
463
+ 715,
464
+ 613
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "Instead of imposing sparsity on features or convolutional weight parameters (e.g. Wen et al. (2016); Alvarez & Salzmann (2016); Li et al. (2017); He et al. (2018a)), recent channel pruning methods (Liu et al., 2017; Ye et al., 2018) induce sparsity on the BN scaling factors $\\gamma _ { l }$ . Inspired by them, FBS similarly generates a channel-wise importance measure. Yet contrary to them, instead of using the constant BN scaling factors $\\gamma _ { l }$ , we predict channel importance and dynamically amplify or suppress channels with a parametric function $\\pi ( \\mathbf { x } _ { l - 1 } )$ dependent on the output from the previous layer $\\mathbf x l - 1$ . Here, we propose to replace the layer definition $f _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right)$ for each of $l \\in [ 1 , L ]$ with $\\hat { f } _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right)$ which employs dynamic channel pruning: ",
471
+ "bbox": [
472
+ 173,
473
+ 625,
474
+ 825,
475
+ 741
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "equation",
481
+ "img_path": "images/5f953ace8e7057ee36bbac655d277ec023143bca8cc253e94cefb266b1eafda4.jpg",
482
+ "text": "$$\n\\hat { f } _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) = \\left( \\pi _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) \\cdot \\left( \\mathsf { n o r m } \\left( \\mathsf { c o n v } _ { l } \\left( \\mathbf { x } _ { l - 1 } , \\pmb { \\theta } _ { l } \\right) \\right) + \\beta _ { l } \\right) \\right) _ { + } ,\n$$",
483
+ "text_format": "latex",
484
+ "bbox": [
485
+ 302,
486
+ 748,
487
+ 694,
488
+ 767
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "where a low-overhead policy $\\pi _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right)$ evaluates the pruning decisions for the computationally demanding conv $\\left( \\mathbf { x } _ { l - 1 } , \\pmb { \\theta } _ { l } \\right)$ : ",
495
+ "bbox": [
496
+ 173,
497
+ 776,
498
+ 821,
499
+ 806
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "equation",
505
+ "img_path": "images/d4391126f318377c5c691c52cdf4a62e404586d778f0d6d9d430f78feae54441.jpg",
506
+ "text": "$$\n\\pi _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) = \\mathsf { w t a } _ { \\lceil d C _ { l } \\rceil } \\left( g _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) \\right) .\n$$",
507
+ "text_format": "latex",
508
+ "bbox": [
509
+ 385,
510
+ 813,
511
+ 612,
512
+ 830
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Here, ${ \\mathsf { w t a } } _ { k } ( { \\mathbf { z } } )$ is a $k$ -winners-take-all function, i.e. it returns a tensor identical to $\\mathbf { z }$ , except that we zero out entries in $\\mathbf { z }$ that are smaller than the $k$ largest entries in absolute magnitude. In other words, $\\mathsf { w t a } _ { \\lceil d C _ { l } \\rceil } \\bigl ( g _ { l } \\bigl ( \\mathbf { x } _ { l - 1 } \\bigr ) \\bigr )$ provides a pruning strategy that computes only $\\lceil d C _ { l } \\rceil$ most salient channels predicted by $g _ { l } ( \\mathbf { x } _ { l - 1 } )$ , and suppresses the remaining channels with zeros. In Section 3.4, we provide a detailed explanation of how we design a cheap $g _ { l } ( \\mathbf { x } _ { l - 1 } )$ that learns to predict channel saliencies. ",
519
+ "bbox": [
520
+ 173,
521
+ 838,
522
+ 823,
523
+ 924
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "It is notable that our strategy prunes $C _ { l } - \\lceil d C _ { l } \\rceil$ least salient output channels from $l ^ { \\mathrm { t h } }$ layer, where the density $d \\in ] 0 , 1 ]$ can be varied to sweep the trade-off relationship between performance and accuracy. Moreover, pruned channels contain all-zero values. This allows the subsequent $( l + 1 ) ^ { \\mathrm { t h } }$ layer to trivially make use of input-side sparsity, since all-zero features can be safely skipped even for zero-padded layers. Because all convolutions can exploit both input- and output-side sparsity, the speed-up gained from pruning is quadratic with respect to the pruning ratio. For instance, dynamically pruning half of the channels in all layers gives rise to a dynamic CNN that uses approximately $\\frac { 1 } { 4 }$ of the original MACs. ",
530
+ "bbox": [
531
+ 174,
532
+ 102,
533
+ 823,
534
+ 215
535
+ ],
536
+ "page_idx": 5
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "Theoretically, FBS does not introduce the reparameterization discussed in Section 3.2. By batch normalizing the convolution output, the convolution kernel $\\theta _ { l }$ is invariant to scaling. Computationally, it is more efficient to train. Many alternative methods use nondifferentiable $\\pi$ functions that produce on/off decisions. In general, DNNs with these policy functions are incompatible with SGD, and resort to reinforcement learning for training. In contrast, (6) allows end-to-end training, as wta is a piecewise differentiable and continuous function like ReLU. Srivastava et al. (2015) suggested that in general, a network is easier and faster to train for complex tasks and less prone to catastrophic forgetting, if it uses functions such as wta that promote local competition between many subnetworks. ",
541
+ "bbox": [
542
+ 174,
543
+ 222,
544
+ 823,
545
+ 347
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "3.4 Learning to Predict Channel Saliencies ",
552
+ "text_level": 1,
553
+ "bbox": [
554
+ 174,
555
+ 363,
556
+ 557,
557
+ 377
558
+ ],
559
+ "page_idx": 5
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "This section explains the design of the channel saliency predictor $g _ { l } ( \\mathbf { x } _ { l - 1 } )$ . To avoid significant computational cost in $g _ { l }$ , we subsample $\\mathbf x _ { l - 1 }$ by reducing the spatial dimensions of each channel to a scalar using the following function $\\mathsf { s s } : \\mathbb { R } ^ { C \\times H \\times W } \\to \\mathbb { R } ^ { C }$ : ",
564
+ "bbox": [
565
+ 174,
566
+ 388,
567
+ 825,
568
+ 431
569
+ ],
570
+ "page_idx": 5
571
+ },
572
+ {
573
+ "type": "equation",
574
+ "img_path": "images/2845eb3bcac471f9806f1825040737099fae7e499736be72550837824ca65e14.jpg",
575
+ "text": "$$\n\\mathfrak { s s } \\left( \\mathbf { x } _ { l - 1 } \\right) = \\frac { 1 } { H W } \\left[ \\mathfrak { s } \\left( \\mathbf { x } _ { l - 1 } ^ { [ 1 ] } \\right) \\ \\mathfrak { s } \\left( \\mathbf { x } _ { l - 1 } ^ { [ 2 ] } \\right) \\ \\cdot \\ \\cdot \\ \\mathfrak { s } \\left( \\mathbf { x } _ { l - 1 } ^ { [ C ] } \\right) \\right] ,\n$$",
576
+ "text_format": "latex",
577
+ "bbox": [
578
+ 316,
579
+ 436,
580
+ 679,
581
+ 465
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "where $\\mathsf { s } \\left( \\mathbf { x } _ { l - 1 } ^ { [ c ] } \\right)$ reduces the $c ^ { \\mathrm { t h } }$ channel of $\\mathbf { z }$ to a scalar using, for instance, the $\\ell ^ { 1 }$ -norm $\\| \\mathbf { x } _ { l - 1 } ^ { [ c ] } \\| _ { 1 }$ , $\\ell ^ { 2 }$ -norm, $\\ell ^ { \\infty }$ -norm, or the variance of $\\mathbf { x } _ { l - 1 } ^ { [ c ] }$ . The results in Section 4 use the $\\ell ^ { 1 }$ - − − norm by default, which is equivalent to global average pooling for the ReLU activated $\\mathbf x l - 1$ . We then design $g _ { l } ( \\mathbf { x } _ { l - 1 } )$ − to predict channel saliencies with a fully connected layer following −the subsampled activations $\\mathsf { s s } \\left( \\mathbf { x } _ { l - 1 } \\right)$ , where $\\phi _ { l } \\in \\mathbb { R } ^ { C ^ { l } \\times C ^ { l - 1 } }$ is the weight tensor of the layer: ",
588
+ "bbox": [
589
+ 174,
590
+ 470,
591
+ 825,
592
+ 555
593
+ ],
594
+ "page_idx": 5
595
+ },
596
+ {
597
+ "type": "equation",
598
+ "img_path": "images/0c241dfa0c8176e014e3a262478c7cb963c59d80d082bba0a1654dcd3913636d.jpg",
599
+ "text": "$$\ng _ { l } \\left( \\mathbf { x } _ { l - 1 } \\right) = \\left( \\mathsf { s s } \\left( \\mathbf { x } _ { l - 1 } \\right) \\phi _ { l } + \\pmb { \\rho } _ { l } \\right) _ { + } .\n$$",
600
+ "text_format": "latex",
601
+ "bbox": [
602
+ 385,
603
+ 560,
604
+ 612,
605
+ 578
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "We generally initialize $\\rho _ { l }$ with $1$ and apply He et al. (2015)’s initialization to $\\phi _ { l }$ . Similar to how Liu et al. (2017) and Ye et al. (2018) induced sparsity in the BN scaling factors, we regularize all layers with the Lasso on $g _ { l } ( \\mathbf { x } _ { l - 1 } )$ : $\\begin{array} { r l } { { \\lambda \\sum _ { l = 1 } ^ { L } \\mathbb { E } _ { \\mathbf { x } } [ g _ { l } ( \\mathbf { x } _ { l - 1 } ) _ { 1 } ] } \\quad } & { { } } \\end{array}$ in the total loss, where $\\lambda = 1 0 ^ { - 8 }$ in our experiments. ",
612
+ "bbox": [
613
+ 174,
614
+ 583,
615
+ 825,
616
+ 643
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "4 Experiments ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 176,
626
+ 662,
627
+ 333,
628
+ 679
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "We ran extensive experiments on CIFAR-10 (Krizhevsky et al., 2014) and the ImageNet ILSVRC2012 (Deng et al., 2009), two popular image classification datasets. We use MCifarNet (Zhao et al., 2018), a custom 8-layer CNN for CIFAR-10 (see Appendix A for its structure), using only 1.3 M parameters with 91.37% and 99.67% top-1 and top-5 accuracies respectively. M-CifarNet is much smaller than a VGG-16 on CIFAR-10 (Liu et al., 2017), which uses $2 0 \\mathrm { M }$ parameters and only $2 . 2 9 \\%$ more accurate. Because of its compactness, our CNN is more challenging to accelerate. By faithfully reimplementing Network Slimming (NS) (Liu et al., 2017), we closely compare FBS with NS under various speedup constraints. For ILSVRC2012, we augment two popular CNN variants, ResNet-18 (He et al., 2016) and VGG-16 (Simonyan & Zisserman, 2015), and provide detailed accuracy/MACs trade-off comparison against recent structured pruning and dynamic execution methods. ",
635
+ "bbox": [
636
+ 174,
637
+ 693,
638
+ 825,
639
+ 848
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "Our method begins by first replacing all convolutional layer computations with (5), and initializing the new convolutional kernels with previous parameters. Initially, we do not suppress any channel computations by using density $d = 1$ in (6) and fine-tune the resulting network. For fair comparison against NS, we then follow Liu et al. (2017) by iteratively decrementing the overall density $d$ of the network by 10% in each step, and thus gradually using fewer channels to sweep the accuracy/performance trade-off. The difference is that NS prunes channels by ranking globally, while FBS prunes around $1 - d$ of each layer. ",
646
+ "bbox": [
647
+ 174,
648
+ 854,
649
+ 823,
650
+ 924
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "",
657
+ "bbox": [
658
+ 169,
659
+ 103,
660
+ 823,
661
+ 132
662
+ ],
663
+ "page_idx": 6
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "4.1 CIFAR-10 ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 174,
671
+ 150,
672
+ 297,
673
+ 164
674
+ ],
675
+ "page_idx": 6
676
+ },
677
+ {
678
+ "type": "image",
679
+ "img_path": "images/bf0b69083c0580f998d0a893355ef98d28a82ea3f6269d64ac066bec0980aa44.jpg",
680
+ "image_caption": [
681
+ "Figure 3: Experimental results on M-CifarNet. We compare in (a) the accuracy/MACs trade-off between FBS, NS and FBS $^ +$ NS. The baseline is emphasized by the circle $\\bigcirc$ . The heat map in (b) reveals the individual probability of skipping a channel for each channel ( $x$ -axis), when an image of a category ( $y$ -axis) is shown to the network with $d = 1$ . "
682
+ ],
683
+ "image_footnote": [],
684
+ "bbox": [
685
+ 204,
686
+ 185,
687
+ 745,
688
+ 337
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "By respectively applying NS and FBS to our CIFAR-10 classifier and incrementally increasing sparsity, we produce the trade-off relationships between number of operations (measured in MACs) and the classification accuracy as shown in Figure 3a. FBS clearly surpasses NS in its ability to retain the task accuracy under an increasingly stringent computational budget. Besides comparing FBS against NS, we are interested in combining both methods, which demonstrates the effectiveness of FBS if the model is already less redundant, i.e. it cannot be pruned further using NS without degrading the accuracy by more than $1 \\%$ . The composite method (NS+FBS) is shown to successfully regain most of the lost accuracy due to NS, producing a trade-off curve closely matching FBS. It is notable that under the same $9 0 . 5 0 \\%$ accuracy constraints, FBS, NS+FBS, and NS respectively achieve $3 . 9 3 \\times$ , $3 . 2 2 \\times$ , and $1 . 1 9 \\times$ speed-up ratios. Conversely for a $2 \\times$ speed-up target, they respectively produce models with accuracies not lower than $9 1 . 5 5 \\%$ , $9 0 . 9 0 \\%$ and $8 7 . 5 4 \\%$ . ",
695
+ "bbox": [
696
+ 174,
697
+ 412,
698
+ 825,
699
+ 579
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Figure 3b demonstrates that our FBS can effectively learn to amplify and suppress channels when dealing with different input images. The 8 heat maps respectively represent the channel skipping probabilities of the 8 convolutional layers. The brightness of the pixel at location $( x , y )$ denotes the probability of skipping the $x ^ { \\mathrm { t h } }$ channel when looking at an image of the $y ^ { \\mathrm { t h } }$ category. The heat maps verify our belief that the auxiliary network learned to predict which channels specialize to which features, as channels may have drastically distinct probabilites of being used for images of different categories. The model here is a M-CifarNet using FBS with $d = 0 . 5$ , which has a top-1 accuracy of $9 0 . 5 9 \\%$ (top-5 $9 9 . 6 5 \\%$ ). Moreover, channels in the heat maps are sorted so the channels that are on average least frequently evaluated are placed on the left, and channels shaded in stripes are never evaluated. The network in Figure 3b is not only approximately $4 \\times$ faster than the original, by removing the unused channels, we also reduce the number of weights by 2.37 $\\times$ . This reveals that FBS naturally subsumes channel pruning strategies such as NS, as we can simply prune away channels that are skipped regardless of the input. It is notable that even though we specified a universal density $d$ , FBS learned to adjust its dynamicity across all layers, and prune different ratios of channels from the convolutional layers. ",
706
+ "bbox": [
707
+ 174,
708
+ 587,
709
+ 825,
710
+ 809
711
+ ],
712
+ "page_idx": 6
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "4.2 ImageNet ILSVRC2012 Classification ",
717
+ "text_level": 1,
718
+ "bbox": [
719
+ 176,
720
+ 827,
721
+ 529,
722
+ 842
723
+ ],
724
+ "page_idx": 6
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "By applying FBS and NS respectively to ResNet-18, we saw that the ILSVRC2012 validation accuracy of FBS consistently outperforms NS under different speed-up constraints (see Appendix B for the implementation details and trade-off curves). For instance, at $d = 0 . 7$ , it utilizes only 1.12 G MACs (1.62 $\\times$ fewer) to achieve a top-1 error rate of $3 1 . 5 4 \\%$ , while NS requires 1.51 G MACs (1.21 $\\times$ fewer) for a similar error rate of $3 1 . 7 0 \\%$ . When compared across recent dynamic execution methods examined in Table 1, FBS demonstrates simultaneously the highest possible speed-up and the lowest error rates. It is notable that the baseline accuracies for FBS refer to a network that has been augmented with the auxiliary layers featuring FBS but suppress no channels, i.e. $d = 1$ . We found that this method brings immediate accuracy improvements, an increase of $1 . 7 3 \\%$ in top-1 and $0 . 4 6 \\%$ in top-5 accuracies, to the baseline network, which is in line with our observation on M-CifarNet. ",
729
+ "bbox": [
730
+ 176,
731
+ 854,
732
+ 823,
733
+ 924
734
+ ],
735
+ "page_idx": 6
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "",
740
+ "bbox": [
741
+ 174,
742
+ 103,
743
+ 823,
744
+ 188
745
+ ],
746
+ "page_idx": 7
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "In Table 2, we compare different structured pruning and dynamic execution methods to FBS for VGG-16 (see Appendix B for the setup). At a speed-up of 3.01 $\\times$ , FBS shows a minimal increase of $0 . 4 4 \\%$ and $0 . 0 4 \\%$ in top-1 and top-5 errors respectively. At $5 . 2 3 \\times$ speed-up, it only degrades the top-1 error by $1 . 0 8 \\%$ and the top-5 by $0 . 5 9 \\%$ . ",
751
+ "bbox": [
752
+ 174,
753
+ 194,
754
+ 825,
755
+ 251
756
+ ],
757
+ "page_idx": 7
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Not only does FBS use much fewer MACs, it also demonstrates significant reductions in bandwidth and memory requirements. In Table 3, we observe a large reduction in the number of memory accesses in single image inference as we simply do not access suppressed weights and activations. Because these memory operations are often costly DRAM accesses, minimizing them leads to power-savings. Table 3 further reveals that in diverse application scenarios such as low-end and cloud environments, the peak memory usages by the optimized models are much smaller than the originals, which in general improves cache utilization. ",
762
+ "bbox": [
763
+ 173,
764
+ 257,
765
+ 825,
766
+ 354
767
+ ],
768
+ "page_idx": 7
769
+ },
770
+ {
771
+ "type": "table",
772
+ "img_path": "images/11ed0f7e7bff5d8e71385b7dd1e3c28cd4c86b19dc585dbb84be567cd66d8696.jpg",
773
+ "table_caption": [
774
+ "Table 1: Comparisons of error rates of the baseline and accelerated ResNet-18 models. "
775
+ ],
776
+ "table_footnote": [],
777
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Dynamic</td><td colspan=\"2\">Baseline</td><td colspan=\"2\">Accelerated</td><td rowspan=\"2\">MAC saving</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Soft Filter Pruning (He et al., 2018a)</td><td></td><td>29.72</td><td>10.37</td><td>32.90</td><td>12.22</td><td>1.72×</td></tr><tr><td>Network Slimming (Liu et al. (20l7),our implementation)</td><td></td><td>31.02</td><td>11.32</td><td>32.79</td><td>12.61</td><td>1.39×</td></tr><tr><td>Discrimination-aware Channel Pruning (Zhuang et al., 2018)</td><td></td><td>30.36</td><td>11.02</td><td>32.65</td><td>12.40</td><td>1.89×</td></tr><tr><td>Low-cost Collaborative Layers (Dong et al., 2017)</td><td></td><td>30.02</td><td>10.76</td><td>33.67</td><td>13.06</td><td>1.53×</td></tr><tr><td>Channel Gating Neural Networks (Hua et al., 2018)</td><td>广</td><td>30.98</td><td>11.16</td><td>32.60</td><td>12.19</td><td>1.61×</td></tr><tr><td>Feature Boosting and Suppression (FBS)</td><td>√</td><td>29.29</td><td>10.32</td><td>31.83</td><td>11.78</td><td>1.98×</td></tr></table>",
778
+ "bbox": [
779
+ 174,
780
+ 367,
781
+ 833,
782
+ 472
783
+ ],
784
+ "page_idx": 7
785
+ },
786
+ {
787
+ "type": "table",
788
+ "img_path": "images/a30499804c9aaa32a945e132031566db4e3c504b15a6291e42256c2dab0a4226.jpg",
789
+ "table_caption": [
790
+ "Table 2: Comparisons of top-5 error rate increases for VGG-16 on ILSVRC2012 validation set under 3 $\\times$ , 4 $\\times$ and $5 \\times$ speed-up constraints. The baseline has a $1 0 . 1 \\%$ top-5 error rate. Results from He et al. (2017) only show numbers with one digit after the decimal point. "
791
+ ],
792
+ "table_footnote": [],
793
+ "table_body": "<table><tr><td>Method</td><td>Dynamic</td><td>△ top-5 errors 3× 4×</td><td></td><td>(%) 5×</td></tr><tr><td>Filter Pruning (Li et al. (20l7),reproduced by He et al. (2017))</td><td rowspan=\"10\"></td><td></td><td>8.6</td><td>14.6</td></tr><tr><td>Perforated CNNs (Figurnov et al., 2016)</td><td>3.7</td><td>5.5</td><td></td></tr><tr><td>Network Slimming (Liu et al. (20i7),our implementation)</td><td>1.37</td><td>3.26</td><td>5.18</td></tr><tr><td>Runtime Neural Pruning (Lin et al., 2017)</td><td>2.32</td><td>3.23</td><td>3.58</td></tr><tr><td>Channel Pruning (He et al., 2017)</td><td>0.0</td><td>1.0</td><td>1.7</td></tr><tr><td>AutoML for Model Compression (He et al., 2018b)</td><td></td><td></td><td>1.4</td></tr><tr><td>ThiNet-Conv (Luo et al., 2017)</td><td>0.37</td><td></td><td></td></tr><tr><td>Feature Boosting and Suppression (FBS)</td><td></td><td>0.04 0.52</td><td>0.59</td></tr></table>",
794
+ "bbox": [
795
+ 207,
796
+ 497,
797
+ 789,
798
+ 622
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "table",
804
+ "img_path": "images/e731b655f69293efe4aee9b4b2ee8c3e1af8fa1beceecf40d28eebd95f16b3fa.jpg",
805
+ "table_caption": [],
806
+ "table_footnote": [],
807
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Total Memory Accesses</td><td colspan=\"2\">PeakMemory Usage</td></tr><tr><td>Weights</td><td>Activations</td><td>Edge (1 image)</td><td>Cloud (128 images)</td></tr><tr><td>VGG-16</td><td>56.2MB</td><td>86.5MB</td><td>24.6MB</td><td>3.09GB</td></tr><tr><td>VGG-16 3×</td><td>23.9 MB (2.35x)</td><td>40.8MB (2.12×)</td><td>9.97MB (2.47×)</td><td>1.24 GB (2.47×)</td></tr><tr><td>ResNet-18</td><td>44.6MB</td><td>17.8MB</td><td>9.19MB</td><td>0.47 GB</td></tr><tr><td>ResNet-18 2×</td><td>20.5MB (2.18×)</td><td>12.3 MB (1.45×)</td><td>4.68MB (1.96x)</td><td>0.31GB (1.49×)</td></tr></table>",
808
+ "bbox": [
809
+ 217,
810
+ 676,
811
+ 779,
812
+ 763
813
+ ],
814
+ "page_idx": 7
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "Table 3: Comparisons of the memory accesses and peak memory usage of the ILSVRC2012 classifiers with FBS respectively under $3 \\times$ and $2 \\times$ inference speed-ups. The Weights and Activations columns respectively show the total amount of weight and activation accesses required by all convolutions for a single image inference. The Peak Memory Usage columns show the peak memory usages with different batch sizes. ",
819
+ "bbox": [
820
+ 174,
821
+ 765,
822
+ 825,
823
+ 834
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "5 Conclusion ",
830
+ "text_level": 1,
831
+ "bbox": [
832
+ 174,
833
+ 863,
834
+ 320,
835
+ 880
836
+ ],
837
+ "page_idx": 7
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "In summary, we proposed feature boosting and suppression that helps CNNs to achieve significant reductions in the compute required while maintaining high accuracies. FBS fully preserves the capabilities of CNNs and predictively boosts important channels to help the accelerated models retain high accuracies. We demonstrated that FBS achieves around 2 $\\times$ and $5 \\times$ savings in computation respectively on ResNet-18 and VGG-16 within $0 . 6 \\%$ loss of top-5 accuracy. Under the same performance constraints, the accuracy gained by FBS surpasses all recent structured pruning and dynamic execution methods examined in this paper. In addition, it can serve as an off-the-shelf technique for accelerating many popular CNN networks and the fine-tuning process is unified in the traditional SGD which requires no algorithmic changes in training. Finally, the implementation of FBS and the optimized networks are fully open source and released to the public1. ",
842
+ "bbox": [
843
+ 173,
844
+ 895,
845
+ 823,
846
+ 924
847
+ ],
848
+ "page_idx": 7
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "",
853
+ "bbox": [
854
+ 174,
855
+ 103,
856
+ 823,
857
+ 228
858
+ ],
859
+ "page_idx": 8
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Acknowledgements ",
864
+ "text_level": 1,
865
+ "bbox": [
866
+ 176,
867
+ 250,
868
+ 370,
869
+ 265
870
+ ],
871
+ "page_idx": 8
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "This work is supported in part by the National Key R&D Program of China (No. \n2018YFB1004804), the National Natural Science Foundation of China (No. 61806192). \nWe thank EPSRC for providing Yiren Zhao his doctoral scholarship. ",
876
+ "bbox": [
877
+ 176,
878
+ 281,
879
+ 823,
880
+ 323
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "References ",
887
+ "text_level": 1,
888
+ "bbox": [
889
+ 176,
890
+ 343,
891
+ 289,
892
+ 359
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Amjad Almahairi, Nicolas Ballas, Tim Cooijmans, Yin Zheng, Hugo Larochelle, and Aaron Courville. Dynamic capacity networks. In Proceedings of the 33rd International Conference on International Conference on Machine Learning (ICML), pp. 2549–2558, 2016. ",
899
+ "bbox": [
900
+ 176,
901
+ 367,
902
+ 821,
903
+ 410
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Jose M Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems (NIPS), pp. 2270–2278. 2016. ",
910
+ "bbox": [
911
+ 176,
912
+ 420,
913
+ 820,
914
+ 463
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Tolga Bolukbasi, Joseph Wang, Ofer Dekel, and Venkatesh Saligrama. Adaptive neural networks for efficient inference. In Proceedings of the 34th International Conference on Machine Learning (ICML), pp. 527–536, 2017. ",
921
+ "bbox": [
922
+ 176,
923
+ 472,
924
+ 821,
925
+ 516
926
+ ],
927
+ "page_idx": 8
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, 2009. ",
932
+ "bbox": [
933
+ 176,
934
+ 525,
935
+ 821,
936
+ 568
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Xuanyi Dong, Junshi Huang, Yi Yang, and Shuicheng Yan. More is less: A more complicated network with less inference complexity. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
943
+ "bbox": [
944
+ 176,
945
+ 578,
946
+ 825,
947
+ 621
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Michael Figurnov, Maxwell D. Collins, Yukun Zhu, Li Zhang, Jonathan Huang, Dmitry Vetrov, and Ruslan Salakhutdinov. Spatially adaptive computation time for residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
954
+ "bbox": [
955
+ 174,
956
+ 631,
957
+ 825,
958
+ 688
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Mikhail Figurnov, Aizhan Ibraimova, Dmitry P Vetrov, and Pushmeet Kohli. PerforatedCNNs: Acceleration through elimination of redundant convolutions. In Advances in Neural Information Processing Systems (NIPS), pp. 947–955, 2016. ",
965
+ "bbox": [
966
+ 176,
967
+ 696,
968
+ 823,
969
+ 741
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient DNNs. In Advances in Neural Information Processing Systems (NIPS), 2016. ",
976
+ "bbox": [
977
+ 174,
978
+ 750,
979
+ 821,
980
+ 780
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In Computer Architecture (ISCA), 2016 ACM/IEEE 43rd Annual International Symposium on, pp. 243–254. IEEE, 2016. ",
987
+ "bbox": [
988
+ 176,
989
+ 789,
990
+ 823,
991
+ 845
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Babak Hassibi, David G. Stork, and Gregory Wolff. Optimal brain surgeon: Extensions and performance comparisons. In J. D. Cowan, G. Tesauro, and J. Alspector (eds.), Advances in Neural Information Processing Systems (NIPS), pp. 263–270. 1994. ",
998
+ "bbox": [
999
+ 176,
1000
+ 856,
1001
+ 825,
1002
+ 898
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), ICCV ’15, pp. 1026– 1034, Washington, DC, USA, 2015. IEEE Computer Society. ISBN 978-1-4673-8391-2. doi: 10.1109/ICCV.2015.123. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 103,
1012
+ 825,
1013
+ 172
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
1020
+ "bbox": [
1021
+ 176,
1022
+ 183,
1023
+ 823,
1024
+ 224
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Yang He, Guoliang Kang, Xuanyi Dong, Yanwei Fu, and Yi Yang. Soft filter pruning for accelerating deep convolutional neural networks. In International Joint Conference on Artificial Intelligence (IJCAI), pp. 2234–2240, 2018a. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 234,
1034
+ 821,
1035
+ 279
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. IEEE International Conference on Computer Vision (ICCV), pp. 1398–1406, 2017. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 286,
1045
+ 823,
1046
+ 329
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. AMC: AutoML for model compression and acceleration on mobile devices. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 784–800, 2018b. ",
1053
+ "bbox": [
1054
+ 178,
1055
+ 338,
1056
+ 823,
1057
+ 382
1058
+ ],
1059
+ "page_idx": 9
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Weizhe Hua, Christopher De Sa, Zhiru Zhang, and G. Edward Suh. Channel gating neural networks. CoRR, abs/1805.12549, 2018. URL http://arxiv.org/abs/1805.12549. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 390,
1067
+ 823,
1068
+ 421
1069
+ ],
1070
+ "page_idx": 9
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "J. Huang, V. Rathod, C. Sun, M. Zhu, A. Korattikara, A. Fathi, I. Fischer, Z. Wojna, Y. Song, S. Guadarrama, and K. Murphy. Speed/accuracy trade-offs for modern convolutional object detectors. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3296–3297, July 2017. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 429,
1078
+ 825,
1079
+ 487
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Qiangui Huang, Kevin Zhou, Suya You, and Ulrich Neumann. Learning to prune filters in convolutional neural networks. In IEEE Winter Conference on Computer Vision. 2018. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 494,
1089
+ 820,
1090
+ 525
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning (ICML), pp. 448–456, 2015. ",
1097
+ "bbox": [
1098
+ 176,
1099
+ 534,
1100
+ 823,
1101
+ 577
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2012. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 585,
1111
+ 823,
1112
+ 628
1113
+ ],
1114
+ "page_idx": 9
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The CIFAR-10 and CIFAR-100 datasets. http://www.cs.toronto.edu/ kriz/cifar.html, 2014. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 637,
1122
+ 821,
1123
+ 667
1124
+ ],
1125
+ "page_idx": 9
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In Advances in Neural Information Processing Systems (NIPS), pp. 598–605. 1990. ",
1130
+ "bbox": [
1131
+ 176,
1132
+ 675,
1133
+ 825,
1134
+ 705
1135
+ ],
1136
+ "page_idx": 9
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. 2017. ",
1141
+ "bbox": [
1142
+ 169,
1143
+ 714,
1144
+ 825,
1145
+ 743
1146
+ ],
1147
+ "page_idx": 9
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In Advances in Neural Information Processing Systems (NIPS), pp. 2181–2191. 2017. ",
1152
+ "bbox": [
1153
+ 173,
1154
+ 752,
1155
+ 823,
1156
+ 782
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. 2018. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 791,
1166
+ 823,
1167
+ 820
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In International Conference on Computer Vision (ICCV), 2017. ",
1174
+ "bbox": [
1175
+ 178,
1176
+ 829,
1177
+ 823,
1178
+ 872
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3431–3440, June 2015. ",
1185
+ "bbox": [
1186
+ 176,
1187
+ 881,
1188
+ 823,
1189
+ 924
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. ThiNet: A filter level pruning method for deep neural network compression. In ICCV, pp. 5058–5066, 2017. ",
1196
+ "bbox": [
1197
+ 171,
1198
+ 103,
1199
+ 823,
1200
+ 132
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Augustus Odena, Dieterich Lawson, and Christopher Olah. Changing model behavior at test-time using reinforcement learning. 2017. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 146,
1210
+ 821,
1211
+ 176
1212
+ ],
1213
+ "page_idx": 10
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Angshuman Parashar, Minsoo Rhu, Anurag Mukkara, Antonio Puglielli, Rangharajan Venkatesan, Brucek Khailany, Joel Emer, Stephen W Keckler, and William J Dally. Scnn: An accelerator for compressed-sparse convolutional neural networks. In ACM SIGARCH Computer Architecture News, volume 45, pp. 27–40. ACM, 2017. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 189,
1221
+ 826,
1222
+ 246
1223
+ ],
1224
+ "page_idx": 10
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Mengye Ren, Andrei Pokrovsky, Bin Yang, and Raquel Urtasun. SBNet: Sparse blocks network for fast inference. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
1229
+ "bbox": [
1230
+ 173,
1231
+ 261,
1232
+ 825,
1233
+ 303
1234
+ ],
1235
+ "page_idx": 10
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "S. Ren, K. He, R. Girshick, and J. Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(6):1137–1149, June 2017. ",
1240
+ "bbox": [
1241
+ 174,
1242
+ 318,
1243
+ 823,
1244
+ 361
1245
+ ],
1246
+ "page_idx": 10
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-ofexperts layer. 2017. ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 375,
1254
+ 825,
1255
+ 417
1256
+ ],
1257
+ "page_idx": 10
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. ",
1262
+ "bbox": [
1263
+ 173,
1264
+ 431,
1265
+ 825,
1266
+ 474
1267
+ ],
1268
+ "page_idx": 10
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Rupesh Kumar Srivastava, Jonathan Masci, Faustino J. Gomez, and J¨urgen Schmidhuber. Understanding locally competitive networks. In International Conference on Learning Representations (ICLR), 2015. ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 488,
1276
+ 823,
1277
+ 531
1278
+ ],
1279
+ "page_idx": 10
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems (NIPS), pp. 2074–2082. 2016. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 545,
1287
+ 825,
1288
+ 588
1289
+ ],
1290
+ "page_idx": 10
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Zuxuan Wu, Tushar Nagarajan, Abhishek Kumar, Steven Rennie, Larry S. Davis, Kristen Grauman, and Rogerio Feris. BlockDrop: Dynamic inference paths in residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
1295
+ "bbox": [
1296
+ 174,
1297
+ 603,
1298
+ 825,
1299
+ 659
1300
+ ],
1301
+ "page_idx": 10
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Jianbo Ye, Xin Lu, Zhe L. Lin, and James Z. Wang. Rethinking the smaller-norm-lessinformative assumption in channel pruning of convolution layers. In International Conference on Learning Representations (ICLR), 2018. ",
1306
+ "bbox": [
1307
+ 174,
1308
+ 674,
1309
+ 825,
1310
+ 717
1311
+ ],
1312
+ "page_idx": 10
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Yiren Zhao, Xitong Gao, Robert Mullins, and Chengzhong Xu. Mayo: A framework for autogenerating hardware friendly deep neural networks. In Proceedings of 2nd International Workshop on Embedded and Mobile Deep Learning, EMDL ’18. ACM, 2018. doi: 10.1145/ 3212725.3212726. URL http://doi.acm.org/10.1145/3212725.3212726. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 731,
1320
+ 825,
1321
+ 787
1322
+ ],
1323
+ "page_idx": 10
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Hao Zhou, Jose M. Alvarez, and Fatih Porikli. Less is more: Towards compact cnns. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (eds.), Computer Vision – ECCV 2016, pp. 662–677, Cham, 2016. Springer International Publishing. ISBN 978-3-319- 46493-0. ",
1328
+ "bbox": [
1329
+ 174,
1330
+ 801,
1331
+ 825,
1332
+ 858
1333
+ ],
1334
+ "page_idx": 10
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, and Jinhui Zhu. Discrimination-aware channel pruning for deep neural networks. In Advances in Neural Information Processing Systems (NIPS). 2018. ",
1339
+ "bbox": [
1340
+ 174,
1341
+ 872,
1342
+ 825,
1343
+ 916
1344
+ ],
1345
+ "page_idx": 10
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "A Details of M-CifarNet on CIFAR-10 ",
1350
+ "text_level": 1,
1351
+ "bbox": [
1352
+ 176,
1353
+ 101,
1354
+ 578,
1355
+ 118
1356
+ ],
1357
+ "page_idx": 11
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "For the CIFAR-10 classification task, we use M-CifarNet, a custom designed CNN, with less than 1.30 M parameters and takes 174 M MACs to perform inference for a 32-by-32 RGB image. The architecture is illustrated in Table 4, where all convolutional layers use $3 \\times 3$ kernels, the Shape column shows the shapes of each layer’s features, and pool7 is a global average pooling layer. ",
1362
+ "bbox": [
1363
+ 174,
1364
+ 150,
1365
+ 825,
1366
+ 219
1367
+ ],
1368
+ "page_idx": 11
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "We trained M-CifarNet (see Appendix A) with a 0.01 learning rate and a 256 batch size. We reduced the learning rate by a factor of $1 0 \\times$ for every 100 epochs. To compare FBS against NS fairly, every model with a new target MACs budget were consecutively initialized with the previous model, and trained for a maximum of 300 epochs, which is enough for all models to converge to the best obtainable accuracies. For NS, we follow Liu et al. (2017) and start training with an $\\ell ^ { 1 }$ -norm sparsity regularization weighted by $1 0 ^ { - 5 }$ on the BN scaling factors. We then prune at 150 epochs and fine-tune the resulting network without the sparsity regularization. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 227,
1376
+ 823,
1377
+ 338
1378
+ ],
1379
+ "page_idx": 11
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "We additionally employed image augmentation procedures from Krizhevsky et al. (2012) to preprocess each training example. Each CIFAR-10 example was randomly horizontal flipped and slightly perturbed in the brightness, saturation and hue. ",
1384
+ "bbox": [
1385
+ 176,
1386
+ 345,
1387
+ 823,
1388
+ 387
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Table 4 additionally provides further comparisons of layer-wise compute costs between FBS, NS, and the composition of the two methods (NS $^ +$ FBS). It is notable that the FBS column has two different output channel counts, where the former is the number of computed channels for each inference, and the latter is the number of channels remaining in the layer after removing the unused channels. ",
1395
+ "bbox": [
1396
+ 176,
1397
+ 395,
1398
+ 823,
1399
+ 464
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "table",
1405
+ "img_path": "images/49f0d2ac37b6f0ae27c27e2d86e51da64f151d9a24b34197f9ae4f56785fa80d.jpg",
1406
+ "table_caption": [
1407
+ "Table 4: The network structure of M-CifarNet for CIFAR-10 classification. In addition, we provide a detailed per-layer MACs comparison between FBS, NS, and the composition of them (NS+FBS). We minimize the models generated by the three methods while maintaining a classification accuracy of at least $9 0 . 5 \\%$ . "
1408
+ ],
1409
+ "table_footnote": [],
1410
+ "table_body": "<table><tr><td>Layer</td><td>Shape</td><td colspan=\"4\">Number of MACs (Output Channels) Original NS FBS</td></tr><tr><td>convo</td><td>30 × 30</td><td></td><td></td><td>893k</td><td>NS+FBS</td></tr><tr><td>conv1</td><td>30 × 30</td><td>1.5 M (64)</td><td>1.3M (52) 27.0M (64)</td><td>(32/62) 8.4M (32/42)</td><td>860k (32) 10.2M (39)</td></tr><tr><td>conv2</td><td>15 ×15</td><td>33.2M (64)</td><td></td><td>4.2M</td><td>5.9M</td></tr><tr><td></td><td>15×15</td><td>16.6M (128)</td><td>15.9 M (123)</td><td>(64/67) 8.3M</td><td>(74 11.6 M</td></tr><tr><td>conv3</td><td>15 ×15</td><td>33.2M (128)</td><td>31.9M (128)</td><td>(64/79)</td><td>(77)</td></tr><tr><td>conv4 conv5</td><td>8×8</td><td>33.2M (128) 14.1M</td><td>33.1M (128) 13.4M (182)</td><td>8.3M (64/83)</td><td>12.1M (77)</td></tr><tr><td>conv6</td><td>8×8</td><td>(192) (192)</td><td>11.6 M (111)</td><td>3.6 M (96/128)</td><td>4.9M (110) 4.3M (67)</td></tr><tr><td>conv7</td><td>8×8</td><td>21.2M 21.2M</td><td>12.3 M</td><td>5.4M (96/152)</td><td></td></tr><tr><td>pool7</td><td></td><td>(192)</td><td>(192)</td><td>5.4 M (96/96)</td><td>4.5M (116)</td></tr><tr><td>fc</td><td>1×1 1×1</td><td>1.9k (10)</td><td>1.9k (10)</td><td>960 (10)</td><td>1.1k (10)</td></tr><tr><td></td><td></td><td>174.3M</td><td>146.5M</td><td></td><td></td></tr><tr><td>Total Saving</td><td></td><td>1</td><td>1.19×</td><td>44.3M 3.93×</td><td>54.2M 3.21×</td></tr></table>",
1411
+ "bbox": [
1412
+ 207,
1413
+ 503,
1414
+ 794,
1415
+ 723
1416
+ ],
1417
+ "page_idx": 11
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Figure 4 shows how the skipping probabilites heat maps of the convolutional layer conv4 evolve as we fine-tune FBS-augmented M-CifarNet. The network was trained for 12 epochs, and we saved the model at every epoch. The heat maps are generated with the saved models in sequence, where we apply the same reordering to all heat map channels with the sorted result from the first epoch. It can be observed that as we train the network, the channel skipping probabilites become more pronounced. ",
1422
+ "bbox": [
1423
+ 173,
1424
+ 839,
1425
+ 825,
1426
+ 924
1427
+ ],
1428
+ "page_idx": 11
1429
+ },
1430
+ {
1431
+ "type": "image",
1432
+ "img_path": "images/0ac2dbb3a50aafe67f3efd4e38811dfbcd9c7c0d1019acfb820610f3f0cc6d8a.jpg",
1433
+ "image_caption": [
1434
+ "Figure 4: The training history of a convolutional layer conv4 in M-CifarNet. The history is visualized by the 12 skipping probabilites heat maps, where the heights denote the 10 categories in CIFAR-10, and channels in conv4 occupy the width. "
1435
+ ],
1436
+ "image_footnote": [],
1437
+ "bbox": [
1438
+ 344,
1439
+ 107,
1440
+ 658,
1441
+ 392
1442
+ ],
1443
+ "page_idx": 12
1444
+ },
1445
+ {
1446
+ "type": "text",
1447
+ "text": "B Details of the ILSVRC2012 classifiers ",
1448
+ "text_level": 1,
1449
+ "bbox": [
1450
+ 174,
1451
+ 474,
1452
+ 602,
1453
+ 492
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "ILSVRC2012 classifiers, i.e. ResNet-18 and VGG-16, were trained with a procedure similar to Appendix A. The difference was that they were trained for a maximum of 35 epochs, the learning rate was decayed for every 20 epochs, and NS models were all pruned at 15 epochs. For image preprocessing, we additionally cropped and stretched/squeezed images randomly following Krizhevsky et al. (2012). ",
1460
+ "bbox": [
1461
+ 174,
1462
+ 506,
1463
+ 825,
1464
+ 577
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Since VGG-16 is computationally intensive with over 15 G MACs, We first applied NS on VGG-16 to reduce the computational and memory requirements, and ease the training of the FBS-augmented variant. We assigned a $1 \\%$ budget in top-5 accuracy degradation and compressed the network using NS, which gave us a smaller VGG-16 with $2 0 \\%$ of all channels pruned. The resulting network is a lot less redundant, which almost halves the compute requirements, with only 7.90 G MACs remaining. We then apply FBS to the well-compressed network. ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 583,
1474
+ 825,
1475
+ 680
1476
+ ],
1477
+ "page_idx": 12
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Residual networks (He et al., 2016), such as ResNet-18, adopt sequential structure of residual blocks: $\\mathbf { x } _ { b } = K \\left( \\mathbf { x } _ { b - 1 } \\right) + F \\left( \\mathbf { x } _ { b - 1 } \\right)$ , where $\\mathbf { x } _ { b }$ is the output of the $b ^ { \\mathrm { t h } }$ block, $K$ is either an identity function or a downsampling convolution, and $F ^ { \\prime }$ consists of a sequence of convolutions. For residual networks, we directly apply FBS to all convolutional layers, with a difference in the way we handle the feature summation. Because the $\\left( b + 1 \\right) ^ { \\mathrm { t h } }$ block receives as input the sum of the two features with sparse channels $K \\left( \\mathbf { x } _ { b - 1 } \\right)$ and $F \\left( \\mathbf { x } _ { b - 1 } \\right)$ , a certain channel of this sum is treated as sparse when the same channels in both features are simultaneously sparse. ",
1482
+ "bbox": [
1483
+ 174,
1484
+ 686,
1485
+ 825,
1486
+ 801
1487
+ ],
1488
+ "page_idx": 12
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Figure 5 compares the accuracy/performance trade-off curves between FBS and NS for ResNet-18. ",
1493
+ "bbox": [
1494
+ 174,
1495
+ 808,
1496
+ 821,
1497
+ 835
1498
+ ],
1499
+ "page_idx": 12
1500
+ },
1501
+ {
1502
+ "type": "image",
1503
+ "img_path": "images/03cc25e4465c9126a92eedc919885878b989aaaa077f60070dd89df8fb2e157e.jpg",
1504
+ "image_caption": [
1505
+ "Figure 5: The accuracy/performance trade-off comparison between NS and FBS for ResNet18 on the ImageNet ILSVRC2012 validation set. "
1506
+ ],
1507
+ "image_footnote": [],
1508
+ "bbox": [
1509
+ 282,
1510
+ 367,
1511
+ 710,
1512
+ 616
1513
+ ],
1514
+ "page_idx": 13
1515
+ }
1516
+ ]
parse/train/BJxh2j0qYm/BJxh2j0qYm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BfPzZSype5M/BfPzZSype5M.md ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RMM: Reinforced Memory Management for Class-Incremental Learning
2
+
3
+ Yaoyao Liu1 Bernt Schiele1 Qianru Sun2
4
+
5
+ 1Max Planck Institute for Informatics, Saarland Informatics Campus 2School of Computing and Information Systems, Singapore Management University {yaoyao.liu, schiele}@mpi-inf.mpg.de qianrusun@smu.edu.sg
6
+
7
+ # Abstract
8
+
9
+ Class-Incremental Learning (CIL) [40] trains classifiers under a strict memory budget: in each incremental phase, learning is done for new data, most of which is abandoned to free space for the next phase. The preserved data are exemplars used for replaying. However, existing methods use a static and ad hoc strategy for memory allocation, which is often sub-optimal. In this work, we propose a dynamic memory management strategy that is optimized for the incremental phases and different object classes. We call our method reinforced memory management (RMM), leveraging reinforcement learning. RMM training is not naturally compatible with CIL as the past, and future data are strictly non-accessible during the incremental phases. We solve this by training the policy function of RMM on pseudo CIL tasks, e.g., the tasks built on the data of the 0-th phase, and then applying it to target tasks. RMM propagates two levels of actions: Level-1 determines how to split the memory between old and new classes, and Level-2 allocates memory for each specific class. In essence, it is an optimizable and general method for memory management that can be used in any replaying-based CIL method. For evaluation, we plug RMM into two top-performing baselines (LUCIR $^ +$ AANets and POD $+ .$ AANets [30]) and conduct experiments on three benchmarks (CIFAR-100, ImageNet-Subset, and ImageNet-Full). Our results show clear improvements, e.g., boosting POD $+ .$ AANets by $3 . 6 \%$ , $4 . 4 \%$ , and $1 . 9 \%$ in the 25-Phase settings of the above benchmarks, respectively. The code is available at https://class-il.mpi-inf.mpg.de/rmm/.
10
+
11
+ # 1 Introduction
12
+
13
+ Ideally, AI systems should be adaptive to ever-changing environments—where the data are continuously observed by sensors. Their models should be capable of learning new concepts from data while maintaining the ability to recognize previous ones. In practice, the systems often have constrained memory budgets because of which most of the historical data have to be abandoned [20]. However, deep-learning-based AI systems, when continuously updated using new data and limited historical data, often suffer from catastrophic forgetting, as the updates can override knowledge acquired from previous data [33, 34, 39].
14
+
15
+ To encourage research on the forgetting problem, Rebuffi et al. [40] defined a standard protocol of class-incremental learning (CIL) for image classification, where the training data of different object classes come in phases. In each phase, the classifier is evaluated on all classes observed so far. As the total memory size is limited [40], CIL systems abandon the majority of the data and only preserve a small number of exemplars, e.g., 20 exemplars per class, which will be used for replaying in subsequent phases. Replaying usually happens for multiple epochs [13, 18, 30, 40], so both the old class exemplars and new class data need to be stored in the limited memory. Existing CIL methods allocate memory between the old and new classes in an arbitrary and static fashion, e.g., 20 per old class vs. 1, 300 per new class for the ImageNet-Full dataset. This causes a serious imbalance between the old and new classes and can exacerbate the problem of catastrophic forgetting.
16
+
17
+ ![](images/fb925de9131e5e29d0397072250f83a2fbcecb9ae91b493cab1ae5477fb7b21f.jpg)
18
+ Figure 1: (a) Existing CIL methods [18, 30, 40] allocate memory between old and new classes in an arbitrary and frozen way, causing the data imbalance between old and new classes and exacerbating the catastrophic forgetting of old knowledge in the learned model. (b) Our proposed method— Reinforced Memory Management (RMM)—is able to learn the optimal and class-specific memory sizes in different incremental phases. Please note we use orange, blue, and green dots to denote the samples observed in the (i-1)-th, $i$ -th, and $( i { + } 1 )$ -th phases, respectively.
19
+
20
+ To address this, we propose to learn an optimal memory management policy for each incremental phase with continuously reinforced model performance and call our method reinforced memory management (RMM). Detailed actions include 1) allocating the memory between the existing (old) and the coming (new) data for each phase, and 2) specifying the memory for each old class according to its recognition difficulty before abandoning any of its data. To this end, we leverage reinforcement learning [26–28, 51, 59] and design a new policy function to contain two sub-functions that propagate two levels of actions in a hierarchical way. Level-1 function determines how to split memory between the old and new data. Its output action is then inputted into the Level-2 function to determine how to allocate memory for each old class. The overall objective of the function is to maximize the cumulative evaluation accuracy across all incremental phases. However, this is not naturally compatible with the standard protocol of CIL [40] where neither past nor future data are accessible for evaluation. To tackle this issue, we propose to pre-train the function on pseudo CIL tasks and then adopt it in the learning process of our target task. In principle, we can build such pseudo tasks using any available categorical data, e.g., the data in the 0-th phase of the target CIL task or the data from another dataset. Even though this is a non-stationary reinforcement learning problem, we can regard the pseudo and target CIL tasks as a sequence of stationary tasks and train the policy function to exploit the dependencies between these consecutive tasks. Such continuous adaptation in non-stationary environments is feasible based on the empirical analysis given in [2].
21
+
22
+ Technically, we propose the following method to guarantee the transferability of policy functions between pseudo and target CIL tasks. We take a Level-1 action based on the ratio of the number of new classes to the total number of classes observed so far. A lower (higher) ratio will result in weakening the stability (plasticity) of the classification model. Then, we take a Level-2 action for each individual class conditioned on both the Level-1 action and the training entropy of that class. A higher entropy denotes a more difficult class, leading to more memory allocated to the class. For evaluation, we conduct extensive CIL experiments by plugging RMM into two top-performing methods (LUCIR $+ .$ AANets, POD $^ { + }$ AANets) and testing them on three benchmarks (CIFAR-100, ImageNet-Subset, and ImageNet-Full). Our results show the clear and consistent superiority of RMM, e.g., it boosts the state-of-the-art POD $+$ AANets by $3 . 6 \%$ , $4 . 4 \%$ , and $1 . 9 \%$ in the 25-Phase settings of the above benchmarks, respectively.
23
+
24
+ Our technical contribution is three-fold. 1) A hierarchical reinforcement learning algorithm called RMM to manage the memory in a way that can be conveniently modified through incremental phases and for different classes. 2) A pseudo task generation strategy that requires only in-domain available data (small-scale) or cross-domain datasets (large-scale), relieving the data incompatibility between reinforcement learning and class-incremental learning. 3) Extensive experiments, visualization, and interpretation for RMM in three CIL benchmarks and using two top models as baselines.
25
+
26
+ # 2 Related Work
27
+
28
+ Incremental Learning [22, 36, 48, 53, 58] continuously updates the model using data coming in a sequence of phases. Similar tasks are also referred to as continual learning [12, 32] and lifelong learning [3, 9]. Recent papers are either task-incremental learning—each phase corresponds to a task (dataset) that contains new data of all seen classes [7, 10, 19, 29, 43, 47, 57], or classincremental learning (CIL)—each phase contains data of a new set of classes, i.e., classes are unseen [4, 6, 18, 25, 31, 37, 40, 41, 49, 52, 55–57]. This paper is concerned with CIL. The key challenge of CIL is the forgetting problem—older classes are forgotten in later phases. Existing methods tackling this can be divided into three categories: memory-based, regularization-based, and network-architecture-based [11, 35]. Memory-based methods preserved a small subset of the old class data (exemplars) to replay the model on them (together with the new class data), in order to relieve the forgetting of the old classes. Some work [18, 40] proposed heuristic strategies to select more representative exemplars from the old class data, and others [31, 47] tried to generate exemplars in optimizable frameworks. None of them changed the allocation of memory for different classes, i.e., all used an arbitrary and static scheme for memory allocation. Regularization-based methods introduce regularization terms in the loss function to consolidate previous knowledge when training the model on new data. The key idea is to enforce predicted label logits [29, 40], features maps [13, 18], or the topology in the feature space [49] of the new model to be close to that of the previous model. Network-architecture-based methods aim to design “incremental network architectures”. Some work [45, 54] gradually extended the network capacity for new data, while others proposed to freeze partial network parameters [1, 30] to preserve the knowledge of the old classes.
29
+
30
+ Reinforcement Learning defines an agent that needs to decide its actions in an unknown environment by maximizing the expected cumulative reward. It has been widely applied to many optimization problems, e.g., neural architecture search [54, 59] and neural machine translation [38, 46]. Reinforcement learning has also been introduced to solve incremental learning problems. Xu et al. [54] proposed to increase convolution filters once a new task arrives and optimize the increased number by reinforcement learning. Gao et al. [14] proposed an improved version that makes the minimal expansion of the network, reducing memory and computing overheads. Veniat et al. [50] introduced a modular architecture, where each module represents a different atomic skill, and used the REINFORCE algorithm [51] to optimize it. Huang et al. [21] combined reinforcement learning with Net2Net [8] and designed a NAS-based CIL method. In our work, we also use the REINFORCE algorithm [51], but differ in three aspects. First, we are the first to optimize memory allocation for CIL in a reinforced way. Second, we learn the policy functions on generated pseudo CIL tasks, where we can access both past, and future data (for each incremental phase) and thus are able to compute the cross-phase (long-term) rewards. In contrast, the related work [14, 54] could use only current-phase data to estimate a short-term reward. Third, our reinforcement learning has a hierarchical structure that specially fits the nature of the data stream in the CIL settings.
31
+
32
+ # 3 Preliminaries
33
+
34
+ Class-Incremental Learning (CIL) usually assumes $( N { + } 1 )$ learning phases: an initial phase and $N$ incremental phases during which the number of classes gradually increases till the maximum [13, 18, 20, 31]. We assume that total memory $\mathcal { M }$ is bounded and fixed for all incremental phases [40]. $\mathcal { M }$ is used to store the exemplars and new coming data as both kinds of data need to be loaded repeatedly during training epochs. In the initial (0-th) phase, data $\mathcal { D } _ { 0 }$ , containing the training samples of $\mathcal { C } _ { 0 }$ classes, are used to learn the initial classification model $\Theta _ { 0 }$ . In the $i$ -th incremental phase, we split $\mathcal { M }$ into two dynamic partitions: the exemplar memory $\mathcal { M } _ { \mathrm { o l d } }$ and new data memory $M _ { \mathrm { n e w } }$ . We select $\mathcal { E } _ { t }$ as representative samples of the data seen in the $t$ -th phase, and denote total exemplars $\mathcal { E } _ { 0 } \sim \mathcal { E } _ { i - 1 }$ shortly as $\mathcal { E } _ { 0 : i - 1 }$ . We save $\mathcal { E } _ { 0 : i - 1 }$ into $\mathcal { M } _ { \mathrm { o l d } }$ and free $M _ { \mathrm { n e w } }$ . Then, we observe new data that contain $\mathcal { C } _ { i }$ new classes. We randomly load new data into $M _ { \mathrm { n e w } }$ until $M _ { \mathrm { n e w } }$ is full, and all the other new data are discarded. We denote the loaded new data as $\mathcal { D } _ { i }$ . Then, we initialize $\Theta _ { i }$ with $\Theta _ { i - 1 }$ , and train it using $\mathcal { E } _ { 0 : i - 1 } \cup \mathcal { D } _ { i }$ . The resulting model $\Theta _ { i }$ will be evaluated with a test set containing all classes observed so far. We repeat this training and testing, and report the average accuracy across all phases.
35
+
36
+ Reinforcement Learning $\mathbf { \left( R L \right) }$ aims to learn an optimal policy function $\pi$ for an agent interacting in an unknown environment [51, 54, 59]. In the CIL scenario, in each incremental phase, the agent observes the current state $s _ { i }$ from the environment, and then takes an action $a _ { i }$ (how to allocate memory) according to the policy function $\pi ( a _ { i } | s _ { i } )$ . Subsequently, the environment is updated to a new state $s _ { i + 1 }$ and the reward $r _ { i }$ is calculated to optimize the parameters of $\pi ( a _ { i } | s _ { i } )$ through cumulative reward back-propagation. Specifically, the learning objective of $\begin{array} { r } { R _ { i } ^ { ' } = \sum _ { t = i } ^ { \infty } \dot { \gamma } ^ { t - i } r _ { t } } \end{array}$ , where $\gamma \in [ 0 , 1 )$ i i is a discounting factor that determines the $\pi ( a _ { i } | s _ { i } )$ is to maximize the expected weights of future rewards. Please note that in our case, theproblem [15, 59], so we remove the discounting factor and $( N { + } 1 )$ $\textstyle R = \sum _ { t = 0 } ^ { N } r _ { t }$ task is a finite horizon, which is actually the cumulative validation accuracy of all training CIL tasks. In Section 4, we discuss the proposed RL algorithm for memory allocation and how to generate pseudo tasks for training its policy function.
37
+
38
+ # 4 Reinforced Memory Management (RMM)
39
+
40
+ Our RMM approach learns policy functions that propagate two levels of actions in a hierarchical way, specially designed for CIL. As illustrated in Figure 1 (b), Level-1 determines the memory split between exemplars and new data, and Level-2 allocates the memory for each individual class. We motivate and introduce the formulation of RMM, including the definitions of states, actions, rewards, and hierarchical policy functions in Section 4.1. In Section 4.2, we detail the steps of creating pseudo CIL tasks on which we learn the policy functions. In Section 4.3, we summarize the algorithm.
41
+
42
+ # 4.1 Formulation
43
+
44
+ In the $i$ -th incremental phase CIL, we manage the memory for two kinds of data: exemplars $\mathcal { E } _ { 0 : i - 1 }$ and new data $\mathcal { D } _ { i }$ . For the former, we have access to their images and labels so we can allocate a different memory size to a different class, e.g., based on its recognition difficulty. For the latter, we do not have such access before loading the data (otherwise, causing a violation to the CIL protocol), so we are only able to learn a total memory size, i.e., the memory size for all new classes (and then split it evenly for each individual class). Therefore, the memory management in CIL settings is inherently hierarchical: 1) coarse memory allocation between exemplars and new data; and then 2) fine-grained memory allocation among specific classes. To this end, we modify the standard reinforcement learning into a hierarchical structure.
45
+
46
+ As illustrated in Figure 2 (a), in the $i$ -th incremental phase of CIL (i.e., the environment), the argent receives a state value $s _ { i }$ . Level-1 policy $\pi _ { \eta }$ takes $s _ { i }$ as the input to produce an action $a _ { i } ^ { [ 1 ] } \sim \pi _ { \eta } ( s _ { i } )$ $a _ { i } ^ { [ 1 ] }$ determines how to split memory between the exemplars and new data. After that, Level-2 policy $\pi _ { \phi }$ takes $s _ { i }$ and $a _ { i } ^ { [ 1 ] }$ as inputs to produce the second action $a _ { i } ^ { [ 2 ] } \sim \pi _ { \phi } ( s _ { i } , a _ { i } ^ { [ 1 ] } )$ that distributes the exemplar memory for each individual class.
47
+
48
+ States, defined for our CIL settings, should have two properties. 1) Being transferable between CIL tasks, e.g., from a small-scale CIL task including 50 classes (in total) to a large one including 100 classes. The reason is that we need to transfer the policy functions learned from pseudo CIL tasks (defined in Section 4.2) to the target task. The states, the inputs of policy functions, should also be transferable. 2) Being distinct in each incremental phase. This is to enable the state variable to represent a specific forgetting or data imbalance degree at each different learning phase of the CIL model. To fulfill these properties, we formulate the state in the $i$ -th phase as $\begin{array} { r } { s _ { i } = \left( \frac { \mathcal { C } _ { i } } { \sum _ { t = 0 } ^ { i - 1 } \mathcal { C } _ { t } } , \frac { | \mathcal { M } _ { \mathrm { o l d } } | } { | \mathcal { M } | } \right) } \end{array}$ , where $\mathcal { C } _ { i }$ denotes the number of classes in $\mathcal { D } _ { i }$ , $\mathcal { M } _ { \mathrm { o l d } }$ denotes the memory allocated to exemplars $\mathcal { E } _ { 0 : i - 1 }$ , and $\mathcal { M }$ is the total memory.
49
+
50
+ Level-1 Actions. In the 1-st incremental phase, our Level-1 policy function produces an action to allocate the memory for exemplars ${ \mathcal { E } } _ { 0 }$ and new data $\mathcal { D } _ { 1 }$ . We denote this action as $a _ { 1 } ^ { [ 1 ] }$ and assign its value with the ratio of the number of the exemplars $a _ { 1 } ^ { [ 1 ] } \in ( 0 , 1 )$ . In the $i$ -th phase $( i \geq 2 )$ ), the definition of $| \mathcal { E } _ { 0 } |$ $a _ { i } ^ { [ 1 ] }$ to the memory size is different to $a _ { 1 } ^ { [ 1 ] }$ as it is a relative , so we have change over $a _ { i - 1 } ^ { [ 1 ] }$ . Specifically, $a _ { i } ^ { [ 1 ] }$ is the ratio of increased (if its value is positive) or decreased (if negative) memory size of $\mathcal { M } _ { \mathrm { o l d } }$ compared to the (i-1)-th phase. Using this definition aims for smooth and continuous memory management. In the formulation, the memory sizes of exemplars $\mathcal { E } _ { 0 : i - 1 }$ and new data $\mathcal { D } _ { i }$ are, respectively,
51
+
52
+ ![](images/886c2faf44a43d3c90d5359b5aec1dfe02040e79327a3ff62ea2f7be2ca8882c.jpg)
53
+ Figure 2: (a) In the $i$ -th phase of the $k$ -th pseudo CIL task, Level-1 policy $\pi _ { \eta }$ takes $s _ { i }$ as the input, and produces action $a _ { i } ^ { [ 1 ] }$ . Level-2 policy $\pi _ { \phi }$ takes $s _ { i }$ and $a _ { i } ^ { [ 1 ] }$ as the inputs, then produces action $a _ { i } ^ { [ 2 ] }$ . (b) For the $k$ -th pseudo CIL task, we allocate memory for $N$ times (i.e., in $N$ phases) using the policies $\pi _ { \eta }$ and $\pi _ { \phi }$ , and compute the cumulative reward $R$ .
54
+
55
+ $$
56
+ | \mathcal { M } _ { \mathrm { o l d } } | = | \mathcal { E } _ { 0 : i - 1 } | = \sum _ { t = 1 } ^ { i } a _ { t } ^ { [ 1 ] } | \mathcal { M } | , \quad | \mathcal { M } _ { \mathrm { n e w } } | = | \mathcal { D } _ { i } | = \left( 1 - \sum _ { t = 1 } ^ { i } a _ { t } ^ { [ 1 ] } \right) | \mathcal { M } | .
57
+ $$
58
+
59
+ We set a constrain $a _ { i } ^ { [ 1 ] } \in [ - 0 . 1 , 0 . 1 ]$ for $i \geq 2$ . Otherwise, if $a _ { i } ^ { [ 1 ] }$ is too big, there are not enough exemplars to fill the memory, as most old-class data has been abandoned. If $a _ { i } ^ { [ 1 ] }$ is too small, many exemplars will be permanently deleted in this phase, making it hard or even impossible to adjust $\mathcal { M } _ { \mathrm { o l d } }$ back to a high value in the future phases. If $\textstyle \sum _ { t = 1 } ^ { i } a _ { t } ^ { [ 1 ] } > 1$ , $M _ { \mathrm { n e w } }$ will be negative. So, we force Pit=1 a[1]t $\textstyle \sum _ { t = 1 } ^ { i } a _ { t } ^ { [ 1 ] } \leq 1$ by rejection sampling [5], i.e., using $\pi _ { \eta }$ to output another action until it is feasible to execute. Note that this situation rarely happens in real training, because when $M _ { \mathrm { n e w } }$ becomes very low, $\pi _ { \eta }$ tends to produce an action to increase it.
60
+
61
+ Level-2 Actions. Here, we elaborate on how to get class-specific memory allocation. In the $( i - 1 )$ -th phase, we split the classes for $\mathcal { D } _ { i - 1 }$ into two groups evenly according to training entropy values: classes with higher values (difficult classes) are in one group and the rest in the other group. Therefore, Level-2 action $a _ { i } ^ { [ 2 ] } \in ( 0 , 1 )$ determines how to split memories between harder and easier classes. During initial experiments, we observed that using two groups already yields improved results and using more groups causes a decrease.
62
+
63
+ Let $\mathcal { M } _ { j } ^ { A }$ and $\mathcal { M } _ { j } ^ { B }$ denote the memory allocated for the high-entropy and low-entropy groups, respectively, in the $j$ -th phase $( j \le i )$ :
64
+
65
+ $$
66
+ | \mathcal { M } _ { j } ^ { A } | = a _ { j + 1 } ^ { [ 2 ] } | \mathcal { E } _ { j } | = \frac { a _ { j + 1 } ^ { [ 2 ] } \mathcal { C } _ { j } } { \sum _ { t = 1 } ^ { i } \mathcal { C } _ { t } } | \mathcal { M } _ { \mathrm { o l d } } | , | \mathcal { M } _ { j } ^ { B } | = ( 1 - a _ { j + 1 } ^ { [ 2 ] } ) | \mathcal { E } _ { j } | = \frac { ( 1 - a _ { j + 1 } ^ { [ 2 ] } ) \mathcal { C } _ { j } } { \sum _ { t = 1 } ^ { i } \mathcal { C } _ { t } } | \mathcal { M } _ { \mathrm { o l d } } | .
67
+ $$
68
+
69
+ Then, we allocate memory evenly to the classes within the group, e.g., if the high-entropy group has 10 classes, each class will have a memory size of $\frac { 1 } { 1 0 } | \mathcal { M } _ { j } ^ { A } |$ .
70
+
71
+ Rewards. The objective of CIL is that the trained model (in any phase) should be efficient to recognize all classes seen so far. It is intuitive and convenient to use the validation accuracy as the reward in each phase. In the $i$ -th phase, the objective of RMM is to maximize the expected cumulative reward, i.e., $\textstyle R = \sum _ { i = 0 } ^ { N } r _ { i }$ , where $r _ { i }$ denotes the validation accuracy in the $i$ -th phase.
72
+
73
+ # 4.2 Optimization
74
+
75
+ In the CIL protocol, it is impossible to see past or future data in any incremental phase. It is thus not intuitive how to compute cumulative rewards till the last phase. We propose to solve the issue by generating pseudo CIL tasks (where all data are accessible).
76
+
77
+ Pseudo CIL Tasks should meet two requirements: 1) their training and validation data are fully accessible for computing cumulative rewards, and 2) they have the same format (e.g., the same number of phases) of the target CIL task. Data Sources: For requirement 1, an intuitive solution is to use $\mathcal { D } _ { 0 }$ (available in the 0-th phase). Based on the CIL protocol [13, 18, 20, 30], $\mathcal { D } _ { 0 }$ contains half of the classes of the whole dataset, e.g., 50 classes on CIFAR-100, which supplies enough data to build downsized CIL tasks. When building the tasks, we randomly choose $1 0 \%$ training samples of each class (from $\mathcal { D } _ { 0 }$ ) to compose a pseudo validation set (note that we are not allowed to use the original validation set in training). When aiming for larger-scale data in CIL, we can leverage smaller datasets. For example, the pseudo tasks for ImageNet-Subset can be built on the data of CIFAR-100. This is also meaningful to evaluate the transferability of RMM policy functions (discussed in the Ablation Study). Task Generation Protocol is based on requirement 2. If using another dataset, we simply follow its original CIL protocol. If using the data accessed in the 0-th phase (i.e., $\mathcal { D } _ { 0 }$ ), we can reduce the number of classes (in each phase) by half. For example, for CIFAR-100, we use 50-class $\mathcal { D } _ { 0 }$ to generate a 5-phase pseudo CIL task as follows: loading 25 classes in the 0-th phase, and after that, five classes per phase. To generate another pseudo task, we simply change the order of classes.
78
+
79
+ ![](images/2676b7321df9fb589fa15a01c9e469e5666e2b81aca84cfb2d226b35f2b252cb.jpg)
80
+ Figure 3: Updating $\eta$ and $\phi$ in one epoch. To get stable gradients for $J ( \eta , \phi )$ , we create $K$ different pseudo CIL tasks, and run each task for $Z$ times.
81
+
82
+ Training. We elaborate the steps of learning Level-1 policy $\pi _ { \eta }$ and Level-2 policy $\pi _ { \phi }$ in the following. The goal is to optimize the parameters $\eta$ and $\phi$ by maximizing the expected cumulative reward $J ( \eta , \phi )$ . We denote any pseudo CIL task and its cumulative reward as $\tau$ and $R$ , respectively, and have,
83
+
84
+ $$
85
+ J ( \eta , \phi ) = \mathbb { E } _ { T } \mathbb { E } _ { \pi _ { \eta } , \pi _ { \phi } } [ R ] .
86
+ $$
87
+
88
+ Policy Gradient Estimation. According to the policy gradient theorem [51], we can compute the gradients for $J ( \eta , \phi )$ as follows,
89
+
90
+ $$
91
+ \nabla _ { \eta , \phi } J ( \eta , \phi ) = \mathbb { E } _ { T } \left[ \sum _ { i = 1 } ^ { N } \mathbb { E } _ { \pi _ { \eta } , \pi _ { \phi } } \big [ \nabla _ { \eta , \phi } \log ( \pi _ { \eta } ( a _ { i } ^ { [ 1 ] } \vert s _ { i } ) \pi _ { \phi } ( a _ { i } ^ { [ 2 ] } \vert s _ { i } , a _ { i } ^ { [ 1 ] } ) ) R \big ] \right] .
92
+ $$
93
+
94
+ Following the REINFORCE algorithm [51], we replace the expectations $\mathbb { E } \tau [ \cdot ]$ and $\mathbb { E } _ { \pi _ { \eta } , \pi _ { \phi } } [ \cdot ]$ with sample averages using the Monte Carlo method [16]. Specifically, in each epoch, we create $K$ pseudo tasks and run each task for $Z$ times, as shown in Figure 3. Thus we can derive the empirical approximation of $\nabla _ { \eta , \phi } J ( \eta , \phi )$ as,
95
+
96
+ $$
97
+ \nabla _ { \eta , \phi } J ( \eta , \phi ) = \frac { 1 } { Z K } \sum _ { k = 1 } ^ { K } \sum _ { z = 1 } ^ { Z } \sum _ { i = 1 } ^ { N } \nabla _ { \eta , \phi } \log ( \pi _ { \eta } ( a _ { i } ^ { [ 1 ] } | s _ { i } ) \pi _ { \phi } ( a _ { i } ^ { [ 2 ] } | s _ { i } , a _ { i } ^ { [ 1 ] } ) ) ( R _ { z } ^ { k } - b ) ,
98
+ $$
99
+
100
+ where $R _ { z } ^ { k }$ denotes the $z$ -th reward for the $k$ -th pseudo task $\mathcal { T } _ { k }$ , and $b$ denotes the baseline function— the moving average of previous rewards. Using this baseline function is a common trick in RL to reduce the variance of estimated policy gradients [23, 42, 59].
101
+
102
+ Updating Parameters. We update $\eta$ and $\phi$ in each epoch according to the gradient ascent rule [54, 59]:
103
+
104
+ $$
105
+ \eta : = \eta + \beta _ { 1 } \nabla _ { \eta } J ( \eta , \phi ) , \phi : = \phi + \beta _ { 2 } \nabla _ { \phi } J ( \eta , \phi ) ,
106
+ $$
107
+
108
+ where $\beta _ { 1 }$ and $\beta _ { 2 }$ are the learning rates. We iterate this update for $m$ epochs in total.
109
+
110
+ # 4.3 Algorithm
111
+
112
+ Algorithm 1 summarizes the overall training steps of the proposed RMM. There are four loops in the algorithm: 1) we train the RMM agent for $m$ epochs; 2) we create $K$ pseudo CIL tasks in each epoch; 3) we run each pseudo CIL task for $Z$ times; and 4) there are $N { + 1 }$ learning phases each time. Specifically, Line 3 initializes the parameters of policy functions. Line 6 creates the $k$ -th pseudo CIL task. Line 8 initializes the classification model. Lines 10-16 allocate the memory according to the actions produced by RMM policy. Line 17 loads new data. Lines 18-19 train the classification model and compute the accuracy. Line 20 estimates the $z$ -th cumulative reward. Lines 21-22 compute the gradients and update policy functions.
113
+
114
+ # 5 Experiments
115
+
116
+ We evaluate the proposed RMM method on three CIL benchmarks: CIFAR-100 [24], ImageNet-Subset [40], and ImageNet-Full [44], and use two top performing methods LUCIR $+$ AANets and POD $+$ AANets [30] as baselines. Below we introduce the datasets
117
+
118
+ 1: Input: Data $\mathcal { D }$ for generating pseudo CIL tasks.
119
+ 2: Output: Policy functions $\pi _ { \eta } , \pi _ { \phi }$ .
120
+ 3: Initialize $\eta$ and $\phi$ ;
121
+ 4: for $m$ epochs do
122
+ 5: for $k$ in $1 , . . . , K$ do
123
+ 6: Create a new pseudo task $\mathcal { T } _ { k }$ using $\mathcal { D }$ ;
124
+ 7: for z in 1, ..., Z do
125
+ 8: Initialize classification model $\Theta _ { 0 }$ ;
126
+ 9: for $_ i$ in 0, ..., N do
127
+ 10: if $i \geq 1$ do
128
+ 11: Observe $s _ { i }$ and produce $a _ { i } ^ { [ 1 ] } \sim \pi _ { \eta } ( s _ { i } )$ ;
129
+ 12: Allocate $\mathcal { M } _ { \mathrm { o l d } }$ and $\mathcal { M } _ { \mathrm { n e w } }$ using Eq. 1;
130
+ 13: Produce $a _ { i } ^ { [ 2 ] } \sim \pi _ { \phi } ( a _ { i } ^ { [ 1 ] } , s _ { i } )$ ;
131
+ 14: Allocate $\{ \mathcal { M } _ { j } ^ { A } \} _ { j = 0 } ^ { i }$ and $\{ \mathcal { M } _ { j } ^ { B } \} _ { j = 0 } ^ { i }$ using Eq. 2;
132
+ 15: Update $\mathcal { E } _ { 0 : i - 1 }$ using herding [40];
133
+ 16: Save $\mathcal { E } _ { 0 : i - 1 }$ in $\mathcal { M } _ { \mathrm { o l d } }$ and free $\mathcal { M } _ { \mathrm { n e w } }$ ;
134
+ 17: Observe new data and load $\mathcal { D } _ { i }$ into $\mathcal { M } _ { \mathrm { n e w } }$ randomly;
135
+ 18: Initialize $\Theta _ { i }$ with $\Theta _ { i - 1 }$ and train it using $\mathcal { E } _ { 0 : i - 1 } \cup \mathcal { D } _ { i }$ ;
136
+ 19: Compute validation accuracy $r _ { i }$ ;
137
+ 20: Compute $\begin{array} { r } { R _ { z } ^ { k } = \sum _ { i = 0 } ^ { N } r _ { i } } \end{array}$ and update $b$ ;
138
+ 21: Compute $\nabla _ { \eta , \phi } J ( \eta , \phi )$ using Eq. 5;
139
+ 22: Update $\eta$ and $\phi$ using Eq. 6.
140
+
141
+ and implementation details (Section 5.1), followed by the experimental results and analyses (Section 5.2).
142
+
143
+ # 5.1 Datasets and Implementation Details
144
+
145
+ Datasets. We use three benchmarks based on two datasets, CIFAR-100 [24] and ImageNet [44], following common settings [13, 18, 40, 30]. CIFAR-100 [24] contains 60, 000 samples of $3 2 \times 3 2$ color images from 100 classes. There are 500 training and 100 test samples for each class. ImageNet (ILSVRC 2012) [44] contains around 1.3 million samples of $2 2 4 \times 2 2 4$ color images from 1, 000 classes. There are about 1, 300 training and 50 test samples for each class. ImageNet has two CIL settings: ImageNet-Subset is based on a subset of 100 classes; and ImageNet-Full uses the full set of 1, 000 classes. The 100-class data for the ImageNet-Subset are sampled from ImageNet. For the experiments on PODNet [13] and POD-AANets [30], we use the same class orders and hyperparameters as [13]. For the experiments on LUCIR [18] and LUCIR-AANets [30], we use the same class orders and hyperparameters as [18].
146
+
147
+ Benchmarks. We follow the benchmark protocol used in [13, 18, 30, 31]. Given a dataset, the initial (the 0-th phase) model is trained on the data of half of the classes. Then, it learns the remaining classes evenly in the subsequent $N$ phases. Assume there is an initial phase and $N$ incremental phases in the CIL system. The total number of incremental phases $N$ is set to be 5, 10 or 25 (for each the setting is called “ $N$ -phase” setting). At the end of each individual phase, the learned model in each phase is evaluated on the test set containing all seen classes. In the tables, we report average accuracy over all phases and the last-phase accuracy, where the latter indicates the degree of forgetting.
148
+
149
+ Network Architectures. Following [18, 30, 40, 52], we use a 32-layer ResNet [40] for CIFAR-100 and an 18-layer ResNet [17] for ImageNet. Please note that it is standard to use a shallower ResNet for ImageNet. The 32-layer ResNet consists of an initial convolution layer and three residual blocks (in a single branch). Each block has ten convolution layers with $3 \times 3$ kernels. The number of filters starts from 16 and is doubled every next block. After these three blocks, there is an average-pooling layer to compress the output feature maps to a feature embedding. The 18-layer ResNet follows the standard settings in [17]. We deploy AANets using the same parameters as its original paper [30].
150
+
151
+ Table 1: Average accuracies $( \% )$ across all phases using two state-of-the-art methods (LUCIR $+$ AANets and POD $+ .$ AANets [30]) $w /$ and $w / o$ our RMM plugged in. The upper block is for recent CIL methods. For fair comparison, we re-implement these methods using our strict memory budget (see “Memory Budget” in Section 5.1) based on the public code. The results of using another common budget setting and the detailed numbers (confidence intervals and last-phase accuracies) are provided in the supplementary materials.
152
+
153
+ <table><tr><td rowspan="2">Method</td><td colspan="3">CIFAR-100</td><td colspan="3">ImageNet-Subset</td><td colspan="3">ImageNet-Full</td></tr><tr><td>N=5</td><td>10</td><td>25</td><td>5</td><td>10</td><td>25</td><td>5</td><td>10</td><td>25</td></tr><tr><td>LwF[29]</td><td>56.79</td><td>53.05</td><td>50.44</td><td>58.83</td><td>53.60</td><td>50.16</td><td>52.00</td><td>47.87</td><td>47.49</td></tr><tr><td>iCaRL [40]</td><td>60.48</td><td>56.04</td><td>52.07</td><td>67.33</td><td>62.42</td><td>57.04</td><td>50.57</td><td>48.27</td><td>49.44</td></tr><tr><td>LUCIR [18]</td><td>63.34</td><td>62.47</td><td>59.69</td><td>71.21</td><td>68.21</td><td>64.15</td><td>65.16</td><td>62.34</td><td>57.37</td></tr><tr><td>Mnemonics [31]</td><td>64.59</td><td>62.59</td><td>61.02</td><td>72.60</td><td>71.66</td><td>70.52</td><td>65.40</td><td>64.02</td><td>62.05</td></tr><tr><td>PODNet [13]</td><td>64.60</td><td>63.13</td><td>61.96</td><td>76.45</td><td>74.66</td><td>70.15</td><td>66.80</td><td>64.89</td><td>60.28</td></tr><tr><td>LUCIR-AANets [30]</td><td>66.88</td><td>65.53</td><td>63.92</td><td>72.80</td><td>69.71</td><td>68.07</td><td>65.31</td><td>62.99</td><td>61.21</td></tr><tr><td>w/ RMM (ours)</td><td>68.42</td><td>67.17</td><td>64.56</td><td>73.58</td><td>72.83</td><td>72.30</td><td>65.81</td><td>64.10</td><td>62.23</td></tr><tr><td>POD-AANets [30]</td><td>66.61</td><td>64.61</td><td>62.63</td><td>77.36</td><td>75.83</td><td>72.18</td><td>67.97</td><td>65.03</td><td>62.03</td></tr><tr><td>w/ RMM (ours)</td><td>68.86</td><td>67.61</td><td>66.21</td><td>79.52</td><td>78.47</td><td>76.54</td><td>69.21</td><td> 67.45</td><td>63.93</td></tr></table>
154
+
155
+ For policy functions $\pi _ { \eta }$ and $\pi _ { \phi }$ , we use two-layer FC networks. All actions are discretized at 0.1 intervals to reduce the search space and get a tolerable training overhead.
156
+
157
+ Hyperparameters and Configuration. The training of the classification model $\Theta$ exactly follows the uniform setting in [13, 18, 30, 31]. On CIFAR-100 (ImageNet-Subset/Full), we train it for 160 (90) epochs in each phase, and divide the learning rate by 10 after 80 (30) and then after 120 (60) epochs. Then, we fine-tune the model for 20 epochs using only exemplars (including the preserved exemplars of the new data to be used in future phases). We use an SGD optimizer and an ADAM optimizer for the classification model and policy functions, respectively. More details are given in the supplementary.
158
+
159
+ Memory Budget. There are two popular settings about memory budget in related work. One uses a bounded memory budget with a fixed capacity for all phases [18, 31, 40]. Another one allows the memory budget to grow along with phases [18, 20, 49]. The first one is more strict and thus used as the major setting in our paper (note that the results and analyses using the second setting are given in the supplementary materials). In every benchmark, the total budget of memory depends on the phase number $N$ . For example, on CIFAR-100, the total memory budget is set as 7, 000 samples when $N { = } 5$ (7, 000 samples $= 1 0$ classes/phase $\times 5 0 0$ samples/class $+ ~ 2$ , 000 samples). Please note that 2, 000 is a bounded memory budget allocated since the 0-th phase for saving exemplars. More clarifications about memory budget are given in the supplementary. For fair comparison, we re-implement related methods and report the results in Table 1 if their original results (in the respective papers) were obtained in a different setting of memory budget.
160
+
161
+ # 5.2 Results and Analyses
162
+
163
+ Table 1 presents the results of two state-of-the-art methods (LUCIR $+$ AANets and POD $+$ AANets [30]) w/ and $w / o$ our RMM plugged in, and some recent CIL work [13, 18, 29, 31, 40]. Table 2 shows the ablation study in 6 settings. Figure 4 plots the changes of the average number of exemplars per old/new class for the incremental phases.
164
+
165
+ Comparing to the State-of-the-Art. From Table 1, we make the following observations. 1) Our RMM consistently improves the two top baselines LUCIR $^ +$ AANets and POD $^ +$ AANets [30] in all settings. E.g., LUCIR-AANets $w /$ RMM and POD-AANets w/ RMM respectively get $2 . 7 \%$ and $3 . 1 \%$ average improvements on the ImageNet-Subset. 2) Our POD-AANets $w /$ RMM achieves the best performances. Interestingly, we find that our RMM can boost performance more when the number of phases is larger. For example, when $N { = } 2 5$ , RMM improves POD-AANets by $3 . 6 \%$ and $4 . 4 \%$ on CIFAR-100 and ImageNet-Subset, respectively. These two numbers are $2 . 3 \%$ and $2 . 1 \%$ when $N { = } 5$
166
+
167
+ <table><tr><td rowspan="3">Ablation Setting</td><td colspan="4">CIFAR-100</td><td colspan="4">ImagNet-Subset</td></tr><tr><td>N=5</td><td></td><td>10</td><td>25</td><td></td><td>5</td><td>10</td><td>25</td></tr><tr><td>Avg</td><td>Last</td><td>Avg Last</td><td>Avg</td><td>Last</td><td>Avg Last</td><td>Avg Last</td><td>Avg</td><td>Last</td></tr><tr><td>1 BaseRow</td><td>66.61</td><td>57.81</td><td>64.61 55.70</td><td>62.63</td><td>52.53</td><td>77.36 70.02</td><td>75.83</td><td>68.97</td><td>72.18 63.89</td></tr><tr><td>2 One-level RL</td><td>67.92 58.61</td><td></td><td>66.94 58.31</td><td></td><td>65.95 56.44</td><td>78.50 72.00</td><td></td><td>78.15 71.00</td><td>75.47 67.47</td></tr><tr><td>3 Two-level RL (Used) 68.86 59.00</td><td></td><td></td><td>67.61 59.03</td><td></td><td>66.21 56.50</td><td>79.52 73.80</td><td></td><td>78.47 71.40</td><td>76.54 68.84</td></tr><tr><td>margin</td><td>+2.3</td><td>+1.2</td><td>+3 +3.3</td><td>+3.6</td><td>+4</td><td>+2.1</td><td>+3.8 +2.6</td><td>+2.4</td><td>+4.4 +5</td></tr><tr><td>4 Two-level RL (T.P.) margin</td><td>68.62 59.40</td><td></td><td>67.22 58.20</td><td></td><td>65.82 56.20</td><td>78.81 72.42</td><td></td><td>77.68 70.77</td><td>75.29 68.81</td></tr><tr><td>5 UpperBound RL</td><td>+2</td><td>+1.6</td><td>+2.6+2.5</td><td></td><td>+3.2 +3.7</td><td>+1.5+2.4</td><td></td><td>+1.9 +1.8</td><td>+3.1 +4.9</td></tr><tr><td>6 Cross Val Fixed</td><td>70.00 61.12</td><td></td><td>68.36 60.00</td><td></td><td>66.56 56.74 65.73 55.51</td><td>80.01 74.31 77.96 70.31</td><td></td><td>78.95 71.97</td><td>76.99 69.14</td></tr><tr><td></td><td>67.50 58.48</td><td></td><td>66.69 57.19</td><td></td><td></td><td></td><td></td><td>76.70 69.08</td><td>74.18 66.10</td></tr></table>
168
+
169
+ Table 2: The evaluation results in the ablation study $( \% )$ . “T.P.” denotes our results using the Policy functions Transferred from another dataset. “Avg”, “Last”, and “Used” denote the average accuracy over all phases, the last-phase accuracy, and the results used as ours in Table 1, respectively. BaseRow is from the sota method POD-AANets [30]. Row 2 is for learning Level-1 policy. Row 3 is for learning Level-1 and Level-2 policies in a hierarchical way. Row 4 is for using Transferred Policies (from the other dataset in the table), when RL is costly or impossible on target CIL tasks. The bottom lines are two oracles: training the RL model on the target CIL task (Row 5) and using cross-validation to find the best fixed memory allocation between old and new classes (Row 6).
170
+
171
+ This indicates that the superiority of our RMM is more obvious in challenging settings (where the forgetting problem is more serious due to the more frequent model re-training through phases).
172
+
173
+ Ablation Settings. Table 2 shows the results of our ablation study. Row 1 is for the baseline method POD-AANets [30]. Row 2 is for learning only Level-1 policy $\pi _ { \eta }$ (where each class gets an even split of the memory). Row 3 is for learning both Level-1 policy $\pi _ { \eta }$ and Level-2 policy $\pi _ { \phi }$ in our proposed hierarchical method, and its results are used in Table 1 as “ours”. Row 4 is for using Policy functions Transferred from another dataset (T.P.), which means on the target CIL dataset there is no training of RMM. Here, for CIFAR-100, we use the policy functions learned on ImageNet-Subset, and vice versa. On the last two rows, we show two oracle settings. Row 5 is the upper bound that assumes all past and future data are accessible during training RMM on the target CIL dataset. Row 6 is for using cross-validation (i.e., all past, future, and validation data are accessible) to find the best fixed memory split between old and new class data, e.g., $\textstyle \mathrm { \frac { o l d } { n e w } } = 0 . 7$ is chosen and then used in all phases. The details of chosen split rates are given in the supplementary materials.
174
+
175
+ Ablation Results. Hierarchical: In Table 2, when comparing Row 2 to Row 1, it is clear that leveraging reinforcement learning yields better results as it can derive adaptive memory allocation between old and new data. Using class-specific memory management further increases the model performance (i.e., comparing Row 3 to Row 2), even though we divide the classes into only two groups. T.P. (Transferred Policy functions): Comparing Row 4 to Row 3, we can see that using transferred policy functions (trained on another dataset) achieves comparable performance, and Row 4 does not require any reinforcement learning on the target CIL dataset. Oracle: Comparing Row 3 to Row 5, we see that learning RMM on pseudo CIL tasks is comparable to the upper bound case where all training and validate data are accessible, given the fact that the latter needs higher computational overhead and violates the standard CIL protocol. Row 6 results are consistently lower than ours in Row 3, although cross-validation has access to all past, future, and validation data.
176
+
177
+ Allocated Memory. Figure 4 shows the change of the average number of samples per class in three ablative settings. Solid and dashed lines represent old and new classes, respectively. From the plots, we have two observations. 1) Learning RMM on the pseudo or target CIL tasks (green and orange lines), we can obtain similar memory management results (i.e., actions). This means the learned policy is transferrable in non-stationary continuous environments. This matches the conclusion of continuous adaptation in [2]. 2) Using our RMM method achieved more balanced memory sizes between exemplars and new data. For example, in the 1-st phase of the 5-phase setting, “UpperBound
178
+
179
+ ![](images/70170b079fa509f7fe9e447e26b1993b1d5aef6ac3af3e5c866ecabdd6dd20c7.jpg)
180
+ Figure 4: The memory allocated for “Old” and “New” across different phases on CIFAR-100. The second and fourth plots are enlarged versions of the first and third plots, respectively. Solid and phase (N=5)dashed lines denote old and new classes, respectively. The baseline is POD-AANets [30]. “Two-level RL” and “UpperBound RL” correspond to Row 3 and Row 5 in Table 2, respectively.
181
+
182
+ RL” and “Two-level RL” allocate around 100 samples for both exemplars and new data. While the baseline setting has 40 and 500 samples for them, respectively. It thus addresses the data imbalance problem for CIL in a learnable way.
183
+
184
+ # 6 Conclusions
185
+
186
+ We propose the reinforced memory management (RMM) method specially for tackling CIL tasks. The hierarchical reinforcement learning (RL) framework (two levels) in RMM is capable of making more adaptive memory allocation actions than using standard RL (one level). Using the generated pseudo tasks in RMM solves the issue of data incompatibility between CIL and RL. Corresponding experimental results show that the policy trained on these pseudo tasks can be directly applied to target tasks without any computational overhead. Our overall method of RMM is generic, and its trained policy (with or without using an in-domain dataset) can be easily incorporated into exemplar replaying-based CIL methods to boost performance.
187
+
188
+ # Limitations and Societal Impact
189
+
190
+ We analyse the limitations and potential negative societal impact in the following three aspects.
191
+
192
+ • Complexity. Training RMM takes an additional time cost. According to Algorithm 1, the cost is $O ( m K Z )$ times higher than the time used for the target CIL task. However, the training of RMM policy is offline and can use a different dataset (see Table 2) — RMM pre-learns a robust policy from synthesized pseudo tasks and can be directly applied for memory management in real CIL tasks. The overhead of applying this policy is very little, e.g., $0 . 6 3 \%$ and $1 . 1 2 \%$ of the total training time respectively on CIFAR-100 and ImageNet (Subset and Full), taking $\mathrm { P O D + }$ AANets as the baseline.
193
+
194
+ • Technical assumptions. We build the framework of RMM based on a series of technical assumptions, which might not directly hold for all real-world continual-learning applications. When applying our method to mission-critical problems, particular care is required when modeling the system.
195
+
196
+ • Privacy issues. Keeping the old class exemplars has the issue of data privacy. This calls for future research that explicitly forgets or mitigates the identifiable feature of the data.
197
+
198
+ # Acknowledgments and Disclosure of Funding
199
+
200
+ This research was supported by $\mathbf { A } { ^ { * } \mathbf { S } } \mathbf { T } \mathbf { A } \mathbf { R }$ under its AME YIRG Grant (Project No. A20E6c0101), Alibaba Innovative Research (AIR) programme, and Max Planck Institute for Informatics.
201
+
202
+ # References
203
+
204
+ [1] Davide Abati, Jakub Tomczak, Tijmen Blankevoort, Simone Calderara, Rita Cucchiara, and Babak Ehteshami Bejnordi. Conditional channel gated networks for task-aware continual learning. In CVPR, pages 3931–3940, 2020.
205
+ [2] Maruan Al-Shedivat, Trapit Bansal, Yura Burda, Ilya Sutskever, Igor Mordatch, and Pieter Abbeel. Continuous adaptation via meta-learning in nonstationary and competitive environments. In ICLR, 2018.
206
+ [3] Rahaf Aljundi, Punarjay Chakravarty, and Tinne Tuytelaars. Expert gate: Lifelong learning with a network of experts. In CVPR, pages 3366–3375, 2017.
207
+ [4] Eden Belouadah and Adrian Popescu. Il2m: Class incremental learning with dual memory. In CVPR, pages 583–592, 2019.
208
+ [5] Christopher M Bishop. Pattern recognition and machine learning. springer, 2006.
209
+ [6] Francisco M. Castro, Manuel J. Marín-Jiménez, Nicolás Guil, Cordelia Schmid, and Karteek Alahari. End-to-end incremental learning. In ECCV, pages 241–257, 2018.
210
+ [7] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. In ICLR, 2019.
211
+ [8] Tianqi Chen, Ian J. Goodfellow, and Jonathon Shlens. Net2net: Accelerating learning via knowledge transfer. In Yoshua Bengio and Yann LeCun, editors, ICLR, 2016.
212
+ [9] Zhiyuan Chen and Bing Liu. Lifelong machine learning. Synthesis Lectures on Artificial Intelligence and Machine Learning, 12(3):1–207, 2018.
213
+ [10] Guy Davidson and Michael C Mozer. Sequential mastery of multiple visual tasks: Networks naturally learn to learn and forget to forget. In CVPR, pages 9282–9293, 2020.
214
+ [11] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. Continual learning: A comparative study on how to defy forgetting in classification tasks. arXiv, 1909.08383, 2019.
215
+ [12] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Aleš Leonardis, Gregory Slabaugh, and Tinne Tuytelaars. A continual learning survey: Defying forgetting in classification tasks. arXiv, 1909.08383, 2019.
216
+ [13] Arthur Douillard, Matthieu Cord, Charles Ollion, Thomas Robert, and Eduardo Valle. Podnet: Pooled outputs distillation for small-tasks incremental learning. In ECCV, 2020.
217
+ [14] Qiang Gao, Zhipeng Luo, and Diego Klabjan. Efficient architecture search for continual learning. arXiv preprint arXiv:2006.04027, 2020.
218
+ [15] Pierre Yves Glorennec. Reinforcement learning: An overview. In Proceedings European Symposium on Intelligent Techniques (ESIT-00), Aachen, Germany, pages 14–15. Citeseer, 2000.
219
+ [16] John Hammersley. Monte carlo methods. Springer Science & Business Media, 2013.
220
+ [17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016.
221
+ [18] Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and Dahua Lin. Learning a unified classifier incrementally via rebalancing. In CVPR, pages 831–839, 2019.
222
+ [19] Wenpeng Hu, Zhou Lin, Bing Liu, Chongyang Tao, Zhengwei Tao, Jinwen Ma, Dongyan Zhao, and Rui Yan. Overcoming catastrophic forgetting for continual learning via model adaptation. In ICLR, 2019.
223
+ [20] Xinting Hu, Kaihua Tang, Chunyan Miao, Xian-Sheng Hua, and Hanwang Zhang. Distilling causal effect of data in class-incremental learning. In CVPR, 2021.
224
+ [21] Shenyang Huang, Vincent François-Lavet, and Guillaume Rabusseau. Neural architecture search for class-incremental learning. arXiv preprint arXiv:1909.06686, 2019.
225
+ [22] Ahmet Iscen, Jeffrey Zhang, Svetlana Lazebnik, and Cordelia Schmid. Memory-efficient incremental learning through feature adaptation. In ECCV, pages 699–715, 2020.
226
+ [23] Wouter Kool, Herke van Hoof, and Max Welling. Buy 4 reinforce samples, get a baseline for free! In ICLR Workshops, 2019.
227
+ [24] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
228
+ [25] Anna Kukleva, Hilde Kuehne, and Bernt Schiele. Generalized and incremental few-shot learning by explicit learning and calibration without forgetting. In ICCV, pages 9020–9029, 2021.
229
+ [26] Yingying Li, Xin Chen, and Na Li. Online optimal control with linear dynamics and predictions: Algorithms and regret analysis. In NeurIPS, pages 14858–14870, 2019.
230
+ [27] Yingying Li and Na Li. Online learning for markov decision processes in nonstationary environments: A dynamic regret analysis. In ACC, pages 1232–1237. IEEE, 2019.
231
+ [28] Yingying Li, Aoxiao Zhong, Guannan Qu, and Na Li. Online markov decision processes with time-varying transition probabilities and rewards. In ICML workshop on Real-world Sequential Decision Making, 2019.
232
+ [29] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947, 2018.
233
+ [30] Yaoyao Liu, Bernt Schiele, and Qianru Sun. Adaptive aggregation networks for classincremental learning. In CVPR, 2021.
234
+ [31] Yaoyao Liu, Yuting Su, An-An Liu, Bernt Schiele, and Qianru Sun. Mnemonics training: Multi-class incremental learning without forgetting. In CVPR, pages 12245–12254, 2020.
235
+ [32] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In NIPS, pages 6467–6476, 2017.
236
+ [33] Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of Learning and Motivation, volume 24, pages 109–165. Elsevier, 1989.
237
+ [34] K. McRae and P. Hetherington. Catastrophic interference is eliminated in pre-trained networks. In CogSci, 1993.
238
+ [35] Ameya Prabhu, Philip HS Torr, and Puneet K Dokania. Gdumb: A simple approach that questions our progress in continual learning. In ECCV, 2020.
239
+ [36] Jathushan Rajasegaran, Munawar Hayat, Salman Khan, Fahad Shahbaz Khan, and Ling Shao. Random path selection for incremental learning. NeurIPS, 2019.
240
+ [37] Jathushan Rajasegaran, Salman Khan, Munawar Hayat, Fahad Shahbaz Khan, and Mubarak Shah. itaml: An incremental task-agnostic meta-learning approach. In CVPR, pages 13588– 13597, 2020.
241
+ [38] Marc’Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. Sequence level training with recurrent neural networks. In Yoshua Bengio and Yann LeCun, editors, ICLR, 2016.
242
+ [39] R. Ratcliff. Connectionist models of recognition memory: Constraints imposed by learning and forgetting functions. Psychological Review, 97:285–308, 1990.
243
+ [40] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. iCaRL: Incremental classifier and representation learning. In CVPR, pages 5533–5542, 2017.
244
+ [41] Mengye Ren, Renjie Liao, Ethan Fetaya, and Richard S Zemel. Incremental few-shot learning with attention attractor networks. In NeurIPS, pages 5276–5286, 2019.
245
+ [42] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. Selfcritical sequence training for image captioning. In CVPR, pages 7008–7024, 2017.
246
+ [43] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In ICLR, 2019.
247
+ [44] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
248
+ [45] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv, 1606.04671, 2016.
249
+ [46] Shiqi Shen, Yong Cheng, Zhongjun He, Wei He, Hua Wu, Maosong Sun, and Yang Liu. Minimum risk training for neural machine translation. In ACL, 2016.
250
+ [47] Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In NIPS, pages 2990–2999, 2017.
251
+ [48] Christian Simon, Piotr Koniusz, and Mehrtash Harandi. On learning the geodesic path for incremental learning. In CVPR, pages 1591–1600, 2021.
252
+ [49] Xiaoyu Tao, Xinyuan Chang, Xiaopeng Hong, Xing Wei, and Yihong Gong. Topologypreserving class-incremental learning. In ECCV, 2020.
253
+ [50] Tom Veniat, Ludovic Denoyer, and Marc’Aurelio Ranzato. Efficient continual learning with modular networks and task-driven priors. In ICLR, 2021.
254
+ [51] Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
255
+ [52] Yue Wu, Yinpeng Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, and Yun Fu. Large scale incremental learning. In CVPR, pages 374–382, 2019.
256
+ [53] Ziyang Wu, Christina Baek, Chong You, and Yi Ma. Incremental learning via rate reduction. In CVPR, pages 1125–1133, 2021.
257
+ [54] Ju Xu and Zhanxing Zhu. Reinforced continual learning. In NeurIPS, pages 899–908, 2018.
258
+ [55] Lu Yu, Bartlomiej Twardowski, Xialei Liu, Luis Herranz, Kai Wang, Yongmei Cheng, Shangling Jui, and Joost van de Weijer. Semantic drift compensation for class-incremental learning. In CVPR, pages 6982–6991, 2020.
259
+ [56] Chi Zhang, Nan Song, Guosheng Lin, Yun Zheng, Pan Pan, and Yinghui Xu. Few-shot incremental learning with continually evolved classifiers. In CVPR, pages 12455–12464, 2021.
260
+ [57] Bowen Zhao, Xi Xiao, Guojun Gan, Bin Zhang, and Shu-Tao Xia. Maintaining discrimination and fairness in class incremental learning. In CVPR, pages 13208–13217, 2020.
261
+ [58] Fei Zhu, Xu-Yao Zhang, Chuang Wang, Fei Yin, and Cheng-Lin Liu. Prototype augmentation and self-supervision for incremental learning. In CVPR, pages 5871–5880, 2021.
262
+ [59] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017.
parse/train/BfPzZSype5M/BfPzZSype5M_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkS3fnl0W/BkS3fnl0W.md ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SEMI-SUPERVISED OUTLIER DETECTION USING GEN-ERATIVE AND ADVERSARY FRAMEWORK
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In a conventional binary/multi-class classification task, the decision boundary is supported by data from two or more classes. However, in one-class classification task, only data from one class are available. To build a robust outlier detector using only data from the positive class, we propose a corrupted GAN (CorGAN), a deep convolutional Generative Adversary Network requiring no convergence during the training process. In the adversarial process of training the CorGAN, the Generator is supposed to generate outlier samples for the negative class, and the Discriminator is trained to distinguish training datasets (i.e., positive samples) from generated data from the Generator (i.e., negative samples). We also propose a lot of techniques to improve the performance of the built classifier (i.e., the Discriminator). The proposed model outperforms the traditional method $\mathrm { P C A } +$ PSVM (Scholkopf et al., 2000) and the solution based on Autoencoder (Thompson ¨ et al., 2002).
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ (Hodge & Austin, 2004) addresses three fundamental approaches detecting outliers. The first approach is unsupervised clustering that identifies outliers without using any prior knowledge of the data. The second approach, supervised classification, requires labeled data from both positive class and negative class. The third addressed approach detects outliers using only data from the positive class via semi-supervised learning. Semi-supervised learning has gained increasing attention in recent years. One-class classification(OCC), as a typical semi-supervised learning technique, is applied to detect outliers using only positive examples from one class. The semi-supervised learning in this paper focuses on the OCC technique.
12
+
13
+ To motivate the importance of OCC, we first make an introduction to a classic application scenario. In industry, machine monitoring system is used everywhere to detect machine faults. A classifier should be constructed to detect when the machine behaves abnormally. Obviously, the training data for the positive class is easy to obtain by measuring the normal operations of the machine. However, only limited training data is available, even totally unavailable. In such case, a classifier should be built only on positive training data. This kind of task is known as OCC task. The name ”oneclass classification” originates from the paper Moya et al. (1993). Other researchers also present similar tasks with other terms such as Outlier Detection (Ritter & Gallegos, 1997), Novelty Detection (Bishop, 1994) or Concept Learning (Japkowicz, 1999). They are used interchangeably in this paper, even though they have specific meanings in other works. One-class classification can be used not only in machine monitoring task but also in many other domains, e.g. Text mining (Basu et al., 2004), Sentiment Analysis (Agarwal et al., 2015) and IT security (Lakhina et al., 2005).
14
+
15
+ Many solutions have been proposed to solve the one-class classification problem. However, almost none of them shows acceptable performance in high-dimensional space. Neural Network with deep architecture is well known for the ability to manipulate high-dimensional data. It achieves state-ofart results in speech recognition, visual object recognition, object detection and many other domains such as drug discovery and genomics (LeCun et al., 2015). This paper applies a neural network with deep architecture in outlier detection task. Generative adversary framework(GAN) is composed of a Generator $G$ that can be used to generate outliers and a Discriminator that can be trained as a binary classifier. The framework is a potential solution to detect outliers through generating counterexamples. Usually, the Nash equilibrium of the training process of GANs cannot be guaranteed in practice. Our proposed model requires no convergence of the training process since the $G$ is used to generate only outliers instead of high-quality images that are from the distribution the training dataset. The proposed deep architecture solution is implemented, analyzed and compared to other methods.
16
+
17
+ The first section introduces the one-class classification problem and a potential solution with deeparchitecture neral network. The second section presents the work related to one-class classification problems (i.e., semi-supervised outlier detection). Then, the two primary steps of our solution for one-class classification problem are described in the third section, namely, the training step to optimize model and the detecting step to make an inference. Next, the fourth section proposes a technique to break Nash equilibrium so that the $G$ of GAN can keep generating outliers. Besides, this section also proposes other techniques to improve. The fifth section shows experiments, analyzes the results and compares the performance with that of other methods. Finally, the last section concludes our work and describes future work that remains to be further researched.
18
+
19
+ # 2 RELATED WORK
20
+
21
+ Five approaches to solve OCC problem are summarized in (Pimentel et al., 2014). Probabilistic approach estimates the generative probability density function (pdf) of the data from the positive class. The boundaries of normality in the data space are defined by the resultant distribution together with a specified threshold, and an unseen sample is tested whether it comes from the same distribution or not. Thereinto, Gaussian Mixture Models (GMMs) (Lindsay et al., 1989; Bishop, 2006) and Kernel Density Estimators (Parzen, 1962; Vincent & Bengio, 2003; Bengio et al., 2006) have proven to be popular. This approach requires complete density estimation in the feature space. If the data in feature space are high dimensional, huge amounts of data are required to fit the model because of the curse of dimensionality. Only when the data from the target class are large enough can this kind of method perform well. Another well-known approach, Reconstruction-based approach, first train a model minimising the reconstruction error of training data with positive labels. Then, the trained model assigns an outlier score, the distance between the input representation vector and the output of the model, for each test example. (Markou & Singh, 2003) reviews lots of the neural network-based methods. Additionally, PCA can also detect outliers by comparing the example before and after transformation. The reconstruction error approach abandons some information with low variance during reconstruction. However, the abandoned low-variance information has proven to be most informative (Tax & Muller, 2003). ¨
22
+
23
+ Additionally, Distance-based approach, e.g. Nearest neighbour-based methods (Bay & Schwabacher, 2003; Breunig et al., 2000) and Clustering-based methods (Barbara et al., 2002; He ´ et al., 2003), avoids estimating pdf explicitly, but it requires a well-defined distance/similarity measure, which is especially difficult in high-dimensional space. Another approach is domain-based, which creates the boundary based on the structure of normal data without considering the density of the positive class. One-class SVM (Scholkopf et al., 2000) and Support vector data description ¨ (SVDD) (Tax & Duin, 1999) are two basic ones. However, the choice of an appropriate kernel function is not easy, which determines the computational cost. Moreover, the hyperparameters that control the tightness of the boundary are also difficult to select. Lastly, Information-theoretic approach tries to distinguish normal data and outliers by computing information content of dataset using information measure. Similarly, the selection of appropriate information-theoretic measure is challenging.
24
+
25
+ The approaches described above learn from available positive samples only. Approaches that learn from both target samples and artificial outliers are also researched. (Hempstalk et al., 2008; Fan et al., 2004) generate outlier with a predefined distribution. The strong assumptions about the outlier data distribution in these approaches may be violated in real datasets (Abe et al., 2006). (Tax & Duin, 2001) proposes a method for generating artificial outliers, uniformly distributed in a hypersphere. However, in high-dimensional data space, their proposed technique is not feasible anymore because it is tough to get a confident estimate of the target volume due to the large difference in volume of the target and outlier class. (Banhalmi et al., 2007) extends dataset by generating outlier ´ examples distributed around the positive class. The approach first finds boundary points explicitly using SVM, which is computationally expensive. Then it generates negative examples only around positive class using a distance measure, which causes infeasibility in high-dimensional space. Our proposed CorGAN generates negative examples including both ones around the positive class and ones far from the positive class. Moreover, the model requires no explicit distance measure and does not need to find boundary points explicitly.
26
+
27
+ Neural networks with deep architecture have already been used in OCC task, but mostly in Reconstruction error approaches (Markou & Singh, 2003). To our knowledge, our proposed CorGAN is the first work to generate outliers for OCC via deep architecture (i.e., Generative Adversary Network). A variant of the GAN framework (CatGAN) is applied to solve multi-class classification task in unsupervised or semi-supervised fashion (Springenberg, 2015). (Odena, 2016) does a further research about semi-supervised learning using GANs. (Schlegl et al., 2017) proposes AnoGAN to apply GAN in Anomaly Detection, which requires the Nash-equilibrium at the end of the training process. Nevertheless, all variants of GAN and the original one are known for its unstable training process.
28
+
29
+ # 3 OUTLIER DETECTION USING CORGAN
30
+
31
+ The proposed model and the improved techniques can be generalized to various kinds of data. To show the performance in high-dimensional space, we illustrate our model on image data. The proposed parametric method is composed of two steps:
32
+
33
+ 1. Training Step: Training the CorGAN with the improved techniques;
34
+ 2. Inference Step: Detecting outliers using the resulting $D$ of the trained CorGAN
35
+
36
+ # 3.1 GENERATIVE ADVERSARY NETWORK
37
+
38
+ Generative Adversary Network(GAN) is a framework for training generative models via an adversarial process (Goodfellow et al., 2014). The framework consists of two components, a generative model (Generator $G$ ) and a discriminative model (Discriminator $D$ ). The $G$ aims to capture the data distribution. The $D$ estimates the probability that a sample came from the training data rather than the Generator. This framework corresponds to a minimax two-player game. In the training procedure, the $D$ is trained to distinguish samples in training datasets from generated samples by assigning a high probability to the former and a low probability to the latter. Contrarily, the objective of $G$ is to maximize the probability of $D$ making a mistake. After the Nash-equilibrium of the training process, the output probability of the $D$ is always 0.5. In case of the convergence, the $G$ is capable of generating realistic images that have same/similar distribution as in training dataset, and the $D$ cannot make right discrimination anymore. The biggest advantage of this framework is that no Markov chains or unrolled approximate inference networks are required in the training and sampling process.
39
+
40
+ # 3.2 STEP1: TRAINING THE CORGAN
41
+
42
+ Architectures of the Generator and the Discriminator are neural networks, such as Multilayer Perceptron, Deep Convolutional Neural Network (LeCun et al., 1989), Convolutional Neural Network Cascade (Springenberg, 2015) and Recurrent Neural Network (Rumelhart et al., 1988). The BackPropagation algorithm can be used to train both the generative model and the discriminative model. The architecture applied in the proposed CorGAN is shown in Figure 1.
43
+
44
+ The $G$ generally starts from prior distribution $p _ { z } ( z )$ (input noise variable $_ z$ ). In the case of convergent GANs, the $G$ maps the prior distribution to the training data distribution $p _ { i n l i e r } ( { \pmb x } )$ . The $G$ of CorGAN is used to generate outlier examples. Hence, it is supposed to map the prior distribution to outlier data distribution $G ( z ; \theta _ { g } )$ instead of the training data distribution. As usual, the $D$ maps the input (i.e. the training data or the generated samples) to a single scalar, which represents the probability that the input came from training datasets instead of the $G$ . The target value of the $D$ is $a _ { t } = 1$ for the input data from training dataset and $a _ { o } = 0$ for the input data generated by the $G$ . The $D$ as a binary classifier is trained to minimize the cost V(D):
45
+
46
+ $$
47
+ \displaystyle { \operatorname* { m i n } _ { D } V ( D ) = \mathbb { E } _ { z \sim p _ { z } ( z ) } \log ( D ( G ( z ) ) - a _ { o } ) + \mathbb { E } _ { { \mathbf { x } } \sim p _ { i n l i e r } ( { \mathbf { x } } ) } \log ( a _ { t } - D ( { \mathbf { x } } ) ) }
48
+ $$
49
+
50
+ The objective of the $G$ of the CorGAN is to fool the D, but not necessarily maximise the probability D making a mistake. The new target value is $a _ { n e w } \in [ 0 , 1 ]$ (see section 4.2). The $G$ of the CorGAN
51
+
52
+ ![](images/b0691fb608dbcbacd24c0cc26dcae649d23a97aefb6b0fa4cc6e96ced0eede19.jpg)
53
+ Figure 1: The basic architecture of the CorGAN
54
+
55
+ is trained to minimise the cost U(G):
56
+
57
+ $$
58
+ \operatorname* { m i n } _ { G } U ( G ) = \mathbb { E } _ { z \sim p _ { z } ( z ) } \log ( | a _ { n e w } - D ( G ( z ) ) | )
59
+ $$
60
+
61
+ The CorGAN model is updated via back-propagation algorithm. If the $D$ is overly optimised without updating the $G$ , it will result in overfitting problem. The $D$ and the $G$ will be updated simultaneously or alternately to avoid the problem, e.g. k steps of optimizing the $D$ and one step of optimizing the $G$ . The traditional GANs reach Nash equilibrium after several training epochs. The new objective of the $G$ of CorGAN breaks Nash equilibrium of the training process, which causes that the $G$ can keep generating outlier samples.
62
+
63
+ The inlier data is taken as training data in the CorGAN. In the adversarial process of training CorGAN, the $G$ is supposed to generate outlier samples for the negative class. The $D$ is trained to assign a high probability value to data from training datasets (i.e., the positive class) and a small probability value to generated data from the G (i.e., the negative class). The generated outliers not only distribute around the positive class but also cover feature space far away from the positive class. In order that the $G$ can map a prior distribution to a huge data space except for the positive class, we proposed a lot of improved techniques (section 4).
64
+
65
+ # 3.3 STEP2: DETECTING OUTLIERS USING DISCRIMINATOR
66
+
67
+ In the inference step, the resulting $D$ outputs a relatively high probability for data subjective to the distribution $p _ { i n l i e r }$ and a relatively low probability for data not from the distribution $p _ { i n l i e r }$ . That is to say that, if the output is a low probability in the outlier-detecting process, the input is predicted as an outlier. What is a low probability? So, we need a probability threshold to decide whether an output probability is high or low. The output of the sigmoid activation function of the last layer is a scalar value in the interval $( 0 , 1 )$ , we can intuitively set $t$ as the threshold. In that case, the input is an outlier, if the output from the $D$ is small than $t$ , otherwise an inlier.
68
+
69
+ The one-class classification task is an extreme case of the imbalanced training. The optimal value of the threshold $t$ is not 0.5. It mainly depends on how the model is trained and the concrete application scenario. If the model is trained by specifying a new objective for the $G$ (like in CorGAN), the $D$ model learns distribution from training datasets for a long time. However, the $D$ is trained with data from a more extensive outlier distribution using the same time. The resulting $D$ will present a relatively higher probability for data that follow the same distribution as the training data (i.e., for inliers). So, the threshold $t$ with a value higher than 0.5 shows a better performance. We do not evaluate the $D$ on a single user-specified threshold.
70
+
71
+ One-class classification, also called Outlier Detection, can be evaluated with F1-score, which is harmonic mean of precision and recall. The accepted fraction of the positive class $f _ { T + }$ and the rejected fraction of the negative class $f _ { O - }$ are both together also as a popular measure for OCC. However, the score of those measures strongly depends on the specified threshold. To justify our model objectively, the performance of the $D$ in this paper will be evaluated with Receiver operating characteristic curve (ROC) and Area under the ROC curve (AUC). The robustness of the built $D$ will be tested on various datasets.
72
+
73
+ # 4 IMPROVED TECHNIQUES FOR GAN IN OCC
74
+
75
+ If the training process reaches Nash equilibrium, the $G$ is able to generate examples following the distribution $p _ { i n l i e r }$ (see figure 2), and the output probability of the $D$ is always 0.5 for inliers and an unexpected value for outliers. It is difficult to distinguish outliers from inliers via a threshold. Our proposed corrupted generative adversary network (CorGAN) is a GAN without convergence. To avoid the Nash equilibrium that the training process can reach, we propose several techniques to break the convergence and build a robust outlier identifier. Thereinto, specifying a new objective for the $G$ is a basic one to keep it generating outlier samples, and other optional techniques further improve the performance of the model.
76
+
77
+ ![](images/b282e3949b137bb05b809ba6630e74990cf02e792104df3e154b5d11dd8c22d5.jpg)
78
+ Figure 2: Comparison between the generated data and the training data: The images of handwritten digit nine are training data. After several training epochs, the generated images and the training data are visualised in the figure.
79
+
80
+ # 4.1 EARLY STOPPING
81
+
82
+ In early training epochs (i.e., before convergence), the $G$ has no ability to generate data that follows the distribution $p _ { i n l i e r }$ . Meanwhile, the $D$ is trained with the training data with positive labels and the generated data with negative labels. Distributions from $G$ are different from the distribution of training datasets before convergence. The $D$ recognizes the distribution of training datasets by presenting a high probability. Early Stopping before convergence can obtain a well-behaved Discriminator.
83
+
84
+ In term of implementation of this technique, we do not explicitly stop the training at a particular epoch, but always save the best model. Similar to the model selection, we take the best Discriminator as the final classifier, which appears definitely before the convergence of the training process. The performance of the $D$ is tested regularly during the training process. The score Area Under the Curve of $f _ { T + }$ (inlier accepted fraction), called positively biased AUC (see figure 3) is used to evaluate the performance of the $D$ . The $D$ saved with best biased AUC score shows not optimal but near-optimal performance on the test datasets. The objective of Early Stopping is defined as follows:
85
+
86
+ $$
87
+ \operatorname* { m a x } _ { D } A U C _ { b i a s e d } = \int _ { 0 } ^ { 1 } f _ { T + } ( t ) d t
88
+ $$
89
+
90
+ where $t$ is the threshold and $f _ { T + } ( t )$ is inlier accepted fraction of the Discriminator given the specific threshold $t$ .
91
+
92
+ ![](images/a9528f61872dc2205ff7dd657ee76cbca461c73439f091c6ab5769fdab4e713f.jpg)
93
+ Figure 3: Area Under the Curve of inlier accepted fraction: The figure describes the relationship between the inlier accepted fraction and the specified threshould. Given the specified threshold $0 . 7$ , the point $P$ in the curve corresponds to the accepted fraction of inliers 0.68. Since no outlier is available, the area under this curve (positively biased AUC) is a good measure to select the near optimal model.
94
+
95
+ Table 1: The behavior of the $G$ and the performance of the $D$ are presented in case of different new target values.
96
+
97
+ <table><tr><td rowspan=1 colspan=1>new target value anew</td></tr><tr><td rowspan=1 colspan=1>anew = 1: The objective of G is the exact same as that of the convergent GAN(Goodfellow et al., 2014). The training will converge.</td></tr><tr><td rowspan=1 colspan=1>anew E (~ O.9,1): The such adjustment of the objective of the G is proposed in(Salimans et al.,2O16) to improve the training process of GANs. The training processwill converge as well.</td></tr><tr><td rowspan=1 colspan=1>anew ∈ (~ O.5,~ 0.9): The G will generate data far from the distribution pinlierat the beginning of the training phase because of the random initialization.After several training epochs,it will generate data that distribute around the positive class.The tighter the boundary is,the larger space the generated data cover. The value 0.9results in most tight boundary.</td></tr><tr><td rowspan=1 colspan=1>anew ∈ [0,~ O.5): The G has similar objective to that of the D. It will tend togenerate data,from which the D can easily distinguish the training data. That is to say that allthe generated data distribute far from the distribution Pinlier·</td></tr></table>
98
+
99
+ # 4.2 SPECIFYING A NEW OBJECTIVE FOR THE GENERATOR
100
+
101
+ Even though Early Stopping avoids the problem the convergence causes, GAN can only be trained with a limited number of epochs. Hence, Early Stopping can only guarantee a high inlier accepted fraction $f _ { T + }$ , but not necessarily high outlier rejected fraction $f _ { O - }$ because the $\mathbf { D }$ is only trained with a certain number of generated samples (i.e., outliers). To build a robust outlier identifier against as many kinds of outlier distributions as possible, we should train the $D$ with as many generated samples as possible, which have different distribution from the distribution $p _ { i n l i e r }$ .
102
+
103
+ We can explicitly break Nash equilibrium by specifying a new objective for $G$ . Without modification, the objective of $G$ is to maximise the probability of the $D$ making a mistake. We propose a new objective for $G$ :
104
+
105
+ $$
106
+ \operatorname* { m i n } _ { G } U ( G ) = \mathbb { E } _ { z \sim p _ { z } ( z ) } \log ( | 0 . 9 - D ( G ( z ) ) | )
107
+ $$
108
+
109
+ Instead of maximising the probability that $D$ makes a mistake, the new objective is that the $D$ makes a mistake with a certain probability. The new target value used to calculate the cost for updating the $\mathbf { G }$ is $a _ { n e w } = 0 . 9$ . The choice of the value $a _ { n e w }$ is justified in the table 1. In case of $a _ { n e w } = 0 . 9$ , the $G$ explores the largest space, and the built $D$ will show robust performance.
110
+
111
+ # 4.3 ATTACHING MORE IMPORTANCE TO GENERATED DATA
112
+
113
+ The cost of the $D$ consists of two parts. These two parts are caused respectively by the training data and the generated data. Generally, the two parts are simply added together as the total cost for updating the parameters of the $D$ . That is to say that the training data and the generated data are treated with the same importance. They can be treated differently by assigning a weight to one of them to broaden the search space of parameters. The objective of the $D$ is defined as follows:
114
+
115
+ $$
116
+ \operatorname* { m i n } _ { D } V ( D ) = \mathbb { E } _ { z \sim p _ { z } ( z ) } \log ( D ( G ( z ) ) - a _ { o } ) + w * \mathbb { E } _ { { \pi } \sim p _ { i n l i e r } ( { \bf x } ) } \log ( a _ { t } - D ( { \bf x } ) )
117
+ $$
118
+
119
+ , where $w \in ( 0 , 1 )$ is a hyperparameter. The value of $w$ can be selected by validation process with positively biased AUC score. While the outlier distributions are various and difficult to recover all of them, the inlier distribution is rather simple and easy to learn. During the training process, the cost that generated data caused should be reduced as far as possible by updating parameters of the $D$ . In other words, the generated data should be attached more importance by specifying the value of weight. Compared to the general case that the two parts of cost are not treated differently, this method shows a better performance on the test datasets whose distributions are far from the training dataset.
120
+
121
+ # 4.4 COMBINING PREVIOUSLY GENERATED DATA
122
+
123
+ Compared to the method of Early Stopping, the method of specifying a new objective for G presents a better performance, because the new objective trains $D$ with arbitrarily more generated data that are not from the distribution $p _ { i n l i e r }$ . With the new specified objective, the training procedure does not converge, and the $G$ is able to keep generating outliers. The $D$ can be trained with arbitrarily many generated distributions. However, the space of distribution learned by $D$ is limited to a great extent. On the one hand, the generated distribution always stays near the positive class after several training epochs. On the other hand, the $D$ can forget the previously learned distributions because of the limited capacity.
124
+
125
+ In this subsection, we proposed a technique to broaden the learned distributions. The performance of the $D$ can be improved by being regularly trained with previously generated data. We can train the CorGAN with mini batches (batch size $s$ ) that combine the data generated recently and previously. The combined training data can avoid that the $D$ forgets the learned distribution to some degree.
126
+
127
+ There exist a large amount of generated data in the training procedure. Which ones should be chosen to train $D$ and prevent it forgetting the previously generated distributions? Because the generated data can be arbitrarily many, it is inadvisable and impossible to save all of them. In this case, the generated data can be treated as stream data $\left( X _ { 1 } , X _ { 2 } , \ldots , X _ { t } \right)$ . We apply a Reservoir Sampling Algorithm (Vitter, 1985) to sample previously generated images. This algorithm samples examples from the stream data with the same probability (see equation 6) and specifies a reservoir $R$ to save the sampled examples.
128
+
129
+ $$
130
+ P ( X _ { i } \in R ) = \frac { 1 } { t - ( s / 2 ) }
131
+ $$
132
+
133
+ , where $i \in [ 1 , t - ( s / 2 ) ]$ . The mini batches that are composed of newly generated examples and the sampled examples saved in a reservoir is used to train $D$ . The mini batch $B$ at the timestamp $t$ is defined as follows:
134
+
135
+ $$
136
+ B = \left\{ R , X _ { t - ( s / 2 ) + 1 } , X _ { t - ( s / 2 ) + 2 } , \ldots , X _ { t } \right\}
137
+ $$
138
+
139
+ , where $R$ is the reservoir. The objective of the $D$ remains unchanged in the equation 1. The resultant $D$ can identify not only recently generated outliers but also previous ones.
140
+
141
+ # 5 EXPERIMENTS AND ANALYSIS
142
+
143
+ In this section, we justify our proposed model and improved techniques with experiments. To demonstrate the robust performance of the built classifier, we evaluate the $D$ on various outlier datasets. We describe the experiment settings of our models and the models to be compared. The experiment results, followed by a strong discussion, are presented in this section.
144
+
145
+ Table 2: Training -, validation - and test datasets of experiments setting.
146
+
147
+ <table><tr><td>Datasets:</td><td>Source of images:</td><td>The Number of images:</td></tr><tr><td>Training dataset</td><td>digit of 9 in MNIST</td><td>4967</td></tr><tr><td>Validation dataset</td><td>digit of 9 in MNIST</td><td>900</td></tr><tr><td rowspan="4">Test dataset</td><td>Inliers: digit of 9 in MNIST</td><td>900</td></tr><tr><td>1.Outliers: digits of O-8 in MNIST</td><td>900</td></tr><tr><td>2.Outliers: CIFAR10</td><td>900</td></tr><tr><td>3.Outliers: Images composed of noise</td><td>900</td></tr></table>
148
+
149
+ # 5.1 DATASETS AND EVALUATION:
150
+
151
+ Three datasets are used in the experiments, namely, MNIST (LeCun et al., 1998), CIFAR10 (Krizhevsky, 2009) and an artificial noise image dataset. The image size in MINIST is (28, 28). The size of CIFAR10 images is cropped into (28, 28) by removing pixels along the sides. Especially, we specify a dataset composed of three group of noise images with the same size (28, 28). The values of their pixels are respectively subject to uniform distribution, Gaussian distribution and random values. The table 2 lists training dataset, validation dataset and test datasets. The performance of various approaches will be evaluated and compared with Receiver Operating Characteristic (ROC) and the Area Under the ROC Curve (AUC).
152
+
153
+ # 5.2 EXPERIMENTS SETTING:
154
+
155
+ PCA+PSVM: PCA is used to reduce the dimensionality of the high-dimensional data (i.e., images). The number of components K is set such that $9 5 \%$ of the variance is retained $\scriptstyle ( \mathrm { K = 1 } 1 1 $ ). Oneclass SVM proposed in (Scholkopf et al., 2000) is plane-based, called PSVM. To identify outliers ¨ in the feature space, PSVM tries to find a hyperplane that best separates the data from the origin. RBF kernel is used in this experiment. Other settings are defaults in sklearn.svm.OneClassSVM (Pedregosa et al., 2011).
156
+
157
+ Autoencoder: Autoencoder detects outliers by computing reconstruction error and compares it with a specified threshold. The threshold is based on the difference between the inputs and outputs for the training data. If the reconstruction error for a test sample is larger than the threshold, then the sample is identified as an outlier, otherwise as inlier. To justify our proposal, we compare our model to convolutional autoencoder. The encoder has the same architecture as the Discriminator in CorGAN except for output layer. The decoder also has a same architecture as the Generator in CorGAN. The model is regularised with weight decay $\lambda = 0 . 0 1$ . The parameters are updated with SGD optimisation algorithm, minibatc $\scriptstyle \imath = 1 2 8$ and learning rate $l r { = } 0 . 1$ . The cost function is the cross-entropy function. The model is trained for 30 epochs without pretraining.
158
+
159
+ CorGAN: The basic architecture of CorGAN, as well as the number of its layers and units, is shown in figure 1. We propose a lot of improved techniques. Since its combinations are numerous, we justify only three main models. The first model is a basic one, $\mathrm { C o r G A N } = \mathrm { G A N }$ with early stopping technique and a new objective for the $G$ (see section 4.2). The new target value $a _ { n e w }$ is set manually to 0.9 for the $G$ . The $G$ is regularised with weight decay $\lambda = 0 . 1$ . The optimisation algorithm is Adam, minibatch $= 1 2 8$ and learning rate $l r = 0 . 0 0 0 2$ . No pretraining is performed. The second model to be justified is based on the first one, $\mathrm { C o r G A N ^ { 2 } = C o r G A N + }$ Attaching more importance to generated images (see section 4.3). The weight is set to 0.5 manually. The third illustrated model is also based on the first one, $\mathrm { C o r G A N ^ { 3 } \bar { \ s } = C o r G A N \ s + \Delta }$ Combining previously generated images (see section 4.4). The minibatch size is composed of 64 images sampled from previous training epoch and 64 newly generated images.
160
+
161
+ # 5.3 RESULTS AND ANALYSIS:
162
+
163
+ The results of the experiments are shown in the figure 4 and the table 3. The outlier distribution of the handwritten digits images of the numbers (0-8) is relatively close to the inlier distribution of the number 9. Hence, all the approaches show the worse AUC scores on the first test dataset. The $\mathrm { P C A + P S V M }$ approach shows the better score on the second test dataset than on the noise test dataset. The traditional approach is not robust enough for noise outliers. The solutions based on neural networks often show a better performance against noise data because of the random initialization of its parameters. Especially, our proposed solution based on GAN framework, in which Generator generates many noise examples. The convolutional autoencoder can reconstruct natural images well by detects edges, corners and objects. Therefore, the convolutional autoencoder shows the poor score on natural images. Our proposed solution classifies test examples without reconstruction process, which shows robust performance against outlier natural images as well as noise images.
164
+
165
+ ![](images/596ea6ac1282ab797e6dc3c1a138bfb8fc3bae75d6216625d1ecd5e9bda53ae6.jpg)
166
+ Figure 4: The figures show the ROC curves of all models on three differenct test datasets. The area under the ROC curve represents the overall performance of a one-class classifier. The model $\mathrm { C o r G A N ^ { 3 } }$ shows robust performance on all the three datasets.
167
+
168
+ Table 3: The AUC socres of various models are shown in the table. All the models are tested in three datasets: MNIST(9) $^ +$ MNIST(0-8), MNIST(9) $^ +$ CIFAR10, MNIST(9) $^ +$ Noise. Within MNIST(9) images are inliers, and other images are outliers. CorGAN, $\mathrm { C o r G A N ^ { 2 } }$ and $\mathrm { C o r G A N ^ { 3 } }$ are described in section 5.2.
169
+
170
+ <table><tr><td rowspan=3 colspan=1></td><td rowspan=1 colspan=3>AUC score:</td></tr><tr><td rowspan=1 colspan=3>MNIST(9)</td></tr><tr><td rowspan=1 colspan=1>MNIST(0-8)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>Noise</td></tr><tr><td rowspan=1 colspan=1>PCA+PSVM</td><td rowspan=1 colspan=1>0.8623</td><td rowspan=1 colspan=1>0.9720</td><td rowspan=1 colspan=1>0.9302</td></tr><tr><td rowspan=1 colspan=1>Autoencoder</td><td rowspan=1 colspan=1>0.8943</td><td rowspan=1 colspan=1>0.6785</td><td rowspan=1 colspan=1>0.9704</td></tr><tr><td rowspan=1 colspan=1>CorGAN</td><td rowspan=1 colspan=1>0.8974</td><td rowspan=1 colspan=1>0.9739</td><td rowspan=1 colspan=1>0.9995</td></tr><tr><td rowspan=1 colspan=1>CorGAN2</td><td rowspan=1 colspan=1>0.8343</td><td rowspan=1 colspan=1>0.9937</td><td rowspan=1 colspan=1>0.9999</td></tr><tr><td rowspan=1 colspan=1>CorGAN3</td><td rowspan=1 colspan=1>0.9253</td><td rowspan=1 colspan=1>0.9943</td><td rowspan=1 colspan=1>0.9999</td></tr></table>
171
+
172
+ Compared to CorGAN, $\mathrm { C o r G A N ^ { 2 } }$ attaches more importance to generated images, which makes classifier more robust again the outliers whose distribution is far from inlier distribution. In consequence, $\mathrm { C o r G A N ^ { 2 } }$ shows the low score on the first dataset, in which the distributions of inliers and outliers are relatively close. In the model $\mathrm { C o r G A N ^ { 3 } }$ , the outlier examples generated previously are combined with newly generated examples to train the Discriminator. In this way, the Discriminator learned a large space of outlier distribution. The model $\mathrm { C o r G A N ^ { 3 } }$ shows the best scores on various test datasets. The robust $\mathrm { C o r G A N ^ { 3 } }$ learns a tight boundary in high-dimensional space. The farther the outlier distribution is from the inlier distribution $p _ { i n l i e r }$ , the better score it shows (see figure 4d).
173
+
174
+ # 6 CONCLUSION AND FUTURE WORK
175
+
176
+ In this paper, we present a solution to solve one-class classification problem based on GAN framework and successfully apply the Discriminator of the framework to detect outliers. We illuminate a few techniques to improve the performance and verify the proposed techniques with experiments. First, we choose the near optimal model to detect outliers by saving a better model during the training procedure. Then we specify a new objective for the $G$ so that it can keep generating outliers. Attaching more importance to generated images can further improve the performance of the $D$ . To prevent the $D$ forgetting the previously generated outliers, we combine previously generated outliers from the Generator to train the outlier identifier. These techniques show comparable AUC scores.
177
+
178
+ In future work, We can further vary the generated outliers to train $D$ . We can specify multiple Generators in the generative adversary framework. The mini batch can combine the data generated by different Generators, which have different objectives, e.g. the different probabilities of D making a mistake. To further explore more generated distribution used to train the $D$ , we can even combine CorGAN with other generative models. Similarly, we must also change the objective of them to fit our goal, since the other generative models are also supposed to generate outliers.
179
+
180
+ All the proposals in this paper do not leverage distance information(KLD) between distributions within a batch both in the training process and detecting process. Another topic worth studying is the clustering-based method to detect outlier using $D$ of GAN. One potential method of leveraging distance information is to model the closeness between examples in a mini-batch. The modeling process is described in Minibatch Discrimination (Salimans et al., 2016), an improved technique for training GANs.
181
+
182
+ Regarding the task of detecting of outlier images, we will try to identify more fine attributes of images. For instance, the built outlier identifier should be able to distinguish images taken under different illumination as well as different viewpoints, which describe the same object. Furthermore, we can take images of a group of objects as inliers. We will build a one-class classifier to make a decision whether the object described by the given image comes from the group.
183
+
184
+ # REFERENCES
185
+
186
+ Naoki Abe, Bianca Zadrozny, and John Langford. Outlier detection by active learning. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 504–509. ACM, 2006.
187
+
188
+ Basant Agarwal et al. One-class support vector machine for sentiment analysis of movie review documents. World Academy of Science, Engineering and Technology, International Journal of Computer, Electrical, Automation, Control and Information Engineering, 9(12):2458–2461, 2015.
189
+
190
+ Andras B ´ anhalmi, Andr ´ as Kocsor, and R ´ obert Busa-Fekete. Counter-example generation-based ´ one-class classification. In ECML, pp. 543–550. Springer, 2007.
191
+
192
+ Daniel Barbara, Yi Li, and Julia Couto. Coolcat: an entropy-based algorithm for categorical clus- ´ tering. In Proceedings of the eleventh international conference on Information and knowledge management, pp. 582–589. ACM, 2002.
193
+
194
+ Sugato Basu, Mikhail Bilenko, and Raymond J Mooney. A probabilistic framework for semisupervised clustering. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 59–68. ACM, 2004.
195
+
196
+ Stephen D Bay and Mark Schwabacher. Mining distance-based outliers in near linear time with randomization and a simple pruning rule. In Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 29–38. ACM, 2003.
197
+
198
+ Yoshua Bengio, Hugo Larochelle, and Pascal Vincent. Non-local manifold parzen windows. In Advances in neural information processing systems, pp. 115–122, 2006.
199
+
200
+ Christopher M Bishop. Novelty detection and neural network validation. IEE Proceedings-Vision, Image and Signal processing, 141(4):217–222, 1994.
201
+
202
+ Christopher M Bishop. Pattern recognition and machine learning. springer, 2006.
203
+
204
+ Markus M Breunig, Hans-Peter Kriegel, Raymond T $\mathrm { N g }$ , and Jorg Sander. Lof: identifying density- ¨ based local outliers. In ACM sigmod record, volume 29, pp. 93–104. ACM, 2000.
205
+
206
+ Wei Fan, Matthew Miller, Sal Stolfo, Wenke Lee, and Phil Chan. Using artificial anomalies to detect unknown and known network intrusions. Knowledge and Information Systems, 6(5):507– 527, 2004.
207
+
208
+ 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.
209
+
210
+ Zengyou He, Xiaofei Xu, and Shengchun Deng. Discovering cluster-based local outliers. Pattern Recognition Letters, 24(9):1641–1650, 2003.
211
+
212
+ Kathryn Hempstalk, Eibe Frank, and Ian H Witten. One-class classification by combining density and class probability estimation. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 505–519. Springer, 2008.
213
+
214
+ Victoria Hodge and Jim Austin. A survey of outlier detection methodologies. Artificial intelligence review, 22(2):85–126, 2004.
215
+
216
+ Nathalie Japkowicz. Concept-learning in the absence of counter-examples: an autoassociationbased approach to classification. PhD thesis, Rutgers, The State University of New Jersey, 1999.
217
+
218
+ A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
219
+
220
+ Anukool Lakhina, Mark Crovella, and Christophe Diot. Mining anomalies using traffic feature distributions. In ACM SIGCOMM Computer Communication Review, volume 35, pp. 217–228. ACM, 2005.
221
+
222
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
223
+
224
+ Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
225
+
226
+ Yann LeCun et al. Generalization and network design strategies. Connectionism in perspective, pp. 143–155, 1989.
227
+
228
+ Bruce Lindsay, G. L. Mclachlan, K. E. Basford, and Marcel Dekker. Mixture models: Inference and applications to clustering. Journal of the American Statistical Association, 84(405):337, 1989.
229
+
230
+ Markos Markou and Sameer Singh. Novelty detection: a reviewpart 2:: neural network based approaches. Signal processing, 83(12):2499–2521, 2003.
231
+
232
+ Mary M Moya, Mark W Koch, and Larry D Hostetler. One-class classifier networks for target recognition applications. Technical report, Sandia National Labs., Albuquerque, NM (United States), 1993.
233
+
234
+ Augustus Odena. Semi-supervised learning with generative adversarial networks. arXiv preprint arXiv:1606.01583, 2016.
235
+
236
+ Emanuel Parzen. On estimation of a probability density function and mode. The annals of mathematical statistics, 33(3):1065–1076, 1962.
237
+
238
+ F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
239
+
240
+ Marco AF Pimentel, David A Clifton, Lei Clifton, and Lionel Tarassenko. A review of novelty detection. Signal Processing, 99:215–249, 2014.
241
+
242
+ Gunter Ritter and Mar´ıa Teresa Gallegos. Outliers in statistical pattern recognition and an application to automatic chromosome classification. Pattern Recognition Letters, 18(6):525–539, 1997.
243
+
244
+ David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Cognitive modeling, 5(3):1, 1988.
245
+
246
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2226–2234, 2016.
247
+
248
+ Thomas Schlegl, Philipp Seebock, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg ¨ Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, pp. 146– 157. Springer, 2017.
249
+
250
+ Bernhard Scholkopf, Robert C Williamson, Alex J Smola, John Shawe-Taylor, and John C Platt.¨ Support vector method for novelty detection. In Advances in neural information processing systems, pp. 582–588, 2000.
251
+
252
+ Jost Tobias Springenberg. Unsupervised and semi-supervised learning with categorical generative adversarial networks. arXiv preprint arXiv:1511.06390, 2015.
253
+
254
+ David MJ Tax and Robert PW Duin. Support vector domain description. Pattern recognition letters, 20(11):1191–1199, 1999.
255
+
256
+ David MJ Tax and Robert PW Duin. Uniform object generation for optimizing one-class classifiers. Journal of machine learning research, 2(Dec):155–173, 2001.
257
+
258
+ David MJ Tax and Klaus-Robert Muller. Feature extraction for one-class classification. ¨ Lecture notes in computer science, pp. 342–349, 2003.
259
+
260
+ Benjamin Berry Thompson, Robert J Marks, Jai J Choi, Mohamed A El-Sharkawi, Ming-Yuh Huang, and Carl Bunje. Implicit learning in autoencoder novelty assessment. In Neural Networks, 2002. IJCNN’02. Proceedings of the 2002 International Joint Conference on, volume 3, pp. 2878–2883. IEEE, 2002.
261
+
262
+ Pascal Vincent and Yoshua Bengio. Manifold parzen windows. In Advances in neural information processing systems, pp. 849–856, 2003.
263
+
264
+ Jeffrey S Vitter. Random sampling with a reservoir. ACM Transactions on Mathematical Software (TOMS), 11(1):37–57, 1985.
parse/train/BkS3fnl0W/BkS3fnl0W_content_list.json ADDED
@@ -0,0 +1,1430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SEMI-SUPERVISED OUTLIER DETECTION USING GEN-ERATIVE AND ADVERSARY FRAMEWORK",
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": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In a conventional binary/multi-class classification task, the decision boundary is supported by data from two or more classes. However, in one-class classification task, only data from one class are available. To build a robust outlier detector using only data from the positive class, we propose a corrupted GAN (CorGAN), a deep convolutional Generative Adversary Network requiring no convergence during the training process. In the adversarial process of training the CorGAN, the Generator is supposed to generate outlier samples for the negative class, and the Discriminator is trained to distinguish training datasets (i.e., positive samples) from generated data from the Generator (i.e., negative samples). We also propose a lot of techniques to improve the performance of the built classifier (i.e., the Discriminator). The proposed model outperforms the traditional method $\\mathrm { P C A } +$ PSVM (Scholkopf et al., 2000) and the solution based on Autoencoder (Thompson ¨ et al., 2002). ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 764,
44
+ 446
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 474,
55
+ 336,
56
+ 491
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "(Hodge & Austin, 2004) addresses three fundamental approaches detecting outliers. The first approach is unsupervised clustering that identifies outliers without using any prior knowledge of the data. The second approach, supervised classification, requires labeled data from both positive class and negative class. The third addressed approach detects outliers using only data from the positive class via semi-supervised learning. Semi-supervised learning has gained increasing attention in recent years. One-class classification(OCC), as a typical semi-supervised learning technique, is applied to detect outliers using only positive examples from one class. The semi-supervised learning in this paper focuses on the OCC technique. ",
63
+ "bbox": [
64
+ 174,
65
+ 507,
66
+ 823,
67
+ 617
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "To motivate the importance of OCC, we first make an introduction to a classic application scenario. In industry, machine monitoring system is used everywhere to detect machine faults. A classifier should be constructed to detect when the machine behaves abnormally. Obviously, the training data for the positive class is easy to obtain by measuring the normal operations of the machine. However, only limited training data is available, even totally unavailable. In such case, a classifier should be built only on positive training data. This kind of task is known as OCC task. The name ”oneclass classification” originates from the paper Moya et al. (1993). Other researchers also present similar tasks with other terms such as Outlier Detection (Ritter & Gallegos, 1997), Novelty Detection (Bishop, 1994) or Concept Learning (Japkowicz, 1999). They are used interchangeably in this paper, even though they have specific meanings in other works. One-class classification can be used not only in machine monitoring task but also in many other domains, e.g. Text mining (Basu et al., 2004), Sentiment Analysis (Agarwal et al., 2015) and IT security (Lakhina et al., 2005). ",
74
+ "bbox": [
75
+ 174,
76
+ 625,
77
+ 825,
78
+ 791
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Many solutions have been proposed to solve the one-class classification problem. However, almost none of them shows acceptable performance in high-dimensional space. Neural Network with deep architecture is well known for the ability to manipulate high-dimensional data. It achieves state-ofart results in speech recognition, visual object recognition, object detection and many other domains such as drug discovery and genomics (LeCun et al., 2015). This paper applies a neural network with deep architecture in outlier detection task. Generative adversary framework(GAN) is composed of a Generator $G$ that can be used to generate outliers and a Discriminator that can be trained as a binary classifier. The framework is a potential solution to detect outliers through generating counterexamples. Usually, the Nash equilibrium of the training process of GANs cannot be guaranteed in practice. Our proposed model requires no convergence of the training process since the $G$ is used to generate only outliers instead of high-quality images that are from the distribution the training dataset. The proposed deep architecture solution is implemented, analyzed and compared to other methods. ",
85
+ "bbox": [
86
+ 174,
87
+ 799,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 823,
100
+ 159
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The first section introduces the one-class classification problem and a potential solution with deeparchitecture neral network. The second section presents the work related to one-class classification problems (i.e., semi-supervised outlier detection). Then, the two primary steps of our solution for one-class classification problem are described in the third section, namely, the training step to optimize model and the detecting step to make an inference. Next, the fourth section proposes a technique to break Nash equilibrium so that the $G$ of GAN can keep generating outliers. Besides, this section also proposes other techniques to improve. The fifth section shows experiments, analyzes the results and compares the performance with that of other methods. Finally, the last section concludes our work and describes future work that remains to be further researched. ",
107
+ "bbox": [
108
+ 173,
109
+ 166,
110
+ 825,
111
+ 291
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 318,
122
+ 344,
123
+ 334
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Five approaches to solve OCC problem are summarized in (Pimentel et al., 2014). Probabilistic approach estimates the generative probability density function (pdf) of the data from the positive class. The boundaries of normality in the data space are defined by the resultant distribution together with a specified threshold, and an unseen sample is tested whether it comes from the same distribution or not. Thereinto, Gaussian Mixture Models (GMMs) (Lindsay et al., 1989; Bishop, 2006) and Kernel Density Estimators (Parzen, 1962; Vincent & Bengio, 2003; Bengio et al., 2006) have proven to be popular. This approach requires complete density estimation in the feature space. If the data in feature space are high dimensional, huge amounts of data are required to fit the model because of the curse of dimensionality. Only when the data from the target class are large enough can this kind of method perform well. Another well-known approach, Reconstruction-based approach, first train a model minimising the reconstruction error of training data with positive labels. Then, the trained model assigns an outlier score, the distance between the input representation vector and the output of the model, for each test example. (Markou & Singh, 2003) reviews lots of the neural network-based methods. Additionally, PCA can also detect outliers by comparing the example before and after transformation. The reconstruction error approach abandons some information with low variance during reconstruction. However, the abandoned low-variance information has proven to be most informative (Tax & Muller, 2003). ¨ ",
130
+ "bbox": [
131
+ 174,
132
+ 354,
133
+ 825,
134
+ 590
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Additionally, Distance-based approach, e.g. Nearest neighbour-based methods (Bay & Schwabacher, 2003; Breunig et al., 2000) and Clustering-based methods (Barbara et al., 2002; He ´ et al., 2003), avoids estimating pdf explicitly, but it requires a well-defined distance/similarity measure, which is especially difficult in high-dimensional space. Another approach is domain-based, which creates the boundary based on the structure of normal data without considering the density of the positive class. One-class SVM (Scholkopf et al., 2000) and Support vector data description ¨ (SVDD) (Tax & Duin, 1999) are two basic ones. However, the choice of an appropriate kernel function is not easy, which determines the computational cost. Moreover, the hyperparameters that control the tightness of the boundary are also difficult to select. Lastly, Information-theoretic approach tries to distinguish normal data and outliers by computing information content of dataset using information measure. Similarly, the selection of appropriate information-theoretic measure is challenging. ",
141
+ "bbox": [
142
+ 173,
143
+ 598,
144
+ 825,
145
+ 763
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "The approaches described above learn from available positive samples only. Approaches that learn from both target samples and artificial outliers are also researched. (Hempstalk et al., 2008; Fan et al., 2004) generate outlier with a predefined distribution. The strong assumptions about the outlier data distribution in these approaches may be violated in real datasets (Abe et al., 2006). (Tax & Duin, 2001) proposes a method for generating artificial outliers, uniformly distributed in a hypersphere. However, in high-dimensional data space, their proposed technique is not feasible anymore because it is tough to get a confident estimate of the target volume due to the large difference in volume of the target and outlier class. (Banhalmi et al., 2007) extends dataset by generating outlier ´ examples distributed around the positive class. The approach first finds boundary points explicitly using SVM, which is computationally expensive. Then it generates negative examples only around positive class using a distance measure, which causes infeasibility in high-dimensional space. Our proposed CorGAN generates negative examples including both ones around the positive class and ones far from the positive class. Moreover, the model requires no explicit distance measure and does not need to find boundary points explicitly. ",
152
+ "bbox": [
153
+ 174,
154
+ 771,
155
+ 825,
156
+ 924
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 176,
165
+ 103,
166
+ 823,
167
+ 146
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Neural networks with deep architecture have already been used in OCC task, but mostly in Reconstruction error approaches (Markou & Singh, 2003). To our knowledge, our proposed CorGAN is the first work to generate outliers for OCC via deep architecture (i.e., Generative Adversary Network). A variant of the GAN framework (CatGAN) is applied to solve multi-class classification task in unsupervised or semi-supervised fashion (Springenberg, 2015). (Odena, 2016) does a further research about semi-supervised learning using GANs. (Schlegl et al., 2017) proposes AnoGAN to apply GAN in Anomaly Detection, which requires the Nash-equilibrium at the end of the training process. Nevertheless, all variants of GAN and the original one are known for its unstable training process. ",
174
+ "bbox": [
175
+ 174,
176
+ 152,
177
+ 825,
178
+ 279
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "3 OUTLIER DETECTION USING CORGAN",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 176,
188
+ 296,
189
+ 532,
190
+ 313
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "The proposed model and the improved techniques can be generalized to various kinds of data. To show the performance in high-dimensional space, we illustrate our model on image data. The proposed parametric method is composed of two steps: ",
197
+ "bbox": [
198
+ 176,
199
+ 327,
200
+ 823,
201
+ 369
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "1. Training Step: Training the CorGAN with the improved techniques; \n2. Inference Step: Detecting outliers using the resulting $D$ of the trained CorGAN ",
208
+ "bbox": [
209
+ 210,
210
+ 378,
211
+ 745,
212
+ 411
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "3.1 GENERATIVE ADVERSARY NETWORK ",
219
+ "text_level": 1,
220
+ "bbox": [
221
+ 176,
222
+ 426,
223
+ 475,
224
+ 441
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "Generative Adversary Network(GAN) is a framework for training generative models via an adversarial process (Goodfellow et al., 2014). The framework consists of two components, a generative model (Generator $G$ ) and a discriminative model (Discriminator $D$ ). The $G$ aims to capture the data distribution. The $D$ estimates the probability that a sample came from the training data rather than the Generator. This framework corresponds to a minimax two-player game. In the training procedure, the $D$ is trained to distinguish samples in training datasets from generated samples by assigning a high probability to the former and a low probability to the latter. Contrarily, the objective of $G$ is to maximize the probability of $D$ making a mistake. After the Nash-equilibrium of the training process, the output probability of the $D$ is always 0.5. In case of the convergence, the $G$ is capable of generating realistic images that have same/similar distribution as in training dataset, and the $D$ cannot make right discrimination anymore. The biggest advantage of this framework is that no Markov chains or unrolled approximate inference networks are required in the training and sampling process. ",
231
+ "bbox": [
232
+ 173,
233
+ 453,
234
+ 825,
235
+ 633
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "3.2 STEP1: TRAINING THE CORGAN ",
242
+ "text_level": 1,
243
+ "bbox": [
244
+ 176,
245
+ 650,
246
+ 444,
247
+ 664
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "Architectures of the Generator and the Discriminator are neural networks, such as Multilayer Perceptron, Deep Convolutional Neural Network (LeCun et al., 1989), Convolutional Neural Network Cascade (Springenberg, 2015) and Recurrent Neural Network (Rumelhart et al., 1988). The BackPropagation algorithm can be used to train both the generative model and the discriminative model. The architecture applied in the proposed CorGAN is shown in Figure 1. ",
254
+ "bbox": [
255
+ 174,
256
+ 676,
257
+ 823,
258
+ 746
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "The $G$ generally starts from prior distribution $p _ { z } ( z )$ (input noise variable $_ z$ ). In the case of convergent GANs, the $G$ maps the prior distribution to the training data distribution $p _ { i n l i e r } ( { \\pmb x } )$ . The $G$ of CorGAN is used to generate outlier examples. Hence, it is supposed to map the prior distribution to outlier data distribution $G ( z ; \\theta _ { g } )$ instead of the training data distribution. As usual, the $D$ maps the input (i.e. the training data or the generated samples) to a single scalar, which represents the probability that the input came from training datasets instead of the $G$ . The target value of the $D$ is $a _ { t } = 1$ for the input data from training dataset and $a _ { o } = 0$ for the input data generated by the $G$ . The $D$ as a binary classifier is trained to minimize the cost V(D): ",
265
+ "bbox": [
266
+ 173,
267
+ 751,
268
+ 825,
269
+ 863
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "equation",
275
+ "img_path": "images/2ba40a5211490384d6cd088f819c33de0d7965a3e2d9f9bf365f17707ed539e4.jpg",
276
+ "text": "$$\n\\displaystyle { \\operatorname* { m i n } _ { D } V ( D ) = \\mathbb { E } _ { z \\sim p _ { z } ( z ) } \\log ( D ( G ( z ) ) - a _ { o } ) + \\mathbb { E } _ { { \\mathbf { x } } \\sim p _ { i n l i e r } ( { \\mathbf { x } } ) } \\log ( a _ { t } - D ( { \\mathbf { x } } ) ) }\n$$",
277
+ "text_format": "latex",
278
+ "bbox": [
279
+ 243,
280
+ 864,
281
+ 751,
282
+ 888
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "The objective of the $G$ of the CorGAN is to fool the D, but not necessarily maximise the probability D making a mistake. The new target value is $a _ { n e w } \\in [ 0 , 1 ]$ (see section 4.2). The $G$ of the CorGAN ",
289
+ "bbox": [
290
+ 173,
291
+ 895,
292
+ 825,
293
+ 924
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "image",
299
+ "img_path": "images/b0691fb608dbcbacd24c0cc26dcae649d23a97aefb6b0fa4cc6e96ced0eede19.jpg",
300
+ "image_caption": [
301
+ "Figure 1: The basic architecture of the CorGAN "
302
+ ],
303
+ "image_footnote": [],
304
+ "bbox": [
305
+ 248,
306
+ 104,
307
+ 746,
308
+ 402
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "is trained to minimise the cost U(G): ",
315
+ "bbox": [
316
+ 174,
317
+ 460,
318
+ 415,
319
+ 474
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "equation",
325
+ "img_path": "images/9db534096373cf67eab43341f58affb795fb56fb5cf015f8e93a2754c8282e37.jpg",
326
+ "text": "$$\n\\operatorname* { m i n } _ { G } U ( G ) = \\mathbb { E } _ { z \\sim p _ { z } ( z ) } \\log ( | a _ { n e w } - D ( G ( z ) ) | )\n$$",
327
+ "text_format": "latex",
328
+ "bbox": [
329
+ 339,
330
+ 481,
331
+ 656,
332
+ 505
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "The CorGAN model is updated via back-propagation algorithm. If the $D$ is overly optimised without updating the $G$ , it will result in overfitting problem. The $D$ and the $G$ will be updated simultaneously or alternately to avoid the problem, e.g. k steps of optimizing the $D$ and one step of optimizing the $G$ . The traditional GANs reach Nash equilibrium after several training epochs. The new objective of the $G$ of CorGAN breaks Nash equilibrium of the training process, which causes that the $G$ can keep generating outlier samples. ",
339
+ "bbox": [
340
+ 173,
341
+ 518,
342
+ 825,
343
+ 602
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "The inlier data is taken as training data in the CorGAN. In the adversarial process of training CorGAN, the $G$ is supposed to generate outlier samples for the negative class. The $D$ is trained to assign a high probability value to data from training datasets (i.e., the positive class) and a small probability value to generated data from the G (i.e., the negative class). The generated outliers not only distribute around the positive class but also cover feature space far away from the positive class. In order that the $G$ can map a prior distribution to a huge data space except for the positive class, we proposed a lot of improved techniques (section 4). ",
350
+ "bbox": [
351
+ 174,
352
+ 608,
353
+ 825,
354
+ 707
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "3.3 STEP2: DETECTING OUTLIERS USING DISCRIMINATOR ",
361
+ "text_level": 1,
362
+ "bbox": [
363
+ 174,
364
+ 723,
365
+ 591,
366
+ 738
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "In the inference step, the resulting $D$ outputs a relatively high probability for data subjective to the distribution $p _ { i n l i e r }$ and a relatively low probability for data not from the distribution $p _ { i n l i e r }$ . That is to say that, if the output is a low probability in the outlier-detecting process, the input is predicted as an outlier. What is a low probability? So, we need a probability threshold to decide whether an output probability is high or low. The output of the sigmoid activation function of the last layer is a scalar value in the interval $( 0 , 1 )$ , we can intuitively set $t$ as the threshold. In that case, the input is an outlier, if the output from the $D$ is small than $t$ , otherwise an inlier. ",
373
+ "bbox": [
374
+ 173,
375
+ 750,
376
+ 825,
377
+ 847
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "The one-class classification task is an extreme case of the imbalanced training. The optimal value of the threshold $t$ is not 0.5. It mainly depends on how the model is trained and the concrete application scenario. If the model is trained by specifying a new objective for the $G$ (like in CorGAN), the $D$ model learns distribution from training datasets for a long time. However, the $D$ is trained with data from a more extensive outlier distribution using the same time. The resulting $D$ will present a relatively higher probability for data that follow the same distribution as the training data (i.e., for inliers). So, the threshold $t$ with a value higher than 0.5 shows a better performance. We do not evaluate the $D$ on a single user-specified threshold. ",
384
+ "bbox": [
385
+ 174,
386
+ 854,
387
+ 823,
388
+ 924
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "",
395
+ "bbox": [
396
+ 174,
397
+ 103,
398
+ 823,
399
+ 146
400
+ ],
401
+ "page_idx": 4
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "One-class classification, also called Outlier Detection, can be evaluated with F1-score, which is harmonic mean of precision and recall. The accepted fraction of the positive class $f _ { T + }$ and the rejected fraction of the negative class $f _ { O - }$ are both together also as a popular measure for OCC. However, the score of those measures strongly depends on the specified threshold. To justify our model objectively, the performance of the $D$ in this paper will be evaluated with Receiver operating characteristic curve (ROC) and Area under the ROC curve (AUC). The robustness of the built $D$ will be tested on various datasets. ",
406
+ "bbox": [
407
+ 173,
408
+ 152,
409
+ 825,
410
+ 251
411
+ ],
412
+ "page_idx": 4
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "4 IMPROVED TECHNIQUES FOR GAN IN OCC ",
417
+ "text_level": 1,
418
+ "bbox": [
419
+ 174,
420
+ 275,
421
+ 570,
422
+ 291
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "If the training process reaches Nash equilibrium, the $G$ is able to generate examples following the distribution $p _ { i n l i e r }$ (see figure 2), and the output probability of the $D$ is always 0.5 for inliers and an unexpected value for outliers. It is difficult to distinguish outliers from inliers via a threshold. Our proposed corrupted generative adversary network (CorGAN) is a GAN without convergence. To avoid the Nash equilibrium that the training process can reach, we propose several techniques to break the convergence and build a robust outlier identifier. Thereinto, specifying a new objective for the $G$ is a basic one to keep it generating outlier samples, and other optional techniques further improve the performance of the model. ",
429
+ "bbox": [
430
+ 173,
431
+ 308,
432
+ 826,
433
+ 420
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "image",
439
+ "img_path": "images/b282e3949b137bb05b809ba6630e74990cf02e792104df3e154b5d11dd8c22d5.jpg",
440
+ "image_caption": [
441
+ "Figure 2: Comparison between the generated data and the training data: The images of handwritten digit nine are training data. After several training epochs, the generated images and the training data are visualised in the figure. "
442
+ ],
443
+ "image_footnote": [],
444
+ "bbox": [
445
+ 217,
446
+ 436,
447
+ 764,
448
+ 535
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "4.1 EARLY STOPPING ",
455
+ "text_level": 1,
456
+ "bbox": [
457
+ 174,
458
+ 622,
459
+ 338,
460
+ 637
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "In early training epochs (i.e., before convergence), the $G$ has no ability to generate data that follows the distribution $p _ { i n l i e r }$ . Meanwhile, the $D$ is trained with the training data with positive labels and the generated data with negative labels. Distributions from $G$ are different from the distribution of training datasets before convergence. The $D$ recognizes the distribution of training datasets by presenting a high probability. Early Stopping before convergence can obtain a well-behaved Discriminator. ",
467
+ "bbox": [
468
+ 173,
469
+ 650,
470
+ 825,
471
+ 734
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "In term of implementation of this technique, we do not explicitly stop the training at a particular epoch, but always save the best model. Similar to the model selection, we take the best Discriminator as the final classifier, which appears definitely before the convergence of the training process. The performance of the $D$ is tested regularly during the training process. The score Area Under the Curve of $f _ { T + }$ (inlier accepted fraction), called positively biased AUC (see figure 3) is used to evaluate the performance of the $D$ . The $D$ saved with best biased AUC score shows not optimal but near-optimal performance on the test datasets. The objective of Early Stopping is defined as follows: ",
478
+ "bbox": [
479
+ 173,
480
+ 741,
481
+ 825,
482
+ 839
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "equation",
488
+ "img_path": "images/956ae9dbf2088ab021e221e2adca932f2f3627f45f36e29a53d2c4de9f428d24.jpg",
489
+ "text": "$$\n\\operatorname* { m a x } _ { D } A U C _ { b i a s e d } = \\int _ { 0 } ^ { 1 } f _ { T + } ( t ) d t\n$$",
490
+ "text_format": "latex",
491
+ "bbox": [
492
+ 387,
493
+ 848,
494
+ 609,
495
+ 885
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "where $t$ is the threshold and $f _ { T + } ( t )$ is inlier accepted fraction of the Discriminator given the specific threshold $t$ . ",
502
+ "bbox": [
503
+ 176,
504
+ 895,
505
+ 823,
506
+ 924
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "image",
512
+ "img_path": "images/a9528f61872dc2205ff7dd657ee76cbca461c73439f091c6ab5769fdab4e713f.jpg",
513
+ "image_caption": [
514
+ "Figure 3: Area Under the Curve of inlier accepted fraction: The figure describes the relationship between the inlier accepted fraction and the specified threshould. Given the specified threshold $0 . 7$ , the point $P$ in the curve corresponds to the accepted fraction of inliers 0.68. Since no outlier is available, the area under this curve (positively biased AUC) is a good measure to select the near optimal model. "
515
+ ],
516
+ "image_footnote": [],
517
+ "bbox": [
518
+ 379,
519
+ 111,
520
+ 604,
521
+ 247
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "table",
527
+ "img_path": "images/d65f3ab14172365a1f95937e2b58e23bebb3af99d321793a806d33ab89f7087e.jpg",
528
+ "table_caption": [
529
+ "Table 1: The behavior of the $G$ and the performance of the $D$ are presented in case of different new target values. "
530
+ ],
531
+ "table_footnote": [],
532
+ "table_body": "<table><tr><td rowspan=1 colspan=1>new target value anew</td></tr><tr><td rowspan=1 colspan=1>anew = 1: The objective of G is the exact same as that of the convergent GAN(Goodfellow et al., 2014). The training will converge.</td></tr><tr><td rowspan=1 colspan=1>anew E (~ O.9,1): The such adjustment of the objective of the G is proposed in(Salimans et al.,2O16) to improve the training process of GANs. The training processwill converge as well.</td></tr><tr><td rowspan=1 colspan=1>anew ∈ (~ O.5,~ 0.9): The G will generate data far from the distribution pinlierat the beginning of the training phase because of the random initialization.After several training epochs,it will generate data that distribute around the positive class.The tighter the boundary is,the larger space the generated data cover. The value 0.9results in most tight boundary.</td></tr><tr><td rowspan=1 colspan=1>anew ∈ [0,~ O.5): The G has similar objective to that of the D. It will tend togenerate data,from which the D can easily distinguish the training data. That is to say that allthe generated data distribute far from the distribution Pinlier·</td></tr></table>",
533
+ "bbox": [
534
+ 210,
535
+ 369,
536
+ 787,
537
+ 569
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "4.2 SPECIFYING A NEW OBJECTIVE FOR THE GENERATOR",
544
+ "text_level": 1,
545
+ "bbox": [
546
+ 174,
547
+ 645,
548
+ 589,
549
+ 660
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Even though Early Stopping avoids the problem the convergence causes, GAN can only be trained with a limited number of epochs. Hence, Early Stopping can only guarantee a high inlier accepted fraction $f _ { T + }$ , but not necessarily high outlier rejected fraction $f _ { O - }$ because the $\\mathbf { D }$ is only trained with a certain number of generated samples (i.e., outliers). To build a robust outlier identifier against as many kinds of outlier distributions as possible, we should train the $D$ with as many generated samples as possible, which have different distribution from the distribution $p _ { i n l i e r }$ . ",
556
+ "bbox": [
557
+ 173,
558
+ 676,
559
+ 825,
560
+ 761
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "We can explicitly break Nash equilibrium by specifying a new objective for $G$ . Without modification, the objective of $G$ is to maximise the probability of the $D$ making a mistake. We propose a new objective for $G$ : ",
567
+ "bbox": [
568
+ 174,
569
+ 767,
570
+ 825,
571
+ 810
572
+ ],
573
+ "page_idx": 5
574
+ },
575
+ {
576
+ "type": "equation",
577
+ "img_path": "images/e73c3af311feaf94c6d8804420933403a1caa6f84267a2a97363823ab99c0d4f.jpg",
578
+ "text": "$$\n\\operatorname* { m i n } _ { G } U ( G ) = \\mathbb { E } _ { z \\sim p _ { z } ( z ) } \\log ( | 0 . 9 - D ( G ( z ) ) | )\n$$",
579
+ "text_format": "latex",
580
+ "bbox": [
581
+ 346,
582
+ 825,
583
+ 650,
584
+ 848
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "Instead of maximising the probability that $D$ makes a mistake, the new objective is that the $D$ makes a mistake with a certain probability. The new target value used to calculate the cost for updating the $\\mathbf { G }$ is $a _ { n e w } = 0 . 9$ . The choice of the value $a _ { n e w }$ is justified in the table 1. In case of $a _ { n e w } = 0 . 9$ , the $G$ explores the largest space, and the built $D$ will show robust performance. ",
591
+ "bbox": [
592
+ 174,
593
+ 867,
594
+ 825,
595
+ 924
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "4.3 ATTACHING MORE IMPORTANCE TO GENERATED DATA ",
602
+ "text_level": 1,
603
+ "bbox": [
604
+ 174,
605
+ 104,
606
+ 588,
607
+ 117
608
+ ],
609
+ "page_idx": 6
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "The cost of the $D$ consists of two parts. These two parts are caused respectively by the training data and the generated data. Generally, the two parts are simply added together as the total cost for updating the parameters of the $D$ . That is to say that the training data and the generated data are treated with the same importance. They can be treated differently by assigning a weight to one of them to broaden the search space of parameters. The objective of the $D$ is defined as follows: ",
614
+ "bbox": [
615
+ 173,
616
+ 130,
617
+ 825,
618
+ 200
619
+ ],
620
+ "page_idx": 6
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "img_path": "images/e52f2e14e112551c5bbad47b3fec6021665d46b33c43929e98461599515e1963.jpg",
625
+ "text": "$$\n\\operatorname* { m i n } _ { D } V ( D ) = \\mathbb { E } _ { z \\sim p _ { z } ( z ) } \\log ( D ( G ( z ) ) - a _ { o } ) + w * \\mathbb { E } _ { { \\pi } \\sim p _ { i n l i e r } ( { \\bf x } ) } \\log ( a _ { t } - D ( { \\bf x } ) )\n$$",
626
+ "text_format": "latex",
627
+ "bbox": [
628
+ 230,
629
+ 208,
630
+ 764,
631
+ 233
632
+ ],
633
+ "page_idx": 6
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": ", where $w \\in ( 0 , 1 )$ is a hyperparameter. The value of $w$ can be selected by validation process with positively biased AUC score. While the outlier distributions are various and difficult to recover all of them, the inlier distribution is rather simple and easy to learn. During the training process, the cost that generated data caused should be reduced as far as possible by updating parameters of the $D$ . In other words, the generated data should be attached more importance by specifying the value of weight. Compared to the general case that the two parts of cost are not treated differently, this method shows a better performance on the test datasets whose distributions are far from the training dataset. ",
638
+ "bbox": [
639
+ 173,
640
+ 241,
641
+ 825,
642
+ 353
643
+ ],
644
+ "page_idx": 6
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "4.4 COMBINING PREVIOUSLY GENERATED DATA ",
649
+ "text_level": 1,
650
+ "bbox": [
651
+ 174,
652
+ 372,
653
+ 519,
654
+ 386
655
+ ],
656
+ "page_idx": 6
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Compared to the method of Early Stopping, the method of specifying a new objective for G presents a better performance, because the new objective trains $D$ with arbitrarily more generated data that are not from the distribution $p _ { i n l i e r }$ . With the new specified objective, the training procedure does not converge, and the $G$ is able to keep generating outliers. The $D$ can be trained with arbitrarily many generated distributions. However, the space of distribution learned by $D$ is limited to a great extent. On the one hand, the generated distribution always stays near the positive class after several training epochs. On the other hand, the $D$ can forget the previously learned distributions because of the limited capacity. ",
661
+ "bbox": [
662
+ 173,
663
+ 398,
664
+ 825,
665
+ 511
666
+ ],
667
+ "page_idx": 6
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "In this subsection, we proposed a technique to broaden the learned distributions. The performance of the $D$ can be improved by being regularly trained with previously generated data. We can train the CorGAN with mini batches (batch size $s$ ) that combine the data generated recently and previously. The combined training data can avoid that the $D$ forgets the learned distribution to some degree. ",
672
+ "bbox": [
673
+ 173,
674
+ 517,
675
+ 825,
676
+ 573
677
+ ],
678
+ "page_idx": 6
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "There exist a large amount of generated data in the training procedure. Which ones should be chosen to train $D$ and prevent it forgetting the previously generated distributions? Because the generated data can be arbitrarily many, it is inadvisable and impossible to save all of them. In this case, the generated data can be treated as stream data $\\left( X _ { 1 } , X _ { 2 } , \\ldots , X _ { t } \\right)$ . We apply a Reservoir Sampling Algorithm (Vitter, 1985) to sample previously generated images. This algorithm samples examples from the stream data with the same probability (see equation 6) and specifies a reservoir $R$ to save the sampled examples. ",
683
+ "bbox": [
684
+ 173,
685
+ 579,
686
+ 825,
687
+ 678
688
+ ],
689
+ "page_idx": 6
690
+ },
691
+ {
692
+ "type": "equation",
693
+ "img_path": "images/af6c2e05f2e6b57bacaef83a7c11947231e50eb73cef01c8d07146f39a17f8a0.jpg",
694
+ "text": "$$\nP ( X _ { i } \\in R ) = \\frac { 1 } { t - ( s / 2 ) }\n$$",
695
+ "text_format": "latex",
696
+ "bbox": [
697
+ 415,
698
+ 678,
699
+ 584,
700
+ 712
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": ", where $i \\in [ 1 , t - ( s / 2 ) ]$ . The mini batches that are composed of newly generated examples and the sampled examples saved in a reservoir is used to train $D$ . The mini batch $B$ at the timestamp $t$ is defined as follows: ",
707
+ "bbox": [
708
+ 174,
709
+ 717,
710
+ 826,
711
+ 758
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "equation",
717
+ "img_path": "images/17cee7fde3b4fab32f0431327a62edd7329fb8055263387357336a6f562e6402.jpg",
718
+ "text": "$$\nB = \\left\\{ R , X _ { t - ( s / 2 ) + 1 } , X _ { t - ( s / 2 ) + 2 } , \\ldots , X _ { t } \\right\\}\n$$",
719
+ "text_format": "latex",
720
+ "bbox": [
721
+ 354,
722
+ 761,
723
+ 643,
724
+ 779
725
+ ],
726
+ "page_idx": 6
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": ", where $R$ is the reservoir. The objective of the $D$ remains unchanged in the equation 1. The resultant $D$ can identify not only recently generated outliers but also previous ones. ",
731
+ "bbox": [
732
+ 173,
733
+ 784,
734
+ 828,
735
+ 813
736
+ ],
737
+ "page_idx": 6
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "5 EXPERIMENTS AND ANALYSIS ",
742
+ "text_level": 1,
743
+ "bbox": [
744
+ 176,
745
+ 834,
746
+ 459,
747
+ 851
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "In this section, we justify our proposed model and improved techniques with experiments. To demonstrate the robust performance of the built classifier, we evaluate the $D$ on various outlier datasets. We describe the experiment settings of our models and the models to be compared. The experiment results, followed by a strong discussion, are presented in this section. ",
754
+ "bbox": [
755
+ 174,
756
+ 867,
757
+ 825,
758
+ 924
759
+ ],
760
+ "page_idx": 6
761
+ },
762
+ {
763
+ "type": "table",
764
+ "img_path": "images/d843ae0fa5e1e2005ef7cc02937a24edd2737f7ae2cbe28b4ae5a64bad0798bf.jpg",
765
+ "table_caption": [
766
+ "Table 2: Training -, validation - and test datasets of experiments setting. "
767
+ ],
768
+ "table_footnote": [],
769
+ "table_body": "<table><tr><td>Datasets:</td><td>Source of images:</td><td>The Number of images:</td></tr><tr><td>Training dataset</td><td>digit of 9 in MNIST</td><td>4967</td></tr><tr><td>Validation dataset</td><td>digit of 9 in MNIST</td><td>900</td></tr><tr><td rowspan=\"4\">Test dataset</td><td>Inliers: digit of 9 in MNIST</td><td>900</td></tr><tr><td>1.Outliers: digits of O-8 in MNIST</td><td>900</td></tr><tr><td>2.Outliers: CIFAR10</td><td>900</td></tr><tr><td>3.Outliers: Images composed of noise</td><td>900</td></tr></table>",
770
+ "bbox": [
771
+ 192,
772
+ 101,
773
+ 805,
774
+ 204
775
+ ],
776
+ "page_idx": 7
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "5.1 DATASETS AND EVALUATION: ",
781
+ "text_level": 1,
782
+ "bbox": [
783
+ 176,
784
+ 262,
785
+ 419,
786
+ 276
787
+ ],
788
+ "page_idx": 7
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Three datasets are used in the experiments, namely, MNIST (LeCun et al., 1998), CIFAR10 (Krizhevsky, 2009) and an artificial noise image dataset. The image size in MINIST is (28, 28). The size of CIFAR10 images is cropped into (28, 28) by removing pixels along the sides. Especially, we specify a dataset composed of three group of noise images with the same size (28, 28). The values of their pixels are respectively subject to uniform distribution, Gaussian distribution and random values. The table 2 lists training dataset, validation dataset and test datasets. The performance of various approaches will be evaluated and compared with Receiver Operating Characteristic (ROC) and the Area Under the ROC Curve (AUC). ",
793
+ "bbox": [
794
+ 174,
795
+ 287,
796
+ 825,
797
+ 398
798
+ ],
799
+ "page_idx": 7
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "5.2 EXPERIMENTS SETTING: ",
804
+ "text_level": 1,
805
+ "bbox": [
806
+ 176,
807
+ 416,
808
+ 385,
809
+ 431
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "PCA+PSVM: PCA is used to reduce the dimensionality of the high-dimensional data (i.e., images). The number of components K is set such that $9 5 \\%$ of the variance is retained $\\scriptstyle ( \\mathrm { K = 1 } 1 1 $ ). Oneclass SVM proposed in (Scholkopf et al., 2000) is plane-based, called PSVM. To identify outliers ¨ in the feature space, PSVM tries to find a hyperplane that best separates the data from the origin. RBF kernel is used in this experiment. Other settings are defaults in sklearn.svm.OneClassSVM (Pedregosa et al., 2011). ",
816
+ "bbox": [
817
+ 173,
818
+ 443,
819
+ 825,
820
+ 526
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "Autoencoder: Autoencoder detects outliers by computing reconstruction error and compares it with a specified threshold. The threshold is based on the difference between the inputs and outputs for the training data. If the reconstruction error for a test sample is larger than the threshold, then the sample is identified as an outlier, otherwise as inlier. To justify our proposal, we compare our model to convolutional autoencoder. The encoder has the same architecture as the Discriminator in CorGAN except for output layer. The decoder also has a same architecture as the Generator in CorGAN. The model is regularised with weight decay $\\lambda = 0 . 0 1$ . The parameters are updated with SGD optimisation algorithm, minibatc $\\scriptstyle \\imath = 1 2 8$ and learning rate $l r { = } 0 . 1$ . The cost function is the cross-entropy function. The model is trained for 30 epochs without pretraining. ",
827
+ "bbox": [
828
+ 173,
829
+ 542,
830
+ 825,
831
+ 667
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "CorGAN: The basic architecture of CorGAN, as well as the number of its layers and units, is shown in figure 1. We propose a lot of improved techniques. Since its combinations are numerous, we justify only three main models. The first model is a basic one, $\\mathrm { C o r G A N } = \\mathrm { G A N }$ with early stopping technique and a new objective for the $G$ (see section 4.2). The new target value $a _ { n e w }$ is set manually to 0.9 for the $G$ . The $G$ is regularised with weight decay $\\lambda = 0 . 1$ . The optimisation algorithm is Adam, minibatch $= 1 2 8$ and learning rate $l r = 0 . 0 0 0 2$ . No pretraining is performed. The second model to be justified is based on the first one, $\\mathrm { C o r G A N ^ { 2 } = C o r G A N + }$ Attaching more importance to generated images (see section 4.3). The weight is set to 0.5 manually. The third illustrated model is also based on the first one, $\\mathrm { C o r G A N ^ { 3 } \\bar { \\ s } = C o r G A N \\ s + \\Delta }$ Combining previously generated images (see section 4.4). The minibatch size is composed of 64 images sampled from previous training epoch and 64 newly generated images. ",
838
+ "bbox": [
839
+ 174,
840
+ 684,
841
+ 825,
842
+ 838
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "5.3 RESULTS AND ANALYSIS: ",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 176,
852
+ 856,
853
+ 392,
854
+ 869
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "The results of the experiments are shown in the figure 4 and the table 3. The outlier distribution of the handwritten digits images of the numbers (0-8) is relatively close to the inlier distribution of the number 9. Hence, all the approaches show the worse AUC scores on the first test dataset. The $\\mathrm { P C A + P S V M }$ approach shows the better score on the second test dataset than on the noise test dataset. The traditional approach is not robust enough for noise outliers. The solutions based on neural networks often show a better performance against noise data because of the random initialization of its parameters. Especially, our proposed solution based on GAN framework, in which Generator generates many noise examples. The convolutional autoencoder can reconstruct natural images well by detects edges, corners and objects. Therefore, the convolutional autoencoder shows the poor score on natural images. Our proposed solution classifies test examples without reconstruction process, which shows robust performance against outlier natural images as well as noise images. ",
861
+ "bbox": [
862
+ 176,
863
+ 882,
864
+ 823,
865
+ 922
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "image",
871
+ "img_path": "images/596ea6ac1282ab797e6dc3c1a138bfb8fc3bae75d6216625d1ecd5e9bda53ae6.jpg",
872
+ "image_caption": [
873
+ "Figure 4: The figures show the ROC curves of all models on three differenct test datasets. The area under the ROC curve represents the overall performance of a one-class classifier. The model $\\mathrm { C o r G A N ^ { 3 } }$ shows robust performance on all the three datasets. "
874
+ ],
875
+ "image_footnote": [],
876
+ "bbox": [
877
+ 186,
878
+ 119,
879
+ 799,
880
+ 518
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "table",
886
+ "img_path": "images/126168cca09ea092645f851371d6cb947895b4bc5a69327d110418efc11afa2a.jpg",
887
+ "table_caption": [
888
+ "Table 3: The AUC socres of various models are shown in the table. All the models are tested in three datasets: MNIST(9) $^ +$ MNIST(0-8), MNIST(9) $^ +$ CIFAR10, MNIST(9) $^ +$ Noise. Within MNIST(9) images are inliers, and other images are outliers. CorGAN, $\\mathrm { C o r G A N ^ { 2 } }$ and $\\mathrm { C o r G A N ^ { 3 } }$ are described in section 5.2. "
889
+ ],
890
+ "table_footnote": [],
891
+ "table_body": "<table><tr><td rowspan=3 colspan=1></td><td rowspan=1 colspan=3>AUC score:</td></tr><tr><td rowspan=1 colspan=3>MNIST(9)</td></tr><tr><td rowspan=1 colspan=1>MNIST(0-8)</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>Noise</td></tr><tr><td rowspan=1 colspan=1>PCA+PSVM</td><td rowspan=1 colspan=1>0.8623</td><td rowspan=1 colspan=1>0.9720</td><td rowspan=1 colspan=1>0.9302</td></tr><tr><td rowspan=1 colspan=1>Autoencoder</td><td rowspan=1 colspan=1>0.8943</td><td rowspan=1 colspan=1>0.6785</td><td rowspan=1 colspan=1>0.9704</td></tr><tr><td rowspan=1 colspan=1>CorGAN</td><td rowspan=1 colspan=1>0.8974</td><td rowspan=1 colspan=1>0.9739</td><td rowspan=1 colspan=1>0.9995</td></tr><tr><td rowspan=1 colspan=1>CorGAN2</td><td rowspan=1 colspan=1>0.8343</td><td rowspan=1 colspan=1>0.9937</td><td rowspan=1 colspan=1>0.9999</td></tr><tr><td rowspan=1 colspan=1>CorGAN3</td><td rowspan=1 colspan=1>0.9253</td><td rowspan=1 colspan=1>0.9943</td><td rowspan=1 colspan=1>0.9999</td></tr></table>",
892
+ "bbox": [
893
+ 312,
894
+ 590,
895
+ 686,
896
+ 709
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "",
903
+ "bbox": [
904
+ 174,
905
+ 811,
906
+ 825,
907
+ 924
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Compared to CorGAN, $\\mathrm { C o r G A N ^ { 2 } }$ attaches more importance to generated images, which makes classifier more robust again the outliers whose distribution is far from inlier distribution. In consequence, $\\mathrm { C o r G A N ^ { 2 } }$ shows the low score on the first dataset, in which the distributions of inliers and outliers are relatively close. In the model $\\mathrm { C o r G A N ^ { 3 } }$ , the outlier examples generated previously are combined with newly generated examples to train the Discriminator. In this way, the Discriminator learned a large space of outlier distribution. The model $\\mathrm { C o r G A N ^ { 3 } }$ shows the best scores on various test datasets. The robust $\\mathrm { C o r G A N ^ { 3 } }$ learns a tight boundary in high-dimensional space. The farther the outlier distribution is from the inlier distribution $p _ { i n l i e r }$ , the better score it shows (see figure 4d). ",
914
+ "bbox": [
915
+ 174,
916
+ 103,
917
+ 825,
918
+ 215
919
+ ],
920
+ "page_idx": 9
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "6 CONCLUSION AND FUTURE WORK ",
925
+ "text_level": 1,
926
+ "bbox": [
927
+ 174,
928
+ 236,
929
+ 495,
930
+ 252
931
+ ],
932
+ "page_idx": 9
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "In this paper, we present a solution to solve one-class classification problem based on GAN framework and successfully apply the Discriminator of the framework to detect outliers. We illuminate a few techniques to improve the performance and verify the proposed techniques with experiments. First, we choose the near optimal model to detect outliers by saving a better model during the training procedure. Then we specify a new objective for the $G$ so that it can keep generating outliers. Attaching more importance to generated images can further improve the performance of the $D$ . To prevent the $D$ forgetting the previously generated outliers, we combine previously generated outliers from the Generator to train the outlier identifier. These techniques show comparable AUC scores. ",
937
+ "bbox": [
938
+ 174,
939
+ 268,
940
+ 825,
941
+ 378
942
+ ],
943
+ "page_idx": 9
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "In future work, We can further vary the generated outliers to train $D$ . We can specify multiple Generators in the generative adversary framework. The mini batch can combine the data generated by different Generators, which have different objectives, e.g. the different probabilities of D making a mistake. To further explore more generated distribution used to train the $D$ , we can even combine CorGAN with other generative models. Similarly, we must also change the objective of them to fit our goal, since the other generative models are also supposed to generate outliers. ",
948
+ "bbox": [
949
+ 174,
950
+ 386,
951
+ 825,
952
+ 469
953
+ ],
954
+ "page_idx": 9
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "All the proposals in this paper do not leverage distance information(KLD) between distributions within a batch both in the training process and detecting process. Another topic worth studying is the clustering-based method to detect outlier using $D$ of GAN. One potential method of leveraging distance information is to model the closeness between examples in a mini-batch. The modeling process is described in Minibatch Discrimination (Salimans et al., 2016), an improved technique for training GANs. ",
959
+ "bbox": [
960
+ 174,
961
+ 477,
962
+ 823,
963
+ 560
964
+ ],
965
+ "page_idx": 9
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Regarding the task of detecting of outlier images, we will try to identify more fine attributes of images. For instance, the built outlier identifier should be able to distinguish images taken under different illumination as well as different viewpoints, which describe the same object. Furthermore, we can take images of a group of objects as inliers. We will build a one-class classifier to make a decision whether the object described by the given image comes from the group. ",
970
+ "bbox": [
971
+ 174,
972
+ 568,
973
+ 825,
974
+ 637
975
+ ],
976
+ "page_idx": 9
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "REFERENCES ",
981
+ "text_level": 1,
982
+ "bbox": [
983
+ 176,
984
+ 660,
985
+ 285,
986
+ 674
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Naoki Abe, Bianca Zadrozny, and John Langford. Outlier detection by active learning. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 504–509. ACM, 2006. ",
993
+ "bbox": [
994
+ 174,
995
+ 683,
996
+ 825,
997
+ 726
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Basant Agarwal et al. One-class support vector machine for sentiment analysis of movie review documents. World Academy of Science, Engineering and Technology, International Journal of Computer, Electrical, Automation, Control and Information Engineering, 9(12):2458–2461, 2015. ",
1004
+ "bbox": [
1005
+ 176,
1006
+ 736,
1007
+ 821,
1008
+ 779
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Andras B ´ anhalmi, Andr ´ as Kocsor, and R ´ obert Busa-Fekete. Counter-example generation-based ´ one-class classification. In ECML, pp. 543–550. Springer, 2007. ",
1015
+ "bbox": [
1016
+ 171,
1017
+ 789,
1018
+ 823,
1019
+ 818
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Daniel Barbara, Yi Li, and Julia Couto. Coolcat: an entropy-based algorithm for categorical clus- ´ tering. In Proceedings of the eleventh international conference on Information and knowledge management, pp. 582–589. ACM, 2002. ",
1026
+ "bbox": [
1027
+ 176,
1028
+ 828,
1029
+ 821,
1030
+ 871
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Sugato Basu, Mikhail Bilenko, and Raymond J Mooney. A probabilistic framework for semisupervised clustering. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 59–68. ACM, 2004. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 882,
1040
+ 825,
1041
+ 924
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Stephen D Bay and Mark Schwabacher. Mining distance-based outliers in near linear time with randomization and a simple pruning rule. In Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 29–38. ACM, 2003. ",
1048
+ "bbox": [
1049
+ 174,
1050
+ 103,
1051
+ 821,
1052
+ 147
1053
+ ],
1054
+ "page_idx": 10
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Yoshua Bengio, Hugo Larochelle, and Pascal Vincent. Non-local manifold parzen windows. In Advances in neural information processing systems, pp. 115–122, 2006. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 155,
1062
+ 823,
1063
+ 184
1064
+ ],
1065
+ "page_idx": 10
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Christopher M Bishop. Novelty detection and neural network validation. IEE Proceedings-Vision, Image and Signal processing, 141(4):217–222, 1994. ",
1070
+ "bbox": [
1071
+ 176,
1072
+ 193,
1073
+ 823,
1074
+ 222
1075
+ ],
1076
+ "page_idx": 10
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Christopher M Bishop. Pattern recognition and machine learning. springer, 2006. ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 231,
1084
+ 714,
1085
+ 247
1086
+ ],
1087
+ "page_idx": 10
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Markus M Breunig, Hans-Peter Kriegel, Raymond T $\\mathrm { N g }$ , and Jorg Sander. Lof: identifying density- ¨ based local outliers. In ACM sigmod record, volume 29, pp. 93–104. ACM, 2000. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 256,
1095
+ 821,
1096
+ 285
1097
+ ],
1098
+ "page_idx": 10
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Wei Fan, Matthew Miller, Sal Stolfo, Wenke Lee, and Phil Chan. Using artificial anomalies to detect unknown and known network intrusions. Knowledge and Information Systems, 6(5):507– 527, 2004. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 292,
1106
+ 823,
1107
+ 335
1108
+ ],
1109
+ "page_idx": 10
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1114
+ "bbox": [
1115
+ 171,
1116
+ 344,
1117
+ 823,
1118
+ 388
1119
+ ],
1120
+ "page_idx": 10
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Zengyou He, Xiaofei Xu, and Shengchun Deng. Discovering cluster-based local outliers. Pattern Recognition Letters, 24(9):1641–1650, 2003. ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 397,
1128
+ 823,
1129
+ 426
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Kathryn Hempstalk, Eibe Frank, and Ian H Witten. One-class classification by combining density and class probability estimation. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 505–519. Springer, 2008. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 434,
1139
+ 823,
1140
+ 478
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Victoria Hodge and Jim Austin. A survey of outlier detection methodologies. Artificial intelligence review, 22(2):85–126, 2004. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 487,
1150
+ 821,
1151
+ 516
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Nathalie Japkowicz. Concept-learning in the absence of counter-examples: an autoassociationbased approach to classification. PhD thesis, Rutgers, The State University of New Jersey, 1999. ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 525,
1161
+ 823,
1162
+ 554
1163
+ ],
1164
+ "page_idx": 10
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 563,
1172
+ 823,
1173
+ 592
1174
+ ],
1175
+ "page_idx": 10
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Anukool Lakhina, Mark Crovella, and Christophe Diot. Mining anomalies using traffic feature distributions. In ACM SIGCOMM Computer Communication Review, volume 35, pp. 217–228. ACM, 2005. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 601,
1183
+ 823,
1184
+ 643
1185
+ ],
1186
+ "page_idx": 10
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 652,
1194
+ 823,
1195
+ 683
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
1202
+ "bbox": [
1203
+ 173,
1204
+ 690,
1205
+ 823,
1206
+ 720
1207
+ ],
1208
+ "page_idx": 10
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Yann LeCun et al. Generalization and network design strategies. Connectionism in perspective, pp. 143–155, 1989. ",
1213
+ "bbox": [
1214
+ 174,
1215
+ 729,
1216
+ 823,
1217
+ 758
1218
+ ],
1219
+ "page_idx": 10
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Bruce Lindsay, G. L. Mclachlan, K. E. Basford, and Marcel Dekker. Mixture models: Inference and applications to clustering. Journal of the American Statistical Association, 84(405):337, 1989. ",
1224
+ "bbox": [
1225
+ 171,
1226
+ 767,
1227
+ 823,
1228
+ 796
1229
+ ],
1230
+ "page_idx": 10
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Markos Markou and Sameer Singh. Novelty detection: a reviewpart 2:: neural network based approaches. Signal processing, 83(12):2499–2521, 2003. ",
1235
+ "bbox": [
1236
+ 169,
1237
+ 805,
1238
+ 823,
1239
+ 835
1240
+ ],
1241
+ "page_idx": 10
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Mary M Moya, Mark W Koch, and Larry D Hostetler. One-class classifier networks for target recognition applications. Technical report, Sandia National Labs., Albuquerque, NM (United States), 1993. ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 843,
1249
+ 823,
1250
+ 886
1251
+ ],
1252
+ "page_idx": 10
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Augustus Odena. Semi-supervised learning with generative adversarial networks. arXiv preprint arXiv:1606.01583, 2016. ",
1257
+ "bbox": [
1258
+ 173,
1259
+ 895,
1260
+ 821,
1261
+ 924
1262
+ ],
1263
+ "page_idx": 10
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Emanuel Parzen. On estimation of a probability density function and mode. The annals of mathematical statistics, 33(3):1065–1076, 1962. ",
1268
+ "bbox": [
1269
+ 171,
1270
+ 103,
1271
+ 823,
1272
+ 132
1273
+ ],
1274
+ "page_idx": 11
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011. ",
1279
+ "bbox": [
1280
+ 173,
1281
+ 140,
1282
+ 825,
1283
+ 196
1284
+ ],
1285
+ "page_idx": 11
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Marco AF Pimentel, David A Clifton, Lei Clifton, and Lionel Tarassenko. A review of novelty detection. Signal Processing, 99:215–249, 2014. ",
1290
+ "bbox": [
1291
+ 168,
1292
+ 205,
1293
+ 823,
1294
+ 236
1295
+ ],
1296
+ "page_idx": 11
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Gunter Ritter and Mar´ıa Teresa Gallegos. Outliers in statistical pattern recognition and an application to automatic chromosome classification. Pattern Recognition Letters, 18(6):525–539, 1997. ",
1301
+ "bbox": [
1302
+ 173,
1303
+ 244,
1304
+ 821,
1305
+ 272
1306
+ ],
1307
+ "page_idx": 11
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Cognitive modeling, 5(3):1, 1988. ",
1312
+ "bbox": [
1313
+ 173,
1314
+ 281,
1315
+ 820,
1316
+ 311
1317
+ ],
1318
+ "page_idx": 11
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2226–2234, 2016. ",
1323
+ "bbox": [
1324
+ 173,
1325
+ 319,
1326
+ 825,
1327
+ 362
1328
+ ],
1329
+ "page_idx": 11
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Thomas Schlegl, Philipp Seebock, Sebastian M Waldstein, Ursula Schmidt-Erfurth, and Georg ¨ Langs. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery. In International Conference on Information Processing in Medical Imaging, pp. 146– 157. Springer, 2017. ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 371,
1337
+ 825,
1338
+ 428
1339
+ ],
1340
+ "page_idx": 11
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "Bernhard Scholkopf, Robert C Williamson, Alex J Smola, John Shawe-Taylor, and John C Platt.¨ Support vector method for novelty detection. In Advances in neural information processing systems, pp. 582–588, 2000. ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 435,
1348
+ 823,
1349
+ 479
1350
+ ],
1351
+ "page_idx": 11
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "Jost Tobias Springenberg. Unsupervised and semi-supervised learning with categorical generative adversarial networks. arXiv preprint arXiv:1511.06390, 2015. ",
1356
+ "bbox": [
1357
+ 173,
1358
+ 488,
1359
+ 823,
1360
+ 517
1361
+ ],
1362
+ "page_idx": 11
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "David MJ Tax and Robert PW Duin. Support vector domain description. Pattern recognition letters, 20(11):1191–1199, 1999. ",
1367
+ "bbox": [
1368
+ 173,
1369
+ 526,
1370
+ 823,
1371
+ 555
1372
+ ],
1373
+ "page_idx": 11
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "David MJ Tax and Robert PW Duin. Uniform object generation for optimizing one-class classifiers. Journal of machine learning research, 2(Dec):155–173, 2001. ",
1378
+ "bbox": [
1379
+ 171,
1380
+ 564,
1381
+ 823,
1382
+ 593
1383
+ ],
1384
+ "page_idx": 11
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "David MJ Tax and Klaus-Robert Muller. Feature extraction for one-class classification. ¨ Lecture notes in computer science, pp. 342–349, 2003. ",
1389
+ "bbox": [
1390
+ 171,
1391
+ 602,
1392
+ 823,
1393
+ 631
1394
+ ],
1395
+ "page_idx": 11
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Benjamin Berry Thompson, Robert J Marks, Jai J Choi, Mohamed A El-Sharkawi, Ming-Yuh Huang, and Carl Bunje. Implicit learning in autoencoder novelty assessment. In Neural Networks, 2002. IJCNN’02. Proceedings of the 2002 International Joint Conference on, volume 3, pp. 2878–2883. IEEE, 2002. ",
1400
+ "bbox": [
1401
+ 174,
1402
+ 638,
1403
+ 825,
1404
+ 695
1405
+ ],
1406
+ "page_idx": 11
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Pascal Vincent and Yoshua Bengio. Manifold parzen windows. In Advances in neural information processing systems, pp. 849–856, 2003. ",
1411
+ "bbox": [
1412
+ 169,
1413
+ 704,
1414
+ 823,
1415
+ 733
1416
+ ],
1417
+ "page_idx": 11
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Jeffrey S Vitter. Random sampling with a reservoir. ACM Transactions on Mathematical Software (TOMS), 11(1):37–57, 1985. ",
1422
+ "bbox": [
1423
+ 168,
1424
+ 742,
1425
+ 823,
1426
+ 771
1427
+ ],
1428
+ "page_idx": 11
1429
+ }
1430
+ ]
parse/train/BkS3fnl0W/BkS3fnl0W_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkS3fnl0W/BkS3fnl0W_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BygdyxHFDS/BygdyxHFDS.md ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # META-LEARNING CURIOSITY ALGORITHMS
2
+
3
+ Ferran Alet∗, Martin F. Schneider∗, Tomas Lozano-P ´ erez & Leslie Pack Kaelbling ´
4
+
5
+ Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology Cambridge, MA 02139, USA {alet,martinfs,tlp,lpk}@mit.edu
6
+
7
+ # ABSTRACT
8
+
9
+ We hypothesize that curiosity is a mechanism found by evolution that encourages meaningful exploration early in an agent’s life in order to expose it to experiences that enable it to obtain high rewards over the course of its lifetime. We formulate the problem of generating curious behavior as one of meta-learning: an outer loop will search over a space of curiosity mechanisms that dynamically adapt the agent’s reward signal, and an inner loop will perform standard reinforcement learning using the adapted reward signal. However, current meta-RL methods based on transferring neural network weights have only generalized between very similar tasks. To broaden the generalization, we instead propose to meta-learn algorithms: pieces of code similar to those designed by humans in ML papers. Our rich language of programs combines neural networks with other building blocks such as buffers, nearest-neighbor modules and custom loss functions. We demonstrate the effectiveness of the approach empirically, finding two novel curiosity algorithms that perform on par or better than human-designed published curiosity algorithms in domains as disparate as grid navigation with image inputs, acrobot, lunar lander, ant and hopper.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ When a reinforcement-learning agent is learning to behave, it is critical that it both explores its domain and exploits its rewards effectively. One way to think of this problem is in terms of curiosity or intrisic motivation: constructing reward signals that augment or even replace the extrinsic reward from the domain, which induce the RL agent to explore their domain in a way that results in effective longer-term learning and behavior (Pathak et al., 2017; Burda et al., 2018; Oudeyer, 2018). The primary difficulty with this approach is that researchers are hand-designing these strategies: it is difficult for humans to systematically consider the space of strategies or to tailor strategies for the distribution of environments an agent might be expected to face.
14
+
15
+ We take inspiration from the curious behavior observed in young humans and other animals
16
+
17
+ ![](images/cef77ccc92b7d5d7ce1872f70326e7f1af5e39bc3832f0fe30c74bab4580472b.jpg)
18
+ Figure 1: Our RL agent is augmented with a curiosity module, obtained by meta-learning over a complex space of programs, which computes a pseudo-reward $\widehat { r }$ at every time step.
19
+
20
+ and hypothesize that curiosity is a mechanism found by evolution that encourages meaningful exploration early in an agent’s life. This exploration exposes it to experiences that enable it to learn to obtain high rewards over the course of its lifetime. We propose to formulate the problem of generating curious behavior as one of meta-learning: an outer loop, operating at “evolutionary” scale will search over a space of algorithms for generating curious behavior by dynamically adapting the agent’s reward signal, and an inner loop will perform standard reinforcement learning using the adapted reward signal. This process is illustrated in figure 1; note that the aggregate agent, outlined in gray, has the standard interface of an RL agent. The inner RL algorithm is continually adapting to its input stream of states and rewards, attempting to learn a policy that optimizes the discounted sum of proxy rewards $\textstyle \sum _ { k \geq 0 } \gamma ^ { k } \widehat { r } _ { t + k }$ . The outer “evolutionary” search is attempting to find a program for the curiosity module, so as to optimize the agent’s lifetime return $\textstyle \sum _ { t = 0 } ^ { T } r _ { t }$ , or another global objective like the mean performance on the last few trials.
21
+
22
+ In this meta-learning setting, our objective is to find a curiosity module that works well given a distribution of environments from which we can sample at meta-learning time. Meta-RL has been widely explored recently, in some cases with a focus on reducing the amount of experience needed by initializing the RL algorithm well (Finn et al., 2017; Clavera et al., 2019) and, in others, for efficient exploration (Duan et al., 2016; Wang et al., 2017). The environment distributions in these cases have still been relatively low-diversity, mostly limited to variations of the same task, such as exploring different mazes or navigating terrains of different slopes. We would like to discover curiosity mechanisms that can generalize across a much broader distribution of environments, even those with different state and action spaces: from image-based games, to joint-based robotic control tasks. To do that, we perform meta-learning in a rich, combinatorial, open-ended space of programs.
23
+
24
+ This paper makes three novel contributions.
25
+
26
+ We focus on a regime of meta-reinforcement-learning in which the possible environments the agent might face are dramatically disparate and in which the agent’s lifetime is very long. This is a substantially different setting than has been addressed in previous work on meta-RL and it requires substantially different techniques for representation and search.
27
+
28
+ We propose to do meta-learning in a rich, combinatorial space of programs rather than transferring neural network weights. The programs are represented in a domain-specific language (DSL) which includes sophisticated building blocks including neural networks complete with gradient-descent mechanisms, learned objective functions, ensembles, buffers, and other regressors. This language is rich enough to represent many previously reported hand-designed exploration algorithms. We believe that by performing meta-RL in such a rich space of mechanisms, we will be able to discover highly general, fundamental curiosity-based exploration methods. This generality means that a relatively computationally expensive meta-learning process can be amortized over the lifetimes of many agents in a wide variety of environments.
29
+
30
+ We make the search over programs feasible with relatively modest amounts of computation. It is a daunting search problem to find a good solution in a combinatorial space of programs, where evaluating a single potential solution requires running an RL algorithm for up to millions of time steps. We address this problem in multiple ways. By including environments of substantially different difficulty and character, we can evaluate candidate programs first on relatively simple and short-horizon domains: if they don’t perform well in those domains, they are pruned early, which saves a significant amount of computation time. In addition, we predict the performance of an algorithm from its structure and operations, thus trying the most promising algorithms early in our search. Finally, we also monitor the learning curve of agents and stop unpromising programs before they reach all $T$ environment steps.
31
+
32
+ We demonstrate the effectiveness of the approach empirically, finding curiosity strategies that perform on par or better than those in published literature. Interestingly, the top 2 algorithms, to the best of our knowledge, had not been proposed before, despite making sense in hindsight. We conjecture the first one (shown in figure 3) is deceptively simple and that the complexity of the other one (figure 10 in the appendix) makes it relatively implausible for humans to discover.
33
+
34
+ # 2 PROBLEM FORMULATION
35
+
36
+ # 2.1 META-LEARNING PROBLEM
37
+
38
+ Let us assume we have an agent equipped with an RL algorithm (such as DQN or PPO, with all hyperparameters specified), $\mathcal { A }$ , which receives states and rewards from and outputs actions to an environment $\mathcal { E }$ , generating a stream of experienced transitions $e ( \boldsymbol { \mathcal { A } } ; \boldsymbol { \mathcal { E } } ) _ { t } = ( s _ { t } , a _ { t } , \bar { r } _ { t } , s _ { t + 1 } )$ . The agent continually learns a policy $\pi ( t ) : s _ { t } \to a _ { t }$ , which will change in time as described by algorithm $\mathcal { A }$ ;
39
+
40
+ so $\pi ( t ) = \boldsymbol { \mathcal { A } } ( e _ { 1 : t - 1 } )$ and thus $a _ { t } \sim \mathcal { A } ( e _ { 1 : t - 1 } ) ( s _ { t } )$ . Although this need not be the case, we can think of $\mathcal { A }$ as an algorithm that tries to maximize the discounted reward $\textstyle \sum _ { i } \gamma ^ { i } r _ { t + i } , \gamma < 1$ and that, at any time-step $t$ , always takes the greedy action that maximizes its estimated expected discounted reward.
41
+
42
+ To add exploration to this policy, we include a curiosity module $\mathcal { C }$ that has access to the stream of state transitions $e _ { t }$ experienced by the agent and that, at every time-step $t$ , outputs a proxy reward $\widehat { r } _ { t }$ . We connect this module so that the original RL agent receives these modified rewards, thus bobserving $e ( \boldsymbol { A } , \mathcal { C } ; \mathcal { E } ) _ { t } = ( s _ { t } , a _ { t } , \widehat { r } _ { t } = \mathcal { C } ( \bar { e _ { 1 : t - 1 } } ) , s _ { t + 1 } ) $ , without having access to the original $r _ { t }$ . bNow, even though the inner RL algorithm acts in a purely exploitative manner with respect to $\widehat { r }$ , it may efficiently explore in the outer environment.
43
+
44
+ Our overall goal is to design a c osity module $\mathcal { C }$ that induces the agent to maximize $\textstyle \sum _ { t = 0 } ^ { T } r _ { t }$ , for $T$
45
+ episodic problem, $T$ will span many episodes. More formally, given a single environment $\mathcal { E }$ , RL algorithm $\mathcal { A }$ , and curiosity module $\mathcal { C }$ , we can see the triplet (environment, curiosity module, agent) as a dynamical system that induces state transitions for the environment, and learning updates for the curiosity module and the agent. Our objective is to find $\mathcal { C }$ that maximizes the expected original reward obtained by the composite system in the environment. Note that the expectation is over two different distributions at different time scales: there is an “outer” expectation over environments $\mathcal { E }$ , and in “inner” expectation over the rewards received by the composite system in that environment, so our final objective is:
46
+
47
+ $$
48
+ \operatorname* { m a x } _ { \mathcal { C } } \left[ \mathbb { E } _ { \mathcal { E } } \left[ \mathbb { E } _ { r _ { t } \sim e ( A , \mathcal { C } ; \mathcal { E } ) } \left[ \sum _ { t = 0 } ^ { T } r _ { t } \right] \right] \right] \ .
49
+ $$
50
+
51
+ # 2.2 PROGRAMS FOR CURIOSITY
52
+
53
+ In science and computing, mathematical language has been very successful in describing varied phenomena and powerful algorithms with short descriptions. As Valiant points out: “the power [of mathematics and algorithms] comes from the implied generality, that knowledge of one equation alone will allow one to make accurate predictions about a host of situations not even conceived when the equation was first written down” (Valiant, 2013). Therefore, in order to obtain curiosity modules that can generalize over a very broad range of tasks and that are sophisticated enough to provide exploration guidance over very long horizons, we describe them in terms of general programs in a domain-specific language. Algorithms in this language will map a history of $( s _ { t } , s _ { t + 1 } , a _ { t } , r _ { t } )$ tuples into a proxy reward $\widehat { r } _ { t }$ .
54
+
55
+ Inspired by human-designed systems that compute and use intrinsic rewards, and to simplify the search, we decompose the curiosity module into two components: the first, $I$ , outputs an intrinsic reward value $i _ { t }$ based on the current experienced transition $\left( { { s _ { t } } , { a _ { t } } , { s _ { t + 1 } } } \right)$ (and past transitions $\left( s _ { 1 : t - 1 } , a _ { 1 : t - 1 } \right)$ indirectly through its memory); the second, $\chi$ , takes the current time-step $t$ , the actual reward $r _ { t }$ , and the intrinsic reward $i _ { t }$ (and, if it chooses to store them, their histories) and combines them to yield the proxy reward $\widehat { r _ { t } }$ . To ease generalization across different timescales, in practice, before feeding $t$ into $\chi$ bwe normalize it by the total length of the agent’s lifetime, $T$ .
56
+
57
+ Both programs consist of a directed acyclic graph (DAG) of modules with polymorphically typed inputs and outputs. As shown in figure 2, there are four classes of modules:
58
+
59
+ • Input modules (shown in blue), drawn from the set $\left\{ { { s } _ { t } } , { { a } _ { t } } , { { s } _ { t + 1 } } \right\}$ for the $I$ component and from the set $\{ i _ { t } , r _ { t } \}$ for the $\chi$ component. They have no inputs, and their outputs have the type corresponding to the types of states and actions in whatever domain they are applied to, or the reals numbers for rewards. Buffer and parameter modules (shown in gray) of two kinds: FIFO queues that provide as output a finite list of the $k$ most recent inputs, and neural network weights initialized at random at the start of the program and which may (pink border) or may not (black border) get updated via back-propagation depending on the computation graph.
60
+ • Functional modules (shown in white), which compute output values given the inputs from their parent modules.
61
+
62
+ ![](images/0a0c4e6a4bd6852b56d0df731e28f96775adc6b10506ef1c8a6dbe02b4eb42aa.jpg)
63
+ Figure 2: Example diagrams of published algorithms covered by our language (larger figures in the appendix). The green box represents the output of the intrinsic curiosity function, the pink box is the loss to be minimized. Pink arcs represent paths and networks along which gradients flow back from the minimizer to update parameters.
64
+
65
+ • Update modules (shown in pink), which are functional modules (such as $\mathbf { k }$ -NearestNeighbor) that either add variables to buffers or modules which add real-valued outputs to a global loss that will provide error signals for gradient descent.
66
+
67
+ A single node in the DAG is designated as the output node (shown in green): the output of this node is considered to be the output of the entire program, but it need not be a leaf node of the DAG.
68
+
69
+ On each call to a program (corresponding to one time-step of the system) the current input values and parameter values are propagated through the functional modules, and the output node’s output is given to the RL algorithm. Before the call terminates, the FIFO buffers are updated and the adjustable parameters are updated via gradient descent using the Adam optimizer (Kingma & Ba, 2014). Most operations are differentiable and thus able to propagate gradients backwards. Some operations are not differentiable, including buffers (to avoid backpropagating through time) and ”Detach” whose purpose is stopping the gradient from flowing back. In practice, we have multiple copies of the same agent running at the same time, with both a shared policy and shared curiosity module. Thus, we execute multiple reward predictions on a batch and then update on a batch.
70
+
71
+ Programs representing several published designs for curiosity modules that perform internal gradient descent, including inverse features (Pathak et al., 2017), random network distillation (RND) (Burda et al., 2018), and ensemble predictive variance (Pathak et al., 2019), are shown in figure 2 (bigger versions can be found in appendix A.3). We can also represent algorithms similar to novelty search (Lehman & Stanley, 2008) and $E X ^ { 2 }$ (Fu et al., 2017), which include buffers and nearest neighbor regression modules. Details on the data types and module library are given in appendix A.
72
+
73
+ A crucial, and possibly somewhat counter-intuitive, aspect of these programs is their use of neural network weight updates via gradient descent as a form of memory. In the parameter update step, all adjustable parameters are decremented by the gradient of the sum of the outputs of the loss modules, with respect to the parameters. This type of update allows the program to, for example, learn to make some types of predictions, online, and use the quality of those predictions in a state to modulate the proxy reward for visiting that state (as is done, for example, in RND).
74
+
75
+ Key to our program search are polymorphic data types: the inputs and outputs to each module are typed, but the instantiation of some types, and thus of some operations, depends on the environment. We have four types: reals $\mathbb { R }$ , state space of the given environment $\mathbb { S }$ , action space of the given environment A and feature space $\mathbb { F }$ , used for intermediate computations and always set to $\mathbb { R } ^ { 3 2 }$ in our current implementation. For example, a neural network module going from $\mathbb { S }$ to $\mathbb { F }$ will be instantiated as a convolutional neural network if $\mathbb { S }$ is an image and as a fully connected neural network of the appropriate dimension if $\mathbb { S }$ is a vector. Similarly, if we are measuring an error in action space A we use mean-squared error for continuous action spaces and negative log-likelihood for discrete action spaces. This facility means that the same curiosity program can be applied, independent of whether states are represented as images or vectors, or whether the actions are discrete or continuous, or the dimensionality of either.
76
+
77
+ This type of abstraction enables our meta-learning approach to discover curiosity modules that generalize radically, applying not just to new tasks, but to tasks with substantially different input and output spaces than the tasks they were trained on.
78
+
79
+ To clarify the semantics of these programs, we walk through the operation of the RND program in figure 2. Its only input is $s _ { t + 1 }$ , which might be an image or an input vector, which is processed by two NNs with parameters $\Theta _ { 1 }$ and $\Theta _ { 2 }$ , respectively. The structure of the NNs (and, hence, the dimensions of the $\Theta _ { i }$ ) depends on the type of $s _ { t + 1 }$ : if $s _ { t + 1 }$ is an image, then they are CNNs, otherwise a fully connected networks. Each NN outputs a 32-dimensional vector; the $L _ { 2 }$ distance between these vectors is the output of the program on this iteration, and is also the input to a loss module. So, given an input $s _ { t + 1 }$ , the output intrinsic reward is large if the two NNs generate different outputs and small otherwise. After each forward pass, the weights in $\Theta _ { 2 }$ are updated to minimize the loss while $\Theta _ { 1 }$ remains constant, which causes the trainable NN to mimic the output of the randomly initialized NN. As the program’s ability to predict the output of the randomized NN on an input improves, the intrinsic reward for visiting that state decreases, driving the agent to visit new states.
80
+
81
+ To limit the search space and prioritize short, meaningful programs we limit the total number of modules of the computation graph to 7. Our language is expressive enough to describe many (but far from all) curiosity mechanisms in the existing literature, as well as many other potential alternatives, but the expressiveness leads to a very large search space. Additionally, removing or adding a single operation can drastically change the behavior of a program, making the objective function nonsmooth and, therefore, the space hard to search. In the next section we explore strategies for speeding up the search over tens of thousands of programs.
82
+
83
+ # 3 IMPROVING THE EFFICIENCY OF OUR SEARCH
84
+
85
+ We wish to find curiosity programs that work effectively in a wide range of environments, from simple to complex. However, evaluating tens of thousands of programs in the most expensive environments would consume decades of GPU computation. Therefore, we designed multiple strategies for quickly discarding less promising programs and focusing computation on a few promising programs. In doing so, we take inspiration from efforts in the AutoML community (Hutter et al., 2018).
86
+
87
+ We divide these pruning efforts into three categories: simple tests that are independent of running the program in any environment, “filtering” by ruling out some programs based on poor performance in simple environments, and “meta-meta-RL”: learning to predict which curiosity programs will produce good RL agents based on syntactic features.
88
+
89
+ # 3.1 PRUNING INVALID ALGORITHMS WITHOUT RUNNING THEM
90
+
91
+ Many programs are obviously bad curiosity programs. We have developed two heuristics to immediately prune these programs without an expensive evaluation.
92
+
93
+ • Checking that programs are not duplicates. Since our language is highly expressive, there are many non-obvious ways of getting equivalent programs. To find duplicates, we designed a randomized test where we identically seed two programs, feed them both identical fake environment data for tens of steps and check whether their outputs are identical. Checking that the loss functions cannot be minimized independently of the input data. Many programs optimize some loss depending on neural network regressors. If we treat inputs as uncontrollable variables and networks as having the ability to become any possible function, then for every variable, we can determine whether neural networks can be optimized to minimize it, independently of the input data. For example, if our loss function is $| N N _ { \theta } ( s ) | ^ { 2 }$ the neural network can learn to make it 0 by disregarding $s$ and optimizing the weights $\theta$ to 0. We discard any program that has this property.
94
+
95
+ # 3.2 PRUNING ALGORITHMS IN CHEAP ENVIRONMENTS
96
+
97
+ Our ultimate goal is to find algorithms that perform well on many different environments, both simple and complex. We make two key observations. First, there may be only tens of reasonable programs that perform well on all environments but hundreds of thousands of programs that perform poorly. Second, there are some environments that are solvable in a few hundred steps while others require tens of millions. Therefore, a key idea in our search is to try many programs in cheap environments and only a few promising candidates in the most expensive environments. This was inspired by the effective use of sequential halving (Karnin et al., 2013) in hyper-parameter optimization (Jamieson & Talwalkar, 2016).
98
+
99
+ By pruning programs aggressively, we may be losing multiple programs that perform well on complex environments. However, by definition, these programs will tend to be less general and robust than those that succeed in all environments. Moreover, we seek generalization not only for its own sake, but also to ease the search since, even if we only cared about the most expensive environment, performing the complete search only in this environment would be impractical.
100
+
101
+ # 3.3 PREDICTING ALGORITHM PERFORMANCE
102
+
103
+ Perhaps surprisingly, we find that we can predict program performance directly from program structure. Our search process bootstraps an initial training set of (program structure, program performance) pairs, then uses this training set to select the most promising next programs to evaluate. We encode each program’s structure with features representing how many times each operation is used, thus having as many features as number of operations in our vocabulary. We use a $k$ -nearestneighbor regressor, with $k = 1 0$ . We then try the most promising programs and update the regressor with their results. Finally, we add an $\epsilon$ -greedy exploration policy to make sure we explore all the search space. Even though the correlation between predictions and actual values is only moderately high (0.54 on a holdout test), this is enough to discover most of the top programs searching only half of the program space, which is our ultimate goal. Results are shown in appendix C.
104
+
105
+ We can also prune algorithms during the training process of the RL agent. In particular, at any point during the meta-search, we use the top $K$ current best programs as benchmarks for all $T$ timesteps. Then, during the training of a new candidate program we compare its current performance at time $t$ with the performance at time $t$ of the top $K$ programs and stop the run if its performance is significantly lower. If the program is not pruned and reaches the final time-step $T$ with one of the top $K$ performances, it becomes part of the benchmark for the future programs.
106
+
107
+ # 4 EXPERIMENTS
108
+
109
+ Our RL agent uses PPO (Schulman et al., 2017) based on the implementation by Kostrikov (2018) in PyTorch (Paszke et al., 2017). Our code (https://github.com/mfranzs/ meta-learning-curiosity-algorithms) can take in any OpenAI gym environment (Brockman et al., 2016) with a specification of the desired exploration horizon $T$ .
110
+
111
+ We evaluate each curiosity algorithm for multiple trials, using a seed dependent on the trial but independent of the algorithm, which leads to the PPO weights and curiosity data-structures being initialized identically on the same trials for all algorithms. As is common in PPO, we run multiple rollouts (5, except for MuJoCo which only has 1), with independent experiences but shared policy and curiosity modules. Curiosity predictions and updates are batched across these rollouts, but not across time. PPO policy updates are batched both across rollouts and multiple timesteps.
112
+
113
+ # 4.1 FIRST SEARCH PHASE IN SIMPLE ENVIRONMENT
114
+
115
+ We start by searching for a good intrinsic curiosity program $I$ in a purely exploratory environment, designed by Chevalier-Boisvert et al. (2018), which is an image-based grid world where agents navigate in an image of a 2D room either by moving forward in the grid or rotating left or right. We optimize the total number of distinct cells visited across the agent’s lifetime. This allows us to evaluate intrinsic reward programs in a fast and simple environment, without worrying about combining it with external reward.
116
+
117
+ To bias towards simple, interpretable algorithms and keep the search space manageable, we search for programs with at most 7 operations. We first discard duplicate and invalid programs, as described in section 3.1, resulting in about 52,000 programs. We then randomly split the programs across 4 machines, each with 8 Nvidia Tesla K80 GPUs for 10 hours; thus a total of 13 GPU days.
118
+
119
+ Each machine finds the highest-scoring 625 programs in its section of the search space and prunes programs whose partial learning curve is statistically significantly lower than the current top 625 programs. To do so, after every episode of every trial, we check whether $m e a n _ { p r o g r a m } ( s t e p ) \leq$ $m e a n _ { t o p 6 2 5 } ( s t e p ) - 2 s t d _ { t o p 6 2 5 } - s t d _ { p r o g r a m }$ .Thus, we account for both inter-program variability among the top 625 programs and intra-program variability among multiple trials of the same program.
120
+
121
+ We use a 10-nearest-neighbor regressor to predict program performance and choose the next program to evaluate with an $\epsilon$ -greedy strategy, choosing the best predicted program ${ \dot { 9 } } 0 \%$ of the time and a random program $1 \bar { 0 } \%$ of the time. By doing this, we try the most promising programs early in our search. This is important for two reasons: first, we only try 26,000 programs, half of the whole search space, which we estimated from earlier results (shown in figure 8 in the appendix) would be enough to get $8 8 \%$ of the top $1 \%$ of programs. Second, the earlier we run our best programs, the higher the bar for later programs, thus allowing us to prune them earlier, further saving computation time. Searching through this space took a total of 13 GPU days. As shown in figure 9 in the appendix, we find that most programs perform relatively poorly, with a long tail of programs that are statistically significantly better, comprising roughly $0 . 5 \%$ of the whole program space.
122
+
123
+ ![](images/b553da7ff7105014e117ad7a78c9f8a55c2196b065b5491fecdfc7d901275e12.jpg)
124
+ Figure 3: Fast Action-Space Transition(FAST): top-performing intrinsic curiosity algorithm discovered in our phase 1 search.
125
+
126
+ The highest scoring program (a few other programs have lower average performance but are statistically equivalent) is surprisingly simple and meaningful, comprised of only 5 operations, even though the limit was 7. This program, which we call FAST (Fast Action-Space Transition), is shown in figure 3; it trains a single neural network (a CNN or MLP depending on the type of state) to predict the action from $s _ { t + 1 }$ and then compares its predictions based on $s _ { t + 1 }$ with its predictions based on $s _ { t }$ , generating high intrinsic reward when the difference is large. The action prediction loss module either computes a softmax followed by NLL loss or appends zeros to the action to match dimensions and applies MSE loss, depending on the type of the action space. Note that this is not the same as rewarding taking a different action in the previous time-step. The network predicting the action is learning to imitate the policy learned by the internal RL agent, because the curiosity module does not have direct access to the RL agent’s internal state.
127
+
128
+ Of the top 16 programs, 13 are variants of FAST, including versions that predict the action from $s _ { t }$ instead of $s _ { t + 1 }$ . The other 3 are variants of a more complex program that is hard to understand at first glance, but we finally determined to be using ideas similar to cycle-consistency in the GAN literature Zhu et al. (2017) (we thus name it Cycle-consistency intrinsic motivation); the diagram and explanation are in figure 10 in the appendix. Interestingly, to the best of our knowledge neither algorithm had been proposed before: we conjecture the former was too simple for humans to believe it would be effective and the latter too hard for humans to design, as it was already very hard to understand in hindsight.
129
+
130
+ # 4.2 TRANSFERRING TO NEW ENVIRONMENTS
131
+
132
+ Our reward combiner was developed in lunar lander (the simplest environment with meaningful extrinsic reward) based on the best program among a preliminary set of 16,000 programs (which resembled Random Network Distillation; its computation graph is shown in appendix E). Among a set of 2,500 candidates (with 5 or fewer operations) the best reward combiner discovered by our search was $\begin{array} { r } { \widehat { r _ { t } } = \frac { ( 1 + i _ { t } - t / T ) \cdot i _ { t } + t / T \cdot r _ { t } } { 1 + i _ { t } } } \end{array}$ . Notice that for $0 < i _ { t } \ll 1$ (usually the case) this is approximately $\widehat { r _ { t } } \approx i _ { t } ^ { 2 } + ( 1 - t / T ) i _ { t } + ( t / T ) r _ { t }$ , which is a down-scaled version of intrinsic reward plus a linear binterpolation that ranges from all intrinsic reward at $t = 0$ to all extrinsic reward at $t = T$ . In future work, we hope to co-adapt the search for intrinsic reward programs and combiners as well as find multiple reward combiners.
133
+
134
+ ![](images/552033e508c214ab3ef95cd0920da9ca6592eef4b36621777c13c1f263d582fc.jpg)
135
+ Figure 4: Correlation between program performance in gridworld and in harder environments (lunar lander on the left, acrobot on the right), using the top 2,000 programs in gridworld. Performance is evaluated using mean reward across all learning episodes, averaged over trials (two trials for acrobot / lunar lander and five for gridworld). The high number of algorithms performing around -300 in the middle of the right plot is an artifact of averaging the performance of two seeds and the mean performance in Acrobot having two peaks. Almost all intrinsic curiosity programs that had statistically significant performance for grid world also do well on the other two environments. In green, the performance of three published works; in increasing gridworld performance: disagreement (Pathak et al., 2019), inverse features (Pathak et al., 2017) and random distillation (Burda et al., 2018).
136
+
137
+ Given the fixed reward combiner and the list of 2,000 selected programs found in the image-based grid world, we evaluate the programs on both lunar lander and acrobot, in their discrete action space versions. Notice that both environments have much longer horizons than the image-based grid world (37,500 and 50,000 vs 2,500) and they have vector-based, rather than image-based, inputs. The results in figure 4 show good correlation between performance on grid world and on each of the new environments. Especially interesting is that, for both environments, when intrinsic reward in grid world is above 400 (the lowest score that is statistically significantly good), performance on the other two environments is also good in more than $9 0 \%$ of cases.
138
+
139
+ Finally, we evaluate on two MuJoCo environments (Todorov et al., 2012): hopper and ant. These environments have more than an order of magnitude longer exploration horizon than acrobot and lunar lander, exploring for 500K time-steps, as well as continuous action-spaces instead of discrete. We then compare the best 16 programs on grid world (most of which also did well on lunar lander and acrobot) to four weak baselines (constant 0,-1,1 intrinsic reward and Gaussian noise reward) and three published algorithms expressible in our language (shown in figure 2). We run two trials for each algorithm and pool all results in each category to get a confidence interval for the mean of that category. All trials used the reward combiner found on lunar lander. For both environments we find that the performance of our top programs is statistically equivalent to published work and significantly better than the weak baselines, confirming that we meta-learned good curiosity programs.
140
+
141
+ Note that we meta-trained our intrinsic curiosity programs only on one environment (GridWorld) and showed they generalized well to other very different environments: they perform better than published works in this meta-train task and one meta-test task (Acrobot) and on par in the other 3 tasks meta-test tasks. Adding more meta-training tasks would be as simple as standardising the perfor
142
+
143
+ <table><tr><td>Class</td><td>Ant</td><td>Hopper</td></tr><tr><td>Baseline algorithms</td><td>[-95.3, -39.9]</td><td>[318.5, 525.0]</td></tr><tr><td>Meta-learned algorithms</td><td>[+67.5, +80.0]</td><td>[589.2, 650.6]</td></tr><tr><td>Published algorithms</td><td>[+67.4, +98.8]</td><td>[627.7, 692.6]</td></tr></table>
144
+
145
+ Table 1: Meta-learned algorithms perform significantly better than constant rewards and statistically equivalently to published algorithms found by human researchers (see 2). The table shows the confidence interval (one standard deviation) for the mean performance (across trials, across algorithms) for each algorithm category. Performance is defined as mean episode reward for all episodes.
146
+
147
+ mance within each task (to make results comparable) and then selecting the programs with best mean performance. We chose to only meta-train on a single, simple, task because it (surprisingly!) already gave great results, highlighting the broad generalization of meta-learning program representations.
148
+
149
+ # 5 RELATED WORK
150
+
151
+ In some regards our work is similar to neural architecture search (NAS) (Stanley & Miikkulainen, 2002; Zoph & Le, 2016; Elsken et al., 2018; Pham et al., 2018) or hyperparameter optimization for deep networks (Mendoza et al., 2016), which aim at finding the best neural network architecture and hyper-parameters for a particular task. However, in contrast to most (but not all, see Zoph et al. (2018)) NAS work, we want to generalize to many environments instead of just one. Moreover, we search over programs, which include non-neural operations and data structures, rather than just neural-network architectures, and decide what loss functions to use for training. Our work also resembles work in the AutoML community (Hutter et al., 2018) that searches in a space of programs, for example in the case of SAT solving (KhudaBukhsh et al., 2009) or auto-sklearn (Feurer et al., 2015) and concurrent work on learning loss functions to replace cross-entropy for training a fixed architecture on MNIST and CIFAR (Gonzalez & Miikkulainen, 2019; 2020). Although we took inspiration from ideas in that community (Jamieson & Talwalkar, 2016; Li et al., 2016), our algorithms specify both how to compute their outputs and their own optimization objectives in order to work well in synchrony with an expensive deep RL algorithm.
152
+
153
+ There has been work on meta-learning with genetic programming (Schmidhuber, 1987), searching over mathematical operations within neural networks (Ramachandran et al., 2017; Gaier & Ha, 2019), searching over programs to solve games (Wilson et al., 2018; Kelly & Heywood, 2017; Silver et al., 2019) and to optimize neural networks (Bengio et al., 1995; Bello et al., 2017), and neural networks that learn programs (Reed & De Freitas, 2015; Pierrot et al., 2019). Our work uses neural networks as basic operations within larger algorithms. Finally, modular meta-learning (Alet et al., 2018; 2019) trains the weights of small neural modules and transfers to new tasks by searching for a good composition of modules; as such, it can be seen as a (restricted) dual of our approach.
154
+
155
+ There has been much interesting work in designing intrinsic curiosity algorithms. We take inspiration from many of them to design our domain-specific language. In particular, we rely on the idea of using neural network training as an implicit memory, which scales well to millions of time-steps, as well as buffers and nearest-neighbour regressors. As we showed in figure 2 we can represent several prominent curiosity algorithms. We can also generate meaningful algorithms similar to novelty search (Lehman & Stanley, 2008) and $E X ^ { 2 }$ $\mathrm { F u }$ et al., 2017); which include buffers and nearest neighbours. However, there are many exploration algorithm classes that we do not cover, such as those focusing on generating goals (Srivastava et al., 2013; Kulkarni et al., 2016; Florensa et al., 2018), learning progress (Oudeyer et al., 2007; Schmidhuber, 2008; Azar et al., 2019), generating diverse skills (Eysenbach et al., 2018), stochastic neural networks (Florensa et al., 2017; Fortunato et al., 2017), count-based exploration (Tang et al., 2017) or object-based curiosity measures (Forestier & Oudeyer, 2016). Finally, part of our motivation stems from Ta¨ıga et al. (2019) showing that some bonus-based curiosity algorithms have trouble generalising to new environments.
156
+
157
+ There have been research efforts on meta-learning exploration policies: Duan et al. (2016); Wang et al. (2017) learn an LSTM that explores an environment for one episode, retains its hidden state and is spawned in a second episode in the same environment; by training the network to maximize the reward in the second episode alone it learns to explore efficiently in the first episode. Stadie et al. (2018) improves their exploration and that of Finn et al. (2017) by considering the importance of sampling in RL policies. Gupta et al. (2018) combine gradient-based meta-learning with a learned latent exploration space in which they add structured noise for meaningful exploration. Closer to our formulation, Zheng et al. (2018) parametrize an intrinsic reward function which influences policygradient updates in a differentiable manner, allowing them to backpropagate through a single step of the policy-gradient update to optimize the intrinsic reward function for a single task. In contrast to all three of these methods, we search over algorithms, which will allows us to generalize more broadly and to consider the effect of exploration on up to $1 0 ^ { 5 } - 1 0 ^ { 6 }$ time-steps instead of the $1 0 ^ { 2 } - 1 0 ^ { 3 }$ of previous work. Finally, Chiang et al. (2019); Faust et al. (2019) have a setting similar to ours where they modify reward functions over the entire agent’s lifetime, but instead of searching over intrinsic curiosity algorithms they tune the parameters of a hand-designed reward function.
158
+
159
+ Related work on meta-learning (Schmidhuber, 1987; Thrun & Pratt, 1998; Clune, 2019) and efforts to increase its generalization can be found in appendix B. Closest to our work, evolved policy gradients (EPG, Houthooft et al. (2018)) use evolutionary strategies to meta-learn a neural network that acts as a loss function and is used to train a policy network. EPG generalizes by meta-training with target locations east of the start location and meta-testing with target locations to the west. In contrast, we showed that by meta-learning programs, we can generalize between radically different environments, not just goal variations of a single environment. Concurrent to our work, Kirsch et al. (2019) also show generalization capabilities between environments similar to ours (lunar lander, hopper and half-cheetah). Their approach transfers a parametric representation, for which it is unclear how to adapt the learned neural losses to an unseen environment with a different observation space. Their approach thus does not encode states into the loss function, which is critical for efficient exploration. In contrast, our algorithms can leverage polymorphic data types that adapt the neural networks to the environment they are running in, adapting both the size and the type of network (CNN vs MLP) running in each environment.
160
+
161
+ # 6 CONCLUSIONS
162
+
163
+ In this work, we proposed to meta-learn algorithms and show that by transferring programs we can generalize between tasks much more varied than previously possible in meta-RL, even between those with different input or output spaces. In many settings, however, the input and output space remain the same as we change tasks. This opens the possibility of getting the best of both worlds by meta-learning weights along with structure, thus simultaneously transferring domain-specific knowledge in the weights and higher-level algorithmic knowledge in the architecture. In addition, we note that the approach of meta-learning programs instead of network weights may have further applications beyond finding curiosity algorithms, such as meta-learning optimization algorithms or even meta-learning meta-learning algorithms. Our relatively modest compute (2 GPU-weeks) and a simple search method restricted us to a medium-sized search space, but we expect that future work could search over significantly bigger spaces. It thus may be possible to automatically search for new machine learning algorithms from more fundamental building blocks for a wide variety of problems.
164
+
165
+ # ACKNOWLEDGMENTS
166
+
167
+ We thank Kelsey Allen, Peter Karkus, Kevin Smith, Josh Tenenbaum and the rest of the HondaCMM MIT team for their insightful feedback. We thank Chris Lu for his idea on what the algorithm in figure 10 is computing. We also want to thank Bernadette Bucher, Chelsea Finn, Abhishek Gupta, Deepak Pathak, Lerrel Pinto, Oleh Rybkin, Karl Schmeckpeper and Joaquin Vanschoren for valuable conversations. Finally, we also want to thank Maria Bauza and Tej Chajed for their feedback on early drafts and Clement Gehring for his help setting up the experiments.
168
+
169
+ We gratefully acknowledge support from NSF grants 1523767 and 1723381, AFOSR grant FA9550- 17-1-0165, ONR grant N00014-18-1-2847, the Honda Research Institute, SUTD Temasek Laboratories and the MIT Quest for Intelligence. Any opinions, findings, and conclusions or recommendations expressed in this material do not necessarily reflect the views of our sponsors.
170
+
171
+ # REFERENCES
172
+
173
+ Ferran Alet, Tomas Lozano-Perez, and Leslie P. Kaelbling. Modular meta-learning. In Proceedings of The 2nd Conference on Robot Learning, pp. 856–868, 2018.
174
+
175
+ Ferran Alet, Erica Weng, Tomas Lozano-Perez, and Leslie Kaelbling. Neural relational inference with fast modular meta-learning. In Advances in Neural Information Processing Systems (NeurIPS) 32. 2019.
176
+
177
+ Mohammad Gheshlaghi Azar, Bilal Piot, Bernardo Avila Pires, Jean-Bastian Grill, Florent Altche,´ and Remi Munos. World discovery models. ´ arXiv preprint arXiv:1902.07685, 2019.
178
+
179
+ Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V Le. Neural optimizer search with reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 459–468. JMLR. org, 2017.
180
+
181
+ Samy Bengio, Yoshua Bengio, and Jocelyn Cloutier. On the search for new learning rules for anns. Neural Processing Letters, 2(4):26–30, 1995.
182
+
183
+ Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
184
+
185
+ Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018.
186
+
187
+ Maxime Chevalier-Boisvert, Lucas Willems, and Suman Pal. Minimalistic gridworld environment for openai gym. https://github.com/maximecb/gym-minigrid, 2018.
188
+
189
+ Hao-Tien Lewis Chiang, Aleksandra Faust, Marek Fiser, and Anthony Francis. Learning navigation behaviors end-to-end with autorl. IEEE Robotics and Automation Letters, 4(2):2007–2014, 2019.
190
+
191
+ Ignasi Clavera, Anusha Nagabandi, Ronald S Fearing, Pieter Abbeel, Sergey Levine, and Chelsea Finn. Learning to adapt: Meta-learning for model-based control. In International Conference on Learning Representations, 2019.
192
+
193
+ Jeff Clune. Ai-gas: Ai-generating algorithms, an alternate paradigm for producing general artificial intelligence. arXiv preprint arXiv:1905.10985, 2019.
194
+
195
+ Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Rl2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
196
+
197
+ Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. arXiv preprint arXiv:1808.05377, 2018.
198
+
199
+ Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. arXiv preprint arXiv:1802.06070, 2018.
200
+
201
+ Aleksandra Faust, Anthony Francis, and Dar Mehta. Evolving rewards to automate reinforcement learning. arXiv preprint arXiv:1905.07628, 2019.
202
+
203
+ Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A Rusu, Alexander Pritzel, and Daan Wierstra. Pathnet: Evolution channels gradient descent in super neural networks. arXiv preprint arXiv:1701.08734, 2017.
204
+
205
+ Matthias Feurer, Aaron Klein, Katharina Eggensperger, Jost Springenberg, Manuel Blum, and Frank Hutter. Efficient and robust automated machine learning. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2962–2970. Curran Associates, Inc., 2015. URL http://papers.nips.cc/paper/ 5872-efficient-and-robust-automated-machine-learning.pdf.
206
+
207
+ Chelsea Finn. Learning to Learn with Gradients. PhD thesis, EECS Department, University of California, Berkeley, Aug 2018. URL http://www2.eecs.berkeley.edu/Pubs/ TechRpts/2018/EECS-2018-105.html.
208
+
209
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017.
210
+
211
+ Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic neural networks for hierarchical reinforcement learning. arXiv preprint arXiv:1704.03012, 2017.
212
+
213
+ Carlos Florensa, David Held, Xinyang Geng, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. 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. 1515–1528, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/v80/florensa18a.html.
214
+
215
+ Sebastien Forestier and Pierre-Yves Oudeyer. Modular active curiosity-driven discovery of tool ´ use. In 2016 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3965–3972. IEEE, 2016.
216
+
217
+ Meire Fortunato, Mohammad Gheshlaghi Azar, Bilal Piot, Jacob Menick, Ian Osband, Alex Graves, Vlad Mnih, Remi Munos, Demis Hassabis, Olivier Pietquin, et al. Noisy networks for exploration. arXiv preprint arXiv:1706.10295, 2017.
218
+
219
+ Justin Fu, John Co-Reyes, and Sergey Levine. Ex2: Exploration with exemplar models for deep reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2577–2587, 2017.
220
+
221
+ Adam Gaier and David Ha. Weight agnostic neural networks. arXiv preprint arXiv:1906.04358, 2019.
222
+
223
+ Santiago Gonzalez and Risto Miikkulainen. Improved training speed, accuracy, and data utilization through loss function optimization. arXiv preprint arXiv:1905.11528, 2019.
224
+
225
+ Santiago Gonzalez and Risto Miikkulainen. Evolving loss functions with multivariate taylor polynomial parameterizations, 2020.
226
+
227
+ Abhishek Gupta, Russell Mendonca, YuXuan Liu, Pieter Abbeel, and Sergey Levine. Metareinforcement learning of structured exploration strategies. In Advances in Neural Information Processing Systems, pp. 5302–5311, 2018.
228
+
229
+ Rein Houthooft, Yuhua Chen, Phillip Isola, Bradly Stadie, Filip Wolski, OpenAI Jonathan Ho, and Pieter Abbeel. Evolved policy gradients. In Advances in Neural Information Processing Systems, pp. 5400–5409, 2018.
230
+
231
+ Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren (eds.). Automated Machine Learning: Methods, Systems, Challenges. Springer, 2018. In press, available at http://automl.org/book.
232
+
233
+ Kevin Jamieson and Ameet Talwalkar. Non-stochastic best arm identification and hyperparameter optimization. In Artificial Intelligence and Statistics, pp. 240–248, 2016.
234
+
235
+ Zohar Karnin, Tomer Koren, and Oren Somekh. Almost optimal exploration in multi-armed bandits. In International Conference on Machine Learning, pp. 1238–1246, 2013.
236
+
237
+ Stephen Kelly and Malcolm I Heywood. Multi-task learning in atari video games with emergent tangled program graphs. In Proceedings of the Genetic and Evolutionary Computation Conference, pp. 195–202. ACM, 2017.
238
+
239
+ Ashiqur R KhudaBukhsh, Lin Xu, Holger H Hoos, and Kevin Leyton-Brown. Satenstein: Automatically building local search sat solvers from components. In Twenty-First International Joint Conference on Artificial Intelligence, 2009.
240
+
241
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
242
+
243
+ Louis Kirsch, Sjoerd van Steenkiste, and Jurgen Schmidhuber. Improving generalization in meta ¨ reinforcement learning using learned objectives. arXiv preprint arXiv:1910.04098, 2019.
244
+
245
+ Ilya Kostrikov. Pytorch implementations of reinforcement learning algorithms. https:// github.com/ikostrikov/pytorch-a2c-ppo-acktr-gail, 2018.
246
+ Tejas D Kulkarni, Karthik Narasimhan, Ardavan Saeedi, and Josh Tenenbaum. Hierarchical deep reinforcement learning: Integrating temporal abstraction and intrinsic motivation. In Advances in neural information processing systems, pp. 3675–3683, 2016.
247
+ Joel Lehman and Kenneth O Stanley. Exploiting open-endedness to solve problems through the search for novelty. In ALIFE, pp. 329–336, 2008.
248
+ Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. arXiv preprint arXiv:1603.06560, 2016.
249
+ Hector Mendoza, Aaron Klein, Matthias Feurer, Jost Tobias Springenberg, and Frank Hutter. Towards automatically-tuned neural networks. In Workshop on Automatic Machine Learning, pp. 58–65, 2016.
250
+ Alex Nichol, Vicki Pfau, Christopher Hesse, Oleg Klimov, and John Schulman. Gotta learn fast: A new benchmark for generalization in rl. arXiv preprint arXiv:1804.03720, 2018.
251
+ Pierre-Yves Oudeyer. Computational theories of curiosity-driven learning. arXiv preprint arXiv:1802.10546, 2018.
252
+ Pierre-Yves Oudeyer, Frdric Kaplan, and Verena V Hafner. Intrinsic motivation systems for autonomous mental development. IEEE transactions on evolutionary computation, 11(2):265–286, 2007.
253
+ Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. arXiv preprint arXiv:1511.06342, 2015.
254
+ Adam Paszke, Sam Gross, and Adam Lerer. Automatic differentiation in PyTorch. In International Conference on Learning Representations, 2017.
255
+ Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 16–17, 2017.
256
+ Deepak Pathak, Dhiraj Gandhi, and Abhinav Gupta. Self-supervised exploration via disagreement. arXiv preprint arXiv:1906.04161, 2019.
257
+ Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018.
258
+ Thomas Pierrot, Guillaume Ligner, Scott Reed, Olivier Sigaud, Nicolas Perrin, Alexandre Laterre, David Kas, Karim Beguir, and Nando de Freitas. Learning compositional neural programs with recursive tree search and planning. arXiv preprint arXiv:1905.12941, 2019.
259
+ Prajit Ramachandran, Barret Zoph, and Quoc V Le. Searching for activation functions. arXiv preprint arXiv:1710.05941, 2017.
260
+ Scott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015.
261
+ Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
262
+ Jurgen Schmidhuber. ¨ Evolutionary principles in self-referential learning, or on learning how to learn: the meta-meta-... hook. PhD thesis, Technische Universitat M¨ unchen, 1987. ¨
263
+ Jurgen Schmidhuber. Driven by compression progress: A simple principle explains essential aspects ¨ of subjective beauty, novelty, surprise, interestingness, attention, curiosity, creativity, art, science, music, jokes. In Workshop on anticipatory behavior in adaptive learning systems, pp. 48–76. Springer, 2008.
264
+
265
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
266
+
267
+ Tom Silver, Kelsey R Allen, Alex K Lew, Leslie Pack Kaelbling, and Josh Tenenbaum. Few-shot bayesian imitation learning with logic over programs. arXiv preprint arXiv:1904.06317, 2019.
268
+
269
+ Rupesh Kumar Srivastava, Bas R Steunebrink, and Jurgen Schmidhuber. First experiments with ¨ powerplay. Neural Networks, 41:130–136, 2013.
270
+
271
+ Bradly C Stadie, Ge Yang, Rein Houthooft, Xi Chen, Yan Duan, Yuhuai Wu, Pieter Abbeel, and Ilya Sutskever. Some considerations on learning to explore via meta-reinforcement learning. arXiv preprint arXiv:1803.01118, 2018.
272
+
273
+ Kenneth O Stanley and Risto Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary computation, 10(2):99–127, 2002.
274
+
275
+ Adrien Ali Ta¨ıga, William Fedus, Marlos C Machado, Aaron Courville, and Marc G Bellemare. Benchmarking bonus-based exploration methods on the arcade learning environment. arXiv preprint arXiv:1908.02388, 2019.
276
+
277
+ Haoran Tang, Rein Houthooft, Davis Foote, Adam Stooke, OpenAI Xi Chen, Yan Duan, John Schulman, Filip DeTurck, and Pieter Abbeel. # exploration: A study of count-based exploration for deep reinforcement learning. In Advances in neural information processing systems, pp. 2753– 2762, 2017.
278
+
279
+ Sebastian Thrun and Lorien Pratt. Learning to learn. Springer Science & Business Media, 1998.
280
+
281
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5026–5033. IEEE, 2012.
282
+
283
+ Leslie Valiant. Probably Approximately Correct: NatureOs Algorithms for Learning and Prospering ˜ in a Complex World. Basic Books (AZ), 2013.
284
+
285
+ Vivek Veeriah, Matteo Hessel, Zhongwen Xu, Richard Lewis, Janarthanan Rajendran, Junhyuk Oh, Hado van Hasselt, David Silver, and Satinder Singh. Discovery of useful questions as auxiliary tasks. arXiv preprint arXiv:1909.04607, 2019.
286
+
287
+ JX Wang, Z Kurth-Nelson, D Tirumala, H Soyer, JZ Leibo, R Munos, C Blundell, D Kumaran, and M Botivnick. Learning to reinforcement learn. arxiv 1611.05763, 2017.
288
+
289
+ Rui Wang, Joel Lehman, Jeff Clune, and Kenneth O Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019.
290
+
291
+ Dennis G Wilson, Sylvain Cussat-Blanc, Herve Luga, and Julian F Miller. Evolving simple programs ´ for playing atari games. In Proceedings of the Genetic and Evolutionary Computation Conference, pp. 229–236. ACM, 2018.
292
+
293
+ Zhongwen Xu, Hado P van Hasselt, and David Silver. Meta-gradient reinforcement learning. In Advances in neural information processing systems, pp. 2396–2407, 2018.
294
+
295
+ Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Sergey Levine, and Chelsea Finn. Meta-world: A benchmark and evaluation for multi-task and meta-reinforcement learning, 2019. URL https://github.com/rlworkgroup/metaworld.
296
+
297
+ Zeyu Zheng, Junhyuk Oh, and Satinder Singh. On learning intrinsic rewards for policy gradient methods. In Advances in Neural Information Processing Systems, pp. 4644–4654, 2018.
298
+
299
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE international conference on computer vision, pp. 2223–2232, 2017.
300
+
301
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
302
+
303
+ Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8697–8710, 2018.
304
+
305
+ # A DETAILS OF OUR DOMAIN-SPECIFIC LANGUAGE FOR CURIOSITYALGORITHMS
306
+
307
+ We have the following types. Note that $\mathbb { S }$ and $\mathbb { A }$ get defined differently for every environment.
308
+
309
+ • $\mathbb { R }$ : real numbers such as $r _ { t }$ or the dot-product between two vectors.
310
+ • $\mathbb { R } ^ { + }$ : numbers guaranteed to be positive, such as the distance between two vectors. The only difference to our program search between $\mathbb { R }$ and $\mathbb { R } ^ { + }$ is in pruning programs that can optimize objectives without looking at the data. For $\mathbb { R } ^ { + }$ we check whether they can optimize down to 0, for $\mathbb { R }$ we check whether they can optimize to arbitrarily negative values.
311
+ • state space $\mathbb { S }$ : the environment state, such as a matrix of pixels or a vector with robot joint values. The particular form of this type is adapted to each environment.
312
+ • action space A: either a 1-hot description of the action or the action itself. The particular form of this type is adapted to each environment.
313
+ • feature-space $\mathbb { F } = \mathbb { R } ^ { 3 2 }$ : a space mostly useful to work with neural network embeddings. For simplicity, we only have a single feature space.
314
+ • List[X]: for each type we may also have a list of elements of that type. All operations that take a particular type as input can also be applied to lists of elements of that type by mapping the function to every element in the list. Lists also support extra operations such as average or variance.
315
+
316
+ A.1 CURIOSITY OPERATIONS
317
+
318
+ <table><tr><td rowspan=1 colspan=1>Operation</td><td rowspan=1 colspan=3>Input type(s)</td><td rowspan=1 colspan=2>State</td><td rowspan=1 colspan=2>Output type</td></tr><tr><td rowspan=1 colspan=1>Add</td><td rowspan=1 colspan=3>R,R</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>RunningNorm</td><td rowspan=1 colspan=3>R</td><td rowspan=1 colspan=2>R</td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>VariableAsBuffer</td><td rowspan=1 colspan=3>X</td><td rowspan=1 colspan=1>List[X]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>List[X]</td></tr><tr><td rowspan=1 colspan=1>NearestNeighborRegressor</td><td rowspan=1 colspan=3>F,F</td><td rowspan=1 colspan=1>List[F]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>F</td></tr><tr><td rowspan=1 colspan=1>SubtractOneTenth</td><td rowspan=1 colspan=3>R</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>NormalDistribution</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>Subtract</td><td rowspan=1 colspan=3>R,R</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>Sqrt(Abs(x))</td><td rowspan=1 colspan=3>R</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R+</td></tr><tr><td rowspan=1 colspan=1>NN F,F → F</td><td rowspan=1 colspan=3>F,F</td><td rowspan=1 colspan=2>OF,F→F</td><td rowspan=1 colspan=2>F</td></tr><tr><td rowspan=1 colspan=1>NNF,F→A</td><td rowspan=1 colspan=3>F,F</td><td rowspan=1 colspan=2>OF,F→A</td><td rowspan=1 colspan=2>A</td></tr><tr><td rowspan=1 colspan=1>NNF→A</td><td rowspan=1 colspan=3>F</td><td rowspan=1 colspan=2>OF→A</td><td rowspan=1 colspan=2>A</td></tr><tr><td rowspan=1 colspan=1>NN A→F</td><td rowspan=1 colspan=3>A</td><td rowspan=1 colspan=2>OA→F</td><td rowspan=1 colspan=2>F</td></tr><tr><td rowspan=1 colspan=1>(C)NN</td><td rowspan=1 colspan=3>S</td><td rowspan=1 colspan=2>Os→F</td><td rowspan=1 colspan=2>F</td></tr><tr><td rowspan=1 colspan=1>(C)NN, Detach</td><td rowspan=1 colspan=3>S</td><td rowspan=1 colspan=2>Os→F</td><td rowspan=1 colspan=2>F</td></tr><tr><td rowspan=1 colspan=1>(C)NNEnsemble</td><td rowspan=1 colspan=3>S</td><td rowspan=1 colspan=2>5xOs-→F</td><td rowspan=1 colspan=1>List[F]</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>NN Ensemble F→F</td><td rowspan=1 colspan=3>F</td><td rowspan=1 colspan=2>5xOF→F</td><td rowspan=1 colspan=1>List[F]</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>NN Ensemble F,F → F</td><td rowspan=1 colspan=3>F,F</td><td rowspan=1 colspan=2>5xOF,F→F</td><td rowspan=1 colspan=1>List[F]</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>NN Ensemble F,A →F</td><td rowspan=1 colspan=3>F,A</td><td rowspan=1 colspan=2>5xOA,F→F</td><td rowspan=1 colspan=1>List[F]</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>MinimizeValue</td><td rowspan=1 colspan=3>R</td><td rowspan=1 colspan=2>Adam</td><td rowspan=1 colspan=2></td></tr><tr><td rowspan=1 colspan=1>L2Norm</td><td rowspan=1 colspan=3>X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R+</td></tr><tr><td rowspan=1 colspan=1>L2Distance</td><td rowspan=1 colspan=3>X, X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>ActionSpaceLoss</td><td rowspan=1 colspan=3>X,A</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R+</td></tr><tr><td rowspan=1 colspan=1>DotProduct</td><td rowspan=1 colspan=3>X, X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>Add</td><td rowspan=1 colspan=3>X, X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>X</td></tr><tr><td rowspan=1 colspan=1>Detach</td><td rowspan=1 colspan=3>X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>X</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=2>List[R]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R</td></tr><tr><td rowspan=1 colspan=1>Variance</td><td rowspan=1 colspan=2>List[X]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>R+</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=1>List[X]</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>X</td></tr><tr><td rowspan=1 colspan=1>Mapped L2 Norm</td><td rowspan=1 colspan=1>List[X]</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>List[R]</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Average Distance</td><td rowspan=1 colspan=1>List</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>,X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>R</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Minus</td><td rowspan=1 colspan=1>List</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>,X</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>List[X]</td><td rowspan=1 colspan=1></td></tr></table>
319
+
320
+ Note that $\mathbb { X }$ stands for the option of being $\mathbb { F }$ or A. NearestNeighborRegressor takes a query and a target, automatically creates a buffer of the target (thus keeps a list as a state) and answers based on the buffer. RunningNorm keeps track of the variance of the input and normalizes by that variance.
321
+
322
+ A.2 REWARD COMBINER OPERATIONS
323
+
324
+ <table><tr><td rowspan=1 colspan=1>Operation</td><td rowspan=1 colspan=2>Input type(s)</td><td rowspan=1 colspan=1>State</td><td rowspan=1 colspan=1>Output type</td></tr><tr><td rowspan=1 colspan=1>Constant {0.01,0.1,0.5,1]</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>NormalDistribution</td><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>Add</td><td rowspan=1 colspan=2>R,R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>Max</td><td rowspan=1 colspan=2>R,R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>Min</td><td rowspan=1 colspan=2>R,R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>WeightedNormalizedSum</td><td rowspan=1 colspan=2>R, R, R, R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>RunningNorm</td><td rowspan=1 colspan=2>R</td><td rowspan=1 colspan=1>R</td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>VariableAsBuffer</td><td rowspan=1 colspan=2>R</td><td rowspan=1 colspan=1>List[R]</td><td rowspan=1 colspan=1>List[R]</td></tr><tr><td rowspan=1 colspan=1>Subtract</td><td rowspan=1 colspan=2>R,R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>Multiply</td><td rowspan=1 colspan=2>R,R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr><tr><td rowspan=1 colspan=1>Sqrt(Abs(x))</td><td rowspan=1 colspan=2>R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R+</td></tr><tr><td rowspan=1 colspan=1>Mean</td><td rowspan=1 colspan=1>List[R]</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>R</td></tr></table>
325
+
326
+ Note that W eightedNormaliz $\begin{array} { r } { { \mathrm { { ? } } d } S u m ( a , b , c , d ) = \frac { a b + c d } { | a | + | c | } } \end{array}$ RunningNorm keeps track of the variance of the input and normalizes by that variance.
327
+
328
+ # A.3 TWO OTHER PUBLISHED ALGORITHMS COVERED BY OUR DSL
329
+
330
+ ![](images/b4cc34407c965592a423660e66969c6e87cad82e11880ebcfb4d6d75a22388fc.jpg)
331
+ Figure 5: Curiosity by predictive error on inverse features by Pathak et al. (2017). In pink, paths and networks where gradients flow back from the minimizer.
332
+
333
+ ![](images/f85208832013cc57f31c9b9fa0280d7d355f5ed53f429fdfa9865b1864521ed9.jpg)
334
+ Figure 6: Curiosity by ensemble predictive variance Pathak et al. (2019). In pink, paths and networks where gradients flow back from the minimizer.
335
+
336
+ # B RELATED WORK ON META-RL AND GENERALIZATION
337
+
338
+ Most work on meta-RL has focused on learning transferable feature representations or parameter values for quickly adapting to new tasks (Finn et al., 2017; Finn, 2018; Clavera et al., 2019) or improving performance on a single task (Xu et al., 2018; Veeriah et al., 2019). However, the range of variability between tasks is typically limited to variations of the same goal (such as moving at different speeds or to different locations) or generalizing to different environment variations (such as different mazes or different terrain slopes). There have been some attempts to broaden the spectrum of generalization, showing transfer between Atari games thanks to modularity (Fernando et al., 2017; Rusu et al., 2016) or proper pretraining (Parisotto et al., 2015). However, as noted by Nichol et al. (2018), Atari games are too different to get big gains with current feature-transfer methods; they instead suggest using different levels of the game Sonic to benchmark generalization. Moreover, Yu et al. (2019) recently proposed a benchmark of many tasks. Wang et al. (2019) automatically generate different terrains for a bipedal walker and transfer policies between terrains, showing that this is more effective than learning a policy on hard terrains from scratch; similar to our suggestion in section 3.2. In contrast to these methods, we aim at generalization between completely different environments, even between environments that do not share the same state and action spaces.
339
+
340
+ # C PREDICTING ALGORITHM PERFORMANCE
341
+
342
+ ![](images/9fbd5530cd73dffdf09f1a91c62ababc4d138fed0b39aab5576c1922197146bc.jpg)
343
+ Figure 7: Predicting algorithm performance from the structure of the program alone. Comparison between predicted and actual performance on a test set; showing a correlation of 0.54. In black, the identity line.
344
+
345
+ ![](images/153b3a788ffb7f48d93db180f61630a8be94107849ad3322edd2a6a72d37e025.jpg)
346
+ Figure 8: Predicting algorithm performance allows us to find the best programs faster. We investigate the number of the top $1 \%$ of programs found vs. the number of programs evaluated, and observe that the optimized search (in blue) finds $8 8 \%$ of the best programs after only evaluating $50 \%$ of the programs (highlighted in green). The naive search order would have only found $50 \%$ of the best programs at that point.
347
+
348
+ ![](images/d24148dd967ff4158d9e4bab9070cfef40799a69bf62f4671f0e8561668ef5d6.jpg)
349
+ Figure 9: In black, mean performance across 5 trials for all 26,000 programs evaluated (out of their finished trials). In green mean plus one standard deviation for the mean estimate and in red one minus one standard deviation for the mean estimate. On the right, you can see program means form roughly a gaussian distribution of very big noise (thus probably not significant) with a very small (between ${ \bar { 0 . 5 \% } }$ and $1 \%$ of programs) long tail of programs with statistically significantly good performance (their red dots are much higher than almost all green dots), composed of algorithms leading to good exploration.
350
+
351
+ ![](images/2cbb2b0db2b07eb57741a7d3006980c4c6a3c7a2faa959745bb458fb9c064012.jpg)
352
+ Figure 10: Cycle-Consistency Intrinsic Motivation algorithm, found by our search (3 of the top 16 programs on grid world are variants of this program). The purple Predict Target From Query boxes feed the query to a neural network, return the prediction as output and add the prediction loss to the optimization, back-propagating to the network and the query, but not the target. Notice that $\theta _ { 1 }$ is not getting trained because no loss back-propagates there; thus producing a random feature embedding $s _ { f } ( t )$ from $s ( t )$ . The algorithm combines several concepts seen in the literature, such as an untrained network like RND Burda et al. (2018) and predicting another state in feature space like Pathak et al. (2017; 2019), but also includes weight sharing between both predictions, which makes the algorithm hard to interpret at first sight, see below for an in-depth explanation.
353
+
354
+ One can give meaning to the role of all 3 neural networks by considering how they contribute to minimizing the loss. To do so, let us name the networks: $\theta \{ 1 \}$ (as labeled in the figure) as $r _ { \theta _ { 1 } }$ (for random embedding), $\theta \{ 2 \}$ as $b _ { \theta _ { 2 } }$ (for backwards) and $\theta \{ 3 \}$ as $f r _ { \theta _ { 3 } }$ (for forward and random embedding) and look at the algorithm in equation form:
355
+
356
+ $$
357
+ i _ { t } = \left. b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t } ) \right) - b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } \left( s _ { t + 1 } \right) \right) \right.
358
+ $$
359
+
360
+ $$
361
+ \begin{array} { c } { { \displaystyle \theta _ { 2 } : = \theta _ { 2 } - \eta \displaystyle \frac { \partial } { \partial \theta _ { 2 } } \Big ( \| b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t } ) \right) - r _ { \theta _ { 1 } } ( s _ { t } ) \| + } } \\ { { \displaystyle \| b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t + 1 } ) \right) - f r _ { \theta _ { 3 } } ( s _ { t } ) \| \Big ) } } \\ { { \displaystyle \theta _ { 3 } : = \theta _ { 3 } - \eta \displaystyle \frac { \partial } { \partial \theta _ { 3 } } \Big ( \| b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t } ) \right) - r _ { \theta _ { 1 } } ( s _ { t } ) \| \Big ) } } \end{array}
362
+ $$
363
+
364
+ We can see that $r _ { \theta _ { 1 } }$ will indeed be a random embedding because the network is randomly initialized and is not trained. Then, we observe that the second term in the loss for $\theta _ { 2 }$ , which does not involve $\theta _ { 3 }$ and thus $\theta _ { 2 }$ has to minimize alone, is $\| b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t + 1 } ) \right) - f r _ { \theta _ { 3 } } ( s _ { t } ) \|$ . In this term, $b _ { \theta _ { 2 } }$ receives a transformation of $s _ { t + 1 }$ and has to make it very similar to the same transformation applied to $s _ { t }$ ; therefore, this term is similar to cycle-consistency found in some other parts of machine learning Zhu et al. (2017) and $b _ { \theta _ { 2 } }$ must act like a backward model. Finally, looking at the minimization of $\theta _ { 3 }$ receives the original $s _ { t }$ and has to output a vector such that the backward model will bring it close to the random embedding of $s _ { t }$ . Therefore $\theta _ { 3 }$ must learn a forward model composed with the random embedding of $\theta _ { 1 }$ . Finally, we see that the algorithm outputs $\left. b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } ( s _ { t } ) \right) - b _ { \theta _ { 2 } } \left( f r _ { \theta _ { 3 } } \left( s _ { t + 1 } \right) \right) \right.$ , going forward and backward for both $s _ { t + 1 }$ and $s _ { t }$ and comparing the difference. In summary, this distance combines errors in the cycle-consistency of predictions (which will be higher in unvisited parts of the state) with distance in the random embedding space between $s ( t )$ and $s ( t + 1 )$ , i.e. moving to a very different state.
365
+
366
+ ![](images/4c51720083f85eb941721494621924294fc86ad54d62196f5ac81f66b3351227.jpg)
367
+ Figure 11: Top variant in preliminary search on grid world; variant on random network distillation using an ensemble of trained networks instead of a single one.
parse/train/BygdyxHFDS/BygdyxHFDS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BygdyxHFDS/BygdyxHFDS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BygdyxHFDS/BygdyxHFDS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJlA0C4tPS/HJlA0C4tPS.md ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A PROBABILISTIC FORMULATION OF UNSUPERVISED TEXT STYLE TRANSFER
2
+
3
+ Junxian $\mathbf { H e } ^ { * }$ , Xinyi Wang∗, Graham Neubig Carnegie Mellon University {junxianh,xinyiw1,gneubig}@cs.cmu.edu
4
+
5
+ Taylor Berg-Kirkpatrick University of California San Diego tberg@eng.ucsd.edu
6
+
7
+ # ABSTRACT
8
+
9
+ We present a deep generative model for unsupervised text style transfer that unifies previously proposed non-generative techniques. Our probabilistic approach models non-parallel data from two domains as a partially observed parallel corpus. By hypothesizing a parallel latent sequence that generates each observed sequence, our model learns to transform sequences from one domain to another in a completely unsupervised fashion. In contrast with traditional generative sequence models (e.g. the HMM), our model makes few assumptions about the data it generates: it uses a recurrent language model as a prior and an encoder-decoder as a transduction distribution. While computation of marginal data likelihood is intractable in this model class, we show that amortized variational inference admits a practical surrogate. Further, by drawing connections between our variational objective and other recent unsupervised style transfer and machine translation techniques, we show how our probabilistic view can unify some known non-generative objectives such as backtranslation and adversarial loss. Finally, we demonstrate the effectiveness of our method on a wide range of unsupervised style transfer tasks, including sentiment transfer, formality transfer, word decipherment, author imitation, and related language translation. Across all style transfer tasks, our approach yields substantial gains over state-of-the-art non-generative baselines, including the state-of-the-art unsupervised machine translation techniques that our approach generalizes. Further, we conduct experiments on a standard unsupervised machine translation task and find that our unified approach matches the current state-of-the-art.1
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Text sequence transduction systems convert a given text sequence from one domain to another. These techniques can be applied to a wide range of natural language processing applications such as machine translation (Bahdanau et al., 2015), summarization (Rush et al., 2015), and dialogue response generation (Zhao et al., 2017). In many cases, however, parallel corpora for the task at hand are scarce. Therefore, unsupervised sequence transduction methods that require only non-parallel data are appealing and have been receiving growing attention (Bannard & Callison-Burch, 2005; Ravi & Knight, 2011; Mizukami et al., 2015; Shen et al., 2017; Lample et al., 2018; 2019). This trend is most pronounced in the space of text style transfer tasks where parallel data is particularly challenging to obtain (Hu et al., 2017; Shen et al., 2017; Yang et al., 2018). Style transfer has historically referred to sequence transduction problems that modify superficial properties of text – i.e. style rather than content.2 We focus on a standard suite of style transfer tasks, including formality transfer (Rao & Tetreault, 2018), author imitation (Xu et al., 2012), word decipherment (Shen et al., 2017), sentiment transfer (Shen et al., 2017), and related language translation (Pourdamghani & Knight, 2017). General unsupervised translation has not typically been considered style transfer, but for the purpose of comparison we also conduct evaluation on this task (Lample et al., 2017).
14
+
15
+ Recent work on unsupervised text style transfer mostly employs non-generative or non-probabilistic modeling approaches. For example, Shen et al. (2017) and Yang et al. (2018) design adversarial discriminators to shape their unsupervised objective – an approach that can be effective, but often introduces training instability. Other work focuses on directly designing unsupervised training objectives by incorporating intuitive loss terms (e.g. backtranslation loss), and demonstrates state-ofthe-art performance on unsupervised machine translation (Lample et al., 2018; Artetxe et al., 2019) and style transfer (Lample et al., 2019). However, the space of possible unsupervised objectives is extremely large and the underlying modeling assumptions defined by each objective can only be reasoned about indirectly. As a result, the process of designing such systems is often heuristic.
16
+
17
+ In contrast, probabilistic models (e.g. the noisy channel model (Shannon, 1948)) define assumptions about data more explicitly and allow us to reason about these assumptions during system design. Further, the corresponding objectives are determined naturally by principles of probabilistic inference, reducing the need for empirical search directly in the space of possible objectives. That said, classical probabilistic models for unsupervised sequence transduction (e.g. the HMM or semi-HMM) typically enforce overly strong independence assumptions about data to make exact inference tractable (Knight et al., 2006; Ravi & Knight, 2011; Pourdamghani & Knight, 2017). This has restricted their development and caused their performance to lag behind unsupervised neural objectives on complex tasks. Luckily, in recent years, powerful variational approximation techniques have made it more practical to train probabilistic models without strong independence assumptions (Miao & Blunsom, 2016; Yin et al., 2018). Inspired by this, we take a new approach to unsupervised style transfer.
18
+
19
+ We directly define a generative probabilistic model that treats a non-parallel corpus in two domains as a partially observed parallel corpus. Our model makes few independence assumptions and its true posterior is intractable. However, we show that by using amortized variational inference (Kingma & Welling, 2013), a principled probabilistic technique, a natural unsupervised objective falls out of our modeling approach that has many connections with past work, yet is different from all past work in specific ways. In experiments across a suite of unsupervised text style transfer tasks, we find that the natural objective of our model actually outperforms all manually defined unsupervised objectives from past work, supporting the notion that probabilistic principles can be a useful guide even in deep neural systems. Further, in the case of unsupervised machine translation, our model matches the current state-of-the-art non-generative approach.
20
+
21
+ # 2 UNSUPERVISED TEXT STYLE TRANSFER
22
+
23
+ We first overview text style transfer, which aims to transfer a text (typically a single sentence or a short paragraph – for simplicity we refer to simply “sentences” below) from one domain to another while preserving underlying content. For example, formality transfer (Rao & Tetreault, 2018) is the task of transforming the tone of text from informal to formal without changing its content. Other examples include sentiment transfer (Shen et al., 2017), word decipherment (Knight et al., 2006), and author imitation (Xu et al., 2012). If parallel examples were available from each domain (i.e. the training data is a bitext consisting of pairs of sentences from each domain), supervised techniques could be used to perform style transfer (e.g. attentional Seq2Seq (Bahdanau et al., 2015) and Transformer (Vaswani et al., 2017)). However, for most style transfer problems, only non-parallel corpora (one corpus from each domain) can be easily collected. Thus, work on style transfer typically focuses on the more difficult unsupervised setting where systems must learn from non-parallel data alone.
24
+
25
+ The model we propose treats an observed non-parallel text corpus as a partially observed parallel corpus. Thus, we introduce notation for both observed text inputs and those that we will treat as latent variables. Specifically, we let $X = \{ x ^ { ( 1 ) } , x ^ { ( 2 ) } , \cdot \cdot \cdot , x ^ { ( \bar { m } ) } \}$ represent observed data from domain $\mathcal { D } _ { 1 }$ , while we let $Y = \{ y ^ { ( m + 1 ) } , y ^ { ( m + \overset { \cdot } { 2 } ) } , \cdot \cdot \cdot , y ^ { ( n ) } \}$ represent observed data from domain $\mathcal { D } _ { 2 }$ . Corresponding indices represent parallel sentences. Thus, none of the observed sentences share indices. In our model, we introduce latent sentences to complete the parallel corpus. Specifically, $\bar { X } = \{ \bar { x } ^ { ( m + 1 ) } , \bar { x } ^ { ( m + 2 ) } , \cdot \cdot \cdot , \bar { x } ^ { ( n ) } \}$ represents the set of latent parallel sentences in $\mathcal { D } _ { 1 }$ , while $\bar { Y } = \{ \bar { y } ^ { ( 1 ) } , \bar { y } ^ { ( 2 ) } , \cdot \cdot \cdot , \bar { y } ^ { ( m ) } \}$ represents the set of latent parallel sentences in $\mathcal { D } _ { 2 }$ . Then the goal of unsupervised text transduction is to infer these latent variables conditioned the observed non-parallel corpora; that is, to learn $p ( { \bar { y } } | x )$ and $p ( { \bar { x } } | y )$ .
26
+
27
+ ![](images/41384ec1945473ca58fdedb371d1e2b9339b296d94ddeac4f8b18385ad392414.jpg)
28
+ Figure 1: Proposed graphical model for style transfer via bitext completion. Shaded circles denote the observed variables and unshaded circles denote the latents. The generator is parameterized as an encoder-decoder architecture and the prior on the latent variable is a pretrained language model.
29
+
30
+ # 3 THE DEEP LATENT SEQUENCE MODEL
31
+
32
+ First we present our generative model of bitext, which we refer to as a deep latent sequence model.
33
+ We then describe unsupervised learning and inference techniques for this model class.
34
+
35
+ # 3.1 MODEL STRUCTURE
36
+
37
+ Directly modeling $p ( { \bar { y } } | x )$ and $p ( { \bar { x } } | y )$ in the unsupervised setting is difficult because we never directly observe parallel data. Instead, we propose a generative model of the complete data that defines a joint likelihood, $p ( X , { \bar { X } } , Y , { \bar { Y } } )$ . In order to perform text transduction, the unobserved halves can be treated as latent variables: they will be marginalized out during learning and inferred via posterior inference at test time.
38
+
39
+ Our model assumes that each observed sentence is generated from an unobserved parallel sentence in the opposite domain, as depicted in Figure 1. Specifically, each sentence $\boldsymbol { x } ^ { ( i ) }$ in domain $\mathcal { D } _ { 1 }$ is generated as follows: First, a latent sentence $\bar { y } ^ { ( i ) }$ in domain $\mathcal { D } _ { 2 }$ is sampled from a prior, $p _ { { D _ { 2 } } } ( \bar { y } ^ { ( i ) } )$ . Then, $x ^ { ( i ) }$ is sampled conditioned on $\bar { y } ^ { ( i ) }$ from a transduction model, $p ( \boldsymbol { x } ^ { ( i ) } | \bar { y } ^ { ( i ) } )$ . Similarly, each observed sentence $y ^ { ( j ) }$ in domain $\mathcal { D } _ { 2 }$ is generated conditioned on a latent sentence, $\bar { x } ^ { ( j ) }$ , in domain $\mathcal { D } _ { 1 }$ via the opposite transduction model, $p ( \boldsymbol { y } ^ { ( j ) } | \bar { x } ^ { ( j ) } )$ , and prior, $p _ { \mathcal { D } _ { 1 } } ( \bar { x } ^ { ( j ) } )$ . We let $\theta _ { x | \bar { y } }$ and $\theta _ { y | \bar { x } }$ represent the parameters of the two transduction distributions respectively. We assume the prior distributions are pretrained on the observed data in their respective domains and therefore omit their parameters for simplicity of notation. Together, this gives the following joint likelihood:
40
+
41
+ $$
42
+ p ( X , \bar { X } , Y , \bar { Y } ; \theta _ { x | \bar { y } } , \theta _ { y | \bar { x } } ) = \left( \prod _ { i = 1 } ^ { m } p \big ( x ^ { ( i ) } | \bar { y } ^ { ( i ) } ; \theta _ { x | \bar { y } } \big ) p _ { \mathcal { D } _ { 2 } } \big ( \bar { y } ^ { ( i ) } \big ) \right) \left( \prod _ { j = m + 1 } ^ { n } p \big ( y ^ { ( j ) } | \bar { x } ^ { ( j ) } ; \theta _ { y | \bar { x } } \big ) p _ { \mathcal { D } _ { 1 } } \big ( \bar { x } ^ { ( j ) } \big ) \right)
43
+ $$
44
+
45
+ The log marginal likelihood of the data, which we will approximate during training, is:
46
+
47
+ $$
48
+ \log p ( X , Y ; \theta _ { x | \bar { y } } , \theta _ { y | \bar { x } } ) = \log \sum _ { \bar { X } } \sum _ { \bar { Y } } p ( X , \bar { X } , Y , \bar { Y } ; \theta _ { x | \bar { y } } , \theta _ { y | \bar { x } } )
49
+ $$
50
+
51
+ Note that if the two transduction models share no parameters, the training problems for each observed domain are independent. Critically, we introduce parameter sharing through our variational inference procedure, which we describe in more detail in Section 3.2.
52
+
53
+ Architecture: Since we would like to be able to model a variety of transfer tasks, we choose a parameterization for our transduction distributions that makes no independence assumptions. Specifically, we employ an encoder-decoder architecture based on the standard attentional Seq2Seq model which has been shown to be successful across various tasks (Bahdanau et al., 2015; Rush et al., 2015). Similarly, our prior distributions for each domain are parameterized as recurrent language models which, again, make no independence assumptions. In contrast, traditional unsupervised generative sequence models typically make strong independence assumptions to enable exact inference (e.g. the HMM makes a Markov assumption on the latent sequence and emissions are one-to-one). Our model is more flexible, but exact inference via dynamic programming will be intractable. We address this problem in the next section.
54
+
55
+ ![](images/465557888fae2116dee1e4e4dd348b9e4d1230bed6a6f3b67479bcd78b680d54.jpg)
56
+ Figure 2: Depiction of amortized variational approximation. Distributions $q ( { \bar { y } } | x )$ and $q ( { \bar { x } } | y )$ represent inference networks that approximate the model’s true posterior. Critically, parameters are shared between the generative model and inference networks to tie the learning problems for both domains.
57
+
58
+ # 3.2 LEARNING
59
+
60
+ Ideally, learning should directly optimize the log data likelihood, which is the marginal of our model shown in Eq. 2. However, due to our model’s neural parameterization which does not factorize, computing the data likelihood cannot be accomplished using dynamic programming as can be done with simpler models like the HMM. To overcome the intractability of computing the true data likelihood, we adopt amortized variational inference (Kingma & Welling, 2013) in order to derive a surrogate objective for learning, the evidence lower bound (ELBO) on log marginal likelihood3 :
61
+
62
+ $$
63
+ \begin{array} { r l } & { \log p ( X , Y ; \theta _ { x | \bar { y } } , \theta _ { y | \bar { x } } ) } \\ & { \ge \mathcal { L } _ { \mathrm { E L B O } } ( X , Y ; \theta _ { x | \bar { y } } , \theta _ { y | \bar { x } } , \phi _ { \bar { x } | y } , \phi _ { \bar { y } | x } ) } \\ & { = \sum _ { i } \Big [ \mathbb { E } _ { q ( \bar { y } | x ^ { ( i ) } ; \phi _ { \bar { y } | x } ) } [ \log p ( x ^ { ( i ) } | \bar { y } ; \theta _ { x | \bar { y } } ) ] - D _ { \mathrm { K L } } \big ( q ( \bar { y } | x ^ { ( i ) } ; \phi _ { \bar { y } | x } ) | | p _ { \mathcal { D } _ { 2 } } ( \bar { y } ) \big ) \Big ] } \\ & { + \sum _ { j } \underbrace { \Big [ \mathbb { E } _ { q ( \bar { x } | y ^ { ( j ) } ; \phi _ { \bar { x } | y } ) } [ \log p ( y ^ { ( j ) } | \bar { x } ; \theta _ { y | \bar { x } } ) ] } _ { \mathrm { R e c o n s t u c i o n ~ l i k e l i h o o d } } - \underbrace { D _ { \mathrm { K L } } \big ( q ( \bar { x } | y ^ { ( j ) } ; \phi _ { \bar { x } | y } ) \big ) | p _ { \bar { D } _ { 1 } } ( \bar { x } ) \big ) } _ { \mathrm { K L ~ r e g u l a r i z e r } } \Big ] } \end{array}
64
+ $$
65
+
66
+ The surrogate objective introduces $q ( \bar { y } | x ^ { ( i ) } ; \phi _ { \bar { y } | x } )$ and $q ( \bar { x } | y ^ { ( j ) } ; \phi _ { \bar { x } | y } )$ , which represent two separate inference network distributions that approximate the model’s true posteriors, $p ( \bar { y } | x ^ { ( i ) } ; \theta _ { x | \bar { y } } )$ and $p ( \bar { x } | y ^ { ( j ) } ; \theta _ { y | \bar { x } } )$ , respectively. Learning operates by jointly optimizing the lower bound over both variational and model parameters. Once trained, the variational posterior distributions can be used directly for style transfer. The KL terms in Eq. 3, that appear naturally in the ELBO objective, can be intuitively viewed as regularizers that use the language model priors to bias the induced sentences towards the desired domains. Amortized variational techniques have been most commonly applied to continuous latent variables, as in the case of the variational autoencoder (VAE) (Kingma & Welling, 2013). Here, we use this approach for inference over discrete sequences, which has been shown to be effective in related work on a semi-supervised task (Miao & Blunsom, 2016).
67
+
68
+ Inference Network and Parameter Sharing: Note that the approximate posterior on one domain aims to learn the reverse style transfer distribution, which is exactly the goal of the generative distribution in the opposite domain. For example, the inference network $\bar { q } ( \bar { y } | x ^ { ( i ) } ; \phi _ { \bar { y } | x } )$ and the generative distribution $p ( y | \bar { x } ^ { ( i ) } ; \theta _ { y | \bar { x } } )$ both aim to transform $\mathcal { D } _ { 1 }$ to $\mathcal { D } _ { 2 }$ . Therefore, we use the same architecture for each inference network as used in the transduction models, and tie their parameters: $\phi _ { \bar { x } | y } = \theta _ { x | \bar { y } } , \phi _ { \bar { y } | x } = \theta _ { y | \bar { x } }$ . This means we learn only two encoder-decoders overall – which are parameterized by $\theta _ { x | \bar { y } }$ and $\theta _ { y | \bar { x } }$ respectively – to represent two directions of transfer. In addition to reducing the number of learnable parameters, this parameter tying couples the learning problems for both domains and allows us to jointly learn from the full data. Moreover, inspired by recent work that builds a universal Seq2Seq model to translate between different language pairs (Johnson et al., 2017), we introduce further parameter tying between the two directions of transduction: the same encoder is employed for both $x$ and $y$ , and a domain embedding $c$ is provided to the same decoder to specify the transfer direction, as shown in Figure 2. Ablation analysis in Section 5.3 suggests that parameter sharing is important to achieve good performance.
69
+
70
+ Approximating Gradients of ELBO: The reconstruction and KL terms in Eq. 3 still involve intractable expectations due to the marginalization over the latent sequence, thus we need to approximate their gradients. Gumbel-softmax (Jang et al., 2017) and REINFORCE (Sutton et al., 2000) are often used as stochastic gradient estimators in the discrete case. Since the latent text variables have an extremely large domain, we find that REINFORCE-based gradient estimates result in high variance. Thus, we use the Gumbel-softmax straight-through estimator to backpropagate gradients from the KL terms.4 However, we find that approximating gradients of the reconstruction loss is much more challenging – both the Gumbel-softmax estimator and REINFORCE are unable to outperform a simple stop-gradient method that does not back-propagate the gradient of the latent sequence to the inference network. This confirms a similar observation in previous work on unsupervised machine translation (Lample et al., 2018). Therefore, we use greedy decoding without recording gradients to approximate the reconstruction term.5 Note that the inference networks still receive gradients from the prior through the KL term, and their parameters are shared with the decoders which do receive gradients from reconstruction. We consider this to be the best empirical compromise at the moment.
71
+
72
+ Initialization. Good initialization is often necessary for successful optimization of unsupervised learning objectives. In preliminary experiments, we find that the encoder-decoder structure has difficulty generating realistic sentences during the initial stages of training, which usually results in a disastrous local optimum. This is mainly because the encoder-decoder is initialized randomly and there is no direct training signal to specify the desired latent sequence in the unsupervised setting. Therefore, we apply a self-reconstruction loss $\mathcal { L } _ { \mathrm { r e c } }$ at the initial epochs of training. We denote the output the encoder as $e ( \cdot )$ and the decoder distribution as $p _ { \mathrm { d e c } }$ , then
73
+
74
+ $$
75
+ \mathcal { L } _ { \mathrm { { r e c } } } = - \alpha \cdot \sum _ { i } [ p _ { \mathrm { d e c } } ( e ( x ^ { ( i } ) , c _ { x } ) ] - \alpha \cdot \sum _ { j } [ p _ { \mathrm { d e c } } ( e ( y ^ { ( j } ) , c _ { y } ) ] ,
76
+ $$
77
+
78
+ $\alpha$ decays from 1.0 to 0.0 linearly in the first $k$ epochs. $k$ is a tunable parameter and usually less than 3 in all our experiments.
79
+
80
+ # 4 CONNECTION TO RELATED WORK
81
+
82
+ Our probabilistic formulation can be connected with recent advances in unsupervised text transduction methods. For example, back translation loss (Sennrich et al., 2016) plays an important role in recent unsupervised machine translation (Artetxe et al., 2018; Lample et al., 2018; Artetxe et al., 2019) and unsupervised style transfer systems (Lample et al., 2019). In order to incorporate back translation loss the source language $x$ is translated to the target language $y$ to form a pseudo-parallel corpus, then a translation model from $y$ to $x$ can be learned on this pseudo bitext just as in supervised setting. While back translation was often explained as a data augmentation technique, in our probabilistic formulation it appears naturally with the ELBO objective as the reconstruction loss term.
83
+
84
+ Some previous work has incorporated a pretrained language models into neural semi-supervised or unsupervised objectives. He et al. (2016) uses the log likelihood of a pretrained language model as the reward to update a supervised machine translation system with policy gradient. Artetxe et al. (2019) utilize a similar idea for unsupervised machine translation. Yang et al. (2018) employed a similar approach, but interpret the LM as an adversary, training the generator to fool the LM. We show how our ELBO objective is connected with these more heuristic LM regularizers by expanding the KL loss term (assume $x$ is observed):
85
+
86
+ $$
87
+ D _ { \mathrm { K L } } ( q ( \bar { y } | x ) | | p _ { \mathcal { D } _ { 2 } } ( \bar { y } ) ) = - H _ { q } - \mathbb { E } _ { q } [ \log p _ { \mathcal { D } _ { 2 } } ( \bar { y } ) ] ,
88
+ $$
89
+
90
+ Note that the loss used in previous work does not include the negative entropy term, $- H _ { q }$ . Our objective results in this additional “regularizer”, the negative entropy of the transduction distribution, $- H _ { q }$ . Intuitively, $- H _ { q }$ helps avoid a peaked transduction distribution, preventing the transduction from constantly generating similar sentences to satisfy the language model. In experiments we will show that this additional regularization is important and helps bypass bad local optima and improve performance. These important differences with past work suggest that a probabilistic view of the unsupervised sequence transduction may provide helpful guidance in determining effective training objectives.
91
+
92
+ # 5 EXPERIMENTS
93
+
94
+ We test our model on five style transfer tasks: sentiment transfer, word substitution decipherment, formality transfer, author imitation, and related language translation. For completeness, we also evaluate on the task of general unsupervised machine translation using standard benchmarks.
95
+
96
+ We compare with the unsupervised machine translation model (UNMT) which recently demonstrated state-of-the-art performance on transfer tasks such as sentiment and gender transfer (Lample et al., 2019).6 To validate the effect of the negative entropy term in the KL loss term Eq. 5, we remove it and train the model with a back-translation loss plus a language model negative log likelihood loss (which we denote as $_ { \mathrm { B T + N L L } }$ ) as an ablation baseline. For each task, we also include strong baseline numbers from related work if available. For our method we select the model with the best validation ELBO, and for UNMT or $_ { \mathrm { B T + N L L } }$ we select the model with the best back-translation loss. Complete model configurations and hyperparameters can be found in Appendix A.1.
97
+
98
+ # 5.1 DATASETS AND EXPERIMENT SETUP
99
+
100
+ Word Substitution Decipherment. Word decipherment aims to uncover the plain text behind a corpus that was enciphered via word substitution where word in the vocabulary is mapped to a unique type in a cipher dictionary (Dou & Knight, 2012; Shen et al., 2017; Yang et al., 2018). In our formulation, the model is presented with a non-parallel corpus of English plaintext and the ciphertext. We use the data in (Yang et al., 2018) which provides 200K sentences from each domain. While previous work (Shen et al., 2017; Yang et al., 2018) controls the difficulty of this task by varying the percentage of words that are ciphered, we directly evaluate on the most difficult version of this task $- 1 0 0 \%$ of the words are enciphered (i.e. no vocabulary sharing in the two domains). We select the model with the best unsupervised reconstruction loss, and evaluate with BLEU score on the test set which contains 100K parallel sentences. Results are shown in Table 2.
101
+
102
+ Sentiment Transfer. Sentiment transfer is a task of paraphrasing a sentence with a different sentiment while preserving the original content. Evaluation of sentiment transfer is difficult and is still an open research problem (Mir et al., 2019). Evaluation focuses on three aspects: attribute control, content preservation, and fluency. A successful system needs to perform well with respect to all three aspects. We follow prior work by using three automatic metrics (Yang et al., 2018; Lample et al., 2019): classification accuracy, self-BLEU (BLEU of the output with the original sentence as the reference), and the perplexity (PPL) of each system’s output under an external language model. We pretrain a convolutional classifier (Kim, 2014) to assess classification accuracy, and use an LSTM language model pretrained on each domain to compute the PPL of system outputs.
103
+
104
+ We use the Yelp reviews dataset collected by Shen et al. (2017) which contains 250K negative sentences and 380K positive sentences. We also use a small test set that has 1000 human-annotated parallel sentences introduced in Li et al. (2018). We denote the positive sentiment as domain $\mathcal { D } _ { 1 }$ and the negative sentiment as domain $\mathcal { D } _ { 2 }$ . We use Self-BLEU and BLEU to represent the BLEU score of the output against the original sentence and the reference respectively. Results are shown in Table 1.
105
+
106
+ Formality Transfer. Next, we consider a harder task of modifying the formality of a sequence. We use the GYAFC dataset (Rao & Tetreault, 2018), which contains formal and informal sentences from two different domains. In this paper, we use the Entertainment and Music domain, which has about 52K training sentences, 5K development sentences, and 2.5K test sentences. This dataset actually contains parallel data between formal and informal sentences, which we use only for evaluation. We follow the evaluation of sentiment transfer task and test models on three axes. Since the test set is a parallel corpus, we only compute reference BLEU and ignore self-BLEU. We use $\mathcal { D } _ { 1 }$ to denote formal text, and $\mathcal { D } _ { 2 }$ to denote informal text. Results are shown in Table 1.
107
+
108
+ Table 1: Results on the sentiment transfer, author imitation, and formality transfer. We list the PPL of pretrained LMs on the test sets of both domains. We only report Self-BLEU on the sentiment task to compare with existing work.
109
+
110
+ <table><tr><td>Task</td><td>Model</td><td>Acc.</td><td>BLEU</td><td>Self-BLEU</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td rowspan="7">Sentiment</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>31.97</td><td>21.87</td></tr><tr><td>Shen et al. (2017)</td><td>79.50</td><td>6.80</td><td>12.40</td><td>50.40</td><td>52.70</td></tr><tr><td>Hu et al. (2017)</td><td>87.70</td><td>-</td><td>65.60</td><td>115.60</td><td>239.80</td></tr><tr><td>Yang et al. (2018)</td><td>83.30</td><td>13.40</td><td>38.60</td><td>30.30</td><td>42.10</td></tr><tr><td>UNMT</td><td>87.17</td><td>16.99</td><td>44.88</td><td>26.53</td><td>35.72</td></tr><tr><td>BT+NLL</td><td>88.36</td><td>12.36</td><td>31.48</td><td>8.75</td><td>12.82</td></tr><tr><td>Ours</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr><tr><td rowspan="4">AuthorImitation</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>132.95</td><td>85.25</td></tr><tr><td>UNMT</td><td>80.23</td><td>7.13</td><td>=</td><td>40.11</td><td>39.38</td></tr><tr><td>BT+NLL</td><td>76.98</td><td>10.80</td><td>=</td><td>61.70</td><td>65.51</td></tr><tr><td>Ours</td><td>81.43</td><td>10.81</td><td>=</td><td>49.62</td><td>44.86</td></tr><tr><td rowspan="4">Formality</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>71.30</td><td>135.50</td></tr><tr><td>UNMT</td><td>78.06</td><td>16.11</td><td>-</td><td>26.70</td><td>10.38</td></tr><tr><td>BT+NLL</td><td>82.43</td><td>8.57</td><td></td><td>6.57</td><td>8.21</td></tr><tr><td>Ours</td><td>80.46</td><td>18.54</td><td>-</td><td>22.65</td><td>17.23</td></tr></table>
111
+
112
+ Author Imitation. Author imitation is the task of paraphrasing a sentence to match another author’s style. The dataset we use is a collection of Shakespeare’s plays translated line by line into modern English. It was collected by $\mathrm { X u }$ et al. $( 2 0 1 2 ) ^ { 7 }$ and used in prior work on supervised style transfer (Jhamtani et al., 2017). This is a parallel corpus and thus we follow the setting in the formality transfer task. We use $\mathcal { D } _ { 1 }$ to denote modern English, and $\mathcal { D } _ { 2 }$ to denote Shakespeare-style English. Results are shown in Table 1.
113
+
114
+ Related Language Translation. Next, we test our method on a challenging related language translation task (Pourdamghani & Knight, 2017; Yang et al., 2018). This task is a natural test bed for unsupervised sequence transduction since the goal is to preserve the meaning of the source sentence while rewriting it into the target language. For our experiments, we choose Bosnian (bs) and Serbian (sr) as the related language pairs. We follow Yang et al. (2018) to report BLEU-1 score on this task since BLEU-4 score is close to zero. Results are shown in Table 2.
115
+
116
+ Unsupervised MT. In order to draw connections with a related work on general unsupervised machine translation, we also evaluate on the WMT’16 German English translation task. This task is substantially more difficult than the style transfer tasks considered so far. We compare with the state-of-the-art UNMT system using the existing implementation from the XLM codebase,8 and implement our approach in the same framework with XLM initialization for fair comparison. We train both systems on 5M non-parallel sentences from each language. Results are shown in Table 2.
117
+
118
+ In Tables 1 we also list the PPL of the test set under the external LM for both the source and target domain. PPL of system outputs should be compared to PPL of the test set itself because extremely low PPL often indicates that the generated sentences are short or trivial.
119
+
120
+ Table 2: BLEU for decipherment, related language translation (Sr-Bs), and general unsupervised translation (En-De).
121
+
122
+ <table><tr><td>Model</td><td>Decipher</td><td>Sr-Bs</td><td>Bs-Sr</td><td>En-De</td><td>De-En</td></tr><tr><td>Shen et al. (2017)</td><td>50.8</td><td>1</td><td>-</td><td></td><td>1</td></tr><tr><td>Yang et al. (2018)</td><td>49.3</td><td>31.0</td><td>33.4</td><td>1</td><td>-</td></tr><tr><td>UNMT</td><td>76.4</td><td>31.4</td><td>33.4</td><td>26.5</td><td>32.2</td></tr><tr><td>BT+NLL</td><td>78.0</td><td>29.6</td><td>31.4</td><td>-</td><td>-</td></tr><tr><td>Ours</td><td>78.4</td><td>36.2</td><td>38.3</td><td>26.9</td><td>32.0</td></tr></table>
123
+
124
+ # 5.2 RESULTS
125
+
126
+ Tables 1 and 2 demonstrate some general trends. First, UNMT is able to outperform
127
+
128
+ other prior methods in unsupervised text style transfer, such as (Yang et al., 2018; Hu et al., 2017; Shen et al., 2017). The performance improvements of UNMT indicate that flexible and powerful architectures are crucial (prior methods generally do not have an attention mechanism). Second, our model achieves comparable classification accuracy to UNMT but outperforms it in all style transfer tasks in terms of the reference-BLEU, which is the most important metric since it directly measures the quality of the final generations against gold parallel data. This indicates that our method is both effective and consistent across many different tasks. Finally, the $_ { \mathrm { B T + N L L } }$ baseline is sometimes quite competitive, which indicates that the addition of a language model alone can be beneficial. However, our method consistently outperforms the simple $_ { \mathrm { B T + N L L } }$ method, which indicates the effectiveness of the additional entropy regularizer in Eq. 5 that is the byproduct of our probabilistic formulation.
129
+
130
+ Next, we examine the PPL of the system outputs under pretrained domain LMs, which should be evaluated in comparison with the PPL of the test set itself. For both the sentiment transfer and the formality transfer tasks in Table 1, $_ { \mathrm { B T + N L L } }$ achieves extremely low PPL, lower than the PPL of the test corpus in the target domain. After a close examination of the output, we find that it contains many repeated and overly simple outputs. For example, the system generates many examples of “I love this place” when transferring negative to positive sentiment (see Appendix A.3 for examples). It is not surprising that such a trivial output has low perplexity, high accuracy, and low BLEU score. On the other hand, our system obtains reasonably competitive PPL, and our approach achieves the highest accuracy and higher BLEU score than the UNMT baseline.
131
+
132
+ # 5.3 FURTHER ABLATIONS AND ANALYSIS
133
+
134
+ Parameter Sharing. We also conducted an experiment on the word substitution decipherment task, where we remove parameter sharing (as explained in Section 3.2) between two directions of transduction distributions, and optimize two encoder-decoder instead. We found that the model only obtained an extremely low BLEU score and failed to generate any meaningful outputs.
135
+
136
+ Performance vs. Domain Divergence. Figure 3 plots the relative improvement of our method over UNMT with respect to accuracy of a naive Bayes’ classifier trained to predict the domain of test sentences. Tasks with high classification accuracy likely have more divergent domains. We can see that for decipherment and en-de translation, where the domains have different vocabularies and thus are easily distinguished, our method yields a smaller gain over UNMT This likely indicates that the (discrimination) regularization effect of the LM priors is less importan or necessary when the two domains are very different.
137
+
138
+ ![](images/6aa4e4f10b2de0917d9d783c828a8253cd750d1fcca6b0c6f71251a7ffedc9ff.jpg)
139
+ Figure 3: Improvement over UNMT vs. classification accuracy.
140
+
141
+ Why does the proposed model outperform UNMT? Finally, we examine in detail the output of our model and UNMT for the author imitation task. We pick this task because the reference outputs for the test set are provided, aiding analysis. Examples shown in Table 3 demonstrate that UNMT tends to make overly large changes to the source so that the original meaning is lost, while our method is better at preserving the content of the source sentence. Next, we quantitatively examine the outputs from UNMT and our method by comparing the F1 measure of words bucketed by their syntactic tags. We use the open-sourced compare-mt tool (Neubig et al., 2019), and the results are shown in Figure 4. Our system has outperforms UNMT in all word categories. In particular, our system is much better at generating nouns, which likely leads to better content preservation.
142
+
143
+ Table 3: Examples for author imitation task
144
+
145
+ <table><tr><td>Methods</td><td>Shakespeare to Modern</td></tr><tr><td>Source</td><td>Not to his father&#x27;s .</td></tr><tr><td>Reference</td><td>Not to his father&#x27;s house.</td></tr><tr><td>UNMT</td><td>Not to his brother .</td></tr><tr><td>Ours</td><td>Not to his father&#x27;s house .</td></tr><tr><td>Source</td><td>Send thy man away .</td></tr><tr><td>Reference</td><td>Send your man away.</td></tr><tr><td>UNMT</td><td>Send an excellent word .</td></tr><tr><td>Ours</td><td>Send your man away.</td></tr><tr><td>Source</td><td>Why should you fall into so deep an O ?</td></tr><tr><td>Reference</td><td>Why should you fall into so deep a moan ?</td></tr><tr><td>UNMT</td><td>Why should you carry so nicely,but have your legs ?</td></tr><tr><td>Ours</td><td>Why should you fall into so deep a sin ?</td></tr></table>
146
+
147
+ ![](images/77998449f70906451fe5613ae7e9933a82e30c20a2ca545eabe27b26da8c75ef.jpg)
148
+ Figure 4: Word F1 score by POS tag.
149
+
150
+ Table 4: Comparison of gradient approximation on the sentiment transfer task.
151
+
152
+ <table><tr><td>Method</td><td>train ELBO个</td><td>test ELBO个</td><td>Acc.</td><td>BLEUr</td><td>BLEUs</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td>Sample-based</td><td>-3.51</td><td>-3.79</td><td>87.90</td><td>13.34</td><td>33.19</td><td>24.55</td><td>25.67</td></tr><tr><td>Greedy</td><td>-2.05</td><td>-2.07</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr></table>
153
+
154
+ Table 5: Comparison of gradient propagation method on the sentiment transfer task.
155
+
156
+ <table><tr><td>Method</td><td>train ELBO↑</td><td>test ELBO个</td><td>Acc.</td><td>BLEUr</td><td>BLEUs</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td>Gumbel Softmax</td><td>-2.96</td><td>-2.98</td><td>81.30</td><td>16.17</td><td>40.47</td><td>22.70</td><td>23.88</td></tr><tr><td>REINFORCE</td><td>-6.07</td><td>-6.48</td><td>95.10</td><td>4.08</td><td>9.74</td><td>6.31</td><td>4.08</td></tr><tr><td>Stop Gradient</td><td>-2.05</td><td>-2.07</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr></table>
157
+
158
+ Greedy vs. Sample-based Gradient Approximation. In our experiments, we use greedy decoding from the inference network to approximate the expectation required by ELBO, which is a biased estimator. The main purpose of this approach is to reduce the variance of the gradient estimator during training, especially in the early stages when the variance of sample-based approaches is quite high. As an ablation experiment on the sentiment transfer task we compare greedy and sample-based gradient approximations in terms of both train and test ELBO, as well as task performance corresponding to best test ELBO. After the model is fully trained, we find that the sample-based approximation has low variance. With a single sample, the standard deviation of the EBLO is less than 0.3 across 10 different test repetitions. All final reported ELBO values are all computed with this approach, regardless of whether the greedy approximation was used during training. The reported ELBO values are the evidence lower bound per word. Results are shown in Table 4, where the sampling-based training underperforms on both ELBO and task evaluations.
159
+
160
+ # 5.4 COMPARISON OF GRADIENT PROPAGATION METHODS
161
+
162
+ As noted above, to stabilize the training process, we stop gradients from propagating to the inference network from the reconstruction loss. Does this approach indeed better optimize the actual probabilistic objective (i.e. ELBO) or only indirectly lead to improved task evaluations? In this section we use sentiment transfer as an example task to compare different methods for propagating gradients and evaluate both ELBO and task evaluations.
163
+
164
+ Specifically, we compare three different methods:
165
+
166
+ • Stop Gradient: The gradients from reconstruction loss are not propagated to the inference network. This is the method we use in all previous experiments.
167
+ • Gumbel Softmax (Jang et al., 2017): Gradients from the reconstruction loss are propagated to the inference network with the straight-through Gumbel estimator.
168
+ • REINFORCE (Sutton et al., 2000): Gradients from reconstruction loss are propagated to the inference network with ELBO as a reward function. This method has been used in previous work for semi-supervised sequence generation (Miao & Blunsom, 2016; Yin et al., 2018), but often suffers from instability issues.
169
+
170
+ We report the train and test ELBO along with task evaluations in Table 5, and plot the learning curves on validation set in Figure 5.9 While being much simpler, we show that the stop-gradient trick produces superior ELBO over Gumbel Softmax and REINFORCE. This result suggests that stopping gradient helps better optimize the likelihood objective under our probabilistic formulation in comparison with other optimization techniques that propagate gradients, which is counter-intuitive. A likely explanation is that as a gradient estimator, while clearly biased, stop-gradient has substantially reduced variance. In comparison with other techniques that offer reduced bias but extremely high variance when applied to our model class (which involves discrete sequences as latent variables), stop-gradient actually leads to better optimization of our objective because it achieves better balance of bias and variance overall.
171
+
172
+ ![](images/d795400be20ee935fa9f0e734c9f8151789443d1144ec02f23fde88102bcb2d4.jpg)
173
+ Figure 5: ELBO on the validation set v.s. the number training steps.
174
+
175
+ # 6 CONCLUSION
176
+
177
+ We propose a probabilistic generative forumalation that unites past work on unsupervised text style transfer. We show that this probabilistic formulation provides a different way to reason about unsupervised objectives in this domain. Our model leads to substantial improvements on five text style transfer tasks, yielding bigger gains when the styles considered are more difficult to distinguish.
178
+
179
+ # ACKNOWLEDGEMENT
180
+
181
+ The work of Junxian He and Xinyi Wang is supported by the DARPA GAILA project (award HR00111990063) and the Tang Family Foundation respectively. The authors would like to thank Zichao Yang for helpful feedback about the project.
182
+
183
+ # REFERENCES
184
+
185
+ Mikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. In Proceedings of ICLR, 2018.
186
+
187
+ Mikel Artetxe, Gorka Labaka, and Eneko Agirre. An effective approach to unsupervised machine translation. arXiv preprint arXiv:1902.01313, 2019.
188
+
189
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proceedings of ICLR, 2015.
190
+
191
+ Colin Bannard and Chris Callison-Burch. Paraphrasing with bilingual parallel corpora. In Proceedings of ACL, 2005.
192
+
193
+ Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. In Proceedings of ConNLL, 2016.
194
+
195
+ Qing Dou and Kevin Knight. Dependency-based decipherment for resource-limited machine translation. Proceedings of EMNLP, 2012.
196
+
197
+ Di He, Yingce Xia, Tao Qin, Liwei Wang, Nenghai Yu, Tie-Yan Liu, and Wei-Ying Ma. Dual learning for machine translation. In Proceedings of NeurIPS, 2016.
198
+
199
+ Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In Proceedings of ICML, 2017.
200
+
201
+ Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In Proceedings of ICLR, 2017.
202
+
203
+ Harsh Jhamtani, Varun Gangal, Edward Hovy, and Eric Nyberg. Shakespearizing modern language using copy-enriched sequence-to-sequence models. Proceedings of EMNLP, 2017.
204
+
205
+ Melvin Johnson, Mike Schuster, Quoc V Le, Maxim Krikun, Yonghui Wu, Zhifeng Chen, Nikhil Thorat, Fernanda Viégas, Martin Wattenberg, Greg Corrado, et al. Google’s multilingual neural machine translation system: Enabling zero-shot translation. Transactions of the Association for Computational Linguistics, 2017.
206
+
207
+ Yoon Kim. Convolutional neural networks for sentence classification. In Proceedings of EMNLP, 2014.
208
+
209
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
210
+
211
+ Kevin Knight, Anish Nair, Nishit Rathod, and Kenji Yamada. Unsupervised analysis for decipherment problems. In Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions, pp. 499– 506, 2006.
212
+
213
+ Guillaume Lample, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Unsupervised machine translation using monolingual corpora only. arXiv preprint arXiv:1711.00043, 2017.
214
+
215
+ Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Phrasebased & neural unsupervised machine translation. arXiv preprint arXiv:1804.07755, 2018.
216
+
217
+ Guillaume Lample, Sandeep Subramanian, Eric Smith, Ludovic Denoyer, Marc’Aurelio Ranzato, and Y-Lan Boureau. Multiple-attribute text rewriting. In Proceedings of ICLR, 2019.
218
+
219
+ Juncen Li, Robin Jia, He He, and Percy Liang. Delete, retrieve, generate: A simple approach to sentiment and style transfer. arXiv preprint arXiv:1804.06437, 2018.
220
+
221
+ Yishu Miao and Phil Blunsom. Language as a latent variable: Discrete generative models for sentence compression. In Proceedings of EMNLP, 2016.
222
+
223
+ Ronen Mir, Bjarke Felbo, Nick Obradovich, and Iyad Rahwan. Evaluating style transfer for text. In Proceedings of NAACL, 2019.
224
+
225
+ Masahiro Mizukami, Graham Neubig, Sakriani Sakti, Tomoki Toda, and Satoshi Nakamura. Linguistic individuality transformation for spoken language. In Natural Language Dialog Systems and Intelligent Assistants. 2015.
226
+
227
+ Graham Neubig, Zi-Yi Dou, Junjie Hu, Paul Michel, Danish Pruthi, and Xinyi Wang. compare-mt: A tool for holistic comparison of language generation systems. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL) Demo Track, Minneapolis, USA, June 2019. URL http://arxiv.org/abs/1903.07926.
228
+
229
+ Nima Pourdamghani and Kevin Knight. Deciphering related languages. Proceedings of EMNLP, 2017.
230
+
231
+ Sudha Rao and Joel Tetreault. Dear sir or madam, may i introduce the gyafc dataset: Corpus, benchmarks and metrics for formality style transfer. arXiv preprint arXiv:1803.06535, 2018.
232
+
233
+ Sujith Ravi and Kevin Knight. Deciphering foreign language. In Proceedings of ACL, 2011.
234
+
235
+ Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In Proceedings of EMNLP, 2015.
236
+
237
+ Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. In Proceedings of ACL, 2016.
238
+
239
+ Claude Elwood Shannon. A mathematical theory of communication. Bell system technical journal, 27(3):379–423, 1948.
240
+
241
+ Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi Jaakkola. Style transfer from non-parallel text by cross-alignment. In Proceeings of NIPS, 2017.
242
+
243
+ Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Proceedings of NeurIPS, 2000.
244
+
245
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of NeurIPS, 2017.
246
+
247
+ Wei Xu, Alan Ritter, William B. Dolan, Ralph Grishman, and Cherry Colin. Paraphrasing for style. COLING, 2012.
248
+
249
+ Zichao Yang, Zhiting Hu, Chris Dyer, Eric P Xing, and Taylor Berg-Kirkpatrick. Unsupervised text style transfer using language models as discriminators. In Proceedings of NeurIPS, 2018.
250
+
251
+ Pengcheng Yin, Chunting Zhou, Junxian He, and Graham Neubig. Structvae: Tree-structured latent variable models for semi-supervised semantic parsing. In Proceedings of ACL, 2018.
252
+
253
+ Tiancheng Zhao, Ran Zhao, and Maxine Eskenazi. Learning discourse-level diversity for neural dialog models using conditional variational autoencoders. In Proceedings of ACL, 2017.
254
+
255
+ # A APPENDIX
256
+
257
+ # A.1 MODEL CONFIGURATIONS.
258
+
259
+ We adopt the following attentional encoder-decoder architecture for UNMT, $_ { \mathrm { B T + N L L } }$ , and our method across all the experiments:
260
+
261
+ • We use word embeddings of size 128.
262
+ • We use 1 layer LSTM with hidden size of 512 as both the encoder and decoder.
263
+ • We apply dropout to the readout states before softmax with a rate of 0.3.
264
+ • Following Lample et al. (2019), we add a max pooling operation over the encoder hidden states before feeding it to the decoder. Intuitively the pooling window size would control how much information is preserved during transduction. A window size of 1 is equivalent to standard attention mechanism, and a large window size corresponds to no attention. See Appendix A.2 for how to select the window size. There is a noise function for UNMT baseline in its denoising autoencoder loss (Lample et al., 2017; 2019), which is critical for its success. We use the default noise function and noise hyperparameters in Lample et al. (2017) when running the UNMT model. For $_ { \mathrm { B T + N L L } }$ and our method we found that adding the extra noise into the self-reconstruction loss (Eq. 4) is only helpful when the two domains are relatively divergent (decipherment and related language translation tasks) where the language models play a less important role. Therefore, we add the default noise from UNMT to Eq. 4 for decipherment and related language translation tasks only, and do not use any noise for sentiment, author imitation, and formality tasks.
265
+
266
+ # A.2 HYPERPARAMETER TUNING.
267
+
268
+ We vary pooling windows size as $\{ 1 , 5 \}$ , the decaying patience hyperparameter $k$ for selfreconstruction loss (Eq. 4) as $\{ 1 , 2 , 3 \}$ . For the baseliens UNMT and $_ { \mathrm { B T + N L L } }$ , we also try the option of not annealing the self-reconstruction loss at all as in the unsupervised machine translation task (Lample et al., 2018). We vary the weight $\lambda$ for the NLL term $_ \mathrm { B T + N L L } )$ or the KL term (our method) as $\{ 0 . 0 0 1 , 0 . 0 1 , 0 . 0 3 , 0 . 0 5 , 0 . 1 \}$ .
269
+
270
+ # A.3 SENTIMENT TRANSFER EXAMPLE OUTPUTS
271
+
272
+ We list some examples of the sentiment transfer task in Table 6. Notably, the $_ { \mathrm { B T + N L L } }$ method tends to produce extremely short and simple sentences.
273
+
274
+ # A.4 REPETITIVE EXAMPLES OF BT $^ +$ NLL
275
+
276
+ In Section 5 we mentioned that the baseline $_ { \mathrm { B T + N L L } }$ has a low perplexity for some tasks because it tends to generate overly simple and repetitive sentences. From Table 1 we see that two representative tasks are sentiment transfer and formatliy transfer. In Appendix A.3 we have demonstrated some examples for sentiment transfer, next we show some repetitive samples of $_ { \mathrm { B T + N L L } }$ in Table 7.
277
+
278
+ Table 6: Random Sentiment Transfer Examples
279
+
280
+ <table><tr><td>Methods</td><td>negative to positive</td></tr><tr><td>Original</td><td>the cake portion was extremely light and a bit dry .</td></tr><tr><td>UNMT</td><td>the cake portion was extremely light and a bit spicy .</td></tr><tr><td>BT+NLL</td><td>the cake portion was extremely light and a bit dry .</td></tr><tr><td>Ours</td><td>the cake portion was extremely light and a bit fresh .</td></tr><tr><td>Original</td><td>the “ chicken ” strip were paper thin oddly flavored strips .</td></tr><tr><td>UNMT</td><td>the“ chicken ”were extra crispy noodles were fresh and incredible .</td></tr><tr><td>BT+NLL</td><td>the service was great .</td></tr><tr><td>Ours</td><td>the“ chicken ”strip were paper sweet &amp; juicy flavored .</td></tr><tr><td>Original</td><td>if i could give them a zero star review i would !</td></tr><tr><td>UNMT</td><td> if i could give them a zero star review i would !</td></tr><tr><td>BT+NLL</td><td>i love this place .</td></tr><tr><td>Ours</td><td>i love the restaurant and give a great review i would !</td></tr><tr><td></td><td>positive to negative</td></tr><tr><td>Original</td><td> great food,staff is unbelievably nice .</td></tr><tr><td>UNMT BT+NLL</td><td>no ,food is n&#x27;t particularly friendly .</td></tr><tr><td>Ours</td><td>i will not be back .</td></tr><tr><td></td><td>no apologies,staff is unbelievably poor .</td></tr><tr><td>Original</td><td>my wife and i love coming here !</td></tr><tr><td>UNMT</td><td>my wife and i do n&#x27;t come here !</td></tr><tr><td>BT+NLL</td><td>i will not be back.</td></tr><tr><td>Ours</td><td>my wife and i walked out the last time .</td></tr><tr><td>Original</td><td>my wife and i love coming here !</td></tr><tr><td>UNMT</td><td>my wife and i do n&#x27;t come here !</td></tr><tr><td>BT+NLL</td><td>i will not be back .</td></tr><tr><td>Ours</td><td>my wife and i walked out the last time .</td></tr><tr><td>Original</td><td>the premier hookah lounge of las vegas !</td></tr><tr><td>UNMT</td><td>the worst museum of las vegas !</td></tr><tr><td>BT+NLL</td><td>the worst frame shop of las vegas !</td></tr><tr><td>Ours</td><td>the hallways scam lounge of las vegas !</td></tr></table>
281
+
282
+ Table 7: Repetitive examples of $\mathrm { B T + N L L }$ baseline on Formality transfer.
283
+
284
+ <table><tr><td>Original</td><td>Transferred</td></tr><tr><td colspan="2">formal to informal</td></tr><tr><td>I like Rhythm and Blue music .</td><td>I like her and I don&#x27;t know .</td></tr><tr><td>There&#x27;s nothing he needs to change .</td><td>I don&#x27;t know,but Idon&#x27;t know .</td></tr><tr><td>Ienjoy watching my companion attempt to role @-@ play with them.</td><td>Idon&#x27;tknow,but Idon&#x27;t know.</td></tr><tr><td>Iam watching it right now</td><td>Idon&#x27;t know,but Idon&#x27;t know .</td></tr><tr><td>That is the key point,that you fell asleep .</td><td>I don&#x27;t know,but Idon&#x27;t know.</td></tr><tr><td colspan="2">informal to formal</td></tr><tr><td>its a great source just download it .</td><td>I do not know,but Ido not know .</td></tr><tr><td>Happy Days,it was the coolest !</td><td>I do not know,butIdo not know.</td></tr><tr><td>I used to play flute but once I started sax,I got hooked .</td><td>I do not know,butIdo not know.</td></tr><tr><td>The word you are looking foris.... strengths</td><td>The word you are looking for is :)</td></tr><tr><td>Plus you can tell she really cared about her crew .</td><td>Plus you can tell she really cared about her crew.</td></tr></table>
parse/train/HJlA0C4tPS/HJlA0C4tPS_content_list.json ADDED
@@ -0,0 +1,1518 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A PROBABILISTIC FORMULATION OF UNSUPERVISED TEXT STYLE TRANSFER ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 658,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Junxian $\\mathbf { H e } ^ { * }$ , Xinyi Wang∗, Graham Neubig Carnegie Mellon University {junxianh,xinyiw1,gneubig}@cs.cmu.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 169,
20
+ 545,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Taylor Berg-Kirkpatrick University of California San Diego tberg@eng.ucsd.edu ",
28
+ "bbox": [
29
+ 575,
30
+ 170,
31
+ 805,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 250,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We present a deep generative model for unsupervised text style transfer that unifies previously proposed non-generative techniques. Our probabilistic approach models non-parallel data from two domains as a partially observed parallel corpus. By hypothesizing a parallel latent sequence that generates each observed sequence, our model learns to transform sequences from one domain to another in a completely unsupervised fashion. In contrast with traditional generative sequence models (e.g. the HMM), our model makes few assumptions about the data it generates: it uses a recurrent language model as a prior and an encoder-decoder as a transduction distribution. While computation of marginal data likelihood is intractable in this model class, we show that amortized variational inference admits a practical surrogate. Further, by drawing connections between our variational objective and other recent unsupervised style transfer and machine translation techniques, we show how our probabilistic view can unify some known non-generative objectives such as backtranslation and adversarial loss. Finally, we demonstrate the effectiveness of our method on a wide range of unsupervised style transfer tasks, including sentiment transfer, formality transfer, word decipherment, author imitation, and related language translation. Across all style transfer tasks, our approach yields substantial gains over state-of-the-art non-generative baselines, including the state-of-the-art unsupervised machine translation techniques that our approach generalizes. Further, we conduct experiments on a standard unsupervised machine translation task and find that our unified approach matches the current state-of-the-art.1 ",
51
+ "bbox": [
52
+ 232,
53
+ 284,
54
+ 766,
55
+ 575
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 609,
66
+ 334,
67
+ 626
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Text sequence transduction systems convert a given text sequence from one domain to another. These techniques can be applied to a wide range of natural language processing applications such as machine translation (Bahdanau et al., 2015), summarization (Rush et al., 2015), and dialogue response generation (Zhao et al., 2017). In many cases, however, parallel corpora for the task at hand are scarce. Therefore, unsupervised sequence transduction methods that require only non-parallel data are appealing and have been receiving growing attention (Bannard & Callison-Burch, 2005; Ravi & Knight, 2011; Mizukami et al., 2015; Shen et al., 2017; Lample et al., 2018; 2019). This trend is most pronounced in the space of text style transfer tasks where parallel data is particularly challenging to obtain (Hu et al., 2017; Shen et al., 2017; Yang et al., 2018). Style transfer has historically referred to sequence transduction problems that modify superficial properties of text – i.e. style rather than content.2 We focus on a standard suite of style transfer tasks, including formality transfer (Rao & Tetreault, 2018), author imitation (Xu et al., 2012), word decipherment (Shen et al., 2017), sentiment transfer (Shen et al., 2017), and related language translation (Pourdamghani & Knight, 2017). General unsupervised translation has not typically been considered style transfer, but for the purpose of comparison we also conduct evaluation on this task (Lample et al., 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 645,
77
+ 826,
78
+ 852
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Recent work on unsupervised text style transfer mostly employs non-generative or non-probabilistic modeling approaches. For example, Shen et al. (2017) and Yang et al. (2018) design adversarial discriminators to shape their unsupervised objective – an approach that can be effective, but often introduces training instability. Other work focuses on directly designing unsupervised training objectives by incorporating intuitive loss terms (e.g. backtranslation loss), and demonstrates state-ofthe-art performance on unsupervised machine translation (Lample et al., 2018; Artetxe et al., 2019) and style transfer (Lample et al., 2019). However, the space of possible unsupervised objectives is extremely large and the underlying modeling assumptions defined by each objective can only be reasoned about indirectly. As a result, the process of designing such systems is often heuristic. ",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 825,
89
+ 229
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In contrast, probabilistic models (e.g. the noisy channel model (Shannon, 1948)) define assumptions about data more explicitly and allow us to reason about these assumptions during system design. Further, the corresponding objectives are determined naturally by principles of probabilistic inference, reducing the need for empirical search directly in the space of possible objectives. That said, classical probabilistic models for unsupervised sequence transduction (e.g. the HMM or semi-HMM) typically enforce overly strong independence assumptions about data to make exact inference tractable (Knight et al., 2006; Ravi & Knight, 2011; Pourdamghani & Knight, 2017). This has restricted their development and caused their performance to lag behind unsupervised neural objectives on complex tasks. Luckily, in recent years, powerful variational approximation techniques have made it more practical to train probabilistic models without strong independence assumptions (Miao & Blunsom, 2016; Yin et al., 2018). Inspired by this, we take a new approach to unsupervised style transfer. ",
96
+ "bbox": [
97
+ 174,
98
+ 236,
99
+ 825,
100
+ 388
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We directly define a generative probabilistic model that treats a non-parallel corpus in two domains as a partially observed parallel corpus. Our model makes few independence assumptions and its true posterior is intractable. However, we show that by using amortized variational inference (Kingma & Welling, 2013), a principled probabilistic technique, a natural unsupervised objective falls out of our modeling approach that has many connections with past work, yet is different from all past work in specific ways. In experiments across a suite of unsupervised text style transfer tasks, we find that the natural objective of our model actually outperforms all manually defined unsupervised objectives from past work, supporting the notion that probabilistic principles can be a useful guide even in deep neural systems. Further, in the case of unsupervised machine translation, our model matches the current state-of-the-art non-generative approach. ",
107
+ "bbox": [
108
+ 174,
109
+ 395,
110
+ 825,
111
+ 535
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 UNSUPERVISED TEXT STYLE TRANSFER ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 174,
121
+ 574,
122
+ 542,
123
+ 592
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "We first overview text style transfer, which aims to transfer a text (typically a single sentence or a short paragraph – for simplicity we refer to simply “sentences” below) from one domain to another while preserving underlying content. For example, formality transfer (Rao & Tetreault, 2018) is the task of transforming the tone of text from informal to formal without changing its content. Other examples include sentiment transfer (Shen et al., 2017), word decipherment (Knight et al., 2006), and author imitation (Xu et al., 2012). If parallel examples were available from each domain (i.e. the training data is a bitext consisting of pairs of sentences from each domain), supervised techniques could be used to perform style transfer (e.g. attentional Seq2Seq (Bahdanau et al., 2015) and Transformer (Vaswani et al., 2017)). However, for most style transfer problems, only non-parallel corpora (one corpus from each domain) can be easily collected. Thus, work on style transfer typically focuses on the more difficult unsupervised setting where systems must learn from non-parallel data alone. ",
130
+ "bbox": [
131
+ 174,
132
+ 618,
133
+ 825,
134
+ 772
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "The model we propose treats an observed non-parallel text corpus as a partially observed parallel corpus. Thus, we introduce notation for both observed text inputs and those that we will treat as latent variables. Specifically, we let $X = \\{ x ^ { ( 1 ) } , x ^ { ( 2 ) } , \\cdot \\cdot \\cdot , x ^ { ( \\bar { m } ) } \\}$ represent observed data from domain $\\mathcal { D } _ { 1 }$ , while we let $Y = \\{ y ^ { ( m + 1 ) } , y ^ { ( m + \\overset { \\cdot } { 2 } ) } , \\cdot \\cdot \\cdot , y ^ { ( n ) } \\}$ represent observed data from domain $\\mathcal { D } _ { 2 }$ . Corresponding indices represent parallel sentences. Thus, none of the observed sentences share indices. In our model, we introduce latent sentences to complete the parallel corpus. Specifically, $\\bar { X } = \\{ \\bar { x } ^ { ( m + 1 ) } , \\bar { x } ^ { ( m + 2 ) } , \\cdot \\cdot \\cdot , \\bar { x } ^ { ( n ) } \\}$ represents the set of latent parallel sentences in $\\mathcal { D } _ { 1 }$ , while $\\bar { Y } = \\{ \\bar { y } ^ { ( 1 ) } , \\bar { y } ^ { ( 2 ) } , \\cdot \\cdot \\cdot , \\bar { y } ^ { ( m ) } \\}$ represents the set of latent parallel sentences in $\\mathcal { D } _ { 2 }$ . Then the goal of unsupervised text transduction is to infer these latent variables conditioned the observed non-parallel corpora; that is, to learn $p ( { \\bar { y } } | x )$ and $p ( { \\bar { x } } | y )$ . ",
141
+ "bbox": [
142
+ 173,
143
+ 779,
144
+ 825,
145
+ 924
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "image",
151
+ "img_path": "images/41384ec1945473ca58fdedb371d1e2b9339b296d94ddeac4f8b18385ad392414.jpg",
152
+ "image_caption": [
153
+ "Figure 1: Proposed graphical model for style transfer via bitext completion. Shaded circles denote the observed variables and unshaded circles denote the latents. The generator is parameterized as an encoder-decoder architecture and the prior on the latent variable is a pretrained language model. "
154
+ ],
155
+ "image_footnote": [],
156
+ "bbox": [
157
+ 250,
158
+ 85,
159
+ 745,
160
+ 223
161
+ ],
162
+ "page_idx": 2
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "3 THE DEEP LATENT SEQUENCE MODEL ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 174,
170
+ 290,
171
+ 529,
172
+ 308
173
+ ],
174
+ "page_idx": 2
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "First we present our generative model of bitext, which we refer to as a deep latent sequence model. \nWe then describe unsupervised learning and inference techniques for this model class. ",
179
+ "bbox": [
180
+ 174,
181
+ 324,
182
+ 825,
183
+ 353
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "3.1 MODEL STRUCTURE ",
190
+ "text_level": 1,
191
+ "bbox": [
192
+ 176,
193
+ 375,
194
+ 356,
195
+ 388
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "Directly modeling $p ( { \\bar { y } } | x )$ and $p ( { \\bar { x } } | y )$ in the unsupervised setting is difficult because we never directly observe parallel data. Instead, we propose a generative model of the complete data that defines a joint likelihood, $p ( X , { \\bar { X } } , Y , { \\bar { Y } } )$ . In order to perform text transduction, the unobserved halves can be treated as latent variables: they will be marginalized out during learning and inferred via posterior inference at test time. ",
202
+ "bbox": [
203
+ 173,
204
+ 401,
205
+ 825,
206
+ 472
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "Our model assumes that each observed sentence is generated from an unobserved parallel sentence in the opposite domain, as depicted in Figure 1. Specifically, each sentence $\\boldsymbol { x } ^ { ( i ) }$ in domain $\\mathcal { D } _ { 1 }$ is generated as follows: First, a latent sentence $\\bar { y } ^ { ( i ) }$ in domain $\\mathcal { D } _ { 2 }$ is sampled from a prior, $p _ { { D _ { 2 } } } ( \\bar { y } ^ { ( i ) } )$ . Then, $x ^ { ( i ) }$ is sampled conditioned on $\\bar { y } ^ { ( i ) }$ from a transduction model, $p ( \\boldsymbol { x } ^ { ( i ) } | \\bar { y } ^ { ( i ) } )$ . Similarly, each observed sentence $y ^ { ( j ) }$ in domain $\\mathcal { D } _ { 2 }$ is generated conditioned on a latent sentence, $\\bar { x } ^ { ( j ) }$ , in domain $\\mathcal { D } _ { 1 }$ via the opposite transduction model, $p ( \\boldsymbol { y } ^ { ( j ) } | \\bar { x } ^ { ( j ) } )$ , and prior, $p _ { \\mathcal { D } _ { 1 } } ( \\bar { x } ^ { ( j ) } )$ . We let $\\theta _ { x | \\bar { y } }$ and $\\theta _ { y | \\bar { x } }$ represent the parameters of the two transduction distributions respectively. We assume the prior distributions are pretrained on the observed data in their respective domains and therefore omit their parameters for simplicity of notation. Together, this gives the following joint likelihood: ",
213
+ "bbox": [
214
+ 173,
215
+ 477,
216
+ 825,
217
+ 609
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "equation",
223
+ "img_path": "images/06718adcb603231ab8ecc7a010ef4805be851cf8f956d135d1fc5328140c8634.jpg",
224
+ "text": "$$\np ( X , \\bar { X } , Y , \\bar { Y } ; \\theta _ { x | \\bar { y } } , \\theta _ { y | \\bar { x } } ) = \\left( \\prod _ { i = 1 } ^ { m } p \\big ( x ^ { ( i ) } | \\bar { y } ^ { ( i ) } ; \\theta _ { x | \\bar { y } } \\big ) p _ { \\mathcal { D } _ { 2 } } \\big ( \\bar { y } ^ { ( i ) } \\big ) \\right) \\left( \\prod _ { j = m + 1 } ^ { n } p \\big ( y ^ { ( j ) } | \\bar { x } ^ { ( j ) } ; \\theta _ { y | \\bar { x } } \\big ) p _ { \\mathcal { D } _ { 1 } } \\big ( \\bar { x } ^ { ( j ) } \\big ) \\right)\n$$",
225
+ "text_format": "latex",
226
+ "bbox": [
227
+ 187,
228
+ 618,
229
+ 807,
230
+ 659
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "The log marginal likelihood of the data, which we will approximate during training, is: ",
237
+ "bbox": [
238
+ 178,
239
+ 667,
240
+ 746,
241
+ 684
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/5c66b8696425f416d6decd056afafbbf2f7de68453e4d564061add0730ac52e1.jpg",
248
+ "text": "$$\n\\log p ( X , Y ; \\theta _ { x | \\bar { y } } , \\theta _ { y | \\bar { x } } ) = \\log \\sum _ { \\bar { X } } \\sum _ { \\bar { Y } } p ( X , \\bar { X } , Y , \\bar { Y } ; \\theta _ { x | \\bar { y } } , \\theta _ { y | \\bar { x } } )\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 281,
252
+ 694,
253
+ 717,
254
+ 719
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "Note that if the two transduction models share no parameters, the training problems for each observed domain are independent. Critically, we introduce parameter sharing through our variational inference procedure, which we describe in more detail in Section 3.2. ",
261
+ "bbox": [
262
+ 174,
263
+ 728,
264
+ 823,
265
+ 771
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "Architecture: Since we would like to be able to model a variety of transfer tasks, we choose a parameterization for our transduction distributions that makes no independence assumptions. Specifically, we employ an encoder-decoder architecture based on the standard attentional Seq2Seq model which has been shown to be successful across various tasks (Bahdanau et al., 2015; Rush et al., 2015). Similarly, our prior distributions for each domain are parameterized as recurrent language models which, again, make no independence assumptions. In contrast, traditional unsupervised generative sequence models typically make strong independence assumptions to enable exact inference (e.g. the HMM makes a Markov assumption on the latent sequence and emissions are one-to-one). Our model is more flexible, but exact inference via dynamic programming will be intractable. We address this problem in the next section. ",
272
+ "bbox": [
273
+ 173,
274
+ 784,
275
+ 826,
276
+ 924
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "image",
282
+ "img_path": "images/465557888fae2116dee1e4e4dd348b9e4d1230bed6a6f3b67479bcd78b680d54.jpg",
283
+ "image_caption": [
284
+ "Figure 2: Depiction of amortized variational approximation. Distributions $q ( { \\bar { y } } | x )$ and $q ( { \\bar { x } } | y )$ represent inference networks that approximate the model’s true posterior. Critically, parameters are shared between the generative model and inference networks to tie the learning problems for both domains. "
285
+ ],
286
+ "image_footnote": [],
287
+ "bbox": [
288
+ 282,
289
+ 101,
290
+ 715,
291
+ 280
292
+ ],
293
+ "page_idx": 3
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "3.2 LEARNING ",
298
+ "text_level": 1,
299
+ "bbox": [
300
+ 174,
301
+ 351,
302
+ 290,
303
+ 364
304
+ ],
305
+ "page_idx": 3
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Ideally, learning should directly optimize the log data likelihood, which is the marginal of our model shown in Eq. 2. However, due to our model’s neural parameterization which does not factorize, computing the data likelihood cannot be accomplished using dynamic programming as can be done with simpler models like the HMM. To overcome the intractability of computing the true data likelihood, we adopt amortized variational inference (Kingma & Welling, 2013) in order to derive a surrogate objective for learning, the evidence lower bound (ELBO) on log marginal likelihood3 : ",
310
+ "bbox": [
311
+ 173,
312
+ 376,
313
+ 826,
314
+ 455
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "equation",
320
+ "img_path": "images/266cfec56cc0b2fe4d405d38b4ad01d44e63719324212b79b21a3b231ca37277.jpg",
321
+ "text": "$$\n\\begin{array} { r l } & { \\log p ( X , Y ; \\theta _ { x | \\bar { y } } , \\theta _ { y | \\bar { x } } ) } \\\\ & { \\ge \\mathcal { L } _ { \\mathrm { E L B O } } ( X , Y ; \\theta _ { x | \\bar { y } } , \\theta _ { y | \\bar { x } } , \\phi _ { \\bar { x } | y } , \\phi _ { \\bar { y } | x } ) } \\\\ & { = \\sum _ { i } \\Big [ \\mathbb { E } _ { q ( \\bar { y } | x ^ { ( i ) } ; \\phi _ { \\bar { y } | x } ) } [ \\log p ( x ^ { ( i ) } | \\bar { y } ; \\theta _ { x | \\bar { y } } ) ] - D _ { \\mathrm { K L } } \\big ( q ( \\bar { y } | x ^ { ( i ) } ; \\phi _ { \\bar { y } | x } ) | | p _ { \\mathcal { D } _ { 2 } } ( \\bar { y } ) \\big ) \\Big ] } \\\\ & { + \\sum _ { j } \\underbrace { \\Big [ \\mathbb { E } _ { q ( \\bar { x } | y ^ { ( j ) } ; \\phi _ { \\bar { x } | y } ) } [ \\log p ( y ^ { ( j ) } | \\bar { x } ; \\theta _ { y | \\bar { x } } ) ] } _ { \\mathrm { R e c o n s t u c i o n ~ l i k e l i h o o d } } - \\underbrace { D _ { \\mathrm { K L } } \\big ( q ( \\bar { x } | y ^ { ( j ) } ; \\phi _ { \\bar { x } | y } ) \\big ) | p _ { \\bar { D } _ { 1 } } ( \\bar { x } ) \\big ) } _ { \\mathrm { K L ~ r e g u l a r i z e r } } \\Big ] } \\end{array}\n$$",
322
+ "text_format": "latex",
323
+ "bbox": [
324
+ 259,
325
+ 462,
326
+ 738,
327
+ 565
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "The surrogate objective introduces $q ( \\bar { y } | x ^ { ( i ) } ; \\phi _ { \\bar { y } | x } )$ and $q ( \\bar { x } | y ^ { ( j ) } ; \\phi _ { \\bar { x } | y } )$ , which represent two separate inference network distributions that approximate the model’s true posteriors, $p ( \\bar { y } | x ^ { ( i ) } ; \\theta _ { x | \\bar { y } } )$ and $p ( \\bar { x } | y ^ { ( j ) } ; \\theta _ { y | \\bar { x } } )$ , respectively. Learning operates by jointly optimizing the lower bound over both variational and model parameters. Once trained, the variational posterior distributions can be used directly for style transfer. The KL terms in Eq. 3, that appear naturally in the ELBO objective, can be intuitively viewed as regularizers that use the language model priors to bias the induced sentences towards the desired domains. Amortized variational techniques have been most commonly applied to continuous latent variables, as in the case of the variational autoencoder (VAE) (Kingma & Welling, 2013). Here, we use this approach for inference over discrete sequences, which has been shown to be effective in related work on a semi-supervised task (Miao & Blunsom, 2016). ",
334
+ "bbox": [
335
+ 173,
336
+ 573,
337
+ 825,
338
+ 720
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Inference Network and Parameter Sharing: Note that the approximate posterior on one domain aims to learn the reverse style transfer distribution, which is exactly the goal of the generative distribution in the opposite domain. For example, the inference network $\\bar { q } ( \\bar { y } | x ^ { ( i ) } ; \\phi _ { \\bar { y } | x } )$ and the generative distribution $p ( y | \\bar { x } ^ { ( i ) } ; \\theta _ { y | \\bar { x } } )$ both aim to transform $\\mathcal { D } _ { 1 }$ to $\\mathcal { D } _ { 2 }$ . Therefore, we use the same architecture for each inference network as used in the transduction models, and tie their parameters: $\\phi _ { \\bar { x } | y } = \\theta _ { x | \\bar { y } } , \\phi _ { \\bar { y } | x } = \\theta _ { y | \\bar { x } }$ . This means we learn only two encoder-decoders overall – which are parameterized by $\\theta _ { x | \\bar { y } }$ and $\\theta _ { y | \\bar { x } }$ respectively – to represent two directions of transfer. In addition to reducing the number of learnable parameters, this parameter tying couples the learning problems for both domains and allows us to jointly learn from the full data. Moreover, inspired by recent work that builds a universal Seq2Seq model to translate between different language pairs (Johnson et al., 2017), we introduce further parameter tying between the two directions of transduction: the same encoder is employed for both $x$ and $y$ , and a domain embedding $c$ is provided to the same decoder to specify the transfer direction, as shown in Figure 2. Ablation analysis in Section 5.3 suggests that parameter sharing is important to achieve good performance. ",
345
+ "bbox": [
346
+ 173,
347
+ 729,
348
+ 825,
349
+ 861
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "",
356
+ "bbox": [
357
+ 174,
358
+ 103,
359
+ 825,
360
+ 174
361
+ ],
362
+ "page_idx": 4
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Approximating Gradients of ELBO: The reconstruction and KL terms in Eq. 3 still involve intractable expectations due to the marginalization over the latent sequence, thus we need to approximate their gradients. Gumbel-softmax (Jang et al., 2017) and REINFORCE (Sutton et al., 2000) are often used as stochastic gradient estimators in the discrete case. Since the latent text variables have an extremely large domain, we find that REINFORCE-based gradient estimates result in high variance. Thus, we use the Gumbel-softmax straight-through estimator to backpropagate gradients from the KL terms.4 However, we find that approximating gradients of the reconstruction loss is much more challenging – both the Gumbel-softmax estimator and REINFORCE are unable to outperform a simple stop-gradient method that does not back-propagate the gradient of the latent sequence to the inference network. This confirms a similar observation in previous work on unsupervised machine translation (Lample et al., 2018). Therefore, we use greedy decoding without recording gradients to approximate the reconstruction term.5 Note that the inference networks still receive gradients from the prior through the KL term, and their parameters are shared with the decoders which do receive gradients from reconstruction. We consider this to be the best empirical compromise at the moment. ",
367
+ "bbox": [
368
+ 174,
369
+ 181,
370
+ 825,
371
+ 376
372
+ ],
373
+ "page_idx": 4
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "Initialization. Good initialization is often necessary for successful optimization of unsupervised learning objectives. In preliminary experiments, we find that the encoder-decoder structure has difficulty generating realistic sentences during the initial stages of training, which usually results in a disastrous local optimum. This is mainly because the encoder-decoder is initialized randomly and there is no direct training signal to specify the desired latent sequence in the unsupervised setting. Therefore, we apply a self-reconstruction loss $\\mathcal { L } _ { \\mathrm { r e c } }$ at the initial epochs of training. We denote the output the encoder as $e ( \\cdot )$ and the decoder distribution as $p _ { \\mathrm { d e c } }$ , then ",
378
+ "bbox": [
379
+ 173,
380
+ 385,
381
+ 825,
382
+ 483
383
+ ],
384
+ "page_idx": 4
385
+ },
386
+ {
387
+ "type": "equation",
388
+ "img_path": "images/313771fe28f95292088ac1d8557b2eaa1785b63e80edc65d27cb3cc96f46f2f6.jpg",
389
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { { r e c } } } = - \\alpha \\cdot \\sum _ { i } [ p _ { \\mathrm { d e c } } ( e ( x ^ { ( i } ) , c _ { x } ) ] - \\alpha \\cdot \\sum _ { j } [ p _ { \\mathrm { d e c } } ( e ( y ^ { ( j } ) , c _ { y } ) ] ,\n$$",
390
+ "text_format": "latex",
391
+ "bbox": [
392
+ 294,
393
+ 489,
394
+ 702,
395
+ 515
396
+ ],
397
+ "page_idx": 4
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "$\\alpha$ decays from 1.0 to 0.0 linearly in the first $k$ epochs. $k$ is a tunable parameter and usually less than 3 in all our experiments. ",
402
+ "bbox": [
403
+ 173,
404
+ 520,
405
+ 823,
406
+ 549
407
+ ],
408
+ "page_idx": 4
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "4 CONNECTION TO RELATED WORK ",
413
+ "text_level": 1,
414
+ "bbox": [
415
+ 174,
416
+ 569,
417
+ 491,
418
+ 585
419
+ ],
420
+ "page_idx": 4
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "Our probabilistic formulation can be connected with recent advances in unsupervised text transduction methods. For example, back translation loss (Sennrich et al., 2016) plays an important role in recent unsupervised machine translation (Artetxe et al., 2018; Lample et al., 2018; Artetxe et al., 2019) and unsupervised style transfer systems (Lample et al., 2019). In order to incorporate back translation loss the source language $x$ is translated to the target language $y$ to form a pseudo-parallel corpus, then a translation model from $y$ to $x$ can be learned on this pseudo bitext just as in supervised setting. While back translation was often explained as a data augmentation technique, in our probabilistic formulation it appears naturally with the ELBO objective as the reconstruction loss term. ",
425
+ "bbox": [
426
+ 173,
427
+ 599,
428
+ 825,
429
+ 712
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "Some previous work has incorporated a pretrained language models into neural semi-supervised or unsupervised objectives. He et al. (2016) uses the log likelihood of a pretrained language model as the reward to update a supervised machine translation system with policy gradient. Artetxe et al. (2019) utilize a similar idea for unsupervised machine translation. Yang et al. (2018) employed a similar approach, but interpret the LM as an adversary, training the generator to fool the LM. We show how our ELBO objective is connected with these more heuristic LM regularizers by expanding the KL loss term (assume $x$ is observed): ",
436
+ "bbox": [
437
+ 173,
438
+ 718,
439
+ 825,
440
+ 815
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "equation",
446
+ "img_path": "images/3e95c454b7d21323b3ea99b526be97f7cb36c35fd441dabffa252f2bcb0c780b.jpg",
447
+ "text": "$$\nD _ { \\mathrm { K L } } ( q ( \\bar { y } | x ) | | p _ { \\mathcal { D } _ { 2 } } ( \\bar { y } ) ) = - H _ { q } - \\mathbb { E } _ { q } [ \\log p _ { \\mathcal { D } _ { 2 } } ( \\bar { y } ) ] ,\n$$",
448
+ "text_format": "latex",
449
+ "bbox": [
450
+ 336,
451
+ 820,
452
+ 660,
453
+ 838
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "Note that the loss used in previous work does not include the negative entropy term, $- H _ { q }$ . Our objective results in this additional “regularizer”, the negative entropy of the transduction distribution, $- H _ { q }$ . Intuitively, $- H _ { q }$ helps avoid a peaked transduction distribution, preventing the transduction from constantly generating similar sentences to satisfy the language model. In experiments we will show that this additional regularization is important and helps bypass bad local optima and improve performance. These important differences with past work suggest that a probabilistic view of the unsupervised sequence transduction may provide helpful guidance in determining effective training objectives. ",
460
+ "bbox": [
461
+ 176,
462
+ 843,
463
+ 825,
464
+ 886
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "",
471
+ "bbox": [
472
+ 174,
473
+ 103,
474
+ 825,
475
+ 172
476
+ ],
477
+ "page_idx": 5
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "5 EXPERIMENTS ",
482
+ "text_level": 1,
483
+ "bbox": [
484
+ 176,
485
+ 195,
486
+ 326,
487
+ 212
488
+ ],
489
+ "page_idx": 5
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "We test our model on five style transfer tasks: sentiment transfer, word substitution decipherment, formality transfer, author imitation, and related language translation. For completeness, we also evaluate on the task of general unsupervised machine translation using standard benchmarks. ",
494
+ "bbox": [
495
+ 176,
496
+ 228,
497
+ 823,
498
+ 271
499
+ ],
500
+ "page_idx": 5
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "We compare with the unsupervised machine translation model (UNMT) which recently demonstrated state-of-the-art performance on transfer tasks such as sentiment and gender transfer (Lample et al., 2019).6 To validate the effect of the negative entropy term in the KL loss term Eq. 5, we remove it and train the model with a back-translation loss plus a language model negative log likelihood loss (which we denote as $_ { \\mathrm { B T + N L L } }$ ) as an ablation baseline. For each task, we also include strong baseline numbers from related work if available. For our method we select the model with the best validation ELBO, and for UNMT or $_ { \\mathrm { B T + N L L } }$ we select the model with the best back-translation loss. Complete model configurations and hyperparameters can be found in Appendix A.1. ",
505
+ "bbox": [
506
+ 174,
507
+ 277,
508
+ 825,
509
+ 388
510
+ ],
511
+ "page_idx": 5
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "5.1 DATASETS AND EXPERIMENT SETUP ",
516
+ "text_level": 1,
517
+ "bbox": [
518
+ 176,
519
+ 409,
520
+ 467,
521
+ 421
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Word Substitution Decipherment. Word decipherment aims to uncover the plain text behind a corpus that was enciphered via word substitution where word in the vocabulary is mapped to a unique type in a cipher dictionary (Dou & Knight, 2012; Shen et al., 2017; Yang et al., 2018). In our formulation, the model is presented with a non-parallel corpus of English plaintext and the ciphertext. We use the data in (Yang et al., 2018) which provides 200K sentences from each domain. While previous work (Shen et al., 2017; Yang et al., 2018) controls the difficulty of this task by varying the percentage of words that are ciphered, we directly evaluate on the most difficult version of this task $- 1 0 0 \\%$ of the words are enciphered (i.e. no vocabulary sharing in the two domains). We select the model with the best unsupervised reconstruction loss, and evaluate with BLEU score on the test set which contains 100K parallel sentences. Results are shown in Table 2. ",
528
+ "bbox": [
529
+ 173,
530
+ 434,
531
+ 825,
532
+ 574
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Sentiment Transfer. Sentiment transfer is a task of paraphrasing a sentence with a different sentiment while preserving the original content. Evaluation of sentiment transfer is difficult and is still an open research problem (Mir et al., 2019). Evaluation focuses on three aspects: attribute control, content preservation, and fluency. A successful system needs to perform well with respect to all three aspects. We follow prior work by using three automatic metrics (Yang et al., 2018; Lample et al., 2019): classification accuracy, self-BLEU (BLEU of the output with the original sentence as the reference), and the perplexity (PPL) of each system’s output under an external language model. We pretrain a convolutional classifier (Kim, 2014) to assess classification accuracy, and use an LSTM language model pretrained on each domain to compute the PPL of system outputs. ",
539
+ "bbox": [
540
+ 174,
541
+ 580,
542
+ 825,
543
+ 707
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "We use the Yelp reviews dataset collected by Shen et al. (2017) which contains 250K negative sentences and 380K positive sentences. We also use a small test set that has 1000 human-annotated parallel sentences introduced in Li et al. (2018). We denote the positive sentiment as domain $\\mathcal { D } _ { 1 }$ and the negative sentiment as domain $\\mathcal { D } _ { 2 }$ . We use Self-BLEU and BLEU to represent the BLEU score of the output against the original sentence and the reference respectively. Results are shown in Table 1. ",
550
+ "bbox": [
551
+ 174,
552
+ 713,
553
+ 825,
554
+ 784
555
+ ],
556
+ "page_idx": 5
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Formality Transfer. Next, we consider a harder task of modifying the formality of a sequence. We use the GYAFC dataset (Rao & Tetreault, 2018), which contains formal and informal sentences from two different domains. In this paper, we use the Entertainment and Music domain, which has about 52K training sentences, 5K development sentences, and 2.5K test sentences. This dataset actually contains parallel data between formal and informal sentences, which we use only for evaluation. We follow the evaluation of sentiment transfer task and test models on three axes. Since the test set is a parallel corpus, we only compute reference BLEU and ignore self-BLEU. We use $\\mathcal { D } _ { 1 }$ to denote formal text, and $\\mathcal { D } _ { 2 }$ to denote informal text. Results are shown in Table 1. ",
561
+ "bbox": [
562
+ 173,
563
+ 790,
564
+ 825,
565
+ 873
566
+ ],
567
+ "page_idx": 5
568
+ },
569
+ {
570
+ "type": "table",
571
+ "img_path": "images/29bd00bc1da68626a7c72f619008f31f00fbcfcec482e280bfe9f2c3240ba3ae.jpg",
572
+ "table_caption": [
573
+ "Table 1: Results on the sentiment transfer, author imitation, and formality transfer. We list the PPL of pretrained LMs on the test sets of both domains. We only report Self-BLEU on the sentiment task to compare with existing work. "
574
+ ],
575
+ "table_footnote": [],
576
+ "table_body": "<table><tr><td>Task</td><td>Model</td><td>Acc.</td><td>BLEU</td><td>Self-BLEU</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td rowspan=\"7\">Sentiment</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>31.97</td><td>21.87</td></tr><tr><td>Shen et al. (2017)</td><td>79.50</td><td>6.80</td><td>12.40</td><td>50.40</td><td>52.70</td></tr><tr><td>Hu et al. (2017)</td><td>87.70</td><td>-</td><td>65.60</td><td>115.60</td><td>239.80</td></tr><tr><td>Yang et al. (2018)</td><td>83.30</td><td>13.40</td><td>38.60</td><td>30.30</td><td>42.10</td></tr><tr><td>UNMT</td><td>87.17</td><td>16.99</td><td>44.88</td><td>26.53</td><td>35.72</td></tr><tr><td>BT+NLL</td><td>88.36</td><td>12.36</td><td>31.48</td><td>8.75</td><td>12.82</td></tr><tr><td>Ours</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr><tr><td rowspan=\"4\">AuthorImitation</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>132.95</td><td>85.25</td></tr><tr><td>UNMT</td><td>80.23</td><td>7.13</td><td>=</td><td>40.11</td><td>39.38</td></tr><tr><td>BT+NLL</td><td>76.98</td><td>10.80</td><td>=</td><td>61.70</td><td>65.51</td></tr><tr><td>Ours</td><td>81.43</td><td>10.81</td><td>=</td><td>49.62</td><td>44.86</td></tr><tr><td rowspan=\"4\">Formality</td><td>Test Set</td><td>-</td><td>-</td><td>-</td><td>71.30</td><td>135.50</td></tr><tr><td>UNMT</td><td>78.06</td><td>16.11</td><td>-</td><td>26.70</td><td>10.38</td></tr><tr><td>BT+NLL</td><td>82.43</td><td>8.57</td><td></td><td>6.57</td><td>8.21</td></tr><tr><td>Ours</td><td>80.46</td><td>18.54</td><td>-</td><td>22.65</td><td>17.23</td></tr></table>",
577
+ "bbox": [
578
+ 222,
579
+ 140,
580
+ 774,
581
+ 358
582
+ ],
583
+ "page_idx": 6
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "",
588
+ "bbox": [
589
+ 176,
590
+ 375,
591
+ 821,
592
+ 404
593
+ ],
594
+ "page_idx": 6
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Author Imitation. Author imitation is the task of paraphrasing a sentence to match another author’s style. The dataset we use is a collection of Shakespeare’s plays translated line by line into modern English. It was collected by $\\mathrm { X u }$ et al. $( 2 0 1 2 ) ^ { 7 }$ and used in prior work on supervised style transfer (Jhamtani et al., 2017). This is a parallel corpus and thus we follow the setting in the formality transfer task. We use $\\mathcal { D } _ { 1 }$ to denote modern English, and $\\mathcal { D } _ { 2 }$ to denote Shakespeare-style English. Results are shown in Table 1. ",
599
+ "bbox": [
600
+ 174,
601
+ 410,
602
+ 825,
603
+ 493
604
+ ],
605
+ "page_idx": 6
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Related Language Translation. Next, we test our method on a challenging related language translation task (Pourdamghani & Knight, 2017; Yang et al., 2018). This task is a natural test bed for unsupervised sequence transduction since the goal is to preserve the meaning of the source sentence while rewriting it into the target language. For our experiments, we choose Bosnian (bs) and Serbian (sr) as the related language pairs. We follow Yang et al. (2018) to report BLEU-1 score on this task since BLEU-4 score is close to zero. Results are shown in Table 2. ",
610
+ "bbox": [
611
+ 173,
612
+ 501,
613
+ 825,
614
+ 584
615
+ ],
616
+ "page_idx": 6
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Unsupervised MT. In order to draw connections with a related work on general unsupervised machine translation, we also evaluate on the WMT’16 German English translation task. This task is substantially more difficult than the style transfer tasks considered so far. We compare with the state-of-the-art UNMT system using the existing implementation from the XLM codebase,8 and implement our approach in the same framework with XLM initialization for fair comparison. We train both systems on 5M non-parallel sentences from each language. Results are shown in Table 2. ",
621
+ "bbox": [
622
+ 173,
623
+ 592,
624
+ 825,
625
+ 675
626
+ ],
627
+ "page_idx": 6
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "In Tables 1 we also list the PPL of the test set under the external LM for both the source and target domain. PPL of system outputs should be compared to PPL of the test set itself because extremely low PPL often indicates that the generated sentences are short or trivial. ",
632
+ "bbox": [
633
+ 174,
634
+ 683,
635
+ 452,
636
+ 779
637
+ ],
638
+ "page_idx": 6
639
+ },
640
+ {
641
+ "type": "table",
642
+ "img_path": "images/da6446bdaee40dbfdd302881d8ba50a4e049eb9b729388b78429d029de67344b.jpg",
643
+ "table_caption": [
644
+ "Table 2: BLEU for decipherment, related language translation (Sr-Bs), and general unsupervised translation (En-De). "
645
+ ],
646
+ "table_footnote": [],
647
+ "table_body": "<table><tr><td>Model</td><td>Decipher</td><td>Sr-Bs</td><td>Bs-Sr</td><td>En-De</td><td>De-En</td></tr><tr><td>Shen et al. (2017)</td><td>50.8</td><td>1</td><td>-</td><td></td><td>1</td></tr><tr><td>Yang et al. (2018)</td><td>49.3</td><td>31.0</td><td>33.4</td><td>1</td><td>-</td></tr><tr><td>UNMT</td><td>76.4</td><td>31.4</td><td>33.4</td><td>26.5</td><td>32.2</td></tr><tr><td>BT+NLL</td><td>78.0</td><td>29.6</td><td>31.4</td><td>-</td><td>-</td></tr><tr><td>Ours</td><td>78.4</td><td>36.2</td><td>38.3</td><td>26.9</td><td>32.0</td></tr></table>",
648
+ "bbox": [
649
+ 465,
650
+ 736,
651
+ 823,
652
+ 815
653
+ ],
654
+ "page_idx": 6
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "5.2 RESULTS ",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 174,
662
+ 799,
663
+ 277,
664
+ 813
665
+ ],
666
+ "page_idx": 6
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Tables 1 and 2 demonstrate some general trends. First, UNMT is able to outperform ",
671
+ "bbox": [
672
+ 173,
673
+ 827,
674
+ 452,
675
+ 854
676
+ ],
677
+ "page_idx": 6
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "other prior methods in unsupervised text style transfer, such as (Yang et al., 2018; Hu et al., 2017; Shen et al., 2017). The performance improvements of UNMT indicate that flexible and powerful architectures are crucial (prior methods generally do not have an attention mechanism). Second, our model achieves comparable classification accuracy to UNMT but outperforms it in all style transfer tasks in terms of the reference-BLEU, which is the most important metric since it directly measures the quality of the final generations against gold parallel data. This indicates that our method is both effective and consistent across many different tasks. Finally, the $_ { \\mathrm { B T + N L L } }$ baseline is sometimes quite competitive, which indicates that the addition of a language model alone can be beneficial. However, our method consistently outperforms the simple $_ { \\mathrm { B T + N L L } }$ method, which indicates the effectiveness of the additional entropy regularizer in Eq. 5 that is the byproduct of our probabilistic formulation. ",
682
+ "bbox": [
683
+ 176,
684
+ 854,
685
+ 825,
686
+ 882
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "",
693
+ "bbox": [
694
+ 174,
695
+ 103,
696
+ 825,
697
+ 215
698
+ ],
699
+ "page_idx": 7
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Next, we examine the PPL of the system outputs under pretrained domain LMs, which should be evaluated in comparison with the PPL of the test set itself. For both the sentiment transfer and the formality transfer tasks in Table 1, $_ { \\mathrm { B T + N L L } }$ achieves extremely low PPL, lower than the PPL of the test corpus in the target domain. After a close examination of the output, we find that it contains many repeated and overly simple outputs. For example, the system generates many examples of “I love this place” when transferring negative to positive sentiment (see Appendix A.3 for examples). It is not surprising that such a trivial output has low perplexity, high accuracy, and low BLEU score. On the other hand, our system obtains reasonably competitive PPL, and our approach achieves the highest accuracy and higher BLEU score than the UNMT baseline. ",
704
+ "bbox": [
705
+ 173,
706
+ 222,
707
+ 825,
708
+ 347
709
+ ],
710
+ "page_idx": 7
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "5.3 FURTHER ABLATIONS AND ANALYSIS ",
715
+ "text_level": 1,
716
+ "bbox": [
717
+ 176,
718
+ 381,
719
+ 475,
720
+ 395
721
+ ],
722
+ "page_idx": 7
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "Parameter Sharing. We also conducted an experiment on the word substitution decipherment task, where we remove parameter sharing (as explained in Section 3.2) between two directions of transduction distributions, and optimize two encoder-decoder instead. We found that the model only obtained an extremely low BLEU score and failed to generate any meaningful outputs. ",
727
+ "bbox": [
728
+ 174,
729
+ 412,
730
+ 583,
731
+ 496
732
+ ],
733
+ "page_idx": 7
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "Performance vs. Domain Divergence. Figure 3 plots the relative improvement of our method over UNMT with respect to accuracy of a naive Bayes’ classifier trained to predict the domain of test sentences. Tasks with high classification accuracy likely have more divergent domains. We can see that for decipherment and en-de translation, where the domains have different vocabularies and thus are easily distinguished, our method yields a smaller gain over UNMT This likely indicates that the (discrimination) regularization effect of the LM priors is less importan or necessary when the two domains are very different. ",
738
+ "bbox": [
739
+ 174,
740
+ 503,
741
+ 584,
742
+ 587
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "image",
748
+ "img_path": "images/6aa4e4f10b2de0917d9d783c828a8253cd750d1fcca6b0c6f71251a7ffedc9ff.jpg",
749
+ "image_caption": [
750
+ "Figure 3: Improvement over UNMT vs. classification accuracy. "
751
+ ],
752
+ "image_footnote": [],
753
+ "bbox": [
754
+ 602,
755
+ 392,
756
+ 815,
757
+ 546
758
+ ],
759
+ "page_idx": 7
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "",
764
+ "bbox": [
765
+ 174,
766
+ 587,
767
+ 818,
768
+ 628
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "Why does the proposed model outperform UNMT? Finally, we examine in detail the output of our model and UNMT for the author imitation task. We pick this task because the reference outputs for the test set are provided, aiding analysis. Examples shown in Table 3 demonstrate that UNMT tends to make overly large changes to the source so that the original meaning is lost, while our method is better at preserving the content of the source sentence. Next, we quantitatively examine the outputs from UNMT and our method by comparing the F1 measure of words bucketed by their syntactic tags. We use the open-sourced compare-mt tool (Neubig et al., 2019), and the results are shown in Figure 4. Our system has outperforms UNMT in all word categories. In particular, our system is much better at generating nouns, which likely leads to better content preservation. ",
775
+ "bbox": [
776
+ 173,
777
+ 635,
778
+ 825,
779
+ 761
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "table",
785
+ "img_path": "images/3da4f608c862633a065a041efda15be9391dfaff45649da46bcb01cf8217e988.jpg",
786
+ "table_caption": [
787
+ "Table 3: Examples for author imitation task "
788
+ ],
789
+ "table_footnote": [],
790
+ "table_body": "<table><tr><td>Methods</td><td>Shakespeare to Modern</td></tr><tr><td>Source</td><td>Not to his father&#x27;s .</td></tr><tr><td>Reference</td><td>Not to his father&#x27;s house.</td></tr><tr><td>UNMT</td><td>Not to his brother .</td></tr><tr><td>Ours</td><td>Not to his father&#x27;s house .</td></tr><tr><td>Source</td><td>Send thy man away .</td></tr><tr><td>Reference</td><td>Send your man away.</td></tr><tr><td>UNMT</td><td>Send an excellent word .</td></tr><tr><td>Ours</td><td>Send your man away.</td></tr><tr><td>Source</td><td>Why should you fall into so deep an O ?</td></tr><tr><td>Reference</td><td>Why should you fall into so deep a moan ?</td></tr><tr><td>UNMT</td><td>Why should you carry so nicely,but have your legs ?</td></tr><tr><td>Ours</td><td>Why should you fall into so deep a sin ?</td></tr></table>",
791
+ "bbox": [
792
+ 509,
793
+ 801,
794
+ 764,
795
+ 920
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "image",
801
+ "img_path": "images/77998449f70906451fe5613ae7e9933a82e30c20a2ca545eabe27b26da8c75ef.jpg",
802
+ "image_caption": [
803
+ "Figure 4: Word F1 score by POS tag. "
804
+ ],
805
+ "image_footnote": [],
806
+ "bbox": [
807
+ 209,
808
+ 772,
809
+ 455,
810
+ 898
811
+ ],
812
+ "page_idx": 7
813
+ },
814
+ {
815
+ "type": "table",
816
+ "img_path": "images/5f6740e1341881c2803294dccfe4db8d55c306e1c070bd1cb1f40421d9fb7517.jpg",
817
+ "table_caption": [
818
+ "Table 4: Comparison of gradient approximation on the sentiment transfer task. "
819
+ ],
820
+ "table_footnote": [],
821
+ "table_body": "<table><tr><td>Method</td><td>train ELBO个</td><td>test ELBO个</td><td>Acc.</td><td>BLEUr</td><td>BLEUs</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td>Sample-based</td><td>-3.51</td><td>-3.79</td><td>87.90</td><td>13.34</td><td>33.19</td><td>24.55</td><td>25.67</td></tr><tr><td>Greedy</td><td>-2.05</td><td>-2.07</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr></table>",
822
+ "bbox": [
823
+ 225,
824
+ 116,
825
+ 776,
826
+ 165
827
+ ],
828
+ "page_idx": 8
829
+ },
830
+ {
831
+ "type": "table",
832
+ "img_path": "images/64efa0127d8fef70a9ab7c8e6fa2e0ce146bb553af8190d53e1eed20c5e50950.jpg",
833
+ "table_caption": [
834
+ "Table 5: Comparison of gradient propagation method on the sentiment transfer task. "
835
+ ],
836
+ "table_footnote": [],
837
+ "table_body": "<table><tr><td>Method</td><td>train ELBO↑</td><td>test ELBO个</td><td>Acc.</td><td>BLEUr</td><td>BLEUs</td><td>PPLD1</td><td>PPLD2</td></tr><tr><td>Gumbel Softmax</td><td>-2.96</td><td>-2.98</td><td>81.30</td><td>16.17</td><td>40.47</td><td>22.70</td><td>23.88</td></tr><tr><td>REINFORCE</td><td>-6.07</td><td>-6.48</td><td>95.10</td><td>4.08</td><td>9.74</td><td>6.31</td><td>4.08</td></tr><tr><td>Stop Gradient</td><td>-2.05</td><td>-2.07</td><td>87.90</td><td>18.67</td><td>48.38</td><td>27.75</td><td>35.61</td></tr></table>",
838
+ "bbox": [
839
+ 223,
840
+ 195,
841
+ 774,
842
+ 253
843
+ ],
844
+ "page_idx": 8
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "Greedy vs. Sample-based Gradient Approximation. In our experiments, we use greedy decoding from the inference network to approximate the expectation required by ELBO, which is a biased estimator. The main purpose of this approach is to reduce the variance of the gradient estimator during training, especially in the early stages when the variance of sample-based approaches is quite high. As an ablation experiment on the sentiment transfer task we compare greedy and sample-based gradient approximations in terms of both train and test ELBO, as well as task performance corresponding to best test ELBO. After the model is fully trained, we find that the sample-based approximation has low variance. With a single sample, the standard deviation of the EBLO is less than 0.3 across 10 different test repetitions. All final reported ELBO values are all computed with this approach, regardless of whether the greedy approximation was used during training. The reported ELBO values are the evidence lower bound per word. Results are shown in Table 4, where the sampling-based training underperforms on both ELBO and task evaluations. ",
849
+ "bbox": [
850
+ 173,
851
+ 272,
852
+ 825,
853
+ 439
854
+ ],
855
+ "page_idx": 8
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "5.4 COMPARISON OF GRADIENT PROPAGATION METHODS ",
860
+ "text_level": 1,
861
+ "bbox": [
862
+ 174,
863
+ 463,
864
+ 583,
865
+ 477
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "As noted above, to stabilize the training process, we stop gradients from propagating to the inference network from the reconstruction loss. Does this approach indeed better optimize the actual probabilistic objective (i.e. ELBO) or only indirectly lead to improved task evaluations? In this section we use sentiment transfer as an example task to compare different methods for propagating gradients and evaluate both ELBO and task evaluations. ",
872
+ "bbox": [
873
+ 174,
874
+ 489,
875
+ 825,
876
+ 559
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Specifically, we compare three different methods: ",
883
+ "bbox": [
884
+ 174,
885
+ 566,
886
+ 498,
887
+ 580
888
+ ],
889
+ "page_idx": 8
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "• Stop Gradient: The gradients from reconstruction loss are not propagated to the inference network. This is the method we use in all previous experiments. \n• Gumbel Softmax (Jang et al., 2017): Gradients from the reconstruction loss are propagated to the inference network with the straight-through Gumbel estimator. \n• REINFORCE (Sutton et al., 2000): Gradients from reconstruction loss are propagated to the inference network with ELBO as a reward function. This method has been used in previous work for semi-supervised sequence generation (Miao & Blunsom, 2016; Yin et al., 2018), but often suffers from instability issues. ",
894
+ "bbox": [
895
+ 215,
896
+ 595,
897
+ 825,
898
+ 727
899
+ ],
900
+ "page_idx": 8
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "We report the train and test ELBO along with task evaluations in Table 5, and plot the learning curves on validation set in Figure 5.9 While being much simpler, we show that the stop-gradient trick produces superior ELBO over Gumbel Softmax and REINFORCE. This result suggests that stopping gradient helps better optimize the likelihood objective under our probabilistic formulation in comparison with other optimization techniques that propagate gradients, which is counter-intuitive. A likely explanation is that as a gradient estimator, while clearly biased, stop-gradient has substantially reduced variance. In comparison with other techniques that offer reduced bias but extremely high variance when applied to our model class (which involves discrete sequences as latent variables), stop-gradient actually leads to better optimization of our objective because it achieves better balance of bias and variance overall. ",
905
+ "bbox": [
906
+ 173,
907
+ 741,
908
+ 825,
909
+ 880
910
+ ],
911
+ "page_idx": 8
912
+ },
913
+ {
914
+ "type": "image",
915
+ "img_path": "images/d795400be20ee935fa9f0e734c9f8151789443d1144ec02f23fde88102bcb2d4.jpg",
916
+ "image_caption": [
917
+ "Figure 5: ELBO on the validation set v.s. the number training steps. "
918
+ ],
919
+ "image_footnote": [],
920
+ "bbox": [
921
+ 367,
922
+ 102,
923
+ 625,
924
+ 286
925
+ ],
926
+ "page_idx": 9
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "6 CONCLUSION ",
931
+ "text_level": 1,
932
+ "bbox": [
933
+ 174,
934
+ 337,
935
+ 318,
936
+ 354
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "We propose a probabilistic generative forumalation that unites past work on unsupervised text style transfer. We show that this probabilistic formulation provides a different way to reason about unsupervised objectives in this domain. Our model leads to substantial improvements on five text style transfer tasks, yielding bigger gains when the styles considered are more difficult to distinguish. ",
943
+ "bbox": [
944
+ 174,
945
+ 369,
946
+ 825,
947
+ 425
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "ACKNOWLEDGEMENT ",
954
+ "text_level": 1,
955
+ "bbox": [
956
+ 176,
957
+ 445,
958
+ 357,
959
+ 460
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "The work of Junxian He and Xinyi Wang is supported by the DARPA GAILA project (award HR00111990063) and the Tang Family Foundation respectively. The authors would like to thank Zichao Yang for helpful feedback about the project. ",
966
+ "bbox": [
967
+ 174,
968
+ 476,
969
+ 825,
970
+ 518
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "REFERENCES ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 174,
980
+ 540,
981
+ 285,
982
+ 555
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Mikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. In Proceedings of ICLR, 2018. ",
989
+ "bbox": [
990
+ 174,
991
+ 563,
992
+ 823,
993
+ 592
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Mikel Artetxe, Gorka Labaka, and Eneko Agirre. An effective approach to unsupervised machine translation. arXiv preprint arXiv:1902.01313, 2019. ",
1000
+ "bbox": [
1001
+ 176,
1002
+ 599,
1003
+ 821,
1004
+ 628
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proceedings of ICLR, 2015. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 636,
1014
+ 823,
1015
+ 665
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Colin Bannard and Chris Callison-Burch. Paraphrasing with bilingual parallel corpora. In Proceedings of ACL, 2005. ",
1022
+ "bbox": [
1023
+ 176,
1024
+ 672,
1025
+ 823,
1026
+ 702
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. In Proceedings of ConNLL, 2016. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 709,
1036
+ 823,
1037
+ 739
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Qing Dou and Kevin Knight. Dependency-based decipherment for resource-limited machine translation. Proceedings of EMNLP, 2012. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 746,
1047
+ 823,
1048
+ 776
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Di He, Yingce Xia, Tao Qin, Liwei Wang, Nenghai Yu, Tie-Yan Liu, and Wei-Ying Ma. Dual learning for machine translation. In Proceedings of NeurIPS, 2016. ",
1055
+ "bbox": [
1056
+ 176,
1057
+ 784,
1058
+ 823,
1059
+ 813
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In Proceedings of ICML, 2017. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 820,
1069
+ 823,
1070
+ 851
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In Proceedings of ICLR, 2017. ",
1077
+ "bbox": [
1078
+ 174,
1079
+ 858,
1080
+ 823,
1081
+ 887
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Harsh Jhamtani, Varun Gangal, Edward Hovy, and Eric Nyberg. Shakespearizing modern language using copy-enriched sequence-to-sequence models. Proceedings of EMNLP, 2017. ",
1088
+ "bbox": [
1089
+ 173,
1090
+ 895,
1091
+ 821,
1092
+ 924
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Melvin Johnson, Mike Schuster, Quoc V Le, Maxim Krikun, Yonghui Wu, Zhifeng Chen, Nikhil Thorat, Fernanda Viégas, Martin Wattenberg, Greg Corrado, et al. Google’s multilingual neural machine translation system: Enabling zero-shot translation. Transactions of the Association for Computational Linguistics, 2017. ",
1099
+ "bbox": [
1100
+ 174,
1101
+ 103,
1102
+ 825,
1103
+ 160
1104
+ ],
1105
+ "page_idx": 10
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Yoon Kim. Convolutional neural networks for sentence classification. In Proceedings of EMNLP, 2014. ",
1110
+ "bbox": [
1111
+ 171,
1112
+ 167,
1113
+ 825,
1114
+ 196
1115
+ ],
1116
+ "page_idx": 10
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1121
+ "bbox": [
1122
+ 173,
1123
+ 205,
1124
+ 825,
1125
+ 234
1126
+ ],
1127
+ "page_idx": 10
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Kevin Knight, Anish Nair, Nishit Rathod, and Kenji Yamada. Unsupervised analysis for decipherment problems. In Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions, pp. 499– 506, 2006. ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 242,
1135
+ 825,
1136
+ 285
1137
+ ],
1138
+ "page_idx": 10
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Guillaume Lample, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Unsupervised machine translation using monolingual corpora only. arXiv preprint arXiv:1711.00043, 2017. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 294,
1146
+ 821,
1147
+ 323
1148
+ ],
1149
+ "page_idx": 10
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Phrasebased & neural unsupervised machine translation. arXiv preprint arXiv:1804.07755, 2018. ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 332,
1157
+ 823,
1158
+ 361
1159
+ ],
1160
+ "page_idx": 10
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Guillaume Lample, Sandeep Subramanian, Eric Smith, Ludovic Denoyer, Marc’Aurelio Ranzato, and Y-Lan Boureau. Multiple-attribute text rewriting. In Proceedings of ICLR, 2019. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 368,
1168
+ 825,
1169
+ 397
1170
+ ],
1171
+ "page_idx": 10
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Juncen Li, Robin Jia, He He, and Percy Liang. Delete, retrieve, generate: A simple approach to sentiment and style transfer. arXiv preprint arXiv:1804.06437, 2018. ",
1176
+ "bbox": [
1177
+ 173,
1178
+ 406,
1179
+ 823,
1180
+ 435
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Yishu Miao and Phil Blunsom. Language as a latent variable: Discrete generative models for sentence compression. In Proceedings of EMNLP, 2016. ",
1187
+ "bbox": [
1188
+ 171,
1189
+ 443,
1190
+ 823,
1191
+ 472
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Ronen Mir, Bjarke Felbo, Nick Obradovich, and Iyad Rahwan. Evaluating style transfer for text. In Proceedings of NAACL, 2019. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 481,
1201
+ 823,
1202
+ 510
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Masahiro Mizukami, Graham Neubig, Sakriani Sakti, Tomoki Toda, and Satoshi Nakamura. Linguistic individuality transformation for spoken language. In Natural Language Dialog Systems and Intelligent Assistants. 2015. ",
1209
+ "bbox": [
1210
+ 174,
1211
+ 517,
1212
+ 825,
1213
+ 560
1214
+ ],
1215
+ "page_idx": 10
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Graham Neubig, Zi-Yi Dou, Junjie Hu, Paul Michel, Danish Pruthi, and Xinyi Wang. compare-mt: A tool for holistic comparison of language generation systems. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL) Demo Track, Minneapolis, USA, June 2019. URL http://arxiv.org/abs/1903.07926. ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 569,
1223
+ 826,
1224
+ 626
1225
+ ],
1226
+ "page_idx": 10
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Nima Pourdamghani and Kevin Knight. Deciphering related languages. Proceedings of EMNLP, 2017. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 633,
1234
+ 825,
1235
+ 662
1236
+ ],
1237
+ "page_idx": 10
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Sudha Rao and Joel Tetreault. Dear sir or madam, may i introduce the gyafc dataset: Corpus, benchmarks and metrics for formality style transfer. arXiv preprint arXiv:1803.06535, 2018. ",
1242
+ "bbox": [
1243
+ 173,
1244
+ 671,
1245
+ 826,
1246
+ 700
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Sujith Ravi and Kevin Knight. Deciphering foreign language. In Proceedings of ACL, 2011. ",
1253
+ "bbox": [
1254
+ 173,
1255
+ 708,
1256
+ 779,
1257
+ 724
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In Proceedings of EMNLP, 2015. ",
1264
+ "bbox": [
1265
+ 174,
1266
+ 732,
1267
+ 820,
1268
+ 761
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. In Proceedings of ACL, 2016. ",
1275
+ "bbox": [
1276
+ 174,
1277
+ 768,
1278
+ 821,
1279
+ 799
1280
+ ],
1281
+ "page_idx": 10
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Claude Elwood Shannon. A mathematical theory of communication. Bell system technical journal, 27(3):379–423, 1948. ",
1286
+ "bbox": [
1287
+ 173,
1288
+ 806,
1289
+ 823,
1290
+ 835
1291
+ ],
1292
+ "page_idx": 10
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Tianxiao Shen, Tao Lei, Regina Barzilay, and Tommi Jaakkola. Style transfer from non-parallel text by cross-alignment. In Proceeings of NIPS, 2017. ",
1297
+ "bbox": [
1298
+ 173,
1299
+ 843,
1300
+ 823,
1301
+ 873
1302
+ ],
1303
+ "page_idx": 10
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Proceedings of NeurIPS, 2000. ",
1308
+ "bbox": [
1309
+ 174,
1310
+ 882,
1311
+ 825,
1312
+ 922
1313
+ ],
1314
+ "page_idx": 10
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "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 Proceedings of NeurIPS, 2017. ",
1319
+ "bbox": [
1320
+ 171,
1321
+ 103,
1322
+ 823,
1323
+ 132
1324
+ ],
1325
+ "page_idx": 11
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Wei Xu, Alan Ritter, William B. Dolan, Ralph Grishman, and Cherry Colin. Paraphrasing for style. COLING, 2012. ",
1330
+ "bbox": [
1331
+ 173,
1332
+ 140,
1333
+ 823,
1334
+ 170
1335
+ ],
1336
+ "page_idx": 11
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Zichao Yang, Zhiting Hu, Chris Dyer, Eric P Xing, and Taylor Berg-Kirkpatrick. Unsupervised text style transfer using language models as discriminators. In Proceedings of NeurIPS, 2018. ",
1341
+ "bbox": [
1342
+ 173,
1343
+ 178,
1344
+ 823,
1345
+ 208
1346
+ ],
1347
+ "page_idx": 11
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Pengcheng Yin, Chunting Zhou, Junxian He, and Graham Neubig. Structvae: Tree-structured latent variable models for semi-supervised semantic parsing. In Proceedings of ACL, 2018. ",
1352
+ "bbox": [
1353
+ 173,
1354
+ 215,
1355
+ 823,
1356
+ 246
1357
+ ],
1358
+ "page_idx": 11
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Tiancheng Zhao, Ran Zhao, and Maxine Eskenazi. Learning discourse-level diversity for neural dialog models using conditional variational autoencoders. In Proceedings of ACL, 2017. ",
1363
+ "bbox": [
1364
+ 174,
1365
+ 253,
1366
+ 823,
1367
+ 284
1368
+ ],
1369
+ "page_idx": 11
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "A APPENDIX ",
1374
+ "text_level": 1,
1375
+ "bbox": [
1376
+ 176,
1377
+ 102,
1378
+ 303,
1379
+ 117
1380
+ ],
1381
+ "page_idx": 12
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "A.1 MODEL CONFIGURATIONS. ",
1386
+ "text_level": 1,
1387
+ "bbox": [
1388
+ 176,
1389
+ 133,
1390
+ 408,
1391
+ 148
1392
+ ],
1393
+ "page_idx": 12
1394
+ },
1395
+ {
1396
+ "type": "text",
1397
+ "text": "We adopt the following attentional encoder-decoder architecture for UNMT, $_ { \\mathrm { B T + N L L } }$ , and our method across all the experiments: ",
1398
+ "bbox": [
1399
+ 174,
1400
+ 160,
1401
+ 825,
1402
+ 188
1403
+ ],
1404
+ "page_idx": 12
1405
+ },
1406
+ {
1407
+ "type": "text",
1408
+ "text": "• We use word embeddings of size 128. \n• We use 1 layer LSTM with hidden size of 512 as both the encoder and decoder. \n• We apply dropout to the readout states before softmax with a rate of 0.3. \n• Following Lample et al. (2019), we add a max pooling operation over the encoder hidden states before feeding it to the decoder. Intuitively the pooling window size would control how much information is preserved during transduction. A window size of 1 is equivalent to standard attention mechanism, and a large window size corresponds to no attention. See Appendix A.2 for how to select the window size. There is a noise function for UNMT baseline in its denoising autoencoder loss (Lample et al., 2017; 2019), which is critical for its success. We use the default noise function and noise hyperparameters in Lample et al. (2017) when running the UNMT model. For $_ { \\mathrm { B T + N L L } }$ and our method we found that adding the extra noise into the self-reconstruction loss (Eq. 4) is only helpful when the two domains are relatively divergent (decipherment and related language translation tasks) where the language models play a less important role. Therefore, we add the default noise from UNMT to Eq. 4 for decipherment and related language translation tasks only, and do not use any noise for sentiment, author imitation, and formality tasks. ",
1409
+ "bbox": [
1410
+ 215,
1411
+ 199,
1412
+ 825,
1413
+ 455
1414
+ ],
1415
+ "page_idx": 12
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "A.2 HYPERPARAMETER TUNING. ",
1420
+ "text_level": 1,
1421
+ "bbox": [
1422
+ 176,
1423
+ 473,
1424
+ 421,
1425
+ 487
1426
+ ],
1427
+ "page_idx": 12
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "We vary pooling windows size as $\\{ 1 , 5 \\}$ , the decaying patience hyperparameter $k$ for selfreconstruction loss (Eq. 4) as $\\{ 1 , 2 , 3 \\}$ . For the baseliens UNMT and $_ { \\mathrm { B T + N L L } }$ , we also try the option of not annealing the self-reconstruction loss at all as in the unsupervised machine translation task (Lample et al., 2018). We vary the weight $\\lambda$ for the NLL term $_ \\mathrm { B T + N L L } )$ or the KL term (our method) as $\\{ 0 . 0 0 1 , 0 . 0 1 , 0 . 0 3 , 0 . 0 5 , 0 . 1 \\}$ . ",
1432
+ "bbox": [
1433
+ 174,
1434
+ 498,
1435
+ 825,
1436
+ 569
1437
+ ],
1438
+ "page_idx": 12
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "A.3 SENTIMENT TRANSFER EXAMPLE OUTPUTS ",
1443
+ "text_level": 1,
1444
+ "bbox": [
1445
+ 174,
1446
+ 585,
1447
+ 529,
1448
+ 599
1449
+ ],
1450
+ "page_idx": 12
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "We list some examples of the sentiment transfer task in Table 6. Notably, the $_ { \\mathrm { B T + N L L } }$ method tends to produce extremely short and simple sentences. ",
1455
+ "bbox": [
1456
+ 176,
1457
+ 611,
1458
+ 823,
1459
+ 640
1460
+ ],
1461
+ "page_idx": 12
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "A.4 REPETITIVE EXAMPLES OF BT $^ +$ NLL ",
1466
+ "text_level": 1,
1467
+ "bbox": [
1468
+ 176,
1469
+ 656,
1470
+ 478,
1471
+ 671
1472
+ ],
1473
+ "page_idx": 12
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "In Section 5 we mentioned that the baseline $_ { \\mathrm { B T + N L L } }$ has a low perplexity for some tasks because it tends to generate overly simple and repetitive sentences. From Table 1 we see that two representative tasks are sentiment transfer and formatliy transfer. In Appendix A.3 we have demonstrated some examples for sentiment transfer, next we show some repetitive samples of $_ { \\mathrm { B T + N L L } }$ in Table 7. ",
1478
+ "bbox": [
1479
+ 174,
1480
+ 683,
1481
+ 825,
1482
+ 739
1483
+ ],
1484
+ "page_idx": 12
1485
+ },
1486
+ {
1487
+ "type": "table",
1488
+ "img_path": "images/4e355d046bbaa50661dcbfa3a77a1e58c6830e0e5233faba22720dfbe87da62b.jpg",
1489
+ "table_caption": [
1490
+ "Table 6: Random Sentiment Transfer Examples "
1491
+ ],
1492
+ "table_footnote": [],
1493
+ "table_body": "<table><tr><td>Methods</td><td>negative to positive</td></tr><tr><td>Original</td><td>the cake portion was extremely light and a bit dry .</td></tr><tr><td>UNMT</td><td>the cake portion was extremely light and a bit spicy .</td></tr><tr><td>BT+NLL</td><td>the cake portion was extremely light and a bit dry .</td></tr><tr><td>Ours</td><td>the cake portion was extremely light and a bit fresh .</td></tr><tr><td>Original</td><td>the “ chicken ” strip were paper thin oddly flavored strips .</td></tr><tr><td>UNMT</td><td>the“ chicken ”were extra crispy noodles were fresh and incredible .</td></tr><tr><td>BT+NLL</td><td>the service was great .</td></tr><tr><td>Ours</td><td>the“ chicken ”strip were paper sweet &amp; juicy flavored .</td></tr><tr><td>Original</td><td>if i could give them a zero star review i would !</td></tr><tr><td>UNMT</td><td> if i could give them a zero star review i would !</td></tr><tr><td>BT+NLL</td><td>i love this place .</td></tr><tr><td>Ours</td><td>i love the restaurant and give a great review i would !</td></tr><tr><td></td><td>positive to negative</td></tr><tr><td>Original</td><td> great food,staff is unbelievably nice .</td></tr><tr><td>UNMT BT+NLL</td><td>no ,food is n&#x27;t particularly friendly .</td></tr><tr><td>Ours</td><td>i will not be back .</td></tr><tr><td></td><td>no apologies,staff is unbelievably poor .</td></tr><tr><td>Original</td><td>my wife and i love coming here !</td></tr><tr><td>UNMT</td><td>my wife and i do n&#x27;t come here !</td></tr><tr><td>BT+NLL</td><td>i will not be back.</td></tr><tr><td>Ours</td><td>my wife and i walked out the last time .</td></tr><tr><td>Original</td><td>my wife and i love coming here !</td></tr><tr><td>UNMT</td><td>my wife and i do n&#x27;t come here !</td></tr><tr><td>BT+NLL</td><td>i will not be back .</td></tr><tr><td>Ours</td><td>my wife and i walked out the last time .</td></tr><tr><td>Original</td><td>the premier hookah lounge of las vegas !</td></tr><tr><td>UNMT</td><td>the worst museum of las vegas !</td></tr><tr><td>BT+NLL</td><td>the worst frame shop of las vegas !</td></tr><tr><td>Ours</td><td>the hallways scam lounge of las vegas !</td></tr></table>",
1494
+ "bbox": [
1495
+ 223,
1496
+ 143,
1497
+ 771,
1498
+ 662
1499
+ ],
1500
+ "page_idx": 13
1501
+ },
1502
+ {
1503
+ "type": "table",
1504
+ "img_path": "images/f3fb3cd89abb0a245b4f41de665660ee7e4c4fde63a5f12a0eb0e714ad4eeda0.jpg",
1505
+ "table_caption": [
1506
+ "Table 7: Repetitive examples of $\\mathrm { B T + N L L }$ baseline on Formality transfer. "
1507
+ ],
1508
+ "table_footnote": [],
1509
+ "table_body": "<table><tr><td>Original</td><td>Transferred</td></tr><tr><td colspan=\"2\">formal to informal</td></tr><tr><td>I like Rhythm and Blue music .</td><td>I like her and I don&#x27;t know .</td></tr><tr><td>There&#x27;s nothing he needs to change .</td><td>I don&#x27;t know,but Idon&#x27;t know .</td></tr><tr><td>Ienjoy watching my companion attempt to role @-@ play with them.</td><td>Idon&#x27;tknow,but Idon&#x27;t know.</td></tr><tr><td>Iam watching it right now</td><td>Idon&#x27;t know,but Idon&#x27;t know .</td></tr><tr><td>That is the key point,that you fell asleep .</td><td>I don&#x27;t know,but Idon&#x27;t know.</td></tr><tr><td colspan=\"2\">informal to formal</td></tr><tr><td>its a great source just download it .</td><td>I do not know,but Ido not know .</td></tr><tr><td>Happy Days,it was the coolest !</td><td>I do not know,butIdo not know.</td></tr><tr><td>I used to play flute but once I started sax,I got hooked .</td><td>I do not know,butIdo not know.</td></tr><tr><td>The word you are looking foris.... strengths</td><td>The word you are looking for is :)</td></tr><tr><td>Plus you can tell she really cared about her crew .</td><td>Plus you can tell she really cared about her crew.</td></tr></table>",
1510
+ "bbox": [
1511
+ 176,
1512
+ 736,
1513
+ 825,
1514
+ 895
1515
+ ],
1516
+ "page_idx": 13
1517
+ }
1518
+ ]
parse/train/HJlA0C4tPS/HJlA0C4tPS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJlA0C4tPS/HJlA0C4tPS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1Q79heRW/S1Q79heRW.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNSUPERVISED LEARNING OF ENTAILMENT-VECTOR WORD EMBEDDINGS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Entailment vectors are a principled way to encode in a vector what information is known and what is unknown. They are designed to model relations where one vector should include all the information in another vector, called entailment. This paper investigates the unsupervised learning of entailment vectors for the semantics of words. Using simple entailment-based models of the semantics of words in text (distributional semantics), we induce entailment-vector word embeddings which outperform the best previous results for predicting entailment between words, in unsupervised and semi-supervised experiments on hyponymy.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Modelling entailment, is a fundamental issue in the semantics of natural language, and there has been a lot of interest in modelling entailment using vector-space representations. But, until recently, unsupervised models such as word embeddings have performed surprisingly poorly at detecting entailment Weeds et al. (2014); Shwartz et al. (2017), not beating a frequency baseline Weeds et al. (2014). Entailment is the relation of information inclusion, meaning that $y$ entails $x$ if and only if everything that is known given $x$ is also known given $y$ . As such, representations which support entailment need to encode not just what information is known, but also what information is unknown. The results on lexical entailment seem to indicate that standard word embeddings, such as Word2Vec, do not reflect the relative abstractness of words, and in this sense do not reflect how much information is left unspecified by a word.
12
+
13
+ In contrast with the majority of the work in this area, which simply uses existing vector-space embeddings of words in their models of entailment, recent work has addressed this issue by proposing new vector-space models which are specifically designed to capture entailment. In particular, Vilnis & McCallum (2015) use variances to represent the uncertainty in values in a continuous space, and Henderson & Popa (2016) use probabilities to represent uncertainty about a discrete space. We will refer to the latter as the “entailment-vectors” framework. In this work, we use this framework from Henderson & Popa (2016) to develop new entailment-based models for the unsupervised learning of word embeddings, and demonstrate that these embeddings achieve unprecedented results in predicting entailment between words.
14
+
15
+ Our unsupervised models use the distribution of words in a large text corpus to induce vector-space representations of the meaning of words. This approach to word meaning is called distributional semantics. The distributional semantic hypothesis (Harris, 1954) says that the meaning of a word is reflected in the distribution of text contexts which it appears in. Many methods (e.g. (Deerwester et al., 1990; Schutze, 1993; Mikolov et al., 2013a) and this paper) have been proposed for inducing ¨ vector representations of the meaning of words (word embeddings) from the distribution of wordcontext pairs found in large corpora of text.
16
+
17
+ In the framework of Henderson & Popa (2016), each dimension of the vector-space represents something that might be known, and continuous vectors represent probabilities of these features being known or unknown. Henderson & Popa (2016) illustrate their framework by proposing a reinterpretation of existing Word2Vec (Mikolov et al., 2013a) word embeddings which maps them into entailment vectors, which in turn successfully predict entailment between words (hyponymy). To motivate this reinterpretation of existing word embeddings, they propose a model of distributional semantics and argue that the Word2Vec training objective approximates the training objective of this distributional semantic model given the mapping.
18
+
19
+ In this paper, we implement this distributional semantic model and train new word embeddings using the exact objective. Based on our analysis of this model, we propose that this implementation can be done in several ways, including the one which motivates Henderson & Popa (2016)’s reinterpretation of Word2Vec embeddings. In each case, training results in entailment vector embeddings, which directly encode what is known and unknown given a word, and thus do not require any reinterpretation to predict hyponymy.
20
+
21
+ To model the semantic relationship between a word and its context, the distributional semantic model postulates a latent pseudo-phrase vector for the unified semantics of the word and its neighbouring context word. This latent vector must entail the features in both words’ vectors and must be consistent with a prior over semantic vectors, thereby modelling the redundancy and consistency between the semantics of two neighbouring words.
22
+
23
+ Based on our analysis of this entailment-based distributional semantic model, we hypothesise that the word embeddings suggested by Henderson & Popa (2016) are in fact not the best way to extract information about the semantics of a word from this model. They propose using a vector which represents the evidence about known features given the word (henceforth called the likelihood vectors). We propose to instead use a vector which represents the posterior distribution of known features for a phrase containing only the word. This posterior vector includes both the evidence from the word and its indirect consequences via the constraints imposed by the prior. Our efficient implementation of this model allows us to test this hypothesis by outputting either the likelihood vectors or the posterior vectors as word embeddings.
24
+
25
+ To evaluate these word embeddings, we predict hyponymy between words, in both an unsupervised and semi-supervised setting. Given the word embeddings for two words, we measure whether they are a hypernym-hyponym pair using an entailment operator from (Henderson & Popa, 2016) applied to the two embeddings. We find that using the likelihood vectors performs as well as reinterpreting Word2Vec embeddings, confirming the claims of equivalence by Henderson & Popa (2016). But we also find that using the posterior vectors performs significantly better, confirming our hypothesis that posterior vectors are better, and achieving the best published results on this benchmark dataset. In addition to these unsupervised experiments, we evaluate in a semi-supervised setting and find a similar pattern of results, again achieving state-of-the-art performance.
26
+
27
+ In the rest of this paper, section 2 presents the formal framework we use for modelling entailment in a vector space, the distributional semantic models, and how these are used to predict hyponymy. Section 3 discusses additional related work, and then section 4 presents the empirical evaluation on hyponymy detection, in both unsupervised and semi-supervised experiments. Some additional analysis of the induced vectors is presented in section 4.4.
28
+
29
+ # 2 DISTRIBUTIONAL SEMANTIC ENTAILMENT
30
+
31
+ Distributional semantics uses the distribution of contexts in which a word occurs to induce the semantics of the word (Harris, 1954; Deerwester et al., 1990; Schutze, 1993). The Word2Vec model ¨ (Mikolov et al., 2013a) introduced a set of refinements and computational optimisations of this idea which allowed the learning of vector-space embeddings for words from very large corpora with very good semantic generalisation. Henderson & Popa (2016) motivate their reinterpretation the Word2Vec Skipgram (Mikolov et al., 2013a) distributional semantic model with an entailment-based model of the semantic relationship between a word and its context words. We start by explaining our interpretation of the distributional semantic model proposed by Henderson & Popa (2016), and then propose our alternative models.
32
+
33
+ Henderson & Popa (2016) postulate a latent vector $y$ which is the consistent unification of the features of the middle word $x _ { e } ^ { \prime }$ and the neighbouring context word $x _ { e }$ , illustrated on the left in figure 1.1 We can think of the latent vector $y$ as representing the semantics of a pseudo-phrase consisting of the two words. The unification requirement is defined as requiring that $y$ entail both words, written $y \Rightarrow x _ { e } ^ { \prime }$ and ${ y } \Rightarrow x _ { e }$ . The consistency requirement is defined as $y$ satisfying a prior $\theta ( y )$ , which embodies all the the constraints and correlations between features in the vector. This approach models the relationship between the semantics of a word and its context as being redundant and consistent.
34
+
35
+ ![](images/2e409103eb26df57b85087dde2856086923e32a2453e6248891724d852ffcf69.jpg)
36
+ Figure 1: The distributional semantic model of a word and its context (left), and its approximation in the word2hyp models (right).
37
+
38
+ If $x _ { e } ^ { \prime }$ and $x _ { e }$ share features, then it will be easier for $y$ to satisfy both $y \Rightarrow x _ { e } ^ { \prime }$ and $y { \Rightarrow } x _ { e }$ . If the features of $x _ { e } ^ { \prime }$ and $x _ { e }$ are consistent, then it will be easier for $y$ to satisfy the prior $\theta ( y )$ .
39
+
40
+ # 2.1 THE REINTERPRETATION OF WORD2VEC
41
+
42
+ Henderson & Popa (2016) formalise the above model using their entailment-vectors framework. This framework models distributions over discrete vectors where a 1 in position $i$ means feature $i$ is known and a 0 means it is unknown. Entailment $y \Rightarrow x$ requires that the 1s in $x$ are a subset of the 1s in $y$ , so $1 \Rightarrow 1$ , $0 { \Rightarrow } 0$ and $1 { \Rightarrow } 0$ , but $0 { \neq } 1$ . Distributions over these discrete vectors are represented as continuous vectors of log-odds $X$ , so $P ( x _ { i } { = } 1 ) = \sigma ( X _ { i } )$ , where $\sigma$ is the logistic sigmoid. The probability of entailment $y \Rightarrow x$ between two such “entailment vectors” $Y , X$ can be measured using the operator $\bigcirc$ :2
43
+
44
+ $$
45
+ \begin{array} { c } { { \log P ( y { \Rightarrow } x \mid Y , X ) \approx } } \\ { { Y { \otimes } X \equiv \sigma ( - Y ) \cdot \log \sigma ( - X ) } } \end{array}
46
+ $$
47
+
48
+ For each feature $i$ in the vector, it calculates the expectation according to $P ( y _ { i } )$ that, either $y _ { i } { = } 1$ and thus the log-probability is zero, or $y _ { i } { = } 0$ and thus the log-probability is $\log P ( x _ { i } { = } 0 )$ (noting that $\sigma ( - X _ { i } ) = ( 1 - \sigma ( X _ { i } ) ) \approx P ( x _ { i } { = } 0 ) )$ .
49
+
50
+ Henderson & Popa (2016) formalise the model on the left in figure 1 by first inferring the optimal latent vector distribution $Y$ (equation (3)), and then scoring how well the entailment and prior constraints have been satisfied (equation (2)).
51
+
52
+ $$
53
+ \begin{array} { r l } & { \underset { Y } { \operatorname* { m a x } } \big ( E _ { Y , X _ { e } ^ { \prime } , X _ { e } } \log P ( y \Rightarrow x _ { e } ^ { \prime } , y \Rightarrow x _ { e } , y ) \big ) } \\ & { \quad \approx Y \otimes X _ { e } ^ { \prime } + Y \otimes X _ { e } + ( - \sigma ( - Y ) ) \cdot \theta ( Y ) } \end{array}
54
+ $$
55
+
56
+ where
57
+
58
+ $$
59
+ Y = - \log \sigma ( - X _ { e } ^ { \prime } ) + - \log \sigma ( - X _ { e } ) + \theta ( Y )
60
+ $$
61
+
62
+ where $E _ { Y , X _ { e } ^ { \prime } , X _ { e } }$ is the expectation over the distribution defined by the log-odds vectors $Y , X _ { e } ^ { \prime } , X _ { e }$ , and log and $\sigma$ are applied componentwise. The term $\theta ( Y )$ is used to indicate the net effect of the prior on the vector $Y$ . Note that, in the formula (3) for inferring $Y$ , the contribution $- \log \sigma ( - X )$ of each word vector is also a component of the definition of $Y \odot X$ from equation (1). In this way, the score for measuring how well the entailment has been satisfied is using the same approximation as used in the inference to satisfy the entailment constraint. This function $- \log \sigma ( - X )$ is a nonnegative transform of $X$ , as shown in figure 2. Intuitively, for an entailed vector $x$ , we only care about the probability that $x _ { i } { = } 1$ (positive log-odds $X _ { i }$ ), because that constrains the entailing vector $y$ to have $y _ { i } { = } 1$ (adding to the log-odds $Y _ { i }$ ).
63
+
64
+ The above model cannot be mapped directly to the Word2Vec model because Word2Vec has no way to model the prior $\theta ( Y )$ . On the other hand, the Word2Vec model postulates two vectors for every word, compared to one in the above model. Henderson & Popa (2016) propose an approximation to the above model which incorporates the prior into one of the two vectors, resulting in each word having one vector $X _ { e }$ as above plus another vector $X _ { p }$ with the prior incorporated.
65
+
66
+ $$
67
+ X _ { p } \approx - \log \sigma ( - X _ { e } ) + \theta ( Y )
68
+ $$
69
+
70
+ ![](images/7431319ff0ba44d4033a6901d56a88b7a22ee12a3ce07fa20460fac547eb6697.jpg)
71
+ Figure 2: The function $- \log \sigma ( - X )$ used in inference and the $\bigcirc$ operator, versus $X$
72
+
73
+ Both vectors $X _ { e }$ and $X _ { p }$ are parameters of the model, which need to be learned. Thus, there is no need to explicitly model the prior, thereby avoiding the need to choose a particular form for the prior $\theta$ , which in general may be very complex.
74
+
75
+ This gives us the following score for how well the constraints of this model can be satisfied.
76
+
77
+ $$
78
+ \begin{array} { r l } & { \underset { Y } { \operatorname* { m a x } } \big ( E _ { Y , X _ { e } ^ { \prime } , X _ { p } } \log P ( y \Rightarrow x _ { e } ^ { \prime } , y \Rightarrow x _ { e } , y ) \big ) } \\ & { \quad \approx Y \otimes X _ { e } ^ { \prime } + ( - \sigma ( - Y ) ) \cdot X _ { p } } \end{array}
79
+ $$
80
+
81
+ where
82
+
83
+ $$
84
+ Y = - \log \sigma ( - X _ { e } ^ { \prime } ) + X _ { p }
85
+ $$
86
+
87
+ In (Henderson & Popa, 2016), score (5) is only used to provide a reinterpretation of Word2Vec word embeddings. They show that a transformation of the vectors output by Word2Vec (“W2V u.d.
88
+
89
+ # 2.2 NEW DISTRIBUTIONAL SEMANTIC MODELS
90
+
91
+ In this paper, we implement distributional semantic models based on score (5) and use them to train new word embeddings. We call these models the Word2Hyp models, because they are based on Word2Vec but are designed to predict hyponymy.
92
+
93
+ To motivate our models, we provide a better understanding of the model behind score (5). In particular, we note that although we want $X _ { p }$ to approximate the effects $\theta ( Y )$ of the prior as in equation 4, in fact $X _ { p }$ is only dependent on one of the two words, and thus can only incorporate the portion of $\theta ( Y )$ which arises from that one word. Thus, a better understanding of $X _ { p }$ is provided by equation (7).
94
+
95
+ $$
96
+ X _ { p } \approx - \log \sigma ( - X _ { e } ) + \theta ( X _ { p } )
97
+ $$
98
+
99
+ In this framework, equation (7) is exactly the same formula as would be used to infer the vector for a single-word phrase (analogously to equation (3)).
100
+
101
+ This interpretation of the approximate model in equation 5 is given on the right side of figure 1. As shown, $X _ { p }$ is interpreted as the posterior vector for a single-word phrase, which incorporates the likelihood and the prior for that word. In contrast, $X _ { e } ^ { \prime }$ is just the likelihood, which provides the evidence about the features of $Y$ from the other word, without including the indirect consequences of this information. This model, as argued above, approximates the model on the left side in Figure 1. But the grey part of the figure does not need to be explicitly modelled because $X _ { p }$ is trained directly.
102
+
103
+ This interpretation suggests that the posterior vector $X _ { p }$ should be a better reflection of the semantics of the word than the likelihood vector $X _ { e }$ , since it includes both the direct evidence for some features and their indirect consequences for other features. We test this hypothesis empirically in Section 4.
104
+
105
+ To implement our distributional semantic models, we define new versions of the Word2Vec code (Mikolov et al., 2013a;b). The Word2Vec code trains two vectors for each word, where negative sampling is applied to one of these vectors, and the other is the output vector. This applies to both the Skipgram and CBOW versions of training. Both versions also use a dot product between vectors to try to predict whether the example is a positive or negative sample. We simply replace this dot product with score (5) directly in the Word2Vec code, leaving the rest of the algorithm unchanged. We make this change in one of two ways, one where the output vector corresponds to the likelihood vector $X _ { e }$ , and one where the output vector corresponds to the posterior vector $X _ { p }$ . We will refer to the model where $X _ { p }$ is output as the “posterior” model, and the model where $X _ { e }$ is output as the “likelihood” model. Both these methods can be applied to both the Skipgram and CBOW models, giving us four different models to evaluate.
106
+
107
+ # 2.3 MODELLING HYPONYMY
108
+
109
+ The proposed distributional semantic models output a word embedding vector for every word in the vocabulary, which are directly interpretable as entailment vectors in the entailment-vectors framework. Thus, to predict lexical entailment between two words, we can simply apply the $\bigcirc$ operator to their vectors, to get an approximation of the log-probability of entailment.
110
+
111
+ We evaluate these entailment predictions on hyponymy detection. Hyponym-hypernym pairs should have associated embeddings $Y , X$ which have a higher entailment scores $Y \odot X$ than other pairs. We rank the word pairs by the entailment scores for their embeddings, and evaluate this ranked list against the gold hyponymy annotations. We evaluate on hyponymy detection because it reflects a direct form of lexical entailment; the semantic features of a hypernym (e.g. “animal”) should be included in the semantic features of the hyponym (e.g. “cat”). Other forms of lexical entailment would benefit from some kind of reasoning or world knowledge, which we leave to future work on compositional models.
112
+
113
+ # 3 RELATED WORK
114
+
115
+ In this paper we propose a distributional semantic model which is based on entailment. Most of the work on modelling entailment with vector space embeddings has simply used distributional semantic vectors within a model of entailment, and is therefore not directly relevant here. See (Shwartz et al., 2017) for a comprehensive review of such measures. Shwartz et al. (2017) evaluate these measures as unsupervised models of hyponymy detection and run experiments on a number of hyponymy datasets. We report their best comparable result in Table 1.
116
+
117
+ Vilnis & McCallum (2015) propose an unsupervised model of entailment in a vector space, and evaluate it on hyponymy detection. Instead of representing words as a point in a vector space, they represent words as a Gaussian distribution over points in a vector space. The variance of this distribution in a given dimension indicates the extent to which the dimension’s feature is unknown, so they use KL-divergence to detect hyponymy relations. Although this model has a nice theoretical motivation, the word representations are more complex and training appears to be more computationally expensive than the method proposed here. We empirically compare our models to their hyponymy detection accuracy and find equivalent results.
118
+
119
+ The semi-supervised model of Kruszewski et al. (2015) learns a discrete Boolean vector space for predicting hyponymy. But they do not propose any unsupervised method for learning these vectors.
120
+
121
+ Weeds et al. (2014) report hyponymy detection results for a number of unsupervised and semisupervised models. They propose a semi-supervised evaluation methodology where the words in the training and test sets are disjoint, so that the supervised component must learn about the unsupervised vector space and not about the individual words. Following Henderson & Popa (2016), we replicate their experimental setup in our evaluations, for both unsupervised and semi-supervised models, and compare to the best results among the models evaluated by Weeds et al. (2014), Shwartz et al. (2017) and Henderson & Popa (2016).
122
+
123
+ # 4 EVALUATION OF WORD EMBEDDINGS
124
+
125
+ We evaluate on hyponymy detection in both a fully unsupervised setup and a semi-supervised setup. In the semi-supervised setup, we use labelled hyponymy data to train a linear mapping from the unsupervised vector space to a new vector space with the objective of correctly predicting hyponymy relations in the new vector space. This prediction is done with the same (or equivalent) entailment operator as for the unsupervised experiments (called “map $\bigcirc$ ” in Table 2).
126
+
127
+ Table 1: Hyponymy detection accuracies $( 5 0 \% A c c )$ and average precision $( A \nu e P r e c )$ , in the unsupervised experiments. For the accuracies, \* marks a significant improvement over the higher rows.
128
+
129
+ <table><tr><td>embeddings</td><td>operator</td><td>50% Acc AvePrec</td></tr><tr><td>Weeds et.al., 2014 Shwartz et.al., 2017</td><td></td><td>58% 1 44.1% 1</td></tr><tr><td>W2V GoogleNews</td><td>u.d.</td><td>64.5%* 1</td></tr><tr><td>W2V CBOW W2H Skip likelihood</td><td>u.d. ② ③</td><td>53.2% 55.2% 59.5% 57.8%</td></tr><tr><td>W2H CBOW] likelihood</td><td>③</td><td>61.8% 66.4%</td></tr><tr><td>W2V Skip</td><td>u.d.</td><td>62.1% 67.6%</td></tr><tr><td>W2H CBOW</td><td>posterior ③</td><td>68.1%* 70.8%</td></tr><tr><td>W2H [Skip</td><td>posterior 国</td><td>69.6% 68.9%</td></tr></table>
130
+
131
+ We replicate the experimental setup of Weeds et al. (2014), using their selection of hyponymhypernym pairs from the BLESS dataset (Baroni & Lenci, 2011), which consists of noun-noun pairs, including $50 \%$ positive hyponymy pairs plus $50 \%$ negative pairs consisting of some other hyponymy pairs reversed, some pairs in other semantic relations, and some random pairs. As in (Weeds et al., 2014), our semi-supervised experiments use ten-fold cross validation, where each fold has items removed from the training set if they contain a word that also occurs in the testing set.
132
+
133
+ The word embedding vectors which we train have 200 dimensions and were trained using our Word2Hyp modification of the Word2Vec code (with default settings), trained on a corpus of half a billion words of Wikipedia. We also replicate the approach of Henderson & Popa (2016) by training Word2Vec embeddings on this data.
134
+
135
+ To quantify performance on hyponymy detection, for each model we rank the list of pairs according to the score given by the model, and report two measures of performance for this ranked lists. The “ $50 \%$ Acc” measure treats the first half of the list as labelled positive and the second half as labelled negative. This is motivated by the fact that we know a priori that the proportion of positive examples has been artificially set to (approximately) $50 \%$ . Average precision is a measure of the accuracy for ranked lists, used in Information Retrieval and advocated as a measure of hyponymy detection by Vilnis & McCallum (2015). For each positive example, precision is measured at the threshold just below that example, and these precision scores are averaged over positive examples. For cross validation, we average over the union of positive examples in all the test sets. Both these measures are reported (when available) in Tables 1 and 2.
136
+
137
+ # 4.1 UNSUPERVISED HYPONYMY DETECTION
138
+
139
+ The first set of experiments evaluate the different embeddings in their unsupervised models of hyponymy detection. Results are shown in Table 1. Our principal point of comparison is the best results from (Henderson & Popa, 2016) (called “W2V GoogleNews” in Table 1). They use the preexisting publicly available GoogleNews word embeddings, which were trained with the Word2Vec software on 100 billion words of the GoogleNews dataset, and have 300 dimensions. To provide a more direct comparison, we replicate the model of Henderson & Popa (2016) but using the same embedding training setup as for our Word2Hyp model (“W2V Skip”). Both cases use their proposed reinterpretation of these vectors for predicting entailment $( ^ { 6 } u . d . \odot ^ { 7 } )$ . We also report the best results from Weeds et al. (2014) and the best comparable results from (Shwartz et al., 2017). For our proposed Word2Hyp distributional semantic models (“W2H”), we report results for the four combinations of using the CBOW or Skipgram (“Skip”) model to train the likelihood or posterior vectors.
140
+
141
+ The two Word2Hyp models with likelihood vectors perform slightly better than the best unsupervised model of Weeds et al. (2014), but similarly. The reinterpretation of Word2Vec vectors (“W2V GoogleNews $u . d . \odot ^ { \ ' } )$ ) performs significantly better, but when the same method is applied to the smaller Wikipedia corpus (“W2V Skip $u . d . \odot ^ { \ ' } ,$ ), this difference all but disappears. This confirms the hypothesis of Henderson & Popa (2016) that the reinterpretation of Word2Vec vectors and the likelihood vectors from Word2Hyp are approximately equivalent.
142
+
143
+ Table 2: Hyponymy detection accuracies $50 \%$ Acc) and average precision (Ave Prec), in the semisupervised experiments.
144
+
145
+ <table><tr><td rowspan=1 colspan=2>embeddings operator</td><td rowspan=1 colspan=1>50% AccAvePrec</td></tr><tr><td rowspan=1 colspan=2>Weeds et.al., 2014</td><td rowspan=1 colspan=1>75% 1</td></tr><tr><td rowspan=1 colspan=2>W2VGoogleNews map①</td><td rowspan=1 colspan=1>80.1% 1</td></tr><tr><td rowspan=2 colspan=2>W2VSkip map③W2H【CBOW】/ likelihoodmap②W2VCBOW map②W2HSkip likelihoodmap①W2HSkip posteriormap③W2HCBOW posteriormap③</td><td rowspan=2 colspan=1>81.9% 88.3%83.3% 90.3%84.6% 91.5%84.8% 90.9%85.5% 91.3%86.0% 92.8%</td></tr><tr><td rowspan=1 colspan=1>map②map①</td></tr></table>
146
+
147
+ However, even with this smaller corpus, using the proposed posterior vectors from the Word2Hyp model are significantly more accurate than the reinterpretation of Word2Vec vectors. This confirms the hypothesis that the posterior vectors from the Word2Hyp model are a better model of the semantics of a word than the likelihood vectors suggested by Henderson & Popa (2016).
148
+
149
+ Using the CBOW model or the Skipgram model makes only a small difference. The average precision score shows the same pattern as the accuracy.
150
+
151
+ To allow a direct comparison to the model of Vilnis & McCallum (2015), we also evaluated the unsupervised models on the hyponymy data from (Baroni et al., 2012), which is not as carefully designed to evaluate hyponymy as the (Weeds et al., 2014) data. Both the likelihood and posterior vectors of the Word2Hyp CBOW model achieved average precision $( 8 1 \% , 8 0 \% )$ which is not significantly different from the best model of Vilnis & McCallum (2015) $( 8 0 \% )$ .
152
+
153
+ # 4.2 SEMI-SUPERVISED HYPONYMY DETECTION
154
+
155
+ The semi-supervised experiments train a linear mapping from each unsupervised vector space to a new vector space, where the entailment operator $\bigcirc$ is used to predict hyponymy (“map $\odot ^ { \prime \prime }$ ).
156
+
157
+ The semi-supervised results (shown in Table 2)3 no longer show an advantage of GoogleNews vectors over Wikipedia vectors for the reinterpretation of Word2Vec vectors. And the advantage of posterior vectors over the likelihood vectors is less pronounced. However, the two posterior vectors still perform much better than all the previously proposed models, achieving $86 \%$ accuracy and nearly $93 \%$ average precision. These semi-supervised results confirm the results from the unsupervised experiments, that Word2Vec embeddings and Word2Hyp likelihood embeddings perform similarly, but that using the posterior vectors of the Word2Hyp model perform better.
158
+
159
+ # 4.3 TRAINING TIMES
160
+
161
+ Because the similarity measure in equation 5 is more complex than a simple dot product, training a new distributional semantic model is slower than with the original Word2Vec code. In our experiments, training took about 8 times longer for the CBOW model and about 15 times longer for the Skipgram model. This meant that Word2Hyp CBOW trained about 8 times faster than Word2Hyp Skipgram. As in the Word2Vec code, we used a quadrature approximation (i.e. a look-up table) to speed up the computation of the sigmoid function, and we added the same technique for computing the log-sigmoid function.
162
+
163
+ # 4.4 DISCUSSION
164
+
165
+ The relative success of our distributional semantic models at unsupervised hyponymy detection indicates that they are capturing some aspects of lexical entailment. But the gap between the unsupervised and semi-supervised results indicates that other features are also being captured. This is not surprising, since many other factors influence the co-occurrence statistics of words.
166
+
167
+ Table 3: Ranking of the abstractness $( \mathbf { 0 } \otimes X )$ of frequent words from the hyponymy dataset, using Word2Hyp-Skipgram-posterior embeddings.
168
+
169
+ <table><tr><td colspan="2">most abstract</td><td colspan="2">least abstract</td></tr><tr><td>something</td><td>necessity</td><td></td><td>fork</td></tr><tr><td>anything</td><td>sense</td><td>hockey</td><td>&#x27;housing</td></tr><tr><td>end</td><td>back</td><td>republican</td><td>elm</td></tr><tr><td>inside</td><td>saw</td><td>hull</td><td>primate</td></tr><tr><td>good</td><td>:</td><td>cricket</td><td>fur</td></tr></table>
170
+
171
+ To get a better understanding of these word embeddings, we ranked them by degree of abstractness. Table 3 shows the most abstract and least abstract frequent words that occur in the hyponymy data. To measure abstractness, we used our best unsupervised embeddings and measured how well they are entailed by the zero log-odds vector, which represents a uniform half probability of knowing each feature. For a vector to be entailed by the zero vector, it must be that its features are mostly probably unknown. The less you know given a word, the more abstract it is.
172
+
173
+ An initial ranking found that six of the top ten abstract words had frequency less than 300 in the Wikipedia data, but none of the ten least abstract terms were infrequent. This indicates a problem with the current method, since infrequent words are generally very specific (as was the case for these low-frequency words, submissiveness, implementer, overdraft, ruminant, warplane, and londoner). Although this is an interesting characteristic of the method, the terms themselves seem to be noise, so we rank only terms with frequency greater than 300.
174
+
175
+ The most abstract terms in table 3 include some clearly semantically abstract terms, in particular something and anything are ranked highest. Others may be affected by lexical ambiguity, since the model does not disambiguate words by part-of-speech (such as end, good, sense, back, and saw). The least abstract terms are mostly very semantically specific, but it is indicative that this list includes primate, which is an abstract term in Zoology but presumably occurs in very specific contexts in Wikipedia.
176
+
177
+ # 5 CONCLUSIONS
178
+
179
+ In this paper, we propose unsupervised methods for efficiently training word embeddings which capture semantic entailment. This work builds on the work of Henderson & Popa (2016), who propose the entailment-vectors framework for modelling entailment in a vector-space, and a distributional semantic model for reinterpreting Word2Vec word embeddings. Our contribution differs from theirs in that we provide a better understanding of their distributional semantic model, we choose different vectors in the model to use as word embeddings, and we train new word embeddings using our modification of the Word2Vec code. Empirical results on unsupervised and semi-supervised hyponymy detection confirm that the model’s likelihood vectors, which Henderson & Popa (2016) suggest to use, do indeed perform equivalently to their reinterpretation of Word2Vec vectors. But these experiments also show that the model’s posterior vectors, which we propose to use, perform significantly better, outperforming all previous results on this benchmark dataset.
180
+
181
+ The success of these unsupervised models demonstrates that the proposed distributional semantic models are effective at extracting information about lexical entailment from the redundancy and consistency of words with their contexts in large text corpora. The use of the entailment-vectors framework to efficiently model entailment relations has been crucial to this success. This result suggests future work using the entailment-vectors framework in unsupervised models that leverage other distributional evidence about semantics, particularly in models of compositional semantics. The merger of word embeddings with compositional semantics to get representation learning for larger units of text is currently an important challenge in the semantics of natural language, and the work presented in this paper makes a significant contribution towards solving it.
182
+
183
+ # REFERENCES
184
+
185
+ Marco Baroni and Alessandro Lenci. How we blessed distributional semantic evaluation. In Proceedings of the GEMS 2011 Workshop on GEometrical Models of Natural Language Semantics,
186
+
187
+ GEMS ’11, pp. 1–10. Association for Computational Linguistics, 2011. ISBN 978-1-937284-16- 9. URL http://dl.acm.org/citation.cfm?id=2140490.2140491.
188
+
189
+ Marco Baroni, Raffaella Bernardi, Ngoc-Quynh Do, and Chung-chieh Shan. Entailment above the word level in distributional semantics. In Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics (EACL), pp. 23–32, Avignon, France, 2012. Association for Computational Linguistics. URL http://www.aclweb.org/ anthology/E12-1004.
190
+
191
+ Scott Deerwester, Susan T. Dumais, George W. Furnas, Thomas K. Landauer, and Richard Harshman. Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6):391–407, 1990.
192
+
193
+ Zellig S. Harris. Distributional structure. ${ ; i \zeta W O R D ; / i \zeta }$ , 10(2-3):146–162, 1954. doi: 10.1080/ 00437956.1954.11659520. URL http://dx.doi.org/10.1080/00437956.1954. 11659520.
194
+
195
+ James Henderson and Diana Popa. A vector space for distributional semantics for entailment. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2052–2062, Berlin, Germany, August 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/P16-1193.
196
+
197
+ Germn Kruszewski, Denis Paperno, and Marco Baroni. Deriving boolean structures from distributional vectors. Transactions of the Association for Computational Linguistics, 3:375–388, 2015. ISSN 2307-387X. URL https://tacl2013.cs.columbia.edu/ojs/index.php/ tacl/article/view/616.
198
+
199
+ 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.
200
+
201
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In C.J.C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K.Q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 3111–3119. Curran Associates, Inc., 2013b. URL http://papers.nips.cc/paper/ 5021-distributed-representations-of-words-and-phrases-and-their-compositionalit pdf.
202
+
203
+ Hinrich Schutze. Word space. In ¨ Advances in Neural Information Processing Systems 5, pp. 895– 902. Morgan Kaufmann, 1993.
204
+
205
+ Vered Shwartz, Enrico Santus, and Dominik Schlechtweg. Hypernyms under siege: Linguisticallymotivated artillery for hypernymy detection. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pp. 65–75, Valencia, Spain, April 2017. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/E17-1007.
206
+
207
+ Luke Vilnis and Andrew McCallum. Word representations via Gaussian embedding. In Proceedings of the International Conference on Learning Representations 2015 (ICLR), 2015. URL http: //arxiv.org/abs/1412.6623.
208
+
209
+ Julie Weeds, Daoud Clarke, Jeremy Reffin, David Weir, and Bill Keller. Learning to distinguish hypernyms and co-hyponyms. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pp. 2249–2259, Dublin, Ireland, 2014. Dublin City University and Association for Computational Linguistics. URL http: //www.aclweb.org/anthology/C14-1212.
parse/train/S1Q79heRW/S1Q79heRW_content_list.json ADDED
@@ -0,0 +1,1099 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "UNSUPERVISED LEARNING OF ENTAILMENT-VECTOR WORD EMBEDDINGS ",
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": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Entailment vectors are a principled way to encode in a vector what information is known and what is unknown. They are designed to model relations where one vector should include all the information in another vector, called entailment. This paper investigates the unsupervised learning of entailment vectors for the semantics of words. Using simple entailment-based models of the semantics of words in text (distributional semantics), we induce entailment-vector word embeddings which outperform the best previous results for predicting entailment between words, in unsupervised and semi-supervised experiments on hyponymy. ",
40
+ "bbox": [
41
+ 232,
42
+ 263,
43
+ 764,
44
+ 376
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 398,
55
+ 336,
56
+ 415
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Modelling entailment, is a fundamental issue in the semantics of natural language, and there has been a lot of interest in modelling entailment using vector-space representations. But, until recently, unsupervised models such as word embeddings have performed surprisingly poorly at detecting entailment Weeds et al. (2014); Shwartz et al. (2017), not beating a frequency baseline Weeds et al. (2014). Entailment is the relation of information inclusion, meaning that $y$ entails $x$ if and only if everything that is known given $x$ is also known given $y$ . As such, representations which support entailment need to encode not just what information is known, but also what information is unknown. The results on lexical entailment seem to indicate that standard word embeddings, such as Word2Vec, do not reflect the relative abstractness of words, and in this sense do not reflect how much information is left unspecified by a word. ",
63
+ "bbox": [
64
+ 174,
65
+ 430,
66
+ 825,
67
+ 569
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In contrast with the majority of the work in this area, which simply uses existing vector-space embeddings of words in their models of entailment, recent work has addressed this issue by proposing new vector-space models which are specifically designed to capture entailment. In particular, Vilnis & McCallum (2015) use variances to represent the uncertainty in values in a continuous space, and Henderson & Popa (2016) use probabilities to represent uncertainty about a discrete space. We will refer to the latter as the “entailment-vectors” framework. In this work, we use this framework from Henderson & Popa (2016) to develop new entailment-based models for the unsupervised learning of word embeddings, and demonstrate that these embeddings achieve unprecedented results in predicting entailment between words. ",
74
+ "bbox": [
75
+ 174,
76
+ 575,
77
+ 825,
78
+ 700
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Our unsupervised models use the distribution of words in a large text corpus to induce vector-space representations of the meaning of words. This approach to word meaning is called distributional semantics. The distributional semantic hypothesis (Harris, 1954) says that the meaning of a word is reflected in the distribution of text contexts which it appears in. Many methods (e.g. (Deerwester et al., 1990; Schutze, 1993; Mikolov et al., 2013a) and this paper) have been proposed for inducing ¨ vector representations of the meaning of words (word embeddings) from the distribution of wordcontext pairs found in large corpora of text. ",
85
+ "bbox": [
86
+ 174,
87
+ 708,
88
+ 825,
89
+ 805
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In the framework of Henderson & Popa (2016), each dimension of the vector-space represents something that might be known, and continuous vectors represent probabilities of these features being known or unknown. Henderson & Popa (2016) illustrate their framework by proposing a reinterpretation of existing Word2Vec (Mikolov et al., 2013a) word embeddings which maps them into entailment vectors, which in turn successfully predict entailment between words (hyponymy). To motivate this reinterpretation of existing word embeddings, they propose a model of distributional semantics and argue that the Word2Vec training objective approximates the training objective of this distributional semantic model given the mapping. ",
96
+ "bbox": [
97
+ 174,
98
+ 811,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we implement this distributional semantic model and train new word embeddings using the exact objective. Based on our analysis of this model, we propose that this implementation can be done in several ways, including the one which motivates Henderson & Popa (2016)’s reinterpretation of Word2Vec embeddings. In each case, training results in entailment vector embeddings, which directly encode what is known and unknown given a word, and thus do not require any reinterpretation to predict hyponymy. ",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 823,
111
+ 188
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "To model the semantic relationship between a word and its context, the distributional semantic model postulates a latent pseudo-phrase vector for the unified semantics of the word and its neighbouring context word. This latent vector must entail the features in both words’ vectors and must be consistent with a prior over semantic vectors, thereby modelling the redundancy and consistency between the semantics of two neighbouring words. ",
118
+ "bbox": [
119
+ 174,
120
+ 194,
121
+ 825,
122
+ 263
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Based on our analysis of this entailment-based distributional semantic model, we hypothesise that the word embeddings suggested by Henderson & Popa (2016) are in fact not the best way to extract information about the semantics of a word from this model. They propose using a vector which represents the evidence about known features given the word (henceforth called the likelihood vectors). We propose to instead use a vector which represents the posterior distribution of known features for a phrase containing only the word. This posterior vector includes both the evidence from the word and its indirect consequences via the constraints imposed by the prior. Our efficient implementation of this model allows us to test this hypothesis by outputting either the likelihood vectors or the posterior vectors as word embeddings. ",
129
+ "bbox": [
130
+ 174,
131
+ 270,
132
+ 825,
133
+ 396
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "To evaluate these word embeddings, we predict hyponymy between words, in both an unsupervised and semi-supervised setting. Given the word embeddings for two words, we measure whether they are a hypernym-hyponym pair using an entailment operator from (Henderson & Popa, 2016) applied to the two embeddings. We find that using the likelihood vectors performs as well as reinterpreting Word2Vec embeddings, confirming the claims of equivalence by Henderson & Popa (2016). But we also find that using the posterior vectors performs significantly better, confirming our hypothesis that posterior vectors are better, and achieving the best published results on this benchmark dataset. In addition to these unsupervised experiments, we evaluate in a semi-supervised setting and find a similar pattern of results, again achieving state-of-the-art performance. ",
140
+ "bbox": [
141
+ 174,
142
+ 404,
143
+ 825,
144
+ 529
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "In the rest of this paper, section 2 presents the formal framework we use for modelling entailment in a vector space, the distributional semantic models, and how these are used to predict hyponymy. Section 3 discusses additional related work, and then section 4 presents the empirical evaluation on hyponymy detection, in both unsupervised and semi-supervised experiments. Some additional analysis of the induced vectors is presented in section 4.4. ",
151
+ "bbox": [
152
+ 174,
153
+ 535,
154
+ 823,
155
+ 604
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 DISTRIBUTIONAL SEMANTIC ENTAILMENT ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 174,
165
+ 626,
166
+ 563,
167
+ 642
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Distributional semantics uses the distribution of contexts in which a word occurs to induce the semantics of the word (Harris, 1954; Deerwester et al., 1990; Schutze, 1993). The Word2Vec model ¨ (Mikolov et al., 2013a) introduced a set of refinements and computational optimisations of this idea which allowed the learning of vector-space embeddings for words from very large corpora with very good semantic generalisation. Henderson & Popa (2016) motivate their reinterpretation the Word2Vec Skipgram (Mikolov et al., 2013a) distributional semantic model with an entailment-based model of the semantic relationship between a word and its context words. We start by explaining our interpretation of the distributional semantic model proposed by Henderson & Popa (2016), and then propose our alternative models. ",
174
+ "bbox": [
175
+ 174,
176
+ 656,
177
+ 825,
178
+ 782
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Henderson & Popa (2016) postulate a latent vector $y$ which is the consistent unification of the features of the middle word $x _ { e } ^ { \\prime }$ and the neighbouring context word $x _ { e }$ , illustrated on the left in figure 1.1 We can think of the latent vector $y$ as representing the semantics of a pseudo-phrase consisting of the two words. The unification requirement is defined as requiring that $y$ entail both words, written $y \\Rightarrow x _ { e } ^ { \\prime }$ and ${ y } \\Rightarrow x _ { e }$ . The consistency requirement is defined as $y$ satisfying a prior $\\theta ( y )$ , which embodies all the the constraints and correlations between features in the vector. This approach models the relationship between the semantics of a word and its context as being redundant and consistent. ",
185
+ "bbox": [
186
+ 174,
187
+ 789,
188
+ 825,
189
+ 887
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/2e409103eb26df57b85087dde2856086923e32a2453e6248891724d852ffcf69.jpg",
196
+ "image_caption": [
197
+ "Figure 1: The distributional semantic model of a word and its context (left), and its approximation in the word2hyp models (right). "
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 212,
202
+ 98,
203
+ 785,
204
+ 176
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "If $x _ { e } ^ { \\prime }$ and $x _ { e }$ share features, then it will be easier for $y$ to satisfy both $y \\Rightarrow x _ { e } ^ { \\prime }$ and $y { \\Rightarrow } x _ { e }$ . If the features of $x _ { e } ^ { \\prime }$ and $x _ { e }$ are consistent, then it will be easier for $y$ to satisfy the prior $\\theta ( y )$ . ",
211
+ "bbox": [
212
+ 173,
213
+ 246,
214
+ 823,
215
+ 275
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "2.1 THE REINTERPRETATION OF WORD2VEC ",
222
+ "text_level": 1,
223
+ "bbox": [
224
+ 174,
225
+ 291,
226
+ 501,
227
+ 306
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Henderson & Popa (2016) formalise the above model using their entailment-vectors framework. This framework models distributions over discrete vectors where a 1 in position $i$ means feature $i$ is known and a 0 means it is unknown. Entailment $y \\Rightarrow x$ requires that the 1s in $x$ are a subset of the 1s in $y$ , so $1 \\Rightarrow 1$ , $0 { \\Rightarrow } 0$ and $1 { \\Rightarrow } 0$ , but $0 { \\neq } 1$ . Distributions over these discrete vectors are represented as continuous vectors of log-odds $X$ , so $P ( x _ { i } { = } 1 ) = \\sigma ( X _ { i } )$ , where $\\sigma$ is the logistic sigmoid. The probability of entailment $y \\Rightarrow x$ between two such “entailment vectors” $Y , X$ can be measured using the operator $\\bigcirc$ :2 ",
234
+ "bbox": [
235
+ 173,
236
+ 316,
237
+ 825,
238
+ 415
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "equation",
244
+ "img_path": "images/151e772ed0b638101e09c180bbd77ab7d3126104dbf7fd5b355080fd26990374.jpg",
245
+ "text": "$$\n\\begin{array} { c } { { \\log P ( y { \\Rightarrow } x \\mid Y , X ) \\approx } } \\\\ { { Y { \\otimes } X \\equiv \\sigma ( - Y ) \\cdot \\log \\sigma ( - X ) } } \\end{array}\n$$",
246
+ "text_format": "latex",
247
+ "bbox": [
248
+ 382,
249
+ 419,
250
+ 614,
251
+ 457
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "For each feature $i$ in the vector, it calculates the expectation according to $P ( y _ { i } )$ that, either $y _ { i } { = } 1$ and thus the log-probability is zero, or $y _ { i } { = } 0$ and thus the log-probability is $\\log P ( x _ { i } { = } 0 )$ (noting that $\\sigma ( - X _ { i } ) = ( 1 - \\sigma ( X _ { i } ) ) \\approx P ( x _ { i } { = } 0 ) )$ . ",
258
+ "bbox": [
259
+ 173,
260
+ 459,
261
+ 825,
262
+ 502
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "Henderson & Popa (2016) formalise the model on the left in figure 1 by first inferring the optimal latent vector distribution $Y$ (equation (3)), and then scoring how well the entailment and prior constraints have been satisfied (equation (2)). ",
269
+ "bbox": [
270
+ 174,
271
+ 508,
272
+ 825,
273
+ 551
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "equation",
279
+ "img_path": "images/f7c2e2fff81b39c7d8b0962f10c5753857e5ecfef8d818b8d31eea83a591044e.jpg",
280
+ "text": "$$\n\\begin{array} { r l } & { \\underset { Y } { \\operatorname* { m a x } } \\big ( E _ { Y , X _ { e } ^ { \\prime } , X _ { e } } \\log P ( y \\Rightarrow x _ { e } ^ { \\prime } , y \\Rightarrow x _ { e } , y ) \\big ) } \\\\ & { \\quad \\approx Y \\otimes X _ { e } ^ { \\prime } + Y \\otimes X _ { e } + ( - \\sigma ( - Y ) ) \\cdot \\theta ( Y ) } \\end{array}\n$$",
281
+ "text_format": "latex",
282
+ "bbox": [
283
+ 336,
284
+ 554,
285
+ 630,
286
+ 598
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "where ",
293
+ "bbox": [
294
+ 343,
295
+ 599,
296
+ 387,
297
+ 613
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "equation",
303
+ "img_path": "images/0528f55410317d73787b259d5b4bf3a5430052d49a664d09452a23cebabd1242.jpg",
304
+ "text": "$$\nY = - \\log \\sigma ( - X _ { e } ^ { \\prime } ) + - \\log \\sigma ( - X _ { e } ) + \\theta ( Y )\n$$",
305
+ "text_format": "latex",
306
+ "bbox": [
307
+ 356,
308
+ 617,
309
+ 660,
310
+ 635
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "where $E _ { Y , X _ { e } ^ { \\prime } , X _ { e } }$ is the expectation over the distribution defined by the log-odds vectors $Y , X _ { e } ^ { \\prime } , X _ { e }$ , and log and $\\sigma$ are applied componentwise. The term $\\theta ( Y )$ is used to indicate the net effect of the prior on the vector $Y$ . Note that, in the formula (3) for inferring $Y$ , the contribution $- \\log \\sigma ( - X )$ of each word vector is also a component of the definition of $Y \\odot X$ from equation (1). In this way, the score for measuring how well the entailment has been satisfied is using the same approximation as used in the inference to satisfy the entailment constraint. This function $- \\log \\sigma ( - X )$ is a nonnegative transform of $X$ , as shown in figure 2. Intuitively, for an entailed vector $x$ , we only care about the probability that $x _ { i } { = } 1$ (positive log-odds $X _ { i }$ ), because that constrains the entailing vector $y$ to have $y _ { i } { = } 1$ (adding to the log-odds $Y _ { i }$ ). ",
317
+ "bbox": [
318
+ 173,
319
+ 638,
320
+ 825,
321
+ 765
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "The above model cannot be mapped directly to the Word2Vec model because Word2Vec has no way to model the prior $\\theta ( Y )$ . On the other hand, the Word2Vec model postulates two vectors for every word, compared to one in the above model. Henderson & Popa (2016) propose an approximation to the above model which incorporates the prior into one of the two vectors, resulting in each word having one vector $X _ { e }$ as above plus another vector $X _ { p }$ with the prior incorporated. ",
328
+ "bbox": [
329
+ 173,
330
+ 770,
331
+ 825,
332
+ 840
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/784353254b6371e089aac85c5b741f6f9b07b5dea301ef82f9e904c1d85dc275.jpg",
339
+ "text": "$$\nX _ { p } \\approx - \\log \\sigma ( - X _ { e } ) + \\theta ( Y )\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 401,
343
+ 845,
344
+ 596,
345
+ 863
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "image",
351
+ "img_path": "images/7431319ff0ba44d4033a6901d56a88b7a22ee12a3ce07fa20460fac547eb6697.jpg",
352
+ "image_caption": [
353
+ "Figure 2: The function $- \\log \\sigma ( - X )$ used in inference and the $\\bigcirc$ operator, versus $X$ "
354
+ ],
355
+ "image_footnote": [],
356
+ "bbox": [
357
+ 362,
358
+ 98,
359
+ 632,
360
+ 204
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Both vectors $X _ { e }$ and $X _ { p }$ are parameters of the model, which need to be learned. Thus, there is no need to explicitly model the prior, thereby avoiding the need to choose a particular form for the prior $\\theta$ , which in general may be very complex. ",
367
+ "bbox": [
368
+ 174,
369
+ 253,
370
+ 828,
371
+ 296
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "This gives us the following score for how well the constraints of this model can be satisfied. ",
378
+ "bbox": [
379
+ 173,
380
+ 303,
381
+ 772,
382
+ 318
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "equation",
388
+ "img_path": "images/6adff4f3c08edbf5c68709e575913db56fc241d1f384d06773e68d8d63556dc3.jpg",
389
+ "text": "$$\n\\begin{array} { r l } & { \\underset { Y } { \\operatorname* { m a x } } \\big ( E _ { Y , X _ { e } ^ { \\prime } , X _ { p } } \\log P ( y \\Rightarrow x _ { e } ^ { \\prime } , y \\Rightarrow x _ { e } , y ) \\big ) } \\\\ & { \\quad \\approx Y \\otimes X _ { e } ^ { \\prime } + ( - \\sigma ( - Y ) ) \\cdot X _ { p } } \\end{array}\n$$",
390
+ "text_format": "latex",
391
+ "bbox": [
392
+ 361,
393
+ 323,
394
+ 635,
395
+ 367
396
+ ],
397
+ "page_idx": 3
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "where ",
402
+ "bbox": [
403
+ 369,
404
+ 368,
405
+ 411,
406
+ 381
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "equation",
412
+ "img_path": "images/dcf16fea28f0250b3a26220f6fd0c866f84c7fd5c8878185f5f4ec8e98592b56.jpg",
413
+ "text": "$$\nY = - \\log \\sigma ( - X _ { e } ^ { \\prime } ) + X _ { p }\n$$",
414
+ "text_format": "latex",
415
+ "bbox": [
416
+ 392,
417
+ 385,
418
+ 566,
419
+ 404
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "In (Henderson & Popa, 2016), score (5) is only used to provide a reinterpretation of Word2Vec word embeddings. They show that a transformation of the vectors output by Word2Vec (“W2V u.d.\r>” below) can be seen as an approximation to the likelihood vector $X _ { e }$ . In Section 4, we empirically test this hypothesis by directly training $X _ { e }$ (“W2H likelihood” below) and comparing the results to those with reinterpreted Word2Vec vectors. ",
426
+ "bbox": [
427
+ 173,
428
+ 416,
429
+ 825,
430
+ 487
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "2.2 NEW DISTRIBUTIONAL SEMANTIC MODELS ",
437
+ "text_level": 1,
438
+ "bbox": [
439
+ 176,
440
+ 503,
441
+ 519,
442
+ 518
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "In this paper, we implement distributional semantic models based on score (5) and use them to train new word embeddings. We call these models the Word2Hyp models, because they are based on Word2Vec but are designed to predict hyponymy. ",
449
+ "bbox": [
450
+ 176,
451
+ 529,
452
+ 823,
453
+ 571
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "To motivate our models, we provide a better understanding of the model behind score (5). In particular, we note that although we want $X _ { p }$ to approximate the effects $\\theta ( Y )$ of the prior as in equation 4, in fact $X _ { p }$ is only dependent on one of the two words, and thus can only incorporate the portion of $\\theta ( Y )$ which arises from that one word. Thus, a better understanding of $X _ { p }$ is provided by equation (7). ",
460
+ "bbox": [
461
+ 173,
462
+ 578,
463
+ 825,
464
+ 648
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "equation",
470
+ "img_path": "images/b1f5f6784d1286d53b517437e42d63780be0c8b21a1a3a46d2013d15c853ede0.jpg",
471
+ "text": "$$\nX _ { p } \\approx - \\log \\sigma ( - X _ { e } ) + \\theta ( X _ { p } )\n$$",
472
+ "text_format": "latex",
473
+ "bbox": [
474
+ 397,
475
+ 655,
476
+ 601,
477
+ 672
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "In this framework, equation (7) is exactly the same formula as would be used to infer the vector for a single-word phrase (analogously to equation (3)). ",
484
+ "bbox": [
485
+ 174,
486
+ 679,
487
+ 823,
488
+ 708
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "This interpretation of the approximate model in equation 5 is given on the right side of figure 1. As shown, $X _ { p }$ is interpreted as the posterior vector for a single-word phrase, which incorporates the likelihood and the prior for that word. In contrast, $X _ { e } ^ { \\prime }$ is just the likelihood, which provides the evidence about the features of $Y$ from the other word, without including the indirect consequences of this information. This model, as argued above, approximates the model on the left side in Figure 1. But the grey part of the figure does not need to be explicitly modelled because $X _ { p }$ is trained directly. ",
495
+ "bbox": [
496
+ 173,
497
+ 713,
498
+ 825,
499
+ 799
500
+ ],
501
+ "page_idx": 3
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "This interpretation suggests that the posterior vector $X _ { p }$ should be a better reflection of the semantics of the word than the likelihood vector $X _ { e }$ , since it includes both the direct evidence for some features and their indirect consequences for other features. We test this hypothesis empirically in Section 4. ",
506
+ "bbox": [
507
+ 176,
508
+ 804,
509
+ 823,
510
+ 848
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "To implement our distributional semantic models, we define new versions of the Word2Vec code (Mikolov et al., 2013a;b). The Word2Vec code trains two vectors for each word, where negative sampling is applied to one of these vectors, and the other is the output vector. This applies to both the Skipgram and CBOW versions of training. Both versions also use a dot product between vectors to try to predict whether the example is a positive or negative sample. We simply replace this dot product with score (5) directly in the Word2Vec code, leaving the rest of the algorithm unchanged. We make this change in one of two ways, one where the output vector corresponds to the likelihood vector $X _ { e }$ , and one where the output vector corresponds to the posterior vector $X _ { p }$ . We will refer to the model where $X _ { p }$ is output as the “posterior” model, and the model where $X _ { e }$ is output as the “likelihood” model. Both these methods can be applied to both the Skipgram and CBOW models, giving us four different models to evaluate. ",
517
+ "bbox": [
518
+ 174,
519
+ 853,
520
+ 825,
521
+ 924
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "",
528
+ "bbox": [
529
+ 174,
530
+ 103,
531
+ 825,
532
+ 186
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "2.3 MODELLING HYPONYMY ",
539
+ "text_level": 1,
540
+ "bbox": [
541
+ 176,
542
+ 205,
543
+ 390,
544
+ 219
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "The proposed distributional semantic models output a word embedding vector for every word in the vocabulary, which are directly interpretable as entailment vectors in the entailment-vectors framework. Thus, to predict lexical entailment between two words, we can simply apply the $\\bigcirc$ operator to their vectors, to get an approximation of the log-probability of entailment. ",
551
+ "bbox": [
552
+ 176,
553
+ 231,
554
+ 823,
555
+ 287
556
+ ],
557
+ "page_idx": 4
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "We evaluate these entailment predictions on hyponymy detection. Hyponym-hypernym pairs should have associated embeddings $Y , X$ which have a higher entailment scores $Y \\odot X$ than other pairs. We rank the word pairs by the entailment scores for their embeddings, and evaluate this ranked list against the gold hyponymy annotations. We evaluate on hyponymy detection because it reflects a direct form of lexical entailment; the semantic features of a hypernym (e.g. “animal”) should be included in the semantic features of the hyponym (e.g. “cat”). Other forms of lexical entailment would benefit from some kind of reasoning or world knowledge, which we leave to future work on compositional models. ",
562
+ "bbox": [
563
+ 174,
564
+ 295,
565
+ 825,
566
+ 405
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "3 RELATED WORK ",
573
+ "text_level": 1,
574
+ "bbox": [
575
+ 176,
576
+ 426,
577
+ 344,
578
+ 443
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "In this paper we propose a distributional semantic model which is based on entailment. Most of the work on modelling entailment with vector space embeddings has simply used distributional semantic vectors within a model of entailment, and is therefore not directly relevant here. See (Shwartz et al., 2017) for a comprehensive review of such measures. Shwartz et al. (2017) evaluate these measures as unsupervised models of hyponymy detection and run experiments on a number of hyponymy datasets. We report their best comparable result in Table 1. ",
585
+ "bbox": [
586
+ 174,
587
+ 458,
588
+ 825,
589
+ 542
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Vilnis & McCallum (2015) propose an unsupervised model of entailment in a vector space, and evaluate it on hyponymy detection. Instead of representing words as a point in a vector space, they represent words as a Gaussian distribution over points in a vector space. The variance of this distribution in a given dimension indicates the extent to which the dimension’s feature is unknown, so they use KL-divergence to detect hyponymy relations. Although this model has a nice theoretical motivation, the word representations are more complex and training appears to be more computationally expensive than the method proposed here. We empirically compare our models to their hyponymy detection accuracy and find equivalent results. ",
596
+ "bbox": [
597
+ 174,
598
+ 549,
599
+ 825,
600
+ 661
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "The semi-supervised model of Kruszewski et al. (2015) learns a discrete Boolean vector space for predicting hyponymy. But they do not propose any unsupervised method for learning these vectors. ",
607
+ "bbox": [
608
+ 174,
609
+ 667,
610
+ 823,
611
+ 696
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "Weeds et al. (2014) report hyponymy detection results for a number of unsupervised and semisupervised models. They propose a semi-supervised evaluation methodology where the words in the training and test sets are disjoint, so that the supervised component must learn about the unsupervised vector space and not about the individual words. Following Henderson & Popa (2016), we replicate their experimental setup in our evaluations, for both unsupervised and semi-supervised models, and compare to the best results among the models evaluated by Weeds et al. (2014), Shwartz et al. (2017) and Henderson & Popa (2016). ",
618
+ "bbox": [
619
+ 174,
620
+ 703,
621
+ 825,
622
+ 801
623
+ ],
624
+ "page_idx": 4
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "4 EVALUATION OF WORD EMBEDDINGS ",
629
+ "text_level": 1,
630
+ "bbox": [
631
+ 176,
632
+ 821,
633
+ 521,
634
+ 838
635
+ ],
636
+ "page_idx": 4
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "We evaluate on hyponymy detection in both a fully unsupervised setup and a semi-supervised setup. In the semi-supervised setup, we use labelled hyponymy data to train a linear mapping from the unsupervised vector space to a new vector space with the objective of correctly predicting hyponymy relations in the new vector space. This prediction is done with the same (or equivalent) entailment operator as for the unsupervised experiments (called “map $\\bigcirc$ ” in Table 2). ",
641
+ "bbox": [
642
+ 174,
643
+ 853,
644
+ 823,
645
+ 924
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "table",
651
+ "img_path": "images/2555eca0751c91ce75834a2a0d38174f2a6b7f2427f4c380316ef513e9b8cb00.jpg",
652
+ "table_caption": [
653
+ "Table 1: Hyponymy detection accuracies $( 5 0 \\% A c c )$ and average precision $( A \\nu e P r e c )$ , in the unsupervised experiments. For the accuracies, \\* marks a significant improvement over the higher rows. "
654
+ ],
655
+ "table_footnote": [],
656
+ "table_body": "<table><tr><td>embeddings</td><td>operator</td><td>50% Acc AvePrec</td></tr><tr><td>Weeds et.al., 2014 Shwartz et.al., 2017</td><td></td><td>58% 1 44.1% 1</td></tr><tr><td>W2V GoogleNews</td><td>u.d.</td><td>64.5%* 1</td></tr><tr><td>W2V CBOW W2H Skip likelihood</td><td>u.d. ② ③</td><td>53.2% 55.2% 59.5% 57.8%</td></tr><tr><td>W2H CBOW] likelihood</td><td>③</td><td>61.8% 66.4%</td></tr><tr><td>W2V Skip</td><td>u.d.</td><td>62.1% 67.6%</td></tr><tr><td>W2H CBOW</td><td>posterior ③</td><td>68.1%* 70.8%</td></tr><tr><td>W2H [Skip</td><td>posterior 国</td><td>69.6% 68.9%</td></tr></table>",
657
+ "bbox": [
658
+ 328,
659
+ 99,
660
+ 668,
661
+ 247
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "We replicate the experimental setup of Weeds et al. (2014), using their selection of hyponymhypernym pairs from the BLESS dataset (Baroni & Lenci, 2011), which consists of noun-noun pairs, including $50 \\%$ positive hyponymy pairs plus $50 \\%$ negative pairs consisting of some other hyponymy pairs reversed, some pairs in other semantic relations, and some random pairs. As in (Weeds et al., 2014), our semi-supervised experiments use ten-fold cross validation, where each fold has items removed from the training set if they contain a word that also occurs in the testing set. ",
668
+ "bbox": [
669
+ 174,
670
+ 321,
671
+ 825,
672
+ 406
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "The word embedding vectors which we train have 200 dimensions and were trained using our Word2Hyp modification of the Word2Vec code (with default settings), trained on a corpus of half a billion words of Wikipedia. We also replicate the approach of Henderson & Popa (2016) by training Word2Vec embeddings on this data. ",
679
+ "bbox": [
680
+ 176,
681
+ 412,
682
+ 823,
683
+ 469
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "To quantify performance on hyponymy detection, for each model we rank the list of pairs according to the score given by the model, and report two measures of performance for this ranked lists. The “ $50 \\%$ Acc” measure treats the first half of the list as labelled positive and the second half as labelled negative. This is motivated by the fact that we know a priori that the proportion of positive examples has been artificially set to (approximately) $50 \\%$ . Average precision is a measure of the accuracy for ranked lists, used in Information Retrieval and advocated as a measure of hyponymy detection by Vilnis & McCallum (2015). For each positive example, precision is measured at the threshold just below that example, and these precision scores are averaged over positive examples. For cross validation, we average over the union of positive examples in all the test sets. Both these measures are reported (when available) in Tables 1 and 2. ",
690
+ "bbox": [
691
+ 173,
692
+ 477,
693
+ 825,
694
+ 614
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "4.1 UNSUPERVISED HYPONYMY DETECTION ",
701
+ "text_level": 1,
702
+ "bbox": [
703
+ 174,
704
+ 638,
705
+ 498,
706
+ 652
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "The first set of experiments evaluate the different embeddings in their unsupervised models of hyponymy detection. Results are shown in Table 1. Our principal point of comparison is the best results from (Henderson & Popa, 2016) (called “W2V GoogleNews” in Table 1). They use the preexisting publicly available GoogleNews word embeddings, which were trained with the Word2Vec software on 100 billion words of the GoogleNews dataset, and have 300 dimensions. To provide a more direct comparison, we replicate the model of Henderson & Popa (2016) but using the same embedding training setup as for our Word2Hyp model (“W2V Skip”). Both cases use their proposed reinterpretation of these vectors for predicting entailment $( ^ { 6 } u . d . \\odot ^ { 7 } )$ . We also report the best results from Weeds et al. (2014) and the best comparable results from (Shwartz et al., 2017). For our proposed Word2Hyp distributional semantic models (“W2H”), we report results for the four combinations of using the CBOW or Skipgram (“Skip”) model to train the likelihood or posterior vectors. ",
713
+ "bbox": [
714
+ 174,
715
+ 666,
716
+ 825,
717
+ 833
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "The two Word2Hyp models with likelihood vectors perform slightly better than the best unsupervised model of Weeds et al. (2014), but similarly. The reinterpretation of Word2Vec vectors (“W2V GoogleNews $u . d . \\odot ^ { \\ ' } )$ ) performs significantly better, but when the same method is applied to the smaller Wikipedia corpus (“W2V Skip $u . d . \\odot ^ { \\ ' } ,$ ), this difference all but disappears. This confirms the hypothesis of Henderson & Popa (2016) that the reinterpretation of Word2Vec vectors and the likelihood vectors from Word2Hyp are approximately equivalent. ",
724
+ "bbox": [
725
+ 174,
726
+ 840,
727
+ 825,
728
+ 924
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "table",
734
+ "img_path": "images/8bc30d327f101808f952c562934f73f7a80dcc4f52606630d9c6d96a70ceb4ef.jpg",
735
+ "table_caption": [
736
+ "Table 2: Hyponymy detection accuracies $50 \\%$ Acc) and average precision (Ave Prec), in the semisupervised experiments. "
737
+ ],
738
+ "table_footnote": [],
739
+ "table_body": "<table><tr><td rowspan=1 colspan=2>embeddings operator</td><td rowspan=1 colspan=1>50% AccAvePrec</td></tr><tr><td rowspan=1 colspan=2>Weeds et.al., 2014</td><td rowspan=1 colspan=1>75% 1</td></tr><tr><td rowspan=1 colspan=2>W2VGoogleNews map①</td><td rowspan=1 colspan=1>80.1% 1</td></tr><tr><td rowspan=2 colspan=2>W2VSkip map③W2H【CBOW】/ likelihoodmap②W2VCBOW map②W2HSkip likelihoodmap①W2HSkip posteriormap③W2HCBOW posteriormap③</td><td rowspan=2 colspan=1>81.9% 88.3%83.3% 90.3%84.6% 91.5%84.8% 90.9%85.5% 91.3%86.0% 92.8%</td></tr><tr><td rowspan=1 colspan=1>map②map①</td></tr></table>",
740
+ "bbox": [
741
+ 328,
742
+ 101,
743
+ 668,
744
+ 233
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "However, even with this smaller corpus, using the proposed posterior vectors from the Word2Hyp model are significantly more accurate than the reinterpretation of Word2Vec vectors. This confirms the hypothesis that the posterior vectors from the Word2Hyp model are a better model of the semantics of a word than the likelihood vectors suggested by Henderson & Popa (2016). ",
751
+ "bbox": [
752
+ 174,
753
+ 305,
754
+ 825,
755
+ 361
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Using the CBOW model or the Skipgram model makes only a small difference. The average precision score shows the same pattern as the accuracy. ",
762
+ "bbox": [
763
+ 173,
764
+ 368,
765
+ 823,
766
+ 397
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "To allow a direct comparison to the model of Vilnis & McCallum (2015), we also evaluated the unsupervised models on the hyponymy data from (Baroni et al., 2012), which is not as carefully designed to evaluate hyponymy as the (Weeds et al., 2014) data. Both the likelihood and posterior vectors of the Word2Hyp CBOW model achieved average precision $( 8 1 \\% , 8 0 \\% )$ which is not significantly different from the best model of Vilnis & McCallum (2015) $( 8 0 \\% )$ . ",
773
+ "bbox": [
774
+ 174,
775
+ 404,
776
+ 825,
777
+ 473
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "4.2 SEMI-SUPERVISED HYPONYMY DETECTION ",
784
+ "text_level": 1,
785
+ "bbox": [
786
+ 178,
787
+ 492,
788
+ 516,
789
+ 506
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "The semi-supervised experiments train a linear mapping from each unsupervised vector space to a new vector space, where the entailment operator $\\bigcirc$ is used to predict hyponymy (“map $\\odot ^ { \\prime \\prime }$ ). ",
796
+ "bbox": [
797
+ 176,
798
+ 518,
799
+ 823,
800
+ 547
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "The semi-supervised results (shown in Table 2)3 no longer show an advantage of GoogleNews vectors over Wikipedia vectors for the reinterpretation of Word2Vec vectors. And the advantage of posterior vectors over the likelihood vectors is less pronounced. However, the two posterior vectors still perform much better than all the previously proposed models, achieving $86 \\%$ accuracy and nearly $93 \\%$ average precision. These semi-supervised results confirm the results from the unsupervised experiments, that Word2Vec embeddings and Word2Hyp likelihood embeddings perform similarly, but that using the posterior vectors of the Word2Hyp model perform better. ",
807
+ "bbox": [
808
+ 174,
809
+ 553,
810
+ 825,
811
+ 651
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "4.3 TRAINING TIMES ",
818
+ "text_level": 1,
819
+ "bbox": [
820
+ 174,
821
+ 670,
822
+ 334,
823
+ 684
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Because the similarity measure in equation 5 is more complex than a simple dot product, training a new distributional semantic model is slower than with the original Word2Vec code. In our experiments, training took about 8 times longer for the CBOW model and about 15 times longer for the Skipgram model. This meant that Word2Hyp CBOW trained about 8 times faster than Word2Hyp Skipgram. As in the Word2Vec code, we used a quadrature approximation (i.e. a look-up table) to speed up the computation of the sigmoid function, and we added the same technique for computing the log-sigmoid function. ",
830
+ "bbox": [
831
+ 174,
832
+ 696,
833
+ 825,
834
+ 795
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "4.4 DISCUSSION ",
841
+ "text_level": 1,
842
+ "bbox": [
843
+ 176,
844
+ 814,
845
+ 302,
846
+ 828
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "The relative success of our distributional semantic models at unsupervised hyponymy detection indicates that they are capturing some aspects of lexical entailment. But the gap between the unsupervised and semi-supervised results indicates that other features are also being captured. This is not surprising, since many other factors influence the co-occurrence statistics of words. ",
853
+ "bbox": [
854
+ 176,
855
+ 840,
856
+ 823,
857
+ 896
858
+ ],
859
+ "page_idx": 6
860
+ },
861
+ {
862
+ "type": "table",
863
+ "img_path": "images/ebb097a5d716bb6a6612d79a5f548b61e7e187a599106981ddb46c2e088071da.jpg",
864
+ "table_caption": [
865
+ "Table 3: Ranking of the abstractness $( \\mathbf { 0 } \\otimes X )$ of frequent words from the hyponymy dataset, using Word2Hyp-Skipgram-posterior embeddings. "
866
+ ],
867
+ "table_footnote": [],
868
+ "table_body": "<table><tr><td colspan=\"2\">most abstract</td><td colspan=\"2\">least abstract</td></tr><tr><td>something</td><td>necessity</td><td></td><td>fork</td></tr><tr><td>anything</td><td>sense</td><td>hockey</td><td>&#x27;housing</td></tr><tr><td>end</td><td>back</td><td>republican</td><td>elm</td></tr><tr><td>inside</td><td>saw</td><td>hull</td><td>primate</td></tr><tr><td>good</td><td>:</td><td>cricket</td><td>fur</td></tr></table>",
869
+ "bbox": [
870
+ 334,
871
+ 101,
872
+ 661,
873
+ 181
874
+ ],
875
+ "page_idx": 7
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "To get a better understanding of these word embeddings, we ranked them by degree of abstractness. Table 3 shows the most abstract and least abstract frequent words that occur in the hyponymy data. To measure abstractness, we used our best unsupervised embeddings and measured how well they are entailed by the zero log-odds vector, which represents a uniform half probability of knowing each feature. For a vector to be entailed by the zero vector, it must be that its features are mostly probably unknown. The less you know given a word, the more abstract it is. ",
880
+ "bbox": [
881
+ 174,
882
+ 251,
883
+ 825,
884
+ 334
885
+ ],
886
+ "page_idx": 7
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "An initial ranking found that six of the top ten abstract words had frequency less than 300 in the Wikipedia data, but none of the ten least abstract terms were infrequent. This indicates a problem with the current method, since infrequent words are generally very specific (as was the case for these low-frequency words, submissiveness, implementer, overdraft, ruminant, warplane, and londoner). Although this is an interesting characteristic of the method, the terms themselves seem to be noise, so we rank only terms with frequency greater than 300. ",
891
+ "bbox": [
892
+ 174,
893
+ 342,
894
+ 825,
895
+ 424
896
+ ],
897
+ "page_idx": 7
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "The most abstract terms in table 3 include some clearly semantically abstract terms, in particular something and anything are ranked highest. Others may be affected by lexical ambiguity, since the model does not disambiguate words by part-of-speech (such as end, good, sense, back, and saw). The least abstract terms are mostly very semantically specific, but it is indicative that this list includes primate, which is an abstract term in Zoology but presumably occurs in very specific contexts in Wikipedia. ",
902
+ "bbox": [
903
+ 174,
904
+ 431,
905
+ 825,
906
+ 515
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "5 CONCLUSIONS ",
913
+ "text_level": 1,
914
+ "bbox": [
915
+ 176,
916
+ 536,
917
+ 328,
918
+ 551
919
+ ],
920
+ "page_idx": 7
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "In this paper, we propose unsupervised methods for efficiently training word embeddings which capture semantic entailment. This work builds on the work of Henderson & Popa (2016), who propose the entailment-vectors framework for modelling entailment in a vector-space, and a distributional semantic model for reinterpreting Word2Vec word embeddings. Our contribution differs from theirs in that we provide a better understanding of their distributional semantic model, we choose different vectors in the model to use as word embeddings, and we train new word embeddings using our modification of the Word2Vec code. Empirical results on unsupervised and semi-supervised hyponymy detection confirm that the model’s likelihood vectors, which Henderson & Popa (2016) suggest to use, do indeed perform equivalently to their reinterpretation of Word2Vec vectors. But these experiments also show that the model’s posterior vectors, which we propose to use, perform significantly better, outperforming all previous results on this benchmark dataset. ",
925
+ "bbox": [
926
+ 174,
927
+ 566,
928
+ 825,
929
+ 719
930
+ ],
931
+ "page_idx": 7
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "The success of these unsupervised models demonstrates that the proposed distributional semantic models are effective at extracting information about lexical entailment from the redundancy and consistency of words with their contexts in large text corpora. The use of the entailment-vectors framework to efficiently model entailment relations has been crucial to this success. This result suggests future work using the entailment-vectors framework in unsupervised models that leverage other distributional evidence about semantics, particularly in models of compositional semantics. The merger of word embeddings with compositional semantics to get representation learning for larger units of text is currently an important challenge in the semantics of natural language, and the work presented in this paper makes a significant contribution towards solving it. ",
936
+ "bbox": [
937
+ 174,
938
+ 727,
939
+ 825,
940
+ 852
941
+ ],
942
+ "page_idx": 7
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "REFERENCES ",
947
+ "text_level": 1,
948
+ "bbox": [
949
+ 176,
950
+ 872,
951
+ 285,
952
+ 887
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Marco Baroni and Alessandro Lenci. How we blessed distributional semantic evaluation. In Proceedings of the GEMS 2011 Workshop on GEometrical Models of Natural Language Semantics, ",
959
+ "bbox": [
960
+ 176,
961
+ 895,
962
+ 823,
963
+ 924
964
+ ],
965
+ "page_idx": 7
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "GEMS ’11, pp. 1–10. Association for Computational Linguistics, 2011. ISBN 978-1-937284-16- 9. URL http://dl.acm.org/citation.cfm?id=2140490.2140491. ",
970
+ "bbox": [
971
+ 181,
972
+ 103,
973
+ 823,
974
+ 132
975
+ ],
976
+ "page_idx": 8
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Marco Baroni, Raffaella Bernardi, Ngoc-Quynh Do, and Chung-chieh Shan. Entailment above the word level in distributional semantics. In Proceedings of the 13th Conference of the European Chapter of the Association for Computational Linguistics (EACL), pp. 23–32, Avignon, France, 2012. Association for Computational Linguistics. URL http://www.aclweb.org/ anthology/E12-1004. ",
981
+ "bbox": [
982
+ 174,
983
+ 141,
984
+ 825,
985
+ 212
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Scott Deerwester, Susan T. Dumais, George W. Furnas, Thomas K. Landauer, and Richard Harshman. Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6):391–407, 1990. ",
992
+ "bbox": [
993
+ 174,
994
+ 220,
995
+ 825,
996
+ 262
997
+ ],
998
+ "page_idx": 8
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Zellig S. Harris. Distributional structure. ${ ; i \\zeta W O R D ; / i \\zeta }$ , 10(2-3):146–162, 1954. doi: 10.1080/ 00437956.1954.11659520. URL http://dx.doi.org/10.1080/00437956.1954. 11659520. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 272,
1006
+ 825,
1007
+ 314
1008
+ ],
1009
+ "page_idx": 8
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "James Henderson and Diana Popa. A vector space for distributional semantics for entailment. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2052–2062, Berlin, Germany, August 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/P16-1193. ",
1014
+ "bbox": [
1015
+ 173,
1016
+ 323,
1017
+ 825,
1018
+ 381
1019
+ ],
1020
+ "page_idx": 8
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Germn Kruszewski, Denis Paperno, and Marco Baroni. Deriving boolean structures from distributional vectors. Transactions of the Association for Computational Linguistics, 3:375–388, 2015. ISSN 2307-387X. URL https://tacl2013.cs.columbia.edu/ojs/index.php/ tacl/article/view/616. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 388,
1028
+ 825,
1029
+ 445
1030
+ ],
1031
+ "page_idx": 8
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "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. ",
1036
+ "bbox": [
1037
+ 176,
1038
+ 454,
1039
+ 821,
1040
+ 497
1041
+ ],
1042
+ "page_idx": 8
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In C.J.C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K.Q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 3111–3119. Curran Associates, Inc., 2013b. URL http://papers.nips.cc/paper/ 5021-distributed-representations-of-words-and-phrases-and-their-compositionalit pdf. ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 506,
1050
+ 965,
1051
+ 604
1052
+ ],
1053
+ "page_idx": 8
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Hinrich Schutze. Word space. In ¨ Advances in Neural Information Processing Systems 5, pp. 895– 902. Morgan Kaufmann, 1993. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 613,
1061
+ 820,
1062
+ 642
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Vered Shwartz, Enrico Santus, and Dominik Schlechtweg. Hypernyms under siege: Linguisticallymotivated artillery for hypernymy detection. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pp. 65–75, Valencia, Spain, April 2017. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/E17-1007. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 651,
1072
+ 825,
1073
+ 722
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Luke Vilnis and Andrew McCallum. Word representations via Gaussian embedding. In Proceedings of the International Conference on Learning Representations 2015 (ICLR), 2015. URL http: //arxiv.org/abs/1412.6623. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 729,
1083
+ 821,
1084
+ 772
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Julie Weeds, Daoud Clarke, Jeremy Reffin, David Weir, and Bill Keller. Learning to distinguish hypernyms and co-hyponyms. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pp. 2249–2259, Dublin, Ireland, 2014. Dublin City University and Association for Computational Linguistics. URL http: //www.aclweb.org/anthology/C14-1212. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 781,
1094
+ 825,
1095
+ 852
1096
+ ],
1097
+ "page_idx": 8
1098
+ }
1099
+ ]
parse/train/S1Q79heRW/S1Q79heRW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1Q79heRW/S1Q79heRW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJHRf5nW93/SJHRf5nW93.md ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Subgraph Federated Learning with Missing Neighbor Generation
2
+
3
+ Ke Zhang1,4, Carl Yang1∗, Xiaoxiao $\mathbf { L i } ^ { 2 }$ , Lichao $\mathbf { S u n ^ { 3 } }$ , Siu Ming $\mathbf { Y i u ^ { 4 } }$
4
+
5
+ 1Emory University, 2University of British Columbia, 3Lehigh University, 4University of Hong Kon kzhang2@cs.hku.hk, j.carlyang@emory.edu, xiaoxiao.li@ece.ubc.ca, lis221@lehigh.edu, smyiu@cs.hku.hk
6
+
7
+ # Abstract
8
+
9
+ Graphs have been widely used in data mining and machine learning due to their unique representation of real-world objects and their interactions. As graphs are getting bigger and bigger nowadays, it is common to see their subgraphs separately collected and stored in multiple local systems. Therefore, it is natural to consider the subgraph federated learning setting, where each local system holds a small subgraph that may be biased from the distribution of the whole graph. Hence, the subgraph federated learning aims to collaboratively train a powerful and generalizable graph mining model without directly sharing their graph data. In this work, towards the novel yet realistic setting of subgraph federated learning, we propose two major techniques: (1) FedSage, which trains a GraphSage model based on FedAvg to integrate node features, link structures, and task labels on multiple local subgraphs; (2) FedSage+, which trains a missing neighbor generator along FedSage to deal with missing links across local subgraphs. Empirical results on four real-world graph datasets with synthesized subgraph federated learning settings demonstrate the effectiveness and efficiency of our proposed techniques. At the same time, consistent theoretical implications are made towards their generalization ability on the global graphs.
10
+
11
+ # 1 Introduction
12
+
13
+ Graph mining leverages links among connected nodes in graphs to conduct inference. Recently, graph neural networks (GNNs) have gained applause with impressing performance and generalizability in many graph mining tasks [29, 11, 16, 20, 32]. Similar to machine learning tasks in other domains, attaining a well-performed GNN model requires its training data to not only be sufficient but also follow the similar distribution as general queries. While in reality, data owners often collect limited and biased graphs and cannot observe the global distribution. With heterogeneous subgraphs separately stored in local data owners, accomplishing a globally applicable GNN requires collaboration.
14
+
15
+ Federated learning (FL) [17, 35], targeting at training machine learning models with data distributed in multiple local systems to resolve the information-silo problem, has shown its advantage in enhancing the performance and generalizability of the collaboratively trained models without the need of sharing any actual data. For example, FL has been devised in computer vision (CV) and natural language processing (NLP) to allow the joint training of powerful and generalizable deep convolutional neural networks and language models on separately stored datasets of images and texts [19, 6, 18, 39, 13].
16
+
17
+ Motivating Scenario. Taking the healthcare system as an example, as shown in Fig. 1, residents of a city may go to different hospitals for various reasons. As a result, their healthcare data, such as demographics and living conditions, as well as patient interactions, such as co-staying in a sickroom and co-diagnosis of a disease, are stored only within the hospitals they visit. When any healthcare problem is to be studied in the whole city, e.g., the prediction of infections when a pandemic occurs, a single powerful graph mining model is needed to conduct effective inference over the entire global patient network, which contains all subgraphs from different hospitals. However, it is rather difficult to let all hospitals share their patient networks with others to train the graph mining model due to conflicts of interests and privacy concerns.
18
+
19
+ ![](images/3db6f8e262d5f8e6077596e2a5ad0ce466e2079af4e964e11006ec52d9f282f4.jpg)
20
+ Figure 1: A toy example of the distributed subgraph storage system: In this example, there are four hospitals and a medical administration center. The global graph records, for a certain period, the city’s patients (nodes), their information (attributes), and interactions (links). Specifically, the left part of the figure shows how the global graph is stored in each hospital, where the grey solid lines are the links explicitly stored in each hospital, and the red dashed lines are the cross-hospital links that may exist but are not stored in any hospital. The right part of the figure indicates our goal that without sharing actual data, the system obtains a globally powerful graph mining model.
21
+
22
+ In such scenarios, it is desirable to train a powerful and generalizable graph mining model over multiple distributed subgraphs without actual data sharing. However, this novel yet realistic setting brings two unique technical challenges, which have never been explored so far.
23
+
24
+ Challenge 1: How to jointly learn from multiple local subgraphs? In our considered scenario, the global graph is distributed into a set of small subgraphs with heterogeneous feature and structure distributions. Training a separate graph mining model on each subgraph may not capture the global data distribution and is also prone to overfitting. Moreover, it is unclear how to integrate multiple graph mining models into a universally applicable one that can handle any queries from the underlying global graph.
25
+
26
+ Solution 1: FedSage: Training GraphSage with FedAvg. To attain a powerful and generalizable graph mining model from small and biased subgraphs distributed in multiple local owners, we develop a framework of subgraph federated learning, specifically, with the vanilla mechanism of FedAvg [21]. As for the graph mining model, we resort to GraphSage [11], due to its advantages of inductiveness and scalability. We term this framework as FedSage.
27
+
28
+ Challenge 2: How to deal with missing links across local subgraphs? Unlike distributed systems in other domains such as CV and NLP, whose data samples of images and texts are isolated and independent, data samples in graphs are connected and correlated. Most importantly, in a subgraph federated learning system, data samples in each subgraph can potentially have connections to those in other subgraphs. These connections carrying important information of node neighborhoods and serving as bridges among the data owners, however, are never directly captured by any data owner.
29
+
30
+ Solution 2: FedSage+: Generating missing neighbors along FedSage. To deal with crosssubgraph missing links, we add a missing neighbor generator on top of FedSage and propose a novel FedSage+ model. Specifically, for each data owner, instead of training the GraphSage model on the original subgraph, it first mends the subgraph with generated cross-subgraph missing neighbors and then applies FedSage on the mended subgraph. To obtain the missing neighbor generator, each data owner impairs the subgraph by randomly holding out some nodes and related links and then trains the generator based on the held-out neighbors. Training the generator on an individual local subgraph enables it to generate potential missing links within the subgraph. Further training the generator in our subgraph FL setting allows it to generate missing neighbors across distributed subgraphs.
31
+
32
+ We conduct experiments on four real-world datasets with different numbers of data owners to better simulate the application scenarios. According to our results, both of our models outperform locally trained classifiers in all scenarios. Compared to FedSage, FedSage+ further promotes the performance of the outcome classifier. Further in-depth model analysis shows the convergence and generalization ability of our frameworks, which is corroborated by our theoretical analysis in the end.
33
+
34
+ # 2 Related works
35
+
36
+ Graph mining. Graph mining emerges its significance in analyzing the informative graph data, which range from social networks to gene interaction networks [31, 33, 34, 24]. One of the most frequently applied tasks on graph data is node classification. Recently, graph neural networks (GNNs), e.g., graph convolutional networks (GCN) [16] and GraphSage [11], improved the state-of-the-art in node classification with their elegant yet powerful designs. However, as GNNs leverage the homophily of nodes in both node features and link structures to conduct the inference, they are vulnerable to the perturbation on graphs [4, 40, 41]. Robust GNNs, aiming at reducing the degeneration in GNNs caused by graph perturbation, are gaining attention these days. Current robust GNNs focus on the sensitivity towards modifications on node features [3, 42, 15] or adding/removing edges on the graph [37]. However, neither of these two types recapitulates the missing neighbor problem, which affects both the feature distribution and structure distribution.
37
+
38
+ To obtain a node classifier with good generalizability, the development of domain adaptive GNN sheds light on adapting a GNN model trained on the source domain to the target domain by leveraging underlying structural consistency [38, 36, 28]. However, in the distributed system we consider, data owners have subgraphs with heterogeneous feature and structure distributions. Moreover, direct information exchanges among subgraphs, such as message passing, are fully blocked due to the missing cross-subgraph links. The violation of the domain adaptive GNNs’ assumptions on alignable nodes and cross-domain structural consistency denies their usage in the distributed subgraph system.
39
+
40
+ Federated learning. FL is proposed for cross-institutional collaborative learning without sharing raw data [17, 35, 21]. FedAvg [21] is an efficient and well-studied FL method. Similar to most FL methods, it is originally proposed for traditional machine learning problems [35] to allow collaborative training on silo data through local updating and global aggregation. The ecently proposed meta-learning framework [9, 23, 14] that exploits information from different data sources to obtain a general model attracts FL researchers [8]. However, meta-learning aims to learn general models that easily adapt to different local tasks, while we learn a generalizable model from diverse data owners to assist in solving a global task. In the distributed subgraph system, to obtain a globally applicable model without sharing local graph data, we borrow the idea of FL to collaboratively train GNNs.
41
+
42
+ Federated graph learning. Recent researchers have made some progress in federated graph learning. There are existing FL frameworks designed for the graph data learning task [12, 27, 30]. [12] design graph-level FL schemes with graph datasets dispersed over multiple data owners, which are inapplicable to our distributed subgraph system construction. [27] proposes an FL method for the recommendation problem with each data owner learning on a subgraph of the whole recommendation user-item graph. It considers a different scenario assuming subgraphs have overlapped items (nodes), and the user-item interactions (edges) are distributed but completely stored in the system, which ignores the possible cross-subgraph information lost in real-world scenarios. However, we study a more challenging yet realistic case in the distributed subgraph system, where cross-subgraph edges are totally missing.
43
+
44
+ In this work, we consider the commonly existing yet not studied scenario, i.e., distributed subgraph system with missing cross-subgraph edges. Under this scenario, we focus on obtaining a globally applicable node classifier through FL on distributed subgraphs.
45
+
46
+ # 3 FedSage
47
+
48
+ In this section, we first illustrate the definition of the distributed subgraph system derived from real-world application scenarios. Based on this system, we then formulate our novel subgraph FL framework and a vanilla solution called FedSage.
49
+
50
+ # 3.1 Subgraphs Distributed in Local Systems
51
+
52
+ Notation. We denote a global graph as $G = \{ V , E , X \}$ , where $V$ is the node set, $X$ is the respective node feature set, and $E$ is the edge set. In the FL system, we have the central server $S$ , and $M$ data owners with distributed subgraphs. $G _ { i } = \{ V _ { i } , E _ { i } , X _ { i } \}$ is the subgraph owned by $D _ { i }$ , for $i \in [ M ]$ .
53
+
54
+ Problem setup. For the whole system, we assume $V = V _ { 1 } \cup \cdots \cup V _ { M }$ . To simulate the scenario with most missing links, we assume no overlapping nodes shared across data owners, namely $V _ { i } \cap V _ { j } = \emptyset$ for $\forall i , j \in [ M ]$ and $i \neq j$ . Note that the central server $S$ only maintains a graph mining model with no actual graph data stored. Any data owner $D _ { i }$ cannot directly retrieve $u \in V _ { j }$ from another data owner $D _ { j }$ . Therefore, for an edge $e _ { v , u } \in E$ , where $v \in V _ { i }$ and $u \in V _ { j }$ , $e _ { v , u } \notin E _ { i } \cup E _ { j }$ , that is, $e _ { v , u }$ might exist in reality but is not stored anywhere in the whole system.
55
+
56
+ For the global graph $G = \{ V , E , X \}$ , every node $v \in V$ has its features $x _ { v } \in X$ and one label $y _ { v } \in Y$ for the downstream task, e.g., node classification. Note that for $v \in V$ , $v$ ’s feature $x _ { v } \in \mathbb { R } ^ { d _ { x } }$ and respective label $y _ { v }$ is a $d _ { y }$ -dimensional one-hot vector. In a typical GNN, predicting a node’s label requires an ego-graph of the queried node. For a node $v$ from graph $G$ , we denote the queried ego-graph of $v$ as $G ( v )$ , and $( G ( v ) , y _ { v } ) \sim \mathcal { D } _ { G }$ .
57
+
58
+ With subgraphs distributed in the system defined above, we formulate our goal as follows.
59
+
60
+ Goal. The system exploits an $\mathrm { F L }$ framework to collaboratively learn on isolated subgraphs in all data owners, without raw graph data sharing, to obtain a global node classifier $F$ . The learnable weights $\phi$ in $F$ is optimized for queried ego-graphs following the distribution of ones drawn from the global graph $G$ . We formalize the problem as finding $\phi ^ { * }$ that minimizes the aggregated risk
61
+
62
+ $$
63
+ \boldsymbol { \phi } ^ { * } = \arg \operatorname* { m i n } _ { \mathbf { \phi } } \mathcal { R } ( \boldsymbol { F } ( \boldsymbol { \phi } ) ) = \frac { 1 } { M } \sum _ { i } ^ { M } \mathcal { R } _ { i } ( F _ { i } ( \boldsymbol { \phi } ) ) ) ,
64
+ $$
65
+
66
+ where $\mathcal { R } _ { i }$ is the local empirical risk defined as
67
+
68
+ $$
69
+ \begin{array} { r } { \mathcal { R } _ { i } \big ( F _ { i } ( \phi ) \big ) : = \mathbb { E } _ { ( G _ { i } , Y _ { i } ) \sim \mathcal { D } _ { G _ { i } } } [ \ell ( F _ { i } ( \phi ; G _ { i } ) , Y _ { i } ) ) ] , } \end{array}
70
+ $$
71
+
72
+ where $\ell$ is a task-specific loss function
73
+
74
+ $$
75
+ \ell : = \frac { 1 } { | V _ { i } | } \sum _ { v \in V _ { i } } l ( \phi ; G _ { i } ( v ) , y _ { v } ) .
76
+ $$
77
+
78
+ # 3.2 Collaborative Learning on Isolated Subgraphs
79
+
80
+ To fulfill the system’s goal illustrated above, we leverage the simple and efficient FedAvg framework [21] and fix the node classifier $F$ as a GraphSage model. The inductiveness and scalability of the GraphSage model facilitate both the training on diverse subgraphs with heterogeneous query distributions and the later inference upon the global graph. We term the GraphSage model trained with the FedAvg framework as FedSage.
81
+
82
+ r a queried node -hop neighborho $v \in V$ , a glraph ally shared to conduct $K$ -layer GraphSage classifier ediction with learnable par $F$ integeters $v$ $K$ $G$ $\phi = \{ \phi ^ { k } \} _ { k = 1 } ^ { K }$ Taking a subgraph $G _ { i }$ as an example, for $v \in V _ { i }$ with features as $h _ { v } ^ { 0 } = x _ { v }$ , at each layer $k \in [ K ]$ , $F$ computes $v$ ’s representation $h _ { v } ^ { k }$ as
83
+
84
+ $$
85
+ h _ { v } ^ { k } = \sigma \left( \phi ^ { k } \cdot \left( h _ { v } ^ { k - 1 } | | A g g \left( \left\{ h _ { u } ^ { k - 1 } , \forall u \in \mathcal { N } _ { G _ { i } } ( v ) \right\} \right) \right) \right) ,
86
+ $$
87
+
88
+ where $\mathcal { N } _ { G _ { i } } ( v )$ is the set of $v$ ’s neighbors on graph $G _ { i } , | |$ is the concatenation operation, $A g g ( \cdot )$ is the aggregator (e.g., mean pooling) and $\sigma$ is the activation function (e.g., ReLU).
89
+
90
+ With $F$ outputting the inference label $\widetilde { y } _ { v } = \mathrm { S o f t m a x } ( h _ { v } ^ { K } )$ for $v \in V _ { i }$ , the supervised loss function $l ( \phi | \cdot )$ is defined as follows
91
+
92
+ $$
93
+ \mathcal { L } ^ { c } = l ( \phi | G _ { i } ( v ) , y _ { v } ) = C E ( \widetilde { y } _ { v } , y _ { v } ) = - \left[ y _ { v } \log \widetilde { y } _ { v } + ( 1 - y _ { v } ) \log \left( 1 - \widetilde { y } _ { v } \right) \right] ,
94
+ $$
95
+
96
+ where $C E ( \cdot )$ is the cross entropy function, $G _ { i } ( v )$ is $v$ ’s K-hop ego-graph on $G _ { i }$ , which contains the information of $v$ and its K-hop neighbors on $G _ { i }$ .
97
+
98
+ In FedSage, the distributed subgraph system obtains a shared global node classifier $F$ parameterized by $\phi$ through $e _ { c }$ epochs of training. During each epoch $t$ , every $D _ { i }$ first locally computes $\phi _ { i } \gets$ $\phi - \eta \nabla \ell ( \phi | \{ ( G _ { i } ( v ) , y _ { v } ) | v \in V _ { i } ^ { t } \} )$ , where $V _ { i } ^ { t } \subseteq V _ { i }$ contains the sampled training nodes for epoch $t$ , and $\eta$ is the learning rate; then the central server $S$ collects the latest $\{ \phi _ { i } | i \in [ \bar { M } ] \}$ ; next, through averaging over $\{ \phi _ { i } | \bar { i } \in [ M ] \}$ , $S$ sets $\phi$ as the averaged value; finally, $S$ broadcasts $\phi$ to data owners and finishes one round of training $F$ . After $e _ { c }$ epochs, the entire system retrieves $F$ as the outcome global classifier, which is not limited to or biased towards the queries in any specific data owner.
99
+
100
+ Unlike FL on Euclidean data, nodes in the distributed subgraph system can have potential interactions with each other across subgraphs. However, as the cross-subgraph links cannot be captured by any data owner in the system, incomplete neighborhoods, compared to those on the global graph, commonly exist therein. Thus, directly aggregating incomplete queried ego-graph information through FedSage restricts the outcome $F$ from achieving the desideratum of capturing the global query distribution.
101
+
102
+ ![](images/3bcb77490b0c2ae8e863682998c4fd95fb5f8ae6d294a9c24fbf42bbce8fcbf8.jpg)
103
+ Figure 2: Joint training of missing neighbor generation and node classification.
104
+
105
+ # 4 FedSage+
106
+
107
+ In this section, we propose a novel framework of FedSage $^ +$ , i.e., subgraph FL with missing neighbor generation. We first design a missing neighbor generator (NeighGen) and its training schema via graph mending. Then, we describe the joint training of NeighGen and GraphSage to better achieve the goal in Section 3.1. Without loss of generality, in the following demonstration, we take NeighGeni, i.e., the missing neighbor generator of $D _ { i }$ , as an example, where $i \in [ M ]$ .
108
+
109
+ # 4.1 Missing Neighbor Generator (NeighGen)
110
+
111
+ Neural architecture of NeighGen. As shown in Fig. 2, NeighGen consists of two modules, i.e., an encoder $H ^ { e }$ and a generator $H ^ { g }$ . We describe their designs in details in the following.
112
+
113
+ $H ^ { e }$ : A GNN model, i.e., a K-layer GraphSage encoder, with parameters $\theta ^ { e }$ . For node $v \in V _ { i }$ on the input graph $G _ { i }$ , $H ^ { e }$ computes node embeddings $Z _ { i } = \{ z _ { v } | z _ { v } \stackrel { \cdot } { = } h _ { v } ^ { K } , z _ { v } \in \mathbb { R } ^ { d _ { z } } , v \in V _ { i } \}$ according to Eq. (1) by substituting $\phi$ , $G$ with $\theta ^ { e }$ and $G _ { i }$ .
114
+
115
+ $H ^ { g }$ : A generative model recovering missing neighbors for the input graph based on the node embedding. $H ^ { g }$ contains dGen and fGen, where dGen is a linear regression model parameterized by $\theta ^ { d }$ that predicts the numbers of missing neighbors $\widetilde { N } _ { i } = \{ \widetilde { n } _ { v } | \widetilde { n } _ { v } \in \mathbb { N } , v \in V _ { i } \}$ , and fGen is a feature generator parameterized by $\theta ^ { f }$ that generates a set of $\widetilde { N } _ { i }$ feature vectors $\widetilde { X } _ { i } = \{ \widetilde { x } _ { v } | \widetilde { x } _ { v } \in$ $\mathbb { R } ^ { \widetilde { n } _ { v } \times d _ { x } } , \widetilde { n } _ { v } \in \widetilde { N } _ { i } , v \in V _ { i } \}$ e e. Both dGen and fGen are constructed as fully connected neural networks e(FNNs), while fGen is further equipped with a Gaussian noise generator $\mathbf { N } ( 0 , 1 )$ that generates $d _ { z }$ -dimensional noise vectors and a random sampler $R$ . For node $v \in V _ { i }$ , fGen is variational, which generates the missing neighbors’ features for $v$ after inserting noises into the embedding $z _ { v }$ , while $R$ ensures fGen to output the features of a specific number of neighbors by sampling $\widetilde { n } _ { v }$ feature vectors from the feature generator’s output. Mathematically, we have
116
+
117
+ $$
118
+ \widetilde { n } _ { v } = \sigma ( ( { \boldsymbol { \theta } } ^ { d } ) ^ { T } \cdot { \boldsymbol { n } } _ { v } ) , \operatorname { a n d } \widetilde { x } _ { v } = R \left( \sigma \left( ( { \boldsymbol { \theta } } ^ { f } ) ^ { T } \cdot ( z _ { v } + \mathbf { N } ( 0 , 1 ) ) \right) , \widetilde { { \boldsymbol { n } } } _ { v } \right) .
119
+ $$
120
+
121
+ Graph mending simulation. For each data owner in our system, we assume that only a particular set of nodes have cross-subgraph missing neighbors. The assumption is realistic yet non-trivial for it both seizing the quiddity of the distributed subgraph system, and allowing us to locally simulate the missing neighbor situation through a graph impairing and mending process. Specifically, to simulate a graph mending process during the training of NeighGen, in each local subgraph $G _ { i }$ , we randomly hold out $h \%$ of its nodes $V _ { i } ^ { h } \subset V _ { i }$ and all links involving them $E _ { i _ { - } } ^ { h } = \{ e _ { u v } | u \stackrel { - } { \in } \bar { V } _ { i } ^ { h }$ or $v \in V _ { i } ^ { h } \} \subset \mathsf { \bar { E } } _ { i }$ , to form an impaired subgraph, denoted as $\bar { G } _ { i }$ . $\bar { G } _ { i } = \mathsf { \bar { \{ V } } _ { i } , \bar { E } _ { i } , \bar { X } _ { i } \}$ contains the impaired set of nodes $\bar { V } _ { i } = V _ { i } \setminus V _ { i } ^ { h }$ , the corresponding nodes features ${ \bar { X } } _ { i } = X _ { i } \setminus X _ { i } ^ { h }$ and edges $\bar { E } _ { i } = E _ { i } \setminus E _ { i } ^ { h }$ .
122
+
123
+ Accordingly, based on the ground-truth missing nodes $V _ { i } ^ { h }$ and links $E _ { i } ^ { h }$ , the training of NeighGen on the impaired graph $\bar { G } _ { i }$ boils down to jointly training dGen and fGen as below.
124
+
125
+ $$
126
+ \mathcal { L } ^ { n } = \lambda ^ { d } \mathcal { L } ^ { d } + \lambda ^ { f } \mathcal { L } ^ { f } = \lambda ^ { d } \frac { 1 } { | \bar { V } _ { i } | } \sum _ { v \in \bar { V } _ { i } } L _ { 1 } ^ { S } \big ( \widetilde { n } _ { v } - n _ { v } \big ) + \lambda ^ { f } \frac { 1 } { | \bar { V } _ { i } | } \sum _ { v \in \bar { V } _ { i } } \sum _ { p \in \{ \widetilde { n } _ { v } \} } \operatorname* { m i n } _ { u \in \mathcal { N } _ { G _ { i } } ( v ) \cap V _ { i } ^ { h } } ( | | \widetilde { x } _ { v } ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) ,
127
+ $$
128
+
129
+ where $L _ { 1 } ^ { S }$ is the smooth L1 distance [10] and $\mathcal { \widetilde { x } } _ { v } ^ { p } \in \mathbb { R } ^ { d _ { x } }$ is the $p$ -th predicted feature in $\widetilde { x } _ { v }$ . Note that, $\mathcal { N } _ { G _ { i } } ( v ) \cap V _ { i } ^ { h }$ contains $n _ { v }$ nodes that are $v$ e’s neighbors on $G _ { i }$ missing into $V _ { i } ^ { h }$ . $\mathcal { N } _ { G _ { i } } ( v ) \cap V _ { i } ^ { h }$ , which can be retrieved from $V _ { i } ^ { h }$ and $E _ { i } ^ { h }$ , provides ground-truth for training NeighGen.
130
+
131
+ Neighbor Generation. To retrieve $G _ { i } ^ { \prime }$ from $G _ { i }$ , data owner $D _ { i }$ performs two steps, which are also shown in Fig. 2: 1) $D _ { i }$ trains NeighGen on the impaired graph $\bar { G } _ { i }$ w.r.t. the ground-true hidden neighbors ${ \bar { V } } _ { i } ^ { \breve { h } }$ ; 2) $D _ { i }$ exploits NeighGen to generate missing neighbors for nodes on $G _ { i }$ and then mends $G _ { i }$ into $G _ { i } ^ { \prime }$ with generated neighbors. On the local graph $G _ { i }$ alone, this process can be understood as a data augmentation that further generates potential missing neighbors within $G _ { i }$ . However, the actual goal is to allow NeighGen to generate the cross-subgraph missing neighbors, which can be achieved via training NeighGen with FL and will be discussed in Section 4.3.
132
+
133
+ # 4.2 Local Joint Training of GraphSage and NeighGen
134
+
135
+ While NeighGen is designed to recover missing neighbors, the final goal of our system is to train a node classifier. Therefore, we design the joint training of GraphSage and NeighGen, which leverages neighbors generated by NeighGen to assist the node classification by GraphSage. We term the integration of GraphSage and NeighGen on the local graphs as LocSage+.
136
+
137
+ After NeighGen mends the graph $G _ { i }$ into $G _ { i } ^ { \prime }$ , the GraphSage classifier $F$ is applied on $G _ { i } ^ { \prime }$ , according to Eq. (1) (with $G _ { i }$ replaced by $G _ { i } ^ { \prime }$ ). Thus, the joint training of NeighGen and GraphSage is done by optimizing the following loss function
138
+
139
+ $$
140
+ \mathcal { L } = \mathcal { L } ^ { n } + \lambda ^ { c } \mathcal { L } ^ { c } = \lambda ^ { d } \mathcal { L } ^ { d } + \lambda ^ { f } \mathcal { L } ^ { f } + \lambda ^ { c } \mathcal { L } ^ { c } ,
141
+ $$
142
+
143
+ where ${ \mathcal { L } } ^ { d }$ and $\mathcal { L } ^ { f }$ are defined in Eq. (4), and $\mathcal { L } ^ { c }$ is defined in Eq. (2) (with $G _ { i }$ substituted by $G _ { i } ^ { \prime }$
144
+
145
+ The local joint training of GraphSage and NeighGen allows NeighGen to generate missing neighbors in the local graph that are helpful for the classifications made by GraphSage. However, like GraphSage, the information encoded in the local NeighGen is limited to and biased towards the local graph, which does not enable it to really generate neighbors belonging to other data owners connected by the missing cross-subgraph links. To this end, it is natural to train NeighGen with $\mathrm { F L }$ as well.
146
+
147
+ # 4.3 Federated Learning of GraphSage and NeighGen
148
+
149
+ Similarly to GraphSage alone, as described in Section 3.2, we can apply FedAvg to the joint training of GraphSage and NeighGen, by setting the loss function to $\mathcal { L }$ and learnable parameters to $\{ \theta ^ { e } , \theta ^ { d } , \theta ^ { f } , \phi \}$ . However, we observe that cooperation through directly averaging weights of NeighGen across the system can negatively affect its performance, i.e., averaging the weights of a single NeighGen model does not really allow it to generate diverse neighbors from different subgraphs. Recalling our goal of constructing NeighGen, which is to facilitate the training of a centralized GraphSage classifier by generating diverse missing neighbors in each subgraph, we do not necessarily need a centralized NeighGen. Therefore, instead of training a single centralized NeighGen, we train a local NeighGeni for each data owner $D _ { i }$ . In order to allow each NeighGeni to generate diverse neighbors similar to those missed into other subgraphs $G _ { j } , j \in [ M ] \backslash \{ i \}$ , we add a cross-subgraph feature reconstruction loss into $\mathrm { f G e n } _ { i }$ as follows:
150
+
151
+ $$
152
+ \mathcal { L } _ { i } ^ { f } = \frac { 1 } { \lvert \overline { { V _ { i } } } \rvert } \sum _ { v \in \bar { V } _ { i } } \sum _ { p \in [ \tilde { n } _ { v } ] } \left( \operatorname* { m i n } _ { u \in N _ { G _ { i } } ( v ) \cap V _ { i } ^ { h } } ( \lvert | \widetilde { x } _ { v } ^ { p } - x _ { u } \rvert | _ { 2 } ^ { 2 } ) + \alpha \sum _ { j \in [ M ] / i } \operatorname* { m i n } _ { u \in V _ { j } } ( \lvert | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } \rvert | _ { 2 } ^ { 2 } ) \right) ,
153
+ $$
154
+
155
+ where $u \in V _ { j } , \forall j \in [ M ] \setminus \{ i \}$ is picked as the closest node from $G _ { j }$ other than $G _ { i }$ to simulate the neighbor of $v \in { \bar { V } } _ { i }$ missed into $G _ { j }$ .
156
+
157
+ As shown above, to optimize Eq. (6), $D _ { i }$ needs to pick the closest $u$ from $G _ { j }$ . However, directly transmitting node features $X _ { j }$ in $D _ { j }$ to $D _ { i }$ not only violates our subgraph FL system constraints on no direct data sharing but also is impractical in reality, as it requires each $D _ { i }$ to hold the entire global graph’s node features throughout training ${ \mathrm { N e i g h G e n } } _ { i }$ . Therefore, to allow $D _ { i }$ to update ${ \mathrm { N e i g h G e n } } _ { i }$ using Eq. (6) without direct access to $X _ { j }$ , for $v \in { \bar { V } } _ { i }$ , $D _ { j }$ locally computes $\begin{array} { r } { \sum _ { p \in [ \widetilde { n } _ { v } ] } \operatorname* { m i n } _ { u \in V _ { j } } ( | | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) } \end{array}$ and sends the respective gradient back to $D _ { i }$ .
158
+
159
+ During this process, for $v \in \bar { V } _ { i }$ , to federated optimize Eq. (6), only $H _ { i } ^ { g }$ , $H _ { i } ^ { g }$ ’s input $z _ { v }$ , and the $D _ { j }$ ’s locally computed model gradients of loss term $\begin{array} { r } { \sum _ { p \in [ \tilde { n } _ { v } ] } \operatorname* { m i n } _ { u \in V _ { j } } ( | | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) } \end{array}$ are transmitted among the system via the server $S$ e. For data owner $D _ { i }$ , the gradients received from $D _ { j }$ are then weighted by $\alpha$ and combined with the local gradients as in Eq. (6) to update the parameters of $H _ { i } ^ { g }$ of NeighGeni In this way, $D _ { i }$ achieves the federate training of ${ \mathrm { N e i g h G e n } } _ { i }$ without raw graph data sharing. Note that, due to NeighGen’s architecture of a concatenation of $H ^ { e }$ and $H ^ { g }$ , the locally preserved GNN $H _ { i } ^ { e }$ can prevent other data owners from inferring $x _ { v }$ by only seeing $z _ { v }$ . Through Eq. (6), NeighGen $_ { \cdot i }$ is expected to perceive diverse neighborhood information from all data owners, so as to generate more realistic cross-subgraph missing neighbors. The expectedly diverse and unbiased neighbors further assist the FedSage in training a globally applicable classifier that satisfies our goal in Section 3.1.
160
+
161
+ Note that, to reduce communications and computation time incurred by Eq. (6), batch training can be applied. Appendix A shows the pseudo code of FedSage+.
162
+
163
+ # 5 Experiments
164
+
165
+ We conduct experiments on four datasets to verify the effectiveness of FedSage and FedSage+ under different testing scenarios. We further conduct case studies to visualize how FedSage and FedSage+ assist local data owners in accommodating queries from the global distribution. Finally, we also provide more in-depth studies on the effectiveness of NeighGen in Appendix D.
166
+
167
+ # 5.1 Datasets and experimental settings
168
+
169
+ We synthesize the distributed subgraph system with four widely used real-world graph datasets, i.e., Cora [25], Citeseer [25], PubMed [22], and MSAcademic [26]. To synthesize the distributed subgraph system, we find hierarchical graph clusters on each dataset with the Louvain algorithm [2] and use the clustering results with 3, 5, and 10 clusters of similar sizes to obtain subgraphs for data owners. The statistics of these datasets are presented in Table 1.
170
+
171
+ Table 1: Statistics of the datasets and the synthesized distributed subgraph systems with $M = 3$ , 5, and $1 0 . \# \mathrm { C }$ row shows the number of classes, $| V _ { i } |$ and $| E _ { i } |$ rows show the averaged numbers of nodes and links in all subgraphs, and $\Delta E$ shows the total number of missing cross-subgraph links.
172
+
173
+ <table><tr><td>Data</td><td colspan="3">Cora</td><td colspan="3">Citeseer</td><td colspan="3">PubMed</td><td colspan="3">MSAcademic</td></tr><tr><td>#C |V</td><td colspan="3"></td><td colspan="3">6</td><td colspan="3">3</td><td colspan="3">15</td></tr><tr><td></td><td colspan="3"></td><td colspan="3">3312</td><td colspan="3">19717</td><td colspan="3">18333</td></tr><tr><td>|E</td><td colspan="3">5429</td><td colspan="3">4715</td><td colspan="3">44338</td><td colspan="3">81894</td></tr><tr><td>M</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td></tr><tr><td>Vil</td><td>903</td><td>542</td><td>271</td><td>1104</td><td>662</td><td>331</td><td>6572</td><td>3943</td><td>1972</td><td>6111</td><td>3667</td><td>1833</td></tr><tr><td>E</td><td>1675</td><td>968</td><td>450</td><td>1518</td><td>902</td><td>442</td><td>12932</td><td>7630</td><td>3789</td><td>23584</td><td>13949</td><td>5915</td></tr><tr><td>△E</td><td>403</td><td>589</td><td>929</td><td>161</td><td>206</td><td>300</td><td>5543</td><td>6189</td><td>6445</td><td>11141</td><td>12151</td><td>22743</td></tr></table>
174
+
175
+ We implement GraphSage with two layers using the mean aggregator [5]. The number of nodes sampled in each layer of GraphSage is 5. We use batch size 64 and set training epochs to 50. The training-validation-testing ratio is $6 0 \% - 2 0 \% - 2 0 \%$ due to limited sizes of local subgraphs. Based on our observations in hyper-parameter studies for $\alpha$ and the graph impairing ratio $h$ , we set $h \% \in [ 3 . 4 \% , 2 7 . 8 \% ]$ and $\alpha { = } 1$ . All $\lambda s$ are simply set to 1. Optimization is done with Adam with a learning rate of 0.001. We implement FedSage and FedSage $^ +$ in Python and execute all experiments on a server with 8 NVIDIA GeForce GTX 1080 Ti GPUs.
176
+
177
+ Since we are the first to study the novel yet important setting of subgraph federated learning, there are no existing baselines. We conduct comprehensive ablation evaluation by comparing FedSage and FedSage+ with three models, i.e., 1) GlobSage: the GraphSage model trained on the original global graph without missing links (as an upper bound for FL framework with GraphSage model alone), 2) LocSage: one GraphSage model trained solely on each subgraph, 3) LocSage+: the GraphSage plus NeighGen model jointly trained solely on each subgraph.
178
+
179
+ The metric used in our experiments is the node classification accuracy on the queries sampled from the testing nodes on the global graph. For globally shared models of GlobSage, FedSage, and FedSage+, we report the average accuracy over five random repetitions, while for locally possessed models of LocSage and LocSage+, the scores are further averaged across local models.
180
+
181
+ # 5.2 Experimental results
182
+
183
+ Overall performance. We conduct comprehensive ablation experiments to verify the significant promotion brought by FedSage and FedSage $^ +$ for local owners in global node classification, as
184
+
185
+ Table 2: Node classification results on four datasets with $M = 3 , 5$ , and 10. Besides averaged accuracy, we also provide the corresponding std.
186
+
187
+ <table><tr><td rowspan="2">Model</td><td colspan="3">Cora</td><td colspan="3">Citesser</td></tr><tr><td>M=3</td><td>M=5</td><td>M=10</td><td>M=3</td><td>M=5</td><td>M=10</td></tr><tr><td>LocSage</td><td>0.5762 (±0.0302)</td><td>0.4431 (±0.0847)</td><td>0.2798 (±0.0080)</td><td>0.6789 (±0.054)</td><td>0.5612 (±0.086)</td><td>0.4240 (±0.0859)</td></tr><tr><td>LocSage+</td><td>0.5644 (±0.0219)</td><td>0.4533 (±0.047)</td><td>0.2851 (±0.0080)</td><td>0.6848 (±0.0517)</td><td>0.5676 (±0.0714)</td><td>0.4323 (±0.0715)</td></tr><tr><td>FedSage</td><td>0.8656 (±0.0043)</td><td>0.8645 (±0.0050)</td><td>0.8626 (±0.0103)</td><td>0.7241 (±0.0022)</td><td>0.7226 ±0.0066)</td><td>0.7158 (±0.0053)</td></tr><tr><td>FedSage+</td><td>0.8686 (±0.0054)</td><td>0.8648 (±0.0051)</td><td>0.8632 (±0.0034)</td><td>0.7454 (±0.0038)</td><td>0.7440 (±0.0025)</td><td>0.7392 (±0.0041)</td></tr><tr><td>GlobSage</td><td colspan="3">0.8701 (±0.0042)</td><td colspan="3">0.7561 (±0.0031)</td></tr><tr><td></td><td colspan="3">PubMed</td><td colspan="3">MSAcademic</td></tr><tr><td>Model LocSage</td><td>M=3 0.8447</td><td>M=5 0.8039</td><td>M=10 0.7148</td><td>M=3 0.8188</td><td>M=5 0.7426</td><td>M=10 0.5918</td></tr><tr><td>LocSage+</td><td>(±0.0047) 0.8481</td><td>(±0.0337) 0.8046</td><td>(±0.0951) 0.7039</td><td>(±0.0331) 0.8393</td><td>(±0.0790) 0.7480</td><td>(±0.1005) 0.5927</td></tr><tr><td>FedSage</td><td>(±0.0041) 0.8708</td><td>(±0.0318) 0.8696</td><td>(±0.0925) 0.8692</td><td>(±0.0330) 0.9327</td><td>(±0.0810) 0.9391</td><td>(±0.1094) 0.9262</td></tr><tr><td>FedSage+</td><td>(±0.0014) 0.8775</td><td>(±0.0035) 0.8755</td><td>(±0.0010) 0.8749 (±0.0013)</td><td>(±0.0005) 0.9359</td><td>(±0.0007) 0.9414</td><td>(±0.0009) 0.9314</td></tr><tr><td>GlobSage</td><td colspan="3">(±0.0012) (±0.0047) 0.8776(±0.0011)</td><td colspan="3">(±0.0005) (±0.0006) (±0.0009) 0.9681(±0.0006)</td></tr></table>
188
+
189
+ ![](images/f5d09c56497904b9874f53707008c0a9fc33ff3d97d4bd643722125b8b83b440.jpg)
190
+ Figure 3: Node classification results on four datasets under different $\alpha$ and $h$ values with $M { = } 3$
191
+
192
+ ![](images/d8edc2a8c89aa1b7af1e5c37f6bdd3d4ca1a825535041dd7cb01087d1f167ea4.jpg)
193
+ (b) Hyper-parameter study for $h$ with $\alpha = 1$
194
+
195
+ (a) Hyper-parameter study for $\alpha$ with $h = 1 5 \%$ .
196
+
197
+ shown in Table 2. The most important observation emerging from the results is that FedSage+ not only clearly outperforms LocSage by an average of $2 3 . 1 8 \%$ , but also distinctly overcomes the cross-subgraph missing neighbor problem by reducing the average accuracy drop from the $2 . 1 1 \%$ of FedSage to $1 . 2 8 \%$ , when compared with GlobSage (absolute accuracy difference).
198
+
199
+ The significant gaps between a locally obtained classifier, i.e., LocSage or LocSage+, and a federated trained classifier, i.e., FedSage or FedSage+, assay the benefits brought by the collaboration across data owners in our distributed subgraph system. Compared to FedSage, the further elevation brought by FedSage+ corroborates the assumed degeneration brought by missing cross-subgraph links and the effectiveness of our innovatively designed NeighGen module. Notably, when the graph is relatively sparse (e.g., see Citeseer in Table 1), FedSage $^ +$ significantly exhibits its robustness in resisting the cross-subgraph information loss compared to FedSage. Note that the gaps between LocSage and LocSage $^ +$ are comparatively smaller, indicating that our NeighGen serves more than a robust GNN trainer, but is rather uniquely crucial in the subgraph FL setting.
200
+
201
+ ![](images/340fed2f9eb7820c32f1356b372f58b89eaf0278e38ddb1d7e0e43f7fd227aa5.jpg)
202
+ Figure 4: Label distributions on the PubMed dataset with $M { = } 5$ .
203
+
204
+ ![](images/d9a0dba0d4f8b0360ca2fc6ffa8f34e11572c41664b2723573d2450a8cc02308.jpg)
205
+ Figure 5: Training curves of different frameworks (GlobSage provides an upper bound).
206
+
207
+ Hyper-parameter studies. We compare the downstream task performance under different $\alpha$ and $h$ values with three data owners. Results are shown in Fig. 3, where Fig. 3 (a) shows results when $h$ is fixed as $15 \%$ , and Fig. 3 (b) shows results under $\alpha { = } 1$ .
208
+
209
+ Fig. 3 (a) indicates that choosing a proper $\alpha$ , which brings the information from other subgraphs in the system, can constantly elevate the final testing accuracy. Across different datasets, the optimal $\alpha$ is constantly around 1, and the performance is not influenced much unless $\alpha$ is set to extreme values like 0.1 or 10. Referring to Fig. 3 (b), we can observe that either a too-small $( 1 \% )$ or a too-large $( 3 0 \% )$ hiding portion can degrade the learning process. A too-small $h$ can not provide sufficient data for training NeighGen, while a too-large $h$ can result in sparse local subgraphs that harm the effective training of GraphSage. Referring back to the graph statistics in Table 1 in the paper, the portion of actual missing edges compared to the global graph is within the range of $[ 3 . 4 \%$ , $2 7 . 8 \% ]$ , which explains why a value like $15 \%$ can mostly boost the performance of FedSage+.
210
+
211
+ Case studies. To further understand how FedSage and ${ \mathrm { F e d S a g e } } +$ improve the global classifier over LocSage, we provide case study results on PubMed with five data owners in Fig. 4. For the studied scenario, each data owner only possesses about $20 \%$ of the nodes with rather biased label distributions, as shown in Fig. 4 (a). Such bias is due to the way we synthesize the distributed subgraph system with Louvain clustering, which is also realistic in real scenarios. Local bias essentially makes it hard for any local data owner with limited training samples to obtain a generalized classifier that is globally useful. Although with $1 3 . 9 \%$ of the links missing among the system, both FedSage and FedSage+ empower local data owners in predicting labels that closely follow the ground-true global label distribution as shown in Fig. 4 (b). The figure clearly evidences that our FL models exhibit their advantages in learning a more realistic label distribution as our goal in Section 3.1, which is consistent with the observed performances in Table 2 and our theoretical implications in Section 6.
212
+
213
+ For Cora dataset with five data owners, we visualize testing accuracy, loss convergence, and runtime along 100 epochs in obtaining $F$ with FedSage, FedSage+, GlobSage, LocSage and LocSage+. The results are presented in Fig. 5. Both FedSage and FedSage+ can consistently achieve convergence with rapidly improved testing accuracy. Regarding runtime, even though the classifier from FedSage+ learns from distributed mended subgraphs, FedSage+ does not consume observable more training time compared to FedSage. Due to the additional communications and computations in subgraph FL, both FedSage and FedSage $^ +$ consume slightly more training time compared to GlobSage.
214
+
215
+ # 6 Implications on Generalization Bound
216
+
217
+ In this section, we provide a theoretical implication for the generalization error associated with number of training samples, i.e., nodes in the distributed subgraph system, following Graph Neural Tangent Kernel (GNTK) [7] on universal graph neural networks. Thus, we are motivated to promote the FedSage and FedSage+ algorithms that include more nodes in the global graph through collaborative training with FL.
218
+
219
+ Setting. Our explanation builds on a generalized setting, where we assume a GNN $F$ with layerwise aggregation operations and fully-connected layers with ReLU activation functions, which includes GraphSage as a special case. The weights of $F$ , $\phi$ , is i.i.d. sampled from a multivariate Gaussian distribution $\mathbf { N } ( 0 , I )$ . For Graph $G = \{ \bar { V } , E , X \}$ , we define the kernel matrix of two nodes $u , v \in V$ as follows. Here we consider $F$ is in the GNTK format.
220
+
221
+ Definition 6.1 (Informal version of GNTK on node classification (Definition B.2)) Considering in the overparameterized regime for an GNN $F$ , $F$ is trained using gradient descent with infinite small learning rate. Given n nodes with corresponding labels as training samples, we denote $\boldsymbol { \Theta } \in \mathbb { R } ^ { n \times n }$ as the the kernel matrix of GNTK. $\mathbf { \Theta } _ { \mathbf { \Theta } } \Theta _ { u v }$ is defined as
222
+
223
+ $$
224
+ \Theta _ { u v } = \mathbb { E } _ { \phi \sim { \bf N } ( 0 , I ) } \left[ \left. \frac { \partial F ( \phi , G , u ) } { \partial \phi } , \frac { F ( \phi , G , v ) } { \partial \phi } \right. \right] \in \mathbb { R } .
225
+ $$
226
+
227
+ Full expression of $\Theta$ is shown in the Appendix B. The generalization ability in the GNTK regime depends on the kernel matrix $\Theta$ . We present the generalization bound associated with the number of training samples $n$ in Theorem 6.2.
228
+
229
+ Theorem 6.2 (Generalization bound) Given n training samples of nodes $\left( u _ { i } , y _ { i } \right) _ { i = 1 } ^ { n }$ drawn i.i.d. from the global graph $G$ , consider any loss function $l : \mathbb { R } \times \mathbb { R } \mapsto [ 0 , 1 ]$ that is $^ { l }$ -Lipschitz in the first argument such that $l ( y , y ) = 0$ . With probability at least $1 - \sigma$ and constant $c \in ( 0 , 1 )$ , the generalization error of GNTK for node classification can be upper-bounded by
230
+
231
+ $$
232
+ L _ { { \mathcal { D } } ( F ) } = \mathbb { E } _ { ( u ^ { \prime } , y ) \sim G } [ l ( F ( G , u ^ { \prime } ) , y ) ] \lesssim O ( 1 / n ^ { c } ) .
233
+ $$
234
+
235
+ Following the generalization bound analysis in [7], we use a standard generalization bound of kernel methods of [1], which shows the upper bound of our GNTK formation error depends on that of $\mathbf { y } ^ { \top } \Theta ^ { ( - 1 ) } \mathbf { y }$ and $\operatorname { t r } ( \Theta )$ , where $\mathbf { y }$ is the label vector. Appendix C shows the full version of the proofs.
236
+
237
+ Implications. We show the error bound of GNTK on node classification corresponding to the number of training samples. Under the assumptions in Definition 6.1, our theoretical result indicates that more training samples bring down the generalization error , which provides plausible support for our goal of building a globally useful classifier through FL in Eq. (3.1). Such implications are also consistent with our experimental findings in Fig. 4 where our FedSage and FedSage+ models can learn more generalizable classifiers that follow the label distributions of the global graph through involving more training nodes across different subgraphs.
238
+
239
+ # 7 Conclusion
240
+
241
+ This work aims at obtaining a generalized node classification model in a distributed subgraph system without direct data sharing. To tackle the realistic yet unexplored issue of missing cross-subgraph links, we design a novel missing neighbor generator NeighGen with the corresponding local and federated training processes. Experimental results evidence the distinguished elevation brought by our FedSage and FedSage $^ +$ frameworks , which is consistent with our theoretical implications.
242
+
243
+ Though FedSage manifests advantageous performance, it confronts additional communication cost and potential privacy concerns. As communications are vital for federated learning, properly reducing communication and rigorously guaranteeing privacy protection in the distributed subgraph system can both be promising future directions.
244
+
245
+ # Acknowledgments and Disclosure of Funding
246
+
247
+ This work is partially supported by the internal funding and GPU servers provided by the Computer Science Department of Emory University. We thank Dr. Pan Li from Purdue University for the suggestions on the design of our NeighGen mechanism.
248
+
249
+ References
250
+ [1] Peter L Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. JMLR, 3:463–482, 2002.
251
+ [2] Vincent D Blondel, Jean-Loup Guillaume, Renaud Lambiotte, and Etienne Lefebvre. Fast unfolding of communities in large networks. JSTAT, 2008(10):P10008, 2008.
252
+ [3] Liang Chen, Jintang Li, Qibiao Peng, Yang Liu, Zibin Zheng, and Carl Yang. Understanding structural vulnerability in graph convolutional networks. In IJCAI, 2021.
253
+ [4] Hanjun Dai, Hui Li, Tian Tian, Xin Huang, Lin Wang, Jun Zhu, and Le Song. Adversarial attack on graph structured data. In ICML, 2018.
254
+ [5] CSIRO’s Data61. Stellargraph machine learning library. https://github.com/ stellargraph/stellargraph, 2018.
255
+ [6] Qi Dou, Tiffany Y So, Meirui Jiang, Quande Liu, Varut Vardhanabhuti, Georgios Kaissis, Zeju Li, Weixin Si, Heather HC Lee, Kevin Yu, et al. Federated deep learning for detecting covid-19 lung abnormalities in ct: a privacy-preserving multinational validation study. NPJ digital medicine, 4:1–11, 2021.
256
+ [7] Simon S. Du, Kangcheng Hou, Ruslan Salakhutdinov, Barnabás Póczos, Ruosong Wang, and Keyulu Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. In NeurIPS, 2019.
257
+ [8] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. Personalized federated learning: A meta-learning approach. NeurIPS, 2020.
258
+ [9] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
259
+ [10] Ross Girshick. Fast r-cnn. In ICCV, 2015.
260
+ [11] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NeurIPS, 2017.
261
+ [12] Chaoyang He, Keshav Balasubramanian, Emir Ceyani, Carl Yang, Han Xie, Lichao Sun, Lifang He, Liangwei Yang, Philip S Yu, Yu Rong, Peilin Zhao, Junzhou Huang, Murali Annavaram, and Salman Avestimehr. Fedgraphnn: A federated learning system and benchmark for graph neural networks. arXiv preprint arXiv:2104.07145, 2021.
262
+ [13] Chaoyang He, Shen Li, Mahdi Soltanolkotabi, and Salman Avestimehr. Pipetransformer: Automated elastic pipelining for distributed training of transformers. arXiv preprint arXiv:2102.03161, 2021.
263
+ [14] Timothy M Hospedales, Antreas Antoniou, Paul Micaelli, and Amos J Storkey. Meta-learning in neural networks: A survey. TPAMI, 2021.
264
+ [15] Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. Graph structure learning for robust graph neural networks. In SIGKDD, 2020.
265
+ [16] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
266
+ [17] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions. IEEE SPM, 37:50–60, 2020.
267
+ [18] Xinle Liang, Yang Liu, Tianjian Chen, Ming Liu, and Qiang Yang. Federated transfer reinforcement learning for autonomous driving. arXiv preprint arXiv:1910.06001, 2019.
268
+ [19] Quande Liu, Cheng Chen, Jing Qin, Qi Dou, and Pheng-Ann Heng. Feddg: Federated domain generalization on medical image segmentation via episodic learning in continuous frequency space. arXiv preprint arXiv:2103.06030, 2021.
269
+ [20] Gongxu Luo, Jianxin Li, Hao Peng, Carl Yang, Lichao Sun, Philip Yu, and Lifang He. Graph entropy guided node embedding dimension selection for graph neural networks. In IJCAI, 2021.
270
+ [21] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In AISTATS, 2017.
271
+ [22] Galileo Namata, Ben London, Lise Getoor, and Bert Huang. Query-driven active surveying for collective classification. In MLG workshop, 2012.
272
+ [23] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018.
273
+ [24] Saif Ur Rehman, Asmat Ullah Khan, and Simon Fong. Graph mining: A survey of graph mining techniques. In ICDIM, 2012.
274
+ [25] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective classification in network data. AI magazine, 29(3):93–93, 2008.
275
+ [26] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018.
276
+ [27] Chuhan Wu, Fangzhao Wu, Yang Cao, Yongfeng Huang, and Xing Xie. Fedgnn: Federated graph neural network for privacy-preserving recommendation. arXiv preprint arXiv:2102.04925, 2021.
277
+ [28] Man Wu, Shirui Pan, Chuan Zhou, Xiaojun Chang, and Xingquan Zhu. Unsupervised domain adaptive graph convolutional networks. In WWW, 2020.
278
+ [29] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. TNNLS, 2020.
279
+ [30] Han Xie, Jing Ma, Li Xiong, and Carl Yang. Federated graph classification over non-iid graphs. In NeurIPS, 2021.
280
+ [31] Carl Yang, Haonan Wang, Ke Zhang, Liang Chen, and Lichao Sun. Secure deep graph generation with link differential privacy. In IJCAI, 2021.
281
+ [32] Carl Yang, Yuxin Xiao, Yu Zhang, Yizhou Sun, and Jiawei Han. Heterogeneous network representation learning: A unified framework with survey and benchmark. In TKDE, 2020.
282
+ [33] Carl Yang, Jieyu Zhang, and Jiawei Han. Co-embedding network nodes and hierarchical labels with taxonomy based generative adversarial nets. In ICDM, 2020.
283
+ [34] Carl Yang, Peiye Zhuang, Wenhan Shi, Alan Luu, and Pan Li. Conditional structure generation through graph variational generative adversarial nets. In NeurIPS, 2019.
284
+ [35] Qiang Yang, Yang Liu, Tianjian Chen, and Yongxin Tong. Federated machine learning: Concept and applications. TIST, 10(2):1–19, 2019.
285
+ [36] Yizhou Zhang, Guojie Song, Lun Du, Shuwen Yang, and Yilun Jin. DANE: domain adaptive network embedding. In IJCAI, 2019.
286
+ [37] Dingyuan Zhu, Ziwei Zhang, Peng Cui, and Wenwu Zhu. Robust graph convolutional networks against adversarial attacks. In SIGKDD, 2019.
287
+ [38] Qi Zhu, Yidan Xu, Haonan Wang, Chao Zhang, Jiawei Han, and Carl Yang. Transfer learning of graph neural networks with ego-graph information maximization. In NeurIPS, 2021.
288
+ [39] Xinghua Zhu, Jianzong Wang, Zhenhou Hong, and Jing Xiao. Empirical studies of institutional federated learning for natural language processing. In EMNLP, 2020.
289
+ [40] Daniel Zügner, Amir Akbarnejad, and Stephan Günnemann. Adversarial attacks on neural networks for graph data. In SIGKDD, 2018.
290
+ [41] Daniel Zügner and Stephan Günnemann. Adversarial attacks on graph neural networks via meta learning. In ICLR, 2019.
291
+ [42] Daniel Zügner and Stephan Günnemann. Certifiable robustness and robust training for graph convolutional networks. In SIGKDD, 2019.
parse/train/SJHRf5nW93/SJHRf5nW93_content_list.json ADDED
@@ -0,0 +1,1318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Subgraph Federated Learning with Missing Neighbor Generation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 284,
8
+ 122,
9
+ 714,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ke Zhang1,4, Carl Yang1∗, Xiaoxiao $\\mathbf { L i } ^ { 2 }$ , Lichao $\\mathbf { S u n ^ { 3 } }$ , Siu Ming $\\mathbf { Y i u ^ { 4 } }$ ",
17
+ "bbox": [
18
+ 266,
19
+ 224,
20
+ 751,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Emory University, 2University of British Columbia, 3Lehigh University, 4University of Hong Kon kzhang2@cs.hku.hk, j.carlyang@emory.edu, xiaoxiao.li@ece.ubc.ca, lis221@lehigh.edu, smyiu@cs.hku.hk ",
28
+ "bbox": [
29
+ 186,
30
+ 241,
31
+ 833,
32
+ 282
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 318,
43
+ 535,
44
+ 334
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Graphs have been widely used in data mining and machine learning due to their unique representation of real-world objects and their interactions. As graphs are getting bigger and bigger nowadays, it is common to see their subgraphs separately collected and stored in multiple local systems. Therefore, it is natural to consider the subgraph federated learning setting, where each local system holds a small subgraph that may be biased from the distribution of the whole graph. Hence, the subgraph federated learning aims to collaboratively train a powerful and generalizable graph mining model without directly sharing their graph data. In this work, towards the novel yet realistic setting of subgraph federated learning, we propose two major techniques: (1) FedSage, which trains a GraphSage model based on FedAvg to integrate node features, link structures, and task labels on multiple local subgraphs; (2) FedSage+, which trains a missing neighbor generator along FedSage to deal with missing links across local subgraphs. Empirical results on four real-world graph datasets with synthesized subgraph federated learning settings demonstrate the effectiveness and efficiency of our proposed techniques. At the same time, consistent theoretical implications are made towards their generalization ability on the global graphs. ",
51
+ "bbox": [
52
+ 233,
53
+ 349,
54
+ 766,
55
+ 583
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 608,
66
+ 310,
67
+ 626
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Graph mining leverages links among connected nodes in graphs to conduct inference. Recently, graph neural networks (GNNs) have gained applause with impressing performance and generalizability in many graph mining tasks [29, 11, 16, 20, 32]. Similar to machine learning tasks in other domains, attaining a well-performed GNN model requires its training data to not only be sufficient but also follow the similar distribution as general queries. While in reality, data owners often collect limited and biased graphs and cannot observe the global distribution. With heterogeneous subgraphs separately stored in local data owners, accomplishing a globally applicable GNN requires collaboration. ",
74
+ "bbox": [
75
+ 174,
76
+ 637,
77
+ 825,
78
+ 734
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Federated learning (FL) [17, 35], targeting at training machine learning models with data distributed in multiple local systems to resolve the information-silo problem, has shown its advantage in enhancing the performance and generalizability of the collaboratively trained models without the need of sharing any actual data. For example, FL has been devised in computer vision (CV) and natural language processing (NLP) to allow the joint training of powerful and generalizable deep convolutional neural networks and language models on separately stored datasets of images and texts [19, 6, 18, 39, 13]. ",
85
+ "bbox": [
86
+ 174,
87
+ 741,
88
+ 825,
89
+ 824
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Motivating Scenario. Taking the healthcare system as an example, as shown in Fig. 1, residents of a city may go to different hospitals for various reasons. As a result, their healthcare data, such as demographics and living conditions, as well as patient interactions, such as co-staying in a sickroom and co-diagnosis of a disease, are stored only within the hospitals they visit. When any healthcare problem is to be studied in the whole city, e.g., the prediction of infections when a pandemic occurs, a single powerful graph mining model is needed to conduct effective inference over the entire global patient network, which contains all subgraphs from different hospitals. However, it is rather difficult to let all hospitals share their patient networks with others to train the graph mining model due to conflicts of interests and privacy concerns. ",
96
+ "bbox": [
97
+ 174,
98
+ 830,
99
+ 825,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/3db6f8e262d5f8e6077596e2a5ad0ce466e2079af4e964e11006ec52d9f282f4.jpg",
107
+ "image_caption": [
108
+ "Figure 1: A toy example of the distributed subgraph storage system: In this example, there are four hospitals and a medical administration center. The global graph records, for a certain period, the city’s patients (nodes), their information (attributes), and interactions (links). Specifically, the left part of the figure shows how the global graph is stored in each hospital, where the grey solid lines are the links explicitly stored in each hospital, and the red dashed lines are the cross-hospital links that may exist but are not stored in any hospital. The right part of the figure indicates our goal that without sharing actual data, the system obtains a globally powerful graph mining model. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 202,
113
+ 82,
114
+ 789,
115
+ 226
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 353,
125
+ 825,
126
+ 410
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In such scenarios, it is desirable to train a powerful and generalizable graph mining model over multiple distributed subgraphs without actual data sharing. However, this novel yet realistic setting brings two unique technical challenges, which have never been explored so far. ",
133
+ "bbox": [
134
+ 174,
135
+ 416,
136
+ 823,
137
+ 458
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Challenge 1: How to jointly learn from multiple local subgraphs? In our considered scenario, the global graph is distributed into a set of small subgraphs with heterogeneous feature and structure distributions. Training a separate graph mining model on each subgraph may not capture the global data distribution and is also prone to overfitting. Moreover, it is unclear how to integrate multiple graph mining models into a universally applicable one that can handle any queries from the underlying global graph. ",
144
+ "bbox": [
145
+ 174,
146
+ 464,
147
+ 825,
148
+ 547
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Solution 1: FedSage: Training GraphSage with FedAvg. To attain a powerful and generalizable graph mining model from small and biased subgraphs distributed in multiple local owners, we develop a framework of subgraph federated learning, specifically, with the vanilla mechanism of FedAvg [21]. As for the graph mining model, we resort to GraphSage [11], due to its advantages of inductiveness and scalability. We term this framework as FedSage. ",
155
+ "bbox": [
156
+ 174,
157
+ 553,
158
+ 825,
159
+ 623
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Challenge 2: How to deal with missing links across local subgraphs? Unlike distributed systems in other domains such as CV and NLP, whose data samples of images and texts are isolated and independent, data samples in graphs are connected and correlated. Most importantly, in a subgraph federated learning system, data samples in each subgraph can potentially have connections to those in other subgraphs. These connections carrying important information of node neighborhoods and serving as bridges among the data owners, however, are never directly captured by any data owner. ",
166
+ "bbox": [
167
+ 174,
168
+ 628,
169
+ 825,
170
+ 713
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Solution 2: FedSage+: Generating missing neighbors along FedSage. To deal with crosssubgraph missing links, we add a missing neighbor generator on top of FedSage and propose a novel FedSage+ model. Specifically, for each data owner, instead of training the GraphSage model on the original subgraph, it first mends the subgraph with generated cross-subgraph missing neighbors and then applies FedSage on the mended subgraph. To obtain the missing neighbor generator, each data owner impairs the subgraph by randomly holding out some nodes and related links and then trains the generator based on the held-out neighbors. Training the generator on an individual local subgraph enables it to generate potential missing links within the subgraph. Further training the generator in our subgraph FL setting allows it to generate missing neighbors across distributed subgraphs. ",
177
+ "bbox": [
178
+ 173,
179
+ 718,
180
+ 825,
181
+ 844
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "We conduct experiments on four real-world datasets with different numbers of data owners to better simulate the application scenarios. According to our results, both of our models outperform locally trained classifiers in all scenarios. Compared to FedSage, FedSage+ further promotes the performance of the outcome classifier. Further in-depth model analysis shows the convergence and generalization ability of our frameworks, which is corroborated by our theoretical analysis in the end. ",
188
+ "bbox": [
189
+ 174,
190
+ 849,
191
+ 823,
192
+ 920
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "2 Related works ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 174,
202
+ 89,
203
+ 325,
204
+ 106
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Graph mining. Graph mining emerges its significance in analyzing the informative graph data, which range from social networks to gene interaction networks [31, 33, 34, 24]. One of the most frequently applied tasks on graph data is node classification. Recently, graph neural networks (GNNs), e.g., graph convolutional networks (GCN) [16] and GraphSage [11], improved the state-of-the-art in node classification with their elegant yet powerful designs. However, as GNNs leverage the homophily of nodes in both node features and link structures to conduct the inference, they are vulnerable to the perturbation on graphs [4, 40, 41]. Robust GNNs, aiming at reducing the degeneration in GNNs caused by graph perturbation, are gaining attention these days. Current robust GNNs focus on the sensitivity towards modifications on node features [3, 42, 15] or adding/removing edges on the graph [37]. However, neither of these two types recapitulates the missing neighbor problem, which affects both the feature distribution and structure distribution. ",
211
+ "bbox": [
212
+ 173,
213
+ 117,
214
+ 825,
215
+ 270
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "To obtain a node classifier with good generalizability, the development of domain adaptive GNN sheds light on adapting a GNN model trained on the source domain to the target domain by leveraging underlying structural consistency [38, 36, 28]. However, in the distributed system we consider, data owners have subgraphs with heterogeneous feature and structure distributions. Moreover, direct information exchanges among subgraphs, such as message passing, are fully blocked due to the missing cross-subgraph links. The violation of the domain adaptive GNNs’ assumptions on alignable nodes and cross-domain structural consistency denies their usage in the distributed subgraph system. ",
222
+ "bbox": [
223
+ 174,
224
+ 275,
225
+ 825,
226
+ 373
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Federated learning. FL is proposed for cross-institutional collaborative learning without sharing raw data [17, 35, 21]. FedAvg [21] is an efficient and well-studied FL method. Similar to most FL methods, it is originally proposed for traditional machine learning problems [35] to allow collaborative training on silo data through local updating and global aggregation. The ecently proposed meta-learning framework [9, 23, 14] that exploits information from different data sources to obtain a general model attracts FL researchers [8]. However, meta-learning aims to learn general models that easily adapt to different local tasks, while we learn a generalizable model from diverse data owners to assist in solving a global task. In the distributed subgraph system, to obtain a globally applicable model without sharing local graph data, we borrow the idea of FL to collaboratively train GNNs. ",
233
+ "bbox": [
234
+ 174,
235
+ 378,
236
+ 825,
237
+ 503
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Federated graph learning. Recent researchers have made some progress in federated graph learning. There are existing FL frameworks designed for the graph data learning task [12, 27, 30]. [12] design graph-level FL schemes with graph datasets dispersed over multiple data owners, which are inapplicable to our distributed subgraph system construction. [27] proposes an FL method for the recommendation problem with each data owner learning on a subgraph of the whole recommendation user-item graph. It considers a different scenario assuming subgraphs have overlapped items (nodes), and the user-item interactions (edges) are distributed but completely stored in the system, which ignores the possible cross-subgraph information lost in real-world scenarios. However, we study a more challenging yet realistic case in the distributed subgraph system, where cross-subgraph edges are totally missing. ",
244
+ "bbox": [
245
+ 174,
246
+ 511,
247
+ 825,
248
+ 648
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "In this work, we consider the commonly existing yet not studied scenario, i.e., distributed subgraph system with missing cross-subgraph edges. Under this scenario, we focus on obtaining a globally applicable node classifier through FL on distributed subgraphs. ",
255
+ "bbox": [
256
+ 176,
257
+ 655,
258
+ 821,
259
+ 696
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "3 FedSage ",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 174,
269
+ 709,
270
+ 276,
271
+ 726
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "In this section, we first illustrate the definition of the distributed subgraph system derived from real-world application scenarios. Based on this system, we then formulate our novel subgraph FL framework and a vanilla solution called FedSage. ",
278
+ "bbox": [
279
+ 174,
280
+ 733,
281
+ 825,
282
+ 775
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "3.1 Subgraphs Distributed in Local Systems ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 173,
292
+ 784,
293
+ 495,
294
+ 799
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Notation. We denote a global graph as $G = \\{ V , E , X \\}$ , where $V$ is the node set, $X$ is the respective node feature set, and $E$ is the edge set. In the FL system, we have the central server $S$ , and $M$ data owners with distributed subgraphs. $G _ { i } = \\{ V _ { i } , E _ { i } , X _ { i } \\}$ is the subgraph owned by $D _ { i }$ , for $i \\in [ M ]$ . ",
301
+ "bbox": [
302
+ 176,
303
+ 801,
304
+ 825,
305
+ 844
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Problem setup. For the whole system, we assume $V = V _ { 1 } \\cup \\cdots \\cup V _ { M }$ . To simulate the scenario with most missing links, we assume no overlapping nodes shared across data owners, namely $V _ { i } \\cap V _ { j } = \\emptyset$ for $\\forall i , j \\in [ M ]$ and $i \\neq j$ . Note that the central server $S$ only maintains a graph mining model with no actual graph data stored. Any data owner $D _ { i }$ cannot directly retrieve $u \\in V _ { j }$ from another data owner $D _ { j }$ . Therefore, for an edge $e _ { v , u } \\in E$ , where $v \\in V _ { i }$ and $u \\in V _ { j }$ , $e _ { v , u } \\notin E _ { i } \\cup E _ { j }$ , that is, $e _ { v , u }$ might exist in reality but is not stored anywhere in the whole system. ",
312
+ "bbox": [
313
+ 174,
314
+ 854,
315
+ 825,
316
+ 911
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "",
323
+ "bbox": [
324
+ 171,
325
+ 90,
326
+ 821,
327
+ 119
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "For the global graph $G = \\{ V , E , X \\}$ , every node $v \\in V$ has its features $x _ { v } \\in X$ and one label $y _ { v } \\in Y$ for the downstream task, e.g., node classification. Note that for $v \\in V$ , $v$ ’s feature $x _ { v } \\in \\mathbb { R } ^ { d _ { x } }$ and respective label $y _ { v }$ is a $d _ { y }$ -dimensional one-hot vector. In a typical GNN, predicting a node’s label requires an ego-graph of the queried node. For a node $v$ from graph $G$ , we denote the queried ego-graph of $v$ as $G ( v )$ , and $( G ( v ) , y _ { v } ) \\sim \\mathcal { D } _ { G }$ . ",
334
+ "bbox": [
335
+ 173,
336
+ 125,
337
+ 825,
338
+ 198
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "With subgraphs distributed in the system defined above, we formulate our goal as follows. ",
345
+ "bbox": [
346
+ 171,
347
+ 202,
348
+ 761,
349
+ 218
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Goal. The system exploits an $\\mathrm { F L }$ framework to collaboratively learn on isolated subgraphs in all data owners, without raw graph data sharing, to obtain a global node classifier $F$ . The learnable weights $\\phi$ in $F$ is optimized for queried ego-graphs following the distribution of ones drawn from the global graph $G$ . We formalize the problem as finding $\\phi ^ { * }$ that minimizes the aggregated risk ",
356
+ "bbox": [
357
+ 173,
358
+ 223,
359
+ 825,
360
+ 280
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "equation",
366
+ "img_path": "images/2e69cf1ef262bb6fbcc65c364e6407ceb23c5772f4da6a0cdf1532f4036ff701.jpg",
367
+ "text": "$$\n\\boldsymbol { \\phi } ^ { * } = \\arg \\operatorname* { m i n } _ { \\mathbf { \\phi } } \\mathcal { R } ( \\boldsymbol { F } ( \\boldsymbol { \\phi } ) ) = \\frac { 1 } { M } \\sum _ { i } ^ { M } \\mathcal { R } _ { i } ( F _ { i } ( \\boldsymbol { \\phi } ) ) ) ,\n$$",
368
+ "text_format": "latex",
369
+ "bbox": [
370
+ 341,
371
+ 279,
372
+ 651,
373
+ 318
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "where $\\mathcal { R } _ { i }$ is the local empirical risk defined as ",
380
+ "bbox": [
381
+ 179,
382
+ 320,
383
+ 483,
384
+ 335
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "equation",
390
+ "img_path": "images/cf5abc8e880fbdcbb9c8db910151cdd444dd06c9c8deb25784aa0eb7a436b878.jpg",
391
+ "text": "$$\n\\begin{array} { r } { \\mathcal { R } _ { i } \\big ( F _ { i } ( \\phi ) \\big ) : = \\mathbb { E } _ { ( G _ { i } , Y _ { i } ) \\sim \\mathcal { D } _ { G _ { i } } } [ \\ell ( F _ { i } ( \\phi ; G _ { i } ) , Y _ { i } ) ) ] , } \\end{array}\n$$",
392
+ "text_format": "latex",
393
+ "bbox": [
394
+ 343,
395
+ 334,
396
+ 651,
397
+ 353
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "where $\\ell$ is a task-specific loss function ",
404
+ "bbox": [
405
+ 179,
406
+ 356,
407
+ 431,
408
+ 369
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/e32bfe4480073abbecc3ad7beb2aa2887dd26f4113bb69b91ca2eda10d2e3a76.jpg",
415
+ "text": "$$\n\\ell : = \\frac { 1 } { | V _ { i } | } \\sum _ { v \\in V _ { i } } l ( \\phi ; G _ { i } ( v ) , y _ { v } ) .\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 398,
419
+ 369,
420
+ 598,
421
+ 407
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "3.2 Collaborative Learning on Isolated Subgraphs ",
428
+ "text_level": 1,
429
+ "bbox": [
430
+ 173,
431
+ 420,
432
+ 537,
433
+ 435
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "To fulfill the system’s goal illustrated above, we leverage the simple and efficient FedAvg framework [21] and fix the node classifier $F$ as a GraphSage model. The inductiveness and scalability of the GraphSage model facilitate both the training on diverse subgraphs with heterogeneous query distributions and the later inference upon the global graph. We term the GraphSage model trained with the FedAvg framework as FedSage. ",
440
+ "bbox": [
441
+ 173,
442
+ 445,
443
+ 825,
444
+ 515
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "r a queried node -hop neighborho $v \\in V$ , a glraph ally shared to conduct $K$ -layer GraphSage classifier ediction with learnable par $F$ integeters $v$ $K$ $G$ $\\phi = \\{ \\phi ^ { k } \\} _ { k = 1 } ^ { K }$ Taking a subgraph $G _ { i }$ as an example, for $v \\in V _ { i }$ with features as $h _ { v } ^ { 0 } = x _ { v }$ , at each layer $k \\in [ K ]$ , $F$ computes $v$ ’s representation $h _ { v } ^ { k }$ as ",
451
+ "bbox": [
452
+ 173,
453
+ 520,
454
+ 826,
455
+ 580
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "equation",
461
+ "img_path": "images/cc089e230bf25f65bd4ea9b451eb0a0306fd6612ae1d8c376f7e3a1f6d107078.jpg",
462
+ "text": "$$\nh _ { v } ^ { k } = \\sigma \\left( \\phi ^ { k } \\cdot \\left( h _ { v } ^ { k - 1 } | | A g g \\left( \\left\\{ h _ { u } ^ { k - 1 } , \\forall u \\in \\mathcal { N } _ { G _ { i } } ( v ) \\right\\} \\right) \\right) \\right) ,\n$$",
463
+ "text_format": "latex",
464
+ "bbox": [
465
+ 318,
466
+ 583,
467
+ 678,
468
+ 602
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "where $\\mathcal { N } _ { G _ { i } } ( v )$ is the set of $v$ ’s neighbors on graph $G _ { i } , | |$ is the concatenation operation, $A g g ( \\cdot )$ is the aggregator (e.g., mean pooling) and $\\sigma$ is the activation function (e.g., ReLU). ",
475
+ "bbox": [
476
+ 176,
477
+ 604,
478
+ 821,
479
+ 633
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "With $F$ outputting the inference label $\\widetilde { y } _ { v } = \\mathrm { S o f t m a x } ( h _ { v } ^ { K } )$ for $v \\in V _ { i }$ , the supervised loss function $l ( \\phi | \\cdot )$ is defined as follows ",
486
+ "bbox": [
487
+ 171,
488
+ 638,
489
+ 823,
490
+ 667
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "equation",
496
+ "img_path": "images/759b1e3c806d06c0153a8a8c6e290ad93da00cf0d7a6fcaced9db00f2a9d28e3.jpg",
497
+ "text": "$$\n\\mathcal { L } ^ { c } = l ( \\phi | G _ { i } ( v ) , y _ { v } ) = C E ( \\widetilde { y } _ { v } , y _ { v } ) = - \\left[ y _ { v } \\log \\widetilde { y } _ { v } + ( 1 - y _ { v } ) \\log \\left( 1 - \\widetilde { y } _ { v } \\right) \\right] ,\n$$",
498
+ "text_format": "latex",
499
+ "bbox": [
500
+ 245,
501
+ 670,
502
+ 751,
503
+ 688
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "where $C E ( \\cdot )$ is the cross entropy function, $G _ { i } ( v )$ is $v$ ’s K-hop ego-graph on $G _ { i }$ , which contains the information of $v$ and its K-hop neighbors on $G _ { i }$ . ",
510
+ "bbox": [
511
+ 176,
512
+ 689,
513
+ 823,
514
+ 719
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "In FedSage, the distributed subgraph system obtains a shared global node classifier $F$ parameterized by $\\phi$ through $e _ { c }$ epochs of training. During each epoch $t$ , every $D _ { i }$ first locally computes $\\phi _ { i } \\gets$ $\\phi - \\eta \\nabla \\ell ( \\phi | \\{ ( G _ { i } ( v ) , y _ { v } ) | v \\in V _ { i } ^ { t } \\} )$ , where $V _ { i } ^ { t } \\subseteq V _ { i }$ contains the sampled training nodes for epoch $t$ , and $\\eta$ is the learning rate; then the central server $S$ collects the latest $\\{ \\phi _ { i } | i \\in [ \\bar { M } ] \\}$ ; next, through averaging over $\\{ \\phi _ { i } | \\bar { i } \\in [ M ] \\}$ , $S$ sets $\\phi$ as the averaged value; finally, $S$ broadcasts $\\phi$ to data owners and finishes one round of training $F$ . After $e _ { c }$ epochs, the entire system retrieves $F$ as the outcome global classifier, which is not limited to or biased towards the queries in any specific data owner. ",
521
+ "bbox": [
522
+ 173,
523
+ 724,
524
+ 825,
525
+ 821
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Unlike FL on Euclidean data, nodes in the distributed subgraph system can have potential interactions with each other across subgraphs. However, as the cross-subgraph links cannot be captured by any data owner in the system, incomplete neighborhoods, compared to those on the global graph, commonly exist therein. Thus, directly aggregating incomplete queried ego-graph information through FedSage restricts the outcome $F$ from achieving the desideratum of capturing the global query distribution. ",
532
+ "bbox": [
533
+ 174,
534
+ 827,
535
+ 825,
536
+ 911
537
+ ],
538
+ "page_idx": 3
539
+ },
540
+ {
541
+ "type": "image",
542
+ "img_path": "images/3bcb77490b0c2ae8e863682998c4fd95fb5f8ae6d294a9c24fbf42bbce8fcbf8.jpg",
543
+ "image_caption": [
544
+ "Figure 2: Joint training of missing neighbor generation and node classification. "
545
+ ],
546
+ "image_footnote": [],
547
+ "bbox": [
548
+ 197,
549
+ 87,
550
+ 795,
551
+ 194
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "4 FedSage+ ",
558
+ "text_level": 1,
559
+ "bbox": [
560
+ 174,
561
+ 224,
562
+ 285,
563
+ 242
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "In this section, we propose a novel framework of FedSage $^ +$ , i.e., subgraph FL with missing neighbor generation. We first design a missing neighbor generator (NeighGen) and its training schema via graph mending. Then, we describe the joint training of NeighGen and GraphSage to better achieve the goal in Section 3.1. Without loss of generality, in the following demonstration, we take NeighGeni, i.e., the missing neighbor generator of $D _ { i }$ , as an example, where $i \\in [ M ]$ . ",
570
+ "bbox": [
571
+ 173,
572
+ 257,
573
+ 826,
574
+ 329
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "4.1 Missing Neighbor Generator (NeighGen) ",
581
+ "text_level": 1,
582
+ "bbox": [
583
+ 173,
584
+ 347,
585
+ 498,
586
+ 362
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "Neural architecture of NeighGen. As shown in Fig. 2, NeighGen consists of two modules, i.e., an encoder $H ^ { e }$ and a generator $H ^ { g }$ . We describe their designs in details in the following. ",
593
+ "bbox": [
594
+ 173,
595
+ 373,
596
+ 825,
597
+ 402
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "$H ^ { e }$ : A GNN model, i.e., a K-layer GraphSage encoder, with parameters $\\theta ^ { e }$ . For node $v \\in V _ { i }$ on the input graph $G _ { i }$ , $H ^ { e }$ computes node embeddings $Z _ { i } = \\{ z _ { v } | z _ { v } \\stackrel { \\cdot } { = } h _ { v } ^ { K } , z _ { v } \\in \\mathbb { R } ^ { d _ { z } } , v \\in V _ { i } \\}$ according to Eq. (1) by substituting $\\phi$ , $G$ with $\\theta ^ { e }$ and $G _ { i }$ . ",
604
+ "bbox": [
605
+ 174,
606
+ 409,
607
+ 825,
608
+ 450
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "$H ^ { g }$ : A generative model recovering missing neighbors for the input graph based on the node embedding. $H ^ { g }$ contains dGen and fGen, where dGen is a linear regression model parameterized by $\\theta ^ { d }$ that predicts the numbers of missing neighbors $\\widetilde { N } _ { i } = \\{ \\widetilde { n } _ { v } | \\widetilde { n } _ { v } \\in \\mathbb { N } , v \\in V _ { i } \\}$ , and fGen is a feature generator parameterized by $\\theta ^ { f }$ that generates a set of $\\widetilde { N } _ { i }$ feature vectors $\\widetilde { X } _ { i } = \\{ \\widetilde { x } _ { v } | \\widetilde { x } _ { v } \\in$ $\\mathbb { R } ^ { \\widetilde { n } _ { v } \\times d _ { x } } , \\widetilde { n } _ { v } \\in \\widetilde { N } _ { i } , v \\in V _ { i } \\}$ e e. Both dGen and fGen are constructed as fully connected neural networks e(FNNs), while fGen is further equipped with a Gaussian noise generator $\\mathbf { N } ( 0 , 1 )$ that generates $d _ { z }$ -dimensional noise vectors and a random sampler $R$ . For node $v \\in V _ { i }$ , fGen is variational, which generates the missing neighbors’ features for $v$ after inserting noises into the embedding $z _ { v }$ , while $R$ ensures fGen to output the features of a specific number of neighbors by sampling $\\widetilde { n } _ { v }$ feature vectors from the feature generator’s output. Mathematically, we have ",
615
+ "bbox": [
616
+ 173,
617
+ 455,
618
+ 825,
619
+ 604
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "equation",
625
+ "img_path": "images/79bc247abed1cc31ee0df1f00215aee30e5b001b4bb5a4ce3ee0c252b37d2fba.jpg",
626
+ "text": "$$\n\\widetilde { n } _ { v } = \\sigma ( ( { \\boldsymbol { \\theta } } ^ { d } ) ^ { T } \\cdot { \\boldsymbol { n } } _ { v } ) , \\operatorname { a n d } \\widetilde { x } _ { v } = R \\left( \\sigma \\left( ( { \\boldsymbol { \\theta } } ^ { f } ) ^ { T } \\cdot ( z _ { v } + \\mathbf { N } ( 0 , 1 ) ) \\right) , \\widetilde { { \\boldsymbol { n } } } _ { v } \\right) .\n$$",
627
+ "text_format": "latex",
628
+ "bbox": [
629
+ 274,
630
+ 613,
631
+ 723,
632
+ 633
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "Graph mending simulation. For each data owner in our system, we assume that only a particular set of nodes have cross-subgraph missing neighbors. The assumption is realistic yet non-trivial for it both seizing the quiddity of the distributed subgraph system, and allowing us to locally simulate the missing neighbor situation through a graph impairing and mending process. Specifically, to simulate a graph mending process during the training of NeighGen, in each local subgraph $G _ { i }$ , we randomly hold out $h \\%$ of its nodes $V _ { i } ^ { h } \\subset V _ { i }$ and all links involving them $E _ { i _ { - } } ^ { h } = \\{ e _ { u v } | u \\stackrel { - } { \\in } \\bar { V } _ { i } ^ { h }$ or $v \\in V _ { i } ^ { h } \\} \\subset \\mathsf { \\bar { E } } _ { i }$ , to form an impaired subgraph, denoted as $\\bar { G } _ { i }$ . $\\bar { G } _ { i } = \\mathsf { \\bar { \\{ V } } _ { i } , \\bar { E } _ { i } , \\bar { X } _ { i } \\}$ contains the impaired set of nodes $\\bar { V } _ { i } = V _ { i } \\setminus V _ { i } ^ { h }$ , the corresponding nodes features ${ \\bar { X } } _ { i } = X _ { i } \\setminus X _ { i } ^ { h }$ and edges $\\bar { E } _ { i } = E _ { i } \\setminus E _ { i } ^ { h }$ . ",
639
+ "bbox": [
640
+ 173,
641
+ 647,
642
+ 825,
643
+ 762
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "Accordingly, based on the ground-truth missing nodes $V _ { i } ^ { h }$ and links $E _ { i } ^ { h }$ , the training of NeighGen on the impaired graph $\\bar { G } _ { i }$ boils down to jointly training dGen and fGen as below. ",
650
+ "bbox": [
651
+ 173,
652
+ 767,
653
+ 825,
654
+ 797
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "equation",
660
+ "img_path": "images/ef49b9eeb87b61c156c2684751f387a8a2a0424ce5dc16f677e89bd55d24baed.jpg",
661
+ "text": "$$\n\\mathcal { L } ^ { n } = \\lambda ^ { d } \\mathcal { L } ^ { d } + \\lambda ^ { f } \\mathcal { L } ^ { f } = \\lambda ^ { d } \\frac { 1 } { | \\bar { V } _ { i } | } \\sum _ { v \\in \\bar { V } _ { i } } L _ { 1 } ^ { S } \\big ( \\widetilde { n } _ { v } - n _ { v } \\big ) + \\lambda ^ { f } \\frac { 1 } { | \\bar { V } _ { i } | } \\sum _ { v \\in \\bar { V } _ { i } } \\sum _ { p \\in \\{ \\widetilde { n } _ { v } \\} } \\operatorname* { m i n } _ { u \\in \\mathcal { N } _ { G _ { i } } ( v ) \\cap V _ { i } ^ { h } } ( | | \\widetilde { x } _ { v } ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) ,\n$$",
662
+ "text_format": "latex",
663
+ "bbox": [
664
+ 184,
665
+ 820,
666
+ 794,
667
+ 857
668
+ ],
669
+ "page_idx": 4
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "where $L _ { 1 } ^ { S }$ is the smooth L1 distance [10] and $\\mathcal { \\widetilde { x } } _ { v } ^ { p } \\in \\mathbb { R } ^ { d _ { x } }$ is the $p$ -th predicted feature in $\\widetilde { x } _ { v }$ . Note that, $\\mathcal { N } _ { G _ { i } } ( v ) \\cap V _ { i } ^ { h }$ contains $n _ { v }$ nodes that are $v$ e’s neighbors on $G _ { i }$ missing into $V _ { i } ^ { h }$ . $\\mathcal { N } _ { G _ { i } } ( v ) \\cap V _ { i } ^ { h }$ , which can be retrieved from $V _ { i } ^ { h }$ and $E _ { i } ^ { h }$ , provides ground-truth for training NeighGen. ",
674
+ "bbox": [
675
+ 176,
676
+ 864,
677
+ 825,
678
+ 912
679
+ ],
680
+ "page_idx": 4
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Neighbor Generation. To retrieve $G _ { i } ^ { \\prime }$ from $G _ { i }$ , data owner $D _ { i }$ performs two steps, which are also shown in Fig. 2: 1) $D _ { i }$ trains NeighGen on the impaired graph $\\bar { G } _ { i }$ w.r.t. the ground-true hidden neighbors ${ \\bar { V } } _ { i } ^ { \\breve { h } }$ ; 2) $D _ { i }$ exploits NeighGen to generate missing neighbors for nodes on $G _ { i }$ and then mends $G _ { i }$ into $G _ { i } ^ { \\prime }$ with generated neighbors. On the local graph $G _ { i }$ alone, this process can be understood as a data augmentation that further generates potential missing neighbors within $G _ { i }$ . However, the actual goal is to allow NeighGen to generate the cross-subgraph missing neighbors, which can be achieved via training NeighGen with FL and will be discussed in Section 4.3. ",
685
+ "bbox": [
686
+ 173,
687
+ 90,
688
+ 826,
689
+ 189
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "4.2 Local Joint Training of GraphSage and NeighGen ",
696
+ "text_level": 1,
697
+ "bbox": [
698
+ 174,
699
+ 204,
700
+ 562,
701
+ 219
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "While NeighGen is designed to recover missing neighbors, the final goal of our system is to train a node classifier. Therefore, we design the joint training of GraphSage and NeighGen, which leverages neighbors generated by NeighGen to assist the node classification by GraphSage. We term the integration of GraphSage and NeighGen on the local graphs as LocSage+. ",
708
+ "bbox": [
709
+ 173,
710
+ 229,
711
+ 825,
712
+ 286
713
+ ],
714
+ "page_idx": 5
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "After NeighGen mends the graph $G _ { i }$ into $G _ { i } ^ { \\prime }$ , the GraphSage classifier $F$ is applied on $G _ { i } ^ { \\prime }$ , according to Eq. (1) (with $G _ { i }$ replaced by $G _ { i } ^ { \\prime }$ ). Thus, the joint training of NeighGen and GraphSage is done by optimizing the following loss function ",
719
+ "bbox": [
720
+ 174,
721
+ 290,
722
+ 823,
723
+ 333
724
+ ],
725
+ "page_idx": 5
726
+ },
727
+ {
728
+ "type": "equation",
729
+ "img_path": "images/76964aabfba4b61b492d8ad6d90c870279bd7dda781e1fbe4d5ee7a1ab37dd2e.jpg",
730
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } ^ { n } + \\lambda ^ { c } \\mathcal { L } ^ { c } = \\lambda ^ { d } \\mathcal { L } ^ { d } + \\lambda ^ { f } \\mathcal { L } ^ { f } + \\lambda ^ { c } \\mathcal { L } ^ { c } ,\n$$",
731
+ "text_format": "latex",
732
+ "bbox": [
733
+ 356,
734
+ 338,
735
+ 640,
736
+ 356
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "where ${ \\mathcal { L } } ^ { d }$ and $\\mathcal { L } ^ { f }$ are defined in Eq. (4), and $\\mathcal { L } ^ { c }$ is defined in Eq. (2) (with $G _ { i }$ substituted by $G _ { i } ^ { \\prime }$ ",
743
+ "bbox": [
744
+ 171,
745
+ 363,
746
+ 802,
747
+ 378
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "The local joint training of GraphSage and NeighGen allows NeighGen to generate missing neighbors in the local graph that are helpful for the classifications made by GraphSage. However, like GraphSage, the information encoded in the local NeighGen is limited to and biased towards the local graph, which does not enable it to really generate neighbors belonging to other data owners connected by the missing cross-subgraph links. To this end, it is natural to train NeighGen with $\\mathrm { F L }$ as well. ",
754
+ "bbox": [
755
+ 174,
756
+ 383,
757
+ 826,
758
+ 454
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "4.3 Federated Learning of GraphSage and NeighGen ",
765
+ "text_level": 1,
766
+ "bbox": [
767
+ 174,
768
+ 469,
769
+ 555,
770
+ 486
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Similarly to GraphSage alone, as described in Section 3.2, we can apply FedAvg to the joint training of GraphSage and NeighGen, by setting the loss function to $\\mathcal { L }$ and learnable parameters to $\\{ \\theta ^ { e } , \\theta ^ { d } , \\theta ^ { f } , \\phi \\}$ . However, we observe that cooperation through directly averaging weights of NeighGen across the system can negatively affect its performance, i.e., averaging the weights of a single NeighGen model does not really allow it to generate diverse neighbors from different subgraphs. Recalling our goal of constructing NeighGen, which is to facilitate the training of a centralized GraphSage classifier by generating diverse missing neighbors in each subgraph, we do not necessarily need a centralized NeighGen. Therefore, instead of training a single centralized NeighGen, we train a local NeighGeni for each data owner $D _ { i }$ . In order to allow each NeighGeni to generate diverse neighbors similar to those missed into other subgraphs $G _ { j } , j \\in [ M ] \\backslash \\{ i \\}$ , we add a cross-subgraph feature reconstruction loss into $\\mathrm { f G e n } _ { i }$ as follows: ",
777
+ "bbox": [
778
+ 173,
779
+ 494,
780
+ 826,
781
+ 647
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "equation",
787
+ "img_path": "images/19b9cbadec4d5d1e0024391d82beafab0220d0ad072559a9cbb9191b94554267.jpg",
788
+ "text": "$$\n\\mathcal { L } _ { i } ^ { f } = \\frac { 1 } { \\lvert \\overline { { V _ { i } } } \\rvert } \\sum _ { v \\in \\bar { V } _ { i } } \\sum _ { p \\in [ \\tilde { n } _ { v } ] } \\left( \\operatorname* { m i n } _ { u \\in N _ { G _ { i } } ( v ) \\cap V _ { i } ^ { h } } ( \\lvert | \\widetilde { x } _ { v } ^ { p } - x _ { u } \\rvert | _ { 2 } ^ { 2 } ) + \\alpha \\sum _ { j \\in [ M ] / i } \\operatorname* { m i n } _ { u \\in V _ { j } } ( \\lvert | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } \\rvert | _ { 2 } ^ { 2 } ) \\right) ,\n$$",
789
+ "text_format": "latex",
790
+ "bbox": [
791
+ 214,
792
+ 661,
793
+ 782,
794
+ 707
795
+ ],
796
+ "page_idx": 5
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "where $u \\in V _ { j } , \\forall j \\in [ M ] \\setminus \\{ i \\}$ is picked as the closest node from $G _ { j }$ other than $G _ { i }$ to simulate the neighbor of $v \\in { \\bar { V } } _ { i }$ missed into $G _ { j }$ . ",
801
+ "bbox": [
802
+ 176,
803
+ 708,
804
+ 821,
805
+ 738
806
+ ],
807
+ "page_idx": 5
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "As shown above, to optimize Eq. (6), $D _ { i }$ needs to pick the closest $u$ from $G _ { j }$ . However, directly transmitting node features $X _ { j }$ in $D _ { j }$ to $D _ { i }$ not only violates our subgraph FL system constraints on no direct data sharing but also is impractical in reality, as it requires each $D _ { i }$ to hold the entire global graph’s node features throughout training ${ \\mathrm { N e i g h G e n } } _ { i }$ . Therefore, to allow $D _ { i }$ to update ${ \\mathrm { N e i g h G e n } } _ { i }$ using Eq. (6) without direct access to $X _ { j }$ , for $v \\in { \\bar { V } } _ { i }$ , $D _ { j }$ locally computes $\\begin{array} { r } { \\sum _ { p \\in [ \\widetilde { n } _ { v } ] } \\operatorname* { m i n } _ { u \\in V _ { j } } ( | | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) } \\end{array}$ and sends the respective gradient back to $D _ { i }$ . ",
812
+ "bbox": [
813
+ 173,
814
+ 743,
815
+ 826,
816
+ 830
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "During this process, for $v \\in \\bar { V } _ { i }$ , to federated optimize Eq. (6), only $H _ { i } ^ { g }$ , $H _ { i } ^ { g }$ ’s input $z _ { v }$ , and the $D _ { j }$ ’s locally computed model gradients of loss term $\\begin{array} { r } { \\sum _ { p \\in [ \\tilde { n } _ { v } ] } \\operatorname* { m i n } _ { u \\in V _ { j } } ( | | H _ { i } ^ { g } ( z _ { v } ) ^ { p } - x _ { u } | | _ { 2 } ^ { 2 } ) } \\end{array}$ are transmitted among the system via the server $S$ e. For data owner $D _ { i }$ , the gradients received from $D _ { j }$ are then weighted by $\\alpha$ and combined with the local gradients as in Eq. (6) to update the parameters of $H _ { i } ^ { g }$ of NeighGeni In this way, $D _ { i }$ achieves the federate training of ${ \\mathrm { N e i g h G e n } } _ { i }$ without raw graph data sharing. Note that, due to NeighGen’s architecture of a concatenation of $H ^ { e }$ and $H ^ { g }$ , the locally preserved GNN $H _ { i } ^ { e }$ can prevent other data owners from inferring $x _ { v }$ by only seeing $z _ { v }$ . Through Eq. (6), NeighGen $_ { \\cdot i }$ is expected to perceive diverse neighborhood information from all data owners, so as to generate more realistic cross-subgraph missing neighbors. The expectedly diverse and unbiased neighbors further assist the FedSage in training a globally applicable classifier that satisfies our goal in Section 3.1. ",
823
+ "bbox": [
824
+ 174,
825
+ 837,
826
+ 825,
827
+ 911
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "",
834
+ "bbox": [
835
+ 174,
836
+ 90,
837
+ 825,
838
+ 174
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Note that, to reduce communications and computation time incurred by Eq. (6), batch training can be applied. Appendix A shows the pseudo code of FedSage+. ",
845
+ "bbox": [
846
+ 174,
847
+ 181,
848
+ 823,
849
+ 209
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "5 Experiments ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 174,
859
+ 219,
860
+ 312,
861
+ 237
862
+ ],
863
+ "page_idx": 6
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "We conduct experiments on four datasets to verify the effectiveness of FedSage and FedSage+ under different testing scenarios. We further conduct case studies to visualize how FedSage and FedSage+ assist local data owners in accommodating queries from the global distribution. Finally, we also provide more in-depth studies on the effectiveness of NeighGen in Appendix D. ",
868
+ "bbox": [
869
+ 174,
870
+ 251,
871
+ 825,
872
+ 306
873
+ ],
874
+ "page_idx": 6
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "5.1 Datasets and experimental settings ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 176,
882
+ 315,
883
+ 454,
884
+ 329
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "We synthesize the distributed subgraph system with four widely used real-world graph datasets, i.e., Cora [25], Citeseer [25], PubMed [22], and MSAcademic [26]. To synthesize the distributed subgraph system, we find hierarchical graph clusters on each dataset with the Louvain algorithm [2] and use the clustering results with 3, 5, and 10 clusters of similar sizes to obtain subgraphs for data owners. The statistics of these datasets are presented in Table 1. ",
891
+ "bbox": [
892
+ 174,
893
+ 340,
894
+ 825,
895
+ 410
896
+ ],
897
+ "page_idx": 6
898
+ },
899
+ {
900
+ "type": "table",
901
+ "img_path": "images/323b180efc1821974e30e47553dfeeef4fecb7e673816dc52fcad63a161121c8.jpg",
902
+ "table_caption": [
903
+ "Table 1: Statistics of the datasets and the synthesized distributed subgraph systems with $M = 3$ , 5, and $1 0 . \\# \\mathrm { C }$ row shows the number of classes, $| V _ { i } |$ and $| E _ { i } |$ rows show the averaged numbers of nodes and links in all subgraphs, and $\\Delta E$ shows the total number of missing cross-subgraph links. "
904
+ ],
905
+ "table_footnote": [],
906
+ "table_body": "<table><tr><td>Data</td><td colspan=\"3\">Cora</td><td colspan=\"3\">Citeseer</td><td colspan=\"3\">PubMed</td><td colspan=\"3\">MSAcademic</td></tr><tr><td>#C |V</td><td colspan=\"3\"></td><td colspan=\"3\">6</td><td colspan=\"3\">3</td><td colspan=\"3\">15</td></tr><tr><td></td><td colspan=\"3\"></td><td colspan=\"3\">3312</td><td colspan=\"3\">19717</td><td colspan=\"3\">18333</td></tr><tr><td>|E</td><td colspan=\"3\">5429</td><td colspan=\"3\">4715</td><td colspan=\"3\">44338</td><td colspan=\"3\">81894</td></tr><tr><td>M</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td><td>3</td><td>5</td><td>10</td></tr><tr><td>Vil</td><td>903</td><td>542</td><td>271</td><td>1104</td><td>662</td><td>331</td><td>6572</td><td>3943</td><td>1972</td><td>6111</td><td>3667</td><td>1833</td></tr><tr><td>E</td><td>1675</td><td>968</td><td>450</td><td>1518</td><td>902</td><td>442</td><td>12932</td><td>7630</td><td>3789</td><td>23584</td><td>13949</td><td>5915</td></tr><tr><td>△E</td><td>403</td><td>589</td><td>929</td><td>161</td><td>206</td><td>300</td><td>5543</td><td>6189</td><td>6445</td><td>11141</td><td>12151</td><td>22743</td></tr></table>",
907
+ "bbox": [
908
+ 178,
909
+ 462,
910
+ 818,
911
+ 592
912
+ ],
913
+ "page_idx": 6
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "We implement GraphSage with two layers using the mean aggregator [5]. The number of nodes sampled in each layer of GraphSage is 5. We use batch size 64 and set training epochs to 50. The training-validation-testing ratio is $6 0 \\% - 2 0 \\% - 2 0 \\%$ due to limited sizes of local subgraphs. Based on our observations in hyper-parameter studies for $\\alpha$ and the graph impairing ratio $h$ , we set $h \\% \\in [ 3 . 4 \\% , 2 7 . 8 \\% ]$ and $\\alpha { = } 1$ . All $\\lambda s$ are simply set to 1. Optimization is done with Adam with a learning rate of 0.001. We implement FedSage and FedSage $^ +$ in Python and execute all experiments on a server with 8 NVIDIA GeForce GTX 1080 Ti GPUs. ",
918
+ "bbox": [
919
+ 173,
920
+ 593,
921
+ 825,
922
+ 690
923
+ ],
924
+ "page_idx": 6
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Since we are the first to study the novel yet important setting of subgraph federated learning, there are no existing baselines. We conduct comprehensive ablation evaluation by comparing FedSage and FedSage+ with three models, i.e., 1) GlobSage: the GraphSage model trained on the original global graph without missing links (as an upper bound for FL framework with GraphSage model alone), 2) LocSage: one GraphSage model trained solely on each subgraph, 3) LocSage+: the GraphSage plus NeighGen model jointly trained solely on each subgraph. ",
929
+ "bbox": [
930
+ 174,
931
+ 696,
932
+ 825,
933
+ 781
934
+ ],
935
+ "page_idx": 6
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "The metric used in our experiments is the node classification accuracy on the queries sampled from the testing nodes on the global graph. For globally shared models of GlobSage, FedSage, and FedSage+, we report the average accuracy over five random repetitions, while for locally possessed models of LocSage and LocSage+, the scores are further averaged across local models. ",
940
+ "bbox": [
941
+ 174,
942
+ 786,
943
+ 825,
944
+ 842
945
+ ],
946
+ "page_idx": 6
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "5.2 Experimental results ",
951
+ "text_level": 1,
952
+ "bbox": [
953
+ 174,
954
+ 858,
955
+ 357,
956
+ 872
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Overall performance. We conduct comprehensive ablation experiments to verify the significant promotion brought by FedSage and FedSage $^ +$ for local owners in global node classification, as ",
963
+ "bbox": [
964
+ 174,
965
+ 883,
966
+ 821,
967
+ 911
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "table",
973
+ "img_path": "images/5b19bfedcb0a06bf44140d1411833d4c4b736cf99487367f89f09ba5ce727742.jpg",
974
+ "table_caption": [
975
+ "Table 2: Node classification results on four datasets with $M = 3 , 5$ , and 10. Besides averaged accuracy, we also provide the corresponding std. "
976
+ ],
977
+ "table_footnote": [],
978
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"3\">Cora</td><td colspan=\"3\">Citesser</td></tr><tr><td>M=3</td><td>M=5</td><td>M=10</td><td>M=3</td><td>M=5</td><td>M=10</td></tr><tr><td>LocSage</td><td>0.5762 (±0.0302)</td><td>0.4431 (±0.0847)</td><td>0.2798 (±0.0080)</td><td>0.6789 (±0.054)</td><td>0.5612 (±0.086)</td><td>0.4240 (±0.0859)</td></tr><tr><td>LocSage+</td><td>0.5644 (±0.0219)</td><td>0.4533 (±0.047)</td><td>0.2851 (±0.0080)</td><td>0.6848 (±0.0517)</td><td>0.5676 (±0.0714)</td><td>0.4323 (±0.0715)</td></tr><tr><td>FedSage</td><td>0.8656 (±0.0043)</td><td>0.8645 (±0.0050)</td><td>0.8626 (±0.0103)</td><td>0.7241 (±0.0022)</td><td>0.7226 ±0.0066)</td><td>0.7158 (±0.0053)</td></tr><tr><td>FedSage+</td><td>0.8686 (±0.0054)</td><td>0.8648 (±0.0051)</td><td>0.8632 (±0.0034)</td><td>0.7454 (±0.0038)</td><td>0.7440 (±0.0025)</td><td>0.7392 (±0.0041)</td></tr><tr><td>GlobSage</td><td colspan=\"3\">0.8701 (±0.0042)</td><td colspan=\"3\">0.7561 (±0.0031)</td></tr><tr><td></td><td colspan=\"3\">PubMed</td><td colspan=\"3\">MSAcademic</td></tr><tr><td>Model LocSage</td><td>M=3 0.8447</td><td>M=5 0.8039</td><td>M=10 0.7148</td><td>M=3 0.8188</td><td>M=5 0.7426</td><td>M=10 0.5918</td></tr><tr><td>LocSage+</td><td>(±0.0047) 0.8481</td><td>(±0.0337) 0.8046</td><td>(±0.0951) 0.7039</td><td>(±0.0331) 0.8393</td><td>(±0.0790) 0.7480</td><td>(±0.1005) 0.5927</td></tr><tr><td>FedSage</td><td>(±0.0041) 0.8708</td><td>(±0.0318) 0.8696</td><td>(±0.0925) 0.8692</td><td>(±0.0330) 0.9327</td><td>(±0.0810) 0.9391</td><td>(±0.1094) 0.9262</td></tr><tr><td>FedSage+</td><td>(±0.0014) 0.8775</td><td>(±0.0035) 0.8755</td><td>(±0.0010) 0.8749 (±0.0013)</td><td>(±0.0005) 0.9359</td><td>(±0.0007) 0.9414</td><td>(±0.0009) 0.9314</td></tr><tr><td>GlobSage</td><td colspan=\"3\">(±0.0012) (±0.0047) 0.8776(±0.0011)</td><td colspan=\"3\">(±0.0005) (±0.0006) (±0.0009) 0.9681(±0.0006)</td></tr></table>",
979
+ "bbox": [
980
+ 209,
981
+ 126,
982
+ 789,
983
+ 454
984
+ ],
985
+ "page_idx": 7
986
+ },
987
+ {
988
+ "type": "image",
989
+ "img_path": "images/f5d09c56497904b9874f53707008c0a9fc33ff3d97d4bd643722125b8b83b440.jpg",
990
+ "image_caption": [
991
+ "Figure 3: Node classification results on four datasets under different $\\alpha$ and $h$ values with $M { = } 3$ "
992
+ ],
993
+ "image_footnote": [],
994
+ "bbox": [
995
+ 181,
996
+ 491,
997
+ 467,
998
+ 666
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "image",
1004
+ "img_path": "images/d8edc2a8c89aa1b7af1e5c37f6bdd3d4ca1a825535041dd7cb01087d1f167ea4.jpg",
1005
+ "image_caption": [
1006
+ "(b) Hyper-parameter study for $h$ with $\\alpha = 1$ "
1007
+ ],
1008
+ "image_footnote": [],
1009
+ "bbox": [
1010
+ 509,
1011
+ 491,
1012
+ 795,
1013
+ 666
1014
+ ],
1015
+ "page_idx": 7
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "(a) Hyper-parameter study for $\\alpha$ with $h = 1 5 \\%$ . ",
1020
+ "bbox": [
1021
+ 191,
1022
+ 675,
1023
+ 475,
1024
+ 689
1025
+ ],
1026
+ "page_idx": 7
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "shown in Table 2. The most important observation emerging from the results is that FedSage+ not only clearly outperforms LocSage by an average of $2 3 . 1 8 \\%$ , but also distinctly overcomes the cross-subgraph missing neighbor problem by reducing the average accuracy drop from the $2 . 1 1 \\%$ of FedSage to $1 . 2 8 \\%$ , when compared with GlobSage (absolute accuracy difference). ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 724,
1034
+ 825,
1035
+ 780
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "The significant gaps between a locally obtained classifier, i.e., LocSage or LocSage+, and a federated trained classifier, i.e., FedSage or FedSage+, assay the benefits brought by the collaboration across data owners in our distributed subgraph system. Compared to FedSage, the further elevation brought by FedSage+ corroborates the assumed degeneration brought by missing cross-subgraph links and the effectiveness of our innovatively designed NeighGen module. Notably, when the graph is relatively sparse (e.g., see Citeseer in Table 1), FedSage $^ +$ significantly exhibits its robustness in resisting the cross-subgraph information loss compared to FedSage. Note that the gaps between LocSage and LocSage $^ +$ are comparatively smaller, indicating that our NeighGen serves more than a robust GNN trainer, but is rather uniquely crucial in the subgraph FL setting. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 786,
1045
+ 825,
1046
+ 911
1047
+ ],
1048
+ "page_idx": 7
1049
+ },
1050
+ {
1051
+ "type": "image",
1052
+ "img_path": "images/340fed2f9eb7820c32f1356b372f58b89eaf0278e38ddb1d7e0e43f7fd227aa5.jpg",
1053
+ "image_caption": [
1054
+ "Figure 4: Label distributions on the PubMed dataset with $M { = } 5$ . "
1055
+ ],
1056
+ "image_footnote": [],
1057
+ "bbox": [
1058
+ 173,
1059
+ 114,
1060
+ 800,
1061
+ 242
1062
+ ],
1063
+ "page_idx": 8
1064
+ },
1065
+ {
1066
+ "type": "image",
1067
+ "img_path": "images/d9a0dba0d4f8b0360ca2fc6ffa8f34e11572c41664b2723573d2450a8cc02308.jpg",
1068
+ "image_caption": [
1069
+ "Figure 5: Training curves of different frameworks (GlobSage provides an upper bound). "
1070
+ ],
1071
+ "image_footnote": [],
1072
+ "bbox": [
1073
+ 176,
1074
+ 296,
1075
+ 805,
1076
+ 434
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Hyper-parameter studies. We compare the downstream task performance under different $\\alpha$ and $h$ values with three data owners. Results are shown in Fig. 3, where Fig. 3 (a) shows results when $h$ is fixed as $15 \\%$ , and Fig. 3 (b) shows results under $\\alpha { = } 1$ . ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 469,
1086
+ 825,
1087
+ 511
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Fig. 3 (a) indicates that choosing a proper $\\alpha$ , which brings the information from other subgraphs in the system, can constantly elevate the final testing accuracy. Across different datasets, the optimal $\\alpha$ is constantly around 1, and the performance is not influenced much unless $\\alpha$ is set to extreme values like 0.1 or 10. Referring to Fig. 3 (b), we can observe that either a too-small $( 1 \\% )$ or a too-large $( 3 0 \\% )$ hiding portion can degrade the learning process. A too-small $h$ can not provide sufficient data for training NeighGen, while a too-large $h$ can result in sparse local subgraphs that harm the effective training of GraphSage. Referring back to the graph statistics in Table 1 in the paper, the portion of actual missing edges compared to the global graph is within the range of $[ 3 . 4 \\%$ , $2 7 . 8 \\% ]$ , which explains why a value like $15 \\%$ can mostly boost the performance of FedSage+. ",
1094
+ "bbox": [
1095
+ 173,
1096
+ 517,
1097
+ 825,
1098
+ 642
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "Case studies. To further understand how FedSage and ${ \\mathrm { F e d S a g e } } +$ improve the global classifier over LocSage, we provide case study results on PubMed with five data owners in Fig. 4. For the studied scenario, each data owner only possesses about $20 \\%$ of the nodes with rather biased label distributions, as shown in Fig. 4 (a). Such bias is due to the way we synthesize the distributed subgraph system with Louvain clustering, which is also realistic in real scenarios. Local bias essentially makes it hard for any local data owner with limited training samples to obtain a generalized classifier that is globally useful. Although with $1 3 . 9 \\%$ of the links missing among the system, both FedSage and FedSage+ empower local data owners in predicting labels that closely follow the ground-true global label distribution as shown in Fig. 4 (b). The figure clearly evidences that our FL models exhibit their advantages in learning a more realistic label distribution as our goal in Section 3.1, which is consistent with the observed performances in Table 2 and our theoretical implications in Section 6. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 660,
1108
+ 825,
1109
+ 811
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "For Cora dataset with five data owners, we visualize testing accuracy, loss convergence, and runtime along 100 epochs in obtaining $F$ with FedSage, FedSage+, GlobSage, LocSage and LocSage+. The results are presented in Fig. 5. Both FedSage and FedSage+ can consistently achieve convergence with rapidly improved testing accuracy. Regarding runtime, even though the classifier from FedSage+ learns from distributed mended subgraphs, FedSage+ does not consume observable more training time compared to FedSage. Due to the additional communications and computations in subgraph FL, both FedSage and FedSage $^ +$ consume slightly more training time compared to GlobSage. ",
1116
+ "bbox": [
1117
+ 174,
1118
+ 819,
1119
+ 825,
1120
+ 916
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "6 Implications on Generalization Bound ",
1127
+ "text_level": 1,
1128
+ "bbox": [
1129
+ 174,
1130
+ 88,
1131
+ 524,
1132
+ 106
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "In this section, we provide a theoretical implication for the generalization error associated with number of training samples, i.e., nodes in the distributed subgraph system, following Graph Neural Tangent Kernel (GNTK) [7] on universal graph neural networks. Thus, we are motivated to promote the FedSage and FedSage+ algorithms that include more nodes in the global graph through collaborative training with FL. ",
1139
+ "bbox": [
1140
+ 174,
1141
+ 113,
1142
+ 825,
1143
+ 183
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Setting. Our explanation builds on a generalized setting, where we assume a GNN $F$ with layerwise aggregation operations and fully-connected layers with ReLU activation functions, which includes GraphSage as a special case. The weights of $F$ , $\\phi$ , is i.i.d. sampled from a multivariate Gaussian distribution $\\mathbf { N } ( 0 , I )$ . For Graph $G = \\{ \\bar { V } , E , X \\}$ , we define the kernel matrix of two nodes $u , v \\in V$ as follows. Here we consider $F$ is in the GNTK format. ",
1150
+ "bbox": [
1151
+ 173,
1152
+ 193,
1153
+ 825,
1154
+ 262
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Definition 6.1 (Informal version of GNTK on node classification (Definition B.2)) Considering in the overparameterized regime for an GNN $F$ , $F$ is trained using gradient descent with infinite small learning rate. Given n nodes with corresponding labels as training samples, we denote $\\boldsymbol { \\Theta } \\in \\mathbb { R } ^ { n \\times n }$ as the the kernel matrix of GNTK. $\\mathbf { \\Theta } _ { \\mathbf { \\Theta } } \\Theta _ { u v }$ is defined as ",
1161
+ "bbox": [
1162
+ 173,
1163
+ 268,
1164
+ 825,
1165
+ 324
1166
+ ],
1167
+ "page_idx": 9
1168
+ },
1169
+ {
1170
+ "type": "equation",
1171
+ "img_path": "images/18416646faaf1174abb3ac90b2b23d14591b62732d9c03c75243521bef625a64.jpg",
1172
+ "text": "$$\n\\Theta _ { u v } = \\mathbb { E } _ { \\phi \\sim { \\bf N } ( 0 , I ) } \\left[ \\left. \\frac { \\partial F ( \\phi , G , u ) } { \\partial \\phi } , \\frac { F ( \\phi , G , v ) } { \\partial \\phi } \\right. \\right] \\in \\mathbb { R } .\n$$",
1173
+ "text_format": "latex",
1174
+ "bbox": [
1175
+ 313,
1176
+ 327,
1177
+ 684,
1178
+ 361
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Full expression of $\\Theta$ is shown in the Appendix B. The generalization ability in the GNTK regime depends on the kernel matrix $\\Theta$ . We present the generalization bound associated with the number of training samples $n$ in Theorem 6.2. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 369,
1188
+ 825,
1189
+ 411
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Theorem 6.2 (Generalization bound) Given n training samples of nodes $\\left( u _ { i } , y _ { i } \\right) _ { i = 1 } ^ { n }$ drawn i.i.d. from the global graph $G$ , consider any loss function $l : \\mathbb { R } \\times \\mathbb { R } \\mapsto [ 0 , 1 ]$ that is $^ { l }$ -Lipschitz in the first argument such that $l ( y , y ) = 0$ . With probability at least $1 - \\sigma$ and constant $c \\in ( 0 , 1 )$ , the generalization error of GNTK for node classification can be upper-bounded by ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 417,
1199
+ 825,
1200
+ 473
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "equation",
1206
+ "img_path": "images/65d065220f1e80b8760b6520b0378618b7ece2a39e7c73bb7466bad032b75ef3.jpg",
1207
+ "text": "$$\nL _ { { \\mathcal { D } } ( F ) } = \\mathbb { E } _ { ( u ^ { \\prime } , y ) \\sim G } [ l ( F ( G , u ^ { \\prime } ) , y ) ] \\lesssim O ( 1 / n ^ { c } ) .\n$$",
1208
+ "text_format": "latex",
1209
+ "bbox": [
1210
+ 338,
1211
+ 476,
1212
+ 656,
1213
+ 494
1214
+ ],
1215
+ "page_idx": 9
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Following the generalization bound analysis in [7], we use a standard generalization bound of kernel methods of [1], which shows the upper bound of our GNTK formation error depends on that of $\\mathbf { y } ^ { \\top } \\Theta ^ { ( - 1 ) } \\mathbf { y }$ and $\\operatorname { t r } ( \\Theta )$ , where $\\mathbf { y }$ is the label vector. Appendix C shows the full version of the proofs. ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 501,
1223
+ 826,
1224
+ 546
1225
+ ],
1226
+ "page_idx": 9
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Implications. We show the error bound of GNTK on node classification corresponding to the number of training samples. Under the assumptions in Definition 6.1, our theoretical result indicates that more training samples bring down the generalization error , which provides plausible support for our goal of building a globally useful classifier through FL in Eq. (3.1). Such implications are also consistent with our experimental findings in Fig. 4 where our FedSage and FedSage+ models can learn more generalizable classifiers that follow the label distributions of the global graph through involving more training nodes across different subgraphs. ",
1231
+ "bbox": [
1232
+ 173,
1233
+ 554,
1234
+ 825,
1235
+ 654
1236
+ ],
1237
+ "page_idx": 9
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "7 Conclusion ",
1242
+ "text_level": 1,
1243
+ "bbox": [
1244
+ 174,
1245
+ 665,
1246
+ 299,
1247
+ 681
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "This work aims at obtaining a generalized node classification model in a distributed subgraph system without direct data sharing. To tackle the realistic yet unexplored issue of missing cross-subgraph links, we design a novel missing neighbor generator NeighGen with the corresponding local and federated training processes. Experimental results evidence the distinguished elevation brought by our FedSage and FedSage $^ +$ frameworks , which is consistent with our theoretical implications. ",
1254
+ "bbox": [
1255
+ 174,
1256
+ 688,
1257
+ 825,
1258
+ 758
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Though FedSage manifests advantageous performance, it confronts additional communication cost and potential privacy concerns. As communications are vital for federated learning, properly reducing communication and rigorously guaranteeing privacy protection in the distributed subgraph system can both be promising future directions. ",
1265
+ "bbox": [
1266
+ 173,
1267
+ 765,
1268
+ 825,
1269
+ 820
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Acknowledgments and Disclosure of Funding ",
1276
+ "text_level": 1,
1277
+ "bbox": [
1278
+ 174,
1279
+ 838,
1280
+ 555,
1281
+ 856
1282
+ ],
1283
+ "page_idx": 9
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "This work is partially supported by the internal funding and GPU servers provided by the Computer Science Department of Emory University. We thank Dr. Pan Li from Purdue University for the suggestions on the design of our NeighGen mechanism. ",
1288
+ "bbox": [
1289
+ 176,
1290
+ 868,
1291
+ 823,
1292
+ 911
1293
+ ],
1294
+ "page_idx": 9
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "References \n[1] Peter L Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. JMLR, 3:463–482, 2002. \n[2] Vincent D Blondel, Jean-Loup Guillaume, Renaud Lambiotte, and Etienne Lefebvre. Fast unfolding of communities in large networks. JSTAT, 2008(10):P10008, 2008. \n[3] Liang Chen, Jintang Li, Qibiao Peng, Yang Liu, Zibin Zheng, and Carl Yang. Understanding structural vulnerability in graph convolutional networks. In IJCAI, 2021. \n[4] Hanjun Dai, Hui Li, Tian Tian, Xin Huang, Lin Wang, Jun Zhu, and Le Song. Adversarial attack on graph structured data. In ICML, 2018. \n[5] CSIRO’s Data61. Stellargraph machine learning library. https://github.com/ stellargraph/stellargraph, 2018. \n[6] Qi Dou, Tiffany Y So, Meirui Jiang, Quande Liu, Varut Vardhanabhuti, Georgios Kaissis, Zeju Li, Weixin Si, Heather HC Lee, Kevin Yu, et al. Federated deep learning for detecting covid-19 lung abnormalities in ct: a privacy-preserving multinational validation study. NPJ digital medicine, 4:1–11, 2021. \n[7] Simon S. Du, Kangcheng Hou, Ruslan Salakhutdinov, Barnabás Póczos, Ruosong Wang, and Keyulu Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. In NeurIPS, 2019. \n[8] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. Personalized federated learning: A meta-learning approach. NeurIPS, 2020. \n[9] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017. \n[10] Ross Girshick. Fast r-cnn. In ICCV, 2015. \n[11] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NeurIPS, 2017. \n[12] Chaoyang He, Keshav Balasubramanian, Emir Ceyani, Carl Yang, Han Xie, Lichao Sun, Lifang He, Liangwei Yang, Philip S Yu, Yu Rong, Peilin Zhao, Junzhou Huang, Murali Annavaram, and Salman Avestimehr. Fedgraphnn: A federated learning system and benchmark for graph neural networks. arXiv preprint arXiv:2104.07145, 2021. \n[13] Chaoyang He, Shen Li, Mahdi Soltanolkotabi, and Salman Avestimehr. Pipetransformer: Automated elastic pipelining for distributed training of transformers. arXiv preprint arXiv:2102.03161, 2021. \n[14] Timothy M Hospedales, Antreas Antoniou, Paul Micaelli, and Amos J Storkey. Meta-learning in neural networks: A survey. TPAMI, 2021. \n[15] Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. Graph structure learning for robust graph neural networks. In SIGKDD, 2020. \n[16] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017. \n[17] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions. IEEE SPM, 37:50–60, 2020. \n[18] Xinle Liang, Yang Liu, Tianjian Chen, Ming Liu, and Qiang Yang. Federated transfer reinforcement learning for autonomous driving. arXiv preprint arXiv:1910.06001, 2019. \n[19] Quande Liu, Cheng Chen, Jing Qin, Qi Dou, and Pheng-Ann Heng. Feddg: Federated domain generalization on medical image segmentation via episodic learning in continuous frequency space. arXiv preprint arXiv:2103.06030, 2021. \n[20] Gongxu Luo, Jianxin Li, Hao Peng, Carl Yang, Lichao Sun, Philip Yu, and Lifang He. Graph entropy guided node embedding dimension selection for graph neural networks. In IJCAI, 2021. \n[21] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In AISTATS, 2017. \n[22] Galileo Namata, Ben London, Lise Getoor, and Bert Huang. Query-driven active surveying for collective classification. In MLG workshop, 2012. \n[23] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018. \n[24] Saif Ur Rehman, Asmat Ullah Khan, and Simon Fong. Graph mining: A survey of graph mining techniques. In ICDIM, 2012. \n[25] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective classification in network data. AI magazine, 29(3):93–93, 2008. \n[26] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018. \n[27] Chuhan Wu, Fangzhao Wu, Yang Cao, Yongfeng Huang, and Xing Xie. Fedgnn: Federated graph neural network for privacy-preserving recommendation. arXiv preprint arXiv:2102.04925, 2021. \n[28] Man Wu, Shirui Pan, Chuan Zhou, Xiaojun Chang, and Xingquan Zhu. Unsupervised domain adaptive graph convolutional networks. In WWW, 2020. \n[29] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. TNNLS, 2020. \n[30] Han Xie, Jing Ma, Li Xiong, and Carl Yang. Federated graph classification over non-iid graphs. In NeurIPS, 2021. \n[31] Carl Yang, Haonan Wang, Ke Zhang, Liang Chen, and Lichao Sun. Secure deep graph generation with link differential privacy. In IJCAI, 2021. \n[32] Carl Yang, Yuxin Xiao, Yu Zhang, Yizhou Sun, and Jiawei Han. Heterogeneous network representation learning: A unified framework with survey and benchmark. In TKDE, 2020. \n[33] Carl Yang, Jieyu Zhang, and Jiawei Han. Co-embedding network nodes and hierarchical labels with taxonomy based generative adversarial nets. In ICDM, 2020. \n[34] Carl Yang, Peiye Zhuang, Wenhan Shi, Alan Luu, and Pan Li. Conditional structure generation through graph variational generative adversarial nets. In NeurIPS, 2019. \n[35] Qiang Yang, Yang Liu, Tianjian Chen, and Yongxin Tong. Federated machine learning: Concept and applications. TIST, 10(2):1–19, 2019. \n[36] Yizhou Zhang, Guojie Song, Lun Du, Shuwen Yang, and Yilun Jin. DANE: domain adaptive network embedding. In IJCAI, 2019. \n[37] Dingyuan Zhu, Ziwei Zhang, Peng Cui, and Wenwu Zhu. Robust graph convolutional networks against adversarial attacks. In SIGKDD, 2019. \n[38] Qi Zhu, Yidan Xu, Haonan Wang, Chao Zhang, Jiawei Han, and Carl Yang. Transfer learning of graph neural networks with ego-graph information maximization. In NeurIPS, 2021. \n[39] Xinghua Zhu, Jianzong Wang, Zhenhou Hong, and Jing Xiao. Empirical studies of institutional federated learning for natural language processing. In EMNLP, 2020. \n[40] Daniel Zügner, Amir Akbarnejad, and Stephan Günnemann. Adversarial attacks on neural networks for graph data. In SIGKDD, 2018. \n[41] Daniel Zügner and Stephan Günnemann. Adversarial attacks on graph neural networks via meta learning. In ICLR, 2019. \n[42] Daniel Zügner and Stephan Günnemann. Certifiable robustness and robust training for graph convolutional networks. In SIGKDD, 2019. ",
1299
+ "bbox": [
1300
+ 173,
1301
+ 78,
1302
+ 828,
1303
+ 912
1304
+ ],
1305
+ "page_idx": 10
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "",
1310
+ "bbox": [
1311
+ 171,
1312
+ 69,
1313
+ 828,
1314
+ 917
1315
+ ],
1316
+ "page_idx": 11
1317
+ }
1318
+ ]
parse/train/SylKikSYDH/SylKikSYDH.md ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # COMPRESSIVE TRANSFORMERS FOR LONG-RANGE SEQUENCE MODELLING
2
+
3
+ Jack W. Rae∗∗ † ‡ Anna Potapenko\*† Siddhant M. Jayakumar† Chloe Hillier†
4
+
5
+ Timothy P. Lillicrap†‡
6
+
7
+ # ABSTRACT
8
+
9
+ We present the Compressive Transformer, an attentive sequence model which compresses past memories for long-range sequence learning. We find the Compressive Transformer obtains state-of-the-art language modelling results in the WikiText-103 and Enwik8 benchmarks, achieving $1 7 . 1 \ \mathrm { p p l }$ and 0.97 bpc respectively. We also find it can model high-frequency speech effectively and can be used as a memory mechanism for RL, demonstrated on an object matching task. To promote the domain of long-range sequence learning, we propose a new openvocabulary language modelling benchmark derived from books, PG-19.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Humans have a remarkable ability to remember information over long time horizons. When reading a book, we build up a compressed representation of the past narrative, such as the characters and events that have built up the story so far. We can do this even if they are separated by thousands of words from the current text, or long stretches of time between readings. During daily life, we make use of memories at varying time-scales: from locating the car keys, placed in the morning, to recalling the name of an old friend from decades ago. These feats of memorisation are not achieved by storing every sensory glimpse throughout one’s lifetime, but via lossy compression. We aggressively select, filter, or integrate input stimuli based on factors of surprise, perceived danger, or repetition — amongst other signals (Richards and Frankland, 2017).
14
+
15
+ Memory systems in artificial neural networks began with very compact representations of the past. Recurrent neural networks (RNNs, Rumelhart et al. (1986)) learn to represent the history of observations in a compressed state vector. The state is compressed because it uses far less space than the history of observations — the model only preserving information that is pertinent to the optimization of the loss. The LSTM (Hochreiter and Schmidhuber, 1997) is perhaps the most ubiquitous RNN variant; it uses learned gates on its state vector to determine what information is stored or forgotten from memory.
16
+
17
+ However since the LSTM, there has been great benefit discovered in not bottlenecking all historical information in the state, but instead in keeping past activations around in an external memory and attending to them. The Transformer (Vaswani et al., 2017) is a sequence model which stores the hidden activation of every time-step, and integrates this information using an attention operator (Bahdanau et al., 2014). The Transformer will thus represent the past with a tensor (depth $\times$ memory size $\times$ dimension) of past observations that is, in practice, an order of magnitude larger than an LSTM’s hidden state. With this granular memory, the Transformer has brought about a step-change in state-of-the-art performance, within machine translation (Vaswani et al., 2017), language modelling (Dai et al., 2019; Shoeybi et al., 2019), video captioning (Zhou et al., 2018), and a multitude of language understanding benchmarks (Devlin et al., 2018; Yang et al., 2019) amongst others.
18
+
19
+ One drawback in storing everything is the computational cost of attending to every time-step and the storage cost of preserving this large memory. Several works have focused on reducing the computational cost of attention with sparse access mechanisms (Rae et al., 2016; Child et al., 2019;
20
+
21
+ Sukhbaatar et al., 2019; Lample et al., 2019). However sparse attention does not solve the storage problem, and often requires custom sparse kernels for efficient implementation. Instead we look back to the notion of compactly representing the past. We show this can be built with simple dense linear-algebra components, such as convolutions, and can reduce both the space and compute cost of our models.
22
+
23
+ We propose the Compressive Transformer, a simple extension to the Transformer which maps past hidden activations (memories) to a smaller set of compressed representations (compressed memories). The Compressive Transformer uses the same attention mechanism over its set of memories and compressed memories, learning to query both its short-term granular memory and longer-term coarse memory. We observe this improves the modelling of text, achieving state-of-the-art results in character-based language modelling — 0.97 bpc on Enwik8 from the Hutter Prize (Hutter, 2012) — and word-level language modelling — 17.1 perplexity on WikiText-103 (Merity et al., 2016). Specifically, we see the Compressive Transformer improves the modelling of rare words.
24
+
25
+ We show the Compressive Transformer works not only for language, but can also model the waveform of high-frequency speech with a trend of lower likelihood than the TransformerXL and Wavenet (Oord et al., 2016) when trained over 400,000 steps. We also show the Compressive Transformer can be used as a memory component within an RL agent, IMPALA (Espeholt et al., 2018), and can successfully compress and make use of past observations.
26
+
27
+ Furthermore we present a new book-level language-modelling benchmark PG-19, extracted from texts in Project Gutenberg1, to further promote the direction of long-context sequence modelling. This is over double the size of existing LM benchmarks and contains text with much longer contexts.
28
+
29
+ # 2 RELATED WORK
30
+
31
+ There have been a variety of recent attempts to extend the range of attention, particularly in the Transformer, or to replace the attention operation with something less expensive. Wu et al. (2019) show that a convolution-like operator that runs in linear time can actually exceed the performance of the quadratic-time self-attention layer in the Transformer at sentence-to-sentence translation and sentence-level language modelling. However such a mechanism inhibits the flow of information across a large number of time-steps for a given layer, and has not shown to be beneficial for longrange sequence modelling.
32
+
33
+ Dai et al. (2019) propose the TransformerXL, which keeps past activations around in memory. They also propose a novel relative positional embedding scheme which they see outperforms the Transformer’s original absolute positional system. Our model incorporates both of these ideas, the use of a memory to preserve prior activations and their relative positional embedding scheme.
34
+
35
+ The Sparse Transformer (Child et al., 2019) uses fixed sparse attention masks to attend to roughly√ $\sqrt { n }$ locations in memory. This approach still requires keeping all memories around during training, however with careful re-materialization of activations and custom kernels, the authors are able to train the model with a reasonable budget of memory and compute. When run on Enwik8, the much larger attention window of 8, 000 improves model performance, but overall it does not significantly outperform a simpler TransformerXL with a much smaller attention window.
36
+
37
+ The use of dynamic attention spans is explored in Sukhbaatar et al. (2019). Different attention heads can learn to have shorter or longer spans of attention — and they observe this achieves state-ofthe-art in character-based language modelling. This idea could easily be combined with our contribution — a compressive memory. However an efficient implementation is not possible on current dense-linear-algebra accelerators, such as Google’s TPUs, due to the need for dynamic and sparse computation. Our approach builds on simple dense linear algebra components, such as convolutions.
38
+
39
+ # 3 MODEL
40
+
41
+ We present the Compressive Transformer, a long-range sequence model which compacts past activations into a compressed memory2. The Compressive Transformer is a variant of the Transformer (Vaswani et al., 2017), a deep residual network which only uses attention to propagate information over time (namely multi-head attention). We build on the ideas of the TransformerXL (Dai et al., 2019) which maintains a memory of past activations at each layer to preserve a longer history of context. The TransformerXL discards past activations when they become sufficiently old (controlled by the size of the memory). The key principle of the Compressive Transformer is to compress these old memories, instead of discarding them, and store them in an additional compressed memory.
42
+
43
+ ![](images/0acd7690aaac7bffb9eb11c081c43adc68daad2cbdc94c5997f547d73d2d83e7.jpg)
44
+ Figure 1: The Compressive Transformer keeps a fine-grained memory of past activations, which are then compressed into coarser compressed memories. The above model has three layers, a sequence length ${ n _ { s } = 3 }$ , memory size ${ n _ { m } } = 6$ , compressed memory size $n _ { c m } = 6$ . The highlighted memories are compacted, with a compression function $f _ { c }$ per layer, to a single compressed memory — instead of being discarded at the next sequence. In this example, the rate of compression $c = 3$ .
45
+
46
+ # 3.1 DESCRIPTION
47
+
48
+ We define $n _ { m }$ and $n _ { c m }$ to be the number of respective memory and compressive memory slots in the model per layer. The overall input sequence $\mathcal { S } = x _ { 1 } , x _ { 2 } , \dotsc , x _ { | s | }$ represents input observations (e.g. tokens from a book). These are split into fixed-size windows of size $n _ { s }$ for the model to process in parallel. The model observes $\mathbf { x } = x _ { t } , \ldots , x _ { t + n _ { s } }$ at time $t$ , which we refer to as the sequence (e.g. in Figure 1). As the model moves to the next sequence, its $n _ { s }$ hidden activations are pushed into a fixed-sized FIFO memory (like the TransformerXL) of size $n _ { m }$ . The oldest $n _ { s }$ activations in memory are evicted, but unlike the TransformerXL we do not discard them. Instead we apply a compression operation, $f _ { c } : \mathbf { R } ^ { n _ { s } \times d } \mathbf { R } ^ { \lfloor \frac { n _ { s } } { c } \rfloor \times d }$ , mapping the $n _ { s }$ oldest memories to $\lfloor \frac { n _ { s } } { c } \rfloor$ compressed memories which we then store in a secondary FIFO compressed memory of size $n _ { c m }$ . $d$ denotes the hidden size of activations and $c$ refers to the compression rate, a higher value indicates more coarse-grained compressed memories. The overall temporal range of the model becomes $l \times \left( n _ { s } + n _ { m } + c * n _ { c m } \right)$ , where $l$ is the number of layers — as discussed in Supplementary Section A. The full architecture is described in Algorithm 1.
49
+
50
+ # Algorithm 1 Compressive Transformer
51
+
52
+ At time zero
53
+ 1: $\mathbf { m _ { 0 } } \gets \mathbf { 0 }$ // Initialize memory to zeros $( l \times n _ { m } \times d )$
54
+ 2: $\mathbf { c m _ { 0 } } \gets \mathbf { 0 }$ // Initialize compressed memory to zeros $( l \times n _ { c m } \times d )$
55
+ At time t
56
+ 3: $\mathbf { h } ^ { ( 1 ) } \mathbf { x W _ { e m b } }$ // Embed input sequence $( n _ { s } \times d )$
57
+ 4: for layer $i = 1 , 2 , \ldots , l$ do
58
+ 5: mem(i) ← concat(cm(i)t , m(i)t ) $I / \left( \left( n _ { c m } + n _ { m } \right) \times d \right)$
59
+ 6: $\tilde { \mathbf { a } } ^ { ( \mathbf { i } ) } \gets$ multihead attention(i)(h(i), mem(i)t ) // MHA over both mem types $( n _ { s } \times d )$
60
+ 7: a(i) ← layer norm(˜a(i) + h(i)) // Regular skip $^ +$ layernorm $( n _ { c m } \times d )$
61
+ 8: $\mathbf { o l d . m e m ^ { ( i ) } \gets m _ { t } ^ { ( i ) } } [ : n _ { s } ]$ // Oldest memories to be forgotten $( n _ { s } \times d )$
62
+ 9: new $\mathbf { c m } ^ { ( \mathbf { i } ) } \gets f _ { c } ^ { ( i ) } ( \mathbf { o l d . m e m ^ { ( \mathbf { i } ) } } )$ // Compress oldest memories by factor $c \left( \left\lfloor { \frac { n _ { s } } { c } } \right\rfloor \times d \right)$
63
+ 10: $\mathbf { m _ { t + 1 } ^ { ( i ) } } \gets \mathrm { c o n c a t } ( \mathbf { m _ { t } ^ { ( i ) } } , \mathbf { h ^ { ( i ) } } ) [ - n _ { m } \cdot ]$ // Update memory $( n _ { m } \times d )$
64
+ 11: $\mathbf { c m _ { t } ^ { ( i ) } } \gets \mathrm { c o n c a t } ( \mathbf { c m _ { t } ^ { ( i ) } } , \mathbf { n e w . c m ^ { ( i ) } } ) [ - n _ { c m } :$ :] // Update compressed memory $( n _ { c m } \times d )$
65
+ 12: $\mathbf { h } ^ { ( \mathbf { i } + 1 ) } \gets \mathrm { l a y e r . n o r m } ( \mathrm { m l p } ^ { ( i ) } ( \mathbf { a } ^ { ( \mathbf { i } ) } ) + \mathbf { a } ^ { ( \mathbf { i } ) } )$ // Mixing MLP $( n _ { s } \times d )$
66
+
67
+ # Algorithm 2 Attention-Reconstruction Loss
68
+
69
+ <table><tr><td colspan="3">1: Lattn ←0</td></tr><tr><td>2:</td><td>for layeri=1,2,...,l do</td><td></td></tr><tr><td>3:</td><td>h(i) ← stop-gradient(h(i))</td><td>// Stop compression grads from passing...</td></tr><tr><td>4:</td><td>old_mem(i)← stop-gradient(old_mem(i))</td><td>//..into transformer network.</td></tr><tr><td>5:</td><td>Q,K,V ← stop-gradient(attention params at layer i)// Re-use attention weight matrices.</td><td></td></tr><tr><td>6:</td><td>def attn(h,m) ← σ((hQ) (mK))(mV)</td><td>// Use content-based attention (no relative).</td></tr><tr><td>7:</td><td>new_cm(i) ← f(𝑖)(old_mem(i))</td><td>// Compression network (to be optimized).</td></tr><tr><td>8:</td><td>Lattn ← Lattn + |lttn(h(i),old-mem(i)) -attn(h(i),new_cm(i)|l2</td><td></td></tr></table>
70
+
71
+ # 3.2 COMPRESSION FUNCTIONS AND LOSSES
72
+
73
+ For choices of compression functions $f _ { c }$ we consider (1) max/mean pooling, where the kernel and stride is set to the compression rate $c$ ; (2) 1D convolution also with kernel & stride set to $c$ ; (3) dilated convolutions; (4) most-used where the memories are sorted by their average attention (usage) and the most-used are preserved. The pooling is used as a fast and simple baseline. The mostused compression scheme is inspired from the garbage collection mechanism in the Differentiable Neural Computer (Graves et al., 2016) where low-usage memories are erased. The convolutional compression functions contain parameters which require training.
74
+
75
+ One can train the compression network using gradients from the loss; however for very old memories this requires backpropagating-through-time (BPTT) over long unrolls. As such we also consider some local auxiliary compression losses. We consider an auto-encoding loss where we reconstruct the original memories from the compressed memories $\mathcal { L } ^ { a e } = | | \mathbf { o l d . m e m ^ { ( i ) } } - g ( \mathbf { n e w . c m ^ { ( i ) } } ) | | _ { 2 }$ , where $\overline { { g } } \ : \ \mathbb { R } ^ { \frac { n _ { s } } { c } \times d } \ \ \mathbb { R } ^ { n _ { s } \times d }$ is learned. This is a lossless compression objective — it attempts to retain all information in memory. We also consider an attention-reconstruction loss described in Algorithm 2 which reconstructs the content-based attention over memory, with content-based attention over the compressed memories. This is a lossy objective, as information that is no longer attended to can be discarded, and we found this worked best. We stop compression loss gradients from passing into the main network as this prevents learning. Instead the Transformer optimizes the task objective and the compression network optimizes the compression objective conditioned on task-relevant representations; there is no need to mix the losses with a tuning constant.
76
+
77
+ # 4 PG-19 BENCHMARK
78
+
79
+ As models begin to incorporate longer-range memories, it is important to train and benchmark them on data containing larger contexts. Natural language in the form of text provides us with a vast repository of data containing long-range dependencies, that is easily accessible. We propose a new language modelling benchmark, PG-19, using text from books extracted from Project Gutenberg 3. We select Project Gutenberg books which were published over 100 years old, i.e. before 1919 (hence the name PG-19) to avoid complications with international copyright, and remove short texts. The dataset contains 28, 752 books, or $1 1 G B$ of text — which makes it over double the size of BookCorpus and Billion Word Benchmark.
80
+
81
+ # 4.1 RELATED DATASETS
82
+
83
+ The two most benchmarked word-level language modelling datasets either stress the modelling of stand-alone sentences (Billion Word Benchmark from Chelba et al. (2013)) or the modelling of a small selection of short news articles (Penn Treebank processed by Mikolov et al. (2010)). Merity et al. (2016) proposed the WikiText-103 dataset, which contains text from a high quality subset of English-language wikipedia articles. These articles are on average 3, 600 words long. This dataset has been a popular recent LM benchmark due to the potential to exploit longer-range dependencies (Grave et al., 2016; Rae et al., 2018; Bai et al., 2018b). However recent Transformer models, such as the TransformerXL (Dai et al., 2019) appear to be able to exploit temporal dependencies on the order of several thousand words. This motivates a larger dataset with longer contexts.
84
+
85
+ Table 1: Comparison to existing popular language modelling benchmarks.
86
+
87
+ <table><tr><td></td><td>Avg. length (words)</td><td>Train Size</td><td>Vocab</td><td>Type</td></tr><tr><td>1B Word</td><td>27</td><td>4.15GB</td><td>793K</td><td>News (sentences)</td></tr><tr><td>Penn Treebank</td><td>355</td><td>5.1MB</td><td>10K</td><td>News (articles)</td></tr><tr><td>WikiText-103</td><td>3.6K</td><td>515MB</td><td>267K</td><td>Wikipedia (articles)</td></tr><tr><td>PG-19</td><td>69K</td><td>10.9GB</td><td>(open)</td><td>Books</td></tr></table>
88
+
89
+ Books are a natural choice of long-form text, and provide us with stylistically rich and varied natural language. Texts extracted from books have been used for prior NLP benchmarks; such as the Children’s Book Test (Hill et al., 2015) and LAMBADA (Paperno et al., 2016). These benchmarks use text from Project Gutenberg, an online repository of books with expired US copyright, and BookCorpus (Zhu et al., 2015), a prior dataset of $1 1 K$ unpublished (at time of authorship) books. CBT and LAMBADA contain extracts from books, with a specific task of predicting held-out words. In the case of LAMBADA the held-out word is specifically designed to be predictable for humans with access to the full textual context — but difficult to guess with only a local context.
90
+
91
+ CBT and LAMBADA are useful for probing the linguistic intelligence of models, but are not ideal for training long-range language models from scratch as they truncate text extracts to at most a couple of paragraphs, and discard a lot of the books’ text. There has been prior work on training models on book data using BookCorpus directly (e.g. BERT from Devlin et al. (2018)) however BookCorpus is no longer distributed due to licensing issues, and the source of data is dynamically changing — which makes exact benchmarking difficult over time.
92
+
93
+ The NarrativeQA Book Comprehension Task (Kocisk ˇ y et al., 2018) uses Project Gutenberg texts \` paired with Wikipedia articles, which can be used as summaries. Due to the requirement of needing a corresponding summary, NarrativeQA contains a smaller selection of books: 1,527 versus the 28,752 books in PG-19. However it is reasonable that PG-19 may be useful for pre-training book summarisation models.
94
+
95
+ # 4.2 STATISTICS
96
+
97
+ A brief comparison of PG-19 to other LM datasets can be found in Table 1. We intentionally do not limit the vocabulary by unk-ing rare words, and release the dataset as an open-vocabulary benchmark. To compare models we propose to continue measuring the word-level perplexity. This can still be computed for any chosen character-based, byte-based or subword-based scheme. To do this, one calculates the total cross-entropy loss $\begin{array} { r } { L = - \dot { \sum } _ { t } \log ( p _ { t } | p _ { < t } ) } \end{array}$ over the given validation or test subset using a chosen tokenization scheme, and then one normalizes this value by the number of words: $L / n _ { w o r d s }$ where $n _ { w o r d s }$ is the total number of words in the given subset, taken from Table 2. The word-level perplexity is thus $e ^ { L / n _ { w o r d s } }$ . For sake of model comparisons, it is important to use the exact number of words computed in Table 2 as the normalisation constant.
98
+
99
+ Alongside quantitative analyses, we build an LDA topic model (Blei et al., 2003) for a qualitative inspection of the text. We present key words for several topics in the Supplementary Table 10. These topics include art, education, naval exploration, geographical description, war, ancient civilisations, and more poetic topics concerning the human condition — love, society, religion, virtue etc. This contrasts to the more objective domains of Wikipedia and news corpora.
100
+
101
+ # 5 EXPERIMENTS
102
+
103
+ We optimised all models with Adam (Kingma and Ba, 2014). We used a learning rate schedule with a linear warmup from 1e-6 to 3e-4 and a cosine decay back down to 1e- $\mathbf { \nabla \cdot } n \mathbf { 6 }$ . For characterbased LM we used 4, 000 warmup steps with 100, 000 decay steps, and for word-based LM we used 16, 000 warmup steps with 500, 000 decay steps. We found that decreasing the optimisation update frequency helped (see Section 5.5.1), namely we only applied parameter updates every 4 steps after $6 0 , 0 0 0$ iterations. However we found the models would optimise well for a range of warmup/warmdown values. We clipped the gradients to have a norm of at most 0.1, which was crucial to successful optimisation.
104
+
105
+ Table 2: PG-19 statistics split by subsets.
106
+
107
+ <table><tr><td></td><td>Train</td><td>Valid.</td><td>Test</td></tr><tr><td>#books</td><td>28.602</td><td>50</td><td>100</td></tr><tr><td># words</td><td>1,973,136,207</td><td>3,007,061</td><td>6,966,499</td></tr></table>
108
+
109
+ Table 3: Eval. perplexities on PG-19.
110
+
111
+ <table><tr><td></td><td>Valid.</td><td>Test</td></tr><tr><td>36L TransformerXL</td><td>45.5</td><td>36.3</td></tr><tr><td>36L Compressive Transf.</td><td>43.4</td><td>33.6</td></tr></table>
112
+
113
+ Table 4: State-of-the-art results on Enwik8.
114
+
115
+ <table><tr><td>Model 7L LSTM(Graves,2013)</td><td>BPC 1.67</td></tr><tr><td>LN HyperNetworks Ha et al. (2016) LN HM-LSTM Chung et al. (2016) ByteNet (Kalchbrenner et al.,2016) RHN Zilly et al. (2017) mLSTM Krause et al. (2016) 64L Transf. Al-Rfou et al. (2019) 24L TXL (Dai et al.,2019) Sparse Transf.(Child et al.,2019) Adaptive Transf. (Sukhbaatar et al.,2019)</td><td>1.34 1.32 1.31 1.27 1.24 1.06 0.99 0.991 0.98</td></tr><tr><td>24L TXL (ours) 24L Compressive Transformer</td><td>0.98 0.97</td></tr></table>
116
+
117
+ Table 5: Compression approaches on Enwik8.
118
+
119
+ <table><tr><td>Compression fn</td><td>Compression loss</td><td>BPC</td></tr><tr><td>Conv</td><td>BPTT</td><td>0.996</td></tr><tr><td>Max Pooling</td><td>N/A</td><td>0.986</td></tr><tr><td>Conv</td><td>Auto-encoding</td><td>0.984</td></tr><tr><td>Mean Pooling</td><td>N/A</td><td>0.982</td></tr><tr><td>Most-used</td><td>N/A</td><td>0.980</td></tr><tr><td>Dilated conv</td><td>Attention</td><td>0.977</td></tr><tr><td>Conv</td><td>Attention</td><td>0.973</td></tr></table>
120
+
121
+ # 5.1 PG-19
122
+
123
+ We benchmark the Compressive Transformer against the TransformerXL on the newly proposed PG19 books dataset. Because it is open-vocabulary, we train a subword vocabulary of size 32000 with SubwordTextEncoder from the tfds package in TensorFlow and use the dataset statistics to compute word-level perplexity, as described in Section 4.2. We train a 36 layer Compressive Transformer with a window size of 512, both memory and compressed memory size of 512, and compression rate $C =$ 2. We compare this to a 36 layer TransformerXL trained with window size 512 and attention window 1024. The model was trained on 256 TPUv3 cores with a total batch size of 512 and converged after processing around 100 billion subword tokens. We display the results in Table 3 where we see the Compressive Transformer obtains a test perplexity of 33.6 versus the TransformerXL’s 36.3. Despite the dataset size, it is clearly a challenging domain. This can suit as a first baseline on the proposed long-range language modelling benchmark. We show samples from this model in Supplementary Section F. The model is able to generate long-form narrative of varying styles: from character dialogue, first person diary entries, to descriptive third-person text.
124
+
125
+ # 5.2 ENWIK8
126
+
127
+ We compare the TransformerXL and the Compressive Transformer on the standard character-level language modelling benchmark Enwiki8 taken from the Hutter Prize (Hutter, 2012), which contains 100M bytes of unprocessed Wikipedia text. We select the first 90MB for training, 5MB for validation, and the latter 5MB for testing — as per convention. We train 24-layer models with a sequence window size of 768. During training, we set the TransformerXL’s memory size to 2304, and for the Compressive Transformer we use memory of size 768 and compressed memory of size 1152 with compression rate $C = 3$ . During evaluation, we increased the TransformerXL memory size to 4096 and the compressed memory in our model to 3072 (after sweeping over the validation set), obtaining the numbers reported in Table 4. We show the effect of scaling the compressed memory size and evaluation performance in Supplementary Section C. The proposed model achieves the new state-of-the-art on this dataset with 0.97 bits-per-character.
128
+
129
+ We compare compression functions and the use of auxiliary losses in Table 5. We sweep over compression rates of 2, 3, and 4 and report results with the best performing value for each row. BPTT signifies that no auxiliary compression loss was used to train the network other than the overall training loss. To feed gradients into the compression function we unrolled the model over double the sequence length and halved the batch size to fit the larger unroll into memory.
130
+
131
+ Table 6: Validation and test perplexities on WikiText-103.
132
+
133
+ <table><tr><td></td><td>Valid.</td><td>Test</td></tr><tr><td>LSTM (Graves et al., 2014)</td><td></td><td>48.7</td></tr><tr><td>Temporal CNN (Bai et al.,2018a)</td><td>=</td><td>45.2</td></tr><tr><td>GCNN-14 (Dauphin et al.,2016)</td><td>=</td><td>37.2</td></tr><tr><td>Quasi-RNN Bradbury et al. (2016)</td><td>32</td><td>33</td></tr><tr><td>RMC (Santoro et al., 2018)</td><td>30.8</td><td>31.9</td></tr><tr><td>LSTM+Hebb. (Rae et al., 2018)</td><td>29.0</td><td>29.2</td></tr><tr><td>Transformer (Baevski and Auli,2019)</td><td>-</td><td>18.7</td></tr><tr><td>18L TransformerXL,M=384 (Dai et al.,2019)</td><td>-</td><td>18.3</td></tr><tr><td>18L TransformerXL,M=1024(ours)</td><td>=</td><td>18.1</td></tr><tr><td>18L Compressive Transformer,M=1024</td><td>16.0</td><td>17.1</td></tr></table>
134
+
135
+ # 5.3 WIKITEXT-103
136
+
137
+ We train an eighteen-layered Compressive Transformer on the closed-vocabulary word-level language modelling benchmark WikiText-103, which contains articles from Wikipedia. We train the model with a compressed memory size, memory size, and a sequence window size all equal to 512. We trained the model over 64 Tensor Processing Units (TPU) v3 with a batch size of 2 per core — making for a total batch size of 128. The model converged in a little over 12 hours. We found the single-layer convolution worked best, with a compression rate of $c = 4$ . This model obtained 17.6 perplexity on the test set. By tuning the memory size over the validation set — setting the memory size to 500, and compressed memory size to 1, 500 — we obtain 17.1 perplexity. This is 1.2 perplexity points over prior state of the art, and means the model places a $\approx 5 \%$ higher probability on the correct word over the prior SotA TransformerXL.
138
+
139
+ It is worth noting that in Table 6 we do not list methods that use additional training data, or that make use of test-time labels to continue training the model on the test set (known as dynamic evaluation (Graves, 2013)). If we incorporate a very naive dynamic evaluation approach of loading a model checkpoint and continuing training over one epoch of the test set, then we obtain a test perplexity of 16.1. This is slightly better than the published 16.4 from Krause et al. (2019) — which uses a more sophisticated dynamic evaluation approach on top of the TransformerXL. However in most settings, one does not have access to test-time labels — and thus we do not focus on this setting. Furthermore there has been great progress in showing that more data equates to much better language modelling; Shoeybi et al. (2019) find a large transformer 8B-parameter transformer trained on 170GB of text obtains 10.7 word-level perplexity on WikiText-103. However it is not clear to what extent the WikiText-103 test set may be leaked inside these larger training corpora. For clarity of model comparisons, we compare to published results trained on the WikiText-103 training set.
140
+
141
+ We break perplexity down by word frequency in Table 7 and see the Compressive Transformer makes only a small modelling improvement for frequent words $( 2 . 6 \%$ over the TransformerXL baseline) but obtains a much larger improvement of $\approx 2 0 \%$ for infrequent words. Furthermore, we see $\mathbf { 1 0 X }$ improvement in modelling rare words over the prior state-of-the-art LSTM language model published in 2018 — which demonstrates the rate of progress in this area.
142
+
143
+ # 5.4 COMPRESSIBILITY OF LAYERS
144
+
145
+ We can use compression to better understand the model’s mode of operation. We inspect how compressible Transformer’s activations are as they progress through higher layers in the network. One may expect representations to become more difficult to compress at higher layers, if more semantic information is represented there. We monitor the compression loss at each layer of our best-performing Compressive Transformer models trained on Enwik8 and WikiText-103 and display these in Supplementary Section B Figure 6. We note that the compression loss is about one order of magnitude higher for word-level language modelling (WikiText-103) over character-level langauge modelling (Enwik8). Furthermore the first layer of the Transformer is highly compressible. However there is not a clear trend of compression cost increasing with layer depth.
146
+
147
+ Table 7: WikiText-103 test perplexity broken down by word frequency buckets. The most frequent bucket is words which appear in the training set more than 10, 000 times, displayed on the left. For reference, a uniform model would have perplexity $| V | = 2 . 6 e 5$ for all frequency buckets. \*LSTM comparison from Rae et al. (2018)
148
+
149
+ <table><tr><td></td><td>&gt;10K</td><td>1K-10K</td><td>100-1K</td><td>&lt;100</td><td>All</td></tr><tr><td>LSTM*</td><td>12.1</td><td>219</td><td>1,197</td><td>9,725</td><td>36.4</td></tr><tr><td>TransformerXL(ours)</td><td>7.8</td><td>61.2</td><td>188</td><td>1,123</td><td>18.1</td></tr><tr><td>Compressive Transformer</td><td>7.6</td><td>55.9</td><td>158</td><td>937</td><td>17.1</td></tr><tr><td>Relative gain over TXL</td><td>2.6%</td><td>9.5%</td><td>21%</td><td>19.9%</td><td>5.8%</td></tr></table>
150
+
151
+ ![](images/91df5905b3cf9156b5c7b63213402e2aaf75a6c641a804dccf9a8f9fec4a3a8d.jpg)
152
+ Figure 2: Attention weight on Enwik8. Average attention weight from the sequence over the compressed memory (oldest), memory, and sequence (newest) respectively. The sequence self-attention is causally masked, so more attention is placed on earlier elements in the sequence. There is an increase in attention at the transition from memory to compressed memory.
153
+
154
+ ![](images/0c169d95a9819eba8789424d7e7a0246e84e7fc6301d76f70dcb4d65a634b4eb.jpg)
155
+ Figure 3: Learning rate analysis. Reducing the learning rate (e.g. to zero) during training (on Enwik8) harms training performance. Reducing the frequency of optimisation updates (effectively increasing the batch size) is preferable.
156
+
157
+ # 5.5 ATTENTION
158
+
159
+ We inspect where the network is attending to on average, to determine whether it is using its compressed memory. We average the attention weight over a sample of 20, 000 sequences from a trained model on Enwik8. We aggregate the attention into eighteen buckets, six for each of the compressed memory, memory, and sequence respectively. We set the size of the sequence, memory and compressed memory all to be 768. We plot this average attention weight per bucket in Figure 2 with a $1 \sigma$ standard error. We see most of the attention is placed on the current sequence; with a greater weight placed on earlier elements of the sequence due to the causal self-attention mechanism which masks future attention weights. We also observe there is an increase in attention from the oldest activations stored in the regular memory, to the activations stored in the compressed memory. This goes against the trend of older memories being accessed less frequently — and gives evidence that the network is learning to preserve salient information.
160
+
161
+ # 5.5.1 OPTIMISATION SCHEDULE
162
+
163
+ We make an observation about an interesting but undesirable meta-learning phenomenon during long-context training. When the learning rate is tuned to be much smaller (or set to zero) during training, performance degrades drastically both for the TransformerXL and the Compressive Transformer. This is displayed in Figure 3.
164
+
165
+ Usually we consider distributional shift from the training data to the test data, but we can also observe a shift in the model when transferring from a training to evaluation mode (even when the model is evaluated on the training data). In this case, this is due to the online updating of parameters whilst processing long contiguous articles. We would like the model to generalise well to scenarios where it is not continuously optimised. Updating the parameters only at article boundaries (and then resetting the state) could be one solution for long-range memory models, but this would slow down learning significantly.
166
+
167
+ Instead, we propose reducing the frequency of optimisation updates during training. We find this allows for the best of both worlds — fast initial learning with frequent updates, and better generalisation near the end of training with less frequent updates (e.g. every 4 steps). Reducing the optimisation frequency increases the effective batch size, which has also been shown to be preferable to learning rate decay in image modelling (Smith et al., 2018). We observed a final performance improvement in our TransformerXL baseline on Enwik8, from 0.995 — which approximately replicates the published result — to 0.984 — which matches the most recent SotA architecture. We note, the additional space and compute cost of accumulating gradients is negligible across iterations, so there was no performance regression in using this scheme.
168
+
169
+ # 5.6 SPEECH
170
+
171
+ We train the Compressive Transformer on the waveform of speech to assess its performance on different modalities. Speech is interesting because it is sampled at an incredibly high frequency, but we know it contains a lot of information on the level of phonemes and entire phrases.
172
+
173
+ To encourage long-term reasoning, we refrain from conditioning the model on speaker identity or text features, but focus on unconditional speech modelling. We train the model on 24.6 hours of 24kHz North American speech data. We chunk the sequences into windows of size 3840, roughly 80ms of audio, and compare a 20-layer Compressive Transformer to a 20-layer TransformerXL and a 30-layer WaveNet model (Oord et al., 2016) — a state-of-the-art audio generative model used to serve production speech synthesis applications at Google (Oord et al., 2018). All networks have approximately 40M parameters, as WaveNet is more parameter-efficient per layer. We train each network with 32 V100 GPUs, and a batch size of 1 per core (total batch size of 32) using synchronous training.
174
+
175
+ WaveNet processes an entire chunk in parallel, however the TransformerXL and Compressive Transformer are trained with a window size of 768 and a total memory size of 1, 568 (for the Compressive Transformer we use 768 memory $+ 7 6 8$ compressed). We thus unroll the model over the sequence. Despite this sequential unroll, the attention-based models train at only half the speed of WaveNet. We see the test-set negative-log-likelihood in Figure 4, and observe that a Compressive Transformer with a compression rate of 4 is able to outperform the TransformerXL and maintain a slim advantage over WaveNet. However we only trained models for at most one week (with 32GPUs) and it would be advantageous to continue training until full convergence — before definitive conclusions are made.
176
+
177
+ # 5.7 REINFORCEMENT LEARNING
178
+
179
+ Compression is a good fit for video input sequences because subsequent frames have high mutual information. Here we do not test out the Compressive Transformer on video, but progress straight to a reinforcement learning agent task that receives a video stream of visual observations — but must ultimately learn to use its memory to reason over a policy.
180
+
181
+ We test the Compressive Transformer as a drop-in replacement to an LSTM in the IMPALA setup (Espeholt et al., 2018). Otherwise, we use the same training framework and agent architecture as described in the original work with a fixed learning rate of 1.5e-5 and entropy cost coefficient of 2e-3. We test the Compressive Transformer on a challenging memory task within the DMLab-30 (Beattie et al., 2016) domain, rooms select nonmatching object. This requires the agent to explore a room in a visually rich 3D environment and remember the object present. The agent can then advance to a second room where it must select the object not present in the original room. This necessitates that the agent both remember events far in the past, and also learn to efficiently reason about them.
182
+
183
+ We fix both the memory and compressed memory sizes to 64. In Figure 5, we present results for a range of compression rates, averaged over 3 seeds. We see that the best performing agents endowed with the Compressive Transformer are able to solve the task to human-level. We note that the model with compression rate 1 is unable to learn the task to the same proficiency. The speed of learning and stability seem to increase proportionally with higher rates of compression (up to a limit) – i.e.
184
+
185
+ ![](images/42afd920bfbb3132ee3f0bccc130234e666d527c199fd0bd2f67885c2d8766e7.jpg)
186
+ Figure 4: Speech Modelling. We see the Compressive Transformer is able to obtain competitive results against the state-of-the-art WaveNet in the modelling of raw speech sampled at $2 4 \mathrm { k H z }$ .
187
+
188
+ ![](images/73b459f5476814831f88dbae381c01075c186cec825da44f6a778c19c5f94da1.jpg)
189
+ Figure 5: Vision and RL. We see the Compressive Transformer integrates visual information across time within an IMPALA RL agent, trained on an object matching task.
190
+
191
+ the effective memory window of the agent – and we find compression rate 4 to once again be the best performing. We see this as a promising sign that the architecture is able to efficiently learn, and suitably use, compressed representations of its visual input and hope to test this more widely in future work.
192
+
193
+ # 6 CONCLUSION
194
+
195
+ In this paper we explore the notion of compression as a means of extending the temporal receptive field of Transformer-based sequence models. We see a benefit to this approach in the domain of text, with the Compressive Transformer outperforming existing architectures at long-range language modelling. To continue innovation in this area, we also propose a new book-level LM benchmark, PG-19. This may be used to compare long-range language models, or to pre-train on other longrange reasoning language tasks, such as NarrativeQA (Kocisk ˇ y et al., 2018). \`
196
+
197
+ We see the idea of compressive memories is applicable not only to the modality of text, but also audio, in the form of modelling the waveform of speech, and vision, within a reinforcement-learning agent trained on a maze-like memory task. In both cases, we compare to very strong baselines (Wavenet (Oord et al., 2016) and IMPALA (Espeholt et al., 2018)).
198
+
199
+ The main limitation of this work is additional complexity, if the task one wishes to solve does not contain long-range reasoning then the Compressive Transformer is unlikely to provide additional benefit. However as a means of scaling memory and attention, we do think compression is a simpler approach to dynamic or sparse attention — which often requires custom kernels to make efficient. One can build effective compression modules from simple neural network components, such as convolutions. The compression components are immediately efficient to run on GPUs and TPUs.
200
+
201
+ Memory systems for neural networks began as compressed state representations within RNNs. The recent wave of progress using attention-based models with deep and granular memories shows us that it is beneficial to refrain from immediately compressing the past. However we hypothesise that more powerful models will contain a mixture of granular recent memories and coarser compressed memories. Future directions could include the investigation of adaptive compression rates by layer, the use of long-range shallow memory layers together with deep short-range memory, and even the use of RNNs as compressors. Compressive memories should not be forgotten about just yet.
202
+
203
+ # ACKNOWLEDGEMENTS
204
+
205
+ We thank Chris Dyer, Felix Gimeno, and Koray Kavukcuoglu for reviewing the manuscript. We thank Peter Dayan, Adam Santoro, Jacob Menick, Emilio Parisotto, Hyunjik Kim, Simon Osindero, Sergey Bartunov, David Raposo, and Daan Wierstra for ideas regarding model design. We thank Yazhe Li and Aaron Van de Oord for their help and advice in instrumenting speech modelling experiments. Finally, we thank our wider DeepMind colleagues for supporting this project with stimulating discussions, engineering infrastructure, and positive reinforcement signals.
206
+
207
+ REFERENCES
208
+ R. Al-Rfou, D. Choe, N. Constant, M. Guo, and L. Jones. Character-level language modeling with deeper self-attention. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3159–3166, 2019.
209
+ A. Baevski and M. Auli. Adaptive input representations for neural language modeling. arXiv preprint arXiv:1809.10853, 2019.
210
+ D. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
211
+ S. Bai, J. Z. Kolter, and V. Koltun. Convolutional sequence modeling revisited, 2018a. URL https://openreview.net/forum?id $_ { \cdot } =$ rk8wKk-R-.
212
+ S. Bai, J. Z. Kolter, and V. Koltun. Trellis networks for sequence modeling. arXiv preprint arXiv:1810.06682, 2018b.
213
+ C. Beattie, J. Z. Leibo, D. Teplyashin, T. Ward, M. Wainwright, H. Kuttler, A. Lefrancq, S. Green, ¨ V. Valdes, A. Sadik, J. Schrittwieser, K. Anderson, S. York, M. Cant, A. Cain, A. Bolton, S. Gaffney, ´ H. King, D. Hassabis, S. Legg, and S. Petersen. Deepmind lab. CoRR, abs/1612.03801, 2016. URL http://arxiv.org/abs/1612.03801.
214
+ D. M. Blei, A. Y. Ng, and M. I. Jordan. Latent dirichlet allocation. J. Mach. Learn. Res., 3:993–1022, Mar. 2003. ISSN 1532-4435.
215
+ J. Bradbury, S. Merity, C. Xiong, and R. Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016.
216
+ C. Chelba, T. Mikolov, M. Schuster, Q. Ge, T. Brants, P. Koehn, and T. Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013.
217
+ R. Child, S. Gray, A. Radford, and I. Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
218
+ J. Chung, S. Ahn, and Y. Bengio. Hierarchical multiscale recurrent neural networks. arXiv preprint arXiv:1609.01704, 2016.
219
+ Z. Dai, Z. Yang, Y. Yang, W. W. Cohen, J. Carbonell, Q. V. Le, and R. Salakhutdinov. Transformerxl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019.
220
+ Y. N. Dauphin, A. Fan, M. Auli, and D. Grangier. Language modeling with gated convolutional networks. arXiv preprint arXiv:1612.08083, 2016.
221
+ J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
222
+ L. Espeholt, H. Soyer, R. Munos, K. Simonyan, V. Mnih, T. Ward, Y. Doron, V. Firoiu, T. Harley, I. Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, pages 1406–1415, 2018.
223
+ E. Grave, A. Joulin, and N. Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016.
224
+ A. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
225
+ A. Graves, G. Wayne, and I. Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
226
+ A. Graves, G. Wayne, M. Reynolds, T. Harley, I. Danihelka, A. Grabska-Barwinska, S. G. Col-´ menarejo, E. Grefenstette, T. Ramalho, J. Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016.
227
+ D. Ha, A. Dai, and Q. V. Le. Hypernetworks. arXiv preprint arXiv:1609.09106, 2016.
228
+ F. Hill, A. Bordes, S. Chopra, and J. Weston. The goldilocks principle: Reading children’s books with explicit memory representations. arXiv preprint arXiv:1511.02301, 2015. S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
229
+ A. Holtzman, J. Buys, M. Forbes, and Y. Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019.
230
+ M. Hutter. The human knowledge compression contest. URL http://prize. hutter1. net, 6, 2012. N. Kalchbrenner, L. Espeholt, K. Simonyan, A. v. d. Oord, A. Graves, and K. Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099, 2016.
231
+ D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
232
+ T. Kocisk ˇ y, J. Schwarz, P. Blunsom, C. Dyer, K. M. Hermann, G. Melis, and E. Grefenstette. The \` narrativeqa reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317–328, 2018.
233
+ B. Krause, L. Lu, I. Murray, and S. Renals. Multiplicative lstm for sequence modelling. arXiv preprint arXiv:1609.07959, 2016.
234
+ B. Krause, E. Kahembwe, I. Murray, and S. Renals. Dynamic evaluation of transformer language models. CoRR, abs/1904.08378, 2019. URL http://arxiv.org/abs/1904.08378. G. Lample, A. Sablayrolles, M. Ranzato, L. Denoyer, and H. Jegou. Large memory layers with ´ product keys. arXiv preprint arXiv:1907.05242, 2019.
235
+ S. Merity, C. Xiong, J. Bradbury, and R. Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
236
+ T. Mikolov, M. Karafiat, L. Burget, J. ´ Cernock ˇ y, and S. Khudanpur. Recurrent neural network \` based language model. In Eleventh Annual Conference of the International Speech Communication Association, 2010.
237
+ A. Oord, Y. Li, I. Babuschkin, K. Simonyan, O. Vinyals, K. Kavukcuoglu, G. Driessche, E. Lockhart, L. Cobo, F. Stimberg, et al. Parallel wavenet: Fast high-fidelity speech synthesis. In International Conference on Machine Learning, pages 3915–3923, 2018.
238
+ A. v. d. Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
239
+ D. Paperno, G. Kruszewski, A. Lazaridou, Q. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, R. Fernandez, K. Erk, et al. The lambada dataset: Word prediction requiring a broad discourse ´ context. Association for Computational Linguistics, 2016.
240
+ J. Rae, J. J. Hunt, I. Danihelka, T. Harley, A. W. Senior, G. Wayne, A. Graves, and T. Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pages 3621–3629, 2016.
241
+ J. W. Rae, C. Dyer, P. Dayan, and T. P. Lillicrap. Fast parametric learning with activation memorization. arXiv preprint arXiv:1803.10049, 2018.
242
+ B. A. Richards and P. W. Frankland. The persistence and transience of memory. Neuron, 94(6): 1071–1084, 2017.
243
+ D. E. Rumelhart, G. E. Hinton, and R. J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533, 1986.
244
+ A. Santoro, R. Faulkner, D. Raposo, J. Rae, M. Chrzanowski, T. Weber, D. Wierstra, O. Vinyals, R. Pascanu, and T. Lillicrap. Relational recurrent neural networks. In Advances in Neural Information Processing Systems, pages 7299–7310, 2018.
245
+ M. Shoeybi, M. Patwary, R. Puri, P. LeGresley, J. Casper, and B. Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism, 2019.
246
+ S. Smith, P. jan Kindermans, C. Ying, and Q. V. Le. Don’t decay the learning rate, increase the batch size. 2018. URL https://openreview.net/pdf?id ${ . } = { }$ B1Yy1BxCZ. S. Sukhbaatar, E. Grave, P. Bojanowski, and A. Joulin. Adaptive attention span in transformers. arXiv preprint arXiv:1905.07799, 2019.
247
+ A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
248
+ F. Wu, A. Fan, A. Baevski, Y. N. Dauphin, and M. Auli. Pay less attention with lightweight and dynamic convolutions. arXiv preprint arXiv:1901.10430, 2019.
249
+ Z. Yang, Z. Dai, Y. Yang, J. Carbonell, R. Salakhutdinov, and Q. V. Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019.
250
+ L. Zhou, Y. Zhou, J. J. Corso, R. Socher, and C. Xiong. End-to-end dense video captioning with masked transformer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8739–8748, 2018.
251
+ Y. Zhu, R. Kiros, R. Zemel, R. Salakhutdinov, R. Urtasun, A. Torralba, and S. Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27, 2015. J. G. Zilly, R. K. Srivastava, J. Koutn´ık, and J. Schmidhuber. Recurrent highway networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 4189– 4198. JMLR. org, 2017.
252
+
253
+ # A TEMPORAL RANGE OF THE COMPRESSIVE TRANSFORMER
254
+
255
+ The TransformerXL with a memory of size $n$ has a maximum temporal range of $l \times n$ with an attention cost of $\mathcal { O } ( n _ { s } ^ { 2 } + n _ { s } n )$ (see Dai et al. (2019) for a detailed discussion). The Compressive Transformer now has a maximum temporal range of $l \times \left( n _ { s } + n _ { m } + c * n _ { c m } \right)$ with an attention cost of $\mathcal { O } ( n _ { s } ^ { 2 } + n _ { s } ( n _ { m } + n _ { c m } ) )$ . For example, setting $n _ { c m } = n _ { m } = n / 2$ and $c = 3$ we obtain a maximum temporal range that is two times greater than the TransformerXL with an identical attention cost. Thus if we can learn in the $c > 1$ compressed setting, the temporal range of the model can be significantly increased.
256
+
257
+ # B COMPRESSION ACROSS LAYERS
258
+
259
+ We inspect the compression loss broken down by the layer index, to investigate whether there is a trend in network depth with how compressible the representations are. The compression loss here refers to the attention-reconstruction attention loss. We plot this for a 24 layer trained model on Enwik8, and an 18 layer model trained on WikiText-103. The compression loss for characterbased language modelling is about one order of magnitude lower than that of word-level language modelling. The first layer’s representations are highly compressible, however from then on there is no fixed trend. Some non-contiguous layers have a very similar compression loss (e.g. 4 & 6, 5 & 7) which suggests information is being routed from these layer pairs via the skip connection.
260
+
261
+ ![](images/ac86293c4cd4f466d587bbab8a7c5a4cb730e28f0ff5a8d8b0ff0bd03f5b3baf.jpg)
262
+ Figure 6: Model analysis. Compression loss broken down by layer.
263
+
264
+ # C COMPARISON OF COMPRESSED MEMORY SIZES
265
+
266
+ We compare the best test perplexity obtained for the Compressive Transformer trained on WikiText103 and Enwik8 across a range of compressed memory sizes. For both models, the best model used a 1D convolution compression network with a compression rate of 3. The Enwik8 model was trained with an embedding size of 1024, 8 attention heads, 24 layers, an mlp hidden size of 3072, a sequence window size of 768, and a memory size of 768. We see the best compressed memory size is 3, 072 in this sweep, facilitating a total attention window of 3840. The WikiText-103 model was trained with an embedding size of 1024, adaptive inputs using the same parameters as (Sukhbaatar et al., 2019), 16 attention heads, 18 layers, an mlp hidden size of 4096, a sequence window of size 512 and a memory of size 512. The best compressed memory size is 1536 resulting in a total attention window of c. 2048.
267
+
268
+ <table><tr><td>Compressed Memory Size Enwik8 BPC</td><td>512 1.01</td><td>1024 0.99</td><td>2048 0.98</td><td>3072 0.97</td><td>4096 1.00</td></tr></table>
269
+
270
+ Table 8: Compressed memory size vs test performance for Enwik8
271
+
272
+ Table 9: Compressed memory size vs test performance for WikiText-103
273
+
274
+ <table><tr><td>Compressed Memory Size</td><td>256</td><td>512</td><td>1024</td><td>1536</td><td>2048</td></tr><tr><td>WikiText-103 Perplexity</td><td>18.2</td><td>17.9</td><td>17.6</td><td>17.1</td><td>17.7</td></tr></table>
275
+
276
+ # D PG-19 PREPROCESSING
277
+
278
+ The raw texts from the Gutenberg project were minimally pre-processed by removing boilerplate license text. We then also replaced discriminatory words with a unique $\langle \mathrm { D W x } \rangle$ token using the Ofcom list of discriminatory words 4.
279
+
280
+ # E PG-19 TOPICS
281
+
282
+ We present top-words for some of the topics on the PG-19 corpus. These were generated with LDA topic model (Blei et al., 2003).
283
+
284
+ Table 10: Examples of top topics on PG-19 corpus.
285
+
286
+ <table><tr><td>Geography</td><td>War</td><td>Civilisations</td><td>Human Condition</td><td>Naval</td><td>Education</td><td>Art</td></tr><tr><td>water</td><td>people</td><td>roman</td><td>love</td><td>island</td><td>work</td><td>poet</td></tr><tr><td>river</td><td>emperor</td><td>rome</td><td>religion</td><td>ship</td><td>school</td><td>music</td></tr><tr><td>feet</td><td>war</td><td>greek</td><td>religious</td><td>sea</td><td>life</td><td>one</td></tr><tr><td>miles</td><td> army</td><td>city</td><td>life</td><td>men</td><td>children</td><td>poetry</td></tr><tr><td>north</td><td>death</td><td>gods</td><td>moral</td><td>captain</td><td>may</td><td>work</td></tr><tr><td>south</td><td>battle</td><td>king</td><td>human</td><td>coast</td><td>social</td><td>literature</td></tr><tr><td>mountains</td><td>city</td><td>first</td><td>society</td><td>land</td><td>child</td><td>art</td></tr><tr><td>sea</td><td>soldiers</td><td>caesar</td><td>man</td><td>great</td><td>education</td><td>great</td></tr><tr><td>lake</td><td>power</td><td>great</td><td>virtue</td><td>found</td><td>conditions</td><td>poem</td></tr><tr><td>rock</td><td>thousand</td><td>romans</td><td> nature</td><td>islands</td><td>well</td><td>written</td></tr><tr><td>mountain</td><td>arms</td><td>athens</td><td>marriage</td><td>shore</td><td> study</td><td>english</td></tr><tr><td>country</td><td>empire</td><td>greece</td><td>women</td><td>voyage</td><td>best</td><td>author</td></tr><tr><td>valley</td><td>upon</td><td>temple</td><td>christian</td><td>vessels</td><td>years</td><td>play</td></tr><tr><td>ice</td><td>country</td><td>son</td><td>age</td><td>time</td><td>possible</td><td>genius</td></tr><tr><td>west</td><td>time</td><td>egypt</td><td>law</td><td>english</td><td>class</td><td>style</td></tr></table>
287
+
288
+ # F PG-19 SAMPLES
289
+
290
+ We show a few different samples from the Compressive Transformer trained on PG-19. We use Nucleus Sampling with $p = 0 . 9 8$ (Holtzman et al., 2019). We choose extracts of books from the test set as prefixes. We see the model is able to continue in the style of the text, creating artificial dialogue or descriptive text, and remembering the names of characters over hundreds of words.
291
+
292
+ As the Compressive Transformer is trained without state resetting, it is actually slightly out of sample when provided with the (relatively) short contexts. This is because its memory and compressed memory may be still empty (whereas they are always full during training). However we see a trend of the samples usually improving towards the end.
293
+
294
+ # Context from Baby Mine by Maragaret Mayo:
295
+
296
+ CHAPTER I
297
+
298
+ Even in college Alfred Hardy was a young man of fixed ideas and high ideals and proud of it.
299
+
300
+ His friend, Jimmy Jinks, had few ideas and no ideals, and was glad of it, and before half of their first college term had passed, Jimmy had ridded himself of all such worries as making up his own mind or directing his own morals. Alfred did all these things so much better, argued Jimmy, furthermore, Alfred LIKED to do them–Jimmy owed it to his friend to give him that pleasure.
301
+
302
+ # Compressive Transformer:
303
+
304
+ He did not like doing them in the most elegant of all possible marble walks–where freshmen and sophomores stand and talk and laugh and chatter till evening falls and look cool and still and cool and beautifully white in spite of the hot sun, but had to go there for a month before going home. It happened one day that he and Jimmy were strolling together in the green shade of St. Martin’s, and Jimmy naturally asked why he was so silent. He was very talkative as most boys are who have once got the habit of it on shore, so the need for answering was soon supplied.
305
+
306
+ ”I am wondering,” he said, ”why my old friend and chum, Jimmy Jinks, is living a single life and so has no boys. Have you not noticed that many of his old friends had their own boys to follow in their footsteps and help, and often helped successfully too?”
307
+
308
+ ”Oh, yes,” said Alfred, ”it was plain enough then that he liked to live by himself and got none of his present pleasures or entertainments because of the other fellow’s giving it to him.”
309
+
310
+ ”Then it IS sad,” said Jimmy, ”that an old friend like the friend of Big Lights, Jimmy Reynolds, should be living the single life and having no boys.”
311
+
312
+ ”And it is pretty true, too,” said Alfred, ”yet I believe it is the best thing that could happen even now.”
313
+
314
+ ”And so do I,” said Jimmy, ”and I also believe that it is time someone did something to make the things worse for the other’s partner.”
315
+
316
+ ”And so do I,” said Alfred, ”and so do I, and so do I.”
317
+
318
+ ”What can we do?” asked Jimmy.
319
+
320
+ ”I don’t know,” said Alfred, ”but if someone will come down to the valley and go through a regular mill with the old forces at work, doing the work of the two, and doing it better than any other Miller he ever saw or ever hoped to see, I think there will be a good deal of change in the things and things to be cared for for and for driven and counter-driven.”
321
+
322
+ ”I will come and do that mill,” said Jimmy.
323
+
324
+ # Context from The Diary of Samuel Pepys:
325
+
326
+ June 1st. Having taken our leaves of Sir W. Batten and my Lady, who are gone this morning to keep their Whitsuntide, Sir W. Pen and I and Mr. Gauden by water to Woolwich, and there went from ship to ship to give order for and take notice of their forwardness to go forth, and then to Deptford and did the like, having dined at Woolwich with Captain Poole at the tavern there. From Deptford we walked to Redriffe, calling at the half-way house, and there come into a room where there was infinite of new cakes placed that are made against Whitsuntide, and there we were very merry. By water home, and there did businesses of the office. Among others got my Lord’s imprest of L1000 and Mr. Creed’s of L10,000 against this voyage their bills signed. Having wrote letters into the country and read some things I went to bed.
327
+
328
+ # Compressive Transformer:
329
+
330
+ So I rose and did some business at the office, and then to dinner, where great abundance of good things of the kitchen I only being partaker in the feast. After dinner I went to look at the yard and found it in a very bad condition, so I went home and there finding no delight in seeing things I should make shift to get in my way and so I will leave off.
331
+
332
+ So I took leave of my great friend, and the next day being Sunday, my wife and I and a great number of friends went by water to Deptford, and there took the oaths of allegiance and supremacy and promised such obedience to the Lord as should hereafter turn to the advantage of our State. Being come back we found the shops and warehouses in a pitiable condition, so my wife and I and all the rest of the friends went home and there did the like and by Saturday day I being alone in my office I found myself in a very bad situation, for my Lord, and Mr. Creed, and Pett were all standing ready to receive and receive the oaths of allegiance and right to make use of the ten days’ licence I had allowed for this purpose by virtue of the law that was such a help to the servant. Having looked at the ships, I told my wife what I had seen and that I was greatly troubled at my situation and, I hope that will mend it.
333
+
334
+ So that is the end of a long and patient seeking after those things which in my opinion I deserve and may get if I can only by fair means get them.
335
+
336
+ # Context from The Patrol of the Sun Dance Trail by Ralph Connor:
337
+
338
+ High up on the hillside in the midst of a rugged group of jack pines the Union Jack shook out its folds gallantly in the breeze that swept down the Kicking Horse Pass. That gallant flag marked the headquarters of Superintendent Strong, of the North West Mounted Police, whose special duty it was to preserve law and order along the construction line of the Canadian Pacific Railway Company, now pushed west some scores of miles.
339
+
340
+ Along the tote-road, which ran parallel to the steel, a man, dark of skin, slight but wiry, came running, his hard panting, his streaming face, his open mouth proclaiming his exhaustion. At a little trail that led to the left he paused, noted its course toward the flaunting flag, turned into it, then struggled up the rocky hillside till he came to the wooden shack, with a deep porch running round it, and surrounded by a rustic fence which enclosed a garden whose neatness illustrated a characteristic of the British soldier. The runner passed in through the gate and up the little gravel walk and began to ascend the steps.
341
+
342
+ # Compressive Transformer:
343
+
344
+ As though by mutual consent, all the three members of the Superintendent Force were standing on the veranda watching his progress, a man came strolling slowly down the path, stopping often to gaze curiously about him, then stopping once more when he saw the four standing on the veranda. His face was dark, his eyes prominent, and the lines that furrowed his forehead showed marks of many woes, yet his step was alert and he began to mount the steps with steady strides.
345
+
346
+ The man’s attention was diverted by the unexpected appearance of the two policemen; a third man came slipping up, grumbling under his breath, and stopped long enough to look doubtfully around him, then slipped away again. In the meantime, the four on the veranda continued to watch the approach of the new arrival. In spite of himself, the Superintendent Force became conscious of a curious feeling–uneasiness that was almost fear–in the presence of that strange man. He would not allow himself to admit the fact, yet he felt it in his bones. But to the watchers, the plain, everyday features of that stranger and his coming, seemed only just what the Seven White Shee owed him–their weight, their hurry, their blast.
347
+
348
+ Had a chariot been made for the good of the three horses, and had the driver been given orders that he should speed them that he might win, they would have been heartening things in the sight of the veteran and the victor. To you they would have been unintelligible to the root of your understanding. When you gaze up in the faces of those four gray horses, you can see clearly through the clouds of dust that rise from their hoofs, and discern plainly where the banker is and where the hobo. Then you will understand why you shall not press the bitter grapes and why you shall not spurn the generous doctrines. You will understand why you shall not praise the lash or the spur, for you will know where the true would be and where the false would be. Then you will understand why you, a man with reason and heart, need not tear your hair over-bitter and why you need not laugh over the blunders of an ignorant man.
349
+
350
+ About nine o’clock that morning, two buggies, drawn by powerful horses, crossed the Rubicon and turned the railroad from Sandhurst into the Hollow of the Mountains. And though the charioteers stood at their horses’ heads, and their drivers cried at their loudest, there was not a man in the four teams who did not feel that his day was worth all the toil and all the peril that he had undergone. And if there were a man in them who did not know that–who did not feel that the road through the Hollow of the Mountains is made easy by the arrival of travelers and by the coming of government, there was one who did not at that moment care whether his day’s work were worth all the toil and all the danger that he had had to endure or whether it were not worth more than all.
351
+
352
+ # AUTHOR CONTRIBUTIONS
353
+
354
+ Model and Experiment design: JR, TL, AP, SJ
355
+ Dataset creation: AP, JR, CH
356
+ Text experiments: JR, AP
357
+ RL experiments: SJ
358
+ Speech experiments: JR
parse/train/SylKikSYDH/SylKikSYDH_content_list.json ADDED
@@ -0,0 +1,1708 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "COMPRESSIVE TRANSFORMERS FOR LONG-RANGE SEQUENCE MODELLING ",
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": "Jack W. Rae∗∗ † ‡ Anna Potapenko\\*† Siddhant M. Jayakumar† Chloe Hillier† ",
17
+ "bbox": [
18
+ 183,
19
+ 172,
20
+ 813,
21
+ 188
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Timothy P. Lillicrap†‡ ",
28
+ "bbox": [
29
+ 184,
30
+ 208,
31
+ 339,
32
+ 223
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 260,
43
+ 544,
44
+ 275
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We present the Compressive Transformer, an attentive sequence model which compresses past memories for long-range sequence learning. We find the Compressive Transformer obtains state-of-the-art language modelling results in the WikiText-103 and Enwik8 benchmarks, achieving $1 7 . 1 \\ \\mathrm { p p l }$ and 0.97 bpc respectively. We also find it can model high-frequency speech effectively and can be used as a memory mechanism for RL, demonstrated on an object matching task. To promote the domain of long-range sequence learning, we propose a new openvocabulary language modelling benchmark derived from books, PG-19. ",
51
+ "bbox": [
52
+ 233,
53
+ 291,
54
+ 764,
55
+ 404
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 431,
66
+ 336,
67
+ 446
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Humans have a remarkable ability to remember information over long time horizons. When reading a book, we build up a compressed representation of the past narrative, such as the characters and events that have built up the story so far. We can do this even if they are separated by thousands of words from the current text, or long stretches of time between readings. During daily life, we make use of memories at varying time-scales: from locating the car keys, placed in the morning, to recalling the name of an old friend from decades ago. These feats of memorisation are not achieved by storing every sensory glimpse throughout one’s lifetime, but via lossy compression. We aggressively select, filter, or integrate input stimuli based on factors of surprise, perceived danger, or repetition — amongst other signals (Richards and Frankland, 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 462,
77
+ 825,
78
+ 588
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Memory systems in artificial neural networks began with very compact representations of the past. Recurrent neural networks (RNNs, Rumelhart et al. (1986)) learn to represent the history of observations in a compressed state vector. The state is compressed because it uses far less space than the history of observations — the model only preserving information that is pertinent to the optimization of the loss. The LSTM (Hochreiter and Schmidhuber, 1997) is perhaps the most ubiquitous RNN variant; it uses learned gates on its state vector to determine what information is stored or forgotten from memory. ",
85
+ "bbox": [
86
+ 174,
87
+ 594,
88
+ 825,
89
+ 693
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "However since the LSTM, there has been great benefit discovered in not bottlenecking all historical information in the state, but instead in keeping past activations around in an external memory and attending to them. The Transformer (Vaswani et al., 2017) is a sequence model which stores the hidden activation of every time-step, and integrates this information using an attention operator (Bahdanau et al., 2014). The Transformer will thus represent the past with a tensor (depth $\\times$ memory size $\\times$ dimension) of past observations that is, in practice, an order of magnitude larger than an LSTM’s hidden state. With this granular memory, the Transformer has brought about a step-change in state-of-the-art performance, within machine translation (Vaswani et al., 2017), language modelling (Dai et al., 2019; Shoeybi et al., 2019), video captioning (Zhou et al., 2018), and a multitude of language understanding benchmarks (Devlin et al., 2018; Yang et al., 2019) amongst others. ",
96
+ "bbox": [
97
+ 174,
98
+ 699,
99
+ 823,
100
+ 838
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "One drawback in storing everything is the computational cost of attending to every time-step and the storage cost of preserving this large memory. Several works have focused on reducing the computational cost of attention with sparse access mechanisms (Rae et al., 2016; Child et al., 2019; ",
107
+ "bbox": [
108
+ 174,
109
+ 845,
110
+ 825,
111
+ 887
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Sukhbaatar et al., 2019; Lample et al., 2019). However sparse attention does not solve the storage problem, and often requires custom sparse kernels for efficient implementation. Instead we look back to the notion of compactly representing the past. We show this can be built with simple dense linear-algebra components, such as convolutions, and can reduce both the space and compute cost of our models. ",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 825,
122
+ 172
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We propose the Compressive Transformer, a simple extension to the Transformer which maps past hidden activations (memories) to a smaller set of compressed representations (compressed memories). The Compressive Transformer uses the same attention mechanism over its set of memories and compressed memories, learning to query both its short-term granular memory and longer-term coarse memory. We observe this improves the modelling of text, achieving state-of-the-art results in character-based language modelling — 0.97 bpc on Enwik8 from the Hutter Prize (Hutter, 2012) — and word-level language modelling — 17.1 perplexity on WikiText-103 (Merity et al., 2016). Specifically, we see the Compressive Transformer improves the modelling of rare words. ",
129
+ "bbox": [
130
+ 174,
131
+ 180,
132
+ 825,
133
+ 291
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We show the Compressive Transformer works not only for language, but can also model the waveform of high-frequency speech with a trend of lower likelihood than the TransformerXL and Wavenet (Oord et al., 2016) when trained over 400,000 steps. We also show the Compressive Transformer can be used as a memory component within an RL agent, IMPALA (Espeholt et al., 2018), and can successfully compress and make use of past observations. ",
140
+ "bbox": [
141
+ 174,
142
+ 299,
143
+ 825,
144
+ 368
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Furthermore we present a new book-level language-modelling benchmark PG-19, extracted from texts in Project Gutenberg1, to further promote the direction of long-context sequence modelling. This is over double the size of existing LM benchmarks and contains text with much longer contexts. ",
151
+ "bbox": [
152
+ 174,
153
+ 376,
154
+ 825,
155
+ 417
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 RELATED WORK ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 176,
165
+ 436,
166
+ 344,
167
+ 453
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "There have been a variety of recent attempts to extend the range of attention, particularly in the Transformer, or to replace the attention operation with something less expensive. Wu et al. (2019) show that a convolution-like operator that runs in linear time can actually exceed the performance of the quadratic-time self-attention layer in the Transformer at sentence-to-sentence translation and sentence-level language modelling. However such a mechanism inhibits the flow of information across a large number of time-steps for a given layer, and has not shown to be beneficial for longrange sequence modelling. ",
174
+ "bbox": [
175
+ 174,
176
+ 468,
177
+ 825,
178
+ 565
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Dai et al. (2019) propose the TransformerXL, which keeps past activations around in memory. They also propose a novel relative positional embedding scheme which they see outperforms the Transformer’s original absolute positional system. Our model incorporates both of these ideas, the use of a memory to preserve prior activations and their relative positional embedding scheme. ",
185
+ "bbox": [
186
+ 174,
187
+ 571,
188
+ 825,
189
+ 627
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "The Sparse Transformer (Child et al., 2019) uses fixed sparse attention masks to attend to roughly√ $\\sqrt { n }$ locations in memory. This approach still requires keeping all memories around during training, however with careful re-materialization of activations and custom kernels, the authors are able to train the model with a reasonable budget of memory and compute. When run on Enwik8, the much larger attention window of 8, 000 improves model performance, but overall it does not significantly outperform a simpler TransformerXL with a much smaller attention window. ",
196
+ "bbox": [
197
+ 174,
198
+ 635,
199
+ 825,
200
+ 718
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "The use of dynamic attention spans is explored in Sukhbaatar et al. (2019). Different attention heads can learn to have shorter or longer spans of attention — and they observe this achieves state-ofthe-art in character-based language modelling. This idea could easily be combined with our contribution — a compressive memory. However an efficient implementation is not possible on current dense-linear-algebra accelerators, such as Google’s TPUs, due to the need for dynamic and sparse computation. Our approach builds on simple dense linear algebra components, such as convolutions. ",
207
+ "bbox": [
208
+ 174,
209
+ 724,
210
+ 825,
211
+ 810
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3 MODEL ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 176,
221
+ 829,
222
+ 267,
223
+ 844
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "We present the Compressive Transformer, a long-range sequence model which compacts past activations into a compressed memory2. The Compressive Transformer is a variant of the Transformer (Vaswani et al., 2017), a deep residual network which only uses attention to propagate information over time (namely multi-head attention). We build on the ideas of the TransformerXL (Dai et al., 2019) which maintains a memory of past activations at each layer to preserve a longer history of context. The TransformerXL discards past activations when they become sufficiently old (controlled by the size of the memory). The key principle of the Compressive Transformer is to compress these old memories, instead of discarding them, and store them in an additional compressed memory. ",
230
+ "bbox": [
231
+ 176,
232
+ 859,
233
+ 823,
234
+ 887
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "image",
240
+ "img_path": "images/0acd7690aaac7bffb9eb11c081c43adc68daad2cbdc94c5997f547d73d2d83e7.jpg",
241
+ "image_caption": [
242
+ "Figure 1: The Compressive Transformer keeps a fine-grained memory of past activations, which are then compressed into coarser compressed memories. The above model has three layers, a sequence length ${ n _ { s } = 3 }$ , memory size ${ n _ { m } } = 6$ , compressed memory size $n _ { c m } = 6$ . The highlighted memories are compacted, with a compression function $f _ { c }$ per layer, to a single compressed memory — instead of being discarded at the next sequence. In this example, the rate of compression $c = 3$ . "
243
+ ],
244
+ "image_footnote": [],
245
+ "bbox": [
246
+ 236,
247
+ 97,
248
+ 758,
249
+ 236
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "",
256
+ "bbox": [
257
+ 173,
258
+ 344,
259
+ 825,
260
+ 429
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "3.1 DESCRIPTION ",
267
+ "text_level": 1,
268
+ "bbox": [
269
+ 176,
270
+ 445,
271
+ 310,
272
+ 459
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "We define $n _ { m }$ and $n _ { c m }$ to be the number of respective memory and compressive memory slots in the model per layer. The overall input sequence $\\mathcal { S } = x _ { 1 } , x _ { 2 } , \\dotsc , x _ { | s | }$ represents input observations (e.g. tokens from a book). These are split into fixed-size windows of size $n _ { s }$ for the model to process in parallel. The model observes $\\mathbf { x } = x _ { t } , \\ldots , x _ { t + n _ { s } }$ at time $t$ , which we refer to as the sequence (e.g. in Figure 1). As the model moves to the next sequence, its $n _ { s }$ hidden activations are pushed into a fixed-sized FIFO memory (like the TransformerXL) of size $n _ { m }$ . The oldest $n _ { s }$ activations in memory are evicted, but unlike the TransformerXL we do not discard them. Instead we apply a compression operation, $f _ { c } : \\mathbf { R } ^ { n _ { s } \\times d } \\mathbf { R } ^ { \\lfloor \\frac { n _ { s } } { c } \\rfloor \\times d }$ , mapping the $n _ { s }$ oldest memories to $\\lfloor \\frac { n _ { s } } { c } \\rfloor$ compressed memories which we then store in a secondary FIFO compressed memory of size $n _ { c m }$ . $d$ denotes the hidden size of activations and $c$ refers to the compression rate, a higher value indicates more coarse-grained compressed memories. The overall temporal range of the model becomes $l \\times \\left( n _ { s } + n _ { m } + c * n _ { c m } \\right)$ , where $l$ is the number of layers — as discussed in Supplementary Section A. The full architecture is described in Algorithm 1. ",
279
+ "bbox": [
280
+ 173,
281
+ 470,
282
+ 825,
283
+ 654
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Algorithm 1 Compressive Transformer ",
290
+ "text_level": 1,
291
+ "bbox": [
292
+ 176,
293
+ 669,
294
+ 433,
295
+ 683
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "At time zero \n1: $\\mathbf { m _ { 0 } } \\gets \\mathbf { 0 }$ // Initialize memory to zeros $( l \\times n _ { m } \\times d )$ \n2: $\\mathbf { c m _ { 0 } } \\gets \\mathbf { 0 }$ // Initialize compressed memory to zeros $( l \\times n _ { c m } \\times d )$ \nAt time t \n3: $\\mathbf { h } ^ { ( 1 ) } \\mathbf { x W _ { e m b } }$ // Embed input sequence $( n _ { s } \\times d )$ \n4: for layer $i = 1 , 2 , \\ldots , l$ do \n5: mem(i) ← concat(cm(i)t , m(i)t ) $I / \\left( \\left( n _ { c m } + n _ { m } \\right) \\times d \\right)$ \n6: $\\tilde { \\mathbf { a } } ^ { ( \\mathbf { i } ) } \\gets$ multihead attention(i)(h(i), mem(i)t ) // MHA over both mem types $( n _ { s } \\times d )$ \n7: a(i) ← layer norm(˜a(i) + h(i)) // Regular skip $^ +$ layernorm $( n _ { c m } \\times d )$ \n8: $\\mathbf { o l d . m e m ^ { ( i ) } \\gets m _ { t } ^ { ( i ) } } [ : n _ { s } ]$ // Oldest memories to be forgotten $( n _ { s } \\times d )$ \n9: new $\\mathbf { c m } ^ { ( \\mathbf { i } ) } \\gets f _ { c } ^ { ( i ) } ( \\mathbf { o l d . m e m ^ { ( \\mathbf { i } ) } } )$ // Compress oldest memories by factor $c \\left( \\left\\lfloor { \\frac { n _ { s } } { c } } \\right\\rfloor \\times d \\right)$ \n10: $\\mathbf { m _ { t + 1 } ^ { ( i ) } } \\gets \\mathrm { c o n c a t } ( \\mathbf { m _ { t } ^ { ( i ) } } , \\mathbf { h ^ { ( i ) } } ) [ - n _ { m } \\cdot ]$ // Update memory $( n _ { m } \\times d )$ \n11: $\\mathbf { c m _ { t } ^ { ( i ) } } \\gets \\mathrm { c o n c a t } ( \\mathbf { c m _ { t } ^ { ( i ) } } , \\mathbf { n e w . c m ^ { ( i ) } } ) [ - n _ { c m } :$ :] // Update compressed memory $( n _ { c m } \\times d )$ \n12: $\\mathbf { h } ^ { ( \\mathbf { i } + 1 ) } \\gets \\mathrm { l a y e r . n o r m } ( \\mathrm { m l p } ^ { ( i ) } ( \\mathbf { a } ^ { ( \\mathbf { i } ) } ) + \\mathbf { a } ^ { ( \\mathbf { i } ) } )$ // Mixing MLP $( n _ { s } \\times d )$ ",
302
+ "bbox": [
303
+ 174,
304
+ 685,
305
+ 825,
306
+ 914
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Algorithm 2 Attention-Reconstruction Loss ",
313
+ "text_level": 1,
314
+ "bbox": [
315
+ 178,
316
+ 103,
317
+ 464,
318
+ 117
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "table",
324
+ "img_path": "images/84d9a6beca67ca08f04099f092a23cf0ebf242564d64a170a28d9da28c36f462.jpg",
325
+ "table_caption": [],
326
+ "table_footnote": [],
327
+ "table_body": "<table><tr><td colspan=\"3\">1: Lattn ←0</td></tr><tr><td>2:</td><td>for layeri=1,2,...,l do</td><td></td></tr><tr><td>3:</td><td>h(i) ← stop-gradient(h(i))</td><td>// Stop compression grads from passing...</td></tr><tr><td>4:</td><td>old_mem(i)← stop-gradient(old_mem(i))</td><td>//..into transformer network.</td></tr><tr><td>5:</td><td>Q,K,V ← stop-gradient(attention params at layer i)// Re-use attention weight matrices.</td><td></td></tr><tr><td>6:</td><td>def attn(h,m) ← σ((hQ) (mK))(mV)</td><td>// Use content-based attention (no relative).</td></tr><tr><td>7:</td><td>new_cm(i) ← f(𝑖)(old_mem(i))</td><td>// Compression network (to be optimized).</td></tr><tr><td>8:</td><td>Lattn ← Lattn + |lttn(h(i),old-mem(i)) -attn(h(i),new_cm(i)|l2</td><td></td></tr></table>",
328
+ "bbox": [
329
+ 178,
330
+ 121,
331
+ 825,
332
+ 244
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "3.2 COMPRESSION FUNCTIONS AND LOSSES ",
339
+ "text_level": 1,
340
+ "bbox": [
341
+ 178,
342
+ 276,
343
+ 495,
344
+ 290
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "For choices of compression functions $f _ { c }$ we consider (1) max/mean pooling, where the kernel and stride is set to the compression rate $c$ ; (2) 1D convolution also with kernel & stride set to $c$ ; (3) dilated convolutions; (4) most-used where the memories are sorted by their average attention (usage) and the most-used are preserved. The pooling is used as a fast and simple baseline. The mostused compression scheme is inspired from the garbage collection mechanism in the Differentiable Neural Computer (Graves et al., 2016) where low-usage memories are erased. The convolutional compression functions contain parameters which require training. ",
351
+ "bbox": [
352
+ 173,
353
+ 304,
354
+ 825,
355
+ 401
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "One can train the compression network using gradients from the loss; however for very old memories this requires backpropagating-through-time (BPTT) over long unrolls. As such we also consider some local auxiliary compression losses. We consider an auto-encoding loss where we reconstruct the original memories from the compressed memories $\\mathcal { L } ^ { a e } = | | \\mathbf { o l d . m e m ^ { ( i ) } } - g ( \\mathbf { n e w . c m ^ { ( i ) } } ) | | _ { 2 }$ , where $\\overline { { g } } \\ : \\ \\mathbb { R } ^ { \\frac { n _ { s } } { c } \\times d } \\ \\ \\mathbb { R } ^ { n _ { s } \\times d }$ is learned. This is a lossless compression objective — it attempts to retain all information in memory. We also consider an attention-reconstruction loss described in Algorithm 2 which reconstructs the content-based attention over memory, with content-based attention over the compressed memories. This is a lossy objective, as information that is no longer attended to can be discarded, and we found this worked best. We stop compression loss gradients from passing into the main network as this prevents learning. Instead the Transformer optimizes the task objective and the compression network optimizes the compression objective conditioned on task-relevant representations; there is no need to mix the losses with a tuning constant. ",
362
+ "bbox": [
363
+ 174,
364
+ 409,
365
+ 825,
366
+ 578
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "4 PG-19 BENCHMARK ",
373
+ "text_level": 1,
374
+ "bbox": [
375
+ 176,
376
+ 602,
377
+ 377,
378
+ 618
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "As models begin to incorporate longer-range memories, it is important to train and benchmark them on data containing larger contexts. Natural language in the form of text provides us with a vast repository of data containing long-range dependencies, that is easily accessible. We propose a new language modelling benchmark, PG-19, using text from books extracted from Project Gutenberg 3. We select Project Gutenberg books which were published over 100 years old, i.e. before 1919 (hence the name PG-19) to avoid complications with international copyright, and remove short texts. The dataset contains 28, 752 books, or $1 1 G B$ of text — which makes it over double the size of BookCorpus and Billion Word Benchmark. ",
385
+ "bbox": [
386
+ 174,
387
+ 636,
388
+ 825,
389
+ 747
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "4.1 RELATED DATASETS ",
396
+ "text_level": 1,
397
+ "bbox": [
398
+ 176,
399
+ 768,
400
+ 356,
401
+ 782
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "The two most benchmarked word-level language modelling datasets either stress the modelling of stand-alone sentences (Billion Word Benchmark from Chelba et al. (2013)) or the modelling of a small selection of short news articles (Penn Treebank processed by Mikolov et al. (2010)). Merity et al. (2016) proposed the WikiText-103 dataset, which contains text from a high quality subset of English-language wikipedia articles. These articles are on average 3, 600 words long. This dataset has been a popular recent LM benchmark due to the potential to exploit longer-range dependencies (Grave et al., 2016; Rae et al., 2018; Bai et al., 2018b). However recent Transformer models, such as the TransformerXL (Dai et al., 2019) appear to be able to exploit temporal dependencies on the order of several thousand words. This motivates a larger dataset with longer contexts. ",
408
+ "bbox": [
409
+ 174,
410
+ 795,
411
+ 825,
412
+ 893
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "table",
418
+ "img_path": "images/2b68f7e8b1d22b02e49044e70c616dc4772d92ad3530e1a2ed987c1ebf4486dd.jpg",
419
+ "table_caption": [
420
+ "Table 1: Comparison to existing popular language modelling benchmarks. "
421
+ ],
422
+ "table_footnote": [],
423
+ "table_body": "<table><tr><td></td><td>Avg. length (words)</td><td>Train Size</td><td>Vocab</td><td>Type</td></tr><tr><td>1B Word</td><td>27</td><td>4.15GB</td><td>793K</td><td>News (sentences)</td></tr><tr><td>Penn Treebank</td><td>355</td><td>5.1MB</td><td>10K</td><td>News (articles)</td></tr><tr><td>WikiText-103</td><td>3.6K</td><td>515MB</td><td>267K</td><td>Wikipedia (articles)</td></tr><tr><td>PG-19</td><td>69K</td><td>10.9GB</td><td>(open)</td><td>Books</td></tr></table>",
424
+ "bbox": [
425
+ 232,
426
+ 127,
427
+ 764,
428
+ 212
429
+ ],
430
+ "page_idx": 4
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "",
435
+ "bbox": [
436
+ 174,
437
+ 237,
438
+ 821,
439
+ 266
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "Books are a natural choice of long-form text, and provide us with stylistically rich and varied natural language. Texts extracted from books have been used for prior NLP benchmarks; such as the Children’s Book Test (Hill et al., 2015) and LAMBADA (Paperno et al., 2016). These benchmarks use text from Project Gutenberg, an online repository of books with expired US copyright, and BookCorpus (Zhu et al., 2015), a prior dataset of $1 1 K$ unpublished (at time of authorship) books. CBT and LAMBADA contain extracts from books, with a specific task of predicting held-out words. In the case of LAMBADA the held-out word is specifically designed to be predictable for humans with access to the full textual context — but difficult to guess with only a local context. ",
446
+ "bbox": [
447
+ 174,
448
+ 272,
449
+ 825,
450
+ 385
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "CBT and LAMBADA are useful for probing the linguistic intelligence of models, but are not ideal for training long-range language models from scratch as they truncate text extracts to at most a couple of paragraphs, and discard a lot of the books’ text. There has been prior work on training models on book data using BookCorpus directly (e.g. BERT from Devlin et al. (2018)) however BookCorpus is no longer distributed due to licensing issues, and the source of data is dynamically changing — which makes exact benchmarking difficult over time. ",
457
+ "bbox": [
458
+ 174,
459
+ 391,
460
+ 825,
461
+ 474
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "The NarrativeQA Book Comprehension Task (Kocisk ˇ y et al., 2018) uses Project Gutenberg texts \\` paired with Wikipedia articles, which can be used as summaries. Due to the requirement of needing a corresponding summary, NarrativeQA contains a smaller selection of books: 1,527 versus the 28,752 books in PG-19. However it is reasonable that PG-19 may be useful for pre-training book summarisation models. ",
468
+ "bbox": [
469
+ 174,
470
+ 481,
471
+ 825,
472
+ 551
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "4.2 STATISTICS ",
479
+ "text_level": 1,
480
+ "bbox": [
481
+ 174,
482
+ 558,
483
+ 294,
484
+ 571
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "A brief comparison of PG-19 to other LM datasets can be found in Table 1. We intentionally do not limit the vocabulary by unk-ing rare words, and release the dataset as an open-vocabulary benchmark. To compare models we propose to continue measuring the word-level perplexity. This can still be computed for any chosen character-based, byte-based or subword-based scheme. To do this, one calculates the total cross-entropy loss $\\begin{array} { r } { L = - \\dot { \\sum } _ { t } \\log ( p _ { t } | p _ { < t } ) } \\end{array}$ over the given validation or test subset using a chosen tokenization scheme, and then one normalizes this value by the number of words: $L / n _ { w o r d s }$ where $n _ { w o r d s }$ is the total number of words in the given subset, taken from Table 2. The word-level perplexity is thus $e ^ { L / n _ { w o r d s } }$ . For sake of model comparisons, it is important to use the exact number of words computed in Table 2 as the normalisation constant. ",
491
+ "bbox": [
492
+ 174,
493
+ 583,
494
+ 825,
495
+ 710
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "Alongside quantitative analyses, we build an LDA topic model (Blei et al., 2003) for a qualitative inspection of the text. We present key words for several topics in the Supplementary Table 10. These topics include art, education, naval exploration, geographical description, war, ancient civilisations, and more poetic topics concerning the human condition — love, society, religion, virtue etc. This contrasts to the more objective domains of Wikipedia and news corpora. ",
502
+ "bbox": [
503
+ 174,
504
+ 717,
505
+ 825,
506
+ 786
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "5 EXPERIMENTS ",
513
+ "text_level": 1,
514
+ "bbox": [
515
+ 176,
516
+ 808,
517
+ 326,
518
+ 824
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "We optimised all models with Adam (Kingma and Ba, 2014). We used a learning rate schedule with a linear warmup from 1e-6 to 3e-4 and a cosine decay back down to 1e- $\\mathbf { \\nabla \\cdot } n \\mathbf { 6 }$ . For characterbased LM we used 4, 000 warmup steps with 100, 000 decay steps, and for word-based LM we used 16, 000 warmup steps with 500, 000 decay steps. We found that decreasing the optimisation update frequency helped (see Section 5.5.1), namely we only applied parameter updates every 4 steps after $6 0 , 0 0 0$ iterations. However we found the models would optimise well for a range of warmup/warmdown values. We clipped the gradients to have a norm of at most 0.1, which was crucial to successful optimisation. ",
525
+ "bbox": [
526
+ 174,
527
+ 839,
528
+ 825,
529
+ 924
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "table",
535
+ "img_path": "images/efbda3f84d18e9ae291c165c70cc15bb5bcf84278767a912dcd73c8f313de459.jpg",
536
+ "table_caption": [
537
+ "Table 2: PG-19 statistics split by subsets. "
538
+ ],
539
+ "table_footnote": [],
540
+ "table_body": "<table><tr><td></td><td>Train</td><td>Valid.</td><td>Test</td></tr><tr><td>#books</td><td>28.602</td><td>50</td><td>100</td></tr><tr><td># words</td><td>1,973,136,207</td><td>3,007,061</td><td>6,966,499</td></tr></table>",
541
+ "bbox": [
542
+ 181,
543
+ 127,
544
+ 509,
545
+ 180
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "table",
551
+ "img_path": "images/d0afdea751a2fd5bdc84421c8ab6a82ae941b789b1b70184da89ba2ecc054457.jpg",
552
+ "table_caption": [
553
+ "Table 3: Eval. perplexities on PG-19. "
554
+ ],
555
+ "table_footnote": [],
556
+ "table_body": "<table><tr><td></td><td>Valid.</td><td>Test</td></tr><tr><td>36L TransformerXL</td><td>45.5</td><td>36.3</td></tr><tr><td>36L Compressive Transf.</td><td>43.4</td><td>33.6</td></tr></table>",
557
+ "bbox": [
558
+ 521,
559
+ 127,
560
+ 802,
561
+ 180
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "table",
567
+ "img_path": "images/82736c537ba6a1e60bfb4cc6666154a31abed2dd404b7a08fe6fba8df4180a82.jpg",
568
+ "table_caption": [
569
+ "Table 4: State-of-the-art results on Enwik8. "
570
+ ],
571
+ "table_footnote": [],
572
+ "table_body": "<table><tr><td>Model 7L LSTM(Graves,2013)</td><td>BPC 1.67</td></tr><tr><td>LN HyperNetworks Ha et al. (2016) LN HM-LSTM Chung et al. (2016) ByteNet (Kalchbrenner et al.,2016) RHN Zilly et al. (2017) mLSTM Krause et al. (2016) 64L Transf. Al-Rfou et al. (2019) 24L TXL (Dai et al.,2019) Sparse Transf.(Child et al.,2019) Adaptive Transf. (Sukhbaatar et al.,2019)</td><td>1.34 1.32 1.31 1.27 1.24 1.06 0.99 0.991 0.98</td></tr><tr><td>24L TXL (ours) 24L Compressive Transformer</td><td>0.98 0.97</td></tr></table>",
573
+ "bbox": [
574
+ 176,
575
+ 219,
576
+ 498,
577
+ 402
578
+ ],
579
+ "page_idx": 5
580
+ },
581
+ {
582
+ "type": "table",
583
+ "img_path": "images/40909cb16287f20f962e5fbf73d0fc891a1cb3439b8917684105e947587c862b.jpg",
584
+ "table_caption": [
585
+ "Table 5: Compression approaches on Enwik8. "
586
+ ],
587
+ "table_footnote": [],
588
+ "table_body": "<table><tr><td>Compression fn</td><td>Compression loss</td><td>BPC</td></tr><tr><td>Conv</td><td>BPTT</td><td>0.996</td></tr><tr><td>Max Pooling</td><td>N/A</td><td>0.986</td></tr><tr><td>Conv</td><td>Auto-encoding</td><td>0.984</td></tr><tr><td>Mean Pooling</td><td>N/A</td><td>0.982</td></tr><tr><td>Most-used</td><td>N/A</td><td>0.980</td></tr><tr><td>Dilated conv</td><td>Attention</td><td>0.977</td></tr><tr><td>Conv</td><td>Attention</td><td>0.973</td></tr></table>",
589
+ "bbox": [
590
+ 513,
591
+ 219,
592
+ 813,
593
+ 335
594
+ ],
595
+ "page_idx": 5
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "",
600
+ "bbox": [
601
+ 171,
602
+ 430,
603
+ 825,
604
+ 458
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "5.1 PG-19 ",
611
+ "text_level": 1,
612
+ "bbox": [
613
+ 174,
614
+ 469,
615
+ 261,
616
+ 484
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "We benchmark the Compressive Transformer against the TransformerXL on the newly proposed PG19 books dataset. Because it is open-vocabulary, we train a subword vocabulary of size 32000 with SubwordTextEncoder from the tfds package in TensorFlow and use the dataset statistics to compute word-level perplexity, as described in Section 4.2. We train a 36 layer Compressive Transformer with a window size of 512, both memory and compressed memory size of 512, and compression rate $C =$ 2. We compare this to a 36 layer TransformerXL trained with window size 512 and attention window 1024. The model was trained on 256 TPUv3 cores with a total batch size of 512 and converged after processing around 100 billion subword tokens. We display the results in Table 3 where we see the Compressive Transformer obtains a test perplexity of 33.6 versus the TransformerXL’s 36.3. Despite the dataset size, it is clearly a challenging domain. This can suit as a first baseline on the proposed long-range language modelling benchmark. We show samples from this model in Supplementary Section F. The model is able to generate long-form narrative of varying styles: from character dialogue, first person diary entries, to descriptive third-person text. ",
623
+ "bbox": [
624
+ 174,
625
+ 497,
626
+ 825,
627
+ 676
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "5.2 ENWIK8 ",
634
+ "text_level": 1,
635
+ "bbox": [
636
+ 174,
637
+ 695,
638
+ 272,
639
+ 709
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "We compare the TransformerXL and the Compressive Transformer on the standard character-level language modelling benchmark Enwiki8 taken from the Hutter Prize (Hutter, 2012), which contains 100M bytes of unprocessed Wikipedia text. We select the first 90MB for training, 5MB for validation, and the latter 5MB for testing — as per convention. We train 24-layer models with a sequence window size of 768. During training, we set the TransformerXL’s memory size to 2304, and for the Compressive Transformer we use memory of size 768 and compressed memory of size 1152 with compression rate $C = 3$ . During evaluation, we increased the TransformerXL memory size to 4096 and the compressed memory in our model to 3072 (after sweeping over the validation set), obtaining the numbers reported in Table 4. We show the effect of scaling the compressed memory size and evaluation performance in Supplementary Section C. The proposed model achieves the new state-of-the-art on this dataset with 0.97 bits-per-character. ",
646
+ "bbox": [
647
+ 174,
648
+ 722,
649
+ 825,
650
+ 875
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "We compare compression functions and the use of auxiliary losses in Table 5. We sweep over compression rates of 2, 3, and 4 and report results with the best performing value for each row. BPTT signifies that no auxiliary compression loss was used to train the network other than the overall training loss. To feed gradients into the compression function we unrolled the model over double the sequence length and halved the batch size to fit the larger unroll into memory. ",
657
+ "bbox": [
658
+ 176,
659
+ 882,
660
+ 823,
661
+ 924
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "table",
667
+ "img_path": "images/fb30a0656c181e641e2f43bbcc2fee98b6a958b5568f9f4c23541daef62dc8cd.jpg",
668
+ "table_caption": [
669
+ "Table 6: Validation and test perplexities on WikiText-103. "
670
+ ],
671
+ "table_footnote": [],
672
+ "table_body": "<table><tr><td></td><td>Valid.</td><td>Test</td></tr><tr><td>LSTM (Graves et al., 2014)</td><td></td><td>48.7</td></tr><tr><td>Temporal CNN (Bai et al.,2018a)</td><td>=</td><td>45.2</td></tr><tr><td>GCNN-14 (Dauphin et al.,2016)</td><td>=</td><td>37.2</td></tr><tr><td>Quasi-RNN Bradbury et al. (2016)</td><td>32</td><td>33</td></tr><tr><td>RMC (Santoro et al., 2018)</td><td>30.8</td><td>31.9</td></tr><tr><td>LSTM+Hebb. (Rae et al., 2018)</td><td>29.0</td><td>29.2</td></tr><tr><td>Transformer (Baevski and Auli,2019)</td><td>-</td><td>18.7</td></tr><tr><td>18L TransformerXL,M=384 (Dai et al.,2019)</td><td>-</td><td>18.3</td></tr><tr><td>18L TransformerXL,M=1024(ours)</td><td>=</td><td>18.1</td></tr><tr><td>18L Compressive Transformer,M=1024</td><td>16.0</td><td>17.1</td></tr></table>",
673
+ "bbox": [
674
+ 299,
675
+ 127,
676
+ 696,
677
+ 286
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "",
684
+ "bbox": [
685
+ 173,
686
+ 318,
687
+ 823,
688
+ 347
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "5.3 WIKITEXT-103 ",
695
+ "text_level": 1,
696
+ "bbox": [
697
+ 174,
698
+ 369,
699
+ 320,
700
+ 383
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "We train an eighteen-layered Compressive Transformer on the closed-vocabulary word-level language modelling benchmark WikiText-103, which contains articles from Wikipedia. We train the model with a compressed memory size, memory size, and a sequence window size all equal to 512. We trained the model over 64 Tensor Processing Units (TPU) v3 with a batch size of 2 per core — making for a total batch size of 128. The model converged in a little over 12 hours. We found the single-layer convolution worked best, with a compression rate of $c = 4$ . This model obtained 17.6 perplexity on the test set. By tuning the memory size over the validation set — setting the memory size to 500, and compressed memory size to 1, 500 — we obtain 17.1 perplexity. This is 1.2 perplexity points over prior state of the art, and means the model places a $\\approx 5 \\%$ higher probability on the correct word over the prior SotA TransformerXL. ",
707
+ "bbox": [
708
+ 174,
709
+ 397,
710
+ 825,
711
+ 536
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "It is worth noting that in Table 6 we do not list methods that use additional training data, or that make use of test-time labels to continue training the model on the test set (known as dynamic evaluation (Graves, 2013)). If we incorporate a very naive dynamic evaluation approach of loading a model checkpoint and continuing training over one epoch of the test set, then we obtain a test perplexity of 16.1. This is slightly better than the published 16.4 from Krause et al. (2019) — which uses a more sophisticated dynamic evaluation approach on top of the TransformerXL. However in most settings, one does not have access to test-time labels — and thus we do not focus on this setting. Furthermore there has been great progress in showing that more data equates to much better language modelling; Shoeybi et al. (2019) find a large transformer 8B-parameter transformer trained on 170GB of text obtains 10.7 word-level perplexity on WikiText-103. However it is not clear to what extent the WikiText-103 test set may be leaked inside these larger training corpora. For clarity of model comparisons, we compare to published results trained on the WikiText-103 training set. ",
718
+ "bbox": [
719
+ 174,
720
+ 544,
721
+ 825,
722
+ 710
723
+ ],
724
+ "page_idx": 6
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "We break perplexity down by word frequency in Table 7 and see the Compressive Transformer makes only a small modelling improvement for frequent words $( 2 . 6 \\%$ over the TransformerXL baseline) but obtains a much larger improvement of $\\approx 2 0 \\%$ for infrequent words. Furthermore, we see $\\mathbf { 1 0 X }$ improvement in modelling rare words over the prior state-of-the-art LSTM language model published in 2018 — which demonstrates the rate of progress in this area. ",
729
+ "bbox": [
730
+ 174,
731
+ 717,
732
+ 823,
733
+ 787
734
+ ],
735
+ "page_idx": 6
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "5.4 COMPRESSIBILITY OF LAYERS ",
740
+ "text_level": 1,
741
+ "bbox": [
742
+ 176,
743
+ 797,
744
+ 423,
745
+ 811
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "We can use compression to better understand the model’s mode of operation. We inspect how compressible Transformer’s activations are as they progress through higher layers in the network. One may expect representations to become more difficult to compress at higher layers, if more semantic information is represented there. We monitor the compression loss at each layer of our best-performing Compressive Transformer models trained on Enwik8 and WikiText-103 and display these in Supplementary Section B Figure 6. We note that the compression loss is about one order of magnitude higher for word-level language modelling (WikiText-103) over character-level langauge modelling (Enwik8). Furthermore the first layer of the Transformer is highly compressible. However there is not a clear trend of compression cost increasing with layer depth. ",
752
+ "bbox": [
753
+ 174,
754
+ 825,
755
+ 825,
756
+ 924
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "table",
762
+ "img_path": "images/ad07782bb6059f98be2795c7ebac8be7f39a51c52e9ffe220d67a6ceeea3c7e7.jpg",
763
+ "table_caption": [
764
+ "Table 7: WikiText-103 test perplexity broken down by word frequency buckets. The most frequent bucket is words which appear in the training set more than 10, 000 times, displayed on the left. For reference, a uniform model would have perplexity $| V | = 2 . 6 e 5$ for all frequency buckets. \\*LSTM comparison from Rae et al. (2018) "
765
+ ],
766
+ "table_footnote": [],
767
+ "table_body": "<table><tr><td></td><td>&gt;10K</td><td>1K-10K</td><td>100-1K</td><td>&lt;100</td><td>All</td></tr><tr><td>LSTM*</td><td>12.1</td><td>219</td><td>1,197</td><td>9,725</td><td>36.4</td></tr><tr><td>TransformerXL(ours)</td><td>7.8</td><td>61.2</td><td>188</td><td>1,123</td><td>18.1</td></tr><tr><td>Compressive Transformer</td><td>7.6</td><td>55.9</td><td>158</td><td>937</td><td>17.1</td></tr><tr><td>Relative gain over TXL</td><td>2.6%</td><td>9.5%</td><td>21%</td><td>19.9%</td><td>5.8%</td></tr></table>",
768
+ "bbox": [
769
+ 246,
770
+ 169,
771
+ 746,
772
+ 252
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "image",
778
+ "img_path": "images/91df5905b3cf9156b5c7b63213402e2aaf75a6c641a804dccf9a8f9fec4a3a8d.jpg",
779
+ "image_caption": [
780
+ "Figure 2: Attention weight on Enwik8. Average attention weight from the sequence over the compressed memory (oldest), memory, and sequence (newest) respectively. The sequence self-attention is causally masked, so more attention is placed on earlier elements in the sequence. There is an increase in attention at the transition from memory to compressed memory. "
781
+ ],
782
+ "image_footnote": [],
783
+ "bbox": [
784
+ 192,
785
+ 272,
786
+ 468,
787
+ 386
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "image",
793
+ "img_path": "images/0c169d95a9819eba8789424d7e7a0246e84e7fc6301d76f70dcb4d65a634b4eb.jpg",
794
+ "image_caption": [
795
+ "Figure 3: Learning rate analysis. Reducing the learning rate (e.g. to zero) during training (on Enwik8) harms training performance. Reducing the frequency of optimisation updates (effectively increasing the batch size) is preferable. "
796
+ ],
797
+ "image_footnote": [],
798
+ "bbox": [
799
+ 511,
800
+ 268,
801
+ 792,
802
+ 386
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "",
809
+ "bbox": [
810
+ 173,
811
+ 539,
812
+ 823,
813
+ 568
814
+ ],
815
+ "page_idx": 7
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "5.5 ATTENTION ",
820
+ "text_level": 1,
821
+ "bbox": [
822
+ 174,
823
+ 579,
824
+ 297,
825
+ 593
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "We inspect where the network is attending to on average, to determine whether it is using its compressed memory. We average the attention weight over a sample of 20, 000 sequences from a trained model on Enwik8. We aggregate the attention into eighteen buckets, six for each of the compressed memory, memory, and sequence respectively. We set the size of the sequence, memory and compressed memory all to be 768. We plot this average attention weight per bucket in Figure 2 with a $1 \\sigma$ standard error. We see most of the attention is placed on the current sequence; with a greater weight placed on earlier elements of the sequence due to the causal self-attention mechanism which masks future attention weights. We also observe there is an increase in attention from the oldest activations stored in the regular memory, to the activations stored in the compressed memory. This goes against the trend of older memories being accessed less frequently — and gives evidence that the network is learning to preserve salient information. ",
832
+ "bbox": [
833
+ 174,
834
+ 598,
835
+ 825,
836
+ 751
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "5.5.1 OPTIMISATION SCHEDULE ",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 176,
846
+ 766,
847
+ 411,
848
+ 781
849
+ ],
850
+ "page_idx": 7
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "We make an observation about an interesting but undesirable meta-learning phenomenon during long-context training. When the learning rate is tuned to be much smaller (or set to zero) during training, performance degrades drastically both for the TransformerXL and the Compressive Transformer. This is displayed in Figure 3. ",
855
+ "bbox": [
856
+ 174,
857
+ 791,
858
+ 825,
859
+ 847
860
+ ],
861
+ "page_idx": 7
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Usually we consider distributional shift from the training data to the test data, but we can also observe a shift in the model when transferring from a training to evaluation mode (even when the model is evaluated on the training data). In this case, this is due to the online updating of parameters whilst processing long contiguous articles. We would like the model to generalise well to scenarios where it is not continuously optimised. Updating the parameters only at article boundaries (and then resetting the state) could be one solution for long-range memory models, but this would slow down learning significantly. ",
866
+ "bbox": [
867
+ 176,
868
+ 854,
869
+ 823,
870
+ 924
871
+ ],
872
+ "page_idx": 7
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "",
877
+ "bbox": [
878
+ 174,
879
+ 103,
880
+ 823,
881
+ 132
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Instead, we propose reducing the frequency of optimisation updates during training. We find this allows for the best of both worlds — fast initial learning with frequent updates, and better generalisation near the end of training with less frequent updates (e.g. every 4 steps). Reducing the optimisation frequency increases the effective batch size, which has also been shown to be preferable to learning rate decay in image modelling (Smith et al., 2018). We observed a final performance improvement in our TransformerXL baseline on Enwik8, from 0.995 — which approximately replicates the published result — to 0.984 — which matches the most recent SotA architecture. We note, the additional space and compute cost of accumulating gradients is negligible across iterations, so there was no performance regression in using this scheme. ",
888
+ "bbox": [
889
+ 174,
890
+ 138,
891
+ 825,
892
+ 263
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "5.6 SPEECH ",
899
+ "text_level": 1,
900
+ "bbox": [
901
+ 174,
902
+ 281,
903
+ 269,
904
+ 296
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "We train the Compressive Transformer on the waveform of speech to assess its performance on different modalities. Speech is interesting because it is sampled at an incredibly high frequency, but we know it contains a lot of information on the level of phonemes and entire phrases. ",
911
+ "bbox": [
912
+ 176,
913
+ 308,
914
+ 825,
915
+ 349
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "To encourage long-term reasoning, we refrain from conditioning the model on speaker identity or text features, but focus on unconditional speech modelling. We train the model on 24.6 hours of 24kHz North American speech data. We chunk the sequences into windows of size 3840, roughly 80ms of audio, and compare a 20-layer Compressive Transformer to a 20-layer TransformerXL and a 30-layer WaveNet model (Oord et al., 2016) — a state-of-the-art audio generative model used to serve production speech synthesis applications at Google (Oord et al., 2018). All networks have approximately 40M parameters, as WaveNet is more parameter-efficient per layer. We train each network with 32 V100 GPUs, and a batch size of 1 per core (total batch size of 32) using synchronous training. ",
922
+ "bbox": [
923
+ 174,
924
+ 357,
925
+ 825,
926
+ 483
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "WaveNet processes an entire chunk in parallel, however the TransformerXL and Compressive Transformer are trained with a window size of 768 and a total memory size of 1, 568 (for the Compressive Transformer we use 768 memory $+ 7 6 8$ compressed). We thus unroll the model over the sequence. Despite this sequential unroll, the attention-based models train at only half the speed of WaveNet. We see the test-set negative-log-likelihood in Figure 4, and observe that a Compressive Transformer with a compression rate of 4 is able to outperform the TransformerXL and maintain a slim advantage over WaveNet. However we only trained models for at most one week (with 32GPUs) and it would be advantageous to continue training until full convergence — before definitive conclusions are made. ",
933
+ "bbox": [
934
+ 174,
935
+ 489,
936
+ 825,
937
+ 614
938
+ ],
939
+ "page_idx": 8
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "5.7 REINFORCEMENT LEARNING ",
944
+ "text_level": 1,
945
+ "bbox": [
946
+ 176,
947
+ 632,
948
+ 415,
949
+ 647
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Compression is a good fit for video input sequences because subsequent frames have high mutual information. Here we do not test out the Compressive Transformer on video, but progress straight to a reinforcement learning agent task that receives a video stream of visual observations — but must ultimately learn to use its memory to reason over a policy. ",
956
+ "bbox": [
957
+ 174,
958
+ 659,
959
+ 823,
960
+ 714
961
+ ],
962
+ "page_idx": 8
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "We test the Compressive Transformer as a drop-in replacement to an LSTM in the IMPALA setup (Espeholt et al., 2018). Otherwise, we use the same training framework and agent architecture as described in the original work with a fixed learning rate of 1.5e-5 and entropy cost coefficient of 2e-3. We test the Compressive Transformer on a challenging memory task within the DMLab-30 (Beattie et al., 2016) domain, rooms select nonmatching object. This requires the agent to explore a room in a visually rich 3D environment and remember the object present. The agent can then advance to a second room where it must select the object not present in the original room. This necessitates that the agent both remember events far in the past, and also learn to efficiently reason about them. ",
967
+ "bbox": [
968
+ 174,
969
+ 722,
970
+ 825,
971
+ 847
972
+ ],
973
+ "page_idx": 8
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "We fix both the memory and compressed memory sizes to 64. In Figure 5, we present results for a range of compression rates, averaged over 3 seeds. We see that the best performing agents endowed with the Compressive Transformer are able to solve the task to human-level. We note that the model with compression rate 1 is unable to learn the task to the same proficiency. The speed of learning and stability seem to increase proportionally with higher rates of compression (up to a limit) – i.e. ",
978
+ "bbox": [
979
+ 176,
980
+ 854,
981
+ 823,
982
+ 924
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "image",
988
+ "img_path": "images/42afd920bfbb3132ee3f0bccc130234e666d527c199fd0bd2f67885c2d8766e7.jpg",
989
+ "image_caption": [
990
+ "Figure 4: Speech Modelling. We see the Compressive Transformer is able to obtain competitive results against the state-of-the-art WaveNet in the modelling of raw speech sampled at $2 4 \\mathrm { k H z }$ . "
991
+ ],
992
+ "image_footnote": [],
993
+ "bbox": [
994
+ 179,
995
+ 103,
996
+ 480,
997
+ 223
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "image",
1003
+ "img_path": "images/73b459f5476814831f88dbae381c01075c186cec825da44f6a778c19c5f94da1.jpg",
1004
+ "image_caption": [
1005
+ "Figure 5: Vision and RL. We see the Compressive Transformer integrates visual information across time within an IMPALA RL agent, trained on an object matching task. "
1006
+ ],
1007
+ "image_footnote": [],
1008
+ "bbox": [
1009
+ 529,
1010
+ 111,
1011
+ 805,
1012
+ 224
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "the effective memory window of the agent – and we find compression rate 4 to once again be the best performing. We see this as a promising sign that the architecture is able to efficiently learn, and suitably use, compressed representations of its visual input and hope to test this more widely in future work. ",
1019
+ "bbox": [
1020
+ 174,
1021
+ 333,
1022
+ 825,
1023
+ 388
1024
+ ],
1025
+ "page_idx": 9
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "6 CONCLUSION ",
1030
+ "text_level": 1,
1031
+ "bbox": [
1032
+ 176,
1033
+ 409,
1034
+ 318,
1035
+ 425
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "In this paper we explore the notion of compression as a means of extending the temporal receptive field of Transformer-based sequence models. We see a benefit to this approach in the domain of text, with the Compressive Transformer outperforming existing architectures at long-range language modelling. To continue innovation in this area, we also propose a new book-level LM benchmark, PG-19. This may be used to compare long-range language models, or to pre-train on other longrange reasoning language tasks, such as NarrativeQA (Kocisk ˇ y et al., 2018). \\` ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 440,
1045
+ 825,
1046
+ 525
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "We see the idea of compressive memories is applicable not only to the modality of text, but also audio, in the form of modelling the waveform of speech, and vision, within a reinforcement-learning agent trained on a maze-like memory task. In both cases, we compare to very strong baselines (Wavenet (Oord et al., 2016) and IMPALA (Espeholt et al., 2018)). ",
1053
+ "bbox": [
1054
+ 176,
1055
+ 531,
1056
+ 825,
1057
+ 587
1058
+ ],
1059
+ "page_idx": 9
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "The main limitation of this work is additional complexity, if the task one wishes to solve does not contain long-range reasoning then the Compressive Transformer is unlikely to provide additional benefit. However as a means of scaling memory and attention, we do think compression is a simpler approach to dynamic or sparse attention — which often requires custom kernels to make efficient. One can build effective compression modules from simple neural network components, such as convolutions. The compression components are immediately efficient to run on GPUs and TPUs. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 594,
1067
+ 825,
1068
+ 678
1069
+ ],
1070
+ "page_idx": 9
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Memory systems for neural networks began as compressed state representations within RNNs. The recent wave of progress using attention-based models with deep and granular memories shows us that it is beneficial to refrain from immediately compressing the past. However we hypothesise that more powerful models will contain a mixture of granular recent memories and coarser compressed memories. Future directions could include the investigation of adaptive compression rates by layer, the use of long-range shallow memory layers together with deep short-range memory, and even the use of RNNs as compressors. Compressive memories should not be forgotten about just yet. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 685,
1078
+ 825,
1079
+ 782
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "ACKNOWLEDGEMENTS ",
1086
+ "text_level": 1,
1087
+ "bbox": [
1088
+ 176,
1089
+ 804,
1090
+ 366,
1091
+ 819
1092
+ ],
1093
+ "page_idx": 9
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "We thank Chris Dyer, Felix Gimeno, and Koray Kavukcuoglu for reviewing the manuscript. We thank Peter Dayan, Adam Santoro, Jacob Menick, Emilio Parisotto, Hyunjik Kim, Simon Osindero, Sergey Bartunov, David Raposo, and Daan Wierstra for ideas regarding model design. We thank Yazhe Li and Aaron Van de Oord for their help and advice in instrumenting speech modelling experiments. Finally, we thank our wider DeepMind colleagues for supporting this project with stimulating discussions, engineering infrastructure, and positive reinforcement signals. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 833,
1101
+ 825,
1102
+ 917
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "REFERENCES \nR. Al-Rfou, D. Choe, N. Constant, M. Guo, and L. Jones. Character-level language modeling with deeper self-attention. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 3159–3166, 2019. \nA. Baevski and M. Auli. Adaptive input representations for neural language modeling. arXiv preprint arXiv:1809.10853, 2019. \nD. Bahdanau, K. Cho, and Y. Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. \nS. Bai, J. Z. Kolter, and V. Koltun. Convolutional sequence modeling revisited, 2018a. URL https://openreview.net/forum?id $_ { \\cdot } =$ rk8wKk-R-. \nS. Bai, J. Z. Kolter, and V. Koltun. Trellis networks for sequence modeling. arXiv preprint arXiv:1810.06682, 2018b. \nC. Beattie, J. Z. Leibo, D. Teplyashin, T. Ward, M. Wainwright, H. Kuttler, A. Lefrancq, S. Green, ¨ V. Valdes, A. Sadik, J. Schrittwieser, K. Anderson, S. York, M. Cant, A. Cain, A. Bolton, S. Gaffney, ´ H. King, D. Hassabis, S. Legg, and S. Petersen. Deepmind lab. CoRR, abs/1612.03801, 2016. URL http://arxiv.org/abs/1612.03801. \nD. M. Blei, A. Y. Ng, and M. I. Jordan. Latent dirichlet allocation. J. Mach. Learn. Res., 3:993–1022, Mar. 2003. ISSN 1532-4435. \nJ. Bradbury, S. Merity, C. Xiong, and R. Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016. \nC. Chelba, T. Mikolov, M. Schuster, Q. Ge, T. Brants, P. Koehn, and T. Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013. \nR. Child, S. Gray, A. Radford, and I. Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \nJ. Chung, S. Ahn, and Y. Bengio. Hierarchical multiscale recurrent neural networks. arXiv preprint arXiv:1609.01704, 2016. \nZ. Dai, Z. Yang, Y. Yang, W. W. Cohen, J. Carbonell, Q. V. Le, and R. Salakhutdinov. Transformerxl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. \nY. N. Dauphin, A. Fan, M. Auli, and D. Grangier. Language modeling with gated convolutional networks. arXiv preprint arXiv:1612.08083, 2016. \nJ. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. \nL. Espeholt, H. Soyer, R. Munos, K. Simonyan, V. Mnih, T. Ward, Y. Doron, V. Firoiu, T. Harley, I. Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, pages 1406–1415, 2018. \nE. Grave, A. Joulin, and N. Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016. \nA. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. \nA. Graves, G. Wayne, and I. Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. \nA. Graves, G. Wayne, M. Reynolds, T. Harley, I. Danihelka, A. Grabska-Barwinska, S. G. Col-´ menarejo, E. Grefenstette, T. Ramalho, J. Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016. \nD. Ha, A. Dai, and Q. V. Le. Hypernetworks. arXiv preprint arXiv:1609.09106, 2016. \nF. Hill, A. Bordes, S. Chopra, and J. Weston. The goldilocks principle: Reading children’s books with explicit memory representations. arXiv preprint arXiv:1511.02301, 2015. S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \nA. Holtzman, J. Buys, M. Forbes, and Y. Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019. \nM. Hutter. The human knowledge compression contest. URL http://prize. hutter1. net, 6, 2012. N. Kalchbrenner, L. Espeholt, K. Simonyan, A. v. d. Oord, A. Graves, and K. Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099, 2016. \nD. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \nT. Kocisk ˇ y, J. Schwarz, P. Blunsom, C. Dyer, K. M. Hermann, G. Melis, and E. Grefenstette. The \\` narrativeqa reading comprehension challenge. Transactions of the Association for Computational Linguistics, 6:317–328, 2018. \nB. Krause, L. Lu, I. Murray, and S. Renals. Multiplicative lstm for sequence modelling. arXiv preprint arXiv:1609.07959, 2016. \nB. Krause, E. Kahembwe, I. Murray, and S. Renals. Dynamic evaluation of transformer language models. CoRR, abs/1904.08378, 2019. URL http://arxiv.org/abs/1904.08378. G. Lample, A. Sablayrolles, M. Ranzato, L. Denoyer, and H. Jegou. Large memory layers with ´ product keys. arXiv preprint arXiv:1907.05242, 2019. \nS. Merity, C. Xiong, J. Bradbury, and R. Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. \nT. Mikolov, M. Karafiat, L. Burget, J. ´ Cernock ˇ y, and S. Khudanpur. Recurrent neural network \\` based language model. In Eleventh Annual Conference of the International Speech Communication Association, 2010. \nA. Oord, Y. Li, I. Babuschkin, K. Simonyan, O. Vinyals, K. Kavukcuoglu, G. Driessche, E. Lockhart, L. Cobo, F. Stimberg, et al. Parallel wavenet: Fast high-fidelity speech synthesis. In International Conference on Machine Learning, pages 3915–3923, 2018. \nA. v. d. Oord, S. Dieleman, H. Zen, K. Simonyan, O. Vinyals, A. Graves, N. Kalchbrenner, A. Senior, and K. Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. \nD. Paperno, G. Kruszewski, A. Lazaridou, Q. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, R. Fernandez, K. Erk, et al. The lambada dataset: Word prediction requiring a broad discourse ´ context. Association for Computational Linguistics, 2016. \nJ. Rae, J. J. Hunt, I. Danihelka, T. Harley, A. W. Senior, G. Wayne, A. Graves, and T. Lillicrap. Scaling memory-augmented neural networks with sparse reads and writes. In Advances in Neural Information Processing Systems, pages 3621–3629, 2016. \nJ. W. Rae, C. Dyer, P. Dayan, and T. P. Lillicrap. Fast parametric learning with activation memorization. arXiv preprint arXiv:1803.10049, 2018. \nB. A. Richards and P. W. Frankland. The persistence and transience of memory. Neuron, 94(6): 1071–1084, 2017. \nD. E. Rumelhart, G. E. Hinton, and R. J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533, 1986. \nA. Santoro, R. Faulkner, D. Raposo, J. Rae, M. Chrzanowski, T. Weber, D. Wierstra, O. Vinyals, R. Pascanu, and T. Lillicrap. Relational recurrent neural networks. In Advances in Neural Information Processing Systems, pages 7299–7310, 2018. \nM. Shoeybi, M. Patwary, R. Puri, P. LeGresley, J. Casper, and B. Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism, 2019. \nS. Smith, P. jan Kindermans, C. Ying, and Q. V. Le. Don’t decay the learning rate, increase the batch size. 2018. URL https://openreview.net/pdf?id ${ . } = { }$ B1Yy1BxCZ. S. Sukhbaatar, E. Grave, P. Bojanowski, and A. Joulin. Adaptive attention span in transformers. arXiv preprint arXiv:1905.07799, 2019. \nA. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017. \nF. Wu, A. Fan, A. Baevski, Y. N. Dauphin, and M. Auli. Pay less attention with lightweight and dynamic convolutions. arXiv preprint arXiv:1901.10430, 2019. \nZ. Yang, Z. Dai, Y. Yang, J. Carbonell, R. Salakhutdinov, and Q. V. Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019. \nL. Zhou, Y. Zhou, J. J. Corso, R. Socher, and C. Xiong. End-to-end dense video captioning with masked transformer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8739–8748, 2018. \nY. Zhu, R. Kiros, R. Zemel, R. Salakhutdinov, R. Urtasun, A. Torralba, and S. Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27, 2015. J. G. Zilly, R. K. Srivastava, J. Koutn´ık, and J. Schmidhuber. Recurrent highway networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 4189– 4198. JMLR. org, 2017. ",
1109
+ "bbox": [
1110
+ 169,
1111
+ 99,
1112
+ 826,
1113
+ 926
1114
+ ],
1115
+ "page_idx": 10
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "",
1120
+ "bbox": [
1121
+ 171,
1122
+ 75,
1123
+ 828,
1124
+ 896
1125
+ ],
1126
+ "page_idx": 11
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "",
1131
+ "bbox": [
1132
+ 171,
1133
+ 102,
1134
+ 828,
1135
+ 393
1136
+ ],
1137
+ "page_idx": 12
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "A TEMPORAL RANGE OF THE COMPRESSIVE TRANSFORMER ",
1142
+ "text_level": 1,
1143
+ "bbox": [
1144
+ 176,
1145
+ 138,
1146
+ 694,
1147
+ 156
1148
+ ],
1149
+ "page_idx": 13
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "The TransformerXL with a memory of size $n$ has a maximum temporal range of $l \\times n$ with an attention cost of $\\mathcal { O } ( n _ { s } ^ { 2 } + n _ { s } n )$ (see Dai et al. (2019) for a detailed discussion). The Compressive Transformer now has a maximum temporal range of $l \\times \\left( n _ { s } + n _ { m } + c * n _ { c m } \\right)$ with an attention cost of $\\mathcal { O } ( n _ { s } ^ { 2 } + n _ { s } ( n _ { m } + n _ { c m } ) )$ . For example, setting $n _ { c m } = n _ { m } = n / 2$ and $c = 3$ we obtain a maximum temporal range that is two times greater than the TransformerXL with an identical attention cost. Thus if we can learn in the $c > 1$ compressed setting, the temporal range of the model can be significantly increased. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 175,
1157
+ 825,
1158
+ 273
1159
+ ],
1160
+ "page_idx": 13
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "B COMPRESSION ACROSS LAYERS ",
1165
+ "text_level": 1,
1166
+ "bbox": [
1167
+ 176,
1168
+ 300,
1169
+ 477,
1170
+ 315
1171
+ ],
1172
+ "page_idx": 13
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "We inspect the compression loss broken down by the layer index, to investigate whether there is a trend in network depth with how compressible the representations are. The compression loss here refers to the attention-reconstruction attention loss. We plot this for a 24 layer trained model on Enwik8, and an 18 layer model trained on WikiText-103. The compression loss for characterbased language modelling is about one order of magnitude lower than that of word-level language modelling. The first layer’s representations are highly compressible, however from then on there is no fixed trend. Some non-contiguous layers have a very similar compression loss (e.g. 4 & 6, 5 & 7) which suggests information is being routed from these layer pairs via the skip connection. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 335,
1180
+ 825,
1181
+ 448
1182
+ ],
1183
+ "page_idx": 13
1184
+ },
1185
+ {
1186
+ "type": "image",
1187
+ "img_path": "images/ac86293c4cd4f466d587bbab8a7c5a4cb730e28f0ff5a8d8b0ff0bd03f5b3baf.jpg",
1188
+ "image_caption": [
1189
+ "Figure 6: Model analysis. Compression loss broken down by layer. "
1190
+ ],
1191
+ "image_footnote": [],
1192
+ "bbox": [
1193
+ 176,
1194
+ 467,
1195
+ 825,
1196
+ 582
1197
+ ],
1198
+ "page_idx": 13
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "C COMPARISON OF COMPRESSED MEMORY SIZES ",
1203
+ "text_level": 1,
1204
+ "bbox": [
1205
+ 174,
1206
+ 652,
1207
+ 606,
1208
+ 670
1209
+ ],
1210
+ "page_idx": 13
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "We compare the best test perplexity obtained for the Compressive Transformer trained on WikiText103 and Enwik8 across a range of compressed memory sizes. For both models, the best model used a 1D convolution compression network with a compression rate of 3. The Enwik8 model was trained with an embedding size of 1024, 8 attention heads, 24 layers, an mlp hidden size of 3072, a sequence window size of 768, and a memory size of 768. We see the best compressed memory size is 3, 072 in this sweep, facilitating a total attention window of 3840. The WikiText-103 model was trained with an embedding size of 1024, adaptive inputs using the same parameters as (Sukhbaatar et al., 2019), 16 attention heads, 18 layers, an mlp hidden size of 4096, a sequence window of size 512 and a memory of size 512. The best compressed memory size is 1536 resulting in a total attention window of c. 2048. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 689,
1218
+ 825,
1219
+ 828
1220
+ ],
1221
+ "page_idx": 13
1222
+ },
1223
+ {
1224
+ "type": "table",
1225
+ "img_path": "images/9b5717cc0e4ccb7b017505628b8bc32ac87de2acfe3159333379654379b92717.jpg",
1226
+ "table_caption": [],
1227
+ "table_footnote": [],
1228
+ "table_body": "<table><tr><td>Compressed Memory Size Enwik8 BPC</td><td>512 1.01</td><td>1024 0.99</td><td>2048 0.98</td><td>3072 0.97</td><td>4096 1.00</td></tr></table>",
1229
+ "bbox": [
1230
+ 274,
1231
+ 844,
1232
+ 722,
1233
+ 882
1234
+ ],
1235
+ "page_idx": 13
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Table 8: Compressed memory size vs test performance for Enwik8 ",
1240
+ "bbox": [
1241
+ 279,
1242
+ 892,
1243
+ 718,
1244
+ 907
1245
+ ],
1246
+ "page_idx": 13
1247
+ },
1248
+ {
1249
+ "type": "table",
1250
+ "img_path": "images/e4e35544ede3400da210215d541deab40edc86d4bb25bda1f66516931f6feb69.jpg",
1251
+ "table_caption": [
1252
+ "Table 9: Compressed memory size vs test performance for WikiText-103 "
1253
+ ],
1254
+ "table_footnote": [],
1255
+ "table_body": "<table><tr><td>Compressed Memory Size</td><td>256</td><td>512</td><td>1024</td><td>1536</td><td>2048</td></tr><tr><td>WikiText-103 Perplexity</td><td>18.2</td><td>17.9</td><td>17.6</td><td>17.1</td><td>17.7</td></tr></table>",
1256
+ "bbox": [
1257
+ 272,
1258
+ 102,
1259
+ 723,
1260
+ 138
1261
+ ],
1262
+ "page_idx": 14
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "D PG-19 PREPROCESSING ",
1267
+ "text_level": 1,
1268
+ "bbox": [
1269
+ 176,
1270
+ 186,
1271
+ 410,
1272
+ 204
1273
+ ],
1274
+ "page_idx": 14
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "The raw texts from the Gutenberg project were minimally pre-processed by removing boilerplate license text. We then also replaced discriminatory words with a unique $\\langle \\mathrm { D W x } \\rangle$ token using the Ofcom list of discriminatory words 4. ",
1279
+ "bbox": [
1280
+ 174,
1281
+ 219,
1282
+ 823,
1283
+ 261
1284
+ ],
1285
+ "page_idx": 14
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "E PG-19 TOPICS ",
1290
+ "text_level": 1,
1291
+ "bbox": [
1292
+ 176,
1293
+ 280,
1294
+ 331,
1295
+ 297
1296
+ ],
1297
+ "page_idx": 14
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "We present top-words for some of the topics on the PG-19 corpus. These were generated with LDA topic model (Blei et al., 2003). ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 313,
1305
+ 823,
1306
+ 342
1307
+ ],
1308
+ "page_idx": 14
1309
+ },
1310
+ {
1311
+ "type": "table",
1312
+ "img_path": "images/66326489e1adda3643e1b564ccf51190c7865443b92a6b940f4def603f2bf2cc.jpg",
1313
+ "table_caption": [
1314
+ "Table 10: Examples of top topics on PG-19 corpus. "
1315
+ ],
1316
+ "table_footnote": [],
1317
+ "table_body": "<table><tr><td>Geography</td><td>War</td><td>Civilisations</td><td>Human Condition</td><td>Naval</td><td>Education</td><td>Art</td></tr><tr><td>water</td><td>people</td><td>roman</td><td>love</td><td>island</td><td>work</td><td>poet</td></tr><tr><td>river</td><td>emperor</td><td>rome</td><td>religion</td><td>ship</td><td>school</td><td>music</td></tr><tr><td>feet</td><td>war</td><td>greek</td><td>religious</td><td>sea</td><td>life</td><td>one</td></tr><tr><td>miles</td><td> army</td><td>city</td><td>life</td><td>men</td><td>children</td><td>poetry</td></tr><tr><td>north</td><td>death</td><td>gods</td><td>moral</td><td>captain</td><td>may</td><td>work</td></tr><tr><td>south</td><td>battle</td><td>king</td><td>human</td><td>coast</td><td>social</td><td>literature</td></tr><tr><td>mountains</td><td>city</td><td>first</td><td>society</td><td>land</td><td>child</td><td>art</td></tr><tr><td>sea</td><td>soldiers</td><td>caesar</td><td>man</td><td>great</td><td>education</td><td>great</td></tr><tr><td>lake</td><td>power</td><td>great</td><td>virtue</td><td>found</td><td>conditions</td><td>poem</td></tr><tr><td>rock</td><td>thousand</td><td>romans</td><td> nature</td><td>islands</td><td>well</td><td>written</td></tr><tr><td>mountain</td><td>arms</td><td>athens</td><td>marriage</td><td>shore</td><td> study</td><td>english</td></tr><tr><td>country</td><td>empire</td><td>greece</td><td>women</td><td>voyage</td><td>best</td><td>author</td></tr><tr><td>valley</td><td>upon</td><td>temple</td><td>christian</td><td>vessels</td><td>years</td><td>play</td></tr><tr><td>ice</td><td>country</td><td>son</td><td>age</td><td>time</td><td>possible</td><td>genius</td></tr><tr><td>west</td><td>time</td><td>egypt</td><td>law</td><td>english</td><td>class</td><td>style</td></tr></table>",
1318
+ "bbox": [
1319
+ 173,
1320
+ 387,
1321
+ 839,
1322
+ 626
1323
+ ],
1324
+ "page_idx": 14
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "F PG-19 SAMPLES ",
1329
+ "text_level": 1,
1330
+ "bbox": [
1331
+ 174,
1332
+ 660,
1333
+ 348,
1334
+ 676
1335
+ ],
1336
+ "page_idx": 14
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "We show a few different samples from the Compressive Transformer trained on PG-19. We use Nucleus Sampling with $p = 0 . 9 8$ (Holtzman et al., 2019). We choose extracts of books from the test set as prefixes. We see the model is able to continue in the style of the text, creating artificial dialogue or descriptive text, and remembering the names of characters over hundreds of words. ",
1341
+ "bbox": [
1342
+ 174,
1343
+ 691,
1344
+ 825,
1345
+ 747
1346
+ ],
1347
+ "page_idx": 14
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "As the Compressive Transformer is trained without state resetting, it is actually slightly out of sample when provided with the (relatively) short contexts. This is because its memory and compressed memory may be still empty (whereas they are always full during training). However we see a trend of the samples usually improving towards the end. ",
1352
+ "bbox": [
1353
+ 174,
1354
+ 753,
1355
+ 825,
1356
+ 810
1357
+ ],
1358
+ "page_idx": 14
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Context from Baby Mine by Maragaret Mayo: ",
1363
+ "text_level": 1,
1364
+ "bbox": [
1365
+ 181,
1366
+ 109,
1367
+ 504,
1368
+ 125
1369
+ ],
1370
+ "page_idx": 15
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "CHAPTER I ",
1375
+ "bbox": [
1376
+ 179,
1377
+ 137,
1378
+ 266,
1379
+ 151
1380
+ ],
1381
+ "page_idx": 15
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Even in college Alfred Hardy was a young man of fixed ideas and high ideals and proud of it. ",
1386
+ "bbox": [
1387
+ 179,
1388
+ 165,
1389
+ 789,
1390
+ 180
1391
+ ],
1392
+ "page_idx": 15
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "His friend, Jimmy Jinks, had few ideas and no ideals, and was glad of it, and before half of their first college term had passed, Jimmy had ridded himself of all such worries as making up his own mind or directing his own morals. Alfred did all these things so much better, argued Jimmy, furthermore, Alfred LIKED to do them–Jimmy owed it to his friend to give him that pleasure. ",
1397
+ "bbox": [
1398
+ 181,
1399
+ 193,
1400
+ 797,
1401
+ 250
1402
+ ],
1403
+ "page_idx": 15
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Compressive Transformer: ",
1408
+ "text_level": 1,
1409
+ "bbox": [
1410
+ 181,
1411
+ 262,
1412
+ 366,
1413
+ 276
1414
+ ],
1415
+ "page_idx": 15
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "He did not like doing them in the most elegant of all possible marble walks–where freshmen and sophomores stand and talk and laugh and chatter till evening falls and look cool and still and cool and beautifully white in spite of the hot sun, but had to go there for a month before going home. It happened one day that he and Jimmy were strolling together in the green shade of St. Martin’s, and Jimmy naturally asked why he was so silent. He was very talkative as most boys are who have once got the habit of it on shore, so the need for answering was soon supplied. ",
1420
+ "bbox": [
1421
+ 179,
1422
+ 290,
1423
+ 797,
1424
+ 387
1425
+ ],
1426
+ "page_idx": 15
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "”I am wondering,” he said, ”why my old friend and chum, Jimmy Jinks, is living a single life and so has no boys. Have you not noticed that many of his old friends had their own boys to follow in their footsteps and help, and often helped successfully too?” ",
1431
+ "bbox": [
1432
+ 179,
1433
+ 400,
1434
+ 797,
1435
+ 443
1436
+ ],
1437
+ "page_idx": 15
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "”Oh, yes,” said Alfred, ”it was plain enough then that he liked to live by himself and got none of his present pleasures or entertainments because of the other fellow’s giving it to him.” ",
1442
+ "bbox": [
1443
+ 178,
1444
+ 455,
1445
+ 795,
1446
+ 484
1447
+ ],
1448
+ "page_idx": 15
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "”Then it IS sad,” said Jimmy, ”that an old friend like the friend of Big Lights, Jimmy Reynolds, should be living the single life and having no boys.” ",
1453
+ "bbox": [
1454
+ 179,
1455
+ 497,
1456
+ 797,
1457
+ 526
1458
+ ],
1459
+ "page_idx": 15
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "”And it is pretty true, too,” said Alfred, ”yet I believe it is the best thing that could happen even now.” ",
1464
+ "bbox": [
1465
+ 176,
1466
+ 539,
1467
+ 797,
1468
+ 565
1469
+ ],
1470
+ "page_idx": 15
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "”And so do I,” said Jimmy, ”and I also believe that it is time someone did something to make the things worse for the other’s partner.” ",
1475
+ "bbox": [
1476
+ 176,
1477
+ 580,
1478
+ 797,
1479
+ 608
1480
+ ],
1481
+ "page_idx": 15
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "”And so do I,” said Alfred, ”and so do I, and so do I.” ",
1486
+ "bbox": [
1487
+ 181,
1488
+ 621,
1489
+ 529,
1490
+ 636
1491
+ ],
1492
+ "page_idx": 15
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "”What can we do?” asked Jimmy. ",
1497
+ "bbox": [
1498
+ 181,
1499
+ 650,
1500
+ 400,
1501
+ 664
1502
+ ],
1503
+ "page_idx": 15
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "”I don’t know,” said Alfred, ”but if someone will come down to the valley and go through a regular mill with the old forces at work, doing the work of the two, and doing it better than any other Miller he ever saw or ever hoped to see, I think there will be a good deal of change in the things and things to be cared for for and for driven and counter-driven.” ",
1508
+ "bbox": [
1509
+ 179,
1510
+ 676,
1511
+ 797,
1512
+ 733
1513
+ ],
1514
+ "page_idx": 15
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "”I will come and do that mill,” said Jimmy. ",
1519
+ "bbox": [
1520
+ 183,
1521
+ 746,
1522
+ 460,
1523
+ 761
1524
+ ],
1525
+ "page_idx": 15
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "Context from The Diary of Samuel Pepys: ",
1530
+ "text_level": 1,
1531
+ "bbox": [
1532
+ 181,
1533
+ 109,
1534
+ 472,
1535
+ 125
1536
+ ],
1537
+ "page_idx": 16
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "June 1st. Having taken our leaves of Sir W. Batten and my Lady, who are gone this morning to keep their Whitsuntide, Sir W. Pen and I and Mr. Gauden by water to Woolwich, and there went from ship to ship to give order for and take notice of their forwardness to go forth, and then to Deptford and did the like, having dined at Woolwich with Captain Poole at the tavern there. From Deptford we walked to Redriffe, calling at the half-way house, and there come into a room where there was infinite of new cakes placed that are made against Whitsuntide, and there we were very merry. By water home, and there did businesses of the office. Among others got my Lord’s imprest of L1000 and Mr. Creed’s of L10,000 against this voyage their bills signed. Having wrote letters into the country and read some things I went to bed. ",
1542
+ "bbox": [
1543
+ 179,
1544
+ 137,
1545
+ 797,
1546
+ 263
1547
+ ],
1548
+ "page_idx": 16
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "Compressive Transformer: ",
1553
+ "text_level": 1,
1554
+ "bbox": [
1555
+ 181,
1556
+ 276,
1557
+ 366,
1558
+ 290
1559
+ ],
1560
+ "page_idx": 16
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "So I rose and did some business at the office, and then to dinner, where great abundance of good things of the kitchen I only being partaker in the feast. After dinner I went to look at the yard and found it in a very bad condition, so I went home and there finding no delight in seeing things I should make shift to get in my way and so I will leave off. ",
1565
+ "bbox": [
1566
+ 179,
1567
+ 304,
1568
+ 797,
1569
+ 359
1570
+ ],
1571
+ "page_idx": 16
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "So I took leave of my great friend, and the next day being Sunday, my wife and I and a great number of friends went by water to Deptford, and there took the oaths of allegiance and supremacy and promised such obedience to the Lord as should hereafter turn to the advantage of our State. Being come back we found the shops and warehouses in a pitiable condition, so my wife and I and all the rest of the friends went home and there did the like and by Saturday day I being alone in my office I found myself in a very bad situation, for my Lord, and Mr. Creed, and Pett were all standing ready to receive and receive the oaths of allegiance and right to make use of the ten days’ licence I had allowed for this purpose by virtue of the law that was such a help to the servant. Having looked at the ships, I told my wife what I had seen and that I was greatly troubled at my situation and, I hope that will mend it. ",
1576
+ "bbox": [
1577
+ 179,
1578
+ 372,
1579
+ 797,
1580
+ 512
1581
+ ],
1582
+ "page_idx": 16
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "So that is the end of a long and patient seeking after those things which in my opinion I deserve and may get if I can only by fair means get them. ",
1587
+ "bbox": [
1588
+ 179,
1589
+ 525,
1590
+ 795,
1591
+ 553
1592
+ ],
1593
+ "page_idx": 16
1594
+ },
1595
+ {
1596
+ "type": "text",
1597
+ "text": "Context from The Patrol of the Sun Dance Trail by Ralph Connor: ",
1598
+ "text_level": 1,
1599
+ "bbox": [
1600
+ 179,
1601
+ 108,
1602
+ 643,
1603
+ 125
1604
+ ],
1605
+ "page_idx": 17
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "High up on the hillside in the midst of a rugged group of jack pines the Union Jack shook out its folds gallantly in the breeze that swept down the Kicking Horse Pass. That gallant flag marked the headquarters of Superintendent Strong, of the North West Mounted Police, whose special duty it was to preserve law and order along the construction line of the Canadian Pacific Railway Company, now pushed west some scores of miles. ",
1610
+ "bbox": [
1611
+ 181,
1612
+ 137,
1613
+ 797,
1614
+ 207
1615
+ ],
1616
+ "page_idx": 17
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "Along the tote-road, which ran parallel to the steel, a man, dark of skin, slight but wiry, came running, his hard panting, his streaming face, his open mouth proclaiming his exhaustion. At a little trail that led to the left he paused, noted its course toward the flaunting flag, turned into it, then struggled up the rocky hillside till he came to the wooden shack, with a deep porch running round it, and surrounded by a rustic fence which enclosed a garden whose neatness illustrated a characteristic of the British soldier. The runner passed in through the gate and up the little gravel walk and began to ascend the steps. ",
1621
+ "bbox": [
1622
+ 179,
1623
+ 220,
1624
+ 795,
1625
+ 319
1626
+ ],
1627
+ "page_idx": 17
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "Compressive Transformer: ",
1632
+ "text_level": 1,
1633
+ "bbox": [
1634
+ 181,
1635
+ 330,
1636
+ 366,
1637
+ 344
1638
+ ],
1639
+ "page_idx": 17
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "As though by mutual consent, all the three members of the Superintendent Force were standing on the veranda watching his progress, a man came strolling slowly down the path, stopping often to gaze curiously about him, then stopping once more when he saw the four standing on the veranda. His face was dark, his eyes prominent, and the lines that furrowed his forehead showed marks of many woes, yet his step was alert and he began to mount the steps with steady strides. ",
1644
+ "bbox": [
1645
+ 179,
1646
+ 358,
1647
+ 797,
1648
+ 441
1649
+ ],
1650
+ "page_idx": 17
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "The man’s attention was diverted by the unexpected appearance of the two policemen; a third man came slipping up, grumbling under his breath, and stopped long enough to look doubtfully around him, then slipped away again. In the meantime, the four on the veranda continued to watch the approach of the new arrival. In spite of himself, the Superintendent Force became conscious of a curious feeling–uneasiness that was almost fear–in the presence of that strange man. He would not allow himself to admit the fact, yet he felt it in his bones. But to the watchers, the plain, everyday features of that stranger and his coming, seemed only just what the Seven White Shee owed him–their weight, their hurry, their blast. ",
1655
+ "bbox": [
1656
+ 179,
1657
+ 455,
1658
+ 797,
1659
+ 566
1660
+ ],
1661
+ "page_idx": 17
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "Had a chariot been made for the good of the three horses, and had the driver been given orders that he should speed them that he might win, they would have been heartening things in the sight of the veteran and the victor. To you they would have been unintelligible to the root of your understanding. When you gaze up in the faces of those four gray horses, you can see clearly through the clouds of dust that rise from their hoofs, and discern plainly where the banker is and where the hobo. Then you will understand why you shall not press the bitter grapes and why you shall not spurn the generous doctrines. You will understand why you shall not praise the lash or the spur, for you will know where the true would be and where the false would be. Then you will understand why you, a man with reason and heart, need not tear your hair over-bitter and why you need not laugh over the blunders of an ignorant man. ",
1666
+ "bbox": [
1667
+ 179,
1668
+ 580,
1669
+ 797,
1670
+ 719
1671
+ ],
1672
+ "page_idx": 17
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "About nine o’clock that morning, two buggies, drawn by powerful horses, crossed the Rubicon and turned the railroad from Sandhurst into the Hollow of the Mountains. And though the charioteers stood at their horses’ heads, and their drivers cried at their loudest, there was not a man in the four teams who did not feel that his day was worth all the toil and all the peril that he had undergone. And if there were a man in them who did not know that–who did not feel that the road through the Hollow of the Mountains is made easy by the arrival of travelers and by the coming of government, there was one who did not at that moment care whether his day’s work were worth all the toil and all the danger that he had had to endure or whether it were not worth more than all. ",
1677
+ "bbox": [
1678
+ 179,
1679
+ 732,
1680
+ 797,
1681
+ 857
1682
+ ],
1683
+ "page_idx": 17
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "AUTHOR CONTRIBUTIONS ",
1688
+ "text_level": 1,
1689
+ "bbox": [
1690
+ 176,
1691
+ 102,
1692
+ 395,
1693
+ 118
1694
+ ],
1695
+ "page_idx": 18
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "Model and Experiment design: JR, TL, AP, SJ \nDataset creation: AP, JR, CH \nText experiments: JR, AP \nRL experiments: SJ \nSpeech experiments: JR ",
1700
+ "bbox": [
1701
+ 230,
1702
+ 127,
1703
+ 537,
1704
+ 219
1705
+ ],
1706
+ "page_idx": 18
1707
+ }
1708
+ ]
parse/train/SylKikSYDH/SylKikSYDH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SylKikSYDH/SylKikSYDH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/kHSu4ebxFXY/kHSu4ebxFXY.md ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MARS: MARKOV MOLECULAR SAMPLING FOR MULTI-OBJECTIVE DRUG DISCOVERY
2
+
3
+ Yutong $\mathbf { X } \mathbf { i } \mathbf { e } ^ { \mathrm { { \dagger } } \circ }$ , Chence $\mathbf { S h i } ^ { \dagger \triangle }$ , Hao Zhou†∗, Yuwei Yang†, Weinan Zhang‡, Yong $\mathbf { V } \mathbf { u } ^ { \ddag }$ , Lei Li†∗
4
+ †ByteDance AI Lab, Shanghai, China
5
+ University of Michigan, Ann Arbor, MI, USA
6
+ 4Montreal Institute of Learning Algorithms, Montreal, Canada ´
7
+ ‡Department of Computer Science and Engineering, Shanghai Jiao Tong University, China
8
+
9
+ # ABSTRACT
10
+
11
+ Searching for novel molecules with desired chemical properties is crucial in drug discovery. Existing work focuses on developing neural models to generate either molecular sequences or chemical graphs. However, it remains a big challenge to find novel and diverse compounds satisfying several properties. In this paper, we propose MARS, a method for multi-objective drug molecule discovery. MARS is based on the idea of generating the chemical candidates by iteratively editing fragments of molecular graphs. To search for high-quality candidates, it employs Markov chain Monte Carlo sampling (MCMC) on molecules with an annealing scheme and an adaptive proposal. To further improve sample efficiency, MARS uses a graph neural network (GNN) to represent and select candidate edits, where the GNN is trained on-the-fly with samples from MCMC. Experiments show that MARS achieves state-of-the-art performance in various multi-objective settings where molecular bio-activity, drug-likeness, and synthesizability are considered. Remarkably, in the most challenging setting where all four objectives are simultaneously optimized, our approach outperforms previous methods significantly in comprehensive evaluations. The code is available at https://github.com/yutxie/mars.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Drug discovery aims to find chemical compounds with desired target properties, such as high druglikeness (Bickerton et al., 2012, QED). The problem is also referred to as molecular design, molecular generation, or molecular search. The space of drug-like chemicals is enormous, approximate $1 0 ^ { 3 3 }$ for realistic drugs that could ever be synthesized (Polishchuk et al., 2013). Therefore it is very challenging to search for high-quality molecules from such a vast space — enumeration would take almost forever. For a particular disease, finding the right candidates targeting specific proteins further complicates the problem.
16
+
17
+ Instead of enumerating or searching from the immense chemical space, recent work utilizes deep generative models to generate candidate molecules directly (Schwalbe-Koda & Gomez-Bombarelli, ´ 2020). However, most prior work focuses on generating molecules concerning a single property such as drug-likeness (QED) or octanol-water partition coefficient (logP) (Jin et al., 2018; You et al., 2018; Popova et al., 2019; Shi et al., 2020; Zang & Wang, 2020). While in practical settings, typical drug discovery requires consideration of multiple properties jointly (Nicolaou et al., 2012). For example, to find drug-like molecules that are easy to synthesize and exhibit high biological activity against the target protein. Naturally, multi-objective molecule design is much more challenging than the single-objective scenario (Jin et al., 2020).
18
+
19
+ This paper studies the problem of multi-objective molecule design for drug discovery. An ideal solution should be efficient and meet the following criteria. $C I$ : It should satisfy multiple properties with high scores; C2: It should produce novel and diverse molecules; C3: Its generation process does not rely on either expert annotated or wet experimental data collected from a biochemistry lab (since it requires tremendous effort and hard to obtain). Existing molecule generation approaches are mainly designed for the single objective setting, and they could not meet all criteria in the setting of multiple objectives. These methods belong to four categories: a) generating candidates from a learned continuous latent space (Gomez-Bombarelli et al., 2018; Jin et al., 2018), b) through reinforcement ´ learning (You et al., 2018), c) using an encoder-decoder translation approach (Jin et al., 2019), or d) optimizing molecular properties through genetic algorithms (Nigam et al., 2020). Current stateof-the-art multi-objective molecular generation is a rationale-based method (Jin et al., 2020). In this approach, the authors propose to build molecules by composing multiple extracted rationales, and the model can generate compounds that are simultaneously active to multiple biological targets. However, such an approach will result in quite complex molecules when we have many objectives. This is because different objectives correspond to different rationales, and including all these rationales could lead to large molecules, which may be less drug-like and hard to be synthesized practically.
20
+
21
+ In this paper, we propose MArkov moleculaR Sampling (MARS), a simple yet flexible method for drug discovery. The basic idea is to start from a seed molecule and keep generating candidate molecules by modifying fragments of molecular graphs from previous steps. It meets all the criteria C1-3. In MARS, the molecular design is formulated as an iterative editing procedure with its total objective consisting of multiple property scores (C1). MARS employs the annealed Markov chain Monte Carlo sampling method to search for optimal chemical compounds, which allows for the exploration of chemicals with novel and different fragments (C2). The proposal to modify molecular fragments is represented using graph neural networks (GNNs), whose parameters are adaptively learned. We used message passing neural networks (MPNNs) in practice (Gilmer et al., 2017), but other GNNs can fit the framework as well. Furthermore, MARS utilizes the sample paths generated on-the-fly to train the proposal network adaptively. Therefore, it does not rely on external annotated data (C3). With such an adaptive learnable proposal, it keeps improving the generation quality throughout the process.
22
+
23
+ We evaluate MARS and four other baselines, one latest method for each of the four method categories. The benchmark includes a variety of multi-objective generation settings. Experiments show that our proposed MARS achieves state-of-the-art performance on five out of six tasks in terms of a comprehensive evaluation consisting of the success rate, novelty, and diversity of the generated molecules. Notably, in the most challenging setting where four objectives – bio-activities to two different targets, drug-likeness, and synthesizability – are simultaneously considered, our method achieves the state-of-the-art result and outperforms existing methods by $7 7 \%$ in the comprehensive evaluation.
24
+
25
+ Our contributions are as follows:
26
+
27
+ • We present MARS, a generic formulation of molecular design using Markov sampling, which can easily accommodate multiple objectives.
28
+ We develop an adaptive fragment-editing proposal based on GNN that is learnable on the fly with only samples self-generated and efficient in exploring the chemical space.
29
+ • Experiments verifies our proposed MARS framework can find novel and diverse bioactive molecules that are both drug-like and highly synthesizable.
30
+
31
+ # 2 RELATED WORK
32
+
33
+ Recent years have witnessed the success of applying deep generative models and molecular graph representation learning in drug discovery (Schwalbe-Koda & Gomez-Bombarelli, 2020; Guo & ´ Zhao, 2020). Existing approaches for molecular property optimization can be grouped into four categories, including generation with a) Bayesian inference, $^ b$ ) reinforcement learning, $c _ { . }$ ) encoderdecoder translation models, and d) evolutionary and genetic algorithms. The first category is learning continuous latent spaces for molecular sequences or graphs and generating from such spaces using Bayesian optimization (BO) (Gomez-Bombarelli et al., 2018; Jin et al., 2018; Winter et al., 2019). ´ These methods rely heavily on the quality of latent representations, which imposes huge challenges to the encoders when there are multiple properties to consider.
34
+
35
+ Unlike the first class, other work uses reinforcement learning (RL) to optimize desired objectives directly in the explicit chemical space (De Cao & Kipf, 2018; Popova et al., 2018; You et al., 2018;
36
+
37
+ Popova et al., 2019; Shi et al., 2020). However, the models are usually hard to train due to the high variance of RL.
38
+
39
+ The third category directly trains a translation model that maps from an input molecule to a highquality output molecule (Jin et al., 2019; 2020). Although simple, such methods require many high-quality labeled data, making them impractical in scenarios where the data is limited.
40
+
41
+ The last category of methods are evolutionary algorithms (EAs) and genetic algorithms (GAs) to explore large chemical space with certain property (Nicolaou et al., 2012; Devi et al., 2015; Jensen, 2019; Ahn et al., 2020). In Nigam et al. (2020), the authors propose to augment GA by adding an adversarial loss into the fitness evaluation to increase the diversity, and the augmented GA outperforms all other generative models in optimizing logP. Though flexible and straightforward, to make the search process efficient enough, most GA and EA methods require domain experts to design molecular mutation and crossover rules, which could be non-trivial to obtain.
42
+
43
+ Besides single property optimization, there is recent work to address the multi-objective molecule generation problem. For example, Li et al. (2018) proposes to use a conditional generative model to incorporate several objectives flexibly, while Lim et al. (2020) leverages molecular scaffolds to control the properties of generated molecules better. Among them, the current state-of-the-art approach is a rationale-based method proposed by Jin et al. (2020). In this method, the authors propose to build molecules by assembling extracted rationales. Despite its great success in generating compounds simultaneously active to multiple biological targets, the combination of rationales might hinder the synthesizability and drug-likeness of produced molecules, as they tend to be large as the number of objectives grows. In contrast, our MARS framework turns the generation problem into a sampling procedure, which serves as an alternative way compared with deep generative models, and can efficiently discover bio-active molecules that are both drug-like and highly synthesizable.
44
+
45
+ Remotely related is recent work to generate molecules through sampling. Seff et al. (2019) defines a Gibbs sampling procedure, in which the Markov chain alternates between randomly corrupting the molecules and recovering the corrupted ones with a learned reconstruction model. However, this method mainly focuses on generating molecules that follow the observed data distribution and cannot be directly tailored for property optimization. Different from this work, MARS is built upon the general MCMC sampling framework, which allows further enhancement with adaptive proposal learning to edit molecular graphs efficiently. Actually, generating instances from a discrete space with MCMC sampling methods is previously employed in various other applications, e.g., generating natural language sentences under various constraints (Miao et al., 2019; Zhang et al., 2019; Liu et al., 2020; Zhang et al., 2020).
46
+
47
+ # 3 PROPOSED MARS APPROACH
48
+
49
+ In this section, we present the MArkov moleculaR Sampling method (MARS) for multi-objective molecular design. We define a Markov chain over the explicit molecular graph space and design a kernel to navigate high probable candidates with acceptance and rejection.
50
+
51
+ # 3.1 SAMPLING FROM THE MOLECULAR SPACE
52
+
53
+ Our proposed MARS framework aims at sampling molecules with desired properties from the chemical space. Specifically, given $K$ properties of interest, the desired molecular distribution can be formulated as a combination of all objectives:
54
+
55
+ $$
56
+ \pi ( x ) = \underbrace { s _ { 1 } ( x ) \circ s _ { 2 } ( x ) \circ s _ { 3 } ( x ) \circ \dotsb \circ s _ { K } ( x ) } _ { \mathrm { d e s i r e d p r o p e r t i e s } }
57
+ $$
58
+
59
+ where $x$ is a molecule in the molecular space $\mathcal { X }$ . $\pi ( x )$ is an unnormalized distribution over molecules integrating the desired properties. $s _ { k } ( x )$ is a scoring function for the $k$ -th property and the “◦” operator stands for a combination of scores (e.g., summation or multiplication). In practical drug discovery, these terms could be related to the biological activity, drug-likeness, and synthesizability of molecules (Nicolaou et al., 2012). This framework allows flexible configuration according to various concrete applications. However, as the number of objectives grows, the joint distribution $\pi ( x )$ will become more complex and intractable, making the sampling non-trivial.
60
+
61
+ In MARS, we propose to sample molecules from the desired distribution Eq. 1 using Markov chain Monte Carlo (MCMC) methods (Andrieu et al., 2003). Given a desired molecular distribution $\pi ( x )$ as the unnormalized target distribution, we define a Markov chain on the explicit chemical space $\mathcal { X }$ (i.e., each state of the Markov chain is a particular molecule) and introduce a proposal distribution $q ( x ^ { \prime } \mid x )$ to perform state transitions.
62
+
63
+ ![](images/c2ea58ad35cf4f220edb7e5b270574085a2edc3f8ad9160cf5909b708564cd7d.jpg)
64
+ Figure 1: The framework of MARS. During the sampling process: (a) starting from an arbitrary initial molecule $x ^ { ( 0 ) }$ in the molecular space $\mathcal { X }$ , (b) sampling a candidate molecule $x ^ { \prime } \in \mathcal { X }$ from the proposal distribution q(x0 | x(t−1)) at each step, and $\mathrm { ( c / d ) }$ the candidate $x ^ { \prime }$ is either accepted or rejected according to the acceptance rate $\mathcal { A } ( x ^ { ( t - 1 ) } , x ^ { \prime } ) \in [ 0 , 1 ]$ . By repeating this process, we can generate a sequence of molecules $\{ x ^ { ( t ) } \} _ { t = 0 } ^ { \infty }$ .
65
+
66
+ Specifically, as shown in Figure 1, the sampling procedure of MARS starts from an initial molecule $x ^ { ( 0 ) } \in \mathcal { X }$ . At each time step $t$ , a molecule candidate $x ^ { \prime } \in \mathcal { X }$ will be sampled from the proposal distribution $q ( x ^ { \prime } \mid x ^ { ( t - 1 ) } )$ , where $x ^ { ( t - 1 ) }$ denotes the molecule at time step $t - 1$ . Then the proposed candidate $x ^ { \prime }$ could be either accepted $x ^ { ( t ) } = x ^ { \prime }$ or rejected $x ^ { ( t ) } = x ^ { ( t - 1 ) }$ according to the acceptance rate $\mathcal { A } ( x ^ { ( t - 1 ) } , x ^ { \prime } ) \in [ 0 , 1 ]$ controlled by the target distribution $\pi ( x )$ . By repeating this process, a sequence of molecules $\{ x ^ { ( t ) } \} _ { t = 0 } ^ { \infty }$ can be generated. Such sequence of molecules will converge to the target distribution $\pi ( x )$ if the proposal distribution and the acceptance mechanism are configured properly.
67
+
68
+ The acceptance rate is calculated as follow:
69
+
70
+ $$
71
+ \mathcal { A } ( x , x ^ { \prime } ) = \operatorname* { m i n } \left\{ 1 , \frac { \pi ^ { \alpha } ( x ^ { \prime } ) q ( x | x ^ { \prime } ) } { \pi ^ { \alpha } ( x ) q ( x ^ { \prime } | x ) } \right\}
72
+ $$
73
+
74
+ where $\alpha$ is a coefficient that varies in different instantiations of MCMC algorithms. Here to find molecules that globally maximize the target distribution, we employ an annealing scheme (Laarhoven $\&$ Aarts, 1987) where $\alpha ~ = ~ 1 \bar { / } T$ and $T$ is a temperature controlled by a cooling schedule. In addition to this, other instantiations such as Metropolis-Hastings (MH) algorithm (Metropolis et al., 1953) where $\alpha = 1$ are also feasible under our general framework.
75
+
76
+ As for the proposal distribution $q ( x ^ { \prime } \mid x )$ , it largely affects the sampling performance and should be designed elaborately. In general, it is crucial that the proposal distribution $q ( x ^ { \prime } \mid x )$ and the target distribution $\pi ( x ^ { \prime } )$ are as close as possible to ensure high sampling efficiency. So we propose using a proposal distribution $q _ { \theta } ( x ^ { \prime } \mid x )$ with learnable parameters to capture the desired molecular properties and develop a strategy to train the proposal throughout the sampling process adaptively. The details will be described in the next section.
77
+
78
+ # 3.2 ADAPTIVE MOLECULAR GRAPH EDITING PROPOSAL
79
+
80
+ In this section we will examine in detail our proposed adaptive proposal distribution $q _ { \theta } ( x ^ { \prime } \mid x )$ . A molecule is represented as a graph whose nodes are heavy atoms and edges are chemical bonds. The proposal distribution is defined over molecular graph editing actions. We use the message passing neural network (MPNN) to represent the proposal. Alternative parameterization schemes such as other graph neural networks are also possible. To sample molecules with desired properties effectively and efficiently, we also design a self-training strategy to learn the proposal MPNN during sampling in an adaptive manner.
81
+
82
+ Molecular graph editing actions. To transform a molecule $x$ into another molecule $x ^ { \prime }$ , we consider two sets of graph editing actions, i.e., fragment adding and deleting. These actions are inspired by fragment-based drug design (FBDD) methodology, whose success in drug discovery has been proved in past decades (Kumar et al., 2012). In MARS, we define fragments as connected components in molecules separated by single bonds. To reduce the complexity of editing actions, we only consider fragments with a single attachment position. Moreover, we also define a fragment vocabulary that contains finitely many fragments, and only fragments in the vocabulary are allowed to be added onto a molecule. Examples for fragment adding and deleting actions are shown in Figure 2.
83
+
84
+ ![](images/e31475af681528898823031aaf3d98c029f3d27fcff92e7e5d1d40288d1451ce.jpg)
85
+ Figure 2: Left: Examples of molecular fragments and a fragment vocabulary. Red dashed lines represents cuttable bonds to extract fragments. Right: Examples of molecular graph editing actions.
86
+
87
+ Specifically, given a molecule $x$ with $n$ atoms and $m$ bonds, we choose to add or delete a fragment onto or from this molecule randomly with probability $\begin{array} { l } { { \frac { 1 } { 2 } } } \end{array}$ for each set of actions. For the adding action, suppose we have a probability distribution over atoms $p _ { \mathrm { a d d } } ( x , u )$ and a probability distribution over fragments in the vocabulary $p _ { \mathrm { f r a g } } ( x , u , k )$ . Here $u \in [ n ]$ is an indicator of the atom in $x$ to which the fragment is adding to and $k \in [ V ]$ is an indicator of fragments in the vocabulary of size $V$ . We can compute the proposal distribution as follows:
88
+
89
+ $$
90
+ q ( x ^ { \prime } | x ) = { \frac { 1 } { 2 } } \cdot p _ { \mathrm { a d d } } ( x , u ) \cdot p _ { \mathrm { f r a g } } ( x , u , k )
91
+ $$
92
+
93
+ where $x ^ { \prime }$ is the molecule obtained by adding the $k$ -th fragment onto the atom $u$ in molecule $x$ .
94
+
95
+ As for the deleting action, suppose we have a probability distribution over bonds1 $p _ { \mathrm { d e l } } ( x , b )$ where $b \in [ 2 m ]$ is an indicator of bonds in $x$ . We can compute the proposal distribution as follow:
96
+
97
+ $$
98
+ q ( x ^ { \prime } | x ) = \frac { 1 } { 2 } \cdot p _ { \mathrm { d e l } } ( x , b )
99
+ $$
100
+
101
+ where $x ^ { \prime }$ is the molecule obtained by removing bond $b$ and the attached fragment from molecule $x$
102
+
103
+ Parameterizing with MPNNs. To better model the molecular graph editing actions, we propose to use MPNNs to suggest the probability distributions $( p _ { \mathrm { a d d } } , \bar { p _ { \mathrm { f r a g } } } , \bar { p _ { \mathrm { d e l } } } ) = \bar { \mathcal { M } } _ { \theta } ( x )$ where $\mathcal { M } _ { \theta }$ is a MPNN model specified by parameters $\theta$ , which has been proven powerful to predict chemical properties with molecular graphs (Gilmer et al., 2017). Given a molecule $x$ , we compute the probability distributions as follow:
104
+
105
+ $$
106
+ \begin{array} { r l } & { { \cal h } _ { u } ^ { \mathrm { n o d e } } = \mathrm { M P N N } ( x ) _ { u } \in \mathbb { R } ^ { d } } \\ & { \quad \quad \quad \quad \displaystyle { \boldsymbol h } _ { b } ^ { \mathrm { e q e } } = { \mathrm { C o n c a t } } ( { \boldsymbol h } _ { v } ^ { \mathrm { n o d e } } , { \boldsymbol h } _ { w } ^ { \mathrm { n o d e } } ) \in \mathbb { R } ^ { 2 d } } \\ & { \quad \quad \quad \quad p _ { \mathrm { a d d } } ( x ) = \mathrm { S o f t m a x } ( \{ \mathrm { M L P } _ { \mathrm { n o d e } } ( { \boldsymbol h } _ { u } ^ { \mathrm { n o d e } } ) ) \} _ { u = 1 } ^ { n } ) \in [ 0 , 1 ] ^ { n } } \\ & { \quad \quad \quad p _ { \mathrm { f r a g } } ( x , u ) = \mathrm { S o f t m a x } ( \mathrm { M L P } _ { \mathrm { n o d e } } ^ { \prime } ( { \boldsymbol h } _ { u } ^ { \mathrm { n o d e } } ) ) \in [ 0 , 1 ] ^ { | { \cal V } | } } \\ & { \quad \quad \quad p _ { \mathrm { d e l } } ( x ) = \mathrm { S o f t m a x } ( \{ \mathrm { M L P } _ { \mathrm { e d e } } ( { \boldsymbol h } _ { b } ^ { \mathrm { e q e } } ) ) \} _ { b = 1 } ^ { 2 m } ) \in [ 0 , 1 ] ^ { 2 m } } \end{array}
107
+ $$
108
+
109
+ where $u$ is an atom indicators, $\{ h _ { u } ^ { \mathrm { n o d e } } \} _ { u = 1 } ^ { n }$ e}nu=1 are node hidden representations, v, w are atoms connected with bond $b$ , $\{ h _ { b } ^ { \mathrm { e d g e } } \} _ { b = 1 } ^ { 2 m }$ u are edge hidden representations, and ${ \bf M L P _ { n o d e } }$ , $\mathbf { M L P _ { n o d e } ^ { \prime } }$ , ${ \mathrm { \mathbf { M L P _ { e d g e } } } }$ are multilayer peceptrons (MLPs), similar to $\mathrm { H u }$ et al. (2020).
110
+
111
+ Adaptive self-training. To capture the desired properties and improve the sampling effectiveness, we can train the editing model to increase the probability of suggesting high-quality candidate
112
+
113
+ # Algorithm 1: MARS
114
+
115
+ 1 Set $N$ initial molecules $\{ x _ { i } ^ { ( 0 ) } \} _ { i = 1 } ^ { N }$ and initialize the molecular graph editing model $\mathcal { M } _ { \theta }$
116
+ 2 Create an empty editing model training dataset $\mathcal { D } = \{ \}$
117
+ 3 for $t = 1 , 2 , \ldots$ do
118
+ 4 for $i = 1 , 2 , \dots , N$ do
119
+ 5 Compute probability distributions $( p _ { \mathrm { a d d } } , p _ { \mathrm { f r a g } } , p _ { \mathrm { d e l } } ) = \mathcal { M } _ { \theta } ( x _ { i } ^ { ( t - 1 ) } )$ as Equations 7-9
120
+ 6 Sample a candidate molecule $x ^ { \prime }$ from the proposal distribution $q ( x ^ { \prime } \mid x _ { i } ^ { ( t - 1 ) } )$ defined with
121
+ probability distributions $p _ { \mathrm { a d d } } , p _ { \mathrm { f r a g } } , p _ { \mathrm { d e l } }$ as Equations 3-4
122
+ 7 if $u < \mathcal { A } ( x _ { i } ^ { ( t - 1 ) } , x ^ { \prime } )$ where $u \sim \mathcal { U } _ { [ 0 , 1 ] }$ then
123
+ 8 Accept the candidate molecule $\boldsymbol { x } _ { i } ^ { ( \dot { t } ) } = \boldsymbol { x } ^ { \prime }$
124
+ 9 else
125
+ 10 Refuse the candidate molecule $x _ { i } ^ { ( t ) } = x _ { i } ^ { ( t - 1 ) }$
126
+ 11 if The candidate improves the objectives, i.e. $\pi ( x ^ { \prime } ) > \pi ( x _ { i } ^ { ( t - 1 ) } )$ then
127
+ 12 Adding the editing record $( x _ { i } ^ { ( t - 1 ) } , x ^ { \prime } )$ into the dataset $\mathcal { D }$
128
+ 13 $\theta ^ { n e w } \longleftarrow \arg \operatorname* { m a x } \log M _ { \theta } ( \mathcal { D } )$
129
+
130
+ molecules. Here we propose to train the model on-the-fly during the sampling process in an adaptive manner where the training data is collected from the sampling paths. By doing so, we can bypass the difficulty of lacking training instances that satisfy all property constraints. Mainly, we collect molecule candidates that improve our desired objectives and train the model $\mathcal { M } _ { \theta }$ in a maximum likelihood estimation (MLE) manner (i.e., to maximize the probability of producing the collected candidates). The overall MARS is described in Algorithm 1.
131
+
132
+ Discussion on convergence. Compared with standard MCMC algorithms, MARS still falls in the Metropolis-Hastings algorithm but with an annealing scheme and an adaptive proposal, which results in inhomogeneous transition kernels. The convergence of adaptive MCMC is discussed in Rosenthal (2011). According to the diminishing adaptation condition, we can ensure convergence by making the difference of proposals in consecutive iterations diminish to zero. MARS can satisfy this condition by using an optimizer whose learning rate will shrink to zero eventually (e.g., Adam). Annealed MCMC is to find samples maximizing the target probability. The convergence of annealed MCMC is discussed in Andrieu et al. (2003).
133
+
134
+ # 4 EXPERIMENTS
135
+
136
+ # 4.1 EXPERIMENT SETUP
137
+
138
+ Biological objectives. Following Jin et al. (2020), we consider the following inhibition scores against two Alzheimer-related target proteins as the biological activity objectives. The score is given by a random forest model 2 that predicts based on Morgan fingerprint features of a molecule (Rogers & Hahn, 2010).
139
+
140
+ • $\mathrm { G S K } 3 \beta$ : Inhibition against glycogen synthase kinase- $3 \beta$ .
141
+ • JNK3: Inhibition against c-Jun N-terminal kinase-3.
142
+
143
+ Non-biological objectives. Following Jin et al. (2020), we adopt QED (Bickerton et al., 2012) and synthetic accessibility (SA) (Ertl & Schuffenhauer, 2009) to quantify the drug-likeness and synthesizability. We rescale the SA score (initially between 10 and 1) into [0, 1] such that molecules with higher scores are more synthesizable.
144
+
145
+ Multi-objective generation setting. To evaluate the effectiveness of the proposed method for multiobjective drug design, we also consider the following more challenging objective combinations:
146
+
147
+ • $\mathrm { G S K } 3 \beta { + } \mathrm { J N K } 3$ : Jointly inhibiting $\mathrm { G S K } 3 \beta$ and JNK3. The combination may provide potential benefits for the treatment of Alzheimer’s disease reported by Hu et al. (2009); Martin et al. (2013). $\mathrm { G S K } 3 \beta / \mathrm { J N K } 3 + \mathrm { Q E D } + \mathrm { S A } ;$ : Inhibiting $\mathrm { G S K } 3 \beta$ or JNK3 while being drug-like and synthetically accessible, which are quantified by QED and SA, respectively. $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \mathrm { + } \mathrm { Q E D } \mathrm { + } \mathrm { S A }$ : Jointly inhibiting $\mathrm { G S K } 3 \beta$ and JNK3 while being drug-like and synthetically accessible, which are quantified by QED and SA, respectively.
148
+
149
+ Baselines. We compare MARS with the following methods – the latest ones from four categories mentioned in the related work (Sec. 2). GCPN (You et al., 2018) leverages RL to generate molecules atom by atom, and the adversarial loss is incorporated in the objective to generate more realistic molecules. JT-VAE (Jin et al., 2018) is a VAE-based approach that firstly generates junction trees and then assembles them into molecules. It performs Bayesian optimization (BO) to guide molecules towards desired properties. RationaleRL (Jin et al., 2020) is a state-of-the-art approach for multiproperty optimization, which generates molecules from combined rationales. $\mathbf { G A + D }$ (Nigam et al., 2020) is a heuristic search method that applies the genetic algorithm (GA) to find molecules with high property scores. An adversarial loss is incorporated in the fitness evaluation to increase the diversity of generated molecules.
150
+
151
+ Evaluation metrics. Following Jin et al. (2020), we generate $N \ = \ 5 0 0 0$ molecules for each approach and compare the proposed method with the baselines on the following evaluation metrics: Success rate (SR) is the percentage of generated molecules that are evaluated as positive on all given objectives $\mathrm { ( Q E D \ge 0 . 6 }$ , $\mathbf { S A } \geq \ 0 . 6 7$ , the inhibition scores of $\mathrm { G S K } 3 \beta$ and JNK3 $\ge ~ 0 . 5 )$ ; Novelty $\mathbf { \Pi } ( \mathbf { N o v } )$ is the percentage of generated molecules with similarity less than 0.4 compared to the nearest neighbor $x _ { S \mathsf { N N } }$ in the training set (Olivecrona et al., 2017): $\begin{array} { r l } { \mathbf { N o v } } & { { } = } \end{array}$ $\textstyle { \frac { 1 } { n } } \sum _ { x \in { \mathcal { G } } } \mathbf { 1 } [ \sin ( x , x _ { \mathrm { S N N } } ) < { \bar { 0 . 4 } } ]$ ; Diversity (Div) measures the diversity of generated molecules, which can be calculated based on pairwise Tanimoto similarity over Morgan fingerprints $\sin ( x , x ^ { \prime } )$ as $\begin{array} { r } { \mathrm { D i v } = \frac { 2 } { n ( n - 1 ) } \sum _ { x \ne x ^ { \prime } \in \mathcal { G } } 1 - \dot { \sin ( x , x ^ { \prime } ) } } \end{array}$ ; PM is the product of the above three metrics, which is a more comprehensive evaluation of the proposed method. Intuitively, PM presents the percentage of generated molecules that are simultaneously bio-active, novel and diverse, which are essential criteria for molecules to be considered in building a suitable drug candidate library in early-stage drug discovery (Huggins et al., 2011).
152
+
153
+ Implementation details. For the fragment vocabulary, we extract the top 1000 frequently appearing fragments that contain no more than 10 heavy atoms from the ChEMBL database (Gaulton et al., 2017) by enumerating single bonds to break. As for the sampling process, the unnormalized target distribution is set as $\begin{array} { r } { \bar { \pi } ( x ) = \sum _ { k } s _ { k } ( x ) } \end{array}$ where $s _ { k } ( x )$ is a scoring function for the above-mentioned properties of interests, the temperature is set as $T = 0 . 9 5 ^ { \lfloor t / 5 \rfloor }$ and we sample $N = 5 0 0 0$ molecules at one time. During sampling, the computation of $q ( x \mid x ^ { \prime } )$ is ignored and we approximate $\boldsymbol { \mathcal { A } } ( \boldsymbol { x } , \boldsymbol { x } ^ { \prime } )$ with $\mathrm { m i n } \{ 1 , \pi ^ { \alpha } ( x ^ { \bar { \prime } } ) / \pi ^ { \alpha } \bar { \alpha ( } x ) \bar { \} }$ to increase the computation efficiency. This is acceptable because in practice $q ( x \mid x ^ { \prime } )$ and $q ( x ^ { \prime } \mid x )$ is of order $O ( 1 )$ and $\boldsymbol { \mathcal { A } } ( \boldsymbol { x } , \boldsymbol { x } ^ { \prime } )$ will be gradually bounded by $\pi ^ { \alpha } \bar { ( } x ^ { \prime } ) / \pi ^ { \alpha } \bar { ( } x )$ as the temperature $T$ decrease to zero. The sampling paths are all starting with an identical molecule $\mathrm { ^ { 6 6 } C T ^ { - C } } ^ { \mathrm { 9 } }$ , which is also adopted by previous graph generation methods for organic molecules (You et al., 2018). The MPNN model has six layers, and the node embedding size is $d = 6 4$ . Moreover, for the model training, we use an Adam optimizer (Kingma & Ba, 2015) to update the model parameters with an initial learning rate set as $3 \times 1 0 ^ { - 4 }$ , the maximum dataset size is limited as $| \mathcal { D } | \overset { - } { \leq } 7 5 , 0 0 0$ , and at each step, we update the model for no more than 25 times.
154
+
155
+ # 4.2 MAIN RESULTS AND ANALYSIS
156
+
157
+ We perform ten independent runs for MARS. The quantitative results are summarized in Table 1 and Table 2. From these tables, we observe that MARS outperforms all the baselines on five out of six tasks in terms of PM. Furthermore, on the most challenging multi-objective optimization task, i.e., $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } \substack { + } \mathrm { S A }$ , it significantly surpasses the best baseline with a $7 7 \%$ improvement for the product of metrics PM. Additional results are shown in Appendix A.
158
+
159
+ In comparing all these methods, the $\mathrm { G A + D }$ baseline is most similar to our MARS in terms of the high novelty and PM score, as both methods focus on molecular space exploration. However, the diversity score of $\mathrm { G A + D }$ drops a lot when optimizing multiple properties simultaneously, as GAs are likely to get trapped in regions of local optima (Paszkowicz, 2009). RationaleRL is a very strong baseline that performs better than MARS in the $\mathrm { G S K } 3 \beta { + } \mathrm { J N K } 3$ setting. Nevertheless, when taking the drug-likeness and synthetic accessibility into consideration, their performance falls short of ours and fails to generate novel molecules. The performance of GCPN and JT-VAE remains relatively low in most settings, as they are not tailored for multi-objective property optimization.
160
+
161
+ Table 1: Comparison of different methods on molecular generation with only bio-activity objectives. Results of $\mathrm { G A + D }$ are obtained by running its open-source code. Results of other baselines are taken from Jin et al. (2020). For MARS, we report the mean and standard deviation of 10 independent experiments.
162
+
163
+ <table><tr><td rowspan="2">Method</td><td colspan="4">GSK3β</td><td colspan="4">JNK3</td><td colspan="4">GSK3β+JNK3</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>GCPN</td><td>42.4%</td><td>11.6%</td><td>0.904</td><td>0.04</td><td>32.3%</td><td>4.4%</td><td>0.884</td><td>0.01</td><td>3.5%</td><td>8.0%</td><td>0.874</td><td>0.00</td></tr><tr><td>JT-VAE</td><td>32.2%</td><td>11.8%</td><td>0.901</td><td>0.03</td><td>23.5%</td><td>2.9%</td><td>0.882</td><td>0.01</td><td>3.3%</td><td>7.9%</td><td>0.883</td><td>0.00</td></tr><tr><td>RationaleRL</td><td>100.0%</td><td>53.4%</td><td>0.888</td><td>0.47</td><td>100.0%</td><td>46.2%</td><td>0.862</td><td>0.40</td><td>100.0%</td><td>97.3%</td><td>0.824</td><td>0.80</td></tr><tr><td>GA+D</td><td>84.6%</td><td>100.0%</td><td>0.714</td><td>0.60</td><td>52.8%</td><td>98.3%</td><td>0.726</td><td>0.38</td><td>84.7%</td><td>100.0%</td><td>0.424</td><td>0.36</td></tr><tr><td>MARS</td><td>100.0%</td><td>84.0%</td><td>0.718</td><td>0.60 ± 0.04</td><td>98.8%</td><td>88.9%</td><td>0.748</td><td>0.66 ±0.04</td><td>99.5%</td><td>75.3%</td><td>0.691</td><td>0.52 ±0.08</td></tr></table>
164
+
165
+ Table 2: Comparison of different methods on molecular generation with bio-activity, QED, and SA objectives. Results of all baselines are obtained by running their open-source codes. For the results of MARS, we report the mean and standard deviation of 10 independent experiments.
166
+
167
+ <table><tr><td rowspan="2">Method</td><td colspan="4">GSK3β+QED+SA</td><td colspan="4">JNK3+QED+SA</td><td colspan="4">GSK3β +JNK3+ QED +SA</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>GCPN</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td></tr><tr><td>JT-VAE</td><td>9.6%</td><td>95.8%</td><td>0.680</td><td>0.06</td><td>21.8%</td><td>100.0%</td><td>0.600</td><td>0.13</td><td>5.4%</td><td>100.0%</td><td>0.277</td><td>0.02</td></tr><tr><td>RationaleRL</td><td>69.9%</td><td>40.2%</td><td>0.893</td><td>0.25</td><td>62.3%</td><td>37.6%</td><td>0.865</td><td>0.20</td><td>75.0%</td><td>55.5%</td><td>0.706</td><td>0.29</td></tr><tr><td>GA+D</td><td>89.1%</td><td>100.0%</td><td>0.682</td><td>0.61</td><td>85.7%</td><td>99.8%</td><td>0.504</td><td>0.43</td><td>85.7%</td><td>100.0%</td><td>0.363</td><td>0.31</td></tr><tr><td>MARS</td><td>99.5%</td><td>95.0%</td><td>0.719</td><td>0.68 ±0.03</td><td>91.3%</td><td>94.8%</td><td>0.779</td><td>0.67 ± 0.02</td><td>92.3%</td><td>82.4%</td><td>0.719</td><td>0.55 ± 0.05</td></tr></table>
168
+
169
+ Visualization. We use t-SNE (van der Maaten & Hinton, 2008) to visualize the distribution of generated positive molecules with the positive ones in the training set under the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } \substack { + } \mathrm { S A }$ setting. In the visualization, we use the ECFP6 fingerprints as suggested in Li et al. (2018). As shown by Figure 3, most molecules generated by $\mathrm { G A + D }$ fall into two massive clusters, which aligns their low diversity. Molecules generated by RationaleRL also tend to be clustered, with each cluster standing for a specific combination of rationales. By contrast, the molecules generated by MARS are evenly distributed in the space with a range of novel regions covered, which justifies our high novelty and diversity scores. We further visualize some molecules generated by MARS with high property scores in Figure 4, indicating its ability to generate highly synthesizable drug-like molecules that jointly inhibit $\mathrm { G S K } 3 \beta$ and JNK3. Additional examples of sampled molecules are shown in Appendix C.
170
+
171
+ ![](images/354e560c651a8808c3b974a4b0c14d32ebb2bdc639cd4e93f783461d0a67c543.jpg)
172
+ Figure 3: t-SNE visualization of generated molecules (gray) and positive molecules in the training set (blue).
173
+
174
+ Running time. The computing server has two CPUs with 64 virtual cores $( 2 . 1 0 \mathrm { G H z } )$ , 231G memory (about 50G used), and one Tesla V100 GPU with 32G memory. In the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } + \mathrm { S A }$ setting, MARS takes roughly $T = 5 5 0$ sampling steps and 12 hours in total to converge (including the time used in proposing and evaluating molecules as well as MPNN model training). For other baselines, RationaleRL takes 5.7 hours to fine-tune the model, and $\mathrm { G A + D }$ takes 278 steps and $2 . 2 \mathrm { h }$ to achieve its best performance. Compared to the conventional drug discovery process, which usually takes months to years, the time we spent on molecular generation models is almost ignorable.
175
+
176
+ ![](images/5bcb89e0fc85613bdac8e49645a597468b528c3b82d188ba4ede2803bc68053d.jpg)
177
+ Figure 4: Sample molecules generated by MARS in the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 + \mathrm { Q E D } + \mathrm { S A }$ setting. The numbers in brackets are $\mathrm { G S K } 3 \beta$ , JNK3, QED, and SA scores of each molecule respectively.
178
+
179
+ # 4.3 EFFECTS OF PROPOSAL AND ACCEPTANCE STRATEGY
180
+
181
+ To justify the contributions of the designed proposal and acceptance strategy, we compare them with some naive ones and summarize the results of different combinations in Table 3. For acceptance strategies, Annealed stands for annealed MCMC where the acceptance rate is computed as Equation 2 given $\alpha = 1 / T$ , AlwaysAC stands for always accepting the candidate, i.e., $\bar { \mathcal { A } } ( \boldsymbol { x } , \boldsymbol { x } ^ { \prime } ) \equiv 1$ , and HillClimb stands for accepting the candidate only when the overall score is improved, i.e., ${ \mathcal A } ( x , x ^ { \prime } ) = \mathrm { s i g n } [ s ( x ^ { \prime } ) > s ( x ) ]$ . For proposal strategies, Random stands for random proposal where we randomly select atoms, bonds, and fragments to edit, and Adaptive stands for the adaptive fragment-based graph editing model trained during the sampling process as described in Section 3.2.
182
+
183
+ Table 3: Results of different acceptance strategies and proposal strategies for molecular sampling.
184
+
185
+ <table><tr><td rowspan="2">AC Strategy</td><td rowspan="2">Proposal</td><td colspan="4">GSK3β + JNK3</td><td colspan="4">GSK3β + JNK3 + QED + SA</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>Annealed</td><td>Random</td><td>40.9%</td><td>94.9%</td><td>0.828</td><td>0.32</td><td>25.5%</td><td>80.4%</td><td>0.793</td><td>0.16</td></tr><tr><td>AlwaysAC</td><td>Adaptive</td><td>49.1%</td><td>88.4%</td><td>0.742</td><td>0.32</td><td>10.1%</td><td>94.6%</td><td>0.716</td><td>0.07</td></tr><tr><td>HillClimb</td><td>Adaptive</td><td>53.7%</td><td>96.1%</td><td>0.814</td><td>0.42</td><td>51.4%</td><td>86.6%</td><td>0.777</td><td>0.35</td></tr><tr><td>Annealed</td><td>Adaptive</td><td>99.5%</td><td>75.2%</td><td>0.688</td><td>0.52</td><td>92.3%</td><td>82.4%</td><td>0.719</td><td>0.55</td></tr></table>
186
+
187
+ The results in Table 3 indicate that proposals will influence the performance of MARS dramatically (the first and the last row), especially when the number of objectives increases. The proposed adaptive proposal outperforms the random proposal and converges $4 . 6 \mathrm { x }$ faster in practice. By comparing the last three rows, we find the Annealed strategy outperforms the other two strategies by a large margin on both settings, as samples from such strategy are more likely to jump out of local optimums. Another interesting observation is that even with the naive AlwaysAC or heuristic HillClimb strategy, the MARS achieves comparable or even better performance than $\mathrm { G A + D }$ and RationaleRL in some settings, e.g., HillClimb on $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } \substack { + } \mathrm { S A }$ optimization, which again proves the effectiveness of the proposed proposal.
188
+
189
+ # 5 CONCLUSION AND FUTURE WORK
190
+
191
+ This paper proposes a simple yet flexible MArkov moleculaR Sampling framework (MARS) for multi-objective drug discovery. MARS includes a trainable proposal to modify chemical graph fragments, which is parameterized by an MPNN. Our experiments verify that MARS outperforms prior approaches on five out of six molecule generation tasks, and it is capable of finding novel and diverse bioactive molecules that are both drug-like and highly synthesizable. Future work can include further study of parameterization and training strategy of the molecular-editing proposal.
192
+
193
+ # 6 ACKNOWLEDGEMENT
194
+
195
+ We would like to thank Meihua Dang for refactoring much of the MARS code. Meihua also performed multiple experiments, which generates the results for the tables. We also thank Jiangjie Chen, Yuxuan Song, Jingjing Xu, Weiying Ma, Hang Li, and anonymous reviewers for their constructive comments and suggestions.
196
+
197
+ # REFERENCES
198
+
199
+ Sungsoo Ahn, Junsu Kim, Hankook Lee, and Jinwoo Shin. Guiding deep molecular optimization with genetic exploration. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems, 2020.
200
+
201
+ Christophe Andrieu, Nando De Freitas, Arnaud Doucet, and Michael I. Jordan. An introduction to mcmc for machine learning. Machine Learning, 50(1):5–43, 2003.
202
+
203
+ G. Richard Bickerton, Gaia V. Paolini, Jer´ emy Besnard, Sorel Muresan, and Andrew L. Hopkins. ´ Quantifying the chemical beauty of drugs. Nature Chemistry, 4(2):90–98, 2012.
204
+
205
+ Nicola De Cao and Thomas Kipf. MolGAN: An implicit generative model for small molecular graphs. ICML 2018 workshop on Theoretical Foundations and Applications of Deep Generative Models, 2018.
206
+
207
+ R. Vasundhara Devi, S. Siva Sathya, and Mohane Selvaraj Coumar. Evolutionary algorithms for de novo drug design - a survey. Applied Soft Computing, 27:543–552, 2015.
208
+
209
+ Peter Ertl and Ansgar Schuffenhauer. Estimation of synthetic accessibility score of drug-like molecules based on molecular complexity and fragment contributions. Journal of Cheminformatics, 1(1):8–8, 2009.
210
+
211
+ Anna Gaulton, Anne Hersey, Michał Nowotka, A. Patr´ıcia Bento, Jon Chambers, David Mendez, Prudence Mutowo, Francis Atkinson, Louisa J. Bellis, Elena Cibrian-Uhalte, Mark Davies, ´ Nathan Dedman, Anneli Karlsson, Mar´ıa Paula Magarinos, John P. Overington, George Pa- ˜ padatos, Ines Smit, and Andrew R. Leach. The chembl database in 2017. Nucleic Acids Research, 45, 2017.
212
+
213
+ Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning, 2017.
214
+
215
+ Xiaojie Guo and Liang Zhao. A systematic survey on deep generative models for graph generation. arXiv: Learning, 2020.
216
+
217
+ Rafael Gomez-Bombarelli, Jennifer Nansean Wei, David Duvenaud, Jos ´ e Miguel Hern ´ andez- ´ Lobato, Benjam´ın Sanchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D. ´ Hirzel, Ryan Prescott Adams, and Alan Aspuru-Guzik. Automatic chemical design using a datadriven continuous representation of molecules. ACS central science, 4(2):268–276, 2018.
218
+
219
+ Shuxin Hu, Aynun N. Begum, Mychica R. Jones, Mike S. Oh, Walter K. Beech, Beverly Hudspeth Beech, Fusheng Yang, Pingping Chen, Oliver J. Ubeda, Peter C. Kim, Peter Davies, Qiulan Ma, Greg M. Cole, and Sally A. Frautschy. Gsk3 inhibitors show benefits in an alzheimer’s disease (ad) model of neurodegeneration but adverse effects in control animals. Neurobiology of Disease, 33(2):193–206, 2009.
220
+
221
+ Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay S. Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. In Proceedings of the 8th International Conference on Learning Representations, 2020.
222
+
223
+ David John Huggins, Ashok Ramakrishnan Venkitaraman, and David Robert Spring. Rational methods for the selection of diverse screening compounds. ACS Chemical Biology, 6(3):208–217, 2011.
224
+
225
+ Jan H. Jensen. A graph-based genetic algorithm and generative model/monte carlo tree search for the exploration of chemical space. Chemical Science, 10(12):3567–3572, 2019.
226
+
227
+ Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Junction tree variational autoencoder for molecular graph generation. In Proceedings of the 35th International Conference on Machine Learning, 2018.
228
+
229
+ Wengong Jin, Kevin Yang, Regina Barzilay, and Tommi S. Jaakkola. Learning multimodal graph-tograph translation for molecule optimization. In Proceedings of the 7th International Conference on Learning Representations, 2019.
230
+
231
+ Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Composing molecules with multiple property constraints. In Proceedings of the 37th International Conference on Machine Learning, 2020.
232
+
233
+ Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Hierarchical generation of molecular graphs using structural motifs. In Proceedings of the 37th International Conference on Machine Learning, 2020.
234
+
235
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations, 2015.
236
+
237
+ Ashutosh Kumar, A Voet, and K. Y. J Zhang. Fragment based drug design: from experimental to computational approaches. Current Medicinal Chemistry, 19(30):5128–5147, 2012.
238
+
239
+ P. J. M. Laarhoven and E. H. L. Aarts. Simulated Annealing: Theory and Applications. 1987.
240
+
241
+ Yibo Li, Liang Ren Zhang, and Zhenming Liu. Multi-objective de novo drug design with conditional graph generative model. Journal of Cheminformatics, 10(1):33, 2018.
242
+
243
+ Jaechang Lim, Sang-Yeon Hwang, Seungsu Kim, Seokhyun Moon, and Woo Youn Kim. Scaffoldbased molecular design using graph generative model. Chemical Science, 11(4):1153–1164, 2020.
244
+
245
+ Xianggen Liu, Lili Mou, Fandong Meng, Hao Zhou, Jie Zhou, and Sen Song. Unsupervised paraphrasing by simulated annealing. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 2020.
246
+
247
+ Ludovic Martin, Xenia Latypova, Cornelia M. Wilson, Amandine Magnaudeix, Marie-Laure Perrin, Catherine Yardin, and Faraj Terro. Tau protein kinases: Involvement in alzheimer’s disease. Ageing Research Reviews, 12(1):289–309, 2013.
248
+
249
+ Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and Edward Teller. Equation of state calculations by fast computing machines. Journal of Chemical Physics, 21(6):1087–1092, 1953.
250
+
251
+ Ning Miao, Hao Zhou, Lili Mou, Rui Yan, and Lei Li. CGMH: constrained sentence generation by metropolis-hastings sampling. In Proceedings of the 33rd Conference on Artificial Intelligence, 2019.
252
+
253
+ C. A. Nicolaou, C. Kannas, and Erika Loizidou. Multi-objective optimization methods in de novo drug design. Mini-reviews in Medicinal Chemistry, 12(10):979–987, 2012.
254
+
255
+ AkshatKumar Nigam, Pascal Friederich, Mario Krenn, and Alan Aspuru-Guzik. Augmenting ge- ´ netic algorithms with deep neural networks for exploring the chemical space. In Proceedings of the 8th International Conference on Learning Representations, 2020.
256
+
257
+ Marcus Olivecrona, Thomas Blaschke, Ola Engkvist, and Hongming Chen. Molecular de-novo design through deep reinforcement learning. Journal of Cheminformatics, 9(1):48–48, 2017.
258
+
259
+ W. Paszkowicz. Properties of a genetic algorithm equipped with a dynamic penalty function. Computational Materials Science, 45(1):77–83, 2009.
260
+
261
+ Pavel G. Polishchuk, Timur I. Madzhidov, and Alexandre Varnek. Estimation of the size of druglike chemical space based on gdb-17 data. Journal of Computer-aided Molecular Design, 27(8): 675–679, 2013.
262
+
263
+ Mariya Popova, Olexandr Isayev, and Alexander E Tropsha. Deep reinforcement learning for de novo drug design. Science Advances, 4(7), 2018.
264
+
265
+ Mariya Popova, Mykhailo Shvets, Junier Oliva, and Olexandr Isayev. Molecularrnn: Generating realistic molecular graphs with optimized properties. arXiv: Learning, 2019.
266
+
267
+ David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5):742–754, 2010.
268
+
269
+ Jeffrey S. Rosenthal. Optimal proposal distributions and adaptive mcmc. In Handbook of Markov Chain Monte Carlo, chapter 4. CRC Press, 2011.
270
+
271
+ Daniel Schwalbe-Koda and Rafael Gomez-Bombarelli. Generative models for automatic chemical ´ design. In Machine Learning Meets Quantum Physics. 2020.
272
+
273
+ Ari Seff, Wenda Zhou, Farhan Damani, Abigail Doyle, and Ryan P. Adams. Discrete object generation with reversible inductive construction. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems, 2019.
274
+
275
+ Chence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang, Ming Zhang, and Jian Tang. Graphaf: a flow-based autoregressive model for molecular graph generation. In Proceedings of the 8th International Conference on Learning Representations, 2020.
276
+
277
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9:2579–2605, 2008.
278
+
279
+ Robin Winter, Floriane Montanari, Andreas Steffen, Hans Briem, Frank Noe, and Djork-Arn ´ e Clev- ´ ert. Efficient multi-objective molecular optimization in a continuous latent space. Chemical Science, 10(34):8016–8024, 2019.
280
+
281
+ Jiaxuan You, Bowen Liu, Zhitao Ying, Vijay S. Pande, and Jure Leskovec. Graph convolutional policy network for goal-directed molecular graph generation. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems, 2018.
282
+
283
+ Chengxi Zang and Fei Wang. Moflow: An invertible flow model for generating molecular graphs. In The 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2020.
284
+
285
+ Huangzhao Zhang, Hao Zhou, Ning Miao, and Lei Li. Generating fluent adversarial examples for natural languages. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, 2019.
286
+
287
+ Maosen Zhang, Nan Jiang, Lei Li, and Yexiang Xue. Language generation via combinatorial constraint satisfaction: A tree search enhanced Monte-Carlo approach. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2020.
288
+
289
+ # Appendix
290
+
291
+ # A PROPERTY SCORES OF SAMPLED MOLECULES
292
+
293
+ The property score distributions of sampled $N = 5 0 0 0$ molecules of the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } + \mathrm { S A }$ setting are shown in Figure 5. The average of the metrics over the sampling path is shown in Figure 6.
294
+
295
+ ![](images/0bab267db78f46805300fd4872b6414180a7bb4eb7016542f504b51e5c1dbc4d.jpg)
296
+ Figure 5: Property score distributions of sampled $N = 5 0 0 0$ molecules. The red lines are success thresholds.
297
+
298
+ ![](images/beca3f6afb24e575ebdc42f47fe82e3b9ac74328c9f209f14eb9c32c698e18bc.jpg)
299
+ Figure 6: MARS sampling curves (average of 10 runs) for the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } \substack { + } \mathrm { S A }$ setting. SR: success rate. Nov: novelty. Div: diversity. PM: product of the three metrics. Shaded area shows the standard deviations over 10 independent runs.
300
+
301
+ # B SINGLE OBJECTIVE GENERATION
302
+
303
+ To study whether our proposed method is capable of single-objective molecular generation, we also investigate how MARS performs on the drug-likeness (QED) and the penalized octanol-water partition coefficient (penalized logP) optimization. The experiment results are shown in Table 4. In the experiments, our approach can obtain the best performance on both QED and logP optimization. And especially, MARS outperforms previous methods significantly in the logP generation task.
304
+
305
+ Table 4: Comparison of different methods on single-objective molecular generation. Results of other baselines are taken from Shi et al. (2020) and Nigam et al. (2020).
306
+
307
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">1st</td><td colspan="2">QED</td><td colspan="3">Penalized logP</td></tr><tr><td>2nd</td><td>3rd</td><td>1st</td><td>2nd</td><td>3rd</td></tr><tr><td>GCPN (You et al., 2018)</td><td>0.948</td><td>0.947</td><td>0.946</td><td>7.98</td><td>7.85</td><td>7.80</td></tr><tr><td>JT-VAE (Jin et al., 2018)</td><td>0.925</td><td>0.911</td><td>0.91</td><td>5.30</td><td>4.93</td><td>4.49</td></tr><tr><td>GraphAF (Shi et al.,2020)</td><td>0.948</td><td>0.948</td><td>0.947</td><td>12.23</td><td>11.29</td><td>11.05</td></tr><tr><td>GB-GA (Jensen, 2019)</td><td>/</td><td>/</td><td>/</td><td>15.76± 5.71</td><td>/</td><td>/</td></tr><tr><td>GA+D (Nigam et al., 2020)</td><td>/</td><td>/</td><td>/</td><td>20.72 ± 3.14</td><td>/</td><td>1</td></tr><tr><td>MARS</td><td>0.948</td><td>0.948</td><td>0.948</td><td>44.99</td><td>44.32</td><td>43.81</td></tr></table>
308
+
309
+ Moreover, from the results, we also can see how these two previously widely used metrics (Jin et al., 2018; You et al., 2018; Popova et al., 2019; Shi et al., 2020; Nigam et al., 2020) are questionable for both scientific study and practical use. Most of the generative methods (i.e., GCPN, JT-VAE, and GraphAF) can produce molecules with the highest possible QED score of 0.948, making the top QED score metric hard to distinguish different methods. As for logP optimization, heuristic search-based (i.e., GB-GA and $\mathrm { G A } { + } \mathrm { D }$ ) and sampling-based methods (i.e., MARS) can all easily beat generative models. This is because penalized logP score will prefer larger molecules that generative models can hardly produce. However, such large molecules are unrealistic for practical drug discovery, making the top penalized logP score metric problematic.
310
+
311
+ # C EXAMPLES OF SAMPLED MOLECULES
312
+
313
+ We also provide some examples of sampled molecules from the $\mathrm { G S K } 3 \beta + \mathrm { J N K } 3 \substack { + } \mathrm { Q E D } \substack { + } \mathrm { S A }$ setting.
314
+ The numbers under molecule graphs are $\mathrm { G S K } 3 \beta$ , JNK3, QED, and SA scores, respectively.
315
+
316
+ ![](images/e2ca1b502a5dc59d5526d2fa276b3cd5948939e14b67c341b48aa673a5e68f71.jpg)
317
+ Figure 7: 40 sampled molecules with highest average property scores.
318
+
319
+ ![](images/7f24c808c854564588e8e70bccbc39694c2afb8619644c6d8f6747313d4dc468.jpg)
320
+ Figure 8: 40 sampled molecules with highest $\mathrm { G S K } 3 \beta$ scores.
321
+
322
+ ![](images/7020507949ef8e7b21f6f22ead012f1062a5e37ddf166e51ed28bb6760af5cc2.jpg)
323
+ Figure 9: 40 sampled molecules with highest JNK3 scores.
324
+
325
+ ![](images/a51cc17dd310937444fd3757b6c5aee06bef2b107773be4e0dedb419e4abb89c.jpg)
326
+ Figure 10: 40 sampled molecules with highest QED scores.
327
+
328
+ ![](images/a0224a66ffeb2ef57e42d611c5756109dbabef25366aded3e6744d826cad9cf1.jpg)
329
+ Figure 11: 40 sampled molecules with highest SA scores.
parse/train/kHSu4ebxFXY/kHSu4ebxFXY_content_list.json ADDED
@@ -0,0 +1,1679 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "MARS: MARKOV MOLECULAR SAMPLING FOR MULTI-OBJECTIVE DRUG DISCOVERY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 745,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yutong $\\mathbf { X } \\mathbf { i } \\mathbf { e } ^ { \\mathrm { { \\dagger } } \\circ }$ , Chence $\\mathbf { S h i } ^ { \\dagger \\triangle }$ , Hao Zhou†∗, Yuwei Yang†, Weinan Zhang‡, Yong $\\mathbf { V } \\mathbf { u } ^ { \\ddag }$ , Lei Li†∗ \n†ByteDance AI Lab, Shanghai, China \n\u0005University of Michigan, Ann Arbor, MI, USA \n4Montreal Institute of Learning Algorithms, Montreal, Canada ´ \n‡Department of Computer Science and Engineering, Shanghai Jiao Tong University, China ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 828,
21
+ 243
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 280,
32
+ 544,
33
+ 295
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Searching for novel molecules with desired chemical properties is crucial in drug discovery. Existing work focuses on developing neural models to generate either molecular sequences or chemical graphs. However, it remains a big challenge to find novel and diverse compounds satisfying several properties. In this paper, we propose MARS, a method for multi-objective drug molecule discovery. MARS is based on the idea of generating the chemical candidates by iteratively editing fragments of molecular graphs. To search for high-quality candidates, it employs Markov chain Monte Carlo sampling (MCMC) on molecules with an annealing scheme and an adaptive proposal. To further improve sample efficiency, MARS uses a graph neural network (GNN) to represent and select candidate edits, where the GNN is trained on-the-fly with samples from MCMC. Experiments show that MARS achieves state-of-the-art performance in various multi-objective settings where molecular bio-activity, drug-likeness, and synthesizability are considered. Remarkably, in the most challenging setting where all four objectives are simultaneously optimized, our approach outperforms previous methods significantly in comprehensive evaluations. The code is available at https://github.com/yutxie/mars. ",
40
+ "bbox": [
41
+ 233,
42
+ 311,
43
+ 764,
44
+ 547
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 575,
55
+ 336,
56
+ 592
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Drug discovery aims to find chemical compounds with desired target properties, such as high druglikeness (Bickerton et al., 2012, QED). The problem is also referred to as molecular design, molecular generation, or molecular search. The space of drug-like chemicals is enormous, approximate $1 0 ^ { 3 3 }$ for realistic drugs that could ever be synthesized (Polishchuk et al., 2013). Therefore it is very challenging to search for high-quality molecules from such a vast space — enumeration would take almost forever. For a particular disease, finding the right candidates targeting specific proteins further complicates the problem. ",
63
+ "bbox": [
64
+ 174,
65
+ 608,
66
+ 825,
67
+ 705
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Instead of enumerating or searching from the immense chemical space, recent work utilizes deep generative models to generate candidate molecules directly (Schwalbe-Koda & Gomez-Bombarelli, ´ 2020). However, most prior work focuses on generating molecules concerning a single property such as drug-likeness (QED) or octanol-water partition coefficient (logP) (Jin et al., 2018; You et al., 2018; Popova et al., 2019; Shi et al., 2020; Zang & Wang, 2020). While in practical settings, typical drug discovery requires consideration of multiple properties jointly (Nicolaou et al., 2012). For example, to find drug-like molecules that are easy to synthesize and exhibit high biological activity against the target protein. Naturally, multi-objective molecule design is much more challenging than the single-objective scenario (Jin et al., 2020). ",
74
+ "bbox": [
75
+ 174,
76
+ 713,
77
+ 825,
78
+ 838
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "This paper studies the problem of multi-objective molecule design for drug discovery. An ideal solution should be efficient and meet the following criteria. $C I$ : It should satisfy multiple properties with high scores; C2: It should produce novel and diverse molecules; C3: Its generation process does not rely on either expert annotated or wet experimental data collected from a biochemistry lab (since it requires tremendous effort and hard to obtain). Existing molecule generation approaches are mainly designed for the single objective setting, and they could not meet all criteria in the setting of multiple objectives. These methods belong to four categories: a) generating candidates from a learned continuous latent space (Gomez-Bombarelli et al., 2018; Jin et al., 2018), b) through reinforcement ´ learning (You et al., 2018), c) using an encoder-decoder translation approach (Jin et al., 2019), or d) optimizing molecular properties through genetic algorithms (Nigam et al., 2020). Current stateof-the-art multi-objective molecular generation is a rationale-based method (Jin et al., 2020). In this approach, the authors propose to build molecules by composing multiple extracted rationales, and the model can generate compounds that are simultaneously active to multiple biological targets. However, such an approach will result in quite complex molecules when we have many objectives. This is because different objectives correspond to different rationales, and including all these rationales could lead to large molecules, which may be less drug-like and hard to be synthesized practically. ",
85
+ "bbox": [
86
+ 174,
87
+ 844,
88
+ 825,
89
+ 887
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 297
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we propose MArkov moleculaR Sampling (MARS), a simple yet flexible method for drug discovery. The basic idea is to start from a seed molecule and keep generating candidate molecules by modifying fragments of molecular graphs from previous steps. It meets all the criteria C1-3. In MARS, the molecular design is formulated as an iterative editing procedure with its total objective consisting of multiple property scores (C1). MARS employs the annealed Markov chain Monte Carlo sampling method to search for optimal chemical compounds, which allows for the exploration of chemicals with novel and different fragments (C2). The proposal to modify molecular fragments is represented using graph neural networks (GNNs), whose parameters are adaptively learned. We used message passing neural networks (MPNNs) in practice (Gilmer et al., 2017), but other GNNs can fit the framework as well. Furthermore, MARS utilizes the sample paths generated on-the-fly to train the proposal network adaptively. Therefore, it does not rely on external annotated data (C3). With such an adaptive learnable proposal, it keeps improving the generation quality throughout the process. ",
107
+ "bbox": [
108
+ 174,
109
+ 305,
110
+ 825,
111
+ 484
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We evaluate MARS and four other baselines, one latest method for each of the four method categories. The benchmark includes a variety of multi-objective generation settings. Experiments show that our proposed MARS achieves state-of-the-art performance on five out of six tasks in terms of a comprehensive evaluation consisting of the success rate, novelty, and diversity of the generated molecules. Notably, in the most challenging setting where four objectives – bio-activities to two different targets, drug-likeness, and synthesizability – are simultaneously considered, our method achieves the state-of-the-art result and outperforms existing methods by $7 7 \\%$ in the comprehensive evaluation. ",
118
+ "bbox": [
119
+ 174,
120
+ 492,
121
+ 825,
122
+ 603
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Our contributions are as follows: ",
129
+ "bbox": [
130
+ 174,
131
+ 611,
132
+ 390,
133
+ 625
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "• We present MARS, a generic formulation of molecular design using Markov sampling, which can easily accommodate multiple objectives. \nWe develop an adaptive fragment-editing proposal based on GNN that is learnable on the fly with only samples self-generated and efficient in exploring the chemical space. \n• Experiments verifies our proposed MARS framework can find novel and diverse bioactive molecules that are both drug-like and highly synthesizable. ",
140
+ "bbox": [
141
+ 217,
142
+ 628,
143
+ 825,
144
+ 713
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 RELATED WORK ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 176,
154
+ 732,
155
+ 344,
156
+ 748
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Recent years have witnessed the success of applying deep generative models and molecular graph representation learning in drug discovery (Schwalbe-Koda & Gomez-Bombarelli, 2020; Guo & ´ Zhao, 2020). Existing approaches for molecular property optimization can be grouped into four categories, including generation with a) Bayesian inference, $^ b$ ) reinforcement learning, $c _ { . }$ ) encoderdecoder translation models, and d) evolutionary and genetic algorithms. The first category is learning continuous latent spaces for molecular sequences or graphs and generating from such spaces using Bayesian optimization (BO) (Gomez-Bombarelli et al., 2018; Jin et al., 2018; Winter et al., 2019). ´ These methods rely heavily on the quality of latent representations, which imposes huge challenges to the encoders when there are multiple properties to consider. ",
163
+ "bbox": [
164
+ 174,
165
+ 762,
166
+ 825,
167
+ 888
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Unlike the first class, other work uses reinforcement learning (RL) to optimize desired objectives directly in the explicit chemical space (De Cao & Kipf, 2018; Popova et al., 2018; You et al., 2018; ",
174
+ "bbox": [
175
+ 174,
176
+ 895,
177
+ 823,
178
+ 924
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Popova et al., 2019; Shi et al., 2020). However, the models are usually hard to train due to the high variance of RL. ",
185
+ "bbox": [
186
+ 173,
187
+ 103,
188
+ 823,
189
+ 132
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "The third category directly trains a translation model that maps from an input molecule to a highquality output molecule (Jin et al., 2019; 2020). Although simple, such methods require many high-quality labeled data, making them impractical in scenarios where the data is limited. ",
196
+ "bbox": [
197
+ 176,
198
+ 138,
199
+ 821,
200
+ 181
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "The last category of methods are evolutionary algorithms (EAs) and genetic algorithms (GAs) to explore large chemical space with certain property (Nicolaou et al., 2012; Devi et al., 2015; Jensen, 2019; Ahn et al., 2020). In Nigam et al. (2020), the authors propose to augment GA by adding an adversarial loss into the fitness evaluation to increase the diversity, and the augmented GA outperforms all other generative models in optimizing logP. Though flexible and straightforward, to make the search process efficient enough, most GA and EA methods require domain experts to design molecular mutation and crossover rules, which could be non-trivial to obtain. ",
207
+ "bbox": [
208
+ 174,
209
+ 188,
210
+ 825,
211
+ 285
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Besides single property optimization, there is recent work to address the multi-objective molecule generation problem. For example, Li et al. (2018) proposes to use a conditional generative model to incorporate several objectives flexibly, while Lim et al. (2020) leverages molecular scaffolds to control the properties of generated molecules better. Among them, the current state-of-the-art approach is a rationale-based method proposed by Jin et al. (2020). In this method, the authors propose to build molecules by assembling extracted rationales. Despite its great success in generating compounds simultaneously active to multiple biological targets, the combination of rationales might hinder the synthesizability and drug-likeness of produced molecules, as they tend to be large as the number of objectives grows. In contrast, our MARS framework turns the generation problem into a sampling procedure, which serves as an alternative way compared with deep generative models, and can efficiently discover bio-active molecules that are both drug-like and highly synthesizable. ",
218
+ "bbox": [
219
+ 174,
220
+ 292,
221
+ 825,
222
+ 445
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Remotely related is recent work to generate molecules through sampling. Seff et al. (2019) defines a Gibbs sampling procedure, in which the Markov chain alternates between randomly corrupting the molecules and recovering the corrupted ones with a learned reconstruction model. However, this method mainly focuses on generating molecules that follow the observed data distribution and cannot be directly tailored for property optimization. Different from this work, MARS is built upon the general MCMC sampling framework, which allows further enhancement with adaptive proposal learning to edit molecular graphs efficiently. Actually, generating instances from a discrete space with MCMC sampling methods is previously employed in various other applications, e.g., generating natural language sentences under various constraints (Miao et al., 2019; Zhang et al., 2019; Liu et al., 2020; Zhang et al., 2020). ",
229
+ "bbox": [
230
+ 174,
231
+ 452,
232
+ 825,
233
+ 592
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "3 PROPOSED MARS APPROACH",
240
+ "text_level": 1,
241
+ "bbox": [
242
+ 176,
243
+ 612,
244
+ 455,
245
+ 628
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "In this section, we present the MArkov moleculaR Sampling method (MARS) for multi-objective molecular design. We define a Markov chain over the explicit molecular graph space and design a kernel to navigate high probable candidates with acceptance and rejection. ",
252
+ "bbox": [
253
+ 174,
254
+ 643,
255
+ 825,
256
+ 686
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "3.1 SAMPLING FROM THE MOLECULAR SPACE ",
263
+ "text_level": 1,
264
+ "bbox": [
265
+ 176,
266
+ 704,
267
+ 509,
268
+ 719
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "Our proposed MARS framework aims at sampling molecules with desired properties from the chemical space. Specifically, given $K$ properties of interest, the desired molecular distribution can be formulated as a combination of all objectives: ",
275
+ "bbox": [
276
+ 174,
277
+ 731,
278
+ 825,
279
+ 772
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "equation",
285
+ "img_path": "images/266b7eebf56c3f693309d8505978bc63f76b3f2c73c5932eed6079637ee44493.jpg",
286
+ "text": "$$\n\\pi ( x ) = \\underbrace { s _ { 1 } ( x ) \\circ s _ { 2 } ( x ) \\circ s _ { 3 } ( x ) \\circ \\dotsb \\circ s _ { K } ( x ) } _ { \\mathrm { d e s i r e d p r o p e r t i e s } }\n$$",
287
+ "text_format": "latex",
288
+ "bbox": [
289
+ 352,
290
+ 780,
291
+ 647,
292
+ 819
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "where $x$ is a molecule in the molecular space $\\mathcal { X }$ . $\\pi ( x )$ is an unnormalized distribution over molecules integrating the desired properties. $s _ { k } ( x )$ is a scoring function for the $k$ -th property and the “◦” operator stands for a combination of scores (e.g., summation or multiplication). In practical drug discovery, these terms could be related to the biological activity, drug-likeness, and synthesizability of molecules (Nicolaou et al., 2012). This framework allows flexible configuration according to various concrete applications. However, as the number of objectives grows, the joint distribution $\\pi ( x )$ will become more complex and intractable, making the sampling non-trivial. ",
299
+ "bbox": [
300
+ 174,
301
+ 825,
302
+ 825,
303
+ 924
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "In MARS, we propose to sample molecules from the desired distribution Eq. 1 using Markov chain Monte Carlo (MCMC) methods (Andrieu et al., 2003). Given a desired molecular distribution $\\pi ( x )$ as the unnormalized target distribution, we define a Markov chain on the explicit chemical space $\\mathcal { X }$ (i.e., each state of the Markov chain is a particular molecule) and introduce a proposal distribution $q ( x ^ { \\prime } \\mid x )$ to perform state transitions. ",
310
+ "bbox": [
311
+ 174,
312
+ 103,
313
+ 823,
314
+ 174
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "image",
320
+ "img_path": "images/c2ea58ad35cf4f220edb7e5b270574085a2edc3f8ad9160cf5909b708564cd7d.jpg",
321
+ "image_caption": [
322
+ "Figure 1: The framework of MARS. During the sampling process: (a) starting from an arbitrary initial molecule $x ^ { ( 0 ) }$ in the molecular space $\\mathcal { X }$ , (b) sampling a candidate molecule $x ^ { \\prime } \\in \\mathcal { X }$ from the proposal distribution q(x0 | x(t−1)) at each step, and $\\mathrm { ( c / d ) }$ the candidate $x ^ { \\prime }$ is either accepted or rejected according to the acceptance rate $\\mathcal { A } ( x ^ { ( t - 1 ) } , x ^ { \\prime } ) \\in [ 0 , 1 ]$ . By repeating this process, we can generate a sequence of molecules $\\{ x ^ { ( t ) } \\} _ { t = 0 } ^ { \\infty }$ . "
323
+ ],
324
+ "image_footnote": [],
325
+ "bbox": [
326
+ 207,
327
+ 185,
328
+ 795,
329
+ 305
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "Specifically, as shown in Figure 1, the sampling procedure of MARS starts from an initial molecule $x ^ { ( 0 ) } \\in \\mathcal { X }$ . At each time step $t$ , a molecule candidate $x ^ { \\prime } \\in \\mathcal { X }$ will be sampled from the proposal distribution $q ( x ^ { \\prime } \\mid x ^ { ( t - 1 ) } )$ , where $x ^ { ( t - 1 ) }$ denotes the molecule at time step $t - 1$ . Then the proposed candidate $x ^ { \\prime }$ could be either accepted $x ^ { ( t ) } = x ^ { \\prime }$ or rejected $x ^ { ( t ) } = x ^ { ( t - 1 ) }$ according to the acceptance rate $\\mathcal { A } ( x ^ { ( t - 1 ) } , x ^ { \\prime } ) \\in [ 0 , 1 ]$ controlled by the target distribution $\\pi ( x )$ . By repeating this process, a sequence of molecules $\\{ x ^ { ( t ) } \\} _ { t = 0 } ^ { \\infty }$ can be generated. Such sequence of molecules will converge to the target distribution $\\pi ( x )$ if the proposal distribution and the acceptance mechanism are configured properly. ",
336
+ "bbox": [
337
+ 173,
338
+ 376,
339
+ 825,
340
+ 496
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "The acceptance rate is calculated as follow: ",
347
+ "bbox": [
348
+ 176,
349
+ 502,
350
+ 459,
351
+ 516
352
+ ],
353
+ "page_idx": 3
354
+ },
355
+ {
356
+ "type": "equation",
357
+ "img_path": "images/b2c132e0541b3b7e0add7628be811357edd932241e4c7df5ceac2ea70f6526c3.jpg",
358
+ "text": "$$\n\\mathcal { A } ( x , x ^ { \\prime } ) = \\operatorname* { m i n } \\left\\{ 1 , \\frac { \\pi ^ { \\alpha } ( x ^ { \\prime } ) q ( x | x ^ { \\prime } ) } { \\pi ^ { \\alpha } ( x ) q ( x ^ { \\prime } | x ) } \\right\\}\n$$",
359
+ "text_format": "latex",
360
+ "bbox": [
361
+ 374,
362
+ 521,
363
+ 622,
364
+ 556
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "where $\\alpha$ is a coefficient that varies in different instantiations of MCMC algorithms. Here to find molecules that globally maximize the target distribution, we employ an annealing scheme (Laarhoven $\\&$ Aarts, 1987) where $\\alpha ~ = ~ 1 \\bar { / } T$ and $T$ is a temperature controlled by a cooling schedule. In addition to this, other instantiations such as Metropolis-Hastings (MH) algorithm (Metropolis et al., 1953) where $\\alpha = 1$ are also feasible under our general framework. ",
371
+ "bbox": [
372
+ 174,
373
+ 560,
374
+ 825,
375
+ 631
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "As for the proposal distribution $q ( x ^ { \\prime } \\mid x )$ , it largely affects the sampling performance and should be designed elaborately. In general, it is crucial that the proposal distribution $q ( x ^ { \\prime } \\mid x )$ and the target distribution $\\pi ( x ^ { \\prime } )$ are as close as possible to ensure high sampling efficiency. So we propose using a proposal distribution $q _ { \\theta } ( x ^ { \\prime } \\mid x )$ with learnable parameters to capture the desired molecular properties and develop a strategy to train the proposal throughout the sampling process adaptively. The details will be described in the next section. ",
382
+ "bbox": [
383
+ 174,
384
+ 636,
385
+ 825,
386
+ 720
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "3.2 ADAPTIVE MOLECULAR GRAPH EDITING PROPOSAL ",
393
+ "text_level": 1,
394
+ "bbox": [
395
+ 174,
396
+ 737,
397
+ 581,
398
+ 751
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "In this section we will examine in detail our proposed adaptive proposal distribution $q _ { \\theta } ( x ^ { \\prime } \\mid x )$ . A molecule is represented as a graph whose nodes are heavy atoms and edges are chemical bonds. The proposal distribution is defined over molecular graph editing actions. We use the message passing neural network (MPNN) to represent the proposal. Alternative parameterization schemes such as other graph neural networks are also possible. To sample molecules with desired properties effectively and efficiently, we also design a self-training strategy to learn the proposal MPNN during sampling in an adaptive manner. ",
405
+ "bbox": [
406
+ 174,
407
+ 762,
408
+ 825,
409
+ 861
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "Molecular graph editing actions. To transform a molecule $x$ into another molecule $x ^ { \\prime }$ , we consider two sets of graph editing actions, i.e., fragment adding and deleting. These actions are inspired by fragment-based drug design (FBDD) methodology, whose success in drug discovery has been proved in past decades (Kumar et al., 2012). In MARS, we define fragments as connected components in molecules separated by single bonds. To reduce the complexity of editing actions, we only consider fragments with a single attachment position. Moreover, we also define a fragment vocabulary that contains finitely many fragments, and only fragments in the vocabulary are allowed to be added onto a molecule. Examples for fragment adding and deleting actions are shown in Figure 2. ",
416
+ "bbox": [
417
+ 174,
418
+ 867,
419
+ 823,
420
+ 924
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "",
427
+ "bbox": [
428
+ 173,
429
+ 103,
430
+ 825,
431
+ 160
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "image",
437
+ "img_path": "images/e31475af681528898823031aaf3d98c029f3d27fcff92e7e5d1d40288d1451ce.jpg",
438
+ "image_caption": [
439
+ "Figure 2: Left: Examples of molecular fragments and a fragment vocabulary. Red dashed lines represents cuttable bonds to extract fragments. Right: Examples of molecular graph editing actions. "
440
+ ],
441
+ "image_footnote": [],
442
+ "bbox": [
443
+ 186,
444
+ 184,
445
+ 818,
446
+ 342
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Specifically, given a molecule $x$ with $n$ atoms and $m$ bonds, we choose to add or delete a fragment onto or from this molecule randomly with probability $\\begin{array} { l } { { \\frac { 1 } { 2 } } } \\end{array}$ for each set of actions. For the adding action, suppose we have a probability distribution over atoms $p _ { \\mathrm { a d d } } ( x , u )$ and a probability distribution over fragments in the vocabulary $p _ { \\mathrm { f r a g } } ( x , u , k )$ . Here $u \\in [ n ]$ is an indicator of the atom in $x$ to which the fragment is adding to and $k \\in [ V ]$ is an indicator of fragments in the vocabulary of size $V$ . We can compute the proposal distribution as follows: ",
453
+ "bbox": [
454
+ 173,
455
+ 393,
456
+ 825,
457
+ 477
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "equation",
463
+ "img_path": "images/fab572f4a4801e0781771fd54451a53cf0b34027be1349cc921571fb356b60ee.jpg",
464
+ "text": "$$\nq ( x ^ { \\prime } | x ) = { \\frac { 1 } { 2 } } \\cdot p _ { \\mathrm { a d d } } ( x , u ) \\cdot p _ { \\mathrm { f r a g } } ( x , u , k )\n$$",
465
+ "text_format": "latex",
466
+ "bbox": [
467
+ 370,
468
+ 483,
469
+ 627,
470
+ 513
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "where $x ^ { \\prime }$ is the molecule obtained by adding the $k$ -th fragment onto the atom $u$ in molecule $x$ . ",
477
+ "bbox": [
478
+ 174,
479
+ 520,
480
+ 789,
481
+ 535
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "As for the deleting action, suppose we have a probability distribution over bonds1 $p _ { \\mathrm { d e l } } ( x , b )$ where $b \\in [ 2 m ]$ is an indicator of bonds in $x$ . We can compute the proposal distribution as follow: ",
488
+ "bbox": [
489
+ 173,
490
+ 540,
491
+ 820,
492
+ 570
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "equation",
498
+ "img_path": "images/776b161deb4e389da2297463a50b3ddf9b2e28ee1b79e5ff8c9c655680657994.jpg",
499
+ "text": "$$\nq ( x ^ { \\prime } | x ) = \\frac { 1 } { 2 } \\cdot p _ { \\mathrm { d e l } } ( x , b )\n$$",
500
+ "text_format": "latex",
501
+ "bbox": [
502
+ 421,
503
+ 575,
504
+ 578,
505
+ 606
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "where $x ^ { \\prime }$ is the molecule obtained by removing bond $b$ and the attached fragment from molecule $x$ ",
512
+ "bbox": [
513
+ 173,
514
+ 612,
515
+ 820,
516
+ 627
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Parameterizing with MPNNs. To better model the molecular graph editing actions, we propose to use MPNNs to suggest the probability distributions $( p _ { \\mathrm { a d d } } , \\bar { p _ { \\mathrm { f r a g } } } , \\bar { p _ { \\mathrm { d e l } } } ) = \\bar { \\mathcal { M } } _ { \\theta } ( x )$ where $\\mathcal { M } _ { \\theta }$ is a MPNN model specified by parameters $\\theta$ , which has been proven powerful to predict chemical properties with molecular graphs (Gilmer et al., 2017). Given a molecule $x$ , we compute the probability distributions as follow: ",
523
+ "bbox": [
524
+ 174,
525
+ 632,
526
+ 823,
527
+ 703
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/fdd8d49ca4dd77cf5b3101fa0221d0733958bda138b015557124fdf4384ce5ff.jpg",
534
+ "text": "$$\n\\begin{array} { r l } & { { \\cal h } _ { u } ^ { \\mathrm { n o d e } } = \\mathrm { M P N N } ( x ) _ { u } \\in \\mathbb { R } ^ { d } } \\\\ & { \\quad \\quad \\quad \\quad \\displaystyle { \\boldsymbol h } _ { b } ^ { \\mathrm { e q e } } = { \\mathrm { C o n c a t } } ( { \\boldsymbol h } _ { v } ^ { \\mathrm { n o d e } } , { \\boldsymbol h } _ { w } ^ { \\mathrm { n o d e } } ) \\in \\mathbb { R } ^ { 2 d } } \\\\ & { \\quad \\quad \\quad \\quad p _ { \\mathrm { a d d } } ( x ) = \\mathrm { S o f t m a x } ( \\{ \\mathrm { M L P } _ { \\mathrm { n o d e } } ( { \\boldsymbol h } _ { u } ^ { \\mathrm { n o d e } } ) ) \\} _ { u = 1 } ^ { n } ) \\in [ 0 , 1 ] ^ { n } } \\\\ & { \\quad \\quad \\quad p _ { \\mathrm { f r a g } } ( x , u ) = \\mathrm { S o f t m a x } ( \\mathrm { M L P } _ { \\mathrm { n o d e } } ^ { \\prime } ( { \\boldsymbol h } _ { u } ^ { \\mathrm { n o d e } } ) ) \\in [ 0 , 1 ] ^ { | { \\cal V } | } } \\\\ & { \\quad \\quad \\quad p _ { \\mathrm { d e l } } ( x ) = \\mathrm { S o f t m a x } ( \\{ \\mathrm { M L P } _ { \\mathrm { e d e } } ( { \\boldsymbol h } _ { b } ^ { \\mathrm { e q e } } ) ) \\} _ { b = 1 } ^ { 2 m } ) \\in [ 0 , 1 ] ^ { 2 m } } \\end{array}\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 308,
538
+ 707,
539
+ 686,
540
+ 814
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "where $u$ is an atom indicators, $\\{ h _ { u } ^ { \\mathrm { n o d e } } \\} _ { u = 1 } ^ { n }$ e}nu=1 are node hidden representations, v, w are atoms connected with bond $b$ , $\\{ h _ { b } ^ { \\mathrm { e d g e } } \\} _ { b = 1 } ^ { 2 m }$ u are edge hidden representations, and ${ \\bf M L P _ { n o d e } }$ , $\\mathbf { M L P _ { n o d e } ^ { \\prime } }$ , ${ \\mathrm { \\mathbf { M L P _ { e d g e } } } }$ are multilayer peceptrons (MLPs), similar to $\\mathrm { H u }$ et al. (2020). ",
547
+ "bbox": [
548
+ 176,
549
+ 819,
550
+ 821,
551
+ 864
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Adaptive self-training. To capture the desired properties and improve the sampling effectiveness, we can train the editing model to increase the probability of suggesting high-quality candidate ",
558
+ "bbox": [
559
+ 174,
560
+ 871,
561
+ 823,
562
+ 901
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Algorithm 1: MARS ",
569
+ "text_level": 1,
570
+ "bbox": [
571
+ 174,
572
+ 107,
573
+ 321,
574
+ 122
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "1 Set $N$ initial molecules $\\{ x _ { i } ^ { ( 0 ) } \\} _ { i = 1 } ^ { N }$ and initialize the molecular graph editing model $\\mathcal { M } _ { \\theta }$ \n2 Create an empty editing model training dataset $\\mathcal { D } = \\{ \\}$ \n3 for $t = 1 , 2 , \\ldots$ do \n4 for $i = 1 , 2 , \\dots , N$ do \n5 Compute probability distributions $( p _ { \\mathrm { a d d } } , p _ { \\mathrm { f r a g } } , p _ { \\mathrm { d e l } } ) = \\mathcal { M } _ { \\theta } ( x _ { i } ^ { ( t - 1 ) } )$ as Equations 7-9 \n6 Sample a candidate molecule $x ^ { \\prime }$ from the proposal distribution $q ( x ^ { \\prime } \\mid x _ { i } ^ { ( t - 1 ) } )$ defined with \nprobability distributions $p _ { \\mathrm { a d d } } , p _ { \\mathrm { f r a g } } , p _ { \\mathrm { d e l } }$ as Equations 3-4 \n7 if $u < \\mathcal { A } ( x _ { i } ^ { ( t - 1 ) } , x ^ { \\prime } )$ where $u \\sim \\mathcal { U } _ { [ 0 , 1 ] }$ then \n8 Accept the candidate molecule $\\boldsymbol { x } _ { i } ^ { ( \\dot { t } ) } = \\boldsymbol { x } ^ { \\prime }$ \n9 else \n10 Refuse the candidate molecule $x _ { i } ^ { ( t ) } = x _ { i } ^ { ( t - 1 ) }$ \n11 if The candidate improves the objectives, i.e. $\\pi ( x ^ { \\prime } ) > \\pi ( x _ { i } ^ { ( t - 1 ) } )$ then \n12 Adding the editing record $( x _ { i } ^ { ( t - 1 ) } , x ^ { \\prime } )$ into the dataset $\\mathcal { D }$ \n13 $\\theta ^ { n e w } \\longleftarrow \\arg \\operatorname* { m a x } \\log M _ { \\theta } ( \\mathcal { D } )$ ",
581
+ "bbox": [
582
+ 158,
583
+ 127,
584
+ 759,
585
+ 349
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "molecules. Here we propose to train the model on-the-fly during the sampling process in an adaptive manner where the training data is collected from the sampling paths. By doing so, we can bypass the difficulty of lacking training instances that satisfy all property constraints. Mainly, we collect molecule candidates that improve our desired objectives and train the model $\\mathcal { M } _ { \\theta }$ in a maximum likelihood estimation (MLE) manner (i.e., to maximize the probability of producing the collected candidates). The overall MARS is described in Algorithm 1. ",
592
+ "bbox": [
593
+ 174,
594
+ 386,
595
+ 825,
596
+ 469
597
+ ],
598
+ "page_idx": 5
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "Discussion on convergence. Compared with standard MCMC algorithms, MARS still falls in the Metropolis-Hastings algorithm but with an annealing scheme and an adaptive proposal, which results in inhomogeneous transition kernels. The convergence of adaptive MCMC is discussed in Rosenthal (2011). According to the diminishing adaptation condition, we can ensure convergence by making the difference of proposals in consecutive iterations diminish to zero. MARS can satisfy this condition by using an optimizer whose learning rate will shrink to zero eventually (e.g., Adam). Annealed MCMC is to find samples maximizing the target probability. The convergence of annealed MCMC is discussed in Andrieu et al. (2003). ",
603
+ "bbox": [
604
+ 173,
605
+ 477,
606
+ 825,
607
+ 588
608
+ ],
609
+ "page_idx": 5
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "4 EXPERIMENTS ",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 176,
617
+ 616,
618
+ 326,
619
+ 632
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "4.1 EXPERIMENT SETUP ",
626
+ "text_level": 1,
627
+ "bbox": [
628
+ 176,
629
+ 651,
630
+ 357,
631
+ 666
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "Biological objectives. Following Jin et al. (2020), we consider the following inhibition scores against two Alzheimer-related target proteins as the biological activity objectives. The score is given by a random forest model 2 that predicts based on Morgan fingerprint features of a molecule (Rogers & Hahn, 2010). ",
638
+ "bbox": [
639
+ 174,
640
+ 680,
641
+ 825,
642
+ 736
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "• $\\mathrm { G S K } 3 \\beta$ : Inhibition against glycogen synthase kinase- $3 \\beta$ . \n• JNK3: Inhibition against c-Jun N-terminal kinase-3. ",
649
+ "bbox": [
650
+ 215,
651
+ 752,
652
+ 606,
653
+ 780
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "Non-biological objectives. Following Jin et al. (2020), we adopt QED (Bickerton et al., 2012) and synthetic accessibility (SA) (Ertl & Schuffenhauer, 2009) to quantify the drug-likeness and synthesizability. We rescale the SA score (initially between 10 and 1) into [0, 1] such that molecules with higher scores are more synthesizable. ",
660
+ "bbox": [
661
+ 174,
662
+ 795,
663
+ 825,
664
+ 852
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Multi-objective generation setting. To evaluate the effectiveness of the proposed method for multiobjective drug design, we also consider the following more challenging objective combinations: ",
671
+ "bbox": [
672
+ 174,
673
+ 858,
674
+ 821,
675
+ 887
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "• $\\mathrm { G S K } 3 \\beta { + } \\mathrm { J N K } 3$ : Jointly inhibiting $\\mathrm { G S K } 3 \\beta$ and JNK3. The combination may provide potential benefits for the treatment of Alzheimer’s disease reported by Hu et al. (2009); Martin et al. (2013). $\\mathrm { G S K } 3 \\beta / \\mathrm { J N K } 3 + \\mathrm { Q E D } + \\mathrm { S A } ;$ : Inhibiting $\\mathrm { G S K } 3 \\beta$ or JNK3 while being drug-like and synthetically accessible, which are quantified by QED and SA, respectively. $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\mathrm { + } \\mathrm { Q E D } \\mathrm { + } \\mathrm { S A }$ : Jointly inhibiting $\\mathrm { G S K } 3 \\beta$ and JNK3 while being drug-like and synthetically accessible, which are quantified by QED and SA, respectively. ",
682
+ "bbox": [
683
+ 215,
684
+ 103,
685
+ 825,
686
+ 202
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Baselines. We compare MARS with the following methods – the latest ones from four categories mentioned in the related work (Sec. 2). GCPN (You et al., 2018) leverages RL to generate molecules atom by atom, and the adversarial loss is incorporated in the objective to generate more realistic molecules. JT-VAE (Jin et al., 2018) is a VAE-based approach that firstly generates junction trees and then assembles them into molecules. It performs Bayesian optimization (BO) to guide molecules towards desired properties. RationaleRL (Jin et al., 2020) is a state-of-the-art approach for multiproperty optimization, which generates molecules from combined rationales. $\\mathbf { G A + D }$ (Nigam et al., 2020) is a heuristic search method that applies the genetic algorithm (GA) to find molecules with high property scores. An adversarial loss is incorporated in the fitness evaluation to increase the diversity of generated molecules. ",
693
+ "bbox": [
694
+ 173,
695
+ 213,
696
+ 825,
697
+ 352
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Evaluation metrics. Following Jin et al. (2020), we generate $N \\ = \\ 5 0 0 0$ molecules for each approach and compare the proposed method with the baselines on the following evaluation metrics: Success rate (SR) is the percentage of generated molecules that are evaluated as positive on all given objectives $\\mathrm { ( Q E D \\ge 0 . 6 }$ , $\\mathbf { S A } \\geq \\ 0 . 6 7$ , the inhibition scores of $\\mathrm { G S K } 3 \\beta$ and JNK3 $\\ge ~ 0 . 5 )$ ; Novelty $\\mathbf { \\Pi } ( \\mathbf { N o v } )$ is the percentage of generated molecules with similarity less than 0.4 compared to the nearest neighbor $x _ { S \\mathsf { N N } }$ in the training set (Olivecrona et al., 2017): $\\begin{array} { r l } { \\mathbf { N o v } } & { { } = } \\end{array}$ $\\textstyle { \\frac { 1 } { n } } \\sum _ { x \\in { \\mathcal { G } } } \\mathbf { 1 } [ \\sin ( x , x _ { \\mathrm { S N N } } ) < { \\bar { 0 . 4 } } ]$ ; Diversity (Div) measures the diversity of generated molecules, which can be calculated based on pairwise Tanimoto similarity over Morgan fingerprints $\\sin ( x , x ^ { \\prime } )$ as $\\begin{array} { r } { \\mathrm { D i v } = \\frac { 2 } { n ( n - 1 ) } \\sum _ { x \\ne x ^ { \\prime } \\in \\mathcal { G } } 1 - \\dot { \\sin ( x , x ^ { \\prime } ) } } \\end{array}$ ; PM is the product of the above three metrics, which is a more comprehensive evaluation of the proposed method. Intuitively, PM presents the percentage of generated molecules that are simultaneously bio-active, novel and diverse, which are essential criteria for molecules to be considered in building a suitable drug candidate library in early-stage drug discovery (Huggins et al., 2011). ",
704
+ "bbox": [
705
+ 173,
706
+ 359,
707
+ 825,
708
+ 544
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "Implementation details. For the fragment vocabulary, we extract the top 1000 frequently appearing fragments that contain no more than 10 heavy atoms from the ChEMBL database (Gaulton et al., 2017) by enumerating single bonds to break. As for the sampling process, the unnormalized target distribution is set as $\\begin{array} { r } { \\bar { \\pi } ( x ) = \\sum _ { k } s _ { k } ( x ) } \\end{array}$ where $s _ { k } ( x )$ is a scoring function for the above-mentioned properties of interests, the temperature is set as $T = 0 . 9 5 ^ { \\lfloor t / 5 \\rfloor }$ and we sample $N = 5 0 0 0$ molecules at one time. During sampling, the computation of $q ( x \\mid x ^ { \\prime } )$ is ignored and we approximate $\\boldsymbol { \\mathcal { A } } ( \\boldsymbol { x } , \\boldsymbol { x } ^ { \\prime } )$ with $\\mathrm { m i n } \\{ 1 , \\pi ^ { \\alpha } ( x ^ { \\bar { \\prime } } ) / \\pi ^ { \\alpha } \\bar { \\alpha ( } x ) \\bar { \\} }$ to increase the computation efficiency. This is acceptable because in practice $q ( x \\mid x ^ { \\prime } )$ and $q ( x ^ { \\prime } \\mid x )$ is of order $O ( 1 )$ and $\\boldsymbol { \\mathcal { A } } ( \\boldsymbol { x } , \\boldsymbol { x } ^ { \\prime } )$ will be gradually bounded by $\\pi ^ { \\alpha } \\bar { ( } x ^ { \\prime } ) / \\pi ^ { \\alpha } \\bar { ( } x )$ as the temperature $T$ decrease to zero. The sampling paths are all starting with an identical molecule $\\mathrm { ^ { 6 6 } C T ^ { - C } } ^ { \\mathrm { 9 } }$ , which is also adopted by previous graph generation methods for organic molecules (You et al., 2018). The MPNN model has six layers, and the node embedding size is $d = 6 4$ . Moreover, for the model training, we use an Adam optimizer (Kingma & Ba, 2015) to update the model parameters with an initial learning rate set as $3 \\times 1 0 ^ { - 4 }$ , the maximum dataset size is limited as $| \\mathcal { D } | \\overset { - } { \\leq } 7 5 , 0 0 0$ , and at each step, we update the model for no more than 25 times. ",
715
+ "bbox": [
716
+ 173,
717
+ 551,
718
+ 825,
719
+ 747
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "4.2 MAIN RESULTS AND ANALYSIS ",
726
+ "text_level": 1,
727
+ "bbox": [
728
+ 176,
729
+ 765,
730
+ 431,
731
+ 779
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "We perform ten independent runs for MARS. The quantitative results are summarized in Table 1 and Table 2. From these tables, we observe that MARS outperforms all the baselines on five out of six tasks in terms of PM. Furthermore, on the most challenging multi-objective optimization task, i.e., $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } \\substack { + } \\mathrm { S A }$ , it significantly surpasses the best baseline with a $7 7 \\%$ improvement for the product of metrics PM. Additional results are shown in Appendix A. ",
738
+ "bbox": [
739
+ 174,
740
+ 791,
741
+ 825,
742
+ 861
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "In comparing all these methods, the $\\mathrm { G A + D }$ baseline is most similar to our MARS in terms of the high novelty and PM score, as both methods focus on molecular space exploration. However, the diversity score of $\\mathrm { G A + D }$ drops a lot when optimizing multiple properties simultaneously, as GAs are likely to get trapped in regions of local optima (Paszkowicz, 2009). RationaleRL is a very strong baseline that performs better than MARS in the $\\mathrm { G S K } 3 \\beta { + } \\mathrm { J N K } 3$ setting. Nevertheless, when taking the drug-likeness and synthetic accessibility into consideration, their performance falls short of ours and fails to generate novel molecules. The performance of GCPN and JT-VAE remains relatively low in most settings, as they are not tailored for multi-objective property optimization. ",
749
+ "bbox": [
750
+ 174,
751
+ 867,
752
+ 823,
753
+ 924
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "table",
759
+ "img_path": "images/042a5ad692f83f30418736d0eb747b1d4859ffc4915527c74b96bc7a5eb07f1f.jpg",
760
+ "table_caption": [
761
+ "Table 1: Comparison of different methods on molecular generation with only bio-activity objectives. Results of $\\mathrm { G A + D }$ are obtained by running its open-source code. Results of other baselines are taken from Jin et al. (2020). For MARS, we report the mean and standard deviation of 10 independent experiments. "
762
+ ],
763
+ "table_footnote": [],
764
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">GSK3β</td><td colspan=\"4\">JNK3</td><td colspan=\"4\">GSK3β+JNK3</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>GCPN</td><td>42.4%</td><td>11.6%</td><td>0.904</td><td>0.04</td><td>32.3%</td><td>4.4%</td><td>0.884</td><td>0.01</td><td>3.5%</td><td>8.0%</td><td>0.874</td><td>0.00</td></tr><tr><td>JT-VAE</td><td>32.2%</td><td>11.8%</td><td>0.901</td><td>0.03</td><td>23.5%</td><td>2.9%</td><td>0.882</td><td>0.01</td><td>3.3%</td><td>7.9%</td><td>0.883</td><td>0.00</td></tr><tr><td>RationaleRL</td><td>100.0%</td><td>53.4%</td><td>0.888</td><td>0.47</td><td>100.0%</td><td>46.2%</td><td>0.862</td><td>0.40</td><td>100.0%</td><td>97.3%</td><td>0.824</td><td>0.80</td></tr><tr><td>GA+D</td><td>84.6%</td><td>100.0%</td><td>0.714</td><td>0.60</td><td>52.8%</td><td>98.3%</td><td>0.726</td><td>0.38</td><td>84.7%</td><td>100.0%</td><td>0.424</td><td>0.36</td></tr><tr><td>MARS</td><td>100.0%</td><td>84.0%</td><td>0.718</td><td>0.60 ± 0.04</td><td>98.8%</td><td>88.9%</td><td>0.748</td><td>0.66 ±0.04</td><td>99.5%</td><td>75.3%</td><td>0.691</td><td>0.52 ±0.08</td></tr></table>",
765
+ "bbox": [
766
+ 176,
767
+ 143,
768
+ 825,
769
+ 241
770
+ ],
771
+ "page_idx": 7
772
+ },
773
+ {
774
+ "type": "table",
775
+ "img_path": "images/e4cd757e3b49dc028432824428c0415c20702b7ba59819741712e17dd9c6e687.jpg",
776
+ "table_caption": [
777
+ "Table 2: Comparison of different methods on molecular generation with bio-activity, QED, and SA objectives. Results of all baselines are obtained by running their open-source codes. For the results of MARS, we report the mean and standard deviation of 10 independent experiments. "
778
+ ],
779
+ "table_footnote": [],
780
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">GSK3β+QED+SA</td><td colspan=\"4\">JNK3+QED+SA</td><td colspan=\"4\">GSK3β +JNK3+ QED +SA</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>GCPN</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td><td>0.0%</td><td>0.0%</td><td>0.000</td><td>0.00</td></tr><tr><td>JT-VAE</td><td>9.6%</td><td>95.8%</td><td>0.680</td><td>0.06</td><td>21.8%</td><td>100.0%</td><td>0.600</td><td>0.13</td><td>5.4%</td><td>100.0%</td><td>0.277</td><td>0.02</td></tr><tr><td>RationaleRL</td><td>69.9%</td><td>40.2%</td><td>0.893</td><td>0.25</td><td>62.3%</td><td>37.6%</td><td>0.865</td><td>0.20</td><td>75.0%</td><td>55.5%</td><td>0.706</td><td>0.29</td></tr><tr><td>GA+D</td><td>89.1%</td><td>100.0%</td><td>0.682</td><td>0.61</td><td>85.7%</td><td>99.8%</td><td>0.504</td><td>0.43</td><td>85.7%</td><td>100.0%</td><td>0.363</td><td>0.31</td></tr><tr><td>MARS</td><td>99.5%</td><td>95.0%</td><td>0.719</td><td>0.68 ±0.03</td><td>91.3%</td><td>94.8%</td><td>0.779</td><td>0.67 ± 0.02</td><td>92.3%</td><td>82.4%</td><td>0.719</td><td>0.55 ± 0.05</td></tr></table>",
781
+ "bbox": [
782
+ 176,
783
+ 306,
784
+ 821,
785
+ 404
786
+ ],
787
+ "page_idx": 7
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "",
792
+ "bbox": [
793
+ 173,
794
+ 440,
795
+ 825,
796
+ 497
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "Visualization. We use t-SNE (van der Maaten & Hinton, 2008) to visualize the distribution of generated positive molecules with the positive ones in the training set under the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } \\substack { + } \\mathrm { S A }$ setting. In the visualization, we use the ECFP6 fingerprints as suggested in Li et al. (2018). As shown by Figure 3, most molecules generated by $\\mathrm { G A + D }$ fall into two massive clusters, which aligns their low diversity. Molecules generated by RationaleRL also tend to be clustered, with each cluster standing for a specific combination of rationales. By contrast, the molecules generated by MARS are evenly distributed in the space with a range of novel regions covered, which justifies our high novelty and diversity scores. We further visualize some molecules generated by MARS with high property scores in Figure 4, indicating its ability to generate highly synthesizable drug-like molecules that jointly inhibit $\\mathrm { G S K } 3 \\beta$ and JNK3. Additional examples of sampled molecules are shown in Appendix C. ",
803
+ "bbox": [
804
+ 173,
805
+ 503,
806
+ 825,
807
+ 657
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "image",
813
+ "img_path": "images/354e560c651a8808c3b974a4b0c14d32ebb2bdc639cd4e93f783461d0a67c543.jpg",
814
+ "image_caption": [
815
+ "Figure 3: t-SNE visualization of generated molecules (gray) and positive molecules in the training set (blue). "
816
+ ],
817
+ "image_footnote": [],
818
+ "bbox": [
819
+ 181,
820
+ 671,
821
+ 810,
822
+ 818
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Running time. The computing server has two CPUs with 64 virtual cores $( 2 . 1 0 \\mathrm { G H z } )$ , 231G memory (about 50G used), and one Tesla V100 GPU with 32G memory. In the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } + \\mathrm { S A }$ setting, MARS takes roughly $T = 5 5 0$ sampling steps and 12 hours in total to converge (including the time used in proposing and evaluating molecules as well as MPNN model training). For other baselines, RationaleRL takes 5.7 hours to fine-tune the model, and $\\mathrm { G A + D }$ takes 278 steps and $2 . 2 \\mathrm { h }$ to achieve its best performance. Compared to the conventional drug discovery process, which usually takes months to years, the time we spent on molecular generation models is almost ignorable. ",
829
+ "bbox": [
830
+ 174,
831
+ 853,
832
+ 825,
833
+ 924
834
+ ],
835
+ "page_idx": 7
836
+ },
837
+ {
838
+ "type": "image",
839
+ "img_path": "images/5bcb89e0fc85613bdac8e49645a597468b528c3b82d188ba4ede2803bc68053d.jpg",
840
+ "image_caption": [
841
+ "Figure 4: Sample molecules generated by MARS in the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 + \\mathrm { Q E D } + \\mathrm { S A }$ setting. The numbers in brackets are $\\mathrm { G S K } 3 \\beta$ , JNK3, QED, and SA scores of each molecule respectively. "
842
+ ],
843
+ "image_footnote": [],
844
+ "bbox": [
845
+ 192,
846
+ 98,
847
+ 802,
848
+ 171
849
+ ],
850
+ "page_idx": 8
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "",
855
+ "bbox": [
856
+ 174,
857
+ 226,
858
+ 823,
859
+ 255
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "4.3 EFFECTS OF PROPOSAL AND ACCEPTANCE STRATEGY ",
866
+ "text_level": 1,
867
+ "bbox": [
868
+ 174,
869
+ 272,
870
+ 588,
871
+ 286
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "To justify the contributions of the designed proposal and acceptance strategy, we compare them with some naive ones and summarize the results of different combinations in Table 3. For acceptance strategies, Annealed stands for annealed MCMC where the acceptance rate is computed as Equation 2 given $\\alpha = 1 / T$ , AlwaysAC stands for always accepting the candidate, i.e., $\\bar { \\mathcal { A } } ( \\boldsymbol { x } , \\boldsymbol { x } ^ { \\prime } ) \\equiv 1$ , and HillClimb stands for accepting the candidate only when the overall score is improved, i.e., ${ \\mathcal A } ( x , x ^ { \\prime } ) = \\mathrm { s i g n } [ s ( x ^ { \\prime } ) > s ( x ) ]$ . For proposal strategies, Random stands for random proposal where we randomly select atoms, bonds, and fragments to edit, and Adaptive stands for the adaptive fragment-based graph editing model trained during the sampling process as described in Section 3.2. ",
878
+ "bbox": [
879
+ 173,
880
+ 297,
881
+ 825,
882
+ 410
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "table",
888
+ "img_path": "images/039c0f89809c54c916d9e3afa81cceaf901444bf811371fb0860a99666c1d9dd.jpg",
889
+ "table_caption": [
890
+ "Table 3: Results of different acceptance strategies and proposal strategies for molecular sampling. "
891
+ ],
892
+ "table_footnote": [],
893
+ "table_body": "<table><tr><td rowspan=\"2\">AC Strategy</td><td rowspan=\"2\">Proposal</td><td colspan=\"4\">GSK3β + JNK3</td><td colspan=\"4\">GSK3β + JNK3 + QED + SA</td></tr><tr><td>SR</td><td>Nov</td><td>Div</td><td>PM</td><td>SR</td><td>Nov</td><td>Div</td><td>PM</td></tr><tr><td>Annealed</td><td>Random</td><td>40.9%</td><td>94.9%</td><td>0.828</td><td>0.32</td><td>25.5%</td><td>80.4%</td><td>0.793</td><td>0.16</td></tr><tr><td>AlwaysAC</td><td>Adaptive</td><td>49.1%</td><td>88.4%</td><td>0.742</td><td>0.32</td><td>10.1%</td><td>94.6%</td><td>0.716</td><td>0.07</td></tr><tr><td>HillClimb</td><td>Adaptive</td><td>53.7%</td><td>96.1%</td><td>0.814</td><td>0.42</td><td>51.4%</td><td>86.6%</td><td>0.777</td><td>0.35</td></tr><tr><td>Annealed</td><td>Adaptive</td><td>99.5%</td><td>75.2%</td><td>0.688</td><td>0.52</td><td>92.3%</td><td>82.4%</td><td>0.719</td><td>0.55</td></tr></table>",
894
+ "bbox": [
895
+ 181,
896
+ 439,
897
+ 818,
898
+ 537
899
+ ],
900
+ "page_idx": 8
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "The results in Table 3 indicate that proposals will influence the performance of MARS dramatically (the first and the last row), especially when the number of objectives increases. The proposed adaptive proposal outperforms the random proposal and converges $4 . 6 \\mathrm { x }$ faster in practice. By comparing the last three rows, we find the Annealed strategy outperforms the other two strategies by a large margin on both settings, as samples from such strategy are more likely to jump out of local optimums. Another interesting observation is that even with the naive AlwaysAC or heuristic HillClimb strategy, the MARS achieves comparable or even better performance than $\\mathrm { G A + D }$ and RationaleRL in some settings, e.g., HillClimb on $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } \\substack { + } \\mathrm { S A }$ optimization, which again proves the effectiveness of the proposed proposal. ",
905
+ "bbox": [
906
+ 173,
907
+ 553,
908
+ 825,
909
+ 679
910
+ ],
911
+ "page_idx": 8
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "5 CONCLUSION AND FUTURE WORK ",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 174,
919
+ 699,
920
+ 495,
921
+ 715
922
+ ],
923
+ "page_idx": 8
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "This paper proposes a simple yet flexible MArkov moleculaR Sampling framework (MARS) for multi-objective drug discovery. MARS includes a trainable proposal to modify chemical graph fragments, which is parameterized by an MPNN. Our experiments verify that MARS outperforms prior approaches on five out of six molecule generation tasks, and it is capable of finding novel and diverse bioactive molecules that are both drug-like and highly synthesizable. Future work can include further study of parameterization and training strategy of the molecular-editing proposal. ",
928
+ "bbox": [
929
+ 174,
930
+ 731,
931
+ 825,
932
+ 815
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "6 ACKNOWLEDGEMENT ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 174,
942
+ 835,
943
+ 387,
944
+ 852
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "We would like to thank Meihua Dang for refactoring much of the MARS code. Meihua also performed multiple experiments, which generates the results for the tables. We also thank Jiangjie Chen, Yuxuan Song, Jingjing Xu, Weiying Ma, Hang Li, and anonymous reviewers for their constructive comments and suggestions. ",
951
+ "bbox": [
952
+ 174,
953
+ 867,
954
+ 823,
955
+ 924
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "REFERENCES ",
962
+ "text_level": 1,
963
+ "bbox": [
964
+ 174,
965
+ 103,
966
+ 287,
967
+ 117
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Sungsoo Ahn, Junsu Kim, Hankook Lee, and Jinwoo Shin. Guiding deep molecular optimization with genetic exploration. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems, 2020. ",
974
+ "bbox": [
975
+ 174,
976
+ 126,
977
+ 826,
978
+ 167
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Christophe Andrieu, Nando De Freitas, Arnaud Doucet, and Michael I. Jordan. An introduction to mcmc for machine learning. Machine Learning, 50(1):5–43, 2003. ",
985
+ "bbox": [
986
+ 174,
987
+ 175,
988
+ 821,
989
+ 204
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "G. Richard Bickerton, Gaia V. Paolini, Jer´ emy Besnard, Sorel Muresan, and Andrew L. Hopkins. ´ Quantifying the chemical beauty of drugs. Nature Chemistry, 4(2):90–98, 2012. ",
996
+ "bbox": [
997
+ 173,
998
+ 212,
999
+ 821,
1000
+ 242
1001
+ ],
1002
+ "page_idx": 9
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Nicola De Cao and Thomas Kipf. MolGAN: An implicit generative model for small molecular graphs. ICML 2018 workshop on Theoretical Foundations and Applications of Deep Generative Models, 2018. ",
1007
+ "bbox": [
1008
+ 173,
1009
+ 248,
1010
+ 826,
1011
+ 291
1012
+ ],
1013
+ "page_idx": 9
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "R. Vasundhara Devi, S. Siva Sathya, and Mohane Selvaraj Coumar. Evolutionary algorithms for de novo drug design - a survey. Applied Soft Computing, 27:543–552, 2015. ",
1018
+ "bbox": [
1019
+ 173,
1020
+ 299,
1021
+ 825,
1022
+ 329
1023
+ ],
1024
+ "page_idx": 9
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Peter Ertl and Ansgar Schuffenhauer. Estimation of synthetic accessibility score of drug-like molecules based on molecular complexity and fragment contributions. Journal of Cheminformatics, 1(1):8–8, 2009. ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 335,
1032
+ 825,
1033
+ 378
1034
+ ],
1035
+ "page_idx": 9
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Anna Gaulton, Anne Hersey, Michał Nowotka, A. Patr´ıcia Bento, Jon Chambers, David Mendez, Prudence Mutowo, Francis Atkinson, Louisa J. Bellis, Elena Cibrian-Uhalte, Mark Davies, ´ Nathan Dedman, Anneli Karlsson, Mar´ıa Paula Magarinos, John P. Overington, George Pa- ˜ padatos, Ines Smit, and Andrew R. Leach. The chembl database in 2017. Nucleic Acids Research, 45, 2017. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 386,
1043
+ 825,
1044
+ 455
1045
+ ],
1046
+ "page_idx": 9
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning, 2017. ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 463,
1054
+ 821,
1055
+ 507
1056
+ ],
1057
+ "page_idx": 9
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Xiaojie Guo and Liang Zhao. A systematic survey on deep generative models for graph generation. arXiv: Learning, 2020. ",
1062
+ "bbox": [
1063
+ 171,
1064
+ 515,
1065
+ 821,
1066
+ 544
1067
+ ],
1068
+ "page_idx": 9
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Rafael Gomez-Bombarelli, Jennifer Nansean Wei, David Duvenaud, Jos ´ e Miguel Hern ´ andez- ´ Lobato, Benjam´ın Sanchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D. ´ Hirzel, Ryan Prescott Adams, and Alan Aspuru-Guzik. Automatic chemical design using a datadriven continuous representation of molecules. ACS central science, 4(2):268–276, 2018. ",
1073
+ "bbox": [
1074
+ 173,
1075
+ 550,
1076
+ 825,
1077
+ 608
1078
+ ],
1079
+ "page_idx": 9
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Shuxin Hu, Aynun N. Begum, Mychica R. Jones, Mike S. Oh, Walter K. Beech, Beverly Hudspeth Beech, Fusheng Yang, Pingping Chen, Oliver J. Ubeda, Peter C. Kim, Peter Davies, Qiulan Ma, Greg M. Cole, and Sally A. Frautschy. Gsk3 inhibitors show benefits in an alzheimer’s disease (ad) model of neurodegeneration but adverse effects in control animals. Neurobiology of Disease, 33(2):193–206, 2009. ",
1084
+ "bbox": [
1085
+ 174,
1086
+ 614,
1087
+ 825,
1088
+ 685
1089
+ ],
1090
+ "page_idx": 9
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay S. Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. In Proceedings of the 8th International Conference on Learning Representations, 2020. ",
1095
+ "bbox": [
1096
+ 174,
1097
+ 693,
1098
+ 825,
1099
+ 736
1100
+ ],
1101
+ "page_idx": 9
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "David John Huggins, Ashok Ramakrishnan Venkitaraman, and David Robert Spring. Rational methods for the selection of diverse screening compounds. ACS Chemical Biology, 6(3):208–217, 2011. ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 743,
1109
+ 825,
1110
+ 786
1111
+ ],
1112
+ "page_idx": 9
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Jan H. Jensen. A graph-based genetic algorithm and generative model/monte carlo tree search for the exploration of chemical space. Chemical Science, 10(12):3567–3572, 2019. ",
1117
+ "bbox": [
1118
+ 171,
1119
+ 794,
1120
+ 820,
1121
+ 824
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Junction tree variational autoencoder for molecular graph generation. In Proceedings of the 35th International Conference on Machine Learning, 2018. ",
1128
+ "bbox": [
1129
+ 173,
1130
+ 830,
1131
+ 823,
1132
+ 873
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Wengong Jin, Kevin Yang, Regina Barzilay, and Tommi S. Jaakkola. Learning multimodal graph-tograph translation for molecule optimization. In Proceedings of the 7th International Conference on Learning Representations, 2019. ",
1139
+ "bbox": [
1140
+ 174,
1141
+ 881,
1142
+ 825,
1143
+ 924
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Composing molecules with multiple property constraints. In Proceedings of the 37th International Conference on Machine Learning, 2020. ",
1150
+ "bbox": [
1151
+ 171,
1152
+ 103,
1153
+ 823,
1154
+ 133
1155
+ ],
1156
+ "page_idx": 10
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Hierarchical generation of molecular graphs using structural motifs. In Proceedings of the 37th International Conference on Machine Learning, 2020. ",
1161
+ "bbox": [
1162
+ 174,
1163
+ 141,
1164
+ 823,
1165
+ 184
1166
+ ],
1167
+ "page_idx": 10
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations, 2015. ",
1172
+ "bbox": [
1173
+ 171,
1174
+ 194,
1175
+ 821,
1176
+ 223
1177
+ ],
1178
+ "page_idx": 10
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Ashutosh Kumar, A Voet, and K. Y. J Zhang. Fragment based drug design: from experimental to computational approaches. Current Medicinal Chemistry, 19(30):5128–5147, 2012. ",
1183
+ "bbox": [
1184
+ 174,
1185
+ 232,
1186
+ 823,
1187
+ 262
1188
+ ],
1189
+ "page_idx": 10
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "P. J. M. Laarhoven and E. H. L. Aarts. Simulated Annealing: Theory and Applications. 1987. ",
1194
+ "bbox": [
1195
+ 171,
1196
+ 270,
1197
+ 787,
1198
+ 287
1199
+ ],
1200
+ "page_idx": 10
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Yibo Li, Liang Ren Zhang, and Zhenming Liu. Multi-objective de novo drug design with conditional graph generative model. Journal of Cheminformatics, 10(1):33, 2018. ",
1205
+ "bbox": [
1206
+ 174,
1207
+ 295,
1208
+ 823,
1209
+ 325
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Jaechang Lim, Sang-Yeon Hwang, Seungsu Kim, Seokhyun Moon, and Woo Youn Kim. Scaffoldbased molecular design using graph generative model. Chemical Science, 11(4):1153–1164, 2020. ",
1216
+ "bbox": [
1217
+ 174,
1218
+ 334,
1219
+ 825,
1220
+ 377
1221
+ ],
1222
+ "page_idx": 10
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Xianggen Liu, Lili Mou, Fandong Meng, Hao Zhou, Jie Zhou, and Sen Song. Unsupervised paraphrasing by simulated annealing. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 2020. ",
1227
+ "bbox": [
1228
+ 173,
1229
+ 387,
1230
+ 825,
1231
+ 430
1232
+ ],
1233
+ "page_idx": 10
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Ludovic Martin, Xenia Latypova, Cornelia M. Wilson, Amandine Magnaudeix, Marie-Laure Perrin, Catherine Yardin, and Faraj Terro. Tau protein kinases: Involvement in alzheimer’s disease. Ageing Research Reviews, 12(1):289–309, 2013. ",
1238
+ "bbox": [
1239
+ 176,
1240
+ 439,
1241
+ 823,
1242
+ 483
1243
+ ],
1244
+ "page_idx": 10
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller, and Edward Teller. Equation of state calculations by fast computing machines. Journal of Chemical Physics, 21(6):1087–1092, 1953. ",
1249
+ "bbox": [
1250
+ 174,
1251
+ 492,
1252
+ 825,
1253
+ 535
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Ning Miao, Hao Zhou, Lili Mou, Rui Yan, and Lei Li. CGMH: constrained sentence generation by metropolis-hastings sampling. In Proceedings of the 33rd Conference on Artificial Intelligence, 2019. ",
1260
+ "bbox": [
1261
+ 173,
1262
+ 544,
1263
+ 825,
1264
+ 587
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "C. A. Nicolaou, C. Kannas, and Erika Loizidou. Multi-objective optimization methods in de novo drug design. Mini-reviews in Medicinal Chemistry, 12(10):979–987, 2012. ",
1271
+ "bbox": [
1272
+ 173,
1273
+ 597,
1274
+ 825,
1275
+ 626
1276
+ ],
1277
+ "page_idx": 10
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "AkshatKumar Nigam, Pascal Friederich, Mario Krenn, and Alan Aspuru-Guzik. Augmenting ge- ´ netic algorithms with deep neural networks for exploring the chemical space. In Proceedings of the 8th International Conference on Learning Representations, 2020. ",
1282
+ "bbox": [
1283
+ 173,
1284
+ 635,
1285
+ 826,
1286
+ 679
1287
+ ],
1288
+ "page_idx": 10
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "Marcus Olivecrona, Thomas Blaschke, Ola Engkvist, and Hongming Chen. Molecular de-novo design through deep reinforcement learning. Journal of Cheminformatics, 9(1):48–48, 2017. ",
1293
+ "bbox": [
1294
+ 171,
1295
+ 688,
1296
+ 826,
1297
+ 718
1298
+ ],
1299
+ "page_idx": 10
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "W. Paszkowicz. Properties of a genetic algorithm equipped with a dynamic penalty function. Computational Materials Science, 45(1):77–83, 2009. ",
1304
+ "bbox": [
1305
+ 169,
1306
+ 727,
1307
+ 823,
1308
+ 756
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Pavel G. Polishchuk, Timur I. Madzhidov, and Alexandre Varnek. Estimation of the size of druglike chemical space based on gdb-17 data. Journal of Computer-aided Molecular Design, 27(8): 675–679, 2013. ",
1315
+ "bbox": [
1316
+ 171,
1317
+ 765,
1318
+ 823,
1319
+ 808
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Mariya Popova, Olexandr Isayev, and Alexander E Tropsha. Deep reinforcement learning for de novo drug design. Science Advances, 4(7), 2018. ",
1326
+ "bbox": [
1327
+ 168,
1328
+ 818,
1329
+ 823,
1330
+ 848
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "Mariya Popova, Mykhailo Shvets, Junier Oliva, and Olexandr Isayev. Molecularrnn: Generating realistic molecular graphs with optimized properties. arXiv: Learning, 2019. ",
1337
+ "bbox": [
1338
+ 173,
1339
+ 856,
1340
+ 821,
1341
+ 886
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of Chemical Information and Modeling, 50(5):742–754, 2010. ",
1348
+ "bbox": [
1349
+ 174,
1350
+ 895,
1351
+ 820,
1352
+ 924
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Jeffrey S. Rosenthal. Optimal proposal distributions and adaptive mcmc. In Handbook of Markov Chain Monte Carlo, chapter 4. CRC Press, 2011. ",
1359
+ "bbox": [
1360
+ 171,
1361
+ 103,
1362
+ 825,
1363
+ 132
1364
+ ],
1365
+ "page_idx": 11
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Daniel Schwalbe-Koda and Rafael Gomez-Bombarelli. Generative models for automatic chemical ´ design. In Machine Learning Meets Quantum Physics. 2020. ",
1370
+ "bbox": [
1371
+ 173,
1372
+ 140,
1373
+ 823,
1374
+ 170
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Ari Seff, Wenda Zhou, Farhan Damani, Abigail Doyle, and Ryan P. Adams. Discrete object generation with reversible inductive construction. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems, 2019. ",
1381
+ "bbox": [
1382
+ 178,
1383
+ 178,
1384
+ 821,
1385
+ 222
1386
+ ],
1387
+ "page_idx": 11
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Chence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang, Ming Zhang, and Jian Tang. Graphaf: a flow-based autoregressive model for molecular graph generation. In Proceedings of the 8th International Conference on Learning Representations, 2020. ",
1392
+ "bbox": [
1393
+ 176,
1394
+ 229,
1395
+ 823,
1396
+ 273
1397
+ ],
1398
+ "page_idx": 11
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9:2579–2605, 2008. ",
1403
+ "bbox": [
1404
+ 173,
1405
+ 281,
1406
+ 823,
1407
+ 310
1408
+ ],
1409
+ "page_idx": 11
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "Robin Winter, Floriane Montanari, Andreas Steffen, Hans Briem, Frank Noe, and Djork-Arn ´ e Clev- ´ ert. Efficient multi-objective molecular optimization in a continuous latent space. Chemical Science, 10(34):8016–8024, 2019. ",
1414
+ "bbox": [
1415
+ 173,
1416
+ 319,
1417
+ 825,
1418
+ 362
1419
+ ],
1420
+ "page_idx": 11
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "Jiaxuan You, Bowen Liu, Zhitao Ying, Vijay S. Pande, and Jure Leskovec. Graph convolutional policy network for goal-directed molecular graph generation. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems, 2018. ",
1425
+ "bbox": [
1426
+ 173,
1427
+ 371,
1428
+ 823,
1429
+ 414
1430
+ ],
1431
+ "page_idx": 11
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "Chengxi Zang and Fei Wang. Moflow: An invertible flow model for generating molecular graphs. In The 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2020. ",
1436
+ "bbox": [
1437
+ 171,
1438
+ 422,
1439
+ 823,
1440
+ 452
1441
+ ],
1442
+ "page_idx": 11
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Huangzhao Zhang, Hao Zhou, Ning Miao, and Lei Li. Generating fluent adversarial examples for natural languages. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, 2019. ",
1447
+ "bbox": [
1448
+ 174,
1449
+ 460,
1450
+ 821,
1451
+ 503
1452
+ ],
1453
+ "page_idx": 11
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "Maosen Zhang, Nan Jiang, Lei Li, and Yexiang Xue. Language generation via combinatorial constraint satisfaction: A tree search enhanced Monte-Carlo approach. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2020. ",
1458
+ "bbox": [
1459
+ 174,
1460
+ 511,
1461
+ 825,
1462
+ 555
1463
+ ],
1464
+ "page_idx": 11
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "Appendix ",
1469
+ "text_level": 1,
1470
+ "bbox": [
1471
+ 176,
1472
+ 99,
1473
+ 316,
1474
+ 127
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "A PROPERTY SCORES OF SAMPLED MOLECULES",
1481
+ "text_level": 1,
1482
+ "bbox": [
1483
+ 174,
1484
+ 148,
1485
+ 596,
1486
+ 166
1487
+ ],
1488
+ "page_idx": 12
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "The property score distributions of sampled $N = 5 0 0 0$ molecules of the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } + \\mathrm { S A }$ setting are shown in Figure 5. The average of the metrics over the sampling path is shown in Figure 6. ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 189,
1496
+ 823,
1497
+ 218
1498
+ ],
1499
+ "page_idx": 12
1500
+ },
1501
+ {
1502
+ "type": "image",
1503
+ "img_path": "images/0bab267db78f46805300fd4872b6414180a7bb4eb7016542f504b51e5c1dbc4d.jpg",
1504
+ "image_caption": [
1505
+ "Figure 5: Property score distributions of sampled $N = 5 0 0 0$ molecules. The red lines are success thresholds. "
1506
+ ],
1507
+ "image_footnote": [],
1508
+ "bbox": [
1509
+ 218,
1510
+ 258,
1511
+ 766,
1512
+ 587
1513
+ ],
1514
+ "page_idx": 12
1515
+ },
1516
+ {
1517
+ "type": "image",
1518
+ "img_path": "images/beca3f6afb24e575ebdc42f47fe82e3b9ac74328c9f209f14eb9c32c698e18bc.jpg",
1519
+ "image_caption": [
1520
+ "Figure 6: MARS sampling curves (average of 10 runs) for the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } \\substack { + } \\mathrm { S A }$ setting. SR: success rate. Nov: novelty. Div: diversity. PM: product of the three metrics. Shaded area shows the standard deviations over 10 independent runs. "
1521
+ ],
1522
+ "image_footnote": [],
1523
+ "bbox": [
1524
+ 307,
1525
+ 652,
1526
+ 684,
1527
+ 854
1528
+ ],
1529
+ "page_idx": 12
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "B SINGLE OBJECTIVE GENERATION",
1534
+ "text_level": 1,
1535
+ "bbox": [
1536
+ 174,
1537
+ 102,
1538
+ 488,
1539
+ 118
1540
+ ],
1541
+ "page_idx": 13
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "To study whether our proposed method is capable of single-objective molecular generation, we also investigate how MARS performs on the drug-likeness (QED) and the penalized octanol-water partition coefficient (penalized logP) optimization. The experiment results are shown in Table 4. In the experiments, our approach can obtain the best performance on both QED and logP optimization. And especially, MARS outperforms previous methods significantly in the logP generation task. ",
1546
+ "bbox": [
1547
+ 174,
1548
+ 133,
1549
+ 825,
1550
+ 204
1551
+ ],
1552
+ "page_idx": 13
1553
+ },
1554
+ {
1555
+ "type": "table",
1556
+ "img_path": "images/38869c19b2b9442606ff92cbf3fcb87f59c031d4e5ee4f26402f210a0f6c747c.jpg",
1557
+ "table_caption": [
1558
+ "Table 4: Comparison of different methods on single-objective molecular generation. Results of other baselines are taken from Shi et al. (2020) and Nigam et al. (2020). "
1559
+ ],
1560
+ "table_footnote": [],
1561
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">1st</td><td colspan=\"2\">QED</td><td colspan=\"3\">Penalized logP</td></tr><tr><td>2nd</td><td>3rd</td><td>1st</td><td>2nd</td><td>3rd</td></tr><tr><td>GCPN (You et al., 2018)</td><td>0.948</td><td>0.947</td><td>0.946</td><td>7.98</td><td>7.85</td><td>7.80</td></tr><tr><td>JT-VAE (Jin et al., 2018)</td><td>0.925</td><td>0.911</td><td>0.91</td><td>5.30</td><td>4.93</td><td>4.49</td></tr><tr><td>GraphAF (Shi et al.,2020)</td><td>0.948</td><td>0.948</td><td>0.947</td><td>12.23</td><td>11.29</td><td>11.05</td></tr><tr><td>GB-GA (Jensen, 2019)</td><td>/</td><td>/</td><td>/</td><td>15.76± 5.71</td><td>/</td><td>/</td></tr><tr><td>GA+D (Nigam et al., 2020)</td><td>/</td><td>/</td><td>/</td><td>20.72 ± 3.14</td><td>/</td><td>1</td></tr><tr><td>MARS</td><td>0.948</td><td>0.948</td><td>0.948</td><td>44.99</td><td>44.32</td><td>43.81</td></tr></table>",
1562
+ "bbox": [
1563
+ 200,
1564
+ 244,
1565
+ 795,
1566
+ 383
1567
+ ],
1568
+ "page_idx": 13
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "Moreover, from the results, we also can see how these two previously widely used metrics (Jin et al., 2018; You et al., 2018; Popova et al., 2019; Shi et al., 2020; Nigam et al., 2020) are questionable for both scientific study and practical use. Most of the generative methods (i.e., GCPN, JT-VAE, and GraphAF) can produce molecules with the highest possible QED score of 0.948, making the top QED score metric hard to distinguish different methods. As for logP optimization, heuristic search-based (i.e., GB-GA and $\\mathrm { G A } { + } \\mathrm { D }$ ) and sampling-based methods (i.e., MARS) can all easily beat generative models. This is because penalized logP score will prefer larger molecules that generative models can hardly produce. However, such large molecules are unrealistic for practical drug discovery, making the top penalized logP score metric problematic. ",
1573
+ "bbox": [
1574
+ 173,
1575
+ 396,
1576
+ 825,
1577
+ 522
1578
+ ],
1579
+ "page_idx": 13
1580
+ },
1581
+ {
1582
+ "type": "text",
1583
+ "text": "C EXAMPLES OF SAMPLED MOLECULES ",
1584
+ "text_level": 1,
1585
+ "bbox": [
1586
+ 174,
1587
+ 542,
1588
+ 526,
1589
+ 558
1590
+ ],
1591
+ "page_idx": 13
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "We also provide some examples of sampled molecules from the $\\mathrm { G S K } 3 \\beta + \\mathrm { J N K } 3 \\substack { + } \\mathrm { Q E D } \\substack { + } \\mathrm { S A }$ setting. \nThe numbers under molecule graphs are $\\mathrm { G S K } 3 \\beta$ , JNK3, QED, and SA scores, respectively. ",
1596
+ "bbox": [
1597
+ 174,
1598
+ 574,
1599
+ 823,
1600
+ 602
1601
+ ],
1602
+ "page_idx": 13
1603
+ },
1604
+ {
1605
+ "type": "image",
1606
+ "img_path": "images/e2ca1b502a5dc59d5526d2fa276b3cd5948939e14b67c341b48aa673a5e68f71.jpg",
1607
+ "image_caption": [
1608
+ "Figure 7: 40 sampled molecules with highest average property scores. "
1609
+ ],
1610
+ "image_footnote": [],
1611
+ "bbox": [
1612
+ 179,
1613
+ 97,
1614
+ 818,
1615
+ 914
1616
+ ],
1617
+ "page_idx": 14
1618
+ },
1619
+ {
1620
+ "type": "image",
1621
+ "img_path": "images/7f24c808c854564588e8e70bccbc39694c2afb8619644c6d8f6747313d4dc468.jpg",
1622
+ "image_caption": [
1623
+ "Figure 8: 40 sampled molecules with highest $\\mathrm { G S K } 3 \\beta$ scores. "
1624
+ ],
1625
+ "image_footnote": [],
1626
+ "bbox": [
1627
+ 181,
1628
+ 80,
1629
+ 816,
1630
+ 917
1631
+ ],
1632
+ "page_idx": 15
1633
+ },
1634
+ {
1635
+ "type": "image",
1636
+ "img_path": "images/7020507949ef8e7b21f6f22ead012f1062a5e37ddf166e51ed28bb6760af5cc2.jpg",
1637
+ "image_caption": [
1638
+ "Figure 9: 40 sampled molecules with highest JNK3 scores. "
1639
+ ],
1640
+ "image_footnote": [],
1641
+ "bbox": [
1642
+ 187,
1643
+ 103,
1644
+ 808,
1645
+ 911
1646
+ ],
1647
+ "page_idx": 16
1648
+ },
1649
+ {
1650
+ "type": "image",
1651
+ "img_path": "images/a51cc17dd310937444fd3757b6c5aee06bef2b107773be4e0dedb419e4abb89c.jpg",
1652
+ "image_caption": [
1653
+ "Figure 10: 40 sampled molecules with highest QED scores. "
1654
+ ],
1655
+ "image_footnote": [],
1656
+ "bbox": [
1657
+ 179,
1658
+ 82,
1659
+ 805,
1660
+ 917
1661
+ ],
1662
+ "page_idx": 17
1663
+ },
1664
+ {
1665
+ "type": "image",
1666
+ "img_path": "images/a0224a66ffeb2ef57e42d611c5756109dbabef25366aded3e6744d826cad9cf1.jpg",
1667
+ "image_caption": [
1668
+ "Figure 11: 40 sampled molecules with highest SA scores. "
1669
+ ],
1670
+ "image_footnote": [],
1671
+ "bbox": [
1672
+ 178,
1673
+ 80,
1674
+ 816,
1675
+ 919
1676
+ ],
1677
+ "page_idx": 18
1678
+ }
1679
+ ]
parse/train/kHSu4ebxFXY/kHSu4ebxFXY_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/kHSu4ebxFXY/kHSu4ebxFXY_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/qDrpme0FAi/qDrpme0FAi.md ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Mining the Benefits of Two-stage and One-stage HOI Detection
2
+
3
+ Aixi Zhang1∗ Yue Liao2\* Si Liu2† Miao Lu1 Yongliang Wang1 Chen Gao2 Xiaobo Li1 1Alibaba Group 2Beihang University
4
+
5
+ # Abstract
6
+
7
+ Two-stage methods have dominated Human-Object Interaction (HOI) detection for several years. Recently, one-stage HOI detection methods have become popular. In this paper, we aim to explore the essential pros and cons of two-stage and one-stage methods. With this as the goal, we find that conventional two-stage methods mainly suffer from positioning positive interactive human-object pairs, while one-stage methods are challenging to make an appropriate trade-off on multi-task learning, i.e., object detection, and interaction classification. Therefore, a core problem is how to take the essence and discard the dregs from the conventional two types of methods. To this end, we propose a novel one-stage framework with disentangling human-object detection and interaction classification in a cascade manner. In detail, we first design a human-object pair generator based on a state-of-the-art one-stage HOI detector by removing the interaction classification module or head and then design a relatively isolated interaction classifier to classify each human-object pair. Two cascade decoders in our proposed framework can focus on one specific task, detection or interaction classification. In terms of the specific implementation, we adopt a transformer-based HOI detector as our base model. The newly introduced disentangling paradigm outperforms existing methods by a large margin, with a significant relative mAP gain of $9 . 3 2 \%$ on HICO-Det. The source codes are available at https://github.com/YueLiao/CDN.
8
+
9
+ # 1 Introduction
10
+
11
+ The goal of Human-Object Interaction (HOI) detection [2, 20, 6, 18, 7, 8, 17, 3] is to make a machine detailedly understand human activities from a static image. Human activities in this task are abstracted as a set of <human, object, action $\mid >$ HOI triplets. Thus, an HOI detector is required to locate humanobject pairs and classify their corresponding action simultaneously. Based on this definition, we can summarize conventional HOI detection methods into two paradigms, i.e., two-stage methods, and one-stage methods. These two paradigms have made significant progress with the development of deep learning, but both paradigms still have their shortcomings due to their structural design. This paper aims to present a detailed analysis of methods under these two paradigms and propose a solution to mine the benefits of two-stage and one-stage methods.
12
+
13
+ We first take a closer look at the conventional two-stage and one-stage HOI detectors. Conventional two-stage methods [6, 2, 18, 5] are mostly with a serial architecture. As shown in Figure 1 (a), two-stage methods detect humans and objects first and then feeds the human-object pairs, which are generated by matching humans and objects one by one, into an interaction classifier. The serial architecture suffers from locating the interactive human-object pairs under the interference of a large number of negative pairs only based on local region features. Otherwise, the efficiency of two-stage methods is also limited by the serial architecture. To alleviate these problems, one-stage methods [20, 13, 39, 3, 28, 14] are proposed to detect the HOI triplets directly and break HOI detection as multi-task learning, i.e., human-object detection and interaction classification, which is shown in Figure 1(b). Therefore, one-stage methods can easily focus on the interactive human-object pairs and effectively extract corresponding features in an end-to-end manner. However, it is difficult for a single model to make a good trade-off on multi-task learning since human-object detection and interaction classification are two very different tasks, which requires the model to focus on different visual features. As shown in Figure 1(c), though some previous methods [20, 3] design two parallel branches to detect instances and predict interaction respectively, the interaction classification branch still needs to regress additional offsets to associate humans and objects. Thus the interaction branch is also required to make a trade-off between interaction classification and human and object positioning.
14
+
15
+ ![](images/ac35478e213beafd7a15fa28c4e7cd0444a1562cc847359b60b9274bd73b91d5.jpg)
16
+ Figure 1: (a) Two-stage framework, (b) one-stage end-to-end framework, (c) one-stage framework with parallel architecture, and (d) our one-stage framework with a cascade disentangling head.
17
+
18
+ Therefore, the intuitive idea is to take the essence and discard the dregs from the two paradigms. To attain this, we propose a novel end-to-end one-stage framework with disentangling human-object detection and interaction classification in a cascade manner, namely Cascade Disentangling Network (CDN). The original intention of our framework is to keep the advantages of conventional onestage methods, directly and accurately locating the interactive human-object pairs, and bring the advantages of two-stage methods into our one-stage framework, disentangling human-object detection and interaction classification. As shown in Figure 1(d), in our proposed framework, we design a human-object pair decoder based on the one-stage paradigm by removing the interaction classification function, namely HO-PD, and following an isolated interaction classifier. To instantiate our idea with an end-to-end manner, we design the HO-PD based on the previous state-of-the-art one-stage transformer-based HOI detector, HOI-Trans [39] and QPIC [28], where we remove the interaction classification head for each query and make it focus on human-object pairs detection. Otherwise, we design an independent HOI decoder for interaction classification to make the interaction classification unaffected by human-object detection. Therefore, there exists a core problem, i.e., how to link the human-object pair and the corresponding action class. To address this problem, we initialize the query embedding of the HOI decoder with the output of the last layer of the HO-PD. In this case, the HOI decoder is able to learn the corresponding action category under the guidance of the query embedding and free out from the human-object detection task. Moreover, we design a decoupling dynamic re-weighting manner to handle the long-tailed problems in HOI detection.
19
+
20
+ Our contributions can be summarized threefold: (1) We conduct a detailed analysis of two conventional HOI detection paradigms, i.e., two-stage and one-stage. (2) We propose a novel one-stage framework with a cascade disentangling decoder to combine the advantages of two-stage and onestage methods. (3) Our method outperforms previous state-of-the-art methods by a large margin on the HOI detection task, especially achieves a $2 5 . 3 5 \%$ performance gain on rare classes of HICO-Det.
21
+
22
+ # 2 Analysis of Two-stage and One-stage HOI detectors
23
+
24
+ We first introduce a unified formulation for the HOI detection problem. Given a human-centric image $\pmb { I }$ , the model $T ( \cdot )$ is required to predict a set of HOI triplets $\mathbf { \bar { { S } } } = \{ ( b _ { i } ^ { h } , b _ { i } ^ { o } , a _ { i } ) , i \in \{ 1 , 2 , \cdot \cdot \cdot , K \} \}$ , where $b _ { i } ^ { h }$ , $b _ { i } ^ { o }$ and $a _ { i }$ denotes a human bounding-box, an object bounding-box and their corresponding action category, respectively.
25
+
26
+ Two-stage HOI detector. Two-stage detectors can be regarded as an instance-driven manner, detecting instances first and predicting interaction based on the detected instances. The two-stage detector divides $T ( \cdot )$ into two stages, i.e., detection $T _ { d } ( \cdot )$ and interaction classification $T _ { c } ( \cdot )$ . In the first stage, we suppose that $T _ { d } ( \cdot )$ produces $M$ human bounding-boxes and $N$ object bounding-boxes. Here the ‘object’ is a universal object which includes human as one class. Therefore, $T _ { d } ( \cdot )$ generates $M \times N$ human-object pairs. In general, the number of true-positive interactive human-object pairs, denoted as $K ^ { \prime }$ , is much smaller than $M \times N$ . However, in the second stage, $T _ { c } ( \cdot )$ needs to scan all $M \times N$ pairs one by one and predict an action category with its corresponding confidence score. In this case, $T _ { c } ( \cdot )$ is required to inference $M \times N$ times to find $K ^ { \prime }$ interactive pairs from $M \times N$ pairs. We argue that this manner causes three problems. Firstly, these models produce a more additional computational cost, whose time complexity is $\mathcal { O } ( M \times N ) \gg \mathcal { O } ( K ^ { \prime } )$ . Secondly, the imbalance between positive and negative samples makes the model easily overfit to negative samples. Thus the model tends to assign a ‘no-interaction’ class for human-object pairs with very high confidence, suppressing the true-positive samples. Thirdly, the accuracy of interaction classification is influenced by the non-end-to-end pipeline. Because the interaction classification is mostly based on the region features extracted by $T _ { d } ( \cdot )$ , while the core of $T _ { d } ( \cdot )$ is to regress bounding-boxes and its extracted features pay more attention to the edge of regions, thereby such features are not good options for interaction classification, which needs more context. However, it is an excellent property for two-stage methods that disentangling detection and interaction classification makes each stage focus on its task and produce good results in each stage.
27
+
28
+ One-stage HOI detector. As for one-stage methods, they detect all HOI triplets $S$ directly and simultaneously with an end-to-end framework. Such paradigm has greatly relieved the three problems of two-stage methods, especially for efficiency, where the time complexity is reduced to $\mathcal { O } ( K ^ { \prime } )$ . Most one-stage methods are interaction-driven, which directly locate the interaction point [20] or interactive human-object pairs [39], thereby reducing negative sample interference. However, coupling human-object detection and interaction classification limit their performance because it is hard to generate a unified feature representation for two very different tasks. Though the parallel one-stage methods break HOI detection into two parallel branches, their interaction branch still suffers from multi-task learning. Specifically, the optimization target of interaction branch is $\mathcal { P } ( e _ { h } , e _ { o } , a | V )$ , where $e _ { h }$ and $e _ { o }$ are associative embeddings, e.g., offset, to match interaction with human and object respectively. Therefore, even if detection is organized as an independent branch, the interaction branch must position humans and objects for the association. The set-based detectors couple detection and interaction completely, whose optimization function is $\mathcal { P } ( b ^ { h } , b ^ { o } , a | V )$ .
29
+
30
+ Next, we introduce a simple one-stage framework with disentangling human-object detection and interaction classification, namely CDN, to mine the benefits of two-stage and one-stage HOI detectors. Our CDN disentangles the original set-based one-stage optimization function into two cascade decoders. Firstly, we predict human-object pair by ${ \mathcal { P } } ( b ^ { h } , \dot { b } ^ { o } | V )$ . Secondly, we apply an isolated decoder to predict the action category by $\mathcal { P } ( a | V , b ^ { h } , b ^ { o } )$ . More details are in the following.
31
+
32
+ # 3 Method
33
+
34
+ In this section, we will present a detailed introduction to the pipeline of our proposed CDN. In section 3.1, we present an overview of our framework and briefly introduce the pipeline. In section 3.2, we introduce the visual feature extractor. The cascade disentangling HOI decoder is introduced in section 3.3. Section 3.4 introduces a novel dynamic re-weighting mechanism that mitigates the long-tailed problem. The detailed training process and post-processing are discussed in section 3.5.
35
+
36
+ # 3.1 Overview
37
+
38
+ The architecture of our proposed CDN is illustrated in Figure 2. Our CDN is organized in a cascade manner with a visual feature extractor. Given an image, we first follow transformer-based detection methods [1, 39] to apply a CNN followed by a transformer encoder architecture to extract visual features into a sequence. Then we detect HOI triplets in two cascade decoders. Firstly, we apply the Human-Object Pair Decoder (HO-PD) to predict a set of human-object bounding-boxes pairs based on a set of learnable queries. Next, taking the output of the last layer of HO-PD as queries, an isolated interaction decoder is utilized to predict the action category for each query. Finally, the HOI triplets are formed by the output of the above two cascade decoders.
39
+
40
+ # 3.2 Visual Feature Extractor
41
+
42
+ We define the visual feature extractor by combining a CNN and a transformer encoder. Fed with an input image $\pmb { I }$ with shape $( H , W , C )$ , the CNN generates a feature map of shape $( H ^ { ' } , W ^ { ' } , D _ { b } )$
43
+
44
+ ![](images/19c437351374d41e649928a72a1f04db513b4e3046280a5c9c3b2ded7a27550e.jpg)
45
+ Figure 2: The framework of our CDN. It is comprised of three components:Visual Feature Extractor, Human-Object Pair Decoder (HO-PD) and Interaction Decoder. We first apply a CNN-transformer combined architecture to extract sequenced visual features $X _ { s }$ . Then, we divide HOI detection into two cascade transformer-based decoders. Firstly, we regress the human-object bounding-box pairs based on $X _ { s }$ and a set of random-initialized queries $Q _ { d }$ by HO-PD. The interactive score is from a binary classification to determine whether the human-object pair is an interactive pair or not. Secondly, we predict one or many action categories for each predicted human-object pairs, where we take the output of HO-PD $\pmb { Q } _ { d } ^ { o u t }$ to initialize the interaction queries $Q _ { c }$ and aggregate information with $X _ { s }$ . Finally, the HOI triplets are formed by the output of the cascade decoders.
46
+
47
+ Then, $D _ { b }$ is reduced to $D _ { c }$ by a projection convolution layer with a kernel size $1 \times 1$ . Next, a flatten operator is used to generating the flatten feature $\mathbf { \boldsymbol { X } } _ { v } \in \mathcal { R } ^ { ( \boldsymbol { H } ^ { \prime } \times \boldsymbol { W } ^ { \prime } ) \times \boldsymbol { D _ { c } } }$ by collapsing the spatial dimensions into one dimension. This flatten feature is then fed into a transformer encoder and the position encoding $E _ { p o s } \in \mathcal { R } ^ { ( H ^ { ' } \times W ^ { ' } ) \times D _ { c } }$ , which distinguishes the relative position in the sequence $\boldsymbol { X } _ { s } \in \mathcal { R } ^ { ( H ^ { ' } \times W ^ { ' } ) \times D _ { c } }$ . Thanks to the multi-head self-attention mechanism, the transformer encoder produces a feature map with richer contextual information by summarizing global information. The output of the encoder is denoted as global memory with a dimension of $D _ { c }$ .
48
+
49
+ # 3.3 Cascade Disentangling HOI Decoder
50
+
51
+ The cascade disentangling HOI decoder consists of two decoders: Human-Object Pair Decoder (HOPD) and interaction decoder. Both decoders share the same architecture, a transformer-based decoder, with independent weights. In this subsection, we first introduce the general architecture of the decoder and then elaborate on the two decoders in detail, respectively.
52
+
53
+ Transformer-based decoder. We follow the transformer-based object detector DETR [1] to design the basic architecture in our cascade disentangling HOI decoder. We apply $N$ transformer decoder layers for each decoder and equip each decoder layer with several FFN heads for intermediate supervision. Specifically, each decoder layer is comprised of a self-attention module and a multi-head co-attention module. During feed-forward, fed into a set of learnable queries $Q \in \mathcal { R } ^ { N _ { q } \times C _ { q } }$ , each decoder layer first applies a self-attention module on all queries and then conducts a multi-head co-attention operation between queries and the sequenced visual features, and outputs a set of updated queries. For the FFN heads, each head is comprised of one or several MLP branches, and each branch is for a specific task, e.g., regression, or classification. All queries share the same FFN heads. Therefore, each decoder can be simply represented as:
54
+
55
+ $$
56
+ P = f ( Q , X _ { s } , E _ { p o s } ) .
57
+ $$
58
+
59
+ Besides, the number of queries $N _ { q }$ is determined by the number of positive samples of an image.
60
+
61
+ HO-PD. Firstly, we design the HO-PD to predict a set of human-object pairs from the sequenced visual features. To this end, we first randomly initialize a set of learnable queries $Q _ { d } \in \mathcal { R } ^ { N _ { d } ^ { \bullet } \times C _ { q } }$ as HO queries. Then we apply a transformer-based decoder, which takes HO queries $Q _ { d }$ and sequenced visual features as input and applies three FFN heads for each query to predict human bounding-box, object bounding-box, and object class, which form a human-object pair. We also utilize an additional interactive score head to simply determine whether the human-object pair is an interactive pair or not by a binary classification. In this case, $_ { r }$ is instantiated as $P _ { h o }$ , which is consist of a set of human-object pairs $\{ ( b _ { i } ^ { h } , b _ { i } ^ { o } ) , i \in \{ 1 , 2 , \cdot \cdot \cdot , N _ { d } \} \}$ . Thus, HO-PD can be denoted as:
62
+
63
+ $$
64
+ P _ { h o } = f _ { d } ( Q _ { d } , X _ { s } , E _ { p o s } ) .
65
+ $$
66
+
67
+ In addition, we keep the output queries of the last layer of HO-PD as $\pmb { Q } _ { d } ^ { o u t }$ for the following step.
68
+
69
+ Interaction Decoder. Secondly, we propose the interaction decoder to classify the human-object queries and assign one or several action categories for each human-object query. To classify each human-object query one-to-one, we initialize $Q _ { c }$ with the output of HO-PD $\dot { \pmb { Q } } _ { d } ^ { o u t }$ . In this way, $\pmb { Q } _ { d } ^ { o u t }$ can provide prior knowledge to guide $Q _ { c }$ to learn the corresponding action categories for each human-object query. The other components and inputs are the same as HO-PD, which conducts self-attention among queries and co-attention with $X _ { s }$ and $E _ { p o s }$ . The final output is a set of action categories $P _ { c l s } : \{ \bar { a _ { i } } , \bar { i } \in \{ 1 , 2 , \cdots , N _ { d } \} \}$ . Therefore, this process can be formulated as:
70
+
71
+ $$
72
+ P _ { c l s } = f _ { c l s } ( Q _ { d } ^ { o u t } , X _ { s } , E _ { p o s } ) .
73
+ $$
74
+
75
+ In our proposed cascade disentangling HOI decoder, the task of HOI detection is disentangled into two relatively independent steps: human-object pairs detection and interaction classification. Therefore, each step can aggregate more related features to concentrate on its corresponding task.
76
+
77
+ # 3.4 Decoupling Dynamic Re-weighting
78
+
79
+ The HOI datasets usually have long-tail class distribution for both object class and action class. To alleviate the long-tail problem, we design a dynamic re-weighting mechanism for further improvements with a decoupling training strategy. In detail, we first train the whole model with regular losses. Then, we freeze the parameters of the visual feature extractor and only train the cascade disentangling decoders with a relatively small learning rate and the designed dynamic re-weighted losses.
80
+
81
+ During decoupling training, at each iteration, we apply two similar queues to accumulate number of each object class or action class. The queues are used as memory banks to accumulate training samples and truncate the accumulation with length $L _ { Q }$ as sliding windows. In detail, $Q _ { o }$ with length $L _ { Q } ^ { o }$ to accumulate object number $N _ { i } ^ { o }$ for each object class $i \in \{ 1 , 2 , \cdots , C _ { o } \}$ , and $Q _ { a }$ with length $L _ { Q } ^ { a }$ to accumulate interaction number $N _ { i } ^ { a }$ for each action category $i \in \{ 1 , 2 , \cdots , C _ { a } \}$ . The dynamic re-weighting coefficients $w _ { d y n a m i c }$ are presented as follow:
82
+
83
+ $$
84
+ w _ { i } ^ { a } \big | _ { i \in \{ 1 , 2 , \cdots , C _ { a } \} } = \bigg ( \frac { \sum _ { i = 1 } ^ { C _ { a } } N _ { i } } { N _ { i } } \bigg ) ^ { p _ { a } } , \quad w _ { b g } ^ { a } = \bigg ( \frac { \sum _ { i = 1 } ^ { C _ { a } } N _ { i } } { N _ { b g } ^ { a } } \bigg ) ^ { p _ { a } } ,
85
+ $$
86
+
87
+ $$
88
+ w _ { i } ^ { o } \big | _ { i \in \{ 1 , 2 , \cdots , C _ { o } \} } = \bigg ( \frac { \sum _ { i = 1 } ^ { C _ { o } } N _ { i } } { N _ { i } } \bigg ) ^ { p _ { o } } , \quad w _ { b g } ^ { o } = \bigg ( \frac { \sum _ { i = 1 } ^ { C _ { o } } N _ { i } } { N _ { b g } ^ { o } } \bigg ) ^ { p _ { o } } ,
89
+ $$
90
+
91
+ where $N _ { i }$ is the number of accumulated positive samples of category $i$ by the queues $Q _ { o }$ and $Q _ { a }$ , $N _ { b g }$ is the number of accumulated background samples, $C$ is the number of categories, and exponent $p$ is a hyper-parameter that adapts the magnitude of mitigation. Specifically, the weight of background class, $w _ { b g }$ , is designed to balance the positives and negatives. For the stability of the dynamic re-weighted training, the weight coefficients are initialized as $w _ { s t a t i c }$ with those calculated by 4 and 5 using the static number of object and action categories. The final dynamic weights are given as $w = \gamma w _ { s t a t i c } + ( 1 - \gamma ) w _ { d y n a m i c }$ , where $\gamma$ is a smooth factor, given as $m i n ( 0 . \bar { 9 9 9 } ^ { L _ { Q } } , 0 . \bar { 9 } )$ . The factor $\gamma$ transits $w$ from $w _ { s t a t i c }$ to wdynamic with the increasing of $L _ { Q }$ . Finally, the weights are used to the classification losses in a traditional way by multiplying each coefficient to each class and then calculating the summation.
92
+
93
+ # 3.5 Training and Post-processing
94
+
95
+ In this section, we introduce the training and inference processes in detail. Especially, we will introduce a novel Pair-wise Non-Maximal Suppression (PNMS) strategy in the inference process.
96
+
97
+ Training. Following the set-based training process of HOI-Trans [39] and QPIC [28], we first match each ground-truth with its best-matching prediction by the bipartite matching with the Hungarian algorithm. Then the loss is produced between the matched predictions and the corresponding ground truths for the final back-propagation. During matching, we consider the predictions of two cascade decoders together. The loss of CDN follows QPIC which is composed by five parts: the box regression loss $L _ { b }$ , the intersection-over-union loss $L _ { G I o U }$ [26], the interactive score loss $L _ { p }$ , the object class loss $L _ { c } ^ { o }$ , and the action category loss $L _ { c } ^ { a }$ . The target loss is the weighted sum of these parts as:
98
+
99
+ $$
100
+ L = \sum _ { k \in ( h , o ) } \bigl ( \lambda _ { b } L _ { b } ^ { k } + \lambda _ { G I o U } L _ { G I o U } ^ { k } \bigr ) + \lambda _ { p } L _ { p } + \lambda _ { o } L _ { c } ^ { o } + \lambda _ { a } L _ { c } ^ { a } ,
101
+ $$
102
+
103
+ where $\lambda _ { b } , \lambda _ { G I o U } , \lambda _ { p } , \lambda _ { o }$ and $\lambda _ { a }$ are the hyper-parameters for adjusting the weights of each loss.
104
+
105
+ Inference. The inference process is to composite the output of instance-related FFNs and the interaction-related FFN to form HOI triplets. By our cascade disentangling decoder architecture, the instance queries and the interaction queries are one-to-one corresponding, therefore, the five components <human bounding box, object bounding box, object class, interactive score, action class> can be homologous in each of the $N _ { d }$ dimensions per FFN head. Formally, we generate the $i$ -th output prediction as $< b _ { i } ^ { h }$ , $b _ { i } ^ { o }$ , argmax $k ^ { c _ { i } ^ { h o i } ( k ) > }$ . The HOI triplet score $c _ { i } ^ { h o i }$ is given by $c _ { i } ^ { h o i } = c _ { i } ^ { a } c _ { i } ^ { o } c _ { i } ^ { p }$ where $c _ { i } ^ { a }$ and $c _ { i } ^ { o }$ are the scores of interaction and object classification, respectively, and $c _ { i } ^ { p }$ is the interactive score from the interactive FFN head for the query vector being an human-object pair.
106
+
107
+ PNMS. After sorting $c _ { i } ^ { h o i }$ in descending order and generating the top $K$ HOI triplets, we design a pair-wise non-maximal suppression (PNMS) method to further filter out human-object pairs from pair-wise bounding boxes overlapping perspective. For two HOI triplets $m$ and $n$ , the pair-wise overlap $P I o U$ is calculated as:
108
+
109
+ $$
110
+ P I o U ( m , n ) = \Big ( \frac { I ( b _ { m } ^ { h } , b _ { n } ^ { h } ) } { U ( b _ { m } ^ { h } , b _ { n } ^ { h } ) } \Big ) ^ { \alpha } \Big ( \frac { I ( b _ { m } ^ { o } , b _ { n } ^ { o } ) } { U ( b _ { m } ^ { o } , b _ { n } ^ { o } ) } \Big ) ^ { \beta } ,
111
+ $$
112
+
113
+ where the operators $I$ and $U$ compute the intersection and union areas between the two boxes of $m$ and $n$ , respectively. $\alpha$ and $\beta$ are the balancing parameters between humans and objects.
114
+
115
+ # 4 Experiments
116
+
117
+ In this section, we conduct comprehensive experiments to demonstrate the superiority of our designed CDN. In section 4.1, we briefly introduce the experimental benchmarks. Section 4.2 presents implementation details. Next, It is a detailed experimental comparison and analysis of two-stage and one-stage methods in section 4.3. In section 4.4, we compare our methods with the previous state-of-the-art methods. The ablation studies and components analysis are included in 4.5.
118
+
119
+ # 4.1 Datasets and Evaluation Metrics
120
+
121
+ Datasets. We carry out experiments on two widely-used HOI detection benchmarks: HICO-Det [2] and V-COCO [8]. We follow the standard evaluation scheme. HICO-Det consists of 47, 776 Creative Common images from Flickr (38, 118 for training and 9, 658 for test) with more than 150K humanobject pairs. It contains the same 80 object categories as MS-COCO [21] and 117 action categories. The objects and actions form 600 classes of HOI triplets. V-COCO is derived from MS-COCO dataset, which consists of 5, 400 images in the trainval subset and 4, 946 images in the test subset. It has 29 action categories (25 HOIs and 4 body motions) and 80 object categories. For both datasets, one person can interact with multiple objects in different ways at the same time.
122
+
123
+ Evaluation Metrics. Following the standard evaluation [2], we use the mean average precision (mAP) as the evaluation metric. For one positively predicted HOI triplet <human, object, action>, it needs to contain accurate human and object locations (box IoU with reference to GT box is greater than 0.5) and correct object and action categories. Specifically, for HICO-Det, besides the full set of $6 0 0 \mathrm { H O I }$ classes, we also report the mAP over a rare set of 138 HOI classes that have less than 10 training instances and a non-rare set of the other 462 HOI classes. For V-COCO, we report the role mAP for two scenarios: scenario 1 includes the cases even without any objects (for the four action categories of body motions), and scenario 2 ignores these cases.
124
+
125
+ # 4.2 Implementation Details
126
+
127
+ We implement three variant architectures of CDN: CDN-S, CDN-B, and CDN-L, where ‘S’, ‘B’, and ‘L’ denote small, base, and large, respectively. For CDN-S and CDN-B, we adopt ResNet-50 with a 6-layer transformer encoder as the visual feature extractor. For the cascade decoders, CDN-S is equipped with both 3-layer transformers, while CDN-B has a 6-layer transformer for each decoder. CDN-L only replaces the ResNet-50 with ResNet-101 in CDN-B. The reduced dimension size $D _ { c }$ is set to 256. The number of queries $N _ { d }$ is set to 64 for HICO-Det and 100 for V-COCO since the average number of positives for variant human-object pairs per image of HICO-Det is smaller than V-COCO. The human and object box FFNs have 3 linear layers with ReLU, while the object and action category FFNs have one linear layer. The code is provided in supplemental material.
128
+
129
+ During training, we initialize the network with the parameters of DETR [1] trained with the MSCOCO dataset. We set the weight coefficients $\lambda _ { b }$ , $\lambda _ { G I o U }$ , $\lambda _ { p }$ , $\lambda _ { o }$ and $\lambda _ { a }$ to 2.5, 1, 1, 1 and 1, respectively, which are exactly same with QPIC [28]. We optimize the network by AdamW [23] with the weight decay $1 0 ^ { - 4 }$ . We first train the whole model for 90 epochs with a learning rate of $1 0 ^ { - 4 }$ decreased by 10 times at the 60th epoch. Then, during the decoupling training process, we fine-tune the cascade disentangling decoders together with the box, object, and action FFNs for 10 epochs with a learning rate of $1 0 ^ { = 5 }$ . We use both object and action dynamic re-weighting for HICO-Det and only action dynamic re-weighting for V-COCO. The re-weighting parameter $p$ is set to 0.7 for both object and action. The length $L _ { Q }$ of training sample queue $Q$ for both object and action is set to $2 \times N _ { s }$ , where $N _ { s }$ is the sample number of the training set. All experiments are conducted on the 8 Tesla V100 GPUs and CUDA10.2, with a batch size of 16.
130
+
131
+ For validation, we select 100 detection results with the highest scores and then adopt PNMS to further filter results. The threshold, $\alpha$ , and $\beta$ of PNMS are set to 0.7, 1, and 0.5, respectively.
132
+
133
+ # 4.3 Experiment Analysis of Two-stage and One-stage Methods
134
+
135
+ In this part, we introduce a detailed experimental analysis of conventional two-stage and one-stage methods and our proposed CDN from the following three aspects.
136
+
137
+ Human-object Pair Generation. We first explore the quality of the human-object pairs generation between two-stage and one-stage methods. To attain this, we conduct a detailed experiment based on a representative two-stage method iCAN [6]. We first implement a PyTorch version iCAN as the baseline model, denoted as $\mathrm { i } { \mathrm { C A N } } ^ { * }$ , which only applies human and object appearance with a COCO-pretrained Faster-RCNN detector [25]. For a fair comparison, we first fine-tune DETR on HICO-Det for 100 epochs only with the instance detection annotation based on COCO-pretrained weights. Then we combine the detected human and object bounding-boxes, whose confidences are greater than a threshold, one by one to generate human-object pairs denoted as $\mathrm { i } { \mathrm { C A N } } ^ { \dagger }$ in Table 1. We train our CDN only with HO-PD for 100 epochs and get the human-object pairs from the output directly. Then, we graft the human-object pairs to the baseline model to extract box features and utilize the same interaction classifier in the second stage of $\mathrm { i } { \mathrm { C A N } } ^ { * }$ . In this way, we degrade the number of pairs from $M \times N$ to $K ^ { \prime }$ , which means time complexity is reduced from $\mathcal { O } ( M \times N )$ to $\mathcal { O } ( K ^ { \prime } )$ . Primarily, HO-PD significantly promotes mAP from 15.37 to 24.05, as shown in Table 1. This indicates that one-stage methods are much superior in human-object pair generation.
138
+
139
+ <table><tr><td>Strategy</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>iCAN*</td><td>14.16</td><td>12.26</td><td>14.73</td></tr><tr><td>iCAN t</td><td>15.37</td><td>13.23</td><td>16.01</td></tr><tr><td>HO-PD+iCAN*</td><td>24.05</td><td>18.32</td><td>25.76</td></tr><tr><td>QPIC [28]</td><td>29.07</td><td>21.85</td><td>31.23</td></tr><tr><td>CDN-S base</td><td>30.96</td><td>27.02</td><td>32.14</td></tr></table>
140
+
141
+ Table 1: Analysis of Two-stage and Onestage Methods. ∗ denotes our implemented PyTorch version iCAN [6] baseline model. † denotes replacing instance detection boxes given by a HICO-Det fine-tuned DETR detector to extract box features. ‘HO$\mathrm { P D + i C A N ^ { * } }$ ’ denotes replacing original oneby-one generated human-object pairs with our HO-PD generated. ‘CDN-S base’ denotes CDN-S w/o re-weighting and PNMS strategies.
142
+
143
+ ![](images/606fe2d92b8b9bfee5d048534bea82d09e67a83b86212cf8ea8f31e0b33bef19.jpg)
144
+ Figure 3: Visualization of Feature Maps for Queries. Visual attended features for query with top-1 score extracted from the last layer of the decoder of (a) QPIC, (b) HO-PD in CDN, and (c) interaction decoder in CDN. Zoom in for details.
145
+
146
+ Interaction Classification. We aim to study the interaction classification between conventional multi-task one-stage methods and our disentangled one-stage detector. We can regard QPIC [28] as a multi-task version of our CDN. Table 1 shows that our ‘CDN-S base’ (w/o re-weighting and PNMS strategies) has achieved mAP 30.96 with $6 . 5 0 \%$ relative mAP gain compared to QPIC. Especially, our ‘CDN-S base’ significantly outperforms QPIC for rare classes with a $\mathrm { { \bar { 2 3 . 6 6 \% } } }$ improvement. The performance of rare classes can partly reflect the accuracy of interaction classification.
147
+
148
+ Table 2: Performance comparison on the HICO-Det test set. The ‘P’, ‘T’ represent human pose information and the language feature, respectively.
149
+
150
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Detector</td><td rowspan="2">Backbone</td><td rowspan="2">Extra</td><td colspan="3">Default</td><td rowspan="2"></td><td colspan="2">Know Object</td></tr><tr><td>Full</td><td>Rare</td><td>Non-Rare Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>Two-stageMethod:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>InteractNet [7]</td><td>COCO</td><td>ResNet-50-FPN</td><td>X</td><td>9.94</td><td>7.16</td><td>10.77</td><td></td><td></td><td>=</td></tr><tr><td>GPNN [24]</td><td>CoCO</td><td>Res-DCN-152</td><td>X</td><td>13.11</td><td>9.34</td><td>14.23</td><td></td><td></td><td></td></tr><tr><td>iCAN [6]</td><td>CoCO</td><td>ResNet-50</td><td>X</td><td>14.84</td><td>10.45</td><td>16.15</td><td>16.26</td><td>11.33</td><td>17.73</td></tr><tr><td>No-Frills [9]</td><td>CoCo</td><td>ResNet-152</td><td>P</td><td>17.18</td><td>12.17</td><td>18.68</td><td>=</td><td>=</td><td>=</td></tr><tr><td>PMFNet [30]</td><td>COCO</td><td>ResNet-50-FPN</td><td>P</td><td>17.46</td><td>15.65</td><td>18.00</td><td>20.34</td><td>17.47</td><td>21.20</td></tr><tr><td>CHGNet [31]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>17.57</td><td>16.85</td><td>17.78</td><td>21.00</td><td>20.74</td><td>21.08</td></tr><tr><td>DRG [5]</td><td>CoCO</td><td>ResNet-50-FPN</td><td>T</td><td>19.26</td><td>17.74</td><td>19.71</td><td>23.40</td><td>21.75</td><td>23.89</td></tr><tr><td>VCL[12]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>19.43</td><td>16.55</td><td>20.29</td><td>22.00</td><td>19.09</td><td>22.87</td></tr><tr><td>IP-Net [32]</td><td>CoCO</td><td>Hourglass-104</td><td>X</td><td>19.56</td><td>12.79</td><td>21.58</td><td>22.05</td><td>15.77</td><td>23.92</td></tr><tr><td>VSGNet [29]</td><td>CoCO</td><td>ResNet-152</td><td>X</td><td>19.80</td><td>16.05</td><td>20.91</td><td>=</td><td>=</td><td>=</td></tr><tr><td>FCMNet [22]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>20.41</td><td>17.34</td><td>21.56</td><td>22.04</td><td>18.97</td><td>23.12</td></tr><tr><td>ACP[15]</td><td>CoCO</td><td>ResNet-152</td><td>T</td><td>20.59</td><td>15.92</td><td>21.98</td><td></td><td></td><td></td></tr><tr><td>PD-Net [35]</td><td>COCO</td><td>ResNet-152-FPN</td><td>T</td><td>20.81</td><td>15.90</td><td>22.28</td><td>24.78</td><td>18.88</td><td>26.54</td></tr><tr><td>DJ-RN[16]</td><td>COCO</td><td>ResNet-50</td><td>P</td><td>21.34</td><td>18.53</td><td>22.18</td><td>23.69</td><td>20.64</td><td>24.60</td></tr><tr><td>IDN[17]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>23.36</td><td>22.47</td><td>23.63</td><td>26.43</td><td>25.01</td><td>26.85</td></tr><tr><td>One-stage Method:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>UnionDet[13]</td><td>CoCO</td><td>ResNet-50-FPN</td><td>X</td><td>17.58</td><td>11.72</td><td>19.33</td><td>19.76</td><td>14.68</td><td>21.27</td></tr><tr><td>DIRV [4]</td><td>COCo</td><td>EfficientDet-d3</td><td>X</td><td>21.78</td><td>16.38</td><td>23.39</td><td>25.52</td><td>20.84</td><td>26.92</td></tr><tr><td>PPDM-Hourglass [20]</td><td>HICO-DET</td><td>Hourglass-104</td><td>X</td><td>21.94</td><td>13.97</td><td>24.32</td><td>24.81</td><td>17.09</td><td>27.12</td></tr><tr><td>HOI-Trans [39]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>23.46</td><td>16.91</td><td>25.41</td><td>26.15</td><td>19.24</td><td>28.22</td></tr><tr><td>GG-Net [37]</td><td>HICO-DET</td><td>Hourglass-104</td><td>X</td><td>23.47</td><td>16.48</td><td>25.60</td><td>27.36</td><td>20.23</td><td>29.48</td></tr><tr><td>ATL [11]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>23.81</td><td>17.43</td><td>25.72</td><td>27.38</td><td>22.09</td><td>28.96</td></tr><tr><td>HOTR[14]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>25.10</td><td>17.34</td><td>27.42</td><td></td><td>=</td><td></td></tr><tr><td>AS-Net [3]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>28.87</td><td>24.25</td><td>30.25</td><td>31.74</td><td>27.07</td><td>33.14</td></tr><tr><td>QPIC [28]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>29.07</td><td>21.85</td><td>31.23</td><td>31.68</td><td>24.14</td><td>33.93</td></tr><tr><td>CDN-S</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>31.44</td><td>27.39</td><td>32.64</td><td>34.09</td><td>29.63</td><td>35.42</td></tr><tr><td>CDN-B</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>31.78</td><td>27.55</td><td>33.05</td><td>34.53</td><td>29.73</td><td>35.96</td></tr><tr><td>CDN-L</td><td>HICO-DET</td><td>ResNet-101</td><td>×</td><td>32.07</td><td>27.19</td><td>33.53</td><td>34.79</td><td>29.48</td><td>36.38</td></tr></table>
151
+
152
+ Feature Learning. This part discusses the differences in feature learning between the conventional one-stage method, QPIC, and our CDN from a qualitative view. As shown in Figure 3, we visualized the feature maps extracted from the last layer of the decoder of QPIC, the HO-PD, and the interaction decoder in our CDN. We can see that HO-PD and QPIC attend very similar regions, e.g., the boundaries of humans and objects and the human-object contact areas, which are beneficial for locating the interactive human-object pairs. However, the interaction decoder concentrates on humanpose and the regions that contribute to understanding human actions. As for the specific case, for example, for ‘hold cake’, HO-PD in CDN attends to the boundaries of the cake while the interaction decoder in CDN concentrates on the interaction context, i.e., the human’s hands holding the cake. Thus, it shows that CDN disentangles the human-object detection and interaction classification. For ‘ride horse’, HO-PD in CDN emphasizes the overall feature of the human and the horse, and the highlight parts are the edges of the human and horse. For the interaction decoder in CDN, the highlighted part emphasizes the interaction context, i.e., the human carries the rope when riding a horse. Finally, QPIC somehow combines the two highlights, but both are not obvious.
153
+
154
+ # 4.4 Comparison to State-of-the-Art
155
+
156
+ We conduct experiments on HICO-Det and V-COCO benchmarks to verify the effectiveness of our proposed methods. For HICO-Det dataset as shown in Table 2, comparing to the previous state-of-theart two-stage method FCMNet [22] with ResNet-50 as backbone, our CDN-B significantly promotes mAP from 20.41 to 31.78, with a relative gain of $5 5 . 7 1 \%$ . Even compared with PD-Net [36] which adopts extra language feature and DJ-RN [16] which utilizes extra human pose features, CDN-B achieves $5 2 . 7 1 \%$ and $4 8 . 9 2 \%$ relative mAP gains, respectively. When comparing to the one-stage method AS-Net [3] and QPIC [28] which also adopt transformer-based detector architecture, CDN-B attains $1 0 . 0 8 \%$ and $9 . 3 2 \%$ point relative mAP gains, respectively. Table 3 shows the comparisons on V-COCO dataset. CDN-B achieves 62.29 $A P _ { r o l e }$ on Scenario 1 and 64.42 $A P _ { r o l e }$ on Scenario 2, which significantly outperform previous state-of-the-art method QPIC with relative $5 . 9 4 \%$ and $5 . 6 1 \%$ gains, respectively. As for efficiency analysis, CDN-S has almost the same number of parameters and flops compared to QPIC, but CDN-S achieves mAP 31.44 on HICO-Det, $8 . 1 5 \%$ higher than QPIC.
157
+
158
+ Table 3: Performance comparison on the V-COCO test set. The ‘P’, ‘T’ represent the human pose information and the language feature, respectively.
159
+
160
+ <table><tr><td>Method</td><td>Extra</td><td>APST role</td><td>APS2 role</td></tr><tr><td>Two-stage Method:</td><td></td><td></td><td></td></tr><tr><td>InteractNet [7]</td><td>X</td><td>40.0</td><td></td></tr><tr><td>GPNN [24]</td><td>×</td><td>44.0</td><td></td></tr><tr><td>iCAN[6]</td><td>X</td><td>45.3</td><td>52.4</td></tr><tr><td>TIN [18]</td><td>X</td><td>47.8</td><td>54.2</td></tr><tr><td>VCL [12]</td><td>X</td><td>48.3</td><td>-</td></tr><tr><td>DRG [5]</td><td>T</td><td>51.0</td><td>=</td></tr><tr><td>IP-Net [32]</td><td>X</td><td>51.0</td><td>-</td></tr><tr><td>VSGNet [29]</td><td>X</td><td>51.8</td><td>57.0</td></tr><tr><td>PMFNet [30]</td><td>P</td><td>52.0</td><td>=</td></tr><tr><td>PD-Net [35]</td><td>T</td><td>52.6</td><td>=</td></tr><tr><td>CHGNet [31]</td><td>X</td><td>52.7</td><td>=</td></tr><tr><td>FCMNet [22]</td><td>X</td><td>53.1</td><td>=</td></tr><tr><td>ACP [15]</td><td>T</td><td>53.23</td><td>=</td></tr><tr><td>IDN[17]</td><td>X</td><td>53.3</td><td>60.3</td></tr><tr><td>One-stage Method:</td><td></td><td></td><td></td></tr><tr><td>UnionDet[13]</td><td>X</td><td>47.5</td><td>56.2</td></tr><tr><td>HOI-Trans [39]</td><td></td><td>52.9</td><td>1</td></tr><tr><td>AS-Net [3]</td><td>xx</td><td>53.9</td><td>=</td></tr><tr><td>GG-Net [37]</td><td>X</td><td>54.7</td><td>=</td></tr><tr><td>HOTR [14]</td><td>X</td><td>55.2</td><td>64.4</td></tr><tr><td>DIRV [4]</td><td>X</td><td>56.1</td><td>■</td></tr><tr><td>QPIC [28]</td><td>X</td><td>58.8</td><td>61.0</td></tr><tr><td>CDN-S</td><td>X</td><td>61.68</td><td>63.77</td></tr><tr><td>CDN-B</td><td>X</td><td>62.29</td><td>64.42</td></tr><tr><td>CDN-L</td><td>X</td><td>63.91</td><td>65.89</td></tr></table>
161
+
162
+ (a) Strategies: Analysis of improvements by various training strategies.
163
+
164
+ <table><tr><td>Strategy</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>QPIC [28]</td><td>29.07</td><td>21.85</td><td>31.23</td></tr><tr><td>base</td><td>31.06</td><td>26.68</td><td>32.36</td></tr><tr><td>+ re-weighting</td><td>31.38</td><td>27.36</td><td>32.58</td></tr><tr><td>+PNMS</td><td>31.78</td><td>27.55</td><td>33.05</td></tr></table>
165
+
166
+ <table><tr><td>Strategy</td><td>LQ</td><td>p</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>base</td><td>1</td><td>-</td><td>31.06</td><td>26.68</td><td>32.36</td></tr><tr><td>decouple</td><td>-</td><td>1</td><td>30.90</td><td>26.09</td><td>32.33</td></tr><tr><td>static</td><td>-</td><td>0.7</td><td>31.25</td><td>27.12</td><td>32.49</td></tr><tr><td>dynamic</td><td>2×Ns</td><td>0.8</td><td>31.33</td><td>27.45</td><td>32.49</td></tr><tr><td>dynamic</td><td>1×Ns</td><td>0.7</td><td>31.34</td><td>27.48</td><td>32.49</td></tr><tr><td>dynamic</td><td>2×Ns</td><td>0.7</td><td>31.38</td><td>27.36</td><td>32.58</td></tr></table>
167
+
168
+ (b) Dynamic re-weighting: Analysis of decouple training with dynamic re-weighted losses, i.e., different queue length $L _ { Q }$ , coefficient $p$ and dynamic or static.
169
+
170
+ Table 4: Ablation studies of our proposed method on the HICO-Det test set. We carry out all experiments based on the base model (CDN-B).
171
+
172
+ <table><tr><td>α</td><td>β</td><td>thres</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>=</td><td>-</td><td>1</td><td>31.38</td><td>27.36</td><td>32.58</td></tr><tr><td>1</td><td>1</td><td>0.8</td><td>31.66</td><td>27.46</td><td>32.91</td></tr><tr><td>1</td><td>1</td><td>0.7</td><td>31.75</td><td>27.50</td><td>33.03</td></tr><tr><td>1</td><td>0.7</td><td>0.7</td><td>31.77</td><td>27.54</td><td>33.03</td></tr><tr><td>1</td><td>0.5</td><td>0.8</td><td>31.75</td><td>27.51</td><td>33.02</td></tr><tr><td>1</td><td>0.5</td><td>0.7</td><td>31.78</td><td>27.55</td><td>33.05</td></tr></table>
173
+
174
+ (c) PNMS: The effects of different settings of PNMS coefficients, i.e., α, $\beta$ , and thres denotes threshold.
175
+
176
+ # 4.5 Ablation Study
177
+
178
+ In this subsection, we analyse the effectiveness of the proposed strategies and components in detail. All experiments are eventuated on the HICO-Det dataset. The performance of each strategy is evaluated in Table 4a. The five hyper-parameters of the training loss in 7 follow QPIC [28]. The ablation study of the two hyper-parameters in the re-weighting is shown in Table 4b, and that of the three hyper-parameters in the PNMS is shown in Table 4c. We carry out all experiments based on the model CDN-B with ResNet-50 as backbone.
179
+
180
+ Strategies. As shown Table 4a, our pure model without any additional post-processing operation, namely base model, achieves mAP 31.06, promoting 1.99 compared with QPIC [28]. Especially, the base model significantly promotes mAP for rare classes from 21.85 to 26.68 compared to QPIC. It indicates the superiority of the architecture of disentangling human-object detection and interaction classification. The re-weighted training further promotes mAP to 31.38, with a gain of 0.32, and the gain mainly lies in rare classes. Finally, the PNMS further improves mAP to 31.78.
181
+
182
+ Dynamic re-weighting. In this part, we conduct experiments to evaluate the components in the dynamic re-weighted training strategy based on the base model as shown in Table 4b. If we only decouple training without re-weighting, the model achieves mAP 30.90, which is lower than the base model. Therefore, it shows that the performance gain does not come from a longer training process. Adding static weights $w _ { s t a t i c }$ to losses promotes mAP to 31.25. The dynamic re-weighting method improves the re-weighting effect since it captures the real-time weight of each class for each real-time sample during training. Thus it can sufficiently dig information from every single sample to achieve the best overall performance. Our method obtains best result mAP 31.38 when $L _ { Q } = 2 \times N _ { s }$ and $p =$ 0.7.
183
+
184
+ PNMS. On the basis of the model after re-weighted training, we compare the variance by different parameter settings of the PNMS strategy, which is shown in Table $\cdot$ . We fix the human box balance factor $\alpha$ to 1. Then we tune the object box balance factor $\beta$ and the threshold of the $P I o U$ to filter pair-wise boxes. We achieve best performance mAP 31.78 when $\beta = 0 . 5$ and $t h r e s = 0 . 7$ . The fact that $\beta$ is smaller than $\alpha$ , indicates that the overall performance is more sensitive to human boxes compared with object boxes in our framework.
185
+
186
+ # 5 Related Work
187
+
188
+ Two-stage Methods. Most previous HOI detectors are with a two-stage paradigm [6, 2, 18, 5]. Firstly, a fine-tuned detector [25, 10] is applied to detect the instances. Secondly, generating the human-object pairs by matching detected human and object one by one, and then feeding them into an interaction classifier. To improve the interaction classification, some extra features were applied, such as human pose [27, 19, 9], human parts [38, 30, 16], and language features [33, 5, 22, 15]. Besides, some two-stage methods [24, 29, 31, 34, 38] applied graph neural networks to model the interactions.
189
+
190
+ One-stage Methods. One-stage methods detect HOI triplets directly [20, 32, 13, 39, 3, 28, 14]. In detail, [20, 32] proposed a point-based interaction detection method which performs inference at each interaction key point. [13] proposed an anchor-based method to predict the interactions for each human-object union box. Recently, set-based detection approach has been proposed to handle HOI detection as a set prediction problem [39, 3, 28]. Specifically, [39, 28] designed a transformer encoder-decoder architecture to directly predict HOI detection results in an end-to-end manner, while [3] utilized parallel instance and interaction decoder branches to adaptively aggregate the HOI triplets.
191
+
192
+ # 6 Conclusion
193
+
194
+ In this paper, we explore the essential pros and cons of two-stage and one-stage HOI detection in detail. We propose a novel one-stage framework with disentangling human-object detection and interaction classification in a cascade manner. Our CDN can keep the advantage of one-stage methods, directly and accurately locating the interactive human-object pairs, and bring the benefit of two-stage methods, disentangling detection and interaction classification. Our novel paradigm has outperformed previous methods by margins. However, we only implement a specific version to mine the benefits of two-stage and one-stage methods. In the future, we plan to apply our idea with more general one-stage methods and introduce more advantages of two-stage methods into the one-stage framework.
195
+
196
+ # Potential Negative Societal Impacts
197
+
198
+ Similar to many other AI technologies, our proposed CDN itself is harmless. However, someone might utilize it for military purposes or apply it to any other malicious human activities detection, which might negatively impact society. Therefore, we encourage well-intentioned consideration before adopting our technique.
199
+
200
+ # Acknowledgments and Disclosure of Funding
201
+
202
+ This research is partly supported by National Natural Science Foundation of China (Grant 61876177), Beijing Natural Science Foundation (4202034), Fundamental Research Funds for the Central Universities, Zhejiang Lab (No. 2019KD0AB04).
203
+
204
+ # References
205
+
206
+ [1] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020. 3, 4, 7
207
+ [2] Yu-Wei Chao, Yunfan Liu, Xieyang Liu, Huayi Zeng, and Jia Deng. Learning to detect human-object interactions. In WACV, 2018. 1, 6, 10
208
+ [3] Mingfei Chen, Yue Liao, Si Liu, Zhiyuan Chen, Fei Wang, and Chen Qian. Reformulating hoi detection as adaptive set prediction. In CVPR, 2021. 1, 2, 8, 9, 10
209
+ [4] Hao-Shu Fang, Yichen Xie, Dian Shao, and Cewu Lu. Dirv: Dense interaction region voting for end-to-end human-object interaction detection. In AAAI, 2021. 8, 9
210
+ [5] Chen Gao, Jiarui Xu, Yuliang Zou, and Jia-Bin Huang. Drg: Dual relation graph for human-object interaction detection. In ECCV, 2020. 1, 8, 9, 10
211
+ [6] Chen Gao, Yuliang Zou, and Jia-Bin Huang. ican: Instance-centric attention network for human-object interaction detection. In BMVC, 2018. 1, 7, 8, 9, 10
212
+ [7] Georgia Gkioxari, Ross Girshick, Piotr Dollár, and Kaiming He. Detecting and recognizing human-object interactions. In CVPR, 2018. 1, 8, 9
213
+ [8] Saurabh Gupta and Jitendra Malik. Visual semantic role labeling. arXiv preprint arXiv:1505.04474, 2015. 1, 6
214
+ [9] Tanmay Gupta, Alexander Schwing, and Derek Hoiem. No-frills human-object interaction detection: Factorization, layout encodings, and training techniques. In ICCV, 2019. 8, 10
215
+ [10] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In ICCV, pages 2961–2969, 2017. 10
216
+ [11] Zhi Hou, Yu Baosheng, Yu Qiao, Xiaojiang Peng, and Dacheng Tao. Affordance transfer learning for human-object interaction detection. In CVPR, 2021. 8
217
+ [12] Zhi Hou, Xiaojiang Peng, Yu Qiao, and Dacheng Tao. Visual compositional learning for human-object interaction detection. In ECCV, 2020. 8, 9
218
+ [13] Bumsoo Kim, Taeho Choi, Jaewoo Kang, and Hyunwoo J. Kim. Uniondet: Union-level detector towards real-time human-object interaction detection. In ECCV, 2020. 2, 8, 9, 10
219
+ [14] Bumsoo Kim, Junhyun Lee, Jaewoo Kang, Eun-Sol Kim, and Hyunwoo J. Kim. Hotr: End-to-end human-object interaction detection with transformers. In CVPR, 2021. 2, 8, 9, 10
220
+ [15] Dong-Jin Kim, Xiao Sun, Jinsoo Choi, Stephen Lin, and In So Kweon. Detecting human-object interactions with action co-occurrence priors. In ECCV, 2020. 8, 9, 10
221
+ [16] Yong-Lu Li, Xinpeng Liu, Han Lu, Shiyi Wang, Junqi Liu, Jiefeng Li, and Cewu Lu. Detailed 2d-3d joint representation for human-object interaction. In CVPR, 2020. 8, 10
222
+ [17] Yong-Lu Li, Xinpeng Liu, Xiaoqian Wu, Yizhuo Li, and Cewu Lu. Hoi analysis: Integrating and decomposing human-object interaction. Advances in Neural Information Processing Systems, 33, 2020. 1, 8, 9
223
+ [18] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yan-Feng Wang, and Cewu Lu. Transferable interactiveness prior for human-object interaction detection. In CVPR, 2019. 1, 9, 10
224
+ [19] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yanfeng Wang, and Cewu Lu. Transferable interactiveness knowledge for human-object interaction detection. In CVPR, 2019. 10
225
+ [20] Yue Liao, Si Liu, Fei Wang, Yanjie Chen, Chen Qian, and Jiashi Feng. Ppdm: Parallel point detection and matching for real-time human-object interaction detection. In CVPR, 2020. 1, 2, 3, 8, 10
226
+ [21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 6
227
+ [22] Yang Liu, Qingchao Chen, and Andrew Zisserman. Amplifying key cues for human-object-interaction detection. In ECCV, 2020. 8, 9, 10
228
+ [23] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2018. 7
229
+ [24] Siyuan Qi, Wenguan Wang, Baoxiong Jia, Jianbing Shen, and Song-Chun Zhu. Learning human-object interactions by graph parsing neural networks. In ECCV, 2018. 8, 9, 10
230
+ [25] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. 7, 10
231
+ [26] Hamid Rezatofighi, Nathan Tsoi, JunYoung Gwak, Amir Sadeghian, Ian Reid, and Silvio Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In CVPR, 2019. 6
232
+ [27] Liyue Shen, Serena Yeung, Judy Hoffman, Greg Mori, and Li Fei-Fei. Scaling human-object interaction recognition through zero-shot learning. In WACV, 2018. 10
233
+ [28] Masato Tamura, Hiroki Ohashi, and Tomoaki Yoshinaga. Qpic: Query-based pairwise human-object interaction detection with image-wide contextual information. In CVPR, 2021. 2, 5, 7, 8, 9, 10
234
+ [29] Oytun Ulutan, A S M Iftekhar, and B. S. Manjunath. Vsgnet: Spatial attention network for detecting human object interactions using graph convolutions. In CVPR, 2020. 8, 9, 10
235
+ [30] Bo Wan, Desen Zhou, Yongfei Liu, Rongjie Li, and Xuming He. Pose-aware multi-level feature network for human object interaction detection. In ICCV, 2019. 8, 9, 10
236
+ [31] Hai Wang, Wei-shi Zheng, and Ling Yingbiao. Contextual heterogeneous graph network for human-object interaction detection. In ECCV, 2020. 8, 9, 10
237
+ [32] Tiancai Wang, Tong Yang, Martin Danelljan, Fahad Shahbaz Khan, Xiangyu Zhang, and Jian Sun. Learning human-object interaction detection using interaction points. In CVPR, 2020. 8, 9, 10
238
+ [33] Bingjie Xu, Yongkang Wong, Junnan Li, Qi Zhao, and Mohan S. Kankanhalli. Learning to detect human-object interactions with knowledge. In CVPR, 2019. 10
239
+ [34] Dongming Yang and Yuexian Zou. A graph-based interactive reasoning for human-object interaction detection. In IJCAI, 2020. 10
240
+ [35] Xubin Zhong, Changxing Ding, Xian Qu, and Dacheng Tao. Polysemy deciphering network for humanobject interaction detection. In ECCV, 2020. 8, 9
241
+ [36] Xubin Zhong, Changxing Ding, Xian Qu, and Dacheng Tao. Polysemy deciphering network for robust human–object interaction detection. IJCV, 2021. 8
242
+ [37] Xubin Zhong, Xian Qu, Changxing Ding, and Dacheng Tao. Glance and gaze: Inferring action-aware points for one-stage human-object interaction detection. In CVPR, 2021. 8, 9
243
+ [38] Penghao Zhou and Mingmin Chi. Relation parsing neural network for human-object interaction detection. In ICCV, 2019. 10
244
+ [39] Cheng Zou, Bohan Wang, Yue Hu, Junqi Liu, Qian Wu, Yu Zhao, Boxun Li, Chenguang Zhang, Chi Zhang, Yichen Wei, and Jian Sun. End-to-end human object interaction detection with hoi transformer. In CVPR, 2021. 2, 3, 5, 8, 9, 10
parse/train/qDrpme0FAi/qDrpme0FAi_content_list.json ADDED
@@ -0,0 +1,1168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Mining the Benefits of Two-stage and One-stage HOI Detection ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 210,
8
+ 122,
9
+ 787,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Aixi Zhang1∗ Yue Liao2\\* Si Liu2† Miao Lu1 Yongliang Wang1 Chen Gao2 Xiaobo Li1 1Alibaba Group 2Beihang University ",
17
+ "bbox": [
18
+ 295,
19
+ 219,
20
+ 697,
21
+ 266
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 301,
32
+ 535,
33
+ 318
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Two-stage methods have dominated Human-Object Interaction (HOI) detection for several years. Recently, one-stage HOI detection methods have become popular. In this paper, we aim to explore the essential pros and cons of two-stage and one-stage methods. With this as the goal, we find that conventional two-stage methods mainly suffer from positioning positive interactive human-object pairs, while one-stage methods are challenging to make an appropriate trade-off on multi-task learning, i.e., object detection, and interaction classification. Therefore, a core problem is how to take the essence and discard the dregs from the conventional two types of methods. To this end, we propose a novel one-stage framework with disentangling human-object detection and interaction classification in a cascade manner. In detail, we first design a human-object pair generator based on a state-of-the-art one-stage HOI detector by removing the interaction classification module or head and then design a relatively isolated interaction classifier to classify each human-object pair. Two cascade decoders in our proposed framework can focus on one specific task, detection or interaction classification. In terms of the specific implementation, we adopt a transformer-based HOI detector as our base model. The newly introduced disentangling paradigm outperforms existing methods by a large margin, with a significant relative mAP gain of $9 . 3 2 \\%$ on HICO-Det. The source codes are available at https://github.com/YueLiao/CDN. ",
40
+ "bbox": [
41
+ 232,
42
+ 333,
43
+ 766,
44
+ 594
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 621,
55
+ 310,
56
+ 637
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The goal of Human-Object Interaction (HOI) detection [2, 20, 6, 18, 7, 8, 17, 3] is to make a machine detailedly understand human activities from a static image. Human activities in this task are abstracted as a set of <human, object, action $\\mid >$ HOI triplets. Thus, an HOI detector is required to locate humanobject pairs and classify their corresponding action simultaneously. Based on this definition, we can summarize conventional HOI detection methods into two paradigms, i.e., two-stage methods, and one-stage methods. These two paradigms have made significant progress with the development of deep learning, but both paradigms still have their shortcomings due to their structural design. This paper aims to present a detailed analysis of methods under these two paradigms and propose a solution to mine the benefits of two-stage and one-stage methods. ",
63
+ "bbox": [
64
+ 174,
65
+ 648,
66
+ 826,
67
+ 773
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We first take a closer look at the conventional two-stage and one-stage HOI detectors. Conventional two-stage methods [6, 2, 18, 5] are mostly with a serial architecture. As shown in Figure 1 (a), two-stage methods detect humans and objects first and then feeds the human-object pairs, which are generated by matching humans and objects one by one, into an interaction classifier. The serial architecture suffers from locating the interactive human-object pairs under the interference of a large number of negative pairs only based on local region features. Otherwise, the efficiency of two-stage methods is also limited by the serial architecture. To alleviate these problems, one-stage methods [20, 13, 39, 3, 28, 14] are proposed to detect the HOI triplets directly and break HOI detection as multi-task learning, i.e., human-object detection and interaction classification, which is shown in Figure 1(b). Therefore, one-stage methods can easily focus on the interactive human-object pairs and effectively extract corresponding features in an end-to-end manner. However, it is difficult for a single model to make a good trade-off on multi-task learning since human-object detection and interaction classification are two very different tasks, which requires the model to focus on different visual features. As shown in Figure 1(c), though some previous methods [20, 3] design two parallel branches to detect instances and predict interaction respectively, the interaction classification branch still needs to regress additional offsets to associate humans and objects. Thus the interaction branch is also required to make a trade-off between interaction classification and human and object positioning. ",
74
+ "bbox": [
75
+ 174,
76
+ 780,
77
+ 825,
78
+ 863
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/ac35478e213beafd7a15fa28c4e7cd0444a1562cc847359b60b9274bd73b91d5.jpg",
85
+ "image_caption": [
86
+ "Figure 1: (a) Two-stage framework, (b) one-stage end-to-end framework, (c) one-stage framework with parallel architecture, and (d) our one-stage framework with a cascade disentangling head. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 173,
91
+ 87,
92
+ 823,
93
+ 207
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 261,
103
+ 825,
104
+ 412
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Therefore, the intuitive idea is to take the essence and discard the dregs from the two paradigms. To attain this, we propose a novel end-to-end one-stage framework with disentangling human-object detection and interaction classification in a cascade manner, namely Cascade Disentangling Network (CDN). The original intention of our framework is to keep the advantages of conventional onestage methods, directly and accurately locating the interactive human-object pairs, and bring the advantages of two-stage methods into our one-stage framework, disentangling human-object detection and interaction classification. As shown in Figure 1(d), in our proposed framework, we design a human-object pair decoder based on the one-stage paradigm by removing the interaction classification function, namely HO-PD, and following an isolated interaction classifier. To instantiate our idea with an end-to-end manner, we design the HO-PD based on the previous state-of-the-art one-stage transformer-based HOI detector, HOI-Trans [39] and QPIC [28], where we remove the interaction classification head for each query and make it focus on human-object pairs detection. Otherwise, we design an independent HOI decoder for interaction classification to make the interaction classification unaffected by human-object detection. Therefore, there exists a core problem, i.e., how to link the human-object pair and the corresponding action class. To address this problem, we initialize the query embedding of the HOI decoder with the output of the last layer of the HO-PD. In this case, the HOI decoder is able to learn the corresponding action category under the guidance of the query embedding and free out from the human-object detection task. Moreover, we design a decoupling dynamic re-weighting manner to handle the long-tailed problems in HOI detection. ",
111
+ "bbox": [
112
+ 173,
113
+ 419,
114
+ 826,
115
+ 681
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Our contributions can be summarized threefold: (1) We conduct a detailed analysis of two conventional HOI detection paradigms, i.e., two-stage and one-stage. (2) We propose a novel one-stage framework with a cascade disentangling decoder to combine the advantages of two-stage and onestage methods. (3) Our method outperforms previous state-of-the-art methods by a large margin on the HOI detection task, especially achieves a $2 5 . 3 5 \\%$ performance gain on rare classes of HICO-Det. ",
122
+ "bbox": [
123
+ 174,
124
+ 688,
125
+ 825,
126
+ 758
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 Analysis of Two-stage and One-stage HOI detectors ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 174,
136
+ 775,
137
+ 635,
138
+ 794
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "We first introduce a unified formulation for the HOI detection problem. Given a human-centric image $\\pmb { I }$ , the model $T ( \\cdot )$ is required to predict a set of HOI triplets $\\mathbf { \\bar { { S } } } = \\{ ( b _ { i } ^ { h } , b _ { i } ^ { o } , a _ { i } ) , i \\in \\{ 1 , 2 , \\cdot \\cdot \\cdot , K \\} \\}$ , where $b _ { i } ^ { h }$ , $b _ { i } ^ { o }$ and $a _ { i }$ denotes a human bounding-box, an object bounding-box and their corresponding action category, respectively. ",
145
+ "bbox": [
146
+ 174,
147
+ 805,
148
+ 825,
149
+ 863
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Two-stage HOI detector. Two-stage detectors can be regarded as an instance-driven manner, detecting instances first and predicting interaction based on the detected instances. The two-stage detector divides $T ( \\cdot )$ into two stages, i.e., detection $T _ { d } ( \\cdot )$ and interaction classification $T _ { c } ( \\cdot )$ . In the first stage, we suppose that $T _ { d } ( \\cdot )$ produces $M$ human bounding-boxes and $N$ object bounding-boxes. Here the ‘object’ is a universal object which includes human as one class. Therefore, $T _ { d } ( \\cdot )$ generates $M \\times N$ human-object pairs. In general, the number of true-positive interactive human-object pairs, denoted as $K ^ { \\prime }$ , is much smaller than $M \\times N$ . However, in the second stage, $T _ { c } ( \\cdot )$ needs to scan all $M \\times N$ pairs one by one and predict an action category with its corresponding confidence score. In this case, $T _ { c } ( \\cdot )$ is required to inference $M \\times N$ times to find $K ^ { \\prime }$ interactive pairs from $M \\times N$ pairs. We argue that this manner causes three problems. Firstly, these models produce a more additional computational cost, whose time complexity is $\\mathcal { O } ( M \\times N ) \\gg \\mathcal { O } ( K ^ { \\prime } )$ . Secondly, the imbalance between positive and negative samples makes the model easily overfit to negative samples. Thus the model tends to assign a ‘no-interaction’ class for human-object pairs with very high confidence, suppressing the true-positive samples. Thirdly, the accuracy of interaction classification is influenced by the non-end-to-end pipeline. Because the interaction classification is mostly based on the region features extracted by $T _ { d } ( \\cdot )$ , while the core of $T _ { d } ( \\cdot )$ is to regress bounding-boxes and its extracted features pay more attention to the edge of regions, thereby such features are not good options for interaction classification, which needs more context. However, it is an excellent property for two-stage methods that disentangling detection and interaction classification makes each stage focus on its task and produce good results in each stage. ",
156
+ "bbox": [
157
+ 174,
158
+ 869,
159
+ 825,
160
+ 911
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 173,
169
+ 90,
170
+ 825,
171
+ 325
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "One-stage HOI detector. As for one-stage methods, they detect all HOI triplets $S$ directly and simultaneously with an end-to-end framework. Such paradigm has greatly relieved the three problems of two-stage methods, especially for efficiency, where the time complexity is reduced to $\\mathcal { O } ( K ^ { \\prime } )$ . Most one-stage methods are interaction-driven, which directly locate the interaction point [20] or interactive human-object pairs [39], thereby reducing negative sample interference. However, coupling human-object detection and interaction classification limit their performance because it is hard to generate a unified feature representation for two very different tasks. Though the parallel one-stage methods break HOI detection into two parallel branches, their interaction branch still suffers from multi-task learning. Specifically, the optimization target of interaction branch is $\\mathcal { P } ( e _ { h } , e _ { o } , a | V )$ , where $e _ { h }$ and $e _ { o }$ are associative embeddings, e.g., offset, to match interaction with human and object respectively. Therefore, even if detection is organized as an independent branch, the interaction branch must position humans and objects for the association. The set-based detectors couple detection and interaction completely, whose optimization function is $\\mathcal { P } ( b ^ { h } , b ^ { o } , a | V )$ . ",
178
+ "bbox": [
179
+ 174,
180
+ 332,
181
+ 825,
182
+ 512
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Next, we introduce a simple one-stage framework with disentangling human-object detection and interaction classification, namely CDN, to mine the benefits of two-stage and one-stage HOI detectors. Our CDN disentangles the original set-based one-stage optimization function into two cascade decoders. Firstly, we predict human-object pair by ${ \\mathcal { P } } ( b ^ { h } , \\dot { b } ^ { o } | V )$ . Secondly, we apply an isolated decoder to predict the action category by $\\mathcal { P } ( a | V , b ^ { h } , b ^ { o } )$ . More details are in the following. ",
189
+ "bbox": [
190
+ 174,
191
+ 518,
192
+ 825,
193
+ 589
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "3 Method ",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 174,
203
+ 603,
204
+ 271,
205
+ 619
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "In this section, we will present a detailed introduction to the pipeline of our proposed CDN. In section 3.1, we present an overview of our framework and briefly introduce the pipeline. In section 3.2, we introduce the visual feature extractor. The cascade disentangling HOI decoder is introduced in section 3.3. Section 3.4 introduces a novel dynamic re-weighting mechanism that mitigates the long-tailed problem. The detailed training process and post-processing are discussed in section 3.5. ",
212
+ "bbox": [
213
+ 174,
214
+ 628,
215
+ 825,
216
+ 698
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 Overview ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 715,
227
+ 279,
228
+ 729
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "The architecture of our proposed CDN is illustrated in Figure 2. Our CDN is organized in a cascade manner with a visual feature extractor. Given an image, we first follow transformer-based detection methods [1, 39] to apply a CNN followed by a transformer encoder architecture to extract visual features into a sequence. Then we detect HOI triplets in two cascade decoders. Firstly, we apply the Human-Object Pair Decoder (HO-PD) to predict a set of human-object bounding-boxes pairs based on a set of learnable queries. Next, taking the output of the last layer of HO-PD as queries, an isolated interaction decoder is utilized to predict the action category for each query. Finally, the HOI triplets are formed by the output of the above two cascade decoders. ",
235
+ "bbox": [
236
+ 174,
237
+ 736,
238
+ 825,
239
+ 847
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "3.2 Visual Feature Extractor ",
246
+ "text_level": 1,
247
+ "bbox": [
248
+ 174,
249
+ 861,
250
+ 387,
251
+ 876
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "We define the visual feature extractor by combining a CNN and a transformer encoder. Fed with an input image $\\pmb { I }$ with shape $( H , W , C )$ , the CNN generates a feature map of shape $( H ^ { ' } , W ^ { ' } , D _ { b } )$ ",
258
+ "bbox": [
259
+ 174,
260
+ 881,
261
+ 823,
262
+ 911
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "image",
268
+ "img_path": "images/19c437351374d41e649928a72a1f04db513b4e3046280a5c9c3b2ded7a27550e.jpg",
269
+ "image_caption": [
270
+ "Figure 2: The framework of our CDN. It is comprised of three components:Visual Feature Extractor, Human-Object Pair Decoder (HO-PD) and Interaction Decoder. We first apply a CNN-transformer combined architecture to extract sequenced visual features $X _ { s }$ . Then, we divide HOI detection into two cascade transformer-based decoders. Firstly, we regress the human-object bounding-box pairs based on $X _ { s }$ and a set of random-initialized queries $Q _ { d }$ by HO-PD. The interactive score is from a binary classification to determine whether the human-object pair is an interactive pair or not. Secondly, we predict one or many action categories for each predicted human-object pairs, where we take the output of HO-PD $\\pmb { Q } _ { d } ^ { o u t }$ to initialize the interaction queries $Q _ { c }$ and aggregate information with $X _ { s }$ . Finally, the HOI triplets are formed by the output of the cascade decoders. "
271
+ ],
272
+ "image_footnote": [],
273
+ "bbox": [
274
+ 176,
275
+ 88,
276
+ 821,
277
+ 261
278
+ ],
279
+ "page_idx": 3
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Then, $D _ { b }$ is reduced to $D _ { c }$ by a projection convolution layer with a kernel size $1 \\times 1$ . Next, a flatten operator is used to generating the flatten feature $\\mathbf { \\boldsymbol { X } } _ { v } \\in \\mathcal { R } ^ { ( \\boldsymbol { H } ^ { \\prime } \\times \\boldsymbol { W } ^ { \\prime } ) \\times \\boldsymbol { D _ { c } } }$ by collapsing the spatial dimensions into one dimension. This flatten feature is then fed into a transformer encoder and the position encoding $E _ { p o s } \\in \\mathcal { R } ^ { ( H ^ { ' } \\times W ^ { ' } ) \\times D _ { c } }$ , which distinguishes the relative position in the sequence $\\boldsymbol { X } _ { s } \\in \\mathcal { R } ^ { ( H ^ { ' } \\times W ^ { ' } ) \\times D _ { c } }$ . Thanks to the multi-head self-attention mechanism, the transformer encoder produces a feature map with richer contextual information by summarizing global information. The output of the encoder is denoted as global memory with a dimension of $D _ { c }$ . ",
284
+ "bbox": [
285
+ 173,
286
+ 415,
287
+ 825,
288
+ 525
289
+ ],
290
+ "page_idx": 3
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "3.3 Cascade Disentangling HOI Decoder ",
295
+ "text_level": 1,
296
+ "bbox": [
297
+ 176,
298
+ 536,
299
+ 467,
300
+ 553
301
+ ],
302
+ "page_idx": 3
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "The cascade disentangling HOI decoder consists of two decoders: Human-Object Pair Decoder (HOPD) and interaction decoder. Both decoders share the same architecture, a transformer-based decoder, with independent weights. In this subsection, we first introduce the general architecture of the decoder and then elaborate on the two decoders in detail, respectively. ",
307
+ "bbox": [
308
+ 174,
309
+ 558,
310
+ 825,
311
+ 613
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Transformer-based decoder. We follow the transformer-based object detector DETR [1] to design the basic architecture in our cascade disentangling HOI decoder. We apply $N$ transformer decoder layers for each decoder and equip each decoder layer with several FFN heads for intermediate supervision. Specifically, each decoder layer is comprised of a self-attention module and a multi-head co-attention module. During feed-forward, fed into a set of learnable queries $Q \\in \\mathcal { R } ^ { N _ { q } \\times C _ { q } }$ , each decoder layer first applies a self-attention module on all queries and then conducts a multi-head co-attention operation between queries and the sequenced visual features, and outputs a set of updated queries. For the FFN heads, each head is comprised of one or several MLP branches, and each branch is for a specific task, e.g., regression, or classification. All queries share the same FFN heads. Therefore, each decoder can be simply represented as: ",
318
+ "bbox": [
319
+ 173,
320
+ 618,
321
+ 825,
322
+ 757
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/1efe60a220ed232afcd20f07a092bcf883e96f13711a0a7d027ccbc9f163cadf.jpg",
329
+ "text": "$$\nP = f ( Q , X _ { s } , E _ { p o s } ) .\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 423,
333
+ 763,
334
+ 573,
335
+ 781
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "Besides, the number of queries $N _ { q }$ is determined by the number of positive samples of an image. ",
342
+ "bbox": [
343
+ 171,
344
+ 792,
345
+ 805,
346
+ 809
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "HO-PD. Firstly, we design the HO-PD to predict a set of human-object pairs from the sequenced visual features. To this end, we first randomly initialize a set of learnable queries $Q _ { d } \\in \\mathcal { R } ^ { N _ { d } ^ { \\bullet } \\times C _ { q } }$ as HO queries. Then we apply a transformer-based decoder, which takes HO queries $Q _ { d }$ and sequenced visual features as input and applies three FFN heads for each query to predict human bounding-box, object bounding-box, and object class, which form a human-object pair. We also utilize an additional interactive score head to simply determine whether the human-object pair is an interactive pair or not by a binary classification. In this case, $_ { r }$ is instantiated as $P _ { h o }$ , which is consist of a set of human-object pairs $\\{ ( b _ { i } ^ { h } , b _ { i } ^ { o } ) , i \\in \\{ 1 , 2 , \\cdot \\cdot \\cdot , N _ { d } \\} \\}$ . Thus, HO-PD can be denoted as: ",
353
+ "bbox": [
354
+ 173,
355
+ 814,
356
+ 825,
357
+ 911
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "",
364
+ "bbox": [
365
+ 173,
366
+ 89,
367
+ 727,
368
+ 107
369
+ ],
370
+ "page_idx": 4
371
+ },
372
+ {
373
+ "type": "equation",
374
+ "img_path": "images/3daec2ea432925b8d0d52bd951e1c0d9294eabae9d596671248eaac28628d8fa.jpg",
375
+ "text": "$$\nP _ { h o } = f _ { d } ( Q _ { d } , X _ { s } , E _ { p o s } ) .\n$$",
376
+ "text_format": "latex",
377
+ "bbox": [
378
+ 410,
379
+ 113,
380
+ 588,
381
+ 131
382
+ ],
383
+ "page_idx": 4
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "In addition, we keep the output queries of the last layer of HO-PD as $\\pmb { Q } _ { d } ^ { o u t }$ for the following step. ",
388
+ "bbox": [
389
+ 176,
390
+ 140,
391
+ 808,
392
+ 156
393
+ ],
394
+ "page_idx": 4
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "Interaction Decoder. Secondly, we propose the interaction decoder to classify the human-object queries and assign one or several action categories for each human-object query. To classify each human-object query one-to-one, we initialize $Q _ { c }$ with the output of HO-PD $\\dot { \\pmb { Q } } _ { d } ^ { o u t }$ . In this way, $\\pmb { Q } _ { d } ^ { o u t }$ can provide prior knowledge to guide $Q _ { c }$ to learn the corresponding action categories for each human-object query. The other components and inputs are the same as HO-PD, which conducts self-attention among queries and co-attention with $X _ { s }$ and $E _ { p o s }$ . The final output is a set of action categories $P _ { c l s } : \\{ \\bar { a _ { i } } , \\bar { i } \\in \\{ 1 , 2 , \\cdots , N _ { d } \\} \\}$ . Therefore, this process can be formulated as: ",
399
+ "bbox": [
400
+ 173,
401
+ 160,
402
+ 825,
403
+ 258
404
+ ],
405
+ "page_idx": 4
406
+ },
407
+ {
408
+ "type": "equation",
409
+ "img_path": "images/c1c13c2e5eac2869c5dd1c1142aafccda07bc2166f4f2f74a3faa28af5089da1.jpg",
410
+ "text": "$$\nP _ { c l s } = f _ { c l s } ( Q _ { d } ^ { o u t } , X _ { s } , E _ { p o s } ) .\n$$",
411
+ "text_format": "latex",
412
+ "bbox": [
413
+ 398,
414
+ 265,
415
+ 599,
416
+ 282
417
+ ],
418
+ "page_idx": 4
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "In our proposed cascade disentangling HOI decoder, the task of HOI detection is disentangled into two relatively independent steps: human-object pairs detection and interaction classification. Therefore, each step can aggregate more related features to concentrate on its corresponding task. ",
423
+ "bbox": [
424
+ 174,
425
+ 295,
426
+ 825,
427
+ 338
428
+ ],
429
+ "page_idx": 4
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "3.4 Decoupling Dynamic Re-weighting ",
434
+ "text_level": 1,
435
+ "bbox": [
436
+ 176,
437
+ 351,
438
+ 455,
439
+ 367
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "The HOI datasets usually have long-tail class distribution for both object class and action class. To alleviate the long-tail problem, we design a dynamic re-weighting mechanism for further improvements with a decoupling training strategy. In detail, we first train the whole model with regular losses. Then, we freeze the parameters of the visual feature extractor and only train the cascade disentangling decoders with a relatively small learning rate and the designed dynamic re-weighted losses. ",
446
+ "bbox": [
447
+ 173,
448
+ 371,
449
+ 826,
450
+ 440
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "During decoupling training, at each iteration, we apply two similar queues to accumulate number of each object class or action class. The queues are used as memory banks to accumulate training samples and truncate the accumulation with length $L _ { Q }$ as sliding windows. In detail, $Q _ { o }$ with length $L _ { Q } ^ { o }$ to accumulate object number $N _ { i } ^ { o }$ for each object class $i \\in \\{ 1 , 2 , \\cdots , C _ { o } \\}$ , and $Q _ { a }$ with length $L _ { Q } ^ { a }$ to accumulate interaction number $N _ { i } ^ { a }$ for each action category $i \\in \\{ 1 , 2 , \\cdots , C _ { a } \\}$ . The dynamic re-weighting coefficients $w _ { d y n a m i c }$ are presented as follow: ",
457
+ "bbox": [
458
+ 174,
459
+ 446,
460
+ 823,
461
+ 534
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "equation",
467
+ "img_path": "images/27764b2119b17535752979b3e1c3fa857adb66fc4ef2cfe501636e8ac4c5a7d7.jpg",
468
+ "text": "$$\nw _ { i } ^ { a } \\big | _ { i \\in \\{ 1 , 2 , \\cdots , C _ { a } \\} } = \\bigg ( \\frac { \\sum _ { i = 1 } ^ { C _ { a } } N _ { i } } { N _ { i } } \\bigg ) ^ { p _ { a } } , \\quad w _ { b g } ^ { a } = \\bigg ( \\frac { \\sum _ { i = 1 } ^ { C _ { a } } N _ { i } } { N _ { b g } ^ { a } } \\bigg ) ^ { p _ { a } } ,\n$$",
469
+ "text_format": "latex",
470
+ "bbox": [
471
+ 295,
472
+ 540,
473
+ 699,
474
+ 579
475
+ ],
476
+ "page_idx": 4
477
+ },
478
+ {
479
+ "type": "equation",
480
+ "img_path": "images/dc6f227a23a472214d9eb4f102e48a3b537c976a2b5e873ee0a6b17927798706.jpg",
481
+ "text": "$$\nw _ { i } ^ { o } \\big | _ { i \\in \\{ 1 , 2 , \\cdots , C _ { o } \\} } = \\bigg ( \\frac { \\sum _ { i = 1 } ^ { C _ { o } } N _ { i } } { N _ { i } } \\bigg ) ^ { p _ { o } } , \\quad w _ { b g } ^ { o } = \\bigg ( \\frac { \\sum _ { i = 1 } ^ { C _ { o } } N _ { i } } { N _ { b g } ^ { o } } \\bigg ) ^ { p _ { o } } ,\n$$",
482
+ "text_format": "latex",
483
+ "bbox": [
484
+ 297,
485
+ 593,
486
+ 699,
487
+ 633
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "where $N _ { i }$ is the number of accumulated positive samples of category $i$ by the queues $Q _ { o }$ and $Q _ { a }$ , $N _ { b g }$ is the number of accumulated background samples, $C$ is the number of categories, and exponent $p$ is a hyper-parameter that adapts the magnitude of mitigation. Specifically, the weight of background class, $w _ { b g }$ , is designed to balance the positives and negatives. For the stability of the dynamic re-weighted training, the weight coefficients are initialized as $w _ { s t a t i c }$ with those calculated by 4 and 5 using the static number of object and action categories. The final dynamic weights are given as $w = \\gamma w _ { s t a t i c } + ( 1 - \\gamma ) w _ { d y n a m i c }$ , where $\\gamma$ is a smooth factor, given as $m i n ( 0 . \\bar { 9 9 9 } ^ { L _ { Q } } , 0 . \\bar { 9 } )$ . The factor $\\gamma$ transits $w$ from $w _ { s t a t i c }$ to wdynamic with the increasing of $L _ { Q }$ . Finally, the weights are used to the classification losses in a traditional way by multiplying each coefficient to each class and then calculating the summation. ",
494
+ "bbox": [
495
+ 173,
496
+ 636,
497
+ 825,
498
+ 775
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "3.5 Training and Post-processing ",
505
+ "text_level": 1,
506
+ "bbox": [
507
+ 174,
508
+ 786,
509
+ 416,
510
+ 803
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "In this section, we introduce the training and inference processes in detail. Especially, we will introduce a novel Pair-wise Non-Maximal Suppression (PNMS) strategy in the inference process. ",
517
+ "bbox": [
518
+ 174,
519
+ 808,
520
+ 821,
521
+ 835
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Training. Following the set-based training process of HOI-Trans [39] and QPIC [28], we first match each ground-truth with its best-matching prediction by the bipartite matching with the Hungarian algorithm. Then the loss is produced between the matched predictions and the corresponding ground truths for the final back-propagation. During matching, we consider the predictions of two cascade decoders together. The loss of CDN follows QPIC which is composed by five parts: the box regression loss $L _ { b }$ , the intersection-over-union loss $L _ { G I o U }$ [26], the interactive score loss $L _ { p }$ , the object class loss $L _ { c } ^ { o }$ , and the action category loss $L _ { c } ^ { a }$ . The target loss is the weighted sum of these parts as: ",
528
+ "bbox": [
529
+ 174,
530
+ 842,
531
+ 825,
532
+ 911
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "",
539
+ "bbox": [
540
+ 171,
541
+ 90,
542
+ 823,
543
+ 119
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "equation",
549
+ "img_path": "images/5f1f8be0530fe571a079dc5a41dea804947f213b310ec7b7fd25db36ecf728f4.jpg",
550
+ "text": "$$\nL = \\sum _ { k \\in ( h , o ) } \\bigl ( \\lambda _ { b } L _ { b } ^ { k } + \\lambda _ { G I o U } L _ { G I o U } ^ { k } \\bigr ) + \\lambda _ { p } L _ { p } + \\lambda _ { o } L _ { c } ^ { o } + \\lambda _ { a } L _ { c } ^ { a } ,\n$$",
551
+ "text_format": "latex",
552
+ "bbox": [
553
+ 294,
554
+ 125,
555
+ 702,
556
+ 161
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "where $\\lambda _ { b } , \\lambda _ { G I o U } , \\lambda _ { p } , \\lambda _ { o }$ and $\\lambda _ { a }$ are the hyper-parameters for adjusting the weights of each loss. ",
563
+ "bbox": [
564
+ 168,
565
+ 165,
566
+ 803,
567
+ 181
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "Inference. The inference process is to composite the output of instance-related FFNs and the interaction-related FFN to form HOI triplets. By our cascade disentangling decoder architecture, the instance queries and the interaction queries are one-to-one corresponding, therefore, the five components <human bounding box, object bounding box, object class, interactive score, action class> can be homologous in each of the $N _ { d }$ dimensions per FFN head. Formally, we generate the $i$ -th output prediction as $< b _ { i } ^ { h }$ , $b _ { i } ^ { o }$ , argmax $k ^ { c _ { i } ^ { h o i } ( k ) > }$ . The HOI triplet score $c _ { i } ^ { h o i }$ is given by $c _ { i } ^ { h o i } = c _ { i } ^ { a } c _ { i } ^ { o } c _ { i } ^ { p }$ where $c _ { i } ^ { a }$ and $c _ { i } ^ { o }$ are the scores of interaction and object classification, respectively, and $c _ { i } ^ { p }$ is the interactive score from the interactive FFN head for the query vector being an human-object pair. ",
574
+ "bbox": [
575
+ 173,
576
+ 186,
577
+ 826,
578
+ 297
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "PNMS. After sorting $c _ { i } ^ { h o i }$ in descending order and generating the top $K$ HOI triplets, we design a pair-wise non-maximal suppression (PNMS) method to further filter out human-object pairs from pair-wise bounding boxes overlapping perspective. For two HOI triplets $m$ and $n$ , the pair-wise overlap $P I o U$ is calculated as: ",
585
+ "bbox": [
586
+ 173,
587
+ 303,
588
+ 825,
589
+ 359
590
+ ],
591
+ "page_idx": 5
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "img_path": "images/85125336592a642d8b4c840c1e2db4266e492506056ee4d2f84394c64e68a4a4.jpg",
596
+ "text": "$$\nP I o U ( m , n ) = \\Big ( \\frac { I ( b _ { m } ^ { h } , b _ { n } ^ { h } ) } { U ( b _ { m } ^ { h } , b _ { n } ^ { h } ) } \\Big ) ^ { \\alpha } \\Big ( \\frac { I ( b _ { m } ^ { o } , b _ { n } ^ { o } ) } { U ( b _ { m } ^ { o } , b _ { n } ^ { o } ) } \\Big ) ^ { \\beta } ,\n$$",
597
+ "text_format": "latex",
598
+ "bbox": [
599
+ 341,
600
+ 364,
601
+ 653,
602
+ 401
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "where the operators $I$ and $U$ compute the intersection and union areas between the two boxes of $m$ and $n$ , respectively. $\\alpha$ and $\\beta$ are the balancing parameters between humans and objects. ",
609
+ "bbox": [
610
+ 173,
611
+ 405,
612
+ 823,
613
+ 434
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "4 Experiments ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 174,
623
+ 448,
624
+ 312,
625
+ 465
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "In this section, we conduct comprehensive experiments to demonstrate the superiority of our designed CDN. In section 4.1, we briefly introduce the experimental benchmarks. Section 4.2 presents implementation details. Next, It is a detailed experimental comparison and analysis of two-stage and one-stage methods in section 4.3. In section 4.4, we compare our methods with the previous state-of-the-art methods. The ablation studies and components analysis are included in 4.5. ",
632
+ "bbox": [
633
+ 173,
634
+ 476,
635
+ 825,
636
+ 545
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "4.1 Datasets and Evaluation Metrics ",
643
+ "text_level": 1,
644
+ "bbox": [
645
+ 174,
646
+ 558,
647
+ 439,
648
+ 571
649
+ ],
650
+ "page_idx": 5
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "Datasets. We carry out experiments on two widely-used HOI detection benchmarks: HICO-Det [2] and V-COCO [8]. We follow the standard evaluation scheme. HICO-Det consists of 47, 776 Creative Common images from Flickr (38, 118 for training and 9, 658 for test) with more than 150K humanobject pairs. It contains the same 80 object categories as MS-COCO [21] and 117 action categories. The objects and actions form 600 classes of HOI triplets. V-COCO is derived from MS-COCO dataset, which consists of 5, 400 images in the trainval subset and 4, 946 images in the test subset. It has 29 action categories (25 HOIs and 4 body motions) and 80 object categories. For both datasets, one person can interact with multiple objects in different ways at the same time. ",
655
+ "bbox": [
656
+ 173,
657
+ 579,
658
+ 826,
659
+ 690
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "Evaluation Metrics. Following the standard evaluation [2], we use the mean average precision (mAP) as the evaluation metric. For one positively predicted HOI triplet <human, object, action>, it needs to contain accurate human and object locations (box IoU with reference to GT box is greater than 0.5) and correct object and action categories. Specifically, for HICO-Det, besides the full set of $6 0 0 \\mathrm { H O I }$ classes, we also report the mAP over a rare set of 138 HOI classes that have less than 10 training instances and a non-rare set of the other 462 HOI classes. For V-COCO, we report the role mAP for two scenarios: scenario 1 includes the cases even without any objects (for the four action categories of body motions), and scenario 2 ignores these cases. ",
666
+ "bbox": [
667
+ 173,
668
+ 696,
669
+ 825,
670
+ 808
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "4.2 Implementation Details ",
677
+ "text_level": 1,
678
+ "bbox": [
679
+ 174,
680
+ 819,
681
+ 377,
682
+ 834
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "We implement three variant architectures of CDN: CDN-S, CDN-B, and CDN-L, where ‘S’, ‘B’, and ‘L’ denote small, base, and large, respectively. For CDN-S and CDN-B, we adopt ResNet-50 with a 6-layer transformer encoder as the visual feature extractor. For the cascade decoders, CDN-S is equipped with both 3-layer transformers, while CDN-B has a 6-layer transformer for each decoder. CDN-L only replaces the ResNet-50 with ResNet-101 in CDN-B. The reduced dimension size $D _ { c }$ is set to 256. The number of queries $N _ { d }$ is set to 64 for HICO-Det and 100 for V-COCO since the average number of positives for variant human-object pairs per image of HICO-Det is smaller than V-COCO. The human and object box FFNs have 3 linear layers with ReLU, while the object and action category FFNs have one linear layer. The code is provided in supplemental material. ",
689
+ "bbox": [
690
+ 174,
691
+ 842,
692
+ 825,
693
+ 911
694
+ ],
695
+ "page_idx": 5
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "",
700
+ "bbox": [
701
+ 174,
702
+ 90,
703
+ 825,
704
+ 147
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "During training, we initialize the network with the parameters of DETR [1] trained with the MSCOCO dataset. We set the weight coefficients $\\lambda _ { b }$ , $\\lambda _ { G I o U }$ , $\\lambda _ { p }$ , $\\lambda _ { o }$ and $\\lambda _ { a }$ to 2.5, 1, 1, 1 and 1, respectively, which are exactly same with QPIC [28]. We optimize the network by AdamW [23] with the weight decay $1 0 ^ { - 4 }$ . We first train the whole model for 90 epochs with a learning rate of $1 0 ^ { - 4 }$ decreased by 10 times at the 60th epoch. Then, during the decoupling training process, we fine-tune the cascade disentangling decoders together with the box, object, and action FFNs for 10 epochs with a learning rate of $1 0 ^ { = 5 }$ . We use both object and action dynamic re-weighting for HICO-Det and only action dynamic re-weighting for V-COCO. The re-weighting parameter $p$ is set to 0.7 for both object and action. The length $L _ { Q }$ of training sample queue $Q$ for both object and action is set to $2 \\times N _ { s }$ , where $N _ { s }$ is the sample number of the training set. All experiments are conducted on the 8 Tesla V100 GPUs and CUDA10.2, with a batch size of 16. ",
711
+ "bbox": [
712
+ 173,
713
+ 154,
714
+ 825,
715
+ 305
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "For validation, we select 100 detection results with the highest scores and then adopt PNMS to further filter results. The threshold, $\\alpha$ , and $\\beta$ of PNMS are set to 0.7, 1, and 0.5, respectively. ",
722
+ "bbox": [
723
+ 176,
724
+ 313,
725
+ 823,
726
+ 340
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "4.3 Experiment Analysis of Two-stage and One-stage Methods ",
733
+ "text_level": 1,
734
+ "bbox": [
735
+ 173,
736
+ 356,
737
+ 619,
738
+ 371
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "In this part, we introduce a detailed experimental analysis of conventional two-stage and one-stage methods and our proposed CDN from the following three aspects. ",
745
+ "bbox": [
746
+ 173,
747
+ 377,
748
+ 823,
749
+ 406
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "Human-object Pair Generation. We first explore the quality of the human-object pairs generation between two-stage and one-stage methods. To attain this, we conduct a detailed experiment based on a representative two-stage method iCAN [6]. We first implement a PyTorch version iCAN as the baseline model, denoted as $\\mathrm { i } { \\mathrm { C A N } } ^ { * }$ , which only applies human and object appearance with a COCO-pretrained Faster-RCNN detector [25]. For a fair comparison, we first fine-tune DETR on HICO-Det for 100 epochs only with the instance detection annotation based on COCO-pretrained weights. Then we combine the detected human and object bounding-boxes, whose confidences are greater than a threshold, one by one to generate human-object pairs denoted as $\\mathrm { i } { \\mathrm { C A N } } ^ { \\dagger }$ in Table 1. We train our CDN only with HO-PD for 100 epochs and get the human-object pairs from the output directly. Then, we graft the human-object pairs to the baseline model to extract box features and utilize the same interaction classifier in the second stage of $\\mathrm { i } { \\mathrm { C A N } } ^ { * }$ . In this way, we degrade the number of pairs from $M \\times N$ to $K ^ { \\prime }$ , which means time complexity is reduced from $\\mathcal { O } ( M \\times N )$ to $\\mathcal { O } ( K ^ { \\prime } )$ . Primarily, HO-PD significantly promotes mAP from 15.37 to 24.05, as shown in Table 1. This indicates that one-stage methods are much superior in human-object pair generation. ",
756
+ "bbox": [
757
+ 173,
758
+ 412,
759
+ 825,
760
+ 604
761
+ ],
762
+ "page_idx": 6
763
+ },
764
+ {
765
+ "type": "table",
766
+ "img_path": "images/6cc4b82545748d56f15eb47ee546117b45d53fbe407710013dece42049188140.jpg",
767
+ "table_caption": [],
768
+ "table_footnote": [],
769
+ "table_body": "<table><tr><td>Strategy</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>iCAN*</td><td>14.16</td><td>12.26</td><td>14.73</td></tr><tr><td>iCAN t</td><td>15.37</td><td>13.23</td><td>16.01</td></tr><tr><td>HO-PD+iCAN*</td><td>24.05</td><td>18.32</td><td>25.76</td></tr><tr><td>QPIC [28]</td><td>29.07</td><td>21.85</td><td>31.23</td></tr><tr><td>CDN-S base</td><td>30.96</td><td>27.02</td><td>32.14</td></tr></table>",
770
+ "bbox": [
771
+ 173,
772
+ 613,
773
+ 457,
774
+ 703
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "Table 1: Analysis of Two-stage and Onestage Methods. ∗ denotes our implemented PyTorch version iCAN [6] baseline model. † denotes replacing instance detection boxes given by a HICO-Det fine-tuned DETR detector to extract box features. ‘HO$\\mathrm { P D + i C A N ^ { * } }$ ’ denotes replacing original oneby-one generated human-object pairs with our HO-PD generated. ‘CDN-S base’ denotes CDN-S w/o re-weighting and PNMS strategies. ",
781
+ "bbox": [
782
+ 173,
783
+ 715,
784
+ 464,
785
+ 867
786
+ ],
787
+ "page_idx": 6
788
+ },
789
+ {
790
+ "type": "image",
791
+ "img_path": "images/606fe2d92b8b9bfee5d048534bea82d09e67a83b86212cf8ea8f31e0b33bef19.jpg",
792
+ "image_caption": [
793
+ "Figure 3: Visualization of Feature Maps for Queries. Visual attended features for query with top-1 score extracted from the last layer of the decoder of (a) QPIC, (b) HO-PD in CDN, and (c) interaction decoder in CDN. Zoom in for details. "
794
+ ],
795
+ "image_footnote": [],
796
+ "bbox": [
797
+ 498,
798
+ 616,
799
+ 820,
800
+ 782
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "Interaction Classification. We aim to study the interaction classification between conventional multi-task one-stage methods and our disentangled one-stage detector. We can regard QPIC [28] as a multi-task version of our CDN. Table 1 shows that our ‘CDN-S base’ (w/o re-weighting and PNMS strategies) has achieved mAP 30.96 with $6 . 5 0 \\%$ relative mAP gain compared to QPIC. Especially, our ‘CDN-S base’ significantly outperforms QPIC for rare classes with a $\\mathrm { { \\bar { 2 3 . 6 6 \\% } } }$ improvement. The performance of rare classes can partly reflect the accuracy of interaction classification. ",
807
+ "bbox": [
808
+ 173,
809
+ 883,
810
+ 823,
811
+ 911
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "table",
817
+ "img_path": "images/148915c9bfaaf9b9e9723c5b8747a127d9fcea4d0004923aba7e06c699d551d6.jpg",
818
+ "table_caption": [
819
+ "Table 2: Performance comparison on the HICO-Det test set. The ‘P’, ‘T’ represent human pose information and the language feature, respectively. "
820
+ ],
821
+ "table_footnote": [],
822
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Detector</td><td rowspan=\"2\">Backbone</td><td rowspan=\"2\">Extra</td><td colspan=\"3\">Default</td><td rowspan=\"2\"></td><td colspan=\"2\">Know Object</td></tr><tr><td>Full</td><td>Rare</td><td>Non-Rare Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>Two-stageMethod:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>InteractNet [7]</td><td>COCO</td><td>ResNet-50-FPN</td><td>X</td><td>9.94</td><td>7.16</td><td>10.77</td><td></td><td></td><td>=</td></tr><tr><td>GPNN [24]</td><td>CoCO</td><td>Res-DCN-152</td><td>X</td><td>13.11</td><td>9.34</td><td>14.23</td><td></td><td></td><td></td></tr><tr><td>iCAN [6]</td><td>CoCO</td><td>ResNet-50</td><td>X</td><td>14.84</td><td>10.45</td><td>16.15</td><td>16.26</td><td>11.33</td><td>17.73</td></tr><tr><td>No-Frills [9]</td><td>CoCo</td><td>ResNet-152</td><td>P</td><td>17.18</td><td>12.17</td><td>18.68</td><td>=</td><td>=</td><td>=</td></tr><tr><td>PMFNet [30]</td><td>COCO</td><td>ResNet-50-FPN</td><td>P</td><td>17.46</td><td>15.65</td><td>18.00</td><td>20.34</td><td>17.47</td><td>21.20</td></tr><tr><td>CHGNet [31]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>17.57</td><td>16.85</td><td>17.78</td><td>21.00</td><td>20.74</td><td>21.08</td></tr><tr><td>DRG [5]</td><td>CoCO</td><td>ResNet-50-FPN</td><td>T</td><td>19.26</td><td>17.74</td><td>19.71</td><td>23.40</td><td>21.75</td><td>23.89</td></tr><tr><td>VCL[12]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>19.43</td><td>16.55</td><td>20.29</td><td>22.00</td><td>19.09</td><td>22.87</td></tr><tr><td>IP-Net [32]</td><td>CoCO</td><td>Hourglass-104</td><td>X</td><td>19.56</td><td>12.79</td><td>21.58</td><td>22.05</td><td>15.77</td><td>23.92</td></tr><tr><td>VSGNet [29]</td><td>CoCO</td><td>ResNet-152</td><td>X</td><td>19.80</td><td>16.05</td><td>20.91</td><td>=</td><td>=</td><td>=</td></tr><tr><td>FCMNet [22]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>20.41</td><td>17.34</td><td>21.56</td><td>22.04</td><td>18.97</td><td>23.12</td></tr><tr><td>ACP[15]</td><td>CoCO</td><td>ResNet-152</td><td>T</td><td>20.59</td><td>15.92</td><td>21.98</td><td></td><td></td><td></td></tr><tr><td>PD-Net [35]</td><td>COCO</td><td>ResNet-152-FPN</td><td>T</td><td>20.81</td><td>15.90</td><td>22.28</td><td>24.78</td><td>18.88</td><td>26.54</td></tr><tr><td>DJ-RN[16]</td><td>COCO</td><td>ResNet-50</td><td>P</td><td>21.34</td><td>18.53</td><td>22.18</td><td>23.69</td><td>20.64</td><td>24.60</td></tr><tr><td>IDN[17]</td><td>COCO</td><td>ResNet-50</td><td>X</td><td>23.36</td><td>22.47</td><td>23.63</td><td>26.43</td><td>25.01</td><td>26.85</td></tr><tr><td>One-stage Method:</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>UnionDet[13]</td><td>CoCO</td><td>ResNet-50-FPN</td><td>X</td><td>17.58</td><td>11.72</td><td>19.33</td><td>19.76</td><td>14.68</td><td>21.27</td></tr><tr><td>DIRV [4]</td><td>COCo</td><td>EfficientDet-d3</td><td>X</td><td>21.78</td><td>16.38</td><td>23.39</td><td>25.52</td><td>20.84</td><td>26.92</td></tr><tr><td>PPDM-Hourglass [20]</td><td>HICO-DET</td><td>Hourglass-104</td><td>X</td><td>21.94</td><td>13.97</td><td>24.32</td><td>24.81</td><td>17.09</td><td>27.12</td></tr><tr><td>HOI-Trans [39]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>23.46</td><td>16.91</td><td>25.41</td><td>26.15</td><td>19.24</td><td>28.22</td></tr><tr><td>GG-Net [37]</td><td>HICO-DET</td><td>Hourglass-104</td><td>X</td><td>23.47</td><td>16.48</td><td>25.60</td><td>27.36</td><td>20.23</td><td>29.48</td></tr><tr><td>ATL [11]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>23.81</td><td>17.43</td><td>25.72</td><td>27.38</td><td>22.09</td><td>28.96</td></tr><tr><td>HOTR[14]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>25.10</td><td>17.34</td><td>27.42</td><td></td><td>=</td><td></td></tr><tr><td>AS-Net [3]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>28.87</td><td>24.25</td><td>30.25</td><td>31.74</td><td>27.07</td><td>33.14</td></tr><tr><td>QPIC [28]</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>29.07</td><td>21.85</td><td>31.23</td><td>31.68</td><td>24.14</td><td>33.93</td></tr><tr><td>CDN-S</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>31.44</td><td>27.39</td><td>32.64</td><td>34.09</td><td>29.63</td><td>35.42</td></tr><tr><td>CDN-B</td><td>HICO-DET</td><td>ResNet-50</td><td>X</td><td>31.78</td><td>27.55</td><td>33.05</td><td>34.53</td><td>29.73</td><td>35.96</td></tr><tr><td>CDN-L</td><td>HICO-DET</td><td>ResNet-101</td><td>×</td><td>32.07</td><td>27.19</td><td>33.53</td><td>34.79</td><td>29.48</td><td>36.38</td></tr></table>",
823
+ "bbox": [
824
+ 173,
825
+ 89,
826
+ 826,
827
+ 417
828
+ ],
829
+ "page_idx": 7
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "",
834
+ "bbox": [
835
+ 174,
836
+ 477,
837
+ 825,
838
+ 532
839
+ ],
840
+ "page_idx": 7
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Feature Learning. This part discusses the differences in feature learning between the conventional one-stage method, QPIC, and our CDN from a qualitative view. As shown in Figure 3, we visualized the feature maps extracted from the last layer of the decoder of QPIC, the HO-PD, and the interaction decoder in our CDN. We can see that HO-PD and QPIC attend very similar regions, e.g., the boundaries of humans and objects and the human-object contact areas, which are beneficial for locating the interactive human-object pairs. However, the interaction decoder concentrates on humanpose and the regions that contribute to understanding human actions. As for the specific case, for example, for ‘hold cake’, HO-PD in CDN attends to the boundaries of the cake while the interaction decoder in CDN concentrates on the interaction context, i.e., the human’s hands holding the cake. Thus, it shows that CDN disentangles the human-object detection and interaction classification. For ‘ride horse’, HO-PD in CDN emphasizes the overall feature of the human and the horse, and the highlight parts are the edges of the human and horse. For the interaction decoder in CDN, the highlighted part emphasizes the interaction context, i.e., the human carries the rope when riding a horse. Finally, QPIC somehow combines the two highlights, but both are not obvious. ",
845
+ "bbox": [
846
+ 173,
847
+ 539,
848
+ 825,
849
+ 732
850
+ ],
851
+ "page_idx": 7
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "4.4 Comparison to State-of-the-Art ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 176,
859
+ 751,
860
+ 431,
861
+ 765
862
+ ],
863
+ "page_idx": 7
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "We conduct experiments on HICO-Det and V-COCO benchmarks to verify the effectiveness of our proposed methods. For HICO-Det dataset as shown in Table 2, comparing to the previous state-of-theart two-stage method FCMNet [22] with ResNet-50 as backbone, our CDN-B significantly promotes mAP from 20.41 to 31.78, with a relative gain of $5 5 . 7 1 \\%$ . Even compared with PD-Net [36] which adopts extra language feature and DJ-RN [16] which utilizes extra human pose features, CDN-B achieves $5 2 . 7 1 \\%$ and $4 8 . 9 2 \\%$ relative mAP gains, respectively. When comparing to the one-stage method AS-Net [3] and QPIC [28] which also adopt transformer-based detector architecture, CDN-B attains $1 0 . 0 8 \\%$ and $9 . 3 2 \\%$ point relative mAP gains, respectively. Table 3 shows the comparisons on V-COCO dataset. CDN-B achieves 62.29 $A P _ { r o l e }$ on Scenario 1 and 64.42 $A P _ { r o l e }$ on Scenario 2, which significantly outperform previous state-of-the-art method QPIC with relative $5 . 9 4 \\%$ and $5 . 6 1 \\%$ gains, respectively. As for efficiency analysis, CDN-S has almost the same number of parameters and flops compared to QPIC, but CDN-S achieves mAP 31.44 on HICO-Det, $8 . 1 5 \\%$ higher than QPIC. ",
868
+ "bbox": [
869
+ 174,
870
+ 772,
871
+ 825,
872
+ 911
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "table",
878
+ "img_path": "images/5f664d4816b43461e406b6f02ed43a86a298f950db99a05e512748ab53f5892a.jpg",
879
+ "table_caption": [
880
+ "Table 3: Performance comparison on the V-COCO test set. The ‘P’, ‘T’ represent the human pose information and the language feature, respectively. "
881
+ ],
882
+ "table_footnote": [],
883
+ "table_body": "<table><tr><td>Method</td><td>Extra</td><td>APST role</td><td>APS2 role</td></tr><tr><td>Two-stage Method:</td><td></td><td></td><td></td></tr><tr><td>InteractNet [7]</td><td>X</td><td>40.0</td><td></td></tr><tr><td>GPNN [24]</td><td>×</td><td>44.0</td><td></td></tr><tr><td>iCAN[6]</td><td>X</td><td>45.3</td><td>52.4</td></tr><tr><td>TIN [18]</td><td>X</td><td>47.8</td><td>54.2</td></tr><tr><td>VCL [12]</td><td>X</td><td>48.3</td><td>-</td></tr><tr><td>DRG [5]</td><td>T</td><td>51.0</td><td>=</td></tr><tr><td>IP-Net [32]</td><td>X</td><td>51.0</td><td>-</td></tr><tr><td>VSGNet [29]</td><td>X</td><td>51.8</td><td>57.0</td></tr><tr><td>PMFNet [30]</td><td>P</td><td>52.0</td><td>=</td></tr><tr><td>PD-Net [35]</td><td>T</td><td>52.6</td><td>=</td></tr><tr><td>CHGNet [31]</td><td>X</td><td>52.7</td><td>=</td></tr><tr><td>FCMNet [22]</td><td>X</td><td>53.1</td><td>=</td></tr><tr><td>ACP [15]</td><td>T</td><td>53.23</td><td>=</td></tr><tr><td>IDN[17]</td><td>X</td><td>53.3</td><td>60.3</td></tr><tr><td>One-stage Method:</td><td></td><td></td><td></td></tr><tr><td>UnionDet[13]</td><td>X</td><td>47.5</td><td>56.2</td></tr><tr><td>HOI-Trans [39]</td><td></td><td>52.9</td><td>1</td></tr><tr><td>AS-Net [3]</td><td>xx</td><td>53.9</td><td>=</td></tr><tr><td>GG-Net [37]</td><td>X</td><td>54.7</td><td>=</td></tr><tr><td>HOTR [14]</td><td>X</td><td>55.2</td><td>64.4</td></tr><tr><td>DIRV [4]</td><td>X</td><td>56.1</td><td>■</td></tr><tr><td>QPIC [28]</td><td>X</td><td>58.8</td><td>61.0</td></tr><tr><td>CDN-S</td><td>X</td><td>61.68</td><td>63.77</td></tr><tr><td>CDN-B</td><td>X</td><td>62.29</td><td>64.42</td></tr><tr><td>CDN-L</td><td>X</td><td>63.91</td><td>65.89</td></tr></table>",
884
+ "bbox": [
885
+ 176,
886
+ 68,
887
+ 446,
888
+ 428
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "table",
894
+ "img_path": "images/e3390817e3a2985110172a7941bc88ffdd5d894853cd9a33ed956d09b49809cf.jpg",
895
+ "table_caption": [
896
+ "(a) Strategies: Analysis of improvements by various training strategies. "
897
+ ],
898
+ "table_footnote": [],
899
+ "table_body": "<table><tr><td>Strategy</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>QPIC [28]</td><td>29.07</td><td>21.85</td><td>31.23</td></tr><tr><td>base</td><td>31.06</td><td>26.68</td><td>32.36</td></tr><tr><td>+ re-weighting</td><td>31.38</td><td>27.36</td><td>32.58</td></tr><tr><td>+PNMS</td><td>31.78</td><td>27.55</td><td>33.05</td></tr></table>",
900
+ "bbox": [
901
+ 496,
902
+ 83,
903
+ 807,
904
+ 155
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "table",
910
+ "img_path": "images/5ac63a6377873afdd2ffeb7340f679eb5743c83424a9438082b0ff1a26520b29.jpg",
911
+ "table_caption": [],
912
+ "table_footnote": [
913
+ "(b) Dynamic re-weighting: Analysis of decouple training with dynamic re-weighted losses, i.e., different queue length $L _ { Q }$ , coefficient $p$ and dynamic or static. "
914
+ ],
915
+ "table_body": "<table><tr><td>Strategy</td><td>LQ</td><td>p</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>base</td><td>1</td><td>-</td><td>31.06</td><td>26.68</td><td>32.36</td></tr><tr><td>decouple</td><td>-</td><td>1</td><td>30.90</td><td>26.09</td><td>32.33</td></tr><tr><td>static</td><td>-</td><td>0.7</td><td>31.25</td><td>27.12</td><td>32.49</td></tr><tr><td>dynamic</td><td>2×Ns</td><td>0.8</td><td>31.33</td><td>27.45</td><td>32.49</td></tr><tr><td>dynamic</td><td>1×Ns</td><td>0.7</td><td>31.34</td><td>27.48</td><td>32.49</td></tr><tr><td>dynamic</td><td>2×Ns</td><td>0.7</td><td>31.38</td><td>27.36</td><td>32.58</td></tr></table>",
916
+ "bbox": [
917
+ 495,
918
+ 188,
919
+ 807,
920
+ 266
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "table",
926
+ "img_path": "images/39759f0c3630b5c3bbe51acb46d73bff34000e53afc162e6e4caba8f19b61741.jpg",
927
+ "table_caption": [
928
+ "Table 4: Ablation studies of our proposed method on the HICO-Det test set. We carry out all experiments based on the base model (CDN-B). "
929
+ ],
930
+ "table_footnote": [
931
+ "(c) PNMS: The effects of different settings of PNMS coefficients, i.e., α, $\\beta$ , and thres denotes threshold. "
932
+ ],
933
+ "table_body": "<table><tr><td>α</td><td>β</td><td>thres</td><td>Full</td><td>Rare</td><td>Non-Rare</td></tr><tr><td>=</td><td>-</td><td>1</td><td>31.38</td><td>27.36</td><td>32.58</td></tr><tr><td>1</td><td>1</td><td>0.8</td><td>31.66</td><td>27.46</td><td>32.91</td></tr><tr><td>1</td><td>1</td><td>0.7</td><td>31.75</td><td>27.50</td><td>33.03</td></tr><tr><td>1</td><td>0.7</td><td>0.7</td><td>31.77</td><td>27.54</td><td>33.03</td></tr><tr><td>1</td><td>0.5</td><td>0.8</td><td>31.75</td><td>27.51</td><td>33.02</td></tr><tr><td>1</td><td>0.5</td><td>0.7</td><td>31.78</td><td>27.55</td><td>33.05</td></tr></table>",
934
+ "bbox": [
935
+ 495,
936
+ 301,
937
+ 807,
938
+ 390
939
+ ],
940
+ "page_idx": 8
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "",
945
+ "bbox": [
946
+ 174,
947
+ 508,
948
+ 825,
949
+ 537
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "4.5 Ablation Study ",
956
+ "text_level": 1,
957
+ "bbox": [
958
+ 174,
959
+ 551,
960
+ 318,
961
+ 566
962
+ ],
963
+ "page_idx": 8
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "In this subsection, we analyse the effectiveness of the proposed strategies and components in detail. All experiments are eventuated on the HICO-Det dataset. The performance of each strategy is evaluated in Table 4a. The five hyper-parameters of the training loss in 7 follow QPIC [28]. The ablation study of the two hyper-parameters in the re-weighting is shown in Table 4b, and that of the three hyper-parameters in the PNMS is shown in Table 4c. We carry out all experiments based on the model CDN-B with ResNet-50 as backbone. ",
968
+ "bbox": [
969
+ 173,
970
+ 573,
971
+ 825,
972
+ 655
973
+ ],
974
+ "page_idx": 8
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "Strategies. As shown Table 4a, our pure model without any additional post-processing operation, namely base model, achieves mAP 31.06, promoting 1.99 compared with QPIC [28]. Especially, the base model significantly promotes mAP for rare classes from 21.85 to 26.68 compared to QPIC. It indicates the superiority of the architecture of disentangling human-object detection and interaction classification. The re-weighted training further promotes mAP to 31.38, with a gain of 0.32, and the gain mainly lies in rare classes. Finally, the PNMS further improves mAP to 31.78. ",
979
+ "bbox": [
980
+ 174,
981
+ 662,
982
+ 825,
983
+ 746
984
+ ],
985
+ "page_idx": 8
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Dynamic re-weighting. In this part, we conduct experiments to evaluate the components in the dynamic re-weighted training strategy based on the base model as shown in Table 4b. If we only decouple training without re-weighting, the model achieves mAP 30.90, which is lower than the base model. Therefore, it shows that the performance gain does not come from a longer training process. Adding static weights $w _ { s t a t i c }$ to losses promotes mAP to 31.25. The dynamic re-weighting method improves the re-weighting effect since it captures the real-time weight of each class for each real-time sample during training. Thus it can sufficiently dig information from every single sample to achieve the best overall performance. Our method obtains best result mAP 31.38 when $L _ { Q } = 2 \\times N _ { s }$ and $p =$ 0.7. ",
990
+ "bbox": [
991
+ 174,
992
+ 752,
993
+ 825,
994
+ 876
995
+ ],
996
+ "page_idx": 8
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "PNMS. On the basis of the model after re-weighted training, we compare the variance by different parameter settings of the PNMS strategy, which is shown in Table $\\cdot$ . We fix the human box balance factor $\\alpha$ to 1. Then we tune the object box balance factor $\\beta$ and the threshold of the $P I o U$ to filter pair-wise boxes. We achieve best performance mAP 31.78 when $\\beta = 0 . 5$ and $t h r e s = 0 . 7$ . The fact that $\\beta$ is smaller than $\\alpha$ , indicates that the overall performance is more sensitive to human boxes compared with object boxes in our framework. ",
1001
+ "bbox": [
1002
+ 173,
1003
+ 883,
1004
+ 821,
1005
+ 911
1006
+ ],
1007
+ "page_idx": 8
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "",
1012
+ "bbox": [
1013
+ 174,
1014
+ 92,
1015
+ 825,
1016
+ 147
1017
+ ],
1018
+ "page_idx": 9
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "5 Related Work ",
1023
+ "text_level": 1,
1024
+ "bbox": [
1025
+ 174,
1026
+ 166,
1027
+ 321,
1028
+ 183
1029
+ ],
1030
+ "page_idx": 9
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Two-stage Methods. Most previous HOI detectors are with a two-stage paradigm [6, 2, 18, 5]. Firstly, a fine-tuned detector [25, 10] is applied to detect the instances. Secondly, generating the human-object pairs by matching detected human and object one by one, and then feeding them into an interaction classifier. To improve the interaction classification, some extra features were applied, such as human pose [27, 19, 9], human parts [38, 30, 16], and language features [33, 5, 22, 15]. Besides, some two-stage methods [24, 29, 31, 34, 38] applied graph neural networks to model the interactions. ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 193,
1038
+ 825,
1039
+ 276
1040
+ ],
1041
+ "page_idx": 9
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "One-stage Methods. One-stage methods detect HOI triplets directly [20, 32, 13, 39, 3, 28, 14]. In detail, [20, 32] proposed a point-based interaction detection method which performs inference at each interaction key point. [13] proposed an anchor-based method to predict the interactions for each human-object union box. Recently, set-based detection approach has been proposed to handle HOI detection as a set prediction problem [39, 3, 28]. Specifically, [39, 28] designed a transformer encoder-decoder architecture to directly predict HOI detection results in an end-to-end manner, while [3] utilized parallel instance and interaction decoder branches to adaptively aggregate the HOI triplets. ",
1046
+ "bbox": [
1047
+ 174,
1048
+ 281,
1049
+ 825,
1050
+ 380
1051
+ ],
1052
+ "page_idx": 9
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "6 Conclusion ",
1057
+ "text_level": 1,
1058
+ "bbox": [
1059
+ 174,
1060
+ 388,
1061
+ 299,
1062
+ 405
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "In this paper, we explore the essential pros and cons of two-stage and one-stage HOI detection in detail. We propose a novel one-stage framework with disentangling human-object detection and interaction classification in a cascade manner. Our CDN can keep the advantage of one-stage methods, directly and accurately locating the interactive human-object pairs, and bring the benefit of two-stage methods, disentangling detection and interaction classification. Our novel paradigm has outperformed previous methods by margins. However, we only implement a specific version to mine the benefits of two-stage and one-stage methods. In the future, we plan to apply our idea with more general one-stage methods and introduce more advantages of two-stage methods into the one-stage framework. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 414,
1072
+ 825,
1073
+ 525
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Potential Negative Societal Impacts ",
1080
+ "text_level": 1,
1081
+ "bbox": [
1082
+ 174,
1083
+ 537,
1084
+ 470,
1085
+ 555
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Similar to many other AI technologies, our proposed CDN itself is harmless. However, someone might utilize it for military purposes or apply it to any other malicious human activities detection, which might negatively impact society. Therefore, we encourage well-intentioned consideration before adopting our technique. ",
1092
+ "bbox": [
1093
+ 174,
1094
+ 564,
1095
+ 825,
1096
+ 619
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Acknowledgments and Disclosure of Funding ",
1103
+ "text_level": 1,
1104
+ "bbox": [
1105
+ 174,
1106
+ 632,
1107
+ 553,
1108
+ 648
1109
+ ],
1110
+ "page_idx": 9
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "This research is partly supported by National Natural Science Foundation of China (Grant 61876177), Beijing Natural Science Foundation (4202034), Fundamental Research Funds for the Central Universities, Zhejiang Lab (No. 2019KD0AB04). ",
1115
+ "bbox": [
1116
+ 174,
1117
+ 657,
1118
+ 826,
1119
+ 700
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "References ",
1126
+ "text_level": 1,
1127
+ "bbox": [
1128
+ 174,
1129
+ 719,
1130
+ 266,
1131
+ 734
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "[1] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020. 3, 4, 7 \n[2] Yu-Wei Chao, Yunfan Liu, Xieyang Liu, Huayi Zeng, and Jia Deng. Learning to detect human-object interactions. In WACV, 2018. 1, 6, 10 \n[3] Mingfei Chen, Yue Liao, Si Liu, Zhiyuan Chen, Fei Wang, and Chen Qian. Reformulating hoi detection as adaptive set prediction. In CVPR, 2021. 1, 2, 8, 9, 10 \n[4] Hao-Shu Fang, Yichen Xie, Dian Shao, and Cewu Lu. Dirv: Dense interaction region voting for end-to-end human-object interaction detection. In AAAI, 2021. 8, 9 \n[5] Chen Gao, Jiarui Xu, Yuliang Zou, and Jia-Bin Huang. Drg: Dual relation graph for human-object interaction detection. In ECCV, 2020. 1, 8, 9, 10 \n[6] Chen Gao, Yuliang Zou, and Jia-Bin Huang. ican: Instance-centric attention network for human-object interaction detection. In BMVC, 2018. 1, 7, 8, 9, 10 \n[7] Georgia Gkioxari, Ross Girshick, Piotr Dollár, and Kaiming He. Detecting and recognizing human-object interactions. In CVPR, 2018. 1, 8, 9 \n[8] Saurabh Gupta and Jitendra Malik. Visual semantic role labeling. arXiv preprint arXiv:1505.04474, 2015. 1, 6 \n[9] Tanmay Gupta, Alexander Schwing, and Derek Hoiem. No-frills human-object interaction detection: Factorization, layout encodings, and training techniques. In ICCV, 2019. 8, 10 \n[10] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In ICCV, pages 2961–2969, 2017. 10 \n[11] Zhi Hou, Yu Baosheng, Yu Qiao, Xiaojiang Peng, and Dacheng Tao. Affordance transfer learning for human-object interaction detection. In CVPR, 2021. 8 \n[12] Zhi Hou, Xiaojiang Peng, Yu Qiao, and Dacheng Tao. Visual compositional learning for human-object interaction detection. In ECCV, 2020. 8, 9 \n[13] Bumsoo Kim, Taeho Choi, Jaewoo Kang, and Hyunwoo J. Kim. Uniondet: Union-level detector towards real-time human-object interaction detection. In ECCV, 2020. 2, 8, 9, 10 \n[14] Bumsoo Kim, Junhyun Lee, Jaewoo Kang, Eun-Sol Kim, and Hyunwoo J. Kim. Hotr: End-to-end human-object interaction detection with transformers. In CVPR, 2021. 2, 8, 9, 10 \n[15] Dong-Jin Kim, Xiao Sun, Jinsoo Choi, Stephen Lin, and In So Kweon. Detecting human-object interactions with action co-occurrence priors. In ECCV, 2020. 8, 9, 10 \n[16] Yong-Lu Li, Xinpeng Liu, Han Lu, Shiyi Wang, Junqi Liu, Jiefeng Li, and Cewu Lu. Detailed 2d-3d joint representation for human-object interaction. In CVPR, 2020. 8, 10 \n[17] Yong-Lu Li, Xinpeng Liu, Xiaoqian Wu, Yizhuo Li, and Cewu Lu. Hoi analysis: Integrating and decomposing human-object interaction. Advances in Neural Information Processing Systems, 33, 2020. 1, 8, 9 \n[18] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yan-Feng Wang, and Cewu Lu. Transferable interactiveness prior for human-object interaction detection. In CVPR, 2019. 1, 9, 10 \n[19] Yong-Lu Li, Siyuan Zhou, Xijie Huang, Liang Xu, Ze Ma, Hao-Shu Fang, Yanfeng Wang, and Cewu Lu. Transferable interactiveness knowledge for human-object interaction detection. In CVPR, 2019. 10 \n[20] Yue Liao, Si Liu, Fei Wang, Yanjie Chen, Chen Qian, and Jiashi Feng. Ppdm: Parallel point detection and matching for real-time human-object interaction detection. In CVPR, 2020. 1, 2, 3, 8, 10 \n[21] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. 6 \n[22] Yang Liu, Qingchao Chen, and Andrew Zisserman. Amplifying key cues for human-object-interaction detection. In ECCV, 2020. 8, 9, 10 \n[23] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2018. 7 \n[24] Siyuan Qi, Wenguan Wang, Baoxiong Jia, Jianbing Shen, and Song-Chun Zhu. Learning human-object interactions by graph parsing neural networks. In ECCV, 2018. 8, 9, 10 \n[25] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015. 7, 10 \n[26] Hamid Rezatofighi, Nathan Tsoi, JunYoung Gwak, Amir Sadeghian, Ian Reid, and Silvio Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. In CVPR, 2019. 6 \n[27] Liyue Shen, Serena Yeung, Judy Hoffman, Greg Mori, and Li Fei-Fei. Scaling human-object interaction recognition through zero-shot learning. In WACV, 2018. 10 \n[28] Masato Tamura, Hiroki Ohashi, and Tomoaki Yoshinaga. Qpic: Query-based pairwise human-object interaction detection with image-wide contextual information. In CVPR, 2021. 2, 5, 7, 8, 9, 10 \n[29] Oytun Ulutan, A S M Iftekhar, and B. S. Manjunath. Vsgnet: Spatial attention network for detecting human object interactions using graph convolutions. In CVPR, 2020. 8, 9, 10 \n[30] Bo Wan, Desen Zhou, Yongfei Liu, Rongjie Li, and Xuming He. Pose-aware multi-level feature network for human object interaction detection. In ICCV, 2019. 8, 9, 10 \n[31] Hai Wang, Wei-shi Zheng, and Ling Yingbiao. Contextual heterogeneous graph network for human-object interaction detection. In ECCV, 2020. 8, 9, 10 \n[32] Tiancai Wang, Tong Yang, Martin Danelljan, Fahad Shahbaz Khan, Xiangyu Zhang, and Jian Sun. Learning human-object interaction detection using interaction points. In CVPR, 2020. 8, 9, 10 \n[33] Bingjie Xu, Yongkang Wong, Junnan Li, Qi Zhao, and Mohan S. Kankanhalli. Learning to detect human-object interactions with knowledge. In CVPR, 2019. 10 \n[34] Dongming Yang and Yuexian Zou. A graph-based interactive reasoning for human-object interaction detection. In IJCAI, 2020. 10 \n[35] Xubin Zhong, Changxing Ding, Xian Qu, and Dacheng Tao. Polysemy deciphering network for humanobject interaction detection. In ECCV, 2020. 8, 9 \n[36] Xubin Zhong, Changxing Ding, Xian Qu, and Dacheng Tao. Polysemy deciphering network for robust human–object interaction detection. IJCV, 2021. 8 \n[37] Xubin Zhong, Xian Qu, Changxing Ding, and Dacheng Tao. Glance and gaze: Inferring action-aware points for one-stage human-object interaction detection. In CVPR, 2021. 8, 9 \n[38] Penghao Zhou and Mingmin Chi. Relation parsing neural network for human-object interaction detection. In ICCV, 2019. 10 \n[39] Cheng Zou, Bohan Wang, Yue Hu, Junqi Liu, Qian Wu, Yu Zhao, Boxun Li, Chenguang Zhang, Chi Zhang, Yichen Wei, and Jian Sun. End-to-end human object interaction detection with hoi transformer. In CVPR, 2021. 2, 3, 5, 8, 9, 10 ",
1138
+ "bbox": [
1139
+ 179,
1140
+ 742,
1141
+ 826,
1142
+ 911
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "",
1149
+ "bbox": [
1150
+ 171,
1151
+ 61,
1152
+ 828,
1153
+ 915
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "",
1160
+ "bbox": [
1161
+ 171,
1162
+ 92,
1163
+ 828,
1164
+ 484
1165
+ ],
1166
+ "page_idx": 11
1167
+ }
1168
+ ]
parse/train/qDrpme0FAi/qDrpme0FAi_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/qDrpme0FAi/qDrpme0FAi_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1SuFjkRW/r1SuFjkRW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rylwJxrYDS/rylwJxrYDS.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VQ-WAV2VEC: SELF-SUPERVISED LEARNING OF DISCRETE SPEECH REPRESENTATIONS
2
+
3
+ Alexei Baevski∗4 Steffen Schneider∗5† Michael Auli4 4 Facebook AI Research, Menlo Park, CA, USA $\bigtriangledown$ University of Tubingen, Germany ¨
4
+
5
+ # ABSTRACT
6
+
7
+ We propose vq-wav2vec to learn discrete representations of audio segments through a wav2vec-style self-supervised context prediction task. The algorithm uses either a Gumbel-Softmax or online $\mathbf { k }$ -means clustering to quantize the dense representations. Discretization enables the direct application of algorithms from the NLP community which require discrete inputs. Experiments show that BERT pre-training achieves a new state of the art on TIMIT phoneme classification and WSJ speech recognition.1
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Learning discrete representations of speech has gathered much recent interest (Versteegh et al., 2016; Dunbar et al., 2019). A popular approach to discover discrete units is via autoencoding (Tjandra et al., 2019; Eloff et al., 2019; Chorowski et al., 2019) sometimes coupled with an autoregressive model (Chung et al., 2019). Another line of research is to learn continuous speech representations in a self-supervised way via predicting context information (Chung & Glass, 2018; van den Oord et al., 2018; Schneider et al., 2019).
12
+
13
+ In this paper, we combine these two lines of research by learning discrete representations of speech via a context prediction task instead of reconstructing the input. This enables us to directly apply well performing NLP algorithms to speech data (Figure 1a).
14
+
15
+ ![](images/86edb3a37578dfa8b9f0740a1d208509f0b19ccd6f8ec50c3ef988eb4c858f82.jpg)
16
+ Figure 1: (a) The vq-wav2vec encoder maps raw audio $( \mathcal { X } )$ to a dense representation $( { \mathcal { Z } } )$ which is quantized (q) to $\hat { \mathcal { Z } }$ and aggregated into context representations $( \mathcal { C } )$ ; training requires future time step prediction. (b) Acoustic models are trained by quantizing the raw audio with vq-wav2vec, then applying BERT to the discretized sequence and feeding the resulting representations into the acoustic model to output transcriptions.
17
+
18
+ Our new discretization algorithm, vq-wav2vec, learns discrete representations of fixed length segments of audio signal by utilizing the wav2vec loss and architecture (Schneider et al, 2019; $\ S 2$ ). To choose the discrete variables, we consider a Gumbel-Softmax approach (Jang et al., 2016) as well as online k-means clustering, similar to VQ-VAE (Oord et al., 2017; Eloff et al., 2019; §3).
19
+
20
+ We then train a Deep Bidirectional Transformer (BERT; Devlin et al., 2018; Liu et al., 2019) on the discretized unlabeled speech data and input these representations to a standard acoustic model (Figure 1b; $\ S 4 _ { , }$ ). Our experiments show that BERT representations perform better than log-mel filterbank inputs as well as dense wav2vec representations on both TIMIT and WSJ benchmarks. Discretization of audio enables the direct application of a whole host of algorithms from the NLP literature to speech data. For example, we show that a standard sequence to sequence model from the NLP literature can be used to perform speech recognition over discrete audio tokens (§5, §6).
21
+
22
+ # 2 BACKGROUND
23
+
24
+ # 2.1 WAV2VEC
25
+
26
+ wav2vec (Schneider et al., 2019) learns representations of audio data by solving a self-supervised context-prediction task with the same loss function as word2vec (Mikolov et al., 2013; van den Oord et al., 2018). The model is based on two convolutional neural networks where the the encoder produces a representation $\mathbf { z } _ { i }$ for each time step $i$ at a rate of $1 0 0 ~ \mathrm { H z }$ and the aggregator combines multiple encoder time steps into a new representation $\mathbf { c } _ { i }$ for each time step $i$ . Given an aggregated representation $\mathbf { c } _ { i }$ , the model is trained to distinguish a sample $\mathbf { z } _ { i + k }$ that is $k$ steps in the future from distractor samples $\tilde { \mathbf { z } }$ drawn from a distribution $p _ { n }$ , by minimizing the contrastive loss for steps $k = 1 , \ldots , K$ :
27
+
28
+ $$
29
+ \mathcal { L } _ { k } ^ { \mathrm { w a v 2 v e c } } = - \sum _ { i = 1 } ^ { T - k } \Big ( \log \sigma ( \mathbf { z } _ { i + k } ^ { \top } h _ { k } ( \mathbf { c } _ { i } ) ) + \underset { \ b { \tilde { \mathbf { z } } } \sim p _ { n } } { \mathbb { E } } [ \log \sigma ( - \tilde { \mathbf { z } } ^ { \top } h _ { k } ( \mathbf { c } _ { i } ) ) ] \Big )
30
+ $$
31
+
32
+ where $T$ is the sequence length, $\sigma ( x ) ~ = ~ 1 / ( 1 + \exp ( - x ) )$ , and where $\sigma ( \mathbf { z } _ { i + k } ^ { \top } h _ { k } ( \mathbf { c } _ { i } ) )$ is the probability of $\mathbf { z } _ { i + k }$ being the true sample. We consider a step-specific affine transformation $h _ { k } ( \mathbf { c } _ { i } ) \ : = \ : W _ { k } \mathbf { c } _ { i } + \mathbf { b } _ { k }$ that is applied to $\mathbf { c } _ { i }$ (van den Oord et al., 2018). We optimize the loss $\begin{array} { r } { \mathcal { L } = \sum _ { k = 1 } ^ { K } \mathcal { L } _ { k } } \end{array}$ , summing (1) over different step sizes. After training, the representations produced by the context network $\mathbf { c } _ { i }$ are input to the acoustic model instead of log-mel filterbank features.
33
+
34
+ # 2.2 BERT
35
+
36
+ BERT (Devlin et al., 2018) is a pre-training approach for NLP tasks, which uses a transformer encoder model to build a representation of text. Transformers uses self-attention to encode the input sequence as well as an optional source sequence (Vaswani et al., 2017). The original BERT model combined two tasks for training: first, masked language modeling randomly removes some of the input tokens and the model has to predict those missing tokens. Second, next sentence prediction splices two different text passages together into a single example and the model needs to predict whether the passages are from the same document.
37
+
38
+ # 3 VQ-WAV2VEC
39
+
40
+ Our approach, vq-wav2vec, learns vector quantized (VQ) representations of audio data using a future time-step prediction task. We follow the same architectual choices as wav2vec $( \ S 2 . 1 )$ with two convolutional networks $f : \mathcal X \mapsto \mathcal Z$ and $g : \hat { \mathcal { Z } } \mapsto \mathcal { C }$ for feature extraction and aggregation, as well as a new quantization module $q : \mathcal { Z } \mapsto \hat { \mathcal { Z } }$ to build discrete representations (Figure 1a).
41
+
42
+ We first map $3 0 \mathrm { m s }$ segments of raw speech to a dense feature representation $\mathbf { z }$ at a stride of $1 0 \mathrm { m s }$ using the encoder network $f$ . Next, the quantizer $( q )$ turns these dense representations into discrete indices which are mapped to a reconstruction $\hat { \mathbf { z } }$ of the original representation $\mathbf { z }$ . We feed $\hat { \mathbf { z } }$ into the aggregator $g$ and optimize the same context prediction task as wav2vec outlined in $\ S 2 . 1$ .
43
+
44
+ The quantization module replaces the original representation $\mathbf { z }$ by $\hat { \mathbf { z } } = \mathbf { e } _ { i }$ from a fixed size codebook $\mathbf { e } \in { \dot { \mathbb { R } } } ^ { V \times d }$ which contains $V$ representations of size $d$ . We consider the Gumbel-Softmax which is a differentiable approximation of the argmax for computing one-hot representations $\ 8 3 . 1$ ; Figure 2a)
45
+
46
+ ![](images/b84b2048219dbcb8e1923e6a38273d68fd55cd2e07be0807a17f530a48662446.jpg)
47
+ Figure 2: (a) The Gumbel-Softmax quantization computes logits representing the codebook vectors (e). In the forward pass the argmax codeword $\left( \mathbf { e } _ { 2 } \right)$ is chosen and for backward (not shown) the exact probabilities are used. (b) K-means vector quantization computes the distance to all codeword vector and chooses the closest (argmin).
48
+
49
+ as well as online $\mathbf { k }$ -means clustering, similar to the vector quantized variational autoencoder (VQVAE; Oord et al., 2017; $\ S 3 . 2$ ; Figure 2b). Finally, we perform multiple vector quantizations over different parts of $\mathbf { z }$ to mitigate mode collapse (§3.3).
50
+
51
+ # 3.1 GUMBEL-SOFTMAX
52
+
53
+ The Gumbel-Softmax (Gumbel, 1954; Jang et al., 2016; Maddison et al., 2014) enables selecting discrete codebook variables in a fully differentiable way and we use the straight-through estimator of Jang et al. (2016). Given the dense representation $\mathbf { z }$ , we apply a linear layer, followed by a ReLU and another linear which outputs $1 \in \mathbb { R } ^ { V }$ logits for the Gumbel-Softmax. At inference, we simply pick the largest index in $l$ . At training, the output probabilities for choosing the $j$ -th variable are
54
+
55
+ $$
56
+ p _ { j } = \frac { \exp ( l _ { j } + v _ { j } ) / \tau } { \sum _ { k = 1 } ^ { V } \exp ( l _ { k } + v _ { k } ) / \tau } ,
57
+ $$
58
+
59
+ where $v = - \log ( - \log ( u ) )$ and $u$ are uniform samples from $\mathcal { U } ( 0 , 1 )$ . During the forward pass, $i = \mathrm { a r g m a x } _ { j } p _ { j }$ and in the backward pass, the true gradient of the Gumbel-Softmax outputs is used.
60
+
61
+ # 3.2 K-MEANS
62
+
63
+ The vector quantization approach of van den Oord et al. (2017) is an alternative to making the index selection procedure fully differentiable. Different to their setup, we optimize a future time step prediction loss instead of the reconstruction loss of an autoencoder.
64
+
65
+ We choose the codebook variable representation by finding the closest variable to the input features $\mathbf { z }$ in terms of the Euclidean distance, yielding $i = \mathrm { a r g m i n } _ { j } \| \mathbf { z } - \mathbf { e } _ { j } \| _ { 2 } ^ { 2 }$ . During the forward pass, we select $\hat { \mathbf { z } } = \mathbf { e } _ { i }$ by choosing the corresponding variable from the codebook. We obtain gradients for the encoder network by back-propagating $\mathrm { d } \bar { \mathcal { L } } ^ { \mathrm { w a v 2 v e c } } / \mathrm { d } \hat { \mathbf { z } }$ (van den Oord et al., 2017). The final loss has two additional terms:
66
+
67
+ $$
68
+ \mathcal { L } = \sum _ { k = 1 } ^ { K } \mathcal { L } _ { k } ^ { \mathrm { w a v 2 v e c } } + \Big ( \| \mathbf { s g } ( \mathbf { z } ) - \hat { \mathbf { z } } \| ^ { 2 } + \gamma \| \mathbf { z } - \mathbf { s g } ( \hat { \mathbf { z } } ) \| ^ { 2 } \Big ) ,
69
+ $$
70
+
71
+ where $\operatorname { s g } ( x ) \equiv x$ , $\begin{array} { r } { \frac { \mathrm { d } } { \mathrm { d } x } \mathbf { s } \mathbf { g } ( x ) \equiv 0 } \end{array}$ is the stop gradient operator and $\gamma$ is a hyperparameter. The first term is the future prediction task and gradients do not change the codebook because of the straightthrough gradient estimation of mapping $\mathbf { z }$ to $\hat { \mathbf { z } }$ . The second term $\| \mathbf { s g } ( \mathbf { z } ) - \hat { \mathbf { z } } \| ^ { 2 }$ moves the codebook vectors closer to the encoder output, and the third term $\| \mathbf { z } - \mathrm { s g } ( \hat { \mathbf { z } } ) \| ^ { 2 }$ makes sure that the encoder outputs are close to a centroid (codeword).
72
+
73
+ # 3.3 VECTOR QUANTIZATION WITH MULTIPLE VARIABLE GROUPS
74
+
75
+ So far, we considered replacing the encoder feature vector $\mathbf { z }$ by a single entry $\mathbf { e } _ { i }$ in the codebook. This is prone to mode collapse where only some of the codewords are actually used. Previously, this problem has been mitigated by workarounds such as re-initializing codewords or applying additional regularizers to the loss function (Caron et al., 2019). In the following, we describe another strategy where we independently quantize partitions of $\mathbf { z }$ , similar to product quantization (Jegou et al., 2011). This results in larger dictionaries and increased downstream performance (Appendix A).
76
+
77
+ The dense feature vector $\textbf { z } \in \mathbb { R } ^ { d }$ is first organized into multiple groups $G$ into the matrix form $\mathbf { z } ^ { \prime } \in \mathbb { R } ^ { G \times ( d / G ) }$ . We then represent each row by an integer index, and hence can represent the full feature vector by the indices $\mathbf { \hat { i } } \in [ V ] ^ { G }$ , where $V$ again denotes the possible number of variables for this particular group and each element $\mathbf { i } _ { j }$ corresponds to a fixed codebook vector. For each of the $G$ groups, we apply either one of the two VQ approaches $\ S 3 . 1$ and $\ S 3 . 2 )$ .
78
+
79
+ The codebook itself can be initialized in two possible ways: Codebook variables can be shared across groups, i.e., a particular index in group $j$ would reference the same vector as the same index in group $j ^ { \prime }$ . This yields a codebook $\mathbf { e } \in \mathbb { R } ^ { V \times ( d / G ) }$ . In contrast, not sharing the codebook variables yields a codebook of size $\mathbf { e } \in \mathbb { R } ^ { V \times G \times ( d / G ) }$ . In practise, we observe that sharing the codebook variables generally yields competitive results to a non-shared representation.
80
+
81
+ # 4 BERT PRE-TRAINING ON QUANTIZED SPEECH
82
+
83
+ Once we trained a vq-wav2vec model we can discretize audio data and make it applicable to algorithms that require discrete inputs. One possibility is to use the discretized training data and apply BERT pre-training where the task is to predict masked input tokens based on an encoding of the surrounding context (Devlin et al., 2018). Once the BERT model is trained, we can use it to build representations and feed them into an acoustic model to improve speech recognition. We follow recent advances in BERT training which only use the masked input token prediction (Liu et al., 2019).
84
+
85
+ Since each of the discretized tokens represents around $1 0 \mathrm { m s }$ of audio it is likely too easy to predict a single masked input token. We therefore change BERT training by masking spans of consecutive discretized speech tokens, similar to Joshi et al. (2019). To mask the input sequence, we randomly sample $p = 0 . 0 5$ of all tokens to be a starting index, without replacement, and mask $M = 1 0$ consecutive tokens from every sampled index; spans may overlap. This makes the masked token prediction harder and we show later that it improves accuracy over masking individual tokens $( \ S 6 . 5 )$ .
86
+
87
+ # 5 EXPERIMENTAL SETUP
88
+
89
+ # 5.1 DATASETS
90
+
91
+ We generally pre-train vq-wav2vec and BERT on the full 960h of Librispeech (Panayotov et al., 2015) and after vq-wav2vec training it is discretized to 345M tokens. Where indicated we perform ablations on a clean 100h subset which is discretized to 39.9M tokens. We evaluate models on two benchmarks: TIMIT (Garofolo et al., 1993b) is a 5h dataset with phoneme labels and Wall Street Journal (WSJ; Garofolo et al. 1993a) is a 81h dataset for speech recognition. For TIMIT, we apply the standard evaluation protocol and consider 39 different phonemes. For WSJ, we train acoustic models directly on 31 graphemes, including the English alphabet, the apostrophe, the silence token and tokens for repeating characters.
92
+
93
+ # 5.2 VQ-WAV2VEC
94
+
95
+ We adapt the fairseq implementation of wav2vec (Schneider et al., 2019; Ott et al., 2019) and use vqwav2vec/wav2vec models with $3 4 \times 1 0 ^ { 6 }$ parameters. The encoder has 8 layers with 512 channels each, kernel sizes (10,8,4,4,4,1,1,1) and strides (5,4,2,2,2,1,1,1), yielding a total stride of 160. Each layer contains a convolution, followed by dropout, group normalization with a single group (Wu & He, 2018) and a ReLU non-linearity. The aggregator is composed of 12 layers, with 512 channels, stride 1, and kernel sizes starting at 2 and increasing by 1 for every subsequent layer. The block structure is the same as for the encoder network, except we introduce skip connections between each subsequent block.
96
+
97
+ We train with the wav2vec context prediction loss (Equation 1) for $4 0 0 \mathrm { k }$ updates, predicting $K = 8$ steps into the future and sample 10 negatives from the same audio example. Training is warmed up for 500 steps where the learning rate is increased from $1 \times 1 0 ^ { - 7 }$ to $5 \times 1 0 ^ { - 3 }$ , and then annealed to $1 \times 1 0 ^ { - 6 }$ using a cosine schedule (Loshchilov & Hutter, 2016). The batch size is 10, and we crop a random section of $1 5 0 \mathrm { k }$ frames for each example (approximately 9.3 seconds for 16kHz sampling rate). All models are trained on 8 GPUs.
98
+
99
+ For ablations and experiments on the 100h Librispeech subset, we use a smaller model with kernels (10,8,4,4,4) and strides (5,4,2,2,2) in the encoder and seven convolutional layers with stride one and kernel size three in the aggregator. This model is trained for $4 0 \mathrm { k }$ updates.
100
+
101
+ Gumbel-Softmax Models. We use $G = 2$ groups and $V = 3 2 0$ latents per group and the linear layer projects the features produced by the encoder into $G \cdot V = 6 4 0$ logits. The Gumbel-Softmax produces a one-hot vector for each group $G$ . The temperature $\tau$ is linearly annealed from 2 to 0.5 over the first $70 \%$ of updates and then kept constant at 0.5. This enables the model to learn which latents work best for each input before committing to a single latent. After training this model on 960h of Librispeech and quantizing the training dataset, we are left with $1 3 . 5 \mathrm { k }$ unique codewords combinations (out of $V ^ { G } = 1 0 2 \mathrm { k \Omega }$ possible codewords).
102
+
103
+ $\mathbf { k }$ -means Models. We use $G = 2$ groups and $V = 3 2 0$ variables per group. vq-wav2vec on full Librispeech yields $2 3 \mathrm { k }$ unique codewords. Following van den Oord et al. (2017), we found $\gamma = 0 . 2 5$ to be a robust choice for balancing the VQ auxiliary loss.
104
+
105
+ # 5.3 BERT
106
+
107
+ BERT base models have 12 layers, model dimension 768, inner dimension (FFN) 3072 and 12 attention heads (Devlin et al., 2018). The learning rate is warmed up over the first 10,000 updates to a peak value of $1 \times 1 0 ^ { - 5 }$ , and then linearly decayed over a total of $2 5 0 \mathrm { k }$ updates. We train on 128 GPUs with a batch size of 3072 tokens per GPU giving a total batch size of $3 9 3 \mathrm { k }$ tokens (Ott et al., 2018). Each token represents $1 0 \mathrm { m s }$ of audio data.
108
+
109
+ BERT small. For ablations we use a smaller setup with model dimension 512, FFN size 2048, 8 attention heads and dropout 0.05. Models are trained for 250k updates with a batch size of 2 examples per GPU.
110
+
111
+ # 5.4 ACOUSTIC MODEL
112
+
113
+ We use wav2letter as accoustic model (Collobert et al., 2016; 2019) and train for 1,000 epochs on 8 GPUs for both TIMIT and WSJ using the auto segmentation criterion. For decoding the emissions from the acoustic model on WSJ we use a lexicon as well as a separate language model trained on the WSJ language modeling data only. We consider a 4-gram KenLM language model (Heafield et al., 2013) and a character based convolutional language model (Likhomanenko et al., 2019) and tune the models with the same protocol as Schneider et al. (2019).
114
+
115
+ # 6 RESULTS
116
+
117
+ # 6.1 WSJ SPEECH RECOGNITION
118
+
119
+ We first evaluate on the WSJ speech recognition benchmark. We train a vq-wav2vec model on the unlabeled version of Librispeech, then discretize the same data with the resulting model to estimate a BERT model. Finally, we train a wav2letter acoustic model on WSJ by inputting either the BERT or vq-wav2vec representations instead of log-mel filterbanks.2
120
+
121
+ We compare to various results from the literature, including wav2vec (Schneider et al., 2019) and we consider three setups: performance without any language model (No LM), with an n-gram LM (4-gram LM) and with a character convolutional LM (Char ConvLM). We report the accuracy of wav2letter with log-mel filterbanks as input (Baseline) and wav2vec. For vq-wav2vec we first experiment with the Gumbel-Softmax, with and without a BERT base model (§5.3).
122
+
123
+ Table 1: WSJ accuracy of vq-wav2vec on the development (nov93dev) and test set (nov92) in terms of letter error rate (LER) and word error rate (WER) without language modeling (No LM), a 4-gram LM and a character convolutional LM. vq-wav2vec with BERT pre-training improves over the best wav2vec model (Schneider et al., 2019).
124
+
125
+ <table><tr><td rowspan="2"></td><td colspan="2">nov93dev</td><td colspan="2">nov92</td></tr><tr><td>LER</td><td>WER</td><td>LER</td><td>WER</td></tr><tr><td>Deep Speech 2 (12K h labeled speech; Amodei et al., 2016)</td><td>1</td><td>4.42</td><td>1</td><td>3.1</td></tr><tr><td>Trainable frontend (Zeghidour et al., 2018)</td><td></td><td>6.8</td><td>=</td><td>3.5</td></tr><tr><td>Lattice-free MMI (Hadian et al., 2018)</td><td></td><td>5.66t</td><td></td><td>2.8†</td></tr><tr><td>Supervised transfer-learning (Ghahremani et al., 2017)</td><td></td><td>4.99t</td><td>1</td><td>2.53†</td></tr><tr><td>No LM</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>6.28</td><td>19.46</td><td>4.14</td><td>13.93</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>5.07</td><td>16.24</td><td>3.26</td><td>11.20</td></tr><tr><td>vq-wav2vec Gumbel</td><td>7.04</td><td>20.44</td><td>4.51</td><td>14.67</td></tr><tr><td>+BERT base</td><td>4.13</td><td>13.40</td><td>2.62</td><td>9.39</td></tr><tr><td>4-GRAM LM (Heafield et al., 2013)</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>3.32</td><td>8.57</td><td>2.19</td><td>5.64</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.73</td><td>6.96</td><td>1.57</td><td>4.32</td></tr><tr><td>vq-wav2vec Gumbel</td><td>3.93</td><td>9.55</td><td>2.40</td><td>6.10</td></tr><tr><td>+ BERT base</td><td>2.41</td><td>6.28</td><td>1.26</td><td>3.62</td></tr><tr><td>CHAR CoNvLM (Likhomanenko et al., 2019)</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>2.77</td><td>6.67</td><td>1.53</td><td>3.46</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.11</td><td>5.10</td><td>0.99</td><td>2.43</td></tr><tr><td>vq-wav2vec Gumbel + BERT base</td><td>1.79</td><td>4.46</td><td>0.93</td><td>2.34</td></tr></table>
126
+
127
+ Table 2: Comparison of Gumbel-Softmax and k-means vector quantization on WSJ (cf. Table 1).
128
+
129
+ <table><tr><td></td><td colspan="2">nov93dev</td><td colspan="2">nov92</td></tr><tr><td></td><td>LER</td><td>WER</td><td>LER</td><td>WER</td></tr><tr><td>No LM</td><td></td><td></td><td></td><td></td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>5.07</td><td>16.24</td><td>3.26</td><td>11.20</td></tr><tr><td>vq-wav2vec Gumbel</td><td>7.04</td><td>20.44</td><td>4.51</td><td>14.67</td></tr><tr><td>+ BERT small</td><td>4.52</td><td>14.14</td><td>2.81</td><td>9.69</td></tr><tr><td>vq-wav2vec k-means (39M codewords)</td><td>5.41</td><td>17.11</td><td>3.63</td><td>12.17</td></tr><tr><td>vq-wav2vec k-means</td><td>7.33</td><td>21.64</td><td>4.72</td><td>15.17</td></tr><tr><td>+ BERT small</td><td>4.31</td><td>13.87</td><td>2.70</td><td>9.62</td></tr><tr><td>4-GRAM LM (Heafield et al., 2013)</td><td></td><td></td><td></td><td></td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.73</td><td>6.96</td><td>1.57</td><td>4.32</td></tr><tr><td>vq-wav2vec Gumbel</td><td>3.93</td><td>9.55</td><td>2.40</td><td>6.10</td></tr><tr><td>+ BERT small</td><td>2.67</td><td>6.67</td><td>1.46</td><td>4.09</td></tr><tr><td>vq-wav2vec k-means (39M codewords)</td><td>3.05</td><td>7.74</td><td>1.71</td><td>4.82</td></tr><tr><td>vq-wav2vec k-means</td><td>4.37</td><td>10.26</td><td>2.28</td><td>5.71</td></tr><tr><td>+ BERT small</td><td>2.60</td><td>6.62</td><td>1.45</td><td>4.08</td></tr></table>
130
+
131
+ Table 1 shows that vq-wav2vec together with BERT training can achieve a new state of the art of 2.34 WER on nov92. Gains are largest when no language model is used which is the fastest setting. vq-wav2vec with Gumbel-Softmax uses only $1 3 . 5 \mathrm { k }$ distinct codewords to represent the audio signal and this limited set of codewords is not sufficient to outperform the baseline. However, it does enable training BERT models which require a relatively small vocabulary.
132
+
133
+ Table 3: TIMIT phoneme recognition in terms of phoneme error rate (PER). All our models use the CNN-8L-PReLU-do0.7 architecture (Zeghidour et al., 2018).
134
+
135
+ <table><tr><td></td><td>dev PER</td><td>test PER</td></tr><tr><td>CNN + TD-filterbanks (Zeghidour et al., 2018)</td><td>15.6</td><td>18.0</td></tr><tr><td>Li-GRU + fMLLR (Ravanelli et al.,2018)</td><td>1</td><td>14.9</td></tr><tr><td>wav2vec (Schneider et al.,2019)</td><td>12.9</td><td>14.7</td></tr><tr><td>Baseline (log-mel)</td><td>16.9</td><td>17.6</td></tr><tr><td>vq-wav2vec, Gumbel</td><td>15.34</td><td>17.78</td></tr><tr><td>+ BERT small</td><td>9.64</td><td>11.64</td></tr><tr><td>vq-wav2vec, k-means</td><td>15.65</td><td>18.73</td></tr><tr><td>+ BERT small</td><td>9.80</td><td>11.40</td></tr></table>
136
+
137
+ Table 4: Librispeech results for a standard sequence to sequence model trained on discretized audio without BERT pre-training and results from the literature. All results are without a language model.
138
+
139
+ <table><tr><td></td><td>dev clean</td><td>dev other</td><td> test clean</td><td> test other</td></tr><tr><td>Mohamed et al. (2019)</td><td>4.8</td><td>12.7</td><td>4.7</td><td>12.9</td></tr><tr><td>Irie et al. (2019)</td><td>4.4</td><td>13.2</td><td>4.7</td><td>13.4</td></tr><tr><td>Park et al. (2019)</td><td>2.8</td><td>6.8</td><td>2.5</td><td>5.8</td></tr><tr><td>vq-wav2vec Gumbel + Transformer Big</td><td>5.6</td><td>15.5</td><td>6.2</td><td>18.2</td></tr></table>
140
+
141
+ Next, we compare Gumbel-Softmax to $\mathbf { k }$ -means for vector quantization. For this experiment we use the faster to train BERT small configuration (§5.3). We also train a vq-wav2vec $\mathbf { k }$ -means model with a very large number of codewords (39.9M) to test whether a more expressive model can close the gap to wav2vec. Table 2 shows that Gumbel-Softmax and $\mathbf { k }$ -means clustering perform relatively comparably: in the no language model setup without BERT, Gumbel-Softmax is more accurate than k-means but these differences disappear with BERT. For 4-gram LM setup, k-means is better but those differences disappear again after BERT training. Finally, the large codeword model can substantially reduce the gap to the original wav2vec model.
142
+
143
+ # 6.2 TIMIT PHONEME RECOGNITION
144
+
145
+ Next, we experiment on the much smaller TIMIT phoneme recognition task where we also pre-train vq-wav2vec on the full Librispeech corpus. Table 3 shows that vq-wav2vec and BERT achieve a new state of the art of 11.64 PER which corresponds to a $21 \%$ reduction in error over the previous best result of wav2vec.
146
+
147
+ # 6.3 SEQUENCE TO SEQUENCE MODELING
148
+
149
+ So far we used vq-wav2vec to train BERT on discretized speech. However, once the audio is discretized we can also train a standard sequence to sequence model to perform speech recognition. In preliminary experiments, we trained an off-the-shelf Big Transformer (Vaswani et al., 2017; Ott et al., 2019) on the vq-wav2vec Gumbel-Softmax discretized Librispeech corpus and evaluated on the Librispeech dev/test sets; we use a 4k BPE output vocabulary (Sennrich et al., 2016). Table 4 shows that results are promising, even though they are not as good as the state of the art (Park et al., 2019) which depends on data augmentation that we do not use.
150
+
151
+ # 6.4 ACCURACY VS. BITRATE
152
+
153
+ Next, we investigate how well vq-wav2vec can compress the audio data. Specifically, we train models with different numbers of groups $G$ and variables $V$ to vary the size of the possible codebook size $V ^ { G }$ and measure accuracy on TIMIT phoneme recognition without BERT training.
154
+
155
+ ![](images/9a15bf936d6d1265ca3cbbb31d5044033640a5533378629fdaf1a547978f7ec4.jpg)
156
+ Figure 3: Comparison of PER on the TIMIT dev set for various audio codecs and vq-wav2vec $\mathbf { k }$ -means trained on Librispeech 100h.
157
+
158
+ We measure compression with the bitrate $r \cdot G \log _ { 2 } V$ at sampling rate $r \ = \ 1 0 0 \mathrm { H z }$ and report the trade-off between bitrate and accuracy on our phoneme recognition task. We experiment with vq-wav2vec $\mathbf { k }$ -means and train models with 1,2,4,8,16 and 32 groups, using $4 0 , 8 0 , 1 6 0 , . . . , 1 2 8 0$ variables, spanning a bitrate range from 0.53 kbit/s $\mathrm { G } = 1$ , ${ \mathrm { V } = 4 0 }$ ) to 33.03 kbit/s $\mathrm { G } = 3 2$ , $\mathrm { V } = 1 2 8 0$ ). We place the quantization module after the aggregator module and train all models in the small vq-wav2vec setup (§5.2) on the 100h clean Librispeech subset.
159
+
160
+ As baselines, we consider various lossy compression algorithms applied to the TIMIT audio data and train wav2letter models on the resulting audio: Codec23 as a low bitrate codec, Opus (Terriberry & Vos, 2012) as a medium bitrate codec and MP3 and $\mathrm { O g g }$ Vorbis (Montgomery, 2004) as high bitrate codecs. We use the whole spectrum of both variable and constant bitrate settings of the codecs; we encode and decode with ffmpeg (ffmpeg developers, 2016). Figure 3 shows the trade-off between the bitrate and TIMIT accuracy. Acoustic models on vq-wav2vec achieve the best results across most bitrate settings.
161
+
162
+ # 6.5 ABLATIONS
163
+
164
+ Table 5a shows that masking entire spans of tokens performs significantly better than individual tokens $M = 1$ ). Furthermore, BERT training on discretized audio data is fairly robust to masking large parts of the input (Table 5b).
165
+
166
+ <table><tr><td>p</td><td>dev</td><td>test</td></tr><tr><td>0.015</td><td>12.65</td><td>15.28</td></tr><tr><td>0.020</td><td>12.51</td><td>14.43</td></tr><tr><td>0.025</td><td>12.16</td><td>13.96</td></tr><tr><td>0.030</td><td>11.68</td><td>14.48</td></tr><tr><td>0.050</td><td>11.45</td><td>13.62</td></tr></table>
167
+
168
+ (b) Mask probabilities.
169
+
170
+ Table 5: TIMIT PER for (a) different mask sizes $M$ with $p M = 0 . 1 5$ in BERT training and (b) mask probabilities $p$ for a fixed mask length $M = 1 0$ .
171
+
172
+ <table><tr><td>M</td><td>dev</td><td>test</td></tr><tr><td>1</td><td>14.94</td><td>17.38</td></tr><tr><td>5</td><td>13.62</td><td>15.78</td></tr><tr><td>10</td><td>12.65</td><td>15.28</td></tr><tr><td>20</td><td>13.04</td><td>15.56</td></tr><tr><td>30</td><td>13.18</td><td>15.64</td></tr></table>
173
+
174
+ (a) Mask length.
175
+
176
+ # 7 CONCLUSION
177
+
178
+ vq-wav2vec is a self-supervised algorithm that quantizes unlabeled audio data which makes it amenable to algorithms requiring discrete data. This approach improves the state of the art on the WSJ and TIMIT benchmarks by leveraging BERT pre-training. In future work, we plan to apply other algorithms requiring discrete inputs to audio data and to explore self-supervised pre-training algorithms which mask part of the continuous audio input. Another future work avenue is to finetune the pre-trained model to output transcriptions instead of feeding the pre-trained features to a custom ASR model.
179
+
180
+ # REFERENCES
181
+
182
+ Dario Amodei, Sundaram Ananthanarayanan, Rishita Anubhai, Jingliang Bai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Qiang Cheng, Guoliang Chen, et al. Deep speech 2: Endto-end speech recognition in english and mandarin. In Proc. of ICML, 2016.
183
+
184
+ Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In Proceedings of the International Conference on Computer Vision (ICCV), 2019.
185
+
186
+ Jan Chorowski, Ron J. Weiss, Samy Bengio, and Aaron van den Oord. Unsupervised speech repre- ¨ sentation learning using wavenet autoencoders. arXiv, abs/1901.08810, 2019.
187
+
188
+ Yu-An Chung and James Glass. Speech2vec: A sequence-to-sequence framework for learning word embeddings from speech. arXiv, abs/1803.08976, 2018.
189
+
190
+ Yu-An Chung, Wei-Ning Hsu, Hao Tang, and James Glass. An unsupervised autoregressive model for speech representation learning. arXiv, abs/1904.03240, 2019.
191
+
192
+ Ronan Collobert, Christian Puhrsch, and Gabriel Synnaeve. Wav2letter: an end-to-end convnetbased speech recognition system. arXiv, abs/1609.03193, 2016.
193
+
194
+ Ronan Collobert, Awni Hannun, and Gabriel Synnaeve. A fully differentiable beam search decoder. arXiv, abs/1902.06022, 2019.
195
+
196
+ FFmpeg Developers. ffmpeg tool software, 2016. URL http://ffmpeg.org/.
197
+
198
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv, abs/1810.04805, 2018.
199
+
200
+ Ewan Dunbar, Robin Algayres, Julien Karadayi, Mathieu Bernard, Juan Benjumea, Xuan-Nga Cao, Lucie Miskic, Charlotte Dugrain, Lucas Ondel, Alan W Black, et al. The zero resource speech challenge 2019: Tts without t. arXiv, 1904.11469, 2019.
201
+
202
+ Ryan Eloff, Andre Nortje, Benjamin van Niekerk, Avashna Govender, Leanne Nortje, Arnu Preto- ´ rius, Elan Van Biljon, Ewald van der Westhuizen, Lisa van Staden, and Herman Kamper. Unsupervised acoustic unit discovery for speech synthesis using discrete latent-variable neural networks. arXiv, abs/1904.07556, 2019.
203
+
204
+ John S. Garofolo, David Graff, Doug Paul, and David S. Pallett. CSR-I (WSJ0) Complete LDC93S6A. Web Download. Linguistic Data Consortium, 1993a.
205
+
206
+ John S. Garofolo, Lori F. Lamel, William M. Fisher, Jonathon G. Fiscus, David S. Pallett, and Nancy L. Dahlgren. The DARPA TIMIT Acoustic-Phonetic Continuous Speech Corpus CDROM. Linguistic Data Consortium, 1993b.
207
+
208
+ Pegah Ghahremani, Vimal Manohar, Hossein Hadian, Daniel Povey, and Sanjeev Khudanpur. Investigation of transfer learning for asr using lf-mmi trained neural networks. In Proc. of ASRU, 2017.
209
+
210
+ Emil Julius Gumbel. Statistical theory of extreme values and some practical applications: a series of lectures, volume 33. US Government Printing Office, 1954.
211
+
212
+ Hossein Hadian, Hossein Sameti1, Daniel Povey, and Sanjeev Khudanpur. End-to-end speech recognition using lattice-free mmi. In Proc. of Interspeech, 2018.
213
+
214
+ Kenneth Heafield, Ivan Pouzyrevsky, Jonathan H. Clark, and Philipp Koehn. Scalable modified Kneser-Ney language model estimation. In Proc. of ACL, 2013.
215
+
216
+ Kazuki Irie, Rohit Prabhavalkar, Anjuli Kannan, Antoine Bruguier, David Rybach, and Patrick Nguyen. On the choice of modeling unit for sequence-to-sequence speech recognition. Interspeech 2019, Sep 2019. doi: 10.21437/interspeech.2019-2277. URL http://dx.doi.org/ 10.21437/Interspeech.2019-2277.
217
+
218
+ Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. arXiv, abs/1611.01144, 2016.
219
+
220
+ Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE Trans. Pattern Anal. Mach. Intell., 33(1):117–128, January 2011.
221
+
222
+ Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. Spanbert: Improving pre-training by representing and predicting spans. arXiv, abs/1907.10529, 2019.
223
+
224
+ Tatiana Likhomanenko, Gabriel Synnaeve, and Ronan Collobert. Who needs words? lexicon-free speech recognition. In Proc. of Interspeech, 2019.
225
+
226
+ 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.
227
+
228
+ Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with restarts. arXiv, abs/1608.03983, 2016.
229
+
230
+ Chris J Maddison, Daniel Tarlow, and Tom Minka. A\* sampling. In Advances in Neural Information Processing Systems, pp. 3086–3094, 2014.
231
+
232
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Proc. of NIPS, 2013.
233
+
234
+ Abdelrahman Mohamed, Dmytro Okhonko, and Luke Zettlemoyer. Transformers with convolutional context for ASR. CoRR, abs/1904.11660, 2019.
235
+
236
+ C Montgomery. Vorbis i specification, 2004.
237
+
238
+ Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In Proc. of WMT, 2018.
239
+
240
+ Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan $\mathrm { N g }$ , David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proc. of NAACL System Demonstrations, 2019.
241
+
242
+ Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: an asr corpus based on public domain audio books. In Proc. of ICASSP, pp. 5206–5210. IEEE, 2015.
243
+
244
+ Daniel S. Park, William Chan, Yu Zhang, Chung-Cheng Chiu, Barret Zoph, Ekin D. Cubuk, and Quoc V. Le. Specaugment: A simple data augmentation method for automatic speech recognition, 2019.
245
+
246
+ Mirco Ravanelli, Philemon Brakel, Maurizio Omologo, and Yoshua Bengio. Light gated recurrent units for speech recognition. IEEE Transactions on Emerging Topics in Computational Intelligence, 2(2):92–102, 2018.
247
+
248
+ Steffen Schneider, Alexei Baevski, Ronan Collobert, and Michael Auli. wav2vec: Unsupervised pre-training for speech recognition. CoRR, abs/1904.05862, 2019. URL http://arxiv. org/abs/1904.05862.
249
+
250
+ Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proc. of ACL, 2016.
251
+
252
+ Tim Terriberry and Koen Vos. Definition of the opus audio codec, 2012.
253
+
254
+ Andros Tjandra, Berrak Sisman, Mingyang Zhang, Sakriani Sakti, Haizhou Li, and Satoshi Nakamura. Vqvae unsupervised unit discovery and multi-scale code2spec inverter for zerospeech challenge 2019. arXiv, 1905.11449, 2019.
255
+
256
+ Aaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6306–6315, 2017.
257
+
258
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predic- ¨ tive coding. arXiv, abs/1807.03748, 2018.
259
+
260
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proc. of NIPS, 2017.
261
+
262
+ Maarten Versteegh, Xavier Anguera, Aren Jansen, and Emmanuel Dupoux. The zero resource speech challenge 2015: Proposed approaches and results. Procedia Computer Science, 81:67– 72, 2016.
263
+
264
+ Yuxin Wu and Kaiming He. Group normalization. arXiv, abs/1803.08494, 2018.
265
+
266
+ Neil Zeghidour, Nicolas Usunier, Iasonas Kokkinos, Thomas Schaiz, Gabriel Synnaeve, and Emmanuel Dupoux. Learning filterbanks from raw speech for phone recognition. In Proc. of (ICASSP), 2018.
267
+
268
+ # APPENDIX A NUMBER OF VARIABLES VS. GROUPS
269
+
270
+ We investigate the relationship between number of variables $V$ and groups $G$ . Table 6 shows that multiple groups are beneficial compared to a single group with a large number of variables. Table 7 shows that with a single group and many variables, only a small number of codewords survive.
271
+
272
+ <table><tr><td>V</td><td>1 group</td><td>2 groups</td><td>4 groups</td><td>8 groups</td><td>16 groups</td><td>32 groups</td></tr><tr><td>40</td><td>33.44 ± 0.24</td><td>23.52 ± 0.53</td><td>18.76 ± 0.20</td><td>17.43 ± 0.14</td><td>15.97 ± 0.21</td><td>15.44 ± 0.32</td></tr><tr><td>80</td><td>29.14 ± 0.70</td><td>25.36 ± 4.62</td><td>17.32 ± 0.28</td><td>16.36 ± 0.27</td><td>17.55 ± 0.27</td><td>15.49 ± 0.14</td></tr><tr><td>160</td><td></td><td>24.27 ± 0.35</td><td>17.55 ± 0.03</td><td>16.36 ± 0.13</td><td>15.64 ± 0.03</td><td>15.11 ± 0.10</td></tr><tr><td>320</td><td>27.22 ± 0.25</td><td>20.86 ± 0.09</td><td>16.49 ± 0.07</td><td>15.88 ± 0.10</td><td>15.74 ± 0.18</td><td>15.18 ± 0.02</td></tr><tr><td>640</td><td>26.53 ± 2.02</td><td>18.64 ± 0.12</td><td>16.60 ± 0.22</td><td>15.62 ± 0.16</td><td>15.45 ± 0.13</td><td>15.54 ± 0.31</td></tr><tr><td>1280</td><td>32.63 ± 5.73</td><td>18.04 ± 0.26</td><td>16.37 ± 0.07</td><td>15.85 ± 0.05</td><td>15.13 ± 0.29</td><td>15.18 ± 0.05</td></tr></table>
273
+
274
+ Table 6: PER on TIMIT dev set for vq-wav2vec models trained on Libri100. Results are based on three random seeds.
275
+
276
+ <table><tr><td>V</td><td>1 group</td><td>2 groups</td><td>4 groups</td><td>8 groups</td><td>16 groups</td><td>32 groups</td></tr><tr><td>40</td><td>100 % (40)</td><td>95.3 % (1.6k)</td><td>27.4 % (2.56M)</td><td>74.8 % (39.9M)</td><td>99.6 % (39.9M)</td><td>99.9 % (39.9M)</td></tr><tr><td>80</td><td>92.5% (80)</td><td>78.5% (6.4k)</td><td>11.8 % (39.9M)</td><td>91.5 % (39.9M)</td><td>99.3% (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>160</td><td>95 % (160)</td><td>57.2% (25.6k)</td><td>35.2 % (39.9M)</td><td>97.6 % (39.9M)</td><td>99.8 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>320</td><td>33.8% (320)</td><td>24.6 % (102.4k)</td><td>57.3 % (39.9M)</td><td>98.7 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>640</td><td>24.6% (640)</td><td>10 % (409.6k)</td><td>60.2 % (39.9M)</td><td>99.3 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>1280</td><td>7.2% (1.28k)</td><td>4.9 % (1.63M)</td><td>67.9 % (39.9M)</td><td>99.5 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr></table>
277
+
278
+ Table 7: Fraction of used codewords vs. number of theoretically possible codewords $V ^ { G }$ in brackets; $3 9 . 9 \mathbf { M }$ is the number of tokens in Librispeech $1 0 0 \mathrm { { h } }$ .
parse/train/rylwJxrYDS/rylwJxrYDS_content_list.json ADDED
@@ -0,0 +1,1517 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VQ-WAV2VEC: SELF-SUPERVISED LEARNING OF DISCRETE SPEECH REPRESENTATIONS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 754,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Alexei Baevski∗4 Steffen Schneider∗5† Michael Auli4 4 Facebook AI Research, Menlo Park, CA, USA $\\bigtriangledown$ University of Tubingen, Germany ¨ ",
17
+ "bbox": [
18
+ 181,
19
+ 169,
20
+ 617,
21
+ 214
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 251,
32
+ 544,
33
+ 266
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We propose vq-wav2vec to learn discrete representations of audio segments through a wav2vec-style self-supervised context prediction task. The algorithm uses either a Gumbel-Softmax or online $\\mathbf { k }$ -means clustering to quantize the dense representations. Discretization enables the direct application of algorithms from the NLP community which require discrete inputs. Experiments show that BERT pre-training achieves a new state of the art on TIMIT phoneme classification and WSJ speech recognition.1 ",
40
+ "bbox": [
41
+ 233,
42
+ 284,
43
+ 764,
44
+ 381
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 410,
55
+ 336,
56
+ 426
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Learning discrete representations of speech has gathered much recent interest (Versteegh et al., 2016; Dunbar et al., 2019). A popular approach to discover discrete units is via autoencoding (Tjandra et al., 2019; Eloff et al., 2019; Chorowski et al., 2019) sometimes coupled with an autoregressive model (Chung et al., 2019). Another line of research is to learn continuous speech representations in a self-supervised way via predicting context information (Chung & Glass, 2018; van den Oord et al., 2018; Schneider et al., 2019). ",
63
+ "bbox": [
64
+ 173,
65
+ 444,
66
+ 825,
67
+ 527
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we combine these two lines of research by learning discrete representations of speech via a context prediction task instead of reconstructing the input. This enables us to directly apply well performing NLP algorithms to speech data (Figure 1a). ",
74
+ "bbox": [
75
+ 174,
76
+ 534,
77
+ 823,
78
+ 577
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/86edb3a37578dfa8b9f0740a1d208509f0b19ccd6f8ec50c3ef988eb4c858f82.jpg",
85
+ "image_caption": [
86
+ "Figure 1: (a) The vq-wav2vec encoder maps raw audio $( \\mathcal { X } )$ to a dense representation $( { \\mathcal { Z } } )$ which is quantized (q) to $\\hat { \\mathcal { Z } }$ and aggregated into context representations $( \\mathcal { C } )$ ; training requires future time step prediction. (b) Acoustic models are trained by quantizing the raw audio with vq-wav2vec, then applying BERT to the discretized sequence and feeding the resulting representations into the acoustic model to output transcriptions. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 183,
91
+ 592,
92
+ 799,
93
+ 742
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Our new discretization algorithm, vq-wav2vec, learns discrete representations of fixed length segments of audio signal by utilizing the wav2vec loss and architecture (Schneider et al, 2019; $\\ S 2$ ). To choose the discrete variables, we consider a Gumbel-Softmax approach (Jang et al., 2016) as well as online k-means clustering, similar to VQ-VAE (Oord et al., 2017; Eloff et al., 2019; §3). ",
100
+ "bbox": [
101
+ 174,
102
+ 842,
103
+ 823,
104
+ 871
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 173,
113
+ 103,
114
+ 823,
115
+ 132
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "We then train a Deep Bidirectional Transformer (BERT; Devlin et al., 2018; Liu et al., 2019) on the discretized unlabeled speech data and input these representations to a standard acoustic model (Figure 1b; $\\ S 4 _ { , }$ ). Our experiments show that BERT representations perform better than log-mel filterbank inputs as well as dense wav2vec representations on both TIMIT and WSJ benchmarks. Discretization of audio enables the direct application of a whole host of algorithms from the NLP literature to speech data. For example, we show that a standard sequence to sequence model from the NLP literature can be used to perform speech recognition over discrete audio tokens (§5, §6). ",
122
+ "bbox": [
123
+ 174,
124
+ 138,
125
+ 825,
126
+ 236
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 BACKGROUND ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 176,
136
+ 256,
137
+ 326,
138
+ 273
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "2.1 WAV2VEC ",
145
+ "text_level": 1,
146
+ "bbox": [
147
+ 174,
148
+ 289,
149
+ 282,
150
+ 303
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "wav2vec (Schneider et al., 2019) learns representations of audio data by solving a self-supervised context-prediction task with the same loss function as word2vec (Mikolov et al., 2013; van den Oord et al., 2018). The model is based on two convolutional neural networks where the the encoder produces a representation $\\mathbf { z } _ { i }$ for each time step $i$ at a rate of $1 0 0 ~ \\mathrm { H z }$ and the aggregator combines multiple encoder time steps into a new representation $\\mathbf { c } _ { i }$ for each time step $i$ . Given an aggregated representation $\\mathbf { c } _ { i }$ , the model is trained to distinguish a sample $\\mathbf { z } _ { i + k }$ that is $k$ steps in the future from distractor samples $\\tilde { \\mathbf { z } }$ drawn from a distribution $p _ { n }$ , by minimizing the contrastive loss for steps $k = 1 , \\ldots , K$ : ",
157
+ "bbox": [
158
+ 173,
159
+ 314,
160
+ 825,
161
+ 426
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "equation",
167
+ "img_path": "images/00a4189605dfc7224afdf60c2ff6830ba347e76b426ef9d7924acf3640d8eece.jpg",
168
+ "text": "$$\n\\mathcal { L } _ { k } ^ { \\mathrm { w a v 2 v e c } } = - \\sum _ { i = 1 } ^ { T - k } \\Big ( \\log \\sigma ( \\mathbf { z } _ { i + k } ^ { \\top } h _ { k } ( \\mathbf { c } _ { i } ) ) + \\underset { \\ b { \\tilde { \\mathbf { z } } } \\sim p _ { n } } { \\mathbb { E } } [ \\log \\sigma ( - \\tilde { \\mathbf { z } } ^ { \\top } h _ { k } ( \\mathbf { c } _ { i } ) ) ] \\Big )\n$$",
169
+ "text_format": "latex",
170
+ "bbox": [
171
+ 272,
172
+ 433,
173
+ 722,
174
+ 477
175
+ ],
176
+ "page_idx": 1
177
+ },
178
+ {
179
+ "type": "text",
180
+ "text": "where $T$ is the sequence length, $\\sigma ( x ) ~ = ~ 1 / ( 1 + \\exp ( - x ) )$ , and where $\\sigma ( \\mathbf { z } _ { i + k } ^ { \\top } h _ { k } ( \\mathbf { c } _ { i } ) )$ is the probability of $\\mathbf { z } _ { i + k }$ being the true sample. We consider a step-specific affine transformation $h _ { k } ( \\mathbf { c } _ { i } ) \\ : = \\ : W _ { k } \\mathbf { c } _ { i } + \\mathbf { b } _ { k }$ that is applied to $\\mathbf { c } _ { i }$ (van den Oord et al., 2018). We optimize the loss $\\begin{array} { r } { \\mathcal { L } = \\sum _ { k = 1 } ^ { K } \\mathcal { L } _ { k } } \\end{array}$ , summing (1) over different step sizes. After training, the representations produced by the context network $\\mathbf { c } _ { i }$ are input to the acoustic model instead of log-mel filterbank features. ",
181
+ "bbox": [
182
+ 173,
183
+ 484,
184
+ 825,
185
+ 559
186
+ ],
187
+ "page_idx": 1
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "2.2 BERT ",
192
+ "text_level": 1,
193
+ "bbox": [
194
+ 174,
195
+ 575,
196
+ 259,
197
+ 589
198
+ ],
199
+ "page_idx": 1
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "BERT (Devlin et al., 2018) is a pre-training approach for NLP tasks, which uses a transformer encoder model to build a representation of text. Transformers uses self-attention to encode the input sequence as well as an optional source sequence (Vaswani et al., 2017). The original BERT model combined two tasks for training: first, masked language modeling randomly removes some of the input tokens and the model has to predict those missing tokens. Second, next sentence prediction splices two different text passages together into a single example and the model needs to predict whether the passages are from the same document. ",
204
+ "bbox": [
205
+ 174,
206
+ 601,
207
+ 825,
208
+ 699
209
+ ],
210
+ "page_idx": 1
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "3 VQ-WAV2VEC ",
215
+ "text_level": 1,
216
+ "bbox": [
217
+ 176,
218
+ 718,
219
+ 331,
220
+ 736
221
+ ],
222
+ "page_idx": 1
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "Our approach, vq-wav2vec, learns vector quantized (VQ) representations of audio data using a future time-step prediction task. We follow the same architectual choices as wav2vec $( \\ S 2 . 1 )$ with two convolutional networks $f : \\mathcal X \\mapsto \\mathcal Z$ and $g : \\hat { \\mathcal { Z } } \\mapsto \\mathcal { C }$ for feature extraction and aggregation, as well as a new quantization module $q : \\mathcal { Z } \\mapsto \\hat { \\mathcal { Z } }$ to build discrete representations (Figure 1a). ",
227
+ "bbox": [
228
+ 174,
229
+ 751,
230
+ 823,
231
+ 811
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "We first map $3 0 \\mathrm { m s }$ segments of raw speech to a dense feature representation $\\mathbf { z }$ at a stride of $1 0 \\mathrm { m s }$ using the encoder network $f$ . Next, the quantizer $( q )$ turns these dense representations into discrete indices which are mapped to a reconstruction $\\hat { \\mathbf { z } }$ of the original representation $\\mathbf { z }$ . We feed $\\hat { \\mathbf { z } }$ into the aggregator $g$ and optimize the same context prediction task as wav2vec outlined in $\\ S 2 . 1$ . ",
238
+ "bbox": [
239
+ 174,
240
+ 818,
241
+ 825,
242
+ 875
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "The quantization module replaces the original representation $\\mathbf { z }$ by $\\hat { \\mathbf { z } } = \\mathbf { e } _ { i }$ from a fixed size codebook $\\mathbf { e } \\in { \\dot { \\mathbb { R } } } ^ { V \\times d }$ which contains $V$ representations of size $d$ . We consider the Gumbel-Softmax which is a differentiable approximation of the argmax for computing one-hot representations $\\ 8 3 . 1$ ; Figure 2a) ",
249
+ "bbox": [
250
+ 176,
251
+ 881,
252
+ 823,
253
+ 924
254
+ ],
255
+ "page_idx": 1
256
+ },
257
+ {
258
+ "type": "image",
259
+ "img_path": "images/b84b2048219dbcb8e1923e6a38273d68fd55cd2e07be0807a17f530a48662446.jpg",
260
+ "image_caption": [
261
+ "Figure 2: (a) The Gumbel-Softmax quantization computes logits representing the codebook vectors (e). In the forward pass the argmax codeword $\\left( \\mathbf { e } _ { 2 } \\right)$ is chosen and for backward (not shown) the exact probabilities are used. (b) K-means vector quantization computes the distance to all codeword vector and chooses the closest (argmin). "
262
+ ],
263
+ "image_footnote": [],
264
+ "bbox": [
265
+ 204,
266
+ 99,
267
+ 795,
268
+ 282
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "as well as online $\\mathbf { k }$ -means clustering, similar to the vector quantized variational autoencoder (VQVAE; Oord et al., 2017; $\\ S 3 . 2$ ; Figure 2b). Finally, we perform multiple vector quantizations over different parts of $\\mathbf { z }$ to mitigate mode collapse (§3.3). ",
275
+ "bbox": [
276
+ 174,
277
+ 377,
278
+ 821,
279
+ 421
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "3.1 GUMBEL-SOFTMAX ",
286
+ "text_level": 1,
287
+ "bbox": [
288
+ 176,
289
+ 439,
290
+ 352,
291
+ 453
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "The Gumbel-Softmax (Gumbel, 1954; Jang et al., 2016; Maddison et al., 2014) enables selecting discrete codebook variables in a fully differentiable way and we use the straight-through estimator of Jang et al. (2016). Given the dense representation $\\mathbf { z }$ , we apply a linear layer, followed by a ReLU and another linear which outputs $1 \\in \\mathbb { R } ^ { V }$ logits for the Gumbel-Softmax. At inference, we simply pick the largest index in $l$ . At training, the output probabilities for choosing the $j$ -th variable are ",
298
+ "bbox": [
299
+ 173,
300
+ 464,
301
+ 825,
302
+ 536
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/1dceea2e6a6552d92068bd18f51a882b490b04217a9e52dd933d779c83e0d70e.jpg",
309
+ "text": "$$\np _ { j } = \\frac { \\exp ( l _ { j } + v _ { j } ) / \\tau } { \\sum _ { k = 1 } ^ { V } \\exp ( l _ { k } + v _ { k } ) / \\tau } ,\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 400,
313
+ 553,
314
+ 598,
315
+ 592
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "where $v = - \\log ( - \\log ( u ) )$ and $u$ are uniform samples from $\\mathcal { U } ( 0 , 1 )$ . During the forward pass, $i = \\mathrm { a r g m a x } _ { j } p _ { j }$ and in the backward pass, the true gradient of the Gumbel-Softmax outputs is used. ",
322
+ "bbox": [
323
+ 174,
324
+ 595,
325
+ 823,
326
+ 625
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "3.2 K-MEANS ",
333
+ "text_level": 1,
334
+ "bbox": [
335
+ 174,
336
+ 642,
337
+ 287,
338
+ 656
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "The vector quantization approach of van den Oord et al. (2017) is an alternative to making the index selection procedure fully differentiable. Different to their setup, we optimize a future time step prediction loss instead of the reconstruction loss of an autoencoder. ",
345
+ "bbox": [
346
+ 174,
347
+ 667,
348
+ 825,
349
+ 710
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "We choose the codebook variable representation by finding the closest variable to the input features $\\mathbf { z }$ in terms of the Euclidean distance, yielding $i = \\mathrm { a r g m i n } _ { j } \\| \\mathbf { z } - \\mathbf { e } _ { j } \\| _ { 2 } ^ { 2 }$ . During the forward pass, we select $\\hat { \\mathbf { z } } = \\mathbf { e } _ { i }$ by choosing the corresponding variable from the codebook. We obtain gradients for the encoder network by back-propagating $\\mathrm { d } \\bar { \\mathcal { L } } ^ { \\mathrm { w a v 2 v e c } } / \\mathrm { d } \\hat { \\mathbf { z } }$ (van den Oord et al., 2017). The final loss has two additional terms: ",
356
+ "bbox": [
357
+ 174,
358
+ 717,
359
+ 825,
360
+ 787
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "equation",
366
+ "img_path": "images/8eba2e4e439752fac583a9a844799a231d362c7d74a29660e8685c7cf5affe3d.jpg",
367
+ "text": "$$\n\\mathcal { L } = \\sum _ { k = 1 } ^ { K } \\mathcal { L } _ { k } ^ { \\mathrm { w a v 2 v e c } } + \\Big ( \\| \\mathbf { s g } ( \\mathbf { z } ) - \\hat { \\mathbf { z } } \\| ^ { 2 } + \\gamma \\| \\mathbf { z } - \\mathbf { s g } ( \\hat { \\mathbf { z } } ) \\| ^ { 2 } \\Big ) ,\n$$",
368
+ "text_format": "latex",
369
+ "bbox": [
370
+ 316,
371
+ 792,
372
+ 679,
373
+ 837
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "where $\\operatorname { s g } ( x ) \\equiv x$ , $\\begin{array} { r } { \\frac { \\mathrm { d } } { \\mathrm { d } x } \\mathbf { s } \\mathbf { g } ( x ) \\equiv 0 } \\end{array}$ is the stop gradient operator and $\\gamma$ is a hyperparameter. The first term is the future prediction task and gradients do not change the codebook because of the straightthrough gradient estimation of mapping $\\mathbf { z }$ to $\\hat { \\mathbf { z } }$ . The second term $\\| \\mathbf { s g } ( \\mathbf { z } ) - \\hat { \\mathbf { z } } \\| ^ { 2 }$ moves the codebook vectors closer to the encoder output, and the third term $\\| \\mathbf { z } - \\mathrm { s g } ( \\hat { \\mathbf { z } } ) \\| ^ { 2 }$ makes sure that the encoder outputs are close to a centroid (codeword). ",
380
+ "bbox": [
381
+ 174,
382
+ 853,
383
+ 825,
384
+ 924
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "3.3 VECTOR QUANTIZATION WITH MULTIPLE VARIABLE GROUPS",
391
+ "text_level": 1,
392
+ "bbox": [
393
+ 183,
394
+ 104,
395
+ 635,
396
+ 117
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "So far, we considered replacing the encoder feature vector $\\mathbf { z }$ by a single entry $\\mathbf { e } _ { i }$ in the codebook. This is prone to mode collapse where only some of the codewords are actually used. Previously, this problem has been mitigated by workarounds such as re-initializing codewords or applying additional regularizers to the loss function (Caron et al., 2019). In the following, we describe another strategy where we independently quantize partitions of $\\mathbf { z }$ , similar to product quantization (Jegou et al., 2011). This results in larger dictionaries and increased downstream performance (Appendix A). ",
403
+ "bbox": [
404
+ 174,
405
+ 128,
406
+ 823,
407
+ 213
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "The dense feature vector $\\textbf { z } \\in \\mathbb { R } ^ { d }$ is first organized into multiple groups $G$ into the matrix form $\\mathbf { z } ^ { \\prime } \\in \\mathbb { R } ^ { G \\times ( d / G ) }$ . We then represent each row by an integer index, and hence can represent the full feature vector by the indices $\\mathbf { \\hat { i } } \\in [ V ] ^ { G }$ , where $V$ again denotes the possible number of variables for this particular group and each element $\\mathbf { i } _ { j }$ corresponds to a fixed codebook vector. For each of the $G$ groups, we apply either one of the two VQ approaches $\\ S 3 . 1$ and $\\ S 3 . 2 )$ . ",
414
+ "bbox": [
415
+ 174,
416
+ 219,
417
+ 823,
418
+ 291
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "The codebook itself can be initialized in two possible ways: Codebook variables can be shared across groups, i.e., a particular index in group $j$ would reference the same vector as the same index in group $j ^ { \\prime }$ . This yields a codebook $\\mathbf { e } \\in \\mathbb { R } ^ { V \\times ( d / G ) }$ . In contrast, not sharing the codebook variables yields a codebook of size $\\mathbf { e } \\in \\mathbb { R } ^ { V \\times G \\times ( d / G ) }$ . In practise, we observe that sharing the codebook variables generally yields competitive results to a non-shared representation. ",
425
+ "bbox": [
426
+ 174,
427
+ 297,
428
+ 825,
429
+ 371
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "4 BERT PRE-TRAINING ON QUANTIZED SPEECH ",
436
+ "text_level": 1,
437
+ "bbox": [
438
+ 174,
439
+ 390,
440
+ 598,
441
+ 406
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Once we trained a vq-wav2vec model we can discretize audio data and make it applicable to algorithms that require discrete inputs. One possibility is to use the discretized training data and apply BERT pre-training where the task is to predict masked input tokens based on an encoding of the surrounding context (Devlin et al., 2018). Once the BERT model is trained, we can use it to build representations and feed them into an acoustic model to improve speech recognition. We follow recent advances in BERT training which only use the masked input token prediction (Liu et al., 2019). ",
448
+ "bbox": [
449
+ 174,
450
+ 421,
451
+ 825,
452
+ 518
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "Since each of the discretized tokens represents around $1 0 \\mathrm { m s }$ of audio it is likely too easy to predict a single masked input token. We therefore change BERT training by masking spans of consecutive discretized speech tokens, similar to Joshi et al. (2019). To mask the input sequence, we randomly sample $p = 0 . 0 5$ of all tokens to be a starting index, without replacement, and mask $M = 1 0$ consecutive tokens from every sampled index; spans may overlap. This makes the masked token prediction harder and we show later that it improves accuracy over masking individual tokens $( \\ S 6 . 5 )$ . ",
459
+ "bbox": [
460
+ 174,
461
+ 526,
462
+ 825,
463
+ 609
464
+ ],
465
+ "page_idx": 3
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "5 EXPERIMENTAL SETUP ",
470
+ "text_level": 1,
471
+ "bbox": [
472
+ 176,
473
+ 628,
474
+ 398,
475
+ 645
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "5.1 DATASETS ",
482
+ "text_level": 1,
483
+ "bbox": [
484
+ 174,
485
+ 660,
486
+ 287,
487
+ 674
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "We generally pre-train vq-wav2vec and BERT on the full 960h of Librispeech (Panayotov et al., 2015) and after vq-wav2vec training it is discretized to 345M tokens. Where indicated we perform ablations on a clean 100h subset which is discretized to 39.9M tokens. We evaluate models on two benchmarks: TIMIT (Garofolo et al., 1993b) is a 5h dataset with phoneme labels and Wall Street Journal (WSJ; Garofolo et al. 1993a) is a 81h dataset for speech recognition. For TIMIT, we apply the standard evaluation protocol and consider 39 different phonemes. For WSJ, we train acoustic models directly on 31 graphemes, including the English alphabet, the apostrophe, the silence token and tokens for repeating characters. ",
494
+ "bbox": [
495
+ 174,
496
+ 685,
497
+ 825,
498
+ 797
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "5.2 VQ-WAV2VEC ",
505
+ "text_level": 1,
506
+ "bbox": [
507
+ 176,
508
+ 814,
509
+ 308,
510
+ 828
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "We adapt the fairseq implementation of wav2vec (Schneider et al., 2019; Ott et al., 2019) and use vqwav2vec/wav2vec models with $3 4 \\times 1 0 ^ { 6 }$ parameters. The encoder has 8 layers with 512 channels each, kernel sizes (10,8,4,4,4,1,1,1) and strides (5,4,2,2,2,1,1,1), yielding a total stride of 160. Each layer contains a convolution, followed by dropout, group normalization with a single group (Wu & He, 2018) and a ReLU non-linearity. The aggregator is composed of 12 layers, with 512 channels, stride 1, and kernel sizes starting at 2 and increasing by 1 for every subsequent layer. The block structure is the same as for the encoder network, except we introduce skip connections between each subsequent block. ",
517
+ "bbox": [
518
+ 174,
519
+ 840,
520
+ 823,
521
+ 924
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "",
528
+ "bbox": [
529
+ 174,
530
+ 103,
531
+ 823,
532
+ 132
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "We train with the wav2vec context prediction loss (Equation 1) for $4 0 0 \\mathrm { k }$ updates, predicting $K = 8$ steps into the future and sample 10 negatives from the same audio example. Training is warmed up for 500 steps where the learning rate is increased from $1 \\times 1 0 ^ { - 7 }$ to $5 \\times 1 0 ^ { - 3 }$ , and then annealed to $1 \\times 1 0 ^ { - 6 }$ using a cosine schedule (Loshchilov & Hutter, 2016). The batch size is 10, and we crop a random section of $1 5 0 \\mathrm { k }$ frames for each example (approximately 9.3 seconds for 16kHz sampling rate). All models are trained on 8 GPUs. ",
539
+ "bbox": [
540
+ 174,
541
+ 138,
542
+ 825,
543
+ 222
544
+ ],
545
+ "page_idx": 4
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "For ablations and experiments on the 100h Librispeech subset, we use a smaller model with kernels (10,8,4,4,4) and strides (5,4,2,2,2) in the encoder and seven convolutional layers with stride one and kernel size three in the aggregator. This model is trained for $4 0 \\mathrm { k }$ updates. ",
550
+ "bbox": [
551
+ 178,
552
+ 229,
553
+ 821,
554
+ 272
555
+ ],
556
+ "page_idx": 4
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Gumbel-Softmax Models. We use $G = 2$ groups and $V = 3 2 0$ latents per group and the linear layer projects the features produced by the encoder into $G \\cdot V = 6 4 0$ logits. The Gumbel-Softmax produces a one-hot vector for each group $G$ . The temperature $\\tau$ is linearly annealed from 2 to 0.5 over the first $70 \\%$ of updates and then kept constant at 0.5. This enables the model to learn which latents work best for each input before committing to a single latent. After training this model on 960h of Librispeech and quantizing the training dataset, we are left with $1 3 . 5 \\mathrm { k }$ unique codewords combinations (out of $V ^ { G } = 1 0 2 \\mathrm { k \\Omega }$ possible codewords). ",
561
+ "bbox": [
562
+ 174,
563
+ 286,
564
+ 825,
565
+ 385
566
+ ],
567
+ "page_idx": 4
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "$\\mathbf { k }$ -means Models. We use $G = 2$ groups and $V = 3 2 0$ variables per group. vq-wav2vec on full Librispeech yields $2 3 \\mathrm { k }$ unique codewords. Following van den Oord et al. (2017), we found $\\gamma = 0 . 2 5$ to be a robust choice for balancing the VQ auxiliary loss. ",
572
+ "bbox": [
573
+ 174,
574
+ 400,
575
+ 825,
576
+ 443
577
+ ],
578
+ "page_idx": 4
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "5.3 BERT ",
583
+ "text_level": 1,
584
+ "bbox": [
585
+ 174,
586
+ 458,
587
+ 258,
588
+ 473
589
+ ],
590
+ "page_idx": 4
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "BERT base models have 12 layers, model dimension 768, inner dimension (FFN) 3072 and 12 attention heads (Devlin et al., 2018). The learning rate is warmed up over the first 10,000 updates to a peak value of $1 \\times 1 0 ^ { - 5 }$ , and then linearly decayed over a total of $2 5 0 \\mathrm { k }$ updates. We train on 128 GPUs with a batch size of 3072 tokens per GPU giving a total batch size of $3 9 3 \\mathrm { k }$ tokens (Ott et al., 2018). Each token represents $1 0 \\mathrm { m s }$ of audio data. ",
595
+ "bbox": [
596
+ 174,
597
+ 484,
598
+ 825,
599
+ 554
600
+ ],
601
+ "page_idx": 4
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "BERT small. For ablations we use a smaller setup with model dimension 512, FFN size 2048, 8 attention heads and dropout 0.05. Models are trained for 250k updates with a batch size of 2 examples per GPU. ",
606
+ "bbox": [
607
+ 174,
608
+ 561,
609
+ 825,
610
+ 604
611
+ ],
612
+ "page_idx": 4
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "5.4 ACOUSTIC MODEL ",
617
+ "text_level": 1,
618
+ "bbox": [
619
+ 176,
620
+ 621,
621
+ 344,
622
+ 635
623
+ ],
624
+ "page_idx": 4
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "We use wav2letter as accoustic model (Collobert et al., 2016; 2019) and train for 1,000 epochs on 8 GPUs for both TIMIT and WSJ using the auto segmentation criterion. For decoding the emissions from the acoustic model on WSJ we use a lexicon as well as a separate language model trained on the WSJ language modeling data only. We consider a 4-gram KenLM language model (Heafield et al., 2013) and a character based convolutional language model (Likhomanenko et al., 2019) and tune the models with the same protocol as Schneider et al. (2019). ",
629
+ "bbox": [
630
+ 174,
631
+ 646,
632
+ 825,
633
+ 731
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "6 RESULTS ",
640
+ "text_level": 1,
641
+ "bbox": [
642
+ 174,
643
+ 751,
644
+ 281,
645
+ 767
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "6.1 WSJ SPEECH RECOGNITION ",
652
+ "text_level": 1,
653
+ "bbox": [
654
+ 176,
655
+ 782,
656
+ 411,
657
+ 796
658
+ ],
659
+ "page_idx": 4
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "We first evaluate on the WSJ speech recognition benchmark. We train a vq-wav2vec model on the unlabeled version of Librispeech, then discretize the same data with the resulting model to estimate a BERT model. Finally, we train a wav2letter acoustic model on WSJ by inputting either the BERT or vq-wav2vec representations instead of log-mel filterbanks.2 ",
664
+ "bbox": [
665
+ 174,
666
+ 809,
667
+ 823,
668
+ 864
669
+ ],
670
+ "page_idx": 4
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "We compare to various results from the literature, including wav2vec (Schneider et al., 2019) and we consider three setups: performance without any language model (No LM), with an n-gram LM (4-gram LM) and with a character convolutional LM (Char ConvLM). We report the accuracy of wav2letter with log-mel filterbanks as input (Baseline) and wav2vec. For vq-wav2vec we first experiment with the Gumbel-Softmax, with and without a BERT base model (§5.3). ",
675
+ "bbox": [
676
+ 176,
677
+ 871,
678
+ 825,
679
+ 900
680
+ ],
681
+ "page_idx": 4
682
+ },
683
+ {
684
+ "type": "table",
685
+ "img_path": "images/d118865a1a77c4ae2eea5a245d60cca20abb1d19c278e59c8c89e9c9a8dc6e99.jpg",
686
+ "table_caption": [
687
+ "Table 1: WSJ accuracy of vq-wav2vec on the development (nov93dev) and test set (nov92) in terms of letter error rate (LER) and word error rate (WER) without language modeling (No LM), a 4-gram LM and a character convolutional LM. vq-wav2vec with BERT pre-training improves over the best wav2vec model (Schneider et al., 2019). "
688
+ ],
689
+ "table_footnote": [],
690
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">nov93dev</td><td colspan=\"2\">nov92</td></tr><tr><td>LER</td><td>WER</td><td>LER</td><td>WER</td></tr><tr><td>Deep Speech 2 (12K h labeled speech; Amodei et al., 2016)</td><td>1</td><td>4.42</td><td>1</td><td>3.1</td></tr><tr><td>Trainable frontend (Zeghidour et al., 2018)</td><td></td><td>6.8</td><td>=</td><td>3.5</td></tr><tr><td>Lattice-free MMI (Hadian et al., 2018)</td><td></td><td>5.66t</td><td></td><td>2.8†</td></tr><tr><td>Supervised transfer-learning (Ghahremani et al., 2017)</td><td></td><td>4.99t</td><td>1</td><td>2.53†</td></tr><tr><td>No LM</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>6.28</td><td>19.46</td><td>4.14</td><td>13.93</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>5.07</td><td>16.24</td><td>3.26</td><td>11.20</td></tr><tr><td>vq-wav2vec Gumbel</td><td>7.04</td><td>20.44</td><td>4.51</td><td>14.67</td></tr><tr><td>+BERT base</td><td>4.13</td><td>13.40</td><td>2.62</td><td>9.39</td></tr><tr><td>4-GRAM LM (Heafield et al., 2013)</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>3.32</td><td>8.57</td><td>2.19</td><td>5.64</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.73</td><td>6.96</td><td>1.57</td><td>4.32</td></tr><tr><td>vq-wav2vec Gumbel</td><td>3.93</td><td>9.55</td><td>2.40</td><td>6.10</td></tr><tr><td>+ BERT base</td><td>2.41</td><td>6.28</td><td>1.26</td><td>3.62</td></tr><tr><td>CHAR CoNvLM (Likhomanenko et al., 2019)</td><td></td><td></td><td></td><td></td></tr><tr><td>Baseline (log-mel)</td><td>2.77</td><td>6.67</td><td>1.53</td><td>3.46</td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.11</td><td>5.10</td><td>0.99</td><td>2.43</td></tr><tr><td>vq-wav2vec Gumbel + BERT base</td><td>1.79</td><td>4.46</td><td>0.93</td><td>2.34</td></tr></table>",
691
+ "bbox": [
692
+ 186,
693
+ 101,
694
+ 813,
695
+ 415
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "table",
701
+ "img_path": "images/4b3c129e0bd2739d3e1368429d46418beeec408813e6cccf6968ac59c10b0a82.jpg",
702
+ "table_caption": [
703
+ "Table 2: Comparison of Gumbel-Softmax and k-means vector quantization on WSJ (cf. Table 1). "
704
+ ],
705
+ "table_footnote": [],
706
+ "table_body": "<table><tr><td></td><td colspan=\"2\">nov93dev</td><td colspan=\"2\">nov92</td></tr><tr><td></td><td>LER</td><td>WER</td><td>LER</td><td>WER</td></tr><tr><td>No LM</td><td></td><td></td><td></td><td></td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>5.07</td><td>16.24</td><td>3.26</td><td>11.20</td></tr><tr><td>vq-wav2vec Gumbel</td><td>7.04</td><td>20.44</td><td>4.51</td><td>14.67</td></tr><tr><td>+ BERT small</td><td>4.52</td><td>14.14</td><td>2.81</td><td>9.69</td></tr><tr><td>vq-wav2vec k-means (39M codewords)</td><td>5.41</td><td>17.11</td><td>3.63</td><td>12.17</td></tr><tr><td>vq-wav2vec k-means</td><td>7.33</td><td>21.64</td><td>4.72</td><td>15.17</td></tr><tr><td>+ BERT small</td><td>4.31</td><td>13.87</td><td>2.70</td><td>9.62</td></tr><tr><td>4-GRAM LM (Heafield et al., 2013)</td><td></td><td></td><td></td><td></td></tr><tr><td>wav2vec (Schneider et al., 2019)</td><td>2.73</td><td>6.96</td><td>1.57</td><td>4.32</td></tr><tr><td>vq-wav2vec Gumbel</td><td>3.93</td><td>9.55</td><td>2.40</td><td>6.10</td></tr><tr><td>+ BERT small</td><td>2.67</td><td>6.67</td><td>1.46</td><td>4.09</td></tr><tr><td>vq-wav2vec k-means (39M codewords)</td><td>3.05</td><td>7.74</td><td>1.71</td><td>4.82</td></tr><tr><td>vq-wav2vec k-means</td><td>4.37</td><td>10.26</td><td>2.28</td><td>5.71</td></tr><tr><td>+ BERT small</td><td>2.60</td><td>6.62</td><td>1.45</td><td>4.08</td></tr></table>",
707
+ "bbox": [
708
+ 251,
709
+ 502,
710
+ 746,
711
+ 746
712
+ ],
713
+ "page_idx": 5
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "",
718
+ "bbox": [
719
+ 176,
720
+ 804,
721
+ 821,
722
+ 847
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "Table 1 shows that vq-wav2vec together with BERT training can achieve a new state of the art of 2.34 WER on nov92. Gains are largest when no language model is used which is the fastest setting. vq-wav2vec with Gumbel-Softmax uses only $1 3 . 5 \\mathrm { k }$ distinct codewords to represent the audio signal and this limited set of codewords is not sufficient to outperform the baseline. However, it does enable training BERT models which require a relatively small vocabulary. ",
729
+ "bbox": [
730
+ 174,
731
+ 853,
732
+ 825,
733
+ 924
734
+ ],
735
+ "page_idx": 5
736
+ },
737
+ {
738
+ "type": "table",
739
+ "img_path": "images/5dc3d9f580eb22ecccf936bd0b90505b2b73ceb5ff543df8d33072559bb7bd76.jpg",
740
+ "table_caption": [
741
+ "Table 3: TIMIT phoneme recognition in terms of phoneme error rate (PER). All our models use the CNN-8L-PReLU-do0.7 architecture (Zeghidour et al., 2018). "
742
+ ],
743
+ "table_footnote": [],
744
+ "table_body": "<table><tr><td></td><td>dev PER</td><td>test PER</td></tr><tr><td>CNN + TD-filterbanks (Zeghidour et al., 2018)</td><td>15.6</td><td>18.0</td></tr><tr><td>Li-GRU + fMLLR (Ravanelli et al.,2018)</td><td>1</td><td>14.9</td></tr><tr><td>wav2vec (Schneider et al.,2019)</td><td>12.9</td><td>14.7</td></tr><tr><td>Baseline (log-mel)</td><td>16.9</td><td>17.6</td></tr><tr><td>vq-wav2vec, Gumbel</td><td>15.34</td><td>17.78</td></tr><tr><td>+ BERT small</td><td>9.64</td><td>11.64</td></tr><tr><td>vq-wav2vec, k-means</td><td>15.65</td><td>18.73</td></tr><tr><td>+ BERT small</td><td>9.80</td><td>11.40</td></tr></table>",
745
+ "bbox": [
746
+ 256,
747
+ 101,
748
+ 740,
749
+ 248
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "table",
755
+ "img_path": "images/8d9da95b17fa71b6b7d85b9d81f2dcda3931ba840dad2b086edf7a7993a7fa8a.jpg",
756
+ "table_caption": [
757
+ "Table 4: Librispeech results for a standard sequence to sequence model trained on discretized audio without BERT pre-training and results from the literature. All results are without a language model. "
758
+ ],
759
+ "table_footnote": [],
760
+ "table_body": "<table><tr><td></td><td>dev clean</td><td>dev other</td><td> test clean</td><td> test other</td></tr><tr><td>Mohamed et al. (2019)</td><td>4.8</td><td>12.7</td><td>4.7</td><td>12.9</td></tr><tr><td>Irie et al. (2019)</td><td>4.4</td><td>13.2</td><td>4.7</td><td>13.4</td></tr><tr><td>Park et al. (2019)</td><td>2.8</td><td>6.8</td><td>2.5</td><td>5.8</td></tr><tr><td>vq-wav2vec Gumbel + Transformer Big</td><td>5.6</td><td>15.5</td><td>6.2</td><td>18.2</td></tr></table>",
761
+ "bbox": [
762
+ 194,
763
+ 304,
764
+ 803,
765
+ 397
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Next, we compare Gumbel-Softmax to $\\mathbf { k }$ -means for vector quantization. For this experiment we use the faster to train BERT small configuration (§5.3). We also train a vq-wav2vec $\\mathbf { k }$ -means model with a very large number of codewords (39.9M) to test whether a more expressive model can close the gap to wav2vec. Table 2 shows that Gumbel-Softmax and $\\mathbf { k }$ -means clustering perform relatively comparably: in the no language model setup without BERT, Gumbel-Softmax is more accurate than k-means but these differences disappear with BERT. For 4-gram LM setup, k-means is better but those differences disappear again after BERT training. Finally, the large codeword model can substantially reduce the gap to the original wav2vec model. ",
772
+ "bbox": [
773
+ 174,
774
+ 467,
775
+ 825,
776
+ 579
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "6.2 TIMIT PHONEME RECOGNITION ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 601,
787
+ 442,
788
+ 614
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Next, we experiment on the much smaller TIMIT phoneme recognition task where we also pre-train vq-wav2vec on the full Librispeech corpus. Table 3 shows that vq-wav2vec and BERT achieve a new state of the art of 11.64 PER which corresponds to a $21 \\%$ reduction in error over the previous best result of wav2vec. ",
795
+ "bbox": [
796
+ 174,
797
+ 628,
798
+ 825,
799
+ 684
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "6.3 SEQUENCE TO SEQUENCE MODELING ",
806
+ "text_level": 1,
807
+ "bbox": [
808
+ 176,
809
+ 707,
810
+ 477,
811
+ 720
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "So far we used vq-wav2vec to train BERT on discretized speech. However, once the audio is discretized we can also train a standard sequence to sequence model to perform speech recognition. In preliminary experiments, we trained an off-the-shelf Big Transformer (Vaswani et al., 2017; Ott et al., 2019) on the vq-wav2vec Gumbel-Softmax discretized Librispeech corpus and evaluated on the Librispeech dev/test sets; we use a 4k BPE output vocabulary (Sennrich et al., 2016). Table 4 shows that results are promising, even though they are not as good as the state of the art (Park et al., 2019) which depends on data augmentation that we do not use. ",
818
+ "bbox": [
819
+ 174,
820
+ 733,
821
+ 825,
822
+ 832
823
+ ],
824
+ "page_idx": 6
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "6.4 ACCURACY VS. BITRATE ",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 174,
832
+ 853,
833
+ 388,
834
+ 867
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Next, we investigate how well vq-wav2vec can compress the audio data. Specifically, we train models with different numbers of groups $G$ and variables $V$ to vary the size of the possible codebook size $V ^ { G }$ and measure accuracy on TIMIT phoneme recognition without BERT training. ",
841
+ "bbox": [
842
+ 176,
843
+ 882,
844
+ 823,
845
+ 924
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "image",
851
+ "img_path": "images/9a15bf936d6d1265ca3cbbb31d5044033640a5533378629fdaf1a547978f7ec4.jpg",
852
+ "image_caption": [
853
+ "Figure 3: Comparison of PER on the TIMIT dev set for various audio codecs and vq-wav2vec $\\mathbf { k }$ -means trained on Librispeech 100h. "
854
+ ],
855
+ "image_footnote": [],
856
+ "bbox": [
857
+ 250,
858
+ 102,
859
+ 743,
860
+ 279
861
+ ],
862
+ "page_idx": 7
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "We measure compression with the bitrate $r \\cdot G \\log _ { 2 } V$ at sampling rate $r \\ = \\ 1 0 0 \\mathrm { H z }$ and report the trade-off between bitrate and accuracy on our phoneme recognition task. We experiment with vq-wav2vec $\\mathbf { k }$ -means and train models with 1,2,4,8,16 and 32 groups, using $4 0 , 8 0 , 1 6 0 , . . . , 1 2 8 0$ variables, spanning a bitrate range from 0.53 kbit/s $\\mathrm { G } = 1$ , ${ \\mathrm { V } = 4 0 }$ ) to 33.03 kbit/s $\\mathrm { G } = 3 2$ , $\\mathrm { V } = 1 2 8 0$ ). We place the quantization module after the aggregator module and train all models in the small vq-wav2vec setup (§5.2) on the 100h clean Librispeech subset. ",
867
+ "bbox": [
868
+ 174,
869
+ 353,
870
+ 825,
871
+ 438
872
+ ],
873
+ "page_idx": 7
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "As baselines, we consider various lossy compression algorithms applied to the TIMIT audio data and train wav2letter models on the resulting audio: Codec23 as a low bitrate codec, Opus (Terriberry & Vos, 2012) as a medium bitrate codec and MP3 and $\\mathrm { O g g }$ Vorbis (Montgomery, 2004) as high bitrate codecs. We use the whole spectrum of both variable and constant bitrate settings of the codecs; we encode and decode with ffmpeg (ffmpeg developers, 2016). Figure 3 shows the trade-off between the bitrate and TIMIT accuracy. Acoustic models on vq-wav2vec achieve the best results across most bitrate settings. ",
878
+ "bbox": [
879
+ 174,
880
+ 444,
881
+ 825,
882
+ 542
883
+ ],
884
+ "page_idx": 7
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "6.5 ABLATIONS ",
889
+ "text_level": 1,
890
+ "bbox": [
891
+ 174,
892
+ 559,
893
+ 297,
894
+ 573
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Table 5a shows that masking entire spans of tokens performs significantly better than individual tokens $M = 1$ ). Furthermore, BERT training on discretized audio data is fairly robust to masking large parts of the input (Table 5b). ",
901
+ "bbox": [
902
+ 176,
903
+ 585,
904
+ 825,
905
+ 627
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "table",
911
+ "img_path": "images/a97a203a2b2796e5b5b9e943a8a24bd7176cd761d36cff345a00eff2eaef3fdc.jpg",
912
+ "table_caption": [],
913
+ "table_footnote": [
914
+ "(b) Mask probabilities. "
915
+ ],
916
+ "table_body": "<table><tr><td>p</td><td>dev</td><td>test</td></tr><tr><td>0.015</td><td>12.65</td><td>15.28</td></tr><tr><td>0.020</td><td>12.51</td><td>14.43</td></tr><tr><td>0.025</td><td>12.16</td><td>13.96</td></tr><tr><td>0.030</td><td>11.68</td><td>14.48</td></tr><tr><td>0.050</td><td>11.45</td><td>13.62</td></tr></table>",
917
+ "bbox": [
918
+ 593,
919
+ 640,
920
+ 766,
921
+ 739
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "table",
927
+ "img_path": "images/1e52ec51969ae106cb253119aeec9a579332792aef73fa0f06c14db141855551.jpg",
928
+ "table_caption": [
929
+ "Table 5: TIMIT PER for (a) different mask sizes $M$ with $p M = 0 . 1 5$ in BERT training and (b) mask probabilities $p$ for a fixed mask length $M = 1 0$ . "
930
+ ],
931
+ "table_footnote": [],
932
+ "table_body": "<table><tr><td>M</td><td>dev</td><td>test</td></tr><tr><td>1</td><td>14.94</td><td>17.38</td></tr><tr><td>5</td><td>13.62</td><td>15.78</td></tr><tr><td>10</td><td>12.65</td><td>15.28</td></tr><tr><td>20</td><td>13.04</td><td>15.56</td></tr><tr><td>30</td><td>13.18</td><td>15.64</td></tr></table>",
933
+ "bbox": [
934
+ 261,
935
+ 640,
936
+ 415,
937
+ 739
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "(a) Mask length. ",
944
+ "bbox": [
945
+ 287,
946
+ 744,
947
+ 385,
948
+ 758
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "7 CONCLUSION ",
955
+ "text_level": 1,
956
+ "bbox": [
957
+ 176,
958
+ 827,
959
+ 318,
960
+ 842
961
+ ],
962
+ "page_idx": 7
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "vq-wav2vec is a self-supervised algorithm that quantizes unlabeled audio data which makes it amenable to algorithms requiring discrete data. This approach improves the state of the art on the WSJ and TIMIT benchmarks by leveraging BERT pre-training. In future work, we plan to apply other algorithms requiring discrete inputs to audio data and to explore self-supervised pre-training algorithms which mask part of the continuous audio input. Another future work avenue is to finetune the pre-trained model to output transcriptions instead of feeding the pre-trained features to a custom ASR model. ",
967
+ "bbox": [
968
+ 174,
969
+ 858,
970
+ 825,
971
+ 900
972
+ ],
973
+ "page_idx": 7
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "",
978
+ "bbox": [
979
+ 174,
980
+ 103,
981
+ 825,
982
+ 159
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "REFERENCES ",
989
+ "text_level": 1,
990
+ "bbox": [
991
+ 174,
992
+ 181,
993
+ 285,
994
+ 195
995
+ ],
996
+ "page_idx": 8
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Dario Amodei, Sundaram Ananthanarayanan, Rishita Anubhai, Jingliang Bai, Eric Battenberg, Carl Case, Jared Casper, Bryan Catanzaro, Qiang Cheng, Guoliang Chen, et al. Deep speech 2: Endto-end speech recognition in english and mandarin. In Proc. of ICML, 2016. ",
1001
+ "bbox": [
1002
+ 178,
1003
+ 204,
1004
+ 823,
1005
+ 247
1006
+ ],
1007
+ "page_idx": 8
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In Proceedings of the International Conference on Computer Vision (ICCV), 2019. ",
1012
+ "bbox": [
1013
+ 174,
1014
+ 256,
1015
+ 821,
1016
+ 297
1017
+ ],
1018
+ "page_idx": 8
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Jan Chorowski, Ron J. Weiss, Samy Bengio, and Aaron van den Oord. Unsupervised speech repre- ¨ sentation learning using wavenet autoencoders. arXiv, abs/1901.08810, 2019. ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 308,
1026
+ 820,
1027
+ 337
1028
+ ],
1029
+ "page_idx": 8
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Yu-An Chung and James Glass. Speech2vec: A sequence-to-sequence framework for learning word embeddings from speech. arXiv, abs/1803.08976, 2018. ",
1034
+ "bbox": [
1035
+ 173,
1036
+ 345,
1037
+ 821,
1038
+ 375
1039
+ ],
1040
+ "page_idx": 8
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Yu-An Chung, Wei-Ning Hsu, Hao Tang, and James Glass. An unsupervised autoregressive model for speech representation learning. arXiv, abs/1904.03240, 2019. ",
1045
+ "bbox": [
1046
+ 174,
1047
+ 383,
1048
+ 823,
1049
+ 412
1050
+ ],
1051
+ "page_idx": 8
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Ronan Collobert, Christian Puhrsch, and Gabriel Synnaeve. Wav2letter: an end-to-end convnetbased speech recognition system. arXiv, abs/1609.03193, 2016. ",
1056
+ "bbox": [
1057
+ 173,
1058
+ 421,
1059
+ 821,
1060
+ 450
1061
+ ],
1062
+ "page_idx": 8
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Ronan Collobert, Awni Hannun, and Gabriel Synnaeve. A fully differentiable beam search decoder. arXiv, abs/1902.06022, 2019. ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 459,
1070
+ 821,
1071
+ 488
1072
+ ],
1073
+ "page_idx": 8
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "FFmpeg Developers. ffmpeg tool software, 2016. URL http://ffmpeg.org/. ",
1078
+ "bbox": [
1079
+ 173,
1080
+ 497,
1081
+ 723,
1082
+ 513
1083
+ ],
1084
+ "page_idx": 8
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv, abs/1810.04805, 2018. ",
1089
+ "bbox": [
1090
+ 173,
1091
+ 521,
1092
+ 823,
1093
+ 551
1094
+ ],
1095
+ "page_idx": 8
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Ewan Dunbar, Robin Algayres, Julien Karadayi, Mathieu Bernard, Juan Benjumea, Xuan-Nga Cao, Lucie Miskic, Charlotte Dugrain, Lucas Ondel, Alan W Black, et al. The zero resource speech challenge 2019: Tts without t. arXiv, 1904.11469, 2019. ",
1100
+ "bbox": [
1101
+ 174,
1102
+ 559,
1103
+ 825,
1104
+ 602
1105
+ ],
1106
+ "page_idx": 8
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Ryan Eloff, Andre Nortje, Benjamin van Niekerk, Avashna Govender, Leanne Nortje, Arnu Preto- ´ rius, Elan Van Biljon, Ewald van der Westhuizen, Lisa van Staden, and Herman Kamper. Unsupervised acoustic unit discovery for speech synthesis using discrete latent-variable neural networks. arXiv, abs/1904.07556, 2019. ",
1111
+ "bbox": [
1112
+ 173,
1113
+ 611,
1114
+ 825,
1115
+ 667
1116
+ ],
1117
+ "page_idx": 8
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "John S. Garofolo, David Graff, Doug Paul, and David S. Pallett. CSR-I (WSJ0) Complete LDC93S6A. Web Download. Linguistic Data Consortium, 1993a. ",
1122
+ "bbox": [
1123
+ 166,
1124
+ 676,
1125
+ 823,
1126
+ 707
1127
+ ],
1128
+ "page_idx": 8
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "John S. Garofolo, Lori F. Lamel, William M. Fisher, Jonathon G. Fiscus, David S. Pallett, and Nancy L. Dahlgren. The DARPA TIMIT Acoustic-Phonetic Continuous Speech Corpus CDROM. Linguistic Data Consortium, 1993b. ",
1133
+ "bbox": [
1134
+ 174,
1135
+ 715,
1136
+ 825,
1137
+ 757
1138
+ ],
1139
+ "page_idx": 8
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Pegah Ghahremani, Vimal Manohar, Hossein Hadian, Daniel Povey, and Sanjeev Khudanpur. Investigation of transfer learning for asr using lf-mmi trained neural networks. In Proc. of ASRU, 2017. ",
1144
+ "bbox": [
1145
+ 173,
1146
+ 767,
1147
+ 825,
1148
+ 809
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Emil Julius Gumbel. Statistical theory of extreme values and some practical applications: a series of lectures, volume 33. US Government Printing Office, 1954. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 819,
1158
+ 823,
1159
+ 848
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Hossein Hadian, Hossein Sameti1, Daniel Povey, and Sanjeev Khudanpur. End-to-end speech recognition using lattice-free mmi. In Proc. of Interspeech, 2018. ",
1166
+ "bbox": [
1167
+ 176,
1168
+ 857,
1169
+ 820,
1170
+ 886
1171
+ ],
1172
+ "page_idx": 8
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Kenneth Heafield, Ivan Pouzyrevsky, Jonathan H. Clark, and Philipp Koehn. Scalable modified Kneser-Ney language model estimation. In Proc. of ACL, 2013. ",
1177
+ "bbox": [
1178
+ 176,
1179
+ 895,
1180
+ 820,
1181
+ 924
1182
+ ],
1183
+ "page_idx": 8
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Kazuki Irie, Rohit Prabhavalkar, Anjuli Kannan, Antoine Bruguier, David Rybach, and Patrick Nguyen. On the choice of modeling unit for sequence-to-sequence speech recognition. Interspeech 2019, Sep 2019. doi: 10.21437/interspeech.2019-2277. URL http://dx.doi.org/ 10.21437/Interspeech.2019-2277. ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 103,
1191
+ 825,
1192
+ 160
1193
+ ],
1194
+ "page_idx": 9
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. arXiv, abs/1611.01144, 2016. ",
1199
+ "bbox": [
1200
+ 171,
1201
+ 167,
1202
+ 823,
1203
+ 196
1204
+ ],
1205
+ "page_idx": 9
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Herve Jegou, Matthijs Douze, and Cordelia Schmid. Product quantization for nearest neighbor search. IEEE Trans. Pattern Anal. Mach. Intell., 33(1):117–128, January 2011. ",
1210
+ "bbox": [
1211
+ 173,
1212
+ 205,
1213
+ 823,
1214
+ 234
1215
+ ],
1216
+ "page_idx": 9
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. Spanbert: Improving pre-training by representing and predicting spans. arXiv, abs/1907.10529, 2019. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 242,
1224
+ 823,
1225
+ 272
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Tatiana Likhomanenko, Gabriel Synnaeve, and Ronan Collobert. Who needs words? lexicon-free speech recognition. In Proc. of Interspeech, 2019. ",
1232
+ "bbox": [
1233
+ 174,
1234
+ 280,
1235
+ 823,
1236
+ 309
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "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. ",
1243
+ "bbox": [
1244
+ 176,
1245
+ 316,
1246
+ 823,
1247
+ 361
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with restarts. arXiv, abs/1608.03983, 2016. ",
1254
+ "bbox": [
1255
+ 171,
1256
+ 368,
1257
+ 823,
1258
+ 397
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Chris J Maddison, Daniel Tarlow, and Tom Minka. A\\* sampling. In Advances in Neural Information Processing Systems, pp. 3086–3094, 2014. ",
1265
+ "bbox": [
1266
+ 173,
1267
+ 405,
1268
+ 823,
1269
+ 434
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Proc. of NIPS, 2013. ",
1276
+ "bbox": [
1277
+ 171,
1278
+ 443,
1279
+ 823,
1280
+ 472
1281
+ ],
1282
+ "page_idx": 9
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Abdelrahman Mohamed, Dmytro Okhonko, and Luke Zettlemoyer. Transformers with convolutional context for ASR. CoRR, abs/1904.11660, 2019. ",
1287
+ "bbox": [
1288
+ 171,
1289
+ 481,
1290
+ 823,
1291
+ 508
1292
+ ],
1293
+ "page_idx": 9
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "C Montgomery. Vorbis i specification, 2004. ",
1298
+ "bbox": [
1299
+ 176,
1300
+ 517,
1301
+ 467,
1302
+ 532
1303
+ ],
1304
+ "page_idx": 9
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In Proc. of WMT, 2018. ",
1309
+ "bbox": [
1310
+ 169,
1311
+ 541,
1312
+ 823,
1313
+ 570
1314
+ ],
1315
+ "page_idx": 9
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan $\\mathrm { N g }$ , David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proc. of NAACL System Demonstrations, 2019. ",
1320
+ "bbox": [
1321
+ 174,
1322
+ 578,
1323
+ 823,
1324
+ 621
1325
+ ],
1326
+ "page_idx": 9
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: an asr corpus based on public domain audio books. In Proc. of ICASSP, pp. 5206–5210. IEEE, 2015. ",
1331
+ "bbox": [
1332
+ 171,
1333
+ 628,
1334
+ 823,
1335
+ 659
1336
+ ],
1337
+ "page_idx": 9
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Daniel S. Park, William Chan, Yu Zhang, Chung-Cheng Chiu, Barret Zoph, Ekin D. Cubuk, and Quoc V. Le. Specaugment: A simple data augmentation method for automatic speech recognition, 2019. ",
1342
+ "bbox": [
1343
+ 176,
1344
+ 666,
1345
+ 825,
1346
+ 709
1347
+ ],
1348
+ "page_idx": 9
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Mirco Ravanelli, Philemon Brakel, Maurizio Omologo, and Yoshua Bengio. Light gated recurrent units for speech recognition. IEEE Transactions on Emerging Topics in Computational Intelligence, 2(2):92–102, 2018. ",
1353
+ "bbox": [
1354
+ 173,
1355
+ 718,
1356
+ 825,
1357
+ 761
1358
+ ],
1359
+ "page_idx": 9
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Steffen Schneider, Alexei Baevski, Ronan Collobert, and Michael Auli. wav2vec: Unsupervised pre-training for speech recognition. CoRR, abs/1904.05862, 2019. URL http://arxiv. org/abs/1904.05862. ",
1364
+ "bbox": [
1365
+ 173,
1366
+ 768,
1367
+ 823,
1368
+ 811
1369
+ ],
1370
+ "page_idx": 9
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proc. of ACL, 2016. ",
1375
+ "bbox": [
1376
+ 173,
1377
+ 820,
1378
+ 823,
1379
+ 849
1380
+ ],
1381
+ "page_idx": 9
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Tim Terriberry and Koen Vos. Definition of the opus audio codec, 2012. ",
1386
+ "bbox": [
1387
+ 174,
1388
+ 858,
1389
+ 647,
1390
+ 873
1391
+ ],
1392
+ "page_idx": 9
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Andros Tjandra, Berrak Sisman, Mingyang Zhang, Sakriani Sakti, Haizhou Li, and Satoshi Nakamura. Vqvae unsupervised unit discovery and multi-scale code2spec inverter for zerospeech challenge 2019. arXiv, 1905.11449, 2019. ",
1397
+ "bbox": [
1398
+ 176,
1399
+ 881,
1400
+ 823,
1401
+ 924
1402
+ ],
1403
+ "page_idx": 9
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Aaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6306–6315, 2017. ",
1408
+ "bbox": [
1409
+ 171,
1410
+ 103,
1411
+ 823,
1412
+ 132
1413
+ ],
1414
+ "page_idx": 10
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predic- ¨ tive coding. arXiv, abs/1807.03748, 2018. ",
1419
+ "bbox": [
1420
+ 171,
1421
+ 140,
1422
+ 823,
1423
+ 170
1424
+ ],
1425
+ "page_idx": 10
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proc. of NIPS, 2017. ",
1430
+ "bbox": [
1431
+ 169,
1432
+ 178,
1433
+ 823,
1434
+ 208
1435
+ ],
1436
+ "page_idx": 10
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Maarten Versteegh, Xavier Anguera, Aren Jansen, and Emmanuel Dupoux. The zero resource speech challenge 2015: Proposed approaches and results. Procedia Computer Science, 81:67– 72, 2016. ",
1441
+ "bbox": [
1442
+ 174,
1443
+ 217,
1444
+ 823,
1445
+ 258
1446
+ ],
1447
+ "page_idx": 10
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Yuxin Wu and Kaiming He. Group normalization. arXiv, abs/1803.08494, 2018. ",
1452
+ "bbox": [
1453
+ 173,
1454
+ 268,
1455
+ 702,
1456
+ 284
1457
+ ],
1458
+ "page_idx": 10
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "Neil Zeghidour, Nicolas Usunier, Iasonas Kokkinos, Thomas Schaiz, Gabriel Synnaeve, and Emmanuel Dupoux. Learning filterbanks from raw speech for phone recognition. In Proc. of (ICASSP), 2018. ",
1463
+ "bbox": [
1464
+ 173,
1465
+ 292,
1466
+ 826,
1467
+ 334
1468
+ ],
1469
+ "page_idx": 10
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "APPENDIX A NUMBER OF VARIABLES VS. GROUPS ",
1474
+ "text_level": 1,
1475
+ "bbox": [
1476
+ 174,
1477
+ 102,
1478
+ 612,
1479
+ 118
1480
+ ],
1481
+ "page_idx": 11
1482
+ },
1483
+ {
1484
+ "type": "table",
1485
+ "img_path": "images/c72794ef411bb23a538bcfc5ee78d22eac06f66c771771593ad8a222fb8b26f2.jpg",
1486
+ "table_caption": [
1487
+ "We investigate the relationship between number of variables $V$ and groups $G$ . Table 6 shows that multiple groups are beneficial compared to a single group with a large number of variables. Table 7 shows that with a single group and many variables, only a small number of codewords survive. "
1488
+ ],
1489
+ "table_footnote": [],
1490
+ "table_body": "<table><tr><td>V</td><td>1 group</td><td>2 groups</td><td>4 groups</td><td>8 groups</td><td>16 groups</td><td>32 groups</td></tr><tr><td>40</td><td>33.44 ± 0.24</td><td>23.52 ± 0.53</td><td>18.76 ± 0.20</td><td>17.43 ± 0.14</td><td>15.97 ± 0.21</td><td>15.44 ± 0.32</td></tr><tr><td>80</td><td>29.14 ± 0.70</td><td>25.36 ± 4.62</td><td>17.32 ± 0.28</td><td>16.36 ± 0.27</td><td>17.55 ± 0.27</td><td>15.49 ± 0.14</td></tr><tr><td>160</td><td></td><td>24.27 ± 0.35</td><td>17.55 ± 0.03</td><td>16.36 ± 0.13</td><td>15.64 ± 0.03</td><td>15.11 ± 0.10</td></tr><tr><td>320</td><td>27.22 ± 0.25</td><td>20.86 ± 0.09</td><td>16.49 ± 0.07</td><td>15.88 ± 0.10</td><td>15.74 ± 0.18</td><td>15.18 ± 0.02</td></tr><tr><td>640</td><td>26.53 ± 2.02</td><td>18.64 ± 0.12</td><td>16.60 ± 0.22</td><td>15.62 ± 0.16</td><td>15.45 ± 0.13</td><td>15.54 ± 0.31</td></tr><tr><td>1280</td><td>32.63 ± 5.73</td><td>18.04 ± 0.26</td><td>16.37 ± 0.07</td><td>15.85 ± 0.05</td><td>15.13 ± 0.29</td><td>15.18 ± 0.05</td></tr></table>",
1491
+ "bbox": [
1492
+ 173,
1493
+ 189,
1494
+ 825,
1495
+ 294
1496
+ ],
1497
+ "page_idx": 11
1498
+ },
1499
+ {
1500
+ "type": "table",
1501
+ "img_path": "images/06d0e4176094bb3f2597ed9fd9a2478c34a0303be831afc2d8977348250bc900.jpg",
1502
+ "table_caption": [
1503
+ "Table 6: PER on TIMIT dev set for vq-wav2vec models trained on Libri100. Results are based on three random seeds. "
1504
+ ],
1505
+ "table_footnote": [
1506
+ "Table 7: Fraction of used codewords vs. number of theoretically possible codewords $V ^ { G }$ in brackets; $3 9 . 9 \\mathbf { M }$ is the number of tokens in Librispeech $1 0 0 \\mathrm { { h } }$ . "
1507
+ ],
1508
+ "table_body": "<table><tr><td>V</td><td>1 group</td><td>2 groups</td><td>4 groups</td><td>8 groups</td><td>16 groups</td><td>32 groups</td></tr><tr><td>40</td><td>100 % (40)</td><td>95.3 % (1.6k)</td><td>27.4 % (2.56M)</td><td>74.8 % (39.9M)</td><td>99.6 % (39.9M)</td><td>99.9 % (39.9M)</td></tr><tr><td>80</td><td>92.5% (80)</td><td>78.5% (6.4k)</td><td>11.8 % (39.9M)</td><td>91.5 % (39.9M)</td><td>99.3% (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>160</td><td>95 % (160)</td><td>57.2% (25.6k)</td><td>35.2 % (39.9M)</td><td>97.6 % (39.9M)</td><td>99.8 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>320</td><td>33.8% (320)</td><td>24.6 % (102.4k)</td><td>57.3 % (39.9M)</td><td>98.7 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>640</td><td>24.6% (640)</td><td>10 % (409.6k)</td><td>60.2 % (39.9M)</td><td>99.3 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr><tr><td>1280</td><td>7.2% (1.28k)</td><td>4.9 % (1.63M)</td><td>67.9 % (39.9M)</td><td>99.5 % (39.9M)</td><td>99.9 % (39.9M)</td><td>100 % (39.9M)</td></tr></table>",
1509
+ "bbox": [
1510
+ 174,
1511
+ 353,
1512
+ 885,
1513
+ 458
1514
+ ],
1515
+ "page_idx": 11
1516
+ }
1517
+ ]
parse/train/rylwJxrYDS/rylwJxrYDS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rylwJxrYDS/rylwJxrYDS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
vlm/train/1-j4VLSHApJ/0.png ADDED

Git LFS Details

  • SHA256: 9d157ad1e7b09c5e44cd2722bc74292ef62d1f2743ea33d161a7cb7bb4655753
  • Pointer size: 131 Bytes
  • Size of remote file: 443 kB
vlm/train/1-j4VLSHApJ/1.png ADDED

Git LFS Details

  • SHA256: 49296b9b9afbe3978918f3dc803cba5bd9639a9d06d43460d560a4b06132aa91
  • Pointer size: 131 Bytes
  • Size of remote file: 526 kB
vlm/train/1-j4VLSHApJ/10.png ADDED

Git LFS Details

  • SHA256: 85d02aa9db647060feadf6d2b399eb6bd9a11d9b6795912bd029c374601a6d51
  • Pointer size: 131 Bytes
  • Size of remote file: 466 kB
vlm/train/1-j4VLSHApJ/2.png ADDED

Git LFS Details

  • SHA256: 384c320f1e23c816c441a2e569870312ba52babd666c5644b21c652c25524b6b
  • Pointer size: 131 Bytes
  • Size of remote file: 610 kB
vlm/train/1-j4VLSHApJ/3.png ADDED

Git LFS Details

  • SHA256: 5882ec9406ec1f3655742ae76529af11ee72d7d720863f995ff7b71a00862c8d
  • Pointer size: 131 Bytes
  • Size of remote file: 501 kB
vlm/train/1-j4VLSHApJ/4.png ADDED

Git LFS Details

  • SHA256: 6b0a242b40687d056508fd5d4c579fbc1c8acae1a9807a194ace771ba767b4de
  • Pointer size: 131 Bytes
  • Size of remote file: 517 kB
vlm/train/1-j4VLSHApJ/5.png ADDED

Git LFS Details

  • SHA256: eb202a343406aa4ce243c51ba620aacdd2c639e1e1a106d16af55baa47f94235
  • Pointer size: 131 Bytes
  • Size of remote file: 399 kB