ZHANGYUXUAN-zR commited on
Commit
e4ae132
·
verified ·
1 Parent(s): faacc54

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. parse/train/B1excoAqKQ/B1excoAqKQ.md +343 -0
  2. parse/train/B1excoAqKQ/B1excoAqKQ_content_list.json +1672 -0
  3. parse/train/B1excoAqKQ/B1excoAqKQ_middle.json +0 -0
  4. parse/train/B1excoAqKQ/B1excoAqKQ_model.json +0 -0
  5. parse/train/BJDH5M-AW/BJDH5M-AW.md +514 -0
  6. parse/train/BJDH5M-AW/BJDH5M-AW_content_list.json +2837 -0
  7. parse/train/BJDH5M-AW/BJDH5M-AW_middle.json +0 -0
  8. parse/train/BJDH5M-AW/BJDH5M-AW_model.json +0 -0
  9. parse/train/Bklzkh0qFm/Bklzkh0qFm.md +382 -0
  10. parse/train/Bklzkh0qFm/Bklzkh0qFm_content_list.json +1862 -0
  11. parse/train/Bklzkh0qFm/Bklzkh0qFm_middle.json +0 -0
  12. parse/train/Bklzkh0qFm/Bklzkh0qFm_model.json +0 -0
  13. parse/train/H1lhqpEYPr/H1lhqpEYPr.md +0 -0
  14. parse/train/H1lhqpEYPr/H1lhqpEYPr_content_list.json +0 -0
  15. parse/train/H1lhqpEYPr/H1lhqpEYPr_middle.json +0 -0
  16. parse/train/H1lhqpEYPr/H1lhqpEYPr_model.json +0 -0
  17. parse/train/SJg7IsC5KQ/SJg7IsC5KQ.md +889 -0
  18. parse/train/SJg7IsC5KQ/SJg7IsC5KQ_content_list.json +0 -0
  19. parse/train/SJg7IsC5KQ/SJg7IsC5KQ_middle.json +0 -0
  20. parse/train/SJg7IsC5KQ/SJg7IsC5KQ_model.json +0 -0
  21. parse/train/SkqV-XZRZ/SkqV-XZRZ.md +290 -0
  22. parse/train/SkqV-XZRZ/SkqV-XZRZ_content_list.json +1477 -0
  23. parse/train/SkqV-XZRZ/SkqV-XZRZ_middle.json +0 -0
  24. parse/train/SkqV-XZRZ/SkqV-XZRZ_model.json +0 -0
  25. parse/train/Sye_OgHFwH/Sye_OgHFwH.md +338 -0
  26. parse/train/Sye_OgHFwH/Sye_OgHFwH_content_list.json +1811 -0
  27. parse/train/Sye_OgHFwH/Sye_OgHFwH_middle.json +0 -0
  28. parse/train/Sye_OgHFwH/Sye_OgHFwH_model.json +0 -0
  29. parse/train/SyuWNMZ0W/SyuWNMZ0W.md +202 -0
  30. parse/train/SyuWNMZ0W/SyuWNMZ0W_content_list.json +968 -0
  31. parse/train/SyuWNMZ0W/SyuWNMZ0W_middle.json +0 -0
  32. parse/train/SyuWNMZ0W/SyuWNMZ0W_model.json +0 -0
  33. parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ.md +403 -0
  34. parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_content_list.json +0 -0
  35. parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_middle.json +0 -0
  36. parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_model.json +0 -0
  37. parse/train/eo6U4CAwVmg/eo6U4CAwVmg.md +438 -0
  38. parse/train/eo6U4CAwVmg/eo6U4CAwVmg_content_list.json +0 -0
  39. parse/train/eo6U4CAwVmg/eo6U4CAwVmg_middle.json +0 -0
  40. parse/train/eo6U4CAwVmg/eo6U4CAwVmg_model.json +0 -0
  41. parse/train/lwwEh0OM61b/lwwEh0OM61b.md +278 -0
  42. parse/train/lwwEh0OM61b/lwwEh0OM61b_content_list.json +1108 -0
  43. parse/train/lwwEh0OM61b/lwwEh0OM61b_middle.json +0 -0
  44. parse/train/lwwEh0OM61b/lwwEh0OM61b_model.json +0 -0
  45. parse/train/rJgz8sA5F7/rJgz8sA5F7.md +278 -0
  46. parse/train/rJgz8sA5F7/rJgz8sA5F7_content_list.json +1525 -0
  47. parse/train/rJgz8sA5F7/rJgz8sA5F7_middle.json +0 -0
  48. parse/train/rJgz8sA5F7/rJgz8sA5F7_model.json +0 -0
  49. parse/train/rylqooRqK7/rylqooRqK7_content_list.json +0 -0
  50. parse/train/rylqooRqK7/rylqooRqK7_model.json +0 -0
parse/train/B1excoAqKQ/B1excoAqKQ.md ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WHAT WOULD $\pi ^ { * }$ DO?: IMITATION LEARNING VIA OFF-POLICY REINFORCEMENT LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Learning to imitate expert actions given demonstrations containing image observations is a difficult problem in robotic control. The key challenge is generalizing behavior to out-of-distribution states that differ from those in the demonstrations. State-of-the-art imitation learning algorithms perform well in environments with low-dimensional observations, but typically involve adversarial optimization procedures, which can be difficult to use with high-dimensional image observations. We propose a remarkably simple alternative based on off-policy soft Q-learning, which we call soft $Q$ imitation learning (SQIL, pronounced “skill”), that rewards the agent for matching demonstrated actions in demonstrated states. The key idea is initially filling the agent’s experience replay buffer with demonstrations, where rewards are set to a positive constant, and setting rewards to zero in all additional experiences. We derive SQIL from first principles as a method for performing approximate inference under the MaxCausalEnt model of expert behavior. The approximate inference objective trades off between a pure behavioral cloning loss and a regularization term that incorporates information about state transitions via the soft Bellman error. Our experiments show that SQIL matches the state of the art in low-dimensional environments, and significantly outperforms prior work in playing video games from high-dimensional images.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Many real-world sequential decision-making problems can be tackled by imitation learning, where an expert demonstrates near-optimal behavior to an agent that then attempts to replicate that behavior in novel situations (Argall et al., 2009). This paper considers the problem of training an agent to imitate an expert policy, given expert action demonstrations and access to the environment. The agent does not get to observe a reward signal or query the expert, and does not know the state transition dynamics ex-ante.
12
+
13
+ Standard approaches to this problem based on behavioral cloning seek to imitate the expert’s actions, but do not reason about the consequences of actions (Pomerleau, 1991). As a result, they suffer from state distribution shift, and fail to generalize to states that are very different from those seen in the demonstrations (Ross & Bagnell, 2010; Ross et al., 2011). Approaches based on inverse reinforcement learning (IRL) deal with this issue by fitting a reward function that represents preferences over trajectories rather than individual actions $\mathrm { N g }$ et al., 2000; Ziebart et al., 2008), and using the learned reward function to train the imitation agent through RL (Wulfmeier et al., 2015; Finn et al., 2016; Fu et al., 2017). This is the core idea behind generative adversarial imitation learning (GAIL), which implicitly combines IRL and RL using generative adversarial networks (GANs) (Ho & Ermon, 2016; Goodfellow et al., 2014). GAIL is state-of-the-art in environments with low-dimensional observations, but requires additional reward augmentation and feature engineering when applied to environments with high-dimensional image observations (Li et al., 2017), due to the difficulty of training GANs (Kurach et al., 2018). In short, imitation learning from raw pixel inputs without prior knowledge of the domain remains a challenge.
14
+
15
+ The key insight in this paper is that instead of using a learned reward function or discriminator to provide a reward signal to the imitation policy, as is done in IRL-based imitation methods and GAIL, the imitation agent can simply be rewarded for matching demonstrated actions in demonstrated states using off-policy soft Q-learning. The agent’s experience replay buffer is initially filled with demonstrations where rewards are set to some positive constant, and gradually accumulates additional experiences with rewards set to zero. The agent has an incentive to imitate the expert in demonstrated states, and to take actions that lead it back to demonstrated states when it encounters new states that differ from the demonstrations. We call this algorithm soft $Q$ imitation learning (SQIL, pronounced “skill”).
16
+
17
+ We motivate the SQIL algorithm by deriving it from first principles as a method for performing approximate inference under the MaxCausalEnt model of expert behavior (Ziebart et al., 2010). Our analysis shows that SQIL maximizes a lower bound on the log-posterior of the soft Q values given the demonstrations – a bound that trades off between a pure behavioral cloning loss and a regularization term that incorporates state transition information via the soft Bellman error.
18
+
19
+ The main contribution of this paper is SQIL: a practical and general imitation learning algorithm that is effective in MDPs with high-dimensional, continuous observations – including raw pixel inputs – and has a natural theoretical interpretation as approximate inference. We run experiments in the image-based Car Racing and low-dimensional Lunar Lander game environments from OpenAI Gym, the Humanoid and HalfCheetah continuous control tasks from MuJoCo, and image-based Atari Pong, to compare SQIL to two prior methods: behavioral cloning and GAIL. The results show that SQIL matches GAIL in low-dimensional environments, and significantly outperforms GAIL on the image-based Car Racing and Pong tasks.
20
+
21
+ # 2 PRELIMINARIES
22
+
23
+ This work builds on the maximum causal entropy (MaxCausalEnt) model of expert behavior (Ziebart et al., 2010; Levine, 2018). In a finite-horizon Markov Decision Process (MDP) with a finite, discrete action space $\mathcal { A }$ ,1 the demonstrator is assumed to follow a policy $\pi$ that maximizes reward $R ( s , a )$ . To simplify exposition, we assume the state transition dynamics are deterministic: let $s ^ { \prime }$ denote the state that follows from taking action $a$ in state $s$ . The policy $\pi$ forms a Boltzmann distribution over actions,
24
+
25
+ $$
26
+ \pi ( a | s ) \triangleq \exp { \left( Q ( s , a ) - V ( s ) \right) } ,
27
+ $$
28
+
29
+ where $Q$ is the soft Q function, and $V$ is the soft value function,
30
+
31
+ $$
32
+ \begin{array} { r } { V ( s ) \triangleq \left\{ \begin{array} { l l } { 0 } & { \mathrm { ~ i f ~ } s \mathrm { ~ i s ~ a ~ t e r m i n a l ~ s t a t e } } \\ { \log \left( \sum _ { a \in A } \exp \left( Q ( s , a ) \right) \right) } & { \mathrm { ~ o t h e r w i s e } } \end{array} \right. } \end{array}
33
+ $$
34
+
35
+ In the standard MaxCausalEnt model, the soft Q values are a deterministic function of the rewards and dynamics, given by the soft Bellman equation,
36
+
37
+ $$
38
+ Q ( s , a ) \triangleq R ( s , a ) + \gamma V ( s ^ { \prime } ) .
39
+ $$
40
+
41
+ # 2.1 APPROXIMATE MAXCAUSALENT MODEL
42
+
43
+ In the analysis in Section 3, the standard MaxCausalEnt model is approximated by a probabilistic model that treats the soft $\mathrm { Q }$ values as random variables,
44
+
45
+ $$
46
+ Q ( s , a ) \sim \mathcal { N } ( R ( s , a ) + \gamma V ( s ^ { \prime } ) , \sigma ^ { 2 } ) ,
47
+ $$
48
+
49
+ where $\sigma \in \mathbb { R }$ is a constant hyperparameter, and $R ( s , a )$ is a random variable with zero mean and unit variance. To simplify the analysis in Section 3, we assume that the dynamics of the environment satisfy the property that if state $s _ { i }$ is reachable from state $s _ { j }$ , then $s _ { j }$ is not reachable from $s _ { i }$ – this ensures that the probabilistic graphical model that captures the joint distribution over soft Q values is acyclic. The experiments in Section 5 show that even when this assumption is violated, SQIL performs well empirically.
50
+
51
+ # 3 IMITATION LEARNING VIA APPROXIMATE MAXCAUSALENT INFERENCE
52
+
53
+ We aim for an imitation learning algorithm that generalizes to new states, without resorting to adversarial optimization procedures that would be difficult to use with image observations. Our approach is to derive a lower bound on the log-posterior of the soft Q values given the demonstrations; in particular, a lower bound that is maximized by the SQIL algorithm.
54
+
55
+ # 3.1 DERIVING THE APPROXIMATE INFERENCE OBJECTIVE
56
+
57
+ Consider a demonstration rollout $\tau = ( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ , where $s _ { T }$ is a terminal state. Standard MaxCausalEnt IRL searches for the reward function that maximizes the posterior probability of the rewards given the demonstration. Our goal, however, is not to infer the expert’s reward function; it is to infer the expert’s policy, which is represented by their soft $\mathrm { Q }$ function. We approach this problem by formalizing uncertainty about the soft Q values using the probabilistic model described in Section 2.1. We fit a soft Q function to optimize the posterior probability of the soft $\mathrm { Q }$ values $Q$ given the demonstration $\tau$ , where $Q \stackrel { \triangle } { = } \{ Q ( s , a ) \mid ( s , a ) \in \mathcal { X } \}$ , and $\mathcal { X }$ is a finite subset of $\boldsymbol { S } \times \boldsymbol { A }$ that includes the state-action pairs in $\tau$ . Since $Q ( s , a )$ may depend on $Q ( s ^ { \prime } , a ^ { \prime } )$ (see Equations 4 and 2), $\mathcal { X }$ is assumed to satisfy the closure property,
58
+
59
+ $$
60
+ \forall ( s , a ) \in \mathcal { X } . \big ( s ^ { \prime } \mathrm { ~ n o t ~ t e r m i n a l } \implies ( \forall a ^ { \prime } \in \mathcal { A } . ( s ^ { \prime } , a ^ { \prime } ) \in \mathcal { X } ) \big ) .
61
+ $$
62
+
63
+ The goal is to derive a lower bound on the log-posterior, $\log p ( Q | \tau )$ , that is maximized by the SQIL algorithm. The first step is to marginalize out the rewards, $\pmb { R } \triangleq \{ R ( s , a ) \mid ( s , a ) \in \chi \}$ , as follows.
64
+
65
+ $$
66
+ \begin{array} { r } { p ( Q | \tau ) \propto p ( \tau | Q ) p ( Q ) = \mathbb { E } _ { R } [ p ( \tau | Q , R ) p ( Q | R ) ] = \mathbb { E } _ { R } [ p ( \tau | Q ) p ( Q | R ) ] . } \end{array}
67
+ $$
68
+
69
+ First bound. Optimizing the log of the expectation in Equation 6 is hard, for a number of reasons: we haven’t assumed a particular prior distribution over rewards (only that it has zero mean and unit variance), and the soft Q values in $Q$ are not conditionally independent given $\pmb { R }$ . Optimizing the expectation of the log is easier. By Jensen’s inequality,
70
+
71
+ $$
72
+ \begin{array} { r } { \log \left( \mathbb E _ { R } [ p ( \tau | Q ) p ( Q | R ) ] \right) \geq \mathbb E _ { R } [ \log p ( \tau | Q ) + \log p ( Q | R ) ] . } \end{array}
73
+ $$
74
+
75
+ The conditional likelihood of the demonstration $\tau$ given the soft Q values $Q$ is given by Equation 1:
76
+
77
+ $$
78
+ p ( \tau | \mathbf { \Delta } Q ) = \exp \left( \sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) \right) .
79
+ $$
80
+
81
+ The conditional likelihood of the soft Q values $Q$ given the rewards $\pmb { R }$ is given by Equation 4:
82
+
83
+ $$
84
+ p ( \pmb { Q } | \pmb { R } ) = \prod _ { ( s , a ) \in \mathcal { X } } \mathcal { N } ( Q ( s , a ) ; \pmb { R } ( s , a ) + \gamma V ( s ^ { \prime } ) , \sigma ^ { 2 } ) ,
85
+ $$
86
+
87
+ where the joint distribution over $Q$ can be factored due to the state re-entry assumption about the dynamics made in Section 2.1 and the closure assumption about $\mathcal { X }$ made in Equation 5. Simplifying the lower bound in Equation 7,
88
+
89
+ $$
90
+ \begin{array} { r l r } { \left. { ( 7 ) = \sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) } } \\ & { } & { + \displaystyle \sum _ { ( s , a ) \in \mathcal { X } } - \frac { 1 } { 2 \sigma ^ { 2 } } \left( ( Q ( s , a ) - ( \mathbb { E } [ R ( s , a ) ] + \gamma V ( s ^ { \prime } ) ) \right) ^ { 2 } + \mathrm { V a r } [ R ( s , a ) ] \right) - \log \sqrt { 2 \pi \sigma ^ { 2 } } . } \end{array}
91
+ $$
92
+
93
+ Applying the assumption from Section 2.1 that the rewards have zero mean and unit variance,
94
+
95
+ $$
96
+ ( 1 0 ) = \sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) + \sum _ { ( s , a ) \in \mathcal { X } } - \frac { 1 } { 2 \sigma ^ { 2 } } ( ( Q ( s , a ) - \gamma V ( s ^ { \prime } ) ) ^ { 2 } + 1 ) - \log { \sqrt { 2 \pi \sigma ^ { 2 } } } .
97
+ $$
98
+
99
+ Second bound. Next, the bound is intentionally loosened, in order to arrive at an objective that is maximized by the SQIL algorithm.2 By the MaxCausalEnt assumptions in Section 2,
100
+
101
+ $$
102
+ V ( s _ { 0 } ) = \mathbb { E } _ { \tau \sim p ( \tau \mid \pi ) } \left[ \sum _ { t = 0 } ^ { T - 1 } \gamma ^ { t } \left( Q ( s _ { t } , a _ { t } ) - \gamma V ( s _ { t + 1 } ) + \mathcal { H } ( \pi ( \cdot | s _ { t } ) ) \right) \right] ,
103
+ $$
104
+
105
+ where $\mathcal { H }$ denotes entropy. Maximizing Equation 11 with respect to $Q$ yields a solution in which $Q ( s , a ) - \gamma V ( s ^ { \prime } ) \leq \bar { f } ( \bar { \sigma } ^ { 2 } )$ , where $f$ is an increasing function of $\sigma ^ { 2 }$ . Thus, $V ( s _ { 0 } ) \leq ( f ( \sigma ^ { 2 } ) +$ $\log | \mathcal { A } | ) / ( 1 - \gamma )$ , and
106
+
107
+ $$
108
+ ( 1 1 ) \geq ( 1 1 ) + V ( s _ { 0 } ) - ( f ( \sigma ^ { 2 } ) + \log | A | ) / ( 1 - \gamma ) .
109
+ $$
110
+
111
+ The soft Q function that maximizes the lower bound in Equation 13 is
112
+
113
+ $$
114
+ Q ^ { * } \triangleq \operatorname * { a r g m a x } _ { Q } V ( s _ { 0 } ) + \sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) - \frac { 1 } { 2 \sigma ^ { 2 } } \sum _ { ( s , a ) \in \mathcal X } ( Q ( s , a ) - \gamma V ( s ^ { \prime } ) ) ^ { 2 } .
115
+ $$
116
+
117
+ Practical implementation. For environments with a small, discrete state space $s$ and known dynamics, $\mathcal { X }$ can be set to $\boldsymbol { s } \times \boldsymbol { A }$ . For environments with a continuous state space $s$ and unknown dynamics, we set $\mathcal { X }$ to be the set of state-action pairs in the demonstration rollouts $\mathcal { D } _ { \mathrm { d e m o } }$ and rollouts $\mathcal { D } _ { \mathrm { s a m p } }$ of the imitation policy, which are periodically sampled during training.3 We fit a parameterized soft Q function $\bar { Q _ { \theta } }$ to minimize the loss,
118
+
119
+ $$
120
+ \ell ( \pmb \theta ) \triangleq \sum _ { \tau \in \mathcal { D } _ { \pmb { \mathscr { A } } _ { \mathrm { r m o } } } } \left( - V _ { \pmb \theta } ( s _ { 0 } ) + \sum _ { t = 0 } ^ { T - 1 } - ( Q _ { \theta } ( s _ { t } , a _ { t } ) - V _ { \pmb \theta } ( s _ { t } ) ) \right) + \lambda _ { \sf d e m o } B _ { \theta } ( \mathcal { D } _ { \sf d e m o } , 0 ) + \lambda _ { \sf s a m p } B _ { \theta } ( \mathcal { D } _ { \sf s a m p } , 0 ) ,
121
+ $$
122
+
123
+ where $\alpha , \lambda _ { \mathrm { d e m o } } , \lambda _ { \mathrm { s a m p } } \in \mathbb { R } _ { \ge 0 }$ are constant hyperparameters, $V _ { \pmb { \theta } }$ denotes the soft value function given by $Q _ { \theta }$ and Equation 2,4 and $B _ { \theta }$ denotes the sum of squared soft Bellman errors,
124
+
125
+ $$
126
+ B _ { \theta } ( \mathcal { D } , r ) \triangleq \sum _ { \tau \in \mathcal { D } } \sum _ { t = 0 } ^ { T - 1 } ( Q _ { \theta } ( s _ { t } , a _ { t } ) - ( r + \gamma V _ { \theta } ( s _ { t + 1 } ) ) ) ^ { 2 } ,
127
+ $$
128
+
129
+ where $r \in \mathbb { R }$ is a constant that does not depend on the state or action. The experiments in Section 5 use a convolutional neural network or multi-layer perceptron to model $Q _ { \theta }$ , where $\pmb { \theta }$ are the weights of the neural network (Schmidhuber, 2015).
130
+
131
+ The loss in Equation 15 bounds the log-posterior of the soft $\mathrm { Q }$ values given the demonstrations. Searching for a soft Q function that optimizes this objective is equivalent to performing approximate inference under the MaxCausalEnt model of expert behavior. The objective combines a behavioral cloning loss, which does not reason about the consequences of actions, with a regularization term that incorporates information about state transitions. The regularization term performs soft Bellman backups on a reward of zero – a consequence of the prior distribution over rewards, which has an expected value of zero – and can be seen as imposing a prior distribution on the soft $\mathrm { Q }$ values that is independent of the expert demonstrations.
132
+
133
+ # 3.2 IMPLEMENTING APPROXIMATE INFERENCE WITH OFF-POLICY SOFT Q-LEARNING
134
+
135
+ Surprisingly, the gradient of the approximate inference objective in Equation 15 is equivalent to the gradient of the objective of a soft Q-learning algorithm (Haarnoja et al., 2017) that gives the agent a constant positive reward for matching the demonstrated action in a demonstrated state, and zero reward otherwise. Differentiating the objective in Equation 15,
136
+
137
+ $$
138
+ \begin{array} { r l } & { \nabla _ { \theta } \ell ( \theta ) = \alpha \underset { \tau \in \mathcal { D } _ { \mathrm { d a m } } } { \sum } \Bigg ( - \nabla V _ { \theta } ( s _ { 0 } ) + \underset { t = 0 } { \overset { T - 1 } { \sum } } - ( \nabla Q _ { \theta } ( s _ { t } , a _ { t } ) - \nabla V _ { \theta } ( s _ { t } ) ) \Bigg ) } \\ & { \quad \quad \quad + \lambda _ { \mathrm { d e m } } \underset { \tau \in \mathcal { D } _ { \mathrm { d a m } } } { \sum } \underset { t = 0 } { \overset { T - 1 } { \sum } } \nabla ( Q _ { \theta } ( s _ { t } , a _ { t } ) - \gamma V _ { \theta } ( s _ { t + 1 } ) ) ^ { 2 } + \lambda _ { \mathrm { s a m p } } \nabla B _ { \theta } ( \mathcal { D } _ { \mathrm { s a m p } } , 0 ) } \\ & { \quad \quad = \underset { \tau \in \mathcal { D } _ { \mathrm { d a m } } } { \sum } \Bigg ( - \alpha \nabla V _ { \theta } ( s _ { 0 } ) + \underset { t = 0 } { \overset { T - 1 } { \sum } } \alpha \nabla V _ { \theta } ( s _ { t } ) - \alpha \gamma \nabla V _ { \theta } ( s _ { t + 1 } ) \Bigg ) } \\ & { \quad \quad \quad + \lambda _ { \mathrm { d e m } } \nabla B _ { \theta } \left( \mathcal { D } _ { \mathrm { d a m } } , \frac { \alpha } { 2 \lambda _ { \mathrm { d a m o } } } \right) + \lambda _ { \mathrm { s a m p } } \nabla B _ { \theta } ( \mathcal { D } _ { \mathrm { s a m p } } , 0 ) . } \end{array}
139
+ $$
140
+
141
+ 3The demonstrations alone may not satisfy the closure property in Equation 5. Augmenting the demonstrations with rollouts of the imitation policy improves our approximation of the objective in Equation 14.
142
+
143
+ 4Note that there is a Q network $Q _ { \theta }$ and a value function $V$ that is defined in terms of $Q _ { \theta }$ (see Equation 2), rather than a separate Q network and V network.
144
+
145
+ # Algorithm 1 Soft Q Imitation Learning (SQIL, pronounced “skill”)
146
+
147
+ <table><tr><td colspan="3">1:Requirer,入samp ∈R&gt;o,k∈N</td></tr><tr><td>2:InitializeDsamp←@ 3:fori=1,2,.do</td><td></td><td>&gt;See Equation 16</td></tr><tr><td>4: 5:</td><td>θ ←θ-nVe(Be(Ddemo,r)+入sampBe(Dsamp,O)) ifimodk=0then</td><td></td></tr><tr><td>6:</td><td>Sample rollout T =(so,ao,S1,a1,.,sT) with imitation policy πe(at|St)</td><td> See Equation 1</td></tr><tr><td>7:</td><td>Dsamp ←DsampU{𝑇}</td><td></td></tr><tr><td>8: end if</td><td></td><td></td></tr><tr><td>9: end for</td><td></td><td></td></tr></table>
148
+
149
+ Setting $\gamma \triangleq 1$ turns the inner sum in the first term into a telescoping sum, yielding
150
+
151
+ $$
152
+ ( 1 7 ) = \nabla \left( \lambda _ { \mathrm { d e m o } } B _ { \theta } \left( \mathcal { D } _ { \mathrm { d e m o } } , \frac { \alpha } { 2 \lambda _ { \mathrm { d e m o } } } \right) + \lambda _ { \mathrm { s a m p } } B _ { \theta } \big ( \mathcal { D } _ { \mathrm { s a m p } } , 0 \big ) \right) .
153
+ $$
154
+
155
+ Setting $\lambda _ { \mathrm { d e m o } } \triangleq 1$ and $\alpha \triangleq 2 \lambda _ { \mathrm { d e m o } } r$ yields the gradient of a soft Q-learning algorithm that gives the agent a reward of $r$ for taking the demonstrated action in a demonstrated state, and zero reward otherwise. The agent’s experience replay buffer consists of $\mathcal { D } _ { \mathrm { d e m o } } \cup \mathcal { D } _ { \mathrm { s a m p } }$ . We call this algorithm soft $Q$ imitation learning (SQIL, pronounced “skill”).
156
+
157
+ # 3.3 SOFT Q IMITATION LEARNING
158
+
159
+ SQIL is summarized in Algorithm 1. It performs soft Q-learning with two important modifications: (1) it initially fills the agent’s experience replay buffer with demonstrations, where the rewards are set to some positive constant (e.g., $r \triangleq 1$ ), and (2) as the agent interacts with the world and accumulates new experiences, it adds them to the replay buffer, and sets the rewards for these additional experiences to zero. The agent has an incentive to imitate the expert in states that are similar to those encountered in the demonstrations. During training, the agent may encounter out-of-distribution states that are very different from those in the demonstrations. In such states, the agent has an incentive to take actions that lead it back to demonstration states, where rewards are positive.
160
+
161
+ Since the number of demonstrations is fixed and the number of additional experiences grows over time, we balance the number of demonstration experiences and additional experiences sampled for each gradient step in line 4 of Algorithm 1. As the imitation policy learns to behave more like the expert, the state-action distributions of $\mathcal { D } _ { \mathrm { s a m p } }$ and $\mathcal { D } _ { \mathrm { d e m o } }$ grow closer, which causes the reward for taking the expert action in an expert state to decay from $r$ to an expected value of $\frac { r } { 1 + \lambda _ { \mathrm { s a m p } } }$ This reward decay has the effect of making the imitation policy more stochastic over time, and could potentially be countered by decreasing $\lambda _ { \mathrm { s a m p } }$ to zero over time, or decreasing the temperature parameter of the stochastic policy, but neither of these fixes were necessary in our experiments.
162
+
163
+ One potential issue with SQIL is that by setting the reward for taking demonstrated actions in demonstrated states to a positive constant, and implicitly setting rewards at terminal states to zero (see Equation 2), SQIL may encourage the agent to deviate from the expert trajectories in order to avoid terminating the episode, especially in environments with long horizons. This is also an issue with GAIL, and is addressed in Anonymous (2019) by explicitly learning the rewards at absorbing states. One potential way to fix this issue in SQIL is to set the rewards for demonstrated transitions into terminal states to be $\frac { r } { 1 - \gamma }$ instead of $r$ . This effectively augments the demonstration data with infinitely many rewarding transitions at absorbing states. This was not necessary in our experiments, since the horizons were relatively short (on the order of 1000 steps).
164
+
165
+ # 4 RELATED WORK
166
+
167
+ SQIL is inspired by the inverse soft Q-learning (ISQL) algorithm for internal dynamics estimation (Reddy et al., 2018), in that the objective in Equation 15 combines a behavioral cloning loss with soft Bellman error penalty terms, which is similar to the ISQL objective. The details of the two methods and their motivations are, however, completely different. ISQL is an internal dynamics estimation algorithm, while SQIL is meant for imitation learning. ISQL assumes that the demonstrations include observations of the expert’s reward signal, while SQIL does not.
168
+
169
+ SQIL also resembles the Deep Q-learning from Demonstrations (DQfD) (Hester et al., 2017) and Normalized Actor-Critic (NAC) algorithms (Gao et al., 2018), in that all three algorithms fill the agent’s experience replay buffer with demonstrations and include an imitation loss in the agent’s objective. The key difference between SQIL and these prior methods is that DQfD and NAC are RL algorithms that assume access to a reward signal, while SQIL is an imitation learning algorithm that does not require an extrinsic reward signal from the environment. Instead, SQIL automatically constructs a reward signal from the demonstrations.5
170
+
171
+ # 5 SIMULATION EXPERIMENTS
172
+
173
+ The purpose of our experiments is three-fold. The first objective is to compare SQIL to prior work; in particular, on tasks with high-dimensional image observations, where prior methods are difficult to use. The second objective is to show that SQIL can be successfully deployed in MDPs with continuous action spaces. The third objective is to understand which components of SQIL contribute most to its performance. To accomplish the first objective, we use the image-based Car Racing and Atari Pong games, as well as the low-dimensional Lunar Lander environment from OpenAI Gym (Brockman et al., 2016), to benchmark SQIL against GAIL and behavioral cloning (BC). SQIL consistently outperforms BC, matches GAIL on low-dimensional Lunar Lander, and outperforms GAIL on the image-based Car Racing and Pong tasks. To accomplish the second objective, we use the Humanoid and HalfCheetah continuous control tasks from MuJoCo (Todorov et al., 2012) to show that SQIL performs comparably to GAIL on low-dimensional problems with continuous actions. To accomplish the third objective, we use the Lunar Lander game to conduct an ablation study that tests various hypotheses about which components of SQIL contribute to its performance.
174
+
175
+ # 5.1 COMPARISON TO PRIOR METHODS ON LOW-DIMENSIONAL LUNAR LANDER
176
+
177
+ The experiments in this section use the low-dimensional Lunar Lander game to verify that SQIL performs well on a relatively easy task. To emphasize the gap between imitation methods that take into account the consequences of actions, like SQIL and GAIL, and methods that do not, like BC, we exacerbate the state distribution shift that usually occurs due to compounding errors, by training the imitation agents in an environment with a different initial state distribution $S _ { 0 } ^ { \mathrm { t r a i n } }$ than that of the expert demonstrations $S _ { 0 } ^ { \mathrm { d e m o } }$ . This intervention explicitly tests the generalization capabilities of imitation learning, by placing the agent in start states $\bar { S } _ { 0 } ^ { \mathrm { t r a i n } }$ that are very different from those seen in the demonstrations.
178
+
179
+ Experimental setup. The Lunar Lander game is a navigation task with deterministic dynamics in which the objective is to land on the ground, without crashing or flying out of bounds, using two lateral thrusters and a main engine. The action space consists of six discrete actions for steering and firing the main engine. Low-dimensional state observations $s \in \mathbb { R } ^ { 9 }$ encode position, velocity, orientation, and the location of the landing site. Demonstrations are collected from an expert trained using deep Q-learning (Mnih et al., 2015). The goal of this experiment is to study not only how well each method can mimic the expert demonstrations, but also how well they can acquire policies that generalize effectively to new states. After all, the main benefit of actually learning a policy, as opposed to simply playing back the expert’s actions, is to acquire a strategy that generalizes to new situations. Therefore, we manipulate the initial state distribution of the environment in which the imitation agents are trained and evaluated. The expert demonstrations are collected starting from the initial state distribution starting from a differen $S _ { 0 } ^ { \mathrm { d e m o } }$ . The imitation agl state distribution re then trai. To create the same environment, butin the Lunar Lander game, $S _ { 0 } ^ { \mathrm { t r a i n } }$ $S _ { 0 } ^ { \mathrm { t r a i n } }$
180
+ the agent is placed in a starting position that is rarely visited in the demonstrations. The agents are evaluated by training and testing with $S _ { 0 } ^ { \mathrm { d e m o } }$ , as well as training and testing with $S _ { 0 } ^ { \mathrm { t r a i n } }$ – both results are reported in Table 1 and Figure 1. We measure the agents’ success rate in landing at the target without crashing, flying out of bounds, or running out of time.
181
+
182
+ ![](images/6e039e2f9d4847a0bb5e8475f6b5b637724c54840af50bfb2cd53fa3e47a5a11.jpg)
183
+ Figure 1: Error regions show standard error across five random seeds. BC performance after training. $\mathrm { X }$ -axis represents amount of interaction with the environment (not expert demonstrations).
184
+
185
+ <table><tr><td></td><td>Strain</td><td>Sdemo</td></tr><tr><td>Random</td><td>0.10 ± 0.30</td><td>0.04± 0.02</td></tr><tr><td>BC</td><td>0.07 ±0.03</td><td>0.93 ± 0.03</td></tr><tr><td>GAIL</td><td>0.98 ± 0.01</td><td>0.95 ± 0.02</td></tr><tr><td>SQIL-T</td><td>0.66 ± 0.02</td><td>0.89 ± 0.01</td></tr><tr><td>SQIL</td><td>0.89 ±0.02</td><td>0.88 ± 0.03</td></tr><tr><td>Expert</td><td>0.93 ±0.03</td><td>0.89± 0.31</td></tr></table>
186
+
187
+ Table 1: Lunar Lander. Best performance on 100 consecutive episodes during training. Standard errors shown for five random seeds.
188
+
189
+ Analysis. The results show that when there is no variation in the initial state, all methods perform equally well (see the $S _ { 0 } ^ { \mathrm { d e m o } }$ column in Table 1). The task is easy enough that even behavioral cloning achieves a high success rate. When the initial state is changed for the purpose of testing generalization, SQIL and GAIL both perform much better than BC (see Figure 1 and the $S _ { 0 } ^ { \mathrm { t r a i n } }$ column in Table 1). This is unsurprising, since BC suffers from state distribution shift, and GAIL tends to perform well on tasks with low-dimensional observations.
190
+
191
+ GAIL achieves a higher success rate than SQIL, but requires many more interactions with the environment. This can most likely be attributed to the fact that GAIL uses TRPO (Schulman et al., 2015) for policy optimization, while SQIL uses Q-learning. Since this difference in the underlying RL algorithm makes it difficult to fairly compare SQIL to GAIL, the results are merely intended to illustrate that both SQIL and GAIL can outperform BC and perform on par with the expert. In the following two sections, we show that SQIL significantly outperforms GAIL on high-dimensional, image-based tasks.
192
+
193
+ SQIL, which optimizes the bound in Equation 13, performs better than its cousin, SQIL-T, which optimizes the tighter bound in Equation 11. This is a somewhat surprising result, since optimizing a tighter bound on the log-posterior should lead to better performance. One possible explanation for this not being the case is that in practice, optimizing Equation 11 via gradient descent is harder than optimizing Equation 13.
194
+
195
+ # 5.2 COMPARISON TO PRIOR METHODS ON IMAGE-BASED CAR RACING
196
+
197
+ Section 5.1 showed that SQIL performs on par with GAIL and better than BC in environments with low-dimensional observations. This section shows that SQIL can significantly outperform GAIL and BC in environments with high-dimensional image observations. With images, the policy learning problem becomes substantially harder: now, the policy must learn to interpret raw image observations and determine the best course of action. This is notoriously difficult for methods based on adversarial learning, such as GAIL.
198
+
199
+ Experimental setup. The Car Racing game is a navigation task with deterministic dynamics in which the objective is to visit as many road markers as possible, while avoiding the grass. The agent receives $6 4 \mathrm { x } 6 4 ~ \mathrm { R G B }$ images as observations, and outputs a discrete steering command (left, right, or straight). An episode lasts at most 1000 steps, and terminates early if the car deviates too far from the road. Demonstrations are collected from an expert trained using model-based RL (Ha & Schmidhuber, 2018). The initial state distribution is manipulated as in Section 5.1. To create $S _ { 0 } ^ { \mathrm { t r a i n } }$ in the Car Racing game, the car is rotated 90 degrees so that it begins perpendicular to the track, instead of parallel to the track as in $S _ { 0 } ^ { \mathrm { d e m o } }$ . This simple intervention presents a significant generalization challenge to the imitation learner, since the expert demonstrations do not contain any examples of states where the car is perpendicular to the road, or even significantly off the road axis. The agent must learn to make a tight turn to get back on the road, then stabilize its orientation so that it is parallel to the road, and only then proceed forward to mimic the expert demonstrations. We measure the reward collected by the agent, which counts the number of road markers it visits, and includes a -100 penalty for deviating too far from the road and causing the episode to terminate early.
200
+
201
+ ![](images/5ccda721a068728935469264a88f52cfb04b41153d1c4392255ca63c7b0bb91b.jpg)
202
+ Figure 2: Error regions show standard error across five random seeds. GAIL and BC performance after training.
203
+
204
+ Table 2: Car Racing. Final performance on 20 episodes after training. Standard errors shown for five random seeds.
205
+
206
+ <table><tr><td></td><td>Strain</td><td>Sdemo</td></tr><tr><td>Random</td><td>-21± 56</td><td>-68±4</td></tr><tr><td>BC</td><td>-45±18</td><td>698 ±10</td></tr><tr><td>GAIL</td><td>17±0</td><td>7±1</td></tr><tr><td>SQIL-T</td><td>311 ± 10</td><td>693±7</td></tr><tr><td>SQIL</td><td>375 ±19</td><td>704±6</td></tr><tr><td>Expert</td><td>480 ± 11</td><td>704±79</td></tr></table>
207
+
208
+ Analysis. Table 2 and Figure 2 show that SQIL performs much better than both BC and GAIL, when starting from $S _ { 0 } ^ { \mathrm { t r a i n } }$ . SQIL learns to make a tight turn that takes the car through the grass and back onto the road, then stabilizes the car’s orientation so that it is parallel to the track, and then proceeds forward like the expert does in the demonstrations. GAIL does not improve upon its initialized policy, which keeps turning in a loop, and does not move forward once the agent is parallel to the road. BC tends to drive straight ahead into the grass instead of turning back onto the road. One explanation of these results is that GAIL uses TRPO (Schulman et al., 2015) to fit the imitation policy, which inherits the challenges of RL with image observations. SQIL, on the other hand, inherits the ease of fitting an image-based policy from behavioral cloning via the analysis in Section 3, and only relies on soft Bellman backups for regularization and fine-tuning (vs. RL from scratch). SQIL outperforms SQIL-T, as in Section 5.1, though the performance gap is smaller here than in Section 5.1.
209
+
210
+ # 5.3 COMPARISON TO PRIOR METHODS ON IMAGE-BASED ATARI PONG
211
+
212
+ The experiments in the previous sections compare SQIL, which uses Q-learning, to GAIL, which uses TRPO. This can make it difficult to compare the performance and sample efficiency of SQIL and GAIL. The experiment in this section compares SQIL to a version of GAIL that uses Q-learning instead of TRPO, on the Pong Atari game with raw image observations. This allows for a head-to-head comparison of SQIL and GAIL: both algorithms use the same underlying RL algorithm (Q-learning) but provide the agent with different rewards – SQIL provides constant rewards, while GAIL provides learned rewards. The results in the figure to the right show that SQIL outperforms GAIL on this challenging image-based task.
213
+
214
+ ![](images/402459cacca9774bd62fc2c18999caeb251e9ad7805566fe7c0e3b5afce5fafc.jpg)
215
+
216
+ Smoothed with a rolling window of 100 episodes. Standard error on three random seeds.
217
+
218
+ The experiments in the previous sections evaluate SQIL in environments with discrete action spaces. The experiments in this section illustrate how SQIL can be adapted to continuous action spaces. We instantiate SQIL using soft actor-critic (SAC) – an offpolicy RL algorithm that can solve continuous con
219
+
220
+ ![](images/c5aaaee80e51069341b603bc966bd842d7177a233701c8bb328f3f791417af11.jpg)
221
+ 5.4 COMPARISON TO PRIOR METHODS ON CONTINUOUS CONTROL TASKS
222
+
223
+ SQIL: best performance on 10 consecutive training episodes. GAIL: results from Dhariwal et al. (2017).
224
+
225
+ trol tasks (Haarnoja et al., 2018). In particular, SAC is modified in the following ways: (1) the agent’s experience replay buffer is initially filled with expert demonstrations, where rewards are set to a positive constant, (2) when taking gradient steps to fit the agent’s soft Q function, we sample a balanced number of demonstration experiences and new experiences from the replay buffer, and (3) the agent observes rewards of zero during their interactions with the environment, instead of an extrinsic reward signal that specifies the desired task. This instantiation of SQIL is compared to GAIL on the Humanoid (17 DoF) and HalfCheetah (6 DoF) tasks from MuJoCo (Todorov et al., 2012). The results in the figure to the right show that SQIL and GAIL perform comparably to each other on both Humanoid and HalfCheetah, demonstrating that SQIL can be successfully deployed on problems with continuous action spaces.
226
+
227
+ # 5.5 ABLATION STUDY
228
+
229
+ The experiments in Sections 5.1 and 5.2 show that SQIL can outperform prior methods, but they do not illuminate how the various terms in the SQIL gradient in line 4 of Algorithm 1 interact to yield these results. The experiments in this section use the Lunar Lander environment to conduct an ablation study to better understand the importance of each component of SQIL. We hypothesize that incorporating the right information about state transitions into the agent’s experience replay buffer is essential: the replay buffer needs to contain more than just the demonstrations, and these additional experiences need to be sampled on-policy (see line 6 of Algorithm 1).
230
+
231
+ Experimental setup. We manipulate the parameters of SQIL to hobble it in various ways that test our hypotheses. In the first condition, $\lambda _ { \mathrm { s a m p } }$ is set to zero, to prevent SQIL from using additional samples drawn from the training environment. In the second condition, $\gamma$ is set to zero to prevent SQIL from accessing information about state transitions. In the third condition, a uniform random policy is used to sample additional rollouts instead of the imitation policy $\pi _ { \pmb { \theta } }$ in line 6 of Algorithm 1. We measure the agents’ success rate, as in Section 5.1.
232
+
233
+ <table><tr><td>Strain</td><td>Sdemo</td></tr><tr><td>Random 0.10± 0.30</td><td>0.04±0.02</td></tr><tr><td>Xsamp = 0 0.12 ± 0.02</td><td>0.87 ± 0.02</td></tr><tr><td>γ=0 0.41 ± 0.02</td><td>0.84± 0.02</td></tr><tr><td>π=Unif 0.47 ±0.02</td><td>0.82 ± 0.02</td></tr><tr><td>SQIL-T</td><td>0.66 ±0.02 0.89 ± 0.01</td></tr><tr><td>SQIL 0.89 ± 0.02</td><td>0.88 ± 0.03</td></tr><tr><td>Expert</td><td>0.93± 0.03 0.89± 0.31</td></tr></table>
234
+
235
+ ![](images/fb48069d37826b185ea44410b0bd67b43fa4517950bb9d10e8f348fb3a966c77.jpg)
236
+ Figure 3: Error regions show standard error across five random seeds.
237
+
238
+ Table 3: Lunar Lander. Best performance on 100 consecutive episodes during training. Standard errors shown for five random seeds.
239
+
240
+ Analysis. The results in Figure 3 and Table 3 show that the original method performs significantly better than its hobbled counterparts when starting from $S _ { 0 } ^ { \mathrm { t r a i n } }$ , suggesting that SQIL relies on information about the environment dynamics encoded in state transitions (SQIL vs. $\gamma = 0$ ), and that SQIL requires on-policy sampling (SQIL vs. $\pi = \mathrm { U n i f }$ and $\lambda _ { \mathrm { s a m p } } = 0 \mathrm { , }$ ).
241
+
242
+ # 6 DISCUSSION
243
+
244
+ Summary. We contribute a practical and general algorithm for learning to imitate an expert given action demonstrations and access to the environment. Simulation experiments demonstrate the effectiveness of our method at recovering an imitation policy that performs well in comparison to GAIL and behavioral cloning on tasks with high-dimensional, continuous observations as well as continuous actions.
245
+
246
+ Limitations. The analysis in Section 3, which proves that SQIL is equivalent to approximate inference of the expert policy under the MaxCausalEnt model of expert behavior, is limited in that does not show that SQIL exactly recovers the expert policy in the limit of having infinite demonstrations, or that the optimal imitation policy’s state-action occupancy measure converges to the expert’s. These are desirable properties for an imitation learning algorithm, and it is unclear if SQIL possesses them.
247
+
248
+ Future work. The ability to robustly recover an imitation policy from image observations, even when the initial state distribution differs between demonstration time and training time, enables open-world robotics experiments in which using sensors other than a camera would be expensive, and consistently resetting the environment to the same set of start states is difficult.
249
+
250
+ # REFERENCES
251
+
252
+ Anonymous. Discriminator-actor-critic: Addressing sample inefficiency and reward bias in adversarial imitation learning. In Submitted to International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $=$ Hk4fpoA5Km. under review.
253
+ Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009.
254
+ Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016.
255
+ Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016.
256
+ 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.
257
+ Chelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016.
258
+ Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017.
259
+ Yang Gao, Ji Lin, Fisher Yu, Sergey Levine, Trevor Darrell, et al. Reinforcement learning from imperfect demonstrations. arXiv preprint arXiv:1802.05313, 2018.
260
+ Alessandro Giusti, Jer´ ome Guzzi, Dan C Ciresan, Fang-Lin He, Juan P Rodr ˆ ´ıguez, Flavio Fontana, Matthias Faessler, Christian Forster, Jurgen Schmidhuber, Gianni Di Caro, et al. A machine learning approach to ¨ visual perception of forest trails for mobile robots. IEEE Robotics and Automation Letters, 1(2):661–667, 2016.
261
+ 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.
262
+ David Ha and Jurgen Schmidhuber. Recurrent world models facilitate policy evolution. ¨ arXiv preprint arXiv:1809.01999, 2018.
263
+ Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energybased policies. arXiv preprint arXiv:1702.08165, 2017.
264
+ Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018.
265
+ Todd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Gabriel Dulac-Arnold, et al. Deep q-learning from demonstrations. arXiv preprint arXiv:1704.03732, 2017.
266
+ Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016.
267
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
268
+ Karol Kurach, Mario Lucic, Xiaohua Zhai, Marcin Michalski, and Sylvain Gelly. The gan landscape: Losses, architectures, regularization, and normalization. arXiv preprint arXiv:1807.04720, 2018.
269
+
270
+ Michael Laskey, Sam Staszak, Wesley Yu-Shu Hsieh, Jeffrey Mahler, Florian T Pokorny, Anca D Dragan, and Ken Goldberg. Shiv: Reducing supervisor burden in dagger using support vectors for efficient learning from demonstrations in high dimensional state spaces. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pp. 462–469. IEEE, 2016.
271
+
272
+ Sergey Levine. Reinforcement learning and control as probabilistic inference: Tutorial and review. arXiv preprint arXiv:1805.00909, 2018.
273
+
274
+ Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In Advances in Neural Information Processing Systems, pp. 3812–3822, 2017.
275
+
276
+ 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.
277
+
278
+ Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In Icml, pp. 663–670, 2000.
279
+
280
+ Dean A Pomerleau. Efficient training of artificial neural networks for autonomous navigation. Neural Computation, 3(1):88–97, 1991.
281
+
282
+ Rouhollah Rahmatizadeh, Pooya Abolghasemi, Aman Behal, and Ladislau Bol¨ oni. Learning real manipulation ¨ tasks from virtual demonstrations using lstm. arXiv preprint, 2016.
283
+
284
+ Rouhollah Rahmatizadeh, Pooya Abolghasemi, Ladislau Bol¨ oni, and Sergey Levine. Vision-based multi- ¨ task manipulation for inexpensive robots using end-to-end learning from demonstration. arXiv preprint arXiv:1707.02920, 2017.
285
+
286
+ Siddharth Reddy, Anca D Dragan, and Sergey Levine. Where do you think you’re going?: Inferring beliefs about dynamics from behavior. arXiv preprint arXiv:1805.08010, 2018.
287
+
288
+ Stephane Ross and Drew Bagnell. Efficient reductions for imitation learning. In ´ Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 661–668, 2010.
289
+
290
+ Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured pre-´ diction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011.
291
+
292
+ Jurgen Schmidhuber. Deep learning in neural networks: An overview. ¨ Neural networks, 61:85–117, 2015.
293
+
294
+ John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015.
295
+
296
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026–5033. IEEE, 2012.
297
+
298
+ Markus Wulfmeier, Peter Ondruska, and Ingmar Posner. Maximum entropy deep inverse reinforcement learning. arXiv preprint arXiv:1507.04888, 2015.
299
+
300
+ Tianhao Zhang, Zoe McCarthy, Owen Jow, Dennis Lee, Ken Goldberg, and Pieter Abbeel. Deep imitation learning for complex manipulation tasks from virtual reality teleoperation. arXiv preprint arXiv:1710.04615, 2017.
301
+
302
+ Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008.
303
+
304
+ Brian D Ziebart, J Andrew Bagnell, and Anind K Dey. Modeling interaction via the principle of maximum causal entropy. In Proceedings of the 27th International Conference on International Conference on Machine Learning, pp. 1255–1262. Omnipress, 2010.
305
+
306
+ # A APPENDIX
307
+
308
+ A.1 SQIL-T
309
+
310
+ SQIL-T uses Adam (Kingma & Ba, 2014) to minimize the loss function,
311
+
312
+ $$
313
+ \ell _ { \mathrm { S O I L - T } } ( \theta ) \triangleq \alpha \sum _ { \tau \in \mathcal { D } _ { \mathrm { d e m } } } \sum _ { t = 0 } ^ { T - 1 } - ( Q _ { \theta } ( s _ { t } , a _ { t } ) - V _ { \theta } ( s _ { t } ) ) + \lambda _ { \mathrm { d e m o } } B _ { \theta } ( \mathcal { D } _ { \mathrm { d e m o } } , 0 ) + \lambda _ { \mathrm { s a m p } } B _ { \theta } ( \mathcal { D } _ { \mathrm { s a m p } } , 0 ) ,
314
+ $$
315
+
316
+ which is identical to the SQIL loss in Equation 15, except that the $V _ { \pmb { \theta } } ( s _ { 0 } )$ terms are not present in Equation 19.
317
+
318
+ # A.2 IMPLEMENTATION DETAILS
319
+
320
+ Code and data for the experiments in Section 5 are publicly available.6
321
+
322
+ To ensure fair comparisons, the same network architectures were used to evaluate SQIL, GAIL, and BC. For Lunar Lander, we used a network architecture with two fully-connected layers containing 128 hidden units each to represent the Q network in SQIL, the policy and discriminator networks in GAIL, and the policy network in BC. For Car Racing, we used four convolutional layers (following Ha & Schmidhuber (2018)) and two fully-connected layers containing 256 hidden units each. For Humanoid and HalfCheetah, we used two fully-connected layers containing 256 hidden units each. For Pong, we used the convolutional neural network described in Mnih et al. (2015) to represent the Q network in SQIL, as well as the Q network and discriminator network in GAIL.
323
+
324
+ To ensure fair comparisons, the same demonstration data was used to train SQIL, GAIL, and BC. For Lunar Lander, we collected 100 demonstration rollouts. For Car Racing, we collected 20 demonstration rollouts. For Pong, we collected 50 demonstration rollouts. Expert demonstrations were generated from scratch for Lunar Lander using DQN (Mnih et al., 2015), and collected from opensource pre-trained policies for Car Racing (Ha & Schmidhuber, 2018) as well as Humanoid and HalfCheetah (Dhariwal et al., 2017). The Humanoid demonstrations were generated by a stochastic expert policy, while the HalfCheetah demonstrations were generated by a deterministic expert policy; both experts were trained using TRPO.7 We used two open-source implementations of GAIL: Fu et al. (2017) for Lunar Lander and Car Racing, and Dhariwal et al. (2017) for MuJoCo. We adapted the OpenAI Baselines implementation of GAIL to use Q-learning for Pong. Expert demonstrations were generated from scratch for Pong using DQN.
325
+
326
+ For Lunar Lander, we set $r = 1$ , $k = 2 0 0$ , and $\lambda _ { \mathrm { s a m p } } = 1 0 ^ { - 6 }$ . For Car Racing, we set $r = 1$ , $k = 5 0$ , and $\lambda _ { \mathrm { s a m p } } = 0 . 0 1$ . For Humanoid, we set $r = 5$ and $\lambda _ { \mathrm { s a m p } } = 1$ . For HalfCheetah, we set $r = 1 0$ and $\lambda _ { \operatorname* { s a m p } } = \mathrm { \hat { 1 } }$ . For Pong, we set $r = 1 0 0$ , $k = 1$ , and $\lambda _ { \operatorname* { s a m p } } \doteq 1$ .
327
+
328
+ SQIL was not pre-trained in any of the experiments. GAIL was pre-trained using behavioral cloning for HalfCheetah, but was not pre-trained in any other experiments.
329
+
330
+ In standard implementations of Q-learning and SAC, the agent’s experience replay buffer typically has a fixed size, and once the buffer is full, old experiences are deleted to make room for new experiences. In SQIL, we never delete demonstration experiences from the replay buffer, but otherwise follow the standard implementation.
331
+
332
+ We use Adam (Kingma & Ba, 2014) to take the gradient step in line 4 of Algorithm 1.
333
+
334
+ The GAIL performance metrics in Section 5.4 are taken from Dhariwal et al. (2017).8
335
+
336
+ The GAIL and SQIL policies in Section 5.4 are set to be deterministic during the evaluation rollouts used to measure performance.
337
+
338
+ ![](images/d483066567d61ea3c53e78fcb064cb3a42fcadeacee800aa714121661be45cd4.jpg)
339
+ Figure 4: Standard error shown for five random seeds on the first $2 0 0 \mathrm { k }$ steps. No smoothing across training steps. The first four random seeds are from the experiment in Section 5.4, which only train for $2 0 0 \mathrm { k }$ steps. To measure the effect of training on more episodes, we ran another experiment with a fifth random seed and trained for $5 0 0 \mathrm { k }$ steps. Training for a much larger number of steps does not lead to significant deterioration in performance.
340
+
341
+ # A.3 RELATED WORK
342
+
343
+ Various approaches have been developed to address state distribution shift in behavioral cloning, without relying on IRL. Hand-engineering a domain-specific loss function and carefully designing the demonstration collection process have enabled researchers to train effective imitation policies for self-driving cars (Bojarski et al., 2016), autonomous drones (Giusti et al., 2016), and robotic manipulators (Zhang et al., 2017; Rahmatizadeh et al., 2017; 2016). DAgger-based methods query the expert for on-policy action labels (Ross et al., 2011; Laskey et al., 2016). These approaches either require domain knowledge or the ability to query the expert, while SQIL requires neither.
parse/train/B1excoAqKQ/B1excoAqKQ_content_list.json ADDED
@@ -0,0 +1,1672 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "WHAT WOULD $\\pi ^ { * }$ DO?: IMITATION LEARNING VIA OFF-POLICY REINFORCEMENT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 733,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Learning to imitate expert actions given demonstrations containing image observations is a difficult problem in robotic control. The key challenge is generalizing behavior to out-of-distribution states that differ from those in the demonstrations. State-of-the-art imitation learning algorithms perform well in environments with low-dimensional observations, but typically involve adversarial optimization procedures, which can be difficult to use with high-dimensional image observations. We propose a remarkably simple alternative based on off-policy soft Q-learning, which we call soft $Q$ imitation learning (SQIL, pronounced “skill”), that rewards the agent for matching demonstrated actions in demonstrated states. The key idea is initially filling the agent’s experience replay buffer with demonstrations, where rewards are set to a positive constant, and setting rewards to zero in all additional experiences. We derive SQIL from first principles as a method for performing approximate inference under the MaxCausalEnt model of expert behavior. The approximate inference objective trades off between a pure behavioral cloning loss and a regularization term that incorporates information about state transitions via the soft Bellman error. Our experiments show that SQIL matches the state of the art in low-dimensional environments, and significantly outperforms prior work in playing video games from high-dimensional images. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 764,
44
+ 517
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 542,
55
+ 334,
56
+ 559
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Many real-world sequential decision-making problems can be tackled by imitation learning, where an expert demonstrates near-optimal behavior to an agent that then attempts to replicate that behavior in novel situations (Argall et al., 2009). This paper considers the problem of training an agent to imitate an expert policy, given expert action demonstrations and access to the environment. The agent does not get to observe a reward signal or query the expert, and does not know the state transition dynamics ex-ante. ",
63
+ "bbox": [
64
+ 174,
65
+ 574,
66
+ 825,
67
+ 657
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Standard approaches to this problem based on behavioral cloning seek to imitate the expert’s actions, but do not reason about the consequences of actions (Pomerleau, 1991). As a result, they suffer from state distribution shift, and fail to generalize to states that are very different from those seen in the demonstrations (Ross & Bagnell, 2010; Ross et al., 2011). Approaches based on inverse reinforcement learning (IRL) deal with this issue by fitting a reward function that represents preferences over trajectories rather than individual actions $\\mathrm { N g }$ et al., 2000; Ziebart et al., 2008), and using the learned reward function to train the imitation agent through RL (Wulfmeier et al., 2015; Finn et al., 2016; Fu et al., 2017). This is the core idea behind generative adversarial imitation learning (GAIL), which implicitly combines IRL and RL using generative adversarial networks (GANs) (Ho & Ermon, 2016; Goodfellow et al., 2014). GAIL is state-of-the-art in environments with low-dimensional observations, but requires additional reward augmentation and feature engineering when applied to environments with high-dimensional image observations (Li et al., 2017), due to the difficulty of training GANs (Kurach et al., 2018). In short, imitation learning from raw pixel inputs without prior knowledge of the domain remains a challenge. ",
74
+ "bbox": [
75
+ 174,
76
+ 665,
77
+ 825,
78
+ 859
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The key insight in this paper is that instead of using a learned reward function or discriminator to provide a reward signal to the imitation policy, as is done in IRL-based imitation methods and GAIL, the imitation agent can simply be rewarded for matching demonstrated actions in demonstrated states using off-policy soft Q-learning. The agent’s experience replay buffer is initially filled with demonstrations where rewards are set to some positive constant, and gradually accumulates additional experiences with rewards set to zero. The agent has an incentive to imitate the expert in demonstrated states, and to take actions that lead it back to demonstrated states when it encounters new states that differ from the demonstrations. We call this algorithm soft $Q$ imitation learning (SQIL, pronounced “skill”). ",
85
+ "bbox": [
86
+ 174,
87
+ 866,
88
+ 823,
89
+ 922
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 172
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We motivate the SQIL algorithm by deriving it from first principles as a method for performing approximate inference under the MaxCausalEnt model of expert behavior (Ziebart et al., 2010). Our analysis shows that SQIL maximizes a lower bound on the log-posterior of the soft Q values given the demonstrations – a bound that trades off between a pure behavioral cloning loss and a regularization term that incorporates state transition information via the soft Bellman error. ",
107
+ "bbox": [
108
+ 174,
109
+ 180,
110
+ 825,
111
+ 251
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The main contribution of this paper is SQIL: a practical and general imitation learning algorithm that is effective in MDPs with high-dimensional, continuous observations – including raw pixel inputs – and has a natural theoretical interpretation as approximate inference. We run experiments in the image-based Car Racing and low-dimensional Lunar Lander game environments from OpenAI Gym, the Humanoid and HalfCheetah continuous control tasks from MuJoCo, and image-based Atari Pong, to compare SQIL to two prior methods: behavioral cloning and GAIL. The results show that SQIL matches GAIL in low-dimensional environments, and significantly outperforms GAIL on the image-based Car Racing and Pong tasks. ",
118
+ "bbox": [
119
+ 174,
120
+ 257,
121
+ 825,
122
+ 369
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 PRELIMINARIES ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 388,
133
+ 339,
134
+ 405
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "This work builds on the maximum causal entropy (MaxCausalEnt) model of expert behavior (Ziebart et al., 2010; Levine, 2018). In a finite-horizon Markov Decision Process (MDP) with a finite, discrete action space $\\mathcal { A }$ ,1 the demonstrator is assumed to follow a policy $\\pi$ that maximizes reward $R ( s , a )$ . To simplify exposition, we assume the state transition dynamics are deterministic: let $s ^ { \\prime }$ denote the state that follows from taking action $a$ in state $s$ . The policy $\\pi$ forms a Boltzmann distribution over actions, ",
141
+ "bbox": [
142
+ 173,
143
+ 420,
144
+ 825,
145
+ 502
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "equation",
151
+ "img_path": "images/1594f38899a5898ffdc021b7f3245ef2b18bf10650ca235008d82c2a7e834d42.jpg",
152
+ "text": "$$\n\\pi ( a | s ) \\triangleq \\exp { \\left( Q ( s , a ) - V ( s ) \\right) } ,\n$$",
153
+ "text_format": "latex",
154
+ "bbox": [
155
+ 390,
156
+ 501,
157
+ 606,
158
+ 518
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "where $Q$ is the soft Q function, and $V$ is the soft value function, ",
165
+ "bbox": [
166
+ 173,
167
+ 522,
168
+ 593,
169
+ 537
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "equation",
175
+ "img_path": "images/2a9dbd73914cf197746e398a525d832547f494f411bc591f1217a241c489698b.jpg",
176
+ "text": "$$\n\\begin{array} { r } { V ( s ) \\triangleq \\left\\{ \\begin{array} { l l } { 0 } & { \\mathrm { ~ i f ~ } s \\mathrm { ~ i s ~ a ~ t e r m i n a l ~ s t a t e } } \\\\ { \\log \\left( \\sum _ { a \\in A } \\exp \\left( Q ( s , a ) \\right) \\right) } & { \\mathrm { ~ o t h e r w i s e } } \\end{array} \\right. } \\end{array}\n$$",
177
+ "text_format": "latex",
178
+ "bbox": [
179
+ 294,
180
+ 544,
181
+ 704,
182
+ 580
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "In the standard MaxCausalEnt model, the soft Q values are a deterministic function of the rewards and dynamics, given by the soft Bellman equation, ",
189
+ "bbox": [
190
+ 173,
191
+ 587,
192
+ 825,
193
+ 614
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "equation",
199
+ "img_path": "images/099f874ec21ffe5cb6b8bed01cf53939e4715728b3e3941e84abe95a08ab7b53.jpg",
200
+ "text": "$$\nQ ( s , a ) \\triangleq R ( s , a ) + \\gamma V ( s ^ { \\prime } ) .\n$$",
201
+ "text_format": "latex",
202
+ "bbox": [
203
+ 400,
204
+ 622,
205
+ 598,
206
+ 641
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "2.1 APPROXIMATE MAXCAUSALENT MODEL ",
213
+ "text_level": 1,
214
+ "bbox": [
215
+ 173,
216
+ 656,
217
+ 501,
218
+ 671
219
+ ],
220
+ "page_idx": 1
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "In the analysis in Section 3, the standard MaxCausalEnt model is approximated by a probabilistic model that treats the soft $\\mathrm { Q }$ values as random variables, ",
225
+ "bbox": [
226
+ 173,
227
+ 681,
228
+ 823,
229
+ 710
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "equation",
235
+ "img_path": "images/88237b16218f2065e698935990746264d72a6fb32522da69a4f6a95fba967185.jpg",
236
+ "text": "$$\nQ ( s , a ) \\sim \\mathcal { N } ( R ( s , a ) + \\gamma V ( s ^ { \\prime } ) , \\sigma ^ { 2 } ) ,\n$$",
237
+ "text_format": "latex",
238
+ "bbox": [
239
+ 375,
240
+ 717,
241
+ 622,
242
+ 734
243
+ ],
244
+ "page_idx": 1
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "where $\\sigma \\in \\mathbb { R }$ is a constant hyperparameter, and $R ( s , a )$ is a random variable with zero mean and unit variance. To simplify the analysis in Section 3, we assume that the dynamics of the environment satisfy the property that if state $s _ { i }$ is reachable from state $s _ { j }$ , then $s _ { j }$ is not reachable from $s _ { i }$ – this ensures that the probabilistic graphical model that captures the joint distribution over soft Q values is acyclic. The experiments in Section 5 show that even when this assumption is violated, SQIL performs well empirically. ",
249
+ "bbox": [
250
+ 173,
251
+ 741,
252
+ 825,
253
+ 825
254
+ ],
255
+ "page_idx": 1
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "3 IMITATION LEARNING VIA APPROXIMATE MAXCAUSALENT INFERENCE ",
260
+ "text_level": 1,
261
+ "bbox": [
262
+ 169,
263
+ 102,
264
+ 807,
265
+ 118
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "We aim for an imitation learning algorithm that generalizes to new states, without resorting to adversarial optimization procedures that would be difficult to use with image observations. Our approach is to derive a lower bound on the log-posterior of the soft Q values given the demonstrations; in particular, a lower bound that is maximized by the SQIL algorithm. ",
272
+ "bbox": [
273
+ 174,
274
+ 132,
275
+ 823,
276
+ 189
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "3.1 DERIVING THE APPROXIMATE INFERENCE OBJECTIVE ",
283
+ "text_level": 1,
284
+ "bbox": [
285
+ 174,
286
+ 204,
287
+ 593,
288
+ 219
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Consider a demonstration rollout $\\tau = ( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ , where $s _ { T }$ is a terminal state. Standard MaxCausalEnt IRL searches for the reward function that maximizes the posterior probability of the rewards given the demonstration. Our goal, however, is not to infer the expert’s reward function; it is to infer the expert’s policy, which is represented by their soft $\\mathrm { Q }$ function. We approach this problem by formalizing uncertainty about the soft Q values using the probabilistic model described in Section 2.1. We fit a soft Q function to optimize the posterior probability of the soft $\\mathrm { Q }$ values $Q$ given the demonstration $\\tau$ , where $Q \\stackrel { \\triangle } { = } \\{ Q ( s , a ) \\mid ( s , a ) \\in \\mathcal { X } \\}$ , and $\\mathcal { X }$ is a finite subset of $\\boldsymbol { S } \\times \\boldsymbol { A }$ that includes the state-action pairs in $\\tau$ . Since $Q ( s , a )$ may depend on $Q ( s ^ { \\prime } , a ^ { \\prime } )$ (see Equations 4 and 2), $\\mathcal { X }$ is assumed to satisfy the closure property, ",
295
+ "bbox": [
296
+ 173,
297
+ 229,
298
+ 825,
299
+ 358
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "equation",
305
+ "img_path": "images/f7e0f1ec9dcefdf40d71259603b830e9414934e5d7676780b37fb3390328485e.jpg",
306
+ "text": "$$\n\\forall ( s , a ) \\in \\mathcal { X } . \\big ( s ^ { \\prime } \\mathrm { ~ n o t ~ t e r m i n a l } \\implies ( \\forall a ^ { \\prime } \\in \\mathcal { A } . ( s ^ { \\prime } , a ^ { \\prime } ) \\in \\mathcal { X } ) \\big ) .\n$$",
307
+ "text_format": "latex",
308
+ "bbox": [
309
+ 295,
310
+ 359,
311
+ 700,
312
+ 376
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "The goal is to derive a lower bound on the log-posterior, $\\log p ( Q | \\tau )$ , that is maximized by the SQIL algorithm. The first step is to marginalize out the rewards, $\\pmb { R } \\triangleq \\{ R ( s , a ) \\mid ( s , a ) \\in \\chi \\}$ , as follows. ",
319
+ "bbox": [
320
+ 173,
321
+ 378,
322
+ 823,
323
+ 409
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "equation",
329
+ "img_path": "images/0d8c6fb796b90b7add80048a5a0ef90e58c5dddadceee14535544c86fa1fc80f.jpg",
330
+ "text": "$$\n\\begin{array} { r } { p ( Q | \\tau ) \\propto p ( \\tau | Q ) p ( Q ) = \\mathbb { E } _ { R } [ p ( \\tau | Q , R ) p ( Q | R ) ] = \\mathbb { E } _ { R } [ p ( \\tau | Q ) p ( Q | R ) ] . } \\end{array}\n$$",
331
+ "text_format": "latex",
332
+ "bbox": [
333
+ 251,
334
+ 411,
335
+ 743,
336
+ 428
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "First bound. Optimizing the log of the expectation in Equation 6 is hard, for a number of reasons: we haven’t assumed a particular prior distribution over rewards (only that it has zero mean and unit variance), and the soft Q values in $Q$ are not conditionally independent given $\\pmb { R }$ . Optimizing the expectation of the log is easier. By Jensen’s inequality, ",
343
+ "bbox": [
344
+ 174,
345
+ 430,
346
+ 825,
347
+ 486
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "equation",
353
+ "img_path": "images/19eb269c8b8a7f0b39b2ac994aa0caa1b15aa2e06e14acedf8d518a98b546568.jpg",
354
+ "text": "$$\n\\begin{array} { r } { \\log \\left( \\mathbb E _ { R } [ p ( \\tau | Q ) p ( Q | R ) ] \\right) \\geq \\mathbb E _ { R } [ \\log p ( \\tau | Q ) + \\log p ( Q | R ) ] . } \\end{array}\n$$",
355
+ "text_format": "latex",
356
+ "bbox": [
357
+ 297,
358
+ 488,
359
+ 699,
360
+ 506
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "The conditional likelihood of the demonstration $\\tau$ given the soft Q values $Q$ is given by Equation 1: ",
367
+ "bbox": [
368
+ 181,
369
+ 507,
370
+ 820,
371
+ 522
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/fd815a2f19c2b23ffe0d64b4bbf8b63929fe8aee7a540429823f675054841370.jpg",
378
+ "text": "$$\np ( \\tau | \\mathbf { \\Delta } Q ) = \\exp \\left( \\sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) \\right) .\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 357,
382
+ 523,
383
+ 638,
384
+ 566
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "The conditional likelihood of the soft Q values $Q$ given the rewards $\\pmb { R }$ is given by Equation 4: ",
391
+ "bbox": [
392
+ 176,
393
+ 568,
394
+ 789,
395
+ 583
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "equation",
401
+ "img_path": "images/bec061aecdc37e13078984e847da8efae9c6fa57a77f839c9eca8206ca8eb77d.jpg",
402
+ "text": "$$\np ( \\pmb { Q } | \\pmb { R } ) = \\prod _ { ( s , a ) \\in \\mathcal { X } } \\mathcal { N } ( Q ( s , a ) ; \\pmb { R } ( s , a ) + \\gamma V ( s ^ { \\prime } ) , \\sigma ^ { 2 } ) ,\n$$",
403
+ "text_format": "latex",
404
+ "bbox": [
405
+ 318,
406
+ 584,
407
+ 676,
408
+ 619
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "where the joint distribution over $Q$ can be factored due to the state re-entry assumption about the dynamics made in Section 2.1 and the closure assumption about $\\mathcal { X }$ made in Equation 5. Simplifying the lower bound in Equation 7, ",
415
+ "bbox": [
416
+ 174,
417
+ 622,
418
+ 825,
419
+ 661
420
+ ],
421
+ "page_idx": 2
422
+ },
423
+ {
424
+ "type": "equation",
425
+ "img_path": "images/abb05fecc93ee2c1de7477f6363a52b11656317f81ef0ca42f0b75c9e4276d2a.jpg",
426
+ "text": "$$\n\\begin{array} { r l r } { \\left. { ( 7 ) = \\sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) } } \\\\ & { } & { + \\displaystyle \\sum _ { ( s , a ) \\in \\mathcal { X } } - \\frac { 1 } { 2 \\sigma ^ { 2 } } \\left( ( Q ( s , a ) - ( \\mathbb { E } [ R ( s , a ) ] + \\gamma V ( s ^ { \\prime } ) ) \\right) ^ { 2 } + \\mathrm { V a r } [ R ( s , a ) ] \\right) - \\log \\sqrt { 2 \\pi \\sigma ^ { 2 } } . } \\end{array}\n$$",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 204,
430
+ 664,
431
+ 767,
432
+ 739
433
+ ],
434
+ "page_idx": 2
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Applying the assumption from Section 2.1 that the rewards have zero mean and unit variance, ",
439
+ "bbox": [
440
+ 173,
441
+ 741,
442
+ 784,
443
+ 755
444
+ ],
445
+ "page_idx": 2
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/94e1acfd9425bf7260b9ca9bf9a229c942c2c67eb122821ed5882bf9957ee64c.jpg",
450
+ "text": "$$\n( 1 0 ) = \\sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) + \\sum _ { ( s , a ) \\in \\mathcal { X } } - \\frac { 1 } { 2 \\sigma ^ { 2 } } ( ( Q ( s , a ) - \\gamma V ( s ^ { \\prime } ) ) ^ { 2 } + 1 ) - \\log { \\sqrt { 2 \\pi \\sigma ^ { 2 } } } .\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 191,
454
+ 757,
455
+ 779,
456
+ 803
457
+ ],
458
+ "page_idx": 2
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Second bound. Next, the bound is intentionally loosened, in order to arrive at an objective that is maximized by the SQIL algorithm.2 By the MaxCausalEnt assumptions in Section 2, ",
463
+ "bbox": [
464
+ 171,
465
+ 804,
466
+ 823,
467
+ 833
468
+ ],
469
+ "page_idx": 2
470
+ },
471
+ {
472
+ "type": "equation",
473
+ "img_path": "images/195e3afca159cc710d9365af5d0018230b060cf40ef2deeb289f43c6760bf9b7.jpg",
474
+ "text": "$$\nV ( s _ { 0 } ) = \\mathbb { E } _ { \\tau \\sim p ( \\tau \\mid \\pi ) } \\left[ \\sum _ { t = 0 } ^ { T - 1 } \\gamma ^ { t } \\left( Q ( s _ { t } , a _ { t } ) - \\gamma V ( s _ { t + 1 } ) + \\mathcal { H } ( \\pi ( \\cdot | s _ { t } ) ) \\right) \\right] ,\n$$",
475
+ "text_format": "latex",
476
+ "bbox": [
477
+ 269,
478
+ 834,
479
+ 725,
480
+ 878
481
+ ],
482
+ "page_idx": 2
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "where $\\mathcal { H }$ denotes entropy. Maximizing Equation 11 with respect to $Q$ yields a solution in which $Q ( s , a ) - \\gamma V ( s ^ { \\prime } ) \\leq \\bar { f } ( \\bar { \\sigma } ^ { 2 } )$ , where $f$ is an increasing function of $\\sigma ^ { 2 }$ . Thus, $V ( s _ { 0 } ) \\leq ( f ( \\sigma ^ { 2 } ) +$ $\\log | \\mathcal { A } | ) / ( 1 - \\gamma )$ , and ",
487
+ "bbox": [
488
+ 174,
489
+ 103,
490
+ 823,
491
+ 146
492
+ ],
493
+ "page_idx": 3
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "img_path": "images/1c5c1a8263ad5b18c1645110b62b3cdd802c7535e02217e9f334c4f27b9f5d78.jpg",
498
+ "text": "$$\n( 1 1 ) \\geq ( 1 1 ) + V ( s _ { 0 } ) - ( f ( \\sigma ^ { 2 } ) + \\log | A | ) / ( 1 - \\gamma ) .\n$$",
499
+ "text_format": "latex",
500
+ "bbox": [
501
+ 326,
502
+ 147,
503
+ 669,
504
+ 166
505
+ ],
506
+ "page_idx": 3
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "The soft Q function that maximizes the lower bound in Equation 13 is ",
511
+ "bbox": [
512
+ 173,
513
+ 167,
514
+ 633,
515
+ 183
516
+ ],
517
+ "page_idx": 3
518
+ },
519
+ {
520
+ "type": "equation",
521
+ "img_path": "images/e4dffc6fd83cb67268719d1f65717b5e824806fdd0988494aab265eb1e38ed0c.jpg",
522
+ "text": "$$\nQ ^ { * } \\triangleq \\operatorname * { a r g m a x } _ { Q } V ( s _ { 0 } ) + \\sum _ { t = 0 } ^ { T - 1 } Q ( s _ { t } , a _ { t } ) - V ( s _ { t } ) - \\frac { 1 } { 2 \\sigma ^ { 2 } } \\sum _ { ( s , a ) \\in \\mathcal X } ( Q ( s , a ) - \\gamma V ( s ^ { \\prime } ) ) ^ { 2 } .\n$$",
523
+ "text_format": "latex",
524
+ "bbox": [
525
+ 207,
526
+ 184,
527
+ 764,
528
+ 229
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Practical implementation. For environments with a small, discrete state space $s$ and known dynamics, $\\mathcal { X }$ can be set to $\\boldsymbol { s } \\times \\boldsymbol { A }$ . For environments with a continuous state space $s$ and unknown dynamics, we set $\\mathcal { X }$ to be the set of state-action pairs in the demonstration rollouts $\\mathcal { D } _ { \\mathrm { d e m o } }$ and rollouts $\\mathcal { D } _ { \\mathrm { s a m p } }$ of the imitation policy, which are periodically sampled during training.3 We fit a parameterized soft Q function $\\bar { Q _ { \\theta } }$ to minimize the loss, ",
535
+ "bbox": [
536
+ 174,
537
+ 231,
538
+ 825,
539
+ 297
540
+ ],
541
+ "page_idx": 3
542
+ },
543
+ {
544
+ "type": "equation",
545
+ "img_path": "images/df5b56365013ce7d5993706408a221e33306f05e30816425321da024d59d5660.jpg",
546
+ "text": "$$\n\\ell ( \\pmb \\theta ) \\triangleq \\sum _ { \\tau \\in \\mathcal { D } _ { \\pmb { \\mathscr { A } } _ { \\mathrm { r m o } } } } \\left( - V _ { \\pmb \\theta } ( s _ { 0 } ) + \\sum _ { t = 0 } ^ { T - 1 } - ( Q _ { \\theta } ( s _ { t } , a _ { t } ) - V _ { \\pmb \\theta } ( s _ { t } ) ) \\right) + \\lambda _ { \\sf d e m o } B _ { \\theta } ( \\mathcal { D } _ { \\sf d e m o } , 0 ) + \\lambda _ { \\sf s a m p } B _ { \\theta } ( \\mathcal { D } _ { \\sf s a m p } , 0 ) ,\n$$",
547
+ "text_format": "latex",
548
+ "bbox": [
549
+ 178,
550
+ 299,
551
+ 815,
552
+ 339
553
+ ],
554
+ "page_idx": 3
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "where $\\alpha , \\lambda _ { \\mathrm { d e m o } } , \\lambda _ { \\mathrm { s a m p } } \\in \\mathbb { R } _ { \\ge 0 }$ are constant hyperparameters, $V _ { \\pmb { \\theta } }$ denotes the soft value function given by $Q _ { \\theta }$ and Equation 2,4 and $B _ { \\theta }$ denotes the sum of squared soft Bellman errors, ",
559
+ "bbox": [
560
+ 173,
561
+ 354,
562
+ 826,
563
+ 386
564
+ ],
565
+ "page_idx": 3
566
+ },
567
+ {
568
+ "type": "equation",
569
+ "img_path": "images/ec3d59cbba6e933040b522b9bb21dc19d91da9ebcf9dbf8a16940a5f940e69b9.jpg",
570
+ "text": "$$\nB _ { \\theta } ( \\mathcal { D } , r ) \\triangleq \\sum _ { \\tau \\in \\mathcal { D } } \\sum _ { t = 0 } ^ { T - 1 } ( Q _ { \\theta } ( s _ { t } , a _ { t } ) - ( r + \\gamma V _ { \\theta } ( s _ { t + 1 } ) ) ) ^ { 2 } ,\n$$",
571
+ "text_format": "latex",
572
+ "bbox": [
573
+ 315,
574
+ 387,
575
+ 679,
576
+ 431
577
+ ],
578
+ "page_idx": 3
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "where $r \\in \\mathbb { R }$ is a constant that does not depend on the state or action. The experiments in Section 5 use a convolutional neural network or multi-layer perceptron to model $Q _ { \\theta }$ , where $\\pmb { \\theta }$ are the weights of the neural network (Schmidhuber, 2015). ",
583
+ "bbox": [
584
+ 174,
585
+ 433,
586
+ 825,
587
+ 474
588
+ ],
589
+ "page_idx": 3
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "The loss in Equation 15 bounds the log-posterior of the soft $\\mathrm { Q }$ values given the demonstrations. Searching for a soft Q function that optimizes this objective is equivalent to performing approximate inference under the MaxCausalEnt model of expert behavior. The objective combines a behavioral cloning loss, which does not reason about the consequences of actions, with a regularization term that incorporates information about state transitions. The regularization term performs soft Bellman backups on a reward of zero – a consequence of the prior distribution over rewards, which has an expected value of zero – and can be seen as imposing a prior distribution on the soft $\\mathrm { Q }$ values that is independent of the expert demonstrations. ",
594
+ "bbox": [
595
+ 173,
596
+ 481,
597
+ 825,
598
+ 593
599
+ ],
600
+ "page_idx": 3
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "3.2 IMPLEMENTING APPROXIMATE INFERENCE WITH OFF-POLICY SOFT Q-LEARNING ",
605
+ "text_level": 1,
606
+ "bbox": [
607
+ 173,
608
+ 608,
609
+ 787,
610
+ 623
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "Surprisingly, the gradient of the approximate inference objective in Equation 15 is equivalent to the gradient of the objective of a soft Q-learning algorithm (Haarnoja et al., 2017) that gives the agent a constant positive reward for matching the demonstrated action in a demonstrated state, and zero reward otherwise. Differentiating the objective in Equation 15, ",
617
+ "bbox": [
618
+ 174,
619
+ 633,
620
+ 825,
621
+ 690
622
+ ],
623
+ "page_idx": 3
624
+ },
625
+ {
626
+ "type": "equation",
627
+ "img_path": "images/bb1c1628e47c71e08bb2c3271929bc6c446aa2fe19c88c1f4c6048ec2b4da556.jpg",
628
+ "text": "$$\n\\begin{array} { r l } & { \\nabla _ { \\theta } \\ell ( \\theta ) = \\alpha \\underset { \\tau \\in \\mathcal { D } _ { \\mathrm { d a m } } } { \\sum } \\Bigg ( - \\nabla V _ { \\theta } ( s _ { 0 } ) + \\underset { t = 0 } { \\overset { T - 1 } { \\sum } } - ( \\nabla Q _ { \\theta } ( s _ { t } , a _ { t } ) - \\nabla V _ { \\theta } ( s _ { t } ) ) \\Bigg ) } \\\\ & { \\quad \\quad \\quad + \\lambda _ { \\mathrm { d e m } } \\underset { \\tau \\in \\mathcal { D } _ { \\mathrm { d a m } } } { \\sum } \\underset { t = 0 } { \\overset { T - 1 } { \\sum } } \\nabla ( Q _ { \\theta } ( s _ { t } , a _ { t } ) - \\gamma V _ { \\theta } ( s _ { t + 1 } ) ) ^ { 2 } + \\lambda _ { \\mathrm { s a m p } } \\nabla B _ { \\theta } ( \\mathcal { D } _ { \\mathrm { s a m p } } , 0 ) } \\\\ & { \\quad \\quad = \\underset { \\tau \\in \\mathcal { D } _ { \\mathrm { d a m } } } { \\sum } \\Bigg ( - \\alpha \\nabla V _ { \\theta } ( s _ { 0 } ) + \\underset { t = 0 } { \\overset { T - 1 } { \\sum } } \\alpha \\nabla V _ { \\theta } ( s _ { t } ) - \\alpha \\gamma \\nabla V _ { \\theta } ( s _ { t + 1 } ) \\Bigg ) } \\\\ & { \\quad \\quad \\quad + \\lambda _ { \\mathrm { d e m } } \\nabla B _ { \\theta } \\left( \\mathcal { D } _ { \\mathrm { d a m } } , \\frac { \\alpha } { 2 \\lambda _ { \\mathrm { d a m o } } } \\right) + \\lambda _ { \\mathrm { s a m p } } \\nabla B _ { \\theta } ( \\mathcal { D } _ { \\mathrm { s a m p } } , 0 ) . } \\end{array}\n$$",
629
+ "text_format": "latex",
630
+ "bbox": [
631
+ 220,
632
+ 693,
633
+ 777,
634
+ 866
635
+ ],
636
+ "page_idx": 3
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "3The demonstrations alone may not satisfy the closure property in Equation 5. Augmenting the demonstrations with rollouts of the imitation policy improves our approximation of the objective in Equation 14. ",
641
+ "bbox": [
642
+ 173,
643
+ 871,
644
+ 821,
645
+ 897
646
+ ],
647
+ "page_idx": 3
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "4Note that there is a Q network $Q _ { \\theta }$ and a value function $V$ that is defined in terms of $Q _ { \\theta }$ (see Equation 2), rather than a separate Q network and V network. ",
652
+ "bbox": [
653
+ 171,
654
+ 898,
655
+ 823,
656
+ 924
657
+ ],
658
+ "page_idx": 3
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "Algorithm 1 Soft Q Imitation Learning (SQIL, pronounced “skill”) ",
663
+ "text_level": 1,
664
+ "bbox": [
665
+ 173,
666
+ 103,
667
+ 617,
668
+ 118
669
+ ],
670
+ "page_idx": 4
671
+ },
672
+ {
673
+ "type": "table",
674
+ "img_path": "images/8d9fb390b0885e9b5f168bc11b14659e650cdb0f3ea8d67f1c8e29eb85455857.jpg",
675
+ "table_caption": [],
676
+ "table_footnote": [],
677
+ "table_body": "<table><tr><td colspan=\"3\">1:Requirer,入samp ∈R&gt;o,k∈N</td></tr><tr><td>2:InitializeDsamp←@ 3:fori=1,2,.do</td><td></td><td>&gt;See Equation 16</td></tr><tr><td>4: 5:</td><td>θ ←θ-nVe(Be(Ddemo,r)+入sampBe(Dsamp,O)) ifimodk=0then</td><td></td></tr><tr><td>6:</td><td>Sample rollout T =(so,ao,S1,a1,.,sT) with imitation policy πe(at|St)</td><td> See Equation 1</td></tr><tr><td>7:</td><td>Dsamp ←DsampU{𝑇}</td><td></td></tr><tr><td>8: end if</td><td></td><td></td></tr><tr><td>9: end for</td><td></td><td></td></tr></table>",
678
+ "bbox": [
679
+ 178,
680
+ 121,
681
+ 823,
682
+ 237
683
+ ],
684
+ "page_idx": 4
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "Setting $\\gamma \\triangleq 1$ turns the inner sum in the first term into a telescoping sum, yielding ",
689
+ "bbox": [
690
+ 174,
691
+ 261,
692
+ 710,
693
+ 276
694
+ ],
695
+ "page_idx": 4
696
+ },
697
+ {
698
+ "type": "equation",
699
+ "img_path": "images/511460d1a40dd26f709c0267afd2918d50d5ebeb7adb2d94f0aa343023960a8d.jpg",
700
+ "text": "$$\n( 1 7 ) = \\nabla \\left( \\lambda _ { \\mathrm { d e m o } } B _ { \\theta } \\left( \\mathcal { D } _ { \\mathrm { d e m o } } , \\frac { \\alpha } { 2 \\lambda _ { \\mathrm { d e m o } } } \\right) + \\lambda _ { \\mathrm { s a m p } } B _ { \\theta } \\big ( \\mathcal { D } _ { \\mathrm { s a m p } } , 0 \\big ) \\right) .\n$$",
701
+ "text_format": "latex",
702
+ "bbox": [
703
+ 287,
704
+ 280,
705
+ 707,
706
+ 315
707
+ ],
708
+ "page_idx": 4
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Setting $\\lambda _ { \\mathrm { d e m o } } \\triangleq 1$ and $\\alpha \\triangleq 2 \\lambda _ { \\mathrm { d e m o } } r$ yields the gradient of a soft Q-learning algorithm that gives the agent a reward of $r$ for taking the demonstrated action in a demonstrated state, and zero reward otherwise. The agent’s experience replay buffer consists of $\\mathcal { D } _ { \\mathrm { d e m o } } \\cup \\mathcal { D } _ { \\mathrm { s a m p } }$ . We call this algorithm soft $Q$ imitation learning (SQIL, pronounced “skill”). ",
713
+ "bbox": [
714
+ 174,
715
+ 320,
716
+ 825,
717
+ 378
718
+ ],
719
+ "page_idx": 4
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "3.3 SOFT Q IMITATION LEARNING ",
724
+ "text_level": 1,
725
+ "bbox": [
726
+ 176,
727
+ 393,
728
+ 426,
729
+ 409
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "SQIL is summarized in Algorithm 1. It performs soft Q-learning with two important modifications: (1) it initially fills the agent’s experience replay buffer with demonstrations, where the rewards are set to some positive constant (e.g., $r \\triangleq 1$ ), and (2) as the agent interacts with the world and accumulates new experiences, it adds them to the replay buffer, and sets the rewards for these additional experiences to zero. The agent has an incentive to imitate the expert in states that are similar to those encountered in the demonstrations. During training, the agent may encounter out-of-distribution states that are very different from those in the demonstrations. In such states, the agent has an incentive to take actions that lead it back to demonstration states, where rewards are positive. ",
736
+ "bbox": [
737
+ 174,
738
+ 420,
739
+ 825,
740
+ 534
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "Since the number of demonstrations is fixed and the number of additional experiences grows over time, we balance the number of demonstration experiences and additional experiences sampled for each gradient step in line 4 of Algorithm 1. As the imitation policy learns to behave more like the expert, the state-action distributions of $\\mathcal { D } _ { \\mathrm { s a m p } }$ and $\\mathcal { D } _ { \\mathrm { d e m o } }$ grow closer, which causes the reward for taking the expert action in an expert state to decay from $r$ to an expected value of $\\frac { r } { 1 + \\lambda _ { \\mathrm { s a m p } } }$ This reward decay has the effect of making the imitation policy more stochastic over time, and could potentially be countered by decreasing $\\lambda _ { \\mathrm { s a m p } }$ to zero over time, or decreasing the temperature parameter of the stochastic policy, but neither of these fixes were necessary in our experiments. ",
747
+ "bbox": [
748
+ 173,
749
+ 540,
750
+ 825,
751
+ 655
752
+ ],
753
+ "page_idx": 4
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "One potential issue with SQIL is that by setting the reward for taking demonstrated actions in demonstrated states to a positive constant, and implicitly setting rewards at terminal states to zero (see Equation 2), SQIL may encourage the agent to deviate from the expert trajectories in order to avoid terminating the episode, especially in environments with long horizons. This is also an issue with GAIL, and is addressed in Anonymous (2019) by explicitly learning the rewards at absorbing states. One potential way to fix this issue in SQIL is to set the rewards for demonstrated transitions into terminal states to be $\\frac { r } { 1 - \\gamma }$ instead of $r$ . This effectively augments the demonstration data with infinitely many rewarding transitions at absorbing states. This was not necessary in our experiments, since the horizons were relatively short (on the order of 1000 steps). ",
758
+ "bbox": [
759
+ 173,
760
+ 661,
761
+ 825,
762
+ 790
763
+ ],
764
+ "page_idx": 4
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "4 RELATED WORK ",
769
+ "text_level": 1,
770
+ "bbox": [
771
+ 176,
772
+ 808,
773
+ 344,
774
+ 824
775
+ ],
776
+ "page_idx": 4
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "SQIL is inspired by the inverse soft Q-learning (ISQL) algorithm for internal dynamics estimation (Reddy et al., 2018), in that the objective in Equation 15 combines a behavioral cloning loss with soft Bellman error penalty terms, which is similar to the ISQL objective. The details of the two methods and their motivations are, however, completely different. ISQL is an internal dynamics estimation algorithm, while SQIL is meant for imitation learning. ISQL assumes that the demonstrations include observations of the expert’s reward signal, while SQIL does not. ",
781
+ "bbox": [
782
+ 174,
783
+ 839,
784
+ 825,
785
+ 924
786
+ ],
787
+ "page_idx": 4
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "SQIL also resembles the Deep Q-learning from Demonstrations (DQfD) (Hester et al., 2017) and Normalized Actor-Critic (NAC) algorithms (Gao et al., 2018), in that all three algorithms fill the agent’s experience replay buffer with demonstrations and include an imitation loss in the agent’s objective. The key difference between SQIL and these prior methods is that DQfD and NAC are RL algorithms that assume access to a reward signal, while SQIL is an imitation learning algorithm that does not require an extrinsic reward signal from the environment. Instead, SQIL automatically constructs a reward signal from the demonstrations.5 ",
792
+ "bbox": [
793
+ 174,
794
+ 103,
795
+ 825,
796
+ 200
797
+ ],
798
+ "page_idx": 5
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "5 SIMULATION EXPERIMENTS ",
803
+ "text_level": 1,
804
+ "bbox": [
805
+ 176,
806
+ 222,
807
+ 437,
808
+ 237
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "The purpose of our experiments is three-fold. The first objective is to compare SQIL to prior work; in particular, on tasks with high-dimensional image observations, where prior methods are difficult to use. The second objective is to show that SQIL can be successfully deployed in MDPs with continuous action spaces. The third objective is to understand which components of SQIL contribute most to its performance. To accomplish the first objective, we use the image-based Car Racing and Atari Pong games, as well as the low-dimensional Lunar Lander environment from OpenAI Gym (Brockman et al., 2016), to benchmark SQIL against GAIL and behavioral cloning (BC). SQIL consistently outperforms BC, matches GAIL on low-dimensional Lunar Lander, and outperforms GAIL on the image-based Car Racing and Pong tasks. To accomplish the second objective, we use the Humanoid and HalfCheetah continuous control tasks from MuJoCo (Todorov et al., 2012) to show that SQIL performs comparably to GAIL on low-dimensional problems with continuous actions. To accomplish the third objective, we use the Lunar Lander game to conduct an ablation study that tests various hypotheses about which components of SQIL contribute to its performance. ",
815
+ "bbox": [
816
+ 174,
817
+ 253,
818
+ 825,
819
+ 433
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "5.1 COMPARISON TO PRIOR METHODS ON LOW-DIMENSIONAL LUNAR LANDER ",
826
+ "text_level": 1,
827
+ "bbox": [
828
+ 176,
829
+ 450,
830
+ 740,
831
+ 464
832
+ ],
833
+ "page_idx": 5
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "The experiments in this section use the low-dimensional Lunar Lander game to verify that SQIL performs well on a relatively easy task. To emphasize the gap between imitation methods that take into account the consequences of actions, like SQIL and GAIL, and methods that do not, like BC, we exacerbate the state distribution shift that usually occurs due to compounding errors, by training the imitation agents in an environment with a different initial state distribution $S _ { 0 } ^ { \\mathrm { t r a i n } }$ than that of the expert demonstrations $S _ { 0 } ^ { \\mathrm { d e m o } }$ . This intervention explicitly tests the generalization capabilities of imitation learning, by placing the agent in start states $\\bar { S } _ { 0 } ^ { \\mathrm { t r a i n } }$ that are very different from those seen in the demonstrations. ",
838
+ "bbox": [
839
+ 174,
840
+ 477,
841
+ 825,
842
+ 588
843
+ ],
844
+ "page_idx": 5
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "Experimental setup. The Lunar Lander game is a navigation task with deterministic dynamics in which the objective is to land on the ground, without crashing or flying out of bounds, using two lateral thrusters and a main engine. The action space consists of six discrete actions for steering and firing the main engine. Low-dimensional state observations $s \\in \\mathbb { R } ^ { 9 }$ encode position, velocity, orientation, and the location of the landing site. Demonstrations are collected from an expert trained using deep Q-learning (Mnih et al., 2015). The goal of this experiment is to study not only how well each method can mimic the expert demonstrations, but also how well they can acquire policies that generalize effectively to new states. After all, the main benefit of actually learning a policy, as opposed to simply playing back the expert’s actions, is to acquire a strategy that generalizes to new situations. Therefore, we manipulate the initial state distribution of the environment in which the imitation agents are trained and evaluated. The expert demonstrations are collected starting from the initial state distribution starting from a differen $S _ { 0 } ^ { \\mathrm { d e m o } }$ . The imitation agl state distribution re then trai. To create the same environment, butin the Lunar Lander game, $S _ { 0 } ^ { \\mathrm { t r a i n } }$ $S _ { 0 } ^ { \\mathrm { t r a i n } }$ \nthe agent is placed in a starting position that is rarely visited in the demonstrations. The agents are evaluated by training and testing with $S _ { 0 } ^ { \\mathrm { d e m o } }$ , as well as training and testing with $S _ { 0 } ^ { \\mathrm { t r a i n } }$ – both results are reported in Table 1 and Figure 1. We measure the agents’ success rate in landing at the target without crashing, flying out of bounds, or running out of time. ",
849
+ "bbox": [
850
+ 174,
851
+ 594,
852
+ 825,
853
+ 830
854
+ ],
855
+ "page_idx": 5
856
+ },
857
+ {
858
+ "type": "image",
859
+ "img_path": "images/6e039e2f9d4847a0bb5e8475f6b5b637724c54840af50bfb2cd53fa3e47a5a11.jpg",
860
+ "image_caption": [
861
+ "Figure 1: Error regions show standard error across five random seeds. BC performance after training. $\\mathrm { X }$ -axis represents amount of interaction with the environment (not expert demonstrations). "
862
+ ],
863
+ "image_footnote": [],
864
+ "bbox": [
865
+ 186,
866
+ 101,
867
+ 488,
868
+ 231
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "table",
874
+ "img_path": "images/d66fa62df7d58d09dad6da6625a95a909d9444dddd259a2bd6c8aedf9ce4b17c.jpg",
875
+ "table_caption": [],
876
+ "table_footnote": [
877
+ "Table 1: Lunar Lander. Best performance on 100 consecutive episodes during training. Standard errors shown for five random seeds. "
878
+ ],
879
+ "table_body": "<table><tr><td></td><td>Strain</td><td>Sdemo</td></tr><tr><td>Random</td><td>0.10 ± 0.30</td><td>0.04± 0.02</td></tr><tr><td>BC</td><td>0.07 ±0.03</td><td>0.93 ± 0.03</td></tr><tr><td>GAIL</td><td>0.98 ± 0.01</td><td>0.95 ± 0.02</td></tr><tr><td>SQIL-T</td><td>0.66 ± 0.02</td><td>0.89 ± 0.01</td></tr><tr><td>SQIL</td><td>0.89 ±0.02</td><td>0.88 ± 0.03</td></tr><tr><td>Expert</td><td>0.93 ±0.03</td><td>0.89± 0.31</td></tr></table>",
880
+ "bbox": [
881
+ 513,
882
+ 118,
883
+ 808,
884
+ 233
885
+ ],
886
+ "page_idx": 6
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Analysis. The results show that when there is no variation in the initial state, all methods perform equally well (see the $S _ { 0 } ^ { \\mathrm { d e m o } }$ column in Table 1). The task is easy enough that even behavioral cloning achieves a high success rate. When the initial state is changed for the purpose of testing generalization, SQIL and GAIL both perform much better than BC (see Figure 1 and the $S _ { 0 } ^ { \\mathrm { t r a i n } }$ column in Table 1). This is unsurprising, since BC suffers from state distribution shift, and GAIL tends to perform well on tasks with low-dimensional observations. ",
891
+ "bbox": [
892
+ 174,
893
+ 327,
894
+ 825,
895
+ 410
896
+ ],
897
+ "page_idx": 6
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "GAIL achieves a higher success rate than SQIL, but requires many more interactions with the environment. This can most likely be attributed to the fact that GAIL uses TRPO (Schulman et al., 2015) for policy optimization, while SQIL uses Q-learning. Since this difference in the underlying RL algorithm makes it difficult to fairly compare SQIL to GAIL, the results are merely intended to illustrate that both SQIL and GAIL can outperform BC and perform on par with the expert. In the following two sections, we show that SQIL significantly outperforms GAIL on high-dimensional, image-based tasks. ",
902
+ "bbox": [
903
+ 174,
904
+ 417,
905
+ 825,
906
+ 515
907
+ ],
908
+ "page_idx": 6
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "SQIL, which optimizes the bound in Equation 13, performs better than its cousin, SQIL-T, which optimizes the tighter bound in Equation 11. This is a somewhat surprising result, since optimizing a tighter bound on the log-posterior should lead to better performance. One possible explanation for this not being the case is that in practice, optimizing Equation 11 via gradient descent is harder than optimizing Equation 13. ",
913
+ "bbox": [
914
+ 174,
915
+ 522,
916
+ 825,
917
+ 592
918
+ ],
919
+ "page_idx": 6
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "5.2 COMPARISON TO PRIOR METHODS ON IMAGE-BASED CAR RACING ",
924
+ "text_level": 1,
925
+ "bbox": [
926
+ 176,
927
+ 608,
928
+ 681,
929
+ 623
930
+ ],
931
+ "page_idx": 6
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "Section 5.1 showed that SQIL performs on par with GAIL and better than BC in environments with low-dimensional observations. This section shows that SQIL can significantly outperform GAIL and BC in environments with high-dimensional image observations. With images, the policy learning problem becomes substantially harder: now, the policy must learn to interpret raw image observations and determine the best course of action. This is notoriously difficult for methods based on adversarial learning, such as GAIL. ",
936
+ "bbox": [
937
+ 174,
938
+ 635,
939
+ 825,
940
+ 718
941
+ ],
942
+ "page_idx": 6
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "Experimental setup. The Car Racing game is a navigation task with deterministic dynamics in which the objective is to visit as many road markers as possible, while avoiding the grass. The agent receives $6 4 \\mathrm { x } 6 4 ~ \\mathrm { R G B }$ images as observations, and outputs a discrete steering command (left, right, or straight). An episode lasts at most 1000 steps, and terminates early if the car deviates too far from the road. Demonstrations are collected from an expert trained using model-based RL (Ha & Schmidhuber, 2018). The initial state distribution is manipulated as in Section 5.1. To create $S _ { 0 } ^ { \\mathrm { t r a i n } }$ in the Car Racing game, the car is rotated 90 degrees so that it begins perpendicular to the track, instead of parallel to the track as in $S _ { 0 } ^ { \\mathrm { d e m o } }$ . This simple intervention presents a significant generalization challenge to the imitation learner, since the expert demonstrations do not contain any examples of states where the car is perpendicular to the road, or even significantly off the road axis. The agent must learn to make a tight turn to get back on the road, then stabilize its orientation so that it is parallel to the road, and only then proceed forward to mimic the expert demonstrations. We measure the reward collected by the agent, which counts the number of road markers it visits, and includes a -100 penalty for deviating too far from the road and causing the episode to terminate early. ",
947
+ "bbox": [
948
+ 174,
949
+ 726,
950
+ 825,
951
+ 905
952
+ ],
953
+ "page_idx": 6
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "",
958
+ "bbox": [
959
+ 171,
960
+ 103,
961
+ 823,
962
+ 132
963
+ ],
964
+ "page_idx": 7
965
+ },
966
+ {
967
+ "type": "image",
968
+ "img_path": "images/5ccda721a068728935469264a88f52cfb04b41153d1c4392255ca63c7b0bb91b.jpg",
969
+ "image_caption": [
970
+ "Figure 2: Error regions show standard error across five random seeds. GAIL and BC performance after training. "
971
+ ],
972
+ "image_footnote": [],
973
+ "bbox": [
974
+ 186,
975
+ 138,
976
+ 486,
977
+ 267
978
+ ],
979
+ "page_idx": 7
980
+ },
981
+ {
982
+ "type": "table",
983
+ "img_path": "images/d67ecb8f76196ae7184014819408bd6014deb864f70adda31ea9f4cee11d7f04.jpg",
984
+ "table_caption": [
985
+ "Table 2: Car Racing. Final performance on 20 episodes after training. Standard errors shown for five random seeds. "
986
+ ],
987
+ "table_footnote": [],
988
+ "table_body": "<table><tr><td></td><td>Strain</td><td>Sdemo</td></tr><tr><td>Random</td><td>-21± 56</td><td>-68±4</td></tr><tr><td>BC</td><td>-45±18</td><td>698 ±10</td></tr><tr><td>GAIL</td><td>17±0</td><td>7±1</td></tr><tr><td>SQIL-T</td><td>311 ± 10</td><td>693±7</td></tr><tr><td>SQIL</td><td>375 ±19</td><td>704±6</td></tr><tr><td>Expert</td><td>480 ± 11</td><td>704±79</td></tr></table>",
989
+ "bbox": [
990
+ 531,
991
+ 155,
992
+ 789,
993
+ 270
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Analysis. Table 2 and Figure 2 show that SQIL performs much better than both BC and GAIL, when starting from $S _ { 0 } ^ { \\mathrm { t r a i n } }$ . SQIL learns to make a tight turn that takes the car through the grass and back onto the road, then stabilizes the car’s orientation so that it is parallel to the track, and then proceeds forward like the expert does in the demonstrations. GAIL does not improve upon its initialized policy, which keeps turning in a loop, and does not move forward once the agent is parallel to the road. BC tends to drive straight ahead into the grass instead of turning back onto the road. One explanation of these results is that GAIL uses TRPO (Schulman et al., 2015) to fit the imitation policy, which inherits the challenges of RL with image observations. SQIL, on the other hand, inherits the ease of fitting an image-based policy from behavioral cloning via the analysis in Section 3, and only relies on soft Bellman backups for regularization and fine-tuning (vs. RL from scratch). SQIL outperforms SQIL-T, as in Section 5.1, though the performance gap is smaller here than in Section 5.1. ",
1000
+ "bbox": [
1001
+ 174,
1002
+ 337,
1003
+ 825,
1004
+ 502
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "5.3 COMPARISON TO PRIOR METHODS ON IMAGE-BASED ATARI PONG ",
1011
+ "text_level": 1,
1012
+ "bbox": [
1013
+ 176,
1014
+ 520,
1015
+ 678,
1016
+ 534
1017
+ ],
1018
+ "page_idx": 7
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "The experiments in the previous sections compare SQIL, which uses Q-learning, to GAIL, which uses TRPO. This can make it difficult to compare the performance and sample efficiency of SQIL and GAIL. The experiment in this section compares SQIL to a version of GAIL that uses Q-learning instead of TRPO, on the Pong Atari game with raw image observations. This allows for a head-to-head comparison of SQIL and GAIL: both algorithms use the same underlying RL algorithm (Q-learning) but provide the agent with different rewards – SQIL provides constant rewards, while GAIL provides learned rewards. The results in the figure to the right show that SQIL outperforms GAIL on this challenging image-based task. ",
1023
+ "bbox": [
1024
+ 176,
1025
+ 546,
1026
+ 581,
1027
+ 712
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "image",
1033
+ "img_path": "images/402459cacca9774bd62fc2c18999caeb251e9ad7805566fe7c0e3b5afce5fafc.jpg",
1034
+ "image_caption": [],
1035
+ "image_footnote": [],
1036
+ "bbox": [
1037
+ 596,
1038
+ 546,
1039
+ 818,
1040
+ 665
1041
+ ],
1042
+ "page_idx": 7
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Smoothed with a rolling window of 100 episodes. Standard error on three random seeds. ",
1047
+ "bbox": [
1048
+ 594,
1049
+ 667,
1050
+ 825,
1051
+ 705
1052
+ ],
1053
+ "page_idx": 7
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "The experiments in the previous sections evaluate SQIL in environments with discrete action spaces. The experiments in this section illustrate how SQIL can be adapted to continuous action spaces. We instantiate SQIL using soft actor-critic (SAC) – an offpolicy RL algorithm that can solve continuous con",
1058
+ "bbox": [
1059
+ 173,
1060
+ 756,
1061
+ 354,
1062
+ 921
1063
+ ],
1064
+ "page_idx": 7
1065
+ },
1066
+ {
1067
+ "type": "image",
1068
+ "img_path": "images/c5aaaee80e51069341b603bc966bd842d7177a233701c8bb328f3f791417af11.jpg",
1069
+ "image_caption": [
1070
+ "5.4 COMPARISON TO PRIOR METHODS ON CONTINUOUS CONTROL TASKS "
1071
+ ],
1072
+ "image_footnote": [],
1073
+ "bbox": [
1074
+ 372,
1075
+ 756,
1076
+ 816,
1077
+ 880
1078
+ ],
1079
+ "page_idx": 7
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "SQIL: best performance on 10 consecutive training episodes. GAIL: results from Dhariwal et al. (2017). ",
1084
+ "bbox": [
1085
+ 367,
1086
+ 887,
1087
+ 823,
1088
+ 912
1089
+ ],
1090
+ "page_idx": 7
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "trol tasks (Haarnoja et al., 2018). In particular, SAC is modified in the following ways: (1) the agent’s experience replay buffer is initially filled with expert demonstrations, where rewards are set to a positive constant, (2) when taking gradient steps to fit the agent’s soft Q function, we sample a balanced number of demonstration experiences and new experiences from the replay buffer, and (3) the agent observes rewards of zero during their interactions with the environment, instead of an extrinsic reward signal that specifies the desired task. This instantiation of SQIL is compared to GAIL on the Humanoid (17 DoF) and HalfCheetah (6 DoF) tasks from MuJoCo (Todorov et al., 2012). The results in the figure to the right show that SQIL and GAIL perform comparably to each other on both Humanoid and HalfCheetah, demonstrating that SQIL can be successfully deployed on problems with continuous action spaces. ",
1095
+ "bbox": [
1096
+ 173,
1097
+ 103,
1098
+ 825,
1099
+ 242
1100
+ ],
1101
+ "page_idx": 8
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "5.5 ABLATION STUDY ",
1106
+ "text_level": 1,
1107
+ "bbox": [
1108
+ 176,
1109
+ 260,
1110
+ 341,
1111
+ 273
1112
+ ],
1113
+ "page_idx": 8
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "The experiments in Sections 5.1 and 5.2 show that SQIL can outperform prior methods, but they do not illuminate how the various terms in the SQIL gradient in line 4 of Algorithm 1 interact to yield these results. The experiments in this section use the Lunar Lander environment to conduct an ablation study to better understand the importance of each component of SQIL. We hypothesize that incorporating the right information about state transitions into the agent’s experience replay buffer is essential: the replay buffer needs to contain more than just the demonstrations, and these additional experiences need to be sampled on-policy (see line 6 of Algorithm 1). ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 286,
1121
+ 825,
1122
+ 383
1123
+ ],
1124
+ "page_idx": 8
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Experimental setup. We manipulate the parameters of SQIL to hobble it in various ways that test our hypotheses. In the first condition, $\\lambda _ { \\mathrm { s a m p } }$ is set to zero, to prevent SQIL from using additional samples drawn from the training environment. In the second condition, $\\gamma$ is set to zero to prevent SQIL from accessing information about state transitions. In the third condition, a uniform random policy is used to sample additional rollouts instead of the imitation policy $\\pi _ { \\pmb { \\theta } }$ in line 6 of Algorithm 1. We measure the agents’ success rate, as in Section 5.1. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 390,
1132
+ 825,
1133
+ 473
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "table",
1139
+ "img_path": "images/1f8ad29ae5dcb0cf47ea3dd79a5adad7ed064560785a80201f9fef5e07695f94.jpg",
1140
+ "table_caption": [],
1141
+ "table_footnote": [],
1142
+ "table_body": "<table><tr><td>Strain</td><td>Sdemo</td></tr><tr><td>Random 0.10± 0.30</td><td>0.04±0.02</td></tr><tr><td>Xsamp = 0 0.12 ± 0.02</td><td>0.87 ± 0.02</td></tr><tr><td>γ=0 0.41 ± 0.02</td><td>0.84± 0.02</td></tr><tr><td>π=Unif 0.47 ±0.02</td><td>0.82 ± 0.02</td></tr><tr><td>SQIL-T</td><td>0.66 ±0.02 0.89 ± 0.01</td></tr><tr><td>SQIL 0.89 ± 0.02</td><td>0.88 ± 0.03</td></tr><tr><td>Expert</td><td>0.93± 0.03 0.89± 0.31</td></tr></table>",
1143
+ "bbox": [
1144
+ 506,
1145
+ 481,
1146
+ 816,
1147
+ 609
1148
+ ],
1149
+ "page_idx": 8
1150
+ },
1151
+ {
1152
+ "type": "image",
1153
+ "img_path": "images/fb48069d37826b185ea44410b0bd67b43fa4517950bb9d10e8f348fb3a966c77.jpg",
1154
+ "image_caption": [
1155
+ "Figure 3: Error regions show standard error across five random seeds. "
1156
+ ],
1157
+ "image_footnote": [],
1158
+ "bbox": [
1159
+ 186,
1160
+ 481,
1161
+ 488,
1162
+ 608
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Table 3: Lunar Lander. Best performance on 100 consecutive episodes during training. Standard errors shown for five random seeds. ",
1169
+ "bbox": [
1170
+ 506,
1171
+ 621,
1172
+ 813,
1173
+ 662
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Analysis. The results in Figure 3 and Table 3 show that the original method performs significantly better than its hobbled counterparts when starting from $S _ { 0 } ^ { \\mathrm { t r a i n } }$ , suggesting that SQIL relies on information about the environment dynamics encoded in state transitions (SQIL vs. $\\gamma = 0$ ), and that SQIL requires on-policy sampling (SQIL vs. $\\pi = \\mathrm { U n i f }$ and $\\lambda _ { \\mathrm { s a m p } } = 0 \\mathrm { , }$ ). ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 676,
1183
+ 825,
1184
+ 733
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "6 DISCUSSION ",
1191
+ "text_level": 1,
1192
+ "bbox": [
1193
+ 174,
1194
+ 752,
1195
+ 310,
1196
+ 768
1197
+ ],
1198
+ "page_idx": 8
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Summary. We contribute a practical and general algorithm for learning to imitate an expert given action demonstrations and access to the environment. Simulation experiments demonstrate the effectiveness of our method at recovering an imitation policy that performs well in comparison to GAIL and behavioral cloning on tasks with high-dimensional, continuous observations as well as continuous actions. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 784,
1206
+ 823,
1207
+ 853
1208
+ ],
1209
+ "page_idx": 8
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Limitations. The analysis in Section 3, which proves that SQIL is equivalent to approximate inference of the expert policy under the MaxCausalEnt model of expert behavior, is limited in that does not show that SQIL exactly recovers the expert policy in the limit of having infinite demonstrations, or that the optimal imitation policy’s state-action occupancy measure converges to the expert’s. These are desirable properties for an imitation learning algorithm, and it is unclear if SQIL possesses them. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 859,
1217
+ 823,
1218
+ 916
1219
+ ],
1220
+ "page_idx": 8
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "",
1225
+ "bbox": [
1226
+ 173,
1227
+ 103,
1228
+ 823,
1229
+ 132
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Future work. The ability to robustly recover an imitation policy from image observations, even when the initial state distribution differs between demonstration time and training time, enables open-world robotics experiments in which using sensors other than a camera would be expensive, and consistently resetting the environment to the same set of start states is difficult. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 138,
1239
+ 825,
1240
+ 195
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "REFERENCES ",
1247
+ "text_level": 1,
1248
+ "bbox": [
1249
+ 174,
1250
+ 215,
1251
+ 285,
1252
+ 229
1253
+ ],
1254
+ "page_idx": 9
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Anonymous. Discriminator-actor-critic: Addressing sample inefficiency and reward bias in adversarial imitation learning. In Submitted to International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $=$ Hk4fpoA5Km. under review. \nBrenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009. \nMariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. \nGreg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016. \nPrafulla 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. \nChelsea Finn, Sergey Levine, and Pieter Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. In International Conference on Machine Learning, pp. 49–58, 2016. \nJustin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017. \nYang Gao, Ji Lin, Fisher Yu, Sergey Levine, Trevor Darrell, et al. Reinforcement learning from imperfect demonstrations. arXiv preprint arXiv:1802.05313, 2018. \nAlessandro Giusti, Jer´ ome Guzzi, Dan C Ciresan, Fang-Lin He, Juan P Rodr ˆ ´ıguez, Flavio Fontana, Matthias Faessler, Christian Forster, Jurgen Schmidhuber, Gianni Di Caro, et al. A machine learning approach to ¨ visual perception of forest trails for mobile robots. IEEE Robotics and Automation Letters, 1(2):661–667, 2016. \nIan 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. \nDavid Ha and Jurgen Schmidhuber. Recurrent world models facilitate policy evolution. ¨ arXiv preprint arXiv:1809.01999, 2018. \nTuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energybased policies. arXiv preprint arXiv:1702.08165, 2017. \nTuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. arXiv preprint arXiv:1801.01290, 2018. \nTodd Hester, Matej Vecerik, Olivier Pietquin, Marc Lanctot, Tom Schaul, Bilal Piot, Dan Horgan, John Quan, Andrew Sendonaris, Gabriel Dulac-Arnold, et al. Deep q-learning from demonstrations. arXiv preprint arXiv:1704.03732, 2017. \nJonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems, pp. 4565–4573, 2016. \nDiederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \nKarol Kurach, Mario Lucic, Xiaohua Zhai, Marcin Michalski, and Sylvain Gelly. The gan landscape: Losses, architectures, regularization, and normalization. arXiv preprint arXiv:1807.04720, 2018. ",
1259
+ "bbox": [
1260
+ 171,
1261
+ 228,
1262
+ 826,
1263
+ 917
1264
+ ],
1265
+ "page_idx": 9
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Michael Laskey, Sam Staszak, Wesley Yu-Shu Hsieh, Jeffrey Mahler, Florian T Pokorny, Anca D Dragan, and Ken Goldberg. Shiv: Reducing supervisor burden in dagger using support vectors for efficient learning from demonstrations in high dimensional state spaces. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pp. 462–469. IEEE, 2016. ",
1270
+ "bbox": [
1271
+ 174,
1272
+ 104,
1273
+ 826,
1274
+ 156
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Sergey Levine. Reinforcement learning and control as probabilistic inference: Tutorial and review. arXiv preprint arXiv:1805.00909, 2018. ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 165,
1284
+ 823,
1285
+ 191
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In Advances in Neural Information Processing Systems, pp. 3812–3822, 2017. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 199,
1295
+ 820,
1296
+ 227
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "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. ",
1303
+ "bbox": [
1304
+ 174,
1305
+ 234,
1306
+ 823,
1307
+ 273
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. In Icml, pp. 663–670, 2000. ",
1314
+ "bbox": [
1315
+ 171,
1316
+ 282,
1317
+ 823,
1318
+ 309
1319
+ ],
1320
+ "page_idx": 10
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Dean A Pomerleau. Efficient training of artificial neural networks for autonomous navigation. Neural Computation, 3(1):88–97, 1991. ",
1325
+ "bbox": [
1326
+ 176,
1327
+ 318,
1328
+ 821,
1329
+ 344
1330
+ ],
1331
+ "page_idx": 10
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Rouhollah Rahmatizadeh, Pooya Abolghasemi, Aman Behal, and Ladislau Bol¨ oni. Learning real manipulation ¨ tasks from virtual demonstrations using lstm. arXiv preprint, 2016. ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 353,
1339
+ 823,
1340
+ 381
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Rouhollah Rahmatizadeh, Pooya Abolghasemi, Ladislau Bol¨ oni, and Sergey Levine. Vision-based multi- ¨ task manipulation for inexpensive robots using end-to-end learning from demonstration. arXiv preprint arXiv:1707.02920, 2017. ",
1347
+ "bbox": [
1348
+ 174,
1349
+ 388,
1350
+ 823,
1351
+ 428
1352
+ ],
1353
+ "page_idx": 10
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Siddharth Reddy, Anca D Dragan, and Sergey Levine. Where do you think you’re going?: Inferring beliefs about dynamics from behavior. arXiv preprint arXiv:1805.08010, 2018. ",
1358
+ "bbox": [
1359
+ 173,
1360
+ 436,
1361
+ 820,
1362
+ 463
1363
+ ],
1364
+ "page_idx": 10
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Stephane Ross and Drew Bagnell. Efficient reductions for imitation learning. In ´ Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 661–668, 2010. ",
1369
+ "bbox": [
1370
+ 173,
1371
+ 472,
1372
+ 821,
1373
+ 498
1374
+ ],
1375
+ "page_idx": 10
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and structured pre-´ diction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011. ",
1380
+ "bbox": [
1381
+ 176,
1382
+ 507,
1383
+ 820,
1384
+ 546
1385
+ ],
1386
+ "page_idx": 10
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Jurgen Schmidhuber. Deep learning in neural networks: An overview. ¨ Neural networks, 61:85–117, 2015. ",
1391
+ "bbox": [
1392
+ 171,
1393
+ 554,
1394
+ 802,
1395
+ 569
1396
+ ],
1397
+ "page_idx": 10
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International Conference on Machine Learning, pp. 1889–1897, 2015. ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 577,
1405
+ 820,
1406
+ 604
1407
+ ],
1408
+ "page_idx": 10
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In Intelligent Robots and Systems (IROS), 2012 IEEE/RSJ International Conference on, pp. 5026–5033. IEEE, 2012. ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 612,
1416
+ 821,
1417
+ 651
1418
+ ],
1419
+ "page_idx": 10
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Markus Wulfmeier, Peter Ondruska, and Ingmar Posner. Maximum entropy deep inverse reinforcement learning. arXiv preprint arXiv:1507.04888, 2015. ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 660,
1427
+ 820,
1428
+ 686
1429
+ ],
1430
+ "page_idx": 10
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Tianhao Zhang, Zoe McCarthy, Owen Jow, Dennis Lee, Ken Goldberg, and Pieter Abbeel. Deep imitation learning for complex manipulation tasks from virtual reality teleoperation. arXiv preprint arXiv:1710.04615, 2017. ",
1435
+ "bbox": [
1436
+ 173,
1437
+ 695,
1438
+ 823,
1439
+ 734
1440
+ ],
1441
+ "page_idx": 10
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, volume 8, pp. 1433–1438. Chicago, IL, USA, 2008. ",
1446
+ "bbox": [
1447
+ 169,
1448
+ 743,
1449
+ 823,
1450
+ 770
1451
+ ],
1452
+ "page_idx": 10
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Brian D Ziebart, J Andrew Bagnell, and Anind K Dey. Modeling interaction via the principle of maximum causal entropy. In Proceedings of the 27th International Conference on International Conference on Machine Learning, pp. 1255–1262. Omnipress, 2010. ",
1457
+ "bbox": [
1458
+ 176,
1459
+ 779,
1460
+ 823,
1461
+ 818
1462
+ ],
1463
+ "page_idx": 10
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "A APPENDIX ",
1468
+ "text_level": 1,
1469
+ "bbox": [
1470
+ 176,
1471
+ 102,
1472
+ 299,
1473
+ 118
1474
+ ],
1475
+ "page_idx": 11
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "A.1 SQIL-T ",
1480
+ "bbox": [
1481
+ 174,
1482
+ 132,
1483
+ 276,
1484
+ 148
1485
+ ],
1486
+ "page_idx": 11
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "SQIL-T uses Adam (Kingma & Ba, 2014) to minimize the loss function, ",
1491
+ "bbox": [
1492
+ 173,
1493
+ 159,
1494
+ 648,
1495
+ 174
1496
+ ],
1497
+ "page_idx": 11
1498
+ },
1499
+ {
1500
+ "type": "equation",
1501
+ "img_path": "images/9962f6059d82f206b3ffb4833d6cf71638163f42fd17f05c450306928a35e72c.jpg",
1502
+ "text": "$$\n\\ell _ { \\mathrm { S O I L - T } } ( \\theta ) \\triangleq \\alpha \\sum _ { \\tau \\in \\mathcal { D } _ { \\mathrm { d e m } } } \\sum _ { t = 0 } ^ { T - 1 } - ( Q _ { \\theta } ( s _ { t } , a _ { t } ) - V _ { \\theta } ( s _ { t } ) ) + \\lambda _ { \\mathrm { d e m o } } B _ { \\theta } ( \\mathcal { D } _ { \\mathrm { d e m o } } , 0 ) + \\lambda _ { \\mathrm { s a m p } } B _ { \\theta } ( \\mathcal { D } _ { \\mathrm { s a m p } } , 0 ) ,\n$$",
1503
+ "text_format": "latex",
1504
+ "bbox": [
1505
+ 183,
1506
+ 180,
1507
+ 810,
1508
+ 226
1509
+ ],
1510
+ "page_idx": 11
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "which is identical to the SQIL loss in Equation 15, except that the $V _ { \\pmb { \\theta } } ( s _ { 0 } )$ terms are not present in Equation 19. ",
1515
+ "bbox": [
1516
+ 176,
1517
+ 247,
1518
+ 825,
1519
+ 276
1520
+ ],
1521
+ "page_idx": 11
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "A.2 IMPLEMENTATION DETAILS ",
1526
+ "text_level": 1,
1527
+ "bbox": [
1528
+ 176,
1529
+ 291,
1530
+ 411,
1531
+ 308
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Code and data for the experiments in Section 5 are publicly available.6 ",
1538
+ "bbox": [
1539
+ 174,
1540
+ 318,
1541
+ 635,
1542
+ 333
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "To ensure fair comparisons, the same network architectures were used to evaluate SQIL, GAIL, and BC. For Lunar Lander, we used a network architecture with two fully-connected layers containing 128 hidden units each to represent the Q network in SQIL, the policy and discriminator networks in GAIL, and the policy network in BC. For Car Racing, we used four convolutional layers (following Ha & Schmidhuber (2018)) and two fully-connected layers containing 256 hidden units each. For Humanoid and HalfCheetah, we used two fully-connected layers containing 256 hidden units each. For Pong, we used the convolutional neural network described in Mnih et al. (2015) to represent the Q network in SQIL, as well as the Q network and discriminator network in GAIL. ",
1549
+ "bbox": [
1550
+ 173,
1551
+ 339,
1552
+ 825,
1553
+ 452
1554
+ ],
1555
+ "page_idx": 11
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "To ensure fair comparisons, the same demonstration data was used to train SQIL, GAIL, and BC. For Lunar Lander, we collected 100 demonstration rollouts. For Car Racing, we collected 20 demonstration rollouts. For Pong, we collected 50 demonstration rollouts. Expert demonstrations were generated from scratch for Lunar Lander using DQN (Mnih et al., 2015), and collected from opensource pre-trained policies for Car Racing (Ha & Schmidhuber, 2018) as well as Humanoid and HalfCheetah (Dhariwal et al., 2017). The Humanoid demonstrations were generated by a stochastic expert policy, while the HalfCheetah demonstrations were generated by a deterministic expert policy; both experts were trained using TRPO.7 We used two open-source implementations of GAIL: Fu et al. (2017) for Lunar Lander and Car Racing, and Dhariwal et al. (2017) for MuJoCo. We adapted the OpenAI Baselines implementation of GAIL to use Q-learning for Pong. Expert demonstrations were generated from scratch for Pong using DQN. ",
1560
+ "bbox": [
1561
+ 174,
1562
+ 458,
1563
+ 825,
1564
+ 611
1565
+ ],
1566
+ "page_idx": 11
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "For Lunar Lander, we set $r = 1$ , $k = 2 0 0$ , and $\\lambda _ { \\mathrm { s a m p } } = 1 0 ^ { - 6 }$ . For Car Racing, we set $r = 1$ , $k = 5 0$ , and $\\lambda _ { \\mathrm { s a m p } } = 0 . 0 1$ . For Humanoid, we set $r = 5$ and $\\lambda _ { \\mathrm { s a m p } } = 1$ . For HalfCheetah, we set $r = 1 0$ and $\\lambda _ { \\operatorname* { s a m p } } = \\mathrm { \\hat { 1 } }$ . For Pong, we set $r = 1 0 0$ , $k = 1$ , and $\\lambda _ { \\operatorname* { s a m p } } \\doteq 1$ . ",
1571
+ "bbox": [
1572
+ 174,
1573
+ 617,
1574
+ 825,
1575
+ 661
1576
+ ],
1577
+ "page_idx": 11
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "SQIL was not pre-trained in any of the experiments. GAIL was pre-trained using behavioral cloning for HalfCheetah, but was not pre-trained in any other experiments. ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 667,
1585
+ 823,
1586
+ 695
1587
+ ],
1588
+ "page_idx": 11
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "In standard implementations of Q-learning and SAC, the agent’s experience replay buffer typically has a fixed size, and once the buffer is full, old experiences are deleted to make room for new experiences. In SQIL, we never delete demonstration experiences from the replay buffer, but otherwise follow the standard implementation. ",
1593
+ "bbox": [
1594
+ 174,
1595
+ 702,
1596
+ 825,
1597
+ 758
1598
+ ],
1599
+ "page_idx": 11
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "We use Adam (Kingma & Ba, 2014) to take the gradient step in line 4 of Algorithm 1. ",
1604
+ "bbox": [
1605
+ 174,
1606
+ 765,
1607
+ 736,
1608
+ 780
1609
+ ],
1610
+ "page_idx": 11
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "The GAIL performance metrics in Section 5.4 are taken from Dhariwal et al. (2017).8 ",
1615
+ "bbox": [
1616
+ 174,
1617
+ 786,
1618
+ 733,
1619
+ 801
1620
+ ],
1621
+ "page_idx": 11
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "The GAIL and SQIL policies in Section 5.4 are set to be deterministic during the evaluation rollouts used to measure performance. ",
1626
+ "bbox": [
1627
+ 174,
1628
+ 808,
1629
+ 823,
1630
+ 835
1631
+ ],
1632
+ "page_idx": 11
1633
+ },
1634
+ {
1635
+ "type": "image",
1636
+ "img_path": "images/d483066567d61ea3c53e78fcb064cb3a42fcadeacee800aa714121661be45cd4.jpg",
1637
+ "image_caption": [
1638
+ "Figure 4: Standard error shown for five random seeds on the first $2 0 0 \\mathrm { k }$ steps. No smoothing across training steps. The first four random seeds are from the experiment in Section 5.4, which only train for $2 0 0 \\mathrm { k }$ steps. To measure the effect of training on more episodes, we ran another experiment with a fifth random seed and trained for $5 0 0 \\mathrm { k }$ steps. Training for a much larger number of steps does not lead to significant deterioration in performance. "
1639
+ ],
1640
+ "image_footnote": [],
1641
+ "bbox": [
1642
+ 339,
1643
+ 103,
1644
+ 655,
1645
+ 279
1646
+ ],
1647
+ "page_idx": 12
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "A.3 RELATED WORK ",
1652
+ "text_level": 1,
1653
+ "bbox": [
1654
+ 176,
1655
+ 390,
1656
+ 333,
1657
+ 405
1658
+ ],
1659
+ "page_idx": 12
1660
+ },
1661
+ {
1662
+ "type": "text",
1663
+ "text": "Various approaches have been developed to address state distribution shift in behavioral cloning, without relying on IRL. Hand-engineering a domain-specific loss function and carefully designing the demonstration collection process have enabled researchers to train effective imitation policies for self-driving cars (Bojarski et al., 2016), autonomous drones (Giusti et al., 2016), and robotic manipulators (Zhang et al., 2017; Rahmatizadeh et al., 2017; 2016). DAgger-based methods query the expert for on-policy action labels (Ross et al., 2011; Laskey et al., 2016). These approaches either require domain knowledge or the ability to query the expert, while SQIL requires neither. ",
1664
+ "bbox": [
1665
+ 174,
1666
+ 416,
1667
+ 825,
1668
+ 515
1669
+ ],
1670
+ "page_idx": 12
1671
+ }
1672
+ ]
parse/train/B1excoAqKQ/B1excoAqKQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1excoAqKQ/B1excoAqKQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJDH5M-AW/BJDH5M-AW.md ADDED
@@ -0,0 +1,514 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SYNTHESIZING ROBUST ADVERSARIAL EXAMPLES
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Neural network-based classifiers parallel or exceed human-level accuracy on many common tasks and are used in practical systems. Yet, neural networks are susceptible to adversarial examples, carefully perturbed inputs that cause networks to misbehave in arbitrarily chosen ways. When generated with standard methods, these examples do not consistently fool a classifier in the physical world due to a combination of viewpoint shifts, camera noise, and other natural transformations. Adversarial examples generated using standard techniques require complete control over direct input to the classifier, which is impossible in many real-world systems.
8
+
9
+ We introduce the first method for constructing real-world 3D objects that consistently fool a neural network across a wide distribution of angles and viewpoints. We present a general-purpose algorithm for generating adversarial examples that are robust across any chosen distribution of transformations. We demonstrate its application in two dimensions, producing adversarial images that are robust to noise, distortion, and affine transformation. Finally, we apply the algorithm to produce arbitrary physical 3D-printed adversarial objects, demonstrating that our approach works end-to-end in the real world. Our results show that adversarial examples are a practical concern for real-world systems.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ The existence of adversarial examples for neural networks has until now been largely a theoretical concern. While minute, carefully-crafted perturbations can cause targeted misclassification in a neural network, adversarial examples produced using standard techniques lose adversariality when directly translated to the physical world as they are captured over varying viewpoints and affected by natural phenomena such as lighting and camera noise. This suggests that practical systems may not be at risk because adversarial examples generated using standard techniques are not robust in the physical world.
14
+
15
+ ![](images/e7ff76dd7ad74bacab138890651367af1c995c337660f74ccd1530dd873a6cbc.jpg)
16
+ Figure 1: Randomly sampled poses of a single 3D-printed turtle adversarially perturbed to classify as a rifle at every viewpoint by an ImageNet classifier. An unperturbed model is classified correctly as a turtle $100 \%$ of the time. See https://youtu.be/YXy6oX1iNoA for a video where every frame is fed through the classifier: the turtle is consistently classified as a rifle.
17
+
18
+ We show that neural network-based classifiers are vulnerable to physical-world adversarial examples. We introduce a new algorithm for reliably producing physical 3D objects that are adversarial over a distribution of viewpoints. Figure 1 shows an example of an adversarial object constructed using our approach, where a 3D-printed turtle is consistently classified as rifle by an ImageNet classifier. In this paper, we demonstrate the efficacy and generality of our method, demonstrating conclusively that adversarial examples are a concern in real-world systems.
19
+
20
+ # 1.1 CHALLENGES
21
+
22
+ Methods for transforming ordinary two-dimensional images into adversarial examples are wellknown; however, the extent to which these techniques affect specific real-world systems is still an open question. Prior work has shown that adversarial examples generated using standard techniques lose their adversarial nature once subjected to minor transformations (Luo et al., 2016; Lu et al., 2017). These results suggest that adversarial examples, while serving as interesting phenomena, have no hope of applying to physical-world systems, where transformations such as viewpoint changes and camera noise are inevitable.
23
+
24
+ Prior techniques attempting to synthesize robust adversarial examples for the physical world have had limited success. While some progress has been made, current efforts have demonstrated a small number of datapoints on nonstandard classifiers, and only in the two-dimensional case, with no clear generalization to three dimensions (further discussed in Section 4).
25
+
26
+ The entirety of prior work has only explored generating adversarial examples in the two-dimensional case, where “viewpoints” can be approximated by an affine transformations of an original image. Constructing adversarial examples for the physical world requires the ability to generate entire 3D adversarial objects, which must remain adversarial in the face of complex transformations not applicable to 2D objects, such as 3D rotations and perspective projection.
27
+
28
+ # 1.2 CONTRIBUTIONS
29
+
30
+ In this work, we definitively show that adversarial examples pose a real threat in the physical world. We propose a general-purpose algorithm for reliably constructing adversarial examples robust over a chosen distribution of transformations, and we demonstrate the efficacy of this algorithm in both the 2D and 3D case. We succeed in producing physical-world 3D adversarial objects that are robust over a large, realistic distribution of 3D viewpoints, proving that the algorithm produces adversarial three-dimensional objects that are adversarial in the physical world. Specifically, our contributions are as follows:
31
+
32
+ • We develop Expectation Over Transformation (EOT), a novel algorithm that produces single adversarial examples that are simultaneously adversarial over an entire distribution of transformations
33
+ • We consider the problem of constructing 3D adversarial examples under the EOT framework, viewing the 3D rendering process as part of the transformation, and we show that the approach successfully synthesizes adversarial objects
34
+ • We fabricate adversarial objects and show that they remain adversarial, demonstrating that our approach works end-to-end in the physical world, showing that adversarial examples are of real concern in practical deep learning systems
35
+
36
+ # 2 APPROACH
37
+
38
+ First, we present the Expectation Over Transformation (EOT) algorithm, a general framework allowing for the construction of adversarial examples that remain adversarial over a chosen transformation distribution $T$ . We then describe our end-to-end approach for generating adversarial objects using a specialized application of EOT in conjunction with differentiating through the 3D rendering process.
39
+
40
+ # 2.1 EXPECTATION OVER TRANSFORMATION
41
+
42
+ When constructing adversarial examples in the white-box case (that is, with access to a classifier and its gradient), we know in advance a set of possible classes $Y$ and a space of valid inputs $X$ to the classifier; we have access to the function $P ( \boldsymbol { y } | \boldsymbol { x } )$ and its gradient $\bar { \nabla } P ( y | x )$ , for any class $y \in Y$ and input $x \in X$ . In the standard case, adversarial examples are produced by maximizing the log-likelihood of the target class over a $\epsilon$ -radius ball around the original image, that is:
43
+
44
+ $$
45
+ \hat { x } = \underset { x ^ { \prime } \in X } { \arg \operatorname* { m a x } } \log P ( y | x ^ { \prime } ) \qquad \mathrm { s . t . } \ | | x ^ { \prime } - x | | _ { p } < \epsilon
46
+ $$
47
+
48
+ This approach has been shown to be both feasible and effective at generating adversarial examples for any given classifier. However, prior work has shown adversarial examples’ inability to remain adversarial even under minor perturbations inevitable in any real-world observation (Luo et al., 2016; Lu et al., 2017).
49
+
50
+ To address this issue, we introduce Expectation Over Transformation $( E O T )$ . The key insight behind EOT is to model such perturbations within the optimization procedure. Rather than optimizing the log-likelihood of a single example, EOT uses a chosen distribution $T$ of transformation functions $t$ taking an input $x ^ { \prime }$ supplied by the adversary to the “true” input $t ( x ^ { \prime } )$ perceived by the classifier. Furthermore, rather than simply taking the norm of $x ^ { \prime } - x$ to constrain the solution space, EOT instead aims to constrain the effective distance between the adversarial and original inputs, which we define as:
51
+
52
+ $$
53
+ \delta = \mathbb { E } _ { t \sim T } [ d ( t ( x ) - t ( x ^ { \prime } ) ) ]
54
+ $$
55
+
56
+ Intuitively, this is how different we expect the true input to the classifer will be, given our new input. Then, EOT solves the following optimization problem:
57
+
58
+ $$
59
+ \hat { x } = \underset { x ^ { \prime } } { \arg \operatorname* { m a x } } \mathbb { E } _ { t \sim T } [ \log P ( y | t ( x ^ { \prime } ) ) ] \qquad \mathrm { s . t . } \ \mathbb { E } _ { t \sim T } [ d ( t ( x ^ { \prime } ) , t ( x ) ) ] < \epsilon
60
+ $$
61
+
62
+ In practice, the distribution $T$ can model perceptual distortions such as random rotation, translation, or addition of noise. However, EOT generalizes beyond simple transformations. EOT finds examples robust under any perception distribution $Q ( \cdot ; x )$ parameterized by the generated example $x$ as long as ${ \frac { d } { d x } } Q ( \cdot ; x )$ is well-defined. The objective function can be optimized by stochastic gradient descent, approximating the derivative of the expected value through sampling transformations independently at each gradient descent step and differentiating through the transformation.
63
+
64
+ # 2.2 SYSTEM OVERVIEW
65
+
66
+ Given its ability to synthesize robust adversarial examples, we use the EOT framework for generating 2D examples, 3D models, and ultimately physical-world adversarial objects. Within the framework, however, there is a great deal of freedom in the actual method by which examples are generated, including choice of $T$ , distance metric, and optimization method.
67
+
68
+ In the 2D case, we design $T$ to approximate a realistic space of possible distortions involved in printing out an image and taking a natural picture of it. This amounts to a set of random transformations of the form $t ( x ) = A x + \epsilon$ , which are more thoroughly described in Section 3.
69
+
70
+ In the 3D case, we define the transformations $t$ from a texture to a perceived image by mapping the texture to a given 3D object, and simulating highly nonlinear functions such as rendering, rotation, translation, and perspective distortion of the object in addition to the perceptual mechanisms used in the 2D case.
71
+
72
+ Finding adversarial examples across these nonlinear transformations is what allows for the transfer of adversarial examples to the physical world, but also introduces implementation complexities not found in the 2D case. EOT requires the ability to differentiate though the transformation distribution with respect to the input. In the 3D case, this implies differentiating through the 3D renderer with respect to the texture.
73
+
74
+ To do this, we model the rendering process as a sparse matrix multiplication between the texture and a coordinate map, which is generated from a standard 3D renderer. Rather than attempting to differentiate through the complex renderer, we use the renderer to find a coordinate map for each rendering, which maps coordinates on the texture to coordinates in the classifier’s field of view. We can then simulate this specific rendering as a sparse matrix multiplication and differentiate through it; we differentiate through different matrix multiplications at each sampling step.
75
+
76
+ Once EOT has been parameterized, i.e. once a distribution $T$ is chosen, the issue of actually optimizing the induced objective function remains. Rather than solving the constrained optimization problem given above, we use the Lagrangian-relaxed form of the problem, as Carlini $\&$ Wagner (2017) do in the conventional (non-EOT, single-viewpoint) case:
77
+
78
+ $$
79
+ \hat { x } = \underset { x ^ { \prime } } { \arg \operatorname* { m i n } } \mathbb { E } _ { t \sim T } [ - \log P ( y | t ( x ^ { \prime } ) ) ] + \lambda \mathbb { E } _ { t \sim T } [ d ( t ( x ^ { \prime } ) , t ( x ) ] )
80
+ $$
81
+
82
+ In order to encourage imperceptibility of the generated images, we set $d ( x ^ { \prime } , x )$ to be the $\ell _ { 2 }$ norm in the LAB color space, a perceptually uniform color space where Euclidean distance roughly corresponds with perceptual distance. Note that the $\mathbb { E } _ { t \sim T } [ | | L A B ( t ( x ) ) - L A B ( t ( \hat { x } ) ) | | _ { 2 } ^ { 2 } ]$ can be sampled and estimated in conjunction with $\mathbb { E } [ P ( y | t ( x ) ) ]$ ; in general, the Lagrangian formulation gives EOT the ability to intricately constrain the search space (in our case, using LAB distance) at insignificant computational cost (without computing a complex projection). Our optimization, then, is:
83
+
84
+ $$
85
+ \hat { x } = \underset { x ^ { \prime } } { \arg \operatorname* { m i n } } \mathbb { E } _ { t \sim T } [ - \log P ( y | t ( x ^ { \prime } ) ) + \lambda | | L A B ( t ( x ) ) - L A B ( t ( x ^ { \prime } ) ) | | _ { 2 } ^ { 2 } ]
86
+ $$
87
+
88
+ We use projected gradient descent to find the optimum, clipping to the set of valid inputs (e.g. $[ 0 , 1 ]$
89
+ for images).
90
+
91
+ # 3 EVALUATION
92
+
93
+ We show that we can reliably produce transformation-tolerant adversarial examples in both the 2D and 3D case. Furthermore, we show that we can synthesize and fabricate 3D adversarial objects, even those with complex shapes, in the physical world: these adversarial objects remain adversarial regardless of viewpoint, camera noise, and other similar real-world factors. Adversariality in this case refers to the propensity of the classifier to predict an attacker-chosen target class given an image or object.
94
+
95
+ In our evaluation, given a source object $x$ and a set of correct classes $\{ y _ { 1 } , . . . y _ { n } \}$ , as well as an attacker-chosen target class $y _ { a d v }$ and a crafted adversarial example $x ^ { \prime }$ , we use the following terms in order to characterize the effectiveness of $x ^ { \prime }$ . We call a viewpoint “adversarial” if the top output of the classifier is $y _ { a d v }$ ; “correct” if the adversarial example fails and the classifier outputs one of $\{ y _ { 1 } , \ldots , y _ { n } \}$ , and “misclassified” if the classifier predicts a class unrelated to that of the source object (i.e. not in $\{ y _ { 1 } , . . . y _ { n } \} )$ but not the target class $y _ { a d v }$ . By randomly sampling a set of viewpoints, we can evaluate an adversarial example $x ^ { \prime }$ by examining the proportion of adversarial, correct, and misclassified viewpoints.
96
+
97
+ We evaluate robust adversarial examples in the 2D and 3D case, and furthermore, we evaluate physical-world 3D adversarial objects. The two cases are fundamentally different. In the virtual case, we know that we want to construct adversarial examples robust over a certain distribution of transformations, and we can simply use EOT over that distribution to synthesize a robust adversarial example. In the case of the physical world, however, we cannot capture the exact distribution unless we perfectly model all physical phenomena. Therefore, we must approximate the distribution and perform EOT over the proxy distribution. This works well in practice for producing adversarial objects that remain adversarial under the “true” physical-world distribution, as we demonstrate. See Appendix A for the exact parameters of the distributions we use in the 2D, 3D simulation, and 3D physical-world cases. In all cases, the various transformation parameters are sampled as continuous random variables from a uniform distribution between the minimum and maximum values given, unless otherwise indicated in Appendix A (i.e. Gaussian noise).
98
+
99
+ In our experiments, we use TensorFlow’s standard pre-trained InceptionV3 classifier (Szegedy et al., 2015) which has $7 8 . 0 \%$ top-1 accuracy on ImageNet. In all of our experiments, we use randomly chosen target classes, and we use EOT to synthesize adversarial examples over a chosen distribution. We measure the $\ell _ { 2 }$ distance per pixel between the original and adversarial example (in LAB space), and we also measure classification accuracy (percent of randomly sampled viewpoints classified as the true class) and adversariality (percent of randomly sampled viewpoints classified as the adversarial class) for both the original and adversarial example. When working in simulation, we evaluate over a large number of transformations sampled randomly from the distribution; in the physical world, we evaluate over a large number of manually-captured images of our adversarial objects taken over different viewpoints.
100
+
101
+ Table 1: Evaluation of 1000 2D adversarial examples with random targets. We evaluate each example over 1000 randomly sampled transformations to calculate classification accuracy and adversariality (percent classified as the adversarial class).
102
+
103
+ <table><tr><td rowspan="2">Images</td><td colspan="2">Classification Accuracy</td><td colspan="2">Adversariality</td><td>l2</td></tr><tr><td>mean</td><td>stdev</td><td>mean</td><td>stdev</td><td>mean</td></tr><tr><td>Original</td><td>70.0%</td><td>36.4%</td><td>0.01%</td><td>0.3%</td><td>N/A</td></tr><tr><td>Adversarial</td><td>0.9%</td><td>2.0%</td><td>96.4%</td><td>4.4%</td><td>5.6 ×10-5</td></tr></table>
104
+
105
+ ![](images/8a1365085cfc8403c7fd2cf555137be9d735f49017aa2822c1b4193b33cc2c53.jpg)
106
+ Figure 2: A 2D adversarial example, showing classifier confidence in true and adversarial classes for original and corresponding adversarial image over randomly sampled poses.
107
+
108
+ # 3.1 ROBUST 2D ADVERSARIAL EXAMPLES
109
+
110
+ In the 2D case, we consider the distribution of transformations that includes rescaling, rotation, lightening or darkening by an additive factor, adding Gaussian noise, and any in-bounds translation of the image.
111
+
112
+ We take the first 1000 images in the ImageNet validation set, randomly choose a target class for each image, and use EOT to synthesize an adversarial example that is robust over the chosen distribution. For each adversarial example, we evaluate over 1000 random transformations sampled from the distribution at evaluation time. Table 1 summarizes the results. On average, the adversarial examples have an adversariality of $9 6 . 4 \%$ , showing that our approach is highly effective in producing robust adversarial examples. Figure 2 shows an example of a synthesized adversarial example, along with the classification confidence in true and adversarial classes for original and corresponding adversarial images. See Appendix B for more examples.
113
+
114
+ # 3.2 ROBUST 3D ADVERSARIAL EXAMPLES
115
+
116
+ We produce 3D adversarial examples by modeling the 3D rendering as a transformation under EOT. Given a textured 3D object, we optimize over the texture such that the rendering is adversarial from any viewpoint. We consider a distribution that incorporates different camera distances, lateral translation, rotation of the object, and solid background colors. We approximate the expectation over transformation by taking the mean loss over batches of size 40; furthermore, due to the computational expense of computing a batch, we reuse up to $80 \%$ of the batch at each iteration, but enforce that each batch contain at least 8 new images. As previously mentioned, the parameters of the distribution we use is specified in Appendix A, sampled as independent continuous random variables (that are uniform except for Gaussian noise).
117
+
118
+ Table 2: Evaluation of 200 3D adversarial examples with random targets. We evaluate each example over 100 randomly sampled poses to calculate classification accuracy and adversariality (percent classified as the adversarial class).
119
+
120
+ <table><tr><td rowspan="2">Images</td><td colspan="2">Classification Accuracy</td><td colspan="2">Adversariality</td><td>l</td></tr><tr><td>mean</td><td>stdev</td><td>mean</td><td>stdev</td><td>mean</td></tr><tr><td>Original</td><td>68.8%</td><td>31.2%</td><td>0.01%</td><td>0.1%</td><td>N/A</td></tr><tr><td>Adversarial</td><td>1.1%</td><td>3.1%</td><td>83.4%</td><td>21.7%</td><td>5.9 ×10-3</td></tr></table>
121
+
122
+ ![](images/1cf2978cb6d307e968db9ecc20ecdbb43bcd09fc113e3588f289f279b20e61d3.jpg)
123
+ Figure 3: A 3D adversarial example, showing classifier confidence in true and adversarial classes for original and corresponding adversarial object over randomly sampled poses.
124
+
125
+ We consider 10 complex 3D models, choose 20 random target classes per 3D model, and use EOT to synthesize adversarial textures for the 3D models with minimal parameter search (four constant, pre-chosen $\lambda$ values were tested across each [3D model, target] pair). For each of the 200 adversarial examples, we sample 100 random transformations from the distribution at evaluation time. Table 2 summarizes results, and Figure 3 shows renderings of drawn samples with classification probabilities. See Appendix C for more examples.
126
+
127
+ The simulated adversarial object have an average adversariality of $8 3 . 4 \%$ with a long left tail, showing that EOT usually produces highly adversarial objects. See Appendix C for a plot of the distribution.
128
+
129
+ # 3.3 PHYSICAL ADVERSARIAL EXAMPLES
130
+
131
+ In order to fabricate physical-world adversarial examples, beyond modeling the 3D rendering process, we need to model physical-world phenomena such as lighting effects and camera noise. Furthermore, we need to model the 3D printing process: in our case, we use commercially available full-color 3D printing. With the 3D printing technology we use, we find that color accuracy varies between prints, so we model printing errors as well. We approximate all of these phenomena by a distribution of transformations under EOT. In addition to the transformations considered for 3D in simulation, we consider camera noise, additive and multiplicative lighting, and per-channel color inaccuracies.
132
+
133
+ ![](images/0ce2a65d6a0c86019a0fd73535135727a2d3d4663220c6b525796904fe6f4d8d.jpg)
134
+ Figure 4: A sample of photos of unperturbed 3D prints. The unperturbed 3D-printed objects are consistently classified as the true class.
135
+
136
+ <table><tr><td>Object</td><td>Adversarial</td><td>Misclassified</td><td>Correct</td></tr><tr><td>Turtle</td><td>82%</td><td>16%</td><td>2%</td></tr><tr><td>Baseball</td><td>59%</td><td>31%</td><td>10%</td></tr></table>
137
+
138
+ Table 3: Quantitative analysis of the two adversarial objects, over 100 photos of each object over a wide distribution of viewpoints. Both objects are classified as the adversarial target class in the majority of viewpoints.
139
+
140
+ We evaluate physical adversarial examples over two 3D-printed objets: one of a turtle (where we consider any of the 5 turtle classes in ImageNet as the “true” class), and one of a baseball. The unperturbed 3D-printed objects are correctly classified as the true class with $100 \%$ accuracy over a large number of samples. Figure 4 shows example photographs of unperturbed objects, along with their classifications.
141
+
142
+ We choose target classes for each of the 3D models at random — “rifle” for the turtle, and “espresso” for the baseball — and we use EOT to synthesize adversarial examples. We evaluate the performance of our two 3D-printed adversarial objects by taking 100 photos of each object over a variety of viewpoints1. Figure 5 shows a random sample of these images, along with their classifications. Table 3 gives a quantitative analysis over all images, showing that our 3D-printed adversarial objects are strongly adversarial over a wide distribution of transformations. See Appendix D for more examples.
143
+
144
+ # 3.4 DISCUSSION
145
+
146
+ The results and quantative analysis in this section demonstrate the efficacy of EOT and confirm the existence of physical adversarial examples. Here, we perform a qualitative analysis of the results:
147
+
148
+ Modeling Perception. The EOT algorithm as presented in Section 2 presents a general method to construct adversarial examples over a chosen perceptual distribution, but notably gives no guarantees for observations of the image outside of the chosen distribution. In constructing physical-world adversarial objects, we use a crude, high-variance approximation of the rendering and capture process, and this succeeds in ensuring robustness to a diverse set of environments; see, for example, Figure 6, which shows the same adversarial turtle in vastly different environments. In specialized domains, however, a domain expert may opt to model the perceptual distribution precisely in order to better constrain the search space.
149
+
150
+ ![](images/2d838726c5c8ee8f55c20ec69eb7940cf0838e9a4739614e4b6be8128e2a551c.jpg)
151
+ Figure 5: Random sample of photographs of the two 3D-printed adversarial objects. The 3Dprinted adversarial objects are strongly adversarial over a wide distribution of viewpoints.
152
+
153
+ ![](images/5868a039d1fd427be0e20aaccff39f6ed047d81f56294c207a550fa80938aaca.jpg)
154
+ Figure 6: Three pictures of the same adversarial turtle (all classified as “rifle”), demonstrating the need for a wide distribution, and the efficacy of EOT in finding examples robust across wide distributions of physical-world effects like lighting.
155
+
156
+ ![](images/7680637ccd673478b874fc51b0f957fc4bba607403fde58f404df0cfd76e6021.jpg)
157
+ Figure 7: A side-by-side comparison of a 3D-printed model (left) along with a printout of the corresponding texture, printed on a standard laser color printer (center) and the original digital texture (right), showing significant error in color accuracy in printing.
158
+
159
+ Error in Printing. We also find significant error in the color accuracy of even state of the art commercially available color 3D printing; Figure 7 shows a comparison of a 3D-printed model along with a printout of the model’s texture, printed on a standard laser color printer. Still, EOT was able to overcome the problem and produce robust physical-world adversarial objects. We predict that we could have produced adversarial examples with smaller $\ell _ { 2 }$ perturbation with a higher-fidelity printing process.
160
+
161
+ Semantically Relevant Misclassification. Interestingly, for the majority of viewpoints where the adversarial target class is not the top-1 predicted class, the classifier also fails to correctly predict the source class. Instead, we find that the classifier often classifies the object as an object that is semantically similar to the adversarial target; while generating the adversarial turtle to be classified as a rifle, for example, the second most popular class (after “rifle”) was “revolver,” followed by “holster” and then “assault rifle.” Similarly, when generating the baseball to be classified as an espresso, the example was often classified as “coffee” or “bakery”.
162
+
163
+ # 4 RELATED WORK
164
+
165
+ State of the art neural networks are vulnerable to adversarial examples (Szegedy et al., 2013). Researchers have proposed a number of methods for synthesizing adversarial examples in the whitebox scenario (with access to the gradient of the classifier), including L-BFGS (Szegedy et al., 2013), the Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2015), and a Lagrangian relaxation formulation (Carlini & Wagner, 2017), all for the single-viewpoint case where the adversary directly controls the input to the neural network. Projected Gradient Descent (PGD) can be seen as a universal first-order adversary (Madry et al., 2017).
166
+
167
+ Moosavi-Dezfooli et al. (2017) show the existence of universal (image-agnostic) adversarial perturbations, small perturbation vectors that can be applied to any image to induce misclassification. Their paper proposes an algorithm that finds perturbations that are universal over images; in our work, we give an algorithm that finds a perturbation to a single image or object that is universal over a chosen distribution of transformations. In preliminary experiments, we found that universal adversarial perturbations, like standard adversarial perturbations to single images, are not inherently robust to transformation.
168
+
169
+ In the first work on 2D physical-world adversarial examples, Kurakin et al. (2016) demonstrate the transferability of FGSM-generated adversarial misclassification on a printed page. In their setup, a photo is taken of a printed image with QR code guides, and the resultant image is warped, cropped, and resized to become a square of the same size as the source image before classifying it. Their results show the existence of 2D physical-world adversarial examples for approximately axis-aligned views, demonstrating that adversarial perturbations produced using FGSM can translate to the physical world and are robust to camera noise, rescaling, and lighting effects. Kurakin et al. (2016) do not synthesize targeted physical-world adversarial examples, they do not evaluate other real-world 2D transformations such as rotation, skew, translation, or zoom, and their approach does not translate to the 3D case.
170
+
171
+ Sharif et al. (2016) develop a real-world adversarial attack on a state-of-the-art face recognition algorithm, where adversarial eyeglass frames cause targeted misclassification in portrait photos. The algorithm produces robust perturbations through optimizing over a fixed set of inputs: the attacker collects a set of images and finds a perturbation that minimizes cross entropy loss over the set. The algorithm solves a different problem than we do in our work: it produces adversarial perturbations universal over portrait photos taken head-on from a single viewpoint, while EOT produces 2D/3D adversarial examples robust over transformations. The approach also includes a mechanism for enhancing perturbations’ printability using a color map to address the limited color gamut and color inaccuracy of the printer. Note that this differs from our approach in achieving printability: rather than creating a color map, we find an adversarial example that is robust to color inaccuracy. Our approach has the advantage of working in settings where color accuracy varies between prints, as was the case with our 3D-printer.
172
+
173
+ Recently, Evtimov et al. (2017) proposed a method for generating robust physical-world adversarial examples in the 2D case by optimizing over a fixed set of manually-captured images. However, the approach is limited to the 2D case, with no clear translation to 3D, where there is no simple mapping between what the adversary controls (the texture) and the observed input to the classifier (an image). Furthermore, the approach requires the taking and preprocessing of a large number of photos in order to produce each adversarial example, which may be expensive or even infeasible for many objects.
174
+
175
+ Lu et al. (2017) argued that adversarial examples may not be a practical concern in physical-world systems because adversarial examples generated for the single viewpoint case lose adversariality at viewpoints with differing scale and rotation. While this is the case with standard adversarial examples as evaluated in the paper and in Luo et al. (2016), we have shown that with EOT, it is in fact possible to construct physical-world adversarial images and objects that are classified as a chosen target class over a wide range of viewpoints.
176
+
177
+ # 5 CONCLUSION
178
+
179
+ Our work shows that adversarial examples pose a practical threat to systems using neural networkbased image classifiers. By introducing EOT, a general-purpose algorithm for creating robust adversarial examples under any chosen distribution, and modeling 3D rendering and printing within the framework of EOT, we succeed in fabricating three-dimensional adversarial objects. With access only to low-cost commercially available 3D printing technology, we successfully print physical adversarial objects that are strongly classified as a chosen target class over a variety of angles, viewpoints, and lighting conditions by a standard ImageNet classifier.
180
+
181
+ # REFERENCES
182
+
183
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security & Privacy, 2017.
184
+
185
+ Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust Physical-World Attacks on Deep Learning Models. 2017. URL https://arxiv.org/abs/1707.08945.
186
+
187
+ Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations (ICLR), 2015.
188
+
189
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. 2016. URL https://arxiv.org/abs/1607.02533.
190
+
191
+ Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. 2017. URL https://arxiv.org/ abs/1707.03501.
192
+
193
+ Yan Luo, Xavier Boix, Gemma Roig, Tomaso Poggio, and Qi Zhao. Foveation-based mechanisms alleviate adversarial examples. 2016. URL https://arxiv.org/abs/1511.06292.
194
+
195
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. 2017. URL https://arxiv. org/abs/1706.06083.
196
+
197
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
198
+
199
+ Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K. Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, CCS ’16, pp. 1528–1540, New York, NY, USA, 2016. ACM. ISBN 978-1-4503-4139-4. doi: 10.1145/2976749.2978392. URL http://doi.acm.org/10.1145/2976749.2978392.
200
+
201
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. 2013. URL https://arxiv.org/ abs/1312.6199.
202
+
203
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. 2015. URL https://arxiv.org/ abs/1512.00567.
204
+
205
+ Table 4: Distribution of transformations for the 2D case, where each parameter is sampled uniformly at random from the specified range.
206
+
207
+ <table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Scale</td><td>0.9</td><td>1.4</td></tr><tr><td>Rotation</td><td>-22.5°</td><td>22.5°</td></tr><tr><td>Lighten /Darken</td><td>-0.05</td><td>0.05</td></tr><tr><td>Gaussian Noise (stdev)</td><td>0.0</td><td>0.1</td></tr><tr><td>Translation</td><td colspan="2">any in-bounds</td></tr></table>
208
+
209
+ <table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Camera distance</td><td>2.5</td><td>3.0</td></tr><tr><td>X/Y translation</td><td>-0.05</td><td>0.05</td></tr><tr><td>Rotation</td><td>any</td><td></td></tr><tr><td>Background</td><td>(0.1, 0.1, 0.1)</td><td>(1.0, 1.0, 1.0)</td></tr></table>
210
+
211
+ Table 5: Distribution of transformations for the 3D case when working in simulation, where each parameter is sampled uniformly at random from the specified range.
212
+
213
+ # A DISTRIBUTIONS OF TRANSFORMATIONS
214
+
215
+ Under the EOT framework, we must choose a distribution of transformations, and the optimization produces an adversarial example that is robust under the distribution of transformations. Here, we give the specific parameters we chose in the 2D (Table 4), 3D (Table 5), and physical-world case (Table 6).
216
+
217
+ # B ROBUST 2D ADVERSARIAL EXAMPLES
218
+
219
+ We give a random sample out of our 1000 2D adversarial examples in Figures 8 and 9.
220
+
221
+ # C ROBUST 3D ADVERSARIAL EXAMPLES
222
+
223
+ We give a random sample out of our 200 3D adversarial examples in Figures 10 and 11 and 12. We give a histogram of adversariality (percent classified as the adversarial class) over all 200 examples in Figure 13.
224
+
225
+ <table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Camera distance</td><td>2.5</td><td>3.0</td></tr><tr><td>X/Y translation</td><td>-0.05</td><td>0.05</td></tr><tr><td>Rotation</td><td>any</td><td></td></tr><tr><td>Background</td><td>(0.1, 0.1, 0.1)</td><td>(1.0, 1.0, 1.0)</td></tr><tr><td>Lighten /Darken (additive)</td><td>-0.15</td><td>0.15</td></tr><tr><td>Lighten /Darken (multiplicative)</td><td>0.5</td><td>2.0</td></tr><tr><td>Per-channel (additive)</td><td>-0.15</td><td>0.15</td></tr><tr><td>Per-channel (multiplicative)</td><td>0.7</td><td>1.3</td></tr><tr><td>Gaussian Noise (stdev)</td><td>0.0</td><td>0.1</td></tr></table>
226
+
227
+ Table 6: Distribution of transformations for the physical-world 3D case, approximating rendering, physical-world phenomena, and printing error.
228
+
229
+ ![](images/b083ea72bfac9f4868888f30c3c69dd4a49ec8ff2c8e79b652ea528b891770cb.jpg)
230
+ Figure 8: A random sample of 2D adversarial examples.
231
+
232
+ ![](images/f0f817fd8983b1e1d4054c974e670dd80c5166c6dac2cf13472fe01de10cd927.jpg)
233
+ Figure 9: A random sample of 2D adversarial examples.
234
+
235
+ ![](images/ed727815dd9fc97ab760d41d0cd4b6c21479351d5269e868470b0cd22de36447.jpg)
236
+
237
+ ![](images/c6f2063325c3f07b635032ee0c16b39697e906d77447ea490acbee04d5767b64.jpg)
238
+
239
+ P (true): 96% P (adv): 0%
240
+
241
+ P (true): 99% P (adv): 0%
242
+
243
+ ![](images/4cf3233d10102773051dc716a7368d5ab8850e906521a1b690ab87971dd83841.jpg)
244
+
245
+ ![](images/7515ed6a492794f537c1cc35e8dd4a29b2a68b15dabe753c0156aa14106740a7.jpg)
246
+
247
+ P (true): 96% P (adv): 0%
248
+
249
+ P (true): 97% P (adv): 0%
250
+
251
+ Adversarial:
252
+ guillotine
253
+ \`2 = 3.1 × 10−5
254
+
255
+ ![](images/54725ecf42ea0dc7381f3cf3c3f859630c7958461ff2b8481e04ec046fcab82e.jpg)
256
+
257
+ P (true): 1% P (adv): 10%
258
+
259
+ ![](images/8fd61dc806d9100aa12ab70aa0390d56a6b914ea4e50edcd9b099b652ae752cb.jpg)
260
+
261
+ P (true): 0% P (adv): 95%
262
+
263
+ ![](images/daf5e022f68af61c84a6bccf67e1347bf62cd13906f887400733c8b202810466.jpg)
264
+
265
+ P (true): 0% P (adv): 91%
266
+
267
+ ![](images/474cab26c2ad858b19ed19a9311ee4b9ffcbfd7636be1d0624df670ca2b536fe.jpg)
268
+
269
+ P (true): 3% P (adv): 4%
270
+
271
+ Original: baseball
272
+
273
+ P (true): 100% P (adv): 0%
274
+
275
+ ![](images/446ebf8f295c43d48bb077f813088cceaa533e663bb7e9d921c7cbd3a4a523e8.jpg)
276
+
277
+ P (true): 100% P (adv): 0%
278
+
279
+ ![](images/5801cd3b24e8979b4b93b46ce27a6964716fc3c454e51bf9ccf090205d092684.jpg)
280
+
281
+ P (true): 100% P (adv): 0%
282
+
283
+ ![](images/c1a6f0835e8c8f8a5c5fc2ccf9378302270b489b6e4166a1ab5a5864fe7f68ae.jpg)
284
+
285
+ P (true): 100% P (adv): 0%
286
+
287
+ Adversarial:
288
+ green lizard
289
+ \`2 = 2.9 × 10−5
290
+
291
+ ![](images/b8cae5f69364c82edf35080f1259de8117c87c2ebc06e60fe98d2323ade5ad3f.jpg)
292
+
293
+ ![](images/cd986a37a5e612d93931ce84585be956cec7ce04e63438e588371e7e2c12a2ee.jpg)
294
+ Figure 10: A random sample of 3D adversarial examples.
295
+
296
+ P (true): 0% P (adv): 66%
297
+
298
+ ![](images/a3a7f87be5edcfd09f8959b9e465d1b7734d5164f2d7f81f8941ba5aa235682e.jpg)
299
+
300
+ P (true): 0% P (adv): 94%
301
+
302
+ ![](images/1a7be731f6e47133ef61ad9c4d7d80834dc5a12f838d2951ea6bdf17d3db6a9d.jpg)
303
+
304
+ P (true): 0% P (adv): 87%
305
+
306
+ ![](images/c8c03105f7c59ea309bbb24efb5bbbd48af3a326bc24fb8ba8108beb2c9fdee4.jpg)
307
+
308
+ P (true): 0% P (adv): 94%
309
+
310
+ ![](images/f5b8650edd0e56e908f26f6719451967643d51b73b5d96c42f3ec7114124cf94.jpg)
311
+
312
+ ![](images/47d685b13d576c782a76ea4310002346cc13e74471d60396a67bfb51531a72c1.jpg)
313
+
314
+ P (true): 97% P (adv): 0%
315
+
316
+ Adversarial:
317
+ Bouvier des
318
+ Flandres
319
+ $\ell _ { 2 } = 1 . 4 \times 1 0 ^ { - 4 }$
320
+
321
+ Original: baseball
322
+
323
+ ![](images/249278e25d05f089dd06880dd49751146a6947e241fbe364d0ccdb463743f917.jpg)
324
+
325
+ P (true): 100% $P ( a d v ) \colon 0 \%$
326
+
327
+ ![](images/66e03cb43930ef19e402f0f01e7787aadc51dc8239ed85223e3f8fbdc34dabd1.jpg)
328
+
329
+ P (true): 100% P (adv): 0%
330
+
331
+ ![](images/6bb9dfef8cd85248a240d643c4b9500f131cac1df5328f3c08edc3f29e4fcbcf.jpg)
332
+
333
+ P (true): 100% P (adv): 0%
334
+
335
+ ![](images/e2bbfdc90bb9e85b72a9335652ad544ee2642d4fdf0ec0b23d09248c608a7584.jpg)
336
+
337
+ P (true): 100% P (adv): 0%
338
+
339
+ Adversarial:
340
+ Airedale
341
+ \`2 = 3.4 × 10−5
342
+
343
+ ![](images/95900f3926ccab52c23ca303bc16c1eed02813c826f1675f2d45b02624161e6e.jpg)
344
+
345
+ P (true): $0 \%$ $P ( a d v ) \colon 9 4 \%$
346
+
347
+ ![](images/a05c59801466e8c0cf5c36693564fe27616f7a486313b5569b8c4811ee21279b.jpg)
348
+
349
+ P (true): 0% P (adv): 6%
350
+
351
+ ![](images/0d85b317da683e42fe93849c0db9cc79d3ea2e8124cdb3d10ed17f8df82cb1b4.jpg)
352
+
353
+ P (true): 0% P (adv): 96%
354
+
355
+ ![](images/239fdb3245349dc1af9e16b14f520ec7678daa9356f3d0edf4bd37ee369a35b9.jpg)
356
+
357
+ P (true): 0% P (adv): 18%
358
+
359
+ Original: orange
360
+
361
+ P (true): 73% $\dot { P } ( a d v ) \colon 0 \%$
362
+
363
+ ![](images/3b9c622a8360406355546717b32d8259f72994852b21e2ffe08b5133db3996a9.jpg)
364
+
365
+ P (true): 29% P (adv): 0%
366
+
367
+ ![](images/6a4c9beddfe761c6bba3f18f1abfcc0ca223dfda977436934cd48abd07d7fd6a.jpg)
368
+
369
+ P (true): 20% P (adv): 0%
370
+
371
+ ![](images/d5d1abe73147d2d10dbda4e5624b9e7dfb7a5e1b5ee787d4a091463cba747ab1.jpg)
372
+
373
+ P (true): 85% P (adv): 0%
374
+
375
+ Adversarial: power drill $\ell _ { 2 } = 4 . 3 \times 1 0 ^ { - 5 }$
376
+
377
+ ![](images/eb1b9d31583bd8c3c01ea86cabd1a3d1da86a0485b68f02f976c61a975132d00.jpg)
378
+
379
+ P (true): 0% $P ( a d v ) \colon 8 9 \%$
380
+
381
+ ![](images/ceefc8ab855bea62d9afd910734084e0186d0b5f35c6b4da4978d71ef2e89ad4.jpg)
382
+
383
+ ![](images/3c3fb815e0066ce35a615779596beb636e43cd985cab46489e5d91c4606ba99c.jpg)
384
+ Figure 11: A random sample of 3D adversarial examples.
385
+
386
+ P (true): 4% P (adv): 75%
387
+
388
+ ![](images/bcbc07463244d7b2b5fbe8bf013b56b2f5a4d250075fc2233ceb8817d2eeba77.jpg)
389
+
390
+ P (true): 0% P (adv): 98%
391
+
392
+ ![](images/54f666abab66b32348d729e33d0dc873dc9ab5c0c9b70e37eab3f9f8e64229a6.jpg)
393
+
394
+ P (true): 0% P (adv): 84%
395
+
396
+ ![](images/cb48e24288fd98194840193196c2f1c91cbe041c05552ab90195f16dc5eda6aa.jpg)
397
+
398
+ ![](images/0ad0ed609336cdf3edbeb9c8b639044946d9a6eadc326762b7b9144d498e8340.jpg)
399
+
400
+ ![](images/23c084bba5647d1f819303736d3f648ac671523d7199dd941ae192d5489896ea.jpg)
401
+
402
+ ![](images/f2cfff3e1d998a748bb6f9050dca68c368fbf8b5cf7c0ecd36f76daec2047b0d.jpg)
403
+
404
+ P (true): 0% P (adv): 0%
405
+
406
+ Adversarial:
407
+ bittern
408
+ $\ell _ { 2 } = 7 . 4 \times 1 0 ^ { - 5 }$
409
+
410
+ P (true): 0% P (adv): 97%
411
+
412
+ Original: teddybear
413
+
414
+ ![](images/6ad66586a045e8d66368d2977c1e998f6406417daf8d764b80c22f97afb000ea.jpg)
415
+
416
+ P (true): 90% $P ( a d v ) \colon 0 \%$
417
+
418
+ ![](images/30755d556abc6422ec694c4576b70359e6018f4f9a724cabbdeb85c9bb4875a3.jpg)
419
+
420
+ P (true): 1% P (adv): 0%
421
+
422
+ ![](images/5851e0b808bde9a1bf46c0794c0cf4b9232eb22a41c478dec454f86a98f6ab58.jpg)
423
+
424
+ P (true): 98% P (adv): 0%
425
+
426
+ ![](images/1fe7cda29d006d909f7781f949ce04c9a7a60aaf3ecd6a7eac67e7fe96129995.jpg)
427
+
428
+ P (true): 5% P (adv): 0%
429
+
430
+ Adversarial: sock $\ell _ { 2 } = 3 . 3 \times 1 0 ^ { - 5 }$
431
+
432
+ ![](images/a9816a9b180b8f7bef67cbba62b49ec4d4cd3d317f357ede8d4343f8a39b0741.jpg)
433
+
434
+ P (true): 0% P (adv): 99%
435
+
436
+ ![](images/c5fb2c2baa6b7cabfa3e65c92cc6bb38be0bd7020c3189bb36ee515c02bca7f6.jpg)
437
+
438
+ P (true): 0% P (adv): 99%
439
+
440
+ ![](images/586093914075b318ca8bb6e5b7a6291befd2e976ad524a85192839ae0e695bed.jpg)
441
+
442
+ P (true): 0% P (adv): 98%
443
+
444
+ ![](images/ebe47435f3be92f455951303cf89ec71f729d8c89a6e7f9af0411deb2620a93a.jpg)
445
+
446
+ P (true): 0% P (adv): 99%
447
+
448
+ Original: clownfish
449
+
450
+ ![](images/ac2dd4c42b02bc94fdb060c2e3d702c62369d6b0fbadc4d7f63e446d6b0a874c.jpg)
451
+
452
+ P (true): 46% P (adv): 0%
453
+
454
+ ![](images/abd96785a2d7187f97cbb07657d511dcec4010242e79c96ce9edebceee8967bb.jpg)
455
+
456
+ P (true): 14% P (adv): 0%
457
+
458
+ ![](images/347b879d28ef7690e64636129cc7eff717d83136b182259b8cb02ff40871203b.jpg)
459
+
460
+ P (true): 2% P (adv): 0%
461
+
462
+ ![](images/65db67d6cbe560af1e9677e0329a5578b1b09ba62293dcd8f8654a46d51f6db1.jpg)
463
+
464
+ P (true): 65% P (adv): 0%
465
+
466
+ Adversarial:
467
+ panpipe
468
+ \`2 = 4.8 × 10−5
469
+
470
+ ![](images/e87b26949fe94ff2c31df5ba8cbd5a454d8160a7139bda171c60cb616dac6778.jpg)
471
+
472
+ P (true): 0% P (adv): 100%
473
+
474
+ ![](images/bbb9c568b2e2c1cbbc549f938a340227515e212830866283b2ef9b4fb7fd50c4.jpg)
475
+
476
+ P (true): 0% $P ( a d v ) \colon 1 \%$
477
+
478
+ ![](images/5d9935f54c75a0b8412dbf0ec7991dd36a9c4c4d61513020c87ffd4aca2658d6.jpg)
479
+
480
+ P (true): 0% P (adv): 12%
481
+
482
+ ![](images/1f1bb7351508549b5ae2f69e4c29d4b3d9746bc865ffdd8c1868b987d04b8aef.jpg)
483
+
484
+ P (true): 0% P (adv): 0%
485
+
486
+ ![](images/c29b80e8cfe88b28fff222bcbc5ed1d58a95ac9f5218e28749e09c9d7b97a622.jpg)
487
+
488
+ ![](images/0c9b9888052e6fae14934e6ffad213cbf504db46a4fba1429e7ad6e40c146804.jpg)
489
+
490
+ ![](images/0331f9e468f15008972fc47f1d99e1c16a46cf3d2510be331bec5a96f4b04fa8.jpg)
491
+
492
+ ![](images/9d96fa85337f06f1b358e57888978077a76cd1babff1c801deb58405babbf030.jpg)
493
+
494
+ P (true): $70 \%$ P (adv): $0 \%$
495
+
496
+ Adversarial:
497
+ sturgeon
498
+ \`2 = 1.3 × 10−5
499
+
500
+ ![](images/6514990055938b032cbe2d054224c99a04b627fe03e7037e27f07c7cd4cefd7c.jpg)
501
+ Figure 12: A random sample of 3D adversarial examples.
502
+
503
+ ![](images/8eaea64977a95f871993846895af7ee86e7ffd8785da694f9017c5519ff5fc86.jpg)
504
+ Figure 13: A histogram of adversariality (percent of 100 samples classified as the adversarial class) across the 200 3D adversarial examples.
505
+
506
+ # D PHYSICAL ADVERSARIAL EXAMPLES
507
+
508
+ Figure 14 gives all 100 photographs of our adversarial 3D-printed turtle, and Figure 15 gives all 100 photographs of our adversarial 3D-printed baseball.
509
+
510
+ ![](images/f9a72c737c6938de7d0ea9e2da871aa2b1b23446360d174129041b1c8e16bf96.jpg)
511
+ Figure 14: All 100 photographs of our physical-world 3D adversarial turtle.
512
+
513
+ ![](images/a3b9d7a1a22a885462f5210bd4bb0261e6148a4e194778f64bc986e7c7483fca.jpg)
514
+ Figure 15: All 100 photographs of our physical-world 3D adversarial baseball.
parse/train/BJDH5M-AW/BJDH5M-AW_content_list.json ADDED
@@ -0,0 +1,2837 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SYNTHESIZING ROBUST ADVERSARIAL EXAMPLES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 787,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 398,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Neural network-based classifiers parallel or exceed human-level accuracy on many common tasks and are used in practical systems. Yet, neural networks are susceptible to adversarial examples, carefully perturbed inputs that cause networks to misbehave in arbitrarily chosen ways. When generated with standard methods, these examples do not consistently fool a classifier in the physical world due to a combination of viewpoint shifts, camera noise, and other natural transformations. Adversarial examples generated using standard techniques require complete control over direct input to the classifier, which is impossible in many real-world systems. ",
40
+ "bbox": [
41
+ 233,
42
+ 242,
43
+ 764,
44
+ 368
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We introduce the first method for constructing real-world 3D objects that consistently fool a neural network across a wide distribution of angles and viewpoints. We present a general-purpose algorithm for generating adversarial examples that are robust across any chosen distribution of transformations. We demonstrate its application in two dimensions, producing adversarial images that are robust to noise, distortion, and affine transformation. Finally, we apply the algorithm to produce arbitrary physical 3D-printed adversarial objects, demonstrating that our approach works end-to-end in the real world. Our results show that adversarial examples are a practical concern for real-world systems. ",
51
+ "bbox": [
52
+ 233,
53
+ 371,
54
+ 764,
55
+ 497
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 527,
66
+ 336,
67
+ 542
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The existence of adversarial examples for neural networks has until now been largely a theoretical concern. While minute, carefully-crafted perturbations can cause targeted misclassification in a neural network, adversarial examples produced using standard techniques lose adversariality when directly translated to the physical world as they are captured over varying viewpoints and affected by natural phenomena such as lighting and camera noise. This suggests that practical systems may not be at risk because adversarial examples generated using standard techniques are not robust in the physical world. ",
74
+ "bbox": [
75
+ 173,
76
+ 560,
77
+ 825,
78
+ 657
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/e7ff76dd7ad74bacab138890651367af1c995c337660f74ccd1530dd873a6cbc.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Randomly sampled poses of a single 3D-printed turtle adversarially perturbed to classify as a rifle at every viewpoint by an ImageNet classifier. An unperturbed model is classified correctly as a turtle $100 \\%$ of the time. See https://youtu.be/YXy6oX1iNoA for a video where every frame is fed through the classifier: the turtle is consistently classified as a rifle. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 243,
91
+ 679,
92
+ 753,
93
+ 853
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "We show that neural network-based classifiers are vulnerable to physical-world adversarial examples. We introduce a new algorithm for reliably producing physical 3D objects that are adversarial over a distribution of viewpoints. Figure 1 shows an example of an adversarial object constructed using our approach, where a 3D-printed turtle is consistently classified as rifle by an ImageNet classifier. In this paper, we demonstrate the efficacy and generality of our method, demonstrating conclusively that adversarial examples are a concern in real-world systems. ",
100
+ "bbox": [
101
+ 174,
102
+ 103,
103
+ 825,
104
+ 188
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "1.1 CHALLENGES ",
111
+ "text_level": 1,
112
+ "bbox": [
113
+ 176,
114
+ 213,
115
+ 310,
116
+ 227
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "Methods for transforming ordinary two-dimensional images into adversarial examples are wellknown; however, the extent to which these techniques affect specific real-world systems is still an open question. Prior work has shown that adversarial examples generated using standard techniques lose their adversarial nature once subjected to minor transformations (Luo et al., 2016; Lu et al., 2017). These results suggest that adversarial examples, while serving as interesting phenomena, have no hope of applying to physical-world systems, where transformations such as viewpoint changes and camera noise are inevitable. ",
123
+ "bbox": [
124
+ 174,
125
+ 242,
126
+ 825,
127
+ 339
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Prior techniques attempting to synthesize robust adversarial examples for the physical world have had limited success. While some progress has been made, current efforts have demonstrated a small number of datapoints on nonstandard classifiers, and only in the two-dimensional case, with no clear generalization to three dimensions (further discussed in Section 4). ",
134
+ "bbox": [
135
+ 174,
136
+ 347,
137
+ 825,
138
+ 402
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "The entirety of prior work has only explored generating adversarial examples in the two-dimensional case, where “viewpoints” can be approximated by an affine transformations of an original image. Constructing adversarial examples for the physical world requires the ability to generate entire 3D adversarial objects, which must remain adversarial in the face of complex transformations not applicable to 2D objects, such as 3D rotations and perspective projection. ",
145
+ "bbox": [
146
+ 174,
147
+ 410,
148
+ 823,
149
+ 479
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "1.2 CONTRIBUTIONS ",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 176,
159
+ 505,
160
+ 331,
161
+ 520
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "In this work, we definitively show that adversarial examples pose a real threat in the physical world. We propose a general-purpose algorithm for reliably constructing adversarial examples robust over a chosen distribution of transformations, and we demonstrate the efficacy of this algorithm in both the 2D and 3D case. We succeed in producing physical-world 3D adversarial objects that are robust over a large, realistic distribution of 3D viewpoints, proving that the algorithm produces adversarial three-dimensional objects that are adversarial in the physical world. Specifically, our contributions are as follows: ",
168
+ "bbox": [
169
+ 174,
170
+ 535,
171
+ 825,
172
+ 632
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "• We develop Expectation Over Transformation (EOT), a novel algorithm that produces single adversarial examples that are simultaneously adversarial over an entire distribution of transformations \n• We consider the problem of constructing 3D adversarial examples under the EOT framework, viewing the 3D rendering process as part of the transformation, and we show that the approach successfully synthesizes adversarial objects \n• We fabricate adversarial objects and show that they remain adversarial, demonstrating that our approach works end-to-end in the physical world, showing that adversarial examples are of real concern in practical deep learning systems ",
179
+ "bbox": [
180
+ 215,
181
+ 650,
182
+ 825,
183
+ 803
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "2 APPROACH",
190
+ "text_level": 1,
191
+ "bbox": [
192
+ 174,
193
+ 830,
194
+ 299,
195
+ 847
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "First, we present the Expectation Over Transformation (EOT) algorithm, a general framework allowing for the construction of adversarial examples that remain adversarial over a chosen transformation distribution $T$ . We then describe our end-to-end approach for generating adversarial objects using a specialized application of EOT in conjunction with differentiating through the 3D rendering process. ",
202
+ "bbox": [
203
+ 174,
204
+ 867,
205
+ 823,
206
+ 924
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "2.1 EXPECTATION OVER TRANSFORMATION ",
213
+ "text_level": 1,
214
+ "bbox": [
215
+ 174,
216
+ 103,
217
+ 493,
218
+ 118
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "When constructing adversarial examples in the white-box case (that is, with access to a classifier and its gradient), we know in advance a set of possible classes $Y$ and a space of valid inputs $X$ to the classifier; we have access to the function $P ( \\boldsymbol { y } | \\boldsymbol { x } )$ and its gradient $\\bar { \\nabla } P ( y | x )$ , for any class $y \\in Y$ and input $x \\in X$ . In the standard case, adversarial examples are produced by maximizing the log-likelihood of the target class over a $\\epsilon$ -radius ball around the original image, that is: ",
225
+ "bbox": [
226
+ 173,
227
+ 128,
228
+ 825,
229
+ 199
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "equation",
235
+ "img_path": "images/bf0ae510601bea8196f65266e719e3859019904e8b1485467d155211cfd039de.jpg",
236
+ "text": "$$\n\\hat { x } = \\underset { x ^ { \\prime } \\in X } { \\arg \\operatorname* { m a x } } \\log P ( y | x ^ { \\prime } ) \\qquad \\mathrm { s . t . } \\ | | x ^ { \\prime } - x | | _ { p } < \\epsilon\n$$",
237
+ "text_format": "latex",
238
+ "bbox": [
239
+ 334,
240
+ 205,
241
+ 663,
242
+ 233
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "This approach has been shown to be both feasible and effective at generating adversarial examples for any given classifier. However, prior work has shown adversarial examples’ inability to remain adversarial even under minor perturbations inevitable in any real-world observation (Luo et al., 2016; Lu et al., 2017). ",
249
+ "bbox": [
250
+ 173,
251
+ 246,
252
+ 825,
253
+ 303
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "To address this issue, we introduce Expectation Over Transformation $( E O T )$ . The key insight behind EOT is to model such perturbations within the optimization procedure. Rather than optimizing the log-likelihood of a single example, EOT uses a chosen distribution $T$ of transformation functions $t$ taking an input $x ^ { \\prime }$ supplied by the adversary to the “true” input $t ( x ^ { \\prime } )$ perceived by the classifier. Furthermore, rather than simply taking the norm of $x ^ { \\prime } - x$ to constrain the solution space, EOT instead aims to constrain the effective distance between the adversarial and original inputs, which we define as: ",
260
+ "bbox": [
261
+ 173,
262
+ 309,
263
+ 825,
264
+ 406
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "equation",
270
+ "img_path": "images/5671cc220eda2196123e05d263a279f79336535045c74d53cd49aca8e74a6e44.jpg",
271
+ "text": "$$\n\\delta = \\mathbb { E } _ { t \\sim T } [ d ( t ( x ) - t ( x ^ { \\prime } ) ) ]\n$$",
272
+ "text_format": "latex",
273
+ "bbox": [
274
+ 408,
275
+ 405,
276
+ 589,
277
+ 422
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Intuitively, this is how different we expect the true input to the classifer will be, given our new input. Then, EOT solves the following optimization problem: ",
284
+ "bbox": [
285
+ 173,
286
+ 426,
287
+ 821,
288
+ 454
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "equation",
294
+ "img_path": "images/e1649647c9731c4228bb619ed0d75abc00e677204427ba8a122c8e743382402f.jpg",
295
+ "text": "$$\n\\hat { x } = \\underset { x ^ { \\prime } } { \\arg \\operatorname* { m a x } } \\mathbb { E } _ { t \\sim T } [ \\log P ( y | t ( x ^ { \\prime } ) ) ] \\qquad \\mathrm { s . t . } \\ \\mathbb { E } _ { t \\sim T } [ d ( t ( x ^ { \\prime } ) , t ( x ) ) ] < \\epsilon\n$$",
296
+ "text_format": "latex",
297
+ "bbox": [
298
+ 269,
299
+ 460,
300
+ 727,
301
+ 487
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "In practice, the distribution $T$ can model perceptual distortions such as random rotation, translation, or addition of noise. However, EOT generalizes beyond simple transformations. EOT finds examples robust under any perception distribution $Q ( \\cdot ; x )$ parameterized by the generated example $x$ as long as ${ \\frac { d } { d x } } Q ( \\cdot ; x )$ is well-defined. The objective function can be optimized by stochastic gradient descent, approximating the derivative of the expected value through sampling transformations independently at each gradient descent step and differentiating through the transformation. ",
308
+ "bbox": [
309
+ 174,
310
+ 501,
311
+ 825,
312
+ 587
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "2.2 SYSTEM OVERVIEW ",
319
+ "text_level": 1,
320
+ "bbox": [
321
+ 176,
322
+ 603,
323
+ 352,
324
+ 618
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "Given its ability to synthesize robust adversarial examples, we use the EOT framework for generating 2D examples, 3D models, and ultimately physical-world adversarial objects. Within the framework, however, there is a great deal of freedom in the actual method by which examples are generated, including choice of $T$ , distance metric, and optimization method. ",
331
+ "bbox": [
332
+ 174,
333
+ 630,
334
+ 825,
335
+ 685
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "In the 2D case, we design $T$ to approximate a realistic space of possible distortions involved in printing out an image and taking a natural picture of it. This amounts to a set of random transformations of the form $t ( x ) = A x + \\epsilon$ , which are more thoroughly described in Section 3. ",
342
+ "bbox": [
343
+ 174,
344
+ 693,
345
+ 825,
346
+ 736
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "In the 3D case, we define the transformations $t$ from a texture to a perceived image by mapping the texture to a given 3D object, and simulating highly nonlinear functions such as rendering, rotation, translation, and perspective distortion of the object in addition to the perceptual mechanisms used in the 2D case. ",
353
+ "bbox": [
354
+ 174,
355
+ 741,
356
+ 825,
357
+ 797
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Finding adversarial examples across these nonlinear transformations is what allows for the transfer of adversarial examples to the physical world, but also introduces implementation complexities not found in the 2D case. EOT requires the ability to differentiate though the transformation distribution with respect to the input. In the 3D case, this implies differentiating through the 3D renderer with respect to the texture. ",
364
+ "bbox": [
365
+ 174,
366
+ 804,
367
+ 825,
368
+ 875
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "To do this, we model the rendering process as a sparse matrix multiplication between the texture and a coordinate map, which is generated from a standard 3D renderer. Rather than attempting to differentiate through the complex renderer, we use the renderer to find a coordinate map for each rendering, which maps coordinates on the texture to coordinates in the classifier’s field of view. We can then simulate this specific rendering as a sparse matrix multiplication and differentiate through it; we differentiate through different matrix multiplications at each sampling step. ",
375
+ "bbox": [
376
+ 176,
377
+ 882,
378
+ 823,
379
+ 924
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "",
386
+ "bbox": [
387
+ 173,
388
+ 103,
389
+ 823,
390
+ 146
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Once EOT has been parameterized, i.e. once a distribution $T$ is chosen, the issue of actually optimizing the induced objective function remains. Rather than solving the constrained optimization problem given above, we use the Lagrangian-relaxed form of the problem, as Carlini $\\&$ Wagner (2017) do in the conventional (non-EOT, single-viewpoint) case: ",
397
+ "bbox": [
398
+ 174,
399
+ 152,
400
+ 825,
401
+ 209
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/f3d1c9a59fb0f6af5e56ae2c0a808908b6d994adebbf8fc55fc14b30ccca0125.jpg",
408
+ "text": "$$\n\\hat { x } = \\underset { x ^ { \\prime } } { \\arg \\operatorname* { m i n } } \\mathbb { E } _ { t \\sim T } [ - \\log P ( y | t ( x ^ { \\prime } ) ) ] + \\lambda \\mathbb { E } _ { t \\sim T } [ d ( t ( x ^ { \\prime } ) , t ( x ) ] )\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 294,
412
+ 229,
413
+ 702,
414
+ 256
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "In order to encourage imperceptibility of the generated images, we set $d ( x ^ { \\prime } , x )$ to be the $\\ell _ { 2 }$ norm in the LAB color space, a perceptually uniform color space where Euclidean distance roughly corresponds with perceptual distance. Note that the $\\mathbb { E } _ { t \\sim T } [ | | L A B ( t ( x ) ) - L A B ( t ( \\hat { x } ) ) | | _ { 2 } ^ { 2 } ]$ can be sampled and estimated in conjunction with $\\mathbb { E } [ P ( y | t ( x ) ) ]$ ; in general, the Lagrangian formulation gives EOT the ability to intricately constrain the search space (in our case, using LAB distance) at insignificant computational cost (without computing a complex projection). Our optimization, then, is: ",
421
+ "bbox": [
422
+ 173,
423
+ 268,
424
+ 825,
425
+ 353
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "equation",
431
+ "img_path": "images/45c796cf2f8208c892489f2a05251fe065d4f75ef9679e3288b83c4936e1c2a6.jpg",
432
+ "text": "$$\n\\hat { x } = \\underset { x ^ { \\prime } } { \\arg \\operatorname* { m i n } } \\mathbb { E } _ { t \\sim T } [ - \\log P ( y | t ( x ^ { \\prime } ) ) + \\lambda | | L A B ( t ( x ) ) - L A B ( t ( x ^ { \\prime } ) ) | | _ { 2 } ^ { 2 } ]\n$$",
433
+ "text_format": "latex",
434
+ "bbox": [
435
+ 258,
436
+ 359,
437
+ 740,
438
+ 386
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "We use projected gradient descent to find the optimum, clipping to the set of valid inputs (e.g. $[ 0 , 1 ]$ \nfor images). ",
445
+ "bbox": [
446
+ 171,
447
+ 402,
448
+ 825,
449
+ 431
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "3 EVALUATION ",
456
+ "text_level": 1,
457
+ "bbox": [
458
+ 176,
459
+ 453,
460
+ 315,
461
+ 469
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "We show that we can reliably produce transformation-tolerant adversarial examples in both the 2D and 3D case. Furthermore, we show that we can synthesize and fabricate 3D adversarial objects, even those with complex shapes, in the physical world: these adversarial objects remain adversarial regardless of viewpoint, camera noise, and other similar real-world factors. Adversariality in this case refers to the propensity of the classifier to predict an attacker-chosen target class given an image or object. ",
468
+ "bbox": [
469
+ 173,
470
+ 484,
471
+ 825,
472
+ 569
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "In our evaluation, given a source object $x$ and a set of correct classes $\\{ y _ { 1 } , . . . y _ { n } \\}$ , as well as an attacker-chosen target class $y _ { a d v }$ and a crafted adversarial example $x ^ { \\prime }$ , we use the following terms in order to characterize the effectiveness of $x ^ { \\prime }$ . We call a viewpoint “adversarial” if the top output of the classifier is $y _ { a d v }$ ; “correct” if the adversarial example fails and the classifier outputs one of $\\{ y _ { 1 } , \\ldots , y _ { n } \\}$ , and “misclassified” if the classifier predicts a class unrelated to that of the source object (i.e. not in $\\{ y _ { 1 } , . . . y _ { n } \\} )$ but not the target class $y _ { a d v }$ . By randomly sampling a set of viewpoints, we can evaluate an adversarial example $x ^ { \\prime }$ by examining the proportion of adversarial, correct, and misclassified viewpoints. ",
479
+ "bbox": [
480
+ 173,
481
+ 575,
482
+ 825,
483
+ 688
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "We evaluate robust adversarial examples in the 2D and 3D case, and furthermore, we evaluate physical-world 3D adversarial objects. The two cases are fundamentally different. In the virtual case, we know that we want to construct adversarial examples robust over a certain distribution of transformations, and we can simply use EOT over that distribution to synthesize a robust adversarial example. In the case of the physical world, however, we cannot capture the exact distribution unless we perfectly model all physical phenomena. Therefore, we must approximate the distribution and perform EOT over the proxy distribution. This works well in practice for producing adversarial objects that remain adversarial under the “true” physical-world distribution, as we demonstrate. See Appendix A for the exact parameters of the distributions we use in the 2D, 3D simulation, and 3D physical-world cases. In all cases, the various transformation parameters are sampled as continuous random variables from a uniform distribution between the minimum and maximum values given, unless otherwise indicated in Appendix A (i.e. Gaussian noise). ",
490
+ "bbox": [
491
+ 173,
492
+ 694,
493
+ 825,
494
+ 861
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "In our experiments, we use TensorFlow’s standard pre-trained InceptionV3 classifier (Szegedy et al., 2015) which has $7 8 . 0 \\%$ top-1 accuracy on ImageNet. In all of our experiments, we use randomly chosen target classes, and we use EOT to synthesize adversarial examples over a chosen distribution. We measure the $\\ell _ { 2 }$ distance per pixel between the original and adversarial example (in LAB space), and we also measure classification accuracy (percent of randomly sampled viewpoints classified as the true class) and adversariality (percent of randomly sampled viewpoints classified as the adversarial class) for both the original and adversarial example. When working in simulation, we evaluate over a large number of transformations sampled randomly from the distribution; in the physical world, we evaluate over a large number of manually-captured images of our adversarial objects taken over different viewpoints. ",
501
+ "bbox": [
502
+ 174,
503
+ 867,
504
+ 823,
505
+ 924
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "table",
511
+ "img_path": "images/6ed4064bdc1d4deba14427032e88507f29852cc75e767101687b19a8324778fe.jpg",
512
+ "table_caption": [
513
+ "Table 1: Evaluation of 1000 2D adversarial examples with random targets. We evaluate each example over 1000 randomly sampled transformations to calculate classification accuracy and adversariality (percent classified as the adversarial class). "
514
+ ],
515
+ "table_footnote": [],
516
+ "table_body": "<table><tr><td rowspan=\"2\">Images</td><td colspan=\"2\">Classification Accuracy</td><td colspan=\"2\">Adversariality</td><td>l2</td></tr><tr><td>mean</td><td>stdev</td><td>mean</td><td>stdev</td><td>mean</td></tr><tr><td>Original</td><td>70.0%</td><td>36.4%</td><td>0.01%</td><td>0.3%</td><td>N/A</td></tr><tr><td>Adversarial</td><td>0.9%</td><td>2.0%</td><td>96.4%</td><td>4.4%</td><td>5.6 ×10-5</td></tr></table>",
517
+ "bbox": [
518
+ 207,
519
+ 101,
520
+ 787,
521
+ 179
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "image",
527
+ "img_path": "images/8a1365085cfc8403c7fd2cf555137be9d735f49017aa2822c1b4193b33cc2c53.jpg",
528
+ "image_caption": [
529
+ "Figure 2: A 2D adversarial example, showing classifier confidence in true and adversarial classes for original and corresponding adversarial image over randomly sampled poses. "
530
+ ],
531
+ "image_footnote": [],
532
+ "bbox": [
533
+ 194,
534
+ 244,
535
+ 795,
536
+ 481
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "",
543
+ "bbox": [
544
+ 174,
545
+ 546,
546
+ 825,
547
+ 630
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "3.1 ROBUST 2D ADVERSARIAL EXAMPLES ",
554
+ "text_level": 1,
555
+ "bbox": [
556
+ 176,
557
+ 648,
558
+ 485,
559
+ 662
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "In the 2D case, we consider the distribution of transformations that includes rescaling, rotation, lightening or darkening by an additive factor, adding Gaussian noise, and any in-bounds translation of the image. ",
566
+ "bbox": [
567
+ 174,
568
+ 675,
569
+ 825,
570
+ 718
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "We take the first 1000 images in the ImageNet validation set, randomly choose a target class for each image, and use EOT to synthesize an adversarial example that is robust over the chosen distribution. For each adversarial example, we evaluate over 1000 random transformations sampled from the distribution at evaluation time. Table 1 summarizes the results. On average, the adversarial examples have an adversariality of $9 6 . 4 \\%$ , showing that our approach is highly effective in producing robust adversarial examples. Figure 2 shows an example of a synthesized adversarial example, along with the classification confidence in true and adversarial classes for original and corresponding adversarial images. See Appendix B for more examples. ",
577
+ "bbox": [
578
+ 174,
579
+ 724,
580
+ 825,
581
+ 835
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "3.2 ROBUST 3D ADVERSARIAL EXAMPLES ",
588
+ "text_level": 1,
589
+ "bbox": [
590
+ 176,
591
+ 854,
592
+ 485,
593
+ 869
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "We produce 3D adversarial examples by modeling the 3D rendering as a transformation under EOT. Given a textured 3D object, we optimize over the texture such that the rendering is adversarial from any viewpoint. We consider a distribution that incorporates different camera distances, lateral translation, rotation of the object, and solid background colors. We approximate the expectation over transformation by taking the mean loss over batches of size 40; furthermore, due to the computational expense of computing a batch, we reuse up to $80 \\%$ of the batch at each iteration, but enforce that each batch contain at least 8 new images. As previously mentioned, the parameters of the distribution we use is specified in Appendix A, sampled as independent continuous random variables (that are uniform except for Gaussian noise). ",
600
+ "bbox": [
601
+ 176,
602
+ 882,
603
+ 823,
604
+ 924
605
+ ],
606
+ "page_idx": 4
607
+ },
608
+ {
609
+ "type": "table",
610
+ "img_path": "images/688baa71546e46332901536953bcde0916ac2bde68e5e267bb8e9d19cdbd409c.jpg",
611
+ "table_caption": [
612
+ "Table 2: Evaluation of 200 3D adversarial examples with random targets. We evaluate each example over 100 randomly sampled poses to calculate classification accuracy and adversariality (percent classified as the adversarial class). "
613
+ ],
614
+ "table_footnote": [],
615
+ "table_body": "<table><tr><td rowspan=\"2\">Images</td><td colspan=\"2\">Classification Accuracy</td><td colspan=\"2\">Adversariality</td><td>l</td></tr><tr><td>mean</td><td>stdev</td><td>mean</td><td>stdev</td><td>mean</td></tr><tr><td>Original</td><td>68.8%</td><td>31.2%</td><td>0.01%</td><td>0.1%</td><td>N/A</td></tr><tr><td>Adversarial</td><td>1.1%</td><td>3.1%</td><td>83.4%</td><td>21.7%</td><td>5.9 ×10-3</td></tr></table>",
616
+ "bbox": [
617
+ 205,
618
+ 101,
619
+ 789,
620
+ 179
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "image",
626
+ "img_path": "images/1cf2978cb6d307e968db9ecc20ecdbb43bcd09fc113e3588f289f279b20e61d3.jpg",
627
+ "image_caption": [
628
+ "Figure 3: A 3D adversarial example, showing classifier confidence in true and adversarial classes for original and corresponding adversarial object over randomly sampled poses. "
629
+ ],
630
+ "image_footnote": [],
631
+ "bbox": [
632
+ 197,
633
+ 244,
634
+ 797,
635
+ 477
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "",
642
+ "bbox": [
643
+ 173,
644
+ 544,
645
+ 825,
646
+ 627
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "We consider 10 complex 3D models, choose 20 random target classes per 3D model, and use EOT to synthesize adversarial textures for the 3D models with minimal parameter search (four constant, pre-chosen $\\lambda$ values were tested across each [3D model, target] pair). For each of the 200 adversarial examples, we sample 100 random transformations from the distribution at evaluation time. Table 2 summarizes results, and Figure 3 shows renderings of drawn samples with classification probabilities. See Appendix C for more examples. ",
653
+ "bbox": [
654
+ 174,
655
+ 635,
656
+ 823,
657
+ 718
658
+ ],
659
+ "page_idx": 5
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "The simulated adversarial object have an average adversariality of $8 3 . 4 \\%$ with a long left tail, showing that EOT usually produces highly adversarial objects. See Appendix C for a plot of the distribution. ",
664
+ "bbox": [
665
+ 174,
666
+ 724,
667
+ 823,
668
+ 767
669
+ ],
670
+ "page_idx": 5
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "3.3 PHYSICAL ADVERSARIAL EXAMPLES ",
675
+ "text_level": 1,
676
+ "bbox": [
677
+ 176,
678
+ 785,
679
+ 473,
680
+ 800
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "In order to fabricate physical-world adversarial examples, beyond modeling the 3D rendering process, we need to model physical-world phenomena such as lighting effects and camera noise. Furthermore, we need to model the 3D printing process: in our case, we use commercially available full-color 3D printing. With the 3D printing technology we use, we find that color accuracy varies between prints, so we model printing errors as well. We approximate all of these phenomena by a distribution of transformations under EOT. In addition to the transformations considered for 3D in simulation, we consider camera noise, additive and multiplicative lighting, and per-channel color inaccuracies. ",
687
+ "bbox": [
688
+ 174,
689
+ 811,
690
+ 825,
691
+ 924
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "image",
697
+ "img_path": "images/0ce2a65d6a0c86019a0fd73535135727a2d3d4663220c6b525796904fe6f4d8d.jpg",
698
+ "image_caption": [
699
+ "Figure 4: A sample of photos of unperturbed 3D prints. The unperturbed 3D-printed objects are consistently classified as the true class. "
700
+ ],
701
+ "image_footnote": [],
702
+ "bbox": [
703
+ 243,
704
+ 104,
705
+ 753,
706
+ 319
707
+ ],
708
+ "page_idx": 6
709
+ },
710
+ {
711
+ "type": "table",
712
+ "img_path": "images/5996b8ac8a642b4784fb400b8379580331bb6828941430a09f151bcf512ef2c6.jpg",
713
+ "table_caption": [],
714
+ "table_footnote": [],
715
+ "table_body": "<table><tr><td>Object</td><td>Adversarial</td><td>Misclassified</td><td>Correct</td></tr><tr><td>Turtle</td><td>82%</td><td>16%</td><td>2%</td></tr><tr><td>Baseball</td><td>59%</td><td>31%</td><td>10%</td></tr></table>",
716
+ "bbox": [
717
+ 292,
718
+ 375,
719
+ 699,
720
+ 434
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "Table 3: Quantitative analysis of the two adversarial objects, over 100 photos of each object over a wide distribution of viewpoints. Both objects are classified as the adversarial target class in the majority of viewpoints. ",
727
+ "bbox": [
728
+ 174,
729
+ 444,
730
+ 823,
731
+ 486
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "We evaluate physical adversarial examples over two 3D-printed objets: one of a turtle (where we consider any of the 5 turtle classes in ImageNet as the “true” class), and one of a baseball. The unperturbed 3D-printed objects are correctly classified as the true class with $100 \\%$ accuracy over a large number of samples. Figure 4 shows example photographs of unperturbed objects, along with their classifications. ",
738
+ "bbox": [
739
+ 174,
740
+ 515,
741
+ 825,
742
+ 584
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "We choose target classes for each of the 3D models at random — “rifle” for the turtle, and “espresso” for the baseball — and we use EOT to synthesize adversarial examples. We evaluate the performance of our two 3D-printed adversarial objects by taking 100 photos of each object over a variety of viewpoints1. Figure 5 shows a random sample of these images, along with their classifications. Table 3 gives a quantitative analysis over all images, showing that our 3D-printed adversarial objects are strongly adversarial over a wide distribution of transformations. See Appendix D for more examples. ",
749
+ "bbox": [
750
+ 174,
751
+ 592,
752
+ 825,
753
+ 689
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "3.4 DISCUSSION ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 176,
763
+ 709,
764
+ 302,
765
+ 724
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "The results and quantative analysis in this section demonstrate the efficacy of EOT and confirm the existence of physical adversarial examples. Here, we perform a qualitative analysis of the results: ",
772
+ "bbox": [
773
+ 174,
774
+ 737,
775
+ 823,
776
+ 766
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Modeling Perception. The EOT algorithm as presented in Section 2 presents a general method to construct adversarial examples over a chosen perceptual distribution, but notably gives no guarantees for observations of the image outside of the chosen distribution. In constructing physical-world adversarial objects, we use a crude, high-variance approximation of the rendering and capture process, and this succeeds in ensuring robustness to a diverse set of environments; see, for example, Figure 6, which shows the same adversarial turtle in vastly different environments. In specialized domains, however, a domain expert may opt to model the perceptual distribution precisely in order to better constrain the search space. ",
783
+ "bbox": [
784
+ 174,
785
+ 784,
786
+ 825,
787
+ 868
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "image",
793
+ "img_path": "images/2d838726c5c8ee8f55c20ec69eb7940cf0838e9a4739614e4b6be8128e2a551c.jpg",
794
+ "image_caption": [
795
+ "Figure 5: Random sample of photographs of the two 3D-printed adversarial objects. The 3Dprinted adversarial objects are strongly adversarial over a wide distribution of viewpoints. "
796
+ ],
797
+ "image_footnote": [],
798
+ "bbox": [
799
+ 179,
800
+ 126,
801
+ 820,
802
+ 861
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "image",
808
+ "img_path": "images/5868a039d1fd427be0e20aaccff39f6ed047d81f56294c207a550fa80938aaca.jpg",
809
+ "image_caption": [
810
+ "Figure 6: Three pictures of the same adversarial turtle (all classified as “rifle”), demonstrating the need for a wide distribution, and the efficacy of EOT in finding examples robust across wide distributions of physical-world effects like lighting. "
811
+ ],
812
+ "image_footnote": [],
813
+ "bbox": [
814
+ 297,
815
+ 101,
816
+ 696,
817
+ 203
818
+ ],
819
+ "page_idx": 8
820
+ },
821
+ {
822
+ "type": "image",
823
+ "img_path": "images/7680637ccd673478b874fc51b0f957fc4bba607403fde58f404df0cfd76e6021.jpg",
824
+ "image_caption": [
825
+ "Figure 7: A side-by-side comparison of a 3D-printed model (left) along with a printout of the corresponding texture, printed on a standard laser color printer (center) and the original digital texture (right), showing significant error in color accuracy in printing. "
826
+ ],
827
+ "image_footnote": [],
828
+ "bbox": [
829
+ 297,
830
+ 272,
831
+ 696,
832
+ 375
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "",
839
+ "bbox": [
840
+ 174,
841
+ 457,
842
+ 820,
843
+ 486
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Error in Printing. We also find significant error in the color accuracy of even state of the art commercially available color 3D printing; Figure 7 shows a comparison of a 3D-printed model along with a printout of the model’s texture, printed on a standard laser color printer. Still, EOT was able to overcome the problem and produce robust physical-world adversarial objects. We predict that we could have produced adversarial examples with smaller $\\ell _ { 2 }$ perturbation with a higher-fidelity printing process. ",
850
+ "bbox": [
851
+ 174,
852
+ 501,
853
+ 825,
854
+ 585
855
+ ],
856
+ "page_idx": 8
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Semantically Relevant Misclassification. Interestingly, for the majority of viewpoints where the adversarial target class is not the top-1 predicted class, the classifier also fails to correctly predict the source class. Instead, we find that the classifier often classifies the object as an object that is semantically similar to the adversarial target; while generating the adversarial turtle to be classified as a rifle, for example, the second most popular class (after “rifle”) was “revolver,” followed by “holster” and then “assault rifle.” Similarly, when generating the baseball to be classified as an espresso, the example was often classified as “coffee” or “bakery”. ",
861
+ "bbox": [
862
+ 173,
863
+ 599,
864
+ 825,
865
+ 698
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "4 RELATED WORK ",
872
+ "text_level": 1,
873
+ "bbox": [
874
+ 176,
875
+ 718,
876
+ 344,
877
+ 733
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "State of the art neural networks are vulnerable to adversarial examples (Szegedy et al., 2013). Researchers have proposed a number of methods for synthesizing adversarial examples in the whitebox scenario (with access to the gradient of the classifier), including L-BFGS (Szegedy et al., 2013), the Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2015), and a Lagrangian relaxation formulation (Carlini & Wagner, 2017), all for the single-viewpoint case where the adversary directly controls the input to the neural network. Projected Gradient Descent (PGD) can be seen as a universal first-order adversary (Madry et al., 2017). ",
884
+ "bbox": [
885
+ 173,
886
+ 750,
887
+ 823,
888
+ 847
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Moosavi-Dezfooli et al. (2017) show the existence of universal (image-agnostic) adversarial perturbations, small perturbation vectors that can be applied to any image to induce misclassification. Their paper proposes an algorithm that finds perturbations that are universal over images; in our work, we give an algorithm that finds a perturbation to a single image or object that is universal over a chosen distribution of transformations. In preliminary experiments, we found that universal adversarial perturbations, like standard adversarial perturbations to single images, are not inherently robust to transformation. ",
895
+ "bbox": [
896
+ 174,
897
+ 854,
898
+ 823,
899
+ 924
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "",
906
+ "bbox": [
907
+ 173,
908
+ 103,
909
+ 821,
910
+ 131
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "In the first work on 2D physical-world adversarial examples, Kurakin et al. (2016) demonstrate the transferability of FGSM-generated adversarial misclassification on a printed page. In their setup, a photo is taken of a printed image with QR code guides, and the resultant image is warped, cropped, and resized to become a square of the same size as the source image before classifying it. Their results show the existence of 2D physical-world adversarial examples for approximately axis-aligned views, demonstrating that adversarial perturbations produced using FGSM can translate to the physical world and are robust to camera noise, rescaling, and lighting effects. Kurakin et al. (2016) do not synthesize targeted physical-world adversarial examples, they do not evaluate other real-world 2D transformations such as rotation, skew, translation, or zoom, and their approach does not translate to the 3D case. ",
917
+ "bbox": [
918
+ 174,
919
+ 138,
920
+ 825,
921
+ 277
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Sharif et al. (2016) develop a real-world adversarial attack on a state-of-the-art face recognition algorithm, where adversarial eyeglass frames cause targeted misclassification in portrait photos. The algorithm produces robust perturbations through optimizing over a fixed set of inputs: the attacker collects a set of images and finds a perturbation that minimizes cross entropy loss over the set. The algorithm solves a different problem than we do in our work: it produces adversarial perturbations universal over portrait photos taken head-on from a single viewpoint, while EOT produces 2D/3D adversarial examples robust over transformations. The approach also includes a mechanism for enhancing perturbations’ printability using a color map to address the limited color gamut and color inaccuracy of the printer. Note that this differs from our approach in achieving printability: rather than creating a color map, we find an adversarial example that is robust to color inaccuracy. Our approach has the advantage of working in settings where color accuracy varies between prints, as was the case with our 3D-printer. ",
928
+ "bbox": [
929
+ 174,
930
+ 285,
931
+ 825,
932
+ 450
933
+ ],
934
+ "page_idx": 9
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Recently, Evtimov et al. (2017) proposed a method for generating robust physical-world adversarial examples in the 2D case by optimizing over a fixed set of manually-captured images. However, the approach is limited to the 2D case, with no clear translation to 3D, where there is no simple mapping between what the adversary controls (the texture) and the observed input to the classifier (an image). Furthermore, the approach requires the taking and preprocessing of a large number of photos in order to produce each adversarial example, which may be expensive or even infeasible for many objects. ",
939
+ "bbox": [
940
+ 174,
941
+ 458,
942
+ 825,
943
+ 555
944
+ ],
945
+ "page_idx": 9
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Lu et al. (2017) argued that adversarial examples may not be a practical concern in physical-world systems because adversarial examples generated for the single viewpoint case lose adversariality at viewpoints with differing scale and rotation. While this is the case with standard adversarial examples as evaluated in the paper and in Luo et al. (2016), we have shown that with EOT, it is in fact possible to construct physical-world adversarial images and objects that are classified as a chosen target class over a wide range of viewpoints. ",
950
+ "bbox": [
951
+ 174,
952
+ 563,
953
+ 825,
954
+ 646
955
+ ],
956
+ "page_idx": 9
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "5 CONCLUSION ",
961
+ "text_level": 1,
962
+ "bbox": [
963
+ 176,
964
+ 667,
965
+ 318,
966
+ 683
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "Our work shows that adversarial examples pose a practical threat to systems using neural networkbased image classifiers. By introducing EOT, a general-purpose algorithm for creating robust adversarial examples under any chosen distribution, and modeling 3D rendering and printing within the framework of EOT, we succeed in fabricating three-dimensional adversarial objects. With access only to low-cost commercially available 3D printing technology, we successfully print physical adversarial objects that are strongly classified as a chosen target class over a variety of angles, viewpoints, and lighting conditions by a standard ImageNet classifier. ",
973
+ "bbox": [
974
+ 174,
975
+ 699,
976
+ 825,
977
+ 797
978
+ ],
979
+ "page_idx": 9
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "REFERENCES ",
984
+ "text_level": 1,
985
+ "bbox": [
986
+ 176,
987
+ 819,
988
+ 285,
989
+ 833
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In IEEE Symposium on Security & Privacy, 2017. ",
996
+ "bbox": [
997
+ 174,
998
+ 843,
999
+ 825,
1000
+ 871
1001
+ ],
1002
+ "page_idx": 9
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust Physical-World Attacks on Deep Learning Models. 2017. URL https://arxiv.org/abs/1707.08945. ",
1007
+ "bbox": [
1008
+ 176,
1009
+ 881,
1010
+ 823,
1011
+ 922
1012
+ ],
1013
+ "page_idx": 9
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations (ICLR), 2015. ",
1018
+ "bbox": [
1019
+ 173,
1020
+ 103,
1021
+ 823,
1022
+ 146
1023
+ ],
1024
+ "page_idx": 10
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. 2016. URL https://arxiv.org/abs/1607.02533. ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 155,
1032
+ 823,
1033
+ 184
1034
+ ],
1035
+ "page_idx": 10
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Jiajun Lu, Hussein Sibai, Evan Fabry, and David Forsyth. No need to worry about adversarial examples in object detection in autonomous vehicles. 2017. URL https://arxiv.org/ abs/1707.03501. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 193,
1043
+ 823,
1044
+ 234
1045
+ ],
1046
+ "page_idx": 10
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Yan Luo, Xavier Boix, Gemma Roig, Tomaso Poggio, and Qi Zhao. Foveation-based mechanisms alleviate adversarial examples. 2016. URL https://arxiv.org/abs/1511.06292. ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 244,
1054
+ 823,
1055
+ 273
1056
+ ],
1057
+ "page_idx": 10
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. 2017. URL https://arxiv. org/abs/1706.06083. ",
1062
+ "bbox": [
1063
+ 174,
1064
+ 281,
1065
+ 820,
1066
+ 324
1067
+ ],
1068
+ "page_idx": 10
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
1073
+ "bbox": [
1074
+ 173,
1075
+ 333,
1076
+ 823,
1077
+ 376
1078
+ ],
1079
+ "page_idx": 10
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K. Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, CCS ’16, pp. 1528–1540, New York, NY, USA, 2016. ACM. ISBN 978-1-4503-4139-4. doi: 10.1145/2976749.2978392. URL http://doi.acm.org/10.1145/2976749.2978392. ",
1084
+ "bbox": [
1085
+ 173,
1086
+ 385,
1087
+ 825,
1088
+ 455
1089
+ ],
1090
+ "page_idx": 10
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. 2013. URL https://arxiv.org/ abs/1312.6199. ",
1095
+ "bbox": [
1096
+ 174,
1097
+ 464,
1098
+ 823,
1099
+ 507
1100
+ ],
1101
+ "page_idx": 10
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. 2015. URL https://arxiv.org/ abs/1512.00567. ",
1106
+ "bbox": [
1107
+ 171,
1108
+ 516,
1109
+ 823,
1110
+ 559
1111
+ ],
1112
+ "page_idx": 10
1113
+ },
1114
+ {
1115
+ "type": "table",
1116
+ "img_path": "images/9af007c8eb8a825902b0157af886e7166f6386a70f020a0a457dc3ca4e09073e.jpg",
1117
+ "table_caption": [
1118
+ "Table 4: Distribution of transformations for the 2D case, where each parameter is sampled uniformly at random from the specified range. "
1119
+ ],
1120
+ "table_footnote": [],
1121
+ "table_body": "<table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Scale</td><td>0.9</td><td>1.4</td></tr><tr><td>Rotation</td><td>-22.5°</td><td>22.5°</td></tr><tr><td>Lighten /Darken</td><td>-0.05</td><td>0.05</td></tr><tr><td>Gaussian Noise (stdev)</td><td>0.0</td><td>0.1</td></tr><tr><td>Translation</td><td colspan=\"2\">any in-bounds</td></tr></table>",
1122
+ "bbox": [
1123
+ 320,
1124
+ 101,
1125
+ 676,
1126
+ 200
1127
+ ],
1128
+ "page_idx": 11
1129
+ },
1130
+ {
1131
+ "type": "table",
1132
+ "img_path": "images/7e06c801799777460e530df13b67db30fa694732e4768c870b632a8f33debafd.jpg",
1133
+ "table_caption": [],
1134
+ "table_footnote": [],
1135
+ "table_body": "<table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Camera distance</td><td>2.5</td><td>3.0</td></tr><tr><td>X/Y translation</td><td>-0.05</td><td>0.05</td></tr><tr><td>Rotation</td><td>any</td><td></td></tr><tr><td>Background</td><td>(0.1, 0.1, 0.1)</td><td>(1.0, 1.0, 1.0)</td></tr></table>",
1136
+ "bbox": [
1137
+ 321,
1138
+ 258,
1139
+ 671,
1140
+ 345
1141
+ ],
1142
+ "page_idx": 11
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Table 5: Distribution of transformations for the 3D case when working in simulation, where each parameter is sampled uniformly at random from the specified range. ",
1147
+ "bbox": [
1148
+ 171,
1149
+ 356,
1150
+ 825,
1151
+ 385
1152
+ ],
1153
+ "page_idx": 11
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "A DISTRIBUTIONS OF TRANSFORMATIONS ",
1158
+ "text_level": 1,
1159
+ "bbox": [
1160
+ 176,
1161
+ 416,
1162
+ 544,
1163
+ 433
1164
+ ],
1165
+ "page_idx": 11
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Under the EOT framework, we must choose a distribution of transformations, and the optimization produces an adversarial example that is robust under the distribution of transformations. Here, we give the specific parameters we chose in the 2D (Table 4), 3D (Table 5), and physical-world case (Table 6). ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 452,
1173
+ 825,
1174
+ 508
1175
+ ],
1176
+ "page_idx": 11
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "B ROBUST 2D ADVERSARIAL EXAMPLES ",
1181
+ "text_level": 1,
1182
+ "bbox": [
1183
+ 174,
1184
+ 536,
1185
+ 534,
1186
+ 554
1187
+ ],
1188
+ "page_idx": 11
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "We give a random sample out of our 1000 2D adversarial examples in Figures 8 and 9. ",
1193
+ "bbox": [
1194
+ 174,
1195
+ 574,
1196
+ 738,
1197
+ 589
1198
+ ],
1199
+ "page_idx": 11
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "C ROBUST 3D ADVERSARIAL EXAMPLES ",
1204
+ "text_level": 1,
1205
+ "bbox": [
1206
+ 174,
1207
+ 617,
1208
+ 535,
1209
+ 633
1210
+ ],
1211
+ "page_idx": 11
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "We give a random sample out of our 200 3D adversarial examples in Figures 10 and 11 and 12. We give a histogram of adversariality (percent classified as the adversarial class) over all 200 examples in Figure 13. ",
1216
+ "bbox": [
1217
+ 176,
1218
+ 654,
1219
+ 825,
1220
+ 696
1221
+ ],
1222
+ "page_idx": 11
1223
+ },
1224
+ {
1225
+ "type": "table",
1226
+ "img_path": "images/c8b0712f4c0d656a72060882cc4cc7afc26eec7182cc14a9e6282e2def3dba51.jpg",
1227
+ "table_caption": [],
1228
+ "table_footnote": [
1229
+ "Table 6: Distribution of transformations for the physical-world 3D case, approximating rendering, physical-world phenomena, and printing error. "
1230
+ ],
1231
+ "table_body": "<table><tr><td>Transformation</td><td>Minimum</td><td>Maximum</td></tr><tr><td>Camera distance</td><td>2.5</td><td>3.0</td></tr><tr><td>X/Y translation</td><td>-0.05</td><td>0.05</td></tr><tr><td>Rotation</td><td>any</td><td></td></tr><tr><td>Background</td><td>(0.1, 0.1, 0.1)</td><td>(1.0, 1.0, 1.0)</td></tr><tr><td>Lighten /Darken (additive)</td><td>-0.15</td><td>0.15</td></tr><tr><td>Lighten /Darken (multiplicative)</td><td>0.5</td><td>2.0</td></tr><tr><td>Per-channel (additive)</td><td>-0.15</td><td>0.15</td></tr><tr><td>Per-channel (multiplicative)</td><td>0.7</td><td>1.3</td></tr><tr><td>Gaussian Noise (stdev)</td><td>0.0</td><td>0.1</td></tr></table>",
1232
+ "bbox": [
1233
+ 267,
1234
+ 727,
1235
+ 725,
1236
+ 882
1237
+ ],
1238
+ "page_idx": 11
1239
+ },
1240
+ {
1241
+ "type": "image",
1242
+ "img_path": "images/b083ea72bfac9f4868888f30c3c69dd4a49ec8ff2c8e79b652ea528b891770cb.jpg",
1243
+ "image_caption": [
1244
+ "Figure 8: A random sample of 2D adversarial examples. "
1245
+ ],
1246
+ "image_footnote": [],
1247
+ "bbox": [
1248
+ 196,
1249
+ 136,
1250
+ 807,
1251
+ 852
1252
+ ],
1253
+ "page_idx": 12
1254
+ },
1255
+ {
1256
+ "type": "image",
1257
+ "img_path": "images/f0f817fd8983b1e1d4054c974e670dd80c5166c6dac2cf13472fe01de10cd927.jpg",
1258
+ "image_caption": [
1259
+ "Figure 9: A random sample of 2D adversarial examples. "
1260
+ ],
1261
+ "image_footnote": [],
1262
+ "bbox": [
1263
+ 194,
1264
+ 142,
1265
+ 825,
1266
+ 849
1267
+ ],
1268
+ "page_idx": 13
1269
+ },
1270
+ {
1271
+ "type": "image",
1272
+ "img_path": "images/ed727815dd9fc97ab760d41d0cd4b6c21479351d5269e868470b0cd22de36447.jpg",
1273
+ "image_caption": [],
1274
+ "image_footnote": [],
1275
+ "bbox": [
1276
+ 331,
1277
+ 140,
1278
+ 431,
1279
+ 217
1280
+ ],
1281
+ "page_idx": 14
1282
+ },
1283
+ {
1284
+ "type": "image",
1285
+ "img_path": "images/c6f2063325c3f07b635032ee0c16b39697e906d77447ea490acbee04d5767b64.jpg",
1286
+ "image_caption": [],
1287
+ "image_footnote": [],
1288
+ "bbox": [
1289
+ 450,
1290
+ 141,
1291
+ 552,
1292
+ 217
1293
+ ],
1294
+ "page_idx": 14
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "P (true): 96% P (adv): 0% ",
1299
+ "bbox": [
1300
+ 331,
1301
+ 219,
1302
+ 429,
1303
+ 247
1304
+ ],
1305
+ "page_idx": 14
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "P (true): 99% P (adv): 0% ",
1310
+ "bbox": [
1311
+ 454,
1312
+ 219,
1313
+ 550,
1314
+ 247
1315
+ ],
1316
+ "page_idx": 14
1317
+ },
1318
+ {
1319
+ "type": "image",
1320
+ "img_path": "images/4cf3233d10102773051dc716a7368d5ab8850e906521a1b690ab87971dd83841.jpg",
1321
+ "image_caption": [],
1322
+ "image_footnote": [],
1323
+ "bbox": [
1324
+ 571,
1325
+ 141,
1326
+ 671,
1327
+ 218
1328
+ ],
1329
+ "page_idx": 14
1330
+ },
1331
+ {
1332
+ "type": "image",
1333
+ "img_path": "images/7515ed6a492794f537c1cc35e8dd4a29b2a68b15dabe753c0156aa14106740a7.jpg",
1334
+ "image_caption": [],
1335
+ "image_footnote": [],
1336
+ "bbox": [
1337
+ 692,
1338
+ 141,
1339
+ 794,
1340
+ 218
1341
+ ],
1342
+ "page_idx": 14
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "P (true): 96% P (adv): 0% ",
1347
+ "bbox": [
1348
+ 573,
1349
+ 219,
1350
+ 669,
1351
+ 247
1352
+ ],
1353
+ "page_idx": 14
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "P (true): 97% P (adv): 0% ",
1358
+ "bbox": [
1359
+ 694,
1360
+ 219,
1361
+ 790,
1362
+ 247
1363
+ ],
1364
+ "page_idx": 14
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Adversarial: \nguillotine \n\\`2 = 3.1 × 10−5 ",
1369
+ "bbox": [
1370
+ 196,
1371
+ 276,
1372
+ 308,
1373
+ 319
1374
+ ],
1375
+ "page_idx": 14
1376
+ },
1377
+ {
1378
+ "type": "image",
1379
+ "img_path": "images/54725ecf42ea0dc7381f3cf3c3f859630c7958461ff2b8481e04ec046fcab82e.jpg",
1380
+ "image_caption": [],
1381
+ "image_footnote": [],
1382
+ "bbox": [
1383
+ 330,
1384
+ 256,
1385
+ 431,
1386
+ 332
1387
+ ],
1388
+ "page_idx": 14
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "P (true): 1% P (adv): 10% ",
1393
+ "bbox": [
1394
+ 334,
1395
+ 335,
1396
+ 426,
1397
+ 363
1398
+ ],
1399
+ "page_idx": 14
1400
+ },
1401
+ {
1402
+ "type": "image",
1403
+ "img_path": "images/8fd61dc806d9100aa12ab70aa0390d56a6b914ea4e50edcd9b099b652ae752cb.jpg",
1404
+ "image_caption": [],
1405
+ "image_footnote": [],
1406
+ "bbox": [
1407
+ 450,
1408
+ 256,
1409
+ 552,
1410
+ 332
1411
+ ],
1412
+ "page_idx": 14
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "P (true): 0% P (adv): 95% ",
1417
+ "bbox": [
1418
+ 455,
1419
+ 335,
1420
+ 547,
1421
+ 363
1422
+ ],
1423
+ "page_idx": 14
1424
+ },
1425
+ {
1426
+ "type": "image",
1427
+ "img_path": "images/daf5e022f68af61c84a6bccf67e1347bf62cd13906f887400733c8b202810466.jpg",
1428
+ "image_caption": [],
1429
+ "image_footnote": [],
1430
+ "bbox": [
1431
+ 571,
1432
+ 256,
1433
+ 671,
1434
+ 333
1435
+ ],
1436
+ "page_idx": 14
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "P (true): 0% P (adv): 91% ",
1441
+ "bbox": [
1442
+ 575,
1443
+ 335,
1444
+ 668,
1445
+ 363
1446
+ ],
1447
+ "page_idx": 14
1448
+ },
1449
+ {
1450
+ "type": "image",
1451
+ "img_path": "images/474cab26c2ad858b19ed19a9311ee4b9ffcbfd7636be1d0624df670ca2b536fe.jpg",
1452
+ "image_caption": [],
1453
+ "image_footnote": [],
1454
+ "bbox": [
1455
+ 692,
1456
+ 256,
1457
+ 794,
1458
+ 333
1459
+ ],
1460
+ "page_idx": 14
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "P (true): 3% P (adv): 4% ",
1465
+ "bbox": [
1466
+ 697,
1467
+ 335,
1468
+ 787,
1469
+ 363
1470
+ ],
1471
+ "page_idx": 14
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Original: baseball ",
1476
+ "bbox": [
1477
+ 222,
1478
+ 404,
1479
+ 282,
1480
+ 431
1481
+ ],
1482
+ "page_idx": 14
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "P (true): 100% P (adv): 0% ",
1487
+ "bbox": [
1488
+ 338,
1489
+ 450,
1490
+ 423,
1491
+ 492
1492
+ ],
1493
+ "page_idx": 14
1494
+ },
1495
+ {
1496
+ "type": "image",
1497
+ "img_path": "images/446ebf8f295c43d48bb077f813088cceaa533e663bb7e9d921c7cbd3a4a523e8.jpg",
1498
+ "image_caption": [],
1499
+ "image_footnote": [],
1500
+ "bbox": [
1501
+ 450,
1502
+ 371,
1503
+ 552,
1504
+ 449
1505
+ ],
1506
+ "page_idx": 14
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "P (true): 100% P (adv): 0% ",
1511
+ "bbox": [
1512
+ 459,
1513
+ 450,
1514
+ 544,
1515
+ 492
1516
+ ],
1517
+ "page_idx": 14
1518
+ },
1519
+ {
1520
+ "type": "image",
1521
+ "img_path": "images/5801cd3b24e8979b4b93b46ce27a6964716fc3c454e51bf9ccf090205d092684.jpg",
1522
+ "image_caption": [],
1523
+ "image_footnote": [],
1524
+ "bbox": [
1525
+ 571,
1526
+ 371,
1527
+ 671,
1528
+ 449
1529
+ ],
1530
+ "page_idx": 14
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "P (true): 100% P (adv): 0% ",
1535
+ "bbox": [
1536
+ 580,
1537
+ 450,
1538
+ 665,
1539
+ 492
1540
+ ],
1541
+ "page_idx": 14
1542
+ },
1543
+ {
1544
+ "type": "image",
1545
+ "img_path": "images/c1a6f0835e8c8f8a5c5fc2ccf9378302270b489b6e4166a1ab5a5864fe7f68ae.jpg",
1546
+ "image_caption": [],
1547
+ "image_footnote": [],
1548
+ "bbox": [
1549
+ 692,
1550
+ 371,
1551
+ 794,
1552
+ 449
1553
+ ],
1554
+ "page_idx": 14
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "P (true): 100% P (adv): 0% ",
1559
+ "bbox": [
1560
+ 699,
1561
+ 450,
1562
+ 784,
1563
+ 492
1564
+ ],
1565
+ "page_idx": 14
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "Adversarial: \ngreen lizard \n\\`2 = 2.9 × 10−5 ",
1570
+ "bbox": [
1571
+ 196,
1572
+ 521,
1573
+ 308,
1574
+ 563
1575
+ ],
1576
+ "page_idx": 14
1577
+ },
1578
+ {
1579
+ "type": "image",
1580
+ "img_path": "images/b8cae5f69364c82edf35080f1259de8117c87c2ebc06e60fe98d2323ade5ad3f.jpg",
1581
+ "image_caption": [],
1582
+ "image_footnote": [],
1583
+ "bbox": [
1584
+ 330,
1585
+ 500,
1586
+ 431,
1587
+ 577
1588
+ ],
1589
+ "page_idx": 14
1590
+ },
1591
+ {
1592
+ "type": "image",
1593
+ "img_path": "images/cd986a37a5e612d93931ce84585be956cec7ce04e63438e588371e7e2c12a2ee.jpg",
1594
+ "image_caption": [
1595
+ "Figure 10: A random sample of 3D adversarial examples. "
1596
+ ],
1597
+ "image_footnote": [],
1598
+ "bbox": [
1599
+ 328,
1600
+ 371,
1601
+ 431,
1602
+ 449
1603
+ ],
1604
+ "page_idx": 14
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "P (true): 0% P (adv): 66% ",
1609
+ "bbox": [
1610
+ 334,
1611
+ 579,
1612
+ 426,
1613
+ 607
1614
+ ],
1615
+ "page_idx": 14
1616
+ },
1617
+ {
1618
+ "type": "image",
1619
+ "img_path": "images/a3a7f87be5edcfd09f8959b9e465d1b7734d5164f2d7f81f8941ba5aa235682e.jpg",
1620
+ "image_caption": [],
1621
+ "image_footnote": [],
1622
+ "bbox": [
1623
+ 450,
1624
+ 500,
1625
+ 550,
1626
+ 578
1627
+ ],
1628
+ "page_idx": 14
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "P (true): 0% P (adv): 94% ",
1633
+ "bbox": [
1634
+ 455,
1635
+ 579,
1636
+ 547,
1637
+ 607
1638
+ ],
1639
+ "page_idx": 14
1640
+ },
1641
+ {
1642
+ "type": "image",
1643
+ "img_path": "images/1a7be731f6e47133ef61ad9c4d7d80834dc5a12f838d2951ea6bdf17d3db6a9d.jpg",
1644
+ "image_caption": [],
1645
+ "image_footnote": [],
1646
+ "bbox": [
1647
+ 571,
1648
+ 501,
1649
+ 671,
1650
+ 577
1651
+ ],
1652
+ "page_idx": 14
1653
+ },
1654
+ {
1655
+ "type": "text",
1656
+ "text": "P (true): 0% P (adv): 87% ",
1657
+ "bbox": [
1658
+ 575,
1659
+ 579,
1660
+ 668,
1661
+ 607
1662
+ ],
1663
+ "page_idx": 14
1664
+ },
1665
+ {
1666
+ "type": "image",
1667
+ "img_path": "images/c8c03105f7c59ea309bbb24efb5bbbd48af3a326bc24fb8ba8108beb2c9fdee4.jpg",
1668
+ "image_caption": [],
1669
+ "image_footnote": [],
1670
+ "bbox": [
1671
+ 692,
1672
+ 500,
1673
+ 794,
1674
+ 577
1675
+ ],
1676
+ "page_idx": 14
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "P (true): 0% P (adv): 94% ",
1681
+ "bbox": [
1682
+ 696,
1683
+ 579,
1684
+ 789,
1685
+ 606
1686
+ ],
1687
+ "page_idx": 14
1688
+ },
1689
+ {
1690
+ "type": "image",
1691
+ "img_path": "images/f5b8650edd0e56e908f26f6719451967643d51b73b5d96c42f3ec7114124cf94.jpg",
1692
+ "image_caption": [],
1693
+ "image_footnote": [],
1694
+ "bbox": [
1695
+ 452,
1696
+ 622,
1697
+ 550,
1698
+ 691
1699
+ ],
1700
+ "page_idx": 14
1701
+ },
1702
+ {
1703
+ "type": "image",
1704
+ "img_path": "images/47d685b13d576c782a76ea4310002346cc13e74471d60396a67bfb51531a72c1.jpg",
1705
+ "image_caption": [],
1706
+ "image_footnote": [],
1707
+ "bbox": [
1708
+ 692,
1709
+ 616,
1710
+ 794,
1711
+ 693
1712
+ ],
1713
+ "page_idx": 14
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "P (true): 97% P (adv): 0% ",
1718
+ "bbox": [
1719
+ 694,
1720
+ 694,
1721
+ 792,
1722
+ 722
1723
+ ],
1724
+ "page_idx": 14
1725
+ },
1726
+ {
1727
+ "type": "text",
1728
+ "text": "Adversarial: \nBouvier des \nFlandres \n$\\ell _ { 2 } = 1 . 4 \\times 1 0 ^ { - 4 }$ ",
1729
+ "bbox": [
1730
+ 196,
1731
+ 750,
1732
+ 310,
1733
+ 805
1734
+ ],
1735
+ "page_idx": 14
1736
+ },
1737
+ {
1738
+ "type": "text",
1739
+ "text": "Original: baseball ",
1740
+ "bbox": [
1741
+ 222,
1742
+ 179,
1743
+ 282,
1744
+ 205
1745
+ ],
1746
+ "page_idx": 15
1747
+ },
1748
+ {
1749
+ "type": "image",
1750
+ "img_path": "images/249278e25d05f089dd06880dd49751146a6947e241fbe364d0ccdb463743f917.jpg",
1751
+ "image_caption": [],
1752
+ "image_footnote": [],
1753
+ "bbox": [
1754
+ 328,
1755
+ 146,
1756
+ 431,
1757
+ 224
1758
+ ],
1759
+ "page_idx": 15
1760
+ },
1761
+ {
1762
+ "type": "text",
1763
+ "text": "P (true): 100% $P ( a d v ) \\colon 0 \\%$ ",
1764
+ "bbox": [
1765
+ 339,
1766
+ 226,
1767
+ 423,
1768
+ 266
1769
+ ],
1770
+ "page_idx": 15
1771
+ },
1772
+ {
1773
+ "type": "image",
1774
+ "img_path": "images/66e03cb43930ef19e402f0f01e7787aadc51dc8239ed85223e3f8fbdc34dabd1.jpg",
1775
+ "image_caption": [],
1776
+ "image_footnote": [],
1777
+ "bbox": [
1778
+ 452,
1779
+ 146,
1780
+ 552,
1781
+ 223
1782
+ ],
1783
+ "page_idx": 15
1784
+ },
1785
+ {
1786
+ "type": "text",
1787
+ "text": "P (true): 100% P (adv): 0% ",
1788
+ "bbox": [
1789
+ 459,
1790
+ 226,
1791
+ 544,
1792
+ 267
1793
+ ],
1794
+ "page_idx": 15
1795
+ },
1796
+ {
1797
+ "type": "image",
1798
+ "img_path": "images/6bb9dfef8cd85248a240d643c4b9500f131cac1df5328f3c08edc3f29e4fcbcf.jpg",
1799
+ "image_caption": [],
1800
+ "image_footnote": [],
1801
+ "bbox": [
1802
+ 571,
1803
+ 146,
1804
+ 671,
1805
+ 223
1806
+ ],
1807
+ "page_idx": 15
1808
+ },
1809
+ {
1810
+ "type": "text",
1811
+ "text": "P (true): 100% P (adv): 0% ",
1812
+ "bbox": [
1813
+ 580,
1814
+ 226,
1815
+ 663,
1816
+ 267
1817
+ ],
1818
+ "page_idx": 15
1819
+ },
1820
+ {
1821
+ "type": "image",
1822
+ "img_path": "images/e2bbfdc90bb9e85b72a9335652ad544ee2642d4fdf0ec0b23d09248c608a7584.jpg",
1823
+ "image_caption": [],
1824
+ "image_footnote": [],
1825
+ "bbox": [
1826
+ 692,
1827
+ 146,
1828
+ 794,
1829
+ 223
1830
+ ],
1831
+ "page_idx": 15
1832
+ },
1833
+ {
1834
+ "type": "text",
1835
+ "text": "P (true): 100% P (adv): 0% ",
1836
+ "bbox": [
1837
+ 700,
1838
+ 226,
1839
+ 784,
1840
+ 267
1841
+ ],
1842
+ "page_idx": 15
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "Adversarial: \nAiredale \n\\`2 = 3.4 × 10−5 ",
1847
+ "bbox": [
1848
+ 196,
1849
+ 296,
1850
+ 308,
1851
+ 337
1852
+ ],
1853
+ "page_idx": 15
1854
+ },
1855
+ {
1856
+ "type": "image",
1857
+ "img_path": "images/95900f3926ccab52c23ca303bc16c1eed02813c826f1675f2d45b02624161e6e.jpg",
1858
+ "image_caption": [],
1859
+ "image_footnote": [],
1860
+ "bbox": [
1861
+ 330,
1862
+ 275,
1863
+ 431,
1864
+ 353
1865
+ ],
1866
+ "page_idx": 15
1867
+ },
1868
+ {
1869
+ "type": "text",
1870
+ "text": "P (true): $0 \\%$ $P ( a d v ) \\colon 9 4 \\%$ ",
1871
+ "bbox": [
1872
+ 333,
1873
+ 354,
1874
+ 426,
1875
+ 381
1876
+ ],
1877
+ "page_idx": 15
1878
+ },
1879
+ {
1880
+ "type": "image",
1881
+ "img_path": "images/a05c59801466e8c0cf5c36693564fe27616f7a486313b5569b8c4811ee21279b.jpg",
1882
+ "image_caption": [],
1883
+ "image_footnote": [],
1884
+ "bbox": [
1885
+ 452,
1886
+ 275,
1887
+ 552,
1888
+ 352
1889
+ ],
1890
+ "page_idx": 15
1891
+ },
1892
+ {
1893
+ "type": "text",
1894
+ "text": "P (true): 0% P (adv): 6% ",
1895
+ "bbox": [
1896
+ 455,
1897
+ 354,
1898
+ 547,
1899
+ 381
1900
+ ],
1901
+ "page_idx": 15
1902
+ },
1903
+ {
1904
+ "type": "image",
1905
+ "img_path": "images/0d85b317da683e42fe93849c0db9cc79d3ea2e8124cdb3d10ed17f8df82cb1b4.jpg",
1906
+ "image_caption": [],
1907
+ "image_footnote": [],
1908
+ "bbox": [
1909
+ 571,
1910
+ 275,
1911
+ 671,
1912
+ 351
1913
+ ],
1914
+ "page_idx": 15
1915
+ },
1916
+ {
1917
+ "type": "text",
1918
+ "text": "P (true): 0% P (adv): 96% ",
1919
+ "bbox": [
1920
+ 575,
1921
+ 354,
1922
+ 668,
1923
+ 381
1924
+ ],
1925
+ "page_idx": 15
1926
+ },
1927
+ {
1928
+ "type": "image",
1929
+ "img_path": "images/239fdb3245349dc1af9e16b14f520ec7678daa9356f3d0edf4bd37ee369a35b9.jpg",
1930
+ "image_caption": [],
1931
+ "image_footnote": [],
1932
+ "bbox": [
1933
+ 692,
1934
+ 275,
1935
+ 794,
1936
+ 352
1937
+ ],
1938
+ "page_idx": 15
1939
+ },
1940
+ {
1941
+ "type": "text",
1942
+ "text": "P (true): 0% P (adv): 18% ",
1943
+ "bbox": [
1944
+ 696,
1945
+ 354,
1946
+ 789,
1947
+ 381
1948
+ ],
1949
+ "page_idx": 15
1950
+ },
1951
+ {
1952
+ "type": "text",
1953
+ "text": "Original: orange ",
1954
+ "bbox": [
1955
+ 194,
1956
+ 424,
1957
+ 307,
1958
+ 438
1959
+ ],
1960
+ "page_idx": 15
1961
+ },
1962
+ {
1963
+ "type": "text",
1964
+ "text": "P (true): 73% $\\dot { P } ( a d v ) \\colon 0 \\%$ ",
1965
+ "bbox": [
1966
+ 331,
1967
+ 469,
1968
+ 429,
1969
+ 497
1970
+ ],
1971
+ "page_idx": 15
1972
+ },
1973
+ {
1974
+ "type": "image",
1975
+ "img_path": "images/3b9c622a8360406355546717b32d8259f72994852b21e2ffe08b5133db3996a9.jpg",
1976
+ "image_caption": [],
1977
+ "image_footnote": [],
1978
+ "bbox": [
1979
+ 450,
1980
+ 390,
1981
+ 552,
1982
+ 467
1983
+ ],
1984
+ "page_idx": 15
1985
+ },
1986
+ {
1987
+ "type": "text",
1988
+ "text": "P (true): 29% P (adv): 0% ",
1989
+ "bbox": [
1990
+ 452,
1991
+ 469,
1992
+ 550,
1993
+ 497
1994
+ ],
1995
+ "page_idx": 15
1996
+ },
1997
+ {
1998
+ "type": "image",
1999
+ "img_path": "images/6a4c9beddfe761c6bba3f18f1abfcc0ca223dfda977436934cd48abd07d7fd6a.jpg",
2000
+ "image_caption": [],
2001
+ "image_footnote": [],
2002
+ "bbox": [
2003
+ 571,
2004
+ 390,
2005
+ 671,
2006
+ 467
2007
+ ],
2008
+ "page_idx": 15
2009
+ },
2010
+ {
2011
+ "type": "text",
2012
+ "text": "P (true): 20% P (adv): 0% ",
2013
+ "bbox": [
2014
+ 573,
2015
+ 469,
2016
+ 671,
2017
+ 497
2018
+ ],
2019
+ "page_idx": 15
2020
+ },
2021
+ {
2022
+ "type": "image",
2023
+ "img_path": "images/d5d1abe73147d2d10dbda4e5624b9e7dfb7a5e1b5ee787d4a091463cba747ab1.jpg",
2024
+ "image_caption": [],
2025
+ "image_footnote": [],
2026
+ "bbox": [
2027
+ 691,
2028
+ 390,
2029
+ 794,
2030
+ 468
2031
+ ],
2032
+ "page_idx": 15
2033
+ },
2034
+ {
2035
+ "type": "text",
2036
+ "text": "P (true): 85% P (adv): 0% ",
2037
+ "bbox": [
2038
+ 694,
2039
+ 469,
2040
+ 790,
2041
+ 497
2042
+ ],
2043
+ "page_idx": 15
2044
+ },
2045
+ {
2046
+ "type": "text",
2047
+ "text": "Adversarial: power drill $\\ell _ { 2 } = 4 . 3 \\times 1 0 ^ { - 5 }$ ",
2048
+ "bbox": [
2049
+ 196,
2050
+ 526,
2051
+ 308,
2052
+ 568
2053
+ ],
2054
+ "page_idx": 15
2055
+ },
2056
+ {
2057
+ "type": "image",
2058
+ "img_path": "images/eb1b9d31583bd8c3c01ea86cabd1a3d1da86a0485b68f02f976c61a975132d00.jpg",
2059
+ "image_caption": [],
2060
+ "image_footnote": [],
2061
+ "bbox": [
2062
+ 330,
2063
+ 506,
2064
+ 429,
2065
+ 579
2066
+ ],
2067
+ "page_idx": 15
2068
+ },
2069
+ {
2070
+ "type": "text",
2071
+ "text": "P (true): 0% $P ( a d v ) \\colon 8 9 \\%$ ",
2072
+ "bbox": [
2073
+ 334,
2074
+ 584,
2075
+ 426,
2076
+ 612
2077
+ ],
2078
+ "page_idx": 15
2079
+ },
2080
+ {
2081
+ "type": "image",
2082
+ "img_path": "images/ceefc8ab855bea62d9afd910734084e0186d0b5f35c6b4da4978d71ef2e89ad4.jpg",
2083
+ "image_caption": [],
2084
+ "image_footnote": [],
2085
+ "bbox": [
2086
+ 450,
2087
+ 506,
2088
+ 552,
2089
+ 582
2090
+ ],
2091
+ "page_idx": 15
2092
+ },
2093
+ {
2094
+ "type": "image",
2095
+ "img_path": "images/3c3fb815e0066ce35a615779596beb636e43cd985cab46489e5d91c4606ba99c.jpg",
2096
+ "image_caption": [
2097
+ "Figure 11: A random sample of 3D adversarial examples. "
2098
+ ],
2099
+ "image_footnote": [],
2100
+ "bbox": [
2101
+ 330,
2102
+ 390,
2103
+ 429,
2104
+ 463
2105
+ ],
2106
+ "page_idx": 15
2107
+ },
2108
+ {
2109
+ "type": "text",
2110
+ "text": "P (true): 4% P (adv): 75% ",
2111
+ "bbox": [
2112
+ 455,
2113
+ 584,
2114
+ 547,
2115
+ 612
2116
+ ],
2117
+ "page_idx": 15
2118
+ },
2119
+ {
2120
+ "type": "image",
2121
+ "img_path": "images/bcbc07463244d7b2b5fbe8bf013b56b2f5a4d250075fc2233ceb8817d2eeba77.jpg",
2122
+ "image_caption": [],
2123
+ "image_footnote": [],
2124
+ "bbox": [
2125
+ 571,
2126
+ 505,
2127
+ 671,
2128
+ 582
2129
+ ],
2130
+ "page_idx": 15
2131
+ },
2132
+ {
2133
+ "type": "text",
2134
+ "text": "P (true): 0% P (adv): 98% ",
2135
+ "bbox": [
2136
+ 576,
2137
+ 584,
2138
+ 668,
2139
+ 612
2140
+ ],
2141
+ "page_idx": 15
2142
+ },
2143
+ {
2144
+ "type": "image",
2145
+ "img_path": "images/54f666abab66b32348d729e33d0dc873dc9ab5c0c9b70e37eab3f9f8e64229a6.jpg",
2146
+ "image_caption": [],
2147
+ "image_footnote": [],
2148
+ "bbox": [
2149
+ 691,
2150
+ 505,
2151
+ 794,
2152
+ 583
2153
+ ],
2154
+ "page_idx": 15
2155
+ },
2156
+ {
2157
+ "type": "text",
2158
+ "text": "P (true): 0% P (adv): 84% ",
2159
+ "bbox": [
2160
+ 696,
2161
+ 584,
2162
+ 789,
2163
+ 612
2164
+ ],
2165
+ "page_idx": 15
2166
+ },
2167
+ {
2168
+ "type": "image",
2169
+ "img_path": "images/cb48e24288fd98194840193196c2f1c91cbe041c05552ab90195f16dc5eda6aa.jpg",
2170
+ "image_caption": [],
2171
+ "image_footnote": [],
2172
+ "bbox": [
2173
+ 336,
2174
+ 622,
2175
+ 429,
2176
+ 685
2177
+ ],
2178
+ "page_idx": 15
2179
+ },
2180
+ {
2181
+ "type": "image",
2182
+ "img_path": "images/0ad0ed609336cdf3edbeb9c8b639044946d9a6eadc326762b7b9144d498e8340.jpg",
2183
+ "image_caption": [],
2184
+ "image_footnote": [],
2185
+ "bbox": [
2186
+ 450,
2187
+ 621,
2188
+ 552,
2189
+ 698
2190
+ ],
2191
+ "page_idx": 15
2192
+ },
2193
+ {
2194
+ "type": "image",
2195
+ "img_path": "images/23c084bba5647d1f819303736d3f648ac671523d7199dd941ae192d5489896ea.jpg",
2196
+ "image_caption": [],
2197
+ "image_footnote": [],
2198
+ "bbox": [
2199
+ 571,
2200
+ 621,
2201
+ 671,
2202
+ 698
2203
+ ],
2204
+ "page_idx": 15
2205
+ },
2206
+ {
2207
+ "type": "image",
2208
+ "img_path": "images/f2cfff3e1d998a748bb6f9050dca68c368fbf8b5cf7c0ecd36f76daec2047b0d.jpg",
2209
+ "image_caption": [],
2210
+ "image_footnote": [],
2211
+ "bbox": [
2212
+ 692,
2213
+ 621,
2214
+ 794,
2215
+ 698
2216
+ ],
2217
+ "page_idx": 15
2218
+ },
2219
+ {
2220
+ "type": "text",
2221
+ "text": "P (true): 0% P (adv): 0% ",
2222
+ "bbox": [
2223
+ 697,
2224
+ 699,
2225
+ 787,
2226
+ 727
2227
+ ],
2228
+ "page_idx": 15
2229
+ },
2230
+ {
2231
+ "type": "text",
2232
+ "text": "Adversarial: \nbittern \n$\\ell _ { 2 } = 7 . 4 \\times 1 0 ^ { - 5 }$ ",
2233
+ "bbox": [
2234
+ 196,
2235
+ 757,
2236
+ 308,
2237
+ 797
2238
+ ],
2239
+ "page_idx": 15
2240
+ },
2241
+ {
2242
+ "type": "text",
2243
+ "text": "P (true): 0% P (adv): 97% ",
2244
+ "bbox": [
2245
+ 696,
2246
+ 815,
2247
+ 789,
2248
+ 842
2249
+ ],
2250
+ "page_idx": 15
2251
+ },
2252
+ {
2253
+ "type": "text",
2254
+ "text": "Original: teddybear ",
2255
+ "bbox": [
2256
+ 217,
2257
+ 179,
2258
+ 284,
2259
+ 207
2260
+ ],
2261
+ "page_idx": 16
2262
+ },
2263
+ {
2264
+ "type": "image",
2265
+ "img_path": "images/6ad66586a045e8d66368d2977c1e998f6406417daf8d764b80c22f97afb000ea.jpg",
2266
+ "image_caption": [],
2267
+ "image_footnote": [],
2268
+ "bbox": [
2269
+ 330,
2270
+ 154,
2271
+ 431,
2272
+ 231
2273
+ ],
2274
+ "page_idx": 16
2275
+ },
2276
+ {
2277
+ "type": "text",
2278
+ "text": "P (true): 90% $P ( a d v ) \\colon 0 \\%$ ",
2279
+ "bbox": [
2280
+ 331,
2281
+ 232,
2282
+ 429,
2283
+ 260
2284
+ ],
2285
+ "page_idx": 16
2286
+ },
2287
+ {
2288
+ "type": "image",
2289
+ "img_path": "images/30755d556abc6422ec694c4576b70359e6018f4f9a724cabbdeb85c9bb4875a3.jpg",
2290
+ "image_caption": [],
2291
+ "image_footnote": [],
2292
+ "bbox": [
2293
+ 450,
2294
+ 154,
2295
+ 552,
2296
+ 231
2297
+ ],
2298
+ "page_idx": 16
2299
+ },
2300
+ {
2301
+ "type": "text",
2302
+ "text": "P (true): 1% P (adv): 0% ",
2303
+ "bbox": [
2304
+ 457,
2305
+ 232,
2306
+ 547,
2307
+ 260
2308
+ ],
2309
+ "page_idx": 16
2310
+ },
2311
+ {
2312
+ "type": "image",
2313
+ "img_path": "images/5851e0b808bde9a1bf46c0794c0cf4b9232eb22a41c478dec454f86a98f6ab58.jpg",
2314
+ "image_caption": [],
2315
+ "image_footnote": [],
2316
+ "bbox": [
2317
+ 571,
2318
+ 154,
2319
+ 671,
2320
+ 229
2321
+ ],
2322
+ "page_idx": 16
2323
+ },
2324
+ {
2325
+ "type": "text",
2326
+ "text": "P (true): 98% P (adv): 0% ",
2327
+ "bbox": [
2328
+ 573,
2329
+ 232,
2330
+ 671,
2331
+ 260
2332
+ ],
2333
+ "page_idx": 16
2334
+ },
2335
+ {
2336
+ "type": "image",
2337
+ "img_path": "images/1fe7cda29d006d909f7781f949ce04c9a7a60aaf3ecd6a7eac67e7fe96129995.jpg",
2338
+ "image_caption": [],
2339
+ "image_footnote": [],
2340
+ "bbox": [
2341
+ 692,
2342
+ 154,
2343
+ 794,
2344
+ 229
2345
+ ],
2346
+ "page_idx": 16
2347
+ },
2348
+ {
2349
+ "type": "text",
2350
+ "text": "P (true): 5% P (adv): 0% ",
2351
+ "bbox": [
2352
+ 697,
2353
+ 232,
2354
+ 789,
2355
+ 260
2356
+ ],
2357
+ "page_idx": 16
2358
+ },
2359
+ {
2360
+ "type": "text",
2361
+ "text": "Adversarial: sock $\\ell _ { 2 } = 3 . 3 \\times 1 0 ^ { - 5 }$ ",
2362
+ "bbox": [
2363
+ 196,
2364
+ 289,
2365
+ 310,
2366
+ 330
2367
+ ],
2368
+ "page_idx": 16
2369
+ },
2370
+ {
2371
+ "type": "image",
2372
+ "img_path": "images/a9816a9b180b8f7bef67cbba62b49ec4d4cd3d317f357ede8d4343f8a39b0741.jpg",
2373
+ "image_caption": [],
2374
+ "image_footnote": [],
2375
+ "bbox": [
2376
+ 330,
2377
+ 268,
2378
+ 429,
2379
+ 344
2380
+ ],
2381
+ "page_idx": 16
2382
+ },
2383
+ {
2384
+ "type": "text",
2385
+ "text": "P (true): 0% P (adv): 99% ",
2386
+ "bbox": [
2387
+ 333,
2388
+ 347,
2389
+ 426,
2390
+ 375
2391
+ ],
2392
+ "page_idx": 16
2393
+ },
2394
+ {
2395
+ "type": "image",
2396
+ "img_path": "images/c5fb2c2baa6b7cabfa3e65c92cc6bb38be0bd7020c3189bb36ee515c02bca7f6.jpg",
2397
+ "image_caption": [],
2398
+ "image_footnote": [],
2399
+ "bbox": [
2400
+ 450,
2401
+ 268,
2402
+ 552,
2403
+ 345
2404
+ ],
2405
+ "page_idx": 16
2406
+ },
2407
+ {
2408
+ "type": "text",
2409
+ "text": "P (true): 0% P (adv): 99% ",
2410
+ "bbox": [
2411
+ 455,
2412
+ 347,
2413
+ 549,
2414
+ 375
2415
+ ],
2416
+ "page_idx": 16
2417
+ },
2418
+ {
2419
+ "type": "image",
2420
+ "img_path": "images/586093914075b318ca8bb6e5b7a6291befd2e976ad524a85192839ae0e695bed.jpg",
2421
+ "image_caption": [],
2422
+ "image_footnote": [],
2423
+ "bbox": [
2424
+ 571,
2425
+ 268,
2426
+ 671,
2427
+ 344
2428
+ ],
2429
+ "page_idx": 16
2430
+ },
2431
+ {
2432
+ "type": "text",
2433
+ "text": "P (true): 0% P (adv): 98% ",
2434
+ "bbox": [
2435
+ 575,
2436
+ 347,
2437
+ 668,
2438
+ 375
2439
+ ],
2440
+ "page_idx": 16
2441
+ },
2442
+ {
2443
+ "type": "image",
2444
+ "img_path": "images/ebe47435f3be92f455951303cf89ec71f729d8c89a6e7f9af0411deb2620a93a.jpg",
2445
+ "image_caption": [],
2446
+ "image_footnote": [],
2447
+ "bbox": [
2448
+ 692,
2449
+ 268,
2450
+ 794,
2451
+ 344
2452
+ ],
2453
+ "page_idx": 16
2454
+ },
2455
+ {
2456
+ "type": "text",
2457
+ "text": "P (true): 0% P (adv): 99% ",
2458
+ "bbox": [
2459
+ 696,
2460
+ 347,
2461
+ 789,
2462
+ 375
2463
+ ],
2464
+ "page_idx": 16
2465
+ },
2466
+ {
2467
+ "type": "text",
2468
+ "text": "Original: clownfish ",
2469
+ "bbox": [
2470
+ 218,
2471
+ 409,
2472
+ 284,
2473
+ 436
2474
+ ],
2475
+ "page_idx": 16
2476
+ },
2477
+ {
2478
+ "type": "image",
2479
+ "img_path": "images/ac2dd4c42b02bc94fdb060c2e3d702c62369d6b0fbadc4d7f63e446d6b0a874c.jpg",
2480
+ "image_caption": [],
2481
+ "image_footnote": [],
2482
+ "bbox": [
2483
+ 330,
2484
+ 383,
2485
+ 431,
2486
+ 462
2487
+ ],
2488
+ "page_idx": 16
2489
+ },
2490
+ {
2491
+ "type": "text",
2492
+ "text": "P (true): 46% P (adv): 0% ",
2493
+ "bbox": [
2494
+ 333,
2495
+ 463,
2496
+ 429,
2497
+ 489
2498
+ ],
2499
+ "page_idx": 16
2500
+ },
2501
+ {
2502
+ "type": "image",
2503
+ "img_path": "images/abd96785a2d7187f97cbb07657d511dcec4010242e79c96ce9edebceee8967bb.jpg",
2504
+ "image_caption": [],
2505
+ "image_footnote": [],
2506
+ "bbox": [
2507
+ 450,
2508
+ 383,
2509
+ 552,
2510
+ 460
2511
+ ],
2512
+ "page_idx": 16
2513
+ },
2514
+ {
2515
+ "type": "text",
2516
+ "text": "P (true): 14% P (adv): 0% ",
2517
+ "bbox": [
2518
+ 452,
2519
+ 463,
2520
+ 550,
2521
+ 489
2522
+ ],
2523
+ "page_idx": 16
2524
+ },
2525
+ {
2526
+ "type": "image",
2527
+ "img_path": "images/347b879d28ef7690e64636129cc7eff717d83136b182259b8cb02ff40871203b.jpg",
2528
+ "image_caption": [],
2529
+ "image_footnote": [],
2530
+ "bbox": [
2531
+ 571,
2532
+ 383,
2533
+ 671,
2534
+ 460
2535
+ ],
2536
+ "page_idx": 16
2537
+ },
2538
+ {
2539
+ "type": "text",
2540
+ "text": "P (true): 2% P (adv): 0% ",
2541
+ "bbox": [
2542
+ 578,
2543
+ 462,
2544
+ 666,
2545
+ 489
2546
+ ],
2547
+ "page_idx": 16
2548
+ },
2549
+ {
2550
+ "type": "image",
2551
+ "img_path": "images/65db67d6cbe560af1e9677e0329a5578b1b09ba62293dcd8f8654a46d51f6db1.jpg",
2552
+ "image_caption": [],
2553
+ "image_footnote": [],
2554
+ "bbox": [
2555
+ 691,
2556
+ 383,
2557
+ 794,
2558
+ 462
2559
+ ],
2560
+ "page_idx": 16
2561
+ },
2562
+ {
2563
+ "type": "text",
2564
+ "text": "P (true): 65% P (adv): 0% ",
2565
+ "bbox": [
2566
+ 694,
2567
+ 462,
2568
+ 792,
2569
+ 489
2570
+ ],
2571
+ "page_idx": 16
2572
+ },
2573
+ {
2574
+ "type": "text",
2575
+ "text": "Adversarial: \npanpipe \n\\`2 = 4.8 × 10−5 ",
2576
+ "bbox": [
2577
+ 196,
2578
+ 520,
2579
+ 310,
2580
+ 560
2581
+ ],
2582
+ "page_idx": 16
2583
+ },
2584
+ {
2585
+ "type": "image",
2586
+ "img_path": "images/e87b26949fe94ff2c31df5ba8cbd5a454d8160a7139bda171c60cb616dac6778.jpg",
2587
+ "image_caption": [],
2588
+ "image_footnote": [],
2589
+ "bbox": [
2590
+ 330,
2591
+ 498,
2592
+ 431,
2593
+ 575
2594
+ ],
2595
+ "page_idx": 16
2596
+ },
2597
+ {
2598
+ "type": "text",
2599
+ "text": "P (true): 0% P (adv): 100% ",
2600
+ "bbox": [
2601
+ 331,
2602
+ 577,
2603
+ 429,
2604
+ 606
2605
+ ],
2606
+ "page_idx": 16
2607
+ },
2608
+ {
2609
+ "type": "image",
2610
+ "img_path": "images/bbb9c568b2e2c1cbbc549f938a340227515e212830866283b2ef9b4fb7fd50c4.jpg",
2611
+ "image_caption": [],
2612
+ "image_footnote": [],
2613
+ "bbox": [
2614
+ 450,
2615
+ 498,
2616
+ 552,
2617
+ 575
2618
+ ],
2619
+ "page_idx": 16
2620
+ },
2621
+ {
2622
+ "type": "text",
2623
+ "text": "P (true): 0% $P ( a d v ) \\colon 1 \\%$ ",
2624
+ "bbox": [
2625
+ 455,
2626
+ 577,
2627
+ 545,
2628
+ 606
2629
+ ],
2630
+ "page_idx": 16
2631
+ },
2632
+ {
2633
+ "type": "image",
2634
+ "img_path": "images/5d9935f54c75a0b8412dbf0ec7991dd36a9c4c4d61513020c87ffd4aca2658d6.jpg",
2635
+ "image_caption": [],
2636
+ "image_footnote": [],
2637
+ "bbox": [
2638
+ 571,
2639
+ 497,
2640
+ 671,
2641
+ 575
2642
+ ],
2643
+ "page_idx": 16
2644
+ },
2645
+ {
2646
+ "type": "text",
2647
+ "text": "P (true): 0% P (adv): 12% ",
2648
+ "bbox": [
2649
+ 575,
2650
+ 577,
2651
+ 668,
2652
+ 604
2653
+ ],
2654
+ "page_idx": 16
2655
+ },
2656
+ {
2657
+ "type": "image",
2658
+ "img_path": "images/1f1bb7351508549b5ae2f69e4c29d4b3d9746bc865ffdd8c1868b987d04b8aef.jpg",
2659
+ "image_caption": [],
2660
+ "image_footnote": [],
2661
+ "bbox": [
2662
+ 691,
2663
+ 497,
2664
+ 794,
2665
+ 575
2666
+ ],
2667
+ "page_idx": 16
2668
+ },
2669
+ {
2670
+ "type": "text",
2671
+ "text": "P (true): 0% P (adv): 0% ",
2672
+ "bbox": [
2673
+ 697,
2674
+ 577,
2675
+ 789,
2676
+ 604
2677
+ ],
2678
+ "page_idx": 16
2679
+ },
2680
+ {
2681
+ "type": "image",
2682
+ "img_path": "images/c29b80e8cfe88b28fff222bcbc5ed1d58a95ac9f5218e28749e09c9d7b97a622.jpg",
2683
+ "image_caption": [],
2684
+ "image_footnote": [],
2685
+ "bbox": [
2686
+ 330,
2687
+ 612,
2688
+ 431,
2689
+ 690
2690
+ ],
2691
+ "page_idx": 16
2692
+ },
2693
+ {
2694
+ "type": "image",
2695
+ "img_path": "images/0c9b9888052e6fae14934e6ffad213cbf504db46a4fba1429e7ad6e40c146804.jpg",
2696
+ "image_caption": [],
2697
+ "image_footnote": [],
2698
+ "bbox": [
2699
+ 450,
2700
+ 613,
2701
+ 552,
2702
+ 690
2703
+ ],
2704
+ "page_idx": 16
2705
+ },
2706
+ {
2707
+ "type": "image",
2708
+ "img_path": "images/0331f9e468f15008972fc47f1d99e1c16a46cf3d2510be331bec5a96f4b04fa8.jpg",
2709
+ "image_caption": [],
2710
+ "image_footnote": [],
2711
+ "bbox": [
2712
+ 570,
2713
+ 613,
2714
+ 671,
2715
+ 691
2716
+ ],
2717
+ "page_idx": 16
2718
+ },
2719
+ {
2720
+ "type": "image",
2721
+ "img_path": "images/9d96fa85337f06f1b358e57888978077a76cd1babff1c801deb58405babbf030.jpg",
2722
+ "image_caption": [],
2723
+ "image_footnote": [],
2724
+ "bbox": [
2725
+ 691,
2726
+ 613,
2727
+ 794,
2728
+ 690
2729
+ ],
2730
+ "page_idx": 16
2731
+ },
2732
+ {
2733
+ "type": "text",
2734
+ "text": "P (true): $70 \\%$ P (adv): $0 \\%$ ",
2735
+ "bbox": [
2736
+ 694,
2737
+ 693,
2738
+ 792,
2739
+ 719
2740
+ ],
2741
+ "page_idx": 16
2742
+ },
2743
+ {
2744
+ "type": "text",
2745
+ "text": "Adversarial: \nsturgeon \n\\`2 = 1.3 × 10−5 ",
2746
+ "bbox": [
2747
+ 196,
2748
+ 750,
2749
+ 308,
2750
+ 791
2751
+ ],
2752
+ "page_idx": 16
2753
+ },
2754
+ {
2755
+ "type": "image",
2756
+ "img_path": "images/6514990055938b032cbe2d054224c99a04b627fe03e7037e27f07c7cd4cefd7c.jpg",
2757
+ "image_caption": [
2758
+ "Figure 12: A random sample of 3D adversarial examples. "
2759
+ ],
2760
+ "image_footnote": [],
2761
+ "bbox": [
2762
+ 691,
2763
+ 728,
2764
+ 794,
2765
+ 805
2766
+ ],
2767
+ "page_idx": 16
2768
+ },
2769
+ {
2770
+ "type": "image",
2771
+ "img_path": "images/8eaea64977a95f871993846895af7ee86e7ffd8785da694f9017c5519ff5fc86.jpg",
2772
+ "image_caption": [
2773
+ "Figure 13: A histogram of adversariality (percent of 100 samples classified as the adversarial class) across the 200 3D adversarial examples. "
2774
+ ],
2775
+ "image_footnote": [],
2776
+ "bbox": [
2777
+ 245,
2778
+ 138,
2779
+ 735,
2780
+ 436
2781
+ ],
2782
+ "page_idx": 17
2783
+ },
2784
+ {
2785
+ "type": "text",
2786
+ "text": "D PHYSICAL ADVERSARIAL EXAMPLES ",
2787
+ "text_level": 1,
2788
+ "bbox": [
2789
+ 174,
2790
+ 507,
2791
+ 522,
2792
+ 523
2793
+ ],
2794
+ "page_idx": 17
2795
+ },
2796
+ {
2797
+ "type": "text",
2798
+ "text": "Figure 14 gives all 100 photographs of our adversarial 3D-printed turtle, and Figure 15 gives all 100 photographs of our adversarial 3D-printed baseball. ",
2799
+ "bbox": [
2800
+ 171,
2801
+ 539,
2802
+ 826,
2803
+ 568
2804
+ ],
2805
+ "page_idx": 17
2806
+ },
2807
+ {
2808
+ "type": "image",
2809
+ "img_path": "images/f9a72c737c6938de7d0ea9e2da871aa2b1b23446360d174129041b1c8e16bf96.jpg",
2810
+ "image_caption": [
2811
+ "Figure 14: All 100 photographs of our physical-world 3D adversarial turtle. "
2812
+ ],
2813
+ "image_footnote": [],
2814
+ "bbox": [
2815
+ 176,
2816
+ 236,
2817
+ 820,
2818
+ 762
2819
+ ],
2820
+ "page_idx": 18
2821
+ },
2822
+ {
2823
+ "type": "image",
2824
+ "img_path": "images/a3b9d7a1a22a885462f5210bd4bb0261e6148a4e194778f64bc986e7c7483fca.jpg",
2825
+ "image_caption": [
2826
+ "Figure 15: All 100 photographs of our physical-world 3D adversarial baseball. "
2827
+ ],
2828
+ "image_footnote": [],
2829
+ "bbox": [
2830
+ 176,
2831
+ 236,
2832
+ 820,
2833
+ 762
2834
+ ],
2835
+ "page_idx": 19
2836
+ }
2837
+ ]
parse/train/BJDH5M-AW/BJDH5M-AW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJDH5M-AW/BJDH5M-AW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bklzkh0qFm/Bklzkh0qFm.md ADDED
@@ -0,0 +1,382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Relational Graph Attention Networks
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # Abstract
6
+
7
+ We investigate Relational Graph Attention Networks, a class of models that extends non-relational graph attention mechanisms to incorporate relational information, opening up these methods to a wider variety of problems. A thorough evaluation of these models is performed, and comparisons are made against established benchmarks. To provide a meaningful comparison, we retrain Relational Graph Convolutional Networks, the spectral counterpart of Relational Graph Attention Networks, and evaluate them under the same conditions. We find that Relational Graph Attention Networks perform worse than anticipated, although some configurations are marginally beneficial for modelling molecular properties. We provide insights as to why this may be, and suggest both modifications to evaluation strategies, as well as directions to investigate for future work.
8
+
9
+ # 1 Introduction
10
+
11
+ Convolutional Neural Networks (CNNs) successfully solve a variety of tasks in Euclidean grid-like domains, such as image captioning (Donahue et al., 2017) and classifying videos (Karpathy et al., 2014). CNNs are successful because they assume the data is locally stationary and compositional (Defferrard et al., 2016; Henaff et al., 2015; Bruna et al., 2013).
12
+
13
+ However, data often occurs in the form of graphs or manifolds, which are classic examples of non-Euclidean domains. Specific instances include knowledge bases, molecules, and point clouds captured by 3D data acquisition devices (Wang et al., 2018). The generalisation of Neural Networks (NNs) to non-Euclidean domains is termed Geometric Deep Learning (GDL), and may be roughly divided into spectral, spatial and hybrid approaches (Bronstein et al., 2017).
14
+
15
+ Spectral approaches (Defferrard et al., 2016), most notably Graph Convolutional Networks (GCNs) (Kipf and Welling, 2016), are limited by their basis-dependence. A filter that is learned with respect to a basis on one domain is not guaranteed to behave similarly when applied to another basis and domain. Spatial approaches are limited by an absence of shift invariance and lack of coordinate system (Duvenaud et al., 2015; Atwood and Towsley, 2016; Monti et al., 2017). Hybrid approaches combine spectral and spatial approaches, trading their advantages and deficiencies against each-other (Bronstein et al., 2017; Rustamov and Guibas, 2013; Szlam et al., 2005; Gavish et al., 2010).
16
+
17
+ A recent approach that began with Graph Attention Networks (GATs), applied attention mechanisms to graphs, and does not share these limitations (Veličković et al., 2017; Gong and Cheng, 2018; Zhang et al., 2018; Monti et al., 2018; Lee et al., 2018).
18
+
19
+ An alternative direction has been to generalise Recurrent Neural Networks (RNNs) from sequential message passing on one-dimensional signals, to message passing on graphs (Sperduti and Starita, 1997; Frasconi et al., 1997; Gori et al., 2005). Incorporating gating mechanisms led to the development of Gated Graph Neural Networks (GGNNs) (Scarselli et al., 2009; Allamanis et al., 2017)1.
20
+
21
+ Relational Graph Convolutional Networks (RGCNs) have been proposed as an extension of GCNs to the domain of relational graphs (Schlichtkrull et al., 2018). This model has achieved impressive performance on node classification and link prediction tasks, however, its mechanisms still resides within spectral methods and shares their deficiencies. The focus of this work investigate generalisations of RGCN away from its spectral origins.
22
+
23
+ We take RGCN as a starting point, and investigate a class of models we term Relational Graph Attention Networks (RGATs), extending attention mechanisms to the relational graph domain. We consider two variants, Within-Relation Graph Attention (WIRGAT) and Across-Relation Graph Attention (ARGAT), each with either additive or multiplicative attention. We perform an extensive hyperparameter search, and evaluate these models on challenging transductive node classification and inductive graph classification tasks. These models are compared against established benchmarks, as well as a re-tuned RGCN model.
24
+
25
+ We show that RGAT performs worse than expected, although some configurations produce marginal benefits on inductive graph classification tasks. In order to aid further investigation in this direction, we present the full Cumulative Distribution Functions (CDFs) for the hyperparameter searches in Appendix D, and statistical hypothesis tests in Appendix E. We also provide a vectorised, sparse, batched implementation of RGAT and RGCN in TensorFlow which is compatible with eager execution mode to open up research into these models to a wider audience2.
26
+
27
+ # 2 RGAT architecture
28
+
29
+ # 2.1 Relational graph attention layer
30
+
31
+ We follow the construction of the GAT layer in Veličković et al. (2017), extending to the relational setting, using ideas from Schlichtkrull et al. (2018).
32
+
33
+ Layer input and output The input to the layer is a graph with $R = | \mathcal R |$ relation types and $N$ nodes. The $i ^ { \mathrm { t h } }$ node is represented by a feature vector $\boldsymbol { h } _ { i } \in \mathbb { R } ^ { F }$ , and the features of all nodes are summarised in the feature matrix ${ \pmb H } = [ { \pmb h } _ { 1 } { \pmb h } _ { 2 } \dots { \pmb h } _ { N } ] \in \mathbb { R } ^ { N \times F }$ . The output of the layer is the transformed feature matrix $\pmb { H } ^ { \prime } = [ h _ { 1 } ^ { \prime } h _ { 2 } ^ { \prime } \dots h _ { N } ^ { \prime } ] \in \mathbb { R } ^ { N \times F ^ { \prime } }$ , where $\pmb { h } _ { i } ^ { \prime } \in \mathbb { R } ^ { F ^ { \prime } }$ is the transformed feature vector of the $i ^ { \mathrm { t h } }$ node.
34
+
35
+ Intermediate representations Different relations convey distinct pieces of information. The update rule of Schlichtkrull et al. (2018) made this manifest by assigning each node $_ i$ a distinct intermediate representation $\pmb { g } _ { i } ^ { ( r ) } \in \mathbb { R } ^ { F ^ { \prime } }$ under relation $r$
36
+
37
+ $$
38
+ \pmb { G } ^ { ( r ) } = \pmb { H } \pmb { W } ^ { ( r ) } \in \mathbb { R } ^ { N \times F ^ { \prime } } ,
39
+ $$
40
+
41
+ where $\pmb { G } ^ { ( r ) } = \left[ \pmb { g } _ { 1 } ^ { ( r ) } \pmb { g } _ { 2 } ^ { ( r ) } \cdot \cdot \cdot \pmb { g } _ { N } ^ { ( r ) } \right]$ is the intermediate representation feature matrix under relation $r$ , and $W ^ { ( r ) } \in \mathbb { R } ^ { F \times F ^ { \prime } }$ are the learnable parameters of a shared linear transformation.
42
+
43
+ Logits Following Veličković et al. (2017); Zhang et al. (2018), we assume the attention coefficient between two nodes is based only on the features of those nodes up to a neighborhoodlevel normalisation. To keep computational complexity linear in $R$ , we assume that, given linear transformations $W ^ { ( r ) }$ , the logits $E _ { i , j } ^ { ( r ) }$ of each relation $r$ are independent
44
+
45
+ $$
46
+ E _ { i , j } ^ { ( r ) } = a \left( \pmb { g } _ { i } ^ { ( r ) } , \pmb { g } _ { j } ^ { ( r ) } \right) ,
47
+ $$
48
+
49
+ and indicate the importance of node ’s intermediate representation to that of node $_ i$ under relation $r$ . The attention is masked so that, for node $i$ , coefficients $\alpha _ { i , j } ^ { ( r ) }$ exist only for $j \in n _ { i } ^ { ( r ) }$ , where $n _ { i } ^ { ( r ) }$ denotes the set of neighbor indices of node $_ i$ under relation $r \in \mathcal R$ .
50
+
51
+ Queries, keys and values The logits are composed from queries and keys, and specify how the values, i.e. the intermediate representations $\mathbf { \Delta } _ { g _ { i } ^ { ( r ) } }$ , will combine to produce the updated
52
+
53
+ ![](images/9a4bf818da78a1f6aaa34d99c50e0d9b06bf898c39cb24788316934d42cf5262.jpg)
54
+
55
+ Figure 1: WIRGAT. The intermediate representations for node $i$ (left red rectangle) are combined with the intermediate representations for nodes in its neighborhood (blue rectangles) under each relation $r$ , to form each logit $E _ { i , j } ^ { ( r ) }$ . A softmax is taken over each logit matrix for each relation type to form the attention coefficients $\alpha _ { i , j } ^ { ( r ) }$ . These attention coefficients construct a weighted sum over the nodes in the neighborhood for each relation (black rectangle). These are then aggregated and passed through a nonlinearity to produce the updated representation for node $_ i$ (right red rectangle).
56
+
57
+ key kernel node representations $K ^ { ( r ) } \in \mathbb { R } ^ { F ^ { \prime } \times D }$ $ { \boldsymbol { h } } _ { i } ^ { \prime }$ (Vaswani et al., 2017). A separate query kernel project the intermediate representations $\mathbf { \Delta } _ { g _ { i } ^ { ( r ) } }$ , into query and key $Q ^ { ( r ) } \in \mathbb { R } ^ { F ^ { \prime } \times D }$ and representations of dimensionality
58
+
59
+ $$
60
+ \pmb { q } _ { i } ^ { ( r ) } = \pmb { g } _ { i } ^ { ( r ) } \pmb { Q } ^ { ( r ) } \in \mathbb { R } ^ { D } , \qquad \pmb { k } _ { i } ^ { ( r ) } = \pmb { g } _ { i } ^ { ( r ) } \pmb { K } ^ { ( r ) } \in \mathbb { R } ^ { D } .
61
+ $$
62
+
63
+ For convenience, the query and key kernels are combined to form the attention kernels $\pmb { A } ^ { ( r ) } = \pmb { Q } ^ { ( r ) } \oplus \pmb { K } ^ { ( r ) } \in \mathbb { R } ^ { 2 F ^ { \prime } \times D }$ . These query and key representations are the building blocks of the two specific realisations of $a$ in Equation (2) that we now consider.
64
+
65
+ Additive attention logits The first realisation of $a$ we consider is the relational modification of the logit mechanism of Veličković et al. (2017)
66
+
67
+ $$
68
+ \begin{array} { r } { \boldsymbol { E } _ { i , j } ^ { ( r ) } = \mathrm { L e a k y R e L u } \left( \boldsymbol { q } _ { i } ^ { ( r ) } + \boldsymbol { k } _ { j } ^ { ( r ) } \right) , } \end{array}
69
+ $$
70
+
71
+ where the query and key dimensionality are both $D = 1$ , and $q _ { i } ^ { ( r ) }$ and $k _ { i } ^ { ( r ) }$ are scalar flattenings of their one-dimensional vector counterparts $\pmb { q } _ { i } ^ { ( r ) } , \pmb { k } _ { i } ^ { ( r ) } \in \mathbb { R } ^ { 1 }$ . We refer to any instance of RGAT using logits of the form in Equation (4) as additive RGAT.
72
+
73
+ Multiplicative attention logits The second realisation we consider is the multiplicative mechanism of Vaswani et al. (2017); Zhang et al. (2018)3
74
+
75
+ $$
76
+ E _ { i , j } ^ { ( r ) } = \pmb { q } _ { i } ^ { ( r ) } \cdot \pmb { k } _ { j } ^ { ( r ) } ,
77
+ $$
78
+
79
+ where the query and key dimensionality $D$ can be any positive integer. We refer to any instance of RGAT using logits of the form in Equation (4) as multiplicative RGAT.
80
+
81
+ It should be noted that there are many types of attention mechanisms beyond vanilla additive and multiplicative. These include mechanisms leveraging the structure of the dual graph Monti et al. (2018) as well as learned edge features Gong and Cheng (2018).
82
+
83
+ The attention coefficients should be comparable across nodes. This can be achieved by applying softmax appropriately to any logits $E _ { i , j } ^ { ( r ) }$ . We investigate two candidates, each
84
+
85
+ ![](images/ef3930c93ca203f3d08151a1206bea28eef4dd567e160e21b8eb98831fd1cf88.jpg)
86
+ Figure 2: ARGAT. The logits are produced identically to those in Figure 1. A softmax is taken across all logits independent of relation type to form the attention coefficients α(r)i,j . The remaining weighting and aggregation steps are the same as those in Figure 1.
87
+
88
+ WIRGAT The simplest way to take the softmax over the logits $E _ { i , j } ^ { ( r ) }$ of Equation (4) or
89
+
90
+ $$
91
+ \alpha _ { i , j } ^ { ( r ) } = \operatorname * { s o f t m a x } _ { j } \left( E _ { i , j } ^ { ( r ) } \right) = \frac { \exp \left( E _ { i , j } ^ { ( r ) } \right) } { \sum _ { k \in { \cal { n } } _ { i } ^ { ( r ) } } \exp \left( E _ { i , k } ^ { ( r ) } \right) } , \qquad \forall i , r : \sum _ { j \in { \cal { n } } _ { i } ^ { ( r ) } } \alpha _ { i , j } ^ { ( r ) } = 1 .
92
+ $$
93
+
94
+ We call the attention in Equation (6) Within-Relation Graph Attention (WIRGAT), and it is shown in Figure 1. This mechanism encodes the prior that relation importance is a purely global property of the graph by implementing an independent probability distribution over nodesnodes hborhood of yield compe $i$ for each relation ing attention coe $r$ . Explcients y, forand node with $i$ and relation izes dependin $r$ , $j , k \in n _ { i } ^ { ( r ) }$ $\alpha _ { i , j } ^ { ( r ) }$ α(r)i,k on their corresponding representations $\mathbf { \Delta } _ { g _ { j } ^ { ( r ) } }$ and $\mathbf { \Delta } _ { g _ { k } ^ { ( r ) } }$ . There is no competition between any attention coefficients $\alpha _ { i , j } ^ { ( r ) }$ and α(r )i,k for all nodes $i$ and nodes $j \in n _ { i } ^ { ( r ) } , j ^ { \prime } \in n ^ { ( r ^ { \prime } ) }$ where $\boldsymbol { r } ^ { \prime } \neq \boldsymbol { r }$ irrespective of node representations.
95
+
96
+ ARGAT An alternative way to take the softmax over the logit $E _ { i , j } ^ { ( r ) }$ of Equation (4) or $r$
97
+
98
+ $$
99
+ \alpha _ { i , j } ^ { ( r ) } = \operatorname * { s o f } _ { j , r } \mathrm { a x } \left( E _ { i , j } ^ { ( r ) } \right) = \frac { \exp \left( E _ { i , j } ^ { ( r ) } \right) } { \sum _ { r ^ { \prime } \in \mathcal { R } } \sum _ { k \in { n _ { i } ^ { ( r ^ { \prime } ) } } } \exp \left( E _ { i , k } ^ { ( r ^ { \prime } ) } \right) } , \forall i : \sum _ { r \in \mathcal { R } } \sum _ { j \in { n _ { i } ^ { ( r ) } } } \alpha _ { i , j } ^ { ( r ) } = 1 .
100
+ $$
101
+
102
+ We call the attention in Equation (7) Equation (6) Across-Relation Graph Attention (ARGAT), and it is shown in Figure 2. This mechanism encodes the prior that relation importance is a local property of the graph by implementing a single probability distribution over the different representations $\mathbf { \Delta } _ { g _ { j } ^ { ( r ) } }$ for nodes $\mathrm { j }$ in the neighborhood of node $i$ . Explicitly, for any node $i$ and all $r , r ^ { \prime } \in \mathcal { R }$ , all nodes $j \in n _ { i } ^ { ( r ) }$ and $k \in \mathcal { n } _ { i } ^ { ( r ^ { \prime } ) }$ yield competing attention coefficients α(r)i,j and α(r )i,k with sizes depending on their corresponding representations $\mathbf { \Delta } _ { g _ { j } ^ { ( r ) } }$ and g(rk $\pmb { g } _ { k } ^ { ( r ^ { \prime } ) }$
103
+
104
+ Comparison to RGCN For comparison, the coefficients of RGCN are given by α(r)i,j $| n _ { i } ^ { ( r ) } | ^ { - 1 }$ . This encodes the prior that the intermediate representations of nodes $j \in n _ { i } ^ { ( r ) }$ to node $i$
105
+
106
+ ![](images/b51b37fc3f64eff99f9add08eebbdb9785410870141a6ca7965e0d2334b14044.jpg)
107
+ Figure 3: (a) The network architecture used for node classification on AIFB and MUTAG. This architecture is the same as in Schlichtkrull et al. (2018) except with RGCNs replaced with RGATs. (b) The network architecture used for multi-task graph classification on Tox21. This architecture is the same as the GCNs architecture in Altae-Tran et al. (2016) except with RGCNs replaces with GATs and we do not use graph pooling.
108
+
109
+ Propagation rule Combining the attention mechanism of either Equation (6) or Equation (7) with the neighborhood aggregation step of Schlichtkrull et al. (2018) gives
110
+
111
+ $$
112
+ \pmb { h } _ { i } ^ { \prime } = \sigma \left( \sum _ { r \in \mathcal { R } } \sum _ { j \in { \cal n } _ { i } ^ { ( r ) } } { \alpha } _ { i , j } ^ { ( r ) } \pmb { g } _ { j } ^ { ( r ) } \right) \in \mathbb { R } ^ { N \times F ^ { \prime } } ,
113
+ $$
114
+
115
+ where $\sigma$ represents an optional nonlinearity. Similar to Vaswani et al. (2017); Veličković et al. (2017), we also find that using multiple heads in the attention mechanism can enhance performance
116
+
117
+ $$
118
+ \pmb { h } _ { i } ^ { \prime } = \bigoplus _ { k = 1 } ^ { K } \sigma \left( \sum _ { r \in \mathcal { R } } \sum _ { j \in { \cal n } _ { i } ^ { ( r ) } } \alpha _ { i , j } ^ { ( r , k ) } \pmb { g } _ { j } ^ { ( r , k ) } \right) \in \mathbb { R } ^ { N \times K F ^ { \prime } } ,
119
+ $$
120
+
121
+ where $\oplus$ denotes vector concatenation, $\alpha _ { i , j } ^ { ( r , k ) }$ are the normalised attention coefficients under relation $r$ computed by either WIRGAT or ARGAT, and $\pmb { g } _ { i } ^ { ( r , k ) } = \pmb { h } _ { i }$ $\left( \boldsymbol { W } ^ { ( r , k ) } \right) ^ { T }$ is the head specific intermediate representation of node $i$ under relation $r$ .
122
+
123
+ It might be interesting to consider cases where there are a different number of heads for different relationship types, as well as when a mixture of ARGAT and WIRGAT produce the attention coefficients, however, we leave that subject for future investigation and will not consider it further.
124
+
125
+ Basis decomposition The number of parameters in the RGAT layer increases linearly with the number of relations $R$ and heads $K$ , and can lead quickly to overparameterisation. In RGCNs it was found that decomposing the kernels was beneficial for generalisation, although it comes at the cost of increased model bias (Schlichtkrull et al., 2018). We follow this approach, decomposing both the kernels $W ^ { ( r , k ) }$ as well as the kernels of attention mechanism $A ^ { ( r , k ) }$ into $B _ { V }$ basis matrices $V ^ { ( b ) } \in \mathbb { R } ^ { F \times F ^ { \prime } }$ and $B _ { X }$ basis vectors $\pmb { X } ^ { ( b ) } \in \mathbb { R } ^ { 2 F ^ { \prime } \times D }$
126
+
127
+ $$
128
+ { \pmb W } ^ { ( r , k ) } = \sum _ { b = 1 } ^ { B _ { W } } c _ { b } ^ { ( r , k ) } { \pmb V } ^ { ( b ) } , \qquad { \pmb A } ^ { ( r , k ) } = \sum _ { b = 1 } ^ { B _ { X } } d _ { b } ^ { ( r , k ) } { \pmb X } ^ { ( b ) } ,
129
+ $$
130
+
131
+ whe re c(r,k)b , d $c _ { b } ^ { ( r , k ) } , d _ { b } ^ { ( r , k ) } \in \mathbb { R }$ are basis coefficients. We consider models using full and decomposed $W$ and $\pmb { A }$ .
132
+
133
+ # 2.2 Node classification
134
+
135
+ For the transductive task of semi-supervised node classification, we employ a two-layer RGAT architecture shown in Figure 3a. We use a Rectified Linear Unit (ReLU) activation after the RGAT concat layer, and a node-wise softmax on the final layer to produce an estimate for the probability that the $i ^ { \mathrm { t h } }$ label is in the class $\alpha$
136
+
137
+ $$
138
+ P ( \mathrm { c l a s s } _ { i } = \alpha ) \approx \hat { y } _ { i , \alpha } = \mathrm { s o f t m a x } ( \pmb { h } _ { i } ^ { ( 2 ) } ) _ { \alpha } .
139
+ $$
140
+
141
+ Table 1: A summary of the datasets used in our experiments and how they are partitioned.
142
+
143
+ <table><tr><td>Datasets</td><td>AIFB</td><td>MUTAG</td><td>Tox21</td></tr><tr><td>Task</td><td>Transductive</td><td>Transductive</td><td>Inductive</td></tr><tr><td>Nodes</td><td>8,285 (1 graph)</td><td>23,644 (1 graph)</td><td>145,459 (8014 graphs)</td></tr><tr><td>Edges</td><td>29,043</td><td>74,227</td><td>151,095</td></tr><tr><td>Relations</td><td>45</td><td>23</td><td>4</td></tr><tr><td>Labelled</td><td>176</td><td>340</td><td>96,168 (12 per graph)</td></tr><tr><td>Classes</td><td>4</td><td>2</td><td>12 (multi-label)</td></tr><tr><td>Train nodes</td><td>112</td><td>218</td><td>(6411 graphs)</td></tr><tr><td>Validation nodes</td><td>28</td><td>54</td><td>(801 graphs)</td></tr><tr><td>Test nodes</td><td>28</td><td>54</td><td>(802 graphs)</td></tr></table>
144
+
145
+ We then employ a masked cross-entropy loss $\mathcal { L }$ to constrain the network updates to the subset of nodes $y$ whose labels are known
146
+
147
+ $$
148
+ \mathcal { L } = - \sum _ { i \in \mathcal { Y } } \sum _ { \alpha = 1 } ^ { n _ { \mathrm { c l a s s e s } } } y _ { i , \alpha } \ln \left( \hat { y } _ { i , \alpha } \right) ,
149
+ $$
150
+
151
+ where ${ \bf { { y } } } _ { i }$ is the one-hot representation of the true label for node $i$ .
152
+
153
+ # 2.3 Graph classification
154
+
155
+ For inductive graph classification, we employ a two-layer RGAT followed by a graph gather and dense network architecture shown in Figure 3b. We use ReLU activations after each RGAT layer and the first dense layer. We use a tanh activation after the GraphGather : $\mathbb { R } ^ { N \times F } \to \mathbb { R } ^ { 2 F }$ , which is a vector concatenation of the mean of the node representations with the feature-wise max of the node representations
156
+
157
+ $$
158
+ H ^ { \prime } = \mathrm { G r a p h G a t h e r } ( H ) = \left( \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \pmb { h } _ { i } \right) \oplus \left[ \bigoplus _ { f = 1 } ^ { F } \operatorname* { m a x } _ { i } \pmb { h } _ { i , f } \right] .
159
+ $$
160
+
161
+ The final dense layer then produces logits of the size $n _ { \mathrm { c l a s s e s } } \times n _ { \mathrm { t a s k s } }$ , and we apply a task-wise softmax to its output to produce an estimate $\hat { y } _ { t , \alpha }$ for the probability that the graph is in class $\alpha$ for a given task $t$ , analogous to Equation (11). Weighted cross-entropy loss $\mathcal { L }$ is then used to form the learning objective
162
+
163
+ $$
164
+ \mathcal { L } ( w , y , \hat { y } ) = - \sum _ { t = 1 } ^ { n _ { \mathrm { t a s k s } } } \sum _ { \alpha = 1 } ^ { n _ { \mathrm { c l a s s e s } } } w _ { t , \alpha } y _ { t , \alpha } \ln \left( \hat { y } _ { t , \alpha } \right) ,
165
+ $$
166
+
167
+ where $w _ { t , \alpha }$ and $y _ { t , \alpha }$ are the weights and one-hot true labels for task $t$ and class $\alpha$ respectivel
168
+
169
+ # 3 Evaluation
170
+
171
+ # 3.1 Datasets
172
+
173
+ We evaluate the models on transductive and inductive tasks. Following the experimental setup of Schlichtkrull et al. (2018) for the transductive tasks, we evaluate our model on the Resource Description Framework (RDF) datasets AIFB and MUTAG. We also evaluate our model for an inductive task on the molecular dataset, Tox21. Details of these data sets are given in Table 1. For further details on the transductive and inductive datasets, please see Ristoski and Paulheim (2016) and Wu et al. (2018) respectively.
174
+
175
+ Transductive baselines We consider as a baseline the recent state-of-the-art results from Schlichtkrull et al. (2018) obtained with a two-layer RGCN model with 16 hidden units and basis function decomposition. We also include the same challenging baselines of FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015) and RDF2Vec (Ristoski and Paulheim, 2016). In-depth details of these baselines are given by Ristoski and Paulheim (2016).
176
+
177
+ Inductive baselines As baselines for Tox21, we compare against the most competitive methods on Tox21 reported in Wu et al. (2018). Specifically, we compare against deep multitask networks Ramsundar et al. (2015), deep bypass multitask networks Wu et al. (2018), Weave Kearnes et al. (2016), and a RGCN model whose relational structure is determined by the degree of the node to be updated Altae-Tran et al. (2016). Specifically, up to and including some maximum degree $D _ { \mathrm { m a x } }$ ,
178
+
179
+ $$
180
+ \pmb { h } _ { i } ^ { \prime } = \sigma \left[ ( W ^ { \mathrm { d e g ( i ) } } ) ^ { T } \pmb { h } _ { i } + \sum _ { j \in \mathcal { n } _ { i } } ( U ^ { \mathrm { d e g ( i ) } } ) ^ { T } \pmb { h } _ { j } + b ^ { \mathrm { d e g } ( i ) } \right] ,
181
+ $$
182
+
183
+ where $W ^ { \mathrm { d e g } ( i ) } ~ \in ~ \mathbb { R } ^ { F \times F ^ { \prime } }$ is a degree-specific linear transformation for self-connections, $U ^ { \mathrm { d e g ( i ) } } ~ \in ~ \mathbb { R } ^ { F \times F ^ { \prime } }$ is a degree-specific linear transformation for neighbours into their intermediate representations $g _ { i } \in \mathbb { R } ^ { F ^ { \prime } }$ , and $\boldsymbol { b } ^ { \mathrm { d e g } ( i ) }$ is a degree-specific bias. Any update for any degree $d ( i ) > D _ { \operatorname* { m a x } }$ gets assigned to the update for the maximum degree $D _ { \mathrm { m a x } }$ .
184
+
185
+ # 3.2 Experimental setup
186
+
187
+ Transductive learning For the transductive learning tasks, the architecture discussed in Section 2.2 was applied. Its hyperparameters were optimised for both AIFB and MUTAG on their respective training/validation sets defined in Ristoski and Paulheim (2016), using 5-fold cross validation. Using the found hyperparameters, we retrain on the full training set and report results on the test set across 200 seeds. We employ early stopping on the validation set during cross-validation to determine the number of epochs we will run on the final training set. Hyperparameter optimisation details are given in Table 4 of Appendix B.
188
+
189
+ Inductive learning For the inductive learning tasks, the architecture discussed in Section 2.3 was applied. In order to optimise hyperparameters once, ensure no data leakage, but also provide comparable benchmarks to those presented in Wu et al. (2018), three benchmark splits were taken from the MolNet benchmarks4, and graphs belonging to any of the test sets were isolated. Using the remaining graphs we performed a hyperparameter search using 2 folds of 10-fold cross validation. Using the found hyperparameters, we then retrained on the three benchmark splits provided with 2 seeds each, giving an unbiased estimate of model performance. We employ early stopping during both the cross-validation and final run (the validation set of the inductive task is available for the final benchmark, in contrast to the transductive tasks) to determine the number of training epochs. Hyperparameter optimisation details are given in Table 5 of Appendix B.
190
+
191
+ Constant attention In all experiments, we train with the attention mechanism turned on. At evaluation time, however, we report results with and without the attention mechanism to provide insight into whether the attention mechanism helps. ARGAT (WIRGAT) without the attention is called C-ARGAT (C-WIRGAT).
192
+
193
+ # 3.3 Results
194
+
195
+ # 3.3.1 Benchmarks and additional analyses
196
+
197
+ Model means and standard deviations are presented in Table 2. To provide a picture of characteristic model behaviour, the CDFs for the hyperparameter sweep are presented in Figure 5 of Appendix D. To draw meaningful conclusions, we compare against our own implementation of RGCN rather than the results reported in Schlichtkrull et al. (2018); Wu et al. (2018).
198
+
199
+ We will occasionally employ a one-sided hypothesis test in order to make concrete statements about model performance. The details and complete results of this test are presented in Appendix E. When we refer to significant results this corresponds to a test statistic supporting our hypothesis with a $p -$ value $p \leq 0 . 0 5$ .
200
+
201
+ Table 2: (a) Entity classification results accuracy (mean and standard deviation over 10 seeds) for FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015), RDF2Vec (Ristoski and Paulheim, 2016) and RGCN (Schlichtkrull et al., 2018), and (mean and standard deviation over 200 seeds) for our implementation of RGCN, as well as additive and multiplicative attention for (C-)WIRGAT and (C-)WIRGAT (this work). Test performance is reported on the splits provided in Ristoski and Paulheim (2016). (b) Graph classification mean Receiver Operating Characteristic (ROC) Area Under the Curve (AUC) across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), and (mean and standard deviation over 3 splits, 2 seeds per split) our implementation of RGCN, additive and multiplicative attention for (C-)WIRGAT and (C-)ARGAT (this work). Test performance is reported on the splits provided in Wu et al. (2018). Best performance in class in boldened, and best performance overall is underlined. For completeness, we present the training and validation mean ROC-AUCs alongside the test ROC-AUCs in Appendix A. For a graphical representation of these results, see Figure 4 in Appendix C.
202
+
203
+ <table><tr><td>Model</td><td>AIFB</td><td>MUTAG</td></tr><tr><td>Feat</td><td>55.55 ± 0.00 80.55 ± 0.00</td><td>77.94 ± 0.00 80.88 ± 0.00</td></tr><tr><td>WL RDF2Vec</td><td>88.88 ±0.00</td><td>67.20 ± 1.24</td></tr><tr><td>RGCN</td><td>95.83 ± 0.62</td><td>73.23 ± 0.48</td></tr><tr><td>RGCN (ours)</td><td>94.64 ±2.75</td><td>74.15 ± 2.40</td></tr><tr><td colspan="3">Additive attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>96.86 ± 0.94 96.83 ± 1.01</td><td>69.37 ± 2.75 69.83 ± 2.74</td></tr><tr><td>C-ARGAT</td><td>93.05 ± 3.05</td><td>63.69 ± 8.41</td></tr><tr><td>ARGAT</td><td>94.01 ± 2.76</td><td>65.54 ± 6.25</td></tr><tr><td colspan="3">Multiplicative attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>93.71 ± 3.33 92.92 ± 3.75</td><td>69.57 ± 3.70</td></tr><tr><td>C-ARGAT</td><td>95.89 ± 1.93 96.19 ± 1.70</td><td>69.60 ± 3.75 74.38 ± 3.78 73.17 ± 3.41</td></tr></table>
204
+
205
+ (a) Transductive
206
+
207
+ <table><tr><td>Model</td><td>Tox21</td></tr><tr><td>Multitask</td><td>0.803 ± 0.012</td></tr><tr><td>Bypass</td><td>0.810 ± 0.013</td></tr><tr><td>Weave RGCN</td><td>0.820 ± 0.010 0.829 ±0.006</td></tr><tr><td>RGCN (ours)</td><td>0.835 士 0.008</td></tr><tr><td>Additive attention</td><td></td></tr><tr><td>C-WIRGAT</td><td>0.832 ± 0.009</td></tr><tr><td>WIRGAT</td><td>0.835 ± 0.006</td></tr><tr><td>C-ARGAT</td><td>0.829 ± 0.010</td></tr><tr><td>ARGAT</td><td>0.835 ±0.006</td></tr><tr><td>Multiplicative</td><td>attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>0.811 ± 0.008 0.838 ± 0.007</td></tr><tr><td>C-ARGAT ARGAT</td><td>0.802 ± 0.007 0.837 ± 0.007</td></tr></table>
208
+
209
+ (b) Inductive
210
+
211
+ # 3.3.2 Transductive learning
212
+
213
+ In Table 2a we evaluate RGAT on MUTAG and AIFB. With additive attention, WIRGAT outperforms ARGAT, consistent with Schlichtkrull et al. (2018). Interestingly, when employing multiplicative attention, the converse appears true. For node classification tasks on RDF data, this indicates that the importance of a particular relation type does not vary much (if at all) across the graph unless one employs a multiplicative comparison $^ 5$ between node representations.
214
+
215
+ AIFB On AIFB, the best to worst performing models are: 1) additive WIRGAT 2) multiplicative ARGAT 3) RGCN 4) additive ARGAT, and 5) multiplicative WIRGAT, with each comparison being significant.
216
+
217
+ When comparing against their constant attention counterparts, the significant differences observed were for additive and multiplicative ARGAT, where attention gives a relative mean performance improvements of $1 . 0 3 \%$ and $0 . 3 1 \%$ respectively, and multiplicative WIRGAT, where attention gives a relative mean performance drop of $0 . 8 4 \%$ .
218
+
219
+ Although we present state-of-the art result on AIFB with additive WIRGAT, since its performance with and without attention are not significantly different, it is unlikely that this is due to the attention mechanism itself, at least at inference time. Over the hyperparameter space, additive WIRGAT and RGCN are comparable in performance (see Figure 5a in Appendix D), leading us to conclude that the result is more likely attributable to finding a better hyperparameter point for additive WIRGAT during the search.
220
+
221
+ MUTAG On MUTAG, the best to worst performing models are: 1) RGCN 2) multiplicative ARGAT 3) additive WIRGAT tied with multiplicative WIRGAT, and 4) additive ARGAT, with each comparison being significant.
222
+
223
+ When comparing against their constant attention counterparts, the significant differences observed were for additive WIRGAT and ARGAT, where attention gives relative mean performance improvements of $0 . 6 6 \%$ and $2 . 9 0 \%$ respectively, and multiplicative ARGAT, where attention gives a relative mean performance drop of $1 . 6 3 \%$ .
224
+
225
+ We note that RGCN consistently outperforms RGAT on MUTAG, contrary to what might be expected (Schlichtkrull et al., 2018). The result is surprising given that RGCN lies within the parameter space of RGAT (where the attention kernel is zero), a configuration we check through evaluating C-WIRGAT. In our experiments we have observed that both RGCN and RGAT can memorise the MUTAG training set with $1 0 0 \%$ accuracy without difficulty (this is not the case for AIFB). The performance gap between RGCN and RGAT could then be explained by the following:
226
+
227
+ - During training, the RGAT layer uses its attention mechanism to solve the learning objective. Once the objective is solved, the model is not encouraged by the loss function to seek a point in the parameter space that would also behave well when attention is set to a normalising constant within neighbourhoods (i.e. the parameter space point that would be found by RGCN).
228
+ The RDF tasks are transductive, meaning that a basis-dependent spectral approach
229
+ is sufficient to solve them. As RGCN already memorises the MUTAG training set, a model more complex $\cdot$ than RGCN, for example RGAT, that can also memorise the training set is unlikely to generalise as well, although this is a hotly debated topic - see e.g. Zhang et al. (2016).
230
+
231
+ We employed a suite of regularisation techniques to get RGAT to generalise on MUTAG, including L2-norm penalties, dropout in multiple places, batch normalisation, parameter reduction and early stopping, however, no evaluated harshly regularised points for RGAT generalise well on MUTAG.
232
+
233
+ Our final observation is that the attention mechanism presented in Section 2.1 relies on node features. The node features for the above tasks are learned from scratch (the input feature matrix is a one-hot node index) as part of the task. It is possible that in this semi-supervised setup, there is insufficient signal in the data to learn both the input node embeddings as well as a meaningful attention mechanism to act upon them.
234
+
235
+ # 3.3.3 Inductive learning
236
+
237
+ In Table 2b we evaluate RGAT on Tox21. The number of samples is lower for these evaluations than for the transductive tasks, and so fewer model comparisons will be accompanied with a reasonable significance, although there are still some conclusions we can draw.
238
+
239
+ Through a thorough hyperparameter search, and incorporating various regularisation techniques, we obtained the relative mean performance of $0 . 7 2 \%$ for RGCN compared to the result reported in Wu et al. (2018), providing a much stronger baseline.
240
+
241
+ Both additive attention models match the performance of RGCN, whereas multiplicative WIRGAT and ARGAT marginally outperform RGCN, although this is not significant $p = 0 . 2 4$ and $p = 0 . 4 1$ respectively).
242
+
243
+ When comparing against their constant attention counterparts, significant differences observed were for multiplicative WIRGAT and ARGAT, where attention gives a relative mean performance improvements of $3 . 3 3 \%$ and $4 . 3 6 \%$ respectively. We do not observe any significant gains coming from additive attention when compared to their constant counterparts.
244
+
245
+ # 4 Conclusion
246
+
247
+ We have investigated a class of models we call Relational Graph Attention Networks (RGATs). These models act upon graph structures, inducing a masked self-attention that takes account of local relational structure as well as node features. This allows both nodes and their properties under specific relations to be dynamically assigned an importance for different nodes in the graph, and opens up graph attention mechanisms to a wider variety of problems.
248
+
249
+ We evaluted two specific attention mechanisms, Within-Relation Graph Attention (WIRGAT) and Across-Relation Graph Attention (ARGAT), under both an additive and multiplicative logit construction, and compared them to their equivalently evaluated spectral counterpart Relational Graph Convolutional Networks (RGCNs).
250
+
251
+ We find RGATs perform competitively or poorly on established baselines. This behavior appears strongly task-dependent. Specifically, relational inductive tasks such as graph classification benefit from multiplicative ARGAT, whereas transductive relational tasks, such as knowledge base completion, at least in the absence of node features, are better tackled using spectral methods like RGCNs or other graph feature extraction methods like Weisfeiler-Lehman (WL) graph kernels.
252
+
253
+ In general we have found that WIRGAT should be paired with an additive logit mechanism, and fares marginally better than ARGAT on transductive tasks, whereas ARGAT should be paired with a multiplicative logit mechanism, and fares marginally better on inductive tasks.
254
+
255
+ We have found no cases where choosing any variation of RGAT is guaranteed to significantly outperform RGCN, although we have found that in cases where RGCN can memorise the training set, we are confident that RGAT will not perform as well as RGCN. Consequently, we suggest that before attempting to train RGAT, a good first test is to inspect the training set performance of RGCN.
256
+
257
+ Through our thorough evaluation and presentation of the behaviours and limitations of these models, insights can be derived that will enable the discovery of more powerful model architectures that act upon relational structures. Observing that model variance on all of the tasks presented here is high, any future work developing and expanding these methods must choose larger, more challenging datasets. In addition, a comparison between the generalisation of spectral methods, like those presented here, and generalisations of Recurrent Neural Networks (RNNs), like Gated Graph Sequence Networks, is a necessary ingredient for determining the most promising future direction for these models.
258
+
259
+ # References
260
+
261
+ Allamanis, M., M. Brockschmidt, and M. Khademi 2017. Learning to represent programs with graphs. CoRR, abs/1711.00740.
262
+
263
+ Altae-Tran, H., B. Ramsundar, A. S. Pappu, and V. Pande 2016. Low Data Drug Discovery with One-shot Learning. Pp. 1–20.
264
+
265
+ Atwood, J. and D. Towsley 2016. Diffusion-Convolutional Neural Networks. (Nips).
266
+
267
+ Bergstra, J., D. Yamins, and D. Cox 2013. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. In Proceedings of the 30th International Conference on Machine Learning, S. Dasgupta and D. McAllester, eds., volume 28 of Proceedings of Machine Learning Research, Pp. 115–123, Atlanta, Georgia, USA. PMLR.
268
+
269
+ Bronstein, M. M., J. Bruna, Y. Lecun, A. Szlam, and P. Vandergheynst 2017. Geometric Deep Learning: Going beyond Euclidean data. IEEE Signal Processing Magazine, 34(4):18–42.
270
+ Bruna, J., W. Zaremba, A. Szlam, and Y. LeCun 2013. Spectral Networks and Locally Connected Networks on Graphs. Pp. 1–14.
271
+ de Vries, G. K. D. and S. de Rooij 2015. Substructure counting graph kernels for machine learning from rdf data. Web Semant., 35(P2):71–84.
272
+ Defferrard, M., X. Bresson, and P. Vandergheynst 2016. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. (Nips).
273
+ Donahue, J., L. A. Hendricks, M. Rohrbach, S. Venugopalan, S. Guadarrama, K. Saenko, and T. Darrell 2017. Long-Term Recurrent Convolutional Networks for Visual Recognition and Description. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(4):677–691.
274
+ Duvenaud, D., D. Maclaurin, J. Aguilera-Iparraguirre, R. Gómez-Bombarelli, T. Hirzel, A. Aspuru-Guzik, and R. P. Adams 2015. Convolutional Networks on Graphs for Learning Molecular Fingerprints.
275
+ Frasconi, P., V. D. S. Marta, M. Gori, V. Roma, and A. Sperduti 1997. On the efficient classification of data structures by neural networks.
276
+ Gavish, M., B. Nadler, R. R. Coifman, and N. Haven 2010. Multiscale Wavelets on Trees, Graphs and High Dimensional Data: Theory and Applications to Semi-Supervised Learning. Icml, (i):367–374.
277
+ Gong, L. and Q. Cheng 2018. Adaptive Edge Features Guided Graph Attention Networks.
278
+ Gori, M., M. Maggini, and L. Sarti 2005. Exact and approximate graph matching using random walks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 27(7):1100–1111.
279
+ Henaff, M., J. Bruna, and Y. LeCun 2015. Deep Convolutional Networks on Graph-Structured Data. Pp. 1–10.
280
+ Karpathy, A., G. Toderici, S. Shetty, T. Leung, R. Sukthankar, and F. F. Li 2014. Large-scale video classification with convolutional neural networks. Proc. IEEE CVPR.
281
+ Kearnes, S., K. McCloskey, M. Berndl, V. Pande, and P. Riley 2016. Molecular graph convolutions: moving beyond fingerprints. J. Comput. Aided. Mol. Des., 30(8):595–608.
282
+ Kingma, D. P. and J. Ba 2014. Adam: A method for stochastic optimization. CoRR, abs/1412.6980.
283
+ Kipf, T. N. and M. Welling 2016. Semi-Supervised Classification with Graph Convolutional Networks.
284
+ Lee, J. B., R. A. Rossi, S. Kim, N. K. Ahmed, and E. Koh 2018. Attention Models in Graphs: A Survey. 0(1).
285
+ Mann, H. B. and D. R. Whitney 1947. On a test of whether one of two random variables is stochastically larger than the other. Ann. Math. Statist., 18(1):50–60.
286
+
287
+ Monti, F., D. Boscaini, J. Masci, E. Rodolà, J. Svoboda, and M. M. Bronstein 2017. Geometric deep learning on graphs and manifolds using mixture model CNNs. In Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, volume 2017-January, Pp. 5425–5434.
288
+
289
+ Monti, F., O. Shchur, A. Bojchevski, O. Litany, S. Günnemann, and M. M. Bronstein 2018. Dual-Primal Graph Convolutional Networks. Pp. 1–11.
290
+
291
+ Paulheim, H. and J. Fümkranz 2012. Unsupervised generation of data mining features from linked open data. In Proc. 2nd Int. Conf. Web Intell. Min. Semant. - WIMS ’12, P. 1, New York, New York, USA. ACM Press.
292
+
293
+ Ramsundar, B., S. Kearnes, P. Riley, D. Webster, D. Konerding, and V. Pande 2015. Massively Multitask Networks for Drug Discovery. (Icml).
294
+
295
+ Ristoski, P. and H. Paulheim 2016. RDF2Vec: RDF graph embeddings for data mining. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 9981 LNCS, Pp. 498–514.
296
+
297
+ Rustamov, R. and L. Guibas 2013. Wavelets on graphs via deep learning. Nips, Pp. 1–9.
298
+
299
+ Scarselli, F., M. Gori, A. C. Tsoi, M. Hagenbuchner, and G. Monfardini 2009. The graph neural network model. Trans. Neur. Netw., 20(1):61–80.
300
+
301
+ Schlichtkrull, M., T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling 2018. Modeling Relational Data with Graph Convolutional Networks. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 10843 LNCS, Pp. 593–607.
302
+
303
+ Shervashidze, N., P. Schweitzer, E. Jan van Leeuwen, K. Mehlhorn, and K. Borgwardt 2011. Weisfeiler-Lehman Graph Kernels. J. Mach. Learn. Res., 12:2539–2561.
304
+
305
+ Sperduti, A. and A. Starita 1997. Supervised neural networks for the classification of structures. IEEE transactions on neural networks / a publication of the IEEE Neural Networks Council, 8:714–35.
306
+
307
+ Szlam, A. D., M. Maggioni, R. R. Coifman, and J. C. BremerJr. 2005. Diffusion-driven multiscale analysis on manifolds and graphs: top-down and bottomup constructions. P. 59141D.
308
+
309
+ Vaswani, A., N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin 2017. Attention is all you need. CoRR, abs/1706.03762.
310
+
311
+ Veličković, P., G. Cucurull, A. Casanova, A. Romero, P. Liò, and Y. Bengio 2017. Graph Attention Networks.
312
+
313
+ Wang, Y., Y. Sun, Z. Liu, S. E. Sarma, M. M. Bronstein, and J. M. Solomon 2018. Dynamic Graph CNN for Learning on Point Clouds. Technical report.
314
+
315
+ Wu, Z., B. Ramsundar, E. N. Feinberg, J. Gomes, C. Geniesse, A. S. Pappu, K. Leswing, and V. Pande 2018. MoleculeNet: A benchmark for molecular machine learning. Chemical Science, 9(2):513–530.
316
+
317
+ Zhang, C., S. Bengio, M. Hardt, B. Recht, and O. Vinyals 2016. Understanding deep learning requires rethinking generalization. CoRR, abs/1611.03530.
318
+
319
+ Zhang, J., X. Shi, J. Xie, H. Ma, I. King, and D.-Y. Yeung 2018. GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphs.
320
+
321
+ # A Tox21 Results
322
+
323
+ For completeness, we present the training, validation and test set performance of our models in addition to those in Wu et al. (2018) in Table 3.
324
+
325
+ Table 3: Graph classification mean Area Under the Curve (AUC) across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), our implementation of RGCN, additive and multiplicative attention versions of WIRGAT and ARGAT (this work). Training, validation and test performance is reported on the splits provided in Wu et al. (2018). Best performance in class in boldened, and best performance overall is underlined.
326
+
327
+ <table><tr><td>Model</td><td>Training</td><td>Validation</td><td>Test</td></tr><tr><td>Multitask</td><td>0.884± 0.001</td><td>0.795 ± 0.017</td><td>0.803 ± 0.012</td></tr><tr><td>Bypass</td><td>0.938 ± 0.001</td><td>0.800 ±0.008</td><td>0.810 ± 0.013</td></tr><tr><td>Weave</td><td>0.875 ± 0.004</td><td>0.828 ±0.008</td><td>0.820 ± 0.010</td></tr><tr><td>RGCN</td><td>0.905 ± 0.004</td><td>0.825 ± 0.013</td><td>0.829 ± 0.006</td></tr><tr><td>RGCN (ours)</td><td>0.883 ± 0.010</td><td>0.845 ±0.003</td><td>0.835 ±0.008</td></tr><tr><td colspan="4">Additive attention</td></tr><tr><td>C-WIRGAT</td><td>0.897 ± 0.022</td><td>0.842 ± 0.004</td><td>0.832 ± 0.009</td></tr><tr><td>WIRGAT</td><td>0.902 ± 0.024</td><td>0.845 ± 0.005</td><td>0.835 ± 0.006</td></tr><tr><td>C-ARGAT</td><td>0.884± 0.012</td><td>0.848 ± 0.003</td><td>0.829 ± 0.010</td></tr><tr><td>ARGAT</td><td>0.896 ± 0.016</td><td>0.851 ± 0.004</td><td>0.835 ± 0.006</td></tr><tr><td colspan="4">Multiplicative attention</td></tr><tr><td>C-WIRGAT</td><td>0.859 ± 0.016</td><td>0.830 ± 0.007</td><td>0.811 ± 0.008</td></tr><tr><td>WIRGAT</td><td>0.904± 0.022</td><td>0.852 ± 0.002</td><td>0.838 ± 0.007</td></tr><tr><td>C-ARGAT</td><td>0.838 ± 0.007</td><td>0.816 ± 0.007</td><td>0.802 ± 0.007</td></tr><tr><td>ARGAT</td><td>0.802 ± 0.007</td><td>0.846 ± 0.003</td><td>0.837 ± 0.007</td></tr></table>
328
+
329
+ # B Hyperparameters
330
+
331
+ We perform hyperparameter optimisation using hyperopt Bergstra et al. (2013) with priors for the transductive tasks specified in Table 4 and priors for the inductive tasks specified in Table 5. In all experiments we use the Adam optimiser (Kingma and Ba, 2014).
332
+
333
+ Table 4: Priors on the hyperparameter search space for the transductive tasks. When multihead attention is used, the number of units per head is appropriately reduced in order to keep the total number of output units of an RGAT layer independent of the number of heads.
334
+
335
+ <table><tr><td>Hyperparameter</td><td>Prior</td></tr><tr><td>Graph kernel units</td><td>MultiplesOfFour(4,20)</td></tr><tr><td>Heads</td><td>OneOf(1,2, 4)</td></tr><tr><td>Feature dropout rate</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>Edge dropout</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>W basis size Graph layer 1 W L2 coef</td><td>OneOf(Full, 5,10,20,30)</td></tr><tr><td></td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Graph layer 2 W L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>A basis size</td><td>OneOf(Full, 5,10,20,30)</td></tr><tr><td>Graph layer 1 A L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Graph layer 2 A L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Learning rate</td><td>LogUniform(10-5,10-1)</td></tr><tr><td>Use bias</td><td></td></tr><tr><td></td><td>OneOf(Yes, No)</td></tr><tr><td>Use batch normalisation</td><td>OneOf(Yes, No)</td></tr></table>
336
+
337
+ Table 5: Priors on the hyperparameter for the inductive task. The batch size was held at 64, and no bases decomposition is used. When multihead attention is used, the number of units per head is appropriately reduced in order to keep the total number of output units of an RGAT layer independent of the number of heads.
338
+
339
+ <table><tr><td>Hyperparameter</td><td>Prior</td></tr><tr><td>Graph kernel units</td><td>MultiplesOfEight(32,128)</td></tr><tr><td>Dense units</td><td>MultiplesOfEight(32,128)</td></tr><tr><td>Heads</td><td>OneOf(1,2,4,8)</td></tr><tr><td>Feature dropout</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>Edge dropout</td><td>Uniform(0.0,0.8)</td></tr><tr><td>W L2 coef (1)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>W L2 coef (2)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>a L2 coef (1)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>α L2 coef (2)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Learning rate</td><td>LogUniform(10-5,10-1)</td></tr><tr><td>Use bias</td><td>OneOf(Yes, No)</td></tr><tr><td>Use batch normalisation</td><td>OneOf(Yes, No)</td></tr></table>
340
+
341
+ # C Charts
342
+
343
+ To aid interpretability of the results presented in Table 2 we present a chart representation in Figure 4.
344
+
345
+ ![](images/de4678adc2e8472e364e37ce3447a0c4098cab4e69ba828e58f0badf8865fce2.jpg)
346
+ Figure 4: (a) and (b): Blue Baseline entity classification accuracy (mean and standard deviation over 10 seeds) for FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015), RDF2Vec (Ristoski and Paulheim, 2016) and RGCN (Schlichtkrull et al., 2018), and (mean and standard deviation over 200 runs) for our implementation of RGCN. Yellow Entity classification accuracy (mean and standard deviation over 200 seeds) for additive attention (this work). Red Entity classification accuracy (mean and standard deviation over 200 seeds) for multiplicative attention (this work). Test performance is reported on the splits provided in Ristoski and Paulheim (2016). (c): Blue Baseline graph classification mean Receiver Operating Characteristic (ROC) AUC across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), and (mean and standard deviation over 3 splits, 2 seeds per split) our implementation of RGCN. Yellow Additive attention graph classification mean ROC-AUC (mean and standard deviation over 200 seeds) across all 12 tasks (this work). Red Multiplicative attention graph classification mean ROC-AUC (mean and standard deviation over 200 seeds) across all 12 tasks (this work). All raw values are given in Table 2.
347
+
348
+ # D Cumulative distribution functions
349
+
350
+ To aid further insight into our results, we present the Cumulative Distribution Functions (CDFs) for each model on each task in Figure 4. In this context, we treat the performance metric of interest during the hyperparameter search as the empirical distribution of some random variable $X$ . We then define its CDF $F _ { X } ( x )$ in the standard way
351
+
352
+ $$
353
+ F _ { X } ( x ) = P ( X \leq x ) ,
354
+ $$
355
+
356
+ where $P ( X \leq x )$ is the probability that $X$ takes on a value less than or equal to $x$ . The CDF allows one to gauge whether any given architecture typically performs better than another across the whole space, rather than comparison of the tuned hyperparameters, which in some cases may be outliers in terms of generic behavior for that architecture.
357
+
358
+ ![](images/e18a7451652d67e0875b57cde0428249e4526e12940f5831f6cac80e66daab95.jpg)
359
+ Figure 5: CDFs for all models on a) AIFB, b) MUTAG and c) TOX21. Green lines correspond to our implementation of RGCN, blue lines correspond to ARGAT, and orange lines correspond to WIRGAT. Solid lines correspond to additive attention (and RGCN), whereas dashed lines correspond to multiplicative attention. A lower CDF value is better in the sense that a greater proportion of models of achieve a higher value of that metric.
360
+
361
+ AIFB Additive and multiplicative ARGAT perform poorly for most areas of the hyperparameter space, whereas RGCN and multiplicative WIRGAT perform comparably across the entire hyperparameter space.
362
+
363
+ MUTAG Interestingly, the models that have a greater amount of hyperparameter space covering poor performance (i.e. RGCN, multiplicative and additive WIRGAT) are also the models which also have a greater amount of hyperparameter space covering good performance. In other words, on the MUTAG, the ARGAT prior resulted in a model whose test set performance was relatively insensitive to hyperparameter choice when compared against the other candidates. Given that the ARGAT model was the most flexible of the models evaluated, and that it was able to memorise the training set, this suggests that the task contained insufficient information for the model to learn its attention mechanism. Given that WIRGAT was able to at least partially learn to its attention mechanism suggests that WIRGAT is less data hungry than ARGAT.
364
+
365
+ Tox21 The multiplicative attention models fare poorly on the majority of the hyperparameter space compared to the other models. There is a slice of the hyperparameter space where the multiplicative attention models outperform the other models, however, indicating that although they are difficult to train, it may be worth spending time hyperoptimising them if you need the best performing model on a relational inductive task. The additive attention models and RGCN perform comparably across the entirety of the hyperparameter space and generally perform better than the multiplicative methods except for the very small region of hyperparameter space mentioned above.
366
+
367
+ # E Significance testing
368
+
369
+ In order to determine if any of our model comparisons are significant, we employ the one-sided Mann-Whitney $U$ test Mann and Whitney (1947) as we are interested in the direction of movement (i.e. performance) and do not want to make any parametric assumptions about model response. For two populations $X$ and $Y$ :
370
+
371
+ • The null hypothesis $H _ { 0 }$ is that the two populations are equal, and • The alternative hypothesis $H _ { 1 }$ is that the probability of an observation from population X exceeding an observation from population Y is larger than the probability of an observation from Y exceeding an observation from X; i.e., $H _ { 1 } : P ( X > Y ) > P ( Y > X )$ .
372
+
373
+ We treat the empirical distributions of Model A as samples from population $X$ and the empirical distributions of Model B as samples from population $Y$ . This allows us a window into whether, given a task, whether which is the better model out of a pair of models. Results on AIFB, MUTAG and TOX21 are given in Figure 6, Figure 7 and Figure 8 respectively.
374
+
375
+ ![](images/d6b58d3b82577979f8ec66718246c6906d164643a0b8f52bdd1cffc5ea125905.jpg)
376
+ Figure 6: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on AIFB.
377
+
378
+ ![](images/9f9346c252e13a119c74ac1fe44dbc25e2361ed2b3215116b217f2205f39108c.jpg)
379
+ Figure 7: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on MUTAG.
380
+
381
+ ![](images/ce51e1157f7064678b8b1ea8ed556f9c0ae21e45c2183e579c2593a488d00115.jpg)
382
+ Figure 8: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on TOX21.
parse/train/Bklzkh0qFm/Bklzkh0qFm_content_list.json ADDED
@@ -0,0 +1,1862 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Relational Graph Attention Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 178,
8
+ 98,
9
+ 745,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 145,
20
+ 419,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 209,
32
+ 545,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We investigate Relational Graph Attention Networks, a class of models that extends non-relational graph attention mechanisms to incorporate relational information, opening up these methods to a wider variety of problems. A thorough evaluation of these models is performed, and comparisons are made against established benchmarks. To provide a meaningful comparison, we retrain Relational Graph Convolutional Networks, the spectral counterpart of Relational Graph Attention Networks, and evaluate them under the same conditions. We find that Relational Graph Attention Networks perform worse than anticipated, although some configurations are marginally beneficial for modelling molecular properties. We provide insights as to why this may be, and suggest both modifications to evaluation strategies, as well as directions to investigate for future work. ",
40
+ "bbox": [
41
+ 233,
42
+ 239,
43
+ 764,
44
+ 406
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 431,
55
+ 339,
56
+ 446
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Convolutional Neural Networks (CNNs) successfully solve a variety of tasks in Euclidean grid-like domains, such as image captioning (Donahue et al., 2017) and classifying videos (Karpathy et al., 2014). CNNs are successful because they assume the data is locally stationary and compositional (Defferrard et al., 2016; Henaff et al., 2015; Bruna et al., 2013). ",
63
+ "bbox": [
64
+ 174,
65
+ 462,
66
+ 823,
67
+ 517
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "However, data often occurs in the form of graphs or manifolds, which are classic examples of non-Euclidean domains. Specific instances include knowledge bases, molecules, and point clouds captured by 3D data acquisition devices (Wang et al., 2018). The generalisation of Neural Networks (NNs) to non-Euclidean domains is termed Geometric Deep Learning (GDL), and may be roughly divided into spectral, spatial and hybrid approaches (Bronstein et al., 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 525,
77
+ 823,
78
+ 608
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Spectral approaches (Defferrard et al., 2016), most notably Graph Convolutional Networks (GCNs) (Kipf and Welling, 2016), are limited by their basis-dependence. A filter that is learned with respect to a basis on one domain is not guaranteed to behave similarly when applied to another basis and domain. Spatial approaches are limited by an absence of shift invariance and lack of coordinate system (Duvenaud et al., 2015; Atwood and Towsley, 2016; Monti et al., 2017). Hybrid approaches combine spectral and spatial approaches, trading their advantages and deficiencies against each-other (Bronstein et al., 2017; Rustamov and Guibas, 2013; Szlam et al., 2005; Gavish et al., 2010). ",
85
+ "bbox": [
86
+ 173,
87
+ 614,
88
+ 825,
89
+ 727
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "A recent approach that began with Graph Attention Networks (GATs), applied attention mechanisms to graphs, and does not share these limitations (Veličković et al., 2017; Gong and Cheng, 2018; Zhang et al., 2018; Monti et al., 2018; Lee et al., 2018). ",
96
+ "bbox": [
97
+ 174,
98
+ 734,
99
+ 825,
100
+ 776
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "An alternative direction has been to generalise Recurrent Neural Networks (RNNs) from sequential message passing on one-dimensional signals, to message passing on graphs (Sperduti and Starita, 1997; Frasconi et al., 1997; Gori et al., 2005). Incorporating gating mechanisms led to the development of Gated Graph Neural Networks (GGNNs) (Scarselli et al., 2009; Allamanis et al., 2017)1. ",
107
+ "bbox": [
108
+ 174,
109
+ 782,
110
+ 825,
111
+ 853
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Relational Graph Convolutional Networks (RGCNs) have been proposed as an extension of GCNs to the domain of relational graphs (Schlichtkrull et al., 2018). This model has achieved impressive performance on node classification and link prediction tasks, however, its mechanisms still resides within spectral methods and shares their deficiencies. The focus of this work investigate generalisations of RGCN away from its spectral origins. ",
118
+ "bbox": [
119
+ 174,
120
+ 859,
121
+ 823,
122
+ 888
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 174,
131
+ 103,
132
+ 823,
133
+ 146
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We take RGCN as a starting point, and investigate a class of models we term Relational Graph Attention Networks (RGATs), extending attention mechanisms to the relational graph domain. We consider two variants, Within-Relation Graph Attention (WIRGAT) and Across-Relation Graph Attention (ARGAT), each with either additive or multiplicative attention. We perform an extensive hyperparameter search, and evaluate these models on challenging transductive node classification and inductive graph classification tasks. These models are compared against established benchmarks, as well as a re-tuned RGCN model. ",
140
+ "bbox": [
141
+ 173,
142
+ 152,
143
+ 825,
144
+ 251
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "We show that RGAT performs worse than expected, although some configurations produce marginal benefits on inductive graph classification tasks. In order to aid further investigation in this direction, we present the full Cumulative Distribution Functions (CDFs) for the hyperparameter searches in Appendix D, and statistical hypothesis tests in Appendix E. We also provide a vectorised, sparse, batched implementation of RGAT and RGCN in TensorFlow which is compatible with eager execution mode to open up research into these models to a wider audience2. ",
151
+ "bbox": [
152
+ 174,
153
+ 257,
154
+ 825,
155
+ 354
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "2 RGAT architecture ",
162
+ "text_level": 1,
163
+ "bbox": [
164
+ 176,
165
+ 375,
166
+ 408,
167
+ 391
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "2.1 Relational graph attention layer ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 173,
177
+ 406,
178
+ 504,
179
+ 420
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "We follow the construction of the GAT layer in Veličković et al. (2017), extending to the relational setting, using ideas from Schlichtkrull et al. (2018). ",
186
+ "bbox": [
187
+ 176,
188
+ 431,
189
+ 823,
190
+ 460
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "Layer input and output The input to the layer is a graph with $R = | \\mathcal R |$ relation types and $N$ nodes. The $i ^ { \\mathrm { t h } }$ node is represented by a feature vector $\\boldsymbol { h } _ { i } \\in \\mathbb { R } ^ { F }$ , and the features of all nodes are summarised in the feature matrix ${ \\pmb H } = [ { \\pmb h } _ { 1 } { \\pmb h } _ { 2 } \\dots { \\pmb h } _ { N } ] \\in \\mathbb { R } ^ { N \\times F }$ . The output of the layer is the transformed feature matrix $\\pmb { H } ^ { \\prime } = [ h _ { 1 } ^ { \\prime } h _ { 2 } ^ { \\prime } \\dots h _ { N } ^ { \\prime } ] \\in \\mathbb { R } ^ { N \\times F ^ { \\prime } }$ , where $\\pmb { h } _ { i } ^ { \\prime } \\in \\mathbb { R } ^ { F ^ { \\prime } }$ is the transformed feature vector of the $i ^ { \\mathrm { t h } }$ node. ",
197
+ "bbox": [
198
+ 173,
199
+ 474,
200
+ 825,
201
+ 549
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "Intermediate representations Different relations convey distinct pieces of information. The update rule of Schlichtkrull et al. (2018) made this manifest by assigning each node $_ i$ a distinct intermediate representation $\\pmb { g } _ { i } ^ { ( r ) } \\in \\mathbb { R } ^ { F ^ { \\prime } }$ under relation $r$ ",
208
+ "bbox": [
209
+ 174,
210
+ 563,
211
+ 825,
212
+ 611
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "equation",
218
+ "img_path": "images/c0d60d8d843e165eb94f18a0f74f4b855c9a9c2bb3f49897b1d0cd914b50d2a7.jpg",
219
+ "text": "$$\n\\pmb { G } ^ { ( r ) } = \\pmb { H } \\pmb { W } ^ { ( r ) } \\in \\mathbb { R } ^ { N \\times F ^ { \\prime } } ,\n$$",
220
+ "text_format": "latex",
221
+ "bbox": [
222
+ 405,
223
+ 618,
224
+ 591,
225
+ 637
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "where $\\pmb { G } ^ { ( r ) } = \\left[ \\pmb { g } _ { 1 } ^ { ( r ) } \\pmb { g } _ { 2 } ^ { ( r ) } \\cdot \\cdot \\cdot \\pmb { g } _ { N } ^ { ( r ) } \\right]$ is the intermediate representation feature matrix under relation $r$ , and $W ^ { ( r ) } \\in \\mathbb { R } ^ { F \\times F ^ { \\prime } }$ are the learnable parameters of a shared linear transformation. ",
232
+ "bbox": [
233
+ 174,
234
+ 643,
235
+ 825,
236
+ 685
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Logits Following Veličković et al. (2017); Zhang et al. (2018), we assume the attention coefficient between two nodes is based only on the features of those nodes up to a neighborhoodlevel normalisation. To keep computational complexity linear in $R$ , we assume that, given linear transformations $W ^ { ( r ) }$ , the logits $E _ { i , j } ^ { ( r ) }$ of each relation $r$ are independent ",
243
+ "bbox": [
244
+ 173,
245
+ 699,
246
+ 825,
247
+ 761
248
+ ],
249
+ "page_idx": 1
250
+ },
251
+ {
252
+ "type": "equation",
253
+ "img_path": "images/e8240fc2f8450c0676cf446ca809194bce81fdc9c7be857687cabffc7c140abc.jpg",
254
+ "text": "$$\nE _ { i , j } ^ { ( r ) } = a \\left( \\pmb { g } _ { i } ^ { ( r ) } , \\pmb { g } _ { j } ^ { ( r ) } \\right) ,\n$$",
255
+ "text_format": "latex",
256
+ "bbox": [
257
+ 423,
258
+ 768,
259
+ 575,
260
+ 795
261
+ ],
262
+ "page_idx": 1
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "and indicate the importance of node ’s intermediate representation to that of node $_ i$ under relation $r$ . The attention is masked so that, for node $i$ , coefficients $\\alpha _ { i , j } ^ { ( r ) }$ exist only for $j \\in n _ { i } ^ { ( r ) }$ , where $n _ { i } ^ { ( r ) }$ denotes the set of neighbor indices of node $_ i$ under relation $r \\in \\mathcal R$ . ",
267
+ "bbox": [
268
+ 174,
269
+ 801,
270
+ 825,
271
+ 854
272
+ ],
273
+ "page_idx": 1
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Queries, keys and values The logits are composed from queries and keys, and specify how the values, i.e. the intermediate representations $\\mathbf { \\Delta } _ { g _ { i } ^ { ( r ) } }$ , will combine to produce the updated ",
278
+ "bbox": [
279
+ 176,
280
+ 867,
281
+ 825,
282
+ 900
283
+ ],
284
+ "page_idx": 1
285
+ },
286
+ {
287
+ "type": "image",
288
+ "img_path": "images/9a4bf818da78a1f6aaa34d99c50e0d9b06bf898c39cb24788316934d42cf5262.jpg",
289
+ "image_caption": [],
290
+ "image_footnote": [],
291
+ "bbox": [
292
+ 254,
293
+ 111,
294
+ 684,
295
+ 284
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "Figure 1: WIRGAT. The intermediate representations for node $i$ (left red rectangle) are combined with the intermediate representations for nodes in its neighborhood (blue rectangles) under each relation $r$ , to form each logit $E _ { i , j } ^ { ( r ) }$ . A softmax is taken over each logit matrix for each relation type to form the attention coefficients $\\alpha _ { i , j } ^ { ( r ) }$ . These attention coefficients construct a weighted sum over the nodes in the neighborhood for each relation (black rectangle). These are then aggregated and passed through a nonlinearity to produce the updated representation for node $_ i$ (right red rectangle). ",
302
+ "bbox": [
303
+ 173,
304
+ 309,
305
+ 826,
306
+ 420
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "key kernel node representations $K ^ { ( r ) } \\in \\mathbb { R } ^ { F ^ { \\prime } \\times D }$ $ { \\boldsymbol { h } } _ { i } ^ { \\prime }$ (Vaswani et al., 2017). A separate query kernel project the intermediate representations $\\mathbf { \\Delta } _ { g _ { i } ^ { ( r ) } }$ , into query and key $Q ^ { ( r ) } \\in \\mathbb { R } ^ { F ^ { \\prime } \\times D }$ and representations of dimensionality ",
313
+ "bbox": [
314
+ 173,
315
+ 443,
316
+ 825,
317
+ 489
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/3a841fc2464537719ea785cef19e8a70105025cfa7ea2112ed0358fa3ce9c2ba.jpg",
324
+ "text": "$$\n\\pmb { q } _ { i } ^ { ( r ) } = \\pmb { g } _ { i } ^ { ( r ) } \\pmb { Q } ^ { ( r ) } \\in \\mathbb { R } ^ { D } , \\qquad \\pmb { k } _ { i } ^ { ( r ) } = \\pmb { g } _ { i } ^ { ( r ) } \\pmb { K } ^ { ( r ) } \\in \\mathbb { R } ^ { D } .\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 282,
328
+ 493,
329
+ 715,
330
+ 513
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "For convenience, the query and key kernels are combined to form the attention kernels $\\pmb { A } ^ { ( r ) } = \\pmb { Q } ^ { ( r ) } \\oplus \\pmb { K } ^ { ( r ) } \\in \\mathbb { R } ^ { 2 F ^ { \\prime } \\times D }$ . These query and key representations are the building blocks of the two specific realisations of $a$ in Equation (2) that we now consider. ",
337
+ "bbox": [
338
+ 174,
339
+ 516,
340
+ 825,
341
+ 561
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "Additive attention logits The first realisation of $a$ we consider is the relational modification of the logit mechanism of Veličković et al. (2017) ",
348
+ "bbox": [
349
+ 173,
350
+ 574,
351
+ 823,
352
+ 603
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/1c33c237c6d640072e9f31ac6f66d937f9faa71c6ae2ca6d0ef53d5426885312.jpg",
359
+ "text": "$$\n\\begin{array} { r } { \\boldsymbol { E } _ { i , j } ^ { ( r ) } = \\mathrm { L e a k y R e L u } \\left( \\boldsymbol { q } _ { i } ^ { ( r ) } + \\boldsymbol { k } _ { j } ^ { ( r ) } \\right) , } \\end{array}\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 380,
363
+ 607,
364
+ 617,
365
+ 633
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "where the query and key dimensionality are both $D = 1$ , and $q _ { i } ^ { ( r ) }$ and $k _ { i } ^ { ( r ) }$ are scalar flattenings of their one-dimensional vector counterparts $\\pmb { q } _ { i } ^ { ( r ) } , \\pmb { k } _ { i } ^ { ( r ) } \\in \\mathbb { R } ^ { 1 }$ . We refer to any instance of RGAT using logits of the form in Equation (4) as additive RGAT. ",
372
+ "bbox": [
373
+ 173,
374
+ 638,
375
+ 825,
376
+ 688
377
+ ],
378
+ "page_idx": 2
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Multiplicative attention logits The second realisation we consider is the multiplicative mechanism of Vaswani et al. (2017); Zhang et al. (2018)3 ",
383
+ "bbox": [
384
+ 174,
385
+ 700,
386
+ 823,
387
+ 729
388
+ ],
389
+ "page_idx": 2
390
+ },
391
+ {
392
+ "type": "equation",
393
+ "img_path": "images/2b0ab0586b2d10feaeb12c322e9a7a35202461e40f33e6a895ba2e08e0b3303c.jpg",
394
+ "text": "$$\nE _ { i , j } ^ { ( r ) } = \\pmb { q } _ { i } ^ { ( r ) } \\cdot \\pmb { k } _ { j } ^ { ( r ) } ,\n$$",
395
+ "text_format": "latex",
396
+ "bbox": [
397
+ 436,
398
+ 733,
399
+ 560,
400
+ 756
401
+ ],
402
+ "page_idx": 2
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "where the query and key dimensionality $D$ can be any positive integer. We refer to any instance of RGAT using logits of the form in Equation (4) as multiplicative RGAT. ",
407
+ "bbox": [
408
+ 173,
409
+ 758,
410
+ 823,
411
+ 787
412
+ ],
413
+ "page_idx": 2
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "It should be noted that there are many types of attention mechanisms beyond vanilla additive and multiplicative. These include mechanisms leveraging the structure of the dual graph Monti et al. (2018) as well as learned edge features Gong and Cheng (2018). ",
418
+ "bbox": [
419
+ 174,
420
+ 792,
421
+ 825,
422
+ 837
423
+ ],
424
+ "page_idx": 2
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "The attention coefficients should be comparable across nodes. This can be achieved by applying softmax appropriately to any logits $E _ { i , j } ^ { ( r ) }$ . We investigate two candidates, each ",
429
+ "bbox": [
430
+ 174,
431
+ 842,
432
+ 825,
433
+ 890
434
+ ],
435
+ "page_idx": 2
436
+ },
437
+ {
438
+ "type": "image",
439
+ "img_path": "images/ef3930c93ca203f3d08151a1206bea28eef4dd567e160e21b8eb98831fd1cf88.jpg",
440
+ "image_caption": [
441
+ "Figure 2: ARGAT. The logits are produced identically to those in Figure 1. A softmax is taken across all logits independent of relation type to form the attention coefficients α(r)i,j . The remaining weighting and aggregation steps are the same as those in Figure 1. "
442
+ ],
443
+ "image_footnote": [],
444
+ "bbox": [
445
+ 254,
446
+ 109,
447
+ 730,
448
+ 285
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "WIRGAT The simplest way to take the softmax over the logits $E _ { i , j } ^ { ( r ) }$ of Equation (4) or ",
455
+ "bbox": [
456
+ 173,
457
+ 383,
458
+ 825,
459
+ 417
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "equation",
465
+ "img_path": "images/0f147711a1f3e78f49ae6f8264a662e1df1e4b82efa9c744da6528d3cf3ba8fa.jpg",
466
+ "text": "$$\n\\alpha _ { i , j } ^ { ( r ) } = \\operatorname * { s o f t m a x } _ { j } \\left( E _ { i , j } ^ { ( r ) } \\right) = \\frac { \\exp \\left( E _ { i , j } ^ { ( r ) } \\right) } { \\sum _ { k \\in { \\cal { n } } _ { i } ^ { ( r ) } } \\exp \\left( E _ { i , k } ^ { ( r ) } \\right) } , \\qquad \\forall i , r : \\sum _ { j \\in { \\cal { n } } _ { i } ^ { ( r ) } } \\alpha _ { i , j } ^ { ( r ) } = 1 .\n$$",
467
+ "text_format": "latex",
468
+ "bbox": [
469
+ 232,
470
+ 425,
471
+ 767,
472
+ 478
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "We call the attention in Equation (6) Within-Relation Graph Attention (WIRGAT), and it is shown in Figure 1. This mechanism encodes the prior that relation importance is a purely global property of the graph by implementing an independent probability distribution over nodesnodes hborhood of yield compe $i$ for each relation ing attention coe $r$ . Explcients y, forand node with $i$ and relation izes dependin $r$ , $j , k \\in n _ { i } ^ { ( r ) }$ $\\alpha _ { i , j } ^ { ( r ) }$ α(r)i,k on their corresponding representations $\\mathbf { \\Delta } _ { g _ { j } ^ { ( r ) } }$ and $\\mathbf { \\Delta } _ { g _ { k } ^ { ( r ) } }$ . There is no competition between any attention coefficients $\\alpha _ { i , j } ^ { ( r ) }$ and α(r )i,k for all nodes $i$ and nodes $j \\in n _ { i } ^ { ( r ) } , j ^ { \\prime } \\in n ^ { ( r ^ { \\prime } ) }$ where $\\boldsymbol { r } ^ { \\prime } \\neq \\boldsymbol { r }$ irrespective of node representations. ",
479
+ "bbox": [
480
+ 173,
481
+ 486,
482
+ 826,
483
+ 617
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "ARGAT An alternative way to take the softmax over the logit $E _ { i , j } ^ { ( r ) }$ of Equation (4) or $r$ ",
490
+ "bbox": [
491
+ 173,
492
+ 632,
493
+ 825,
494
+ 666
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "equation",
500
+ "img_path": "images/e2749d9449f4d39fc4d9aa78f092e3b65b25e2a8902afa719bc67723e50ef2ab.jpg",
501
+ "text": "$$\n\\alpha _ { i , j } ^ { ( r ) } = \\operatorname * { s o f } _ { j , r } \\mathrm { a x } \\left( E _ { i , j } ^ { ( r ) } \\right) = \\frac { \\exp \\left( E _ { i , j } ^ { ( r ) } \\right) } { \\sum _ { r ^ { \\prime } \\in \\mathcal { R } } \\sum _ { k \\in { n _ { i } ^ { ( r ^ { \\prime } ) } } } \\exp \\left( E _ { i , k } ^ { ( r ^ { \\prime } ) } \\right) } , \\forall i : \\sum _ { r \\in \\mathcal { R } } \\sum _ { j \\in { n _ { i } ^ { ( r ) } } } \\alpha _ { i , j } ^ { ( r ) } = 1 .\n$$",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 200,
505
+ 674,
506
+ 777,
507
+ 728
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "We call the attention in Equation (7) Equation (6) Across-Relation Graph Attention (ARGAT), and it is shown in Figure 2. This mechanism encodes the prior that relation importance is a local property of the graph by implementing a single probability distribution over the different representations $\\mathbf { \\Delta } _ { g _ { j } ^ { ( r ) } }$ for nodes $\\mathrm { j }$ in the neighborhood of node $i$ . Explicitly, for any node $i$ and all $r , r ^ { \\prime } \\in \\mathcal { R }$ , all nodes $j \\in n _ { i } ^ { ( r ) }$ and $k \\in \\mathcal { n } _ { i } ^ { ( r ^ { \\prime } ) }$ yield competing attention coefficients α(r)i,j and α(r )i,k with sizes depending on their corresponding representations $\\mathbf { \\Delta } _ { g _ { j } ^ { ( r ) } }$ and g(rk $\\pmb { g } _ { k } ^ { ( r ^ { \\prime } ) }$ ",
514
+ "bbox": [
515
+ 173,
516
+ 734,
517
+ 826,
518
+ 857
519
+ ],
520
+ "page_idx": 3
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Comparison to RGCN For comparison, the coefficients of RGCN are given by α(r)i,j $| n _ { i } ^ { ( r ) } | ^ { - 1 }$ . This encodes the prior that the intermediate representations of nodes $j \\in n _ { i } ^ { ( r ) }$ to node $i$ ",
525
+ "bbox": [
526
+ 174,
527
+ 873,
528
+ 825,
529
+ 924
530
+ ],
531
+ "page_idx": 3
532
+ },
533
+ {
534
+ "type": "image",
535
+ "img_path": "images/b51b37fc3f64eff99f9add08eebbdb9785410870141a6ca7965e0d2334b14044.jpg",
536
+ "image_caption": [
537
+ "Figure 3: (a) The network architecture used for node classification on AIFB and MUTAG. This architecture is the same as in Schlichtkrull et al. (2018) except with RGCNs replaced with RGATs. (b) The network architecture used for multi-task graph classification on Tox21. This architecture is the same as the GCNs architecture in Altae-Tran et al. (2016) except with RGCNs replaces with GATs and we do not use graph pooling. "
538
+ ],
539
+ "image_footnote": [],
540
+ "bbox": [
541
+ 261,
542
+ 98,
543
+ 785,
544
+ 208
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Propagation rule Combining the attention mechanism of either Equation (6) or Equation (7) with the neighborhood aggregation step of Schlichtkrull et al. (2018) gives ",
551
+ "bbox": [
552
+ 173,
553
+ 313,
554
+ 825,
555
+ 342
556
+ ],
557
+ "page_idx": 4
558
+ },
559
+ {
560
+ "type": "equation",
561
+ "img_path": "images/a871ee0006ab53936b1f7709b40dcd48dd4a3cf1027c738ac754af41edb02641.jpg",
562
+ "text": "$$\n\\pmb { h } _ { i } ^ { \\prime } = \\sigma \\left( \\sum _ { r \\in \\mathcal { R } } \\sum _ { j \\in { \\cal n } _ { i } ^ { ( r ) } } { \\alpha } _ { i , j } ^ { ( r ) } \\pmb { g } _ { j } ^ { ( r ) } \\right) \\in \\mathbb { R } ^ { N \\times F ^ { \\prime } } ,\n$$",
563
+ "text_format": "latex",
564
+ "bbox": [
565
+ 357,
566
+ 347,
567
+ 640,
568
+ 404
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "where $\\sigma$ represents an optional nonlinearity. Similar to Vaswani et al. (2017); Veličković et al. (2017), we also find that using multiple heads in the attention mechanism can enhance performance ",
575
+ "bbox": [
576
+ 174,
577
+ 406,
578
+ 825,
579
+ 446
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "equation",
585
+ "img_path": "images/b4f9ce5d93b12987b37e36fda88b7a5319cd323836e24ba59b51a1a2d56d96e0.jpg",
586
+ "text": "$$\n\\pmb { h } _ { i } ^ { \\prime } = \\bigoplus _ { k = 1 } ^ { K } \\sigma \\left( \\sum _ { r \\in \\mathcal { R } } \\sum _ { j \\in { \\cal n } _ { i } ^ { ( r ) } } \\alpha _ { i , j } ^ { ( r , k ) } \\pmb { g } _ { j } ^ { ( r , k ) } \\right) \\in \\mathbb { R } ^ { N \\times K F ^ { \\prime } } ,\n$$",
587
+ "text_format": "latex",
588
+ "bbox": [
589
+ 326,
590
+ 446,
591
+ 669,
592
+ 503
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "where $\\oplus$ denotes vector concatenation, $\\alpha _ { i , j } ^ { ( r , k ) }$ are the normalised attention coefficients under relation $r$ computed by either WIRGAT or ARGAT, and $\\pmb { g } _ { i } ^ { ( r , k ) } = \\pmb { h } _ { i }$ $\\left( \\boldsymbol { W } ^ { ( r , k ) } \\right) ^ { T }$ is the head specific intermediate representation of node $i$ under relation $r$ . ",
599
+ "bbox": [
600
+ 173,
601
+ 505,
602
+ 825,
603
+ 558
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "It might be interesting to consider cases where there are a different number of heads for different relationship types, as well as when a mixture of ARGAT and WIRGAT produce the attention coefficients, however, we leave that subject for future investigation and will not consider it further. ",
610
+ "bbox": [
611
+ 173,
612
+ 563,
613
+ 825,
614
+ 619
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Basis decomposition The number of parameters in the RGAT layer increases linearly with the number of relations $R$ and heads $K$ , and can lead quickly to overparameterisation. In RGCNs it was found that decomposing the kernels was beneficial for generalisation, although it comes at the cost of increased model bias (Schlichtkrull et al., 2018). We follow this approach, decomposing both the kernels $W ^ { ( r , k ) }$ as well as the kernels of attention mechanism $A ^ { ( r , k ) }$ into $B _ { V }$ basis matrices $V ^ { ( b ) } \\in \\mathbb { R } ^ { F \\times F ^ { \\prime } }$ and $B _ { X }$ basis vectors $\\pmb { X } ^ { ( b ) } \\in \\mathbb { R } ^ { 2 F ^ { \\prime } \\times D }$ ",
621
+ "bbox": [
622
+ 173,
623
+ 632,
624
+ 825,
625
+ 722
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "equation",
631
+ "img_path": "images/09b8270c3c79a7a10dde5f8780b5cc0afac07699fc87a8b4d4e9abce614dc03b.jpg",
632
+ "text": "$$\n{ \\pmb W } ^ { ( r , k ) } = \\sum _ { b = 1 } ^ { B _ { W } } c _ { b } ^ { ( r , k ) } { \\pmb V } ^ { ( b ) } , \\qquad { \\pmb A } ^ { ( r , k ) } = \\sum _ { b = 1 } ^ { B _ { X } } d _ { b } ^ { ( r , k ) } { \\pmb X } ^ { ( b ) } ,\n$$",
633
+ "text_format": "latex",
634
+ "bbox": [
635
+ 279,
636
+ 726,
637
+ 720,
638
+ 767
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "whe re c(r,k)b , d $c _ { b } ^ { ( r , k ) } , d _ { b } ^ { ( r , k ) } \\in \\mathbb { R }$ are basis coefficients. We consider models using full and decomposed $W$ and $\\pmb { A }$ . ",
645
+ "bbox": [
646
+ 173,
647
+ 772,
648
+ 825,
649
+ 804
650
+ ],
651
+ "page_idx": 4
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "2.2 Node classification ",
656
+ "text_level": 1,
657
+ "bbox": [
658
+ 174,
659
+ 819,
660
+ 382,
661
+ 834
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "For the transductive task of semi-supervised node classification, we employ a two-layer RGAT architecture shown in Figure 3a. We use a Rectified Linear Unit (ReLU) activation after the RGAT concat layer, and a node-wise softmax on the final layer to produce an estimate for the probability that the $i ^ { \\mathrm { t h } }$ label is in the class $\\alpha$ ",
668
+ "bbox": [
669
+ 173,
670
+ 844,
671
+ 825,
672
+ 901
673
+ ],
674
+ "page_idx": 4
675
+ },
676
+ {
677
+ "type": "equation",
678
+ "img_path": "images/5b79b43b00ed5c667b90a58145dea257b8b4f85342dc50ae4f571235c62e5efa.jpg",
679
+ "text": "$$\nP ( \\mathrm { c l a s s } _ { i } = \\alpha ) \\approx \\hat { y } _ { i , \\alpha } = \\mathrm { s o f t m a x } ( \\pmb { h } _ { i } ^ { ( 2 ) } ) _ { \\alpha } .\n$$",
680
+ "text_format": "latex",
681
+ "bbox": [
682
+ 359,
683
+ 905,
684
+ 637,
685
+ 925
686
+ ],
687
+ "page_idx": 4
688
+ },
689
+ {
690
+ "type": "table",
691
+ "img_path": "images/02f440a75975cc57780df2c00694cd5e2009b2b659dca8e4cd26ea76403ebc29.jpg",
692
+ "table_caption": [
693
+ "Table 1: A summary of the datasets used in our experiments and how they are partitioned. "
694
+ ],
695
+ "table_footnote": [],
696
+ "table_body": "<table><tr><td>Datasets</td><td>AIFB</td><td>MUTAG</td><td>Tox21</td></tr><tr><td>Task</td><td>Transductive</td><td>Transductive</td><td>Inductive</td></tr><tr><td>Nodes</td><td>8,285 (1 graph)</td><td>23,644 (1 graph)</td><td>145,459 (8014 graphs)</td></tr><tr><td>Edges</td><td>29,043</td><td>74,227</td><td>151,095</td></tr><tr><td>Relations</td><td>45</td><td>23</td><td>4</td></tr><tr><td>Labelled</td><td>176</td><td>340</td><td>96,168 (12 per graph)</td></tr><tr><td>Classes</td><td>4</td><td>2</td><td>12 (multi-label)</td></tr><tr><td>Train nodes</td><td>112</td><td>218</td><td>(6411 graphs)</td></tr><tr><td>Validation nodes</td><td>28</td><td>54</td><td>(801 graphs)</td></tr><tr><td>Test nodes</td><td>28</td><td>54</td><td>(802 graphs)</td></tr></table>",
697
+ "bbox": [
698
+ 212,
699
+ 127,
700
+ 779,
701
+ 282
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "We then employ a masked cross-entropy loss $\\mathcal { L }$ to constrain the network updates to the subset of nodes $y$ whose labels are known ",
708
+ "bbox": [
709
+ 178,
710
+ 303,
711
+ 821,
712
+ 332
713
+ ],
714
+ "page_idx": 5
715
+ },
716
+ {
717
+ "type": "equation",
718
+ "img_path": "images/d76d83741bda7f830df6d87e154e0e9789431aec8a58d6e6633f519350c6f5df.jpg",
719
+ "text": "$$\n\\mathcal { L } = - \\sum _ { i \\in \\mathcal { Y } } \\sum _ { \\alpha = 1 } ^ { n _ { \\mathrm { c l a s s e s } } } y _ { i , \\alpha } \\ln \\left( \\hat { y } _ { i , \\alpha } \\right) ,\n$$",
720
+ "text_format": "latex",
721
+ "bbox": [
722
+ 392,
723
+ 334,
724
+ 604,
725
+ 376
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "where ${ \\bf { { y } } } _ { i }$ is the one-hot representation of the true label for node $i$ . ",
732
+ "bbox": [
733
+ 174,
734
+ 377,
735
+ 647,
736
+ 392
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "2.3 Graph classification ",
743
+ "text_level": 1,
744
+ "bbox": [
745
+ 174,
746
+ 406,
747
+ 390,
748
+ 421
749
+ ],
750
+ "page_idx": 5
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "For inductive graph classification, we employ a two-layer RGAT followed by a graph gather and dense network architecture shown in Figure 3b. We use ReLU activations after each RGAT layer and the first dense layer. We use a tanh activation after the GraphGather : $\\mathbb { R } ^ { N \\times F } \\to \\mathbb { R } ^ { 2 F }$ , which is a vector concatenation of the mean of the node representations with the feature-wise max of the node representations ",
755
+ "bbox": [
756
+ 173,
757
+ 431,
758
+ 825,
759
+ 502
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "equation",
765
+ "img_path": "images/d26b74d490948f19e78b0e1e9257fb747412a7eb0bbb047c0f2cae11d4e66b61.jpg",
766
+ "text": "$$\nH ^ { \\prime } = \\mathrm { G r a p h G a t h e r } ( H ) = \\left( \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\pmb { h } _ { i } \\right) \\oplus \\left[ \\bigoplus _ { f = 1 } ^ { F } \\operatorname* { m a x } _ { i } \\pmb { h } _ { i , f } \\right] .\n$$",
767
+ "text_format": "latex",
768
+ "bbox": [
769
+ 290,
770
+ 505,
771
+ 709,
772
+ 554
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "The final dense layer then produces logits of the size $n _ { \\mathrm { c l a s s e s } } \\times n _ { \\mathrm { t a s k s } }$ , and we apply a task-wise softmax to its output to produce an estimate $\\hat { y } _ { t , \\alpha }$ for the probability that the graph is in class $\\alpha$ for a given task $t$ , analogous to Equation (11). Weighted cross-entropy loss $\\mathcal { L }$ is then used to form the learning objective ",
779
+ "bbox": [
780
+ 173,
781
+ 554,
782
+ 825,
783
+ 609
784
+ ],
785
+ "page_idx": 5
786
+ },
787
+ {
788
+ "type": "equation",
789
+ "img_path": "images/64b06b7f607749f9c0257d057ca7db0fb8cd3a02a3751462b025b7952a73d74d.jpg",
790
+ "text": "$$\n\\mathcal { L } ( w , y , \\hat { y } ) = - \\sum _ { t = 1 } ^ { n _ { \\mathrm { t a s k s } } } \\sum _ { \\alpha = 1 } ^ { n _ { \\mathrm { c l a s s e s } } } w _ { t , \\alpha } y _ { t , \\alpha } \\ln \\left( \\hat { y } _ { t , \\alpha } \\right) ,\n$$",
791
+ "text_format": "latex",
792
+ "bbox": [
793
+ 341,
794
+ 612,
795
+ 655,
796
+ 652
797
+ ],
798
+ "page_idx": 5
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "where $w _ { t , \\alpha }$ and $y _ { t , \\alpha }$ are the weights and one-hot true labels for task $t$ and class $\\alpha$ respectivel ",
803
+ "bbox": [
804
+ 176,
805
+ 654,
806
+ 797,
807
+ 667
808
+ ],
809
+ "page_idx": 5
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "3 Evaluation ",
814
+ "text_level": 1,
815
+ "bbox": [
816
+ 174,
817
+ 685,
818
+ 318,
819
+ 703
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "3.1 Datasets ",
826
+ "text_level": 1,
827
+ "bbox": [
828
+ 174,
829
+ 717,
830
+ 290,
831
+ 731
832
+ ],
833
+ "page_idx": 5
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "We evaluate the models on transductive and inductive tasks. Following the experimental setup of Schlichtkrull et al. (2018) for the transductive tasks, we evaluate our model on the Resource Description Framework (RDF) datasets AIFB and MUTAG. We also evaluate our model for an inductive task on the molecular dataset, Tox21. Details of these data sets are given in Table 1. For further details on the transductive and inductive datasets, please see Ristoski and Paulheim (2016) and Wu et al. (2018) respectively. ",
838
+ "bbox": [
839
+ 173,
840
+ 742,
841
+ 825,
842
+ 827
843
+ ],
844
+ "page_idx": 5
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "Transductive baselines We consider as a baseline the recent state-of-the-art results from Schlichtkrull et al. (2018) obtained with a two-layer RGCN model with 16 hidden units and basis function decomposition. We also include the same challenging baselines of FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015) and RDF2Vec (Ristoski and Paulheim, 2016). In-depth details of these baselines are given by Ristoski and Paulheim (2016). ",
849
+ "bbox": [
850
+ 173,
851
+ 839,
852
+ 825,
853
+ 924
854
+ ],
855
+ "page_idx": 5
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "Inductive baselines As baselines for Tox21, we compare against the most competitive methods on Tox21 reported in Wu et al. (2018). Specifically, we compare against deep multitask networks Ramsundar et al. (2015), deep bypass multitask networks Wu et al. (2018), Weave Kearnes et al. (2016), and a RGCN model whose relational structure is determined by the degree of the node to be updated Altae-Tran et al. (2016). Specifically, up to and including some maximum degree $D _ { \\mathrm { m a x } }$ , ",
860
+ "bbox": [
861
+ 174,
862
+ 103,
863
+ 825,
864
+ 188
865
+ ],
866
+ "page_idx": 6
867
+ },
868
+ {
869
+ "type": "equation",
870
+ "img_path": "images/5a84d77620531500cc4029f1c4bb90856aa7979ec746d6256274036ae82494b0.jpg",
871
+ "text": "$$\n\\pmb { h } _ { i } ^ { \\prime } = \\sigma \\left[ ( W ^ { \\mathrm { d e g ( i ) } } ) ^ { T } \\pmb { h } _ { i } + \\sum _ { j \\in \\mathcal { n } _ { i } } ( U ^ { \\mathrm { d e g ( i ) } } ) ^ { T } \\pmb { h } _ { j } + b ^ { \\mathrm { d e g } ( i ) } \\right] ,\n$$",
872
+ "text_format": "latex",
873
+ "bbox": [
874
+ 310,
875
+ 194,
876
+ 687,
877
+ 242
878
+ ],
879
+ "page_idx": 6
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "where $W ^ { \\mathrm { d e g } ( i ) } ~ \\in ~ \\mathbb { R } ^ { F \\times F ^ { \\prime } }$ is a degree-specific linear transformation for self-connections, $U ^ { \\mathrm { d e g ( i ) } } ~ \\in ~ \\mathbb { R } ^ { F \\times F ^ { \\prime } }$ is a degree-specific linear transformation for neighbours into their intermediate representations $g _ { i } \\in \\mathbb { R } ^ { F ^ { \\prime } }$ , and $\\boldsymbol { b } ^ { \\mathrm { d e g } ( i ) }$ is a degree-specific bias. Any update for any degree $d ( i ) > D _ { \\operatorname* { m a x } }$ gets assigned to the update for the maximum degree $D _ { \\mathrm { m a x } }$ . ",
884
+ "bbox": [
885
+ 174,
886
+ 250,
887
+ 826,
888
+ 311
889
+ ],
890
+ "page_idx": 6
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "3.2 Experimental setup ",
895
+ "text_level": 1,
896
+ "bbox": [
897
+ 174,
898
+ 327,
899
+ 382,
900
+ 342
901
+ ],
902
+ "page_idx": 6
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Transductive learning For the transductive learning tasks, the architecture discussed in Section 2.2 was applied. Its hyperparameters were optimised for both AIFB and MUTAG on their respective training/validation sets defined in Ristoski and Paulheim (2016), using 5-fold cross validation. Using the found hyperparameters, we retrain on the full training set and report results on the test set across 200 seeds. We employ early stopping on the validation set during cross-validation to determine the number of epochs we will run on the final training set. Hyperparameter optimisation details are given in Table 4 of Appendix B. ",
907
+ "bbox": [
908
+ 174,
909
+ 352,
910
+ 825,
911
+ 450
912
+ ],
913
+ "page_idx": 6
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Inductive learning For the inductive learning tasks, the architecture discussed in Section 2.3 was applied. In order to optimise hyperparameters once, ensure no data leakage, but also provide comparable benchmarks to those presented in Wu et al. (2018), three benchmark splits were taken from the MolNet benchmarks4, and graphs belonging to any of the test sets were isolated. Using the remaining graphs we performed a hyperparameter search using 2 folds of 10-fold cross validation. Using the found hyperparameters, we then retrained on the three benchmark splits provided with 2 seeds each, giving an unbiased estimate of model performance. We employ early stopping during both the cross-validation and final run (the validation set of the inductive task is available for the final benchmark, in contrast to the transductive tasks) to determine the number of training epochs. Hyperparameter optimisation details are given in Table 5 of Appendix B. ",
918
+ "bbox": [
919
+ 174,
920
+ 465,
921
+ 825,
922
+ 618
923
+ ],
924
+ "page_idx": 6
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Constant attention In all experiments, we train with the attention mechanism turned on. At evaluation time, however, we report results with and without the attention mechanism to provide insight into whether the attention mechanism helps. ARGAT (WIRGAT) without the attention is called C-ARGAT (C-WIRGAT). ",
929
+ "bbox": [
930
+ 174,
931
+ 633,
932
+ 825,
933
+ 689
934
+ ],
935
+ "page_idx": 6
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "3.3 Results ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 705,
944
+ 281,
945
+ 719
946
+ ],
947
+ "page_idx": 6
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "3.3.1 Benchmarks and additional analyses ",
952
+ "text_level": 1,
953
+ "bbox": [
954
+ 174,
955
+ 732,
956
+ 540,
957
+ 746
958
+ ],
959
+ "page_idx": 6
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "Model means and standard deviations are presented in Table 2. To provide a picture of characteristic model behaviour, the CDFs for the hyperparameter sweep are presented in Figure 5 of Appendix D. To draw meaningful conclusions, we compare against our own implementation of RGCN rather than the results reported in Schlichtkrull et al. (2018); Wu et al. (2018). ",
964
+ "bbox": [
965
+ 174,
966
+ 755,
967
+ 825,
968
+ 825
969
+ ],
970
+ "page_idx": 6
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "We will occasionally employ a one-sided hypothesis test in order to make concrete statements about model performance. The details and complete results of this test are presented in Appendix E. When we refer to significant results this corresponds to a test statistic supporting our hypothesis with a $p -$ value $p \\leq 0 . 0 5$ . ",
975
+ "bbox": [
976
+ 174,
977
+ 832,
978
+ 823,
979
+ 888
980
+ ],
981
+ "page_idx": 6
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Table 2: (a) Entity classification results accuracy (mean and standard deviation over 10 seeds) for FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015), RDF2Vec (Ristoski and Paulheim, 2016) and RGCN (Schlichtkrull et al., 2018), and (mean and standard deviation over 200 seeds) for our implementation of RGCN, as well as additive and multiplicative attention for (C-)WIRGAT and (C-)WIRGAT (this work). Test performance is reported on the splits provided in Ristoski and Paulheim (2016). (b) Graph classification mean Receiver Operating Characteristic (ROC) Area Under the Curve (AUC) across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), and (mean and standard deviation over 3 splits, 2 seeds per split) our implementation of RGCN, additive and multiplicative attention for (C-)WIRGAT and (C-)ARGAT (this work). Test performance is reported on the splits provided in Wu et al. (2018). Best performance in class in boldened, and best performance overall is underlined. For completeness, we present the training and validation mean ROC-AUCs alongside the test ROC-AUCs in Appendix A. For a graphical representation of these results, see Figure 4 in Appendix C. ",
986
+ "bbox": [
987
+ 173,
988
+ 101,
989
+ 825,
990
+ 321
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "table",
996
+ "img_path": "images/66f938176ccfcc06990b9a88193815822674bc7813f6a5053928feaaccf6b201.jpg",
997
+ "table_caption": [],
998
+ "table_footnote": [
999
+ "(a) Transductive "
1000
+ ],
1001
+ "table_body": "<table><tr><td>Model</td><td>AIFB</td><td>MUTAG</td></tr><tr><td>Feat</td><td>55.55 ± 0.00 80.55 ± 0.00</td><td>77.94 ± 0.00 80.88 ± 0.00</td></tr><tr><td>WL RDF2Vec</td><td>88.88 ±0.00</td><td>67.20 ± 1.24</td></tr><tr><td>RGCN</td><td>95.83 ± 0.62</td><td>73.23 ± 0.48</td></tr><tr><td>RGCN (ours)</td><td>94.64 ±2.75</td><td>74.15 ± 2.40</td></tr><tr><td colspan=\"3\">Additive attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>96.86 ± 0.94 96.83 ± 1.01</td><td>69.37 ± 2.75 69.83 ± 2.74</td></tr><tr><td>C-ARGAT</td><td>93.05 ± 3.05</td><td>63.69 ± 8.41</td></tr><tr><td>ARGAT</td><td>94.01 ± 2.76</td><td>65.54 ± 6.25</td></tr><tr><td colspan=\"3\">Multiplicative attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>93.71 ± 3.33 92.92 ± 3.75</td><td>69.57 ± 3.70</td></tr><tr><td>C-ARGAT</td><td>95.89 ± 1.93 96.19 ± 1.70</td><td>69.60 ± 3.75 74.38 ± 3.78 73.17 ± 3.41</td></tr></table>",
1002
+ "bbox": [
1003
+ 173,
1004
+ 334,
1005
+ 514,
1006
+ 608
1007
+ ],
1008
+ "page_idx": 7
1009
+ },
1010
+ {
1011
+ "type": "table",
1012
+ "img_path": "images/c4dfd5a451a9b1cfee5e88cd56d26c6ff22742dbedfd60b8b6789e2e9cfe993f.jpg",
1013
+ "table_caption": [],
1014
+ "table_footnote": [
1015
+ "(b) Inductive "
1016
+ ],
1017
+ "table_body": "<table><tr><td>Model</td><td>Tox21</td></tr><tr><td>Multitask</td><td>0.803 ± 0.012</td></tr><tr><td>Bypass</td><td>0.810 ± 0.013</td></tr><tr><td>Weave RGCN</td><td>0.820 ± 0.010 0.829 ±0.006</td></tr><tr><td>RGCN (ours)</td><td>0.835 士 0.008</td></tr><tr><td>Additive attention</td><td></td></tr><tr><td>C-WIRGAT</td><td>0.832 ± 0.009</td></tr><tr><td>WIRGAT</td><td>0.835 ± 0.006</td></tr><tr><td>C-ARGAT</td><td>0.829 ± 0.010</td></tr><tr><td>ARGAT</td><td>0.835 ±0.006</td></tr><tr><td>Multiplicative</td><td>attention</td></tr><tr><td>C-WIRGAT WIRGAT</td><td>0.811 ± 0.008 0.838 ± 0.007</td></tr><tr><td>C-ARGAT ARGAT</td><td>0.802 ± 0.007 0.837 ± 0.007</td></tr></table>",
1018
+ "bbox": [
1019
+ 544,
1020
+ 334,
1021
+ 784,
1022
+ 609
1023
+ ],
1024
+ "page_idx": 7
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "3.3.2 Transductive learning ",
1029
+ "text_level": 1,
1030
+ "bbox": [
1031
+ 176,
1032
+ 661,
1033
+ 423,
1034
+ 676
1035
+ ],
1036
+ "page_idx": 7
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "In Table 2a we evaluate RGAT on MUTAG and AIFB. With additive attention, WIRGAT outperforms ARGAT, consistent with Schlichtkrull et al. (2018). Interestingly, when employing multiplicative attention, the converse appears true. For node classification tasks on RDF data, this indicates that the importance of a particular relation type does not vary much (if at all) across the graph unless one employs a multiplicative comparison $^ 5$ between node representations. ",
1041
+ "bbox": [
1042
+ 174,
1043
+ 686,
1044
+ 825,
1045
+ 770
1046
+ ],
1047
+ "page_idx": 7
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "AIFB On AIFB, the best to worst performing models are: 1) additive WIRGAT 2) multiplicative ARGAT 3) RGCN 4) additive ARGAT, and 5) multiplicative WIRGAT, with each comparison being significant. ",
1052
+ "bbox": [
1053
+ 176,
1054
+ 789,
1055
+ 821,
1056
+ 832
1057
+ ],
1058
+ "page_idx": 7
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "When comparing against their constant attention counterparts, the significant differences observed were for additive and multiplicative ARGAT, where attention gives a relative mean performance improvements of $1 . 0 3 \\%$ and $0 . 3 1 \\%$ respectively, and multiplicative WIRGAT, where attention gives a relative mean performance drop of $0 . 8 4 \\%$ . ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 838,
1066
+ 825,
1067
+ 893
1068
+ ],
1069
+ "page_idx": 7
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Although we present state-of-the art result on AIFB with additive WIRGAT, since its performance with and without attention are not significantly different, it is unlikely that this is due to the attention mechanism itself, at least at inference time. Over the hyperparameter space, additive WIRGAT and RGCN are comparable in performance (see Figure 5a in Appendix D), leading us to conclude that the result is more likely attributable to finding a better hyperparameter point for additive WIRGAT during the search. ",
1074
+ "bbox": [
1075
+ 174,
1076
+ 103,
1077
+ 825,
1078
+ 188
1079
+ ],
1080
+ "page_idx": 8
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "MUTAG On MUTAG, the best to worst performing models are: 1) RGCN 2) multiplicative ARGAT 3) additive WIRGAT tied with multiplicative WIRGAT, and 4) additive ARGAT, with each comparison being significant. ",
1085
+ "bbox": [
1086
+ 176,
1087
+ 203,
1088
+ 823,
1089
+ 246
1090
+ ],
1091
+ "page_idx": 8
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "When comparing against their constant attention counterparts, the significant differences observed were for additive WIRGAT and ARGAT, where attention gives relative mean performance improvements of $0 . 6 6 \\%$ and $2 . 9 0 \\%$ respectively, and multiplicative ARGAT, where attention gives a relative mean performance drop of $1 . 6 3 \\%$ . ",
1096
+ "bbox": [
1097
+ 174,
1098
+ 253,
1099
+ 825,
1100
+ 308
1101
+ ],
1102
+ "page_idx": 8
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "We note that RGCN consistently outperforms RGAT on MUTAG, contrary to what might be expected (Schlichtkrull et al., 2018). The result is surprising given that RGCN lies within the parameter space of RGAT (where the attention kernel is zero), a configuration we check through evaluating C-WIRGAT. In our experiments we have observed that both RGCN and RGAT can memorise the MUTAG training set with $1 0 0 \\%$ accuracy without difficulty (this is not the case for AIFB). The performance gap between RGCN and RGAT could then be explained by the following: ",
1107
+ "bbox": [
1108
+ 174,
1109
+ 315,
1110
+ 825,
1111
+ 412
1112
+ ],
1113
+ "page_idx": 8
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "- During training, the RGAT layer uses its attention mechanism to solve the learning objective. Once the objective is solved, the model is not encouraged by the loss function to seek a point in the parameter space that would also behave well when attention is set to a normalising constant within neighbourhoods (i.e. the parameter space point that would be found by RGCN). \nThe RDF tasks are transductive, meaning that a basis-dependent spectral approach \nis sufficient to solve them. As RGCN already memorises the MUTAG training set, a model more complex $\\cdot$ than RGCN, for example RGAT, that can also memorise the training set is unlikely to generalise as well, although this is a hotly debated topic - see e.g. Zhang et al. (2016). ",
1118
+ "bbox": [
1119
+ 217,
1120
+ 424,
1121
+ 825,
1122
+ 571
1123
+ ],
1124
+ "page_idx": 8
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "We employed a suite of regularisation techniques to get RGAT to generalise on MUTAG, including L2-norm penalties, dropout in multiple places, batch normalisation, parameter reduction and early stopping, however, no evaluated harshly regularised points for RGAT generalise well on MUTAG. ",
1129
+ "bbox": [
1130
+ 176,
1131
+ 583,
1132
+ 825,
1133
+ 638
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Our final observation is that the attention mechanism presented in Section 2.1 relies on node features. The node features for the above tasks are learned from scratch (the input feature matrix is a one-hot node index) as part of the task. It is possible that in this semi-supervised setup, there is insufficient signal in the data to learn both the input node embeddings as well as a meaningful attention mechanism to act upon them. ",
1140
+ "bbox": [
1141
+ 174,
1142
+ 646,
1143
+ 825,
1144
+ 715
1145
+ ],
1146
+ "page_idx": 8
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "3.3.3 Inductive learning ",
1151
+ "text_level": 1,
1152
+ "bbox": [
1153
+ 176,
1154
+ 732,
1155
+ 390,
1156
+ 746
1157
+ ],
1158
+ "page_idx": 8
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "In Table 2b we evaluate RGAT on Tox21. The number of samples is lower for these evaluations than for the transductive tasks, and so fewer model comparisons will be accompanied with a reasonable significance, although there are still some conclusions we can draw. ",
1163
+ "bbox": [
1164
+ 174,
1165
+ 756,
1166
+ 825,
1167
+ 799
1168
+ ],
1169
+ "page_idx": 8
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Through a thorough hyperparameter search, and incorporating various regularisation techniques, we obtained the relative mean performance of $0 . 7 2 \\%$ for RGCN compared to the result reported in Wu et al. (2018), providing a much stronger baseline. ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 806,
1177
+ 825,
1178
+ 848
1179
+ ],
1180
+ "page_idx": 8
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Both additive attention models match the performance of RGCN, whereas multiplicative WIRGAT and ARGAT marginally outperform RGCN, although this is not significant $p = 0 . 2 4$ and $p = 0 . 4 1$ respectively). ",
1185
+ "bbox": [
1186
+ 176,
1187
+ 854,
1188
+ 823,
1189
+ 897
1190
+ ],
1191
+ "page_idx": 8
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "When comparing against their constant attention counterparts, significant differences observed were for multiplicative WIRGAT and ARGAT, where attention gives a relative mean performance improvements of $3 . 3 3 \\%$ and $4 . 3 6 \\%$ respectively. We do not observe any significant gains coming from additive attention when compared to their constant counterparts. ",
1196
+ "bbox": [
1197
+ 174,
1198
+ 104,
1199
+ 823,
1200
+ 159
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "4 Conclusion ",
1207
+ "text_level": 1,
1208
+ "bbox": [
1209
+ 176,
1210
+ 179,
1211
+ 320,
1212
+ 195
1213
+ ],
1214
+ "page_idx": 9
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "We have investigated a class of models we call Relational Graph Attention Networks (RGATs). These models act upon graph structures, inducing a masked self-attention that takes account of local relational structure as well as node features. This allows both nodes and their properties under specific relations to be dynamically assigned an importance for different nodes in the graph, and opens up graph attention mechanisms to a wider variety of problems. ",
1219
+ "bbox": [
1220
+ 174,
1221
+ 212,
1222
+ 825,
1223
+ 281
1224
+ ],
1225
+ "page_idx": 9
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "We evaluted two specific attention mechanisms, Within-Relation Graph Attention (WIRGAT) and Across-Relation Graph Attention (ARGAT), under both an additive and multiplicative logit construction, and compared them to their equivalently evaluated spectral counterpart Relational Graph Convolutional Networks (RGCNs). ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 287,
1233
+ 825,
1234
+ 344
1235
+ ],
1236
+ "page_idx": 9
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "We find RGATs perform competitively or poorly on established baselines. This behavior appears strongly task-dependent. Specifically, relational inductive tasks such as graph classification benefit from multiplicative ARGAT, whereas transductive relational tasks, such as knowledge base completion, at least in the absence of node features, are better tackled using spectral methods like RGCNs or other graph feature extraction methods like Weisfeiler-Lehman (WL) graph kernels. ",
1241
+ "bbox": [
1242
+ 174,
1243
+ 352,
1244
+ 825,
1245
+ 435
1246
+ ],
1247
+ "page_idx": 9
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "In general we have found that WIRGAT should be paired with an additive logit mechanism, and fares marginally better than ARGAT on transductive tasks, whereas ARGAT should be paired with a multiplicative logit mechanism, and fares marginally better on inductive tasks. ",
1252
+ "bbox": [
1253
+ 174,
1254
+ 441,
1255
+ 825,
1256
+ 497
1257
+ ],
1258
+ "page_idx": 9
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "We have found no cases where choosing any variation of RGAT is guaranteed to significantly outperform RGCN, although we have found that in cases where RGCN can memorise the training set, we are confident that RGAT will not perform as well as RGCN. Consequently, we suggest that before attempting to train RGAT, a good first test is to inspect the training set performance of RGCN. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 503,
1266
+ 825,
1267
+ 574
1268
+ ],
1269
+ "page_idx": 9
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Through our thorough evaluation and presentation of the behaviours and limitations of these models, insights can be derived that will enable the discovery of more powerful model architectures that act upon relational structures. Observing that model variance on all of the tasks presented here is high, any future work developing and expanding these methods must choose larger, more challenging datasets. In addition, a comparison between the generalisation of spectral methods, like those presented here, and generalisations of Recurrent Neural Networks (RNNs), like Gated Graph Sequence Networks, is a necessary ingredient for determining the most promising future direction for these models. ",
1274
+ "bbox": [
1275
+ 174,
1276
+ 582,
1277
+ 825,
1278
+ 693
1279
+ ],
1280
+ "page_idx": 9
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "References ",
1285
+ "text_level": 1,
1286
+ "bbox": [
1287
+ 176,
1288
+ 713,
1289
+ 290,
1290
+ 729
1291
+ ],
1292
+ "page_idx": 9
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Allamanis, M., M. Brockschmidt, and M. Khademi 2017. Learning to represent programs with graphs. CoRR, abs/1711.00740. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 737,
1300
+ 730,
1301
+ 766
1302
+ ],
1303
+ "page_idx": 9
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Altae-Tran, H., B. Ramsundar, A. S. Pappu, and V. Pande 2016. Low Data Drug Discovery with One-shot Learning. Pp. 1–20. ",
1308
+ "bbox": [
1309
+ 176,
1310
+ 776,
1311
+ 678,
1312
+ 805
1313
+ ],
1314
+ "page_idx": 9
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Atwood, J. and D. Towsley 2016. Diffusion-Convolutional Neural Networks. (Nips). ",
1319
+ "bbox": [
1320
+ 173,
1321
+ 814,
1322
+ 589,
1323
+ 843
1324
+ ],
1325
+ "page_idx": 9
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Bergstra, J., D. Yamins, and D. Cox 2013. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. In Proceedings of the 30th International Conference on Machine Learning, S. Dasgupta and D. McAllester, eds., volume 28 of Proceedings of Machine Learning Research, Pp. 115–123, Atlanta, Georgia, USA. PMLR. ",
1330
+ "bbox": [
1331
+ 174,
1332
+ 854,
1333
+ 826,
1334
+ 924
1335
+ ],
1336
+ "page_idx": 9
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Bronstein, M. M., J. Bruna, Y. Lecun, A. Szlam, and P. Vandergheynst 2017. Geometric Deep Learning: Going beyond Euclidean data. IEEE Signal Processing Magazine, 34(4):18–42. \nBruna, J., W. Zaremba, A. Szlam, and Y. LeCun 2013. Spectral Networks and Locally Connected Networks on Graphs. Pp. 1–14. \nde Vries, G. K. D. and S. de Rooij 2015. Substructure counting graph kernels for machine learning from rdf data. Web Semant., 35(P2):71–84. \nDefferrard, M., X. Bresson, and P. Vandergheynst 2016. Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering. (Nips). \nDonahue, J., L. A. Hendricks, M. Rohrbach, S. Venugopalan, S. Guadarrama, K. Saenko, and T. Darrell 2017. Long-Term Recurrent Convolutional Networks for Visual Recognition and Description. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(4):677–691. \nDuvenaud, D., D. Maclaurin, J. Aguilera-Iparraguirre, R. Gómez-Bombarelli, T. Hirzel, A. Aspuru-Guzik, and R. P. Adams 2015. Convolutional Networks on Graphs for Learning Molecular Fingerprints. \nFrasconi, P., V. D. S. Marta, M. Gori, V. Roma, and A. Sperduti 1997. On the efficient classification of data structures by neural networks. \nGavish, M., B. Nadler, R. R. Coifman, and N. Haven 2010. Multiscale Wavelets on Trees, Graphs and High Dimensional Data: Theory and Applications to Semi-Supervised Learning. Icml, (i):367–374. \nGong, L. and Q. Cheng 2018. Adaptive Edge Features Guided Graph Attention Networks. \nGori, M., M. Maggini, and L. Sarti 2005. Exact and approximate graph matching using random walks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 27(7):1100–1111. \nHenaff, M., J. Bruna, and Y. LeCun 2015. Deep Convolutional Networks on Graph-Structured Data. Pp. 1–10. \nKarpathy, A., G. Toderici, S. Shetty, T. Leung, R. Sukthankar, and F. F. Li 2014. Large-scale video classification with convolutional neural networks. Proc. IEEE CVPR. \nKearnes, S., K. McCloskey, M. Berndl, V. Pande, and P. Riley 2016. Molecular graph convolutions: moving beyond fingerprints. J. Comput. Aided. Mol. Des., 30(8):595–608. \nKingma, D. P. and J. Ba 2014. Adam: A method for stochastic optimization. CoRR, abs/1412.6980. \nKipf, T. N. and M. Welling 2016. Semi-Supervised Classification with Graph Convolutional Networks. \nLee, J. B., R. A. Rossi, S. Kim, N. K. Ahmed, and E. Koh 2018. Attention Models in Graphs: A Survey. 0(1). \nMann, H. B. and D. R. Whitney 1947. On a test of whether one of two random variables is stochastically larger than the other. Ann. Math. Statist., 18(1):50–60. ",
1341
+ "bbox": [
1342
+ 171,
1343
+ 80,
1344
+ 828,
1345
+ 928
1346
+ ],
1347
+ "page_idx": 10
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Monti, F., D. Boscaini, J. Masci, E. Rodolà, J. Svoboda, and M. M. Bronstein 2017. Geometric deep learning on graphs and manifolds using mixture model CNNs. In Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, volume 2017-January, Pp. 5425–5434. ",
1352
+ "bbox": [
1353
+ 173,
1354
+ 103,
1355
+ 828,
1356
+ 160
1357
+ ],
1358
+ "page_idx": 11
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Monti, F., O. Shchur, A. Bojchevski, O. Litany, S. Günnemann, and M. M. Bronstein 2018. Dual-Primal Graph Convolutional Networks. Pp. 1–11. ",
1363
+ "bbox": [
1364
+ 171,
1365
+ 167,
1366
+ 789,
1367
+ 198
1368
+ ],
1369
+ "page_idx": 11
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Paulheim, H. and J. Fümkranz 2012. Unsupervised generation of data mining features from linked open data. In Proc. 2nd Int. Conf. Web Intell. Min. Semant. - WIMS ’12, P. 1, New York, New York, USA. ACM Press. ",
1374
+ "bbox": [
1375
+ 179,
1376
+ 205,
1377
+ 828,
1378
+ 262
1379
+ ],
1380
+ "page_idx": 11
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "Ramsundar, B., S. Kearnes, P. Riley, D. Webster, D. Konerding, and V. Pande 2015. Massively Multitask Networks for Drug Discovery. (Icml). ",
1385
+ "bbox": [
1386
+ 173,
1387
+ 271,
1388
+ 740,
1389
+ 300
1390
+ ],
1391
+ "page_idx": 11
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Ristoski, P. and H. Paulheim 2016. RDF2Vec: RDF graph embeddings for data mining. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 9981 LNCS, Pp. 498–514. ",
1396
+ "bbox": [
1397
+ 179,
1398
+ 309,
1399
+ 826,
1400
+ 364
1401
+ ],
1402
+ "page_idx": 11
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Rustamov, R. and L. Guibas 2013. Wavelets on graphs via deep learning. Nips, Pp. 1–9. ",
1407
+ "bbox": [
1408
+ 173,
1409
+ 373,
1410
+ 620,
1411
+ 402
1412
+ ],
1413
+ "page_idx": 11
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Scarselli, F., M. Gori, A. C. Tsoi, M. Hagenbuchner, and G. Monfardini 2009. The graph neural network model. Trans. Neur. Netw., 20(1):61–80. ",
1418
+ "bbox": [
1419
+ 173,
1420
+ 410,
1421
+ 715,
1422
+ 439
1423
+ ],
1424
+ "page_idx": 11
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Schlichtkrull, M., T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling 2018. Modeling Relational Data with Graph Convolutional Networks. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), volume 10843 LNCS, Pp. 593–607. ",
1429
+ "bbox": [
1430
+ 178,
1431
+ 446,
1432
+ 825,
1433
+ 505
1434
+ ],
1435
+ "page_idx": 11
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "Shervashidze, N., P. Schweitzer, E. Jan van Leeuwen, K. Mehlhorn, and K. Borgwardt 2011. Weisfeiler-Lehman Graph Kernels. J. Mach. Learn. Res., 12:2539–2561. ",
1440
+ "bbox": [
1441
+ 174,
1442
+ 512,
1443
+ 792,
1444
+ 542
1445
+ ],
1446
+ "page_idx": 11
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "Sperduti, A. and A. Starita 1997. Supervised neural networks for the classification of structures. IEEE transactions on neural networks / a publication of the IEEE Neural Networks Council, 8:714–35. ",
1451
+ "bbox": [
1452
+ 176,
1453
+ 550,
1454
+ 828,
1455
+ 593
1456
+ ],
1457
+ "page_idx": 11
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "Szlam, A. D., M. Maggioni, R. R. Coifman, and J. C. BremerJr. 2005. Diffusion-driven multiscale analysis on manifolds and graphs: top-down and bottomup constructions. P. 59141D. ",
1462
+ "bbox": [
1463
+ 173,
1464
+ 602,
1465
+ 828,
1466
+ 645
1467
+ ],
1468
+ "page_idx": 11
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "Vaswani, A., N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin 2017. Attention is all you need. CoRR, abs/1706.03762. ",
1473
+ "bbox": [
1474
+ 173,
1475
+ 652,
1476
+ 825,
1477
+ 696
1478
+ ],
1479
+ "page_idx": 11
1480
+ },
1481
+ {
1482
+ "type": "text",
1483
+ "text": "Veličković, P., G. Cucurull, A. Casanova, A. Romero, P. Liò, and Y. Bengio 2017. Graph Attention Networks. ",
1484
+ "bbox": [
1485
+ 176,
1486
+ 704,
1487
+ 717,
1488
+ 733
1489
+ ],
1490
+ "page_idx": 11
1491
+ },
1492
+ {
1493
+ "type": "text",
1494
+ "text": "Wang, Y., Y. Sun, Z. Liu, S. E. Sarma, M. M. Bronstein, and J. M. Solomon 2018. Dynamic Graph CNN for Learning on Point Clouds. Technical report. ",
1495
+ "bbox": [
1496
+ 173,
1497
+ 741,
1498
+ 735,
1499
+ 770
1500
+ ],
1501
+ "page_idx": 11
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "Wu, Z., B. Ramsundar, E. N. Feinberg, J. Gomes, C. Geniesse, A. S. Pappu, K. Leswing, and V. Pande 2018. MoleculeNet: A benchmark for molecular machine learning. Chemical Science, 9(2):513–530. ",
1506
+ "bbox": [
1507
+ 173,
1508
+ 779,
1509
+ 828,
1510
+ 835
1511
+ ],
1512
+ "page_idx": 11
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "Zhang, C., S. Bengio, M. Hardt, B. Recht, and O. Vinyals 2016. Understanding deep learning requires rethinking generalization. CoRR, abs/1611.03530. ",
1517
+ "bbox": [
1518
+ 171,
1519
+ 843,
1520
+ 831,
1521
+ 886
1522
+ ],
1523
+ "page_idx": 11
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "Zhang, J., X. Shi, J. Xie, H. Ma, I. King, and D.-Y. Yeung 2018. GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphs. ",
1528
+ "bbox": [
1529
+ 174,
1530
+ 895,
1531
+ 823,
1532
+ 924
1533
+ ],
1534
+ "page_idx": 11
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "A Tox21 Results ",
1539
+ "text_level": 1,
1540
+ "bbox": [
1541
+ 176,
1542
+ 102,
1543
+ 356,
1544
+ 118
1545
+ ],
1546
+ "page_idx": 12
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "For completeness, we present the training, validation and test set performance of our models in addition to those in Wu et al. (2018) in Table 3. ",
1551
+ "bbox": [
1552
+ 174,
1553
+ 132,
1554
+ 821,
1555
+ 161
1556
+ ],
1557
+ "page_idx": 12
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "Table 3: Graph classification mean Area Under the Curve (AUC) across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), our implementation of RGCN, additive and multiplicative attention versions of WIRGAT and ARGAT (this work). Training, validation and test performance is reported on the splits provided in Wu et al. (2018). Best performance in class in boldened, and best performance overall is underlined. ",
1562
+ "bbox": [
1563
+ 173,
1564
+ 174,
1565
+ 825,
1566
+ 272
1567
+ ],
1568
+ "page_idx": 12
1569
+ },
1570
+ {
1571
+ "type": "table",
1572
+ "img_path": "images/9f063f98d241dd9dd1f43327cd85840e87bbbe67ae95fccf10b22282edce9c40.jpg",
1573
+ "table_caption": [],
1574
+ "table_footnote": [],
1575
+ "table_body": "<table><tr><td>Model</td><td>Training</td><td>Validation</td><td>Test</td></tr><tr><td>Multitask</td><td>0.884± 0.001</td><td>0.795 ± 0.017</td><td>0.803 ± 0.012</td></tr><tr><td>Bypass</td><td>0.938 ± 0.001</td><td>0.800 ±0.008</td><td>0.810 ± 0.013</td></tr><tr><td>Weave</td><td>0.875 ± 0.004</td><td>0.828 ±0.008</td><td>0.820 ± 0.010</td></tr><tr><td>RGCN</td><td>0.905 ± 0.004</td><td>0.825 ± 0.013</td><td>0.829 ± 0.006</td></tr><tr><td>RGCN (ours)</td><td>0.883 ± 0.010</td><td>0.845 ±0.003</td><td>0.835 ±0.008</td></tr><tr><td colspan=\"4\">Additive attention</td></tr><tr><td>C-WIRGAT</td><td>0.897 ± 0.022</td><td>0.842 ± 0.004</td><td>0.832 ± 0.009</td></tr><tr><td>WIRGAT</td><td>0.902 ± 0.024</td><td>0.845 ± 0.005</td><td>0.835 ± 0.006</td></tr><tr><td>C-ARGAT</td><td>0.884± 0.012</td><td>0.848 ± 0.003</td><td>0.829 ± 0.010</td></tr><tr><td>ARGAT</td><td>0.896 ± 0.016</td><td>0.851 ± 0.004</td><td>0.835 ± 0.006</td></tr><tr><td colspan=\"4\">Multiplicative attention</td></tr><tr><td>C-WIRGAT</td><td>0.859 ± 0.016</td><td>0.830 ± 0.007</td><td>0.811 ± 0.008</td></tr><tr><td>WIRGAT</td><td>0.904± 0.022</td><td>0.852 ± 0.002</td><td>0.838 ± 0.007</td></tr><tr><td>C-ARGAT</td><td>0.838 ± 0.007</td><td>0.816 ± 0.007</td><td>0.802 ± 0.007</td></tr><tr><td>ARGAT</td><td>0.802 ± 0.007</td><td>0.846 ± 0.003</td><td>0.837 ± 0.007</td></tr></table>",
1576
+ "bbox": [
1577
+ 256,
1578
+ 286,
1579
+ 735,
1580
+ 563
1581
+ ],
1582
+ "page_idx": 12
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "B Hyperparameters ",
1587
+ "text_level": 1,
1588
+ "bbox": [
1589
+ 176,
1590
+ 102,
1591
+ 388,
1592
+ 118
1593
+ ],
1594
+ "page_idx": 13
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "We perform hyperparameter optimisation using hyperopt Bergstra et al. (2013) with priors for the transductive tasks specified in Table 4 and priors for the inductive tasks specified in Table 5. In all experiments we use the Adam optimiser (Kingma and Ba, 2014). ",
1599
+ "bbox": [
1600
+ 174,
1601
+ 133,
1602
+ 825,
1603
+ 175
1604
+ ],
1605
+ "page_idx": 13
1606
+ },
1607
+ {
1608
+ "type": "table",
1609
+ "img_path": "images/b8939f4d9684f2b69c92bf06e51c4da9a1eef565fde508ffc526f228e0c2a4db.jpg",
1610
+ "table_caption": [
1611
+ "Table 4: Priors on the hyperparameter search space for the transductive tasks. When multihead attention is used, the number of units per head is appropriately reduced in order to keep the total number of output units of an RGAT layer independent of the number of heads. "
1612
+ ],
1613
+ "table_footnote": [],
1614
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Prior</td></tr><tr><td>Graph kernel units</td><td>MultiplesOfFour(4,20)</td></tr><tr><td>Heads</td><td>OneOf(1,2, 4)</td></tr><tr><td>Feature dropout rate</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>Edge dropout</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>W basis size Graph layer 1 W L2 coef</td><td>OneOf(Full, 5,10,20,30)</td></tr><tr><td></td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Graph layer 2 W L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>A basis size</td><td>OneOf(Full, 5,10,20,30)</td></tr><tr><td>Graph layer 1 A L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Graph layer 2 A L2 coef</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Learning rate</td><td>LogUniform(10-5,10-1)</td></tr><tr><td>Use bias</td><td></td></tr><tr><td></td><td>OneOf(Yes, No)</td></tr><tr><td>Use batch normalisation</td><td>OneOf(Yes, No)</td></tr></table>",
1615
+ "bbox": [
1616
+ 295,
1617
+ 261,
1618
+ 696,
1619
+ 473
1620
+ ],
1621
+ "page_idx": 13
1622
+ },
1623
+ {
1624
+ "type": "table",
1625
+ "img_path": "images/5b3eba4a7e128871bd834410122d055342019a5e8faa378f5879598f5d3ef0c9.jpg",
1626
+ "table_caption": [
1627
+ "Table 5: Priors on the hyperparameter for the inductive task. The batch size was held at 64, and no bases decomposition is used. When multihead attention is used, the number of units per head is appropriately reduced in order to keep the total number of output units of an RGAT layer independent of the number of heads. "
1628
+ ],
1629
+ "table_footnote": [],
1630
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Prior</td></tr><tr><td>Graph kernel units</td><td>MultiplesOfEight(32,128)</td></tr><tr><td>Dense units</td><td>MultiplesOfEight(32,128)</td></tr><tr><td>Heads</td><td>OneOf(1,2,4,8)</td></tr><tr><td>Feature dropout</td><td>Uniform(0.0, 0.8)</td></tr><tr><td>Edge dropout</td><td>Uniform(0.0,0.8)</td></tr><tr><td>W L2 coef (1)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>W L2 coef (2)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>a L2 coef (1)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>α L2 coef (2)</td><td>LogUniform(10-6,10-1)</td></tr><tr><td>Learning rate</td><td>LogUniform(10-5,10-1)</td></tr><tr><td>Use bias</td><td>OneOf(Yes, No)</td></tr><tr><td>Use batch normalisation</td><td>OneOf(Yes, No)</td></tr></table>",
1631
+ "bbox": [
1632
+ 295,
1633
+ 564,
1634
+ 694,
1635
+ 763
1636
+ ],
1637
+ "page_idx": 13
1638
+ },
1639
+ {
1640
+ "type": "text",
1641
+ "text": "C Charts ",
1642
+ "text_level": 1,
1643
+ "bbox": [
1644
+ 174,
1645
+ 102,
1646
+ 282,
1647
+ 118
1648
+ ],
1649
+ "page_idx": 14
1650
+ },
1651
+ {
1652
+ "type": "text",
1653
+ "text": "To aid interpretability of the results presented in Table 2 we present a chart representation in Figure 4. ",
1654
+ "bbox": [
1655
+ 174,
1656
+ 132,
1657
+ 823,
1658
+ 161
1659
+ ],
1660
+ "page_idx": 14
1661
+ },
1662
+ {
1663
+ "type": "image",
1664
+ "img_path": "images/de4678adc2e8472e364e37ce3447a0c4098cab4e69ba828e58f0badf8865fce2.jpg",
1665
+ "image_caption": [
1666
+ "Figure 4: (a) and (b): Blue Baseline entity classification accuracy (mean and standard deviation over 10 seeds) for FEAT (Paulheim and Fümkranz, 2012), WL (Shervashidze et al., 2011; de Vries and de Rooij, 2015), RDF2Vec (Ristoski and Paulheim, 2016) and RGCN (Schlichtkrull et al., 2018), and (mean and standard deviation over 200 runs) for our implementation of RGCN. Yellow Entity classification accuracy (mean and standard deviation over 200 seeds) for additive attention (this work). Red Entity classification accuracy (mean and standard deviation over 200 seeds) for multiplicative attention (this work). Test performance is reported on the splits provided in Ristoski and Paulheim (2016). (c): Blue Baseline graph classification mean Receiver Operating Characteristic (ROC) AUC across all 12 tasks (mean and standard deviation over 3 splits) for Multitask (Ramsundar et al., 2015), Bypass (Wu et al., 2018), Weave (Kearnes et al., 2016), RGCN (Altae-Tran et al., 2016), and (mean and standard deviation over 3 splits, 2 seeds per split) our implementation of RGCN. Yellow Additive attention graph classification mean ROC-AUC (mean and standard deviation over 200 seeds) across all 12 tasks (this work). Red Multiplicative attention graph classification mean ROC-AUC (mean and standard deviation over 200 seeds) across all 12 tasks (this work). All raw values are given in Table 2. "
1667
+ ],
1668
+ "image_footnote": [],
1669
+ "bbox": [
1670
+ 184,
1671
+ 188,
1672
+ 826,
1673
+ 636
1674
+ ],
1675
+ "page_idx": 14
1676
+ },
1677
+ {
1678
+ "type": "text",
1679
+ "text": "D Cumulative distribution functions ",
1680
+ "text_level": 1,
1681
+ "bbox": [
1682
+ 173,
1683
+ 102,
1684
+ 563,
1685
+ 118
1686
+ ],
1687
+ "page_idx": 15
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "To aid further insight into our results, we present the Cumulative Distribution Functions (CDFs) for each model on each task in Figure 4. In this context, we treat the performance metric of interest during the hyperparameter search as the empirical distribution of some random variable $X$ . We then define its CDF $F _ { X } ( x )$ in the standard way ",
1692
+ "bbox": [
1693
+ 173,
1694
+ 135,
1695
+ 825,
1696
+ 191
1697
+ ],
1698
+ "page_idx": 15
1699
+ },
1700
+ {
1701
+ "type": "equation",
1702
+ "img_path": "images/75f9c2ec65e75b8438f01dd99c3c9e3c1713128d9e13e07634f116ab343fe58a.jpg",
1703
+ "text": "$$\nF _ { X } ( x ) = P ( X \\leq x ) ,\n$$",
1704
+ "text_format": "latex",
1705
+ "bbox": [
1706
+ 426,
1707
+ 203,
1708
+ 570,
1709
+ 218
1710
+ ],
1711
+ "page_idx": 15
1712
+ },
1713
+ {
1714
+ "type": "text",
1715
+ "text": "where $P ( X \\leq x )$ is the probability that $X$ takes on a value less than or equal to $x$ . The CDF allows one to gauge whether any given architecture typically performs better than another across the whole space, rather than comparison of the tuned hyperparameters, which in some cases may be outliers in terms of generic behavior for that architecture. ",
1716
+ "bbox": [
1717
+ 173,
1718
+ 229,
1719
+ 825,
1720
+ 285
1721
+ ],
1722
+ "page_idx": 15
1723
+ },
1724
+ {
1725
+ "type": "image",
1726
+ "img_path": "images/e18a7451652d67e0875b57cde0428249e4526e12940f5831f6cac80e66daab95.jpg",
1727
+ "image_caption": [
1728
+ "Figure 5: CDFs for all models on a) AIFB, b) MUTAG and c) TOX21. Green lines correspond to our implementation of RGCN, blue lines correspond to ARGAT, and orange lines correspond to WIRGAT. Solid lines correspond to additive attention (and RGCN), whereas dashed lines correspond to multiplicative attention. A lower CDF value is better in the sense that a greater proportion of models of achieve a higher value of that metric. "
1729
+ ],
1730
+ "image_footnote": [],
1731
+ "bbox": [
1732
+ 186,
1733
+ 313,
1734
+ 846,
1735
+ 763
1736
+ ],
1737
+ "page_idx": 15
1738
+ },
1739
+ {
1740
+ "type": "text",
1741
+ "text": "AIFB Additive and multiplicative ARGAT perform poorly for most areas of the hyperparameter space, whereas RGCN and multiplicative WIRGAT perform comparably across the entire hyperparameter space. ",
1742
+ "bbox": [
1743
+ 176,
1744
+ 881,
1745
+ 825,
1746
+ 924
1747
+ ],
1748
+ "page_idx": 15
1749
+ },
1750
+ {
1751
+ "type": "text",
1752
+ "text": "MUTAG Interestingly, the models that have a greater amount of hyperparameter space covering poor performance (i.e. RGCN, multiplicative and additive WIRGAT) are also the models which also have a greater amount of hyperparameter space covering good performance. In other words, on the MUTAG, the ARGAT prior resulted in a model whose test set performance was relatively insensitive to hyperparameter choice when compared against the other candidates. Given that the ARGAT model was the most flexible of the models evaluated, and that it was able to memorise the training set, this suggests that the task contained insufficient information for the model to learn its attention mechanism. Given that WIRGAT was able to at least partially learn to its attention mechanism suggests that WIRGAT is less data hungry than ARGAT. ",
1753
+ "bbox": [
1754
+ 174,
1755
+ 103,
1756
+ 825,
1757
+ 242
1758
+ ],
1759
+ "page_idx": 16
1760
+ },
1761
+ {
1762
+ "type": "text",
1763
+ "text": "Tox21 The multiplicative attention models fare poorly on the majority of the hyperparameter space compared to the other models. There is a slice of the hyperparameter space where the multiplicative attention models outperform the other models, however, indicating that although they are difficult to train, it may be worth spending time hyperoptimising them if you need the best performing model on a relational inductive task. The additive attention models and RGCN perform comparably across the entirety of the hyperparameter space and generally perform better than the multiplicative methods except for the very small region of hyperparameter space mentioned above. ",
1764
+ "bbox": [
1765
+ 174,
1766
+ 257,
1767
+ 825,
1768
+ 369
1769
+ ],
1770
+ "page_idx": 16
1771
+ },
1772
+ {
1773
+ "type": "text",
1774
+ "text": "E Significance testing ",
1775
+ "text_level": 1,
1776
+ "bbox": [
1777
+ 176,
1778
+ 102,
1779
+ 415,
1780
+ 118
1781
+ ],
1782
+ "page_idx": 17
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "In order to determine if any of our model comparisons are significant, we employ the one-sided Mann-Whitney $U$ test Mann and Whitney (1947) as we are interested in the direction of movement (i.e. performance) and do not want to make any parametric assumptions about model response. For two populations $X$ and $Y$ : ",
1787
+ "bbox": [
1788
+ 176,
1789
+ 132,
1790
+ 825,
1791
+ 189
1792
+ ],
1793
+ "page_idx": 17
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "• The null hypothesis $H _ { 0 }$ is that the two populations are equal, and • The alternative hypothesis $H _ { 1 }$ is that the probability of an observation from population X exceeding an observation from population Y is larger than the probability of an observation from Y exceeding an observation from X; i.e., $H _ { 1 } : P ( X > Y ) > P ( Y > X )$ . ",
1798
+ "bbox": [
1799
+ 215,
1800
+ 200,
1801
+ 825,
1802
+ 276
1803
+ ],
1804
+ "page_idx": 17
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "We treat the empirical distributions of Model A as samples from population $X$ and the empirical distributions of Model B as samples from population $Y$ . This allows us a window into whether, given a task, whether which is the better model out of a pair of models. Results on AIFB, MUTAG and TOX21 are given in Figure 6, Figure 7 and Figure 8 respectively. ",
1809
+ "bbox": [
1810
+ 176,
1811
+ 287,
1812
+ 825,
1813
+ 344
1814
+ ],
1815
+ "page_idx": 17
1816
+ },
1817
+ {
1818
+ "type": "image",
1819
+ "img_path": "images/d6b58d3b82577979f8ec66718246c6906d164643a0b8f52bdd1cffc5ea125905.jpg",
1820
+ "image_caption": [
1821
+ "Figure 6: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on AIFB. "
1822
+ ],
1823
+ "image_footnote": [],
1824
+ "bbox": [
1825
+ 181,
1826
+ 362,
1827
+ 794,
1828
+ 849
1829
+ ],
1830
+ "page_idx": 17
1831
+ },
1832
+ {
1833
+ "type": "image",
1834
+ "img_path": "images/9f9346c252e13a119c74ac1fe44dbc25e2361ed2b3215116b217f2205f39108c.jpg",
1835
+ "image_caption": [
1836
+ "Figure 7: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on MUTAG. "
1837
+ ],
1838
+ "image_footnote": [],
1839
+ "bbox": [
1840
+ 181,
1841
+ 242,
1842
+ 794,
1843
+ 734
1844
+ ],
1845
+ "page_idx": 18
1846
+ },
1847
+ {
1848
+ "type": "image",
1849
+ "img_path": "images/ce51e1157f7064678b8b1ea8ed556f9c0ae21e45c2183e579c2593a488d00115.jpg",
1850
+ "image_caption": [
1851
+ "Figure 8: The $p$ -values for Mann-Whitney $U$ test with alternative hypothesis $H _ { 1 }$ of Model $A$ outperforming Model $B$ on TOX21. "
1852
+ ],
1853
+ "image_footnote": [],
1854
+ "bbox": [
1855
+ 181,
1856
+ 243,
1857
+ 794,
1858
+ 736
1859
+ ],
1860
+ "page_idx": 19
1861
+ }
1862
+ ]
parse/train/Bklzkh0qFm/Bklzkh0qFm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Bklzkh0qFm/Bklzkh0qFm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lhqpEYPr/H1lhqpEYPr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lhqpEYPr/H1lhqpEYPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lhqpEYPr/H1lhqpEYPr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lhqpEYPr/H1lhqpEYPr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJg7IsC5KQ/SJg7IsC5KQ.md ADDED
@@ -0,0 +1,889 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ON THE CONVERGENCE AND ROBUSTNESS OF BATCHNORMALIZATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Despite its empirical success, the theoretical underpinnings of the stability, convergence and acceleration properties of batch normalization (BN) remain elusive. In this paper, we attack this problem from a modeling approach, where we perform a thorough theoretical analysis on BN applied to a simplified model: ordinary least squares (OLS). We discover that gradient descent on OLS with BN has interesting properties, including a scaling law, convergence for arbitrary learning rates for the weights, acceleration effects, as well as insensitivity to the choice of learning rates. We then demonstrate numerically that these findings are not specific to the OLS problem and hold qualitatively for more complex supervised learning problems. This points to a new direction towards uncovering the mathematical principles that underlies batch normalization.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Batch normalization (Ioffe & Szegedy, 2015) (BN) is one of the most important techniques for training deep neural networks and has proven extremely effective in avoiding gradient blowups during back-propagation and speeding up convergence. In its original introduction (Ioffe & Szegedy, 2015), the desirable effects of BN are attributed to the so-called “reduction of covariate shift”. However, it is unclear what this statement means in precise mathematical terms. To date, there lacks a comprehensive theoretical analysis of the effect of batch normalization.
12
+
13
+ In this paper, we study the convergence and stability of gradient descent with batch normalization (BNGD) via a modeling approach. More concretely, we consider a simplified supervised learning problem: ordinary least squares regression, and analyze precisely the effect of BNGD when applied to this problem. Much akin to the mathematical modeling of physical processes, the least-squares problem serves as an idealized “model” of the effect of BN for general supervised learning tasks. A key reason for this choice is that the dynamics of GD without BN (hereafter called GD for simplicity) in least-squares regression is completely understood, thus allowing us to isolate and contrast the additional effects of batch normalization.
14
+
15
+ The modeling approach proceeds in the following steps. First, we derive precise mathematical results on the convergence and stability of BNGD applied to the least-squares problem. In particular, we show that BNGD converges for any constant learning rate $\varepsilon \in ( 0 , 1 ]$ , regardless of the conditioning of the regression problem. This is in stark contrast with GD, where the condition number of the problem adversely affect stability and convergence. Many insights can be distilled from the analysis of the OLS model. For instance, we may attribute the stability of BNGD to an interesting scaling law governing $\varepsilon$ and the initial condition; This scaling law is not present in GD. The preceding analysis also implies that if we are allowed to use different learning rates for the BN rescaling variables $( \varepsilon _ { a } )$ and the remaining trainable variables $( \varepsilon )$ , we may conclude that BNGD on our model converges for any $\varepsilon > 0$ as long as ${ \varepsilon } _ { a } \in ( 0 , 1 ]$ . Furthermore, we discover an acceleration effect of BNGD and moreover, there exist regions of $\varepsilon$ such that the performance of BNGD is insensitive to changes in $\varepsilon$ , which help to explain the robustness of BNGD to the choice of learning rates. We reiterate that contrary to many previous works, all the preceding statements are precise mathematical results that we derive for our simplified model.
16
+
17
+ The last step in our modeling approach is also the most important: we need to demonstrate that these insights are not specific features of our idealized model. Indeed, they should be true characteristics, at least in an approximate sense, of BNGD for general supervised learning problems. We do this by numerically investigating the convergence, stability and scaling behaviors of BNGD on various datasets and model architectures. We find that the key insights derived from our idealized analysis indeed correspond to practical scenarios.
18
+
19
+ # 1.1 RELATED WORK
20
+
21
+ Batch normalization was originally introduced in (Ioffe & Szegedy, 2015) and subsequently studied in further detail in (Ioffe, 2017). Since its introduction, it has become an important practical tool to improve stability and efficiency of training deep neural networks (He et al., 2016; Bottou et al., 2018). Initial heuristic arguments attribute the desirable features of BN to concepts such as “covariate shift”, which lacks a concrete mathematical interpretation and alternative explanations have been given (Santurkar et al., 2018). Recent theoretical studies of BN includes (Ma & Klabjan, 2017), where the authors proposed a variant of BN, the diminishing batch normalization (DBN) algorithm and analyzed the convergence of the DBN algorithm, showing that it converges to a stationary point of the loss function. More recently, (Bjorck et al., 2018) demonstrated that the higher learning rates of batch normalization induce a regularizing effect. Another related work is (Kohler et al., 2018), where the authors also considered the convergence properties of BNGD on linear networks (similar to the least-squares problem), as well as other special problems, such as learning halfspaces and extensions. In the OLS case, the authors showed that for a particularly adaptive choice of dynamic learning rate schedule, which can be seen as a fixed effective step size in our terminology (see equation (11) and the discussion that immediately follows), BNGD converges linearly if $\lambda _ { m a x }$ is known. Moreover, the analysis also requires setting the rescaling parameter $a$ every step to satisfy a stationarity condition, instead of simply performing gradient descent on $a$ , as is done in the original BNGD.
22
+
23
+ The present research differs from these previous analysis in an important way - we study the BNGD algorithm itself, and not a special variant. More specifically, we consider constant learning rates (without knowledge of properties of the OLS loss function) and we perform gradient descent on rescaling parameters. We prove that the convergence occurs for even in this case (and in fact, for arbitrarily large learning rates for $\varepsilon$ , as long as $0 < \varepsilon _ { a } \le 1 _ { , } ^ { }$ ). This poses more challenges in the analysis and contrasts our work with previous analysis on modified versions of BNGD. This is an important distinction; While a decaying or dynamic learning rate is sometimes used in practice, in the case of BN it is critical to analyze the non-asymptotic, constant learning rate case, precisely because one of the key practical advantages of BN is that a bigger learning rate can be used than that in GD. Hence, it is desirable, as in the results presented in this work, to perform our analysis in this regime.
24
+
25
+ Finally, through the lens of the least-squares example, BN can be viewed as a type of overparameterization, where additional parameters, which do not increase model expressivity, are introduced to improve algorithm convergence and stability. In this sense, this is related in effect to the recent analysis of the implicit acceleration effects of over-parameterization on gradient descent (Arora et al., 2018).
26
+
27
+ # 1.2 ORGANIZATION
28
+
29
+ Our paper is organized as follows. In Section 2, we outline the ordinary least squares (OLS) problem and present GD and BNGD as alternative means to solve this problem. In Section 3, we demonstrate and analyze the convergence of the BNGD for the OLS model, and in particular contrast the results with the behavior of GD, which is completely known for this model. We also discuss the important insights to BNGD that these results provide us with. We then validate these findings on more general supervised learning problems in Section 4. Finally, we conclude in Section 5.
30
+
31
+ # 2 BACKGROUND
32
+
33
+ Consider the simple linear regression model where $x \in \mathbb { R } ^ { d }$ is a random input column vector and $y$ is the corresponding output variable. Since batch normalization is applied for each feature separately, in order to gain key insights it is sufficient to the case of $y \in \mathbb { R }$ . A noisy linear relationship is assumed between the dependent variable $y$ and the independent variables $x$ , i.e. $y = x ^ { T } w + n \dot { o } i s e$ where $w \in \mathbb { R } ^ { d }$ is the parameters. Denote the following moments:
34
+
35
+ $$
36
+ H : = E [ x x ^ { T } ] , \quad g : = E [ x y ] , \quad c : = E [ y ^ { 2 } ] .
37
+ $$
38
+
39
+ To simplify the analysis, we assume the covariance matrix $H$ of $x$ is positive definite and the mean $E [ x ]$ of $x$ is zero. The eigenvalues of $H$ are denoted as $\lambda _ { i } ( H ) , i = 1 , 2 , . . . d ,$ . Particularly, the maximum and minimum eigenvalue of $H$ is denoted by $\lambda _ { m a x }$ and $\lambda _ { m i n }$ respectively. The condition number of $H$ is defined as $\begin{array} { r } { \bar { { \kappa } } : = \frac { \lambda _ { m a x } } { \lambda _ { m i n } } } \end{array}$ . Note that the positive definiteness of $H$ allows us to define the vector norms $\left\| . \right\| _ { H }$ and $\lVert . \rVert _ { H ^ { - 1 } }$ by $\| x \| _ { H } ^ { 2 } = x ^ { T } H x$ and $\| x \| _ { H ^ { - 1 } } ^ { 2 } = x ^ { T } H ^ { - 1 } x$ respectively.
40
+
41
+ # 2.1 ORDINARY LEAST SQUARES
42
+
43
+ The ordinary least squares (OLS) method for estimating the unknown parameters $w$ leads to the following optimization problem
44
+
45
+ $$
46
+ \begin{array} { r } { \underset { w \in \mathbb { R } ^ { d } } { \operatorname* { m i n } } J _ { 0 } ( w ) : = \frac { 1 } { 2 } E _ { x , y } [ ( y - x ^ { T } w ) ^ { 2 } ] = \frac { c } { 2 } - g ^ { T } w + \frac { 1 } { 2 } w ^ { T } H w . } \end{array}
47
+ $$
48
+
49
+ The gradient of $J _ { 0 }$ with respect to $w$ is $\nabla _ { w } J _ { 0 } ( w ) = H w - g$ , and the unique minimizer is $w =$ $u : = H ^ { - 1 } g$ . The gradient descent (GD) method (with step size or learning rate $\varepsilon$ ) for solving the optimization problem (2) is given by the iterating sequence,
50
+
51
+ $$
52
+ w _ { k + 1 } = w _ { k } - \varepsilon \nabla _ { w } J _ { 0 } ( w _ { k } ) = ( I - \varepsilon H ) w _ { k } + \varepsilon g ,
53
+ $$
54
+
55
+ which converges if 0 < ε < 2λmax , and the convergence rate is determined by the spectral radius $\rho _ { \varepsilon } : = \rho ( I - \varepsilon H ) = \operatorname* { m a x } _ { i } \{ | 1 - \varepsilon \lambda _ { i } ( H ) | \}$ with
56
+
57
+ $$
58
+ \lVert u - w _ { k + 1 } \rVert \leq \rho _ { \varepsilon } \lVert u - w _ { k } \rVert .
59
+ $$
60
+
61
+ It is well known (for example see Chapter 4 of (Saad, 2003)) that the optimal learning rate is $\varepsilon _ { o p t } =$ $\frac { 2 } { \lambda _ { m a x } + \lambda _ { m i n } }$ , where the convergence estimate is related to the condition number $\kappa ( H )$ :
62
+
63
+ $$
64
+ \begin{array} { r } { \| u - w _ { k + 1 } \| \leq \frac { \kappa - 1 } { \kappa + 1 } \| u - w _ { k } \| . } \end{array}
65
+ $$
66
+
67
+ # 2.2 BATCH NORMALIZATION
68
+
69
+ Batch normalization is a feature-wise normalization procedure typically applied to the output, which in this case is simply $z = x ^ { T } w$ . The normalization transform is defined as follows:
70
+
71
+ $$
72
+ \begin{array} { r } { N _ { B N } ( z ) : = \frac { z - E [ z ] } { \sqrt { \mathrm { V a r } [ z ] } } = \frac { x ^ { T } w } { \sigma } , } \end{array}
73
+ $$
74
+
75
+ where $\sigma : = \sqrt { w ^ { T } H w }$ . After this rescaling, $N _ { B N } ( z )$ will be order 1, and hence in order to reintroduce the scale (Ioffe & Szegedy, 2015), we multiply $N _ { B N } ( z )$ with a rescaling parameter $a$ (Note that the shift parameter can be set zero since $\mathbb { E } [ w ^ { \hat { T } } x ] w ] = 0 \mathrm { . }$ ). Hence, we get the BN version of the OLS problem (2):
76
+
77
+ $$
78
+ \begin{array} { r l } & { \underset { w \in \mathbb { R } ^ { d } , a \in \mathbb { R } } { \mathrm { m i n } } J ( a , w ) : = \frac { 1 } { 2 } E _ { x , y } \big [ \big ( y - a N _ { B N } ( x ^ { T } w ) \big ) ^ { 2 } \big ] = \frac { c } { 2 } - \frac { w ^ { T } g } { \sigma } a + \frac { 1 } { 2 } a ^ { 2 } . } \end{array}
79
+ $$
80
+
81
+ The objective function ${ J } ( a , w )$ is no longer convex. In fact, it has trivial critical points, $\{ ( a ^ { * } , w ^ { * } ) | a ^ { * } = 0 , w ^ { * T } g = \operatorname { \bar { 0 } } \}$ , which are saddle points of ${ J } ( a , w )$ .
82
+
83
+ We are interested in the nontrivial critical points which satisfy the relations,
84
+
85
+ It is easy to check that the nontrivial critical points are global minimizers, and the Hessian matrix at each critical point is degenerate. Nevertheless, the saddle points are strict (Details can be found in Appendix), which typically simplifies the analysis of gradient descent on non-convex objectives (Lee et al., 2016; Panageas & Piliouras, 2017).
86
+
87
+ Consider the gradient descent method to solve the problem (7), which we hereafter call batch normalization gradient descent (BNGD). We set the learning rates for $a$ and $w$ to be $\varepsilon _ { a }$ and $\varepsilon$ respectively. These may be different, for reasons which will become clear in the subsequent analysis. We thus have the following discrete-time dynamical system
88
+
89
+ $$
90
+ \begin{array} { r l } & { a _ { k + 1 } = a _ { k } + \varepsilon _ { a } \Big ( \frac { w _ { k } ^ { T } g } { \sigma _ { k } } - a _ { k } \Big ) , } \\ & { w _ { k + 1 } = w _ { k } + \varepsilon \frac { a _ { k } } { \sigma _ { k } } \Big ( g - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } H w _ { k } \Big ) . } \end{array}
91
+ $$
92
+
93
+ We now begin a concrete mathematical analysis of the above iteration sequence.
94
+
95
+ # 3 MATHEMATICAL ANALYSIS OF BNGD ON OLS
96
+
97
+ In this section, we discuss several mathematical results one can derive concretely for BNGD on the OLS problem (7). First, we establish a simple but useful scaling property, which an important ingredient in allowing us to prove a linear convergence result for arbitrary constant learning rates. We also derive the asymptotic properties of the “effective” learning rate of BNGD (to be precisely defined subsequently), which shows some interesting sensitivity behavior of BNGD on the chosen learning rates. Detailed proofs of all results presented here can be found in the Appendix.
98
+
99
+ # 3.1 SCALING PROPERTY
100
+
101
+ In this section, we discuss a straightforward, but useful scaling property that the BNGD iterations possess. Note that the dynamical properties of the BNGD iteration are governed by a set of numbers, or a configuration $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ .
102
+
103
+ Definition 3.1 (Equivalent configuration). Two configurations, $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ and $\{ H ^ { \prime } , u ^ { \prime } , a _ { 0 } ^ { \prime } , w _ { 0 } ^ { \prime } , \varepsilon _ { a } ^ { \prime } , \varepsilon ^ { \prime } \}$ , are said to be equivalent if for iterates $\{ w _ { k } \}$ , $\{ w _ { k } ^ { \prime } \}$ following these configurations respectively, there is an invertible linear transformation $T$ and a nonzero constant $t$ such that $w _ { k } ^ { \prime } = T w _ { k } , a _ { k } ^ { \prime } = t a _ { k }$ for all $k$ .
104
+
105
+ The scaling property ensures that equivalent configurations must converge or diverge together, with the same rate up to a constant multiple. Now, it is easy to check the system has the following scaling law.
106
+
107
+ Proposition 3.2 (Scaling property). Suppose $\mu \neq 0 , \gamma \neq 0 , r \neq 0 , Q ^ { T } Q = I _ { \mathit { i } }$ , then (1) The configurations $\{ \mu Q ^ { T } H Q , \frac { \gamma } { \sqrt { \mu } } Q u , \gamma a _ { 0 } , \gamma Q w _ { 0 } , \varepsilon _ { a } , \varepsilon \} a n d \ \{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ are equivalent. (2) The configurations $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ and $\{ H , u , a _ { 0 } , r w _ { 0 } , \varepsilon _ { a } , r ^ { 2 } \varepsilon \}$ are equivalent.
108
+
109
+ It is worth noting that the scaling property (2) in Proposition 3.2 originates from the batchnormalization procedure and is independent of the specific structure of the loss function. Hence, it is valid for general problems where BN is used (Lemma A.9). Despite being a simple result, the scaling property is important in determining the dynamics of BNGD, and is useful in our subsequent analysis of its convergence and stability properties (see the sketch of the proof of Theorem 3.3).
110
+
111
+ # 3.2 BATCH NORMALIZATION CONVERGES FOR ARBITRARY STEP SIZE
112
+
113
+ We have the following convergence result.
114
+
115
+ Theorem 3.3 (Convergence for BNGD). The iteration sequence $( a _ { k } , w _ { k } )$ in equation (9)-(10) converges to a stationary point for any initial value $( a _ { 0 } , w _ { 0 } )$ and any $\varepsilon > 0 _ { i }$ , as long as $\varepsilon _ { a } \in ( 0 , 1 ]$ . Particularly, we have the following sufficient conditions of converging to global minimizers.
116
+
117
+ (1) If $a _ { 0 } w _ { 0 } ^ { T } g > 0$ (or $a _ { 0 } = 0 , w _ { 0 } ^ { T } g \neq 0 )$ , $\varepsilon _ { a } \in ( 0 , 1 ]$ and $\varepsilon$ is sufficiently small (the smallness is quantified by Lemma A.13), then $( a _ { k } , w _ { k } )$ converges to a global minimizer.
118
+
119
+ (2) If ${ { \varepsilon } _ { a } } \mathrm { ~ = ~ } 1$ and $\varepsilon > 0$ , then $( a _ { k } , w _ { k } )$ converges to global minimizers for almost all initial values $( a _ { 0 } , w _ { 0 } )$ .
120
+
121
+ # Sketch of Proof.
122
+
123
+ We first prove that the algorithm converges for any $\varepsilon _ { a } \in ( 0 , 1 ]$ and small enough $\varepsilon$ , with any initial value $( a _ { 0 } , w _ { 0 } )$ such that $\left\| w _ { 0 } \right\| \ge 1$ (Lemma A.13). Next, we observe that the sequence $\{ \| w _ { k } \| \}$ is monotone increasing, and thus either converges to a finite limit or diverges. The scaling property is then used to exclude the divergent case if $\{ \| w _ { k } \| \}$ diverges, then at some $k$ the norm $\| w _ { k } \|$ should be large enough, and by the scaling property, it is equivalent to a case where $\lVert \boldsymbol { w } _ { k } \rVert = 1$ and $\varepsilon$ is small, which we have proved converges. This shows that $\| w _ { k } \|$ converges to a finite limit, from which the convergence of $w _ { k }$ and the loss function value can be established, after some work. The proof is fully presented in Theorem A.17 and preceding Lemmas.
124
+
125
+ In addition, using the ’strict saddle point’ arguments in (Lee et al., 2016; Panageas & Piliouras, 2017), we can prove the set of initial value for which $( a _ { k } , w _ { k } )$ converges to saddle points has Lebesgue measure 0, provided some conditions, such as when $\varepsilon _ { a } = 1 , \varepsilon > 0$ (Lemma A.20). It is important to note that BNGD converges for all step size $\varepsilon > 0$ of $w _ { k }$ , independent of the spectral properties of $H$ . This is a significant advantage and is in stark contrast with GD, where the step size is limited by $\lambda _ { \operatorname* { m a x } } ( H )$ , and the condition number of $H$ intimately controls the stability and convergence rate. Although we only prove the almost sure convergence to global minimizer for the case of ${ \varepsilon } _ { a } = 1$ , we have not encountered convergence to saddles in the OLS experiments even for $ { \varepsilon } _ { a } \in ( 0 , 2 )$ with initial values $( a _ { 0 } , w _ { 0 } )$ drawn from typical distributions.
126
+
127
+ # 3.3 CONVERGENCE RATE, ACCELERATION AND ASYMPTOTIC SENSITIVITY
128
+
129
+ Now, let us consider the convergence rate of BNGD when it converges to a minimizer. Compared with GD, the update coefficient before $H w _ { k }$ in equation (10) changed from $\varepsilon$ to a complicated term which we named as the effective step size or learning rate $\hat { \varepsilon } _ { k }$
130
+
131
+ $$
132
+ \begin{array} { r } { \hat { \varepsilon } _ { k } : = \varepsilon \frac { a _ { k } } { \sigma _ { k } } \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } , } \end{array}
133
+ $$
134
+
135
+ and the recurrence relation in place of $u - w _ { k }$ is
136
+
137
+ $$
138
+ \begin{array} { r } { u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k + 1 } = ( I - \hat { \varepsilon } _ { k } H ) \Big ( u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k } \Big ) . } \end{array}
139
+ $$
140
+
141
+ Consider the dynamics of the residual $e _ { k } : = u - ( w _ { k } ^ { T } g / \sigma _ { k } ^ { 2 } ) w _ { k }$ , which equals 0 if and only if $w _ { k }$ is a global minimizer. Using the property of $H$ -norm (see section A.1), we observe that the effective learning rate $\hat { \varepsilon } _ { k }$ determines the convergence rate of $e _ { k }$ via
142
+
143
+ $$
144
+ \begin{array} { r } { \| e _ { k + 1 } \| _ { H } \le \left\| u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k + 1 } \right\| _ { H } \le \rho ( I - \hat { \varepsilon } _ { k } H ) \| e _ { k } \| _ { H } , } \end{array}
145
+ $$
146
+
147
+ where $\rho ( I - \hat { \varepsilon } _ { k } H )$ is spectral radius of the matrix $I { - } \hat { \varepsilon } _ { k } H$ . The inequality (13) shows that the convergence of $e _ { k }$ (and hence the loss function, see Lemma A.23) is linear provided $\hat { \varepsilon } _ { k } \in ( \delta , 2 / \lambda _ { m a x } - \delta )$ for some positive number $\delta$ . In fact, if we enforce $\hat { \varepsilon } _ { k } = 1 / \lambda _ { m a x }$ for each $k$ , which is done in the analysis in Kohler et al. (2018), then one immediately obtains the same linear convergence rate. But this requires knowledge of $\lambda _ { m a x }$ (problem-dependent) and a modification the BNGD algorithm. We instead focus our analysis on the original BNGD algorithm.
148
+
149
+ Next, let us discuss below an acceleration effect of BNGD over GD. When $( a _ { k } , w _ { k } )$ is close to a minimizer, we can approximate the iteration (9)-(10) by a linearized system. The Hessian matrix for BNGD at a minimizer $( \boldsymbol { a } ^ { * } , \boldsymbol { w } ^ { * } )$ is $\mathrm { d i a g } ( 1 , H ^ { * } / \| w ^ { * } \| ^ { 2 } )$ , where the matrix $H ^ { * }$ is
150
+
151
+ $$
152
+ \begin{array} { r } { H ^ { * } = H - \frac { H u u ^ { T } H } { u ^ { T } H u } . } \end{array}
153
+ $$
154
+
155
+ The matrix $H ^ { * }$ is positive semi-definite $( H ^ { * } u = 0 )$ and has better spectral properties than $H$ , such as a lower pseudo-condition number $\begin{array} { r } { \kappa ^ { * } ~ = ~ \frac { \lambda _ { m a x } ^ { * } } { \lambda _ { m i n } ^ { * } } ~ \le ~ \kappa } \end{array}$ , where $\lambda _ { m a x } ^ { * }$ and $\lambda _ { m i n } ^ { * }$ are the maximal and minimal nonzero eigenvalues of $H ^ { * }$ respectively. Particularly, $\kappa ^ { * } < \kappa$ for almost all $u$ (see section A.1 ). This property leads to acceleration effects of BNGD: When $\| e _ { k } \| _ { H }$ is small, the contraction coefficient $\rho$ in (13) can be improved to a lower coefficient. More precisely, we have the following result:
156
+
157
+ Proposition 3.4. For any positive number $\delta \in ( 0 , 1 )$ , $i f \left( a _ { k } , w _ { k } \right)$ is close to a minimizer, such that λmaxε|ak|σ2 kekkH ≤ δ, then we have
158
+
159
+ $$
160
+ \begin{array} { r l } & { \| e _ { k + 1 } \| _ { H } \leq \operatorname* { m i n } \{ \frac { \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) + \delta } { 1 - \delta } , \rho ( I - \hat { \varepsilon } _ { k } H ) \} \| e _ { k } \| _ { H } , } \\ & { \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ) = \operatorname* { m a x } \{ | 1 - \hat { \varepsilon } _ { k } \lambda _ { m i n } ^ { * } | , | 1 - \hat { \varepsilon } _ { k } \lambda _ { m a x } ^ { * } | \} . } \end{array}
161
+ $$
162
+
163
+ Generally, we have $\rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) \leq \rho ( I - \hat { \varepsilon } _ { k } H )$ provided $\hat { \varepsilon } _ { k } ~ > ~ 0$ , and the optimal rate is $\begin{array} { r } { \rho _ { o p t } ^ { * } : = \frac { \kappa ^ { * } - 1 } { \kappa ^ { * } + 1 } \leq \frac { \kappa - 1 } { \kappa + 1 } = : \rho _ { o p t } } \end{array}$ , where the inequality is strict for almost all $u$ . Hence, the estimate (15) indicates that the optimal BNGD could have a faster convergence rate than the optimal GD, especially when $\kappa ^ { * }$ is much smaller than $\kappa$ .
164
+
165
+ Finally, we discuss the dependence of the effective learning rate $\hat { \varepsilon } _ { k }$ (and by extension, the effective convergence rate (13) or (15)) on $\varepsilon$ . This is in essence a sensitivity analysis on the performance of BNGD with respect to the choice of learning rate. The explicit dependence of $\hat { \varepsilon } _ { k }$ on $\varepsilon$ is quite complex, but we can nevertheless give the following asymptotic estimates.
166
+
167
+ Proposition 3.5. Suppose $\varepsilon _ { a } \in ( 0 , 1 ] , a _ { 0 } w _ { 0 } ^ { T } g > 0$ , and $\begin{array} { r } { | | g | | ^ { 2 } \geq \frac { w _ { 0 } ^ { T } g } { \sigma _ { 0 } ^ { 2 } } g ^ { T } H w _ { 0 } } \end{array}$ , then
168
+
169
+ (1) When $\varepsilon$ is small enough, $\varepsilon \ll 1$ , the effective step size has a same order with $\varepsilon$ , i.e. there are two positive constants, $C _ { 1 } , C _ { 2 }$ , independent on $\varepsilon$ and $k$ , such that $C _ { 1 } \leq \hat { \varepsilon } _ { k } / \varepsilon \leq C _ { 2 }$ .
170
+ (2) When $\varepsilon$ is large enough, $\varepsilon \gg 1$ , the effective step size has order $O ( \varepsilon ^ { - 1 } )$ , i.e. there are two positive constants, $C _ { 1 } , C _ { 2 }$ , independent on $\varepsilon$ and $k$ , such that $C _ { 1 } \leq \hat { \varepsilon } _ { k } \varepsilon \leq C _ { 2 }$ .
171
+
172
+ Observe that for finite $k$ , $\hat { \varepsilon } _ { k }$ is a differentiable function of $\varepsilon$ . Therefore, the above result implies, via the mean value theorem, the existence of some $\varepsilon _ { 0 } > 0$ such that $d \hat { \varepsilon } _ { k } / d \varepsilon | _ { \varepsilon = \varepsilon _ { 0 } } = 0$ . Consequently, there is at least some small interval of the choice of learning rates $\varepsilon$ where the performance of BNGD is insensitive to this choice. In fact, empirically this is one commonly observed advantage of BNGD over GD, where the former typically allows for a variety of (large) learning rates to be used without adversely affecting performance. The same is not true for GD, where the convergence rate depends sensitively on the choice of learning rate. We will see later in Section 4 that although we only have a local insensitivity result above, the interval of this insensitivity is actually quite large in practice.
173
+
174
+ # 4 EXPERIMENTS
175
+
176
+ Let us first summarize our key findings and insights from the analysis of BNGD on the OLS problem.
177
+
178
+ 1. A scaling law governs BNGD, where certain configurations can be deemed equivalent
179
+ 2. BNGD converges for any learning rate $\varepsilon > 0$ , provided that ${ { \varepsilon } _ { a } } \in \left( 0 , 1 \right]$ . In particular, different learning rates can be used for the BN variables $( a )$ compared with the remaining trainable variables $( w )$ )
180
+ 3. There exists intervals of $\varepsilon$ for which the performance of BNGD is not sensitive to the choice of $\varepsilon$
181
+
182
+ In the subsequent sections, we first validate numerically these claims on the OLS model, and then show that these insights go beyond the simple OLS model we considered in the theoretical framework. In fact, much of the uncovered properties are observed in general applications of BNGD in deep learning.
183
+
184
+ # 4.1 EXPERIMENTS ON OLS
185
+
186
+ Here we test the convergence and stability of BNGD for the OLS model. Consider a diagonal matrix $H = d i a g ( h )$ where $h = ( 1 , . . . , \kappa )$ is a increasing sequence. The scaling property (Proposition 3.2) allows us to set the initial value $w _ { 0 }$ having same 2-norm with $u$ , $\| w _ { 0 } \| = \| u \| = 1$ . Of course, one can verify that the scaling property holds strictly in this case.
187
+
188
+ Figure 1 gives examples of $H$ with different condition numbers $\kappa$ . We tested the loss function of BNGD, compared with the optimal GD (i.e. GD with the optimal step size $\varepsilon _ { o p t }$ ), in a large range of step sizes $\varepsilon _ { a }$ and $\varepsilon$ , and with different initial values of $a _ { 0 }$ . Another quantity we observe is the effective step size $\hat { \varepsilon } _ { k }$ of BN. The results are encoded by four different colors: whether $\hat { \varepsilon } _ { k }$ is close to the optimal step size $\varepsilon _ { o p t }$ , and whether loss of BNGD is less than the optimal GD. The results indicate that the optimal convergence rate of BNGD can be better than GD in some configurations. This acceleration phenomenon is ascribed to the pseudo-condition number of $H ^ { * }$ (discard the only zero eigenvalue) being less than $\kappa ( H )$ . This advantage of BNGD is significant when the (pseudo)- condition number discrepancy between $H$ and $H ^ { * }$ is large. However, if this difference is small, the acceleration is imperceptible. This is consistent with our analysis in section 3.3.
189
+
190
+ Another important observation is a region such that $\hat { \varepsilon }$ is close to $\varepsilon _ { o p t }$ , in other words, BNGD significantly extends the range of ‘optimal’ step sizes. Consequently, we can choose step sizes in BNGD at greater liberty to obtain almost the same or better convergence rate than the optimal GD. However, the size of this region is inversely dependent on the initial condition $a _ { 0 }$ . Hence, this suggests that small $a _ { 0 }$ at first steps may improve robustness. On the other hand, small $\varepsilon _ { a }$ will weaken the performance of BN. The phenomenon suggests that improper initialization of the BN parameters weakens the power of BN. This experience is encountered in practice, such as (Cooijmans et al., 2016), where higher initial values of BN parameter are detrimental to the optimization of RNN models.
191
+
192
+ ![](images/f7b9a0d2300589b6a43ee02360f42905e40644a42a566e7e6f0891ea4eca7eb4.jpg)
193
+ Figure 1: Compare of BNGD and GD on OLS model. The results are encoded by four different colors: whether $\hat { \varepsilon } _ { k }$ is close to the optimal step size $\varepsilon _ { o p t }$ of GD, characterized by the inequality $0 . 8 \varepsilon _ { o p t } < \hat { \varepsilon } _ { k } < \varepsilon _ { o p t } / 0 . 8$ , and whether loss of BNGD is less than the optimal GD. Parameters: $H =$ diag(logspace $\mathrm { 0 , l o g 1 0 } ( \kappa ) , 1 0 0 )$ ), $u$ is randomly chosen uniformly from the unit sphere in $\mathbb { R } ^ { 1 0 0 }$ , $w _ { 0 }$ is set to $H u / \lVert H u \rVert$ . The GD and BNGD iterations are executed for $k = 2 0 0 0$ steps with the same $w _ { 0 }$ . In each image, the range of $\varepsilon _ { a }$ $\mathbf { \bar { X } }$ -axis) is $1 . 9 9 ~ ^ { \ast }$ logspace(-10,0,41), and the range of $\varepsilon$ (y-axis) is logspace(-5,16,43).
194
+
195
+ # 4.2 EXPERIMENTS ON PRACTICAL DEEP LEARNING PROBLEMS
196
+
197
+ We conduct experiments on deep learning applied to standard classification datasets: MNIST (LeCun et al., 1998), Fashion MNIST (Xiao et al., 2017) and CIFAR-10 (Krizhevsky & Hinton, 2009). The goal is to explore if the key findings outlined at the beginning of this section continue to hold for more general settings. For the MNIST and Fashion MNIST dataset, we use two different networks: (1) a one-layer fully connected network $7 8 4 \times 1 0 )$ with softmax mean-square loss; (2) a fourlayer convolution network (Conv-MaxPool-Conv-MaxPool-FC-FC) with ReLU activation function and cross-entropy loss. For the CIFAR-10 dataset, we use a five-layer convolution network (ConvMaxPool-Conv-MaxPool-FC-FC-FC). All the trainable parameters are randomly initialized by the Glorot scheme (Glorot & Bengio, 2010) before training. For all three datasets, we use a minibatch size of 100 for computing stochastic gradients. In the BNGD experiments, batch normalization is performed on all layers, the BN parameters are initialized to transform the input to zero mean/unit√ variance distributions, and a small regularization parameter $\epsilon = 1 \mathrm { e } { - 3 }$ is added to variance $\sqrt { \sigma ^ { 2 } + \epsilon }$ to avoid division by zero.
198
+
199
+ Scaling property Theoretically, the scaling property 3.2 holds for any layer using BN. However, it may be slightly biased by the regularization parameter $\epsilon$ . Here, we test the scaling property in practical settings. Figure 2 gives the loss of network-(2) $( 2 \mathrm { C N N } { + } 2 \mathrm { F C } )$ at epoch $^ { = 1 }$ with different learning rate. The norm of all weights and biases are rescaled by a common factor $\eta$ . We observe that the scaling property remains true for relatively large $\eta$ . However, when √ $\eta$ is small, the norm of weights are small. Therefore, the effect of the $\epsilon$ -regularization in $\sqrt { \sigma ^ { 2 } + \epsilon }$ becomes significant, causing the curves to be shifted.
200
+
201
+ Stability for large learning rates We use the loss value at the end of the first epoch to characterize the performance of BNGD and GD methods. Although the training of models have generally not converged at this point, it is enough to extract some relative rate information. Figure 3 shows the loss value of the networks on the three datasets. It is observed that GD and BNGD with identical learning rates for weights and BN parameters exhibit a maximum allowed learning rate, beyond which the iterations becomes unstable. On the other hand, BNGD with separate learning rates exhibits a much larger range of stability over learning rate for non-BN parameters, consistent with our theoretical results in Theorem 3.3.
202
+
203
+ Insensitivity of performance to learning rates Observe that BN accelerates convergence more significantly for deep networks, whereas for one-layer networks, the best performance of BNGD and
204
+
205
+ ![](images/cb43fe810cb54789c944f786043b9a51a1dee42bf02561ca24b1eccc15dbe571.jpg)
206
+ Figure 2: Tests of scaling property of the $2 \mathrm { C N N } { + } 2 \mathrm { F C }$ network on MNIST dataset. BN is performed on all layers, and $\scriptstyle \epsilon = 1 \mathrm { e } - 3$ is added to variance $\sqrt { \sigma ^ { 2 } + \epsilon }$ . All the trainable parameters (except the BN parameters) are randomly initialized by the Glorot scheme, and then multiplied by a same parameter $\eta$ .
207
+
208
+ GD are similar. Furthermore, in most cases, the range of optimal learning rates in BNGD is quite large, which is in agreement with the OLS analysis (Proposition 3.5). This phenomenon is potentially crucial for understanding the acceleration of BNGD in deep neural networks. Heuristically, the “optimal” learning rates of GD in distinct layers (depending on some effective notion of “condition number”) may be vastly different. Hence, GD with a shared learning rate across all layers may not achieve the best convergence rates for all layers at the same time. In this case, it is plausible that the acceleration of BNGD is a result of the decreased sensitivity of its convergence rate on the learning rate parameter over a large range of its choice.
209
+
210
+ ![](images/d9a349ba4827a529205dcdf68c18f96aa7f05a755b83ddca159a56da26e398fa.jpg)
211
+ Figure 3: Performance of BNGD and GD method on MNIST (network-(1), 1FC), Fashion MNIST (network-(2), $2 \mathrm { C N N } { + } 2 \mathrm { F C } )$ and CIFAR-10 $2 \mathrm { C N N } { + } 3 \mathrm { F C }$ ) datasets. The performance is characterized by the loss value at ephoch $^ { = 1 }$ . In the BNGD method, both the shared learning rate schemes and separated learning rate scheme (learning rate lr a for BN parameters) are given. The values are averaged over 5 independent runs.
212
+
213
+ # 5 CONCLUSION AND OUTLOOK
214
+
215
+ In this paper, we adopted a modeling approach to investigate the dynamical properties of batch normalization. The OLS problem is chosen as a point of reference, because of its simplicity and the availability of convergence results for gradient descent. Even in such a simple setting, we saw that BNGD exhibits interesting non-trivial behavior, including scaling laws, robust convergence properties, acceleration, as well as the insensitivity of performance to the choice of learning rates. Although these results are derived only for the OLS model, we show via experiments that these are qualitatively valid for general scenarios encountered in deep learning, and points to a concrete way in uncovering the reasons behind the effectiveness of batch normalization.
216
+
217
+ Interesting future directions include the extension of the results for the OLS model to more general settings of BNGD, where we believe the scaling law (Proposition 3.2) should play a significant role. In addition, we have not touched upon another empirically observed advantage of batch normalization, which is better generalization errors. It will be interesting to see how far the current approach takes us in investigating such probabilistic aspects of BNGD.
218
+
219
+ # REFERENCES
220
+
221
+ Sanjeev Arora, Nadav Cohen, and Elad Hazan. On the optimization of deep networks: Implicit acceleration by overparameterization. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 244–253, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. PMLR.
222
+
223
+ J. Bjorck, C. Gomes, and B. Selman. Understanding Batch Normalization. ArXiv e-prints, May 2018.
224
+
225
+ Leon Bottou, Frank E Curtis, and Jorge Nocedal. Optimization methods for large-scale machine ´ learning. SIAM Review, 60(2):223–311, 2018.
226
+
227
+ Tim Cooijmans, Nicolas Ballas, Cesar Laurent, and Aaron C. Courville. Recurrent batch normal- ´ ization. CoRR, abs/1603.09025, 2016. URL http://arxiv.org/abs/1603.09025.
228
+
229
+ Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 249–256, 2010.
230
+
231
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
232
+
233
+ Sergey Ioffe. Batch renormalization: Towards reducing minibatch dependence in batch-normalized models. CoRR, abs/1702.03275, 2017. URL http://arxiv.org/abs/1702.03275.
234
+
235
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
236
+
237
+ J. Kohler, H. Daneshmand, A. Lucchi, M. Zhou, K. Neymeyr, and T. Hofmann. Towards a Theoretical Understanding of Batch Normalization. ArXiv e-prints, May 2018.
238
+
239
+ Steven G Krantz and Harold R Parks. A primer of real analytic functions. Springer Science & Business Media, 2002.
240
+
241
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
242
+
243
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
244
+
245
+ J. D. Lee, M. Simchowitz, M. I. Jordan, and B. Recht. Gradient Descent Converges to Minimizers. ArXiv e-prints, February 2016.
246
+
247
+ Yintai Ma and Diego Klabjan. Convergence analysis of batch normalization for deep neural nets. CoRR, 1705.08011, 2017. URL http://arxiv.org/abs/1705.08011.
248
+
249
+ Ioannis Panageas and Georgios Piliouras. Gradient Descent Only Converges to Minimizers: NonIsolated Critical Points and Invariant Regions. In Christos H. Papadimitriou (ed.), 8th Innovations in Theoretical Computer Science Conference (ITCS 2017), volume 67 of Leibniz International Proceedings in Informatics (LIPIcs), pp. 2:1–2:12, Dagstuhl, Germany, 2017. Schloss Dagstuhl– Leibniz-Zentrum fuer Informatik. ISBN 978-3-95977-029-3. doi: 10.4230/LIPIcs.ITCS.2017.2.
250
+
251
+ S. P. Ponomarev. Submersions and preimages of sets of measure zero. Siberian Mathematical Journal, 28(1):153–163, Jan 1987. ISSN 1573-9260. doi: 10.1007/BF00970225. URL https: //doi.org/10.1007/BF00970225.
252
+
253
+ Yousef Saad. Iterative methods for sparse linear systems, volume 82. siam, 2003.
254
+
255
+ S. Santurkar, D. Tsipras, A. Ilyas, and A. Madry. How Does Batch Normalization Help Optimiza tion? (No, It Is Not About Internal Covariate Shift). ArXiv e-prints, May 2018.
256
+
257
+ Michael Shub. Global stability of dynamical systems. Springer Science & Business Media, 2013.
258
+
259
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017.
260
+
261
+ # A PROOF OF THEOREMS
262
+
263
+ # A.1 GRADIENTS AND HESSIAN MATRIX
264
+
265
+ The objective function in problem (7) has an equivalent form:
266
+
267
+ $$
268
+ \begin{array} { r } { J ( { a } , { w } ) = \frac { 1 } { 2 } ( { u } - \frac { { a } } { \sigma } { w } ) ^ { T } H ( { u } - \frac { { a } } { \sigma } { w } ) = \frac { 1 } { 2 } \| { u } \| _ { H } ^ { 2 } - \frac { { w } ^ { T } g } { \sigma } { a } + \frac { 1 } { 2 } { a } ^ { 2 } , } \end{array}
269
+ $$
270
+
271
+ where $u = H ^ { - 1 } g$
272
+
273
+ The gradients are:
274
+
275
+ $$
276
+ \begin{array} { r l } & { \frac { \partial J } { \partial a } = - \frac { 1 } { \sigma } ( \boldsymbol { w } ^ { T } H \boldsymbol { u } - \frac { a } { \sigma } \boldsymbol { w } ^ { T } H \boldsymbol { w } ) = - \frac { 1 } { \sigma } \boldsymbol { w } ^ { T } \boldsymbol { g } + \boldsymbol { a } , } \\ & { \frac { \partial J } { \partial \boldsymbol { w } } = - \frac { a } { \sigma } ( H \boldsymbol { u } - \frac { a } { \sigma } H \boldsymbol { w } ) + \frac { a } { \sigma ^ { 3 } } ( \boldsymbol { w } ^ { T } H \boldsymbol { u } - \frac { a } { \sigma } \boldsymbol { w } ^ { T } H \boldsymbol { w } ) H \boldsymbol { w } = - \frac { a } { \sigma } \boldsymbol { g } + \frac { \boldsymbol { a } } { \sigma ^ { 3 } } ( \boldsymbol { w } ^ { T } \boldsymbol { g } ) H \boldsymbol { w } . } \end{array}
277
+ $$
278
+
279
+ The Hessian matrix is
280
+
281
+ $$
282
+ \left( \begin{array} { c c } { { \frac { \partial ^ { 2 } J } { \partial a ^ { 2 } } } } & { { \frac { \partial ^ { 2 } J } { \partial a \partial w } } } \\ { { \frac { \partial ^ { 2 } J } { \partial w \partial a } } } & { { \frac { \partial ^ { 2 } J } { \partial w ^ { 2 } } } } \end{array} \right) = \left( \begin{array} { c c } { { 1 } } & { { A _ { 2 1 } ^ { T } } } \\ { { A _ { 2 1 } } } & { { A _ { 2 2 } } } \end{array} \right)
283
+ $$
284
+
285
+ where
286
+
287
+ $$
288
+ \begin{array} { r l } & { A _ { 2 2 } = \frac { a } { \sigma ^ { 3 } } ( w ^ { T } g ) \Big [ H + \frac { 1 } { w ^ { T } g } \big ( ( H w ) g ^ { T } + g ( H w ) ^ { T } \big ) - \frac { 3 } { \sigma ^ { 2 } } ( H w ) ( H w ) ^ { T } \Big ] , } \\ & { A _ { 2 1 } = - \frac { 1 } { \sigma } \big ( g - \frac { 1 } { \sigma ^ { 2 } } ( w ^ { T } g ) H w \big ) . } \end{array}
289
+ $$
290
+
291
+ The objective function ${ J } ( a , w )$ has trivial critical points, $\{ ( a ^ { * } , w ^ { * } ) | a ^ { * } = 0 , w ^ { * T } g = 0 \}$ . It is obvious that $a ^ { * }$ is the minimizer of ${ \cal J } ( a , w ^ { * } )$ , but $( \boldsymbol { a } ^ { * } , \boldsymbol { w } ^ { * } )$ is not a local minimizer of ${ J } ( a , w )$ unless $g = 0$ , hence $( \boldsymbol { a } ^ { * } , \boldsymbol { w } ^ { * } )$ are saddle points of ${ J } ( a , w )$ . The Hessian matrix at those saddle points has at least a negative eigenvalue, i.e. the saddle points are strict. In fact, the eigenvalues at the saddle point $( \boldsymbol { a } ^ { * } , \boldsymbol { w } ^ { * } )$ are $\begin{array} { r } { \Big \{ \frac { 1 } { 2 } ( 1 \pm \sqrt { 1 + 4 \frac { \left\| g \right\| ^ { 2 } } { w ^ { * T } H w ^ { * } } } ) , 0 , . . . , 0 \Big \} } \end{array}$ which contains $d - 2$ repeated zero, a positive and a negative eigenvalue.
292
+
293
+ On the other hand, the nontrivial critical points satisfies the relations,
294
+
295
+ $$
296
+ a ^ { * } = \pm \sqrt { u ^ { T } H u } , w ^ { * } / / u ,
297
+ $$
298
+
299
+ where the sign of $a ^ { * }$ depends on the direction of $u , w ^ { * }$ , i.e. $s i g n ( a ^ { * } ) = s i g n ( u ^ { T } w ^ { * } )$ . It is easy to check that the nontrivial critical points are global minimizers. The Hessian matrix at those minimizers is $d i a g ( 1 , H ^ { * } / \lVert w ^ { * } \rVert ^ { 2 } )$ where the matrix $H ^ { * }$ is
300
+
301
+ $$
302
+ \begin{array} { r } { H ^ { * } = H - \frac { H u u ^ { T } H } { u ^ { T } H u } } \end{array}
303
+ $$
304
+
305
+ which is positive semi-definite and has a zero eigenvalue corresponding to the eigenvector $u$ , i.e. $H ^ { * } u = 0$ . The following lemma, similar to the well known Cauchy interlacing theorem, gives an estimate of eigenvalues of $H ^ { * }$ .
306
+
307
+ ma and If sa $H$ is positive definite and fy the following inequa $H ^ { * }$ is defined as s: $\begin{array} { r } { H ^ { * } = H - \frac { H u u ^ { T } H } { u ^ { T } H u } } \end{array}$ , then the eigenvalues $H$ $H ^ { * }$
308
+
309
+ $$
310
+ 0 = \lambda _ { 1 } ( H ^ { * } ) < \lambda _ { 1 } ( H ) \leq \lambda _ { 2 } ( H ^ { * } ) \leq \lambda _ { 2 } ( H ) \leq \ldots \leq \lambda _ { d } ( H ^ { * } ) \leq \lambda _ { d } ( H ) .
311
+ $$
312
+
313
+ Here $\lambda _ { i } ( H )$ means the $i$ -th smallest eigenvalue of $H$ .
314
+
315
+ Proof. (1) According to the definition, we have $H ^ { * } u = 0$ , and for any $\boldsymbol { x } \in \mathbb { R } ^ { d }$ ,
316
+
317
+ $$
318
+ \begin{array} { r } { x ^ { T } H ^ { \ast } x = x ^ { T } H x - \frac { ( x ^ { T } H u ) ^ { 2 } } { u ^ { T } H u } \in [ 0 , x ^ { T } H x ] , } \end{array}
319
+ $$
320
+
321
+ which implies $H ^ { * }$ is semi-positive definite, and $\lambda _ { i } ( H ^ { * } ) \geq \lambda _ { 1 } ( H ^ { * } ) = 0$ . Furthermore, we have the following equality:
322
+
323
+ $$
324
+ x ^ { T } H ^ { * } x = \operatorname* { m i n } _ { t \in \mathbb { R } } \| x - t u \| _ { H } ^ { 2 } .
325
+ $$
326
+
327
+ (2) We will prove $\lambda _ { i } ( H ^ { * } ) \leq \lambda _ { i } ( H )$ for all i $, 1 \leq i \leq d$ . In fact, using the Min-Max Theorem, we have
328
+
329
+ $$
330
+ \lambda _ { i } ( H ^ { * } ) = \operatorname* { m i n } _ { d i m V = i } \operatorname* { m a x } _ { x \in V } \frac { x ^ { T } H ^ { * } x } { \| x \| ^ { 2 } } \leq \operatorname* { m i n } _ { d i m V = i } \operatorname* { m a x } _ { x \in V } \frac { x ^ { T } H x } { \| x \| ^ { 2 } } = \lambda _ { i } ( H ) .
331
+ $$
332
+
333
+ (3) We will prove $\lambda _ { i } ( H ^ { * } ) \geq \lambda _ { i - 1 } ( H )$ for all $i$ , $2 \leq i \leq d$ . In fact, using the Max-Min Theorem, we have
334
+
335
+ $$
336
+ \begin{array} { r l } & { \lambda _ { i } ( H ^ { * } ) = \underset { d i m V = n - i + 1 } { \operatorname* { m a x } } \underset { x \in V } { \operatorname* { m i n } } \frac { x ^ { T } H ^ { * } x } { \| x \| ^ { 2 } } = \underset { d i m V = n - i + 1 , u \perp V } { \operatorname* { m a x } } \underset { x \in V } { \operatorname* { m i n } } \frac { \underset { \| x - t u \| _ { H } ^ { 2 } } { \operatorname* { m i n } } } { \operatorname* { m i n } } \frac { \| x - t u \| _ { H } ^ { 2 } } { \| x \| ^ { 2 } } } \\ & { \quad \quad \geq \underset { d i m V = n - i + 1 , u \perp V } { \operatorname* { m a x } } \underset { x \in V } { \operatorname* { m i n } } \frac { \underset { \| x - t u \| _ { H } ^ { 2 } } { \operatorname* { m i n } } } { \underset { t \in R } { \operatorname* { m i n } } } \frac { \| x - t u \| _ { H } ^ { 2 } } { \| x - t u \| ^ { 2 } } } \\ & { \quad \quad = \underset { d i m V = n - i + 1 } { \operatorname* { m a x } } \underset { y \in s p a n \{ V , u \} } { \operatorname* { m i n } } \frac { \| y \| _ { H } ^ { 2 } } { \| y \| ^ { 2 } } , y = x - t u } \\ & { \quad \quad \geq \underset { d i m V = n - ( i - 1 ) + 1 } { \operatorname* { m a x } } \underset { y \in V } { \operatorname* { m i n } } \frac { y ^ { T } H y } { \| y \| ^ { 2 } } = \lambda _ { i - 1 } ( H ) , } \end{array}
337
+ $$
338
+
339
+ where we have used the fact that $\operatorname { \{ \downarrow \downarrow } u , \| x - t u \| ^ { 2 } = \| x \| ^ { 2 } + t ^ { 2 } \| u \| ^ { 2 } \geq \| x \| ^ { 2 } .$ .
340
+
341
+ There are several corollaries related to the spectral property of $H ^ { * }$ . We first give some definitions.
342
+ Since $H ^ { * }$ is positive semi-definite, we can define the $H ^ { * }$ -seminorm.
343
+
344
+ Definition A.2. The $H ^ { * }$ -seminorm of a vector $x$ is defined as $\| x \| _ { H ^ { * } } : = x ^ { T } H ^ { * } x$ . $\| x \| _ { H ^ { * } } = 0$ if and only if x is parallel to $u$ .
345
+
346
+ Definition A.3. The pseudo-condition number of $H ^ { * }$ is defined as $\begin{array} { r } { \kappa ^ { * } ( H ^ { * } ) : = \frac { \lambda _ { d } ( H ^ { * } ) } { \lambda _ { 2 } ( H ^ { * } ) } } \end{array}$ .
347
+
348
+ Definition A.4. For any real number $\varepsilon$ , the pseudo-spectral radius of the matrix $I - \varepsilon H ^ { * }$ is defined as $\rho ^ { * } ( I - \varepsilon H ^ { * } ) : = \operatorname* { m a x } _ { 2 \leq i \leq d } | 1 - \varepsilon \lambda _ { i } ( H ^ { * } ) | .$ .
349
+
350
+ The following corollaries are direct consequences of Lemma A.1, hence we omit the proofs.
351
+
352
+ Corollary A.5. The pseudo-condition number of $H ^ { * }$ is less than or equal to the condition number of $H$ :
353
+
354
+ $$
355
+ \begin{array} { r } { \kappa ^ { * } ( H ^ { * } ) : = \frac { \lambda _ { d } ( H ^ { * } ) } { \lambda _ { 2 } ( H ^ { * } ) } \leq \frac { \lambda _ { d } ( H ) } { \lambda _ { 1 } ( H ) } = : \kappa ( H ) , } \end{array}
356
+ $$
357
+
358
+ where the equality holds up if and only if $u \perp s p a n \{ v _ { 1 } , v _ { d } \}$ , $v _ { i }$ is the eigenvector of $H$ corresponding to eigenvalue $\lambda _ { i } ( H )$ .
359
+
360
+ Corollary A.6. For any vector $\boldsymbol { x } ~ \in ~ \mathbb { R } ^ { d }$ and any real number $\varepsilon$ , we have $\| ( I - \varepsilon H ^ { * } ) x \| _ { H ^ { * } } \ \leq$ $\rho ^ { * } ( I - \varepsilon H ^ { * } ) \| x \| _ { H ^ { * } }$ .
361
+
362
+ Corollary A.7. For any positive number $\varepsilon > 0$ , we have
363
+
364
+ $$
365
+ \begin{array} { r } { \rho ^ { * } ( I - \varepsilon H ^ { * } ) \leq \rho ( I - \varepsilon H ) , } \end{array}
366
+ $$
367
+
368
+ where the inequality is strict if $\cdot u ^ { T } v _ { i } \neq 0 f o r i = 1 , d$ .
369
+
370
+ It is obvious that the inequality in (27) and (28) is strict for almost all $u$ .
371
+
372
+ # A.2 SCALING PROPERTY
373
+
374
+ The dynamical system defined in equation (9)-(10) is completely determined by a set of configurations $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ . It is easy to check the system has the following scaling property:
375
+
376
+ Lemma A.8 (Scaling property). Suppose $\mu \neq 0 , \gamma \neq 0 , r \neq 0 , Q ^ { T } Q = I$ , then
377
+
378
+ (1) The configurations $\begin{array} { r } { \{ \mu Q ^ { T } H Q , \frac { \gamma } { \sqrt { \mu } } Q u , \gamma a _ { 0 } , \gamma Q w _ { 0 } , \varepsilon _ { a } , \varepsilon \} } \end{array}$ and $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ are equivalent.
379
+
380
+ (2) The configurations $\{ H , u , a _ { 0 } , w _ { 0 } , \varepsilon _ { a } , \varepsilon \}$ and $\{ H , u , a _ { 0 } , r w _ { 0 } , \varepsilon _ { a } , r ^ { 2 } \varepsilon \}$ are equivalent.
381
+
382
+ The scaling property is valid for general loss functions provided batch normalization is used. Consider a general problem
383
+
384
+ $$
385
+ \operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } } J _ { 0 } ( w ) : = E _ { x , y } [ f ( y , x ^ { T } w ) ] ,
386
+ $$
387
+
388
+ and its BN version
389
+
390
+ $$
391
+ \operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } , a \in \mathbb { R } } J ( a , w ) : = E _ { x , y } \big [ f \big ( y , a N _ { B N } ( x ^ { T } w ) \big ) \big ] .
392
+ $$
393
+
394
+ Then the gradient descent method gives the following iteration,
395
+
396
+ $$
397
+ \begin{array} { r l } & { a _ { k + 1 } = a _ { k } + \varepsilon _ { a } \frac { w _ { k } ^ { T } \tilde { h } } { \sigma _ { k } } , } \\ & { w _ { k + 1 } = w _ { k } + \varepsilon \frac { a _ { k } } { \sigma _ { k } } \Big ( \tilde { h } - \frac { w _ { k } ^ { T } \tilde { h } } { \sigma _ { k } ^ { 2 } } H w _ { k } \Big ) , } \end{array}
398
+ $$
399
+
400
+ where $\tilde { h } = h ( { a _ { k } w _ { k } } / { \sigma _ { k } } )$ , and $h$ is the gradient of original problem:
401
+
402
+ $$
403
+ h ( w ) : = E _ { x , y } [ x f _ { 2 } ^ { \prime } ( y , x ^ { T } w ) ] .
404
+ $$
405
+
406
+ It is easy to check the general BNGD has the following property:
407
+
408
+ Lemma A.9 (General scaling property). Suppose $r \neq 0 .$ , then the configurations $\{ w _ { 0 } , \varepsilon , * \}$ and $\{ r w _ { 0 } , r ^ { 2 } \varepsilon , * \}$ are equivalent. Here the sign $^ *$ means other parameters.
409
+
410
+ # A.3 PROOF OF THEOREM 3.3
411
+
412
+ Recall the BNGD iterations
413
+
414
+ $$
415
+ \begin{array} { r l } & { a _ { k + 1 } = a _ { k } + \varepsilon _ { a } \Big ( \frac { w _ { k } ^ { T } g } { \sigma _ { k } } - a _ { k } \Big ) , } \\ & { w _ { k + 1 } = w _ { k } + \varepsilon \frac { a _ { k } } { \sigma _ { k } } \Big ( g - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } H w _ { k } \Big ) . } \end{array}
416
+ $$
417
+
418
+ The scaling property simplify our analysis by allowing us to set, for example, $\lVert u \rVert = 1$ and $\| w _ { 0 } \| =$ 1. In the rest of this section, we only set $\lVert u \rVert = 1$ .
419
+
420
+ For the step size of $a$ , it is easy to check that $a _ { k }$ tends to infinity with $\varepsilon _ { a } \ > \ 2$ and initial value $a _ { 0 } = 1 , w _ { 0 } = u$ . Hence we only consider $0 < \varepsilon _ { a } < 2$ , which make the iteration of $a _ { k }$ bounded by some constant $C _ { a }$ .
421
+
422
+ Lemma A.10 (Boundedness of $a _ { k }$ ). If the step size $0 < \varepsilon _ { a } < 2$ , then the sequence $a _ { k }$ is bounded for any $\varepsilon > 0$ and any initial value $( a _ { 0 } , w _ { 0 } )$ .
423
+
424
+ Proof. Define $\begin{array} { r } { \alpha _ { k } : = \frac { w _ { k } ^ { T } g } { \sigma _ { k } } } \end{array}$ , which is bounded by $\vert \alpha _ { k } \vert \le \sqrt { u ^ { T } H u } = : C$ , then
425
+
426
+ $$
427
+ \begin{array} { l } { a _ { k + 1 } = ( 1 - \varepsilon _ { a } ) a _ { k } + \varepsilon _ { a } \alpha _ { k } } \\ { \qquad = ( 1 - \varepsilon _ { a } ) ^ { k + 1 } a _ { 0 } + ( 1 - \varepsilon _ { a } ) ^ { k } \varepsilon _ { a } \alpha _ { 0 } + \ldots + ( 1 - \varepsilon _ { a } ) \varepsilon _ { a } \alpha _ { k - 1 } + \varepsilon _ { a } \alpha _ { k } . } \end{array}
428
+ $$
429
+
430
+ $\left| 1 - \varepsilon _ { a } \right| < 1$
431
+
432
+ According to the iterations (34), we have
433
+
434
+ $$
435
+ \begin{array} { r } { u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k + 1 } = \Big ( I - \varepsilon \frac { a _ { k } } { \sigma _ { k } } \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } H \Big ) \Big ( u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k } \Big ) . } \end{array}
436
+ $$
437
+
438
+ Define
439
+
440
+ $$
441
+ \begin{array} { r l } & { { \boldsymbol { e } } _ { k } : = { \boldsymbol { u } } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } { \boldsymbol { w } } _ { k } , } \\ & { { \boldsymbol { q } } _ { k } : = { \boldsymbol { u } } ^ { T } { \boldsymbol { H } } { \boldsymbol { u } } - \frac { ( w _ { k } ^ { T } g ) ^ { 2 } } { \sigma _ { k } ^ { 2 } } = \| { \boldsymbol { e } } _ { k } \| _ { \boldsymbol { H } } ^ { 2 } \geq 0 , } \\ & { \hat { \boldsymbol { \varepsilon } } _ { k } : = \varepsilon \frac { a _ { k } } { \sigma _ { k } } \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } , } \end{array}
442
+ $$
443
+
444
+ and using the property $\frac { w ^ { T } g } { \sigma _ { k } ^ { 2 } } = \underset { t } { \operatorname { a r g m i n } } \| u - t w \| _ { H }$ , and the property of $H$ -norm, we have
445
+
446
+ $$
447
+ \begin{array} { r } { q _ { k + 1 } \leq \left| \left| u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k + 1 } \right| \right| _ { H } ^ { 2 } = \| ( I - \hat { \varepsilon } _ { k } H ) e _ { k } \| _ { H } ^ { 2 } \leq \rho ( I - \hat { \varepsilon } _ { k } H ) ^ { 2 } q _ { k } . } \end{array}
448
+ $$
449
+
450
+ Therefore we have the following lemma to make sure the iteration converge:
451
+
452
+ Lemma A.11. Let $0 < \varepsilon _ { a } < 2$ . If there are two positive numbers $\varepsilon ^ { - }$ and $\hat { \varepsilon } ^ { + }$ , and the effective step size $\hat { \varepsilon } _ { k }$ satisfies
453
+
454
+ $$
455
+ \begin{array} { r } { 0 < \frac { \varepsilon ^ { - } } { \| w _ { k } \| ^ { 2 } } \le \hat { \varepsilon } _ { k } \le \hat { \varepsilon } ^ { + } < \frac { 2 } { \lambda _ { m a x } } } \end{array}
456
+ $$
457
+
458
+ for all $k$ large enough, then the iterations $( 3 4 )$ converge to a minimizer.
459
+
460
+ Proof. Without loss of generality, we assume $\begin{array} { r } { \frac { \varepsilon ^ { - } } { \| w _ { k } \| ^ { 2 } } < \frac { 1 } { \lambda _ { m a x } } } \end{array}$ and the inequality (39) is satisfied for all $k \geq 0$ . We will prove $\| w _ { k } \|$ converges and the direction of $w _ { k }$ converges to the direction of $u$ .
461
+
462
+ (1) Since $\| w _ { k } \|$ is always increasing, we only need to prove it is bounded. We have,
463
+
464
+ $$
465
+ \begin{array} { l } { \displaystyle \| w _ { k + 1 } \| ^ { 2 } = \| w _ { k } \| ^ { 2 } + \varepsilon ^ { 2 } \frac { a _ { k } ^ { 2 } } { \sigma _ { k } ^ { 2 } } \| H e _ { k } \| ^ { 2 } } \\ { \displaystyle = \| w _ { 0 } \| ^ { 2 } + \varepsilon ^ { 2 } \sum _ { i = 0 } ^ { k } \frac { a _ { i } ^ { 2 } } { \sigma _ { i } ^ { 2 } } \| H e _ { i } \| ^ { 2 } } \\ { \displaystyle \le \| w _ { 0 } \| ^ { 2 } + \varepsilon ^ { 2 } \lambda _ { m a x } \sum _ { i = 0 } ^ { k } \frac { a _ { i } ^ { 2 } } { \sigma _ { i } ^ { 2 } } q _ { i } } \\ { \displaystyle \le \| w _ { 0 } \| ^ { 2 } + \varepsilon ^ { 2 } \frac { \lambda _ { m a x } C _ { a } ^ { 2 } } { \lambda _ { m i n } } \sum _ { i = 0 } ^ { k } \frac { q _ { i } } { \| w _ { i } \| ^ { 2 } } . } \end{array}
466
+ $$
467
+
468
+ The inequality in last lines are based on the fact that $\| H e _ { i } \| ^ { 2 } \leq \lambda _ { m a x } \| e _ { i } \| _ { H } ^ { 2 }$ , and $\left| a _ { k } \right|$ are bounded by a constant $C _ { a }$ . Next, we will prove $\textstyle \sum _ { i = 0 } ^ { \infty } { \frac { q _ { i } } { \| w _ { i } \| ^ { 2 } } } < \infty$ , which implies $\| w _ { k } \|$ are bounded.
469
+
470
+ According to the estimate (38), we have
471
+
472
+ $$
473
+ \begin{array} { r l } & { q _ { k + 1 } \leq \operatorname* { m a x } _ { i } \{ | 1 - \hat { \varepsilon } ^ { + } \lambda _ { i } | ^ { 2 } , | 1 - \frac { \varepsilon ^ { - } \lambda _ { i } } { \| w _ { k } \| ^ { 2 } } | ^ { 2 } \} q _ { k } } \\ & { \qquad \leq \operatorname* { m a x } \{ 1 - \gamma ^ { + } , 1 - \frac { \varepsilon ^ { - } \lambda _ { m i n } } { \| w _ { k } \| ^ { 2 } } \} q _ { k } , } \end{array}
474
+ $$
475
+
476
+ where $\begin{array} { r } { 1 - \gamma ^ { + } = \operatorname* { m a x } _ { i } \{ | 1 - \hat { \varepsilon } ^ { + } \lambda _ { i } | ^ { 2 } \} \in ( 0 , 1 ) } \end{array}$ . Using the definition of $q _ { k }$ , we have
477
+
478
+ $$
479
+ \begin{array} { r } { q _ { k } - q _ { k + 1 } \geq \frac { \operatorname* { m i n } \{ \gamma ^ { + } \| w _ { 0 } \| ^ { 2 } , \varepsilon ^ { - } \lambda _ { m i n } \} } { \| w _ { k } \| ^ { 2 } } q _ { k } = : \frac { C q _ { k } } { \| w _ { k } \| ^ { 2 } } \geq 0 . } \end{array}
480
+ $$
481
+
482
+ Since $q _ { k }$ is bounded in $[ 0 , u ^ { T } H u ]$ , summing both side of the inequality, we get the bound of the infinite series $\sum _ { k } \frac { q _ { k } } { \| w _ { k } \| ^ { 2 } } \leq \frac { u ^ { T } H u } { C } < \infty$ .
483
+
484
+ (2) Since $\lVert w _ { k } \rVert$ is bounded, we denote $\hat { \varepsilon } ^ { - } : = \frac { \varepsilon ^ { - } } { \| w _ { \infty } \| ^ { 2 } }$ , and define $\rho : = \operatorname* { m a x } _ { i } \{ | 1 - \hat { \varepsilon } ^ { \pm } \lambda _ { i } | \} \in ( 0 , 1 )$ then the inequality (38) implies $q _ { k + 1 } \le \rho ^ { 2 } q _ { k }$ . As a consequence, $q _ { k }$ tends to zero, which implies the direction of $w _ { k }$ converges to the direction of $u$ .
485
+
486
+ (3) The convergence of $a _ { k }$ is a consequence of $w _ { k }$ converging.
487
+
488
+ Since ak is bounded, we assume |ak| < C˜a uT Hu, C˜a ≥ 1, and define ε0 := 12C˜aκλmax . The following lemma gives the convergence for small step size.
489
+
490
+ Lemma A.12. If the initial values $( a _ { 0 } , w _ { 0 } )$ satisfies $a _ { 0 } w _ { 0 } ^ { T } g \ > \ 0$ , and step size satisfies $\varepsilon _ { a } ~ \in$ $( 0 , 1 ] , \varepsilon / \| w _ { 0 } \| ^ { 2 } < \varepsilon _ { 0 }$ , then the sequence $( a _ { k } , w _ { k } )$ converges to a global minimizer.
491
+
492
+ Remark 1: If we set a0 = 0, then we have w1 = w0, a1 = εa σ0 , hence $a _ { 1 } w _ { 1 } ^ { T } g > 0$ provided $w _ { 0 } ^ { T } g \neq 0$ .
493
+
494
+ Remark 2: For the case of $\varepsilon _ { a } \in ( 1 , 2 )$ , if the initial value satisfies an additional condition $0 ~ <$ $\begin{array} { r } { | a _ { 0 } | \leq \varepsilon _ { a } \frac { | w _ { 0 } ^ { T } g | } { \sigma _ { 0 } } } \end{array}$ , then we have $( a _ { k } , w _ { k } )$ converges to a global minimizer as well.
495
+
496
+ Proof. Without loss of generality, we only consider the case of $a _ { 0 } > 0 , w _ { 0 } ^ { T } g > 0 , \| w _ { 0 } \| \geq 1$
497
+
498
+ (1) We will prove $a _ { k } > 0 , w _ { k } ^ { T } g > 0$ for all $k$ . Denote $\begin{array} { r } { y _ { k } : = w _ { k } ^ { T } g , \delta = \frac { \| g \| } { 4 \kappa } } \end{array}$
499
+
500
+ On the one hand, if $a _ { k } > 0 , 0 < y _ { k } < 2 \delta$ , then
501
+
502
+ $$
503
+ \begin{array} { r } { y _ { k + 1 } \geq y _ { k } + \varepsilon \frac { a _ { k } } { \sigma _ { k } } \frac { \| g \| ^ { 2 } } { 2 } \geq y _ { k } . } \end{array}
504
+ $$
505
+
506
+ On the other hand, when $a _ { k } > 0 , y _ { k } > 0 , \varepsilon < \varepsilon _ { 0 }$ , we have
507
+
508
+ $$
509
+ \begin{array} { r l } & { y _ { k + 1 } \geq \varepsilon \frac { a _ { k } \| g \| ^ { 2 } } { \sigma _ { k } } + y _ { k } \Big ( 1 - \varepsilon \frac { a _ { k } } { \sigma _ { k } ^ { 2 } } \sqrt { g ^ { T } H g } \Big ) \geq \frac { 1 } { 2 } y _ { k } , } \\ & { a _ { k + 1 } \geq \operatorname* { m i n } \{ a _ { k } , y _ { k } / \sigma _ { k } \} . } \end{array}
510
+ $$
511
+
512
+ As a consequence, we have $a _ { k } > 0 , y _ { k } \geq \delta _ { y } : = \operatorname* { m i n } \{ y _ { 0 } , \delta \}$ for all $k$ by induction.
513
+
514
+ (2) We will prove the effective step size $\hat { \varepsilon } _ { k }$ satisfying the condition in Lemma A.11.
515
+
516
+ Since $a _ { k }$ is bounded, $\varepsilon < \varepsilon _ { 0 }$ , we have
517
+
518
+ $$
519
+ \begin{array} { r } { \hat { \varepsilon } _ { k } : = \varepsilon \frac { a _ { k } } { \sigma _ { k } } \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } \leq \frac { \varepsilon \tilde { C } _ { a } \lambda _ { m a x } } { \lambda _ { m i n } \| w _ { k } \| ^ { 2 } } \leq \varepsilon \tilde { C } _ { a } \kappa = : \hat { \varepsilon } ^ { + } < \frac { 1 } { 2 \lambda _ { m a x } } , } \end{array}
520
+ $$
521
+
522
+ and
523
+
524
+ $$
525
+ q _ { k + 1 } \leq ( 1 - \hat { \varepsilon } _ { k } \lambda _ { m i n } ) ^ { 2 } q _ { k } \leq ( 1 - \hat { \varepsilon } _ { k } \lambda _ { m i n } ) q _ { k } < q _ { k } .
526
+ $$
527
+
528
+ which implies $\begin{array} { r } { \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k + 1 } } \geq \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \geq \frac { w _ { 0 } ^ { T } g } { \sigma _ { 0 } } } \end{array}$ . Furthermore, we have $\begin{array} { r } { { a } _ { k } \geq \operatorname* { m i n } \{ { a } _ { 0 } , \frac { w _ { 0 } ^ { T } g } { { \sigma } _ { 0 } } \} } \end{array}$ , , and there is a positive constant $\varepsilon ^ { - } > 0$ such that
529
+
530
+ $$
531
+ \begin{array} { r } { \hat { \varepsilon } _ { k } \geq \varepsilon \frac { a _ { k } } { \lambda _ { m a x } \| w _ { k } \| ^ { 2 } } \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \geq \frac { \varepsilon ^ { - } } { \| w _ { k } \| ^ { 2 } } . } \end{array}
532
+ $$
533
+
534
+ (3) Employing the Lemma A.11, we conclude that $( a _ { k } , w _ { k } )$ converges to a global minimizer.
535
+
536
+ Lemma A.13. If step size satisfies $\varepsilon _ { a } \in ( 0 , 1 ] , \varepsilon / \| w _ { 0 } \| ^ { 2 } < \varepsilon _ { 0 } ,$ , then the sequence $( a _ { k } , w _ { k } )$ converges.
537
+
538
+ Proof. Thanks to Lemma A.12, we only need to consider the case of $a _ { k } w _ { k } ^ { T } g \leq 0$ for all $k$ , and we will prove the iteration converges to a saddle point in this case. Since the case of $a _ { k } = 0$ or $w _ { k } ^ { T } g = 0$ is trivial, we assume $a _ { k } w _ { k } ^ { T } g < 0$ below. More specifically , we will prove $| a _ { k + 1 } | < r | a _ { k } |$ for some constant $r \in ( 0 , 1 )$ , which implies convergence to a saddle point.
539
+
540
+ (1) If $a _ { k }$ and $a _ { k + 1 }$ have same sign, hence different sign with $w _ { k } ^ { T } g$ , then we have $| a _ { k + 1 } | = | 1 -$ $\varepsilon _ { a } \| { a } _ { k } | - \varepsilon _ { a } | w _ { k } ^ { T } g | / \sigma _ { k } \leq | 1 - \varepsilon _ { a } | \| { a } _ { k } |$ .
541
+
542
+ (2) If $a _ { k }$ and $a _ { k + 1 }$ have different signs, then we have
543
+
544
+ $$
545
+ \begin{array} { r } { \frac { | w _ { k } ^ { T } g | } { | a _ { k } \sigma _ { k } | } \leq \varepsilon \frac { 1 } { \sigma _ { k } ^ { 2 } } \Big ( \| g \| ^ { 2 } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } g ^ { T } H w _ { k } \Big ) \leq 2 \varepsilon \kappa \lambda _ { m a x } < 1 . } \end{array}
546
+ $$
547
+
548
+ Consequently, we get
549
+
550
+ $$
551
+ \begin{array} { r } { \frac { \left| a _ { k + 1 } \right| } { \left| a _ { k } \right| } = \varepsilon _ { a } \frac { \left| w _ { k } ^ { T } g \right| } { \left| a _ { k } \sigma _ { k } \right| } - \left( 1 - \varepsilon _ { a } \right) \leq 2 \varepsilon \varepsilon _ { a } \kappa \lambda _ { m a x } - \left( 1 - \varepsilon _ { a } \right) < \varepsilon _ { a } \leq 1 . } \end{array}
552
+ $$
553
+
554
+ (3) Setting $r : = \mathrm { m a x } ( | 1 - \varepsilon _ { a } | , 2 \varepsilon \varepsilon _ { a } \kappa \lambda _ { m a x } - ( 1 - \varepsilon _ { a } ) )$ , we finish the proof.
555
+
556
+ To simplify our proofs for Theorem 3.3, we give two lemmas which are obvious but useful.
557
+
558
+ Lemma A.14. If positive series $f _ { k } , h _ { k }$ satisfy $f _ { k + 1 } \leq r f _ { k } + h _ { k } , r \in ( 0 , 1 )$ and $\operatorname* { l i m } _ { k \to \infty } h _ { k } = 0 _ { \ast }$ , then $\operatorname* { l i m } _ { k \to \infty } f _ { k } = 0$ .
559
+
560
+ Proof. It is obvious, because the series $b _ { k }$ defined by $b _ { k + 1 } = r b _ { k } + h _ { k } , b _ { 0 } > 0$ , tends to zeros.
561
+
562
+ Lemma A.15 (Separation property). For $\delta _ { 0 }$ small enough, the set $S : = \{ w | y ^ { 2 } q < \delta _ { 0 } , \| w \| \ge 1 \}$ is composed by two separated parts: $S _ { 1 }$ and $S _ { 2 }$ , $d i s t ( S _ { 1 } , S _ { 2 } ) > 0$ , where in the set $S _ { 1 }$ one has $y ^ { 2 } < \bar { \delta } _ { 1 } , q > \bar { \delta } _ { 2 }$ , and in $S _ { 2 }$ one has $q < \delta _ { 2 } , y ^ { 2 } > \delta _ { 1 }$ for some $\delta _ { 1 } > 0 , \delta _ { 2 } > 0$ . Here $y : = w ^ { T } g , q : =$ $\begin{array} { r } { u ^ { T } H u - \frac { ( w ^ { T } H u ) ^ { 2 } } { w ^ { T } H w } = u ^ { T } H u - \frac { y ^ { 2 } } { w ^ { T } H w } } \end{array}$ .
563
+
564
+ Proof. The proof is based on $H$ being positive. The geometric meaning is illustrated in Figure 4. □
565
+
566
+ ![](images/57d99de35f156a48a240c44ddcf9aafd69590674e33f61f21a7d473bf8e3b147.jpg)
567
+ Figure 4: The geometric meaning of the separation property
568
+
569
+ Corollary A.16. $I f \operatorname* { l i m } _ { k \to \infty } \left\| w _ { k + 1 } - w _ { k } \right\| = 0$ , and $\operatorname* { l i m } _ { k \infty } ( w _ { k } ^ { T } g ) ^ { 2 } q _ { k } = 0 ,$ , then either $\operatorname* { l i m } _ { k \to \infty } ( w _ { k } ^ { T } g ) ^ { 2 } = 0$ or $\operatorname* { l i m } _ { k \to \infty } q _ { k } = 0$ .
570
+
571
+ Proof. Denote $y _ { k } : = w _ { k } ^ { T } g$ . According to the separation property (Lemma A.15), we can chose a $\delta _ { 0 } > 0$ small enough such that the separated parts of the set $\dot { S } : = \dot { \{ w | y ^ { 2 } q < \delta _ { 0 } , \| w \| \ge 1 \} }$ , $S _ { 1 }$ and $S _ { 2 }$ , have $d i s t ( S _ { 1 } , S _ { 2 } ) > 0$ .
572
+
573
+ Because $y _ { k } ^ { 2 } q _ { k }$ tends to zero, we have $w _ { k }$ belongs to $S$ for $k$ large enough, for instance $k > k _ { 1 }$ . On the other hand, because $\| w _ { k + 1 } - w _ { k } \|$ tends to zero, we have $\lVert w _ { k + 1 } - w _ { k } \rVert < d i s t ( S _ { 1 } , S _ { 2 } )$ for $k$ large enough, for instance $k > k _ { 2 }$ . Then consider $k > k _ { 3 } : = \operatorname* { m a x } ( k _ { 1 } , k _ { 2 } )$ , we have all $w _ { k }$ belongs to the same part $S _ { 1 }$ or $S _ { 2 }$ .
574
+
575
+ If $w _ { k } \in S _ { 1 }$ , $( q _ { k } > \delta _ { 2 }$ ), for all $k > k _ { 3 }$ , then we have $\operatorname* { l i m } _ { k \to \infty } ( w _ { k } ^ { T } g ) ^ { 2 } = 0$
576
+
577
+ On the other hand, if $w _ { k } \in S _ { 2 }$ , $( y _ { k } ^ { 2 } > \delta _ { 1 } )$ , for all $k > k _ { 3 }$ , then we have $\operatorname* { l i m } _ { k \to \infty } q _ { k } = 0$
578
+
579
+ Theorem A.17. Let $\varepsilon _ { a } \in ( 0 , 1 ]$ and $\varepsilon > 0$ . The sequence $( a _ { k } , w _ { k } )$ converges for any initial value $( a _ { 0 } , w _ { 0 } )$ .
580
+
581
+ Proof. We will prove $\| w _ { k } \|$ converges, then prove $( a _ { k } , w _ { k } )$ converges as well.
582
+
583
+ (1) We will prove that $\| w _ { k } \|$ is bounded and hence converges.
584
+
585
+ In fact, according to the Lemma A.13, once $\| w _ { k } \| ^ { 2 } \geq \varepsilon / \varepsilon _ { 0 }$ for some $k$ , the rest of the iteration will converge, hence $\bar { \parallel } w _ { k } \parallel$ is bounded.
586
+
587
+ (2) We will prove $\operatorname* { l i m } _ { k \to \infty } \| w _ { k + 1 } - w _ { k } \| = 0 , \mathrm { a n d } \operatorname* { l i m } _ { k \to \infty } ( w _ { k } ^ { T } g ) ^ { 2 } q _ { k } = 0 .$
588
+
589
+ The convergence of $\| w _ { k } \|$ implies $\textstyle \sum _ { k } a _ { k } ^ { 2 } q _ { k }$ is summable. As a consequence,
590
+
591
+ $$
592
+ \operatorname * { l i m } _ { k \to \infty } a _ { k } ^ { 2 } p _ { k } = 0 , \operatorname * { l i m } _ { k \to \infty } a _ { k } e _ { k } = 0 ,
593
+ $$
594
+
595
+ and $\operatorname* { l i m } _ { k \to \infty } \left\| w _ { k + 1 } - w _ { k } \right\| = 0$ . In fact, we have
596
+
597
+ $$
598
+ \begin{array} { r } { \| w _ { k + 1 } - w _ { k } \| ^ { 2 } = \varepsilon ^ { 2 } \frac { a _ { k } ^ { 2 } } { \sigma ^ { 2 } } \| H e _ { k } \| ^ { 2 } \leq \frac { \lambda _ { m a x } \varepsilon ^ { 2 } } { \lambda _ { m i n } ^ { 2 } } a _ { k } ^ { 2 } q _ { k } \to 0 . } \end{array}
599
+ $$
600
+
601
+ Consider the iteration of series $| a _ { k } - w _ { k } ^ { T } g / \sigma _ { k } |$ ,
602
+
603
+ $$
604
+ \begin{array} { r l } & { \left| a _ { k + 1 } - \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k + 1 } } \right| \leq \left| a _ { k + 1 } - \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k } } \right| + \left| \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k } } - \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k + 1 } } \right| } \\ & { \qquad \leq ( 1 - \varepsilon _ { a } ) \Big | a _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \Big | + \varepsilon \frac { | a _ { k } g ^ { T } H e _ { k } | } { \sigma _ { k } ^ { 2 } } + \frac { | w _ { k + 1 } ^ { T } g | } { ( \sigma _ { k } \sigma _ { k + 1 } ) } \big | \sigma _ { k + 1 } - \sigma _ { k } \big | } \\ & { \qquad \leq ( 1 - \varepsilon _ { a } ) \Big | a _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \Big | + \varepsilon \frac { \| g \| _ { H } \| a _ { k } e _ { k } \| _ { H } } { \sigma _ { k } ^ { 2 } } + \frac { | w _ { k + 1 } ^ { T } g | } { ( \sigma _ { k } \sigma _ { k + 1 } ) } \varepsilon \frac { \lambda _ { m a x } } { \sigma _ { k } } \| a _ { k } e _ { k } \| _ { H } } \\ & { \qquad \leq ( 1 - \varepsilon _ { a } ) \Big | a _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \Big | + 2 C \| a _ { k } e _ { k } \| _ { H } . } \end{array}
605
+ $$
606
+
607
+ The constant $C$ in (57) can be chosen as $\begin{array} { r } { C = \frac { \varepsilon \lambda _ { m a x } \| u \| _ { H } } { \lambda _ { m i n } \| w _ { 0 } \| ^ { 2 } } } \end{array}$ . Since $\| a _ { k } e _ { k } \| _ { H }$ tends to zero, we can use Lemma A.14 to get $\operatorname* { l i m } _ { k \to \infty } | a _ { k } - w _ { k } ^ { T } g / \sigma _ { k } | = 0$ . Combine the equation (55), then we have $\operatorname* { l i m } _ { k \infty } ( w _ { k } ^ { T } g ) ^ { 2 } p _ { k } = 0 .$
608
+
609
+ (3) According to the Corollary A.16, we have either $\operatorname* { l i m } _ { k \to \infty } y _ { k } ^ { 2 } = 0$ , or $\operatorname* { l i m } _ { k \to \infty } q _ { k } = 0$ . In the former case, the iteration of $( a _ { k } , w _ { k } )$ converges to a saddle point. However, in the latter case, $( a _ { k } , w _ { k } )$ converges to a global minimizer. In both cases we have $( a _ { k } , w _ { k } )$ converges.
610
+
611
+ To finish the proof of Theorem 3.3, we have to demonstrate the special case of ${ { \varepsilon } _ { a } } \mathrm { ~ = ~ } 1$ where the set of initial values such that BN iteration converges to saddle points is Lebeguse measure zero. We leave this demonstration in next section where we consider the case of $\varepsilon _ { a } \geq 1$ .
612
+
613
+ # A.4 IMPOSSIBILITY OF CONVERGING TO STRICT SADDLE POINTS
614
+
615
+ In this section, we will prove the set of initial values such that BN iteration converges to saddle points is (Lebeguse) measure zero, as long as $\varepsilon _ { a } \geq 1$ . The tools in our proof is similar to the analysis of gradient descent on non-convex objectives (Lee et al., 2016; Panageas & Piliouras, 2017). In addition, we used the real analytic property of the BN loss function (16).
616
+
617
+ For brevity, here we denote $x : = ( a , w )$ and let $\varepsilon _ { a } = \varepsilon$ , then the BN iteration can be rewrote as
618
+
619
+ $$
620
+ x _ { n + 1 } = { \cal T } ( x _ { n } ) : = x _ { n } - \varepsilon \nabla J ( x _ { n } ) .
621
+ $$
622
+
623
+ Lemma A.18. If $A \subset T ( \mathbb { R } ^ { d } / \{ 0 \} )$ is a measure zero set, then the preimage $T ^ { - 1 } ( A )$ is of measure zero as well.
624
+
625
+ Proof. Since $T$ is smooth enough, according to Theorem 3 of (Ponomarev, 1987), we only need to prove the Jacobian of $T ( x )$ is nonzero for almost all $x \in \mathbb { R } ^ { d }$ . In other words, the set $\{ x :$ $\mathrm { d e f } ( I - \varepsilon \nabla ^ { 2 } J ( x ) ) = 0 \}$ is of measure zero. This is true because the function $\operatorname* { d e t } ( I - \varepsilon \nabla ^ { 2 } J ( x ) )$ is a real analytic function of $x \in \mathbb { R } ^ { d } / \{ 0 \}$ . (Details of properties of real analytic functions can be found in (Krantz & Parks, 2002) for instance).
626
+
627
+ Lemma A.19. Let $f : X \to \mathbb { R }$ be twice continuously differentiable in an open set $X \subset \mathbb { R } ^ { d }$ and $x ^ { * } \in X$ be a stationary point of $f$ . If $\varepsilon > 0$ , $\operatorname* { d e t } ( I - \varepsilon \nabla ^ { 2 } f ( x ^ { * } ) ) \neq 0$ and the matrix $\nabla ^ { 2 } f ( x ^ { * } )$ has at least a negative eigenvalue, then there exist a neighborhood $U$ of $x ^ { * }$ such that the following set $B$ has measure zero,
628
+
629
+ $$
630
+ B : = \{ x _ { 0 } \in U : x _ { n + 1 } = x _ { n } - \varepsilon \nabla f ( x _ { n } ) \in U , \forall n \geq 0 \} .
631
+ $$
632
+
633
+ Proof. The detailed proof is similar to (Lee et al., 2016; Panageas & Piliouras, 2017).
634
+
635
+ Define the transform function as $F ( x ) : = x - \varepsilon \nabla f ( x )$ . Since $\operatorname* { d e t } ( I - \varepsilon \nabla ^ { 2 } f ( x ^ { * } ) ) \neq 0$ , accorded to the inverse function theorem, there exist a neighborhood $U$ of $x ^ { * }$ such that $T$ has differentiable inverse. Hence $T$ is a local $C ^ { 1 }$ diffeomorphism, which allow us to use the central-stable manifold theorem (Shub, 2013). The negative eigenvalues of $\nabla ^ { 2 } f ( x ^ { * } )$ indicates $\lambda _ { m a x } ( I - \varepsilon \nabla ^ { 2 } f ( x ^ { * } ) ) > 1$ and the dimension of the unstable manifold is at least one, which implies the set $B$ is on a lower dimension manifold hence $B$ is of measure zero.
636
+
637
+ Lemma A.20. If $\varepsilon _ { a } = \varepsilon \ge 1$ , then the set of initial values such that BN iteration converges to saddle points is of Lebeguse measure zero.
638
+
639
+ Proof. We will prove this argument using Lemma A.18 and Lemma A.19. Denote the saddle points set as $W : = \{ ( \stackrel { . } { a ^ { * } } , w ^ { * } ) : a ^ { * } \stackrel { - } { = } 0 , w ^ { * T } g = 0 \}$ . The basic point is that the saddle point $x ^ { \ast } : = ( a ^ { \ast } , w ^ { \ast } )$ of the BN loss function (16) has eigenvalues $\begin{array} { r } { \Big \{ \frac { 1 } { 2 } ( 1 \pm \sqrt { 1 + 4 \frac { \| g \| ^ { 2 } } { w ^ { * T } H w ^ { * } } } ) , 0 , . . . , 0 \Big \} } \end{array}$ of the Hessian matrix.
640
+
641
+ (1) For each saddle point $x ^ { \ast } : = ( a ^ { \ast } , w ^ { \ast } )$ of BN loss function, $\varepsilon \geq 1$ is enough to allow us to use Lemma A.19. Hence there exist a neighborhood $U _ { x ^ { * } }$ of $x ^ { * }$ such that the following set $B _ { x ^ { * } }$ is of measure zero,
642
+
643
+ $$
644
+ B _ { x ^ { * } } : = \{ x _ { 0 } \in U _ { x ^ { * } } : x _ { n } \in U _ { x ^ { * } } , \forall n \geq 1 \} .
645
+ $$
646
+
647
+ (2) The neighborhoods $U _ { x ^ { * } }$ of all $x ^ { * } \in W$ forms a cover of $W$ , hence, accorded to Lindelof’s open ¨ cover lemma, there are countable neighborhoods $\{ U _ { i } : i = 1 , 2 , \ldots \}$ cover $W$ , i.e. $U : = \cup _ { i } U _ { i } \supseteq W$ . As a consequence, the following set $A _ { 0 }$ is of measure zero,
648
+
649
+ $$
650
+ A _ { 0 } : = \cup _ { i } B _ { i } = \cup _ { i } \{ x _ { 0 } \in U _ { i } : x _ { n } \in U _ { i } , \forall n \geq 1 \} .
651
+ $$
652
+
653
+ (3) Define $A _ { m + 1 } : = T ^ { - 1 } ( A _ { m } ) = \{ x \in \mathbb { R } ^ { d } : T ( x ) \in A _ { m } \} , m \geq 0 .$ . According to Lemma A.18, we have all $A _ { m }$ and $\cup _ { m } A _ { m }$ are of measure zero.
654
+
655
+ (4) Since each initial value $x _ { 0 }$ such that the iteration converges to a saddle point must be contained in some set $A _ { m }$ , we finish the proof.
656
+
657
+ Combine the results of Lemma A.20, scaling property 3.2 and the convergence theorem A.17, we have the following theorem directly.
658
+
659
+ Theorem A.21. If $\varepsilon _ { a } = 1 , \varepsilon \geq 0$ , then the BN iteration (9)-(10) converges to global minimizers for almost all initial values.
660
+
661
+ # A.5 CONVERGENCE RATE
662
+
663
+ In the last section, we encountered the following estimate for $\begin{array} { r } { \boldsymbol { e } _ { k } = \boldsymbol { u } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k } } \end{array}$
664
+
665
+ $$
666
+ \| e _ { k + 1 } \| _ { H } \leq \rho ( I - { \hat { \varepsilon } } _ { k } H ) \| e _ { k } \| _ { H } .
667
+ $$
668
+
669
+ We can improve the convergence rate of the above if $H ^ { * }$ has better spectral property. This is the content of Proposition 3.4 and the following lemma is enough to prove it.
670
+
671
+ Lemma A.22. The following inequality holds,
672
+
673
+ $$
674
+ \begin{array} { r } { ( 1 - \delta _ { k } ) \| e _ { k + 1 } \| _ { H } \leq \Big ( \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) + \delta _ { k } \Big ) \| e _ { k } \| _ { H } , } \end{array}
675
+ $$
676
+
677
+ where $\begin{array} { r } { \delta _ { k } : = \frac { \lambda _ { m a x } \varepsilon | { a } _ { k } | } { \sigma _ { k } ^ { 2 } } \| e _ { k } \| _ { H } } \end{array}$
678
+
679
+ Proof. The case of $w _ { k } ^ { T } g = 0$ is trivial, hence we assume $w _ { k } ^ { T } g \neq 0$ in the following proof. Rewrite the iteration on $w _ { k }$ as the following equality,
680
+
681
+ $$
682
+ \begin{array} { r } { u - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } w _ { k + 1 } = ( I - \hat { \varepsilon } _ { k } H ) e _ { k } = ( I - \hat { \varepsilon } _ { k } H ^ { * } ) e _ { k } - \hat { \varepsilon } _ { k } \Big ( 1 - \frac { ( w _ { k } ^ { T } g ) ^ { 2 } } { u ^ { T } H u \sigma _ { k } ^ { 2 } } \Big ) H u . } \end{array}
683
+ $$
684
+
685
+ Then we will use the properties of $H ^ { * }$ -seminorm to prove our argument.
686
+
687
+ (1) Estimate the $H ^ { * }$ -seminorm on the right hand of equation (63).
688
+
689
+ $$
690
+ \begin{array} { r l } & { \| \mathrm { r i g h t } \| _ { H ^ { * } } \leq \| ( I - \hat { \varepsilon } _ { k } H ^ { * } ) e _ { k } \| _ { H ^ { * } } + | \hat { \varepsilon } _ { k } | \Big ( 1 - \frac { ( w _ { k } ^ { T } g ) ^ { 2 } } { u ^ { T } H u \sigma _ { k } ^ { 2 } } \Big ) \| H u \| _ { H ^ { * } } } \\ & { \qquad \leq \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) \| e _ { k } \| _ { H ^ { * } } + \frac { \lambda _ { m a x } | \hat { \varepsilon } _ { k } | } { \sqrt { u ^ { T } H u } } \| e _ { k } \| _ { H } ^ { 2 } } \\ & { \qquad = \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) \frac { | w _ { k } ^ { T } g | } { \sqrt { u ^ { T } H u \sigma _ { k } } } \| e _ { k } \| _ { H } + \frac { \lambda _ { m a x } \varepsilon | a _ { k } w _ { k } ^ { T } g | } { \sqrt { u ^ { T } H u \sigma _ { k } ^ { 3 } } } \| e _ { k } \| _ { H } ^ { 2 } } \\ & { \qquad = \frac { | w _ { k } ^ { T } g | } { \sqrt { u ^ { T } H u \sigma _ { k } } } \Big ( \rho ^ { * } ( I - \hat { \varepsilon } _ { k } H ^ { * } ) + \delta _ { k } \Big ) \| e _ { k } \| _ { H } . } \end{array}
691
+ $$
692
+
693
+ (2) Estimate the $H ^ { * }$ -seminorm on the left hand of equation (63). Using the $H$ -norm on the iteration of $w _ { k }$ , we have
694
+
695
+ $$
696
+ \begin{array} { r } { \sigma _ { k + 1 } = \| w _ { k } + \varepsilon \frac { a _ { k } } { \sigma _ { k } } H e _ { k } \| _ { H } \ge \sigma _ { k } - \varepsilon \frac { \lambda _ { m a x } | a _ { k } | } { \sigma _ { k } } \| e _ { k } \| _ { H } . } \end{array}
697
+ $$
698
+
699
+ Consequently, we have
700
+
701
+ $$
702
+ \begin{array} { r } { \| \mathrm { l e f t } \| _ { H ^ { * } } = \frac { | w _ { k } ^ { T } g | } { \sqrt { u ^ { T } H u \sigma _ { k } } } \frac { \sigma _ { k + 1 } } { \sigma _ { k } } \| e _ { k + 1 } \| _ { H } \geq \frac { | w _ { k } ^ { T } g | } { \sqrt { u ^ { T } H u \sigma _ { k } } } ( 1 - \delta _ { k } ) \| e _ { k + 1 } \| _ { H } . } \end{array}
703
+ $$
704
+
705
+ (3) Combining (1) and (2), we finish the proof.
706
+
707
+ Now, we turn to the convergence of the loss function which can be rewritten as $\begin{array} { r } { J _ { k } = \frac { 1 } { 2 } \| \tilde { e } _ { k } \| _ { H } ^ { 2 } } \end{array}$ with $\begin{array} { r } { \tilde { e } _ { k } = u - \frac { a _ { k } } { \sigma _ { k } } w _ { k } } \end{array}$ . There is an useful equality between $\| \tilde { e } _ { k } \| _ { H } ^ { 2 }$ and $\| e _ { k } \| _ { H } ^ { 2 }$ :
708
+
709
+ $$
710
+ \begin{array} { r } { \| \tilde { e } _ { k } \| _ { H } ^ { 2 } = \| e _ { k } \| _ { H } ^ { 2 } + \Big ( a _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \Big ) ^ { 2 } . } \end{array}
711
+ $$
712
+
713
+ Recalling the inequality (57) and the boundedness of $a _ { k }$ , we have a constant $C _ { 0 }$ such that
714
+
715
+ $$
716
+ \begin{array} { r } { \left| { a } _ { k + 1 } - \frac { w _ { k + 1 } ^ { T } g } { \sigma _ { k + 1 } } \right| \leq | 1 - \varepsilon _ { a } | \left| { a } _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \right| + C _ { 0 } \| e _ { k } \| _ { H } , } \end{array}
717
+ $$
718
+
719
+ which indicates that we can use the convergence of $e _ { k }$ to estimate the convergence of the loss value $J _ { k }$ . In fact we have the following lemma.
720
+
721
+ Lemma A.23. If $\| e _ { k } \| _ { H } \leq C \rho ^ { k }$ for some constant $C$ and $\rho \in ( 0 , 1 )$ , $\varepsilon _ { a } \in ( 0 , 1 ]$ , then we have
722
+
723
+ $$
724
+ \| \widetilde { e } _ { k } \| _ { H } ^ { 2 } \le C ^ { 2 } \rho ^ { 2 k } + \Bigl ( C _ { 1 } ( 1 - \varepsilon _ { a } ) ^ { k } + C _ { 2 } k \gamma ^ { k } \Bigr ) ^ { 2 } ,
725
+ $$
726
+
727
+ where $\gamma = \operatorname* { m a x } ( \rho , 1 - \varepsilon _ { a } )$ , $C _ { 1 } = | a _ { 0 } - w _ { 0 } ^ { T } g / \sigma _ { 0 } |$ and $C _ { 2 } = C C _ { 0 }$ .
728
+
729
+ Proof. According to the inequality (71), we have
730
+
731
+ $$
732
+ \left| a _ { k } - \frac { w _ { k } ^ { T } g } { \sigma _ { k } } \right| \leq C _ { 1 } ( 1 - \varepsilon _ { a } ) ^ { k } + C _ { 2 } \sum _ { i = 0 } ^ { k - 1 } ( 1 - \varepsilon _ { a } ) ^ { i } \rho ^ { k - i } \leq C _ { 1 } ( 1 - \varepsilon _ { a } ) ^ { k } + C _ { 2 } k \gamma ^ { k } .
733
+ $$
734
+
735
+ Put it in the equality (70), then we finish the proof.
736
+
737
+ # A.6 ESTIMATING THE EFFECTIVE STEP SIZE
738
+
739
+ Accorded to Lemma A.12, the effective step size $\hat { \varepsilon } _ { k }$ has same order with εwk 2 provided a0wT0 g > $0 , \varepsilon / | | w _ { 0 } | | < \varepsilon _ { 0 }$ . In fact, we have
740
+
741
+ $$
742
+ \begin{array} { r } { \frac { C _ { 1 } \varepsilon } { \| w _ { k } \| ^ { 2 } } : = \frac { a _ { 0 } w _ { 0 } ^ { T } g } { \sigma _ { 0 } } \frac { \varepsilon } { \lambda _ { m a x } \| w _ { k } \| ^ { 2 } } \le \hat { \varepsilon } _ { k } \le \sqrt { u ^ { T } H u } \frac { C _ { a } \varepsilon } { \lambda _ { m i n } \| w _ { k } \| ^ { 2 } } = : \frac { C _ { 2 } \varepsilon } { \| w _ { k } \| ^ { 2 } } . } \end{array}
743
+ $$
744
+
745
+ Hence, to prove the Proposition 3.5, we only need to estimate the norm of $w _ { k }$
746
+
747
+ proof of Proposition 3.5. According to the BNGD iteration, we have (see the proof of Lemma A.11)
748
+
749
+ $$
750
+ \| w _ { k + 1 } \| ^ { 2 } \leq \| w _ { 0 } \| ^ { 2 } + \varepsilon ^ { 2 } \lambda _ { m a x } \sum _ { i = 0 } ^ { k } \frac { a _ { i } ^ { 2 } } { \sigma _ { i } ^ { 2 } } q _ { i } .
751
+ $$
752
+
753
+ (1) When $\frac { \varepsilon } { \| w _ { 0 } \| ^ { 2 } } < \varepsilon _ { 0 }$ ( $\scriptstyle \varepsilon _ { 0 }$ is defined in Lemma A.12), the sequence $q _ { k }$ satisfies $q _ { k + 1 } \leq ( 1 -$ $\hat { \varepsilon } _ { k } \lambda _ { m i n } ) q _ { k }$ . Hence the norm of $w _ { k }$ is bounded by
754
+
755
+ $$
756
+ \begin{array} { r } { \| w _ { k } \| ^ { 2 } \leq \| w _ { 0 } \| ^ { 2 } + \varepsilon \kappa C _ { a } \frac { \sigma _ { 0 } } { w _ { 0 } ^ { T } g } \displaystyle \sum _ { i = 0 } ^ { \infty } ( q _ { i } - q _ { i + 1 } ) \leq \| w _ { 0 } \| ^ { 2 } + C \varepsilon , } \end{array}
757
+ $$
758
+
759
+ for some constant $C$ . As a consequence,
760
+
761
+ $$
762
+ \begin{array} { r } { \tilde { C } _ { 1 } \varepsilon : = \frac { C _ { 1 } \varepsilon } { \| w _ { 0 } \| ^ { 2 } ( 1 + C \varepsilon _ { 0 } ) } \leq \hat { \varepsilon } _ { k } \leq \frac { C _ { 2 } \varepsilon } { \| w _ { 0 } \| ^ { 2 } } = : \tilde { C } _ { 2 } \varepsilon . } \end{array}
763
+ $$
764
+
765
+ (2) When $\varepsilon$ is large enough, the increment of the norm $\| w _ { k } \|$ at the first step is large as well. In fact, we have
766
+
767
+ $$
768
+ \begin{array} { r } { \| w _ { 1 } \| ^ { 2 } - \| w _ { 0 } \| ^ { 2 } = \varepsilon ^ { 2 } \frac { a _ { 0 } ^ { 2 } } { \sigma _ { 0 } ^ { 2 } } \| H e _ { 0 } \| ^ { 2 } = C _ { 3 } \varepsilon ^ { 2 } . } \end{array}
769
+ $$
770
+
771
+ Since $\begin{array} { r } { | | g | | ^ { 2 } \geq \frac { w _ { 0 } ^ { T } g } { \sigma _ { 0 } ^ { 2 } } g ^ { T } H w _ { 0 } } \end{array}$ , we have $a _ { 1 } w _ { 1 } ^ { T } g > a _ { 1 } w _ { 0 } ^ { T } g > 0 .$ . Choose $\varepsilon$ to be larger than some value $\varepsilon _ { 1 }$ such that $\frac { \varepsilon } { \| w _ { 1 } \| ^ { 2 } } < \varepsilon _ { 0 }$ , then we can use the argument in (1) on $( a _ { 1 } , w _ { 1 } )$ . More precisely, there are two constants, $C _ { 1 } , C _ { 2 }$ , such that
772
+
773
+ $$
774
+ \begin{array} { r } { \frac { C _ { 1 } \varepsilon } { \| w _ { 1 } \| ^ { 2 } } \leq \hat { \varepsilon } _ { k } \leq \frac { C _ { 2 } \varepsilon } { \| w _ { 1 } \| ^ { 2 } } . } \end{array}
775
+ $$
776
+
777
+ Plugging the equation (78) into it, we have
778
+
779
+ $$
780
+ \begin{array} { r } { \frac { C _ { 1 } \varepsilon _ { 1 } ^ { 2 } } { \| w _ { 0 } \| ^ { 2 } + C _ { 3 } \varepsilon _ { 1 } ^ { 2 } } \leq \frac { C _ { 1 } \varepsilon ^ { 2 } } { \| w _ { 0 } \| ^ { 2 } + C _ { 3 } \varepsilon ^ { 2 } } \leq \hat { \varepsilon } _ { k } \varepsilon \leq \frac { C _ { 2 } \varepsilon ^ { 2 } } { \| w _ { 0 } \| ^ { 2 } + C _ { 3 } \varepsilon ^ { 2 } } \leq \frac { C _ { 2 } } { C _ { 3 } } . } \end{array}
781
+ $$
782
+
783
+ # B MODIFIED BNGD
784
+
785
+ Through our analysis, we discovered that a modification of the BNGD, which we call MBNGD, becomes much easier to analyze and possesses better convergence properties. Note that the results in the main paper do not depend on the results in this section.
786
+
787
+ The modification is simply to enforce $\begin{array} { r } { a _ { k } \ = \ \frac { w _ { k } ^ { T } g } { \sigma _ { k } } } \end{array}$ at every iteration, which yields the modified iterations:
788
+
789
+ $$
790
+ \begin{array} { r } { \boldsymbol { w } _ { k + 1 } = \boldsymbol { w } _ { k } + \varepsilon \frac { \boldsymbol { w } _ { k } ^ { T } \boldsymbol { g } } { \sigma _ { k } ^ { 2 } } \Big ( \boldsymbol { g } - \frac { \boldsymbol { w } _ { k } ^ { T } \boldsymbol { g } } { \sigma _ { k } ^ { 2 } } H \boldsymbol { w } _ { k } \Big ) . } \end{array}
791
+ $$
792
+
793
+ In a sense, one can view the above as a limiting version of BNGD where the BN rescaling variable $a$ is adjusted every step to the optimal value based on the current value of the weights $w$ . The MBNGD iterations is governed by the variables: $H , u , a _ { 0 } , w _ { 0 } , \varepsilon$ , where the scaling properties (Lemma 3.2, omit the parameter $\varepsilon _ { a }$ now) remains. More importantly, we find the iteration will converge to a saddle point if and only if it exactly meets the saddle point at a finite step. More precisely, we have the convergence theorem:
794
+
795
+ Theorem B.1 (Convergence for modified BNGD). The iteration sequence $w _ { k }$ in equation (81) converges for any initial value $w _ { 0 }$ and any step size $\varepsilon > 0$ . It converges to a global minimizer almost sure, in the sense that the set of initial values such that $w _ { k }$ converges to a saddle point is of Lebesgue measure zero. Furthermore, It converges to a saddle point if and only if $w _ { k } ^ { T } g = 0$ for some $k$ .
796
+
797
+ Particularly, if < 2kw0k2λmaxκ u 2 , wT0 g 6= 0, then wk converges to a global minimizer.
798
+
799
+ In the following, we assume $\lVert u \rVert = 1$
800
+
801
+ # B.1 PROOF
802
+
803
+ Lemma B.2. If $w _ { 0 } ^ { T } g \neq 0$ and $\begin{array} { r } { \frac { \varepsilon } { \| w _ { 0 } \| ^ { 2 } } < \varepsilon _ { 0 } : = \frac { 2 } { \kappa \lambda _ { m a x } } } \end{array}$ , then the sequence $w _ { k }$ converges to a global minimizer.
804
+
805
+ Proof. Similar to the proof of Lemma A.12, but here the effective step size is always nonnegative which is defined as
806
+
807
+ $$
808
+ \begin{array} { r } { \hat { \varepsilon } _ { k } : = \varepsilon \bigl ( \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } \bigr ) ^ { 2 } \leq \frac { \varepsilon \kappa } { \| w _ { k } \| ^ { 2 } } \leq \frac { \varepsilon \kappa } { \| w _ { 0 } \| ^ { 2 } } = : \hat { \varepsilon } ^ { + } < \frac { 2 } { \lambda _ { m a x } } . } \end{array}
809
+ $$
810
+
811
+ The inequality (38) immediately gives $q _ { k + 1 } \leq q _ { k }$ , which implies $\begin{array} { r } { \frac { ( w _ { k + 1 } ^ { T } g ) ^ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } \geq \frac { ( w _ { k } ^ { T } g ) ^ { 2 } } { \sigma _ { k } ^ { 2 } } \geq \frac { ( w _ { 0 } ^ { T } g ) ^ { 2 } } { \sigma _ { 0 } ^ { 2 } } } \end{array}$ . As a consequence, the effective step size has a lower bound
812
+
813
+ $$
814
+ \begin{array} { r } { \hat { \varepsilon } _ { k } \geq \varepsilon \frac { ( w _ { 0 } ^ { T } g ) ^ { 2 } } { \sigma _ { 0 } ^ { 2 } } \frac { 1 } { \lambda _ { m a x } \| w _ { k } \| ^ { 2 } } = : \frac { \varepsilon ^ { - } } { \| w _ { k } \| ^ { 2 } } . } \end{array}
815
+ $$
816
+
817
+ Employing the Lemma A.11, we conclude that $w _ { k }$ converges to a global minimizer.
818
+
819
+ Proof. Without loss of generality, we assume $\| w _ { 0 } \| \ge 1$ , denote $y _ { k } : = w _ { k } ^ { T } g$ and set $\begin{array} { r } { \delta = \frac { \| g \| } { 4 \kappa } } \end{array}$ . From the iteration of $w _ { k }$ , we have
820
+
821
+ $$
822
+ \begin{array} { r } { y _ { k + 1 } = y _ { k } + \epsilon \frac { y _ { k } } { \sigma _ { k } ^ { 2 } } \Big ( \| g \| ^ { 2 } - \frac { y _ { k } } { \sigma _ { k } ^ { 2 } } g ^ { T } H w _ { k } \Big ) . } \end{array}
823
+ $$
824
+
825
+ If $0 < | w _ { k } ^ { T } g | < 2 \delta$ , then we have the inequality:
826
+
827
+ $$
828
+ \begin{array} { r } { \| g \| ^ { 2 } - \frac { y _ { k } } { \sigma _ { k } ^ { 2 } } g ^ { T } H w _ { k } \geq \| g \| ^ { 2 } - \frac { \kappa \| g \| } { \| w _ { k } \| } | y _ { k } | \geq \frac { 1 } { 2 } \| g \| ^ { 2 } , } \end{array}
829
+ $$
830
+
831
+ then
832
+
833
+ $$
834
+ \begin{array} { r } { | y _ { k + 1 } | \geq \left( 1 + \frac { \epsilon } { \lambda _ { m a x } \| w _ { k } \| ^ { 2 } } \frac { \| g \| ^ { 2 } } { 2 } \right) | y _ { k } | > | y _ { k } | > 0 . } \end{array}
835
+ $$
836
+
837
+ As a consequence, $\scriptstyle \operatorname* { l i m } _ { k \to \infty } w _ { k } ^ { T } g = 0$ is not possible unless $w _ { k } ^ { T } g = 0$ for some $k$ , which implies the results we want.
838
+
839
+ Theorem B.4. The iteration sequence $w _ { k }$ in equation (81) converges for any initial value $w _ { 0 }$ and any step size $\varepsilon > 0$ . Furthermore, $w _ { k }$ will converge to a global minimizer unless $w _ { k } ^ { T } g = 0$ for some $k$ .
840
+
841
+ Proof. Obviously, if $w _ { k } ^ { T } g = 0$ for some $k = k _ { 0 }$ , then $w _ { k } = w _ { k _ { 0 } }$ for all $k \geq k _ { 0 }$ , hence $w _ { k }$ converges to $w _ { k _ { 0 } }$ . Without losing generality, we consider $w _ { k } ^ { T } g \neq 0$ for all $k$ and $\| w _ { 0 } \| \ge 1$ below.
842
+
843
+ (1) Firstly, we will prove that $\| w _ { k } \|$ is bounded and hence converges.
844
+
845
+ In fact, according to the Lemma B.2, once $\| w _ { k } \| ^ { 2 } \geq \varepsilon / \varepsilon _ { 0 }$ for some $k$ , the rest of the iteration will converge, hence $\| w _ { k } \|$ is bounded.
846
+
847
+ (2) Secondly, we will prove $w _ { k }$ converges to a vector parallel to $u$
848
+
849
+ Denote $\begin{array} { r } { y _ { k } : = w _ { k } ^ { T } g , z _ { k } : = \frac { w _ { k } ^ { T } g } { \sigma ^ { 2 } } } \end{array}$ . The convergence of $\| w _ { k } \|$ indicates that $\textstyle \sum _ { k = 0 } ^ { \infty } z _ { k } ^ { 2 } q _ { k }$ is summable, and then $\textstyle \sum _ { k = 0 } ^ { \infty } y _ { k } ^ { 2 } q _ { k }$ is summable as well. Therefore we have
850
+
851
+ $$
852
+ \begin{array} { r } { \left\| w _ { k + 1 } - w _ { k } \right\| ^ { 2 } = \varepsilon ^ { 2 } \frac { ( w _ { k } ^ { T } g ) ^ { 2 } } { \sigma ^ { 4 } } \bigg \| g - \frac { w _ { k } ^ { T } g } { \sigma _ { k } ^ { 2 } } H w _ { k } \bigg \| ^ { 2 } \leq \lambda _ { m a x } \varepsilon ^ { 2 } z _ { k } ^ { 2 } q _ { k } , } \end{array}
853
+ $$
854
+
855
+ and the above tends to zero, i.e. $\begin{array} { r } { \operatorname* { l i m } _ { k \infty } \| w _ { k + 1 } - w _ { k } \| = 0 } \end{array}$
856
+
857
+ According to the separation property (Lemma A.15), we can chose a $\delta _ { 0 } > 0$ small enough such that the separated parts of the set $S : = \left\{ w | y ^ { 2 } q < \delta _ { 0 } , \| w \| \ge 1 \right\}$ , $S _ { 1 }$ and $S _ { 2 }$ , have $d i s t ( S _ { 1 } , S _ { 2 } ) > 0$ .
858
+
859
+ Because $y _ { k } ^ { 2 } q _ { k }$ tends to zero, we have $w _ { k }$ belongs to $S$ for $k$ large enough, for instance $k > k _ { 1 }$ . On the other hand, because $\| w _ { k + 1 } - w _ { k } \|$ tends to zero, we have $\lVert w _ { k + 1 } - w _ { k } \rVert < d i s t ( S _ { 1 } , S _ { 2 } )$ for $k$ large enough, for instance $k > k _ { 2 }$ . Then consider $k > k _ { 3 } : = \operatorname* { m a x } ( k _ { 1 } , k _ { 2 } )$ , we have all $w _ { k }$ belongs to the same part $S _ { 1 }$ or $S _ { 2 }$ .
860
+
861
+ However, Lemma B.3 says $\scriptstyle \sum _ { k = 0 } ^ { \infty } y _ { k } ^ { 2 } \ = \infty$ , hence $w _ { k } \in S _ { 1 }$ $( q _ { k } > \delta _ { 2 } )$ for all $k > k _ { 3 }$ is not true. Therefore $w _ { k } \in S _ { 2 } ( y _ { k } ^ { 2 } > \delta _ { 1 } )$ for all $k > k _ { 3 }$ . Consequently, we can claim that $\textstyle \sum _ { k = 0 } ^ { \infty } q _ { k }$ is summable and $w _ { k }$ converges to a vector parallel to $u$ .
862
+
863
+ # B.2 EXPERIMENT
864
+
865
+ Here we test the convergence and stability of MBNGD for OLS model. Consider the diagonal matrix $H = d i a g ( h )$ , where $h = ( 1 , . . . , \kappa )$ is an increasing sequence. The scaling property allows us to set the initial value $w _ { 0 }$ having same 2-norm with $u$ , $\| \bar { w } _ { 0 } \| \overset { - } { = } \| u \| = 1$ .
866
+
867
+ Figure 5 gives an example of a 5-dimensional $H$ with condition number $\kappa = 2 0 0 0$ . The GD and MBNGD iteration are executed $k = 5 0 0 0$ times where $u$ and $w _ { 0 }$ are randomly chosen from the unit sphere. The values of effective step size, loss $\| e _ { k } \| _ { H } ^ { 2 }$ and error $\| e _ { k } \|$ are plotted. Furthermore, to explore the performance of GD and MBNGD, the mean values over 300 random tests are given. It is worth to note that, the geometric mean (G-mean) is more reliable than the arithmetic mean (Amean), where the geometric mean of $x$ can be defined as $\exp ( \mathbb { E } ( \ln x ) )$ . Here the reliability means that the G-mean converges quickly when the number of tests increase, however the A-mean does not converge as quickly. In this example, the optimal convergence rate of MBNGD is observably better than GD. This acceleration phenomenon is ascribed to the pseudo-condition number of $\kappa ^ { * } ( H ^ { * } )$ being less than $\kappa ( H )$ . However, if the difference between (pseudo-)condition number of $H$ and $H ^ { * }$ is small, the acceleration is imperceptible.
868
+
869
+ Another important observation is that the BN significantly extends the range of ‘optimal’ step size, which is embodied by the effective step size $\hat { \varepsilon } _ { k }$ having a large constant $C$ in $\hat { \varepsilon } = \stackrel { - } { O } ( C \varepsilon ^ { - 1 } )$ . This means we can chose step size in BN at a large interval to get almost same or better convergence rate than that of the best choice for GD.
870
+
871
+ Figure 6 gives an example of 100-dimension $H$ with condition number $\kappa = 2 0 0 0$ . Similar results as those in the 5-dimensional case are obtained. However, the best optimal convergence rate of MBNGD here has not noticeably improved compared with GD with the optimal learning rate, which is due to the fact that large $d$ decrease the difference between eigenvalues of $H$ and $H ^ { * }$ .
872
+
873
+ Additional tests indicate that:
874
+
875
+ ![](images/e2118b1de21777d9d090dfdd9f6f11ed4d624440b4428d09e4f70c518c7f98fc.jpg)
876
+ Figure 5: Plot of 300 random initial tests. $\mathrm { H } =$ diag(logspace(0,log10(2000),5)).
877
+
878
+ ![](images/0f2250d9076a3b166fba2f8f22fe04145795f432e1c8459b5fb1282d2f0c5cdc.jpg)
879
+ Figure 6: Plot of 500 random initial tests. $\mathrm { H } =$ diag(linspace(1,2000,100)).
880
+
881
+ (1) larger dimensions leads to larger intervals of ‘optimal’ step size, (Figure 7)
882
+
883
+ (2) the effect of condition number on the ‘optimal’ interval is small (Figure 8).
884
+
885
+ ![](images/0a6e31e9cdca96a921d3ab705eef68df7d884908fbbf0960238be533f26474e1.jpg)
886
+ Figure 7: $\mathrm { H } =$ diag(linspace(1,2000,d)).
887
+
888
+ ![](images/f711f7570a97f8aed4035ade1ceab57535f2f1ed5befeec7ad8bbaf74dea258e.jpg)
889
+ Figure 8: $\mathrm { H } =$ diag(linspace(1,cond,100)).
parse/train/SJg7IsC5KQ/SJg7IsC5KQ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJg7IsC5KQ/SJg7IsC5KQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJg7IsC5KQ/SJg7IsC5KQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkqV-XZRZ/SkqV-XZRZ.md ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # VARIATIONAL BI-LSTMS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Recurrent neural networks like long short-term memory (LSTM) are important architectures for sequential prediction tasks. LSTMs (and RNNs in general) model sequences along the forward time direction. Bidirectional LSTMs (Bi-LSTMs), which model sequences along both forward and backward directions, generally perform better at such tasks because they capture a richer representation of the data. In the training of Bi-LSTMs, the forward and backward paths are learned independently. We propose a variant of the Bi-LSTM architecture, which we call Variational Bi-LSTM, that creates a dependence between the two paths (during training, but which may be omitted during inference). Our model acts as a regularizer and encourages the two networks to inform each other in making their respective predictions using distinct information. We perform ablation studies to better understand the different components of our model and evaluate the method on various benchmarks, showing state-of-the-art performance.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Recurrent neural networks (RNNs) have become the standard models for sequential prediction tasks, having achieved state of the art performance in a number of applications that includes sequence prediction, language translation, machine comprehension, and speech synthesis (Arik et al., 2017; Wang et al., 2017; Mehri et al., 2016; Sotelo et al., 2017). RNNs model temporal data by encoding a given arbitrary-length input sequentially, at each time step combining some transformation of the current input with the encoding from the previous time step. This encoding, referred to as the RNN hidden state, summarizes all previous input tokens.
12
+
13
+ Viewed as “unrolled” feedforward networks, RNNs can become arbitrarily deep depending on the input sequence length, and use a repeating module to combine the input with the previous state at each time step. Consequently, they suffer from the vanishing/exploding gradient problem (Pascanu et al., 2012). This problem has been addressed through architectural variants like the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997) and the gated recurrent unit (GRU) (Chung et al., 2014). These architectures add a linear path along the temporal sequence which allows gradients to flow more smoothly back through time.
14
+
15
+ Various regularization techniques have also been explored to improve RNN performance and generalization. Dropout (Srivastava et al., 2014) regularizes a network by randomly dropping hidden units during training. However, it has been observed that using dropout directly on RNNs is not as effective as in the case of feed-forward networks. To combat this, Zaremba et al. (2014) propose to instead apply dropout on the activations that are not involved in the recurrent connections (Eg. in a multi-layer RNN); Gal & Ghahramani (2016) propose to apply the same dropout mask through an input sequence during training. In a similar spirit to dropout, Zoneout (Krueger et al., 2016) proposes to choose randomly whether to use the previous RNN hidden state.
16
+
17
+ The aforementioned architectures model sequences along the forward direction of the input sequence. Bidirectional-LSTM, on the other hand, is a variant of LSTM that simultaneously models each sequence in both the forward and backward directions. This enables a richer representation of data, since each token’s encoding contains context information from the past and the future. It has been shown empirically that bidirectional architectures generally outperform unidirectional ones on many sequence-prediction tasks. However, the forward and backward paths in Bi-LSTMs are trained separately and the benefit usually comes from the combined hidden representation from both paths. In this paper, our main idea is to create a dependence between the two paths that acts as a regularization during training, but doesn’t hinder inference even in the absence of the other path (the backward path in practical scenarios). We note that recently proposed methods like TwinNet Serdyuk et al. (2017) and Z-forcing Sordoni et al. (2017) are similar in spirit to this idea. In our approach, we use a variational auto-encoder (VAE; Kingma & Welling (2014)) that takes as input the hidden states from the two paths of the Bi-LSTM and maps them to a shared hidden representation of the VAE at each time step. The samples from the VAE hidden state are then used both for reconstructing the LSTM hidden states and feeding forward to the next hidden state. In this way, we create a channel between the two paths that acts as a regularization for learning better representations. We refer to the resulting model as a Variational Bi-LSTM.
18
+
19
+ Below, we describe Variational Bi-LSTMs in detail and then demonstrate empirically their ability to model complex sequential distributions. In experiments, we obtain state-of-the-art or competitive performance on the tasks of Penn Treebank, IMDB, TIMIT, Blizzard, and Sequential MNIST.
20
+
21
+ # 2 VARIATIONAL BI-LSTM
22
+
23
+ Bi-LSTM is a powerful architecture for sequential tasks because it models temporal data both in the forward and backward directions. For this it uses two LSTMs that are generally learned independently of each other; the richer representation results from combining the hidden states of these LSTMs, where combination is often by concatenation. The idea behind variational Bi-LSTMs is to create a channel of information exchange between the two LSTMs that helps the model to learn better representations. We create this dependence using a variational auto-encoder (VAE). This enables us to take advantage of the fact that VAE allows for sampling from a prior during inference. For sequence prediction tasks like language generation, while one can use Bi-LSTMs during training, there is no straightforward way to employ the full bidirectional model during inference – this would involve, eg, generating a sentence starting at both its beginning and end. In such cases, the VAE allows us to sample from the prior at inference time to make up for the absence of the backward LSTM.
24
+
25
+ Now we describe our variational Bi-LSTM model formally. Let $\mathbf { X } = \{ \mathbf { x } ^ { ( i ) } \} _ { i = 1 } ^ { N }$ be a dataset consisting of $N$ i.i.d. sequential data samples of continuous or discrete variables. For notational convenience, we will henceforth drop the superscript $i$ indexing samples. For each sample sequence $\mathbf { x } = ( \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { T } )$ , the hidden state of the forward LSTM is given by:
26
+
27
+ $$
28
+ \mathbf { h } _ { t } = \vec { f } ( \mathbf { x } _ { t } , \mathbf { h } _ { t - 1 } , \mathbf { z } _ { t } , \tilde { \mathbf { b } } _ { t } ) .
29
+ $$
30
+
31
+ The hidden state of the backward LSTM is given by,
32
+
33
+ $$
34
+ \mathbf { b } _ { t } = \overleftarrow { f } ( \mathbf { x } _ { t } , \mathbf { b } _ { t + 1 } ) .
35
+ $$
36
+
37
+ In both cases, the function $f$ represents the standard LSTM updates, modified to account for the additional arguments.
38
+
39
+ In the forward LSTM model, we introduce three latent random variables, $\mathbf { z } _ { t } , \tilde { \mathbf { b } } _ { t }$ , and $\tilde { \mathbf { h } } _ { t - 1 }$ , where $\mathbf { z } _ { t }$ depends on $\mathbf { h } _ { t - 1 }$ and $\mathbf { b } _ { t }$ during training, and $\tilde { \mathbf { b } } _ { t }$ and $\tilde { \mathbf { h } } _ { t - 1 }$ depend only on $\mathbf { z } _ { t }$ (see figure 1-left, for a graphical representation). Note that so far, $\tilde { \mathbf { b } } _ { t }$ and $\tilde { \mathbf { h } } _ { t - 1 }$ are simply latent vectors drawn from conditional distributions $p _ { \psi }$ and $p _ { \xi }$ , respectively, to be defined below. However, as explained in Section 2.1 (see also dashed lines in figure 1-left), we will encourage these to lie near the manifolds of backward and forward LSTM states, respectively.
40
+
41
+ By design, the joint conditional distribution over latent variables $\mathbf { z } _ { t }$ and $\tilde { \mathbf { b } } _ { t }$ with parameters $\theta$ and $\psi$ factorizes as $p _ { \theta } ( \mathbf { z } _ { t } | \mathbf { x } _ { 1 : t - 1 } , \mathbf { z } _ { 1 : t - 1 } ) p _ { \psi } ( \tilde { \mathbf { b } } _ { t } | \mathbf { z } _ { t } )$ . This factorization enables us to formulate several helpful auxiliary cots, as defined in the next subsection. Further, $p _ { \eta } ( \mathbf { x } _ { t + 1 } | \mathbf { x } _ { 1 : t } , \mathbf { z } _ { 1 : t } , \tilde { \mathbf { b } } _ { t } )$ defines the generating model, which induces the distribution over the next observation given the previous states and the current input.
42
+
43
+ ![](images/161f5732f91f90cba658cac7b9f25b2c774e2166fc933313bfe7d4393dcf6a8f.jpg)
44
+ (a) Training phase of variational Bi-LSTM
45
+
46
+ ![](images/99ebd8d75a0549959f48953dcef7cd6d9042f86704b858b60aa20dee95753e8b.jpg)
47
+ (b) Inference phase of variational Bi-LSTM
48
+ Figure 1: Graphical description of our proposed variational Bi-LSTM model during train phase (left) and inference phase (right). During training, each step $t$ is composed of an encoder which receives both the past and future summary via $\mathbf { h } _ { t - 1 }$ and $\mathbf { b } _ { t }$ respectively, and a decoder that generates $\tilde { \mathbf { h } } _ { t - 1 }$ and $\tilde { \mathbf { b } } _ { t }$ which are forced to be close enough to $\mathbf { h } _ { t - 1 }$ and $\mathbf { b } _ { t }$ using two auxiliary reconstruction costs (dashed lines). This dependence between backward and forward LSTM through the latent random variable encourages the forward LSTM to learn a richer representation. During inference, the backward LSTM is removed. In this case, $\mathbf { z } _ { t }$ is sampled from the prior as in a typical VAE, which in our case, is defined as a function of $\mathbf { h } _ { t - 1 }$ .
49
+
50
+ Then the marginal likelihood of each individual sequential data sample $\mathbf { x }$ can be written as
51
+
52
+ $$
53
+ \begin{array} { l } { \displaystyle p ( { \bf x } ; { \bf Y } ) = \prod _ { t = 0 } ^ { T } p ( { \bf x } _ { t + 1 } \vert { \bf x } _ { 1 : t } ) = \prod _ { t = 0 } ^ { T } \int _ { { \bf z } _ { 1 : T } } p ( { \bf x } _ { t + 1 } \vert { \bf x } _ { 1 : t } , { \bf z } _ { 1 : t } ) p _ { \theta } ( { \bf z } _ { t } \vert { \bf x } _ { 1 : t - 1 } , { \bf z } _ { 1 : t - 1 } ) d { \bf z } _ { 1 : T } } \\ { \displaystyle \quad \quad = \prod _ { t = 0 } ^ { T } \int _ { { \bf z } _ { 1 : T } } \int _ { { \bar { \bf b } } _ { t } } \Big [ p _ { \eta } ( { \bf x } _ { t + 1 } \vert { \bf x } _ { 1 : t } , { \bf z } _ { 1 : t } , { \bf \tilde { b } } _ { t } ) p _ { \psi } ( \tilde { { \bf b } } _ { t } \vert { \bf z } _ { 1 : t } ) p _ { \theta } ( { \bf z } _ { t } \vert { \bf x } _ { 1 : t - 1 } , { \bf z } _ { 1 : t - 1 } ) \Big ] d { \tilde { \bf b } } _ { t } d { \bf z } _ { 1 : T } , } \end{array}
54
+ $$
55
+
56
+ where $q _ { \phi } ( \mathbf { z } _ { t } | \mathbf { x } )$ is the conditional inference model and $\Gamma = \{ \phi , \theta , \psi , \eta \}$ is the set of all parameters of the model. Here, we assume that all conditional distributions belong to parametrized families of distributions which can be evaluated and sampled from efficiently.
57
+
58
+ Note that the joint distribution in equation (1) is intractable. Kingma & Welling (2014) demonstrated how to maximize a variational lower bound, ${ \mathcal { L } } _ { \Gamma }$ , of the data log likelihood instead, which is given by
59
+
60
+ $$
61
+ \log p ( \mathbf { x } ; \mathbf { r } ) \ge \mathcal { L } _ { \mathbf { T } } = \sum _ { t = 0 } ^ { T } \underbrace { E } _ { \substack { \mathbf { z } _ { 1 : T } \sim q _ { \phi } ( \mathbf { z } | \mathbf { x } ) \tilde { \mathbf { b } } _ { t } \sim p _ { \psi } ( \tilde { \mathbf { b } } _ { t } | \mathbf { z } _ { t } ) } } \Big [ \log p _ { \eta } ( \mathbf { x } _ { t + 1 } | \mathbf { x } _ { 1 : t } , \mathbf { z } _ { 1 : t } , \tilde { \mathbf { b } } _ { t } ) \Big ]
62
+ $$
63
+
64
+ where $D _ { K L }$ is the Kullback-Leibler (KL) divergence between the approximate posterior and the conditional prior (see the appendix). This is the approach we take.
65
+
66
+ # 2.1 TRAINING AND INFERENCE
67
+
68
+ In the proposed variational Bi-LSTM, the latent variable $\mathbf { z } _ { t }$ is inferred as
69
+
70
+ $$
71
+ \mathbf { z } _ { t } \sim q _ { \phi } ( \mathbf { z } _ { t } | ( \mathbf { h } _ { t - 1 } , \mathbf { b } _ { t } ) ) = \mathcal { N } ( \pmb { \mu } _ { q , t } , \mathrm { d i a g } ( \pmb { \sigma } _ { q , t } ^ { 2 } ) ) ,
72
+ $$
73
+
74
+ in which $[ { \pmb \mu } _ { q , t } , { \pmb \sigma } _ { q , t } ^ { 2 } ] = f _ { \phi } ( { \bf h } _ { t - 1 } , { \bf b } _ { t } )$ where $f _ { \phi }$ is a multi-layered feed-forward network with Gaussian outputs. We assume that the prior over $\mathbf { z } _ { t }$ is a diagonal multivariate Gaussian distribution given by
75
+
76
+ $$
77
+ p _ { \theta } ( \mathbf { z } _ { t } | \mathbf { x } _ { 1 : t - 1 } , \mathbf { z } _ { 1 : t - 1 } ) = \mathcal { N } ( \mu _ { p , t } , \mathrm { d i a g } ( \sigma _ { p , t } ^ { 2 } ) ) , \quad \mathrm { w h e r e } \quad [ \mu _ { p , t } , \sigma _ { p , t } ^ { 2 } ] = f _ { \theta } ( \mathbf { h } _ { t - 1 } ) ,
78
+ $$
79
+
80
+ for a fully connected network $f _ { \theta }$ . This is important because, during generation (see Figure 1-right, for a graphical representation), we will not have access to the backward LSTM. In this case, as in a
81
+
82
+ VAE, we will sample from the prior for $\mathbf { z } _ { t }$ . Since we define the prior to be a function of $\mathbf { h } _ { t - 1 }$ , the forward LSTM is encouraged during training to learn the dependency due to the backward hidden state $\mathbf { b } _ { t }$ .
83
+
84
+ The latent variable $\tilde { \mathbf { b } } _ { t }$ is meant to model information coming from the future of the sequence. Its conditional distribution is given by
85
+
86
+ $$
87
+ p _ { \psi } ( \tilde { \mathbf { b } } _ { t } | \mathbf { z } _ { t } ) = \mathcal { N } ( \mu _ { \tilde { \mathbf { b } } , t } , \mathrm { d i a g } ( \pmb { \sigma } _ { \tilde { b } , t } ^ { 2 } ) ) ,
88
+ $$
89
+
90
+ where $[ { \pmb { \mu } } _ { { \tilde { \bf b } } , t } , { \pmb { \sigma } } _ { { \tilde { \bf b } } , t } ^ { 2 } ] = f _ { \psi } ( \mathbf { z } _ { t } )$ for a fully connected neural network $f _ { \psi }$ (See Figure 1(a)). To encourage the encoding of future information in $\tilde { \mathbf { b } } _ { t }$ , we maximize the probability of the true backward hidden state, $\mathbf { b } _ { t }$ , under the distribution $p _ { \psi }$ , as an auxiliary cost during training. In this way we treat $\tilde { \mathbf { b } } _ { t }$ as a predictor of $\mathbf { b } _ { t }$ , similarly to what was done by Sordoni et al. (2017).
91
+
92
+ To capture information from the past in the latents, we similarly use $\tilde { \mathbf { h } } _ { t - 1 }$ as a predictor of $\mathbf { h } _ { t - 1 }$ . This is accomplished by maximizing the probability of the latter under the conditional distribution of the former, $\log p _ { \xi } ( \tilde { \mathbf { h } } _ { t - 1 } | \mathbf { z } _ { t } )$ , as another auxiliary cost, where
93
+
94
+ $$
95
+ p _ { \xi } ( \tilde { \mathbf { h } } _ { t - 1 } | \mathbf { z } _ { t } ) = \mathcal { N } ( \mu _ { \tilde { \mathbf { h } } , t } , \mathrm { d i a g } ( \pmb { \sigma } _ { \tilde { \mathbf { h } } , t } ^ { 2 } ) ) .
96
+ $$
97
+
98
+ Here, $[ \mu _ { \tilde { \mathbf { h } } , t } , \sigma _ { \tilde { \mathbf { h } } , t } ^ { 2 } ]$ is the output of a fully-connected neural network $f _ { \xi }$ taking $\mathbf { z } _ { t }$ as input. The auxiliary costs arising from distributions $p _ { \xi }$ and $p _ { \psi }$ teach the variational Bi-LSTM to encode past and future information into the latent space of $\mathbf { z }$ .
99
+
100
+ We assume that parameters of the generating distribution $p _ { \eta } ( \mathbf { x } _ { t + 1 } | \mathbf { x } _ { 1 : t } , \mathbf { z } _ { 1 : t } , \tilde { \mathbf { b } } _ { t } )$ are computed via MLP, taking the form of either a Gaussian distribution output in the continuous case or categorical proportions output in the discrete (ie, one-hot) prediction case (See Figure 1(b)).
101
+
102
+ All the parameters in $\mathbf { \delta T }$ and $\boldsymbol { \xi }$ are updated based on backpropagation through time (Rumelhart et al., 1988) using the reparameterization trick (Kingma & Welling, 2014), where the gradients are computed by differentiating of the following function:
103
+
104
+ $$
105
+ \begin{array} { r } { \mathcal { L } ( { \bf x } ; { \bf Y } , \pmb { \xi } ) = \displaystyle \sum _ { t = 0 } ^ { T } \sum _ { z _ { 1 } : \tau \sim q _ { \phi } ( { \bf z } | { \bf x } ) } \Big [ \underset { { \tilde { \bf b } } _ { t } \sim p _ { \psi } ( b | { \bf z } _ { 1 } : t ) } { \cal E } \Big [ \log p ( { \bf x } _ { t + 1 } | { \bf x } _ { 1 : t } , { \bf z } _ { 1 : t } , { \tilde { \bf b } } _ { t } ) + } \\ { \alpha \log p _ { \psi } ( { \bf b } _ { t } | { \bf z } _ { t } ) + \beta \log p _ { \xi } ( { \bf h } _ { t - 1 } | { \bf z } _ { t } ) \Big ] \Big ] - } \\ { D _ { K L } \big ( q _ { \phi } ( { \bf z } _ { t } | { \bf x } ) \big ) \big | p _ { \theta } \big ( { \bf z } _ { t } | { \bf x } _ { 1 : t - 1 } , { \bf z } _ { 1 : t - 1 } \big ) \big ) . } \end{array}
106
+ $$
107
+
108
+ Here, $\alpha$ and $\beta$ are non-negative real numbers. We improve training convergence with a trick for the variational Bi-LSTM, which we refer to as skip gradient, meant to ease learning of the latent variables. It is well known that autoregressive decoder models tend to ignore their stochastic variables (Bowman et al., 2015). Skip gradient is a technique to encourage that relevant summaries of the past and the future are encoded in the latent space. The idea is to skip the gradient of the stochastic operations with respect to the recurrent units through time. To achieve this, at each time step, a mask drawn from a Bernoulli distribution governs whether to skip the gradient or to backpropagate it for a given data point.
109
+
110
+ # 3 EXPERIMENTAL RESULTS
111
+
112
+ In this section demonstrate the effectiveness of our proposed model on several tasks. We present experimental results obtained when training the Variational Bi-LSTM on various sequential datasets: Penn Treebank (PTB), IMDB, TIMIT, Blizzard, and Sequential MNIST. Our main goal is to ensure that the model proposed in Section 2 can benefit from a generated relevant summary of the future that yields competitive results. In all experiments, we train all the models using ADAM optimizer (Kingma & Ba, 2014) and we set all MLPs in Section 2 to have one hidden layer with leaky-ReLU hidden activation. All the models are implemented using Theano (Theano Development Team, 2016) and the code is available at https://anonymous.url.
113
+
114
+ Blizzard: Blizzard is a speech model dataset with 300 hours of English, spoken by a single female speaker. We report the average log-likelihood for half-second sequences (Fraccaro et al., 2016). In our experimental setting, we use 1024 hidden units for MLPs, 1024 LSTM units and 512 latents. Our model is trained using learning rate of 0.001 and minibatches of size 32 and we set $\alpha = \beta = 1$ . A fully factorized multivariate Gaussian distribution is used as the output distribution. The final lower bound estimation on TIMIT can be found in Table 1.
115
+
116
+ Table 1: The average of log-likelihood per sequence on Blizzard and TIMIT testset
117
+
118
+ <table><tr><td>Model</td><td>Blizzard</td><td>TIMIT</td></tr><tr><td></td><td></td><td></td></tr><tr><td>RNN-Gauss</td><td>3539</td><td>-1900</td></tr><tr><td>RNN-GMM</td><td>7413</td><td>26643</td></tr><tr><td>VRNN-I-Gauss</td><td></td><td>28340</td></tr><tr><td>VRNN-Gauss</td><td>9223</td><td>28805</td></tr><tr><td>VRNN-GMM</td><td>9392</td><td>AIAIAI AIAI 28982</td></tr><tr><td>SRNN (smooth+resq)</td><td>11991</td><td>60550</td></tr><tr><td>Z-Forcing (Sordoni et al., 2017)</td><td>&gt;I&gt;I 14315</td><td>68852</td></tr><tr><td>VariationalBi-LSTM</td><td>≥ 17319</td><td>73315</td></tr></table>
119
+
120
+ TIMIT: Another speech modeling dataset is TIMIT with 6300 English sentences read by 630 speakers. Like the work done in (Fraccaro et al., 2016), our model is trained on raw sequences of 200 dimensional frames. In our experiments, we use 1024 hidden units, 2048 LSTM units and 128 latent variables, and batch size of 128. We train the model using learning rate of 0.0001, $\alpha = 1$ and $\beta = 0$ . The average log-likelihood for the sequences on test can be found in Table 1.
121
+
122
+ Sequential MNIST: We use the MNIST dataset which is binarized according to (Murray & Salakhutdinov, 2009) and we downloaded in binrized from (Larochelle, 2011). Our best model consists of 1024 hidden units, 1024 LSTM units and 256 latent variables. We train the model using a learning rate of 0.0001 and a batch size of 32. To reach the negative log-likelihood reported in Table 2, we set $\alpha = 0 . 0 0 1$ and $\beta = 0$ .
123
+
124
+ Table 2: The average of negative log-likelihood on sequential MNIST
125
+
126
+ <table><tr><td>Models</td><td>Seq-MNIST</td></tr><tr><td>DBN 2hl (Germain et al., 2015) NADE (Uria et al., 2016) EoNADE-5 2hl (Raiko et al., 2014)</td><td>~ 84.55</td></tr><tr><td>DLGM 8 (Salimans et al., 2014)</td><td>88.33 84.68</td></tr><tr><td></td><td>≈ 85.51</td></tr><tr><td>DARN 1hl (Gregor et al.,2015) BiHM (Bornschein et al., 2015)</td><td>≈84.13</td></tr><tr><td></td><td>≈84.23</td></tr><tr><td>DRAW (Gregor et al., 2015)</td><td>≤ 80.97</td></tr><tr><td>PixelVAE (Gulrajani et al., 2016)</td><td>~ 79.02</td></tr><tr><td>Prof. Forcing (Goyal et al., 2016)</td><td></td></tr><tr><td>PixelRNN(1-layer) (Oord et al., 2016)</td><td>79.58</td></tr><tr><td></td><td>80.75</td></tr><tr><td>PixelRNN(7-layer) (Oord et al., 2016)</td><td></td></tr><tr><td>Z-Forcing (Sordoni et al.,2017)</td><td>79.20</td></tr><tr><td>VariationalBi-LSTM</td><td>≤ 80.09 ≤79.78</td></tr></table>
127
+
128
+ IMDB: It is a dataset consists of 350000 movie reviews (Diao et al., 2014) in which each sentence has less than 16 words and the vocabulary size is fixed to 16000 words. In this experiment, we use 500 hidden units, 500 LSTM units and latent variables of size 64. The model is trained with a batch size of 32 and a learning rate of 0.001 and we set $\alpha = \beta = 1$ . The word perplexity on valid and test dataset is shown in Table 3.
129
+
130
+ PTB: Penn Treebank (Marcus et al. (1993)) is a language model dataset consists of 1 million words. We train our model with 1024 LSTM units, 1024 hidden units, and the latent variables of size 128. We train the model using a standard Gaussian prior, a learning rate of 0.001 and batch size of 50 and we set $\alpha = \beta = 1$ . The model is trained to predict the next character in a sequence and the final bits per character on test and valid sets are shown in Table 4
131
+
132
+ Table 3: Word perplexity on IMDB on valid and test sets
133
+
134
+ <table><tr><td>Model</td><td>Valid</td><td>Test</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Gated Word-Char</td><td>70.60</td><td>70.87</td></tr><tr><td>Z-Forcing (Sordoni et al., 2017)</td><td>56.48</td><td>65.68</td></tr><tr><td>Variational Bi-LSTM</td><td>51.43</td><td>51.60</td></tr></table>
135
+
136
+ ![](images/206b55463e83fd04b6ab2796e4d7919dcbedf0b6c96b094d08f5e320a64735e3.jpg)
137
+ Figure 2: Evolution of the average of log-likelihood during training of Variational Bi-LSTMs with and without using skip gradient and auxiliary costs on PTB and Blizzard.
138
+
139
+ Table 4: Bits Per Character (BPC) on PTB valid and test sets
140
+
141
+ <table><tr><td>Model</td><td>Valid</td><td>Test</td></tr><tr><td>Unregularized LSTM</td><td></td><td>1.36</td></tr><tr><td>Weight noise</td><td>1.47 1.51</td><td>1.34</td></tr><tr><td>Norm stabilizer</td><td>1.46</td><td>1.35</td></tr><tr><td>Stochastic depth</td><td>1.43</td><td>1.34</td></tr><tr><td>Recurrent dropout</td><td></td><td>1.29</td></tr><tr><td>Zoneout (Krueger et al. (2016))</td><td>1.40</td><td></td></tr><tr><td>RBN (Cooijmans et al. (2016))</td><td>1.36</td><td>1.25</td></tr><tr><td>H-LSTM + LN (Ha et al. (2016))</td><td>=</td><td>1.32</td></tr><tr><td>3-HM-LSTM + LN (Chung et al., 2016)</td><td>1.28</td><td>1.25</td></tr><tr><td>2-H-LSTM + LN (Ha et al. (2016))</td><td>=</td><td>1.24</td></tr><tr><td>Z-Forcing</td><td>1.25</td><td>1.22</td></tr><tr><td></td><td>1.29</td><td>1.26</td></tr><tr><td>Variational Bi-LSTM</td><td>1.26</td><td>1.23</td></tr></table>
142
+
143
+ # 4 ABLATION STUDIES
144
+
145
+ The goal of this section is to study the importance of the various components in our model to avoid any triviality. The experiments are as follows:
146
+
147
+ # 1. Reconstruction loss on $\mathbf { h } _ { t }$ vs activity regularization on $\mathbf { h } _ { t }$
148
+
149
+ ![](images/60a747602b77a4e55002528d70589c5448a28766c9d073b54e5170691b29240f.jpg)
150
+ Figure 3: Evolution of the bits per character on PTB validation with sampling latent variables $\mathbf { z }$ from $\mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ during training or using a fixed vector which we set to be the mean of latent variables. Interestingly, not sampling from prior during inference does not hurt the final performance on PTB.
151
+
152
+ Table 5: Perplexity on IMDB using different coefficient $\gamma$ for activity regularization
153
+
154
+ <table><tr><td>2</td><td>0.001</td><td>1.</td><td>4.</td><td>8.</td><td>16.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Test perplexity</td><td>56.07</td><td>60.74</td><td>69.97</td><td>77.24</td><td>86.72</td></tr></table>
155
+
156
+ The authors of Merity et al. (2017) study the importance of activity regularization (AR) on the hidden states on LSTMs given as,
157
+
158
+ $$
159
+ \mathcal { R } _ { A R } = \gamma \| \mathbf { h } _ { t } \| _ { 2 } ^ { 2 }
160
+ $$
161
+
162
+ However, since our model’s reconstruction term on $\mathbf { h } _ { t }$ can be decomposed as,
163
+
164
+ $$
165
+ \| \mathbf { h } _ { t } - \tilde { \mathbf { h } } _ { t } \| _ { 2 } ^ { 2 } = \| \mathbf { h } _ { t } \| _ { 2 } ^ { 2 } + \| \tilde { \mathbf { h } } _ { t } \| _ { 2 } ^ { 2 } - 2 \mathbf { h } _ { t } ^ { T } \tilde { \mathbf { h } } _ { t }
166
+ $$
167
+
168
+ we perform experiments to confirm that the gains in our approach is not due to the $\ell ^ { 2 }$ regularization alone since our regularization encapsulates an $\ell ^ { 2 }$ term along with the dot product term.
169
+
170
+ We use activity regularization using hyperparameter $\alpha \in \{ 0 . 0 0 1 , 1 , 4 , 8 , 1 6 \}$ in place of reconstruction term in our model and study the test perplexity. The results are shown in table 5. We find that in all the cases performance using activity regularization is worse compared with our best model shown in table 3.
171
+
172
+ Table 6: KL divergence of the Variational Bi-LSTM
173
+
174
+ <table><tr><td>Dataset</td><td>PTB</td><td>Seq-MNIST</td><td>IMDB</td><td>TIMIT</td><td>Blizzard</td></tr><tr><td>KL</td><td>0.001</td><td>0.02</td><td>0.18</td><td>3204.71</td><td>3799.79</td></tr></table>
175
+
176
+ # 2. Use of parametric encoder prior vs. fixed Gaussian prior
177
+
178
+ In our variational Bi-LSTM model, we propose to have the encoder prior over $\mathbf { z } _ { t }$ as a function of the previous forward LSTM hidden state $\mathbf { h } _ { t - 1 }$ . This is done to omit the need of the backward LSTM during inference because it is unavailable in practical scenarios since predictions are made in the forward direction. However, to study whether the model learns to use this encoder or not, we record the KL divergence value of the best validation model for the various datasets. The results are reported in table 6. We can see that the KL divergence values are large in the case of IMDB, TIMIT and Blizzard datasets, but small in the case of Seq-MNIST and PTB. To further explore, we ran experiments on these datasets with fixed standard Gaussian prior like in the case of traditional VAE.
179
+
180
+ Interestingly we found that the model with fixed prior performed similarly in the case of PTB, but hurt performance in the other cases, which can be explained given their large KL divergence values in the original experiments.
181
+
182
+ # 5 RELATED WORK
183
+
184
+ Variational auto-encoders (Kingma & Welling, 2014) can be easily combined with many deep learning models. They have been applied in the feed-forward setting but they have also found usage in RNNs to better capture variation in sequential data (Sordoni et al., 2017; Fraccaro et al., 2016; Chung et al., 2015; Bayer & Osendorfer, 2014). VAEs consists of several muti-layer neural networks as probabilistic encoders and decoders and training is based on the gradient on log-likelihood lower bound (as the likelihood is in general intractable) of the model parameters $\Gamma$ along with a reparametrization trick. The derived variational lower-bound $\mathcal { L } _ { \Gamma }$ for an observed random variable $\mathbf { x }$ is:
185
+
186
+ $$
187
+ \log p ( \mathbf { x } ) \ge \mathcal { L } _ { \Gamma } = \underset { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } { E } \left[ \log \frac { p ( \mathbf { x } , \mathbf { z } ) } { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } \right] = \underset { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } { E } \left[ \ln p _ { \theta } ( \mathbf { x } | \mathbf { z } ) \right] - D _ { K L } ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | | p _ { \theta } ( \mathbf { z } ) ) ,
188
+ $$
189
+
190
+ where $D _ { K L }$ denotes the Kullback-Leibler divergence and $p _ { \theta }$ is the prior over a latent variable $\mathbf { z }$ . The KL divergence tem can be expressed as the difference between the entropy of $q _ { \phi }$ and the prior and fortunately, it can be computed and differentiated without estimation for some distribution families like Gaussians. Although maximizing the log-likelihood corresponds to minimizing the KL divergence, we have to ensure that the resulting $q _ { \phi }$ remains far enough from an undesired equilibrium state where $q _ { \phi }$ is almost everywhere equal to the prior over latent variables. Combining recurrent neural networks with variational auto encoders can lead to powerful generative models that are capable of capturing the variations in data, however, they suffer badly from this optimization issue as discussed by Bowman et al. (2015).
191
+
192
+ Recently, VAEs have also been applied to Bi-LSTMs by Sordoni et al. (2017) through a technique called Z-forcing. It is a powerful generative autoregressive model which is trained using the following variational evidence lower-bound
193
+
194
+ $$
195
+ \mathcal { L } ( \mathbf { x } ; \theta , \phi , \xi ) = \sum _ { \ell } \underset { q _ { \phi } ( \mathbf { z } _ { \ell } | \mathbf { x } ) } { E } \Big [ \log p _ { \theta } ( \mathbf { x } _ { t + 1 } | \mathbf { x } _ { 1 : t } , \mathbf { z } _ { 1 : t } ) \Big ] - D _ { K L } \big ( q _ { \phi } ( \mathbf { z } _ { t } | \mathbf { x } ) \big | \big | ( p _ { \theta } ( \mathbf { z } _ { t } | \mathbf { x } _ { 1 : t - 1 } , \mathbf { z } _ { 1 : t - 1 } ) \big )
196
+ $$
197
+
198
+ plus an auxiliary cost as a regularizer which is defined as $\log p _ { \xi } ( \mathbf { b } _ { t } | \mathbf { z } _ { t } )$ . They show that the auxiliary cost helps in improving the final performance; however during inference the backward reconstructions have not been used in their approach. In our ablation study section below, we show experimentally that this connection is important towards improving the performance of Bi-LSTMs as is the case in our model.
199
+
200
+ # 6 CONCLUSION
201
+
202
+ Variational Bi-LSTMs are powerful autoregressive generative models that are capable of learning better representations by creating a channel to exchange the information of the past and the future. Moreover, the conditional distribution over the backward LSTM variables is learned that can lead to better learning results in practice. Furthermore, Variational Bi-LSTM model acts as a regularizer and makes both networks be informative enough to perform well on different benchmark problems taken from the literature.
203
+
204
+ # ACKNOWLEDGMENTS
205
+
206
+ The authors would like to thank Theano developers (Theano Development Team, 2016) for their great work.
207
+
208
+ # REFERENCES
209
+
210
+ Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Jonathan Raiman, Shubho Sengupta, et al. Deep voice: Real-time neural text-to-speech. arXiv preprint arXiv:1702.07825, 2017.
211
+
212
+ Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014.
213
+
214
+ Jorg Bornschein, Samira Shabanian, Asja Fischer, and Yoshua Bengio. Training opposing directed ¨ models using geometric mean matching. CoRR, abs/1506.03877, 2015. URL http://arxiv. org/abs/1506.03877.
215
+
216
+ Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015.
217
+
218
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
219
+
220
+ Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015.
221
+
222
+ Tim Cooijmans, Nicolas Ballas, Cesar Laurent, and Aaron C. Courville. Recurrent batch normal- ´ ization. CoRR, abs/1603.09025, 2016. URL http://arxiv.org/abs/1603.09025.
223
+
224
+ Qiming Diao, Minghui Qiu, Chao-Yuan Wu, Alexander J Smola, Jing Jiang, and Chong Wang. Jointly modeling aspects, ratings and sentiments for movie recommendation (jmars). In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 193–202, 2014.
225
+
226
+ Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in Neural Information Processing Systems, pp. 2199–2207, 2016.
227
+
228
+ Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Advances in neural information processing systems, pp. 1019–1027, 2016.
229
+
230
+ Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In ICML, pp. 881–889, 2015.
231
+
232
+ Anirudh Goyal, Alex Lamb, Ying Zhang, Saizheng Zhang, Aaron C. Courville, and Yoshua Bengio. Professor forcing: A new algorithm for training recurrent networks. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 4601–4609, 2016. URL http://papers.nips.cc/paper/ 6099-professor-forcing-a-new-algorithm-for-training-recurrent-netw
233
+
234
+ Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015.
235
+
236
+ Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016.
237
+
238
+ David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. CoRR, abs/1609.09106, 2016. URL http://arxiv.org/abs/1609.09106.
239
+
240
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
241
+
242
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
243
+
244
+ Diederik P Kingma and Max Welling. Stochastic Gradient VB and the Variational Auto-Encoder. 2nd International Conference on Learning Representationsm (ICLR), pp. 1–14, 2014. ISSN 0004- 6361. doi: 10.1051/0004-6361/201527329. URL http://arxiv.org/abs/1312.6114.
245
+
246
+ David Krueger, Tegan Maharaj, Janos Kram ´ ar, Mohammad Pezeshki, Nicolas Ballas, Nan Rose- ´ mary Ke, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, Aaron C. Courville, and Chris Pal. Zoneout: Regularizing rnns by randomly preserving hidden activations. CoRR, abs/1606.01305, 2016. URL http://arxiv.org/abs/1606.01305.
247
+
248
+ Hugo Larochelle. Binarized mnist dataset. 2011. URL http://www.cs.toronto.edu/ ˜larocheh/public/datasets/binarized_mnist/binarized_mnist_train. amat.
249
+
250
+ Mitchell P. Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Comput. Linguist., 19(2):313–330, June 1993. ISSN 0891-2017. URL http://dl.acm.org/citation.cfm?id $=$ 972470.972475.
251
+
252
+ Soroush Mehri, Kundan Kumar, Ishaan Gulrajani, Rithesh Kumar, Shubham Jain, Jose Sotelo, Aaron Courville, and Yoshua Bengio. Samplernn: An unconditional end-to-end neural audio generation model. arXiv preprint arXiv:1612.07837, 2016.
253
+
254
+ Stephen Merity, Bryan McCann, and Richard Socher. Revisiting activation regularization for language rnns. arXiv preprint arXiv:1708.01009, 2017.
255
+
256
+ Iain Murray and Ruslan R Salakhutdinov. Evaluating probabilities under highdimensional latent variable models. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 1137– 1144. Curran Associates, Inc., 2009. URL http://papers.nips.cc/paper/ 3584-evaluating-probabilities-under-high-dimensional-latent-variable-model pdf.
257
+
258
+ Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016.
259
+
260
+ Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. Understanding the exploding gradient problem. CoRR, abs/1211.5063, 2012. URL http://arxiv.org/abs/1211.5063.
261
+
262
+ Tapani Raiko, Yao Li, Kyunghyun Cho, and Yoshua Bengio. Iterative neural autoregressive distribution estimator nade-k. In Advances in neural information processing systems, pp. 325–333, 2014.
263
+
264
+ David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Cognitive modeling, 5(3):1, 1988.
265
+
266
+ Tim Salimans, Diederik P Kingma, and Max Welling. Markov chain monte carlo and variational inference: Bridging the gap. arXiv preprint arXiv:1410.6460, 2014.
267
+
268
+ Dmitriy Serdyuk, Rosemary Nan Ke, Alessandro Sordoni, Chris Pal, and Yoshua Bengio. Twin networks: Using the future as a regularizer. arXiv preprint arXiv:1708.06742, 2017.
269
+
270
+ Alessandro Sordoni, Anirudh Goyal ALIAS PARTH GOYAL, Marc-Alexandre Cote, Nan Ke, and Yoshua Bengio. Z-forcing: Training stochastic recurrent networks. In Advances in Neural Information Processing Systems. 2017. URL https://nips.cc/Conferences/2017/ Schedule?showEvent $= 9 4 3 9$ .
271
+
272
+ Jose Sotelo, Soroush Mehri, Kundan Kumar, Joao Felipe Santos, Kyle Kastner, Aaron Courville, and Yoshua Bengio. Char2wav: End-to-end speech synthesis. 2017.
273
+
274
+ Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of machine learning research, 15(1):1929–1958, 2014.
275
+
276
+ Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688.
277
+
278
+ Benigno Uria, Marc-Alexandre Cotˆ e, Karol Gregor, Iain Murray, and Hugo Larochelle. Neural ´ autoregressive distribution estimation. Journal of Machine Learning Research, 17(205):1–37, 2016.
279
+
280
+ Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: Towards end-to-end speech syn. arXiv preprint arXiv:1703.10135, 2017.
281
+
282
+ Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
283
+
284
+ # APPENDIX
285
+
286
+ A: Derivation of variation lower bound ${ \mathcal { L } } _ { \mathbf { T } }$ in equation (2) in more details:
287
+
288
+ $$
289
+ \begin{array} { r l } & { \quad - \frac { \sqrt { 3 } } { 2 } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin \alpha \sin \beta \right] \left( \frac { \sqrt { 3 } } { 2 } \right) \sin \alpha \sin \beta \sin \left( \beta \right) \sin \left( \frac { \sqrt { 3 } } { 2 } \right) \dot { \alpha } \sin \alpha \sin \beta \sin \left( \frac { \sqrt { 3 } } { 2 } \right) \dot { \alpha } \sin \alpha \sin \beta \sin \left( \frac { \sqrt { 3 } } { 2 } \right) } \\ & { \quad - \frac { \sqrt { 3 } } { 2 } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin \alpha \sin \beta \right] \sin \alpha \sin \beta \sin \left( \frac { \sqrt { 3 } } { 2 } \right) \dot { \alpha } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin \alpha \sin \beta \sin \left( \frac { \sqrt { 3 } } { 2 } \right) \dot { \alpha } \sin \alpha \right] \sin \beta \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \beta \sin \alpha \sin \beta } \\ & { \quad + \frac { \sqrt { 3 } } { 2 } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin \alpha \left( \frac { \sqrt { 3 } } { 2 } \cos \alpha \cos \beta \right) \right] \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \beta \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \beta \sin \alpha \sin \beta } \\ & { \quad - \frac { \sqrt { 3 } } { 2 } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin ^ { 2 } \alpha \left( \frac { \sqrt { 3 } } { 2 } \cos \alpha \sin \beta \cos \frac { \sqrt { 3 } } { 2 } \right) \right] \cos \alpha \sin \beta \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \beta \sin \alpha \sin \beta \sin \beta \sin \alpha \beta } \\ & { \quad + \frac { \sqrt { 3 } } { 2 } \left[ \int _ { 0 } ^ { 1 } \sqrt { \alpha } \left( \beta \right) \sin ^ { 2 } \alpha \left( \frac { \sqrt { 3 } } { 2 } \cos \alpha \sin \beta \cos \frac { \sqrt { 3 } } { 2 } \right) \right] \sin \alpha \sin \beta \sin \alpha \sin \beta \sin \alpha \beta \sin \alpha \sin \beta \sin \alpha \gamma \sin \beta \sin \alpha \beta \sin \beta \sin \alpha \gamma } \\ & \quad - \frac { 3 } 2 \end{array}
290
+ $$
parse/train/SkqV-XZRZ/SkqV-XZRZ_content_list.json ADDED
@@ -0,0 +1,1477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VARIATIONAL BI-LSTMS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 485,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 398,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 224
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Recurrent neural networks like long short-term memory (LSTM) are important architectures for sequential prediction tasks. LSTMs (and RNNs in general) model sequences along the forward time direction. Bidirectional LSTMs (Bi-LSTMs), which model sequences along both forward and backward directions, generally perform better at such tasks because they capture a richer representation of the data. In the training of Bi-LSTMs, the forward and backward paths are learned independently. We propose a variant of the Bi-LSTM architecture, which we call Variational Bi-LSTM, that creates a dependence between the two paths (during training, but which may be omitted during inference). Our model acts as a regularizer and encourages the two networks to inform each other in making their respective predictions using distinct information. We perform ablation studies to better understand the different components of our model and evaluate the method on various benchmarks, showing state-of-the-art performance. ",
40
+ "bbox": [
41
+ 233,
42
+ 242,
43
+ 764,
44
+ 422
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 453,
55
+ 336,
56
+ 468
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Recurrent neural networks (RNNs) have become the standard models for sequential prediction tasks, having achieved state of the art performance in a number of applications that includes sequence prediction, language translation, machine comprehension, and speech synthesis (Arik et al., 2017; Wang et al., 2017; Mehri et al., 2016; Sotelo et al., 2017). RNNs model temporal data by encoding a given arbitrary-length input sequentially, at each time step combining some transformation of the current input with the encoding from the previous time step. This encoding, referred to as the RNN hidden state, summarizes all previous input tokens. ",
63
+ "bbox": [
64
+ 174,
65
+ 486,
66
+ 825,
67
+ 582
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Viewed as “unrolled” feedforward networks, RNNs can become arbitrarily deep depending on the input sequence length, and use a repeating module to combine the input with the previous state at each time step. Consequently, they suffer from the vanishing/exploding gradient problem (Pascanu et al., 2012). This problem has been addressed through architectural variants like the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997) and the gated recurrent unit (GRU) (Chung et al., 2014). These architectures add a linear path along the temporal sequence which allows gradients to flow more smoothly back through time. ",
74
+ "bbox": [
75
+ 174,
76
+ 589,
77
+ 823,
78
+ 686
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Various regularization techniques have also been explored to improve RNN performance and generalization. Dropout (Srivastava et al., 2014) regularizes a network by randomly dropping hidden units during training. However, it has been observed that using dropout directly on RNNs is not as effective as in the case of feed-forward networks. To combat this, Zaremba et al. (2014) propose to instead apply dropout on the activations that are not involved in the recurrent connections (Eg. in a multi-layer RNN); Gal & Ghahramani (2016) propose to apply the same dropout mask through an input sequence during training. In a similar spirit to dropout, Zoneout (Krueger et al., 2016) proposes to choose randomly whether to use the previous RNN hidden state. ",
85
+ "bbox": [
86
+ 174,
87
+ 694,
88
+ 825,
89
+ 805
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The aforementioned architectures model sequences along the forward direction of the input sequence. Bidirectional-LSTM, on the other hand, is a variant of LSTM that simultaneously models each sequence in both the forward and backward directions. This enables a richer representation of data, since each token’s encoding contains context information from the past and the future. It has been shown empirically that bidirectional architectures generally outperform unidirectional ones on many sequence-prediction tasks. However, the forward and backward paths in Bi-LSTMs are trained separately and the benefit usually comes from the combined hidden representation from both paths. In this paper, our main idea is to create a dependence between the two paths that acts as a regularization during training, but doesn’t hinder inference even in the absence of the other path (the backward path in practical scenarios). We note that recently proposed methods like TwinNet Serdyuk et al. (2017) and Z-forcing Sordoni et al. (2017) are similar in spirit to this idea. In our approach, we use a variational auto-encoder (VAE; Kingma & Welling (2014)) that takes as input the hidden states from the two paths of the Bi-LSTM and maps them to a shared hidden representation of the VAE at each time step. The samples from the VAE hidden state are then used both for reconstructing the LSTM hidden states and feeding forward to the next hidden state. In this way, we create a channel between the two paths that acts as a regularization for learning better representations. We refer to the resulting model as a Variational Bi-LSTM. ",
96
+ "bbox": [
97
+ 174,
98
+ 813,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 173,
109
+ 103,
110
+ 825,
111
+ 229
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Below, we describe Variational Bi-LSTMs in detail and then demonstrate empirically their ability to model complex sequential distributions. In experiments, we obtain state-of-the-art or competitive performance on the tasks of Penn Treebank, IMDB, TIMIT, Blizzard, and Sequential MNIST. ",
118
+ "bbox": [
119
+ 174,
120
+ 236,
121
+ 825,
122
+ 279
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 VARIATIONAL BI-LSTM ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 311,
133
+ 411,
134
+ 329
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Bi-LSTM is a powerful architecture for sequential tasks because it models temporal data both in the forward and backward directions. For this it uses two LSTMs that are generally learned independently of each other; the richer representation results from combining the hidden states of these LSTMs, where combination is often by concatenation. The idea behind variational Bi-LSTMs is to create a channel of information exchange between the two LSTMs that helps the model to learn better representations. We create this dependence using a variational auto-encoder (VAE). This enables us to take advantage of the fact that VAE allows for sampling from a prior during inference. For sequence prediction tasks like language generation, while one can use Bi-LSTMs during training, there is no straightforward way to employ the full bidirectional model during inference – this would involve, eg, generating a sentence starting at both its beginning and end. In such cases, the VAE allows us to sample from the prior at inference time to make up for the absence of the backward LSTM. ",
141
+ "bbox": [
142
+ 173,
143
+ 352,
144
+ 825,
145
+ 518
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Now we describe our variational Bi-LSTM model formally. Let $\\mathbf { X } = \\{ \\mathbf { x } ^ { ( i ) } \\} _ { i = 1 } ^ { N }$ be a dataset consisting of $N$ i.i.d. sequential data samples of continuous or discrete variables. For notational convenience, we will henceforth drop the superscript $i$ indexing samples. For each sample sequence $\\mathbf { x } = ( \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { T } )$ , the hidden state of the forward LSTM is given by: ",
152
+ "bbox": [
153
+ 173,
154
+ 525,
155
+ 825,
156
+ 582
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "equation",
162
+ "img_path": "images/82bf59207de400efbca8528dd3ba1f877af08464996bd529287ee41fa19888f3.jpg",
163
+ "text": "$$\n\\mathbf { h } _ { t } = \\vec { f } ( \\mathbf { x } _ { t } , \\mathbf { h } _ { t - 1 } , \\mathbf { z } _ { t } , \\tilde { \\mathbf { b } } _ { t } ) .\n$$",
164
+ "text_format": "latex",
165
+ "bbox": [
166
+ 410,
167
+ 599,
168
+ 586,
169
+ 622
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "The hidden state of the backward LSTM is given by, ",
176
+ "bbox": [
177
+ 176,
178
+ 641,
179
+ 516,
180
+ 656
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "equation",
186
+ "img_path": "images/420571445471dc8fc9f2ca96dfcd8396953e7b2d15a3f26efeb83953c76e7ff0.jpg",
187
+ "text": "$$\n\\mathbf { b } _ { t } = \\overleftarrow { f } ( \\mathbf { x } _ { t } , \\mathbf { b } _ { t + 1 } ) .\n$$",
188
+ "text_format": "latex",
189
+ "bbox": [
190
+ 433,
191
+ 674,
192
+ 563,
193
+ 696
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "In both cases, the function $f$ represents the standard LSTM updates, modified to account for the additional arguments. ",
200
+ "bbox": [
201
+ 173,
202
+ 714,
203
+ 823,
204
+ 744
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "In the forward LSTM model, we introduce three latent random variables, $\\mathbf { z } _ { t } , \\tilde { \\mathbf { b } } _ { t }$ , and $\\tilde { \\mathbf { h } } _ { t - 1 }$ , where $\\mathbf { z } _ { t }$ depends on $\\mathbf { h } _ { t - 1 }$ and $\\mathbf { b } _ { t }$ during training, and $\\tilde { \\mathbf { b } } _ { t }$ and $\\tilde { \\mathbf { h } } _ { t - 1 }$ depend only on $\\mathbf { z } _ { t }$ (see figure 1-left, for a graphical representation). Note that so far, $\\tilde { \\mathbf { b } } _ { t }$ and $\\tilde { \\mathbf { h } } _ { t - 1 }$ are simply latent vectors drawn from conditional distributions $p _ { \\psi }$ and $p _ { \\xi }$ , respectively, to be defined below. However, as explained in Section 2.1 (see also dashed lines in figure 1-left), we will encourage these to lie near the manifolds of backward and forward LSTM states, respectively. ",
211
+ "bbox": [
212
+ 173,
213
+ 751,
214
+ 825,
215
+ 840
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "By design, the joint conditional distribution over latent variables $\\mathbf { z } _ { t }$ and $\\tilde { \\mathbf { b } } _ { t }$ with parameters $\\theta$ and $\\psi$ factorizes as $p _ { \\theta } ( \\mathbf { z } _ { t } | \\mathbf { x } _ { 1 : t - 1 } , \\mathbf { z } _ { 1 : t - 1 } ) p _ { \\psi } ( \\tilde { \\mathbf { b } } _ { t } | \\mathbf { z } _ { t } )$ . This factorization enables us to formulate several helpful auxiliary cots, as defined in the next subsection. Further, $p _ { \\eta } ( \\mathbf { x } _ { t + 1 } | \\mathbf { x } _ { 1 : t } , \\mathbf { z } _ { 1 : t } , \\tilde { \\mathbf { b } } _ { t } )$ defines the generating model, which induces the distribution over the next observation given the previous states and the current input. ",
222
+ "bbox": [
223
+ 174,
224
+ 848,
225
+ 825,
226
+ 924
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "image",
232
+ "img_path": "images/161f5732f91f90cba658cac7b9f25b2c774e2166fc933313bfe7d4393dcf6a8f.jpg",
233
+ "image_caption": [
234
+ "(a) Training phase of variational Bi-LSTM "
235
+ ],
236
+ "image_footnote": [],
237
+ "bbox": [
238
+ 230,
239
+ 112,
240
+ 473,
241
+ 243
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "image",
247
+ "img_path": "images/99ebd8d75a0549959f48953dcef7cd6d9042f86704b858b60aa20dee95753e8b.jpg",
248
+ "image_caption": [
249
+ "(b) Inference phase of variational Bi-LSTM ",
250
+ "Figure 1: Graphical description of our proposed variational Bi-LSTM model during train phase (left) and inference phase (right). During training, each step $t$ is composed of an encoder which receives both the past and future summary via $\\mathbf { h } _ { t - 1 }$ and $\\mathbf { b } _ { t }$ respectively, and a decoder that generates $\\tilde { \\mathbf { h } } _ { t - 1 }$ and $\\tilde { \\mathbf { b } } _ { t }$ which are forced to be close enough to $\\mathbf { h } _ { t - 1 }$ and $\\mathbf { b } _ { t }$ using two auxiliary reconstruction costs (dashed lines). This dependence between backward and forward LSTM through the latent random variable encourages the forward LSTM to learn a richer representation. During inference, the backward LSTM is removed. In this case, $\\mathbf { z } _ { t }$ is sampled from the prior as in a typical VAE, which in our case, is defined as a function of $\\mathbf { h } _ { t - 1 }$ . "
251
+ ],
252
+ "image_footnote": [],
253
+ "bbox": [
254
+ 529,
255
+ 122,
256
+ 772,
257
+ 219
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "Then the marginal likelihood of each individual sequential data sample $\\mathbf { x }$ can be written as ",
264
+ "bbox": [
265
+ 171,
266
+ 433,
267
+ 766,
268
+ 449
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "equation",
274
+ "img_path": "images/8328b130f5449326914270d9b91006f783646c860180fd7c58f55706b4211d8f.jpg",
275
+ "text": "$$\n\\begin{array} { l } { \\displaystyle p ( { \\bf x } ; { \\bf Y } ) = \\prod _ { t = 0 } ^ { T } p ( { \\bf x } _ { t + 1 } \\vert { \\bf x } _ { 1 : t } ) = \\prod _ { t = 0 } ^ { T } \\int _ { { \\bf z } _ { 1 : T } } p ( { \\bf x } _ { t + 1 } \\vert { \\bf x } _ { 1 : t } , { \\bf z } _ { 1 : t } ) p _ { \\theta } ( { \\bf z } _ { t } \\vert { \\bf x } _ { 1 : t - 1 } , { \\bf z } _ { 1 : t - 1 } ) d { \\bf z } _ { 1 : T } } \\\\ { \\displaystyle \\quad \\quad = \\prod _ { t = 0 } ^ { T } \\int _ { { \\bf z } _ { 1 : T } } \\int _ { { \\bar { \\bf b } } _ { t } } \\Big [ p _ { \\eta } ( { \\bf x } _ { t + 1 } \\vert { \\bf x } _ { 1 : t } , { \\bf z } _ { 1 : t } , { \\bf \\tilde { b } } _ { t } ) p _ { \\psi } ( \\tilde { { \\bf b } } _ { t } \\vert { \\bf z } _ { 1 : t } ) p _ { \\theta } ( { \\bf z } _ { t } \\vert { \\bf x } _ { 1 : t - 1 } , { \\bf z } _ { 1 : t - 1 } ) \\Big ] d { \\tilde { \\bf b } } _ { t } d { \\bf z } _ { 1 : T } , } \\end{array}\n$$",
276
+ "text_format": "latex",
277
+ "bbox": [
278
+ 186,
279
+ 454,
280
+ 790,
281
+ 544
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "where $q _ { \\phi } ( \\mathbf { z } _ { t } | \\mathbf { x } )$ is the conditional inference model and $\\Gamma = \\{ \\phi , \\theta , \\psi , \\eta \\}$ is the set of all parameters of the model. Here, we assume that all conditional distributions belong to parametrized families of distributions which can be evaluated and sampled from efficiently. ",
288
+ "bbox": [
289
+ 174,
290
+ 547,
291
+ 825,
292
+ 592
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "Note that the joint distribution in equation (1) is intractable. Kingma & Welling (2014) demonstrated how to maximize a variational lower bound, ${ \\mathcal { L } } _ { \\Gamma }$ , of the data log likelihood instead, which is given by ",
299
+ "bbox": [
300
+ 174,
301
+ 597,
302
+ 825,
303
+ 640
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "equation",
309
+ "img_path": "images/266f6c288971c0ab50c83b7813ee474415611a85dd61c336a3b5fb69973bb81a.jpg",
310
+ "text": "$$\n\\log p ( \\mathbf { x } ; \\mathbf { r } ) \\ge \\mathcal { L } _ { \\mathbf { T } } = \\sum _ { t = 0 } ^ { T } \\underbrace { E } _ { \\substack { \\mathbf { z } _ { 1 : T } \\sim q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) \\tilde { \\mathbf { b } } _ { t } \\sim p _ { \\psi } ( \\tilde { \\mathbf { b } } _ { t } | \\mathbf { z } _ { t } ) } } \\Big [ \\log p _ { \\eta } ( \\mathbf { x } _ { t + 1 } | \\mathbf { x } _ { 1 : t } , \\mathbf { z } _ { 1 : t } , \\tilde { \\mathbf { b } } _ { t } ) \\Big ]\n$$",
311
+ "text_format": "latex",
312
+ "bbox": [
313
+ 230,
314
+ 646,
315
+ 764,
316
+ 710
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "where $D _ { K L }$ is the Kullback-Leibler (KL) divergence between the approximate posterior and the conditional prior (see the appendix). This is the approach we take. ",
323
+ "bbox": [
324
+ 171,
325
+ 715,
326
+ 825,
327
+ 744
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "2.1 TRAINING AND INFERENCE ",
334
+ "text_level": 1,
335
+ "bbox": [
336
+ 176,
337
+ 761,
338
+ 405,
339
+ 775
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "In the proposed variational Bi-LSTM, the latent variable $\\mathbf { z } _ { t }$ is inferred as ",
346
+ "bbox": [
347
+ 176,
348
+ 786,
349
+ 651,
350
+ 801
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "equation",
356
+ "img_path": "images/20bab4376fd4c920f1a0a23b13e1b5fbedb21a0221b0814fe4da6a5111504843.jpg",
357
+ "text": "$$\n\\mathbf { z } _ { t } \\sim q _ { \\phi } ( \\mathbf { z } _ { t } | ( \\mathbf { h } _ { t - 1 } , \\mathbf { b } _ { t } ) ) = \\mathcal { N } ( \\pmb { \\mu } _ { q , t } , \\mathrm { d i a g } ( \\pmb { \\sigma } _ { q , t } ^ { 2 } ) ) ,\n$$",
358
+ "text_format": "latex",
359
+ "bbox": [
360
+ 341,
361
+ 808,
362
+ 655,
363
+ 827
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "in which $[ { \\pmb \\mu } _ { q , t } , { \\pmb \\sigma } _ { q , t } ^ { 2 } ] = f _ { \\phi } ( { \\bf h } _ { t - 1 } , { \\bf b } _ { t } )$ where $f _ { \\phi }$ is a multi-layered feed-forward network with Gaussian outputs. We assume that the prior over $\\mathbf { z } _ { t }$ is a diagonal multivariate Gaussian distribution given by ",
370
+ "bbox": [
371
+ 173,
372
+ 833,
373
+ 825,
374
+ 876
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "equation",
380
+ "img_path": "images/d40bd57997ef84128f5ad135f93a99bae3915cadaf53a5d3f3fdf473afb0f1df.jpg",
381
+ "text": "$$\np _ { \\theta } ( \\mathbf { z } _ { t } | \\mathbf { x } _ { 1 : t - 1 } , \\mathbf { z } _ { 1 : t - 1 } ) = \\mathcal { N } ( \\mu _ { p , t } , \\mathrm { d i a g } ( \\sigma _ { p , t } ^ { 2 } ) ) , \\quad \\mathrm { w h e r e } \\quad [ \\mu _ { p , t } , \\sigma _ { p , t } ^ { 2 } ] = f _ { \\theta } ( \\mathbf { h } _ { t - 1 } ) ,\n$$",
382
+ "text_format": "latex",
383
+ "bbox": [
384
+ 232,
385
+ 873,
386
+ 764,
387
+ 893
388
+ ],
389
+ "page_idx": 2
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "for a fully connected network $f _ { \\theta }$ . This is important because, during generation (see Figure 1-right, for a graphical representation), we will not have access to the backward LSTM. In this case, as in a ",
394
+ "bbox": [
395
+ 171,
396
+ 895,
397
+ 830,
398
+ 924
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "VAE, we will sample from the prior for $\\mathbf { z } _ { t }$ . Since we define the prior to be a function of $\\mathbf { h } _ { t - 1 }$ , the forward LSTM is encouraged during training to learn the dependency due to the backward hidden state $\\mathbf { b } _ { t }$ . ",
405
+ "bbox": [
406
+ 176,
407
+ 103,
408
+ 823,
409
+ 147
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "The latent variable $\\tilde { \\mathbf { b } } _ { t }$ is meant to model information coming from the future of the sequence. Its conditional distribution is given by ",
416
+ "bbox": [
417
+ 173,
418
+ 151,
419
+ 825,
420
+ 181
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "equation",
426
+ "img_path": "images/ed96c186dbbe0737995cd87a5debbfd83a57c2ba833b50dd99715eb369e5332c.jpg",
427
+ "text": "$$\np _ { \\psi } ( \\tilde { \\mathbf { b } } _ { t } | \\mathbf { z } _ { t } ) = \\mathcal { N } ( \\mu _ { \\tilde { \\mathbf { b } } , t } , \\mathrm { d i a g } ( \\pmb { \\sigma } _ { \\tilde { b } , t } ^ { 2 } ) ) ,\n$$",
428
+ "text_format": "latex",
429
+ "bbox": [
430
+ 383,
431
+ 185,
432
+ 612,
433
+ 209
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "where $[ { \\pmb { \\mu } } _ { { \\tilde { \\bf b } } , t } , { \\pmb { \\sigma } } _ { { \\tilde { \\bf b } } , t } ^ { 2 } ] = f _ { \\psi } ( \\mathbf { z } _ { t } )$ for a fully connected neural network $f _ { \\psi }$ (See Figure 1(a)). To encourage the encoding of future information in $\\tilde { \\mathbf { b } } _ { t }$ , we maximize the probability of the true backward hidden state, $\\mathbf { b } _ { t }$ , under the distribution $p _ { \\psi }$ , as an auxiliary cost during training. In this way we treat $\\tilde { \\mathbf { b } } _ { t }$ as a predictor of $\\mathbf { b } _ { t }$ , similarly to what was done by Sordoni et al. (2017). ",
440
+ "bbox": [
441
+ 174,
442
+ 214,
443
+ 825,
444
+ 281
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "To capture information from the past in the latents, we similarly use $\\tilde { \\mathbf { h } } _ { t - 1 }$ as a predictor of $\\mathbf { h } _ { t - 1 }$ . This is accomplished by maximizing the probability of the latter under the conditional distribution of the former, $\\log p _ { \\xi } ( \\tilde { \\mathbf { h } } _ { t - 1 } | \\mathbf { z } _ { t } )$ , as another auxiliary cost, where ",
451
+ "bbox": [
452
+ 174,
453
+ 289,
454
+ 825,
455
+ 334
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "equation",
461
+ "img_path": "images/c842c96c40bc84b1db5e146fb3c33371c64b28e01f50f4fa17a03e6478d01824.jpg",
462
+ "text": "$$\np _ { \\xi } ( \\tilde { \\mathbf { h } } _ { t - 1 } | \\mathbf { z } _ { t } ) = \\mathcal { N } ( \\mu _ { \\tilde { \\mathbf { h } } , t } , \\mathrm { d i a g } ( \\pmb { \\sigma } _ { \\tilde { \\mathbf { h } } , t } ^ { 2 } ) ) .\n$$",
463
+ "text_format": "latex",
464
+ "bbox": [
465
+ 375,
466
+ 339,
467
+ 622,
468
+ 363
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Here, $[ \\mu _ { \\tilde { \\mathbf { h } } , t } , \\sigma _ { \\tilde { \\mathbf { h } } , t } ^ { 2 } ]$ is the output of a fully-connected neural network $f _ { \\xi }$ taking $\\mathbf { z } _ { t }$ as input. The auxiliary costs arising from distributions $p _ { \\xi }$ and $p _ { \\psi }$ teach the variational Bi-LSTM to encode past and future information into the latent space of $\\mathbf { z }$ . ",
475
+ "bbox": [
476
+ 174,
477
+ 368,
478
+ 825,
479
+ 415
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "We assume that parameters of the generating distribution $p _ { \\eta } ( \\mathbf { x } _ { t + 1 } | \\mathbf { x } _ { 1 : t } , \\mathbf { z } _ { 1 : t } , \\tilde { \\mathbf { b } } _ { t } )$ are computed via MLP, taking the form of either a Gaussian distribution output in the continuous case or categorical proportions output in the discrete (ie, one-hot) prediction case (See Figure 1(b)). ",
486
+ "bbox": [
487
+ 174,
488
+ 422,
489
+ 825,
490
+ 465
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "All the parameters in $\\mathbf { \\delta T }$ and $\\boldsymbol { \\xi }$ are updated based on backpropagation through time (Rumelhart et al., 1988) using the reparameterization trick (Kingma & Welling, 2014), where the gradients are computed by differentiating of the following function: ",
497
+ "bbox": [
498
+ 176,
499
+ 472,
500
+ 823,
501
+ 515
502
+ ],
503
+ "page_idx": 3
504
+ },
505
+ {
506
+ "type": "equation",
507
+ "img_path": "images/69bbd54ac916deadcdfef4f7b8a7c05e3d9af3bcf4c8c0e59acb0e5b735c6075.jpg",
508
+ "text": "$$\n\\begin{array} { r } { \\mathcal { L } ( { \\bf x } ; { \\bf Y } , \\pmb { \\xi } ) = \\displaystyle \\sum _ { t = 0 } ^ { T } \\sum _ { z _ { 1 } : \\tau \\sim q _ { \\phi } ( { \\bf z } | { \\bf x } ) } \\Big [ \\underset { { \\tilde { \\bf b } } _ { t } \\sim p _ { \\psi } ( b | { \\bf z } _ { 1 } : t ) } { \\cal E } \\Big [ \\log p ( { \\bf x } _ { t + 1 } | { \\bf x } _ { 1 : t } , { \\bf z } _ { 1 : t } , { \\tilde { \\bf b } } _ { t } ) + } \\\\ { \\alpha \\log p _ { \\psi } ( { \\bf b } _ { t } | { \\bf z } _ { t } ) + \\beta \\log p _ { \\xi } ( { \\bf h } _ { t - 1 } | { \\bf z } _ { t } ) \\Big ] \\Big ] - } \\\\ { D _ { K L } \\big ( q _ { \\phi } ( { \\bf z } _ { t } | { \\bf x } ) \\big ) \\big | p _ { \\theta } \\big ( { \\bf z } _ { t } | { \\bf x } _ { 1 : t - 1 } , { \\bf z } _ { 1 : t - 1 } \\big ) \\big ) . } \\end{array}\n$$",
509
+ "text_format": "latex",
510
+ "bbox": [
511
+ 261,
512
+ 518,
513
+ 736,
514
+ 611
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Here, $\\alpha$ and $\\beta$ are non-negative real numbers. We improve training convergence with a trick for the variational Bi-LSTM, which we refer to as skip gradient, meant to ease learning of the latent variables. It is well known that autoregressive decoder models tend to ignore their stochastic variables (Bowman et al., 2015). Skip gradient is a technique to encourage that relevant summaries of the past and the future are encoded in the latent space. The idea is to skip the gradient of the stochastic operations with respect to the recurrent units through time. To achieve this, at each time step, a mask drawn from a Bernoulli distribution governs whether to skip the gradient or to backpropagate it for a given data point. ",
521
+ "bbox": [
522
+ 173,
523
+ 613,
524
+ 825,
525
+ 727
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "3 EXPERIMENTAL RESULTS ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 176,
535
+ 746,
536
+ 416,
537
+ 762
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "In this section demonstrate the effectiveness of our proposed model on several tasks. We present experimental results obtained when training the Variational Bi-LSTM on various sequential datasets: Penn Treebank (PTB), IMDB, TIMIT, Blizzard, and Sequential MNIST. Our main goal is to ensure that the model proposed in Section 2 can benefit from a generated relevant summary of the future that yields competitive results. In all experiments, we train all the models using ADAM optimizer (Kingma & Ba, 2014) and we set all MLPs in Section 2 to have one hidden layer with leaky-ReLU hidden activation. All the models are implemented using Theano (Theano Development Team, 2016) and the code is available at https://anonymous.url. ",
544
+ "bbox": [
545
+ 173,
546
+ 776,
547
+ 825,
548
+ 888
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Blizzard: Blizzard is a speech model dataset with 300 hours of English, spoken by a single female speaker. We report the average log-likelihood for half-second sequences (Fraccaro et al., 2016). In our experimental setting, we use 1024 hidden units for MLPs, 1024 LSTM units and 512 latents. Our model is trained using learning rate of 0.001 and minibatches of size 32 and we set $\\alpha = \\beta = 1$ . A fully factorized multivariate Gaussian distribution is used as the output distribution. The final lower bound estimation on TIMIT can be found in Table 1. ",
555
+ "bbox": [
556
+ 171,
557
+ 895,
558
+ 823,
559
+ 924
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "",
566
+ "bbox": [
567
+ 174,
568
+ 103,
569
+ 825,
570
+ 159
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "table",
576
+ "img_path": "images/0d648bdb9d88334583123a7d153647a8b2359a06886f51179259d98c198b9f29.jpg",
577
+ "table_caption": [
578
+ "Table 1: The average of log-likelihood per sequence on Blizzard and TIMIT testset "
579
+ ],
580
+ "table_footnote": [],
581
+ "table_body": "<table><tr><td>Model</td><td>Blizzard</td><td>TIMIT</td></tr><tr><td></td><td></td><td></td></tr><tr><td>RNN-Gauss</td><td>3539</td><td>-1900</td></tr><tr><td>RNN-GMM</td><td>7413</td><td>26643</td></tr><tr><td>VRNN-I-Gauss</td><td></td><td>28340</td></tr><tr><td>VRNN-Gauss</td><td>9223</td><td>28805</td></tr><tr><td>VRNN-GMM</td><td>9392</td><td>AIAIAI AIAI 28982</td></tr><tr><td>SRNN (smooth+resq)</td><td>11991</td><td>60550</td></tr><tr><td>Z-Forcing (Sordoni et al., 2017)</td><td>&gt;I&gt;I 14315</td><td>68852</td></tr><tr><td>VariationalBi-LSTM</td><td>≥ 17319</td><td>73315</td></tr></table>",
582
+ "bbox": [
583
+ 310,
584
+ 202,
585
+ 687,
586
+ 345
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "TIMIT: Another speech modeling dataset is TIMIT with 6300 English sentences read by 630 speakers. Like the work done in (Fraccaro et al., 2016), our model is trained on raw sequences of 200 dimensional frames. In our experiments, we use 1024 hidden units, 2048 LSTM units and 128 latent variables, and batch size of 128. We train the model using learning rate of 0.0001, $\\alpha = 1$ and $\\beta = 0$ . The average log-likelihood for the sequences on test can be found in Table 1. ",
593
+ "bbox": [
594
+ 173,
595
+ 377,
596
+ 825,
597
+ 448
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Sequential MNIST: We use the MNIST dataset which is binarized according to (Murray & Salakhutdinov, 2009) and we downloaded in binrized from (Larochelle, 2011). Our best model consists of 1024 hidden units, 1024 LSTM units and 256 latent variables. We train the model using a learning rate of 0.0001 and a batch size of 32. To reach the negative log-likelihood reported in Table 2, we set $\\alpha = 0 . 0 0 1$ and $\\beta = 0$ . ",
604
+ "bbox": [
605
+ 174,
606
+ 454,
607
+ 825,
608
+ 525
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "table",
614
+ "img_path": "images/19e5538ba00df72808960543ee01718aa68421e53a4c523e49013e115c6701bf.jpg",
615
+ "table_caption": [
616
+ "Table 2: The average of negative log-likelihood on sequential MNIST "
617
+ ],
618
+ "table_footnote": [],
619
+ "table_body": "<table><tr><td>Models</td><td>Seq-MNIST</td></tr><tr><td>DBN 2hl (Germain et al., 2015) NADE (Uria et al., 2016) EoNADE-5 2hl (Raiko et al., 2014)</td><td>~ 84.55</td></tr><tr><td>DLGM 8 (Salimans et al., 2014)</td><td>88.33 84.68</td></tr><tr><td></td><td>≈ 85.51</td></tr><tr><td>DARN 1hl (Gregor et al.,2015) BiHM (Bornschein et al., 2015)</td><td>≈84.13</td></tr><tr><td></td><td>≈84.23</td></tr><tr><td>DRAW (Gregor et al., 2015)</td><td>≤ 80.97</td></tr><tr><td>PixelVAE (Gulrajani et al., 2016)</td><td>~ 79.02</td></tr><tr><td>Prof. Forcing (Goyal et al., 2016)</td><td></td></tr><tr><td>PixelRNN(1-layer) (Oord et al., 2016)</td><td>79.58</td></tr><tr><td></td><td>80.75</td></tr><tr><td>PixelRNN(7-layer) (Oord et al., 2016)</td><td></td></tr><tr><td>Z-Forcing (Sordoni et al.,2017)</td><td>79.20</td></tr><tr><td>VariationalBi-LSTM</td><td>≤ 80.09 ≤79.78</td></tr></table>",
620
+ "bbox": [
621
+ 325,
622
+ 570,
623
+ 673,
624
+ 781
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "IMDB: It is a dataset consists of 350000 movie reviews (Diao et al., 2014) in which each sentence has less than 16 words and the vocabulary size is fixed to 16000 words. In this experiment, we use 500 hidden units, 500 LSTM units and latent variables of size 64. The model is trained with a batch size of 32 and a learning rate of 0.001 and we set $\\alpha = \\beta = 1$ . The word perplexity on valid and test dataset is shown in Table 3. ",
631
+ "bbox": [
632
+ 173,
633
+ 804,
634
+ 825,
635
+ 875
636
+ ],
637
+ "page_idx": 4
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "PTB: Penn Treebank (Marcus et al. (1993)) is a language model dataset consists of 1 million words. We train our model with 1024 LSTM units, 1024 hidden units, and the latent variables of size 128. We train the model using a standard Gaussian prior, a learning rate of 0.001 and batch size of 50 and we set $\\alpha = \\beta = 1$ . The model is trained to predict the next character in a sequence and the final bits per character on test and valid sets are shown in Table 4 ",
642
+ "bbox": [
643
+ 174,
644
+ 881,
645
+ 823,
646
+ 924
647
+ ],
648
+ "page_idx": 4
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/5dc19ada58e73f92f93f5f3812546615e00cac1d2eaa7fe35c5974de5f9b6b1f.jpg",
653
+ "table_caption": [
654
+ "Table 3: Word perplexity on IMDB on valid and test sets "
655
+ ],
656
+ "table_footnote": [],
657
+ "table_body": "<table><tr><td>Model</td><td>Valid</td><td>Test</td></tr><tr><td></td><td></td><td></td></tr><tr><td>Gated Word-Char</td><td>70.60</td><td>70.87</td></tr><tr><td>Z-Forcing (Sordoni et al., 2017)</td><td>56.48</td><td>65.68</td></tr><tr><td>Variational Bi-LSTM</td><td>51.43</td><td>51.60</td></tr></table>",
658
+ "bbox": [
659
+ 331,
660
+ 131,
661
+ 665,
662
+ 205
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "image",
668
+ "img_path": "images/206b55463e83fd04b6ab2796e4d7919dcbedf0b6c96b094d08f5e320a64735e3.jpg",
669
+ "image_caption": [
670
+ "Figure 2: Evolution of the average of log-likelihood during training of Variational Bi-LSTMs with and without using skip gradient and auxiliary costs on PTB and Blizzard. "
671
+ ],
672
+ "image_footnote": [],
673
+ "bbox": [
674
+ 194,
675
+ 244,
676
+ 802,
677
+ 411
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "",
684
+ "bbox": [
685
+ 173,
686
+ 497,
687
+ 825,
688
+ 525
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "table",
694
+ "img_path": "images/efd2730830fc6da18aea192673f6e28df5ed9812fa7d6f604a64c483ae50d80b.jpg",
695
+ "table_caption": [
696
+ "Table 4: Bits Per Character (BPC) on PTB valid and test sets "
697
+ ],
698
+ "table_footnote": [],
699
+ "table_body": "<table><tr><td>Model</td><td>Valid</td><td>Test</td></tr><tr><td>Unregularized LSTM</td><td></td><td>1.36</td></tr><tr><td>Weight noise</td><td>1.47 1.51</td><td>1.34</td></tr><tr><td>Norm stabilizer</td><td>1.46</td><td>1.35</td></tr><tr><td>Stochastic depth</td><td>1.43</td><td>1.34</td></tr><tr><td>Recurrent dropout</td><td></td><td>1.29</td></tr><tr><td>Zoneout (Krueger et al. (2016))</td><td>1.40</td><td></td></tr><tr><td>RBN (Cooijmans et al. (2016))</td><td>1.36</td><td>1.25</td></tr><tr><td>H-LSTM + LN (Ha et al. (2016))</td><td>=</td><td>1.32</td></tr><tr><td>3-HM-LSTM + LN (Chung et al., 2016)</td><td>1.28</td><td>1.25</td></tr><tr><td>2-H-LSTM + LN (Ha et al. (2016))</td><td>=</td><td>1.24</td></tr><tr><td>Z-Forcing</td><td>1.25</td><td>1.22</td></tr><tr><td></td><td>1.29</td><td>1.26</td></tr><tr><td>Variational Bi-LSTM</td><td>1.26</td><td>1.23</td></tr></table>",
700
+ "bbox": [
701
+ 303,
702
+ 579,
703
+ 697,
704
+ 777
705
+ ],
706
+ "page_idx": 5
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "4 ABLATION STUDIES ",
711
+ "text_level": 1,
712
+ "bbox": [
713
+ 176,
714
+ 835,
715
+ 372,
716
+ 852
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "The goal of this section is to study the importance of the various components in our model to avoid any triviality. The experiments are as follows: ",
723
+ "bbox": [
724
+ 171,
725
+ 873,
726
+ 825,
727
+ 902
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "1. Reconstruction loss on $\\mathbf { h } _ { t }$ vs activity regularization on $\\mathbf { h } _ { t }$ ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 173,
737
+ 909,
738
+ 588,
739
+ 924
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "image",
745
+ "img_path": "images/60a747602b77a4e55002528d70589c5448a28766c9d073b54e5170691b29240f.jpg",
746
+ "image_caption": [
747
+ "Figure 3: Evolution of the bits per character on PTB validation with sampling latent variables $\\mathbf { z }$ from $\\mathcal { N } ( \\mathbf { 0 } , \\mathbf { I } )$ during training or using a fixed vector which we set to be the mean of latent variables. Interestingly, not sampling from prior during inference does not hurt the final performance on PTB. "
748
+ ],
749
+ "image_footnote": [],
750
+ "bbox": [
751
+ 352,
752
+ 104,
753
+ 645,
754
+ 270
755
+ ],
756
+ "page_idx": 6
757
+ },
758
+ {
759
+ "type": "table",
760
+ "img_path": "images/f44c35f64d6f28153098e8c36edd7fce0cae469f208c135c2f49c3901421e64f.jpg",
761
+ "table_caption": [
762
+ "Table 5: Perplexity on IMDB using different coefficient $\\gamma$ for activity regularization "
763
+ ],
764
+ "table_footnote": [],
765
+ "table_body": "<table><tr><td>2</td><td>0.001</td><td>1.</td><td>4.</td><td>8.</td><td>16.</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Test perplexity</td><td>56.07</td><td>60.74</td><td>69.97</td><td>77.24</td><td>86.72</td></tr></table>",
766
+ "bbox": [
767
+ 297,
768
+ 377,
769
+ 700,
770
+ 424
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "The authors of Merity et al. (2017) study the importance of activity regularization (AR) on the hidden states on LSTMs given as, ",
777
+ "bbox": [
778
+ 173,
779
+ 467,
780
+ 823,
781
+ 497
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "equation",
787
+ "img_path": "images/9086846d536dd1870d62faec5d4f519706a04a113089a5495facbcae4b2d15cd.jpg",
788
+ "text": "$$\n\\mathcal { R } _ { A R } = \\gamma \\| \\mathbf { h } _ { t } \\| _ { 2 } ^ { 2 }\n$$",
789
+ "text_format": "latex",
790
+ "bbox": [
791
+ 444,
792
+ 501,
793
+ 555,
794
+ 520
795
+ ],
796
+ "page_idx": 6
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "However, since our model’s reconstruction term on $\\mathbf { h } _ { t }$ can be decomposed as, ",
801
+ "bbox": [
802
+ 173,
803
+ 542,
804
+ 684,
805
+ 558
806
+ ],
807
+ "page_idx": 6
808
+ },
809
+ {
810
+ "type": "equation",
811
+ "img_path": "images/209212a396d1ff52a0ed1dd37e11a2dba0072dfc84c29e52271cc340b3ea4bec.jpg",
812
+ "text": "$$\n\\| \\mathbf { h } _ { t } - \\tilde { \\mathbf { h } } _ { t } \\| _ { 2 } ^ { 2 } = \\| \\mathbf { h } _ { t } \\| _ { 2 } ^ { 2 } + \\| \\tilde { \\mathbf { h } } _ { t } \\| _ { 2 } ^ { 2 } - 2 \\mathbf { h } _ { t } ^ { T } \\tilde { \\mathbf { h } } _ { t }\n$$",
813
+ "text_format": "latex",
814
+ "bbox": [
815
+ 366,
816
+ 564,
817
+ 632,
818
+ 584
819
+ ],
820
+ "page_idx": 6
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "we perform experiments to confirm that the gains in our approach is not due to the $\\ell ^ { 2 }$ regularization alone since our regularization encapsulates an $\\ell ^ { 2 }$ term along with the dot product term. ",
825
+ "bbox": [
826
+ 171,
827
+ 590,
828
+ 823,
829
+ 619
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "We use activity regularization using hyperparameter $\\alpha \\in \\{ 0 . 0 0 1 , 1 , 4 , 8 , 1 6 \\}$ in place of reconstruction term in our model and study the test perplexity. The results are shown in table 5. We find that in all the cases performance using activity regularization is worse compared with our best model shown in table 3. ",
836
+ "bbox": [
837
+ 173,
838
+ 626,
839
+ 825,
840
+ 683
841
+ ],
842
+ "page_idx": 6
843
+ },
844
+ {
845
+ "type": "table",
846
+ "img_path": "images/53a8b2f380ef5383a341c1f55963d382294818b8a7387d4e10c26c675f5bb6b1.jpg",
847
+ "table_caption": [
848
+ "Table 6: KL divergence of the Variational Bi-LSTM "
849
+ ],
850
+ "table_footnote": [],
851
+ "table_body": "<table><tr><td>Dataset</td><td>PTB</td><td>Seq-MNIST</td><td>IMDB</td><td>TIMIT</td><td>Blizzard</td></tr><tr><td>KL</td><td>0.001</td><td>0.02</td><td>0.18</td><td>3204.71</td><td>3799.79</td></tr></table>",
852
+ "bbox": [
853
+ 272,
854
+ 722,
855
+ 722,
856
+ 770
857
+ ],
858
+ "page_idx": 6
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "2. Use of parametric encoder prior vs. fixed Gaussian prior ",
863
+ "text_level": 1,
864
+ "bbox": [
865
+ 173,
866
+ 790,
867
+ 588,
868
+ 806
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "In our variational Bi-LSTM model, we propose to have the encoder prior over $\\mathbf { z } _ { t }$ as a function of the previous forward LSTM hidden state $\\mathbf { h } _ { t - 1 }$ . This is done to omit the need of the backward LSTM during inference because it is unavailable in practical scenarios since predictions are made in the forward direction. However, to study whether the model learns to use this encoder or not, we record the KL divergence value of the best validation model for the various datasets. The results are reported in table 6. We can see that the KL divergence values are large in the case of IMDB, TIMIT and Blizzard datasets, but small in the case of Seq-MNIST and PTB. To further explore, we ran experiments on these datasets with fixed standard Gaussian prior like in the case of traditional VAE. ",
875
+ "bbox": [
876
+ 173,
877
+ 811,
878
+ 825,
879
+ 924
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Interestingly we found that the model with fixed prior performed similarly in the case of PTB, but hurt performance in the other cases, which can be explained given their large KL divergence values in the original experiments. ",
886
+ "bbox": [
887
+ 174,
888
+ 103,
889
+ 823,
890
+ 145
891
+ ],
892
+ "page_idx": 7
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "5 RELATED WORK ",
897
+ "text_level": 1,
898
+ "bbox": [
899
+ 176,
900
+ 165,
901
+ 344,
902
+ 181
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "Variational auto-encoders (Kingma & Welling, 2014) can be easily combined with many deep learning models. They have been applied in the feed-forward setting but they have also found usage in RNNs to better capture variation in sequential data (Sordoni et al., 2017; Fraccaro et al., 2016; Chung et al., 2015; Bayer & Osendorfer, 2014). VAEs consists of several muti-layer neural networks as probabilistic encoders and decoders and training is based on the gradient on log-likelihood lower bound (as the likelihood is in general intractable) of the model parameters $\\Gamma$ along with a reparametrization trick. The derived variational lower-bound $\\mathcal { L } _ { \\Gamma }$ for an observed random variable $\\mathbf { x }$ is: ",
909
+ "bbox": [
910
+ 173,
911
+ 195,
912
+ 825,
913
+ 306
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "equation",
919
+ "img_path": "images/36609c39e491ff9c517bbed1c8267f21a85fff75156a2b4792c20519ab71567c.jpg",
920
+ "text": "$$\n\\log p ( \\mathbf { x } ) \\ge \\mathcal { L } _ { \\Gamma } = \\underset { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } { E } \\left[ \\log \\frac { p ( \\mathbf { x } , \\mathbf { z } ) } { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } \\right] = \\underset { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } { E } \\left[ \\ln p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } ) \\right] - D _ { K L } ( q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) | | p _ { \\theta } ( \\mathbf { z } ) ) ,\n$$",
921
+ "text_format": "latex",
922
+ "bbox": [
923
+ 192,
924
+ 306,
925
+ 774,
926
+ 342
927
+ ],
928
+ "page_idx": 7
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "where $D _ { K L }$ denotes the Kullback-Leibler divergence and $p _ { \\theta }$ is the prior over a latent variable $\\mathbf { z }$ . The KL divergence tem can be expressed as the difference between the entropy of $q _ { \\phi }$ and the prior and fortunately, it can be computed and differentiated without estimation for some distribution families like Gaussians. Although maximizing the log-likelihood corresponds to minimizing the KL divergence, we have to ensure that the resulting $q _ { \\phi }$ remains far enough from an undesired equilibrium state where $q _ { \\phi }$ is almost everywhere equal to the prior over latent variables. Combining recurrent neural networks with variational auto encoders can lead to powerful generative models that are capable of capturing the variations in data, however, they suffer badly from this optimization issue as discussed by Bowman et al. (2015). ",
933
+ "bbox": [
934
+ 173,
935
+ 343,
936
+ 825,
937
+ 469
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Recently, VAEs have also been applied to Bi-LSTMs by Sordoni et al. (2017) through a technique called Z-forcing. It is a powerful generative autoregressive model which is trained using the following variational evidence lower-bound ",
944
+ "bbox": [
945
+ 174,
946
+ 474,
947
+ 823,
948
+ 516
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "equation",
954
+ "img_path": "images/33a5827738c999d1ae2fdf7be5b4a06a77cd4c7aaa727f0a0b1a50f539194435.jpg",
955
+ "text": "$$\n\\mathcal { L } ( \\mathbf { x } ; \\theta , \\phi , \\xi ) = \\sum _ { \\ell } \\underset { q _ { \\phi } ( \\mathbf { z } _ { \\ell } | \\mathbf { x } ) } { E } \\Big [ \\log p _ { \\theta } ( \\mathbf { x } _ { t + 1 } | \\mathbf { x } _ { 1 : t } , \\mathbf { z } _ { 1 : t } ) \\Big ] - D _ { K L } \\big ( q _ { \\phi } ( \\mathbf { z } _ { t } | \\mathbf { x } ) \\big | \\big | ( p _ { \\theta } ( \\mathbf { z } _ { t } | \\mathbf { x } _ { 1 : t - 1 } , \\mathbf { z } _ { 1 : t - 1 } ) \\big )\n$$",
956
+ "text_format": "latex",
957
+ "bbox": [
958
+ 187,
959
+ 518,
960
+ 808,
961
+ 554
962
+ ],
963
+ "page_idx": 7
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "plus an auxiliary cost as a regularizer which is defined as $\\log p _ { \\xi } ( \\mathbf { b } _ { t } | \\mathbf { z } _ { t } )$ . They show that the auxiliary cost helps in improving the final performance; however during inference the backward reconstructions have not been used in their approach. In our ablation study section below, we show experimentally that this connection is important towards improving the performance of Bi-LSTMs as is the case in our model. ",
968
+ "bbox": [
969
+ 174,
970
+ 556,
971
+ 825,
972
+ 627
973
+ ],
974
+ "page_idx": 7
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "6 CONCLUSION ",
979
+ "text_level": 1,
980
+ "bbox": [
981
+ 174,
982
+ 646,
983
+ 318,
984
+ 662
985
+ ],
986
+ "page_idx": 7
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Variational Bi-LSTMs are powerful autoregressive generative models that are capable of learning better representations by creating a channel to exchange the information of the past and the future. Moreover, the conditional distribution over the backward LSTM variables is learned that can lead to better learning results in practice. Furthermore, Variational Bi-LSTM model acts as a regularizer and makes both networks be informative enough to perform well on different benchmark problems taken from the literature. ",
991
+ "bbox": [
992
+ 174,
993
+ 676,
994
+ 825,
995
+ 761
996
+ ],
997
+ "page_idx": 7
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "ACKNOWLEDGMENTS ",
1002
+ "text_level": 1,
1003
+ "bbox": [
1004
+ 176,
1005
+ 781,
1006
+ 356,
1007
+ 796
1008
+ ],
1009
+ "page_idx": 7
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "The authors would like to thank Theano developers (Theano Development Team, 2016) for their great work. ",
1014
+ "bbox": [
1015
+ 176,
1016
+ 810,
1017
+ 823,
1018
+ 838
1019
+ ],
1020
+ "page_idx": 7
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "REFERENCES ",
1025
+ "text_level": 1,
1026
+ "bbox": [
1027
+ 176,
1028
+ 859,
1029
+ 287,
1030
+ 875
1031
+ ],
1032
+ "page_idx": 7
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Jonathan Raiman, Shubho Sengupta, et al. Deep voice: Real-time neural text-to-speech. arXiv preprint arXiv:1702.07825, 2017. ",
1037
+ "bbox": [
1038
+ 176,
1039
+ 882,
1040
+ 823,
1041
+ 924
1042
+ ],
1043
+ "page_idx": 7
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. ",
1048
+ "bbox": [
1049
+ 169,
1050
+ 103,
1051
+ 823,
1052
+ 132
1053
+ ],
1054
+ "page_idx": 8
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Jorg Bornschein, Samira Shabanian, Asja Fischer, and Yoshua Bengio. Training opposing directed ¨ models using geometric mean matching. CoRR, abs/1506.03877, 2015. URL http://arxiv. org/abs/1506.03877. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 142,
1062
+ 821,
1063
+ 185
1064
+ ],
1065
+ "page_idx": 8
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015. ",
1070
+ "bbox": [
1071
+ 173,
1072
+ 196,
1073
+ 821,
1074
+ 227
1075
+ ],
1076
+ "page_idx": 8
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
1081
+ "bbox": [
1082
+ 171,
1083
+ 236,
1084
+ 825,
1085
+ 267
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 276,
1095
+ 823,
1096
+ 319
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Tim Cooijmans, Nicolas Ballas, Cesar Laurent, and Aaron C. Courville. Recurrent batch normal- ´ ization. CoRR, abs/1603.09025, 2016. URL http://arxiv.org/abs/1603.09025. ",
1103
+ "bbox": [
1104
+ 171,
1105
+ 330,
1106
+ 823,
1107
+ 359
1108
+ ],
1109
+ "page_idx": 8
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Qiming Diao, Minghui Qiu, Chao-Yuan Wu, Alexander J Smola, Jing Jiang, and Chong Wang. Jointly modeling aspects, ratings and sentiments for movie recommendation (jmars). In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 193–202, 2014. ",
1114
+ "bbox": [
1115
+ 173,
1116
+ 371,
1117
+ 825,
1118
+ 428
1119
+ ],
1120
+ "page_idx": 8
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in Neural Information Processing Systems, pp. 2199–2207, 2016. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 438,
1128
+ 825,
1129
+ 481
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Advances in neural information processing systems, pp. 1019–1027, 2016. ",
1136
+ "bbox": [
1137
+ 173,
1138
+ 492,
1139
+ 823,
1140
+ 521
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In ICML, pp. 881–889, 2015. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 532,
1150
+ 821,
1151
+ 561
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Anirudh Goyal, Alex Lamb, Ying Zhang, Saizheng Zhang, Aaron C. Courville, and Yoshua Bengio. Professor forcing: A new algorithm for training recurrent networks. In Advances in Neural Information Processing Systems 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pp. 4601–4609, 2016. URL http://papers.nips.cc/paper/ 6099-professor-forcing-a-new-algorithm-for-training-recurrent-netw ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 571,
1161
+ 841,
1162
+ 657
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015. ",
1169
+ "bbox": [
1170
+ 171,
1171
+ 667,
1172
+ 825,
1173
+ 696
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 707,
1183
+ 825,
1184
+ 751
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. CoRR, abs/1609.09106, 2016. URL http://arxiv.org/abs/1609.09106. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 761,
1194
+ 823,
1195
+ 790
1196
+ ],
1197
+ "page_idx": 8
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
1202
+ "bbox": [
1203
+ 169,
1204
+ 801,
1205
+ 823,
1206
+ 830
1207
+ ],
1208
+ "page_idx": 8
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 842,
1216
+ 823,
1217
+ 871
1218
+ ],
1219
+ "page_idx": 8
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Diederik P Kingma and Max Welling. Stochastic Gradient VB and the Variational Auto-Encoder. 2nd International Conference on Learning Representationsm (ICLR), pp. 1–14, 2014. ISSN 0004- 6361. doi: 10.1051/0004-6361/201527329. URL http://arxiv.org/abs/1312.6114. ",
1224
+ "bbox": [
1225
+ 174,
1226
+ 882,
1227
+ 825,
1228
+ 924
1229
+ ],
1230
+ "page_idx": 8
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "David Krueger, Tegan Maharaj, Janos Kram ´ ar, Mohammad Pezeshki, Nicolas Ballas, Nan Rose- ´ mary Ke, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, Aaron C. Courville, and Chris Pal. Zoneout: Regularizing rnns by randomly preserving hidden activations. CoRR, abs/1606.01305, 2016. URL http://arxiv.org/abs/1606.01305. ",
1235
+ "bbox": [
1236
+ 174,
1237
+ 103,
1238
+ 825,
1239
+ 160
1240
+ ],
1241
+ "page_idx": 9
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Hugo Larochelle. Binarized mnist dataset. 2011. URL http://www.cs.toronto.edu/ ˜larocheh/public/datasets/binarized_mnist/binarized_mnist_train. amat. ",
1246
+ "bbox": [
1247
+ 174,
1248
+ 171,
1249
+ 825,
1250
+ 213
1251
+ ],
1252
+ "page_idx": 9
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Mitchell P. Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Comput. Linguist., 19(2):313–330, June 1993. ISSN 0891-2017. URL http://dl.acm.org/citation.cfm?id $=$ 972470.972475. ",
1257
+ "bbox": [
1258
+ 173,
1259
+ 224,
1260
+ 825,
1261
+ 267
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Soroush Mehri, Kundan Kumar, Ishaan Gulrajani, Rithesh Kumar, Shubham Jain, Jose Sotelo, Aaron Courville, and Yoshua Bengio. Samplernn: An unconditional end-to-end neural audio generation model. arXiv preprint arXiv:1612.07837, 2016. ",
1268
+ "bbox": [
1269
+ 176,
1270
+ 277,
1271
+ 823,
1272
+ 321
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Stephen Merity, Bryan McCann, and Richard Socher. Revisiting activation regularization for language rnns. arXiv preprint arXiv:1708.01009, 2017. ",
1279
+ "bbox": [
1280
+ 173,
1281
+ 332,
1282
+ 823,
1283
+ 361
1284
+ ],
1285
+ "page_idx": 9
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Iain Murray and Ruslan R Salakhutdinov. Evaluating probabilities under highdimensional latent variable models. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 1137– 1144. Curran Associates, Inc., 2009. URL http://papers.nips.cc/paper/ 3584-evaluating-probabilities-under-high-dimensional-latent-variable-model pdf. ",
1290
+ "bbox": [
1291
+ 171,
1292
+ 372,
1293
+ 921,
1294
+ 457
1295
+ ],
1296
+ "page_idx": 9
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016. ",
1301
+ "bbox": [
1302
+ 171,
1303
+ 467,
1304
+ 823,
1305
+ 496
1306
+ ],
1307
+ "page_idx": 9
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. Understanding the exploding gradient problem. CoRR, abs/1211.5063, 2012. URL http://arxiv.org/abs/1211.5063. ",
1312
+ "bbox": [
1313
+ 174,
1314
+ 507,
1315
+ 825,
1316
+ 536
1317
+ ],
1318
+ "page_idx": 9
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Tapani Raiko, Yao Li, Kyunghyun Cho, and Yoshua Bengio. Iterative neural autoregressive distribution estimator nade-k. In Advances in neural information processing systems, pp. 325–333, 2014. ",
1323
+ "bbox": [
1324
+ 174,
1325
+ 546,
1326
+ 825,
1327
+ 589
1328
+ ],
1329
+ "page_idx": 9
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "David E Rumelhart, Geoffrey E Hinton, and Ronald J Williams. Learning representations by backpropagating errors. Cognitive modeling, 5(3):1, 1988. ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 601,
1337
+ 823,
1338
+ 630
1339
+ ],
1340
+ "page_idx": 9
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "Tim Salimans, Diederik P Kingma, and Max Welling. Markov chain monte carlo and variational inference: Bridging the gap. arXiv preprint arXiv:1410.6460, 2014. ",
1345
+ "bbox": [
1346
+ 171,
1347
+ 640,
1348
+ 823,
1349
+ 670
1350
+ ],
1351
+ "page_idx": 9
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "Dmitriy Serdyuk, Rosemary Nan Ke, Alessandro Sordoni, Chris Pal, and Yoshua Bengio. Twin networks: Using the future as a regularizer. arXiv preprint arXiv:1708.06742, 2017. ",
1356
+ "bbox": [
1357
+ 171,
1358
+ 679,
1359
+ 823,
1360
+ 709
1361
+ ],
1362
+ "page_idx": 9
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Alessandro Sordoni, Anirudh Goyal ALIAS PARTH GOYAL, Marc-Alexandre Cote, Nan Ke, and Yoshua Bengio. Z-forcing: Training stochastic recurrent networks. In Advances in Neural Information Processing Systems. 2017. URL https://nips.cc/Conferences/2017/ Schedule?showEvent $= 9 4 3 9$ . ",
1367
+ "bbox": [
1368
+ 173,
1369
+ 719,
1370
+ 825,
1371
+ 776
1372
+ ],
1373
+ "page_idx": 9
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "Jose Sotelo, Soroush Mehri, Kundan Kumar, Joao Felipe Santos, Kyle Kastner, Aaron Courville, and Yoshua Bengio. Char2wav: End-to-end speech synthesis. 2017. ",
1378
+ "bbox": [
1379
+ 171,
1380
+ 787,
1381
+ 823,
1382
+ 816
1383
+ ],
1384
+ "page_idx": 9
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of machine learning research, 15(1):1929–1958, 2014. ",
1389
+ "bbox": [
1390
+ 174,
1391
+ 827,
1392
+ 823,
1393
+ 871
1394
+ ],
1395
+ "page_idx": 9
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688. ",
1400
+ "bbox": [
1401
+ 176,
1402
+ 882,
1403
+ 825,
1404
+ 924
1405
+ ],
1406
+ "page_idx": 9
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Benigno Uria, Marc-Alexandre Cotˆ e, Karol Gregor, Iain Murray, and Hugo Larochelle. Neural ´ autoregressive distribution estimation. Journal of Machine Learning Research, 17(205):1–37, 2016. ",
1411
+ "bbox": [
1412
+ 174,
1413
+ 103,
1414
+ 823,
1415
+ 145
1416
+ ],
1417
+ "page_idx": 10
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: Towards end-to-end speech syn. arXiv preprint arXiv:1703.10135, 2017. ",
1422
+ "bbox": [
1423
+ 174,
1424
+ 155,
1425
+ 821,
1426
+ 196
1427
+ ],
1428
+ "page_idx": 10
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. ",
1433
+ "bbox": [
1434
+ 173,
1435
+ 207,
1436
+ 821,
1437
+ 234
1438
+ ],
1439
+ "page_idx": 10
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "APPENDIX ",
1444
+ "text_level": 1,
1445
+ "bbox": [
1446
+ 176,
1447
+ 102,
1448
+ 264,
1449
+ 118
1450
+ ],
1451
+ "page_idx": 11
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "A: Derivation of variation lower bound ${ \\mathcal { L } } _ { \\mathbf { T } }$ in equation (2) in more details: ",
1456
+ "bbox": [
1457
+ 173,
1458
+ 132,
1459
+ 661,
1460
+ 148
1461
+ ],
1462
+ "page_idx": 11
1463
+ },
1464
+ {
1465
+ "type": "equation",
1466
+ "img_path": "images/f2352550590b95cf180f6ea83f998b74d821d67c83f5f9aacab271570224c7f8.jpg",
1467
+ "text": "$$\n\\begin{array} { r l } & { \\quad - \\frac { \\sqrt { 3 } } { 2 } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin \\alpha \\sin \\beta \\right] \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) \\sin \\alpha \\sin \\beta \\sin \\left( \\beta \\right) \\sin \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) \\dot { \\alpha } \\sin \\alpha \\sin \\beta \\sin \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) \\dot { \\alpha } \\sin \\alpha \\sin \\beta \\sin \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) } \\\\ & { \\quad - \\frac { \\sqrt { 3 } } { 2 } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin \\alpha \\sin \\beta \\right] \\sin \\alpha \\sin \\beta \\sin \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) \\dot { \\alpha } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin \\alpha \\sin \\beta \\sin \\left( \\frac { \\sqrt { 3 } } { 2 } \\right) \\dot { \\alpha } \\sin \\alpha \\right] \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\beta \\sin \\alpha \\sin \\beta } \\\\ & { \\quad + \\frac { \\sqrt { 3 } } { 2 } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin \\alpha \\left( \\frac { \\sqrt { 3 } } { 2 } \\cos \\alpha \\cos \\beta \\right) \\right] \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\beta \\sin \\alpha \\sin \\beta } \\\\ & { \\quad - \\frac { \\sqrt { 3 } } { 2 } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin ^ { 2 } \\alpha \\left( \\frac { \\sqrt { 3 } } { 2 } \\cos \\alpha \\sin \\beta \\cos \\frac { \\sqrt { 3 } } { 2 } \\right) \\right] \\cos \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\beta \\sin \\alpha \\beta } \\\\ & { \\quad + \\frac { \\sqrt { 3 } } { 2 } \\left[ \\int _ { 0 } ^ { 1 } \\sqrt { \\alpha } \\left( \\beta \\right) \\sin ^ { 2 } \\alpha \\left( \\frac { \\sqrt { 3 } } { 2 } \\cos \\alpha \\sin \\beta \\cos \\frac { \\sqrt { 3 } } { 2 } \\right) \\right] \\sin \\alpha \\sin \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\beta \\sin \\alpha \\sin \\beta \\sin \\alpha \\gamma \\sin \\beta \\sin \\alpha \\beta \\sin \\beta \\sin \\alpha \\gamma } \\\\ & \\quad - \\frac { 3 } 2 \\end{array}\n$$",
1468
+ "text_format": "latex",
1469
+ "bbox": [
1470
+ 238,
1471
+ 194,
1472
+ 883,
1473
+ 602
1474
+ ],
1475
+ "page_idx": 11
1476
+ }
1477
+ ]
parse/train/SkqV-XZRZ/SkqV-XZRZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkqV-XZRZ/SkqV-XZRZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Sye_OgHFwH/Sye_OgHFwH.md ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNRESTRICTED ADVERSARIAL EXAMPLES VIA SEMANTIC MANIPULATION
2
+
3
+ Anand Bhattad∗ Min Jin Chong∗ Kaizhao Liang Bo Li D. A. Forsyth
4
+
5
+ University of Illinois at Urbana-Champaign {bhattad2, mchong6, kl2, lbo, daf}@illinois.edu
6
+
7
+ # ABSTRACT
8
+
9
+ Machine learning models, especially deep neural networks (DNNs), have been shown to be vulnerable against adversarial examples which are carefully crafted samples with a small magnitude of the perturbation. Such adversarial perturbations are usually restricted by bounding their ${ \mathcal { L } } _ { p }$ norm such that they are imperceptible, and thus many current defenses can exploit this property to reduce their adversarial impact. In this paper, we instead introduce “unrestricted” perturbations that manipulate semantically meaningful image-based visual descriptors – color and texture – in order to generate effective and photorealistic adversarial examples. We show that these semantically aware perturbations are effective against JPEG compression, feature squeezing and adversarially trained model. We also show that the proposed methods can effectively be applied to both image classification and image captioning tasks on complex datasets such as ImageNet and MSCOCO. In addition, we conduct comprehensive user studies to show that our generated semantic adversarial examples are photorealistic to humans despite large magnitude perturbations when compared to other attacks.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Machine learning (ML), especially deep neural networks (DNNs) have achieved great success in various tasks, including image recognition (Krizhevsky et al., 2012; He et al., 2016), speech processing (Hinton et al., 2012) and robotics training (Levine et al., 2016). However, recent literature has shown that these widely deployed ML models are vulnerable to adversarial examples – carefully crafted perturbations aiming to mislead learning models (Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018b). The fast growth of DNNs based solutions demands in-depth studies on adversarial examples to help better understand potential vulnerabilities of ML models and therefore improve their robustness.
14
+
15
+ To date, a variety of different approaches has been proposed to generate adversarial examples (Goodfellow et al., 2014b; Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018a); and many of these attacks search for perturbation within a bounded ${ \mathcal { L } } _ { p }$ norm in order to preserve their photorealism. However, it is known that the ${ \mathcal { L } } _ { p }$ norm distance as a perceptual similarity metric is not ideal (Johnson et al., 2016; Isola et al., 2017). In addition, recent work show that defenses trained on ${ \mathcal { L } } _ { p }$ bounded perturbation are not robust at all against new types of unseen attacks (Kang et al., 2019). Therefore, exploring diverse adversarial examples, especially those with “unrestricted" magnitude of perturbation has acquired a lot of attention in both academia and industries (Brown et al., 2018).
16
+
17
+ Recent work based on generative adversarial networks (GANs) (Goodfellow et al., 2014a) have introduced unrestricted attacks (Song et al, 2018). However, these attacks are limited to datasets like MNIST, CIFAR and CelebA, and are usually unable to scale up to bigger and more complex datasets such as ImageNet. Xiao et al. (2018b) directly manipulated spatial pixel flow of an image to produce adversarial examples without ${ \mathcal { L } } _ { p }$ bounded constraints on the perturbation. However, the attack does not explicitly control visual semantic representation. More recently, Hosseini & Poovendran (2018) manipulated hue and saturation of an image to create adversarial perturbations. However, these examples are easily distinguishable by human and are also not scalable to complex datasets.
18
+
19
+ ![](images/514af06a88a5eea15c6c9e8bc4ad6c3e460cdc30ee34f96f553dd4860d75f2bd.jpg)
20
+ Figure 1: An overview of proposed attacks. Top: Colorization attack (cAdv); Bottom: Texture transfer attack (tAdv). Our attacks achieve high attack success rate via semantic manipulation without any constraints on the ${ \mathcal { L } } _ { p }$ norm of the perturbation. Our methods are general and can be used for attacking both classifiers and captioners.
21
+
22
+ In this work, we propose unrestricted attack strategies that explicitly manipulate semantic visual representations to generate natural-looking adversarial examples that are “far” from the original image in tems of the ${ \mathcal { L } } _ { p }$ norm distance. In particular, we manipulate color (cAdv) and texture (tAdv) to create realistic adversarial examples (see Fig 1). cAdv adaptively chooses locations in an image to change their colors, producing adversarial perturbation that is usually fairly substantial, while tAdv utilizes the texture from other images and adjusts the instance’s texture field using style transfer.
23
+
24
+ These semantic transformation-based adversarial perturbations shed light upon the understanding of what information is important for DNNs to make predictions. For instance, in one of our case studies, when the road is recolored from gray to blue, the image gets misclassified to tench (a fish) although a car remains evidently visible (Fig. 2b). This indicates that deep learning models can easily be fooled by certain large scale patterns. In addition to image classifiers, the proposed attack methods can be generalized to different machine learning tasks such as image captioning ( Karpathy & Fei-Fei (2015)). Our attacks can either change the entire caption to the target (Chen et al., 2017; Xu et al., 2019) or take on more challenging tasks like changing one or two specific target words from the caption to a target. For example, in Fig. 1, “stop sign” of the original image caption is changed to “cat sitting” and “umbrella is” for cAdv and tAdv respectively.
25
+
26
+ To ensure our “unrestricted" semantically manipulated images are natural, we conducted extensive user studies with Amazon Mechanical Turk. We also tested our proposed attacks on several state of the art defenses. Rather than just showing the attacks break these defenses (better defenses will come up), we aim to show that cAdv and tAdv are able to produce new types of adversarial examples. Experiments also show that our proposed attacks are more transferable given their large and structured perturbations (Papernot et al., 2016). Our semantic adversarial attacks provide further insights about the vulnerabilities of ML models and therefore encourage new solutions to improve their robustness.
27
+
28
+ In summary, our contributions are: 1) We propose two novel approaches to generate “unrestricted" adversarial examples via semantic transformation; 2) We conduct extensive experiments to attack both image classification and image captioning models on large scale datasets (ImageNet and MSCOCO); 3) We show that our attacks are equipped with unique properties such as smooth cAdv perturbations and structured tAdv perturbations. 4) We perform comprehensive user studies to show that when compared to other attacks, our generated adversarial examples appear more natural to humans despite their large perturbations; 5) We test different adversarial examples against several state of the art defenses and show that the proposed attacks are more transferable and harder to defend.
29
+
30
+ # 2 COLORIZATION ATTACK (cADV)
31
+
32
+ Background. Image Colorization is the task of giving natural colorization to a grayscale image. This is an ill-posed problem as there are multiple viable natural colorizations given a single grayscale image. Deshpande et al. (2017) showed that diverse image colorization can be achieved by using an architecture that combines VAE (Kingma & Welling (2013)) and Mixture Density Network; while Zhang et al. (2017) demonstrated an improved and diverse image colorization by using input hints from users guided colorization process.
33
+
34
+ ![](images/b0804e3a762a7a2f503cf09b86cad9a05b95b04f732e4ddb2fde6c9dd3cdb46a.jpg)
35
+ Figure 2: Class color affinity. Samples from unconstrained cAdv attacking network weights with zero hints provided. For (a) the ground truth (GT) class is pretzel; and for (b) the GT is car. These new colors added are commonly found in images from target class. For instance, green in Golfcart and blue sea in Tench images.
36
+
37
+ Our goal is to adversarially color an image by leveraging a pretrained colorization model. We hypothesize that it is possible to find a natural colorization that is adversarial for a target model (e.g., classifier or captioner) by searching in the color space. Since a colorization network learns to color natural colors that conform to boundaries and respect short-range color consistency, we can use it to introduce smooth and consistent adversarial noise with a large magnitude that looks natural to humans. This attack differs from common adversarial attacks which tend to introduce short-scale high-frequency artifacts that are minimized to be invisible for human observers.
38
+
39
+ We leverage Zhang et al. (2016; 2017) colorization model for our attack. In their work, they produce natural colorizations on ImageNet with input hints from the user. The inputs to their network consist of the L channel of the image in CIELAB color space $X _ { L } \in \mathbb { R } ^ { H \times W \times 1 }$ , the sparse colored input hints $X _ { a b } \in \mathbb { R } ^ { H \times W \times 2 }$ , and the binary mask $M \in \mathbb { B } ^ { \hat { H } \times W \times 1 }$ , indicating the location of the hints.
40
+
41
+ cAdv Objectives. There are a few ways to leverage the colorization model to achieve adversarial objectives. We experimented with two main methods and achieved varied results.
42
+
43
+ Network weights. The straightforward approach of producing adversarial colors is to modify Zhang et al. (2017) colorization network, $\mathcal { C }$ directly. To do so, we simply update $\mathcal { C }$ by minimizing the adversarial loss objective ${ J } _ { a d v }$ , which in our case, is the cross entropy loss. $t$ represents target class and $\mathcal { F }$ represents the victim network.
44
+
45
+ $$
46
+ \boldsymbol { \theta } ^ { * } = \underset { \boldsymbol { \theta } } { \arg \operatorname* { m i n } } \ J _ { a d v } ( \mathcal { F } ( \mathcal { C } ( \boldsymbol { X _ { L } } , \boldsymbol { X _ { a b } } , M ; \boldsymbol { \theta } ) ) , t )
47
+ $$
48
+
49
+ Hints and mask. We can also vary input hints $X _ { a b }$ and mask $M$ to produce adversarial colorizations. Hints provides the network with ground truth color patches that guides the colorization, while the mask provides its spatial location. By jointly varying both hints and mask, we are able to manipulate the output colorization. We can update the hints and mask as follows:
50
+
51
+ $$
52
+ \boldsymbol { M } ^ { * } , \boldsymbol { X } _ { a b } ^ { * } = \underset { \boldsymbol { M } , \boldsymbol { X } _ { a b } } { \arg \operatorname* { m i n } } \boldsymbol { J } _ { a d v } \big ( \mathcal { F } ( \mathcal { C } ( \boldsymbol { X } _ { L } , \boldsymbol { X } _ { a b } , \boldsymbol { M } ; \boldsymbol { \theta } ) ) , t \big )
53
+ $$
54
+
55
+ cAdvAttack Methods. Attacking network weights allows the network to search the color space with no constraints for adversarial colors. This attack is the easiest to optimize, but the output colors are not realistic as shown in Fig. 2. Our various strategies outlined below are ineffective as the model learns to generate the adversarial colors without taking into account color realism. However, colorizations produced often correlate with colors often observed in the target class. This suggests that classifiers associate certain colors with certain classes which we will discuss more in our case study.
56
+
57
+ Attacking input hints and mask jointly gives us natural results as the pretrained network will not be affected by our optimization. Attacking hints and mask separately also works but takes a long optimization time and give slightly worse results. For our experiments, we use Adam Optimizer (Kingma & Ba (2014)) with a learning rate of $1 0 ^ { - 4 }$ in cAdv. We iteratively update hints and mask until our adversarial image reaches the target class and the confidence change of consecutive iterations does not exceed a threshold of 0.05.
58
+
59
+ ![](images/c7c5f8250772341da4fe8591f5d37ea334cf3298a3d785c6a99babd51fbecadf.jpg)
60
+ Figure 3: Controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to misclassify as golf-cart. Second and fourth row visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the sampled hints location. Sampling hints across more clusters gives less color variety.
61
+
62
+ Control over colorization. Current attack methods lack control over where the attack occurs, opting to attack all pixels indiscriminately. This lack of control is not important for most attacks where the $\epsilon$ is small but is concerning in cAdv where making unstructured large changes can be jarring. To produce realistic colorization, we need to avoid making large color changes at locations where colors are unambiguous (e.g. roads in general are gray) and focus on those where colors are ambiguous (e.g. an umbrella can have different colors). To do so, we need to segment an image and determine which segments should be attacked or preserved.
63
+
64
+ To segment the image into meaningful areas, we cluster the image’s ground truth AB space using K-Means. We first use a Gaussian filter of $\sigma = 3$ to smooth the AB channels and then cluster them into 8 clusters. Then, we have to determine which cluster’s colors should be preserved. Fortunately, Zhang et al. (2017) network output a per-pixel color distribution for a given image which we used to calculate the entropy of each pixel. The entropy represents how confident the network is at assigning a color at that location. The average entropy of each cluster represents how ambiguous their color is. We want to avoid making large changes to clusters with low-entropy while allowing our attack to change clusters with high entropy. One way to enforce this behavior is through hints, which are sampled from the ground truth at locations belonging to clusters of low-entropy. We sample hints from the $k$ clusters with the lowest entropy which we refer as $\mathbf { c A d v } _ { k }$ (e.g. $\mathbf { c A d v } _ { 2 }$ samples hints from the 2 lowest entropy clusters).
65
+
66
+ Number of input hints. Network hints constrain our output to have similar colors as the ground truth, avoiding the possibility of unnatural colorization at the cost of color diversity. This trade-off is controlled by the number of hints given to the network as initialization (Fig. 4). Generally, providing more hints gives us similar colors that are observed in original image. However, having too many hints is also problematic. Too many hints makes the optimization between drawing adversarial colors and matching local color hints difficult. Since the search space for adversarial colors is constrained because of more hints, we may instead generate unrealistic examples.
67
+
68
+ Number of Clusters. The trade-off between the color diversity and the color realism is also controlled by the number of clusters we sample hints from as shown in Fig. 3. Sampling from multiple clusters gives us realistic colors closer to the ground truth image at the expense of color diversity.
69
+
70
+ ![](images/28c9a7081555c80396d860e35a38f481e641978107e769d4052d98991b1f4987.jpg)
71
+ Figure 4: Number of color hints required for cAdv. All images are attacked to Merganser with $k = 4$ . When the number of hints increases (from left to right), the output colors are more similar to groundtruth. However, when the number of hints is too high (500), cAdv often generates unrealistic perturbations. This is due to a harder optimization for cAdv to both add adversarial colors and match GT color hints. cAdv is effective and realistic with a balanced number of hints.
72
+
73
+ Empirically, from our experiments we find that in terms of color diversity, realism, and robustness of attacks, using $k = 4$ and 50 hints gives us better adversarial examples. For the rest of this paper, we fix 50 hints for all $\mathbf { c A d v } _ { k }$ methods.
74
+
75
+ # 3 TEXTURE ATTACK (tADV)
76
+
77
+ Background. Texture transfer extracts texture from one image and adds it to another. Transferring texture from one source image to another target image has been widely studied in computer vision ( Efros & Freeman (2001); Gatys et al. (2015)). The Convolutional Neural Network (CNN) based texture transfer from Gatys et al. (2015) led to a series of new ideas in the domain of artistic style transfer ( Gatys et al. (2016); Huang & Belongie (2017); Li et al. (2017); Yeh et al. (2019)). More recently, Geirhos et al. (2018) showed that DNNs trained on ImageNet are biased towards texture for making predictions.
78
+
79
+ Our goal is to generate adversarial examples by infusing texture from another image without explicit constraints on ${ \mathcal { L } } _ { p }$ norm of the perturbation. For generating our tAdv examples, we used a pretrained VGG19 network (Simonyan & Zisserman, 2014) to extract textural features. We directly optimize our victim image $( I _ { v } )$ by adding texture from a target image $( I _ { t } )$ . A natural strategy to transfer texture is by minimizing within-layer feature correlation statistics (gram matrices) between two images Gatys et al. (2015; 2016). Based on Yeh et al. (2019), we find that optimizing cross-layer gram matrices instead of within-layer gram matrices helps produce more natural looking adversarial examples. The difference between the within-layer and the cross-layer gram matrices is that for a within-layer, the feature’s statistics are computed between the same layer. For a cross-layer, the statistics are computed between two adjacent layers.
80
+
81
+ tAdv Objectives. tAdv directly attacks the image to create adversarial examples without modifying network parameters. Moreover, there is no additional content loss that is used in style transfer methods (Gatys et al. (2016); Yeh et al. (2019)). Our overall objective function for the texture attack contains a texture transfer loss $( L _ { t } ^ { \mathcal { A } } )$ and an cross-entropy loss $( J _ { a d v } )$ .
82
+
83
+ $$
84
+ L _ { \mathbf { t A d v } } ^ { \mathcal { A } } = \alpha L _ { t } ^ { \mathcal { A } } ( I _ { v } , I _ { t } ) + \beta J _ { a d v } ( \mathcal { F } ( I _ { v } ) , t )
85
+ $$
86
+
87
+ Unlike style transfer methods, we do not want the adversarial examples to be artistically pleasing. Our goal is to infuse a reasonable texture from a target class image to the victim image and fool a classifier or captioning network. To ensure a reasonable texture is added without overly perturbing the victim image too much, we introduce an additional constraint on the variation in the gram matrices of the victim image. This constraint helps us to control the image transformation procedure and prevents it from producing artistic images. Let $m$ and $n$ denote two layers of a pretrained VGG-19 with a decreasing spatial resolution and $C$ for number of filter maps in layer $n$ , our texture transfer loss is then given by
88
+
89
+ $$
90
+ L _ { t } ^ { \mathcal { A } } ( I _ { v } , I _ { t } ) = \sum _ { ( m , n ) \in \mathcal { L } } \frac { 1 } { C ^ { 2 } } \sum _ { i j } \frac { \big \| G _ { i j } ^ { m , n } ( I _ { v } ) - G _ { i j } ^ { m , n } ( I _ { t } ) \big \| ^ { 2 } } { s t d \left( G _ { i j } ^ { m , n } ( I _ { v } ) \right) }
91
+ $$
92
+
93
+ ![](images/ebf1d78bd9d5759fd6fbcdbee62f0234f57921123c53e7a611aa070c3032e6eb.jpg)
94
+ Figure 5: tAdv strategies. Texture transferred from random “texture source” $( T _ { s } )$ in row 1, random target class $T _ { s }$ (row 2) and from the nearest target class $T _ { s }$ (row 3). All examples are misclassified from Beacon to Nautilus. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight $\alpha$ increases (left to right).
95
+
96
+ Let $f$ be feature maps, $\mathcal { U } f ^ { n }$ be an upsampled $f ^ { n }$ that matches the spatial resolution of layer $m$ . The cross layer gram matrices $G$ between the victim image $( I _ { v } )$ and a target image $( I _ { t } )$ is given as
97
+
98
+ $$
99
+ G _ { i j } ^ { m , n } ( I ) = \sum _ { p } \left[ f _ { i , p } ^ { m } ( I ) \right] \left[ \mathcal { U } f _ { j , p } ^ { n } ( I ) \right] ^ { T }
100
+ $$
101
+
102
+ Texture Transfer. To create tAdv adversarial examples, we need to find images to extract the texture from, which we call “texture source” $( T _ { s } )$ . A naive strategy is to randomly select an image from the data bank as $T _ { s }$ . Though this strategy is successful, their perturbations are clearly perceptible. Alternatively, we can randomly select $T _ { s }$ from the adversarial target class. This strategy produces less perceptible perturbations compared to the random $T _ { s }$ method as we are extracting a texture from the known target class. A better strategy to select $T _ { s }$ is to find a target class image that lies closest to the victim image in the feature space using nearest neighbors. This strategy is sensible as we assure our victim image has similar feature statistics as our target image. Consequently, minimizing gram matrices is easier and our attack generates more natural looking images (see Fig. 5).
103
+
104
+ For texture transfer, we extract cross-layer statistics in Eq. 4 from the R11, R21, R31, R41, and R51 of a pretrained VGG19. We optimize our objective (Eq. 3) using an L-BFGS (Liu & Nocedal (1989)) optimizer. tAdv attacks are sensitive and if not controlled well, images get transformed into artistic images. Since we do not have any constraints over the perturbation norm, it is necessary to decide when to stop the texture transfer procedure. For a successful attack (images look realistic), we limit our L-BFGS to fixed number of small steps and perform two set of experiments: one with only one iteration or round of L-BFGS for 14 steps and another with three iterations of 14 steps. For the three iterations setup, after every iteration, we look at the confidence of our target class and stop if the confidence is greater than 0.9.
105
+
106
+ Texture and Cross-Entropy Weights. Empirically, we found setting $\alpha$ to be in the range [150, 1000] and $\beta$ in the range $\left[ 1 0 ^ { - 4 } , 1 0 ^ { - 3 } \right]$ to be successful and also produce less perceptible tAdv examples. The additional cross-entropy based adversarial objective $J _ { a d v }$ helps our optimization. We ensure large flow of gradients is from the texture loss and they are sufficiently larger than the adversarial crossentropy objective. The adversarial objective also helps in transforming victim image to adversarial without stylizing the image. All our tabulated results are shown for one iteration, $\alpha = 2 5 0$ and $\beta = 1 0 ^ { - 3 }$ , unless otherwise stated. We use the annotation $\mathbf { t A d v } _ { \alpha } ^ { i t e r }$ for the rest of the paper to denote the texture method that we are using.
107
+
108
+ <table><tr><td colspan="2">Model</td><td>R50</td><td>D121</td><td>VGG19</td></tr><tr><td colspan="2">Accuracy</td><td>76.15</td><td>74.65</td><td>74.24</td></tr><tr><td rowspan="5">seecss Aarea</td><td>cAdv1</td><td>99.72</td><td>99.89</td><td>99.89</td></tr><tr><td>cAdv4</td><td>99.78</td><td>99.83</td><td>100.00</td></tr><tr><td>tAdv250</td><td>97.99</td><td>99.72</td><td>99.50</td></tr><tr><td>tAdv500</td><td>99.27</td><td>99.83</td><td>99.83</td></tr></table>
109
+
110
+ # (a) Whitebox Target Attack Success Rate
111
+
112
+ <table><tr><td>Method</td><td>Model</td><td>R50</td><td>D121</td><td>VGG19</td></tr><tr><td rowspan="3">Kurakin et al. (2016) Carlini&amp;Wagner (2017) Xiao et al. (2018b)</td><td>R50</td><td>100.00</td><td>17.33</td><td>12.95</td></tr><tr><td>R50</td><td>98.85</td><td>16.50</td><td>11.00</td></tr><tr><td>R50</td><td>100</td><td>5.23</td><td>8.90</td></tr><tr><td rowspan="3">cAdv4</td><td>R50</td><td>99.83</td><td>28.56</td><td>31.00</td></tr><tr><td>D121</td><td>18.13</td><td>99.83</td><td>29.43</td></tr><tr><td>VGG19</td><td>22.94</td><td>26.39</td><td>100.00</td></tr><tr><td rowspan="3">tAdv250</td><td>R50</td><td>99.00</td><td>24.51</td><td>34.84</td></tr><tr><td>D121</td><td>21.16</td><td>99.83</td><td>32.56</td></tr><tr><td>VGG19</td><td>20.21</td><td>24.40</td><td>99.89</td></tr></table>
113
+
114
+ # (b) Transferability
115
+
116
+ Table 1: Our attacks are highly successful on ResNet50 (R50), DenseNet121 (D121) and VGG19. In (a), for cAdv, we show results for $k = \{ 1 , 4 \}$ when attacked with 50 hints. For tAdv we show results for $\alpha = \{ 2 5 0 , 5 0 0 \}$ and $\beta = 0 . 0 0 1$ . In (b) We show the transferability of our attacks. We attack models from the column and test them on models from the rows.
117
+
118
+ Control over Texture. The amount of texture that gets added to our victim image is controlled by the texture weight coefficient $( \alpha )$ . Increasing texture weights improves attack success rate at the cost of noticeable perturbation. When compared to within-layer statistics, the cross-layer statistics that we use are not only better at extracting texture, it is also easier to control the texture weight.
119
+
120
+ # 4 EXPERIMENTAL RESULTS
121
+
122
+ In this section, we evaluate the two proposed attack methods both quantitatively, via attack success rate under different settings, and qualitatively, based on interesting case studies. We conduct our experiments on ImageNet Deng et al. (2009) by randomly selecting images from 10 sufficiently different classes predicted correctly for the classification attack.
123
+
124
+ We use a pretrained ResNet 50 classifier (He et al. (2016)) for all our methods. DenseNet 121 and VGG 19 (Huang et al.; Simonyan & Zisserman (2014)) are used for our transferability analysis.
125
+
126
+ # 4.1 cADV ATTACK
127
+
128
+ cAdv achieves high targeted attack success rate by adding realistic color perturbation. Our numbers in Table 1 and Table 2 also reveal that cAdv examples with larger color changes (consequently more color diversity) are more robust against transferability and adversarial defenses. However, these big changes are found to be slightly less realistic from our user study (Table 2, Table 4).
129
+
130
+ Smooth cAdv perturbations. Fig. 8 in our Appendix shows interesting properties of the adversarial colors. We observe that cAdv perturbations are locally smooth and are relatively low-frequency. This is different from most adversarial attacks that generate high-frequency noise-like perturbations. This phenomenon can be explained by the observation that colors are usually smooth within object boundaries. The pretrained colorization model will thus produce smooth, low-frequency adversarial colors that conform to object boundaries.
131
+
132
+ Importance of color in classification. From Fig. 2, we can compare how different target class affects our colorization results if we relax our constraints on colors (cAdv on Network Weights, 0 hints). In many cases, the images contain strong colors that are related to the target class. In the case of golf-cart, we get a green tint over the entire image. This can push the target classifier to misclassify the image as green grass is usually overabundant in benign golf-cart images. Fig. 2b shows our attack on an image of a car to tench (a type of fish). We observe that the gray road turned blue and that the colors are tinted. We can hypothesize that the blue colors and the tint fooled the classifier into thinking the image is a tench in the sea.
133
+
134
+ The colorization model is originally trained to produce natural colorization that conforms to object boundaries. By adjusting its parameters, we are able to produce such large and abnormal color change that is impossible with our attack on hints and mask. These colors, however, show us some evidence that colors play a stronger role in classification than we thought. We reserve the exploration of this observation for future works.
135
+
136
+ While this effect (strong color correlation to target class) is less pronounced for our attack on hints and mask, for all cAdv methods, we observe isoluminant color blobs. Isoluminant colors are characterized
137
+
138
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Res50</td><td rowspan="2">JPEG75</td><td colspan="5">Feature Squeezing</td><td rowspan="2">Res152</td><td rowspan="2">Adv Res152</td><td rowspan="2">User Pref.</td></tr><tr><td>4-bit</td><td>5-bit</td><td>2x2</td><td>3x3</td><td>11-3-4</td></tr><tr><td>Kurakin et al. (2016)</td><td>100</td><td>12.73</td><td>28.62</td><td>86.66</td><td>34.28</td><td>21.56</td><td>29.28</td><td>1.08</td><td>1.38</td><td>0.506</td></tr><tr><td>Carlini &amp;Wagner (2017)</td><td>99.85</td><td>11.50</td><td>12.00</td><td>30.50</td><td>22.00</td><td>14.50</td><td>18.50</td><td>1.08</td><td>1.38</td><td>0.497</td></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td>1.20</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td></td></tr><tr><td>Xiao et al. (2018b)</td><td>100</td><td>17.61</td><td>22.51</td><td>29.26</td><td>28.71</td><td>23.51</td><td>26.67</td><td>4.13</td><td>1.39</td><td>0.470</td></tr><tr><td>cAdv1</td><td>100</td><td>52.33</td><td>47.78</td><td>76.17</td><td>36.28</td><td>50.50</td><td>61.95</td><td>12.06</td><td>11.62</td><td>0.427</td></tr><tr><td>cAdv2</td><td>99.89</td><td>46.61</td><td>42.78</td><td>72.56</td><td>34.28</td><td>46.45</td><td>59.00</td><td>17.39</td><td>19.4</td><td>0.437</td></tr><tr><td>cAdv4</td><td>99.83</td><td>42.61</td><td>38.39</td><td>69.67</td><td>34.34</td><td>40.78</td><td>54.62</td><td>14.13</td><td>12.5</td><td>0.473</td></tr><tr><td>cAdv8</td><td>99.81</td><td>38.22</td><td>36.62</td><td>67.06</td><td>31.67</td><td>37.67</td><td>49.17</td><td>6.52</td><td>10.04</td><td>0.476</td></tr><tr><td>tAdv250</td><td>99.00</td><td>32.89</td><td>62.79</td><td>89.74</td><td>54.94</td><td>38.92</td><td>40.57</td><td>10.9</td><td>2.10</td><td>0.433</td></tr><tr><td>tAdv250</td><td>100</td><td>36.33</td><td>67.68</td><td>94.11</td><td>58.92</td><td>42.82</td><td>44.56</td><td>15.21</td><td>4.6</td><td>0.425</td></tr><tr><td>tAdv1000</td><td>99.88</td><td>31.49</td><td>52.69</td><td>90.52</td><td>51.24</td><td>34.85</td><td>39.68</td><td>19.12</td><td>5.59</td><td>0.412</td></tr><tr><td>tAdv1000</td><td>100</td><td>35.23</td><td>61.40</td><td>93.18</td><td>56.31</td><td>39.66</td><td>45.59</td><td>22.28</td><td>6.94</td><td>0.406</td></tr></table>
139
+
140
+ Table 2: Comparison against defense models. Misclassification rate after passing different adversarial examples through the defense models (higher means the attack is stronger). All attacks are performed on ResNet50 with whitebox attack. The highest attack success rate is in bold. We also report the user preference scores from AMT for each attack (last column).
141
+
142
+ by a change in color without a corresponding change in luminance. As most color changes occur along edges in natural images, it is likely that classifiers trained on ImageNet have never seen isoluminant colors. This suggests that cAdv might be exploiting isoluminant colors to fool classifiers.
143
+
144
+ # 4.2 tADV ATTACK
145
+
146
+ tAdv successfully fools the classifiers with a very small weighted adversarial cross-entropy objective $( \beta )$ when combined with texture loss, while remaining realistic to humans. As shown in Table 1, our attacks are highly successful on white-box attacks tested on three different models with the nearest neighbor texture transfer approach. We also show our attacks are more transferable to other models. In our Appendix, we show ablation results for tAdv attacks along with other strategies that we used for generating tAdv adversarial examples.
147
+
148
+ Structured tAdv Perturbations. Since we extract features across different layers of VGG, the tAdv perturbations follow a textural pattern. They are more structured and organized when compared to others. Our tAdv perturbations are big when compared with existing attack methods in ${ \mathcal { L } } _ { p }$ norm. They are of high-frequency and yet imperceptible (see Fig. 1 and Fig. 8).
149
+
150
+ Importance of Texture in Classification. Textures are crucial descriptors for image classification and Imagenet trained models can be exploited by altering the texture. Their importance is also shown in the recent work from Geirhos et al. (2018). Our results also shows that even with a small or invisible change in the texture field can break the current state of the art classifiers.
151
+
152
+ # 4.3 DEFENSE AND TRANSFERABILITY ANALYSIS
153
+
154
+ We test all our attacks and other existing methods with images attacked from Resnet50. We evaluate them on three defenses – JPEG defense (Das et al., 2017), feature squeezing (Xu et al., 2017) and adversarial training. By leveraging JPEG compression and decompression, adversarial noise may be removed. We tested our methods against JPEG compression of 75. Feature squeezing is a family of simple but surprisingly effective strategies, including reducing color bit depth and spatial smoothing. Adversarial training has been shown as an effective but costly method to defend against adversarial attacks. Mixing adversarial samples into training data of a classifier improves its robustness without affecting the overall accuracy. We were able to obtain an adversarially pretrained Resnet152 model on ImageNet dataset and hence we tested our Resnet50 attacked images with this model.
155
+
156
+ Robustness. In general, our attacks are more robust to the considered defenses and transferable for targeted attacks. For cAdv, there is a trade-off between more realistic colors (using more hints and sampling from more clusters) and attack robustness. From Table 1 and 2, we show that as we progressively use more clusters, our transferability and defense numbers drop. A similar trend is observed with the change in the number of hints. cAdv is robust to JPEG defense and adversarial training because of their large and spatially smooth perturbations. For tAdv, increasing texture weight $( \alpha )$ does not necessarily perform well with the defense even though it increases attack success rate, but increasing texture flow with more iterations improves attack’s robustness against defenses.
157
+
158
+ # 5 HUMAN PERCEPTUAL STUDIES
159
+
160
+ To quantify how realistic tAdv and cAdv examples are, we conducted a user study on Amazon Mechanical Turk (AMT). We follow the same procedure as described in (Zhang et al., 2016; Xiao et al., 2018b). For each attack, we choose the same 200 adversarial images and their corresponding benign ones. During each trial, one random adversarial-benign pair appears for three seconds and workers are given five minutes to identify the realistic one. Each attack has 600 unique pairs of images and each pair is evaluated by at least 10 unique workers. We restrict biases in this process by allowing each unique user up to 5 rounds of trials and also ignore users who complete the study in less than 30 seconds. In total, 598 unique workers completed at least one round of our user study. For each image, we can then calculate the user preference score as the number of times it is chosen divided by the number of times it is displayed. 0.5 represents that users are unable to distinguish if the image is fake. For cAdv and tAdv, user preferences averages at 0.476 and 0.433 respectively, indicating that workers have a hard time distinguishing them. The user preferences for all attacks are summarized in Table 2 and their comparison with ${ \mathcal { L } } _ { p }$ norm is in Table 4 and Table 5.
161
+
162
+ # 6 ATTACKING CAPTIONING MODEL
163
+
164
+ Our methods are general and can be easily adapted for other learning tasks. As proof of concept, we test our attacks against image captioning task. Image captioning is the task of generating a sequence of word description for an image. The popular architecture for captioning is a Long-ShortTerm-Memory (LSTM) (Hochreiter & Schmidhuber, 1997) based models (Karpathy & Fei-Fei, 2015; Wang et al., 2017). Recently, (Aneja et al., 2018) proposed a convolutional based captioning model for a fast and accurate caption generation. This convolutional based approach does not suffer from the commonly known problems of vanishing gradients and overly confident predictions of LSTM network. Therefore, we choose to attack the current state of the art convolutional captioning model. We randomly selected images from MSCOCO (Lin et al., 2014) for image captioning attack.
165
+
166
+ Attacking captioning models is harder than attacking classifiers when the goal is to change exactly one word in the benign image’s caption unlike pixel based attacks (Chen et al., 2017; Xu et al., 2019). We show that our attacks are successful and have no visible artifacts even for this challenging task. In Fig. 6, we change the second word of the caption to dog while keeping the rest of the caption the same. This is a challenging targeted attack because, in many untargeted attacks, the resulted captions do not make sense. More examples are in our Appendix.
167
+
168
+ ![](images/6a956e0df34f6db0ac9fd6dbff2b885fc1fd389ac877e7c3c15a104e82cdbac7.jpg)
169
+ Figure 6: Captioning attack. Top: cAdv; Bottom: tAdv. We attack the second word to dog and show the corresponding change in attention mask of that word. More examples in Appendix.
170
+
171
+ Adversarial Cross-Entropy Objective for Captioning. Let $t$ be the target caption, $w$ denote the word position of the caption, $\mathcal { F }$ for the captioning model, $I _ { v }$ for the victim image and $J _ { a d v }$ for the cross-entropy loss
172
+
173
+ $$
174
+ L _ { c a p t } ^ { \mathcal { A } } = \sum _ { w } J _ { a d v } ( ( \mathcal { F } ( I _ { v } ) ) _ { w } , t _ { w } )
175
+ $$
176
+
177
+ For cAdv, we give all color hints and optimize to get an adversarial colored image to produce target caption. For tAdv, we add Eqn 6 to Eqn 4 to optimize the image. We select $T _ { S }$ as the nearest neighbor of the victim image from the ones in the adversarial target class using ImageNet dataset. We stop our attack once we reach the target caption and the caption does not change in consecutive iterations. Note we do not change the network weights, we only optimize hints and mask (for cAdv) or the victim image (for tAdv) to achieve our target caption.
178
+
179
+ # 7 RELATED WORK
180
+
181
+ Here we briefly summarize existing unrestricted and semantic adversarial attacks. Xiao et al. (2018b) proposed geometric or spatial distortion of pixels in image to create adversarial examples. They distort the input image by optimizing pixel flow instead of pixel values to generate adversarial examples. While this attack leads to “natural” looking adversarial examples with large $\mathcal { L } _ { \infty }$ norm, it does not take image semantics into account. Song et al (2018) and Dunn et al. (2019) considered GANs for adversarial attacks. This attack is unrestricted in ${ \mathcal { L } } _ { p }$ norm but they are restricted to simple datasets as it involves training GANs, which have been known to be unstable and computationally intensive for complex datasets like ImageNet (Karras et al., 2017; Brock et al., 2018).
182
+
183
+ Hosseini & Poovendran (2018), changes the hue & saturation of an image randomly to create adversarial examples. It is similar to cAdv as they both involve changing colors, however, their search space is limited to two dimensions and their images are unrealistic, Appendix (Fig. 10). Also, while this method has a non-trivial untargeted attack success rate, it performs extremely poorly for targeted attacks $( 1 . 2 0 \%$ success rate in our own experiments on ImageNet). Our work is also related to Joshi et al. (2019) and Qiu et al. (2019), who manipulate images conditioned on face dataset attributes like glasses, beard for their attacks. These work focuses on changing single image visual attribute and are conditionally dependent. Our work focuses on changing visual semantic descriptors to misclassify images and are not conditioned to any semantic attributes.
184
+
185
+ <table><tr><td>Method</td><td>Semantic Based</td><td></td><td>Unrestricted Photorealistic</td><td>Explainable (eg color affinity)</td><td>Complex Dataset</td><td>Caption Attack</td></tr><tr><td>Kurakin et al. (2016)</td><td>X</td><td>xx&lt;&lt;√</td><td>&lt;&lt;xx&gt;</td><td>X</td><td>√</td><td>X</td></tr><tr><td>Carlini &amp; Wagner (2017)</td><td>X</td><td></td><td></td><td></td><td>√</td><td></td></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Song et al (2018)</td><td>X</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Xiao et al. (2018b)</td><td>X</td><td></td><td></td><td>xxx&gt;</td><td>xx&gt;</td><td></td></tr><tr><td>cAdv (ours)</td><td>√</td><td>√</td><td>√</td><td>√</td><td>√</td><td>xxxx/</td></tr><tr><td>tAdv (ours)</td><td>√</td><td>√</td><td></td><td>√</td><td>√</td><td>√</td></tr></table>
186
+
187
+ Table 3: Summary of the difference in our work compared to previous work. Unlike previous attack methods, our attacks are unbounded, semantically motivated, realistic, highly successful, and scales to more complex datasets and other ML tasks. They are also robust against tested defenses.
188
+
189
+ # 8 CONCLUSION
190
+
191
+ Our proposed two novel unrestricted semantic attacks shed light on the role of texture and color fields in influencing DNN’s predictions. They not only consistently fool human subjects but in general are harder to defend against. We hope by presenting our methods, we encourage future studies on unbounded adversarial attacks, better metrics for measuring perturbations, and more sophisticated defenses.
192
+
193
+ # ACKNOWLEDGEMENTS
194
+
195
+ We thank Chaowei Xiao for sharing their code to compare our methods with Xiao et al. (2018b) and helping us setup the user study. We also thank Tianyuan Zhang for providing the AdvRes152 pretrained model. This work was supported by NSF Grant No. 1718221 and ONR MURI Award N00014-16-1-2007.
196
+
197
+ # REFERENCES
198
+
199
+ Jyoti Aneja, Aditya Deshpande, and Alexander G Schwing. Convolutional image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5561–5570, 2018.
200
+
201
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
202
+
203
+ Tom B Brown, Nicholas Carlini, Chiyuan Zhang, Catherine Olsson, Paul Christiano, and Ian Goodfellow. Unrestricted adversarial examples. arXiv preprint arXiv:1809.08352, 2018.
204
+
205
+ Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017.
206
+
207
+ Hongge Chen, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, and Cho-Jui Hsieh. Attacking visual language grounding with adversarial examples: A case study on neural image captioning. arXiv preprint arXiv:1712.02051, 2017.
208
+
209
+ Nilaksh Das, Madhuri Shanbhogue, Shang-Tse Chen, Fred Hohman, Li Chen, Michael E Kounavis, and Duen Horng Chau. Keeping the bad guys out: Protecting and vaccinating deep learning with jpeg compression. arXiv preprint arXiv:1705.02900, 2017.
210
+
211
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
212
+
213
+ Aditya Deshpande, Jiajun Lu, Mao-Chuang Yeh, Min Jin Chong, and David A Forsyth. Learning diverse image colorization. In CVPR, pp. 2877–2885, 2017.
214
+
215
+ Isaac Dunn, Tom Melham, and Daniel Kroening. Generating realistic unrestricted adversarial inputs using dual-objective gan training. arXiv preprint arXiv:1905.02463, 2019.
216
+
217
+ Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 341–346. ACM, 2001.
218
+
219
+ Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 262–270, 2015.
220
+
221
+ Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2414–2423, 2016.
222
+
223
+ Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
224
+
225
+ 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, 2014a.
226
+
227
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b.
228
+
229
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
230
+
231
+ Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6): 82–97, 2012.
232
+
233
+ Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
234
+
235
+ Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1614–1619, 2018.
236
+
237
+ Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks.
238
+
239
+ Xun Huang and Serge J Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, pp. 1510–1519, 2017.
240
+
241
+ Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. 2017.
242
+
243
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In European Conference on Computer Vision, 2016.
244
+
245
+ Ameya Joshi, Amitangshu Mukherjee, Soumik Sarkar, and Chinmay Hegde. Semantic adversarial attacks: Parametric transformations that fool deep classifiers. arXiv preprint arXiv:1904.08489, 2019.
246
+
247
+ Daniel Kang, Yi Sun, Dan Hendrycks, Tom Brown, and Jacob Steinhardt. Testing robustness against unforeseen adversaries. arXiv preprint arXiv:1908.08016, 2019.
248
+
249
+ Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3128–3137, 2015.
250
+
251
+ Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
252
+
253
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
254
+
255
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
256
+
257
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. pp. 1097–1105, 2012.
258
+
259
+ Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016. URL http://dblp.uni-trier.de/db/journals/corr/corr1607. html#KurakinGB16.
260
+
261
+ Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. 17(39):1–40, 2016.
262
+
263
+ Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In Advances in Neural Information Processing Systems, pp. 386–396, 2017.
264
+
265
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pp. 740–755. Springer, 2014.
266
+
267
+ Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45(1-3):503–528, 1989.
268
+
269
+ Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016.
270
+
271
+ Haonan Qiu, Chaowei Xiao, Lei Yang, Xinchen Yan, Honglak Lee, and Bo Li. Semanticadv: Generating adversarial examples via attribute-conditional image editing. arXiv preprint arXiv:1906.07927, 2019.
272
+
273
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
274
+
275
+ Yang Song et al. Constructing unrestricted adversarial examples with generative models. 2018.
276
+
277
+ Liwei Wang, Alexander Schwing, and Svetlana Lazebnik. Diverse and accurate image description using a variational auto-encoder with an additive gaussian encoding space. In Advances in Neural Information Processing Systems, pp. 5756–5766, 2017.
278
+
279
+ Chaowei Xiao, Bo Li, Jun-Yan Zhu, Warren He, Mingyan Liu, and Dawn Song. Generating adversarial examples with adversarial networks. arXiv preprint arXiv:1801.02610, 2018a.
280
+
281
+ Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. arXiv preprint arXiv:1801.02612, 2018b.
282
+
283
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
284
+
285
+ Yan Xu, Baoyuan Wu, Fumin Shen, Yanbo Fan, Yong Zhang, Heng Tao Shen, and Wei Liu. Exact adversarial attack to image captioning via structured output learning with latent variables. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4135–4144, 2019.
286
+
287
+ Mao-Chuang Yeh, Shuai Tang, Anand Bhattad, Chuhang Zou, and David Forsyth. Improving style transfer with calibrated metrics. arXiv preprint arXiv:1910.09447, 2019.
288
+
289
+ Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pp. 649–666. Springer, 2016.
290
+
291
+ Richard Zhang, Jun-Yan Zhu, Phillip Isola, Xinyang Geng, Angela S Lin, Tianhe Yu, and Alexei A Efros. Real-time user-guided image colorization with learned deep priors. arXiv preprint arXiv:1705.02999, 2017.
292
+
293
+ # A APPENDIX
294
+
295
+ # A.1 OTHER DETAILS ON HUMAN STUDY
296
+
297
+ We also chose BIM (Kurakin et al., 2016) and CW (Carlini & Wagner, 2017) for comparing our perturbations. Since these attacks are known to have low ${ \mathcal { L } } _ { p }$ norm, we designed an aggressive version of BIM by relaxing its $\mathcal { L } _ { \infty }$ bound to match the norm of our attacks. We settled with two aggressive versions of BIM with average $\mathcal { L } _ { \infty } = \{ 0 . 2 1 , 0 . 3 4 7 \}$ , which we refer to as $\mathrm { B I M _ { 0 . 2 1 } }$ , $\mathrm { B I M _ { 0 . 3 4 } }$ . The average user preferences for BIM drops drastically from 0.497 to 0.332 when we relax the norm to $\mathrm { B I M _ { 0 . 3 4 } }$ ; the decrease in user preferences for tAdv (0.433 to 0.406) and cAdv (0.476 to 0.437) is not significant. In Fig. 7, we plot a density plot of $\mathcal { L } _ { \infty }$ vs user preference scores.
298
+
299
+ ![](images/d7f388370788c4cbfe65811264c0744fc1d3e1e06e6b15bc94cfad5c0b602a11.jpg)
300
+ Figure 7: Density Plot. Our methods achieve large $\mathcal { L } _ { \infty }$ norm perturbations without notable reduction in user preference. Each plot is a density plot between perturbation ( $\scriptstyle { \mathcal { L } } _ { \infty }$ norm) on $\mathbf { X }$ axis and $P r$ (user prefers adversarial image) on Y axis. For ideal systems, the density would be a concentrated horizontal line at 0.5. All plots are on the same set of axes. On the left, plots for three baseline methods (Fig a - Fig c). Note the very strong concentration on small norm perturbations, which users like. Right 4 plots shows our methods (Fig d - Fig g). Note strong push into large norm regions, without loss of user preference.
301
+
302
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Lo L2 L8</td><td rowspan=1 colspan=1>Preference</td></tr><tr><td rowspan=1 colspan=1>cw</td><td rowspan=1 colspan=1>0.587 0.026 0.054</td><td rowspan=1 colspan=1>0.506</td></tr><tr><td rowspan=1 colspan=1>BIM0.051</td><td rowspan=1 colspan=1>0.826 0.030 0.051</td><td rowspan=2 colspan=1>0.4970.3550.332</td></tr><tr><td rowspan=1 colspan=1>BIM0.21BIM0.347</td><td rowspan=1 colspan=1>0.893 0.118 0.210.892 0.119 0.347</td></tr><tr><td rowspan=2 colspan=1>cAdv2cAdv4cAdv8</td><td rowspan=1 colspan=1>0.910 0.098 0.489</td><td rowspan=2 colspan=1>0.4370.4730.476</td></tr><tr><td rowspan=1 colspan=1>0.898 0.071 0.4480.896 0.059 0.425</td></tr><tr><td rowspan=4 colspan=1>tAdv250tAdvi000</td><td rowspan=1 colspan=1>0.891 0.041 0.198</td><td rowspan=1 colspan=1>0.433</td></tr><tr><td rowspan=1 colspan=1>0.931 0.056 0.237</td><td rowspan=1 colspan=1>0.412</td></tr><tr><td rowspan=1 colspan=1>0.916 0.061 0.258</td><td rowspan=1 colspan=1>0.425</td></tr><tr><td rowspan=1 colspan=1>0.946 0.08 0.315</td><td rowspan=1 colspan=1>0.406</td></tr></table>
303
+
304
+ Table 4: User Study. User preference score and ${ \mathcal { L } } _ { p }$ norm of perturbation for different attacks. cAdv and tAdv are imperceptible for humans (score close to 0.5) even with very big ${ \mathcal { L } } _ { p }$ norm perturbation.
305
+
306
+ <table><tr><td>Attack</td><td></td><td>tarantula</td><td>merganser</td><td>nautilus</td><td>hyena</td><td>beacon</td><td>golfcart</td><td>photocopier</td><td>umbrella</td><td>pretzel</td><td>sandbar</td><td>Mean</td></tr><tr><td rowspan="5">BIM</td><td>Lo</td><td>0.82</td><td>0.81</td><td>0.80</td><td>0.88</td><td>0.80</td><td>0.79</td><td>0.86</td><td>0.80</td><td>0.85</td><td>0.84</td><td>0.83</td></tr><tr><td>L2</td><td>0.05</td><td>0.02</td><td>0.03</td><td>0.04</td><td>0.02</td><td>0.01</td><td>0.04</td><td>0.02</td><td>0.02</td><td>0.04</td><td>0.03</td></tr><tr><td>L8</td><td>0.07</td><td>0.04</td><td>0.06</td><td>0.06</td><td>0.04</td><td>0.03</td><td>0.07</td><td>0.04</td><td>0.04</td><td>0.06</td><td>0.05</td></tr><tr><td>Preference</td><td>0.49</td><td>0.75</td><td>0.44</td><td>0.67</td><td>0.48</td><td>0.48</td><td>0.27</td><td>0.39</td><td>0.38</td><td>0.63</td><td>0.50</td></tr><tr><td>L0</td><td>0.54</td><td>0.55</td><td>0.52</td><td>0.77</td><td>0.48</td><td>0.42</td><td>0.70</td><td>0.48</td><td>0.69</td><td>0.71</td><td>0.59</td></tr><tr><td rowspan="5">CW</td><td>L</td><td>0.05</td><td>0.01</td><td>0.03</td><td>0.03</td><td>0.02</td><td>0.01</td><td>0.04</td><td>0.01</td><td>0.02</td><td>0.04</td><td>0.03</td></tr><tr><td>L</td><td>0.08</td><td>0.04</td><td>0.06</td><td>0.07</td><td>0.04</td><td>0.03</td><td>0.07</td><td>0.04</td><td>0.05</td><td>0.06</td><td>0.05</td></tr><tr><td>Preference</td><td>0.51</td><td>0.68</td><td>0.43</td><td>0.59</td><td>0.52</td><td>0.51</td><td>0.39</td><td>0.40</td><td>0.42</td><td>0.62</td><td>0.51</td></tr><tr><td></td><td>0.94</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>L L</td><td>0.07</td><td>0.95</td><td>0.91</td><td>0.94 0.06</td><td>0.89</td><td>0.94</td><td>0.89</td><td>0.91</td><td>0.94</td><td>0.85</td><td>0.92</td></tr><tr><td rowspan="6">tAdv250</td><td>L8</td><td></td><td>0.08</td><td>0.08</td><td></td><td>0.05</td><td>0.06</td><td>0.03</td><td>0.05</td><td>0.07</td><td>0.05</td><td>0.06</td></tr><tr><td></td><td>0.28</td><td>0.31</td><td>0.30</td><td>0.31</td><td>0.22</td><td>0.27</td><td>0.18</td><td>0.25</td><td>0.27</td><td>0.19</td><td>0.26</td></tr><tr><td>Preference</td><td>0.39</td><td>0.58</td><td>0.43</td><td>0.53</td><td>0.46</td><td>0.35</td><td>0.25</td><td>0.40</td><td>0.33</td><td>0.54</td><td>0.43</td></tr><tr><td>L0</td><td>0.90</td><td>0.90</td><td>0.88</td><td>0.90</td><td>0.90</td><td>0.90</td><td>0.90</td><td>0.89</td><td>0.93</td><td>0.88</td><td>0.90</td></tr><tr><td>L</td><td>0.06</td><td>0.06</td><td>0.07</td><td>0.05</td><td>0.08</td><td>0.07</td><td>0.08</td><td>0.08</td><td>0.09</td><td>0.06</td><td>0.07</td></tr><tr><td>L8 Preference</td><td>0.36 0.46</td><td>0.44 0.65</td><td>0.41 0.46</td><td>0.31 0.58</td><td>0.48 0.45</td><td>0.51 0.48</td><td>0.55 0.30</td><td>0.56 0.43</td><td>0.46 0.35</td><td>0.39 0.59</td><td>0.45 0.47</td></tr></table>
307
+
308
+ Table 5: Class wise ${ \mathcal { L } } _ { p }$ norm and user preference breakdown. Users are biased and pick a few classes quite often (merganser, sandbar), and do not like a few classes (photocopier) over others.
309
+
310
+ ![](images/0a960c25a339bfbdfd4e118211a67d2ceac05684f40c127d8920823ba900ff03.jpg)
311
+ Figure 8: Perturbation comparisons. Images are attacked from tarantula to beacon, golf cart, nautilus, photocopier, pretzel from left to right. Our perturbations (cAdv and tAdv) are large, structured and have spatial patterns when compared with other attacks. Perturbations from cAdv are low-frequency and locally smooth while perturbations from tAdv are primarily high-frequency and structured. Note gray color indicates no perturbations.
312
+
313
+ A.2 ADDITIONAL RESULTS
314
+
315
+ <table><tr><td colspan="2">Model</td><td>Resnet50</td><td>Dense121</td><td>VGG19</td></tr><tr><td colspan="2">Accuracy</td><td>76.15</td><td>74.65</td><td>74.24</td></tr><tr><td rowspan="7">Sseeess Arkea</td><td>Random Ts</td><td>99.67</td><td>99.72</td><td>96.16</td></tr><tr><td>Random Target Ts</td><td>99.72</td><td>99.89</td><td>99.94</td></tr><tr><td>Nearest Target Ts</td><td>97.99</td><td>99.72</td><td>99.50</td></tr><tr><td>cAdv4 25 hints</td><td>99.78</td><td>99.83</td><td>99.93</td></tr><tr><td>cAdv4 50 hints</td><td>99.78</td><td>99.83</td><td>100.00</td></tr><tr><td>cAdv4 100 hints</td><td>99.44</td><td>99.50</td><td>99.93</td></tr></table>
316
+
317
+ Whitebox target attack success rate. Our attacks are highly successful on different models across all strategies. tAdv results are for $\alpha = 2 5 0$ , $\beta = 1 0 ^ { - 3 }$ and iter $= 1$ .
318
+
319
+ Table 6: Ablation Studies.
320
+
321
+ <table><tr><td>α β</td><td>250</td><td>500</td><td>750</td><td>1000</td></tr><tr><td>0</td><td>25.00</td><td>99.61</td><td>98.55</td><td>95.92</td></tr><tr><td>10-4</td><td>99.88</td><td>99.61</td><td>98.55</td><td>95.92</td></tr><tr><td>10-3</td><td>97.99</td><td>99.27</td><td>99.66</td><td>99.50</td></tr><tr><td>10-2</td><td>96.26</td><td>95.42</td><td>96.32</td><td>96.59</td></tr></table>
322
+
323
+ tAdv ablation study. Whitebox target success rate with nearest target $T _ { s }$ (texture source). In columns, we have increasing texture weight $( \alpha )$ and in rows, we have increasing adversarial cross-entropy weight $( \beta )$ . All attacks are done on Resnet50.
324
+
325
+ ![](images/338ce3b799792303bb653b8fdcfc46b5d5c524075d602fed70070bccd9adb34d.jpg)
326
+ Figure 9: Additional qualitative examples for controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to golf-cart. Even numbered rows visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the location we sample hints from. Sampling hints across more clusters gives less color variety.
327
+
328
+ ![](images/c5de302b9eb8610441b2904e8ef667e2c43474007fbdae082a0c017ff61d4dbb.jpg)
329
+ Figure 10: Images attacked with the method of (Hosseini & Poovendran, 2018) are not realistic, as these examples show. Compare Fig 12, showing results of our color attack. Similar qualitative results for CIFAR-10 are visible in Hosseini & Poovendran (2018).
330
+
331
+ ![](images/92288996c16f4cc7fda4076186b63e1a00ce1168d673775295b2b020c53eed77.jpg)
332
+ Figure 11: Additional qualitative examples for tAdv. Texture transferred from random images (row 1), random images from adversarial target class (row 2) and from the nearest neighbor of the victim image from the adversarial target class (row 3). All examples are misclassified from Merganser to Umbrella. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight $\alpha$ increases (left to right).
333
+
334
+ ![](images/c4db4a0b5a7776b50c75b3f1b22a265b4b7fe14078b1bff2faa5f499cec851d8.jpg)
335
+ Figure 12: Captioning attack. We attack the second word of each caption to {dog, bird} and show the corresponding change in attention mask of that word. For tAdv we use the nearest neighbor selection method and for cAdv we initialize with all groundtruth color hints.
336
+
337
+ ![](images/8c8fbb3896dd6b66b4180dcd97895bec534939a21f6e28428e484a34ea71d246.jpg)
338
+ Figure 13: Randomly sampled, semantically manipulated, unrestricted adversarial examples and their perturbations. (a) Adversarial examples generated by cAdv attacking Hints and mask with 50 hints. (c) Adversarial examples generated by tAdv with $\alpha = 2 5 0$ , $\beta = \bar { 1 0 } ^ { - 3 }$ and iter $= 1$ using nearest target $T _ { s }$ . (b) and (d) are their respective perturbations. Note that diagonal images are groundtruth images and gray pixels indicate no perturbation.
parse/train/Sye_OgHFwH/Sye_OgHFwH_content_list.json ADDED
@@ -0,0 +1,1811 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "UNRESTRICTED ADVERSARIAL EXAMPLES VIA SEMANTIC MANIPULATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 689,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anand Bhattad∗ Min Jin Chong∗ Kaizhao Liang Bo Li D. A. Forsyth ",
17
+ "bbox": [
18
+ 187,
19
+ 169,
20
+ 714,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "University of Illinois at Urbana-Champaign {bhattad2, mchong6, kl2, lbo, daf}@illinois.edu ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 598,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 250,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Machine learning models, especially deep neural networks (DNNs), have been shown to be vulnerable against adversarial examples which are carefully crafted samples with a small magnitude of the perturbation. Such adversarial perturbations are usually restricted by bounding their ${ \\mathcal { L } } _ { p }$ norm such that they are imperceptible, and thus many current defenses can exploit this property to reduce their adversarial impact. In this paper, we instead introduce “unrestricted” perturbations that manipulate semantically meaningful image-based visual descriptors – color and texture – in order to generate effective and photorealistic adversarial examples. We show that these semantically aware perturbations are effective against JPEG compression, feature squeezing and adversarially trained model. We also show that the proposed methods can effectively be applied to both image classification and image captioning tasks on complex datasets such as ImageNet and MSCOCO. In addition, we conduct comprehensive user studies to show that our generated semantic adversarial examples are photorealistic to humans despite large magnitude perturbations when compared to other attacks. ",
51
+ "bbox": [
52
+ 233,
53
+ 284,
54
+ 766,
55
+ 491
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 512,
66
+ 334,
67
+ 527
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Machine learning (ML), especially deep neural networks (DNNs) have achieved great success in various tasks, including image recognition (Krizhevsky et al., 2012; He et al., 2016), speech processing (Hinton et al., 2012) and robotics training (Levine et al., 2016). However, recent literature has shown that these widely deployed ML models are vulnerable to adversarial examples – carefully crafted perturbations aiming to mislead learning models (Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018b). The fast growth of DNNs based solutions demands in-depth studies on adversarial examples to help better understand potential vulnerabilities of ML models and therefore improve their robustness. ",
74
+ "bbox": [
75
+ 174,
76
+ 545,
77
+ 825,
78
+ 656
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "To date, a variety of different approaches has been proposed to generate adversarial examples (Goodfellow et al., 2014b; Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018a); and many of these attacks search for perturbation within a bounded ${ \\mathcal { L } } _ { p }$ norm in order to preserve their photorealism. However, it is known that the ${ \\mathcal { L } } _ { p }$ norm distance as a perceptual similarity metric is not ideal (Johnson et al., 2016; Isola et al., 2017). In addition, recent work show that defenses trained on ${ \\mathcal { L } } _ { p }$ bounded perturbation are not robust at all against new types of unseen attacks (Kang et al., 2019). Therefore, exploring diverse adversarial examples, especially those with “unrestricted\" magnitude of perturbation has acquired a lot of attention in both academia and industries (Brown et al., 2018). ",
85
+ "bbox": [
86
+ 174,
87
+ 664,
88
+ 825,
89
+ 775
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Recent work based on generative adversarial networks (GANs) (Goodfellow et al., 2014a) have introduced unrestricted attacks (Song et al, 2018). However, these attacks are limited to datasets like MNIST, CIFAR and CelebA, and are usually unable to scale up to bigger and more complex datasets such as ImageNet. Xiao et al. (2018b) directly manipulated spatial pixel flow of an image to produce adversarial examples without ${ \\mathcal { L } } _ { p }$ bounded constraints on the perturbation. However, the attack does not explicitly control visual semantic representation. More recently, Hosseini & Poovendran (2018) manipulated hue and saturation of an image to create adversarial perturbations. However, these examples are easily distinguishable by human and are also not scalable to complex datasets. ",
96
+ "bbox": [
97
+ 174,
98
+ 782,
99
+ 825,
100
+ 893
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/514af06a88a5eea15c6c9e8bc4ad6c3e460cdc30ee34f96f553dd4860d75f2bd.jpg",
107
+ "image_caption": [
108
+ "Figure 1: An overview of proposed attacks. Top: Colorization attack (cAdv); Bottom: Texture transfer attack (tAdv). Our attacks achieve high attack success rate via semantic manipulation without any constraints on the ${ \\mathcal { L } } _ { p }$ norm of the perturbation. Our methods are general and can be used for attacking both classifiers and captioners. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 192,
113
+ 98,
114
+ 794,
115
+ 310
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In this work, we propose unrestricted attack strategies that explicitly manipulate semantic visual representations to generate natural-looking adversarial examples that are “far” from the original image in tems of the ${ \\mathcal { L } } _ { p }$ norm distance. In particular, we manipulate color (cAdv) and texture (tAdv) to create realistic adversarial examples (see Fig 1). cAdv adaptively chooses locations in an image to change their colors, producing adversarial perturbation that is usually fairly substantial, while tAdv utilizes the texture from other images and adjusts the instance’s texture field using style transfer. ",
122
+ "bbox": [
123
+ 174,
124
+ 385,
125
+ 825,
126
+ 468
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "These semantic transformation-based adversarial perturbations shed light upon the understanding of what information is important for DNNs to make predictions. For instance, in one of our case studies, when the road is recolored from gray to blue, the image gets misclassified to tench (a fish) although a car remains evidently visible (Fig. 2b). This indicates that deep learning models can easily be fooled by certain large scale patterns. In addition to image classifiers, the proposed attack methods can be generalized to different machine learning tasks such as image captioning ( Karpathy & Fei-Fei (2015)). Our attacks can either change the entire caption to the target (Chen et al., 2017; Xu et al., 2019) or take on more challenging tasks like changing one or two specific target words from the caption to a target. For example, in Fig. 1, “stop sign” of the original image caption is changed to “cat sitting” and “umbrella is” for cAdv and tAdv respectively. ",
133
+ "bbox": [
134
+ 173,
135
+ 474,
136
+ 825,
137
+ 614
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "To ensure our “unrestricted\" semantically manipulated images are natural, we conducted extensive user studies with Amazon Mechanical Turk. We also tested our proposed attacks on several state of the art defenses. Rather than just showing the attacks break these defenses (better defenses will come up), we aim to show that cAdv and tAdv are able to produce new types of adversarial examples. Experiments also show that our proposed attacks are more transferable given their large and structured perturbations (Papernot et al., 2016). Our semantic adversarial attacks provide further insights about the vulnerabilities of ML models and therefore encourage new solutions to improve their robustness. ",
144
+ "bbox": [
145
+ 174,
146
+ 621,
147
+ 825,
148
+ 719
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "In summary, our contributions are: 1) We propose two novel approaches to generate “unrestricted\" adversarial examples via semantic transformation; 2) We conduct extensive experiments to attack both image classification and image captioning models on large scale datasets (ImageNet and MSCOCO); 3) We show that our attacks are equipped with unique properties such as smooth cAdv perturbations and structured tAdv perturbations. 4) We perform comprehensive user studies to show that when compared to other attacks, our generated adversarial examples appear more natural to humans despite their large perturbations; 5) We test different adversarial examples against several state of the art defenses and show that the proposed attacks are more transferable and harder to defend. ",
155
+ "bbox": [
156
+ 174,
157
+ 726,
158
+ 825,
159
+ 837
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 COLORIZATION ATTACK (cADV) ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 861,
170
+ 475,
171
+ 877
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Background. Image Colorization is the task of giving natural colorization to a grayscale image. This is an ill-posed problem as there are multiple viable natural colorizations given a single grayscale image. Deshpande et al. (2017) showed that diverse image colorization can be achieved by using an architecture that combines VAE (Kingma & Welling (2013)) and Mixture Density Network; while Zhang et al. (2017) demonstrated an improved and diverse image colorization by using input hints from users guided colorization process. ",
178
+ "bbox": [
179
+ 173,
180
+ 895,
181
+ 823,
182
+ 924
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "image",
188
+ "img_path": "images/b0804e3a762a7a2f503cf09b86cad9a05b95b04f732e4ddb2fde6c9dd3cdb46a.jpg",
189
+ "image_caption": [
190
+ "Figure 2: Class color affinity. Samples from unconstrained cAdv attacking network weights with zero hints provided. For (a) the ground truth (GT) class is pretzel; and for (b) the GT is car. These new colors added are commonly found in images from target class. For instance, green in Golfcart and blue sea in Tench images. "
191
+ ],
192
+ "image_footnote": [],
193
+ "bbox": [
194
+ 174,
195
+ 99,
196
+ 823,
197
+ 199
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "",
204
+ "bbox": [
205
+ 174,
206
+ 279,
207
+ 825,
208
+ 335
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "Our goal is to adversarially color an image by leveraging a pretrained colorization model. We hypothesize that it is possible to find a natural colorization that is adversarial for a target model (e.g., classifier or captioner) by searching in the color space. Since a colorization network learns to color natural colors that conform to boundaries and respect short-range color consistency, we can use it to introduce smooth and consistent adversarial noise with a large magnitude that looks natural to humans. This attack differs from common adversarial attacks which tend to introduce short-scale high-frequency artifacts that are minimized to be invisible for human observers. ",
215
+ "bbox": [
216
+ 173,
217
+ 342,
218
+ 825,
219
+ 440
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "We leverage Zhang et al. (2016; 2017) colorization model for our attack. In their work, they produce natural colorizations on ImageNet with input hints from the user. The inputs to their network consist of the L channel of the image in CIELAB color space $X _ { L } \\in \\mathbb { R } ^ { H \\times W \\times 1 }$ , the sparse colored input hints $X _ { a b } \\in \\mathbb { R } ^ { H \\times W \\times 2 }$ , and the binary mask $M \\in \\mathbb { B } ^ { \\hat { H } \\times W \\times 1 }$ , indicating the location of the hints. ",
226
+ "bbox": [
227
+ 173,
228
+ 445,
229
+ 825,
230
+ 502
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "cAdv Objectives. There are a few ways to leverage the colorization model to achieve adversarial objectives. We experimented with two main methods and achieved varied results. ",
237
+ "bbox": [
238
+ 174,
239
+ 508,
240
+ 820,
241
+ 537
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "Network weights. The straightforward approach of producing adversarial colors is to modify Zhang et al. (2017) colorization network, $\\mathcal { C }$ directly. To do so, we simply update $\\mathcal { C }$ by minimizing the adversarial loss objective ${ J } _ { a d v }$ , which in our case, is the cross entropy loss. $t$ represents target class and $\\mathcal { F }$ represents the victim network. ",
248
+ "bbox": [
249
+ 173,
250
+ 542,
251
+ 825,
252
+ 594
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "equation",
258
+ "img_path": "images/13b03bec04a0f0f782942344d9319b7b1f597bd062d0202a754f42ba3ae81e53.jpg",
259
+ "text": "$$\n\\boldsymbol { \\theta } ^ { * } = \\underset { \\boldsymbol { \\theta } } { \\arg \\operatorname* { m i n } } \\ J _ { a d v } ( \\mathcal { F } ( \\mathcal { C } ( \\boldsymbol { X _ { L } } , \\boldsymbol { X _ { a b } } , M ; \\boldsymbol { \\theta } ) ) , t )\n$$",
260
+ "text_format": "latex",
261
+ "bbox": [
262
+ 361,
263
+ 601,
264
+ 635,
265
+ 625
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "Hints and mask. We can also vary input hints $X _ { a b }$ and mask $M$ to produce adversarial colorizations. Hints provides the network with ground truth color patches that guides the colorization, while the mask provides its spatial location. By jointly varying both hints and mask, we are able to manipulate the output colorization. We can update the hints and mask as follows: ",
272
+ "bbox": [
273
+ 174,
274
+ 631,
275
+ 825,
276
+ 684
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "equation",
282
+ "img_path": "images/fda6b92ba29f99d98b00479b20d952826d173a102069df0648a3547f7e5d06e0.jpg",
283
+ "text": "$$\n\\boldsymbol { M } ^ { * } , \\boldsymbol { X } _ { a b } ^ { * } = \\underset { \\boldsymbol { M } , \\boldsymbol { X } _ { a b } } { \\arg \\operatorname* { m i n } } \\boldsymbol { J } _ { a d v } \\big ( \\mathcal { F } ( \\mathcal { C } ( \\boldsymbol { X } _ { L } , \\boldsymbol { X } _ { a b } , \\boldsymbol { M } ; \\boldsymbol { \\theta } ) ) , t \\big )\n$$",
284
+ "text_format": "latex",
285
+ "bbox": [
286
+ 339,
287
+ 690,
288
+ 656,
289
+ 715
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "cAdvAttack Methods. Attacking network weights allows the network to search the color space with no constraints for adversarial colors. This attack is the easiest to optimize, but the output colors are not realistic as shown in Fig. 2. Our various strategies outlined below are ineffective as the model learns to generate the adversarial colors without taking into account color realism. However, colorizations produced often correlate with colors often observed in the target class. This suggests that classifiers associate certain colors with certain classes which we will discuss more in our case study. ",
296
+ "bbox": [
297
+ 173,
298
+ 734,
299
+ 825,
300
+ 833
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "Attacking input hints and mask jointly gives us natural results as the pretrained network will not be affected by our optimization. Attacking hints and mask separately also works but takes a long optimization time and give slightly worse results. For our experiments, we use Adam Optimizer (Kingma & Ba (2014)) with a learning rate of $1 0 ^ { - 4 }$ in cAdv. We iteratively update hints and mask until our adversarial image reaches the target class and the confidence change of consecutive iterations does not exceed a threshold of 0.05. ",
307
+ "bbox": [
308
+ 173,
309
+ 839,
310
+ 825,
311
+ 922
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "image",
317
+ "img_path": "images/c7c5f8250772341da4fe8591f5d37ea334cf3298a3d785c6a99babd51fbecadf.jpg",
318
+ "image_caption": [
319
+ "Figure 3: Controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to misclassify as golf-cart. Second and fourth row visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the sampled hints location. Sampling hints across more clusters gives less color variety. "
320
+ ],
321
+ "image_footnote": [],
322
+ "bbox": [
323
+ 191,
324
+ 101,
325
+ 800,
326
+ 431
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Control over colorization. Current attack methods lack control over where the attack occurs, opting to attack all pixels indiscriminately. This lack of control is not important for most attacks where the $\\epsilon$ is small but is concerning in cAdv where making unstructured large changes can be jarring. To produce realistic colorization, we need to avoid making large color changes at locations where colors are unambiguous (e.g. roads in general are gray) and focus on those where colors are ambiguous (e.g. an umbrella can have different colors). To do so, we need to segment an image and determine which segments should be attacked or preserved. ",
333
+ "bbox": [
334
+ 174,
335
+ 513,
336
+ 825,
337
+ 609
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "To segment the image into meaningful areas, we cluster the image’s ground truth AB space using K-Means. We first use a Gaussian filter of $\\sigma = 3$ to smooth the AB channels and then cluster them into 8 clusters. Then, we have to determine which cluster’s colors should be preserved. Fortunately, Zhang et al. (2017) network output a per-pixel color distribution for a given image which we used to calculate the entropy of each pixel. The entropy represents how confident the network is at assigning a color at that location. The average entropy of each cluster represents how ambiguous their color is. We want to avoid making large changes to clusters with low-entropy while allowing our attack to change clusters with high entropy. One way to enforce this behavior is through hints, which are sampled from the ground truth at locations belonging to clusters of low-entropy. We sample hints from the $k$ clusters with the lowest entropy which we refer as $\\mathbf { c A d v } _ { k }$ (e.g. $\\mathbf { c A d v } _ { 2 }$ samples hints from the 2 lowest entropy clusters). ",
344
+ "bbox": [
345
+ 173,
346
+ 617,
347
+ 825,
348
+ 770
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "Number of input hints. Network hints constrain our output to have similar colors as the ground truth, avoiding the possibility of unnatural colorization at the cost of color diversity. This trade-off is controlled by the number of hints given to the network as initialization (Fig. 4). Generally, providing more hints gives us similar colors that are observed in original image. However, having too many hints is also problematic. Too many hints makes the optimization between drawing adversarial colors and matching local color hints difficult. Since the search space for adversarial colors is constrained because of more hints, we may instead generate unrealistic examples. ",
355
+ "bbox": [
356
+ 174,
357
+ 777,
358
+ 825,
359
+ 875
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Number of Clusters. The trade-off between the color diversity and the color realism is also controlled by the number of clusters we sample hints from as shown in Fig. 3. Sampling from multiple clusters gives us realistic colors closer to the ground truth image at the expense of color diversity. ",
366
+ "bbox": [
367
+ 176,
368
+ 882,
369
+ 823,
370
+ 924
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "image",
376
+ "img_path": "images/28c9a7081555c80396d860e35a38f481e641978107e769d4052d98991b1f4987.jpg",
377
+ "image_caption": [
378
+ "Figure 4: Number of color hints required for cAdv. All images are attacked to Merganser with $k = 4$ . When the number of hints increases (from left to right), the output colors are more similar to groundtruth. However, when the number of hints is too high (500), cAdv often generates unrealistic perturbations. This is due to a harder optimization for cAdv to both add adversarial colors and match GT color hints. cAdv is effective and realistic with a balanced number of hints. "
379
+ ],
380
+ "image_footnote": [],
381
+ "bbox": [
382
+ 174,
383
+ 98,
384
+ 823,
385
+ 193
386
+ ],
387
+ "page_idx": 4
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Empirically, from our experiments we find that in terms of color diversity, realism, and robustness of attacks, using $k = 4$ and 50 hints gives us better adversarial examples. For the rest of this paper, we fix 50 hints for all $\\mathbf { c A d v } _ { k }$ methods. ",
392
+ "bbox": [
393
+ 174,
394
+ 286,
395
+ 825,
396
+ 329
397
+ ],
398
+ "page_idx": 4
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "3 TEXTURE ATTACK (tADV) ",
403
+ "text_level": 1,
404
+ "bbox": [
405
+ 178,
406
+ 352,
407
+ 426,
408
+ 369
409
+ ],
410
+ "page_idx": 4
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Background. Texture transfer extracts texture from one image and adds it to another. Transferring texture from one source image to another target image has been widely studied in computer vision ( Efros & Freeman (2001); Gatys et al. (2015)). The Convolutional Neural Network (CNN) based texture transfer from Gatys et al. (2015) led to a series of new ideas in the domain of artistic style transfer ( Gatys et al. (2016); Huang & Belongie (2017); Li et al. (2017); Yeh et al. (2019)). More recently, Geirhos et al. (2018) showed that DNNs trained on ImageNet are biased towards texture for making predictions. ",
415
+ "bbox": [
416
+ 173,
417
+ 387,
418
+ 825,
419
+ 484
420
+ ],
421
+ "page_idx": 4
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "Our goal is to generate adversarial examples by infusing texture from another image without explicit constraints on ${ \\mathcal { L } } _ { p }$ norm of the perturbation. For generating our tAdv examples, we used a pretrained VGG19 network (Simonyan & Zisserman, 2014) to extract textural features. We directly optimize our victim image $( I _ { v } )$ by adding texture from a target image $( I _ { t } )$ . A natural strategy to transfer texture is by minimizing within-layer feature correlation statistics (gram matrices) between two images Gatys et al. (2015; 2016). Based on Yeh et al. (2019), we find that optimizing cross-layer gram matrices instead of within-layer gram matrices helps produce more natural looking adversarial examples. The difference between the within-layer and the cross-layer gram matrices is that for a within-layer, the feature’s statistics are computed between the same layer. For a cross-layer, the statistics are computed between two adjacent layers. ",
426
+ "bbox": [
427
+ 173,
428
+ 491,
429
+ 825,
430
+ 631
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "tAdv Objectives. tAdv directly attacks the image to create adversarial examples without modifying network parameters. Moreover, there is no additional content loss that is used in style transfer methods (Gatys et al. (2016); Yeh et al. (2019)). Our overall objective function for the texture attack contains a texture transfer loss $( L _ { t } ^ { \\mathcal { A } } )$ and an cross-entropy loss $( J _ { a d v } )$ . ",
437
+ "bbox": [
438
+ 174,
439
+ 637,
440
+ 825,
441
+ 694
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "img_path": "images/180d29bf642c245b808af8eeb571d2bb2aac660cfb0bd7e27d26d9b6c1d72626.jpg",
448
+ "text": "$$\nL _ { \\mathbf { t A d v } } ^ { \\mathcal { A } } = \\alpha L _ { t } ^ { \\mathcal { A } } ( I _ { v } , I _ { t } ) + \\beta J _ { a d v } ( \\mathcal { F } ( I _ { v } ) , t )\n$$",
449
+ "text_format": "latex",
450
+ "bbox": [
451
+ 372,
452
+ 715,
453
+ 624,
454
+ 733
455
+ ],
456
+ "page_idx": 4
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "Unlike style transfer methods, we do not want the adversarial examples to be artistically pleasing. Our goal is to infuse a reasonable texture from a target class image to the victim image and fool a classifier or captioning network. To ensure a reasonable texture is added without overly perturbing the victim image too much, we introduce an additional constraint on the variation in the gram matrices of the victim image. This constraint helps us to control the image transformation procedure and prevents it from producing artistic images. Let $m$ and $n$ denote two layers of a pretrained VGG-19 with a decreasing spatial resolution and $C$ for number of filter maps in layer $n$ , our texture transfer loss is then given by ",
461
+ "bbox": [
462
+ 173,
463
+ 762,
464
+ 825,
465
+ 866
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "img_path": "images/b63cfb5d2edbcb82179969507cb13407c700072371e748efba768c24788c4280.jpg",
472
+ "text": "$$\nL _ { t } ^ { \\mathcal { A } } ( I _ { v } , I _ { t } ) = \\sum _ { ( m , n ) \\in \\mathcal { L } } \\frac { 1 } { C ^ { 2 } } \\sum _ { i j } \\frac { \\big \\| G _ { i j } ^ { m , n } ( I _ { v } ) - G _ { i j } ^ { m , n } ( I _ { t } ) \\big \\| ^ { 2 } } { s t d \\left( G _ { i j } ^ { m , n } ( I _ { v } ) \\right) }\n$$",
473
+ "text_format": "latex",
474
+ "bbox": [
475
+ 326,
476
+ 868,
477
+ 671,
478
+ 910
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "image",
484
+ "img_path": "images/ebf1d78bd9d5759fd6fbcdbee62f0234f57921123c53e7a611aa070c3032e6eb.jpg",
485
+ "image_caption": [
486
+ "Figure 5: tAdv strategies. Texture transferred from random “texture source” $( T _ { s } )$ in row 1, random target class $T _ { s }$ (row 2) and from the nearest target class $T _ { s }$ (row 3). All examples are misclassified from Beacon to Nautilus. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight $\\alpha$ increases (left to right). "
487
+ ],
488
+ "image_footnote": [],
489
+ "bbox": [
490
+ 179,
491
+ 103,
492
+ 813,
493
+ 412
494
+ ],
495
+ "page_idx": 5
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "Let $f$ be feature maps, $\\mathcal { U } f ^ { n }$ be an upsampled $f ^ { n }$ that matches the spatial resolution of layer $m$ . The cross layer gram matrices $G$ between the victim image $( I _ { v } )$ and a target image $( I _ { t } )$ is given as ",
500
+ "bbox": [
501
+ 169,
502
+ 479,
503
+ 823,
504
+ 507
505
+ ],
506
+ "page_idx": 5
507
+ },
508
+ {
509
+ "type": "equation",
510
+ "img_path": "images/2a4fd9f001a4e56214b0e98f84a8a09ba4fc2de23326b5770f634b8c39ad5072.jpg",
511
+ "text": "$$\nG _ { i j } ^ { m , n } ( I ) = \\sum _ { p } \\left[ f _ { i , p } ^ { m } ( I ) \\right] \\left[ \\mathcal { U } f _ { j , p } ^ { n } ( I ) \\right] ^ { T }\n$$",
512
+ "text_format": "latex",
513
+ "bbox": [
514
+ 382,
515
+ 512,
516
+ 616,
517
+ 542
518
+ ],
519
+ "page_idx": 5
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Texture Transfer. To create tAdv adversarial examples, we need to find images to extract the texture from, which we call “texture source” $( T _ { s } )$ . A naive strategy is to randomly select an image from the data bank as $T _ { s }$ . Though this strategy is successful, their perturbations are clearly perceptible. Alternatively, we can randomly select $T _ { s }$ from the adversarial target class. This strategy produces less perceptible perturbations compared to the random $T _ { s }$ method as we are extracting a texture from the known target class. A better strategy to select $T _ { s }$ is to find a target class image that lies closest to the victim image in the feature space using nearest neighbors. This strategy is sensible as we assure our victim image has similar feature statistics as our target image. Consequently, minimizing gram matrices is easier and our attack generates more natural looking images (see Fig. 5). ",
524
+ "bbox": [
525
+ 174,
526
+ 546,
527
+ 825,
528
+ 672
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "For texture transfer, we extract cross-layer statistics in Eq. 4 from the R11, R21, R31, R41, and R51 of a pretrained VGG19. We optimize our objective (Eq. 3) using an L-BFGS (Liu & Nocedal (1989)) optimizer. tAdv attacks are sensitive and if not controlled well, images get transformed into artistic images. Since we do not have any constraints over the perturbation norm, it is necessary to decide when to stop the texture transfer procedure. For a successful attack (images look realistic), we limit our L-BFGS to fixed number of small steps and perform two set of experiments: one with only one iteration or round of L-BFGS for 14 steps and another with three iterations of 14 steps. For the three iterations setup, after every iteration, we look at the confidence of our target class and stop if the confidence is greater than 0.9. ",
535
+ "bbox": [
536
+ 173,
537
+ 679,
538
+ 825,
539
+ 804
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Texture and Cross-Entropy Weights. Empirically, we found setting $\\alpha$ to be in the range [150, 1000] and $\\beta$ in the range $\\left[ 1 0 ^ { - 4 } , 1 0 ^ { - 3 } \\right]$ to be successful and also produce less perceptible tAdv examples. The additional cross-entropy based adversarial objective $J _ { a d v }$ helps our optimization. We ensure large flow of gradients is from the texture loss and they are sufficiently larger than the adversarial crossentropy objective. The adversarial objective also helps in transforming victim image to adversarial without stylizing the image. All our tabulated results are shown for one iteration, $\\alpha = 2 5 0$ and $\\beta = 1 0 ^ { - 3 }$ , unless otherwise stated. We use the annotation $\\mathbf { t A d v } _ { \\alpha } ^ { i t e r }$ for the rest of the paper to denote the texture method that we are using. ",
546
+ "bbox": [
547
+ 173,
548
+ 810,
549
+ 825,
550
+ 924
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "table",
556
+ "img_path": "images/874f1ae539e452fab2cc898d9f606ee3f118d14f6f5a1ca46fc6cb81261a7ff1.jpg",
557
+ "table_caption": [],
558
+ "table_footnote": [],
559
+ "table_body": "<table><tr><td colspan=\"2\">Model</td><td>R50</td><td>D121</td><td>VGG19</td></tr><tr><td colspan=\"2\">Accuracy</td><td>76.15</td><td>74.65</td><td>74.24</td></tr><tr><td rowspan=\"5\">seecss Aarea</td><td>cAdv1</td><td>99.72</td><td>99.89</td><td>99.89</td></tr><tr><td>cAdv4</td><td>99.78</td><td>99.83</td><td>100.00</td></tr><tr><td>tAdv250</td><td>97.99</td><td>99.72</td><td>99.50</td></tr><tr><td>tAdv500</td><td>99.27</td><td>99.83</td><td>99.83</td></tr></table>",
560
+ "bbox": [
561
+ 186,
562
+ 119,
563
+ 419,
564
+ 191
565
+ ],
566
+ "page_idx": 6
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "(a) Whitebox Target Attack Success Rate ",
571
+ "text_level": 1,
572
+ "bbox": [
573
+ 207,
574
+ 195,
575
+ 403,
576
+ 224
577
+ ],
578
+ "page_idx": 6
579
+ },
580
+ {
581
+ "type": "table",
582
+ "img_path": "images/6a505079fc5cbbedaa93baf7b239f71f376ac1abad3344f099cb4f926881883c.jpg",
583
+ "table_caption": [],
584
+ "table_footnote": [],
585
+ "table_body": "<table><tr><td>Method</td><td>Model</td><td>R50</td><td>D121</td><td>VGG19</td></tr><tr><td rowspan=\"3\">Kurakin et al. (2016) Carlini&amp;Wagner (2017) Xiao et al. (2018b)</td><td>R50</td><td>100.00</td><td>17.33</td><td>12.95</td></tr><tr><td>R50</td><td>98.85</td><td>16.50</td><td>11.00</td></tr><tr><td>R50</td><td>100</td><td>5.23</td><td>8.90</td></tr><tr><td rowspan=\"3\">cAdv4</td><td>R50</td><td>99.83</td><td>28.56</td><td>31.00</td></tr><tr><td>D121</td><td>18.13</td><td>99.83</td><td>29.43</td></tr><tr><td>VGG19</td><td>22.94</td><td>26.39</td><td>100.00</td></tr><tr><td rowspan=\"3\">tAdv250</td><td>R50</td><td>99.00</td><td>24.51</td><td>34.84</td></tr><tr><td>D121</td><td>21.16</td><td>99.83</td><td>32.56</td></tr><tr><td>VGG19</td><td>20.21</td><td>24.40</td><td>99.89</td></tr></table>",
586
+ "bbox": [
587
+ 428,
588
+ 99,
589
+ 820,
590
+ 210
591
+ ],
592
+ "page_idx": 6
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "(b) Transferability ",
597
+ "text_level": 1,
598
+ "bbox": [
599
+ 565,
600
+ 214,
601
+ 696,
602
+ 229
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Table 1: Our attacks are highly successful on ResNet50 (R50), DenseNet121 (D121) and VGG19. In (a), for cAdv, we show results for $k = \\{ 1 , 4 \\}$ when attacked with 50 hints. For tAdv we show results for $\\alpha = \\{ 2 5 0 , 5 0 0 \\}$ and $\\beta = 0 . 0 0 1$ . In (b) We show the transferability of our attacks. We attack models from the column and test them on models from the rows. ",
609
+ "bbox": [
610
+ 174,
611
+ 239,
612
+ 826,
613
+ 295
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Control over Texture. The amount of texture that gets added to our victim image is controlled by the texture weight coefficient $( \\alpha )$ . Increasing texture weights improves attack success rate at the cost of noticeable perturbation. When compared to within-layer statistics, the cross-layer statistics that we use are not only better at extracting texture, it is also easier to control the texture weight. ",
620
+ "bbox": [
621
+ 174,
622
+ 304,
623
+ 825,
624
+ 359
625
+ ],
626
+ "page_idx": 6
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "4 EXPERIMENTAL RESULTS ",
631
+ "text_level": 1,
632
+ "bbox": [
633
+ 176,
634
+ 381,
635
+ 418,
636
+ 396
637
+ ],
638
+ "page_idx": 6
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "In this section, we evaluate the two proposed attack methods both quantitatively, via attack success rate under different settings, and qualitatively, based on interesting case studies. We conduct our experiments on ImageNet Deng et al. (2009) by randomly selecting images from 10 sufficiently different classes predicted correctly for the classification attack. ",
643
+ "bbox": [
644
+ 174,
645
+ 412,
646
+ 825,
647
+ 468
648
+ ],
649
+ "page_idx": 6
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "We use a pretrained ResNet 50 classifier (He et al. (2016)) for all our methods. DenseNet 121 and VGG 19 (Huang et al.; Simonyan & Zisserman (2014)) are used for our transferability analysis. ",
654
+ "bbox": [
655
+ 174,
656
+ 474,
657
+ 823,
658
+ 503
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "4.1 cADV ATTACK ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 174,
668
+ 521,
669
+ 315,
670
+ 535
671
+ ],
672
+ "page_idx": 6
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "cAdv achieves high targeted attack success rate by adding realistic color perturbation. Our numbers in Table 1 and Table 2 also reveal that cAdv examples with larger color changes (consequently more color diversity) are more robust against transferability and adversarial defenses. However, these big changes are found to be slightly less realistic from our user study (Table 2, Table 4). ",
677
+ "bbox": [
678
+ 174,
679
+ 546,
680
+ 825,
681
+ 603
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "Smooth cAdv perturbations. Fig. 8 in our Appendix shows interesting properties of the adversarial colors. We observe that cAdv perturbations are locally smooth and are relatively low-frequency. This is different from most adversarial attacks that generate high-frequency noise-like perturbations. This phenomenon can be explained by the observation that colors are usually smooth within object boundaries. The pretrained colorization model will thus produce smooth, low-frequency adversarial colors that conform to object boundaries. ",
688
+ "bbox": [
689
+ 174,
690
+ 609,
691
+ 825,
692
+ 693
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "Importance of color in classification. From Fig. 2, we can compare how different target class affects our colorization results if we relax our constraints on colors (cAdv on Network Weights, 0 hints). In many cases, the images contain strong colors that are related to the target class. In the case of golf-cart, we get a green tint over the entire image. This can push the target classifier to misclassify the image as green grass is usually overabundant in benign golf-cart images. Fig. 2b shows our attack on an image of a car to tench (a type of fish). We observe that the gray road turned blue and that the colors are tinted. We can hypothesize that the blue colors and the tint fooled the classifier into thinking the image is a tench in the sea. ",
699
+ "bbox": [
700
+ 174,
701
+ 700,
702
+ 825,
703
+ 811
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "The colorization model is originally trained to produce natural colorization that conforms to object boundaries. By adjusting its parameters, we are able to produce such large and abnormal color change that is impossible with our attack on hints and mask. These colors, however, show us some evidence that colors play a stronger role in classification than we thought. We reserve the exploration of this observation for future works. ",
710
+ "bbox": [
711
+ 174,
712
+ 819,
713
+ 825,
714
+ 888
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "While this effect (strong color correlation to target class) is less pronounced for our attack on hints and mask, for all cAdv methods, we observe isoluminant color blobs. Isoluminant colors are characterized ",
721
+ "bbox": [
722
+ 174,
723
+ 895,
724
+ 823,
725
+ 922
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "table",
731
+ "img_path": "images/01671e255d42d7bd9db41006d3f56951fe579c06ae25f352edb97c176ca6311b.jpg",
732
+ "table_caption": [],
733
+ "table_footnote": [],
734
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Res50</td><td rowspan=\"2\">JPEG75</td><td colspan=\"5\">Feature Squeezing</td><td rowspan=\"2\">Res152</td><td rowspan=\"2\">Adv Res152</td><td rowspan=\"2\">User Pref.</td></tr><tr><td>4-bit</td><td>5-bit</td><td>2x2</td><td>3x3</td><td>11-3-4</td></tr><tr><td>Kurakin et al. (2016)</td><td>100</td><td>12.73</td><td>28.62</td><td>86.66</td><td>34.28</td><td>21.56</td><td>29.28</td><td>1.08</td><td>1.38</td><td>0.506</td></tr><tr><td>Carlini &amp;Wagner (2017)</td><td>99.85</td><td>11.50</td><td>12.00</td><td>30.50</td><td>22.00</td><td>14.50</td><td>18.50</td><td>1.08</td><td>1.38</td><td>0.497</td></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td>1.20</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td></td></tr><tr><td>Xiao et al. (2018b)</td><td>100</td><td>17.61</td><td>22.51</td><td>29.26</td><td>28.71</td><td>23.51</td><td>26.67</td><td>4.13</td><td>1.39</td><td>0.470</td></tr><tr><td>cAdv1</td><td>100</td><td>52.33</td><td>47.78</td><td>76.17</td><td>36.28</td><td>50.50</td><td>61.95</td><td>12.06</td><td>11.62</td><td>0.427</td></tr><tr><td>cAdv2</td><td>99.89</td><td>46.61</td><td>42.78</td><td>72.56</td><td>34.28</td><td>46.45</td><td>59.00</td><td>17.39</td><td>19.4</td><td>0.437</td></tr><tr><td>cAdv4</td><td>99.83</td><td>42.61</td><td>38.39</td><td>69.67</td><td>34.34</td><td>40.78</td><td>54.62</td><td>14.13</td><td>12.5</td><td>0.473</td></tr><tr><td>cAdv8</td><td>99.81</td><td>38.22</td><td>36.62</td><td>67.06</td><td>31.67</td><td>37.67</td><td>49.17</td><td>6.52</td><td>10.04</td><td>0.476</td></tr><tr><td>tAdv250</td><td>99.00</td><td>32.89</td><td>62.79</td><td>89.74</td><td>54.94</td><td>38.92</td><td>40.57</td><td>10.9</td><td>2.10</td><td>0.433</td></tr><tr><td>tAdv250</td><td>100</td><td>36.33</td><td>67.68</td><td>94.11</td><td>58.92</td><td>42.82</td><td>44.56</td><td>15.21</td><td>4.6</td><td>0.425</td></tr><tr><td>tAdv1000</td><td>99.88</td><td>31.49</td><td>52.69</td><td>90.52</td><td>51.24</td><td>34.85</td><td>39.68</td><td>19.12</td><td>5.59</td><td>0.412</td></tr><tr><td>tAdv1000</td><td>100</td><td>35.23</td><td>61.40</td><td>93.18</td><td>56.31</td><td>39.66</td><td>45.59</td><td>22.28</td><td>6.94</td><td>0.406</td></tr></table>",
735
+ "bbox": [
736
+ 173,
737
+ 101,
738
+ 825,
739
+ 255
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Table 2: Comparison against defense models. Misclassification rate after passing different adversarial examples through the defense models (higher means the attack is stronger). All attacks are performed on ResNet50 with whitebox attack. The highest attack success rate is in bold. We also report the user preference scores from AMT for each attack (last column). ",
746
+ "bbox": [
747
+ 173,
748
+ 260,
749
+ 826,
750
+ 315
751
+ ],
752
+ "page_idx": 7
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "by a change in color without a corresponding change in luminance. As most color changes occur along edges in natural images, it is likely that classifiers trained on ImageNet have never seen isoluminant colors. This suggests that cAdv might be exploiting isoluminant colors to fool classifiers. ",
757
+ "bbox": [
758
+ 176,
759
+ 329,
760
+ 823,
761
+ 371
762
+ ],
763
+ "page_idx": 7
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "4.2 tADV ATTACK ",
768
+ "text_level": 1,
769
+ "bbox": [
770
+ 174,
771
+ 392,
772
+ 312,
773
+ 406
774
+ ],
775
+ "page_idx": 7
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "tAdv successfully fools the classifiers with a very small weighted adversarial cross-entropy objective $( \\beta )$ when combined with texture loss, while remaining realistic to humans. As shown in Table 1, our attacks are highly successful on white-box attacks tested on three different models with the nearest neighbor texture transfer approach. We also show our attacks are more transferable to other models. In our Appendix, we show ablation results for tAdv attacks along with other strategies that we used for generating tAdv adversarial examples. ",
780
+ "bbox": [
781
+ 174,
782
+ 420,
783
+ 825,
784
+ 503
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Structured tAdv Perturbations. Since we extract features across different layers of VGG, the tAdv perturbations follow a textural pattern. They are more structured and organized when compared to others. Our tAdv perturbations are big when compared with existing attack methods in ${ \\mathcal { L } } _ { p }$ norm. They are of high-frequency and yet imperceptible (see Fig. 1 and Fig. 8). ",
791
+ "bbox": [
792
+ 174,
793
+ 511,
794
+ 825,
795
+ 568
796
+ ],
797
+ "page_idx": 7
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Importance of Texture in Classification. Textures are crucial descriptors for image classification and Imagenet trained models can be exploited by altering the texture. Their importance is also shown in the recent work from Geirhos et al. (2018). Our results also shows that even with a small or invisible change in the texture field can break the current state of the art classifiers. ",
802
+ "bbox": [
803
+ 174,
804
+ 574,
805
+ 825,
806
+ 630
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "4.3 DEFENSE AND TRANSFERABILITY ANALYSIS ",
813
+ "text_level": 1,
814
+ "bbox": [
815
+ 174,
816
+ 652,
817
+ 527,
818
+ 666
819
+ ],
820
+ "page_idx": 7
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "We test all our attacks and other existing methods with images attacked from Resnet50. We evaluate them on three defenses – JPEG defense (Das et al., 2017), feature squeezing (Xu et al., 2017) and adversarial training. By leveraging JPEG compression and decompression, adversarial noise may be removed. We tested our methods against JPEG compression of 75. Feature squeezing is a family of simple but surprisingly effective strategies, including reducing color bit depth and spatial smoothing. Adversarial training has been shown as an effective but costly method to defend against adversarial attacks. Mixing adversarial samples into training data of a classifier improves its robustness without affecting the overall accuracy. We were able to obtain an adversarially pretrained Resnet152 model on ImageNet dataset and hence we tested our Resnet50 attacked images with this model. ",
825
+ "bbox": [
826
+ 174,
827
+ 680,
828
+ 825,
829
+ 805
830
+ ],
831
+ "page_idx": 7
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "Robustness. In general, our attacks are more robust to the considered defenses and transferable for targeted attacks. For cAdv, there is a trade-off between more realistic colors (using more hints and sampling from more clusters) and attack robustness. From Table 1 and 2, we show that as we progressively use more clusters, our transferability and defense numbers drop. A similar trend is observed with the change in the number of hints. cAdv is robust to JPEG defense and adversarial training because of their large and spatially smooth perturbations. For tAdv, increasing texture weight $( \\alpha )$ does not necessarily perform well with the defense even though it increases attack success rate, but increasing texture flow with more iterations improves attack’s robustness against defenses. ",
836
+ "bbox": [
837
+ 174,
838
+ 813,
839
+ 823,
840
+ 924
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "5 HUMAN PERCEPTUAL STUDIES ",
847
+ "text_level": 1,
848
+ "bbox": [
849
+ 176,
850
+ 102,
851
+ 465,
852
+ 118
853
+ ],
854
+ "page_idx": 8
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "To quantify how realistic tAdv and cAdv examples are, we conducted a user study on Amazon Mechanical Turk (AMT). We follow the same procedure as described in (Zhang et al., 2016; Xiao et al., 2018b). For each attack, we choose the same 200 adversarial images and their corresponding benign ones. During each trial, one random adversarial-benign pair appears for three seconds and workers are given five minutes to identify the realistic one. Each attack has 600 unique pairs of images and each pair is evaluated by at least 10 unique workers. We restrict biases in this process by allowing each unique user up to 5 rounds of trials and also ignore users who complete the study in less than 30 seconds. In total, 598 unique workers completed at least one round of our user study. For each image, we can then calculate the user preference score as the number of times it is chosen divided by the number of times it is displayed. 0.5 represents that users are unable to distinguish if the image is fake. For cAdv and tAdv, user preferences averages at 0.476 and 0.433 respectively, indicating that workers have a hard time distinguishing them. The user preferences for all attacks are summarized in Table 2 and their comparison with ${ \\mathcal { L } } _ { p }$ norm is in Table 4 and Table 5. ",
859
+ "bbox": [
860
+ 174,
861
+ 133,
862
+ 825,
863
+ 314
864
+ ],
865
+ "page_idx": 8
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "6 ATTACKING CAPTIONING MODEL ",
870
+ "text_level": 1,
871
+ "bbox": [
872
+ 176,
873
+ 334,
874
+ 485,
875
+ 351
876
+ ],
877
+ "page_idx": 8
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "Our methods are general and can be easily adapted for other learning tasks. As proof of concept, we test our attacks against image captioning task. Image captioning is the task of generating a sequence of word description for an image. The popular architecture for captioning is a Long-ShortTerm-Memory (LSTM) (Hochreiter & Schmidhuber, 1997) based models (Karpathy & Fei-Fei, 2015; Wang et al., 2017). Recently, (Aneja et al., 2018) proposed a convolutional based captioning model for a fast and accurate caption generation. This convolutional based approach does not suffer from the commonly known problems of vanishing gradients and overly confident predictions of LSTM network. Therefore, we choose to attack the current state of the art convolutional captioning model. We randomly selected images from MSCOCO (Lin et al., 2014) for image captioning attack. ",
882
+ "bbox": [
883
+ 174,
884
+ 366,
885
+ 825,
886
+ 492
887
+ ],
888
+ "page_idx": 8
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Attacking captioning models is harder than attacking classifiers when the goal is to change exactly one word in the benign image’s caption unlike pixel based attacks (Chen et al., 2017; Xu et al., 2019). We show that our attacks are successful and have no visible artifacts even for this challenging task. In Fig. 6, we change the second word of the caption to dog while keeping the rest of the caption the same. This is a challenging targeted attack because, in many untargeted attacks, the resulted captions do not make sense. More examples are in our Appendix. ",
893
+ "bbox": [
894
+ 173,
895
+ 498,
896
+ 825,
897
+ 583
898
+ ],
899
+ "page_idx": 8
900
+ },
901
+ {
902
+ "type": "image",
903
+ "img_path": "images/6a956e0df34f6db0ac9fd6dbff2b885fc1fd389ac877e7c3c15a104e82cdbac7.jpg",
904
+ "image_caption": [
905
+ "Figure 6: Captioning attack. Top: cAdv; Bottom: tAdv. We attack the second word to dog and show the corresponding change in attention mask of that word. More examples in Appendix. "
906
+ ],
907
+ "image_footnote": [],
908
+ "bbox": [
909
+ 181,
910
+ 598,
911
+ 820,
912
+ 890
913
+ ],
914
+ "page_idx": 8
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "Adversarial Cross-Entropy Objective for Captioning. Let $t$ be the target caption, $w$ denote the word position of the caption, $\\mathcal { F }$ for the captioning model, $I _ { v }$ for the victim image and $J _ { a d v }$ for the cross-entropy loss ",
919
+ "bbox": [
920
+ 174,
921
+ 103,
922
+ 823,
923
+ 145
924
+ ],
925
+ "page_idx": 9
926
+ },
927
+ {
928
+ "type": "equation",
929
+ "img_path": "images/102810fa5337660b10267a4e844284b9a19c65863d3a2262348535571d3fbbdb.jpg",
930
+ "text": "$$\nL _ { c a p t } ^ { \\mathcal { A } } = \\sum _ { w } J _ { a d v } ( ( \\mathcal { F } ( I _ { v } ) ) _ { w } , t _ { w } )\n$$",
931
+ "text_format": "latex",
932
+ "bbox": [
933
+ 388,
934
+ 143,
935
+ 609,
936
+ 176
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "For cAdv, we give all color hints and optimize to get an adversarial colored image to produce target caption. For tAdv, we add Eqn 6 to Eqn 4 to optimize the image. We select $T _ { S }$ as the nearest neighbor of the victim image from the ones in the adversarial target class using ImageNet dataset. We stop our attack once we reach the target caption and the caption does not change in consecutive iterations. Note we do not change the network weights, we only optimize hints and mask (for cAdv) or the victim image (for tAdv) to achieve our target caption. ",
943
+ "bbox": [
944
+ 174,
945
+ 178,
946
+ 825,
947
+ 262
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "7 RELATED WORK ",
954
+ "text_level": 1,
955
+ "bbox": [
956
+ 176,
957
+ 281,
958
+ 344,
959
+ 297
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Here we briefly summarize existing unrestricted and semantic adversarial attacks. Xiao et al. (2018b) proposed geometric or spatial distortion of pixels in image to create adversarial examples. They distort the input image by optimizing pixel flow instead of pixel values to generate adversarial examples. While this attack leads to “natural” looking adversarial examples with large $\\mathcal { L } _ { \\infty }$ norm, it does not take image semantics into account. Song et al (2018) and Dunn et al. (2019) considered GANs for adversarial attacks. This attack is unrestricted in ${ \\mathcal { L } } _ { p }$ norm but they are restricted to simple datasets as it involves training GANs, which have been known to be unstable and computationally intensive for complex datasets like ImageNet (Karras et al., 2017; Brock et al., 2018). ",
966
+ "bbox": [
967
+ 173,
968
+ 311,
969
+ 825,
970
+ 424
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Hosseini & Poovendran (2018), changes the hue & saturation of an image randomly to create adversarial examples. It is similar to cAdv as they both involve changing colors, however, their search space is limited to two dimensions and their images are unrealistic, Appendix (Fig. 10). Also, while this method has a non-trivial untargeted attack success rate, it performs extremely poorly for targeted attacks $( 1 . 2 0 \\%$ success rate in our own experiments on ImageNet). Our work is also related to Joshi et al. (2019) and Qiu et al. (2019), who manipulate images conditioned on face dataset attributes like glasses, beard for their attacks. These work focuses on changing single image visual attribute and are conditionally dependent. Our work focuses on changing visual semantic descriptors to misclassify images and are not conditioned to any semantic attributes. ",
977
+ "bbox": [
978
+ 173,
979
+ 430,
980
+ 825,
981
+ 556
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "table",
987
+ "img_path": "images/e2c43dc6804b3a03ec4cb6a333e957ee2973eb5a70e083f308e2049dae343ffa.jpg",
988
+ "table_caption": [],
989
+ "table_footnote": [],
990
+ "table_body": "<table><tr><td>Method</td><td>Semantic Based</td><td></td><td>Unrestricted Photorealistic</td><td>Explainable (eg color affinity)</td><td>Complex Dataset</td><td>Caption Attack</td></tr><tr><td>Kurakin et al. (2016)</td><td>X</td><td>xx&lt;&lt;√</td><td>&lt;&lt;xx&gt;</td><td>X</td><td>√</td><td>X</td></tr><tr><td>Carlini &amp; Wagner (2017)</td><td>X</td><td></td><td></td><td></td><td>√</td><td></td></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Song et al (2018)</td><td>X</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Xiao et al. (2018b)</td><td>X</td><td></td><td></td><td>xxx&gt;</td><td>xx&gt;</td><td></td></tr><tr><td>cAdv (ours)</td><td>√</td><td>√</td><td>√</td><td>√</td><td>√</td><td>xxxx/</td></tr><tr><td>tAdv (ours)</td><td>√</td><td>√</td><td></td><td>√</td><td>√</td><td>√</td></tr></table>",
991
+ "bbox": [
992
+ 173,
993
+ 568,
994
+ 825,
995
+ 674
996
+ ],
997
+ "page_idx": 9
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Table 3: Summary of the difference in our work compared to previous work. Unlike previous attack methods, our attacks are unbounded, semantically motivated, realistic, highly successful, and scales to more complex datasets and other ML tasks. They are also robust against tested defenses. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 679,
1005
+ 823,
1006
+ 722
1007
+ ],
1008
+ "page_idx": 9
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "8 CONCLUSION ",
1013
+ "text_level": 1,
1014
+ "bbox": [
1015
+ 174,
1016
+ 734,
1017
+ 320,
1018
+ 751
1019
+ ],
1020
+ "page_idx": 9
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Our proposed two novel unrestricted semantic attacks shed light on the role of texture and color fields in influencing DNN’s predictions. They not only consistently fool human subjects but in general are harder to defend against. We hope by presenting our methods, we encourage future studies on unbounded adversarial attacks, better metrics for measuring perturbations, and more sophisticated defenses. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 766,
1028
+ 825,
1029
+ 835
1030
+ ],
1031
+ "page_idx": 9
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "ACKNOWLEDGEMENTS ",
1036
+ "text_level": 1,
1037
+ "bbox": [
1038
+ 176,
1039
+ 856,
1040
+ 367,
1041
+ 871
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "We thank Chaowei Xiao for sharing their code to compare our methods with Xiao et al. (2018b) and helping us setup the user study. We also thank Tianyuan Zhang for providing the AdvRes152 pretrained model. This work was supported by NSF Grant No. 1718221 and ONR MURI Award N00014-16-1-2007. ",
1048
+ "bbox": [
1049
+ 176,
1050
+ 885,
1051
+ 823,
1052
+ 922
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "REFERENCES ",
1059
+ "text_level": 1,
1060
+ "bbox": [
1061
+ 174,
1062
+ 103,
1063
+ 287,
1064
+ 117
1065
+ ],
1066
+ "page_idx": 10
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Jyoti Aneja, Aditya Deshpande, and Alexander G Schwing. Convolutional image captioning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5561–5570, 2018. ",
1071
+ "bbox": [
1072
+ 173,
1073
+ 125,
1074
+ 823,
1075
+ 151
1076
+ ],
1077
+ "page_idx": 10
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. ",
1082
+ "bbox": [
1083
+ 174,
1084
+ 160,
1085
+ 820,
1086
+ 186
1087
+ ],
1088
+ "page_idx": 10
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Tom B Brown, Nicholas Carlini, Chiyuan Zhang, Catherine Olsson, Paul Christiano, and Ian Goodfellow. Unrestricted adversarial examples. arXiv preprint arXiv:1809.08352, 2018. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 195,
1096
+ 825,
1097
+ 223
1098
+ ],
1099
+ "page_idx": 10
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57. IEEE, 2017. ",
1104
+ "bbox": [
1105
+ 171,
1106
+ 231,
1107
+ 825,
1108
+ 258
1109
+ ],
1110
+ "page_idx": 10
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Hongge Chen, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, and Cho-Jui Hsieh. Attacking visual language grounding with adversarial examples: A case study on neural image captioning. arXiv preprint arXiv:1712.02051, 2017. ",
1115
+ "bbox": [
1116
+ 169,
1117
+ 266,
1118
+ 825,
1119
+ 294
1120
+ ],
1121
+ "page_idx": 10
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Nilaksh Das, Madhuri Shanbhogue, Shang-Tse Chen, Fred Hohman, Li Chen, Michael E Kounavis, and Duen Horng Chau. Keeping the bad guys out: Protecting and vaccinating deep learning with jpeg compression. arXiv preprint arXiv:1705.02900, 2017. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 301,
1129
+ 825,
1130
+ 340
1131
+ ],
1132
+ "page_idx": 10
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 349,
1140
+ 823,
1141
+ 377
1142
+ ],
1143
+ "page_idx": 10
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Aditya Deshpande, Jiajun Lu, Mao-Chuang Yeh, Min Jin Chong, and David A Forsyth. Learning diverse image colorization. In CVPR, pp. 2877–2885, 2017. ",
1148
+ "bbox": [
1149
+ 173,
1150
+ 385,
1151
+ 821,
1152
+ 412
1153
+ ],
1154
+ "page_idx": 10
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Isaac Dunn, Tom Melham, and Daniel Kroening. Generating realistic unrestricted adversarial inputs using dual-objective gan training. arXiv preprint arXiv:1905.02463, 2019. ",
1159
+ "bbox": [
1160
+ 171,
1161
+ 421,
1162
+ 823,
1163
+ 448
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 341–346. ACM, 2001. ",
1170
+ "bbox": [
1171
+ 171,
1172
+ 457,
1173
+ 823,
1174
+ 484
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 262–270, 2015. ",
1181
+ "bbox": [
1182
+ 169,
1183
+ 492,
1184
+ 823,
1185
+ 520
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Leon A Gatys, Alexander S Ecker, and Matthias Bethge. Image style transfer using convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2414–2423, 2016. ",
1192
+ "bbox": [
1193
+ 169,
1194
+ 527,
1195
+ 825,
1196
+ 554
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 563,
1206
+ 825,
1207
+ 602
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "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, 2014a. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 611,
1217
+ 825,
1218
+ 650
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014b. ",
1225
+ "bbox": [
1226
+ 173,
1227
+ 659,
1228
+ 823,
1229
+ 685
1230
+ ],
1231
+ "page_idx": 10
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1236
+ "bbox": [
1237
+ 171,
1238
+ 694,
1239
+ 823,
1240
+ 722
1241
+ ],
1242
+ "page_idx": 10
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6): 82–97, 2012. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 729,
1250
+ 826,
1251
+ 781
1252
+ ],
1253
+ "page_idx": 10
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 790,
1261
+ 825,
1262
+ 818
1263
+ ],
1264
+ "page_idx": 10
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1614–1619, 2018. ",
1269
+ "bbox": [
1270
+ 171,
1271
+ 827,
1272
+ 823,
1273
+ 853
1274
+ ],
1275
+ "page_idx": 10
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. ",
1280
+ "bbox": [
1281
+ 174,
1282
+ 861,
1283
+ 823,
1284
+ 888
1285
+ ],
1286
+ "page_idx": 10
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Xun Huang and Serge J Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In ICCV, pp. 1510–1519, 2017. ",
1291
+ "bbox": [
1292
+ 174,
1293
+ 897,
1294
+ 821,
1295
+ 924
1296
+ ],
1297
+ "page_idx": 10
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. 2017. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 104,
1305
+ 823,
1306
+ 131
1307
+ ],
1308
+ "page_idx": 11
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In European Conference on Computer Vision, 2016. ",
1313
+ "bbox": [
1314
+ 173,
1315
+ 138,
1316
+ 823,
1317
+ 166
1318
+ ],
1319
+ "page_idx": 11
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Ameya Joshi, Amitangshu Mukherjee, Soumik Sarkar, and Chinmay Hegde. Semantic adversarial attacks: Parametric transformations that fool deep classifiers. arXiv preprint arXiv:1904.08489, 2019. ",
1324
+ "bbox": [
1325
+ 176,
1326
+ 174,
1327
+ 823,
1328
+ 200
1329
+ ],
1330
+ "page_idx": 11
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "Daniel Kang, Yi Sun, Dan Hendrycks, Tom Brown, and Jacob Steinhardt. Testing robustness against unforeseen adversaries. arXiv preprint arXiv:1908.08016, 2019. ",
1335
+ "bbox": [
1336
+ 174,
1337
+ 208,
1338
+ 820,
1339
+ 236
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3128–3137, 2015. ",
1346
+ "bbox": [
1347
+ 174,
1348
+ 243,
1349
+ 823,
1350
+ 271
1351
+ ],
1352
+ "page_idx": 11
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. ",
1357
+ "bbox": [
1358
+ 174,
1359
+ 279,
1360
+ 823,
1361
+ 306
1362
+ ],
1363
+ "page_idx": 11
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1368
+ "bbox": [
1369
+ 176,
1370
+ 314,
1371
+ 826,
1372
+ 340
1373
+ ],
1374
+ "page_idx": 11
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1379
+ "bbox": [
1380
+ 173,
1381
+ 348,
1382
+ 825,
1383
+ 363
1384
+ ],
1385
+ "page_idx": 11
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. pp. 1097–1105, 2012. ",
1390
+ "bbox": [
1391
+ 174,
1392
+ 371,
1393
+ 821,
1394
+ 397
1395
+ ],
1396
+ "page_idx": 11
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016. URL http://dblp.uni-trier.de/db/journals/corr/corr1607. html#KurakinGB16. ",
1401
+ "bbox": [
1402
+ 174,
1403
+ 405,
1404
+ 823,
1405
+ 445
1406
+ ],
1407
+ "page_idx": 11
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. 17(39):1–40, 2016. ",
1412
+ "bbox": [
1413
+ 174,
1414
+ 453,
1415
+ 823,
1416
+ 479
1417
+ ],
1418
+ "page_idx": 11
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "Yijun Li, Chen Fang, Jimei Yang, Zhaowen Wang, Xin Lu, and Ming-Hsuan Yang. Universal style transfer via feature transforms. In Advances in Neural Information Processing Systems, pp. 386–396, 2017. ",
1423
+ "bbox": [
1424
+ 174,
1425
+ 488,
1426
+ 823,
1427
+ 515
1428
+ ],
1429
+ "page_idx": 11
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pp. 740–755. Springer, 2014. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 522,
1437
+ 823,
1438
+ 563
1439
+ ],
1440
+ "page_idx": 11
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Dong C Liu and Jorge Nocedal. On the limited memory bfgs method for large scale optimization. Mathematical programming, 45(1-3):503–528, 1989. ",
1445
+ "bbox": [
1446
+ 171,
1447
+ 570,
1448
+ 823,
1449
+ 597
1450
+ ],
1451
+ "page_idx": 11
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016. ",
1456
+ "bbox": [
1457
+ 173,
1458
+ 604,
1459
+ 823,
1460
+ 632
1461
+ ],
1462
+ "page_idx": 11
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Haonan Qiu, Chaowei Xiao, Lei Yang, Xinchen Yan, Honglak Lee, and Bo Li. Semanticadv: Generating adversarial examples via attribute-conditional image editing. arXiv preprint arXiv:1906.07927, 2019. ",
1467
+ "bbox": [
1468
+ 169,
1469
+ 640,
1470
+ 823,
1471
+ 667
1472
+ ],
1473
+ "page_idx": 11
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1478
+ "bbox": [
1479
+ 173,
1480
+ 675,
1481
+ 823,
1482
+ 702
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Yang Song et al. Constructing unrestricted adversarial examples with generative models. 2018. ",
1489
+ "bbox": [
1490
+ 173,
1491
+ 710,
1492
+ 736,
1493
+ 724
1494
+ ],
1495
+ "page_idx": 11
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Liwei Wang, Alexander Schwing, and Svetlana Lazebnik. Diverse and accurate image description using a variational auto-encoder with an additive gaussian encoding space. In Advances in Neural Information Processing Systems, pp. 5756–5766, 2017. ",
1500
+ "bbox": [
1501
+ 174,
1502
+ 732,
1503
+ 825,
1504
+ 772
1505
+ ],
1506
+ "page_idx": 11
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Chaowei Xiao, Bo Li, Jun-Yan Zhu, Warren He, Mingyan Liu, and Dawn Song. Generating adversarial examples with adversarial networks. arXiv preprint arXiv:1801.02610, 2018a. ",
1511
+ "bbox": [
1512
+ 171,
1513
+ 780,
1514
+ 823,
1515
+ 806
1516
+ ],
1517
+ "page_idx": 11
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "Chaowei Xiao, Jun-Yan Zhu, Bo Li, Warren He, Mingyan Liu, and Dawn Song. Spatially transformed adversarial examples. arXiv preprint arXiv:1801.02612, 2018b. ",
1522
+ "bbox": [
1523
+ 173,
1524
+ 814,
1525
+ 821,
1526
+ 842
1527
+ ],
1528
+ "page_idx": 11
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017. ",
1533
+ "bbox": [
1534
+ 174,
1535
+ 849,
1536
+ 823,
1537
+ 877
1538
+ ],
1539
+ "page_idx": 11
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "Yan Xu, Baoyuan Wu, Fumin Shen, Yanbo Fan, Yong Zhang, Heng Tao Shen, and Wei Liu. Exact adversarial attack to image captioning via structured output learning with latent variables. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4135–4144, 2019. ",
1544
+ "bbox": [
1545
+ 176,
1546
+ 885,
1547
+ 825,
1548
+ 924
1549
+ ],
1550
+ "page_idx": 11
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "Mao-Chuang Yeh, Shuai Tang, Anand Bhattad, Chuhang Zou, and David Forsyth. Improving style transfer with calibrated metrics. arXiv preprint arXiv:1910.09447, 2019. ",
1555
+ "bbox": [
1556
+ 174,
1557
+ 104,
1558
+ 823,
1559
+ 131
1560
+ ],
1561
+ "page_idx": 12
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision, pp. 649–666. Springer, 2016. ",
1566
+ "bbox": [
1567
+ 176,
1568
+ 140,
1569
+ 823,
1570
+ 166
1571
+ ],
1572
+ "page_idx": 12
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Richard Zhang, Jun-Yan Zhu, Phillip Isola, Xinyang Geng, Angela S Lin, Tianhe Yu, and Alexei A Efros. Real-time user-guided image colorization with learned deep priors. arXiv preprint arXiv:1705.02999, 2017. ",
1577
+ "bbox": [
1578
+ 176,
1579
+ 174,
1580
+ 825,
1581
+ 202
1582
+ ],
1583
+ "page_idx": 12
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "A APPENDIX ",
1588
+ "text_level": 1,
1589
+ "bbox": [
1590
+ 176,
1591
+ 102,
1592
+ 297,
1593
+ 117
1594
+ ],
1595
+ "page_idx": 13
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "A.1 OTHER DETAILS ON HUMAN STUDY ",
1600
+ "text_level": 1,
1601
+ "bbox": [
1602
+ 176,
1603
+ 133,
1604
+ 468,
1605
+ 148
1606
+ ],
1607
+ "page_idx": 13
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "We also chose BIM (Kurakin et al., 2016) and CW (Carlini & Wagner, 2017) for comparing our perturbations. Since these attacks are known to have low ${ \\mathcal { L } } _ { p }$ norm, we designed an aggressive version of BIM by relaxing its $\\mathcal { L } _ { \\infty }$ bound to match the norm of our attacks. We settled with two aggressive versions of BIM with average $\\mathcal { L } _ { \\infty } = \\{ 0 . 2 1 , 0 . 3 4 7 \\}$ , which we refer to as $\\mathrm { B I M _ { 0 . 2 1 } }$ , $\\mathrm { B I M _ { 0 . 3 4 } }$ . The average user preferences for BIM drops drastically from 0.497 to 0.332 when we relax the norm to $\\mathrm { B I M _ { 0 . 3 4 } }$ ; the decrease in user preferences for tAdv (0.433 to 0.406) and cAdv (0.476 to 0.437) is not significant. In Fig. 7, we plot a density plot of $\\mathcal { L } _ { \\infty }$ vs user preference scores. ",
1612
+ "bbox": [
1613
+ 173,
1614
+ 161,
1615
+ 825,
1616
+ 260
1617
+ ],
1618
+ "page_idx": 13
1619
+ },
1620
+ {
1621
+ "type": "image",
1622
+ "img_path": "images/d7f388370788c4cbfe65811264c0744fc1d3e1e06e6b15bc94cfad5c0b602a11.jpg",
1623
+ "image_caption": [
1624
+ "Figure 7: Density Plot. Our methods achieve large $\\mathcal { L } _ { \\infty }$ norm perturbations without notable reduction in user preference. Each plot is a density plot between perturbation ( $\\scriptstyle { \\mathcal { L } } _ { \\infty }$ norm) on $\\mathbf { X }$ axis and $P r$ (user prefers adversarial image) on Y axis. For ideal systems, the density would be a concentrated horizontal line at 0.5. All plots are on the same set of axes. On the left, plots for three baseline methods (Fig a - Fig c). Note the very strong concentration on small norm perturbations, which users like. Right 4 plots shows our methods (Fig d - Fig g). Note strong push into large norm regions, without loss of user preference. "
1625
+ ],
1626
+ "image_footnote": [],
1627
+ "bbox": [
1628
+ 176,
1629
+ 272,
1630
+ 825,
1631
+ 344
1632
+ ],
1633
+ "page_idx": 13
1634
+ },
1635
+ {
1636
+ "type": "table",
1637
+ "img_path": "images/c59de58b09ddc1adb8e06cf2da10986e190056b448a07bce2b6d6064476488ab.jpg",
1638
+ "table_caption": [],
1639
+ "table_footnote": [
1640
+ "Table 4: User Study. User preference score and ${ \\mathcal { L } } _ { p }$ norm of perturbation for different attacks. cAdv and tAdv are imperceptible for humans (score close to 0.5) even with very big ${ \\mathcal { L } } _ { p }$ norm perturbation. "
1641
+ ],
1642
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Lo L2 L8</td><td rowspan=1 colspan=1>Preference</td></tr><tr><td rowspan=1 colspan=1>cw</td><td rowspan=1 colspan=1>0.587 0.026 0.054</td><td rowspan=1 colspan=1>0.506</td></tr><tr><td rowspan=1 colspan=1>BIM0.051</td><td rowspan=1 colspan=1>0.826 0.030 0.051</td><td rowspan=2 colspan=1>0.4970.3550.332</td></tr><tr><td rowspan=1 colspan=1>BIM0.21BIM0.347</td><td rowspan=1 colspan=1>0.893 0.118 0.210.892 0.119 0.347</td></tr><tr><td rowspan=2 colspan=1>cAdv2cAdv4cAdv8</td><td rowspan=1 colspan=1>0.910 0.098 0.489</td><td rowspan=2 colspan=1>0.4370.4730.476</td></tr><tr><td rowspan=1 colspan=1>0.898 0.071 0.4480.896 0.059 0.425</td></tr><tr><td rowspan=4 colspan=1>tAdv250tAdvi000</td><td rowspan=1 colspan=1>0.891 0.041 0.198</td><td rowspan=1 colspan=1>0.433</td></tr><tr><td rowspan=1 colspan=1>0.931 0.056 0.237</td><td rowspan=1 colspan=1>0.412</td></tr><tr><td rowspan=1 colspan=1>0.916 0.061 0.258</td><td rowspan=1 colspan=1>0.425</td></tr><tr><td rowspan=1 colspan=1>0.946 0.08 0.315</td><td rowspan=1 colspan=1>0.406</td></tr></table>",
1643
+ "bbox": [
1644
+ 331,
1645
+ 487,
1646
+ 660,
1647
+ 654
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "table",
1653
+ "img_path": "images/839144506fd60b04d1c5037bff0d919bad3e9ce731059ae5bb17ebcf9245a5d9.jpg",
1654
+ "table_caption": [],
1655
+ "table_footnote": [],
1656
+ "table_body": "<table><tr><td>Attack</td><td></td><td>tarantula</td><td>merganser</td><td>nautilus</td><td>hyena</td><td>beacon</td><td>golfcart</td><td>photocopier</td><td>umbrella</td><td>pretzel</td><td>sandbar</td><td>Mean</td></tr><tr><td rowspan=\"5\">BIM</td><td>Lo</td><td>0.82</td><td>0.81</td><td>0.80</td><td>0.88</td><td>0.80</td><td>0.79</td><td>0.86</td><td>0.80</td><td>0.85</td><td>0.84</td><td>0.83</td></tr><tr><td>L2</td><td>0.05</td><td>0.02</td><td>0.03</td><td>0.04</td><td>0.02</td><td>0.01</td><td>0.04</td><td>0.02</td><td>0.02</td><td>0.04</td><td>0.03</td></tr><tr><td>L8</td><td>0.07</td><td>0.04</td><td>0.06</td><td>0.06</td><td>0.04</td><td>0.03</td><td>0.07</td><td>0.04</td><td>0.04</td><td>0.06</td><td>0.05</td></tr><tr><td>Preference</td><td>0.49</td><td>0.75</td><td>0.44</td><td>0.67</td><td>0.48</td><td>0.48</td><td>0.27</td><td>0.39</td><td>0.38</td><td>0.63</td><td>0.50</td></tr><tr><td>L0</td><td>0.54</td><td>0.55</td><td>0.52</td><td>0.77</td><td>0.48</td><td>0.42</td><td>0.70</td><td>0.48</td><td>0.69</td><td>0.71</td><td>0.59</td></tr><tr><td rowspan=\"5\">CW</td><td>L</td><td>0.05</td><td>0.01</td><td>0.03</td><td>0.03</td><td>0.02</td><td>0.01</td><td>0.04</td><td>0.01</td><td>0.02</td><td>0.04</td><td>0.03</td></tr><tr><td>L</td><td>0.08</td><td>0.04</td><td>0.06</td><td>0.07</td><td>0.04</td><td>0.03</td><td>0.07</td><td>0.04</td><td>0.05</td><td>0.06</td><td>0.05</td></tr><tr><td>Preference</td><td>0.51</td><td>0.68</td><td>0.43</td><td>0.59</td><td>0.52</td><td>0.51</td><td>0.39</td><td>0.40</td><td>0.42</td><td>0.62</td><td>0.51</td></tr><tr><td></td><td>0.94</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>L L</td><td>0.07</td><td>0.95</td><td>0.91</td><td>0.94 0.06</td><td>0.89</td><td>0.94</td><td>0.89</td><td>0.91</td><td>0.94</td><td>0.85</td><td>0.92</td></tr><tr><td rowspan=\"6\">tAdv250</td><td>L8</td><td></td><td>0.08</td><td>0.08</td><td></td><td>0.05</td><td>0.06</td><td>0.03</td><td>0.05</td><td>0.07</td><td>0.05</td><td>0.06</td></tr><tr><td></td><td>0.28</td><td>0.31</td><td>0.30</td><td>0.31</td><td>0.22</td><td>0.27</td><td>0.18</td><td>0.25</td><td>0.27</td><td>0.19</td><td>0.26</td></tr><tr><td>Preference</td><td>0.39</td><td>0.58</td><td>0.43</td><td>0.53</td><td>0.46</td><td>0.35</td><td>0.25</td><td>0.40</td><td>0.33</td><td>0.54</td><td>0.43</td></tr><tr><td>L0</td><td>0.90</td><td>0.90</td><td>0.88</td><td>0.90</td><td>0.90</td><td>0.90</td><td>0.90</td><td>0.89</td><td>0.93</td><td>0.88</td><td>0.90</td></tr><tr><td>L</td><td>0.06</td><td>0.06</td><td>0.07</td><td>0.05</td><td>0.08</td><td>0.07</td><td>0.08</td><td>0.08</td><td>0.09</td><td>0.06</td><td>0.07</td></tr><tr><td>L8 Preference</td><td>0.36 0.46</td><td>0.44 0.65</td><td>0.41 0.46</td><td>0.31 0.58</td><td>0.48 0.45</td><td>0.51 0.48</td><td>0.55 0.30</td><td>0.56 0.43</td><td>0.46 0.35</td><td>0.39 0.59</td><td>0.45 0.47</td></tr></table>",
1657
+ "bbox": [
1658
+ 173,
1659
+ 710,
1660
+ 825,
1661
+ 872
1662
+ ],
1663
+ "page_idx": 13
1664
+ },
1665
+ {
1666
+ "type": "text",
1667
+ "text": "Table 5: Class wise ${ \\mathcal { L } } _ { p }$ norm and user preference breakdown. Users are biased and pick a few classes quite often (merganser, sandbar), and do not like a few classes (photocopier) over others. ",
1668
+ "bbox": [
1669
+ 173,
1670
+ 882,
1671
+ 821,
1672
+ 911
1673
+ ],
1674
+ "page_idx": 13
1675
+ },
1676
+ {
1677
+ "type": "image",
1678
+ "img_path": "images/0a960c25a339bfbdfd4e118211a67d2ceac05684f40c127d8920823ba900ff03.jpg",
1679
+ "image_caption": [
1680
+ "Figure 8: Perturbation comparisons. Images are attacked from tarantula to beacon, golf cart, nautilus, photocopier, pretzel from left to right. Our perturbations (cAdv and tAdv) are large, structured and have spatial patterns when compared with other attacks. Perturbations from cAdv are low-frequency and locally smooth while perturbations from tAdv are primarily high-frequency and structured. Note gray color indicates no perturbations. "
1681
+ ],
1682
+ "image_footnote": [],
1683
+ "bbox": [
1684
+ 223,
1685
+ 94,
1686
+ 772,
1687
+ 833
1688
+ ],
1689
+ "page_idx": 14
1690
+ },
1691
+ {
1692
+ "type": "table",
1693
+ "img_path": "images/d0d387c0dcec061636b182102c8c415a7fd77b3743afef98fb38dc20448785e0.jpg",
1694
+ "table_caption": [
1695
+ "A.2 ADDITIONAL RESULTS "
1696
+ ],
1697
+ "table_footnote": [
1698
+ "Whitebox target attack success rate. Our attacks are highly successful on different models across all strategies. tAdv results are for $\\alpha = 2 5 0$ , $\\beta = 1 0 ^ { - 3 }$ and iter $= 1$ . "
1699
+ ],
1700
+ "table_body": "<table><tr><td colspan=\"2\">Model</td><td>Resnet50</td><td>Dense121</td><td>VGG19</td></tr><tr><td colspan=\"2\">Accuracy</td><td>76.15</td><td>74.65</td><td>74.24</td></tr><tr><td rowspan=\"7\">Sseeess Arkea</td><td>Random Ts</td><td>99.67</td><td>99.72</td><td>96.16</td></tr><tr><td>Random Target Ts</td><td>99.72</td><td>99.89</td><td>99.94</td></tr><tr><td>Nearest Target Ts</td><td>97.99</td><td>99.72</td><td>99.50</td></tr><tr><td>cAdv4 25 hints</td><td>99.78</td><td>99.83</td><td>99.93</td></tr><tr><td>cAdv4 50 hints</td><td>99.78</td><td>99.83</td><td>100.00</td></tr><tr><td>cAdv4 100 hints</td><td>99.44</td><td>99.50</td><td>99.93</td></tr></table>",
1701
+ "bbox": [
1702
+ 173,
1703
+ 143,
1704
+ 517,
1705
+ 243
1706
+ ],
1707
+ "page_idx": 15
1708
+ },
1709
+ {
1710
+ "type": "table",
1711
+ "img_path": "images/b32659907e3942f3f1b389f1349e6b14b4af30afcb464df9e3a8a58600fc4388.jpg",
1712
+ "table_caption": [
1713
+ "Table 6: Ablation Studies. "
1714
+ ],
1715
+ "table_footnote": [],
1716
+ "table_body": "<table><tr><td>α β</td><td>250</td><td>500</td><td>750</td><td>1000</td></tr><tr><td>0</td><td>25.00</td><td>99.61</td><td>98.55</td><td>95.92</td></tr><tr><td>10-4</td><td>99.88</td><td>99.61</td><td>98.55</td><td>95.92</td></tr><tr><td>10-3</td><td>97.99</td><td>99.27</td><td>99.66</td><td>99.50</td></tr><tr><td>10-2</td><td>96.26</td><td>95.42</td><td>96.32</td><td>96.59</td></tr></table>",
1717
+ "bbox": [
1718
+ 521,
1719
+ 132,
1720
+ 782,
1721
+ 214
1722
+ ],
1723
+ "page_idx": 15
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "tAdv ablation study. Whitebox target success rate with nearest target $T _ { s }$ (texture source). In columns, we have increasing texture weight $( \\alpha )$ and in rows, we have increasing adversarial cross-entropy weight $( \\beta )$ . All attacks are done on Resnet50. ",
1728
+ "bbox": [
1729
+ 526,
1730
+ 214,
1731
+ 779,
1732
+ 310
1733
+ ],
1734
+ "page_idx": 15
1735
+ },
1736
+ {
1737
+ "type": "image",
1738
+ "img_path": "images/338ce3b799792303bb653b8fdcfc46b5d5c524075d602fed70070bccd9adb34d.jpg",
1739
+ "image_caption": [
1740
+ "Figure 9: Additional qualitative examples for controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to golf-cart. Even numbered rows visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the location we sample hints from. Sampling hints across more clusters gives less color variety. "
1741
+ ],
1742
+ "image_footnote": [],
1743
+ "bbox": [
1744
+ 212,
1745
+ 353,
1746
+ 787,
1747
+ 830
1748
+ ],
1749
+ "page_idx": 15
1750
+ },
1751
+ {
1752
+ "type": "image",
1753
+ "img_path": "images/c5de302b9eb8610441b2904e8ef667e2c43474007fbdae082a0c017ff61d4dbb.jpg",
1754
+ "image_caption": [
1755
+ "Figure 10: Images attacked with the method of (Hosseini & Poovendran, 2018) are not realistic, as these examples show. Compare Fig 12, showing results of our color attack. Similar qualitative results for CIFAR-10 are visible in Hosseini & Poovendran (2018). "
1756
+ ],
1757
+ "image_footnote": [],
1758
+ "bbox": [
1759
+ 174,
1760
+ 148,
1761
+ 825,
1762
+ 337
1763
+ ],
1764
+ "page_idx": 16
1765
+ },
1766
+ {
1767
+ "type": "image",
1768
+ "img_path": "images/92288996c16f4cc7fda4076186b63e1a00ce1168d673775295b2b020c53eed77.jpg",
1769
+ "image_caption": [
1770
+ "Figure 11: Additional qualitative examples for tAdv. Texture transferred from random images (row 1), random images from adversarial target class (row 2) and from the nearest neighbor of the victim image from the adversarial target class (row 3). All examples are misclassified from Merganser to Umbrella. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight $\\alpha$ increases (left to right). "
1771
+ ],
1772
+ "image_footnote": [],
1773
+ "bbox": [
1774
+ 179,
1775
+ 483,
1776
+ 823,
1777
+ 803
1778
+ ],
1779
+ "page_idx": 16
1780
+ },
1781
+ {
1782
+ "type": "image",
1783
+ "img_path": "images/c4db4a0b5a7776b50c75b3f1b22a265b4b7fe14078b1bff2faa5f499cec851d8.jpg",
1784
+ "image_caption": [
1785
+ "Figure 12: Captioning attack. We attack the second word of each caption to {dog, bird} and show the corresponding change in attention mask of that word. For tAdv we use the nearest neighbor selection method and for cAdv we initialize with all groundtruth color hints. "
1786
+ ],
1787
+ "image_footnote": [],
1788
+ "bbox": [
1789
+ 189,
1790
+ 199,
1791
+ 808,
1792
+ 775
1793
+ ],
1794
+ "page_idx": 17
1795
+ },
1796
+ {
1797
+ "type": "image",
1798
+ "img_path": "images/8c8fbb3896dd6b66b4180dcd97895bec534939a21f6e28428e484a34ea71d246.jpg",
1799
+ "image_caption": [
1800
+ "Figure 13: Randomly sampled, semantically manipulated, unrestricted adversarial examples and their perturbations. (a) Adversarial examples generated by cAdv attacking Hints and mask with 50 hints. (c) Adversarial examples generated by tAdv with $\\alpha = 2 5 0$ , $\\beta = \\bar { 1 0 } ^ { - 3 }$ and iter $= 1$ using nearest target $T _ { s }$ . (b) and (d) are their respective perturbations. Note that diagonal images are groundtruth images and gray pixels indicate no perturbation. "
1801
+ ],
1802
+ "image_footnote": [],
1803
+ "bbox": [
1804
+ 207,
1805
+ 222,
1806
+ 789,
1807
+ 726
1808
+ ],
1809
+ "page_idx": 18
1810
+ }
1811
+ ]
parse/train/Sye_OgHFwH/Sye_OgHFwH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Sye_OgHFwH/Sye_OgHFwH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyuWNMZ0W/SyuWNMZ0W.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIRECTING GENERATIVE NETWORKS WITH WEIGHTED MAXIMUM MEAN DISCREPANCY
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The maximum mean discrepancy (MMD) between two probability measures $\mathbb { P }$ and $\mathbb { Q }$ is a metric that is zero if and only if all moments of the two measures are equal, making it an appealing statistic for two-sample tests. Given i.i.d. samples from $\mathbb { P }$ and $\mathbb { Q }$ , Gretton et al. (2012) show that we can construct an unbiased estimator for the square of the MMD between the two distributions. If $\mathbb { P }$ is a distribution of interest and $\mathbb { Q }$ is the distribution implied by a generative neural network with stochastic inputs, we can use this estimator to train our neural network. However, in practice we do not always have i.i.d. samples from our target of interest. Data sets often exhibit biases—for example, under-representation of certain demographics—and if we ignore this fact our machine learning algorithms will propagate these biases. Alternatively, it may be useful to assume our data has been gathered via a biased sample selection mechanism in order to manipulate properties of the estimating distribution $\mathbb { Q }$ .
8
+
9
+ In this paper, we construct an estimator for the MMD between $\mathbb { P }$ and $\mathbb { Q }$ when we only have access to $\mathbb { P }$ via some biased sample selection mechanism, and suggest methods for estimating this sample selection mechanism when it is not already known. We show that this estimator can be used to train generative neural networks on a biased data sample, to give a simulator that reverses the effect of that bias.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Neural networks with stochastic input layers can be trained to approximately sample from an arbitrary probability distribution $\mathbb { P }$ based on samples from $\mathbb { P }$ (Goodfellow et al., 2014). Generating simulations from complex distributions has applications in a large number of fields: We can automatically generate illustrations for text (Zhang et al., 2017) or streams of video (Vondrick et al., 2016); we can simulate novel molecular fingerprints to aid scientific exploration (Kadurin et al., 2017); and, we can synthesize medical time-series data that can be shared without violating patient privacy (Esteban et al., 2017).
14
+
15
+ In this paper, we consider the setting of a feedforward neural network (referred to as the generator) that maps random noise inputs $z \in \mathbb { R } ^ { d }$ to some observation space $\mathcal { X }$ . The weights of the neural network are trained to minimize some loss function between the resulting simulations and exemplars of real data. The general form of the resulting distribution $\mathbb { Q }$ over simulations $G ( z )$ is determined by the architecture of the generator—which governs the form of the mapping $G$ —and by the loss function used to train the generator. Generative adversarial networks (Goodfellow et al., 2014) use dynamically varying, adversarially learned loss functions specified in terms of the output of a classifier. Other generative networks use a loss function defined using a distributional distance or divergence between the simulation distribution $\mathbb { Q }$ and a target distribution $\mathbb { P }$ (Arjovsky et al., 2017; Nowozin et al., 2016; Zhao et al., 2017a), requiring the generator to mimic the variance in a collection of data points rather than simply converge to a single mode. In particular, the maximum mean discrepancy (Gretton et al., 2012) has demonstrated good performance as a loss function in this setting (Sutherland et al., 2016; Li et al., 2017; Sutherland et al., 2017), since it reduces to zero if and only if all moments of two distributions are equal, requiring the generator to reproduce the full range of variation found in the data.
16
+
17
+ These approaches, like most machine learning methods, assume our data is a representative sample from the distribution of interest. If this assumption is correct, minimizing the distributional distance between the simulations and the data is equivalent to learning a distribution that is indistinguishable under an appropriate two-sample test from our target distribution. However, we run into problems if our data is not in fact a representative sample from our target distribution—for instance, if our data gathering mechanism is susceptible to sample selection bias. The problem of machine learning algorithms replicating and even magnifying human biases is gathering increasing awareness (Bolukbasi et al., 2016; Zhao et al., 2017b), and if we believe our dataset suffers from such biases—for example, if our audio dataset contains primarily male speakers or our image dataset contains primarily white faces – we will typically want to take steps to correct this bias.
18
+
19
+ Even if our data is representative of the underlying distribution, we might want to generate samples from a modified version of this distribution. For example, we might want to alter the demographics of characters in a scene to fit a story-line. In this setting, we can treat our desired modified distribution as our target distribution, and treat our data as if they were sampled from this distribution subject to an appropriately biased sample selection mechanism.
20
+
21
+ If we know the form of our sample selection bias, we can reformulate our loss function to penalize the generator based on the difference between simulated data and the unbiased distribution of interest, which we will refer to as our target distribution. After a review of relevant background information in Section 2, we show in Section 3 that, given a function that describes how our observed data deviates from this target distribution, we can construct an estimator of the MMD between the generator and the target distribution.
22
+
23
+ In practice, we will not know the function linking the target distribution and the empirical data distribution. However, we can approximate this function based on user-provided examples of data points that are over- and under-represented. In Section 4, we discuss ways to estimate this function, and in Section 5 we discuss related work in survey sampling statistics and bias reduction. We demonstrate the efficacy and applicability of our approach in Section 6.
24
+
25
+ # 2 BACKGROUND
26
+
27
+ # 2.1 GENERATIVE NETWORKS
28
+
29
+ Generative networks are a class of models which take a collection of data lying in some observation space $\mathcal { X }$ as input, and aim to generate simulations that are similar to that data – or more generally, whose empirical distribution is close to the distribution underlying the data. These models do not use or require an explicit probability distribution for the data, but instead rely on the fact that sufficiently complex neural networks have the capacity to approximate any arbitrary function (Hornik et al., 1989). We can therefore construct a method of simulating from an arbitrarily complex probability distribution $\mathbb { Q }$ on $\mathcal { X }$ by using a neural network generator $G : \mathbb { R } ^ { d } \mathcal { X }$ to transform random $d$ - dimensional inputs $z$ into simulations $G ( z ) \in \mathcal { X }$ . In order to minimize the difference between the probability distribution $\mathbb { Q }$ over simulations $G ( z )$ and the target distribution $\mathbb { P }$ , we train the neural network to minimize a loss function between simulations $G ( \bar { z } ) \sim \mathbb { Q }$ and data $x \sim \mathbb { P }$
30
+
31
+ The most common forms of generative network are generative adversarial networks (GANs, Goodfellow et al., 2014), so called because the loss function is dynamically defined in terms of the output of an adversarially learned classifier. This classifier—itself a neural network—is trained to differentiate between two classes, data and simulations, and for a given observation returns a score under the two classes (loosely corresponding to a probability of belonging to that class). The generator’s loss function is a function of the score assigned to simulations under the true data class, so that reducing the loss function leads to an increased chance of fooling the classifier.
32
+
33
+ While this adversarial framework has the advantage of a dynamically evolving and increasingly discriminative loss function, a disadvantage is that the generator can successfully minimize this loss function by mimicking only a subset of the data, leading to a phenomenon known as mode collapse (Salimans et al., 2016; Che et al., 2017). To avoid this, recent works have incorporated estimators of distributional distances between $\mathbb { P }$ and $\mathbb { Q }$ , that consider the overall distributions rather than just element-wise distances between samples. For example, the maximum mean discrepancy (Gretton et al., 2012; Sutherland et al., 2016; Li et al., 2017; Sutherland et al., 2017) between two distributions, which we explore further in Section 2.2, reduces to zero if and only if all moments of the two distributions are the same. Other distributional distances that have been used include the Wasserstein distance and the Cramer distance (Arjovsky et al., 2017; Bellemare et al., 2017). In some cases, these distance-based generative networks include adversarial components in their loss functions; for example the MMD-GAN of Li et al. (2017) adversarially learns parameters of the maximum mean discrepancy metric.
34
+
35
+ # .2 MAXIMUM MEAN DISCREPANCY BETWEEN TWO DISTRIBUTIONS
36
+
37
+ The maximum mean discrepancy (MMD, Gretton et al., 2012) projects two distributions $\mathbb { P }$ and $\mathbb { Q }$ into a reproducing kernel Hilbert space (RKHS) $\mathcal { H }$ , and looks at the maximum mean distance between the two projections, i.e.
38
+
39
+ $$
40
+ \mathbf { M M D } [ \mathbb { P } , \mathbb { Q } ] : = \operatorname* { s u p } _ { f \in \mathcal { H } } \left( { \mathbf { E } } _ { x \sim \mathbb { P } } [ f ( x ) ] - { \mathbf { E } } _ { y \sim \mathbb { Q } } [ f ( y ) ] \right) .
41
+ $$
42
+
43
+ If we specify the kernel mean embedding $\mu _ { \mathbb { P } }$ of $\mathbb { P }$ as $\begin{array} { r } { \mu _ { \mathbb { P } } = \int k ( x , \cdot ) d \mathbb { P } ( x ) } \end{array}$ , where $k ( \cdot , \cdot )$ is the characteristic kernel defining the RKHS, then we can write the square of this distance as
44
+
45
+ $$
46
+ \mathbf { M M D } ^ { 2 } [ \mathbb { P } , \mathbb { Q } ] = | | \mu _ { \mathbb { P } } - \mu _ { \mathbb { Q } } | | _ { \mathcal { H } } ^ { 2 } = \mathbb { E } _ { \mathbb { P } } [ k ( x , x ^ { \prime } ) ] - 2 \mathbb { E } _ { \mathbb { P } , \mathbb { Q } } [ k ( x , y ) ] + \mathbb { E } _ { \mathbb { Q } } [ k ( y , y ^ { \prime } ) ] .
47
+ $$
48
+
49
+ Since we have projected the distributions into an infinite-dimensional space, the distance between the two distributions is zero if and only if all their moments are the same.
50
+
51
+ In order to be a useful loss function for training a neural network, we must be able to estimate the MMD from data, and also take derivatives of this estimate with respect to the network parameters. We can construct an unbiased estimator of square of the MMD (Gretton et al., 2012) using $m$ samples $x _ { i } \sim \mathbb { P }$ and $n$ samples $y _ { i } \sim \mathbb { Q }$ as
52
+
53
+ $$
54
+ \begin{array} { r l r } { \widehat { \boldsymbol { \boldsymbol { \mathrm { M M D } } } } ^ { 2 } [ \mathbb { P } , \mathbb { Q } ] = } & { = } & { \displaystyle \frac { 1 } { m ( m - 1 ) } \sum _ { i = 1 } ^ { m } \sum _ { j \neq i } ^ { m } k ( x _ { i } , x _ { j } ) + \frac { 1 } { n ( n - 1 ) } \sum _ { i = 1 } ^ { n } \sum _ { j \neq i } ^ { n } k ( y _ { i } , y _ { j } ) } \\ & { } & { \displaystyle - \frac { 2 } { m n } \sum _ { i = 1 } ^ { m } \sum _ { j = 1 } ^ { n } k ( x _ { i } , y _ { j } ) . } \end{array}
55
+ $$
56
+
57
+ If $\mathbb { P }$ is the distribution underlying our data and $\mathbb { Q }$ is an approximating distribution represented using a neural network, we can differentiate the individual kernel terms in Equation 1 with respect to the simulated data $y _ { i }$ , and hence (via the chain rule) with respect to the parameters of the neural networks.
58
+
59
+ The MMD has been successfully used as a loss function in several generative adversarial networks. Dziugaite et al. (2015) and Li et al. (2015) propose training a feedforward neural network to minimize the MMD between simulations and data; Li et al. (2015) also propose minimizing the MMD between simulations and data that has been encoded using a pre-trained autoencoder. The generator in the MMD-GAN of Li et al. (2017) also aims to reduce the MMD between simulations and data, but learns the characteristic kernel in an adversarial manner by combining the kernel with a dynamically learned autoencoder.
60
+
61
+ # 3 WEIGHTED MMD
62
+
63
+ If we have unbiased samples from two distributions $\mathbb { P }$ and $\mathbb { Q }$ , the estimator described in Equation 1 gives an unbiased estimate of the MMD between those two distributions. In a generative network context, we can therefore use this estimator as a loss function in order to modify the generator associated with $\mathbb { Q }$ so that the MMD between the two distributions is minimized.
64
+
65
+ However, this relies on having access to unbiased samples from our target distribution $\mathbb { P }$ . In practice, our data may have been gathered using biased sampling practices: A dataset of images of faces may over-represent white faces; datasets generated from medical experiments may over-represent male patients; datasets generated from on-campus studies may over-represent college-aged students. If our data is a biased sample of our target distribution, this estimator will estimate the difference between our simulations and the biased empirical distribution, so our simulations will recreate the biases therein.
66
+
67
+ In this section, we propose an estimator for the MMD between two distributions $\mathbb { P }$ and $\mathbb { Q }$ when we have access to $\mathbb { P }$ only via some biased sample selection mechanism. Concretely, we assume that $\mathbb { P }$ is our target of interest, but our observed data are actually sampled from a related distribution $T ( x ) \mathbb { P } ( x )$ . We can think of $T ( x )$ as an appropriately scaled “thinning function” $\widetilde { T } ( x ) = Z T ( x )$ that characterizes the sample selection mechanism. In other words, we assume that candidate samples $x ^ { * }$ are sampled from $\mathbb { P }$ , and these candidates are selected into our pool with probability $\tilde { T } ( \hat { x } ^ { * } )$ ; the normalizing constant $Z$ ensures that $\begin{array} { r } { T ( x ) \mathbb { P } ( x ) = \frac { \widetilde { T } ( x ) \mathbb { P } ( x ) } { Z } } \end{array}$ is a valid probability distribution. While in the remainder of this paper we will continue to use the language of biased sample selection mechanisms, we note that this framework can also be used if our data are unbiased samples but we want to explicitly modulate our target distribution via some function $F ( x )$ so that we generate simulations from $F ( x ) \mathbb { P } ( x )$ ; in this setting we can treat the transformed target as $\mathbb { P }$ and let $T ( x ) =$ $1 / F ( x )$ .
68
+
69
+ For now, we assume that our thinning function $\widetilde { T } ( x )$ is known; we discuss ways to estimate or specify it in Section 4. Our estimation problem becomes an importance sampling problem: We have samples from $T ( \cdot ) \mathbb { P } ( \cdot )$ , and we want to use these to estimate $\scriptstyle \mathbf { \dot { M } M D } ^ { 2 } [ \mathbb { P } , \mathbb { Q } ]$ , which is a function of the target distribution $\mathbb { P }$ . Importance sampling provides a method for constructing an estimator for the expectation of a function $\phi ( x )$ with respect to a distribution $\mathbb { P }$ , by taking an appropriately weighted sum of evaluations of $\phi$ at values sampled from a different distribution $\mathbb { P } ^ { \prime }$ . If we knew the normalizing constant $Z$ , we could construct an unbiased estimator of the MMD between $\mathbb { P }$ and $\mathbb { Q }$ by weighting each function evaluation associated with sample $x$ from $T ( x ) \mathbb { P } ( x )$ with the likelihood ratio $\mathbb { P } ( x ) / T ( x ) \mathbb { P } ( x ) = 1 / T ( x )$ , i.e.
70
+
71
+ $$
72
+ \begin{array} { c } { { \displaystyle \widehat { M } _ { u } = \frac { 1 } { m ( m - 1 ) } \sum _ { i = 1 } ^ { m } \sum _ { j \neq i } ^ { m } \frac { 1 } { T ( x _ { i } ) T ( x _ { j } ) } k ( x _ { i } , x _ { j } ) + \frac { 1 } { n ( n - 1 ) } \sum _ { i = 1 } ^ { n } \sum _ { j \neq i } ^ { n } k ( y _ { i } , y _ { j } ) } } \\ { { - \frac { 2 } { m n } \sum _ { i = 1 } ^ { m } \sum _ { j = 1 } ^ { n } \frac { 1 } { T ( x _ { i } ) } k ( x _ { i } , y _ { j } ) . } } \end{array}
73
+ $$
74
+
75
+ However, the normalizing constant $Z$ depends on both $\widetilde { T }$ and $\mathbb { P }$ . We will not, in general, know an analytic form for $\mathbb { P }$ , so we will not be able to calculate $Z$ . Since we will only be able to evaluate $T ( x )$ up to a normalizing constant, we cannot work with Equation 2 directly. Instead, we can construct a biased estimator $\widehat { M _ { d } }$ by using self-normalized importance weights,
76
+
77
+ $$
78
+ \widehat { M } _ { b } = \sum _ { i = 1 } ^ { m } \sum _ { j \neq i } ^ { m } w ( x _ { i } ) w ( x _ { j } ) k ( x _ { i } , x _ { j } ) + \frac { 1 } { n ( n - 1 ) } \sum _ { i = 1 } ^ { n } \sum _ { j \neq i } ^ { n } k ( y _ { i } , y _ { j } ) - \frac { 2 } { n } \sum _ { i = 1 } ^ { m } \sum _ { j = 1 } ^ { n } w ( x _ { i } ) k ( x _ { i } , y _ { j } )
79
+ $$
80
+
81
+ where $\begin{array} { r } { w ( x _ { i } ) = \frac { 1 / \widetilde { T } ( x _ { i } ) } { \sum _ { j = 1 } ^ { m } 1 / \widetilde { T } ( x _ { j } ) } } \end{array}$ .
82
+
83
+ We refer to the estimator $\widehat { M _ { b } }$ in Equation 3 as the weighted MMD estimator. While this estimator is biased due to the self-normalized weights, this bias will decrease as $1 / m$ where $m$ is the number of samples from $T ( \cdot ) \mathbb { P } ( \cdot )$ . Further, this biased estimator will often have lower variance than the unbiased estimator in Equation 2 (Robert & Casella, 2004).
84
+
85
+ # 4 LEARNING THE THINNING FUNCTION $\widetilde { T } ( x )$
86
+
87
+ In Section 3, we assumed that our target distribution $\mathbb { P }$ is only accessible via a biased sample selection mechanism characterized by a thinning function $\widetilde { T } ( x )$ , so that our samples are actually distributed (up to a normalizing constant) according to $\widetilde { T } ( \boldsymbol { x } ) \mathbb { P } ( \boldsymbol { x } )$ . If we know the thinning function $\widetilde { T } ( x )$ that describes our sample selection mechanism, we can use Equation 3 directly in the loss function of our generator.
88
+
89
+ However, in practice we will not have access to this thinning function. Rather, we are likely to be in a situation where a practitioner has noticed that one or more classes is over- or under-represented, either in the dataset or in simulations from a generative network trained on the data. If our dataset is fully labeled, we could either manually re-balance our dataset to match the target distribution, or use these labels to estimate $\tilde { T }$ by comparing the number of data points in various subsets of $\mathcal { X }$ with the expected number under our target distribution.
90
+
91
+ Even if we do not have a fully labeled dataset, we might be able to label a subset of examples and use these to estimate $T ( x )$ . For example, assume we have an image dataset with more pictures of men than women, and that we select and label a random subset of this dataset. A reasonable estimate for our thinning function would be to set $T ( \mathrm { m e n } ) = 1$ and approximate $T ( \mathrm { w o m e n } )$ by the sample ratio of men to women in our labeled subset. In this simple two-class setting, to extrapolate values of $T$ across our observation space $X$ we can run a logistic regression using the labeled subset.
92
+
93
+ In a more complicated problem, we may need to deploy more sophisticated regression tools, but the problem remains one of function estimation from labeled data. Given a set of labeled exemplars and user-specified estimates of the thinning function evaluated at those exemplars (which could be based on demographic statistics or domain knowledge, or desired statistics of the simulation distribution), we could learn a thinning function $T ( x )$ using techniques such as neural network function estimation or Gaussian process regression.
94
+
95
+ # 5 RELATED WORK
96
+
97
+ While it has received little attention in the deep learning literature, the problem of correcting for biased sample selection mechanisms is familiar in the field of survey statistics. Our estimator is related to inverse probability weighting (IPW), originally proposed by Horvitz & Thompson (1952) and still in wide use today (e.g. Mansournia & Altman, 2016). IPW is used in stratified random sampling study designs to correct parameter estimates for intentional bias in sampling. Under IPW, each data point is assigned a weight proportionate to the inverse of its selection probability, so that samples from classes which are disproportionately unlikely to be seen in the sample are assigned increased weights to counteract the undersampling of their classes. This is the same form as the weights in our sampling scheme, and serves a similar purpose, although it is not placed in the context of the MMD between two distributions and assumes that the probability of selection is known for each observation.
98
+
99
+ This work also follows increased awareness of the effects of biased data on machine learning outcomes, and interest in mitigating these effects. For example, Caliskan et al. (2017) and Bolukbasi et al. (2016) explore how biases and prejudices expressed in our language manifest in the word embeddings and representations found. Zhao et al. (2017b) find that popular image labeling datasets exhibit gender stereotypes and that algorithms trained on these datasets tend to amplify these stereotypes.
100
+
101
+ # 6 EVALUATION
102
+
103
+ We consider two experimental settings: One where the form of the sampling bias is known, and one where it is estimated from data.
104
+
105
+ # 6.1 CORRECTING FOR BIASED SAMPLE SELECTION WITH A KNOWN THINNING FUNCTION
106
+
107
+ In Section 3, we discussed how, for a given thinning function $\widetilde { T } ( x )$ , we can construct an estimator for the MMD between the distribution $\mathbb { Q }$ implied by our generator and the underlying unbiased data distribution $\mathbb { P }$ . To demonstrate the efficacy of this in practice, we assume $\mathbb { P }$ to be a mixture of two Gaussians (Figure 1a), and let $\begin{array} { r } { \widetilde { T } = \frac { \mathsf { \bar { \rho } } _ { 0 . 5 } } { 1 + \exp ( 1 0 ( x - 1 ) ) } + \mathsf { \bar { 0 } } . 5 } \end{array}$ be a scaled logistic function as shown in Figure 1b. The resulting data is distributed according to Figure 1c.
108
+
109
+ We construct a simple generator network taking univariate random noise as input, and consisting of six fully-connected layers, each with three nodes and exponential linear unit activations, and with a univariate output with no activation. We train this network using both the standard unbiased MMD
110
+
111
+ ![](images/7aacc16a56bf12eeb6be717b6613a40a417beb992777bd5af63e5666555011da.jpg)
112
+
113
+ ![](images/3f5c0eac359a26d961b834e96bec7b0a6c4fed4d50c6297945c38ed15c4d5107.jpg)
114
+
115
+ ![](images/06ae327a5fad1bf87dc87eb272572d8d59131835adeb160506ba22f947b9b10b.jpg)
116
+ (c) Observed distribution
117
+
118
+ (a) Target distribution $x \sim \bar { \mathbb { P } } ( x ) = 0 . 5 \mathcal { N } ( 0 , 0 . 5 ) +$ $0 . 5 \mathcal { N } ( 2 , 0 . 5 )$
119
+
120
+ (d) Simulations using standard MMD estimator (with PDF of $T ( x ) \mathbb { P } ( x )$ for comparison)
121
+
122
+ ![](images/f5def123fb06980fd1e88eb246a74795dc78e139e8f49ff7122923770c7a2b62.jpg)
123
+ Figure 1: Output of GANs trained on data sampled according to $T ( x ) \mathbb { P } ( x )$ . Simulation plots PDFs are computed using NumPy’s random normal sampler, mixed to create the appropriate mode ratios.
124
+
125
+ ![](images/a64c49077e37ff61c4666331367883dd199fc765c973539e475a5db6635f88c0.jpg)
126
+ (e) Simulations using weighted MMD estimator (with PDF of $\mathbb { P } ( x )$ for comparison)
127
+
128
+ estimator of Equation 1, and the weighted MMD estimator proposed in Equation 3, using ADAM optimization with a learning rate of 0.001.
129
+
130
+ Figures 1e and 1d show histograms of samples generated using the two estimators. We see that, as expected, the standard MMD estimator does a good job of replicating the empirical distribution of the data presented to it. The weighted MMD estimator, however, is able to replicate the target distribution $\mathbb { P }$ , even though it only has access to samples from $T ( x ) \mathbb { P } ( x )$ .
131
+
132
+ # 6.2 LEARNING AND CORRECTING FOR A BIASED SAMPLE SELECTION MECHANISM
133
+
134
+ In practice we are unlikely to know a functional form for $\widetilde { T } ( x )$ , the function that describes the form of the sampling bias. Here we consider the case where we must estimate this function from data. We consider as an example a dataset containing zeros and ones from the MNIST dataset. We assume our target distribution contains $50 \%$ zeros and $50 \%$ ones, but that due to a biased selection procedure our data contains $80 \%$ zeros and $20 \%$ ones.
135
+
136
+ We hypothesise that the practitioner using this dataset is aware that there is a discrepancy, but does not know how to translate this into a functional form for $\widetilde { T }$ . Instead, the practitioner labels examples of each class, and supplies an estimate of how much each class is under-represented. In our example, we assume the practitioner has labeled 800 zeros and 200 ones, and estimates that ones are undersampled according to a thinning probability of 0.75. We note that this number can easily be estimated from a data sample if the practitioner knows the global ratio of zeros and ones.
137
+
138
+ Table 1: Comparison of different estimators on the proportion of generated images classified as ones.
139
+
140
+ <table><tr><td>Standard MMD</td><td>Weighted MMD (initialized to standard MMD)</td><td>Weighted MMD (random initialization)</td></tr><tr><td>0.2201 ±0.0027</td><td>0.3316 ± 0.0028</td><td>0.3888 ± 0.0027</td></tr></table>
141
+
142
+ ![](images/c49db018f7cfa2478f872ec32baa2858bfd3b4aeba60a03d7965a5d270163485.jpg)
143
+ (a) Subset of real images used to train GANs (50 zeros, 14 ones)
144
+
145
+ ![](images/e0998658d6585d8b00805e69f5602390d4bed21b0d816186957e74df04e982a6.jpg)
146
+ (b) Simulations from GAN trained with weighted MMD, randomly initialized (40 zeros, 24 ones)
147
+
148
+ ![](images/d4667bf229d1d82687a71753d56e4725067be1a52846039cfe8874faa1cf5bf5.jpg)
149
+
150
+ (c) Simulations from GAN trained with MMD (53 zeros, 11 ones)
151
+
152
+ ![](images/8695a4a363b021bb1b0eb97740068f60209475352eb4162f7fe864e89c64bc32.jpg)
153
+ (d) Simulations from GAN trained with weighted MMD, initialized to MMD (47 zeros, 17 ones)
154
+ Figure 2: Data used to train the GANs, and simulations from GANs trained using unweighted and weighted MMD.
155
+
156
+ ![](images/00331afd357bd0ed43a608eb27ddfec7d4dcc7fd8fa6aca331817beadcc138e4.jpg)
157
+ Figure 3: Proportion of images classified as ones, over time, for a network initially learned using the standard MMD estimator. The loss function switches to the weighted MMD estimator at iteration 10000, leading to an increase in the proportion of images classified as ones.
158
+
159
+ We use an architecture based on the MMD-GAN of Li et al. (2017), which incorporates an autoencoder, and trains a generator based on the MMD between the encoded representations of the data and of the simulations. The autoencoder is simultaneously learned in an adversarial manner, and serves to optimize the kernel used in MMD to maximally discriminate between the two distributions. Our experiments are run on an adapted version of the original MMD-GAN Torch code, which will be made available after publication.
160
+
161
+ Since the autoencoder provides a low-dimensional embedding of our images, we specify our thinning function $\widetilde { T } ( x )$ on the space spanned by the encoder. After each update of the autoencoder, we estimate $\widetilde { T }$ with the labeled set, using appropriately scaled logistic regression. We then replace the standard MMD estimator in the loss function with our weighted estimator, calculating using the estimated $\widetilde { T }$ .
162
+
163
+ One could imagine using the weighted estimator in two scenarios. We might be already aware of the bias in our data, in which case we would simply train our GAN using the weighted MMD estimator. Alternatively, we might only become aware of the bias after already training a GAN using the standard estimator, in which case we might initialize our network weights to the resulting pretrained values. To simulate these scenarios, we trained two networks using the weighted estimator: one initialized to a pre-trained MMD-GAN, and one randomly initialized.
164
+
165
+ Figure 2a shows a random subset of the data used to train the GANs. Due to the biased sample selection method, there are significantly more zeros than ones. Figure 2c shows simulations generated by minimizing the standard MMD estimator using this biased data; as expected, it reflects the greater proportion of zeros compared to ones. By contrast, the simulations trained by minimizing the weighted MMD estimator, which estimates the MMD from the underlying target distribution as estimated by our thinning function, shows a marked increase in the number of ones, without any obvious difference in simulation quality. All networks were trained for 10,000 iterations.
166
+
167
+ To further quantify these results, we used the (unscaled) logistic regression used to specify the thinning function to classify the simulated images as zeros or ones. Table 1 shows the proportion of ones obtained using the three scenarios (standard MMD estimator, weighted MMD estimator initialized with a pre-trained network, and weighted MMD estimator with random initialization). We see that, as expected, the network trained using the standard MMD estimator produces around $20 \%$ ones, reflecting the proportion in the dataset. The networks trained using the weighted MMD estimator achieve a significanly higher percent of ones, with the randomly initialized network performing better than the pre-trained network.
168
+
169
+ While both the networks trained using the weighted MMD estimator simulate a higher proportion of ones than is present in our dataset, neither reaches the 50:50 ratio in our assumed target distribution. We believe this is due to inability of the network to fully converge to a solution that gives zero loss. This interpretation is supported by the fact that the randomly initialized network converges to a better solution than the pre-initialized network, despite the architecture and objective function being the same in both cases. To visualize the changes introduced by using the weighted MMD estimator, in Figure 3 we plot the proportion of ones on a network that is trained for 10,000 iterations using the standard MMD estimator, then for 10,000 iterations using the weighted MMD estimator. We see that the proportion quickly rises after the loss function is altered.
170
+
171
+ # 7 DISCUSSION AND FUTURE WORK
172
+
173
+ We have presented an asymptotically unbiased estimator for the MMD between two distributions $\mathbb { P }$ and $\mathbb { Q }$ , for use when we only have access to $\mathbb { P }$ via a biased sampling mechanism. This mechanism can be specified by a known or estimated thinning function $\tilde { T } ( \bar { x } )$ , where samples are then assumed to come from a distribution ${ \widetilde { T } } ( x ) \mathbb { P } ( x ) / Z$ . We show that this estimator can be used to manipulate the distribution of simulations learned by a generative network, in order to correct for sampling bias or to explicitly change the distribution according to a user-specified function.
174
+
175
+ When the thinning function is unknown, it can be estimated from labeled data. We demonstrate this in an interpretable experiment using partially labeled images, where we jointly estimate the thinning function alongside the generator weights. An obvious next step is to explore the use of more sophisticated thinning functions appropriate for complex, multimodal settings.
176
+
177
+ # REFERENCES
178
+
179
+ M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein GAN. arXiv:1701.07875, 2017.
180
+ M.G. Bellemare, I. Danihelka, W. Dabney, S. Mohamed, B. Lakshminarayanan, S. Hoyer, and R. Munos. The Cramer distance as a solution to biased Wasserstein gradients. arXiv:1705.10743, 2017.
181
+ T. Bolukbasi, K.-W. Chang, J.Y. Zou, V. Saligrama, and A.T. Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In NIPS, 2016.
182
+ A. Caliskan, J.J. Bryson, and A. Narayanan. Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334):183–186, 2017. doi: 10.1126/science.aal4230.
183
+ T. Che, Y. Li, A.P. Jacob, Y. Bengio, and W. Li. Mode regularized generative adversarial networks. In ICLR, 2017.
184
+ G.K. Dziugaite, D.M. Roy, and Z. Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In UAI, 2015.
185
+ C. Esteban, S.L. Hyland, and G. Ratsch. Real-valued (medical) time series generation with recurrent ¨ conditional GANs. arXiv:1706.02633, 2017.
186
+ I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, 2014.
187
+ A. Gretton, K.M. Borgwardt, M.J. Rasch, B. Scholkopf, and A. Smola. A kernel two-sample test. ¨ JMLR, 13(Mar):723–773, 2012.
188
+ K. Hornik, M. Stinchcombe, and H. White. Multilayer feedforward networks are universal approximators. Neural Networks, 2(5):359–366, 1989.
189
+ D.G. Horvitz and D.J. Thompson. A generalization of sampling without replacement from a finite universe. JASA, 47(260):663–685, 1952.
190
+ A. Kadurin, A. Aliper, A. Kazennov, P. Mamoshina, Q. Vanhaelen, K. Khrabrov, and A. Zhavoronkov. The cornucopia of meaningful leads: Applying deep adversarial autoencoders for new molecule development in oncology. Oncotarget, 8(7):10883, 2017.
191
+ C.-L. Li, W.-C. Chang, Y. Cheng, Y. Yang, and B. Poczos. MMD GAN: Towards deeper under- ´ standing of moment matching network. In NIPS, 2017.
192
+ Y. Li, K. Swersky, and R. Zemel. Generative moment matching networks. In ICML, 2015.
193
+ M.A. Mansournia and D.G. Altman. Inverse probability weighting. BMJ, 352:i189, 2016.
194
+ S. Nowozin, B. Cseke, and R. Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In NIPS, 2016.
195
+ C. Robert and G. Casella. Monte Carlo Statistical Methods. Springer Texts in Statistics. Springer, 2 edition, 2004.
196
+ T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. Improved techniques for training GANs. In NIPS, 2016.
197
+ D.J. Sutherland, H.-Y. Tung, H. Strathmann, S. De, A. Ramdas, A. Smola, and A. Gretton. Generative models and model criticism via optimized maximum mean discrepancy. In ICLR, 2016.
198
+ D.J. Sutherland, H.-Y. Tung, H. Strathmann, S. De, A. Ramdas, A. Smola, and A. Gretton. Generative models and model criticism via optimized maximum mean discrepancy. In ICLR, 2017.
199
+ C. Vondrick, H. Pirsiavash, and A. Torralba. Generating videos with scene dynamics. In NIPS, 2016.
200
+ H. Zhang, T. Xu, H. Li, S. Zhang, X. Huang, X. Wang, and D. Metaxas. Stackgan: Text to photorealistic image synthesis with stacked generative adversarial networks. In ICCV, 2017.
201
+ J. Zhao, M. Mathieu, and Y. LeCun. Energy-based generative adversarial network. In ICLR, 2017a.
202
+ J. Zhao, T. Wang, M. Yatskar, V. Ordonez, and K.-W. Chang. Men also like shopping: Reducing gender bias amplification using corpus-level constraints. In EMNLP, 2017b.
parse/train/SyuWNMZ0W/SyuWNMZ0W_content_list.json ADDED
@@ -0,0 +1,968 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DIRECTING GENERATIVE NETWORKS WITH WEIGHTED MAXIMUM MEAN DISCREPANCY ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The maximum mean discrepancy (MMD) between two probability measures $\\mathbb { P }$ and $\\mathbb { Q }$ is a metric that is zero if and only if all moments of the two measures are equal, making it an appealing statistic for two-sample tests. Given i.i.d. samples from $\\mathbb { P }$ and $\\mathbb { Q }$ , Gretton et al. (2012) show that we can construct an unbiased estimator for the square of the MMD between the two distributions. If $\\mathbb { P }$ is a distribution of interest and $\\mathbb { Q }$ is the distribution implied by a generative neural network with stochastic inputs, we can use this estimator to train our neural network. However, in practice we do not always have i.i.d. samples from our target of interest. Data sets often exhibit biases—for example, under-representation of certain demographics—and if we ignore this fact our machine learning algorithms will propagate these biases. Alternatively, it may be useful to assume our data has been gathered via a biased sample selection mechanism in order to manipulate properties of the estimating distribution $\\mathbb { Q }$ . ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 764,
44
+ 450
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In this paper, we construct an estimator for the MMD between $\\mathbb { P }$ and $\\mathbb { Q }$ when we only have access to $\\mathbb { P }$ via some biased sample selection mechanism, and suggest methods for estimating this sample selection mechanism when it is not already known. We show that this estimator can be used to train generative neural networks on a biased data sample, to give a simulator that reverses the effect of that bias. ",
51
+ "bbox": [
52
+ 233,
53
+ 457,
54
+ 764,
55
+ 539
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 575,
66
+ 336,
67
+ 592
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Neural networks with stochastic input layers can be trained to approximately sample from an arbitrary probability distribution $\\mathbb { P }$ based on samples from $\\mathbb { P }$ (Goodfellow et al., 2014). Generating simulations from complex distributions has applications in a large number of fields: We can automatically generate illustrations for text (Zhang et al., 2017) or streams of video (Vondrick et al., 2016); we can simulate novel molecular fingerprints to aid scientific exploration (Kadurin et al., 2017); and, we can synthesize medical time-series data that can be shared without violating patient privacy (Esteban et al., 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 611,
77
+ 825,
78
+ 708
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we consider the setting of a feedforward neural network (referred to as the generator) that maps random noise inputs $z \\in \\mathbb { R } ^ { d }$ to some observation space $\\mathcal { X }$ . The weights of the neural network are trained to minimize some loss function between the resulting simulations and exemplars of real data. The general form of the resulting distribution $\\mathbb { Q }$ over simulations $G ( z )$ is determined by the architecture of the generator—which governs the form of the mapping $G$ —and by the loss function used to train the generator. Generative adversarial networks (Goodfellow et al., 2014) use dynamically varying, adversarially learned loss functions specified in terms of the output of a classifier. Other generative networks use a loss function defined using a distributional distance or divergence between the simulation distribution $\\mathbb { Q }$ and a target distribution $\\mathbb { P }$ (Arjovsky et al., 2017; Nowozin et al., 2016; Zhao et al., 2017a), requiring the generator to mimic the variance in a collection of data points rather than simply converge to a single mode. In particular, the maximum mean discrepancy (Gretton et al., 2012) has demonstrated good performance as a loss function in this setting (Sutherland et al., 2016; Li et al., 2017; Sutherland et al., 2017), since it reduces to zero if and only if all moments of two distributions are equal, requiring the generator to reproduce the full range of variation found in the data. ",
85
+ "bbox": [
86
+ 174,
87
+ 715,
88
+ 825,
89
+ 922
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "These approaches, like most machine learning methods, assume our data is a representative sample from the distribution of interest. If this assumption is correct, minimizing the distributional distance between the simulations and the data is equivalent to learning a distribution that is indistinguishable under an appropriate two-sample test from our target distribution. However, we run into problems if our data is not in fact a representative sample from our target distribution—for instance, if our data gathering mechanism is susceptible to sample selection bias. The problem of machine learning algorithms replicating and even magnifying human biases is gathering increasing awareness (Bolukbasi et al., 2016; Zhao et al., 2017b), and if we believe our dataset suffers from such biases—for example, if our audio dataset contains primarily male speakers or our image dataset contains primarily white faces – we will typically want to take steps to correct this bias. ",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 242
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Even if our data is representative of the underlying distribution, we might want to generate samples from a modified version of this distribution. For example, we might want to alter the demographics of characters in a scene to fit a story-line. In this setting, we can treat our desired modified distribution as our target distribution, and treat our data as if they were sampled from this distribution subject to an appropriately biased sample selection mechanism. ",
107
+ "bbox": [
108
+ 174,
109
+ 250,
110
+ 823,
111
+ 319
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "If we know the form of our sample selection bias, we can reformulate our loss function to penalize the generator based on the difference between simulated data and the unbiased distribution of interest, which we will refer to as our target distribution. After a review of relevant background information in Section 2, we show in Section 3 that, given a function that describes how our observed data deviates from this target distribution, we can construct an estimator of the MMD between the generator and the target distribution. ",
118
+ "bbox": [
119
+ 174,
120
+ 327,
121
+ 825,
122
+ 410
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In practice, we will not know the function linking the target distribution and the empirical data distribution. However, we can approximate this function based on user-provided examples of data points that are over- and under-represented. In Section 4, we discuss ways to estimate this function, and in Section 5 we discuss related work in survey sampling statistics and bias reduction. We demonstrate the efficacy and applicability of our approach in Section 6. ",
129
+ "bbox": [
130
+ 174,
131
+ 416,
132
+ 825,
133
+ 487
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 BACKGROUND ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 512,
144
+ 326,
145
+ 529
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2.1 GENERATIVE NETWORKS ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 176,
155
+ 547,
156
+ 388,
157
+ 561
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Generative networks are a class of models which take a collection of data lying in some observation space $\\mathcal { X }$ as input, and aim to generate simulations that are similar to that data – or more generally, whose empirical distribution is close to the distribution underlying the data. These models do not use or require an explicit probability distribution for the data, but instead rely on the fact that sufficiently complex neural networks have the capacity to approximate any arbitrary function (Hornik et al., 1989). We can therefore construct a method of simulating from an arbitrarily complex probability distribution $\\mathbb { Q }$ on $\\mathcal { X }$ by using a neural network generator $G : \\mathbb { R } ^ { d } \\mathcal { X }$ to transform random $d$ - dimensional inputs $z$ into simulations $G ( z ) \\in \\mathcal { X }$ . In order to minimize the difference between the probability distribution $\\mathbb { Q }$ over simulations $G ( z )$ and the target distribution $\\mathbb { P }$ , we train the neural network to minimize a loss function between simulations $G ( \\bar { z } ) \\sim \\mathbb { Q }$ and data $x \\sim \\mathbb { P }$ ",
164
+ "bbox": [
165
+ 174,
166
+ 575,
167
+ 825,
168
+ 715
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "The most common forms of generative network are generative adversarial networks (GANs, Goodfellow et al., 2014), so called because the loss function is dynamically defined in terms of the output of an adversarially learned classifier. This classifier—itself a neural network—is trained to differentiate between two classes, data and simulations, and for a given observation returns a score under the two classes (loosely corresponding to a probability of belonging to that class). The generator’s loss function is a function of the score assigned to simulations under the true data class, so that reducing the loss function leads to an increased chance of fooling the classifier. ",
175
+ "bbox": [
176
+ 174,
177
+ 722,
178
+ 825,
179
+ 819
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "While this adversarial framework has the advantage of a dynamically evolving and increasingly discriminative loss function, a disadvantage is that the generator can successfully minimize this loss function by mimicking only a subset of the data, leading to a phenomenon known as mode collapse (Salimans et al., 2016; Che et al., 2017). To avoid this, recent works have incorporated estimators of distributional distances between $\\mathbb { P }$ and $\\mathbb { Q }$ , that consider the overall distributions rather than just element-wise distances between samples. For example, the maximum mean discrepancy (Gretton et al., 2012; Sutherland et al., 2016; Li et al., 2017; Sutherland et al., 2017) between two distributions, which we explore further in Section 2.2, reduces to zero if and only if all moments of the two distributions are the same. Other distributional distances that have been used include the Wasserstein distance and the Cramer distance (Arjovsky et al., 2017; Bellemare et al., 2017). In some cases, these distance-based generative networks include adversarial components in their loss functions; for example the MMD-GAN of Li et al. (2017) adversarially learns parameters of the maximum mean discrepancy metric. ",
186
+ "bbox": [
187
+ 174,
188
+ 827,
189
+ 823,
190
+ 924
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "",
197
+ "bbox": [
198
+ 174,
199
+ 103,
200
+ 825,
201
+ 188
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": ".2 MAXIMUM MEAN DISCREPANCY BETWEEN TWO DISTRIBUTIONS ",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 186,
211
+ 204,
212
+ 653,
213
+ 218
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "The maximum mean discrepancy (MMD, Gretton et al., 2012) projects two distributions $\\mathbb { P }$ and $\\mathbb { Q }$ into a reproducing kernel Hilbert space (RKHS) $\\mathcal { H }$ , and looks at the maximum mean distance between the two projections, i.e. ",
220
+ "bbox": [
221
+ 174,
222
+ 229,
223
+ 825,
224
+ 272
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "equation",
230
+ "img_path": "images/5bfe543663ff7d4664d4381f649cae8355f1a0ea204f9e96f6bde691aaf620c8.jpg",
231
+ "text": "$$\n\\mathbf { M M D } [ \\mathbb { P } , \\mathbb { Q } ] : = \\operatorname* { s u p } _ { f \\in \\mathcal { H } } \\left( { \\mathbf { E } } _ { x \\sim \\mathbb { P } } [ f ( x ) ] - { \\mathbf { E } } _ { y \\sim \\mathbb { Q } } [ f ( y ) ] \\right) .\n$$",
232
+ "text_format": "latex",
233
+ "bbox": [
234
+ 328,
235
+ 277,
236
+ 668,
237
+ 305
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "If we specify the kernel mean embedding $\\mu _ { \\mathbb { P } }$ of $\\mathbb { P }$ as $\\begin{array} { r } { \\mu _ { \\mathbb { P } } = \\int k ( x , \\cdot ) d \\mathbb { P } ( x ) } \\end{array}$ , where $k ( \\cdot , \\cdot )$ is the characteristic kernel defining the RKHS, then we can write the square of this distance as ",
244
+ "bbox": [
245
+ 174,
246
+ 319,
247
+ 823,
248
+ 348
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "equation",
254
+ "img_path": "images/54b08162859845b45204bec9fe976190865d2f0e4aefb2e4374c161633aeb166.jpg",
255
+ "text": "$$\n\\mathbf { M M D } ^ { 2 } [ \\mathbb { P } , \\mathbb { Q } ] = | | \\mu _ { \\mathbb { P } } - \\mu _ { \\mathbb { Q } } | | _ { \\mathcal { H } } ^ { 2 } = \\mathbb { E } _ { \\mathbb { P } } [ k ( x , x ^ { \\prime } ) ] - 2 \\mathbb { E } _ { \\mathbb { P } , \\mathbb { Q } } [ k ( x , y ) ] + \\mathbb { E } _ { \\mathbb { Q } } [ k ( y , y ^ { \\prime } ) ] .\n$$",
256
+ "text_format": "latex",
257
+ "bbox": [
258
+ 236,
259
+ 353,
260
+ 758,
261
+ 372
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Since we have projected the distributions into an infinite-dimensional space, the distance between the two distributions is zero if and only if all their moments are the same. ",
268
+ "bbox": [
269
+ 171,
270
+ 377,
271
+ 823,
272
+ 406
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "In order to be a useful loss function for training a neural network, we must be able to estimate the MMD from data, and also take derivatives of this estimate with respect to the network parameters. We can construct an unbiased estimator of square of the MMD (Gretton et al., 2012) using $m$ samples $x _ { i } \\sim \\mathbb { P }$ and $n$ samples $y _ { i } \\sim \\mathbb { Q }$ as ",
279
+ "bbox": [
280
+ 173,
281
+ 412,
282
+ 825,
283
+ 469
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "img_path": "images/f2f7525a1b195325eeac4d352150b9eff9746a714d4e14ef43157c932254a2a6.jpg",
290
+ "text": "$$\n\\begin{array} { r l r } { \\widehat { \\boldsymbol { \\boldsymbol { \\mathrm { M M D } } } } ^ { 2 } [ \\mathbb { P } , \\mathbb { Q } ] = } & { = } & { \\displaystyle \\frac { 1 } { m ( m - 1 ) } \\sum _ { i = 1 } ^ { m } \\sum _ { j \\neq i } ^ { m } k ( x _ { i } , x _ { j } ) + \\frac { 1 } { n ( n - 1 ) } \\sum _ { i = 1 } ^ { n } \\sum _ { j \\neq i } ^ { n } k ( y _ { i } , y _ { j } ) } \\\\ & { } & { \\displaystyle - \\frac { 2 } { m n } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 1 } ^ { n } k ( x _ { i } , y _ { j } ) . } \\end{array}\n$$",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 250,
294
+ 492,
295
+ 745,
296
+ 582
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "If $\\mathbb { P }$ is the distribution underlying our data and $\\mathbb { Q }$ is an approximating distribution represented using a neural network, we can differentiate the individual kernel terms in Equation 1 with respect to the simulated data $y _ { i }$ , and hence (via the chain rule) with respect to the parameters of the neural networks. ",
303
+ "bbox": [
304
+ 173,
305
+ 592,
306
+ 825,
307
+ 648
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "The MMD has been successfully used as a loss function in several generative adversarial networks. Dziugaite et al. (2015) and Li et al. (2015) propose training a feedforward neural network to minimize the MMD between simulations and data; Li et al. (2015) also propose minimizing the MMD between simulations and data that has been encoded using a pre-trained autoencoder. The generator in the MMD-GAN of Li et al. (2017) also aims to reduce the MMD between simulations and data, but learns the characteristic kernel in an adversarial manner by combining the kernel with a dynamically learned autoencoder. ",
314
+ "bbox": [
315
+ 173,
316
+ 655,
317
+ 825,
318
+ 753
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "3 WEIGHTED MMD",
325
+ "text_level": 1,
326
+ "bbox": [
327
+ 176,
328
+ 772,
329
+ 356,
330
+ 790
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "If we have unbiased samples from two distributions $\\mathbb { P }$ and $\\mathbb { Q }$ , the estimator described in Equation 1 gives an unbiased estimate of the MMD between those two distributions. In a generative network context, we can therefore use this estimator as a loss function in order to modify the generator associated with $\\mathbb { Q }$ so that the MMD between the two distributions is minimized. ",
337
+ "bbox": [
338
+ 174,
339
+ 804,
340
+ 823,
341
+ 861
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "However, this relies on having access to unbiased samples from our target distribution $\\mathbb { P }$ . In practice, our data may have been gathered using biased sampling practices: A dataset of images of faces may over-represent white faces; datasets generated from medical experiments may over-represent male patients; datasets generated from on-campus studies may over-represent college-aged students. If our data is a biased sample of our target distribution, this estimator will estimate the difference between our simulations and the biased empirical distribution, so our simulations will recreate the biases therein. ",
348
+ "bbox": [
349
+ 174,
350
+ 867,
351
+ 823,
352
+ 924
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "",
359
+ "bbox": [
360
+ 176,
361
+ 103,
362
+ 823,
363
+ 146
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "In this section, we propose an estimator for the MMD between two distributions $\\mathbb { P }$ and $\\mathbb { Q }$ when we have access to $\\mathbb { P }$ only via some biased sample selection mechanism. Concretely, we assume that $\\mathbb { P }$ is our target of interest, but our observed data are actually sampled from a related distribution $T ( x ) \\mathbb { P } ( x )$ . We can think of $T ( x )$ as an appropriately scaled “thinning function” $\\widetilde { T } ( x ) = Z T ( x )$ that characterizes the sample selection mechanism. In other words, we assume that candidate samples $x ^ { * }$ are sampled from $\\mathbb { P }$ , and these candidates are selected into our pool with probability $\\tilde { T } ( \\hat { x } ^ { * } )$ ; the normalizing constant $Z$ ensures that $\\begin{array} { r } { T ( x ) \\mathbb { P } ( x ) = \\frac { \\widetilde { T } ( x ) \\mathbb { P } ( x ) } { Z } } \\end{array}$ is a valid probability distribution. While in the remainder of this paper we will continue to use the language of biased sample selection mechanisms, we note that this framework can also be used if our data are unbiased samples but we want to explicitly modulate our target distribution via some function $F ( x )$ so that we generate simulations from $F ( x ) \\mathbb { P } ( x )$ ; in this setting we can treat the transformed target as $\\mathbb { P }$ and let $T ( x ) =$ $1 / F ( x )$ . ",
370
+ "bbox": [
371
+ 173,
372
+ 152,
373
+ 825,
374
+ 330
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "For now, we assume that our thinning function $\\widetilde { T } ( x )$ is known; we discuss ways to estimate or specify it in Section 4. Our estimation problem becomes an importance sampling problem: We have samples from $T ( \\cdot ) \\mathbb { P } ( \\cdot )$ , and we want to use these to estimate $\\scriptstyle \\mathbf { \\dot { M } M D } ^ { 2 } [ \\mathbb { P } , \\mathbb { Q } ]$ , which is a function of the target distribution $\\mathbb { P }$ . Importance sampling provides a method for constructing an estimator for the expectation of a function $\\phi ( x )$ with respect to a distribution $\\mathbb { P }$ , by taking an appropriately weighted sum of evaluations of $\\phi$ at values sampled from a different distribution $\\mathbb { P } ^ { \\prime }$ . If we knew the normalizing constant $Z$ , we could construct an unbiased estimator of the MMD between $\\mathbb { P }$ and $\\mathbb { Q }$ by weighting each function evaluation associated with sample $x$ from $T ( x ) \\mathbb { P } ( x )$ with the likelihood ratio $\\mathbb { P } ( x ) / T ( x ) \\mathbb { P } ( x ) = 1 / T ( x )$ , i.e. ",
381
+ "bbox": [
382
+ 173,
383
+ 337,
384
+ 825,
385
+ 465
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/690472041e35bcb42b6f24f16e8c326256ec44231c3e5be974e8000d83110b87.jpg",
392
+ "text": "$$\n\\begin{array} { c } { { \\displaystyle \\widehat { M } _ { u } = \\frac { 1 } { m ( m - 1 ) } \\sum _ { i = 1 } ^ { m } \\sum _ { j \\neq i } ^ { m } \\frac { 1 } { T ( x _ { i } ) T ( x _ { j } ) } k ( x _ { i } , x _ { j } ) + \\frac { 1 } { n ( n - 1 ) } \\sum _ { i = 1 } ^ { n } \\sum _ { j \\neq i } ^ { n } k ( y _ { i } , y _ { j } ) } } \\\\ { { - \\frac { 2 } { m n } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 1 } ^ { n } \\frac { 1 } { T ( x _ { i } ) } k ( x _ { i } , y _ { j } ) . } } \\end{array}\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 240,
396
+ 487,
397
+ 756,
398
+ 575
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "However, the normalizing constant $Z$ depends on both $\\widetilde { T }$ and $\\mathbb { P }$ . We will not, in general, know an analytic form for $\\mathbb { P }$ , so we will not be able to calculate $Z$ . Since we will only be able to evaluate $T ( x )$ up to a normalizing constant, we cannot work with Equation 2 directly. Instead, we can construct a biased estimator $\\widehat { M _ { d } }$ by using self-normalized importance weights, ",
405
+ "bbox": [
406
+ 173,
407
+ 588,
408
+ 825,
409
+ 648
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/b93d0e3449dd8883d6b33cc875f981cc86942050e2a2d5528bd38e273a5451fd.jpg",
416
+ "text": "$$\n\\widehat { M } _ { b } = \\sum _ { i = 1 } ^ { m } \\sum _ { j \\neq i } ^ { m } w ( x _ { i } ) w ( x _ { j } ) k ( x _ { i } , x _ { j } ) + \\frac { 1 } { n ( n - 1 ) } \\sum _ { i = 1 } ^ { n } \\sum _ { j \\neq i } ^ { n } k ( y _ { i } , y _ { j } ) - \\frac { 2 } { n } \\sum _ { i = 1 } ^ { m } \\sum _ { j = 1 } ^ { n } w ( x _ { i } ) k ( x _ { i } , y _ { j } )\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 179,
420
+ 652,
421
+ 799,
422
+ 696
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "where $\\begin{array} { r } { w ( x _ { i } ) = \\frac { 1 / \\widetilde { T } ( x _ { i } ) } { \\sum _ { j = 1 } ^ { m } 1 / \\widetilde { T } ( x _ { j } ) } } \\end{array}$ . ",
429
+ "bbox": [
430
+ 174,
431
+ 703,
432
+ 370,
433
+ 729
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "We refer to the estimator $\\widehat { M _ { b } }$ in Equation 3 as the weighted MMD estimator. While this estimator is biased due to the self-normalized weights, this bias will decrease as $1 / m$ where $m$ is the number of samples from $T ( \\cdot ) \\mathbb { P } ( \\cdot )$ . Further, this biased estimator will often have lower variance than the unbiased estimator in Equation 2 (Robert & Casella, 2004). ",
440
+ "bbox": [
441
+ 174,
442
+ 736,
443
+ 825,
444
+ 795
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "4 LEARNING THE THINNING FUNCTION $\\widetilde { T } ( x )$ ",
451
+ "text_level": 1,
452
+ "bbox": [
453
+ 173,
454
+ 810,
455
+ 560,
456
+ 832
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "In Section 3, we assumed that our target distribution $\\mathbb { P }$ is only accessible via a biased sample selection mechanism characterized by a thinning function $\\widetilde { T } ( x )$ , so that our samples are actually distributed (up to a normalizing constant) according to $\\widetilde { T } ( \\boldsymbol { x } ) \\mathbb { P } ( \\boldsymbol { x } )$ . If we know the thinning function $\\widetilde { T } ( x )$ that describes our sample selection mechanism, we can use Equation 3 directly in the loss function of our generator. ",
463
+ "bbox": [
464
+ 173,
465
+ 844,
466
+ 825,
467
+ 924
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "However, in practice we will not have access to this thinning function. Rather, we are likely to be in a situation where a practitioner has noticed that one or more classes is over- or under-represented, either in the dataset or in simulations from a generative network trained on the data. If our dataset is fully labeled, we could either manually re-balance our dataset to match the target distribution, or use these labels to estimate $\\tilde { T }$ by comparing the number of data points in various subsets of $\\mathcal { X }$ with the expected number under our target distribution. ",
474
+ "bbox": [
475
+ 174,
476
+ 103,
477
+ 825,
478
+ 189
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "Even if we do not have a fully labeled dataset, we might be able to label a subset of examples and use these to estimate $T ( x )$ . For example, assume we have an image dataset with more pictures of men than women, and that we select and label a random subset of this dataset. A reasonable estimate for our thinning function would be to set $T ( \\mathrm { m e n } ) = 1$ and approximate $T ( \\mathrm { w o m e n } )$ by the sample ratio of men to women in our labeled subset. In this simple two-class setting, to extrapolate values of $T$ across our observation space $X$ we can run a logistic regression using the labeled subset. ",
485
+ "bbox": [
486
+ 174,
487
+ 195,
488
+ 825,
489
+ 280
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "In a more complicated problem, we may need to deploy more sophisticated regression tools, but the problem remains one of function estimation from labeled data. Given a set of labeled exemplars and user-specified estimates of the thinning function evaluated at those exemplars (which could be based on demographic statistics or domain knowledge, or desired statistics of the simulation distribution), we could learn a thinning function $T ( x )$ using techniques such as neural network function estimation or Gaussian process regression. ",
496
+ "bbox": [
497
+ 174,
498
+ 286,
499
+ 825,
500
+ 369
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "5 RELATED WORK ",
507
+ "text_level": 1,
508
+ "bbox": [
509
+ 176,
510
+ 392,
511
+ 341,
512
+ 409
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "While it has received little attention in the deep learning literature, the problem of correcting for biased sample selection mechanisms is familiar in the field of survey statistics. Our estimator is related to inverse probability weighting (IPW), originally proposed by Horvitz & Thompson (1952) and still in wide use today (e.g. Mansournia & Altman, 2016). IPW is used in stratified random sampling study designs to correct parameter estimates for intentional bias in sampling. Under IPW, each data point is assigned a weight proportionate to the inverse of its selection probability, so that samples from classes which are disproportionately unlikely to be seen in the sample are assigned increased weights to counteract the undersampling of their classes. This is the same form as the weights in our sampling scheme, and serves a similar purpose, although it is not placed in the context of the MMD between two distributions and assumes that the probability of selection is known for each observation. ",
519
+ "bbox": [
520
+ 174,
521
+ 425,
522
+ 825,
523
+ 579
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "This work also follows increased awareness of the effects of biased data on machine learning outcomes, and interest in mitigating these effects. For example, Caliskan et al. (2017) and Bolukbasi et al. (2016) explore how biases and prejudices expressed in our language manifest in the word embeddings and representations found. Zhao et al. (2017b) find that popular image labeling datasets exhibit gender stereotypes and that algorithms trained on these datasets tend to amplify these stereotypes. ",
530
+ "bbox": [
531
+ 174,
532
+ 585,
533
+ 825,
534
+ 670
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "6 EVALUATION ",
541
+ "text_level": 1,
542
+ "bbox": [
543
+ 174,
544
+ 691,
545
+ 315,
546
+ 708
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "We consider two experimental settings: One where the form of the sampling bias is known, and one where it is estimated from data. ",
553
+ "bbox": [
554
+ 174,
555
+ 724,
556
+ 823,
557
+ 753
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "6.1 CORRECTING FOR BIASED SAMPLE SELECTION WITH A KNOWN THINNING FUNCTION ",
564
+ "text_level": 1,
565
+ "bbox": [
566
+ 173,
567
+ 773,
568
+ 802,
569
+ 787
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "In Section 3, we discussed how, for a given thinning function $\\widetilde { T } ( x )$ , we can construct an estimator for the MMD between the distribution $\\mathbb { Q }$ implied by our generator and the underlying unbiased data distribution $\\mathbb { P }$ . To demonstrate the efficacy of this in practice, we assume $\\mathbb { P }$ to be a mixture of two Gaussians (Figure 1a), and let $\\begin{array} { r } { \\widetilde { T } = \\frac { \\mathsf { \\bar { \\rho } } _ { 0 . 5 } } { 1 + \\exp ( 1 0 ( x - 1 ) ) } + \\mathsf { \\bar { 0 } } . 5 } \\end{array}$ be a scaled logistic function as shown in Figure 1b. The resulting data is distributed according to Figure 1c. ",
576
+ "bbox": [
577
+ 173,
578
+ 797,
579
+ 825,
580
+ 875
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "We construct a simple generator network taking univariate random noise as input, and consisting of six fully-connected layers, each with three nodes and exponential linear unit activations, and with a univariate output with no activation. We train this network using both the standard unbiased MMD ",
587
+ "bbox": [
588
+ 176,
589
+ 882,
590
+ 823,
591
+ 924
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "image",
597
+ "img_path": "images/7aacc16a56bf12eeb6be717b6613a40a417beb992777bd5af63e5666555011da.jpg",
598
+ "image_caption": [],
599
+ "image_footnote": [],
600
+ "bbox": [
601
+ 191,
602
+ 117,
603
+ 370,
604
+ 218
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "image",
610
+ "img_path": "images/3f5c0eac359a26d961b834e96bec7b0a6c4fed4d50c6297945c38ed15c4d5107.jpg",
611
+ "image_caption": [],
612
+ "image_footnote": [],
613
+ "bbox": [
614
+ 406,
615
+ 117,
616
+ 588,
617
+ 218
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "image",
623
+ "img_path": "images/06ae327a5fad1bf87dc87eb272572d8d59131835adeb160506ba22f947b9b10b.jpg",
624
+ "image_caption": [
625
+ "(c) Observed distribution "
626
+ ],
627
+ "image_footnote": [],
628
+ "bbox": [
629
+ 625,
630
+ 117,
631
+ 805,
632
+ 219
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "(a) Target distribution $x \\sim \\bar { \\mathbb { P } } ( x ) = 0 . 5 \\mathcal { N } ( 0 , 0 . 5 ) +$ $0 . 5 \\mathcal { N } ( 2 , 0 . 5 )$ ",
639
+ "bbox": [
640
+ 186,
641
+ 227,
642
+ 374,
643
+ 265
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "(d) Simulations using standard MMD estimator (with PDF of $T ( x ) \\mathbb { P } ( x )$ for comparison) ",
650
+ "bbox": [
651
+ 295,
652
+ 390,
653
+ 486,
654
+ 429
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "image",
660
+ "img_path": "images/f5def123fb06980fd1e88eb246a74795dc78e139e8f49ff7122923770c7a2b62.jpg",
661
+ "image_caption": [
662
+ "Figure 1: Output of GANs trained on data sampled according to $T ( x ) \\mathbb { P } ( x )$ . Simulation plots PDFs are computed using NumPy’s random normal sampler, mixed to create the appropriate mode ratios. "
663
+ ],
664
+ "image_footnote": [],
665
+ "bbox": [
666
+ 299,
667
+ 281,
668
+ 478,
669
+ 383
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "image",
675
+ "img_path": "images/a64c49077e37ff61c4666331367883dd199fc765c973539e475a5db6635f88c0.jpg",
676
+ "image_caption": [
677
+ "(e) Simulations using weighted MMD estimator (with PDF of $\\mathbb { P } ( x )$ for comparison) "
678
+ ],
679
+ "image_footnote": [],
680
+ "bbox": [
681
+ 516,
682
+ 281,
683
+ 696,
684
+ 383
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "estimator of Equation 1, and the weighted MMD estimator proposed in Equation 3, using ADAM optimization with a learning rate of 0.001. ",
691
+ "bbox": [
692
+ 174,
693
+ 498,
694
+ 823,
695
+ 527
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Figures 1e and 1d show histograms of samples generated using the two estimators. We see that, as expected, the standard MMD estimator does a good job of replicating the empirical distribution of the data presented to it. The weighted MMD estimator, however, is able to replicate the target distribution $\\mathbb { P }$ , even though it only has access to samples from $T ( x ) \\mathbb { P } ( x )$ . ",
702
+ "bbox": [
703
+ 174,
704
+ 534,
705
+ 825,
706
+ 590
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "6.2 LEARNING AND CORRECTING FOR A BIASED SAMPLE SELECTION MECHANISM",
713
+ "text_level": 1,
714
+ "bbox": [
715
+ 171,
716
+ 611,
717
+ 754,
718
+ 626
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "In practice we are unlikely to know a functional form for $\\widetilde { T } ( x )$ , the function that describes the form of the sampling bias. Here we consider the case where we must estimate this function from data. We consider as an example a dataset containing zeros and ones from the MNIST dataset. We assume our target distribution contains $50 \\%$ zeros and $50 \\%$ ones, but that due to a biased selection procedure our data contains $80 \\%$ zeros and $20 \\%$ ones. ",
725
+ "bbox": [
726
+ 173,
727
+ 637,
728
+ 825,
729
+ 708
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "We hypothesise that the practitioner using this dataset is aware that there is a discrepancy, but does not know how to translate this into a functional form for $\\widetilde { T }$ . Instead, the practitioner labels examples of each class, and supplies an estimate of how much each class is under-represented. In our example, we assume the practitioner has labeled 800 zeros and 200 ones, and estimates that ones are undersampled according to a thinning probability of 0.75. We note that this number can easily be estimated from a data sample if the practitioner knows the global ratio of zeros and ones. ",
736
+ "bbox": [
737
+ 173,
738
+ 715,
739
+ 825,
740
+ 801
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "table",
746
+ "img_path": "images/4d1e806f18db7ec294af1efd9f6aadc7d2a77f05052b86648baf061fdbe26181.jpg",
747
+ "table_caption": [
748
+ "Table 1: Comparison of different estimators on the proportion of generated images classified as ones. "
749
+ ],
750
+ "table_footnote": [],
751
+ "table_body": "<table><tr><td>Standard MMD</td><td>Weighted MMD (initialized to standard MMD)</td><td>Weighted MMD (random initialization)</td></tr><tr><td>0.2201 ±0.0027</td><td>0.3316 ± 0.0028</td><td>0.3888 ± 0.0027</td></tr></table>",
752
+ "bbox": [
753
+ 241,
754
+ 866,
755
+ 754,
756
+ 921
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "image",
762
+ "img_path": "images/c49db018f7cfa2478f872ec32baa2858bfd3b4aeba60a03d7965a5d270163485.jpg",
763
+ "image_caption": [
764
+ "(a) Subset of real images used to train GANs (50 zeros, 14 ones) "
765
+ ],
766
+ "image_footnote": [],
767
+ "bbox": [
768
+ 245,
769
+ 138,
770
+ 478,
771
+ 319
772
+ ],
773
+ "page_idx": 6
774
+ },
775
+ {
776
+ "type": "image",
777
+ "img_path": "images/e0998658d6585d8b00805e69f5602390d4bed21b0d816186957e74df04e982a6.jpg",
778
+ "image_caption": [
779
+ "(b) Simulations from GAN trained with weighted MMD, randomly initialized (40 zeros, 24 ones) "
780
+ ],
781
+ "image_footnote": [],
782
+ "bbox": [
783
+ 513,
784
+ 138,
785
+ 745,
786
+ 319
787
+ ],
788
+ "page_idx": 6
789
+ },
790
+ {
791
+ "type": "image",
792
+ "img_path": "images/d4667bf229d1d82687a71753d56e4725067be1a52846039cfe8874faa1cf5bf5.jpg",
793
+ "image_caption": [],
794
+ "image_footnote": [],
795
+ "bbox": [
796
+ 245,
797
+ 375,
798
+ 480,
799
+ 555
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "(c) Simulations from GAN trained with MMD (53 zeros, 11 ones) ",
806
+ "bbox": [
807
+ 245,
808
+ 559,
809
+ 483,
810
+ 584
811
+ ],
812
+ "page_idx": 6
813
+ },
814
+ {
815
+ "type": "image",
816
+ "img_path": "images/8695a4a363b021bb1b0eb97740068f60209475352eb4162f7fe864e89c64bc32.jpg",
817
+ "image_caption": [
818
+ "(d) Simulations from GAN trained with weighted MMD, initialized to MMD (47 zeros, 17 ones) ",
819
+ "Figure 2: Data used to train the GANs, and simulations from GANs trained using unweighted and weighted MMD. "
820
+ ],
821
+ "image_footnote": [],
822
+ "bbox": [
823
+ 514,
824
+ 375,
825
+ 748,
826
+ 554
827
+ ],
828
+ "page_idx": 6
829
+ },
830
+ {
831
+ "type": "image",
832
+ "img_path": "images/00331afd357bd0ed43a608eb27ddfec7d4dcc7fd8fa6aca331817beadcc138e4.jpg",
833
+ "image_caption": [
834
+ "Figure 3: Proportion of images classified as ones, over time, for a network initially learned using the standard MMD estimator. The loss function switches to the weighted MMD estimator at iteration 10000, leading to an increase in the proportion of images classified as ones. "
835
+ ],
836
+ "image_footnote": [],
837
+ "bbox": [
838
+ 184,
839
+ 708,
840
+ 812,
841
+ 832
842
+ ],
843
+ "page_idx": 6
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "We use an architecture based on the MMD-GAN of Li et al. (2017), which incorporates an autoencoder, and trains a generator based on the MMD between the encoded representations of the data and of the simulations. The autoencoder is simultaneously learned in an adversarial manner, and serves to optimize the kernel used in MMD to maximally discriminate between the two distributions. Our experiments are run on an adapted version of the original MMD-GAN Torch code, which will be made available after publication. ",
848
+ "bbox": [
849
+ 174,
850
+ 103,
851
+ 825,
852
+ 188
853
+ ],
854
+ "page_idx": 7
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "Since the autoencoder provides a low-dimensional embedding of our images, we specify our thinning function $\\widetilde { T } ( x )$ on the space spanned by the encoder. After each update of the autoencoder, we estimate $\\widetilde { T }$ with the labeled set, using appropriately scaled logistic regression. We then replace the standard MMD estimator in the loss function with our weighted estimator, calculating using the estimated $\\widetilde { T }$ . ",
859
+ "bbox": [
860
+ 174,
861
+ 194,
862
+ 825,
863
+ 270
864
+ ],
865
+ "page_idx": 7
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "One could imagine using the weighted estimator in two scenarios. We might be already aware of the bias in our data, in which case we would simply train our GAN using the weighted MMD estimator. Alternatively, we might only become aware of the bias after already training a GAN using the standard estimator, in which case we might initialize our network weights to the resulting pretrained values. To simulate these scenarios, we trained two networks using the weighted estimator: one initialized to a pre-trained MMD-GAN, and one randomly initialized. ",
870
+ "bbox": [
871
+ 174,
872
+ 279,
873
+ 823,
874
+ 362
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "Figure 2a shows a random subset of the data used to train the GANs. Due to the biased sample selection method, there are significantly more zeros than ones. Figure 2c shows simulations generated by minimizing the standard MMD estimator using this biased data; as expected, it reflects the greater proportion of zeros compared to ones. By contrast, the simulations trained by minimizing the weighted MMD estimator, which estimates the MMD from the underlying target distribution as estimated by our thinning function, shows a marked increase in the number of ones, without any obvious difference in simulation quality. All networks were trained for 10,000 iterations. ",
881
+ "bbox": [
882
+ 174,
883
+ 369,
884
+ 825,
885
+ 467
886
+ ],
887
+ "page_idx": 7
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "To further quantify these results, we used the (unscaled) logistic regression used to specify the thinning function to classify the simulated images as zeros or ones. Table 1 shows the proportion of ones obtained using the three scenarios (standard MMD estimator, weighted MMD estimator initialized with a pre-trained network, and weighted MMD estimator with random initialization). We see that, as expected, the network trained using the standard MMD estimator produces around $20 \\%$ ones, reflecting the proportion in the dataset. The networks trained using the weighted MMD estimator achieve a significanly higher percent of ones, with the randomly initialized network performing better than the pre-trained network. ",
892
+ "bbox": [
893
+ 174,
894
+ 473,
895
+ 825,
896
+ 585
897
+ ],
898
+ "page_idx": 7
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "While both the networks trained using the weighted MMD estimator simulate a higher proportion of ones than is present in our dataset, neither reaches the 50:50 ratio in our assumed target distribution. We believe this is due to inability of the network to fully converge to a solution that gives zero loss. This interpretation is supported by the fact that the randomly initialized network converges to a better solution than the pre-initialized network, despite the architecture and objective function being the same in both cases. To visualize the changes introduced by using the weighted MMD estimator, in Figure 3 we plot the proportion of ones on a network that is trained for 10,000 iterations using the standard MMD estimator, then for 10,000 iterations using the weighted MMD estimator. We see that the proportion quickly rises after the loss function is altered. ",
903
+ "bbox": [
904
+ 173,
905
+ 592,
906
+ 825,
907
+ 717
908
+ ],
909
+ "page_idx": 7
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "7 DISCUSSION AND FUTURE WORK ",
914
+ "text_level": 1,
915
+ "bbox": [
916
+ 176,
917
+ 739,
918
+ 478,
919
+ 755
920
+ ],
921
+ "page_idx": 7
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "We have presented an asymptotically unbiased estimator for the MMD between two distributions $\\mathbb { P }$ and $\\mathbb { Q }$ , for use when we only have access to $\\mathbb { P }$ via a biased sampling mechanism. This mechanism can be specified by a known or estimated thinning function $\\tilde { T } ( \\bar { x } )$ , where samples are then assumed to come from a distribution ${ \\widetilde { T } } ( x ) \\mathbb { P } ( x ) / Z$ . We show that this estimator can be used to manipulate the distribution of simulations learned by a generative network, in order to correct for sampling bias or to explicitly change the distribution according to a user-specified function. ",
926
+ "bbox": [
927
+ 174,
928
+ 771,
929
+ 825,
930
+ 861
931
+ ],
932
+ "page_idx": 7
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "When the thinning function is unknown, it can be estimated from labeled data. We demonstrate this in an interpretable experiment using partially labeled images, where we jointly estimate the thinning function alongside the generator weights. An obvious next step is to explore the use of more sophisticated thinning functions appropriate for complex, multimodal settings. ",
937
+ "bbox": [
938
+ 174,
939
+ 867,
940
+ 823,
941
+ 924
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "REFERENCES ",
948
+ "text_level": 1,
949
+ "bbox": [
950
+ 174,
951
+ 102,
952
+ 287,
953
+ 118
954
+ ],
955
+ "page_idx": 8
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein GAN. arXiv:1701.07875, 2017. \nM.G. Bellemare, I. Danihelka, W. Dabney, S. Mohamed, B. Lakshminarayanan, S. Hoyer, and R. Munos. The Cramer distance as a solution to biased Wasserstein gradients. arXiv:1705.10743, 2017. \nT. Bolukbasi, K.-W. Chang, J.Y. Zou, V. Saligrama, and A.T. Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In NIPS, 2016. \nA. Caliskan, J.J. Bryson, and A. Narayanan. Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334):183–186, 2017. doi: 10.1126/science.aal4230. \nT. Che, Y. Li, A.P. Jacob, Y. Bengio, and W. Li. Mode regularized generative adversarial networks. In ICLR, 2017. \nG.K. Dziugaite, D.M. Roy, and Z. Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In UAI, 2015. \nC. Esteban, S.L. Hyland, and G. Ratsch. Real-valued (medical) time series generation with recurrent ¨ conditional GANs. arXiv:1706.02633, 2017. \nI. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In NIPS, 2014. \nA. Gretton, K.M. Borgwardt, M.J. Rasch, B. Scholkopf, and A. Smola. A kernel two-sample test. ¨ JMLR, 13(Mar):723–773, 2012. \nK. Hornik, M. Stinchcombe, and H. White. Multilayer feedforward networks are universal approximators. Neural Networks, 2(5):359–366, 1989. \nD.G. Horvitz and D.J. Thompson. A generalization of sampling without replacement from a finite universe. JASA, 47(260):663–685, 1952. \nA. Kadurin, A. Aliper, A. Kazennov, P. Mamoshina, Q. Vanhaelen, K. Khrabrov, and A. Zhavoronkov. The cornucopia of meaningful leads: Applying deep adversarial autoencoders for new molecule development in oncology. Oncotarget, 8(7):10883, 2017. \nC.-L. Li, W.-C. Chang, Y. Cheng, Y. Yang, and B. Poczos. MMD GAN: Towards deeper under- ´ standing of moment matching network. In NIPS, 2017. \nY. Li, K. Swersky, and R. Zemel. Generative moment matching networks. In ICML, 2015. \nM.A. Mansournia and D.G. Altman. Inverse probability weighting. BMJ, 352:i189, 2016. \nS. Nowozin, B. Cseke, and R. Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In NIPS, 2016. \nC. Robert and G. Casella. Monte Carlo Statistical Methods. Springer Texts in Statistics. Springer, 2 edition, 2004. \nT. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. Improved techniques for training GANs. In NIPS, 2016. \nD.J. Sutherland, H.-Y. Tung, H. Strathmann, S. De, A. Ramdas, A. Smola, and A. Gretton. Generative models and model criticism via optimized maximum mean discrepancy. In ICLR, 2016. \nD.J. Sutherland, H.-Y. Tung, H. Strathmann, S. De, A. Ramdas, A. Smola, and A. Gretton. Generative models and model criticism via optimized maximum mean discrepancy. In ICLR, 2017. \nC. Vondrick, H. Pirsiavash, and A. Torralba. Generating videos with scene dynamics. In NIPS, 2016. \nH. Zhang, T. Xu, H. Li, S. Zhang, X. Huang, X. Wang, and D. Metaxas. Stackgan: Text to photorealistic image synthesis with stacked generative adversarial networks. In ICCV, 2017. \nJ. Zhao, M. Mathieu, and Y. LeCun. Energy-based generative adversarial network. In ICLR, 2017a. \nJ. Zhao, T. Wang, M. Yatskar, V. Ordonez, and K.-W. Chang. Men also like shopping: Reducing gender bias amplification using corpus-level constraints. In EMNLP, 2017b. ",
960
+ "bbox": [
961
+ 171,
962
+ 111,
963
+ 826,
964
+ 880
965
+ ],
966
+ "page_idx": 8
967
+ }
968
+ ]
parse/train/SyuWNMZ0W/SyuWNMZ0W_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyuWNMZ0W/SyuWNMZ0W_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ.md ADDED
@@ -0,0 +1,403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ORDERING-BASED CAUSAL DISCOVERY WITH REINFORCEMENT LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ It is a long-standing question to discover causal relations among a set of variables in many empirical sciences. Recently, Reinforcement Learning (RL) has achieved promising results in causal discovery. However, searching the space of directed graphs directly and enforcing acyclicity by implicit penalties tend to be inefficient and restrict the method to small problems. In this work, we alternatively consider searching an ordering by RL from the variable ordering space that is much smaller than that of directed graphs, which also helps avoid dealing with acyclicity. Specifically, we formulate the ordering search problem as a Markov decision process, and then use different reward designs to optimize the ordering generating model. A generated ordering is then processed using variable selection methods to obtain the final directed acyclic graph. In contrast to other causal discovery methods, our method can also utilize a pretrained model to accelerate training. We conduct experiments on both synthetic and real-world datasets, and show that the proposed method outperforms other baselines on important metrics even on large graph tasks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Identifying causal structure from observational data is an important but also challenging task in many applications. This problem can be formulated as that of finding a Directed Acyclic Graph (DAG) that minimizes some score function defined w.r.t. observed data. Though there exist well-studied score functions like Bayesian Information Criterion (BIC) or Minimum Description Length (MDL) (Schwarz et al., 1978; Chickering, 2002), searching over the space of DAGs is known to be NP-hard, even if each node has at most two parents (Chickering, 1996). Consequently, traditional methods mostly rely on local heuristics to perform the search, including greedy hill climbing and Greedy Equivalence Search (GES) that explore the Markov equivalence classes (Chickering, 1996).
12
+
13
+ Along with various search strategies, existing methods have also considered to reduce the search space while meeting the DAG constraint. A useful practice is to cast the causal structure learning problem as that of learning an optimal ordering of variables (Koller & Friedman, 2009). Because the ordering space is significantly smaller than the space of directed graphs and searching over ordering space can avoid the problem of dealing with acyclic constraints (Teyssier & Koller, 2005). Many algorithms are used to search for ordering such as genetic algorithm (Larranaga et al., 1996), Markov chain Monte Carlo (Friedman & Koller, 2003) and greedy local hill-climbing (Teyssier & Koller, 2005). However, these algorithms often cannot find the best ordering effectively.
14
+
15
+ Recently, with differentiable score functions, several gradient-based methods have been proposed based on a smooth characterization of acyclicity, including NOTEARS (Zheng et al., 2018) for linear causal models and several subsequent works, e.g., Yu et al. (2019); Lachapelle et al. (2020); $\mathrm { N g }$ et al. (2019b;a), which use neural networks to model nonlinear causal relationships. As another attempt, Zhu et al. (2020) utilize Reinforcement Learning (RL) as a search strategy to find the best DAG from the graph space and it can be incorporated with a wide range of score functions. Unfortunately, its good performance is achieved only with around 30 variables, for at least two reasons: 1) the action space, consisting of directed graphs, is tremendous for large scale problems and hard to be explored efficiently; and 2) it has to compute scores for many non-DAGs generated during training but computing scores w.r.t. data is generally be time-consuming. It appears that the RL-based approach may not be able to achieve a close performance to other gradient-based methods that directly optimize the same (differentiable) score function for large causal discovery problems, due to its search nature.
16
+
17
+ In this work, we propose a RL-based approach for causal discovery, named Causal discovery with Ordering-based Reinforcement Learning (CORL), which combines RL with the ordering based paradigm so that we can exploit the powerful search ability of RL to search the best ordering efficiently. To achieve this, we formulate the ordering search problem as a Markov Decision Process (MDP), and then use different reward designs for RL to optimize the ordering generating model. In addition, we notice that pretrained model can be incorporated into our model to accelerate training. For a generated ordering, we prune it to the final DAG by variable selection. The proposed approach is evaluated on both synthetic and real datasets to validate its effectiveness. In particular, the proposed method can achieve a much improved performance than the previous RL-based method on both linear and non-linear data models, even outperforms NOTEARS, a gradient-based method, on 150-node linear data models, and is competitive with Causal Additive Model (CAM) on non-linear data models.
18
+
19
+ # 2 RELATED WORKS
20
+
21
+ Existing causal discovery methods roughly fall into three classes. The first class, as described in the introduction, are the so-called score-based methods. Besides the mentioned BIC/MDL scores, other score functions include the Bayesian Gaussian equivalent score (Geiger & Heckerman, 1994), the generalized score based on (conditional) independence relationship (Huang et al., 2018), and a recently proposed meta-transfer score (Bengio et al., 2020). Another class of methods such as fast causal inference and PC (Spirtes et al., 2000; Zhang, 2008) which first find causal skeleton and then decide the orientations of the edges up to the Markov equivalence class, are viewed as constraint-based. Such methods usually involve multiple independent testing problems; the testing results may have conflicts and handling them is not easy. The last class of methods relies on properly defined functional causal models, includeing Linear Non-Gaussian Acyclic Model (LiNGAM), nonlinear Additive Noise Model (ANM) (Hoyer et al., 2009; Peters et al., 2014), and the post-nonlinear causal model (Zhang & Hyvärinen, 2009). By placing certain assumptions on the class of causal functions and/or noise distributions, these methods can distinguish different DAGs in the same Markov equivalence class.
22
+
23
+ Since we particularly consider ordering-based approaches, here we present a more detailed review of such methods. Most of the ordering-based methods belong to the class of score-based methods. Besides the mentioned heuristic search algorithms, Schmidt et al. (2007) proposed L1OBS to conduct variable selection using $\ell _ { 1 }$ -regularization paths based on Teyssier & Koller (2005). Scanagatta et al. (2015) further proposed an ordering exploration method on the basis of an approximated score function so as to scale to thousands of variables. The Causal Additive Model (CAM) was developed by Bühlmann et al. (2014) for nonlinear data models. Some recent ordering-based methods such as sparsest permutation (Raskutti & Uhler, 2018) and greedy sparest permutation (Solus et al., 2017) can guarantee consistency of Markov equivalence class, based on some conditional independence relations and certain assumptions like faithfulness. A variant of greedy sparest permutation was also proposed in Bernstein et al. (2020) for the setting with latent variables. In the present work, we mainly work on identifiable cases which may have different assumptions from theirs.
24
+
25
+ In addition, several exact algorithms such as dynamic programming (Silander & Myllymäki, 2006; Perrier et al., 2008) and integer or linear programming (Jaakkola et al., 2010; Cussens, 2011; Bartlett & Cussens, 2017) are used to solve causal discovery problem. However, these exact algorithms usually work on small graphs efficiently (De Campos & Ji, 2011), and in order to handle larger problems with hundreds of variables, they need to incorporate heuristics search (Xiang & Kim, 2013) or limit the maximum number of parents.
26
+
27
+ Recently, RL has been used to tackle several combinatorial problems such as maximum cut and the traveling salesman problem, due to their relatively simple reward mechanisms (Khalil et al., 2017). In combination with the encoder-decoder based pointer networks (Vinyals et al., 2015), Bello et al. (2016) showed that RL can have a better generalization even when the optimal solutions are used as labeled data in a supervised way. Kool et al. (2019) further used an attention based encoder-decoder model for an improved performance. These works aim to learn a policy as a combinatorial solver based on the same structure of a particular type of combinatorial problems. However, various causal discovery tasks generally have different causal relationships, data types, graph structures, etc, and moreover, are typically off-line with focus on a causal graph. As such, we use RL as a search strategy, similar to Zhu et al. (2020); Zoph & Le (2017); nevertheless, a pretrained model or a policy can offer a good starting point to speed up training, as shown in our evaluation results (Figure 3).
28
+
29
+ # 3 BACKGROUND
30
+
31
+ # 3.1 CAUSAL STRUCTURE LEARNING
32
+
33
+ Let $\mathcal { G } = ( d , V , E )$ denotes a DAG, with $d$ the number of nodes, $V = \{ v _ { 1 } , \ldots , v _ { d } \}$ the set of nodes, and $E = \{ ( v _ { i } , v _ { j } ) | i , j = 1 , \dots , d \}$ the set of directed edges from $v _ { i }$ to $v _ { j }$ . Each node $v _ { j }$ is associated with a random variable $X _ { j }$ . The probability model associated with $\mathcal { G }$ factorizes as $p ( \check { X _ { 1 } } , \dots , X _ { d } ) =$ $\begin{array} { r } { \prod _ { j = 1 } ^ { d } p ( X _ { j } | \mathrm { P a } ( X _ { j } ) ) } \end{array}$ , where $p ( X _ { j } | \mathrm { P a } ( X _ { j } ) )$ is the conditional probability distribution for $X _ { j }$ given its parents $\operatorname { P a } ( X _ { j } ) : = \{ X _ { k } | ( v _ { k } , v _ { j } ) \in E \}$ . We assume that the observed data $\mathbf { x } _ { j }$ is obtained by the Structural Equation Model (SEM) with addtive noise: $X _ { j } : = f _ { \theta _ { j } } ( \mathrm { P a } ( X _ { j } ) ) + \epsilon _ { j } , \overset { \cdot } { j } = 1 , \dots , d$ , where $f _ { \theta _ { j } }$ parameterized by $\theta _ { j }$ is used to represent the functional relationship between $X _ { j }$ and its parents, and $\epsilon _ { j }$ ’s denote jointly independent additive noise variables. We assume causal minimality, which is equivalent to that each $f _ { j }$ is not a constant for any $X _ { k } \in \operatorname { P a } ( X _ { j } )$ in this SEM (Peters et al., 2014).
34
+
35
+ Given a sample $\mathbf { X } = [ \mathbf { x } _ { 1 } , \ldots \mathbf { \mu } , \mathbf { x } _ { d } ]$ , where $\mathbf { X } \in \mathbb { R } ^ { m \times d }$ and $\mathbf { x } _ { j }$ is a vector of $m$ observations for random variables $X _ { j }$ . Our goal in this paper is to find the DAG $\mathcal { G }$ that maximizes the BIC score (or other well studied scores), defined as
36
+
37
+ $$
38
+ \mathrm { S c o r e } _ { \mathrm { B I C } } ( \mathcal { G } ) = \sum _ { j = 1 } ^ { d } \left[ \sum _ { k = 1 } ^ { m } \log p ( X _ { j } ^ { k } | \mathbf { P a } ( X _ { j } ^ { k } ) , \theta _ { j } ) - \frac { | \theta _ { j } | } { 2 } \log m \right] ,
39
+ $$
40
+
41
+ where $| \theta _ { j } |$ is the number of free parameters in $p ( X _ { j } ^ { k } | \mathrm { P a } ( X _ { j } ^ { k } ) , \theta _ { j } )$ . For linear causal relationships, $| \theta _ { j } | = | \mathrm { P a } ( X _ { j } ^ { k } ) |$ the number of parents, up to some constant factor.
42
+
43
+ The problem of finding a directed graph that satisfies the ayclicity constraint can be cast as that of finding an variable ordering (Teyssier & Koller, 2005; Schmidt et al., 2007). The score of an ordering is usually defined as the score of the best DAG that is consistent with the given ordering. Specifically, let $\Pi$ denote an ordering of the nodes in $V$ , where the length of the ordering $| \Pi | = | V |$ and $\Pi$ is indexed from 1. If node $v _ { j } \in V$ lies in the $p$ -th position, then $\Pi ( p ) = v _ { j }$ . Notation $\Pi _ { \prec v _ { j } }$ denotes the set of nodes in $V$ that precede node $v _ { j }$ in $\Pi$ . One can establish a canonical correspondence between an ordering $\Pi$ and a fully-connected DAG $\mathcal { G } ^ { \Pi }$ ; an example with four nodes is presented in Figure 1. For a given DAG $\mathcal { G }$ , it can be consistent with more than one orderings and the set of these orderings is given by
44
+
45
+ $$
46
+ \Phi ( \Pi ) : = \{ \Pi : { \mathrm { t h e ~ f u l l y - c o n n e c t e d ~ D A G ~ \mathcal { G } ^ { I I } ~ i s ~ a ~ s u p e r { \mathrm { - } } D A G ~ o f ~ \mathcal { G } } } \} ,
47
+ $$
48
+
49
+ where a super-DAG of $\mathcal { G }$ is a DAG whose edge set is a superset of that of $\mathcal { G }$ . The score of an ordering is usually defined as the score of the best DAG that is consistent with the given ordering (Teyssier & Koller, 2005; Peters et al., 2014). We provide a formal description in Proposition 1 to show that it is possible to find the correct ordering with high probability in the large sample
50
+
51
+ $$
52
+ \boldsymbol { \Pi } : = \{ v _ { 2 } , v _ { 4 } , v _ { 1 } , v _ { 3 } \}
53
+ $$
54
+
55
+ ![](images/95fc68b0ba24d471bd4374d41713fc742059254749010acf6c0f082930e53e93.jpg)
56
+ Figure 1: An example of the correspondence between an ordering (down) and a fully-connected DAG (top).
57
+
58
+ limit. Therefore, the search for the true DAG $\mathcal { G } ^ { * }$ can be decomposed to two phases: finding the correct ordering and performing variable selection (feature selection); the latter is to find the optimal DAG that is consistent with the ordering found in the first step.
59
+
60
+ Proposition 1. Suppose that an identifiable SEM with true causal DAG $\mathcal { G } ^ { * }$ on $X = \{ X _ { j } \} _ { j = 1 } ^ { d }$ induces distribution $P ( X )$ . Let $\mathcal { G } ^ { \Pi }$ be the fully-connected DAG that corresponds to an ordering Π. If there is an SEM with $\mathcal { G } _ { \Pi }$ inducing the same distribution $P ( X )$ , then $\mathcal { G } ^ { \Pi }$ must be a super-graph of $\mathcal { G } ^ { * }$ , i.e., every edge in $\mathcal { G } ^ { * }$ is covered in $\mathcal { G } ^ { \Pi }$ .
61
+
62
+ Proof. The SEM with $\mathcal { G } ^ { \Pi }$ may not be causally minimal but can be reduced to an SEM satisfying the causal minimality condition (Peters et al., 2014). Let $\tilde { \mathcal { G } } ^ { \Pi }$ denotes the causal graph in the reduced SEM with the same distribution $P ( X )$ . Since we have assumed that original SEM is identifiable, i.e., the distribution $P ( X )$ corresponds to a unique true graph, $\tilde { \mathcal { G } } ^ { \Pi }$ is then identical to $\mathcal { G } ^ { * }$ . The proof is complete by noticing that $\mathcal { G } ^ { \Pi }$ is a super-graph of $\tilde { \mathcal { G } } ^ { \Pi }$ . □
63
+
64
+ # 3.2 REINFORCEMENT LEARNING
65
+
66
+ Standard RL is usually formulated as an MDP over the environment state $s \in S$ and agent action $a \in { \mathcal { A } }$ , under an (unknown) environmental dynamics defined by a transition probability $\mathcal { T } ( s ^ { \prime } | s , a )$ . We use $\pi _ { \phi } ( a | s )$ to denote the policy, parameterized by $\phi$ , which outputs a discrete (or continuous) distribution used to select an action from action space $\mathcal { A }$ based on state $s$ . For episodic tasks, a trajectory ${ \boldsymbol { \tau } } = \{ s _ { t } , a _ { t } \} _ { t = 0 } ^ { T }$ , where $T$ is the finite time horizon, can be collected by executing the policy repeatedly. In many cases, an immediate reward $r ( s , a )$ can be received when agent executes an action. The objective of RL is to learn a policy which can maximize the expected cumulative reward along a trajectory, i.e., a discount factor. For some s $J ( \phi ) = \mathbb { E } _ { \pi _ { \phi } } [ R _ { 0 } ]$ with ard is $\begin{array} { r } { R _ { 0 } = \sum _ { t = 0 } ^ { T } \gamma ^ { t } r _ { t } ( s _ { t } , a _ { t } ) } \end{array}$ and nal t $\gamma \in ( 0 , 1 ]$ being called episodic reward), and $J ( \phi ) = \mathbb { E } _ { \pi _ { \phi } } [ R ( \tau ) ]$ with $R ( \tau ) = r _ { T } ( s _ { T } , a _ { T } )$ .
67
+
68
+ # 4 METHOD
69
+
70
+ In this section, we first introduce how to model the ordering search problem as an MDP, then we show how to use RL to find the optimal ordering, and we introduce how to process the searched ordering to obtain the final DAG, finally we provide a discussion on computational complexity.
71
+
72
+ # 4.1 ORDERING SEARCH AS A MARKOV DECISION PROCESS
73
+
74
+ We can regard the variable ordering search problem as a muti-stage decision problem with a variable selected at each decision step. We sort the selected variables according to decision steps to obtain a variable ordering, which is defined as the searched ordering. The decision-making process is Markovian, and its elements in the problem can be defined as follows:
75
+
76
+ State One can directly take the sample data $\mathbf { x } _ { j }$ of each variable $X _ { j }$ as a state $s _ { j }$ . However, preliminary experiments show that it is difficult for feed-forward neural network models to capture the underlying causal relationships directly using observed data as states, and the data pre-processed by a module conventionally named encoder is helpful to finding the better ordering, see Appendix A.1. The encoder module embeds each $\mathbf { x } _ { j }$ to $s _ { j }$ and all the embedded states constitute the space $s : =$ $\{ s _ { 1 } , \ldots , s _ { d } \}$ . Adding initial state $s _ { 0 }$ to the space constitutes the complete state space $\hat { S } : = \mathcal { S } \cup { s } _ { 0 }$ . We use $\hat { s } _ { t }$ to denote the state encountered at the $t$ -th decision step.
77
+
78
+ Action We select an action (variable) from the action space constituted by all the variables at each decision step, and the space size is equal to the number of variables, $| { \mathcal { A } } | = d$ . Compared to the previous RL-based method searching from the graph space with size ${ \mathcal { O } } ( 2 ^ { d \times d } )$ (Zhu et al., 2020), the search space is smaller. Note that according to the definition of ordering, the first selected variable is the source node and the last selected node is the sink node.
79
+
80
+ State transition The specified state transition is related to the action selected at the current decision step. Specifically, if the selected variable is $v _ { j }$ at the $t$ -th decision step, then the state is transferred to the state $s _ { j } \in { \mathcal { S } }$ which is the $j$ -th output from Transformer encoder, i.e., $\hat { s } _ { t + 1 } = s _ { j }$ .
81
+
82
+ Reward As we described in Section 3.1, only the variables that have been selected in previous decision steps can be the potential parents of the currently selected variable. Hence, we can design the rewards in the following cases: dense reward and episodic reward. For dense reward case, we can exploit the decomposability of the score function (BIC score) to calculate an immediate reward for the current decision step based on the potential parent variables (that have been selected), i.e., if $v _ { j }$ is selected at time step $t$ , the immediate reward is calculated by
83
+
84
+ $$
85
+ r _ { t } = \sum _ { k = 1 } ^ { m } \log p ( X _ { j } ^ { k } | U ( X _ { j } ) , \theta _ { j } ) - \frac { | \theta _ { j } | } { 2 } \log m ,
86
+ $$
87
+
88
+ where $U ( X _ { j } )$ denotes the potential parent variable set of $X _ { j }$ and the set consists of the variables associated with the nodes in $\Pi _ { \prec v _ { j } }$ . For episodic reward case, we directly calculate a score as an episodic reward for a complete variable ordering regardless of whether the scoring function is decomposable or not, i.e.,
89
+
90
+ $$
91
+ R ( \tau ) = r _ { T } ( \hat { s } , a ) = \mathrm { S c o r e } _ { \mathrm { B I C } } ( \mathcal { G } ^ { \Pi } )
92
+ $$
93
+
94
+ where ScoreBIC has been defined in Equation (1), with the set $\mathrm { P a } ( X _ { j } )$ of each variable $X _ { j }$ replaced by the potential parent variable set $U ( X _ { j } )$ here.
95
+
96
+ # 4.2 IMPLEMENTATION AND OPTIMIZATION WITH REINFORCEMENT LEARNING
97
+
98
+ We describe the neural network architectures implemented in our method, which consists of an encoder and a decoder as shown in Figure 2. Here we briefly describe the model architectures and leave details regarding model parameters to Appendix A.
99
+
100
+ Encoder f enc : X˜ 7→ S is used to map the observed data to the embedding space ${ \boldsymbol { s } } \ =$ $\{ s _ { 1 } , \ldots , s _ { d } \}$ . For sample efficiency, we follow Zhu et al. (2020) to randomly draw $n$ samples from the dataset $\mathbf { X }$ to construct $\dot { \tilde { \mathbf { X } } } \in \mathbb { R } ^ { n \times d }$ at each episode and use $\tilde { \mathbf { X } }$ instead of $\mathbf { X }$ . We also set the embedding $s _ { j }$ to be in the same dimension, i.e., $s _ { j } \in \mathbb { R } ^ { n }$ . For encoder choice, we conduct an empirical comparison among several possible structures such as a selfattention based encoder (Vaswani et al., 2017) and an LSTM structure. Empirically, we confirm that the self-attention based encoder in the Transformer structure performs the best, which is also used in Zhu et al. (2020). Please find more details in Appendix A.1.
101
+
102
+ ![](images/bed038f6c2e3baa97c1dee3df9116cfab13aff53c55a96f7a77a859376bed0db.jpg)
103
+ Figure 2: Illustration of the policy model. The encoder embeds the observed data $\mathbf { x } _ { j }$ into the state $s _ { j }$ . An action $a _ { t }$ can be selected by the decoder according to the given state $\hat { s } _ { t }$ at each time step $t$ .
104
+
105
+ Decoder $f _ { \phi _ { d } } ^ { \mathrm { d e c } } : \hat { S } \mapsto A$ maps the state space $\hat { S }$ to the action space $\mathcal { A }$ . Among several decoder choices (please see also Appendix A.1 for empirical comparison), we specifically pick an LSTM based structure that proves effective in our experiments. Although the initial state is usually generated randomly, we pick it as $\begin{array} { r } { s _ { 0 } = \frac { 1 } { d } \sum _ { i = 1 } ^ { d } s _ { i } } \end{array}$ , considering that the source node is fixed in correct ordering. We then restrict each node only be selected once by masking the selected nodes so as to generate a valid variable ordering (Vinyals et al., 2015).
106
+
107
+ Optimization The optimization objective is to learn a policy which maximizes $J ( \phi ) = \mathbb { E } _ { \pi _ { \phi } } [ R ]$ , where $\pi _ { \phi }$ denotes the policy model parameterized by the paprameters $\{ \phi _ { e } , \phi _ { d } \}$ of encoder $f ^ { \mathrm { e n c } }$ and decoder $f ^ { \mathrm { d e c } }$ . Based on the above definition, policy gradient (Sutton $\&$ Barto, 2018) is used to optimize the ordering generation model parameters. For the dense reward case, policy gradient can be written as $\begin{array} { r } { \nabla J ( \phi ) = \mathbb { E } _ { \pi _ { \phi } } \left[ \sum _ { t = 0 } ^ { T } R _ { t } \hat { \nabla } _ { \phi } \log \pi _ { \phi } \left( a _ { t } \lvert \hat { s } _ { t } \right) \right] } \end{array}$ , where $\begin{array} { r } { R _ { t } = \sum _ { l = 0 } ^ { T - t } \gamma ^ { l } r _ { t + l } } \end{array}$ denotes the return at time step $t$ . We denote the algorithm using this reward design as CORL-1. For the episodic reward case, we have the following policy gradient $\begin{array} { r } { \nabla J ( \phi ) = \mathbb { E } _ { \pi _ { \phi } } \left[ R ( \tau ) \sum _ { t = 0 } ^ { T } \nabla _ { \phi } \log \pi _ { \phi } \left( a _ { t } | \hat { s } _ { t } \right) \right] } \end{array}$ , the algorithm using this reward design is denoted as CORL-2. Using a parametric baseline to estimate the expected score typically improves learning (Konda $\&$ Tsitsiklis, 2000). Therefore, we introduce a critic network $V _ { \phi _ { v } } ( \hat { s } _ { t } )$ parameterized by $\phi _ { v }$ , which learns the expected return given a state $\hat { s } _ { t }$ . It is trained with stochastic gradient descent using Adam optimizer on a mean squared error objective between its predicted value and the actual return. The details about the parameters of critic network are described in Appendix A.2.
108
+
109
+ Inspired by the benefits of pretrained models in other tasks (Hinton & Salakhutdinov, 2012), we also consider to incorporate it to our method to accelerate training. Usually, one can obtain some observed data with known causal structure or correct ordering, e.g., by simulation or real data with labeled graph. Hence, we pretrain a policy model with such data in a supervised way.
110
+
111
+ So far we presented CORL in a general manner without specifying explicitly which distribution family is during the evaluation of rewards. In principle, any distribution family could be employed as long as its log-likelihood can be computed and no differentiability is required. However, it is not always clear whether the maximization of the accumulated reward recovers the correct ordering. It will depend on both the modelling choice of reward and the underlying SEM; in fact, if the causal relationships fall into the chosen model functions and a right distribution family is assumed, then given infinite samples the optimal accumulated reward, corresponding to the negative log-likelihood, must be achieved by a super-DAG of the underlying graph according to Proposition 1. In practice, we
112
+
113
+ # Algorithm 1 CORL.
114
+
115
+ Require: observed data $\mathbf { X }$ , initial parameters $\theta _ { e } , \theta _ { d }$ and $\theta _ { v }$ , two empty buffers $\mathcal { D }$ and $\mathcal { D } _ { s c o r e }$ , initial
116
+ value (negative infinite) BestScore and a random ordering BestOrdeing.
117
+ 1: while not terminated do
118
+ 2: draw a batch of samples from $\mathbf { X }$ , encode them to $s$ and calculate the initial state $\hat { s } _ { 0 }$
119
+ 3: for $t = 0 , 1 , \ldots , T$ do
120
+ 4: collect a batch of data $\left. \hat { s } _ { t } , a _ { t } , r _ { t } \right.$ with $\pi _ { \theta }$ $\therefore D = \mathcal { D } \cup \{ \langle \hat { s } _ { t } , a _ { t } , r _ { t } \rangle \}$
121
+ 5: if $\left. v _ { t } , \Pi _ { \prec v _ { t } } , r _ { t } \right.$ is not in $\mathcal { D } _ { s c o r e }$ then
122
+ 6: store $\left. v _ { t } , \Pi _ { \prec v _ { t } } , r _ { t } \right.$ in $\mathcal { D } _ { s c o r e }$ to avoid repeated computations
123
+ 7: end if
124
+ 8: end for
125
+ 9: update $\theta _ { e } , \theta _ { d } , \theta _ { v }$ according to Section 4.2
126
+ 10: if $\textstyle \sum _ { t = 0 } ^ { T } r _ { t } >$ BestScore then
127
+ 11: update the BestScore and BestOrdering
128
+ 12: end if
129
+ 13: end while
130
+ 14: get the final DAG by pruning the BestOrdering
131
+
132
+ can only apply approximate model functions and also need to assume certain distribution family for caculating the reward.
133
+
134
+ Our method is summarized in Algorithm 1. In addition, we record the decomposed scores for each variable $v _ { j }$ with different parental sets $\Pi _ { \prec v _ { j } }$ to avoid repeated computations which are generally time-consuming (see Section 4.4). Although we cannot guarantee to find the optimal ordering because policy gradient can at most guarantee local convergence (Sutton et al., 2000) and also we only have access to the empirical log-likelihood, we remark that the ordering obtained from CORL still enjoy a good performance in the experiments, compared with consistent methods like GES and PC.
135
+
136
+ # 4.3 VARIABLE SELECTION
137
+
138
+ If an estimated ordering $\hat { \Pi }$ is consistent, then we obtain a fully-connected DAG (super-DAG) $\mathcal { G } ^ { \hat { \Pi } }$ of the underlying DAG $\mathcal { G }$ . One can then pursue consistent estimation of intervention distributions based on $\hat { \Pi }$ without any additional need to find the true underlying DAG $\mathcal { G } ^ { * }$ (Bühlmann et al., 2014). For other purposes, however, we need to recover the true graph from the fully-connected DAG. There exist several efficient methods such as sparse candidate (Teyssier & Koller, 2005), significance testing of covariates (Bühlmann et al., 2014), the group Lasso (Ravikumar et al., 2009), or its improved version with a sparsity-smoothness penalty proposed in Meier et al. (2009).
139
+
140
+ For linear data models, we apply linear regression to the obtained fully-connected DAG, followed by thresholding to prune edges with small weights, as similarly used by Zheng et al. (2018); Yu et al. (2019); Zhu et al. (2020). For the nonlinear model, we follow the pruning process used by Bühlmann et al. (2014); Lachapelle et al. (2020). Specifically, for each variable $X _ { j }$ , one can fit a generalized additive model against the current parents of $X _ { j }$ and then apply significance testing of covariates, declaring significance if the reported p-values are lower or equal to 0.001.
141
+
142
+ # 4.4 COMPUTATIONAL COMPLEXITY
143
+
144
+ To learn an ordering, CORL relies on the proper training of RL model. Policy gradient and stochastic gradient are adopted to train the actor and critic respectively, which are the standard choice in RL (Konda & Tsitsiklis, 2000). Similar to RL-BIC2 (Zhu et al., 2020), CORL requires the evaluation of the rewards at each episode with $O ( d m ^ { 2 } + d ^ { 3 } )$ computational cost if linear functions are adopted to model the causal relations, but does not need to compute the matrix exponential term with $O ( d ^ { \mathbf { \hat { 3 } } } )$ cost due to the use of ordering search. In addition, CORL formulates causal discovery as a multi-stage decision process and we observe that CORL performs fewer episodes than RL-BIC2 before the episode reward converges (see Appendix C). We suspect that due to a significant reduction in the size of action space, the model complexity of the RL policy is reduced, thus leading to higher sample efficiency. The evaluation of Transformer encoder and LSTM decoder in CORL take $\bar { \mathcal { O } } ( n d ^ { 2 } )$ and $\mathcal { O } ( d n ^ { 2 } )$ , respectively. However, we find that computing rewards is more dominating in the total runing time (e.g., around $9 5 \%$ and $8 7 \%$ for 30- and 100-node linear data models, respectively). Speeding up the calculation of rewards would be helpful in extend our approach to a larger problem, which is left as a future work.
145
+
146
+ In contrast with typical RL applications, we treat RL here as a search strategy for causal discovery, aiming to find an ordering that achieves the best score and then applying a variable selection method to remove redundant edges. Nevertheless, for the pretraining part with the goal of a good initialization, we may want sufficient generalization ability and hence consider diverse datasets with different number of nodes, noise types, causal relationships, etc.
147
+
148
+ # 5 EXPERIMENTS
149
+
150
+ In this section, we evaluate our methods against a number of methods on synthetic datasets with linear and non-linear causal relationships and also a real dataset. Specifically, these baselines include ICA-LiNGAM (Shimizu et al., 2006), three ordering-based approaches L1OBS (Schmidt et al., 2007), CAM (Bühlmann et al., 2014) and $\mathbf { A } ^ { * }$ Lasso (Xiang & Kim, 2013), some recent gradient-based approaches NOTEARS (Zheng et al., 2018), DAG-GNN (Yu et al., 2019) and GraN-DAG (Lachapelle et al., 2020), and the RL-based approach RL-BIC2 (Zhu et al., 2020). For all the compared algorithms, we use their original implementations (see Appendix B.1 for details) and pick the recommended hyper-parameters unless otherwise stated.
151
+
152
+ Different types of data are generated in synthetic datasets which vary along five dimensions: level of edge sparsity, graph type, number of nodes, causal functions and sample size. Two types of graph sampling schemes: Erdös–Rényi (ER) and Scale-free (SF) are considered in our experiments. We denote $d$ -node ER or SF graphs with on average hd edges as $\mathrm { E R } h$ or $\mathrm { S F } h$ . Two common metrics are considered: True Positive Rate (TPR) and Structural Hamming Distance (SHD). The former indicates the probability of correctly finding the positive edges among the discoveries (Jain et al., 2017). Hence, it can be used to measure the quality of an ordering, the higher the better. The latter counts the total number of missing, falsely detected or reversed edges, the smaller the better.
153
+
154
+ # 5.1 LINEAR DATA MODELS WITH GAUSSIAN AND NON-GAUSSIAN NOISE
155
+
156
+ We evaluate the proposed methods on Linear Gaussian (LG) with equal variance Gaussian noise and LiNGAM data models, and the true DAGs in both cases are known to be identifiable (Peters & Bühlmann, 2014; Shimizu et al., 2006). We set $h \in \{ 2 , 5 \}$ and $d \in \{ 3 0 , 5 0 , 1 0 0 \}$ to generate observed data following the procedure done in Zheng et al. (2018) (see Appendix B.2 for details). For variable selection, we set the thresholding as 0.3 and apply it to the estimated coefficients.
157
+
158
+ Table 1: Empirical results for ER and SF graphs of 30 nodes with LG data.
159
+
160
+ <table><tr><td></td><td></td><td>RANDOM</td><td>NOTEARS</td><td>DAG-GNN</td><td>RL-BIC2</td><td>L1OBS</td><td>A* Lasso</td><td>CORL-1</td><td>CORL-2</td></tr><tr><td>ER2</td><td>TPR</td><td>0.41 (0.04)</td><td>0.95 (0.03)</td><td>0.91 (0.05)</td><td>0.94 (0.05)</td><td>0.78 (0.06)</td><td>0.88 (0.04)</td><td>0.99 (0.02)</td><td>0.99 (0.01)</td></tr><tr><td></td><td>SHD</td><td>140.4 (36.7)</td><td>14.2 (9.4)</td><td>26.5 (12.4)</td><td>17.8 (22.5)</td><td>85.2 (23.8)</td><td>35.3 (14.3)</td><td>5.2 (7.4)</td><td>4.4 (3.5)</td></tr><tr><td>ER5</td><td>TPR</td><td>0.43 (0.03)</td><td>0.93 (0.01)</td><td>0.85 (0.11)</td><td>0.91 (0.03)</td><td>0.74 (0.04)</td><td>0.84 (0.05)</td><td>0.94 (0.03)</td><td>0.95 (0.03)</td></tr><tr><td></td><td>SHD</td><td>210.2 (43.5)</td><td>35.4 (7.3)</td><td>68.0 (39.8)</td><td>45.6 (13.3)</td><td>98.6 (32.7)</td><td>71.2 (21.5)</td><td>37.4 (16.9)</td><td>37.6 (14.5)</td></tr><tr><td>SF2</td><td>TPR</td><td>0.58 (0.02)</td><td>0.98 (0.02)</td><td>0.92 (0.09)</td><td>0.99 (0.02)</td><td>0.83 (0.04)</td><td>0.93 (0.02)</td><td>1.0 (0.01)</td><td>1.0 (0.01)</td></tr><tr><td></td><td>SHD</td><td>118.4 (12.3)</td><td>6.1 (2.3)</td><td>36.8 (33.1)</td><td>3.2 (1.7)</td><td>49.7 (28.1)</td><td>27.3 (18.4)</td><td>0.0 (0.0)</td><td>0.0 (0.0)</td></tr><tr><td>SF5</td><td>TPR</td><td>0.44 (0.03)</td><td>0.94 (0.03)</td><td>0.89 (0.09)</td><td>0.96 (0.03)</td><td>0.79 (0.04)</td><td>0.88 (0.03)</td><td>1.00 (0.00)</td><td>1.00 (0.00)</td></tr><tr><td></td><td>SHD</td><td>165.4 (10.6)</td><td>23.3 (6.9)</td><td>47.8 (35.2)</td><td>11.3 (5.2)</td><td>89.3 (25.7)</td><td>40.5 (19.8)</td><td>0.0 (0.0)</td><td>0.0 (0.0)</td></tr></table>
161
+
162
+ Tables 1 &2 present results only for 30- and 100-node LG data models since the conclusions do not change with graphs of 50 nodes (see Appendix D for 50-node graphs). We report the performance of the popular ICA-LiNGAM, GraN-DAG and CAM in Appendix D since they are almost never on par with the best methods presented in this section. CORL-1 and CORL-2 achieve consistently good results on the LiNGAM datasets which are reported in Appendix E due to the space limit.
163
+
164
+ We now examine Tables 1 &2 (the values in parentheses represent the standard deviation across datasets per task). We can see that, across all settings, CORL-1 and CORL-2 are the best performing methods, both in terms of TPR and SHD, while NOTEARS and DAG-GNN are not too far behind.
165
+
166
+ Table 2: Empirical results for ER and SF graphs of 100 nodes with LG data.
167
+
168
+ <table><tr><td></td><td></td><td>RANDOM</td><td>NOTEARS</td><td>DAG-GNN</td><td>RL-BIC2</td><td>L1OBS</td><td>A*Lasso</td><td>CORL-1</td><td>CORL-2</td></tr><tr><td>ER2</td><td>TPR SHD</td><td>0.33 (0.05) 491.4 (17.6)</td><td>0.93 (0.02) 72.6 (23.5)</td><td>0.93 (0.03) 66.2 (19.2)</td><td>0.02 (0.01) 270.8 (13.5)</td><td>0.54 (0.02) 481.2 (49.9)</td><td>0.86 (0.04) 128.5 (38.4)</td><td>0.98 (0.02) 24.8 (10.1)</td><td>0.98 (0.01) 18.6 (5.7)</td></tr><tr><td>ER5</td><td>TPR</td><td>0.34 (0.04)</td><td>0.91 (0.01)</td><td>0.86 (0.16)</td><td>0.08 (0.03)</td><td>0.53 (0.02)</td><td>0.82 (0.05)</td><td>0.93 (0.02)</td><td>0.94 (0.03)</td></tr><tr><td></td><td>SHD</td><td>984.4 (35.7)</td><td>170.3 (34.2)</td><td>236.4 (36.8)</td><td>421.2 (46.2)</td><td>547.9 (63.4)</td><td>244.0 (42.3)</td><td>175.3 (18.9)</td><td>164.8 (17.1)</td></tr><tr><td>SF2</td><td>TPR SHD</td><td>0.48 (0.03)</td><td>0.98 (0.01)</td><td>0.89 (0.14)</td><td>0.04 (0.02)</td><td>0.57 (0.03)</td><td>0.92 (0.03)</td><td>1.00 (0.00)</td><td>1.00 (0.00)</td></tr><tr><td></td><td></td><td>503.4 (23.8)</td><td>2.3 (1.3)</td><td>156.8 (21.2)</td><td>281.2 (17.4)</td><td>377.3 (53.4)</td><td>54.0 (22.3)</td><td>0.0 (0.0)</td><td>0.0 (0.0)</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>SF5</td><td>TPR</td><td>0.47 (0.04)</td><td>0.95 (0.01)</td><td>0.87 (0.15)</td><td>0.05 (0.03)</td><td>0.55 (0.04)</td><td>0.89 (0.03)</td><td>0.97 (0.02)</td><td>0.98 (0.01)</td></tr><tr><td></td><td>SHD</td><td>891.3 (19.4)</td><td>90.2 (34.5)</td><td>165.2 (22.0)</td><td>405.2 (77.4)</td><td>503.7 (56.4)</td><td>114.0 (36.4)</td><td>19.4 (5.2)</td><td>10.8 (6.1)</td></tr></table>
169
+
170
+ As we discussed previously, RL-BIC2 only achieves satisfactory results on graphs with 30 nodes. The TPR of L1OBS is lower than that of $\mathbf { A } ^ { * }$ Lasso, which indicates that L1OBS using greedy hill-climbing with tabu lists may not find a good ordering. Note that SHD of L1OBS and $\mathbf { A } ^ { * }$ Lasso reported here are the results of applying our pruning method. We observe that SHD of them is greatly improved by pruning. For example, specifically, SHD of L1OBS decreases from 171.6 (29.5), 588.0 (66.2) and 1964.5 (136.6) to 85.2 (23.8), 215.4 (26.3) and 481.2 (49.9) in LG ER2 with 30, 50 and 100 nodes respectively, while TPR almost did not degraded. It shows the effectiveness of pruning by model fitting with a thresholding.
171
+
172
+ We further evaluate our method on 150-node LG ER2 data models. On the datasets, CORL-1 has TPR and SHD being 0.95 (0.01) and 63.7 (9.1), while CORL-2 has 0.97 (0.01) and 38.3 (14.3), respectively. CORL-2 outperforms NOTEARS with 0.94 (0.02) and 50.8 (21.8).
173
+
174
+ Although both CORL-1 and CORL-2 achieve the desired performance, one can notice that CORL-2 achieves slightly better SHD than CORL-1. This is a little different from the usual understanding that RL is usually easier to learn from dense rewards than from episodic reward case. We take the 100-node LG ER2 data models as an example to show the training reward curves of the CORL-1 and CORL-2 in Figure 3. One can notice that CORL-2 converges faster to a better result than CORL-1, which corresponds to the fact that CORL-2 achieves the slightly better TPR and SHD than CORL-1. We conjecture that this is because it is difficult for the critic to learn to predict the score accurately for each state; in the episodic reward case, however, it is only required to learn to predict the score accurately for the initial state.
175
+
176
+ ![](images/a87bc88da2f55a24fad2cb7cdf2033e7b87ddf2445e53542a8c1ef896ada9006.jpg)
177
+ Figure 3: Learning curves of CORL-1, CORL-2 and CORL-2-pretrain on 100- node linear Gaussian dataset.
178
+
179
+ Pretaining We show the training reward curve of
180
+ CORL-2-pretrain in Figure 3, which is CORL-2 based on a pretrained model trained in the supervised way. The testing data task is unseen in the datasets for pretraining which contain 30-node LiNGAM ER2, 50-node LiNGAM ER2, 30-node LiNGAM SF2 and 30-node GP ER1. Obviously compared to that of CORL-2 using random initialization (CORL-2), the use of a pretrained model can accelerate the model learning process. Consistent conclusion can be drawn from the experiment of CORL-1, see Appendix G. In addition, we consider using the policy model learned only on 30-node LiNGAM data model as the pretrained model on 100-node LG task. We observe that the performance is similar to that of using the pretrained model obtained in the supervised way, we do not report the results repeatedly here.
181
+
182
+ # 5.2 NON-LINEAR MODEL WITH GAUSSIAN PROCESS
183
+
184
+ In this experiment, we consider to use Gaussian Process (GP) to model causal relationships in which each causal relation $f _ { j }$ is a function sampled from a GP with radial basis function kernel of bandwidth one and normal Gaussian noises, which is known to be identifiable according to Peters et al. (2014). We set $h = 1$ and 4 to get ER1 and ER4 graphs, respectively, and generate data by exploiting them (see Appendix B.2 for details). Our method is evaluated on different sample numbers, the results when $m = 5 0 0$ are reported here (see Appendix F for additional results). Note that due to the efficiency of the reward calculation, we only experimented on nonlinear data models of up to 30 nodes scale. The pruning method for variable selection used here is the CAM pruning from Bühlmann et al. (2014).
185
+
186
+ ![](images/dec2b597023fe891b9174b627d83ad061518ff0f568f3cc35a562476a61eaa3e.jpg)
187
+ Figure 4: The empirical results on GP data models with 10 and 30 nodes.
188
+
189
+ The results on 10-node and 30-node datasets with ER1 and ER4 graphs are shown in Figure 3. Here we only consider some baselines that are competitive in the nonlinear data models, where CAM is a very strong ordering based baseline. Although GraN-DAG achieves better results than DAG-GNN, they are worse than CAM overall. We believe this is because 500 samples are so small that GraN-DAG and DAG-GNN have not learned the good model. RL-BIC2 performs well on 10-node datasets, but achieves poor results on 30-node datasets, probably due to its lack of scalability. CAM, CORL-1 and CORL-2 have good results, with CORL-2 achieving the best results on 10-node graphs and slightly worse than CAM on 30-node graphs. All of these methods have better results on ER1 than on ER4, especially on 30-node graphs.
190
+
191
+ # 5.3 REAL DATA
192
+
193
+ The Sachs dataset (Sachs et al., 2005), with 11-node and 17-edge true graph, is widely used for research on graphical models. The expression levels of protein and phospholipid in the dataset can be used to discover the implicit protein signal network. The observational dataset has $m = 8 5 3$ samples and is used to discover the causal structure. GP is used to model the causal relationship in our method. In this experiment, CORL-1, CORL-2 and RL-BIC2 achieve the best SHD 11. CAM, GraN-DAG, and ICA-LiNGAM achieve the SHD 12, 13 and 14, respectively. Particularly, DAG-GNN and NOTEARS result in SHD 16 and 19, respectively, whereas an empty graph has an SHD 17.
194
+
195
+ # 6 CONCLUSION
196
+
197
+ In this work, we have proposed a RL-based approach for causal discovery named CORL. It searches the space of variable orderings, instead of the space of directed graphs. We formulate ordering search as an MDP and have further proposed CORL-1 and CORL-2 for training the ordering generating model. For a generated ordering, it can be pruned by variable selection to the final DAG. The empirical results on the synthetic and the real datasets show that our approach is promising.
198
+
199
+ # REFERENCES
200
+
201
+ Mark Bartlett and James Cussens. Integer linear programming for the bayesian network structure learning problem. Artificial Intelligence, 244:258–271, 2017.
202
+
203
+ Irwan Bello, Hieu Pham, Quoc V Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. arXiv preprint arXiv:1611.09940, 2016.
204
+
205
+ Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Rosemary Ke, Sébastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. In International Conference on Learning Representations (ICLR), 2020.
206
+
207
+ Daniel Bernstein, Basil Saeed, Chandler Squires, and Caroline Uhler. Ordering-based causal structure learning in the presence of latent variables. In International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 4098–4108. PMLR, 2020.
208
+
209
+ Peter Bühlmann, Jonas Peters, Jan Ernest, et al. CAM: Causal additive models, high-dimensional order search and penalized regression. The Annals of Statistics, 42(6):2526–2556, 2014.
210
+
211
+ David Maxwell Chickering. Learning Bayesian networks is NP-complete. In Learning from Data: Artificial Intelligence and Statistics V. Springer, 1996.
212
+
213
+ David Maxwell Chickering. Optimal structure identification with greedy search. Journal of Machine Learning Research, 3(Nov):507–554, 2002.
214
+
215
+ James Cussens. Bayesian network learning with cutting planes. In Proceedings of the Twenty-Seventh Conference on Uncertainty in Artificial Intelligence (UAI), pp. 153–160, 2011.
216
+
217
+ Cassio P De Campos and Qiang Ji. Efficient structure learning of bayesian networks using constraints. The Journal of Machine Learning Research, 12:663–689, 2011.
218
+
219
+ Nir Friedman and Daphne Koller. Being Bayesian about network structure. A Bayesian approach to structure discovery in Bayesian networks. Machine learning, 50(1-2):95–125, 2003.
220
+
221
+ Dan Geiger and David Heckerman. Learning Gaussian networks. In Uncertainty Proceedings 1994, pp. 235–243. Elsevier, 1994.
222
+
223
+ Geoffrey E Hinton and Russ R Salakhutdinov. A better way to pretrain deep boltzmann machines. In Advances in Neural Information Processing Systems (NeurIPS), pp. 2447–2455, 2012.
224
+
225
+ Patrik O. Hoyer, Dominik Janzing, Joris M Mooij, Jonas Peters, and Bernhard Schölkopf. Nonlinear causal discovery with additive noise models. In Advances in Neural Information Processing Systems (NeurIPS), 2009.
226
+
227
+ Biwei Huang, Kun Zhang, Yizhu Lin, Bernhard Schölkopf, and Clark Glymour. Generalized score functions for causal discovery. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD), pp. 1551–1560, 2018.
228
+
229
+ Tommi Jaakkola, David Sontag, Amir Globerson, and Marina Meila. Learning Bayesian network structure using LP relaxations. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 358–365, 2010.
230
+
231
+ Shantanu Jain, Martha White, and Predrag Radivojac. Recovering true classifier performance in positive-unlabeled learning. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), 2017.
232
+
233
+ Elias Khalil, Hanjun Dai, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
234
+
235
+ Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques. MIT Press, Cambridge, MA, USA, 2009.
236
+
237
+ Vijay R. Konda and John N. Tsitsiklis. Actor-critic algorithms. In Advances in Neural Information Processing Systems (NeurIPS), 2000.
238
+
239
+ Wouter Kool, Herke Van Hoof, and Max Welling. Attention, learn to solve routing problems! In International Conference on Learning Representations (ICLR), 2019.
240
+
241
+ Sébastien Lachapelle, Philippe Brouillard, Tristan Deleu, and Simon Lacoste-Julien. Gradient-based neural DAG learning. In International Conference on Learning Representations (ICLR), 2020.
242
+
243
+ Pedro Larranaga, Cindy MH Kuijpers, Roberto H Murga, and Yosu Yurramendi. Learning bayesian network structures by searching for the best ordering with genetic algorithms. IEEE Transactions on Systems, Man, and Cybernetics-Part A: Systems and Humans, 26(4):487–493, 1996.
244
+
245
+ Lukas Meier, Sara Van de Geer, Peter Bühlmann, et al. High-dimensional additive modeling. The Annals of Statistics, 37(6B):3779–3821, 2009.
246
+
247
+ Ignavier Ng, Zhuangyan Fang, Shengyu Zhu, Zhitang Chen, and Jun Wang. Masked gradient-based causal structure learning. arXiv preprint arXiv:1910.08527, 2019a.
248
+
249
+ Ignavier Ng, Shengyu Zhu, Zhitang Chen, and Zhuangyan Fang. A graph autoencoder approach to causal structure learning. arXiv preprint arXiv:1911.07420, 2019b.
250
+
251
+ Eric Perrier, Seiya Imoto, and Satoru Miyano. Finding optimal bayesian network given a superstructure. Journal of Machine Learning Research, 9(Oct):2251–2286, 2008.
252
+
253
+ Jonas Peters and Peter Bühlmann. Identifiability of gaussian structural equation models with equal error variances. Biometrika, 101(1):219–228, 2014.
254
+
255
+ Jonas Peters, Joris M. Mooij, Dominik Janzing, and Bernhard Schölkopf. Causal discovery with continuous additive noise models. Journal of Machine Learning Research, 15(1):2009–2053, January 2014. ISSN 1532-4435.
256
+
257
+ Garvesh Raskutti and Caroline Uhler. Learning directed acyclic graph models based on sparsest permutations. Stat, 7(1):e183, 2018.
258
+
259
+ Pradeep Ravikumar, John Lafferty, Han Liu, and Larry Wasserman. Sparse additive models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 71(5):1009–1030, 2009.
260
+
261
+ Karen Sachs, Omar Perez, Dana Pe’er, Douglas A Lauffenburger, and Garry P Nolan. Causal proteinsignaling networks derived from multiparameter single-cell data. Science, 308(5721):523–529, 2005.
262
+
263
+ Mauro Scanagatta, Cassio P de Campos, Giorgio Corani, and Marco Zaffalon. Learning bayesian networks with thousands of variables. In Advances in Neural Information Processing Systems (NeurIPS), pp. 1864–1872, 2015.
264
+
265
+ Mark Schmidt, Alexandru Niculescu-Mizil, Kevin Murphy, et al. Learning graphical model structure using L1-regularization paths. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), 2007.
266
+
267
+ Gideon Schwarz et al. Estimating the dimension of a model. The Annals of Statistics, 6(2):461–464, 1978.
268
+
269
+ Shohei Shimizu, Patrik O Hoyer, Aapo Hyvärinen, and Antti Kerminen. A linear non-Gaussian acyclic model for causal discovery. Journal of Machine Learning Research, 7(Oct):2003–2030, 2006.
270
+
271
+ Tomi Silander and Petri Myllymäki. A simple approach for finding the globally optimal bayesian network structure. In Proceedings of the Twenty-Second Conference on Uncertainty in Artificial Intelligence (UAI), pp. 445–452, 2006.
272
+
273
+ Liam Solus, Yuhao Wang, and Caroline Uhler. Consistency guarantees for greedy permutation-based causal inference algorithms. arXiv preprint arXiv:1702.03530, 2017.
274
+
275
+ Peter Spirtes, Clark N Glymour, Richard Scheines, and David Heckerman. Causation, Prediction, and Search. MIT press, 2000.
276
+
277
+ Richard S Sutton and Andrew G Barto. Reinforcement Learning: An Introduction. MIT press, 2018.
278
+
279
+ 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, 2000.
280
+
281
+ Marc Teyssier and Daphne Koller. Ordering-based search: A simple and effective algorithm for learning bayesian networks. In Conference on Uncertainty in Artificial Intelligence (UAI), 2005.
282
+
283
+ 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 (NeurIPS), 2017.
284
+
285
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems (NeurIPS), 2015.
286
+
287
+ Jing Xiang and Seyoung Kim. $\mathbf { A } ^ { * }$ lasso for learning a sparse bayesian network structure for continuous variables. In Advances in Neural Information Processing Systems (NeurIPS), 2013.
288
+
289
+ Yue Yu, Jie Chen, Tian Gao, and Mo Yu. DAG-GNN: DAG structure learning with graph neural networks. In International Conference on Machine Learning (ICML), 2019.
290
+
291
+ Jiji Zhang. On the completeness of orientation rules for causal discovery in the presence of latent confounders and selection bias. Artificial Intelligence, 172(16):1873 – 1896, 2008.
292
+
293
+ Kun Zhang and Aapo Hyvärinen. On the identifiability of the post-nonlinear causal model. In Conference on Uncertainty in Artificial Intelligence (UAI), 2009.
294
+
295
+ Xun Zheng, Bryon Aragam, Pradeep K Ravikumar, and Eric P Xing. DAGs with NO TEARS: Continuous optimization for structure learning. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
296
+
297
+ Shengyu Zhu, Ignavier Ng, and Zhitang Chen. Causal discovery with reinforcement learning. In International Conference on Learning Representations (ICLR), 2020.
298
+
299
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations (ICLR), 2017.
300
+
301
+ # APPENDIX
302
+
303
+ # A NETWORK ARCHITECTURES AND HYPER-PARAMETERS
304
+
305
+ A.1 MULTIPLE NETWORK ARCHITECTURE DESIGNS FOR ENCODER AND DECODER
306
+
307
+ There are a variety of neural network modules for encoder and decoder structures. Here we consider some representative modules: including , Multi-layer Perceptrons (MLP) module, an LSTM based recurrent neural network module, and the self-attention based encoder in the Transformer. In addition, we use the original observation data as the state directly, i.e., no encoder module is used, to show the necessity of encoder, which is denoted as Null. MLP consists of 3-layer feed-forward neural networks with 256, 512 and 256 units. The architecture of LSTM and Transformer are that introduced in Appendix A.2.
308
+
309
+ The empirical results of CORL-2 on 30-node LG ER2 datasets are reported in Table 3. We observe that LSTM decoder achieves a better performance than that of MLP decoder. This shows that LSTM is more effective than MLP in sequential decision tasks. Besides, the overall performance of neural network encoder is better than that of Null, which shows that the data pre-processed by encoder module is necessary. Among all these encoders, Transformer encoder achieves the best results. Similar conclusion was drawned in Zhu et al. (2020). We hypothesize that the performance of Transformer encoder is benefit from the self-attention scheme.
310
+
311
+ Table 3: Empirical results of CORL-2 with different choices of encoder and decoder on 30-node LG ER2 datasets. The smaller SHD the better, the higher TPR the better.
312
+
313
+ <table><tr><td rowspan="2" colspan="2"></td><td colspan="4">Encoder</td></tr><tr><td>Null</td><td>LSTM</td><td>MLP</td><td>Transformer</td></tr><tr><td rowspan="2">MLP Decoder</td><td>TPR</td><td>0.81 (0.07)</td><td>0.86 (0.10)</td><td>0.96 (0.02)</td><td>0.98 (0.02)</td></tr><tr><td>SHD</td><td>54.2 (25.1)</td><td>36.0 (26.7)</td><td>11.0 (5.3)</td><td>5.0 (3.3)</td></tr><tr><td rowspan="2">LSTMDecoder</td><td>TPR</td><td>0.94 (0.04)</td><td>0.88 (0.09)</td><td>0.97 (0.01)</td><td>0.99 (0.01)</td></tr><tr><td>SHD</td><td>20.6 (20.0)</td><td>29.0 (17.8)</td><td>8.6 (4.3)</td><td>4.4 (3.5)</td></tr></table>
314
+
315
+ A.2 NETWORK ARCHITECTURE AND HYPER-PARAMETERS OF CORL
316
+
317
+ ![](images/9f88b5954cb118a9e912f65a4df0f134a845ef9eb629d40c85ad8ee23c5b0fd6.jpg)
318
+ Figure 5: Illustration of the Transformer encoder. The encoder embeds the observed data $\mathrm { x } _ { j }$ of each variable $j$ into the state $s _ { j }$ . Notation block $\textcircled { \alpha } 3$ denotes three blocks here.
319
+
320
+ Both CORL-1 and CORL-2 use the actor-critic algorithm. We use the Adam optimizer with learning rate $1 e { - 4 }$ and $1 e { - 3 }$ for actor and critic respectively. The discount factor $\gamma$ is set to 0.98. The actor consists of an encoder and a decoder. We illustrate the neural network structure of the Transformer encoder used in our experiments in Figure 5. It consists of a feed-forward layer with 256 units and three blocks. Each block is composed of a multi-head attention network with 8 heads and 2-layer feed-forward neural networks with 1024 and 256 units. Each feed-forward layer is followed by a normalization layer. Given a batch of observed samples with shape $b \times d \times n$ , where $b$ denotes the batch size, $d$ the node number and $n$ the number of observed data for each variable in a batch, the final output of the encoder is a batch of embedded state with shape $b \times d \times 2 5 6$ .
321
+
322
+ ![](images/a193ed85b4b7d459c37b36cf01884ec7dfb4cfcc588f9a89f2d43e101e0c1bce.jpg)
323
+ Figure 6: Illustration of the LSTM decoder. At each time step, it maps the state $\hat { s } _ { t }$ to a distribution over action space $\mathcal { A } : = \{ a _ { 1 } , \ldots , a _ { d } \}$ , then an action (variable) can be selected randomly according to the distribution.
324
+
325
+ We illustrate the neural network structure of the decoder in Figure 6, which is mainly a LSTM similar to the decoder proposed by Vinyals et al. (2015). The LSTM takes a state as input and outputs a embedding. The embedding is mapped to the action space $\mathcal { A }$ by using some feed-forward neural networks, a soft-max module and the pointer mechanism (Vinyals et al., 2015). The outputs of the encoder are processed as the initial hidden state $h _ { 0 }$ of the decoder. The LSTM with 256 hidden units is used here. All of the feed-forward neural networks used in decoder have 256 units.
326
+
327
+ The critic uses 3-layer feed-forward neural networks with 512, 256 and 1 units. It takes a state $\hat { s }$ as input and outputs a predicted value for the current policy given state $\hat { s }$ . For CORL-1, the critic needs to predict the score for each state. For CORL-2, the critic takes the initial state $\hat { s } _ { 0 }$ as input and outputs a predicted value directly for a complete ordering.
328
+
329
+ # B BASELINES AND DATE SETS
330
+
331
+ # B.1 DETAILS OF BASELINES
332
+
333
+ The details of all the baselines considered in our experiments are listed as follows:
334
+
335
+ • ICA-LiNGAM assumes linear non-Gaussian additive model for data generating procedure and applies independent component analysis to recover the weighted adjacency matrix. This method can usually achieve good performance on LiNGAM datasets. However, it does not provide guarantee for linear Gaussian datasets. 1
336
+
337
+ • NOTEARS recovers the causal graph by estimating the weighted adjacency matrix with the least squares loss and the smooth characterization for acyclicity constraint.
338
+
339
+ • DAG-GNN formulates causal discovery in the framework of variational autoencoder and optimizes a weighted adjacency matrix with the evidence lower bound and a modified smooth characterization on acyclicity as loss function.
340
+
341
+ • GraN-DAG models the conditional distribution of each variable given its parents with feedforward neural networks. It uses the smooth directed acyclic constraint from NOTEARS to find a DAG that maximizes the log-likelihood of the observed samples. 4 RL-BIC2 formulates the causal discovery as a one-step decision making process and uses score function and acyclic constraint from NOTEARS to calculate the reward for the recovered directed graph. 5 CAM conducts a greedy estimation procedure that starts with an empty DAG and adds at each iteration the edge $( v _ { k } , v _ { j } )$ between nodes $v _ { k }$ and $v _ { j }$ that corresponds to the largest gain in log-likelihood. For a searched ordering, they prune it to the final DAG by applying significance testing of covariates. They perform the preliminary neighborhood selection to reduce the ordering space size searched. 6
342
+ L1OBS performs heuristic search (greedy hill-climbing with tabu lists) through the space of topological orderings to search a ordering with the best score, then it uses L1 variable selection to pruning the searched ordering (fully-connected DAG) to the final DAG. 7 $\mathbf { A } ^ { * }$ Lasso with a limited queue size incorporates a heuristic scheme into a dynamic programming based method. It first prunes the search space by using $\mathbf { A } ^ { * }$ Lasso, then it further pruning the search space by limiting the size of the priority queue in the OPEN list of $\mathbf { A } ^ { * }$ Lasso. The queue size usually needs to be adjusted to balance the time cost and the quality of the solution. 8
343
+
344
+ # B.2 DETAILS ON DATASETS GENERATION
345
+
346
+ We generate synthetic datasets which vary along five dimensions: level of edge sparsity, graph type, number of nodes, causal functions and sample size. We sampled 5 datasets of the required number examples for each task as follows: a ground truth DAG $\mathcal { G }$ is drawn randomly from either the Erdös–Rényi (ER) or Scale-free (SF) graph model; then, the data is generated according to a specific sampling scheme.
347
+
348
+ Specifically, for Linear Gaussian (LG) case, we set $h \in \{ 2 , 5 \}$ and $d \in \{ 3 0 , 5 0 , 1 0 0 \}$ to obtain the ER graph and SF graph (different types) with different levels of edge sparsity and different number of nodes, respectively. Then 5 datasets of 3000 examples are generated for each task following $\mathbf { X } = W ^ { T } \mathbf { X } + \mathbf { \bar { \Gamma } } \epsilon$ , where $W \in \mathbb { R } ^ { d \times d }$ denotes the weight matrix which is obtained by assigning edge weights independently from $\operatorname { U n i f } ( [ - 2 , - 0 . 5 ] \cup [ 0 . 5 , 2 ] )$ . Note that $\epsilon$ ’s are standard Gaussian noises with equal variances for each variable so as to LG data model is identifiable (Peters & Bühlmann, 2014).
349
+
350
+ For LiNGAM data model, the datasets are generated in the similar way with LG but the sampling for $\epsilon$ are different. The non-Gaussian noises are obtained by following Shimizu et al. (2006) which passes the noise samples from Gaussian distribution through a power nonlinearity to make them non-Gaussian. LiNGAM is identifiable shown in Shimizu et al. (2006).
351
+
352
+ Another data generating process is GP. We first obtain graph with different density and different number of nodes. Then the datasets with different sample sizes are generated following $X _ { j } ~ =$ $f _ { j } ( \mathbf { P a } ( X _ { j } ) ) + \epsilon _ { j }$ with jointly independent Gaussian noises for all $j$ where the function $f _ { j }$ is a function sampled from a GP with radial basis function kernel of bandwidth one and normal Gaussian noises. This setting is known to be identifiable according to Peters et al. (2014). Note that due to the efficiency of the reward calculation, we only experimented on nonlinear data models of up to 30 nodes.
353
+
354
+ # C TOTAL NUMBER OF EPISODES BEFORE CONVERGENCE
355
+
356
+ Table 4 reports the total number of episodes required for CORL-2 and RL-BIC2 to be converged, averaged over five datasets. Note that the episodic reward is evaluated once per episode. CORL formulates causal discovery as a multi-stage decision process and we observe that CORL performs fewer episodes than RL-BIC2 before the episode reward converges. We suspect that due to a significant reduction in the size of action space, the model complexity of the RL policy is reduced thus leading to higher sample efficiency. Some runtimes about them are also provided here (CORL-2 total runtime $\approx 1 5$ minutes against RL- $\mathrm { B I C } 2 \approx 3$ hours for 30-node ER2 graphs, $\approx 4$ hours against $\approx 1 4$ hour for 50-node ER2 graphs, and CORL- ${ \mathrm { } } 2 \approx 7$ hours for 100-node ER2 graphs). We set the maximal runtime up to 24 hours, but RL-BIC2 did not converge within that time on 100-node graphs, hence we did not report it here. Note that these runtime may be significantly reduced by parallelizing the evaluation of reward.
357
+
358
+ Table 4: Total number of iterations $( \times 1 0 ^ { 3 } )$ before RL converge on LG data.
359
+
360
+ <table><tr><td rowspan="2"></td><td colspan="2">30 nodes</td><td colspan="2">50 nodes</td><td colspan="2">100 nodes</td></tr><tr><td>ER2</td><td>ER5</td><td>ER2</td><td>ER5</td><td>ER2</td><td>ER5</td></tr><tr><td>CORL-2</td><td>1.0 (0.3)</td><td>1.1 (0.4)</td><td>1.9 (0.3)</td><td>2.4 (0.3)</td><td>2.3 (0.5)</td><td>2.9 (0.4)</td></tr><tr><td>RL-BIC2</td><td>3.9 (0.5)</td><td>4.1 (0.6)</td><td>3.4 (0.4)</td><td>3.5 (0.5)</td><td>×</td><td>×</td></tr></table>
361
+
362
+ # D ADDITIONAL RESULTS ON LINEAR GAUSSIAN DATASETS
363
+
364
+ The results for 50-node LG data models are presented in Table 5. The conclusion is similar to the 30- and 100-node experiments. The results of ICA-LiNGAM, GraN-DAG and CAM on LG data models are presented in Table 6. Their performances do not compare favorably to CORL-1 nor CORL-2 in LG datasets.
365
+
366
+ It is not surprising that ICA-LiNGAM does not perform well because the algorithm is specifically designed for non-Gaussian noise and does not provide guarantee for LG data models. We hypothesize that CAM’s poor performance on LG data models is because it uses nonlinear regression instead of linear regression. As for GraN-DAG, it uses 2-layer feed-forward neural networks to model the causal relationships, which may not be able to learn a good linear relationship in this experiment.
367
+
368
+ Table 5: Empirical results for ER and SF graphs of 50 nodes with LG data. The higher TPR the better, the smaller SHD the better.
369
+
370
+ <table><tr><td></td><td></td><td>RANDOM</td><td>NOTEARS</td><td>DAG-GNN</td><td>RL-BIC2</td><td>L1OBS</td><td>A*Lasso</td><td>CORL-1</td><td>CORL-2</td></tr><tr><td>ER2</td><td>TPR</td><td>0.31(0.03) 295.4 (28.5)</td><td>0.94 (0.02) 38.6 (10.8)</td><td>0.94 (0.04)</td><td>0.79 (0.10)</td><td>0.56 (0.02)</td><td>0.88 (0.03)</td><td>0.97 (0.04) 24.0 (32.3</td><td>0.97 (0.02)</td></tr><tr><td></td><td>SHD TPR</td><td>0.32 (0.02)</td><td></td><td>30.6 (8.3)</td><td>88.5 (49.3)</td><td>288.0 (66.2)</td><td>154.3 (27.6)</td><td></td><td>17.9 (10.6)</td></tr><tr><td>ER5</td><td>SHD</td><td>378.4 (24.2)</td><td>0.90 (0.01) 67.8 (7.5)</td><td>0.87(0.14) 93.2 (109.4)</td><td>0.74 (0.03) 128.9 (40.4)</td><td>0.57 (0.03) 299.4 (53.6)</td><td>0.82 (0.03) 104.0 (28.3)</td><td>0.90 (0.02) 68.3 (10.2)</td><td>0.92 (0.02) 64.8 (13.1)</td></tr><tr><td>SF2</td><td>TPR</td><td>0.49 (0.04)</td><td>0.99 (0.01)</td><td>0.90 (0.13)</td><td>0.84 (0.05)</td><td>0.67 (0.02)</td><td></td><td>1.00 (0.00)</td><td>1.00 (0.00)</td></tr><tr><td></td><td>SHD</td><td>215.6 (14.7)</td><td>3.5 (1.6)</td><td>79.3 (93.2)</td><td>115.2 (57.4)</td><td>182.3 (33.4)</td><td>0.89 (0.03) 124.0 (35.2)</td><td>0.0 (0.0)</td><td>0.0 (0.0)</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>SF5</td><td>TPR</td><td>0.51 (0.03)</td><td>0.94 (0.12)</td><td>0.88 (0.12)</td><td>0.75 (0.05)</td><td>0.61 (0.03)</td><td>0.81 (0.02)</td><td>0.94 (0.03)</td><td>0.95 (0.02)</td></tr><tr><td></td><td>SHD</td><td>345.6 (24.3)</td><td>20.1 (14.3)</td><td>89.2 (99.2)</td><td>115.2 (57.4)</td><td>217.3 (36.4)</td><td>131.0 (25.3)</td><td>24.3 (11.2)</td><td>20.8 (10.1)</td></tr></table>
371
+
372
+ # E RESULTS ON 30-, 50- AND 100-NODE LINGAM DATASETS
373
+
374
+ Here, we report the empirical results on 30-, 50- and 100-node LiNGAM datasets in Table 7. The observed samples are generated according to the same procedure with linear Gaussian datasets (see Appendix B.2 for details). The non-Gaussian noise is obtained by passing the noise samples from Gaussian distribution through a power nonlinearity to make them non-Gaussian. For L1OBS, we increased the authors’ recommended number of evaluations 2500 to 10000. For $\mathbf { A } ^ { * }$ Lasso, we set the queue size to 10, 500 and 1000, and report the best result for all of these different parameter settings. The results of L1OBS and $\mathbf { A } ^ { * }$ Lasso reported here are that of pruning using our pruning method. For other baselines, we pick the recommended hyper-parameters.
375
+
376
+ Among all these algorithms, ICA-LiNGAM can recover the true graph on most of the LiNGAM data models. This is because ICA-LiNGAM is specifically designed for non-Gaussian noise. CORL-1 and CORL-2 achieve consistently good results than other baselines.
377
+
378
+ Table 6: Empirical results of ICA-LiNGAM, GraN-DAG and CAM (against CORL-2 for reference) for ER and SF graphs with LG data. The higher TPR the better, the smaller SHD the better.
379
+
380
+ <table><tr><td></td><td></td><td></td><td>ICA-LiNGAM</td><td>GraN-DAG</td><td>CAM</td><td>CORL-2</td></tr><tr><td>30 nodes</td><td>ER2</td><td>TPR</td><td>0.75 (0.03)</td><td>0.51 (0.17)</td><td>0.47 (0.05)</td><td>0.99 (0.01)</td></tr><tr><td></td><td></td><td>SHD</td><td>112.3 (12.8)</td><td>96.0 (11.3)</td><td>110.8 (10.3)</td><td>4.4 (3.5))</td></tr><tr><td></td><td>ER5</td><td>TPR SHD</td><td>0.57 (0.03) 161.8 (9.2)</td><td>0.52 (0.03) 175.2 (27.4)</td><td>0.46 (0.02) 191.3 (32.5)</td><td>0.95 (0.03) 37.6 (14.5)</td></tr><tr><td></td><td>SF2</td><td>TPR</td><td>0.58 (0.05)</td><td>0.61 (0.04)</td><td>0.63 (0.02)</td><td>1.0 (0.0)</td></tr><tr><td></td><td></td><td>SHD</td><td>149.0 (19,8)</td><td>136.4 (21.2)</td><td>115.2 (26.7)</td><td>0.0 (0.0)</td></tr><tr><td></td><td>SF5</td><td>TPR</td><td>0.56 (0.04)</td><td>0.58 (0.02)</td><td>0.60 (0.03)</td><td>1.0 (0.0)</td></tr><tr><td></td><td></td><td>SHD</td><td>160.5 (8.9)</td><td>142.4 (24.3)</td><td>122.2 (17.4)</td><td>0.0 (0.0)</td></tr><tr><td>50 nodes</td><td>ER2</td><td>TPR</td><td>0.73 (0.03)</td><td>0.11 (0.04)</td><td>0.55 (0.06)</td><td>0.97 (0.02)</td></tr><tr><td></td><td></td><td>SHD</td><td>108.8 (11.3)</td><td>173.0 (22.9)</td><td>140.8 (35.4)</td><td>17.9 (10.6)</td></tr><tr><td></td><td>ER5</td><td>TPR</td><td>0.57 (0.01)</td><td>0.64 (0.03)</td><td>0.61 (0.02)</td><td>0.92 (0.02)</td></tr><tr><td></td><td></td><td>SHD</td><td>199.8 (90.7)</td><td>154.2 (36.4)</td><td>178.3 (34.8)</td><td>64.8 (13.1)</td></tr><tr><td></td><td>SF2</td><td></td><td>0.59 (0.04)</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>TPR SHD</td><td>208.5 (83.2)</td><td>0.44 (0.05) 158.6 (34.5)</td><td>0.57 (0.02) 131.2 (24.4)</td><td>1.00 (0.00) 0.0 (0.0)</td></tr><tr><td></td><td>SF5</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>TPR SHD</td><td>0.57 (0.01) 216.6 (88.4)</td><td>0.49 (0.04) 243.9 (27.2)</td><td>0.53 (0.03) 235.2 (34.2)</td><td>0.95 (0.02) 20.8 (10.1)</td></tr><tr><td>100 nodes</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>ER2</td><td>TPR</td><td>0.73 (0.02) 268.4 (28.5)</td><td>0.38 (0.02)</td><td>0.43 (0.02)</td><td>0.98 (0.01)</td></tr><tr><td></td><td></td><td>SHD</td><td></td><td>191.3 (31.9)</td><td>126.4 (27.8)</td><td>18.6 (5.7)</td></tr><tr><td></td><td>ER5</td><td>TPR</td><td>0.57 (0.05)</td><td>0.42 (0.03)</td><td>0.47 (0.02)</td><td>0.94 (0.03)</td></tr><tr><td></td><td></td><td>SHD</td><td>311.1 (63.7)</td><td>208.2 (54.4)</td><td>182.3 (34.9)</td><td>164.8 (17.1)</td></tr><tr><td></td><td>SF2</td><td>TPR</td><td>0.69 (0.03)</td><td>0.40 (0.03)</td><td>0.44 (0.02)</td><td>1.00 (0.00)</td></tr><tr><td></td><td></td><td>SHD</td><td>367.6 (67.5)</td><td>239.9 (43.2)</td><td>35.2 (37.4)</td><td>0.0 (0.0)</td></tr><tr><td></td><td>SF5</td><td>TPR</td><td>0.57 (0.05)</td><td>0.39 (0.03)</td><td>0.48 (0.04)</td><td>0.98 (0.01)</td></tr><tr><td></td><td></td><td>SHD</td><td>362.3 (82.8)</td><td>219.3 (32.2)</td><td>125.2 (24.7)</td><td>10.8 (6.1)</td></tr></table>
381
+
382
+ Table 7: Empirical results on 30-, 50- and 100-node LiNGAM ER2 datasets. The smaller SHD the better, the higher TPR the better.
383
+
384
+ <table><tr><td></td><td colspan="2">30 nodes ER2</td><td colspan="2">50 nodes ER2</td><td colspan="2">100 nodes ER2</td></tr><tr><td>Method</td><td>TPR</td><td>SHD</td><td>TPR</td><td>SHD</td><td>TPR</td><td>SHD</td></tr><tr><td>ICA-LiNGAM</td><td>1.00 (0.00)</td><td>0.0 (0.0)</td><td>1.00 (0.00)</td><td>0.0 (0.0)</td><td>1.00 (0.00)</td><td>1.0 (0.9)</td></tr><tr><td>NOTEARS</td><td>0.94 (0.04)</td><td>17.2 (13.2)</td><td>0.95 (0.02)</td><td>33.2 (16.5)</td><td>0.94 (0.03)</td><td>69.2 (23.2)</td></tr><tr><td>DAG-GNN</td><td>0.94 (0.03)</td><td>19.6 (10.5)</td><td>0.96 (0.01)</td><td>24.6 (2.9)</td><td>0.93 (0.03)</td><td>66.2 (19.2)</td></tr><tr><td>GraN-DAG</td><td>0.28 (0.09)</td><td>100.8 (14.6)</td><td>0.20 (0.01)</td><td>177.0 (25.9)</td><td>0.16 (0.04)</td><td>312.8 (25.2)</td></tr><tr><td>RL-BIC2</td><td>0.94 (0.07)</td><td>19.8 (23.0)</td><td>0.80 (0.08)</td><td>86.0 (51.9)</td><td>0.13 (0.12)</td><td>291.3 (24.1)</td></tr><tr><td>CAM</td><td>0.60 (0.11)</td><td>310.0 (34.0)</td><td>0.33 (0.07)</td><td>178.0 (31.9)</td><td>0.53 (0.05)</td><td>247.2 (32.1)</td></tr><tr><td>L1OBS</td><td>0.72 (0.04)</td><td>85.3 (23.3)</td><td>0.47 (0.02)</td><td>212.6 (24.6)</td><td>0.41 (0.03)</td><td>470.5 (48.1)</td></tr><tr><td>A* Lasso</td><td>0.87 (0.03)</td><td>42.3 (16.3)</td><td>0.88 (0.03)</td><td>82.6 (17.6)</td><td>0.85 (0.04)</td><td>102.5 (22.6)</td></tr><tr><td>CORL-1</td><td>0.99 (0.01)</td><td>3.8 (6.4)</td><td>0.96 (0.06)</td><td>24.6 (37.7)</td><td>0.98 (0.01)</td><td>20.0 (7.9)</td></tr><tr><td>CORL-2</td><td>0.99 (0.01)</td><td>3.9 (5.6)</td><td>0.96 (0.08)</td><td>20.2 (11.3)</td><td>0.99 (0.01)</td><td>13.8 (7.2)</td></tr></table>
385
+
386
+ # F RESULTS ON 20-NODE GP DATASETS WITH DIFFERENT SAMPLE SIZES
387
+
388
+ We take the 20-node GP data models as an example to show the performance of our method on different sample numbers. We set $h = 4$ to get ER4 graphs and generate data by using them. We illustrate the empirical results in Table 8. Since previous experiments have shown that CORL-2 is slightly better than CORL-1, we only report the results of CORL-2 here. CAM as the most competitive baseline, we also report its results on these datasets. TPR reported here is calculated based on the variable ordering. We can see that, as the sample size decreases, CORL-2 ends up outperforming CAM. We believe this is because CORL-2 benefits from the exploratory ability of RL.
389
+
390
+ # G CORL-1 WITH A PRETRAINED MODEL
391
+
392
+ We show the training reward curves of CORL-1 and CORL-1-pretrain which is CORL-1 based on a pretrained model in Figure 7. To obtain a pretraining model with good generalization ability, we combine various types data described in Appendix B.2 with different levels of edge sparsity, graph
393
+
394
+ Table 8: Empirical results on 20-node GP ER1 datasets with different sample sizes. The smaller SHD the better, the higher TPR the better.
395
+
396
+ <table><tr><td>Sample size</td><td>Name</td><td>TPR</td><td>SHD</td></tr><tr><td>1000</td><td>CAM CORL-2</td><td>0.91 (0.03) 0.87 (0.03)</td><td>30.0 (3.7) 36.5 (3.1)</td></tr><tr><td>500</td><td>CAM CORL-2</td><td>0.86 (0.03) 0.85 (0.03)</td><td>45.0 (2.5) 46.3 (2.3)</td></tr><tr><td>400</td><td>CAM CORL-2</td><td>0.83 (0.02) 0.84 (0.03)</td><td>51.0 (2.7) 50.5 (3.0)</td></tr><tr><td>200</td><td>CAM CORL-2</td><td>0.60 (0.03) 0.75 (0.02)</td><td>66.3 (1.9) 63.1 (1.5)</td></tr></table>
397
+
398
+ ![](images/818183bee85f0d445744cdd88e28f3a9495545ef84ab66bb468d11891c255001.jpg)
399
+ Figure 7: Learning curves of CORL-1 and CORL-1-pretrain on 100-node LG datasets.
400
+
401
+ type and number of nodes and data generating process to construct observation samples. Next, we train a policy model by supervised learning on the mixed datasets. Finally, we use the pretrained model as a start point on the task that has never been seen before during pretraining.
402
+
403
+ From Figure 7, we can observe that although the pretrained model is trained on other types of datasets, it can still accelerate the training as the initial model on the LG dataset task. This shows that our policy model may learn some implicit knowledge across different tasks.
parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/bMzj6hXL2VJ/bMzj6hXL2VJ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/eo6U4CAwVmg/eo6U4CAwVmg.md ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRAINING GANS WITH STRONGER AUGMENTATIONS VIA CONTRASTIVE DISCRIMINATOR
2
+
3
+ Jongheon Jeong1 & Jinwoo $\mathbf { S h i n } ^ { 2 , 1 }$
4
+ 1School of Electrical Engineering 2Graduate School of AI
5
+ Korea Advanced Institute of Science and Technology (KAIST)
6
+ Daejeon 34141, South Korea
7
+ {jongheonj,jinwoos}@kaist.ac.kr
8
+
9
+ # ABSTRACT
10
+
11
+ Recent works in Generative Adversarial Networks (GANs) are actively revisiting various data augmentation techniques as an effective way to prevent discriminator overfitting. It is still unclear, however, that which augmentations could actually improve GANs, and in particular, how to apply a wider range of augmentations in training. In this paper, we propose a novel way to address these questions by incorporating a recent contrastive representation learning scheme into the GAN discriminator, coined ContraD. This “fusion” enables the discriminators to work with much stronger augmentations without increasing their training instability, thereby preventing the discriminator overfitting issue in GANs more effectively. Even better, we observe that the contrastive learning itself also benefits from our GAN training, i.e., by maintaining discriminative features between real and fake samples, suggesting a strong coherence between the two worlds: good contrastive representations are also good for GAN discriminators, and vice versa. Our experimental results show that GANs with ContraD consistently improve FID and IS compared to other recent techniques incorporating data augmentations, still maintaining highly discriminative features in the discriminator in terms of the linear evaluation. Finally, as a byproduct, we also show that our GANs trained in an unsupervised manner (without labels) can induce many conditional generative models via a simple latent sampling, leveraging the learned features of ContraD. Code is available at https://github.com/jh-jeong/ContraD.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Generative adversarial networks (GANs) (Goodfellow et al., 2014) have become one of the most prominent approaches for generative modeling with a wide range of applications (Ho & Ermon, 2016; Zhu et al., 2017; Karras et al., 2019; Rott Shaham et al., 2019). In general, a GAN is defined by a minimax game between two neural networks: a generator network that maps a random vector into the data domain, and a discriminator network that classifies whether a given sample is real (from the training dataset) or fake (from the generator). Provided that both generator and discriminator attain their optima at each minimax objective alternatively, it is theoretically guaranteed that the generator implicitly converges to model the data generating distribution (Goodfellow et al., 2014).
16
+
17
+ Due to the non-convex/stationary nature of the minimax game, however, training GANs in practice is often very unstable with an extreme sensitivity to many hyperparameters (Salimans et al., 2016; Lucic et al., 2018; Kurach et al., 2019). Stabilizing the GAN dynamics has been extensively studied in the literature (Arjovsky et al., 2017; Gulrajani et al., 2017; Miyato et al., 2018; Wei et al., 2018; Jolicoeur-Martineau, 2019; Chen et al., 2019; Schonfeld et al., 2020), and the idea of incorporating data augmentation techniques has recently gained a particular attention on this line of research: more specifically, Zhang et al. (2020) have shown that consistency regularization between discriminator outputs of clean and augmented samples could greatly stabilize GAN training, and Zhao et al. (2020c) further improved this idea. The question of which augmentations are good for GANs has been investigated very recently in several works (Zhao et al., 2020d; Tran et al., 2021; Karras et al., 2020a; Zhao et al., 2020a), while they unanimously conclude only a limited range of augmentations (e.g., flipping and spatial translation) were actually helpful for the current form of training GANs.
18
+
19
+ Meanwhile, not only for GANs, data augmentation has also been played a key role in the literature of self-supervised representation learning (Doersch et al., 2015; Gidaris et al., 2018; Wu et al., 2018), especially with the recent advances in contrastive learning (Bachman et al., 2019; Oord et al., 2018; Chen et al., 2020a;b; Grill et al., 2020): e.g., Chen et al. (2020a) have shown that the performance gap between supervised- and unsupervised learning can be significantly closed with large-scale contrastive learning over strong data augmentations. In this case, contrastive learning aims to extract the mutual information shared across augmentations, so good augmentations for contrastive learning should keep information relevant to downstream tasks (e.g., classification), while discarding nuisances for generalization. Finding such augmentations is still challenging, yet in some sense, it is more tangible than the case of GANs, as there are some known ways to formulate the goal rigourously, e.g., InfoMax (Linsker, 1988) or InfoMin principles (Tian et al., 2020).
20
+
21
+ Contribution. In this paper, we propose Contrastive Discriminator (ContraD), a new way of training discriminators of GAN that incorporates the principle of contrastive learning. Specifically, instead of directly optimizing the discriminator network for the GAN loss, ContraD uses the network mainly to extract a contrastive representation from a given set of data augmentations and (real or generated) samples. The actual discriminator that minimizes the GAN loss is defined independently upon the contrastive representation, which turns out that a simple 2-layer network is sufficient to work as a complete GAN. By design, ContraD can be naturally trained with augmentations used in the literature of contrastive learning, e.g., those proposed by SimCLR (Chen et al., 2020a), which are in fact much stronger than typical practices in the context of GAN training (Zhang et al., 2020; Zhao et al., 2020c;a; Karras et al., 2020a). Our key observation here is that, the task of contrastive learning (to discriminate each of independent real samples) and that of GAN discriminator (to discriminate fake samples from the reals) benefit each other when jointly trained with a shared representation.
22
+
23
+ Self-supervised learning, including contrastive learning, have been recently applied in GAN as an auxiliary task upon the GAN loss (Chen et al., 2019; Tran et al., 2019; Lee et al., 2021; Zhao et al., 2020d), mainly in attempt to alleviate catastopic forgetting in discriminators (Chen et al., 2019). For conditional GANs, Kang & Park (2020) have proposed a contrastive form of loss to efficiently incorporate a given conditional information into discriminators. Our work can be differentiated to these prior works in a sense that, to the best of our knowledge, it is the first method that successfully leverage contrastive learning alone to incorporate a wide range of data augmentations in GAN training. Indeed, for example, Zhao et al. (2020d) recently reported that simply regularizing auxiliary SimCLR loss (Chen et al., 2020a) improves GAN training, but could not outperform existing methods based on simple data augmentations, e.g., bCR (Zhao et al., 2020c).
24
+
25
+ # 2 BACKGROUND
26
+
27
+ Generative adversarial networks. We consider a problem of learning a generative model $p _ { g }$ from a given dataset $\{ { \pmb x } _ { i } \} _ { i = 1 } ^ { N }$ , where $\mathbf { \boldsymbol { x } } _ { i } \sim p _ { \mathrm { d a t a } }$ and $\mathbf { { \boldsymbol { x } } } _ { i } \in { \mathcal { X } }$ . To this end, generative adversarial network (GAN) (Goodfellow et al., 2014) considers two neural networks: (a) a generator network $G : { \mathcal { Z } } $ $\mathcal { X }$ that maps a latent variable $\mathbf { z } \sim p ( \mathbf { z } )$ into $\mathcal { X }$ , where $p ( \mathbf { z } )$ is a specific prior distribution, and (b) a discriminator network $D : \mathcal { X } [ 0 , 1 ]$ that discriminates samples from $p _ { \mathrm { d a t a } }$ and those from the implicit distribution $p _ { g }$ derived from $G ( \mathbf { z } )$ . The primitive form of training $G$ and $D$ is the following:
28
+
29
+ $$
30
+ \operatorname* { m i n } _ { G } \operatorname* { m a x } _ { D } V ( G , D ) : = \mathbb { E } _ { \mathbf { x } \sim p _ { \mathrm { d a t a } } } [ \log ( D ( \mathbf { x } ) ) ] + \mathbb { E } _ { \mathbf { z } \sim p ( \mathbf { z } ) } [ \log ( 1 - D ( G ( \mathbf { z } ) ) ) ] .
31
+ $$
32
+
33
+ For a fixed $G$ , the inner maximization objective (1) with respect to $D$ leads to the following optimal discriminator $D _ { G } ^ { * }$ , and consequently the outer minimization objective with respect to $G$ becomes to minimize the Jensen-Shannon divergence between $p _ { \mathrm { d a t a } }$ and $\begin{array} { r } { p _ { g } \colon D _ { G } ^ { * } : = \operatorname* { m a x } _ { D } V ( G , D ) = \frac { p _ { \mathrm { d a t a } } } { p _ { \mathrm { d a t a } } + p _ { g } } } \end{array}$ Although this formulation (1) theoretically guarantees $p _ { g } ^ { * } = p _ { \mathrm { d a t a } }$ as the global optimum, the nonsaturating loss (Goodfellow et al., 2014) is more favored in practice for better optimization stability:
34
+
35
+ $$
36
+ \operatorname* { m a x } _ { D } L ( D ) : = V ( G , D ) , { \mathrm { ~ a n d ~ } } \operatorname* { m i n } _ { G } L ( G ) : = - \mathbb { E } _ { \mathbf { z } } [ \log ( D ( G ( \mathbf { z } ) ) ) ] .
37
+ $$
38
+
39
+ Here, compared to (1), $G$ is now optimized to let $D$ to classify $G ( \mathbf { z } )$ as 1, i.e., the “real”.
40
+
41
+ Contrastive representation learning. Consider two random variables $\mathbf { v } ^ { ( 1 ) }$ and $\mathbf { v } ^ { ( 2 ) }$ , which are often referred as views. Generally speaking, contrastive learning aims to extract a useful representation of $\mathbf { v } ^ { ( 1 ) }$ and $\mathbf { v } ^ { ( 2 ) }$ from learning a function that identifies whether a given sample is from $p ( \mathbf { v } ^ { ( 1 ) } ) p ( \mathbf { v } ^ { ( 2 ) } | \mathbf { v } ^ { ( 1 ) } )$ or $p ( \mathbf { v } ^ { ( 1 ) } ) p ( \mathbf { v } ^ { ( 2 ) } )$ , i.e., whether two views are dependent or not. More specifically, the function estimates the mutual information $I ( \mathbf { v } ^ { ( 1 ) } ; \mathbf { v } ^ { ( 2 ) } )$ between the two views. To this end, Oord et al. (2018) proposed to minimize InfoNCE loss, which turns out to maximize a lower bound of $I ( \mathbf { v } ^ { ( 1 ) } ; \mathbf { v } ^ { ( 2 ) } )$ . Formally, for a given $\pmb { v } _ { i } ^ { ( 1 ) } \sim p ( \mathbf { v } ^ { ( 1 ) } )$ and $v _ { i } ^ { ( 2 ) } \sim p ( \mathbf { v } ^ { ( 2 ) } | \pmb { v } _ { i } ^ { ( 1 ) } )$ while assuming $v _ { j } ^ { ( 2 ) } \sim p ( \mathbf { v } ^ { ( 2 ) } )$ for $j = 1 , \cdots , K$ , the InfoNCE loss is defined by:
42
+
43
+ $$
44
+ L _ { \mathtt { N C E } } ( { \pmb v } _ { i } ^ { ( 1 ) } ; { \pmb v } ^ { ( 2 ) } , s ) : = - \log \frac { \exp ( s ( { \pmb v } _ { i } ^ { ( 1 ) } , { \pmb v } _ { i } ^ { ( 2 ) } ) ) } { \sum _ { j = 1 } ^ { K } \exp ( s ( { \pmb v } _ { i } ^ { ( 1 ) } , { \pmb v } _ { j } ^ { ( 2 ) } ) ) } ,
45
+ $$
46
+
47
+ where $s ( \cdot , \cdot )$ is the score function that models the log-density ratio of $p ( \mathbf { v } ^ { ( 2 ) } | \mathbf { v } ^ { ( 1 ) } )$ to $p ( \mathbf { v } ^ { ( 2 ) } )$ , possibly including some parametrized encoders for $\mathbf { v } ^ { ( 1 ) }$ and $\mathbf { v } ^ { ( 2 ) }$ .
48
+
49
+ Many of recent unsupervised representation learning methods are based on this general framework of contrastive learning (Wu et al., 2018; Bachman et al., 2019; Henaff et al. ´ , 2020; He et al., 2020; Chen et al., 2020a). In this paper, we focus on the one called SimCLR (Chen et al., 2020a), that adopts a wide range of independent data augmentations to define views: specifically, for a given set of data samples $\mathbf { \bar { x } } = [ \mathbf { x } _ { i } ] _ { i = 1 } ^ { N }$ , SimCLR applys two independent augmentations, namely $\mathbf { t } _ { 1 }$ and $\mathbf { t } _ { 2 }$ , to the given data to obtain $\mathbf { v } ^ { ( 1 ) }$ and $\mathbf { v } ^ { ( 2 ) }$ , i.e., $( \mathbf { v } ^ { ( 1 ) } , \mathbf { v } ^ { ( 2 ) } ) : = ( \mathbf { t } _ { 1 } ( \mathbf { x } ) , \mathbf { t } _ { 2 } ( \mathbf { x } ) )$ . The actual loss of SimCLR is slightly different to InfoNCE, mainly due to practical considerations for sample efficiency:
50
+
51
+ $$
52
+ \operatorname { \widetilde { \operatorname { s i n c I } } } \ ( \boldsymbol { v } ^ { ( 1 ) } , \boldsymbol { v } ^ { ( 2 ) } ) : = \frac { 1 } { 2 N } \sum _ { i = 1 } ^ { N } \left( L _ { \mathtt { N C E } } ( \boldsymbol { v } _ { i } ^ { ( 1 ) } ; [ \boldsymbol { v } ^ { ( 2 ) } ; \boldsymbol { v } _ { - i } ^ { ( 1 ) } ] , \boldsymbol { s } _ { \mathtt { S i n c I R } } ) + L _ { \mathtt { N C E } } ( \boldsymbol { v } _ { i } ^ { ( 2 ) } ; [ \boldsymbol { v } ^ { ( 1 ) } ; \boldsymbol { v } _ { - i } ^ { ( 2 ) } ] , \boldsymbol { s } _ { \mathtt { S i n c I R } } ) \right) ,
53
+ $$
54
+
55
+ where ${ \pmb v } _ { - i } : = { \pmb v } \setminus \{ { \pmb v } _ { i } \}$ . For $s _ { \tt S i m C L R }$ , SimCLR specifies to use (a) an encoder network $f : \mathcal { X } $ $\mathbb { R } ^ { d _ { e } }$ , (b) a small neural network called projection head $h : \mathbb { R } ^ { d _ { e } } \mathbb { R } ^ { d _ { p } }$ , and (c) the normalized temperature-scaled cross entropy (NT-Xent). Putting altogether, $s _ { \mathsf { S i m C L R } }$ is defined by:
56
+
57
+ $$
58
+ s _ { \mathtt { S i m C L R } } ( \mathbf { v } ^ { ( 1 ) } , \mathbf { v } ^ { ( 2 ) } ; f , h ) : = \frac { h ( f ( \mathbf { v } ^ { ( 1 ) } ) ) \cdot h ( f ( \mathbf { v } ^ { ( 2 ) } ) ) } { \tau \cdot | | h ( f ( \mathbf { v } ^ { ( 1 ) } ) ) | | _ { 2 } | | h ( f ( \mathbf { v } ^ { ( 2 ) } ) ) | | _ { 2 } } ,
59
+ $$
60
+
61
+ where $\tau$ is a temperature hyperparameter. Once the training is done with respect to $L _ { \tt S i m C L R }$ , the projection head $h$ is discarded and $f$ is served as the learned representation for downstream tasks.
62
+
63
+ # 3 CONTRAD: CONTRASTIVE DISCRIMINATOR FOR GANS
64
+
65
+ We aim to develop a training scheme for GANs that is capable to extract more useful information under stronger data augmentation beyond the existing yet limited practices, e.g., random translations up to few pixels (Zhang et al., 2020; Zhao et al., 2020c;a). For examples, one may consider to apply augmentations introduced in SimCLR (Chen et al., 2020a) for training GANs, i.e., a stochastic composition of random resizing, cropping, horizontal flipping, color distortion, and Gaussian blurring. Indeed, existing approaches that handle data augmentation in GANs are not guranteed to work best in this harsh case (as also observed empirically in Table 5), and some of them are even expected to harm the performance: e.g., applying consistency regularization (Zhang et al., 2020; Zhao et al., 2020c), which regularizes a discriminator to be invariant to these augmentations, could overly restrict the expressivity of the discriminator to learn meaningful features.
66
+
67
+ Our proposed architecture of Contrastive Discriminator (ContraD) is designed to alleviate such potential risks from using stronger data augmentations by incorporating the contrastive learning scheme of SimCLR (Chen et al., 2020a), which arguably works with those augmentations, and its design practices into the discriminator. More concretely, the main objective of ContraD is not to minimize the discriminator loss of GAN, but to learn a contrastive representation that is compatible to GAN. This means that the objective does not break the contrastive learning, while the representation still contains sufficient information to discriminate real and fake samples, so that a small neural network discriminator is enough to perform its task upon the representation. We describe how to learn such a representation of ContraD in Section 3.1, and how to incorporate this in the actual GAN training in Section 3.2. Finally, Section 3.3 introduces a natural application of ContraD for deriving conditional generative models from an unconditionally trained GAN. Figure 1 illustrates ContraD.
68
+
69
+ ![](images/5fdb334767df6c9358787fa0fab5130822f2ab0676c4a3153c20a3b458ea6d6a.jpg)
70
+ Figure 1: An overview of Contrastive Discriminator (ContraD). Overall, the representation of ContraD is not learned from the discriminator loss $\left( L _ { \mathrm { d i s } } \right)$ , but from two contrastive losses $L _ { \mathrm { c o n } } ^ { + }$ and $L _ { \mathsf { c o n } } ^ { - }$ , each is for the real and fake samples, respectively. Here, $\mathsf { s g } ( \cdot )$ denotes the stop-gradient operation.
71
+
72
+ # 3.1 CONTRASTIVE REPRESENTATION FOR GANS
73
+
74
+ Recall the standard training of GANs, i.e., we train $G : { \mathcal { Z } } \to { \mathcal { X } }$ and $D : \mathcal { X } [ 0 , 1 ]$ via optimizing (2) from a given dataset $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { N }$ , and let $\tau$ be a family of possible transforms for data augmentation, which we assume in this paper to be those used in SimCLR (Chen et al., 2020a). In order to define the training objective of ContraD, we start by re-defining the scalar-valued $D$ to have vector-valued outputs, i.e., $\dot { D } : \mathcal { X } \mathbb { R } ^ { d _ { e } }$ , to represent an encoder network of contrastive learning. Overall, the encoder network $D$ of ContraD is trained by minimizing two different contrastive losses: (a) the SimCLR loss (4) on the real samples, and (b) the supervised contrastive loss (Khosla et al., 2020) on the fake samples, which will be explained one-by-one in what follows.
75
+
76
+ Loss for real samples. By default, ContraD is built upon the SimCLR training: in fact, the training becomes equivalent to SimCLR if the loss (b) is missing, i.e., without considering the fake samples. Here, we attempt to simply follow the contrastive training scheme for real samples $_ { \textbf { \em x } }$ , to keep open the possibility to improve the method by adopting other self-supervised learning methods with data augmentations (Chen et al., 2020b; Grill et al., 2020). More concretely, we first compute two independent views ${ \pmb v } _ { \mathrm { r } } ^ { ( 1 ) } , { \pmb v } _ { \mathrm { r } } ^ { ( 2 ) } : = { \pmb t } _ { 1 } ( { \bf x } ) , { \pmb t } _ { 2 } ( { \bf x } )$ for real samples using $t _ { 1 } , t _ { 2 } \sim \tau$ , and minimize:
77
+
78
+ $$
79
+ \begin{array} { r } { L _ { \mathrm { c o n } } ^ { + } ( D , h _ { \mathrm { r } } ) : = L _ { \mathrm { S i m C L R } } ( \pmb { v } _ { \mathrm { r } } ^ { ( 1 ) } , \pmb { v } _ { \mathrm { r } } ^ { ( 2 ) } ; D , h _ { \mathrm { r } } ) , } \end{array}
80
+ $$
81
+
82
+ where $h _ { \tt r } : \mathbb { R } ^ { d _ { e } } \mathbb { R } ^ { d _ { p } }$ is a projection head for this loss.
83
+
84
+ Loss for fake samples. Although the representation learned via $L _ { \mathrm { c o n } } ^ { + }$ (6) may be enough, e.g., for discriminating two independent real samples, it does not give any guarantee that this representation would still work for discriminating real and fake samples, which is needed as a GAN discriminator. We compensate this by considering an auxiliary loss $L _ { \mathsf { c o n } } ^ { - }$ that regularizes the encoder to keep necessary information to discriminate real and fake samples. Here, several design choices can be possible: nevertheless, we observe that one should choose the loss deliberately, otherwise the contrastive representation from $L _ { \mathrm { c o n } } ^ { + }$ could be significantly affected. For example, we found using the original GAN loss (2) for $L _ { \mathsf { c o n } } ^ { - }$ could completely negate the effectiveness of ContraD.
85
+
86
+ In this respect, we propose to use the supervised contrastive loss (Khosla et al., 2020) over fake samples to this end, an extended version of contrastive loss to support supervised learning by allowing more than one view to be positive, so that views of the same label can be attracted to each other in the embedding space. In our case, we assume all the views from fake samples have the same label against those from real samples. Formally, for each $\pmb { v } _ { i } ^ { ( 1 ) }$ , let $V _ { i + } ^ { ( 2 ) }$ be a subset of $\mathbf { \boldsymbol { v } } ^ { ( 2 ) }$ that represent the positive views for v(1)i . Then, the supervised contrastive loss is defined by:
87
+
88
+ $$
89
+ L _ { \mathrm { S u p C o n } } ( v _ { i } ^ { ( 1 ) } , v ^ { ( 2 ) } , V _ { i + } ^ { ( 2 ) } ) : = - \frac { 1 } { | V _ { i + } ^ { ( 2 ) } | } \sum _ { v _ { i + } ^ { ( 2 ) } \in V _ { i + } ^ { ( 2 ) } } \log \frac { \exp ( s _ { \mathrm { S i n C L R } } ( v _ { i } ^ { ( 1 ) } , v _ { i + } ^ { ( 2 ) } ) ) } { \sum _ { j } \exp ( s _ { \mathrm { S i n C L R } } ( v _ { i } ^ { ( 1 ) } , v _ { j } ^ { ( 2 ) } ) ) } .
90
+ $$
91
+
92
+ Using the notation, we define the ContraD loss for fake samples as follows:
93
+
94
+ $$
95
+ L _ { \mathrm { c o n } } ^ { - } ( D , h _ { \textup { \bf f } } ) : = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } L _ { \mathrm { S u p c o n } } ( v _ { \textup { \bf f } , i } , [ v _ { \textup { \bf f } , - i } ; v _ { \textup { \bf r } } ^ { ( 1 ) } ; { v _ { \textup { \bf r } } ^ { ( 2 ) } } ] , [ v _ { \textup { \bf f } , - i } ] ; D , h _ { \textup { \bf f } } ) ,
96
+ $$
97
+
98
+ where again $v _ { \mathrm { f } } : = t _ { 3 } ( G ( \mathbf { z } ) )$ is a random view of fake samples, and ${ \pmb v } _ { - i } : = { \pmb v } \setminus \{ { \pmb v } _ { i } \}$ . Remark that we use an independent projection header $h _ { \mathbf { f } } : \mathbb { R } ^ { d _ { e } } \mathbb { R } ^ { d _ { p } }$ instead of $h _ { \mathbf { r } }$ in (6) for this loss.
99
+
100
+ There can be other variants for $L _ { \mathrm { c o n } } ^ { - }$ , as long as (a) it leads $D$ to discriminate real and fake samples, while (b) not compromising the representation from $L _ { \mathrm { c o n } } ^ { + }$ . For example, one can incorporate another view of fake samples to additionally perform SimCLR similarly to $L _ { \mathrm { c o n } } ^ { + }$ (6). Nevertheless, we found the current design (8) is favorable among such variants considered, both in terms of performance under practice of GANs, and computational efficiency from using only a single view.
101
+
102
+ o sum up, ContraD learns its contrastive representation by minimizing the following loss:
103
+
104
+ $$
105
+ \begin{array} { r } { L _ { \mathsf { c o n } } ( D , h _ { \mathbf { r } } , h _ { \mathbf { f } } ) : = L _ { \mathsf { c o n } } ^ { + } ( D , h _ { \mathbf { r } } ) + \lambda _ { \mathsf { c o n } } L _ { \mathsf { c o n } } ^ { - } ( D , h _ { \mathbf { f } } ) , } \end{array}
106
+ $$
107
+
108
+ where $\lambda _ { \tt c o n } > 0$ is a hyperparameter. Nevertheless, we simply use $\lambda _ { \tt c o n } = 1$ in our experiments.
109
+
110
+ # 3.2 TRAINING GANS WITH CONTRAD
111
+
112
+ The contrastive loss defined in (9) is jointly trained under the standard framework of GAN, e.g., we present in this paper the case of non-saturating loss (2), for training the generator network $G$ . To obtain a (scalar) discriminator score needed to define the GAN loss, we simply use an additional discriminator head $h _ { \mathsf { d } } : \mathbb { R } ^ { d _ { e } } \mathbb { R }$ upon the contrastive representation of $D$ . Here, a key difference of ContraD training from other GANs is that ContraD only optimizes the parameters of $h _ { \mathrm { d } }$ for minimizing the GAN loss: in practical situations of using stochastic gradient descent for the training, this can be implemented by stopping gradient before feeding inputs to $h _ { \mathrm { d } }$ . Therefore, the discriminator loss of ContraD is defined as follows:
113
+
114
+ $$
115
+ L _ { \mathrm { d i s } } ( h _ { \mathrm { d } } ) : = - \mathbb { E } _ { \mathbf { r } _ { \mathrm { r } } } [ \log ( \sigma ( h _ { \mathrm { d } } ( \mathbf { r } _ { \mathbf { r } } ) ) ) ] - \mathbb { E } _ { \mathbf { r } _ { \mathrm { f } } } [ \log ( 1 - \sigma ( h _ { \mathrm { d } } ( \mathbf { r } _ { \mathbf { f } } ) ) ) ] ,
116
+ $$
117
+
118
+ where $\mathbf { r } _ { \mathbf { r } } = \mathbf { s g } ( D ( \mathbf { v } _ { \mathbf { r } } ) )$ and $\mathbf { r _ { f } } = \mathbf { s g } ( D ( \mathbf { v _ { f } } ) )$ . Here, $\sigma ( \cdot )$ denotes the sigmoid function, $\mathbf { v _ { r } }$ and $\mathbf { v _ { f } }$ are random views of real and fake samples augmented via $\tau$ , respectively, and $\mathsf { s g } ( \cdot )$ is the stopgradient operation. Combined with the contrastive training loss (9), the joint training loss $L _ { D }$ for a single discriminator update is the following:
119
+
120
+ $$
121
+ L _ { D } : = L _ { \mathsf { c o n } } + \lambda _ { \mathsf { d i s } } L _ { \mathsf { d i s } } = L _ { \mathsf { c o n } } ^ { + } + \lambda _ { \mathsf { c o n } } L _ { \mathsf { c o n } } ^ { - } + \lambda _ { \mathsf { d i s } } L _ { \mathsf { d i s } } ,
122
+ $$
123
+
124
+ where $\lambda _ { \mathrm { d i s } } > 0$ is a hyperparameter. Again, as like $\lambda _ { \mathsf { c o n } }$ , we simply use $\lambda _ { \dot { \mathrm { d i s } } } = 1$ in our experiments.
125
+
126
+ Finally, the loss for the generator $G$ can be defined simply like other standard GANs using the discriminator score, except that we also augment the generated samples $G ( \mathbf { z } )$ to $\mathbf { v _ { f } }$ , in a similar way to DiffAug (Zhao et al., 2020a) or ADA (Karras et al., 2020a): namely, in case of the non-saturating loss (Goodfellow et al., 2014), we have:
127
+
128
+ $$
129
+ L _ { G } : = - \mathbb { E } _ { \mathbf { v _ { f } } } [ \log ( \sigma ( h _ { \mathsf { d } } ( D ( \mathbf { v _ { f } } ) ) ) ) ] .
130
+ $$
131
+
132
+ Note that the form (12) is equivalent to the original non-saturating loss (2) if we regard $\sigma ( h _ { \mathsf { d } } ( D ( \cdot ) ) ) :$ $\mathcal { X } [ 0 , 1 ]$ as a single discriminator. Algorithm 1 in Appendix A describes a concrete training procedure of GANs with ContraD using Adam optimizer (Kingma & Ba, 2014).
133
+
134
+ # 3.3 SELF-CONDITIONAL SAMPLING WITH CONTRAD
135
+
136
+ Apart from the improved training of GANs, the learned contrastive representation of ContraD could offer some additional benefits in practical scenarios compared to the standard GANs. In this section, we present an example of how one could further utilize this additional information to derive a conditional generative model from an unconditionally-trained GAN with ContraD. More specifically, here we consider a variant of discriminator-driven latent sampling (DDLS) (Che et al., 2020) to incorporate a given representation vector from the ContraD encoder as a conditional information. Originally, DDLS attempts to improve the sample quality of a pre-trained GAN via a Langevin sampling (Welling & Teh, 2011) on the latent space of the following form:
137
+
138
+ $$
139
+ \mathbf { z } _ { t + 1 } : = \mathbf { z } _ { t } - \frac { \varepsilon } { 2 } \nabla _ { \mathbf { z } _ { t } } E ( \mathbf { z } _ { t } ) + \sqrt { \varepsilon } \mathbf { n } _ { t } , \mathbf { n } _ { t } \sim \mathcal { N } ( 0 , 1 ) ,
140
+ $$
141
+
142
+ Table 1: Comparison of the best FID score and IS on unconditional image generation of CIFAR-10 and CIFAR-100. Values in the rows marked by \* are from those reported in its reference.
143
+
144
+ <table><tr><td rowspan="2">Architecture</td><td rowspan="2">Method</td><td rowspan="2">Augment.</td><td colspan="2">CIFAR-10</td><td colspan="2">CIFAR-100</td></tr><tr><td>FID↓</td><td>IS个</td><td>FID↓</td><td>IS个</td></tr><tr><td rowspan="5">G: SNDCGAN D:SNDCGAN</td><td></td><td>=</td><td>26.6</td><td>7.38</td><td>28.5</td><td>7.25</td></tr><tr><td>CR (Zhang et al., 2020)</td><td>HFlip, Trans</td><td>19.5</td><td>7.87</td><td>22.2</td><td>7.91</td></tr><tr><td>bCR (Zhao et al., 2020c)</td><td>HFlip,Trans</td><td>14.0</td><td>8.35</td><td>19.2</td><td>8.46</td></tr><tr><td>DiffAug (Zhao et al., 2020a)</td><td>Trans, CutOut</td><td>22.9</td><td>7.64</td><td>27.0</td><td>7.47</td></tr><tr><td>ContraD (ours)</td><td>SimCLR</td><td>10.9</td><td>8.78</td><td>15.2</td><td>9.09</td></tr><tr><td rowspan="5">G: SNDCGAN D:SNResNet-18</td><td></td><td></td><td>41.3</td><td>6.33</td><td>52.3</td><td>5.24</td></tr><tr><td>CR (Zhang et al., 2020)</td><td>HFlip, Trans</td><td>32.1</td><td>7.08</td><td>36.5</td><td>6.55</td></tr><tr><td>bCR (Zhao et al.,2020c)</td><td>HFlip, Trans</td><td>22.8</td><td>7.29</td><td>28.2</td><td>7.30</td></tr><tr><td>DiffAug (Zhao et al., 2020a)</td><td>Trans, CutOut</td><td>59.5</td><td>5.62</td><td>58.7</td><td>5.39</td></tr><tr><td>ContraD (ours)</td><td>SimCLR</td><td>9.86</td><td>9.09</td><td>15.0</td><td>9.56</td></tr><tr><td rowspan="2">G: StyleGAN2</td><td></td><td></td><td>11.1</td><td>9.18</td><td>16.5</td><td>9.51</td></tr><tr><td>DiffAug* (Zhao et al.,2020a)</td><td>Trans, CutOut</td><td>9.89</td><td>9.40</td><td>15.2</td><td>10.0</td></tr><tr><td>D: StyleGAN2</td><td>ContraD (ours)</td><td>SimCLR</td><td>9.80</td><td>9.47</td><td>14.1</td><td>10.0</td></tr></table>
145
+
146
+ Table 2: Comparison of the best FID score and IS on unconditional image generation of CelebAHQ-128 with SNDCGAN. We report the mean and standard deviation of best scores across 3 trials.
147
+
148
+ <table><tr><td>CelebA-HQ</td><td>W/0</td><td>Hinge</td><td>CR</td><td>bCR</td><td>ContraD (ours)</td></tr><tr><td>FID←</td><td>24.8±1.69</td><td>26.4±1.32</td><td>20.9±0.37</td><td>19.5±0.08</td><td>17.1±1.38</td></tr><tr><td>IS↑</td><td>2.06±0.06</td><td>2.05±0.06</td><td>2.11±0.09</td><td>2.21±0.10</td><td>2.44±0.06</td></tr></table>
149
+
150
+ where $E ( \mathbf { z } ) : = - \log p ( \mathbf { z } ) - d ( G ( \mathbf { z } ) )$ and $d ( \cdot )$ denotes the logit of $D$ . In this manner, for our ContraD, we propose to use the following “conditional” version of energy function $E ( \mathbf { z } , v )$ for an arbitrary vector $\dot { v } \in \mathbb { R } ^ { d _ { e } }$ in the ContraD representation space, called conditional DDLS (cDDLS):
151
+
152
+ $$
153
+ \begin{array} { r } { E ( \mathbf { z } , v ) : = - \log p ( \mathbf { z } ) - h _ { \mathrm { d } } ( D ( G ( \mathbf { z } ) ) ) - \lambda ( v \cdot D ( G ( \mathbf { z } ) ) ) . } \end{array}
154
+ $$
155
+
156
+ In our experiments, for instance but not limited to, we show that using the learned weights obtained from linear evaluation as conditional vectors successfully recovers class-conditional generations from an unconditional ContraD model.
157
+
158
+ # 4 EXPERIMENTS
159
+
160
+ We verify the effectiveness of our ContraD in three different aspects: (a) its performance on image generation compared to other techniques for data augmentations in GANs, (b) the quality of representations learned from ContraD in terms of linear evaluation, and (c) its ability of self-conditional sampling via cDDLS. Overall, we constantly observe integrating contrastive learning into GANs and vice versa have positive effects to each other: (a) for image generation, ContraD enables a simple SNDCGAN to outperform a state-of-the-art architecture of StyleGAN2 on CIFAR-10/100; (b) in case of linear evaluation, on the other hand, we observe the representation from ContraD could outperform those learned from SimCLR. Finally, we perform an ablation study to further understand each of the components we propose. We provide the detailed specification on the experimental setups, e.g., architectures, training configurations and hyperparameters in Appendix F.
161
+
162
+ We consider a variety of datasets including CIFAR-10/100 (Krizhevsky, 2009), CelebA-HQ-128 (Lee et al., 2020), AFHQ (Choi et al., 2020) and ImageNet (Russakovsky et al., 2015) in our experiments, mainly with three well-known GAN architectures: SNDCGAN (Miyato et al., 2018), StyleGAN2 (Karras et al., 2020b) and BigGAN (Brock et al., 2019).1 We measure Frechet Incep- ´ tion distance (FID) (Heusel et al., 2017) and Inception score (IS) (Salimans et al., 2016) as quantitative metrics to evaluate generation quality.2 We compute FIDs between the test set and generated samples of the same size. We follow the best hyperparameter practices explored by Kurach et al. (2019) for SNDCGAN models on CIFAR and CelebA-HQ-128 datasets. For StyleGAN2, on the other hand, we follow the training details of Zhao et al. (2020a) in their CIFAR experiments. All the training details are shared across methods per experiment, but the choice of batch size for training ContraD: we generally observe that ContraD greatly benefits from using larger batch (Appendix E), similarly to SimCLR (Chen et al., 2020a), but in contrast to the common practice of GAN training. Therefore, in our experiments, we consider to use $2 \times$ to $8 \times$ larger batch sizes for training ContraD, where the details are specified in Appendix F.
163
+
164
+ Table 3: Comparison of classification accuracy under linear evaluation protocol on CIFAR-10 and CIFAR-100. We report the mean and standard deviation across 3 runs of the evaluation.
165
+
166
+ <table><tr><td>Dataset</td><td>Training</td><td>SNDCGAN</td><td>SNResNet-18</td><td>StyleGAN2</td></tr><tr><td>CIFAR-10</td><td>SimCLR(入con = 入dis = 0) ContraD (ours)</td><td>72.9±0.02</td><td>80.3±0.05</td><td>86.2±0.06</td></tr><tr><td rowspan="2">CIFAR-100</td><td></td><td>77.5±0.20</td><td>85.7±0.10</td><td>88.6±0.06</td></tr><tr><td>SimCLR(Xcon = Xdis = 0)</td><td>30.8±0.11</td><td>41.2±0.06</td><td>61.1±0.06</td></tr><tr><td></td><td>ContraD (ours)</td><td>37.4±0.06</td><td>51.1±0.18</td><td>68.1±0.07</td></tr></table>
167
+
168
+ # 4.1 RESULTS
169
+
170
+ Image generation on CIFAR-10/100. CIFAR-10 and CIFAR-100 (Krizhevsky, 2009) consist of 60K images of size $3 2 \times 3 2$ in 10 and 100 classes, respectively, 50K for training and 10K for testing. We start by comparing ContraD on CIFAR-10/100 with three recent methods that applies data augmentation in GANs: (a) Consistency Regularization (CR) (Zhang et al., 2020), (b) the “balanced” Consistency Regularization (bCR) (Zhao et al., 2020c), and (c) Differentiable Augmentation (DiffAug) (Zhao et al., 2020a) as baselines.3 We follow their best pratices on which data augmentations to use: specifically, we use a combination of horizontal flipping (HFlip) and random translation up to 4 pixels (Trans) for CR and bCR, and Trans $^ +$ CutOut (DeVries & Taylor, 2017) for DiffAug for CIFAR datasets. We mainly consider SNDCGAN and StyleGAN2 for training, but in addition, we further consider a scenario that the discriminator architecture of SNDCGAN is scaled up into SNResNet-18, which is identical to ResNet-18 (He et al., 2016) without batch normalization (Ioffe & Szegedy, 2015) but with spectral normalization (Miyato et al., 2018), in order to see that how each training method behaves when the capacity of generator and discriminator are significantly different.
171
+
172
+ Table 1 shows the results: overall, we observe our ContraD uniformly improves the baseline GAN training by a large margin, significantly outperforming other baselines as well. Indeed, our results on SNDCGAN already achieve better FID than those from the baseline training of StyleGAN2. Moreover, when the discriminator of SNDCGAN is increased to SNResNet-18, ContraD could further improve its results, without even modifying any of the hyperparameters. It is particularly remarkable that all the other baselines could not improve their results in this setup: A further ablation study presented in Section 4.2 reveals that stopping gradients before the discriminator head in our design is an important factor to benefit from SNResNet-18. Finally, our ContraD can also be applied to a larger, sophisticated StyleGAN2, further improving both FID and IS compared to DiffAug.
173
+
174
+ Image generation on CelebA-HQ-128. We also perform experiments on CelebA-HQ-128 (Lee et al., 2020), which consist of 30K human faces of size $1 2 8 \times 1 2 8$ , to see that our design of ContraD still applies well for high-resolution datasets. We split 3K images out of CelebA-HQ-128 for testing, and use the remaining for training. We use SNDCGAN for this experiment, and compare FID and IS to (a) the default non-saturating loss (W/O) (Goodfellow et al., 2014), (b) the hinge loss (Hinge) (Lim & Ye, 2017; Tran et al., 2017), (c) CR and (d) bCR. Similarly to the CIFAR experiments, we use the “HFlip $^ +$ Trans” augmentation for both CR and bCR, but for CelebA-HQ-128 we allow them to translate up to 16 pixels, following (Zhang et al., 2020). Again, as shown in Table 2, we confirm that ContraD could still improve training of GANs compared to other methods, even with this high-resolution, yet with limited samples and a straightforward choice of architecture.
175
+
176
+ Linear evaluation. Recall that the training objective of ContraD we propose in (11) can be simply reduced into the SimCLR loss (Chen et al., 2020a) without considering the fake samples, i.e., by letting $\lambda _ { \tt c o n } = \lambda _ { \tt d i s } = 0$ . A natural question from here is whether those fake samples could help to improve the representation of SimCLR: we verify this by comparing the linear evaluation performance (Kolesnikov et al., 2019; Chen et al., 2020a; Grill et al., 2020) of the learned representation of ContraD to those from SimCLR: specifically, linear evaluation measures the test accuracy that a linear classifier on the top of given (frozen) representation could maximally achieve for a given (downstream) labeled data. Following this protocol, we compare the linear evaluation of a ContraD model with its ablation that $\lambda _ { \mathsf { c o n } }$ and $\lambda _ { \mathrm { d i s } }$ are set to 0 during its training. We consider three discriminator architectures and two datasets for this experiments: namely, we train SNDCGAN, SNResNet-18, and StyleGAN2 models on CIFAR-10 and CIFAR-100. In this experiment, we use batch size 256 for training all the SNDCGAN and SNResNet-18 models, while in case of StyleGAN2 we use batch size 64 instead. Table 3 summarizes the results, and somewhat interestingly, it shows that ContraD significantly improves the SimCLR counterpart in terms of linear evaluation for all the models tested: in other words, we observe that keeping discriminative features between real and fake samples in their representation, which is what ContraD does in addition to SimCLR, can be beneficial to improve the contrastive learning itself. Again, our observation supports a great potential of ContraD not only in the context of GANs, but also in the contrastive learning.
177
+
178
+ Table 4: Comparison of FID (lower is better) from the class-wise subsets of CIFAR-10 test set (1K images per class). “Random” indicates unconditional generation, and “Train-1K” indicates a 1K random subsamples from the CIFAR-10 train set of the same class.
179
+
180
+ <table><tr><td>D Arch.</td><td>Sampling</td><td>Plane</td><td>Car</td><td>Bird</td><td>Cat</td><td>Deer</td><td>Dog</td><td>Frog</td><td>Horse</td><td>Ship</td><td>Truck</td><td>Mean</td></tr><tr><td>SNDCGAN</td><td>Random + cDDLS</td><td>110.6 65.3</td><td>125.9 72.1</td><td>103.8 63.9</td><td>104.4 69.4</td><td>107.0 57.5</td><td>121.0 69.0</td><td>134.1 107.0</td><td>120.1 61.5</td><td>128.8 58.2</td><td>130.0 53.6</td><td>118.6 67.8</td></tr><tr><td>SNResNet-18</td><td>Random + cDDLS</td><td>117.6 67.1</td><td>136.3 65.8</td><td>100.5 59.8</td><td>99.6 63.8</td><td>98.6 59.7</td><td>115.0 61.9</td><td>128.2 68.8</td><td>111.7 59.9</td><td>140.9 58.9</td><td>140.3 51.6</td><td>118.9 61.7</td></tr><tr><td>-</td><td>Train-1K</td><td>38.9</td><td>28.4</td><td>41.4</td><td>49.7</td><td>36.4</td><td>40.2</td><td>41.7</td><td>33.6</td><td>30.7</td><td>24.6</td><td>36.6</td></tr></table>
181
+
182
+ Table 5: Comparison of the best FID and IS on CIFAR-10 with SNDCGAN when stronger (bCR and DiffAug) or weaker augmentations (ContraD) are used for each method.
183
+
184
+ <table><tr><td>Method</td><td>Augment.</td><td>FID↓</td><td>IS个</td></tr><tr><td>bCR</td><td>HFlip,Trans</td><td>14.0</td><td>8.35</td></tr><tr><td>+ Aug.</td><td>SimCLR</td><td>20.6</td><td>7.44</td></tr><tr><td>DiffAug</td><td>Trans, CutOut</td><td>22.9</td><td>7.64</td></tr><tr><td>+Aug.</td><td>SimCLR</td><td>21.9</td><td>7.42</td></tr><tr><td>ContraD</td><td>SimCLR</td><td>10.9</td><td>8.78</td></tr><tr><td>-Aug.</td><td>HFlip, Trans</td><td>13.7</td><td>8.54</td></tr></table>
185
+
186
+ Table 6: Comparison of the best FID score and IS on CIFAR-10 for ablations of our proposed components. All the models are trained with batch size 256. For the ablation of “MLP $h _ { \mathrm { d } } ^ { \ \mathrm { ~ \prime ~ } }$ , we replace $h _ { \mathrm { d } }$ with a linear model. “ $\mathfrak { s g } ( \cdot )$ ” indicates the use of stop-gradient operation.
187
+
188
+ <table><tr><td></td><td></td><td></td><td></td><td colspan="2">D: SNDCGAN</td><td colspan="2">D:SNResNet-18</td></tr><tr><td>MLP ha</td><td>sg(.)</td><td>L+n</td><td>Lcon</td><td>FID↓</td><td>IS↑</td><td>FID↓</td><td>IS↑</td></tr><tr><td></td><td>【</td><td>√</td><td>√</td><td>11.1</td><td>8.62</td><td>10.6</td><td>8.99</td></tr><tr><td>x//</td><td>√</td><td>√</td><td>√</td><td>185</td><td>3.43</td><td>274</td><td>2.09</td></tr><tr><td></td><td>X</td><td>√</td><td></td><td>11.6</td><td>8.61</td><td>28.0</td><td>7.52</td></tr><tr><td></td><td></td><td>X</td><td></td><td>11.9</td><td>8.45</td><td>182</td><td>2.02</td></tr><tr><td>√</td><td></td><td></td><td>X</td><td>210</td><td>1.93</td><td>232</td><td>2.56</td></tr></table>
189
+
190
+ Conditional DDLS with ContraD. We further evaluate the performance of conditional DDLS (cDDLS) (14) proposed for ContraD, with a task of deriving class-conditional generative models for a given (unconditionally-trained) GAN model. Here, we measure the performance of this conditional generation by computing the class-wise FIDs to the test set, i.e., FIDs computed for each subsets of the same class in the test set. We test cDDLS on SNDCGAN and SNResNet-18 ContraD models trained on CIFAR-10. To perform a conditional generation for a specific class, we simply take a learned linear weight obtained from the linear evaluation protocol for that class. The results summarized in Table 4 show that applying cDDLS upon unconditional generation significantly improves class-wise FIDs for all the classes in CIFAR-10. Some of the actual samples conditionally generated from an SNResNet-18 ContraD model can be found in Figure 5 of Appendix D.
191
+
192
+ # 4.2 ABLATION STUDY
193
+
194
+ We conduct an ablation study for a more detailed analysis on the proposed method. For this section, unless otherwise specified, we perform experiments on CIFAR-10 with SNDCGAN architecture.
195
+
196
+ Stronger augmentations for other methods. One of the key characteristics of ContraD compared to the prior works is the use of stronger data augmentations for training GANs, e.g., we use the augmentation pipeline of SimCLR (Chen et al., 2020a) in our experiments. In Table 5, we examine the performance bCR (Zhao et al., 2020c) and DiffAug (Zhao et al., 2020a) when this stronger augmentation is applied, and shows that the SimCLR augmentation could not meaningfully improve FID or IS for both methods. Unlike these methods, our ContraD effectively handles the SimCLR augmentations without overly regularizing the discriminator, possibly leveraging many components of contrastive learning: e.g., the normalized loss, or the use of separate projection heads.
197
+
198
+ Weaker augmentations for ContraD. On the other side, we also consider a case when ContraD is rather trained with a weaker data augmentation, here we consider “HFlip, Trans” instead of “SimCLR”, in Table 5: even in this case, we observe ContraD is still as good as (or better in terms of IS) a strong baseline of bCR. The degradation in FID (and IS) compared to $\mathrm { ^ { * } C o n t r a D + S i m C L R ^ { , } }$ is possibly due to that SimCLR requires strong augmentations to learn a good representation (Chen et al., 2020a), e.g., we also observe there is a degradation in the linear evaluation performances, $7 7 . 5 7 2 . 9$ , when “HFlip, Trans” is used.
199
+
200
+ MLP discriminator head. In our experiments, we use a 2-layer network for the discriminator head $h _ { \mathrm { d } }$ . As shown in Table 6, this choice can be minimal: replacing $h _ { \mathrm { d } }$ with a linear model severely breaks the training. Conversely, although not presented here, we have also observed that MLPs of more than two layers neither give significant gains on the performance in our experimental setup.
201
+
202
+ Stopping gradients. We use the stop-gradient operation $\mathsf { s g } ( \cdot )$ before the discriminator head $h _ { \mathrm { d } }$ in attempt to decouple the effect of GAN loss to the ContraD representation. Table 6 also reports the ablation of this component: overall, not using $\mathsf { s g } ( \cdot )$ does not completely break the training, but it does degrade the performance especially when a deeper discriminator is used, e.g., SNResNet-18.
203
+
204
+ Contrastive losses. Recall that the representation of ContraD is trained by two losses, namely $L _ { \mathrm { c o n } } ^ { + }$ and $L _ { \mathrm { c o n } } ^ { - }$ (Section 3.1). From an ablation study on each loss, as presented in Table 6, we observe that both of the losses are indispensable for our training to work in a larger discriminator architecture.
205
+
206
+ Separate projection headers. As mentioned in Section 3.1, we use two independent projection headers, namely $h _ { \mathbf { r } }$ and $h _ { \mathrm { f } }$ , to define $L _ { \mathsf { c o n } } ^ { + }$ and $L _ { \mathrm { c o n } } ^ { - }$ , respectively. We have observed this choice is empirically more stable than sharing them: e.g., under $h _ { \tt r } = h _ { \tt f }$ , we could not obtain a reasonable performance when only $D$ is increased to SNResNet-18 on CIFAR-10 with SNDCGAN. Intuitively, an optimal embedding (after projection) from $L _ { \mathrm { c o n } } ^ { - }$ can be harmful to SimCLR, as it encourages the embedding of real samples to degenerate into a single point, i.e., the opposite direction of SimCLR.
207
+
208
+ # 5 CONCLUSION AND FUTURE WORK
209
+
210
+ In this paper, we explore a novel combination of GAN and contrastive learning, two important, yet seemingly different paradigms in unsupervised representation learning. They both have been independently observed the crucial importance of maintaining consistency to data augmentations in their representations (Zhang et al., 2020; Tian et al., 2020), and here we further observe that these two representations complement each other when combined upon the shared principle of viewinvariant representations: although we have put more efforts in this work to verify the effectiveness of contrastive learning on GANs, we do observe the opposite direction through our experiments, and scaling up our method to compete with state-of-the-art self-supervised learning benchmarks (Chen et al., 2020b; Grill et al., 2020; Caron et al., 2020) would be an important future work.
211
+
212
+ We believe our work also suggests several interesting ideas to explore in future research in both sides of GAN and contrastive learning: for example, our new design of introducing a small header to minimize the GAN loss upon other (e.g., contrastive) representation is a promising yet unexplored way of designing a new GAN architecture. For the SimCLR side, on the other hand, we suggest a new idea of incorporating “fake” samples for contrastive learning, which is also an interesting direction along with other recent attempts to improve the efficiency of negative sampling in contrastive learning, e.g., via hard negative mining (Kalantidis et al., 2020; Robinson et al., 2021).
213
+
214
+ # ACKNOWLEDGMENTS
215
+
216
+ This work was supported by Samsung Advanced Institute of Technology (SAIT). This work was also partly supported by Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No.2019-0-00075, Artificial Intelligence Graduate School Program (KAIST)). The authors would like to thank Minkyu Kim for helping additional experiments in preparation of the camera-ready revision, and thank the anonymous reviewers for their valuable comments to improve our paper.
217
+
218
+ # REFERENCES
219
+
220
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 214–223, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http:// proceedings.mlr.press/v70/arjovsky17a.html.
221
+
222
+ Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems 32, pp. 15535–15545. Curran Associates, Inc., 2019.
223
+
224
+ Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101 – Mining discriminative components with random forests. In Proceedings of the European Conference on Computer Vision, pp. 446–461. Springer, 2014.
225
+
226
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale GAN training for high fidelity natural image synthesis. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=B1xsqj09Fm.
227
+
228
+ Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. Advances in Neural Information Processing Systems, 33, 2020.
229
+
230
+ Tong Che, Ruixiang Zhang, Jascha Sohl-Dickstein, Hugo Larochelle, Liam Paull, Yuan Cao, and Yoshua Bengio. Your GAN is secretly an energy-based model and you should use discriminator driven latent sampling. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 12275–12287. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/ 90525e70b7842930586545c6f1c9310c-Paper.pdf.
231
+
232
+ Ting Chen, Xiaohua Zhai, Marvin Ritter, Mario Lucic, and Neil Houlsby. Self-supervised GANs via auxiliary rotation loss. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 12154–12163, 2019.
233
+
234
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, Proceedings of Machine Learning Research. PMLR, 2020a.
235
+
236
+ Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b.
237
+
238
+ Yunjey Choi, Youngjung Uh, Jaejun Yoo, and Jung-Woo Ha. StarGAN v2: Diverse image synthesis for multiple domains. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, June 2020.
239
+
240
+ Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3606–3613, 2014.
241
+
242
+ Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with Cutout. arXiv preprint arXiv:1708.04552, 2017.
243
+
244
+ Carl Doersch, Abhinav Gupta, and Alexei A Efros. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1422–1430, 2015.
245
+
246
+ Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=S1v4N2l0-.
247
+
248
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014. URL http://papers. nips.cc/paper/5423-generative-adversarial-nets.pdf.
249
+
250
+ Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre Richemond, Elena´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, Bilal Piot, koray kavukcuoglu, Remi Munos, and Michal Valko. Bootstrap your own latent - a new approach to self-supervised learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21271–21284. Curran Associates, Inc., 2020. URL https://proceedings.neurips. cc/paper/2020/file/f3ada80d5c4ee70142b17b8192b2958e-Paper.pdf.
251
+
252
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of Wasserstein GANs. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 5767–5777. Curran Associates, Inc., 2017. URL http://papers.nips.cc/ paper/7159-improved-training-of-wasserstein-gans.pdf.
253
+
254
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016.
255
+
256
+ Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, June 2020.
257
+
258
+ Olivier J Henaff, Aravind Srinivas, Jeffrey De Fauw, Ali Razavi, Carl Doersch, SM Eslami, and ´ Aaron van den Oord. Data-efficient image recognition with contrastive predictive coding. In Hal Daume III and Aarti Singh (eds.), ´ Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 4182–4192. PMLR, 13–18 Jul 2020. URL http://proceedings.mlr.press/v119/henaff20a. html.
259
+
260
+ Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems 30, pp. 6626–6637. Curran Associates, Inc., 2017.
261
+
262
+ Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 29, pp. 4565–4573. Curran Associates, Inc., 2016.
263
+
264
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 448–456, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings. mlr.press/v37/ioffe15.html.
265
+
266
+ Alexia Jolicoeur-Martineau. The relativistic discriminator: a key element missing from standard GAN. In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $\bar { }$ S1erHoR5t7.
267
+
268
+ Yannis Kalantidis, Mert Bulent Sariyildiz, Noe Pion, Philippe Weinzaepfel, and Diane Larlus. Hard negative mixing for contrastive learning. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21798–21809. Curran Associates, Inc., 2020. URL https://proceedings.neurips. cc/paper/2020/file/f7cade80b7cc92b991cf4d2806d6bd78-Paper.pdf.
269
+
270
+ Minguk Kang and Jaesik Park. ContraGAN: Contrastive learning for conditional image generation. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 21357–21369. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/ f490c742cd8318b8ee6dca10af2a163f-Paper.pdf.
271
+
272
+ Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, June 2019.
273
+
274
+ Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 12104–12114. Curran Associates, Inc., 2020a. URL https://proceedings.neurips. cc/paper/2020/file/8d30aa96e72440759f74bd2306c1fa3d-Paper.pdf.
275
+
276
+ Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of StyleGAN. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8110–8119, 2020b.
277
+
278
+ Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. In Advances in Neural Information Processing Systems, volume 33, pp. 18661–18673. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper/2020/file/ d89a66c7c80a29b1bdbab0f2a1a94af8-Paper.pdf.
279
+
280
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2014.
281
+
282
+ Alexander Kolesnikov, Xiaohua Zhai, and Lucas Beyer. Revisiting self-supervised visual representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 1920–1929, 2019.
283
+
284
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, Department of Computer Science, University of Toronto, 2009.
285
+
286
+ Karol Kurach, Mario Luciˇ c, Xiaohua Zhai, Marcin Michalski, and Sylvain Gelly. A large-scale study´ on regularization and normalization in GANs. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of $P r o$ - ceedings of Machine Learning Research, pp. 3581–3590, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/kurach19a.html.
287
+
288
+ Cheng-Han Lee, Ziwei Liu, Lingyun Wu, and Ping Luo. MaskGAN: Towards diverse and interactive facial image manipulation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, June 2020.
289
+
290
+ Kwot Sin Lee, Ngoc-Trung Tran, and Ngai-Man Cheung. InfoMax-GAN: Improved adversarial image generation via information maximization and contrastive learning. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3942–3952, January 2021.
291
+
292
+ Jae Hyun Lim and Jong Chul Ye. Geometric GAN. arXiv preprint arXiv:1705.02894, 2017.
293
+
294
+ R. Linsker. Self-organization in a perceptual network. Computer, 21(3):105–117, 1988.
295
+
296
+ Mario Lucic, Karol Kurach, Marcin Michalski, Sylvain Gelly, and Olivier Bousquet. Are GANs created equal? a large-scale study. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 700–709. Curran Associates, Inc., 2018. URL http://papers.nips.cc/paper/ 7350-are-gans-created-equal-a-large-scale-study.pdf.
297
+
298
+ Lars Mescheder, Andreas Geiger, and Sebastian Nowozin. Which training methods for GANs do actually converge? In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 3481–3490, Stockholmsmassan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL¨ http://proceedings.mlr.press/v80/mescheder18a.html.
299
+
300
+ Takeru Miyato and Masanori Koyama. cGANs with projection discriminator. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum? id $=$ ByS1VpgRZ.
301
+
302
+ Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ B1QRgziT-.
303
+
304
+ Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In The Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pp. 722–729. IEEE, 2008.
305
+
306
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
307
+
308
+ Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. PyTorch: An imperative style, highperformance deep learning library. In Advances in Neural Information Processing Systems, pp. 8026–8037, 2019.
309
+
310
+ Joshua David Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. Contrastive learning with hard negative samples. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $\bar { }$ CR1XOQ0UTh-.
311
+
312
+ Tamar Rott Shaham, Tali Dekel, and Tomer Michaeli. SinGAN: Learning a generative model from a single natural image. In Proceedings of the IEEE/CVF International Conference on Computer Vision, October 2019.
313
+
314
+ 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, 115(3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
315
+
316
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, Xi Chen, and Xi Chen. Improved techniques for training GANs. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 2234–2242. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6125-improved-techniques-for-training-gans.pdf.
317
+
318
+ Edgar Schonfeld, Bernt Schiele, and Anna Khoreva. A U-Net based discriminator for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8207–8216, 2020.
319
+
320
+ Yonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola. What makes for good views for contrastive learning? In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 6827–6839. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/ paper/2020/file/4c2e5eaae9152079b9e95845750bb9ab-Paper.pdf.
321
+
322
+ Dustin Tran, Rajesh Ranganath, and David Blei. Hierarchical implicit models and likelihood-free variational inference. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper/2017/ file/6f1d0705c91c2145201df18a1a0c7345-Paper.pdf.
323
+
324
+ Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, and Ngai-Man Cheung. An improved selfsupervised GAN via adversarial training, 2019.
325
+
326
+ Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Trung-Kien Nguyen, and Ngai-Man Cheung. On data augmentation for GAN training. IEEE Transactions on Image Processing, 30: 1882–1897, 2021. doi: 10.1109/TIP.2021.3049346.
327
+
328
+ Xiang Wei, Zixia Liu, Liqiang Wang, and Boqing Gong. Improving the improved training of Wasserstein GANs. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=SJx9GQb0-.
329
+
330
+ Max Welling and Yee Whye Teh. Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning, pp. 681–688, 2011.
331
+
332
+ Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018.
333
+
334
+ Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. SUN database: Large-scale scene recognition from abbey to zoo. In IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 3485–3492. IEEE, 2010.
335
+
336
+ Han Zhang, Zizhao Zhang, Augustus Odena, and Honglak Lee. Consistency regularization for generative adversarial networks. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $=$ S1lxKlSKPH.
337
+
338
+ Shengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu, and Song Han. Differentiable augmentation for data-efficient GAN training. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 7559–7570. Curran Associates, Inc., 2020a. URL https://proceedings.neurips.cc/paper/2020/ file/55479c55ebd1efd3ff125f1337100388-Paper.pdf.
339
+
340
+ Yang Zhao, Chunyuan Li, Ping Yu, Jianfeng Gao, and Changyou Chen. Feature quantization improves GAN training. In Proceedings of the 37th International Conference on Machine Learning, Proceedings of Machine Learning Research. PMLR, 2020b.
341
+
342
+ Zhengli Zhao, Sameer Singh, Honglak Lee, Zizhao Zhang, Augustus Odena, and Han Zhang. Improved consistency regularization for GANs, 2020c.
343
+
344
+ Zhengli Zhao, Zizhao Zhang, Ting Chen, Sameer Singh, and Han Zhang. Image augmentations for GAN training. arXiv preprint arXiv:2006.02595, 2020d.
345
+
346
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, Oct 2017.
347
+
348
+ # A TRAINING PROCEDURE OF CONTRAD
349
+
350
+ <table><tr><td colspan="2">Algorithm 1 GANs with Contrastive Discriminator (ContraD)</td></tr><tr><td colspan="2">Require: generator G, discriminator D,Adam hyperparameters α,β1, β2, number of D updates</td></tr><tr><td>per G update ND,family of data augmentations T,入 &gt; 0. 1:for # training iterations do</td><td></td></tr><tr><td>2:</td><td>for t= 1 to ND do</td></tr><tr><td>3:</td><td>Sample x ~ Pdata(x) and z ~ p(z)</td></tr><tr><td>4:</td><td>Samplet1,t2,t3~T</td></tr><tr><td>5:</td><td>v①),u(2),Uf←t(x),t(x),t3(G(z))</td></tr><tr><td>6:</td><td>L+on ← LsimCLR(U1),v2);D,hr)</td></tr><tr><td>7:</td><td>L←∑pon(,[t,i2][;Dh</td></tr><tr><td>8:</td><td>rr,rf ← sg(D(v(2))),sg(D(uf))</td></tr><tr><td>9:</td><td>Ldis←-Er,[log(σ(ha(rr)))]-Er[log(1-σ(ha(rf)))]</td></tr><tr><td>10:</td><td>LD←L+on+XconLcon+XdisLdis</td></tr><tr><td>11:</td><td>D,hr,hf,ha ←Adam([D,hr,hf,hd],LD;α,β1,β2)</td></tr><tr><td>12:</td><td>end for</td></tr><tr><td>13:</td><td>LG←-Ev[log(σ(ha(D(vf))))]</td></tr><tr><td>14:</td><td></td></tr><tr><td>15: end for</td><td>G ←Adam(G,LG;α,β1,β2)</td></tr><tr><td></td><td></td></tr></table>
351
+
352
+ # B RESULTS ON AFHQ DATASETS
353
+
354
+ We evaluate our training method on the Animal Faces-HQ (AFHQ) dataset (Choi et al., 2020), which consists of ${ \sim } 1 5 { , } 0 0 0$ samples of animal-face images at $5 1 2 \times 5 1 2$ resolution, to further verify the effectiveness of ContraD on higher-resolution, yet limited-sized datasets. We partition the dataset by class labels into three sub-datasets, namely AFHQ-Dog (4,739 samples), AFHQ-Cat (5,153 samples) and AFHQ-Wild (4,738 samples), and evaluate FIDs on these datasets. In this experiment, we compare our method with ADA (Karras et al., 2020a), another recent data augmentation scheme for GANs (concurrently to DiffAug (Zhao et al., 2020a) considered in Section 4), which includes a dynamic adaptation of augmentation pipeline during training. We follow the training details of ADA particularly for this experiment: specifically, we train StyleGAN2 with batch size 64 for 25M training samples, using Adam with $( \bar { \alpha } , \beta _ { 1 } , \beta _ { 2 } ) \overset { \cdot } { = } ( 0 . 0 0 2 5 , 0 . 0 , 0 . 9 9 )$ , $R _ { 1 }$ regularization with $\gamma = 0 . 5$ , and exponential moving average on the generator weights with half-life of 20K samples. For ContraD training on AFHQ datasets, we consider to additionally use CutOut (DeVries & Taylor, 2017) of $p = 0 . 5$ upon the SimCLR augmentation, which we observe an additional gain in FID. We also follow the way of computing FIDs as per Karras et al. (2020a) here for a fair comparison, i.e., by comparing 50K of generated samples and all the training samples ${ \sim } 5 \mathrm { K }$ per dataset).
355
+
356
+ Table 7 compares our ContraD models with the results reported by Karras et al. (2020b) where the models are available at https://github.com/NVlabs/stylegan2-ada. Overall, we consistently observe that ContraD improves the baseline StyleGAN2, even achieving significantly better FIDs than ADA on AFHQ-Dog and AFHQ-Wild. These results confirms the effectiveness of ContraD on higher-resolution datasets, especially under the regime of limited data. Qualitative comparisons can be found in Figure 6, 7, and 8 of Appendix D.
357
+
358
+ Table 7: Comparison of the best FID score (lower is better) on unconditional image generation of AFHQ datasets (Choi et al., 2020) with StyleGAN2. Values in the rows marked by \* are from those reported in its reference. We set our results bold-faced whenever the value improves the StyleGAN2 baseline (“Baseline”). Underlined indicates the best score among tested for each dataset.
359
+
360
+ <table><tr><td>Architecture</td><td>Method</td><td>DOG</td><td>CAT</td><td>WILD</td></tr><tr><td rowspan="2">StyleGAN2</td><td>Baseline* (Karras et al., 2020b) ADA* (Karras et al., 2020a)</td><td>19.4</td><td>5.13</td><td>3.48</td></tr><tr><td></td><td>7.40</td><td>3.55</td><td>3.05</td></tr><tr><td></td><td>ContraD (ours)</td><td>7.16</td><td>3.82</td><td>2.54</td></tr></table>
361
+
362
+ # C RESULTS ON IMAGENET DATASET
363
+
364
+ Table 8: Comparison of the best FID score and IS on conditional generation of ImageNet $( 6 4 \times 6 4 )$ with BigGAN architecture. Values in the rows marked by $^ *$ are from those reported in its reference.
365
+
366
+ <table><tr><td>ImageNet</td><td>FID↓</td><td>IS↑</td></tr><tr><td>BigGAN* (Brock et al., 2019)</td><td>10.6</td><td>25.43±0.15</td></tr><tr><td>FQ-BigGAN* (Zhao et al.,2020b)</td><td>9.67</td><td>25.96±0.24</td></tr><tr><td>ContraD-BigGAN (ours)</td><td>8.32</td><td>26.94±0.40</td></tr></table>
367
+
368
+ Table 9: Comparison linear evaluation and transfer learning performance across 6 natural image classification datasets for BigGAN discriminators pretrained on ImageNet $( 6 4 \times 6 4 )$ . We report the top-1 accuracy except for ImageNet and SUN397, which we instead report the top-5 accuracy.
369
+
370
+ <table><tr><td>Training (BigGAN)</td><td>ImageNet</td><td>CIFAR10</td><td>CIFAR100</td><td>DTD</td><td>SUN397</td><td>Flowers</td><td>Food</td></tr><tr><td>Supervised (ImageNet)</td><td>63.5</td><td>76.1</td><td>55.2</td><td>45.4</td><td>31.7</td><td>78.1</td><td>44.5</td></tr><tr><td>SimCLR(λcon = Xdis = 0)</td><td>43.4</td><td>81.2</td><td>55.3</td><td>43.9</td><td>37.6</td><td>69.8</td><td>38.8</td></tr><tr><td>ContraD (ours)</td><td>51.5</td><td>84.5</td><td>61.1</td><td>50.6</td><td>44.4</td><td>78.6</td><td>44.5</td></tr></table>
371
+
372
+ We also apply ContraD to the state-of-the-art BigGAN (Brock et al., 2019) architecture on ImageNet (Russakovsky et al., 2015), to examine the effectiveness of our method on this large-scale, classconditional GAN model. For this experiment, we exactly follow the training setups done in FQBigGAN (Zhao et al., 2020b), a recent work showing that feature quantization in discriminator could improve state-of-the-art GANs, which is based on the official PyTorch (Paszke et al., 2019) implementation of BigGAN.4 Following Zhao et al. (2020b), we down-scale the ImageNet dataset into $6 4 \times 6 4$ , and reduce the default channel width of 96 into 64. We train the model with batch size 512 for 100 epochs $\sim 2 5 0 \mathrm { K }$ generator steps). Unlike other experiments, we compute FIDs between the training set and 50K of generated samples for a fair comparison to the baseline scores reported by Zhao et al. (2020b). In Table 8, we show that ContraD further improves the baseline BigGAN training and FQ-BigGAN (Zhao et al., 2020b) both in FID and IS under the same training setups.
373
+
374
+ Next, we evaluate the representation of the learned BigGAN encoder $D$ from ContraD5 under linear evaluation (on ImageNet) and several transfer learning benchmarks of natural image classification: namely, we consider CIFAR-10 and CIFAR-100 (Krizhevsky, 2009), the Describable Textures Dataset (DTD) (Cimpoi et al., 2014), SUN397 (Xiao et al., 2010), Oxford 102 Flowers (Flowers) (Nilsback & Zisserman, 2008), and Food-101 (Bossard et al., 2014). As done in Table 3, we compare ContraD with an ablation when $\lambda _ { \tt c o n } = \lambda _ { \tt d i s } = 0$ , which is equivalent to the SimCLR (Chen et al., 2020a) training. In addition, we also compare against the supervised baseline, where the representation is pre-trained on ImageNet with standard cross-entropy loss using the same architecture of BigGAN discriminator. Similarly to the ContraD training, this baseline is also trained with the SimCLR augmentation, using Adam optimizer (Kingma & Ba, 2014) for 120 epochs.
375
+
376
+ Table 9 summarizes the results. We first note that the supervised training achieves $6 3 . 5 \%$ top-5 accuracy on ImageNet, while the SimCLR baseline achieves $4 3 . 4 \%$ (in linear evaluation). Again, as also observed in Table 3, ContraD significantly improves the linear evaluation performance from the baseline SimCLR, namely to $5 1 . 5 \%$ . Although the results are somewhat far behind compared to those reported in the original SimCLR (Chen et al., 2020a), this is possibly due to the use of model with much limited capacity, i.e., the BigGAN discriminator: its essential depth is only ${ \sim } 1 0$ , and it also uses spectral normalization (Miyato et al., 2018) for every layer unlike the ResNet-50 architecture considered by Chen et al. (2020a). Nevertheless, we still observe a similar trend in the accuracy gap between supervised and (unsupervised) contrastive learning. On the other hand, the remaining results in Table 9, those from the transfer learning benchmarks, confirm a clear advantage of ContraD, compared to both the SimCLR and supervised baselines: we found the two baselines perform similarly on transfer learning, while our ContraD training further improves SimCLR consistently.
377
+
378
+ ![](images/2803a19d7148673684f3a61f5c48939276fcff7966c6d0202f225462a15fb966.jpg)
379
+ Figure 2: Qualitative comparison of unconditionally generated samples from GANs with different training methods. All the models are trained on CIFAR-10 with an SNDCGAN architecture.
380
+
381
+ ![](images/8f10f0a4cefb14366c386e6b394004a11293bdcebbed43433e8a85bd84c5168f.jpg)
382
+ Figure 3: Qualitative comparison of unconditionally generated samples from GANs with different training methods. All the models are trained on CIFAR-100 with an SNDCGAN architecture.
383
+
384
+ ![](images/565bf6b5cf21dc3e3234e8279bd49157ad927d1d16e70bdac73f4da4d1f6ac18.jpg)
385
+ Figure 4: Qualitative comparison of unconditionally generated samples from GANs with different training methods. All the models are trained on CelebA-HQ-128 with an SNDCGAN architecture.
386
+
387
+ ![](images/49648ae7bc3e6ec618e8000ad8a3ed53e716c93129f6ae98838e349ceccb8a69.jpg)
388
+ Figure 5: Visualization of conditionally generated samples via conditional DDLS (Section 3.3) with ContraD. We use an SNDCGAN generator trained with an SNResNet-18 ContraD for the generation.
389
+
390
+ ![](images/68083929ad3443b94e7ae29b393dd0097254c53feade8b38553414bf78967ad6.jpg)
391
+ Figure 6: Qualitative comparison of unconditionally generated samples from GANs with different training methods, along with real images from the training set. All the models are trained on AFHQDog (4,739 images) with StyleGAN2. We apply the truncation trick (Karras et al., 2019) with $\psi = 0 . 7$ to produce the images at the bottom row. We use the pre-trained models officially released by the authors to obtain the results of the baseline StyleGAN2 and ADA.
392
+
393
+ ![](images/41afd1b49d3fa3f188e153074f2345bf1da01dcd36dda4431fece8688ed18740.jpg)
394
+ Figure 7: Qualitative comparison of unconditionally generated samples from GANs with different training methods, along with real images from the training set. All the models are trained on AFHQCat (5,153 images) with StyleGAN2. We apply the truncation trick (Karras et al., 2019) with $\psi =$ 0.7 to produce the images at the bottom row. We use the pre-trained models officially released by the authors to obtain the results of the baseline StyleGAN2 and ADA.
395
+
396
+ ![](images/5334a13c1b6ad161356252ae7fe4b3b4aa7d64d024d490908f18933d91092f0f.jpg)
397
+ Figure 8: Qualitative comparison of unconditionally generated samples from GANs with different training methods, along with real images from the training set. All the models are trained on AFHQWild (4,738 images) with StyleGAN2. We apply the truncation trick (Karras et al., 2019) with $\psi = 0 . 7$ to produce the images at the bottom row. We use the pre-trained models officially released by the authors to obtain the results of the baseline StyleGAN2 and ADA.
398
+
399
+ ![](images/831a68a5a7ad640f8312c5449910b7a6b99801db205ba64be4311b3e38853e51.jpg)
400
+ Figure 9: Comparion of the FID distribution of the top $2 5 \%$ of trained models (Kurach et al., 2019) on CIFAR-10 (SNDCGAN) for different batch sizes.
401
+
402
+ Contrary to existing practices for training GANs, we observe in our experiments that ContraD typically needs a larger batch size in training to perform best. We further confirm this effect of batch sizes in Figure 9: overall, we observe the stanard training (“W/O”) is not significantly affected by a particular batch size, while ContraD offers much better FIDs on larger batch sizes. We also observe bCR (Zhao et al., 2020c) slightly benefits from larger batches, but not as much as ContraD does. This observation is consistent with Chen et al. (2020a) that contrastive learning benefits from using larger batch sizes, and it also supports our key hypothesis on the close relationship between contrastive and discriminator representations.
403
+
404
+ # F EXPERIMENTAL DETAILS
405
+
406
+ # F.1 ARCHITECTURE
407
+
408
+ Overall, we consider four architectures in our experiments: SNDCGAN (Miyato et al., 2018), StyleGAN-2 (Karras et al., 2020b), and BigGAN (Brock et al., 2019) for GAN architectures, and additionally SNResNet-18 for a discriminator architecture only. For all the architectures considered, we have modified the last linear layer into a multi-layer perceptron (MLP) having the same input and output size, for a fair comparison to ContraD that requires such an MLP for the discriminator header $h _ { \mathrm { d } }$ . When a GAN model is trained via ContraD, we additionally introduce two 2-layer MLP projection heads of the output size 128 upon the penutimate representation in the discriminator to stand $h _ { \mathbf { r } }$ and $h _ { \mathbf { f } }$ . All the models are implemented in PyTorch (Paszke et al., 2019) framework.
409
+
410
+ SNDCGAN. We adopt a modified version of SNDCGAN architecture by Kurach et al. (2019) following the experimental setups of other baselines (Zhang et al., 2020; Zhao et al., 2020c). The official implementation can be found in compare gan codebase,6 and we have re-implemented this TensorFlow implementation into PyTorch framework. The detailed structures of the generator and discriminator of SNDCGAN are summarized in Table 10 and 11, respectively.
411
+
412
+ SNResNet-18. We modify the ResNet-18 (He et al., 2016) architecuture, where a PyTorch implementation is available from torchvision7 library, to not include batch normalization (Ioffe & Szegedy, 2015) layers inside the network. Instead, we apply spectral normalization (Miyato et al., 2018) for all the convolutional and linear layers. We made such a modification to adapt this model as a stable GAN discriminator, as batch normalization layers often harm the GAN dynamics in discriminator in practice.
413
+
414
+ StyleGAN2. We follow the StyleGAN2 architecture used in the DiffAug baseline (Zhao et al., 2020a). Specifically, we generally follow the official StyleGAN2, but the number of channels at $3 2 \times 3 2$ resolution is reduced to 128 and doubled at each coarser level with a maximum of 512 channels, in order to optimize the model for CIFAR datasets, as suggested by Zhao et al. (2020a).
415
+
416
+ Table 10: SNDCGAN generator
417
+
418
+ <table><tr><td>Layer</td><td>Kernel</td><td>Output</td></tr><tr><td>Latent z</td><td></td><td>128</td></tr><tr><td>Linear, BN, ReLU</td><td></td><td>h/8 × w/8 × 512</td></tr><tr><td>DeConv, BN,ReLU</td><td>[4,4,2]</td><td>h/4×w/4× 256</td></tr><tr><td>DeConv,BN,ReLU</td><td>[4,4,2]</td><td>h/2 ×w/2×128</td></tr><tr><td>DeConv,BN,ReLU</td><td>[4,4,2]</td><td>×w × 64</td></tr><tr><td>DeConv, Tanh</td><td>[3,3,1]</td><td>×w ×</td></tr></table>
419
+
420
+ Table 11: SNDCGAN discriminator
421
+
422
+ <table><tr><td>Layer</td><td>Kernel</td><td>Output</td></tr><tr><td>Conv,LeakyReLU</td><td>[3,3,1]</td><td>h ×w ×64</td></tr><tr><td>Conv,LeakyReLU</td><td>[4,4,2]</td><td>h/2 × w/2 × 128</td></tr><tr><td>Conv,LeakyReLU</td><td>[3,3,1]</td><td>h/2 × w/2 × 128</td></tr><tr><td>Conv,LeakyReLU</td><td>[4,4,2]</td><td>h/4 × w/4× 256</td></tr><tr><td>Conv,LeakyReLU</td><td>[3,3,1]</td><td>h/4 × w/4× 256</td></tr><tr><td>Conv,LeakyReLU</td><td>[4,4,2]</td><td>h/8×w/8× 512</td></tr><tr><td>Conv,LeakyReLU</td><td>[3,3,1]</td><td></td></tr><tr><td></td><td></td><td>h/8 × w/8× 512</td></tr></table>
423
+
424
+ BigGAN. We use the official PyToch implementation of BigGAN (https://github.com/ ajbrock/BigGAN-PyTorch). In order to adapt ContraD into the class-conditional BigGAN architecture, we apply the stop-gradient operation not only on the penultimate representation before computing $h _ { \mathrm { d } }$ , but also before applying the class-conditional projection (Miyato & Koyama, 2018).
425
+
426
+ # F.2 TRAINING DETAILS
427
+
428
+ SNDCGAN. Overall, we follow the best hyperparameter practices explored by Kurach et al. (2019) for SNDCGAN models on CIFAR and CelebA-HQ-128 datasets: We use Adam (Kingma & Ba, 2014) with $( \alpha , \beta _ { 1 } , \beta _ { 2 } ) = ( 0 . 0 0 0 2 , 0 . 5 , 0 . 9 9 9 )$ for optimization with batch size of 64, while in case of ContraD on CIFAR datasets the batch size of 512 is used instead. For CelebA-HQ-128, we keep the default batch size of 64 even for ContraD. All models but the “Hinge” baselines in Table 2 are trained with the non-saturating loss (Goodfellow et al., 2014). We stop training after 200K generator updates for CIFAR-10/100 and 100K for CelebA-HQ-128. When CR or bCR is used, we set their regularization strengths $\lambda = 1 0$ for both real and fake images.
429
+
430
+ StyleGAN2. We follow the training details of DiffAug (Zhao et al., 2020a) in their CIFAR experiments: we use Adam with $( \alpha , \beta _ { 1 } , \beta _ { 2 } ) = ( 0 . 0 0 2 , 0 . 0 , 0 . 9 9 )$ for optimization with batch size of 32, but 64 for ContraD models. We use non-saturating loss for training, and use $R _ { 1 }$ regularization (Mescheder et al., 2018) with $\gamma = 0 . 1$ . We do not use, however, the path length regularization and the lazy regularization (Karras et al., 2020b) in training. We take exponential moving average on the generator weights with half-life of $1 0 ^ { 6 }$ . We stop training after 800K generator updates. When CR or bCR is used, we set their regularization strengths $\lambda = 1 0$ for both real and fake images.
431
+
432
+ Linear evaluation and transfer learning. For a single linear evaluation (and transfer learning) run, we train a linear classifier upon a given (frozen) representation. The results in Table 3 are trained via stochastic gradient descent for 100 epochs: the initial learning rate of 0.1, and it is decayed by 0.1 at 60, 75, and 90-th epoch. In case of Table 9, on the other hand, we use Adam optimizer (Kingma & Ba, 2014) for 90 epochs: the initial learning rate if 0.0002, and it is decayed by 0.3 at 60 and 75-th epoch. We augment every training dataset via random crop, resizing and horizontal flipping.
433
+
434
+ Conditional DDLS. We run Langevin sampling of step size $\varepsilon ~ = ~ 0 . 1$ for 1,000 iterations. We follow all the practical considerations proposed by Che et al. (2020) to improve the sample quality of DDLS: specifically, (a) we separately set the standard deviation of the Gaussian noise (13) to 0.1, and (b) to alleviate mode dropping issues, instead of running DDLS on $G$ itself, we run the sampling with $G ^ { * } ( \mathbf { z } , \mathbf { z } ^ { \prime } ) : = G ( \mathbf { z } ) + \varepsilon \bar { \mathbf { z } } ^ { \prime }$ , where $\mathbf { z } ^ { \prime }$ is also jointly updated via Langevin dynamics.
435
+
436
+ Hyperparameters in ContraD. Unless otherwise specified, we use $\lambda _ { \tt c o n } = \lambda _ { \tt d i s } = 1$ , and $\tau = 0 . 1$ in our experiments, where $\tau$ is the temperature hyperparameter defined in (5). We use hidden layer of size 512 for $h _ { \mathbf { r } }$ , $h _ { \mathbf { f } }$ , $h _ { \mathrm { d } }$ in SNDCGAN and StyleGAN2, and 1024 in SNResNet-18 and BigGAN. For ContraD models, we use linear warm-up strategy on learning rate up to 3K steps of training for both generator and discriminator, following practices in contrastive learning (Chen et al., 2020a).
437
+
438
+ SimCLR augmentations. We use the augmentation pipeline proposed in SimCLR (Chen et al., 2020a) for training ContraD. Specifically, for CIFAR datasets, we sequentially transform a given image by: (a) random crop and resizing, (b) horizontal flipping, (c) color jittering with probability of $p = 0 . 8$ , and (d) graying the image with probability of $p = 0 . 2$ . We additionally apply (f) Gaussian blurring with probability of $p = 0 . 5$ for higher resolution images such as CelebA-HQ-128 and ImageNet. We ensure that every transformation in this pipelines are differentiably implemented, so that the augmentation still can be used for training the generator of GAN.
parse/train/eo6U4CAwVmg/eo6U4CAwVmg_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/eo6U4CAwVmg/eo6U4CAwVmg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/eo6U4CAwVmg/eo6U4CAwVmg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/lwwEh0OM61b/lwwEh0OM61b.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A-NeRF: Articulated Neural Radiance Fields for Learning Human Shape, Appearance, and Pose
2
+
3
+ Shih-Yang Su1 Frank Yu1 Michael Zollhöfer2 Helge Rhodin1
4
+
5
+ 1University of British Columbia
6
+
7
+ 2Facebook Reality Labs
8
+
9
+ # Abstract
10
+
11
+ While deep learning reshaped the classical motion capture pipeline with feedforward networks, generative models are required to recover fine alignment via iterative refinement. Unfortunately, the existing models are usually hand-crafted or learned in controlled conditions, only applicable to limited domains. We propose a method to learn a generative neural body model from unlabelled monocular videos by extending Neural Radiance Fields (NeRFs). We equip them with a skeleton to apply to time-varying and articulated motion. A key insight is that implicit models require the inverse of the forward kinematics used in explicit surface models. Our reparameterization defines spatial latent variables relative to the pose of body parts and thereby overcomes ill-posed inverse operations with an overparameterization. This enables learning volumetric body shape and appearance from scratch while jointly refining the articulated pose; all without ground truth labels for appearance, pose, or 3D shape on the input videos. When used for novel-view-synthesis and motion capture, our neural model improves accuracy on diverse datasets. Project website: https://lemonatsu.github.io/anerf/.
12
+
13
+ # 1 Introduction
14
+
15
+ Generative models have evolved from Generative Adversarial Networks (GANs) recreating images [14, 21] to neural scene representations [39, 56, 57] providing control and image understanding for downstream tasks via structured latent variables. However, most 3D models require 3D labels that cannot be crowd-sourced on natural images and require dedicated depth sensors. It is hence an important research problem to learn 3D representations from 2D observations, which is particularly challenging for humans with diverse body shapes and appearances and their non-rigid motion.
16
+
17
+ Modern human motion capture techniques typically combine the advantages of discriminative and generative approaches. A feed-forward 3D human pose estimation approach provides a rough initial estimate of human pose. Afterward, a generative approach based on either a high-quality 3D scan of the person [17], or a parametric human body model learned from laser scans [4] refines the estimate iteratively based on the image evidence. Although achieving unprecedented accuracy, existing models require a low-dimensional, restrictive, shape body model or a personalized 3D scan of the user.
18
+
19
+ We introduce Articulated Neural Radiance Fields (A-NeRF) for learning a user-specific neural 3D body model and underlying skeleton pose from unlabelled videos (see Figure 1). When applied to motion capture, it alleviates the need for template models while maintaining the advantages and accuracy of current generative approaches. A-NeRF extends Neural Radiance Fields (NeRF) [39] to work with single videos and articulated motion. NeRF parameterizes the scene implicitly as
20
+
21
+ $$
22
+ F _ { \phi } ( \Gamma ( \mathbf { q } ) , \Gamma ( \mathbf { d } ) ) \mapsto ( \sigma , \mathbf { c } ) , \quad \mathrm { ~ w i t h ~ } \sigma \in \mathbb { R } , \mathbf { c } \in \mathbb { R } ^ { 3 } , \mathbf { q } \in \mathbb { R } ^ { 3 } , \mathrm { ~ a n d ~ } \mathbf { d } \in \mathbb { R } ^ { 3 } ,
23
+ $$
24
+
25
+ by chaining $F _ { \phi }$ , a Multi-layer Perceptron (MLP), with $\Gamma$ , the Positional Encoding (PE) [66]. First, the PE maps the input scene point q and view direction $\mathbf { d }$ to a higher dimensional space that enables the
26
+
27
+ ![](images/1a46586f02de34fa53c421f18f47e2d0004b50edec411cd88126f9b5f48e35dd.jpg)
28
+ Figure 1: Our A-NeRF jointly learns a neural body model of the user and works with diverse body poses (left) while also refining the initial 3D articulated skeleton pose estimate from a single or, if available, multiple views without tedious camera calibration (center). Underlying is a templatefree neural representation (right) and skeleton-based embedding coupled with volume volumetric rendering. Real faces and their reconstructions are blurred in all figures for anonymity.
29
+
30
+ MLP to learn a meaningful scene representation function $F _ { \phi }$ that subsequently outputs the radiance c and opacity $\sigma$ at every point in space. Second, the implicitly described scene (via conditioning on query locations) is rendered via classical ray-marching from computer graphics. The advantage of the MLP representation is that it avoids the complexity of volumetric grids [29], circumvents the artifacts induced by the implicit bias of screen-space convolution [40, 54], and, unlike surface meshes, can have flexible topology. However, the original NeRF only works for static scenes captured from dozens of calibrated cameras such that each 3D point is seen from multiple views.
31
+
32
+ Our conceptual contribution lies in learning a neural latent representation relative to an articulated skeleton. While explicit models such as the popular SMPL body model [30] deform a surface via forwards kinematics, the implicit form of A-NeRF makes us re-think how skeletons can be integrated—implicit networks require the inverse transformation from 3D world coordinates to the reference skeleton, a significantly harder task that has not been fully explored. Our core technical novelty is to come up with and evaluate different parameterizations of $\Gamma ( \mathbf { q } ) , \Gamma ( \mathbf { d } )$ in Eq. 1 to create local coordinates relative to the articulated skeleton. Since a point in 3D world coordinates cannot uniquely be associated with a body part, we resolve the mentioned ill-posed inverse problem by overparameterizing with one embedding per bone. This embeds domain knowledge of how humans move and provides a common frame for the neural network to combine body shape and appearance constraints across the entire captured sequence (see Figure 2).
33
+
34
+ We demonstrate that all our contributions together enable learning of a neural body model from monocular video, requiring only rough 3D pose estimates for initialization, that reaches a level of detail previously only attained with parametric surface models or multi-view approaches [51].
35
+
36
+ Scope. We apply the model to motion capture, character animation, and appearance and motion transfer and demonstrate that the pose refinement improves on existing monocular skeleton reconstruction. We learn in the transductive setting, for a specific target video that is known at training time but has no ground truth. A-NeRF enables novel view synthesis of dynamic motions, with plausible however non-physical illumination. Additional steps are needed to enable relighting applications.
37
+
38
+ General impact. Building a self-supervised approach for personalized human body modelling promises to be more inclusive to people and activities that are not well represented in supervised datasets. However, it bears the risk that 3D models of people are created without consent. We urge users to only use datasets collected for developing and validating motion capture algorithms.
39
+
40
+ # 2 Related Work
41
+
42
+ Our approach builds upon and is related to the following work on human pose and shape estimation, human modeling, and neural scene representations [62].
43
+
44
+ Discriminative Human Pose Estimation. While feed-forward estimation of the 3D joint positions [26, 32, 34, 35, 43, 44, 52, 59, 64, 69, 72] or joint angles and bone lengths [53, 73] of the skeleton is highly accurate, such discriminative estimates are prone to misalignment when overlayed onto the input image due to the generalization gap. The skeleton pose can be refined to better match the 2D pose estimates, but this usually leads to larger errors in 3D [36, 37]. We use [23] for initializing skeleton pose and combine it with a neural body model.
45
+
46
+ Surface-based Generative Body Models. These are obtained by either constraining template meshes via deformation energies [17, 70] or learning parametric human body models from a large collection of laser scans [6, 9, 30]. Their low-dimensional parameters constrain the space of plausible human shapes and motions. This enables real-time reconstructions from single images [7, 15], detailed texturing and displacement mapping [3, 5], and alleviates manual rigging [2]. It also enables optimization within the bounds of the learned prior [11, 16, 25] and weak-supervision when integrated in a differentiable form [27] into neural training processes [4, 20, 23, 42, 45, 65]. Closest to our approach in this category are the model fitting methods by [74] that textures and geometrically refines an untextured parametric quadruped model to zebra images and to [68] that uses optical flow to refine human pose. Although in a similar setting, our surface-free neural body model and volumetric rendering is fundamentally different to their textured triangle mesh that is rigged with forward kinematics and needs to be obtained a-priori.
47
+
48
+ Implicit Body Models. A-NeRF bears close similarities with body models defined implicitly in terms of level-sets [58] and density of a sum of Gaussians [18, 48, 49] that are used for refining human pose, shape, and appearance via differentiable ray-tracing. However, sum of Gaussians and other primitives only provide rough approximations.
49
+
50
+ Neural Scene Representations. Recent neural scene representations learn low-dimensional nonlinear representations of meshes [28, 63], point clouds [1, 38, 67], sphere sets [24], and dense volumetric grids [29, 55]. Their respective geometric output representations enable rendering with classical rendering techniques but have limited expressiveness, e.g., due to the fixed connectivity of a surface mesh and large memory footprint of discretized volumes. This limitation is overcome by using unconstrained MLPs [39] paired with positional encoding [60] to characterize an arbitrary point in 3D space. Common are surface definitions via level-sets of the MLP that are rendered with sphere tracing [56] and density representations rendered with ray-marching [39]. The rendering step is required for maximum likelihood estimation, to define a likelihood over observable variables—real images—while learning a 3D model. The rendering can be learned too [40, 50, 51] but usually leads to inconsistencies, particularly when training data is scarce. Some concurrent works also use neural scene representations for refining camera motion [71], video reenactment [47], and facial models [12, 13]. Orthogonal to these works, our A-NeRF learns an articulated body model from estimated poses and uncalibrated cameras.
51
+
52
+ Closely related to ours is the NASA surface body model [10] that also defines an implicit function as the minimum of individual implicit functions that are rigidly attached to the bones of a skeleton, each conditioned on the entire human pose to model dependencies and learned from 3D scans. By contrast, we learn a volumetric model instead of a surface model and include appearance and rendering. Even more similar is the recent NeuralBody [46] representation, which combines a NeRF with a surface body model and underlying skeleton. By contrast to both approaches, we do not require surface supervision or initialization, condition pose differently, and refine pose, which enables us to learn from single videos in unconstrained environments.
53
+
54
+ # 3 Formulation
55
+
56
+ Objective. Given a sequence $[ \mathbf { I } _ { k } ] _ { k = 1 } ^ { N }$ of N images $\mathbf { I } _ { k } \in \mathbb { R } ^ { H \times W \times 3 }$ stemming from one or several videos of the same person, our goal is to simultaneously estimate the time-varying skeleton poses $[ \theta _ { k } ] _ { k = 1 } ^ { N }$ and learn a detailed body model. Our A-NeRF body model $C _ { \phi }$ is parametrized by neural network parameters $\phi$ that define volumetric shape and color while the skeleton captures motion over time. Figure 2 gives an overview of this generative model. It enables a rendering of the virtual body model in unseen poses and optimizes its parameters $\theta$ and $\phi$ on the image reconstruction objective
57
+
58
+ ![](images/0dd8ad9ad3adccd8b797a7e65d2fc737423d8d9d961ba23092b4e4926956105c.jpg)
59
+ Figure 2: Overview. A-NeRF is a generative model that can be rendered and optimized on a photometric loss $\mathcal { L } ^ { \mathrm { S V } }$ (white). First, the skeleton pose is initialized with an off-the-shelf estimator (orange). Second, this pose is refined via a skeleton-relative embedding (blue) that, when fed to NeRF (green), drives the implicit body model that is rendered by ray-marching (red). A key property of the skeleton-relative embedding is that a single 3D query location maps to an overcomplete reparametrization, with the same point represented relative to each skeleton bone (right).
60
+
61
+ ![](images/c2eb2fdaaaeb577984bf32b25a8c52d647df88f1d3195d6358d2678e7dd03b97.jpg)
62
+ Figure 3: Importance of our skeleton-relative encodings. The original NeRF breaks (a) when training on a diverse set of poses and (b) further degrades when the poses are rotated. Even if (e) conditioned directly on $\theta _ { k }$ , the NeRF still suffers from artifacts due to the complexity and ambiguity of human articulation. With our skeleton-relative encoding (f, g), the geometry for the subject is consistent under rotation, and the quality is greatly improved, with the full model working best.
63
+
64
+ $$
65
+ \mathcal { L } ^ { \mathrm { S V } } ( \theta , \phi ) = \sum _ { k } \underbrace { \| C _ { \phi } ( \theta _ { k } ) - \mathbf { I } _ { k } \| _ { 1 } } _ { \mathrm { d a t a : t e r m } } + \underbrace { \lambda _ { \theta } d ( \theta _ { k } - \hat { \theta } _ { k } ) } _ { \mathrm { p o s e r e g u l a r i z e r } } + \underbrace { \lambda _ { t } \left\| \frac { \partial ^ { 2 } \theta _ { k } } { \partial t ^ { 2 } } \right\| _ { 2 } ^ { 2 } } _ { \mathrm { s m o o t h n e s s ~ p r i o r } } .
66
+ $$
67
+
68
+ with the influence of all three terms balanced by hyperparameters $\lambda _ { t }$ and $\lambda _ { \theta }$ . The data term measures the distance between the images generated by $C _ { \phi }$ and the input image with the L1 distance. The pose regularizer encourages the solution to stay close to an initial pose estimate $\hat { \theta }$ obtained from an offthe-shelf predictor [23], tolerating small shifts up to $\epsilon = 0 . 0 1$ with $d ( \boldsymbol { x } ) = \operatorname* { m i n } ( \left\| \boldsymbol { x } \right\| _ { 2 } ^ { 2 } - \epsilon , 0 )$ . Lastly, the smoothness prior penalizes acceleration ∂2θk∂t2 between poses of consecutive frames. Minimizing Eq. 2 can be seen as maximizing a corresponding probabilistic model, with the quadratic energy terms being the log-likelihoods of Gaussian distributions. Our focus is on formalizing the neural body model. For simplicity, we continue to write equations in terms of the objective functions used during inference with stochastic gradient descent.
69
+
70
+ # 3.1 NeRF and A-NeRF Image Formation Model
71
+
72
+ Instead of modeling the scene as a collection of triangles or other primitives, we define the human implicitly by a neural network as a function (Eq. 1) defined over all possible 3D points and view
73
+
74
+ directions in space [39]. Similar to NeRF, we render the image of the human subject via ray marching
75
+
76
+ $$
77
+ C _ { \phi } ( u , v ; \theta _ { k } ) = \sum _ { i = 1 } ^ { Q } T _ { i } ( 1 - \exp ( - \sigma _ { i } \delta _ { i } ) ) \mathbf { c } _ { i } , \quad T _ { i } = \exp \left( - \sum _ { j = 1 } ^ { i - 1 } \sigma _ { j } \delta _ { j } \right) ,
78
+ $$
79
+
80
+ with $( u , v )$ the 2D pixel location on the image, $i$ the index to 3D query positions $\mathbf { q } _ { i }$ sampled along d and $\delta _ { i }$ the distance to neighboring samples—a constant if samples would be taken at regular intervals. The $T _ { i }$ is the accumulated transmittance for the ray traveling from the near plane to $\mathbf { q } _ { i }$ —the fraction of light reaching the sensor from sample point $i$ . The $\mathbf { c } _ { i }$ is the light color emitted or reflected at $i$ . The final pixel color is the sum over all $Q$ samples, with the last sample taking the special role of the background. The background color is easily inferred as the median pixel color over the entire video for static camera setups. The ray direction $\mathbf { d } = \mathbf { K } _ { k } ^ { - 1 } ( u , v )$ is computed using the estimated camera intrinsics [23]. In the following, we introduce our skeleton parametrization $\theta _ { k }$ and how to use it to effectively model dynamic articulated human motion.
81
+
82
+ # 3.2 Articulated Skeleton Pose Model
83
+
84
+ Our skeleton representation encodes the connectivity and static bone lengths via a rest pose of 3D joint locations. Dynamics are modeled with per-frame skeleton poses $\theta _ { k }$ , which define an affine transformation $T ( \theta _ { k } , m )$ for each bone $m$ . Specifically, $T ( \theta _ { k } , m )$ maps a 3D position $\mathbf { p } _ { k , m } \in \mathbb { R } ^ { 3 }$ in the $m$ -th local bone coordinates to world coordinates $\mathbf { q } \in \mathbb { R } ^ { 3 }$ using homogeneous coordinates,
85
+
86
+ $$
87
+ { \Bigg [ } { \begin{array} { c } { \mathbf { q } } \\ { \mathbf { 1 } } \end{array} } { \Bigg ] } = T ( \theta _ { k } , m ) \left[ { \begin{array} { c } { \mathbf { p } _ { k , m } } \\ { 1 } \end{array} } \right] ,
88
+ $$
89
+
90
+ where subscript $^ { k , m }$ indicates that a variable is related to the $m$ -th joint of image $\mathbf { I } _ { k }$ . Conversely, $T ( \theta _ { k } , m ) ^ { - 1 }$ maps world to local bone coordinates. Note that our skeleton is equivalent to SMPL [30] and others, but without their parametric surface model, and can therefore be initialized with any skeleton pose estimator. We include more details of our skeleton representation in the supplementary.
91
+
92
+ # 3.3 A-NeRF Skeleton-Relative Encoding
93
+
94
+ Our core contribution is to transform the query locations $\mathbf { q }$ and view direction d relative to the skeleton before determining the color and opacity at that transformed point via NeRF. It is a form of reparameterization that explicitly incorporates domain knowledge of how the human body parts are linked and transformed relative to each other. Intuitively, our implicit formulation turns explicit models, such as SMPL [30], on its head. Instead of deforming the output surface via skinning, the query location is mapped in the inverse direction to local bone-relative coordinate systems before processing through the NeRF network. Our final model uses a combined encoding $\dot { \mathbf { e } _ { k } } = [ h ( \tilde { \mathbf { v } } _ { k } ) \Gamma ( \bar { \tilde { \mathbf { v } } } _ { k } ) , \tilde { \mathbf { r } } _ { k } , h ( \tilde { \mathbf { v } } _ { k } ) \Gamma ( \bar { \mathbf { d } } _ { k } ) ]$ as input to the NeRF $F _ { \phi }$ . Note that the skeleton embedding introduces the desired time dependency, denoted by subscript $k$ . The inlet shows our most crucial contribution, the relative distance encoding $\tilde { \mathbf { v } } _ { k }$ followed by PE with Cutoff to reduce the influence of irrelevant bones. We derive the components of our encoding $\mathbf { e } _ { k }$ and the other alternatives below.
95
+
96
+ ![](images/faacd7f0218a007608aa3244fd5f0457a5d1bcc9b52b31fb173fda2fa1d7f54f.jpg)
97
+
98
+ • Reference Pose Encoding One could compensate motion by attaching the query $\mathbf { q }$ in world coordinates at frame $k$ to the closest bone $m$ and transforming it with
99
+
100
+ $$
101
+ \mathbf { a } _ { k } = T ( \theta _ { 0 } , m ) T ^ { - 1 } ( \theta _ { k } , m ) \mathbf { q } .
102
+ $$
103
+
104
+ This puts the query relative to the bone $m$ as in frame $k$ but with the skeleton in rest pose $\theta _ { 0 }$ . NeRF could then learn without change in the 3D space of the rest pose as done before for surfaces [61]. However, this cannot capture non-rigid pose-dependent effects, such as muscle bulging, and has ambiguities when $\mathbf { q }$ is at equal distance to two bones.
105
+
106
+ • Bone-relative Position (Rel. Pos.) To remove these ambiguities and the ill-posed association to a single part, we map q relative to each bone $m$ with,
107
+
108
+ $$
109
+ \tilde { \mathbf { q } } _ { k } = [ \tilde { \mathbf { q } } _ { k , 1 } , \cdots , \tilde { \mathbf { q } } _ { k , 2 4 } ] \mathrm { a n d } \tilde { \mathbf { q } } _ { k , m } = T ^ { - 1 } ( \theta _ { k } , m ) \mathbf { q } .
110
+ $$
111
+
112
+ The resulting individual bone coordinates are well suited to model the overwhelmingly rigid motion of the corresponding body part. Moreover, the overparameterization of position by concatenating all local encodings enables learning when complex interactions are necessary. However, such an embedding for all bones increases the dimensionality by an order of magnitude.
113
+
114
+ • Relative Distance (Rel. Dist.) Much simpler to compute are distances from $\mathbf { q }$ to all bones $m$
115
+
116
+ $$
117
+ \tilde { \mathbf { v } } _ { k } = [ \tilde { \mathbf { v } } _ { k , 1 } , \cdots , \tilde { \mathbf { v } } _ { k , 2 4 } ] , \mathrm { ~ w i t h ~ } \tilde { \mathbf { v } } _ { k , m } = \| \tilde { \mathbf { q } } _ { k , m } \| _ { 2 } \in \mathbb { R } .
118
+ $$
119
+
120
+ This radial encoding is used in our final model in favor of $\tilde { \mathbf { q } }$ because it naturally captures spherically shaped limbs, is lower-dimensional, and thereby improves reconstruction accuracy.
121
+
122
+ • Relative Direction (Rel. Dir.) Since the distance encoding is invariant to direction, we additionally obtain the direction vector to capture the orientation information of $\mathbf { q }$ ,
123
+
124
+ $$
125
+ \tilde { \mathbf { r } } _ { k } = [ \tilde { \mathbf { r } } _ { k , 1 } , \cdots , \tilde { \mathbf { r } } _ { k , 2 4 } ] , \quad \tilde { \mathbf { r } } _ { k , m } = \frac { \tilde { \mathbf { q } } _ { k , m } } { \left\| \tilde { \mathbf { q } } _ { k , m } \right\| _ { 2 } } \in \mathbb { R } ^ { 3 } .
126
+ $$
127
+
128
+ Note that by contrast to all other embeddings, this direction encoding did not profit from subsequent PE. We therefore pass it directly into $\mathbf { e } _ { k }$ .
129
+
130
+ • Relative Ray Direction (Rel. Ray.) NeRF models the illumination effects in a static 3D scene using the position and view direction. By contrast, our goal is to learn a body model that produces plausible colors with dynamic skeleton poses. Therefore, we transform $\mathbf { d }$ to obtain $\tilde { \mathbf { d } }$ , the outgoing ray direction relative to each bone, similar to query position,
131
+
132
+ $$
133
+ \tilde { \mathbf { d } } _ { k } = [ \tilde { \mathbf { d } } _ { k , 1 } , \boldsymbol { \cdot \cdot \cdot } , \tilde { \mathbf { d } } _ { k , 2 4 } ] , \quad \tilde { \mathbf { d } } _ { k , m } = [ T ^ { - 1 } ( \theta _ { k } , m ) ] _ { 3 \times 3 } \mathbf { d } \in \mathbb { R } ^ { 3 } ,
134
+ $$
135
+
136
+ with $[ T ^ { - 1 } ( \theta _ { k } , m ) ] _ { 3 \times 3 }$ the rotational part of the bone-to-world transformation $T ^ { - 1 } ( \theta _ { k } , m )$ . Following concurrent works [33, 46], we also optimize an appearance code for each image to handle dynamic light effects. The combination of $\tilde { \mathbf { d } }$ and the per-image code enables A-NeRF to approximate the light effects in $\mathbf { I } _ { k }$ plausibly. See the supplemental material for detailed discussions on modeling view-dependent effects in our setting.
137
+
138
+ • Cutoff. We desire a local embedding where points should not be influenced by all but only nearby bones. To this end, we introduce a windowed version of positional encoding by multiplying the encoding with respect to bone $m$ by $h ( \tilde { \mathbf { v } } _ { k , m } ) = 1 - S ( \tau ( \tilde { \mathbf { v } } _ { k , m } - t ) )$ , with $S$ the sigmoid step function, $t$ the cutoff point, $\tau$ the sharpness. This leaves queries unaffected by distant bones.
139
+
140
+ Our embedding choice of $\mathbf { e } _ { k } = [ h ( \tilde { \mathbf { v } } _ { k } ) \Gamma ( \tilde { \mathbf { v } } _ { k } ) , \tilde { \mathbf { r } } _ { k } , h ( \tilde { \mathbf { v } } _ { k } ) \Gamma ( \mathbf { d } _ { k } ) ]$ has the advantage of being invariant to the global shift and rotation of the person and preserves the piece-wise rigidity of articulated motion while still allowing for pose-dependent deformation (see Figure 3). In addition to $\mathbf { e } _ { k }$ , we also consider other embedding variants. See the supplementary and Section 4 for a detailed discussion.
141
+
142
+ # 4 Evaluation
143
+
144
+ We performed experiments to validate that A-NeRF learns accurate body models and poses, with fewer assumptions (single view, uncalibrated, and w/o a parametric surface model) than the related works. This makes it applicable to fine-grained pose refinement that improves the estimates of stateof-the-art methods. The supplements provide the implementation details, additional comparisons and ablation studies.
145
+
146
+ Inference and Implementation Details Our A-NeRF model is learned without supervision on a single or multiple videos of the same person. Camera intrinsics, bone lengths for setting $\mathbf { a } _ { m }$ , and pose $\theta _ { k }$ are initialized with [23] for every frame $k$ . These poses are then optimized on objective Eq.2, alongside the generative A-NeRF model. See supplementary for more details.
147
+
148
+ Datasets. We evaluate on the following benchmarks, and additionally on synthetic data created from SURREAL and Mixamo characters, which are listed in the supplement.
149
+
150
+ • Human 3.6M [19] The dataset consists of 5 training and 2 testing subjects (S9/S11) with ground truth 3D joint locations. We follow two widely adopted test protocols denoted as Protocol I [20, 22, 23] and Protocol II [41, 59], in which we evaluate 14/17-joint estimation error on every $5 ^ { t h } / 6 4 ^ { { \bar { t } } h }$ frame of the test videos, respectively. See the supplement for details.
151
+
152
+ • MPI-INF-3DHP [35] This dataset is a standard benchmark for human pose estimation. It consists of 4 indoor and 2 outdoor subjects with challenging human poses. The number of frames per subject range from 276 to 603.
153
+
154
+ • MonoPerfCap [70] The dataset consists of human performance video captured with a monocular camera in both indoor and outdoor settings. We use two subjects, Weipeng_outdoor and Nadia_outdoor, for our qualitative experiments. The two subjects have 1151 and 1635 frames, respectively, for training.
155
+
156
+ Pose Metrics. We report the PA-MPJPE metric, the Euclidean distance between Procrustes-aligned (PA) predictions and ground truth 3D joint position averaged over all frames and joints of the test set. The PA alignment in scale and orientation is essential for comparing approaches that do not assume knowledge of the ground truth calibration and are, hence, ill-posed to the factors that the alignment removes. Following prior work [23, 22, 35], we also report percentange of correct keypoints (PCK) for MPI-INF-3DHP; the percentage of joints that lie within a distance of $1 5 0 \mathrm { m m }$ to the ground truth.
157
+
158
+ Visual Metrics. We quantify the visual quality on MonoPerfCap and Human $3 . 6 \mathbf { M }$ datasets by training on a subset and testing on a held-out test set of the same character. Image quality is quantified via the PSNR and SSIM of the rendering compared with the reference image within the character bounding boxes. Because no ground truth pose is available in the required skeleton format on these datasets, we train our model once on the entire dataset to get reliable skeleton pose estimates as pseudo ground truth, and a second time with a part withheld to learn the body model for visual quality evaluation. Since MonoPerfCap has one sequence per actor, we exclude the last $20 \%$ of each video. For Human 3.6M we exclude entire actions, namely Geeting-1,2, Posing-1,2 and Walking-1,2. The body model is then transferred to the held-out portion by using the pseudo ground truth poses as the driving motion. Thereby, we can still test the generalization of different models to new poses and viewpoints, irrespective of the underlying skeleton model provided in the dataset.
159
+
160
+ ![](images/77235a6a06d5ac66c46a74745fcf55edc869ad3bc1d83569510a8397a6885b1c.jpg)
161
+ Figure 4: Novel view synthesis from all models. All models are trained with SPIN [23] estimated human pose and camera parameters. A-NeRF renderings (ours) align better with the reference images (top row), and the rendered novel views (2nd and 3rd rows) show better details (limbs, facial features).
162
+
163
+ Novel-View-Synthesis and Character Animation. Our body model is generative, which allows us to train on a single or multiple uncalibrated videos and alter viewpoint and human pose. Figure 4 shows renderings of the same persons from a new camera angle; novel-view-synthesis. Likewise, Figure 5 demonstrates character animation, where the view is fixed, and the underlying skeleton is re-posed by manually changing joint angles or by transferring the motion between characters. A-NeRF is the first model that learns a detailed human body model with such capabilities without needing a 3D surface or multi-view supervision. While NeuralBody [46] can also learn photo-realistic human models from monocular images, their model anchors its representation on the SMPL 3D surface. When trained on our single-view setup with the same noisy estimated poses $\hat { \theta }$ as input, NeuralBody suffers from artifacts and less detail when training, as it assumes 3D ground truth, which is only available in controlled conditions. The importance of our joint body and pose optimization is further validated by the ablation with refinement disabled (Ours w/o rf.), which similarly produces ghosting artifacts around extremities.
164
+
165
+ ![](images/a8e5445a54eeaa430908d4d28914b76732bdf3195d9e59a0ce6f40af5d2f1486.jpg)
166
+ Figure 5: Motion retargeting and animation. Top rows: Pose transfer, with the source pose reconstructed by A-NeRF and rendered with different target body models. Last row: Animating the A-NeRF model while keeping the lower or upper part of the body fixed.
167
+
168
+ Table 1: Quantitative evaluation on Human3.6M [19] and MPI-INF-3DHP [35]. Our test-time pose refinement improves consistently upon the SPIN baseline, with largest improvements for extremities (PA-Wrist).
169
+
170
+ <table><tr><td rowspan="2"></td><td colspan="4">Human 3.6M</td><td rowspan="2">MPI-INF-3DHP</td></tr><tr><td>Protocol I</td><td>Protocol II</td><td></td><td>Prot.I Wrist Prot.II Multi-view</td></tr><tr><td>Method</td><td>PA-MPJPE↓</td><td>PA-MPJPE↓</td><td>PA-Wrist↓</td><td>PA-MPJPE↓</td><td>PA-MPJPE↓</td><td>PCK↑</td></tr><tr><td>MotioNet [53]</td><td>54.6</td><td>-</td><td>-</td><td>1</td><td>-</td><td>-</td></tr><tr><td>HoloPose [16]</td><td>46.5</td><td>-</td><td>=</td><td>-</td><td></td><td></td></tr><tr><td>VIBE [22]</td><td>41.4</td><td>n/a</td><td>n/a</td><td>n/a</td><td>64.6</td><td>89.3</td></tr><tr><td>SPIN [23]</td><td> 41.1</td><td>-</td><td>-</td><td>-</td><td>67.5</td><td>76.4</td></tr><tr><td>Baseline (SPIN github [23])</td><td>42.7*</td><td>41.9*</td><td>66.5*</td><td>34.0*</td><td>68.2*</td><td>79.3*</td></tr><tr><td>SPIN-SMPLify+[7, 23]</td><td>57.7</td><td>59.2</td><td>100.9</td><td>=</td><td></td><td>=</td></tr><tr><td> Ours (w/o smoothness prior)</td><td>39.4</td><td>39.6</td><td>57.3</td><td>28.0</td><td>66.9</td><td>80.4</td></tr><tr><td>Ours</td><td> 39.3</td><td>n/a</td><td>n/a</td><td>n/a</td><td>66.8</td><td>80.4</td></tr></table>
171
+
172
+ ? Reevaluation of publicly-available model because missing evaluation protocols or not reproducible. † We refine the SPIN estimated pose using SMPLify. We adopt the implementation from the SPIN repository.
173
+
174
+ Human Pose Estimation. Training A-NeRF includes a form of test-time optimization (see Figure 1, right), only the initialization from [23] is trained supervised on the Human3.6M training set. Table 1 shows that on Human 3.6M, A-NeRF reaches comparable results with other single-view approaches, and achieves a $8 . 0 \%$ improvement in PA-MPJPE upon the baseline used for pose initialization on Protocol I $4 2 . 7 3 9 . 3 $ ) and $5 . 5 \%$ on Protocol II $( 4 1 . 9 3 9 . 6 ) $ ). Note that these are average numbers across all joints, including easy-to-predict hip, shoulder, and head joints. Our largest gains are on the extremities, e.g., with an improvement of $1 4 \%$ $( 9 . 2 \mathrm { m m } )$ for the wrist joint on Protocol II (PA-Wrist). We also compare to applying SMPLify [7], a method that refines 3D poses using 2D joint locations (estimated with [8]) as constraints, at test time. It tends to explain the 2D joint estimates perfectly but degrades the 3D pose. The final pose estimations become less accurate than the initial ones. In contrast, A-NeRF optimizes the poses by implicitly minimizing the disagreement among the 3D body representation in different images, and thus achieves better performance. On MPI-INF-3DHP, Table 1 shows the results averaged over the 6 test subjects from MPI-INF-3DHP. Despite having a low number of frames and human poses available for learning the skeleton-relative encoding, A-NeRF still provides moderate improvements over the baseline estimations.
175
+
176
+ Table 2: Visual quality evaluation on the Human3.6M [19] and MonoPerfCap [70] held-out sets. Our full A-NeRF model significantly improves the visual quality. The body model itself attains a higher quality than NeuralBody (2nd vs. 3rd row), and additional detail is gained with the proposed pose refinement (last row).
177
+
178
+ <table><tr><td rowspan=1 colspan=1>MonoPerfCap Human 3.6M</td></tr><tr><td rowspan=1 colspan=1>PSNR ↑SSIM↑PSNR↑SSIM↑</td></tr><tr><td rowspan=1 colspan=1>NeuralBody, driving motion from [23] 21.80 0.8476 22.08 0.8766</td></tr><tr><td rowspan=1 colspan=1>NeuralBody, driving motion from A-NeRF refinement21.75 0.8468 22.55 0.8782</td></tr><tr><td rowspan=1 colspan=1>A-NeRF w/o pose refinement 21.99 0.8405 23.33 0.8776</td></tr><tr><td rowspan=1 colspan=1>A-NeRF (Our full model) 24.39 0.8851 27.45 0.9277</td></tr></table>
179
+
180
+ ![](images/b90719df2ea1c9f918c0ab07c25b4a45b990fd9512e57715fe9cfa8540593914.jpg)
181
+ Figure 6: Geometry. The isosurface of our density model is rendered from multiple unseen views. A-NeRF learns plausible geometry without using explicit surface templates and accurate initial poses.
182
+
183
+ Video-based volumetric reconstruction. Figure 6 visualizes the learned density using Marching Cubes [31], with voxel grid resolution of 256 and density threshold 10. Despite only learned from monocular videos (no stereo, depth camera, or multi-view constraints) and without using a predefined template model, A-NeRF reconstructs a detailed volumetric body with details that could not be captured by offsets to a parametric surface model, such as the head phones and basebal cap in the last row of Figure 6. Note that no geometric smoothness term is enforced.
184
+
185
+ Multi-view extension. A-NeRF can also leverage multi-view refinement (Table 1, Protocol II Multi-view), even without access to ground truth camera calibration (see supplementary).
186
+
187
+ Visual Quality Comparison. We report the results in Table 2. We compare to NeuralBody with both the initial estimates from [23] and our refined pose since NeuralBody has no refinement step. Compared to both variants, our A-NeRF shows significantly better reconstruction performance on held-out poses. We observe that NeuralBody models can retain the facial features and hands as they anchor their representation on a 3D surface model. However, the rendered limbs and faces are blurry and distorted. Results are similar to training A-NeRF without refinement (see Figure 7). As the estimation for these joints is often inaccurate and noisy, the models without pose refinement simply learn to predict mean pixel values. To conclude, it is important to train with pose refinement, with which A-NeRF suffers less from artifacts with overall better visual quality.
188
+
189
+ ![](images/d42017362181a1cd5719808aa12373f2bfb5f1d1c9e046d24161ffc6a68f3df1.jpg)
190
+ Figure 7: A-NeRF with pose refinement generalizes better to test sequences. We visualize both the rendered images, as well as the photometric error (squared distance, normalized to $[ 0 , 1 ] )$ between the rendered and the ground truth images (warmer color indicates higher error) from our MonoPerfCap (1-2th rows) and Human 3.6M (3-4th rows) held-out sets. NeuralBody models produce artifacts around body contours. A-NeRF w/o refinement cannot reproduce facial features and limbs. With pose refinement, A-NeRF can produce both appearances and shapes more plausibly.
191
+
192
+ Ablation study. Our detailed ablation studies are reported in the supplemental document. In summary, they reveal: i) Embedding relative 3D position, $\tilde { \mathbf { q } } _ { k }$ , instead of our proposed radial embedding $\tilde { \mathbf { v } }$ yields only half as good pose refinements. ii) Our embedding choices keep the dimensionality moderate while improving on or matching the PSNR and SSIM of higher-dimensional variants. iii) For a fixed number of images with accurate poses, learning from a long video with diverse poses has visual quality comparable to learning from multiple shorter clips.
193
+
194
+ Limitations and Failure Cases. Our computation time is the biggest bottleneck in extending A-NeRF to long sequences and multiple actors. Although a single static camera suffices, A-NeRF requires to see the person from all sides in varying poses to learn pose dependencies from data. The inlet shows a rendering of an extreme breakdance pose retargeted to a model trained on normal walking motions. Hence, the source pose is unseen during training and far from the data distribution, which leads to artifacts.
195
+
196
+ ![](images/f72296b8b5fb945fc5a96f6035cb96a97b7e69d3f741535d709a518fede6072e.jpg)
197
+
198
+ # 5 Conclusion
199
+
200
+ We propose a new way for integrating articulated skeleton models and implicit functions via an overcomplete re-parametrization. It includes learning an interpretable 3D representation from 2D images; a personalized volumetric density field with texture detail and time-varying poses of the actor depicted in the input. The underlying ill-posed problem of mapping a single query location to multiple parts is addressed with an overparametrization over nearby parts. To the best of our knowledge, ANeRF is the first approach to define NeRF models for extreme and articulated motion on unconstrained video and this new approach scores high on the Human 3.6M benchmark. Importantly, it works from a single video and naturally extends to multi-view and does not require camera calibration in either scenario. This is an important step towards making motion capture more accurate and practical. In future work, we will learn a general human model from a database of subjects instead of individuals.
201
+
202
+ Funding in direct support of this work: NSERC Discovery grant, UBC Advanced Research Computing (ARC) GPU cluster, Compute Canada GPU servers, and a gift by Facebook Reality Labs.
203
+
204
+ References
205
+ [1] K.-A. Aliev, A. Sevastopolsky, M. Kolos, D. Ulyanov, and V. Lempitsky. Neural point-based graphics. arXiv preprint arXiv:1906.08240, 2019.
206
+ [2] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-moll. Video Based Reconstruction of 3D People Models. In CVPR, 2018.
207
+ [3] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Detailed human avatars from monocular video. In 3DV, pages 98–109. IEEE, 2018.
208
+ [4] T. Alldieck, M. Magnor, B. L. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single rgb camera. In CVPR, pages 1175–1186, 2019.
209
+ [5] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In ICCV, 2019.
210
+ [6] A. O. Balan, L. Sigal, M. J. Black, J. E. Davis, and H. W. Haussecker. Detailed human shape and pose from images. In CVPR, pages 1–8, 2007.
211
+ [7] 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, pages 561–578. Springer, 2016.
212
+ [8] Z. Cao, G. H. Martinez, T. Simon, S.-E. Wei, and Y. A. Sheikh. Openpose: Realtime multiperson 2d pose estimation using part affinity fields. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019.
213
+ [9] V. Choutas, G. Pavlakos, T. Bolkart, D. Tzionas, and M. J. Black. Monocular expressive body regression through body-driven attention. In ECCV, 2020. URL https://expose.is.tue. mpg.de.
214
+ [10] B. Deng, J. Lewis, T. Jeruzalski, G. Pons-Moll, G. Hinton, M. Norouzi, and A. Tagliasacchi. Nasa: neural articulated shape approximation. arXiv preprint arXiv:1912.03207, 2019.
215
+ [11] J. Dong, Q. Shuai, Y. Zhang, X. Liu, X. Zhou, and H. Bao. Motion capture from internet videos. In ECCV, pages 210–227. Springer, 2020.
216
+ [12] G. Gafni, J. Thies, M. Zollhöfer, and M. Nießner. Dynamic neural radiance fields for monocular 4d facial avatar reconstruction. In CVPR, 2021.
217
+ [13] C. Gao, A. Saraf, J. Kopf, and J.-B. Huang. Dynamic view synthesis from dynamic monocular video. In ICCV, 2021.
218
+ [14] I. Goodfellow, J. Pouget-abadie, M. Mirza, B. Xu, D. Warde-farley, S. Ozair, A. Courville, and Y. Bengio. Generative Adversarial Nets. In NeurIPS, pages 2672–2680, 2014.
219
+ [15] P. Guan, A. Weiss, A. O. Bãlan, and M. J. Black. Estimating human shape and pose from a single image. In CVPR, pages 1381–1388, Sep. 2009. doi: 10.1109/ICCV.2009.5459300.
220
+ [16] R. A. Guler and I. Kokkinos. Holopose: Holistic 3d human reconstruction in-the-wild. In CVPR, pages 10884–10894, 2019.
221
+ [17] M. Habermann, W. Xu, , M. Zollhoefer, G. Pons-Moll, and C. Theobalt. Livecap: Real-time human performance capture from monocular video. ACM TOG (Proc. SIGGRAPH), jul 2019.
222
+ [18] Z. Huang, Y. Xu, C. Lassner, H. Li, and T. Tung. ARCH: animatable reconstruction of clothed humans. In CVPR, 2020. doi: 10.1109/CVPR42600.2020.00316. URL https: //doi.org/10.1109/CVPR42600.2020.00316.
223
+ [19] C. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3.6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. PAMI, 36(7):1325–1339, 2014.
224
+ [20] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In CVPR, pages 7122–7131, 2018.
225
+ [21] T. Karras, S. Laine, and T. Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019.
226
+ [22] M. Kocabas, N. Athanasiou, and M. J. Black. Vibe: Video inference for human body pose and shape estimation. In CVPR, 2020.
227
+ [23] N. Kolotouros, G. Pavlakos, M. J. Black, and K. Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In ICCV, 2019.
228
+ [24] C. Lassner and M. Zollhöfer. Pulsar: Efficient sphere-based neural rendering. In CVPR, 2021.
229
+ [25] C. Lassner, J. Romero, M. Kiefel, F. Bogo, M. J. Black, and P. V. Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In CVPR, July 2017.
230
+ [26] S. Li, L. Ke, K. Pratama, Y.-W. Tai, C.-K. Tang, and K.-T. Cheng. Cascaded deep monocular 3d human pose estimation with evolutionary training data. In CVPR, June 2020.
231
+ [27] S. Liu, T. Li, W. Chen, and H. Li. Soft rasterizer: A differentiable renderer for image-based 3d reasoning. In ICCV, pages 7708–7717, 2019.
232
+ [28] S. Lombardi, J. Saragih, T. Simon, and Y. Sheikh. Deep appearance models for face rendering. ACM TOG (Proc. SIGGRAPH), 37(4), July 2018. ISSN 0730-0301. doi: 10.1145/3197517. 3201401. URL https://doi.org/10.1145/3197517.3201401.
233
+ [29] S. Lombardi, T. Simon, J. Saragih, G. Schwartz, A. Lehrmann, and Y. Sheikh. Neural volumes: Learning dynamic renderable volumes from images. ACM TOG (Proc. SIGGRAPH), 38(4), July 2019. ISSN 0730-0301. doi: 10.1145/3306346.3323020. URL https://doi.org/10. 1145/3306346.3323020.
234
+ [30] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. Smpl: A skinned multiperson linear model. ACM TOG (Proc. SIGGRAPH), 34(6):1–16, 2015.
235
+ [31] W. E. Lorensen and H. E. Cline. Marching cubes: A high resolution 3d surface construction algorithm. ACM SIGGRAPH, 1987.
236
+ [32] C. Luo, X. Chu, and A. L. Yuille. Orinet: A fully convolutional network for 3d human pose estimation. In BMVC, page 92, 2018. URL http://bmvc2018.org/contents/papers/ 0289.pdf.
237
+ [33] R. Martin-Brualla, N. Radwan, M. S. M. Sajjadi, J. T. Barron, A. Dosovitskiy, and D. Duckworth. NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections. In CVPR, 2021.
238
+ [34] J. Martinez, R. Hossain, J. Romero, and J. J. Little. A simple yet effective baseline for 3d human pose estimation. In ICCV, 2017.
239
+ [35] D. Mehta, H. Rhodin, D. Casas, P. Fua, O. Sotnychenko, W. Xu, and C. Theobalt. Monocular 3d human pose estimation in the wild using improved cnn supervision. In 3DV. IEEE, 2017. doi: 10.1109/3dv.2017.00064. URL http://gvv.mpi-inf.mpg.de/3dhp_dataset.
240
+ [36] D. Mehta, S. Sridhar, O. Sotnychenko, H. Rhodin, M. Shafiei, H.-P. Seidel, W. Xu, D. Casas, and C. Theobalt. Vnect: Real-time 3d human pose estimation with a single rgb camera. In TOG, volume 36, July 2017. doi: 10.1145/3072959.3073596. URL http://gvv.mpi-inf. mpg.de/projects/VNect/.
241
+ [37] D. Mehta, O. Sotnychenko, F. Mueller, W. Xu, M. Elgharib, P. Fua, H.-P. Seidel, H. Rhodin, G. Pons-Moll, and C. Theobalt. XNect: Real-time multi-person 3D motion capture with a single RGB camera. In ACM TOG (Proc. SIGGRAPH), 2020.
242
+ [38] M. Meshry, D. B. Goldman, S. Khamis, H. Hoppe, R. Pandey, N. Snavely, and R. Martin-Brualla. Neural rerendering in the wild. In CVPR, pages 6878–6887, 2019.
243
+ [39] 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, 2020.
244
+ [40] T. Nguyen-Phuoc, C. Li, L. Theis, C. Richardt, and Y.-L. Yang. Hologan: Unsupervised learning of 3d representations from natural images. In ICCV, pages 7588–7597, 2019.
245
+ [41] A. Nibali, Z. He, S. Morgan, and L. Prendergast. 3d human pose estimation with 2d marginal heatmaps. In WACV, 2019.
246
+ [42] M. Omran, C. Lassner, G. Pons-Moll, P. Gehler, and B. Schiele. Neural body fitting: Unifying deep learning and model based human pose and shape estimation. In 3DV, 2018.
247
+ [43] S. Park, J. Hwang, and N. Kwak. 3d human pose estimation using convolutional neural networks with 2d pose information. In European Conference on Computer Vision (ECCV), pages 156–169, 2016. doi: 10.1007/978-3-319-49409-8\_15. URL https://doi.org/10. 1007/978-3-319-49409-8_15.
248
+ [44] G. Pavlakos, X. Zhou, K. G. Derpanis, and K. Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. Conference on Computer Vision and Pattern Recognition (CVPR), pages 1263–1272, 2017.
249
+ [45] G. Pavlakos, L. Zhu, X. Zhou, and K. Daniilidis. Learning to estimate 3D human pose and shape from a single color image. In CVPR, 2018.
250
+ [46] S. Peng, Y. Zhang, Y. Xu, Q. Wang, Q. Shuai, H. Bao, and X. Zhou. Neural body: Implicit neural representations with structured latent codes for novel view synthesis of dynamic humans. In CVPR, 2021.
251
+ [47] A. Pumarola, E. Corona, G. Pons-Moll, and F. Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In CVPR, 2020.
252
+ [48] H. Rhodin, N. Robertini, C. Richardt, H.-P. Seidel, and C. Theobalt. A versatile scene model with differentiable visibility applied to generative pose estimation. In ICCV, pages 765–773, 2015.
253
+ [49] H. Rhodin, N. Robertini, D. Casas, C. Richardt, H.-P. Seidel, and C. Theobalt. General automatic human shape and motion capture using volumetric contour cues. In ECCV, pages 509–526, 2016.
254
+ [50] H. Rhodin, M. Salzmann, and P. Fua. Unsupervised Geometry-Aware Representation for 3D Human Pose Estimation. In ECCV, 2018.
255
+ [51] H. Rhodin, V. Constantin, I. Katircioglu, M. Salzmann, and P. Fua. Neural scene decomposition for multi-person motion capture. In CVPR, 2019.
256
+ [52] G. Rogez, P. Weinzaepfel, and C. Schmid. LCR-Net: Localization-Classification-Regression for Human Pose. In CVPR, pages 1216–1224, Honolulu, United States, July 2017. IEEE. doi: 10.1109/CVPR.2017.134. URL https://hal.inria.fr/hal-01505085.
257
+ [53] M. Shi, K. Aberman, A. Aristidou, T. Komura, D. Lischinski, D. Cohen-Or, and B. Chen. Motionet: 3d human motion reconstruction from monocular video with skeleton consistency. ACM TOG (Proc. SIGGRAPH), 40(1):1–15, 2020.
258
+ [54] A. Shysheya, E. Zakharov, K.-A. Aliev, R. Bashirov, E. Burkov, K. Iskakov, A. Ivakhnenko, Y. Malkov, I. Pasechnik, D. Ulyanov, et al. Textured neural avatars. In CVPR, pages 2387–2397, 2019.
259
+ [55] V. Sitzmann, J. Thies, F. Heide, M. Nießner, G. Wetzstein, and M. Zollhöfer. Deepvoxels: Learning persistent 3d feature embeddings. In CVPR, 2019.
260
+ [56] V. Sitzmann, M. Zollhöfer, and G. Wetzstein. Scene representation networks: Continuous 3d-structure-aware neural scene representations. In NeurIPS, pages 1121–1132, 2019.
261
+ [57] V. Sitzmann, J. Martel, A. Bergman, D. Lindell, and G. Wetzstein. Implicit neural representations with periodic activation functions. NeurIPS, 33, 2020.
262
+ [58] C. Stoll, N. Hasler, J. Gall, H.-P. Seidel, and C. Theobalt. Fast articulated motion tracking using a sums of Gaussians body model. In ICCV, pages 951–958, 2011.
263
+ [59] X. Sun, J. Shang, S. Liang, and Y. Wei. Compositional human pose regression. In ICCV, pages 2602–2611, 2017.
264
+ [60] M. Tancik, P. P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. T. Barron, and R. Ng. Fourier features let networks learn high frequency functions in low dimensional domains. NeurIPS, 2020.
265
+ [61] J. Taylor, J. Shotton, T. Sharp, and A. Fitzgibbon. The vitruvian manifold: Inferring dense correspondences for one-shot human pose estimation. In CVPR, pages 103–110. IEEE, 2012.
266
+ [62] A. Tewari, O. Fried, J. Thies, V. Sitzmann, S. Lombardi, K. Sunkavalli, R. Martin-Brualla, T. Simon, J. Saragih, M. Nießner, R. Pandey, S. Fanello, G. Wetzstein, J.-Y. Zhu, C. Theobalt, M. Agrawala, E. Shechtman, D. B. Goldman, and M. Zollhöfer. State of the Art on Neural Rendering. Computer Graphics Forum (EG STAR 2020), 2020.
267
+ [63] J. Thies, M. Zollhöfer, and M. Nießner. Deferred neural rendering: Image synthesis using neural textures. ACM TOG (Proc. SIGGRAPH), 2019.
268
+ [64] D. Tome, C. Russell, and L. Agapito. Lifting from the deep: Convolutional 3d pose estimation from a single image. In CVPR, July 2017.
269
+ [65] H.-Y. Tung, H.-W. Tung, E. Yumer, and K. Fragkiadaki. Self-supervised learning of motion capture. In NeurIPS, pages 5242–5252, 2017.
270
+ [66] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In NeurIPS, 2017.
271
+ [67] O. Wiles, G. Gkioxari, R. Szeliski, and J. Johnson. Synsin: End-to-end view synthesis from a single image. In CVPR, pages 7467–7477, 2020.
272
+ [68] D. Xiang, H. Joo, and Y. Sheikh. Monocular total capture: Posing face, body, and hands in the wild. In CVPR, pages 10965–10974, 2019.
273
+ [69] J. Xu, Z. Yu, B. Ni, J. Yang, X. Yang, and W. Zhang. Deep kinematics analysis for monocular 3d human pose estimation. In CVPR, June 2020.
274
+ [70] W. Xu, A. Chatterjee, M. Zollhöfer, H. Rhodin, D. Mehta, H.-P. Seidel, and C. Theobalt. Monoperfcap: Human performance capture from monocular video. TOG, 37(2):27, 2018.
275
+ [71] L. Yen-Chen, P. Florence, J. T. Barron, A. Rodriguez, P. Isola, and T.-Y. Lin. inerf: Inverting neural radiance fields for pose estimation. In IROS, 2020.
276
+ [72] K. Zhou, X. Han, N. Jiang, K. Jia, and J. Lu. Hemlets pose: Learning part-centric heatmap triplets for accurate 3d human pose estimation. In ICCV, pages 2344–2353, 2019.
277
+ [73] X. Zhou, X. Sun, W. Zhang, S. Liang, and Y. Wei. Deep kinematic pose regression. In ECCV Workshop, 2016.
278
+ [74] S. Zuffi, A. Kanazawa, T. Berger-Wolf, and M. J. Black. Three-d safari: Learning to estimate zebra pose, shape, and texture from images "in the wild". In ICCV, pages 5358–5367. IEEE, Oct. 2019.
parse/train/lwwEh0OM61b/lwwEh0OM61b_content_list.json ADDED
@@ -0,0 +1,1108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A-NeRF: Articulated Neural Radiance Fields for Learning Human Shape, Appearance, and Pose ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 207,
8
+ 122,
9
+ 794,
10
+ 174
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Shih-Yang Su1 Frank Yu1 Michael Zollhöfer2 Helge Rhodin1 ",
17
+ "bbox": [
18
+ 236,
19
+ 223,
20
+ 761,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1University of British Columbia ",
28
+ "bbox": [
29
+ 297,
30
+ 253,
31
+ 508,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "2Facebook Reality Labs ",
39
+ "bbox": [
40
+ 544,
41
+ 253,
42
+ 700,
43
+ 268
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 304,
54
+ 535,
55
+ 320
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "While deep learning reshaped the classical motion capture pipeline with feedforward networks, generative models are required to recover fine alignment via iterative refinement. Unfortunately, the existing models are usually hand-crafted or learned in controlled conditions, only applicable to limited domains. We propose a method to learn a generative neural body model from unlabelled monocular videos by extending Neural Radiance Fields (NeRFs). We equip them with a skeleton to apply to time-varying and articulated motion. A key insight is that implicit models require the inverse of the forward kinematics used in explicit surface models. Our reparameterization defines spatial latent variables relative to the pose of body parts and thereby overcomes ill-posed inverse operations with an overparameterization. This enables learning volumetric body shape and appearance from scratch while jointly refining the articulated pose; all without ground truth labels for appearance, pose, or 3D shape on the input videos. When used for novel-view-synthesis and motion capture, our neural model improves accuracy on diverse datasets. Project website: https://lemonatsu.github.io/anerf/. ",
62
+ "bbox": [
63
+ 233,
64
+ 335,
65
+ 766,
66
+ 542
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 566,
77
+ 310,
78
+ 583
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Generative models have evolved from Generative Adversarial Networks (GANs) recreating images [14, 21] to neural scene representations [39, 56, 57] providing control and image understanding for downstream tasks via structured latent variables. However, most 3D models require 3D labels that cannot be crowd-sourced on natural images and require dedicated depth sensors. It is hence an important research problem to learn 3D representations from 2D observations, which is particularly challenging for humans with diverse body shapes and appearances and their non-rigid motion. ",
85
+ "bbox": [
86
+ 174,
87
+ 597,
88
+ 825,
89
+ 681
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Modern human motion capture techniques typically combine the advantages of discriminative and generative approaches. A feed-forward 3D human pose estimation approach provides a rough initial estimate of human pose. Afterward, a generative approach based on either a high-quality 3D scan of the person [17], or a parametric human body model learned from laser scans [4] refines the estimate iteratively based on the image evidence. Although achieving unprecedented accuracy, existing models require a low-dimensional, restrictive, shape body model or a personalized 3D scan of the user. ",
96
+ "bbox": [
97
+ 174,
98
+ 688,
99
+ 825,
100
+ 771
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We introduce Articulated Neural Radiance Fields (A-NeRF) for learning a user-specific neural 3D body model and underlying skeleton pose from unlabelled videos (see Figure 1). When applied to motion capture, it alleviates the need for template models while maintaining the advantages and accuracy of current generative approaches. A-NeRF extends Neural Radiance Fields (NeRF) [39] to work with single videos and articulated motion. NeRF parameterizes the scene implicitly as ",
107
+ "bbox": [
108
+ 174,
109
+ 776,
110
+ 825,
111
+ 847
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "equation",
117
+ "img_path": "images/7de33391d06fded249034edb0b96c308d1b1c44ad2fc22fba8e02b387f71cea2.jpg",
118
+ "text": "$$\nF _ { \\phi } ( \\Gamma ( \\mathbf { q } ) , \\Gamma ( \\mathbf { d } ) ) \\mapsto ( \\sigma , \\mathbf { c } ) , \\quad \\mathrm { ~ w i t h ~ } \\sigma \\in \\mathbb { R } , \\mathbf { c } \\in \\mathbb { R } ^ { 3 } , \\mathbf { q } \\in \\mathbb { R } ^ { 3 } , \\mathrm { ~ a n d ~ } \\mathbf { d } \\in \\mathbb { R } ^ { 3 } ,\n$$",
119
+ "text_format": "latex",
120
+ "bbox": [
121
+ 259,
122
+ 851,
123
+ 735,
124
+ 869
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "by chaining $F _ { \\phi }$ , a Multi-layer Perceptron (MLP), with $\\Gamma$ , the Positional Encoding (PE) [66]. First, the PE maps the input scene point q and view direction $\\mathbf { d }$ to a higher dimensional space that enables the ",
131
+ "bbox": [
132
+ 173,
133
+ 873,
134
+ 828,
135
+ 902
136
+ ],
137
+ "page_idx": 0
138
+ },
139
+ {
140
+ "type": "image",
141
+ "img_path": "images/1a46586f02de34fa53c421f18f47e2d0004b50edec411cd88126f9b5f48e35dd.jpg",
142
+ "image_caption": [
143
+ "Figure 1: Our A-NeRF jointly learns a neural body model of the user and works with diverse body poses (left) while also refining the initial 3D articulated skeleton pose estimate from a single or, if available, multiple views without tedious camera calibration (center). Underlying is a templatefree neural representation (right) and skeleton-based embedding coupled with volume volumetric rendering. Real faces and their reconstructions are blurred in all figures for anonymity. "
144
+ ],
145
+ "image_footnote": [],
146
+ "bbox": [
147
+ 181,
148
+ 89,
149
+ 803,
150
+ 270
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "MLP to learn a meaningful scene representation function $F _ { \\phi }$ that subsequently outputs the radiance c and opacity $\\sigma$ at every point in space. Second, the implicitly described scene (via conditioning on query locations) is rendered via classical ray-marching from computer graphics. The advantage of the MLP representation is that it avoids the complexity of volumetric grids [29], circumvents the artifacts induced by the implicit bias of screen-space convolution [40, 54], and, unlike surface meshes, can have flexible topology. However, the original NeRF only works for static scenes captured from dozens of calibrated cameras such that each 3D point is seen from multiple views. ",
157
+ "bbox": [
158
+ 174,
159
+ 373,
160
+ 825,
161
+ 470
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "Our conceptual contribution lies in learning a neural latent representation relative to an articulated skeleton. While explicit models such as the popular SMPL body model [30] deform a surface via forwards kinematics, the implicit form of A-NeRF makes us re-think how skeletons can be integrated—implicit networks require the inverse transformation from 3D world coordinates to the reference skeleton, a significantly harder task that has not been fully explored. Our core technical novelty is to come up with and evaluate different parameterizations of $\\Gamma ( \\mathbf { q } ) , \\Gamma ( \\mathbf { d } )$ in Eq. 1 to create local coordinates relative to the articulated skeleton. Since a point in 3D world coordinates cannot uniquely be associated with a body part, we resolve the mentioned ill-posed inverse problem by overparameterizing with one embedding per bone. This embeds domain knowledge of how humans move and provides a common frame for the neural network to combine body shape and appearance constraints across the entire captured sequence (see Figure 2). ",
168
+ "bbox": [
169
+ 174,
170
+ 477,
171
+ 825,
172
+ 628
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "We demonstrate that all our contributions together enable learning of a neural body model from monocular video, requiring only rough 3D pose estimates for initialization, that reaches a level of detail previously only attained with parametric surface models or multi-view approaches [51]. ",
179
+ "bbox": [
180
+ 174,
181
+ 635,
182
+ 825,
183
+ 678
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Scope. We apply the model to motion capture, character animation, and appearance and motion transfer and demonstrate that the pose refinement improves on existing monocular skeleton reconstruction. We learn in the transductive setting, for a specific target video that is known at training time but has no ground truth. A-NeRF enables novel view synthesis of dynamic motions, with plausible however non-physical illumination. Additional steps are needed to enable relighting applications. ",
190
+ "bbox": [
191
+ 174,
192
+ 693,
193
+ 825,
194
+ 762
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "General impact. Building a self-supervised approach for personalized human body modelling promises to be more inclusive to people and activities that are not well represented in supervised datasets. However, it bears the risk that 3D models of people are created without consent. We urge users to only use datasets collected for developing and validating motion capture algorithms. ",
201
+ "bbox": [
202
+ 174,
203
+ 776,
204
+ 825,
205
+ 832
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "2 Related Work ",
212
+ "text_level": 1,
213
+ "bbox": [
214
+ 174,
215
+ 852,
216
+ 321,
217
+ 868
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "Our approach builds upon and is related to the following work on human pose and shape estimation, human modeling, and neural scene representations [62]. ",
224
+ "bbox": [
225
+ 174,
226
+ 882,
227
+ 823,
228
+ 911
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "Discriminative Human Pose Estimation. While feed-forward estimation of the 3D joint positions [26, 32, 34, 35, 43, 44, 52, 59, 64, 69, 72] or joint angles and bone lengths [53, 73] of the skeleton is highly accurate, such discriminative estimates are prone to misalignment when overlayed onto the input image due to the generalization gap. The skeleton pose can be refined to better match the 2D pose estimates, but this usually leads to larger errors in 3D [36, 37]. We use [23] for initializing skeleton pose and combine it with a neural body model. ",
235
+ "bbox": [
236
+ 174,
237
+ 90,
238
+ 825,
239
+ 174
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Surface-based Generative Body Models. These are obtained by either constraining template meshes via deformation energies [17, 70] or learning parametric human body models from a large collection of laser scans [6, 9, 30]. Their low-dimensional parameters constrain the space of plausible human shapes and motions. This enables real-time reconstructions from single images [7, 15], detailed texturing and displacement mapping [3, 5], and alleviates manual rigging [2]. It also enables optimization within the bounds of the learned prior [11, 16, 25] and weak-supervision when integrated in a differentiable form [27] into neural training processes [4, 20, 23, 42, 45, 65]. Closest to our approach in this category are the model fitting methods by [74] that textures and geometrically refines an untextured parametric quadruped model to zebra images and to [68] that uses optical flow to refine human pose. Although in a similar setting, our surface-free neural body model and volumetric rendering is fundamentally different to their textured triangle mesh that is rigged with forward kinematics and needs to be obtained a-priori. ",
246
+ "bbox": [
247
+ 174,
248
+ 198,
249
+ 825,
250
+ 363
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Implicit Body Models. A-NeRF bears close similarities with body models defined implicitly in terms of level-sets [58] and density of a sum of Gaussians [18, 48, 49] that are used for refining human pose, shape, and appearance via differentiable ray-tracing. However, sum of Gaussians and other primitives only provide rough approximations. ",
257
+ "bbox": [
258
+ 174,
259
+ 387,
260
+ 825,
261
+ 443
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Neural Scene Representations. Recent neural scene representations learn low-dimensional nonlinear representations of meshes [28, 63], point clouds [1, 38, 67], sphere sets [24], and dense volumetric grids [29, 55]. Their respective geometric output representations enable rendering with classical rendering techniques but have limited expressiveness, e.g., due to the fixed connectivity of a surface mesh and large memory footprint of discretized volumes. This limitation is overcome by using unconstrained MLPs [39] paired with positional encoding [60] to characterize an arbitrary point in 3D space. Common are surface definitions via level-sets of the MLP that are rendered with sphere tracing [56] and density representations rendered with ray-marching [39]. The rendering step is required for maximum likelihood estimation, to define a likelihood over observable variables—real images—while learning a 3D model. The rendering can be learned too [40, 50, 51] but usually leads to inconsistencies, particularly when training data is scarce. Some concurrent works also use neural scene representations for refining camera motion [71], video reenactment [47], and facial models [12, 13]. Orthogonal to these works, our A-NeRF learns an articulated body model from estimated poses and uncalibrated cameras. ",
268
+ "bbox": [
269
+ 174,
270
+ 467,
271
+ 825,
272
+ 660
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "Closely related to ours is the NASA surface body model [10] that also defines an implicit function as the minimum of individual implicit functions that are rigidly attached to the bones of a skeleton, each conditioned on the entire human pose to model dependencies and learned from 3D scans. By contrast, we learn a volumetric model instead of a surface model and include appearance and rendering. Even more similar is the recent NeuralBody [46] representation, which combines a NeRF with a surface body model and underlying skeleton. By contrast to both approaches, we do not require surface supervision or initialization, condition pose differently, and refine pose, which enables us to learn from single videos in unconstrained environments. ",
279
+ "bbox": [
280
+ 174,
281
+ 666,
282
+ 825,
283
+ 777
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "3 Formulation ",
290
+ "text_level": 1,
291
+ "bbox": [
292
+ 174,
293
+ 805,
294
+ 310,
295
+ 821
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "Objective. Given a sequence $[ \\mathbf { I } _ { k } ] _ { k = 1 } ^ { N }$ of N images $\\mathbf { I } _ { k } \\in \\mathbb { R } ^ { H \\times W \\times 3 }$ stemming from one or several videos of the same person, our goal is to simultaneously estimate the time-varying skeleton poses $[ \\theta _ { k } ] _ { k = 1 } ^ { N }$ and learn a detailed body model. Our A-NeRF body model $C _ { \\phi }$ is parametrized by neural network parameters $\\phi$ that define volumetric shape and color while the skeleton captures motion over time. Figure 2 gives an overview of this generative model. It enables a rendering of the virtual body model in unseen poses and optimizes its parameters $\\theta$ and $\\phi$ on the image reconstruction objective ",
302
+ "bbox": [
303
+ 174,
304
+ 840,
305
+ 823,
306
+ 911
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "image",
312
+ "img_path": "images/0dd8ad9ad3adccd8b797a7e65d2fc737423d8d9d961ba23092b4e4926956105c.jpg",
313
+ "image_caption": [
314
+ "Figure 2: Overview. A-NeRF is a generative model that can be rendered and optimized on a photometric loss $\\mathcal { L } ^ { \\mathrm { S V } }$ (white). First, the skeleton pose is initialized with an off-the-shelf estimator (orange). Second, this pose is refined via a skeleton-relative embedding (blue) that, when fed to NeRF (green), drives the implicit body model that is rendered by ray-marching (red). A key property of the skeleton-relative embedding is that a single 3D query location maps to an overcomplete reparametrization, with the same point represented relative to each skeleton bone (right). "
315
+ ],
316
+ "image_footnote": [],
317
+ "bbox": [
318
+ 171,
319
+ 89,
320
+ 807,
321
+ 296
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "image",
327
+ "img_path": "images/c2eb2fdaaaeb577984bf32b25a8c52d647df88f1d3195d6358d2678e7dd03b97.jpg",
328
+ "image_caption": [
329
+ "Figure 3: Importance of our skeleton-relative encodings. The original NeRF breaks (a) when training on a diverse set of poses and (b) further degrades when the poses are rotated. Even if (e) conditioned directly on $\\theta _ { k }$ , the NeRF still suffers from artifacts due to the complexity and ambiguity of human articulation. With our skeleton-relative encoding (f, g), the geometry for the subject is consistent under rotation, and the quality is greatly improved, with the full model working best. "
330
+ ],
331
+ "image_footnote": [],
332
+ "bbox": [
333
+ 189,
334
+ 397,
335
+ 823,
336
+ 508
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "",
343
+ "bbox": [
344
+ 169,
345
+ 614,
346
+ 815,
347
+ 631
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "equation",
353
+ "img_path": "images/484f5aec0392746bd77b7a537089355f9faef4770be1096c51639822981812d3.jpg",
354
+ "text": "$$\n\\mathcal { L } ^ { \\mathrm { S V } } ( \\theta , \\phi ) = \\sum _ { k } \\underbrace { \\| C _ { \\phi } ( \\theta _ { k } ) - \\mathbf { I } _ { k } \\| _ { 1 } } _ { \\mathrm { d a t a : t e r m } } + \\underbrace { \\lambda _ { \\theta } d ( \\theta _ { k } - \\hat { \\theta } _ { k } ) } _ { \\mathrm { p o s e r e g u l a r i z e r } } + \\underbrace { \\lambda _ { t } \\left\\| \\frac { \\partial ^ { 2 } \\theta _ { k } } { \\partial t ^ { 2 } } \\right\\| _ { 2 } ^ { 2 } } _ { \\mathrm { s m o o t h n e s s ~ p r i o r } } .\n$$",
355
+ "text_format": "latex",
356
+ "bbox": [
357
+ 279,
358
+ 638,
359
+ 718,
360
+ 696
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "with the influence of all three terms balanced by hyperparameters $\\lambda _ { t }$ and $\\lambda _ { \\theta }$ . The data term measures the distance between the images generated by $C _ { \\phi }$ and the input image with the L1 distance. The pose regularizer encourages the solution to stay close to an initial pose estimate $\\hat { \\theta }$ obtained from an offthe-shelf predictor [23], tolerating small shifts up to $\\epsilon = 0 . 0 1$ with $d ( \\boldsymbol { x } ) = \\operatorname* { m i n } ( \\left\\| \\boldsymbol { x } \\right\\| _ { 2 } ^ { 2 } - \\epsilon , 0 )$ . Lastly, the smoothness prior penalizes acceleration ∂2θk∂t2 between poses of consecutive frames. Minimizing Eq. 2 can be seen as maximizing a corresponding probabilistic model, with the quadratic energy terms being the log-likelihoods of Gaussian distributions. Our focus is on formalizing the neural body model. For simplicity, we continue to write equations in terms of the objective functions used during inference with stochastic gradient descent. ",
367
+ "bbox": [
368
+ 173,
369
+ 704,
370
+ 826,
371
+ 839
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "3.1 NeRF and A-NeRF Image Formation Model ",
378
+ "text_level": 1,
379
+ "bbox": [
380
+ 174,
381
+ 856,
382
+ 521,
383
+ 872
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Instead of modeling the scene as a collection of triangles or other primitives, we define the human implicitly by a neural network as a function (Eq. 1) defined over all possible 3D points and view ",
390
+ "bbox": [
391
+ 174,
392
+ 882,
393
+ 821,
394
+ 912
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "directions in space [39]. Similar to NeRF, we render the image of the human subject via ray marching ",
401
+ "bbox": [
402
+ 171,
403
+ 90,
404
+ 825,
405
+ 107
406
+ ],
407
+ "page_idx": 4
408
+ },
409
+ {
410
+ "type": "equation",
411
+ "img_path": "images/7509bd3aa6a3da56375d1ae923d8024efe590f5905f40137127df65020c884d2.jpg",
412
+ "text": "$$\nC _ { \\phi } ( u , v ; \\theta _ { k } ) = \\sum _ { i = 1 } ^ { Q } T _ { i } ( 1 - \\exp ( - \\sigma _ { i } \\delta _ { i } ) ) \\mathbf { c } _ { i } , \\quad T _ { i } = \\exp \\left( - \\sum _ { j = 1 } ^ { i - 1 } \\sigma _ { j } \\delta _ { j } \\right) ,\n$$",
413
+ "text_format": "latex",
414
+ "bbox": [
415
+ 261,
416
+ 113,
417
+ 736,
418
+ 162
419
+ ],
420
+ "page_idx": 4
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "with $( u , v )$ the 2D pixel location on the image, $i$ the index to 3D query positions $\\mathbf { q } _ { i }$ sampled along d and $\\delta _ { i }$ the distance to neighboring samples—a constant if samples would be taken at regular intervals. The $T _ { i }$ is the accumulated transmittance for the ray traveling from the near plane to $\\mathbf { q } _ { i }$ —the fraction of light reaching the sensor from sample point $i$ . The $\\mathbf { c } _ { i }$ is the light color emitted or reflected at $i$ . The final pixel color is the sum over all $Q$ samples, with the last sample taking the special role of the background. The background color is easily inferred as the median pixel color over the entire video for static camera setups. The ray direction $\\mathbf { d } = \\mathbf { K } _ { k } ^ { - 1 } ( u , v )$ is computed using the estimated camera intrinsics [23]. In the following, we introduce our skeleton parametrization $\\theta _ { k }$ and how to use it to effectively model dynamic articulated human motion. ",
425
+ "bbox": [
426
+ 173,
427
+ 170,
428
+ 826,
429
+ 296
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "3.2 Articulated Skeleton Pose Model ",
436
+ "text_level": 1,
437
+ "bbox": [
438
+ 176,
439
+ 313,
440
+ 439,
441
+ 328
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Our skeleton representation encodes the connectivity and static bone lengths via a rest pose of 3D joint locations. Dynamics are modeled with per-frame skeleton poses $\\theta _ { k }$ , which define an affine transformation $T ( \\theta _ { k } , m )$ for each bone $m$ . Specifically, $T ( \\theta _ { k } , m )$ maps a 3D position $\\mathbf { p } _ { k , m } \\in \\mathbb { R } ^ { 3 }$ in the $m$ -th local bone coordinates to world coordinates $\\mathbf { q } \\in \\mathbb { R } ^ { 3 }$ using homogeneous coordinates, ",
448
+ "bbox": [
449
+ 173,
450
+ 338,
451
+ 825,
452
+ 396
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "equation",
458
+ "img_path": "images/83322dd3419c63f84144e0827545b3732903f00c03cba9ebc9092a61ff759891.jpg",
459
+ "text": "$$\n{ \\Bigg [ } { \\begin{array} { c } { \\mathbf { q } } \\\\ { \\mathbf { 1 } } \\end{array} } { \\Bigg ] } = T ( \\theta _ { k } , m ) \\left[ { \\begin{array} { c } { \\mathbf { p } _ { k , m } } \\\\ { 1 } \\end{array} } \\right] ,\n$$",
460
+ "text_format": "latex",
461
+ "bbox": [
462
+ 411,
463
+ 404,
464
+ 584,
465
+ 439
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "where subscript $^ { k , m }$ indicates that a variable is related to the $m$ -th joint of image $\\mathbf { I } _ { k }$ . Conversely, $T ( \\theta _ { k } , m ) ^ { - 1 }$ maps world to local bone coordinates. Note that our skeleton is equivalent to SMPL [30] and others, but without their parametric surface model, and can therefore be initialized with any skeleton pose estimator. We include more details of our skeleton representation in the supplementary. ",
472
+ "bbox": [
473
+ 173,
474
+ 444,
475
+ 825,
476
+ 502
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "3.3 A-NeRF Skeleton-Relative Encoding ",
483
+ "text_level": 1,
484
+ "bbox": [
485
+ 176,
486
+ 518,
487
+ 467,
488
+ 534
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "Our core contribution is to transform the query locations $\\mathbf { q }$ and view direction d relative to the skeleton before determining the color and opacity at that transformed point via NeRF. It is a form of reparameterization that explicitly incorporates domain knowledge of how the human body parts are linked and transformed relative to each other. Intuitively, our implicit formulation turns explicit models, such as SMPL [30], on its head. Instead of deforming the output surface via skinning, the query location is mapped in the inverse direction to local bone-relative coordinate systems before processing through the NeRF network. Our final model uses a combined encoding $\\dot { \\mathbf { e } _ { k } } = [ h ( \\tilde { \\mathbf { v } } _ { k } ) \\Gamma ( \\bar { \\tilde { \\mathbf { v } } } _ { k } ) , \\tilde { \\mathbf { r } } _ { k } , h ( \\tilde { \\mathbf { v } } _ { k } ) \\Gamma ( \\bar { \\mathbf { d } } _ { k } ) ]$ as input to the NeRF $F _ { \\phi }$ . Note that the skeleton embedding introduces the desired time dependency, denoted by subscript $k$ . The inlet shows our most crucial contribution, the relative distance encoding $\\tilde { \\mathbf { v } } _ { k }$ followed by PE with Cutoff to reduce the influence of irrelevant bones. We derive the components of our encoding $\\mathbf { e } _ { k }$ and the other alternatives below. ",
495
+ "bbox": [
496
+ 173,
497
+ 545,
498
+ 651,
499
+ 656
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "image",
505
+ "img_path": "images/faacd7f0218a007608aa3244fd5f0457a5d1bcc9b52b31fb173fda2fa1d7f54f.jpg",
506
+ "image_caption": [],
507
+ "image_footnote": [],
508
+ "bbox": [
509
+ 671,
510
+ 547,
511
+ 828,
512
+ 651
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "",
519
+ "bbox": [
520
+ 174,
521
+ 656,
522
+ 825,
523
+ 726
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "• Reference Pose Encoding One could compensate motion by attaching the query $\\mathbf { q }$ in world coordinates at frame $k$ to the closest bone $m$ and transforming it with ",
530
+ "bbox": [
531
+ 192,
532
+ 738,
533
+ 823,
534
+ 766
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "equation",
540
+ "img_path": "images/d15f5daf04ba461ced089f4ace898674837c891887d08c754871018ff1ef7e35.jpg",
541
+ "text": "$$\n\\mathbf { a } _ { k } = T ( \\theta _ { 0 } , m ) T ^ { - 1 } ( \\theta _ { k } , m ) \\mathbf { q } .\n$$",
542
+ "text_format": "latex",
543
+ "bbox": [
544
+ 415,
545
+ 772,
546
+ 614,
547
+ 791
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "This puts the query relative to the bone $m$ as in frame $k$ but with the skeleton in rest pose $\\theta _ { 0 }$ . NeRF could then learn without change in the 3D space of the rest pose as done before for surfaces [61]. However, this cannot capture non-rigid pose-dependent effects, such as muscle bulging, and has ambiguities when $\\mathbf { q }$ is at equal distance to two bones. ",
554
+ "bbox": [
555
+ 202,
556
+ 797,
557
+ 825,
558
+ 854
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "• Bone-relative Position (Rel. Pos.) To remove these ambiguities and the ill-posed association to a single part, we map q relative to each bone $m$ with, ",
565
+ "bbox": [
566
+ 192,
567
+ 859,
568
+ 823,
569
+ 888
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "equation",
575
+ "img_path": "images/96b445eae26554ebac7795a303b6d685f28f694453775681aed2d0762754f4f5.jpg",
576
+ "text": "$$\n\\tilde { \\mathbf { q } } _ { k } = [ \\tilde { \\mathbf { q } } _ { k , 1 } , \\cdots , \\tilde { \\mathbf { q } } _ { k , 2 4 } ] \\mathrm { a n d } \\tilde { \\mathbf { q } } _ { k , m } = T ^ { - 1 } ( \\theta _ { k } , m ) \\mathbf { q } .\n$$",
577
+ "text_format": "latex",
578
+ "bbox": [
579
+ 348,
580
+ 895,
581
+ 681,
582
+ 912
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "The resulting individual bone coordinates are well suited to model the overwhelmingly rigid motion of the corresponding body part. Moreover, the overparameterization of position by concatenating all local encodings enables learning when complex interactions are necessary. However, such an embedding for all bones increases the dimensionality by an order of magnitude. ",
589
+ "bbox": [
590
+ 205,
591
+ 90,
592
+ 825,
593
+ 147
594
+ ],
595
+ "page_idx": 5
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "• Relative Distance (Rel. Dist.) Much simpler to compute are distances from $\\mathbf { q }$ to all bones $m$ ",
600
+ "bbox": [
601
+ 194,
602
+ 151,
603
+ 820,
604
+ 165
605
+ ],
606
+ "page_idx": 5
607
+ },
608
+ {
609
+ "type": "equation",
610
+ "img_path": "images/1ecb04ca702ebf743671353eeef5f45a472e75f0031b096515c5bd70fff48ad0.jpg",
611
+ "text": "$$\n\\tilde { \\mathbf { v } } _ { k } = [ \\tilde { \\mathbf { v } } _ { k , 1 } , \\cdots , \\tilde { \\mathbf { v } } _ { k , 2 4 } ] , \\mathrm { ~ w i t h ~ } \\tilde { \\mathbf { v } } _ { k , m } = \\| \\tilde { \\mathbf { q } } _ { k , m } \\| _ { 2 } \\in \\mathbb { R } .\n$$",
612
+ "text_format": "latex",
613
+ "bbox": [
614
+ 341,
615
+ 170,
616
+ 687,
617
+ 188
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "This radial encoding is used in our final model in favor of $\\tilde { \\mathbf { q } }$ because it naturally captures spherically shaped limbs, is lower-dimensional, and thereby improves reconstruction accuracy. ",
624
+ "bbox": [
625
+ 204,
626
+ 191,
627
+ 821,
628
+ 220
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "• Relative Direction (Rel. Dir.) Since the distance encoding is invariant to direction, we additionally obtain the direction vector to capture the orientation information of $\\mathbf { q }$ , ",
635
+ "bbox": [
636
+ 196,
637
+ 223,
638
+ 825,
639
+ 252
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "equation",
645
+ "img_path": "images/317902f589d867344ecf1aca193dbf13b6686b7217911622c5a30a45ed43ae54.jpg",
646
+ "text": "$$\n\\tilde { \\mathbf { r } } _ { k } = [ \\tilde { \\mathbf { r } } _ { k , 1 } , \\cdots , \\tilde { \\mathbf { r } } _ { k , 2 4 } ] , \\quad \\tilde { \\mathbf { r } } _ { k , m } = \\frac { \\tilde { \\mathbf { q } } _ { k , m } } { \\left\\| \\tilde { \\mathbf { q } } _ { k , m } \\right\\| _ { 2 } } \\in \\mathbb { R } ^ { 3 } .\n$$",
647
+ "text_format": "latex",
648
+ "bbox": [
649
+ 349,
650
+ 256,
651
+ 679,
652
+ 291
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Note that by contrast to all other embeddings, this direction encoding did not profit from subsequent PE. We therefore pass it directly into $\\mathbf { e } _ { k }$ . ",
659
+ "bbox": [
660
+ 204,
661
+ 295,
662
+ 823,
663
+ 324
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "• Relative Ray Direction (Rel. Ray.) NeRF models the illumination effects in a static 3D scene using the position and view direction. By contrast, our goal is to learn a body model that produces plausible colors with dynamic skeleton poses. Therefore, we transform $\\mathbf { d }$ to obtain $\\tilde { \\mathbf { d } }$ , the outgoing ray direction relative to each bone, similar to query position, ",
670
+ "bbox": [
671
+ 192,
672
+ 327,
673
+ 825,
674
+ 385
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "equation",
680
+ "img_path": "images/563e484cc82fb5fb68e21d168cda52277502cbb74416ae62dbe1d65abd860d72.jpg",
681
+ "text": "$$\n\\tilde { \\mathbf { d } } _ { k } = [ \\tilde { \\mathbf { d } } _ { k , 1 } , \\boldsymbol { \\cdot \\cdot \\cdot } , \\tilde { \\mathbf { d } } _ { k , 2 4 } ] , \\quad \\tilde { \\mathbf { d } } _ { k , m } = [ T ^ { - 1 } ( \\theta _ { k } , m ) ] _ { 3 \\times 3 } \\mathbf { d } \\in \\mathbb { R } ^ { 3 } ,\n$$",
682
+ "text_format": "latex",
683
+ "bbox": [
684
+ 313,
685
+ 388,
686
+ 715,
687
+ 409
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "with $[ T ^ { - 1 } ( \\theta _ { k } , m ) ] _ { 3 \\times 3 }$ the rotational part of the bone-to-world transformation $T ^ { - 1 } ( \\theta _ { k } , m )$ . Following concurrent works [33, 46], we also optimize an appearance code for each image to handle dynamic light effects. The combination of $\\tilde { \\mathbf { d } }$ and the per-image code enables A-NeRF to approximate the light effects in $\\mathbf { I } _ { k }$ plausibly. See the supplemental material for detailed discussions on modeling view-dependent effects in our setting. ",
694
+ "bbox": [
695
+ 202,
696
+ 414,
697
+ 825,
698
+ 486
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "• Cutoff. We desire a local embedding where points should not be influenced by all but only nearby bones. To this end, we introduce a windowed version of positional encoding by multiplying the encoding with respect to bone $m$ by $h ( \\tilde { \\mathbf { v } } _ { k , m } ) = 1 - S ( \\tau ( \\tilde { \\mathbf { v } } _ { k , m } - t ) )$ , with $S$ the sigmoid step function, $t$ the cutoff point, $\\tau$ the sharpness. This leaves queries unaffected by distant bones. ",
705
+ "bbox": [
706
+ 191,
707
+ 489,
708
+ 825,
709
+ 546
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Our embedding choice of $\\mathbf { e } _ { k } = [ h ( \\tilde { \\mathbf { v } } _ { k } ) \\Gamma ( \\tilde { \\mathbf { v } } _ { k } ) , \\tilde { \\mathbf { r } } _ { k } , h ( \\tilde { \\mathbf { v } } _ { k } ) \\Gamma ( \\mathbf { d } _ { k } ) ]$ has the advantage of being invariant to the global shift and rotation of the person and preserves the piece-wise rigidity of articulated motion while still allowing for pose-dependent deformation (see Figure 3). In addition to $\\mathbf { e } _ { k }$ , we also consider other embedding variants. See the supplementary and Section 4 for a detailed discussion. ",
716
+ "bbox": [
717
+ 176,
718
+ 556,
719
+ 825,
720
+ 613
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "4 Evaluation ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 174,
730
+ 632,
731
+ 297,
732
+ 648
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "We performed experiments to validate that A-NeRF learns accurate body models and poses, with fewer assumptions (single view, uncalibrated, and w/o a parametric surface model) than the related works. This makes it applicable to fine-grained pose refinement that improves the estimates of stateof-the-art methods. The supplements provide the implementation details, additional comparisons and ablation studies. ",
739
+ "bbox": [
740
+ 174,
741
+ 662,
742
+ 825,
743
+ 732
744
+ ],
745
+ "page_idx": 5
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "Inference and Implementation Details Our A-NeRF model is learned without supervision on a single or multiple videos of the same person. Camera intrinsics, bone lengths for setting $\\mathbf { a } _ { m }$ , and pose $\\theta _ { k }$ are initialized with [23] for every frame $k$ . These poses are then optimized on objective Eq.2, alongside the generative A-NeRF model. See supplementary for more details. ",
750
+ "bbox": [
751
+ 174,
752
+ 746,
753
+ 825,
754
+ 803
755
+ ],
756
+ "page_idx": 5
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Datasets. We evaluate on the following benchmarks, and additionally on synthetic data created from SURREAL and Mixamo characters, which are listed in the supplement. ",
761
+ "bbox": [
762
+ 174,
763
+ 816,
764
+ 823,
765
+ 844
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "• Human 3.6M [19] The dataset consists of 5 training and 2 testing subjects (S9/S11) with ground truth 3D joint locations. We follow two widely adopted test protocols denoted as Protocol I [20, 22, 23] and Protocol II [41, 59], in which we evaluate 14/17-joint estimation error on every $5 ^ { t h } / 6 4 ^ { { \\bar { t } } h }$ frame of the test videos, respectively. See the supplement for details. ",
772
+ "bbox": [
773
+ 191,
774
+ 854,
775
+ 823,
776
+ 911
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "• MPI-INF-3DHP [35] This dataset is a standard benchmark for human pose estimation. It consists of 4 indoor and 2 outdoor subjects with challenging human poses. The number of frames per subject range from 276 to 603. ",
783
+ "bbox": [
784
+ 192,
785
+ 90,
786
+ 825,
787
+ 132
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "• MonoPerfCap [70] The dataset consists of human performance video captured with a monocular camera in both indoor and outdoor settings. We use two subjects, Weipeng_outdoor and Nadia_outdoor, for our qualitative experiments. The two subjects have 1151 and 1635 frames, respectively, for training. ",
794
+ "bbox": [
795
+ 192,
796
+ 137,
797
+ 825,
798
+ 193
799
+ ],
800
+ "page_idx": 6
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Pose Metrics. We report the PA-MPJPE metric, the Euclidean distance between Procrustes-aligned (PA) predictions and ground truth 3D joint position averaged over all frames and joints of the test set. The PA alignment in scale and orientation is essential for comparing approaches that do not assume knowledge of the ground truth calibration and are, hence, ill-posed to the factors that the alignment removes. Following prior work [23, 22, 35], we also report percentange of correct keypoints (PCK) for MPI-INF-3DHP; the percentage of joints that lie within a distance of $1 5 0 \\mathrm { m m }$ to the ground truth. ",
805
+ "bbox": [
806
+ 173,
807
+ 207,
808
+ 825,
809
+ 291
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Visual Metrics. We quantify the visual quality on MonoPerfCap and Human $3 . 6 \\mathbf { M }$ datasets by training on a subset and testing on a held-out test set of the same character. Image quality is quantified via the PSNR and SSIM of the rendering compared with the reference image within the character bounding boxes. Because no ground truth pose is available in the required skeleton format on these datasets, we train our model once on the entire dataset to get reliable skeleton pose estimates as pseudo ground truth, and a second time with a part withheld to learn the body model for visual quality evaluation. Since MonoPerfCap has one sequence per actor, we exclude the last $20 \\%$ of each video. For Human 3.6M we exclude entire actions, namely Geeting-1,2, Posing-1,2 and Walking-1,2. The body model is then transferred to the held-out portion by using the pseudo ground truth poses as the driving motion. Thereby, we can still test the generalization of different models to new poses and viewpoints, irrespective of the underlying skeleton model provided in the dataset. ",
816
+ "bbox": [
817
+ 173,
818
+ 304,
819
+ 825,
820
+ 457
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "image",
826
+ "img_path": "images/77235a6a06d5ac66c46a74745fcf55edc869ad3bc1d83569510a8397a6885b1c.jpg",
827
+ "image_caption": [
828
+ "Figure 4: Novel view synthesis from all models. All models are trained with SPIN [23] estimated human pose and camera parameters. A-NeRF renderings (ours) align better with the reference images (top row), and the rendered novel views (2nd and 3rd rows) show better details (limbs, facial features). "
829
+ ],
830
+ "image_footnote": [],
831
+ "bbox": [
832
+ 174,
833
+ 469,
834
+ 818,
835
+ 729
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "Novel-View-Synthesis and Character Animation. Our body model is generative, which allows us to train on a single or multiple uncalibrated videos and alter viewpoint and human pose. Figure 4 shows renderings of the same persons from a new camera angle; novel-view-synthesis. Likewise, Figure 5 demonstrates character animation, where the view is fixed, and the underlying skeleton is re-posed by manually changing joint angles or by transferring the motion between characters. A-NeRF is the first model that learns a detailed human body model with such capabilities without needing a 3D surface or multi-view supervision. While NeuralBody [46] can also learn photo-realistic human models from monocular images, their model anchors its representation on the SMPL 3D surface. When trained on our single-view setup with the same noisy estimated poses $\\hat { \\theta }$ as input, NeuralBody suffers from artifacts and less detail when training, as it assumes 3D ground truth, which is only available in controlled conditions. The importance of our joint body and pose optimization is further validated by the ablation with refinement disabled (Ours w/o rf.), which similarly produces ghosting artifacts around extremities. ",
842
+ "bbox": [
843
+ 173,
844
+ 800,
845
+ 825,
846
+ 911
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "image",
852
+ "img_path": "images/a8e5445a54eeaa430908d4d28914b76732bdf3195d9e59a0ce6f40af5d2f1486.jpg",
853
+ "image_caption": [
854
+ "Figure 5: Motion retargeting and animation. Top rows: Pose transfer, with the source pose reconstructed by A-NeRF and rendered with different target body models. Last row: Animating the A-NeRF model while keeping the lower or upper part of the body fixed. "
855
+ ],
856
+ "image_footnote": [],
857
+ "bbox": [
858
+ 178,
859
+ 88,
860
+ 820,
861
+ 362
862
+ ],
863
+ "page_idx": 7
864
+ },
865
+ {
866
+ "type": "table",
867
+ "img_path": "images/0f25cc8231101a3c02e97a7449386b3b091c50925f26c55313d8a0c9a115047e.jpg",
868
+ "table_caption": [
869
+ "Table 1: Quantitative evaluation on Human3.6M [19] and MPI-INF-3DHP [35]. Our test-time pose refinement improves consistently upon the SPIN baseline, with largest improvements for extremities (PA-Wrist). "
870
+ ],
871
+ "table_footnote": [
872
+ "? Reevaluation of publicly-available model because missing evaluation protocols or not reproducible. † We refine the SPIN estimated pose using SMPLify. We adopt the implementation from the SPIN repository. "
873
+ ],
874
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"4\">Human 3.6M</td><td rowspan=\"2\">MPI-INF-3DHP</td></tr><tr><td>Protocol I</td><td>Protocol II</td><td></td><td>Prot.I Wrist Prot.II Multi-view</td></tr><tr><td>Method</td><td>PA-MPJPE↓</td><td>PA-MPJPE↓</td><td>PA-Wrist↓</td><td>PA-MPJPE↓</td><td>PA-MPJPE↓</td><td>PCK↑</td></tr><tr><td>MotioNet [53]</td><td>54.6</td><td>-</td><td>-</td><td>1</td><td>-</td><td>-</td></tr><tr><td>HoloPose [16]</td><td>46.5</td><td>-</td><td>=</td><td>-</td><td></td><td></td></tr><tr><td>VIBE [22]</td><td>41.4</td><td>n/a</td><td>n/a</td><td>n/a</td><td>64.6</td><td>89.3</td></tr><tr><td>SPIN [23]</td><td> 41.1</td><td>-</td><td>-</td><td>-</td><td>67.5</td><td>76.4</td></tr><tr><td>Baseline (SPIN github [23])</td><td>42.7*</td><td>41.9*</td><td>66.5*</td><td>34.0*</td><td>68.2*</td><td>79.3*</td></tr><tr><td>SPIN-SMPLify+[7, 23]</td><td>57.7</td><td>59.2</td><td>100.9</td><td>=</td><td></td><td>=</td></tr><tr><td> Ours (w/o smoothness prior)</td><td>39.4</td><td>39.6</td><td>57.3</td><td>28.0</td><td>66.9</td><td>80.4</td></tr><tr><td>Ours</td><td> 39.3</td><td>n/a</td><td>n/a</td><td>n/a</td><td>66.8</td><td>80.4</td></tr></table>",
875
+ "bbox": [
876
+ 181,
877
+ 477,
878
+ 816,
879
+ 626
880
+ ],
881
+ "page_idx": 7
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "",
886
+ "bbox": [
887
+ 174,
888
+ 675,
889
+ 825,
890
+ 744
891
+ ],
892
+ "page_idx": 7
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Human Pose Estimation. Training A-NeRF includes a form of test-time optimization (see Figure 1, right), only the initialization from [23] is trained supervised on the Human3.6M training set. Table 1 shows that on Human 3.6M, A-NeRF reaches comparable results with other single-view approaches, and achieves a $8 . 0 \\%$ improvement in PA-MPJPE upon the baseline used for pose initialization on Protocol I $4 2 . 7 3 9 . 3 $ ) and $5 . 5 \\%$ on Protocol II $( 4 1 . 9 3 9 . 6 ) $ ). Note that these are average numbers across all joints, including easy-to-predict hip, shoulder, and head joints. Our largest gains are on the extremities, e.g., with an improvement of $1 4 \\%$ $( 9 . 2 \\mathrm { m m } )$ for the wrist joint on Protocol II (PA-Wrist). We also compare to applying SMPLify [7], a method that refines 3D poses using 2D joint locations (estimated with [8]) as constraints, at test time. It tends to explain the 2D joint estimates perfectly but degrades the 3D pose. The final pose estimations become less accurate than the initial ones. In contrast, A-NeRF optimizes the poses by implicitly minimizing the disagreement among the 3D body representation in different images, and thus achieves better performance. On MPI-INF-3DHP, Table 1 shows the results averaged over the 6 test subjects from MPI-INF-3DHP. Despite having a low number of frames and human poses available for learning the skeleton-relative encoding, A-NeRF still provides moderate improvements over the baseline estimations. ",
897
+ "bbox": [
898
+ 174,
899
+ 758,
900
+ 825,
901
+ 911
902
+ ],
903
+ "page_idx": 7
904
+ },
905
+ {
906
+ "type": "table",
907
+ "img_path": "images/0d02bdfe56d33b0f028250f8449450cf2225aefc483132798493c61b6a4f8d61.jpg",
908
+ "table_caption": [
909
+ "Table 2: Visual quality evaluation on the Human3.6M [19] and MonoPerfCap [70] held-out sets. Our full A-NeRF model significantly improves the visual quality. The body model itself attains a higher quality than NeuralBody (2nd vs. 3rd row), and additional detail is gained with the proposed pose refinement (last row). "
910
+ ],
911
+ "table_footnote": [],
912
+ "table_body": "<table><tr><td rowspan=1 colspan=1>MonoPerfCap Human 3.6M</td></tr><tr><td rowspan=1 colspan=1>PSNR ↑SSIM↑PSNR↑SSIM↑</td></tr><tr><td rowspan=1 colspan=1>NeuralBody, driving motion from [23] 21.80 0.8476 22.08 0.8766</td></tr><tr><td rowspan=1 colspan=1>NeuralBody, driving motion from A-NeRF refinement21.75 0.8468 22.55 0.8782</td></tr><tr><td rowspan=1 colspan=1>A-NeRF w/o pose refinement 21.99 0.8405 23.33 0.8776</td></tr><tr><td rowspan=1 colspan=1>A-NeRF (Our full model) 24.39 0.8851 27.45 0.9277</td></tr></table>",
913
+ "bbox": [
914
+ 236,
915
+ 154,
916
+ 763,
917
+ 243
918
+ ],
919
+ "page_idx": 8
920
+ },
921
+ {
922
+ "type": "image",
923
+ "img_path": "images/b90719df2ea1c9f918c0ab07c25b4a45b990fd9512e57715fe9cfa8540593914.jpg",
924
+ "image_caption": [
925
+ "Figure 6: Geometry. The isosurface of our density model is rendered from multiple unseen views. A-NeRF learns plausible geometry without using explicit surface templates and accurate initial poses. "
926
+ ],
927
+ "image_footnote": [],
928
+ "bbox": [
929
+ 178,
930
+ 263,
931
+ 812,
932
+ 497
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "",
939
+ "bbox": [
940
+ 174,
941
+ 563,
942
+ 825,
943
+ 618
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Video-based volumetric reconstruction. Figure 6 visualizes the learned density using Marching Cubes [31], with voxel grid resolution of 256 and density threshold 10. Despite only learned from monocular videos (no stereo, depth camera, or multi-view constraints) and without using a predefined template model, A-NeRF reconstructs a detailed volumetric body with details that could not be captured by offsets to a parametric surface model, such as the head phones and basebal cap in the last row of Figure 6. Note that no geometric smoothness term is enforced. ",
950
+ "bbox": [
951
+ 174,
952
+ 637,
953
+ 825,
954
+ 720
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Multi-view extension. A-NeRF can also leverage multi-view refinement (Table 1, Protocol II Multi-view), even without access to ground truth camera calibration (see supplementary). ",
961
+ "bbox": [
962
+ 176,
963
+ 739,
964
+ 823,
965
+ 768
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Visual Quality Comparison. We report the results in Table 2. We compare to NeuralBody with both the initial estimates from [23] and our refined pose since NeuralBody has no refinement step. Compared to both variants, our A-NeRF shows significantly better reconstruction performance on held-out poses. We observe that NeuralBody models can retain the facial features and hands as they anchor their representation on a 3D surface model. However, the rendered limbs and faces are blurry and distorted. Results are similar to training A-NeRF without refinement (see Figure 7). As the estimation for these joints is often inaccurate and noisy, the models without pose refinement simply learn to predict mean pixel values. To conclude, it is important to train with pose refinement, with which A-NeRF suffers less from artifacts with overall better visual quality. ",
972
+ "bbox": [
973
+ 174,
974
+ 786,
975
+ 825,
976
+ 911
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "image",
982
+ "img_path": "images/d42017362181a1cd5719808aa12373f2bfb5f1d1c9e046d24161ffc6a68f3df1.jpg",
983
+ "image_caption": [
984
+ "Figure 7: A-NeRF with pose refinement generalizes better to test sequences. We visualize both the rendered images, as well as the photometric error (squared distance, normalized to $[ 0 , 1 ] )$ between the rendered and the ground truth images (warmer color indicates higher error) from our MonoPerfCap (1-2th rows) and Human 3.6M (3-4th rows) held-out sets. NeuralBody models produce artifacts around body contours. A-NeRF w/o refinement cannot reproduce facial features and limbs. With pose refinement, A-NeRF can produce both appearances and shapes more plausibly. "
985
+ ],
986
+ "image_footnote": [],
987
+ "bbox": [
988
+ 217,
989
+ 92,
990
+ 795,
991
+ 404
992
+ ],
993
+ "page_idx": 9
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Ablation study. Our detailed ablation studies are reported in the supplemental document. In summary, they reveal: i) Embedding relative 3D position, $\\tilde { \\mathbf { q } } _ { k }$ , instead of our proposed radial embedding $\\tilde { \\mathbf { v } }$ yields only half as good pose refinements. ii) Our embedding choices keep the dimensionality moderate while improving on or matching the PSNR and SSIM of higher-dimensional variants. iii) For a fixed number of images with accurate poses, learning from a long video with diverse poses has visual quality comparable to learning from multiple shorter clips. ",
998
+ "bbox": [
999
+ 174,
1000
+ 522,
1001
+ 826,
1002
+ 606
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Limitations and Failure Cases. Our computation time is the biggest bottleneck in extending A-NeRF to long sequences and multiple actors. Although a single static camera suffices, A-NeRF requires to see the person from all sides in varying poses to learn pose dependencies from data. The inlet shows a rendering of an extreme breakdance pose retargeted to a model trained on normal walking motions. Hence, the source pose is unseen during training and far from the data distribution, which leads to artifacts. ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 622,
1012
+ 679,
1013
+ 719
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "image",
1019
+ "img_path": "images/f72296b8b5fb945fc5a96f6035cb96a97b7e69d3f741535d709a518fede6072e.jpg",
1020
+ "image_caption": [],
1021
+ "image_footnote": [],
1022
+ "bbox": [
1023
+ 694,
1024
+ 622,
1025
+ 823,
1026
+ 713
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "5 Conclusion ",
1033
+ "text_level": 1,
1034
+ "bbox": [
1035
+ 174,
1036
+ 741,
1037
+ 299,
1038
+ 757
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "We propose a new way for integrating articulated skeleton models and implicit functions via an overcomplete re-parametrization. It includes learning an interpretable 3D representation from 2D images; a personalized volumetric density field with texture detail and time-varying poses of the actor depicted in the input. The underlying ill-posed problem of mapping a single query location to multiple parts is addressed with an overparametrization over nearby parts. To the best of our knowledge, ANeRF is the first approach to define NeRF models for extreme and articulated motion on unconstrained video and this new approach scores high on the Human 3.6M benchmark. Importantly, it works from a single video and naturally extends to multi-view and does not require camera calibration in either scenario. This is an important step towards making motion capture more accurate and practical. In future work, we will learn a general human model from a database of subjects instead of individuals. ",
1045
+ "bbox": [
1046
+ 174,
1047
+ 772,
1048
+ 825,
1049
+ 911
1050
+ ],
1051
+ "page_idx": 9
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Funding in direct support of this work: NSERC Discovery grant, UBC Advanced Research Computing (ARC) GPU cluster, Compute Canada GPU servers, and a gift by Facebook Reality Labs. ",
1056
+ "bbox": [
1057
+ 173,
1058
+ 90,
1059
+ 825,
1060
+ 119
1061
+ ],
1062
+ "page_idx": 10
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "References \n[1] K.-A. Aliev, A. Sevastopolsky, M. Kolos, D. Ulyanov, and V. Lempitsky. Neural point-based graphics. arXiv preprint arXiv:1906.08240, 2019. \n[2] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-moll. Video Based Reconstruction of 3D People Models. In CVPR, 2018. \n[3] T. Alldieck, M. Magnor, W. Xu, C. Theobalt, and G. Pons-Moll. Detailed human avatars from monocular video. In 3DV, pages 98–109. IEEE, 2018. \n[4] T. Alldieck, M. Magnor, B. L. Bhatnagar, C. Theobalt, and G. Pons-Moll. Learning to reconstruct people in clothing from a single rgb camera. In CVPR, pages 1175–1186, 2019. \n[5] T. Alldieck, G. Pons-Moll, C. Theobalt, and M. Magnor. Tex2shape: Detailed full human body geometry from a single image. In ICCV, 2019. \n[6] A. O. Balan, L. Sigal, M. J. Black, J. E. Davis, and H. W. Haussecker. Detailed human shape and pose from images. In CVPR, pages 1–8, 2007. \n[7] 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, pages 561–578. Springer, 2016. \n[8] Z. Cao, G. H. Martinez, T. Simon, S.-E. Wei, and Y. A. Sheikh. Openpose: Realtime multiperson 2d pose estimation using part affinity fields. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2019. \n[9] V. Choutas, G. Pavlakos, T. Bolkart, D. Tzionas, and M. J. Black. Monocular expressive body regression through body-driven attention. In ECCV, 2020. URL https://expose.is.tue. mpg.de. \n[10] B. Deng, J. Lewis, T. Jeruzalski, G. Pons-Moll, G. Hinton, M. Norouzi, and A. Tagliasacchi. Nasa: neural articulated shape approximation. arXiv preprint arXiv:1912.03207, 2019. \n[11] J. Dong, Q. Shuai, Y. Zhang, X. Liu, X. Zhou, and H. Bao. Motion capture from internet videos. In ECCV, pages 210–227. Springer, 2020. \n[12] G. Gafni, J. Thies, M. Zollhöfer, and M. Nießner. Dynamic neural radiance fields for monocular 4d facial avatar reconstruction. In CVPR, 2021. \n[13] C. Gao, A. Saraf, J. Kopf, and J.-B. Huang. Dynamic view synthesis from dynamic monocular video. In ICCV, 2021. \n[14] I. Goodfellow, J. Pouget-abadie, M. Mirza, B. Xu, D. Warde-farley, S. Ozair, A. Courville, and Y. Bengio. Generative Adversarial Nets. In NeurIPS, pages 2672–2680, 2014. \n[15] P. Guan, A. Weiss, A. O. Bãlan, and M. J. Black. Estimating human shape and pose from a single image. In CVPR, pages 1381–1388, Sep. 2009. doi: 10.1109/ICCV.2009.5459300. \n[16] R. A. Guler and I. Kokkinos. Holopose: Holistic 3d human reconstruction in-the-wild. In CVPR, pages 10884–10894, 2019. \n[17] M. Habermann, W. Xu, , M. Zollhoefer, G. Pons-Moll, and C. Theobalt. Livecap: Real-time human performance capture from monocular video. ACM TOG (Proc. SIGGRAPH), jul 2019. \n[18] Z. Huang, Y. Xu, C. Lassner, H. Li, and T. Tung. ARCH: animatable reconstruction of clothed humans. In CVPR, 2020. doi: 10.1109/CVPR42600.2020.00316. URL https: //doi.org/10.1109/CVPR42600.2020.00316. \n[19] C. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3.6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. PAMI, 36(7):1325–1339, 2014. \n[20] A. Kanazawa, M. J. Black, D. W. Jacobs, and J. Malik. End-to-end recovery of human shape and pose. In CVPR, pages 7122–7131, 2018. \n[21] T. Karras, S. Laine, and T. Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019. \n[22] M. Kocabas, N. Athanasiou, and M. J. Black. Vibe: Video inference for human body pose and shape estimation. In CVPR, 2020. \n[23] N. Kolotouros, G. Pavlakos, M. J. Black, and K. Daniilidis. Learning to reconstruct 3d human pose and shape via model-fitting in the loop. In ICCV, 2019. \n[24] C. Lassner and M. Zollhöfer. Pulsar: Efficient sphere-based neural rendering. In CVPR, 2021. \n[25] C. Lassner, J. Romero, M. Kiefel, F. Bogo, M. J. Black, and P. V. Gehler. Unite the people: Closing the loop between 3d and 2d human representations. In CVPR, July 2017. \n[26] S. Li, L. Ke, K. Pratama, Y.-W. Tai, C.-K. Tang, and K.-T. Cheng. Cascaded deep monocular 3d human pose estimation with evolutionary training data. In CVPR, June 2020. \n[27] S. Liu, T. Li, W. Chen, and H. Li. Soft rasterizer: A differentiable renderer for image-based 3d reasoning. In ICCV, pages 7708–7717, 2019. \n[28] S. Lombardi, J. Saragih, T. Simon, and Y. Sheikh. Deep appearance models for face rendering. ACM TOG (Proc. SIGGRAPH), 37(4), July 2018. ISSN 0730-0301. doi: 10.1145/3197517. 3201401. URL https://doi.org/10.1145/3197517.3201401. \n[29] S. Lombardi, T. Simon, J. Saragih, G. Schwartz, A. Lehrmann, and Y. Sheikh. Neural volumes: Learning dynamic renderable volumes from images. ACM TOG (Proc. SIGGRAPH), 38(4), July 2019. ISSN 0730-0301. doi: 10.1145/3306346.3323020. URL https://doi.org/10. 1145/3306346.3323020. \n[30] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. Smpl: A skinned multiperson linear model. ACM TOG (Proc. SIGGRAPH), 34(6):1–16, 2015. \n[31] W. E. Lorensen and H. E. Cline. Marching cubes: A high resolution 3d surface construction algorithm. ACM SIGGRAPH, 1987. \n[32] C. Luo, X. Chu, and A. L. Yuille. Orinet: A fully convolutional network for 3d human pose estimation. In BMVC, page 92, 2018. URL http://bmvc2018.org/contents/papers/ 0289.pdf. \n[33] R. Martin-Brualla, N. Radwan, M. S. M. Sajjadi, J. T. Barron, A. Dosovitskiy, and D. Duckworth. NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections. In CVPR, 2021. \n[34] J. Martinez, R. Hossain, J. Romero, and J. J. Little. A simple yet effective baseline for 3d human pose estimation. In ICCV, 2017. \n[35] D. Mehta, H. Rhodin, D. Casas, P. Fua, O. Sotnychenko, W. Xu, and C. Theobalt. Monocular 3d human pose estimation in the wild using improved cnn supervision. In 3DV. IEEE, 2017. doi: 10.1109/3dv.2017.00064. URL http://gvv.mpi-inf.mpg.de/3dhp_dataset. \n[36] D. Mehta, S. Sridhar, O. Sotnychenko, H. Rhodin, M. Shafiei, H.-P. Seidel, W. Xu, D. Casas, and C. Theobalt. Vnect: Real-time 3d human pose estimation with a single rgb camera. In TOG, volume 36, July 2017. doi: 10.1145/3072959.3073596. URL http://gvv.mpi-inf. mpg.de/projects/VNect/. \n[37] D. Mehta, O. Sotnychenko, F. Mueller, W. Xu, M. Elgharib, P. Fua, H.-P. Seidel, H. Rhodin, G. Pons-Moll, and C. Theobalt. XNect: Real-time multi-person 3D motion capture with a single RGB camera. In ACM TOG (Proc. SIGGRAPH), 2020. \n[38] M. Meshry, D. B. Goldman, S. Khamis, H. Hoppe, R. Pandey, N. Snavely, and R. Martin-Brualla. Neural rerendering in the wild. In CVPR, pages 6878–6887, 2019. \n[39] 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, 2020. \n[40] T. Nguyen-Phuoc, C. Li, L. Theis, C. Richardt, and Y.-L. Yang. Hologan: Unsupervised learning of 3d representations from natural images. In ICCV, pages 7588–7597, 2019. \n[41] A. Nibali, Z. He, S. Morgan, and L. Prendergast. 3d human pose estimation with 2d marginal heatmaps. In WACV, 2019. \n[42] M. Omran, C. Lassner, G. Pons-Moll, P. Gehler, and B. Schiele. Neural body fitting: Unifying deep learning and model based human pose and shape estimation. In 3DV, 2018. \n[43] S. Park, J. Hwang, and N. Kwak. 3d human pose estimation using convolutional neural networks with 2d pose information. In European Conference on Computer Vision (ECCV), pages 156–169, 2016. doi: 10.1007/978-3-319-49409-8\\_15. URL https://doi.org/10. 1007/978-3-319-49409-8_15. \n[44] G. Pavlakos, X. Zhou, K. G. Derpanis, and K. Daniilidis. Coarse-to-fine volumetric prediction for single-image 3d human pose. Conference on Computer Vision and Pattern Recognition (CVPR), pages 1263–1272, 2017. \n[45] G. Pavlakos, L. Zhu, X. Zhou, and K. Daniilidis. Learning to estimate 3D human pose and shape from a single color image. In CVPR, 2018. \n[46] S. Peng, Y. Zhang, Y. Xu, Q. Wang, Q. Shuai, H. Bao, and X. Zhou. Neural body: Implicit neural representations with structured latent codes for novel view synthesis of dynamic humans. In CVPR, 2021. \n[47] A. Pumarola, E. Corona, G. Pons-Moll, and F. Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In CVPR, 2020. \n[48] H. Rhodin, N. Robertini, C. Richardt, H.-P. Seidel, and C. Theobalt. A versatile scene model with differentiable visibility applied to generative pose estimation. In ICCV, pages 765–773, 2015. \n[49] H. Rhodin, N. Robertini, D. Casas, C. Richardt, H.-P. Seidel, and C. Theobalt. General automatic human shape and motion capture using volumetric contour cues. In ECCV, pages 509–526, 2016. \n[50] H. Rhodin, M. Salzmann, and P. Fua. Unsupervised Geometry-Aware Representation for 3D Human Pose Estimation. In ECCV, 2018. \n[51] H. Rhodin, V. Constantin, I. Katircioglu, M. Salzmann, and P. Fua. Neural scene decomposition for multi-person motion capture. In CVPR, 2019. \n[52] G. Rogez, P. Weinzaepfel, and C. Schmid. LCR-Net: Localization-Classification-Regression for Human Pose. In CVPR, pages 1216–1224, Honolulu, United States, July 2017. IEEE. doi: 10.1109/CVPR.2017.134. URL https://hal.inria.fr/hal-01505085. \n[53] M. Shi, K. Aberman, A. Aristidou, T. Komura, D. Lischinski, D. Cohen-Or, and B. Chen. Motionet: 3d human motion reconstruction from monocular video with skeleton consistency. ACM TOG (Proc. SIGGRAPH), 40(1):1–15, 2020. \n[54] A. Shysheya, E. Zakharov, K.-A. Aliev, R. Bashirov, E. Burkov, K. Iskakov, A. Ivakhnenko, Y. Malkov, I. Pasechnik, D. Ulyanov, et al. Textured neural avatars. In CVPR, pages 2387–2397, 2019. \n[55] V. Sitzmann, J. Thies, F. Heide, M. Nießner, G. Wetzstein, and M. Zollhöfer. Deepvoxels: Learning persistent 3d feature embeddings. In CVPR, 2019. \n[56] V. Sitzmann, M. Zollhöfer, and G. Wetzstein. Scene representation networks: Continuous 3d-structure-aware neural scene representations. In NeurIPS, pages 1121–1132, 2019. \n[57] V. Sitzmann, J. Martel, A. Bergman, D. Lindell, and G. Wetzstein. Implicit neural representations with periodic activation functions. NeurIPS, 33, 2020. \n[58] C. Stoll, N. Hasler, J. Gall, H.-P. Seidel, and C. Theobalt. Fast articulated motion tracking using a sums of Gaussians body model. In ICCV, pages 951–958, 2011. \n[59] X. Sun, J. Shang, S. Liang, and Y. Wei. Compositional human pose regression. In ICCV, pages 2602–2611, 2017. \n[60] M. Tancik, P. P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. T. Barron, and R. Ng. Fourier features let networks learn high frequency functions in low dimensional domains. NeurIPS, 2020. \n[61] J. Taylor, J. Shotton, T. Sharp, and A. Fitzgibbon. The vitruvian manifold: Inferring dense correspondences for one-shot human pose estimation. In CVPR, pages 103–110. IEEE, 2012. \n[62] A. Tewari, O. Fried, J. Thies, V. Sitzmann, S. Lombardi, K. Sunkavalli, R. Martin-Brualla, T. Simon, J. Saragih, M. Nießner, R. Pandey, S. Fanello, G. Wetzstein, J.-Y. Zhu, C. Theobalt, M. Agrawala, E. Shechtman, D. B. Goldman, and M. Zollhöfer. State of the Art on Neural Rendering. Computer Graphics Forum (EG STAR 2020), 2020. \n[63] J. Thies, M. Zollhöfer, and M. Nießner. Deferred neural rendering: Image synthesis using neural textures. ACM TOG (Proc. SIGGRAPH), 2019. \n[64] D. Tome, C. Russell, and L. Agapito. Lifting from the deep: Convolutional 3d pose estimation from a single image. In CVPR, July 2017. \n[65] H.-Y. Tung, H.-W. Tung, E. Yumer, and K. Fragkiadaki. Self-supervised learning of motion capture. In NeurIPS, pages 5242–5252, 2017. \n[66] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In NeurIPS, 2017. \n[67] O. Wiles, G. Gkioxari, R. Szeliski, and J. Johnson. Synsin: End-to-end view synthesis from a single image. In CVPR, pages 7467–7477, 2020. \n[68] D. Xiang, H. Joo, and Y. Sheikh. Monocular total capture: Posing face, body, and hands in the wild. In CVPR, pages 10965–10974, 2019. \n[69] J. Xu, Z. Yu, B. Ni, J. Yang, X. Yang, and W. Zhang. Deep kinematics analysis for monocular 3d human pose estimation. In CVPR, June 2020. \n[70] W. Xu, A. Chatterjee, M. Zollhöfer, H. Rhodin, D. Mehta, H.-P. Seidel, and C. Theobalt. Monoperfcap: Human performance capture from monocular video. TOG, 37(2):27, 2018. \n[71] L. Yen-Chen, P. Florence, J. T. Barron, A. Rodriguez, P. Isola, and T.-Y. Lin. inerf: Inverting neural radiance fields for pose estimation. In IROS, 2020. \n[72] K. Zhou, X. Han, N. Jiang, K. Jia, and J. Lu. Hemlets pose: Learning part-centric heatmap triplets for accurate 3d human pose estimation. In ICCV, pages 2344–2353, 2019. \n[73] X. Zhou, X. Sun, W. Zhang, S. Liang, and Y. Wei. Deep kinematic pose regression. In ECCV Workshop, 2016. \n[74] S. Zuffi, A. Kanazawa, T. Berger-Wolf, and M. J. Black. Three-d safari: Learning to estimate zebra pose, shape, and texture from images \"in the wild\". In ICCV, pages 5358–5367. IEEE, Oct. 2019. ",
1067
+ "bbox": [
1068
+ 174,
1069
+ 138,
1070
+ 828,
1071
+ 912
1072
+ ],
1073
+ "page_idx": 10
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "",
1078
+ "bbox": [
1079
+ 169,
1080
+ 89,
1081
+ 828,
1082
+ 920
1083
+ ],
1084
+ "page_idx": 11
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "",
1089
+ "bbox": [
1090
+ 171,
1091
+ 45,
1092
+ 828,
1093
+ 919
1094
+ ],
1095
+ "page_idx": 12
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "",
1100
+ "bbox": [
1101
+ 169,
1102
+ 90,
1103
+ 828,
1104
+ 816
1105
+ ],
1106
+ "page_idx": 13
1107
+ }
1108
+ ]
parse/train/lwwEh0OM61b/lwwEh0OM61b_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/lwwEh0OM61b/lwwEh0OM61b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgz8sA5F7/rJgz8sA5F7.md ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HC-NET: MEMORY-BASED INCREMENTAL DUALNETWORK SYSTEM FOR CONTINUAL LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Training a neural network for a classification task typically assumes that the data to train are given from the beginning. However, in the real world, additional data accumulate gradually and the model requires additional training without accessing the old training data. This usually leads to the catastrophic forgetting problem which is inevitable for the traditional training methodology of neural networks. In this paper, we propose a memory-based continual learning method that is able to learn additional tasks while retaining the performance of previously learned tasks. Composed of two complementary networks, the Hippocampus-Net (H-Net) and the Cortex-Net (C-Net), our model estimates the index of the corresponding task for an input sample and utilizes a particular portion of itself with the estimated index. The C-Net guarantees no degradation in the performance of the previously learned tasks and the H-Net shows high confidence in finding the origin of an input sample.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The main difference between the human brain and the machine learning methodology is the ability to evolve. Using neurophysiological processing principles, human brains can achieve and organize knowledges throughout their lifespan. Having the neuroplasticity, human brains can transfer an activating region of a given function to a different location or control the creation and destruction of synapses according to its experiences. Usually, artificial neural network (ANN) models consist of finite numbers of filters. Also, parameters and operations in the ANN do not possess the ability corresponding to the memory system of human brains. This structural limit leads to the problem called catastrophic forgetting, i.e., the newly coming information diverts the model from previously learned knowledge. The field of researches trying to solve this problem is referred to as continual or lifelong learning.
12
+
13
+ Kirkpatrick et al. (2017) suggested a method applying a penalty on the quadratic distance between the old parameters and the new ones. Called elastic weight consolidation (EWC), this method can be applied to either supervised or reinforcement learning scenarios. Jung et al. (2018) proposed a method using feature regularization referred as less-forgetful learning (LF). When training a new dataset, the feature just before the fully connected layer is regularized to become similar to that of the previous model. A considerably small learning rate is used in order to prevent a drastic change of the model. Despite of such efforts, as more and more tasks are added, the model eventually collapses with poor performances in old datasets. Li & Hoiem (2017) proposed a method using a similar regularization method, referred as learning without forgetting (LwF). Continual learning is conducted to a single convolutional neural network (CNN), adding an additional classifier whenever a dataset is newly trained. Classifiers in the newly trained network are regularized to reproduce the outputs of the old network while the new classifier is trained in a classical way. LwF shows better performance than LF, but still suffers from the catastrophic forgetting with multiple tasks. These approaches using regularization basically focus on alleviating the deformation of the original network. Therefore, the more the new knowledge flows in the model, the more the performance on the original task degrades. To make a single network deal with a large number of datasets, instead of using all parameters of a single network for each task, PackNet suggested a model which allocates the datasets to specific weights of filters (Mallya & Lazebnik, 2018). As only the specialized weights for a particular task are involved in its classification process, PackNet shows a remarkable result in multiple tasks. However, the information about from which task the input originates and which group of weights should be used must be given in advance. Typically, images do not contain such prior knowledges and this makes the PackNet hard to apply in real world situation.
14
+
15
+ ![](images/eec4e95f50f3656571df72b4b26b98e1b4b036bdaf04a02263b2b5ce95f1d31a.jpg)
16
+ Figure 1: The overall architecture of our method. Blue arrows depicts the training process for the new task (Task C) of our method, where Task A and Task B have been already trained. H-Net is trained each time a dataset for a new task is provided and then the C-Net is trained in a standard way such as using the cross-entropy loss. We allow only the trainable filters (Blue parameters) to be updated. Red arrows shows the inference procedure of our method. H-Net finds out the task index $\mathcal { I }$ (Task C) from which the input came and let the C-Net to use the filters specialized for task $\mathcal { I }$ (Blue $+ \mathrm { O r a n g e + G r e y } )$ . Class labels are also switched to those of task $\mathcal { I }$ .
17
+
18
+ In this paper, inspired by the human brain system, we propose a network which efficiently increases its complexity without degrading the performance of previous tasks. Instead of saving all the memory in the cortex and trying to access it directly, the hippocampus finds the index of the memory scattered over the cortex where knowledges are well organized inside. Under the inspiration from the quote in (Buzsaki, 2006), “Think of the cortex as a huge library and the hippocampus as its librarian”, we have built our network using two complementary sub-networks as shown in Figure 1. The Cortex-Net (C-Net) keeps the knowledge from several independent tasks. After training a network from the previous task, additional filters in the convolutional modules are attached and trained with the next task. To infer the newly learned data, the model utilizes the newly trained filters along with the previously learned filters, whereas the data from the old task is inferred only using the previously learned filters. In order to determine which combination of filters to use, we adopted a memory network which can distinguish the origin of a given input sample. Referred as the Hippocampus-Net (H-Net), it can recall the information not only which group of filters to use but also which group of class labels to use. This endows our method label-expandability, which enables our method to be practically applied in real world situation. We suggest three methods, each of which respectively using generative adversarial networks (GAN) (Goodfellow et al., 2014), variational auto-encoder (VAE) (Kingma & Welling, 2013), and principal component analysis (PCA) (Jolliffe, 2011) for H-Net and report the properties and performance of each method. Our H-Net can be combined with any other works such as LwF or PackNet. The combined H-Net and C-Net referred as HC-Net can prevent the catastrophic forgetting using a densely organized architecture and a highly reliable memory system. The contributions of this paper can be summarized as follows:
19
+
20
+ • Filters in the convolutional layers are allocated to each task and parameters from the previously learned tasks are shared among post tasks and used for the initialization of post tasks parameters, which makes the overall model compact and efficient.
21
+ • Attaching filters whenever a new dataset is trained allows the model to be expandable as far as the physical constraints, such as memory and processing time constraints, allow.
22
+ • To identify which portion of convolutional filters should be used to classify a data, a memory network (H-Net) is proposed with several methodologies.
23
+ • The overall method is applicable to multi-task continual learning whose number of class labels increases over tasks.
24
+
25
+ ![](images/da0df10bb0079357dd40b2e4e7473a7490a92408d4a5087fefd1e8725576404d.jpg)
26
+ Figure 2: Trainable parameters $W _ { k } ^ { T }$ (Orange) and frozen parameters $W _ { k } ^ { \mathcal { P } }$ (Grey) in the C-Net training process. In the training process, the parameters (Orange), which are trainable parameters except frozen parameters (Grey), are updated. $x$ denotes the spatial dimension of filters.
27
+
28
+ # 2 METHOD
29
+
30
+ We propose a memory-based incremental dual network system for continual learning that satisfies three properties as stated below.
31
+
32
+ Property 1. The Hippocampus-Net (H-Net) offers the index about which part of the Cortex-Net (C-Net) should be used.
33
+
34
+ Property 2. The C-Net learns the knowledge on the new task under the presence of the previously learned knowledge.
35
+
36
+ Property 3. H-Net and C-Net are flexible to the expansion of the network and as many new tasks can be learned in one network as physical constraints allow.
37
+
38
+ In this respect, our proposed H-Net works as a hippocampus of a human brain in that it gives a summarized information to the C-Net. Also, the C-Net corresponds to the human cortex in terms of its ability to learn semantic knowledge.
39
+
40
+ # 2.1 CORTEX NETWORK (C-NET)
41
+
42
+ We propose an efficient way to allocate the capacity to a network according to the given tasks. C-Net is an expandable network where additional filters can be attached whenever a new task is given. It can be applied to many typical networks such as VGG and ResNet (Simonyan & Zisserman, 2014; He et al., 2016). The only difference with the original versions of those networks is that it uses different parts of filters for different tasks. As shown in (Li et al., 2016), typical CNN are capable of maintaining their performance even when the majority of their parameters are pruned. This implies that filters in a CNN contains a lot of unnecessary or redundant information. Also, sharing the filters among different tasks inevitably leads to the catastrophic forgetting of the network since the parameters trained by an old task should be replaced with those trained by a new task. For these reasons, we utilize a network divided into several parts and refer it as C-Net where each part takes charge of a particular task.
43
+
44
+ While training the C-Net with several tasks, each task uses a different part of the C-Net. For the convenience of referring which segments of the C-Net are to be activated, we introduce a filter index $I ^ { \mathcal { I } }$ for the $\mathcal { I }$ -th task. The filter index $I ^ { \mathcal { I } }$ defines the range of filters to use for the specific task $\mathcal { I }$ in every layers. For example, if the filter index $I ^ { 1 }$ equals to ten, the first task uses filters from the first to the tenth filter.
45
+
46
+ Depicted in Figure 2, $I _ { k } ^ { \mathcal { I } }$ denotes the filter index in the $k$ -th layer corresponding to the task $\mathcal { I }$ . This equals to the number of output channels in the sequent feature map. $I _ { k } ^ { \mathcal { P } }$ denotes the filter index in the $k$ -th layer for the previous task. As the same principle is applied to the precedent $( k - 1 )$ -th layer, the number of input channels for the filters in the $k$ -th layer will change likewise. That is, total of $I _ { k } ^ { \mathcal { P } }$ filters have the channel length of $I _ { k - 1 } ^ { \mathcal { P } }$ when the previous task is under training. As the new task is given, the length of the filters become $I _ { k - 1 } ^ { \mathcal { I } }$ since the filters in the prior layer will deliver a feature
47
+
48
+ Input: $W ^ { \mathcal { I } } , I ^ { \mathcal { P } } , I ^ { \mathcal { I } }$
49
+
50
+ Output: W J ∗
51
+
52
+ 1: Freeze the $W ^ { \mathcal { P } } \subset W ^ { \mathcal { I } }$ using the information $I ^ { \mathcal { P } }$ 2: Initialize the $W ^ { \tau }$ with $W ^ { \mathcal { P } }$ and a random noise 3: $W ^ { \mathcal { I } * } \arg \operatorname* { m i n } ( \mathcal { L } _ { c } )$ {Update $W ^ { \breve { T } }$ using backpropagation}
53
+
54
+ map whose length is $I _ { k - 1 } ^ { \mathcal { I } }$ . Therefore, both the number of input and output channels increases as the number of tasks increases until the physical constraints allow.
55
+
56
+ Weight parameters of $\mathcal { I }$ -th task in filters of the $k$ -th layer are referred as $W _ { k } ^ { \mathcal { I } } \in R ^ { x \times x \times I _ { k - 1 } ^ { \mathcal { I } } \times I _ { k } ^ { \mathcal { I } } }$ , where $x$ means the size of the kernel while $\begin{array} { r } { W _ { k } ^ { \mathcal { P } } \in R ^ { x \times x \times I _ { k - 1 } ^ { \mathcal { P } } \times I _ { k } ^ { \mathcal { P } } } } \end{array}$ are the weight parameters of the previous task. When training the new task, $W _ { k } ^ { \mathcal { I } }$ is used for inference but only the parameters $w \in W _ { k } ^ { \mathcal { T } }$ $( W _ { k } ^ { \mathcal { T } } = W _ { k } ^ { \mathcal { I } } \setminus W _ { k } ^ { \mathcal { P } } )$ are updated while leaving $W _ { k } ^ { \mathcal { P } }$ fixed. Note that biases in the filters can also be trained likewise as explained above. The fully connected layer located just before the linear classifier can be divided as well into the sections of $\dot { I } ^ { \mathcal { I } }$ and $I ^ { \mathcal { P } }$ .
57
+
58
+ To enhance the performance, slices of trained parameters $W ^ { \mathcal { P } }$ from the old task are duplicated to the newly available task parameters $W ^ { T }$ and Gaussian noise is added to them for the sake of good initialization. Then, the network is trained in a standard way, e.g., using a cross-entropy loss $\mathcal { L } _ { c }$ . Independent linear classifiers are used for every tasks. This scheme of C-Net can also be applied to structures using shortcut connections such as ResNet. The overall training process is shown in Algorithm 1.
59
+
60
+ # 2.2 HIPPOCAMPUS NETWORK (H-NET)
61
+
62
+ Even if the C-Net is well trained separately with several tasks, the task index $\mathcal { I }$ must be given at the time of inference. Especially when the class labels expand, this prior information $\mathcal { I }$ is necessary to estimate which group of class labels to use. In the testing step, existing methods needs the exact origination of the input data. However in the real world, a given data for classification normally does not offer any information about its origination. Therefore, this prior knowledge should be estimated by an independent network.
63
+
64
+ To solve this problem, we introduce the Hippocampus network (H-Net) using several different methods (GAN, VAE and PCA), which is able to estimate the task $\mathcal { I }$ of the given input data and inform this to the C-Net to specify which filters to use. In this paper, we explain the GAN method as a representative and other methods are explained in Appendix A.
65
+
66
+ # 2.2.1 GENERATIVE ADVERSARIAL NETWORKS (GAN)
67
+
68
+ This method is inspired by the on-line replay method used for continual learning (Shin et al., 2017). We train a task-specific generative model $G _ { \mathcal { I } }$ using a GAN to generate pseudo-samples of task $\mathcal { I }$ . The generator is trained using the adversarial loss as follows:
69
+
70
+ $$
71
+ \operatorname* { m i n } _ { G , \mathcal { T } } \operatorname* { m a x } _ { D , \mathcal { T } } V ( D _ { \mathcal { T } } , G _ { \mathcal { T } } ) = \mathbb { E } _ { \boldsymbol { x } \sim P _ { d a t a } ^ { \mathcal { T } } } [ \mathrm { l o g } ( D _ { \mathcal { T } } ( \boldsymbol { x } ) ] + \mathbb { E } _ { \boldsymbol { z } \sim p _ { \mathcal { z } } ( \boldsymbol { z } ) } [ \mathrm { l o g } ( 1 - D _ { \mathcal { T } } ( G _ { \mathcal { T } } ( \boldsymbol { z } ) ) ] .
72
+ $$
73
+
74
+ Here, $D _ { \mathcal { I } }$ is a discriminator for the task $\mathcal { I }$ and $x$ is a sample from the task $\mathcal { I }$ .
75
+
76
+ After generating samples of all tasks, a task-wise binary classifier $B _ { \mathcal { I } }$ is trained to classify whether the given input is from the task $\mathcal { I }$ or not. Note that only the generated samples are involved for the training of each binary classifier $B _ { \mathcal { I } }$ . This means that positive samples are from the generator $G _ { \mathcal { I } }$ for the task $\mathcal { I }$ and negative samples are from all the other task generators $G _ { \kappa }$ $( \forall \boldsymbol { K } \neq \mathcal { T }$ ).
77
+
78
+ In the testing phase, each classifier produces the probability of how likely the given unknown input data is from the task $\mathcal { I }$ . The classifier $B _ { i }$ with the highest probability assumes that the input data is from the task $i$ . H-Net can figure out the task $\mathcal { I }$ of input data with maximum probability across the set of classifiers. H-Net gives this estimated task index $\mathcal { I }$ to the C-Net. The H-Net using GAN can be summarized as below:
79
+
80
+ $$
81
+ \begin{array} { r l } & { \mathrm { I n i t i a l i z a t i o n : } \qquad B = \{ B _ { 1 } , B _ { 2 } , . . . , B _ { N } \} } \\ & { \mathrm { T r a i n i n g : } \quad B _ { i } ( x ) = \left\{ 1 \quad \mathrm { i f } x \mathrm { i s f r o m } G _ { i } \right. } \\ & { \mathrm { I n f e r e n c e : } \qquad \mathcal { I } = \arg \underset { i } { \operatorname { i f } } x \mathrm { i s f r o m } G _ { j } \forall j \neq i } \end{array}
82
+ $$
83
+
84
+ # 3 EXPERIMENT
85
+
86
+ We evaluate our method on several image classification datasets. First, we verify the effectiveness of our method with MNIST (LeCun et al., 1998), SVHN (Netzer et al., 2011) and CIFAR-10 (Krizhevsky & Hinton, 2009) which are widely used to evaluate image classification performance. Then, we evaluate our method on two subsets of ImageNet (Russakovsky et al., 2015) which is a realistic image dataset. More details are summarized in Table 1.
87
+
88
+ We compare our method to various methods such as Elastic Weight Consolidation (EWC), Learning without forgetting (LwF), less-forgetful learning (LF) and PackNet as well as networks trained for a single target task which shows the performance without conducting continual learning. We use the GAN method for H-Net in all the experiments as a representative. To solely examine the influence of H-Net on our method (HC-Net), we have conducted experiments with the same experimental scenarios on the HC-Net experiments. In Table 2, each row shows the result of one among GAN, VAE and PCA. In Table 3 and Table 4, the result of ‘HC-Net (without H-Net)’ shows the performance of the C-Net only. That is, it assumes that the H-Net never fails and the task index $\mathcal { I }$ is always given correctly. Likewise, LwF and PackNet need prior knowledge of a given input to know which classifier to use. As there is no structure like H-Net in the original paper, The actual comparison must be done with ‘C-Net’.
89
+
90
+ # 3.1 CONTINUAL LEARNING USING BASIC IMAGE CLASSIFICATION DATASETS
91
+
92
+ We have built three experimental scenarios to evaluate our method using basic image classification datasets. We compare the performance of learning a consecutive two task pair among MNIST, SVHN and CIFAR-10 dataset. After that, we conduct multiple-task continual learning with these datasets. In these experiments, we use the same learning hyperparameters and network architectures suggested in (Jung et al., 2018) used for ‘Tiny image classification’. Training details are reported in Appendix B.
93
+
94
+ # 3.1.1 MNIST → SVHN
95
+
96
+ After selecting a subset of SVHN to equalize the number of training data between MNIST and SVHN, images are resized to $2 8 \times 2 8$ as in (Jung et al., 2018). The results of Modified LwF, EWC and LF are referred from (Jung et al., 2018). Modified LwF is sligthly different from the original LwF in that the old output $\hat { Y } _ { o }$ and new outputs $\hat { Y _ { n } }$ is united into a single output. The ‘single network’ in Table 3 is a network of full capacity trained using a single dataset. The column ‘Old’ represents the test accuracy on the previously learnt task and ‘New’ is that of the newly trained task . The value $\gamma$ for EWC is determined as in (Kirkpatrick et al., 2017). A knowledge distillation loss with hyper-parameters of $T = 2$ and $T = 1$ is used for LwF, referred as temperature in (Hinton et al., 2015).
97
+
98
+ As MNIST and SVHN highly resemble each other, the accuracy of all methods are relatively high. LF demonstrate better average classification rates than Modified LwF and EWC. LwF can control the performance trade-off between the old and new task by changing the temperature parameter $T$ . The bigger $T$ is, the lower the accuracy drops but it still outperforms those of the methods mentioned above. PackNet almost maintains the performance of the single network for the first task with less than $2 \%$ drop in accuracy. HC-Net outperforms all other methods in the table. Note that the prior knowledge to select which task is given in experiments of other methods. Therefore, our HC-Net without H-Net (i.e., C-Net), which shows the highest in performance, should be compared to other baseline methods. Nonetheless, our full model, HC-Net also outperforms PackNet, especially on the second task by around $0 . 7 \%$ .
99
+
100
+ Table 1: Details of datasets.
101
+
102
+ <table><tr><td>Datasets</td><td>#ofTrain data</td><td>#of Test data</td><td>#of Class</td></tr><tr><td>MNIST</td><td>60,000</td><td>10,000</td><td>10</td></tr><tr><td>SVHN</td><td>73,275</td><td>26.032</td><td>10</td></tr><tr><td>CIFAR-10</td><td>50,000</td><td>10.000</td><td>10</td></tr><tr><td>ImageNet-A</td><td>64,750</td><td>2.500</td><td>50</td></tr><tr><td>ImageNet-B</td><td>64,497</td><td>2,500</td><td>50</td></tr></table>
103
+
104
+ Table 2: Experimental results of H-Net on the basic datasets
105
+
106
+ <table><tr><td>Datasets</td><td>Methods</td><td>Old(%)</td><td>New(%)</td></tr><tr><td>MNIST √ SVHN</td><td>GAN VAE PCA</td><td>100 100 100</td><td>99.94 99.85 100</td></tr><tr><td>SVHN √ CIFAR-10</td><td>GAN VAE PCA</td><td>97.00 71.07 93.28</td><td>99.90 97.06 92.5</td></tr><tr><td>Datasets</td><td></td><td>Methods MNIST(%)</td><td>SVHN(%) CIFAR(%)</td></tr><tr><td>MNIST</td><td>GAN</td><td>100 96.65</td><td>99.83</td></tr><tr><td>→ SVHN →CIFAR-10</td><td>VAE PCA 100</td><td>100 71.22 93.28</td><td>97.07 92.5</td></tr></table>
107
+
108
+ Table 3: Mean classification results on the basic datasets (5 runs).
109
+
110
+ <table><tr><td>Datasets</td><td>Methods</td><td>Old(%)</td><td></td><td>New(%) Avg.(%)</td></tr><tr><td rowspan="2">MNIST √ SVHN SVHN</td><td>single network (MNIST) single network (SVHN) ModifiedLwF EWC(y = 2.32 × 104) LF(λe = 1.6 × 10-3)</td><td>99.49 1 94.78 94.15 97.37</td><td>92.82 83.77 79.31 83.79</td><td>1 1 89.28 86.73 90.58</td></tr><tr><td>LwF(T=1) LwF(T=2) PackNet HC-Net HC-Net (without H-Net) single network (SVHN) single network (CIFAR)</td><td>98.27 97.33 99.45 99.43 99.43 92.94</td><td>86.40 86.97 91.49 92.20 92.37 一 79.69</td><td>92.34 92.15 95.47 95.82 95.90 1</td></tr><tr><td colspan="2">√ CIFAR-10</td><td>1 LF(λe=2.0 ×10-3) 83.18 91.76 90.19 92.84 90.05</td><td>48.99 70.57 71.94 76.78 76.62</td><td>1 66.09 81.17 81.07 84.81 83.34</td></tr><tr><td>Datasets</td><td colspan="2">HC-Net (without H-Net) Methods</td><td>92.21 76.70 MNIST(%)SVHN(%)CIFAR(%)Avg(%)</td><td>84.46</td></tr><tr><td>MNIST ↓ SVHN √ CIFAR-10</td><td colspan="2">single network (MNIST) 99.44 single network (SVHN) 二 single network (CIFAR) = LF(λe=1.0×10-) 89.57 LwF(T=1) 95.06 LwF(T= 2) 86.09 PackNet 99.38</td><td colspan="2">一 92.94 79.69 72.1 45.43</td></tr></table>
111
+
112
+ # 3.1.2
113
+
114
+ In this experiment, we want to see the performance of the proposed method when the statistics of the two tasks are quite different. The datasets SVHN and CIFAR-10 have a clear distinction in image styles and colors. For LF whose classifier must be shared between the old and new tasks, this inevitably leads to a significant decrease in performance. LwF and PackNet show similar trends as that of ‘MNIST to SVHN’. Higher temperature $( T )$ induces better performance in the new task but a bit of degradation in average performance still occurs. PackNet experiences almost no performance degradation. The pruning method of PackNet acts like a generalization method and helps the model to maintain its capacity. The average performance of C-Net is slightly lower than that of PackNet by $0 . 3 5 \%$ . However, note that PackNet requires additional finetuning after the pruning process and takes additional time for training. On the other hand, C-Net requires no additional pruning or finetuning precedure and yet retains the performance.
115
+
116
+ # 3.1.3
117
+
118
+ Training three or more tasks is unmanageable for the models using regularization methods. LF scored an average accuracy of no more than $6 9 . 0 3 \%$ , which is much more lower than any other methods. No matter how we change the temperature $( T )$ , LwF suffers from a drop in average performance, especially in the third task. Also, even though the proportion allocated to each task is equivalent between the PackNet and our methods (HC-Net and C-Net), our method highly outperforms the PackNet in the third task. This implies that HC-Net is more suitable for multi-task sequential learning situation.
119
+
120
+ # 3.2 CONTINUAL LEARNING USING REALISTIC DATASETS
121
+
122
+ ImageNet contains images more realistic than other datasets used in this paper. Higher resolution and complex backgrounds make the classification even harder. To save the training time, two subsets of the ImageNet dataset each having 50 randomly chosen classes have been used for evaluation. They are referred to as ImageNet-A and ImageNet-B respectively in this paper. To show the adaptability of our method on structures having shortcut connections, ResNet-50 is used for the experiment. We use the same experimental setting as in (He et al., 2016) with a batch size of 128. We compare our C-Net with LwF and PackNet.
123
+
124
+ Table 4: Mean classification results for the realistic dataset (2 runs)
125
+
126
+ <table><tr><td>datasets</td><td>Methods</td><td>Old(%)</td><td>New(%)</td><td>Avg.(%)</td></tr><tr><td rowspan="4">ImageNet-A √ ImageNet-B</td><td>single network(ImageNet-A)</td><td>83.28</td><td>一</td><td>1</td></tr><tr><td>single network (ImageNet-B)</td><td>1 82.2</td><td>85.28</td><td>1</td></tr><tr><td>LwF(T=1)</td><td></td><td>86.72</td><td>84.46</td></tr><tr><td>LwF(T= 2)</td><td>80.92</td><td>86.96</td><td>83.94</td></tr><tr><td rowspan="2"></td><td>PackNet</td><td>82.16</td><td>88.72</td><td>85.44</td></tr><tr><td>HC-Net (without H-Net)</td><td>83.30</td><td>88.66</td><td>85.98</td></tr></table>
127
+
128
+ Table 5: Performances of the old (MNIST) and new (SVHN) tasks with different initialization methods: 1) initialization with only random Gaussian noise and 2) the pretrained parameter added by random Gaussian noise
129
+
130
+ <table><tr><td>Initialization</td><td>0ld(%)</td><td>New(%)</td><td>Avg.(%)</td></tr><tr><td>Random</td><td>99.42</td><td>91.67</td><td>95.55</td></tr><tr><td>Pretrained parameters</td><td>99.43</td><td>92.37</td><td>95.90</td></tr></table>
131
+
132
+ Table 4 shows the results on the ImageNet dataset. The ‘Old’ accuracy of all methods slightly dropped from those of single networks. Like in the ‘SVHN to CIFAR- $1 0 ^ { \circ }$ experiment, PackNet shows a better result than the LwF regardless of the value of $T$ . The result of C-Net is almost identical to PackNet with a slight increase in the average accuracy.
133
+
134
+ PackNet actually utilizes more parameters for each task than C-Net does. Since the masks force weights with no influence to be zero and utilize the well trained remaining weights, PackNet can make good use of the entire network. However in C-Net, just adding filters gradually without any other post-processing performs well enough compared to PackNet. When the model of an initially designed size is fully occupied by several tasks, C-Net can just add more filters and train them along with the trained filters while this is not the case of PackNet. Furthermore, PackNet requires additional memories to store the masks for all filters in it. C-Net needs only one integer per layer for each task. For these reasons, C-Net is far more efficient than the PackNet with no loss in performance.
135
+
136
+ # 3.3 ABLATION STUDY ON THE EFFICIENCY OF C-NET
137
+
138
+ As mentioned in Section 2.1, our C-Net appends filters whenever a new task is to be trained. In this process, parameters learned from previous tasks are utilized altogether and the parameters which are to be trained newly are initialized using the existing ones. We conduct experiments to show the effect of these methods. Experiments are carried out in ‘MNIST to SVHN’ case as a representative.
139
+
140
+ # 3.3.1 INITIALIZATION WITH PRETRAINED PARAMETERS
141
+
142
+ To analyse the effectiveness of initialization using pretrained old task parameters with random Gaussian noise, we compare the accuracy between a model initializing the new parameters with just a random Gaussian distribution and a model initializing the new task parameters using the pretrained old task parameters with additional random Gaussian noise. In Table 5, the model initialized by our method obviously shows higher accuracy on the SVHN task. This result implies that a good initialization prevents the model from going through a local minima.
143
+
144
+ # 3.3.2 PARAMETER SHARING
145
+
146
+ We verify the effect of the parameter sharing between the old task and the new task. The baseline method is a model where the old parameters are filled with random Gaussian initialization and no further training is done. The new parameters in the model have to learn knowledges from the new task without the aid of old parameters since they are fixed from the beginning. On the other hand, the old parameters in our method is trained by the old task and the new parameters can make use of these learnt knowledges to learn the new task. To solely observe the effect of the parameter sharing, both methods do not use our parameter initialization method mentioned in the previous section. The task indices $I ^ { 1 }$ and $I ^ { 2 }$ are $\{ 1 6 , 1 6 , 3 2 \}$ and $\{ 1 8 , 1 8 , 3 4 \}$ respectively. The model using parameter sharing converges far more faster than the model with no parameter sharing which is shown in Figure 3. Also the final error rate of our method is lower than the other. Increasing the number of indices elevation enhances our method by $6 . 3 8 \%$ and the other model by $7 . 9 1 \%$ shown in Table 6. This implies that the parameter sharing improves the model and allow it to be compact with fewer numbers of filters.
147
+
148
+ ![](images/d23170eb7767a0fb74e8d8a3b06991296184d1f4092acd3844393ea1fb9e66e7.jpg)
149
+ Figure 3: Error rate comparison between sharing the parameters which learned previous task and random parameters.
150
+
151
+ Table 6: The performances on the new task while increasing the filter index of the model using parameter sharing and the model with fixed random parameters.
152
+
153
+ <table><tr><td>#ofincreasingeach index</td><td>Ours(%)</td><td>Random(%)</td></tr><tr><td>2</td><td>80.60</td><td>78.10</td></tr><tr><td>4</td><td>85.31</td><td>83.85</td></tr><tr><td>6</td><td>86.98</td><td>86.01</td></tr></table>
154
+
155
+ # 3.4 H-NET
156
+
157
+ The results of H-Net are reported in Table 2. In ‘MNIST to SVHN’, all methods approximates the results to perfection. Despite of the similar appearance of these two datasets, VAE has been able to generate distinct outputs. If a sample in the MNIST dataset is given, the result from the VAE trained for SVHN resembles those of the SVHN dataset. In other words, auto-encoders of each task tends to memorize only what they used for training. PCA is completely able to discriminate the origin of the images from MNIST and SVHN. Particularly in this experiment, even when using a single eigenvector with the least eigen-value showed a result of $100 \%$ and $9 9 . 7 \%$ . According to the dataset, PCA can highly reduce the computational cost as well as the memory resource.
158
+
159
+ In ‘SVHN to CIFAR- $\mathbf { \Omega } _ { 1 0 } ^ { } ,$ , GAN showed the best discriminating performance. VAE shows a poor result on SVHN while the performance on CIFAR-10 remains more than $9 7 \%$ . This means that the auto-encoder trained for CIFAR-10 reconstructs SVHN images well, leading to low reconstruction losses in both of the auto-encoders. With PCA, both datasets are able to separate from each other with chances more than $92 \%$ . The experiments using all three datasets showed almost the same results as the experiments above. GAN definitely shows the best results among all methods introduced.
160
+
161
+ # 3.4.1 LIMITATION
162
+
163
+ Generative models usually have difficulties in generating realistic images with high resolution and there are few researches experimented on ImageNet data. This incompetence makes the H-Net hard to be applied to the ImageNet data. Also, as the subgroups share the same statistics, PCA hardly catch the characteristic of each set. Experiments have shown poor results on ImageNet and we leave this for a future work.
164
+
165
+ # 4 CONCLUSION
166
+
167
+ In this paper, we have proposed a novel framework which is able to divide its capacity into several parts and utilize them according to the given input. Composed of two networks, H-Net is responsible for memorizing “where the data came from” and complicated knowledges such as “what the data is” are engraved to the C-Net. To the best of our knowledge, our work, H-Net, is the first attempt to estimate the origin of data which used to be assumed as given in the previous works. As well as overcoming the catastrophic forgetting, HC-Net allows extra class labels when training a new dataset and also has expandability to the network architecture.
168
+
169
+ # REFERENCES
170
+
171
+ Gyorgy Buzsaki. Rhythms of the Brain. Oxford University Press, 2006.
172
+
173
+ Joao Gama. Knowledge discovery from data streams. Chapman and Hall/CRC, 2010.
174
+
175
+ Joao Gama and Mohamed Medhat Gaber. ˜ Learning from data streams: processing techniques in sensor networks. Springer, 2007.
176
+
177
+ Alexander Gepperth and Cem Karaoguz. A bio-inspired incremental learning architecture for applied perceptual problems. Cognitive Computation, 8(5):924–934, 2016.
178
+
179
+ 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.
180
+
181
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
182
+
183
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
184
+
185
+ Ian Jolliffe. Principal component analysis. In International encyclopedia of statistical science, pp. 1094–1096. Springer, 2011.
186
+
187
+ Heechul Jung, Jeongwoo Ju, Minju Jung, and Junmo Kim. Less-forgetful learning for domain expansion in deep neural networks, 2018. URL https://aaai.org/ocs/index.php/AAAI/ AAAI18/paper/view/17073.
188
+
189
+ Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. arXiv preprint arXiv:1711.10563, 2017.
190
+
191
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
192
+
193
+ 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, pp. 201611835, 2017.
194
+
195
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
196
+
197
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
198
+
199
+ Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
200
+
201
+ Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017.
202
+
203
+ Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
204
+
205
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011.
206
+
207
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
208
+
209
+ 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. doi: 10.1007/s11263-015-0816-y.
210
+
211
+ Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In Advances in Neural Information Processing Systems, pp. 2990–2999, 2017.
212
+
213
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
214
+
215
+ # APPENDIX A H-NET
216
+
217
+ # A.1 VARIATIONAL AUTO-ENCODER (VAE)
218
+
219
+ This approach is based on the variational auto-encoder. VAE estimates the data distribution by approximating it to a Gaussian distribution. We trained auto-encoder for each task separately with the following reconstruction loss:
220
+
221
+ $$
222
+ \mathcal { L } _ { \boldsymbol { r } } ( A E _ { \mathcal { I } } ) = \| \boldsymbol { x } - A E _ { \mathcal { I } } ( \boldsymbol { x } ) \| ^ { 2 }
223
+ $$
224
+
225
+ where $A E _ { \mathcal { I } } ( x )$ is the reconstructed data from the auto-encoder for the task $\mathcal { I }$ . As $A E _ { \mathcal { I } }$ is trained only with samples of the task $\mathcal { I }$ , samples from other tasks will produce large reconstruction loss by $A E _ { \mathcal { I } }$ since they will not follow the trained distribution. In the testing phase, an unknown input data is given to all auto-encoders. Among the results from the trained auto-encoders, the task $\mathcal { I }$ is determined to the one that has the smallest reconstruction error:
226
+
227
+ $$
228
+ \mathcal { T } = \mathop { \arg \operatorname* { m i n } } _ { i } \| x - A E _ { i } ( x ) \| ^ { 2 } .
229
+ $$
230
+
231
+ # A.2 PRINCIPAL COMPONENT ANALYSIS (PCA)
232
+
233
+ Another approach to separate a dataset from another is using PCA. Typically, PCA conducts dimensionality reduction over a given dataset and the projected features that have the biggest eigen-values are used to represent each sample. The bigger the eigen-value is, the more the corresponding eigenvector explains the variance of the dataset and the PCA-based reconstruction error similar to (4) can be used for the determination of the appropriate task.
234
+
235
+ In this paper, instead of using principal components of top- $k$ eigen-values, we utilized those of the bottom- $k$ eigen-values. A small eigen-value indicates low variance over the projected coordinate. Therefore, a sample from other tasks is likely to be far from the origin in this projection while a sample from the original dataset is near the origin. If the matrix of the eigen-vectors corresponding to the top $L$ smallest eigen-values is denoted as $\mathbf { W } _ { L } ^ { i }$ which is extracted from the $i$ -th dataset, a sample $x$ from an unknown origin can be projected to produce the projection vector $\mathbf { T } _ { L } ^ { i } = x ^ { T } \mathbf { W } _ { L } ^ { i }$ and the task can be found as the one that minimize the $L _ { 1 }$ or $L _ { 2 }$ norm of the vector as
236
+
237
+ $$
238
+ \mathcal { T } = \arg \operatorname* { m i n } _ { i } \| \mathbf { T } _ { L } ^ { i } \| _ { p }
239
+ $$
240
+
241
+ where $p = 1$ or 2. In all our experiments, the number of eigen-vectors $\mathbf { L }$ is set empirically to 1,000.
242
+
243
+ # APPENDIX B TRAINING DETAILS
244
+
245
+ # B.1 TRAINING DETAILS OF C-NET
246
+
247
+ We use the same learning parameters and network architectures suggested in (Jung et al., 2018) used for ‘Tiny image classification’. It is composed of three convolutional layers using $5 \times 5$ kernels with the size of 32, 32 and 64 channels respectively, three max pooling layers, one fully connected layer with 200 nodes and the last softmax classifier layer producing 10 outputs. ReLU is used as the activation function in all the experiments. Also an SGD optimizer with a mini-batch size of 100 has been used for model optimization. When training the old task, the weight decay and the momentum were set to 0.004 and 0.9 respectively. The learning rate starts from 0.01 and the decay of the learning rate with a factor 0.1 is done at the time of 20,000 iterations. After 40,000 iterations, the training is terminated in all the experiments. When training a new task, the training of several approaches including Modified LwF, EWC and LF starts with a learning rate of 0.0001 and is terminated at 10,000 iterations without learning rate decay as in (Jung et al., 2018). Unlike above methods, LwF, PackNet and HC-Net have the same settings for the old and new task because they need more iterations as the new parameters are to be trained from the scratch. Note that PackNet needs additional pruning and finetuning step. In the new task training of LwF, we start with a learning rate of 0.0002 and 0.001 which are $0 . 1 \sim 0 . 0 2$ times less than that of old task for the ‘MNIST to SVHN’ and ‘SVHN to CIFAR-10’ respectively, as recommended in (Li & Hoiem, 2017). The channel split ratio which determines $I ^ { \mathcal { I } }$ follows the setting of PackNet.
248
+
249
+ # B.2 TRAINING DETAILS OF H-NET
250
+
251
+ # B.2.1 GAN
252
+
253
+ We use the deep convolutional generative adversarial networks (DCGAN) (Radford et al., 2015). In all experiments of the basic image classification dataset, we use the size of latent vector to 200. The generator use the four transposed convolution layers which are using 512,256,128 and 3 channels with $4 \times 4$ kernels, respectively and we use ReLU activation for all layers except for the output, which uses Tanh. Transposed convolution layers use 2 stride except the first layer. we use LeakyReLU activation in the discriminator for all layers. For the discriminator, the last convolution layer is flattened and then fed into a sigmoid output to discriminate. The architecture of discriminator is symmetrical to it of the generator. We use batchnorm in both generator and the discriminator.
254
+
255
+ We use the Adam optimizer with learning rate of 0.0002 using the batch size of 64. The momentum term $\beta 1$ set to 0.5 and we train the generator until 200 epochs. The generated samples of basic image classification dataset are shown in Figure 4(a), 5(a) and 6(a).
256
+
257
+ For the binary classifier, we use the same network and experimental settings in (Jung et al., 2018) used for ‘Tiny image classification’.
258
+
259
+ # B.2.2 VAE
260
+
261
+ We use the simplified VAE. we use two fully connected layer with a hidden layer with 400 units and 20 units for mean and variance of the latent state distributions. The decoder have an equal number of hidden units.
262
+
263
+ We train the VAE with ReLU activation, sigmoid activation and Adam optimizer with a learning rate of 0.0001 using batch size of 128. We train the VAE until 100 epochs.
264
+
265
+ ![](images/df24de6f3f2e16dc39da1f7505c3e24fd85d1617dcdf92b6edef025073d06245.jpg)
266
+ Figure 4: MNIST dataset
267
+
268
+ # APPENDIX C RELATED WORK
269
+
270
+ Dual memory network system has been suggested to overcome the low performance of the regularization methods and the inefficiency of the dynamic methods. Most of these researches try to mimic the brain system of mammals whose recognition process is believed to be done by the complementary contribution of the hippocampus and the cortex. In several researches, the hippocampus has been realized by networks replaying the previous dataset or determining whether the input is from the old dataset (Gepperth & Karaoguz, 2016; Kemker & Kanan, 2017). Shin et al. (2017) proposed a method of replaying previously encoded experiences using GAN and training the new task without the presence of the old dataset.
271
+
272
+ ![](images/f9d7243ae53471a2e450d0a88b40fec1ea48dc187666e09955e120a3532a86a6.jpg)
273
+ Figure 5: SVHN dataset
274
+
275
+ ![](images/327670c06f2530c08e7677d7718b3b3d91979ae74143a9c635efd6c3e832e619.jpg)
276
+ Figure 6: CIFAR-10 dataset
277
+
278
+ In the data mining field, multi-task learning can be seen as learning from data streams. Therefore, our method can be considered to be one of researches on learning methods from data streams (Gama & Gaber, 2007; Gama, 2010).
parse/train/rJgz8sA5F7/rJgz8sA5F7_content_list.json ADDED
@@ -0,0 +1,1525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HC-NET: MEMORY-BASED INCREMENTAL DUALNETWORK SYSTEM FOR CONTINUAL LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 400,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Training a neural network for a classification task typically assumes that the data to train are given from the beginning. However, in the real world, additional data accumulate gradually and the model requires additional training without accessing the old training data. This usually leads to the catastrophic forgetting problem which is inevitable for the traditional training methodology of neural networks. In this paper, we propose a memory-based continual learning method that is able to learn additional tasks while retaining the performance of previously learned tasks. Composed of two complementary networks, the Hippocampus-Net (H-Net) and the Cortex-Net (C-Net), our model estimates the index of the corresponding task for an input sample and utilizes a particular portion of itself with the estimated index. The C-Net guarantees no degradation in the performance of the previously learned tasks and the H-Net shows high confidence in finding the origin of an input sample. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 766,
44
+ 445
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 469,
55
+ 336,
56
+ 486
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The main difference between the human brain and the machine learning methodology is the ability to evolve. Using neurophysiological processing principles, human brains can achieve and organize knowledges throughout their lifespan. Having the neuroplasticity, human brains can transfer an activating region of a given function to a different location or control the creation and destruction of synapses according to its experiences. Usually, artificial neural network (ANN) models consist of finite numbers of filters. Also, parameters and operations in the ANN do not possess the ability corresponding to the memory system of human brains. This structural limit leads to the problem called catastrophic forgetting, i.e., the newly coming information diverts the model from previously learned knowledge. The field of researches trying to solve this problem is referred to as continual or lifelong learning. ",
63
+ "bbox": [
64
+ 174,
65
+ 500,
66
+ 825,
67
+ 640
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Kirkpatrick et al. (2017) suggested a method applying a penalty on the quadratic distance between the old parameters and the new ones. Called elastic weight consolidation (EWC), this method can be applied to either supervised or reinforcement learning scenarios. Jung et al. (2018) proposed a method using feature regularization referred as less-forgetful learning (LF). When training a new dataset, the feature just before the fully connected layer is regularized to become similar to that of the previous model. A considerably small learning rate is used in order to prevent a drastic change of the model. Despite of such efforts, as more and more tasks are added, the model eventually collapses with poor performances in old datasets. Li & Hoiem (2017) proposed a method using a similar regularization method, referred as learning without forgetting (LwF). Continual learning is conducted to a single convolutional neural network (CNN), adding an additional classifier whenever a dataset is newly trained. Classifiers in the newly trained network are regularized to reproduce the outputs of the old network while the new classifier is trained in a classical way. LwF shows better performance than LF, but still suffers from the catastrophic forgetting with multiple tasks. These approaches using regularization basically focus on alleviating the deformation of the original network. Therefore, the more the new knowledge flows in the model, the more the performance on the original task degrades. To make a single network deal with a large number of datasets, instead of using all parameters of a single network for each task, PackNet suggested a model which allocates the datasets to specific weights of filters (Mallya & Lazebnik, 2018). As only the specialized weights for a particular task are involved in its classification process, PackNet shows a remarkable result in multiple tasks. However, the information about from which task the input originates and which group of weights should be used must be given in advance. Typically, images do not contain such prior knowledges and this makes the PackNet hard to apply in real world situation. ",
74
+ "bbox": [
75
+ 174,
76
+ 646,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/eec4e95f50f3656571df72b4b26b98e1b4b036bdaf04a02263b2b5ce95f1d31a.jpg",
85
+ "image_caption": [
86
+ "Figure 1: The overall architecture of our method. Blue arrows depicts the training process for the new task (Task C) of our method, where Task A and Task B have been already trained. H-Net is trained each time a dataset for a new task is provided and then the C-Net is trained in a standard way such as using the cross-entropy loss. We allow only the trainable filters (Blue parameters) to be updated. Red arrows shows the inference procedure of our method. H-Net finds out the task index $\\mathcal { I }$ (Task C) from which the input came and let the C-Net to use the filters specialized for task $\\mathcal { I }$ (Blue $+ \\mathrm { O r a n g e + G r e y } )$ . Class labels are also switched to those of task $\\mathcal { I }$ . "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 173,
91
+ 101,
92
+ 818,
93
+ 292
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 173,
102
+ 431,
103
+ 823,
104
+ 460
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In this paper, inspired by the human brain system, we propose a network which efficiently increases its complexity without degrading the performance of previous tasks. Instead of saving all the memory in the cortex and trying to access it directly, the hippocampus finds the index of the memory scattered over the cortex where knowledges are well organized inside. Under the inspiration from the quote in (Buzsaki, 2006), “Think of the cortex as a huge library and the hippocampus as its librarian”, we have built our network using two complementary sub-networks as shown in Figure 1. The Cortex-Net (C-Net) keeps the knowledge from several independent tasks. After training a network from the previous task, additional filters in the convolutional modules are attached and trained with the next task. To infer the newly learned data, the model utilizes the newly trained filters along with the previously learned filters, whereas the data from the old task is inferred only using the previously learned filters. In order to determine which combination of filters to use, we adopted a memory network which can distinguish the origin of a given input sample. Referred as the Hippocampus-Net (H-Net), it can recall the information not only which group of filters to use but also which group of class labels to use. This endows our method label-expandability, which enables our method to be practically applied in real world situation. We suggest three methods, each of which respectively using generative adversarial networks (GAN) (Goodfellow et al., 2014), variational auto-encoder (VAE) (Kingma & Welling, 2013), and principal component analysis (PCA) (Jolliffe, 2011) for H-Net and report the properties and performance of each method. Our H-Net can be combined with any other works such as LwF or PackNet. The combined H-Net and C-Net referred as HC-Net can prevent the catastrophic forgetting using a densely organized architecture and a highly reliable memory system. The contributions of this paper can be summarized as follows: ",
111
+ "bbox": [
112
+ 173,
113
+ 467,
114
+ 825,
115
+ 758
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "• Filters in the convolutional layers are allocated to each task and parameters from the previously learned tasks are shared among post tasks and used for the initialization of post tasks parameters, which makes the overall model compact and efficient. \n• Attaching filters whenever a new dataset is trained allows the model to be expandable as far as the physical constraints, such as memory and processing time constraints, allow. \n• To identify which portion of convolutional filters should be used to classify a data, a memory network (H-Net) is proposed with several methodologies. \n• The overall method is applicable to multi-task continual learning whose number of class labels increases over tasks. ",
122
+ "bbox": [
123
+ 215,
124
+ 773,
125
+ 825,
126
+ 924
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "image",
132
+ "img_path": "images/da0df10bb0079357dd40b2e4e7473a7490a92408d4a5087fefd1e8725576404d.jpg",
133
+ "image_caption": [
134
+ "Figure 2: Trainable parameters $W _ { k } ^ { T }$ (Orange) and frozen parameters $W _ { k } ^ { \\mathcal { P } }$ (Grey) in the C-Net training process. In the training process, the parameters (Orange), which are trainable parameters except frozen parameters (Grey), are updated. $x$ denotes the spatial dimension of filters. "
135
+ ],
136
+ "image_footnote": [],
137
+ "bbox": [
138
+ 338,
139
+ 98,
140
+ 660,
141
+ 244
142
+ ],
143
+ "page_idx": 2
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "2 METHOD ",
148
+ "text_level": 1,
149
+ "bbox": [
150
+ 176,
151
+ 332,
152
+ 281,
153
+ 348
154
+ ],
155
+ "page_idx": 2
156
+ },
157
+ {
158
+ "type": "text",
159
+ "text": "We propose a memory-based incremental dual network system for continual learning that satisfies three properties as stated below. ",
160
+ "bbox": [
161
+ 173,
162
+ 366,
163
+ 823,
164
+ 395
165
+ ],
166
+ "page_idx": 2
167
+ },
168
+ {
169
+ "type": "text",
170
+ "text": "Property 1. The Hippocampus-Net (H-Net) offers the index about which part of the Cortex-Net (C-Net) should be used. ",
171
+ "bbox": [
172
+ 173,
173
+ 401,
174
+ 823,
175
+ 429
176
+ ],
177
+ "page_idx": 2
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "Property 2. The C-Net learns the knowledge on the new task under the presence of the previously learned knowledge. ",
182
+ "bbox": [
183
+ 174,
184
+ 436,
185
+ 823,
186
+ 465
187
+ ],
188
+ "page_idx": 2
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "Property 3. H-Net and C-Net are flexible to the expansion of the network and as many new tasks can be learned in one network as physical constraints allow. ",
193
+ "bbox": [
194
+ 174,
195
+ 472,
196
+ 820,
197
+ 501
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "In this respect, our proposed H-Net works as a hippocampus of a human brain in that it gives a summarized information to the C-Net. Also, the C-Net corresponds to the human cortex in terms of its ability to learn semantic knowledge. ",
204
+ "bbox": [
205
+ 174,
206
+ 507,
207
+ 825,
208
+ 549
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "2.1 CORTEX NETWORK (C-NET) ",
215
+ "text_level": 1,
216
+ "bbox": [
217
+ 176,
218
+ 570,
219
+ 411,
220
+ 585
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "We propose an efficient way to allocate the capacity to a network according to the given tasks. C-Net is an expandable network where additional filters can be attached whenever a new task is given. It can be applied to many typical networks such as VGG and ResNet (Simonyan & Zisserman, 2014; He et al., 2016). The only difference with the original versions of those networks is that it uses different parts of filters for different tasks. As shown in (Li et al., 2016), typical CNN are capable of maintaining their performance even when the majority of their parameters are pruned. This implies that filters in a CNN contains a lot of unnecessary or redundant information. Also, sharing the filters among different tasks inevitably leads to the catastrophic forgetting of the network since the parameters trained by an old task should be replaced with those trained by a new task. For these reasons, we utilize a network divided into several parts and refer it as C-Net where each part takes charge of a particular task. ",
227
+ "bbox": [
228
+ 174,
229
+ 598,
230
+ 825,
231
+ 751
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "While training the C-Net with several tasks, each task uses a different part of the C-Net. For the convenience of referring which segments of the C-Net are to be activated, we introduce a filter index $I ^ { \\mathcal { I } }$ for the $\\mathcal { I }$ -th task. The filter index $I ^ { \\mathcal { I } }$ defines the range of filters to use for the specific task $\\mathcal { I }$ in every layers. For example, if the filter index $I ^ { 1 }$ equals to ten, the first task uses filters from the first to the tenth filter. ",
238
+ "bbox": [
239
+ 174,
240
+ 758,
241
+ 825,
242
+ 828
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "Depicted in Figure 2, $I _ { k } ^ { \\mathcal { I } }$ denotes the filter index in the $k$ -th layer corresponding to the task $\\mathcal { I }$ . This equals to the number of output channels in the sequent feature map. $I _ { k } ^ { \\mathcal { P } }$ denotes the filter index in the $k$ -th layer for the previous task. As the same principle is applied to the precedent $( k - 1 )$ -th layer, the number of input channels for the filters in the $k$ -th layer will change likewise. That is, total of $I _ { k } ^ { \\mathcal { P } }$ filters have the channel length of $I _ { k - 1 } ^ { \\mathcal { P } }$ when the previous task is under training. As the new task is given, the length of the filters become $I _ { k - 1 } ^ { \\mathcal { I } }$ since the filters in the prior layer will deliver a feature ",
249
+ "bbox": [
250
+ 173,
251
+ 834,
252
+ 825,
253
+ 925
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Input: $W ^ { \\mathcal { I } } , I ^ { \\mathcal { P } } , I ^ { \\mathcal { I } }$ ",
260
+ "bbox": [
261
+ 174,
262
+ 123,
263
+ 312,
264
+ 138
265
+ ],
266
+ "page_idx": 3
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Output: W J ∗ ",
271
+ "bbox": [
272
+ 174,
273
+ 140,
274
+ 272,
275
+ 152
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "1: Freeze the $W ^ { \\mathcal { P } } \\subset W ^ { \\mathcal { I } }$ using the information $I ^ { \\mathcal { P } }$ 2: Initialize the $W ^ { \\tau }$ with $W ^ { \\mathcal { P } }$ and a random noise 3: $W ^ { \\mathcal { I } * } \\arg \\operatorname* { m i n } ( \\mathcal { L } _ { c } )$ {Update $W ^ { \\breve { T } }$ using backpropagation} ",
282
+ "bbox": [
283
+ 181,
284
+ 151,
285
+ 521,
286
+ 210
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "map whose length is $I _ { k - 1 } ^ { \\mathcal { I } }$ . Therefore, both the number of input and output channels increases as the number of tasks increases until the physical constraints allow. ",
293
+ "bbox": [
294
+ 171,
295
+ 242,
296
+ 823,
297
+ 271
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Weight parameters of $\\mathcal { I }$ -th task in filters of the $k$ -th layer are referred as $W _ { k } ^ { \\mathcal { I } } \\in R ^ { x \\times x \\times I _ { k - 1 } ^ { \\mathcal { I } } \\times I _ { k } ^ { \\mathcal { I } } }$ , where $x$ means the size of the kernel while $\\begin{array} { r } { W _ { k } ^ { \\mathcal { P } } \\in R ^ { x \\times x \\times I _ { k - 1 } ^ { \\mathcal { P } } \\times I _ { k } ^ { \\mathcal { P } } } } \\end{array}$ are the weight parameters of the previous task. When training the new task, $W _ { k } ^ { \\mathcal { I } }$ is used for inference but only the parameters $w \\in W _ { k } ^ { \\mathcal { T } }$ $( W _ { k } ^ { \\mathcal { T } } = W _ { k } ^ { \\mathcal { I } } \\setminus W _ { k } ^ { \\mathcal { P } } )$ are updated while leaving $W _ { k } ^ { \\mathcal { P } }$ fixed. Note that biases in the filters can also be trained likewise as explained above. The fully connected layer located just before the linear classifier can be divided as well into the sections of $\\dot { I } ^ { \\mathcal { I } }$ and $I ^ { \\mathcal { P } }$ . ",
304
+ "bbox": [
305
+ 173,
306
+ 280,
307
+ 825,
308
+ 375
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "To enhance the performance, slices of trained parameters $W ^ { \\mathcal { P } }$ from the old task are duplicated to the newly available task parameters $W ^ { T }$ and Gaussian noise is added to them for the sake of good initialization. Then, the network is trained in a standard way, e.g., using a cross-entropy loss $\\mathcal { L } _ { c }$ . Independent linear classifiers are used for every tasks. This scheme of C-Net can also be applied to structures using shortcut connections such as ResNet. The overall training process is shown in Algorithm 1. ",
315
+ "bbox": [
316
+ 174,
317
+ 380,
318
+ 825,
319
+ 464
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "2.2 HIPPOCAMPUS NETWORK (H-NET) ",
326
+ "text_level": 1,
327
+ "bbox": [
328
+ 176,
329
+ 483,
330
+ 457,
331
+ 498
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "Even if the C-Net is well trained separately with several tasks, the task index $\\mathcal { I }$ must be given at the time of inference. Especially when the class labels expand, this prior information $\\mathcal { I }$ is necessary to estimate which group of class labels to use. In the testing step, existing methods needs the exact origination of the input data. However in the real world, a given data for classification normally does not offer any information about its origination. Therefore, this prior knowledge should be estimated by an independent network. ",
338
+ "bbox": [
339
+ 174,
340
+ 511,
341
+ 825,
342
+ 594
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "To solve this problem, we introduce the Hippocampus network (H-Net) using several different methods (GAN, VAE and PCA), which is able to estimate the task $\\mathcal { I }$ of the given input data and inform this to the C-Net to specify which filters to use. In this paper, we explain the GAN method as a representative and other methods are explained in Appendix A. ",
349
+ "bbox": [
350
+ 173,
351
+ 602,
352
+ 825,
353
+ 659
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "2.2.1 GENERATIVE ADVERSARIAL NETWORKS (GAN) ",
360
+ "text_level": 1,
361
+ "bbox": [
362
+ 174,
363
+ 676,
364
+ 562,
365
+ 690
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "This method is inspired by the on-line replay method used for continual learning (Shin et al., 2017). We train a task-specific generative model $G _ { \\mathcal { I } }$ using a GAN to generate pseudo-samples of task $\\mathcal { I }$ . The generator is trained using the adversarial loss as follows: ",
372
+ "bbox": [
373
+ 174,
374
+ 700,
375
+ 825,
376
+ 743
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/ac1556454e211a62fbafd3b50e62e15ccd436f9fa15792c42534487bd513252b.jpg",
383
+ "text": "$$\n\\operatorname* { m i n } _ { G , \\mathcal { T } } \\operatorname* { m a x } _ { D , \\mathcal { T } } V ( D _ { \\mathcal { T } } , G _ { \\mathcal { T } } ) = \\mathbb { E } _ { \\boldsymbol { x } \\sim P _ { d a t a } ^ { \\mathcal { T } } } [ \\mathrm { l o g } ( D _ { \\mathcal { T } } ( \\boldsymbol { x } ) ] + \\mathbb { E } _ { \\boldsymbol { z } \\sim p _ { \\mathcal { z } } ( \\boldsymbol { z } ) } [ \\mathrm { l o g } ( 1 - D _ { \\mathcal { T } } ( G _ { \\mathcal { T } } ( \\boldsymbol { z } ) ) ] .\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 225,
387
+ 766,
388
+ 774,
389
+ 791
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Here, $D _ { \\mathcal { I } }$ is a discriminator for the task $\\mathcal { I }$ and $x$ is a sample from the task $\\mathcal { I }$ . ",
396
+ "bbox": [
397
+ 178,
398
+ 796,
399
+ 689,
400
+ 813
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "After generating samples of all tasks, a task-wise binary classifier $B _ { \\mathcal { I } }$ is trained to classify whether the given input is from the task $\\mathcal { I }$ or not. Note that only the generated samples are involved for the training of each binary classifier $B _ { \\mathcal { I } }$ . This means that positive samples are from the generator $G _ { \\mathcal { I } }$ for the task $\\mathcal { I }$ and negative samples are from all the other task generators $G _ { \\kappa }$ $( \\forall \\boldsymbol { K } \\neq \\mathcal { T }$ ). ",
407
+ "bbox": [
408
+ 174,
409
+ 818,
410
+ 825,
411
+ 875
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "In the testing phase, each classifier produces the probability of how likely the given unknown input data is from the task $\\mathcal { I }$ . The classifier $B _ { i }$ with the highest probability assumes that the input data is from the task $i$ . H-Net can figure out the task $\\mathcal { I }$ of input data with maximum probability across the set of classifiers. H-Net gives this estimated task index $\\mathcal { I }$ to the C-Net. The H-Net using GAN can be summarized as below: ",
418
+ "bbox": [
419
+ 174,
420
+ 881,
421
+ 823,
422
+ 924
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "",
429
+ "bbox": [
430
+ 171,
431
+ 102,
432
+ 825,
433
+ 132
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "equation",
439
+ "img_path": "images/54462def6348af8ef6b3cfa2568cc95dd246e2aa8026e93195df1caf695bb239.jpg",
440
+ "text": "$$\n\\begin{array} { r l } & { \\mathrm { I n i t i a l i z a t i o n : } \\qquad B = \\{ B _ { 1 } , B _ { 2 } , . . . , B _ { N } \\} } \\\\ & { \\mathrm { T r a i n i n g : } \\quad B _ { i } ( x ) = \\left\\{ 1 \\quad \\mathrm { i f } x \\mathrm { i s f r o m } G _ { i } \\right. } \\\\ & { \\mathrm { I n f e r e n c e : } \\qquad \\mathcal { I } = \\arg \\underset { i } { \\operatorname { i f } } x \\mathrm { i s f r o m } G _ { j } \\forall j \\neq i } \\end{array}\n$$",
441
+ "text_format": "latex",
442
+ "bbox": [
443
+ 333,
444
+ 151,
445
+ 661,
446
+ 238
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "3 EXPERIMENT ",
453
+ "text_level": 1,
454
+ "bbox": [
455
+ 174,
456
+ 252,
457
+ 316,
458
+ 268
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "We evaluate our method on several image classification datasets. First, we verify the effectiveness of our method with MNIST (LeCun et al., 1998), SVHN (Netzer et al., 2011) and CIFAR-10 (Krizhevsky & Hinton, 2009) which are widely used to evaluate image classification performance. Then, we evaluate our method on two subsets of ImageNet (Russakovsky et al., 2015) which is a realistic image dataset. More details are summarized in Table 1. ",
465
+ "bbox": [
466
+ 174,
467
+ 284,
468
+ 825,
469
+ 353
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "We compare our method to various methods such as Elastic Weight Consolidation (EWC), Learning without forgetting (LwF), less-forgetful learning (LF) and PackNet as well as networks trained for a single target task which shows the performance without conducting continual learning. We use the GAN method for H-Net in all the experiments as a representative. To solely examine the influence of H-Net on our method (HC-Net), we have conducted experiments with the same experimental scenarios on the HC-Net experiments. In Table 2, each row shows the result of one among GAN, VAE and PCA. In Table 3 and Table 4, the result of ‘HC-Net (without H-Net)’ shows the performance of the C-Net only. That is, it assumes that the H-Net never fails and the task index $\\mathcal { I }$ is always given correctly. Likewise, LwF and PackNet need prior knowledge of a given input to know which classifier to use. As there is no structure like H-Net in the original paper, The actual comparison must be done with ‘C-Net’. ",
476
+ "bbox": [
477
+ 174,
478
+ 359,
479
+ 825,
480
+ 512
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "3.1 CONTINUAL LEARNING USING BASIC IMAGE CLASSIFICATION DATASETS ",
487
+ "text_level": 1,
488
+ "bbox": [
489
+ 176,
490
+ 530,
491
+ 714,
492
+ 544
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "We have built three experimental scenarios to evaluate our method using basic image classification datasets. We compare the performance of learning a consecutive two task pair among MNIST, SVHN and CIFAR-10 dataset. After that, we conduct multiple-task continual learning with these datasets. In these experiments, we use the same learning hyperparameters and network architectures suggested in (Jung et al., 2018) used for ‘Tiny image classification’. Training details are reported in Appendix B. ",
499
+ "bbox": [
500
+ 174,
501
+ 555,
502
+ 825,
503
+ 638
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "3.1.1 MNIST → SVHN ",
510
+ "text_level": 1,
511
+ "bbox": [
512
+ 176,
513
+ 654,
514
+ 354,
515
+ 667
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "After selecting a subset of SVHN to equalize the number of training data between MNIST and SVHN, images are resized to $2 8 \\times 2 8$ as in (Jung et al., 2018). The results of Modified LwF, EWC and LF are referred from (Jung et al., 2018). Modified LwF is sligthly different from the original LwF in that the old output $\\hat { Y } _ { o }$ and new outputs $\\hat { Y _ { n } }$ is united into a single output. The ‘single network’ in Table 3 is a network of full capacity trained using a single dataset. The column ‘Old’ represents the test accuracy on the previously learnt task and ‘New’ is that of the newly trained task . The value $\\gamma$ for EWC is determined as in (Kirkpatrick et al., 2017). A knowledge distillation loss with hyper-parameters of $T = 2$ and $T = 1$ is used for LwF, referred as temperature in (Hinton et al., 2015). ",
522
+ "bbox": [
523
+ 173,
524
+ 678,
525
+ 825,
526
+ 805
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "As MNIST and SVHN highly resemble each other, the accuracy of all methods are relatively high. LF demonstrate better average classification rates than Modified LwF and EWC. LwF can control the performance trade-off between the old and new task by changing the temperature parameter $T$ . The bigger $T$ is, the lower the accuracy drops but it still outperforms those of the methods mentioned above. PackNet almost maintains the performance of the single network for the first task with less than $2 \\%$ drop in accuracy. HC-Net outperforms all other methods in the table. Note that the prior knowledge to select which task is given in experiments of other methods. Therefore, our HC-Net without H-Net (i.e., C-Net), which shows the highest in performance, should be compared to other baseline methods. Nonetheless, our full model, HC-Net also outperforms PackNet, especially on the second task by around $0 . 7 \\%$ . ",
533
+ "bbox": [
534
+ 174,
535
+ 811,
536
+ 825,
537
+ 924
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "table",
543
+ "img_path": "images/5e49759128a4d4657fbbbcc0041f7120038451332ca2aca6a4e75cef8bb92a40.jpg",
544
+ "table_caption": [
545
+ "Table 1: Details of datasets. "
546
+ ],
547
+ "table_footnote": [],
548
+ "table_body": "<table><tr><td>Datasets</td><td>#ofTrain data</td><td>#of Test data</td><td>#of Class</td></tr><tr><td>MNIST</td><td>60,000</td><td>10,000</td><td>10</td></tr><tr><td>SVHN</td><td>73,275</td><td>26.032</td><td>10</td></tr><tr><td>CIFAR-10</td><td>50,000</td><td>10.000</td><td>10</td></tr><tr><td>ImageNet-A</td><td>64,750</td><td>2.500</td><td>50</td></tr><tr><td>ImageNet-B</td><td>64,497</td><td>2,500</td><td>50</td></tr></table>",
549
+ "bbox": [
550
+ 174,
551
+ 140,
552
+ 434,
553
+ 203
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "table",
559
+ "img_path": "images/6c36330d92565e178500de8eba2a1658296de5a4815c477f8101eece353a9ecc.jpg",
560
+ "table_caption": [
561
+ "Table 2: Experimental results of H-Net on the basic datasets "
562
+ ],
563
+ "table_footnote": [],
564
+ "table_body": "<table><tr><td>Datasets</td><td>Methods</td><td>Old(%)</td><td>New(%)</td></tr><tr><td>MNIST √ SVHN</td><td>GAN VAE PCA</td><td>100 100 100</td><td>99.94 99.85 100</td></tr><tr><td>SVHN √ CIFAR-10</td><td>GAN VAE PCA</td><td>97.00 71.07 93.28</td><td>99.90 97.06 92.5</td></tr><tr><td>Datasets</td><td></td><td>Methods MNIST(%)</td><td>SVHN(%) CIFAR(%)</td></tr><tr><td>MNIST</td><td>GAN</td><td>100 96.65</td><td>99.83</td></tr><tr><td>→ SVHN →CIFAR-10</td><td>VAE PCA 100</td><td>100 71.22 93.28</td><td>97.07 92.5</td></tr></table>",
565
+ "bbox": [
566
+ 173,
567
+ 241,
568
+ 434,
569
+ 373
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "table",
575
+ "img_path": "images/2fc75a46b6a3cad731d1f731156835169ce4dd23aa37268f4815c9ff9433ce4c.jpg",
576
+ "table_caption": [
577
+ "Table 3: Mean classification results on the basic datasets (5 runs). "
578
+ ],
579
+ "table_footnote": [],
580
+ "table_body": "<table><tr><td>Datasets</td><td>Methods</td><td>Old(%)</td><td></td><td>New(%) Avg.(%)</td></tr><tr><td rowspan=\"2\">MNIST √ SVHN SVHN</td><td>single network (MNIST) single network (SVHN) ModifiedLwF EWC(y = 2.32 × 104) LF(λe = 1.6 × 10-3)</td><td>99.49 1 94.78 94.15 97.37</td><td>92.82 83.77 79.31 83.79</td><td>1 1 89.28 86.73 90.58</td></tr><tr><td>LwF(T=1) LwF(T=2) PackNet HC-Net HC-Net (without H-Net) single network (SVHN) single network (CIFAR)</td><td>98.27 97.33 99.45 99.43 99.43 92.94</td><td>86.40 86.97 91.49 92.20 92.37 一 79.69</td><td>92.34 92.15 95.47 95.82 95.90 1</td></tr><tr><td colspan=\"2\">√ CIFAR-10</td><td>1 LF(λe=2.0 ×10-3) 83.18 91.76 90.19 92.84 90.05</td><td>48.99 70.57 71.94 76.78 76.62</td><td>1 66.09 81.17 81.07 84.81 83.34</td></tr><tr><td>Datasets</td><td colspan=\"2\">HC-Net (without H-Net) Methods</td><td>92.21 76.70 MNIST(%)SVHN(%)CIFAR(%)Avg(%)</td><td>84.46</td></tr><tr><td>MNIST ↓ SVHN √ CIFAR-10</td><td colspan=\"2\">single network (MNIST) 99.44 single network (SVHN) 二 single network (CIFAR) = LF(λe=1.0×10-) 89.57 LwF(T=1) 95.06 LwF(T= 2) 86.09 PackNet 99.38</td><td colspan=\"2\">一 92.94 79.69 72.1 45.43</td></tr></table>",
581
+ "bbox": [
582
+ 446,
583
+ 101,
584
+ 823,
585
+ 412
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "",
592
+ "bbox": [
593
+ 173,
594
+ 478,
595
+ 823,
596
+ 507
597
+ ],
598
+ "page_idx": 5
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "3.1.2 ",
603
+ "text_level": 1,
604
+ "bbox": [
605
+ 176,
606
+ 522,
607
+ 377,
608
+ 539
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "In this experiment, we want to see the performance of the proposed method when the statistics of the two tasks are quite different. The datasets SVHN and CIFAR-10 have a clear distinction in image styles and colors. For LF whose classifier must be shared between the old and new tasks, this inevitably leads to a significant decrease in performance. LwF and PackNet show similar trends as that of ‘MNIST to SVHN’. Higher temperature $( T )$ induces better performance in the new task but a bit of degradation in average performance still occurs. PackNet experiences almost no performance degradation. The pruning method of PackNet acts like a generalization method and helps the model to maintain its capacity. The average performance of C-Net is slightly lower than that of PackNet by $0 . 3 5 \\%$ . However, note that PackNet requires additional finetuning after the pruning process and takes additional time for training. On the other hand, C-Net requires no additional pruning or finetuning precedure and yet retains the performance. ",
615
+ "bbox": [
616
+ 173,
617
+ 547,
618
+ 825,
619
+ 700
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "3.1.3 ",
626
+ "text_level": 1,
627
+ "bbox": [
628
+ 174,
629
+ 715,
630
+ 457,
631
+ 731
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "Training three or more tasks is unmanageable for the models using regularization methods. LF scored an average accuracy of no more than $6 9 . 0 3 \\%$ , which is much more lower than any other methods. No matter how we change the temperature $( T )$ , LwF suffers from a drop in average performance, especially in the third task. Also, even though the proportion allocated to each task is equivalent between the PackNet and our methods (HC-Net and C-Net), our method highly outperforms the PackNet in the third task. This implies that HC-Net is more suitable for multi-task sequential learning situation. ",
638
+ "bbox": [
639
+ 174,
640
+ 741,
641
+ 825,
642
+ 838
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "3.2 CONTINUAL LEARNING USING REALISTIC DATASETS ",
649
+ "text_level": 1,
650
+ "bbox": [
651
+ 174,
652
+ 856,
653
+ 576,
654
+ 869
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "ImageNet contains images more realistic than other datasets used in this paper. Higher resolution and complex backgrounds make the classification even harder. To save the training time, two subsets of the ImageNet dataset each having 50 randomly chosen classes have been used for evaluation. They are referred to as ImageNet-A and ImageNet-B respectively in this paper. To show the adaptability of our method on structures having shortcut connections, ResNet-50 is used for the experiment. We use the same experimental setting as in (He et al., 2016) with a batch size of 128. We compare our C-Net with LwF and PackNet. ",
661
+ "bbox": [
662
+ 176,
663
+ 882,
664
+ 825,
665
+ 924
666
+ ],
667
+ "page_idx": 5
668
+ },
669
+ {
670
+ "type": "table",
671
+ "img_path": "images/7c006c6def734db8b0de491adc26138e2c28247ead1b018621f668de1265eb3a.jpg",
672
+ "table_caption": [
673
+ "Table 4: Mean classification results for the realistic dataset (2 runs) "
674
+ ],
675
+ "table_footnote": [],
676
+ "table_body": "<table><tr><td>datasets</td><td>Methods</td><td>Old(%)</td><td>New(%)</td><td>Avg.(%)</td></tr><tr><td rowspan=\"4\">ImageNet-A √ ImageNet-B</td><td>single network(ImageNet-A)</td><td>83.28</td><td>一</td><td>1</td></tr><tr><td>single network (ImageNet-B)</td><td>1 82.2</td><td>85.28</td><td>1</td></tr><tr><td>LwF(T=1)</td><td></td><td>86.72</td><td>84.46</td></tr><tr><td>LwF(T= 2)</td><td>80.92</td><td>86.96</td><td>83.94</td></tr><tr><td rowspan=\"2\"></td><td>PackNet</td><td>82.16</td><td>88.72</td><td>85.44</td></tr><tr><td>HC-Net (without H-Net)</td><td>83.30</td><td>88.66</td><td>85.98</td></tr></table>",
677
+ "bbox": [
678
+ 271,
679
+ 101,
680
+ 727,
681
+ 185
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "table",
687
+ "img_path": "images/8729df3689b888c044728f7949f1257e9f76135613d71476bab1de8b46b7083b.jpg",
688
+ "table_caption": [
689
+ "Table 5: Performances of the old (MNIST) and new (SVHN) tasks with different initialization methods: 1) initialization with only random Gaussian noise and 2) the pretrained parameter added by random Gaussian noise "
690
+ ],
691
+ "table_footnote": [],
692
+ "table_body": "<table><tr><td>Initialization</td><td>0ld(%)</td><td>New(%)</td><td>Avg.(%)</td></tr><tr><td>Random</td><td>99.42</td><td>91.67</td><td>95.55</td></tr><tr><td>Pretrained parameters</td><td>99.43</td><td>92.37</td><td>95.90</td></tr></table>",
693
+ "bbox": [
694
+ 334,
695
+ 224,
696
+ 663,
697
+ 263
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "",
704
+ "bbox": [
705
+ 174,
706
+ 342,
707
+ 825,
708
+ 397
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "Table 4 shows the results on the ImageNet dataset. The ‘Old’ accuracy of all methods slightly dropped from those of single networks. Like in the ‘SVHN to CIFAR- $1 0 ^ { \\circ }$ experiment, PackNet shows a better result than the LwF regardless of the value of $T$ . The result of C-Net is almost identical to PackNet with a slight increase in the average accuracy. ",
715
+ "bbox": [
716
+ 174,
717
+ 404,
718
+ 823,
719
+ 460
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "PackNet actually utilizes more parameters for each task than C-Net does. Since the masks force weights with no influence to be zero and utilize the well trained remaining weights, PackNet can make good use of the entire network. However in C-Net, just adding filters gradually without any other post-processing performs well enough compared to PackNet. When the model of an initially designed size is fully occupied by several tasks, C-Net can just add more filters and train them along with the trained filters while this is not the case of PackNet. Furthermore, PackNet requires additional memories to store the masks for all filters in it. C-Net needs only one integer per layer for each task. For these reasons, C-Net is far more efficient than the PackNet with no loss in performance. ",
726
+ "bbox": [
727
+ 174,
728
+ 467,
729
+ 825,
730
+ 579
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "3.3 ABLATION STUDY ON THE EFFICIENCY OF C-NET ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 174,
740
+ 597,
741
+ 555,
742
+ 609
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "As mentioned in Section 2.1, our C-Net appends filters whenever a new task is to be trained. In this process, parameters learned from previous tasks are utilized altogether and the parameters which are to be trained newly are initialized using the existing ones. We conduct experiments to show the effect of these methods. Experiments are carried out in ‘MNIST to SVHN’ case as a representative. ",
749
+ "bbox": [
750
+ 174,
751
+ 621,
752
+ 825,
753
+ 678
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "3.3.1 INITIALIZATION WITH PRETRAINED PARAMETERS ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 174,
763
+ 693,
764
+ 573,
765
+ 707
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "To analyse the effectiveness of initialization using pretrained old task parameters with random Gaussian noise, we compare the accuracy between a model initializing the new parameters with just a random Gaussian distribution and a model initializing the new task parameters using the pretrained old task parameters with additional random Gaussian noise. In Table 5, the model initialized by our method obviously shows higher accuracy on the SVHN task. This result implies that a good initialization prevents the model from going through a local minima. ",
772
+ "bbox": [
773
+ 174,
774
+ 717,
775
+ 825,
776
+ 801
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "3.3.2 PARAMETER SHARING ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 815,
787
+ 383,
788
+ 830
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "We verify the effect of the parameter sharing between the old task and the new task. The baseline method is a model where the old parameters are filled with random Gaussian initialization and no further training is done. The new parameters in the model have to learn knowledges from the new task without the aid of old parameters since they are fixed from the beginning. On the other hand, the old parameters in our method is trained by the old task and the new parameters can make use of these learnt knowledges to learn the new task. To solely observe the effect of the parameter sharing, both methods do not use our parameter initialization method mentioned in the previous section. The task indices $I ^ { 1 }$ and $I ^ { 2 }$ are $\\{ 1 6 , 1 6 , 3 2 \\}$ and $\\{ 1 8 , 1 8 , 3 4 \\}$ respectively. The model using parameter sharing converges far more faster than the model with no parameter sharing which is shown in Figure 3. Also the final error rate of our method is lower than the other. Increasing the number of indices elevation enhances our method by $6 . 3 8 \\%$ and the other model by $7 . 9 1 \\%$ shown in Table 6. This implies that the parameter sharing improves the model and allow it to be compact with fewer numbers of filters. ",
795
+ "bbox": [
796
+ 174,
797
+ 840,
798
+ 825,
799
+ 922
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "image",
805
+ "img_path": "images/d23170eb7767a0fb74e8d8a3b06991296184d1f4092acd3844393ea1fb9e66e7.jpg",
806
+ "image_caption": [
807
+ "Figure 3: Error rate comparison between sharing the parameters which learned previous task and random parameters. "
808
+ ],
809
+ "image_footnote": [],
810
+ "bbox": [
811
+ 183,
812
+ 103,
813
+ 472,
814
+ 244
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "table",
820
+ "img_path": "images/5758681bd04fa6f2f9e2cb16451cb34c07ca0bc823114ddfd246f7e80dc823c9.jpg",
821
+ "table_caption": [
822
+ "Table 6: The performances on the new task while increasing the filter index of the model using parameter sharing and the model with fixed random parameters. "
823
+ ],
824
+ "table_footnote": [],
825
+ "table_body": "<table><tr><td>#ofincreasingeach index</td><td>Ours(%)</td><td>Random(%)</td></tr><tr><td>2</td><td>80.60</td><td>78.10</td></tr><tr><td>4</td><td>85.31</td><td>83.85</td></tr><tr><td>6</td><td>86.98</td><td>86.01</td></tr></table>",
826
+ "bbox": [
827
+ 511,
828
+ 180,
829
+ 823,
830
+ 231
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "",
837
+ "bbox": [
838
+ 174,
839
+ 325,
840
+ 825,
841
+ 410
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "3.4 H-NET ",
848
+ "text_level": 1,
849
+ "bbox": [
850
+ 174,
851
+ 429,
852
+ 264,
853
+ 444
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "The results of H-Net are reported in Table 2. In ‘MNIST to SVHN’, all methods approximates the results to perfection. Despite of the similar appearance of these two datasets, VAE has been able to generate distinct outputs. If a sample in the MNIST dataset is given, the result from the VAE trained for SVHN resembles those of the SVHN dataset. In other words, auto-encoders of each task tends to memorize only what they used for training. PCA is completely able to discriminate the origin of the images from MNIST and SVHN. Particularly in this experiment, even when using a single eigenvector with the least eigen-value showed a result of $100 \\%$ and $9 9 . 7 \\%$ . According to the dataset, PCA can highly reduce the computational cost as well as the memory resource. ",
860
+ "bbox": [
861
+ 174,
862
+ 455,
863
+ 825,
864
+ 568
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "In ‘SVHN to CIFAR- $\\mathbf { \\Omega } _ { 1 0 } ^ { } ,$ , GAN showed the best discriminating performance. VAE shows a poor result on SVHN while the performance on CIFAR-10 remains more than $9 7 \\%$ . This means that the auto-encoder trained for CIFAR-10 reconstructs SVHN images well, leading to low reconstruction losses in both of the auto-encoders. With PCA, both datasets are able to separate from each other with chances more than $92 \\%$ . The experiments using all three datasets showed almost the same results as the experiments above. GAN definitely shows the best results among all methods introduced. ",
871
+ "bbox": [
872
+ 174,
873
+ 574,
874
+ 825,
875
+ 659
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "3.4.1 LIMITATION",
882
+ "text_level": 1,
883
+ "bbox": [
884
+ 176,
885
+ 676,
886
+ 313,
887
+ 690
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Generative models usually have difficulties in generating realistic images with high resolution and there are few researches experimented on ImageNet data. This incompetence makes the H-Net hard to be applied to the ImageNet data. Also, as the subgroups share the same statistics, PCA hardly catch the characteristic of each set. Experiments have shown poor results on ImageNet and we leave this for a future work. ",
894
+ "bbox": [
895
+ 174,
896
+ 700,
897
+ 825,
898
+ 770
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "4 CONCLUSION ",
905
+ "text_level": 1,
906
+ "bbox": [
907
+ 176,
908
+ 792,
909
+ 318,
910
+ 809
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "In this paper, we have proposed a novel framework which is able to divide its capacity into several parts and utilize them according to the given input. Composed of two networks, H-Net is responsible for memorizing “where the data came from” and complicated knowledges such as “what the data is” are engraved to the C-Net. To the best of our knowledge, our work, H-Net, is the first attempt to estimate the origin of data which used to be assumed as given in the previous works. As well as overcoming the catastrophic forgetting, HC-Net allows extra class labels when training a new dataset and also has expandability to the network architecture. ",
917
+ "bbox": [
918
+ 174,
919
+ 825,
920
+ 825,
921
+ 924
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "REFERENCES ",
928
+ "text_level": 1,
929
+ "bbox": [
930
+ 174,
931
+ 102,
932
+ 287,
933
+ 118
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Gyorgy Buzsaki. Rhythms of the Brain. Oxford University Press, 2006. ",
940
+ "bbox": [
941
+ 174,
942
+ 126,
943
+ 642,
944
+ 141
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "Joao Gama. Knowledge discovery from data streams. Chapman and Hall/CRC, 2010. ",
951
+ "bbox": [
952
+ 171,
953
+ 150,
954
+ 733,
955
+ 166
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Joao Gama and Mohamed Medhat Gaber. ˜ Learning from data streams: processing techniques in sensor networks. Springer, 2007. ",
962
+ "bbox": [
963
+ 171,
964
+ 176,
965
+ 825,
966
+ 205
967
+ ],
968
+ "page_idx": 8
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "Alexander Gepperth and Cem Karaoguz. A bio-inspired incremental learning architecture for applied perceptual problems. Cognitive Computation, 8(5):924–934, 2016. ",
973
+ "bbox": [
974
+ 171,
975
+ 214,
976
+ 823,
977
+ 244
978
+ ],
979
+ "page_idx": 8
980
+ },
981
+ {
982
+ "type": "text",
983
+ "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. ",
984
+ "bbox": [
985
+ 173,
986
+ 253,
987
+ 823,
988
+ 297
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
995
+ "bbox": [
996
+ 173,
997
+ 306,
998
+ 825,
999
+ 349
1000
+ ],
1001
+ "page_idx": 8
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 358,
1009
+ 823,
1010
+ 388
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Ian Jolliffe. Principal component analysis. In International encyclopedia of statistical science, pp. 1094–1096. Springer, 2011. ",
1017
+ "bbox": [
1018
+ 171,
1019
+ 397,
1020
+ 823,
1021
+ 428
1022
+ ],
1023
+ "page_idx": 8
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Heechul Jung, Jeongwoo Ju, Minju Jung, and Junmo Kim. Less-forgetful learning for domain expansion in deep neural networks, 2018. URL https://aaai.org/ocs/index.php/AAAI/ AAAI18/paper/view/17073. ",
1028
+ "bbox": [
1029
+ 173,
1030
+ 436,
1031
+ 825,
1032
+ 479
1033
+ ],
1034
+ "page_idx": 8
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. arXiv preprint arXiv:1711.10563, 2017. ",
1039
+ "bbox": [
1040
+ 169,
1041
+ 489,
1042
+ 823,
1043
+ 518
1044
+ ],
1045
+ "page_idx": 8
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1050
+ "bbox": [
1051
+ 169,
1052
+ 529,
1053
+ 825,
1054
+ 558
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "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, pp. 201611835, 2017. ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 566,
1064
+ 825,
1065
+ 625
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 633,
1075
+ 821,
1076
+ 662
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 672,
1086
+ 825,
1087
+ 703
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. ",
1094
+ "bbox": [
1095
+ 173,
1096
+ 712,
1097
+ 823,
1098
+ 741
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 750,
1108
+ 825,
1109
+ 780
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Arun Mallya and Svetlana Lazebnik. Packnet: Adding multiple tasks to a single network by iterative pruning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
1116
+ "bbox": [
1117
+ 176,
1118
+ 789,
1119
+ 825,
1120
+ 832
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 5, 2011. ",
1127
+ "bbox": [
1128
+ 176,
1129
+ 842,
1130
+ 823,
1131
+ 886
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
1138
+ "bbox": [
1139
+ 174,
1140
+ 895,
1141
+ 821,
1142
+ 924
1143
+ ],
1144
+ "page_idx": 8
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "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. doi: 10.1007/s11263-015-0816-y. ",
1149
+ "bbox": [
1150
+ 174,
1151
+ 103,
1152
+ 825,
1153
+ 160
1154
+ ],
1155
+ "page_idx": 9
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In Advances in Neural Information Processing Systems, pp. 2990–2999, 2017. ",
1160
+ "bbox": [
1161
+ 171,
1162
+ 167,
1163
+ 823,
1164
+ 196
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 207,
1174
+ 823,
1175
+ 234
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "APPENDIX A H-NET ",
1182
+ "text_level": 1,
1183
+ "bbox": [
1184
+ 176,
1185
+ 102,
1186
+ 361,
1187
+ 118
1188
+ ],
1189
+ "page_idx": 10
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "A.1 VARIATIONAL AUTO-ENCODER (VAE) ",
1194
+ "text_level": 1,
1195
+ "bbox": [
1196
+ 176,
1197
+ 133,
1198
+ 480,
1199
+ 148
1200
+ ],
1201
+ "page_idx": 10
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "This approach is based on the variational auto-encoder. VAE estimates the data distribution by approximating it to a Gaussian distribution. We trained auto-encoder for each task separately with the following reconstruction loss: ",
1206
+ "bbox": [
1207
+ 174,
1208
+ 160,
1209
+ 825,
1210
+ 202
1211
+ ],
1212
+ "page_idx": 10
1213
+ },
1214
+ {
1215
+ "type": "equation",
1216
+ "img_path": "images/7e949789c3cc151068fbbdff33ec55ab87c1b2eaeb0ec152f56c16b47d1fcc25.jpg",
1217
+ "text": "$$\n\\mathcal { L } _ { \\boldsymbol { r } } ( A E _ { \\mathcal { I } } ) = \\| \\boldsymbol { x } - A E _ { \\mathcal { I } } ( \\boldsymbol { x } ) \\| ^ { 2 }\n$$",
1218
+ "text_format": "latex",
1219
+ "bbox": [
1220
+ 397,
1221
+ 208,
1222
+ 601,
1223
+ 227
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "where $A E _ { \\mathcal { I } } ( x )$ is the reconstructed data from the auto-encoder for the task $\\mathcal { I }$ . As $A E _ { \\mathcal { I } }$ is trained only with samples of the task $\\mathcal { I }$ , samples from other tasks will produce large reconstruction loss by $A E _ { \\mathcal { I } }$ since they will not follow the trained distribution. In the testing phase, an unknown input data is given to all auto-encoders. Among the results from the trained auto-encoders, the task $\\mathcal { I }$ is determined to the one that has the smallest reconstruction error: ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 233,
1233
+ 825,
1234
+ 304
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "equation",
1240
+ "img_path": "images/dda9f033e218657c002d56434b72fae661c11df6dc948b919559518ad518910f.jpg",
1241
+ "text": "$$\n\\mathcal { T } = \\mathop { \\arg \\operatorname* { m i n } } _ { i } \\| x - A E _ { i } ( x ) \\| ^ { 2 } .\n$$",
1242
+ "text_format": "latex",
1243
+ "bbox": [
1244
+ 397,
1245
+ 310,
1246
+ 601,
1247
+ 337
1248
+ ],
1249
+ "page_idx": 10
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "A.2 PRINCIPAL COMPONENT ANALYSIS (PCA) ",
1254
+ "text_level": 1,
1255
+ "bbox": [
1256
+ 174,
1257
+ 352,
1258
+ 511,
1259
+ 367
1260
+ ],
1261
+ "page_idx": 10
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Another approach to separate a dataset from another is using PCA. Typically, PCA conducts dimensionality reduction over a given dataset and the projected features that have the biggest eigen-values are used to represent each sample. The bigger the eigen-value is, the more the corresponding eigenvector explains the variance of the dataset and the PCA-based reconstruction error similar to (4) can be used for the determination of the appropriate task. ",
1266
+ "bbox": [
1267
+ 173,
1268
+ 378,
1269
+ 825,
1270
+ 449
1271
+ ],
1272
+ "page_idx": 10
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "In this paper, instead of using principal components of top- $k$ eigen-values, we utilized those of the bottom- $k$ eigen-values. A small eigen-value indicates low variance over the projected coordinate. Therefore, a sample from other tasks is likely to be far from the origin in this projection while a sample from the original dataset is near the origin. If the matrix of the eigen-vectors corresponding to the top $L$ smallest eigen-values is denoted as $\\mathbf { W } _ { L } ^ { i }$ which is extracted from the $i$ -th dataset, a sample $x$ from an unknown origin can be projected to produce the projection vector $\\mathbf { T } _ { L } ^ { i } = x ^ { T } \\mathbf { W } _ { L } ^ { i }$ and the task can be found as the one that minimize the $L _ { 1 }$ or $L _ { 2 }$ norm of the vector as ",
1277
+ "bbox": [
1278
+ 173,
1279
+ 454,
1280
+ 825,
1281
+ 554
1282
+ ],
1283
+ "page_idx": 10
1284
+ },
1285
+ {
1286
+ "type": "equation",
1287
+ "img_path": "images/2167207f11172b273ed34356b07c5c52ab2f9602bb000c4fbdf9d1b7f6b1e3ea.jpg",
1288
+ "text": "$$\n\\mathcal { T } = \\arg \\operatorname* { m i n } _ { i } \\| \\mathbf { T } _ { L } ^ { i } \\| _ { p }\n$$",
1289
+ "text_format": "latex",
1290
+ "bbox": [
1291
+ 428,
1292
+ 560,
1293
+ 570,
1294
+ 587
1295
+ ],
1296
+ "page_idx": 10
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "where $p = 1$ or 2. In all our experiments, the number of eigen-vectors $\\mathbf { L }$ is set empirically to 1,000. ",
1301
+ "bbox": [
1302
+ 173,
1303
+ 593,
1304
+ 821,
1305
+ 609
1306
+ ],
1307
+ "page_idx": 10
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "APPENDIX B TRAINING DETAILS ",
1312
+ "text_level": 1,
1313
+ "bbox": [
1314
+ 176,
1315
+ 628,
1316
+ 465,
1317
+ 646
1318
+ ],
1319
+ "page_idx": 10
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "B.1 TRAINING DETAILS OF C-NET ",
1324
+ "text_level": 1,
1325
+ "bbox": [
1326
+ 176,
1327
+ 661,
1328
+ 426,
1329
+ 676
1330
+ ],
1331
+ "page_idx": 10
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "We use the same learning parameters and network architectures suggested in (Jung et al., 2018) used for ‘Tiny image classification’. It is composed of three convolutional layers using $5 \\times 5$ kernels with the size of 32, 32 and 64 channels respectively, three max pooling layers, one fully connected layer with 200 nodes and the last softmax classifier layer producing 10 outputs. ReLU is used as the activation function in all the experiments. Also an SGD optimizer with a mini-batch size of 100 has been used for model optimization. When training the old task, the weight decay and the momentum were set to 0.004 and 0.9 respectively. The learning rate starts from 0.01 and the decay of the learning rate with a factor 0.1 is done at the time of 20,000 iterations. After 40,000 iterations, the training is terminated in all the experiments. When training a new task, the training of several approaches including Modified LwF, EWC and LF starts with a learning rate of 0.0001 and is terminated at 10,000 iterations without learning rate decay as in (Jung et al., 2018). Unlike above methods, LwF, PackNet and HC-Net have the same settings for the old and new task because they need more iterations as the new parameters are to be trained from the scratch. Note that PackNet needs additional pruning and finetuning step. In the new task training of LwF, we start with a learning rate of 0.0002 and 0.001 which are $0 . 1 \\sim 0 . 0 2$ times less than that of old task for the ‘MNIST to SVHN’ and ‘SVHN to CIFAR-10’ respectively, as recommended in (Li & Hoiem, 2017). The channel split ratio which determines $I ^ { \\mathcal { I } }$ follows the setting of PackNet. ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 688,
1339
+ 825,
1340
+ 924
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "B.2 TRAINING DETAILS OF H-NET ",
1347
+ "text_level": 1,
1348
+ "bbox": [
1349
+ 176,
1350
+ 103,
1351
+ 428,
1352
+ 117
1353
+ ],
1354
+ "page_idx": 11
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "B.2.1 GAN ",
1359
+ "text_level": 1,
1360
+ "bbox": [
1361
+ 176,
1362
+ 128,
1363
+ 269,
1364
+ 143
1365
+ ],
1366
+ "page_idx": 11
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "We use the deep convolutional generative adversarial networks (DCGAN) (Radford et al., 2015). In all experiments of the basic image classification dataset, we use the size of latent vector to 200. The generator use the four transposed convolution layers which are using 512,256,128 and 3 channels with $4 \\times 4$ kernels, respectively and we use ReLU activation for all layers except for the output, which uses Tanh. Transposed convolution layers use 2 stride except the first layer. we use LeakyReLU activation in the discriminator for all layers. For the discriminator, the last convolution layer is flattened and then fed into a sigmoid output to discriminate. The architecture of discriminator is symmetrical to it of the generator. We use batchnorm in both generator and the discriminator. ",
1371
+ "bbox": [
1372
+ 173,
1373
+ 155,
1374
+ 825,
1375
+ 266
1376
+ ],
1377
+ "page_idx": 11
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "We use the Adam optimizer with learning rate of 0.0002 using the batch size of 64. The momentum term $\\beta 1$ set to 0.5 and we train the generator until 200 epochs. The generated samples of basic image classification dataset are shown in Figure 4(a), 5(a) and 6(a). ",
1382
+ "bbox": [
1383
+ 174,
1384
+ 273,
1385
+ 825,
1386
+ 315
1387
+ ],
1388
+ "page_idx": 11
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "For the binary classifier, we use the same network and experimental settings in (Jung et al., 2018) used for ‘Tiny image classification’. ",
1393
+ "bbox": [
1394
+ 174,
1395
+ 321,
1396
+ 818,
1397
+ 351
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "B.2.2 VAE ",
1404
+ "text_level": 1,
1405
+ "bbox": [
1406
+ 174,
1407
+ 367,
1408
+ 266,
1409
+ 382
1410
+ ],
1411
+ "page_idx": 11
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "We use the simplified VAE. we use two fully connected layer with a hidden layer with 400 units and 20 units for mean and variance of the latent state distributions. The decoder have an equal number of hidden units. ",
1416
+ "bbox": [
1417
+ 176,
1418
+ 392,
1419
+ 823,
1420
+ 434
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "We train the VAE with ReLU activation, sigmoid activation and Adam optimizer with a learning rate of 0.0001 using batch size of 128. We train the VAE until 100 epochs. ",
1427
+ "bbox": [
1428
+ 173,
1429
+ 441,
1430
+ 823,
1431
+ 469
1432
+ ],
1433
+ "page_idx": 11
1434
+ },
1435
+ {
1436
+ "type": "image",
1437
+ "img_path": "images/df24de6f3f2e16dc39da1f7505c3e24fd85d1617dcdf92b6edef025073d06245.jpg",
1438
+ "image_caption": [
1439
+ "Figure 4: MNIST dataset "
1440
+ ],
1441
+ "image_footnote": [],
1442
+ "bbox": [
1443
+ 204,
1444
+ 489,
1445
+ 794,
1446
+ 747
1447
+ ],
1448
+ "page_idx": 11
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "APPENDIX C RELATED WORK ",
1453
+ "text_level": 1,
1454
+ "bbox": [
1455
+ 176,
1456
+ 808,
1457
+ 436,
1458
+ 824
1459
+ ],
1460
+ "page_idx": 11
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "Dual memory network system has been suggested to overcome the low performance of the regularization methods and the inefficiency of the dynamic methods. Most of these researches try to mimic the brain system of mammals whose recognition process is believed to be done by the complementary contribution of the hippocampus and the cortex. In several researches, the hippocampus has been realized by networks replaying the previous dataset or determining whether the input is from the old dataset (Gepperth & Karaoguz, 2016; Kemker & Kanan, 2017). Shin et al. (2017) proposed a method of replaying previously encoded experiences using GAN and training the new task without the presence of the old dataset. ",
1465
+ "bbox": [
1466
+ 174,
1467
+ 840,
1468
+ 825,
1469
+ 924
1470
+ ],
1471
+ "page_idx": 11
1472
+ },
1473
+ {
1474
+ "type": "image",
1475
+ "img_path": "images/f9d7243ae53471a2e450d0a88b40fec1ea48dc187666e09955e120a3532a86a6.jpg",
1476
+ "image_caption": [
1477
+ "Figure 5: SVHN dataset "
1478
+ ],
1479
+ "image_footnote": [],
1480
+ "bbox": [
1481
+ 204,
1482
+ 107,
1483
+ 794,
1484
+ 363
1485
+ ],
1486
+ "page_idx": 12
1487
+ },
1488
+ {
1489
+ "type": "image",
1490
+ "img_path": "images/327670c06f2530c08e7677d7718b3b3d91979ae74143a9c635efd6c3e832e619.jpg",
1491
+ "image_caption": [
1492
+ "Figure 6: CIFAR-10 dataset "
1493
+ ],
1494
+ "image_footnote": [],
1495
+ "bbox": [
1496
+ 204,
1497
+ 411,
1498
+ 794,
1499
+ 670
1500
+ ],
1501
+ "page_idx": 12
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "",
1506
+ "bbox": [
1507
+ 174,
1508
+ 724,
1509
+ 823,
1510
+ 752
1511
+ ],
1512
+ "page_idx": 12
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "In the data mining field, multi-task learning can be seen as learning from data streams. Therefore, our method can be considered to be one of researches on learning methods from data streams (Gama & Gaber, 2007; Gama, 2010). ",
1517
+ "bbox": [
1518
+ 174,
1519
+ 760,
1520
+ 825,
1521
+ 803
1522
+ ],
1523
+ "page_idx": 12
1524
+ }
1525
+ ]
parse/train/rJgz8sA5F7/rJgz8sA5F7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgz8sA5F7/rJgz8sA5F7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rylqooRqK7/rylqooRqK7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rylqooRqK7/rylqooRqK7_model.json ADDED
The diff for this file is too large to render. See raw diff