ZHANGYUXUAN-zR commited on
Commit
e04c436
·
verified ·
1 Parent(s): 394b271

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/-JJy-Hw8TFB/-JJy-Hw8TFB.md +297 -0
  2. parse/train/-JJy-Hw8TFB/-JJy-Hw8TFB_middle.json +0 -0
  3. parse/train/B1lxH20qtX/B1lxH20qtX.md +243 -0
  4. parse/train/B1lxH20qtX/B1lxH20qtX_content_list.json +1362 -0
  5. parse/train/B1lxH20qtX/B1lxH20qtX_middle.json +0 -0
  6. parse/train/B1lxH20qtX/B1lxH20qtX_model.json +0 -0
  7. parse/train/BJgy96EYvr/BJgy96EYvr.md +561 -0
  8. parse/train/BJgy96EYvr/BJgy96EYvr_middle.json +0 -0
  9. parse/train/H113pWZRb/H113pWZRb_middle.json +0 -0
  10. parse/train/H113pWZRb/H113pWZRb_model.json +0 -0
  11. parse/train/H1VGkIxRZ/H1VGkIxRZ.md +504 -0
  12. parse/train/H1VGkIxRZ/H1VGkIxRZ_content_list.json +0 -0
  13. parse/train/H1VGkIxRZ/H1VGkIxRZ_middle.json +0 -0
  14. parse/train/H1VGkIxRZ/H1VGkIxRZ_model.json +0 -0
  15. parse/train/IrM64DGB21/IrM64DGB21.md +0 -0
  16. parse/train/IrM64DGB21/IrM64DGB21_content_list.json +0 -0
  17. parse/train/IrM64DGB21/IrM64DGB21_middle.json +0 -0
  18. parse/train/IrM64DGB21/IrM64DGB21_model.json +0 -0
  19. parse/train/O6LPudowNQm/O6LPudowNQm.md +806 -0
  20. parse/train/O6LPudowNQm/O6LPudowNQm_content_list.json +0 -0
  21. parse/train/O6LPudowNQm/O6LPudowNQm_middle.json +0 -0
  22. parse/train/O6LPudowNQm/O6LPudowNQm_model.json +0 -0
  23. parse/train/Ogga20D2HO-/Ogga20D2HO-.md +438 -0
  24. parse/train/Ogga20D2HO-/Ogga20D2HO-_content_list.json +0 -0
  25. parse/train/Ogga20D2HO-/Ogga20D2HO-_middle.json +0 -0
  26. parse/train/Ogga20D2HO-/Ogga20D2HO-_model.json +0 -0
  27. parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU.md +0 -0
  28. parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_content_list.json +0 -0
  29. parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_middle.json +0 -0
  30. parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_model.json +0 -0
  31. parse/train/S1gnxaVFDB/S1gnxaVFDB.md +0 -0
  32. parse/train/S1gnxaVFDB/S1gnxaVFDB_content_list.json +0 -0
  33. parse/train/S1gnxaVFDB/S1gnxaVFDB_middle.json +0 -0
  34. parse/train/S1gnxaVFDB/S1gnxaVFDB_model.json +0 -0
  35. parse/train/S1lhkdKkeV/S1lhkdKkeV.md +240 -0
  36. parse/train/S1lhkdKkeV/S1lhkdKkeV_content_list.json +1264 -0
  37. parse/train/S1lhkdKkeV/S1lhkdKkeV_middle.json +0 -0
  38. parse/train/S1lhkdKkeV/S1lhkdKkeV_model.json +0 -0
  39. parse/train/SkxwY3NtPr/SkxwY3NtPr.md +430 -0
  40. parse/train/SkxwY3NtPr/SkxwY3NtPr_content_list.json +0 -0
  41. parse/train/SkxwY3NtPr/SkxwY3NtPr_middle.json +0 -0
  42. parse/train/SkxwY3NtPr/SkxwY3NtPr_model.json +0 -0
  43. parse/train/SylLYsCcFm/SylLYsCcFm.md +303 -0
  44. parse/train/SylLYsCcFm/SylLYsCcFm_content_list.json +1882 -0
  45. parse/train/SylLYsCcFm/SylLYsCcFm_middle.json +0 -0
  46. parse/train/SylLYsCcFm/SylLYsCcFm_model.json +0 -0
  47. parse/train/q1eCa1kMfDd/q1eCa1kMfDd.md +234 -0
  48. parse/train/q1eCa1kMfDd/q1eCa1kMfDd_content_list.json +1039 -0
  49. parse/train/q1eCa1kMfDd/q1eCa1kMfDd_middle.json +0 -0
  50. parse/train/q1eCa1kMfDd/q1eCa1kMfDd_model.json +0 -0
parse/train/-JJy-Hw8TFB/-JJy-Hw8TFB.md ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ViSER: Video-Specific Surface Embeddings for Articulated 3D Shape Reconstruction
2
+
3
+ Gengshan Yang1 Deqing Sun2 Varun Jampani2 Daniel Vlasic2 Forrester Cole2 Ce Liu4∗ Deva Ramanan1,3
4
+
5
+ 1Carnegie Mellon University
6
+
7
+ 2Google Research 3Argo AI 4Microsoft Azure AI
8
+
9
+ ViSER-webpage
10
+
11
+ # Abstract
12
+
13
+ We introduce ViSER, a method for recovering articulated 3D shapes and dense 3D trajectories from monocular videos. Previous work on high-quality reconstruction of dynamic 3D shapes typically relies on multiple synchronized cameras, strong category-specific priors, or 2D keypoint supervision. We show that none of these are required if one can reliably estimate long-range correspondences in a video, making use of only 2D object masks and two-frame optical flow as inputs. ViSER infers correspondences by matching 2D pixels to a canonical, deformable 3D mesh via video-specific surface embeddings that capture the view-independent appearance features of each surface point. These embeddings behave as a continuous set of keypoint descriptors defined over the mesh surface, which can be used to establish dense long-range correspondences across pixels. The surface embeddings are implemented as coordinate-based MLPs that are fit to each video via self-supervised losses. Experimental results show that ViSER compares favorably against prior work on challenging videos of humans with loose clothing and unusual poses as well as animal videos from DAVIS and YTVOS.
14
+
15
+ # 1 Introduction
16
+
17
+ Reconstructing the world from a sequence of monocular frames is a long-standing task in computer vision. While there has been tremendous progress in reconstructing rigid scenes (via SfM and SLAM [7, 39, 43], or recent techniques based on neural rendering [28]), reconstructing dynamic scenes with articulated objects remains elusive. For example, given a monocular video, it is still challenging to reconstruct an everyday scene of a moving person with loose clothing. In this work, we tackle the problem of estimating the deforming mesh of articulated objects given a segmented monocular video of that object. Our method avoids the use of any mesh templates or category-specific priors and generalizes to unknown deformable articulated objects in the wild.
18
+
19
+ Nonrigid shape recovery is highly under-constrained due to fundamental ambiguities between shape, appearance, and time-varying deformation. Current approaches for addressing these challenges fall into two camps: better data “likelihoods” or better “priors”. The first camp extracts richer sensor data, via multi-camera studio setups [15] or depth sensors [30], but requires substantial efforts to work in the wild. The second camp makes use of category-level priors over object shapes [18, 20] and is particularly effective for human reconstruction. However, building such models requires considerable offline efforts in the form of registered 3D scans [26] or manual keypoint annotations [12], both of which are difficult to scale to arbitrary object categories.
20
+
21
+ ![](images/c5024c4b9aaa8a762cdc7d035eea0072af4cfb73583565fe4600659f978d57ee.jpg)
22
+ Figure 1: Given a long video (or multiple short videos), ViSER jointly learns articulated 3D shapes (represented as a mesh with vertices $\bar { \bf V }$ and faces $\mathbf { F }$ ) and joint pixel-surface embeddings (including a surface embedding $\mathbf { F _ { S } }$ and a pixel embedding $\mathbf { F _ { I } }$ ) that establishes dense long-range pixel correspondences over time. As a result, ViSER produces accurate shapes, long term trajectories and meaningful part segmentation.
23
+
24
+ In this work, we use a practical but less explored variant of the data-likelihood camp: we use multiple frames of a video rather than multiple cameras or depth sensors. This considerably complicates analysis for dynamic, non-rigid scenes. Nonrigid structure-from-motion (NRSfM) [4, 38] attempts to constrain the problem by relying on motion correspondences such as 2D point tracks. While 2D correspondences over short time scales (i.e., optical flow) are relatively robust to extract, correspondences over long time scales are notoriously difficult to estimate because of appearance variations arising from viewpoint changes, occlusion and fast motion. In practice, this limits the applicability of NRSfM methods to controlled lab sequences.
25
+
26
+ We propose ViSER (Video-Specific Surface Embeddings for Reconstruction), which establishes long-range correspondence and reconstructs articulated 3D shapes from a monocular video. Fig. 1 shows a sample outdoor video and the corresponding ViSER results. The key insight behind ViSER is to force long-range video pixel correspondences to be consistent with an underlying canonical 3D mesh through the use of video-specific embeddings that capture the pixel appearance of each surface point. These embeddings behave as a continuous set of keypoint descriptors defined over the surface mesh, learned with coordinate-based MLPs that are fit to each video via self-supervised losses. ViSER simultaneously optimizes the image CNN, surface MLP, and 3D shape so as to fit the observed video frames. It reconstructs state-of-the-art articulated 3D shape and 3D trajectories without using category-specific priors, making it easily scalable to diverse videos including humans with challenging clothing and poses as well as animals. Lastly, we demonstrate that ViSER recovers meaningful part segmentation and blend skinning weights from videos, which typically require considerable manual effort from 3D artists.
27
+
28
+ # 2 Related Work
29
+
30
+ Low-level correspondence. Optical flow is a well-studied representation for short-term correspondence between adjacent frames of a video. After decades of research, recent CNN models [40, 42, 48] for optical flow have achieved an impressive level of accuracy as evidenced by the Sintel and KITTI benchmarks [5, 9]. However, it is challenging to concatenate optical flow for reliable long-range correspondence due to occlusions and strong appearance changes [33, 37, 41]. ViSER does not concatenate optical flow but use it as a constraint to establishes long-range correspondence.
31
+
32
+ The layered approach [6, 14, 45] segments a video into different moving objects with coherent motion, thereby establishing long-range correspondence for every frames through the shared layers. Early layered methods assume parameter motion for each layer and can only handle limited scenes. Unwrap Mosiacs [32] uses a dense 2D-to-2D mapping from a texture map to every input frame, and editing operations on the texture map naturally transfers to each individual frame. However, the 2D representation cannot flexibly model complex 3D phenomena, such as occlusions.
33
+
34
+ ![](images/85a0b0d499cfbf36b2e52416eddbbd27a71c5a591aa10f920a05d7b53bc2d6ab.jpg)
35
+ Figure 2: We learn a joint pixel-surface embedding space for dense correspondence between pixels in video frames $I _ { t }$ and points on a canonical 3D surface $( \bar { \mathbf { V } } , \mathbf { \check { F } } )$ . Such embedding space is optimized through “top-down” differentiable rendering $\mathcal { R } ( \cdot )$ and “bottom-up” correspondence matching $\hat { \bf S } [ x , y ]$ (Sec 3.2). We introduce a 3D matching loss to optimize the embeddings, where the matched surface locations are encouraged to be close to the rendered surface locations. The embedding further enables articulated shape optimization through a 2D-3D-2D cycle reprojection: pixel $[ x , y ] $ matched surface ${ \hat { \mathbf { S } } } [ x , y ] \to$ re-projected pixel $\pi ( \hat { \mathbf { S } } [ x , y ] )$ (Sec. 3.3).
36
+
37
+ Dense pose and surface mappings. DensePose [12] directly maps pixels to the 3D surface of a human body model. It requires large amounts of training data with annotated image-to-surface correspondence and is hard to generalize to other categories. Articulation-aware Canonical Surface Mapping (A-CSM) [20] uses geometric cycle consistency for learning to map pixels to corresponding points on a template shape without using keypoint annotations. However, it requires a pre-defined template shape for each category. Continuous Surface Embeddings (CSE) [29] establishes dense correspondences between image pixels and 3D object geometry by predicting an embedding vector of the corresponding vertex in the object mesh for each pixel in a 2D image. While applicable to multiple categories, CSE requires annotations and only applies to categories in the training set. ViSER requires neither a template shape nor annotations to work on categories in the wild.
38
+
39
+ Nonrigid shape reconstruction. One way to accurately reconstruct articulated shapes is to rely on rich sensor data, e.g., multi-view [15] or depth sensors [30], which requires substantial efforts to setup and reconstruct objects in the wild. For monocular videos/images, one popular approach is to adopt strong 3D shape and pose priors [18, 26, 35, 36, 53, 54] but it works well only on limited categories, whose 3D data are easy to collect. To deal with more nonrigid object categories, a recent trend is to learn a category-level 3D shape model from a collection of images or videos with 2D annotations, such as keypoints and object silhouettes [10, 16, 20, 22, 23, 44, 46, 50]. Although they are able to reconstruct more object categories, such as birds and quadruped animals, the reconstruction usually lacks details, and the level of deformation recovered tends to be low.
40
+
41
+ Category-agnostic methods, such as nonrigid structure from motion (NRSfM) methods [4, 11, 19, 38] reconstruct nonrigid 3D shapes from a set of 2D point trajectories. However, due to the difficulty in obtaining accurate long-range correspondences [37, 41] they do not work well for videos in the wild. A recent work, LASR [49], uses two-frame optical flow to reconstruct articulate shapes from a monocular video with differentiable rendering. Despite the promising results, LASR does not reason about long-range correspondences and can only reliably reconstruct what is visible in a short video. ViSER establishes reliable long-range correspondence that are robust to moderate shape variations and appearance changes. Thus, ViSER can obtain much higher-quality reconstruction by using either a long video or several videos of a category.
42
+
43
+ # 3 Approach
44
+
45
+ Fig. 2 provides an overview of our approach, which follows a typical framework of differentiable rendering [16, 25]. Borrowing the notation from LASR [49], we formalize our task as follows. Given a set of video observations including RGB pixel color, segmentation masks, and optical flow estimates $\{ I _ { t } , S _ { t } , u _ { t } \} _ { t = \{ 0 , \ldots , T \} }$ , our goal is to recover a set of shape and motion parameters $\{ \mathbf { S } , \mathbf { D } _ { t } \}$ that produce reconstructions $\{ \hat { I } _ { t } , \hat { S } _ { t } , \hat { u } _ { t } \} _ { t = \{ 0 , \dots , T \} }$ that match the video observations. We refer to supplementary material for a complete list of notations defined in the paper.
46
+
47
+ # 3.1 Preliminaries
48
+
49
+ We represent an object’s shape as a triangular mesh $\mathbf { S } = \{ \bar { \mathbf { V } } , \mathbf { F } \}$ with canonical vertices $\bar { \mathbf { V } } \in \mathbb { R } ^ { 3 \times N }$ and a fixed topology (edge connectivity) $\mathbf { \bar { F } } \in \mathbb { R } ^ { 3 \times M }$ . To render an object, we displace mesh vertices with motion parameters $\mathbf { D } _ { t }$ , apply a perspective projection with camera intrinsics $\mathbf { K } _ { t }$ , and rasterize.
50
+
51
+ We model vertex motion with root body transformations $\mathbf { G } _ { 0 }$ and object articulations $\{ \mathbf { G _ { 1 } } , \cdots , \mathbf { G _ { B } } \}$ using linear blend skinning (LBS) [20, 21]. LBS constrains vertex motion by linearly blending $B$ rigid “bone” transformations with a skinning weight matrix $\mathbf { W } \in \mathbb { R } ^ { B \times N }$ , transforming the canonical shape into frame $t$ as
52
+
53
+ $$
54
+ \mathbf { V } _ { i , t } = \mathbf { G _ { 0 , t } } \left( \sum _ { b } \mathbf { W } _ { b , i } \mathbf { G } _ { b , t } \right) \bar { \mathbf { V } } _ { i }
55
+ $$
56
+
57
+ where $i$ is the vertex index, $b$ is the bone index. Similar to LASR, the root body and bone transformations are represented as the outputs of a pose CNN given an input image, $( \mathbf { G _ { 0 } } , \cdot \cdot \cdot , \mathbf { G _ { B } } ) = \psi _ { p } ( I _ { t } )$ .
58
+
59
+ We define a set of surface properties for rendering, including vertex 3D coordinates, textures and features, and rasterize them in a differentiable manner [25]. We denote the differentiable rendering function that renders the property $\mathbf { C }$ defined on a canonical surface to an image as $\mathcal { R } ( \mathbf { C } ; \mathbf { V } , \mathbf { W } , \mathbf { G } )$ , which executes the blending skinning function in Eq. (1) and softly blends the surface property based on their depth and barycentric coordinates [25]. For simplicity, we omit the shape, skinning, and motion parameters parameters and write the differentiable rendering function as $\mathcal { R } ( \mathbf { C } )$ . To render optical flow, we rasterize and project vertex coordinates in two consecutive frames and compute their 2D displacements [49]. Such renderings are compared against video observations to compute gradients for updating model parameters.
60
+
61
+ # 3.2 Video-specific Surface Embedding
62
+
63
+ Pixel-surface embeddings. We learn pixel and surface embeddings that map corresponding pixels in different frames to the same point on a canonical 3D surface. Intuitively, consider a particular region on the canonical surface mesh that is the “nose” of an articulated human. The surface embedding captures a descriptor for the nose, which can then be matched to pixel-level descriptors at each frame.
64
+
65
+ Given an input image $I _ { t }$ , the pixel-wise descriptor embedding is computed by a U-Net [34] encoder:
66
+
67
+ $$
68
+ \mathbf { F _ { I } } [ x , y , t ] = \psi _ { e } ( I _ { t } ) [ x , y ] \in \mathbb { R } ^ { 1 6 } ,
69
+ $$
70
+
71
+ where $[ x , y , t ]$ are pixel locations at frame $t$ . The surface embedding is computed by a positionencoded MLP:
72
+
73
+ $$
74
+ \mathbf { F _ { S } } ( X , Y , Z ) = \phi _ { e } ( X , Y , Z ) \in \mathbb { R } ^ { 1 6 } ,
75
+ $$
76
+
77
+ where $\phi _ { e } ( \cdot )$ is an MLP defined over 3D points $( X , Y , Z )$ in the canonical space, augmented with Fourier positional encoding [28]. The two embeddings are optimized on test videos such that pixels representing the same surface location in different frames are mapped to the same canonical surface point [20].
78
+
79
+ Correspondence via soft-argmax regression. Given the pixel and surface embeddings, we construct a per-frame cost volume $D ( \mathbf { F _ { I } } , \mathbf { F _ { S } } )$ of size $H \times W \times N _ { s }$ over pixels and surface points (we randomly sample $N _ { s } = 2 0 0$ surface points at each step) by considering their cosine feature distances,
80
+
81
+ $$
82
+ D ( \mathbf { F } _ { \mathbf { I } } , \mathbf { F } _ { \mathbf { S } } ) [ x , y , i ] = 1 - \cos \big ( \mathbf { F } _ { \mathbf { I } } [ x , y ] , \mathbf { F } _ { \mathbf { S } } ( X _ { i } , Y _ { i } , Z _ { i } ) \big ) .
83
+ $$
84
+
85
+ Normalizing the cost volume over the surface point dimension yields a softmax “heatmap” over surface points that potentially match to pixel $( x , y )$ , as shown in Fig. 3 (Left):
86
+
87
+ $$
88
+ \sigma _ { \left( x , y \right) } [ i ] = \frac { e ^ { - D [ x , y , i ] / \tau } } { \sum _ { j } e ^ { - D [ x , y , j ] / \tau } } ,
89
+ $$
90
+
91
+ where $\tau$ is a temperature scaling parameter that is jointly optimized with the feature embeddings. To output a single surface point for pixel $( x , y )$ , we can compute a “soft” argmax [17, 48] by taking the expectation of the softmax distribution over the 3D locations of the points samples,
92
+
93
+ $$
94
+ \hat { \mathbf { S } } [ x , y ] = \sum _ { i } \sigma _ { ( x , y ) } [ i ] ( X _ { i } , Y _ { i } , Z _ { i } ) ,
95
+ $$
96
+
97
+ where $( X _ { i } , Y _ { i } , Z _ { i } )$ is the i-th sampled surface point and $\sigma _ { ( } x , y ) [ i ]$ is the matching probability of pixel $( x , y )$ over the sampled points $i \in \{ 1 , 2 , \ldots , N _ { s } \}$ .
98
+
99
+ ![](images/2ebf45b5b43939195594f2e62ce87906cefbbdcdadb94eac45fe28f932ffe5f0.jpg)
100
+ Figure 3: Pixel-surface embeddings establish a continuous mapping between pixels and points on a canonical surface. Left: Given a query pixel at $( \mathbf { x } , \mathbf { y } )$ , we match it to a set of canonical surface points, where the matching distribution is used to regress a continuous mapping to the canonical surface. Right: Given a query surface point (X,Y,Z), a matching distribution over pixels can be computed. Warm color indicates high matching probability.
101
+
102
+ We can also normalize the $H \times W \times N _ { s }$ cost volume over spatial positions to capture a distribution of pixel locations that match to each surface point $( X _ { i } , Y _ { i } , Z _ { i } )$ :
103
+
104
+ $$
105
+ \sigma _ { ( X _ { i } , Y _ { i } , Z _ { i } ) } [ x , y ] = \frac { e ^ { - D [ x , y , i ] / \tau } } { \sum _ { [ x , y ] } e ^ { - D [ x , y , j ] / \tau } } .
106
+ $$
107
+
108
+ and compute a similar soft argmax mapping of surface points to pixels, as shown in Fig. 3 (Right).
109
+
110
+ Relation to keypoints. The output of classic keypoint detectors are often represented as $K$ -channel heatmaps over the pixel grid, where $K$ is the number of keypoints. To define dense keypoints, one may increase the number of channels, which is computationally heavy. Similar to CSE [29], we represent dense keypoints as low-dimensional pixel-surface embeddings, which establishes a mapping between pixels and a canonical 3D surface, but far more efficiently. DensePose [12] and CSM [20] use an alternative pixel-to-surface mapping that regresses a surface coordinate at every pixel. In contrast, our pixel-surface embedding captures multimodal uncertainties over keypoints; for example, $\sigma _ { ( x , y ) } [ i ]$ can capture the fact that a particular pixel matches well to both the left and right ankle, as visualized in Fig. 3, while a regressor may “regress” to the mean of the two surface coordinates.
111
+
112
+ # 3.3 Learning Embeddings and Articulated Shapes
113
+
114
+ Next we will introduce the loss functions that enable learning both embeddings and articulated shapes from monocular videos without a pre-defined shape template or annotated correspondence. To learn non-degenerate embeddings and overcome the local optima issue in differertiable renderers, we carefully construct a 3D matching loss and a 2D cycle loss.
115
+
116
+ 3D match loss. Arguably, the simplest loss to learn embeddings is to minimize the difference between the rendered surface features and the observed pixel features:
117
+
118
+ $$
119
+ L _ { \mathrm { f e a t u r e - c o n s i s t e n c y } } = \sum _ { x , y } { \Big ( } 1 - \cos ( \mathcal { R } ( \mathbf { F } _ { \mathbf { S } } ) [ x , y ] , \mathbf { F } _ { \mathbf { I } } [ x , y ] ) { \Big ) } ,
120
+ $$
121
+
122
+ where $\cos ( \cdot )$ denotes the inner product between two normalized vectors, and $\mathcal { R } ( \mathbf { F _ { S } } )$ is the differentiably rendered surface descriptors. However, the feature consistency loss admits a trivial solution, where all pixel and surface features are the same constant (yielding zero error). To address this, we introduce a 3D matching loss that ensures pixel embeddings only match to surface embeddings rendered at the pixel location:
123
+
124
+ $$
125
+ L _ { \mathrm { m a t c h i n g } } = \sum _ { x , y } \left. \mathcal { R } ( \bar { \mathbf { V } } ) [ x , y ] - \hat { \mathbf { S } } [ x , y ] \right. _ { 2 }
126
+ $$
127
+
128
+ where $\mathcal { R } ( \bar { \bf V } )$ is the rendered 3D surface location and $\hat { \mathbf { S } } [ x , y ]$ is the estimated pixel-to-surface mapping from Eq. (6), computed through sampling and computing the softmax distributions $\sigma [ i ]$ over surface points [17]. To minimize the loss, the embeddings of surface points that do not project to $( x , y )$ will be pulled away from the pixel embedding of $( x , y )$ in a contrastive way [13].
129
+
130
+ 2D cycle loss. The match loss aims to learn pixel-surface embeddings that are consistent over video frames and discriminative over difference surface locations. However for articulation optimization, the match loss suffers from bad local optima issue similar to other losses based on differentiable rendering [25]. For instance, when the rendering of a body part is outside the ground-truth object silhouette, a gradient update of articulation parameters would likely not incur a lower loss.
131
+
132
+ To guide articulated 3D shape learning using the learned pixel-surface embeddings, we further define a cycle-based re-projection loss, inspired by prior approaches in 3D model fitting with keypoints [3] and canonical surface mappings [20]. Given an input image, we establish a 2D-3D mapping by extracting a pixel embedding and matching it to surface embedding. Then, we compute the expected surface coordinate $\hat { \mathbf { S } } [ x , y ]$ at every pixel using Eq. (6), and ensure the differentiably rendered canonical surface coordinate lands back on the original pixel coordinate $( x , y )$ ,
133
+
134
+ $$
135
+ L _ { \mathrm { r e p r o j } } = \sum _ { x , y } \left\| \mathcal { R } ( \hat { \mathbf { S } } [ x , y ] ) - ( x , y ) \right\| _ { 2 } .
136
+ $$
137
+
138
+ Reconstruction loss. Finally, we make use of reconstruction losses to ensure that generated images, masks, and flows match their estimated counterparts:
139
+
140
+ $$
141
+ L _ { \mathrm { r e c o n } } = \beta _ { 1 } \lvert | \hat { S } _ { t } ^ { i } - S _ { t } \rvert | _ { 2 } ^ { 2 } + \beta _ { 2 } \lvert | \hat { I } _ { t } ^ { i } - I _ { t } \rvert | _ { 2 } ^ { 2 } + \beta _ { 3 } \sigma _ { t } \lvert | \hat { u } _ { t } ^ { i } - u _ { t } \rvert | _ { 2 } + \beta _ { 4 } \mathrm { p d i s t } ( \hat { I } _ { t } , I _ { t } )
142
+ $$
143
+
144
+ where $\{ \beta _ { 1 } , \cdot \cdot \cdot , \beta _ { 4 } \}$ are weights empirically chosen, $\sigma _ { t }$ is the normalized confidence map for flow measurement, and pdist $( \cdot , \cdot )$ is the perceptual distance [51] measured by an ImageNet-pretrained AlexNet. The reconstruction losses ensure the match between rendered and observed optical flow, texture and silhouette images.
145
+
146
+ Regularization. To avoid degenerate shapes, we use mesh Laplacian regularization [16, 49] to enforce the recovered shape to be smooth, and as-rigid-as-possible (ARAP) regularization to enforce the deformation to be locally rigid [44]. Different from prior work that only preserves the length of edges after articulation, we encourage both the area and length of faces to be the same after articulation. The area preserving term is defined as
147
+
148
+ $$
149
+ L _ { \mathrm { A R A P - a r e a } } = \sum _ { i = 1 } ^ { | E | } \sum _ { j \in N _ { i } } \mid \left| \mathbf { E _ { i } ^ { t } } \times \mathbf { E _ { j } ^ { t } } \right| - \left| \mathbf { E _ { i } ^ { t + 1 } } \times \mathbf { E _ { j } ^ { t + 1 } } \right| \mid ,
150
+ $$
151
+
152
+ where $| E |$ is the number of edges and $N _ { i }$ the indices of neighbouring edges.
153
+
154
+ # 3.4 Representing Surface Properties with MLPs
155
+
156
+ By extending surface embedding MLPs with additional dimensions, we can model other surface properties including textures and even surface-based geometric deformations. Compared to explicitly defined textures, such continuous implicit representations have the capacity to encode arbitrary amount of details and are empirically easier to optimize.
157
+
158
+ Surface appearance. The appearance of the object is represented by a coordinate-MLP queried at points on the canonical mesh surface. To handle view-dependent appearance (such as shadow and lighting), we further concatenate the Fourier features of the $( X , Y , Z )$ coordinates with a frame appearance code, as the input to the texture MLP,
159
+
160
+ $$
161
+ \mathbf { C _ { i , t } } = \phi _ { t e x } ( \mathcal { F } ( \bar { \mathbf { V } } _ { i } ) , \omega _ { t } ) \in \mathbb { R } ^ { 3 } ,
162
+ $$
163
+
164
+ where $\bar { \bf V } _ { i }$ is the i-th canonical mesh vertex, which is passed through a Fourier encoder $\mathcal F ( \cdot )$ as used in NeRF [28], and concatenated with $\omega _ { t }$ , a 64-dimensional frame appearance code associated each image frame $t$ , predicted from a ResNet-18, as $\omega _ { t } = \psi _ { t e x } ( I _ { t } )$ .
165
+
166
+ Instance shape deformation fields. To deal with videos of multiple instances of the same category, as experiments in Sec. 4.3, we model shape variations across instances by a continuous surface deformation field defined on the canonical surface. Similar to the surface texture, we represent the surface deformation field by a shape MLP,
167
+
168
+ $$
169
+ \mathbf { V _ { i , k } } = \bar { \mathbf { V _ { i } } } + \phi _ { s h a p e } ( \mathcal { F } ( \bar { \mathbf { V } } _ { i } ) , \alpha _ { k } ) \in \mathbb { R } ^ { 3 } ,
170
+ $$
171
+
172
+ where $\mathbf { V _ { k } }$ is the rest shape of instance $k$ and $\alpha _ { k }$ is a video-specific 64-dimensional shape code that is randomly initialized and optimized together with the shape MLP.
173
+
174
+ # 4 Experiments
175
+
176
+ We evaluate ViSER in three different scenarios where objects are highly articulating, making it challenging to reconstruct and estimate long-range correspondences. First, we consider long human videos with loose clothing and unusual poses. Next, we evaluate on videos of articulated animals for which accurate shape templates are missing. Finally, we analyze a multi-video variant of ViSER that learns a single model from multiple videos of the same category. All scenarios require jointly establishing long-range correspondences and reconstructing articulated 3D shapes at the same time.
177
+
178
+ Table 1: 2D Keypoint transfer accuracy on athletic videos. Methods with ∗ use keypoint annotations to train. Best results are in bold.
179
+
180
+ <table><tr><td>Method</td><td>break-1</td><td>break-2</td><td>dance</td><td>parkour</td><td>ballet-1</td><td>ballet-2</td><td>ballet-3</td><td>Ave.</td></tr><tr><td>*DensePose CSE [29]</td><td>56.0</td><td>13.2</td><td>77.2</td><td>85.9</td><td>45.6</td><td>49.0</td><td>64.5</td><td>55.9</td></tr><tr><td>*VIBE+SMPLify [18]</td><td>37.1</td><td>8.2</td><td>70.4</td><td>83.8</td><td>55.4</td><td>53.0</td><td>78.8</td><td>55.2</td></tr><tr><td>LASR [49]</td><td>29.1</td><td>18.1</td><td>56.6</td><td>49.8</td><td>44.5</td><td>47.4</td><td>48.6</td><td>42.0</td></tr><tr><td>ViSER (Ours)</td><td>70.5</td><td>22.5</td><td>80.7</td><td>62.9</td><td>52.7</td><td>56.1</td><td>59.9</td><td>57.9</td></tr></table>
181
+
182
+ Table 2: 2D Keypoint transfer accuracy on multiple elephant videos. Best results are in bold.
183
+
184
+ <table><tr><td>Method</td><td>inner</td><td>across</td></tr><tr><td>CSE [29]</td><td>55.7</td><td>52.2</td></tr><tr><td>Flow-VCN[48]</td><td>51.1</td><td>41.2</td></tr><tr><td>LASR [49]</td><td>57.8</td><td>-</td></tr><tr><td>ViSER (Ours)</td><td>80.4</td><td>68.9</td></tr></table>
185
+
186
+ Table 3: 2D Keypoint transfer accuracy on BADJA dataset. Best results are in bold.
187
+
188
+ <table><tr><td>Method</td><td>camel</td><td>dog</td><td>cows</td><td>horse</td><td>bear</td><td>Ave.</td></tr><tr><td>CSE [29]</td><td>48.8</td><td>38.6</td><td>63.8</td><td>60.2</td><td>76.6</td><td>57.6</td></tr><tr><td>Flow-VCN [48]</td><td>47.9</td><td>25.7</td><td>60.7</td><td>14.4</td><td>63.8</td><td>42.5</td></tr><tr><td>N-NRSfM[38]</td><td>67.8</td><td>17.9</td><td>70.0</td><td>8.7</td><td>60.2</td><td>44.9</td></tr><tr><td>LASR [49]</td><td>81.9</td><td>65.8</td><td>83.7</td><td>49.3</td><td>85.1</td><td>73.2</td></tr><tr><td>ViSER (Ours)</td><td>80.1</td><td>73.8</td><td>82.9</td><td>76.3</td><td>87.3</td><td>80.1</td></tr></table>
189
+
190
+ Optimization details We use the AdamW [27] optimizer with a batch of 4 consecutive image pairs. We reconstruct a long video sequence in an incremental manner similar to classic SfM. First, we use an initial set of around 20 consecutive frames to initialize the shape and pixel surface embeddings. The initial set is selected such that the viewpoint coverage is large enough. Then we gradually add in new frames. When a new frame is added, we first apply the 2D cycle loss $L _ { r e p r o j }$ to optimize its articulations, and then jointly optimize all frames with all losses. Empirically, simultaneously optimizing all the video frames produces unstable results of root body poses (or equivalently camera poses).
191
+
192
+ # 4.1 Athletic Video Reconstruction
193
+
194
+ Dataset. To evaluate ViSER on long-videos, we construct an athletic video dataset that is challenging due to loose clothing and unusual body poses. It consists of four videos from DAVIS [31] and three ballet videos. All videos are segmented and manually annotated with keypoints following the MSCOCO format [24]. We only use keypoint annotations for evaluation purposes.
195
+
196
+ Metrics. Due to the lack of ground-truth 3D data for challenging athletic human videos, we use 2D keypoint transfer as a proxy metric [2, 52]. Given any two frames from a video, the goal is to transfer an annotated 2D keypoint from one frame to another. The accuracy is measured by percentage of correctly transferred keypoints over all T(T-1) pairs of frames in a T-frame video. A transferred keypoint is marked as correct when its distance to the ground-truth annotation is lower than $d _ { t h } = 0 . 2 \sqrt { | \boldsymbol { S } | }$ , where $| S |$ is the area of the ground-truth silhouette [2]. In general, a more accurate reconstruction leads to a higher transfer accuracy.
197
+
198
+ Baselines. To compare with template-based approaches for video human reconstruction, we use VIBE with SMPLify temporal smoothing [18]. To compare with template-free methods, we use LASR [49], which also reconstructs articulated shapes using the same input setting as ours. To transfer keypoints from a reference frame to a target frame, we back-project the annotated keypoint in the reference frame to the canonical surface, and then project the intersected 3D point to the target frame. We also compare against Densepose CSE [29], which produces dense pixel-to-surface correspondences for a given category, but does not produce 3D reconstructions. To transfer keypoints for Densepose CSE, we compute pixelwise surface mappings for both frames and find the best matching w.r.t.geodesic distance on the surface. We further qualitatively compare against a state-ofthe-art human reconstruction method, PiFUHD [36] in Fig. 4, which only produces reconstruction, but not correspondence.
199
+
200
+ ![](images/fbe091753c2f0495ced8cb953c6fbf2f59e8ee2d1da65f5d598e70f3690e086d.jpg)
201
+ Figure 4: Qualitative comparisons for athletic video articulated shape reconstruction. Compared to methods that uses shape and pose priors (VIBE $^ +$ SMPLify and PiFUHD), our method achieves comparable performance for common appearance and poses, and does much better on unusual poses such as break-dancers.
202
+
203
+ ![](images/166855c4415d8702b655a7dc42e4809baf2c3b46ebfba6bba2cf6a0b7a6990f9.jpg)
204
+ Figure 5: Qualitative comparisons for elephant shape reconstruction from multiple videos. Notice that ViSER is able to take advantage of multiple videos to improve the category-level shape reconstruction but also reconstruct instance-specific details (as shown in red circles).
205
+
206
+ ![](images/16aec4a0675c4cd1f54df8a58f8265aa7b4db992bddc92c4e4686871ea10a196.jpg)
207
+ Figure 6: Part segmentation results. Colors are determined by hard-assigning vertices to the closest rigid bones.
208
+
209
+ ![](images/8d21ac3a175e69d94bbae955b587e18f58587f3cb36c3a814a1ad4d8dd719e12.jpg)
210
+ Figure 7: Comparison between single video ViSER and multi-video ViSER in terms of reconstructing YTVOS elephants. We find using multiple videos helps reconstructing the body parts that may be occluded in a single video. While single-video ViSER reconstructs a flattened shape and misses the hidden rear leg of the elephant, multiple video ViSER reconstructs a more plausible shape and recovers both the two rear limbs.
211
+
212
+ Results. Fig. 4 shows visual reconstruction results on sample videos and for different techniques. ViSER estimates reconstructions that are more faithful to the input than the baselines, especially when the humans have unusual poses like in the first two rows. The accurate long-range correspondence enables ViSER to reconstruct finer details than LASR that does not explicitly try to estimate longrange correspondences. We summarize quantitative comparisons in Tab. 1. There is a moderate performance gap between ViSER and template-based methods when the input fits the latter, such as parkour with tight clothing and usual pose. Note that the supervised Densepose CSE and OpenPose methods fail on breakdance videos due to the novel pose, and also do not work well on ballet dancers due to loose clothing. As a result, template-based approaches that rely on accurate pose recognition, such as VIBE [18] fails. In contrast. our method does not suffer from such poor out-of-distribution generalization. By establishing long-range correspondences, ViSER achieves higher keypoint transfer accuracy and better 3D reconstruction than LASR.
213
+
214
+ # 4.2 Reconstructing Animals from a Video
215
+
216
+ We use BADJA [2] to evaluate ViSER on animal videos including camel, cow, dog, bear and horse. Similar to the athletic human video dataset, we compare against template-free methods such as LASR and neural-dense-NRSfM (N-NRSfM) [38]. Similar to LASR and our setup, N-NRSfM learns a video-specific model for object shape, deformation and camera parameters from multi-frame optical flow estimations [8]. We further report performance comparison with dense correspondence methods such as CSE and an optical flow method, VCN. We use the CSE model trained on corresponding animal categories (except that we use the horse model for camel), and the “robust” model of VCN [1], which is the input to our method. As shown in Tab. 3, ViSER achieves better or similar accuracy on all five animal videos compared to LASR and N-NRSfM. While the input optical flow is not robust at estimating long-range correspondences, our method integrates local optical flow to a dense long-range correspondences via a canonical shape, and achieves much better keypoint transfer accuracy. Note that CSE performs well for categories it has been trained on, such as cow, horse and bear, but performs poorly on novel animal categories, such as camel and a novel breed of dog.
217
+
218
+ # 4.3 Multi-video Shape and Correspondence
219
+
220
+ We curate a set of seven videos of different elephants from YTVOS [47] for multi-video shape and correspondence recovery. The annotations will be released for further research. We treat multiple videos as a single long video with strong appearance changes and shape variations. In the multi-video setup, We evaluate keypoint transfer accuracy on both the same instance (with video frames) and over different instances (across video frames), as denoted by “inner” and “across”. Quantitative results in Tab. 2 shows that ViSER is more accurate than the baseline methods in both cross-video keypoint transfer and inner-video keypoint transfer by a large margin, without using any keypoint annotations or pre-defined shape templates. Fig. 5 show visual result comparisons. While LASR recovers the visible surfaces in a video, it cannot infer the invisible parts. In contrast, our method is able to take advantage of multiple videos from the same category and produce a much better shape reconstruction. Note that LASR cannot handle multiple videos as it requires optical flow computed between every adjacent frame pairs. ViSER, on the other hand, also uses correspondences via estimated 3D shape, thereby allowing the use of multiple videos even when the optical flow is missing across videos.
221
+
222
+ Table 4: Ablation study on keypoint transfer. Best results are in bold.
223
+
224
+ <table><tr><td>Method</td><td>break-1</td><td>elephants-inner</td><td>elephants-cross</td></tr><tr><td>Full</td><td>70.5</td><td>80.4</td><td>68.9</td></tr><tr><td>w/o matching loss Lmatching, Eq. (9)</td><td>36.2</td><td>51.3</td><td>42.6</td></tr><tr><td>w/o reprojection loss Lreproj, Eq. (10)</td><td>38.3</td><td>80.1</td><td>62.5</td></tr><tr><td>CSM regression [20]</td><td>47.1</td><td>77.4</td><td>63.3</td></tr></table>
225
+
226
+ Benefit of Using Multiple Videos. To examine the benefits of using multiple videos, we further compare multi-video ViSER with single-video ViSER, as shown in Fig. 7. We find using multiple videos helps reconstructing the body parts that may be occluded in a single video.
227
+
228
+ # 4.4 Part Discovery and Ablations
229
+
230
+ Part discovery. ViSER can discover detailed 3D part segmentation without any manual annotation, as shown in Fig. 6. After training either on a collection of videos or a long video, ViSER can segment the 3D shape into meaningful parts, such as the trunk of the elephants and the feet of the dancer.
231
+
232
+ Ablation study. We perform an ablation study on break-1 and elephants, as shown in Tab. 4. Without the contrastive matching loss, the pixel-surface embedding converges to a trivial solution with a significant decrease of accuracy. Removing the re-projection loss leads to much lower keypoint transfer (KPT) accuracy on the breakdance-1 sequence and cross-video KPT accuracy on the elephant videos. Likely the surface reprojection loss plays an important role in learning correct articulation that follows the bottom-up dense keypoint predictions. This may effectively avoid the local minimum issue for the differentiable rendering optimization. Finally, replacing the pixel-surface embedding with direct CSM regression [20] does not reason about distribution of possible matches and results in worse performance.
233
+
234
+ Limitations. We find ViSER to be sensitive to the random initialization of network parameters. We run optimization with different random seeds for initializing the network parameters and find some perform considerably worse than the others, due to the convergence to bad local optima. Although in practice, one could spot the convergence to a bad local optimum by visualizing the articulated shapes and re-run the optimization with a different random seed, an automatic method for selecting the best model parameters over different trials is desired. We leave how to make the optimization of ViSER robust for future research.
235
+
236
+ ViSER also relies on optical flow to kick-start with a reasonable initial shape and pose for learning pixel-surface embeddings. Although recent optical flow models generalize well in many scenarios, they may fail when a video is of low resolution or contains significant motion blur. In such challenging cases, using category shape and pose priors to initialize ViSER would be a promising direction.
237
+
238
+ # 5 Conclusions
239
+
240
+ We have introduced ViSER, a method to reconstruct articulate shapes, dense trajectories, and object parts from monocular videos. ViSER establishes long-range correspondence by matching 2D pixels to a canonical 3D mesh via learned video-specific surface embeddings. Experimental results show that ViSER, without a template shape or keypoint annotations, compares favorably against prior work on challenging human and animal videos. ViSER shows that it could be fruitful to reconstruct articulate shapes for categories in the wild, and we hope to see more work in this direction.
241
+
242
+ Broader impact. ViSER has many potential applications, e.g., in robotics, AR/VR, and film industry, but may be used for malicious purposes, e.g., producing fake videos or extracting bio-metric information without prior consent. ViSER is only suitable to offline applications as it takes about several hours to process a 80-frame video on one NVIDIA P100 GPU.
243
+
244
+ # Acknowledgments
245
+
246
+ This work was supported by Google Cloud Platform (GCP) awards received from Google and the CMU Argo AI Center for Autonomous Vehicle Research. We thank William T. Freeman and many others from CMU and Google for valuable feedback.
247
+
248
+ # References
249
+
250
+ [1] [2] B. Biggs, T. Roddick, A. Fitzgibbon, and R. Cipolla. Creatures great and smal: Recovering the shape and motion of animals from video. In ACCV, pages 3–19. Springer, 2018. [3] F. Bogo, A. Kanazawa, C. Lassner, P. Gehler, J. Romero, and M. J. Black. Keep it SMPL: Automatic estimation of 3D human pose and shape from a single image. In ECCV, 2016.
251
+ [4] C. Bregler, A. Hertzmann, and H. Biermann. Recovering non-rigid 3d shape from image streams. In CVPR, volume 2, pages 690–696. IEEE, 2000. [5] D. J. Butler, J. Wulff, G. B. Stanley, and M. J. Black. A naturalistic open source movie for optical flow evaluation. In A. Fitzgibbon et al. (Eds.), editor, ECCV, Part IV, LNCS 7577, pages 611–625. Springer-Verlag, Oct. 2012. [6] T. Darrell and A. P. Pentland. Cooperative robust estimation using layers of support. TPAMI, 17(5): 474–487, 1995.
252
+ [7] J. Engel, T. Schöps, and D. Cremers. Lsd-slam: Large-scale direct monocular slam. In ECCV, pages 834–849. Springer, 2014. [8] R. Garg, A. Roussos, and L. Agapito. A variational approach to video registration with subspace constraints. IJCV, 2013. [9] A. Geiger, P. Lenz, and R. Urtasun. Are we ready for autonomous driving? The KITTI vision benchmark suite. In Proc. CVPR, pages 3354–3361. IEEE, 2012.
253
+ [10] S. Goel, A. Kanazawa, and J. Malik. Shape and viewpoints without keypoints. In ECCV, 2020.
254
+ [11] P. F. Gotardo and A. M. Martinez. Non-rigid structure from motion with complementary rank-3 spaces. In CVPR, pages 3065–3072. IEEE, 2011.
255
+ [12] R. A. Güler, N. Neverova, and I. Kokkinos. Densepose: Dense human pose estimation in the wild. In CVPR, pages 7297–7306, 2018.
256
+ [13] R. Hadsell, S. Chopra, and Y. LeCun. Dimensionality reduction by learning an invariant mapping. In CVPR, volume 2, pages 1735–1742. IEEE, 2006.
257
+ [14] A. Jepson and M. J. Black. Mixture models for optical flow computation. In CVPR, pages 760–761. IEEE, 1993.
258
+ [15] H. Joo, T. Simon, X. Li, H. Liu, L. Tan, L. Gui, S. Banerjee, T. Godisart, B. Nabbe, I. Matthews, et al. Panoptic studio: A massively multiview system for social interaction capture. TPAMI, 41(1):190–204, 2017.
259
+ [16] A. Kanazawa, S. Tulsiani, A. A. Efros, and J. Malik. Learning category-specific mesh reconstruction from image collections. In ECCV, 2018.
260
+ [17] A. Kendall, H. Martirosyan, S. Dasgupta, P. Henry, R. Kennedy, A. Bachrach, and A. Bry. End-to-end learning of geometry and context for deep stereo regression. In ICCV, pages 66–75, 2017.
261
+ [18] M. Kocabas, N. Athanasiou, and M. J. Black. Vibe: Video inference for human body pose and shape estimation. In CVPR, June 2020.
262
+ [19] C. Kong and S. Lucey. Deep non-rigid structure from motion. In ICCV, pages 1558–1567, 2019.
263
+ [20] N. Kulkarni, A. Gupta, D. F. Fouhey, and S. Tulsiani. Articulation-aware canonical surface mapping. In CVPR, pages 452–461, 2020.
264
+ [21] J. P. Lewis, M. Cordner, and N. Fong. Pose space deformation: a unified approach to shape interpolation and skeleton-driven deformation. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pages 165–172, 2000.
265
+ [22] X. Li, S. Liu, S. De Mello, K. Kim, X. Wang, M.-H. Yang, and J. Kautz. Online adaptation for consistent mesh reconstruction in the wild. In NeurIPS, 2020.
266
+ [23] X. Li, S. Liu, K. Kim, S. De Mello, V. Jampani, M.-H. Yang, and J. Kautz. Self-supervised single-view 3d reconstruction via semantic consistency. ECCV, 2020.
267
+ [24] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740–755. Springer, 2014.
268
+ [25] S. Liu, T. Li, W. Chen, and H. Li. Soft rasterizer: A differentiable renderer for image-based 3d reasoning. ICCV, Oct 2019.
269
+ [26] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. SMPL: A skinned multi-person linear model. SIGGRAPH Asia, 34(6):248:1–248:16, Oct. 2015.
270
+ [27] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
271
+ [28] B. Mildenhall, P. P. Srinivasan, M. Tancik, J. T. Barron, R. Ramamoorthi, and R. Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. In ECCV, pages 405–421. Springer, 2020.
272
+ [29] N. Neverova, D. Novotny, V. Khalidov, M. Szafraniec, P. Labatut, and A. Vedaldi. Continuous surface embeddings. In NeurIPS, 2020.
273
+ [30] R. A. Newcombe, S. Izadi, O. Hilliges, D. Molyneaux, D. Kim, A. J. Davison, P. Kohi, J. Shotton, S. Hodges, and A. Fitzgibbon. Kinectfusion: Real-time dense surface mapping and tracking. In 2011 10th IEEE International Symposium on Mixed and Augmented Reality, pages 127–136. IEEE, 2011.
274
+ [31] F. Perazzi, J. Pont-Tuset, B. McWilliams, L. Van Gool, M. Gross, and A. Sorkine-Hornung. A benchmark dataset and evaluation methodology for video object segmentation. In CVPR, pages 724–732, 2016.
275
+ [32] A. Rav-Acha, P. Kohli, C. Rother, and A. Fitzgibbon. Unwrap mosaics: A new representation for video editing. In SIGGRAPH, pages 1–11, 2008.
276
+ [33] Z. Ren, O. Gallo, D. Sun, M.-H. Yang, E. B. Sudderth, and J. Kautz. A fusion approach for multi-frame optical flow estimation. In WACV, pages 2077–2086. IEEE, 2019.
277
+ [34] O. Ronneberger, P. Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pages 234– 241. Springer, 2015.
278
+ [35] S. Saito, Z. Huang, R. Natsume, S. Morishima, A. Kanazawa, and H. Li. Pifu: Pixel-aligned implicit function for high-resolution clothed human digitization. In ICCV, pages 2304–2314, 2019.
279
+ [36] S. Saito, T. Simon, J. Saragih, and H. Joo. Pifuhd: Multi-level pixel-aligned implicit function for highresolution 3d human digitization. In CVPR, 2020.
280
+ [37] P. Sand and S. Teller. Particle video: Long-range motion estimation using point trajectories. IJCV, 80(1): 72, 2008.
281
+ [38] V. Sidhu, E. Tretschk, V. Golyanik, A. Agudo, and C. Theobalt. Neural dense non-rigid structure from motion with latent space constraints. In ECCV, pages 204–222. Springer, 2020.
282
+ [39] N. Snavely, S. M. Seitz, and R. Szeliski. Modeling the world from internet photo collections. IJCV, 80(2): 189–210, 2008.
283
+ [40] D. Sun, X. Yang, M.-Y. Liu, and J. Kautz. PWC-Net: CNNs for optical flow using pyramid, warping, and cost volume. In CVPR, June 2018.
284
+ [41] N. Sundaram, T. Brox, and K. Keutzer. Dense point trajectories by gpu-accelerated large displacement optical flow. In ECCV, pages 438–451. Springer, 2010.
285
+ [42] Z. Teed and J. Deng. RAFT: Recurrent all-pairs field transforms for optical flow. In ECCV, 2020.
286
+ [43] C. Tomasi and T. Kanade. Shape and motion from image streams under orthography: a factorization method. IJCV, 9(2):137–154, 1992.
287
+ [44] S. Tulsiani, N. Kulkarni, and A. Gupta. Implicit mesh reconstruction from unannotated image collections. In arXiv, 2020.
288
+ [45] J. Y. A. Wang and E. H. Adelson. Representing moving images with layers. IEEE Transactions on Image Processing, 3(5):625–638, Sept. 1994.
289
+ [46] S. Wu, T. Jakab, C. Rupprecht, and A. Vedaldi. Dove: Learning deformable 3d objects by watching videos. arXiv preprint arXiv:2107.10844, 2021.
290
+ [47] N. Xu, L. Yang, Y. Fan, J. Yang, D. Yue, Y. Liang, B. Price, S. Cohen, and T. Huang. YouTube-VOS: Sequence-to-sequence video object segmentation. In ECCV, pages 585–601, 2018.
291
+ [48] G. Yang and D. Ramanan. Volumetric correspondence networks for optical flow. In NeurIPS, pages 794–805, 2019.
292
+ [49] G. Yang, D. Sun, V. Jampani, D. Vlasic, F. Cole, H. Chang, D. Ramanan, W. T. Freeman, and C. Liu. LASR: Learning articulated shape reconstruction from a monocular video. In CVPR, 2021.
293
+ [50] Y. Ye, S. Tulsiani, and A. Gupta. Shelf-supervised mesh prediction in the wild. In CVPR, pages 8843–8852, June 2021.
294
+ [51] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, pages 586–595, 2018.
295
+ [52] T. Zhou, P. Krahenbuhl, M. Aubry, Q. Huang, and A. A. Efros. Learning dense correspondence via 3d-guided cycle consistency. In CVPR, 2016.
296
+ [53] S. Zuffi, A. Kanazawa, D. Jacobs, and M. J. Black. 3D menagerie: Modeling the 3D shape and pose of animals. In CVPR, July 2017.
297
+ [54] S. Zuffi, A. Kanazawa, and M. J. Black. Lions and tigers and bears: Capturing non-rigid, 3D, articulated shape from images. In CVPR, 2018.
parse/train/-JJy-Hw8TFB/-JJy-Hw8TFB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1lxH20qtX/B1lxH20qtX.md ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING TO CONTROL SELF-ASSEMBLING MORPHOLOGIES: A STUDY OF GENERALIZATION VIA MODULARITY
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Much of contemporary sensorimotor learning assumes that one is already given a complex agent (e.g., a robotic arm) and the goal is to learn to control it. In contrast, this paper investigates a modular co-evolution strategy: a collection of primitive agents learns to self-assemble into increasingly complex collectives in order to solve control tasks. Each primitive agent consists of a limb and a neural controller. Limbs may choose to link up to form collectives, with linking being treated as a dynamic action. When two limbs link, a joint is added between them, actuated by the ‘parent’ limb’s controller. This forms a new ‘single’ agent, which may further link with other agents. In this way, complex morphologies can emerge, controlled by a policy whose architecture is in explicit correspondence with the morphology. In experiments, we demonstrate that agents with these modular and dynamic topologies generalize better to test-time environments compared to static and monolithic baselines. Project videos are available at https:// doubleblindICLR19.github.io/self-assembly/.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Only a tiny fraction of the Earth’s biomass is composed of higher-level organisms capable of complex sensorimotor actions of the kind popular in contemporary robotics research (navigation, pick and place, etc). A large portion is primitive single-celled organisms, such as bacteria (Bar-On et al., 2018). Possibly the single most pivotal event in the history of evolution was the point when single-celled organisms switched from always competing with each other for resources to sometimes cooperating, first by forming colonies, and later by merging into multicellular organisms (Alberts et al., 1994). These modular self-assemblies were successful because they combined the high adaptability of single-celled organisms while making it possible for vastly more complex behaviours to emerge. Like many researchers before us (Murata & Kurokawa, 2007; Sims, 1994; Tu & Terzopoulos, 1994; Yim et al., 2000; 2007), we are inspired by the biology of multicellular evolution as a model for emergent complexity in artificial agents. Unlike most previous work however, we are primarily focused on modularity as a way of improving generalization to novel environmental conditions.
12
+
13
+ In this paper, we present a study of modular self-assemblies of primitive agents — “limbs” which can link up to solve a shared task. The limbs have the option to bind together by adding a joint that connects their morphologies (Figure 1a), and when they do so, they pass messages and share rewards. Each limb comes with a simple neural net that controls the torque applied to its joints. Linking and unlinking is treated as a dynamic action, so that the limb assembly can change shape during a single episode of the simulation. This setup has previously been explored in robotics as “self-reconfiguring modular robots” (Stoy et al., 2010). However, unlike prior work on such robots, where the control policies are hand-defined, we show how to learn the policies and study the generalization properties that emerge.
14
+
15
+ To make this problem computationally tractable, we do not allow the limb assemblies to form cycles in morphology. Limbs pass messages to their neighbors in this graph in order to coordinate behavior. All limbs share a common policy function, parametrized by a neural network, which takes the messages from adjacent limbs as input and outputs a torque to rotate the limb in addition to the linking/un-linking action. We call the aggregate neural network a Dynamic Graph Network (DGN)
16
+
17
+ ![](images/7e38b385fb3bd76766da4a06a8e23300b7c416b8411920bae8c26e48e432e04c.jpg)
18
+ Figure 1: We study the modular co-evolution of control and morphology where a collection of primitive agents self-assemble to form complex collectives to perform given tasks. (a) Each primitive agent is a limb containing a cylindrical body and a configurable motor. These limbs can connect with each other using the attached motor as a joint. (b) We illustrate our dynamic agents in four environments / tasks: standing up, locomotion, manipulation (pushing), and sumo wrestling. See project videos at https://doubleblindICLR19.github.io/self-assembly/.
19
+
20
+ since it is a graph neural network (Scarselli et al., 2009) that can dynamically change topology as a function of its own outputs.
21
+
22
+ We test our limb assemblies on four tasks: standing, locomotion, pushing and wrestling, shown in Figure 1b. We find that DGNs enable a single modular policy to control multiple possible morphologies, even those unseen during training. For example, a 6-limb policy, trained to build a 6-limb tower, can be applied at test time on 12 limbs, and results in a 12-limb tower. Not only are the policies robust to changes in number of limbs, they also generalize well to novel test-time environmental conditions, such as added wind, or new landscapes. These results together demonstrate that our modular and dynamic self-assembling agents have advantages toward generalization to new environments and tasks. Our main contributions are:
23
+
24
+ • Training primitive agents that self-assemble into complex morphologies to jointly solve control tasks.
25
+ Formulating morphological search as a reinforcement learning problem, where linking and unlinking are treated as actions.
26
+ • Representing policy via a graph whose topology matches the agent’s physical structure.
27
+ • Demonstrating that these self-assembling agents both train and generalize better than fixedmorphology baselines.
28
+
29
+ # 2 ENVIRONMENT AND AGENTS
30
+
31
+ Investigating the co-evolution of control (i.e., software) and morphology (i.e., hardware) is not supported within standard benchmark environments typically used for sensorimotor control, requiring us to create our own. We opted for a minimalist design for our agents, the environment, and the reward structure, which is crucial to ensuring that the emergence of limb assemblies with complex morphologies is not forced, but happens naturally.
32
+
33
+ Environment Structure Our environment contains an arena where a collection of primitive agent limbs can self-assemble to perform control tasks. This arena is a ground surface equipped with gravity and friction. The arena can be procedurally changed to generate a variety of novel terrains by changing the height of each tile on the ground (see Figure 1b). To evaluate the generalization properties of our agents, we generate a series of novels terrains. This include generating bumpy terrain by randomizing the height of nearby tiles, stairs terrain by incrementally increasing height of each row of tiles, hurdles terrain by changing height of each row of tiles, gaps terrain by removing alternate row of tiles, etc. Some variations also include putting the arena ‘under water’ which basically amounts to increased drag (i.e. buoyancy). We start our environment with a set of six primitive limb agents on the ground which can assemble to form collectives to perform complex tasks.
34
+
35
+ Agent Structure All our primitive limb agents share the same simple structure: a cylindrical body with a configurable motor on one end. One end of the cylinder is free and the other end contains a configurable motor. The free-end of the limb can link up with the motor-end of the other limb, and then the motor acts as a joint between two limbs with three degrees of rotation. Hence, one can refer to the motor-end of the cylindrical limb as a parent-end and the free end as a child-end. Multiple limbs can attach their child-end to the parent-end of another limb, as shown in Figure 1(a), to allow for complex graph morphologies to emerge. The limb of the parent-end controls the torques of joint. The un-linking action can be easily implemented by detaching two limbs, but the linking action has to deal with the ambiguity of which limb to connect to (if at all). To resolve these modeling issues, we implement the linking action by attaching the closest limb within a small radius around the parent-node. If no other limb is present within the threshold range, the linking action has no effect.
36
+
37
+ The primitive limb agents are dropped in an environment to jointly solve a given control task. One key component of the self-assembling agent setup that makes it different from typical multi-agent scenarios (Wooldridge, 2009) is that if some agents assemble to form a collective, the resulting morphology becomes a new single agent and all limbs within the morphology maximize a joint reward function. The output action space of each primitive agent contains the continuous torque values that are to be applied to the motor connected to the agent, and are denoted by $\{ \tau _ { \alpha } , \tau _ { \beta } , \tau _ { \gamma } \}$ for three degrees of rotation. In addition to the torque controls, each limb can decide to attach another link at its parent-end, or decide to unlink its child-end if already connected to other limb. The linking and unlinking decisions are binary. This complementary role assignment of child and parent ends, i.e., parent can only link and child can only unlink, makes it possible to decentralize the control across limbs in a self-assembly.
38
+
39
+ In our self-assembling setup, each agent limb only has access to its local sensory information and does not know about other limbs. The sensory input of each agent includes its own dynamics, i.e., the location of the limb in 3-D euclidean coordinates, its velocity, angular rotation and angular velocity. Each end of the limb also has a trinary touch sensor to detect whether the end of the cylinder is touching 1) the floor, 2) another limb, or 3) nothing. Additionally, we also provide our limbs with a very simple point depth sensor that captures the surface height on a $9 \times 9$ grid around the projection of center of limb on the surface. One essential requirement to operationalize this setup is an efficient simulator to allow simultaneous simulation of several of these primitive limb agents. We implement our environments in the Unity ML (Juliani et al., 2018) framework, which is one of the dominant platforms for designing realistic games. For computational reasons, we do not allow the emergence of cycles in the self-assembling agents by not allowing the limbs to link up with already attached limbs within the same morphology. However, our setup is trivially extensible to general graphs.
40
+
41
+ # 3 LEARNING TO CONTROL SELF-ASSEMBLING MORPHOLOGIES
42
+
43
+ Consider a set of primitive limbs indexed by $i$ in $\{ 1 , 2 , \ldots , n \}$ , which are dropped in the environment arena $\mathcal { E }$ to perform a given continuous control task. If needed, these limbs can assemble to form complex collectives in order to improve their performance on the task. The task is represented by a reward function $r _ { t }$ and the goal of the limbs is to maximize the discounted sum of rewards over time $t$ . If some limbs assemble to form a collective, the resulting morphology effectively becomes a single agent with a joint network to maximize the joint reward of the connected limbs. Further, the reward of an assembled morphology is a function of the whole morphology and not the individual agent limbs. For instance, in the task of learning to stand up, the reward is the height of the individual limbs if they are separate, but is the height of the whole morphology if those limbs have assembled into a collective. We now discuss our proposed formulation for learning to control these self-assembling agents.
44
+
45
+ ![](images/d4957739eb7c79e6a980308079d88025f7454b0ce228924b33db7531a74c9a58.jpg)
46
+ Figure 2: High-level visualization of our method. A set of primitive ’limbs’ learn to self-assemble into morphologies where each limb is represented by a neural network linked via graph of physical edges. The inset on right shows the message-passing diagram for each node. Project videos at https://doubleblindICLR19.github.io/self-assembly/.
47
+
48
+ # 3.1 CO-EVOLUTION: LINKING/UNLINKING AS AN ACTION
49
+
50
+ To learn a modular controller policy that could generalize to novel setups, our agents must learn the controller jointly as the morphology evolves over time. The limbs should simultaneously decide which torques to apply to their respective motors, while taking into account the connected morphology. Our hypothesis is that if a controller policy could learn in a modular fashion over iterations of increasingly sophisticated morphologies (see Figure 3b), it could learn to be robust and generalizable to diverse situations. So, how can we optimize control and morphology under a common end-to-end framework?
51
+
52
+ We propose to treat the decision of linking and unlinking as additional actions of our primitive limb agents. The total action space $a _ { t }$ at each iteration $t$ can be denoted as $\left\{ \tau _ { \alpha } , \tau _ { \beta } , \tau _ { \gamma } , \sigma _ { l i n k } , \sigma _ { u n l i n k } \right\}$ where $\tau _ { * }$ denote the raw continuous torque values to be applied at the motor and $\sigma _ { * }$ denote the binary actions whether to connect another limb at the parent-end or disconnect the child-end from the other already attached limb. This simple view of morphological evolution allows us to use ideas from learning-driven control, in particular, reinforcement learning (Sutton & Barto, 1998).
53
+
54
+ # 3.2 MODULARITY: SELF-ASSEMBLING AGENT AS A GRAPH OF LIMBS
55
+
56
+ Integration of control and morphology in a common framework is only the first step. The key question is how to model this controller policy such that it is modular and reuses information across generations of morphologies. Let $a _ { t } ^ { i }$ be the action space and $s _ { t } ^ { i }$ be the local sensory input-space of the agent $i$ . One naive approach to maximizing the reward is to simply combine the states of the limbs into the input-space output all the actions jointly using a single network. Formally, the policy is simply $\vec { a } _ { t } = \bar { [ } a _ { t } ^ { 0 } , \bar { a _ { t } ^ { 1 } } \cdot \cdot \cdot a _ { t } ^ { n } \bar { ] } = \Pi ( s _ { t } ^ { 0 } , s _ { t } ^ { 0 } \ldots , s _ { t } ^ { \bar { n } } )$ . This interprets the self-assemblies as a single monolithic agent, ignoring the graphical structure. This is the current approach to solve many control problems, e.g., Mujoco environments like humanoid (Brockman et al., 2016) where the policy $\Pi$ is trained to maximize the sum of discounted rewards using reinforcement learning.
57
+
58
+ In this work, we represent the policy of the agent via a graph neural network (Scarselli et al., 2009) in such a way that it explicitly corresponds to the morphology of the agent. Let’s consider the collection of primitive agent limbs as graph $G$ where each node is denoted by to the primitive limb agent $i$ . Two limbs being physically connected by a joint is analogous to having an edge in the graph. At a joint, the limb which connects itself via its parent-end acts as a parent-node in the corresponding edge, and the other limbs which connect to that joint via child-ends are child-nodes. The parent-node (i.e., the agent with the parent-end) controls the torque of the edge (i.e., the joint motor), as described in Section-2.
59
+
60
+ # 3.3 DYNAMIC GRAPH NETWORKS (DGN)
61
+
62
+ Each primitive limb node $i$ has a policy controller of its own, which is represented by a neural network $\pi _ { \theta } ^ { i }$ and receives a corresponding reward $r _ { t } ^ { i }$ for each time step $t$ . We represent the policy of the self-assembled agent by the aggregated neural network that is connected in the same graphical manner as the physical morphology. The edge connectivity of the graph is represented in the overall graph policy by passing messages that flow from each limb network to the other limbs physically connected to it via a joint. The parameters $\theta$ are shared across each primitive limb agent allowing the overall policy of the graph to be modular with respect to each node. However, recall that the agent morphologies are dynamic, i.e., the connectivity of the limbs changes based on policy outputs. This changes the edge connectivity of the corresponding graph network at every timestep, depending on the actions predicted by each limb controller network in the previous timestep. Hence, we call this aggregate neural net a Dynamic Graph Network (DGN) since it is a graph neural network that can dynamically change topology as a function of its own outputs in the previous iteration.
63
+
64
+ DGN Optimization A typical rollout of our self-assembling agents during an episode of training contains a sequence of torques $\tau _ { t } ^ { i }$ and the linking actions $\boldsymbol { \sigma } _ { t } ^ { i }$ for each limb at each timestep $t$ . The policy parameter $\theta$ is optimized to jointly maximize the reward for each network limb:
65
+
66
+ $$
67
+ \operatorname* { m a x } _ { \theta } \sum _ { i = \{ 1 , 2 . . . , n \} } \mathbb { E } _ { \vec { a } ^ { i } \sim \pi _ { \theta } ^ { i } } [ \Sigma _ { t } r _ { t } ^ { i } ]
68
+ $$
69
+
70
+ We optimize this objective via reinforcement learning, in particular the policy gradient method PPO (Schulman et al., 2017).
71
+
72
+ DGN Connectivity The topology is captured in the DGN by passing messages through the edges between individual network nodes. These messages allow each node to take into account its context relative to other nodes, and are supposed to convey information about the neighbouring policy network nodes in the graph. Since the parameters of these limb networks are shared across each node, these messages can be seen as context information that may inform the policy of its role in the corresponding connected component of graph. The aggregated flow through the whole graph can be encapsulated by passing these contextual messages in topological order (no cycles). One can either do a top-down pass, beginning from the root node (i.e., the node with no parents) to the leaf nodes, or do bottom-up pass, from leaves to root node. This idea is inspired from classical work on Bayesian graph networks where message passing is used for belief-propagation (Jordan, 2003). However, when the graph contains cycles, this idea can be easily extended by performing message-passing iteratively through the cycle until convergence, similar to loopy-belief-propagation in Bayesian graphs (Murphy et al., 1999). We now discuss these message-passing strategies:
73
+
74
+ (a) Top-down message passing: Instead of defining $\pi _ { \theta } ^ { i }$ to be just as a function of state, $\pi _ { \theta } ^ { i } : s _ { t } ^ { i } \to a _ { t } ^ { i }$ we pass each limb’s policy network the information about its parent node as well. Formally, one can redefine $\pi _ { \theta } ^ { i }$ as $\pi _ { \theta } ^ { i } : [ \bar { s } _ { t } ^ { i } , m _ { t } ^ { \bar { p } _ { i } } ] a _ { t } ^ { i }$ where $p _ { i }$ is the parent of node $i$ . However, this also implies that each network node should pass context information as messages to its children networks for them to take it as input. So, we need to define $m _ { t } ^ { i }$ which is the output of each node $i$ , and which is passed as the input context message to all its children. We simply append this to the output of $\pi _ { \theta } ^ { i }$ . Thus, we finally define $\pi _ { \theta } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { p _ { i } } ] [ a _ { t } ^ { i } , m _ { t } ^ { i } ]$ . If $i$ has no parents (i.e, root), a vector of zeros is passed in $m _ { t } ^ { p _ { i } }$ . This is computed recursively until the messages reach the leaf nodes.
75
+
76
+ $( b )$ Bottom-up message passing: In this strategy, messages are passed from leaf nodes to root, i.e., each agent gets information from its children, but not from its parent. Similar to top-down, we redefine $\pi _ { \theta } ^ { i }$ as $\pi _ { \theta } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { C _ { i } } ] [ a _ { t } ^ { i } , m _ { t } ^ { i } ]$ where $m _ { t } ^ { i }$ is the output message of policy that goes into the parent limb and $m _ { t } ^ { C _ { i } }$ t t t t tis the aggregated input messages from all the children nodes, i.e, $\begin{array} { r } { m _ { t } ^ { C _ { i } } = \sum _ { c \in C _ { i } } m _ { t } ^ { c } } \end{array}$ . If $i$ has no children (i.e, root), a vector of zeros is passed in $m _ { t } ^ { C _ { i } }$ . Messages are passed recursively until the root node.
77
+
78
+ (c) Bottom-up then top-down message passing: In this strategy, we pass messages both ways: bottomup, then top-down. In the absence of cycles in graph, a one-way pass (either top-down or bottom-up) is sufficient to capture the aggregated information, similar to Bayesian trees (Jordan, 2003). Even though both-way message-passing is redundant, we still explore it as an alternative since it might help in learning when the agent grows too complex. This is implemented by dividing the policy into two parts, each responsible for one direction of message passing, i.e., the parameters $\theta = [ \theta _ { 1 } , \theta _ { 2 } ]$ . First the bottom-up message passing is formulated as $\pi _ { \theta _ { 1 } } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { C _ { i } } ] m _ { t } ^ { i }$ where the sensory input $s _ { t } ^ { i }$ and input messages $m _ { t } ^ { C _ { i } }$ 1 are used to generate outgoing messages to the parent node. In the top-down pass, messages from the parent are used, in addition with the agent’s own message, to output its action: $\pi _ { \theta _ { 2 } } ^ { i } : [ m _ { t } ^ { i } , m _ { t } ^ { p _ { i } } ] \bar { [ a _ { t } ^ { i } , \hat { m } _ { t } ^ { i } ] }$ where $\hat { m } _ { t } ^ { i }$ are the messages passed to the children nodes.
79
+
80
+ (d) No message passing: Note that for some environments or tasks, the context from the other nodes might not be a necessary requirement for effective control.In such scenarios, passing messages might creates an extra-overhead for training a DGN. Importantly, even with no messages being passed, the DGN framework still allows for coordination between limbs. This is because the control and morphology are still learned jointly in a modular mannner through the course of an episode i.e. the morphology and control in each timestep t depends explicitly on the physical morphology and the torques at previous timestep t 1. To implement the no message passing variant of DGN, we simply zero-out the messages $\bar { m } _ { t } ^ { p _ { i } } , m _ { t } ^ { i }$ at each timestep $t$ . This is similar to a typical cooperative multi-agent setup (Wooldridge, 2009) where each limb makes its own decisions in response to the previous actions of the other agents. However, our setup differs in that our agents may physically join up, rather than just coordinate behavior.
81
+
82
+ # 4 IMPLEMENTATION DETAILS AND BASELINES
83
+
84
+ Implementation Details: We use PPO (Schulman et al., 2017) as the underlying reinforcement learning method to optimize Equation 1. Limb policies are represented by fully-connected neural network and trained with a learning rate of $3 e - 4$ , discount factor of 0.995 and entropy coefficient of 0.01. Each episode is 5000 steps long at training and 1200 steps long at testing. Across all the tasks, the number of limbs at training is kept fixed to 6. Limbs start each episode disconnected and located just above the ground plane at random locations, as shown in Figure 3b. During generalization to novel scenarios, we experiment with changing the number of limbs to 12 or 3 to test the same policy without any further finetuning. All of our tasks require the agent to output continuous raw torque control values.
85
+
86
+ Baselines We compare the role of the above four message passing strategies in DGN across a variety of tasks. Different strategies may work well in different scenarios. We further compare how well these dynamic morphologies perform in comparison to a learned monolithic policy for both dynamic and fixed morphologies. In particular, we compare to a (a) Monolithic Policy, Dynamic Graph: in this baseline, our agents are still dynamic and self-assemble to perform the task, however, their controller is represented by a single monolithic policy that takes as input the combined state of all agents and outputs actions for each of them. (b) Monolithic Policy, Fixed Graph: For each task, a hand-designed morphology is constructed from the limbs and trained using a single monolithic policy that takes as input the combined state of all agents and outputs the actions for all agents. The agents are not able to combine or separate This can be compared to a standard robotics setup in which a morphology is predefined and then a policy is learned to control it. Note that one cannot generalize Monolithic Policy baselines to scenarios where the number of limbs vary as it would change the action and state space of the policy.
87
+
88
+ For the Fixed Graph baseline, we chose the fixed morphology to be a straight line chain of 6-limbs (i.e., a linear morphology) in all the experiments including the task of standing up and locomotion. This linear-chain may be optimal for standing as tall as possible, but it is not necessarily optimal for learning to stand; the same would hold for locomotion. Further, note that, the best performing DGN variants also converges to linear-chain morphology (shown in Figure 3b and video results on the project website) to achieve the best reward in case of standing up task. Moreover, one can confirm that the locomotion task is also solvable with linear-morphology because one of the DGN ablation methods converged to a linear-morphology while doing well at locomotion (see video).
89
+
90
+ # 5 EXPERIMENTS: EMERGENT MORPHOLOGIES AND GENERALIZATION
91
+
92
+ We test the co-evolution of morphology and control across four tasks where self-assembling agents learn to: (a) stand up, (b) perform locomotion, (c) perform manipulation, and (d) fight in a sumo wrestling environment. There are two primary objectives of our investigation. The first is to determine
93
+
94
+ ![](images/bfb386f1ec4e547d15833dea54e0d14ba3d0bfcf03b8740d85a6cdcd1f3669bc.jpg)
95
+ Figure 3: Training of self-assembling agents: (a) The training performance of different methods for joint training of control and morphology for the task of learning to stand up. The generalization performance of these policies across new scenarios is shown in Table 1. (b) The gradual co-evolution of controller as well as the morphology of self-assembling agents over the course of training.
96
+
97
+ <table><tr><td>Environment</td><td colspan="4">DGN</td><td colspan="2">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan="7">Training Environment</td></tr><tr><td>Standing Up</td><td>15253</td><td>13486</td><td>17518</td><td>12470</td><td>4104</td><td>5351</td></tr><tr><td colspan="7">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>15006 (98%)</td><td>14429 (107%)</td><td>19796 (113%)</td><td>14084 (113%)</td><td></td><td></td></tr><tr><td>Fewer(.5x) Limbs</td><td>11730 (77%)</td><td>9842 (73%)</td><td>10839 (62%)</td><td>9070 (73%)</td><td></td><td></td></tr><tr><td>Water +2x Limbs</td><td>16642 (109%)</td><td>14192 (105%)</td><td>16871 (96%)</td><td>13360 (107%)</td><td></td><td></td></tr><tr><td>Winds</td><td>14654 (96%)</td><td>12116 (90%)</td><td>16803 (96%)</td><td>12560 (101%)</td><td>3923 (96%)</td><td>4531 (85%)</td></tr><tr><td>Strong Winds</td><td>14727 (97%)</td><td>13416 (99%)</td><td>15853 (90%)</td><td>12257 (98%)</td><td>3937 (96%)</td><td>4961 (93%)</td></tr></table>
98
+
99
+ Table 1: Testing generalization for the standing up task. We show quantitative evaluation of the generalization ability of the learned policies. For each of the methods, we first pick the best performing model from the training run and then evaluate it on each of the novel scenarios without any further finetuning, i.e., in a zero-shot manner. We report first the score attained by the self-assembling agent and then report, in parenthesis, the percentage of training performance retained upon transfer. The higher the numbers, the better it is.
100
+
101
+ if such a modular co-evolution results in the emergence of complex self-assembling agents. The second is to evaluate if the emerged modular controller generalizes to novel scenarios.
102
+
103
+ # 5.1 TASK: STANDING UP
104
+
105
+ In this task, each agent’s reward is proportional to the highest vertical point in its combined morphology, i.e., the limb assemblies should try to maximize their $Y$ -axis height. Limbs have an incentive to self-assemble since the potential reward scales with the number of agents in the body, given that the agent can learn the controller for it. The learning process begins by six-limbs falling on the ground randomly, as shown in Figure 3b. In the beginning, each agent learns independently of others but these limbs learn to self-assemble to form a complex agent after training. Figure 3a compares different methods in terms of their performance on the task of standing as high as possible. We found that our DGN policy variants perform significantly better than the monolithic policies for the standing up task. In particular, the bottom-up and up-then-down message passing strategies attain the highest reward. To verify the implementation of our monolithic policy with fixed morphology, we show its ablation with varying number of limbs in Section A.1 in the supplementary.
106
+
107
+ However, the key question is whether the learned policy generalizes to novel scenarios. We investigate it by testing the learned policies without any further finetuning, i.e. zero-shot generalization, in novel scenarios: adding two times the number of limbs, reducing the number of limbs by half, increasing drag (i.e., ‘under water’) and number of limbs at the same time, and adding varying strength of random pushes-n-pulls (i.e., ‘wind’). As the results in Table 1 show, DGN achieves similar performance as it did on the training environment, despite never having seen these scenarios before. Interestingly, the DGN variants seem to generalize better than the fixed-graph policies (last column). Monolithic
108
+
109
+ ![](images/1fe61865162a0548a6d693284f20ac66f155fbbfaf92f3057aa955697cfdc8ee.jpg)
110
+ Figure 4: Training self-assembling agents: We show the performance of different methods for joint training of control and morphology for three tasks: standing up in the presence of wind and random push-n-pulls (left), locomotion in bumpy terrain (center) and manipulation (pushing) of two objects (right). These policies generalize to novel scenarios as shown in respective tables.
111
+
112
+ <table><tr><td rowspan="2">Environment</td><td colspan="4">DGN</td><td colspan="2">Monolithic Policy</td></tr><tr><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td>Training Environment</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Standing Up in Wind</td><td>16339</td><td>18423</td><td></td><td>17237</td><td>4176</td><td>4500</td></tr><tr><td>Zero-Shot Generalization</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(S)trong Winds</td><td>15649 (96%)</td><td>17384 (94%)</td><td></td><td></td><td>4010 (96%)</td><td>4507 (100%)</td></tr><tr><td>2x Limbs +(S)Winds</td><td>16250 (99%)</td><td>15351 (83%)</td><td></td><td>15728 (91%)</td><td></td><td></td></tr><tr><td>Water+2x(L)+(S)Winds</td><td>17254 (106%)</td><td>17068 (93%)</td><td></td><td>16592 (96%)</td><td>一</td><td></td></tr></table>
113
+
114
+ Table 2: Testing generalization for the standing up task in the presence of random push-n-pulls (i.e. ‘wind’). The best performing model from the training is evaluated on each of the novel scenarios without any further finetuning. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained upon transfer. The bottom-up DGN failed due to some experimental error and will be reported in the final version of paper.
115
+
116
+ policy baselines cannot be generalized to more or fewer limbs due to the fixed action and state space. A better understanding of these results may be obtained by looking at the dynamically combining morphologies in the project video.
117
+
118
+ # 5.2 TASK: STANDING UP IN THE PRESENCE OF RANDOM PUSH-N-PULLS (WIND)
119
+
120
+ The task in this case is same as the previous one of learning to stand up. However, unlike in the previous subsection, here we also trained in the presence of random push-n-pulls (i.e., ‘wind’) with hope of making the learned morphologies even more robust. The training performance in Figure 4a show the superior performance of DGN with respect to the baselines. The generalization results, in Table 2, show that the DGN both-ways messaging passing variant is the most robust. This may be because in the presence of distractors, communication both ways can be helpful since a random force on a single limb affects all other attached limbs.
121
+
122
+ # 5.3 LOCOMOTION TASK
123
+
124
+ The reward function in this environment is defined as the distance covered by the agent along an axis, in particular, the limbs are rewarded is proportional to their velocity along the $X$ -axis. The training environment is a bumpy terrain (shown in Figure 1(b)) and the training performance is shown in Figure 4b. Our DGN variants significantly outperform the monolithic baselines (see supplementary, Section A.1, for ablation). Interestingly, DGN variant with no message passing performs the best. Upon in-depth investigation, we found that it is possible to do well on this locomotion task with a large variety of morphologies, unlike the task of standing up where a tower is strongly preferrable. Here, any morphology with sufficient height and forward velocity is able to make competitive progress in locomotion (see videos), and thus reducing message-passing to an unnecessary overhead. As discussed in Section 3.3, no message passing merely implies the absence of context to the limbs, but the DGN aggregated policy is still modular and jointly learned with the morphology over the episode.
125
+
126
+ Table 3: Testing generalization for the locomotion task. The best performing model from the training is evaluated on each of the novel scenarios without any further finetuning. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained upon transfer.
127
+
128
+ <table><tr><td>Environment</td><td colspan="4">DGN</td><td colspan="2">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan="7">Training Environment 一</td></tr><tr><td>Locomotion</td><td>3.91</td><td>6.87</td><td>8.71</td><td>9.0</td><td>0.96</td><td>2.96</td></tr><tr><td colspan="7">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>4.01 (103%)</td><td>4.29 (63%)</td><td>5.47 (63%)</td><td>9.19 (102%)</td><td></td><td></td></tr><tr><td>Fewer (.5x)Limbs</td><td>3.52 (90%)</td><td>4.49 (65%)</td><td>6.64 (76%)</td><td>8.2 (91%)</td><td></td><td></td></tr><tr><td>Water+2xLimbs</td><td>2.64 (68%)</td><td>3.54 (52%)</td><td>6.57 (75%)</td><td>7.2 (80%)</td><td></td><td></td></tr><tr><td>Hurdles</td><td>1.84 (47%)</td><td>3.66 (53%)</td><td>6.39 (73%)</td><td>5.56 (62%)</td><td>-0.77 (-79%)</td><td>-3.12 (-104%)</td></tr><tr><td>Gaps in Terrain</td><td>1.84 (47%)</td><td>2.8 (41%)</td><td>3.25 (37%)</td><td>4.17 (46%)</td><td>-0.32 (-33%)</td><td>2.09 (71%)</td></tr><tr><td>Bi-modal Bumps</td><td>2.97 (76%)</td><td>4.55 (66%)</td><td>6.62 (76%)</td><td>6.15 (68%)</td><td>-0.56 (-57%)</td><td>-0.44 (-14%)</td></tr><tr><td>Stairs</td><td>1.0 (26%)</td><td>4.25 (62%)</td><td>6.6 (76%)</td><td>8.59 (95%)</td><td>-8.8 (-912%)</td><td>-3.65 (-122%)</td></tr><tr><td>Inside Valley</td><td>4.37 (112%)</td><td>6.55 (95%)</td><td>5.29 (61%)</td><td>6.21 (69%)</td><td>0.47 (48%)</td><td>-1.35 (-45%)</td></tr></table>
129
+
130
+ <table><tr><td>Environment</td><td colspan="4">DGN</td><td colspan="2">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan="7">Training Environment</td></tr><tr><td>Manipulation</td><td>-7985</td><td>-7861</td><td>-8482</td><td>-9603</td><td>-8773</td><td>-7725</td></tr><tr><td colspan="7">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>-14319 (-179%)</td><td>-14894 (-189%)</td><td>-9969 (-118%)</td><td>-10879 (-112%)</td><td></td><td></td></tr><tr><td>Water +2x Limbs</td><td>-10724 (-134%)</td><td>-13278 (-169%)</td><td>-12368 (-146%)</td><td>-10362 (-108%)</td><td></td><td></td></tr></table>
131
+
132
+ Table 4: Testing generalization for the manipulation task. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained.
133
+
134
+ We evaluate the learned policy without any further finetuning on several scenarios: more limbs, fewer limbs, more limbs under water, a terrain with hurdles of a certain height, a terrain with gaps between platforms, a bumpy terrain with a bi-modal distribution of bump heights, stairs, and an environment with a valley surrounded by walls on both sides. These environments are procedurally generated as discussed in Section 2. Across these novel environments, the modular policies learned by DGN tend to generalize better than the monolithic agent policies, as indicated in Table 3.
135
+
136
+ # 5.4 TASK: MANIPULATION OF TWO OBJECTS
137
+
138
+ The agents are dropped inside a room containing two objects and the goal is to decrease the distance between the objects, as shown in Figure 1(b). The reward for the agents is the negative distance between the objects, so as to encourage the behavior of pushing the blocks together. The training plots are shown in Figure 4c and the generalization results are shown in Table 4. This is a very hard task due to the sparse reward problem as agents only get reward if they move the block. Interestingly, the learned policies do not work well enough in this environment, and only learn to slightly move the blocks (see video). We believe this task requires more reward engineering than just the distance, and we will update the improved results in the final version.
139
+
140
+ # 5.5 TASK: SUMO WRESTLING BETWEEN TWO TEAMS
141
+
142
+ In this task, we divide the limbs into two teams of 6 limbs each and drop them into an arena to fight. Each team gets rewarded if any opponent limb falls out of the arena. The agents are trained via competitive self-play (Bansal et al., 2017; Tesauro, 1995). This is in contrast to the previous “single-team” tasks for self-assembling agents, i.e., standing, locomotion and manipulation. We present it as an additional result demonstrating the wider applicability of the method. However, it is non-trivial to measure the performance in self-play as the game is zero-sum, and rewards therefore do not increase over time. Instead, we refer the readers to the qualitative results in the video. The policies learned by the self-assembling agents demonstrate some interesting behaviors, but there is a lot of room for improvement in future research. We will release these environments upon acceptance.
143
+
144
+ # 6 RELATED WORK
145
+
146
+ Morphologenesis and self-reconfiguring modular robots The idea of modular and selfassembling agents goes back at least to Von Neumman’s Theory of Self-Reproducing Automata (Von Neumann et al., 1966). In robotics, such systems have been termed “self-reconfiguring modular robots” (Murata & Kurokawa, 2007; Stoy et al., 2010). There has been a lot of work in the modular robotics community in designing real hardware robotic modules that can be docked with each other to form complex robotic morphologies (Daudelin et al., 2018; Gilpin et al., 2008; Romanishin et al., 2013; Wright et al., 2007; Yim et al., 2000). Our main contribution is to approach this problem from a learning perspective, in particular deep RL, and study the resulting generalization properties.
147
+
148
+ A variety of alternative approaches have also been proposed to optimize agent morphologies, including genetic algorithms that search over a generative grammar (Sims, 1994), as well as directly optimizing over morphology parameters with RL (Schaff et al., 2018). One key difference between these approaches and our own is that we achieve morphogenesis via dynamic actions (linking), which agents take during their lifetimes, whereas the past approaches treat morphology as an optimization target to be updated between generations or episodes. Since the physical morphology also defines the connectivity of the policy net, our proposed algorithm can also be viewed as performing a kind of neural architecture search (Zoph & Le, 2016) in physical agents.
149
+
150
+ Graph neural networks Encoding graphical structures into neural networks has been used for a large number of applications, including quantum chemistry (Gilmer et al., 2017), semi-supervised classification (Kipf & Welling, 2016), and representation learning (Yang et al., 2018). The works most similar to ours involve learning control policies. For example, Nervenet (Wang et al., 2018) represents individual limbs and joints as nodes in a graph and demonstrates multi-limb generalization, just like our system does. However, the morphologies on which Nervenet operates are not learned jointly with the policy. hand-defined to be compositional in nature. Others (Battaglia et al., 2018; Huang et al., 2018) have shown that graph neural networks can also be applied to inference models as well as to planning. Many of these past works implement some variant of Graph Neural Networks (Scarselli et al., 2009) which operate on general graphs. Our method leverages the constraint that the morphologies can always be represented as a rooted tree in order to simplify the message passing.
151
+
152
+ # 7 DISCUSSION
153
+
154
+ Modeling intelligent agents as modular, self-assembling morphologies has long been a very appealing idea. The efforts to create practical systems to evolve artificial agents goes back at least two decades to the beautiful work of Karl Sims (Sims, 1994). In this paper, we are revisiting these ideas using the contemporary machinery of deep networks and reinforcement learning. Examining the problem in the context of machine learning, rather than optimization, we are particularly interested in modularity as a key to generalization, in terms of improving adaptability and robustness to novel environmental conditions. Poor generalization is the Achilles heel of modern robotics research, and the hope is that this could be a promising direction in addressing this key issue. We demonstrated a number of promising experimental results, suggesting that modularity does indeed improve generalization in simulated agents. While these are just the initial steps, we believe that the proposed research direction is promising and its exploration will be fruitful to the research community. To encourage follow-up work, we will release all code, models, and environments online once the paper is published.
155
+
156
+ # REFERENCES
157
+
158
+ Bruce Alberts, Dennis Bray, Julian Lewis, Martin Raff, Keith Roberts, and James D Watson. Molecular Biology of the Cell. Garland Publishing, New York, 1994. 1
159
+
160
+ Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. CoRR, 2017. 9
161
+
162
+ Yinon M Bar-On, Rob Phillips, and Ron Milo. The biomass distribution on earth. Proceedings of the National Academy of Sciences, 2018. 1
163
+
164
+ Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. 10
165
+
166
+ Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv:1606.01540, 2016. 4
167
+
168
+ Jonathan Daudelin, Gangyuan Jing, Tarik Tosun, Mark Yim, Hadas Kress-Gazit, and Mark Campbell. An integrated system for perception-driven autonomy with modular robots. Science Robotics, 2018. 10
169
+
170
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017. 10
171
+
172
+ Kyle Gilpin, Keith Kotay, Daniela Rus, and Iuliu Vasilescu. Miche: Modular shape formation by self-disassembly. IJRR, 2008. 10
173
+
174
+ De-An Huang, Suraj Nair, Danfei Xu, Yuke Zhu, Animesh Garg, Li Fei-Fei, Silvio Savarese, and Juan Carlos Niebles. Neural task graphs: Generalizing to unseen tasks from a single video demonstration. arXiv preprint arXiv:1807.03480, 2018. 10
175
+
176
+ Michael I Jordan. An introduction to probabilistic graphical models, 2003. 5
177
+
178
+ Arthur Juliani, Vincent-Pierre Berges, Esh Vckay, Yuan Gao, Hunter Henry, Marwan Mattar, and Danny Lange. Unity: A general platform for intelligent agents. arXiv preprint arXiv:1809.02627, 2018. 3
179
+
180
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. 10
181
+
182
+ Satoshi Murata and Haruhsa Kurokawa. Self-reconfigurable robots. IEEE Robotics & Automation Magazine, 2007. 1, 10
183
+
184
+ Kevin P Murphy, Yair Weiss, and Michael I Jordan. Loopy belief propagation for approximate inference: An empirical study. In Proceedings of the Fifteenth conference on Uncertainty in artificial intelligence, 1999. 5
185
+
186
+ John W Romanishin, Kyle Gilpin, and Daniela Rus. M-blocks: Momentum-driven, magnetic modular robots. In IROS, 2013. 10
187
+
188
+ Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Network, 2009. 2, 4, 10
189
+
190
+ Charles B. Schaff, David Yunis, Ayan Chakrabarti, and Matthew R. Walter. Jointly learning to construct and control agents using deep reinforcement learning. CoRR, abs/1801.01432, 2018. URL http://arxiv.org/abs/1801.01432. 10
191
+
192
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. abs/1707.06347, 2017. 5, 6
193
+
194
+ Karl Sims. Evolving virtual creatures. In Proceedings of the 21st annual conference on Computer graphics and interactive techniques, 1994. 1, 10
195
+
196
+ Kasper Stoy, David Brandt, David J Christensen, and David Brandt. Self-reconfigurable robots: an introduction. Mit Press Cambridge, 2010. 1, 10
197
+
198
+ Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press Cambridge, 1998. 4
199
+
200
+ Gerald Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 1995. 9
201
+
202
+ Xiaoyuan Tu and Demetri Terzopoulos. Artificial fishes: Physics, locomotion, perception, behavior. In Proceedings of the 21st annual conference on Computer graphics and interactive techniques, 1994. 1
203
+
204
+ John Von Neumann, Arthur W Burks, et al. Theory of self-reproducing automata. IEEE Transactions on Neural Networks, 1966. 10
205
+
206
+ Tingwu Wang, Renjie Liao, Jimmy Ba, and Sanja Fidler. Nervenet: Learning structured policy with graph neural networks. 2018. 10
207
+
208
+ Michael Wooldridge. An introduction to multiagent systems. John Wiley & Sons, 2009. 3, 6
209
+
210
+ Cornell Wright, Aaron Johnson, Aaron Peck, Zachary McCord, Allison Naaktgeboren, Philip Gianfortoni, Manuel Gonzalez-Rivero, Ross Hatton, and Howie Choset. Design of a modular snake robot. In IROS, 2007. 10
211
+
212
+ Zhilin Yang, Bhuwan Dhingra, Kaiming He, William W Cohen, Ruslan Salakhutdinov, Yann LeCun, et al. Glomo: Unsupervisedly learned relational graphs as transferable representations. arXiv preprint arXiv:1806.05662, 2018. 10
213
+
214
+ Mark Yim, David G Duff, and Kimon D Roufas. Polybot: a modular reconfigurable robot. In ICRA, 2000. 1, 10
215
+
216
+ Mark Yim, Wei-Min Shen, Behnam Salemi, Daniela Rus, Mark Moll, Hod Lipson, Eric Klavins, and Gregory S Chirikjian. Modular self-reconfigurable robot systems [grand challenges of robotics]. IEEE Robotics & Automation Magazine, 2007. 1
217
+
218
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. 10
219
+
220
+ # A SUPPLEMENTARY MATERIAL
221
+
222
+ # A.1 PERFORMANCE OF FIXED-GRAPH BASELINE VS. NUMBER OF LIMBS
223
+
224
+ To verify whether the training of Monolithic Policy w/ Fixed Graph is working, we ran it on standing up and locomotion tasks across varying number of limbs. We show in Figure 5 that the baseline performs well with less number of limbs which suggests that the reason for failure in 6-limbs case is indeed the morphology graph being fixed, and not the implementation of this baseline.
225
+
226
+ ![](images/557a4a6ce0d15f4b84d5a8b914890ee9239f60306ec2c59bdc87490c9cd4f9df.jpg)
227
+ Figure 5: The performance of Monolithic Policy w/ Fixed Graph baseline as the number of limbs varies in the two tasks: standing up (left) and locomotion (right). This shows that the monolithic baseline works well with less (1-3 limbs), but fails with 6 limbs during training.
228
+
229
+ # A.2 GENERALIZATION OF LEARNED POLICIES AT DIFFERENT TRAINING INTERVALS
230
+
231
+ In this section, we show the generalization plots corresponding to the Tables 1, 2, 3, 4. To plot generalization, we pick the trained model from different training intervals and plot them across new environments without finetuning at all, in a zero-shot manner.
232
+
233
+ ![](images/322766492b77d96530e5903ed73afb31edaa04cae3792ec8c6af045946583aba.jpg)
234
+ Figure 6: Generalization for the task of Standing Up: Performance of different methods across novel scenarios without any finetuning.
235
+
236
+ ![](images/eb7fee8482b89b8ee0b9039eb096786efc56ea0b0ec3381bac2344f7712f8612.jpg)
237
+ Figure 7: Generalization for the task of Standing Up w/ Wind: Performance of different methods across novel scenarios without any finetuning.
238
+
239
+ ![](images/a186ebeb262fe5356a9dd99cc84b81f64dfb84f9b3a6038762e6469904d93d95.jpg)
240
+ Figure 8: Generalization for the task of Locomotion: Performance of different methods across novel scenarios without any finetuning.
241
+
242
+ ![](images/49da75b9bfd538f716f7a485b431ad4be669f90d45e75a9aeb1957942217161f.jpg)
243
+ Figure 9: Generalization for the task of Manipulation: Performance of different methods across novel scenarios without any finetuning.
parse/train/B1lxH20qtX/B1lxH20qtX_content_list.json ADDED
@@ -0,0 +1,1362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING TO CONTROL SELF-ASSEMBLING MORPHOLOGIES: A STUDY OF GENERALIZATION VIA MODULARITY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 101,
9
+ 763,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 398,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 260,
32
+ 544,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Much of contemporary sensorimotor learning assumes that one is already given a complex agent (e.g., a robotic arm) and the goal is to learn to control it. In contrast, this paper investigates a modular co-evolution strategy: a collection of primitive agents learns to self-assemble into increasingly complex collectives in order to solve control tasks. Each primitive agent consists of a limb and a neural controller. Limbs may choose to link up to form collectives, with linking being treated as a dynamic action. When two limbs link, a joint is added between them, actuated by the ‘parent’ limb’s controller. This forms a new ‘single’ agent, which may further link with other agents. In this way, complex morphologies can emerge, controlled by a policy whose architecture is in explicit correspondence with the morphology. In experiments, we demonstrate that agents with these modular and dynamic topologies generalize better to test-time environments compared to static and monolithic baselines. Project videos are available at https:// doubleblindICLR19.github.io/self-assembly/. ",
40
+ "bbox": [
41
+ 233,
42
+ 292,
43
+ 766,
44
+ 486
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 516,
55
+ 336,
56
+ 531
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Only a tiny fraction of the Earth’s biomass is composed of higher-level organisms capable of complex sensorimotor actions of the kind popular in contemporary robotics research (navigation, pick and place, etc). A large portion is primitive single-celled organisms, such as bacteria (Bar-On et al., 2018). Possibly the single most pivotal event in the history of evolution was the point when single-celled organisms switched from always competing with each other for resources to sometimes cooperating, first by forming colonies, and later by merging into multicellular organisms (Alberts et al., 1994). These modular self-assemblies were successful because they combined the high adaptability of single-celled organisms while making it possible for vastly more complex behaviours to emerge. Like many researchers before us (Murata & Kurokawa, 2007; Sims, 1994; Tu & Terzopoulos, 1994; Yim et al., 2000; 2007), we are inspired by the biology of multicellular evolution as a model for emergent complexity in artificial agents. Unlike most previous work however, we are primarily focused on modularity as a way of improving generalization to novel environmental conditions. ",
63
+ "bbox": [
64
+ 174,
65
+ 547,
66
+ 825,
67
+ 714
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we present a study of modular self-assemblies of primitive agents — “limbs” which can link up to solve a shared task. The limbs have the option to bind together by adding a joint that connects their morphologies (Figure 1a), and when they do so, they pass messages and share rewards. Each limb comes with a simple neural net that controls the torque applied to its joints. Linking and unlinking is treated as a dynamic action, so that the limb assembly can change shape during a single episode of the simulation. This setup has previously been explored in robotics as “self-reconfiguring modular robots” (Stoy et al., 2010). However, unlike prior work on such robots, where the control policies are hand-defined, we show how to learn the policies and study the generalization properties that emerge. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 825,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "To make this problem computationally tractable, we do not allow the limb assemblies to form cycles in morphology. Limbs pass messages to their neighbors in this graph in order to coordinate behavior. All limbs share a common policy function, parametrized by a neural network, which takes the messages from adjacent limbs as input and outputs a torque to rotate the limb in addition to the linking/un-linking action. We call the aggregate neural network a Dynamic Graph Network (DGN) ",
85
+ "bbox": [
86
+ 174,
87
+ 854,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/7e38b385fb3bd76766da4a06a8e23300b7c416b8411920bae8c26e48e432e04c.jpg",
96
+ "image_caption": [
97
+ "Figure 1: We study the modular co-evolution of control and morphology where a collection of primitive agents self-assemble to form complex collectives to perform given tasks. (a) Each primitive agent is a limb containing a cylindrical body and a configurable motor. These limbs can connect with each other using the attached motor as a joint. (b) We illustrate our dynamic agents in four environments / tasks: standing up, locomotion, manipulation (pushing), and sumo wrestling. See project videos at https://doubleblindICLR19.github.io/self-assembly/. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 176,
102
+ 104,
103
+ 820,
104
+ 363
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "since it is a graph neural network (Scarselli et al., 2009) that can dynamically change topology as a function of its own outputs. ",
111
+ "bbox": [
112
+ 176,
113
+ 476,
114
+ 821,
115
+ 505
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "We test our limb assemblies on four tasks: standing, locomotion, pushing and wrestling, shown in Figure 1b. We find that DGNs enable a single modular policy to control multiple possible morphologies, even those unseen during training. For example, a 6-limb policy, trained to build a 6-limb tower, can be applied at test time on 12 limbs, and results in a 12-limb tower. Not only are the policies robust to changes in number of limbs, they also generalize well to novel test-time environmental conditions, such as added wind, or new landscapes. These results together demonstrate that our modular and dynamic self-assembling agents have advantages toward generalization to new environments and tasks. Our main contributions are: ",
122
+ "bbox": [
123
+ 173,
124
+ 511,
125
+ 825,
126
+ 622
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• Training primitive agents that self-assemble into complex morphologies to jointly solve control tasks. \nFormulating morphological search as a reinforcement learning problem, where linking and unlinking are treated as actions. \n• Representing policy via a graph whose topology matches the agent’s physical structure. \n• Demonstrating that these self-assembling agents both train and generalize better than fixedmorphology baselines. ",
133
+ "bbox": [
134
+ 215,
135
+ 635,
136
+ 825,
137
+ 751
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 ENVIRONMENT AND AGENTS ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 777,
148
+ 449,
149
+ 792
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Investigating the co-evolution of control (i.e., software) and morphology (i.e., hardware) is not supported within standard benchmark environments typically used for sensorimotor control, requiring us to create our own. We opted for a minimalist design for our agents, the environment, and the reward structure, which is crucial to ensuring that the emergence of limb assemblies with complex morphologies is not forced, but happens naturally. ",
156
+ "bbox": [
157
+ 174,
158
+ 809,
159
+ 825,
160
+ 880
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Environment Structure Our environment contains an arena where a collection of primitive agent limbs can self-assemble to perform control tasks. This arena is a ground surface equipped with gravity and friction. The arena can be procedurally changed to generate a variety of novel terrains by changing the height of each tile on the ground (see Figure 1b). To evaluate the generalization properties of our agents, we generate a series of novels terrains. This include generating bumpy terrain by randomizing the height of nearby tiles, stairs terrain by incrementally increasing height of each row of tiles, hurdles terrain by changing height of each row of tiles, gaps terrain by removing alternate row of tiles, etc. Some variations also include putting the arena ‘under water’ which basically amounts to increased drag (i.e. buoyancy). We start our environment with a set of six primitive limb agents on the ground which can assemble to form collectives to perform complex tasks. ",
167
+ "bbox": [
168
+ 174,
169
+ 895,
170
+ 821,
171
+ 924
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "",
178
+ "bbox": [
179
+ 174,
180
+ 103,
181
+ 825,
182
+ 214
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Agent Structure All our primitive limb agents share the same simple structure: a cylindrical body with a configurable motor on one end. One end of the cylinder is free and the other end contains a configurable motor. The free-end of the limb can link up with the motor-end of the other limb, and then the motor acts as a joint between two limbs with three degrees of rotation. Hence, one can refer to the motor-end of the cylindrical limb as a parent-end and the free end as a child-end. Multiple limbs can attach their child-end to the parent-end of another limb, as shown in Figure 1(a), to allow for complex graph morphologies to emerge. The limb of the parent-end controls the torques of joint. The un-linking action can be easily implemented by detaching two limbs, but the linking action has to deal with the ambiguity of which limb to connect to (if at all). To resolve these modeling issues, we implement the linking action by attaching the closest limb within a small radius around the parent-node. If no other limb is present within the threshold range, the linking action has no effect. ",
189
+ "bbox": [
190
+ 174,
191
+ 231,
192
+ 825,
193
+ 383
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "The primitive limb agents are dropped in an environment to jointly solve a given control task. One key component of the self-assembling agent setup that makes it different from typical multi-agent scenarios (Wooldridge, 2009) is that if some agents assemble to form a collective, the resulting morphology becomes a new single agent and all limbs within the morphology maximize a joint reward function. The output action space of each primitive agent contains the continuous torque values that are to be applied to the motor connected to the agent, and are denoted by $\\{ \\tau _ { \\alpha } , \\tau _ { \\beta } , \\tau _ { \\gamma } \\}$ for three degrees of rotation. In addition to the torque controls, each limb can decide to attach another link at its parent-end, or decide to unlink its child-end if already connected to other limb. The linking and unlinking decisions are binary. This complementary role assignment of child and parent ends, i.e., parent can only link and child can only unlink, makes it possible to decentralize the control across limbs in a self-assembly. ",
200
+ "bbox": [
201
+ 174,
202
+ 391,
203
+ 825,
204
+ 544
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "In our self-assembling setup, each agent limb only has access to its local sensory information and does not know about other limbs. The sensory input of each agent includes its own dynamics, i.e., the location of the limb in 3-D euclidean coordinates, its velocity, angular rotation and angular velocity. Each end of the limb also has a trinary touch sensor to detect whether the end of the cylinder is touching 1) the floor, 2) another limb, or 3) nothing. Additionally, we also provide our limbs with a very simple point depth sensor that captures the surface height on a $9 \\times 9$ grid around the projection of center of limb on the surface. One essential requirement to operationalize this setup is an efficient simulator to allow simultaneous simulation of several of these primitive limb agents. We implement our environments in the Unity ML (Juliani et al., 2018) framework, which is one of the dominant platforms for designing realistic games. For computational reasons, we do not allow the emergence of cycles in the self-assembling agents by not allowing the limbs to link up with already attached limbs within the same morphology. However, our setup is trivially extensible to general graphs. ",
211
+ "bbox": [
212
+ 174,
213
+ 551,
214
+ 825,
215
+ 717
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "3 LEARNING TO CONTROL SELF-ASSEMBLING MORPHOLOGIES",
222
+ "text_level": 1,
223
+ "bbox": [
224
+ 176,
225
+ 738,
226
+ 718,
227
+ 755
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Consider a set of primitive limbs indexed by $i$ in $\\{ 1 , 2 , \\ldots , n \\}$ , which are dropped in the environment arena $\\mathcal { E }$ to perform a given continuous control task. If needed, these limbs can assemble to form complex collectives in order to improve their performance on the task. The task is represented by a reward function $r _ { t }$ and the goal of the limbs is to maximize the discounted sum of rewards over time $t$ . If some limbs assemble to form a collective, the resulting morphology effectively becomes a single agent with a joint network to maximize the joint reward of the connected limbs. Further, the reward of an assembled morphology is a function of the whole morphology and not the individual agent limbs. For instance, in the task of learning to stand up, the reward is the height of the individual limbs if they are separate, but is the height of the whole morphology if those limbs have assembled into a collective. We now discuss our proposed formulation for learning to control these self-assembling agents. ",
234
+ "bbox": [
235
+ 173,
236
+ 770,
237
+ 825,
238
+ 924
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "image",
244
+ "img_path": "images/d4957739eb7c79e6a980308079d88025f7454b0ce228924b33db7531a74c9a58.jpg",
245
+ "image_caption": [
246
+ "Figure 2: High-level visualization of our method. A set of primitive ’limbs’ learn to self-assemble into morphologies where each limb is represented by a neural network linked via graph of physical edges. The inset on right shows the message-passing diagram for each node. Project videos at https://doubleblindICLR19.github.io/self-assembly/. "
247
+ ],
248
+ "image_footnote": [],
249
+ "bbox": [
250
+ 269,
251
+ 102,
252
+ 727,
253
+ 339
254
+ ],
255
+ "page_idx": 3
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "3.1 CO-EVOLUTION: LINKING/UNLINKING AS AN ACTION ",
260
+ "text_level": 1,
261
+ "bbox": [
262
+ 174,
263
+ 428,
264
+ 593,
265
+ 443
266
+ ],
267
+ "page_idx": 3
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "To learn a modular controller policy that could generalize to novel setups, our agents must learn the controller jointly as the morphology evolves over time. The limbs should simultaneously decide which torques to apply to their respective motors, while taking into account the connected morphology. Our hypothesis is that if a controller policy could learn in a modular fashion over iterations of increasingly sophisticated morphologies (see Figure 3b), it could learn to be robust and generalizable to diverse situations. So, how can we optimize control and morphology under a common end-to-end framework? ",
272
+ "bbox": [
273
+ 174,
274
+ 455,
275
+ 825,
276
+ 540
277
+ ],
278
+ "page_idx": 3
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "We propose to treat the decision of linking and unlinking as additional actions of our primitive limb agents. The total action space $a _ { t }$ at each iteration $t$ can be denoted as $\\left\\{ \\tau _ { \\alpha } , \\tau _ { \\beta } , \\tau _ { \\gamma } , \\sigma _ { l i n k } , \\sigma _ { u n l i n k } \\right\\}$ where $\\tau _ { * }$ denote the raw continuous torque values to be applied at the motor and $\\sigma _ { * }$ denote the binary actions whether to connect another limb at the parent-end or disconnect the child-end from the other already attached limb. This simple view of morphological evolution allows us to use ideas from learning-driven control, in particular, reinforcement learning (Sutton & Barto, 1998). ",
283
+ "bbox": [
284
+ 174,
285
+ 546,
286
+ 825,
287
+ 631
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "3.2 MODULARITY: SELF-ASSEMBLING AGENT AS A GRAPH OF LIMBS ",
294
+ "text_level": 1,
295
+ "bbox": [
296
+ 174,
297
+ 652,
298
+ 674,
299
+ 666
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Integration of control and morphology in a common framework is only the first step. The key question is how to model this controller policy such that it is modular and reuses information across generations of morphologies. Let $a _ { t } ^ { i }$ be the action space and $s _ { t } ^ { i }$ be the local sensory input-space of the agent $i$ . One naive approach to maximizing the reward is to simply combine the states of the limbs into the input-space output all the actions jointly using a single network. Formally, the policy is simply $\\vec { a } _ { t } = \\bar { [ } a _ { t } ^ { 0 } , \\bar { a _ { t } ^ { 1 } } \\cdot \\cdot \\cdot a _ { t } ^ { n } \\bar { ] } = \\Pi ( s _ { t } ^ { 0 } , s _ { t } ^ { 0 } \\ldots , s _ { t } ^ { \\bar { n } } )$ . This interprets the self-assemblies as a single monolithic agent, ignoring the graphical structure. This is the current approach to solve many control problems, e.g., Mujoco environments like humanoid (Brockman et al., 2016) where the policy $\\Pi$ is trained to maximize the sum of discounted rewards using reinforcement learning. ",
306
+ "bbox": [
307
+ 173,
308
+ 680,
309
+ 825,
310
+ 806
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "In this work, we represent the policy of the agent via a graph neural network (Scarselli et al., 2009) in such a way that it explicitly corresponds to the morphology of the agent. Let’s consider the collection of primitive agent limbs as graph $G$ where each node is denoted by to the primitive limb agent $i$ . Two limbs being physically connected by a joint is analogous to having an edge in the graph. At a joint, the limb which connects itself via its parent-end acts as a parent-node in the corresponding edge, and the other limbs which connect to that joint via child-ends are child-nodes. The parent-node (i.e., the agent with the parent-end) controls the torque of the edge (i.e., the joint motor), as described in Section-2. ",
317
+ "bbox": [
318
+ 174,
319
+ 811,
320
+ 825,
321
+ 922
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "3.3 DYNAMIC GRAPH NETWORKS (DGN) ",
328
+ "text_level": 1,
329
+ "bbox": [
330
+ 176,
331
+ 103,
332
+ 477,
333
+ 118
334
+ ],
335
+ "page_idx": 4
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Each primitive limb node $i$ has a policy controller of its own, which is represented by a neural network $\\pi _ { \\theta } ^ { i }$ and receives a corresponding reward $r _ { t } ^ { i }$ for each time step $t$ . We represent the policy of the self-assembled agent by the aggregated neural network that is connected in the same graphical manner as the physical morphology. The edge connectivity of the graph is represented in the overall graph policy by passing messages that flow from each limb network to the other limbs physically connected to it via a joint. The parameters $\\theta$ are shared across each primitive limb agent allowing the overall policy of the graph to be modular with respect to each node. However, recall that the agent morphologies are dynamic, i.e., the connectivity of the limbs changes based on policy outputs. This changes the edge connectivity of the corresponding graph network at every timestep, depending on the actions predicted by each limb controller network in the previous timestep. Hence, we call this aggregate neural net a Dynamic Graph Network (DGN) since it is a graph neural network that can dynamically change topology as a function of its own outputs in the previous iteration. ",
340
+ "bbox": [
341
+ 174,
342
+ 128,
343
+ 825,
344
+ 296
345
+ ],
346
+ "page_idx": 4
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "DGN Optimization A typical rollout of our self-assembling agents during an episode of training contains a sequence of torques $\\tau _ { t } ^ { i }$ and the linking actions $\\boldsymbol { \\sigma } _ { t } ^ { i }$ for each limb at each timestep $t$ . The policy parameter $\\theta$ is optimized to jointly maximize the reward for each network limb: ",
351
+ "bbox": [
352
+ 174,
353
+ 311,
354
+ 825,
355
+ 354
356
+ ],
357
+ "page_idx": 4
358
+ },
359
+ {
360
+ "type": "equation",
361
+ "img_path": "images/7dcb3506c58ba54b97c3a3edc27d5a6570afa8fc3a81f2f6db870db8c85d8444.jpg",
362
+ "text": "$$\n\\operatorname* { m a x } _ { \\theta } \\sum _ { i = \\{ 1 , 2 . . . , n \\} } \\mathbb { E } _ { \\vec { a } ^ { i } \\sim \\pi _ { \\theta } ^ { i } } [ \\Sigma _ { t } r _ { t } ^ { i } ]\n$$",
363
+ "text_format": "latex",
364
+ "bbox": [
365
+ 400,
366
+ 361,
367
+ 599,
368
+ 396
369
+ ],
370
+ "page_idx": 4
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "We optimize this objective via reinforcement learning, in particular the policy gradient method PPO (Schulman et al., 2017). ",
375
+ "bbox": [
376
+ 173,
377
+ 404,
378
+ 823,
379
+ 431
380
+ ],
381
+ "page_idx": 4
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "DGN Connectivity The topology is captured in the DGN by passing messages through the edges between individual network nodes. These messages allow each node to take into account its context relative to other nodes, and are supposed to convey information about the neighbouring policy network nodes in the graph. Since the parameters of these limb networks are shared across each node, these messages can be seen as context information that may inform the policy of its role in the corresponding connected component of graph. The aggregated flow through the whole graph can be encapsulated by passing these contextual messages in topological order (no cycles). One can either do a top-down pass, beginning from the root node (i.e., the node with no parents) to the leaf nodes, or do bottom-up pass, from leaves to root node. This idea is inspired from classical work on Bayesian graph networks where message passing is used for belief-propagation (Jordan, 2003). However, when the graph contains cycles, this idea can be easily extended by performing message-passing iteratively through the cycle until convergence, similar to loopy-belief-propagation in Bayesian graphs (Murphy et al., 1999). We now discuss these message-passing strategies: ",
386
+ "bbox": [
387
+ 173,
388
+ 446,
389
+ 825,
390
+ 627
391
+ ],
392
+ "page_idx": 4
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "(a) Top-down message passing: Instead of defining $\\pi _ { \\theta } ^ { i }$ to be just as a function of state, $\\pi _ { \\theta } ^ { i } : s _ { t } ^ { i } \\to a _ { t } ^ { i }$ we pass each limb’s policy network the information about its parent node as well. Formally, one can redefine $\\pi _ { \\theta } ^ { i }$ as $\\pi _ { \\theta } ^ { i } : [ \\bar { s } _ { t } ^ { i } , m _ { t } ^ { \\bar { p } _ { i } } ] a _ { t } ^ { i }$ where $p _ { i }$ is the parent of node $i$ . However, this also implies that each network node should pass context information as messages to its children networks for them to take it as input. So, we need to define $m _ { t } ^ { i }$ which is the output of each node $i$ , and which is passed as the input context message to all its children. We simply append this to the output of $\\pi _ { \\theta } ^ { i }$ . Thus, we finally define $\\pi _ { \\theta } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { p _ { i } } ] [ a _ { t } ^ { i } , m _ { t } ^ { i } ]$ . If $i$ has no parents (i.e, root), a vector of zeros is passed in $m _ { t } ^ { p _ { i } }$ . This is computed recursively until the messages reach the leaf nodes. ",
397
+ "bbox": [
398
+ 173,
399
+ 633,
400
+ 825,
401
+ 747
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "$( b )$ Bottom-up message passing: In this strategy, messages are passed from leaf nodes to root, i.e., each agent gets information from its children, but not from its parent. Similar to top-down, we redefine $\\pi _ { \\theta } ^ { i }$ as $\\pi _ { \\theta } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { C _ { i } } ] [ a _ { t } ^ { i } , m _ { t } ^ { i } ]$ where $m _ { t } ^ { i }$ is the output message of policy that goes into the parent limb and $m _ { t } ^ { C _ { i } }$ t t t t tis the aggregated input messages from all the children nodes, i.e, $\\begin{array} { r } { m _ { t } ^ { C _ { i } } = \\sum _ { c \\in C _ { i } } m _ { t } ^ { c } } \\end{array}$ . If $i$ has no children (i.e, root), a vector of zeros is passed in $m _ { t } ^ { C _ { i } }$ . Messages are passed recursively until the root node. ",
408
+ "bbox": [
409
+ 173,
410
+ 753,
411
+ 825,
412
+ 848
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "(c) Bottom-up then top-down message passing: In this strategy, we pass messages both ways: bottomup, then top-down. In the absence of cycles in graph, a one-way pass (either top-down or bottom-up) is sufficient to capture the aggregated information, similar to Bayesian trees (Jordan, 2003). Even though both-way message-passing is redundant, we still explore it as an alternative since it might help in learning when the agent grows too complex. This is implemented by dividing the policy into two parts, each responsible for one direction of message passing, i.e., the parameters $\\theta = [ \\theta _ { 1 } , \\theta _ { 2 } ]$ . First the bottom-up message passing is formulated as $\\pi _ { \\theta _ { 1 } } ^ { i } : [ s _ { t } ^ { i } , m _ { t } ^ { C _ { i } } ] m _ { t } ^ { i }$ where the sensory input $s _ { t } ^ { i }$ and input messages $m _ { t } ^ { C _ { i } }$ 1 are used to generate outgoing messages to the parent node. In the top-down pass, messages from the parent are used, in addition with the agent’s own message, to output its action: $\\pi _ { \\theta _ { 2 } } ^ { i } : [ m _ { t } ^ { i } , m _ { t } ^ { p _ { i } } ] \\bar { [ a _ { t } ^ { i } , \\hat { m } _ { t } ^ { i } ] }$ where $\\hat { m } _ { t } ^ { i }$ are the messages passed to the children nodes. ",
419
+ "bbox": [
420
+ 173,
421
+ 854,
422
+ 825,
423
+ 924
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "",
430
+ "bbox": [
431
+ 174,
432
+ 103,
433
+ 825,
434
+ 180
435
+ ],
436
+ "page_idx": 5
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "(d) No message passing: Note that for some environments or tasks, the context from the other nodes might not be a necessary requirement for effective control.In such scenarios, passing messages might creates an extra-overhead for training a DGN. Importantly, even with no messages being passed, the DGN framework still allows for coordination between limbs. This is because the control and morphology are still learned jointly in a modular mannner through the course of an episode i.e. the morphology and control in each timestep t depends explicitly on the physical morphology and the torques at previous timestep t 1. To implement the no message passing variant of DGN, we simply zero-out the messages $\\bar { m } _ { t } ^ { p _ { i } } , m _ { t } ^ { i }$ at each timestep $t$ . This is similar to a typical cooperative multi-agent setup (Wooldridge, 2009) where each limb makes its own decisions in response to the previous actions of the other agents. However, our setup differs in that our agents may physically join up, rather than just coordinate behavior. ",
441
+ "bbox": [
442
+ 174,
443
+ 186,
444
+ 825,
445
+ 339
446
+ ],
447
+ "page_idx": 5
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "4 IMPLEMENTATION DETAILS AND BASELINES ",
452
+ "text_level": 1,
453
+ "bbox": [
454
+ 174,
455
+ 359,
456
+ 576,
457
+ 376
458
+ ],
459
+ "page_idx": 5
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "Implementation Details: We use PPO (Schulman et al., 2017) as the underlying reinforcement learning method to optimize Equation 1. Limb policies are represented by fully-connected neural network and trained with a learning rate of $3 e - 4$ , discount factor of 0.995 and entropy coefficient of 0.01. Each episode is 5000 steps long at training and 1200 steps long at testing. Across all the tasks, the number of limbs at training is kept fixed to 6. Limbs start each episode disconnected and located just above the ground plane at random locations, as shown in Figure 3b. During generalization to novel scenarios, we experiment with changing the number of limbs to 12 or 3 to test the same policy without any further finetuning. All of our tasks require the agent to output continuous raw torque control values. ",
464
+ "bbox": [
465
+ 173,
466
+ 390,
467
+ 825,
468
+ 515
469
+ ],
470
+ "page_idx": 5
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Baselines We compare the role of the above four message passing strategies in DGN across a variety of tasks. Different strategies may work well in different scenarios. We further compare how well these dynamic morphologies perform in comparison to a learned monolithic policy for both dynamic and fixed morphologies. In particular, we compare to a (a) Monolithic Policy, Dynamic Graph: in this baseline, our agents are still dynamic and self-assemble to perform the task, however, their controller is represented by a single monolithic policy that takes as input the combined state of all agents and outputs actions for each of them. (b) Monolithic Policy, Fixed Graph: For each task, a hand-designed morphology is constructed from the limbs and trained using a single monolithic policy that takes as input the combined state of all agents and outputs the actions for all agents. The agents are not able to combine or separate This can be compared to a standard robotics setup in which a morphology is predefined and then a policy is learned to control it. Note that one cannot generalize Monolithic Policy baselines to scenarios where the number of limbs vary as it would change the action and state space of the policy. ",
475
+ "bbox": [
476
+ 173,
477
+ 531,
478
+ 825,
479
+ 712
480
+ ],
481
+ "page_idx": 5
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "For the Fixed Graph baseline, we chose the fixed morphology to be a straight line chain of 6-limbs (i.e., a linear morphology) in all the experiments including the task of standing up and locomotion. This linear-chain may be optimal for standing as tall as possible, but it is not necessarily optimal for learning to stand; the same would hold for locomotion. Further, note that, the best performing DGN variants also converges to linear-chain morphology (shown in Figure 3b and video results on the project website) to achieve the best reward in case of standing up task. Moreover, one can confirm that the locomotion task is also solvable with linear-morphology because one of the DGN ablation methods converged to a linear-morphology while doing well at locomotion (see video). ",
486
+ "bbox": [
487
+ 174,
488
+ 718,
489
+ 825,
490
+ 830
491
+ ],
492
+ "page_idx": 5
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "5 EXPERIMENTS: EMERGENT MORPHOLOGIES AND GENERALIZATION",
497
+ "text_level": 1,
498
+ "bbox": [
499
+ 173,
500
+ 849,
501
+ 774,
502
+ 866
503
+ ],
504
+ "page_idx": 5
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "We test the co-evolution of morphology and control across four tasks where self-assembling agents learn to: (a) stand up, (b) perform locomotion, (c) perform manipulation, and (d) fight in a sumo wrestling environment. There are two primary objectives of our investigation. The first is to determine ",
509
+ "bbox": [
510
+ 176,
511
+ 882,
512
+ 823,
513
+ 924
514
+ ],
515
+ "page_idx": 5
516
+ },
517
+ {
518
+ "type": "image",
519
+ "img_path": "images/bfb386f1ec4e547d15833dea54e0d14ba3d0bfcf03b8740d85a6cdcd1f3669bc.jpg",
520
+ "image_caption": [
521
+ "Figure 3: Training of self-assembling agents: (a) The training performance of different methods for joint training of control and morphology for the task of learning to stand up. The generalization performance of these policies across new scenarios is shown in Table 1. (b) The gradual co-evolution of controller as well as the morphology of self-assembling agents over the course of training. "
522
+ ],
523
+ "image_footnote": [],
524
+ "bbox": [
525
+ 199,
526
+ 122,
527
+ 799,
528
+ 242
529
+ ],
530
+ "page_idx": 6
531
+ },
532
+ {
533
+ "type": "table",
534
+ "img_path": "images/83cc63dff1bc6fe5a349ad5627c82ad1764ea90487c1bcbeb3438d93e9648fb7.jpg",
535
+ "table_caption": [],
536
+ "table_footnote": [],
537
+ "table_body": "<table><tr><td>Environment</td><td colspan=\"4\">DGN</td><td colspan=\"2\">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan=\"7\">Training Environment</td></tr><tr><td>Standing Up</td><td>15253</td><td>13486</td><td>17518</td><td>12470</td><td>4104</td><td>5351</td></tr><tr><td colspan=\"7\">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>15006 (98%)</td><td>14429 (107%)</td><td>19796 (113%)</td><td>14084 (113%)</td><td></td><td></td></tr><tr><td>Fewer(.5x) Limbs</td><td>11730 (77%)</td><td>9842 (73%)</td><td>10839 (62%)</td><td>9070 (73%)</td><td></td><td></td></tr><tr><td>Water +2x Limbs</td><td>16642 (109%)</td><td>14192 (105%)</td><td>16871 (96%)</td><td>13360 (107%)</td><td></td><td></td></tr><tr><td>Winds</td><td>14654 (96%)</td><td>12116 (90%)</td><td>16803 (96%)</td><td>12560 (101%)</td><td>3923 (96%)</td><td>4531 (85%)</td></tr><tr><td>Strong Winds</td><td>14727 (97%)</td><td>13416 (99%)</td><td>15853 (90%)</td><td>12257 (98%)</td><td>3937 (96%)</td><td>4961 (93%)</td></tr></table>",
538
+ "bbox": [
539
+ 173,
540
+ 327,
541
+ 825,
542
+ 467
543
+ ],
544
+ "page_idx": 6
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "Table 1: Testing generalization for the standing up task. We show quantitative evaluation of the generalization ability of the learned policies. For each of the methods, we first pick the best performing model from the training run and then evaluate it on each of the novel scenarios without any further finetuning, i.e., in a zero-shot manner. We report first the score attained by the self-assembling agent and then report, in parenthesis, the percentage of training performance retained upon transfer. The higher the numbers, the better it is. ",
549
+ "bbox": [
550
+ 173,
551
+ 477,
552
+ 825,
553
+ 560
554
+ ],
555
+ "page_idx": 6
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "if such a modular co-evolution results in the emergence of complex self-assembling agents. The second is to evaluate if the emerged modular controller generalizes to novel scenarios. ",
560
+ "bbox": [
561
+ 173,
562
+ 590,
563
+ 823,
564
+ 619
565
+ ],
566
+ "page_idx": 6
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "5.1 TASK: STANDING UP ",
571
+ "text_level": 1,
572
+ "bbox": [
573
+ 176,
574
+ 638,
575
+ 361,
576
+ 654
577
+ ],
578
+ "page_idx": 6
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "In this task, each agent’s reward is proportional to the highest vertical point in its combined morphology, i.e., the limb assemblies should try to maximize their $Y$ -axis height. Limbs have an incentive to self-assemble since the potential reward scales with the number of agents in the body, given that the agent can learn the controller for it. The learning process begins by six-limbs falling on the ground randomly, as shown in Figure 3b. In the beginning, each agent learns independently of others but these limbs learn to self-assemble to form a complex agent after training. Figure 3a compares different methods in terms of their performance on the task of standing as high as possible. We found that our DGN policy variants perform significantly better than the monolithic policies for the standing up task. In particular, the bottom-up and up-then-down message passing strategies attain the highest reward. To verify the implementation of our monolithic policy with fixed morphology, we show its ablation with varying number of limbs in Section A.1 in the supplementary. ",
583
+ "bbox": [
584
+ 174,
585
+ 666,
586
+ 825,
587
+ 819
588
+ ],
589
+ "page_idx": 6
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "However, the key question is whether the learned policy generalizes to novel scenarios. We investigate it by testing the learned policies without any further finetuning, i.e. zero-shot generalization, in novel scenarios: adding two times the number of limbs, reducing the number of limbs by half, increasing drag (i.e., ‘under water’) and number of limbs at the same time, and adding varying strength of random pushes-n-pulls (i.e., ‘wind’). As the results in Table 1 show, DGN achieves similar performance as it did on the training environment, despite never having seen these scenarios before. Interestingly, the DGN variants seem to generalize better than the fixed-graph policies (last column). Monolithic ",
594
+ "bbox": [
595
+ 174,
596
+ 827,
597
+ 825,
598
+ 924
599
+ ],
600
+ "page_idx": 6
601
+ },
602
+ {
603
+ "type": "image",
604
+ "img_path": "images/1fe61865162a0548a6d693284f20ac66f155fbbfaf92f3057aa955697cfdc8ee.jpg",
605
+ "image_caption": [
606
+ "Figure 4: Training self-assembling agents: We show the performance of different methods for joint training of control and morphology for three tasks: standing up in the presence of wind and random push-n-pulls (left), locomotion in bumpy terrain (center) and manipulation (pushing) of two objects (right). These policies generalize to novel scenarios as shown in respective tables. "
607
+ ],
608
+ "image_footnote": [],
609
+ "bbox": [
610
+ 184,
611
+ 121,
612
+ 812,
613
+ 242
614
+ ],
615
+ "page_idx": 7
616
+ },
617
+ {
618
+ "type": "table",
619
+ "img_path": "images/879d2537f6461c6ecafd3e83ee1772ff8c8d51e17abbb703008e2d8d0fd89c16.jpg",
620
+ "table_caption": [],
621
+ "table_footnote": [],
622
+ "table_body": "<table><tr><td rowspan=\"2\">Environment</td><td colspan=\"4\">DGN</td><td colspan=\"2\">Monolithic Policy</td></tr><tr><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td>Training Environment</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Standing Up in Wind</td><td>16339</td><td>18423</td><td></td><td>17237</td><td>4176</td><td>4500</td></tr><tr><td>Zero-Shot Generalization</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(S)trong Winds</td><td>15649 (96%)</td><td>17384 (94%)</td><td></td><td></td><td>4010 (96%)</td><td>4507 (100%)</td></tr><tr><td>2x Limbs +(S)Winds</td><td>16250 (99%)</td><td>15351 (83%)</td><td></td><td>15728 (91%)</td><td></td><td></td></tr><tr><td>Water+2x(L)+(S)Winds</td><td>17254 (106%)</td><td>17068 (93%)</td><td></td><td>16592 (96%)</td><td>一</td><td></td></tr></table>",
623
+ "bbox": [
624
+ 173,
625
+ 323,
626
+ 825,
627
+ 439
628
+ ],
629
+ "page_idx": 7
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Table 2: Testing generalization for the standing up task in the presence of random push-n-pulls (i.e. ‘wind’). The best performing model from the training is evaluated on each of the novel scenarios without any further finetuning. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained upon transfer. The bottom-up DGN failed due to some experimental error and will be reported in the final version of paper. ",
634
+ "bbox": [
635
+ 173,
636
+ 449,
637
+ 825,
638
+ 518
639
+ ],
640
+ "page_idx": 7
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "policy baselines cannot be generalized to more or fewer limbs due to the fixed action and state space. A better understanding of these results may be obtained by looking at the dynamically combining morphologies in the project video. ",
645
+ "bbox": [
646
+ 174,
647
+ 545,
648
+ 825,
649
+ 588
650
+ ],
651
+ "page_idx": 7
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "5.2 TASK: STANDING UP IN THE PRESENCE OF RANDOM PUSH-N-PULLS (WIND) ",
656
+ "text_level": 1,
657
+ "bbox": [
658
+ 173,
659
+ 604,
660
+ 751,
661
+ 619
662
+ ],
663
+ "page_idx": 7
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "The task in this case is same as the previous one of learning to stand up. However, unlike in the previous subsection, here we also trained in the presence of random push-n-pulls (i.e., ‘wind’) with hope of making the learned morphologies even more robust. The training performance in Figure 4a show the superior performance of DGN with respect to the baselines. The generalization results, in Table 2, show that the DGN both-ways messaging passing variant is the most robust. This may be because in the presence of distractors, communication both ways can be helpful since a random force on a single limb affects all other attached limbs. ",
668
+ "bbox": [
669
+ 174,
670
+ 630,
671
+ 825,
672
+ 728
673
+ ],
674
+ "page_idx": 7
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "5.3 LOCOMOTION TASK ",
679
+ "text_level": 1,
680
+ "bbox": [
681
+ 176,
682
+ 746,
683
+ 351,
684
+ 758
685
+ ],
686
+ "page_idx": 7
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "The reward function in this environment is defined as the distance covered by the agent along an axis, in particular, the limbs are rewarded is proportional to their velocity along the $X$ -axis. The training environment is a bumpy terrain (shown in Figure 1(b)) and the training performance is shown in Figure 4b. Our DGN variants significantly outperform the monolithic baselines (see supplementary, Section A.1, for ablation). Interestingly, DGN variant with no message passing performs the best. Upon in-depth investigation, we found that it is possible to do well on this locomotion task with a large variety of morphologies, unlike the task of standing up where a tower is strongly preferrable. Here, any morphology with sufficient height and forward velocity is able to make competitive progress in locomotion (see videos), and thus reducing message-passing to an unnecessary overhead. As discussed in Section 3.3, no message passing merely implies the absence of context to the limbs, but the DGN aggregated policy is still modular and jointly learned with the morphology over the episode. ",
691
+ "bbox": [
692
+ 174,
693
+ 770,
694
+ 826,
695
+ 924
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "table",
701
+ "img_path": "images/189ed2862e80ef626157217157e79f90cc84c705e9526454f557bf8afae4adad.jpg",
702
+ "table_caption": [
703
+ "Table 3: Testing generalization for the locomotion task. The best performing model from the training is evaluated on each of the novel scenarios without any further finetuning. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained upon transfer. "
704
+ ],
705
+ "table_footnote": [],
706
+ "table_body": "<table><tr><td>Environment</td><td colspan=\"4\">DGN</td><td colspan=\"2\">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan=\"7\">Training Environment 一</td></tr><tr><td>Locomotion</td><td>3.91</td><td>6.87</td><td>8.71</td><td>9.0</td><td>0.96</td><td>2.96</td></tr><tr><td colspan=\"7\">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>4.01 (103%)</td><td>4.29 (63%)</td><td>5.47 (63%)</td><td>9.19 (102%)</td><td></td><td></td></tr><tr><td>Fewer (.5x)Limbs</td><td>3.52 (90%)</td><td>4.49 (65%)</td><td>6.64 (76%)</td><td>8.2 (91%)</td><td></td><td></td></tr><tr><td>Water+2xLimbs</td><td>2.64 (68%)</td><td>3.54 (52%)</td><td>6.57 (75%)</td><td>7.2 (80%)</td><td></td><td></td></tr><tr><td>Hurdles</td><td>1.84 (47%)</td><td>3.66 (53%)</td><td>6.39 (73%)</td><td>5.56 (62%)</td><td>-0.77 (-79%)</td><td>-3.12 (-104%)</td></tr><tr><td>Gaps in Terrain</td><td>1.84 (47%)</td><td>2.8 (41%)</td><td>3.25 (37%)</td><td>4.17 (46%)</td><td>-0.32 (-33%)</td><td>2.09 (71%)</td></tr><tr><td>Bi-modal Bumps</td><td>2.97 (76%)</td><td>4.55 (66%)</td><td>6.62 (76%)</td><td>6.15 (68%)</td><td>-0.56 (-57%)</td><td>-0.44 (-14%)</td></tr><tr><td>Stairs</td><td>1.0 (26%)</td><td>4.25 (62%)</td><td>6.6 (76%)</td><td>8.59 (95%)</td><td>-8.8 (-912%)</td><td>-3.65 (-122%)</td></tr><tr><td>Inside Valley</td><td>4.37 (112%)</td><td>6.55 (95%)</td><td>5.29 (61%)</td><td>6.21 (69%)</td><td>0.47 (48%)</td><td>-1.35 (-45%)</td></tr></table>",
707
+ "bbox": [
708
+ 173,
709
+ 101,
710
+ 825,
711
+ 281
712
+ ],
713
+ "page_idx": 8
714
+ },
715
+ {
716
+ "type": "table",
717
+ "img_path": "images/05f42042335ddfac0c3ecd7781df3a9257cefc46d8197727176ac85d202fec37.jpg",
718
+ "table_caption": [],
719
+ "table_footnote": [],
720
+ "table_body": "<table><tr><td>Environment</td><td colspan=\"4\">DGN</td><td colspan=\"2\">Monolithic Policy</td></tr><tr><td></td><td>(up then down)</td><td>(top-down)</td><td>(bottom-up)</td><td>(no msgs)</td><td>(dynamic graph)</td><td>(fixed graph)</td></tr><tr><td colspan=\"7\">Training Environment</td></tr><tr><td>Manipulation</td><td>-7985</td><td>-7861</td><td>-8482</td><td>-9603</td><td>-8773</td><td>-7725</td></tr><tr><td colspan=\"7\">Zero-Shot Generalization</td></tr><tr><td>More (2x) Limbs</td><td>-14319 (-179%)</td><td>-14894 (-189%)</td><td>-9969 (-118%)</td><td>-10879 (-112%)</td><td></td><td></td></tr><tr><td>Water +2x Limbs</td><td>-10724 (-134%)</td><td>-13278 (-169%)</td><td>-12368 (-146%)</td><td>-10362 (-108%)</td><td></td><td></td></tr></table>",
721
+ "bbox": [
722
+ 173,
723
+ 364,
724
+ 825,
725
+ 468
726
+ ],
727
+ "page_idx": 8
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Table 4: Testing generalization for the manipulation task. The score attained by the self-assembling agent is reported first and then, in parenthesis, the percentage of training performance retained. ",
732
+ "bbox": [
733
+ 173,
734
+ 478,
735
+ 823,
736
+ 507
737
+ ],
738
+ "page_idx": 8
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "We evaluate the learned policy without any further finetuning on several scenarios: more limbs, fewer limbs, more limbs under water, a terrain with hurdles of a certain height, a terrain with gaps between platforms, a bumpy terrain with a bi-modal distribution of bump heights, stairs, and an environment with a valley surrounded by walls on both sides. These environments are procedurally generated as discussed in Section 2. Across these novel environments, the modular policies learned by DGN tend to generalize better than the monolithic agent policies, as indicated in Table 3. ",
743
+ "bbox": [
744
+ 174,
745
+ 536,
746
+ 825,
747
+ 621
748
+ ],
749
+ "page_idx": 8
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "5.4 TASK: MANIPULATION OF TWO OBJECTS ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 176,
757
+ 640,
758
+ 496,
759
+ 655
760
+ ],
761
+ "page_idx": 8
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "The agents are dropped inside a room containing two objects and the goal is to decrease the distance between the objects, as shown in Figure 1(b). The reward for the agents is the negative distance between the objects, so as to encourage the behavior of pushing the blocks together. The training plots are shown in Figure 4c and the generalization results are shown in Table 4. This is a very hard task due to the sparse reward problem as agents only get reward if they move the block. Interestingly, the learned policies do not work well enough in this environment, and only learn to slightly move the blocks (see video). We believe this task requires more reward engineering than just the distance, and we will update the improved results in the final version. ",
766
+ "bbox": [
767
+ 174,
768
+ 667,
769
+ 825,
770
+ 779
771
+ ],
772
+ "page_idx": 8
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "5.5 TASK: SUMO WRESTLING BETWEEN TWO TEAMS ",
777
+ "text_level": 1,
778
+ "bbox": [
779
+ 174,
780
+ 799,
781
+ 553,
782
+ 813
783
+ ],
784
+ "page_idx": 8
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "In this task, we divide the limbs into two teams of 6 limbs each and drop them into an arena to fight. Each team gets rewarded if any opponent limb falls out of the arena. The agents are trained via competitive self-play (Bansal et al., 2017; Tesauro, 1995). This is in contrast to the previous “single-team” tasks for self-assembling agents, i.e., standing, locomotion and manipulation. We present it as an additional result demonstrating the wider applicability of the method. However, it is non-trivial to measure the performance in self-play as the game is zero-sum, and rewards therefore do not increase over time. Instead, we refer the readers to the qualitative results in the video. The policies learned by the self-assembling agents demonstrate some interesting behaviors, but there is a lot of room for improvement in future research. We will release these environments upon acceptance. ",
789
+ "bbox": [
790
+ 173,
791
+ 825,
792
+ 825,
793
+ 924
794
+ ],
795
+ "page_idx": 8
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "",
800
+ "bbox": [
801
+ 171,
802
+ 103,
803
+ 825,
804
+ 132
805
+ ],
806
+ "page_idx": 9
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "6 RELATED WORK ",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 176,
814
+ 151,
815
+ 344,
816
+ 167
817
+ ],
818
+ "page_idx": 9
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Morphologenesis and self-reconfiguring modular robots The idea of modular and selfassembling agents goes back at least to Von Neumman’s Theory of Self-Reproducing Automata (Von Neumann et al., 1966). In robotics, such systems have been termed “self-reconfiguring modular robots” (Murata & Kurokawa, 2007; Stoy et al., 2010). There has been a lot of work in the modular robotics community in designing real hardware robotic modules that can be docked with each other to form complex robotic morphologies (Daudelin et al., 2018; Gilpin et al., 2008; Romanishin et al., 2013; Wright et al., 2007; Yim et al., 2000). Our main contribution is to approach this problem from a learning perspective, in particular deep RL, and study the resulting generalization properties. ",
823
+ "bbox": [
824
+ 174,
825
+ 184,
826
+ 825,
827
+ 309
828
+ ],
829
+ "page_idx": 9
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "A variety of alternative approaches have also been proposed to optimize agent morphologies, including genetic algorithms that search over a generative grammar (Sims, 1994), as well as directly optimizing over morphology parameters with RL (Schaff et al., 2018). One key difference between these approaches and our own is that we achieve morphogenesis via dynamic actions (linking), which agents take during their lifetimes, whereas the past approaches treat morphology as an optimization target to be updated between generations or episodes. Since the physical morphology also defines the connectivity of the policy net, our proposed algorithm can also be viewed as performing a kind of neural architecture search (Zoph & Le, 2016) in physical agents. ",
834
+ "bbox": [
835
+ 174,
836
+ 315,
837
+ 825,
838
+ 428
839
+ ],
840
+ "page_idx": 9
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Graph neural networks Encoding graphical structures into neural networks has been used for a large number of applications, including quantum chemistry (Gilmer et al., 2017), semi-supervised classification (Kipf & Welling, 2016), and representation learning (Yang et al., 2018). The works most similar to ours involve learning control policies. For example, Nervenet (Wang et al., 2018) represents individual limbs and joints as nodes in a graph and demonstrates multi-limb generalization, just like our system does. However, the morphologies on which Nervenet operates are not learned jointly with the policy. hand-defined to be compositional in nature. Others (Battaglia et al., 2018; Huang et al., 2018) have shown that graph neural networks can also be applied to inference models as well as to planning. Many of these past works implement some variant of Graph Neural Networks (Scarselli et al., 2009) which operate on general graphs. Our method leverages the constraint that the morphologies can always be represented as a rooted tree in order to simplify the message passing. ",
845
+ "bbox": [
846
+ 173,
847
+ 443,
848
+ 825,
849
+ 595
850
+ ],
851
+ "page_idx": 9
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "7 DISCUSSION ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 176,
859
+ 616,
860
+ 310,
861
+ 631
862
+ ],
863
+ "page_idx": 9
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Modeling intelligent agents as modular, self-assembling morphologies has long been a very appealing idea. The efforts to create practical systems to evolve artificial agents goes back at least two decades to the beautiful work of Karl Sims (Sims, 1994). In this paper, we are revisiting these ideas using the contemporary machinery of deep networks and reinforcement learning. Examining the problem in the context of machine learning, rather than optimization, we are particularly interested in modularity as a key to generalization, in terms of improving adaptability and robustness to novel environmental conditions. Poor generalization is the Achilles heel of modern robotics research, and the hope is that this could be a promising direction in addressing this key issue. We demonstrated a number of promising experimental results, suggesting that modularity does indeed improve generalization in simulated agents. While these are just the initial steps, we believe that the proposed research direction is promising and its exploration will be fruitful to the research community. To encourage follow-up work, we will release all code, models, and environments online once the paper is published. ",
868
+ "bbox": [
869
+ 174,
870
+ 647,
871
+ 825,
872
+ 814
873
+ ],
874
+ "page_idx": 9
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "REFERENCES ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 176,
882
+ 834,
883
+ 285,
884
+ 849
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Bruce Alberts, Dennis Bray, Julian Lewis, Martin Raff, Keith Roberts, and James D Watson. Molecular Biology of the Cell. Garland Publishing, New York, 1994. 1 ",
891
+ "bbox": [
892
+ 176,
893
+ 858,
894
+ 823,
895
+ 886
896
+ ],
897
+ "page_idx": 9
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. CoRR, 2017. 9 ",
902
+ "bbox": [
903
+ 176,
904
+ 895,
905
+ 821,
906
+ 922
907
+ ],
908
+ "page_idx": 9
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "Yinon M Bar-On, Rob Phillips, and Ron Milo. The biomass distribution on earth. Proceedings of the National Academy of Sciences, 2018. 1 ",
913
+ "bbox": [
914
+ 171,
915
+ 103,
916
+ 823,
917
+ 132
918
+ ],
919
+ "page_idx": 10
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. 10 ",
924
+ "bbox": [
925
+ 174,
926
+ 141,
927
+ 826,
928
+ 196
929
+ ],
930
+ "page_idx": 10
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv:1606.01540, 2016. 4 ",
935
+ "bbox": [
936
+ 173,
937
+ 207,
938
+ 823,
939
+ 236
940
+ ],
941
+ "page_idx": 10
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Jonathan Daudelin, Gangyuan Jing, Tarik Tosun, Mark Yim, Hadas Kress-Gazit, and Mark Campbell. An integrated system for perception-driven autonomy with modular robots. Science Robotics, 2018. 10 ",
946
+ "bbox": [
947
+ 173,
948
+ 244,
949
+ 826,
950
+ 287
951
+ ],
952
+ "page_idx": 10
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017. 10 ",
957
+ "bbox": [
958
+ 171,
959
+ 296,
960
+ 825,
961
+ 327
962
+ ],
963
+ "page_idx": 10
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Kyle Gilpin, Keith Kotay, Daniela Rus, and Iuliu Vasilescu. Miche: Modular shape formation by self-disassembly. IJRR, 2008. 10 ",
968
+ "bbox": [
969
+ 173,
970
+ 334,
971
+ 825,
972
+ 364
973
+ ],
974
+ "page_idx": 10
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "De-An Huang, Suraj Nair, Danfei Xu, Yuke Zhu, Animesh Garg, Li Fei-Fei, Silvio Savarese, and Juan Carlos Niebles. Neural task graphs: Generalizing to unseen tasks from a single video demonstration. arXiv preprint arXiv:1807.03480, 2018. 10 ",
979
+ "bbox": [
980
+ 173,
981
+ 372,
982
+ 826,
983
+ 415
984
+ ],
985
+ "page_idx": 10
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Michael I Jordan. An introduction to probabilistic graphical models, 2003. 5 ",
990
+ "bbox": [
991
+ 173,
992
+ 425,
993
+ 679,
994
+ 440
995
+ ],
996
+ "page_idx": 10
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Arthur Juliani, Vincent-Pierre Berges, Esh Vckay, Yuan Gao, Hunter Henry, Marwan Mattar, and Danny Lange. Unity: A general platform for intelligent agents. arXiv preprint arXiv:1809.02627, 2018. 3 ",
1001
+ "bbox": [
1002
+ 176,
1003
+ 449,
1004
+ 826,
1005
+ 492
1006
+ ],
1007
+ "page_idx": 10
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. 10 ",
1012
+ "bbox": [
1013
+ 171,
1014
+ 501,
1015
+ 825,
1016
+ 530
1017
+ ],
1018
+ "page_idx": 10
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Satoshi Murata and Haruhsa Kurokawa. Self-reconfigurable robots. IEEE Robotics & Automation Magazine, 2007. 1, 10 ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 539,
1026
+ 825,
1027
+ 568
1028
+ ],
1029
+ "page_idx": 10
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Kevin P Murphy, Yair Weiss, and Michael I Jordan. Loopy belief propagation for approximate inference: An empirical study. In Proceedings of the Fifteenth conference on Uncertainty in artificial intelligence, 1999. 5 ",
1034
+ "bbox": [
1035
+ 176,
1036
+ 577,
1037
+ 823,
1038
+ 619
1039
+ ],
1040
+ "page_idx": 10
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "John W Romanishin, Kyle Gilpin, and Daniela Rus. M-blocks: Momentum-driven, magnetic modular robots. In IROS, 2013. 10 ",
1045
+ "bbox": [
1046
+ 171,
1047
+ 628,
1048
+ 825,
1049
+ 657
1050
+ ],
1051
+ "page_idx": 10
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Network, 2009. 2, 4, 10 ",
1056
+ "bbox": [
1057
+ 169,
1058
+ 666,
1059
+ 825,
1060
+ 695
1061
+ ],
1062
+ "page_idx": 10
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Charles B. Schaff, David Yunis, Ayan Chakrabarti, and Matthew R. Walter. Jointly learning to construct and control agents using deep reinforcement learning. CoRR, abs/1801.01432, 2018. URL http://arxiv.org/abs/1801.01432. 10 ",
1067
+ "bbox": [
1068
+ 176,
1069
+ 705,
1070
+ 825,
1071
+ 747
1072
+ ],
1073
+ "page_idx": 10
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. abs/1707.06347, 2017. 5, 6 ",
1078
+ "bbox": [
1079
+ 173,
1080
+ 757,
1081
+ 823,
1082
+ 786
1083
+ ],
1084
+ "page_idx": 10
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Karl Sims. Evolving virtual creatures. In Proceedings of the 21st annual conference on Computer graphics and interactive techniques, 1994. 1, 10 ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 795,
1092
+ 821,
1093
+ 824
1094
+ ],
1095
+ "page_idx": 10
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Kasper Stoy, David Brandt, David J Christensen, and David Brandt. Self-reconfigurable robots: an introduction. Mit Press Cambridge, 2010. 1, 10 ",
1100
+ "bbox": [
1101
+ 176,
1102
+ 833,
1103
+ 821,
1104
+ 862
1105
+ ],
1106
+ "page_idx": 10
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press Cambridge, 1998. 4 ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 871,
1114
+ 823,
1115
+ 900
1116
+ ],
1117
+ "page_idx": 10
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Gerald Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 1995. 9 ",
1122
+ "bbox": [
1123
+ 173,
1124
+ 909,
1125
+ 821,
1126
+ 924
1127
+ ],
1128
+ "page_idx": 10
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Xiaoyuan Tu and Demetri Terzopoulos. Artificial fishes: Physics, locomotion, perception, behavior. In Proceedings of the 21st annual conference on Computer graphics and interactive techniques, 1994. 1 ",
1133
+ "bbox": [
1134
+ 174,
1135
+ 103,
1136
+ 825,
1137
+ 146
1138
+ ],
1139
+ "page_idx": 11
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "John Von Neumann, Arthur W Burks, et al. Theory of self-reproducing automata. IEEE Transactions on Neural Networks, 1966. 10 ",
1144
+ "bbox": [
1145
+ 173,
1146
+ 155,
1147
+ 823,
1148
+ 183
1149
+ ],
1150
+ "page_idx": 11
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Tingwu Wang, Renjie Liao, Jimmy Ba, and Sanja Fidler. Nervenet: Learning structured policy with graph neural networks. 2018. 10 ",
1155
+ "bbox": [
1156
+ 174,
1157
+ 193,
1158
+ 823,
1159
+ 220
1160
+ ],
1161
+ "page_idx": 11
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Michael Wooldridge. An introduction to multiagent systems. John Wiley & Sons, 2009. 3, 6 ",
1166
+ "bbox": [
1167
+ 174,
1168
+ 231,
1169
+ 781,
1170
+ 246
1171
+ ],
1172
+ "page_idx": 11
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Cornell Wright, Aaron Johnson, Aaron Peck, Zachary McCord, Allison Naaktgeboren, Philip Gianfortoni, Manuel Gonzalez-Rivero, Ross Hatton, and Howie Choset. Design of a modular snake robot. In IROS, 2007. 10 ",
1177
+ "bbox": [
1178
+ 174,
1179
+ 253,
1180
+ 825,
1181
+ 296
1182
+ ],
1183
+ "page_idx": 11
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Zhilin Yang, Bhuwan Dhingra, Kaiming He, William W Cohen, Ruslan Salakhutdinov, Yann LeCun, et al. Glomo: Unsupervisedly learned relational graphs as transferable representations. arXiv preprint arXiv:1806.05662, 2018. 10 ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 306,
1191
+ 825,
1192
+ 348
1193
+ ],
1194
+ "page_idx": 11
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Mark Yim, David G Duff, and Kimon D Roufas. Polybot: a modular reconfigurable robot. In ICRA, 2000. 1, 10 ",
1199
+ "bbox": [
1200
+ 173,
1201
+ 357,
1202
+ 823,
1203
+ 386
1204
+ ],
1205
+ "page_idx": 11
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Mark Yim, Wei-Min Shen, Behnam Salemi, Daniela Rus, Mark Moll, Hod Lipson, Eric Klavins, and Gregory S Chirikjian. Modular self-reconfigurable robot systems [grand challenges of robotics]. IEEE Robotics & Automation Magazine, 2007. 1 ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 395,
1213
+ 826,
1214
+ 438
1215
+ ],
1216
+ "page_idx": 11
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. 10 ",
1221
+ "bbox": [
1222
+ 171,
1223
+ 446,
1224
+ 825,
1225
+ 476
1226
+ ],
1227
+ "page_idx": 11
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "A SUPPLEMENTARY MATERIAL ",
1232
+ "text_level": 1,
1233
+ "bbox": [
1234
+ 176,
1235
+ 102,
1236
+ 450,
1237
+ 118
1238
+ ],
1239
+ "page_idx": 12
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "A.1 PERFORMANCE OF FIXED-GRAPH BASELINE VS. NUMBER OF LIMBS ",
1244
+ "text_level": 1,
1245
+ "bbox": [
1246
+ 174,
1247
+ 133,
1248
+ 694,
1249
+ 148
1250
+ ],
1251
+ "page_idx": 12
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "To verify whether the training of Monolithic Policy w/ Fixed Graph is working, we ran it on standing up and locomotion tasks across varying number of limbs. We show in Figure 5 that the baseline performs well with less number of limbs which suggests that the reason for failure in 6-limbs case is indeed the morphology graph being fixed, and not the implementation of this baseline. ",
1256
+ "bbox": [
1257
+ 174,
1258
+ 160,
1259
+ 825,
1260
+ 215
1261
+ ],
1262
+ "page_idx": 12
1263
+ },
1264
+ {
1265
+ "type": "image",
1266
+ "img_path": "images/557a4a6ce0d15f4b84d5a8b914890ee9239f60306ec2c59bdc87490c9cd4f9df.jpg",
1267
+ "image_caption": [
1268
+ "Figure 5: The performance of Monolithic Policy w/ Fixed Graph baseline as the number of limbs varies in the two tasks: standing up (left) and locomotion (right). This shows that the monolithic baseline works well with less (1-3 limbs), but fails with 6 limbs during training. "
1269
+ ],
1270
+ "image_footnote": [],
1271
+ "bbox": [
1272
+ 228,
1273
+ 233,
1274
+ 769,
1275
+ 407
1276
+ ],
1277
+ "page_idx": 12
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "A.2 GENERALIZATION OF LEARNED POLICIES AT DIFFERENT TRAINING INTERVALS ",
1282
+ "text_level": 1,
1283
+ "bbox": [
1284
+ 171,
1285
+ 488,
1286
+ 761,
1287
+ 501
1288
+ ],
1289
+ "page_idx": 12
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "In this section, we show the generalization plots corresponding to the Tables 1, 2, 3, 4. To plot generalization, we pick the trained model from different training intervals and plot them across new environments without finetuning at all, in a zero-shot manner. ",
1294
+ "bbox": [
1295
+ 174,
1296
+ 513,
1297
+ 826,
1298
+ 555
1299
+ ],
1300
+ "page_idx": 12
1301
+ },
1302
+ {
1303
+ "type": "image",
1304
+ "img_path": "images/322766492b77d96530e5903ed73afb31edaa04cae3792ec8c6af045946583aba.jpg",
1305
+ "image_caption": [
1306
+ "Figure 6: Generalization for the task of Standing Up: Performance of different methods across novel scenarios without any finetuning. "
1307
+ ],
1308
+ "image_footnote": [],
1309
+ "bbox": [
1310
+ 183,
1311
+ 570,
1312
+ 810,
1313
+ 851
1314
+ ],
1315
+ "page_idx": 12
1316
+ },
1317
+ {
1318
+ "type": "image",
1319
+ "img_path": "images/eb7fee8482b89b8ee0b9039eb096786efc56ea0b0ec3381bac2344f7712f8612.jpg",
1320
+ "image_caption": [
1321
+ "Figure 7: Generalization for the task of Standing Up w/ Wind: Performance of different methods across novel scenarios without any finetuning. "
1322
+ ],
1323
+ "image_footnote": [],
1324
+ "bbox": [
1325
+ 183,
1326
+ 104,
1327
+ 813,
1328
+ 242
1329
+ ],
1330
+ "page_idx": 13
1331
+ },
1332
+ {
1333
+ "type": "image",
1334
+ "img_path": "images/a186ebeb262fe5356a9dd99cc84b81f64dfb84f9b3a6038762e6469904d93d95.jpg",
1335
+ "image_caption": [
1336
+ "Figure 8: Generalization for the task of Locomotion: Performance of different methods across novel scenarios without any finetuning. "
1337
+ ],
1338
+ "image_footnote": [],
1339
+ "bbox": [
1340
+ 184,
1341
+ 285,
1342
+ 812,
1343
+ 708
1344
+ ],
1345
+ "page_idx": 13
1346
+ },
1347
+ {
1348
+ "type": "image",
1349
+ "img_path": "images/49da75b9bfd538f716f7a485b431ad4be669f90d45e75a9aeb1957942217161f.jpg",
1350
+ "image_caption": [
1351
+ "Figure 9: Generalization for the task of Manipulation: Performance of different methods across novel scenarios without any finetuning. "
1352
+ ],
1353
+ "image_footnote": [],
1354
+ "bbox": [
1355
+ 192,
1356
+ 752,
1357
+ 802,
1358
+ 888
1359
+ ],
1360
+ "page_idx": 13
1361
+ }
1362
+ ]
parse/train/B1lxH20qtX/B1lxH20qtX_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1lxH20qtX/B1lxH20qtX_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJgy96EYvr/BJgy96EYvr.md ADDED
@@ -0,0 +1,561 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INFLUENCE-BASED MULTI-AGENT EXPLORATION
2
+
3
+ Tonghan Wang∗, Jianhao Wang∗, Yi Wu & Chongjie Zhang
4
+
5
+ Institute for Interdisciplinary Information Sciences
6
+ Tsinghua University
7
+ Beijing, China
8
+ wangth18@mails.tsinghua.edu.cn, wjh720.eric@gmail.com
9
+ jxwuyi@openai.com, chongjie@tsinghua.edu.cn
10
+
11
+ # ABSTRACT
12
+
13
+ Intrinsically motivated reinforcement learning aims to address the exploration challenge for sparse-reward tasks. However, the study of exploration methods in transition-dependent multi-agent settings is largely absent from the literature. We aim to take a step towards solving this problem. We present two exploration methods: exploration via information-theoretic influence (EITI) and exploration via decision-theoretic influence (EDTI), by exploiting the role of interaction in coordinated behaviors of agents. EITI uses mutual information to capture the interdependence between the transition dynamics of agents. EDTI uses a novel intrinsic reward, called Value of Interaction (VoI), to characterize and quantify the influence of one agent’s behavior on expected returns of other agents. By optimizing EITI or EDTI objective as a regularizer, agents are encouraged to coordinate their exploration and learn policies to optimize the team performance. We show how to optimize these regularizers so that they can be easily integrated with policy gradient reinforcement learning. The resulting update rule draws a connection between coordinated exploration and intrinsic reward distribution. Finally, we empirically demonstrate the significant strength of our methods in a variety of multi-agent scenarios.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Reinforcement learning algorithms aim to learn a policy that maximizes the accumulative reward from an environment. Many advances of deep reinforcement learning rely on a dense shaped reward function, such as distance to the goal (Mirowski et al., 2016; Wu et al., 2018), scores in games (Mnih et al., 2015) or expert-designed rewards (Wu & Tian, 2016; OpenAI, 2018), but they tend to struggle in many real-world scenarios with sparse rewards (Burda et al., 2019). Therefore, many recent works propose to introduce additional intrinsic incentives to boost exploration, including pseudocounts (Bellemare et al., 2016; Tang et al., 2017; Ostrovski et al., 2017), model-learning improvements (Burda et al., 2019; Pathak et al., 2017; Burda et al., 2018), and information gain (Florensa et al., 2017; Gupta et al., 2018; Hyoungseok Kim, 2019). These works result in significant progress in many challenging tasks such as Montezuma Revenge (Burda et al., 2018), robotic manipulation (Pathak et al., 2018; Riedmiller et al., 2018), and Super Mario games (Burda et al., 2019; Pathak et al., 2017).
18
+
19
+ Notably, most of the existing breakthroughs on sparse-reward environments have been focusing on single-agent scenarios and leave the exploration problem largely unstudied for multi-agent settings – it is common in real-world applications that multiple agents are required to solve a task in a coordinated fashion (Cao et al., 2012; Nowe et al., 2012; Zhang & Lesser, 2011). This problem has recently ´ attracted attention and several exploration strategies have been proposed for transition-independent cooperative multi-agent settings (Dimakopoulou & Van Roy, 2018; Dimakopoulou et al., 2018; Bargiacchi et al., 2018; Iqbal & Sha, 2019b). Nevertheless, how to explore effectively in more general scenarios with complex reward and transition dependency among cooperative agents remains an open research problem.
20
+
21
+ This paper aims to take a step towards this goal. Our basic idea is to coordinate agents’ exploration by taking into account their interactions during their learning processes. Configurations where interaction happens (interaction points) lie at critical junctions in the state-action space, through these critical configurations can transit to potentially important under-explored regions. To exploit this idea, we propose exploration strategies where agents start with decentralized exploration driven by their individual curiosity, and are also encouraged to visit interaction points to influence the exploration processes of other agents and help them get more extrinsic and intrinsic rewards. Based on how to quantify influence among agents, we propose two exploration methods. Exploration via information-theoretic influence (EITI) uses mutual information (MI) to capture the interdependence between the transition dynamics of agents. Exploration via decision-theoretic influence (EDTI) goes further and uses a novel measure called value of interaction (VoI) to disentangle the effect of one agent’s state-action pair on the expected (intrinsic) value of other agents. By optimizing MI or VoI as a regularizer to the value function, agents are encouraged to explore state-action pairs where they can exert influences on other agents for learning sophisticated multi-agent cooperation strategies.
22
+
23
+ To efficiently optimize MI and VoI, we propose augmented policy gradient formulations so that the gradients can be estimated purely from trajectories. The resulting update rule draws a connection between coordinated exploration and the distribution of individual intrinsic rewards among team members, which further explains why our methods are able to facilitate multi-agent exploration.
24
+
25
+ We demonstrate the effectiveness of our methods on a variety of sparse-reward cooperative multiagent tasks. Empirical results show that both EITI and EDTI allow for the discovery of influential states and EDTI further filter out interactions that have no effects on the performance. Our results also imply that these influential states are implicitly discovered as subgoals in search space that guide and coordinate exploration. The video of experiments is available at https://sites. google.com/view/influence-based-mae/.
26
+
27
+ # 2 SETTINGS
28
+
29
+ In our work, we consider a fully cooperative multi-agent task that can be modelled by a factored multi-agent MDP $G = \langle N , S , \overset { \cdot } { A } , T , \overset { \cdot } { r } , h , n \rangle$ , where $\bar { \boldsymbol { N } } \equiv \{ 1 , 2 , . . . , n \}$ is the finite set of agents, ${ \cal S } \equiv \times _ { i \in N } S _ { i }$ is the finite set of joint states and $S _ { i }$ is the state set of agent $i$ . At each timestep, each agent selects an action $a _ { i } \in A _ { i }$ at state $\pmb { s }$ , forming a joint action $\pmb { a } \in A \equiv \times _ { i \in N } A _ { i }$ , resulting in a shared extrinsic reward $r ( s , a )$ for each agent and the next state $s ^ { \prime }$ according to the transition function $T ( s ^ { \prime } | s , a )$ .
30
+
31
+ The objective of the task is that each agent learns a policy $\pi _ { i } ( a _ { i } | s _ { i } )$ , jointly maximizing team performance. The joint policy ${ \pmb { \pi } } \mathrm { = } \langle \pi _ { 1 } , \ldots , \pi _ { n } \rangle$ induces an action-value function, ${ Q } ^ { e x t , \pi } ( { \pmb s } , { \pmb a } ) =$ $\scriptstyle \mathbb { E } _ { \tau } [ \sum _ { t = 0 } ^ { h } r ^ { t } | s ^ { 0 } = s , { \boldsymbol { a } } ^ { 0 } = { \boldsymbol { a } } , \pi ]$ , and a value function $V ^ { e x t , \pi } ( s ) { = } \operatorname* { m a x } _ { \pmb { a } } Q ^ { e x t , \pi } ( s , \pmb { a } )$ , where $\tau$ is the $h$
32
+
33
+ We adopt a centralized training and decentralized execution paradigm, which has been widely used in multi-agent deep reinforcement learning (Foerster et al., 2016; Lowe et al., 2017; Foerster et al., 2018; Rashid et al., 2018). During training, agents are granted access to the states, actions, (intrinsic) rewards, and value functions of other agents, while decentralized execution only requires individual states.
34
+
35
+ # 3 INFLUENCE-BASED COORDINATED MULTI-AGENT EXPLORATION
36
+
37
+ Efficient exploration is critical for reinforcement learning, particularly in sparse-reward tasks. Intrinsic motivation (Oudeyer & Kaplan, 2009) is a crucial mechanism for behaviour learning since it provides the driver of exploration. Therefore, to trade off exploration and exploitation, it is common for an RL agent to maximize an objective of the expected extrinsic reward augmented by the expected intrinsic reward. Curiosity is one of the extensively-studied intrinsic rewards to encourage an agent to explore according to its uncertainty about the environment, which can be measured by model prediction error (Burda et al., 2019; Pathak et al., 2017; Burda et al., 2018) or state visitation count (Bellemare et al., 2016; Tang et al., 2017; Ostrovski et al., 2017).
38
+
39
+ While such an intrinsic motivation as curiosity drives effective individual exploration, it is often not sufficient enough for learning in collaborative multi-agent settings, because it does not take into account agent interactions. To encourage interactions, we propose an influence value aims to quantify one agent’s influence on the exploration processes of other agents. Maximizing this value will encourage agents to visit interaction points more often through which the agent team can reach configurations that are rarely visited by decentralized exploration. In next sections, we will provide two ways to formulate the influence value with such properties, leading to two exploration strategies.
40
+
41
+ Thus, for each agent $i$ , our overall optimization objective is:
42
+
43
+ $$
44
+ J _ { \theta _ { i } } [ \pi _ { i } | \pi _ { - i } , p _ { 0 } ] \equiv V ^ { e x t , \pi } ( s _ { 0 } ) + V _ { i } ^ { i n t , \pi } ( s _ { 0 } ) + \beta \cdot I _ { - i | i } ^ { \pi } ,
45
+ $$
46
+
47
+ where $p _ { 0 } ( s _ { 0 } )$ is the initial state distribution, $\pi _ { - i }$ is the joint policy excluding that of agent $i$ , and $V _ { i } ^ { i n t , \pi } ( s )$ is the intrinsic value function of agent $i$ , $I _ { - i | i } ^ { \pi }$ is the influence value, $\beta > 0$ is a weighting term. In this paper, we use the following notations:
48
+
49
+ $$
50
+ \begin{array} { r l } & { \displaystyle \tilde { r } _ { i } ( s , \pmb { a } ) = r ( s , \pmb { a } ) + u _ { i } ( s _ { i } , { a } _ { i } ) , } \\ & { \displaystyle V _ { i } ^ { \pi } ( \pmb { s } ) = V ^ { e x t , \pi } ( \pmb { s } ) + V _ { i } ^ { i n t , \pi } ( \pmb { s } ) , } \\ & { \displaystyle Q _ { i } ^ { \pi } ( \pmb { s } , \pmb { a } ) = \tilde { r } _ { i } ( \pmb { s } , \pmb { a } ) + \sum _ { s ^ { \prime } } T ( \pmb { s } ^ { \prime } | \pmb { s } , \pmb { a } ) V _ { i } ^ { \pi } ( \pmb { s } ^ { \prime } ) , } \end{array}
51
+ $$
52
+
53
+ where $u _ { i } ( s _ { i } , a _ { i } )$ is a curiosity-derived intrinsic reward, $\tilde { r } _ { i } ( s , { \pmb a } )$ is a sum of intrinsic and extrinsic rewards, $V _ { i } ^ { \pi } ( s )$ and $Q _ { i } ^ { \pi } ( s , { \pmb a } )$ here contain both intrinsic and extrinsic rewards.
54
+
55
+ # 3.1 EXPLORATION VIA INFORMATION-THEORETIC INFLUENCE
56
+
57
+ One critical problem in our learning framework presented above is to define the influence value $I$ . For simplicity, we start with a two-agent case. The first method we propose is to use mutual information between agents’ trajectories to measure one agent’s influence on other agents’ learning processes. Such mutual information can be defined as information gain of one agent’s state transition given the other’s state and action. Without loss of generality, we define it from the perspective of agent 1:
58
+
59
+ $$
60
+ M I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \sum _ { s , a , s _ { 2 } ^ { \prime } \in ( S , A , S _ { 2 } ) } p ^ { \pi } ( s , a , s _ { 2 } ^ { \prime } ) \left[ \log p ^ { \pi } ( s _ { 2 } ^ { \prime } | s , a ) - \log p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) \right] ,
61
+ $$
62
+
63
+ where $\pmb { s } = ( s _ { 1 } , s _ { 2 } )$ is the joint state, $\pmb { a } = ( a _ { 1 } , a _ { 2 } )$ is the joint action, and $S _ { i }$ and $A _ { i }$ are the random variables of state and action of agent $i$ subject to the distribution induced by the joint policy $\pi$ . So we define $I _ { 2 | 1 } ^ { \pi }$ as $M I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } )$ that captures transition interactions between agents. Optimizing this objective encourages agent 1 to visited critical points where it can influence the transition probability of agent 2. We call such an exploration method exploration via informationtheoretic influence (EITI).
64
+
65
+ Optimizing $M I _ { 2 | 1 } ^ { \pi }$ with respect to the policy parameters $\theta _ { 1 }$ of agent 1 is a little bit challenging, because it is an expectation with respect to a distribution that depends on $\theta _ { 1 }$ . The gradient consists of two terms:
66
+
67
+ $$
68
+ \begin{array} { r l r } { { \nabla _ { \theta _ { 1 } } M I ^ { \boldsymbol { \pi } } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \sum _ { \boldsymbol { s } , \boldsymbol { a } , \boldsymbol { s } _ { 2 } ^ { \prime } \in ( S , A , S _ { 2 } ) } \nabla _ { \theta _ { 1 } } ( p ^ { \boldsymbol { \pi } } ( \boldsymbol { s } , \boldsymbol { a } , \boldsymbol { s } _ { 2 } ^ { \prime } ) ) \log \frac { p ( s _ { 2 } ^ { \prime } | \boldsymbol { s } , \boldsymbol { a } ) } { p ^ { \pi } ( s _ { 2 } ^ { \prime } | \boldsymbol { s } _ { 2 } , \boldsymbol { a } _ { 2 } ) } } } \\ & { } & { + \sum _ { \boldsymbol { s } , \boldsymbol { a } , \boldsymbol { s } _ { 2 } ^ { \prime } \in ( S , A , S _ { 2 } ) } p ^ { \pi } ( \boldsymbol { s } , \boldsymbol { a } , \boldsymbol { s } _ { 2 } ^ { \prime } ) \nabla _ { \theta _ { 1 } } \log \frac { p ( s _ { 2 } ^ { \prime } | \boldsymbol { s } , \boldsymbol { a } ) } { p ^ { \pi } ( s _ { 2 } ^ { \prime } | \boldsymbol { s } _ { 2 } , \boldsymbol { a } _ { 2 } ) } . } \end{array}
69
+ $$
70
+
71
+ While the second term is an expectation over the trajectory and can be shown to be zero (see Appendix B.1), it is unwieldy to deal with the first term because it requires the gradient of the stationary distribution, which depends on the policies and the dynamics of the environment. Fortunately, the gradient can still be estimated purely from sampled trajectories by drawing inspiration from the proof of the policy gradient theorem (Sutton et al., 2000).
72
+
73
+ The resulting policy gradient update is:
74
+
75
+ $$
76
+ \nabla _ { \boldsymbol { \theta } _ { 1 } } J _ { \boldsymbol { \theta } _ { 1 } } ( t ) = \left( \hat { R } _ { 1 } ^ { t } - \hat { V } _ { 1 } ^ { \pi } ( s _ { t } ) \right) \nabla _ { \boldsymbol { \theta } _ { 1 } } \log \pi _ { \boldsymbol { \theta } _ { 1 } } ( a _ { 1 } ^ { t } | s _ { 1 } ^ { t } )
77
+ $$
78
+
79
+ where $\hat { V } _ { 1 } ^ { \pi } ( s _ { t } )$ is an augmented value function of $\begin{array} { r } { \hat { R } _ { 1 } ^ { t } = \sum _ { t ^ { \prime } = t } ^ { h } \hat { r } _ { 1 } ^ { t ^ { \prime } } } \end{array}$ and
80
+
81
+ $$
82
+ \begin{array} { r } { \hat { r } _ { 1 } ^ { t } = r ^ { t } + u _ { 1 } ^ { t } + \beta \log \frac { p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { t } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } ) } { p ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } ) } . } \end{array}
83
+ $$
84
+
85
+ The third term, which we call EITI reward, is 0 when the agents are transition-independent, i.e., when $p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { t } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } ) \stackrel { } { = } p ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } )$ , and is positive when $s _ { 1 } ^ { t } , a _ { 1 } ^ { t }$ increase the probability 2 of agent 2 translating to $s _ { 2 } ^ { t + 1 }$ 2 . Therefore, the EITI reward is an intrinsic motivation that encourages agent 1 to visit more frequently the state-action pairs where it can influence the trajectory of agent 2. The estimation of $p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { \dot { t } } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } )$ and $p ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } )$ are discussed in Appendix C. We assume that agents know the states and actions of other agents, but this information is only available during centralized training. When execution, agents only have access to their local observations.
86
+
87
+ # 3.2 EXPLORATION VIA DECISION-THEORETIC INFLUENCE
88
+
89
+ Mutual information characterizes the influence of one agent’s trajectory on that of the other and captures interactions between the transition functions of the agents. However, it does not provide the value of these interactions to identify interactions related to more internal and external rewards $( \tilde { r } )$ . To address this issue, we propose exploration via decision-theoretic influence (EDTI) based on a decision-theoretic measure of $I$ , called Value of Interaction (VoI), which disentangles both transition and reward influences. VoI is defined as the expected difference between the action-value function of one agent (e.g., agent 2) and its counterfactual action-value function without considering the state and action of the other agent (e.g., agent 1):
90
+
91
+ $$
92
+ { V o I } _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \sum _ { s , a , s _ { 2 } ^ { \prime } \in ( S , A , S _ { 2 } ) } p ^ { \pi } ( s , a , s _ { 2 } ^ { \prime } ) \left[ Q _ { 2 } ^ { \pi } ( s , a , s _ { 2 } ^ { \prime } ) - Q _ { 2 | 1 } ^ { \pi , * } ( s _ { 2 } , a _ { 2 } , s _ { 2 } ^ { \prime } ) \right] ,
93
+ $$
94
+
95
+ where $Q _ { 2 } ^ { \pi } ( s , { \pmb a } , s _ { 2 } ^ { \prime } )$ is the expected rewards (including intrinsic rewards) of agent 2 defined as:
96
+
97
+ $$
98
+ Q _ { 2 } ^ { \pi } ( \pmb { s } , \pmb { a } , \pmb { s } _ { 2 } ^ { \prime } ) = \tilde { r } _ { 2 } ( \pmb { s } , \pmb { a } ) + \gamma \sum _ { \pmb { s } _ { 1 } ^ { \prime } } p ( \pmb { s } _ { 1 } ^ { \prime } | \pmb { s } , \pmb { a } , \pmb { s } _ { 2 } ^ { \prime } ) V _ { 2 } ^ { \pi } ( \pmb { s } ^ { \prime } ) ,
99
+ $$
100
+
101
+ and the counterfactual action-value function $Q _ { 2 } ^ { \pi , * }$ (also includes intrinsic and extrinsic rewards) can be obtained by marginalizing out the state and action of agent 1:
102
+
103
+ $$
104
+ \partial _ { 2 | 1 } ^ { \pi , * } ( s _ { 2 } , a _ { 2 } , s _ { 2 } ^ { \prime } ) = \sum _ { s _ { 1 } ^ { * } , a _ { 1 } ^ { * } } p ^ { \pi } ( s _ { 1 } ^ { * } , a _ { 1 } ^ { * } | s _ { 2 } , a _ { 2 } ) [ \tilde { r } _ { 2 } ( s _ { 1 } ^ { * } , s _ { 2 } , a _ { 1 } ^ { * } , a _ { 2 } ) + \gamma \sum _ { s _ { 1 } ^ { \prime } } p ( s _ { 1 } ^ { \prime } | s _ { 1 } ^ { * } , s _ { 2 } , a _ { 1 } ^ { * } , a _ { 2 } , s _ { 2 } ^ { \prime } ) V _ { 2 } ^ { \pi } ( s ^ { \prime } ) ] .
105
+ $$
106
+
107
+ Note that the definition of VoI is analogous to that of MI and the difference lies in that $\log p ( \cdot )$ measures the amount of information while $Q$ measures the action value. Although VoI can be obtained by learning $Q _ { 2 } ^ { \pi } ( s , \pmb { a } )$ and $Q _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } )$ and calculating the difference, we propose to explicitly marginalize out $s _ { 1 } ^ { * }$ and $a _ { 1 } ^ { * }$ utilizing the estimated model transition probability $p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ and $p ( s _ { 2 } ^ { \prime } | s , \mathbf { a } )$ to get a more accurate value estimate (Feinberg et al., 2018). The performance of these two formulations are compared in the experiments.
108
+
109
+ Value functions $Q$ and $V$ used in VoI contains both expected external rewards and internal rewards, which will not only encourage coordinated exploration by the influence between intrinsic rewards but also filter out meaningless interactions which can not lead to extrinsic reward after intrinsic reward diminishes. To facilitate the optimization of VoI, we rewrite it as an expectation over stateaction trajectories.
110
+
111
+ $$
112
+ V o I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \mathbb { E } _ { \tau } \left[ \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) + \gamma \left( 1 - \frac { p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s , a ) } \right) V _ { 2 } ^ { \pi } ( s ^ { \prime } ) \right] ,
113
+ $$
114
+
115
+ where $\tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } )$ is the counterfactual immediate reward. The detailed proof is deferred to Appendix B.2. From this definition, we can intuitively see how VoI reflects the value of interactions. $\tilde { r } _ { 2 } ( s , a ) -$ $\tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } )$ and $1 - p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) / p ( s _ { 2 } ^ { \prime } | \bar { s , } a )$ measure the influence of agent 1 on the immediate reward and the transition function of agent 2, and $V _ { 2 } ^ { \pi } ( s ^ { \prime } )$ serves as a scale factor in terms of future value. Only when agent 1 and agent 2 are both transition- and reward-independent, i.e., when $p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , \bar { a _ { 2 } } ) = p ( s _ { 2 } ^ { \prime } | s , \pmb { a } )$ and $r _ { 2 } ^ { \pi } \bar { ( } s _ { 2 } , a _ { 2 } ) = r _ { 2 } ( s , a )$ will VoI equal to 0. In particular, maximizing
116
+
117
+ VoI with respect to policy parameters $\theta _ { 1 }$ will lead agent 1 to meaningful interaction points, where $V _ { 2 } ^ { \pi } ( s ^ { \prime } )$ is high and $s _ { 1 } , a _ { 1 }$ can increase the probability that $\scriptstyle { \boldsymbol { s } } ^ { \prime }$ is reached.
118
+
119
+ In this learning framework, agents initially explore the environment individually driven by its own curiosity, during which process they will discover potentially valuable interaction points where they can influence the transition function and (intrinsic) rewarding structure of each other. VoI highlights these points and encourages agents to visit these configurations more frequently. As intrinsic reward diminishes, VoI can gradually distinguish those interaction points which are necessary to get extrinsic rewards.
120
+
121
+ # 3.2.1 POLICY OPTIMIZATION WITH VOI
122
+
123
+ We want to optimize $J _ { \theta _ { i } }$ with respect to the policy parameters $\theta _ { i }$ , where the most cumbrous term is $\nabla _ { \theta _ { i } } V o I _ { - i | i }$ . For brevity, we can consider a two-agent case, e.g., optimizing $V o I _ { 2 | 1 }$ with respect to the policy parameters $\theta _ { 1 }$ . Directly computing the gradient $\nabla _ { \theta _ { 1 } } V o I _ { 2 | 1 }$ is not stable, because $V o I _ { 2 | 1 }$ contains policy-dependent functions $\tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) , p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ , and $V _ { 2 } ^ { \pi } ( s ^ { \prime } )$ (see Eq. 12). To stabilize training , we use target functions to approximate these policy-dependent functions, which is a commonly used technique in deep RL (Mnih et al., 2015). With this approximation, we denote
124
+
125
+ $$
126
+ g _ { 2 } ( s , a ) = \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) + \gamma \sum _ { s ^ { \prime } } T ( s ^ { \prime } | s , a ) \left( 1 - \frac { p ^ { - } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s , a ) } \right) V _ { 2 } ^ { - } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } ) .
127
+ $$
128
+
129
+ where $r _ { 2 } ^ { - } , p ^ { - }$ , and $V _ { 2 } ^ { - }$ are corresponding target functions. As these target functions are only periodically updated during the learning, their gradients over $\theta _ { 1 }$ can be approximately ignored. Therefore, from Eq. 12, we have
130
+
131
+ $$
132
+ \nabla _ { \theta _ { 1 } } V o I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) \approx \sum _ { s , a \in ( S , A ) } \left( \nabla _ { \theta _ { 1 } } p ^ { \pi } ( s , a ) \right) g _ { 2 } ( s , a ) .
133
+ $$
134
+
135
+ Similar to the calculation of $\nabla _ { \boldsymbol { \theta } _ { i } } M \boldsymbol { I }$ , we get the gradient at every step (see Appendix B.3 for proof):
136
+
137
+ $$
138
+ \begin{array} { r } { \nabla _ { \theta _ { 1 } } J _ { \theta _ { 1 } } ( t ) \approx \left( \hat { R } _ { 1 } ^ { t } - \hat { V } _ { 1 } ^ { \pi } ( s _ { t } ) \right) \nabla _ { \theta _ { 1 } } \log \pi _ { \theta _ { 1 } } ( a _ { 1 } ^ { t } | s _ { 1 } ^ { t } ) , } \end{array}
139
+ $$
140
+
141
+ where $\hat { V } _ { 1 } ^ { \pi } ( s _ { t } )$ is an augmented value function regressed towards $\begin{array} { r } { \hat { R } _ { 1 } ^ { t } = \sum _ { t ^ { \prime } = t } ^ { h } \hat { r } _ { 1 } ^ { t ^ { \prime } } } \end{array}$ and
142
+
143
+ $$
144
+ \hat { r } _ { 1 } ^ { t } = r ^ { t } + u _ { 1 } ^ { t } + \beta \left[ u _ { 2 } ^ { t } + \gamma \left( 1 - \frac { p ^ { - } ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } ) } { p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { t } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } ) } \right) V _ { 2 } ^ { - } ( s _ { 1 } ^ { t + 1 } , s _ { 2 } ^ { t + 1 } ) \right] .
145
+ $$
146
+
147
+ We call ut2 + γ 1 − p−(st+12 |st2,at2)p(st+1|st ,st ,at ,at ) $\begin{array} { r } { u _ { 2 } ^ { t } + \gamma \left( 1 - \frac { p ^ { - } ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } ) } { p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { t } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } ) } \right) V _ { 2 } ^ { - } ( s _ { 1 } ^ { t + 1 } , s _ { 2 } ^ { t + 1 } ) } \end{array}$ the EDTI reward.
148
+
149
+ # 3.3 DISCUSSIONS
150
+
151
+ Scale to Large Settings: For cases with more than two agents, the VoI of agent $i$ on other agents can be defined similarly to Eq. 9, which is annotated with $V o I _ { - i | i } ^ { \pi } ( S _ { - i } ^ { \prime } ; S _ { i } , A _ { i } | S _ { - i } , A _ { - i } )$ , where $S _ { - i }$ and $A _ { - i }$ are the state and action sets of all agents other than agent $i$ . In practice, agents interaction can often be decomposed to pairwise interaction so $V o I _ { - i | i } ^ { \pi } ( S _ { - i } ^ { \prime } ; S _ { i } , A _ { i } | S _ { - i } , A _ { - i } )$ is well approximated by the sum of values of pairwise value of interaction:
152
+
153
+ $$
154
+ V o I _ { - i | i } ^ { \pi } ( S _ { - i } ^ { \prime } ; S _ { i } , A _ { i } | S _ { - i } , A _ { - i } ) \approx \sum _ { j \in N , j \ne i } V o I _ { j | i } ^ { \pi } ( S _ { j } ^ { \prime } ; S _ { i } , A _ { i } | S _ { - i } , A _ { - i } ) .
155
+ $$
156
+
157
+ Relationship between EITI and EDTI: EITI and EDTI gradient updates are obtained by information- and decision-theoretical influence respectively. Therefore, it is nontrivial to derive that part of the EDTI reward is a lower bound of the EITI reward:
158
+
159
+ $$
160
+ 1 - \frac { p ( s _ { - i } ^ { \prime } | s _ { - i } , a _ { - i } ) } { p ( s _ { - i } ^ { \prime } | s , a ) } \leq \log \frac { p ( s _ { - i } ^ { \prime } | s , a ) } { p ( s _ { - i } ^ { \prime } | s _ { - i } , a _ { - i } ) } , \forall s , a , s _ { - i } ^ { \prime }
161
+ $$
162
+
163
+ which easily follows given that $\log x \geq 1 - 1 / x$ for $\forall x > 0$ . This draws a connection between EITI and EDTI reward.
164
+
165
+ Table 1: Baseline algorithms. The third column is the reward used to train the value function of PPO. $u _ { i }$ and $u _ { c e n }$ are curiosity about individual state $s _ { i }$ and global state $\pmb { s }$ , $\begin{array} { r l } { T _ { 1 } } & { { } = } \end{array}$ $\log \left( p ( s _ { - i } ^ { \prime } | \pmb { s } , \pmb { a } ) / p ( s _ { - i } ^ { \prime } | s _ { - i } , a _ { - i } ) \right)$ , $T _ { 2 } = 1 - p ( s _ { - i } ^ { \prime } | s _ { - i } , a _ { - i } ) / p ( s _ { - i } ^ { \prime } | s , a )$ , and $\begin{array} { r l } { \Delta Q _ { - i } ( s , \pmb { a } ) } & { { } = } \end{array}$ $Q _ { - i } ( s , { \pmb a } ) - Q _ { - i } ( s _ { - i } , a _ { - i } )$ . Social influence (Jaques et al., 2018) and COMA (Foerster et al., 2018) are augmented with curiosity.
166
+
167
+ <table><tr><td></td><td>Alg.</td><td>Reward</td><td>Description</td></tr><tr><td>Ours</td><td>EITI EDTI</td><td>r+ui+βTi r+ui+β(u-i+γTV-i)</td><td>Influence-theoretic influence Decision-theoretic influence</td></tr><tr><td>Other Exploration Methods</td><td>random cen dec cen_control</td><td>r r+ucen r+ui r+ucen</td><td>Pure PPO Decentralized PPO with cen curiosity Decentralized PPO with dec curiosity Centralized PPO with cen curiosity</td></tr><tr><td>Ablations</td><td>r_influence plusV shared_critic Q-Q</td><td>r+ui+βu-i r+ui+βV-i r+ucen r+ui + β△Q-i(s,a)</td><td>Disentangle reward interaction Use other agents’value functions PPO with shared V and cen curiosity EDTI without explicit counterfactual</td></tr><tr><td>Related Works</td><td>social COMA Multi</td><td></td><td>By Jaques et al. (2018) By Foerster et al. (2018) By Iqbal &amp; Sha (2019b)</td></tr></table>
168
+
169
+ Comparing EDTI to Centralized Methods: Different from a centralized method which directly includes value functions of other agents in the optimization objective, (i.e., by setting total reward $\hat { r } _ { i } = r + u _ { i } + \beta ( u _ { - i } + \gamma V _ { - i } )$ , which is called plusV henceforth), the EDTI reward for agent $i$ disentangles its contributions to values of another agents using a counterfactual formulation. This difference is important for quantifying influence because the value of another agent does not just contain the contributions from agent $i$ , but also those of itself and third-party agents. Therefore, EDTI is a kind of intrinsic reward assignment. Our experiments in the next section will compare the performance of plusV against our methods, which verify the importance of the intrinsic reward assignment.
170
+
171
+ # 4 EXPERIMENTAL RESULTS
172
+
173
+ Our experiments aim to answer the following questions: (1) Can EITI and EDTI rewards capture interaction points? If they can, how do these points change throughout exploration? (2) Can exploiting these interaction points facilitate exploration and learning performance? (3) Can EDTI filter out interaction points that are not related to environmental rewards? (4) What if only reward influence between agents are disentangled? We evaluate our approach on a set of multi-agent tasks with sparse rewards based on a discrete version of multi-agent particle world environment (Lowe et al., 2017). PPO (Schulman et al., 2017) is used as the underlying algorithm. For evaluation, all experiments are carried out with 5 different random seeds and results are shown with $9 5 \%$ confidence interval. Demonstrative videos1 are available online.
174
+
175
+ Baselines We compare our methods with various baselines shown in Table 1. In particular, we carry out the following ablation studies: i) r influence disentangles immediate reward influence between agents, (derivation of the associated augmented reward can be found in Appendix B.4. Reward influence in long term is not considered because it inevitably involves transition interactions) ii) PlusV as described in Sec. 3.3. iii) Shared critic uses decentralized PPO agents with shared centralized value function and thus is a cooperative version of MADDPG (Lowe et al., 2017) augmented with intrinsic reward of curiosity. iv) Q-Q is similar to EDTI but without explicit counterfactual formulation, as described in Sec. 3.2. We also note that EITI is an ablation of EDTI which considers transition interactions. PlusV, shared critic, Q-Q, and cen control have access to global or other agents’ value functions during training. When execution, all the methods except cen control only require local state.
176
+
177
+ ![](images/d4cd7361d2c5f14c3d0fb9d6ca0617e77f21d9c42e6d5847123a48086a4188cf.jpg)
178
+ Figure 1: Didactic examples. Left: task Pass. Two agents starting at the upper-left corner are only rewarded when both of them reach the other room through the door, which will open only when at least one of the switches is occupied by one or more agents. Middle: Secret-Room. An extension of Pass with 4 rooms and switches. When the switch 1 is occupied, all the three doors turn open. And the three switches on the right only control the door of its room. The agents need to reach the upper right room to achieve any reward. Right: comparison of our methods with ablations on Pass.
179
+
180
+ We present two didactic examples of multi-agent cooperation tasks with sparse reward to explain how EITI and EDTI work. The first didactic example consists of a $3 0 \times 3 0$ maze with two rooms and a door with two switches (Fig. 1 left). In the optimal strategy, one agent should first step on switch 1 to help the other agent pass the door, and then the agent that has already reached the right half should further go to switch 2 to bring the remaining agent in. There are two pairs of interaction points in this task: (switch 1, door) and (switch 2, door), i.e., transition probability of the agent near door is determined by whether another agent is on one of the switch.
181
+
182
+ Fig. 1-right and Fig. 2-top show the learning curves of our methods and all the baselines, among which EITI, EDTI, r influence, Multi, and centralized control can learn the winning strategy and ours learn much more efficiently. Fig. 2-bottom gives a possible explanation why our methods work. EITI and EDTI rewards successfully highlight the interaction points (before 100 and 2100 updates, respectively). Agents are encouraged to explore these configurations more frequently and thus have better chance to learn the goal strategy. EDTI reward considers the value function of the other agent, so it converges slower than the EITI reward. In contrast, directly adding the other agent’s intrinsic rewards and value functions is noisy (see ”plusV reward”) and confuses the agent because these contain the effect of the other agent’s exploration. As for centralized control, global curiosity encourages agents to try all possible configurations, so it can find environmental rewards in most tasks. However, visiting all configurations without bias renders it inefficient – external rewards begin to dominate the behaviors of agents after 7000 updates even with the help of centralized learning algorithm. Our methods use the same information as centralized exploration but take advantages of agents’ interactions to accelerate exploration.
183
+
184
+ In order to evaluate whether EDTI can help filter out noisy interaction points and accelerate exploration, we conduct experiments in a second didactic task (see Fig. 1 middle). It is also a navigation task in a $2 5 \times 2 5$ maze where agents are rewarded for being in a goal room. However, in this experiment, we consider a case where there are four rooms and the upper right one is attached to reward. This task contains 6 pairs of interaction points (switch 1 with each of the doors, each switch with the door of the same room), but only two of them are related to external rewards, i.e., (switch 1, door 1) and (switch 2, door 1). As Fig. 3-right shows, EITI agents treat three doors equally even after 7400 updates (see Fig. 3 right, 7400 updates, top row). In comparison, although EDTI reward suffers from noise in the beginning, it clearly highlight two pairs of valuable interaction points (see Fig. 3 right, 7400 updates, bottom row) as intrinsic reward diminishes. This can explain why EDTI outperforms EITI (Fig. 3 left).
185
+
186
+ ![](images/481a75fa7afe93608ea74ad7f887a6b4d8d62ed0b0b57a4ab78862de137af13a.jpg)
187
+ Figure 2: Development of performance of our methods compared to baselines and intrinsic reward terms of EITI, EDTI, and plusV over the training period of 9000 PPO updates segmented into three phases. ”Team Reward” shows averaged team reward gained in a episode, with a maximum of 1000. It shows that only EITI, EDTI, and centralized control and Multi can learn the strategy during this stage. ”EITI reward”, ”EDTI reward”, and ”plusV reward” demonstrate the evolving of corresponding intrinsic rewards.
188
+
189
+ ![](images/8b5459f41659ea240e58c5b268e5e06ac9cde7dfc6ca53a266ce8fab093c04dd.jpg)
190
+
191
+ ![](images/ad5d67074689589b545ef750ccb90f18378f9f0c2ee0651d32c85600d59a7136.jpg)
192
+ Figure 3: Left: performance comparison between EDTI and EITI on Secret-Room over 7400 PPO updates. Right: EITI and EDTI terms of two agents after 100, 2900, and 7400 updates.
193
+ Figure 4: Comparison of our methods against ablations for Push-Box, Island, and Large-Island. Comparison with baselines is shown in Fig. 8 in Appendix D.
194
+
195
+ # 4.2 EXPLORATION IN COMPLEX TASKS
196
+
197
+ Next, we evaluate the performance of our methods on more complex tasks. To this end, we use three sparse reward cooperative multi-agent tasks depicted in Fig. 7 of Appendix D and analyzed below. Details of implementation and experiment settings are also described in Appendix D.
198
+
199
+ Push-Box: A $1 5 \times 1 5$ room is populated with 2 agents and 1 box. Agents need to push the box to the wall in 300 environment steps to get a reward of 1000. However, the box is so heavy that only when two agents push it in the same direction at the same time can it be moved a grid. Agents need to coordinate their positions and actions for multiple steps to earn a reward. The purpose of this task is to demonstrate that EITI and EDTI can explore long-term cooperative strategy.
200
+
201
+ Island: This task is a modified version of the classic Stag Hunt game (Peysakhovich & Lerer, 2018) where two agents roam a $1 0 \times 1 0$ island populated with 9 treasures and a random walking beast for 300 environment steps. Agents can collect a treasure by stepping on it to get a team reward of 10 or, by attacking the beast within their attack range, capture it for a reward of 300. The beast would also attack the agents when they are too close. The beast and agent have a maximum energy of 8 and 5 respectively, which will be subtracted by 1 every time attacked. Therefore, an agent is too weak to beat the beast alone and they have to cooperate. In order to learn optimal strategy in this task, one method has to keep exploring after sub-optimal external rewards are found.
202
+
203
+ Large-Island: Similar to Island but with more agents (4), more treasures (16), and a beast with more energy (16) and a higher reward (600) for being caught. This task aims to demonstrate feasibility of our methods in cases with more than 2 agents.
204
+
205
+ Push-Box requires agents to take coordinated actions at certain positions for multiple steps to get rewarded. Therefore, this task is particularly challenging and all the baselines struggle to earn any reward (Fig. 4 left and Fig. 8 left). Our methods are considerably more successful because interaction happens when the box is moved – agents remain unmoved when they push the box alone but will move by a grid if push it together. In this way, EITI and EDTI agents are rewarded intrinsically to move the box and thus are able to quickly find the optimal policy.
206
+
207
+ In the Island task, collecting treasures is a easily-attainable local optimal. However, efficient treasures collecting requires the agents to spread on the island. This leads to a situation where attempting to attack the beast seems a bad choice since it is highly possible that agents will be exposed to the beast’s attack alone. They have to give up profitable spreading strategy and take the risk of being killed to discover that if they attack the beast collectively for several timesteps, they will get much more rewards. Our methods help solve this challenge by giving agents intrinsic incentives to appear together in the attack range of the beast, where they have indirect interactions (health is part of the state and it decreases slower when the two are attacked alternatively). Fig. 9 in Appendix D demonstrates that our methods learn to catch the beast quickly, and thus have better performance (Fig. 8 right).
208
+
209
+ Finally, outperformance of our methods on Large-Island proves that they can successfully handle cases with more than two agents.
210
+
211
+ In summary, both of our methods are able to facilitate effective exploration on all the tasks by exploiting interactions. EITI outperforms EDTI in scenarios where all interaction points align with extrinsic rewards. On other tasks, EDTI performs better than EITI due to its ability to filter out interaction points that can not lead to more values.
212
+
213
+ We also study EDTI with only intrinsic rewards, discussion and results are included in Appendix A.
214
+
215
+ # 5 RELATED WORKS
216
+
217
+ Single-agent exploration achieves conspicuous success recently. Provably efficient methods are proposed, such as upper confidence bound (UCB) (Jaksch et al., 2010; Azar et al., 2017; Jin et al., 2018) and posterior sampling for reinforcement learning (PSRL) (Strens, 2000; Osband et al., 2013; Osband & Van Roy, 2016; Agrawal & Jia, 2017). Given that these methods do not scale well to large or continuous settings, another line of research has been focusing on curiosity-driven exploration (Schmidhuber, 1991; Chentanez et al., 2005; Oudeyer et al., 2007; Barto, 2013; Bellemare et al., 2016; Pathak et al., 2017; Ostrovski et al., 2017), and have shown impressive results (Burda et al., 2019; 2018; Hyoungseok Kim, 2019). In addition, methods based on variational information maximization (Houthooft et al., 2016; Barron et al., 2018) and mutual information (Rubin et al., 2012; Still & Precup, 2012; Salge et al., 2014; Mohamed & Rezende, 2015; Hyoungseok Kim, 2019) have been proposed for single-agent intrinsically motivated exploration.
218
+
219
+ Although multi-agent reinforcement learning (MARL) has been making significant progresses in recent years (Foerster et al., 2018; Lowe et al., 2017; Wen et al., 2019; Iqbal & Sha, 2019a; Sunehag et al., 2018; Son et al., 2019; Rashid et al., 2018), less attention has been drawn to multi-agent exploration. Dimakopoulou & Van Roy (2018) and Dimakopoulou et al. (2018) propose posterior sampling methods for exploration of concurrent reinforcement learning in coverage problems, Bargiacchi et al. (2018) presents a multi-agent upper confidence exploration method for repeated single-stage problems, and Iqbal & Sha (2019b) investigates methods to combine several decentralized curiosity-driven exploration strategies. All these works focus on transition-independent settings. Another Bayesian exploration approach has been proposed for learning in stateless repeated games (Chalkiadakis & Boutilier, 2003). In contrast, this paper focuses on more general multi-agent sequential decision making problems with complex reward dependencies and transition interactions among agents.
220
+
221
+ In the literature of MARL, COMA (Foerster et al., 2018) shares some similarity with our decisiontheoretic EDTI approach in that both of them use the idea of counterfactual formulations. However, they are quite different in terms of definition and optimization: (1) conceptually, EDTI measures the influence of one agent on the value functions of other agents, while COMA quantifies individual contribution to the team value; (2) EDTI is defined on counterfactual Q-value over state-action pairs of other agents given its own state-action pair, while COMA uses the counterfactual Q-value just over its own action without considering state information, which is critical for exploration; (3) we explicitly derive the gradients for optimizing EDTI influence for coordinated exploration in the policy gradient framework, which provides more accurate feedback, while COMA uses the counterfactual Q value as a critic. Another line of relevant works (Oliehoek et al., 2012; de Castro et al., 2019) propose influence-based abstraction to predict influence sources to help local decision making of agents. In contrast, this paper presents two novel approaches that quantify and maximize the influence between agents for enabling coordinated multi-agent exploration.
222
+
223
+ In addition, some previous MARL work has also studied intrinsic rewards. One notably relevant work is Jaques et al. (2018), which models the social influence of one agent on other agents’ policies. In contrast, EITI measures the influence of one agent on the transition dynamics of other agents. Accompanying this distinction, EITI includes states of agents in the calculation of influence while social influence dos not. Apart from that, the optimization methods are also different – we directly derive the gradients of mutual information and incorporate its optimization in the policy gradient framework, while Jaques et al. (2018) adds social influence reward to the immediate environmental reward for training policies. Hughes et al. (2018) proposes an inequality aversion reward for learning in intertemporal social dilemmas. Strouse et al. (2018) uses mutual information between goal and states or actions as an intrinsic reward to train the agent to share or hide their intentions.
224
+
225
+ # 6 CLOSING REMARKS
226
+
227
+ In this paper, we study the multi-agent exploration problem and propose two influence-based methods that exploits the interaction structure. These methods are based on two interaction measures, MI and Value of Interaction (VoI), which respectively measure the amount and value of one agent’s influence on the other agents’ exploration processes. These two measures can be best regraded as exploration bonus distribution. We also propose an optimization method in the policy gradient framework, which enables agents to achieve coordinated exploration in a decentralized manner and optimize team performance.
228
+
229
+ # REFERENCES
230
+
231
+ Shipra Agrawal and Randy Jia. Optimistic posterior sampling for reinforcement learning: worst-case regret bounds. In Advances in Neural Information Processing Systems, pp. 1184–1194, 2017.
232
+
233
+ Mohammad Gheshlaghi Azar, Ian Osband, and Remi Munos. Minimax regret bounds for reinforce- ´ ment learning. In Proceedings of the 34th International Conference on Machine Learning-Volume
234
+
235
+ 70, pp. 263–272. JMLR. org, 2017.
236
+
237
+ Eugenio Bargiacchi, Timothy Verstraeten, Diederik Roijers, Ann Nowe, and Hado Hasselt. Learning ´ to coordinate with coordination graphs in repeated single-stage multi-agent decision problems. In International Conference on Machine Learning, pp. 491–499, 2018.
238
+
239
+ Trevor Barron, Oliver Obst, and Heni Ben Amor. Information maximizing exploration with a latent dynamics model. arXiv preprint arXiv:1804.01238, 2018.
240
+
241
+ Andrew G Barto. Intrinsic motivation and reinforcement learning. In Intrinsically motivated learning in natural and artificial systems, pp. 17–47. Springer, 2013.
242
+
243
+ Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In Advances in Neural Information Processing Systems, pp. 1471–1479, 2016.
244
+
245
+ Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018.
246
+
247
+ Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A Efros. Large-scale study of curiosity-driven learning. International Conference on Learning Representations, 2019.
248
+
249
+ Yongcan Cao, Wenwu Yu, Wei Ren, and Guanrong Chen. An overview of recent progress in the study of distributed multi-agent coordination. IEEE Transactions on Industrial informatics, 9(1): 427–438, 2012.
250
+
251
+ Georgios Chalkiadakis and Craig Boutilier. Coordination in multiagent reinforcement learning: A bayesian approach. In Proceedings of the Second International Joint Conference on Autonomous Agents and Multiagent Systems, AAMAS $^ { \ ' 0 3 }$ , pp. 709–716, New York, NY, USA, 2003. ACM. ISBN 1-58113-683-8. doi: 10.1145/860575.860689. URL http://doi.acm. org/10.1145/860575.860689.
252
+
253
+ Nuttapong Chentanez, Andrew G Barto, and Satinder P Singh. Intrinsically motivated reinforcement learning. In Advances in neural information processing systems, pp. 1281–1288, 2005.
254
+
255
+ Miguel Suau de Castro, Elena Congeduti, Rolf AN Starre, Aleksander Czechowski, and Frans A Oliehoek. Influence-based abstraction in deep reinforcement learning. In Adaptive, learning agents workshop (Vol. 34)., 2019.
256
+
257
+ Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, Yuhuai Wu, and Peter Zhokhov. Openai baselines. https: //github.com/openai/baselines, 2017.
258
+
259
+ Maria Dimakopoulou and Benjamin Van Roy. Coordinated exploration in concurrent reinforcement learning. In International Conference on Machine Learning, pp. 1270–1278, 2018.
260
+
261
+ Maria Dimakopoulou, Ian Osband, and Benjamin Van Roy. Scalable coordinated exploration in concurrent reinforcement learning. In Advances in Neural Information Processing Systems, pp. 4219–4227, 2018.
262
+
263
+ Vladimir Feinberg, Alvin Wan, Ion Stoica, Michael I Jordan, Joseph E Gonzalez, and Sergey Levine. Model-based value estimation for efficient model-free reinforcement learning. arXiv preprint arXiv:1803.00101, 2018.
264
+
265
+ Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic neural networks for hierarchical reinforcement learning. arXiv preprint arXiv:1704.03012, 2017.
266
+
267
+ Jakob Foerster, Ioannis Alexandros Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In Advances in Neural Information Processing Systems, pp. 2137–2145, 2016.
268
+
269
+ Jakob N Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
270
+
271
+ Charles W Fox and Stephen J Roberts. A tutorial on variational bayesian inference. Artificial intelligence review, 38(2):85–95, 2012.
272
+
273
+ 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.
274
+
275
+ Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. In Advances in Neural Information Processing Systems, pp. 1109–1117, 2016.
276
+
277
+ Edward Hughes, Joel Z Leibo, Matthew Phillips, Karl Tuyls, Edgar Duenez-Guzman, Anto- ˜ nio Garc´ıa Castaneda, Iain Dunning, Tina Zhu, Kevin McKee, Raphael Koster, et al. Inequity˜ aversion improves cooperation in intertemporal social dilemmas. In Advances in Neural Information Processing Systems, pp. 3330–3340, 2018.
278
+
279
+ Yeonwoo Jeong Sergey Levine Hyun Oh Song Hyoungseok Kim, Jaekyeom Kim. Emi: Exploration with mutual information. In Proceedings of the 36th International Conference on Machine Learning. JMLR. org, 2019.
280
+
281
+ Shariq Iqbal and Fei Sha. Actor-attention-critic for multi-agent reinforcement learning. In International Conference on Machine Learning, pp. 2961–2970, 2019a.
282
+
283
+ Shariq Iqbal and Fei Sha. Coordinated exploration via intrinsic rewards for multi-agent reinforcement learning. arXiv preprint arXiv:1905.12127, 2019b.
284
+
285
+ Thomas Jaksch, Ronald Ortner, and Peter Auer. Near-optimal regret bounds for reinforcement learning. Journal of Machine Learning Research, 11(Apr):1563–1600, 2010.
286
+
287
+ Natasha Jaques, Angeliki Lazaridou, Edward Hughes, Caglar Gulcehre, Pedro A Ortega, DJ Strouse, Joel Z Leibo, and Nando de Freitas. Intrinsic social motivation via causal influence in multi-agent rl. arXiv preprint arXiv:1810.08647, 2018.
288
+
289
+ Chi Jin, Zeyuan Allen-Zhu, Sebastien Bubeck, and Michael I Jordan. Is q-learning provably efficient? In Advances in Neural Information Processing Systems, pp. 4863–4873, 2018.
290
+
291
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Computer Science, 2014.
292
+
293
+ Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In Advances in Neural Information Processing Systems, pp. 6379–6390, 2017.
294
+
295
+ Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andrew J Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, et al. Learning to navigate in complex environments. arXiv preprint arXiv:1611.03673, 2016.
296
+
297
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
298
+
299
+ Shakir Mohamed and Danilo Jimenez Rezende. Variational information maximisation for intrinsically motivated reinforcement learning. In Advances in neural information processing systems, pp. 2125–2133, 2015.
300
+
301
+ Ann Nowe, Peter Vrancx, and Yann-Micha ´ el De Hauwere. Game theory and multi-agent reinforce- ¨ ment learning. In Reinforcement Learning, pp. 441–470. Springer, 2012.
302
+
303
+ Frans Adriaan Oliehoek, Stefan J Witwicki, and Leslie Pack Kaelbling. Influence-based abstraction for multiagent systems. In Twenty-Sixth AAAI Conference on Artificial Intelligence, 2012.
304
+
305
+ OpenAI. Openai five. https://blog.openai.com/openai-five/, 2018.
306
+
307
+ Ian Osband and Benjamin Van Roy. On lower bounds for regret in reinforcement learning. arXiv preprint arXiv:1608.02732, 2016.
308
+
309
+ Ian Osband, Daniel Russo, and Benjamin Van Roy. (more) efficient reinforcement learning via posterior sampling. In Advances in Neural Information Processing Systems, pp. 3003–3011, 2013.
310
+
311
+ Georg Ostrovski, Marc G Bellemare, Aaron van den Oord, and R ¨ emi Munos. Count-based ex-´ ploration with neural density models. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2721–2730. JMLR. org, 2017.
312
+
313
+ Pierre-Yves Oudeyer and Frederic Kaplan. What is intrinsic motivation? a typology of computational approaches. Frontiers in neurorobotics, 1:6, 2009.
314
+
315
+ 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.
316
+
317
+ Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In International Conference on Machine Learning, pp. 2778–2787, 2017.
318
+
319
+ Deepak Pathak, Parsa Mahmoudieh, Guanghao Luo, Pulkit Agrawal, Dian Chen, Yide Shentu, Evan Shelhamer, Jitendra Malik, Alexei A Efros, and Trevor Darrell. Zero-shot visual imitation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 2050–2053, 2018.
320
+
321
+ Alexander Peysakhovich and Adam Lerer. Prosocial learning agents solve generalized stag hunts better than selfish ones. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 2043–2044. International Foundation for Autonomous Agents and Multiagent Systems, 2018.
322
+
323
+ Tabish Rashid, Mikayel Samvelyan, Christian Schroeder Witt, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. Qmix: Monotonic value function factorisation for deep multi-agent reinforcement learning. In International Conference on Machine Learning, pp. 4292–4301, 2018.
324
+
325
+ Martin Riedmiller, Roland Hafner, Thomas Lampe, Michael Neunert, Jonas Degrave, Tom Van de Wiele, Volodymyr Mnih, Nicolas Heess, and Jost Tobias Springenberg. Learning by playingsolving sparse reward tasks from scratch. arXiv preprint arXiv:1802.10567, 2018.
326
+
327
+ Jonathan Rubin, Ohad Shamir, and Naftali Tishby. Trading value and information in mdps. In Decision Making with Imperfect Decision Makers, pp. 57–74. Springer, 2012.
328
+
329
+ Christoph Salge, Cornelius Glackin, and Daniel Polani. Changing the environment based on empowerment as intrinsic motivation. Entropy, 16(5):2789–2819, 2014.
330
+
331
+ Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015.
332
+
333
+ Jurgen Schmidhuber. A possibility for implementing curiosity and boredom in model-building neu- ¨ ral controllers. In Proc. of the international conference on simulation of adaptive behavior: From animals to animats, pp. 222–227, 1991.
334
+
335
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
336
+
337
+ Kyunghwan Son, Daewoo Kim, Wan Ju Kang, David Earl Hostallero, and Yung Yi. Qtran: Learning to factorize with transformation for cooperative multi-agent reinforcement learning. In International Conference on Machine Learning, pp. 5887–5896, 2019.
338
+
339
+ Susanne Still and Doina Precup. An information-theoretic approach to curiosity-driven reinforcement learning. Theory in Biosciences, 131(3):139–148, 2012.
340
+
341
+ Malcolm Strens. A bayesian framework for reinforcement learning. In ICML, volume 2000, pp. 943–950, 2000.
342
+
343
+ DJ Strouse, Max Kleiman-Weiner, Josh Tenenbaum, Matt Botvinick, and David J Schwab. Learning to share and hide intentions using information regularization. In Advances in Neural Information Processing Systems, pp. 10249–10259, 2018.
344
+
345
+ Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinicius Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z Leibo, Karl Tuyls, et al. Value-decomposition networks for cooperative multi-agent learning based on team reward. In Proceedings of the 17th International Conference on Autonomous Agents and MultiAgent Systems, pp. 2085–2087. International Foundation for Autonomous Agents and Multiagent Systems, 2018.
346
+
347
+ Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems, pp. 1057–1063, 2000.
348
+
349
+ 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.
350
+
351
+ Ying Wen, Yaodong Yang, Rui Luo, Jun Wang, and Wei Pan. Probabilistic recursive reasoning for multi-agent reinforcement learning. In International Conference on Learning Representations, 2019.
352
+
353
+ Yi Wu, Yuxin Wu, Georgia Gkioxari, and Yuandong Tian. Building generalizable agents with a realistic and rich 3d environment. arXiv preprint arXiv:1801.02209, 2018.
354
+
355
+ Yuxin Wu and Yuandong Tian. Training agent for first-person shooter game with actor-critic curriculum learning. ICLR, 2016.
356
+
357
+ Chongjie Zhang and Victor Lesser. Coordinated multi-agent reinforcement learning in networked distributed pomdps. In Twenty-Fifth AAAI Conference on Artificial Intelligence, 2011.
358
+
359
+ # APPENDIX
360
+
361
+ # A INTRINSIC EDTI
362
+
363
+ Value of interaction (VoI) captures both transition and reward influence among agents, and it facilitates coordinated exploration by encouraging interactions. VoI contains influence of both intrinsic and extrinsic rewards. Since single-agent literature has studied purely curiosity-driven learning and gets cutting-edge performance (Burda et al., 2019), it is interesting to investigate the performance of VoI given only intrinsic rewards.
364
+
365
+ Intuitively, intrinsic VoI distributes individual curiosity among team members and facilitates exploration by encouraging agents to help each other to reach under-explored states. Specifically, we use the following objective:
366
+
367
+ $$
368
+ J _ { \theta _ { i } } [ \pi _ { i } | \pi _ { - i } , p _ { 0 } ] \equiv V ^ { e x t , \pi } ( s _ { 0 } ) + V _ { i } ^ { i n t , \pi } ( s _ { 0 } ) + \beta \cdot V o I _ { - i | i } ^ { i n t , \pi } .
369
+ $$
370
+
371
+ The corresponding augmented reward is:
372
+
373
+ $$
374
+ \hat { r } _ { 1 } ^ { t } = r _ { t } + u _ { 1 } ^ { t } + \beta \left[ u _ { 2 } ^ { t } + \gamma \left( 1 - \frac { p ^ { - } ( s _ { 2 } ^ { t + 1 } | s _ { 2 } ^ { t } , a _ { 2 } ^ { t } ) } { p ( s _ { 2 } ^ { t + 1 } | s _ { 1 } ^ { t } , s _ { 2 } ^ { t } , a _ { 1 } ^ { t } , a _ { 2 } ^ { t } ) } \right) V _ { 2 } ^ { i n t , - } ( s _ { 1 } ^ { t + 1 } , s _ { 2 } ^ { t + 1 } ) \right]
375
+ $$
376
+
377
+ We use this method (intrinsic EDTI) to train the agents on Pass, Secret-Room, Push-Box, and Island and show the results in Fig. 5.
378
+
379
+ # B MATHEMATICAL DETAILS
380
+
381
+ # B.1 GRADIENT OF MUTUAL INFORMATION
382
+
383
+ To encourage agents to exert influence on transitions of other agents, we optimize mutual information between agent’s trajectories. In particular, in the following, we show that term 2 in Eq. 6 is always zero.
384
+
385
+ $$
386
+ \begin{array} { r c l } { \tau _ { \mathrm { S } } } & { - } & { \displaystyle \sum _ { \alpha \in \mathbb { Z } _ { h } } \frac { \tau _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } } \\ & { - } & { \displaystyle \sum _ { \alpha \in \mathbb { Z } _ { h } } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } } \\ & { = } & { \displaystyle \sum _ { \alpha \in \mathbb { Z } _ { h } } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } } \\ & { - } & \displaystyle \sum _ { \alpha \in \mathbb { Z } _ { h } } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \frac { \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ { h } ) } { \sigma ( \Delta \alpha _ { h } , \zeta _ { h } ) } \\ & { - } & \displaystyle \sum _ { \alpha \in \mathbb { Z } _ { h } } \frac \epsilon _ { \alpha } ^ { \alpha } ( \Delta \alpha _ { h } , \zeta _ \end{array}
387
+ $$
388
+
389
+ ![](images/5f8718e5e102d7ac4149eae8d4e67da63837b1c9dd7986f23dea24c38b058917.jpg)
390
+ Figure 5: Performance of intrinsic EDTI in comparison with EITI and EDTI on Pass, Secret-Room, Push-Box, and Island.
391
+
392
+ $$
393
+ \begin{array} { r l } { = } & { { } - \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } ^ { * } } p ( s _ { 1 } ^ { * } | s _ { 2 } , a _ { 2 } ) \nabla _ { \theta _ { 1 } } \sum _ { a _ { 1 } ^ { * } } \pi _ { \theta _ { 1 } } ( a _ { 1 } ^ { * } | s _ { 1 } ^ { * } ) } \\ { = } & { { } - \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } ^ { * } } p ( s _ { 1 } ^ { * } | s _ { 2 } , a _ { 2 } ) \nabla _ { \theta _ { 1 } } 1 } \\ { = } & { { } 0 } \end{array}
394
+ $$
395
+
396
+ # B.2 DEFINITION OF Value of Interaction
397
+
398
+ To capture both transition and reward interactions between agents and thereby achieve intrinsic reward distribution, we propose a decision-theoretic measure called Value of Interaction. We start from 2-agent cases and the following theorem gives the definition of $V o I _ { 2 | 1 }$ in the form of an expectation over trajectories, which is especially helpful in the derivation of the EDTI policy gradient update shown Eq. 15.
399
+
400
+ Theorem 1. Value of Interaction of agent 1 on agent 2 is:
401
+
402
+ $$
403
+ V o I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \mathbb { E } _ { \tau } \left[ \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) + \gamma \left( 1 - \frac { p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s , a ) } \right) V _ { 2 } ^ { \pi } ( s ^ { \prime } ) \right] ,
404
+ $$
405
+
406
+ where $\tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } )$ is the counterfactual immediate reward.
407
+
408
+ $V o I _ { 2 | 1 }$ can be defined similarly. To lighten notation in the proof, we define
409
+
410
+ $$
411
+ V _ { 2 } ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) = \sum _ { s _ { 1 } ^ { \prime } } p ( s _ { 1 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } , s _ { 2 } ^ { \prime } ) V _ { 2 } ^ { \pi } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } )
412
+ $$
413
+
414
+ $$
415
+ \begin{array} { c } { { \displaystyle { \tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) = \sum _ { s _ { 1 } ^ { * } , a _ { 1 } ^ { * } } p ^ { \pi } ( s _ { 1 } ^ { * } , a _ { 1 } ^ { * } | s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ( s _ { 1 } ^ { * } , s _ { 2 } , a _ { 1 } ^ { * } , a _ { 2 } ) , } } } \\ { { \displaystyle { V _ { 2 } ^ { \pi , * } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) = \sum _ { s _ { 1 } ^ { * } , a _ { 1 } ^ { * } } p ^ { \pi } ( s _ { 1 } ^ { * } , a _ { 1 } ^ { * } | s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } ^ { \prime } } p ( s _ { 1 } ^ { \prime } | s _ { 1 } ^ { * } , s _ { 2 } , a _ { 1 } ^ { * } , a _ { 2 } , s _ { 2 } ^ { \prime } ) V _ { 2 } ^ { \pi } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } ) . } } } \end{array}
416
+ $$
417
+
418
+ We first prove Lemma 1, which is used in the proof of Theorem 1.
419
+
420
+ # Lemma 1.
421
+
422
+ $$
423
+ \begin{array} { r l r } { { \sum _ { s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } } \atop 0 } p ^ { \pi } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \gamma \sum _ { s _ { 2 } ^ { \prime } } p ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) V _ { 2 } ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } & { ( 3 7 ) } \\ & { = } & { \sum _ { s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } } p ^ { \pi } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \gamma \sum _ { s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } } T ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \cdot \frac { p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) } V _ { 2 } ^ { \pi } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } ) . } \end{array}
424
+ $$
425
+
426
+ Proof.
427
+
428
+ $$
429
+ \begin{array} { r l } & { \quad \sum _ { j = 1 } ^ { N } \frac { \partial ^ { j } } { \partial x _ { j } } g ^ { ( j ) } ( x _ { j + 1 } , y _ { j + 1 } , x _ { j } ) \geq \frac { \gamma _ { j } ^ { j } } { N } g ^ { ( j ) } ( x _ { j + 1 } , y _ { j } , x _ { j } ) < \beta _ { j } ^ { j } < \zeta _ { j } , } \\ { = } & { \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } \left( g ^ { ( j ) } ( x _ { j + 1 } , y _ { j } , x _ { j } ) + \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j } , x _ { j } ) \right) , } \\ { = } & { \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } \left( g ^ { ( j ) } ( x _ { j } , y _ { j } , x _ { j } ) + \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } \right) , } \\ { = } & { \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } \left( g ^ { ( j ) } ( x _ { j } , y _ { j } , x _ { j } ) \right) > \frac { \gamma _ { j } ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j } , x _ { j } ) < \beta _ { j } ^ { j } , } \\ { = } & { \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j + 1 } , x _ { j } ) > \frac { \gamma _ { j } ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j + 1 } , x _ { j } ) < \beta _ { j } ^ { j } , } \\ { = } & { \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j + 1 } , x _ { j } ) > \frac { \gamma _ { j } ^ { j } } { N } g ^ { ( j ) } ( x _ { j } , y _ { j + 1 } , x _ { j } ) , } \\ & \quad \sum _ { j = 1 } ^ { N } \frac { \beta ^ { j } } { N } \left( g ^ { ( j ) } ( x _ { j } , y _ { j + 1 } , x _ { j } ) \right) > \frac { \gamma _ { j } ^ { j } } \end{array}
430
+ $$
431
+
432
+ We now give the proof of Theorem 1:
433
+
434
+ Proof.
435
+
436
+ $$
437
+ \begin{array} { r l } & { V o I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) } \\ { = } & { \underset { s , a , s _ { 2 } \in ( S , A , S _ { 2 } ) } { \sum } p ^ { \pi } ( s , a , s _ { 2 } ^ { \prime } ) \left[ Q _ { 2 } ^ { \pi } ( s , a , s _ { 2 } ^ { \prime } ) - Q _ { 2 | 1 } ^ { \pi , * } ( s _ { 2 } , a _ { 2 } , s _ { 2 } ^ { \prime } ) \right] } \\ { = } & { \underset { s _ { 1 } , s _ { 2 } , a , 1 , a _ { 2 } } { \sum } p ^ { \pi } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \big ( \widetilde { r } _ { 2 } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) - \widetilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) + } \\ & { \underset { s _ { 1 } , s _ { 2 } , a , 1 , a _ { 2 } } { \sum } p ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \big ( \widetilde { V } _ { 2 } ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) - \widetilde { V } _ { 2 } ^ { \pi , * } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) \big ) } \\ & { \overset { } { \underset { s _ { 2 } ^ { \prime } } { \sum } } p ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \big ( \widetilde { V } _ { 2 } ^ { \pi } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) - \widetilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) \big ) } \\ { = } & \underset { s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } } { \sum } p ^ { \pi } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \big ( \widetilde { r } _ { 2 } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \end{array}
438
+ $$
439
+
440
+ $$
441
+ \begin{array} { r l } & { \gamma \displaystyle \sum _ { s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } } T ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) ( 1 - \frac { p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) } ) V _ { 2 } ^ { \pi } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } ) ) \ ( { \bf L e m m a \ 1 } ) } \\ { = } & { \mathbb { E } _ { \tau } \left[ \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ^ { \pi } ( s _ { 2 } , a _ { 2 } ) + \gamma \left( 1 - \frac { p ^ { \pi } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s , a ) } \right) V _ { 2 } ^ { \pi } ( s ^ { \prime } ) \right] . } \end{array}
442
+ $$
443
+
444
+ # B.3 CALCULATING GRADIENT OF VOI
445
+
446
+ In order to optimize $V o I$ with respect to the parameters of agent policy, in Sec. 3.2.1, we propose to use target function and get:
447
+
448
+ $$
449
+ \begin{array} { r l } & { \nabla _ { \theta _ { 1 } } V o I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) \approx \displaystyle \sum _ { s , a \in ( S , A ) } \left( \nabla _ { \theta _ { 1 } } p ^ { \pi } ( s , a ) \right) [ \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) + } \\ & { \qquad \quad \qquad \ \gamma \displaystyle \sum _ { s ^ { \prime } } T ( s ^ { \prime } | s , a ) \left( 1 - \frac { p ^ { - } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) } { p ( s _ { 2 } ^ { \prime } | s , a ) } \right) V _ { 2 } ^ { - } ( s _ { 1 } ^ { \prime } , s _ { 2 } ^ { \prime } ) ] . } \end{array}
450
+ $$
451
+
452
+ We prove that $\begin{array} { r l } { { } } & { { } \sum _ { s , a } \left( \nabla _ { \theta _ { 1 } } p ^ { \pi } ( s , a ) \right) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) } \end{array}$ is $0$ in the following lemma.
453
+
454
+ Lemma 2.
455
+
456
+ $$
457
+ \sum _ { s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } } \left( \nabla _ { \theta _ { 1 } } p ^ { \boldsymbol { \pi } } ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) \right) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) = 0 .
458
+ $$
459
+
460
+ Proof. Similar to the way that policy gradient theorem was proved by Sutton et al. (2000),
461
+
462
+ $$
463
+ \begin{array} { r l } \underset \{ \mathbf { x } _ { h } ^ { 2 } , \mathbf { x } _ { h } ^ { 2 } \geq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf { x } _ { h } ^ { 2 } \leq 0 , \mathbf x \end{array}
464
+ $$
465
+
466
+ $$
467
+ \begin{array} { r l } { = } & { { } \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } , a _ { 1 } } p ^ { \pi } ( s _ { 1 } | s _ { 2 } , a _ { 2 } ) \left( \nabla _ { \theta _ { 1 } } \pi ( a _ { 1 } | s _ { 1 } , s _ { 2 } ) \right) } \\ { = } & { { } \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } } p ^ { \pi } ( s _ { 1 } | s _ { 2 } , a _ { 2 } ) \sum _ { a _ { 1 } } \left( \nabla _ { \theta _ { 1 } } \pi ( a _ { 1 } | s _ { 1 } , s _ { 2 } ) \right) } \\ { = } & { { } \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } } p ^ { \pi } ( s _ { 1 } | s _ { 2 } , a _ { 2 } ) \left( \nabla _ { \theta _ { 1 } } \sum _ { a _ { 1 } } \pi ( a _ { 1 } | s _ { 1 } , s _ { 2 } ) \right) } \\ { = } & { { } \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } } p ^ { \pi } ( s _ { 1 } | s _ { 2 } , a _ { 2 } ) \left( \nabla _ { \theta _ { 1 } } \sum _ { a _ { 1 } } \pi ( a _ { 1 } | s _ { 1 } , s _ { 2 } ) \right) } \\ { = } & { { } \displaystyle \sum _ { s _ { 2 } , a _ { 2 } } p ^ { \pi } ( s _ { 2 } , a _ { 2 } ) \tilde { r } _ { 2 } ^ { - } ( s _ { 2 } , a _ { 2 } ) \sum _ { s _ { 1 } } p ^ { \pi } ( s _ { 1 } | s _ { 2 } , a _ { 2 } ) \left( \nabla _ { \theta _ { 1 } } 1 \right) } \end{array}
468
+ $$
469
+
470
+ # B.4 IMMEDIATE REWARD INFLUENCE
471
+
472
+ Similar to MI and $V o I$ , we can define influence of agent 1 on the immediate rewards of agent 2 as:
473
+
474
+ $$
475
+ R I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \sum _ { s , a \in ( S , A ) } p ^ { \pi } ( s , a ) [ \tilde { r } _ { 2 } ( s , a ) - \tilde { r } _ { 2 } ( s _ { 2 } , a _ { 2 } ) ] .
476
+ $$
477
+
478
+ Use Lemma 2, we can get:
479
+
480
+ $$
481
+ \nabla _ { \theta _ { 1 } } R I _ { 2 | 1 } ^ { \pi } ( S _ { 2 } ^ { \prime } ; S _ { 1 } , A _ { 1 } | S _ { 2 } , A _ { 2 } ) = \sum _ { s , a \in ( S , A ) } \nabla _ { \theta _ { 1 } } ( p ^ { \pi } ( s , a ) ) \tilde { r } _ { 2 } ( s , a ) .
482
+ $$
483
+
484
+ Now we have
485
+
486
+ $$
487
+ \begin{array} { r } { \nabla _ { \boldsymbol { \theta } _ { 1 } } J _ { \boldsymbol { \theta } _ { 1 } } ( t ) \approx \left( \hat { R } _ { 1 } ^ { t } - \hat { V } _ { 1 } ^ { \pi } ( \boldsymbol { s } _ { t } ) \right) \nabla _ { \boldsymbol { \theta } _ { 1 } } \log \pi _ { \boldsymbol { \theta } _ { 1 } } ( a _ { 1 } ^ { t } | \boldsymbol { s } _ { 1 } ^ { t } ) , } \end{array}
488
+ $$
489
+
490
+ where $\hat { V } _ { 1 } ^ { \pi } ( s _ { t } )$ is an augmented value function of $\begin{array} { r } { \hat { R } _ { 1 } ^ { t } = \sum _ { t ^ { \prime } = t } ^ { h } \hat { r } _ { 1 } ^ { t ^ { \prime } } } \end{array}$ and
491
+
492
+ $$
493
+ \hat { r } _ { 1 } ^ { t } = r ^ { t } + u _ { 1 } ^ { t } + \beta u _ { 2 } ^ { t } .
494
+ $$
495
+
496
+ # C ESTIMATION OF CONDITIONAL PROBABILITIES
497
+
498
+ To quantify interdependence among exploration processes of agents, we use mutual information and value of interaction. Calculations of MI and VoI need estimation of $p ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ and $p ( s _ { 2 } ^ { \prime } | s , \mathbf { a } )$ . In practice, we track the empirical frequencies $p _ { e m p } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ and $p _ { e m p } ( s _ { 2 } ^ { \prime } | s , \pmb { a } )$ and substitute them for the corresponding terms in Eq. 8 and 16.
499
+
500
+ Estimating $p _ { e m p } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ and $p _ { e m p } ( s _ { 2 } ^ { \prime } | s , \pmb { a } )$ is one obstacle to the scalability of our method, we now discuss how to solve this problem. When the state and action space is small, we can use hash table to implement Monte Carlo method (MC) for estimating the distributions accurately. In the MC sampling, we count from the samples the state frequencies $\begin{array} { r } { p ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } ) \equiv \frac { N ( s _ { 2 } ^ { \prime } , s _ { 2 } , a _ { 2 } ) } { N ( s _ { 2 } , a _ { 2 } ) } } \end{array}$ and $\begin{array} { r } { p ( s _ { 2 } ^ { \prime } | \pmb { s } , \pmb { a } ) \equiv \frac { N ( s _ { 2 } ^ { \prime } , s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) } { N ( s _ { 1 } , s _ { 2 } , a _ { 1 } , a _ { 2 } ) } } \end{array}$ , where $N ( \cdot )$ is the number of times each state-action pair was visited during the learning process. When the problem space becomes large, MC consumes large memory in practice. As an alternative, we adopt variational inference (Fox & Roberts, 2012) to learn variational distributions $q _ { \xi _ { 1 } } ( s _ { 2 } ^ { \prime } | s _ { 2 } , a _ { 2 } )$ and $q _ { \xi _ { 2 } } ( s _ { 2 } ^ { \prime } | s , \mathbf { a } )$ , parameterized via neural networks with parameters $\xi _ { 1 }$ and $\xi _ { 2 }$ , by optimizing the evidence lower bound. In Fig. 6, we show the performance of EDTI estimated using variational inference and the changing of associated EDTI rewards on Pass during 9000 PPO updates. Variational inference introduces some noise in EDTI rewards estimation and thus requires slightly more steps to learn the true probability and the strategy. However, estimating using MC sampling consumes 1.6G memory to save the hash table with 100M items each agent while variational inference needs a three-layer fully connected network with 74800 parameters occupying about 0.60M memory. This results highlights the feasibility of estimating EITI and EDTI rewards using variational inference in problem with large state-action space.
501
+
502
+ ![](images/e42a743cf675536d9ebc5b6748ee5414965394c6bec6ac5cf94f2b4c2e5dc060.jpg)
503
+ Figure 6: Left: Performance of EDTI (vi) (EDIT estimated using variational inference) compared with EITI and EDTI estimated using MC sampling. Others: Development of EDTI (vi) rewards during exploration process. Top row: EDTI (vi) rewards of agent 1; bottom row: EDTI (vi) rewards of agent 2.
504
+
505
+ Table 2: The scaling weights for different intrinsic reward terms in various tasks. $\beta _ { \mathrm { T } }$ is the weight of term $T _ { 1 }$ (see Table 1). $\beta _ { \mathrm { i n t } }$ and $\beta _ { \mathrm { e x t } }$ are scaling factors to combine $r$ and $u _ { i }$ in $\tilde { r }$ . $u _ { - i }$ in r influence is scaled by $\beta _ { \mathrm { r } }$ while $V _ { - i } ^ { i n t }$ and $V _ { - i } ^ { e x t }$ in plusV are respectively scaled by $\beta _ { \mathrm { i n t } } ^ { \mathrm { p l u s V } }$ and $\beta _ { \mathrm { e x t } } ^ { \mathrm { p l u s V } }$
506
+
507
+ <table><tr><td>Task</td><td>n</td><td>β</td><td>βint</td><td>βext</td><td>β</td><td></td><td>pouV</td></tr><tr><td>Pass</td><td>10.</td><td>10</td><td>1.</td><td>0.1</td><td>1.</td><td>0.1</td><td>0.01</td></tr><tr><td>Secret-Room</td><td>10.</td><td>10</td><td>1.</td><td>0.1</td><td></td><td></td><td>一</td></tr><tr><td>Push-Box</td><td>1.</td><td>100.</td><td>100.</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.01</td></tr><tr><td>Island</td><td>1.</td><td>10</td><td>10.</td><td>0.5</td><td>0.1</td><td>0.1</td><td>0.01</td></tr><tr><td>Large-Island</td><td>1.</td><td>10</td><td>1.</td><td>0.1</td><td>0.1</td><td>0.1</td><td>0.01</td></tr></table>
508
+
509
+ # D IMPLEMENTATION DETAILS
510
+
511
+ D.1 NETWORK ARCHITECTURE, HYPERPARAMETERS, AND INFRASTRUCTURE
512
+
513
+ We base our framework on OpenAI implementation of PPO2 (Dhariwal et al., 2017) and use its default parameters to carry out all the experiments. We train our models on an NVIDIA RTX 2080TI GPU using experience sampled from 32 parallel environments. We use visitation count to calculate the intrinsic reward, for its provable effectiveness (Azar et al., 2017; Jin et al., 2018). For all our methods and baselines, we use $\eta / \sqrt { N ( s ) }$ as the exploration bonus for $N ( s )$ -th visit to state s. Specific values of $\eta$ and scaling weights can be found in Table 2.
514
+
515
+ As for variational inference, the inference network is a 3-layer fully-connected network coupled with a 64-dimensional reparameterization estimator. ReLU is used as the activation function for the first two layers and the sum of negative log-likelihood and negative Evidence Lower Bound is used as loss. We use Adam optimizer (Kingma & Ba, 2014) with learning rate $1 \times 1 0 ^ { - 3 }$ and batchsize 2048. To speed up the learning of variational distributions estimation, we equip the learning with proportional prioritized experience replay (Schaul et al., 2015).
516
+
517
+ # D.2 TASK STRUCTURE
518
+
519
+ In this section, we describe the detailed settings of the experimental tasks.
520
+
521
+ Pass: There are two agents and two switches to open the door in a $3 0 \times 3 0$ grid. Only when at least one of the switches are occupied will the door open. The agents need navigate from left to right and the team reward, which is 1000, is only provided when all agents reach the target zone. Agents can observe the position of another agents.
522
+
523
+ Secret-Room: This is an extension of the Pass task with 4 rooms and 4 switches locating in different rooms. The size of the grid is $2 5 \times 2 5$ . When the left switch is occupied, all the three doors are open. And the three switches in each room on the right only control the door of its room. The agents need to navigate towards the desired room (in light red of Fig. 1 middle) to achieve the extrinsic team reward 1000. Agents can observe the position of the other agents.
524
+
525
+ ![](images/29e288b51665942791b82c324b076195f75706bbdbae718a605f9210149a83bf.jpg)
526
+ Figure 7: Task Push-Box, Island, and Large-Island
527
+
528
+ ![](images/40079d75eb6a27c26c9560c4e85cc342643565f83b6d17c57563be780530b3b9.jpg)
529
+ Figure 8: Comparison of our methods against baselines on Push-Box (left), Island (right).
530
+
531
+ Push-Box: There are two agents and one box in a $1 5 \times 1 5$ grid. Agents need to push the box to the wall. However, the box is so heavy that only when two agents push it in the same direction at the same time can it be moved a grid. The only team reward, 1000, is given when the box is placed right against the wall. Agents can observe the coordinates of their teammate and the location of the box.
532
+
533
+ Island: A group of two agents are hunting for treasure on an island. However, a random walking beast may attack the agents when they are too close. The agents can also attack the beast within their attack range. This hurt doubles when more than one agent attack at the same time. Each agent has a maximum health of 5 and will lose $1 / n$ health per step when there are $n$ agents within the attack range of the beast. Island is a modified version of the classic coordination scenario Stag-Hunt with local optimal, because finding each treasure (9 in total) will trigger a team reward of 10 but catching the beast gives a higher team reward of 300. Agents can observe the position and health of each other, and the coordinates of the beast. Fig. 9 shows the development of the probability of catching the beast and the averaged number of treasures found in an episode during 9000 PPO updates.
534
+
535
+ Large-Island: Settings are similar to that of Island but with more agents (4), more treasures (16), and a beast with more energy (16) and a higher reward (600) for being caught.
536
+
537
+ The horizon of one episode is set to 300 timesteps in all these tasks.
538
+
539
+ # E COMPARISON WITH SINGLE-AGENT EXPLORATION METHODS
540
+
541
+ In this paper, we study the exploration problem in multi-agent settings from a decentralized perspective. Alternatively, exploration can be carried out in a centralized manner – treating agents as a joint one and using single-agent exploration algorithms. In this section, we compare our methods with centralized exploration strategies using RND (Burda et al., 2018) and EMI (Hyoungseok Kim, 2019), which are among the most cutting-edge exploration algorithms driven by curiosity and based on mutual information, respectively. We use codes published by their authors and carry out a modest grid search over hyperparameters. For RND, we search intrinsic reward coefficient in the range of [0.005, 1.0] and extrinsic reward coefficient in range [0.05, 2.0]. For EMI, we test difference combinations of loss weights. Results averaged over four random seeds with the best found parameters are shown below.
542
+
543
+ ![](images/826ff5810bdd8edbe24f0c390152e5d05618e7df1bd358fc3bde3e853b230b3a.jpg)
544
+ Figure 9: Comparison of our methods against baselines and ablations on Island in terms of the probability of catching the beast and the averaged treasures collected in an episode.
545
+
546
+ ![](images/a2cf21a017a7442ca8047fa34dd882ebd7696cb7188570c59f28541e9c041b95.jpg)
547
+ Figure 10: Comparison of our methods against centralized single-agent exploration algorithms on Pass (left), Secret-Room (middle), and Push-Box (right).
548
+
549
+ Performance comparisons on problems of Pass, Secret-Room, and Push-Box are illustrated in Fig. 10. We can observe that our methods significantly outperform centralized exploration strategies using RND or EMI. To better understand this observation, we plot visitation heatmaps over time for RND and EMI, respectively, in Fig. 11 and 12.
550
+
551
+ Fig. 11 shows visitation heatmaps of RND on the Pass problem. From Fig. 11 (b), we can see that RND seems finding good policies for agents to pass the door in the first 4671 updates. However, agents’ policies seem to collapse quickly after that and their visits scatter around rooms again, which explains its learning curve in Fig. 10. From the evolution of its visitation heatmaps, we hypothesize that after visiting the center of the room for many times, agents’ curiosity models overfit on a particular set of states and they start to be curious about the relatively unfamiliar transition dynamics around the wall. As the result, the RND intrinsic reward drags the agents to the walls, as shown in Fig. 11(c) and (d), and their performance quickly drops within several updates (i.e., update 4671- 4677 shown by Fig. 11(b-d)). After a while, agents then leave from the walls and visit around in the room again, as shown in Fig. 11(e). The whole exploration process repeated. Similar behaviors are also observed on the Secret-Room problem.
552
+
553
+ ![](images/159cb137c5e51c6804ade198a624d21bf353f27b134c8bc574e46dd663b6d5a9.jpg)
554
+ Figure 11: Visitation heatmap of RND agents on Pass of most recent $1 k$ episodes. The brighter the yellow color, the higher the visitation frequency. Top: agent 1, bottom: agent 2.
555
+
556
+ ![](images/2d1ff41d473c11e3c2c9ff838b320e4304721e71938ebbb5d9ca2d7c40dfcbbf.jpg)
557
+ Figure 12: Visitation heatmap in most recent $1 k$ episodes of EMI agents on Pass. The brighter the yellow color, the higher the visitation frequency. Top: agent 1, bottom: agent 2.
558
+
559
+ We also analyze the exploration behaviors of EMI agents on Pass, as illustrated by visitation heatmaps in Fig. 12. EMI tends to explore the state-action pairs where the transition dynamics is relatively complex, such as the edges and corners of the room (Fig. 12(a-c)). For problems where these state-action pairs do not lead to goals, EMI is not very effective. As the (centralized) transition dynamics of the Pass problem is relatively simple, EMI intrinsic reward quickly diminishes, which results in the behaviors of agents keeping unchanged after 500 updates (Fig. 12(d-e)).
560
+
561
+ In summary, centralized single-agent exploration methods encode some heuristics to facilitate exploration, but they typically do not place a great emphasis on interactions among agents and are thus not very efficient for multi-agent exploration with sparse interactions.
parse/train/BJgy96EYvr/BJgy96EYvr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H113pWZRb/H113pWZRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H113pWZRb/H113pWZRb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1VGkIxRZ/H1VGkIxRZ.md ADDED
@@ -0,0 +1,504 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ENHANCING THE RELIABILITY OF OUT-OF-DISTRIBUTION IMAGE DETECTION IN NEURAL NETWORKS
2
+
3
+ Shiyu Liang Coordinated Science Lab, Department of ECE University of Illinois at Urbana-Champaign sliang26@illinois.edu
4
+
5
+ # R. Srikant
6
+
7
+ Coordinated Science Lab, Department of ECE University of Illinois at Urbana-Champaign rsrikant@illinois.edu
8
+
9
+ # ABSTRACT
10
+
11
+ We consider the problem of detecting out-of-distribution images in neural networks. We propose ODIN, a simple and effective method that does not require any change to a pre-trained neural network. Our method is based on the observation that using temperature scaling and adding small perturbations to the input can separate the softmax score distributions between in- and out-of-distribution images, allowing for more effective detection. We show in a series of experiments that ODIN is compatible with diverse network architectures and datasets. It consistently outperforms the baseline approach (Hendrycks & Gimpel, 2017) by a large margin, establishing a new state-of-the-art performance on this task. For example, ODIN reduces the false positive rate from the baseline $3 4 . 7 \%$ to $4 . 3 \%$ on the DenseNet (applied to CIFAR-10 and Tiny-ImageNet) when the true positive rate is $9 5 \%$ .
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Modern neural networks are known to generalize well when the training and testing data are sampled from the same distribution (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016; Cho et al., 2014; Zhang et al., 2017). However, when deploying neural networks in real-world applications, there is often very little control over the testing data distribution. Recent works have shown that neural networks tend to make high confidence predictions even for completely unrecognizable (Nguyen et al., 2015) or irrelevant inputs (Hendrycks & Gimpel, 2017; Szegedy et al., 2014; Moosavi-Dezfooli et al., 2017). It has been well documented (Amodei et al., 2016) that it is important for classifiers to be aware of uncertainty when shown new kinds of inputs, i.e., out-ofdistribution examples. Therefore, being able to accurately detect out-of-distribution examples can be practically important for visual recognition tasks (Krizhevsky et al., 2012; Farabet et al., 2013; Ji et al., 2013).
16
+
17
+ A seemingly straightforward approach of detecting out-of-distribution images is to enlarge the training set of both in- and out-of-distribution examples. However, the number of out-of-distribution examples can be infinitely many, making the re-training approach computationally expensive and intractable. Moreover, to ensure that a neural network accurately classifies in-distribution samples into correct classes while correctly detecting out-of-distribution samples, one might need to employ exceedingly large neural network architectures, which further complicates the training process.
18
+
19
+ Hendrycks & Gimpel (2017) proposed a baseline method to detect out-of-distribution examples without further re-training networks. The method is based on an observation that a well-trained neural network tends to assign higher softmax scores to in-distribution examples than out-of-distribution examples. In this paper, we go further. We observe that after using temperature scaling in the softmax function (Hinton et al., 2015; Pereyra et al., 2017) and adding small controlled perturbations to inputs, the softmax score gap between in - and out-of-distribution examples is further enlarged. We will show that the combination of these two techniques (temperature scaling and input perturbation) can lead to better detection performance. For example, provided with a pre-trained DenseNet (Huang et al., 2016) on CIFAR-10 dataset (positive samples), we test against images from TinyImageNet dataset (negative samples). Our method reduces the False Positive Rate (FPR), i.e., the fraction of misclassified out-of-distribution samples, from $3 4 . 7 \%$ to $4 . 3 \%$ , when $9 5 \%$ of in-distribution images are correctly classified. We summarize the main contributions of this paper as the following:
20
+
21
+ • We propose a simple and effective method, ODIN (Out-of-DIstribution detector for Neural networks), for detecting out-of-distribution examples in neural networks. Our method does not require re-training the neural network and is easily implementable on any modern neural architecture. • We test ODIN on state-of-the-art network architectures (e.g., DenseNet (Huang et al., 2016) and Wide ResNet (Zagoruyko & Komodakis, 2016)) under a diverse set of in- and out-distribution dataset pairs. We show ODIN can significantly improve the detection performance, and consistently outperforms the state-of-the-art method (Hendrycks & Gimpel, 2017) by a large margin. • We empirically analyze how parameter settings affect the performance, and further provide simple analysis that provides some intuition behind our method.
22
+
23
+ The outline of this paper is as follows. In Section 2, we present the necessary definitions and the problem statement. In Section 3, we introduce ODIN and present performance results in Section 4. We experimentally analyze the proposed method and provide some justification for our method in Section 5. We summarize the related works and future directions in Section 6 and conclude the paper in Section 7.
24
+
25
+ # 2 PROBLEM STATEMENT
26
+
27
+ In this paper, we consider the problem of distinguishing in- and out-of-distribution images on a pretrained neural network. Let $P _ { X }$ and $Q _ { X }$ denote two distinct data distributions defined on the image space $\mathcal { X }$ . Assume that a neural network $f$ is trained on a dataset drawn from the distribution $P _ { X }$ . Thus, we call $P _ { X }$ the in-distribution and $Q _ { X }$ the out-distribution, respectively. In testing, we draw new images from a mixture distribution $\mathbb { P } _ { X \times Z }$ defined on $\mathcal { X } \times \{ 0 , 1 \}$ , where the conditional probability distributions $\mathbb { P } _ { X | Z = 0 } = P _ { X }$ and $\mathbb { P } _ { X | Z = 1 } = Q _ { X }$ denote in- and out-distribution respectively. Now we focus on the following problem: Given an image $\boldsymbol { X }$ drawn from the mixture distribution $\mathbb { P } _ { X \times Z }$ can we distinguish whether the image is from in-distribution $P _ { X }$ or not?
28
+
29
+ In this paper, we focus on detecting out-of-distribution images. However, it is equally important to correctly classify an image into the right class if it is an in-distribution image. But this can be easily done: once it has been detected that an image is in-distribution, we can simply use the original image and run it through the neural network to classify it. Thus, we do not change the predictions of the neural network for in-distribution images and only focus on improving the detection performance for out-of-distribution images.
30
+
31
+ # 3 ODIN: OUT-OF-DISTRIBUTION DETECTOR
32
+
33
+ In this section, we present our method, ODIN, for detecting out-of-distribution samples. The detector is built on two components: temperature scaling and input preprocessing. We describe the details of both components below.
34
+
35
+ Temperature Scaling. Assume that the neural network $\pmb { f } = ( f _ { 1 } , . . . , f _ { N } )$ is trained to classify $N$ classes. For each input $_ { \textbf { \em x } }$ , the neural network assigns a label ${ \hat { y } } ( \mathbf { x } ) = \arg \operatorname* { m a x } _ { i } S _ { i } ( \mathbf { x } ; T )$ by computing the softmax output for each class. Specifically,
36
+
37
+ $$
38
+ S _ { i } ( { \pmb x } ; T ) = \frac { \exp \left( f _ { i } ( { \pmb x } ) / T \right) } { \sum _ { j = 1 } ^ { N } \exp \left( f _ { j } ( { \pmb x } ) / T \right) } ,
39
+ $$
40
+
41
+ where $T \in \mathbb { R } ^ { + }$ is the temperature scaling parameter and set to 1 during the training. For a given input $_ { \textbf { \em x } }$ , we call the maximum softmax probability, i.e., $S _ { \hat { y } } ( \pmb { x } ; T ) = \operatorname* { m a x } _ { i } S _ { i } ( \pmb { x } ; T )$ the softmax score. In this paper, we use notations $S _ { \hat { y } } ( \pmb { x } ; T )$ and $S ( \pmb { x } ; T )$ interchangeably. Prior works have established the use of temperature scaling to distill the knowledge in neural networks (Hinton et al., 2015) and calibrate the prediction confidence in classification tasks (Guo et al., 2017). As we shall see later, a good manipulation of temperature $T$ can push the softmax scores of in- and out-of-distribution images further apart from each other, making the out-of-distribution images distinguishable.
42
+
43
+ Input Preprocessing. Before feeding the image $_ { \textbf { \em x } }$ into the neural network, we preprocess the input by adding small perturbations to it. The preprocessed image is given by
44
+
45
+ $$
46
+ \tilde { \pmb { x } } = \pmb { x } - \varepsilon \mathrm { s i g n } ( - \nabla _ { \pmb { x } } \log S _ { \hat { \pmb { y } } } ( \pmb { x } ; T ) ) ,
47
+ $$
48
+
49
+ where the parameter $\varepsilon$ can be interpreted as the perturbation magnitude. The method is inspired by the idea in the reference (Goodfellow et al., 2015), where small perturbations are added to decrease the softmax score for the true label and force the neural network to make a wrong prediction. Here, our goal and setting are rather different: we aim to increase the softmax score of any given input, without the need for a class label at all. As we shall see later, the perturbation can have stronger effect on the in- distribution images than that on out-of-distribution images, making them more separable. Note that the perturbations can be easily computed by back-propagating the gradient of the cross-entropy loss w.r.t the input.
50
+
51
+ Out-of-distribution Detector. The proposed approach works as follows. For each image $_ { \textbf { \em x } }$ , we first calculate the preprocessed image $\tilde { \pmb x }$ according to the equation (2). Next, we feed the preprocessed image $\tilde { \pmb x }$ into the neural network, calculate its softmax score $S ( \tilde { \mathbf { } x } ; T )$ and compare the score to the threshold $\delta$ . We say that the image $_ { \textbf { \em x } }$ is an in-distribution example if the softmax score is above the threshold and that the image $_ { \textbf { \em x } }$ is an out-of-distribution example, otherwise. Therefore, the out-of-distribution detector is given by
52
+
53
+ $$
54
+ \begin{array} { r } { \overline { { g ( { \pmb x } ; \delta , T , \varepsilon ) } } = \displaystyle \left. \begin{array} { l l } { 1 } & { \mathrm { i f } \mathrm { m a x } _ { i } p ( \tilde { { \pmb x } } ; T ) \leq \delta , } \\ { 0 } & { \mathrm { i f } \mathrm { m a x } _ { i } p ( \tilde { { \pmb x } } ; T ) > \delta . } \end{array} \right. } \end{array}
55
+ $$
56
+
57
+ The parameters $T , \varepsilon$ and $\delta$ are chosen so that the true positive rate (i.e., the fraction of in-distribution images correctly classified as in-distribution images) under some out-of-distribution image data set is $9 \hat { 5 } \%$ . (The choice of the out-of-distribution images to tune the parameters $T , \varepsilon$ and $\delta$ appears to be unimportant, as demonstrated in the appendix H.) Having chosen the parameters as above, we evaluate the performance of our algorithm using various metrics in the next section.
58
+
59
+ # 4 EXPERIMENTS
60
+
61
+ In this section, we demonstrate the effectiveness of ODIN on several computer vision benchmark datasets. We run all experiments with PyTorch1 and we will release the code to reproduce all experimental results2.
62
+
63
+ # 4.1 TRAINING SETUP
64
+
65
+ Architectures and training configurations. We adopt two state-of-the-art neural network architectures, including DenseNet (Huang et al., 2016) and Wide ResNet (Zagoruyko & Komodakis, 2016). For DenseNet, our model follows the same setup as in (Huang et al., 2016), with depth $L = 1 0 0$ , growth rate $k = 1 2$ (Dense-BC) and dropout rate 0. In addition, we evaluate the method on a Wide ResNet, with depth 28, width 10 (WRN-28-10) and dropout rate 0. Furthermore, in Appendix A.1, we provide additional experimental results on another Wide ResNet with depth 40, width 4 (WRN-40-4). The hyper-parameters of neural networks are set identical to the original Wide ResNet (Zagoruyko & Komodakis, 2016) and DenseNet (Huang et al., 2016) implementations. All neural networks are trained with stochastic gradient descent with Nesterov momentum (Duchi et al., 2011; Kingma & Ba, 2014). Specifically, we train Dense-BC for 300 epochs with batch size 64 and momentum 0.9; and Wide ResNet for 200 epochs with batch size 128 and momentum 0.9. The learning rate starts at 0.1, and is dropped by a factor of 10 at $5 0 \%$ and $7 5 \%$ of the training progress, respectively.
66
+
67
+ Accuracy. Each neural network architecture is trained on CIFAR-10 (C-10) and CIFAR-100 (C-100) datasets (Krizhevsky & Hinton, 2009), respectively. CIFAR-10 and CIFAR-100 images are drawn from 10 and 100 classes, respectively. Both datasets consist of
68
+
69
+ Table 1: Test error rates on CIFAR-10 and CIFAR-100 datasets.
70
+
71
+ <table><tr><td>Architecture</td><td>C-10</td><td>C-100</td></tr><tr><td>Dense-BC</td><td>4.81</td><td>22.37</td></tr><tr><td>WRN-28-10</td><td>3.71</td><td>19.86</td></tr></table>
72
+
73
+ 50,000 training images and 10,000 test images. The test error on CIFAR datasets are summarized in Table 1.
74
+
75
+ # 4.2 OUT-OF-DISTRIBUTION DATASETS
76
+
77
+ At test time, the test images from CIFAR-10 (CIFAR-100) datasets can be viewed as the in-distribution (positive) examples. For out-of-distribution (negative) examples, we follow the setting in (Hendrycks & Gimpel, 2017) and test on several different natural image datasets and synthetic noise datasets. All the datasets considered are listed below.
78
+
79
+ (1) TinyImageNet. The Tiny ImageNet dataset3 consists of a subset of ImageNet images (Deng et al., 2009). It contains 10,000 test images from 200 different classes. We construct two datasets, TinyImageNet (crop) and TinyImageNet (resize), by either randomly cropping image patches of size $3 2 \times 3 2$ or downsampling each image to size $3 2 \times 3 2$ .
80
+ (2) LSUN. The Large-scale Scene UNderstanding dataset (LSUN) has a testing set of 10,000 images of 10 different scenes (Yu et al., 2015). Similar to TinyImageNet, we construct two datasets, LSUN (crop) and LSUN (resize), by randomly cropping and downsampling the LSUN testing set, respectively.
81
+ (3) iSUN. The iSUN (Xu et al., 2015) consists of a subset of SUN images. We include the entire collection of 8925 images in iSUN and downsample each image to size 32 by 32.
82
+ (4) Gaussian Noise. The synthetic Gaussian noise dataset consists of 10,000 random 2D Gaussian noise images, where each RGB value of every pixel is sampled from an i.i.d Gaussian distribution with mean 0.5 and unit variance. We further clip each pixel value into the range $[ 0 , 1 ]$ .
83
+ (5) Uniform Noise. The synthetic uniform noise dataset consists of 10,000 images where each RGB value of every pixel is independently and identically sampled from a uniform distribution on $[ 0 , 1 ]$ .
84
+
85
+ # 4.3 EVALUATION METRICS
86
+
87
+ We adopt the following four different metrics to measure the effectiveness of a neural network in distinguishing in- and out-of-distribution images.
88
+
89
+ (1) FPR at $9 5 \%$ TPR can be interpreted as the probability that a negative (out-of-distribution) example is misclassified as positive (in-distribution) when the true positive rate (TPR) is as high as $9 5 \%$ . True positive rate can be computed by $\mathrm { T P R } = \mathrm { T P } / \left( \mathrm { T P } { + } \mathrm { F N } \right)$ , where TP and FN denote true positives and false negatives respectively. The false positive rate (FPR) can be computed by $\mathrm { F P R = }$ FP / $\left( \mathrm { F P + T N } \right)$ , where FP and TN denote false positives and true negatives respectively.
90
+ (2) Detection Error, i.e., $P _ { e }$ measures the misclassification probability when TPR is $9 5 \%$ . The definition of $P _ { e }$ is given by $P _ { e } = 0 . 5 ( 1 - \mathrm { T P R } ) + 0 . 5 \mathrm { F P R }$ , where we assume that both positive and negative examples have the equal probability of appearing in the test set.
91
+ (3) AUROC is the Area Under the Receiver Operating Characteristic curve, which is also a thresholdindependent metric (Davis & Goadrich, 2006). The ROC curve depicts the relationship between TPR and FPR. The AUROC can be interpreted as the probability that a positive example is assigned a higher detection score than a negative example (Fawcett, 2006). A perfect detector corresponds to an AUROC score of $1 0 0 \%$ .
92
+ (4) AUPR is the Area under the Precision-Recall curve, which is another threshold independent metric (Manning et al., 1999; Saito & Rehmsmeier, 2015). The PR curve is a graph showing the precision $\ c =$ TP/ $\mathrm { T P + F P ) }$ and recall=TP/ $\mathrm { \mathrm { T P } } { + } \mathrm { F N } )$ against each other. The metric AUPR-In and AUPR-Out in Table 2 denote the area under the precision-recall curve where in-distribution and out-of-distribution images are specified as positives, respectively.
93
+
94
+ # 4.4 EXPERIMENTAL RESULTS
95
+
96
+ Comparison with baseline. In Figure 1, we show the ROC curves when DenseNet-BC-100 is evaluated on CIFAR-10 (positive) images against TinyImageNet (negative) test examples. The red curve corresponds to the ROC curve when using baseline method (Hendrycks & Gimpel, 2017), whereas the blue curve corresponds to our method with temperature $T = 1 0 0 0$ and perturbation magnitude $\varepsilon = 0 . 0 0 1 2$ . We observe a strikingly large gap between the blue and red ROC curves. For example, when $\mathrm { T P R } { = } 9 5 \%$ , the FPR can be reduced from $3 4 \%$ to $4 . 2 \%$ by using our approach.
97
+
98
+ Table 2: Distinguishing in- and out-of-distribution test set data for image classification. All values are percentages. $\uparrow$ indicates larger value is better, and $\downarrow$ indicates lower value is better. All parameter settings are shown in Appendix A.2. Additional results on WRN-40-4 and MNIST dataset are reported in Appendix A.1.
99
+
100
+ <table><tr><td>dataset</td><td>Out-of-distribution</td><td>FPR (95% TPR) √</td><td>Detection Error √</td><td>AUROC 个</td><td>AUPR In</td><td>AUPR Out</td></tr><tr><td rowspan="7">Dense-BC CIFAR-10</td><td></td><td colspan="3">Baseline (Hendrycks &amp; Gimpel,2017) /ODIN</td><td>→</td><td>→</td></tr><tr><td>TinyImageNet (crop)</td><td>34.7/4.3</td><td>19.9/4.7</td><td>95.3/99.1</td><td>96.4/99.1</td><td>93.8/99.1</td></tr><tr><td>TinyImageNet (resize)</td><td>40.8/7.5</td><td>22.9/6.3</td><td>94.1/98.5</td><td>95.1/98.6</td><td>92.4/98.5</td></tr><tr><td>LSUN (crop)</td><td>39.3/8.7</td><td>22.2/6.9</td><td>94.8/98.2</td><td>96.0/98.5</td><td>93.1/97.8</td></tr><tr><td>LSUN (resize)</td><td>33.6/3.8</td><td>19.3/4.4</td><td>95.4/99.2</td><td>96.4/99.3</td><td>94.0/99.2</td></tr><tr><td>iSUN</td><td>37.2/6.3</td><td>21.1/5.7</td><td>94.8/98.8</td><td>95.9/98.9</td><td>93.1/98.8</td></tr><tr><td>Uniform</td><td>23.5/0.0</td><td>14.3/2.5</td><td>96.5/99.9</td><td>97.8/100.0</td><td>93.0/99.9</td></tr><tr><td rowspan="7">Dense-BC CIFAR-100</td><td>Gaussian</td><td>12.3/0.0</td><td>8.7/2.5</td><td>97.5/100.0</td><td>98.3/100.0</td><td>95.9/100.0</td></tr><tr><td>TinyImageNet (crop)</td><td>67.8/17.3</td><td>36.4/11.2</td><td>83.0/97.1</td><td>85.3/97.4</td><td>80.8/96.8</td></tr><tr><td>TinyImageNet (resize)</td><td>82.2/44.3</td><td>43.6/24.6</td><td>70.4/90.7</td><td>71.4/91.4</td><td>68.6/90.1</td></tr><tr><td>LSUN (crop)</td><td>69.4/17.6</td><td>37.2/11.3</td><td>83.7/96.8</td><td>86.2/97.1</td><td>80.9/96.5</td></tr><tr><td>LSUN (resize)</td><td>83.3/44.0</td><td>44.1/24.5</td><td>70.6/91.5</td><td>72.5/92.4</td><td>68.0/90.6</td></tr><tr><td>iSUN</td><td>84.8/49.5</td><td>44.7/27.2</td><td>69.9/90.1</td><td>71.9/91.1</td><td>67.0/88.9</td></tr><tr><td>Uniform Gaussian</td><td>88.3/0.5 95.4/0.2</td><td>46.6/2.8</td><td>83.2/99.5</td><td>88.1/99.6</td><td>73.1/99.0</td></tr><tr><td rowspan="7">WRN-28-10 CIFAR-10</td><td></td><td></td><td>50.2/2.6</td><td>81.8/99.6</td><td>87.6/99.7</td><td>70.1/99.1</td></tr><tr><td>TinyImageNet (crop) TinyImageNet (resize)</td><td>38.9/23.4</td><td>21.9/14.2</td><td>92.9/94.2</td><td>92.5/92.8</td><td>91.9/94.7</td></tr><tr><td></td><td>45.6/25.5</td><td>25.3/15.2</td><td>91.0/92.1</td><td>89.7/89.0</td><td>89.9/93.6</td></tr><tr><td>LSUN (crop)</td><td>35.0/21.8</td><td>20.0/13.4</td><td>94.5/95.9</td><td>95.1/95.8</td><td>93.1/95.5</td></tr><tr><td>LSUN (resize)</td><td>35.0/17.6</td><td>20.0/11.3</td><td>93.9/95.4</td><td>93.8/93.8</td><td>92.8/96.1</td></tr><tr><td>iSUN</td><td>40.6/21.3</td><td>22.8/13.2</td><td>92.5/93.7</td><td>91.7/91.2</td><td>91.5/94.9</td></tr><tr><td>Uniform Gaussian</td><td>1.6/0.0 0.3/0.0</td><td>3.3/2.5</td><td>99.2/100.0</td><td>99.3/100.0</td><td>98.9/100.0</td></tr><tr><td rowspan="7">WRN-28-10 CIFAR-100</td><td></td><td></td><td>2.6/2.5</td><td>99.5/100.0</td><td>99.6/100.0</td><td>99.3/100.0</td></tr><tr><td>TinyImageNet (crop)</td><td>66.6/43.9</td><td>35.8/24.4</td><td>82.0/90.8</td><td>83.3/91.4</td><td>80.2/90.0</td></tr><tr><td>TinyImageNet (resize)</td><td>79.2/55.9</td><td>42.1/30.4</td><td>72.2/84.0</td><td>70.4/82.8</td><td>70.8/84.4</td></tr><tr><td>LSUN (crop)</td><td>74.0/39.6</td><td>39.5/22.3</td><td>80.3/92.0</td><td>83.4/92.4</td><td>77.0/91.6</td></tr><tr><td>LSUN (resize)</td><td>82.2/56.5</td><td>43.6/30.8</td><td>73.9/86.0</td><td>75.7/86.2</td><td>70.1/84.9</td></tr><tr><td>iSUN</td><td>82.7/57.3</td><td>43.9/31.1</td><td>72.8/85.6</td><td>74.2/85.9</td><td>69.2/84.8</td></tr><tr><td>Uniform Gaussian</td><td>98.2/0.1 99.2/1.0</td><td>51.6/2.5 52.1/3.0</td><td>84.1/99.1 84.3/98.5</td><td>89.9/99.4 90.2/99.1</td><td>71.0/97.5 70.9/95.9</td></tr></table>
101
+
102
+ Choosing parameters. For each out-of-distribution dataset, we randomly hold out 1,000 images for tuning the parameters $T$ and $\varepsilon$ . For temperature $T$ , we select among 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000; and for perturbation magnitude $\varepsilon$ we choose from 21 evenly spaced numbers starting from 0 and ending at 0.004. The optimal parameters are chosen to minimize the FPR at TPR $9 5 \%$ on the holdout set. We evaluate the our approach on the remaining test images. All parameter settings are reported in the Appendix A. We provide additional details on the effect of parameters in Section 5.
103
+
104
+ Main results. The main results are summarized in Table 2. For each in- and out-of-distribution dataset pair, we report both the performance of the baseline (Hendrycks & Gimpel, 2017) and our approach using temperature scaling and input preprocessing. In Table 2, we observe improved performance across all neural architectures and all dataset pairs. Noticeably, our method consistently outperforms the baseline by a large margin when measured by FPR at $9 5 \%$ TPR and detection error.
105
+
106
+ ![](images/d84810ff40d5d49d8e9ca22e56b3cf747848bafef569d357b8658fb90c8b775c.jpg)
107
+ Figure 1: (a) ROC curves of baseline (red) and our method (blue) on DenseNet-BC-100 network, where CIFAR-10 and TinyImageNet (crop) are in- and out-of-distribution dataset, respectively.
108
+
109
+ ![](images/c6f305faa3915e41faab2650f74a706dbf8ab8bb85d214e3b0dc67dfad04ad27.jpg)
110
+ Figure 2: (a)-(d) Performance of our method vs. MMD between in- and out-of-distribution datasets. Neural networks are trained on CIFAR-100 and CIFAR-80, respectively. The out-of-distribution datasets are 1: LSUN (cop), 2: TinyImageNet (crop), 3: LSUN (resize), 4: is iSUN (resize), 5: TinyImageNet (resize) and 6: CIFAR-20.
111
+
112
+ # 4.5 EXTENSIONS
113
+
114
+ In this subsection, we analyze how the statistical distance be
115
+ tween in- and out-of-distribution natural image dataset affects the detection performance of the proposed method.
116
+
117
+ Data distribution distance vs. Detection performance. To measure the statistical distance between in- and out-of-distribution datasets, we adopt a commonly used metric, maximum mean discrepancy (MMD) with Gaussian RBF kernel (Sriperumbudur et al., 2010; Gretton et al., 2012; Sutherland et al., 2016). Specifically, given two image sets, $V = \{ v _ { 1 } , . . . , v _ { m } \}$ and $W = \{ w _ { 1 } , . . . , w _ { m } \}$ , the maximum mean discrepancy between $V$ and $Q$ is defined as
118
+
119
+ $$
120
+ \widehat { \overline { { { \bf { M M D } } } } } ^ { 2 } ( V , W ) = \frac { 1 } { { \binom { m } { 2 } } } \sum _ { i \neq j } k ( v _ { i } , v _ { j } ) + \frac { 1 } { { \binom { m } { 2 } } } \sum _ { i \neq j } k ( w _ { i } , w _ { j } ) - \frac { 2 } { { \binom { m } { 2 } } } \sum _ { i \neq j } k ( v _ { i } , w _ { j } ) ,
121
+ $$
122
+
123
+ where $k ( \cdot , \cdot )$ is the Gaussian RBF kernel, i.e., $\begin{array} { r } { k ( x , x ^ { \prime } ) = \exp { \left( - \frac { \| x - x ^ { \prime } \| _ { 2 } ^ { 2 } } { 2 \sigma ^ { 2 } } \right) } } \end{array}$ . We use the same method used by Sutherland et al. (2016) to choose $\sigma$ , where $2 \sigma ^ { 2 }$ is set to the median of all Euclidean distances between all images in the aggregate set $V \cup W$ .
124
+
125
+ In Figure 2 (a)(b), we show how the performance of ODIN varies against the MMD distances between in- and out-of-distribution datasets4. The datasets (on $\mathbf { X }$ -axis) are ranked in the descending order of MMD distances with CIFAR-100. There are two interesting observations can be drawn from these figures. First, we find that the MMD distances between the cropped datasets and CIFAR-100 tend to be larger. This is likely due to the fact that cropped images only contain local image context and are therefore more distinct from CIFAR-100 images, while resized images contain global patterns and are thus similar to images in CIFAR-100. Second, we observe that the MMD distance tends to be negatively correlated with the detection performance. This suggests, not surprisingly, that the detection task becomes harder as in and out-of-distribution images are more similar to each other.
126
+
127
+ Same-manifold datasets. Furthermore, we investigate the extreme scenario when in- and out-ofdistribution datasets are on the same manifold. In experiment, we randomly split CIFAR-100 into two disjoint datasets containing 80 and 20 classes each. We name them CIFAR-80 and CIFAR20, respectively. We train both DenseNet and Wide ResNet-28-10 on the CIFAR-80 dataset (indistribution) and evaluate the detection performance on the CIFAR-20 dataset (out-distribution). All hyperparameters used here are exactly the same as in Section 4.1. The MMD distance between CIFAR-20 and CIFAR-80 is much smaller than other dataset pairs. In Figure 2 (c)(d), we observe that both FPR at TPR $9 5 \%$ and detection error become larger on the CIFAR-20 dataset. This coincides with our expectation that the detection task becomes extremely hard when in- and out-of-distribution dataset locate on the same manifold. We provide additional experimental results in Appendix A.1 and Appendix G.
128
+
129
+ # 5.1 EFFECTS OF PARAMETERS
130
+
131
+ # 5 DISCUSSIONS
132
+
133
+ In this subsection, we empirically show how temperature $T$ and perturbation magnitude $\varepsilon$ affect FPR at TPR $9 5 \%$ and AUROC on DenseNet and Wide ResNet-28-10. Additional results on other metrics and architectures are provided in Appendix B. We show the detection performance when using only the temperature scaling method (see Figure 3(a)(b), $\varepsilon = 0$ ), or the input preprocessing method (see Figure 3(c)(d), $T = 1$ ). In Figure 4, we show the detection performance w.r.t $\varepsilon$ when $T$ is optimal (e.g., $\scriptstyle { T = 1 0 0 0 }$ ). First, from Figure 3 (a)(b), we observe that increasing the temperature can improve the detection performance, although the effects diminish when $T$ is sufficiently large (e.g., $T > 1 0 0 $ ). Next, from Figure 3(c)(d) and Figure 4, we observe that we can further improve the detection performance by appropriately choosing the perturbation magnitudes. We can achieve overall better performance by combining both (1) temperature scaling and (2) input preprocessing.
134
+
135
+ ![](images/a65e17e18f8c7c4ad30da3bdde2fc91b1d8b066ce76252936f1de351b9a4b636.jpg)
136
+ Figure 3: (a)(b) Effects of temperature $T$ when $\varepsilon = 0$ . (c)(d) Effects of perturbation magnitude $\varepsilon$ when $T = 1$ . All networks are trained on CIFAR-10 (in-distribution). Additional results on other metrics and Wide ResNet-40 are provided in Appendix B.
137
+
138
+ ![](images/499c75f5bd3fb91211c28ff8081ba9bbee7ac9d9881dc9d86e5e807362521422.jpg)
139
+ Figure 4: (a)(b) Effects of perturbation magnitude $\varepsilon$ on DenseNet when $T$ is large (e.g., $T = 1 0 0 0$ ). (c)(d) Effects of perturbation magnitude of $\varepsilon$ on Wide-ResNet-28-10 when $T$ is large (e.g., $T = 1 0 0 0$ ). All networks are trained on CIFAR-10. Additional results on other metrics and Wide ResNet-40 are provided in Appendix B.
140
+
141
+ # 5.2 ANALYSIS ON TEMPERATURE SCALING
142
+
143
+ In this subsection, we analyze the effectiveness of the temperature scaling method. As shown in Figure 3 (a) and (b), we observe that a sufficiently large temperature yields better detection performance although the effects diminish when $T$ is too large. To gain insight, we can use the Taylor expansion of the softmax score (details provided in Appendix D). When $T$ is sufficiently large, we have
144
+
145
+ $$
146
+ S _ { \hat { y } } ( { \pmb x } ; T ) \approx \frac { \hat { \textbf { \textit { 1 } } } } { N - \frac { 1 } { T } \sum _ { i } [ f _ { \hat { y } } ( { \pmb x } ) - f _ { i } ( { \pmb x } ) ] + \frac { 1 } { 2 T ^ { 2 } } \sum _ { i } [ f _ { \hat { y } } ( { \pmb x } ) - f _ { i } ( { \pmb x } ) ] ^ { 2 } } ,
147
+ $$
148
+
149
+ by omitting the third and higher orders. For simplicity of notation, we define
150
+
151
+ $$
152
+ U _ { 1 } ( \pmb { x } ) = \frac { 1 } { N - 1 } \sum _ { i \neq \hat { \pmb { y } } } [ f _ { \hat { \pmb { y } } } ( \pmb { x } ) - f _ { i } ( \pmb { x } ) ] \quad \mathrm { a n d } \quad U _ { 2 } ( \pmb { x } ) = \frac { 1 } { N - 1 } \sum _ { i \neq \hat { \pmb { y } } } [ f _ { \hat { \pmb { y } } } ( \pmb { x } ) - f _ { i } ( \pmb { x } ) ] ^ { 2 } .
153
+ $$
154
+
155
+ Interpretations of $U _ { 1 }$ and $U _ { 2 }$ . By definition, $U _ { 1 }$ measures the extent to which the largest unnormalized output of the neural network deviates from the remaining outputs; while $U _ { 2 }$ measures the extent to which the remaining smaller outputs deviate from each other. We provide formal mathematical derivations in Appendix F. In Figure 5(a), we show the distribution of $U _ { 1 }$ for each out-of-distribution dataset vs. the in-distribution dataset (in red). We observe that the largest outputs of the neural network on in-distribution images deviate more from the remaining outputs. This is likely due to the fact that neural networks tend to make more confident predictions on in-distribution images.
156
+
157
+ Further, we show in Figure 5(b) the expectation of $U _ { 2 }$ conditioned on $U _ { 1 }$ , i.e., $E [ U _ { 2 } | U _ { 1 } ]$ , for each dataset. The red curve (in-distribution images) has overall higher expectation. This indicates that, when two images have similar values on $U _ { 1 }$ , the in-distribution image tends to have a much higher value of $U _ { 2 }$ than the out-of-distribution image. In other words, for in-distribution images, the remaining outputs (excluding the largest output) tend to be more separated from each other compared to out-of-distribution datasets. This may happen when some classes in the in-distribution dataset share common features while others differ significantly. To illustrate this, in Figure 5 (f)(g), we show the outputs of each class using a DenseNet (trained on CIFAR-10) on a dog image from CIFAR-10, and another image from TinyImageNet (crop). For the image of dog, we can observe that the largest output for the label dog is close to the output for the label cat but is quite separated from the outputs for the label car and truck. This is likely due to the fact that, in CIFAR-10, images of dogs are very similar to the images of cats but are quite distinct from images of car and truck. For the image from TinyImageNet (crop), despite having one large output, the remaining outputs are close to each other and thus have a smaller deviation.
158
+
159
+ ![](images/25aa25ed3f4a8ee8f57be1980afd515288dce7137a9ae0f1f0c46ac695a6d381.jpg)
160
+ Figure 5: (a) Probability density of $U _ { 1 }$ under different datasets on DenseNet. (b) Expectations of $U _ { 2 }$ conditioned on $U _ { 1 }$ on DenseNet. (c) Probability density of the norm of gradient on DenseNet under temperature 1, 000. (c)(d) Expectation of the norm of gradient conditioned on the softmax scores on DenseNet under temperature $T = 1 0 \bar { 0 } 0$ and $T = 1$ , respectively. (f)(g) Outputs of DenseNet on each class for an image of dog from CIFAR-10 and an image from TinyImageNet (crop). The DenseNet is trained on CIFAR-10. Additional results on other architectures are provided in Appendix C.
161
+
162
+ The effects of $T$ . To see the usefulness of adopting a large $T$ , we can first rewrite the softmax score function in Equation (3) as $S \propto ( U _ { 1 } - U _ { 2 } / 2 \bar { T } ) / \bar { T }$ . Hence the softmax score is largely determined by $U _ { 1 }$ and $U _ { 2 } / 2 T$ . As noted earlier, $U _ { 1 }$ makes in-distribution images produce larger softmax scores than out-of-distribution images since $S \propto U _ { 1 }$ , while $U _ { 2 }$ has the exact opposite effect since $S \propto - U _ { 2 }$ . Therefore, by choosing a sufficiently large temperature, we can compensate the negative impacts of $U _ { 2 } / 2 T$ on the detection performance, making the softmax scores between in- and out-of-distribution images more separable. Eventually, when $T$ is sufficiently large, the distribution of softmax score is almost dominated by the distribution of $U _ { 1 }$ and thus increasing the temperature further is no longer effective. This explains why we see in Figure 3 (a)(b) that the performance does not change when $T$ is too large (e.g., $T > 1 0 0$ ). In Appendix $\mathrm { E }$ , we provide a formal proof showing that the detection error eventually converges to a constant number when $T$ goes to infinity.
163
+
164
+ # 5.3 ANALYSIS ON INPUT PREPROCESSING
165
+
166
+ As noted previously, using the temperature scaling method by itself can be effective in improving the detection performance. However, the effectiveness quickly diminishes as $T$ becomes very large. In order to make further improvement, we complement temperature scaling with input preprocessing. This has already been seen in Figure 4, where the detection performance is improved by a large margin on most datasets when $T = 1 0 0 0$ , provided with an appropriate perturbation magnitude $\varepsilon$ is chosen. In this subsection, we provide some intuition behind this.
167
+
168
+ To explain, we can look into the first order Taylor expansion of the log-softmax function for the perturbed image $\tilde { \pmb x }$ , which is given by
169
+
170
+ $$
171
+ \log S _ { \hat { y } } ( \tilde { x } ; T ) = \log S _ { \hat { y } } ( x ; T ) + \varepsilon \left. \nabla _ { x } \log S _ { \hat { y } } ( x ; T ) \right. _ { 1 } + o ( \varepsilon ) ,
172
+ $$
173
+
174
+ where $_ { \textbf { \em x } }$ is the original input.
175
+
176
+ The effects of gradient. In Figure 5 (c), we present the distribution of $\| \nabla _ { \pmb { x } } \log S ( \pmb { x } ; T ) \| _ { 1 }$ — the 1-norm of gradient of log-softmax with respect to the input $_ { \textbf { \em x } }$ — for all datasets. A salient observation is that CIFAR-10 images (in-distribution) tend to have larger values on the norm of gradient than most out-of-distribution images. To further see the effects of the norm of gradient on the softmax score, we provide in Figures 5 (d) the conditional expectation $E [ | | \nabla _ { \pmb { x } } \log \bar { S } ( { \pmb x } ; T ) | | _ { 1 } | S ]$ . We can observe that, when an in-distribution image and an out-of-distribution image have the same softmax score, the value of $\| \nabla _ { x } \log S ( { \pmb x } ; T ) \| _ { 1 }$ for in-distribution image tends to be larger.
177
+
178
+ We illustrate the effects of the norm of gradient in Figure 6. Suppose that an in-distribution image $\scriptstyle { \mathbf { \mathscr { x } } } _ { 1 }$ (blue) and an out-of-distribution image $\mathbf { \boldsymbol { x } } _ { 2 }$ (red) have similar softmax scores, i.e., $S ( \pmb { x } _ { 1 } ) \approx S ( \pmb { x } _ { 2 } )$ . After input processing, the in-distribution image can have a much larger softmax score than the out-of-distribution image $\mathbf { x } _ { 2 }$ since $\scriptstyle { \mathbf { \mathscr { x } } } _ { 1 }$ results in a much larger value on the norm of softmax gradient than that of $\mathbf { x } _ { 2 }$ . Therefore, in- and out-of-distribution images are more separable from each other after input preprocessing5.
179
+
180
+ The effect of $\varepsilon$ . When the magnitude $\varepsilon$ is sufficiently small, adding perturbations does not change the predictions of the neural network, i.e., ${ \hat { y } } ( { \tilde { \mathbf { x } } } ) = { \hat { y } } ( \mathbf { x } )$ . However, when $\varepsilon$ is not negligible, the gap of softmax scores between in- and out-of-distribution images can be affected by $\| \nabla _ { \pmb { x } } \log S ( \pmb { x } ; T ) \| _ { 1 }$ . Our observation is consistent with that in (Szegedy et al., 2014; Goodfellow et al., 2015; Moosavi
181
+
182
+ ![](images/c850b024deebdefc6a42320e2701738117f4f0670d6531ad63a402c3a355cd34.jpg)
183
+ Figure 6: Illustration of effects of the input preprocessing.
184
+
185
+ Dezfooli et al., 2017), which show that the softmax scores tend to change significantly if small perturbations are added to the in-distribution images. It is also worth noting that using a very large $\varepsilon$ can lead to performance degradation, as seen in Figure 4. This is likely due to the fact that the second and higher order terms in the Taylor expansion are no longer insignificant when the perturbation magnitude is too large.
186
+
187
+ # 6 RELATED WORKS AND FUTURE DIRECTIONS
188
+
189
+ The problem of detecting out-of-distribution examples in low-dimensional space has been well-studied in various contexts (see the survey by Pimentel et al. (2014)). Conventional methods such as density estimation, nearest neighbor and clustering analysis are widely used in detecting low-dimensional outof-distribution examples (Chow, 1970; Vincent & Bengio, 2003; Ghoting et al., 2008; Devroye et al., 2013), . The density estimation approach uses probabilistic models to estimate the in-distribution density and declares a test example to be out-of-distribution if it locates in the low-density areas. The clustering method is based on the statistical distance, and declares an example to be out-ofdistribution if it locates far from its neighborhood. Despite various applications in low-dimensional spaces, unfortunately, these methods are known to be unreliable in high-dimensional space such as image space (Wasserman, 2006; Theis et al., 2015). In recent years, out-of-distribution detectors based on deep models have been proposed. Schlegl et al. (2017) train a generative adversarial networks to detect out-of-distribution examples in clinical scenario. Sabokrou et al. (2016) train a convolutional network to detect anomaly in scenes. Andrews et al. (2016) adopt transfer representation-learning for anomaly detection. All these works require enlarging or modifying the neural networks. In a more recent work, Hendrycks & Gimpel (2017) found that pre-trained neural networks can be overconfident to out-of-distribution example, limiting the effectiveness of detection. Our paper aims to improve the performance of detecting out-of-distribution examples, without requiring any change to an existing well-trained model.
190
+
191
+ Our approach leverages the following two interesting observations to help better distinguish between in- and out-of-distribution examples: (1) On in-distribution images, modern neural networks tend to produce outputs with larger variance across class labels, and (2) neural networks have larger norm of gradient of log-softmax scores when applied on in-distribution images. We believe that having a better understanding of these phenomenon can lead to further insights into this problem.
192
+
193
+ # 7 CONCLUSIONS
194
+
195
+ In this paper, we propose a simple and effective method to detect out-of-distribution data samples in neural networks. Our method does not require retraining the neural network and significantly improves on the baseline (state-of-the-art) on different neural architectures across various in and out-distribution dataset pairs. We empirically analyze the method under different parameter settings, and provide some insights behind the approach. Future work involves exploring our method in other applications such as speech recognition and natural language processing.
196
+
197
+ # ACKNOWLEDGMENTS
198
+
199
+ The research reported here was supported by NSF Grant CPS ECCS 1739189.
200
+
201
+ # REFERENCES
202
+
203
+ Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mané. Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016.
204
+
205
+ Jerone T.A Andrews, Thomas Tanay, Edward J. Morton, and Lewis D. Griffin. Transfer representationlearning for anomaly detection. In ICML, 2016.
206
+
207
+ Yaroslav Bulatov. notmnist dataset. 2011.
208
+
209
+ Kyunghyun Cho, Bart Van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. EMNLP, 2014.
210
+
211
+ C Chow. On optimum recognition error and reject tradeoff. IEEE Transactions on information theory, 16(1):41–46, 1970.
212
+
213
+ Jesse Davis and Mark Goadrich. The relationship between precision-recall and roc curves. In ICML. ACM, 2006.
214
+
215
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
216
+
217
+ Luc Devroye, László Györfi, and Gábor Lugosi. A probabilistic theory of pattern recognition, volume 31. Springer Science & Business Media, 2013.
218
+
219
+ John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(Jul):2121–2159, 2011.
220
+
221
+ Clement Farabet, Camille Couprie, Laurent Najman, and Yann LeCun. Learning hierarchical features for scene labeling. IEEE transactions on pattern analysis and machine intelligence, 35(8):1915– 1929, 2013.
222
+
223
+ Tom Fawcett. An introduction to roc analysis. Pattern recognition letters, 2006.
224
+
225
+ Amol Ghoting, Srinivasan Parthasarathy, and Matthew Eric Otey. Fast mining of distance-based outliers in high-dimensional datasets. Data Mining and Knowledge Discovery, 16(3):349–364, 2008.
226
+
227
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. ICLR, 2015.
228
+
229
+ Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13(Mar):723–773, 2012.
230
+
231
+ Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. arXiv preprint arXiv:1706.04599, 2017.
232
+
233
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
234
+
235
+ Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. ICLR, 2017.
236
+
237
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
238
+
239
+ Gao Huang, Zhuang Liu, and Kilian Q Weinberger. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016.
240
+
241
+ Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. 3d convolutional neural networks for human action recognition. IEEE transactions on pattern analysis and machine intelligence, 35(1):221–231, 2013.
242
+
243
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
244
+
245
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
246
+
247
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
248
+
249
+ Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 2015.
250
+
251
+ Christopher D Manning, Hinrich Schütze, et al. Foundations of statistical natural language processing, volume 999. MIT Press, 1999.
252
+
253
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. CVPR, 2017.
254
+
255
+ Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. 2015.
256
+
257
+ Gabriel Pereyra, George Tucker, Jan Chorowski, Łukasz Kaiser, and Geoffrey Hinton. Regularizing neural networks by penalizing confident output distributions. ICLR, 2017.
258
+
259
+ Marco AF Pimentel, David A Clifton, Lei Clifton, and Lionel Tarassenko. A review of novelty detection. Signal Processing, 99:215–249, 2014.
260
+
261
+ Mohammad Sabokrou, Mohsen Fayyaz, Mahmood Fathy, et al. Fully convolutional neural network for fast anomaly detection in crowded scenes. arXiv preprint arXiv:1609.00866, 2016.
262
+
263
+ Takaya Saito and Marc Rehmsmeier. The precision-recall plot is more informative than the roc plot when evaluating binary classifiers on imbalanced datasets. PloS one, 10(3):e0118432, 2015.
264
+
265
+ Thomas Schlegl, Philipp Seeböck, 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.
266
+
267
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015.
268
+
269
+ Bharath K Sriperumbudur, Arthur Gretton, Kenji Fukumizu, Bernhard Schölkopf, and Gert RG Lanckriet. Hilbert space embeddings and metrics on probability measures. Journal of Machine Learning Research, 11(Apr):1517–1561, 2010.
270
+
271
+ Dougal J Sutherland, Hsiao-Yu Tung, Heiko Strathmann, Soumyajit De, Aaditya Ramdas, Alex Smola, and Arthur Gretton. Generative models and model criticism via optimized maximum mean discrepancy. ICLR, 2016.
272
+
273
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. NIPS, 2014.
274
+
275
+ Lucas Theis, Aäron van den Oord, and Matthias Bethge. A note on the evaluation of generative models. ICLR, 2015.
276
+
277
+ Pascal Vincent and Yoshua Bengio. Manifold parzen windows. In Advances in neural information processing systems, pp. 849–856, 2003.
278
+
279
+ Larry Wasserman. All of Nonparametric Statistics. Springer, 2006.
280
+
281
+ Pingmei Xu, Krista A Ehinger, Yinda Zhang, Adam Finkelstein, Sanjeev R Kulkarni, and Jianxiong Xiao. Turkergaze: Crowdsourcing saliency with webcam based eye tracking. arXiv preprint arXiv:1504.06755, 2015.
282
+
283
+ Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a largescale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
284
+
285
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
286
+
287
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017.
288
+
289
+ # A SUPPLEMENTARY RESULTS IN SECTION 4.4
290
+
291
+ A.1 EXPERIMENTAL RESULTS
292
+ Table 3: Distinguishing in- and out-of-distribution test set data for image classification. All values are percentages. $\uparrow$ indicates larger value is better, and $\downarrow$ indicates lower value is better.
293
+
294
+ <table><tr><td rowspan="2"></td><td rowspan="2">Out-of-distribution dataset</td><td rowspan="2">FPR (95% TPR) ←</td><td rowspan="2">Detection Error √</td><td>AUROC</td><td>AUPR In</td><td>AUPR Out</td></tr><tr><td>→</td><td>个</td><td>→</td></tr><tr><td rowspan="8">WRN-40-4 CIFAR-10</td><td colspan="6">Baseline (Hendrycks &amp; Gimpel, 2017) /Ours</td></tr><tr><td>TinyImageNet (crop)</td><td>49.8/36.7</td><td>27.4/20.9</td><td>87.3/89.3</td><td>85.1/86.7</td><td>87.2/90.7</td></tr><tr><td>TinyImageNet (resize)</td><td>62.3/49.1</td><td>33.6/27.1</td><td>79.3/81.6</td><td>73.5/76.9</td><td>80.6/84.8</td></tr><tr><td>LSUN (crop)</td><td>34.6/23.0</td><td>19.8/14.0</td><td>93.4/95.1</td><td>93.1/94.3</td><td>92.4/95.2 85.3/89.7</td></tr><tr><td>LSUN (resize)</td><td>54.5/35.1</td><td>29.8/20.1</td><td>84.7/87.0</td><td>79.8/82.6</td><td></td></tr><tr><td>iSUN Uniform</td><td>58.6/41.0 26.6/3.2</td><td>31.8/23.0 15.8/4.1</td><td>82.1/84.9 96.1/99.2</td><td>76.4/80.2</td><td>83.2/87.8</td></tr><tr><td>Gaussian</td><td>21.8/0.9</td><td>13.4/3.0</td><td>96.5/99.7</td><td>97.0/99.2 97.5/99.7</td><td>94.8/99.2 94.7/99.7</td></tr><tr><td rowspan="7">WRN-40-4 CIFAR-100</td><td>TinyImageNet (crop)</td><td>66.9/43.3</td><td>36.0/24.1</td><td>81.3/88.5</td><td>80.6/87.2</td><td>80.1/89.1</td></tr><tr><td>TinyImageNet (resize)</td><td>78.1/55.1</td><td>41.5/30.1</td><td>72.6/81.6</td><td>69.4/78.0</td><td>71.6/83.4</td></tr><tr><td>LSUN (crop)</td><td>74.9/35.9</td><td>40.0/20.4</td><td>79.1/90.8</td><td>81.4/89.9</td><td>76.3/91.5</td></tr><tr><td>LSUN (resize)</td><td>77.9/50.0</td><td>41.5/27.5</td><td>75.2/85.6</td><td>73.1/83.5</td><td>73.3/86.4</td></tr><tr><td>iSUN</td><td>79.5/52.9</td><td>42.2/28.9</td><td>74.3/84.3</td><td>72.9/81.9</td><td>71.9/85.1</td></tr><tr><td>Uniform</td><td>84.7/3.3</td><td>44.9/4.2</td><td>86.3/98.8</td><td>90.5/99.1</td><td>77.0/97.9</td></tr><tr><td>Gaussian</td><td>77.2/3.1</td><td>41.1/4.0</td><td>86.4/99.0</td><td>90.2/99.2</td><td>78.6/98.6</td></tr><tr><td rowspan="8">Dense-BC CIFAR-80</td><td>CIFAR-20</td><td>84.1/81.1</td><td>44.9/43.0</td><td>76.6/77.8</td><td>79.4/80.6</td><td>71.6/73.6</td></tr><tr><td>TinyImageNet (crop)</td><td>72.9/22.7</td><td>39.0/13.8</td><td>83.4/96.2</td><td>86.3/96.6</td><td>79.9/95.8</td></tr><tr><td>TinyImageNet (resize)</td><td>84.4/46.3</td><td>44.7/25.6</td><td>76.8/91.7</td><td>80.3/92.7</td><td>71.5/90.4</td></tr><tr><td>LSUN (crop)</td><td>67.1/20.9</td><td>36.0/12.9</td><td>84.6/96.2</td><td>86.9/96.4</td><td>82.1/96.0</td></tr><tr><td>LSUN (resize)</td><td>84.9/45.9</td><td>45.0/25.4</td><td>77.5/91.8</td><td>81.4/92.9</td><td>71.6/90.2</td></tr><tr><td>iSUN</td><td>86.1/50.2</td><td>50.5/27.6</td><td>76.1/90.5</td><td>79.8/91.3</td><td>69.9/88.8</td></tr><tr><td>Uniform</td><td>100.0/0.9</td><td>52.5/3.0</td><td>64.3/98.6</td><td>78.4/99.1</td><td>52.2/96.6</td></tr><tr><td>Gaussian</td><td>98.5/1.2</td><td>51.8/3.1</td><td>80.4/99.6</td><td>86.7/99.6</td><td>68.0/99.1</td></tr><tr><td rowspan="8">WRN-28-10 CIFAR-80</td><td>CIFAR-20</td><td>80.4/78.3</td><td>42.7/41.6</td><td>79.2/80.4</td><td>81.5/82.2</td><td>74.2/76.2</td></tr><tr><td>TinyImageNet (crop)</td><td>71.3/46.7</td><td>38.1/25.9</td><td>83.1/91.9</td><td>85.9/92.6</td><td>79.7/90.7</td></tr><tr><td>TinyImageNet (resize)</td><td>81.0/48.8</td><td>43.0/26.9</td><td>77.1/89.2</td><td>80.0/89.5</td><td>72.6/88.5</td></tr><tr><td>LSUN (crop)</td><td>74.4/45.5</td><td>39.7/25.2</td><td>82.0/92.9</td><td>84.4/93.0</td><td>78.2/91.5</td></tr><tr><td>LSUN (resize)</td><td>81.9/49.0</td><td>43.5/27.0</td><td>78.8/90.1</td><td>82.2/90.8</td><td>73.4/88.8</td></tr><tr><td>iSUN</td><td>82.7/51.1</td><td>43.9/28.1</td><td>78.3/89.4</td><td>81.5/90.0</td><td>72.6/88.0</td></tr><tr><td>Uniform</td><td>99.6/1.4</td><td>52.3/3.2</td><td>80.6/98.9</td><td>87.7/99.2</td><td>66.8/97.6</td></tr><tr><td>Gaussian</td><td>100.0/0.4</td><td>52.5/2.7</td><td>79.7/99.1</td><td>87.4/99.4</td><td>65.5/98.0</td></tr><tr><td rowspan="8">WRN-40-4 CIFAR-80</td><td>CIFAR-20</td><td>82.4/78.4</td><td>43.7/41.7</td><td>76.8/78.1</td><td>78.9/79.1</td><td>72.2/75.0</td></tr><tr><td>TinyImageNet (crop)</td><td>68.3/34.3</td><td>36.6/19.6</td><td>83.6/93.4</td><td>85.9/94.0</td><td>81.2/92.5</td></tr><tr><td>TinyImageNet (resize)</td><td>80.6/53.5</td><td>42.8/29.2</td><td>76.2/87.7</td><td>78.5/88.3</td><td>72.5/86.1</td></tr><tr><td>LSUN (crop)</td><td>72.2/33.2</td><td>38.6/19.1</td><td>83.1/93.4</td><td>86.3/93.7</td><td>79.7/93.1</td></tr><tr><td>LSUN (resize)</td><td>79.1/51.2</td><td>42.0/28.1</td><td>77.6/88.8</td><td>80.0/89.4</td><td>73.9/87.3</td></tr><tr><td>iSUN</td><td>81.2/53.2</td><td>43.1/29.1</td><td>76.2/87.7</td><td>78.7/88.3</td><td>72.2/86.1</td></tr><tr><td>Uniform</td><td>99.7/48.6</td><td>52.4/26.8</td><td>65.6/93.8</td><td>77.3/95.7</td><td>53.7/88.7</td></tr><tr><td>Gaussian</td><td>99.7/10.7</td><td>52.4/7.8</td><td>74.3/97.7</td><td>83.0/98.4</td><td>61.2/95.2</td></tr><tr><td rowspan="5">MNIST</td><td>Omniglot</td><td>0.2/0.0</td><td>2.6/2.5</td><td>99.6/100.0</td><td>99.7/100.0</td><td>99.5/100.0</td></tr><tr><td>notMNIST</td><td>10.3/8.7</td><td>7.7/6.8</td><td>97.2/98.2</td><td>97.5/98.4</td><td>97.4/98.0</td></tr><tr><td>CIFAR-10bw</td><td>0.1/0.0</td><td>2.5/2.5</td><td>99.7/100.0</td><td>99.8/100.0</td><td>99.7/100.0</td></tr><tr><td>Gaussian</td><td>0.0/0.0</td><td>2.5/2.5</td><td>99.7/100.0</td><td>99.8/100.0</td><td>99.7/100.0</td></tr><tr><td>Uniform</td><td>0.0/0.0</td><td>2.5/2.5</td><td>99.9/100.0</td><td>99.9/100.0</td><td>99.9/100.0</td></tr></table>
295
+
296
+ MNIST: We used the same MNIST classifier used by Hendrycks & Gimpel (2017), which is a three-layer, 256 neuron-wide, fully connected network trained for 30 epochs with Adam (Kingma & Ba, 2014). The classifier achieve $9 9 . 3 4 \%$ test accuracy on the MNIST test set. We compare our method with the baseline (Hendrycks & Gimpel, 2017) on five different out-of-distribution datasets: (1) Omniglot dataset (Lake et al., 2015) contains images of handwritten characters in stead of the handwritten digits in MNIST; (2) notMNIST (Bulatov, 2011) dataset contains typeface characters;
297
+
298
+ (3) CIFAR-10bw contains black and white rescaled CIFAR-10 images; (4)(5) Gaussian and Uniform image set contains the synthetic Gaussian and Uniform noise images used in Section 4.2.
299
+
300
+ Wide ResNet-40-4: We use the same architecture used by Hendrycks & Gimpel (2017) to evaluate the baseline and our method. The Wide ResNet-40-4 achieves $9 5 . 7 \%$ test accuracy on CIFAR-10 dataset and achieve $7 9 . 2 7 \%$ test accuracy on CIFAR-100.
301
+
302
+ CIFAR-80: DenseNet-BC-100 achieves $7 8 . 9 4 \%$ test accuracy on CIFAR-80, while Wide ResNet28-10 achieves $8 1 . 7 1 \%$ test accuracy and Wide ResNet-40-4 achieves $7 9 . 5 3 \%$ test accuracy on CIFAR-80.
303
+
304
+ # A.2 PARAMETER SETTINGS
305
+
306
+ For MNIST, we set $T = 1 0 0 0$ and $\varepsilon = 0$ . The parameter settings for other structures are shown as follows.
307
+
308
+ <table><tr><td colspan="4">DenseNet-BC-100</td></tr><tr><td>Out-of-distribution datasets</td><td>CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>0.0014</td><td>0.002</td><td>0.002</td></tr><tr><td>TinyImageNet (resize)</td><td>0.0014</td><td>0.0022</td><td>0.0022</td></tr><tr><td>LSUN (crop)</td><td>0</td><td>0.0036</td><td>0.0038</td></tr><tr><td>LSUN (resize)</td><td>0.0014</td><td>0.002</td><td>0.0018</td></tr><tr><td>iSUN</td><td>0.0014</td><td>0.002</td><td>0.002</td></tr><tr><td>Uniform</td><td>0.0014</td><td>0.0028</td><td>0.0024</td></tr><tr><td>Gaussian</td><td>0.0014</td><td>0.0026</td><td>0.0028</td></tr><tr><td>CIFAR-20</td><td>-</td><td>0.0002</td><td>-</td></tr></table>
309
+
310
+ Table 4: Optimal perturbation magnitude $\varepsilon$ for reproducing main results in Table 2 and 3.
311
+
312
+ <table><tr><td rowspan="2"></td><td colspan="3">DenseNet-BC-100</td></tr><tr><td>Out-of-distribution datasets CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>TinyImageNet (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>iSUN</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>Uniform</td><td>1000</td><td>1</td><td>1</td></tr><tr><td>Gaussian</td><td>1000</td><td>1</td><td>1</td></tr><tr><td>CIFAR-20</td><td>-</td><td>1</td><td>-</td></tr></table>
313
+
314
+ Table 5: Optimal Temperature $T$ for reproducing main results in Table 2 and 3.
315
+
316
+ <table><tr><td colspan="4">Wide-ResNet-28-10</td></tr><tr><td>Out-of-distribution datasets</td><td>CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>0.0005</td><td>0.0002</td><td>0.0026</td></tr><tr><td>TinyImageNet (resize)</td><td>0.0011</td><td>0.0004</td><td>0.0024</td></tr><tr><td>LSUN (crop)</td><td>0</td><td>0.0002</td><td>0.0038</td></tr><tr><td>LSUN (resize)</td><td>0.0006</td><td>0.0002</td><td>0.0026</td></tr><tr><td>iSUN</td><td>0.0008</td><td>0.0002</td><td>0.0026</td></tr><tr><td>Uniform</td><td>0.0014</td><td>0.0002</td><td>0.0032</td></tr><tr><td>Gaussian</td><td>0.0014</td><td>0.0002</td><td>0.0032</td></tr><tr><td>CIFAR-20</td><td>-</td><td>5e-05</td><td>-</td></tr></table>
317
+
318
+ Table 6: Optimal perturbation magnitude $\varepsilon$ for reproducing main results in Table 2 and 3.
319
+
320
+ Table 7: Optimal Temperature $T$ for reproducing main results in Table 2 and 3.
321
+
322
+ <table><tr><td colspan="4">Wide-ResNet-28-10</td></tr><tr><td>Out-of-distribution datasets</td><td>CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>TinyImageNet (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>iSUN</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>Uniform</td><td>1000</td><td>1</td><td>1000</td></tr><tr><td>Gaussian</td><td>1000</td><td>1</td><td>1000</td></tr><tr><td>CIFAR-20</td><td>1</td><td>1</td><td>-</td></tr></table>
323
+
324
+ <table><tr><td colspan="4">Wide-ResNet-40-4</td></tr><tr><td>Out-of-distribution datasets</td><td>CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>0.0004</td><td>0.0002</td><td>0.0014</td></tr><tr><td>TinyImageNet (resize)</td><td>0.0008</td><td>0.0004</td><td>0.0016</td></tr><tr><td>LSUN (crop)</td><td>0</td><td>0.0002</td><td>0.0038</td></tr><tr><td>LSUN (resize)</td><td>0.001</td><td>0.0002</td><td>0.0014</td></tr><tr><td>iSUN</td><td>0.0008</td><td>0.0002</td><td>0.0016</td></tr><tr><td>Uniform</td><td>0.0016</td><td>0.0002</td><td>0.0024</td></tr><tr><td>Gaussian</td><td>0.0016</td><td>0.0002</td><td>0.0026</td></tr><tr><td>CIFAR-20</td><td>-</td><td>0.0002</td><td>-</td></tr></table>
325
+
326
+ Table 8: Optimal perturbation magnitude $\varepsilon$ for reproducing main results in Table 2 and 3.
327
+
328
+ Table 9: Optimal Temperature $T$ for reproducing main results in Table 2 and 3.
329
+
330
+ <table><tr><td rowspan="2"></td><td colspan="3">Wide-ResNet-40-4</td></tr><tr><td>Out-of-distribution datasets CIFAR-10</td><td>CIFAR-80</td><td>CIFAR-100</td></tr><tr><td>TinyImageNet (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>TinyImageNet (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (crop)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>LSUN (resize)</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>iSUN</td><td>1000</td><td>1000</td><td>1000</td></tr><tr><td>Uniform</td><td>1000</td><td>1</td><td>1000</td></tr><tr><td>Gaussian</td><td>1000</td><td>1</td><td>1000</td></tr><tr><td>CIFAR-20</td><td>-</td><td>1</td><td>-</td></tr></table>
331
+
332
+ ![](images/ea42fd1bd24fe913c28758afd94e879b17b3646a75d61ceec7dab1601dec47ae.jpg)
333
+ Figure 7: Detection performance on DenseNet, Wide ResNet-28-10 and Wide ResNet-40-4 under different temperature, when input preprocessing is not used, i.e., $\varepsilon = 0$ . All networks are trained on CIFAR-10.
334
+
335
+ ![](images/da6fbf7d380a009f288b75da5f98ca92fbe61512fa4d08d0c35c87d1449de2fa.jpg)
336
+ Figure 8: Detection performance on DenseNet, Wide ResNet-28-10 and Wide ResNet-40-4 under different perturbation magnitude, when temperature scaling is not used, i.e., $T = 1$ . All networks are trained on CIFAR-10.
337
+
338
+ ![](images/9284ea875fa9c88ac34d6dddf279322ca86daad61635f6f3b3060ada44d9e10e.jpg)
339
+ Figure 9: Detection performance on DenseNet, Wide ResNet-28-10 and Wide ResNet-40-4 under different perturbation magnitude, when the optimal temperature is used, i.e., $T = 1 0 0 0$ . All networks are trained on CIFAR-10.
340
+
341
+ ![](images/c39ecd2fcf00ebff9a84cf1dd27e3075b0254e8ce522b36863629db122b12d98.jpg)
342
+ Figure 10: Expectation of the second order term $U _ { 2 }$ conditioned on the first order term $U _ { 1 }$ under DenseNet, Wide-ResNet-28-10 and Wide ResNet-40-4. All networks are trained on CIFAR-10.
343
+
344
+ ![](images/10d294280cf43184e465f1c90e8570af55e9cb5483487a22aa27c00a267faef6.jpg)
345
+ Figure 11: Expectation of gradient norms conditioned on the softmax scores under DenseNet, Wide-ResNet-28- 10 and Wide ResNet-40-4, where the temperature scaling is not used. All networks are trained on CIFAR-10.
346
+
347
+ ![](images/677f34f8c3f5b4825a72ba43ccc2417d40de1307a872ac52f8c113dcf021ec94.jpg)
348
+ Figure 12: Expectation of gradient norms conditioned on the softmax scores under DenseNet, Wide-ResNet-28- 10 and Wide ResNet-40-4, where the optimal temperature is used, i.e., $T = 1 0 0 0$ . All networks are trained on CIFAR-10.
349
+
350
+ # D TAYLOR EXPANSION
351
+
352
+ In this section, we present the Taylor expansion of the soft-max score function:
353
+
354
+ $$
355
+ \begin{array} { r l } { S _ { \hat { y } } ( { \boldsymbol x } ; T ) = \frac { \exp { \left( f _ { \hat { y } } ( { \boldsymbol x } ) / T \right) } } { \sum _ { i = 1 } ^ { N } \exp ( f _ { i } ( { \boldsymbol x } ) / T ) } } \\ & { = \frac { 1 } { \sum _ { i = 1 } ^ { N } \exp { \left( \frac { f _ { i } ( { \boldsymbol x } ) - f _ { i } ( { \boldsymbol x } ) } { T } \right) } } } \\ & { = \frac { 1 } { \sum _ { i = 1 } ^ { N } \left[ 1 + \frac { f _ { i } ( { \boldsymbol x } ) - f _ { \hat { y } } ( { \boldsymbol x } ) } { T } + \frac { 1 } { 2 ! } \frac { ( f _ { i } ( { \boldsymbol x } ) - f _ { \hat { y } } ( { \boldsymbol x } ) ) ^ { 2 } } { T ^ { 2 } } + o \left( \frac { 1 } { T ^ { 2 } } \right) \right] } } \\ & { \approx \frac { 1 } { N - \frac { 1 } { T } \sum _ { i = 1 } ^ { N } [ f _ { \hat { y } } ( { \boldsymbol x } ) - f _ { i } ( { \boldsymbol x } ) ] + \frac { 1 } { 2 ^ { \frac { 1 } { 2 } } T ^ { 2 } } \sum _ { i = 1 } ^ { N } [ f _ { i } ( { \boldsymbol x } ) - f _ { \hat { y } } ( { \boldsymbol x } ) ] ^ { 2 } } } \end{array}
356
+ $$
357
+
358
+ by Taylor expansion
359
+
360
+ # E PROPOSITION 1
361
+
362
+ The following proposition 1 shows that the detection error $P _ { e } ( T , 0 ) \approx c$ if $T$ is sufficiently large.
363
+ Thus, increasing the temperature further can only slightly improve the detection performance.
364
+
365
+ Proposition 1. There exists a constant c only depending on function $U _ { 1 }$ , in-distribution $P _ { X }$ and out-of-distribution $Q _ { X }$ such that $\operatorname* { l i m } _ { T \to \infty }$ $P _ { e } ( T , \varepsilon ) = c$ , when $\varepsilon = 0$ (i.e., no input preprocessing).
366
+
367
+ Proof. Since
368
+
369
+ $$
370
+ S _ { \hat { y } } ( X ; T ) = { \frac { \exp ( f _ { \hat { y } } ( X ) / T ) } { \sum _ { i = 1 } ^ { N } \exp ( f _ { i } ( X ) / T ) } } = { \frac { 1 } { 1 + \sum _ { i \neq \hat { y } } \exp ( [ f _ { i } ( X ) - f _ { \hat { y } } ( X ) ] / T ) } }
371
+ $$
372
+
373
+ Therefore, for any $\boldsymbol { X }$ ,
374
+
375
+ $$
376
+ \begin{array} { l } { { \displaystyle \operatorname* { l i m } _ { T \to \infty } T \left( - \frac { 1 } { S _ { \hat { y } } ( X ; T ) } + N \right) = \operatorname* { l i m } _ { T \to \infty } \sum _ { i \neq \hat { y } } T \left[ 1 - \exp \left( \frac { f _ { i } ( X ) - f _ { \hat { y } } ( X ) } { T } \right) \right] } } \\ { { \displaystyle \qquad = \sum _ { i \neq \hat { y } } [ f _ { \hat { y } } ( X ) - f _ { i } ( X ) ] = ( N - 1 ) U _ { 1 } ( X ) } } \end{array}
377
+ $$
378
+
379
+ This indicates that the random variable
380
+
381
+ $$
382
+ T \left( - \frac { 1 } { S _ { \hat { y } } ( X ; T ) } + N \right) \to ( N - 1 ) U _ { 1 } ( X ) \quad a . s .
383
+ $$
384
+
385
+ as $T \to \infty$ . This means that for a specific $\alpha > 0$ , choosing the threshold $\delta _ { T } = 1 / ( N - \alpha / T )$ , then the false positive rate
386
+
387
+ $$
388
+ \begin{array} { r l r } & { } & { \mathrm { F P R } ( T ) = Q _ { X } ( S _ { \hat { y } } ( X ; T ) > 1 / ( N - \alpha / T ) ) = Q _ { X } ( T ( N - \displaystyle \frac { 1 } { S _ { \hat { y } } ( X ; T ) } ) > \alpha ) } \\ & { } & { \xrightarrow { T \infty } Q _ { X } ( ( N - 1 ) U _ { 1 } ( X ) > \alpha ) , } \end{array}
389
+ $$
390
+
391
+ and the true positive rate
392
+
393
+ $$
394
+ \begin{array} { r } { \mathrm { T P R } ( T ) = P _ { X } ( S _ { \hat { y } } ( { X } ; T ) > 1 / ( N - \alpha / T ) ) = P _ { X } ( T ( N - \displaystyle \frac { 1 } { S _ { \hat { y } } ( { X } ; T ) } ) > \alpha ) } \\ { \xrightarrow { T \infty } P _ { X } ( ( N - 1 ) U _ { 1 } ( X ) > \alpha ) . } \end{array}
395
+ $$
396
+
397
+ Choosing $\alpha ^ { * }$ such that $P _ { X } \left( ( N - 1 ) U _ { 1 } ( X ) > \alpha ^ { * } \right) = 0 . 9 5 ,$ , then $\mathrm { T P R } ( T ) 0 . 9 5$ as $T \to \infty$ and at the same time $\mathrm { F P R } ( T ) \to Q _ { X } \left( ( N - 1 ) U _ { 1 } ( X ) > \alpha ^ { * } \right)$ as $T \to \infty$ . There exists a constant $c$ depending on $U _ { 1 } , P _ { X } , Q _ { X }$ and $P _ { Z }$ , such that
398
+
399
+ $$
400
+ \operatorname* { l i m } _ { T \to \infty } P _ { e } ( T , 0 ) = 0 . 0 5 P ( Z = 0 ) + P ( Z = 1 ) Q _ { X } \left( ( N - 1 ) U _ { 1 } ( X ) > \alpha ^ { * } \right) = c .
401
+ $$
402
+
403
+ # F ANALYSIS OF TEMPERATURE
404
+
405
+ For simplicity of the notations, let $\Delta _ { i } = f _ { \hat { y } } - f _ { i }$ and thus $\Delta = \{ \Delta _ { i } \} _ { i \neq \hat { y } }$ . Besides, let $\bar { \Delta }$ denote the mean of the set $\Delta$ . Therefore,
406
+
407
+ $$
408
+ \bar { \Delta } = \frac { 1 } { N - 1 } \sum _ { i \neq \hat { y } } \Delta _ { i } = \frac { 1 } { N - 1 } \sum _ { i \neq \hat { y } } [ f _ { \hat { y } } - f _ { i } ] = U _ { 1 } .
409
+ $$
410
+
411
+ Equivalently,
412
+
413
+ $$
414
+ U _ { 1 } = \mathbf { M e a n } ( \Delta ) .
415
+ $$
416
+
417
+ Next, we will show
418
+
419
+ $$
420
+ U _ { 2 } = \frac { 1 } { N - 1 } \sum _ { i \neq \hat { y } } [ f _ { \hat { y } } - f _ { i } ] ^ { 2 } = \overbrace { \frac { 1 } { N - 1 } \sum _ { i \neq \hat { y } } [ \Delta _ { i } - \bar { \Delta } ] ^ { 2 } } ^ { \mathrm { V a r i a n c e } ^ { 2 } ( \Delta ) } + \overbrace { \bar { \Delta } ^ { 2 } } ^ { \mathrm { M e a n } ^ { 2 } ( \Delta ) } .
421
+ $$
422
+
423
+ Since
424
+
425
+ $$
426
+ \mathsf { b y } \Delta _ { i } = f _ { \hat { y } } - f _ { i }
427
+ $$
428
+
429
+ $$
430
+ \begin{array} { l } { { { \displaystyle U _ { 2 } = \frac { 1 } { N - 1 } \sum _ { i \neq \bar { \rho } } \Delta _ { i } ^ { 2 } } } } \\ { { { \displaystyle \quad = \frac { 1 } { N - 1 } \sum _ { i \neq \bar { \rho } } ( \Delta _ { i } - \bar { \Delta } + \bar { \Delta } ) ^ { 2 } } } } \\ { { { \displaystyle \quad = \frac { 1 } { N - 1 } \sum _ { i \neq \bar { \rho } } [ ( \Delta _ { i } - \bar { \Delta } ) ^ { 2 } - 2 ( \Delta _ { i } - \bar { \Delta } ) \bar { \Delta } + \bar { \Delta } ^ { 2 } ] } } } \\ { { { \displaystyle \quad = \frac { 1 } { N - 1 } \sum _ { i \neq \bar { \rho } } [ \Delta _ { i } - \bar { \Delta } ] ^ { 2 } - \underbrace { \frac { 2 \bar { \Delta } } { N - 1 } \sum _ { i \neq \bar { \rho } } ( \Delta _ { i } - \bar { \Delta } ) } _ { \mathrm { V o l u a r e } ^ { 2 } ( \Delta ) } + \underbrace { \bar { \Delta } ^ { 2 } } _ { \mathrm { M a r } ^ { 2 } ( \Delta ) } } } } \end{array}
431
+ $$
432
+
433
+ then
434
+
435
+ $$
436
+ U _ { 2 } = \mathrm { V a r i a n c e } ^ { 2 } ( \Delta ) + \mathrm { M e a n } ^ { 2 } ( \Delta )
437
+ $$
438
+
439
+ # G ADDITIONAL RESULTS IN SECTION 4.5
440
+
441
+ Apart from the Maximum Mean Discrepancy, we as well calculate the Energy distance between inand out-of-distribution datasets. Let $P$ and $Q$ denote two different distributions. Then the energy distance between distributions $P$ and $Q$ is defined as
442
+
443
+ $$
444
+ D _ { \mathrm { e n e r g y } } ^ { 2 } ( P , Q ) = 2 \mathbb { E } _ { V \sim P , W \sim Q } \| X - Y \| - \mathbb { E } _ { V , V ^ { \prime } \sim P } \| X - X ^ { \prime } \| - \mathbb { E } _ { W , W ^ { \prime } \sim Q } \| Y - Y ^ { \prime } \| .
445
+ $$
446
+
447
+ Therefore, the energy distance between two datasets $V ~ = ~ \{ V _ { 1 } , . . . , V _ { m } \} ~ \stackrel { i i d } { \sim } ~ P$ and $W =$ $\{ W _ { 1 } , . . . , W _ { m } \} \stackrel { i i d } { \sim } Q$ is defined as
448
+
449
+ $$
450
+ \widehat { D _ { \mathrm { e n e r g y } } } ^ { 2 } ( P , Q ) = \frac { 2 } { m ^ { 2 } } \sum _ { i = 1 } ^ { m } \sum _ { j = 1 } ^ { m } \| V _ { i } - W _ { j } \| - \frac { 1 } { \binom { m } { 2 } } \sum _ { i \neq j } \| V _ { i } - V _ { j } \| - \frac { 1 } { \binom { m } { 2 } } \sum _ { i \neq j } \| W _ { i } - W _ { j } \| .
451
+ $$
452
+
453
+ In the experiment, we use the 2-norm $\| \cdot \| _ { 2 }$ .
454
+
455
+ <table><tr><td>In-distribution datasets</td><td>Out-of-distribution Datasets</td><td>MMD Distance</td><td>Energy Distance</td></tr><tr><td rowspan="5">CIFAR-100</td><td>Tiny-ImageNet (crop)</td><td>0.41</td><td>2.25</td></tr><tr><td>LSUN (crop)</td><td>0.43</td><td>2.31</td></tr><tr><td>Tiny-ImageNet (resize)</td><td>0.088</td><td>0.54</td></tr><tr><td>LSUN (resize)</td><td>0.12</td><td>0.63</td></tr><tr><td>iSUN (resize)</td><td>0.11</td><td>0.56</td></tr><tr><td rowspan="6">CIFAR-80</td><td>Tiny-ImageNet (crop)</td><td>0.4</td><td>2.22</td></tr><tr><td>LSUN (crop)</td><td>0.43</td><td>2.29</td></tr><tr><td>Tiny-ImageNet (resize)</td><td>0.095</td><td>0.57</td></tr><tr><td>LSUN (resize)</td><td>0.120</td><td>0.62</td></tr><tr><td>iSUN (resize)</td><td>0.116</td><td>0.61</td></tr><tr><td>CIFAR-20</td><td>0.057</td><td>0.35</td></tr></table>
456
+
457
+ ![](images/6fe8653b8e35460d9830168f4ed71f6c9c069a8058fb147a876de465263b10ab.jpg)
458
+ Figure 13: False positive rate (FPR) and true positive rate (TPR) under different thresholds $( \delta )$ when the temperature $( T )$ is set to $1 , 0 0 0$ and the perturbation magnitude (ε) is set to 0.0014. The DenseNet is trained on CIFAR-10.
459
+
460
+ ![](images/3fa62a6e8a6ffc888e928740184f2ca4896529f91d48edb8bdfdcc61dd3d3b28.jpg)
461
+ Figure 14: Detection performance on Tiny-ImageNet (resize), LSUN (resize) and iSUN (resize) when parameters are tuned on six different out-of-distribution datasets. Each tuning set contains 1,000 images and each test set contains 9,000 images. Both DenseNet and Wide-ResNet are trained on CIFAR-10. Additional results on other datasets are provide in Table 10 and 11.
462
+
463
+ # H ADDITIONAL DISCUSSIONS
464
+
465
+ In this section, we present additional discussion on the proposed method. We first empirically show how the threshold $\delta$ affects the detection performance. We next show how the proposed method performs when the parameters are tuned on a certain out-of-distribution dataset and are evaluated on other out-of-distribution datasets. Finally, we show how the size of dataset for choosing parameters affects the detection performance.
466
+
467
+ Effects of the threshold. We analyze how the threshold affects the following metrics: (1) FPR, i.e., the fraction of out-of-distribution images misclassified as in-distribution images; (2) TPR, i.e, the fraction of in-distribution images correctly classified as in-distribution images. In Figure 13, we show how the thresholds affect FPR and TPR when the temperature and perturbation magnitude are chosen optimally (i.e., $T = 1 , 0 0 0$ , $\varepsilon = 0 . 0 0 1 4$ ). From the figure, we can observe that the threshold corresponding to $9 5 \%$ TPR can produce small FPRs on all out-of-distribution datasets.
468
+
469
+ Performance across datasets. To investigate how the parameters generalize across datasets, we tune the parameters using one out-of-distribution dataset and then evaluate on a different one. Given an out-of-distribution dataset, we first split the dataset into two disjoint subsets: tuning set and test set. The tuning set contains 1,000 images and the test set contains 9,000 images. We tune the parameters on the tuning set and evaluate the detection performance on the test set. We first choose the temperature $T$ and the perturbation magnitude $\varepsilon$ such that the FPR at TPR $9 5 \%$ is minimized on the tuning set of one out-of-distribution dataset. Next, we set $\delta$ to the threshold corresponding to $9 5 \%$ TPR and calculate the false positive rates on the test sets of other out-of-distribution datasets.
470
+
471
+ In Figure 14, we show the detection performance on three out-of-distribution datasets when the parameters are tuned on six different datasets. From Figure 14, we can observe that the parameters tuned on different tuning sets can have quite similar detection FPRs on all of three out-of-distribution image sets. This may be due to the fact, shown in Figure 13, that the threshold corresponding to $9 5 \%$ TPR can produce small FPRs on all datasets.
472
+
473
+ ![](images/753533d77dc18af42ccc6c8fc5f69d009acf71c4015a87df28f24f09659ff8b3.jpg)
474
+ Figure 15: FPR at TPR $9 5 \%$ under different tuning set sizes. The DenseNet is trained on CIFAR-10 and each test set contains 8,000 out-of-distribution images.
475
+
476
+ Performance vs. tuning set size. To show the effects of the tuning set size on the detection performance, we devise the following experiment. For each out-of-distribution dataset, we choose the tuning set size from 200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000. For each set size, we tune the temperature $T$ and perturbation magnitude $\varepsilon$ to minimize the FPR at TPR $9 5 \%$ and calculate the FPR. In Figure 15, we show the detection performance of ODIN under different tuning set size. From Figure 15, we can observe that the FPR at TPR $9 5 \%$ tends to stabilize when the set size grows above 1,000.
477
+
478
+ <table><tr><td colspan="8">DenseNet-BC-100</td></tr><tr><td>Test set</td><td>ImgNet (c)</td><td>ImgNet (r)</td><td>LSUN (c)</td><td>LSUN (c)</td><td>iSUN</td><td>Gaussian</td><td>Uniform</td></tr><tr><td colspan="8">Baseline (Hendrycks &amp; Gimpel, 2017) / Ours</td></tr><tr><td>ImgNet (c)</td><td>34.7/4.3</td><td>34.7/4.3</td><td>34.7/6.6</td><td>34.7/4.3</td><td>34.7/4.3</td><td>34.7/4.3</td><td>34.7/4.3</td></tr><tr><td>ImgNet (r)</td><td>40.7/7.5</td><td>40.7/7.5</td><td>40.7/14.9</td><td>40.7/7.5</td><td>40.7/7.5</td><td>40.7/7.5</td><td>40.7/7.5</td></tr><tr><td>LSUN (c)</td><td>39.3/13.8</td><td>39.3/13.8</td><td>39.3/8.1</td><td>39.3/13.8</td><td>39.3/13.8</td><td>39.3/13.8</td><td>39.3/13.8</td></tr><tr><td>LSUN (r)</td><td>33.6/4.8</td><td>33.6/4.8</td><td>33.6/10.4</td><td>33.6/4.8</td><td>33.6/4.8</td><td>33.6/4.8</td><td>33.6/4.8</td></tr><tr><td>iSUN</td><td>37.2/6.3</td><td>37.2/6.3</td><td>37.2/12.6</td><td>37.2/6.3</td><td>37.2/6.3</td><td>37.2/6.3</td><td>37.2/6.3</td></tr><tr><td>Gaussian</td><td>23.5/0.0</td><td>23.5/0.0</td><td>23.5/0.4</td><td>23.5/0.0</td><td>23.5/0.0</td><td>23.5/0.0</td><td>23.5/0.0</td></tr><tr><td>Uniform</td><td>12.3/0.0</td><td>12.3/0.0</td><td>12.3/4.5</td><td>12.3/0.0</td><td>12.3/0.0</td><td>12.3/0.0</td><td>12.3/0.0</td></tr></table>
479
+
480
+ Table 10: Detection performance across different datasets. Each row corresponds to the FPR at TPR $9 5 \%$ on the same test set where parameters are tuned under different tuning sets. Each column corresponds to the FPR at TPR $9 5 \%$ on different test sets where parameters are tuned under the same tuning set. The DenseNet is trained on CIFAR-10.
481
+
482
+ <table><tr><td colspan="8">Wide-ResNet- 28-10</td></tr><tr><td>Test set</td><td>ImgNet (c)</td><td>ImgNet (r)</td><td>LSUN (c)</td><td>LSUN (c)</td><td>iSUN</td><td>Gaussian</td><td>Uniform</td></tr><tr><td colspan="8">Baseline (Hendrycks &amp; Gimpel, ,2017) /Ours</td></tr><tr><td>ImgNet (c)</td><td>38.9/23.4</td><td>38.9/24.5</td><td>38.9/27.1</td><td>38.9/23.4</td><td>38.9/24.1</td><td>38.9/26.5</td><td>38.9/26.5</td></tr><tr><td>ImgNet (r)</td><td>45.6/25.5</td><td>45.6/25.5</td><td>45.6/32.9</td><td>45.6/25.8</td><td>45.6/25.8</td><td>45.6/27.9</td><td>45.6/27.9</td></tr><tr><td>LSUN (c)</td><td>35.0/28.1</td><td>35.0/31.27</td><td>35.0/21.8</td><td>35.0/28.2</td><td>35.0/28.9</td><td>35.0/29.7</td><td>35.0/29.7</td></tr><tr><td>LSUN (r)</td><td>35.0/18.9</td><td>35.0/18.0</td><td>35.0/25.6</td><td>35.0/17.6</td><td>35.0/18.0</td><td>35.0/19.1</td><td>35.0/19.1</td></tr><tr><td>iSUN</td><td>40.6/21.8</td><td>40.6/21.7</td><td>40.6/28.9</td><td>40.6/ 21.9</td><td>40.6/21.3</td><td>40.6/22.8</td><td>40.6/22.8</td></tr><tr><td>Gaussian</td><td>1.6/0.0</td><td>1.6/0.0</td><td>1.6/0.4</td><td>1.6/0.0</td><td>1.6/0.0</td><td>1.6/0.0</td><td>1.6/0.0</td></tr><tr><td>Uniform</td><td>0.3/0.0</td><td>0.3/0.0</td><td>0.3/0.0</td><td>0.3/0.0</td><td>0.3/0.0</td><td>0.3/0.0</td><td>0.3/0.0</td></tr></table>
483
+
484
+ Table 11: Detection performance across different datasets. Each row corresponds to the FPR at TPR $9 5 \%$ on the same test set where parameters are tuned under different tuning sets. Each column corresponds to the FPR at TPR $9 5 \%$ on different test sets where parameters are tuned under the same tuning set. The Wide-ResNet is trained on CIFAR-10.
485
+
486
+ ![](images/ca62f28095afb45ac95cc6b63d2cf6e5da5918b077eaa2278439e09e325c0d61.jpg)
487
+ Figure 16: (a) The test accuracy on the images having softmax scores above the threshold corresponding to a certain true positive rate. (b) The test accuracy on the images having softmax scores below the threshold corresponding to a certain true positive rate. All networks are trained on CIFAR-10.
488
+
489
+ ![](images/79ac9013944515920bb62f247f16785ff2ed034895842149971b4dec19911fc5.jpg)
490
+ Figure 17: Outputs of DenseNet on thirty classes for an image of apple from CIFAR-80 and an image of red pepper from CIFAR-20. The label $\ddot { } \mathrm { ~ 0 ~ } ^ { 5 }$ denotes the class “apple” and the label “49" denotes the class “orange".
491
+
492
+ # I ADDITIONAL ANALYSIS
493
+
494
+ Difficult-to-classify images and difficult-to-detect images. We analyze the correlation between the images that tend to be out-of-distribution and images on which the neural network tend to make incorrect predictions. To understand the correlation, we devise the following experiment. For the fixed temperature $T$ and perturbation magnitude $\varepsilon$ , we first set $\delta$ to the softmax score threshold corresponding to a certain true positive rate. Next, we calculate the test accuracy on the images with softmax scores above $\delta$ and the test accuracy on the images with softmax score below $\delta$ , respectively. We report the results in Figure 16(a) and (b). From these two figures, we can observe that the images that are difficult to detect are more likely to be the images that are difficult to classify. For example, the DenseNet can achieve up to $9 8 . 5 \%$ test accuracy on the images having softmax scores above the threshold corresponding to $80 \%$ TPR, but can only achieve around $82 \%$ test accuracy on the images having softmax scores below the threshold corresponding to $80 \%$ TPR.
495
+
496
+ Same manifold datasets. We provide additional empirical results showing how the term $E [ U _ { 2 } | U _ { 1 } ]$ affects the detection performance when in- and out-of-distribution datasets locate on the same manifold. In Figure 17, we show the outputs of DenseNet on thirty classes for an image of apple from CIFAR-80 (in-distribution) and an image of red pepper of CIFAR-20 (out-distribution). We can observe that the outputs of DenseNet for both images are quite similar to each other. In addition, we can observe that for both images, the second and third largest output are quite close to the largest output. This may be due the fact the image of red pepper shares some common features with the images in CIFAR-80. Furthermore, the similarity between the outputs for the images from
497
+
498
+ Table 12: Distinguishing in- and out-of-distribution test set data for image classification. All values are percentages. $\uparrow$ indicates larger value is better, and $\downarrow$ indicates lower value is better. The architecture is DenseNet.
499
+
500
+ <table><tr><td></td><td>Out-of-distribution dataset</td><td>FPR (95% TPR) √</td><td>Detection Error √</td><td>AUROC</td><td>AUPR In</td><td>AUPR Out →</td></tr><tr><td></td><td></td><td colspan="5">Baseline (Hendrycks &amp; Gimpel, 2017)/Ours</td></tr><tr><td>CIFAR-10</td><td>CIFAR-100</td><td>57.1/47.2</td><td>31.1/26.1</td><td>89.0/89.8</td><td>91.2/91.4</td><td>86.8/88.7</td></tr><tr><td>CIFAR-100</td><td>CIFAR-10</td><td>81.8/81.4</td><td>43.4/43.2</td><td>76.1/76.7</td><td>79.9/80.4</td><td>71.3/72.6</td></tr></table>
501
+
502
+ CIFAR-80 and CIFAR-20 can help explain that the detection task becomes harder when in- and out-of-distribution datasets locate on the same manifold.
503
+
504
+ Reciprocal results between datasets. In Table 12, we show the reciprocal results between datasets. First, we train the DenseNet on the CIFAR-10 dataset (in-distribution) and evaluate the detection performance on the CIFAR-100 dataset (out-distribution). Next, we train the DenseNet on the CIFAR-100 dataset (in-distribution) and evaluate the detection performance on the CIFAR-10 dataset (out-distribution). From Table 12, we can observe that the performance of the DenseNet trained on CIFAR-10 is better than the performance of the DenseNet trained on CIFAR-100. This may be due to the fact that the DenseNet has a higher test accuracy on CIFAR-10 (around $9 5 \%$ ) compared to the test accuracy on CIFAR-100 (around $7 7 \%$ ).
parse/train/H1VGkIxRZ/H1VGkIxRZ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1VGkIxRZ/H1VGkIxRZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1VGkIxRZ/H1VGkIxRZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/IrM64DGB21/IrM64DGB21.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/IrM64DGB21/IrM64DGB21_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/IrM64DGB21/IrM64DGB21_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/IrM64DGB21/IrM64DGB21_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/O6LPudowNQm/O6LPudowNQm.md ADDED
@@ -0,0 +1,806 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INT: AN INEQUALITY BENCHMARK FOR EVALUATING GENERALIZATION IN THEOREM PROVING
2
+
3
+ Yuhuai $\mathbf { W } \mathbf { u } ^ { * } ,$ , Albert Qiaochu Jiang∗, Jimmy Ba & Roger Grosse University of Toronto & Vector Institute {ywu, ajiang, jba, rgrosse}@cs.toronto.edu
4
+
5
+ # ABSTRACT
6
+
7
+ In learning-assisted theorem proving, one of the most critical challenges is to generalize to theorems unlike those seen at training time. In this paper, we introduce INT, an INequality Theorem proving benchmark designed to test agents’ generalization ability. INT is based on a theorem generator, which provides theoretically infinite data and allows us to measure 6 different types of generalization, each reflecting a distinct challenge, characteristic of automated theorem proving. In addition, INT provides a fast theorem proving environment with sequence-based and graph-based interfaces, conducive to performing learning-based research. We introduce baselines with architectures including transformers and graph neural networks (GNNs) for INT. Using INT, we find that transformer-based agents achieve stronger test performance for most of the generalization tasks, despite having much larger outof-distribution generalization gaps than GNNs. We further find that the addition of Monte Carlo Tree Search (MCTS) at test time helps to prove new theorems.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Advances in theorem proving can catalyze developments in fields including formal mathematics (McCune, 1997), software verification (Darvas et al., 2005), and hardware design (Kern and Greenstreet, 1999). Following its recent success across other application domains, machine learning has significantly improved the performance of theorem provers (Bansal et al., 2019; Bridge et al., 2014; Gauthier et al., 2018; Huang et al., 2019; Irving et al., 2016; Kaliszyk et al., 2018; Lee et al., 2020; Loos et al., 2017; Urban et al., 2011; Wang and Deng, 2020; Yang and Deng, 2019; Li et al., 2020; Rabe et al., 2020; Polu and Sutskever, 2020). Two key factors that make theorem proving particularly challenging for ML are data sparsity and that it requires out-of-distribution generalization.
12
+
13
+ Firstly, due to the difficulty of formalizing mathematics for humans, manually generated formal proofs are necessarily expensive. Typical formal mathematics datasets contain thousands (Huang et al., 2019) to tens-of-thousands (Yang and Deng, 2019) of theorems — orders of magnitude smaller than datasets that enabled breakthroughs in areas such as vision (Deng et al., 2009) and natural language processing (Rajpurkar et al., 2016). Secondly, the assumption frequently made in machine learning that each data point is identically and independently distributed does not hold in general for theorem proving: interesting problems we want to prove are non-trivially different from those we have proofs for. Hence, the out-of-distribution generalization ability is crucial.
14
+
15
+ Synthetic datasets that rely on procedural generation provide a potentially unlimited amount of data. Well-designed synthetic datasets have been shown to help understand the capabilities of machine learning models (Johnson et al., 2017; Ros et al., 2016; Weston et al., 2016). With the goal of alleviating the data scarcity problem and understanding out-of-distribution generalization for theorem proving, we introduce INT. INT is a synthetic INequality Theorem proving benchmark designed for evaluating generalization. It can generate a theoretically unlimited number of theorems and proofs in the domain of algebraic equalities and inequalities. INT allows tweaking of its problem distribution along 6 dimensions, enabling us to probe multiple aspects of out-of-distribution generalization. It is accompanied by a fast proof assistant with sequence and graph-based interfaces. A common reservation to hold for synthetic datasets is one of realism: can synthetic data help to prove realistic theorems? Polu and Sutskever (2020) adopted our generation method and showed that augmentation of $1 \%$ of synthetic theorems in training helped to complete $2 . 3 \%$ more proofs on Metamath (Megill and Wheeler, 2019). This demonstrates the usefulness of INT in real mathematics.
16
+
17
+ Time and memory requirements for the proof assistant have often been an obstacle for using theorem provers as RL environments. Most existing proof assistants require a large software library to define numerous mathematical theorems, leading to slow simulation. Therefore, a key design objective for INT was to be lightweight and swift. Taking advantage of the limited scope of inequality theorems, we load a minimal library and achieve fast simulation. Reducing the simulation overhead allows for experimentation with planning methods such as MCTS which requires many calls to a simulator.
18
+
19
+ We summarize the contributions of this paper as follows:
20
+
21
+ 1. We make, to the best of our knowledge, the first attempt to investigate an important question in learning-assisted theorem proving research, i.e., can theorem provers generalize to different problem distributions? We introduce INT for evaluating six dimensions of generalization. 2. We introduce and benchmark baseline agents for the six types of generalization tasks in INT. We find that transformer-based agents’ generalization abilities are superior when training and test data are drawn from the same distribution and inferior in out-of-distribution tasks in INT, compared to GNN-based agents. Surprisingly, despite larger generalization gaps, transformer-based agents have favorable test success rates over GNN-based ones in most cases. 3. We find that searching with MCTS at test time greatly improves generalization.
22
+
23
+ # 2 RELATED WORKS
24
+
25
+ Automatic and Interactive Theorem Proving. Modern Automatic Theorem Provers (ATPs) such as E (Schulz, 2013) and Vampire (Kovács and Voronkov, 2013) represent mathematical theorems in first-order logic and prove them with resolution-based proof calculi. On the other hand, Interactive Theorem Provers (ITPs) allow human formalization of proofs. This perhaps makes them more suitable for biologically inspired methods such as machine learning. Famous ITPs include Isabelle (Paulson, 1986), Coq (Barras et al., 1999), LEAN (de Moura et al., 2015), and HOL Light (Harrison, 1996).
26
+
27
+ Learning-assisted Theorem Proving. Theorem provers have been improved by supervised learning (Urban et al., 2011; Bridge et al., 2014; Irving et al., 2016; Loos et al., 2017; Wang et al., 2017; Rocktäschel and Riedel, 2017; Bansal et al., 2019; Gauthier et al., 2018; Huang et al., 2019; Yang and Deng, 2019; Kaliszyk and Urban, 2015; Polu and Sutskever, 2020; Li et al., 2020; Rabe et al., 2020; Jakubuv and Urban, 2019; Olsák et al., 2020; Jakubuv et al., 2020; Kaliszyk et al., 2015; Gauthier and Kaliszyk, 2015). Wang et al. (2017) used graph embeddings to represent logic formulas and achieved state-of-the-art classification accuracy on the HolStep dataset (Kaliszyk et al., 2017). Reinforcement learning (RL) was employed in (Zombori et al., 2019; Gauthier, 2019; 2020). Kaliszyk et al. (2018) combined MCTS with RL to prove theorems with connection tableau. Notably, GPT-f (Polu and Sutskever, 2020) adopts our INT generation method for dataset augmentation.
28
+
29
+ Datasets for Theorem Proving. There have been many formal mathematical libraries (Megill and Wheeler, 2019; Rudnicki, 1992; Gauthier, 2019). Formalized mathematical theorems include the Feit-Thompson theorem (Gonthier et al., 2013) and the Kepler Conjecture (Hales et al., 2017). The largest human formal reasoning dataset is IsarStep (Li et al., 2020), where they mined the archive of formal proofs and brought together 143K theorems in total. These works rely on human efforts to formalize theorems, which leads to small to moderate-sized datasets. There have been studies on synthesizing theorems (Urban, 2007; Urban et al., 2008; Piotrowski and Urban, 2018; Gauthier et al., 2017; 2016; Chvalovsky et al., 2019; Lenat, 1976; Fajtlowicz, 1988; Colton, 2012; Johansson \` et al., 2014) It is worth mentioning that there have been a few approaches (Urban and Jakubv, 2020; Wang and Deng, 2020) on neural theorem synthesizers. Our theorem generator INT is designed to be capable of creating an infinite number of theorems, as well as benchmarking the generalization ability of learning-assisted theorem provers.
30
+
31
+ # 3 THE INT BENCHMARK DATASET AND PROOF ASSISTANT
32
+
33
+ Our INT benchmark dataset provides mathematical theorems and a means to study the generalization capability of theorem provers. For this purpose, we need control over the distribution of theorems:
34
+
35
+ this is achieved by a highly customizable synthetic theorem generator. We used a set of ordered field axioms (Dummit and Foote, 2004) to generate inequality theorems and a subset of it to generate equality theorems. Details of the axiomization schemes can be found in Appendix A. The code for generating theorems and conducting experiments is available at https://github.com/ albertqjiang/INT.
36
+
37
+ # 3.1 TERMINOLOGY
38
+
39
+ The axiom combination of a proof refers to the set of axioms used in constructing it. The sequence of axioms applied in order in the proof is called the axiom order. For example, let $A , B , C$ denote three unique axioms, and their order of application in a proof be $[ B , B , A , C ]$ . In this case, the axiom combination is the set $\{ A , B , C \}$ and the axiom order is the sequence $\left[ B , \bar { B } , A , C \right]$ . An initial condition is a (usually trivial) logic statement (e.g. $a = a$ ) to initiate the theorem generation process. The degree of an expression is the number of arithmetic operators used to construct it. For example, degree $( a ) = 0$ while degree $( ( a * c ) * b ) ^ { 2 } ) = 3$ .
40
+
41
+ # 3.2 INT ASSISTANT
42
+
43
+ ![](images/8afe46e08dddbcd9dcf0c5cfb84349e176cf3b9c5670955e0a56b15a120bbd1c.jpg)
44
+ Figure 1: A proof of $a + b + c = c + a + b$ in LEAN and INT, with seq2seq and graph interfaces.
45
+
46
+ We built a lightweight proof assistant to interact with theorem provers. It has two interfaces, providing theorem provers with sequential and graph representations of the proof state, respectively.
47
+
48
+ A problem in INT is represented by a goal and a set of premises (e.g. $a + 0 = a , \emptyset )$ , which are mathematical propositions. The INT assistant maintains a proof state composed of the goal and the proven facts. The proof state is initialized to be just the goal and premises of the theorem. A proof is a sequence of axiom-arguments tuples (e.g. [(AdditionZero, $[ a + 0 ] )$ ]). At each step of the proof, a tuple is used to produce a logical relation in the form of assumptions conclusions (e.g. $\emptyset a + 0 = a _ { \mathrm { . } }$ ). Then, if the assumptions are in the proven facts, the conclusions are added to the proven facts; if the conclusions include the goal, the unproven assumptions will become the new goal. The assistant considers the theorem proven, if after all steps in the proof are applied, the goal is empty or trivial.
49
+
50
+ In Figure 1, we present the same proof in LEAN (de Moura et al., 2015) and INT assistants. They both process proofs by simplifying the goal until it is trivial. The INT assistant’s seq2seq interface (Figure 1b) is very similar to that of LEAN (Figure 1a) with the rewrite tactic. An action is composed of an axiom followed by argument names and their positions in the proof state. in obj indicates that the arguments can be found in the objective. The graph interface (Figure 1c) of the INT assistant allows theorem provers to chose axiom arguments from the computation graphs of the proof state by node. We can view theorem proving with this interface as a graph manipulation task.
51
+
52
+ INT assistant provides fast simulation. To demonstrate this, we produced 10,000 typical proof steps in both interfaces, 40-character-long on average. We executed them with HOL Light (Harrison, 1996) and INT assistant. The average time it takes per step is 7.96ms in HOL Light and $1 . 2 8 \mathrm { m s }$ in INT, resulting in a $6 . 2 \times$ speedup. The correctness of the proofs is ensured by a trusted core of fewer than 200 lines of code.
53
+
54
+ # 3.3 THEOREM GENERATOR
55
+
56
+ One of the main contributions of this paper is to provide a generation algorithm that is able to produce a distribution of non-trivial synthetic theorems given an axiom order. Generating theorems by randomly sampling axiom and argument applications will often yield theorems with short proofs. Instead, we write production rules for axioms in the form of transformation and extension rules. With these production rules, we can find arguments and new premises required for longer proofs.
57
+
58
+ We provide the theorem generation algorithm in Algorithm 1. The general idea of the algorithm is to morph a trivial logic statement into one that requires a non-trivial proof; we call this statement the core logic statement. We initiate the core logic statement $C _ { 0 }$ to be one of the initial conditions. At step $t$ of the generation process, we are given an axiom $a _ { t }$ specified by the axiom order. We apply the MORPH function associated with the axiom $a _ { t }$ to $C _ { t - 1 }$ and derive a new logic statement $C _ { t }$ and corresponding premises $P _ { t }$ . The key design idea in the MORPH function is to ensure that the newly
59
+
60
+ # Algorithm 1 Theorem Generator
61
+
62
+ 1: function GENERATE_THEOREM(initial conditions $\mathcal { T }$ , axiom order $A$ )
63
+ 2: Axiom order length $L = \operatorname { l e n } ( A )$ .
64
+ 3: Initialize core logic statement $C _ { 0 } \sim U n i f o r m ( \mathscr { T } )$ , and the set of premises $P = \{ C _ { 0 } \}$ .
65
+ 4: for $t \gets 1$ to $L$ do
66
+ 5: Get axiom $a _ { t } A [ t ]$ .
67
+ 6: Get new logic statement and premises: $C _ { t }$ $\Upsilon _ { t } , P _ { t } \gets \mathrm { M O R P H } \left( a _ { t } , C _ { t - 1 } \right) .$ .
68
+ 7: Add new premises to the set of all premises: $P P \cup P _ { t }$ .
69
+ 8: end for
70
+ 9: return $C _ { L } , P$
71
+ 10: end function
72
+
73
+ generated logic statement and the premises form the implication $C _ { t - 1 } , a _ { t } , P _ { t } \to C _ { t }$ (see Appendix B
74
+ for detailslength is statement herefore, weaxiom order: and its premi $\Upsilon _ { 0 } , \{ a _ { t } , P _ { t } \} _ { t = 1 } ^ { L } \dot { { } } C _ { L }$ ns from, where urned as $L$ ll steps together to obtain a proof whosedenotes the length. The last core logiche theorem generated. Below we show a $C _ { L }$ $C _ { 0 }$ $\{ P _ { t } \} _ { t = 1 } ^ { L }$
75
+ step-by-step example of how a theorem is generated with our algorithm.
76
+
77
+ # A worked example
78
+
79
+ Use Algorithm 1 to generate a theorem with initial conditions $\mathcal { T }$ : { $a = a$ , $b = b$ , $c = c$ , $d = d$ , $e = e$ } and axiom order $A$ : [AdditionAssociativity (AA), AdditionCommutativity (AC), EquivalenceImpliesDoubleInequality (EIDI), FirstPrincipleOfInequality (FPI)].
80
+
81
+ Core logic statement C0 ∼ Unifor $m ( { \mathcal { T } } ) : a = a$ .
82
+ Step 1: $a _ { 1 } = \mathtt { A } \mathtt { A }$ . $C _ { 1 }$ : $a + ( b + c ) = ( a + b ) + c , P _ { 1 } = \emptyset$ .
83
+ Step 2: $a _ { 2 } = \mathtt { A C }$ . $C _ { 2 }$ : $a + ( b + c ) = ( b + a ) + c ,$ $P _ { 2 } = \varnothing$ .
84
+ Step 3: $a _ { 3 } = \mathtt { E I D I }$ . $C _ { 3 }$ $\begin{array} { r } { \mathrm { ~ 3 : ~ } a + ( b + c ) \geq ( b + a ) + c , } \end{array}$ $P _ { 3 } = \varnothing$ .
85
+ Step 4: $a _ { 4 } = \mathrm { F P I } . C _ { 4 }$ : $( a + ( b + c ) ) + d \geq ( ( b + a ) + c ) + e , P _ { 4 } = \{ d \geq e \} .$
86
+
87
+ Theorem generated: Given $d \geq e$ , prove $a + ( b + c ) + d \geq b + a + c + e .$
88
+
89
+ With recorded axiom and argument applications, we can synthesize proofs to the theorems. The proofs can be used for behavior cloning. Appendix E shows statistics of the generated proofs, including the distribution of length of theorems in characters, the distribution of axioms, and the distribution of the number of nodes in proof state graphs.
90
+
91
+ # 4 EXPERIMENTS
92
+
93
+ Our experiments are intended to answer the following questions:
94
+
95
+ 1. Can neural agents generalize to theorems: 1) sampled from the same distribution as training data, 2) with different initial conditions, 3) with unseen axiom orders, 4) with unseen axiom combinations, 5) with different numbers of unique axioms, 6) with shorter or longer proofs?
96
+
97
+ ![](images/1a921ca31fcd7eb4896aac4e1593a6196c7e5aab49e53e9959f1ebd9ec62f8ea.jpg)
98
+ Figure 2: Proof success rates on problems generated with different $K$ and $L$ parameters. Left: When the IID assumption holds, the success rate decreases as the two generation parameters $K$ and $L$ are increased. Right: All agents are trained on degree-0 problems and evaluated against problems of degree 0, 1, and 2. We find that transformer-based agents deteriorate in performance as the test problems become more complex than training problems. For GNN-based agents, there are no obvious trends as to how the proof success rate changes as the degree of the initial entities is varied.
99
+
100
+ ![](images/b7a06dca13c599efe784413163137dad81c9b313a9b4d1a69a76c5fee0089940.jpg)
101
+
102
+ 2. How do different architectures (transformer vs. GNN) affect theorem provers’ in-distribution and out-of-distribution generalization?
103
+
104
+ 3. Can search at test time help generalization?
105
+
106
+ # 4.1 EXPERIMENT DETAILS
107
+
108
+ In the following experiments, we used the proofs generated by the INT generator to perform behavior cloning. We then evaluated the success rates of trained agents in a theorem proving environment. We denote the cardinality of an axiom combination as $K$ and the length of a proof as $L$ . In the worked example, $K = 4$ and $L = 4$ . For each theorem distribution, we first generated a fixed test set of 1000 problems, and then produced training problems in an online fashion, while making sure the training problems were different from the test ones. For each experiment, we generated 1000 problems and performed 10 epochs of training before generating the next 1000. We ran 1500 such iterations in total, with 1.5 million problems generated. We used the Adam optimizer (Kingma and Ba, 2015). We searched over the learning rates $\{ 1 0 ^ { - 5 } , 3 \cdot 1 0 ^ { - 5 } , 1 0 ^ { - 4 } , 3 \cdot 1 0 ^ { \frac { . } { - 4 } } \}$ in preliminary experiments and found $1 0 ^ { - 4 }$ to be the best choice, which was used for following experiments. We used one Nvidia P100 or Tesla T4 GPU with 4 CPU cores for training. For each experiment, we ran 2 random seeds, and picked the one with higher validation success rates for test evaluation. Since this paper focuses on inequalities, all figures and tables in the main text are based on results from the ordered-field axiomization. We also include results of GNN-based agents on equalities in Appendix G.
109
+
110
+ # 4.2 NETWORK ARCHITECTURES
111
+
112
+ In this section, we introduce four baselines built on commonly used architectures: Transformers (Vaswani et al., 2017), Graph Neural Networks (GNNs), TreeLSTMs (Tai et al., 2015) and Bag-of-Words (BoWs). In preliminary experiments, we found Graph Isomorphism Networks (GINs) (Xu et al., 2019) to have performed the best among several representative GNN architectures. So we used GIN as our GNN of choice. Transformers interact with the INT proof assistant through the seq2seq interface while the other baselines through the graph interface.
113
+
114
+ ![](images/1747adfa8923526e1b3cc58ce25424215edcb3a4852d3f63576c251e81565065.jpg)
115
+ Figure 3: Proof success rates on test problems generated with $K$ and $L$ settings. Transformer and GNN perform well; TreeLSTM has mediocre performance; and Bag-of-Words performs poorly: it cannot prove more than $5 \%$ of problems.
116
+
117
+ For sequence-to-sequence training, we used a character-level transformer architecture with 6 encoding layers and 6 decoding layers. We used 512 embedding dimensions, 8 attention heads and 2048 hidden dimensions for position-wise feedforward layers. We used dropout with rate 0.1, label smoothing with coefficient 0.1, and a maximum 2048 tokens per batch. The library fairseq (Ott et al., 2019) was used for its implementation.
118
+
119
+ Table 1: Left: Average success rates $( \mathrm { i n } \% )$ ) of agents trained on different numbers of axiom orders. Right: Average success rates (in $\%$ ) of agents trained on different numbers of axiom combinations.
120
+
121
+ <table><tr><td rowspan="2"># Axiom orders</td><td colspan="2">100</td><td colspan="2">500</td><td colspan="2">2000</td><td colspan="2">5000</td></tr><tr><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td></tr><tr><td>Transformer</td><td>93.2</td><td>10.0</td><td>93.4</td><td>62.8</td><td>93.6</td><td>87.9</td><td>93.7</td><td>91.8</td></tr><tr><td>GNN</td><td>87.6</td><td>21.1</td><td>86.6</td><td>53.6</td><td>79.0</td><td>70.4</td><td>75.7</td><td>74.7</td></tr></table>
122
+
123
+ <table><tr><td rowspan="2">#Axiom combinations</td><td colspan="2">25</td><td colspan="2">100</td><td colspan="2">200</td><td colspan="2">300</td></tr><tr><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td></tr><tr><td>Transformer</td><td>96.1</td><td>29.3</td><td>96.0</td><td>71.8</td><td>95.4</td><td>88.4</td><td>94.4</td><td>91.3</td></tr><tr><td>GNN</td><td>79.1</td><td>47.5</td><td>76.6</td><td>68.0</td><td>72.6</td><td>72.4</td><td>72.8</td><td>71.9</td></tr></table>
124
+
125
+ For data in the graph form, each node in computation graphs corresponds to a character in the formula. We first used a learnable word embedding of dimension 512 to represent each node. We then used 6 GIN layers to encode graph inputs into vector representations, each with 512 hidden dimensions. The graph representation was obtained by taking the sum of all the node embeddings. For the TreeLSTM and the BoW baselines, we used a bidirectional TreeLSTM with 512 hidden dimensions and a BoW architecture to compute the graph representation vectors from node embeddings. The hyper-parameters used were found to be optimal in preliminary experiments. We then proposed axioms conditioned on the graph representations, with a two-layer MLP of hidden dimension 256. Conditioning on the graph representation and axiom prediction, the arguments are selected in an autoregressive fashion. Namely, the prediction of the next node is conditioned on the previous ones. For each argument prediction, we used a one-layer MLP with a hidden size of 256. We used graph neural network libraries Pytorch Geometric (Fey and Lenssen, 2019) for the GIN implementation, and DGL (Wang et al., 2019) for the TreeLSTM implementation.
126
+
127
+ We trained agents based on architectures mentioned above by behavior cloning on theorems of various length $( L )$ and number of axioms $( K )$ . The success rates for proving 1000 test theorems are plotted in Figure 3. As the BoW architecture did not utilize the structure of the state, it failed miserably at proving theorems, indicating the significance of the structural information. TreeLSTM performed worse than the graph neural network baseline. The transformer and the GNN baselines perform the best among the architectures chosen and they take inputs in sequential and graph forms, respectively. Thus, we used these two architectures in the following experiments to investigate generalization.
128
+
129
+ # 4.3 BENCHMARKING SIX DIMENSIONS OF GENERALIZATION
130
+
131
+ IID Generalization In this experiment, the training and test data are independently and identically distributed (IID). The performances of our transformer-based and GNN-based agents are displayed on the left in Figure 2. As can be seen, the performance of agents examined on train and test problems are very similar. The largest difference between train and test success rates is $2 \%$ $( K 3 L 7 )$ . Notably, transformer-based agents complete $1 5 . 3 \%$ more test proofs than GNN-based agents on average.
132
+
133
+ Initial Condition Consider two theorems: (1) $( a + b ) ^ { 2 } = a ^ { 2 } + b ^ { 2 } + 2 a b$ and (2) $( a + ( b + c ) ) ^ { 2 } =$ $a ^ { 2 } + ( b + c ) ^ { 2 } + 2 a ( b + c )$ . The two problems take the same axioms and the same number of steps to prove. However, the axiom argument complexities are different, which can be seen as a result of varying initial conditions. Can agents trained on problems like (1) prove theorems like (2)?
134
+
135
+ For an initial condition of the form $X = X$ , we use the degree of the entity $X$ to determine the complexity. In this experiment, we trained agents on problems with initial conditions made up of entities of degree 0, and evaluated them on ones of degrees 1 and 2. The results are presented in Figure 2 (b) with various $K$ and $L$ . For transformer-based agents, the success rate drops $2 5 . 6 \%$ on degree-1 problems and $3 1 . 5 \%$ on degree-2 problems on average. However, for GNN-based agents, the largest generalization gap between training and test success rates is $3 \%$ $X 3 L 5 )$ . This shows that GNN agents can generalize to problems of higher complexities while transformer agents struggle.
136
+
137
+ Axiom Orders Let $A$ and $B$ represent two different axioms. There are multiple orders in which they can be applied in a $K 2 L 3$ problem. $O _ { 1 } = [ A , A , B ]$ and $O _ { 2 } = [ B , A , B ]$ are two examples. Can an agent trained on problems generated with $O _ { 1 }$ prove theorems generated with $O _ { 2 }$ ?
138
+
139
+ For both architectures, we investigated how well agents can generalize to problems with different axiom orders than those in training. We generated 100, 500, 2000, and 5000 axiom orders to use in the training set for different $K$ and $L$ settings. We evaluated the test success rates on 1000 unseen axiom orders with the corresponding $K$ and $L$ settings and averaged them. The results averaged over different $K$ and $L$ settings are shown on the left of Table 1 (See Appendix G.5 for the full results).
140
+
141
+ It can be observed in the table that the test success rates rise when we increase the number of axiom orders in the training set. We notice that transformer-based agents have worse generalization than
142
+
143
+ ![](images/6526a0ed7944380306284a8edca97e5c88bc72921ab66a356fa8fcde21db7d89.jpg)
144
+ Figure 4: Proof success rates on problems generated with different parameters. Left: We keep $L$ the same and vary $K$ . The success rate is likely to decrease when the test problems have different $K$ from the training problems. Right: We keep $K$ the same and vary $L$ . For all agents, the proof success rate is lower on theorems that require longer proofs.
145
+
146
+ GNN-based ones, as their average generalization gap is larger. This is particularly true when the number of axiom orders in the training set is 100: transformer-based agents can prove only $1 0 . 0 \%$ of test theorems. Remarkably, they still manage to complete more proofs than GNNs when the number of axiom orders in the training set exceeds 500.
147
+
148
+ Axiom Combinations Consider three problems provable in the ordered field axiomization (Appendix A): (1) $a ^ { 2 } \geq 0$ , (2) $a * ( b + c ) = b * a + a * c .$ , and (3) $a ^ { 2 } + b ^ { 2 } - 2 a b \geq 0 $ . Solving (1) requires axiom SquareGEQZero (SGEQZ). Solving (2) requires axiom AdditionMultiplicationDistribution (AMD) and axiom MultiplicationCommutativity (MC). Solving (3) requires axiom SGEQZ and axiom AMD. Notice that all axioms used to prove (3) appear in the proofs of (1) and (2). We ask: can an agent trained on theorems like (1) and (2) prove theorems like (3)?
149
+
150
+ In this set of experiments, we investigated how well theorem provers can generalize to problems with different axiom combinations than those in training for both architectures. We used 25, 100, 200, and 300 axiom combinations to generate the training set with various $K$ and $L$ settings, and evaluated the agents on test sets generated with 300 unseen combinations. The results averaged over different $K$ and $L$ settings are displayed on the right in Table 1 (See Appendix G.5 for full results). As the number of axiom combinations in training set increases, the generalization gap decreases and test success rate improves. The transformer-based agents have larger generalization gaps than GNN-based ones. This is particularly obvious when there are 25 axiom combinations: the generalization gap is $6 6 . 8 \%$ for transformers and $3 1 . 6 \%$ for GNNs. The test success rate of transformers is $1 8 . 2 \%$ lower than that of GNNs in this setting. Yet when there are more than 100 axiom combinations in training, transformers always perform better on the test sets, completing $3 . 8 \% - 1 9 . 6 \%$ more proofs. When the data is diverse, transformers perform better; when it is insufficient, GNNs are better. This might be due to the difference in the inductive bias used by both structures and might explain the choice of neural architectures in deep learning practice.
151
+
152
+ Number of Axioms Here we investigated how well theorem provers could generalize to test problems that were generated with a different number of axioms than at training time. For instance, let $A$ , $B$ and $C$ represent different axioms. Will agents trained on $K 2 L 3$ axiom orders like $[ A , B , A ]$ and $[ C , C , B ]$ be able to prove theorems generated with $K 3 L 3$ axiom orders like $[ A , B , C ] ^ { i }$ ?
153
+
154
+ We trained the agents on problems that have the same proof length $ { \Sigma } = { \mathsf { 7 } } ,$ ) and varying $K \mathbf { s } .$ . The results are on the left of Figure 4. It can be observed from the figure that in general, agents perform the best on the $K$ they were trained on and worse when $K$ shifts away. Transformer-based agents showed better performances in all $K$ and $L$ settings, completing $2 0 . 9 \%$ more proofs than GNN-based ones on average. The success rates of transformer-based agents drop $5 . 6 \%$ on average when the test $K$ is shifted away by 1 from the training $K$ . For GNN-based agents, this averages to $5 . 1 \%$ . This shows that their generalization abilities to different number of axioms are similar.
155
+
156
+ Proof Length We tested the generalization ability of theorem provers over the dimension of proof length of the theorems. To do this, we kept the cardinality of the axiom set to be the same $K = 3$ ) and varied the evaluated problems’ proof length $\langle L = 3 , 5 , 7 \rangle$ ). The result is presented on the right of Figure 4. For all of the agents trained, the success rate decreases as the length of the proof increases. This is due to the natural difficulty of completing longer proofs. Observing the figure, we see that the longer the training problems, the less they deteriorate in performance when proofs becomes longer: agents trained on $K 3 L 3$ problems complete $1 8 . 8 \%$ fewer proofs when $L$ is increased by 1, while ones trained on $K 3 L 7$ complete $5 . 7 \%$ fewer. Furthermore, the performance of transformer-based agents decreases by $1 2 . 2 \%$ when the test proof length increases by 1, compared to $1 0 . 7 \%$ for GNN-based ones. This suggests that transformers have inferior proof length generalization abilities than GNNs.
157
+
158
+ Table 2: The behavior cloning (BC) agents versus the MCTS-assisted (search) agents. Left: The average success rates (in $\%$ ) of agents with and without MCTS over 1000 test theorems. Right: The average length of successful proofs by agents with and without MCTS over 1000 test theorems. $K$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof.
159
+
160
+ <table><tr><td rowspan="2">Train Evaluation</td><td colspan="2">K3L3</td><td colspan="2">K3L5</td><td colspan="2">K3L7</td></tr><tr><td>BC</td><td>Search</td><td>BC</td><td>Search</td><td>BC</td><td>Search</td></tr><tr><td>K3L3</td><td>92</td><td>98</td><td>91</td><td>97</td><td>81</td><td>96</td></tr><tr><td>K3L5</td><td>50</td><td>64</td><td>80</td><td>92</td><td>70</td><td>92</td></tr><tr><td>K3L7</td><td>25</td><td>40</td><td>64</td><td>78</td><td>58</td><td>81</td></tr><tr><td>Average</td><td>56</td><td>67</td><td>78</td><td>89</td><td>69</td><td>90</td></tr></table>
161
+
162
+ <table><tr><td rowspan="2">Train Evaluation</td><td colspan="2">K3L3</td><td colspan="2">K3L5</td><td colspan="2">K3L7</td></tr><tr><td>BC</td><td>Search</td><td>BC</td><td>Search</td><td>BC</td><td>Search</td></tr><tr><td>K3L3</td><td>3.83</td><td>3.33</td><td>4.00</td><td>3.52</td><td>5.00</td><td>3.67</td></tr><tr><td>K3L5</td><td>7.54</td><td>6.82</td><td>6.2</td><td>5.52</td><td>6.84</td><td>5.56</td></tr><tr><td>K3L7</td><td>9.05</td><td>8.54</td><td>8.01</td><td>7.53</td><td>8.39</td><td>7.50</td></tr><tr><td>Average</td><td>6.81</td><td>6.23</td><td>6.07</td><td>5.52</td><td>6.74</td><td>5.58</td></tr></table>
163
+
164
+ # 4.4 GENERALIZING WITH SEARCH
165
+
166
+ We investigated whether performing search at test time can help agents generalize. Specifically, we investigated the effectiveness of Monte-Carlo Tree Search (MCTS) in finding proofs for unseen theorems with GNN-based agents. We chose GNN-based agents because they are better at outof-distribution generalization than transformer-based ones. Straightforward application of MCTS is impractical: in our theorem proving environment, the action space can be as large as $1 . 3 { \bf M }$ in size (see Appendix H). Hence, it would be infeasible to expand all possible actions when constructing the MCTS trees. Thus, we only performed MCTS over the axiom space (18 distinct axioms in total), and the arguments were proposed by the behavior cloning agents. Following AlphaGo Zero/AlphaZero (Silver et al., 2017; 2018), we trained a value network to estimate the value of a state. The value network is an MLP with two hidden layers of size 256, taking the GNN global representations of graphs as input. It was trained on 1000 episodes of rollouts obtained by the behavior cloning agents, with a learning rate of $3 \cdot 1 0 ^ { - 6 }$ . We also followed AlphaZero for the choice of the upper confidence bound, and the way that actions are proposed using visit counts. We used 200 simulations for constructing MCTS trees. More details can be found in Appendix F. We took the agents trained on $" K 3 L 3 "$ , "K3L5", and "K3L7" from section 4.3, and evaluated the agents’ performance when boosted by MCTS.
167
+
168
+ Generalization The average success rates on 1000 test theorems are presented on the left in Table 2. We can see that search greatly improved the generalization results. It helped to solve $2 1 \%$ more problems on average for the agent trained on theorem distribution $K 3 L 7$ . Remarkably, when evaluating on $K 3 L 7$ theorems, search helped the $K 3 L 3$ agent improve its success rate from $2 5 \%$ to $4 0 \%$ : a relative improvement of $6 0 \%$ . It is interesting to see the $K 3 L 7$ behavior cloning agent solved $9 \%$ fewer problems on average than the $K 3 L 5$ agent. But search brought about much larger improvement to the $K 3 L 7$ agent and helped it to solve the largest proportion of problems on average – $9 0 \%$ . This indicates that skills learned through behavior cloning can be better exploited by searching.
169
+
170
+ The average proof length for 1000 problems is presented on the right in Table 2 (we count those unsolved problem as 15, the step limit of an episode). We can see that by performing search, we are able to discover proofs of length closer to the ground truth proof length. For test theorems requiring 3-step proofs, the $K 3 L 3$ agent was able to prove them in 3.33 steps on average, with a gap of 0.33 steps to the optimal value. Similarly, for test theorems requiring 5-step proofs, the $K 3 L 5$ agent was able to prove them in 5.52 steps on average, with a gap of 0.52 steps; and for theorems requiring 7-step proofs, $K 3 L 7$ agent achieved a gap of 0.5 steps.
171
+
172
+ # 4.5 DISCUSSION
173
+
174
+ Experimental results suggested that transformer-based agents can complete more proofs in the IID generalization scenario but have larger out-of-distribution generalization gaps than GNN-based ones. The larger gap may be due to the lack of constraints in the sequence-to-sequence framework, in which the model can propose sequences that are invalid actions, whereas the graph interface constrains the model to propose valid actions only. However, we still see that transformers are able to complete more proofs overall. This shows the superiority of transformers in model capacity when applied to theorem proving. This insight motivates us to explore the possibility of taking the best from both worlds, combining both graph structural information and the strong transformer architecture to improve learning-assisted theorem proving. We leave it for future work.
175
+
176
+ # 5 CONCLUSION
177
+
178
+ We addressed the problem of diagnosing the generalization weaknesses in learning-assisted theorem provers. We constructed INT, a synthetic benchmark of inequalities, to analyze the generalization of machine learning methods. We evaluated transformer-based and GNN-based agents and a variation of GNN-based agents with MCTS at test time. Experiments revealed that transformer-based agents generalize better when the IID assumption holds while GNN-based agents generalize better in outof-distribution scenarios. We also showed that search can boost the generalization ability of agents. We stress that proving theorems in INT is not an end in itself. A hard-coded expert system might perform well on INT but not generalize to real-world mathematical theorems. Therefore, INT should be treated as instrumental when diagnosing generalization of agents. The best practice is to use INT in conjunction with real mathematical datasets.
179
+
180
+ We believe our benchmark can also be of interest to the learning community, facilitating research in studying generalization beyond the IID assumption. The agents’ abilities to reason and to go beyond the IID assumption are essential in theorem proving, and studying how to acquire these abilities is at the frontier of learning research. In other domains requiring out-of-distribution generalization, such as making novel dialogs (Chen et al., 2017) or confronting unseen opponents in Starcraft (Vinyals et al., 2019), the requirements for data and computation forbid a generally affordable research environment. The INT benchmark provides practical means of studying out-of-distribution generalization.
181
+
182
+ # ACKNOWLEDGEMENTS
183
+
184
+ We thank Jay McClelland, Han Huang and Yuanhao Wang for helpful comments and discussions. We also thank anonymous reviewers for valuable and constructive feedbacks. We are grateful to the Vector Institute for providing computing resources. YW was supported by the Google PhD fellowship. AQJ was supported by a Vector Institute research grant.
185
+
186
+ # REFERENCES
187
+
188
+ Kshitij Bansal, Sarah M. Loos, Markus N. Rabe, Christian Szegedy, and Stewart Wilcox. Holist: An environment for machine learning of higher order logic theorem proving. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, volume 97 of Proceedings of Machine Learning Research, pages 454–463. PMLR, 2019. URL http: //proceedings.mlr.press/v97/bansal19a.html.
189
+
190
+ Bruno Barras, Samuel Boutin, Cristina Cornes, Judicaël Courant, Yann Coscoy, David Delahaye, Daniel de Rauglaudre, Jean-Christophe Filliâtre, Eduardo Giménez, Hugo Herbelin, et al. The Coq proof assistant reference manual. INRIA, version, 6(11), 1999.
191
+
192
+ James P. Bridge, Sean B. Holden, and Lawrence C. Paulson. Machine learning for first-order theorem proving. Journal of automated reasoning, 53(2):141–172, 2014.
193
+
194
+ Hongshen Chen, Xiaorui Liu, Dawei Yin, and Jiliang Tang. A survey on dialogue systems: Recent advances and new frontiers. Acm Sigkdd Explorations Newsletter, 19(2):25–35, 2017.
195
+
196
+ Karel Chvalovsky, Thibault Gauthier, and Josef Urban. First experiments with data driven con-\` jecturing. AITP 2019, 2019. URL http://aitp-conference.org/2019/abstract/ AITP_2019_paper_27.pdf.
197
+
198
+ Simon Colton. Automated theory formation in pure mathematics. Springer Science & Business Media, 2012.
199
+
200
+ Ádám Darvas, Reiner Hähnle, and David Sands. A theorem proving approach to analysis of secure information flow. In International Conference on Security in Pervasive Computing, pages 193–209. Springer, 2005.
201
+
202
+ Leonardo de Moura, Soonho Kong, Jeremy Avigad, Floris Van Doorn, and Jakob von Raumer. The Lean theorem prover (system description). In International Conference on Automated Deduction, pages 378–388. Springer, 2015.
203
+
204
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2009), 20-25 June 2009, Miami, Florida, USA, pages 248–255. IEEE Computer Society, 2009. doi: 10.1109/CVPR.2009.5206848. URL https://doi.org/10. 1109/CVPR.2009.5206848.
205
+
206
+ David Steven Dummit and Richard M Foote. Abstract algebra, volume 3. Wiley Hoboken, 2004.
207
+
208
+ Siemion Fajtlowicz. On conjectures of graffiti. In Annals of Discrete Mathematics, volume 38, pages 113–118. Elsevier, 1988.
209
+
210
+ Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. CoRR, abs/1903.02428, 2019. URL http://arxiv.org/abs/1903.02428.
211
+
212
+ Thibault Gauthier. Deep reinforcement learning in HOL4. CoRR, abs/1910.11797, 2019. URL http://arxiv.org/abs/1910.11797.
213
+
214
+ Thibault Gauthier. Deep reinforcement learning for synthesizing functions in higher-order logic. In Elvira Albert and Laura Kovács, editors, LPAR 2020: 23rd International Conference on Logic for Programming, Artificial Intelligence and Reasoning, Alicante, Spain, May 22-27, 2020, volume 73 of EPiC Series in Computing, pages 230–248. EasyChair, 2020. URL https://easychair. org/publications/paper/Tctp.
215
+
216
+ Thibault Gauthier and Cezary Kaliszyk. Sharing HOL4 and HOL light proof knowledge. In Martin Davis, Ansgar Fehnker, Annabelle McIver, and Andrei Voronkov, editors, Logic for Programming, Artificial Intelligence, and Reasoning - 20th International Conference, LPAR20 2015, Suva, Fiji, November 24-28, 2015, Proceedings, volume 9450 of Lecture Notes in Computer Science, pages 372–386. Springer, 2015. doi: 10.1007/978-3-662-48899-7\_26. URL https://doi.org/10.1007/978-3-662-48899-7_26.
217
+
218
+ Thibault Gauthier, Cezary Kaliszyk, and Josef Urban. Initial experiments with statistical conjecturing over large formal corpora. In Andrea Kohlhase, Paul Libbrecht, Bruce R. Miller, Adam Naumowicz, Walther Neuper, Pedro Quaresma, Frank Wm. Tompa, and Martin Suda, editors, Joint Proceedings of the FM4M, MathUI, and ThEdu Workshops, Doctoral Program, and Work in Progress at the Conference on Intelligent Computer Mathematics 2016 co-located with the 9th Conference on Intelligent Computer Mathematics (CICM 2016), Bialystok, Poland, July 25-29, 2016, volume 1785 of CEUR Workshop Proceedings, pages 219–228. CEUR-WS.org, 2016. URL http: //ceur-ws.org/Vol-1785/W23.pdf.
219
+
220
+ Thibault Gauthier, Cezary Kaliszyk, and Josef Urban. Tactictoe: Learning to reason with HOL4 tactics. In Thomas Eiter and David Sands, editors, LPAR-21, 21st International Conference on Logic for Programming, Artificial Intelligence and Reasoning, Maun, Botswana, May 7- 12, 2017, volume 46 of EPiC Series in Computing, pages 125–143. EasyChair, 2017. URL https://easychair.org/publications/paper/WsM.
221
+
222
+ Thibault Gauthier, Cezary Kaliszyk, Josef Urban, Ramana Kumar, and Michael Norrish. Learning to prove with tactics. CoRR, abs/1804.00596, 2018. URL http://arxiv.org/abs/1804. 00596.
223
+
224
+ Georges Gonthier, Andrea Asperti, Jeremy Avigad, Yves Bertot, Cyril Cohen, François Garillot, Stéphane Le Roux, Assia Mahboubi, Russell O’Connor, Sidi Ould Biha, et al. A machine-checked proof of the odd order theorem. In International Conference on Interactive Theorem Proving, pages 163–179. Springer, 2013.
225
+
226
+ Thomas Hales, Mark Adams, Gertrud Bauer, Tat Dat Dang, John Harrison, Hoang Le Truong, Cezary Kaliszyk, Victor Magron, Sean McLaughlin, Tat Thang Nguyen, et al. A formal proof of the kepler conjecture. In Forum of mathematics, $P i$ , volume 5. Cambridge University Press, 2017.
227
+
228
+ John Harrison. HOL Light: A tutorial introduction. In International Conference on Formal Methods in Computer-Aided Design, pages 265–269. Springer, 1996.
229
+
230
+ Daniel Huang, Prafulla Dhariwal, Dawn Song, and Ilya Sutskever. GamePad: A learning environment for theorem proving. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. URL https://openreview. net/forum?id $=$ r1xwKoR9Y7.
231
+
232
+ Geoffrey Irving, Christian Szegedy, Alexander A. Alemi, Niklas Eén, François Chollet, and Josef Urban. DeepMath - deep sequence models for premise selection. In Daniel D. Lee, Masashi Sugiyama, Ulrike von Luxburg, Isabelle Guyon, and Roman Garnett, editors, Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 2235–2243, 2016. URL http://papers.nips.cc/paper/ 6280-deepmath-deep-sequence-models-for-premise-selection.
233
+
234
+ Jan Jakubuv and Josef Urban. Hammering mizar by learning clause guidance (short paper). In John Harrison, John O’Leary, and Andrew Tolmach, editors, 10th International Conference on Interactive Theorem Proving, ITP 2019, September 9-12, 2019, Portland, OR, USA, volume 141 of LIPIcs, pages 34:1–34:8. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi: 10.4230/ LIPIcs.ITP.2019.34. URL https://doi.org/10.4230/LIPIcs.ITP.2019.34.
235
+
236
+ Jan Jakubuv, Karel Chvalovský, Miroslav Olsák, Bartosz Piotrowski, Martin Suda, and Josef Urban. ENIGMA anonymous: Symbol-independent inference guiding machine (system description). In Nicolas Peltier and Viorica Sofronie-Stokkermans, editors, Automated Reasoning - 10th International Joint Conference, IJCAR 2020, Paris, France, July 1-4, 2020, Proceedings, Part II, volume 12167 of Lecture Notes in Computer Science, pages 448–463. Springer, 2020. doi: 10.1007/978-3-030-51054-1\_29. URL https://doi.org/10.1007/ 978-3-030-51054-1_29.
237
+
238
+ Moa Johansson, Dan Rosén, Nicholas Smallbone, and Koen Claessen. Hipster: Integrating theory exploration in a proof assistant. In International Conference on Intelligent Computer Mathematics, pages 108–122. Springer, 2014.
239
+
240
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2901–2910, 2017.
241
+
242
+ Cezary Kaliszyk and Josef Urban. Learning-assisted theorem proving with millions of lemmas. J. Symb. Comput., 69:109–128, 2015. doi: 10.1016/j.jsc.2014.09.032. URL https://doi.org/ 10.1016/j.jsc.2014.09.032.
243
+
244
+ Cezary Kaliszyk, Josef Urban, and Jirí Vyskocil. Lemmatization for stronger reasoning in large theories. In Carsten Lutz and Silvio Ranise, editors, Frontiers of Combining Systems - 10th International Symposium, FroCoS 2015, Wroclaw, Poland, September 21-24, 2015. Proceedings, volume 9322 of Lecture Notes in Computer Science, pages 341–356. Springer, 2015. doi: 10.1007/ 978-3-319-24246-0\_21. URL https://doi.org/10.1007/978-3-319-24246-0_ 21.
245
+
246
+ Cezary Kaliszyk, François Chollet, and Christian Szegedy. HolStep: A machine learning dataset for higher-order logic theorem proving. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id $=$ ryuxYmvel.
247
+
248
+ Cezary Kaliszyk, Josef Urban, Henryk Michalewski, and Miroslav Olšák. Reinforcement learning of theorem proving. In Advances in Neural Information Processing Systems, pages 8822–8833, 2018.
249
+
250
+ Christoph Kern and Mark R Greenstreet. Formal verification in hardware design: a survey. ACM Transactions on Design Automation of Electronic Systems (TODAES), 4(2):123–193, 1999.
251
+
252
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
253
+
254
+ Laura Kovács and Andrei Voronkov. First-order theorem proving and Vampire. In International Conference on Computer Aided Verification, pages 1–35. Springer, 2013.
255
+
256
+ Dennis Lee, Christian Szegedy, Markus N. Rabe, Sarah M. Loos, and Kshitij Bansal. Mathematical reasoning in latent space. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. URL https:// openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ Ske31kBtPr.
257
+
258
+ Douglas B Lenat. Am: An artificial intelligence approach to discovery in mathematics as heuristic search, sail aim-286. Artificial Intelligence Laboratory, Stanford University, 1976.
259
+
260
+ Wenda Li, Lei Yu, Yuhuai Wu, and Lawrence C. Paulson. Modelling high-level mathematical reasoning in mechanised declarative proofs. CoRR, abs/2006.09265, 2020. URL https:// arxiv.org/abs/2006.09265.
261
+
262
+ Sarah M. Loos, Geoffrey Irving, Christian Szegedy, and Cezary Kaliszyk. Deep network guided proof search. In Thomas Eiter and David Sands, editors, LPAR-21, 21st International Conference on Logic for Programming, Artificial Intelligence and Reasoning, Maun, Botswana, May 7- 12, 2017, volume 46 of EPiC Series in Computing, pages 85–105. EasyChair, 2017. URL https://easychair.org/publications/paper/ND13.
263
+
264
+ William McCune. Solution of the Robbins’ problem. Journal of Automated Reasoning, 19(3): 263–276, 1997.
265
+
266
+ Norman Megill and David A Wheeler. Metamath: A Computer Language for Mathematical Proofs. Lulu. com, 2019.
267
+
268
+ Miroslav Olsák, Cezary Kaliszyk, and Josef Urban. Property invariant embedding for automated reasoning. In Giuseppe De Giacomo, Alejandro Catalá, Bistra Dilkina, Michela Milano, Senén Barro, Alberto Bugarín, and Jérôme Lang, editors, ECAI 2020 - 24th European Conference on Artificial Intelligence, 29 August-8 September 2020, Santiago de Compostela, Spain, August 29 - September 8, 2020 - Including 10th Conference on Prestigious Applications of Artificial Intelligence (PAIS 2020), volume 325 of Frontiers in Artificial Intelligence and Applications, pages 1395–1402. IOS Press, 2020. doi: 10.3233/FAIA200244. URL https://doi.org/10. 3233/FAIA200244.
269
+
270
+ Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Waleed Ammar, Annie Louis, and Nasrin Mostafazadeh, editors, Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2019, Minneapolis, MN, USA, June 2-7, 2019, Demonstrations, pages 48–53. Association for Computational Linguistics, 2019. doi: 10.18653/v1/n19-4009. URL https://doi.org/10.18653/v1/n19-4009.
271
+
272
+ Lawrence C. Paulson. Natural deduction as higher-order resolution. The Journal of Logic Programming, 3(3):237–258, 1986.
273
+
274
+ Bartosz Piotrowski and Josef Urban. Atpboost: Learning premise selection in binary setting with ATP feedback. In Didier Galmiche, Stephan Schulz, and Roberto Sebastiani, editors, Automated Reasoning - 9th International Joint Conference, IJCAR 2018, Held as Part of the Federated Logic Conference, FloC 2018, Oxford, UK, July 14-17, 2018, Proceedings, volume 10900 of Lecture Notes in Computer Science, pages 566–574. Springer, 2018. doi: 10.1007/978-3-319-94205-6\_37. URL https://doi.org/10.1007/978-3-319-94205-6_37.
275
+
276
+ Stanislas Polu and Ilya Sutskever. Generative language modeling for automated theorem proving. CoRR, abs/2009.03393, 2020. URL https://arxiv.org/abs/2009.03393.
277
+
278
+ Markus N Rabe, Dennis Lee, Kshitij Bansal, and Christian Szegedy. Mathematical reasoning via self-supervised skip-tree training. arXiv preprint arXiv:2006.04757, 2020.
279
+
280
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100, $0 0 0 +$ questions for machine comprehension of text. In Jian Su, Xavier Carreras, and Kevin Duh, editors, Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016,
281
+
282
+ Austin, Texas, USA, November 1-4, 2016, pages 2383–2392. The Association for Computational Linguistics, 2016. doi: 10.18653/v1/d16-1264. URL https://doi.org/10.18653/v1/ d16-1264.
283
+
284
+ Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, pages 3788–3800, 2017.
285
+
286
+ Germán Ros, Laura Sellart, Joanna Materzynska, David Vázquez, and Antonio M. López. The SYNTHIA dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pages 3234–3243. IEEE Computer Society, 2016. doi: 10.1109/CVPR.2016.352. URL https://doi.org/10.1109/CVPR.2016.352.
287
+
288
+ Piotr Rudnicki. An overview of the mizar project. In Proceedings of the 1992 Workshop on Types for Proofs and Programs, pages 311–330. Citeseer, 1992.
289
+
290
+ Stephan Schulz. System description: E 1.8. In International Conference on Logic for Programming Artificial Intelligence and Reasoning, pages 735–743. Springer, 2013.
291
+
292
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of Go without human knowledge. Nature, 550(7676):354–359, 2017.
293
+
294
+ David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140–1144, 2018. ISSN 0036-8075. doi: 10.1126/science.aar6404. URL https://science.sciencemag.org/content/362/ 6419/1140.
295
+
296
+ Kai Sheng Tai, Richard Socher, and Christopher D. Manning. Improved semantic representations from tree-structured long short-term memory networks. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1556–1566, Beijing, China, July 2015. Association for Computational Linguistics. doi: 10.3115/v1/P15-1150. URL https: //www.aclweb.org/anthology/P15-1150.
297
+
298
+ Josef Urban. Malarea: a metasystem for automated reasoning in large theories. In Geoff Sutcliffe, Josef Urban, and Stephan Schulz, editors, Proceedings of the CADE-21 Workshop on Empirically Successful Automated Reasoning in Large Theories, Bremen, Germany, 17th July 2007, volume 257 of CEUR Workshop Proceedings. CEUR-WS.org, 2007. URL http://ceur-ws.org/ Vol-257/05_Urban.pdf.
299
+
300
+ Josef Urban and Jan Jakubv. First neural conjecturing datasets and experiments. arXiv preprint arXiv:2005.14664, 2020.
301
+
302
+ Josef Urban, Geoff Sutcliffe, Petr Pudlák, and Jirí Vyskocil. Malarea SG1- machine learner for automated reasoning with semantic guidance. In Alessandro Armando, Peter Baumgartner, and Gilles Dowek, editors, Automated Reasoning, 4th International Joint Conference, IJCAR 2008, Sydney, Australia, August 12-15, 2008, Proceedings, volume 5195 of Lecture Notes in Computer Science, pages 441–456. Springer, 2008. doi: 10.1007/978-3-540-71070-7\_37. URL https: //doi.org/10.1007/978-3-540-71070-7_37.
303
+
304
+ Josef Urban, Jiˇrí Vyskocil, and Petr Št ˇ epánek. MaLeCoP machine learning connection prover. In ˇ International Conference on Automated Reasoning with Analytic Tableaux and Related Methods, pages 263–277. Springer, 2011.
305
+
306
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
307
+
308
+ Oriol Vinyals, Igor Babuschkin, Wojciech Marian Czarnecki, Michaël Mathieu, Andrew Joseph Dudzik, Junyoung Chung, Duck Hwan Choi, Richard W. Powell, Timo Ewalds, Petko Georgiev, Junhyuk Oh, Dan Horgan, Manuel Kroiss, Ivo Danihelka, Aja Huang, Laurent Sifre, Trevor Cai, John P. Agapiou, Max Jaderberg, Alexander Sasha Vezhnevets, Rémi Leblond, Tobias Pohlen, Valentin Dalibard, David Budden, Yury Sulsky, James Molloy, Tom Le Paine, Caglar Gulcehre, Ziyu Wang, Tobias Pfaff, Yuhuai Wu, Roman Ring, Dani Yogatama, Dario Wünsch, Katrina McKinney, Oliver Smith, Tom Schaul, Timothy P. Lillicrap, Koray Kavukcuoglu, Demis Hassabis, Chris Apps, and David Silver. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature, pages 1–5, 2019.
309
+
310
+ Mingzhe Wang and Jia Deng. Learning to prove theorems by learning to generate theorems. CoRR, abs/2002.07019, 2020. URL https://arxiv.org/abs/2002.07019.
311
+
312
+ Mingzhe Wang, Yihe Tang, Jian Wang, and Jia Deng. Premise selection for theorem proving by deep graph embedding. In Advances in Neural Information Processing Systems, pages 2786–2796, 2017.
313
+
314
+ Minjie Wang, Lingfan Yu, Da Zheng, Quan Gan, Yu Gai, Zihao Ye, Mufei Li, Jinjing Zhou, Qi Huang, Chao Ma, Ziyue Huang, Qipeng Guo, Hao Zhang, Haibin Lin, Junbo Zhao, Jinyang Li, Alexander J. Smola, and Zheng Zhang. Deep graph library: Towards efficient and scalable deep learning on graphs. CoRR, abs/1909.01315, 2019. URL http://arxiv.org/abs/1909.01315.
315
+
316
+ Jason Weston, Antoine Bordes, Sumit Chopra, and Tomas Mikolov. Towards AI-complete question answering: A set of prerequisite toy tasks. In Yoshua Bengio and Yann LeCun, editors, 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv.org/abs/1502. 05698.
317
+
318
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. URL https://openreview.net/forum? id $=$ ryGs6iA5Km.
319
+
320
+ Kaiyu Yang and Jia Deng. Learning to prove theorems via interacting with proof assistants. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 6984–6994, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http:// proceedings.mlr.press/v97/yang19a.html.
321
+
322
+ Zsolt Zombori, Adrián Csiszárik, Henryk Michalewski, Cezary Kaliszyk, and Josef Urban. Towards finding longer proofs. CoRR, abs/1905.13100, 2019. URL http://arxiv.org/abs/1905. 13100.
323
+
324
+ APPENDIX A AXIOM SPECIFICATIONS
325
+
326
+ <table><tr><td>Field axioms</td><td>Definition</td></tr><tr><td>AdditionCommutativity (AC)</td><td>→a+b=b+a</td></tr><tr><td>AdditionAssociativity (AA)</td><td>→a+(b+c)=(a+b)+c</td></tr><tr><td>AdditionSimplification (AS)</td><td>a=b→a+(-b)=0</td></tr><tr><td>MultiplicatoinCommutativity (MC)</td><td>→a·b=b·a</td></tr><tr><td>MultiplicationAssociativity (MA)</td><td>→a·(b·c)=(a·b)·c</td></tr><tr><td>MultiplicationSimplification (MS)</td><td></td></tr><tr><td>AdditionMultiplicationLeftDistribution (AMLD)</td><td>→(a+b)·c=a·c+b·c</td></tr><tr><td>AdditionMultiplicationRightDistribution (AMRD)</td><td>→a.(b+c)=a·b+a·c</td></tr><tr><td>SquareDefinition (SD)</td><td>→a² =a·a</td></tr><tr><td>MultiplicationOne (MO)</td><td>→a·1=a</td></tr><tr><td>AdditionZero (A Z)</td><td>→a+0=a</td></tr><tr><td>PrincipleOfEquality (POE)</td><td>(a=b)^(c=d)→a+c=b+d</td></tr><tr><td>EquMoveTerm(Helper axiom) (EMT)</td><td>a+b=c→a=c+(-b)</td></tr><tr><td>Ordered field axioms</td><td>Definition</td></tr><tr><td>All feld axioms</td><td></td></tr><tr><td>SquareGEQZero (SGEQZ)</td><td>a=b→a·b≥0</td></tr><tr><td>EquivalenceImpliesDoubleInequality (E ID I)</td><td>a=b→(a≥b)&gt;(a≤b)</td></tr><tr><td>IneqMoveTerm (IMT)</td><td>a+b≥c→a≥c+(-b)</td></tr><tr><td>FirstPrincipleOfInequality (FPOI )</td><td>(a≥b)&gt;(c≥d)→a+c≥b+d</td></tr><tr><td>SecondPrincipleOfInequality (SPOI)</td><td>(a≥b)&gt;(c≥0)→a·c≥b·c</td></tr></table>
327
+
328
+ # APPENDIX B THE MORPH FUNCTION
329
+
330
+ We detail the morphing of $C$ at each step as follows. For each theorem $a$ , we define two symbolic patterns: $\mathcal { L } _ { a }$ and $\textstyle { \mathcal { R } } _ { a }$ , each represented by an expression (see Appendix $\textrm { C }$ for full details). For example, if $a$ is AdditionCommutativity, we use $\mathcal { L } _ { a } = x _ { 1 } + x _ { 2 }$ to denote any formula that is a sum of two terms ( $x _ { 1 }$ and $x _ { 2 }$ can be arbitrary terms). We check if one of the nodes in the computation graph of $C$ has the structure defined by ${ \mathcal { L } } _ { a }$ . If so, we then transform that node to a formula specified by $\textstyle { \mathcal { R } } _ { a }$ . For example, if $C$ is $( p + q ) + l = ( p + ( q + l ) )$ , $p + q$ is a node that matches the pattern specified by ${ \mathcal { L } } _ { a }$ , in which $x _ { 1 } = p$ and $x _ { 2 } = q$ . Let $\mathscr { R } _ { a } = x _ { 2 } + x _ { 1 }$ . We hence transform the node $p + q$ to $q + p$ as specified by $\textstyle { \mathcal { R } } _ { a }$ . As a result, $C ^ { \prime }$ becomes $( q + p ) + l = ( p + ( q + l ) )$ . If there is no node in the computation graph, we morph the core logic statement using the extension function $\mathcal { E }$ , defined in Appendix D . We sample nodes in available computation graphs and combine them with $C$ , coming up with $C ^ { \prime }$ and optionally a non-empty set of new premises $P _ { n e w }$ .
331
+
332
+ # Algorithm 2 Theorem Generator (complete)
333
+
334
+ <table><tr><td colspan="2">1: function GENERATE_THEOREM(initial conditions I,axiom order A)</td></tr><tr><td>2:</td><td>Axiom order length L = len(A). Initialize core logic statement Co ~ Uni form(T),and the set of premises P = {Co}.</td></tr><tr><td>3:</td><td>fort←1toLdo</td></tr><tr><td>4:</td><td></td></tr><tr><td>5: 6:</td><td>Get axiom at ← A[t]. Get new logic statement and premises: Ct,Pt ← MORPH(at, Ct-1).</td></tr><tr><td>7:</td><td>Add new premises to the set of all premises: P ← P U Pt.</td></tr><tr><td>8:</td><td>end for</td></tr><tr><td>9:</td><td>return CL, P</td></tr><tr><td>10:</td><td>end function</td></tr><tr><td></td><td>function MORPH(axiom a, core logic statement C)</td></tr><tr><td>2:</td><td>Collect Nt = {n| n is a node in C and matches the pattern specified by La}</td></tr><tr><td>4:</td><td>if Nt ≠ then Sample node n ~ Uniform(Nt).</td></tr><tr><td>6:</td><td>Transform n into new node n&#x27; using the mapping from La to Ra. C&#x27; ← Replace n with n&#x27; in the graph of C. Pnew ← @.</td></tr><tr><td>8:</td><td>else Collect N, the set of all nodes in the graphs.</td></tr><tr><td></td><td>Extend C and get the set of premises: C&#x27;, Pnew ← ε(a,C,N).</td></tr><tr><td>10:</td><td>end if</td></tr><tr><td>12:end function</td><td>return C&#x27;, Pnew.</td></tr></table>
335
+
336
+ The reasons that we have two sets of rules for morphing are as follow: 1) Transformation rules can only be applied when the axiom will produce an equality, while extension rules can be applied to any axiom. So in order to generate theorems with all the axioms, we need the extension rules. 2) Almost all the extension rules will complicate the core logic statement while none of the transformation rules will. If we only have extension rules, the goal generated can be very complex even the proof is of moderate length. In order to generate compact theorems (goal not too complicated) with long proofs, the transformation rules are preferred. Therefore we only apply extension rules when transformation rules are not applicable.
337
+
338
+ # APPENDIX C TRANSFORMATION RULES
339
+
340
+ The implementations of the transformation rules $\mathcal { L }$ and $\mathcal { R }$ .
341
+
342
+ <table><tr><td>Axiom (a)</td><td>La</td><td>Ra</td></tr><tr><td>AdditionCommutativity</td><td>x1+x2</td><td>x2+x1</td></tr><tr><td>AdditionAssociativity</td><td>x1+(x2+x3)</td><td>(x1+x2)+x3</td></tr><tr><td>AdditionSimplification</td><td>x1+(-x1)</td><td>0</td></tr><tr><td>MultiplicatoinCommutativity</td><td>x1:x2</td><td>X2:X1</td></tr><tr><td>MultiplicationAssociativity</td><td>x1·(x2:x3)</td><td>(x1:x2)·x3</td></tr><tr><td>MultiplicationSimplification</td><td>m1</td><td>1</td></tr><tr><td>AdditionMultiplicationLeftDistribution</td><td>(x1 +x2)·x3</td><td>X1:X3+X2·X3</td></tr><tr><td>AdditionMultiplicationRightDistribution</td><td>x1·(x2+x3)</td><td>X1:X2+x1:X3</td></tr><tr><td>SquareDefinition</td><td>m</td><td>x1:x1</td></tr><tr><td>MultiplicationOne</td><td>x1 ·1or1·x1</td><td>X1</td></tr><tr><td>AdditionZero</td><td>x1+0or0+x1</td><td>双1</td></tr><tr><td>SquareGEQZero</td><td>NA</td><td>NA</td></tr><tr><td>PrincipleOfEquality</td><td>NA</td><td>NA</td></tr><tr><td>EquMoveTerm</td><td>NA</td><td>NA</td></tr><tr><td>EquivalenceImpliesDoubleInequality</td><td>NA</td><td>NA</td></tr><tr><td>IneqMoveTerm</td><td>NA</td><td>NA</td></tr><tr><td>FirstPrincipleOfInequality</td><td>NA</td><td>NA</td></tr><tr><td>SecondPrincipleOfInequality</td><td>NA</td><td>NA</td></tr></table>
343
+
344
+ # APPENDIX D EXTENSION FUNCTION
345
+
346
+ For these axioms, the core logic statement $C$ needs to be of the form $\mathrm { L H S } ( C ) = \mathrm { R H S } ( C )$ .
347
+ Table 5
348
+
349
+ <table><tr><td>Axiom (a)</td><td>Extension function ε(C,a,N)</td></tr><tr><td>AdditionCommutativity</td><td>Sample node n ~ Uniform(N) return RHS(C) +n = n+ LHS(C), </td></tr><tr><td>AdditionAssociativity</td><td>Sample nodes n1,n2 ~ Uniform(N) return RHS(C)+(n1 + n2) =LHS(C)+n1 + n2,</td></tr><tr><td>AdditionSimplification</td><td>return 0 =LHS(C)+(-RHS(C)), </td></tr><tr><td>MultiplicatoinCommutativity</td><td>Sample node n ~ Uniform(N) return RHS(C)·n = n·LHS(C), </td></tr><tr><td>MultiplicationAssociativity</td><td>Sample nodes n1,n2 ~ Uni form(N) return RHS(C).(n1 : n2) =LHS(C)·n1 : n2,</td></tr><tr><td>MultiplicationSimplification</td><td>return 1 =LHS(C)· i 1 RHS(C),</td></tr><tr><td>AdditionMultiplicationLeftDistribution</td><td>Sample nodes n1,n2 ~ Uniform(N) return (n1 + n2) :RHS(C) = n1 · LHS(C) + n2 ·LHS(C), δ</td></tr><tr><td>AdditionMultiplicationRightDistribution</td><td>Sample nodes n1,n2 ~ Uni form (N) 1 return RHS(C) ·(n1 + n2) = LHS(C) · n1 + LHS(C) · n2, @</td></tr><tr><td>SquareDefinition</td><td>return LHS(C) : RHS(C) = LHS(C)², δ</td></tr><tr><td>MultiplicationOne</td><td>return Uniform({LHS(C) :1 = RHS(C), 1·LHS(C)=RHS(C) }), </td></tr><tr><td>AdditionZero</td><td>return Uniform({LHS(C) + 0 = RHS(C), 0 +LHS(C)=RHS(C) }), α</td></tr><tr><td>SquareGEQZero</td><td>return LHS(C) · RHS(C) ≥ 0, @</td></tr><tr><td>PrincipleOfEquality</td><td>Sample nodes n1, n2 ~ N, where n1 = n2 return LHS(C) + n1 = RHS(C) + n2,{n1 = n2}</td></tr><tr><td>EquMoveTerm</td><td>Only execute when LHS(C) is of the form x + y return x = RHS(C) +(-y),</td></tr><tr><td>EquivalenceImpliesDoubleInequality</td><td>return LHS(C) ≥RHS(C), </td></tr></table>
350
+
351
+ For these axioms, the core logic statement $C$ needs to be of the form $\mathrm { L H S } ( C ) \geq \mathrm { R H S } ( C )$ .
352
+ Table 6
353
+
354
+ <table><tr><td>Axiom (a)</td><td>Extension function ε(C,a,N)</td></tr><tr><td>IneqMoveTerm</td><td>Only execute when LHS(C) is of the form x + y return x ≥ RHS(C) +(-y), @</td></tr><tr><td>FirstPrincipleOfInequality</td><td>Sample nodes n1,n2 ~ N,where n1 ≥ n2 return LHS(C) + n1 ≥ RHS(C) + n2, {n1 ≥ n2}</td></tr><tr><td>SecondPrincipleOfInequality</td><td>Sample node n ~ N,where n ≥ 0 return LHS(C) ·n ≥ RHS(C) ·n, {n ≥ 0}</td></tr></table>
355
+
356
+ # APPENDIX E DATASET STATISTICS
357
+
358
+ # APPENDIX E.1 THEOREM LENGTH
359
+
360
+ We compare the length of the theorems generated in characters and plot their distributions in Figure 5. The length of the theorem in characters is a measure for how complicated it is. As is expected, the more complicated the theorem is, the longer the proof(bigger $L$ ). It is also worth noting that as $L$ becomes bigger, the distribution of theorem length becomes less concentrated. This is likely a consequence of a more spread-out theorem length range.
361
+
362
+ ![](images/065d55955681654ec6f89dcf82c0cb2a6d79a42ed2cd1da465be56bf02a3df08.jpg)
363
+ Figure 5: The distribution of theorem length in characters for field axioms(left) and ordered-field axioms(right) generated with parameters $K 3 L 3$ , $K 3 L 5$ , and $K 3 L 7$ . As the length of the proof is increased, so is the number of characters in the theorem, while the distribution of latter is less concentrated.
364
+
365
+ # APPENDIX E.2 AXIOM DISTRIBUTIONS
366
+
367
+ The frequency at which each axiom is applied influences the distribution of theorems our generator is able to produce. In Figure 6, we present the proportions of axioms that are applied in generating 10,000 theorems. Their frequencies are a measure of how easy it is to satisfy the conditions to apply them. For the field axioms, the PrincipleOfEquality axiom is the most frequently used $( 9 . 3 0 \% )$ and the EquMoveTerm axiom is the most rarely used $( 2 . 3 8 \% )$ . EquMoveTerm has a strict condition for application: the left hand side of the core logic statement has to be of the form $x + y$ , therefore not frequently applied. For the ordered-field axioms, the EquivalenceImpliesDoubleInequality axiom is the most frequently used $1 0 . 1 8 \%$ . Since we start with a trivial equality in generation and want to end up with an inequality, a transition from equality to inequality is needed. Among the ways of transitioning, this conditions to apply this axiom is easiest to satisfy. Its popularity is followed by the group of Field axioms, from MultiplicationCommutativity $( 4 . 6 9 \% )$ to AdditionAssociativity $( 5 . 9 8 \% )$ . The rest are ordered-field axioms which define the properties of inequalities, proportions ranging from IneqMoveTerm $( 1 . 1 4 \% )$ to FirstPrincipleOfInequality $( 5 . 7 4 \% )$ .
368
+
369
+ ![](images/fc2e0e6b480ddac4968c778400ecf145cd5369e703638a68a2071b3bd99ca8c2.jpg)
370
+ Figure 6
371
+
372
+ # APPENDIX E.3 NUMBER OF NODES
373
+
374
+ Since an action in the MDP consists of an axiom and a list of nodes as its arguments and the number of axioms is fixed, the number of nodes available determines the size the action space. Therefore it is interesting to investigate how many nodes are available in a proof. In Figure 7 we present the average number of nodes in proofs of different length. It can be told from the figure that the longer the proofs, the more nodes there will be, as expected. Comparing the axiom sets used, we find that the average number of nodes for ordered-field axioms is larger than that of field axioms. This is likely the consequence of ordered-field axioms, in generation, being more capable of producing new premises(e.g. First Principle of Inequality will produce an inequality premise(see Table 6), thus adding more nodes in the graphs).
375
+
376
+ ![](images/1fdd360256aafc4f315ee35230ecfbec25e2fd15638fb80ae89f84e32de3cf17.jpg)
377
+ Figure 7
378
+
379
+ # APPENDIX F MORE EXPERIMENTAL DETAILS FOR GENERALIZATION WITH SEARCH
380
+
381
+ We give more experimental details for the use of MCTS. Following (Silver et al., 2017), in the selection step of the MCTS tree construction, we use the following formula to select the next action,
382
+
383
+ $$
384
+ a ^ { * } = \mathrm { a r g m a x } _ { a } \left( Q ( s , a ) + c _ { \mathrm { p u c t } } P ( s , a ) \frac { \sqrt { \sum _ { b } N ( s , b ) } } { 1 + N ( s , a ) } \right) ,
385
+ $$
386
+
387
+ where $Q ( s , a )$ represents the action value function, $N ( s , a )$ denotes the visit counts, $P ( s , a )$ is the prior probability, and $c _ { \mathrm { p u c t } }$ is a constant hyperparameter. In all of our experiments, we used the behavior cloning policy for computing $P ( s , a )$ , and we used $c _ { \mathrm { p u c t } } = 1$ . After the MCTS tree is built, the action is sampled from the policy distribution $\pi ( a | s ) = N ( s , a ) ^ { \frac { 1 } { \tau } }$ , where $\tau$ is a hyperparameter and was chosen as 1 in our experiments.
388
+
389
+ # APPENDIX G MORE TRAINING AND EVALUATION RESULTS
390
+
391
+ ![](images/08c233066186fb6c45cf54733a90dcbe9f4164c42cbe731dc93cbcbf47166186.jpg)
392
+ APPENDIX G.1 LEARNING CURVES OF GNN-BASED AGENTS
393
+ Figure 8: Proof success rates for field axioms(left) and ordered-field axioms(right) of GNN-based agents trained on different $K$ and $L$ parameters. We keep the $K$ the same and vary the $L$ . The agents converge slower and to a lower success rate when the proof length is increased. Also, the agents on field axioms are easier to train than those on ordered-field axioms.
394
+
395
+ # APPENDIX G.2 PERFORMANCE VARIATION OF TRAINED AGENTS
396
+
397
+ To verify that the experimental results are statistically significant, we ran the experiments on proof length generalization in subsection 4.3 with 5 random seeds and tabled the results.
398
+
399
+ Table 7: Success rates of agents trained and tested on problems of different parameters (mean $\pm$ std) in percentage.
400
+
401
+ <table><tr><td>Transformers</td><td>Tested on</td><td>K3 L3</td><td>K3 L5</td><td>K3 L7</td></tr><tr><td rowspan="3">Trained on</td><td>K3 L3</td><td>97.6± 0.9</td><td>31.5 ± 1.6</td><td>10.9 ± 1.0</td></tr><tr><td>K3 L5</td><td>97.2 ± 0.7</td><td>88.3 ± 1.2</td><td>59.5 ± 1.6</td></tr><tr><td>K3L7</td><td>96.6 ± 1.2</td><td>87.0 ± 1.6</td><td>75.1 ± 1.2</td></tr><tr><td>GNNs</td><td>Tested on</td><td>K3 L3</td><td>K3 L5</td><td>K3 L7</td></tr><tr><td rowspan="3">Trained on</td><td>K3L3</td><td>91.5 ± 0.5</td><td>45.6 ± 1.7</td><td>16.5 ± 0.8</td></tr><tr><td>K3L5</td><td>86.4 ± 0.9</td><td>77.8 ± 0.9</td><td>58.4 ± 1.5</td></tr><tr><td>K3 L7</td><td>82.0 ± 1.3</td><td>71.4 ± 1.1</td><td>56.5 ± 1.5</td></tr></table>
402
+
403
+ ![](images/1f082c61df141e55512f96c5242d34857244df6a5cb7367113af5071ab84c7b2.jpg)
404
+ APPENDIX G.3 GNN-BASED AGENTS ON IID GENERALIZATION
405
+ Figure 9: Proof success rates on problems generated with different $K$ and $L$ parameters ( $K$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof). When the IID assumption holds, the success rate decreases as the two generation parameters $K$ and $L$ are increased.
406
+
407
+ ![](images/b3048d29a65cb47b3a1eeceb889d73cd5116dff6b4a6c1eaabc01f1474978123.jpg)
408
+ APPENDIX G.4 GNN-BASED AGENTS ON INITIAL CONDITION GENERALIZATION
409
+ Figure 10: Proof success rates on problems generated with different $K$ and $L$ parameters ( $K$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof). When generalizing to different initial conditions, there are no obvious trends as to how the proof success rate changes as the degree of the initial entities is varied.
410
+
411
+ Table 8: Top: Proof success rates (in $\%$ ) of agents trained on different numbers of axiom orders. Bottom: Proof success rates (in $\%$ ) of agents trained on different numbers of axiom combinations. $K$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof.
412
+
413
+ <table><tr><td rowspan="2">Architecture</td><td rowspan="2">Axiom orders</td><td colspan="2">100</td><td colspan="2">500</td><td colspan="2">2000</td><td colspan="2">5000</td></tr><tr><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td></tr><tr><td rowspan="6">Transformer</td><td>K3 L3</td><td>98.4</td><td>32.6</td><td>99.5</td><td>90.0</td><td>98.8</td><td>98.7</td><td>97.6</td><td>97.6</td></tr><tr><td>K3L5</td><td>95.3</td><td>6.3</td><td>94.0</td><td>56.3</td><td>94.0</td><td>94.9</td><td>96.5</td><td>94.9</td></tr><tr><td>K3 L7</td><td>87.8</td><td>3.8</td><td>88.0</td><td>46.4</td><td>88.3</td><td>77.5</td><td>88.4</td><td>85.5</td></tr><tr><td>K5L5</td><td>94.7</td><td>5.6</td><td>97.0</td><td>72.9</td><td>97.4</td><td>93.1</td><td>97.5</td><td>96.9</td></tr><tr><td>K5L7</td><td>89.7</td><td>1.8</td><td>88.6</td><td>48.6</td><td>89.3</td><td>75.2</td><td>88.6</td><td>84.0</td></tr><tr><td>Average</td><td>93.2</td><td>10.0</td><td>93.4</td><td>62.8</td><td>93.6</td><td>87.9</td><td>93.7</td><td>91.8</td></tr><tr><td rowspan="6">GNN</td><td>K3 L3</td><td>84.3</td><td>38.6</td><td>94.4</td><td>73.9</td><td>93.7</td><td>89.0</td><td>90.5</td><td>92.3</td></tr><tr><td>K3L5</td><td>92.7</td><td>17.1</td><td>86.3</td><td>60.0</td><td>84.4</td><td>72.9</td><td>77.7</td><td>77.1</td></tr><tr><td>K3 L7</td><td>82.4</td><td>14.1</td><td>82.4</td><td>33.8</td><td>68.6</td><td>57.7</td><td>70.2</td><td>63.5</td></tr><tr><td>K5 L5</td><td>91.0</td><td>23.0</td><td>89.7</td><td>61.2</td><td>81.8</td><td>75.0</td><td>78.3</td><td>80.8</td></tr><tr><td>K5L7</td><td>87.5</td><td>12.9</td><td>80.2</td><td>39.0</td><td>66.5</td><td>57.4</td><td>61.6</td><td>60.0</td></tr><tr><td>Average</td><td>87.6</td><td>21.1</td><td>86.6</td><td>53.6</td><td>79.0</td><td>70.4</td><td>75.7</td><td>74.7</td></tr></table>
414
+
415
+ <table><tr><td rowspan="2">Architecture</td><td rowspan="2">Axiom combos</td><td colspan="2">25</td><td colspan="2">100</td><td colspan="2">200</td><td colspan="2">300</td></tr><tr><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td><td>Train</td><td>Test</td></tr><tr><td rowspan="6">Transformer</td><td>K3L3</td><td>99.2</td><td>34.1</td><td>99.0</td><td>72.8</td><td>99.5</td><td>96.1</td><td>98.6</td><td>98.2</td></tr><tr><td>K3 L5</td><td>97.8</td><td>29.3</td><td>98.6</td><td>66.3</td><td>97.5</td><td>89.5</td><td>94.3</td><td>90.4</td></tr><tr><td>K3L7</td><td>93.6</td><td>25.0</td><td>91.9</td><td>55.9</td><td>91.5</td><td>80.0</td><td>91.9</td><td>85.9</td></tr><tr><td>K5L5</td><td>98.5</td><td>27.4</td><td>98.4</td><td>87.6</td><td>97.0</td><td>93.6</td><td>97.3</td><td>94.9</td></tr><tr><td>K5L7</td><td>91.2</td><td>30.5</td><td>92.2</td><td>76.3</td><td>91.7</td><td>82.9</td><td>90.0</td><td>87.0</td></tr><tr><td>Average</td><td>96.1</td><td>29.3</td><td>96.0</td><td>71.8</td><td>95.4</td><td>88.4</td><td>94.4</td><td>91.3</td></tr><tr><td rowspan="6">GNN</td><td>K3L3</td><td>96.3</td><td>61.6</td><td>96.0</td><td>90.1</td><td>92.7</td><td>91.2</td><td>95.3</td><td>92.0</td></tr><tr><td>K3 L5</td><td>82.1</td><td>43.4</td><td>80.3</td><td>68.9</td><td>78.5</td><td>74.9</td><td>76.5</td><td>76.1</td></tr><tr><td>K3L7</td><td>72.1</td><td>34.3</td><td>68.1</td><td>57.2</td><td>62.3</td><td>63.7</td><td>62.5</td><td>62.0</td></tr><tr><td>K5 L5</td><td>77.8</td><td>61.6</td><td>78.9</td><td>71.0</td><td>74.5</td><td>78.4</td><td>72.8</td><td>74.9</td></tr><tr><td>K5L7</td><td>67.2</td><td>36.8</td><td>59.7</td><td>52.7</td><td>54.9</td><td>54.0</td><td>56.7</td><td>54.5</td></tr><tr><td>Average</td><td>79.1</td><td>47.5</td><td>76.6</td><td>68.0</td><td>72.6</td><td>72.4</td><td>72.8</td><td>71.9</td></tr></table>
416
+
417
+ ![](images/414529975117152b385b6edb06d5dba50322c2d0d71726c6284ee117a417f499.jpg)
418
+ Figure 11: Proof success rates on problems generated with different parameters ( $\boldsymbol { \mathcal { K } }$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof). We keep parameter $L$ the same and vary parameter $K$ . The success rate is likely to decrease when an agent is evaluated on problems that have different $K$ than the problems it is trained on.
419
+
420
+ ![](images/c550cbd50e0ffc707f84de21a8d104842f523b862214c80f364accac6d0159ea.jpg)
421
+ APPENDIX G.7 GNN-BASED AGENTS ON PROOF LENGTH GENERALIZATION
422
+ Figure 12: Proof success rates on problems generated with different parameters ( $K$ denotes the cardinality of the axiom combination of a proof, $L$ denotes the length of the proof). We keep parameter $K$ the same and vary parameter $L$ . For all agents, the proof success rate is lower on theorems that require longer proofs. The best-performing agent for problems of a given length is usually the agent trained on problems of the same length.
423
+
424
+ # APPENDIX H THEOREM PROVING AS A MARKOV DECISION PROCESS (MDP)
425
+
426
+ We model theorem proving as a Markov Decision Process. A state $s$ in the MDP is the proof state maintained by the assistant, namely, the goal, the premises and the proven facts, represented by computation graphs. An action $a$ is a tuple of an axiom and a sequence of arguments. We denote the axiom space as $\mathcal { X }$ and the argument space, the set of all the nodes in available computation graphs, as $\mathcal { N }$ . The maximum number of arguments for one axiom within our axiomizations is 3, therefore the action space is $\mathcal { A } = \mathcal { X } \times \mathcal { N } ^ { 3 }$ . The assistant ignores redundant arguments if fewer than 3 are needed for the axiom considered. We show in Appendix E.3 the distribution of the number of nodes for proofs of different length. The size of the discrete action space can be as large as $1 8 \times 4 2 ^ { 3 } \approx 1 . 3 3 { \overset { \cdot } { \times } } 1 0 ^ { 6 }$ . The deterministic state transition function $P ( s , a )$ is implicitly determined by the proof assistant. When the proof assistant deems the proof complete and the theorem proven, the episode terminates and a reward of one is given. Otherwise, the reward is zero at each step. When the step limit for a proof is exhausted, the episode terminates with a reward of zero. For experiments in this paper, we used a step limit of 15.
427
+
428
+ # APPENDIX I EXAMPLE PROBLEMS
429
+
430
+ # Equality theorems
431
+
432
+ # Theorem 1
433
+
434
+ Goal: $( ( 0 \cdot 1 ) \cdot ( ( - ( a ^ { 2 } ) ) \cdot c ) ) = ( ( ( - ( a ^ { 2 } ) ) \cdot ( ( a \cdot a ) + ( - ( a ^ { 2 } ) ) ) ) \cdot c )$
435
+
436
+ # Theorem 2
437
+
438
+ Theorem 3
439
+
440
+ Goal: $\begin{array} { r } { 0 = ( ( ( ( c + 0 ) \cdot ( a + a ) ) \cdot ( \frac { 1 } { ( ( c \cdot a ) + ( c \cdot a ) ) } ) ) + ( - ( 0 + 1 ) ) ) } \end{array}$
441
+
442
+ # Theorem 4
443
+
444
+ Premises: $( b + d ) = b$ Goal: $\begin{array} { r } { ( 1 + ( - ( ( b + b ) \cdot ( \frac { 1 } { ( ( b + ( b + d ) ) \cdot 1 ) } ) ) ) ) = ( 0 + 0 ) } \end{array}$
445
+
446
+ # Theorem 5
447
+
448
+ Premises: $( a + d ) = b$ Goal: $\begin{array} { r } { 1 = ( ( ( d \cdot ( ( a + d ) + ( ( c + ( a + d ) ) + 0 ) ) ) \cdot ( ( d \cdot ( a + d ) ) + ( d \cdot ( c + b ) ) ) ) \cdot ( \frac { 1 } { ( ( d \cdot ( ( a + d ) + ( ( c + ( a + d ) ) + 0 ) ) ) ^ { 2 } ) } ) } \end{array}$
449
+
450
+ # Theorem 6
451
+
452
+ # Theorem 7
453
+
454
+ Goal: $( ( a \cdot ( a + 0 ) ) + ( ( - ( 0 + a ) ) \cdot ( a + 0 ) ) ) = ( ( a \cdot 0 ) + ( 0 \cdot 0 ) )$
455
+
456
+ # Theorem 8
457
+
458
+ # Theorem 9
459
+
460
+ # Theorem 10
461
+
462
+ # Theorem 11
463
+
464
+ Goal: $( 1 \cdot ( b + a ) ) = ( ( 0 + ( a + b ) ) + 0 )$
465
+
466
+ # Theorem 12
467
+
468
+ Goal: $( ( ( - c ) \cdot ( - c ) ) + ( ( ( - c ) \cdot c ) + ( ( - c ) \cdot ( - c ) ) ) = ( ( ( - c ) \cdot ( - c ) ) + ( 0 \cdot ( - c ) ) )$
469
+
470
+ # Theorem 13
471
+
472
+ Goal: $( ( ( a ^ { 2 } ) \cdot ( a \cdot ( a + 0 ) ) ) + ( a \cdot ( a \cdot ( a + 0 ) ) ) ) = ( ( ( ( a ^ { 2 } ) \cdot ( a ^ { 2 } ) ) + ( a \cdot ( a ^ { 2 } ) ) ) + 0 )$
473
+
474
+ # Theorem 14
475
+
476
+ Goal: $\begin{array} { r } { \small \{ ( ( ( b \cdot 1 ) \cdot ( a \cdot c ) ) \cdot ( b \cdot a ) ) + ( ( ( b \cdot 1 ) \cdot ( a \cdot c ) ) \cdot ( b \cdot a ) ) ) = ( ( ( ( ( b \cdot a ) \cdot c ) \cdot ( b \cdot a ) ) + ( ( ( ( b \cdot a ) \cdot c ) \cdot ( b \cdot a ) ) ) \cdot 1 ) } \end{array}$
477
+
478
+ Theorem 15
479
+
480
+ Theorem 16
481
+
482
+ Goal: $0 = ( ( 0 + ( - ( ( a \cdot b ) + ( - ( b \cdot a ) ) ) ) ) + ( - ( 0 \cdot 1 ) ) )$
483
+
484
+ # Theorem 17
485
+
486
+ $$
487
+ \begin{array} { r } { ( ( ( b \cdot d ) + ( b \cdot ( b + ( a + d ) ) ) ) + ( ( b + c ) + e ) ) = ( ( ( ( b \cdot d ) + ( b \cdot ( b + c ) ) ) \cdot 1 ) + ( a + d ) ) } \end{array}
488
+ $$
489
+
490
+ # Theorem 18
491
+
492
+ Goal: $( ( ( \left( { \frac { 1 } { b } } \right) \cdot b ) \cdot b ) \cdot 1 ) = ( ( b \cdot 1 ) \cdot 1 )$
493
+
494
+ # Theorem 19
495
+
496
+ Goal: $\because ( ( 1 \cdot ( b \cdot ( c + a ) ) ) + ( b \cdot a ) ) + 1 ) = ( 1 \cdot ( ( 1 \cdot ( ( b \cdot c ) + ( b \cdot a ) ) ) + ( ( b \cdot a ) + 1 ) ) )$
497
+
498
+ # Theorem 20
499
+
500
+ Premises: $( b + d ) = c$ ; $( ( 1 \cdot a ) + e ) = a$ Goal: $\begin{array} { r } { ( ( ( a + ( b + d ) ) \cdot ( \frac { 1 } { ( ( 1 \cdot a ) + c ) } ) ) + ( ( 1 \cdot a ) + e ) ) = ( ( 1 \cdot 1 ) + a ) } \end{array}$
501
+
502
+ # Theorem 21
503
+
504
+ Goal: $\begin{array} { r } { ( ( ( ( c ^ { 2 } ) \cdot ( ( c ^ { 2 } ) \cdot c ) ) + ( - ( ( ( c \cdot c ) \cdot ( c ^ { 2 } ) ) \cdot c ) ) ) + ( b + b ) ) = ( ( 1 \cdot ( ( 0 + b ) + b ) ) + ( - 0 ) ) } \end{array}$
505
+
506
+ # Theorem 22
507
+
508
+ Premises: $( b + d ) = ( a \cdot b )$ Goal: ( $\cdot ( ( ( ( c + c ) \cdot ( ( ( a \cdot b ) \cdot c ) + ( c + c ) ) ) + ( ( c + c ) \cdot ( c + c ) ) ) + ( a \cdot b ) ) ) = ( ( ( ( ( c + c ) \cdot ( ( ( a \cdot ( b \cdot c ) ) + c ) + ( c + c ) ) ) + ( b + d ) ) \cdot 1 ) + 0 )$
509
+
510
+ # Theorem 23
511
+
512
+ Premises: $( ( 0 \cdot 1 ) + d ) = ( 1 \cdot 0 )$ Goal: $( ( ( ( ( a + ( 0 \cdot 1 ) ) \cdot ( 1 \cdot 0 ) ) ) + ( - b ) ) + ( 1 \cdot 0 ) ) ) + ( 1 \cdot 0 ) ) = ( ( ( ( ( a \cdot ( 1 \cdot 0 ) ) + ( ( b + ( - b ) ) \cdot ( 1 \cdot 0 ) ) ) + ( ( - b ) + ( 1 \cdot 0 ) ) ) + ( ( 0 \cdot 1 ) + d ) ) + 0 )$
513
+
514
+ # Theorem 24
515
+
516
+ Premises: $( a + d ) = ( 1 + c )$ Goal: (((((1·b)+(c·b))+(1+c))2 )·((1+c)·b)) = ((((((1·b)+(c·b))+(1+c))·(((b·(1+(1·c)))+(a+d))·1))·(1+c))·b)
517
+
518
+ # Theorem 25
519
+
520
+ Premises: $( a + d ) = ( b \cdot 1 )$ Goal: $0 = ( ( b + ( a + d ) ) + ( - ( ( b \cdot 1 ) + ( b \cdot 1 ) ) )$ )
521
+
522
+ # Theorem 26
523
+
524
+ # Theorem 27
525
+
526
+ Premises: $( c + d ) = ( b + c )$ Goal: $( 1 \cdot ( ( ( ( b + c ) \cdot c ) + ( b \cdot ( b + c ) ) ) + ( c + d ) ) ) = ( ( ( ( b + c ) ^ { 2 } ) + ( b + c ) ) \cdot 1 )$
527
+
528
+ # Theorem 28
529
+
530
+ Premises: $( ( 1 \cdot b ) + d ) = b$ Goal: $ ' ( ( ( ( 1 \cdot b ) + b ) \cdot ( a \cdot 1 ) ) \cdot ( ( ( b + ( ( 1 \cdot b ) + d ) ) \cdot a ) \cdot 1 ) ) + 0 ) = ( ( ( ( b + ( 1 \cdot b ) ) \cdot ( a \cdot 1 ) ) ^ { 2 } ) \cdot 1 )$
531
+
532
+ # Theorem 29
533
+
534
+ Goal: $( ( ( b \cdot 1 ) + 0 ) \cdot ( 1 \cdot 0 ) ) = ( ( ( b \cdot 1 ) \cdot ( ( - ( 0 + b ) ) + ( 1 \cdot b ) ) ) + ( 0 \cdot ( ( - ( 0 + b ) ) + ( 1 \cdot b ) ) ) )$
535
+
536
+ # Theorem 30
537
+
538
+ # Theorem 31
539
+
540
+ Goal: $( ( 1 \cdot ( b \cdot b ) ) \cdot b ) = ( 1 \cdot ( 0 + ( ( ( 0 + b ) \cdot b ) \cdot b ) ) )$ )
541
+
542
+ # Theorem 32
543
+
544
+ Goal: $( ( ( c \cdot ( c \cdot 1 ) ) + 0 ) \cdot 1 ) = ( ( ( c \cdot c ) + 0 ) \cdot 1 )$
545
+
546
+ # Theorem 33
547
+
548
+ Goal: $\begin{array} { r } { 1 = \big ( 1 \cdot \big ( \frac { 1 } { ( ( 1 + 0 ) \cdot ( \frac { 1 } { ( ( b \cdot ( \frac { 1 } { b } ) ) + 0 ) } ) ) } \big ) \big ) } \end{array}$
549
+
550
+ # Theorem 34
551
+
552
+ Goal: $( ( ( ( ( ( ( ( c + a ) \cdot a ) \cdot ( c + a ) ) \cdot c ) \cdot ( a + c ) ) \cdot ( c + a ) ) \cdot ( c + a ) ) = ( ( ( ( ( ( ( ( a + c ) \cdot ( c + a ) ) \cdot a ) \cdot c ) \cdot ( a + c ) ) \cdot ( c + a ) ) \cdot ( c + a ) )$
553
+
554
+ # Theorem 35
555
+
556
+ Goal: $0 = ( ( - ( 1 \cdot 0 ) ) + ( ( - ( c + c ) ) + ( ( 1 \cdot c ) + c ) ) )$ )
557
+
558
+ # Theorem 36
559
+
560
+ $\begin{array} { r } { 1 = \big ( 1 \cdot \big ( \frac { 1 } { ( a \cdot ( \frac { 1 } { ( ( ( a + c ) + a ) + ( - ( c + a ) ) ) } ) } \big ) \big ) } \end{array}$
561
+
562
+ # Theorem 37
563
+
564
+ Premises: $( a + d ) = a$ ; $\begin{array} { r } { \left( \left( { \frac { 1 } { c } } \right) + e \right) = b } \end{array}$ Goal: ( $\begin{array} { r } { ( ( 1 \cdot ( 1 \cdot ( \frac { 1 } { \left( c \cdot ( \frac { 1 } { c } ) \right) } ) ) ) + a ) + b ) = ( 1 \cdot ( ( ( 1 \cdot 1 ) + ( a + d ) ) + ( ( \frac { 1 } { c } ) + e ) ) ) } \end{array}$
565
+
566
+ # Theorem 38
567
+
568
+ Goal: $0 = ( ( b \cdot ( b + ( - b ) ) ) + ( - ( ( ( 0 + 0 ) \cdot b ) + 0 ) ) )$ )
569
+
570
+ # Theorem 39
571
+
572
+ Goal: $( ( 1 \cdot c ) + ( - ( 1 \cdot ( c \cdot 1 ) ) ) ) \cdot 1 ) = ( ( 0 \cdot 1 ) \cdot 1 )$
573
+
574
+ # Theorem 40
575
+
576
+ # Theorem 41
577
+
578
+ Goal: (0 + ( $0 + ( ( c + c ) \cdot c ) ) \cdot ( a \cdot b ) ) ) = ( 0 + ( ( ( c \cdot c ) \cdot a ) + ( ( c \cdot c ) \cdot a ) ) \cdot b$ ))
579
+
580
+ # Theorem 42
581
+
582
+ # Theorem 43
583
+
584
+ # Theorem 44
585
+
586
+ # Theorem 45
587
+
588
+ $$
589
+ 0 = ( 0 + ( - ( ( ( ( 0 \cdot 0 ) + ( a \cdot 0 ) ) + ( - ( ( ( ( ( a \cdot 5 ) + ( a \cdot b ) ) + ( ( b + b ) + b ) ) + ( - ( ( ( a \cdot ( b + b ) ) + ( b + b ) ) + b ) ) ) + a ) \cdot 0 ) \cdot 1 ) ) ) )
590
+ $$
591
+
592
+ Theorem 46
593
+
594
+ Premises: $( ( a + b ) + d ) = ( a + b )$ ; $( b + e ) = a$ Goal: $( a \cdot a ) = ( 1 \cdot ( a \cdot a ) )$
595
+
596
+ # Theorem 47
597
+
598
+ # Theorem 48
599
+
600
+ Goal: $( b + ( ( ( ( a + a ) \cdot 1 ) \cdot a ) + 0 ) ) \cdot a ) = ( ( b \cdot a ) + ( ( ( a \cdot a ) \cdot 1 ) + ( a \cdot ( a \cdot 1 ) ) ) \cdot a ) )$
601
+
602
+ # Theorem 49
603
+
604
+ $$
605
+ \begin{array} { r l } & { ( ( ( 1 + b ) \cdot ( ( a \cdot ( ( c \cdot ( ) ) + ( c ^ { 2 } ) ) ) + 1 ) + b ) ) + ( ( 1 + b ) \cdot ( ( ( a \cdot ( ( c \cdot 1 ) + ( c ^ { 2 } ) ) ) + 1 ) + b ) ) ) = ( ( ( ( 1 + b ) + ( 1 + b ) ) \cdot ( ( a \cdot ( ( c \cdot 1 ) + ( c ^ { 2 } ) ) ) + 1 ) + b ) ) } \\ & { ( c \cdot 1 ) ) + ( a \cdot ( c \cdot ( c \cdot ( 1 ) ) ) ) + ( 1 + b ) \cdot 1 ) ) \cdot 1 ) } \end{array}
606
+ $$
607
+
608
+ # Theorem 50
609
+
610
+ $$
611
+ 0 = { \big ( } ( ( ( ( 0 + ( ( ( ( c \cdot c ) + ( c \cdot c ) ) + ( ( c \cdot c ) + ( c \cdot c ) ) ) ) ) + 0 ) + c ) \cdot a ) + ( - ( ( ( 0 + ( ( ( ( c + c ) \cdot c ) + ( c + c ) ) + ( c \cdot c ) ) ) \cdot a ) + ( c \cdot a ) ) ) { \big ) }
612
+ $$
613
+
614
+ # Inequality theorems
615
+
616
+ # Theorem 1
617
+
618
+ Premises: $( 1 + d ) \geq 0$ ; $( b + e ) \geq 0$ Goal: $\begin{array} { r } { ( ( ( ( 1 + 1 ) \cdot ( a \cdot ( \frac { 1 } { a } ) ) ) \cdot ( 1 + d ) ) + ( b + e ) ) \geq ( ( ( ( 1 \cdot 1 ) + ( 1 \cdot 1 ) ) \cdot ( 1 + d ) ) + 0 ) } \end{array}$
619
+
620
+ # Theorem 2
621
+
622
+ Goal: $( b ^ { 2 } ) \geq ( 0 + ( b \cdot ( 1 \cdot b ) ) )$
623
+
624
+ # Theorem 3
625
+
626
+ Premises: $( ( c + 0 ) + d ) \geq 0 ; ( d + e ) \geq b$ Goal: $( ( c \cdot ( ( c + 0 ) + d ) ) + ( d + e ) ) \geq ( ( ( 0 + c ) \cdot ( ( c + 0 ) + d ) ) + b )$
627
+
628
+ # Theorem 4
629
+
630
+ Goal: $( b + 0 ) \geq ( ( ( 0 + b ) + c ) + c ) + ( - ( c + c ) ) )$ )
631
+
632
+ # Theorem 5
633
+
634
+ # Theorem 6
635
+
636
+ # Theorem 7
637
+
638
+ Premises: $( ( 0 + a ) + d ) = 0$ Goal: $\left( \left( ( 0 + a ) \cdot a \right) + \left( \left( 0 + a \right) + d \right) \right) \geq \left( \left( a ^ { 2 } \right) + 0 \right)$
639
+
640
+ # Theorem 8
641
+
642
+ Premises: $( b + d ) = a$ Goal: $( ( c \cdot b ) + ( b \cdot b ) ) \geq ( 1 \cdot ( ( ( c + a ) + ( - ( b + d ) ) ) + b ) \cdot b ) )$
643
+
644
+ # Theorem 9
645
+
646
+ # Theorem 10
647
+
648
+ Premises: $( c + d ) \geq 0$ Goal: $( b \cdot ( c + d ) ) \geq ( ( ( ( b + b ) + 0 ) + ( - b ) ) \cdot ( c + d ) )$
649
+
650
+ # Theorem 11
651
+
652
+ Goal: $( ( ( b + 0 ) + ( b + c ) ) + 0 ) \geq ( ( ( b + b ) + c ) + 0 )$
653
+
654
+ # Theorem 12
655
+
656
+ Goal: $( ( c \cdot ( c + 0 ) ) + 0 ) \geq ( ( c ^ { 2 } ) + 0 )$
657
+
658
+ # Theorem 13
659
+
660
+ Goal: $( 1 \cdot ( b \cdot 1 ) ) \geq ( ( 1 \cdot b ) \cdot 1 )$
661
+
662
+ # Theorem 14
663
+
664
+ Goal: $\begin{array} { r } { 1 \geq ( ( ( ( b \cdot ( \frac { 1 } { b } ) ) + ( \frac { 1 } { b } ) ) + 1 ) \cdot ( \frac { 1 } { ( ( 1 + ( \frac { 1 } { b } ) ) + 1 ) } ) ) } \end{array}$ )
665
+
666
+ # Theorem 15
667
+
668
+ # Theorem 16
669
+
670
+ # Theorem 17
671
+
672
+ Goal: $( ( ( c \cdot b ) + a ) \cdot ( ( c \cdot b ) + ( c \cdot b ) ) ) \geq ( ( a \cdot ( ( c \cdot b ) + ( c \cdot b ) ) ) + ( ( c \cdot b ) + ( c \cdot b ) ) )$ ) · ((c · b) + (c · b))))
673
+
674
+ # Theorem 18
675
+
676
+ Goal: $( ( a \cdot b ) \cdot 1 ) \geq ( ( ( ( a \cdot 1 ) \cdot b ) \cdot 1 ) \cdot 1 )$
677
+
678
+ # Theorem 19
679
+
680
+ Goal: $a \geq ( ( a + c ) + ( - c ) )$
681
+
682
+ # Theorem 20
683
+
684
+ Goal: $( ( c \cdot b ) \cdot b ) \geq ( b \cdot ( b \cdot c ) )$
685
+
686
+ # Theorem 21
687
+
688
+ Premises: $( a + d ) = a$ ; $( ( a + d ) + e ) \geq 0$ ; $( b + f ) \ge ( 0 \cdot 0 )$ Goal: $\tau ( ( ( ( ( c \cdot 0 ) + ( 0 \cdot 0 ) ) + ( a + d ) ) \cdot ( ( 0 + ( ( c + 0 ) \cdot ( a + ( - a ) ) ) ) + a ) ) \cdot ( ( a + d ) + e ) ) + ( b + f ) ) \geq ( ( 0 \cdot ( ( a + d ) + e ) ) + ( 0 \cdot 0 ) )$
689
+
690
+ # Theorem 22
691
+
692
+ Premises: $( c + d ) \geq 0$ ; $( ( 0 + 0 ) + e ) \geq ( 0 + 0 )$ Goal: $\begin{array} { r } { \big ( ( ( ( ( 0 + ( c + ( - c ) ) ) \cdot ( - c ) ) \cdot ( - c ) ) ^ { \prime } \cdot ( \frac { 1 } { ( ( 0 , ( - c ) ) + ( 0 \cdot ( - c ) ) ) } ) ) \cdot ( 0 + 1 ) ) \cdot ( c + d ) ) + ( ( 0 + 0 ) + e ) ) \geq ( ( 0 \cdot ( c + d ) ) + ( 0 + 0 ) ) } \end{array}$
693
+
694
+ # Theorem 23
695
+
696
+ Premises: $( ( a ^ { 2 } ) + d ) \geq 0$ Goal: (( $( ( a \cdot a ) + c ) \cdot ( 0 + ( 1 \cdot ( a \cdot a ) ) ) \cdot ( ( a ^ { 2 } ) + d ) ) \geq ( ( ( a \cdot a ) \cdot ( ( a ^ { 2 } ) - ( a \cdot a ) ) ) \cdot ( ( a \cdot a ) ) ^ { 2 } )$ + 0)) + (c · ((a 2 ) + 0))) · ((a 2 ) + d))
697
+
698
+ # Theorem 24
699
+
700
+ Premises: $( c + d ) = c ;$ $( ( 0 + a ) + e ) \geq a$
701
+
702
+ Goal: $\tau ( ( ( a + b ) \cdot ( ( ( a + ( - a ) ) + ( a + b ) ) + ( c + d ) ) ) \cdot ( ( ( ( ( 0 + a ) + b ) + c ) \cdot ( a + b ) ) \cdot 1 ) ) + ( ( 0 + a ) + e ) ) \geq ( 0 + a )$
703
+
704
+ # Theorem 25
705
+
706
+ Goal: $\begin{array} { r } { 1 \geq \left( \left( a \cdot \left( c + b \right) \right) \cdot \left( \frac { 1 } { \left( \left( a \cdot c \right) + \left( a \cdot b \right) \right) } \right) \right. } \end{array}$
707
+
708
+ # Theorem 26
709
+
710
+ Premises: $( a + d ) \geq b$ Goal: $\begin{array} { r } { ( ( 0 \cdot ( ( ( ( ( ( ( a + c ) + a ) \cdot ( a \cdot c ) ) \cdot ( a \cdot c ) ) \cdot ( a \cdot c ) ) + ( ( a \cdot c ) \cdot ( a \cdot c ) ) ) + ( - ( ( ( ( ( ( a + ( c + a ) ) \cdot a ) \cdot c ) + ( a \cdot c ) ) \cdot ( a \cdot c ) ) + 0 ) ) ) ) + ( a + d ) ) \geq ( 0 + b ) } \end{array}$
711
+
712
+ # Theorem 27
713
+
714
+ $$
715
+ \begin{array} { r l } & { \mathfrak { s e s : } ( ( ( c \cdot b ) + d ) = ( b \cdot b ) ; ( ( b \cdot b ) + e ) \ge a } \\ & { ( ( ( ( b + b ) + ( b + b ) ) \cdot ( ( ( ( c \cdot ( b \cdot b ) ) + b ) + ( b ^ { 2 } ) ) ) + ( ( b \cdot b ) + e ) ) \ge ( ( ( ( b + b ) \cdot ( ( ( ( c \cdot b ) \cdot b ) + ( b + b ) ) + ( ( c \cdot b ) + c ) ) } \\ & { - ( ( b + b ) \cdot ( ( ( c \cdot b ) \cdot b ) + ( b + b ) ) + ( ( c \cdot b ) + d ) ) ) ) + a ) } \end{array}
716
+ $$
717
+
718
+ # Theorem 28
719
+
720
+ Premises: $( ( b \cdot 0 ) + d ) \geq c$ Goal: (( $( ( b + ( ( ( 0 + c ) + ( 0 + c ) ) + 0 ) ) \cdot 0 ) \cdot ( ( b \cdot 0 ) + ( ( ( 0 + c ) + ( 0 + c ) ) \cdot 0 ) \cdot$ )) · 0))) + ((b · 0) + d)) ≥ (0 + c)
721
+
722
+ # Theorem 29
723
+
724
+ Premises: $( a + d ) \geq 0$ Goal: (( $) \cdot ( ( ( ( c \cdot c ) + ( c \cdot 0 ) ) \cdot a ) + ( - ( ( ( c + 0 ) \cdot ( ( c + 0 ) \cdot a ) ) \cdot 1 ) ) ) + ($ (a + d)) ≥ (0 + 0)
725
+
726
+ # Theorem 30
727
+
728
+ # Theorem 31
729
+
730
+ Goal: $( 0 + ( 0 + ( c + b ) ) ) \geq ( 0 + ( ( b + c ) + 0 ) )$
731
+
732
+ # Theorem 32
733
+
734
+ Goal: $( a + ( a + 0 ) ) \geq ( ( ( ( 0 + a ) + 0 ) + a ) + 0 )$
735
+
736
+ # Theorem 33
737
+
738
+ Premises: g) ≥ 0 Goal: ( $\begin{array} { r l } & { \mathfrak { S } : ( ( c + c ) + a ) \ge a ; ( a + e ) \ge \mathfrak { U } ; ( ( c + c ) + J ) \ge ( 0 + a ) ; ( 0 + g ) \ge 0 } \\ & { \big ( ( ( ( ( c + c ) + ( c + c ) ) \cdot ( ( c + c ) + ( c + c ) ) ) + ( ( c + c ) + d ) ) + ( ( d + e ) ) + ( ( c + c ) + f ) ) + ( b + g ) \big ) \ge \big ( ( ( ( 0 + a ) + 0 ) + ( 0 + a ) ) + 0 \big ) } \end{array}$
739
+
740
+ # Theorem 34
741
+
742
+ Goal: $( ( ( 0 + b ) + c ) + a ) \geq ( 0 + ( 0 + ( b + ( c + a ) ) ) )$ )
743
+
744
+ # Theorem 35
745
+
746
+ Premi Goal: $\begin{array} { r l } & { \mathrm { s e s : } \ ( a + d ) \geq 0 ; \ ( a + e ) \geq ( c \cdot c ) ; \ ( e + f ) \geq 0 ; \ ( c + g ) \geq 0 ; \ ( c + h ) \geq ( c + g ) ; \ ( c + i ) \geq 0 } \\ & { \mathrm { ( } ( ( ( ( ( c \cdot c ) \cdot ( a + d ) ) + ( a + e ) ) \cdot ( e + f ) ) \cdot ( c + g ) ) + ( c + h ) ) \cdot ( c + i ) ) \geq ( ( ( ( ( 0 \cdot ( a + d ) ) + ( c \cdot c ) ) \cdot ( e + f ) ) \cdot ( c + f ) + ( c + h ) ) \cdot ( c + f ) } \end{array}$ $g ) ) + ( c + g ) ) \cdot ( c + i ) )$
747
+
748
+ # Theorem 36
749
+
750
+ Goal: $( 1 \cdot ( 1 \cdot ( 1 \cdot a ) ) ) \geq ( 1 \cdot ( ( a + 0 ) + 0 ) )$ )
751
+
752
+ # Theorem 37
753
+
754
+ Premises: $( b + d ) \geq b$ ; $( ( c + b ) + e ) \geq c$ ; $( b + f ) \geq a$ ; $( e + g ) \geq ( b + f )$ Goal: $\begin{array} { r } { ( ( ( c + ( b + d ) ) + ( b + f ) ) + ( e + g ) ) \ge ( ( ( ( ( c + b ) + c ) + ( - ( ( c + b ) + e ) ) ) + a ) + ( b + f ) ) } \end{array}$
755
+
756
+ # Theorem 38
757
+
758
+ Goal: $( ( a + ( ( ( b + c ) \cdot ( b + c ) ) + ( ( c + b ) \cdot b ) ) ) \cdot ( ( c + b ) + ( c + b ) ) ) \geq ( ( ( ( ( ( b + c ) \cdot ( c + b ) ) + ( ( b + c ) \cdot b ) ) + a ) \cdot ( c + b ) ) + a$ ( $( ( ( ( b + c ) \cdot ( c + b ) ) + ( ( b + c ) \cdot b ) ) + a ) \cdot ( c + b ) )$ )
759
+
760
+ # Theorem 39
761
+
762
+ $$
763
+ \begin{array} { r l } & { \mathfrak { c s } ; ( c + d ) = b ; ( ( c + b ) + e ) = ( c + d ) ; ( a + f ) \ge 0 ; ( 0 + g ) \ge 0 ; ( g + h ) \ge 0 ; ( d + i ) \ge 0 } \\ & { ( ( ( ( ( c + ( c + d ) ) + ( ( c + b ) + e ) ) \cdot ( a + f ) ) \cdot ( 0 + g ) ) \cdot ( g + h ) ) \cdot ( d + i ) ) \ge ( ( ( ( ( c + b ) + ( c + d ) ) \cdot ( a + f ) ) \cdot ( g + h ) ) \cdot ( d + i ) ) } \end{array}
764
+ $$
765
+
766
+ # Theorem 40
767
+
768
+ Goal: $( ( ( ( c + a ) \cdot b ) \cdot b ) + ( a + c ) ) \geq ( ( a + c ) + ( ( ( a + c ) \cdot b ) \cdot b ) )$
769
+
770
+ # Theorem 41
771
+
772
+ Goal: $\begin{array} { r } { ( ( ( c + b ) + ( a + ( c + b ) ) ) \cdot ( \frac { 1 } { ( ( ( ( 1 \cdot c ) + b ) + a ) + ( c + b ) ) } ) ) \geq ( 1 \cdot 1 ) } \end{array}$
773
+
774
+ # Theorem 42
775
+
776
+ Premises: $( c + d ) = b$ Goal: (((((c·b)+(c 2 ))·((b+c)·(c·b)))+(c+d))·(((((c·(b+c))·(b+c))·c)·b)+b)) ≥ (((((c·b)+(c 2 ))·((b+c)·(c·b)))+(c+d))2 )
777
+
778
+ # Theorem 43
779
+
780
+ $$
781
+ \begin{array} { r l } & { \mathrm { ~ e s : ~ } ( a + d ) = b ; ( d + e ) = a ; ( c + f ) \ge 0 ; ( ( b + b ) + g ) \ge 0 } \\ & { ( ( 1 \cdot ( c + f ) ) \cdot ( ( b + b ) + g ) ) \ge ( ( ( ( ( b + b ) + a ) \cdot ( \frac { 1 } { ( 0 + ( ( b + ( a + d ) ) + ( d + e ) ) ) } ) ) \cdot ( c + f ) ) \cdot ( ( b + b ) + g ) ) } \end{array}
782
+ $$
783
+
784
+ # Theorem 44
785
+
786
+ Goal: (( $\left( \left( \left( a \cdot 1 \right) \cdot a \right) \cdot 1 \right) \cdot b \right) + \left( \left( \left( a \cdot 1 \right) \cdot \left( a \cdot 1 \right) \right) \cdot \left( a \cdot a \right) \right) ) \geq \left( 1 \cdot \left( \left( \left( a \cdot a \right) \right. \right.$ $a \cdot 1 ) ) \cdot ( a \cdot a ) ) ) \geq ( 1 \cdot ( ( ( a \cdot a ) \cdot 1 ) \cdot b ) + ( ( ( a \cdot a ) \cdot 1 ) \cdot ( a \cdot a ) ) ) \}$
787
+
788
+ # Theorem 45
789
+
790
+ Premises: $( ( c + 0 ) + d ) \geq b ;$ $( 1 + e ) \geq a$ Goal: ( $( 0 + ( ( c + 0 ) + d ) ) + ( 1 + e ) ) \geq ( ( ( 0 + ( - ( ( c \cdot 1 ) + ( - ( c + 0 ) ) ) ) ) + b ) + a )$
791
+
792
+ # Theorem 46
793
+
794
+ # Theorem 47
795
+
796
+ # Theorem 48
797
+
798
+ Premises: $( a + d ) = b$ Goal: $( 1 \cdot ( ( b + b ) + ( - ( 1 \cdot ( b + ( a + d ) ) ) ) ) ) \geq ( 1 \cdot ( 0 \cdot 1 ) )$
799
+
800
+ # Theorem 49
801
+
802
+ Premises: $( ( c \cdot b ) + d ) = a$ ; $( ( c \cdot b ) + e ) \geq b$ Goal: $( ( ( b \cdot b ) \cdot ( a \cdot ( c \cdot b ) ) ) + ( ( c \cdot b ) + e ) ) \geq ( ( ( ( b \cdot b ) \cdot a ) \cdot ( c \cdot b ) ) + b )$
803
+
804
+ # Theorem 50
805
+
806
+ Goal: $( ( ( a + c ) \cdot ( c + a ) ) + ( ( a \cdot ( c + a ) ) + ( ( c \cdot c ) + ( c \cdot a ) ) ) \geq ( ( ( a + c ) \cdot ( ( c + a ) + ( c + a ) ) ) \cdot 1 )$
parse/train/O6LPudowNQm/O6LPudowNQm_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/O6LPudowNQm/O6LPudowNQm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/O6LPudowNQm/O6LPudowNQm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Ogga20D2HO-/Ogga20D2HO-.md ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FEDMIX: APPROXIMATION OF MIXUP UNDER MEAN AUGMENTED FEDERATED LEARNING
2
+
3
+ Tehrim Yoon & Sumin Shin & Sung Ju Hwang & Eunho Yang
4
+
5
+ Korea Advanced Institute of Science and Technology (KAIST) Daejeon, South Korea {tryoon93,sym807,sjhwang82,eunhoy}@kaist.ac.kr
6
+
7
+ # ABSTRACT
8
+
9
+ Federated learning (FL) allows edge devices to collectively learn a model without directly sharing data within each device, thus preserving privacy and eliminating the need to store data globally. While there are promising results under the assumption of independent and identically distributed (iid) local data, current state-of-the-art algorithms suffer from performance degradation as the heterogeneity of local data across clients increases. To resolve this issue, we propose a simple framework, Mean Augmented Federated Learning (MAFL), where clients send and receive averaged local data, subject to the privacy requirements of target applications. Under our framework, we propose a new augmentation algorithm, named FedMix, which is inspired by a phenomenal yet simple data augmentation method, Mixup, but does not require local raw data to be directly shared among devices. Our method shows greatly improved performance in the standard benchmark datasets of FL, under highly non-iid federated settings, compared to conventional algorithms.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ As we enter the era of edge computing, more data is being collected directly from edge devices such as mobile phones, vehicles, facilities, and so on. By decoupling the ability to learn from the delicate process of merging sensitive personal data, Federated learning (FL) proposes a paradigm that allows a global neural network to learn to be trained collaboratively from individual clients without directly accessing the local data of other clients, thus preserving the privacy of each client (Konecnˇ y et al. ´ , 2016; McMahan et al., 2017). Federated learning lets clients do most of the computation using its local data, with the global server only aggregating and updating the model parameters based on those sent by clients.
14
+
15
+ One of the standard and most widely used algorithm for federated learning is FedAvg (McMahan et al., 2017), which simply averages model parameters trained by each client in an element-wise manner, weighted proportionately by the size of data used by clients. FedProx (Li et al., 2020b) is a variant of FedAvg that adds a proximal term to the objective function of clients, improving statistical stability of the training process. While several other methods have been proposed until recently (Mohri et al., 2019; Yurochkin et al., 2019; Wang et al., 2020), they all build on the idea that updated model parameters from clients are averaged in certain manners.
16
+
17
+ Although conceptually it provides an ideal learning environment for edge devices, the federated learning still has some practical challenges that prevent the widespread application of it (Li et al., 2020a; Kairouz et al., 2019). Among such challenges, the one that we are interested in this paper is the heterogeneity of the data, as data is distributed non-iid across clients in many real-world settings; in other words, each local client data is not fairly drawn from identical underlying distribution. Since each client will learn from different data distributions, it becomes harder for the model to be trained efficiently, as reported in (McMahan et al., 2017). While theoretical evidence on the convergence of FedAvg with non-iid case has recently been shown in (Li et al., 2020c), efficient algorithms suitable for this setting have not yet been developed or systematically examined despite some efforts (Zhao et al., 2018; Hsieh et al., 2020).
18
+
19
+ ![](images/33e2864a5e6f382503714917d3564db22011d598f6834f61bf385c580a967973.jpg)
20
+ Figure 1: Brief comparisons of Mixup strategies in FL and MAFL. (a) Global Mixup: Raw data is exchanged and directly used for Mixup between local and received data, which violates privacy. (b) Local Mixup: Mixup is only applied within client’s local data. (c) NaiveMix: Under MAFL, Mixup is performed between local data and received averaged data. (d) FedMix: Under MAFL, our novel algorithm approximates Global Mixup using input derivatives and averaged data.
21
+
22
+ In addition to non-iid problem, another important issue is that updating model parameters individually trained by each client is very costly and becomes even heavier as the model complexity increases. Some existing works Smith et al. (2016); Sattler et al. (2019) target this issue to decrease the amount of communications while maintaining the performance of FedAvg. A more practical approach to reduce communication cost is to selectively update individual models at each round, rather than having all clients participate in parameter updates. This partial participation of clients per round hardly affects test performance in ideal iid settings but it can exacerbate the heterogeneity of weight updates across clients and as a result, the issue of non-iid (McMahan et al., 2017).
23
+
24
+ In order to mitigate the heterogeneity across clients while protecting privacy, we provide a novel yet simple framework, mean augmented federated learning (MAFL), in which each client exchanges the updated model parameters as well as its mashed (or averaged) data. MAFL framework allows the trade-off between the amount of meaningful information exchanged and the privacy across clients, depending on several factors such as the number of data instances used in computing the average. We first introduce a naive approach in our framework that simply applies Mixup (Zhang et al., 2018) between local data and averaged external data from other clients to reduce a myopic bias.
25
+
26
+ Here, we go further in our framework and ask the following seemingly impossible question: can only averaged data in our framework that has lost most of the discriminative information, bring the similar effect as a global Mixup in which clients directly access others’ private data without considering privacy issues? Toward this, we introduce our second and more important approach in our framework, termed Federated Mixup (FedMix), that simply approximates the loss function of global Mixup via Taylor expansion (it turns out that such approximation only involves the averaged data from other clients!). Figure 1 briefly describes the concept of our methods.
27
+
28
+ We validate our method on standard benchmark datasets for federated learning, and show its effectiveness against the standard federated learning methods especially for non-iid settings. In particular, we claim that FedMix shows better performance and smaller drop in accuracy with more heterogeneity or fewer clients update per communication round, further increasing difficulty of federated learning.
29
+
30
+ Our contribution is threefold:
31
+
32
+ • We propose a simple framework for federated learning that averages and exchanges each local data. Even naive approach in this framework performing Mixup with other clients’ mashed data shows performance improvement over existing baselines on several settings. We further develop a novel approximation for insecure global Mixup accessing other clients’ local data, and find out that Taylor expansion of global Mixup only involves the averaged data from other clients. Based on this observation, we propose FedMix in our framework approximating global Mixup without accessing others’ raw data. We validate FedMix on several FL benchmark datasets especially focusing on non-iid data settings where our method significantly outperforms existing baselines while still preserving privacy with minimal increases in communication cost.
33
+
34
+ # 2 RELATED WORK
35
+
36
+ Federated learning Federated learning was first proposed in Konecnˇ y et al. ´ (2016) where the prevalent asynchronous SGD (Dean et al., 2012) is used to update a global model in a distributed fashion. A pioneering work in this field proposed the currently most widely used algorithm, FedAvg (McMahan et al., 2017), which is also the first synchronous algorithm dedicated to federated setting. Shortly after, Li et al. (2020b) proposed a variant of FedAvg, named FedProx, where the authors claimed to overcome statistical heterogeneity and increase stability in federated learning. Recent studies attempt to expand federated learning with the aim of providing learning in more diverse and practical environments such as multi-task learning (Smith et al., 2017), generative models (Augenstein et al., 2020), continual learning (Yoon et al., 2020), semi-supervised learning (Jeong et al., 2020), and data with noisy labels (Tuor et al., 2020). Our paper focuses on general federated settings, but it could be considered in such various situations.
37
+
38
+ However, these algorithms may obtain suboptimal performance when clients participating in FL have non-iid (Zhao et al., 2018; Hsieh et al., 2020) distributions. While the convergence of FedAvg on such settings was initially shown by experiments in McMahan et al. (2017) and later proved in Li et al. (2020c), it does not guarantee performance as good as it would have been for iid setting. Existing algorithms that pointed out this issue have major limitations, such as privacy violation by partial global sharing of local data (Zhao et al., 2018) or no indication of improvement over baseline algorithms such as FedAvg (Hsieh et al., 2020). Our method aims to improve performance particularly on these non-iid situations, without compromising privacy.
39
+
40
+ Mixup Mixup (Zhang et al., 2018) is a popular data augmentation technique that generates additional data by linear interpolation between actual data instances. Mixup has been usually applied to image classification tasks and shown to improve test accuracy on various datasets such as CIFAR10 and ImageNet-2012 (Russakovsky et al., 2015), and, on popular architectures such as ResNet (He et al., 2016) and ResNeXt (Xie et al., 2017), for various model complexity. It is also reported in Zhang et al. (2018) that Mixup helps with stability, adversarial robustness (Zhang et al., 2018), calibration, and predictive certainty (Thulasidasan et al., 2019). Mixup is expanding from various angles due to its simplicity and popularity. First, beyond image classification tasks, its effectiveness has been proven in various domains such as image segmentation (Eaton-Rosen et al., 2020), speech recognition (Warden, 2018), and natural language processing (Guo et al., 2019). Also, several extensions such as Manifold Mixup (Verma et al., 2018), which performs Mixup in latent space, or CutMix (Yun et al., 2019), which replaces specific regions with others patches, have been proposed.
41
+
42
+ In most of the previous studies on federated learning, Mixup was partially (or locally) used as a general data augmentation technique. Some recent studies (Oh et al., 2020; Shin et al., 2020) proposed to send blended data to server using Mixup, but they require sending locally- and linearly-mixed (mostly from two instances) data to server at every round, therefore being susceptible to privacy issues with huge communication costs. Our work properly modifies Mixup under the restrictions of federated learning and mitigates the major challenges of federated learning such as non-iid clients.
43
+
44
+ # 3 MEAN AUGMENTED FEDERATED LEARNING (MAFL) AND FEDMIX
45
+
46
+ We now provide our framework exchanging averaged data for federated learning and main method approximating insecure global Mixup under our framework, after briefly introducing the setup.
47
+
48
+ # 3.1 SETUP AND BACKGROUND
49
+
50
+ Federated learning and FedAvg Federated Averaging (FedAvg) (McMahan et al., 2017) has been the most popular algorithmic framework for federated learning. For every communication round $t = 0 , \ldots , T - 1$ , a client $k \in { 1 , \ldots , N }$ selected for local training sends back its model $\mathbf { \Delta } w _ { t } ^ { k }$ (or only difference to reduce communication cost) to a global server. For every round, $K$ number of clients are selected to locally update and send model parameters. The server simply averages parameters received, so that the global model ${ \pmb w } _ { t }$ after $t$ rounds of communications becomes $\begin{array} { r } { \mathbf { w } _ { t } = \sum _ { k = 1 } ^ { n } p _ { k } \mathbf { w } _ { t } ^ { k } } \end{array}$ where $p _ { k }$ is the importance of client $k$ based on the relative number of data in $k$ among all selected clients at $t$ . The updated global model is sent back to clients for the next round, which undergoes the following $E$ local updates via stochastic gradient descent (SGD):
51
+
52
+ $\pmb { w } _ { t + 1 , i + 1 } ^ { k } \pmb { w } _ { t + 1 , i } ^ { k } - \eta _ { t + 1 } \nabla \ell ( f ( \pmb { x } _ { i } ^ { k } ; \pmb { w } _ { t + 1 , i } ) , y _ { i } ^ { k } )$ for $i = 0 , 1 , \ldots , E - 1$ , batch size $B$ , and local learning rate $\eta$ . Here, $\ell$ is the loss function for learning and $f ( \pmb { x } ; \pmb { w } _ { t } )$ is the model output for input $_ { \textbf { \em x } }$ given model weight ${ \pmb w } _ { t }$ .
53
+
54
+ Mixup Mixup (Zhang et al., 2018) is a simple data augmentation technique using a linear interpolation between two input-label pairs $( { \pmb x } _ { i } , y _ { i } )$ and $( \boldsymbol { x } _ { j } , \boldsymbol { y } _ { j } )$ to augment $\tilde { \mathbfit { x } } = \lambda \mathbfit { x } _ { i } + ( 1 - \lambda ) \mathbfit { x } _ { j }$ and $\tilde { y } = \lambda y _ { i } + ( 1 - \lambda ) y _ { j }$ . The variable $\lambda \in [ 0 , 1 ]$ is a hyperparameter that is chosen from the beta distribution for each training step.
55
+
56
+ # 3.2 MAFL: MEAN AUGMENTED FEDERATED LEARNING
57
+
58
+ The most obvious and powerful way for local models to receive information about data from other clients is to simply receive raw individual data. However, under typical federated setting, each client does not have direct access to individual external data due to privacy constraints, leading to overall performance degradation. We propose a federated learning framework that relaxes the limitation of accessing others’ raw data and allows a more granular level of privacy depending on applications. In our new framework, termed mean augmented federated learning (MAFL), clients not only exchange model parameters but also its mashed (or averaged) data.
59
+
60
+ In MAFL, only the part that exchanges averaged data of each client has been added to the standard FL paradigm (Algorithm 1). Here, the number of data instances used in computing the average, $M _ { k }$ , controls the key features of MAFL such as privacy and communication costs. Lower $M _ { k }$ value results in more relevant information passed over, but only in cost of less secure privacy and larger communication cost. In one extreme of $M _ { k } = 1$ , raw data is thoroughly exchanged and privacy is not protected at all, which is clearly inappropriate for FL. But, in the other extreme, all data of each client is averaged to ensure a considerable degree of privacy. In addition, it also has an advantage on communication cost; each client sends a set of $n _ { k } / { \bar { M } } _ { k }$ averaged data where $n _ { k }$ is local data size of client $k$ . The remaining question is whether it is possible to improve performance even when exchanging information that is averaged from all local data and loses discriminative characteristics.
61
+
62
+ The most naive way we can consider in our MAFL framework is to directly use the mashed data from other clients, just like regular local data. However, since mashed data has a lot less usable
63
+
64
+ <table><tr><td>Algorithm 1: Mean Augmented Federated Learning (MAFL) Input: Dk = {Xk,Yk} for k =1,...,N</td></tr><tr><td>Mk:number of data instances used for computing average x, y</td></tr><tr><td>Initialize wo for global server fort=0,...,T-1do forclient k with updated local data do Split local data into M sized batches Compute x,y for each batch</td></tr><tr><td>Send allx,y to server end St ←Kclients selected at random Send wt to clients k ∈ St if updated then Aggregate all x, y to Xg,Yg</td></tr></table>
65
+
66
+ # Algorithm 2: FedMix
67
+
68
+ LocalUpdate $\left( k , \pmb { w } _ { t } ; \pmb { X } _ { g } , \pmb { Y } _ { g } \right)$ under
69
+ MAFL (Algorithm 1):
70
+ ${ \pmb w } \gets { \pmb w } _ { t }$
71
+ for $e = 0 , \ldots , E - 1$ do Split $\mathbb { D } _ { k }$ into batches of size $B$ for batch $( X , Y )$ do Select an entry $\mathbfit { \Delta } x _ { g } , \mathbfit { y } _ { g }$ from $\begin{array} { r l } & { X _ { g } , Y _ { g } } \\ & { \ell _ { 1 } = } \\ & { ( 1 - \lambda ) \ell \big ( f ( ( 1 - \lambda ) X ; w ) , Y \big ) } \\ & { \ell _ { 2 } = \lambda \ell \big ( f ( ( 1 - \lambda ) X ; w ) , y _ { g } \big ) } \\ & { \ell _ { 3 } = \lambda \frac { \partial \ell _ { 1 } } { \partial x } \cdot x _ { g } } \end{array}$ (derivative calculated at ${ \pmb x } = ( 1 - \lambda ) { \pmb x } _ { i }$ and $y = y _ { i }$ for each of $\mathbf { { x } } _ { i } , y _ { i }$ in $X , Y )$ $\begin{array} { r l } & { \ell = \ell _ { 1 } + \ell _ { 2 } + \ell _ { 3 } } \\ & { \pmb { w } \pmb { w } - \eta _ { t + 1 } \nabla \ell } \end{array}$ end
72
+ end
73
+ return $\pmb { w }$
74
+
75
+ information than local data, we can think of a method of mixing it with local data:
76
+
77
+ $$
78
+ \ell _ { \mathtt { N a i v e M i x } } = ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \pmb { x } _ { i } + \lambda \bar { \pmb { x } } _ { j } \big ) , y _ { i } \Big ) + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \pmb { x } _ { i } + \lambda \bar { \pmb { x } } _ { j } \big ) , \bar { y } _ { j } \Big )
79
+ $$
80
+
81
+ where $( { \pmb x } _ { i } , y _ { i } )$ is an entry from local data and $( \bar { \pmb { x } } _ { j } , \bar { y _ { j } } )$ corresponds to means of (inputs,labels) from other client $j$ . Note that Eq. (1) can be understood as the generalization of the loss of directly using the mashed data mentioned above in the sense that such loss can be achieved if $\lambda$ in Eq. (1) is set deterministically to 0 and 1.
82
+
83
+ In the experimental section, we confirm the effectiveness of MAFL using $\ell _ { \tt N a i v e M i x }$ . However, in the next subsection, we will show how to achieve better performance by approximating the global Mixup in a more systematical way in our MAFL framework.
84
+
85
+ # 3.3 FEDMIX: APPROXIMATING GLOBAL MIXUP VIA INPUT DERIVATIVE
86
+
87
+ We now provide our main approach in the MAFL framework that aims to approximate the effect of global Mixup only using averaged data from other clients. Consider some client $i$ with its local data $( { \pmb x } _ { i } , y _ { i } )$ . It is not allowed in federated learning, but let us assume that client $i$ has access to client $j$ ’s local data $( \boldsymbol { x } _ { j } , \boldsymbol { y } _ { j } )$ . Then, client $i$ would leverage $( \boldsymbol { x } _ { j } , \boldsymbol { y } _ { j } )$ to improve the performance of its local model especially in non-iid settings by augmenting additional data via Mixup:
88
+
89
+ $$
90
+ \begin{array} { r } { \tilde { \mathbfit { x } } = ( 1 - \lambda ) \mathbfit { x } _ { i } + \lambda \mathbfit { x } _ { j } \quad \mathrm { a n d } \quad \tilde { y } = ( 1 - \lambda ) y _ { i } + \lambda y _ { j } . } \end{array}
91
+ $$
92
+
93
+ If Mixup rate $\lambda$ is 1, $( \boldsymbol { x } _ { j } , \boldsymbol { y } _ { j } )$ from client $j$ is again directly used like a regular local data, and it would be much more efficient than indirect update of local models through the server.
94
+
95
+ The essence of our method is to approximate the loss function $\ell ( f ( \tilde { \pmb { x } } ) , \tilde { y } )$ for the augmented data from Eq. (2), with Taylor expansion for the first argument $_ { \textbf { \em x } }$ . Specifically, we derive the following proposition:
96
+
97
+ Proposition 1 Consider the loss function of the global Mixup modulo the privacy issues,
98
+
99
+ $$
100
+ \ell _ { \tt G l o b a l M i x u p } \big ( f ( \tilde { x } ) , \tilde { y } \big ) = \ell \Big ( f \big ( ( 1 - \lambda ) x _ { i } + \lambda x _ { j } \big ) , ( 1 - \lambda ) y _ { i } + \lambda y _ { j } \Big )
101
+ $$
102
+
103
+ for cross-entropy loss $\ell$ . Suppose that Eq. (3) is approximated by applying Taylor series around the place where $\lambda \ll 1$ . Then, $i f$ we ignore the second order term (i.e., $\bar { \mathcal { O } } ( \lambda ^ { 2 } )$ ), we obtain the following approximated loss:
104
+
105
+ $$
106
+ ( 1 - \lambda ) \ell { \Big ( } f { \big ( } ( 1 - \lambda ) \mathbf { { \big ) } } x _ { i } { \Big ) } , y _ { i } { \Big ) } + \lambda \ell { \Big ( } f { \big ( } ( 1 - \lambda ) \mathbf { { \big ) } } x _ { i } { \big ) } , y _ { j } { \Big ) } + \lambda { \frac { \partial \ell } { \partial x } } \cdot \mathbf { { x } } _ { j }
107
+ $$
108
+
109
+ where the derivative $\textstyle { \frac { \partial \ell } { \partial \mathbf { x } } }$ is evaluated at ${ \pmb x } = ( 1 - \lambda ) { \pmb x } _ { i }$ and $y = y _ { i }$ .
110
+
111
+ While Eq. (4) still involves $\boldsymbol { \mathscr { x } } _ { j }$ and $y _ { j }$ , invading the privacy of client $j$ , the core value of Proposition 1 gets clearer when mixing up multiple data instances from other clients. Note that the vanilla Mixup is not mixing one specific instance with other data, but performing augmentations among several random selected data. In a non-iid $\mathrm { F L }$ environment, we can also expect that the effect will be greater as we create Mixup data by accessing as much private data as possible from other clients. From this point of view, let us assume that client $i$ has received a set of $M$ private instances, $J$ , from client $j$ . Then, the global Mixup loss in Eq. (3) is
112
+
113
+ $$
114
+ \frac { 1 } { | J | } \sum _ { j \in J } \ell \Big ( f \big ( ( 1 - \lambda ) \pmb { x } _ { i } + \lambda \pmb { x } _ { j } \big ) , ( 1 - \lambda ) y _ { i } + \lambda y _ { j } \Big ) ,
115
+ $$
116
+
117
+ and the approximated FedMix loss in Proposition 1 becomes
118
+
119
+ $$
120
+ \begin{array} { l } { \ell _ { \mathrm { F e d M i x } } = \displaystyle \frac { 1 } { | J | } \sum _ { j \in J } ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \mathbf { x } _ { i } \big ) , y _ { i } \Big ) + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \mathbf { x } _ { i } \big ) , y _ { j } \Big ) + \lambda \frac { \partial \ell } { \partial x } \cdot \mathbf { x } _ { j } } \\ { = ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \mathbf { x } _ { i } \big ) , y _ { i } \Big ) + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \mathbf { x } _ { i } \big ) , \bar { y } _ { j } \Big ) + \lambda \frac { \partial \ell } { \partial x } \cdot \bar { \mathbf { x } } _ { j } } \end{array}
121
+ $$
122
+
123
+ where we utilize the linearity of Equation 4 in terms of $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { j } }$ and $y _ { j }$ , and $\bar { \mathbf { x } } _ { j }$ and $\bar { y } _ { j }$ correspond to mean of $M$ inputs and labels in $J$ , respectively. The algorithmic details are provided in the appendix due to the space constraint (see Algorithm 2 in Appendix A).
124
+
125
+ # 3.4 PRIVACY ISSUES AND ADDITIONAL COSTS OF MAFL
126
+
127
+ Privacy issues of MAFL MAFL requires exchanging averaged data by construction. Even though MAFL exchanges only the limited information allowed by the application, it may causes new types of privacy issues. The potential privacy risk of FL or MAFL is beyond the main scope of our study, but in this section, we briefly discuss some basic privacy issues of MAFL and potential solutions.
128
+
129
+ • There is possibility that local data distribution can be inferred relatively easily from averaged data. This issue simply arises as $M _ { k }$ is not large enough, so that individual data could be inferred from the averaged data easily. On the other hand, if $n _ { k }$ is not big enough, each entry in $X _ { g } , Y _ { g }$ could reveal too much about the whole local distribution of the client it came from.
130
+ • It could be easy to infer ownership of each entry in $X _ { g } , Y _ { g }$ , if it contains client-id specific information. If clients could identify what other client each entry came from, information about local data of that client could be inferred.
131
+ • Additional concerns involve identification of data by detecting change in exchanged averaged data, in case of continual learning, which involves local data change across time. This issue is exacerbated as there is update of averaged data for every minute change on local data, which makes the client receiving $X _ { g } , Y _ { g }$ easier to infer the changed portion. One simple suggestion to alleviate this issue would be to only update $X _ { g } , Y _ { g }$ when there is enough change in local data across enough number of clients, so that such changes are not easily exploitable. As a way to strengthen privacy protection under MAFL (and possibly to help with issues mentioned above), we in the server can average within entries of $X _ { g } , Y _ { g }$ . If this additional average is done across every random $m$ entries at the server, it would effectively provide averaged data across all local data of $m$ clients, but would result in an $m$ -fold decrease in the number of averaged data. This variant is considered in Appendix J.
132
+ • In case where the global server is not credential, the averaged data itself should ensure privacy as it is sent to the server. A most obvious concern comes from when $M _ { k }$ is not large enough, so that each entry of $M _ { k }$ reveals more of information of each individual input. Simply using a sufficiently large value of $M _ { k }$ can alleviate this issue, although this might result in worse performance. However, for clients whose $n _ { k }$ is quite small, there is a limit for $M _ { k }$ to be large enough. One way to alleviate this issue is to introduce a cut-off threshold for allowing clients to send averaged data to server. We report the results in Appendix H.
133
+
134
+ Communication cost Since MAFL requires sending averaged input data between server and clients, additional communication costs are incurred. However, it turns out that this additional cost is very small compared to communication cost required for exchanging model parameters. This is mainly due to the fact that input dimension is typically much smaller than number of model parameters. Specifically, for input dimension $d _ { i }$ , exchange of averaged data among $N$ clients incurs $2 N d _ { i }$ cost (factor of 2 for server receiving and sending the values). Meanwhile, the cost for exchange of model parameters is $2 N p _ { m }$ where $p _ { m }$ is number of model parameters. Under typical circumstances, averaged data is only exchanged at the beginning of the first communication round, while model parameters have to be exchanged every round. Thus the ratio between the two costs after $T$ communication rounds is $d _ { i } / ( T p _ { m } )$ . Since $d _ { i } \ll p _ { m }$ in general, we consider extra communication burden to be negligible (even in the worst case where we update averaged data every round, the ratio is still $d _ { i } / ( p _ { m } )$ .
135
+
136
+ FedMix also requires calculation of input derivative term in its loss function, so potentially extra memory is required. We further provide additional computation costs of MAFL in Appendix G.
137
+
138
+ # 4 EXPERIMENTS
139
+
140
+ We test our result on various benchmark datasets with NaiveMix (direct mixup between local data and averaged data) and FedMix, then compare the results with FedAvg (McMahan et al., 2017) and FedProx (Li et al., 2020b), as well as other baseline Mixup scenarios. We create a highly non-iid environment to show our methods excel in such situations.
141
+
142
+ ![](images/3062c1ff064458cfa00a93a7dc8bdfbd7b69488cdb89bb83d6aec71a33449b03.jpg)
143
+ Figure 2: Learning curves for various algorithms on benchmark datasets. Learning curves correspond to results in Table 1. (For simplicity, we only show key algorithms to compare.)
144
+
145
+ Table 1: Test accuracy after (target rounds) and number of rounds to reach (target test accuracy) on various datasets. Algorithms in conjunction with FedProx are compared separately (bottom). MAFL-based algorithms are marked in bold.
146
+
147
+ <table><tr><td rowspan="2"></td><td colspan="2">FEMNIST</td><td colspan="2">CIFAR10</td><td colspan="2">CIFAR100</td></tr><tr><td>test acc.(200)rounds (80%) test acc.(500) rounds (70%) test acc.(500) rounds (40%)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GlobalMixup</td><td>88.2</td><td>8</td><td>88.2</td><td>85</td><td>61.4</td><td>54</td></tr><tr><td>FedAvg</td><td>85.3</td><td>26</td><td>73.8</td><td>283</td><td>50.4</td><td>101</td></tr><tr><td>LocalMix</td><td>82.8</td><td>28</td><td>73.0</td><td>267</td><td>54.8</td><td>91</td></tr><tr><td>NaiveMix</td><td>85.9</td><td>23</td><td>77.4</td><td>198</td><td>53.8</td><td>85</td></tr><tr><td>FedMix</td><td>86.5</td><td>18</td><td>81.2</td><td>162</td><td>56.7</td><td>34</td></tr><tr><td>FedProx</td><td>84.6</td><td>29</td><td>77.3</td><td>266</td><td>51.2</td><td>79</td></tr><tr><td>FedProx+LocalMix</td><td>84.1</td><td>39</td><td>74.1</td><td>314</td><td>54.0</td><td>90</td></tr><tr><td>FedProx+NaiveMix</td><td>85.7</td><td>37</td><td>76.7</td><td>230</td><td>53.1</td><td>74</td></tr><tr><td>FedProx+FedMix</td><td>86.0</td><td>32</td><td>78.9</td><td>223</td><td>54.5</td><td>63</td></tr></table>
148
+
149
+ # 4.1 EXPERIMENTAL SETUP
150
+
151
+ Dataset We implement the typical federated setting where clients have their own local data and one centralized server that receives and sends information from/to the clients. We utilize a large number of clients and only utilize partial set of clients chosen each round to locally update. We used three popular image classification benchmark datasets: FEMNIST (Caldas et al., 2019), CIFAR10, and CIFAR100, as well as a popular natural language processing benchmark dataset, Shakespeare. See Appendix B for more details about dataset, models, and hyperparameters used. We introduce data size heterogeneity for FEMNIST dataset: each client has different size of local data, each from a unique writer. Meanwhile, we introduce label distribution heterogeneity for CIFAR datasets, with clients having data with only a limited number of classes.
152
+
153
+ Algorithms We study the performance of FedMix and NaiveMix and compare with FedAvg and FedProx. We also compare our method against FedAvg with Mixup within local data (labeled LocalMix; see Figure 1(b)), to show whether Mixup within local data is sufficient to allow the model to perform well on external data. To show the effectiveness of FedMix, we also compare our method to the case where we perform direct Mixup with external data (and thus violating privacy, labeled Global Mixup; see Figure 1(a)).
154
+
155
+ # 4.2 PERFORMANCE OF FEDMIX AND NAIVEMIX ON NON-IID FEDERATED SETTINGS
156
+
157
+ We compare the learning curves of each method under the same federated settings, in terms of number of communication rounds conducted. Comparing MAFL-based algorithms, NaiveMix shows slight performance increases than FedAvg, FedProx, and Localmix, while FedMix outperforms and shows faster convergence than all of FedAvg, FedProx, Localmix and NaiveMix for all datasets tested as in Figure 2.
158
+
159
+ While NaiveMix and FedMix is already superior to FedProx, they are parallel to FedProx modification and can be applied in conjunction with FedProx. We compare performances across FedProx variants of various Mixup algorithms in Table 1. FedMix outperforms vanilla FedProx for various datasets, although they do fall short of default version of FedMix used for the main experiment.
160
+
161
+ Table 2: Test accuracy after 50 rounds on Shakespeare dataset.
162
+
163
+ <table><tr><td>Algorithm</td><td>Global Mixup</td><td>FedAvg</td><td>FedProx</td><td>LocalMix</td><td>NaiveMix</td><td>FedMix</td></tr><tr><td>Test Acc. (%)</td><td>54.4</td><td>54.7</td><td>54.4</td><td>53.7</td><td>56.9</td><td>56.9</td></tr></table>
164
+
165
+ Table 3: Test accuracy on CIFAR10, under varying number of clients $( N )$ . Number of samples per client is kept constant.
166
+
167
+ <table><tr><td># of Clients(N)</td><td>20</td><td>40</td><td>60</td></tr><tr><td>Global Mixup</td><td>86.3</td><td>89.2</td><td>88.2</td></tr><tr><td>FedAvg</td><td>65.8</td><td>73.4</td><td>73.8</td></tr><tr><td>LocalMix</td><td>46.9</td><td>71.4</td><td>73.0</td></tr><tr><td>NaiveMix</td><td>62.2</td><td>75.1</td><td>77.4</td></tr><tr><td>FedMix</td><td>68.5</td><td>76.4</td><td>81.2</td></tr></table>
168
+
169
+ Table 4: Test accuracy on CIFAR10, under varying number of local data per client. Number of clients $( N )$ is kept constant. Number of data is indicated in percentage of the case where all 50,000 data are used.
170
+
171
+ <table><tr><td>Local data (%)</td><td>20</td><td>50</td><td>100</td></tr><tr><td>Global Mixup</td><td>71.4</td><td>86.1</td><td>88.2</td></tr><tr><td>FedAvg</td><td>61.8</td><td>74.7</td><td>73.8</td></tr><tr><td>LocalMix</td><td>43.7</td><td>60.3</td><td>73.0</td></tr><tr><td>NaiveMix</td><td>51.5</td><td>69.6</td><td>77.4</td></tr><tr><td>FedMix</td><td>65.2</td><td>77.8</td><td>81.2</td></tr></table>
172
+
173
+ To confirm whether received information is properly incorporated, we compare FedMix with possible Mixup scenarios under MAFL. We show the results in Appendix D.
174
+
175
+ While Mixup is usually performed for image classification tasks, it could be applied for language models. For language datasets, since Mixup cannot be performed on input, we perform Mixup on embeddings (for a detailed explanation of Mixup between hidden states, see Appendix E). When tested on Shakespeare dataset, FedMix and NaiveMix both show better performance than baseline algorithms (Table 2). Note that for this task, LocalMix has the lowest performance, and global Mixup does not result in the superior performance above federated algorithms as expected. We think Mixup does not provide performance boost for this specific task, but claim that MAFL algorithms still result in better performance compared to FedAvg.
176
+
177
+ We also claim that FedMix is superior compared to other methods under various settings, in terms of varying number of clients $( N )$ and varying number of local data per clients. We observe superior performance of FedMix compared to other algorithms for all settings (see Tables 3 and 4). We also vary the number of local epochs $( E )$ between global updates, and still observe that FedMix outperforms other methods (see Appendix F).
178
+
179
+ FedMix compared to global Mixup with fixed mixup ratio Since FedMix approximates loss function of global Mixup for fixed value of $\lambda \ll 1$ , we can evaluate the efficiency of approximation by comparing between FedMix and a global Mixup scenario with fixed $\lambda$ value. Table 5 shows varying performance between global Mixup and FedMix under various values of $\lambda$ . As $\lambda$ increases, Mixup data reflects more of the features of external data, resulting in better performance in case of global Mixup. However, this also results in our approximation being much less accurate, and we indeed observe performance of FedMix decreasing instead. The result shows that the hyperparameter $\lambda$ should be chosen to balance between better Mixup and better approximation. However, it seems that high $\lambda$ results in significant decrease in both methods, probably due to external data (which is out-of-distribution for local distribution) being overrepresented during local update.
180
+
181
+ Table 5: Test accuracy on CIFAR10, under varying mixup ratio $\lambda$ .
182
+
183
+ <table><tr><td>入</td><td>0.05</td><td>0.1</td><td>0.2</td><td>0.5</td></tr><tr><td>GlobalMixup</td><td>79.4</td><td>80.4</td><td>81.1</td><td>63.6</td></tr><tr><td>FedMix</td><td>81.2</td><td>80.5</td><td>77.7</td><td>67.1</td></tr></table>
184
+
185
+ ![](images/2ccfccc1020cb0d12f73c753a723aabddad830d016334fdae0a311d5495a279c.jpg)
186
+ Figure 3: Performance of MAFL-based algorithms for various $M _ { k }$ values (left), and samples of averaged images from EMNIST/CIFAR10 for various $M _ { k }$ values (right).
187
+
188
+ Table 6: Test accuracy after 500 rounds on CIFAR10, under varying number of classes per client.
189
+
190
+ Table 7: Test accuracy after 500 rounds on CIFAR10, under varying number of clients trained per communication round.
191
+
192
+ <table><tr><td></td><td colspan="4">-class/client-</td></tr><tr><td>Algorithm</td><td>2</td><td>3</td><td>5</td><td>10 (iid)</td></tr><tr><td>Global Mixup</td><td>88.2</td><td>90.7</td><td>90.9</td><td>91.4</td></tr><tr><td>FedAvg</td><td>73.8</td><td>84.2</td><td>86.8</td><td>89.3</td></tr><tr><td>Localmix</td><td>73</td><td>83.3</td><td>86.4</td><td>89.1</td></tr><tr><td>NaiveMix</td><td>77.4</td><td>84.5</td><td>87.7</td><td>89.4</td></tr><tr><td>FedMix</td><td>81.2</td><td>85.1</td><td>87.9</td><td>89.1</td></tr></table>
193
+
194
+ <table><tr><td></td><td colspan="4">-K/N-</td><td></td></tr><tr><td>Algorithm</td><td>0.1</td><td>0.15</td><td>0.25</td><td>0.5</td><td>1.0</td></tr><tr><td>Global Mixup</td><td>89.3</td><td>89.7</td><td>88.2</td><td>91.2</td><td>90.7</td></tr><tr><td>FedAvg</td><td>63.3</td><td>73.2</td><td>73.8</td><td>76.3</td><td>83.1</td></tr><tr><td>Localmix</td><td>64.7</td><td>64.5</td><td>73</td><td>77.9</td><td>79.8</td></tr><tr><td>NaiveMix</td><td>73.6</td><td>74.7</td><td>77.4</td><td>81.4</td><td>83.5</td></tr><tr><td>FedMix</td><td>74.7</td><td>76.9</td><td>80.5</td><td>82.1</td><td>84.3</td></tr></table>
195
+
196
+ Effect of $M _ { k }$ to compute mean In our algorithm, we chose to calculate $X _ { g } , Y _ { g }$ with all local data for each client. To observe a potential effect of $M _ { k }$ , we varied $M _ { k }$ used to compute the averaged data that is sent from other clients. Inevitably, reducing $M _ { k }$ will result in $X _ { g } , Y _ { g }$ having much more rows, imposing additional computation burden and less preservation of privacy. In general, for both FEMNIST and CIFAR10, there is only small performance decline as privacy is enhanced, as can be seen in Figure 3. We show that using all local data to calculate each mean is sufficient to both preserve privacy and still have good performance.
197
+
198
+ Mixup between hidden states Manifold Mixup (Verma et al., 2018) was proposed to show improvements over input Mixup (Zhang et al., 2018) in various image classification tasks such as CIFAR10, CIFAR100, and SVHN. We discuss the possibilities and implications of applying Mixup between hidden states in Appendix E. In summary, we show that variants of using hidden states do not show meaningful advances over FedMix using input Mixup, suggesting that in general, it is relatively inefficient since it imposes additional communication burden.
199
+
200
+ Effect of non-iid-ness and client participation We claim that our method is efficient when faced with non-iid federated settings. For example, our setting of CIFAR10 having only data from 2 classes per client is very non-iid, as in average a pair of clients share only roughly $20 \%$ of data distribution. We test settings for CIFAR10 where clients have data from greater number of classes, and while there is little difference for iid (10 class/client) setting, we observe that FedMix outperform other methods and suffer less from increased heterogeneity from highly non-iid settings (Table 6). In addition, we also observe less decline and better performance for MAFL-based algorithms, FedMix in particular, as we train less number of clients per round, reducing communication burden in cost of performance (Table 7).
201
+
202
+ # 5 CONCLUSION
203
+
204
+ We proposed MAFL, a novel framework, that exchanges averaged local data, to gain relevant information while still ensuring privacy. Under the new framework, we first suggested NaiveMix, which is a naive implementation of Mixup between local and received data. More interestingly, we proposed FedMix, which provides approximation of global Mixup only using averaged data. MAFL, and FedMix in particular, showed improved performance over existing algorithms in various benchmarks, particularly in non-iid environments where each client has data distributed heterogeneously. While our method is very effective and still preserving privacy, future work needs to be done to deal with various non-iid environments, desirably with better privacy and beyond image classification tasks.
205
+
206
+ # ACKNOWLEDGMENTS
207
+
208
+ This work was supported by the National Research Foundation of Korea (NRF) grants (No.2018R1A5A1059921, No.2019R1C1C1009192) and Institute of Information & Communications Technology Planning & Evaluation (IITP) grants (No.2017-0-01779, XAI, No.2019-0-01371, Development of brain-inspired AI with human-like intelligence, and No.2019-0-00075, Artificial Intelligence Graduate School Program(KAIST)) funded by the Korea government (MSIT).
209
+
210
+ # REFERENCES
211
+
212
+ Sean Augenstein, H. Brendan McMahan, Daniel Ramage, Swaroop Ramaswamy, Peter Kairouz, Mingqing Chen, Rajiv Mathews, and Blaise Aguera y Arcas. Generative models for effective ml on private, decentralized datasets. International Conference on Learning Representations (ICLR), 2020.
213
+
214
+ Sebastian Caldas, Sai Meher Karthik Duddu, Peter Wu, Tian Li, Jakub Konecnˇ y, H. Brendan McMa- ´ han, Virginia Smith, and Ameet Talwalkar. Leaf: A benchmark for federated settings. International Conference on Machine Learning (ICML) Workshop on Federated Learning for Data Privacy and Confidentiality, 2019.
215
+
216
+ Olivier Chapelle, Jason Weston, Leon Bottou, and Vladimir Vapnik. Vicinal risk minimization. ´ Conference on Neural Information Processing Systems (NIPS), 2000.
217
+
218
+ Gregory Cohen, Saeed Afshar, Jonathan Tapson, and Andre van Schaik. Emnist: an extension of ´ mnist to handwritten letters. International Joint Conference on Neural Networks (IJCNN), 2017.
219
+
220
+ Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Marc’aurelio Ranzato, Andrew Senior, Paul Tucker, Ke Yang, Quoc V. Le, and Andrew Y. Ng. Large scale distributed deep networks. Conference on Neural Information Processing Systems (NIPS), 2012.
221
+
222
+ Z. Eaton-Rosen, Felix J. S. Bragman, Sebastien Ourselin, and M. Cardoso. Improving data aug- ´ mentation for medical image segmentation. Conference on Medical Imaging with Deep Learning (MIDL), 2020.
223
+
224
+ Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, 2015.
225
+
226
+ Hongyu Guo, Yongyi Mao, and Richong Zhang. Augmenting data with mixup for sentence classification: An empirical study. CoRR, abs/1905.08941, 2019.
227
+
228
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. Conference on Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
229
+
230
+ Kevin Hsieh, Amar Phanishayee, Onur Mutlu, and Phillip B. Gibbons. The non-iid data quagmire of decentralized machine learning. International Conference on Machine Learning (ICML), 2020.
231
+
232
+ Wonyong Jeong, Jaehong Yoon, Eunho Yang, and Sung Ju Hwang. Federated semi-supervised learning with inter-client consistency. International Workshop on Federated Learning for User Privacy and Data Confidentiality in Conjunction with ICML 2020 (FL-ICML’20), 2020.
233
+
234
+ Peter Kairouz, H. Brendan McMahan, Brendan Avent, Aurelien Bellet, Mehdi Bennis, Arjun Nitin ´ Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, Rafael G. L. D’Oliveira, Salim El Rouayheb, David Evans, Josh Gardner, Zachary Garrett, Adria Gasc \` on, ´ Badih Ghazi, Phillip B. Gibbons, Marco Gruteser, Zaid Harchaoui, Chaoyang He, Lie He, Zhouyuan Huo, Ben Hutchinson, Justin Hsu, Martin Jaggi, Tara Javidi, Gauri Joshi, Mikhail Khodak, Jakub Konecnˇ y, Aleksandra Korolova, Farinaz Koushanfar, Sanmi Koyejo, Tancr ´ ede \` Lepoint, Yang Liu, Prateek Mittal, Mehryar Mohri, Richard Nock, Ayfer Ozg ¨ ur, Rasmus Pagh, ¨ Mariana Raykova, Hang Qi, Daniel Ramage, Ramesh Raskar, Dawn Song, Weikang Song, Sebastian U. Stich, Ziteng Sun, Ananda Theertha Suresh, Florian Tramer, Praneeth Vepakomma, Jianyu \` Wang, Li Xiong, Zheng Xu, Qiang Yang, Felix X. Yu, Han Yu, and Sen Zhao. Advances and open problems in federated learning. ArXiv, abs/1912.04977, 2019.
235
+
236
+ Jakub Konecnˇ y, H. Brendan McMahan, Felix X. Yu, Peter Richt ´ arik, Ananda Theertha Suresh, and ´ Dave Bacon. Federated learning: Strategies for improving communication efficiency. Conference on Neural Information Processing Systems (NIPS) Workshop on Private Multi-Party Machine Learning, 2016.
237
+
238
+ Yann Lecun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to´ document recognition. Proceedings of the IEEE, 1998.
239
+
240
+ Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions. IEEE Signal Processing Magazine, 37:50–60, 2020a.
241
+
242
+ Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. Federated optimization in heterogeneous networks. Proceedings of Machine Learning and Systems (MLSys), 2020b.
243
+
244
+ Xiang Li, Kaixuan Huang, Wenhao Yang, Shusen Wang, and Zhihua Zhang. On the convergence of fedavg on non-iid data. International Conference on Learning Representations (ICLR), 2020c.
245
+
246
+ H. Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. ¨ Communication-efficient learning of deep networks from decentralized data. International Conference on Artificial Intelligence and Statistics (AISTATS), 2017.
247
+
248
+ H. Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private recurrent language models. International Conference on Learning Representations (ICLR), 2018.
249
+
250
+ Mehryar Mohri, Gary Sivek, and Ananda Theertha Suresh. Agnostic federated learning. International Conference on Machine Learning (ICML), 2019.
251
+
252
+ Seungeun Oh, Jihong Park, Eunjeong Jeong, Hyesung Kim, Mehdi Bennis, and Seong-Lyun Kim. Mix2fld: Downlink federated learning after uplink federated distillation with two-way mixup. IEEE Communication Letters, 2020.
253
+
254
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115 (3):211–252, 2015.
255
+
256
+ Felix Sattler, Simon Wiedemann, Klaus-Robert Muller, and Wojciech Samek. Robust and ¨ communication-efficient federated learning from non-iid data. IEEE Transactions on Neural Networks and Learning Systems, 2019.
257
+
258
+ MyungJae Shin, Chihoon Hwang, Joongheon Kim, Jihong Park, Mehdi Bennis, and Seong-Lyun Kim. Xor mixup: Privacy-preserving data augmentation for one-shot federated learning. International Workshop on Federated Learning for User Privacy and Data Confidentiality in Conjunction with ICML 2020 (FL-ICML’20), 2020.
259
+
260
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. International Conference on Learning Representations (ICLR), 2015.
261
+
262
+ Virginia Smith, Simone Forte, Chenxin Ma, Martin Takac, Michael I. Jordan, and Martin Jaggi. Cocoa: A general framework for communication-efficient distributed optimization. Journal of Machine Learning Research (JMLR), 2016.
263
+
264
+ Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. Federated multi-task learning. Conference on Neural Information Processing Systems (NIPS), 2017.
265
+
266
+ Sunil Thulasidasan, Gopinath Chennupati, Jeff Bilmes, Tanmoy Bhattacharya, and Sarah Michalak. On mixup training: Improved calibration and predictive uncertainty for deep neural networks. Conference on Neural Information Processing Systems (NIPS), 2019.
267
+
268
+ Tiffany Tuor, Shiqiang Wang, Bong Jun Ko, Changchang Liu, and Kin K. Leung. Overcoming noisy and irrelevant data in federated learning. International Conference on Pattern Recognition (ICPR), 2020.
269
+
270
+ Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, Aaron Courville, David Lopez-Paz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. International Conference on Machine Learning (ICML), 2018.
271
+
272
+ Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, and Yasaman Khazaeni. Federated learning with matched averaging. International Conference on Learning Representations (ICLR), 2020.
273
+
274
+ Pete Warden. Speech commands: A dataset for limited-vocabulary speech recognition. ArXiv, abs/1804.03209, 2018.
275
+
276
+ Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual trans- ´ formations for deep neural networks. Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
277
+
278
+ Jaehong Yoon, Wonyong Jeong, Giwoong Lee, Eunho Yang, and Sung Ju Hwang. Federated continual learning with adaptive parameter communication. ArXiv, abs/2003.03196, 2020.
279
+
280
+ Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. International Conference on Computer Vision (ICCV), 2019.
281
+
282
+ Mikhail Yurochkin, Mayank Agarwal, Soumya Ghosh, Kristjan Greenewald, Nghia Hoang, and Yasaman Khazaeni. Bayesian nonparametric federated learning of neural networks. International Conference on Machine Learning (ICML), 2019.
283
+
284
+ Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. International Conference on Learning Representations (ICLR), 2018.
285
+
286
+ Yue Zhao, Meng Li, Liangzhen Lai, Naveen Suda, Damon Civin, and Vikas Chandra. Federated learning with non-iid data. arXiv preprint arXiv:1806.00582, 2018.
287
+
288
+ # A ALGORITHMS
289
+
290
+ We present a brief depiction of FedAvg in Algorithm 3.
291
+
292
+ # Algorithm 3: FedAvg
293
+
294
+ Input: $\begin{array} { r } { N , T , K , E , B , p _ { k } , \mathbb { D } _ { k } = \{ X _ { k } , Y _ { k } \} , k = } \end{array}$ LocalUpdate(k, wt): $1 , \dots , N , \eta _ { t } , t = 0 , \dots , T - 1$ w ← wt
295
+ Initialize $w _ { 0 }$ for global server for e = 0, . . . , E − 1 do
296
+ for $t = 0 , \ldots , T - 1$ do Split $\mathbb { D } _ { k }$ into batches of size $B$ $\mathbb { S } _ { t } K$ clients selected at random for batch $( X , Y )$ do Send ${ \pmb w } _ { t }$ to clients $k \in \mathbb S _ { t }$ $\pmb { w } \gets \pmb { w } - \eta _ { t + 1 } \nabla \ell ( f ( \pmb { X } ; \pmb { w } ) , \pmb { Y } )$ for $k \in \mathbb S _ { t }$ do end $\begin{array} { r } { | \begin{array} { r l } & { { \pmb w } _ { t + 1 } ^ { k } L o c a l U p d a t e ( k , { \pmb w } _ { t } ) } \end{array} } \end{array}$ end end return w $\begin{array} { r } { \pmb { w } _ { t + 1 } \frac { 1 } { K } \sum _ { k \in \mathbb { S } _ { t } } p _ { k } \pmb { w } _ { t + 1 } ^ { k } } \end{array}$
297
+ end
298
+
299
+ # B EXPERIMENTAL DETAILS
300
+
301
+ FEMNIST FEMNIST is EMNIST (Cohen et al., 2017), a handwritten MNIST dataset, organized into federated setting, as in Caldas et al. (2019). EMNIST is very similar to MNIST, but has several differences. It includes all 26 capital and small letters of alphabet as classes along with numbers, making it 62 classes in total to classify. Also, each image contains information of the writer of the letter. In a realistic non-iid setting, each client has local data consists of only one writer, which is about 200 to 300 samples per client in average, with differing number of samples. We use $N = 1 0 0$ clients and trained only $K = 1 0$ clients per communication round.
302
+
303
+ We used LeNet-5 (Lecun et al., 1998) architecture for client training. LeNet is consisted of 2 conv layers followed by 2x2 maxpool layer then 3 fc layers. We used 5x5 conv layers with 6 and 16 channels. Following fc layers have exactly the same hidden dimension of original LeNet-5 model.
304
+
305
+ CIFAR10 and CIFAR100 CIFAR10 and CIFAR100 are very popular and simple image classification datasets for federated setting. Both contain 50,000 training data and 10,000 test data. We split the data into each client, $N = 6 0$ in case of CIFAR10 and $N = 1 0 0$ in case of CIFAR100. To create an artificial non-iid environment, we allocate data such that each client only has data from 2 (20 for CIFAR100) randomly chosen classes. We train only $K = 1 5$ clients per round for CIFAR10 and $K = 1 0$ for CIFAR100. No validation data was split and we used all training data for local training.
306
+
307
+ We used modified version of VGG architecture (Simonyan & Zisserman, 2015). Modified VGGnet is consisted of 6 convolutional layers with 3 max pooling layers. 3x3 conv layers are stacked and $2 \mathbf { x } 2$ maxpool layer is stacked after every 2 conv layers. Conv layers have channel sizes of 32, 64, 128, 128, 256, 256. Then 3 fc layers are stacked with hidden dimension 512. We use Dropout layer three times with probability 0.1 after the second, third maxpool layers and before the last fc layer. We remove all batch normalization layers since it is reported that they hurt federated learning performance (Hsieh et al., 2020).
308
+
309
+ Shakespeare We use dataset from The Complete Works of William Shakespeare, which is a popular dataset for next-character prediction task. We partition the dataset so that each client has conversations of one speaking role, as in Caldas et al. (2019), which naturally results in a heterogeneous setting, as in FEMNIST. We use $N = K = 6 0$ , each with different number of data (minimum is 200). Since input-level Mixup cannot be performed for discrete character labels, we performed Mixup on the embedding layer. Additional concerns for this variation is considered at Appendix E.
310
+
311
+ We used 2-layer LSTM, both with hidden dimension of 256. The recurret network is followed by an embedding layer. The output of LSTM is passed to a fully-connected layer, with softmax output of one node per character. There are 84 characters used in the dataset.
312
+
313
+ Local clients are trained by SGD optimizer with learning rate 0.01 and learning decay rate per round 0.999. We set local batch size as 10 for training. Specific hyperparameter setting for each dataset is explained in following Table 8. Throughout the experiment, $M _ { k }$ is fixed to local client’s dataset size. Changes in these parameters are indicated, if made, are stated for all experiments. Note that we use a fixed small value of $\lambda$ for MAFL-based algorithms to show superior performance.
314
+
315
+ Table 8: Hyperparameter settings for each dataset.
316
+
317
+ <table><tr><td>dataset</td><td>FEMNIST</td><td>CIFAR10</td><td>CIFAR100</td><td>Shakespeare</td></tr><tr><td>local epochs (E)</td><td>10</td><td>2</td><td>10</td><td>2</td></tr><tr><td>local batch size</td><td>10</td><td>10</td><td>10</td><td>10</td></tr><tr><td>class per clients</td><td>-</td><td>2</td><td>20</td><td>1</td></tr><tr><td>fraction of Clients (K/N)</td><td>0.1</td><td>0.25</td><td>0.1</td><td>1</td></tr><tr><td>total dataset classes</td><td>62</td><td>10</td><td>100</td><td>84</td></tr><tr><td>入(for NaiveMix)</td><td>0.2</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>入(forFedMix)</td><td>0.2</td><td>0.05</td><td>0.1</td><td>0.1</td></tr><tr><td>μ (for FedProx)</td><td>0.1</td><td>0.1</td><td>0.01</td><td>0.001</td></tr></table>
318
+
319
+ # C PROOF OF PROPOSITION 1
320
+
321
+ We demonstrate mathematical proof of Proposition 1 for FedMix.
322
+
323
+ Starting from Eq. (3), since the loss function is linear in $y$ for cross-entropy loss $\ell$ , we have
324
+
325
+ $$
326
+ \ell \big ( f ( \tilde { \pmb x } ) , \tilde { \pmb y } \big ) = ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \pmb x _ { i } + \lambda \pmb x _ { j } \big ) , \pmb y _ { i } \Big ) + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \pmb x _ { i } + \lambda \pmb x _ { j } \big ) , \pmb y _ { j } \Big ) .
327
+ $$
328
+
329
+ Unlike the original paper, if we assume $\lambda \ll 1$ , we can treat this loss as objective loss function for vicinal risk minimization (VRM). Under this assumption, each term in Eq. (6) can be approximated by independent Taylor expansion on the first and second argument of $\ell$ , so that we have
330
+
331
+ $$
332
+ \begin{array} { l } { { ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \pmb { x } _ { i } \big ) , y _ { i } \Big ) + ( 1 - \lambda ) \times \displaystyle \frac { \partial \ell } { \partial \pmb { x } } \bigg | _ { ( 1 - \lambda ) \pmb { x } _ { i } , y _ { i } } \cdot ( \lambda \pmb { x } _ { j } ) } } \\ { { + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \pmb { x } _ { i } \big ) , y _ { j } \Big ) + \lambda \times \displaystyle \frac { \partial \ell } { \partial \pmb { x } } \bigg | _ { ( 1 - \lambda ) \pmb { x } _ { i } , y _ { j } } \cdot ( \lambda \pmb { x } _ { j } ) . } } \end{array}
333
+ $$
334
+
335
+ Since $\lambda \ll 1$ , we can ignore the last term in the second row of Eq. (7), which is $\mathcal { O } ( \lambda ^ { 2 } )$ . We simplify this equation and switch the second term in the first row and the first term in the second row, to finally obtain
336
+
337
+ $$
338
+ \ell \big ( f ( \boldsymbol { \bar { x } } ) , \boldsymbol { \tilde { y } } \big ) \approx ( 1 - \lambda ) \ell \Big ( f \big ( ( 1 - \lambda ) \boldsymbol { x } _ { i } \big ) , \boldsymbol { y } _ { i } \Big ) + \lambda \ell \Big ( f \big ( ( 1 - \lambda ) \boldsymbol { x } _ { i } \big ) , \boldsymbol { y } _ { j } \Big ) + \lambda \frac { \partial \ell } { \partial \boldsymbol { x } } \cdot \boldsymbol { x } _ { j } .
339
+ $$
340
+
341
+ The derivative $\textstyle { \frac { \partial \ell } { \partial \mathbf { x } } }$ is calculated at ${ \pmb x } = ( 1 - \lambda ) { \pmb x } _ { i }$ and $y = y _ { i }$ . The coefficient of the last term is changed to $\lambda$ from $\lambda ( 1 - \lambda )$ since we are ignoring $\mathcal { O } ( \lambda ^ { 2 } )$ terms.
342
+
343
+ # D COMPARISON OF FEDMIX WITH BASELINE MIXUP SCENARIOS
344
+
345
+ Since our MAFL-based algorithms could be considered as VRM, it could be considered as a data augmentation (Chapelle et al., 2000). Thus, it is important to confirm that increased performance from MAFL not only comes from data augmentation but also from relevant information received from other clients. To check whether this is true, we compare FedMix with algorithms where we use either randomly generated noises as averaged data for Mixup (labeled Mixup w/ random noise) and where we use only locally averaged data for Mixup (labeled Mixup w/ local means).
346
+
347
+ In Table 9, we observe that if averaged data for MAFL is substituted for randomly generated noise or locally generated images, it does not show the level of performance FedMix is able to show. Thus, we claim that FedMix properly incorporates relevant information received.
348
+
349
+ Figure 4: Results for variants of Mixup algorithms for Mixup between hidden states. (a) Learning curves for various algorithms with hidden representation Mixup after $k = 2$ layers. (b) Learning curves for FedMix when Mixup is applied after different numbers of layers.
350
+
351
+ ![](images/d6277fdfdcb4b7a023f929577df3531d37325e1e5299cd44eced148d7beeb1cd.jpg)
352
+ E VARIANT OF FEDMIX AND NAIVEMIX WITH MIXUP BETWEEN HIDDEN STATES
353
+
354
+ While input Mixup methods promise significant enhancements, one can expect similar performance from hidden state Mixup, originally proposed by Verma et al. (2018). The authors of this work suggest that Manifold Mixup demonstrates similar, if not greater, advantage in terms of performance and adversarial robustness. We can think of variants of FedMix and NaiveMix that implement hidden state Mixup, and test if this variant outperforms vanilla methods based on input Mixup.
355
+
356
+ Although the original paper proposed randomizing the layer $k$ just before hidden states that undergo Mixup for each batch, we propose setting this layer $k$ constant. This is to reduce communication cost significantly, since selecting randomized layer for Mixup will require other clients having to send multiple hidden states (which usually have large dimensions), further imposing communication burden.
357
+
358
+ Another change is that while original Manifold Mixup (Verma et al., 2018) suggests backpropagating the entire computational graph through the whole network, including the encoder (part of model projecting input to designated hidden representation) and the decoder (rest of the model projecting hidden representation to output). Such thing is impossible to do in typical federated setting, since the computational graph to calculate hidden representation of local data and the graph to calculate hidden representation of other clients’ data is separated, and they cannot be updated simultaneously through local update (doing so requires communicating encoder weights across clients every local update, which is highly inefficient in terms of communication). Thus, during Mixup between hidden representations, only the decoder weights can be updated, since only updating encoder of the selected local client will desynchronize encoder weight values for calculating hidden states of local data from those for calculating hidden states of other clients’ data every local update, so that the model does not learn properly.
359
+
360
+ Table 9: Test accuracy after (target rounds) and number of rounds to reach (target test accuracy) on various datasets. We compare FedMix with baseline Mixup algorithms.
361
+
362
+ <table><tr><td rowspan="2">Algorithm</td><td colspan="5"></td></tr><tr><td>FEMNIST</td><td></td><td>CIFAR10</td><td>test acc. (500)</td><td>CIFAR100</td></tr><tr><td>NaiveMix</td><td>test acc.(200)</td><td>rounds (80%)</td><td>test acc.(500)</td><td>rounds (70%)</td><td>rounds (40%)</td></tr><tr><td></td><td>85.9</td><td>23</td><td>77.4</td><td>198 53.8</td><td>85</td></tr><tr><td>Mixup w/ random noise</td><td>86.1</td><td>23</td><td>77.9</td><td>201 51.2</td><td>105</td></tr><tr><td>Mixup w/ local means</td><td>85.5</td><td>21</td><td>73.5</td><td>233 51.0</td><td>87</td></tr><tr><td>FedMix</td><td>86.5</td><td>18</td><td>81.2</td><td>162</td><td>56.7 34</td></tr></table>
363
+
364
+ Table 10: Test accuracy after 500 rounds on CIFAR10, under varying local epochs $( E )$ .
365
+
366
+ <table><tr><td># of Local Epochs (E)</td><td>1</td><td>2</td><td>5</td><td>10</td></tr><tr><td>FedAvg</td><td>74.4</td><td>73.8</td><td>80.7</td><td>78.9</td></tr><tr><td>LocalMix</td><td>63.7</td><td>73.0</td><td>74.7</td><td>80.0</td></tr><tr><td>NaiveMix</td><td>72.0</td><td>77.4</td><td>81.0</td><td>82.6</td></tr><tr><td>FedMix</td><td>75.8</td><td>81.2</td><td>83.0</td><td>82.5</td></tr></table>
367
+
368
+ To compensate for this downside, we propose performing vanilla SGD updates without Mixup after Manifold Mixup SGD (which updates weights only in decoder). The vanilla updates will have both local encoder and decoder weights to be updated, thus driving the model to have better hidden representations for Mixup. However, this difference not only imposes additional computation cost, but also does not guarantee that it will show better performance compared to input Mixup methods.
369
+
370
+ While utilizing hidden representations from other clients sound like a safe idea, it does not ensure data privacy, primarily because the updating client has knowledge of the exact encoder weight values used to calculate hidden states received, and based on our modification, the received hidden states are treated as constants during Mixup. Model inversion attacks (Fredrikson et al., 2015) have been suggested to recover input images from hidden states or outputs, with access to weight values. Thus, direct Mixup between hidden states does not guarantee data privacy. Variant of FedMix and NaiveMix can be applied during decoder training phase, so that privacy is ensured while we successfully approximate Mixup.
371
+
372
+ The performance of proposed algorithms is shown in Figure 4 on CIFAR10 (same settings with main experiment for dataset, model, and training is used; see Appendix B). Comparison between methods in Figure 4(a) shows that while variants of FedMix and NaiveMix show improved performance over existing methods, they still do not outperform our method based on input Mixup (compare with dotted line). Meanwhile, comparison between using different layers for Mixup is shown in Figure 4(b). It is shown that $k = 4$ has fastest learning curve but converges similarly to case of $k = 2$ , both being slightly outperformed by case of input Mixup.
373
+
374
+ Considering additional computation burden required to communicate hidden states (which often have larger dimensions than raw input) and necessity to communicate the hidden states every communication round (since hidden representations change with encoder weights), we propose that FedMix using input Mixup is superior, and use this method for our main analyses.
375
+
376
+ # F EFFECT OF LOCAL EPOCHS
377
+
378
+ Previous works (McMahan et al., 2017; Caldas et al., 2019) show that number of local epochs, $E$ , affects federated learning performance. We tested the effect of $E$ on CIFAR10. In general, we showed that test performance increases as $E$ increases. In addition, we observed that under various values of $E$ , FedMix shows the best performance compared to other algorithms (see Table 10), being a close second after NaiveMix for $E = 1 0$ . MAFL-based algorithms outperform existing algorithms for all values of $E$ tested.
379
+
380
+ # G ADDITIONAL COMPUTATION COST INCURRED BY MAFL
381
+
382
+ For FedMix, additional computation and memory are required on edge devices during model training for each communication round, since $\ell _ { \mathrm { F e d M i x } }$ requires additional terms, including gradient by input, $\textstyle { \frac { \partial \ell } { \partial \mathbf { x } } }$ , compared to vanilla FedAvg. We claim that FedMix does not result in an additional computation burden. Specifically, we trained FedMix on CIFAR10 with the same settings as the main experiment to $70 \%$ accuracy in 1.94 hours; FedAvg takes 1.95 hours. FedMix spends a comparable amount of time to reach a similar level of performance of FedAvg. While in the memory aspect, FedMix requires about twice more GPU memory allocation compared to FedAvg, this phenomenon is also observed on LocalMix and NaiveMix. The extra memory burden comes from Mixup by enlarging the input dimension twice. For instance, FedAvg requires 46.00MB to allocate, LocalMix requires 94.00MB and 98.00MB for FedMix. Calculating gradient of the input derivative gives only negligible 2-3MB additional memory usage, which is reasonable concerning the substantial performance increase from LocalMix to FedMix.
383
+
384
+ # H INTRODUCTION OF CUT-OFF THRESHOLD IN MAFL
385
+
386
+ To better ensure privacy, a cut-off threshold that prevents clients with fewer data to send averaged data could be introduced. We performed this in FEMNIST, since for such procedure to be effective, heterogeneous size of local client data is necessary. We test with $N = 3 0 0$ clients, and introduce different threshold levels to test its efficiency. In addition, we also test with multiple $\lambda$ values, to see whether threshold level affects optimal value of $\lambda$ for FedMix.
387
+
388
+ We present the results in Table 11. While threshold does not hugely affect performance, we observe that a moderately small threshold level of 100 results in the best performance. We suggest that as the threshold level is heightened, there is less overfitting to clients with small size local data, but it also results in a decrease in the number of averaged data received by each client. We indeed find an appropriate value of threshold that maximizes performance.
389
+
390
+ In case where there are a different number of data per client, the sensitivity of $\lambda$ could also be different compared to when all clients have the same number of data. Results in Table 13 show that there is little change in performance by change in $\lambda$ , especially compared to Table 5. In addition, an inspection of the performance of a global model on individual test data of clients does not reveal any noticeable pattern by the size of local data (see Table 13).
391
+
392
+ Table 11: Test accuracy on FedMix with introduction of cut-off threshold, tested on a number of threshold level. Optimal value of $\lambda$ is also shown.
393
+
394
+ <table><tr><td></td><td colspan="4">-threshold-</td></tr><tr><td>入</td><td>1</td><td>100</td><td>150</td><td>200</td></tr><tr><td>Test Acc. (%)</td><td>83.0</td><td>83.3</td><td>83.1</td><td>82.9</td></tr><tr><td>Xoptimal</td><td>0.2</td><td>0.05</td><td>0.1</td><td>0.2</td></tr></table>
395
+
396
+ Table 12: Test accuracy on FEMNIST, $N =$ 300 under various Mixup ratio $\lambda$ .
397
+
398
+ <table><tr><td>入</td><td>0.05</td><td>0.1</td><td>0.2</td></tr><tr><td>Test Acc(%)</td><td>82.8</td><td>82.8</td><td>83.0</td></tr></table>
399
+
400
+ Table 13: Mean and standard variation of local test accuracy of FedMix on FEMNIST, tested on clients with varying local data size, under varying $\lambda$ .
401
+
402
+ <table><tr><td>入</td><td>nk &lt; mean</td><td>100 std</td><td>100 八 mean</td><td>nk ≥199 std</td><td>nk V mean</td><td>199 std</td></tr><tr><td>0.05</td><td>85.8</td><td>15.1</td><td>77.6</td><td>14.8</td><td>85.4</td><td>9.3</td></tr><tr><td>0.1</td><td>81.1</td><td>17.4</td><td>76.4</td><td>14.1</td><td>86.2</td><td>9.5</td></tr><tr><td>0.2</td><td>83.9</td><td>16.2</td><td>77.6</td><td>14.8</td><td>85.8</td><td>10.0</td></tr></table>
403
+
404
+ # I MAFL IN CONJUNCTION WITH GAUSSIAN NOISE
405
+
406
+ With results in Figure 3, we expressed concern with small values of $M _ { k }$ causing privacy issues with only a small performance boost, if at all. A common practice of introducing additional privacy is adding Gaussian noise. This is a popular method associated with differential privacy (McMahan et al., 2018), but adding noise alone does not guarantee differential privacy, since the noise level should be explicitly linked to differential privacy levels, $\epsilon$ and $\delta$ . Addition of artificial pixel-wise noise will enhance privacy but will result in a quality drop of averaged data. While privacy added by noise and privacy from averaging data cannot be directly compared, we can select a noise level which in conjunction with small $M _ { k }$ , visually provides data privacy similar to that of maximum $M _ { k }$ .
407
+
408
+ Results show that the introduction of Gaussian noise does result in a decline in performance (Table 14),although the decline is very small. Interestingly as noise gets larger as $\sigma = 0 . 3$ , random noise provides an effect as data augmentation and results in a performance increase compared to $\sigma = 0$ . This experiment is in line with Appendix D. We conclude that introduction of noise in averaged data could provide us with a reasonable alternative to FedMix with large $M _ { k }$ . While our method does not align directly with differential privacy, we leave as future work how FedMix could be smoothly combined with DP-related methods and how its privacy could be quantified in terms of differential privacy.
409
+
410
+ Table 14: Performance of FedMix with Gaussian noise. $\sigma$ refers to standard deviation of Gaussian noise.
411
+
412
+ <table><tr><td>9</td><td>0</td><td>0.05</td><td>0.075</td><td>0.15</td><td>0.3</td></tr><tr><td>Mk =5</td><td>81.4</td><td>80.1</td><td>81.1</td><td>78.7</td><td>81.5</td></tr><tr><td>Mk =10</td><td>79.9</td><td>80.8</td><td>79.1</td><td>79.4</td><td>81.7</td></tr><tr><td>M = 20</td><td>80.4</td><td>80.5</td><td>79.7</td><td>80.7</td><td>81.0</td></tr></table>
413
+
414
+ Table 15: Test accuracy on CIFAR10 varying $m$ , number of entries in $X _ { g } , Y _ { g }$ to be further averaged.
415
+
416
+ <table><tr><td>m</td><td>1</td><td>4</td><td>10</td></tr><tr><td>Test acc (% )</td><td>81.2</td><td>81.6</td><td>78.4</td></tr></table>
417
+
418
+ # J ADDITIONAL EXPERIMENTS: VARIATIONS OF FEDMIX
419
+
420
+ Averaging within $X _ { g } , Y _ { g }$ Further averaging between entries of $X _ { g } , Y _ { g }$ practically provides an extension of the range of viable $M _ { k }$ such that it exceeds $n _ { k }$ , in the sense that each averaged data is from multiple clients’ data. Such a process would also result in fewer data included in $X _ { g } , Y _ { g }$ , so we tested effect of this procedure on model performance. Table 15 shows that for $m$ -fold extra averaging, we even observe increase in performance, but it quickly declines as $m$ gets too large. This method provides an improvement in privacy while even possibly resulting in better performance.
421
+
422
+ Effect of same-class split for averaging We perform random split of local data for averaging, but an unbalanced split, such as only averaging data with the same class labels, could result in better performance. We compared between random split and same-class split while keeping $M _ { k } = 0 . 5 n _ { k }$ be equal for both methods. Same-class split resulted in a significant decline in performance, and we conclude that there is no advantage of such split over random split that we are using for our main results.
423
+
424
+ Table 17: Test accuracy of NaiveMix on CIFAR10, under varying Mixup ratio $\lambda$ .
425
+
426
+ Table 16: Test accuracy on CIFAR10, with class/client $= 2$ , under different split methods. $M _ { k } = 0 . 5 n _ { k }$ for both splits.
427
+
428
+ <table><tr><td></td><td>random split</td><td>class split</td></tr><tr><td>FedMix</td><td>81.2</td><td>78.8</td></tr></table>
429
+
430
+ <table><tr><td>入</td><td>0.05</td><td>0.1</td><td>0.2</td><td>0.5</td></tr><tr><td>NaiveMix</td><td>79.5</td><td>79.9</td><td>80.6</td><td>29.8</td></tr></table>
431
+
432
+ NaiveMix with varying Mixup ratio $\lambda$ We varied Mixup ratio $\lambda$ for NaiveMix as well. Results in Table 17 shows that NaiveMix also has an intermediate optimal value of $\lambda$ . The drop in performance for $\lambda = 0 . 5$ is much more dramatic than for FedMix (see Table 5 for comparison with Global Mixup and FedMix). We think that NaiveMix loss also suffers as it gives more weight to the averaged data, especially for large $M _ { k }$ .
433
+
434
+ Heterogeneity from skewed label distribution Recent papers (Yurochkin et al., 2019; Wang et al., 2020) suggested an alternative heterogeneous environment, which does not limit the number of classes per client but skews label distribution in local data. We used a Dirichlet distribution of $\alpha = 0 . 2 , 0 . 5$ as described by Yurochkin et al. (2019) and Wang et al. (2020). Results show that FedMix still outperforms all other algorithms. We think that such label skewing introduces less heterogeneity compared to our practice of limiting the number of classes per client, but nevertheless, FedMix is still the most powerful method in terms of performance.
435
+
436
+ Table 18: Test accuracy on CIFAR10 under label-skewed heterogeneous environment. We used Dirichlet distribution for uneven label distribution.
437
+
438
+ <table><tr><td>α</td><td>FedAvg</td><td>GlobalMix</td><td>LocalMix</td><td>NaiveMix</td><td>FedMix</td></tr><tr><td>0.2</td><td>83.9</td><td>91.1</td><td>84.0</td><td>85.0</td><td>86.4</td></tr><tr><td>0.5</td><td>87.6</td><td>91.1</td><td>88.0</td><td>88.2</td><td>88.4</td></tr></table>
parse/train/Ogga20D2HO-/Ogga20D2HO-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Ogga20D2HO-/Ogga20D2HO-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Ogga20D2HO-/Ogga20D2HO-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rld-9OxQ6HU/Rld-9OxQ6HU_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1gnxaVFDB/S1gnxaVFDB.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1gnxaVFDB/S1gnxaVFDB_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1gnxaVFDB/S1gnxaVFDB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1gnxaVFDB/S1gnxaVFDB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lhkdKkeV/S1lhkdKkeV.md ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Scalable Neural Architecture Search for 3D Medical Image Segmentation
2
+
3
+ Sungwoong Kim∗1
4
+ Ildoo Kim∗1
5
+ Sungbin Lim $^ { * 1 }$
6
+ Chiheon Kim1
7
+ Woonhyuk Baek1
8
+ Hyungjoo Cho2
9
+ Boogeon Yoon1
10
+ Taesup Kim1,3
11
+
12
+ swkim@kakaobrain.com ildoo.kim@kakaobrain.com
13
+ sungbin.lim@kakaobrain.com
14
+ chiheon.kim@kakaobrain.com wbaek@kakaobrain.com joysquare@snu.ac.kr eric.yoon@kakaobrain.com taesup.kim@umontreal.ca
15
+
16
+ 1 Kakao Brain, Pangyo, Seongnam, Gyeonggi, Republic of Korea
17
+ 2 Department of Transdisciplinary Studies, Seoul National University, Republic of Korea
18
+ 3 MILA, Universit´e de Montr´eal, Canada
19
+
20
+ Editors: Under Review for MIDL 2019
21
+
22
+ # Abstract
23
+
24
+ In this paper, a neural architecture search (NAS) framework is formulated for 3D medical image segmentation, to automatically optimize a neural architecture from a large design space. For this, a novel NAS framework is proposed to produce the structure of each layer including neural connectivities and operation types in both of the encoder and decoder of a target 3D U-Net. In the proposed NAS framework, having a sufficiently large search space is important in generating an improved network architecture, however optimizing over such a large space is difficult due to the extremely large memory usage and the long run-time originated from high-resolution 3D medical images. Therefore, a novel stochastic sampling algorithm based on the continuous relaxation on the discrete architecture parameters is also proposed for scalable joint optimization of both of the architecture parameters and the neural operation parameters. This makes it possible to maintain a large search space with small computational cost as well as to obtain an unbiased architecture by reducing the discrepancy between the training-time and test-time architectures. On the 3D medical image segmentation tasks with a benchmark dataset, an automatically designed 3D U-Net by the proposed NAS framework outperforms the previous human-designed 3D U-Net as well as the randomly designed 3D U-Net, and moreover this optimized architecture is more compact and also well suited to be transferred for similar but different tasks.
25
+
26
+ Keywords: AutoML, Neural Architecture Search, Medical Image Segmentation.
27
+
28
+ # 1. Introduction
29
+
30
+ Recently, deep neural networks have been extensively used for medical image segmentation tasks (Ronneberger et al., 2015; C¸ i¸cek et al., 2016; Mortazi et al., 2017; Ciresan et al., 2012; Milletari et al., 2016a; Kamnitsas et al., 2016; Havaei et al., 2015; Yu et al., 2017; Kayalibay et al., 2017; Oktay et al., 2018; Isensee et al., 2018). However, such a method in general relies on manual trial-and-error processes for making decisions on the network architecture, hyperparameters for training, and pre-/post-procedures. Due to being restricted to manual tuning, they would have limitations in performance improvement as well as fast transfer to related tasks. Currently, the same problem in the field of general deep learning has promoted the rapid development of automated machine learning (AutoML). Yet, in contrast to the recent intensive studies on the use of advanced AutoML algorithms such as neural architecture search (NAS) (Zoph et al., 2018; Liu et al., 2018a; Bender et al., 2018; Zoph and Le, 2017; Liu et al., 2018b; Pham et al., 2018; Zhang et al., 2018; Cai et al., 2018; Brock et al., 2018) and neural optimizer search (Bello et al., 2017; Alber et al., 2018; Wichrowska et al., 2017; Li and Malik, 2017; Andrychowicz et al., 2016) for general computer vision tasks, only a few naive AutoML approaches using simple hyperparameter optimization have been proposed for medical imaging tasks (Mortazi and Bagci, 2018; Naceur et al., 2018). Therefore, in this paper, we propose a novel NAS framework for AutoML in designing neural networks especially for 3D medical image segmentation.
31
+
32
+ Since both semantic as well as spatial information can be efficiently exploited through skip connections between an encoder and a decoder, a 3D U-Net has been popularly used in most state-of-the-art deep learning based algorithms for segmenting high-resolution 3D medical images (C¸ i¸cek et al., 2016; Milletari et al., 2016a; Yu et al., 2017; Kayalibay et al., 2017; Oktay et al., 2018; Isensee et al., 2018). However, a convolutional block for each layer in the 3D U-Net has been manually designed with various convolutional filter types, pooling types, skip-connections, and non-linear activation functions. Instead of using the suboptimally designed block, we propose to use a NAS framework to obtain an automatically optimized structure of the block, which is called a cell, for each layer in the 3D U-Net where all cell structures and the corresponding neural operation parameters (e.g. kernel weights) are simultaneously learned in an end-to-end manner. For this, four types of cells - encodernormal cell, reduction cell, decoder-normal cell, expansion cell - are defined to compose the encoder as well as the decoder for the learned U-Net architecture, which is different from the use of two types of cells (normal cell and reduction cell) in previous NAS approaches for encoder-only networks (Zoph et al., 2018; Liu et al., 2018b; Pham et al., 2018). Here, it is noted that in NAS having a sufficiently large search space is important in generating an improved network architecture on a target task. However, optimizing over such a large space for this segmentation task is difficult due to the extreme memory usage and the long runtime when dealing with high-resolution 3D images. Moreover, NAS basically needs to jointly optimize not only the discrete architecture parameters but also the continuous operation parameters, which is so-called bi-level optimization (Liu et al., 2018b; Franceschi et al., 2018), and an exact bi-level optimization over this mixed domain(discrete and continuous) is also difficult, especially with this large search space associated with the 3D U-Net.
33
+
34
+ Therefore, in this work, a novel stochastic sampling algorithm is applied for bi-level optimization of the mixed parameters in the proposed NAS framework. This can not only search over a large design space but also lead to provide a consistent and unbiased architecture that avoids the retraining of suboptimal operation parameters from the obtained architecture. More specifically, the discrete architecture parameters corresponding to neural connections and operation types in each cell are defined as a set of one-hot discrete variables, and a continuous approximation using Gumbel-softmax (Jang et al., 2017; Maddison et al., 2016) is imposed on these discrete variables. This makes it possible to compute the gradients with respect to both of the approximated architecture variables and the neural operation parameters through a back-propagation and thereby allows to use a stochastic gradient descent (SGD) in bi-level optimization. Furthermore, during the SGD-based bi-level optimization, we utilize an iterative sampling of the candidate architecture, which simulates the test-time final architecture, based on the approximated continuous architecture variables by treating those as logits to provide a categorical distribution. This sampling procedure enables to reduce the computational burden of taking the entire connectivities and operations into account within an outrageously large network originated from the continuous relaxation. Moreover, it also reduces the discrepancy between the training-time and test-time architectures. Namely, the proposed differentiable NAS with stochastic sampling supports great scalability in terms of solvable large search space with small computational cost.
35
+
36
+ Experimental results on the benchmark 3D medical image segmentation dataset show that in comparison to the previous human-designed 3D U-Net, the network obtained by the proposed scalable NAS leads to better performances even with the less numbers of parameters and FLOPs (multiply-adds). It is furthermore shown that the found architecture from a task having large amounts of labeled data can be transferred to build a network for different segmentation tasks that have small amounts of labeled data and achieves better generalization performances.
37
+
38
+ To our best knowledge, this is the first work to exploit a complete NAS framework for automatically designing an architecture for the task of 3D medical image segmentation.
39
+
40
+ # 2. Related Works
41
+
42
+ NAS can be considered as one of meta-learning processes (Lemke et al., 2015; Vanschoren, 2018) in which a meta-controller performs a guided exploration on a given architecture space via evaluation of each candidate architecture in the inner loop (Zoph et al., 2018; Pham et al., 2018). Several recent works have focused on reducing the computational cost of this architecture evaluation by reusing the trained weights on different architectures (Bender et al., 2018; Liu et al., 2018b; Pham et al., 2018). Especially, they have sampled every candidate network from a single over-parametrized network, called an one-shot model, which allows to train only the one-shot model and directly evaluate any candidate network by inheriting this one-shot model’s trained weights. Among them, DARTS (Liu et al., 2018b) have removed a meta-controller by continuous relaxation of the search space, which leads to simultaneously learn the structure parameters as well as the kernel weights by SGD-based bi-level optimization. Even though DARTS enables efficient SGD-based optimization, it still suffers from the large computational cost to handle all possible neural connectivities and operations in the whole large one-shot model. ProxylessNAS (Cai et al., 2018) have resolved this cost issue by sampling two operation types for each neural connection according to the multinomial distribution during the architecture training. However, it has still used a biased architecture during the training in that there is no guidance for realvalued operation gates (logits) representing the multinomial distribution to be converged to discrete one-hot variables standing for the final architecture at test-time. Hence, we use a stochastic architecture sampling based on the Gumbel-softmax (Jang et al., 2017; Maddison et al., 2016), that is a continuous and differentiable approximation of these one-hot variables, which makes the sampled architecture converged to be the final architecture during the training by gradually reducing the softmax temperature to 0. While the previous NAS approaches have been applied mostly to the tasks of image recognition and language modeling, Nekrasov et al. (2018) has recently adopted NAS for 2D image segmentation. However, they have optimized only the decoder architecture in an encoder-decoder framework with an RNN-based meta-controller trained by reinforcement learning.
43
+
44
+ Since Ronneberger et al. (2015) first introduced the U-Net for biomedical image segmentation, several modifications have been proposed. For example, C¸ i¸cek et al. (2016) has extended it with 3D convolutional kernels, and then Milletari et al. (2016a) has incorporated the residual blocks into the 3D U-Net. Moreover, Kayalibay et al. (2017) and Yu et al. (2017) have utilized multiple segmentation maps at different scales while Oktay et al. (2018) has adopted attention gates between an encoder and a decoder to simulate multistage cascaded convolutional neural networks (CNNs). Recently, Isensee et al. (2018) has introduced the nnU-Net that is able to dynamically adapt itself to any given segmentation task on the medical domain via non-architectural self-modifications based on the original U-Net. In (Mortazi and Bagci, 2018) the policy gradient algorithm automatically searches for the hyperparameters such as the number of filters, the filter size, and the pooling type for each layer for the 2D cine cardiac MR image segmentation while Naceur et al. (2018) incrementally optimized those hyperparameters as well as the number of layers for the 2D brain tumor segmentation. It is noted that unlike these architecture hyperparameter optimizations, we use the complete NAS to obtain the entire topology of the network architecture in this work.
45
+
46
+ # 3. Method
47
+
48
+ In this section, we first describe an architecture search space based on the U-Net-like network for 3D medical image segmentation, and then present a SGD-based bi-level optimization with the proposed stochastic sampling to simultaneously learn both of the architecture and the corresponding neural operation parameters.
49
+
50
+ # 3.1. Search Space for 3D Medical Image Segmentation
51
+
52
+ Following the idea of micro search space popularly used in the state-of-the-art NAS approaches (Liu et al., 2018b; Zoph et al., 2018; Pham et al., 2018), U-Net-like networks, which is composed of encoder and decoder layers, are designed as repeated encoder and decoder cells. The neural structure in each cell $C$ is represented as a directed acyclic graph (DAG) (see Figure 1). Let $\mathcal { G } = ( \mathcal { V } ( C ) , \mathcal { E } ( C ) )$ be the DAG where each node $i \in \mathcal V$ corresponds to an intermediate feature vector $\mathbf { x } ^ { i }$ , and each directed edge $( i , j ) \in \mathcal { E }$ stands for a connection between nodes $i$ and $j$ with a certain operation $o ^ { ( i , j ) }$ such that $\begin{array} { r } { \mathbf { x } ^ { j } = \sum _ { ( i , j ) \in \mathcal { E } } o ^ { ( i , j ) } ( \mathbf { x } ^ { i } ) } \end{array}$ . The output of a cell is a channel-wise concatenation of all the intermediate nodes. Here, a cell $C$ is one of four cell-types - encoder-normal $( C _ { \mathsf { e n c } } )$ , reduction $( C _ { \sf r e d } )$ , decoder-normal ( $C _ { \mathrm { d e c } }$ ), and expansion $( C _ { \mathsf { e x p } , }$ ) - such that $C \in \mathcal { C } = \{ C _ { \mathsf { e n c } } , C _ { \mathsf { r e d } } , C _ { \mathsf { d e c } } , C _ { \mathsf { e x p } } \}$ , and the normal cells and resizing cells are stacked alternately with skip connections between the cells in the encoder and the cells in the decoder, layer-by-layer. Note that every cell takes two outputs of the last previous two cells as inputs1 except the first reduction cell which takes an output of the predefined first convolutional block, called a stem cell, and then duplicates it as two inputs. The segmentation output is obtained from the predefined last convolutional block, referred to as an out cell.
53
+
54
+ ![](images/0c021b4e4194dabfd34c1809c978feaae43116fe9c00486f6d6c617f596b64bc.jpg)
55
+ Figure 1: Architecture search space for 3D medical image segmentation tasks. Both encoder and decoder alternately stack normal cells and resizing cells. The directed arrows between cells indicate the forward paths. Each cell is represented as a DAG which receives two inputs and produces an output.
56
+
57
+ Since $o ^ { ( i , j ) } \in \mathcal { O }$ where $\mathcal { O }$ denotes the set of all candidate operations, the architecture search problem now amounts to find the best combination of all edge operations in the four cell-types. Basically, even the same type of cells can have different structures according to their layer levels. However, in this work, for simplicity, all cells that have a common type share a common structure regardless of layer levels. It is noted that a special zero operation is also one of the candidate operations to optimize the neural connectivities as well; zero means a lack of connection between two nodes.
58
+
59
+ # 3.2. Stochastic Bi-Level Optimization
60
+
61
+ We first represent the selected edge operation using the one-hot indicator vector, $\mathbf { z } ^ { ( i , j ) }$ , as follows:
62
+
63
+ $$
64
+ o ^ { ( i , j ) } ( { \bf x } ^ { i } ) = \sum _ { o \in \mathcal { O } } z _ { o } ^ { ( i , j ) } o ( { \bf x } ^ { i } ; \boldsymbol { \theta } _ { o } ^ { ( i , j ) } ) ,
65
+ $$
66
+
67
+ where $\mathbf { z } ^ { ( i , j ) } = \{ z _ { o } ^ { ( i , j ) } \mid o \in \mathcal { O } \}$ , $\theta ^ { ( i , j ) } = \{ \theta _ { o } ^ { ( i , j ) } \mid o \in \mathcal { O } \}$ , and $\theta _ { o } ^ { ( i , j ) }$ denotes the parameter set of the operation $o$ on edge $( i , j )$ , which means that the operation on each edge is differently learned even though the cells from different layers have the same structure, i.e. the same combination of operation types.
68
+
69
+ Then, finding the best cell architecture corresponds to solving the following bi-level optimization problem:
70
+
71
+ $$
72
+ \begin{array} { r l } { \underset { Z } { \operatorname* { m i n } } } & { \quad \mathcal { L } _ { \mathsf { v a l } } ( \Theta ^ { * } ( Z ) , Z ) } \\ { \mathrm { s . t . } } & { \quad \Theta ^ { * } ( Z ) = \underset { \Theta } { \operatorname { a r g m i n } } \mathcal { L } _ { \mathsf { t r a i n } } ( \Theta , Z ) , } \end{array}
73
+ $$
74
+
75
+ where $Z = \{ \mathbf { z } ^ { ( i , j ) } \mid ( i , j ) \in \mathcal { E } ( C ) , C \in \mathcal { C } \}$ , $\Theta = \{ \theta ^ { ( i , j ) } \mid ( i , j ) \in \mathcal { E } ( C ) , C \in \mathcal { C } \}$ , and $\mathcal { L } _ { \mathsf { v a l } }$ and $\scriptstyle { \dot { L } } _ { \mathrm { t r a i n } }$ are validation loss and training loss, respectively. Note that this loss splitting is typically used in meta-learning processes including NAS for better generalization. This is a bi-level program in the mixed domain of continuous variables ( $\Theta$ ) and discrete variables $( Z$ ), which is hard to solve. DARTS (Liu et al., 2018b) and proxylessNAS (Cai et al., 2018) try to circumvent this difficulty by relaxing $Z$ to a continuous operation-weight variables $Z$ such that $\bar { z } _ { o } ^ { ( i , j ) } \in [ 0 , 1 ]$ and $\begin{array} { r } { \sum _ { o \in \mathcal { O } } \bar { z } _ { o } ^ { ( i , j ) } = 1 } \end{array}$ z¯(i,j)o = 1 and making Lval(Θ, Z¯) be differentiable with respect to both of $\Theta$ and $Z$ . This allows to use a SGD-based optimization to obtain an approximate solution $( \Theta ^ { * } , \bar { Z } ^ { * } )$ and derive the final architecture from the relaxed variables $\bar { Z } ^ { * }$ by taking the operation with the highest weight on each edge.
76
+
77
+ One problem with this method is that the performance of the final architecture is inconsistent with the performance of the relaxed architecture since the relaxed architecture is not guaranteed to be converged to the final architecture. Hence, they necessarily have to retrain $\Theta$ from the scratch after obtaining the final network architecture. Moreover, applying this method directly to a large-scale task such as high-resolution 3D medical image segmentation is infeasible due to the extremely large memory usage and the long run-time during the training to compute the loss functions $\mathcal { L } _ { \mathsf { v a l } }$ and $\mathcal { L } _ { \mathrm { t r a i n } }$ as well as their gradients from the fact that the required resources are proportional to the number of nonzero entries in $Z$ , which scales with the number of candidate operations.
78
+
79
+ To overcome the aforementioned problems, we propose a modified optimization, called stochastic bi-level optimization, by first treating $Z$ as random discrete variables and then replacing (2) as
80
+
81
+ $$
82
+ \begin{array} { r l } { \underset { \alpha } { \mathrm { m i n } } \quad } & { \mathbb { E } _ { Z \sim P _ { \alpha } } [ \mathcal { L } _ { \sf v a l } ( \Theta ^ { * } ( Z ) , Z ) ] } \\ { \mathrm { s . t . } \quad } & { \Theta ^ { * } ( Z ) = \underset { \Theta } { \mathrm { a r g m i n } } \ \mathcal { L } _ { \sf t r a i n } ( \Theta , Z ) , } \end{array}
83
+ $$
84
+
85
+ where $P _ { \alpha }$ is the discrete distribution on $Z$ , parameterized by $\alpha$ . Since it is intractable to exactly compute $\nabla _ { \alpha } \mathbb { E } _ { Z \sim P _ { \alpha } } [ \mathcal { L } _ { \mathsf { v a l } } ( \Theta ^ { * } ( Z ) , Z ) ]$ , this gradient with respect to $\alpha$ is estimated by a continuous relaxation with sampling on $Z$ in order to use the gradient-based bi-level optimization method in this work.
86
+
87
+ Algorithm 1: Gradient-based stochastic bi-level optimization
88
+
89
+ Initialize $\alpha$ and $\Theta$ ;
90
+ while not done do $\hat { Z } \gets$ GumbelSoftmaxSample $( \alpha , \tau )$ ; Update $\Theta$ by a gradient descent using $\nabla _ { \Theta } \mathcal { L } _ { \mathrm { t r a i n } } ( \Theta , \hat { Z } )$ ; Update $\alpha$ by a gradient descent using $\nabla _ { \alpha } \mathcal { L } _ { \mathsf { v a l } } ( \Theta , \hat { Z } )$ ; Anneal $\tau$ ;
91
+ end
92
+
93
+ # Algorithm 2: GumbelSoftmaxSample(α, τ )
94
+
95
+ for $( i , j ) \in \mathcal { E }$ do (i,j)o ∼ Gumbel(0, 1), o ∈ O; $\bar { \mathbf { z } } ^ { ( i , j ) } \longleftarrow 5 \mathsf { o f t m a x } ( ( \boldsymbol { \alpha } ^ { ( i , j ) } + \epsilon ^ { ( i , j ) } ) / \tau )$ ; foreach pair $\{ o _ { 1 } , o _ { 2 } \}$ in $\mathcal { O }$ do $q ^ { \{ o _ { 1 } , o _ { 2 } \} } \longleftarrow \frac { \bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } { | \mathcal { O } | - 1 }$ ; end Sample $\{ o _ { 1 } , o _ { 2 } \}$ with probability $q ^ { \{ o _ { 1 } , o _ { 2 } \} }$ ; $\begin{array} { r } { ( \hat { z } _ { o _ { 1 } } ^ { ( i , j ) } , \hat { z } _ { o _ { 2 } } ^ { ( i , j ) } ) \longleftarrow ( \frac { \bar { z } _ { o _ { 1 } } ^ { ( i , j ) } } { \bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } , \frac { \bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } { \bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } ) , \quad \hat { z } _ { o } ^ { ( i , j ) } 0 , o \notin \{ o _ { 1 } , o _ { 2 } \} ; } \end{array}$
96
+ end
97
+ return $\hat { Z }$ ;
98
+
99
+ # 3.3. Gumbel-Softmax Relaxation with Operation Sampling
100
+
101
+ The Gumbel-softmax reparametrization technique (Jang et al., 2017; Maddison et al., 2016) can approximate the above gradient by continuous relaxation as
102
+
103
+ $$
104
+ \nabla _ { \alpha } \mathbb { E } _ { Z \sim P _ { \alpha } } [ \mathcal { L } _ { \mathsf { v a l } } ( \Theta ^ { * } ( Z ) , Z ) ] \approx \mathbb { E } _ { \epsilon \sim \mathsf { G u m b e l } ( 0 , 1 ) } [ \nabla _ { \alpha } \mathcal { L } _ { \mathsf { v a l } } ( \Theta ^ { * } ( \bar { Z } ( \alpha , \epsilon ; \tau ) ) , \bar { Z } ( \alpha , \epsilon ; \tau ) ] ,
105
+ $$
106
+
107
+ where continuously relaxed variables $\bar { Z } ( \alpha , \epsilon ; \tau ) = 5 \mathsf { o f t m a x } ( ( \alpha + \epsilon ) / \tau )$ , $\tau$ denotes the temperature, and $\epsilon$ is $\alpha$ -independent random variables drawn from the Gumbel distribution. Here, the expectation in (4) is approximated with $\epsilon$ -sampling. It is noted that as $\tau 0$ , the distribution of $Z$ is identical to $P _ { \alpha }$ , which means that by annealing $\tau$ we can enforce $Z$ to be one-hot discrete variables $Z$ during the training; the relaxed architecture is forced to be converged to the final architecture.
108
+
109
+ Algorithm $1$ summarizes our stochastic bi-level optimization algorithm which alternately updates $\Theta$ and $\alpha$ by respective gradient descents. Here, note that in order to reduce the number of nonzero operation weights in $Z$ and hence to reduce the computational cost, in each iteration during the training we again replace $Z$ with $\hat { Z }$ by sampling two operations from the Gumbel-softmax and then rescaling the corresponding two operation weights to be summed to one with zero weights of the other operations on each edge, as shown in Algorithm 2.
110
+
111
+ Owing to our continuous relaxation based on the Gumbel-softmax with $\tau$ -annealing, the number of sampled operations on each edge is naturally reduced from two to one during the training. As a result, the proposed differentiable NAS with stochastic operation sampling is able to support improved scalability in terms of solvable large search space with small computational cost.
112
+
113
+ # 4. Experiments
114
+
115
+ Dataset The proposed scalable NAS (SCNAS) was evaluated on the three segmentation tasks of 3D MRI data, (1) brain tumor (484 labeled images, 3 classes), (2) heart (20 labeled images, 1 class), and (3) prostate (32 labeled images, 2 classes), from the Medical Segmentation Decathlon challenge (MSD, http://medicaldecathlon.com) where each task has different MRI sequences as well as different foreground classes, which is therefore suitable for evaluating the generalizability and transferability of the SCNAS.
116
+
117
+ Implementation Details We compared the SCNAS to the state-of-the-art architecture, 3D U-ResNet with the use of multiple segmentation maps (Kayalibay et al., 2017) and attention gates (Oktay et al., 2018), and the random architecture by random selection of edge-operations in each cell from the same architecture search space in the SCNAS. The set of operations $\mathcal { O }$ on each edge in the SCNAS consists of the following eight operations: $3 \times 3 \times 3$ convolutions, depthwise separable dilated $3 \times 3 \times 3$ convolutions with rate 2, 3 and 4, $3 \times 3 \times 3$ max and average 3D pooling, identity (skip connection), and zero. Here, we used the LeakyReLU-Conv-InstanceNorm for convolutional operations.
118
+
119
+ As shown in Figure 1, the whole network in the SCNAS is composed of 12 automatically designed cells, each of which has 4 nodes. This number of stacked cells is consistent with that of the 3D U-ResNet in terms of respective three times of downsampling and upsampling by a factor of 2. Here, all operations in the reduction cell in the SCNAS are of stride two while the expansion cells perform pre-upsampling for the inputs of the cell. Since the 3D U-ResNet in this evaluation was set to have 32 output channels in the first convolutional block, the number of output channels in the stem cell of the SCNAS was set to 32, and also similar to the 3D U-ResNet, the reduction and expansion cells in the SCNAS respectively double and halve the number of output channels of given inputs.
120
+
121
+ In both of the 3D U-ResNet and the SCNAS, patch-based training and inference were carried out such that each image was randomly cropped to the region of nonzero values with the predefined resolution during the training, while in testing, the prediction results were obtained by combining patch-based inference results with 50 percent overlap. Similar to Isensee et al. (2018), the predefined resolution for the input patch was set to $1 2 8 \times 1 2 8 \times 1 2 8$ for the tasks of brain tumors and heart while for the prostate task, the length of the $z$ - axis was reduced to 24. Since even the same task provides 3D images with heterogeneous voxel spacings, the input images were first resized for all voxel spacings to be physically equal using the given meta-data, and then $z$ -normalization was separately applied to each input channel. Note that unlike Isensee et al. (2018), any heuristic pre-/post-processing techniques including data augmentation, network-cascade, and prediction-ensemble were not adopted in this evaluation to solely examine the effects by the use of NAS in designing the network architecture.
122
+
123
+ Since the ground-truth labels for test images are not provided in the MSD dataset, the evaluation is conducted by 5-fold cross-validation (CV) on the training images with the average dice similarity coefficient (DSC) as the metric, and accordingly, we applied the well-known multi-class dice loss function (Milletari et al., 2016b; Isensee et al., 2018). With the ADAM optimizer, the 3D U-ResNet and the SCNAS models were trained for 300 epochs and 400 epochs, respectively, taking their convergences into consideration. The 3D U-ResNet was set with the batch size as 8, initial learning rate as 0.0001, and beta parameters for ADAM optimizer as (0.9, 0.999) while in the SCNAS, with the batch size 1, the initial learning rates / beta parameters were as set to be $0 . 0 2 5 \mathrm { ~ / ~ } ( 0 . 1 , 0 . 0 0 1 )$ for training operation parameters $\Theta$ and $0 . 0 0 3 / \ ( 0 . 5 , 0 . 9 9 9 )$ for training architecture parameters $\alpha$ . If a plateau for 20 epochs on the training loss was detected, the learning rate was reduced by a factor of 10. All experiments were conducted on V100 GPUs, and the implementation was done using PyTorch (Paszke et al., 2017).
124
+
125
+ Architecture Transfer Since the heart and prostate tasks only have 20 and 32 labeled MRI images, respectively, the 3D U-ResNet as well as the SCNAS can be prone to overfitting on the training set and hence to resulting in performance degradation on the validation set. Therefore, we transferred the optimized architecture obtained from the brain tumor task, which has 484 labeled MRI images, by the SCNAS into these two tasks having scarce data and retrained only the operation parameters on each task, in order to demonstrate that the SCNAS produces a more generalizable neural architecture for the similar tasks of 3D MRI image segmentation. Here, the transferred architecture came from the first CV fold in the brain tumor task.
126
+
127
+ Results Table 1 shows that the SCNAS produced better architectures than the (humandesigned) 3D U-ResNet as well as the randomly designed 3D U-Net in terms of the overall performances on all three tasks. Especially, on the heart and prostate segmentation tasks, the transferred architecture from the brain tumor task achieved significantly better generalization performances. Note that the obtained architectures by the SCNAS have been also shown that the number of neural operation parameters and the computational complexity for output prediction (in terms of FLOPs) were significantly reduced compared to the 3D UResNet. We observed the performance degradation of the 3D U-ResNet when the number of initial output channels was halved. It is also noted that most previous NAS approaches retrained the neural operation parameters after completing architecture optimization because of the utilization of a biased architecture during the training, while the SCNAS simultaneously optimized both of the architecture parameters and neural operation parameters with an unbiased architecture and thereby removed the requirement of retraining. We conjecture that Isensee et al. (2018) might be benefit from complicated pre-/post-procedures and thus obtained slightly better performances than the SCNAS. Some example images and the corresponding segmentation outputs are included in Appendix A, and the details of the optimized cell architectures by the SCNAS are presented in Appendix B.
128
+
129
+ # 5. Conclusion
130
+
131
+ In this work, a complete NAS framework for automatically designing an architecture is proposed and demonstrated on the benchmark dataset of 3D medical image segmentation tasks. In the proposed framework, NAS is formulated as finding the optimal structure of four types of cells composing an encoder as well as a decoder, and both the architecture parameters and the neural operation parameters are learned by gradient descent in an end-to-end manner. We introduce a novel stochastic sampling algorithm which results in significant improvement in terms of the scalability suitable for handling high-resolution 3D medical images and also reduces the inconsistency of the train-time architecture against the final architecture, which leads to avoid the retraining of the operation parameters. Empirical evaluation demonstrates that the automatically optimized network via the proposed NAS outperforms the manually designed 3D U-Net. Moreover, the architecture learned from a task with the large number of training data is successfully transferred to different MRI segmentation tasks with the small number of data.
132
+
133
+ Table 1: Mean DSC in Brain Tumor, Heart, and Prostate.
134
+
135
+ <table><tr><td></td><td></td><td colspan="4">Brain Tumor</td></tr><tr><td>Model</td><td>GFLOPs, Params</td><td>Edema</td><td>Non-Enhancing</td><td>Enhancing</td><td>Average</td></tr><tr><td>3D U-ResNet</td><td>881, 7.6M</td><td>79.10 ± 1.80</td><td>58.38 ± 1.29</td><td>77.37 ± 2.76</td><td>71.61</td></tr><tr><td>Random Search</td><td>152, 2.7M</td><td>79.59 ± 1.28</td><td>57.97 ± 1.36</td><td>77.85 ± 1.35</td><td>71.80</td></tr><tr><td> SCNAS</td><td>129, 2.2M</td><td>79.42 ± 1.45</td><td>58.01 ± 1.46</td><td>78.68 ± 1.80</td><td>72.04</td></tr><tr><td></td><td></td><td>Heart</td><td colspan="3">Prostate</td></tr><tr><td>Model</td><td>GFLOPs, Params</td><td>Left Atrium</td><td>Peripheral</td><td>Transitional</td><td>Average</td></tr><tr><td>3D U-ResNet</td><td>870-163, 7.6M</td><td>89.60 ± 2.35</td><td>48.37 ± 1.44</td><td>79.17 ± 4.30</td><td>63.77</td></tr><tr><td>Random Search</td><td>104-18,1.5M</td><td>89.14 ± 2.74</td><td>50.78 ± 1.22</td><td>79.58 ± 5.01</td><td>65.18</td></tr><tr><td> SCNAS</td><td>136-32, 3.0M</td><td>89.99 ± 1.32</td><td>49.70 ± 1.23</td><td>80.89 ± 3.19</td><td>65.30</td></tr><tr><td> SCNAS(transfer)</td><td>193-37, 4.2M</td><td>90.47 ± 1.70</td><td>53.81 ± 1.30</td><td>82.02 ± 4.52</td><td>67.92</td></tr></table>
136
+
137
+ The analysis using more candidate operations and different cell structures of the same type at different layer levels are left for future research. In addition, the effects of including non-architectural procedures such as data augmentation, network-cascade, and predictionensemble in the proposed NAS framework need to be analyzed in future works. Another interesting research direction would be applying the NAS framework, either directly or by architecture transfer, to other medical modalities including CT, mammography, and X-ray.
138
+
139
+ # Acknowledgments
140
+
141
+ We thank the Kakao Brain Cloud team for supporting to efficiently use GPU clusters for large-scale experiments.
142
+
143
+ # References
144
+
145
+ Maximilian Alber, Irwan Bello, Barret Zoph, Pieter-Jan Kindermans, Prajit Ramachandran, and Quoc V. Le. Backprop evolution. In ICML 2018 AutoML Workshop, 2018.
146
+
147
+ Marcin Andrychowicz, Misha Denil, Sergio G´omez, Matthew W Hoffman, and David Pfau. Learning to learn by gradient descent by gradient descent. In NIPS, 2016.
148
+
149
+ Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Neural optimizer search with reinforcement learning. In ICML, 2017.
150
+
151
+ Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In ICML, 2018.
152
+
153
+ Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Smash: one-shot model architecture search through hypernetworks. In ICLR, 2018.
154
+
155
+ Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018.
156
+
157
+ Ozg¨un C¸ i¸cek, Ahmed Abdulkadir, Soeren S. Lienkamp, Thomas Brox, and Olaf Ron- ¨ neberger. 3d u-net: Learning dense volumetric segmentation from sparse annotation. MICCAI, Springer, LNCS, 9901:424–432, 2016.
158
+
159
+ Dan Ciresan, Alessandro Giusti, Luca M. Gambardella, and J¨urgen Schmidhuber. Deep neural networks segment neuronal membranes in electron microscopy images. In NIPS, 2012.
160
+
161
+ Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimilano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In ICML, 2018.
162
+
163
+ Mohammad Havaei, Axel Davy, David Warde-Farley, Antoine Biard, Aaron C. Courville, Yoshua Bengio, Chris Pal, Pierre-Marc Jodoin, and Hugo Larochelle. Brain tumor segmentation with deep neural networks. CoRR, abs/1505.03540, 2015. URL http: //arxiv.org/abs/1505.03540.
164
+
165
+ Fabian Isensee, Jens Petersen, Andre Klein, David Zimmerer, Paul F. Jaeger, Simon Kohl, Jakob Wasserthal, Gregor Koehler, Tobias Norajitra, Sebastian Wirkert, and Klaus H. Maier-Hein. nnu-net: Self-adapting framework for u-net-based medical image segmentation. 2018.
166
+
167
+ Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbelsoftmax. In ICLR, 2017.
168
+
169
+ Konstantinos Kamnitsas, Christian Ledig, Virginia F. J. Newcombe, Joanna P. Simpson, Andrew D. Kane, David K. Menon, Daniel Rueckert, and Ben Glocker. Efficient multiscale 3d CNN with fully connected CRF for accurate brain lesion segmentation. CoRR, abs/1603.05959, 2016. URL http://arxiv.org/abs/1603.05959.
170
+
171
+ Baris Kayalibay, Grady Jensen, and Patrick van der Smagt. Cnn-based segmentation of medical imaging data. CoRR, abs/1701.03056, 2017. URL http://arxiv.org/abs/ 1701.03056.
172
+
173
+ Christiane Lemke, Marcin Budka, and Bogdan Gabrys. Metalearning: a survey of trends and technologies. Artificial Intelligence Review, 44(1), 2015.
174
+
175
+ Ke Li and Jitendra Malik. Learning to optimize neural nets. CoRR, abs/1703.00441, 2017. URL http://arxiv.org/abs/1703.00441.
176
+
177
+ Chenxi Liu, Barret Zoph, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan L. Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In ECCV, 2018a.
178
+
179
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018b.
180
+
181
+ Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. arXiv preprint arXiv:1611.00712, 2016.
182
+
183
+ Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. CoRR, abs/1606.04797, 2016a. URL http://arxiv.org/abs/1606.04797.
184
+
185
+ Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 3D Vision (3DV), 2016 Fourth International Conference on, pages 565–571. IEEE, 2016b.
186
+
187
+ Aliasghar Mortazi and Ulas Bagci. Automatically designing cnn architectures for medical image segmentation. In MLMI, 2018.
188
+
189
+ Aliasghar Mortazi, Rashed Karim, Kawal S. Rhode, Jeremy Burt, and Ulas Bagci. Cardiacnet: Segmentation of left atrium and proximal pulmonary veins from mri using multi-view cnn. MICCAI, Springer, LNCS, 10434:377–385, 2017.
190
+
191
+ Mostefa Ben Naceur, Rachida Saouli, Mohamed Akil, and Rostom Kachouri. Fully automatic brain tumor segmentation using end-to-end incremental deep neural networks in mri images. Computer Methods and Programs in Biomedicine, Elsevier, 166:39–49, 2018.
192
+
193
+ Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. arXiv preprint arXiv:1810.10804, 2018.
194
+
195
+ Ozan Oktay, Jo Schlemper, Lo¨ıc Le Folgoc, Matthew C. H. Lee, Mattias P. Heinrich, Kazunari Misawa, Kensaku Mori, Steven G. McDonagh, Nils Y. Hammerla, Bernhard Kainz, Ben Glocker, and Daniel Rueckert. Attention u-net: Learning where to look for the pancreas. In MIDL, 2018.
196
+
197
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
198
+
199
+ SCNAS for 3D Medical Image Segmentation
200
+
201
+ Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, 2018.
202
+
203
+ Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. MICCAI, Springer, LNCS, 9351:234–241, 2015.
204
+
205
+ Joaquin Vanschoren. Meta-learning: A survey. arXiv preprint arXiv:1810.03548, 2018.
206
+
207
+ Olga Wichrowska, Niru Maheswaranathan, Matthew W. Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In ICML, 2017.
208
+
209
+ Lequan Yu, Xin Yang, Hao Chen, Jing Qin, and Pheng Ann Heng. Volumetric convnets with mixed residual connections for automated prostate segmentation from 3d mr images. In AAAI, 2017.
210
+
211
+ Xinbang Zhang, Zehao Huang, and Naiyan Wang. You only search once: Single shot neural architecture search via direct sparse optimization. arXiv preprint arXiv:1811.01567, 2018.
212
+
213
+ Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017.
214
+
215
+ Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018.
216
+
217
+ ![](images/3b00d8f9b516bee7d381b7ec514a68b9c7f7d0a02b6fc0263387a18d54b3c546.jpg)
218
+ Figure 2: (a) Raw data. (b) Ground Truth. Segmentation results of (c) 3D U-ResNet (d) SCNAS in Brain Tumor (top), Heart (middle), and Prostate (bottom) from the MSD dataset. The prediction results on the heart and prostate data are obtained from transferred networks which are trained on brain tumor data.
219
+
220
+ In this appendix, we provide examples of segmentation predictions by the 3D U-ResNet and proposed method. For a qualitative assessment, we compare the two results with ground truth. Additionally, samples of cell architectures found by the SCNAS are illustrated in the sequent section.
221
+
222
+ # Appendix A. Segmentation Samples
223
+
224
+ Figure 2 shows samples of 3D segmentation results of 3D U-ResNet and proposed method for each MSD dataset. The above samples demonstrate that the architectures found by SCNAS predict more accurately than 3D U-ResNet. Especially, the architecture found on brain tumor images can be transferred well to the dataset of different MRI segmentation tasks.
225
+
226
+ ![](images/329bb26a81a71c724e5aae63eb86f409757a5aa0fbb5375b3898f613965e1ef9.jpg)
227
+ Figure 3: Reduction Cell
228
+
229
+ ![](images/835db0a8704c4c9150510ff949d67e08ad0ecc12843b1b9338e4cde3799f78f9.jpg)
230
+ Figure 4: Encoder Normal Cell
231
+
232
+ # Appendix B. Cell Architectures
233
+
234
+ Figure 3-6 show the samples of cell architectures which SCNAS found in the first CV fold experiment on the Brain Tumor dataset at the convergence.
235
+
236
+ ![](images/3c71ee83dfd54e78802e62d46ea7d731012a111e0370ab298f981b2664d5d601.jpg)
237
+ Figure 5: Expansion Cell
238
+
239
+ ![](images/b42a9d4338c8e4b5e0f899fb2e590c3f9c4456fa2de160717b4c947b03cc1ab7.jpg)
240
+ Figure 6: Decoder Normal Cell
parse/train/S1lhkdKkeV/S1lhkdKkeV_content_list.json ADDED
@@ -0,0 +1,1264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Scalable Neural Architecture Search for 3D Medical Image Segmentation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 156,
8
+ 125,
9
+ 843,
10
+ 167
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Sungwoong Kim∗1 \nIldoo Kim∗1 \nSungbin Lim $^ { * 1 }$ \nChiheon Kim1 \nWoonhyuk Baek1 \nHyungjoo Cho2 \nBoogeon Yoon1 \nTaesup Kim1,3 ",
17
+ "bbox": [
18
+ 145,
19
+ 193,
20
+ 305,
21
+ 329
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "swkim@kakaobrain.com ildoo.kim@kakaobrain.com \nsungbin.lim@kakaobrain.com \nchiheon.kim@kakaobrain.com wbaek@kakaobrain.com joysquare@snu.ac.kr eric.yoon@kakaobrain.com taesup.kim@umontreal.ca ",
28
+ "bbox": [
29
+ 607,
30
+ 194,
31
+ 852,
32
+ 327
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "1 Kakao Brain, Pangyo, Seongnam, Gyeonggi, Republic of Korea \n2 Department of Transdisciplinary Studies, Seoul National University, Republic of Korea \n3 MILA, Universit´e de Montr´eal, Canada ",
39
+ "bbox": [
40
+ 147,
41
+ 330,
42
+ 781,
43
+ 380
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Editors: Under Review for MIDL 2019 ",
50
+ "bbox": [
51
+ 147,
52
+ 409,
53
+ 429,
54
+ 422
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 457,
64
+ 453,
65
+ 540,
66
+ 469
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "In this paper, a neural architecture search (NAS) framework is formulated for 3D medical image segmentation, to automatically optimize a neural architecture from a large design space. For this, a novel NAS framework is proposed to produce the structure of each layer including neural connectivities and operation types in both of the encoder and decoder of a target 3D U-Net. In the proposed NAS framework, having a sufficiently large search space is important in generating an improved network architecture, however optimizing over such a large space is difficult due to the extremely large memory usage and the long run-time originated from high-resolution 3D medical images. Therefore, a novel stochastic sampling algorithm based on the continuous relaxation on the discrete architecture parameters is also proposed for scalable joint optimization of both of the architecture parameters and the neural operation parameters. This makes it possible to maintain a large search space with small computational cost as well as to obtain an unbiased architecture by reducing the discrepancy between the training-time and test-time architectures. On the 3D medical image segmentation tasks with a benchmark dataset, an automatically designed 3D U-Net by the proposed NAS framework outperforms the previous human-designed 3D U-Net as well as the randomly designed 3D U-Net, and moreover this optimized architecture is more compact and also well suited to be transferred for similar but different tasks. ",
73
+ "bbox": [
74
+ 178,
75
+ 474,
76
+ 821,
77
+ 728
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Keywords: AutoML, Neural Architecture Search, Medical Image Segmentation. ",
84
+ "bbox": [
85
+ 176,
86
+ 731,
87
+ 756,
88
+ 746
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1. Introduction ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 147,
98
+ 768,
99
+ 295,
100
+ 786
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Recently, deep neural networks have been extensively used for medical image segmentation tasks (Ronneberger et al., 2015; C¸ i¸cek et al., 2016; Mortazi et al., 2017; Ciresan et al., 2012; Milletari et al., 2016a; Kamnitsas et al., 2016; Havaei et al., 2015; Yu et al., 2017; Kayalibay et al., 2017; Oktay et al., 2018; Isensee et al., 2018). However, such a method in general relies on manual trial-and-error processes for making decisions on the network architecture, hyperparameters for training, and pre-/post-procedures. Due to being restricted to manual tuning, they would have limitations in performance improvement as well as fast transfer to related tasks. Currently, the same problem in the field of general deep learning has promoted the rapid development of automated machine learning (AutoML). Yet, in contrast to the recent intensive studies on the use of advanced AutoML algorithms such as neural architecture search (NAS) (Zoph et al., 2018; Liu et al., 2018a; Bender et al., 2018; Zoph and Le, 2017; Liu et al., 2018b; Pham et al., 2018; Zhang et al., 2018; Cai et al., 2018; Brock et al., 2018) and neural optimizer search (Bello et al., 2017; Alber et al., 2018; Wichrowska et al., 2017; Li and Malik, 2017; Andrychowicz et al., 2016) for general computer vision tasks, only a few naive AutoML approaches using simple hyperparameter optimization have been proposed for medical imaging tasks (Mortazi and Bagci, 2018; Naceur et al., 2018). Therefore, in this paper, we propose a novel NAS framework for AutoML in designing neural networks especially for 3D medical image segmentation. ",
107
+ "bbox": [
108
+ 147,
109
+ 796,
110
+ 854,
111
+ 863
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 145,
120
+ 113,
121
+ 852,
122
+ 353
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Since both semantic as well as spatial information can be efficiently exploited through skip connections between an encoder and a decoder, a 3D U-Net has been popularly used in most state-of-the-art deep learning based algorithms for segmenting high-resolution 3D medical images (C¸ i¸cek et al., 2016; Milletari et al., 2016a; Yu et al., 2017; Kayalibay et al., 2017; Oktay et al., 2018; Isensee et al., 2018). However, a convolutional block for each layer in the 3D U-Net has been manually designed with various convolutional filter types, pooling types, skip-connections, and non-linear activation functions. Instead of using the suboptimally designed block, we propose to use a NAS framework to obtain an automatically optimized structure of the block, which is called a cell, for each layer in the 3D U-Net where all cell structures and the corresponding neural operation parameters (e.g. kernel weights) are simultaneously learned in an end-to-end manner. For this, four types of cells - encodernormal cell, reduction cell, decoder-normal cell, expansion cell - are defined to compose the encoder as well as the decoder for the learned U-Net architecture, which is different from the use of two types of cells (normal cell and reduction cell) in previous NAS approaches for encoder-only networks (Zoph et al., 2018; Liu et al., 2018b; Pham et al., 2018). Here, it is noted that in NAS having a sufficiently large search space is important in generating an improved network architecture on a target task. However, optimizing over such a large space for this segmentation task is difficult due to the extreme memory usage and the long runtime when dealing with high-resolution 3D images. Moreover, NAS basically needs to jointly optimize not only the discrete architecture parameters but also the continuous operation parameters, which is so-called bi-level optimization (Liu et al., 2018b; Franceschi et al., 2018), and an exact bi-level optimization over this mixed domain(discrete and continuous) is also difficult, especially with this large search space associated with the 3D U-Net. ",
129
+ "bbox": [
130
+ 145,
131
+ 356,
132
+ 852,
133
+ 746
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Therefore, in this work, a novel stochastic sampling algorithm is applied for bi-level optimization of the mixed parameters in the proposed NAS framework. This can not only search over a large design space but also lead to provide a consistent and unbiased architecture that avoids the retraining of suboptimal operation parameters from the obtained architecture. More specifically, the discrete architecture parameters corresponding to neural connections and operation types in each cell are defined as a set of one-hot discrete variables, and a continuous approximation using Gumbel-softmax (Jang et al., 2017; Maddison et al., 2016) is imposed on these discrete variables. This makes it possible to compute the gradients with respect to both of the approximated architecture variables and the neural operation parameters through a back-propagation and thereby allows to use a stochastic gradient descent (SGD) in bi-level optimization. Furthermore, during the SGD-based bi-level optimization, we utilize an iterative sampling of the candidate architecture, which simulates the test-time final architecture, based on the approximated continuous architecture variables by treating those as logits to provide a categorical distribution. This sampling procedure enables to reduce the computational burden of taking the entire connectivities and operations into account within an outrageously large network originated from the continuous relaxation. Moreover, it also reduces the discrepancy between the training-time and test-time architectures. Namely, the proposed differentiable NAS with stochastic sampling supports great scalability in terms of solvable large search space with small computational cost. ",
140
+ "bbox": [
141
+ 145,
142
+ 748,
143
+ 852,
144
+ 885
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "",
151
+ "bbox": [
152
+ 145,
153
+ 114,
154
+ 852,
155
+ 301
156
+ ],
157
+ "page_idx": 2
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Experimental results on the benchmark 3D medical image segmentation dataset show that in comparison to the previous human-designed 3D U-Net, the network obtained by the proposed scalable NAS leads to better performances even with the less numbers of parameters and FLOPs (multiply-adds). It is furthermore shown that the found architecture from a task having large amounts of labeled data can be transferred to build a network for different segmentation tasks that have small amounts of labeled data and achieves better generalization performances. ",
162
+ "bbox": [
163
+ 145,
164
+ 304,
165
+ 852,
166
+ 421
167
+ ],
168
+ "page_idx": 2
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "To our best knowledge, this is the first work to exploit a complete NAS framework for automatically designing an architecture for the task of 3D medical image segmentation. ",
173
+ "bbox": [
174
+ 143,
175
+ 422,
176
+ 852,
177
+ 455
178
+ ],
179
+ "page_idx": 2
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "2. Related Works ",
184
+ "text_level": 1,
185
+ "bbox": [
186
+ 145,
187
+ 478,
188
+ 316,
189
+ 496
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "NAS can be considered as one of meta-learning processes (Lemke et al., 2015; Vanschoren, 2018) in which a meta-controller performs a guided exploration on a given architecture space via evaluation of each candidate architecture in the inner loop (Zoph et al., 2018; Pham et al., 2018). Several recent works have focused on reducing the computational cost of this architecture evaluation by reusing the trained weights on different architectures (Bender et al., 2018; Liu et al., 2018b; Pham et al., 2018). Especially, they have sampled every candidate network from a single over-parametrized network, called an one-shot model, which allows to train only the one-shot model and directly evaluate any candidate network by inheriting this one-shot model’s trained weights. Among them, DARTS (Liu et al., 2018b) have removed a meta-controller by continuous relaxation of the search space, which leads to simultaneously learn the structure parameters as well as the kernel weights by SGD-based bi-level optimization. Even though DARTS enables efficient SGD-based optimization, it still suffers from the large computational cost to handle all possible neural connectivities and operations in the whole large one-shot model. ProxylessNAS (Cai et al., 2018) have resolved this cost issue by sampling two operation types for each neural connection according to the multinomial distribution during the architecture training. However, it has still used a biased architecture during the training in that there is no guidance for realvalued operation gates (logits) representing the multinomial distribution to be converged to discrete one-hot variables standing for the final architecture at test-time. Hence, we use a stochastic architecture sampling based on the Gumbel-softmax (Jang et al., 2017; Maddison et al., 2016), that is a continuous and differentiable approximation of these one-hot variables, which makes the sampled architecture converged to be the final architecture during the training by gradually reducing the softmax temperature to 0. While the previous NAS approaches have been applied mostly to the tasks of image recognition and language modeling, Nekrasov et al. (2018) has recently adopted NAS for 2D image segmentation. However, they have optimized only the decoder architecture in an encoder-decoder framework with an RNN-based meta-controller trained by reinforcement learning. ",
196
+ "bbox": [
197
+ 145,
198
+ 506,
199
+ 852,
200
+ 882
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "",
207
+ "bbox": [
208
+ 145,
209
+ 114,
210
+ 854,
211
+ 199
212
+ ],
213
+ "page_idx": 3
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Since Ronneberger et al. (2015) first introduced the U-Net for biomedical image segmentation, several modifications have been proposed. For example, C¸ i¸cek et al. (2016) has extended it with 3D convolutional kernels, and then Milletari et al. (2016a) has incorporated the residual blocks into the 3D U-Net. Moreover, Kayalibay et al. (2017) and Yu et al. (2017) have utilized multiple segmentation maps at different scales while Oktay et al. (2018) has adopted attention gates between an encoder and a decoder to simulate multistage cascaded convolutional neural networks (CNNs). Recently, Isensee et al. (2018) has introduced the nnU-Net that is able to dynamically adapt itself to any given segmentation task on the medical domain via non-architectural self-modifications based on the original U-Net. In (Mortazi and Bagci, 2018) the policy gradient algorithm automatically searches for the hyperparameters such as the number of filters, the filter size, and the pooling type for each layer for the 2D cine cardiac MR image segmentation while Naceur et al. (2018) incrementally optimized those hyperparameters as well as the number of layers for the 2D brain tumor segmentation. It is noted that unlike these architecture hyperparameter optimizations, we use the complete NAS to obtain the entire topology of the network architecture in this work. ",
218
+ "bbox": [
219
+ 143,
220
+ 200,
221
+ 852,
222
+ 474
223
+ ],
224
+ "page_idx": 3
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "3. Method ",
229
+ "text_level": 1,
230
+ "bbox": [
231
+ 145,
232
+ 494,
233
+ 250,
234
+ 512
235
+ ],
236
+ "page_idx": 3
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "In this section, we first describe an architecture search space based on the U-Net-like network for 3D medical image segmentation, and then present a SGD-based bi-level optimization with the proposed stochastic sampling to simultaneously learn both of the architecture and the corresponding neural operation parameters. ",
241
+ "bbox": [
242
+ 145,
243
+ 522,
244
+ 852,
245
+ 590
246
+ ],
247
+ "page_idx": 3
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "3.1. Search Space for 3D Medical Image Segmentation ",
252
+ "text_level": 1,
253
+ "bbox": [
254
+ 147,
255
+ 608,
256
+ 637,
257
+ 626
258
+ ],
259
+ "page_idx": 3
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "Following the idea of micro search space popularly used in the state-of-the-art NAS approaches (Liu et al., 2018b; Zoph et al., 2018; Pham et al., 2018), U-Net-like networks, which is composed of encoder and decoder layers, are designed as repeated encoder and decoder cells. The neural structure in each cell $C$ is represented as a directed acyclic graph (DAG) (see Figure 1). Let $\\mathcal { G } = ( \\mathcal { V } ( C ) , \\mathcal { E } ( C ) )$ be the DAG where each node $i \\in \\mathcal V$ corresponds to an intermediate feature vector $\\mathbf { x } ^ { i }$ , and each directed edge $( i , j ) \\in \\mathcal { E }$ stands for a connection between nodes $i$ and $j$ with a certain operation $o ^ { ( i , j ) }$ such that $\\begin{array} { r } { \\mathbf { x } ^ { j } = \\sum _ { ( i , j ) \\in \\mathcal { E } } o ^ { ( i , j ) } ( \\mathbf { x } ^ { i } ) } \\end{array}$ . The output of a cell is a channel-wise concatenation of all the intermediate nodes. Here, a cell $C$ is one of four cell-types - encoder-normal $( C _ { \\mathsf { e n c } } )$ , reduction $( C _ { \\sf r e d } )$ , decoder-normal ( $C _ { \\mathrm { d e c } }$ ), and expansion $( C _ { \\mathsf { e x p } , }$ ) - such that $C \\in \\mathcal { C } = \\{ C _ { \\mathsf { e n c } } , C _ { \\mathsf { r e d } } , C _ { \\mathsf { d e c } } , C _ { \\mathsf { e x p } } \\}$ , and the normal cells and resizing cells are stacked alternately with skip connections between the cells in the encoder and the cells in the decoder, layer-by-layer. Note that every cell takes two outputs of the last previous two cells as inputs1 except the first reduction cell which takes an output of the predefined first convolutional block, called a stem cell, and then duplicates it as two inputs. The segmentation output is obtained from the predefined last convolutional block, referred to as an out cell. ",
264
+ "bbox": [
265
+ 143,
266
+ 633,
267
+ 854,
268
+ 838
269
+ ],
270
+ "page_idx": 3
271
+ },
272
+ {
273
+ "type": "image",
274
+ "img_path": "images/0c021b4e4194dabfd34c1809c978feaae43116fe9c00486f6d6c617f596b64bc.jpg",
275
+ "image_caption": [
276
+ "Figure 1: Architecture search space for 3D medical image segmentation tasks. Both encoder and decoder alternately stack normal cells and resizing cells. The directed arrows between cells indicate the forward paths. Each cell is represented as a DAG which receives two inputs and produces an output. "
277
+ ],
278
+ "image_footnote": [],
279
+ "bbox": [
280
+ 155,
281
+ 160,
282
+ 844,
283
+ 434
284
+ ],
285
+ "page_idx": 4
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "",
290
+ "bbox": [
291
+ 143,
292
+ 630,
293
+ 852,
294
+ 696
295
+ ],
296
+ "page_idx": 4
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Since $o ^ { ( i , j ) } \\in \\mathcal { O }$ where $\\mathcal { O }$ denotes the set of all candidate operations, the architecture search problem now amounts to find the best combination of all edge operations in the four cell-types. Basically, even the same type of cells can have different structures according to their layer levels. However, in this work, for simplicity, all cells that have a common type share a common structure regardless of layer levels. It is noted that a special zero operation is also one of the candidate operations to optimize the neural connectivities as well; zero means a lack of connection between two nodes. ",
301
+ "bbox": [
302
+ 143,
303
+ 699,
304
+ 854,
305
+ 818
306
+ ],
307
+ "page_idx": 4
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "3.2. Stochastic Bi-Level Optimization ",
312
+ "text_level": 1,
313
+ "bbox": [
314
+ 143,
315
+ 114,
316
+ 486,
317
+ 132
318
+ ],
319
+ "page_idx": 5
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "We first represent the selected edge operation using the one-hot indicator vector, $\\mathbf { z } ^ { ( i , j ) }$ , as follows: ",
324
+ "bbox": [
325
+ 143,
326
+ 138,
327
+ 854,
328
+ 171
329
+ ],
330
+ "page_idx": 5
331
+ },
332
+ {
333
+ "type": "equation",
334
+ "img_path": "images/0526dc1103a2a7e18d9060a1da9d57430b303c226efd313000ab80eb544662fe.jpg",
335
+ "text": "$$\no ^ { ( i , j ) } ( { \\bf x } ^ { i } ) = \\sum _ { o \\in \\mathcal { O } } z _ { o } ^ { ( i , j ) } o ( { \\bf x } ^ { i } ; \\boldsymbol { \\theta } _ { o } ^ { ( i , j ) } ) ,\n$$",
336
+ "text_format": "latex",
337
+ "bbox": [
338
+ 377,
339
+ 176,
340
+ 620,
341
+ 212
342
+ ],
343
+ "page_idx": 5
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "where $\\mathbf { z } ^ { ( i , j ) } = \\{ z _ { o } ^ { ( i , j ) } \\mid o \\in \\mathcal { O } \\}$ , $\\theta ^ { ( i , j ) } = \\{ \\theta _ { o } ^ { ( i , j ) } \\mid o \\in \\mathcal { O } \\}$ , and $\\theta _ { o } ^ { ( i , j ) }$ denotes the parameter set of the operation $o$ on edge $( i , j )$ , which means that the operation on each edge is differently learned even though the cells from different layers have the same structure, i.e. the same combination of operation types. ",
348
+ "bbox": [
349
+ 143,
350
+ 217,
351
+ 854,
352
+ 289
353
+ ],
354
+ "page_idx": 5
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Then, finding the best cell architecture corresponds to solving the following bi-level optimization problem: ",
359
+ "bbox": [
360
+ 143,
361
+ 290,
362
+ 849,
363
+ 321
364
+ ],
365
+ "page_idx": 5
366
+ },
367
+ {
368
+ "type": "equation",
369
+ "img_path": "images/f0e0c9a574b5145e6e6912714cb18e088740f6da28fd080e0d7331800e9e15a7.jpg",
370
+ "text": "$$\n\\begin{array} { r l } { \\underset { Z } { \\operatorname* { m i n } } } & { \\quad \\mathcal { L } _ { \\mathsf { v a l } } ( \\Theta ^ { * } ( Z ) , Z ) } \\\\ { \\mathrm { s . t . } } & { \\quad \\Theta ^ { * } ( Z ) = \\underset { \\Theta } { \\operatorname { a r g m i n } } \\mathcal { L } _ { \\mathsf { t r a i n } } ( \\Theta , Z ) , } \\end{array}\n$$",
371
+ "text_format": "latex",
372
+ "bbox": [
373
+ 351,
374
+ 329,
375
+ 647,
376
+ 383
377
+ ],
378
+ "page_idx": 5
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "where $Z = \\{ \\mathbf { z } ^ { ( i , j ) } \\mid ( i , j ) \\in \\mathcal { E } ( C ) , C \\in \\mathcal { C } \\}$ , $\\Theta = \\{ \\theta ^ { ( i , j ) } \\mid ( i , j ) \\in \\mathcal { E } ( C ) , C \\in \\mathcal { C } \\}$ , and $\\mathcal { L } _ { \\mathsf { v a l } }$ and $\\scriptstyle { \\dot { L } } _ { \\mathrm { t r a i n } }$ are validation loss and training loss, respectively. Note that this loss splitting is typically used in meta-learning processes including NAS for better generalization. This is a bi-level program in the mixed domain of continuous variables ( $\\Theta$ ) and discrete variables $( Z$ ), which is hard to solve. DARTS (Liu et al., 2018b) and proxylessNAS (Cai et al., 2018) try to circumvent this difficulty by relaxing $Z$ to a continuous operation-weight variables $Z$ such that $\\bar { z } _ { o } ^ { ( i , j ) } \\in [ 0 , 1 ]$ and $\\begin{array} { r } { \\sum _ { o \\in \\mathcal { O } } \\bar { z } _ { o } ^ { ( i , j ) } = 1 } \\end{array}$ z¯(i,j)o = 1 and making Lval(Θ, Z¯) be differentiable with respect to both of $\\Theta$ and $Z$ . This allows to use a SGD-based optimization to obtain an approximate solution $( \\Theta ^ { * } , \\bar { Z } ^ { * } )$ and derive the final architecture from the relaxed variables $\\bar { Z } ^ { * }$ by taking the operation with the highest weight on each edge. ",
383
+ "bbox": [
384
+ 143,
385
+ 387,
386
+ 854,
387
+ 563
388
+ ],
389
+ "page_idx": 5
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "One problem with this method is that the performance of the final architecture is inconsistent with the performance of the relaxed architecture since the relaxed architecture is not guaranteed to be converged to the final architecture. Hence, they necessarily have to retrain $\\Theta$ from the scratch after obtaining the final network architecture. Moreover, applying this method directly to a large-scale task such as high-resolution 3D medical image segmentation is infeasible due to the extremely large memory usage and the long run-time during the training to compute the loss functions $\\mathcal { L } _ { \\mathsf { v a l } }$ and $\\mathcal { L } _ { \\mathrm { t r a i n } }$ as well as their gradients from the fact that the required resources are proportional to the number of nonzero entries in $Z$ , which scales with the number of candidate operations. ",
394
+ "bbox": [
395
+ 143,
396
+ 563,
397
+ 854,
398
+ 715
399
+ ],
400
+ "page_idx": 5
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "To overcome the aforementioned problems, we propose a modified optimization, called stochastic bi-level optimization, by first treating $Z$ as random discrete variables and then replacing (2) as ",
405
+ "bbox": [
406
+ 145,
407
+ 717,
408
+ 854,
409
+ 767
410
+ ],
411
+ "page_idx": 5
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/f657b4e026d8fb963c20f7a793cd4f7f6ce3e520efaad977ddd0fdd9470e5fcc.jpg",
416
+ "text": "$$\n\\begin{array} { r l } { \\underset { \\alpha } { \\mathrm { m i n } } \\quad } & { \\mathbb { E } _ { Z \\sim P _ { \\alpha } } [ \\mathcal { L } _ { \\sf v a l } ( \\Theta ^ { * } ( Z ) , Z ) ] } \\\\ { \\mathrm { s . t . } \\quad } & { \\Theta ^ { * } ( Z ) = \\underset { \\Theta } { \\mathrm { a r g m i n } } \\ \\mathcal { L } _ { \\sf t r a i n } ( \\Theta , Z ) , } \\end{array}\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 352,
420
+ 767,
421
+ 645,
422
+ 820
423
+ ],
424
+ "page_idx": 5
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "where $P _ { \\alpha }$ is the discrete distribution on $Z$ , parameterized by $\\alpha$ . Since it is intractable to exactly compute $\\nabla _ { \\alpha } \\mathbb { E } _ { Z \\sim P _ { \\alpha } } [ \\mathcal { L } _ { \\mathsf { v a l } } ( \\Theta ^ { * } ( Z ) , Z ) ]$ , this gradient with respect to $\\alpha$ is estimated by a continuous relaxation with sampling on $Z$ in order to use the gradient-based bi-level optimization method in this work. ",
429
+ "bbox": [
430
+ 143,
431
+ 821,
432
+ 854,
433
+ 890
434
+ ],
435
+ "page_idx": 5
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "Algorithm 1: Gradient-based stochastic bi-level optimization ",
440
+ "bbox": [
441
+ 155,
442
+ 117,
443
+ 648,
444
+ 133
445
+ ],
446
+ "page_idx": 6
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "Initialize $\\alpha$ and $\\Theta$ ; \nwhile not done do $\\hat { Z } \\gets$ GumbelSoftmaxSample $( \\alpha , \\tau )$ ; Update $\\Theta$ by a gradient descent using $\\nabla _ { \\Theta } \\mathcal { L } _ { \\mathrm { t r a i n } } ( \\Theta , \\hat { Z } )$ ; Update $\\alpha$ by a gradient descent using $\\nabla _ { \\alpha } \\mathcal { L } _ { \\mathsf { v a l } } ( \\Theta , \\hat { Z } )$ ; Anneal $\\tau$ ; \nend ",
451
+ "bbox": [
452
+ 143,
453
+ 138,
454
+ 599,
455
+ 265
456
+ ],
457
+ "page_idx": 6
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "Algorithm 2: GumbelSoftmaxSample(α, τ ) ",
462
+ "text_level": 1,
463
+ "bbox": [
464
+ 156,
465
+ 294,
466
+ 498,
467
+ 310
468
+ ],
469
+ "page_idx": 6
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "for $( i , j ) \\in \\mathcal { E }$ do \u000f(i,j)o ∼ Gumbel(0, 1), o ∈ O; $\\bar { \\mathbf { z } } ^ { ( i , j ) } \\longleftarrow 5 \\mathsf { o f t m a x } ( ( \\boldsymbol { \\alpha } ^ { ( i , j ) } + \\epsilon ^ { ( i , j ) } ) / \\tau )$ ; foreach pair $\\{ o _ { 1 } , o _ { 2 } \\}$ in $\\mathcal { O }$ do $q ^ { \\{ o _ { 1 } , o _ { 2 } \\} } \\longleftarrow \\frac { \\bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \\bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } { | \\mathcal { O } | - 1 }$ ; end Sample $\\{ o _ { 1 } , o _ { 2 } \\}$ with probability $q ^ { \\{ o _ { 1 } , o _ { 2 } \\} }$ ; $\\begin{array} { r } { ( \\hat { z } _ { o _ { 1 } } ^ { ( i , j ) } , \\hat { z } _ { o _ { 2 } } ^ { ( i , j ) } ) \\longleftarrow ( \\frac { \\bar { z } _ { o _ { 1 } } ^ { ( i , j ) } } { \\bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \\bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } , \\frac { \\bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } { \\bar { z } _ { o _ { 1 } } ^ { ( i , j ) } + \\bar { z } _ { o _ { 2 } } ^ { ( i , j ) } } ) , \\quad \\hat { z } _ { o } ^ { ( i , j ) } 0 , o \\notin \\{ o _ { 1 } , o _ { 2 } \\} ; } \\end{array}$ \nend \nreturn $\\hat { Z }$ ; ",
474
+ "bbox": [
475
+ 147,
476
+ 315,
477
+ 723,
478
+ 527
479
+ ],
480
+ "page_idx": 6
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "3.3. Gumbel-Softmax Relaxation with Operation Sampling ",
485
+ "text_level": 1,
486
+ "bbox": [
487
+ 143,
488
+ 558,
489
+ 679,
490
+ 575
491
+ ],
492
+ "page_idx": 6
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "The Gumbel-softmax reparametrization technique (Jang et al., 2017; Maddison et al., 2016) can approximate the above gradient by continuous relaxation as ",
497
+ "bbox": [
498
+ 140,
499
+ 582,
500
+ 852,
501
+ 617
502
+ ],
503
+ "page_idx": 6
504
+ },
505
+ {
506
+ "type": "equation",
507
+ "img_path": "images/9819aa32753856b738491cbf15cb95cf9d35efcfa78067facce92f865d8325f7.jpg",
508
+ "text": "$$\n\\nabla _ { \\alpha } \\mathbb { E } _ { Z \\sim P _ { \\alpha } } [ \\mathcal { L } _ { \\mathsf { v a l } } ( \\Theta ^ { * } ( Z ) , Z ) ] \\approx \\mathbb { E } _ { \\epsilon \\sim \\mathsf { G u m b e l } ( 0 , 1 ) } [ \\nabla _ { \\alpha } \\mathcal { L } _ { \\mathsf { v a l } } ( \\Theta ^ { * } ( \\bar { Z } ( \\alpha , \\epsilon ; \\tau ) ) , \\bar { Z } ( \\alpha , \\epsilon ; \\tau ) ] ,\n$$",
509
+ "text_format": "latex",
510
+ "bbox": [
511
+ 204,
512
+ 630,
513
+ 794,
514
+ 650
515
+ ],
516
+ "page_idx": 6
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "where continuously relaxed variables $\\bar { Z } ( \\alpha , \\epsilon ; \\tau ) = 5 \\mathsf { o f t m a x } ( ( \\alpha + \\epsilon ) / \\tau )$ , $\\tau$ denotes the temperature, and $\\epsilon$ is $\\alpha$ -independent random variables drawn from the Gumbel distribution. Here, the expectation in (4) is approximated with $\\epsilon$ -sampling. It is noted that as $\\tau 0$ , the distribution of $Z$ is identical to $P _ { \\alpha }$ , which means that by annealing $\\tau$ we can enforce $Z$ to be one-hot discrete variables $Z$ during the training; the relaxed architecture is forced to be converged to the final architecture. ",
521
+ "bbox": [
522
+ 143,
523
+ 660,
524
+ 854,
525
+ 763
526
+ ],
527
+ "page_idx": 6
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Algorithm $1$ summarizes our stochastic bi-level optimization algorithm which alternately updates $\\Theta$ and $\\alpha$ by respective gradient descents. Here, note that in order to reduce the number of nonzero operation weights in $Z$ and hence to reduce the computational cost, in each iteration during the training we again replace $Z$ with $\\hat { Z }$ by sampling two operations from the Gumbel-softmax and then rescaling the corresponding two operation weights to be summed to one with zero weights of the other operations on each edge, as shown in Algorithm 2. ",
532
+ "bbox": [
533
+ 143,
534
+ 765,
535
+ 854,
536
+ 883
537
+ ],
538
+ "page_idx": 6
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "Owing to our continuous relaxation based on the Gumbel-softmax with $\\tau$ -annealing, the number of sampled operations on each edge is naturally reduced from two to one during the training. As a result, the proposed differentiable NAS with stochastic operation sampling is able to support improved scalability in terms of solvable large search space with small computational cost. ",
543
+ "bbox": [
544
+ 145,
545
+ 114,
546
+ 854,
547
+ 199
548
+ ],
549
+ "page_idx": 7
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "4. Experiments ",
554
+ "text_level": 1,
555
+ "bbox": [
556
+ 147,
557
+ 222,
558
+ 297,
559
+ 239
560
+ ],
561
+ "page_idx": 7
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Dataset The proposed scalable NAS (SCNAS) was evaluated on the three segmentation tasks of 3D MRI data, (1) brain tumor (484 labeled images, 3 classes), (2) heart (20 labeled images, 1 class), and (3) prostate (32 labeled images, 2 classes), from the Medical Segmentation Decathlon challenge (MSD, http://medicaldecathlon.com) where each task has different MRI sequences as well as different foreground classes, which is therefore suitable for evaluating the generalizability and transferability of the SCNAS. ",
566
+ "bbox": [
567
+ 143,
568
+ 248,
569
+ 852,
570
+ 351
571
+ ],
572
+ "page_idx": 7
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "Implementation Details We compared the SCNAS to the state-of-the-art architecture, 3D U-ResNet with the use of multiple segmentation maps (Kayalibay et al., 2017) and attention gates (Oktay et al., 2018), and the random architecture by random selection of edge-operations in each cell from the same architecture search space in the SCNAS. The set of operations $\\mathcal { O }$ on each edge in the SCNAS consists of the following eight operations: $3 \\times 3 \\times 3$ convolutions, depthwise separable dilated $3 \\times 3 \\times 3$ convolutions with rate 2, 3 and 4, $3 \\times 3 \\times 3$ max and average 3D pooling, identity (skip connection), and zero. Here, we used the LeakyReLU-Conv-InstanceNorm for convolutional operations. ",
577
+ "bbox": [
578
+ 143,
579
+ 359,
580
+ 854,
581
+ 496
582
+ ],
583
+ "page_idx": 7
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "As shown in Figure 1, the whole network in the SCNAS is composed of 12 automatically designed cells, each of which has 4 nodes. This number of stacked cells is consistent with that of the 3D U-ResNet in terms of respective three times of downsampling and upsampling by a factor of 2. Here, all operations in the reduction cell in the SCNAS are of stride two while the expansion cells perform pre-upsampling for the inputs of the cell. Since the 3D U-ResNet in this evaluation was set to have 32 output channels in the first convolutional block, the number of output channels in the stem cell of the SCNAS was set to 32, and also similar to the 3D U-ResNet, the reduction and expansion cells in the SCNAS respectively double and halve the number of output channels of given inputs. ",
588
+ "bbox": [
589
+ 143,
590
+ 497,
591
+ 854,
592
+ 650
593
+ ],
594
+ "page_idx": 7
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "In both of the 3D U-ResNet and the SCNAS, patch-based training and inference were carried out such that each image was randomly cropped to the region of nonzero values with the predefined resolution during the training, while in testing, the prediction results were obtained by combining patch-based inference results with 50 percent overlap. Similar to Isensee et al. (2018), the predefined resolution for the input patch was set to $1 2 8 \\times 1 2 8 \\times 1 2 8$ for the tasks of brain tumors and heart while for the prostate task, the length of the $z$ - axis was reduced to 24. Since even the same task provides 3D images with heterogeneous voxel spacings, the input images were first resized for all voxel spacings to be physically equal using the given meta-data, and then $z$ -normalization was separately applied to each input channel. Note that unlike Isensee et al. (2018), any heuristic pre-/post-processing techniques including data augmentation, network-cascade, and prediction-ensemble were not adopted in this evaluation to solely examine the effects by the use of NAS in designing the network architecture. ",
599
+ "bbox": [
600
+ 145,
601
+ 651,
602
+ 854,
603
+ 872
604
+ ],
605
+ "page_idx": 7
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "Since the ground-truth labels for test images are not provided in the MSD dataset, the evaluation is conducted by 5-fold cross-validation (CV) on the training images with the average dice similarity coefficient (DSC) as the metric, and accordingly, we applied the well-known multi-class dice loss function (Milletari et al., 2016b; Isensee et al., 2018). With the ADAM optimizer, the 3D U-ResNet and the SCNAS models were trained for 300 epochs and 400 epochs, respectively, taking their convergences into consideration. The 3D U-ResNet was set with the batch size as 8, initial learning rate as 0.0001, and beta parameters for ADAM optimizer as (0.9, 0.999) while in the SCNAS, with the batch size 1, the initial learning rates / beta parameters were as set to be $0 . 0 2 5 \\mathrm { ~ / ~ } ( 0 . 1 , 0 . 0 0 1 )$ for training operation parameters $\\Theta$ and $0 . 0 0 3 / \\ ( 0 . 5 , 0 . 9 9 9 )$ for training architecture parameters $\\alpha$ . If a plateau for 20 epochs on the training loss was detected, the learning rate was reduced by a factor of 10. All experiments were conducted on V100 GPUs, and the implementation was done using PyTorch (Paszke et al., 2017). ",
610
+ "bbox": [
611
+ 145,
612
+ 114,
613
+ 854,
614
+ 337
615
+ ],
616
+ "page_idx": 8
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Architecture Transfer Since the heart and prostate tasks only have 20 and 32 labeled MRI images, respectively, the 3D U-ResNet as well as the SCNAS can be prone to overfitting on the training set and hence to resulting in performance degradation on the validation set. Therefore, we transferred the optimized architecture obtained from the brain tumor task, which has 484 labeled MRI images, by the SCNAS into these two tasks having scarce data and retrained only the operation parameters on each task, in order to demonstrate that the SCNAS produces a more generalizable neural architecture for the similar tasks of 3D MRI image segmentation. Here, the transferred architecture came from the first CV fold in the brain tumor task. ",
621
+ "bbox": [
622
+ 143,
623
+ 347,
624
+ 854,
625
+ 500
626
+ ],
627
+ "page_idx": 8
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Results Table 1 shows that the SCNAS produced better architectures than the (humandesigned) 3D U-ResNet as well as the randomly designed 3D U-Net in terms of the overall performances on all three tasks. Especially, on the heart and prostate segmentation tasks, the transferred architecture from the brain tumor task achieved significantly better generalization performances. Note that the obtained architectures by the SCNAS have been also shown that the number of neural operation parameters and the computational complexity for output prediction (in terms of FLOPs) were significantly reduced compared to the 3D UResNet. We observed the performance degradation of the 3D U-ResNet when the number of initial output channels was halved. It is also noted that most previous NAS approaches retrained the neural operation parameters after completing architecture optimization because of the utilization of a biased architecture during the training, while the SCNAS simultaneously optimized both of the architecture parameters and neural operation parameters with an unbiased architecture and thereby removed the requirement of retraining. We conjecture that Isensee et al. (2018) might be benefit from complicated pre-/post-procedures and thus obtained slightly better performances than the SCNAS. Some example images and the corresponding segmentation outputs are included in Appendix A, and the details of the optimized cell architectures by the SCNAS are presented in Appendix B. ",
632
+ "bbox": [
633
+ 145,
634
+ 508,
635
+ 852,
636
+ 799
637
+ ],
638
+ "page_idx": 8
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "5. Conclusion ",
643
+ "text_level": 1,
644
+ "bbox": [
645
+ 145,
646
+ 821,
647
+ 279,
648
+ 838
649
+ ],
650
+ "page_idx": 8
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "In this work, a complete NAS framework for automatically designing an architecture is proposed and demonstrated on the benchmark dataset of 3D medical image segmentation tasks. In the proposed framework, NAS is formulated as finding the optimal structure of four types of cells composing an encoder as well as a decoder, and both the architecture parameters and the neural operation parameters are learned by gradient descent in an end-to-end manner. We introduce a novel stochastic sampling algorithm which results in significant improvement in terms of the scalability suitable for handling high-resolution 3D medical images and also reduces the inconsistency of the train-time architecture against the final architecture, which leads to avoid the retraining of the operation parameters. Empirical evaluation demonstrates that the automatically optimized network via the proposed NAS outperforms the manually designed 3D U-Net. Moreover, the architecture learned from a task with the large number of training data is successfully transferred to different MRI segmentation tasks with the small number of data. ",
655
+ "bbox": [
656
+ 143,
657
+ 848,
658
+ 854,
659
+ 881
660
+ ],
661
+ "page_idx": 8
662
+ },
663
+ {
664
+ "type": "table",
665
+ "img_path": "images/6068dfbe934b3304633a358cf5408d5b3767fce76ed10b1e8a98f23b3aba83df.jpg",
666
+ "table_caption": [
667
+ "Table 1: Mean DSC in Brain Tumor, Heart, and Prostate. "
668
+ ],
669
+ "table_footnote": [],
670
+ "table_body": "<table><tr><td></td><td></td><td colspan=\"4\">Brain Tumor</td></tr><tr><td>Model</td><td>GFLOPs, Params</td><td>Edema</td><td>Non-Enhancing</td><td>Enhancing</td><td>Average</td></tr><tr><td>3D U-ResNet</td><td>881, 7.6M</td><td>79.10 ± 1.80</td><td>58.38 ± 1.29</td><td>77.37 ± 2.76</td><td>71.61</td></tr><tr><td>Random Search</td><td>152, 2.7M</td><td>79.59 ± 1.28</td><td>57.97 ± 1.36</td><td>77.85 ± 1.35</td><td>71.80</td></tr><tr><td> SCNAS</td><td>129, 2.2M</td><td>79.42 ± 1.45</td><td>58.01 ± 1.46</td><td>78.68 ± 1.80</td><td>72.04</td></tr><tr><td></td><td></td><td>Heart</td><td colspan=\"3\">Prostate</td></tr><tr><td>Model</td><td>GFLOPs, Params</td><td>Left Atrium</td><td>Peripheral</td><td>Transitional</td><td>Average</td></tr><tr><td>3D U-ResNet</td><td>870-163, 7.6M</td><td>89.60 ± 2.35</td><td>48.37 ± 1.44</td><td>79.17 ± 4.30</td><td>63.77</td></tr><tr><td>Random Search</td><td>104-18,1.5M</td><td>89.14 ± 2.74</td><td>50.78 ± 1.22</td><td>79.58 ± 5.01</td><td>65.18</td></tr><tr><td> SCNAS</td><td>136-32, 3.0M</td><td>89.99 ± 1.32</td><td>49.70 ± 1.23</td><td>80.89 ± 3.19</td><td>65.30</td></tr><tr><td> SCNAS(transfer)</td><td>193-37, 4.2M</td><td>90.47 ± 1.70</td><td>53.81 ± 1.30</td><td>82.02 ± 4.52</td><td>67.92</td></tr></table>",
671
+ "bbox": [
672
+ 143,
673
+ 150,
674
+ 862,
675
+ 359
676
+ ],
677
+ "page_idx": 9
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "",
682
+ "bbox": [
683
+ 143,
684
+ 385,
685
+ 854,
686
+ 571
687
+ ],
688
+ "page_idx": 9
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "The analysis using more candidate operations and different cell structures of the same type at different layer levels are left for future research. In addition, the effects of including non-architectural procedures such as data augmentation, network-cascade, and predictionensemble in the proposed NAS framework need to be analyzed in future works. Another interesting research direction would be applying the NAS framework, either directly or by architecture transfer, to other medical modalities including CT, mammography, and X-ray. ",
693
+ "bbox": [
694
+ 145,
695
+ 573,
696
+ 852,
697
+ 675
698
+ ],
699
+ "page_idx": 9
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Acknowledgments ",
704
+ "text_level": 1,
705
+ "bbox": [
706
+ 147,
707
+ 696,
708
+ 318,
709
+ 714
710
+ ],
711
+ "page_idx": 9
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "We thank the Kakao Brain Cloud team for supporting to efficiently use GPU clusters for large-scale experiments. ",
716
+ "bbox": [
717
+ 143,
718
+ 724,
719
+ 852,
720
+ 757
721
+ ],
722
+ "page_idx": 9
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "References ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 145,
730
+ 114,
731
+ 250,
732
+ 131
733
+ ],
734
+ "page_idx": 10
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Maximilian Alber, Irwan Bello, Barret Zoph, Pieter-Jan Kindermans, Prajit Ramachandran, and Quoc V. Le. Backprop evolution. In ICML 2018 AutoML Workshop, 2018. ",
739
+ "bbox": [
740
+ 148,
741
+ 140,
742
+ 854,
743
+ 175
744
+ ],
745
+ "page_idx": 10
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "Marcin Andrychowicz, Misha Denil, Sergio G´omez, Matthew W Hoffman, and David Pfau. Learning to learn by gradient descent by gradient descent. In NIPS, 2016. ",
750
+ "bbox": [
751
+ 145,
752
+ 185,
753
+ 849,
754
+ 220
755
+ ],
756
+ "page_idx": 10
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Neural optimizer search with reinforcement learning. In ICML, 2017. ",
761
+ "bbox": [
762
+ 140,
763
+ 231,
764
+ 851,
765
+ 266
766
+ ],
767
+ "page_idx": 10
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In ICML, 2018. ",
772
+ "bbox": [
773
+ 143,
774
+ 276,
775
+ 851,
776
+ 313
777
+ ],
778
+ "page_idx": 10
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Smash: one-shot model architecture search through hypernetworks. In ICLR, 2018. ",
783
+ "bbox": [
784
+ 140,
785
+ 321,
786
+ 852,
787
+ 357
788
+ ],
789
+ "page_idx": 10
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. ",
794
+ "bbox": [
795
+ 142,
796
+ 367,
797
+ 854,
798
+ 402
799
+ ],
800
+ "page_idx": 10
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Ozg¨un C¸ i¸cek, Ahmed Abdulkadir, Soeren S. Lienkamp, Thomas Brox, and Olaf Ron- ¨ neberger. 3d u-net: Learning dense volumetric segmentation from sparse annotation. MICCAI, Springer, LNCS, 9901:424–432, 2016. ",
805
+ "bbox": [
806
+ 145,
807
+ 414,
808
+ 854,
809
+ 465
810
+ ],
811
+ "page_idx": 10
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Dan Ciresan, Alessandro Giusti, Luca M. Gambardella, and J¨urgen Schmidhuber. Deep neural networks segment neuronal membranes in electron microscopy images. In NIPS, 2012. ",
816
+ "bbox": [
817
+ 143,
818
+ 476,
819
+ 852,
820
+ 527
821
+ ],
822
+ "page_idx": 10
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "Luca Franceschi, Paolo Frasconi, Saverio Salzo, Riccardo Grazzi, and Massimilano Pontil. Bilevel programming for hyperparameter optimization and meta-learning. In ICML, 2018. ",
827
+ "bbox": [
828
+ 148,
829
+ 539,
830
+ 852,
831
+ 574
832
+ ],
833
+ "page_idx": 10
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "Mohammad Havaei, Axel Davy, David Warde-Farley, Antoine Biard, Aaron C. Courville, Yoshua Bengio, Chris Pal, Pierre-Marc Jodoin, and Hugo Larochelle. Brain tumor segmentation with deep neural networks. CoRR, abs/1505.03540, 2015. URL http: //arxiv.org/abs/1505.03540. ",
838
+ "bbox": [
839
+ 145,
840
+ 583,
841
+ 852,
842
+ 652
843
+ ],
844
+ "page_idx": 10
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "Fabian Isensee, Jens Petersen, Andre Klein, David Zimmerer, Paul F. Jaeger, Simon Kohl, Jakob Wasserthal, Gregor Koehler, Tobias Norajitra, Sebastian Wirkert, and Klaus H. Maier-Hein. nnu-net: Self-adapting framework for u-net-based medical image segmentation. 2018. ",
849
+ "bbox": [
850
+ 143,
851
+ 664,
852
+ 852,
853
+ 733
854
+ ],
855
+ "page_idx": 10
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbelsoftmax. In ICLR, 2017. ",
860
+ "bbox": [
861
+ 142,
862
+ 744,
863
+ 849,
864
+ 779
865
+ ],
866
+ "page_idx": 10
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "Konstantinos Kamnitsas, Christian Ledig, Virginia F. J. Newcombe, Joanna P. Simpson, Andrew D. Kane, David K. Menon, Daniel Rueckert, and Ben Glocker. Efficient multiscale 3d CNN with fully connected CRF for accurate brain lesion segmentation. CoRR, abs/1603.05959, 2016. URL http://arxiv.org/abs/1603.05959. ",
871
+ "bbox": [
872
+ 145,
873
+ 790,
874
+ 852,
875
+ 858
876
+ ],
877
+ "page_idx": 10
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "Baris Kayalibay, Grady Jensen, and Patrick van der Smagt. Cnn-based segmentation of medical imaging data. CoRR, abs/1701.03056, 2017. URL http://arxiv.org/abs/ 1701.03056. ",
882
+ "bbox": [
883
+ 143,
884
+ 114,
885
+ 856,
886
+ 165
887
+ ],
888
+ "page_idx": 11
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Christiane Lemke, Marcin Budka, and Bogdan Gabrys. Metalearning: a survey of trends and technologies. Artificial Intelligence Review, 44(1), 2015. ",
893
+ "bbox": [
894
+ 143,
895
+ 175,
896
+ 852,
897
+ 210
898
+ ],
899
+ "page_idx": 11
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Ke Li and Jitendra Malik. Learning to optimize neural nets. CoRR, abs/1703.00441, 2017. URL http://arxiv.org/abs/1703.00441. ",
904
+ "bbox": [
905
+ 143,
906
+ 219,
907
+ 849,
908
+ 253
909
+ ],
910
+ "page_idx": 11
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "Chenxi Liu, Barret Zoph, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan L. Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In ECCV, 2018a. ",
915
+ "bbox": [
916
+ 143,
917
+ 262,
918
+ 854,
919
+ 314
920
+ ],
921
+ "page_idx": 11
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018b. ",
926
+ "bbox": [
927
+ 140,
928
+ 324,
929
+ 849,
930
+ 359
931
+ ],
932
+ "page_idx": 11
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. arXiv preprint arXiv:1611.00712, 2016. ",
937
+ "bbox": [
938
+ 142,
939
+ 367,
940
+ 852,
941
+ 404
942
+ ],
943
+ "page_idx": 11
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. CoRR, abs/1606.04797, 2016a. URL http://arxiv.org/abs/1606.04797. ",
948
+ "bbox": [
949
+ 143,
950
+ 411,
951
+ 854,
952
+ 463
953
+ ],
954
+ "page_idx": 11
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 3D Vision (3DV), 2016 Fourth International Conference on, pages 565–571. IEEE, 2016b. ",
959
+ "bbox": [
960
+ 143,
961
+ 472,
962
+ 854,
963
+ 525
964
+ ],
965
+ "page_idx": 11
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Aliasghar Mortazi and Ulas Bagci. Automatically designing cnn architectures for medical image segmentation. In MLMI, 2018. ",
970
+ "bbox": [
971
+ 142,
972
+ 534,
973
+ 852,
974
+ 569
975
+ ],
976
+ "page_idx": 11
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Aliasghar Mortazi, Rashed Karim, Kawal S. Rhode, Jeremy Burt, and Ulas Bagci. Cardiacnet: Segmentation of left atrium and proximal pulmonary veins from mri using multi-view cnn. MICCAI, Springer, LNCS, 10434:377–385, 2017. ",
981
+ "bbox": [
982
+ 145,
983
+ 578,
984
+ 854,
985
+ 631
986
+ ],
987
+ "page_idx": 11
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Mostefa Ben Naceur, Rachida Saouli, Mohamed Akil, and Rostom Kachouri. Fully automatic brain tumor segmentation using end-to-end incremental deep neural networks in mri images. Computer Methods and Programs in Biomedicine, Elsevier, 166:39–49, 2018. ",
992
+ "bbox": [
993
+ 143,
994
+ 638,
995
+ 854,
996
+ 690
997
+ ],
998
+ "page_idx": 11
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. arXiv preprint arXiv:1810.10804, 2018. ",
1003
+ "bbox": [
1004
+ 143,
1005
+ 699,
1006
+ 854,
1007
+ 751
1008
+ ],
1009
+ "page_idx": 11
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Ozan Oktay, Jo Schlemper, Lo¨ıc Le Folgoc, Matthew C. H. Lee, Mattias P. Heinrich, Kazunari Misawa, Kensaku Mori, Steven G. McDonagh, Nils Y. Hammerla, Bernhard Kainz, Ben Glocker, and Daniel Rueckert. Attention u-net: Learning where to look for the pancreas. In MIDL, 2018. ",
1014
+ "bbox": [
1015
+ 145,
1016
+ 761,
1017
+ 854,
1018
+ 830
1019
+ ],
1020
+ "page_idx": 11
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
1025
+ "bbox": [
1026
+ 145,
1027
+ 839,
1028
+ 854,
1029
+ 890
1030
+ ],
1031
+ "page_idx": 11
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "SCNAS for 3D Medical Image Segmentation ",
1036
+ "bbox": [
1037
+ 308,
1038
+ 47,
1039
+ 683,
1040
+ 63
1041
+ ],
1042
+ "page_idx": 12
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, 2018. ",
1047
+ "bbox": [
1048
+ 143,
1049
+ 114,
1050
+ 856,
1051
+ 148
1052
+ ],
1053
+ "page_idx": 12
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. MICCAI, Springer, LNCS, 9351:234–241, 2015. ",
1058
+ "bbox": [
1059
+ 147,
1060
+ 160,
1061
+ 854,
1062
+ 195
1063
+ ],
1064
+ "page_idx": 12
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Joaquin Vanschoren. Meta-learning: A survey. arXiv preprint arXiv:1810.03548, 2018. ",
1069
+ "bbox": [
1070
+ 145,
1071
+ 205,
1072
+ 825,
1073
+ 223
1074
+ ],
1075
+ "page_idx": 12
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Olga Wichrowska, Niru Maheswaranathan, Matthew W. Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In ICML, 2017. ",
1080
+ "bbox": [
1081
+ 143,
1082
+ 233,
1083
+ 854,
1084
+ 285
1085
+ ],
1086
+ "page_idx": 12
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Lequan Yu, Xin Yang, Hao Chen, Jing Qin, and Pheng Ann Heng. Volumetric convnets with mixed residual connections for automated prostate segmentation from 3d mr images. In AAAI, 2017. ",
1091
+ "bbox": [
1092
+ 143,
1093
+ 296,
1094
+ 854,
1095
+ 348
1096
+ ],
1097
+ "page_idx": 12
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Xinbang Zhang, Zehao Huang, and Naiyan Wang. You only search once: Single shot neural architecture search via direct sparse optimization. arXiv preprint arXiv:1811.01567, 2018. ",
1102
+ "bbox": [
1103
+ 142,
1104
+ 358,
1105
+ 854,
1106
+ 393
1107
+ ],
1108
+ "page_idx": 12
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In ICLR, 2017. ",
1113
+ "bbox": [
1114
+ 143,
1115
+ 405,
1116
+ 852,
1117
+ 439
1118
+ ],
1119
+ "page_idx": 12
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018. ",
1124
+ "bbox": [
1125
+ 142,
1126
+ 450,
1127
+ 854,
1128
+ 484
1129
+ ],
1130
+ "page_idx": 12
1131
+ },
1132
+ {
1133
+ "type": "image",
1134
+ "img_path": "images/3b00d8f9b516bee7d381b7ec514a68b9c7f7d0a02b6fc0263387a18d54b3c546.jpg",
1135
+ "image_caption": [
1136
+ "Figure 2: (a) Raw data. (b) Ground Truth. Segmentation results of (c) 3D U-ResNet (d) SCNAS in Brain Tumor (top), Heart (middle), and Prostate (bottom) from the MSD dataset. The prediction results on the heart and prostate data are obtained from transferred networks which are trained on brain tumor data. "
1137
+ ],
1138
+ "image_footnote": [],
1139
+ "bbox": [
1140
+ 166,
1141
+ 119,
1142
+ 830,
1143
+ 500
1144
+ ],
1145
+ "page_idx": 13
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "In this appendix, we provide examples of segmentation predictions by the 3D U-ResNet and proposed method. For a qualitative assessment, we compare the two results with ground truth. Additionally, samples of cell architectures found by the SCNAS are illustrated in the sequent section. ",
1150
+ "bbox": [
1151
+ 145,
1152
+ 627,
1153
+ 854,
1154
+ 695
1155
+ ],
1156
+ "page_idx": 13
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Appendix A. Segmentation Samples ",
1161
+ "text_level": 1,
1162
+ "bbox": [
1163
+ 147,
1164
+ 717,
1165
+ 498,
1166
+ 736
1167
+ ],
1168
+ "page_idx": 13
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Figure 2 shows samples of 3D segmentation results of 3D U-ResNet and proposed method for each MSD dataset. The above samples demonstrate that the architectures found by SCNAS predict more accurately than 3D U-ResNet. Especially, the architecture found on brain tumor images can be transferred well to the dataset of different MRI segmentation tasks. ",
1173
+ "bbox": [
1174
+ 143,
1175
+ 744,
1176
+ 854,
1177
+ 829
1178
+ ],
1179
+ "page_idx": 13
1180
+ },
1181
+ {
1182
+ "type": "image",
1183
+ "img_path": "images/329bb26a81a71c724e5aae63eb86f409757a5aa0fbb5375b3898f613965e1ef9.jpg",
1184
+ "image_caption": [
1185
+ "Figure 3: Reduction Cell "
1186
+ ],
1187
+ "image_footnote": [],
1188
+ "bbox": [
1189
+ 171,
1190
+ 126,
1191
+ 826,
1192
+ 186
1193
+ ],
1194
+ "page_idx": 14
1195
+ },
1196
+ {
1197
+ "type": "image",
1198
+ "img_path": "images/835db0a8704c4c9150510ff949d67e08ad0ecc12843b1b9338e4cde3799f78f9.jpg",
1199
+ "image_caption": [
1200
+ "Figure 4: Encoder Normal Cell "
1201
+ ],
1202
+ "image_footnote": [],
1203
+ "bbox": [
1204
+ 217,
1205
+ 270,
1206
+ 779,
1207
+ 426
1208
+ ],
1209
+ "page_idx": 14
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Appendix B. Cell Architectures ",
1214
+ "text_level": 1,
1215
+ "bbox": [
1216
+ 147,
1217
+ 503,
1218
+ 455,
1219
+ 522
1220
+ ],
1221
+ "page_idx": 14
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Figure 3-6 show the samples of cell architectures which SCNAS found in the first CV fold experiment on the Brain Tumor dataset at the convergence. ",
1226
+ "bbox": [
1227
+ 143,
1228
+ 531,
1229
+ 854,
1230
+ 565
1231
+ ],
1232
+ "page_idx": 14
1233
+ },
1234
+ {
1235
+ "type": "image",
1236
+ "img_path": "images/3c71ee83dfd54e78802e62d46ea7d731012a111e0370ab298f981b2664d5d601.jpg",
1237
+ "image_caption": [
1238
+ "Figure 5: Expansion Cell "
1239
+ ],
1240
+ "image_footnote": [],
1241
+ "bbox": [
1242
+ 214,
1243
+ 227,
1244
+ 784,
1245
+ 342
1246
+ ],
1247
+ "page_idx": 15
1248
+ },
1249
+ {
1250
+ "type": "image",
1251
+ "img_path": "images/b42a9d4338c8e4b5e0f899fb2e590c3f9c4456fa2de160717b4c947b03cc1ab7.jpg",
1252
+ "image_caption": [
1253
+ "Figure 6: Decoder Normal Cell "
1254
+ ],
1255
+ "image_footnote": [],
1256
+ "bbox": [
1257
+ 267,
1258
+ 614,
1259
+ 730,
1260
+ 742
1261
+ ],
1262
+ "page_idx": 15
1263
+ }
1264
+ ]
parse/train/S1lhkdKkeV/S1lhkdKkeV_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lhkdKkeV/S1lhkdKkeV_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkxwY3NtPr/SkxwY3NtPr.md ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS A UNIFIED EVALUATION OF EXPLANATION METHODS WITHOUT GROUND TRUTH
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ This paper proposes a set of criteria to evaluate the objectiveness of explanation methods of neural networks, which is crucial for the development of explainable AI, but it also presents significant challenges. The core challenge is that people usually cannot obtain ground-truth explanations of the neural network. To this end, we design four metrics to evaluate the explanation result without ground-truth explanations. Our metrics can be broadly applied to nine benchmark methods of interpreting neural networks, which provides new insights of explanation methods.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Nowadays, many methods are proposed to explain the logic of a deep neural network (DNN) in a post-hoc manner. In this research, we limit our attention to existing methods of estimating the importance/attribution/saliency of input pixels or intermediate-layer neural units w.r.t. the network output (Shrikumar et al., 2016; Lundberg & Lee, 2017; Ribeiro et al., 2016; Binder et al., 2016), which present the mainstream of explaining neural networks. To avoid ambiguity, the estimated importance/saliency/attribution maps are all termed “attribution maps” in this paper.
12
+
13
+ However, some methods usually pursue attribution maps which look reasonable from the perspective of human users, instead of objectively reflecting the true logic of information processing in the DNN. A trustworthy evaluation of the objectiveness of attribution maps is crucial for the development of deep learning and proposes significant challenges to state-of-the-art algorithms.
14
+
15
+ Existing metrics (Cui et al., 2019; Arras et al., 2019; Vu et al., 2019; Yang & Kim, 2019; Kim et al., 2017; Adebayo et al., 2018; Ghorbani et al., 2019; Alvarez-Melis & Jaakkola, 2018) of evaluating explanation methods have certain shortcomings.
16
+
17
+ Issue 1, evaluation of the accuracy of a $\mathbf { D N N } \neq$ evaluation of the objectiveness of attribution maps: Some methods only evaluate whether a DNN encodes a correct logic, instead of examining whether an attribution map objectively reflects the true logic of a DNN. (Cui et al., 2019) used human cognition to evaluate the explanation result. (Yang & Kim, 2019; Kim et al., 2017) aimed to construct a specific dataset with ground-truth explanations for evaluation. For example, they added an irrelevant object into the image. Pixels from the irrelevant object are expected to be assigned with zero attributions.
18
+
19
+ However, strictly speaking, it is impossible to religiously annotate ground-truth explanations for a DNN. Currently, the ground-truth explanation is constructed under the assumption that a DNN cannot learn irrelevant objects for classification with the purpose of evaluating the logic of the DNN, instead of examining whether an explanation method mistakenly generates attribution maps with seemingly correct logic for an incorrectly learned DNN.
20
+
21
+ Issue 2, broad applicability: We aim to design an evaluation metric that can be broadly applied to various tasks. In aforementioned methods (Yang & Kim, 2019; Kim et al., 2017), the requirement for constructing a new testing dataset limits the applicability of the evaluation.
22
+
23
+ Issue 3, quantification of the objectiveness: Some methods quantitatively evaluate the accuracy and robustness of attribution maps. However, there is no strict mechanism to ensure the objectiveness of each numerical value in the attribution map. I.e., if the attribution value of a pixel is twice of that of another pixel, then the first pixel is supposed to contribute twice numerical values to the prediction w.r.t. the second pixel.
24
+
25
+ Table 1: Review of explanation methods
26
+
27
+ <table><tr><td>Method</td><td>What to explain</td><td>Quantitative evaluation of limitations in ap- plication</td></tr><tr><td>CAM (Zhou et al., 2016)</td><td>Attribution 1distribu- tion at intermediate layer</td><td>1.Requirement for global average pooling. 2.Usually explain features at high layers</td></tr><tr><td>Grad_CAM (Selvaraju et al., 2017)</td><td>Attribution 1distribu- tion at intermediate layer</td><td>Usually explain features at high layers</td></tr><tr><td>Grad (Simonyan et al., 2013)</td><td>Pixel-wise attribution</td><td></td></tr><tr><td>GI (Shrikumar et al., 2016)</td><td>Pixel-wise attribution</td><td></td></tr><tr><td>GB (Springenberg et al., 2014)</td><td>Pixel-wise attribution</td><td>Requirement for using ReLU as non-linear layers</td></tr><tr><td>Shapley Value (Shapley,1953) DeepSHAP</td><td>Pixel-wise attribution</td><td>NP-complete problem</td></tr><tr><td>(Lundberg &amp; Lee,2017)</td><td>Pixel-wise attribution</td><td>Similar to LRP,DeepLIFT(Shrikumar et al., 2016) with a designed backward rule</td></tr><tr><td>LIME (Ribeiro et al.,2016)</td><td>Pixel-wise attribution</td><td>Attribution maps at the super-pixel level, rather than at the pixel level</td></tr><tr><td>LRP (Binder et al.,2016)</td><td>Pixel-wise attribution</td><td>Relevance propagation rules of every layer should be defined</td></tr><tr><td>Pert (Fong&amp; Vedaldi,2017)</td><td>Pixel-wise attribution</td><td></td></tr></table>
28
+
29
+ Except for the objectiveness, previous studies mainly conducted the evaluation from other perspectives. (Arras et al., 2019; Vu et al., 2019) evaluated attribution maps from the perspective of adversarial attacks by adding random noise. (Adebayo et al., 2018; Ghorbani et al., 2019; Alvarez-Melis & Jaakkola, 2018) proposed methods to evaluate the robustness of explanation methods w.r.t. the perturbation. (Adebayo et al., 2018) randomized the layer of DNN from the top to the bottom and visualized the change of attribution maps.
30
+
31
+ Note that in most applications, people cannot faithfully obtain the ground-truth logic of a DNN. Therefore, considering the above three issues, in this study, we aim to fairly evaluate the objectiveness and robustness of attribution maps from the following four perspectives without ground-truth explanations.
32
+
33
+ Perspective 1, bias of the attribution map at the pixel level: In order to evaluate the bias of the attribution map, we first need to propose a standard metric to evaluate the accuracy of explanation methods. The Shapley value is the unique solution to model the attribution value of each pixel that satisfies desirable properties including efficiency, symmetry and monotonicity (Lundberg & Lee, 2017). However, the computation of the Shapley value is an NP-complete problem, and previous studies (Lundberg & Lee, 2017) showed that the accurate estimation of the Shapley value is still a significant challenge. To this end, we extend the theory of Shapley sampling (Castro et al., 2009) and design a new evaluation metric, which achieves high accuracy without significantly boosting the computational cost.
34
+
35
+ We use the new evaluation metric to quantify the bias of the attribution map. Note that this evaluation has no partiality to the Shapley-value-based explanation methods. For example, experimental results showed that LRP (Binder et al., 2016) exhibited significant lower bias than DeepSHAP (Lundberg & Lee, 2017).
36
+
37
+ Perspective 2, quantification of unexplainable feature components: Given an input image and its attribution map, we revise the input image to generate a new image that reflects the logic of the attribution map. We then compare the intermediate-layer feature of the original image with that of the generated image, so as to disentangle feature components that can and cannot be explained by the attribution map.
38
+
39
+ Perspective 3, robustness of the explanation: Robustness of the explanation means whether the attribution map is robust to spatial masking of the input image. When we randomly mask a certain region of the input image, we admit that spatial masking destroys global contexts and affects pixelwise attribution value to some extent. The quantification of the robustness of the explanation is an important perspective of evaluating an explanation method.
40
+
41
+ Perspective 4, mutual verification: The mutual verification means whether different explanation methods can verify each other. Methods generating similar attribution maps are usually believed more reliable.
42
+
43
+ In this paper, we used our metrics to evaluate nine widely used explanation methods listed in Table 1. We conducted experiments using the LeNet, VGG and ResNet on different benchmark datasets including the CIFAR-10 (Krizhevsky & Hinton, 2009) dataset and the Pascal VOC 2012 (Everingham et al., 2010) dataset. Our experimental results proved the effectiveness of the proposed evaluation methods and provided an insightful understanding of various explanation methods.
44
+
45
+ The contribution of our work can be concluded as follows.
46
+ 1. In this study, we invent a set of standard metrics to evaluate the objectiveness and the robustness of the attribution map without knowing ground-truth explanations.
47
+ 2. The metric of evaluating the pixel-wise bias of the attribution map can be estimated with a relatively low computational cost, which avoids falling into the computational bottleneck of estimating accurate pixel-wise attributions.
48
+ 3. Since our metrics do not need any annotations of ground-truth explanations, our metrics can be applied to different neural networks trained on different datasets.
49
+
50
+ # 2 RELATED WORK
51
+
52
+ Explainable AI is an emerging direction in artificial intelligence, and different explanation methods have been proposed. In this section, we briefly review the Shapley value and limit our discussions to existing methods of evaluating methods of extracting attribution/importance/saliency maps to simplify the story. Appendix C discusses other research directions of explainable AI.
53
+
54
+ The Shapley value: The Shapley value (Shapley, 1953) was proposed to compute the attribution distribution over all players in a particular cooperative game. However, it is an NP-complete problem to compute the accurate Shapley value. The Shapley value approximated by sampling strategy could be very inaccurate due to the high variance. We extend the theory of the Shapley value to obtain an evaluation metric with a high accuracy but a low computational cost.
55
+
56
+ Qualitative evaluation: Some studies used a qualitative criterion for evaluation. (Cui et al., 2019) qualitatively defined basic concepts in the evaluation of explanation results, including the complexity of the explanation, the correlation, and the completeness. In contrast, this paper aims to evaluate the methods quantitatively, which makes our metrics more objective and reliable.
57
+
58
+ Accuracy evaluation: To evaluate the accuracy of attribution maps, (Arras et al., 2019; Vu et al., 2019) used the noise/occlusion to perturb the original image according to the attribution value. There was no mechanism to ensure the prediction result objectively reflected the logic of a DNN. (Yang & Kim, 2019; Kim et al., 2017) built a dataset to help them generate ground-truth explanations. Essentially, these methods tried to obtain the “correct” logic for an input image. However, a rigorous study should not assume that the DNN encodes the correct logic. As a result, this paper proposes to evaluate the objectiveness of explanation results without knowing ground-truth explanations.
59
+
60
+ Stability evaluation: (Adebayo et al., 2018; Ghorbani et al., 2019; Alvarez-Melis & Jaakkola, 2018) mainly paid attention to the attribution map change when the model input was perturbed. (Adebayo et al., 2018) visualized the change in the attribution map when the weights of the model were destroyed from the top to the bottom. (Ghorbani et al., 2019; Alvarez-Melis & Jaakkola, 2018) used the adversarial image to alter the attribution map. In comparison, we propose a metric to evaluate the robustness to spatial masking.
61
+
62
+ # 3 ALGORITHM
63
+
64
+ # 3.1 PRELIMINARIES: THE SHAPLEY VALUE
65
+
66
+ The Shapley value measures the instancewise feature importance ranking problem. Let $\Omega$ be the set of all pixels of an image $I$ . $I _ { P }$ denotes an image that replaces all pixels in set $\Omega \setminus P$ with average pixel value over images. $F ( I _ { P } )$ denotes the scalar output of a DNN based on a subset of pixels ${ \hat { P } } \subset { \Omega }$ . To compute the Shapley value of the $i$ -th feature, (Shapley, 1953) considered all subsets of $\Omega$ not containing the $i$ -th feature and defined the Shapley value $\mathbf { \bar { A } } _ { i } ^ { * }$ as follows:
67
+
68
+ $$
69
+ A _ { i } ^ { * } = \sum _ { P \subset \Omega \backslash \{ i \} } \frac { | P | ! ( | \Omega | - | P | - 1 ) ! } { | P | ! } \left[ F ( I _ { P \cup \{ i \} } ) - F ( I _ { P } ) \right]
70
+ $$
71
+
72
+ It is the unique solution that satisfies desirable properties to assign attribution value to each feature dimension in the input (Chen et al., 2018). Appendix A shows properties of the Shapley value.
73
+
74
+ # 3.2 EVALUATING THE BIAS OF THE ATTRIBUTION MAP AT THE PIXEL LEVEL
75
+
76
+ In this section, we design a metric to accurately evaluate the objectiveness of the attribution map. Given an image $I \in \mathbf { I }$ , let us consider the DNN $F$ with a single scalar output $y = F ( I )$ . For DNNs with multiple outputs, existing methods usually explain each individual output dimension independently. Let $\left\{ { a } _ { i } \right\}$ denote the pixel-wise attribution map estimated by a specific explanation method. We aim to evaluate the bias of $\left\{ { a } _ { i } \right\}$ . People usually formulate the network output as the sum of pixel-wise attribution value, i.e. the output $y$ can be decomposed as follows.
77
+
78
+ $$
79
+ y = b + \sum _ { i \in \Omega } A _ { i } , \qquad \mathrm { s . t . } \quad A _ { i } = \lambda a _ { i }
80
+ $$
81
+
82
+ $b$ denotes the bias; $i$ denotes the index of each pixel in the input image; $\Omega$ denotes the set of all pixels in the image. Aforementioned $\{ A _ { i } ^ { * } \}$ can be considered as the ground-truth of $\left\{ A _ { i } \right\}$ (Lundberg & Lee, 2017). Since many explanation methods (Selvaraju et al., 2017; Simonyan et al., 2013) mainly compute relative values of attributions $\left\{ { a } _ { i } \right\}$ , instead of a strict attribution map $\left\{ A _ { i } \right\}$ . We use $\lambda$ to bridge $\left\{ A _ { i } \right\}$ and $\left\{ { a } _ { i } \right\}$ . $\lambda$ is a constant for normalization, which can be eliminated during the implementation of the evaluation.
83
+
84
+ The estimated attribution of each pixel can be assumed to follow a Gaussian distribution $A _ { i } \sim$ $\mathcal { N } ( \mu _ { i } , \sigma _ { i } ^ { 2 } )$ (Castro et al., 2009). Attribution distributions of different pixels can be further assumed to share a unified variance, i.e. $\sigma _ { 1 } ^ { 2 } \approx \sigma _ { 2 } ^ { 2 } \approx . . . \approx \sigma _ { n } ^ { 2 }$ . The evaluation of the attribution distribution $\left\{ { a } _ { i } \right\}$ has two aspects, i.e.
85
+
86
+ 1. the sampling of pixels whose attributions that are more likely to have large deviations;
87
+ 2. the evaluation of the bias of the sampled attributions.
88
+
89
+ First, for the sampling of attributions of interest, we sample the set of pixels $S$ with top-ranked high (or low) attributions. Attribution values of pixels in $S$ are sampled as those with the highest (or the lowest) values, and these pixels are supposed to be more likely to be significantly biased towards high (or low) attribution values. Meanwhile, from another perspective, the distribution of the sampled attribution values is close to the Gumbel distribution.
90
+
91
+ Second, although the Shapley value can be considered as a standard formulation of the pixel-wise attribution, it usually cannot be accurately computed because of its high computational cost. In order to accurately evaluate the sampled attribution values without significantly increasing the computational cost, we applied the Shapley value approximated by the sampling method. Just like the target attribution distribution $A _ { i }$ , the approximated Shapley value $A _ { i } ^ { s h a p }$ is assumed to follow a normal distribution $\mathcal { N } ( A _ { i } ^ { * } , ( \sigma ^ { s h a p } ) ^ { 2 } )$ . $A _ { i } ^ { s h a p }$ is an unbiased approximation of the true Shapley value $A _ { i } ^ { * }$ , Thus, the average value over different pixels in $S$ satisfies $\begin{array} { r } { \frac { \sum _ { i \in S } A _ { i } ^ { s h a p } } { | S | } \sim \mathcal { N } ( \frac { \sum _ { i \in S } A _ { i } ^ { * } } { | S | } , \frac { ( \sigma ^ { s h a p } ) ^ { 2 } } { | S | } ) } \end{array}$ .
92
+
93
+ We can prove that the measurement of the average attribution among all sampled pixel s Pi∈S Ashapi is of much higher accuracy than the raw Shapley value with the same computational cost. The difference between the highest (or lowest) values and its true values $\begin{array} { r } { \left| \frac { \sum _ { i \in S } A _ { i } ^ { s h a p } } { | S | \| A ^ { s h a p } \| } - \frac { \sum _ { i \in S } A _ { i } } { | S | \| A \| } \right| } \end{array}$ can reflect the system bias, as follows.
94
+
95
+ $$
96
+ \begin{array} { r } { M _ { \mathrm { p i x e l } } = \mathbb { E } _ { I } \left[ \left| \displaystyle \frac { \sum _ { i \in S } A _ { i } ^ { s h a p } } { \left| S \right| \left| \left| A ^ { s h a p } \right| \right| } - \displaystyle \frac { \sum _ { i \in S } A _ { i } } { \left| S \right| \left| A \right| } \right| \right] = \mathbb { E } _ { I } \left[ \displaystyle \frac { 1 } { \left| S \right| } \displaystyle \lvert \frac { \sum _ { i \in S } A _ { i } ^ { s h a p } } { \left| \left| A ^ { s h a p } \right| \right| } - \displaystyle \frac { \sum _ { i \in S } a _ { i } } { \left| \left| a \right| \right]} \right] } \\ { \mathrm { s . t . } \qquad \forall i \in S , j \in \Omega \setminus S , a _ { i } \geq a _ { j } \quad \mathrm { o r } \quad \forall i \in S , j \in \Omega \setminus S , a _ { i } \leq a _ { j } } \end{array}
97
+ $$
98
+
99
+ where $\Omega$ is the set of all pixels in an image. $\| A ^ { s h a p } \|$ and $\| a \|$ are used for normalization. A small value of $M _ { \mathrm { p i x e l } }$ indicates the low bias of the attribution map.
100
+
101
+ Analysis of the high computational efficiency: Suppose that the computational complexity of processing one sample is $\mathcal O ( N )$ , then the computational complexity of sampling $m$ times is $\mathcal { O } ( m N )$ .
102
+
103
+ If the raw Shapley value needs to obtain the same accuracy, it needs significantly more samples, and the computational complexity is $\mathcal { O } ( \vert S \vert m N )$ . Please see Appendix B for the theoretical analysis of the save of computational cost.
104
+
105
+ In addition, the proposed metric can also be used to evaluate the attribution of neural activations in the intermediate layer, such as those generated by Grad-CAM. In this case, we can regard the target intermediate-layer feature as the input image to compute attributions, so as to implement the evaluation. For each image, we need to sample multiple times to increase the accuracy. We compute the average performance over different images for evaluation. We need to sample multiple times with different images to increase the accuracy of the evaluation. Note that although the metric is designed based on the Shapley value, experimental results showed that LRP outperforms DeepSHAP.
106
+
107
+ # 3.3 QUANTIFICATION OF UNEXPLAINABLE FEATURE COMPONENTS
108
+
109
+ We propose another metric to quantify unexplainable feature components. Given an image $I$ and its attribution map $\{ a _ { i } \}$ , we generate a new image, which reflects the logic of the attribution map. In this way, we can consider the feature of the newly generated image $\widetilde { f }$ as feature components that can be explained. Let $f$ denote the feature of the original image $I$ . Then, $f - \tilde { f }$ corresponds to the unexplainable feature components.
110
+
111
+ To generate the new image, we mask specific pixels in the original image $I$ , which have the lowest attributions. We select and mask a set of pixels $S$ with the lowest absolute attributions, and the number of the selected points is determined subjects to $\begin{array} { r } { \sum _ { i \in S } \left| a _ { i } \right| = 0 . 1 \sum _ { i \in \Omega } \left| a _ { i } \right| } \end{array}$ to generate the new image $\widetilde { I }$ . The metric is formulated as
112
+
113
+ $$
114
+ M _ { \mathrm { f e a t u r e } } = \alpha \mathbb { E } _ { I } \left[ \lVert \widetilde { f } _ { I } - f _ { I } \rVert \right]
115
+ $$
116
+
117
+ where $\begin{array} { r } { \alpha = \frac { 1 } { \mathbb { E } _ { I ^ { \prime } } [ \parallel f _ { I ^ { \prime } } - \mathbb { E } _ { I ^ { \prime \prime } } [ f _ { I ^ { \prime \prime } } ] \parallel ] } } \end{array}$ is used for normalization. A small value of $M _ { \mathrm { f e a t u r e } }$ indicates most feature components in $f$ are explainable.
118
+
119
+ # 3.4 EVALUATING THE ROBUSTNESS OF EXPLANATION
120
+
121
+ This metric is used to measure the robustness of explanation methods to the spatial masking. We believe that the method, which is robust to spatial masking, can be considered more convincing. The robustness is an important perspective of evaluating explanation methods.
122
+
123
+ Given an input image $I \in \mathbf { I }$ and its attribution map $\{ a _ { i } \} ~ w . r . t$ a DNN, we use a mask $M$ to cover specific parts of the image to get a masked image $\hat { I }$ . For each input image $I$ , we can generate four masked images by masking the right, left, top, and bottom half of the image, respectively. For each masked image $\hat { I }$ , the explanation method estimates the attribution $\hat { a } _ { i }$ for each pixel. We compare pixel-level attributions of the unmask pixels between original images and masked images, as follows.
124
+
125
+ $$
126
+ M _ { \mathrm { n o n - r o b u s t } } = \mathbb { E } _ { I } \left[ \frac { 1 } { \lVert a \rVert } \sqrt { \sum _ { i \in I \backslash I _ { m a s k } } ( a _ { i } - \hat { a } _ { i } ) ^ { 2 } } \right]
127
+ $$
128
+
129
+ We used $\| a \|$ for normalization, and a large value of $M _ { \mathrm { n o n - r o b u s t } }$ indicates a high non-robustness.
130
+
131
+ # 3.5 EVALUATING THE MUTUAL VERIFICATION
132
+
133
+ This metric aims to quantitatively measure the mutual verification between different explanation methods. It is usually believed that two explanation methods are more reliable if they can verify each other. Given a DNN $F$ and an image $I \in \textbf { I }$ , two different explanation methods $\alpha$ and $\beta$ produce attribution maps $a _ { \alpha }$ and $a _ { \beta }$ , respectively. We measure their difference as follows.
134
+
135
+ $$
136
+ M _ { \mathrm { m u t u a l } } = \mathbb { E } _ { I } \left[ \Vert \frac { a _ { \alpha } } { \Vert a _ { \alpha } \Vert } - \frac { a _ { \beta } } { \Vert a _ { \beta } \Vert } \Vert \right]
137
+ $$
138
+
139
+ Attribution maps from different explanation methods are normalized by their L2-norm. A lower value of $M _ { \mathrm { m u t u a l } }$ indicates a more convincing mutual verification between explanation methods $\alpha$ and $\beta$ .
140
+
141
+ ![](images/939b1586227e75090f34f1aafa4ce66bffd382787e4fe5f83a6b344c1410b84b.jpg)
142
+ Figure 1: Example of attribution maps of different methods.
143
+
144
+ # 4 EXPERIMENT
145
+
146
+ To evaluate explanation methods, we conducted experiments on the CIFAR-10 (Krizhevsky & Hinton, 2009) dataset and the Pascal VOC 2012 (Everingham et al., 2010) dataset. For images in the Pascal VOC 2012 dataset, we cropped objects using their bounding boxes and used the cropped objects as inputs to train DNNs for object classification. We trained and explained LeNet (LeCun et al., 1998), ResNet-20/32/44/56 (He et al., 2016) using the CIFAR-10 dataset. AlexNet (Krizhevsky et al., 2012), VGG-16/19 (Simonyan & Zisserman, 2015), ResNet-50/101 (He et al., 2016) were trained using the Pascal VOC 2012 dataset.
147
+
148
+ # 4.1 BASELINE
149
+
150
+ In our experiments, we mainly evaluated the following explanation methods. Figure 1 shows attribution maps yielded by these explanation methods. Appendix D provides more attribution maps.
151
+
152
+ Grad: Given an input, (Simonyan et al., 2013) quantified the attribution value with the gradient of the input. We termed this algorithm as Grad. For RGB images with multiple channels, Grad selected the maximum magnitude across all channels for each pixel.
153
+
154
+ GI: (Shrikumar et al., 2016) proposed a method, namely GI, which used the pixel-wise product of the input and its gradient as attribution value. Attribution values for RGB channels were summed to get the final attribution value.
155
+
156
+ GB: Guided Back-propagation, namely GB, corresponded to Grad where the back-propagation rule at ReLU units was redefined (Springenberg et al., 2014).
157
+
158
+ LRP: Layer-wise relevance propagation (LRP) (Binder et al., 2016) redefined back-propagation rules for each layer to decompose the output of a DNN over the input. We used LRP- $\cdot \epsilon$ and set the parameter $\epsilon = 1$ in experiments.
159
+
160
+ DeepSHAP: DeepSHAP adapted DeepLIFT (Shrikumar et al., 2016) to approximate pixel-wise Shapley values for the input image (Lundberg & Lee, 2017). We applied the code released by (Lundberg & Lee, 2017).
161
+
162
+ LIME: LIME (Ribeiro et al., 2016) trained an interpretable model to compute the attribute value for each super-pixel. We used the code released by (Ribeiro et al., 2016).
163
+
164
+ Pert: (Fong & Vedaldi, 2017) explained a prediction by training a mask to perturb the input image. Mask values ranging between 0 and 1 indicated the saliency of each pixel. We termed this method Pert.
165
+
166
+ CAM: CAM computed attribution map over the feature from the last convolutional layer (Zhou et al., 2016). It required the special structure with a global average pooling layer and a fully connected layer at the end of the DNN.
167
+
168
+ Grad CAM: Grad CAM was similar to CAM (Selvaraju et al., 2017). Grad CAM used gradients over the feature map, instead of the parameters of the fully connected layer.
169
+
170
+ # 4.2 IMPLEMENTATION DETAILS
171
+
172
+ Bias of the attribution map at the pixel level: To approximate the Shapley value for each image, we sampled 1000 times for each image in the CIFAR-10 dataset and sampled 100 times for each image in the Pascal VOC 2012 dataset. We sampled the top- $10 \%$ , $30 \%$ , $50 \%$ , $70 \%$ , $90 \%$ pixels with the highest/lowest values.
173
+
174
+ ![](images/6b88e11eef2fa57cd8d3b5235c119022a63d9a1e445f9ba7e0924225eab2a94e.jpg)
175
+ Figure 2: Results of the bias of the attribution map at the pixel level. Row (I) and row (II) used trained LeNet, ResNet20, ResNet32, ResNet44, ResNet56 on the CIFAR-10 dataset from left to right; row (III) and row (IV) used trained ResNet50, ResNet101, VGG16, VGG19, AlexNet on the Pascal VOC 2012 dataset from left to right. Row (I) and row (III) sampled pixels with the highest attribution values; row (II) and row (IV) sampled the pixels with the lowest attribution values.
176
+
177
+ Table 2: Quantification of unexplainable feature components.
178
+
179
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td><td>Pert</td></tr><tr><td>CIFAR10-LeNet</td><td>0.96821</td><td>1.10399</td><td>0.91546</td><td>1.10371</td><td>0.67032</td><td>1.08469</td><td>0.70177</td></tr><tr><td>CIFAR10-ResNet20</td><td>1.22212</td><td>1.28065</td><td>1.14596</td><td>1.26002</td><td>1.05286</td><td>=</td><td>1.13032</td></tr><tr><td>CIFAR10-ResNet32</td><td>1.22803</td><td>1.29324</td><td>1.16028</td><td>1.27681</td><td>1.04412</td><td>=</td><td>1.14261</td></tr><tr><td>CIFAR10-ResNet44</td><td>1.22382</td><td>1.26434</td><td>1.10411</td><td>1.24961</td><td>1.02039</td><td></td><td>1.10772</td></tr><tr><td>CIFAR10-ResNet56</td><td>1.22487</td><td>1.24123</td><td>1.11306</td><td>1.24146</td><td>1.00916</td><td>=</td><td>1.10122</td></tr><tr><td>VOC2012-AlexNet</td><td>1.02425</td><td>1.09375</td><td>1.04981</td><td>1.0809</td><td>1.01942</td><td>1.11513</td><td>1.04048</td></tr><tr><td>VOC2012-VGG16</td><td>1.18959</td><td>1.22715</td><td>1.22724</td><td>1.32364</td><td>1.12339</td><td>1.32674</td><td>1.12878</td></tr><tr><td>VOC2012-VGG19</td><td>1.08084</td><td>1.1226</td><td>1.10411</td><td>1.17121</td><td>1.08387</td><td>1.23784</td><td>1.13043</td></tr><tr><td>VOC2012-ResNet50</td><td>1.23345</td><td>1.24123</td><td>1.2156</td><td>1.23441</td><td>1.22411</td><td>-</td><td>1.25732</td></tr><tr><td>VOC2012-ResNet101</td><td>1.08592</td><td>1.09363</td><td>1.07853</td><td>1.07856</td><td>1.11289</td><td>=</td><td>1.23279</td></tr></table>
180
+
181
+ Quantification of unexplainable feature components: Given an image, we masked the pixels with the lowest absolute attribution value. The number of the masked pixels was determined to ensure that the sum of masked absolute attribution value took $10 \%$ of the total absolute attribution value. On average, around $30 \%$ pixels were masked. The masked pixels were assigned with the average pixel value over images. We used features of the last convolutional layer to compute $M _ { f e a t u r e }$ .
182
+
183
+ # 4.3 EXPERIMENT RESULT AND ANALYSIS
184
+
185
+ Bias of the attribution map at the pixel level: Figure 2 shows curves of evaluation results on different models learned using different datasets. According to these curves, GI and LIME provided the least biased attribution maps for ResNet at the pixel level. For AlexNet, VGG-16/19 and LeNet, LRP outperformed other methods. Detailed numbers corresponding curves in Figure 2 are listed in the Appendix E.
186
+
187
+ Some methods could not be evaluated using the bias at the pixel level. For example, Pert computed an importance map without negative values instead of an attribution map for each image. The code of CAM (Zhou et al., 2016) projected attribution values to the range between 0 and 1. Grad CAM and LRP were not used on residual networks, because there was only one fully connected layer behind the last convolutional layer in residual networks. In this case, Grad CAM could not diagnose the logic contained in the cascaded non-liner layers of the DNN. For LRP, the relevance propagation rules of some structures in ResNet were not defined to the best of our knowledge.
188
+
189
+ Quantification of unexplainable feature components: Table 2 compares the amount of unexplainable feature components between explanation methods. We found that LIME, GB and Pert explained more feature components than other methods. We noticed that the quantification of unexplainable feature components of most explanation methods were considerable larger than expected. It was because the attribution maps from some methods contained relatively larger noise. Thus, the masked pixels were almost uniformly distributed over images, which destroyed the context information and led to worse results.
190
+
191
+ ![](images/cd700db41983ae1d904c06b910fd90afa9ccc9d541f4f2614149abe8e83321d0.jpg)
192
+ Figure 3: Heat maps of mutual verification. A low value of $M _ { m u t u a l }$ between two methods indicates a more convincing mutual verification between them.
193
+
194
+ We did not evaluate CAM and Grad CAM, because they calculated attribution maps at the feature level, which were not comparable with attribution values at the pixel level.
195
+
196
+ Robustness of explanation: Table 3 shows the quantitative results of $M _ { \mathrm { n o n - r o b u s t } }$ on different models trained using different datasets. We found that GB and Grad CAM exhibited a lower non-robustness to spatial masking. For more results, Appendix F shows examples of attribution maps of masked images.
197
+
198
+ Mutual verification: Figure 3 visualizes the mutual verification $M _ { \mathrm { m u t u a l } }$ between different explanation methods, which indicates a high level mutual verification between LRP, GI and DeepSHAP. Appendix G provides more detailed results. Note that we did not compare CAM and Grad CAM with other methods. It was because they computed attribution maps on intermediate-layer features.
199
+
200
+ # 5 CONCLUSION
201
+
202
+ In this paper, we have proposed four metrics to evaluate explanation methods from four different perspectives. The proposed evaluation metrics are computed without requirements for ground-truth explanations. Our metrics can be broadly applied to different methods, w.r.t. DNNs learned using different datasets. These metrics evaluate the bias of the attribution map at the pixel level, quantify the unexplainable feature components, the robustness of the explanation and the mutual verification. In experiments, we used our metrics to evaluate nine widely used explanation methods. Experimental results showed that attribution maps from LRP, GI and LIME exhibited lower bias at the pixel level. LIME and GB explained more feature components than other methods. Regarding the robustness, GB, CAM and Grad CAM were more robust to spatial masking than other explanation methods. DeepSHAP, GI and LRP can better verified each other.
203
+
204
+ # REFERENCES
205
+
206
+ Julius Adebayo, Justin Gilmer, Michael Muelly, Ian Goodfellow, Moritz Hardt, and Been Kim. Sanity checks for saliency maps. In NIPS, 2018.
207
+
208
+ David Alvarez-Melis and Tommi S. Jaakkola. Towards robust interpretability with self-explaining neural networks. In arXiv:1806.07538, 2018.
209
+
210
+ Leila Arras, Ahmed Osman, Klaus-Robert Muller, and Wojciech Samek. Evaluating recurrent neural ¨ network explanations. In arXiv:1904.11829, 2019.
211
+
212
+ Mathieu Aubry and Bryan C. Russell. Understanding deep features with computer-generated imagery. In ICCV, 2015.
213
+
214
+ David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. In CVPR, 2017.
215
+
216
+ Alexander Binder, Gregoire Montavon, Sebastian Lapuschkin, Klaus-Robert M ´ uller, and Wojciech ¨ Samek. Layer-wise relevance propagation for neural networks with local renormalization layers. In International Conference on Artificial Neural Networks (ICANN), 2016.
217
+
218
+ Javier Castro, Daniel Gomez, and Juan Tejada. Polynomial calculation of the shapley value based ´ on sampling. In Computers & Operations Research, 36(5):1726–1730, 2009.
219
+
220
+ Zhengping Che, Sanjay Purushotham, Robinder Khemani, and Yan Liu. Interpretable deep models for icu outcome prediction. In American Medical Informatics Association (AMIA) Annual Symposium, 2016.
221
+
222
+ Jianbo Chen, Le Song, Martin J. Wainwright, and Michael I. Jordan. L-shapley and c-shapley: Efficient model interpretation for structured data. In arXiv:1808.02610, 2018.
223
+
224
+ Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In NIPS, 2016.
225
+
226
+ Edward Choi, Mohammad Taha Bahadori, Joshua A. Kulas, Andy Schuetz, Walter F. Stewart, and Jimeng Sun. Retain: an interpretable predictive model for healthcare using reverse time attention mechansim. In arXiv:1608.05745v4, 2017.
227
+
228
+ Xiaocong Cui, Jung Min Lee, and J Hsieh. An integrative 3c evaluation framework for explainable artificial intelligence. In The annual Americas Conference on Information Systems (AMCIS), 2019.
229
+
230
+ Alexey Dosovitskiy and Thomas Brox. Inverting visual representations with convolutional networks. In CVPR, 2016.
231
+
232
+ M. Everingham, L. Van Gool, C. K. I. Williams, J. Winn, and A. Zisserman. The pascal visual object classes (voc) challenge. In International Journal of Computer Vision, 88(2):303–338, June 2010.
233
+
234
+ Ruth Fong and Andrea Vedaldi. Net2vec: Quantifying and explaining how concepts are encoded by filters in deep neural networks. In CVPR, 2018.
235
+
236
+ Ruth C. Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In arXiv:1704.03296v1, 2017.
237
+
238
+ Nicholas Frosst and Geoffrey Hinton. Distilling a neural network into a soft decision tree. In arXiv:1711.09784, 2017.
239
+
240
+ Amirata Ghorbani, Abubakar Abid, and James Zou. Interpretation of neural networks is fragile. In AAAI, 2019.
241
+
242
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
243
+
244
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\beta$ -vae: learning basic visual concepts with a constrained variational framework. In ICLR, 2017.
245
+
246
+ Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric P. Xing. Harnessing deep neural networks with logic rules. In arXiv:1603.06318v2, 2016.
247
+
248
+ Been Kim, Martin Wattenberg, Justin Gilmer, Carrie Cai, James Wexler, Fernanda Viegas, and Rory Sayres. Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (tcav). In arXiv:1711.11279, 2017.
249
+
250
+ Pieter-Jan Kindermans, Kristof T. Schutt, Maximilian Alber, Klaus-Robert M ¨ uller, Dumitru Erhan, ¨ Been Kim, and Sven Dahne. Learning how to explain neural networks: Patternnet and patternat- ¨ tribution. In ICLR, 2018.
251
+
252
+ PangWei Koh and Percy Liang. Understanding black-box predictions via influence functions. In ICML, 2017.
253
+
254
+ A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. In Computer Science Department, University of Toronto, Tech. Rep, 1, 2009.
255
+
256
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
257
+
258
+ Himabindu Lakkaraju, Ece Kamar, Rich Caruana, and Eric Horvitz. Identifying unknown unknowns in the open world: Representations and policies for guided exploration. In AAAI, 2017.
259
+
260
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to \` document recognition. In Proceedings of the IEEE, 1998.
261
+
262
+ Renjie Liao, Alex Schwing, Richard Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NIPS, 2016.
263
+
264
+ Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NIPS, 2017.
265
+
266
+ Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In CVPR, 2015.
267
+
268
+ Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. “why should i trust you?” explaining the predictions of any classifier. In KDD, 2016.
269
+
270
+ Sara Sabour, Nicholas Frosst, and Geoffrey E. Hinton. Dynamic routing between capsules. In NIPS, 2017.
271
+
272
+ Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, 2017.
273
+
274
+ Lloyd S Shapley. A value for n-person games. In Contributions to the Theory of Games, 2(28): 307–317, 1953.
275
+
276
+ Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. Not just a black box: Learning important features through propagating activation differences. In arXiv:1605.01713, 2016.
277
+
278
+ Marcel Simon and Erik Rodner. Neural activation constellations: Unsupervised part model discovery with convolutional networks. In ICCV, 2015.
279
+
280
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
281
+
282
+ Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. In arXiv:1312.6034, 2013.
283
+
284
+ Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. In arXiv:1412.6806, 2014.
285
+ Austin Stone, Huayan Wang, Yi Liu, D. Scott Phoenix, and Dileep George. Teaching compositionality to cnns. In CVPR, 2017.
286
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In arXiv:1312.6199v4, 2014.
287
+ Sarah Tan, Rich Caruana, Giles Hooker, and Albert Gordo. Transparent model distillation. In arXiv:1801.08640, 2018.
288
+ Joel Vaughan, Agus Sudjianto, Erind Brahimi, Jie Chen, and Vijayan N. Nair. Explainable neural networks based on additive index models. In arXiv:1806.01933, 2018.
289
+ Minh N Vu, Truc D Nguyen, NhatHai Phan, Ralucca Gera, and My T Thai. Evaluating explainers via perturbation. In arXiv:1906.02032, 2019.
290
+ Mike Wu, Michael C. Hughes, Sonali Parbhoo, Maurizio Zazzi, Volker Roth, and Finale DoshiVelez. Beyond sparsity: Tree regularization of deep models for interpretability. In NIPS TIML Workshop, 2017a.
291
+ Tianfu Wu, Xilai Li, Xi Song, Wei Sun, Liang Dong, and Bo Li. Interpretable r-cnn. In arXiv:1711.05226, 2017b.
292
+ Mengjiao Yang and Been Kim. Bim: Towards quantitative evaluation of interpretability methods with ground truth. In arXiv:1907.09701, 2019.
293
+ Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In NIPS, 2014.
294
+ Jason Yosinski, Jeff Clune, Anh Nguyen, Thomas Fuchs, and Hod Lipson. Understanding neural networks through deep visualization. In ICML Deep Learning Workshop, 2015.
295
+ Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014.
296
+ Quanshi Zhang, Yu Yang, Yuchen Liu, Ying Nian Wu, and Song-Chun Zhu. Unsupervised learning of neural networks to explain neural networks. In arXiv:1805.07468, 2018.
297
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In ICRL, 2015.
298
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016.
299
+
300
+ # A PROPERTIES OF THE SHAPLEY VALUE
301
+
302
+ Let $I$ denote the input image; let $\Omega$ denote the set of all pixels in $I$ . We can use $I _ { \emptyset }$ to denote a baseline image, i.e. all pixels in $I _ { \emptyset }$ equal to the average value over all images. For a subset $S \subset \Omega$ , $I _ { S }$ denotes an image that satisfies
303
+
304
+ $$
305
+ ( I _ { S } ) _ { i } = \left\{ { \left( I \right) _ { i } , \ \mathrm { \Omega } _ { i } \in S } \right.
306
+ $$
307
+
308
+ where $i$ is the index of the pixel in $I$ and $I _ { \Omega }$ is the same image as $I$ . Let $F$ and $G$ denote two models with scalar output. The Shapley value of the $i$ -th pixel is represented by $A _ { i } ^ { * }$ , and they have the following properties.
309
+
310
+ Efficiency: The sum of Shapley values $\textstyle \sum _ { i \in \Omega } A _ { i } ^ { * }$ is equal to $F ( I _ { \Omega } ) - F ( I _ { \emptyset } )$ .
311
+
312
+ Symmetry: The features that are treated equally by the model are treated equally by the Shapley value. If $F ( I _ { S \cup \{ i \} } ) = F ( I _ { S \cup \{ j \} } )$ for all subsets S, then $A _ { i } ^ { * } = A _ { j } ^ { * }$ .
313
+
314
+ Additivity: For any two models $F$ and $G$ , if they are combined into one model $F + G$ , the Shapley value must be added pixel by pixel: $( A ^ { * } ) _ { i } ^ { F + G } = \stackrel { \cdot } { = } ( A ^ { * } ) _ { i } ^ { F } + ( A ^ { * } ) _ { i } ^ { G }$ .
315
+
316
+ Monotonicity: For any two models $F$ and $G$ , if for all subsets $S$ we have $F ( I _ { S \cup \{ i \} } ) - F ( I _ { S } ) \geq$ $G ( I _ { S \cup \{ i \} } ) - G ( I _ { S } )$ for all subsets S, then we have $( A ^ { * } ) _ { i } ^ { F } \geq ( A ^ { * } ) _ { i } ^ { G }$ .
317
+
318
+ # B ANALYSIS OF THE COMPUTATIONAL COST
319
+
320
+ In this section, we continue using the notation in Section 3.1 and Section 3.2. Suppose that we sample m times to approximate the Shapley value. The variance of Ashapi is σ 2 $\frac { \sigma ^ { 2 } } { m }$ where $\sigma ^ { 2 }$ satisfies (Castro et al., 2009)
321
+
322
+ $$
323
+ \sigma ^ { 2 } = \sum _ { P \subset \Omega \setminus \{ i \} } \frac { | P | ! ( | \Omega | - | P | - 1 ) ! } { | P | ! } \left[ F ( I _ { P \cup \{ i \} } ) - F ( I _ { P } ) - A _ { i } ^ { * } \right] ^ { 2 }
324
+ $$
325
+
326
+ So we have $( \sigma ^ { s h a p } ) ^ { 2 } = \sigma ^ { 2 } / m$ . For the set of sampled pixels $S$ , the variance of their average Shapley value is $\begin{array} { r } { \frac { | S | ( \sigma ^ { s h a p } ) ^ { 2 } } { | S | ^ { 2 } } = \frac { ( \sigma ^ { s h a p } ) ^ { 2 } } { | S | } = \frac { \sigma ^ { 2 } } { m | S | } } \end{array}$ . Apparently, if we want to get the same accuracy for a single pixel as the set of pixels, we need to sample $m | S |$ times, which needs much more computational cost than our metric, especially when the number of sampled pixels is large.
327
+
328
+ # C STUDIES OF EXPLANATION METHODS BESIDES THE ESTIMATION OF ATTRIBUTION MAPS.
329
+
330
+ Network visualization: The visualization of feature representations inside a neural network is the most direct way of opening the black-box of the neural network. Related techniques include gradient-based visualization (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Yosinski et al., 2015) and up-convolutional nets (Dosovitskiy & Brox, 2016) to invert feature maps of conv-layers into images.
331
+
332
+ Network diagnosis: Some studies diagnose feature representations inside a neural network. (Yosinski et al., 2014) measured features transferability in intermediate layers of a neural network. (Aubry & Russell, 2015) visualized feature distributions of different categories in the feature space. (Kindermans et al., 2018) extracted rough pixel-level correlations between network inputs and outputs, i.e. estimating image regions that directly contribute the network output. Network-attack methods (Koh & Liang, 2017; Szegedy et al., 2014) computed adversarial samples to diagnose a CNN. (Lakkaraju et al., 2017) discovered knowledge blind spots of a CNN in a weakly-supervised manner. However, above methods usually analyzed a neural network at the pixel level and did not summarize the network knowledge into clear visual concepts. (Bau et al., 2017) defined six types of semantics for CNN filters, i.e. objects, parts, scenes, textures, materials, and colors. Then, (Zhou et al., 2015) proposed a method to compute the image-resolution receptive field of neural activations in a feature map. Fong and Vedaldi (Fong & Vedaldi, 2018) analyzed how multiple filters jointly represented a certain semantic concept. Other studies retrieved intermediate-layer features from CNNs representing clear concepts. Simon & Rodner (2015) retrieved features to describe objects from feature maps, respectively. (Zhou et al., 2015) selected neural units to describe scenes.
333
+
334
+ Learning interpretable representations: A new trend in the scope of network interpretability is to learn interpretable feature representations in neural networks Hu et al. (2016); Stone et al. (2017); Liao et al. (2016) in an un-/weakly-supervised manner. Capsule nets Sabour et al. (2017) and interpretable RCNN Wu et al. (2017b) learned interpretable features in intermediate layers. InfoGAN Chen et al. (2016) and $\beta$ -VAE Higgins et al. (2017) learned well-disentangled codes for generative networks.
335
+
336
+ Explaining neural networks via knowledge distillation: Distilling knowledge from a black-box model into an explainable model is an emerging direction in recent years. (Choi et al., 2017) learned an explainable additive model, and (Vaughan et al., 2018) distilled knowledge of a network into an additive model. In order to disentangle feature representations of object parts from intermediate layers of a CNN, (Zhang et al., 2018) distilled the CNN’s knowledge into an explainer network with interpretable conv-layers, in which each filter represented a specific object part. (Frosst & Hinton, 2017; Tan et al., 2018; Che et al., 2016; Wu et al., 2017a) distilled representations of neural networks into tree structures. These methods did not explain the network knowledge using humaninterpretable semantic concepts.
337
+
338
+ # D MORE EXAMPLES OF ATTRIBUTION MAPS
339
+
340
+ ![](images/74c7043eae9678f374e1b610ef62c9a903ee1e64e5b1f50dfb82cba0deba7acf.jpg)
341
+ Figure 4: Example of attribution maps.
342
+
343
+ E DETAILED RESULTS OF THE BIAS OF THE ATTRIBUTION MAP AT THE PIXEL LEVEL
344
+
345
+ Table 4: Bias of the attribution map at the pixel level on CIFAR-10-LeNet
346
+
347
+ <table><tr><td>Method</td><td>Grad_CAM</td><td>Grad|</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>top-10%</td><td>0.17256</td><td>0.05302</td><td>0.04060</td><td>0.04701</td><td>0.04924</td><td>0.03138</td><td>0.04164</td></tr><tr><td>top-30%</td><td>0.04921</td><td>0.03090</td><td>0.01892</td><td>0.02109</td><td>0.02408</td><td>0.03051</td><td>0.01798</td></tr><tr><td>top-50%</td><td>0.01961</td><td>0.02057</td><td>0.01126</td><td>0.01225</td><td>0.01443</td><td>0.02919</td><td>0.01041</td></tr><tr><td>top-70%</td><td>0.01531</td><td>0.01137</td><td>0.00671</td><td>0.00746</td><td>0.00902</td><td>0.02727</td><td>0.00634</td></tr><tr><td>top-90%</td><td>0.01785</td><td>0.00314</td><td>0.00240</td><td>0.00300</td><td>0.00334</td><td>0.02537</td><td>0.00277</td></tr><tr><td>bottom-10%</td><td>0.05317</td><td>0.06326</td><td>0.04907</td><td>0.06730</td><td>0.05755</td><td>0.02160</td><td>0.04271</td></tr><tr><td>bottom-30%</td><td>0.04510</td><td>0.03948</td><td>0.02626</td><td>0.03224</td><td>0.03100</td><td>0.02150</td><td>0.02198</td></tr><tr><td>bottom-50%</td><td>0.04732</td><td>0.02840</td><td>0.01767</td><td>0.02126</td><td>0.02047</td><td>0.02222</td><td>0.01481</td></tr><tr><td>bottom-70%</td><td>0.04693</td><td>0.01886</td><td>0.01270</td><td>0.01551</td><td>0.01462</td><td>0.02286</td><td>0.01086</td></tr><tr><td>bottom-90%</td><td>0.04022</td><td>0.01026</td><td>0.00808</td><td>0.01025</td><td>0.00882</td><td>0.02385</td><td>0.00708</td></tr></table>
348
+
349
+ Table 5: Bias of the attribution map at the pixel level on CIFAR-10-ResNet20
350
+
351
+ <table><tr><td>Method</td><td>Gradl</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.04692</td><td>0.03962</td><td>0.04801</td><td>0.04702</td><td>0.02716</td></tr><tr><td>top-30%</td><td>0.02552</td><td>0.01522</td><td>0.01848</td><td>0.02175</td><td>0.02706</td></tr><tr><td>top-50%</td><td>0.01616</td><td>0.00795</td><td>0.00943</td><td>0.01241</td><td>0.02666</td></tr><tr><td>top-70%</td><td>0.00762</td><td>0.00416</td><td>0.00425</td><td>0.00643</td><td>0.02456</td></tr><tr><td>top-90%</td><td>0.00288</td><td>0.00283</td><td>0.00336</td><td>0.00270</td><td>0.02185</td></tr><tr><td>bottom-10%</td><td>0.06610</td><td>0.06449</td><td>0.06726</td><td>0.06866</td><td>0.01790</td></tr><tr><td>bottom-30%</td><td>0.04272</td><td>0.03437</td><td>0.03833</td><td>0.03962</td><td>0.01765</td></tr><tr><td>bottom-50%</td><td>0.03117</td><td>0.02296</td><td>0.02704</td><td>0.02722</td><td>0.01836</td></tr><tr><td>bottom-70%</td><td>0.02168</td><td>0.01726</td><td>0.02053</td><td>0.01992</td><td>0.01897</td></tr><tr><td>bottom-90%</td><td>0.01357</td><td>0.01275</td><td>0.01513</td><td>0.01346</td><td>0.02005</td></tr></table>
352
+
353
+ Table 6: Bias of the attribution map at the pixel level on CIFAR-10-ResNet32
354
+
355
+ <table><tr><td>Method</td><td>Gradl</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.04836</td><td>0.04126</td><td>0.03984</td><td>0.04773</td><td>0.02699</td></tr><tr><td>top-30%</td><td>0.02600</td><td>0.01641</td><td>0.01728</td><td>0.02247</td><td>0.02702</td></tr><tr><td>top-50%</td><td>0.01639</td><td>0.00874</td><td>0.00972</td><td>0.01289</td><td>0.02630</td></tr><tr><td>top-70%</td><td>0.00793</td><td>0.00459</td><td>0.00565</td><td>0.00683</td><td>0.02465</td></tr><tr><td>top-90%</td><td>0.00268</td><td>0.00264</td><td>0.00242</td><td>0.00260</td><td>0.02267</td></tr><tr><td>bottom-10%</td><td>0.06535</td><td>0.06389</td><td>0.07271</td><td>0.06787</td><td>0.02059</td></tr><tr><td>bottom-30%</td><td>0.04217</td><td>0.03433</td><td>0.03612</td><td>0.03917</td><td>0.02053</td></tr><tr><td>bottom-50%</td><td>0.03064</td><td>0.02304</td><td>0.02359</td><td>0.02686</td><td>0.02065</td></tr><tr><td>bottom-70%</td><td>0.02135</td><td>0.01726</td><td>0.01733</td><td>0.01963</td><td>0.02103</td></tr><tr><td>bottom-90%</td><td>0.01331</td><td>0.01254</td><td>0.01214</td><td>0.01307</td><td>0.02145</td></tr></table>
356
+
357
+ Table 7: Bias of the attribution map at the pixel level on CIFAR-10-ResNet44
358
+
359
+ <table><tr><td>Method</td><td>Grad|</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.04795</td><td>0.04155</td><td>0.04055</td><td>0.04751</td><td>0.02712</td></tr><tr><td>top-30%</td><td>0.02576</td><td>0.01626</td><td>0.01698</td><td>0.02254</td><td>0.02709</td></tr><tr><td>top-50%</td><td>0.01609</td><td>0.00848</td><td>0.00935</td><td>0.01307</td><td>0.02637</td></tr><tr><td>top-70%</td><td>0.00748</td><td>0.00433</td><td>0.00502</td><td>0.00686</td><td>0.02485</td></tr><tr><td>top-90%</td><td>0.00248</td><td>0.00228</td><td>0.00230</td><td>0.00226</td><td>0.02271</td></tr><tr><td>bottom-10%</td><td>0.06510</td><td>0.06452</td><td>0.07143</td><td>0.06802</td><td>0.01924</td></tr><tr><td>bottom-30%</td><td>0.04196</td><td>0.03449</td><td>0.03663</td><td>0.03977</td><td>0.01879</td></tr><tr><td>bottom-50%</td><td>0.03082</td><td>0.02323</td><td>0.02448</td><td>0.02736</td><td>0.01967</td></tr><tr><td>bottom-70%</td><td>0.02159</td><td>0.01752</td><td>0.01811</td><td>0.01989</td><td>0.02064</td></tr><tr><td>bottom-90%</td><td>0.01353</td><td>0.01282</td><td>0.01293</td><td>0.01323</td><td>0.02137</td></tr></table>
360
+
361
+ Table 8: Bias of the attribution map at the pixel level on CIFAR-10-ResNet56
362
+
363
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.04716</td><td>0.04129</td><td>0.04780</td><td>0.04601</td><td>0.02690</td></tr><tr><td>top-30%</td><td>0.02537</td><td>0.01659</td><td>0.01855</td><td>0.02089</td><td>0.02714</td></tr><tr><td>top-50%</td><td>0.01607</td><td>0.00900</td><td>0.01022</td><td>0.01215</td><td>0.02679</td></tr><tr><td>top-70%</td><td>0.00791</td><td>0.00482</td><td>0.00569</td><td>0.00652</td><td>0.02509</td></tr><tr><td>top-90%</td><td>0.00212</td><td>0.00194</td><td>0.00214</td><td>0.00234</td><td>0.02252</td></tr><tr><td>bottom-10%</td><td>0.06625</td><td>0.06551</td><td>0.06065</td><td>0.06727</td><td>0.01828</td></tr><tr><td>bottom-30%</td><td>0.04164</td><td>0.03449</td><td>0.03158</td><td>0.03779</td><td>0.01812</td></tr><tr><td>bottom-50%</td><td>0.03001</td><td>0.02299</td><td>0.02129</td><td>0.02574</td><td>0.01911</td></tr><tr><td>bottom-70%</td><td>0.02086</td><td>0.01712</td><td>0.01587</td><td>0.01868</td><td>0.02023</td></tr><tr><td>bottom-90%</td><td>0.01300</td><td>0.01237</td><td>0.01146</td><td>0.01267</td><td>0.02088</td></tr></table>
364
+
365
+ Table 9: Bias of the attribution map at the pixel level on VOC2012-ResNet50
366
+
367
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.00766</td><td>0.00728</td><td>0.00633</td><td>0.00738</td><td>0.00876</td></tr><tr><td>top-30%</td><td>0.00437</td><td>0.00345</td><td>0.00276</td><td>0.00359</td><td>0.00606</td></tr><tr><td>top-50%</td><td>0.00297</td><td>0.00213</td><td>0.00170</td><td>0.00223</td><td>0.00451</td></tr><tr><td>top-70%</td><td>0.00173</td><td>0.00138</td><td>0.00113</td><td>0.00144</td><td>0.00335</td></tr><tr><td>top-90%</td><td>0.00060</td><td>0.00060</td><td>0.00053</td><td>0.00062</td><td>0.00235</td></tr><tr><td>bottom-10%</td><td>0.00831</td><td>0.00824</td><td>0.00850</td><td>0.00839</td><td>0.00430</td></tr><tr><td>bottom-30%</td><td>0.00500</td><td>0.00417</td><td>0.00386</td><td>0.00432</td><td>0.00240</td></tr><tr><td>bottom-50%</td><td>0.00354</td><td>0.00269</td><td>0.00244</td><td>0.00280</td><td>0.00151</td></tr><tr><td>bottom-70%</td><td>0.00228</td><td>0.00189</td><td>0.00171</td><td>0.00194</td><td>0.00113</td></tr><tr><td>bottom-90%</td><td>0.00117</td><td>0.00112</td><td>0.00111</td><td>0.00114</td><td>0.00128</td></tr></table>
368
+
369
+ Table 10: Bias of the attribution map at the pixel level on VOC2012-ResNet101
370
+
371
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>top-10%</td><td>0.00790</td><td>0.00678</td><td>0.00610</td><td>0.00685</td><td>0.00827</td></tr><tr><td>top-30%</td><td>0.00438</td><td>0.00307</td><td>0.00260</td><td>0.00318</td><td>0.00608</td></tr><tr><td>top-50%</td><td>0.00291</td><td>0.00185</td><td>0.00158</td><td>0.00194</td><td>0.00473</td></tr><tr><td>top-70%</td><td>0.00175</td><td>0.00121</td><td>0.00104</td><td>0.00127</td><td>0.00371</td></tr><tr><td>top-90%</td><td>0.00067</td><td>0.00055</td><td>0.00049</td><td>0.00056</td><td>0.00278</td></tr><tr><td>bottom-10%</td><td>0.00861</td><td>0.00754</td><td>0.00839</td><td>0.00767</td><td>0.00387</td></tr><tr><td>bottom-30%</td><td>0.00496</td><td>0.00369</td><td>0.00377</td><td>0.00381</td><td>0.00222</td></tr><tr><td>bottom-50%</td><td>0.00343</td><td>0.00237</td><td>0.00238</td><td>0.00245</td><td>0.00142</td></tr><tr><td>bottom-70%</td><td>0.00225</td><td>0.00169</td><td>0.00169</td><td>0.00173</td><td>0.00124</td></tr><tr><td>bottom-90%</td><td>0.00117</td><td>0.00104</td><td>0.00112</td><td>0.00105</td><td>0.00174</td></tr></table>
372
+
373
+ Table 11: Bias of the attribution map at the pixel level on VOC2012-AlexNet
374
+
375
+ <table><tr><td>Method</td><td>Grad_CAM</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>top-10%</td><td>0.05403</td><td>0.00744</td><td>0.00505</td><td>0.00646</td><td>0.00845</td><td>0.00854</td><td>0.00453</td></tr><tr><td>top-30%</td><td>0.03467</td><td>0.00434</td><td>0.00243</td><td>0.00296</td><td>0.00447</td><td>0.00598</td><td>0.00197</td></tr><tr><td>top-50%</td><td>0.02459</td><td>0.00298</td><td>0.00149</td><td>0.00182</td><td>0.00295</td><td>0.00443</td><td>0.00119</td></tr><tr><td>top-70%</td><td>0.01711</td><td>0.00176</td><td>0.00094</td><td>0.00120</td><td>0.00209</td><td>0.00329</td><td>0.00080</td></tr><tr><td>top-90%</td><td>0.01115</td><td>0.00060</td><td>0.00035</td><td>0.00058</td><td>0.00140</td><td>0.00222</td><td>0.00043</td></tr><tr><td>bottom-10%</td><td>0.01026</td><td>0.00906</td><td>0.00638</td><td>0.00876</td><td>0.00438</td><td>0.00466</td><td>0.00430</td></tr><tr><td>bottom-30%</td><td>0.00978</td><td>0.00534</td><td>0.00327</td><td>0.00400</td><td>0.00215</td><td>0.00267</td><td>0.00202</td></tr><tr><td>bottom-50%</td><td>0.00803</td><td>0.00372</td><td>0.00215</td><td>0.00253</td><td>0.00131</td><td>0.00165</td><td>0.00129</td></tr><tr><td>bottom-70%</td><td>0.00610</td><td>0.00239</td><td>0.00151</td><td>0.00178</td><td>0.00075</td><td>0.00103</td><td>0.00091</td></tr><tr><td>bottom-90%</td><td>0.00690</td><td>0.00124</td><td>0.00093</td><td>0.00111</td><td>0.00030</td><td>0.00104</td><td>0.00056</td></tr></table>
376
+
377
+ Table 12: Bias of the attribution map at the pixel level on VOC2012-VGG16
378
+
379
+ <table><tr><td>Method</td><td>Grad_CAM</td><td>Gradl</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>top-10%</td><td>0.02984</td><td>0.00764</td><td>0.00656</td><td>0.00563</td><td>0.00768</td><td>0.00864</td><td>0.00461</td></tr><tr><td>top-30%</td><td>0.01876</td><td>0.00405</td><td>0.00292</td><td>0.00253</td><td>0.00310</td><td>0.00554</td><td>0.00159</td></tr><tr><td>top-50%</td><td>0.01365</td><td>0.00267</td><td>0.00176</td><td>0.00154</td><td>0.00187</td><td>0.00387</td><td>0.00092</td></tr><tr><td>top-70%</td><td>0.00947</td><td>0.00162</td><td>0.00115</td><td>0.00098</td><td>0.00132</td><td>0.00272</td><td>0.00065</td></tr><tr><td>top-90%</td><td>0.00650</td><td>0.00061</td><td>0.00051</td><td>0.00038</td><td>0.00089</td><td>0.00172</td><td>0.00044</td></tr><tr><td>bottom-10%</td><td>0.00767</td><td>0.00869</td><td>0.00768</td><td>0.00865</td><td>0.00396</td><td>0.00580</td><td>0.00288</td></tr><tr><td>bottom-30%</td><td>0.00708</td><td>0.00483</td><td>0.00372</td><td>0.00406</td><td>0.00173</td><td>0.00344</td><td>0.00117</td></tr><tr><td>bottom-50%</td><td>0.00654</td><td>0.00330</td><td>0.00238</td><td>0.00261</td><td>0.00106</td><td>0.00223</td><td>0.00072</td></tr><tr><td>bottom-70%</td><td>0.00540</td><td>0.00219</td><td>0.00170</td><td>0.00185</td><td>0.00075</td><td>0.00153</td><td>0.00054</td></tr><tr><td>bottom-90%</td><td>0.00509</td><td>0.00120</td><td>0.00107</td><td>0.00122</td><td>0.00041</td><td>0.00114</td><td>0.00040</td></tr></table>
380
+
381
+ Table 13: Bias of the attribution map at the pixel level on VOC2012-VGG19
382
+
383
+ <table><tr><td>Method</td><td>Grad_CAM</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>top-10%</td><td>0.02564</td><td>0.00761</td><td>0.00672</td><td>0.00580</td><td>0.00802</td><td>0.00851</td><td>0.00468</td></tr><tr><td>top-30%</td><td>0.01991</td><td>0.00403</td><td>0.00301</td><td>0.00261</td><td>0.00337</td><td>0.00565</td><td>0.00157</td></tr><tr><td>top-50%</td><td>0.01517</td><td>0.00263</td><td>0.00181</td><td>0.00159</td><td>0.00205</td><td>0.00402</td><td>0.00091</td></tr><tr><td>top-70%</td><td>0.01139</td><td>0.00161</td><td>0.00118</td><td>0.00102</td><td>0.00143</td><td>0.00282</td><td>0.00064</td></tr><tr><td>top-90%</td><td>0.00799</td><td>0.00062</td><td>0.00053</td><td>0.00043</td><td>0.00096</td><td>0.00183</td><td>0.00045</td></tr><tr><td>bottom-10%</td><td>0.00932</td><td>0.00867</td><td>0.00782</td><td>0.00871</td><td>0.00442</td><td>0.00587</td><td>0.00236</td></tr><tr><td>bottom-30%</td><td>0.00764</td><td>0.00480</td><td>0.00378</td><td>0.00406</td><td>0.00193</td><td>0.00352</td><td>0.00095</td></tr><tr><td>bottom-50%</td><td>0.00683</td><td>0.00326</td><td>0.00243</td><td>0.00260</td><td>0.00120</td><td>0.00231</td><td>0.00059</td></tr><tr><td>bottom-70%</td><td>0.00630</td><td>0.00217</td><td>0.00173</td><td>0.00184</td><td>0.00084</td><td>0.00140</td><td>0.00046</td></tr><tr><td>bottom-90%</td><td>0.00649</td><td>0.00119</td><td>0.00109</td><td>0.00120</td><td>0.00043</td><td>0.00107</td><td>0.00036</td></tr></table>
384
+
385
+ # F ATTRIBUTION MAPS OF MASKED IMAGES
386
+
387
+ G DETAILED RESULTS OF THE MUTUAL VERIFICATION
388
+
389
+ ![](images/84255e01c2a68ee7187460f4e43b594534feb150938c83b1a932b728b5f35483.jpg)
390
+ Figure 5: Example of attribution maps after spatial masking.
391
+
392
+ Table 14: Mutual verification on VOC2012-VGG19
393
+
394
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.6661</td><td>1.4054</td><td>1.4177</td><td>1.4142</td><td>1.4375</td></tr><tr><td>GI</td><td>1.6661</td><td>0.0000</td><td>1.4159</td><td>1.4008</td><td>1.4140</td><td>1.3437</td></tr><tr><td>GB</td><td>1.4054</td><td>1.4159</td><td>0.0000</td><td>1.5834</td><td>1.4244</td><td>1.5242</td></tr><tr><td>DeepSHAP</td><td>1.4177</td><td>1.4009</td><td>1.5835</td><td>0.0000</td><td>1.3691</td><td>1.1106</td></tr><tr><td>LIME</td><td>1.4142</td><td>1.4141</td><td>1.4245</td><td>1.3691</td><td>0.0000</td><td>1.3874</td></tr><tr><td>LRP</td><td>1.4375</td><td>1.3437</td><td>1.5243</td><td>1.1106</td><td>1.3874</td><td>0.0000</td></tr></table>
395
+
396
+ Table 15: Mutual verification on VOC2012-VGG16
397
+
398
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.6647</td><td>1.3992</td><td>1.4302</td><td>1.4142</td><td>1.4621</td></tr><tr><td>GI</td><td>1.6647</td><td>0.0000</td><td>1.4191</td><td>1.3711</td><td>1.4139</td><td>1.2649</td></tr><tr><td>GB</td><td>1.3992</td><td>1.4191</td><td>0.0000</td><td>1.5839</td><td>1.4260</td><td>1.5320</td></tr><tr><td>DeepSHAP</td><td>1.4302</td><td>1.3712</td><td>1.5840</td><td>0.0000</td><td>1.3824</td><td>1.0636</td></tr><tr><td>LIME</td><td>1.4142</td><td>1.4140</td><td>1.4261</td><td>1.3825</td><td>0.0000</td><td>1.3960</td></tr><tr><td>LRP</td><td>1.4621</td><td>1.2649</td><td>1.5321</td><td>1.0636</td><td>1.3960</td><td>0.0000</td></tr></table>
399
+
400
+ Table 16: Mutual verification on VOC2012-AlexNet
401
+
402
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.5540</td><td>1.3477</td><td>1.4348</td><td>1.4148</td><td>1.4851</td></tr><tr><td>GI</td><td>1.5541</td><td>0.0000</td><td>1.4344</td><td>1.3224</td><td>1.4113</td><td>0.8341</td></tr><tr><td>GB</td><td>1.3477</td><td>1.4344</td><td>0.0000</td><td>1.4477</td><td>1.4146</td><td>1.4573</td></tr><tr><td>DeepSHAP</td><td>1.4349</td><td>1.3225</td><td>1.4478</td><td>0.0000</td><td>1.3221</td><td>1.2251</td></tr><tr><td>LIME</td><td>1.4149</td><td>1.4115</td><td>1.4147</td><td>1.3222</td><td>0.0000</td><td>1.3916</td></tr><tr><td>LRP</td><td>1.4851</td><td>0.8341</td><td>1.4573</td><td>1.2250</td><td>1.3915</td><td>0.0000</td></tr></table>
403
+
404
+ Table 17: Mutual verification on VOC2012-ResNet50
405
+
406
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.6285</td><td>1.4143</td><td>1.6242</td><td>1.4143</td></tr><tr><td>GI</td><td>1.6285</td><td>0.0000</td><td>1.4137</td><td>0.6537</td><td>1.4139</td></tr><tr><td>GB</td><td>1.4143</td><td>1.4136</td><td>0.0000</td><td>1.4137</td><td>1.4238</td></tr><tr><td>DeepSHAP</td><td>1.6242</td><td>0.6537</td><td>1.4137</td><td>0.0000</td><td>1.4139</td></tr><tr><td>LIME</td><td>1.4144</td><td>1.4141</td><td>1.4240</td><td>1.4140</td><td>0.0000</td></tr></table>
407
+
408
+ Table 18: Mutual verification on VOC2012-ResNet101
409
+
410
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.6877</td><td>1.4136</td><td>1.6428</td><td>1.4145</td></tr><tr><td>GI</td><td>1.6877</td><td>0.0000</td><td>1.4140</td><td>0.6778</td><td>1.4139</td></tr><tr><td>GB</td><td>1.4136</td><td>1.4140</td><td>0.0000</td><td>1.4140</td><td>1.4275</td></tr><tr><td>DeepSHAP</td><td>1.6428</td><td>0.6778</td><td>1.4140</td><td>0.0000</td><td>1.4138</td></tr><tr><td>LIME</td><td>1.4146</td><td>1.4140</td><td>1.4277</td><td>1.4139</td><td>0.0000</td></tr></table>
411
+
412
+ Table 19: Mutual verification on CIFAR10-ResNet56
413
+
414
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.4183</td><td>1.4107</td><td>1.4135</td><td>1.4142</td></tr><tr><td>GI</td><td>1.4183</td><td>0.0000</td><td>1.4140</td><td>1.4104</td><td>1.4140</td></tr><tr><td>GB</td><td>1.4107</td><td>1.4140</td><td>0.0000</td><td>1.4128</td><td>1.3879</td></tr><tr><td>DeepSHAP</td><td>1.4135</td><td>1.4104</td><td>1.4128</td><td>0.0000</td><td>1.4097</td></tr><tr><td>LIME</td><td>1.4142</td><td>1.4140</td><td>1.3879</td><td>1.4098</td><td>0.0000</td></tr></table>
415
+
416
+ Table 20: Mutual verification on CIFAR10-ResNet44
417
+
418
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.3999</td><td>1.4128</td><td>1.4147</td><td>1.4141</td></tr><tr><td>GI</td><td>1.3999</td><td>0.0000</td><td>1.4125</td><td>1.4114</td><td>1.4143</td></tr><tr><td>GB</td><td>1.4128</td><td>1.4125</td><td>0.0000</td><td>1.4152</td><td>1.4175</td></tr><tr><td>DeepSHAP</td><td>1.4147</td><td>1.4114</td><td>1.4152</td><td>0.0000</td><td>1.4097</td></tr><tr><td>LIME</td><td>1.4142</td><td>1.4144</td><td>1.4152</td><td>1.4175</td><td>0.0000</td></tr></table>
419
+
420
+ Table 21: Mutual verification on CIFAR10-ResNet32
421
+
422
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.4259</td><td>1.4129</td><td>1.4117</td><td>1.4143</td></tr><tr><td>GI</td><td>1.4259</td><td>0.0000</td><td>1.4164</td><td>1.4113</td><td>1.4145</td></tr><tr><td>GB</td><td>1.4129</td><td>1.4164</td><td>0.0000</td><td>1.4144</td><td>1.4111</td></tr><tr><td>DeepSHAP</td><td>1.4117</td><td>1.4113</td><td>1.4144</td><td>0.0000</td><td>1.4117</td></tr><tr><td>LIME</td><td>1.4144</td><td>1.4145</td><td>1.4112</td><td>1.4117</td><td>0.0000</td></tr></table>
423
+
424
+ Table 22: Mutual verification on CIFAR10-ResNet20
425
+
426
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.3895</td><td>1.4010</td><td>1.4134</td><td>1.4143</td></tr><tr><td>GI</td><td>1.3895</td><td>0.0000</td><td>1.4140</td><td>1.4133</td><td>1.4145</td></tr><tr><td>GB</td><td>1.4010</td><td>1.4140</td><td>0.0000</td><td>1.4164</td><td>1.4382</td></tr><tr><td>DeepSHAP</td><td>1.4134</td><td>1.4133</td><td>1.4164</td><td>0.0000</td><td>1.4118</td></tr><tr><td>LIME</td><td>1.4144</td><td>1.4145</td><td>1.4382</td><td>1.4118</td><td>0.0000</td></tr></table>
427
+
428
+ Table 23: Mutual verification on CIFAR10-LeNet
429
+
430
+ <table><tr><td>Method</td><td>Grad</td><td>GI</td><td>GB</td><td>DeepSHAP</td><td>LIME</td><td>LRP</td></tr><tr><td>Grad</td><td>0.0000</td><td>1.5079</td><td>1.1955</td><td>1.4352</td><td>1.4130</td><td>1.4904</td></tr><tr><td>GI</td><td>1.5079</td><td>0.0000</td><td>1.4714</td><td>1.3025</td><td>1.4003</td><td>0.7179</td></tr><tr><td>GB</td><td>1.1955</td><td>1.4714</td><td>0.0000</td><td>1.4329</td><td>1.4249</td><td>1.4881</td></tr><tr><td>DeepSHAP</td><td>1.4352</td><td>1.3025</td><td>1.4329</td><td>0.0000</td><td>1.3958</td><td>1.3063</td></tr><tr><td>LIME</td><td>1.4131</td><td>1.4004</td><td>1.4249</td><td>1.3959</td><td>0.0000</td><td>1.3805</td></tr><tr><td>LRP</td><td>1.4904</td><td>0.7179</td><td>1.4881</td><td>1.3063</td><td>1.3804</td><td>0.0000</td></tr></table>
parse/train/SkxwY3NtPr/SkxwY3NtPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkxwY3NtPr/SkxwY3NtPr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkxwY3NtPr/SkxwY3NtPr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SylLYsCcFm/SylLYsCcFm.md ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING TO MAKE ANALOGIES BY CONTRASTING ABSTRACT RELATIONAL STRUCTURE
2
+
3
+ Felix Hill\*, Adam Santoro∗, David G. T. Barrett, Ari Morcos & Tim Lillicrap Deepmind, London {felixhill,adamsantoro,barrettdavid,arimorcos,countzero}@google.com
4
+
5
+ # ABSTRACT
6
+
7
+ Analogical reasoning has been a principal focus of various waves of AI research. Analogy is particularly challenging for machines because it requires relational structures to be represented such that they can be flexibly applied across diverse domains of experience. Here, we study how analogical reasoning can be induced in neural networks that learn to perceive and reason about raw visual data. We find that the critical factor for inducing such a capacity is not an elaborate architecture, but rather, careful attention to the choice of data and the manner in which it is presented to the model. The most robust capacity for analogical reasoning is induced when networks learn analogies by contrasting abstract relational structures in their input domains, a training method that uses only the input data to force models to learn about important abstract features. Using this technique we demonstrate capacities for complex, visual and symbolic analogy making and generalisation in even the simplest neural network architectures.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The ability to make analogies – that is, to flexibly map familiar relations from one domain of experience to another – is a fundamental ingredient of human intelligence and creativity (Gentner, 1983; Hofstadter, 1996; Hummel & Holyoak, 1997; Lovett & Forbus, 2017). As noted, for instance, by Holyoak & Thagard (1995), analogies gave Roman scientists a deeper understanding of sound when they leveraged knowledge of a familiar source domain (water waves in the sea) to better understand the structure of an unfamiliar target domain (acoustics). The Romans ‘aligned’ relational principles about water waves (periodicity, bending round corners, rebounding off solids) to phenomena observed in acoustics, in spite of the numerous perceptual and physical differences between water and sound. This flexible alignment, or mapping, of relational structure between source and target domains, independent of perceptual congruence, is a prototypical example of analogy making.
12
+
13
+ It has proven particularly challenging to replicate processes of analogical thought in machines. Many classical or symbolic AI models lack the flexibility to apply predicates or operations across diverse domains, particularly those that may have never previously been observed. It is natural to consider, however, whether the strengths of modern neural network-based models can be exploited to solve difficult analogical problems, given their capacity to represent stimuli at different levels of abstraction and to enable flexible, context-dependent computation over noisy and ambiguous inputs.
14
+
15
+ In this work we demonstrate that well-known neural network architectures can indeed learn to make analogies with remarkable generality and flexibility. This ability, however, is critically dependent on a method of training we call learning analogies by contrasting abstract relational structure (LABC). We show that simple architectures can be trained using this approach to apply abstract relations to never-before-seen source-target domain mappings, and even to entirely unfamiliar target domains.
16
+
17
+ Our work differs from previous computational models of analogy in two important ways. First, unlike previous neural network models of analogy, we optimize a single model to perform both stimulus representation and cross-domain mapping jointly. This allows us to explore the potential benefit of interactions between perception, representation and inter-domain alignment, a question of some debate in the analogy literature (Forbus et al., 1998). Second, we do not instantiate an explicit cognitive theory or analogy-like computation in our model architecture, but instead use this theoretical insight to inform the way in which the model is trained.
18
+
19
+ ![](images/8b03221091c0f3eef96e3dc0f1d096073b5ff4ded47879e16e92bfcc2ede1bbc.jpg)
20
+ Figure 1: A visual analogy problem. In this example, the model must (1) identify a relation (Progression ) on a particular domain ( shape quantity ) in the source sequence (top), and (2) apply it to a different domain ( line color ) in order to find the candidate answer panel that correctly completes target sequence (bottom). There are seven possible domains and four possible relations in the dataset.
21
+
22
+ # 2 ANALOGIES AS HIGH-LEVEL PERCEPTION AND STRUCTURE MAPPING
23
+
24
+ Perhaps the best-known explanation of human analogical reasoning is Structure Mapping Theory (SMT) (Gentner, 1983). SMT emphasizes the distinction between two means of comparing domains of experience; analogy and similarity. According to SMT, two domains are similar if they share many attributes (i.e. properties that can be expressed with a one-place predicate like BLUE(sea) ), whereas they are analogous if they share few attributes but many relations (i.e. properties expressed by many-place predicates like BENDS-AROUND(sea, solid-objects) ). SMT assumes that our perceptions can be represented as collections of attributes and structured relations, and that these representations do not necessarily depend on the subsequent mappings that use them.
25
+
26
+ The High-Level Perception (HLP) theory of analogy (Chalmers et al., 1992; Mitchell, 1993) instead construes analogy as a function of tightly-interacting perceptual and reasoning processes, positing that the creation of stimulus representations and the alignment of those representations are mutually dependent. For example, when making an analogy between the sea and acoustics, we might represent certain perceptual features (the fact that the sea appears to be moving) and ignore others (the fact that the sea looks blue), because the particular comparison that we make depends on location and direction, and not on colour.
27
+
28
+ In this work we aim to induce flexible analogy making in neural networks by drawing inspiration from both SMT and HLP. The perceptual and domain-comparison components of our models are connected and jointly optimised end-to-end, which, as posited by HLP, reflects a high degree of interaction between perception and domain comparison. On the other hand, the key insight of this paper, LABC, is directly motivated by SMT. We find that LABC greatly enhances the ability of our networks to resolve analogies in a generalisable way by encouraging them to compare inputs at the more abstract level of relations rather than the less abstract level of attributes. LABC organizes the training data such that the inference and mapping of relational structure is essential for good performance. This means that problems cannot be resolved by considering mere similarity of attributes, or even less appropriately, via spurious surface-level statistics or memorization.
29
+
30
+ # 3 VISUAL ANALOGY PROBLEMS
31
+
32
+ Our first experiments involve greyscale visual scenes similar to those previously applied to test both human reasoning ability (Raven, 1983; Geary et al., 2000) and reasoning in machine learning models (Bongard, 1967; Fleuret et al., 2011; Barrett et al., 2018). Each scene is composed of a source sequence, consisting of three panels (distinct images), a target sequence, consisting of two panels, and four candidate answer panels (Fig. 1). In the source sequence a relation $r$ is instantiated, where $r$ is one of four possible relations from the set $R = \left\{ \begin{array} { r l r l } \end{array} \right.$ XOR , OR , AND Progression $\}$ . Models must then consider the two panels in the target sequence, together with the four candidate answer panels, to determine which answer panel best completes the target sequence – by analogy with the source sequence – so that $r$ is also instantiated (Fig. 2).
33
+
34
+ ![](images/9c82dc2f464a457fc9b84da7f1aeffa91069718361d96431eef47cdbaf473c98.jpg)
35
+ Figure 2: In LABC, the multiple choice candidates are all semantically plausible, in that they are all consistent completions of the target domain using some relation. Only the correct answer uses the same relation as the source domain, so, the only way to solve the problem is to use analogical reasoning. In contrast, perceptually plausible incorrect candidates are consistent with the target domain attributes but not the relations and all other possible candidates are inconsistent with the target domain relation and attributes.
36
+
37
+ The notion of domain is critical to analogy. In our visual analogy task, a relation can be instantiated in one of seven different domains: line type , line colour , shape type , shape colour , shape size , shape quantity and shape position (see Fig. 1 and Appendix Fig. 7 for examples). Within a panel of a given domain, the attributes present in the scene (such as the colour of the shapes or the positions of the lines) can take one of 10 possible values. A question in the dataset is therefore defined by a relation $r$ , a domain $d _ { s }$ on which $r$ is instantiated in the source sequence, a set of values for the source-domain $v _ { 1 } ^ { s } \cdot \cdot \cdot v _ { 3 } ^ { s }$ , a target domain $d _ { t }$ , values for the target-domain $v _ { 1 } ^ { t } \cdot \cdot \cdot v _ { 3 } ^ { t }$ , the position $k \in \{ 1 \cdots 4 \}$ of the correct answer among the answer candidate panels and whatever is instantiated in the three incorrect candidate answer panels $c _ { i } , i \neq k$ . Note, however, that the values of certain domain attributes that are not relevant to a given question (such as the colour of shapes in the shape quantity domain) still have to be selected, and can vary freely. Thus, despite the small number of latent factors involved, the space of possible questions is of the order of ten million.
38
+
39
+ The interplay between relations, domains and values makes it possible to construct questions that require increasing degrees of abstraction and analogymaking. The simplest case involves a relation $r$ , a domain $d _ { s } \ = = \ d _ { t }$ , and values $v _ { i } ^ { s } ~ = = ~ v _ { i } ^ { t }$ that are common to both source and target sequences (Fig 3a). To solve such a question a model must identify a candidate answer panel that results in a copy of the source sequence in the target sequence. This does not seem to require any meaningful understanding of $r$ , nor any particular analogy-making. Somewhat greater abstraction and analogymaking is required for questions involving a single domain $\scriptstyle ( d _ { s } = = d _ { t }$ ), but different values in the source and target sequence $v _ { i } ^ { s } \neq v _ { i } ^ { t }$ (Fig 3b). In this case the model must learn that, in a given domain, the relation $r$ can apply to a range of different values. Finally, in the full analogy questions considered in this study, the relation $r$ can be instantiated on different domains in the source and target sequences (i.e. $d _ { t } \neq d _ { s }$ ; Fig 3c). These questions require a sensitivity to the idea that a single relation $r$ can be applied in different (but related) ways to different domains of experience.1
40
+
41
+ # 3.1 METHODS
42
+
43
+ Our model consisted of a simple perceptual front-end – a convolutional neural network (CNN) – which provided input for a recurrent neural network (RNN) by producing embeddings for each image panel independently. The RNN processed the source sequence embeddings, the target sequence embeddings, and a single candidate embedding, to produce a scalar score. Four such passes (one for each source-target-candidate set) produced four scalar scores, quantifying how the model evaluated the suitability of the particular candidate. Finally, a softmax was computed across the scores to select the model’s ‘answer’. Further model details are in appendix 7.1.
44
+
45
+ ![](images/03afe4004d338e78df0096b9270a3cb40e2485857265fe4ad9fe922d7eb4938f.jpg)
46
+ Figure 3: (a), (b), (c) Three types of visual reasoning questions. Each question requires a different degree of analogy making, with the question on the right demanding the most fluid and abstract application of the underlying relation. (d) Learning analogies by contrasting. When learning by contrasting, each answer choice is consistent with a relational structure in the target sequence. Only the correct answer choice is consistent with relations in both the source and target domains. This forces the network to consider the source sequence to infer the correct structure.
47
+
48
+ Learning Analogies By Contrasting (LABC) In the default setting of our data generator – the normal training regime – for a question involving source domain $d _ { s }$ , target domain $d _ { t }$ and relation $r$ , the candidate answers can contain any (incorrect) values chosen at random from $d _ { t }$ (Fig. 2). By selecting incorrect candidate answers from the same domain $d _ { t }$ as the correct answer, we ensure that they are perceptually plausible, so that the problem cannot be solved trivially by matching the domain of the question to one of the answers. Even so, the baseline training regime may allow models to find perceptual correlations that allow it to arrive at the correct answer consistently over the training data. We can make this less likely by instead training the model to contrast abstract relational structure – the LABC regime – simply by ensuring that incorrect answers are both perceptually and semantically plausible (Fig. 2). More specifically, incorrect answers are selected from $d _ { t }$ such that each answer $c _ { i }$ completes a decoy relation $\boldsymbol { \hat { r } _ { i } } \neq \boldsymbol { r }$ with the target sequence. LABC ensures that, during training, models have no alternative but to first observe a relation $r$ in the source domain and consider and complete the same relation in the target domain - i.e. to execute a full analogical reasoning step.2
49
+
50
+ ![](images/5e3309230dca0505df3671e356defa265364450c63ddf00a0765bd20568366af.jpg)
51
+ Figure 4: Results of the three experiments in the visual analogy domain for a network that learns from random candidate answers, by contrasting abstract structures or both types of question interleaved. Bar heights depict the means across eight seeds in each condition; standard errors were $< 0 . 0 1$ for each condition (not shown – see the appendix Table 4 for the values)
52
+
53
+ Note that in all experiments reported below, we generated 600,000 training questions, 10,000 validation questions and test sets of 100,000 questions. These data will be published with the paper.
54
+
55
+ # 3.2 EXPERIMENT 1: NOVEL DOMAIN TRANSFER
56
+
57
+ A key aspect of analogy-making is the process of comparing or aligning two domains. We can measure how well models acquire this ability by testing them on analogies involving unfamiliar source domain target domain transfers. For each of the seven possible target domains $d _ { t }$ we randomly selected a source domain $d _ { s } \ne d _ { t }$ , yielding a test set of seven domain transfer pairs $[ d _ { s } d _ { t } ]$ . Our models were then trained on questions involving one of the remaining $7 \times 7 - 7 = 4 2$ domain transfer pairs. For a test question involving domains $d _ { s }$ and $d _ { t }$ , each model was therefore familiar with $d _ { s }$ and $d _ { t }$ but had not been trained to make an analogy from $d _ { s }$ to $d _ { t }$ .
58
+
59
+ We found that a network can indeed learn to apply relations by analogy involving novel domain transfers, but that this ability crucially relies on learning by contrasting. The effect is strong; for the most focused test questions involving semantically plausible (contrasting) candidate answers the model trained by contrasting achieves $83 \%$ accuracy (depending on the held-out domain), versus $58 \%$ for a model trained with randomly-chosen candidate answers.
60
+
61
+ # 3.3 EXPERIMENT 2: NOVEL TARGET DOMAIN
62
+
63
+ Humans can use analogies to better understand comparatively unfamiliar domains, as in the Roman explanation of acoustics by analogy with the sea. To capture this scenario, we held out two domains ( line type and shape colour , chosen at random) from the model’s training data, and ensured that each test question involved one of these domains. To make sense of the test questions, a model must therefore (presumably) learn to represent the relations in the dataset in a sufficiently general way that this knowledge can be applied to completely novel domains. Any model that resolves such problems successfully must therefore exploit any (rudimentary) perceptual similarity between the test domain and the domains that were observed during training. For instance, the process of applying a relation in the shape colour domain may recruit similar feature detectors to those required when applying it to the line colour domain.
64
+
65
+ Table 1: Test performance of a selection of visual reasoning network architectures trained in the normal regime and with LABC on the Novel Domain Transfer experiment. The test questions include those with both semantically-plausible and merely perceptually-plausible incorrect answers. Mean $\left( + \mathbf { S } \mathbf { D } \right)$ for 10 models in each condition with different random initialisations.
66
+
67
+ <table><tr><td></td><td>LABC training</td><td>Normal training</td></tr><tr><td>RNN (this paper)</td><td>0.90 (0.01)</td><td>0.79 (0.09)</td></tr><tr><td>ResNet-50</td><td>0.82 (0.02)</td><td>0.77 (0.10)</td></tr><tr><td>Parallel ResNet-50</td><td>0.89 (0.01)</td><td>0.75 (0.14)</td></tr><tr><td>Parallel Relation Net (WReN)</td><td>0.95 (0.017)</td><td>0.72 (0.21)</td></tr></table>
68
+
69
+ Surprisingly, we found that the network can indeed learn to make sense of the unfamiliar target domains in the test questions, although again this capacity is boosted by LABC (Fig 4b). Accuracy in the LABC condition on the most focused (contrasting) test questions is lower than in the Experiment 1 $( \sim 8 0 \%$ , depending on the held-out domain), but well above the model trained with random answer candidates $( \sim 6 0 \% )$ ). Interestingly, a model trained on semantically-plausible sets of candidate answers (LABC) performs somewhat worse on test questions whose answers are merely perceptuallyplausible than a model trained in that (normal) regime. This deficit can be largely recovered by interleaving random-answer and contrasting candidates during training.
70
+
71
+ # 3.3.1 EXPERIMENT 3: NOVEL DOMAIN VALUES
72
+
73
+ Another way in which a domain can be unfamiliar to a network is if it involves attributes whose values have not been observed during training. Since each of the seven (source and target) domains our analogy problems permits 10 values, we can measure interpolation by withholding values 1, 3, 5, 7 and 9 and measure extrapolation by withholding values 6, 7, 8, 9 and 10. To extrapolate effectively, a model must therefore be able to resolve questions at test time involving lines or shapes that are darker, larger, more-sided or simply more numerous than those in its training questions.
74
+
75
+ In the case of interpolation, we found that a model trained with random candidates performs very poorly on the more challenging contrasting test questions $( \mathrm { F i g ~ 4 c ~ 4 5 \% }$ vs $93 \%$ for LABC), which suggests that models trained in the normal regime overfit to a strategy that bears no resemblance to human-like analogical reasoning. We verified this hypothesis by running an analysis where we presented only the target domain sequence and candidate answers to the model. After a long period of training in the normal regime, this ‘source-blind’ model achieved $9 7 \%$ accuracy, which confirms that it indeed finds short-cut solutions that do not require analogical mapping. In contrast, the accuracy of the source-blind model in the LBAC condition converged at $32 \%$ .
76
+
77
+ We also found, somewhat surprisingly, that LBAC results in a (modest) improvement in how well models can extrapolate to novel input values (Fig 4c); a model trained on questions with both contrasting and random candidate answers performs significantly better than the normal model on the test questions with contrasting candidate answers $62 \%$ vs. $43 \%$ ), and mantains comparable performance on test questions with random candidate answers ( $45 \%$ vs. $44 \%$ ).
78
+
79
+ # 3.3.2 EXPERIMENT 4: MODEL COMPARISON
80
+
81
+ Finally, we explore the extent to which LABC improves generalistion for different various different network architectures, taking as a guide the models considered in Barrett et al. (2018). We run the Novel Domain Transfer experiment with each of these models, trained using both LABC and in the normal training regime. We measure generalisation on a mixed set comprised equally of test questions with semantically-plausible incorrect answer candidates (matching LABC training) and those with merely perceptually-plausible incorrect answers (matching normal training). All models perform better at novel domain transfer when trained with LABC (Table 1). This confirms that our method does not depend on the use of a specific architecture. Further, the fact that LABC yields better performance than normal training on a balanced, mixed test set shows that it is the most effective way to train models in problem instances where the exact details of test questions may be unknown.
82
+
83
+ # 3.4 CONCLUSION
84
+
85
+ These results demonstrate that LABC increases the ability of models to generalize beyond the distribution of their training data. This effect is observed for the prototypical analogical processes involving novel domain mappings and unfamiliar target domains (Experiments 1 & 2). Interestingly, it also results in moderate improvements to how well models extrapolate to perceptual input outside the range of their training experience (Experiment 3).
86
+
87
+ # 4 EMERGENT RELATIONAL REPRESENTATIONS
88
+
89
+ To understand the mechanisms that support this generalisation we analysed neural activity in models trained with LABC compared to models that were not. First, we took the RNN hidden state activity just prior to the input of the candidate panel. For a model trained via LABC, we found that these activities clustered according to relation type (e.g. progression ) more-so than domain (e.g., shape colour ) (Fig 5a, Table 2). In contrast, for models trained normally the relation
90
+
91
+ <table><tr><td rowspan=1 colspan=1>Cluster</td><td rowspan=1 colspan=1>LABC</td><td rowspan=1 colspan=1>Normal Training</td></tr><tr><td rowspan=1 colspan=1>inter-relation dist.inter-domain dist.</td><td rowspan=1 colspan=1>5.2(± 2.2)1.8 (± 1.8)</td><td rowspan=1 colspan=1>4.4 (± 2.0)2.0 (± 1.8)</td></tr></table>
92
+
93
+ Table 2: Mean $\mathbf { ( + S D ) }$ distance between clusters of RNN hidden state representations. LABC seems to promote greater distinctions between different abstract relations in the representation space of models. Since the maximum euclidean distance between two points in a 64 dimensional unit cube is P64i 12 = 8, the distances that we observe between relational representations are close to the maximum possible.
94
+
95
+ based clusters overlapped to a greater extent (Fig 5b, Table 2). Thus, LABC seems to encourage the model to represent relations more explicitly, which could in turn explain its capacity to generalise by analogy to novel domains.
96
+
97
+ ![](images/184c0d754b73faa611c0580c4fb0c482ee946c8f8af1e9a596e6fa668f875e02.jpg)
98
+ Figure 5: LABC supports emergent relational representations. Principle component analysis (PCA) (right) and t-SNE analysis (left) of RNN hidden states. Each dot represents a (64-dimensional) state coloured according to the relation type and domain of the corresponding question.
99
+
100
+ # 5 SYMBOLIC ANALOGY PROBLEMS
101
+
102
+ Many of the most important studies of analogy in AI involve symbolic or numerical patterns (Hofstadter, 1996), and various neural models of semantic cognition more generally also operate on discrete, feature-based representations of input concepts (Rogers & McClelland, 2004; Devereux et al., 2018). To verify our findings in this setting, we implemented a symbolic analogy task based on feature-based stimuli. This more controlled domain allows to show that the construction of appropriate incorrect answer candidates can be learned in a proposal model that is trained jointly with a model that learns to contrast the candidates, widening the potential applications of LABC to task settings where we lack a clear understanding of the underlying abstract relational structure (Sec 5.3).
103
+
104
+ In our task, inputs are $D$ -dimensional vectors $v$ of discrete, integer-valued features (analogous to semantic properties such as furry or carnivorous in previous work). Across any set $V : v \in V$ of stimuli, each feature dimension then corresponds to a domain (the domains of skin-type or dietary habits in the present example). To simulate a space of abstract relational structures on these domains, we simply take a set $F$ whose elements $f$ are common mathematical functions operating on sets: MIN , MAX , ARGMIN , ARGMAX , SUM and RANGE . Abstract relations in this context can be stated, for instance, as $\mathrm { { S U M } } \left( 1 , \quad 2 , \quad 3 ; \quad 6 \right)$ . Given a such a function $f$ , a set $V$ of stimulus vectors, and a random choice of domain $d$ , we can compute a $D$ -dimensional) answer vector $\boldsymbol { a } _ { [ V , d , f ] }$ as the result of applying $f$ to $d$ on $V$ (i.e. executing $f$ on the $d$ -th dimension of each $v \in \dot { V } .$ ). It is now simple to randomly construct an analogy question in this setting. We select a function $f$ , source $d _ { s }$ and target $d _ { t }$ domains at random, randomly generate source $V _ { s }$ and target $V _ { t }$ stimuli. We then apply $f$ to $V _ { s }$ on $d _ { s }$ and to $V _ { t }$ on $d _ { t }$ to generate the source and target domain solutions, $a _ { [ V _ { s } , d _ { s } , f ] }$ and $a _ { [ V _ { t } , d _ { t } , f ] }$ , respectively. The inputs $V _ { s }$ , $d _ { s }$ , $a _ { [ V _ { s } , d _ { s } , f ] }$ , $V _ { t }$ and $v _ { t }$ are passed to the model, together with a ${ \dot { d } } \times k$ matrix of alternative answer choices that includes $a _ { [ V _ { t } , d _ { t } , f ] }$ $k$ is a fixed number of choices, four in the visual analogies presented previously). We then require the model to select which of these alternatives is the true completion of the analogy $a _ { [ V _ { t } , d _ { t } , f ] }$ . As in the visual analogy tasks, to resolve such a question the model must detect an abstract relationship in the input domain $d _ { s }$ , that explains the connection between the source stimuli $V _ { s }$ and the answer vector $a _ { [ V _ { s } , d _ { s } , f ] }$ . Once this achieved, the model must evaluate the function $f$ that describes this relationship on the source domain $d _ { t }$ with sufficient accuracy that it can identify the result of that evaluation $a _ { [ V _ { t } , d _ { t } , f ] }$ in the context of $k$ distracting alternative (incorrect) answers.
105
+
106
+ We study generalization in this task by restricting the particular ordered domain mappings $d _ { s } d _ { t }$ that are observed in the training and test set; for example, aligning structure from domain 3 to domain 1 may be required in the test set, but may have never been seen before in the training set. While we withhold particular alignments (e.g., $3 1 \AA$ ), we ensure that all dimensions are aligned ‘out-of’ $( 3 )$ and ‘into’ $( 1 )$ ) at least once in the training set. Note that this setup is directly analogous to the ‘Novel Domain Transfer’ experiment in the visual analogy problems (Sec. 3.2).
107
+
108
+ # 5.1 METHODS
109
+
110
+ The high level model structure was similar to that of the previous experiments: candidates and their context were processed independently to produce scores, which we put through a softmax and trained with a cross-entropy loss. See appendix 7.2 for further details.Producing appropriate candidate answers $C$ to train by contrasting abstract relational structures (LABC) is straightforward. For a problem involving function $f$ , we sample functions ${ \hat { f } } \sim F \setminus \{ f \}$ at random and populate $C$ with the $c _ { \hat { f } }$ , where $c _ { \hat { f } } = \hat { f } ( V _ { t } )$ . In other words, $c _ { \hat { f } }$ adheres to some relational structure, but just not the structure apparent in the source set. Thus, to determine which candidate is correct, the model necessarily has to first infer the particular relational structure of the source set. Because the implementation of this training regime requires knowledge of the underlying structure of the data (i.e. the space of all functions), we refer to this condition as LABC-explicit SMT.
111
+
112
+ # 5.2 EXPERIMENT 1: NOVEL DOMAIN TRANSFER
113
+
114
+ We replicated the main findings of the visual analogy task (Experiment 1 S3.2): models trained without LABC performed at just above chance, whereas models trained with LABC achieved accuracies of just under $9 0 \%$ . Note that we tested models with candidates generated using the functions in $F$ not equal to the function used to define the relation in the source set. If instead we were to generate random vectors as candidates, the models could simply learn and embed all possible $f \in F$ into their weights, and choose the correct answer by process of elimination; any candidate that does not satisfy $f ( \bar { V _ { t } } )$ for any $f$ is necessarily an incorrect candidate. This method does not require any analogical reasoning, since the model can outright ignore the relation instantiated in the source set, which is precisely a type of back-door solution characteristic of neural network approaches. These results are intuitive at first glance – a model that cannot use back-door solutions, and instead is required to be more discerning at training time will perform better at test time. However, this intuition is less obvious when testing demands novel domain transfer. In other words, it is not obvious that a model that has learned to discern the various functions in $F$ would necessarily be able to flexibly apply the functions in ways never-before-seen, as is demanded in the test set.
115
+
116
+ ![](images/b94acb5874c6e39cf563f113ea5c3a87d38dfa5d911a8e6a40555e0844afe0cf.jpg)
117
+ Figure 6: Structure alignment and mapping on symbolic, numeric data. In this task a particular structure is implemented as a set-function, which in the depicted example is $f = \operatorname* { m i n }$ . For example, the “answer” $a _ { 1 }$ could denote the minimum size from the sizes in the source symbolic vector set. The model must then evaluate the minimum for the “aligned” domain, which in the depicted case is intensity. In this depicted example the candidate does not adhere to this structure, so it would be an incorrect candidate. The correct candidate would look like the answer vector to the right of the image.
118
+
119
+ # 5.3 EXPERIMENT 2: NOVEL DOMAIN TRANSFER WITH AUTOMATIC LABC METHODS
120
+
121
+ We explored ways to replicate the results of Experiment 1 without hand-crafting the candidate answers. For our first method, (LABC-topk) we uniformly sampled integer values for the $c \in C$ from within some range $( 0 , 6 4 )$ rather than computing them as $\hat { f } ( V _ { t } )$ for some ${ \hat { f } } \in F$ . As mentioned previously, such a method should encourage back-door memorization based solutions, since for most candidates, $c \neq { \hat { f } } ( V _ { t } )$ for any ${ \hat { f } } \in F$ . To counter this, we randomly generated a set of candidates, performed a forward pass with each, selected the top- $k$ scalar scores produced by the model, and backpropagated gradients only through these $k$ candidates. Intuitively, this forces the model to train on only those candidates that are maximally confusing. Thus, we rely on random generation to chose our contrasting candidates, and rely on the model itself to sub-select them from within the randomly generated pool. This method improves performance from chance $( 2 5 \% )$ to approximately $7 7 \%$ .
122
+
123
+ It is possible that this top- $k$ method simply exploited random sampling to stumble on the candidates that would have otherwise been hand-crafted. Indeed, for more difficult problems (involving real images, for example) a random generator may not produce anything resembling data from the underlying distribution, making this method less suitable. We thus replicated the top- $k$ experiment, but actively excluded randomly generated candidates that satisfied $c = { \hat { f } } ( V _ { t } )$ for some ${ \hat { f } } \in F$ . Performance fell to $4 3 \%$ , confirming this intuition, but interestingly, still greatling improving baseline performance.
124
+
125
+ Table 3: Test performance on our symbolic analogy in the four different training regimes.
126
+
127
+ <table><tr><td>Training method</td><td>Test accuracy</td></tr><tr><td>LABC; explicit SMT</td><td>0.89</td></tr><tr><td>LABC; top-k</td><td>0.77</td></tr><tr><td>LABC;adversarial</td><td>0.62</td></tr><tr><td>Random candidate answers</td><td>0.25</td></tr></table>
128
+
129
+ Finally, we considered a method for generating candidates that did not depend on random generation (LABC-adversarial), but instead exploited a generator model. The generator was identical to the model used to solve the task except its input consisted only of the target set $V _ { t }$ , its output was a proposed candidate vector $c$ . This candidate vector was then passed to the original model, which solved the analogy problem as before. The generator model was trained to maximize the score given by the analogy model; i.e. it was trained to produce maximally confusing candidates. The overall objective therefore resembled a two-player minimax game (Goodfellow et al., 2014):
130
+
131
+ $$
132
+ \operatorname* { m i n } _ { \theta } \operatorname* { m a x } _ { \phi } \mathcal { L } ( f _ { \theta } ( S _ { 1 } , a _ { 1 } , S _ { 2 } , a _ { 2 } , g _ { \phi } ( S _ { 2 } ) ) )
133
+ $$
134
+
135
+ where $f _ { \theta }$ is the analogy model and $g _ { \phi }$ is the candidate proposal model. Using this method to propose candidates improved the model’s test performance from chance $( 2 5 \% )$ to approximately $6 2 \%$ .
136
+
137
+ These latter experiments show interesting links between LABC, GANs (Goodfellow et al., 2014), and possibly self-play (Silver et al., 2017). Indeed, the latter two approaches may be seen as automated methods that can approximate LABC. For example, in self-play, agents continuously challenge their opponents by proposing maximally challenging data. In the case of analogy, maximally challenging candidates may be those that are semantically-plausible rather than simply perceptually plausible. To our knowledge no prior work has demonstrated the effects of adversarial training regimes on out-of-distribution generalization in a controlled setting like the present context.
138
+
139
+ # 6 DISCUSSION
140
+
141
+ Our experiments show that simple neural networks can learn to make analogies with visual and symbolic inputs, but this is critically contingent on the way in which they are trained; during training, the correct answers should be contrasted with alternative incorrect answers that are plausible at the level of relations rather than simple perceptual attributes. This is consistent with the SMT of human analogy-making, which highlights the importance of inter-domain comparison at the level of abstract relational structures. At the same time, in the visual analogy domain, our model reflects the idea of analogy as closely intertwined with perception itself. We find that models that are trained by LABC to reason better by analogy are, perhaps surprisingly, also better able to extrapolate to a wider range of input values. Thus, making better analogies seems connected to the ability of models to perceive and represent their raw experience.
142
+
143
+ Recent literature has questioned whether neural networks can generalise in systematic ways to data drawn from outside the training distribution (Lake & Baroni, 2018). Our results show that neural networks are not fundamentally limited in this respect. Rather, the capacity needs to be coaxed out through careful learning. The data with which these networks learn, and the manner in which they learn it, are of paramount importance. Such a lesson is not new; indeed, the task of one-shot learning was thought to be difficult, if not impossible to perform using neural networks, but was nonetheless “solved” using appropriate training objectives, models, and optimization innovations (e.g., (Santoro et al., 2016; Finn et al., 2017)). The insights presented here may guide promising, general purpose approaches to obtain similar successes in flexible, generalisable abstract reasoning.
144
+
145
+ Earlier work on analogical reasoning in AI and cognitive science employed constructed symbolic stimuli or pre-processed perceptual input (Carbonell (1981); Hummel & Holyoak (1997); Hofstadter (1996); Larkey & Love (2003) inter alia; see Gentner & Forbus (2011) for a full review). More recenty, Reed et al. (2015) learn an analogy model on top of pre-trained visual embeddings of geometric figures and rendered graphics, while Mikolov et al. (2013) show how analogies can be made via non-parametric operations on vector-spaces of text-based word representations. While the input to our visual analogy model is less naturalistic than these latter cases, this permits clear control over the semantics of training or test data when designing and evaluating hypotheses. Our study is nonetheless the only that we are aware to demonstrates such flexible, generalisable analogy making in neural networks learning end-to-end from raw perception. It is therefore a proof of principle that even very basic neural networks have the potential for strong analogical reasoning and generalization.
146
+
147
+ As discussed in Sec. 5.3, in many machine-learning contexts it may not be possible to know exactly what a ‘good quality’ negative example looks like. The experiments there show that, in such cases, we might still achieve notable improvements in generalization via methods that learn to play the role of teacher by presenting alternatives to the main (student) model, as per Shafto et al. (2014). This underlines the fact that, for established learning algorithms involving negative examples such as (noise) contrastive estimation (Smith & Eisner, 2005; Gutmann & Hyvarinen, 2010) or negative ¨ sampling (Mikolov et al., 2013), the way in which negative examples are selected can be critical3. It may also help to explain the power of methods like self-play (Silver et al., 2016), in which a model is encouraged to continually challenge itself by posing increasingly difficult learning challenges.
148
+
149
+ Analogies as the functions of the mind To check whether a plate is on a table we can look at the space above the table, but to find out whether a picture is on a wall or a person is on a train, the equivalent check would fail. A single on function operating in the same way on all input domains could not explain these entirely divergent outcomes of function evaluation. On the other hand, it seems implausible that our cognitive system encodes the knowledge underpinning these apparently distinct applications of the on relation in entirely independent representations. The findings of this work argue instead for a different perspective; that a single concept of on is indeed exploited in each of the three cases, but that its meaning and representation is sufficiently abstract to permit flexible interaction with, and context-dependent adaptation to, each particular domain of application. If we equate this process with analogy-making, then analogies are something like the functions of the mind. We believe that greater focus on analogy may be critical for replicating human-like cognitive processes, and ultimately human-like intelligent behaviour, in machines. It may now be time to revisit the insights from past waves of AI research on analogy, while bringing to bear the tools, perspectives and computing power of the present day.
150
+
151
+ # ACKNOWLEDGMENTS
152
+
153
+ Thanks to Greg Wayne and Jay McClelland for very helpful comments, and to Emilia Santoro, Adam’s most important publication to date.
154
+
155
+ # REFERENCES
156
+
157
+ Ali M Ali. The use of positive and negative examples during instruction. Journal of instructional development, 5(1):2–7, 1981.
158
+
159
+ David Barrett, Felix Hill, Adam Santoro, Ari Morcos, and Timothy Lillicrap. Measuring abstract reasoning in neural networks. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, pp. 511–520, 2018.
160
+
161
+ Mikhail M Bongard. The problem of recognition. Fizmatgiz, Moscow, 1967.
162
+
163
+ Jaime G Carbonell. A computational model of analogical problem solving. In IJCAI, volume 81, pp. 147–152, 1981.
164
+
165
+ David J Chalmers, Robert M French, and Douglas R Hofstadter. High-level perception, representation, and analogy: A critique of artificial intelligence methodology. Journal of Experimental & Theoretical Artificial Intelligence, 4(3):185–211, 1992.
166
+
167
+ Barry J Devereux, Alex D Clarke, and Lorraine K Tyler. Integrated deep visual and semantic attractor neural networks predict fmri pattern-information along the ventral object processing pathway. bioRxiv, pp. 302406, 2018.
168
+
169
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017.
170
+
171
+ Franc¸ois Fleuret, Ting Li, Charles Dubout, Emma K Wampler, Steven Yantis, and Donald Geman. Comparing machines and humans on a visual categorization test. Proceedings of the National Academy of Sciences, 2011.
172
+
173
+ Kenneth D Forbus, Dedre Gentner, Arthur B Markman, and Ronald W Ferguson. Analogy just looks like high level perception: Why a domain-general approach to analogical mapping is right. Journal of Experimental & Theoretical Artificial Intelligence, 10(2):231–257, 1998.
174
+
175
+ David C Geary, Scott J Saults, Fan Liu, and Mary K Hoard. Sex differences in spatial cognition, computational fluency, and arithmetical reasoning. Journal of Experimental child psychology, 77 (4):337–353, 2000.
176
+
177
+ Dedre Gentner. Structure-mapping: A theoretical framework for analogy. Cognitive science, 7(2): 155–170, 1983.
178
+
179
+ Dedre Gentner and Kenneth D Forbus. Computational models of analogy. Wiley interdisciplinary reviews: cognitive science, 2(3):266–276, 2011.
180
+
181
+ 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.
182
+
183
+ Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle ¨ for unnormalized statistical models. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 297–304, 2010.
184
+
185
+ Douglas R Hofstadter. Fluid concepts and creative analogies. 1996.
186
+
187
+ Keith James Holyoak and Paul Thagard. Mental leaps. 1995.
188
+
189
+ John E Hummel and Keith J Holyoak. Distributed representations of structure: A theory of analogical access and mapping. Psychological review, 104(3):427, 1997.
190
+
191
+ Brenden Lake and Marco Baroni. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In International Conference on Machine Learning, pp. 2879–2888, 2018.
192
+
193
+ Levi B Larkey and Bradley C Love. Cab: Connectionist analogy builder. Cognitive Science, 27(5): 781–794, 2003.
194
+
195
+ Angeliki Lazaridou, Georgiana Dinu, and Marco Baroni. Hubness and pollution: Delving into cross-space mapping for zero-shot learning. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), volume 1, pp. 270–280, 2015.
196
+
197
+ Andrew Lovett and Kenneth Forbus. Modeling visual problem solving as analogical reasoning. Psychological review, 124(1):60, 2017.
198
+
199
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
200
+
201
+ Melanie Mitchell. Analogy-making as perception: A computer model. Mit Press, 1993.
202
+
203
+ Robert G Morrison, Keith J Holyoak, and Bao Troung. Working-memory modularity in analogical reasoning. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 23, 2001.
204
+
205
+ Jiang Qiu, Hong Li, Antao Chen, and Qinglin Zhang. The neural basis of analogical reasoning: An event-related potential study. Neuropsychologia, 46(12):3006–3013, 2008.
206
+
207
+ John C Raven. Manual for raven’s progressive matrices and vocabulary scales. Standard Progressive Matrices, 1983.
208
+
209
+ Scott E Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep visual analogy-making. In Advances in neural information processing systems, pp. 1252–1260, 2015.
210
+
211
+ Timothy T Rogers and James L McClelland. Semantic cognition: A parallel distributed processing approach. MIT press, 2004.
212
+
213
+ Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Metalearning with memory-augmented neural networks. In International conference on machine learning, pp. 1842–1850, 2016.
214
+
215
+ Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pp. 4974–4983, 2017.
216
+
217
+ Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 815–823, 2015.
218
+
219
+ Patrick Shafto, Noah D Goodman, and Thomas L Griffiths. A rational account of pedagogical reasoning: Teaching by, and learning from, examples. Cognitive psychology, 71:55–89, 2014.
220
+
221
+ David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484, 2016.
222
+
223
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354, 2017.
224
+
225
+ Harvey F Silver. Compare & contrast: Teaching comparative thinking to strengthen student learning. ASCD, 2010.
226
+
227
+ Linsey Smith and Dedre Gentner. The role of difference-detection in learning contrastive categories. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 36, 2014.
228
+
229
+ Noah A. Smith and Jason Eisner. Contrastive estimation: Training log-linear models on unlabeled data. In ACL, 2005.
230
+
231
+ Kilian Q Weinberger and Lawrence K Saul. Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10(Feb):207–244, 2009.
232
+
233
+ Jia-Jie Zhu and Jose Bento. Generative adversarial active learning. ´ arXiv preprint arXiv:1702.07956, 2017.
234
+
235
+ # 7 MODEL DETAILS
236
+
237
+ # 7.1 VISUAL ANALOGY PROBLEMS
238
+
239
+ The CNN was 4-layers deep, with 32 kernels per layer, each of size $3 \times 3$ with a stride of 2. Thus, each layer downsampled the image by half. Each panel in a question was $8 0 \times 8 0$ pixels, and greyscale. The panels were presented one at a time to the CNN to produce 9 total embeddings (3 for the source sequence, 2 for the target sequence, and 4 for each candidate). We then used these embeddings to compile 4 distinct inputs for the RNN. Each input was comprised of the source sequence embeddings, the target sequence embeddings, and a single candidate embedding, for a total of 6 embeddings per RNN-input sequence. We passed these independently to the RNN (with 64 hidden units), whose final output was then passed through a linear layer to produce a single scalar. 4 such passes (one for each source-target-candidate sequence) produced 4 scalar scores, denoting the model’s evaluation of the suitability of the particular candidate for the analogy problem. Finally, a softmax was computed across the scores to select the model’s “answer”. We used a cross entropy loss function and the Adam optimizer with a learning rate of $1 e ^ { - 4 }$ .
240
+
241
+ # 7.2 SYMBOLIC ANALOGY PROBLEMS
242
+
243
+ A given input consisted of a set of vectors 16-dimensional vectors. This set included 8 vectors comprising $S _ { 1 }$ , one vector $d _ { 1 }$ , 8 vectors comprising $S _ { 2 }$ , and 8 vectors comprising the set of candidate vectors $C$ . Vectors were given a single digit binary variable tag to denote whether they were members of the source or target set (augmenting their size to 17-dimensions).
244
+
245
+ We note that the entity vectors have 0’s in their unused dimensions. While this may make the problem easier, this experiment was designed to explicitly test domain-transfer generalization, moreso than an ability to discern the domains that need to be considered, by stripping away any difficulties in perception (i.e., in identifying the relevant domains), and seeing if the effect of LABC persists. Thus, at test time the model should have an easy time identifying the relevant dimensions, but it will never have seen the particular transfer from, say, dimension $i$ to dimension $j$ . So, even though it may have an easy time identifying and processing each dimension $i$ and $j$ , it may be incapable (without LABC) of integrating the information processed from each of these dimensions.
246
+
247
+ We employed a parallel processing architecture, similar to the visual analogy experiments, with a Relation Network (128 unit, 3 layer MLP with ReLU non-linearities for the $g _ { \theta }$ function and a similar 2-layer MLP for the $f _ { \phi }$ function) replacing the RNN core. Thus, a single model processed $( S _ { 1 } , d _ { 1 } , S _ { 2 } , c _ { n } )$ , with $c _ { n }$ being a different candidate vector from $C$ for each parallel pass. The model’s output was a single scalar denoting the score assigned to the particular candidate $c _ { n }$ – these scores were then passed through a softmax, and training proceeded using a cross entropy loss function. We used batch sizes of 32 and the Adam optimizer with a learning rate of $3 e ^ { - 4 }$ .
248
+
249
+ # 8 SUPPLEMENTARY RESULTS
250
+
251
+ Table 4: Results for the visual analogy task (RNN Model).
252
+
253
+ <table><tr><td rowspan="2">Extrapolation</td><td rowspan="2">Mean</td><td colspan="2">LABC Normal (Train)</td><td rowspan="2">Mix (Train) 0.94</td><td rowspan="2">LABC (Contrasting) 0.62</td><td rowspan="2">Normal (Contrasting) 0.43</td><td rowspan="2">Mix (Contrasting) 0.56</td><td rowspan="2">LABC (Normal) 0.45</td><td rowspan="2">Normal (Normal) 0.44</td><td rowspan="2">Mix (Normal) 0.39</td></tr><tr><td>0.94</td><td>(Train) 0.95</td></tr><tr><td rowspan="2">Interpolation</td><td>Std</td><td>0.005</td><td>0.007</td><td>0.005</td><td>0.02</td><td>0.009</td><td>0.012</td><td>0.01</td><td>0.01</td><td>0.04</td></tr><tr><td>Mean</td><td>0.94</td><td>0.97</td><td>0.94</td><td>0.93</td><td>0.45</td><td>0.89</td><td>0.65</td><td>0.89</td><td>0.87</td></tr><tr><td rowspan="2">Novel Domain Transfer</td><td>Std</td><td>0.003</td><td>0.003</td><td>0.003</td><td>0.004</td><td>0.004</td><td>0.008</td><td>0.01</td><td>0.006</td><td>0.01</td></tr><tr><td>Mean</td><td>0.88</td><td>0.83</td><td>0.85</td><td>0.87</td><td>0.48</td><td>0.88</td><td>0.7</td><td>0.82</td><td>0.79</td></tr><tr><td rowspan="2">Novel Domain (shape colour)</td><td>Std</td><td>0.015</td><td>0.01</td><td>0.015</td><td>0.005</td><td>0.02</td><td>0.009</td><td>0.01</td><td>0.01</td><td>0.02</td></tr><tr><td>Mean</td><td>0.87</td><td>0.84</td><td>0.85</td><td>0.78</td><td>0.50</td><td>0.80</td><td>0.51</td><td>0.61</td><td>0.58</td></tr><tr><td rowspan="2"></td><td>Std</td><td>0.007</td><td>0.008</td><td>0.007</td><td>0.004</td><td>0.02</td><td>0.006</td><td>0.02</td><td>0.01</td><td>0.02</td></tr><tr><td>Mean</td><td>0.87</td><td>0.85</td><td>0.86</td><td>0.76</td><td>0.45</td><td>0.75</td><td>0.5</td><td>0.57</td><td>0.54</td></tr><tr><td>Novel Domain (line type)</td><td>Std</td><td>0.006</td><td>0.004</td><td>0.006</td><td>0.02</td><td>0.01</td><td>0.02</td><td>0.02</td><td>0.02</td><td>0.01</td></tr></table>
254
+
255
+ # 9 MODEL COMPARISON DETAILS
256
+
257
+ Our application of a ResNet-50 processes all nine panels simultaneously (five analogy question panels along with the four multiple choice candidates) as a set of input channels. The Parallel ResNet-50 processes six panels simultaneously as input channels (five analogy question panels along with one multiple choice candidate) to produce a score. Then, similar to the RNN model described above, the candidate with the highest score is chosen by the model. The parallel relation network model also processes six panels simultaneously, using a convnet to obtain panel embeddings and using a relation network (Santoro et al., 2017) for computing a score. For full model architecture details, see the appendix.
258
+
259
+ Interestingly, the model with strongest generalisation is the parallel relation network, with a particularly high accuracy of $9 5 \%$ on the held out domain-transfer test set. This model was tested on a mixture of multiple choice candidates (that included semantically plausible and perceptually plausible candidates), indicating that models trained with LABC do not over-specialize to problem settings where only semantically plausible candidates are available. We also observe that during normal training, test set performance can oscillate between good solutions and poor solutions, indicated by the high standard deviation in the test set accuracy. These results imply that there are multiple model configurations that have good performance on the training set, but that only some of these configurations have the desired generalisation behaviour on the test set. LABC encourages a model to learn the configurations that generalise at the most abstract semantically-meaningful level, as desired.
260
+
261
+ We also note that the fact that a model trained in the normal regime performs marinally better than one trained using (normal+)LABC data on test questions involving perceptually-plausible candidates. We believe this may be understood as a symptom of the strong ability of deep learning models to specialize to the exact nature of the problems on which they are trained. The model comparison experiments demonstrate that this negligible but undesirable specialization effect is outweighed by the greater benefits of training with LABC on test questions with semantically-plausible candidates (i.e. those that require a higher-level semantic interpretation of the problem). Training with LABC will therefore yield a much higher expected performance, for instance, in cases where the exact details of the test questions is not known.
262
+
263
+ # 10 FURTHER DISCUSSION AND RELATED WORK
264
+
265
+ It is interesting to consider to what extent the effects reported in this work can transfer to a wider class of learning and reasoning problems beyond classical analogies. The importance of teaching concepts (to humans or models) by contrasting with negative examples is relatively established in both cognitive science (Shafto et al., 2014; Smith & Gentner, 2014) and educational research (Silver, 2010; Ali, 1981). Our results underline the importance of this principle when training modern neural networks to replicate human-like cognitive processes and reasoning from raw perceptual input. In cases where expert understanding of potential data exists, for instance in the case of active learning with human interaction, it provides a recipe for achieving more robust representations leading to far greater powers of generalization. We should aspire to select as negative examples those examples that are plausible considering the most abstract principles that describe the data.
266
+
267
+ A further notable property of our trained networks is the fact they can resolve analogies (even those involving with unfamiliar input domains) in a single rollout (forward pass) of a recurrent network. This propensity for fast reasoning has an interesting parallel with the fast and instinctive way in which humans can execute visual analogical reasoning (Morrison et al., 2001; Qiu et al., 2008).
268
+
269
+ # 10.1 DISTANCE METRIC APPROACHES
270
+
271
+ LBC shares similarities with distance metric approaches such as the large-margin nearest neighbor classifier (LMNN) (Weinberger & Saul, 2009), the triplet loss (Schroff et al., 2015), and others. In these approaches the goal is to transform inputs such that the distance between input embeddings from the same class is small, while the distance between input embeddings from different classes is large. Given these improved embeddings, classification can proceed using off-the-shelf classification algorithms, such as k-nearest neighbors. We note that these approaches emphasize the form of the loss function and the quality of the resultant input embeddings on subsequent classification. However, the goal of LBC is not to induce better classification per se, as it is in these methods. Instead, the goal is to induce out-of-distribution generalisation by virtue of improved abstract understanding of the underlying problem. It is unclear, for example, whether the embeddings produced by LMNN or the triplet loss are naturally amenable to this kind of generalisation, and as far as we are aware, it has not beed tested. Nonetheless, LBC places a critical focus on the nature, or quality of the data comprising the incorrect classes, and is agnostic to the exact nature of the loss function. Thus, it is possible to use previous approaches (e.g., LMNN or triplet loss, etc.) in conjunction with LBC, which we do not explore. LBC also shares similarities to recent generative adversarial active learning approaches (Zhu & Bento, 2017). However, these approaches do not explicitly point to the effects of the quality of incorrect samples to out-of-distribution generalisation, nor are we aware of any experiments that test abstract generalisation using networks trained with generative samples.
272
+
273
+ 11 VISUAL ANALOGY EXAMPLES
274
+
275
+ ![](images/6c887c97b9cf374c54da3f73b5c9688d5f16322940c730e406713c7b7ee7ac4f.jpg)
276
+ relation: AND source domain: shape position target domain: line type
277
+
278
+ ![](images/5f2940c8bccbf6a281a70dafdf5e30f94a29ecd20934768e3c8ec313c7058320.jpg)
279
+
280
+ relation: XOR source domain: line type target domain: line type relation: progression source domain: shape size target domain: shape size relation: OR source domain: shape type target domain: line colour relation: OR source domain: shape position target domain: shape size
281
+
282
+ ![](images/3f0bb90de47faf36c0b053a33f9795d651ffb76f012301c4dc10de841a3dd3f3.jpg)
283
+
284
+ ![](images/0931a3e0635c36f830dfaa37c1283d307845ad74c3871ca8e8b7880fac8ed6b4.jpg)
285
+
286
+ ![](images/d46e9282ad85f8519139ca5e3c7f2ff6bbb70c7c263d5fcbd2a60651efdfef53.jpg)
287
+
288
+ ![](images/fa4c6a8b57627aea0749d5b3a8bcdf34a6351aa8b7c94cc5ccc1e9f60a5d0887.jpg)
289
+
290
+ relation: OR source domain: line colour target domain: shape colour relation: XOR source domain: line colour target domain: shape colour relation: progression source domain: shape type target domain: line colour relation: OR source domain: shape type target domain: line colour relation: XOR source domain: line type target domain: line colour relation: XOR source domain: line type target domain: shape colour relation: XOR source domain: shape colour target domain: line colour
291
+
292
+ ![](images/1c7e8822122f4f39cdbb09af7f047629540224cf89eff12d4feeb9caaecfbf3d.jpg)
293
+
294
+ ![](images/df0def5f43ded006398eabe6729b769fa6081580b7c2d49964fafc6f72dee720.jpg)
295
+
296
+ ![](images/a2a3d9c3146c5fcfaa7281d33689119be5f2b626894ca62e044fa567d2026311.jpg)
297
+
298
+ ![](images/63848025d67f9248268dbae3646eac454147bda19faab36ddbf0549696269385.jpg)
299
+ Figure 7: Examples of visual analogy problems. These visual analogy examples have been selected from the interpolation test set. The correct multiple choice candidate for each problem is highlighted in green. In the top half, we have randomly chosen examples where our RNN model trained with LABC selects the correct answer. In the bottom half, we have randomly selected examples where our RNN model trained with LABC chooses the incorrect candidates (highlighted in red). The performance of this model on the interpolation test set is $9 3 \%$ .
300
+
301
+ ![](images/31d6452f69f457157c84c164b6f03aa362fe3f77dd16d56511d795e47db27157.jpg)
302
+
303
+ ![](images/1088ca6d84fbd4378d0c8f914943b05dd27d26104b0abecd668bde6cc06f21ca.jpg)
parse/train/SylLYsCcFm/SylLYsCcFm_content_list.json ADDED
@@ -0,0 +1,1882 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING TO MAKE ANALOGIES BY CONTRASTING ABSTRACT RELATIONAL STRUCTURE ",
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": "Felix Hill\\*, Adam Santoro∗, David G. T. Barrett, Ari Morcos & Tim Lillicrap Deepmind, London {felixhill,adamsantoro,barrettdavid,arimorcos,countzero}@google.com ",
17
+ "bbox": [
18
+ 181,
19
+ 170,
20
+ 836,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Analogical reasoning has been a principal focus of various waves of AI research. Analogy is particularly challenging for machines because it requires relational structures to be represented such that they can be flexibly applied across diverse domains of experience. Here, we study how analogical reasoning can be induced in neural networks that learn to perceive and reason about raw visual data. We find that the critical factor for inducing such a capacity is not an elaborate architecture, but rather, careful attention to the choice of data and the manner in which it is presented to the model. The most robust capacity for analogical reasoning is induced when networks learn analogies by contrasting abstract relational structures in their input domains, a training method that uses only the input data to force models to learn about important abstract features. Using this technique we demonstrate capacities for complex, visual and symbolic analogy making and generalisation in even the simplest neural network architectures. ",
40
+ "bbox": [
41
+ 233,
42
+ 280,
43
+ 766,
44
+ 460
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 487,
55
+ 334,
56
+ 502
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The ability to make analogies – that is, to flexibly map familiar relations from one domain of experience to another – is a fundamental ingredient of human intelligence and creativity (Gentner, 1983; Hofstadter, 1996; Hummel & Holyoak, 1997; Lovett & Forbus, 2017). As noted, for instance, by Holyoak & Thagard (1995), analogies gave Roman scientists a deeper understanding of sound when they leveraged knowledge of a familiar source domain (water waves in the sea) to better understand the structure of an unfamiliar target domain (acoustics). The Romans ‘aligned’ relational principles about water waves (periodicity, bending round corners, rebounding off solids) to phenomena observed in acoustics, in spite of the numerous perceptual and physical differences between water and sound. This flexible alignment, or mapping, of relational structure between source and target domains, independent of perceptual congruence, is a prototypical example of analogy making. ",
63
+ "bbox": [
64
+ 174,
65
+ 518,
66
+ 825,
67
+ 657
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "It has proven particularly challenging to replicate processes of analogical thought in machines. Many classical or symbolic AI models lack the flexibility to apply predicates or operations across diverse domains, particularly those that may have never previously been observed. It is natural to consider, however, whether the strengths of modern neural network-based models can be exploited to solve difficult analogical problems, given their capacity to represent stimuli at different levels of abstraction and to enable flexible, context-dependent computation over noisy and ambiguous inputs. ",
74
+ "bbox": [
75
+ 174,
76
+ 665,
77
+ 825,
78
+ 747
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this work we demonstrate that well-known neural network architectures can indeed learn to make analogies with remarkable generality and flexibility. This ability, however, is critically dependent on a method of training we call learning analogies by contrasting abstract relational structure (LABC). We show that simple architectures can be trained using this approach to apply abstract relations to never-before-seen source-target domain mappings, and even to entirely unfamiliar target domains. ",
85
+ "bbox": [
86
+ 174,
87
+ 755,
88
+ 825,
89
+ 825
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Our work differs from previous computational models of analogy in two important ways. First, unlike previous neural network models of analogy, we optimize a single model to perform both stimulus representation and cross-domain mapping jointly. This allows us to explore the potential benefit of interactions between perception, representation and inter-domain alignment, a question of some debate in the analogy literature (Forbus et al., 1998). Second, we do not instantiate an explicit cognitive theory or analogy-like computation in our model architecture, but instead use this theoretical insight to inform the way in which the model is trained. ",
96
+ "bbox": [
97
+ 174,
98
+ 832,
99
+ 823,
100
+ 901
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/8b03221091c0f3eef96e3dc0f1d096073b5ff4ded47879e16e92bfcc2ede1bbc.jpg",
107
+ "image_caption": [
108
+ "Figure 1: A visual analogy problem. In this example, the model must (1) identify a relation (Progression ) on a particular domain ( shape quantity ) in the source sequence (top), and (2) apply it to a different domain ( line color ) in order to find the candidate answer panel that correctly completes target sequence (bottom). There are seven possible domains and four possible relations in the dataset. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 176,
113
+ 99,
114
+ 825,
115
+ 290
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 173,
124
+ 430,
125
+ 823,
126
+ 459
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 ANALOGIES AS HIGH-LEVEL PERCEPTION AND STRUCTURE MAPPING",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 171,
136
+ 511,
137
+ 779,
138
+ 525
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Perhaps the best-known explanation of human analogical reasoning is Structure Mapping Theory (SMT) (Gentner, 1983). SMT emphasizes the distinction between two means of comparing domains of experience; analogy and similarity. According to SMT, two domains are similar if they share many attributes (i.e. properties that can be expressed with a one-place predicate like BLUE(sea) ), whereas they are analogous if they share few attributes but many relations (i.e. properties expressed by many-place predicates like BENDS-AROUND(sea, solid-objects) ). SMT assumes that our perceptions can be represented as collections of attributes and structured relations, and that these representations do not necessarily depend on the subsequent mappings that use them. ",
145
+ "bbox": [
146
+ 173,
147
+ 559,
148
+ 825,
149
+ 674
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "The High-Level Perception (HLP) theory of analogy (Chalmers et al., 1992; Mitchell, 1993) instead construes analogy as a function of tightly-interacting perceptual and reasoning processes, positing that the creation of stimulus representations and the alignment of those representations are mutually dependent. For example, when making an analogy between the sea and acoustics, we might represent certain perceptual features (the fact that the sea appears to be moving) and ignore others (the fact that the sea looks blue), because the particular comparison that we make depends on location and direction, and not on colour. ",
156
+ "bbox": [
157
+ 173,
158
+ 680,
159
+ 825,
160
+ 777
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "In this work we aim to induce flexible analogy making in neural networks by drawing inspiration from both SMT and HLP. The perceptual and domain-comparison components of our models are connected and jointly optimised end-to-end, which, as posited by HLP, reflects a high degree of interaction between perception and domain comparison. On the other hand, the key insight of this paper, LABC, is directly motivated by SMT. We find that LABC greatly enhances the ability of our networks to resolve analogies in a generalisable way by encouraging them to compare inputs at the more abstract level of relations rather than the less abstract level of attributes. LABC organizes the training data such that the inference and mapping of relational structure is essential for good performance. This means that problems cannot be resolved by considering mere similarity of attributes, or even less appropriately, via spurious surface-level statistics or memorization. ",
167
+ "bbox": [
168
+ 174,
169
+ 785,
170
+ 825,
171
+ 924
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "3 VISUAL ANALOGY PROBLEMS ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 176,
181
+ 102,
182
+ 452,
183
+ 117
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Our first experiments involve greyscale visual scenes similar to those previously applied to test both human reasoning ability (Raven, 1983; Geary et al., 2000) and reasoning in machine learning models (Bongard, 1967; Fleuret et al., 2011; Barrett et al., 2018). Each scene is composed of a source sequence, consisting of three panels (distinct images), a target sequence, consisting of two panels, and four candidate answer panels (Fig. 1). In the source sequence a relation $r$ is instantiated, where $r$ is one of four possible relations from the set $R = \\left\\{ \\begin{array} { r l r l } \\end{array} \\right.$ XOR , OR , AND Progression $\\}$ . Models must then consider the two panels in the target sequence, together with the four candidate answer panels, to determine which answer panel best completes the target sequence – by analogy with the source sequence – so that $r$ is also instantiated (Fig. 2). ",
190
+ "bbox": [
191
+ 173,
192
+ 140,
193
+ 825,
194
+ 270
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "image",
200
+ "img_path": "images/9c82dc2f464a457fc9b84da7f1aeffa91069718361d96431eef47cdbaf473c98.jpg",
201
+ "image_caption": [
202
+ "Figure 2: In LABC, the multiple choice candidates are all semantically plausible, in that they are all consistent completions of the target domain using some relation. Only the correct answer uses the same relation as the source domain, so, the only way to solve the problem is to use analogical reasoning. In contrast, perceptually plausible incorrect candidates are consistent with the target domain attributes but not the relations and all other possible candidates are inconsistent with the target domain relation and attributes. "
203
+ ],
204
+ "image_footnote": [],
205
+ "bbox": [
206
+ 184,
207
+ 308,
208
+ 470,
209
+ 529
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "The notion of domain is critical to analogy. In our visual analogy task, a relation can be instantiated in one of seven different domains: line type , line colour , shape type , shape colour , shape size , shape quantity and shape position (see Fig. 1 and Appendix Fig. 7 for examples). Within a panel of a given domain, the attributes present in the scene (such as the colour of the shapes or the positions of the lines) can take one of 10 possible values. A question in the dataset is therefore defined by a relation $r$ , a domain $d _ { s }$ on which $r$ is instantiated in the source sequence, a set of values for the source-domain $v _ { 1 } ^ { s } \\cdot \\cdot \\cdot v _ { 3 } ^ { s }$ , a target domain $d _ { t }$ , values for the target-domain $v _ { 1 } ^ { t } \\cdot \\cdot \\cdot v _ { 3 } ^ { t }$ , the position $k \\in \\{ 1 \\cdots 4 \\}$ of the correct answer among the answer candidate panels and whatever is instantiated in the three incorrect candidate answer panels $c _ { i } , i \\neq k$ . Note, however, that the values of certain domain attributes that are not relevant to a given question (such as the colour of shapes in the shape quantity domain) still have to be selected, and can vary freely. Thus, despite the small number of latent factors involved, the space of possible questions is of the order of ten million. ",
216
+ "bbox": [
217
+ 490,
218
+ 276,
219
+ 825,
220
+ 636
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "The interplay between relations, domains and values makes it possible to construct questions that require increasing degrees of abstraction and analogymaking. The simplest case involves a relation $r$ , a domain $d _ { s } \\ = = \\ d _ { t }$ , and values $v _ { i } ^ { s } ~ = = ~ v _ { i } ^ { t }$ that are common to both source and target sequences (Fig 3a). To solve such a question a model must identify a candidate answer panel that results in a copy of the source sequence in the target sequence. This does not seem to require any meaningful understanding of $r$ , nor any particular analogy-making. Somewhat greater abstraction and analogymaking is required for questions involving a single domain $\\scriptstyle ( d _ { s } = = d _ { t }$ ), but different values in the source and target sequence $v _ { i } ^ { s } \\neq v _ { i } ^ { t }$ (Fig 3b). In this case the model must learn that, in a given domain, the relation $r$ can apply to a range of different values. Finally, in the full analogy questions considered in this study, the relation $r$ can be instantiated on different domains in the source and target sequences (i.e. $d _ { t } \\neq d _ { s }$ ; Fig 3c). These questions require a sensitivity to the idea that a single relation $r$ can be applied in different (but related) ways to different domains of experience.1 ",
227
+ "bbox": [
228
+ 491,
229
+ 643,
230
+ 825,
231
+ 753
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "",
238
+ "bbox": [
239
+ 173,
240
+ 753,
241
+ 825,
242
+ 864
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "3.1 METHODS ",
249
+ "text_level": 1,
250
+ "bbox": [
251
+ 174,
252
+ 103,
253
+ 287,
254
+ 117
255
+ ],
256
+ "page_idx": 3
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "Our model consisted of a simple perceptual front-end – a convolutional neural network (CNN) – which provided input for a recurrent neural network (RNN) by producing embeddings for each image panel independently. The RNN processed the source sequence embeddings, the target sequence embeddings, and a single candidate embedding, to produce a scalar score. Four such passes (one for each source-target-candidate set) produced four scalar scores, quantifying how the model evaluated the suitability of the particular candidate. Finally, a softmax was computed across the scores to select the model’s ‘answer’. Further model details are in appendix 7.1. ",
261
+ "bbox": [
262
+ 173,
263
+ 128,
264
+ 826,
265
+ 227
266
+ ],
267
+ "page_idx": 3
268
+ },
269
+ {
270
+ "type": "image",
271
+ "img_path": "images/03afe4004d338e78df0096b9270a3cb40e2485857265fe4ad9fe922d7eb4938f.jpg",
272
+ "image_caption": [
273
+ "Figure 3: (a), (b), (c) Three types of visual reasoning questions. Each question requires a different degree of analogy making, with the question on the right demanding the most fluid and abstract application of the underlying relation. (d) Learning analogies by contrasting. When learning by contrasting, each answer choice is consistent with a relational structure in the target sequence. Only the correct answer choice is consistent with relations in both the source and target domains. This forces the network to consider the source sequence to infer the correct structure. "
274
+ ],
275
+ "image_footnote": [],
276
+ "bbox": [
277
+ 192,
278
+ 238,
279
+ 803,
280
+ 660
281
+ ],
282
+ "page_idx": 3
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Learning Analogies By Contrasting (LABC) In the default setting of our data generator – the normal training regime – for a question involving source domain $d _ { s }$ , target domain $d _ { t }$ and relation $r$ , the candidate answers can contain any (incorrect) values chosen at random from $d _ { t }$ (Fig. 2). By selecting incorrect candidate answers from the same domain $d _ { t }$ as the correct answer, we ensure that they are perceptually plausible, so that the problem cannot be solved trivially by matching the domain of the question to one of the answers. Even so, the baseline training regime may allow models to find perceptual correlations that allow it to arrive at the correct answer consistently over the training data. We can make this less likely by instead training the model to contrast abstract relational structure – the LABC regime – simply by ensuring that incorrect answers are both perceptually and semantically plausible (Fig. 2). More specifically, incorrect answers are selected from $d _ { t }$ such that each answer $c _ { i }$ completes a decoy relation $\\boldsymbol { \\hat { r } _ { i } } \\neq \\boldsymbol { r }$ with the target sequence. LABC ensures that, during training, models have no alternative but to first observe a relation $r$ in the source domain and consider and complete the same relation in the target domain - i.e. to execute a full analogical reasoning step.2 ",
287
+ "bbox": [
288
+ 173,
289
+ 784,
290
+ 825,
291
+ 924
292
+ ],
293
+ "page_idx": 3
294
+ },
295
+ {
296
+ "type": "image",
297
+ "img_path": "images/5e3309230dca0505df3671e356defa265364450c63ddf00a0765bd20568366af.jpg",
298
+ "image_caption": [
299
+ "Figure 4: Results of the three experiments in the visual analogy domain for a network that learns from random candidate answers, by contrasting abstract structures or both types of question interleaved. Bar heights depict the means across eight seeds in each condition; standard errors were $< 0 . 0 1$ for each condition (not shown – see the appendix Table 4 for the values) "
300
+ ],
301
+ "image_footnote": [],
302
+ "bbox": [
303
+ 173,
304
+ 106,
305
+ 821,
306
+ 405
307
+ ],
308
+ "page_idx": 4
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "",
313
+ "bbox": [
314
+ 174,
315
+ 500,
316
+ 825,
317
+ 541
318
+ ],
319
+ "page_idx": 4
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Note that in all experiments reported below, we generated 600,000 training questions, 10,000 validation questions and test sets of 100,000 questions. These data will be published with the paper. ",
324
+ "bbox": [
325
+ 176,
326
+ 547,
327
+ 823,
328
+ 577
329
+ ],
330
+ "page_idx": 4
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "3.2 EXPERIMENT 1: NOVEL DOMAIN TRANSFER ",
335
+ "text_level": 1,
336
+ "bbox": [
337
+ 174,
338
+ 594,
339
+ 526,
340
+ 608
341
+ ],
342
+ "page_idx": 4
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "A key aspect of analogy-making is the process of comparing or aligning two domains. We can measure how well models acquire this ability by testing them on analogies involving unfamiliar source domain target domain transfers. For each of the seven possible target domains $d _ { t }$ we randomly selected a source domain $d _ { s } \\ne d _ { t }$ , yielding a test set of seven domain transfer pairs $[ d _ { s } d _ { t } ]$ . Our models were then trained on questions involving one of the remaining $7 \\times 7 - 7 = 4 2$ domain transfer pairs. For a test question involving domains $d _ { s }$ and $d _ { t }$ , each model was therefore familiar with $d _ { s }$ and $d _ { t }$ but had not been trained to make an analogy from $d _ { s }$ to $d _ { t }$ . ",
347
+ "bbox": [
348
+ 174,
349
+ 621,
350
+ 825,
351
+ 718
352
+ ],
353
+ "page_idx": 4
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "We found that a network can indeed learn to apply relations by analogy involving novel domain transfers, but that this ability crucially relies on learning by contrasting. The effect is strong; for the most focused test questions involving semantically plausible (contrasting) candidate answers the model trained by contrasting achieves $83 \\%$ accuracy (depending on the held-out domain), versus $58 \\%$ for a model trained with randomly-chosen candidate answers. ",
358
+ "bbox": [
359
+ 174,
360
+ 726,
361
+ 825,
362
+ 795
363
+ ],
364
+ "page_idx": 4
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "3.3 EXPERIMENT 2: NOVEL TARGET DOMAIN ",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 174,
372
+ 813,
373
+ 508,
374
+ 827
375
+ ],
376
+ "page_idx": 4
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Humans can use analogies to better understand comparatively unfamiliar domains, as in the Roman explanation of acoustics by analogy with the sea. To capture this scenario, we held out two domains ( line type and shape colour , chosen at random) from the model’s training data, and ensured that each test question involved one of these domains. To make sense of the test questions, a model must therefore (presumably) learn to represent the relations in the dataset in a sufficiently general way that this knowledge can be applied to completely novel domains. Any model that resolves such problems successfully must therefore exploit any (rudimentary) perceptual similarity between the test domain and the domains that were observed during training. For instance, the process of applying a relation in the shape colour domain may recruit similar feature detectors to those required when applying it to the line colour domain. ",
381
+ "bbox": [
382
+ 176,
383
+ 839,
384
+ 823,
385
+ 882
386
+ ],
387
+ "page_idx": 4
388
+ },
389
+ {
390
+ "type": "table",
391
+ "img_path": "images/ee7cf291ece3eb6d65ac621ae8b3c95affe3e7dfe4967c01cb5ee77d41775f37.jpg",
392
+ "table_caption": [
393
+ "Table 1: Test performance of a selection of visual reasoning network architectures trained in the normal regime and with LABC on the Novel Domain Transfer experiment. The test questions include those with both semantically-plausible and merely perceptually-plausible incorrect answers. Mean $\\left( + \\mathbf { S } \\mathbf { D } \\right)$ for 10 models in each condition with different random initialisations. "
394
+ ],
395
+ "table_footnote": [],
396
+ "table_body": "<table><tr><td></td><td>LABC training</td><td>Normal training</td></tr><tr><td>RNN (this paper)</td><td>0.90 (0.01)</td><td>0.79 (0.09)</td></tr><tr><td>ResNet-50</td><td>0.82 (0.02)</td><td>0.77 (0.10)</td></tr><tr><td>Parallel ResNet-50</td><td>0.89 (0.01)</td><td>0.75 (0.14)</td></tr><tr><td>Parallel Relation Net (WReN)</td><td>0.95 (0.017)</td><td>0.72 (0.21)</td></tr></table>",
397
+ "bbox": [
398
+ 259,
399
+ 101,
400
+ 738,
401
+ 174
402
+ ],
403
+ "page_idx": 5
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "",
408
+ "bbox": [
409
+ 174,
410
+ 268,
411
+ 825,
412
+ 371
413
+ ],
414
+ "page_idx": 5
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Surprisingly, we found that the network can indeed learn to make sense of the unfamiliar target domains in the test questions, although again this capacity is boosted by LABC (Fig 4b). Accuracy in the LABC condition on the most focused (contrasting) test questions is lower than in the Experiment 1 $( \\sim 8 0 \\%$ , depending on the held-out domain), but well above the model trained with random answer candidates $( \\sim 6 0 \\% )$ ). Interestingly, a model trained on semantically-plausible sets of candidate answers (LABC) performs somewhat worse on test questions whose answers are merely perceptuallyplausible than a model trained in that (normal) regime. This deficit can be largely recovered by interleaving random-answer and contrasting candidates during training. ",
419
+ "bbox": [
420
+ 174,
421
+ 377,
422
+ 825,
423
+ 489
424
+ ],
425
+ "page_idx": 5
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "3.3.1 EXPERIMENT 3: NOVEL DOMAIN VALUES ",
430
+ "text_level": 1,
431
+ "bbox": [
432
+ 174,
433
+ 507,
434
+ 516,
435
+ 521
436
+ ],
437
+ "page_idx": 5
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Another way in which a domain can be unfamiliar to a network is if it involves attributes whose values have not been observed during training. Since each of the seven (source and target) domains our analogy problems permits 10 values, we can measure interpolation by withholding values 1, 3, 5, 7 and 9 and measure extrapolation by withholding values 6, 7, 8, 9 and 10. To extrapolate effectively, a model must therefore be able to resolve questions at test time involving lines or shapes that are darker, larger, more-sided or simply more numerous than those in its training questions. ",
442
+ "bbox": [
443
+ 174,
444
+ 531,
445
+ 825,
446
+ 616
447
+ ],
448
+ "page_idx": 5
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "In the case of interpolation, we found that a model trained with random candidates performs very poorly on the more challenging contrasting test questions $( \\mathrm { F i g ~ 4 c ~ 4 5 \\% }$ vs $93 \\%$ for LABC), which suggests that models trained in the normal regime overfit to a strategy that bears no resemblance to human-like analogical reasoning. We verified this hypothesis by running an analysis where we presented only the target domain sequence and candidate answers to the model. After a long period of training in the normal regime, this ‘source-blind’ model achieved $9 7 \\%$ accuracy, which confirms that it indeed finds short-cut solutions that do not require analogical mapping. In contrast, the accuracy of the source-blind model in the LBAC condition converged at $32 \\%$ . ",
453
+ "bbox": [
454
+ 174,
455
+ 622,
456
+ 825,
457
+ 734
458
+ ],
459
+ "page_idx": 5
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "We also found, somewhat surprisingly, that LBAC results in a (modest) improvement in how well models can extrapolate to novel input values (Fig 4c); a model trained on questions with both contrasting and random candidate answers performs significantly better than the normal model on the test questions with contrasting candidate answers $62 \\%$ vs. $43 \\%$ ), and mantains comparable performance on test questions with random candidate answers ( $45 \\%$ vs. $44 \\%$ ). ",
464
+ "bbox": [
465
+ 174,
466
+ 741,
467
+ 825,
468
+ 810
469
+ ],
470
+ "page_idx": 5
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "3.3.2 EXPERIMENT 4: MODEL COMPARISON ",
475
+ "text_level": 1,
476
+ "bbox": [
477
+ 176,
478
+ 828,
479
+ 496,
480
+ 843
481
+ ],
482
+ "page_idx": 5
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Finally, we explore the extent to which LABC improves generalistion for different various different network architectures, taking as a guide the models considered in Barrett et al. (2018). We run the Novel Domain Transfer experiment with each of these models, trained using both LABC and in the normal training regime. We measure generalisation on a mixed set comprised equally of test questions with semantically-plausible incorrect answer candidates (matching LABC training) and those with merely perceptually-plausible incorrect answers (matching normal training). All models perform better at novel domain transfer when trained with LABC (Table 1). This confirms that our method does not depend on the use of a specific architecture. Further, the fact that LABC yields better performance than normal training on a balanced, mixed test set shows that it is the most effective way to train models in problem instances where the exact details of test questions may be unknown. ",
487
+ "bbox": [
488
+ 174,
489
+ 853,
490
+ 823,
491
+ 924
492
+ ],
493
+ "page_idx": 5
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "",
498
+ "bbox": [
499
+ 174,
500
+ 103,
501
+ 825,
502
+ 174
503
+ ],
504
+ "page_idx": 6
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "3.4 CONCLUSION ",
509
+ "text_level": 1,
510
+ "bbox": [
511
+ 174,
512
+ 190,
513
+ 310,
514
+ 205
515
+ ],
516
+ "page_idx": 6
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "These results demonstrate that LABC increases the ability of models to generalize beyond the distribution of their training data. This effect is observed for the prototypical analogical processes involving novel domain mappings and unfamiliar target domains (Experiments 1 & 2). Interestingly, it also results in moderate improvements to how well models extrapolate to perceptual input outside the range of their training experience (Experiment 3). ",
521
+ "bbox": [
522
+ 174,
523
+ 217,
524
+ 825,
525
+ 287
526
+ ],
527
+ "page_idx": 6
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "4 EMERGENT RELATIONAL REPRESENTATIONS ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 174,
535
+ 309,
536
+ 575,
537
+ 324
538
+ ],
539
+ "page_idx": 6
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "To understand the mechanisms that support this generalisation we analysed neural activity in models trained with LABC compared to models that were not. First, we took the RNN hidden state activity just prior to the input of the candidate panel. For a model trained via LABC, we found that these activities clustered according to relation type (e.g. progression ) more-so than domain (e.g., shape colour ) (Fig 5a, Table 2). In contrast, for models trained normally the relation",
544
+ "bbox": [
545
+ 173,
546
+ 340,
547
+ 415,
548
+ 540
549
+ ],
550
+ "page_idx": 6
551
+ },
552
+ {
553
+ "type": "table",
554
+ "img_path": "images/ca51b7ec17f81566b5629eb94b887994659a0e6d187dffb08d47473b62814894.jpg",
555
+ "table_caption": [],
556
+ "table_footnote": [],
557
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Cluster</td><td rowspan=1 colspan=1>LABC</td><td rowspan=1 colspan=1>Normal Training</td></tr><tr><td rowspan=1 colspan=1>inter-relation dist.inter-domain dist.</td><td rowspan=1 colspan=1>5.2(± 2.2)1.8 (± 1.8)</td><td rowspan=1 colspan=1>4.4 (± 2.0)2.0 (± 1.8)</td></tr></table>",
558
+ "bbox": [
559
+ 441,
560
+ 357,
561
+ 808,
562
+ 402
563
+ ],
564
+ "page_idx": 6
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Table 2: Mean $\\mathbf { ( + S D ) }$ distance between clusters of RNN hidden state representations. LABC seems to promote greater distinctions between different abstract relations in the representation space of models. Since the maximum euclidean distance between two points in a 64 dimensional unit cube is P64i 12 = 8, the distances that we observe between relational representations are close to the maximum possible. ",
569
+ "bbox": [
570
+ 426,
571
+ 411,
572
+ 825,
573
+ 520
574
+ ],
575
+ "page_idx": 6
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "based clusters overlapped to a greater extent (Fig 5b, Table 2). Thus, LABC seems to encourage the model to represent relations more explicitly, which could in turn explain its capacity to generalise by analogy to novel domains. ",
580
+ "bbox": [
581
+ 174,
582
+ 541,
583
+ 823,
584
+ 583
585
+ ],
586
+ "page_idx": 6
587
+ },
588
+ {
589
+ "type": "image",
590
+ "img_path": "images/184c0d754b73faa611c0580c4fb0c482ee946c8f8af1e9a596e6fa668f875e02.jpg",
591
+ "image_caption": [
592
+ "Figure 5: LABC supports emergent relational representations. Principle component analysis (PCA) (right) and t-SNE analysis (left) of RNN hidden states. Each dot represents a (64-dimensional) state coloured according to the relation type and domain of the corresponding question. "
593
+ ],
594
+ "image_footnote": [],
595
+ "bbox": [
596
+ 181,
597
+ 595,
598
+ 825,
599
+ 724
600
+ ],
601
+ "page_idx": 6
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "5 SYMBOLIC ANALOGY PROBLEMS ",
606
+ "text_level": 1,
607
+ "bbox": [
608
+ 176,
609
+ 809,
610
+ 478,
611
+ 824
612
+ ],
613
+ "page_idx": 6
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "Many of the most important studies of analogy in AI involve symbolic or numerical patterns (Hofstadter, 1996), and various neural models of semantic cognition more generally also operate on discrete, feature-based representations of input concepts (Rogers & McClelland, 2004; Devereux et al., 2018). To verify our findings in this setting, we implemented a symbolic analogy task based on feature-based stimuli. This more controlled domain allows to show that the construction of appropriate incorrect answer candidates can be learned in a proposal model that is trained jointly with a model that learns to contrast the candidates, widening the potential applications of LABC to task settings where we lack a clear understanding of the underlying abstract relational structure (Sec 5.3). ",
618
+ "bbox": [
619
+ 174,
620
+ 840,
621
+ 825,
622
+ 924
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "",
629
+ "bbox": [
630
+ 173,
631
+ 103,
632
+ 823,
633
+ 132
634
+ ],
635
+ "page_idx": 7
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "In our task, inputs are $D$ -dimensional vectors $v$ of discrete, integer-valued features (analogous to semantic properties such as furry or carnivorous in previous work). Across any set $V : v \\in V$ of stimuli, each feature dimension then corresponds to a domain (the domains of skin-type or dietary habits in the present example). To simulate a space of abstract relational structures on these domains, we simply take a set $F$ whose elements $f$ are common mathematical functions operating on sets: MIN , MAX , ARGMIN , ARGMAX , SUM and RANGE . Abstract relations in this context can be stated, for instance, as $\\mathrm { { S U M } } \\left( 1 , \\quad 2 , \\quad 3 ; \\quad 6 \\right)$ . Given a such a function $f$ , a set $V$ of stimulus vectors, and a random choice of domain $d$ , we can compute a $D$ -dimensional) answer vector $\\boldsymbol { a } _ { [ V , d , f ] }$ as the result of applying $f$ to $d$ on $V$ (i.e. executing $f$ on the $d$ -th dimension of each $v \\in \\dot { V } .$ ). It is now simple to randomly construct an analogy question in this setting. We select a function $f$ , source $d _ { s }$ and target $d _ { t }$ domains at random, randomly generate source $V _ { s }$ and target $V _ { t }$ stimuli. We then apply $f$ to $V _ { s }$ on $d _ { s }$ and to $V _ { t }$ on $d _ { t }$ to generate the source and target domain solutions, $a _ { [ V _ { s } , d _ { s } , f ] }$ and $a _ { [ V _ { t } , d _ { t } , f ] }$ , respectively. The inputs $V _ { s }$ , $d _ { s }$ , $a _ { [ V _ { s } , d _ { s } , f ] }$ , $V _ { t }$ and $v _ { t }$ are passed to the model, together with a ${ \\dot { d } } \\times k$ matrix of alternative answer choices that includes $a _ { [ V _ { t } , d _ { t } , f ] }$ $k$ is a fixed number of choices, four in the visual analogies presented previously). We then require the model to select which of these alternatives is the true completion of the analogy $a _ { [ V _ { t } , d _ { t } , f ] }$ . As in the visual analogy tasks, to resolve such a question the model must detect an abstract relationship in the input domain $d _ { s }$ , that explains the connection between the source stimuli $V _ { s }$ and the answer vector $a _ { [ V _ { s } , d _ { s } , f ] }$ . Once this achieved, the model must evaluate the function $f$ that describes this relationship on the source domain $d _ { t }$ with sufficient accuracy that it can identify the result of that evaluation $a _ { [ V _ { t } , d _ { t } , f ] }$ in the context of $k$ distracting alternative (incorrect) answers. ",
640
+ "bbox": [
641
+ 174,
642
+ 138,
643
+ 825,
644
+ 433
645
+ ],
646
+ "page_idx": 7
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "We study generalization in this task by restricting the particular ordered domain mappings $d _ { s } d _ { t }$ that are observed in the training and test set; for example, aligning structure from domain 3 to domain 1 may be required in the test set, but may have never been seen before in the training set. While we withhold particular alignments (e.g., $3 1 \\AA$ ), we ensure that all dimensions are aligned ‘out-of’ $( 3 )$ and ‘into’ $( 1 )$ ) at least once in the training set. Note that this setup is directly analogous to the ‘Novel Domain Transfer’ experiment in the visual analogy problems (Sec. 3.2). ",
651
+ "bbox": [
652
+ 174,
653
+ 439,
654
+ 825,
655
+ 522
656
+ ],
657
+ "page_idx": 7
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "5.1 METHODS ",
662
+ "text_level": 1,
663
+ "bbox": [
664
+ 174,
665
+ 540,
666
+ 285,
667
+ 554
668
+ ],
669
+ "page_idx": 7
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "The high level model structure was similar to that of the previous experiments: candidates and their context were processed independently to produce scores, which we put through a softmax and trained with a cross-entropy loss. See appendix 7.2 for further details.Producing appropriate candidate answers $C$ to train by contrasting abstract relational structures (LABC) is straightforward. For a problem involving function $f$ , we sample functions ${ \\hat { f } } \\sim F \\setminus \\{ f \\}$ at random and populate $C$ with the $c _ { \\hat { f } }$ , where $c _ { \\hat { f } } = \\hat { f } ( V _ { t } )$ . In other words, $c _ { \\hat { f } }$ adheres to some relational structure, but just not the structure apparent in the source set. Thus, to determine which candidate is correct, the model necessarily has to first infer the particular relational structure of the source set. Because the implementation of this training regime requires knowledge of the underlying structure of the data (i.e. the space of all functions), we refer to this condition as LABC-explicit SMT. ",
674
+ "bbox": [
675
+ 174,
676
+ 568,
677
+ 826,
678
+ 713
679
+ ],
680
+ "page_idx": 7
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "5.2 EXPERIMENT 1: NOVEL DOMAIN TRANSFER ",
685
+ "text_level": 1,
686
+ "bbox": [
687
+ 174,
688
+ 731,
689
+ 519,
690
+ 744
691
+ ],
692
+ "page_idx": 7
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "We replicated the main findings of the visual analogy task (Experiment 1 S3.2): models trained without LABC performed at just above chance, whereas models trained with LABC achieved accuracies of just under $9 0 \\%$ . Note that we tested models with candidates generated using the functions in $F$ not equal to the function used to define the relation in the source set. If instead we were to generate random vectors as candidates, the models could simply learn and embed all possible $f \\in F$ into their weights, and choose the correct answer by process of elimination; any candidate that does not satisfy $f ( \\bar { V _ { t } } )$ for any $f$ is necessarily an incorrect candidate. This method does not require any analogical reasoning, since the model can outright ignore the relation instantiated in the source set, which is precisely a type of back-door solution characteristic of neural network approaches. These results are intuitive at first glance – a model that cannot use back-door solutions, and instead is required to be more discerning at training time will perform better at test time. However, this intuition is less obvious when testing demands novel domain transfer. In other words, it is not obvious that a model that has learned to discern the various functions in $F$ would necessarily be able to flexibly apply the functions in ways never-before-seen, as is demanded in the test set. ",
697
+ "bbox": [
698
+ 173,
699
+ 757,
700
+ 825,
701
+ 922
702
+ ],
703
+ "page_idx": 7
704
+ },
705
+ {
706
+ "type": "image",
707
+ "img_path": "images/b94acb5874c6e39cf563f113ea5c3a87d38dfa5d911a8e6a40555e0844afe0cf.jpg",
708
+ "image_caption": [
709
+ "Figure 6: Structure alignment and mapping on symbolic, numeric data. In this task a particular structure is implemented as a set-function, which in the depicted example is $f = \\operatorname* { m i n }$ . For example, the “answer” $a _ { 1 }$ could denote the minimum size from the sizes in the source symbolic vector set. The model must then evaluate the minimum for the “aligned” domain, which in the depicted case is intensity. In this depicted example the candidate does not adhere to this structure, so it would be an incorrect candidate. The correct candidate would look like the answer vector to the right of the image. "
710
+ ],
711
+ "image_footnote": [],
712
+ "bbox": [
713
+ 174,
714
+ 99,
715
+ 821,
716
+ 228
717
+ ],
718
+ "page_idx": 8
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "",
723
+ "bbox": [
724
+ 173,
725
+ 354,
726
+ 823,
727
+ 383
728
+ ],
729
+ "page_idx": 8
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "5.3 EXPERIMENT 2: NOVEL DOMAIN TRANSFER WITH AUTOMATIC LABC METHODS ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 173,
737
+ 402,
738
+ 772,
739
+ 416
740
+ ],
741
+ "page_idx": 8
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "We explored ways to replicate the results of Experiment 1 without hand-crafting the candidate answers. For our first method, (LABC-topk) we uniformly sampled integer values for the $c \\in C$ from within some range $( 0 , 6 4 )$ rather than computing them as $\\hat { f } ( V _ { t } )$ for some ${ \\hat { f } } \\in F$ . As mentioned previously, such a method should encourage back-door memorization based solutions, since for most candidates, $c \\neq { \\hat { f } } ( V _ { t } )$ for any ${ \\hat { f } } \\in F$ . To counter this, we randomly generated a set of candidates, performed a forward pass with each, selected the top- $k$ scalar scores produced by the model, and backpropagated gradients only through these $k$ candidates. Intuitively, this forces the model to train on only those candidates that are maximally confusing. Thus, we rely on random generation to chose our contrasting candidates, and rely on the model itself to sub-select them from within the randomly generated pool. This method improves performance from chance $( 2 5 \\% )$ to approximately $7 7 \\%$ . ",
746
+ "bbox": [
747
+ 173,
748
+ 429,
749
+ 826,
750
+ 573
751
+ ],
752
+ "page_idx": 8
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "It is possible that this top- $k$ method simply exploited random sampling to stumble on the candidates that would have otherwise been hand-crafted. Indeed, for more difficult problems (involving real images, for example) a random generator may not produce anything resembling data from the underlying distribution, making this method less suitable. We thus replicated the top- $k$ experiment, but actively excluded randomly generated candidates that satisfied $c = { \\hat { f } } ( V _ { t } )$ for some ${ \\hat { f } } \\in F$ . Performance fell to $4 3 \\%$ , confirming this intuition, but interestingly, still greatling improving baseline performance. ",
757
+ "bbox": [
758
+ 174,
759
+ 580,
760
+ 508,
761
+ 750
762
+ ],
763
+ "page_idx": 8
764
+ },
765
+ {
766
+ "type": "table",
767
+ "img_path": "images/01f180bb5d40c50b56af59bd680d2a2dd753710ab687aac1bff5adfc4f4b2772.jpg",
768
+ "table_caption": [
769
+ "Table 3: Test performance on our symbolic analogy in the four different training regimes. "
770
+ ],
771
+ "table_footnote": [],
772
+ "table_body": "<table><tr><td>Training method</td><td>Test accuracy</td></tr><tr><td>LABC; explicit SMT</td><td>0.89</td></tr><tr><td>LABC; top-k</td><td>0.77</td></tr><tr><td>LABC;adversarial</td><td>0.62</td></tr><tr><td>Random candidate answers</td><td>0.25</td></tr></table>",
773
+ "bbox": [
774
+ 519,
775
+ 597,
776
+ 828,
777
+ 670
778
+ ],
779
+ "page_idx": 8
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Finally, we considered a method for generating candidates that did not depend on random generation (LABC-adversarial), but instead exploited a generator model. The generator was identical to the model used to solve the task except its input consisted only of the target set $V _ { t }$ , its output was a proposed candidate vector $c$ . This candidate vector was then passed to the original model, which solved the analogy problem as before. The generator model was trained to maximize the score given by the analogy model; i.e. it was trained to produce maximally confusing candidates. The overall objective therefore resembled a two-player minimax game (Goodfellow et al., 2014): ",
784
+ "bbox": [
785
+ 173,
786
+ 755,
787
+ 825,
788
+ 853
789
+ ],
790
+ "page_idx": 8
791
+ },
792
+ {
793
+ "type": "equation",
794
+ "img_path": "images/b01df5a7d430866ee4bc5cf31c2121d2c836ed486169027ab71ba8e4fad56878.jpg",
795
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } \\operatorname* { m a x } _ { \\phi } \\mathcal { L } ( f _ { \\theta } ( S _ { 1 } , a _ { 1 } , S _ { 2 } , a _ { 2 } , g _ { \\phi } ( S _ { 2 } ) ) )\n$$",
796
+ "text_format": "latex",
797
+ "bbox": [
798
+ 367,
799
+ 862,
800
+ 629,
801
+ 886
802
+ ],
803
+ "page_idx": 8
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "where $f _ { \\theta }$ is the analogy model and $g _ { \\phi }$ is the candidate proposal model. Using this method to propose candidates improved the model’s test performance from chance $( 2 5 \\% )$ to approximately $6 2 \\%$ . ",
808
+ "bbox": [
809
+ 176,
810
+ 895,
811
+ 821,
812
+ 924
813
+ ],
814
+ "page_idx": 8
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "These latter experiments show interesting links between LABC, GANs (Goodfellow et al., 2014), and possibly self-play (Silver et al., 2017). Indeed, the latter two approaches may be seen as automated methods that can approximate LABC. For example, in self-play, agents continuously challenge their opponents by proposing maximally challenging data. In the case of analogy, maximally challenging candidates may be those that are semantically-plausible rather than simply perceptually plausible. To our knowledge no prior work has demonstrated the effects of adversarial training regimes on out-of-distribution generalization in a controlled setting like the present context. ",
819
+ "bbox": [
820
+ 174,
821
+ 103,
822
+ 825,
823
+ 202
824
+ ],
825
+ "page_idx": 9
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "6 DISCUSSION ",
830
+ "text_level": 1,
831
+ "bbox": [
832
+ 174,
833
+ 220,
834
+ 310,
835
+ 237
836
+ ],
837
+ "page_idx": 9
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "Our experiments show that simple neural networks can learn to make analogies with visual and symbolic inputs, but this is critically contingent on the way in which they are trained; during training, the correct answers should be contrasted with alternative incorrect answers that are plausible at the level of relations rather than simple perceptual attributes. This is consistent with the SMT of human analogy-making, which highlights the importance of inter-domain comparison at the level of abstract relational structures. At the same time, in the visual analogy domain, our model reflects the idea of analogy as closely intertwined with perception itself. We find that models that are trained by LABC to reason better by analogy are, perhaps surprisingly, also better able to extrapolate to a wider range of input values. Thus, making better analogies seems connected to the ability of models to perceive and represent their raw experience. ",
842
+ "bbox": [
843
+ 174,
844
+ 252,
845
+ 825,
846
+ 391
847
+ ],
848
+ "page_idx": 9
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "Recent literature has questioned whether neural networks can generalise in systematic ways to data drawn from outside the training distribution (Lake & Baroni, 2018). Our results show that neural networks are not fundamentally limited in this respect. Rather, the capacity needs to be coaxed out through careful learning. The data with which these networks learn, and the manner in which they learn it, are of paramount importance. Such a lesson is not new; indeed, the task of one-shot learning was thought to be difficult, if not impossible to perform using neural networks, but was nonetheless “solved” using appropriate training objectives, models, and optimization innovations (e.g., (Santoro et al., 2016; Finn et al., 2017)). The insights presented here may guide promising, general purpose approaches to obtain similar successes in flexible, generalisable abstract reasoning. ",
853
+ "bbox": [
854
+ 173,
855
+ 398,
856
+ 825,
857
+ 523
858
+ ],
859
+ "page_idx": 9
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Earlier work on analogical reasoning in AI and cognitive science employed constructed symbolic stimuli or pre-processed perceptual input (Carbonell (1981); Hummel & Holyoak (1997); Hofstadter (1996); Larkey & Love (2003) inter alia; see Gentner & Forbus (2011) for a full review). More recenty, Reed et al. (2015) learn an analogy model on top of pre-trained visual embeddings of geometric figures and rendered graphics, while Mikolov et al. (2013) show how analogies can be made via non-parametric operations on vector-spaces of text-based word representations. While the input to our visual analogy model is less naturalistic than these latter cases, this permits clear control over the semantics of training or test data when designing and evaluating hypotheses. Our study is nonetheless the only that we are aware to demonstrates such flexible, generalisable analogy making in neural networks learning end-to-end from raw perception. It is therefore a proof of principle that even very basic neural networks have the potential for strong analogical reasoning and generalization. ",
864
+ "bbox": [
865
+ 174,
866
+ 530,
867
+ 825,
868
+ 683
869
+ ],
870
+ "page_idx": 9
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "As discussed in Sec. 5.3, in many machine-learning contexts it may not be possible to know exactly what a ‘good quality’ negative example looks like. The experiments there show that, in such cases, we might still achieve notable improvements in generalization via methods that learn to play the role of teacher by presenting alternatives to the main (student) model, as per Shafto et al. (2014). This underlines the fact that, for established learning algorithms involving negative examples such as (noise) contrastive estimation (Smith & Eisner, 2005; Gutmann & Hyvarinen, 2010) or negative ¨ sampling (Mikolov et al., 2013), the way in which negative examples are selected can be critical3. It may also help to explain the power of methods like self-play (Silver et al., 2016), in which a model is encouraged to continually challenge itself by posing increasingly difficult learning challenges. ",
875
+ "bbox": [
876
+ 174,
877
+ 690,
878
+ 825,
879
+ 815
880
+ ],
881
+ "page_idx": 9
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Analogies as the functions of the mind To check whether a plate is on a table we can look at the space above the table, but to find out whether a picture is on a wall or a person is on a train, the equivalent check would fail. A single on function operating in the same way on all input domains could not explain these entirely divergent outcomes of function evaluation. On the other hand, it seems implausible that our cognitive system encodes the knowledge underpinning these apparently distinct applications of the on relation in entirely independent representations. The findings of this work argue instead for a different perspective; that a single concept of on is indeed exploited in each of the three cases, but that its meaning and representation is sufficiently abstract to permit flexible interaction with, and context-dependent adaptation to, each particular domain of application. If we equate this process with analogy-making, then analogies are something like the functions of the mind. We believe that greater focus on analogy may be critical for replicating human-like cognitive processes, and ultimately human-like intelligent behaviour, in machines. It may now be time to revisit the insights from past waves of AI research on analogy, while bringing to bear the tools, perspectives and computing power of the present day. ",
886
+ "bbox": [
887
+ 174,
888
+ 830,
889
+ 823,
890
+ 901
891
+ ],
892
+ "page_idx": 9
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "",
897
+ "bbox": [
898
+ 174,
899
+ 103,
900
+ 825,
901
+ 229
902
+ ],
903
+ "page_idx": 10
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "ACKNOWLEDGMENTS ",
908
+ "text_level": 1,
909
+ "bbox": [
910
+ 176,
911
+ 246,
912
+ 326,
913
+ 257
914
+ ],
915
+ "page_idx": 10
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Thanks to Greg Wayne and Jay McClelland for very helpful comments, and to Emilia Santoro, Adam’s most important publication to date. ",
920
+ "bbox": [
921
+ 174,
922
+ 268,
923
+ 825,
924
+ 296
925
+ ],
926
+ "page_idx": 10
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "REFERENCES ",
931
+ "text_level": 1,
932
+ "bbox": [
933
+ 174,
934
+ 102,
935
+ 287,
936
+ 118
937
+ ],
938
+ "page_idx": 11
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Ali M Ali. The use of positive and negative examples during instruction. Journal of instructional development, 5(1):2–7, 1981. ",
943
+ "bbox": [
944
+ 173,
945
+ 126,
946
+ 823,
947
+ 155
948
+ ],
949
+ "page_idx": 11
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "David Barrett, Felix Hill, Adam Santoro, Ari Morcos, and Timothy Lillicrap. Measuring abstract reasoning in neural networks. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, pp. 511–520, 2018. ",
954
+ "bbox": [
955
+ 174,
956
+ 162,
957
+ 825,
958
+ 207
959
+ ],
960
+ "page_idx": 11
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Mikhail M Bongard. The problem of recognition. Fizmatgiz, Moscow, 1967. ",
965
+ "bbox": [
966
+ 173,
967
+ 215,
968
+ 678,
969
+ 232
970
+ ],
971
+ "page_idx": 11
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Jaime G Carbonell. A computational model of analogical problem solving. In IJCAI, volume 81, pp. 147–152, 1981. ",
976
+ "bbox": [
977
+ 169,
978
+ 239,
979
+ 825,
980
+ 270
981
+ ],
982
+ "page_idx": 11
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "David J Chalmers, Robert M French, and Douglas R Hofstadter. High-level perception, representation, and analogy: A critique of artificial intelligence methodology. Journal of Experimental & Theoretical Artificial Intelligence, 4(3):185–211, 1992. ",
987
+ "bbox": [
988
+ 176,
989
+ 279,
990
+ 823,
991
+ 321
992
+ ],
993
+ "page_idx": 11
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Barry J Devereux, Alex D Clarke, and Lorraine K Tyler. Integrated deep visual and semantic attractor neural networks predict fmri pattern-information along the ventral object processing pathway. bioRxiv, pp. 302406, 2018. ",
998
+ "bbox": [
999
+ 176,
1000
+ 330,
1001
+ 825,
1002
+ 372
1003
+ ],
1004
+ "page_idx": 11
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017. ",
1009
+ "bbox": [
1010
+ 171,
1011
+ 382,
1012
+ 823,
1013
+ 411
1014
+ ],
1015
+ "page_idx": 11
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Franc¸ois Fleuret, Ting Li, Charles Dubout, Emma K Wampler, Steven Yantis, and Donald Geman. Comparing machines and humans on a visual categorization test. Proceedings of the National Academy of Sciences, 2011. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 420,
1023
+ 826,
1024
+ 463
1025
+ ],
1026
+ "page_idx": 11
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Kenneth D Forbus, Dedre Gentner, Arthur B Markman, and Ronald W Ferguson. Analogy just looks like high level perception: Why a domain-general approach to analogical mapping is right. Journal of Experimental & Theoretical Artificial Intelligence, 10(2):231–257, 1998. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 472,
1034
+ 826,
1035
+ 515
1036
+ ],
1037
+ "page_idx": 11
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "David C Geary, Scott J Saults, Fan Liu, and Mary K Hoard. Sex differences in spatial cognition, computational fluency, and arithmetical reasoning. Journal of Experimental child psychology, 77 (4):337–353, 2000. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 523,
1045
+ 826,
1046
+ 568
1047
+ ],
1048
+ "page_idx": 11
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Dedre Gentner. Structure-mapping: A theoretical framework for analogy. Cognitive science, 7(2): 155–170, 1983. ",
1053
+ "bbox": [
1054
+ 171,
1055
+ 575,
1056
+ 825,
1057
+ 604
1058
+ ],
1059
+ "page_idx": 11
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Dedre Gentner and Kenneth D Forbus. Computational models of analogy. Wiley interdisciplinary reviews: cognitive science, 2(3):266–276, 2011. ",
1064
+ "bbox": [
1065
+ 168,
1066
+ 614,
1067
+ 826,
1068
+ 643
1069
+ ],
1070
+ "page_idx": 11
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "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. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 651,
1078
+ 826,
1079
+ 695
1080
+ ],
1081
+ "page_idx": 11
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle ¨ for unnormalized statistical models. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 297–304, 2010. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 704,
1089
+ 825,
1090
+ 747
1091
+ ],
1092
+ "page_idx": 11
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Douglas R Hofstadter. Fluid concepts and creative analogies. 1996. ",
1097
+ "bbox": [
1098
+ 173,
1099
+ 756,
1100
+ 617,
1101
+ 772
1102
+ ],
1103
+ "page_idx": 11
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Keith James Holyoak and Paul Thagard. Mental leaps. 1995. ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 780,
1111
+ 576,
1112
+ 796
1113
+ ],
1114
+ "page_idx": 11
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "John E Hummel and Keith J Holyoak. Distributed representations of structure: A theory of analogical access and mapping. Psychological review, 104(3):427, 1997. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 805,
1122
+ 825,
1123
+ 834
1124
+ ],
1125
+ "page_idx": 11
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Brenden Lake and Marco Baroni. Generalization without systematicity: On the compositional skills of sequence-to-sequence recurrent networks. In International Conference on Machine Learning, pp. 2879–2888, 2018. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 843,
1133
+ 825,
1134
+ 886
1135
+ ],
1136
+ "page_idx": 11
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Levi B Larkey and Bradley C Love. Cab: Connectionist analogy builder. Cognitive Science, 27(5): 781–794, 2003. ",
1141
+ "bbox": [
1142
+ 173,
1143
+ 895,
1144
+ 823,
1145
+ 924
1146
+ ],
1147
+ "page_idx": 11
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Angeliki Lazaridou, Georgiana Dinu, and Marco Baroni. Hubness and pollution: Delving into cross-space mapping for zero-shot learning. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), volume 1, pp. 270–280, 2015. ",
1152
+ "bbox": [
1153
+ 174,
1154
+ 103,
1155
+ 825,
1156
+ 160
1157
+ ],
1158
+ "page_idx": 12
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Andrew Lovett and Kenneth Forbus. Modeling visual problem solving as analogical reasoning. Psychological review, 124(1):60, 2017. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 167,
1166
+ 823,
1167
+ 195
1168
+ ],
1169
+ "page_idx": 12
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 204,
1177
+ 825,
1178
+ 233
1179
+ ],
1180
+ "page_idx": 12
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Melanie Mitchell. Analogy-making as perception: A computer model. Mit Press, 1993. ",
1185
+ "bbox": [
1186
+ 171,
1187
+ 239,
1188
+ 748,
1189
+ 256
1190
+ ],
1191
+ "page_idx": 12
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Robert G Morrison, Keith J Holyoak, and Bao Troung. Working-memory modularity in analogical reasoning. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 23, 2001. ",
1196
+ "bbox": [
1197
+ 176,
1198
+ 263,
1199
+ 825,
1200
+ 306
1201
+ ],
1202
+ "page_idx": 12
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Jiang Qiu, Hong Li, Antao Chen, and Qinglin Zhang. The neural basis of analogical reasoning: An event-related potential study. Neuropsychologia, 46(12):3006–3013, 2008. ",
1207
+ "bbox": [
1208
+ 171,
1209
+ 314,
1210
+ 823,
1211
+ 343
1212
+ ],
1213
+ "page_idx": 12
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "John C Raven. Manual for raven’s progressive matrices and vocabulary scales. Standard Progressive Matrices, 1983. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 351,
1221
+ 823,
1222
+ 378
1223
+ ],
1224
+ "page_idx": 12
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Scott E Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep visual analogy-making. In Advances in neural information processing systems, pp. 1252–1260, 2015. ",
1229
+ "bbox": [
1230
+ 174,
1231
+ 387,
1232
+ 823,
1233
+ 416
1234
+ ],
1235
+ "page_idx": 12
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Timothy T Rogers and James L McClelland. Semantic cognition: A parallel distributed processing approach. MIT press, 2004. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 424,
1243
+ 823,
1244
+ 452
1245
+ ],
1246
+ "page_idx": 12
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Metalearning with memory-augmented neural networks. In International conference on machine learning, pp. 1842–1850, 2016. ",
1251
+ "bbox": [
1252
+ 174,
1253
+ 459,
1254
+ 825,
1255
+ 502
1256
+ ],
1257
+ "page_idx": 12
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pp. 4974–4983, 2017. ",
1262
+ "bbox": [
1263
+ 174,
1264
+ 511,
1265
+ 826,
1266
+ 554
1267
+ ],
1268
+ "page_idx": 12
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 815–823, 2015. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 560,
1276
+ 825,
1277
+ 604
1278
+ ],
1279
+ "page_idx": 12
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Patrick Shafto, Noah D Goodman, and Thomas L Griffiths. A rational account of pedagogical reasoning: Teaching by, and learning from, examples. Cognitive psychology, 71:55–89, 2014. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 611,
1287
+ 825,
1288
+ 641
1289
+ ],
1290
+ "page_idx": 12
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484, 2016. ",
1295
+ "bbox": [
1296
+ 176,
1297
+ 647,
1298
+ 825,
1299
+ 690
1300
+ ],
1301
+ "page_idx": 12
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354, 2017. ",
1306
+ "bbox": [
1307
+ 174,
1308
+ 698,
1309
+ 825,
1310
+ 741
1311
+ ],
1312
+ "page_idx": 12
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Harvey F Silver. Compare & contrast: Teaching comparative thinking to strengthen student learning. ASCD, 2010. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 748,
1320
+ 823,
1321
+ 777
1322
+ ],
1323
+ "page_idx": 12
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Linsey Smith and Dedre Gentner. The role of difference-detection in learning contrastive categories. In Proceedings of the Annual Meeting of the Cognitive Science Society, volume 36, 2014. ",
1328
+ "bbox": [
1329
+ 173,
1330
+ 785,
1331
+ 823,
1332
+ 814
1333
+ ],
1334
+ "page_idx": 12
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Noah A. Smith and Jason Eisner. Contrastive estimation: Training log-linear models on unlabeled data. In ACL, 2005. ",
1339
+ "bbox": [
1340
+ 173,
1341
+ 821,
1342
+ 823,
1343
+ 851
1344
+ ],
1345
+ "page_idx": 12
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Kilian Q Weinberger and Lawrence K Saul. Distance metric learning for large margin nearest neighbor classification. Journal of Machine Learning Research, 10(Feb):207–244, 2009. ",
1350
+ "bbox": [
1351
+ 176,
1352
+ 858,
1353
+ 821,
1354
+ 887
1355
+ ],
1356
+ "page_idx": 12
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Jia-Jie Zhu and Jose Bento. Generative adversarial active learning. ´ arXiv preprint arXiv:1702.07956, 2017. ",
1361
+ "bbox": [
1362
+ 176,
1363
+ 895,
1364
+ 823,
1365
+ 922
1366
+ ],
1367
+ "page_idx": 12
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "7 MODEL DETAILS ",
1372
+ "text_level": 1,
1373
+ "bbox": [
1374
+ 176,
1375
+ 102,
1376
+ 344,
1377
+ 117
1378
+ ],
1379
+ "page_idx": 13
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "7.1 VISUAL ANALOGY PROBLEMS ",
1384
+ "text_level": 1,
1385
+ "bbox": [
1386
+ 176,
1387
+ 133,
1388
+ 421,
1389
+ 147
1390
+ ],
1391
+ "page_idx": 13
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "The CNN was 4-layers deep, with 32 kernels per layer, each of size $3 \\times 3$ with a stride of 2. Thus, each layer downsampled the image by half. Each panel in a question was $8 0 \\times 8 0$ pixels, and greyscale. The panels were presented one at a time to the CNN to produce 9 total embeddings (3 for the source sequence, 2 for the target sequence, and 4 for each candidate). We then used these embeddings to compile 4 distinct inputs for the RNN. Each input was comprised of the source sequence embeddings, the target sequence embeddings, and a single candidate embedding, for a total of 6 embeddings per RNN-input sequence. We passed these independently to the RNN (with 64 hidden units), whose final output was then passed through a linear layer to produce a single scalar. 4 such passes (one for each source-target-candidate sequence) produced 4 scalar scores, denoting the model’s evaluation of the suitability of the particular candidate for the analogy problem. Finally, a softmax was computed across the scores to select the model’s “answer”. We used a cross entropy loss function and the Adam optimizer with a learning rate of $1 e ^ { - 4 }$ . ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 160,
1399
+ 825,
1400
+ 325
1401
+ ],
1402
+ "page_idx": 13
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "7.2 SYMBOLIC ANALOGY PROBLEMS ",
1407
+ "text_level": 1,
1408
+ "bbox": [
1409
+ 178,
1410
+ 343,
1411
+ 442,
1412
+ 357
1413
+ ],
1414
+ "page_idx": 13
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "A given input consisted of a set of vectors 16-dimensional vectors. This set included 8 vectors comprising $S _ { 1 }$ , one vector $d _ { 1 }$ , 8 vectors comprising $S _ { 2 }$ , and 8 vectors comprising the set of candidate vectors $C$ . Vectors were given a single digit binary variable tag to denote whether they were members of the source or target set (augmenting their size to 17-dimensions). ",
1419
+ "bbox": [
1420
+ 174,
1421
+ 369,
1422
+ 825,
1423
+ 424
1424
+ ],
1425
+ "page_idx": 13
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "We note that the entity vectors have 0’s in their unused dimensions. While this may make the problem easier, this experiment was designed to explicitly test domain-transfer generalization, moreso than an ability to discern the domains that need to be considered, by stripping away any difficulties in perception (i.e., in identifying the relevant domains), and seeing if the effect of LABC persists. Thus, at test time the model should have an easy time identifying the relevant dimensions, but it will never have seen the particular transfer from, say, dimension $i$ to dimension $j$ . So, even though it may have an easy time identifying and processing each dimension $i$ and $j$ , it may be incapable (without LABC) of integrating the information processed from each of these dimensions. ",
1430
+ "bbox": [
1431
+ 174,
1432
+ 431,
1433
+ 825,
1434
+ 542
1435
+ ],
1436
+ "page_idx": 13
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "We employed a parallel processing architecture, similar to the visual analogy experiments, with a Relation Network (128 unit, 3 layer MLP with ReLU non-linearities for the $g _ { \\theta }$ function and a similar 2-layer MLP for the $f _ { \\phi }$ function) replacing the RNN core. Thus, a single model processed $( S _ { 1 } , d _ { 1 } , S _ { 2 } , c _ { n } )$ , with $c _ { n }$ being a different candidate vector from $C$ for each parallel pass. The model’s output was a single scalar denoting the score assigned to the particular candidate $c _ { n }$ – these scores were then passed through a softmax, and training proceeded using a cross entropy loss function. We used batch sizes of 32 and the Adam optimizer with a learning rate of $3 e ^ { - 4 }$ . ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 550,
1444
+ 825,
1445
+ 647
1446
+ ],
1447
+ "page_idx": 13
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "8 SUPPLEMENTARY RESULTS ",
1452
+ "text_level": 1,
1453
+ "bbox": [
1454
+ 176,
1455
+ 667,
1456
+ 431,
1457
+ 684
1458
+ ],
1459
+ "page_idx": 13
1460
+ },
1461
+ {
1462
+ "type": "table",
1463
+ "img_path": "images/331b00f3d6c97c929a562fc669f0f621134dc8ad5e6d9891a0dc758c01cdda50.jpg",
1464
+ "table_caption": [
1465
+ "Table 4: Results for the visual analogy task (RNN Model). "
1466
+ ],
1467
+ "table_footnote": [],
1468
+ "table_body": "<table><tr><td rowspan=\"2\">Extrapolation</td><td rowspan=\"2\">Mean</td><td colspan=\"2\">LABC Normal (Train)</td><td rowspan=\"2\">Mix (Train) 0.94</td><td rowspan=\"2\">LABC (Contrasting) 0.62</td><td rowspan=\"2\">Normal (Contrasting) 0.43</td><td rowspan=\"2\">Mix (Contrasting) 0.56</td><td rowspan=\"2\">LABC (Normal) 0.45</td><td rowspan=\"2\">Normal (Normal) 0.44</td><td rowspan=\"2\">Mix (Normal) 0.39</td></tr><tr><td>0.94</td><td>(Train) 0.95</td></tr><tr><td rowspan=\"2\">Interpolation</td><td>Std</td><td>0.005</td><td>0.007</td><td>0.005</td><td>0.02</td><td>0.009</td><td>0.012</td><td>0.01</td><td>0.01</td><td>0.04</td></tr><tr><td>Mean</td><td>0.94</td><td>0.97</td><td>0.94</td><td>0.93</td><td>0.45</td><td>0.89</td><td>0.65</td><td>0.89</td><td>0.87</td></tr><tr><td rowspan=\"2\">Novel Domain Transfer</td><td>Std</td><td>0.003</td><td>0.003</td><td>0.003</td><td>0.004</td><td>0.004</td><td>0.008</td><td>0.01</td><td>0.006</td><td>0.01</td></tr><tr><td>Mean</td><td>0.88</td><td>0.83</td><td>0.85</td><td>0.87</td><td>0.48</td><td>0.88</td><td>0.7</td><td>0.82</td><td>0.79</td></tr><tr><td rowspan=\"2\">Novel Domain (shape colour)</td><td>Std</td><td>0.015</td><td>0.01</td><td>0.015</td><td>0.005</td><td>0.02</td><td>0.009</td><td>0.01</td><td>0.01</td><td>0.02</td></tr><tr><td>Mean</td><td>0.87</td><td>0.84</td><td>0.85</td><td>0.78</td><td>0.50</td><td>0.80</td><td>0.51</td><td>0.61</td><td>0.58</td></tr><tr><td rowspan=\"2\"></td><td>Std</td><td>0.007</td><td>0.008</td><td>0.007</td><td>0.004</td><td>0.02</td><td>0.006</td><td>0.02</td><td>0.01</td><td>0.02</td></tr><tr><td>Mean</td><td>0.87</td><td>0.85</td><td>0.86</td><td>0.76</td><td>0.45</td><td>0.75</td><td>0.5</td><td>0.57</td><td>0.54</td></tr><tr><td>Novel Domain (line type)</td><td>Std</td><td>0.006</td><td>0.004</td><td>0.006</td><td>0.02</td><td>0.01</td><td>0.02</td><td>0.02</td><td>0.02</td><td>0.01</td></tr></table>",
1469
+ "bbox": [
1470
+ 80,
1471
+ 370,
1472
+ 893,
1473
+ 593
1474
+ ],
1475
+ "page_idx": 14
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "9 MODEL COMPARISON DETAILS ",
1480
+ "text_level": 1,
1481
+ "bbox": [
1482
+ 176,
1483
+ 102,
1484
+ 460,
1485
+ 117
1486
+ ],
1487
+ "page_idx": 15
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Our application of a ResNet-50 processes all nine panels simultaneously (five analogy question panels along with the four multiple choice candidates) as a set of input channels. The Parallel ResNet-50 processes six panels simultaneously as input channels (five analogy question panels along with one multiple choice candidate) to produce a score. Then, similar to the RNN model described above, the candidate with the highest score is chosen by the model. The parallel relation network model also processes six panels simultaneously, using a convnet to obtain panel embeddings and using a relation network (Santoro et al., 2017) for computing a score. For full model architecture details, see the appendix. ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 135,
1495
+ 825,
1496
+ 246
1497
+ ],
1498
+ "page_idx": 15
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Interestingly, the model with strongest generalisation is the parallel relation network, with a particularly high accuracy of $9 5 \\%$ on the held out domain-transfer test set. This model was tested on a mixture of multiple choice candidates (that included semantically plausible and perceptually plausible candidates), indicating that models trained with LABC do not over-specialize to problem settings where only semantically plausible candidates are available. We also observe that during normal training, test set performance can oscillate between good solutions and poor solutions, indicated by the high standard deviation in the test set accuracy. These results imply that there are multiple model configurations that have good performance on the training set, but that only some of these configurations have the desired generalisation behaviour on the test set. LABC encourages a model to learn the configurations that generalise at the most abstract semantically-meaningful level, as desired. ",
1503
+ "bbox": [
1504
+ 174,
1505
+ 252,
1506
+ 825,
1507
+ 392
1508
+ ],
1509
+ "page_idx": 15
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "We also note that the fact that a model trained in the normal regime performs marinally better than one trained using (normal+)LABC data on test questions involving perceptually-plausible candidates. We believe this may be understood as a symptom of the strong ability of deep learning models to specialize to the exact nature of the problems on which they are trained. The model comparison experiments demonstrate that this negligible but undesirable specialization effect is outweighed by the greater benefits of training with LABC on test questions with semantically-plausible candidates (i.e. those that require a higher-level semantic interpretation of the problem). Training with LABC will therefore yield a much higher expected performance, for instance, in cases where the exact details of the test questions is not known. ",
1514
+ "bbox": [
1515
+ 174,
1516
+ 398,
1517
+ 825,
1518
+ 523
1519
+ ],
1520
+ "page_idx": 15
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "text": "10 FURTHER DISCUSSION AND RELATED WORK ",
1525
+ "text_level": 1,
1526
+ "bbox": [
1527
+ 176,
1528
+ 547,
1529
+ 581,
1530
+ 561
1531
+ ],
1532
+ "page_idx": 15
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "It is interesting to consider to what extent the effects reported in this work can transfer to a wider class of learning and reasoning problems beyond classical analogies. The importance of teaching concepts (to humans or models) by contrasting with negative examples is relatively established in both cognitive science (Shafto et al., 2014; Smith & Gentner, 2014) and educational research (Silver, 2010; Ali, 1981). Our results underline the importance of this principle when training modern neural networks to replicate human-like cognitive processes and reasoning from raw perceptual input. In cases where expert understanding of potential data exists, for instance in the case of active learning with human interaction, it provides a recipe for achieving more robust representations leading to far greater powers of generalization. We should aspire to select as negative examples those examples that are plausible considering the most abstract principles that describe the data. ",
1537
+ "bbox": [
1538
+ 174,
1539
+ 579,
1540
+ 825,
1541
+ 718
1542
+ ],
1543
+ "page_idx": 15
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "A further notable property of our trained networks is the fact they can resolve analogies (even those involving with unfamiliar input domains) in a single rollout (forward pass) of a recurrent network. This propensity for fast reasoning has an interesting parallel with the fast and instinctive way in which humans can execute visual analogical reasoning (Morrison et al., 2001; Qiu et al., 2008). ",
1548
+ "bbox": [
1549
+ 174,
1550
+ 724,
1551
+ 825,
1552
+ 781
1553
+ ],
1554
+ "page_idx": 15
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "10.1 DISTANCE METRIC APPROACHES ",
1559
+ "text_level": 1,
1560
+ "bbox": [
1561
+ 178,
1562
+ 799,
1563
+ 447,
1564
+ 813
1565
+ ],
1566
+ "page_idx": 15
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "LBC shares similarities with distance metric approaches such as the large-margin nearest neighbor classifier (LMNN) (Weinberger & Saul, 2009), the triplet loss (Schroff et al., 2015), and others. In these approaches the goal is to transform inputs such that the distance between input embeddings from the same class is small, while the distance between input embeddings from different classes is large. Given these improved embeddings, classification can proceed using off-the-shelf classification algorithms, such as k-nearest neighbors. We note that these approaches emphasize the form of the loss function and the quality of the resultant input embeddings on subsequent classification. However, the goal of LBC is not to induce better classification per se, as it is in these methods. Instead, the goal is to induce out-of-distribution generalisation by virtue of improved abstract understanding of the underlying problem. It is unclear, for example, whether the embeddings produced by LMNN or the triplet loss are naturally amenable to this kind of generalisation, and as far as we are aware, it has not beed tested. Nonetheless, LBC places a critical focus on the nature, or quality of the data comprising the incorrect classes, and is agnostic to the exact nature of the loss function. Thus, it is possible to use previous approaches (e.g., LMNN or triplet loss, etc.) in conjunction with LBC, which we do not explore. LBC also shares similarities to recent generative adversarial active learning approaches (Zhu & Bento, 2017). However, these approaches do not explicitly point to the effects of the quality of incorrect samples to out-of-distribution generalisation, nor are we aware of any experiments that test abstract generalisation using networks trained with generative samples. ",
1571
+ "bbox": [
1572
+ 174,
1573
+ 825,
1574
+ 825,
1575
+ 924
1576
+ ],
1577
+ "page_idx": 15
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "",
1582
+ "bbox": [
1583
+ 174,
1584
+ 103,
1585
+ 825,
1586
+ 256
1587
+ ],
1588
+ "page_idx": 16
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "11 VISUAL ANALOGY EXAMPLES ",
1593
+ "bbox": [
1594
+ 178,
1595
+ 277,
1596
+ 465,
1597
+ 292
1598
+ ],
1599
+ "page_idx": 16
1600
+ },
1601
+ {
1602
+ "type": "image",
1603
+ "img_path": "images/6c887c97b9cf374c54da3f73b5c9688d5f16322940c730e406713c7b7ee7ac4f.jpg",
1604
+ "image_caption": [
1605
+ "relation: AND source domain: shape position target domain: line type "
1606
+ ],
1607
+ "image_footnote": [],
1608
+ "bbox": [
1609
+ 218,
1610
+ 151,
1611
+ 395,
1612
+ 275
1613
+ ],
1614
+ "page_idx": 17
1615
+ },
1616
+ {
1617
+ "type": "image",
1618
+ "img_path": "images/5f2940c8bccbf6a281a70dafdf5e30f94a29ecd20934768e3c8ec313c7058320.jpg",
1619
+ "image_caption": [],
1620
+ "image_footnote": [],
1621
+ "bbox": [
1622
+ 413,
1623
+ 150,
1624
+ 589,
1625
+ 275
1626
+ ],
1627
+ "page_idx": 17
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "relation: XOR source domain: line type target domain: line type relation: progression source domain: shape size target domain: shape size relation: OR source domain: shape type target domain: line colour relation: OR source domain: shape position target domain: shape size ",
1632
+ "bbox": [
1633
+ 413,
1634
+ 277,
1635
+ 496,
1636
+ 297
1637
+ ],
1638
+ "page_idx": 17
1639
+ },
1640
+ {
1641
+ "type": "image",
1642
+ "img_path": "images/3f0bb90de47faf36c0b053a33f9795d651ffb76f012301c4dc10de841a3dd3f3.jpg",
1643
+ "image_caption": [],
1644
+ "image_footnote": [],
1645
+ "bbox": [
1646
+ 609,
1647
+ 150,
1648
+ 785,
1649
+ 275
1650
+ ],
1651
+ "page_idx": 17
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "",
1656
+ "bbox": [
1657
+ 609,
1658
+ 279,
1659
+ 699,
1660
+ 297
1661
+ ],
1662
+ "page_idx": 17
1663
+ },
1664
+ {
1665
+ "type": "image",
1666
+ "img_path": "images/0931a3e0635c36f830dfaa37c1283d307845ad74c3871ca8e8b7880fac8ed6b4.jpg",
1667
+ "image_caption": [],
1668
+ "image_footnote": [],
1669
+ "bbox": [
1670
+ 218,
1671
+ 308,
1672
+ 393,
1673
+ 433
1674
+ ],
1675
+ "page_idx": 17
1676
+ },
1677
+ {
1678
+ "type": "image",
1679
+ "img_path": "images/d46e9282ad85f8519139ca5e3c7f2ff6bbb70c7c263d5fcbd2a60651efdfef53.jpg",
1680
+ "image_caption": [],
1681
+ "image_footnote": [],
1682
+ "bbox": [
1683
+ 413,
1684
+ 308,
1685
+ 589,
1686
+ 431
1687
+ ],
1688
+ "page_idx": 17
1689
+ },
1690
+ {
1691
+ "type": "text",
1692
+ "text": "",
1693
+ "bbox": [
1694
+ 217,
1695
+ 435,
1696
+ 308,
1697
+ 455
1698
+ ],
1699
+ "page_idx": 17
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "text": "",
1704
+ "bbox": [
1705
+ 411,
1706
+ 435,
1707
+ 513,
1708
+ 455
1709
+ ],
1710
+ "page_idx": 17
1711
+ },
1712
+ {
1713
+ "type": "image",
1714
+ "img_path": "images/fa4c6a8b57627aea0749d5b3a8bcdf34a6351aa8b7c94cc5ccc1e9f60a5d0887.jpg",
1715
+ "image_caption": [],
1716
+ "image_footnote": [],
1717
+ "bbox": [
1718
+ 609,
1719
+ 308,
1720
+ 785,
1721
+ 431
1722
+ ],
1723
+ "page_idx": 17
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "relation: OR source domain: line colour target domain: shape colour relation: XOR source domain: line colour target domain: shape colour relation: progression source domain: shape type target domain: line colour relation: OR source domain: shape type target domain: line colour relation: XOR source domain: line type target domain: line colour relation: XOR source domain: line type target domain: shape colour relation: XOR source domain: shape colour target domain: line colour ",
1728
+ "bbox": [
1729
+ 606,
1730
+ 435,
1731
+ 700,
1732
+ 455
1733
+ ],
1734
+ "page_idx": 17
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "text": "",
1739
+ "bbox": [
1740
+ 217,
1741
+ 593,
1742
+ 312,
1743
+ 613
1744
+ ],
1745
+ "page_idx": 17
1746
+ },
1747
+ {
1748
+ "type": "image",
1749
+ "img_path": "images/1c7e8822122f4f39cdbb09af7f047629540224cf89eff12d4feeb9caaecfbf3d.jpg",
1750
+ "image_caption": [],
1751
+ "image_footnote": [],
1752
+ "bbox": [
1753
+ 413,
1754
+ 465,
1755
+ 589,
1756
+ 590
1757
+ ],
1758
+ "page_idx": 17
1759
+ },
1760
+ {
1761
+ "type": "text",
1762
+ "text": "",
1763
+ "bbox": [
1764
+ 411,
1765
+ 593,
1766
+ 501,
1767
+ 613
1768
+ ],
1769
+ "page_idx": 17
1770
+ },
1771
+ {
1772
+ "type": "image",
1773
+ "img_path": "images/df0def5f43ded006398eabe6729b769fa6081580b7c2d49964fafc6f72dee720.jpg",
1774
+ "image_caption": [],
1775
+ "image_footnote": [],
1776
+ "bbox": [
1777
+ 609,
1778
+ 465,
1779
+ 785,
1780
+ 589
1781
+ ],
1782
+ "page_idx": 17
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "",
1787
+ "bbox": [
1788
+ 606,
1789
+ 593,
1790
+ 697,
1791
+ 613
1792
+ ],
1793
+ "page_idx": 17
1794
+ },
1795
+ {
1796
+ "type": "image",
1797
+ "img_path": "images/a2a3d9c3146c5fcfaa7281d33689119be5f2b626894ca62e044fa567d2026311.jpg",
1798
+ "image_caption": [],
1799
+ "image_footnote": [],
1800
+ "bbox": [
1801
+ 218,
1802
+ 622,
1803
+ 393,
1804
+ 747
1805
+ ],
1806
+ "page_idx": 17
1807
+ },
1808
+ {
1809
+ "type": "image",
1810
+ "img_path": "images/63848025d67f9248268dbae3646eac454147bda19faab36ddbf0549696269385.jpg",
1811
+ "image_caption": [
1812
+ "Figure 7: Examples of visual analogy problems. These visual analogy examples have been selected from the interpolation test set. The correct multiple choice candidate for each problem is highlighted in green. In the top half, we have randomly chosen examples where our RNN model trained with LABC selects the correct answer. In the bottom half, we have randomly selected examples where our RNN model trained with LABC chooses the incorrect candidates (highlighted in red). The performance of this model on the interpolation test set is $9 3 \\%$ . "
1813
+ ],
1814
+ "image_footnote": [],
1815
+ "bbox": [
1816
+ 218,
1817
+ 465,
1818
+ 393,
1819
+ 589
1820
+ ],
1821
+ "page_idx": 17
1822
+ },
1823
+ {
1824
+ "type": "image",
1825
+ "img_path": "images/31d6452f69f457157c84c164b6f03aa362fe3f77dd16d56511d795e47db27157.jpg",
1826
+ "image_caption": [],
1827
+ "image_footnote": [],
1828
+ "bbox": [
1829
+ 413,
1830
+ 622,
1831
+ 589,
1832
+ 746
1833
+ ],
1834
+ "page_idx": 17
1835
+ },
1836
+ {
1837
+ "type": "text",
1838
+ "text": "",
1839
+ "bbox": [
1840
+ 217,
1841
+ 751,
1842
+ 303,
1843
+ 772
1844
+ ],
1845
+ "page_idx": 17
1846
+ },
1847
+ {
1848
+ "type": "image",
1849
+ "img_path": "images/1088ca6d84fbd4378d0c8f914943b05dd27d26104b0abecd668bde6cc06f21ca.jpg",
1850
+ "image_caption": [],
1851
+ "image_footnote": [],
1852
+ "bbox": [
1853
+ 609,
1854
+ 622,
1855
+ 784,
1856
+ 747
1857
+ ],
1858
+ "page_idx": 17
1859
+ },
1860
+ {
1861
+ "type": "text",
1862
+ "text": "",
1863
+ "bbox": [
1864
+ 411,
1865
+ 751,
1866
+ 504,
1867
+ 772
1868
+ ],
1869
+ "page_idx": 17
1870
+ },
1871
+ {
1872
+ "type": "text",
1873
+ "text": "",
1874
+ "bbox": [
1875
+ 606,
1876
+ 752,
1877
+ 702,
1878
+ 772
1879
+ ],
1880
+ "page_idx": 17
1881
+ }
1882
+ ]
parse/train/SylLYsCcFm/SylLYsCcFm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SylLYsCcFm/SylLYsCcFm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/q1eCa1kMfDd/q1eCa1kMfDd.md ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Flattening Sharpness for Dynamic Gradient Projection Memory Benefits Continual Learning
2
+
3
+ Danruo Deng1, Guangyong Chen2∗, Jianye $\mathbf { H a o ^ { 3 , 4 } }$ , Qiong Wang2, Pheng-Ann Heng1,2 1The Chinese University of Hong Kong, 2Guangdong-Hong Kong-Macao Joint Laboratory of Human-Machine Intelligence-Synergy Systems, Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, 3College of Intelligence and Computing, Tianjin University, 4Huawei Noah’s Ark Lab {drdeng,pheng}@cse.cuhk.edu.hk, {gy.chen, wangqiong}@siat.ac.cn, jianye.hao@tju.edu.cn
4
+
5
+ # Abstract
6
+
7
+ The backpropagation networks are notably susceptible to catastrophic forgetting, where networks tend to forget previously learned skills upon learning new ones. To address such the ’sensitivity-stability’ dilemma, most previous efforts have been contributed to minimizing the empirical risk with different parameter regularization terms and episodic memory, but rarely exploring the usages of the weight loss landscape. In this paper, we investigate the relationship between the weight loss landscape and sensitivity-stability in the continual learning scenario, based on which, we propose a novel method, Flattening Sharpness for Dynamic Gradient Projection Memory (FS-DGPM). In particular, we introduce a soft weight to represent the importance of each basis representing past tasks in GPM, which can be adaptively learned during the learning process, so that less important bases can be dynamically released to improve the sensitivity of new skill learning. We further introduce Flattening Sharpness (FS) to reduce the generalization gap by explicitly regulating the flatness of the weight loss landscape of all seen tasks. As demonstrated empirically, our proposed method consistently outperforms baselines with the superior ability to learn new skills while alleviating forgetting effectively.2.
8
+
9
+ # 1 Introduction
10
+
11
+ Humans have the ability to continually learn new knowledge without forgetting their previously learned ones through mediating a rich set of neurocognitive mechanisms [41, 15, 39]. This ability, often known as continual learning or lifelong learning [29], is crucial for computational systems, such as deep neural networks (DNNs), which are required to sequentially learn and deal with multiple tasks when implemented in the dynamically changing environment. Continual learning remains a long-standing challenge for DNNs since these networks are typically trained with stationary training batches by stochastic gradient descent methods [19], which generally leads to an abrupt performance decrease on previously learned tasks as new tasks are learned. To address such catastrophic forgetting, we can brutally retrain an oracle network on the entire dataset containing all tasks to capture dynamic changes in the data distribution, but this methodology is obviously too inefficient to hinder the learning of novel data in real time.
12
+
13
+ During the last few years, lots of research efforts have been devoted to improving the stability of DNNs on old tasks while keeping sensitive to new information. The first intuitive idea is to introduce an independent branch for each new task while freezing the old task parameters to preserve the old knowledge [33, 45, 43, 25, 35, 22]. However, in this way, the network will inevitably become redundant as the task number continually increases. As presented in the neurocognitive works [41, 15], the reactivation of neuronal activity patterns, representing old memories, plays an important role in the continual learning of humans [39]. Thus, forgetness can be effectively mitigated by training a single network for new tasks by considering diverse information stored in the memory, including the original training samples of old tasks [31, 5, 13], the gradients induced from old tasks [9] and the feature subspace representing old tasks [34]. However, their continual learning performance is still limited because DNNs can easily overfit the limited information stored in the small-size memory.
14
+
15
+ The overfitting problem of DNNs is often attributed to the complex loss landscape containing multiple local optima, and the sharpness of the loss landscape has been widely used to characterize the generalization gap in standard training scenarios from both theoretical and empirical perspectives [27, 21, 42, 10, 6]. While this characterization has inspired new approaches for model training with better generalization, practical algorithms that especially seek out flatter minima to effectively address the ’sensitivity-stability’ dilemma for continual learning have thus far been elusive. In this paper, our first contribution is to characterize the weight loss landscape for the continual learning scenario and identify that a flatter loss landscape with lower loss value often leads to better continual learning performance, as shown in Figure 1 and Figure 3.
16
+
17
+ Further, based on our characterization of the weight loss landscape, we find that the recently proposed Gradient Projection Memory (GPM) method [34] maintains the lowest loss value on old tasks among the previously proposed methods by taking gradient steps orthogonal to the subspace representing old tasks. However, its loss landscape on newly learned tasks is the sharpest due to the lack of sufficient subspace left for new task learning. To improve the network’s sensitivity, our second contribution is to predict the importance of bases spanning the subspace for old tasks, so that less important bases can be dynamically released. In particular, we introduce a soft weight to indicate the bases importance, which can be dynamically adjusted by combining the Flattening Sharpness $( F S )$ to minimize the loss value and loss sharpness simultaneously. Intuitively, a basis will be regarded as important for preserving old knowledge if the gradients induced by new tasks and old ones are aligned in the opposite direction on that basis. As demonstrated through extensive experiments, our proposed method can consistently outperform the state-of-the-art methods [17, 30, 24, 31, 5, 13, 34] by a notable margin across a range of widely used benchmark datasets.
18
+
19
+ # 2 Related Work
20
+
21
+ In this section, we briefly survey the representative works of continual learning by highlighting their contributions. To simplify our presentation, this section is organized by dividing the representative works into three categories, parameter isolation, regularization-based, memory-based methods.
22
+
23
+ Parameter isolation methods address forgetting by assigning a different subset of network parameters to each task. Without restrictions on network architecture, new neurons or layers or modules can be added for new tasks, while the previous task parameters can be frozen or copied to preserve old knowledge. For instance, Progressive Neural Network (PGN) [33] freezes the parameters trained with previous knowledge while expands the architecture by allocating new sub-networks with fixed capacity for new tasks. Dynamically Expandable Networks (DEN) [45] selectively retrains or expands network capacity by splitting/duplicating important units on new tasks. Reinforced Continual Learning (RCL) [43] uses reinforcement learning strategy to adaptively expand the network of each layer, while [22] use neural architecture search to find optimal network structures for each sequential task. Alternatively, with the architecture remaining static, a fixed part is allocated to each task. During the training of a new task, previous task parts are masked out to prevent interference. The mask sets are imposed at parameter level [25], or unit level [35]. PackNet [25] uses iterative pruning to fully restrict gradient updates on important weights via a binary mask, whereas HAT [35] limits the update of important units recognized by the hard attention mask through gradient backpropagation.
24
+
25
+ Regularization-based methods introduce an additional regularization term in the loss function to consolidate previous knowledge without using replay. This involves using knowledge distillation [23, 14] or penalizing changes in weights deemed important for previous tasks [17, 46, 28, 2, 3] to reduce forgetting. There are many ways to measure the importance. Elastic Weight Consolidation (EWC) [17] identifies important weights based on the diagonal values of Fisher information matrix after training, while Synaptic Intelligence (SI) [46] calculates them online and over the entire learning trajectory in parameter space. Memory Aware Synapses (MAS) [2] estimates importance weights in an unsupervised manner, while Variational Continual Learning (VCL) [28] introduces a variational framework that spawned some Bayesian-based works [32, 8, 1, 7]. For example, [32] recursively uses a Gaussian Laplace approximation of the Hessian to approximate the posterior after every task, [8] adjusts the learning rate according to the uncertainty defined by the probability distribution of the network weights. [1] introduces an interpretation of node-wise uncertainty on the Kullback-Leibler (KL) divergence term of the variational lower bound for Gaussian mean-field approximation.
26
+
27
+ Our method mainly follows memory-based methods, which mitigate forgetting based on information extracted from old tasks or based on a generative model to generate pseudo samples. For example, iCaRL [30] selects and stores samples closest to the feature mean of each class. ER [5, 31] suggests reservoir sampling under the limited and fixed budget for replay buffer. Deep Generative Replay (DGR) [36] trains a deep generative model in the Generative Adversarial Network (GAN) framework [11] to simulate past data. These previous task samples are mainly reused as model inputs for replay in the above methods. However, replay might be prone to overfitting the subset of stored samples. Alternatively, samples stored in memory can also be used to constrain the optimization of the new task loss to prevent previous task interference, thereby leaving more leeway for backward and forward transfer. Gradient Episodic Memory (GEM) [24] projects the estimated gradients in the feasible region, which is outlined by previous task gradients calculated from the episodic memory samples. Averaged-GEM (A-GEM) [4] relaxes the projection to a direction that is estimated from samples randomly selected from memory. [12] proposes a unified view of episodic memory-based continual learning methods, including GEM and A-GEM, and improves performance over these methods by using a loss-balancing update scheme. A few other works have utilized gradient information to protect previous knowledge. [31, 13] adopt optimization-based meta-learning to enforce gradient alignment between samples from different tasks. GPM [34] minimizes interference between sequential tasks by ensuring that gradient updates only occur in directions orthogonal to the input of previous tasks.
28
+
29
+ # 3 The Weight Loss Landscape of Continual Learning
30
+
31
+ In this section, we first introduce our formulation of continual learning, and then characterize the weight loss landscape for the continual learning scenario from stability and sensitivity. Finally, some insights combining the weight loss landscape and continual learning are provided.
32
+
33
+ # 3.1 Problem Formulation
34
+
35
+ Throughout the paper, we denote scalars as $a$ , vectors as $\textbf { \em a }$ , matrices as $\pmb { A }$ , and sets as $\mathcal { A }$ . We consider a supervised learning setup where $T$ tasks are sequentially learned from their training data. Each task has an identical task descriptor, $\tau \in \{ 1 , 2 , \ldots , T \}$ , with its dataset $\mathscr { D } _ { \tau } = \{ \pmb { x } _ { i , \tau } , y _ { i , \tau } \} _ { i = 1 } ^ { n _ { \tau } }$ containing $n _ { \tau }$ samples randomly generated from a latent distribution $\mathcal { D } _ { \tau }$ . At any time-step during the learning process, we minimize the empirical risk of the model on all $t$ tasks seen so far, with just limited size of memory $\mathcal { M }$ to summarize the training data of previous tasks $\{ \mathcal { D } _ { \tau } \} _ { \tau = 1 } ^ { t - 1 }$ . To simplify the notation, we denote $\begin{array} { r } { L _ { \mathcal { A } } ( \pmb { w } ) = \frac { 1 } { | \mathcal { A } | } \sum _ { ( \pmb { x } , \pmb { y } ) \in \mathcal { A } } \left[ \ell \left( f _ { \pmb { w } } \left( \pmb { x } \right) , \pmb { y } \right) \right] } \end{array}$ as the average empirical loss for the set , where $\ell ( \cdot , \cdot )$ is an arbitrary loss function (e.g. the cross-entropy (CE) loss), $| { \cal A } |$ is the sample size of the set $\mathcal { A }$ , and $f _ { w }$ is the DNN with weight $\textbf { \em w }$ . Our final goal is to find an optimal parameter $\pmb { w }$ , which minimizes the overall risk $\scriptstyle \sum _ { \tau = 1 } ^ { T } L _ { \mathcal { D } _ { \tau } } ( \pmb { w } )$ for all tasks.
36
+
37
+ # 3.2 Connection of Weight Loss Landscape and Continual Learning
38
+
39
+ After learning a new task, we visualize the weight loss landscape of each task seen so far by plotting changes in its training loss when moving the weights $\pmb { w }$ in a random direction $^ d$ with magnitude $\alpha$ following [21]:
40
+
41
+ $$
42
+ g _ { t } ( \alpha ) = L _ { \mathcal { D } _ { t } } ( \pmb { w } + \alpha \pmb { d } ) = \frac { 1 } { | \mathcal { D } _ { t } | } \sum _ { ( \pmb { x } , \pmb { y } ) \in \mathcal { D } _ { t } } \ell \left( f _ { \pmb { w } + \alpha d } \left( \pmb { x } \right) , \pmb { y } \right) ,
43
+ $$
44
+
45
+ where $\mathcal { D } _ { t }$ is the training set for the $t$ -th task previously learned. To eliminate the scaling invariance of DNNs, $^ d$ is sampled from a Gaussian distribution and further normalized by $\begin{array} { r } { \pmb { d } _ { l , j } \frac { \mathbf { \bar { d } } _ { l , j } } { \| \pmb { d } _ { l , j } \| _ { F } } \| \pmb { w } _ { l , j } \| _ { F } } \end{array}$ where $d _ { l , j }$ represents the $j$ -th filter at $l$ -th layer of $^ d$ , and $\left\| \cdot \right\| _ { F }$ denotes the Frobenius norm. Compared with our visualization, [26] only consider one task and plot the loss landscape along the directions of its Hessian eigenvectors, which only reflects some of the relationship between forgetting and landscape. Considering $^ d$ is randomly selected, we repeat the visualization 10 times with different $^ d$
46
+
47
+ ![](images/fd37d0fd577ccb1d848a629a229d31c87841d79be1d0b99c0f1ac596de52444b.jpg)
48
+ Figure 1: The connection between the weight loss landscape and continual learning is investigated on four methods. (a)-( c) shows the stability of the first task. (a) is the test accuracy change curve of the first task; (b) and (c) are the weight loss landscape of the first task after learning the fifth task and all ten tasks. (d)-(e) shows the sensitivity of the fifth task, which are the test accuracy and the weight loss landscape of the fifth task after just learning the fifth task. The shape of the weight loss landscape obtained using ten different random filter-normalized directions. ( $" \mathrm { T } i "$ is abbr. of the $i$ -th task)
49
+
50
+ We first study the stability of the network by plotting changes of the weight loss landscape for the first task after new task learning. In particular, We use the previously proposed ER [5], La-MAML [13], and GPM [34] to train a MLP network with two hidden layers on the Permuted MNIST (PMNIST) [20] dataset that contains 10 tasks. We also retrain the network on the entire dataset contain all passed tasks as an Oracle network. Early stopping is used to halt the training with up to 10 epochs for each task based on the validation loss as proposed in [35]. As shown in Figure 1(a), all three continual learning methods lose their stability as learning new tasks. It can be observed from Figure 1(b)-(c) that the weight loss landscape becomes sharper and loss value increases simultaneously, when the testing accuracy of the first task continually decreases. We further evaluate the sensitivity of the network by observing the performance of the fifth task just after it has just been learned. As shown in Figure 1(d)-(e), ER shows the best learning capability compared with other methods with the lowest loss value and the flattest loss landscape. Thus, based on these empirical findings, we assume that lower loss value with a flatter neighbor may lead to better continual learning performance.
51
+
52
+ # 3.3 A Case Study of Flattening Sharpness for Vanilla ER
53
+
54
+ In this part, we further validate our above assumption by Flattening Sharpness for vanilla ER (FS-ER). Compared with ER that looks for a solution $\pmb { w }$ that jointly minimizes the training loss of current task data and memory data, FS-ER seeks out a solution with both low loss and flat neighbor by minimizing the maximal loss in the neighbor around the parameter value. The schematic of the Flattening Sharpness (FS) is shown in Figure 2. We introduce the adversarial weight perturbation (orange dashed line) to explicitly flatten the weight loss landscape via injecting the worst-case weight perturbation, which is calculated from the current task data and past task data sampled from the replay buffer (Refer to Appendix C.1 and the next section for more details). Figure 3 respectively shows the weight loss landscapes of the fifth task after just learning the fifth task and all tasks. We find that FS-ER successfully gets a solution with a lower loss value and flatter landscape, either after the fifth task has just been learned or all ten tasks have been learned. The average testing accuracy of all tasks using FS-ER is $9 0 . 4 4 \%$ , significantly higher than ER $( 8 6 . 1 6 \% )$ , which means that flattening sharpness does benefit continual learning.
55
+
56
+ ![](images/2e3f3ddf535810155a992fc66e3895a7221d3a75c0786f35ade9210a2420a872.jpg)
57
+ Figure 2: Schematic of FS-ER update. The dashed line and the solid line indicate the gradient ascent and descent, respectively. Orange denotes the actual update of the parameter $\pmb { w }$
58
+
59
+ ![](images/b58c7460443734cc64e08af56719f4753f34ebec8f27068bdfe89caa7994dc81.jpg)
60
+ Figure 3: Landscape of the fifth task after just learning (a) the fifth task and (b) all ten tasks.
61
+
62
+ # 4 Flattening Sharpness for Dynamic Gradient Projection Memory
63
+
64
+ As shown in Figure 1, GPM achieves the highest testing accuracy on old tasks among all three practical continual learning methods, but shows less sensitivity to new task learning. To address this issue, we propose Flattening Sharpness for Dynamic GPM (FS-DGPM), which dynamically adjusts the gradient subspace representing the past tasks to improve the sensitivity to the new task, while ensuring stability of the previous tasks. In particular, we let $M = [ \pmb { u } _ { 1 } , \pmb { u } _ { 2 } , \cdot \cdot \cdot , \pmb { u } _ { k } ]$ denote the bases matrix that spans the gradient subspace of the previous task, $\pmb { \Lambda } = \mathrm { d i a g } [ \lambda _ { 1 } , \lambda _ { 2 } , . . . , \lambda _ { k } ]$ be the diagonal matrix with its $i$ -th diagonal element $\lambda _ { i } \in [ 0 , 1 ]$ indicating the importance of each basis, and $k$ is the number of bases.
65
+
66
+ # 4.1 Sharpness Evaluation
67
+
68
+ Comparing with the classical strategy that perturbs weight in the entire space [40, 16, 42, 10], we focus on characterizing the weight loss landscape on the new task with respect to the important subspace representing old task. The important subspace can be effectively calculated based on the examples sampled from replay buffer $\mathcal { M }$ after each task training. Then, we can find the worst case by maximizing the training loss of the network on the new task in this subspace. Formally, the sharpness of the loss landscape around the solution $\textbf { \em w }$ in the old parameter space can be predicted as,
69
+
70
+ $$
71
+ \operatorname* { m a x } _ { \pmb { v } \in \mathcal { V } } L _ { \hat { \mathcal { D } } _ { t } } \left( \pmb { w } + \pmb { v } \right) ,
72
+ $$
73
+
74
+ where $\nu$ denotes the subspace spanned by $M$ and $\pmb { \Lambda }$ , and $\hat { \mathcal { D } } _ { t }$ denotes the batch samples of the current $t$ -th task. As shown in Eq. (1), the high value can be obtained when the network fails to learn the new task (sensitivity) and the new task learning seriously interferes with the past tasks learning (stability). Based on the gradient method, the adversarial weight perturbation $\pmb { v }$ can be solved as,
75
+
76
+ $$
77
+ \pmb { v } \pmb { v } + \eta _ { 1 } \pmb { M } \pmb { \Lambda } \pmb { M } ^ { T } ( \nabla _ { ( \pmb { w } + \pmb { v } ) } L _ { \hat { \mathcal { D } } _ { t } } ( \pmb { w } + \pmb { v } ) ) ,
78
+ $$
79
+
80
+ where $\eta _ { 1 }$ is the update step size. Note that $\textbf { { v } }$ is initialized as 0 and layer-wise updated. As shown in Appendix $\mathrm { E }$ , two-step for $\textbf { { v } }$ (default settings) are enough to get good improvements.
81
+
82
+ # 4.2 Dynamic Gradient Projection Memory
83
+
84
+ After obtaining the adversarial weight perturbation $\textbf { { v } }$ , we can further update the bases importance matrix $\pmb { \Lambda } = \mathrm { d i a g } [ \lambda _ { 1 } , \lambda _ { 2 } , . . . , \lambda _ { k } ]$ by jointly considering the current task batch $\hat { \mathcal { D } } _ { t }$ and the batch $\hat { \mathcal { M } }$ sampled from the replay buffer $\mathcal { M }$ as following,
85
+
86
+ $$
87
+ \lambda _ { i } \lambda _ { i } - \eta _ { 2 } ( \nabla _ { \lambda _ { i } } L _ { \hat { \mathcal { D } } _ { t } \cup \hat { \mathcal { M } } } ( \pmb { w } + \pmb { v } ) ) ,
88
+ $$
89
+
90
+ where the sigmoid function is used at the end of gradient update to constrain the importance value $\lambda _ { i }$ between 0 and 1. In addition, the second term on the right side in Eq. (3) can be approximated by the first-order Taylor expansion as,
91
+
92
+ $$
93
+ \nabla _ { \lambda _ { i } } L _ { \hat { \mathcal { D } } _ { t } \cup \hat { \mathcal { M } } } ( { \boldsymbol w } + { \boldsymbol v } ) \approx \eta _ { 1 } \left( \nabla _ { { \boldsymbol w } } L _ { \hat { \mathcal { D } } _ { t } } \left( { \boldsymbol w } \right) \right) ^ { T } \mathbf { { u } } _ { i } \boldsymbol u _ { i } ^ { T } \left( \nabla _ { { \boldsymbol w } } L _ { \hat { \mathcal { D } } _ { t } \cup \hat { \mathcal { M } } } \left( { \boldsymbol w } \right) \right) .
94
+ $$
95
+
96
+ The above equation characterizes the relationship between the gradients induced by the current task and the old tasks based on the basis $\mathbf { \delta } \mathbf { u } _ { i }$ . As illustrated in the Figure 4, this equation implies that when the projections of two gradients on the basis $\mathbf { \delta } \mathbf { u } _ { i }$ are aligned in the same direction, the gradient of $\lambda _ { i }$ will be positive, and when there is interference, the gradient will be negative. The positive (negative) gradient will decrease (increase) the importance $\lambda _ { i }$ , thereby releasing (tightening) the update limit of the new task on the corresponding
97
+
98
+ ![](images/0c65063f71562cc6c18285cf0a8ea38b34c5439409e5823be9b371fd66973c10.jpg)
99
+ Figure 4: A depiction of transfer (a) and interference (b) in the basis $\textbf { \em u }$ of gradient space.
100
+
101
+ basis $\mathbf { \delta } \mathbf { u } _ { i }$ . We provide the full derivation in the Appendix A.2. Note that the initial value of all importance is set to 1 and dynamically adjusted from the second task.
102
+
103
+ # 4.3 Weight Updating
104
+
105
+ Finally, we update the model parameters by minimizing the worst performance of $f _ { w + v }$ with respect to $\textbf { \em w }$ , while adjusting the update magnitude of $\pmb { w }$ on each basis based on its importance to alleviate forgetting. More concretely, the parameter $\textbf { \em w }$ will be updated to:
106
+
107
+ $$
108
+ \pmb { w } \pmb { w } - \eta _ { 3 } ( \pmb { I } - \pmb { M } \pmb { \Lambda } \pmb { M } ^ { T } ) \nabla _ { \pmb { w } } L _ { \hat { D } _ { t } \cup \hat { \mathcal { M } } } ( \pmb { w } + \pmb { v } ) .
109
+ $$
110
+
111
+ Note that the optimization is performed over the model parameters $\pmb { w }$ , whereas the objective is computed using perturbed model $f _ { w + v }$ . In addition, we update the replay buffer $\mathcal { M }$ with reservoir sampling as in [31], and then use Singular Value Decomposition (SVD) to recalculate $M$ based on the sampling data in the replay buffer after learning one task following GPM [34]. Comparing with [34], we calculate the important bases in the entire gradient space and use them to replace the bases calculated last time. Besides that, our method degenerates to GPM when $\eta _ { 1 }$ and $\eta _ { 2 }$ are set to 0. The complete pseudo-code of FS-DGPM is outlined in the Algorithm 1.
112
+
113
+ Algorithm 1 FS-DGPM (Flattening Sharpness for Dynamic Gradient Projection Memory)
114
+
115
+ <table><tr><td>weight step size n2,batch size b. InitializingM←{},M←I,△←I fort=1,2,.,Tdo for ep = 1,2,... , numepochs do</td><td>Input: Network weight w,loss function l, learning rate n3,FS step size 71,FS steps K, Soft</td></tr><tr><td>for batch Dt Dt do MM</td><td></td></tr><tr><td>for k =1,.·,K do v ←v+niMAMT (V(w+v)Lb(w+ v))</td><td> Sharpness Evaluation</td></tr><tr><td>end for if t ≥ 2 then</td><td></td></tr><tr><td>△ ← △-n2(∀ALD:UM(ω+ ν))</td><td> Dynamic Gradient Projection Memory</td></tr><tr><td>end if w ← w - n3 (1 - MAMT) VwLDtUm(w+v)</td><td> Weight updating</td></tr><tr><td></td><td></td></tr><tr><td>Push Dt to M with reservior sampling</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td></td><td></td></tr><tr><td>M ←UpdateGPM (M)</td><td></td></tr><tr><td></td><td>V see Appendix Alg. 2</td></tr><tr><td></td><td></td></tr><tr><td>end for</td><td></td></tr></table>
116
+
117
+ # 4.4 Theoretical Understanding
118
+
119
+ We further provide a theoretical view on why landscape can characterize the continual learning performance and why our proposed FS-DGPM works. To simplify our explanation, we only consider two tasks, which contains the training sets $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ sampled from the distributions $\mathcal { D } _ { 1 }$ and $\mathcal { D } _ { 2 }$ , respectively. Based on the previous works on PAC-Bayes bound [27, 42, 10], given a "prior" distribution $P$ (a common assumption is zero mean, $\sigma ^ { 2 }$ variance Gaussian distribution) over the weights, the expected error of the classifier for the continual learning scenario can be bounded with probability at least $1 - \delta$ over the draw of $n$ training data:
120
+
121
+ $$
122
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { \Delta w } \mathbb { E } _ { v } \left[ L _ { \mathcal { D } _ { 1 } \cup \mathcal { D } _ { 2 } } ( w + \Delta w + v ) \right] \leq \displaystyle \operatorname* { m i n } _ { \Delta w \in \mathcal { V } ^ { \mathcal { C } } } \mathbb { E } _ { v } \left[ L _ { \mathcal { D } _ { 1 } } ( w + \Delta w + v ) \right] + L _ { \mathcal { D } _ { 2 } } ( w + \Delta w ) } \\ { \displaystyle + \operatorname* { m a x } _ { v \in \mathcal { V } } L _ { \mathcal { D } _ { 2 } } ( w + \Delta w + v ) - L _ { \mathcal { D } _ { 2 } } ( w + \Delta w ) + 4 \sqrt { \frac { 1 } { n } \left( K L ( w + \Delta w + v | | P ) + \ln \frac { 2 n } { \delta } \right) } . } \end{array}
123
+ $$
124
+
125
+ where $\Delta w$ is the update based on the previously optimal solution $\pmb { w }$ learned on the old task $\mathcal { D } _ { 1 }$ when learning the new one $\mathcal { D } _ { 2 }$ , and $\textbf { { v } }$ is often chosen as a zero mean spherical Gaussian perturbation with variance $\sigma ^ { 2 }$ in every direction. Let $\Delta w \in \mathcal { V } ^ { C }$ , then $\Delta w$ lies in the complementary space of the important space representing the old task $\mathcal { D } _ { 1 }$ , so that $\mathbb { E } _ { \pmb { v } } \left[ L _ { \mathcal { D } _ { 1 } } ( \pmb { w } + \Delta \pmb { w } + \bar { \pmb { v } } ) \right]$ does not increase too much compared with the previously minimized $\mathbb { E } _ { v } \left[ L _ { \mathcal { D } _ { 1 } } ( \pmb { w } + \pmb { v } ) \right]$ . The second term denotes the empirical loss on the second task and the third term represents the sharpness of the weight loss landscape around the $\mathbf { \Delta } w + \Delta w$ . Since we have constrained $\Delta w \in \mathcal { V } ^ { C }$ , then it is natural to assume $\pmb { v } \in \mathcal { V }$ , so that $\Delta w + v$ will cover the full space. Thus, our FS-DGPM exactly optimizes the worstcase of the flatness of weight loss landscape to control the PAC-Bayes bound, which theoretically justifies both lower loss value and flatter landscape lead to better continual learning performance, and why our proposed FS-DGPM works.
126
+
127
+ # 5 Experiments
128
+
129
+ In this section, we conduct extensive experiments to compare the performance of our proposed FS-DGPM model with the state-of-the-art methods on widely used continual learning benchmark datasets. Additional results and more details about the datasets, experiment setup, baselines, and model architectures are presented in the Appendix D and E.
130
+
131
+ # 5.1 Experimental Setup
132
+
133
+ Datasets: We evaluate our algorithm on four image classification datasets: Permuted MNIST (PMNIST) [20], CIFAR-100 Split [18], CIFAR-100 Superclass [44] and TinyImageNet [37]. The PMNIST dataset is a variant of the MNIST dataset, in which each task applies a fixed random pixel permutation to the original dataset. The PMNIST benchmark dataset consists of 20 tasks, and each contains only 1000 samples from 10 different classes [13]. The CIFAR-100 Split is constructed by randomly dividing 100 classes of CIFAR-100 into 10 tasks with 10 classes per task. The CIFAR-100 Superclass is divided into 20 tasks according to the 20 superclasses of the CIFAR-100 dataset, and each superclass contains 5 different but semantically related classes. Whereas, TinyImageNet is constructed by splitting 200 classes into 40 5-way classification tasks. In our experiments, we do not use any data augmentation. The dataset statistics are given in Appendix D.1.
134
+
135
+ Network Architecture: For PMNIST, we use a fully connected network with two hidden layers of 100 units each following [24]. For experiments of CIFAR-100 Split and CIFAR-100 Superclass, we use a 5-layer AlexNet and LeNet architecture similar to [34] respectively. For TinyImageNet, we use the same network architecture as [13], which consists of 4 conv layers and 3 fully connected layers. In PMNIST, all tasks share the final classifier layer, while other experiments use a multi-head incremental setting, that is, each task has a separate classifier. Refer to Appendix D.2 for more details.
136
+
137
+ Baselines: We compare our method against multiple methods described below. (1) EWC [17], a regularization-based method that uses the diagonal of Fisher information to identify important weights; (2) ICARL [30], a memory-based method that uses knowledge-distillation and episodic memory to reduce forgetting; (3) GEM [24], another memory-based method that uses the gradient of episodic memory to constrain optimization to prevent forgetting; (4) ER [5], a simple and competitive method based on reservoir sampling; (5) La-MAML [13] and (6) GPM [34] are memory-based methods inspired by optimization-based meta-learning and based on gradient orthogonal constraints, respectively; (7) Multitask is an oracle baseline that all tasks are learned jointly using the entire dataset at once in a single network. Multitask is not a continual learning strategy but serves as an upper bound on average test accuracy on all tasks.
138
+
139
+ Training Details: All baselines and our method use stochastic gradient descent (SGD) for training. For each task in PMNIST and TinyImageNet, we train the network in 1 and 10 epochs, respectively, with the batch size as 10. These experimental settings are the same as La-MAML [13], so that we directly compare with their reported results. In the CIFAR-100 Split and CIFAR-100 Superclass experiments, we use the early termination strategy to train up to 50 epochs for each task, which is based on the validation loss as proposed in [35]. For both datasets, the batch size is set to 64. The replay buffer size of PMNIST, CIFAR-100 Split, CIFAR-100 Superclass, and TinyImageNet are 200, 1000, 1000, and 400, respectively. Details about the experimental setting and the hyperparameters considered for each baseline are provided in Appendix D.5 and D.6.
140
+
141
+ ![](images/4e073446d807c347d9eea6966f758b844a885215dc7d4c6ea9417ba0c8bc3f17.jpg)
142
+ Figure 5: (a) Average accuracy as a function of the number of tasks trained on 20-Split CIFAR-100 Superclass. (b) Training time per task on 20-Split CIFAR-100 Superclass. (c) Memory usage on four datasets. ("Superclass" is abbr. of CIFAR-100 Superclass).
143
+
144
+ Table 1: Experimental results on 10-Split CIFAR-100, 20-Split CIFAR-100 Superclass and 40-Split TinyImageNet in 50 epochs. Each experiment is run with 5 seeds. † and ∗ denotes results reported by [13] and [44] respectively.
145
+
146
+ <table><tr><td rowspan="2">Method</td><td colspan="2">CIFAR-100 Split</td><td colspan="2">CIFAR-100 Superclass</td><td colspan="2">TinyImageNet</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>EWC</td><td>72.77 ± 0.45</td><td>-3.59 ± 0.55</td><td>50.26 ± 1.48</td><td>-7.87 ± 1.63</td><td></td><td></td></tr><tr><td>GEM</td><td>70.15 ± 0.34</td><td>-8.61 ± 0.42</td><td>50.35 ± 0.80</td><td>-9.50 ± 0.85</td><td>50.57 ± 0.61†</td><td>-20.50 ± 0.10+</td></tr><tr><td>ICARL</td><td>53.50 ± 0.81</td><td>-20.44 ± 0.82</td><td>49.05 ± 0.51</td><td>-11.24 ± 0.27</td><td>54.77 ± 0.32†</td><td>-3.93 ± 0.55†</td></tr><tr><td>ER</td><td>70.07 ± 0.35</td><td>-7.70 ± 0.59</td><td>51.64 ± 1.09</td><td>-7.86 ± 0.89</td><td>48.32 ± 1.51†</td><td>-19.86 ± 0.70t</td></tr><tr><td>La-MAML</td><td>71.37 ± 0.67</td><td>-5.39 ± 0.53</td><td>54.44 ± 1.36</td><td>-6.65 ± 0.85</td><td>66.90 ± 1.65†</td><td>-9.13 ± 0.90t</td></tr><tr><td>GPM</td><td>73.18 ± 0.52</td><td>-1.17 ± 0.27</td><td>57.33 ± 0.37</td><td>-0.37 ± 0.12</td><td>67.39 ± 0.47</td><td>1.45 ± 0.22</td></tr><tr><td>FS-DGPM</td><td>74.33 ± 0.31</td><td>-2.71 ± 0.17</td><td>58.81 ± 0.34</td><td>-2.97 ± 0.35</td><td>70.41 ± 1.30</td><td>-2.11 ± 0.84</td></tr><tr><td>Multitask</td><td>79.75 ± 0.38</td><td>-</td><td>61.00 ±0.20*</td><td>1</td><td>77.10 ± 1.06†</td><td>-</td></tr></table>
147
+
148
+ Metrics: We evaluate the continual learning performance by the average accuracy (ACC) and backward transfer (BWT) [24, 4, 5], formulated as following,
149
+
150
+ $$
151
+ A C C = \frac { 1 } { T } \sum _ { i = 1 } ^ { T } R _ { T , i } , \quad B W T = \frac { 1 } { T - 1 } \sum _ { i = 1 } ^ { T - 1 } R _ { T , i } - R _ { i , i } ,
152
+ $$
153
+
154
+ where $T$ is the total number of learned sequential tasks, $R _ { i , j }$ is the test classification accuracy of the model on $j$ -th task after learning the last sample from $i$ -th task. ACC is the average test classification accuracy of all tasks, bigger is better. BWT is the interference of new learning on the past knowledge. More specifically, negative BWT implies (catastrophic) forgetting whereas positive BWT indicates learning new task increases the performance on some preceding tasks.
155
+
156
+ # 5.2 Results and Discussion
157
+
158
+ PMNIST: We first evaluate our algorithm for 20 sequential PMNIST tasks with only 1000 samples per task in a single-head setting. From the results, as shown in Table 2, we see that our method (FS-DGPM) achieves the best average accuracy $( 7 6 . 9 6 \% \pm 0 . 7 7 )$ . Moreover, we achieve the least amount of forgetting except GPM, which is essentially a trade-off in accuracy to minimize forgetting. As shown in Figure 5(c), we only use about $31 \%$ of the final memory size of GPM and achieve $\sim 2 . 5 \%$ better accuracy.
159
+
160
+ Table 2: Experimental results (mean $\pm$ std in 5 runs) on PMNIST in single-epoch.
161
+
162
+ <table><tr><td rowspan="2">Method</td><td colspan="2">PMNIST</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>EWC</td><td>62.25 ± 1.44</td><td>-15.22 ± 1.25</td></tr><tr><td>GEM</td><td>61.82 ± 0.85</td><td>-15.58 ± 1.17</td></tr><tr><td>ER</td><td>68.31 ±0.56</td><td>-13.91 ± 0.67</td></tr><tr><td>La-MAML</td><td>75.98 ±0.60</td><td>-10.21 ± 0.90</td></tr><tr><td>GPM</td><td>74.54 ± 0.36</td><td>-7.17 ± 0.51</td></tr><tr><td>FS-DGPM</td><td>76.96 ± 0.51</td><td>-7.45 ± 0.30</td></tr><tr><td>Multitask</td><td>86.54 ± 1.74</td><td>=</td></tr></table>
163
+
164
+ ![](images/4d317dac45d492cb2d0838a60b80610b725c142e5c467d6df22414edd67b297e.jpg)
165
+ Figure 6: The ablation study implemented on CIFAR-100 Split with 10 tasks. (a)-(c) shows the stability of the first task. (a) is the test accuracy change curve of the first task; (b) and (c) are the weight loss landscape of the first task after learning the fifth task and all ten tasks. (d)-(e) shows the sensitivity of the fifth task, which are the test accuracy and the weight loss landscape of the fifth task after just learning the fifth task. The shape of the weight loss landscape obtained using ten different random filter-normalized directions. ( $" \mathrm { T } i "$ is abbr. of the $i$ -th task)
166
+
167
+ CIFAR-100 and TinyImageNet: Next, we use a multi-head setting to evaluate our algorithm under the more challenging visual classification benchmarks. Table 1 reports all results of these experiments. We outperform all baselines on three datasets, with achieving the best average accuracy $7 4 . 3 3 \%$ , $5 8 . 8 1 \%$ and $7 0 . 4 1 \%$ . In these experiments, we observe that GPM is a strong baseline with the least forgetting. At the same time, we highlight that our method achieves the highest accuracy on all datasets and the second-lowest forgetting after GPM. Figure 5(a) shows the process of performance changing with the number of tasks on the CIFAR-100 Superclass. We consistently see the superior performance of our method at any stage of model evolution. It is also worth emphasizing that although our method requires more time for training than GPM, it has lower memory usage and better test accuracy (See Figure 5(b)-(c)). As noted by [4] and [38], EWC performs poorly without multiple passes over the datasets, and GEM is not very effective under the single-head variants. These situations have also been observed in our experiments.
168
+
169
+ # 5.3 Ablation studies on FS-DGPM
170
+
171
+ Table 3: The ablation study results on CIFAR-100 Split and Superclass. Each experiment is run with 5 seeds.
172
+
173
+ <table><tr><td rowspan="2">Method</td><td colspan="2">CIFAR-100 Split</td><td colspan="2">CIFAR-100 Superclass</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>FS-DGPM</td><td>74.33 ± 0.31</td><td>-2.71 ± 0.17</td><td>58.81 ± 0.34</td><td>-2.97± 0.35</td></tr><tr><td>La-DGPM</td><td>73.74 ± 0.61</td><td>-3.05 ± 0.73</td><td>58.18 ± 0.41</td><td>-2.41 ± 0.39</td></tr><tr><td>FS-GPM</td><td>73.96 ± 0.44</td><td>-3.12 ±0.43</td><td>58.61 ± 0.53</td><td>-2.79± 0.30</td></tr><tr><td>DGPM</td><td>73.78 ± 0.32</td><td>-3.67 ± 0.42</td><td>56.78 ± 0.49</td><td>-2.44 ± 0.40</td></tr><tr><td>GPM</td><td>73.18± 0.52</td><td>-1.17 ± 0.27</td><td>57.33 ± 0.37</td><td>-0.37 ± 0.12</td></tr></table>
174
+
175
+ We further investigate our model performance with an ablation study and summarize it in Table 3. We respectively ablate the effects of flattening sharpness and dynamically adjusting the soft weight for bases. We refer to them as DGPM and FS-GPM. We also construct an ablation referred to as LaDGPM (Look-ahead DGPM), where the adversarial weight perturbation $\pmb { v }$ in Eq. (2) is changed to the direction
176
+
177
+ of gradient descent. At the same time, we also change the sign in Eq. (3) to ensure that the soft weight of the basis is reduced when the gradients are aligned in the same direction. From the results, shown in Table 3, we observe that flattening sharpness does benefits GPM, with $\sim 1 . 0 \%$ improvement over GPM on both datasets. We can further observe through Figure 6 that all landscapes of FS-DGPM have lower loss values and flatter neighbors than DGPM and La-DGPM on the CIFAR-100 Split experiments. In addition, we see that DGPM performs well in learning new tasks, but it also leads to forgetting previous tasks. This situation can be efficiently alleviated by flattening sharpness. Hence, FS is indeed a powerful method worthy of being widely adopted for continual learning scenarios.
178
+
179
+ # 6 Conclusion
180
+
181
+ In this paper, we explore the weight loss landscape to characterize the well-known ’sensitivitystability’ dilemma faced by continual learning algorithms, and find that lower loss value with flatter neighbor often leads to better continual learning performance. Based on this finding, we propose our FS-DGPM algorithm, which introduces a soft weight to represent the importance of each basis representing past tasks in GPM, so that less important bases can be dynamically released to improve the sensitivity of new skill learning. Flattening Sharpness (FS) is also introduced here to reduce the generalization gap by explicitly regulating the flatness of the weight loss landscape of all tasks seen so far. The evaluation of various image classification tasks with different network architectures and the comparison with some state-of-the-art algorithms show the effectiveness of our method in achieving high classification performance while alleviating forgetting. Although our method theoretically and empirically demonstrates the advantages of introducing FS into continual learning, whether there exists a closer upper bound for the continual learning performance remains an unresolved problem and left for our future exploration. Although our method theoretically and empirically demonstrates the advantages of introducing bases soft weight and FS into continual learning, whether there exists a better dynamic adjustment and a closer upper bound for the continual learning performance remains an unresolved problem and left for our future exploration.
182
+
183
+ # Acknowledgments
184
+
185
+ We would like to thank Dr. Yongzhe Deng and Zhuo Zhang for their helpful discussions, and anonymous reviewers for their valuable comments to improve this work. This work was supported by a grant from the National Key Research and Development Program of China (Project No. 2020YFB1313900), Hong Kong Research Grants Council under General Research Fund (Project No. 14201620), the National Natural Science Foundation of China (Project No. 62006219, 62072452) and Guangdong Provincial Basic and Applied Basic Research Fund-Regional Joint Fund (Project No. 2020B1515130004).
186
+
187
+ # References
188
+
189
+ [1] Hongjoon Ahn, Sungmin Cha, Donggyu Lee, and Taesup Moon. Uncertainty-based continual learning with adaptive regularization. arXiv preprint arXiv:1905.11614, 2019.
190
+ [2] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pages 139–154, 2018.
191
+ [3] Sungmin Cha, Hsiang Hsu, Taebaek Hwang, Flavio P Calmon, and Taesup Moon. Cpr: Classifier-projection regularization for continual learning. arXiv preprint arXiv:2006.07326, 2020.
192
+ [4] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. arXiv preprint arXiv:1812.00420, 2018.
193
+ [5] Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K Dokania, Philip HS Torr, and M Ranzato. Continual learning with tiny episodic memories. 2019.
194
+ [6] Pengfei Chen, Guangyong Chen, Junjie Ye, Pheng-Ann Heng, et al. Noise against noise: stochastic label noise helps combat inherent label noise. In International Conference on Learning Representations, 2020.
195
+ [7] Yu Chen, Tom Diethe, and Neil Lawrence. Facilitating bayesian continual learning by natural gradients and stein gradients. arXiv preprint arXiv:1904.10644, 2019.
196
+ [8] Sayna Ebrahimi, Mohamed Elhoseiny, Trevor Darrell, and Marcus Rohrbach. Uncertaintyguided continual learning with bayesian neural networks. arXiv preprint arXiv:1906.02425, 2019.
197
+ [9] Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning. In International Conference on Artificial Intelligence and Statistics, pages 3762–3773. PMLR, 2020.
198
+ [10] Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. arXiv preprint arXiv:2010.01412, 2020.
199
+ [11] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. arXiv preprint arXiv:1406.2661, 2014.
200
+ [12] Yunhui Guo, Mingrui Liu, Tianbao Yang, and Tajana Rosing. Improved schemes for episodic memory-based lifelong learning. Advances in Neural Information Processing Systems, 33, 2020.
201
+ [13] Gunshi Gupta, Karmesh Yadav, and Liam Paull. La-maml: Look-ahead meta learning for continual learning. arXiv preprint arXiv:2007.13904, 2020.
202
+ [14] 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 International Conference on Learning Representations, 2018.
203
+ [15] Daoyun Ji and Matthew A Wilson. Coordinated memory replay in the visual cortex and hippocampus during sleep. Nature neuroscience, 10(1):100–107, 2007.
204
+ [16] Mohammad Khan, Didrik Nielsen, Voot Tangkaratt, Wu Lin, Yarin Gal, and Akash Srivastava. Fast and scalable bayesian deep learning by weight-perturbation in adam. In International Conference on Machine Learning, pages 2611–2620. PMLR, 2018.
205
+ [17] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
206
+ [18] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
207
+ [19] Quoc V Le, Jiquan Ngiam, Adam Coates, Ahbik Lahiri, Bobby Prochnow, and Andrew Y Ng. On optimization methods for deep learning. In ICML, 2011.
208
+ [20] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
209
+ [21] Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 6391–6401, 2018.
210
+ [22] Xilai Li, Yingbo Zhou, Tianfu Wu, Richard Socher, and Caiming Xiong. Learn to grow: A continual structure learning framework for overcoming catastrophic forgetting. In International Conference on Machine Learning, pages 3925–3934. PMLR, 2019.
211
+ [23] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
212
+ [24] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. arXiv preprint arXiv:1706.08840, 2017.
213
+ [25] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7765–7773, 2018.
214
+ [26] Seyed Iman Mirzadeh, Mehrdad Farajtabar, Razvan Pascanu, and Hassan Ghasemzadeh. Understanding the role of training regimes in continual learning. arXiv preprint arXiv:2006.06958, 2020.
215
+ [27] Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nathan Srebro. Exploring generalization in deep learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 5949–5958, 2017.
216
+ [28] Cuong V Nguyen, Yingzhen Li, Thang D Bui, and Richard E Turner. Variational continual learning. arXiv preprint arXiv:1710.10628, 2017.
217
+ [29] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019.
218
+ [30] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 2001–2010, 2017.
219
+ [31] 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. arXiv preprint arXiv:1810.11910, 2018.
220
+ [32] Hippolyt Ritter, Aleksandar Botev, and David Barber. Online structured laplace approximations for overcoming catastrophic forgetting. arXiv preprint arXiv:1805.07810, 2018.
221
+ [33] 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.
222
+ [34] Gobinda Saha, Isha Garg, and Kaushik Roy. Gradient projection memory for continual learning. arXiv preprint arXiv:2103.09762, 2021.
223
+ [35] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In International Conference on Machine Learning, pages 4548–4557. PMLR, 2018.
224
+ [36] Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. arXiv preprint arXiv:1705.08690, 2017.
225
+ [37] Stanford. tinyimagenet. http://cs231n.stanford.edu/tiny-imagenet-200.zip, 2017.
226
+ [38] Binh Tang and David S Matteson. Graph-based continual learning. arXiv preprint arXiv:2007.04813, 2020.
227
+ [39] Gido M van de Ven, Hava T Siegelmann, and Andreas S Tolias. Brain-inspired replay for continual learning with artificial neural networks. Nature communications, 11(1):1–14, 2020.
228
+ [40] Yeming Wen, Paul Vicol, Jimmy Ba, Dustin Tran, and Roger Grosse. Flipout: Efficient pseudo-independent weight perturbations on mini-batches. arXiv preprint arXiv:1803.04386, 2018.
229
+ [41] Matthew A Wilson and Bruce L McNaughton. Reactivation of hippocampal ensemble memories during sleep. Science, 265(5172):676–679, 1994.
230
+ [42] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. Advances in Neural Information Processing Systems, 33, 2020.
231
+ [43] Ju Xu and Zhanxing Zhu. Reinforced continual learning. arXiv preprint arXiv:1805.12369, 2018.
232
+ [44] Jaehong Yoon, Saehoon Kim, Eunho Yang, and Sung Ju Hwang. Scalable and order-robust continual learning with additive parameter decomposition. arXiv preprint arXiv:1902.09432, 2019.
233
+ [45] Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. arXiv preprint arXiv:1708.01547, 2017.
234
+ [46] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International Conference on Machine Learning, pages 3987–3995. PMLR, 2017.
parse/train/q1eCa1kMfDd/q1eCa1kMfDd_content_list.json ADDED
@@ -0,0 +1,1039 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Flattening Sharpness for Dynamic Gradient Projection Memory Benefits Continual Learning ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 207,
8
+ 122,
9
+ 792,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Danruo Deng1, Guangyong Chen2∗, Jianye $\\mathbf { H a o ^ { 3 , 4 } }$ , Qiong Wang2, Pheng-Ann Heng1,2 1The Chinese University of Hong Kong, 2Guangdong-Hong Kong-Macao Joint Laboratory of Human-Machine Intelligence-Synergy Systems, Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, 3College of Intelligence and Computing, Tianjin University, 4Huawei Noah’s Ark Lab {drdeng,pheng}@cse.cuhk.edu.hk, {gy.chen, wangqiong}@siat.ac.cn, jianye.hao@tju.edu.cn ",
17
+ "bbox": [
18
+ 186,
19
+ 224,
20
+ 812,
21
+ 325
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 361,
32
+ 535,
33
+ 376
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The backpropagation networks are notably susceptible to catastrophic forgetting, where networks tend to forget previously learned skills upon learning new ones. To address such the ’sensitivity-stability’ dilemma, most previous efforts have been contributed to minimizing the empirical risk with different parameter regularization terms and episodic memory, but rarely exploring the usages of the weight loss landscape. In this paper, we investigate the relationship between the weight loss landscape and sensitivity-stability in the continual learning scenario, based on which, we propose a novel method, Flattening Sharpness for Dynamic Gradient Projection Memory (FS-DGPM). In particular, we introduce a soft weight to represent the importance of each basis representing past tasks in GPM, which can be adaptively learned during the learning process, so that less important bases can be dynamically released to improve the sensitivity of new skill learning. We further introduce Flattening Sharpness (FS) to reduce the generalization gap by explicitly regulating the flatness of the weight loss landscape of all seen tasks. As demonstrated empirically, our proposed method consistently outperforms baselines with the superior ability to learn new skills while alleviating forgetting effectively.2. ",
40
+ "bbox": [
41
+ 232,
42
+ 393,
43
+ 766,
44
+ 614
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 641,
55
+ 310,
56
+ 659
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Humans have the ability to continually learn new knowledge without forgetting their previously learned ones through mediating a rich set of neurocognitive mechanisms [41, 15, 39]. This ability, often known as continual learning or lifelong learning [29], is crucial for computational systems, such as deep neural networks (DNNs), which are required to sequentially learn and deal with multiple tasks when implemented in the dynamically changing environment. Continual learning remains a long-standing challenge for DNNs since these networks are typically trained with stationary training batches by stochastic gradient descent methods [19], which generally leads to an abrupt performance decrease on previously learned tasks as new tasks are learned. To address such catastrophic forgetting, we can brutally retrain an oracle network on the entire dataset containing all tasks to capture dynamic changes in the data distribution, but this methodology is obviously too inefficient to hinder the learning of novel data in real time. ",
63
+ "bbox": [
64
+ 174,
65
+ 672,
66
+ 825,
67
+ 825
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "During the last few years, lots of research efforts have been devoted to improving the stability of DNNs on old tasks while keeping sensitive to new information. The first intuitive idea is to introduce an independent branch for each new task while freezing the old task parameters to preserve the old knowledge [33, 45, 43, 25, 35, 22]. However, in this way, the network will inevitably become redundant as the task number continually increases. As presented in the neurocognitive works [41, 15], the reactivation of neuronal activity patterns, representing old memories, plays an important role in the continual learning of humans [39]. Thus, forgetness can be effectively mitigated by training a single network for new tasks by considering diverse information stored in the memory, including the original training samples of old tasks [31, 5, 13], the gradients induced from old tasks [9] and the feature subspace representing old tasks [34]. However, their continual learning performance is still limited because DNNs can easily overfit the limited information stored in the small-size memory. ",
74
+ "bbox": [
75
+ 178,
76
+ 832,
77
+ 821,
78
+ 861
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 90,
88
+ 825,
89
+ 215
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The overfitting problem of DNNs is often attributed to the complex loss landscape containing multiple local optima, and the sharpness of the loss landscape has been widely used to characterize the generalization gap in standard training scenarios from both theoretical and empirical perspectives [27, 21, 42, 10, 6]. While this characterization has inspired new approaches for model training with better generalization, practical algorithms that especially seek out flatter minima to effectively address the ’sensitivity-stability’ dilemma for continual learning have thus far been elusive. In this paper, our first contribution is to characterize the weight loss landscape for the continual learning scenario and identify that a flatter loss landscape with lower loss value often leads to better continual learning performance, as shown in Figure 1 and Figure 3. ",
96
+ "bbox": [
97
+ 174,
98
+ 222,
99
+ 825,
100
+ 347
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Further, based on our characterization of the weight loss landscape, we find that the recently proposed Gradient Projection Memory (GPM) method [34] maintains the lowest loss value on old tasks among the previously proposed methods by taking gradient steps orthogonal to the subspace representing old tasks. However, its loss landscape on newly learned tasks is the sharpest due to the lack of sufficient subspace left for new task learning. To improve the network’s sensitivity, our second contribution is to predict the importance of bases spanning the subspace for old tasks, so that less important bases can be dynamically released. In particular, we introduce a soft weight to indicate the bases importance, which can be dynamically adjusted by combining the Flattening Sharpness $( F S )$ to minimize the loss value and loss sharpness simultaneously. Intuitively, a basis will be regarded as important for preserving old knowledge if the gradients induced by new tasks and old ones are aligned in the opposite direction on that basis. As demonstrated through extensive experiments, our proposed method can consistently outperform the state-of-the-art methods [17, 30, 24, 31, 5, 13, 34] by a notable margin across a range of widely used benchmark datasets. ",
107
+ "bbox": [
108
+ 174,
109
+ 353,
110
+ 825,
111
+ 532
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 Related Work ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 174,
121
+ 558,
122
+ 321,
123
+ 575
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "In this section, we briefly survey the representative works of continual learning by highlighting their contributions. To simplify our presentation, this section is organized by dividing the representative works into three categories, parameter isolation, regularization-based, memory-based methods. ",
130
+ "bbox": [
131
+ 174,
132
+ 593,
133
+ 825,
134
+ 636
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Parameter isolation methods address forgetting by assigning a different subset of network parameters to each task. Without restrictions on network architecture, new neurons or layers or modules can be added for new tasks, while the previous task parameters can be frozen or copied to preserve old knowledge. For instance, Progressive Neural Network (PGN) [33] freezes the parameters trained with previous knowledge while expands the architecture by allocating new sub-networks with fixed capacity for new tasks. Dynamically Expandable Networks (DEN) [45] selectively retrains or expands network capacity by splitting/duplicating important units on new tasks. Reinforced Continual Learning (RCL) [43] uses reinforcement learning strategy to adaptively expand the network of each layer, while [22] use neural architecture search to find optimal network structures for each sequential task. Alternatively, with the architecture remaining static, a fixed part is allocated to each task. During the training of a new task, previous task parts are masked out to prevent interference. The mask sets are imposed at parameter level [25], or unit level [35]. PackNet [25] uses iterative pruning to fully restrict gradient updates on important weights via a binary mask, whereas HAT [35] limits the update of important units recognized by the hard attention mask through gradient backpropagation. ",
141
+ "bbox": [
142
+ 174,
143
+ 641,
144
+ 825,
145
+ 835
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Regularization-based methods introduce an additional regularization term in the loss function to consolidate previous knowledge without using replay. This involves using knowledge distillation [23, 14] or penalizing changes in weights deemed important for previous tasks [17, 46, 28, 2, 3] to reduce forgetting. There are many ways to measure the importance. Elastic Weight Consolidation (EWC) [17] identifies important weights based on the diagonal values of Fisher information matrix after training, while Synaptic Intelligence (SI) [46] calculates them online and over the entire learning trajectory in parameter space. Memory Aware Synapses (MAS) [2] estimates importance weights in an unsupervised manner, while Variational Continual Learning (VCL) [28] introduces a variational framework that spawned some Bayesian-based works [32, 8, 1, 7]. For example, [32] recursively uses a Gaussian Laplace approximation of the Hessian to approximate the posterior after every task, [8] adjusts the learning rate according to the uncertainty defined by the probability distribution of the network weights. [1] introduces an interpretation of node-wise uncertainty on the Kullback-Leibler (KL) divergence term of the variational lower bound for Gaussian mean-field approximation. ",
152
+ "bbox": [
153
+ 174,
154
+ 842,
155
+ 823,
156
+ 911
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 174,
165
+ 90,
166
+ 825,
167
+ 202
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Our method mainly follows memory-based methods, which mitigate forgetting based on information extracted from old tasks or based on a generative model to generate pseudo samples. For example, iCaRL [30] selects and stores samples closest to the feature mean of each class. ER [5, 31] suggests reservoir sampling under the limited and fixed budget for replay buffer. Deep Generative Replay (DGR) [36] trains a deep generative model in the Generative Adversarial Network (GAN) framework [11] to simulate past data. These previous task samples are mainly reused as model inputs for replay in the above methods. However, replay might be prone to overfitting the subset of stored samples. Alternatively, samples stored in memory can also be used to constrain the optimization of the new task loss to prevent previous task interference, thereby leaving more leeway for backward and forward transfer. Gradient Episodic Memory (GEM) [24] projects the estimated gradients in the feasible region, which is outlined by previous task gradients calculated from the episodic memory samples. Averaged-GEM (A-GEM) [4] relaxes the projection to a direction that is estimated from samples randomly selected from memory. [12] proposes a unified view of episodic memory-based continual learning methods, including GEM and A-GEM, and improves performance over these methods by using a loss-balancing update scheme. A few other works have utilized gradient information to protect previous knowledge. [31, 13] adopt optimization-based meta-learning to enforce gradient alignment between samples from different tasks. GPM [34] minimizes interference between sequential tasks by ensuring that gradient updates only occur in directions orthogonal to the input of previous tasks. ",
174
+ "bbox": [
175
+ 173,
176
+ 208,
177
+ 825,
178
+ 457
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "3 The Weight Loss Landscape of Continual Learning ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 174,
188
+ 477,
189
+ 632,
190
+ 494
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "In this section, we first introduce our formulation of continual learning, and then characterize the weight loss landscape for the continual learning scenario from stability and sensitivity. Finally, some insights combining the weight loss landscape and continual learning are provided. ",
197
+ "bbox": [
198
+ 174,
199
+ 508,
200
+ 825,
201
+ 551
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "3.1 Problem Formulation ",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 174,
211
+ 568,
212
+ 364,
213
+ 583
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "Throughout the paper, we denote scalars as $a$ , vectors as $\\textbf { \\em a }$ , matrices as $\\pmb { A }$ , and sets as $\\mathcal { A }$ . We consider a supervised learning setup where $T$ tasks are sequentially learned from their training data. Each task has an identical task descriptor, $\\tau \\in \\{ 1 , 2 , \\ldots , T \\}$ , with its dataset $\\mathscr { D } _ { \\tau } = \\{ \\pmb { x } _ { i , \\tau } , y _ { i , \\tau } \\} _ { i = 1 } ^ { n _ { \\tau } }$ containing $n _ { \\tau }$ samples randomly generated from a latent distribution $\\mathcal { D } _ { \\tau }$ . At any time-step during the learning process, we minimize the empirical risk of the model on all $t$ tasks seen so far, with just limited size of memory $\\mathcal { M }$ to summarize the training data of previous tasks $\\{ \\mathcal { D } _ { \\tau } \\} _ { \\tau = 1 } ^ { t - 1 }$ . To simplify the notation, we denote $\\begin{array} { r } { L _ { \\mathcal { A } } ( \\pmb { w } ) = \\frac { 1 } { | \\mathcal { A } | } \\sum _ { ( \\pmb { x } , \\pmb { y } ) \\in \\mathcal { A } } \\left[ \\ell \\left( f _ { \\pmb { w } } \\left( \\pmb { x } \\right) , \\pmb { y } \\right) \\right] } \\end{array}$ as the average empirical loss for the set , where $\\ell ( \\cdot , \\cdot )$ is an arbitrary loss function (e.g. the cross-entropy (CE) loss), $| { \\cal A } |$ is the sample size of the set $\\mathcal { A }$ , and $f _ { w }$ is the DNN with weight $\\textbf { \\em w }$ . Our final goal is to find an optimal parameter $\\pmb { w }$ , which minimizes the overall risk $\\scriptstyle \\sum _ { \\tau = 1 } ^ { T } L _ { \\mathcal { D } _ { \\tau } } ( \\pmb { w } )$ for all tasks. ",
220
+ "bbox": [
221
+ 173,
222
+ 593,
223
+ 825,
224
+ 742
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "3.2 Connection of Weight Loss Landscape and Continual Learning ",
231
+ "text_level": 1,
232
+ "bbox": [
233
+ 174,
234
+ 757,
235
+ 651,
236
+ 773
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "After learning a new task, we visualize the weight loss landscape of each task seen so far by plotting changes in its training loss when moving the weights $\\pmb { w }$ in a random direction $^ d$ with magnitude $\\alpha$ following [21]: ",
243
+ "bbox": [
244
+ 174,
245
+ 784,
246
+ 825,
247
+ 825
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "equation",
253
+ "img_path": "images/0cf543168bc901a43cda573b70ad79cac9dfa5c3490678689a90c6aa0e768953.jpg",
254
+ "text": "$$\ng _ { t } ( \\alpha ) = L _ { \\mathcal { D } _ { t } } ( \\pmb { w } + \\alpha \\pmb { d } ) = \\frac { 1 } { | \\mathcal { D } _ { t } | } \\sum _ { ( \\pmb { x } , \\pmb { y } ) \\in \\mathcal { D } _ { t } } \\ell \\left( f _ { \\pmb { w } + \\alpha d } \\left( \\pmb { x } \\right) , \\pmb { y } \\right) ,\n$$",
255
+ "text_format": "latex",
256
+ "bbox": [
257
+ 303,
258
+ 832,
259
+ 692,
260
+ 872
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "where $\\mathcal { D } _ { t }$ is the training set for the $t$ -th task previously learned. To eliminate the scaling invariance of DNNs, $^ d$ is sampled from a Gaussian distribution and further normalized by $\\begin{array} { r } { \\pmb { d } _ { l , j } \\frac { \\mathbf { \\bar { d } } _ { l , j } } { \\| \\pmb { d } _ { l , j } \\| _ { F } } \\| \\pmb { w } _ { l , j } \\| _ { F } } \\end{array}$ where $d _ { l , j }$ represents the $j$ -th filter at $l$ -th layer of $^ d$ , and $\\left\\| \\cdot \\right\\| _ { F }$ denotes the Frobenius norm. Compared with our visualization, [26] only consider one task and plot the loss landscape along the directions of its Hessian eigenvectors, which only reflects some of the relationship between forgetting and landscape. Considering $^ d$ is randomly selected, we repeat the visualization 10 times with different $^ d$ ",
267
+ "bbox": [
268
+ 173,
269
+ 878,
270
+ 823,
271
+ 914
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "image",
277
+ "img_path": "images/fd37d0fd577ccb1d848a629a229d31c87841d79be1d0b99c0f1ac596de52444b.jpg",
278
+ "image_caption": [
279
+ "Figure 1: The connection between the weight loss landscape and continual learning is investigated on four methods. (a)-( c) shows the stability of the first task. (a) is the test accuracy change curve of the first task; (b) and (c) are the weight loss landscape of the first task after learning the fifth task and all ten tasks. (d)-(e) shows the sensitivity of the fifth task, which are the test accuracy and the weight loss landscape of the fifth task after just learning the fifth task. The shape of the weight loss landscape obtained using ten different random filter-normalized directions. ( $\" \\mathrm { T } i \"$ is abbr. of the $i$ -th task) "
280
+ ],
281
+ "image_footnote": [],
282
+ "bbox": [
283
+ 176,
284
+ 90,
285
+ 821,
286
+ 184
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "",
293
+ "bbox": [
294
+ 174,
295
+ 295,
296
+ 825,
297
+ 352
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "We first study the stability of the network by plotting changes of the weight loss landscape for the first task after new task learning. In particular, We use the previously proposed ER [5], La-MAML [13], and GPM [34] to train a MLP network with two hidden layers on the Permuted MNIST (PMNIST) [20] dataset that contains 10 tasks. We also retrain the network on the entire dataset contain all passed tasks as an Oracle network. Early stopping is used to halt the training with up to 10 epochs for each task based on the validation loss as proposed in [35]. As shown in Figure 1(a), all three continual learning methods lose their stability as learning new tasks. It can be observed from Figure 1(b)-(c) that the weight loss landscape becomes sharper and loss value increases simultaneously, when the testing accuracy of the first task continually decreases. We further evaluate the sensitivity of the network by observing the performance of the fifth task just after it has just been learned. As shown in Figure 1(d)-(e), ER shows the best learning capability compared with other methods with the lowest loss value and the flattest loss landscape. Thus, based on these empirical findings, we assume that lower loss value with a flatter neighbor may lead to better continual learning performance. ",
304
+ "bbox": [
305
+ 174,
306
+ 358,
307
+ 825,
308
+ 537
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "3.3 A Case Study of Flattening Sharpness for Vanilla ER ",
315
+ "text_level": 1,
316
+ "bbox": [
317
+ 173,
318
+ 554,
319
+ 580,
320
+ 569
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "In this part, we further validate our above assumption by Flattening Sharpness for vanilla ER (FS-ER). Compared with ER that looks for a solution $\\pmb { w }$ that jointly minimizes the training loss of current task data and memory data, FS-ER seeks out a solution with both low loss and flat neighbor by minimizing the maximal loss in the neighbor around the parameter value. The schematic of the Flattening Sharpness (FS) is shown in Figure 2. We introduce the adversarial weight perturbation (orange dashed line) to explicitly flatten the weight loss landscape via injecting the worst-case weight perturbation, which is calculated from the current task data and past task data sampled from the replay buffer (Refer to Appendix C.1 and the next section for more details). Figure 3 respectively shows the weight loss landscapes of the fifth task after just learning the fifth task and all tasks. We find that FS-ER successfully gets a solution with a lower loss value and flatter landscape, either after the fifth task has just been learned or all ten tasks have been learned. The average testing accuracy of all tasks using FS-ER is $9 0 . 4 4 \\%$ , significantly higher than ER $( 8 6 . 1 6 \\% )$ , which means that flattening sharpness does benefit continual learning. ",
327
+ "bbox": [
328
+ 174,
329
+ 579,
330
+ 517,
331
+ 911
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "image",
337
+ "img_path": "images/2e3f3ddf535810155a992fc66e3895a7221d3a75c0786f35ade9210a2420a872.jpg",
338
+ "image_caption": [
339
+ "Figure 2: Schematic of FS-ER update. The dashed line and the solid line indicate the gradient ascent and descent, respectively. Orange denotes the actual update of the parameter $\\pmb { w }$ "
340
+ ],
341
+ "image_footnote": [],
342
+ "bbox": [
343
+ 552,
344
+ 584,
345
+ 797,
346
+ 707
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "image",
352
+ "img_path": "images/b58c7460443734cc64e08af56719f4753f34ebec8f27068bdfe89caa7994dc81.jpg",
353
+ "image_caption": [
354
+ "Figure 3: Landscape of the fifth task after just learning (a) the fifth task and (b) all ten tasks. "
355
+ ],
356
+ "image_footnote": [],
357
+ "bbox": [
358
+ 532,
359
+ 780,
360
+ 818,
361
+ 882
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "4 Flattening Sharpness for Dynamic Gradient Projection Memory ",
368
+ "text_level": 1,
369
+ "bbox": [
370
+ 174,
371
+ 88,
372
+ 738,
373
+ 107
374
+ ],
375
+ "page_idx": 4
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "As shown in Figure 1, GPM achieves the highest testing accuracy on old tasks among all three practical continual learning methods, but shows less sensitivity to new task learning. To address this issue, we propose Flattening Sharpness for Dynamic GPM (FS-DGPM), which dynamically adjusts the gradient subspace representing the past tasks to improve the sensitivity to the new task, while ensuring stability of the previous tasks. In particular, we let $M = [ \\pmb { u } _ { 1 } , \\pmb { u } _ { 2 } , \\cdot \\cdot \\cdot , \\pmb { u } _ { k } ]$ denote the bases matrix that spans the gradient subspace of the previous task, $\\pmb { \\Lambda } = \\mathrm { d i a g } [ \\lambda _ { 1 } , \\lambda _ { 2 } , . . . , \\lambda _ { k } ]$ be the diagonal matrix with its $i$ -th diagonal element $\\lambda _ { i } \\in [ 0 , 1 ]$ indicating the importance of each basis, and $k$ is the number of bases. ",
380
+ "bbox": [
381
+ 173,
382
+ 119,
383
+ 825,
384
+ 231
385
+ ],
386
+ "page_idx": 4
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "4.1 Sharpness Evaluation ",
391
+ "text_level": 1,
392
+ "bbox": [
393
+ 174,
394
+ 247,
395
+ 364,
396
+ 262
397
+ ],
398
+ "page_idx": 4
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Comparing with the classical strategy that perturbs weight in the entire space [40, 16, 42, 10], we focus on characterizing the weight loss landscape on the new task with respect to the important subspace representing old task. The important subspace can be effectively calculated based on the examples sampled from replay buffer $\\mathcal { M }$ after each task training. Then, we can find the worst case by maximizing the training loss of the network on the new task in this subspace. Formally, the sharpness of the loss landscape around the solution $\\textbf { \\em w }$ in the old parameter space can be predicted as, ",
403
+ "bbox": [
404
+ 173,
405
+ 272,
406
+ 825,
407
+ 356
408
+ ],
409
+ "page_idx": 4
410
+ },
411
+ {
412
+ "type": "equation",
413
+ "img_path": "images/a885f3df2ee29aa1ff9d96dd9ac8b0eb91d431a9dc07fb1b433fc0cb30661ec2.jpg",
414
+ "text": "$$\n\\operatorname* { m a x } _ { \\pmb { v } \\in \\mathcal { V } } L _ { \\hat { \\mathcal { D } } _ { t } } \\left( \\pmb { w } + \\pmb { v } \\right) ,\n$$",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 424,
418
+ 362,
419
+ 571,
420
+ 386
421
+ ],
422
+ "page_idx": 4
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "where $\\nu$ denotes the subspace spanned by $M$ and $\\pmb { \\Lambda }$ , and $\\hat { \\mathcal { D } } _ { t }$ denotes the batch samples of the current $t$ -th task. As shown in Eq. (1), the high value can be obtained when the network fails to learn the new task (sensitivity) and the new task learning seriously interferes with the past tasks learning (stability). Based on the gradient method, the adversarial weight perturbation $\\pmb { v }$ can be solved as, ",
427
+ "bbox": [
428
+ 173,
429
+ 393,
430
+ 826,
431
+ 452
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "equation",
437
+ "img_path": "images/ee3c67afa7009a5def4c9bf6711ed7fec57055063dd72c06dd0375e6d28424b0.jpg",
438
+ "text": "$$\n\\pmb { v } \\pmb { v } + \\eta _ { 1 } \\pmb { M } \\pmb { \\Lambda } \\pmb { M } ^ { T } ( \\nabla _ { ( \\pmb { w } + \\pmb { v } ) } L _ { \\hat { \\mathcal { D } } _ { t } } ( \\pmb { w } + \\pmb { v } ) ) ,\n$$",
439
+ "text_format": "latex",
440
+ "bbox": [
441
+ 341,
442
+ 457,
443
+ 655,
444
+ 484
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "where $\\eta _ { 1 }$ is the update step size. Note that $\\textbf { { v } }$ is initialized as 0 and layer-wise updated. As shown in Appendix $\\mathrm { E }$ , two-step for $\\textbf { { v } }$ (default settings) are enough to get good improvements. ",
451
+ "bbox": [
452
+ 173,
453
+ 488,
454
+ 823,
455
+ 518
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "4.2 Dynamic Gradient Projection Memory ",
462
+ "text_level": 1,
463
+ "bbox": [
464
+ 174,
465
+ 532,
466
+ 482,
467
+ 549
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "After obtaining the adversarial weight perturbation $\\textbf { { v } }$ , we can further update the bases importance matrix $\\pmb { \\Lambda } = \\mathrm { d i a g } [ \\lambda _ { 1 } , \\lambda _ { 2 } , . . . , \\lambda _ { k } ]$ by jointly considering the current task batch $\\hat { \\mathcal { D } } _ { t }$ and the batch $\\hat { \\mathcal { M } }$ sampled from the replay buffer $\\mathcal { M }$ as following, ",
474
+ "bbox": [
475
+ 173,
476
+ 558,
477
+ 825,
478
+ 603
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "img_path": "images/7b49f3213fc057863159417f5e61106cc8ce8962ec7493248dda3a216c10417b.jpg",
485
+ "text": "$$\n\\lambda _ { i } \\lambda _ { i } - \\eta _ { 2 } ( \\nabla _ { \\lambda _ { i } } L _ { \\hat { \\mathcal { D } } _ { t } \\cup \\hat { \\mathcal { M } } } ( \\pmb { w } + \\pmb { v } ) ) ,\n$$",
486
+ "text_format": "latex",
487
+ "bbox": [
488
+ 369,
489
+ 608,
490
+ 627,
491
+ 636
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "where the sigmoid function is used at the end of gradient update to constrain the importance value $\\lambda _ { i }$ between 0 and 1. In addition, the second term on the right side in Eq. (3) can be approximated by the first-order Taylor expansion as, ",
498
+ "bbox": [
499
+ 173,
500
+ 641,
501
+ 828,
502
+ 684
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "equation",
508
+ "img_path": "images/920c172093fc49828f5aa429ea4120e251ff7ca56b0dec6d9e5bb9567d1ade9d.jpg",
509
+ "text": "$$\n\\nabla _ { \\lambda _ { i } } L _ { \\hat { \\mathcal { D } } _ { t } \\cup \\hat { \\mathcal { M } } } ( { \\boldsymbol w } + { \\boldsymbol v } ) \\approx \\eta _ { 1 } \\left( \\nabla _ { { \\boldsymbol w } } L _ { \\hat { \\mathcal { D } } _ { t } } \\left( { \\boldsymbol w } \\right) \\right) ^ { T } \\mathbf { { u } } _ { i } \\boldsymbol u _ { i } ^ { T } \\left( \\nabla _ { { \\boldsymbol w } } L _ { \\hat { \\mathcal { D } } _ { t } \\cup \\hat { \\mathcal { M } } } \\left( { \\boldsymbol w } \\right) \\right) .\n$$",
510
+ "text_format": "latex",
511
+ "bbox": [
512
+ 264,
513
+ 689,
514
+ 733,
515
+ 719
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "The above equation characterizes the relationship between the gradients induced by the current task and the old tasks based on the basis $\\mathbf { \\delta } \\mathbf { u } _ { i }$ . As illustrated in the Figure 4, this equation implies that when the projections of two gradients on the basis $\\mathbf { \\delta } \\mathbf { u } _ { i }$ are aligned in the same direction, the gradient of $\\lambda _ { i }$ will be positive, and when there is interference, the gradient will be negative. The positive (negative) gradient will decrease (increase) the importance $\\lambda _ { i }$ , thereby releasing (tightening) the update limit of the new task on the corresponding ",
522
+ "bbox": [
523
+ 173,
524
+ 731,
525
+ 498,
526
+ 883
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "image",
532
+ "img_path": "images/0c65063f71562cc6c18285cf0a8ea38b34c5439409e5823be9b371fd66973c10.jpg",
533
+ "image_caption": [
534
+ "Figure 4: A depiction of transfer (a) and interference (b) in the basis $\\textbf { \\em u }$ of gradient space. "
535
+ ],
536
+ "image_footnote": [],
537
+ "bbox": [
538
+ 517,
539
+ 753,
540
+ 818,
541
+ 830
542
+ ],
543
+ "page_idx": 4
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "basis $\\mathbf { \\delta } \\mathbf { u } _ { i }$ . We provide the full derivation in the Appendix A.2. Note that the initial value of all importance is set to 1 and dynamically adjusted from the second task. ",
548
+ "bbox": [
549
+ 173,
550
+ 883,
551
+ 825,
552
+ 911
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "4.3 Weight Updating ",
559
+ "text_level": 1,
560
+ "bbox": [
561
+ 174,
562
+ 90,
563
+ 333,
564
+ 106
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Finally, we update the model parameters by minimizing the worst performance of $f _ { w + v }$ with respect to $\\textbf { \\em w }$ , while adjusting the update magnitude of $\\pmb { w }$ on each basis based on its importance to alleviate forgetting. More concretely, the parameter $\\textbf { \\em w }$ will be updated to: ",
571
+ "bbox": [
572
+ 173,
573
+ 116,
574
+ 823,
575
+ 159
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "equation",
581
+ "img_path": "images/27590f64dcd27cbf02fda2132f4c1a17a2d674081acbe4608e6c719480b419dd.jpg",
582
+ "text": "$$\n\\pmb { w } \\pmb { w } - \\eta _ { 3 } ( \\pmb { I } - \\pmb { M } \\pmb { \\Lambda } \\pmb { M } ^ { T } ) \\nabla _ { \\pmb { w } } L _ { \\hat { D } _ { t } \\cup \\hat { \\mathcal { M } } } ( \\pmb { w } + \\pmb { v } ) .\n$$",
583
+ "text_format": "latex",
584
+ "bbox": [
585
+ 323,
586
+ 164,
587
+ 673,
588
+ 191
589
+ ],
590
+ "page_idx": 5
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "Note that the optimization is performed over the model parameters $\\pmb { w }$ , whereas the objective is computed using perturbed model $f _ { w + v }$ . In addition, we update the replay buffer $\\mathcal { M }$ with reservoir sampling as in [31], and then use Singular Value Decomposition (SVD) to recalculate $M$ based on the sampling data in the replay buffer after learning one task following GPM [34]. Comparing with [34], we calculate the important bases in the entire gradient space and use them to replace the bases calculated last time. Besides that, our method degenerates to GPM when $\\eta _ { 1 }$ and $\\eta _ { 2 }$ are set to 0. The complete pseudo-code of FS-DGPM is outlined in the Algorithm 1. ",
595
+ "bbox": [
596
+ 173,
597
+ 196,
598
+ 826,
599
+ 295
600
+ ],
601
+ "page_idx": 5
602
+ },
603
+ {
604
+ "type": "table",
605
+ "img_path": "images/11f8d88b3416a939e9ec3781d82cb0c44d506c47e6da5d489773b58becaa53bd.jpg",
606
+ "table_caption": [
607
+ "Algorithm 1 FS-DGPM (Flattening Sharpness for Dynamic Gradient Projection Memory) "
608
+ ],
609
+ "table_footnote": [],
610
+ "table_body": "<table><tr><td>weight step size n2,batch size b. InitializingM←{},M←I,△←I fort=1,2,.,Tdo for ep = 1,2,... , numepochs do</td><td>Input: Network weight w,loss function l, learning rate n3,FS step size 71,FS steps K, Soft</td></tr><tr><td>for batch Dt Dt do MM</td><td></td></tr><tr><td>for k =1,.·,K do v ←v+niMAMT (V(w+v)Lb(w+ v))</td><td> Sharpness Evaluation</td></tr><tr><td>end for if t ≥ 2 then</td><td></td></tr><tr><td>△ ← △-n2(∀ALD:UM(ω+ ν))</td><td> Dynamic Gradient Projection Memory</td></tr><tr><td>end if w ← w - n3 (1 - MAMT) VwLDtUm(w+v)</td><td> Weight updating</td></tr><tr><td></td><td></td></tr><tr><td>Push Dt to M with reservior sampling</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td>end for</td><td></td></tr><tr><td></td><td></td></tr><tr><td>M ←UpdateGPM (M)</td><td></td></tr><tr><td></td><td>V see Appendix Alg. 2</td></tr><tr><td></td><td></td></tr><tr><td>end for</td><td></td></tr></table>",
611
+ "bbox": [
612
+ 173,
613
+ 327,
614
+ 826,
615
+ 622
616
+ ],
617
+ "page_idx": 5
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "4.4 Theoretical Understanding ",
622
+ "text_level": 1,
623
+ "bbox": [
624
+ 173,
625
+ 645,
626
+ 401,
627
+ 661
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "We further provide a theoretical view on why landscape can characterize the continual learning performance and why our proposed FS-DGPM works. To simplify our explanation, we only consider two tasks, which contains the training sets $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ sampled from the distributions $\\mathcal { D } _ { 1 }$ and $\\mathcal { D } _ { 2 }$ , respectively. Based on the previous works on PAC-Bayes bound [27, 42, 10], given a \"prior\" distribution $P$ (a common assumption is zero mean, $\\sigma ^ { 2 }$ variance Gaussian distribution) over the weights, the expected error of the classifier for the continual learning scenario can be bounded with probability at least $1 - \\delta$ over the draw of $n$ training data: ",
634
+ "bbox": [
635
+ 174,
636
+ 671,
637
+ 825,
638
+ 768
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "equation",
644
+ "img_path": "images/e200765fb1e7a4988dbdde787b8d451146a26fcd2339b7e566f7983972487f99.jpg",
645
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\operatorname* { m i n } _ { \\Delta w } \\mathbb { E } _ { v } \\left[ L _ { \\mathcal { D } _ { 1 } \\cup \\mathcal { D } _ { 2 } } ( w + \\Delta w + v ) \\right] \\leq \\displaystyle \\operatorname* { m i n } _ { \\Delta w \\in \\mathcal { V } ^ { \\mathcal { C } } } \\mathbb { E } _ { v } \\left[ L _ { \\mathcal { D } _ { 1 } } ( w + \\Delta w + v ) \\right] + L _ { \\mathcal { D } _ { 2 } } ( w + \\Delta w ) } \\\\ { \\displaystyle + \\operatorname* { m a x } _ { v \\in \\mathcal { V } } L _ { \\mathcal { D } _ { 2 } } ( w + \\Delta w + v ) - L _ { \\mathcal { D } _ { 2 } } ( w + \\Delta w ) + 4 \\sqrt { \\frac { 1 } { n } \\left( K L ( w + \\Delta w + v | | P ) + \\ln \\frac { 2 n } { \\delta } \\right) } . } \\end{array}\n$$",
646
+ "text_format": "latex",
647
+ "bbox": [
648
+ 192,
649
+ 773,
650
+ 805,
651
+ 844
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "where $\\Delta w$ is the update based on the previously optimal solution $\\pmb { w }$ learned on the old task $\\mathcal { D } _ { 1 }$ when learning the new one $\\mathcal { D } _ { 2 }$ , and $\\textbf { { v } }$ is often chosen as a zero mean spherical Gaussian perturbation with variance $\\sigma ^ { 2 }$ in every direction. Let $\\Delta w \\in \\mathcal { V } ^ { C }$ , then $\\Delta w$ lies in the complementary space of the important space representing the old task $\\mathcal { D } _ { 1 }$ , so that $\\mathbb { E } _ { \\pmb { v } } \\left[ L _ { \\mathcal { D } _ { 1 } } ( \\pmb { w } + \\Delta \\pmb { w } + \\bar { \\pmb { v } } ) \\right]$ does not increase too much compared with the previously minimized $\\mathbb { E } _ { v } \\left[ L _ { \\mathcal { D } _ { 1 } } ( \\pmb { w } + \\pmb { v } ) \\right]$ . The second term denotes the empirical loss on the second task and the third term represents the sharpness of the weight loss landscape around the $\\mathbf { \\Delta } w + \\Delta w$ . Since we have constrained $\\Delta w \\in \\mathcal { V } ^ { C }$ , then it is natural to assume $\\pmb { v } \\in \\mathcal { V }$ , so that $\\Delta w + v$ will cover the full space. Thus, our FS-DGPM exactly optimizes the worstcase of the flatness of weight loss landscape to control the PAC-Bayes bound, which theoretically justifies both lower loss value and flatter landscape lead to better continual learning performance, and why our proposed FS-DGPM works. ",
658
+ "bbox": [
659
+ 174,
660
+ 854,
661
+ 823,
662
+ 912
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "",
669
+ "bbox": [
670
+ 174,
671
+ 90,
672
+ 825,
673
+ 188
674
+ ],
675
+ "page_idx": 6
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "5 Experiments ",
680
+ "text_level": 1,
681
+ "bbox": [
682
+ 174,
683
+ 214,
684
+ 312,
685
+ 232
686
+ ],
687
+ "page_idx": 6
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "In this section, we conduct extensive experiments to compare the performance of our proposed FS-DGPM model with the state-of-the-art methods on widely used continual learning benchmark datasets. Additional results and more details about the datasets, experiment setup, baselines, and model architectures are presented in the Appendix D and E. ",
692
+ "bbox": [
693
+ 174,
694
+ 251,
695
+ 825,
696
+ 306
697
+ ],
698
+ "page_idx": 6
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "5.1 Experimental Setup ",
703
+ "text_level": 1,
704
+ "bbox": [
705
+ 174,
706
+ 330,
707
+ 351,
708
+ 345
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "Datasets: We evaluate our algorithm on four image classification datasets: Permuted MNIST (PMNIST) [20], CIFAR-100 Split [18], CIFAR-100 Superclass [44] and TinyImageNet [37]. The PMNIST dataset is a variant of the MNIST dataset, in which each task applies a fixed random pixel permutation to the original dataset. The PMNIST benchmark dataset consists of 20 tasks, and each contains only 1000 samples from 10 different classes [13]. The CIFAR-100 Split is constructed by randomly dividing 100 classes of CIFAR-100 into 10 tasks with 10 classes per task. The CIFAR-100 Superclass is divided into 20 tasks according to the 20 superclasses of the CIFAR-100 dataset, and each superclass contains 5 different but semantically related classes. Whereas, TinyImageNet is constructed by splitting 200 classes into 40 5-way classification tasks. In our experiments, we do not use any data augmentation. The dataset statistics are given in Appendix D.1. ",
715
+ "bbox": [
716
+ 173,
717
+ 359,
718
+ 825,
719
+ 497
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "Network Architecture: For PMNIST, we use a fully connected network with two hidden layers of 100 units each following [24]. For experiments of CIFAR-100 Split and CIFAR-100 Superclass, we use a 5-layer AlexNet and LeNet architecture similar to [34] respectively. For TinyImageNet, we use the same network architecture as [13], which consists of 4 conv layers and 3 fully connected layers. In PMNIST, all tasks share the final classifier layer, while other experiments use a multi-head incremental setting, that is, each task has a separate classifier. Refer to Appendix D.2 for more details. ",
726
+ "bbox": [
727
+ 174,
728
+ 520,
729
+ 826,
730
+ 603
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Baselines: We compare our method against multiple methods described below. (1) EWC [17], a regularization-based method that uses the diagonal of Fisher information to identify important weights; (2) ICARL [30], a memory-based method that uses knowledge-distillation and episodic memory to reduce forgetting; (3) GEM [24], another memory-based method that uses the gradient of episodic memory to constrain optimization to prevent forgetting; (4) ER [5], a simple and competitive method based on reservoir sampling; (5) La-MAML [13] and (6) GPM [34] are memory-based methods inspired by optimization-based meta-learning and based on gradient orthogonal constraints, respectively; (7) Multitask is an oracle baseline that all tasks are learned jointly using the entire dataset at once in a single network. Multitask is not a continual learning strategy but serves as an upper bound on average test accuracy on all tasks. ",
737
+ "bbox": [
738
+ 174,
739
+ 626,
740
+ 825,
741
+ 765
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "Training Details: All baselines and our method use stochastic gradient descent (SGD) for training. For each task in PMNIST and TinyImageNet, we train the network in 1 and 10 epochs, respectively, with the batch size as 10. These experimental settings are the same as La-MAML [13], so that we directly compare with their reported results. In the CIFAR-100 Split and CIFAR-100 Superclass experiments, we use the early termination strategy to train up to 50 epochs for each task, which is based on the validation loss as proposed in [35]. For both datasets, the batch size is set to 64. The replay buffer size of PMNIST, CIFAR-100 Split, CIFAR-100 Superclass, and TinyImageNet are 200, 1000, 1000, and 400, respectively. Details about the experimental setting and the hyperparameters considered for each baseline are provided in Appendix D.5 and D.6. ",
748
+ "bbox": [
749
+ 174,
750
+ 786,
751
+ 825,
752
+ 911
753
+ ],
754
+ "page_idx": 6
755
+ },
756
+ {
757
+ "type": "image",
758
+ "img_path": "images/4e073446d807c347d9eea6966f758b844a885215dc7d4c6ea9417ba0c8bc3f17.jpg",
759
+ "image_caption": [
760
+ "Figure 5: (a) Average accuracy as a function of the number of tasks trained on 20-Split CIFAR-100 Superclass. (b) Training time per task on 20-Split CIFAR-100 Superclass. (c) Memory usage on four datasets. (\"Superclass\" is abbr. of CIFAR-100 Superclass). "
761
+ ],
762
+ "image_footnote": [],
763
+ "bbox": [
764
+ 178,
765
+ 90,
766
+ 821,
767
+ 207
768
+ ],
769
+ "page_idx": 7
770
+ },
771
+ {
772
+ "type": "table",
773
+ "img_path": "images/20ac56fbecb6597b049d1d04f899a5dd9181e573f47d6f1243b1ced83fedbb8d.jpg",
774
+ "table_caption": [
775
+ "Table 1: Experimental results on 10-Split CIFAR-100, 20-Split CIFAR-100 Superclass and 40-Split TinyImageNet in 50 epochs. Each experiment is run with 5 seeds. † and ∗ denotes results reported by [13] and [44] respectively. "
776
+ ],
777
+ "table_footnote": [],
778
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">CIFAR-100 Split</td><td colspan=\"2\">CIFAR-100 Superclass</td><td colspan=\"2\">TinyImageNet</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>EWC</td><td>72.77 ± 0.45</td><td>-3.59 ± 0.55</td><td>50.26 ± 1.48</td><td>-7.87 ± 1.63</td><td></td><td></td></tr><tr><td>GEM</td><td>70.15 ± 0.34</td><td>-8.61 ± 0.42</td><td>50.35 ± 0.80</td><td>-9.50 ± 0.85</td><td>50.57 ± 0.61†</td><td>-20.50 ± 0.10+</td></tr><tr><td>ICARL</td><td>53.50 ± 0.81</td><td>-20.44 ± 0.82</td><td>49.05 ± 0.51</td><td>-11.24 ± 0.27</td><td>54.77 ± 0.32†</td><td>-3.93 ± 0.55†</td></tr><tr><td>ER</td><td>70.07 ± 0.35</td><td>-7.70 ± 0.59</td><td>51.64 ± 1.09</td><td>-7.86 ± 0.89</td><td>48.32 ± 1.51†</td><td>-19.86 ± 0.70t</td></tr><tr><td>La-MAML</td><td>71.37 ± 0.67</td><td>-5.39 ± 0.53</td><td>54.44 ± 1.36</td><td>-6.65 ± 0.85</td><td>66.90 ± 1.65†</td><td>-9.13 ± 0.90t</td></tr><tr><td>GPM</td><td>73.18 ± 0.52</td><td>-1.17 ± 0.27</td><td>57.33 ± 0.37</td><td>-0.37 ± 0.12</td><td>67.39 ± 0.47</td><td>1.45 ± 0.22</td></tr><tr><td>FS-DGPM</td><td>74.33 ± 0.31</td><td>-2.71 ± 0.17</td><td>58.81 ± 0.34</td><td>-2.97 ± 0.35</td><td>70.41 ± 1.30</td><td>-2.11 ± 0.84</td></tr><tr><td>Multitask</td><td>79.75 ± 0.38</td><td>-</td><td>61.00 ±0.20*</td><td>1</td><td>77.10 ± 1.06†</td><td>-</td></tr></table>",
779
+ "bbox": [
780
+ 176,
781
+ 356,
782
+ 825,
783
+ 502
784
+ ],
785
+ "page_idx": 7
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "Metrics: We evaluate the continual learning performance by the average accuracy (ACC) and backward transfer (BWT) [24, 4, 5], formulated as following, ",
790
+ "bbox": [
791
+ 173,
792
+ 537,
793
+ 825,
794
+ 565
795
+ ],
796
+ "page_idx": 7
797
+ },
798
+ {
799
+ "type": "equation",
800
+ "img_path": "images/ae4adf11151780cc5ecad63f94cb5997ab9db01a3e577f0e237e474e014a7b62.jpg",
801
+ "text": "$$\nA C C = \\frac { 1 } { T } \\sum _ { i = 1 } ^ { T } R _ { T , i } , \\quad B W T = \\frac { 1 } { T - 1 } \\sum _ { i = 1 } ^ { T - 1 } R _ { T , i } - R _ { i , i } ,\n$$",
802
+ "text_format": "latex",
803
+ "bbox": [
804
+ 307,
805
+ 575,
806
+ 689,
807
+ 619
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "where $T$ is the total number of learned sequential tasks, $R _ { i , j }$ is the test classification accuracy of the model on $j$ -th task after learning the last sample from $i$ -th task. ACC is the average test classification accuracy of all tasks, bigger is better. BWT is the interference of new learning on the past knowledge. More specifically, negative BWT implies (catastrophic) forgetting whereas positive BWT indicates learning new task increases the performance on some preceding tasks. ",
814
+ "bbox": [
815
+ 173,
816
+ 627,
817
+ 826,
818
+ 699
819
+ ],
820
+ "page_idx": 7
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "5.2 Results and Discussion ",
825
+ "text_level": 1,
826
+ "bbox": [
827
+ 174,
828
+ 718,
829
+ 370,
830
+ 733
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "PMNIST: We first evaluate our algorithm for 20 sequential PMNIST tasks with only 1000 samples per task in a single-head setting. From the results, as shown in Table 2, we see that our method (FS-DGPM) achieves the best average accuracy $( 7 6 . 9 6 \\% \\pm 0 . 7 7 )$ . Moreover, we achieve the least amount of forgetting except GPM, which is essentially a trade-off in accuracy to minimize forgetting. As shown in Figure 5(c), we only use about $31 \\%$ of the final memory size of GPM and achieve $\\sim 2 . 5 \\%$ better accuracy. ",
837
+ "bbox": [
838
+ 174,
839
+ 746,
840
+ 485,
841
+ 911
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "table",
847
+ "img_path": "images/e6eed0a1ca905ead30f63c148e40decb935c1c456e777a2fa607cbed430e1642.jpg",
848
+ "table_caption": [
849
+ "Table 2: Experimental results (mean $\\pm$ std in 5 runs) on PMNIST in single-epoch. "
850
+ ],
851
+ "table_footnote": [],
852
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">PMNIST</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>EWC</td><td>62.25 ± 1.44</td><td>-15.22 ± 1.25</td></tr><tr><td>GEM</td><td>61.82 ± 0.85</td><td>-15.58 ± 1.17</td></tr><tr><td>ER</td><td>68.31 ±0.56</td><td>-13.91 ± 0.67</td></tr><tr><td>La-MAML</td><td>75.98 ±0.60</td><td>-10.21 ± 0.90</td></tr><tr><td>GPM</td><td>74.54 ± 0.36</td><td>-7.17 ± 0.51</td></tr><tr><td>FS-DGPM</td><td>76.96 ± 0.51</td><td>-7.45 ± 0.30</td></tr><tr><td>Multitask</td><td>86.54 ± 1.74</td><td>=</td></tr></table>",
853
+ "bbox": [
854
+ 501,
855
+ 751,
856
+ 818,
857
+ 906
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "image",
863
+ "img_path": "images/4d317dac45d492cb2d0838a60b80610b725c142e5c467d6df22414edd67b297e.jpg",
864
+ "image_caption": [
865
+ "Figure 6: The ablation study implemented on CIFAR-100 Split with 10 tasks. (a)-(c) shows the stability of the first task. (a) is the test accuracy change curve of the first task; (b) and (c) are the weight loss landscape of the first task after learning the fifth task and all ten tasks. (d)-(e) shows the sensitivity of the fifth task, which are the test accuracy and the weight loss landscape of the fifth task after just learning the fifth task. The shape of the weight loss landscape obtained using ten different random filter-normalized directions. ( $\" \\mathrm { T } i \"$ is abbr. of the $i$ -th task) "
866
+ ],
867
+ "image_footnote": [],
868
+ "bbox": [
869
+ 176,
870
+ 90,
871
+ 821,
872
+ 190
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "CIFAR-100 and TinyImageNet: Next, we use a multi-head setting to evaluate our algorithm under the more challenging visual classification benchmarks. Table 1 reports all results of these experiments. We outperform all baselines on three datasets, with achieving the best average accuracy $7 4 . 3 3 \\%$ , $5 8 . 8 1 \\%$ and $7 0 . 4 1 \\%$ . In these experiments, we observe that GPM is a strong baseline with the least forgetting. At the same time, we highlight that our method achieves the highest accuracy on all datasets and the second-lowest forgetting after GPM. Figure 5(a) shows the process of performance changing with the number of tasks on the CIFAR-100 Superclass. We consistently see the superior performance of our method at any stage of model evolution. It is also worth emphasizing that although our method requires more time for training than GPM, it has lower memory usage and better test accuracy (See Figure 5(b)-(c)). As noted by [4] and [38], EWC performs poorly without multiple passes over the datasets, and GEM is not very effective under the single-head variants. These situations have also been observed in our experiments. ",
879
+ "bbox": [
880
+ 173,
881
+ 320,
882
+ 826,
883
+ 487
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "5.3 Ablation studies on FS-DGPM ",
890
+ "text_level": 1,
891
+ "bbox": [
892
+ 176,
893
+ 503,
894
+ 424,
895
+ 518
896
+ ],
897
+ "page_idx": 8
898
+ },
899
+ {
900
+ "type": "table",
901
+ "img_path": "images/e377168069b21711b665f5aa2b2467500f949d9baaccd0afecccde8321cdb0bf.jpg",
902
+ "table_caption": [
903
+ "Table 3: The ablation study results on CIFAR-100 Split and Superclass. Each experiment is run with 5 seeds. "
904
+ ],
905
+ "table_footnote": [],
906
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">CIFAR-100 Split</td><td colspan=\"2\">CIFAR-100 Superclass</td></tr><tr><td>ACC(%)</td><td>BWT(%)</td><td>ACC(%)</td><td>BWT(%)</td></tr><tr><td>FS-DGPM</td><td>74.33 ± 0.31</td><td>-2.71 ± 0.17</td><td>58.81 ± 0.34</td><td>-2.97± 0.35</td></tr><tr><td>La-DGPM</td><td>73.74 ± 0.61</td><td>-3.05 ± 0.73</td><td>58.18 ± 0.41</td><td>-2.41 ± 0.39</td></tr><tr><td>FS-GPM</td><td>73.96 ± 0.44</td><td>-3.12 ±0.43</td><td>58.61 ± 0.53</td><td>-2.79± 0.30</td></tr><tr><td>DGPM</td><td>73.78 ± 0.32</td><td>-3.67 ± 0.42</td><td>56.78 ± 0.49</td><td>-2.44 ± 0.40</td></tr><tr><td>GPM</td><td>73.18± 0.52</td><td>-1.17 ± 0.27</td><td>57.33 ± 0.37</td><td>-0.37 ± 0.12</td></tr></table>",
907
+ "bbox": [
908
+ 434,
909
+ 569,
910
+ 823,
911
+ 666
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "We further investigate our model performance with an ablation study and summarize it in Table 3. We respectively ablate the effects of flattening sharpness and dynamically adjusting the soft weight for bases. We refer to them as DGPM and FS-GPM. We also construct an ablation referred to as LaDGPM (Look-ahead DGPM), where the adversarial weight perturbation $\\pmb { v }$ in Eq. (2) is changed to the direction ",
918
+ "bbox": [
919
+ 174,
920
+ 529,
921
+ 419,
922
+ 680
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "of gradient descent. At the same time, we also change the sign in Eq. (3) to ensure that the soft weight of the basis is reduced when the gradients are aligned in the same direction. From the results, shown in Table 3, we observe that flattening sharpness does benefits GPM, with $\\sim 1 . 0 \\%$ improvement over GPM on both datasets. We can further observe through Figure 6 that all landscapes of FS-DGPM have lower loss values and flatter neighbors than DGPM and La-DGPM on the CIFAR-100 Split experiments. In addition, we see that DGPM performs well in learning new tasks, but it also leads to forgetting previous tasks. This situation can be efficiently alleviated by flattening sharpness. Hence, FS is indeed a powerful method worthy of being widely adopted for continual learning scenarios. ",
929
+ "bbox": [
930
+ 174,
931
+ 681,
932
+ 825,
933
+ 791
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "6 Conclusion ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 810,
944
+ 297,
945
+ 827
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "In this paper, we explore the weight loss landscape to characterize the well-known ’sensitivitystability’ dilemma faced by continual learning algorithms, and find that lower loss value with flatter neighbor often leads to better continual learning performance. Based on this finding, we propose our FS-DGPM algorithm, which introduces a soft weight to represent the importance of each basis representing past tasks in GPM, so that less important bases can be dynamically released to improve the sensitivity of new skill learning. Flattening Sharpness (FS) is also introduced here to reduce the generalization gap by explicitly regulating the flatness of the weight loss landscape of all tasks seen so far. The evaluation of various image classification tasks with different network architectures and the comparison with some state-of-the-art algorithms show the effectiveness of our method in achieving high classification performance while alleviating forgetting. Although our method theoretically and empirically demonstrates the advantages of introducing FS into continual learning, whether there exists a closer upper bound for the continual learning performance remains an unresolved problem and left for our future exploration. Although our method theoretically and empirically demonstrates the advantages of introducing bases soft weight and FS into continual learning, whether there exists a better dynamic adjustment and a closer upper bound for the continual learning performance remains an unresolved problem and left for our future exploration. ",
952
+ "bbox": [
953
+ 174,
954
+ 842,
955
+ 825,
956
+ 911
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "",
963
+ "bbox": [
964
+ 174,
965
+ 92,
966
+ 825,
967
+ 243
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Acknowledgments ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 176,
977
+ 265,
978
+ 328,
979
+ 281
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "We would like to thank Dr. Yongzhe Deng and Zhuo Zhang for their helpful discussions, and anonymous reviewers for their valuable comments to improve this work. This work was supported by a grant from the National Key Research and Development Program of China (Project No. 2020YFB1313900), Hong Kong Research Grants Council under General Research Fund (Project No. 14201620), the National Natural Science Foundation of China (Project No. 62006219, 62072452) and Guangdong Provincial Basic and Applied Basic Research Fund-Regional Joint Fund (Project No. 2020B1515130004). ",
986
+ "bbox": [
987
+ 174,
988
+ 296,
989
+ 826,
990
+ 393
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "References ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 174,
1000
+ 415,
1001
+ 266,
1002
+ 431
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "[1] Hongjoon Ahn, Sungmin Cha, Donggyu Lee, and Taesup Moon. Uncertainty-based continual learning with adaptive regularization. arXiv preprint arXiv:1905.11614, 2019. \n[2] Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pages 139–154, 2018. \n[3] Sungmin Cha, Hsiang Hsu, Taebaek Hwang, Flavio P Calmon, and Taesup Moon. Cpr: Classifier-projection regularization for continual learning. arXiv preprint arXiv:2006.07326, 2020. \n[4] Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. arXiv preprint arXiv:1812.00420, 2018. \n[5] Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K Dokania, Philip HS Torr, and M Ranzato. Continual learning with tiny episodic memories. 2019. \n[6] Pengfei Chen, Guangyong Chen, Junjie Ye, Pheng-Ann Heng, et al. Noise against noise: stochastic label noise helps combat inherent label noise. In International Conference on Learning Representations, 2020. \n[7] Yu Chen, Tom Diethe, and Neil Lawrence. Facilitating bayesian continual learning by natural gradients and stein gradients. arXiv preprint arXiv:1904.10644, 2019. \n[8] Sayna Ebrahimi, Mohamed Elhoseiny, Trevor Darrell, and Marcus Rohrbach. Uncertaintyguided continual learning with bayesian neural networks. arXiv preprint arXiv:1906.02425, 2019. \n[9] Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning. In International Conference on Artificial Intelligence and Statistics, pages 3762–3773. PMLR, 2020. \n[10] Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. arXiv preprint arXiv:2010.01412, 2020. \n[11] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial networks. arXiv preprint arXiv:1406.2661, 2014. \n[12] Yunhui Guo, Mingrui Liu, Tianbao Yang, and Tajana Rosing. Improved schemes for episodic memory-based lifelong learning. Advances in Neural Information Processing Systems, 33, 2020. \n[13] Gunshi Gupta, Karmesh Yadav, and Liam Paull. La-maml: Look-ahead meta learning for continual learning. arXiv preprint arXiv:2007.13904, 2020. \n[14] 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 International Conference on Learning Representations, 2018. \n[15] Daoyun Ji and Matthew A Wilson. Coordinated memory replay in the visual cortex and hippocampus during sleep. Nature neuroscience, 10(1):100–107, 2007. \n[16] Mohammad Khan, Didrik Nielsen, Voot Tangkaratt, Wu Lin, Yarin Gal, and Akash Srivastava. Fast and scalable bayesian deep learning by weight-perturbation in adam. In International Conference on Machine Learning, pages 2611–2620. PMLR, 2018. \n[17] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017. \n[18] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. \n[19] Quoc V Le, Jiquan Ngiam, Adam Coates, Ahbik Lahiri, Bobby Prochnow, and Andrew Y Ng. On optimization methods for deep learning. In ICML, 2011. \n[20] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. \n[21] Hao Li, Zheng Xu, Gavin Taylor, Christoph Studer, and Tom Goldstein. Visualizing the loss landscape of neural nets. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 6391–6401, 2018. \n[22] Xilai Li, Yingbo Zhou, Tianfu Wu, Richard Socher, and Caiming Xiong. Learn to grow: A continual structure learning framework for overcoming catastrophic forgetting. In International Conference on Machine Learning, pages 3925–3934. PMLR, 2019. \n[23] Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017. \n[24] David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. arXiv preprint arXiv:1706.08840, 2017. \n[25] Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7765–7773, 2018. \n[26] Seyed Iman Mirzadeh, Mehrdad Farajtabar, Razvan Pascanu, and Hassan Ghasemzadeh. Understanding the role of training regimes in continual learning. arXiv preprint arXiv:2006.06958, 2020. \n[27] Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nathan Srebro. Exploring generalization in deep learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 5949–5958, 2017. \n[28] Cuong V Nguyen, Yingzhen Li, Thang D Bui, and Richard E Turner. Variational continual learning. arXiv preprint arXiv:1710.10628, 2017. \n[29] German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, 2019. \n[30] Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 2001–2010, 2017. \n[31] 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. arXiv preprint arXiv:1810.11910, 2018. \n[32] Hippolyt Ritter, Aleksandar Botev, and David Barber. Online structured laplace approximations for overcoming catastrophic forgetting. arXiv preprint arXiv:1805.07810, 2018. \n[33] 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. \n[34] Gobinda Saha, Isha Garg, and Kaushik Roy. Gradient projection memory for continual learning. arXiv preprint arXiv:2103.09762, 2021. \n[35] Joan Serra, Didac Suris, Marius Miron, and Alexandros Karatzoglou. Overcoming catastrophic forgetting with hard attention to the task. In International Conference on Machine Learning, pages 4548–4557. PMLR, 2018. \n[36] Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. arXiv preprint arXiv:1705.08690, 2017. \n[37] Stanford. tinyimagenet. http://cs231n.stanford.edu/tiny-imagenet-200.zip, 2017. \n[38] Binh Tang and David S Matteson. Graph-based continual learning. arXiv preprint arXiv:2007.04813, 2020. \n[39] Gido M van de Ven, Hava T Siegelmann, and Andreas S Tolias. Brain-inspired replay for continual learning with artificial neural networks. Nature communications, 11(1):1–14, 2020. \n[40] Yeming Wen, Paul Vicol, Jimmy Ba, Dustin Tran, and Roger Grosse. Flipout: Efficient pseudo-independent weight perturbations on mini-batches. arXiv preprint arXiv:1803.04386, 2018. \n[41] Matthew A Wilson and Bruce L McNaughton. Reactivation of hippocampal ensemble memories during sleep. Science, 265(5172):676–679, 1994. \n[42] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. Advances in Neural Information Processing Systems, 33, 2020. \n[43] Ju Xu and Zhanxing Zhu. Reinforced continual learning. arXiv preprint arXiv:1805.12369, 2018. \n[44] Jaehong Yoon, Saehoon Kim, Eunho Yang, and Sung Ju Hwang. Scalable and order-robust continual learning with additive parameter decomposition. arXiv preprint arXiv:1902.09432, 2019. \n[45] Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. arXiv preprint arXiv:1708.01547, 2017. \n[46] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In International Conference on Machine Learning, pages 3987–3995. PMLR, 2017. ",
1009
+ "bbox": [
1010
+ 179,
1011
+ 439,
1012
+ 826,
1013
+ 912
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "",
1020
+ "bbox": [
1021
+ 173,
1022
+ 34,
1023
+ 828,
1024
+ 915
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "",
1031
+ "bbox": [
1032
+ 171,
1033
+ 87,
1034
+ 828,
1035
+ 635
1036
+ ],
1037
+ "page_idx": 11
1038
+ }
1039
+ ]
parse/train/q1eCa1kMfDd/q1eCa1kMfDd_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/q1eCa1kMfDd/q1eCa1kMfDd_model.json ADDED
The diff for this file is too large to render. See raw diff