ZHANGYUXUAN-zR commited on
Commit
034f953
·
verified ·
1 Parent(s): eacc95f

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. parse/train/1XwPDFrJObw/1XwPDFrJObw.md +361 -0
  2. parse/train/1XwPDFrJObw/1XwPDFrJObw_content_list.json +0 -0
  3. parse/train/1XwPDFrJObw/1XwPDFrJObw_middle.json +0 -0
  4. parse/train/1XwPDFrJObw/1XwPDFrJObw_model.json +0 -0
  5. parse/train/6OoCDvFV4m/6OoCDvFV4m.md +321 -0
  6. parse/train/6OoCDvFV4m/6OoCDvFV4m_content_list.json +1634 -0
  7. parse/train/6OoCDvFV4m/6OoCDvFV4m_middle.json +0 -0
  8. parse/train/6OoCDvFV4m/6OoCDvFV4m_model.json +0 -0
  9. parse/train/DNl5s5BXeBn/DNl5s5BXeBn.md +446 -0
  10. parse/train/DNl5s5BXeBn/DNl5s5BXeBn_content_list.json +2170 -0
  11. parse/train/DNl5s5BXeBn/DNl5s5BXeBn_middle.json +0 -0
  12. parse/train/DNl5s5BXeBn/DNl5s5BXeBn_model.json +0 -0
  13. parse/train/FjnCWyzXu8m/FjnCWyzXu8m.md +420 -0
  14. parse/train/FjnCWyzXu8m/FjnCWyzXu8m_content_list.json +887 -0
  15. parse/train/FjnCWyzXu8m/FjnCWyzXu8m_middle.json +0 -0
  16. parse/train/FjnCWyzXu8m/FjnCWyzXu8m_model.json +0 -0
  17. parse/train/HyxoX6EKvB/HyxoX6EKvB.md +354 -0
  18. parse/train/HyxoX6EKvB/HyxoX6EKvB_content_list.json +1786 -0
  19. parse/train/HyxoX6EKvB/HyxoX6EKvB_middle.json +0 -0
  20. parse/train/HyxoX6EKvB/HyxoX6EKvB_model.json +0 -0
  21. parse/train/OdklztJBBYH/OdklztJBBYH.md +316 -0
  22. parse/train/OdklztJBBYH/OdklztJBBYH_content_list.json +1252 -0
  23. parse/train/OdklztJBBYH/OdklztJBBYH_middle.json +0 -0
  24. parse/train/OdklztJBBYH/OdklztJBBYH_model.json +0 -0
  25. parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v.md +316 -0
  26. parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_content_list.json +1631 -0
  27. parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_middle.json +0 -0
  28. parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_model.json +0 -0
  29. parse/train/Skvd-myR-/Skvd-myR-.md +327 -0
  30. parse/train/Skvd-myR-/Skvd-myR-_content_list.json +1761 -0
  31. parse/train/Skvd-myR-/Skvd-myR-_middle.json +0 -0
  32. parse/train/Skvd-myR-/Skvd-myR-_model.json +0 -0
  33. parse/train/Syg-YfWCW/Syg-YfWCW.md +359 -0
  34. parse/train/Syg-YfWCW/Syg-YfWCW_content_list.json +0 -0
  35. parse/train/Syg-YfWCW/Syg-YfWCW_middle.json +0 -0
  36. parse/train/Syg-YfWCW/Syg-YfWCW_model.json +0 -0
  37. parse/train/SyxrxR4KPS/SyxrxR4KPS.md +320 -0
  38. parse/train/SyxrxR4KPS/SyxrxR4KPS_content_list.json +0 -0
  39. parse/train/SyxrxR4KPS/SyxrxR4KPS_middle.json +0 -0
  40. parse/train/SyxrxR4KPS/SyxrxR4KPS_model.json +0 -0
  41. parse/train/oXSw7laxwUpln/oXSw7laxwUpln.md +200 -0
  42. parse/train/oXSw7laxwUpln/oXSw7laxwUpln_content_list.json +1161 -0
  43. parse/train/oXSw7laxwUpln/oXSw7laxwUpln_middle.json +0 -0
  44. parse/train/oXSw7laxwUpln/oXSw7laxwUpln_model.json +0 -0
  45. parse/train/r1ZdKJ-0W/r1ZdKJ-0W.md +280 -0
  46. parse/train/r1ZdKJ-0W/r1ZdKJ-0W_content_list.json +1506 -0
  47. parse/train/r1ZdKJ-0W/r1ZdKJ-0W_middle.json +0 -0
  48. parse/train/r1ZdKJ-0W/r1ZdKJ-0W_model.json +0 -0
  49. parse/train/rkxmPgrKwB/rkxmPgrKwB.md +351 -0
  50. parse/train/rkxmPgrKwB/rkxmPgrKwB_content_list.json +0 -0
parse/train/1XwPDFrJObw/1XwPDFrJObw.md ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards Instance-Optimal Offline Reinforcement Learning with Pessimism
2
+
3
+ Ming Yin 1,2 and Yu-Xiang Wang1
4
+
5
+ 1Department of Computer Science, UC Santa Barbara 2Department of Statistics and Applied Probability, UC Santa Barbara ming_yin@ucsb.edu yuxiangw@cs.ucsb.edu
6
+
7
+ # Abstract
8
+
9
+ We study the offline reinforcement learning (offline RL) problem, where the goal is to learn a reward-maximizing policy in an unknown Markov Decision Process (MDP) using the data coming from a policy $\mu$ . In particular, we consider the sample complexity problems of offline RL for finite-horizon MDPs. Prior works study this problem based on different data-coverage assumptions, and their learning guarantees are expressed by the covering coefficients which lack the explicit characterization of system quantities. In this work, we analyze the Adaptive Pessimistic Value Iteration (APVI) algorithm and derive the suboptimality upper bound that nearly matches
10
+
11
+ $$
12
+ O \left( \sum _ { h = 1 } ^ { H } \sum _ { s _ { h } , a _ { h } } { d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) \sqrt { \frac { \mathrm { V a r } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } + r _ { h } ) } { d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } \sqrt { \frac { 1 } { n } } } \right) .
13
+ $$
14
+
15
+ In complementary, we also prove a per-instance information-theoretical lower bound under the weak assumption that $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > 0$ . Different from the previous minimax lower bounds, the per-instance lower bound (via local minimaxity) is a much stronger criterion as it applies to individual instances separately. Here $\pi ^ { \star }$ is a optimal policy, $\mu$ is the behavior policy and $d _ { h } ^ { \mu }$ is the marginal state-action probability. We call (1) the intrinsic offline reinforcement learning bound since it directly implies all the existing optimal results: minimax rate under uniform data-coverage assumption, horizon-free setting, single policy concentrability, and the tight problem-dependent results. Later, we extend the result to the assumption-free regime (where we make no assumption on $\mu$ ) and obtain the assumption-free intrinsic bound. Due to its generic form, we believe the intrinsic bound could help illuminate what makes a specific problem hard and reveal the fundamental challenges in offline RL.
16
+
17
+ # 1 Introduction
18
+
19
+ In offline reinforcement learning (offline RL Levine et al. [2020], Lange et al. [2012]), the goal is to learn a reward-maximizing policy in an unknown environment (Markov Decision Process or MDP) using the historical data coming from a (fixed) behavior policy $\mu$ . Unlike online RL, where the agent can keep interacting with the environment and gain new feedback by exploring unvisited state-action space, offline RL usually populates when such online interplays are expensive or even unethical. Due to its nature of without the access to interact with the MDP model (which causes the distributional mismatches), most of the literature that study the sample complexity / provable efficiency of offline RL (e.g. Le et al. [2019], Chen and Jiang [2019], Xie and Jiang [2020, 2021],
20
+
21
+ Yin et al. [2021a,b], Ren et al. [2021], Rashidinejad et al. [2021], Xie et al. [2021b]) rely on making different data-coverage assumptions for making the problem learnable and provide the near-optimal worst-case performance bounds that depend on their data-coverage coefficients. Those results are valuable in general as they do not depend on the structure of the particular problem, therefore, remain valid even for pathological MDPs. But is this good enough?
22
+
23
+ In practice, the empirical performances of offline reinforcement learning (e.g. Gulcehre et al. [2020], Fu et al. [2020, 2021], Janner et al. [2021]) are often far better than what those non-adaptive / problem-independent bounds would indicate. Although empirical evidence can help explain why we may observe better or worse performances on different MDPs, a systematic understanding of what types of decision processes and what kinds of behavior policies are inherently easier or more challenging for offline RL is lacking. Besides, despite the fact that a non-adaptive bound can learn even the pathological examples within the assumption family, there is no guarantee for the instances outside the family. However, practical offline reinforcement learning problems are usually beyond the scope of certain data-coverage assumptions, which limits the applicability of those results. Can we make as few assumptions as possible? Or even more, what can we guarantee when no assumption is made about offline learning?
24
+
25
+ Those motivate us to derive the provably efficient bounds that are adaptive to the individual instances but only require minimal assumptions so they can be widely applied in most cases. Ideally, such bounds should characterize the system structures of the specific problems, hold even for peculiar instances that do not satisfy the standard data-coverage assumptions, and recover the worst-case guarantees when the assumptions are satisfied. As mentioned in Zanette and Brunskill [2019], a fully adaptive characterization in RL is important as it might bring considerable saving in the time spent designing domain-specific RL solutions and in training a human expert to judge and recognize the complexity of different problems.
26
+
27
+ # 1.1 Our contribution
28
+
29
+ In this work, we provide the analysis for the adaptive pessimistic value iteration (APVI) (Algorithm 1) with finite horizon time-inhomogeneous (non-stationary) MDPs and derive a strong adaptive bound that is near-optimal under the weak assumption $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > \bar { 0 }$ (Theorem 4.1). Specifically, our bound (quantity (1)) explicitly depends on the marginal importance ratios (between the optimal policy $\pi ^ { \star }$ and the behavior policy $\mu _ { . }$ ) and the per-step conditional variances. In addition, we provide an instance-dependent (local minimax) lower bound (Theorem 4.3) to certify (1) is nearly optimal at the instance level for offline learning and call it the intrinsic offline learning bound. The intrinsic bound has the following consequences.
30
+
31
+ • In the non-adaptive / worst-case regime (4.1-4.3), the intrinsic bound implies $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity under the uniform data-coverage 2.1, $\tilde { O } ( H ^ { 3 } S C ^ { \star } / \epsilon ^ { 2 } )$ complexity under the single policy concentrability assumption 2.3 and $\widetilde { O } ( H / d _ { m } \epsilon ^ { 2 } )$ complexity when the sum of rewards is bounded by 1. All of those are optimal in their respectively regimes [Yin et al., 2021a, Rashidinejad et al., 2021, Xie et al., 2021b, Ren et al., 2021];
32
+
33
+ • In the adaptive domain (4.4), the intrinsic bound implies the tight problem-dependent counterpart of Zanette and Brunskill [2019], yields ${ \tilde { O } } ( H ^ { 3 } / n d _ { m } )$ fast convergence in the deterministic systems, has improved complexity in the partially deterministic systems and a family of highly mixing problems, and remains optimal when reducing to the tabular contextual bandits.
34
+
35
+ Beyond the above, due to the generic form of the intrinsic bound, we could come up with as many problem instances (that are of our interests) as possible and study their properties. In this sense, the intrinsic bound helps illuminate the fundamental nature of offline RL.
36
+
37
+ Furthermore, as a step towards assumption-free offline reinforcement learning, we build a modified AVPI and obtain an adaptive bound that could characterize the suboptimality gap in the state-action space that is agnostic to the behavior policy (Theorem 5.1). To the best of our knowledge, all of these results are the first of its kinds.
38
+
39
+ # 1.2 Related work
40
+
41
+ Finite sample analysis for offline reinforcement learning can be traced back to Szepesvári and Munos [2005], Antos et al. [2008a,b] for the infinite horizon discounted setting via Fitted Q-Iteration (FQI) type function approximation algorithms. [Chen and Jiang, 2019, Le et al., 2019, Xie and Jiang, 2021, 2020] follow this line of research and derive the information-theoretical bounds. Recently, Xie and Jiang [2021] considers the offline RL with only the realizability assumption, Liu et al. [2020], Chang et al. [2021] considers the offline RL without sufficient coverage and Kidambi et al. [2020], Uehara and Sun [2021] uses the model-based approach for addressing offline RL. Under those weak coverage assumption, their finite sample analysis are suboptimal (e.g. in terms of the effective horizon $( 1 - \gamma ) ^ { \bar { - } 1 } .$ ). Recently, Yin et al. [2021a,b], Ren et al. [2021] study the finite horizon case. In the linear MDP case, Jin et al. [2020] studies the pessimistic algorithm for offline policy learning under only the compliance assumption, and, concurrently, Xie et al. [2021a] proposes the general pessimistic function approximation framework with instantiation in linear MDP and Zanette et al. [2021] shows actor-critic style algorithm is near-optimal for linear Bellman complete model. In addition, Wang et al. [2021], Zanette [2021] prove some exponential lower bounds under their linear function approximation assumptions.
42
+
43
+ Among them, there are a few works that achieve the sample optimality under their respective assumptions. Under the uniform data coverage (minimal state-action probability $d _ { m } > 0$ ), Yin et al. [2021a] first proves the optimal ${ \cal \tilde { O } } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity in the time-inhomogeneous MDP. Recently, Yin et al. [2021b] designs the offline variance reduction algorithm to achieve the optimal $\tilde { O } ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } )$ rate for the time-homogeneous case. Under the setting where the total cumulative reward is bounded by 1, Ren et al. [2021] obtains the horizon-free result with $\tilde { O } ( 1 / d _ { m } )$ . More recently, Rashidinejad et al. [2021] considers the single concentrability coefficient $\begin{array} { r } { C ^ { \star } : = \operatorname* { m a x } _ { s , a } d ^ { \pi ^ { \star } } ( s , a ) / d ^ { \mu } ( s , a ) } \end{array}$ and derives the upper bound $\tilde { O } [ ( 1 - \gamma ) ^ { - 5 } S C ^ { \star } / \epsilon ^ { 2 } ]$ in the infinite horizon setting which is recently improved by the concurrent work Xie et al. [2021b]. While those worst-case guarantees are desirable, none of them can explain the hardness of the individual problems.1
44
+
45
+ # 2 Preliminaries
46
+
47
+ Episodic non-stationary (time-varying) reinforcement learning. A finite-horizon Markov Decision Process (MDP) is denoted by a tuple $M = ( S , A , P , r , H , d _ { 1 } )$ [Sutton and Barto, 2018], where $s$ is the finite state space and $\mathcal { A }$ is the finite action space with $S : = | S | < \infty , A : = | A | < \infty$ . A nonstationary transition kernel $P _ { h } : S \times \mathcal { A } \times \mathcal { S } \mapsto [ 0 , 1 ]$ maps each state action $\left( s _ { h } , a _ { h } \right)$ to a probability distribution $P _ { h } ( \cdot | s _ { h } , a _ { h } )$ and $P _ { h }$ can be different across the time. Besides, $r : S \times A \mapsto \mathbb { R }$ is the expected instantaneous reward function satisfying $0 \leq r \leq 1$ . $d _ { 1 }$ is the initial state distribution. $H$ is the horizon. A policy $\pi = ( \pi _ { 1 } , \ldots , \pi _ { H } )$ assigns each state $s _ { h } \in S$ a probability distribution over actions according to the map $s _ { h } \mapsto \pi _ { h } ( \cdot | s _ { h } ) \forall h \in [ H ]$ . An MDP together with a policy $\pi$ induce a random trajectory $s _ { 1 } , a _ { 1 } , r _ { 1 } , \ldots , s _ { H } , a _ { H } , r _ { H } , s _ { H + 1 }$ with $s _ { 1 } \sim d _ { 1 } , a _ { h } \sim \pi ( \cdot | s _ { h } ) , s _ { h + 1 } \sim P _ { h } ( \cdot | s _ { h } , a ) , \forall h \in [ H ]$ and $r _ { h }$ is a random realization given the observed $s _ { h } , a _ { h }$ .
48
+
49
+ $Q$ -values, Bellman (optimality) equations. The value function $V _ { h } ^ { \pi } ( \cdot ) \in \mathbb { R } ^ { S }$ and $\mathbf { Q }$ -value function $Q _ { h } ^ { \pi } ( \cdot , \cdot ) \in \mathbb { R } ^ { S \times A }$ for any policy $\pi$ is defined as: $V _ { h } ^ { \pi } ( s ) ~ = ~ \mathbb { E } _ { \pi } [ \sum _ { t = h } ^ { H } r _ { t } | s _ { h } = s ]$ , $Q _ { h } ^ { \pi } ( s , a ) =$ $\begin{array} { r } { \mathbb { E } _ { \pi } [ \sum _ { t = h } ^ { H } r _ { t } | s _ { h } , a _ { h } \ = \ s , a ] } \end{array}$ , $\forall s , a \in \mathcal { S } , \mathcal { A } , h \in [ H ]$ . The performance is defined as $v ^ { \pi } : =$ $\begin{array} { r } { \mathbb { E } _ { d _ { 1 } } \left[ V _ { 1 } ^ { \pi } \right] = \mathbb { E } _ { \pi , d _ { 1 } } \left[ \sum _ { t = 1 } ^ { H } r _ { t } \right] } \end{array}$ , where we denote $V _ { h } ^ { \pi } , Q _ { h } ^ { \pi }$ as column vectors and $P _ { h } ~ \in ~ \mathbb { R } ^ { S A \times S }$ the transition matrix, then the vector form Bellman (optimality) equations follow $\forall h \in [ H ]$ : $\begin{array} { r } { Q _ { h } ^ { \pi } = r _ { h } + P _ { h } V _ { h + 1 } ^ { \pi } } \end{array}$ , $V _ { h } ^ { \pi } = \mathbb { E } _ { a \sim \pi _ { h } } [ Q _ { h } ^ { \pi } ]$ , $Q _ { h } ^ { \star } = r _ { h } + P _ { h } V _ { h + 1 } ^ { \star }$ , $V _ { h } ^ { \star } = \operatorname* { m a x } _ { a } Q _ { h } ^ { \star } ( \cdot , a )$ .In addition, we denote the per-step marginal state-action occupancy $d _ { h } ^ { \pi } ( s , a )$ as: $d _ { h } ^ { \pi } ( s , a ) : = \mathbb { P } [ s _ { h } =$ $s | s _ { 1 } \sim d _ { 1 } , \pi ] \cdot \pi _ { h } ( a | s )$ , which is the marginal state-action probability at time $h$ .
50
+
51
+ Offline setting and the goal. The offline RL requires the agent to find a policy $\pi$ such that the performance $v ^ { \pi }$ is maximized, given only the episodic data $\mathcal { D } = \{ ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } , s _ { h + 1 } ^ { \tau } ) \} _ { \tau \in [ n ] } ^ { h \in [ H ] }$ rolled out from some behavior policy $\mu$ . The offline nature requires we cannot change $\mu$ and in particular we do not assume the functional knowledge of $\mu$ . That is to say, given the batch data $\mathcal { D }$ and a targeted accuracy $\epsilon > 0$ , the offline RL seeks to find a policy $\pi _ { \mathrm { a l g } }$ such that $v ^ { \star } - v ^ { \pi _ { \mathrm { a l g } } } \leq \epsilon$ .
52
+
53
+ # 2.1 Assumptions in offline RL
54
+
55
+ We revise several types of assumptions proposed by existing studies that can yield provably efficient results. Recall $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } )$ is the marginal state-action probability and $\mu$ is the behavior policy.
56
+
57
+ Assumption 2.1 (Uniform data coverage [Yin et al., 2021a]). The behavior policy obeys that $d _ { m } : =$ $\begin{array} { r } { \operatorname* { m i n } _ { h , s _ { h } , a _ { h } } d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 . } \end{array}$ . Here the infimum is over all the states satisfying there exists certain policy so that this state can be reached by the current MDP with this policy.
58
+
59
+ This is the strongest assumption in offline RL as it requires $\mu$ to explore each state-action pairs with positive probability. Under 2.1, it mostly holds $1 / d _ { m } \ge S A$ . This reveals offline learning is generically harder than the generative model setting [Agarwal et al., 2020] in the statistical sense. On the other hand, this is required for the uniform $O P E$ task in Yin et al. [2021a] as it seeks to simultaneously evaluate all the policies within the policy class and it is in general a harder task than offline learning itself.
60
+
61
+ Assumption 2.2 (Uniform concentrability Szepesvári and Munos [2005], Chen and Jiang [2019]).
62
+ For all the policies, $\begin{array} { r } { C _ { \mu } : = \operatorname* { s u p } _ { \pi , h } | | d _ { h } ^ { \pi } ( \cdot , \cdot ) / d _ { h } ^ { \mu } ( \cdot , \cdot ) | | _ { \infty } < \infty . } \end{array}$ .
63
+
64
+ This is a classical offline RL condition that is commonly assumed in the function approximation scheme (e.g. Fitted Q-Iteration). Qualitatively, this is a uniform data-coverage assumption that is similar to Assumption 2.1, but quantitatively, the coefficient $C _ { \mu }$ can be smaller than $1 / \bar { d _ { m } } \bar { }$ due the $d _ { h } ^ { \pi }$ term in the numerator.
65
+
66
+ Assumption 2.3 (Liu et al. [2019]). There exists one optimal policy $\pi ^ { \star }$ , s.t. $\forall s _ { h } , a _ { h } \ \in \ S , A ,$ , $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ > \ 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > 0$ . We further denote the trackable set as $\mathcal C _ { h } : = \{ ( s _ { h } , a _ { h } )$ : $d _ { h } ^ { \tilde { \mu } } ( s _ { h } , a _ { h } ) > 0 \}$ .
67
+
68
+ Assumption 2.3 is (arguably) the weakest assumption needed for accurately learning the optimal value $v ^ { \star }$ and we will use 2.3 for most parts of this paper. It only requires $\mu$ to trace the state-action space of one optimal policy and can be agnostic at other locations. Rashidinejad et al. [2021], Xie et al. [2021b] considers this assumption and provide analysis is based on the single concentrability coefficient $\begin{array} { r } { C ^ { \star } : = \operatorname* { m a x } _ { s , a } { d ^ { \pi ^ { \star } } ( s , a ) } / { d ^ { \mu } ( s , a ) } } \end{array}$ . The dependence on $C ^ { \star }$ makes their result less adaptive since there can be lots of locations that have the ratio ${ d ^ { \pi } } ^ { \star } ( s , a ) / { d ^ { \mu } } ( s , a )$ much smaller than $C ^ { \star }$ . Furthermore, what could we end up with when 2.3 is not met? We will provide our answers in the subsequent sections.
69
+
70
+ # 3 A warm-up case study: Vanilla Pessimistic Value Iteration
71
+
72
+ As a step towards the optimal and strong adaptive offline RL bound, we analyze the vanilla pessimistic value iteration (VPVI), a tabular counterpart of pessimistic value iteration (PEVI initiated in Jin et al. [2020]), to understand what is missing for achieving the fully adaptivity. In particular, VPVI relies on the model-based construction.
73
+
74
+ Model-based Components. Given data n $\begin{array} { r } { { \mathcal { D } } \ = \ \left\{ \left( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } , s _ { h + 1 } ^ { \tau } \right) \right\} _ { \tau \in [ n ] } ^ { h \in [ H ] } } \end{array}$ , we denote $n _ { s _ { h } , a _ { h } } : =$ $\begin{array} { r } { \sum _ { \tau = 1 } ^ { n } \mathbf { 1 } [ s _ { h } ^ { \tau } , { a } _ { h } ^ { \tau } \ = \ s _ { h } , { a } _ { h } ] } \end{array}$ be the total counts that vis construct the estimators for $\left( s _ { h } , a _ { h } \right)$ pair at time as: , then we use the $P _ { h }$ $r _ { h }$
75
+
76
+ $$
77
+ \widehat { P } _ { h } ( s ^ { \prime } | s _ { h } , a _ { h } ) = \frac { \sum _ { \tau = 1 } ^ { n } \mathbf { 1 } [ ( s _ { h + 1 } ^ { \tau } , a _ { h } ^ { \tau } , s _ { h } ^ { \tau } ) = ( s ^ { \prime } , s _ { h } , a _ { h } ) ] } { n _ { s _ { h } , a _ { h } } } , \widehat { r } _ { h } ( s _ { h } , a _ { h } ) = \frac { \sum _ { \tau = 1 } ^ { n } \mathbf { 1 } [ ( a _ { h } ^ { \tau } , s _ { h } ^ { \tau } ) = ( s _ { h } , a _ { h } ) ] \cdot r _ { h } ^ { \tau } } { n _ { s _ { h } , a _ { h } } } ,
78
+ $$
79
+
80
+ if $n _ { s _ { h } , a _ { h } } > 0$ and $\widehat { P } _ { h } ( s ^ { \prime } | s _ { h } , a _ { h } ) = 1 / S , \widehat { r } _ { h } ( s _ { h } , a _ { h } ) = 0$ if $n _ { s _ { h } , a _ { h } } = 0$ . In particular, we use the word b“vanilla” as it directly mirrors Jin et al. [2020] with a pessimistic penalty of order $O ( H / \sqrt { n _ { s _ { h } , a _ { h } } } )$ . 2 With $\widehat { P } _ { h } , \widehat { r } _ { h }$ in Algorithm 2 (which we defer to Appendix), VPVI guarantees the following:
81
+
82
+ Theorem 3.1. Under the Assumption 2.3, denote $\begin{array} { r } { \bar { d } _ { m } : = \operatorname* { m i n } _ { h \in [ H ] } \{ d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 \} } \end{array}$ . For any $0 < \delta < 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota$ $( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of VPVI satisfies
83
+
84
+ $$
85
+ 0 \leq v ^ { \star } - v ^ { \widehat { \pi } } \leq C ^ { \prime } H \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in \mathcal { C } _ { h } } d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) \cdot \sqrt { \frac { \iota } { n \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } .
86
+ $$
87
+
88
+ The full proof can be found in Appendix C. Theorem 3.1 makes some improvements over the existing works. First, it is more adaptive than the results with uniform data-coverage Assumption 2.1 (Yin et al. [2021a], Ren et al. [2021]). In addition, by straightforward calculation (3) can be bounded by $\tilde { O } ( \sqrt { H ^ { 4 } S C ^ { \star } / n } )$ which improves VI-LCB [Rashidinejad et al., 2021] by a factor of $H$ .3 Besides, the analysis of VPVI also improves the direct reduction of PEVI [Jin et al., 2020] in the tabular case by a factor $_ { S A }$ since their $\beta = S A H$ when $d = S A$ .
89
+
90
+ However, VPVI is not optimal as the dependence on horizon is $H ^ { 4 }$ which does not match the optimal worst case guarantee $H ^ { 3 }$ [Yin et al., 2021a] in the nonstationary setting. Also, the explicit dependence on $H$ in (3) possibly hides some key features of the specific offline RL instances. For example, no improvement can be made if the system has the deterministic transition.
91
+
92
+ # Algorithm 1 Adaptive (assumption-free) Pessimistic Value Iteration or LCBVI-Bernstein
93
+
94
+ 1: Input: Offline dataset $\boldsymbol { \mathcal { D } } = \{ ( \boldsymbol { s } _ { h } ^ { \tau } , \boldsymbol { a } _ { h } ^ { \tau } , \boldsymbol { r } _ { h } ^ { \tau } , \boldsymbol { s } _ { h + 1 } ^ { \tau } ) \} _ { \tau , h = 1 } ^ { n , H }$ . Set $C _ { 1 } = 2 , C _ { 2 } = 1 4$ , failure probability $\delta$ .
95
+ 2: Initialization: Set $\widehat { V } _ { H + 1 } ( \cdot ) 0$ . Set $\iota = \log ( H S A / \delta )$ . (if assumption-free, set $M ^ { \dagger } , \widehat { M } ^ { \dagger }$ as in Section 5.)
96
+ 3: for time $h = H , H - 1 , \ldots , 1 \bullet$ do
97
+ 4: Set $\widehat { Q } _ { h } ( \cdot , \cdot ) \gets \widehat { r } _ { h } ( \cdot , \cdot ) + ( \widehat { P } _ { h } \cdot \widehat { V } _ { h + 1 } ) ( \cdot , \cdot ) \mathrm { ~ } ( \mathrm { u s e } \widehat { r } _ { h } ^ { \dag } + ( \widehat { P } _ { h } ^ { \dag } \cdot \widehat { V } _ { h + 1 } )$ if assumption-free)
98
+ 5: $\forall s _ { h } , a _ { h }$ , set $\begin{array} { r } { \Gamma _ { h } ( s _ { h } , a _ { h } ) = C _ { 1 } \sqrt { \frac { \operatorname { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) \cdot \iota } { { n _ { s _ { h } , a _ { h } } } } } + \frac { C _ { 2 } H \cdot \iota } { n _ { s _ { h } , a _ { h } } } } \end{array}$ if $n _ { s _ { h } , a _ { h } } \ge 1$ , o.w. set to $\frac { C H \iota } { 1 }$ .
99
+ 6: (If assumption-free, use C1qVarPb†sh,ah ( $\begin{array} { r } { C _ { 1 } \sqrt { \mathrm { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } ^ { \dagger } } ( \widehat { r } _ { h } ^ { \dagger } + \widehat { V } _ { h + 1 } ) \cdot \iota / n _ { s _ { h } , a _ { h } } } + \frac { C _ { 2 } H \cdot \iota } { n _ { s _ { h } , a _ { h } } } } \end{array}$ C2H·ιn if nsh,ah ≥ 1, o.w. use 0.)
100
+ 7: Set $\widehat { Q } _ { h } ^ { p } ( \cdot , \cdot ) \gets \widehat { Q } _ { h } ( \cdot , \cdot ) - \dot { \Gamma _ { h } } ( \cdot , \cdot )$ . Set $\overline { { { Q } } } _ { h } ( \cdot , \cdot ) \operatorname* { m i n } \{ \widehat { Q } _ { h } ^ { p } ( \cdot , \cdot ) , H - h + 1 \} ^ { + }$ . // Pessmistic update
101
+ 8: $\forall s _ { h }$ , Select $\begin{array} { r } { \widehat \pi _ { h } ( \cdot | s _ { h } ) \gets \operatorname * { a r g m a x } _ { \pi _ { h } } \langle \overline { Q } _ { h } ( s _ { h } , \cdot ) , \pi _ { h } ( \cdot | s _ { h } ) \rangle } \end{array}$ . Set $\widehat { V } _ { h } ( s _ { h } ) \gets \langle \overline { { Q } } _ { h } ( s _ { h } , \cdot ) , \widehat { \pi } _ { h } ( \cdot | s _ { h } ) \rangle$ .
102
+ 9: end for
103
+ 10: Output: $\left\{ \widehat { \pi } _ { h } \right\}$ .
104
+
105
+ # 4 Intrinsic Offline Reinforcement Learning bound
106
+
107
+ Now we go deeper to understand what is the more intrinsic characterization for offline reinforcement learning. From the study of VPVI, penalizing the Q-function by $\widetilde { O } ( H / \sqrt { n _ { s _ { h } , a _ { h } } } )$ is crude as it estimates the confidence width of ${ \widehat { Q } } _ { h }$ in Algorithm 2 too conservatively therefore loses the accuracy (the bound is suboptimal). This motivates us to use empirical standard deviation instead to create a more adaptive (and also less conservative) Bernstein-type confidence width as the pessimistic penalty:
108
+
109
+ $$
110
+ \Gamma _ { h } ( s _ { h } , a _ { h } ) = \widetilde { \mathcal { O } } \bigg [ \sqrt { \frac { \mathrm { V a r } _ { \widetilde { P } _ { s _ { h } , a _ { h } } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) } { { n } _ { s _ { h } , a _ { h } } } } + \frac { H } { { n } _ { s _ { h } , a _ { h } } } \bigg ] \ ( \mathrm { i f } \ n _ { s _ { h } , a _ { h } } > 0 ) ; \ = \widetilde { \mathcal { O } } ( H ) \ ( \mathrm { i f } \ n _ { s _ { h } , a _ { h } } = 0 ) .
111
+ $$
112
+
113
+ and update $\widehat { Q } _ { h } \gets \widehat { Q } _ { h } - \Gamma _ { h }$ . On one hand, $\sqrt { \mathrm { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) / n _ { s _ { h } , a _ { h } } }$ is a “less pessimistic” penalty than VPVI due to $\sqrt { \mathrm { V a r } _ { \widehat { P } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) } \le H$ and critically this design is more data-adaptive since it holds negative view towards the locations with high uncertainties and recommends the locations that we are confident about, as opposed to the online RL (which encourages exploration in the uncertain locations). Such principles are not reflected by the isotropic design in VPVI. On the other hand, it carries the extremely negative view towards fully agnostic locations ${ \widetilde { O } } ( H )$ which in turn causes the agent unlikely to choose them. We summarized the this adaptive pessimistic value
114
+
115
+ iteration (APVI) into the Algorithm 1, with $\widehat { P } _ { h } , \widehat { r } _ { h }$ defined in (2). APVI has the following guarantee.
116
+ bA sketch of the analysis is presented in Section B and Appendix F includes the full proof.
117
+
118
+ Theorem 4.1 (Intrinsic offline RL bound). Under the Assumption 2.3, denote $\bar { d } _ { m } : =$ $\mathrm { m i n } _ { h \in [ H ] } \{ d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ : \ d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ > \ 0 \}$ . For any $0 ~ < ~ \delta ~ < ~ 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota ( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of APVI (Algorithm $I$ ) satisfies $\widetilde O$ hides log factor and higher order terms)
119
+
120
+ $$
121
+ 0 \leq v ^ { \star } - v ^ { \widehat { \pi } } \leq C ^ { \prime } \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in \mathcal { C } _ { h } } d _ { h } ^ { \pi ^ { \star } } \left( s _ { h } , a _ { h } \right) \cdot \sqrt { \frac { \mathrm { V a r } _ { P _ { s _ { h } , a _ { h } } } \left( r _ { h } + V _ { h + 1 } ^ { \star } \right) \cdot \iota } { n \cdot d _ { h } ^ { \mu } \left( s _ { h } , a _ { h } \right) } } + \widetilde O \left( \frac { H ^ { 3 } } { n \cdot \bar { d } _ { m } } \right)
122
+ $$
123
+
124
+ Remark 4.2. APVI (Algorithm $I$ ) can also be called LCBVI-Bernstein as it creates the offline counterpart of UCBVI in Azar et al. [2017]. However, to highlight that the resulting bound fully adapts to the specific system structure, we use the word “adaptive” instead.
125
+
126
+ APVI makes significant improvements in a lot of aspects. First and foremost, the dominate term is fully expressed by the system quantities that admits no explicit dependence on $H , S , A$ . To the best of our knowledge, this is the first offline RL bound that concretely depicts the interrelations within the problem when the problem instance is a tuple $( M , \pi ^ { \star } , \mu )$ : an MDP $M$ (coupled with the optimal policy $\pi ^ { \star }$ ) with the data rolling from an offline logging policy $\mu$ . As we will discuss later, this result indicates (nearly) all the optimal worst-case non-adaptive bounds (and clearly also the VPVI) under their respective regimes / assumptions. Thus, (5) is generic. More interestingly, Theorem 4.1 caters to the specific MDP structures and adaptively yields improved sample complexities (e.g. faster convergence in deterministic systems) that existing works cannot imply. Such features are crucial as it helps us to understand what type of problems are harder / easier than others, and even more, in a quantitative way. Last but not least, to illustrate this bound exhibits the intrinsic nature of offline RL, we prove a per-instance dependent information-theoretical lower bound that shares a similar formulation. The proof of Theorem 4.3 can be found in Appendix G.
127
+
128
+ Theorem 4.3 (Instance-dependent information theoretical offline lower bound). Denote $\begin{array} { c c c c c c } { { \mathcal G } } & { { : = } } & { { \{ ( \mu , M ) } } & { { : } } & { { \exists \pi ^ { \star } } } & { { s } } \end{array}$ .t. $d _ { h } ^ { \mu } ( s , a ) \quad > \quad 0 \quad i f \quad d _ { h } ^ { \pi ^ { \star } } ( s , a ) \quad > \quad 0 \}$ . Fix an instance $\begin{array} { r l r l r } { { \mathcal { P } } } & { { } = } & { ( \mu , M ) } & { { } \in { } } & { { \mathcal { G } } } \end{array}$ . Let $\mathcal { D }$ consists of $n$ episodes and define $\begin{array} { r l } { \xi } & { { } = } \end{array}$ $\begin{array} { r } { \operatorname* { s u p } _ { h , s _ { h } , a _ { h } , s _ { h + 1 } , d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \cdot \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) > 0 } \frac { P _ { h } ( s _ { h + 1 } | s _ { h } , a _ { h } ) \big ( V _ { h + 1 } ^ { \star } ( s _ { h + 1 } ) - \mathbb { E } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } | ) \big ) } { \sqrt { 2 \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \cdot \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) } } } \end{array}$ Ph(sh+1|sh,ah)(V ?h+1(sh+1)−EPsh,ah [V ?h+1]) . Let π to be the output of any algorithm. Define the local non-asymptotic minimax risk as
129
+
130
+ $$
131
+ \mathfrak { R } _ { n } ( \mathcal { P } ) : = \operatorname* { s u p } _ { \mathcal { P } ^ { \prime } \in \mathcal { G } } \operatorname* { i n f } _ { \widehat { \pi } } \operatorname* { m a x } _ { \mathcal { Q } \in \{ \mathcal { P } , \mathcal { P } ^ { \prime } \} } \sqrt { n } \cdot \mathbb { E } _ { \mathcal { Q } } \left[ v ^ { \star } ( \mathcal { Q } ) - v ^ { \widehat { \pi } } \right]
132
+ $$
133
+
134
+ where $v ^ { \star } ( \mathcal { Q } )$ denotes the optimal value under the instance $\mathcal { Q }$ . Then there exists universal constants $c _ { 0 } , p , C > 0$ , such that if $\begin{array} { r } { { \bf \ddot { \sigma } } n \geq c _ { 0 } H ^ { 6 } \xi ^ { 4 } / ( \sum _ { h = 1 } ^ { H } \sum _ { s _ { h } , a _ { h } } { d _ { h } ^ { \pi } } ^ { \star } ( s _ { h } , a _ { h } ) \sqrt { \frac { \mathrm { V a r } { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) } { \zeta \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } ) ^ { 2 } } \end{array}$ , with constant probability $p > 0$ , Then we have (here $\zeta = H / \bar { d } _ { m , }$ ):
135
+
136
+ $$
137
+ \mathfrak { R } _ { n } ( \mathcal { P } ) \geq C \cdot \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in \mathcal { C } _ { h } } d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) \cdot \sqrt { \frac { \mathrm { V a r } _ { P _ { s _ { h } , a _ { h } } } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { \zeta \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } ,
138
+ $$
139
+
140
+ where $\mathcal { P } = ( \mu , M )$ and $M = \left( S , A , P , r , H , d _ { 1 } \right)$ .
141
+
142
+ The interpretation of Theorem 4.3 is: for any instance $\mathcal { P }$ , learning requires (7) (divided by $1 / \sqrt { n } )$ for any algorithm. Note this notion is significantly stronger than the previous minimax offline lower bounds [Yin et al., 2021a, Rashidinejad et al., 2021, Xie et al., 2021b, Jin et al., 2020] (where they only select a particular family of hard problems), therefore, their lower bounds in general do not hold for individual instances.
143
+
144
+ The quantity (1) nearly-matches the per-instance lower bound (7) (they deviate by a factor of $\zeta = \hat { H } / \hat { d } _ { m }$ due to the technical reason) and, in addition, we provide a matching minimax lower bound in Appendix H. These results certify Theorem 4.1 is not only adaptive but also near-optimal.
145
+
146
+ Hence, we call the quantity $\begin{array} { r l } & { \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in \mathcal { C } _ { h } } { d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) \cdot \sqrt { \frac { \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { n \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } } } \end{array}$ intrinsic offline reinforcement learning bound. In the sequel, we provide thorough discussions to explain the intrinsic bound embraces the fundamental challenges in offline RL and the strong adaptivity. The detailed technical derivations that are missing in Section 4.1-4.4 are deferred to Appendix I.
147
+
148
+ ![](images/6b83607ca2951ec3cf5d8f65a3f909d38e7e57c936199b24d666e4d9988b9fb3.jpg)
149
+ Figure 1: A visualization on how intrinsic learning bound subsumes existing best-known results: uniform visitation, single concentrability (partial coverage) and adaptive domain.
150
+
151
+ # 4.1 Optimality under Uniform data-coverage assumption
152
+
153
+ Under the uniform exploration Assumption 2.1 with parameter $d _ { m } : = \operatorname* { m i n } _ { h , s _ { h , } a _ { h } } d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ Yin et al. [2021a] analyzes the model-based plug-in approach and obtains the optimal sample complexity $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ and shows $\Omega ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ is also the lower bound. Indeed, this rate can ebe directly implied by the intrinsic RL bound via Cauchy inequality and the Sum of Total Variance (Lemma J.6):4
154
+
155
+ $$
156
+ \begin{array} { r l } & { \displaystyle \sum _ { h = 1 } ^ { H } \langle d _ { h } ^ { \pi ^ { \star } } ( \cdot ) , \sqrt { \frac { \mathrm { V a r } _ { P ( \cdot ) } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { n \cdot d _ { h } ^ { \mu } ( \cdot ) } } \rangle = \displaystyle \sum _ { h = 1 } ^ { H } \langle \sqrt { d _ { h } ^ { \pi ^ { \star } } ( \cdot ) } , \sqrt { \frac { d _ { h } ^ { \pi ^ { \star } } ( \cdot ) \odot \mathrm { V a r } _ { P ( \cdot ) } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { n \cdot d _ { m } } } \rangle } \\ & { \displaystyle \leq \displaystyle \sum _ { h = 1 } ^ { H } \left\| \sqrt { d _ { h } ^ { \pi ^ { \star } } ( \cdot ) } \right\| _ { 2 } \left\| \sqrt { \frac { d _ { h } ^ { \pi ^ { \star } } ( \cdot ) \odot \mathrm { V a r } _ { P ( \cdot ) } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { n \cdot d _ { m } } } \right\| _ { 2 } \leq \sqrt { \frac { H \cdot \mathrm { V a r } _ { \pi ^ { \star } } ( \cdot \sum _ { h = 1 } ^ { H } r _ { h } ) } { n \cdot d _ { m } } } \leq \sqrt { \frac { H ^ { 3 } } { n \cdot d _ { m } } } } \end{array}
157
+ $$
158
+
159
+ which translates to $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity. Our result maintains the optimal worst-case guarantee when $\mu$ has the uniform data-coverage:
160
+
161
+ Proposition 4.4. Under Assumption 2.1 and apply Theorem 4.1, APVI achieves the sample complexity of minimax-rate $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ (Theorem 4.1 and Theorem G.2 in Yin et al. [2021a]).
162
+
163
+ Remark 4.5. We believe if the MDP is time-invariant, then by a modified construction of $\widehat { P }$ , $\widehat { r }$ in (2) our result will imply the minimax-rate of $\widetilde { O } ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } )$ as achieved in Yin et al. [2021b]. We include this discussion in Appendix I.
164
+
165
+ # 4.2 Bounded sum of total rewards and the Horizon-Free case
166
+
167
+ $\begin{array} { r } { r _ { h } \geq 0 , \sum _ { h = 1 } ^ { H } r _ { h } \in [ 0 , 1 ] } \end{array}$ f studies that follow the bounded sum of total rewards assumption: i.e. [Krishnamurthy et al., 2016, Jiang et al., 2017, Zhang et al., 2021]. Such a Jiang and Agarwal [2018]. In offline RL, Ren et al. [2021] derives the nearly horizon-free worst case bound $\widetilde { O } ( \sqrt { 1 / n d _ { m } } )$ for the time-invariant MDPs, under the Assumption 2.1. As a comparison, our Theorem 4.1 achieves the following guarantee for the time-varying (non-stationary) MDPs.
168
+
169
+ Proposition 4.6. Assume $r _ { h } \ge 0 ,$ , $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq 1$ . Then in the time-varying case AVPI (Theorem 4.1) outputs a policy $\widehat { \pi }$ such that the suboptimality gap $\boldsymbol { v } ^ { \star } - \boldsymbol { v } ^ { \widehat { \pi } }$ is bounded by $\widetilde { O } ( \sqrt { H / n d _ { m } } )$ with high bprobability under the Assumption 2.1.
170
+
171
+ The derivation is straightforward by using $\begin{array} { r } { \operatorname { V a r } _ { \pi ^ { \star } } ( \sum _ { h = 1 } ^ { H } r _ { h } ) \le 1 } \end{array}$ in (8). This proposition is interesting since it indicates when the MDP is non-stationary, $\widetilde { O } ( H / d _ { m } \epsilon ^ { 2 } )$ is required in the worst case even under $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq 1$ .5 The extra $H$ factor resembles the challenge that we have $H$ transitions $( P _ { 1 } , \dots , P _ { H } )$ to learn, as opposed to the bandit-type $1 / d _ { m } \epsilon ^ { 2 }$ result due to there is only one $P$ throughout (time-invariant). This reveals that one hardness in solving the MDP is in proportion to the number of different transition kernels within the MDP. Such a finding could help researchers understand the special settings like low switching cost in transitions [Bai et al., 2019] or nonstationarity [Cheung et al., 2020].
172
+
173
+ # 4.3 Optimality with Single Concentrability
174
+
175
+ In the finite horizon discounted setting, Rashidinejad et al. [2021] proposes the single policy concentrability assumption which is defined as C? := maxh,s,a dh (s,a)dµ(s,a) in the current episodic nonstationary MDP setting. As discussed in Appendix D, their lower bound translates to $\Omega ( { \sqrt { \frac { H ^ { 3 } S C ^ { \star } } { n } } } )$ and their VI-LCB algorithm yields q H5SC?n ) suboptimality gap in H-horizon case. Since single policy concentrability is strictly weaker than its uniform version (Assumption 2.2), we only discuss this set up. In particular, we have the following implication from our Theorem 4.1 (whose derivation can be found in Appendix I):
176
+
177
+ Proposition 4.7. Let π? be a deterministic policy such that C? := maxh,s,a dπ h (s,a)dµ(s,a) . Then by Theorem 4.1, with high probability the output policy of APVI satisfies the suboptimality gap $\widetilde { O } ( \sqrt { \frac { H ^ { 3 } S C ^ { \star } } { n } } )$ in the time-varying (non-stationary) MDPs.
178
+
179
+ This can computed similar to (8) except we use $\begin{array} { r } { \frac { \boldsymbol { d } _ { h } ^ { \pi ^ { \star } } ( s , a ) } { \boldsymbol { d } _ { h } ^ { \mu } ( s , a ) } \leq C ^ { \star } } \end{array}$ . Our implication improves the VI-LCB by the factor $H ^ { 2 }$ (in terms of sample complexity) and is optimal (recover the concurrent Xie et al. [2021b]). Qualitatively, single concentrability is the same as Assumption 2.3, but the use of $C ^ { \star }$ makes the bound highly problem independent and limits the adaptivity. Problem dependent bound is a more interesting domain as it tailors to each MDP separately. We discuss it now.
180
+
181
+ # 4.4 Problem dependent domain
182
+
183
+ We define the pre-step environmental norm (the finite horizon counterpart of Maillard et al. [2014]) as: $\begin{array} { r } { \mathbb { Q } _ { h } ^ { \star } = \operatorname* { m a x } _ { s _ { h } , a _ { h } } { \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } { \left( r _ { h } + V _ { h + 1 } ^ { \star } \right) } } } \end{array}$ for all $h \in [ H ]$ , and relax the total sum of rewards to be bounded by any arbitrary value $\boldsymbol { B }$ (i.e. $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq B )$ , then Theorem 4.1 implies:
184
+
185
+ Proposition 4.8. Under Assumption 2.1, with high probability, subopmality of AVPI is bounded by
186
+
187
+ $$
188
+ \operatorname* { m i n } \bigg \{ \widetilde O \big ( \sum _ { h = 1 } ^ { H } \sqrt { \frac { \mathbb { Q } _ { h } ^ { \star } } { n \bar { d } _ { m } } } \big ) , \widetilde O \big ( \sqrt { \frac { H \cdot \mathcal { B } ^ { 2 } } { n \bar { d } _ { m } } } \big ) \bigg \} + \widetilde O ( \frac { H ^ { 3 } } { n \bar { d } _ { m } } ) .
189
+ $$
190
+
191
+ Such a result mirrors the online version of the tight problem-dependent bound Zanette and Brunskill [2019] but with a more general pre-step environmental norm for the non-stationary MDPs.6 For the problem instances with either small $\boldsymbol { B }$ or small $\mathbb { Q } _ { h } ^ { \star }$ , our result yields much better performances, as discussed in the following.
192
+
193
+ Deterministic systems. For many practical applications of interest, the systems are equipped with low stochasticity, e.g. robotics, or even deterministic dynamics, e.g. the game of GO. In those scenarios, the agent needs less experience for each state-action therefore the learning procedure could be much faster. In particular, when the system is fully deterministic (in both transitions and rewards) then $\mathbb { Q } _ { h } ^ { \star } = 0$ for all $h$ . This enables a faster convergence rate of order $\frac { H ^ { 3 } } { n \bar { d } _ { m } }$ and significantly improves over the existing non-adaptive results that have order $\scriptstyle { \frac { 1 } { \sqrt { n } } }$ . The convergence rate $\textstyle { \frac { 1 } { n } }$ matches Wen and ) regret into the PAC bound.
194
+
195
+ Partially deterministic systems. Practical worlds are complicated and we could sometimes have a mixture model which contains both deterministic and stochastic steps. In those scenarios, the main complexity is decided by the number of stochastic stages: suppose there are $t$ stochastic $P _ { h } , r _ { h }$ ’s and $H - t$ deterministic $P _ { h ^ { \prime } } , r _ { h ^ { \prime } }$ ’s, then completing the offline learning guarantees $t \cdot \sqrt { \operatorname* { m a x } Q _ { h } ^ { \star } / n \bar { d } _ { m } }$ suboptimality gap, which could be much smaller than $H \cdot \sqrt { \operatorname* { m a x } Q _ { h } ^ { \star } / n \bar { d } _ { m } }$ when $t \ll H$ .
196
+
197
+ Fast mixing domains. Consider a class of highly mixing non-stationary MDPs (a variant of Zanette and Brunskill [2018]) that satisfies the transition $P _ { h } ( \cdot | s _ { h } , a _ { h } ) : = \nu _ { h } ( \cdot ) \overline { { } }$ depends on neither the state $s _ { h }$ nor the action $a _ { h }$ . Define $\bar { s } _ { t } : = \arg \operatorname* { m a x } V _ { t } ^ { \star } ( s )$ and $\underline { { s } } _ { t } : = \arg \operatorname* { m a x } V _ { t } ^ { \star } ( s$ . Also, denote $\mathrm { r n g } V _ { h } ^ { \star }$ to be the range of $V _ { h } ^ { \star }$ . In such cases, Bellman optimality equations have the form
198
+
199
+ $$
200
+ V _ { h } ^ { \star } \left( \bar { s } _ { h } \right) = \operatorname* { m a x } _ { a } \left( r _ { h } \left( \bar { s } _ { h } , a \right) + \nu _ { h } ^ { \top } V _ { h + 1 } ^ { \star } \right) , \ V _ { h } ^ { \star } \left( { { s } _ { h } } \right) = \operatorname* { m a x } _ { a } \left( r _ { h } \left( { { s } _ { h } } , a \right) + \nu _ { h } ^ { \top } V _ { h + 1 } ^ { \star } \right)
201
+ $$
202
+
203
+ which yield $\begin{array} { r } { \mathfrak { s } \mathrm { \ r n g } { V } _ { h } ^ { \star } = V _ { h } ^ { \star } \left( \bar { s } _ { h } \right) - V _ { h } ^ { \star } \left( \underline { { s } } _ { h } \right) = \operatorname* { m a x } _ { a } r _ { h } \left( \bar { s } _ { h } , a \right) - \operatorname* { m i n } _ { a } r _ { h } \left( \underline { { s } } _ { h } , a \right) \le 1 , } \end{array}$ , and this in turn gives $\mathbb { Q } _ { h } ^ { \star } \le 1 + ( \mathrm { r n g } V _ { h } ^ { \star } ) ^ { 2 } = 2$ . As a result, the suboptimality is bounded by $\widetilde { O } ( \sqrt { H ^ { 2 } / n d _ { m } } )$ in the worst case. This result reveals, although this is a family of stochastic non-stationary MDPs, but it is only as hard as the family of stationary MDPs in the minimax sense $\left( \Omega ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } ) \right)$ ).
204
+
205
+ Tabular contextual bandits. Our result also implies $\begin{array} { r l } & { \widetilde { \cal O } ( \sum _ { x _ { 1 } , a _ { 1 } } { d _ { 1 } ^ { \pi ^ { \star } } ( x _ { 1 } , a _ { 1 } ) \sqrt { \frac { \mathrm { V a r } ( r _ { 1 } ) } { n \cdot d _ { 1 } ^ { \mu } ( x _ { 1 } , a _ { 1 } ) } } } ) } \end{array}$ q Var(r1)n·dµ1 (x1,a1) ) gap for the offline tabular contextual bandit problem and improves to $\widetilde { \cal O } ( 1 / n d _ { m } )$ when the reward is deterministic. In either cases, the result is optimal and this is due to: when $r _ { 1 }$ is deterministic, the agent only needs one sample at every location (see Bubeck and Cesa-Bianchi [2012] for a survey).
206
+
207
+ # 5 Towards Assumption-Free Offline RL
208
+
209
+ While assumption 2.3 is (arguably) the weakest assumption for correctly learning the optimal value, for the real-world applications even this might not be guaranteed. Can we still learn something meaningful? In this section, we consider this most general setting where the behavior policy $\mu$ can be arbitrary. In this case, $\mu$ might not cover any optimal policy $\pi ^ { \star }$ (i.e. there might be high reward location $( s , a )$ that $\mu$ can never visit, e.g. in the extreme case where a clumsy doctor only uses one treatment all the time), and, irrelevant to the number of episode $n$ , a constant suboptimality gap needs to be suffered. To tackle this problem, we create a fictitious augmented MDP $M ^ { \dagger }$ that can help characterize the discrepancy of the values between the original MDP $M$ and the estimated MDP $\widehat { M } ^ { \dag }$ . In particular, $M ^ { \dagger }$ is negative towards agnostic state-actions $s _ { h } , a _ { h }$ by setting $r _ { h } ^ { \dagger } = 0$ cand transitions to an absorbing state s†h+1.
210
+
211
+ Pessimistic augmented MDP. $M ^ { \dagger }$ is defined with one extra state $s _ { h } ^ { \dagger }$ for all $h \in \{ 2 , \dots , H + 1 \}$ with the augmented state space $S ^ { \dagger } = S \cup \{ s _ { h } ^ { \dagger } \}$ . The transition and the reward are defined as follows:
212
+
213
+ $$
214
+ P _ { h } ^ { \dagger } ( \cdot \mid s _ { h } , a _ { h } ) = \left\{ \begin{array} { l l } { P _ { h } ( \cdot \mid s _ { h } , a _ { h } ) , n _ { s _ { h } , a _ { h } } > 0 , } \\ { \delta _ { s _ { h + 1 } ^ { \dagger } } , s _ { h } = s _ { h } ^ { \dagger } \mathrm { o r } n _ { s _ { h } , a _ { h } } = 0 . } \end{array} \right. \quad r ^ { \dagger } ( s _ { h } , a _ { h } ) = \left\{ \begin{array} { l l } { r ( s _ { h } , a _ { h } ) , n _ { s _ { h } , a _ { h } } > 0 , } \\ { 0 , s _ { h } = s _ { h } ^ { \dagger } \mathrm { o r } n _ { s _ { h } , a _ { h } } = 0 . } \end{array} \right.
215
+ $$
216
+
217
+ here $\delta _ { s }$ is the Dirac measure and we denote $V _ { h } ^ { \dag \pi }$ and $v ^ { \dag \pi }$ to be the values under $M ^ { \dagger }$ . $\widehat { M } ^ { \dagger }$ is the empirical counterpart of $M ^ { \dagger }$ with $\widehat { P }$ , $\widehat { r }$ (the same as (2)) replacing $P , r .$ By Algorithm 1, we have bTheorem 5.1 (Assumption-free offline reinforcement learning). Let us make no assumption for $\mu$ and still denote $\bar { d } _ { m } : = \operatorname * { m i n } _ { h \in [ H ] } \{ d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 \}$ . For any $0 < \delta < 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota ( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of APVI satisfies (recall $\mathcal { C } _ { h } : = \{ ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 \}$ )
218
+
219
+ $$
220
+ v ^ { \star } - v ^ { \widehat { \pi } } \leq \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dagger \pi ^ { \star } } \left( s _ { h } ^ { \dagger } \right) + C ^ { \prime } \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in { \mathcal { C } } _ { h } } d _ { h } ^ { \dagger \pi ^ { \star } } \left( s _ { h } , a _ { h } \right) \cdot \sqrt { \frac { \operatorname { V a r } _ { P _ { \hat { s } _ { h } , a _ { h } } ^ { \dagger } } \left( r _ { h } ^ { \dagger } + V _ { h + 1 } ^ { \dagger \pi ^ { \star } } \right) \cdot \iota } { n \cdot d _ { h } ^ { \mu } \left( s _ { h } , a _ { h } \right) } } + \widetilde { O } \left( \frac { H ^ { 3 } } { n \bar { d } _ { m } } \right) ,
221
+ $$
222
+
223
+ where $d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } , a _ { h } ) \leq d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) , V _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ) \leq V _ { h } ^ { \star } ( s _ { h } ) .$ for all $s _ { h } , a _ { h } \in S \times \mathcal { A } ,$ , and for all $h \in [ H ]$ , $\begin{array} { r } { d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } ) = \sum _ { t = 1 } ^ { h - 1 } \sum _ { ( s _ { t } , a _ { t } ) \in \mathcal { S } \times \mathcal { A } \backslash \mathcal { C } _ { t } } d _ { t } ^ { \dagger \pi ^ { \star } } \big ( s _ { t } , a _ { t } \big ) } \end{array}$ . The proof is in Appendix $E$ .
224
+
225
+ Take-aways of Theorem 5.1. In $M ^ { \dagger }$ , there is no agnostic location any more since the original unknown spaces now all have known deterministic transitions to $s ^ { \dagger }$ in $M ^ { \dagger }$ . At a price, the algorithm has to suffer the constant suboptimality PH+1h=2 $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } )$ due to no data in the region. The quantity $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dag \pi ^ { \star } } ( s _ { h } ^ { \dag } )$ helps characterize the hardness when nothing is assumed about $\mu$ : it is always less than $H$ (cannot suffer more than suboptimality); under Assumption 2.1, it is 0 since with high probability (by Chernoff bound) and this causes $\boldsymbol { \mathcal { S } } \times \boldsymbol { \mathcal { A } } \backslash \boldsymbol { \bar { \mathcal { C } } } _ { h } = \boldsymbol { \emptyset }$ ; under Assumption 2.3, it is also 0 and 5.1 reduces to Theorem 4.1 (see Appendix F).
226
+
227
+ # 5.1 Assumption Free vs Without Great Coverage (Partial Coverage)
228
+
229
+ Recently there is a surge of studies that aim at weakening the assumptions of provable offline $/$ batch RL. Those learning bounds are derived (mostly) under the insufficient data coverage assumptions. One type of works consider the assumption without great coverage (or partial coverage): Chang et al. [2021], Uehara and Sun [2021] assume $\begin{array} { r } { \operatorname* { m a x } _ { s , a } d ^ { \pi _ { e } } ( s , a ) / \mu ( s , a ) < \infty } \end{array}$ where $\pi _ { e }$ is either an expert policy or a policy of great quality and they further compete against with this policy $\pi _ { e }$ . Those assumptions are similar to 2.3 and therefore are stronger than the assumption-free RL we considered in 5.1.
230
+
231
+ In addition, there are other studies that apply to the case where $\mu$ can be arbitrary: Liu et al. [2020] considers the behavior policy with insufficient coverage probability $\epsilon _ { \zeta }$ (see their Definition 1), and they end up with the constant suboptimality gap Vmaxζ1−γ (their Theorem 1), when the insufficient coverage probability $\epsilon _ { \zeta } > 0$ , this gap has order $( 1 - \gamma ) ^ { - 2 }$ , which is larger in order than the biggest possible suboptimality gap $( 1 - \gamma ) ^ { - 1 }$ therefore unable to characterize the essential statistical gap over the region that can never be visited by the behavior policy (and this happens similarly in Kidambi et al. [2020], see their Theorem 1); Jin et al. [2020] derive the nice assumption-free result via regularization and their bound can incur $O ( H ^ { 2 } )$ constant gap when there is at least one $\left( s _ { h } , a _ { h } \right)$ cannot be obtained by $\mu$ for all $h \in [ H ]$ (i.e. replacing $n d _ { h } ^ { \bar { \mu } } ( { \bar { s } } _ { h } , a _ { h } )$ by 1 in (3)). The concurrent work Xie et al. [2021a] provides a better characterization (and they call it off-support error) with roughly $\begin{array} { r } { \frac { 1 } { 1 - \gamma } \sum _ { \left( s , a \right) \in S \times A } \left( d _ { \pi } \backslash \nu \right) \left( s , a \right) \left[ \Delta f _ { \pi } ( s , a ) - ( \mathcal { T } ^ { \pi } \Delta f _ { \pi } ) \left( s , \bar { a } \right) \right] } \end{array}$ , however, in the worst case $\Delta f _ { \pi } ( s , a ) - ( T ^ { \pi } \Delta f _ { \pi } ) ( s , a )$ might be large (which depends on the quality (assumption) of the function approximation class).
232
+
233
+ In contrast, our 1) describes the $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dag \pi ^ { \star } } ( s _ { h } ^ { \dag } )$ quantity (with p in a more pr $\begin{array} { r } { d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } ) = \sum _ { t = 1 } ^ { h - 1 } \sum _ { ( s _ { t } , a _ { t } ) \in \mathcal { S } \times \mathcal { A } \backslash \mathcal { C } _ { t } } d _ { t } ^ { \dagger \pi ^ { \star } } ( s _ { t } , a _ { t } ) \leq } \end{array}$ into $s ^ { \dagger }$ and it is always bounded between 0 and $H$ . It reduces to 0 when $\pi ^ { \star }$ is covered. The gap is always of order $H$ (as opposed to $O ( H ^ { 2 } ) _ { * }$ ).
234
+
235
+ # 6 Discussion and Conclusion
236
+
237
+ This work studies the offline reinforcement learning problem and contributes the intrinsic offline learning bound which is a near-optimal and strong adaptive bound that subsumes existing worst-case bounds under various assumptions. The adaptive characterization of the intrinsic bound abandons the explicit dependence on $H , S , A , C ^ { \star } , d _ { m }$ and helps reveal the fundamental hardness of each individual instances. In this sense, it draws a clearer picture of what offline reinforcement learning looks like and serves as a step towards instance optimality in offline RL.
238
+
239
+ Nevertheless, it is still unclear whether (5) is optimal over all the instances. For example, for fully deterministic systems, our bound provides a faster convergence $H ^ { 3 } / n \bar { d } _ { m }$ , however, $\bar { H } ^ { 3 }$ might be very suboptimal comparing to algorithms that are designed specifically for deterministic MDPs, since the agent only need to experience each location $( s , a )$ once to fully acquire the dynamic $P ( \cdot | s , a )$ and $r ( s , a )$ . Recently, Xiao et al. [2021] goes beyond the minimax (worst case) optimality and studies the instance optimality behavior for the simplified batch bandit setting. One of their findings is: for “easy enough” tasks, different type of algorithms can be equally good, provably. This seems to suggest instance optimality only matters for problems that are hard to learn. How to formally define the instance optimality metric for different problems remains an open problem and how to design a single algorithm that can achieve optimality for all instances could be challenging (or even infeasible). We leave those as the future works.
240
+
241
+ # Acknowledgment
242
+
243
+ The research is partially supported by NSF Awards #2007117 and #2003257. MY would like to thank Chenjun Xiao for bringing up a related literature [Xiao et al., 2021] and Masatoshi Uehara, Yu Bai for helpful suggestions.
244
+
245
+ # References
246
+
247
+ Alekh Agarwal, Sham Kakade, and Lin F Yang. Model-based reinforcement learning with a generative model is minimax optimal. In Conference on Learning Theory, pages 67–83, 2020.
248
+
249
+ Andras Antos, Remi Munos, and Csaba Szepesvari. Fitted q-iteration in continuous action-space mdps. In Advances in Neural Information Processing Systems, pages 9–16, 2008a.
250
+
251
+ András Antos, Csaba Szepesvári, and Rémi Munos. Learning near-optimal policies with bellmanresidual minimization based fitted policy iteration and a single sample path. Machine Learning, 71 (1):89–129, 2008b.
252
+
253
+ Mohammad Gheshlaghi Azar, Ian Osband, and Rémi Munos. Minimax regret bounds for reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 263–272. JMLR. org, 2017.
254
+
255
+ Yu Bai, Tengyang Xie, Nan Jiang, and Yu-Xiang Wang. Provably efficient q-learning with low switching cost. In Advances in Neural Information Processing Systems, volume 32, 2019.
256
+
257
+ Ronen I Brafman and Moshe Tennenholtz. R-max-a general polynomial time algorithm for nearoptimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002.
258
+
259
+ Sébastien Bubeck and Nicolo Cesa-Bianchi. Regret analysis of stochastic and nonstochastic multiarmed bandit problems. Foundations and Trends in Machine Learning, 2012.
260
+
261
+ Jacob Buckman, Carles Gelada, and Marc G Bellemare. The importance of pessimism in fixed-dataset policy optimization. International Conference on Learning Representations, 2021.
262
+
263
+ Qi Cai, Zhuoran Yang, Chi Jin, and Zhaoran Wang. Provably efficient exploration in policy optimization. In International Conference on Machine Learning, pages 1283–1294. PMLR, 2020.
264
+
265
+ T Tony Cai and Mark G Low. An adaptation theory for nonparametric confidence intervals. The Annals of statistics, 32(5):1805–1840, 2004.
266
+
267
+ Jonathan D Chang, Masatoshi Uehara, Dhruv Sreenivas, Rahul Kidambi, and Wen Sun. Mitigating covariate shift in imitation learning via offline data without great coverage. Advances in Neural Information Processing Systems, 2021.
268
+
269
+ Jinglin Chen and Nan Jiang. Information-theoretic considerations in batch reinforcement learning. In International Conference on Machine Learning, pages 1042–1051, 2019.
270
+
271
+ Herman Chernoff et al. A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations. The Annals of Mathematical Statistics, 23(4):493–507, 1952.
272
+
273
+ Wang Chi Cheung, David Simchi-Levi, and Ruihao Zhu. Reinforcement learning for non-stationary markov decision processes: The blessing of (more) optimism. In International Conference on Machine Learning, pages 1843–1854. PMLR, 2020.
274
+
275
+ Yaqi Duan, Zeyu Jia, and Mengdi Wang. Minimax-optimal off-policy evaluation with linear function approximation. In International Conference on Machine Learning, pages 8334–8342, 2020.
276
+
277
+ Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
278
+
279
+ Justin Fu, Mohammad Norouzi, Ofir Nachum, George Tucker, Ziyu Wang, Alexander Novikov, Mengjiao Yang, Michael R Zhang, Yutian Chen, Aviral Kumar, et al. Benchmarks for deep off-policy evaluation. International Conference on Learning Representations, 2021.
280
+
281
+ Caglar Gulcehre, Ziyu Wang, Alexander Novikov, Tom Le Paine, Sergio Gómez Colmenarejo, Konrad Zolna, Rishabh Agarwal, Josh Merel, Daniel Mankowitz, Cosmin Paduraru, et al. Rl unplugged: Benchmarks for offline reinforcement learning. Advances in neural information processing systems, 2020.
282
+
283
+ Michael Janner, Qiyang Li, and Sergey Levine. Reinforcement learning as one big sequence modeling problem. Advances in neural information processing systems, 2021.
284
+
285
+ Nan Jiang and Alekh Agarwal. Open problem: The dependence of sample complexity lower bounds on planning horizon. In Conference On Learning Theory, pages 3395–3398, 2018.
286
+
287
+ Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In Proceedings of the 33rd International Conference on International Conference on Machine Learning-Volume 48, pages 652–661. JMLR. org, 2016.
288
+
289
+ Nan Jiang, Akshay Krishnamurthy, Alekh Agarwal, John Langford, and Robert E Schapire. Contextual decision processes with low bellman rank are pac-learnable. In International Conference on Machine Learning-Volume 70, pages 1704–1713, 2017.
290
+
291
+ Ying Jin, Zhuoran Yang, and Zhaoran Wang. Is pessimism provably efficient for offline rl? International Conference on Machine Learning, 2020.
292
+
293
+ Tobias Jung and Peter Stone. Gaussian processes for sample efficient reinforcement learning with rmax-like exploration. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 601–616. Springer, 2010.
294
+
295
+ Koulik Khamaru, Ashwin Pananjady, Feng Ruan, Martin J Wainwright, and Michael I Jordan. Is temporal difference learning optimal? an instance-dependent analysis. SIAM Journal on Mathematics of Data Science, 2021a.
296
+
297
+ Koulik Khamaru, Eric Xia, Martin J Wainwright, and Michael I Jordan. Instance-optimality in optimal value estimation: Adaptivity via variance-reduced q-learning. arXiv preprint arXiv:2106.14352, 2021b.
298
+
299
+ Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Modelbased offline reinforcement learning. Advances in neural information processing systems, 2020.
300
+
301
+ Akshay Krishnamurthy, Alekh Agarwal, and John Langford. PAC reinforcement learning with rich observations. In Advances in Neural Information Processing Systems, pages 1840–1848, 2016.
302
+
303
+ Sascha Lange, Thomas Gabel, and Martin Riedmiller. Batch reinforcement learning. In Reinforcement learning, pages 45–73. Springer, 2012.
304
+
305
+ Hoang Le, Cameron Voloshin, and Yisong Yue. Batch policy learning under constraints. In International Conference on Machine Learning, pages 3703–3712, 2019.
306
+
307
+ Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
308
+
309
+ Yao Liu, Adith Swaminathan, Alekh Agarwal, and Emma Brunskill. Off-policy policy gradient with state distribution correction. In Uncertainty in Artificial Intelligence, 2019.
310
+
311
+ Yao Liu, Adith Swaminathan, Alekh Agarwal, and Emma Brunskill. Provably good batch reinforcement learning without great exploration. Advances in neural information processing systems, 2020.
312
+
313
+ Odalric-Ambrym Maillard, Timothy A Mann, and Shie Mannor. How hard is my mdp?" the distribution-norm to the rescue". Advances in Neural Information Processing Systems, 27:1835– 1843, 2014.
314
+
315
+ Andreas Maurer and Massimiliano Pontil. Empirical bernstein bounds and sample variance penaliza tion. Conference on Learning Theory, 2009.
316
+
317
+ Paria Rashidinejad, Banghua Zhu, Cong Ma, Jiantao Jiao, and Stuart Russell. Bridging offline reinforcement learning and imitation learning: A tale of pessimism. arXiv preprint arXiv:2103.12021, 2021.
318
+
319
+ Tongzheng Ren, Jialian Li, Bo Dai, Simon S Du, and Sujay Sanghavi. Nearly horizon-free offline reinforcement learning. Advances in neural information processing systems, 2021.
320
+
321
+ Karthik Sridharan. A gentle introduction to concentration inequalities. Dept. Comput. Sci., Cornell Univ., Tech. Rep, 2002.
322
+
323
+ Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
324
+
325
+ Csaba Szepesvári and Rémi Munos. Finite time bounds for sampling based fitted value iteration. In Proceedings of the 22nd international conference on Machine learning, pages 880–887, 2005.
326
+
327
+ Joel Tropp et al. Freedman’s inequality for matrix martingales. Electronic Communications in Probability, 16:262–270, 2011.
328
+
329
+ Masatoshi Uehara and Wen Sun. Pessimistic model-based offline rl: Pac bounds and posterior sampling under partial coverage. arXiv preprint arXiv:2107.06226, 2021.
330
+
331
+ Ruosong Wang, Dean P Foster, and Sham M Kakade. What are the statistical limits of offline rl with linear function approximation? International Conference on Machine Learning, 2021.
332
+
333
+ Zheng Wen and Benjamin Van Roy. Efficient exploration and value function generalization in deterministic systems. Advances in Neural Information Processing Systems, 26, 2013.
334
+
335
+ Chenjun Xiao, Yifan Wu, Jincheng Mei, Bo Dai, Tor Lattimore, Lihong Li, Csaba Szepesvari, and Dale Schuurmans. On the optimality of batch policy optimization algorithms. In International Conference on Machine Learning, pages 11362–11371. PMLR, 2021.
336
+
337
+ Tengyang Xie and Nan Jiang. $\mathbf { Q } ^ { * }$ approximation schemes for batch reinforcement learning: A theoretical comparison. In Uncertainty in Artificial Intelligence, pages 550–559, 2020.
338
+
339
+ Tengyang Xie and Nan Jiang. Batch value-function approximation with only realizability. International Conference on Machine Learning, 2021.
340
+
341
+ Tengyang Xie, Ching-An Cheng, Nan Jiang, Paul Mineiro, and Alekh Agarwal. Bellman-consistent pessimism for offline reinforcement learning. Advances in neural information processing systems, 2021a.
342
+
343
+ Tengyang Xie, Nan Jiang, Huan Wang, Caiming Xiong, and Yu Bai. Policy finetuning: Bridging sample-efficient offline and online reinforcement learning. Advances in neural information processing systems, 2021b.
344
+
345
+ Ming Yin and Yu-Xiang Wang. Asymptotically efficient off-policy evaluation for tabular reinforcement learning. In International Conference on Artificial Intelligence and Statistics, pages 3948–3958. PMLR, 2020.
346
+
347
+ Ming Yin and Yu-Xiang Wang. Optimal uniform ope and model-based offline reinforcement learning in time-homogeneous, reward-free and task-agnostic settings. Advances in neural information processing systems, 2021.
348
+
349
+ Ming Yin, Yu Bai, and Yu-Xiang Wang. Near-optimal provable uniform convergence in offline policy evaluation for reinforcement learning. In International Conference on Artificial Intelligence and Statistics, pages 1567–1575. PMLR, 2021a.
350
+
351
+ Ming Yin, Yu Bai, and Yu-Xiang Wang. Near-optimal offline reinforcement learning via double variance reduction. Advances in neural information processing systems, 2021b.
352
+
353
+ Andrea Zanette. Exponential lower bounds for batch reinforcement learning: Batch rl can be exponentially harder than online rl. International Conference on Machine Learning, 2021.
354
+
355
+ Andrea Zanette and Emma Brunskill. Problem dependent reinforcement learning bounds which can identify bandit structure in mdps. In International Conference on Machine Learning, pages 5747–5755. PMLR, 2018.
356
+
357
+ Andrea Zanette and Emma Brunskill. Tighter problem-dependent regret bounds in reinforcement learning without domain knowledge using value function bounds. In International Conference on Machine Learning, pages 7304–7312. PMLR, 2019.
358
+
359
+ Andrea Zanette, Martin J Wainwright, and Emma Brunskill. Provable benefits of actor-critic methods for offline reinforcement learning. Advances in neural information processing systems, 2021.
360
+
361
+ Zihan Zhang, Xiangyang Ji, and Simon S Du. Is reinforcement learning more difficult than bandits? a near-optimal algorithm escaping the curse of horizon. Conference of Learning Theory, 2021.
parse/train/1XwPDFrJObw/1XwPDFrJObw_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1XwPDFrJObw/1XwPDFrJObw_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1XwPDFrJObw/1XwPDFrJObw_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6OoCDvFV4m/6OoCDvFV4m.md ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Deep Residual Learning in Spiking Neural Networks
2
+
3
+ Wei Fang1,2, Zhaofei $\mathrm { { Y u ^ { 1 , 2 * } } }$ , Yanqi Chen1,2,
4
+
5
+ Tiejun Huang1,2, Timothée Masquelier3, Yonghong Tian1,2∗
6
+
7
+ 1Department of Computer Science and Technology, Peking University 2Peng Cheng Laboratory, Shenzhen 518055, China 3Centre de Recherche Cerveau et Cognition, UMR5549 CNRS - Univ. Toulouse 3 , Toulouse, France
8
+
9
+ # Abstract
10
+
11
+ Deep Spiking Neural Networks (SNNs) present optimization difficulties for gradient-based approaches due to discrete binary activation and complex spatialtemporal dynamics. Considering the huge success of ResNet in deep learning, it would be natural to train deep SNNs with residual learning. Previous Spiking ResNet mimics the standard residual block in ANNs and simply replaces ReLU activation layers with spiking neurons, which suffers the degradation problem and can hardly implement residual learning. In this paper, we propose the spikeelement-wise (SEW) ResNet to realize residual learning in deep SNNs. We prove that the SEW ResNet can easily implement identity mapping and overcome the vanishing/exploding gradient problems of Spiking ResNet. We evaluate our SEW ResNet on ImageNet, DVS Gesture, and CIFAR10-DVS datasets, and show that SEW ResNet outperforms the state-of-the-art directly trained SNNs in both accuracy and time-steps. Moreover, SEW ResNet can achieve higher performance by simply adding more layers, providing a simple method to train deep SNNs. To our best knowledge, this is the first time that directly training deep SNNs with more than 100 layers becomes possible. Our codes are available at https: //github.com/fangwei123456/Spike-Element-Wise-ResNet.
12
+
13
+ # 1 Introduction
14
+
15
+ Artificial Neural Networks (ANNs) have achieved great success in many tasks, including image classification [28, 52, 55], object detection [9, 34, 44], machine translation [2], and gaming [37, 51]. One of the critical factors for ANNs’ success is deep learning [29], which uses multi-layers to learn representations of data with multiple levels of abstraction. It has been proved that deeper networks have advantages over shallower networks in computation cost and generalization ability [3]. The function represented by a deep network can require an exponential number of hidden units by a shallow network with one hidden layer [38]. In addition, the depth of the network is closely related to the network’s performance in practical tasks [52, 55, 27, 52]. Nevertheless, recent evidence [13, 53, 14] reveals that with the network depth increasing, the accuracy gets saturated and then degrades rapidly. To solve this degradation problem, residual learning is proposed [14, 15] and the residual structure is widely exploited in “very deep” networks that achieve the leading performance [22, 59, 18, 57].
16
+
17
+ Spiking Neural Networks (SNNs) are regarded as a potential competitor of ANNs for their high biological plausibility, event-driven property, and low power consumption [45]. Recently, deep learning methods are introduced into SNNs, and deep SNNs have achieved close performance as ANNs in some simple classification datasets [56], but still worse than ANNs in complex tasks, e.g., classifying the ImageNet dataset [47]. To obtain higher performance SNNs, it would be natural to explore deeper network structures like ResNet. Spiking ResNet [25, 60, 21, 17, 49, 12, 30, 64, 48, 42, 43], as the spiking version of ResNet, is proposed by mimicking the residual block in ANNs and replacing ReLU activation layers with spiking neurons. Spiking ResNet converted from ANN achieves state-of-the-art accuracy on nearly all datasets, while the directly trained Spiking ResNet has not been validated to solve the degradation problem.
18
+
19
+ In this paper, we show that Spiking ResNet is inapplicable to all neuron models to achieve identity mapping. Even if the identity mapping condition is met, Spiking ResNet suffers from the problems of vanishing/exploding gradient. Thus, we propose the Spike-Element-Wise (SEW) ResNet to realize residual learning in SNNs. We prove that the SEW ResNet can easily implement identity mapping and overcome the vanishing/exploding gradient problems at the same time. We evaluate Spiking ResNet and SEW ResNet on both the static ImageNet dataset and the neuromorphic DVS Gesture dataset [1], CIFAR10-DVS dataset [32]. The experiment results are consistent with our analysis, indicating that the deeper Spiking ResNet suffers from the degradation problem — the deeper network has higher training loss than the shallower network, while SEW ResNet can achieve higher performance by simply increasing the network’s depth. Moreover, we show that SEW ResNet outperforms the state-of-the-art directly trained SNNs in both accuracy and time-steps. To the best of our knowledge, this is the first time to explore the directly-trained deep SNNs with more than 100 layers.
20
+
21
+ # 2 Related Work
22
+
23
+ # 2.1 Learning Methods of Spiking Neural Networks
24
+
25
+ ANN to SNN conversion (ANN2SNN) [20, 4, 46, 49, 12, 11, 6, 54, 33] and backpropagation with surrogate gradient [40] are the two main methods to get deep SNNs. The ANN2SNN method firstly trains an ANN with ReLU activation, then converts the ANN to an SNN by replacing ReLU with spiking neurons and adding scaling operations like weight normalization and threshold balancing. Some recent conversion methods have achieved near loss-less accuracy with VGG-16 and ResNet [12, 11, 6, 33]. However, the converted SNN needs a longer time to rival the original ANN in precision as the conversion is based on rate-coding [46], which increases the SNN’s latency and restricts the practical application. The backpropagation methods can be classified into two categories [26]. The method in the first category computes the gradient by unfolding the network over the simulation timesteps [31, 19, 58, 50, 30, 40], which is similar to the idea of backpropagation through time (BPTT). As the gradient with respect to the threshold-triggered firing is non-differentiable, the surrogate gradient is often used. The SNN trained by the surrogate method is not limited to rate-coding, and can also be applied on temporal tasks, e.g., classifying neuromorphic datasets [58, 8, 16]. The second method computes the gradients of the timings of existing spikes with respect to the membrane potential at the spike timing [5, 39, 24, 65, 63].
26
+
27
+ # 2.2 Spiking Residual Structure
28
+
29
+ Previous ANN2SNN methods noticed the distinction between plain feedforward ANNs and residual ANNs, and made specific normalization for conversion. Hu et al. [17] were the first to apply the residual structure in ANN2SNN with scaled shortcuts in SNN to match the activations of the original ANN. Sengupta et al. [49] proposed Spike-Norm to balance SNN’s threshold and verified their method by converting VGG and ResNet to SNNs. Existing backpropagation-based methods use nearly the same structure from ResNet. Lee et al. [30] evaluated their custom surrogate methods on shallow ResNets whose depths are no more than ResNet-11. Zheng et al. [64] proposed the threshold-dependent batch normalization (td-BN) to replace naive batch normalization (BN) [23] and successfully trained Spiking ResNet-34 and Spiking ResNet-50 directly with surrogate gradient by adding td-BN in shortcuts.
30
+
31
+ # 3 Methods
32
+
33
+ # 3.1 Spiking Neuron Model
34
+
35
+ The spiking neuron is the fundamental computing unit of SNNs. Similar to Fang et al. [8], we use a unified model to describe the dynamics of all kinds of spiking neurons, which includes the following
36
+
37
+ ![](images/b5ec2614e6cf2120ea600d72dfbd318f14729a9a283e05c316dc83083eca6ae6.jpg)
38
+ Figure 1: Residual blocks in ResNet, Spiking ResNet and SEW ResNet.
39
+
40
+ discrete-time equations:
41
+
42
+ $$
43
+ \begin{array} { l } { { H [ t ] = f ( V [ t - 1 ] , X [ t ] ) , } } \\ { { S [ t ] = \Theta ( H [ t ] - V _ { t h } ) , } } \\ { { V [ t ] = H [ t ] \ ( 1 - S [ t ] ) + V _ { r e s e t } \ S [ t ] , } } \end{array}
44
+ $$
45
+
46
+ where $X [ t ]$ is the input current at time-step $t , H [ t ]$ and $V [ t ]$ denote the membrane potential after neuronal dynamics and after the trigger of a spike at time-step $t$ , respectively. $V _ { t h }$ is the firing threshold, $\Theta ( x )$ is the Heaviside step function and is defined by $\Theta ( x ) = 1$ for $x \geq 0$ and $\Theta ( x ) = { \bar { 0 } }$ for $x < 0 , S [ t ]$ is the output spike at time-step $t$ , which equals 1 if there is a spike and 0 otherwise. $V _ { r e s e t }$ denotes the reset potential. The function $f ( \cdot )$ in Eq. (1) describes the neuronal dynamics and takes different forms for different spiking neuron models. For example, the function $f ( \cdot )$ for the Integrate-and-Fire (IF) model and Leaky Integrate-and-Fire (LIF) model can be described by Eq. (4) and Eq. (5), respectively.
47
+
48
+ $$
49
+ \begin{array} { l } { \displaystyle H [ t ] = V [ t - 1 ] + X [ t ] , } \\ { \displaystyle H [ t ] = V [ t - 1 ] + \frac { 1 } { \tau } ( X [ t ] - ( V [ t - 1 ] - V _ { r e s e t } ) ) , } \end{array}
50
+ $$
51
+
52
+ where $\tau$ represents the membrane time constant. Eq. (2) and Eq. (3) describe the spike generation and resetting processes, which are the same for all kinds of spiking neuron models. In this paper, the surrogate gradient method is used to define $\Theta ^ { \prime } ( x ) \triangleq \sigma ^ { \prime } ( x )$ during error back-propagation, with $\sigma ( x )$ denoting the surrogate function.
53
+
54
+ # 3.2 Drawbacks of Spiking ResNet
55
+
56
+ The residual block is the key component of ResNet. Fig. 1(a) shows the basic block in ResNet [14], where $X ^ { l } , Y ^ { l }$ are the input and output of the $l$ -th block in ResNet, Conv is the convolutional layer, BN denotes batch normalization, and ReLU denotes the rectified linear unit activation layer. The basic block of Spiking ResNet used in [64, 17, 30] simply mimics the block in ANNs by replacing ReLU activation layers with spiking neurons (SN), which is illustrated in Fig. 1(b). Here ${ \dot { S } } ^ { l } [ t { \bar { ] } } , O ^ { l } [ t ]$ are the input and output of the $l$ -th block in Spiking ResNet at time-step $t$ . Based on the above definition, we will analyze the drawbacks of Spiking ResNet below.
57
+
58
+ Spiking ResNet is inapplicable to all neuron models to achieve identity mapping. One of the critical concepts in ResNet is identity mapping. He et al. [14] noted that if the added layers implement the identity mapping, a deeper model should have training error no greater than its shallower counterpart. However, it is unable to train the added layers to implement identity mapping in a feasible time, resulting in deeper models performing worse than shallower models (the degradation problem). To solve this problem, the residual learning is proposed by adding a shortcut connection (shown in Fig. 1(a)). If we use $\mathcal { F } ^ { l }$ to denote the residual mapping, e.g., a stack of two convolutional layers, of the $l$ -th residual block in ResNet and Spiking ResNet, then the residual block in Fig.1(a)
59
+
60
+ and Fig.1(b) can be formulated as
61
+
62
+ $$
63
+ \begin{array} { r } { Y ^ { l } = \mathrm { R e L U } ( \mathcal { F } ^ { l } ( X ^ { l } ) + X ^ { l } ) , } \\ { O ^ { l } [ t ] = \mathrm { S N } ( \mathcal { F } ^ { l } ( S ^ { l } [ t ] ) + S ^ { l } [ t ] ) . } \end{array}
64
+ $$
65
+
66
+ The residual block of Eq. (6) make it easy to implement identity mapping in ANNs. To see this, when $\mathcal { F } ^ { l } ( X ^ { l } ) \equiv 0$ , $Y ^ { l } = \mathrm { R e L U } ( \mathbf { X } ^ { \ l } )$ . In most cases, $X ^ { l }$ is the activation of the previous ReLU layer and $X ^ { l } \ge 0$ . Thus, $Y ^ { l } = \mathrm { R e L U } ( X ^ { l } ) = X ^ { l }$ , which is identity mapping.
67
+
68
+ Different from ResNet, the residual block in Spiking ResNet (Eq. (7)) restricts the models of spiking neuron to implement identity mapping. When $\dot { \mathcal { F } } ^ { l } ( S ^ { \tilde { l } } [ t ] ) \equiv 0$ , $O ^ { l } [ t ] = \operatorname { S N } ( S ^ { l } [ t ] ) \neq S ^ { l } [ t ]$ . To transmit $S ^ { l } [ t ]$ and make $\mathrm { S N } ( S ^ { l } [ t ] ) = S ^ { l } [ t ]$ , the last spiking neuron (SN) in the $l$ -th residual block needs to fire a spike after receiving a spike, and keep silent after receiving no spike at time-step $t$ . It works for IF neuron described by Eq. (4). Specifically, we can set $0 < V _ { t h } \le 1$ and $V [ t - 1 ] = 0$ to ensure that $X [ t ] = 1$ leads to $H [ t ] \geq V _ { t h }$ , and $X [ t ] \stackrel { \cdot } { = } 0$ leads to $H [ t ] < V _ { t h }$ . However, when considering some spiking neuron models with complex neuronal dynamics, it is hard to achieve $\mathrm { S N } ( S ^ { l } [ t ] ) = S ^ { l } [ t ]$ . For example, the LIF neuron used in [66, 8, 61] considers a learnable membrane time constant $\tau$ , the neuronal dynamics of which can be described with Eq. (5). When $X [ t ] = 1$ and $V [ t - 1 ] = 0$ , $\begin{array} { r } { H [ t ] = \frac { 1 } { \tau } } \end{array}$ . It is difficult to find a firing threshold that ensures $H [ t ] > V _ { t h }$ as $\tau$ is being changed in training by the optimizer.
69
+
70
+ Spiking ResNet suffers from the problems of vanishing/exploding gradient. Consider a spiking ResNet with $k$ sequential blocks to transmit $S ^ { l } [ t ]$ , and the identity mapping condition is met, e.g., the spiking neurons are the IF neurons with $0 < V _ { t h } \le 1$ , then we have $S ^ { l } [ t ] = S ^ { l + 1 } [ t ] = \ldots =$ $S ^ { l + k - 1 } [ t ] = O ^ { l + k - 1 } [ t ]$ . Denote the $j$ -th element in $S ^ { l } [ t ]$ and $O ^ { l } [ t ]$ as $S _ { j } ^ { l } [ t ]$ and $O _ { j } ^ { l } [ t ]$ respectively, the gradient of the output of the $( l + k - 1 )$ -th residual block with respect to the input of the $l$ -th residual block can be calculated layer by layer:
71
+
72
+ $$
73
+ \frac { \partial O _ { j } ^ { l + k - 1 } [ t ] } { \partial S _ { j } ^ { l } [ t ] } = \prod _ { i = 0 } ^ { k - 1 } \frac { \partial O _ { j } ^ { l + i } [ t ] } { \partial S _ { j } ^ { l + i } [ t ] } = \prod _ { i = 0 } ^ { k - 1 } \Theta ^ { \prime } ( S _ { j } ^ { l + i } [ t ] - V _ { t h } ) \{ \begin{array} { l l } { 0 , \mathbf { i f } \Theta < \Theta ^ { \prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) < 1 } \\ { 1 , \mathbf { i f } \Theta ^ { \prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) = 1 } \\ { + \infty , \mathbf { i f } \Theta ^ { \prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) > 1 } \end{array} ,
74
+ $$
75
+
76
+ where $\Theta ( x )$ is the Heaviside step function and $\Theta ^ { \prime } ( x )$ is defined by the surrogate gradient. The second equality hold as $O _ { j } ^ { l + i } [ t ] = \mathrm { S N } ( S _ { j } ^ { l + i } [ t ] )$ . In view of the fact that $S _ { j } ^ { l } [ t ]$ can only take 0 or 1, $\Theta ^ { \prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) = 1$ is not satisfied for commonly used surrogate functions mentioned in [40]. Thus, the vanishing/exploding gradient problems are prone to happen in deeper Spiking ResNet.
77
+
78
+ Based on the above analysis, we believe that the previous Spiking ResNet ignores the highly nonlinear caused by spiking neurons, and can hardly implement residual learning. Nonetheless, the basic block in Fig. 1(b) is still decent for ANN2SNN with extra normalization [17, 49], as the SNN converted from ANN aims to use firing rates to match the origin ANN’s activations.
79
+
80
+ # 3.3 Spike-Element-Wise ResNet
81
+
82
+ Here we propose the Spike-Element-Wise (SEW) residual block to realize the residual learning in SNNs, which can easily implement identity mapping and overcome the vanishing/exploding gradient problems at the same time. As illustrated in Fig. 1(c), the SEW residual block can be formulated as:
83
+
84
+ $$
85
+ O ^ { l } [ t ] = g ( \mathrm { S N } ( \mathcal { F } ^ { l } ( S ^ { l } [ t ] ) ) , S ^ { l } [ t ] ) = g ( A ^ { l } [ t ] , S ^ { l } [ t ] ) ,
86
+ $$
87
+
88
+ where $g$ represents an element-wise function with two spikes tensor as inputs. Here we use $A ^ { l } [ t ]$ to denote the residual mapping to be learned as $A ^ { l } [ t ] = \mathrm { S N } ( \mathcal { F } ^ { l } ( S ^ { l } [ t ] ) )$ .
89
+
90
+ SEW ResNet can easily implement identity mapping. By utilizing the binary property of spikes, we can find different element-wise functions $g$ that satisfy identity mapping (shown in Tab. 1). To be specific, when choosing $A D D$ and IAND as element-wise functions $g$ , identity mapping is achieved by setting $A ^ { l } [ t ] \equiv 0$ , which can be implemented simply by setting the weights and the bias of the last batch normalization layer (BN) in $\mathcal { F } ^ { l }$ to zero. Then we can get $O ^ { l } [ t ] \stackrel { - } { = } g ( A ^ { l } [ t ] , S ^ { l } [ t ] ) = g ( \mathrm { S N } ( 0 ) , S ^ { l } [ t ] ) = g ( 0 , S ^ { l } [ t ] ) \stackrel { - } { = } S ^ { l } [ t ]$ . This is applicable to all neuron models. When using AND as the element-wise function $g$ , we set $A ^ { l } [ t ] \equiv 1$ to get identity mapping. It can be implemented by setting the last BN’s weights to zero and the bias to a large enough constant to cause spikes, e.g., setting the bias as $V _ { t h }$ when the last SN is IF neurons. Then we have $O ^ { l } [ t ] = 1 \land S ^ { l } [ \dot { t } ] = S ^ { l } [ t ]$ . Note that using AND may suffer from the same problem as Spiking ResNet. It is hard to control some spiking neuron models with complex neuronal dynamics to generate spikes at a specified time-step.
91
+
92
+ Table 1: List of element-wise functions $g$
93
+
94
+ <table><tr><td>Name</td><td>Expression of g(A[t],S[t])</td></tr><tr><td>ADD</td><td>A[t]+S[t]</td></tr><tr><td>AND</td><td>A[t]△s[]=A[]·S[]</td></tr><tr><td>IAND</td><td>(-Al[t])△S‘[t]=(1-A[t])):S[t]</td></tr></table>
95
+
96
+ ![](images/4ac730fadf39ed303c4ebfcef523e701db046c069196c72a74a7658946d3934b.jpg)
97
+ Figure 2: Downsample blocks in Spiking ResNet and SEW ResNet.
98
+
99
+ Formulation of downsample block. Remarkably, when the input and output of one block have different dimensions, the shortcut is set as convolutional layers with stride $> 1$ , rather than the identity connection, to perform downsampling. The ResNet and the Spiking ResNet utilize {ConvBN} without ReLU in shortcut (Fig. 2(a)). In contrast, we add a SN in shortcut (Fig. 2(b)).
100
+
101
+ SEW ResNet can overcome vanishing/exploding gradient. The SEW block is similar to ReLU before addition (RBA) block [15] in ANNs, which can be formulated as
102
+
103
+ $$
104
+ Y ^ { l } = \mathrm { R e L U } ( \mathcal { F } ^ { l } ( X ^ { l } ) ) + X ^ { l } .
105
+ $$
106
+
107
+ The RBA block is criticized by He et al. [15] for $X ^ { l + 1 } = Y ^ { l } \geq X ^ { l }$ , which will cause infinite outputs in deep layers. The experiment results in [15] also showed that the performance of the RBA block is worse than the basic block (Fig.1(a)). To some extent, the SEW block is an extension of the RBA block. Note that using $A N D$ and IAND as $g$ will output spikes (i.e. binary tensors), which means that the infinite outputs problem in ANNs will never occur in SNNs with SEW blocks, since all spikes are less or equal than 1. When choosing $A D D$ as $g$ , the infinite outputs problem can be relieved as the output of $k$ sequential SEW blocks will be no larger than $k + 1$ . In addition, a downsample SEW block will regulate the output to be no larger than 2 when $g$ is $A D D$ .
108
+
109
+ When the identity mapping is implemented, the gradient of the output of the $( l + k - 1 )$ -th SEW block with respect to the input of the $l$ -th SEW block can be calculated layer by layer:
110
+
111
+ $$
112
+ \frac { \partial O _ { j } ^ { l + k - 1 } [ t ] } { \partial S _ { j } ^ { l } [ t ] } = \prod _ { i = 0 } ^ { k - 1 } \frac { \partial g ( A _ { j } ^ { l + i } [ t ] , S _ { j } ^ { l + i } [ t ] ) } { \partial S _ { j } ^ { l + i } [ t ] } = \left\{ \prod _ { i = 0 } ^ { k - 1 } \frac { \partial ( ( \boldsymbol { 0 } + S _ { j } ^ { l + i } [ t ] ) } { \partial S _ { j } ^ { l + i } [ t ] } , \mathrm { i f ~ } g = A D D \right. \qquad = 1 .
113
+ $$
114
+
115
+ The second equality holds as identity mapping is achieved by setting $A ^ { l + i } [ t ] \equiv 1$ for $g = A N D$ , and $A ^ { l + i } [ t ] \equiv 0$ for $g = A D D / I A N D$ . Since the gradient in Eq. (11) is a constant, the SEW ResNet can overcome the vanishing/exploding gradient problems.
116
+
117
+ # 4 Experiments
118
+
119
+ # 4.1 ImageNet Classification
120
+
121
+ As the test server of ImageNet 2012 is no longer available, we can not report the actual test accuracy.
122
+ Instead, we use the accuracy on the validation set as the test accuracy, which is the same as [17, 64].
123
+
124
+ ![](images/6b9086656ad4506861229ab27e5507189e49c21944b1855ee1e6014b42ff6689.jpg)
125
+ Figure 3: Comparison of the training loss, training accuracy and test accuracy on ImageNet.
126
+
127
+ <table><tr><td rowspan="2">Network</td><td colspan="2">SEWResNet (ADD)</td><td colspan="2">Spiking ResNet</td></tr><tr><td>Acc@1(%)</td><td>Acc@5(%)</td><td>Acc@1(%)</td><td>Acc@5(%)</td></tr><tr><td>ResNet-18</td><td>63.18</td><td>84.53</td><td>62.32</td><td>84.05</td></tr><tr><td>ResNet-34</td><td>67.04</td><td>87.25</td><td>61.86</td><td>83.69</td></tr><tr><td>ResNet-50</td><td>67.78</td><td>87.52</td><td>57.66</td><td>80.43</td></tr><tr><td>ResNet-101</td><td>68.76</td><td>88.25</td><td>31.79</td><td>54.91</td></tr><tr><td>ResNet-152</td><td>69.26</td><td>88.57</td><td>10.03</td><td>23.57</td></tr></table>
128
+
129
+ Table 2: Test accuracy on ImageNet.
130
+
131
+ He et al. [14] evaluated the 18/34/50/101/152-layer ResNets on the ImageNet dataset. For comparison, we consider the SNNs with the same network architectures, except that the basic residual block (Fig.1(a)) is replaced by the spiking basic block (Fig.1(b)) and SEW block (Fig.1(c)) with $g$ as $A D D$ , respectively. We denote the SNN with the basic block as Spiking ResNet and the SNN with the SEW block as SEW ResNet. The IF neuron model is adopted for the static ImageNet dataset. During training on ImageNet, we find that the Spiking ResNet-50/101/152 can not converge unless we use the zero initialization [10], which sets all blocks to be an identity mapping at the start of training. Thus, the results of Spiking ResNet-18/34/50/101/152 reported in this paper are with zero initialization.
132
+
133
+ Spiking ResNet vs. SEW ResNet. We first evaluate the performance of Spiking ResNet and SEW ResNet. Tab. 2 reports the test accuracy on ImageNet validation. The results show that the deeper 34-layer Spiking ResNet has lower test accuracy than the shallower 18-layer Spiking ResNet. As the layer increases, the test accuracy of Spiking ResNet decreases. To reveal the reason, we compare the training loss, training accuracy, and test accuracy of Spiking ResNet during the training procedure, which is shown in Fig. 3. We can find the degradation problem of the Spiking ResNet — the deeper network has higher training loss than the shallower network. In contrast, the deeper 34-layer SEW ResNet has higher test accuracy than the shallower 18-layer SEW ResNet (shown in Tab. 2). More importantly, it can be found from Fig. 3 that the training loss of our SEW ResNet decreases and the training/test accuracy increases with the increase of depth, which indicates that we can obtain higher performance by simply increasing the network’s depth. All these results imply that the degradation problem is well addressed by SEW ResNet.
134
+
135
+ Comparisons with State-of-the-art Methods. In Tab. 3, we compare SEW ResNet with previous Spiking ResNets that achieve the best results on ImageNet. To our best knowledge, the SEW ResNet101 and the SEW ResNet-152 are the only SNNs with more than 100 layers to date, and there are no other networks with the same structure to compare. When the network structure is the same, our SEW ResNet outperforms the state-of-the-art accuracy of directly trained Spiking ResNet, even with fewer time-steps $T$ . The accuracy of SEW ResNet-34 is slightly lower than Spiking ResNet-34 (large) with td-BN $( 6 7 . 0 4 \%$ v.s. $6 7 . 0 5 \%$ ), which uses 1.5 times as many simulating time-steps $T$ (6 v.s. 4) and 4 times as many the number of parameters (85.5M v.s. 21.8M), compared with our SEW ResNet. The state-of-the-art ANN2SNN methods [33, 17] have better accuracy than our SEW ResNet, but they respectively use 64 and 87.5 times as many time-steps as ours.
136
+
137
+ <table><tr><td>Network</td><td>Methods</td><td>Accuracy(%)</td><td>T</td></tr><tr><td>SEW ResNet-34</td><td>Spike-based BP</td><td>67.04</td><td>4</td></tr><tr><td>Spiking ResNet-34(large)† with td-BN [64]</td><td>Spike-based BP</td><td>67.05</td><td>6</td></tr><tr><td>Spiking ResNet-34 with td-BN [64]</td><td>Spike-based BP</td><td>63.72</td><td>6</td></tr><tr><td>Spiking ResNet-34 [12]</td><td>ANN2SNN</td><td>69.89</td><td>4096</td></tr><tr><td>Spiking ResNet-34 [49]</td><td>ANN2SNN</td><td>65.47</td><td>2000</td></tr><tr><td>Spiking ResNet-34 [33]</td><td>ANN2SNN</td><td>74.61</td><td>256</td></tr><tr><td>Spiking ResNet-34 [43]</td><td>ANN2SNN and Spike-based BP</td><td>61.48</td><td>250</td></tr><tr><td>SEW ResNet-50</td><td>Spike-basedBP</td><td>67.78</td><td>4</td></tr><tr><td>Spiking ResNet-50 with td-BN [64]</td><td>Spike-based BP</td><td>64.88</td><td>6</td></tr><tr><td>Spiking ResNet-50 [17]</td><td>ANN2SNN</td><td>72.75</td><td>350</td></tr><tr><td>SEWResNet-101</td><td>Spike-based BP</td><td>68.76</td><td>4</td></tr><tr><td>SEWResNet-152</td><td>Spike-basedBP</td><td>69.26</td><td>4</td></tr></table>
138
+
139
+ Table 3: Comparison with previous Spiking ResNet on ImageNet. † has the same network structure as the standard Spiking ResNet-34, but uses four times as many the number of convolution kernels.
140
+
141
+ ![](images/083eb00ec81924defce6805a3223ddb459767168347f3b8473343acc55f30ac7.jpg)
142
+ Figure 4: Firing rates of $A ^ { l }$ in SEW blocks on ImageNet.
143
+
144
+ Analysis of spiking response of SEW blocks. Fig. 4 shows the firing rates of $A ^ { l }$ in SEW ResNet18/34/50/101/152 on ImageNet. There are 7 blocks in SEW ResNet-18, 15 blocks in SEW ResNet-34 and SEW ResNet-50, 33 blocks in SEW ResNet-101, and 50 blocks in SEW ResNet-152. The downsample SEW blocks are marked by the triangle down symbol $\bigtriangledown$ . As we choose $A D D$ as elementwise functions $g$ , a lower firing rate means that the SEW block gets closer to implementing identity mapping, except for downsample blocks. Note that the shortcuts of downsample blocks are not identity mapping, which is illustrated in Fig. 2(b). Fig. 4 shows that all spiking neurons in SEW blocks have low firing rates, and the spiking neurons in the last two blocks even have firing rates of almost zero. As the time-steps $T$ is 4 and firing rates are no larger than 0.25, all neurons in SEW ResNet-18/34/50 fire on average no more than one spike during the whole simulation. Besides, all firing rates in SEW ResNet-101/152 are not larger than 0.5, indicating that all neurons fire on average not more than two spikes. In general, the firing rates of $A ^ { l }$ in SEW blocks are at a low level, verifying that most SEW blocks act as identity mapping.
145
+
146
+ Gradients Check on ResNet-152 Structure. Eq. (8) and Eq. (11) analyze the gradients of multiple blocks with identity mapping. To verify that SEW ResNet can overcome vanishing/exploding gradient, we check the gradients of Spiking ResNet-152 and SEW ResNet-152, which are the deepest standard ResNet structure. We consider the same initialization parameters and with/without zero initialization.
147
+
148
+ As the gradients of SNNs are significantly influenced by firing rates (see Sec.A.4), we analyze the firing rate firstly. Fig. 5(a) shows the initial firing rate of $l$ -th block’s output $O ^ { l }$ . The indexes of downsample blocks are marked by vertical dotted lines. The blocks between two adjacent dotted lines represent the identity mapping areas, and have inputs and outputs with the same shape. When using zero initialization, Spiking ResNet, SEW AND ResNet, SEW IAND ResNet, and SEW ADD ResNet have the same firing rates (green curve), which is the zero init curve. Without zero initialization, the silence problem happens in the SEW AND network (red curve), and is relieved by the SEW IAND network (purple curve). Fig. 5(b) shows the firing rate of $A ^ { l }$ , which represents the output of last SN in $l$ -th block. It can be found that although the firing rate of $O ^ { l }$ in SEW ADD ResNet increases linearly in the identity mapping areas, the last SN in each block still maintains a stable firing rate. Note that when $g$ is $A D D$ , the output of the SEW block is not binary, and the firing rate is actually the mean value. The SNs of SEW IAND ResNet maintain an adequate firing rate and decay slightly with depth (purple curve), while SNs in deep layers of SEW AND ResNet keep silent (orange curve). The silence problem can be explained as follows. When using $A N D$ , $O ^ { l } [ \dot { t } ] = \mathrm { S N } ( \mathcal { F } ^ { l } ( \tilde { O } ^ { l - 1 } [ t ] ) ) \wedge O ^ { l - 1 } [ t ] \leq \dot { O } ^ { l - 1 } [ t ] .$ . Since it is hard to keep $\mathrm { S N } ( \mathcal { F } ^ { l } ( O ^ { l - 1 } [ t ] ) ) \equiv 1$ at each time-step $t$ , the silence problem may frequently happen in SEW ResNet with AND as $g$ . Using IAND as a substitute of $A N D$ can relieve this problem because it is easy to keep $\mathrm { S N } ( \mathcal { F } ^ { l } ( O ^ { l - 1 } [ t ] ) ) \equiv \breve { 0 }$ at each time-step $t$ .
149
+
150
+ ![](images/31ff982586d6ff21bc23fef94a8beedfc34af8d2284a28b9925488a098afa5a2.jpg)
151
+ Figure 5: The initial firing rates of output $O ^ { l }$ and $A ^ { l }$ in $l$ -th block on 152-layer network.
152
+
153
+ The surrogate gradient function we used in all experiments is $\begin{array} { r } { \sigma ( x ) = \frac { 1 } { \pi } \arctan ( \frac { \pi } { 2 } \alpha x ) + \frac { 1 } { 2 } } \end{array}$ , thus $\begin{array} { r } { \sigma ^ { \prime } ( x ) = \frac { \alpha } { 2 ( 1 + ( \frac { \pi } { 2 } \alpha x ) ^ { 2 } ) } . } \end{array}$ . When $V _ { t h } = 1 , \alpha = 2$ , the gradient amplitude $\Vert \frac { \partial L } { \partial S ^ { l } } \Vert$ of each block is shown in Fig. 6. Note that $\alpha = 2$ , $\sigma ^ { \prime } ( x ) \leq \sigma ^ { \prime } ( 0 ) = \sigma ^ { \prime } ( 1 - V _ { t h } ) = 1$ and $\sigma ^ { \prime } ( 0 - V _ { t h } ) = 0 . 0 9 2 < 1$ . It can be found that the gradients in Spiking ResNet-152 decay from deeper layers to shallower layers in the identity mapping areas without zero initialization, which is caused by $\begin{array} { r } { \dot { \sigma } ^ { \prime } ( x ) \leq 1 } \end{array}$ . It is worth noting that the decay also happens in Spiking ResNet-152 with zero initialization. The small convex $\Lambda$ near the dotted lines is caused by the vanishing gradients of those $S _ { j } ^ { l } [ t ] = 0$ . After these gradients decays to 0 completely, $\Vert \frac { \partial L } { \partial S ^ { l } } \Vert$ will be a constant because the rest gradients are calculated by $S _ { j } ^ { l } [ t ] = 1$ and $\sigma ^ { \prime } ( 1 - V _ { t h } ) = 1$ , which can also explain why the gradient-index curve is horizontal at some areas. When referring to SEW ResNet-152 with zero initialization, it can be found that all gradient-index curves are similar no matter what $g$ we choose. This is caused by that in the identity mapping areas, $S ^ { l }$ is constant for all index $l$ , and the gradient also becomes a constant as it will not flow through SNs. Without zero initialization, the vanishing gradient happens in the SEW AND ResNet-152, which is caused by the silence problem. The gradients of SEW ADD, IAND network increase slowly when propagating from deeper layers to shallower layers, due to the adequate firing rates shown in Fig. 5.
154
+
155
+ When $V _ { t h } = 0 . 5 , \alpha = 2$ , $\sigma ^ { \prime } ( 0 - V _ { t h } ) = \sigma ^ { \prime } ( 1 - V _ { t h } ) = 0 . 2 8 8 < 1$ , indicating that transmitting spikes to SNs is prone to causing vanishing gradient, as shown in Fig. 7. With zero initialization, the decay in Spiking ResNet-152 is more serious because gradient from $\mathcal { F } ^ { l }$ can not contribute. The SEW ResNet-152 will not be affected no matter what $g$ we choose. When $V _ { t h } = 1 , \alpha = 3$ , $\sigma ^ { \prime } ( 1 - V _ { t h } ) = 1 . 5 > 1$ , indicating that transmitting spikes to SNs is prone to causing exploding gradient. Fig. 8 shows the gradient in this situation. Same with the reason in Fig. 6, the change of surrogate function will increase gradients of all networks without zero initialization, but not affect SEW ResNet-152 with zero initialization. The Spiking ResNet-152 meets exploding gradient, while this problem in SEW ADD, IAND ResNet-152 is not serious.
156
+
157
+ # 4.2 DVS Gesture Classification
158
+
159
+ The origin ResNet, which is designed for classifying the complex ImageNet dataset, is too large for the DVS Gesture dataset. Hence, we design a tiny network named 7B-Net, whose structure is c32k3s1-BN-PLIF-{SEW Block-MPk2s2}\*7-FC11. Here c32k3s1 means the convolutional layer with channels 32, kernel size 3, stride 1. MPk2s2 is the max pooling with kernel size 2, stride 2. The symbol $\{ \} ^ { * } $ denotes seven repeated structure, and PLIF denotes the Parametric Leaky-Integrate-andFire Spiking Neuron with a learnable membrane time constant, which is proposed in [8] and can be described by Eq. (5). See Sec.A.1 for AER data pre-processing details.
160
+
161
+ ![](images/8073af5219e66c4db06c8fadc705ab27b014379a3c1ffa798fba5f23925374a6.jpg)
162
+ Figure 7: Gradient amplitude $\Big | \Big | \frac { \partial L } { \partial S ^ { l } } \Big | \Big |$ of $l$ -th block when $V _ { t h } = 0 . 5 , \alpha = 2$
163
+
164
+ Spiking ResNet vs. SEW ResNet. We first compare the performance of SEW ResNet with $A D D$ element-wise function (SEW ADD ResNet) and Spiking ResNet by replacing SEW blocks with basic blocks. As shown in Fig. 9 and Tab. 4, although the training loss of Spiking ResNet (blue curve) is lower than SEW ADD ResNet (orange curve), the test accuracy is lower than SEW ADD ResNet $( 9 0 . 9 7 \%$ v.s. $9 7 . 9 2 \%$ ), which implies that Spiking ResNet is easier to overfit than SEW ADD ResNet.
165
+
166
+ Evaluation of different element-wise functions and plain block. As the training cost of SNNs on the DVS Gesture dataset is much lower than on ImageNet, we carry out more ablation experiments on the DVS Gesture dataset. We replace SEW blocks with the plain blocks (no shortcut connection) and test the performance. We also evaluate all kinds of element-wise functions $g$ in Tab. 1. Fig. 9 shows the training loss and training/test accuracy on DVS Gesture. The sharp fluctuation during early epochs is caused by the large learning rate (see Sec.A.1). We can find that the training loss is SEW IAND $<$ Spiking ResNe $<$ <SEW ADD $<$ Plain Net<SEW AND. Due to the overfitting problem, a lower loss does not guarantee a higher test accuracy.
167
+
168
+ Tab. 4 shows the test accuracy of all networks. The SEW ADD ResNet gets the highest accuracy than others.
169
+
170
+ Comparisons with State-of-the-art Methods. Tab. 5 compares our network with SOTA methods. It can be found that our SEW ResNet outperforms the SOTA works in accuracy, parameter numbers, and simulating time-steps.
171
+
172
+ Table 4: Test accuracy on DVS Gesture. The networks’ order is ranked by accuracy.
173
+
174
+ <table><tr><td>Network</td><td>Element-Wise Function g</td><td>Accuracy(%)</td></tr><tr><td>SEWResNet</td><td>ADD</td><td>97.92</td></tr><tr><td>SEWResNet</td><td>IAND</td><td>95.49</td></tr><tr><td>Plain Net</td><td>1</td><td>91.67</td></tr><tr><td>Spiking ResNet</td><td>1</td><td>90.97</td></tr><tr><td>SEWResNet</td><td>AND</td><td>70.49</td></tr></table>
175
+
176
+ <table><tr><td>Network</td><td>Accuracy(%)</td><td>Parameters</td><td>T</td></tr><tr><td>c32k3s1-BN-PLIF-{SEW Block (c32) -MPk2s2}*7-FC11 (7B-Net)</td><td>97.92</td><td>0.13M</td><td>16</td></tr><tr><td>{c128k3s1-BN-PLIF-MPk2s2}*5-DP-</td><td>97.57</td><td>1.70M</td><td>20</td></tr><tr><td>FC512-PLIF-DP-FC110-PLIF-APk10s10[8]</td><td></td><td>11.18M</td><td></td></tr><tr><td>SpikingResNet-17with td-BN[64] MPk4-c64k3-LIF-c128k3-LIF-APk2-c128k3-LIF-APk2-FC256-LIF-FC11[16]</td><td>96.87 93.40</td><td>23.23M</td><td>40 60</td></tr></table>
177
+
178
+ Table 5: Comparison with the state-of-the-art (SOTA) methods on DVS Gesture dataset.
179
+
180
+ # 4.3 CIFAR10-DVS Classification
181
+
182
+ We also report SEW ResNet on the CIFAR10-DVS dataset, which is obtained by recording the moving images of the CIFAR-10 dataset on a LCD monitor by a DVS camera. As CIFAR10-DVS is more complicated than DVS Gesture, we use the network structure named Wide-7B-Net, which is similar to 7B-Net but with more channels. The structure of Wide-7B-Net is c64k3s1-BN-PLIF-{SEW Block (c64)-MPk2s2}\*4-c128k3s1-BN-PLIF-{SEW Block (c128)-MPk2s2}\*3-FC10.
183
+
184
+ ![](images/adf33effbd45f2f127239f214ada7e8b50cddf2be808e866b1d288cd44499759.jpg)
185
+ Figure 8: Gradient amplitude $\Big | \Big | \frac { \partial L } { \partial S ^ { l } } \Big | \Big |$ of $l$ -th block when $V _ { t h } = 1 , \alpha = 3$
186
+
187
+ ![](images/2f787e59c9a353014adc1b3c571413dd5228c89ea36b3ec6a0cecc30ee07713a.jpg)
188
+ Figure 9: Comparison of the training loss, training accuracy and test accuracy on DVS Gesture dataset.
189
+
190
+ <table><tr><td>Network</td><td>Accuracy(%)</td><td>Parameters</td><td>T</td></tr><tr><td>c64k3s1-BN-PLIF-{SEWBlock (c64)-MPk2s2}*4-c128k3s1- BN-PLIF-{SEWBlock (c128)-MPk2s2}*3-FCi0 (Wide-7B-Net)</td><td>64.8, 70.2, 74.4</td><td>1.19M</td><td>4,8,16</td></tr><tr><td>{c128k3s1-BN-PLIF-MPk2s2}*4-DP-FC512-PLIF-DP- FC100-PLIF-APk10s10[8]</td><td>74.8</td><td>17.4M</td><td>20</td></tr><tr><td>Spiking ResNet-19 with td-BN [64]</td><td>67.8</td><td>11.18M</td><td>10</td></tr></table>
191
+
192
+ Table 6: Comparison with the state-of-the-art (SOTA) methods on CIFAR10-DVS dataset.
193
+
194
+ In Tab.6, we compare SEW ResNet with the previous Spiking ResNet. One can find that our method achieves better performance $7 0 . 2 \%$ v.s. $6 7 . 8 \%$ and fewer time-steps (8 v.s. 10) than the Spiking ResNet [64]. We also compare our method with the state-of-the-art (SOTA) supervised learning methods on CIFAR10-DVS. The accuracy of our Wide-7B-Net is slightly lower than the current SOTA method [8] $7 4 . 4 \%$ v.s. $7 4 . 8 \%$ ), which uses 1.25 times as many simulation time-steps $T$ (20 v.s. 16) and 14.6 times as many the number of parameters (17.4M v.s. 1.19M). Moreover, when reducing $T$ shapely to $T = 4$ , our Wide-7B-Net can still get the accuracy of $6 4 . 8 \%$ .
195
+
196
+ # 5 Conclusion
197
+
198
+ In this paper, we analyze the previous Spiking ResNet whose residual block mimics the standard block of ResNet, and find that it can hardly implement identity mapping and suffers from the problems of vanishing/exploding gradient. To solve these problems, we propose the SEW residual block and prove that it can implement the residual learning. The experiment results on ImageNet, DVS Gesture, and CIFAR10-DVS datasets show that our SEW residual block solves the degradation problem, and SEW ResNet can achieve higher accuracy by simply increasing the network’s depth. Our work may shed light on the learning of “very deep” SNNs.
199
+
200
+ # 6 Acknowledgment
201
+
202
+ This work is supported by grants from the National Natural Science Foundation of China under contracts No.62027804, No.61825101, and No.62088102.
203
+
204
+ References
205
+ [1] Arnon Amir, Brian Taba, David Berg, Timothy Melano, Jeffrey McKinstry, Carmelo Di Nolfo, Tapan Nayak, Alexander Andreopoulos, Guillaume Garreau, Marcela Mendoza, Jeff Kusnitz, Michael Debole, Steve Esser, Tobi Delbruck, Myron Flickner, and Dharmendra Modha. A low power, fully event-based gesture recognition system. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7243–7252, 2017.
206
+ [2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2015.
207
+ [3] Yoshua Bengio, Yann LeCun, et al. Scaling learning algorithms towards ai. Large-scale Kernel Machines, 34(5):1–41, 2007.
208
+ [4] Yongqiang Cao, Yang Chen, and Deepak Khosla. Spiking deep convolutional neural networks for energy-efficient object recognition. International Journal of Computer Vision, 113(1):54–66, 2015.
209
+ [5] Iulia M Comsa, Krzysztof Potempa, Luca Versari, Thomas Fischbacher, Andrea Gesmundo, and Jyrki Alakuijala. Temporal coding in spiking neural networks with alpha synaptic function. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8529–8533. IEEE, 2020.
210
+ [6] Shikuang Deng and Shi Gu. Optimal conversion of conventional artificial neural networks to spiking neural networks. In International Conference on Learning Representations (ICLR), 2021.
211
+ [7] Wei Fang, Yanqi Chen, Jianhao Ding, Ding Chen, Zhaofei Yu, Huihui Zhou, Yonghong Tian, and other contributors. Spikingjelly. https://github.com/fangwei123456/ spikingjelly.
212
+ [8] Wei Fang, Zhaofei Yu, Yanqi Chen, Timothee Masquelier, Tiejun Huang, and Yonghong Tian. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2661–2671, 2021.
213
+ [9] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 580–587, 2014.
214
+ [10] Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
215
+ [11] Bing Han and Kaushik Roy. Deep spiking neural network: Energy efficiency through time based coding. In European Conference on Computer Vision (ECCV), pages 388–404, 2020.
216
+ [12] Bing Han, Gopalakrishnan Srinivasan, and Kaushik Roy. Rmp-snn: Residual membrane potential neuron for enabling deeper high-accuracy and low-latency spiking neural network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13558–13567, 2020.
217
+ [13] Kaiming He and Jian Sun. Convolutional neural networks at constrained time cost. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5353–5360, 2015.
218
+ [14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.
219
+ [15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision (ECCV), pages 630–645. Springer, 2016.
220
+
221
+ [16] Weihua He, YuJie Wu, Lei Deng, Guoqi Li, Haoyu Wang, Yang Tian, Wei Ding, Wenhui Wang, and Yuan Xie. Comparing snns and rnns on neuromorphic vision datasets: Similarities and differences. Neural Networks, 132:108–120, 2020.
222
+
223
+ [17] Yangfan Hu, Huajin Tang, Yueming Wang, and Gang Pan. Spiking deep residual network. arXiv preprint arXiv:1805.01352, 2018.
224
+
225
+ [18] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4700–4708, 2017.
226
+
227
+ [19] Dongsung Huh and Terrence J Sejnowski. Gradient descent for spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 1440–1450, 2018.
228
+
229
+ [20] Eric Hunsberger and Chris Eliasmith. Spiking deep networks with lif neurons. arXiv preprint arXiv:1510.08829, 2015.
230
+
231
+ [21] Sungmin Hwang, Jeesoo Chang, Min-Hye Oh, Kyung Kyu Min, Taejin Jang, Kyungchul Park, Junsu Yu, Jong-Ho Lee, and Byung-Gook Park. Low-latency spiking neural networks using pre-charged membrane potential and delayed evaluation. Frontiers in Neuroscience, 15:135, 2021.
232
+
233
+ [22] Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and $< 0 . 5 ~ \mathrm { m b }$ model size. arXiv preprint arXiv:1602.07360, 2016.
234
+
235
+ [23] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pages 448–456, 2015.
236
+
237
+ [24] Saeed Reza Kheradpisheh and Timothée Masquelier. Temporal backpropagation for spiking neural networks with one spike per neuron. International Journal of Neural Systems, 30(06):2050027, 2020.
238
+
239
+ [25] Jaehyun Kim, Heesu Kim, Subin Huh, Jinho Lee, and Kiyoung Choi. Deep neural networks with weighted spikes. Neurocomputing, 311:373–386, 2018.
240
+
241
+ [26] Jinseok Kim, Kyungsu Kim, and Jae-Joon Kim. Unifying activation- and timing-based learning rules for spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 19534–19544, 2020.
242
+
243
+ [27] Alex Krizhevsky. One weird trick for parallelizing convolutional neural networks. arXiv preprint arXiv:1404.5997, 2014.
244
+
245
+ [28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 1097–1105, 2012.
246
+
247
+ [29] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
248
+
249
+ [30] Chankyu Lee, Syed Shakib Sarwar, Priyadarshini Panda, Gopalakrishnan Srinivasan, and Kaushik Roy. Enabling spike-based backpropagation for training deep neural network architectures. Frontiers in Neuroscience, 14, 2020.
250
+
251
+ [31] Jun Haeng Lee, Tobi Delbruck, and Michael Pfeiffer. Training deep spiking neural networks using backpropagation. Frontiers in Neuroscience, 10:508, 2016.
252
+
253
+ [32] Hongmin Li, Hanchao Liu, Xiangyang Ji, Guoqi Li, and Luping Shi. Cifar10-dvs: An eventstream dataset for object classification. Frontiers in Neuroscience, 11:309, 2017.
254
+
255
+ [33] Yuhang Li, Shikuang Deng, Xin Dong, Ruihao Gong, and Shi Gu. A free lunch from ann: Towards efficient, accurate spiking neural networks calibration. In International Conference on Machine Learning (ICML), volume 139, pages 6316–6325, 2021.
256
+
257
+ [34] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European Conference on Computer Vision (ECCV), pages 21–37. Springer, 2016.
258
+
259
+ [35] Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR), 2017.
260
+
261
+ [36] Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. In International Conference on Learning Representations (ICLR), 2018.
262
+
263
+ [37] 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–533, 2015.
264
+
265
+ [38] Guido F Montufar, Razvan Pascanu, Kyunghyun Cho, and Yoshua Bengio. On the number of linear regions of deep neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 2924–2932, 2014.
266
+
267
+ [39] Hesham Mostafa. Supervised learning based on temporal coding in spiking neural networks. IEEE Transactions on Neural Networks and Learning Systems, 29(7):3227–3235, 2017.
268
+
269
+ [40] Emre O Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks. IEEE Signal Processing Magazine, 36(6):51–63, 2019.
270
+
271
+ [41] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), pages 8026–8037, 2019.
272
+
273
+ [42] Nitin Rathi and Kaushik Roy. Diet-snn: Direct input encoding with leakage and threshold optimization in deep spiking neural networks. arXiv preprint arXiv:2008.03658, 2020.
274
+
275
+ [43] Nitin Rathi, Gopalakrishnan Srinivasan, Priyadarshini Panda, and Kaushik Roy. Enabling deep spiking neural networks with hybrid conversion and spike timing dependent backpropagation. In International Conference on Learning Representations (ICLR), 2020.
276
+
277
+ [44] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 779–788, 2016.
278
+
279
+ [45] Kaushik Roy, Akhilesh Jaiswal, and Priyadarshini Panda. Towards spike-based machine intelligence with neuromorphic computing. Nature, 575(7784):607–617, 2019.
280
+
281
+ [46] Bodo Rueckauer, Iulia-Alexandra Lungu, Yuhuang Hu, Michael Pfeiffer, and Shih-Chii Liu. Conversion of continuous-valued deep networks to efficient event-driven networks for image classification. Frontiers in Neuroscience, 11:682, 2017.
282
+
283
+ [47] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
284
+
285
+ [48] Ali Samadzadeh, Fatemeh Sadat Tabatabaei Far, Ali Javadi, Ahmad Nickabadi, and Morteza Haghir Chehreghani. Convolutional spiking neural networks for spatio-temporal feature extraction. arXiv preprint arXiv:2003.12346, 2020.
286
+
287
+ [49] Abhronil Sengupta, Yuting Ye, Robert Wang, Chiao Liu, and Kaushik Roy. Going deeper in spiking neural networks: Vgg and residual architectures. Frontiers in Neuroscience, 13:95, 2019.
288
+
289
+ [50] Sumit Bam Shrestha and Garrick Orchard. Slayer: Spike layer error reassignment in time. In Advances in Neural Information Processing Systems (NeurIPS), pages 1419–1428, 2018.
290
+
291
+ [51] David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
292
+
293
+ [52] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015.
294
+
295
+ [53] Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. Highway networks. arXiv preprint arXiv:1505.00387, 2015.
296
+
297
+ [54] Christoph Stöckl and Wolfgang Maass. Optimized spiking neurons can classify images with high accuracy through temporal coding with two spikes. Nature Machine Intelligence, 3(3):230–238, 2021.
298
+
299
+ [55] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–9, 2015.
300
+
301
+ [56] Amirhossein Tavanaei, Masoud Ghodrati, Saeed Reza Kheradpisheh, Timothée Masquelier, and Anthony Maida. Deep learning in spiking neural networks. Neural Networks, 111:47–63, 2019.
302
+
303
+ [57] 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), pages 5998–6008, 2017.
304
+
305
+ [58] Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in Neuroscience, 12:331, 2018.
306
+
307
+ [59] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5987–5995, 2017.
308
+
309
+ [60] Fu Xing, Ye Yuan, Hong Huo, and Tao Fang. Homeostasis-based cnn-to-snn conversion of inception and residual architectures. In International Conference on Neural Information Processing, pages 173–184. Springer, 2019.
310
+
311
+ [61] Bojian Yin, Federico Corradi, and Sander M Bohté. Effective and efficient computation with multiple-timescale spiking recurrent neural networks. In International Conference on Neuromorphic Systems, pages 1–8, 2020.
312
+
313
+ [62] Friedemann Zenke and Tim P Vogels. The remarkable robustness of surrogate gradient learning for instilling complex function in spiking neural networks. Neural Computation, 33(4):899–925, 2021.
314
+
315
+ [63] Wenrui Zhang and Peng Li. Temporal spike sequence learning via backpropagation for deep spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 12022–12033, 2020.
316
+
317
+ [64] Hanle Zheng, Yujie Wu, Lei Deng, Yifan Hu, and Guoqi Li. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 11062–11070, 2021.
318
+
319
+ [65] Shibo Zhou, Xiaohua Li, Ying Chen, Sanjeev T. Chandrasekaran, and Arindam Sanyal. Temporal-coded deep spiking neural network with easy training and robust performance. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 11143–11151, 2021.
320
+
321
+ [66] Romain Zimmer, Thomas Pellegrini, Srisht Fateh Singh, and Timothée Masquelier. Technical report: supervised training of convolutional spiking neural networks with pytorch. arXiv preprint arXiv:1911.10124, 2019.
parse/train/6OoCDvFV4m/6OoCDvFV4m_content_list.json ADDED
@@ -0,0 +1,1634 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Deep Residual Learning in Spiking Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 179,
8
+ 122,
9
+ 816,
10
+ 148
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Wei Fang1,2, Zhaofei $\\mathrm { { Y u ^ { 1 , 2 * } } }$ , Yanqi Chen1,2, ",
17
+ "bbox": [
18
+ 354,
19
+ 196,
20
+ 645,
21
+ 214
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Tiejun Huang1,2, Timothée Masquelier3, Yonghong Tian1,2∗ ",
28
+ "bbox": [
29
+ 303,
30
+ 224,
31
+ 699,
32
+ 239
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "1Department of Computer Science and Technology, Peking University 2Peng Cheng Laboratory, Shenzhen 518055, China 3Centre de Recherche Cerveau et Cognition, UMR5549 CNRS - Univ. Toulouse 3 , Toulouse, France ",
39
+ "bbox": [
40
+ 178,
41
+ 252,
42
+ 823,
43
+ 295
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 329,
54
+ 535,
55
+ 344
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Deep Spiking Neural Networks (SNNs) present optimization difficulties for gradient-based approaches due to discrete binary activation and complex spatialtemporal dynamics. Considering the huge success of ResNet in deep learning, it would be natural to train deep SNNs with residual learning. Previous Spiking ResNet mimics the standard residual block in ANNs and simply replaces ReLU activation layers with spiking neurons, which suffers the degradation problem and can hardly implement residual learning. In this paper, we propose the spikeelement-wise (SEW) ResNet to realize residual learning in deep SNNs. We prove that the SEW ResNet can easily implement identity mapping and overcome the vanishing/exploding gradient problems of Spiking ResNet. We evaluate our SEW ResNet on ImageNet, DVS Gesture, and CIFAR10-DVS datasets, and show that SEW ResNet outperforms the state-of-the-art directly trained SNNs in both accuracy and time-steps. Moreover, SEW ResNet can achieve higher performance by simply adding more layers, providing a simple method to train deep SNNs. To our best knowledge, this is the first time that directly training deep SNNs with more than 100 layers becomes possible. Our codes are available at https: //github.com/fangwei123456/Spike-Element-Wise-ResNet. ",
62
+ "bbox": [
63
+ 233,
64
+ 359,
65
+ 766,
66
+ 593
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 618,
77
+ 310,
78
+ 636
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Artificial Neural Networks (ANNs) have achieved great success in many tasks, including image classification [28, 52, 55], object detection [9, 34, 44], machine translation [2], and gaming [37, 51]. One of the critical factors for ANNs’ success is deep learning [29], which uses multi-layers to learn representations of data with multiple levels of abstraction. It has been proved that deeper networks have advantages over shallower networks in computation cost and generalization ability [3]. The function represented by a deep network can require an exponential number of hidden units by a shallow network with one hidden layer [38]. In addition, the depth of the network is closely related to the network’s performance in practical tasks [52, 55, 27, 52]. Nevertheless, recent evidence [13, 53, 14] reveals that with the network depth increasing, the accuracy gets saturated and then degrades rapidly. To solve this degradation problem, residual learning is proposed [14, 15] and the residual structure is widely exploited in “very deep” networks that achieve the leading performance [22, 59, 18, 57]. ",
85
+ "bbox": [
86
+ 174,
87
+ 650,
88
+ 825,
89
+ 803
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Spiking Neural Networks (SNNs) are regarded as a potential competitor of ANNs for their high biological plausibility, event-driven property, and low power consumption [45]. Recently, deep learning methods are introduced into SNNs, and deep SNNs have achieved close performance as ANNs in some simple classification datasets [56], but still worse than ANNs in complex tasks, e.g., classifying the ImageNet dataset [47]. To obtain higher performance SNNs, it would be natural to explore deeper network structures like ResNet. Spiking ResNet [25, 60, 21, 17, 49, 12, 30, 64, 48, 42, 43], as the spiking version of ResNet, is proposed by mimicking the residual block in ANNs and replacing ReLU activation layers with spiking neurons. Spiking ResNet converted from ANN achieves state-of-the-art accuracy on nearly all datasets, while the directly trained Spiking ResNet has not been validated to solve the degradation problem. ",
96
+ "bbox": [
97
+ 174,
98
+ 809,
99
+ 825,
100
+ 878
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 92,
110
+ 825,
111
+ 160
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this paper, we show that Spiking ResNet is inapplicable to all neuron models to achieve identity mapping. Even if the identity mapping condition is met, Spiking ResNet suffers from the problems of vanishing/exploding gradient. Thus, we propose the Spike-Element-Wise (SEW) ResNet to realize residual learning in SNNs. We prove that the SEW ResNet can easily implement identity mapping and overcome the vanishing/exploding gradient problems at the same time. We evaluate Spiking ResNet and SEW ResNet on both the static ImageNet dataset and the neuromorphic DVS Gesture dataset [1], CIFAR10-DVS dataset [32]. The experiment results are consistent with our analysis, indicating that the deeper Spiking ResNet suffers from the degradation problem — the deeper network has higher training loss than the shallower network, while SEW ResNet can achieve higher performance by simply increasing the network’s depth. Moreover, we show that SEW ResNet outperforms the state-of-the-art directly trained SNNs in both accuracy and time-steps. To the best of our knowledge, this is the first time to explore the directly-trained deep SNNs with more than 100 layers. ",
118
+ "bbox": [
119
+ 174,
120
+ 166,
121
+ 825,
122
+ 333
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 Related Work ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 354,
133
+ 321,
134
+ 371
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "2.1 Learning Methods of Spiking Neural Networks ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 174,
144
+ 386,
145
+ 539,
146
+ 401
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "ANN to SNN conversion (ANN2SNN) [20, 4, 46, 49, 12, 11, 6, 54, 33] and backpropagation with surrogate gradient [40] are the two main methods to get deep SNNs. The ANN2SNN method firstly trains an ANN with ReLU activation, then converts the ANN to an SNN by replacing ReLU with spiking neurons and adding scaling operations like weight normalization and threshold balancing. Some recent conversion methods have achieved near loss-less accuracy with VGG-16 and ResNet [12, 11, 6, 33]. However, the converted SNN needs a longer time to rival the original ANN in precision as the conversion is based on rate-coding [46], which increases the SNN’s latency and restricts the practical application. The backpropagation methods can be classified into two categories [26]. The method in the first category computes the gradient by unfolding the network over the simulation timesteps [31, 19, 58, 50, 30, 40], which is similar to the idea of backpropagation through time (BPTT). As the gradient with respect to the threshold-triggered firing is non-differentiable, the surrogate gradient is often used. The SNN trained by the surrogate method is not limited to rate-coding, and can also be applied on temporal tasks, e.g., classifying neuromorphic datasets [58, 8, 16]. The second method computes the gradients of the timings of existing spikes with respect to the membrane potential at the spike timing [5, 39, 24, 65, 63]. ",
153
+ "bbox": [
154
+ 174,
155
+ 412,
156
+ 825,
157
+ 619
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "2.2 Spiking Residual Structure ",
164
+ "text_level": 1,
165
+ "bbox": [
166
+ 176,
167
+ 638,
168
+ 401,
169
+ 654
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "Previous ANN2SNN methods noticed the distinction between plain feedforward ANNs and residual ANNs, and made specific normalization for conversion. Hu et al. [17] were the first to apply the residual structure in ANN2SNN with scaled shortcuts in SNN to match the activations of the original ANN. Sengupta et al. [49] proposed Spike-Norm to balance SNN’s threshold and verified their method by converting VGG and ResNet to SNNs. Existing backpropagation-based methods use nearly the same structure from ResNet. Lee et al. [30] evaluated their custom surrogate methods on shallow ResNets whose depths are no more than ResNet-11. Zheng et al. [64] proposed the threshold-dependent batch normalization (td-BN) to replace naive batch normalization (BN) [23] and successfully trained Spiking ResNet-34 and Spiking ResNet-50 directly with surrogate gradient by adding td-BN in shortcuts. ",
176
+ "bbox": [
177
+ 174,
178
+ 664,
179
+ 825,
180
+ 803
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "3 Methods ",
187
+ "text_level": 1,
188
+ "bbox": [
189
+ 174,
190
+ 824,
191
+ 277,
192
+ 840
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "3.1 Spiking Neuron Model ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 176,
202
+ 856,
203
+ 370,
204
+ 872
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The spiking neuron is the fundamental computing unit of SNNs. Similar to Fang et al. [8], we use a unified model to describe the dynamics of all kinds of spiking neurons, which includes the following ",
211
+ "bbox": [
212
+ 174,
213
+ 883,
214
+ 821,
215
+ 911
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "image",
221
+ "img_path": "images/b5ec2614e6cf2120ea600d72dfbd318f14729a9a283e05c316dc83083eca6ae6.jpg",
222
+ "image_caption": [
223
+ "Figure 1: Residual blocks in ResNet, Spiking ResNet and SEW ResNet. "
224
+ ],
225
+ "image_footnote": [],
226
+ "bbox": [
227
+ 267,
228
+ 90,
229
+ 725,
230
+ 299
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "discrete-time equations: ",
237
+ "bbox": [
238
+ 174,
239
+ 337,
240
+ 331,
241
+ 351
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/565dedc93f1803e6b581c90e560a7e39b651e59a146d1676bff639584eacd68e.jpg",
248
+ "text": "$$\n\\begin{array} { l } { { H [ t ] = f ( V [ t - 1 ] , X [ t ] ) , } } \\\\ { { S [ t ] = \\Theta ( H [ t ] - V _ { t h } ) , } } \\\\ { { V [ t ] = H [ t ] \\ ( 1 - S [ t ] ) + V _ { r e s e t } \\ S [ t ] , } } \\end{array}\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 370,
252
+ 358,
253
+ 625,
254
+ 414
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "where $X [ t ]$ is the input current at time-step $t , H [ t ]$ and $V [ t ]$ denote the membrane potential after neuronal dynamics and after the trigger of a spike at time-step $t$ , respectively. $V _ { t h }$ is the firing threshold, $\\Theta ( x )$ is the Heaviside step function and is defined by $\\Theta ( x ) = 1$ for $x \\geq 0$ and $\\Theta ( x ) = { \\bar { 0 } }$ for $x < 0 , S [ t ]$ is the output spike at time-step $t$ , which equals 1 if there is a spike and 0 otherwise. $V _ { r e s e t }$ denotes the reset potential. The function $f ( \\cdot )$ in Eq. (1) describes the neuronal dynamics and takes different forms for different spiking neuron models. For example, the function $f ( \\cdot )$ for the Integrate-and-Fire (IF) model and Leaky Integrate-and-Fire (LIF) model can be described by Eq. (4) and Eq. (5), respectively. ",
261
+ "bbox": [
262
+ 173,
263
+ 419,
264
+ 826,
265
+ 531
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "equation",
271
+ "img_path": "images/6b68cef925c0ee0d39ee2a6ec70c7ecb5c3bbab8ec9d5b8abc23fb228a5d8e9d.jpg",
272
+ "text": "$$\n\\begin{array} { l } { \\displaystyle H [ t ] = V [ t - 1 ] + X [ t ] , } \\\\ { \\displaystyle H [ t ] = V [ t - 1 ] + \\frac { 1 } { \\tau } ( X [ t ] - ( V [ t - 1 ] - V _ { r e s e t } ) ) , } \\end{array}\n$$",
273
+ "text_format": "latex",
274
+ "bbox": [
275
+ 326,
276
+ 537,
277
+ 668,
278
+ 589
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "where $\\tau$ represents the membrane time constant. Eq. (2) and Eq. (3) describe the spike generation and resetting processes, which are the same for all kinds of spiking neuron models. In this paper, the surrogate gradient method is used to define $\\Theta ^ { \\prime } ( x ) \\triangleq \\sigma ^ { \\prime } ( x )$ during error back-propagation, with $\\sigma ( x )$ denoting the surrogate function. ",
285
+ "bbox": [
286
+ 174,
287
+ 594,
288
+ 825,
289
+ 654
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "3.2 Drawbacks of Spiking ResNet ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 176,
299
+ 670,
300
+ 421,
301
+ 685
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "The residual block is the key component of ResNet. Fig. 1(a) shows the basic block in ResNet [14], where $X ^ { l } , Y ^ { l }$ are the input and output of the $l$ -th block in ResNet, Conv is the convolutional layer, BN denotes batch normalization, and ReLU denotes the rectified linear unit activation layer. The basic block of Spiking ResNet used in [64, 17, 30] simply mimics the block in ANNs by replacing ReLU activation layers with spiking neurons (SN), which is illustrated in Fig. 1(b). Here ${ \\dot { S } } ^ { l } [ t { \\bar { ] } } , O ^ { l } [ t ]$ are the input and output of the $l$ -th block in Spiking ResNet at time-step $t$ . Based on the above definition, we will analyze the drawbacks of Spiking ResNet below. ",
308
+ "bbox": [
309
+ 173,
310
+ 696,
311
+ 825,
312
+ 795
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Spiking ResNet is inapplicable to all neuron models to achieve identity mapping. One of the critical concepts in ResNet is identity mapping. He et al. [14] noted that if the added layers implement the identity mapping, a deeper model should have training error no greater than its shallower counterpart. However, it is unable to train the added layers to implement identity mapping in a feasible time, resulting in deeper models performing worse than shallower models (the degradation problem). To solve this problem, the residual learning is proposed by adding a shortcut connection (shown in Fig. 1(a)). If we use $\\mathcal { F } ^ { l }$ to denote the residual mapping, e.g., a stack of two convolutional layers, of the $l$ -th residual block in ResNet and Spiking ResNet, then the residual block in Fig.1(a) ",
319
+ "bbox": [
320
+ 173,
321
+ 800,
322
+ 825,
323
+ 911
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "and Fig.1(b) can be formulated as ",
330
+ "bbox": [
331
+ 174,
332
+ 92,
333
+ 397,
334
+ 106
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "equation",
340
+ "img_path": "images/02155f34d080660276ea3e1f1bf5fdc73c98bd966a3985a3e6d01c85214d2c35.jpg",
341
+ "text": "$$\n\\begin{array} { r } { Y ^ { l } = \\mathrm { R e L U } ( \\mathcal { F } ^ { l } ( X ^ { l } ) + X ^ { l } ) , } \\\\ { O ^ { l } [ t ] = \\mathrm { S N } ( \\mathcal { F } ^ { l } ( S ^ { l } [ t ] ) + S ^ { l } [ t ] ) . } \\end{array}\n$$",
342
+ "text_format": "latex",
343
+ "bbox": [
344
+ 393,
345
+ 111,
346
+ 602,
347
+ 155
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "The residual block of Eq. (6) make it easy to implement identity mapping in ANNs. To see this, when $\\mathcal { F } ^ { l } ( X ^ { l } ) \\equiv 0$ , $Y ^ { l } = \\mathrm { R e L U } ( \\mathbf { X } ^ { \\ l } )$ . In most cases, $X ^ { l }$ is the activation of the previous ReLU layer and $X ^ { l } \\ge 0$ . Thus, $Y ^ { l } = \\mathrm { R e L U } ( X ^ { l } ) = X ^ { l }$ , which is identity mapping. ",
354
+ "bbox": [
355
+ 173,
356
+ 157,
357
+ 825,
358
+ 202
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Different from ResNet, the residual block in Spiking ResNet (Eq. (7)) restricts the models of spiking neuron to implement identity mapping. When $\\dot { \\mathcal { F } } ^ { l } ( S ^ { \\tilde { l } } [ t ] ) \\equiv 0$ , $O ^ { l } [ t ] = \\operatorname { S N } ( S ^ { l } [ t ] ) \\neq S ^ { l } [ t ]$ . To transmit $S ^ { l } [ t ]$ and make $\\mathrm { S N } ( S ^ { l } [ t ] ) = S ^ { l } [ t ]$ , the last spiking neuron (SN) in the $l$ -th residual block needs to fire a spike after receiving a spike, and keep silent after receiving no spike at time-step $t$ . It works for IF neuron described by Eq. (4). Specifically, we can set $0 < V _ { t h } \\le 1$ and $V [ t - 1 ] = 0$ to ensure that $X [ t ] = 1$ leads to $H [ t ] \\geq V _ { t h }$ , and $X [ t ] \\stackrel { \\cdot } { = } 0$ leads to $H [ t ] < V _ { t h }$ . However, when considering some spiking neuron models with complex neuronal dynamics, it is hard to achieve $\\mathrm { S N } ( S ^ { l } [ t ] ) = S ^ { l } [ t ]$ . For example, the LIF neuron used in [66, 8, 61] considers a learnable membrane time constant $\\tau$ , the neuronal dynamics of which can be described with Eq. (5). When $X [ t ] = 1$ and $V [ t - 1 ] = 0$ , $\\begin{array} { r } { H [ t ] = \\frac { 1 } { \\tau } } \\end{array}$ . It is difficult to find a firing threshold that ensures $H [ t ] > V _ { t h }$ as $\\tau$ is being changed in training by the optimizer. ",
365
+ "bbox": [
366
+ 173,
367
+ 207,
368
+ 826,
369
+ 362
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "Spiking ResNet suffers from the problems of vanishing/exploding gradient. Consider a spiking ResNet with $k$ sequential blocks to transmit $S ^ { l } [ t ]$ , and the identity mapping condition is met, e.g., the spiking neurons are the IF neurons with $0 < V _ { t h } \\le 1$ , then we have $S ^ { l } [ t ] = S ^ { l + 1 } [ t ] = \\ldots =$ $S ^ { l + k - 1 } [ t ] = O ^ { l + k - 1 } [ t ]$ . Denote the $j$ -th element in $S ^ { l } [ t ]$ and $O ^ { l } [ t ]$ as $S _ { j } ^ { l } [ t ]$ and $O _ { j } ^ { l } [ t ]$ respectively, the gradient of the output of the $( l + k - 1 )$ -th residual block with respect to the input of the $l$ -th residual block can be calculated layer by layer: ",
376
+ "bbox": [
377
+ 173,
378
+ 367,
379
+ 826,
380
+ 457
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "equation",
386
+ "img_path": "images/4bbc968c9c55af91d63a5eb4af0b3b4eab4781d22b8e29c8a0992642d796bd7d.jpg",
387
+ "text": "$$\n\\frac { \\partial O _ { j } ^ { l + k - 1 } [ t ] } { \\partial S _ { j } ^ { l } [ t ] } = \\prod _ { i = 0 } ^ { k - 1 } \\frac { \\partial O _ { j } ^ { l + i } [ t ] } { \\partial S _ { j } ^ { l + i } [ t ] } = \\prod _ { i = 0 } ^ { k - 1 } \\Theta ^ { \\prime } ( S _ { j } ^ { l + i } [ t ] - V _ { t h } ) \\{ \\begin{array} { l l } { 0 , \\mathbf { i f } \\Theta < \\Theta ^ { \\prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) < 1 } \\\\ { 1 , \\mathbf { i f } \\Theta ^ { \\prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) = 1 } \\\\ { + \\infty , \\mathbf { i f } \\Theta ^ { \\prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) > 1 } \\end{array} ,\n$$",
388
+ "text_format": "latex",
389
+ "bbox": [
390
+ 189,
391
+ 463,
392
+ 808,
393
+ 515
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "where $\\Theta ( x )$ is the Heaviside step function and $\\Theta ^ { \\prime } ( x )$ is defined by the surrogate gradient. The second equality hold as $O _ { j } ^ { l + i } [ t ] = \\mathrm { S N } ( S _ { j } ^ { l + i } [ t ] )$ . In view of the fact that $S _ { j } ^ { l } [ t ]$ can only take 0 or 1, $\\Theta ^ { \\prime } ( S _ { j } ^ { l } [ t ] - V _ { t h } ) = 1$ is not satisfied for commonly used surrogate functions mentioned in [40]. Thus, the vanishing/exploding gradient problems are prone to happen in deeper Spiking ResNet. ",
400
+ "bbox": [
401
+ 173,
402
+ 536,
403
+ 826,
404
+ 599
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "Based on the above analysis, we believe that the previous Spiking ResNet ignores the highly nonlinear caused by spiking neurons, and can hardly implement residual learning. Nonetheless, the basic block in Fig. 1(b) is still decent for ANN2SNN with extra normalization [17, 49], as the SNN converted from ANN aims to use firing rates to match the origin ANN’s activations. ",
411
+ "bbox": [
412
+ 174,
413
+ 604,
414
+ 825,
415
+ 661
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "3.3 Spike-Element-Wise ResNet ",
422
+ "text_level": 1,
423
+ "bbox": [
424
+ 176,
425
+ 676,
426
+ 408,
427
+ 693
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "Here we propose the Spike-Element-Wise (SEW) residual block to realize the residual learning in SNNs, which can easily implement identity mapping and overcome the vanishing/exploding gradient problems at the same time. As illustrated in Fig. 1(c), the SEW residual block can be formulated as: ",
434
+ "bbox": [
435
+ 176,
436
+ 702,
437
+ 823,
438
+ 744
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "equation",
444
+ "img_path": "images/1f07c471955c609b578b1c1520c9c76f4bec43129ceeeeb2060a5cc2255e1e47.jpg",
445
+ "text": "$$\nO ^ { l } [ t ] = g ( \\mathrm { S N } ( \\mathcal { F } ^ { l } ( S ^ { l } [ t ] ) ) , S ^ { l } [ t ] ) = g ( A ^ { l } [ t ] , S ^ { l } [ t ] ) ,\n$$",
446
+ "text_format": "latex",
447
+ "bbox": [
448
+ 333,
449
+ 751,
450
+ 663,
451
+ 770
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "where $g$ represents an element-wise function with two spikes tensor as inputs. Here we use $A ^ { l } [ t ]$ to denote the residual mapping to be learned as $A ^ { l } [ t ] = \\mathrm { S N } ( \\mathcal { F } ^ { l } ( S ^ { l } [ t ] ) )$ . ",
458
+ "bbox": [
459
+ 173,
460
+ 777,
461
+ 823,
462
+ 809
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "SEW ResNet can easily implement identity mapping. By utilizing the binary property of spikes, we can find different element-wise functions $g$ that satisfy identity mapping (shown in Tab. 1). To be specific, when choosing $A D D$ and IAND as element-wise functions $g$ , identity mapping is achieved by setting $A ^ { l } [ t ] \\equiv 0$ , which can be implemented simply by setting the weights and the bias of the last batch normalization layer (BN) in $\\mathcal { F } ^ { l }$ to zero. Then we can get $O ^ { l } [ t ] \\stackrel { - } { = } g ( A ^ { l } [ t ] , S ^ { l } [ t ] ) = g ( \\mathrm { S N } ( 0 ) , S ^ { l } [ t ] ) = g ( 0 , S ^ { l } [ t ] ) \\stackrel { - } { = } S ^ { l } [ t ]$ . This is applicable to all neuron models. When using AND as the element-wise function $g$ , we set $A ^ { l } [ t ] \\equiv 1$ to get identity mapping. It can be implemented by setting the last BN’s weights to zero and the bias to a large enough constant to cause spikes, e.g., setting the bias as $V _ { t h }$ when the last SN is IF neurons. Then we have $O ^ { l } [ t ] = 1 \\land S ^ { l } [ \\dot { t } ] = S ^ { l } [ t ]$ . Note that using AND may suffer from the same problem as Spiking ResNet. It is hard to control some spiking neuron models with complex neuronal dynamics to generate spikes at a specified time-step. ",
469
+ "bbox": [
470
+ 173,
471
+ 814,
472
+ 531,
473
+ 912
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "table",
479
+ "img_path": "images/de7f1a69c0ae6816b2bd0bc7d648d7cd32c58824e51c826ae9be24398bf66ba1.jpg",
480
+ "table_caption": [
481
+ "Table 1: List of element-wise functions $g$ "
482
+ ],
483
+ "table_footnote": [],
484
+ "table_body": "<table><tr><td>Name</td><td>Expression of g(A[t],S[t])</td></tr><tr><td>ADD</td><td>A[t]+S[t]</td></tr><tr><td>AND</td><td>A[t]△s[]=A[]·S[]</td></tr><tr><td>IAND</td><td>(-Al[t])△S‘[t]=(1-A[t])):S[t]</td></tr></table>",
485
+ "bbox": [
486
+ 552,
487
+ 830,
488
+ 810,
489
+ 883
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "image",
495
+ "img_path": "images/4ac730fadf39ed303c4ebfcef523e701db046c069196c72a74a7658946d3934b.jpg",
496
+ "image_caption": [
497
+ "Figure 2: Downsample blocks in Spiking ResNet and SEW ResNet. "
498
+ ],
499
+ "image_footnote": [],
500
+ "bbox": [
501
+ 267,
502
+ 93,
503
+ 728,
504
+ 247
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "",
511
+ "bbox": [
512
+ 173,
513
+ 281,
514
+ 826,
515
+ 395
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "Formulation of downsample block. Remarkably, when the input and output of one block have different dimensions, the shortcut is set as convolutional layers with stride $> 1$ , rather than the identity connection, to perform downsampling. The ResNet and the Spiking ResNet utilize {ConvBN} without ReLU in shortcut (Fig. 2(a)). In contrast, we add a SN in shortcut (Fig. 2(b)). ",
522
+ "bbox": [
523
+ 173,
524
+ 400,
525
+ 825,
526
+ 458
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "SEW ResNet can overcome vanishing/exploding gradient. The SEW block is similar to ReLU before addition (RBA) block [15] in ANNs, which can be formulated as ",
533
+ "bbox": [
534
+ 173,
535
+ 463,
536
+ 823,
537
+ 492
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "equation",
543
+ "img_path": "images/01b7af130788bfb2f927ecead13361a66ad7ac34499b0418e0d114a11e8cb8ea.jpg",
544
+ "text": "$$\nY ^ { l } = \\mathrm { R e L U } ( \\mathcal { F } ^ { l } ( X ^ { l } ) ) + X ^ { l } .\n$$",
545
+ "text_format": "latex",
546
+ "bbox": [
547
+ 401,
548
+ 496,
549
+ 596,
550
+ 515
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "The RBA block is criticized by He et al. [15] for $X ^ { l + 1 } = Y ^ { l } \\geq X ^ { l }$ , which will cause infinite outputs in deep layers. The experiment results in [15] also showed that the performance of the RBA block is worse than the basic block (Fig.1(a)). To some extent, the SEW block is an extension of the RBA block. Note that using $A N D$ and IAND as $g$ will output spikes (i.e. binary tensors), which means that the infinite outputs problem in ANNs will never occur in SNNs with SEW blocks, since all spikes are less or equal than 1. When choosing $A D D$ as $g$ , the infinite outputs problem can be relieved as the output of $k$ sequential SEW blocks will be no larger than $k + 1$ . In addition, a downsample SEW block will regulate the output to be no larger than 2 when $g$ is $A D D$ . ",
557
+ "bbox": [
558
+ 173,
559
+ 521,
560
+ 825,
561
+ 635
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "When the identity mapping is implemented, the gradient of the output of the $( l + k - 1 )$ -th SEW block with respect to the input of the $l$ -th SEW block can be calculated layer by layer: ",
568
+ "bbox": [
569
+ 171,
570
+ 640,
571
+ 823,
572
+ 670
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "equation",
578
+ "img_path": "images/95b89b3ab00baa6e3a12ad6ffb12cd36228ed1cc68eacdb0a71016383bb9dc73.jpg",
579
+ "text": "$$\n\\frac { \\partial O _ { j } ^ { l + k - 1 } [ t ] } { \\partial S _ { j } ^ { l } [ t ] } = \\prod _ { i = 0 } ^ { k - 1 } \\frac { \\partial g ( A _ { j } ^ { l + i } [ t ] , S _ { j } ^ { l + i } [ t ] ) } { \\partial S _ { j } ^ { l + i } [ t ] } = \\left\\{ \\prod _ { i = 0 } ^ { k - 1 } \\frac { \\partial ( ( \\boldsymbol { 0 } + S _ { j } ^ { l + i } [ t ] ) } { \\partial S _ { j } ^ { l + i } [ t ] } , \\mathrm { i f ~ } g = A D D \\right. \\qquad = 1 .\n$$",
580
+ "text_format": "latex",
581
+ "bbox": [
582
+ 184,
583
+ 672,
584
+ 785,
585
+ 758
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "The second equality holds as identity mapping is achieved by setting $A ^ { l + i } [ t ] \\equiv 1$ for $g = A N D$ , and $A ^ { l + i } [ t ] \\equiv 0$ for $g = A D D / I A N D$ . Since the gradient in Eq. (11) is a constant, the SEW ResNet can overcome the vanishing/exploding gradient problems. ",
592
+ "bbox": [
593
+ 174,
594
+ 763,
595
+ 820,
596
+ 809
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "4 Experiments ",
603
+ "text_level": 1,
604
+ "bbox": [
605
+ 174,
606
+ 827,
607
+ 312,
608
+ 844
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "4.1 ImageNet Classification ",
615
+ "text_level": 1,
616
+ "bbox": [
617
+ 174,
618
+ 857,
619
+ 379,
620
+ 872
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "As the test server of ImageNet 2012 is no longer available, we can not report the actual test accuracy. \nInstead, we use the accuracy on the validation set as the test accuracy, which is the same as [17, 64]. ",
627
+ "bbox": [
628
+ 173,
629
+ 882,
630
+ 826,
631
+ 911
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/6b9086656ad4506861229ab27e5507189e49c21944b1855ee1e6014b42ff6689.jpg",
638
+ "image_caption": [
639
+ "Figure 3: Comparison of the training loss, training accuracy and test accuracy on ImageNet. "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 184,
644
+ 94,
645
+ 818,
646
+ 391
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/2d5bf166dc121d1a5cb2ae567f68069f3f72a75191027e46922bb60ccd247e6c.jpg",
653
+ "table_caption": [],
654
+ "table_footnote": [
655
+ "Table 2: Test accuracy on ImageNet. "
656
+ ],
657
+ "table_body": "<table><tr><td rowspan=\"2\">Network</td><td colspan=\"2\">SEWResNet (ADD)</td><td colspan=\"2\">Spiking ResNet</td></tr><tr><td>Acc@1(%)</td><td>Acc@5(%)</td><td>Acc@1(%)</td><td>Acc@5(%)</td></tr><tr><td>ResNet-18</td><td>63.18</td><td>84.53</td><td>62.32</td><td>84.05</td></tr><tr><td>ResNet-34</td><td>67.04</td><td>87.25</td><td>61.86</td><td>83.69</td></tr><tr><td>ResNet-50</td><td>67.78</td><td>87.52</td><td>57.66</td><td>80.43</td></tr><tr><td>ResNet-101</td><td>68.76</td><td>88.25</td><td>31.79</td><td>54.91</td></tr><tr><td>ResNet-152</td><td>69.26</td><td>88.57</td><td>10.03</td><td>23.57</td></tr></table>",
658
+ "bbox": [
659
+ 277,
660
+ 435,
661
+ 715,
662
+ 526
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "He et al. [14] evaluated the 18/34/50/101/152-layer ResNets on the ImageNet dataset. For comparison, we consider the SNNs with the same network architectures, except that the basic residual block (Fig.1(a)) is replaced by the spiking basic block (Fig.1(b)) and SEW block (Fig.1(c)) with $g$ as $A D D$ , respectively. We denote the SNN with the basic block as Spiking ResNet and the SNN with the SEW block as SEW ResNet. The IF neuron model is adopted for the static ImageNet dataset. During training on ImageNet, we find that the Spiking ResNet-50/101/152 can not converge unless we use the zero initialization [10], which sets all blocks to be an identity mapping at the start of training. Thus, the results of Spiking ResNet-18/34/50/101/152 reported in this paper are with zero initialization. ",
669
+ "bbox": [
670
+ 173,
671
+ 551,
672
+ 826,
673
+ 664
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "Spiking ResNet vs. SEW ResNet. We first evaluate the performance of Spiking ResNet and SEW ResNet. Tab. 2 reports the test accuracy on ImageNet validation. The results show that the deeper 34-layer Spiking ResNet has lower test accuracy than the shallower 18-layer Spiking ResNet. As the layer increases, the test accuracy of Spiking ResNet decreases. To reveal the reason, we compare the training loss, training accuracy, and test accuracy of Spiking ResNet during the training procedure, which is shown in Fig. 3. We can find the degradation problem of the Spiking ResNet — the deeper network has higher training loss than the shallower network. In contrast, the deeper 34-layer SEW ResNet has higher test accuracy than the shallower 18-layer SEW ResNet (shown in Tab. 2). More importantly, it can be found from Fig. 3 that the training loss of our SEW ResNet decreases and the training/test accuracy increases with the increase of depth, which indicates that we can obtain higher performance by simply increasing the network’s depth. All these results imply that the degradation problem is well addressed by SEW ResNet. ",
680
+ "bbox": [
681
+ 173,
682
+ 670,
683
+ 825,
684
+ 835
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "Comparisons with State-of-the-art Methods. In Tab. 3, we compare SEW ResNet with previous Spiking ResNets that achieve the best results on ImageNet. To our best knowledge, the SEW ResNet101 and the SEW ResNet-152 are the only SNNs with more than 100 layers to date, and there are no other networks with the same structure to compare. When the network structure is the same, our SEW ResNet outperforms the state-of-the-art accuracy of directly trained Spiking ResNet, even with fewer time-steps $T$ . The accuracy of SEW ResNet-34 is slightly lower than Spiking ResNet-34 (large) with td-BN $( 6 7 . 0 4 \\%$ v.s. $6 7 . 0 5 \\%$ ), which uses 1.5 times as many simulating time-steps $T$ (6 v.s. 4) and 4 times as many the number of parameters (85.5M v.s. 21.8M), compared with our SEW ResNet. The state-of-the-art ANN2SNN methods [33, 17] have better accuracy than our SEW ResNet, but they respectively use 64 and 87.5 times as many time-steps as ours. ",
691
+ "bbox": [
692
+ 174,
693
+ 842,
694
+ 825,
695
+ 911
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "table",
701
+ "img_path": "images/5d23e3a5b8276d1a9f2049d4c1b45f454e8a11c85505d6c3bd5759e22d56e2e4.jpg",
702
+ "table_caption": [],
703
+ "table_footnote": [
704
+ "Table 3: Comparison with previous Spiking ResNet on ImageNet. † has the same network structure as the standard Spiking ResNet-34, but uses four times as many the number of convolution kernels. "
705
+ ],
706
+ "table_body": "<table><tr><td>Network</td><td>Methods</td><td>Accuracy(%)</td><td>T</td></tr><tr><td>SEW ResNet-34</td><td>Spike-based BP</td><td>67.04</td><td>4</td></tr><tr><td>Spiking ResNet-34(large)† with td-BN [64]</td><td>Spike-based BP</td><td>67.05</td><td>6</td></tr><tr><td>Spiking ResNet-34 with td-BN [64]</td><td>Spike-based BP</td><td>63.72</td><td>6</td></tr><tr><td>Spiking ResNet-34 [12]</td><td>ANN2SNN</td><td>69.89</td><td>4096</td></tr><tr><td>Spiking ResNet-34 [49]</td><td>ANN2SNN</td><td>65.47</td><td>2000</td></tr><tr><td>Spiking ResNet-34 [33]</td><td>ANN2SNN</td><td>74.61</td><td>256</td></tr><tr><td>Spiking ResNet-34 [43]</td><td>ANN2SNN and Spike-based BP</td><td>61.48</td><td>250</td></tr><tr><td>SEW ResNet-50</td><td>Spike-basedBP</td><td>67.78</td><td>4</td></tr><tr><td>Spiking ResNet-50 with td-BN [64]</td><td>Spike-based BP</td><td>64.88</td><td>6</td></tr><tr><td>Spiking ResNet-50 [17]</td><td>ANN2SNN</td><td>72.75</td><td>350</td></tr><tr><td>SEWResNet-101</td><td>Spike-based BP</td><td>68.76</td><td>4</td></tr><tr><td>SEWResNet-152</td><td>Spike-basedBP</td><td>69.26</td><td>4</td></tr></table>",
707
+ "bbox": [
708
+ 215,
709
+ 88,
710
+ 779,
711
+ 236
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "image",
717
+ "img_path": "images/083eb00ec81924defce6805a3223ddb459767168347f3b8473343acc55f30ac7.jpg",
718
+ "image_caption": [
719
+ "Figure 4: Firing rates of $A ^ { l }$ in SEW blocks on ImageNet. "
720
+ ],
721
+ "image_footnote": [],
722
+ "bbox": [
723
+ 178,
724
+ 272,
725
+ 816,
726
+ 402
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "",
733
+ "bbox": [
734
+ 174,
735
+ 435,
736
+ 825,
737
+ 505
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Analysis of spiking response of SEW blocks. Fig. 4 shows the firing rates of $A ^ { l }$ in SEW ResNet18/34/50/101/152 on ImageNet. There are 7 blocks in SEW ResNet-18, 15 blocks in SEW ResNet-34 and SEW ResNet-50, 33 blocks in SEW ResNet-101, and 50 blocks in SEW ResNet-152. The downsample SEW blocks are marked by the triangle down symbol $\\bigtriangledown$ . As we choose $A D D$ as elementwise functions $g$ , a lower firing rate means that the SEW block gets closer to implementing identity mapping, except for downsample blocks. Note that the shortcuts of downsample blocks are not identity mapping, which is illustrated in Fig. 2(b). Fig. 4 shows that all spiking neurons in SEW blocks have low firing rates, and the spiking neurons in the last two blocks even have firing rates of almost zero. As the time-steps $T$ is 4 and firing rates are no larger than 0.25, all neurons in SEW ResNet-18/34/50 fire on average no more than one spike during the whole simulation. Besides, all firing rates in SEW ResNet-101/152 are not larger than 0.5, indicating that all neurons fire on average not more than two spikes. In general, the firing rates of $A ^ { l }$ in SEW blocks are at a low level, verifying that most SEW blocks act as identity mapping. ",
744
+ "bbox": [
745
+ 173,
746
+ 511,
747
+ 825,
748
+ 690
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "Gradients Check on ResNet-152 Structure. Eq. (8) and Eq. (11) analyze the gradients of multiple blocks with identity mapping. To verify that SEW ResNet can overcome vanishing/exploding gradient, we check the gradients of Spiking ResNet-152 and SEW ResNet-152, which are the deepest standard ResNet structure. We consider the same initialization parameters and with/without zero initialization. ",
755
+ "bbox": [
756
+ 174,
757
+ 696,
758
+ 825,
759
+ 752
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "As the gradients of SNNs are significantly influenced by firing rates (see Sec.A.4), we analyze the firing rate firstly. Fig. 5(a) shows the initial firing rate of $l$ -th block’s output $O ^ { l }$ . The indexes of downsample blocks are marked by vertical dotted lines. The blocks between two adjacent dotted lines represent the identity mapping areas, and have inputs and outputs with the same shape. When using zero initialization, Spiking ResNet, SEW AND ResNet, SEW IAND ResNet, and SEW ADD ResNet have the same firing rates (green curve), which is the zero init curve. Without zero initialization, the silence problem happens in the SEW AND network (red curve), and is relieved by the SEW IAND network (purple curve). Fig. 5(b) shows the firing rate of $A ^ { l }$ , which represents the output of last SN in $l$ -th block. It can be found that although the firing rate of $O ^ { l }$ in SEW ADD ResNet increases linearly in the identity mapping areas, the last SN in each block still maintains a stable firing rate. Note that when $g$ is $A D D$ , the output of the SEW block is not binary, and the firing rate is actually the mean value. The SNs of SEW IAND ResNet maintain an adequate firing rate and decay slightly with depth (purple curve), while SNs in deep layers of SEW AND ResNet keep silent (orange curve). The silence problem can be explained as follows. When using $A N D$ , $O ^ { l } [ \\dot { t } ] = \\mathrm { S N } ( \\mathcal { F } ^ { l } ( \\tilde { O } ^ { l - 1 } [ t ] ) ) \\wedge O ^ { l - 1 } [ t ] \\leq \\dot { O } ^ { l - 1 } [ t ] .$ . Since it is hard to keep $\\mathrm { S N } ( \\mathcal { F } ^ { l } ( O ^ { l - 1 } [ t ] ) ) \\equiv 1$ at each time-step $t$ , the silence problem may frequently happen in SEW ResNet with AND as $g$ . Using IAND as a substitute of $A N D$ can relieve this problem because it is easy to keep $\\mathrm { S N } ( \\mathcal { F } ^ { l } ( O ^ { l - 1 } [ t ] ) ) \\equiv \\breve { 0 }$ at each time-step $t$ . ",
766
+ "bbox": [
767
+ 174,
768
+ 758,
769
+ 825,
770
+ 911
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "",
777
+ "bbox": [
778
+ 173,
779
+ 90,
780
+ 826,
781
+ 189
782
+ ],
783
+ "page_idx": 7
784
+ },
785
+ {
786
+ "type": "image",
787
+ "img_path": "images/31ff982586d6ff21bc23fef94a8beedfc34af8d2284a28b9925488a098afa5a2.jpg",
788
+ "image_caption": [
789
+ "Figure 5: The initial firing rates of output $O ^ { l }$ and $A ^ { l }$ in $l$ -th block on 152-layer network. "
790
+ ],
791
+ "image_footnote": [],
792
+ "bbox": [
793
+ 200,
794
+ 210,
795
+ 789,
796
+ 366
797
+ ],
798
+ "page_idx": 7
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "The surrogate gradient function we used in all experiments is $\\begin{array} { r } { \\sigma ( x ) = \\frac { 1 } { \\pi } \\arctan ( \\frac { \\pi } { 2 } \\alpha x ) + \\frac { 1 } { 2 } } \\end{array}$ , thus $\\begin{array} { r } { \\sigma ^ { \\prime } ( x ) = \\frac { \\alpha } { 2 ( 1 + ( \\frac { \\pi } { 2 } \\alpha x ) ^ { 2 } ) } . } \\end{array}$ . When $V _ { t h } = 1 , \\alpha = 2$ , the gradient amplitude $\\Vert \\frac { \\partial L } { \\partial S ^ { l } } \\Vert$ of each block is shown in Fig. 6. Note that $\\alpha = 2$ , $\\sigma ^ { \\prime } ( x ) \\leq \\sigma ^ { \\prime } ( 0 ) = \\sigma ^ { \\prime } ( 1 - V _ { t h } ) = 1$ and $\\sigma ^ { \\prime } ( 0 - V _ { t h } ) = 0 . 0 9 2 < 1$ . It can be found that the gradients in Spiking ResNet-152 decay from deeper layers to shallower layers in the identity mapping areas without zero initialization, which is caused by $\\begin{array} { r } { \\dot { \\sigma } ^ { \\prime } ( x ) \\leq 1 } \\end{array}$ . It is worth noting that the decay also happens in Spiking ResNet-152 with zero initialization. The small convex $\\Lambda$ near the dotted lines is caused by the vanishing gradients of those $S _ { j } ^ { l } [ t ] = 0$ . After these gradients decays to 0 completely, $\\Vert \\frac { \\partial L } { \\partial S ^ { l } } \\Vert$ will be a constant because the rest gradients are calculated by $S _ { j } ^ { l } [ t ] = 1$ and $\\sigma ^ { \\prime } ( 1 - V _ { t h } ) = 1$ , which can also explain why the gradient-index curve is horizontal at some areas. When referring to SEW ResNet-152 with zero initialization, it can be found that all gradient-index curves are similar no matter what $g$ we choose. This is caused by that in the identity mapping areas, $S ^ { l }$ is constant for all index $l$ , and the gradient also becomes a constant as it will not flow through SNs. Without zero initialization, the vanishing gradient happens in the SEW AND ResNet-152, which is caused by the silence problem. The gradients of SEW ADD, IAND network increase slowly when propagating from deeper layers to shallower layers, due to the adequate firing rates shown in Fig. 5. ",
803
+ "bbox": [
804
+ 173,
805
+ 416,
806
+ 826,
807
+ 640
808
+ ],
809
+ "page_idx": 7
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "When $V _ { t h } = 0 . 5 , \\alpha = 2$ , $\\sigma ^ { \\prime } ( 0 - V _ { t h } ) = \\sigma ^ { \\prime } ( 1 - V _ { t h } ) = 0 . 2 8 8 < 1$ , indicating that transmitting spikes to SNs is prone to causing vanishing gradient, as shown in Fig. 7. With zero initialization, the decay in Spiking ResNet-152 is more serious because gradient from $\\mathcal { F } ^ { l }$ can not contribute. The SEW ResNet-152 will not be affected no matter what $g$ we choose. When $V _ { t h } = 1 , \\alpha = 3$ , $\\sigma ^ { \\prime } ( 1 - V _ { t h } ) = 1 . 5 > 1$ , indicating that transmitting spikes to SNs is prone to causing exploding gradient. Fig. 8 shows the gradient in this situation. Same with the reason in Fig. 6, the change of surrogate function will increase gradients of all networks without zero initialization, but not affect SEW ResNet-152 with zero initialization. The Spiking ResNet-152 meets exploding gradient, while this problem in SEW ADD, IAND ResNet-152 is not serious. ",
814
+ "bbox": [
815
+ 173,
816
+ 643,
817
+ 826,
818
+ 770
819
+ ],
820
+ "page_idx": 7
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "4.2 DVS Gesture Classification ",
825
+ "text_level": 1,
826
+ "bbox": [
827
+ 176,
828
+ 787,
829
+ 400,
830
+ 803
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "The origin ResNet, which is designed for classifying the complex ImageNet dataset, is too large for the DVS Gesture dataset. Hence, we design a tiny network named 7B-Net, whose structure is c32k3s1-BN-PLIF-{SEW Block-MPk2s2}\\*7-FC11. Here c32k3s1 means the convolutional layer with channels 32, kernel size 3, stride 1. MPk2s2 is the max pooling with kernel size 2, stride 2. The symbol $\\{ \\} ^ { * } $ denotes seven repeated structure, and PLIF denotes the Parametric Leaky-Integrate-andFire Spiking Neuron with a learnable membrane time constant, which is proposed in [8] and can be described by Eq. (5). See Sec.A.1 for AER data pre-processing details. ",
837
+ "bbox": [
838
+ 174,
839
+ 814,
840
+ 825,
841
+ 911
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "image",
847
+ "img_path": "images/8073af5219e66c4db06c8fadc705ab27b014379a3c1ffa798fba5f23925374a6.jpg",
848
+ "image_caption": [
849
+ "Figure 7: Gradient amplitude $\\Big | \\Big | \\frac { \\partial L } { \\partial S ^ { l } } \\Big | \\Big |$ of $l$ -th block when $V _ { t h } = 0 . 5 , \\alpha = 2$ "
850
+ ],
851
+ "image_footnote": [],
852
+ "bbox": [
853
+ 176,
854
+ 87,
855
+ 825,
856
+ 333
857
+ ],
858
+ "page_idx": 8
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "Spiking ResNet vs. SEW ResNet. We first compare the performance of SEW ResNet with $A D D$ element-wise function (SEW ADD ResNet) and Spiking ResNet by replacing SEW blocks with basic blocks. As shown in Fig. 9 and Tab. 4, although the training loss of Spiking ResNet (blue curve) is lower than SEW ADD ResNet (orange curve), the test accuracy is lower than SEW ADD ResNet $( 9 0 . 9 7 \\%$ v.s. $9 7 . 9 2 \\%$ ), which implies that Spiking ResNet is easier to overfit than SEW ADD ResNet. ",
863
+ "bbox": [
864
+ 173,
865
+ 363,
866
+ 825,
867
+ 433
868
+ ],
869
+ "page_idx": 8
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "Evaluation of different element-wise functions and plain block. As the training cost of SNNs on the DVS Gesture dataset is much lower than on ImageNet, we carry out more ablation experiments on the DVS Gesture dataset. We replace SEW blocks with the plain blocks (no shortcut connection) and test the performance. We also evaluate all kinds of element-wise functions $g$ in Tab. 1. Fig. 9 shows the training loss and training/test accuracy on DVS Gesture. The sharp fluctuation during early epochs is caused by the large learning rate (see Sec.A.1). We can find that the training loss is SEW IAND $<$ Spiking ResNe $<$ <SEW ADD $<$ Plain Net<SEW AND. Due to the overfitting problem, a lower loss does not guarantee a higher test accuracy. ",
874
+ "bbox": [
875
+ 173,
876
+ 453,
877
+ 826,
878
+ 564
879
+ ],
880
+ "page_idx": 8
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "Tab. 4 shows the test accuracy of all networks. The SEW ADD ResNet gets the highest accuracy than others. ",
885
+ "bbox": [
886
+ 173,
887
+ 564,
888
+ 437,
889
+ 604
890
+ ],
891
+ "page_idx": 8
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Comparisons with State-of-the-art Methods. Tab. 5 compares our network with SOTA methods. It can be found that our SEW ResNet outperforms the SOTA works in accuracy, parameter numbers, and simulating time-steps. ",
896
+ "bbox": [
897
+ 174,
898
+ 613,
899
+ 437,
900
+ 695
901
+ ],
902
+ "page_idx": 8
903
+ },
904
+ {
905
+ "type": "table",
906
+ "img_path": "images/522c669d26d07a3caca5e8f8818a5be47f54161cd9bb501d3dc28f6227872d40.jpg",
907
+ "table_caption": [
908
+ "Table 4: Test accuracy on DVS Gesture. The networks’ order is ranked by accuracy. "
909
+ ],
910
+ "table_footnote": [],
911
+ "table_body": "<table><tr><td>Network</td><td>Element-Wise Function g</td><td>Accuracy(%)</td></tr><tr><td>SEWResNet</td><td>ADD</td><td>97.92</td></tr><tr><td>SEWResNet</td><td>IAND</td><td>95.49</td></tr><tr><td>Plain Net</td><td>1</td><td>91.67</td></tr><tr><td>Spiking ResNet</td><td>1</td><td>90.97</td></tr><tr><td>SEWResNet</td><td>AND</td><td>70.49</td></tr></table>",
912
+ "bbox": [
913
+ 459,
914
+ 579,
915
+ 810,
916
+ 651
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "table",
922
+ "img_path": "images/87f97b8c6c4f4d3ca56f0ed9846af33b37f9edac715d30d69555aede06cd280b.jpg",
923
+ "table_caption": [],
924
+ "table_footnote": [
925
+ "Table 5: Comparison with the state-of-the-art (SOTA) methods on DVS Gesture dataset. "
926
+ ],
927
+ "table_body": "<table><tr><td>Network</td><td>Accuracy(%)</td><td>Parameters</td><td>T</td></tr><tr><td>c32k3s1-BN-PLIF-{SEW Block (c32) -MPk2s2}*7-FC11 (7B-Net)</td><td>97.92</td><td>0.13M</td><td>16</td></tr><tr><td>{c128k3s1-BN-PLIF-MPk2s2}*5-DP-</td><td>97.57</td><td>1.70M</td><td>20</td></tr><tr><td>FC512-PLIF-DP-FC110-PLIF-APk10s10[8]</td><td></td><td>11.18M</td><td></td></tr><tr><td>SpikingResNet-17with td-BN[64] MPk4-c64k3-LIF-c128k3-LIF-APk2-c128k3-LIF-APk2-FC256-LIF-FC11[16]</td><td>96.87 93.40</td><td>23.23M</td><td>40 60</td></tr></table>",
928
+ "bbox": [
929
+ 181,
930
+ 708,
931
+ 812,
932
+ 780
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "4.3 CIFAR10-DVS Classification ",
939
+ "text_level": 1,
940
+ "bbox": [
941
+ 174,
942
+ 815,
943
+ 413,
944
+ 830
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "We also report SEW ResNet on the CIFAR10-DVS dataset, which is obtained by recording the moving images of the CIFAR-10 dataset on a LCD monitor by a DVS camera. As CIFAR10-DVS is more complicated than DVS Gesture, we use the network structure named Wide-7B-Net, which is similar to 7B-Net but with more channels. The structure of Wide-7B-Net is c64k3s1-BN-PLIF-{SEW Block (c64)-MPk2s2}\\*4-c128k3s1-BN-PLIF-{SEW Block (c128)-MPk2s2}\\*3-FC10. ",
951
+ "bbox": [
952
+ 174,
953
+ 842,
954
+ 825,
955
+ 911
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "image",
961
+ "img_path": "images/adf33effbd45f2f127239f214ada7e8b50cddf2be808e866b1d288cd44499759.jpg",
962
+ "image_caption": [
963
+ "Figure 8: Gradient amplitude $\\Big | \\Big | \\frac { \\partial L } { \\partial S ^ { l } } \\Big | \\Big |$ of $l$ -th block when $V _ { t h } = 1 , \\alpha = 3$ "
964
+ ],
965
+ "image_footnote": [],
966
+ "bbox": [
967
+ 173,
968
+ 90,
969
+ 825,
970
+ 207
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "image",
976
+ "img_path": "images/2f787e59c9a353014adc1b3c571413dd5228c89ea36b3ec6a0cecc30ee07713a.jpg",
977
+ "image_caption": [
978
+ "Figure 9: Comparison of the training loss, training accuracy and test accuracy on DVS Gesture dataset. "
979
+ ],
980
+ "image_footnote": [],
981
+ "bbox": [
982
+ 253,
983
+ 256,
984
+ 738,
985
+ 390
986
+ ],
987
+ "page_idx": 9
988
+ },
989
+ {
990
+ "type": "table",
991
+ "img_path": "images/4a2bf250a61343fe14828ee5184b156e1551d92b64407315677402ffac7cd288.jpg",
992
+ "table_caption": [],
993
+ "table_footnote": [
994
+ "Table 6: Comparison with the state-of-the-art (SOTA) methods on CIFAR10-DVS dataset. "
995
+ ],
996
+ "table_body": "<table><tr><td>Network</td><td>Accuracy(%)</td><td>Parameters</td><td>T</td></tr><tr><td>c64k3s1-BN-PLIF-{SEWBlock (c64)-MPk2s2}*4-c128k3s1- BN-PLIF-{SEWBlock (c128)-MPk2s2}*3-FCi0 (Wide-7B-Net)</td><td>64.8, 70.2, 74.4</td><td>1.19M</td><td>4,8,16</td></tr><tr><td>{c128k3s1-BN-PLIF-MPk2s2}*4-DP-FC512-PLIF-DP- FC100-PLIF-APk10s10[8]</td><td>74.8</td><td>17.4M</td><td>20</td></tr><tr><td>Spiking ResNet-19 with td-BN [64]</td><td>67.8</td><td>11.18M</td><td>10</td></tr></table>",
997
+ "bbox": [
998
+ 194,
999
+ 443,
1000
+ 797,
1001
+ 515
1002
+ ],
1003
+ "page_idx": 9
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "In Tab.6, we compare SEW ResNet with the previous Spiking ResNet. One can find that our method achieves better performance $7 0 . 2 \\%$ v.s. $6 7 . 8 \\%$ and fewer time-steps (8 v.s. 10) than the Spiking ResNet [64]. We also compare our method with the state-of-the-art (SOTA) supervised learning methods on CIFAR10-DVS. The accuracy of our Wide-7B-Net is slightly lower than the current SOTA method [8] $7 4 . 4 \\%$ v.s. $7 4 . 8 \\%$ ), which uses 1.25 times as many simulation time-steps $T$ (20 v.s. 16) and 14.6 times as many the number of parameters (17.4M v.s. 1.19M). Moreover, when reducing $T$ shapely to $T = 4$ , our Wide-7B-Net can still get the accuracy of $6 4 . 8 \\%$ . ",
1008
+ "bbox": [
1009
+ 173,
1010
+ 559,
1011
+ 825,
1012
+ 657
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "5 Conclusion ",
1019
+ "text_level": 1,
1020
+ "bbox": [
1021
+ 174,
1022
+ 684,
1023
+ 299,
1024
+ 702
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "In this paper, we analyze the previous Spiking ResNet whose residual block mimics the standard block of ResNet, and find that it can hardly implement identity mapping and suffers from the problems of vanishing/exploding gradient. To solve these problems, we propose the SEW residual block and prove that it can implement the residual learning. The experiment results on ImageNet, DVS Gesture, and CIFAR10-DVS datasets show that our SEW residual block solves the degradation problem, and SEW ResNet can achieve higher accuracy by simply increasing the network’s depth. Our work may shed light on the learning of “very deep” SNNs. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 720,
1034
+ 825,
1035
+ 819
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "6 Acknowledgment ",
1042
+ "text_level": 1,
1043
+ "bbox": [
1044
+ 174,
1045
+ 847,
1046
+ 349,
1047
+ 863
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "This work is supported by grants from the National Natural Science Foundation of China under contracts No.62027804, No.61825101, and No.62088102. ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 883,
1057
+ 821,
1058
+ 911
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "References \n[1] Arnon Amir, Brian Taba, David Berg, Timothy Melano, Jeffrey McKinstry, Carmelo Di Nolfo, Tapan Nayak, Alexander Andreopoulos, Guillaume Garreau, Marcela Mendoza, Jeff Kusnitz, Michael Debole, Steve Esser, Tobi Delbruck, Myron Flickner, and Dharmendra Modha. A low power, fully event-based gesture recognition system. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7243–7252, 2017. \n[2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2015. \n[3] Yoshua Bengio, Yann LeCun, et al. Scaling learning algorithms towards ai. Large-scale Kernel Machines, 34(5):1–41, 2007. \n[4] Yongqiang Cao, Yang Chen, and Deepak Khosla. Spiking deep convolutional neural networks for energy-efficient object recognition. International Journal of Computer Vision, 113(1):54–66, 2015. \n[5] Iulia M Comsa, Krzysztof Potempa, Luca Versari, Thomas Fischbacher, Andrea Gesmundo, and Jyrki Alakuijala. Temporal coding in spiking neural networks with alpha synaptic function. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8529–8533. IEEE, 2020. \n[6] Shikuang Deng and Shi Gu. Optimal conversion of conventional artificial neural networks to spiking neural networks. In International Conference on Learning Representations (ICLR), 2021. \n[7] Wei Fang, Yanqi Chen, Jianhao Ding, Ding Chen, Zhaofei Yu, Huihui Zhou, Yonghong Tian, and other contributors. Spikingjelly. https://github.com/fangwei123456/ spikingjelly. \n[8] Wei Fang, Zhaofei Yu, Yanqi Chen, Timothee Masquelier, Tiejun Huang, and Yonghong Tian. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2661–2671, 2021. \n[9] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 580–587, 2014. \n[10] Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. \n[11] Bing Han and Kaushik Roy. Deep spiking neural network: Energy efficiency through time based coding. In European Conference on Computer Vision (ECCV), pages 388–404, 2020. \n[12] Bing Han, Gopalakrishnan Srinivasan, and Kaushik Roy. Rmp-snn: Residual membrane potential neuron for enabling deeper high-accuracy and low-latency spiking neural network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13558–13567, 2020. \n[13] Kaiming He and Jian Sun. Convolutional neural networks at constrained time cost. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5353–5360, 2015. \n[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. \n[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision (ECCV), pages 630–645. Springer, 2016. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 79,
1068
+ 828,
1069
+ 919
1070
+ ],
1071
+ "page_idx": 10
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "[16] Weihua He, YuJie Wu, Lei Deng, Guoqi Li, Haoyu Wang, Yang Tian, Wei Ding, Wenhui Wang, and Yuan Xie. Comparing snns and rnns on neuromorphic vision datasets: Similarities and differences. Neural Networks, 132:108–120, 2020. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 90,
1079
+ 823,
1080
+ 133
1081
+ ],
1082
+ "page_idx": 11
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "[17] Yangfan Hu, Huajin Tang, Yueming Wang, and Gang Pan. Spiking deep residual network. arXiv preprint arXiv:1805.01352, 2018. ",
1087
+ "bbox": [
1088
+ 171,
1089
+ 142,
1090
+ 823,
1091
+ 171
1092
+ ],
1093
+ "page_idx": 11
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "[18] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4700–4708, 2017. ",
1098
+ "bbox": [
1099
+ 173,
1100
+ 179,
1101
+ 823,
1102
+ 223
1103
+ ],
1104
+ "page_idx": 11
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "[19] Dongsung Huh and Terrence J Sejnowski. Gradient descent for spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 1440–1450, 2018. ",
1109
+ "bbox": [
1110
+ 173,
1111
+ 231,
1112
+ 821,
1113
+ 261
1114
+ ],
1115
+ "page_idx": 11
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "[20] Eric Hunsberger and Chris Eliasmith. Spiking deep networks with lif neurons. arXiv preprint arXiv:1510.08829, 2015. ",
1120
+ "bbox": [
1121
+ 174,
1122
+ 268,
1123
+ 821,
1124
+ 297
1125
+ ],
1126
+ "page_idx": 11
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "[21] Sungmin Hwang, Jeesoo Chang, Min-Hye Oh, Kyung Kyu Min, Taejin Jang, Kyungchul Park, Junsu Yu, Jong-Ho Lee, and Byung-Gook Park. Low-latency spiking neural networks using pre-charged membrane potential and delayed evaluation. Frontiers in Neuroscience, 15:135, 2021. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 306,
1134
+ 826,
1135
+ 363
1136
+ ],
1137
+ "page_idx": 11
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "[22] Forrest N Iandola, Song Han, Matthew W Moskewicz, Khalid Ashraf, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and $< 0 . 5 ~ \\mathrm { m b }$ model size. arXiv preprint arXiv:1602.07360, 2016. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 372,
1145
+ 823,
1146
+ 415
1147
+ ],
1148
+ "page_idx": 11
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "[23] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), pages 448–456, 2015. ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 422,
1156
+ 823,
1157
+ 467
1158
+ ],
1159
+ "page_idx": 11
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "[24] Saeed Reza Kheradpisheh and Timothée Masquelier. Temporal backpropagation for spiking neural networks with one spike per neuron. International Journal of Neural Systems, 30(06):2050027, 2020. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 474,
1167
+ 823,
1168
+ 517
1169
+ ],
1170
+ "page_idx": 11
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "[25] Jaehyun Kim, Heesu Kim, Subin Huh, Jinho Lee, and Kiyoung Choi. Deep neural networks with weighted spikes. Neurocomputing, 311:373–386, 2018. ",
1175
+ "bbox": [
1176
+ 171,
1177
+ 526,
1178
+ 823,
1179
+ 556
1180
+ ],
1181
+ "page_idx": 11
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "[26] Jinseok Kim, Kyungsu Kim, and Jae-Joon Kim. Unifying activation- and timing-based learning rules for spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 19534–19544, 2020. ",
1186
+ "bbox": [
1187
+ 174,
1188
+ 564,
1189
+ 823,
1190
+ 606
1191
+ ],
1192
+ "page_idx": 11
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "[27] Alex Krizhevsky. One weird trick for parallelizing convolutional neural networks. arXiv preprint arXiv:1404.5997, 2014. ",
1197
+ "bbox": [
1198
+ 171,
1199
+ 614,
1200
+ 823,
1201
+ 645
1202
+ ],
1203
+ "page_idx": 11
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "[28] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 1097–1105, 2012. ",
1208
+ "bbox": [
1209
+ 174,
1210
+ 652,
1211
+ 825,
1212
+ 695
1213
+ ],
1214
+ "page_idx": 11
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "[29] Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 704,
1222
+ 825,
1223
+ 733
1224
+ ],
1225
+ "page_idx": 11
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "[30] Chankyu Lee, Syed Shakib Sarwar, Priyadarshini Panda, Gopalakrishnan Srinivasan, and Kaushik Roy. Enabling spike-based backpropagation for training deep neural network architectures. Frontiers in Neuroscience, 14, 2020. ",
1230
+ "bbox": [
1231
+ 173,
1232
+ 742,
1233
+ 825,
1234
+ 785
1235
+ ],
1236
+ "page_idx": 11
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "[31] Jun Haeng Lee, Tobi Delbruck, and Michael Pfeiffer. Training deep spiking neural networks using backpropagation. Frontiers in Neuroscience, 10:508, 2016. ",
1241
+ "bbox": [
1242
+ 169,
1243
+ 792,
1244
+ 825,
1245
+ 823
1246
+ ],
1247
+ "page_idx": 11
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "[32] Hongmin Li, Hanchao Liu, Xiangyang Ji, Guoqi Li, and Luping Shi. Cifar10-dvs: An eventstream dataset for object classification. Frontiers in Neuroscience, 11:309, 2017. ",
1252
+ "bbox": [
1253
+ 173,
1254
+ 832,
1255
+ 823,
1256
+ 861
1257
+ ],
1258
+ "page_idx": 11
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "[33] Yuhang Li, Shikuang Deng, Xin Dong, Ruihao Gong, and Shi Gu. A free lunch from ann: Towards efficient, accurate spiking neural networks calibration. In International Conference on Machine Learning (ICML), volume 139, pages 6316–6325, 2021. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 869,
1266
+ 826,
1267
+ 912
1268
+ ],
1269
+ "page_idx": 11
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "[34] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European Conference on Computer Vision (ECCV), pages 21–37. Springer, 2016. ",
1274
+ "bbox": [
1275
+ 171,
1276
+ 90,
1277
+ 823,
1278
+ 133
1279
+ ],
1280
+ "page_idx": 12
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "[35] Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR), 2017. ",
1285
+ "bbox": [
1286
+ 169,
1287
+ 143,
1288
+ 823,
1289
+ 172
1290
+ ],
1291
+ "page_idx": 12
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "[36] Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. In International Conference on Learning Representations (ICLR), 2018. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 183,
1299
+ 825,
1300
+ 226
1301
+ ],
1302
+ "page_idx": 12
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "[37] 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–533, 2015. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 234,
1310
+ 826,
1311
+ 279
1312
+ ],
1313
+ "page_idx": 12
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "[38] Guido F Montufar, Razvan Pascanu, Kyunghyun Cho, and Yoshua Bengio. On the number of linear regions of deep neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 2924–2932, 2014. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 287,
1321
+ 825,
1322
+ 330
1323
+ ],
1324
+ "page_idx": 12
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "[39] Hesham Mostafa. Supervised learning based on temporal coding in spiking neural networks. IEEE Transactions on Neural Networks and Learning Systems, 29(7):3227–3235, 2017. ",
1329
+ "bbox": [
1330
+ 171,
1331
+ 340,
1332
+ 825,
1333
+ 371
1334
+ ],
1335
+ "page_idx": 12
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "[40] Emre O Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks. IEEE Signal Processing Magazine, 36(6):51–63, 2019. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 380,
1343
+ 823,
1344
+ 422
1345
+ ],
1346
+ "page_idx": 12
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "[41] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), pages 8026–8037, 2019. ",
1351
+ "bbox": [
1352
+ 174,
1353
+ 433,
1354
+ 826,
1355
+ 517
1356
+ ],
1357
+ "page_idx": 12
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "[42] Nitin Rathi and Kaushik Roy. Diet-snn: Direct input encoding with leakage and threshold optimization in deep spiking neural networks. arXiv preprint arXiv:2008.03658, 2020. ",
1362
+ "bbox": [
1363
+ 168,
1364
+ 526,
1365
+ 823,
1366
+ 556
1367
+ ],
1368
+ "page_idx": 12
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "[43] Nitin Rathi, Gopalakrishnan Srinivasan, Priyadarshini Panda, and Kaushik Roy. Enabling deep spiking neural networks with hybrid conversion and spike timing dependent backpropagation. In International Conference on Learning Representations (ICLR), 2020. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 565,
1376
+ 823,
1377
+ 609
1378
+ ],
1379
+ "page_idx": 12
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "[44] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 779–788, 2016. ",
1384
+ "bbox": [
1385
+ 173,
1386
+ 618,
1387
+ 823,
1388
+ 662
1389
+ ],
1390
+ "page_idx": 12
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "[45] Kaushik Roy, Akhilesh Jaiswal, and Priyadarshini Panda. Towards spike-based machine intelligence with neuromorphic computing. Nature, 575(7784):607–617, 2019. ",
1395
+ "bbox": [
1396
+ 171,
1397
+ 671,
1398
+ 823,
1399
+ 700
1400
+ ],
1401
+ "page_idx": 12
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "[46] Bodo Rueckauer, Iulia-Alexandra Lungu, Yuhuang Hu, Michael Pfeiffer, and Shih-Chii Liu. Conversion of continuous-valued deep networks to efficient event-driven networks for image classification. Frontiers in Neuroscience, 11:682, 2017. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 710,
1409
+ 825,
1410
+ 753
1411
+ ],
1412
+ "page_idx": 12
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "[47] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 763,
1420
+ 823,
1421
+ 806
1422
+ ],
1423
+ "page_idx": 12
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "[48] Ali Samadzadeh, Fatemeh Sadat Tabatabaei Far, Ali Javadi, Ahmad Nickabadi, and Morteza Haghir Chehreghani. Convolutional spiking neural networks for spatio-temporal feature extraction. arXiv preprint arXiv:2003.12346, 2020. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 815,
1431
+ 823,
1432
+ 859
1433
+ ],
1434
+ "page_idx": 12
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "[49] Abhronil Sengupta, Yuting Ye, Robert Wang, Chiao Liu, and Kaushik Roy. Going deeper in spiking neural networks: Vgg and residual architectures. Frontiers in Neuroscience, 13:95, 2019. ",
1439
+ "bbox": [
1440
+ 174,
1441
+ 868,
1442
+ 826,
1443
+ 911
1444
+ ],
1445
+ "page_idx": 12
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "[50] Sumit Bam Shrestha and Garrick Orchard. Slayer: Spike layer error reassignment in time. In Advances in Neural Information Processing Systems (NeurIPS), pages 1419–1428, 2018. ",
1450
+ "bbox": [
1451
+ 171,
1452
+ 90,
1453
+ 825,
1454
+ 119
1455
+ ],
1456
+ "page_idx": 13
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "[51] David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. ",
1461
+ "bbox": [
1462
+ 174,
1463
+ 127,
1464
+ 826,
1465
+ 183
1466
+ ],
1467
+ "page_idx": 13
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "[52] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 190,
1475
+ 823,
1476
+ 220
1477
+ ],
1478
+ "page_idx": 13
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "[53] Rupesh Kumar Srivastava, Klaus Greff, and Jürgen Schmidhuber. Highway networks. arXiv preprint arXiv:1505.00387, 2015. ",
1483
+ "bbox": [
1484
+ 173,
1485
+ 227,
1486
+ 823,
1487
+ 256
1488
+ ],
1489
+ "page_idx": 13
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "[54] Christoph Stöckl and Wolfgang Maass. Optimized spiking neurons can classify images with high accuracy through temporal coding with two spikes. Nature Machine Intelligence, 3(3):230–238, 2021. ",
1494
+ "bbox": [
1495
+ 174,
1496
+ 263,
1497
+ 825,
1498
+ 305
1499
+ ],
1500
+ "page_idx": 13
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "[55] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–9, 2015. ",
1505
+ "bbox": [
1506
+ 174,
1507
+ 313,
1508
+ 826,
1509
+ 369
1510
+ ],
1511
+ "page_idx": 13
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "[56] Amirhossein Tavanaei, Masoud Ghodrati, Saeed Reza Kheradpisheh, Timothée Masquelier, and Anthony Maida. Deep learning in spiking neural networks. Neural Networks, 111:47–63, 2019. ",
1516
+ "bbox": [
1517
+ 169,
1518
+ 377,
1519
+ 825,
1520
+ 406
1521
+ ],
1522
+ "page_idx": 13
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "[57] 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), pages 5998–6008, 2017. ",
1527
+ "bbox": [
1528
+ 173,
1529
+ 414,
1530
+ 825,
1531
+ 457
1532
+ ],
1533
+ "page_idx": 13
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "[58] Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in Neuroscience, 12:331, 2018. ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 463,
1541
+ 823,
1542
+ 493
1543
+ ],
1544
+ "page_idx": 13
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "[59] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5987–5995, 2017. ",
1549
+ "bbox": [
1550
+ 173,
1551
+ 500,
1552
+ 821,
1553
+ 542
1554
+ ],
1555
+ "page_idx": 13
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "[60] Fu Xing, Ye Yuan, Hong Huo, and Tao Fang. Homeostasis-based cnn-to-snn conversion of inception and residual architectures. In International Conference on Neural Information Processing, pages 173–184. Springer, 2019. ",
1560
+ "bbox": [
1561
+ 173,
1562
+ 550,
1563
+ 821,
1564
+ 593
1565
+ ],
1566
+ "page_idx": 13
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "[61] Bojian Yin, Federico Corradi, and Sander M Bohté. Effective and efficient computation with multiple-timescale spiking recurrent neural networks. In International Conference on Neuromorphic Systems, pages 1–8, 2020. ",
1571
+ "bbox": [
1572
+ 171,
1573
+ 599,
1574
+ 823,
1575
+ 642
1576
+ ],
1577
+ "page_idx": 13
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "[62] Friedemann Zenke and Tim P Vogels. The remarkable robustness of surrogate gradient learning for instilling complex function in spiking neural networks. Neural Computation, 33(4):899–925, 2021. ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 650,
1585
+ 823,
1586
+ 693
1587
+ ],
1588
+ "page_idx": 13
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "[63] Wenrui Zhang and Peng Li. Temporal spike sequence learning via backpropagation for deep spiking neural networks. In Advances in Neural Information Processing Systems (NeurIPS), pages 12022–12033, 2020. ",
1593
+ "bbox": [
1594
+ 173,
1595
+ 700,
1596
+ 823,
1597
+ 742
1598
+ ],
1599
+ "page_idx": 13
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "[64] Hanle Zheng, Yujie Wu, Lei Deng, Yifan Hu, and Guoqi Li. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 11062–11070, 2021. ",
1604
+ "bbox": [
1605
+ 173,
1606
+ 751,
1607
+ 823,
1608
+ 792
1609
+ ],
1610
+ "page_idx": 13
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "[65] Shibo Zhou, Xiaohua Li, Ying Chen, Sanjeev T. Chandrasekaran, and Arindam Sanyal. Temporal-coded deep spiking neural network with easy training and robust performance. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 11143–11151, 2021. ",
1615
+ "bbox": [
1616
+ 173,
1617
+ 800,
1618
+ 825,
1619
+ 856
1620
+ ],
1621
+ "page_idx": 13
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "[66] Romain Zimmer, Thomas Pellegrini, Srisht Fateh Singh, and Timothée Masquelier. Technical report: supervised training of convolutional spiking neural networks with pytorch. arXiv preprint arXiv:1911.10124, 2019. ",
1626
+ "bbox": [
1627
+ 171,
1628
+ 864,
1629
+ 823,
1630
+ 907
1631
+ ],
1632
+ "page_idx": 13
1633
+ }
1634
+ ]
parse/train/6OoCDvFV4m/6OoCDvFV4m_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6OoCDvFV4m/6OoCDvFV4m_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/DNl5s5BXeBn/DNl5s5BXeBn.md ADDED
@@ -0,0 +1,446 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FAIR MIXUP: FAIRNESS VIA INTERPOLATION
2
+
3
+ Ching-Yao Chuang∗ CSAIL, MIT cychuang@mit.edu
4
+
5
+ Youssef Mroueh IBM Research AI mroueh@us.ibm.com
6
+
7
+ # ABSTRACT
8
+
9
+ Training classifiers under fairness constraints such as group fairness, regularizes the disparities of predictions between the groups. Nevertheless, even though the constraints are satisfied during training, they might not generalize at evaluation time. To improve the generalizability of fair classifiers, we propose fair mixup, a new data augmentation strategy for imposing the fairness constraint. In particular, we show that fairness can be achieved by regularizing the models on paths of interpolated samples between the groups. We use mixup, a powerful data augmentation strategy to generate these interpolates. We analyze fair mixup and empirically show that it ensures a better generalization for both accuracy and fairness measurement in tabular, vision, and language benchmarks. The code is available at https://github.com/chingyaoc/fair-mixup.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Fairness has increasingly received attention in machine learning, with the aim of mitigating unjustified bias in learned models. Various statistical metrics were proposed to measure the disparities of model outputs and performance when conditioned on sensitive attributes such as gender or race. Equipped with these metrics, one can formulate constrained optimization problems to impose fairness as a constraint. Nevertheless, these constraints do not necessarily generalize since they are data-dependent, i.e they are estimated from finite samples. In particular, models that minimize the disparities on training sets do not necessarily achieve the same fairness metric on testing sets (Cotter et al., 2019). Conventionally, regularization is required to improve the generalization ability of a model (Zhang et al., 2016). On one hand, explicit regularization such as weight decay and dropout constrain the model capacity. On the other hand, implicit regularization such as data augmentation enlarge the support of the training distribution via prior knowledge (Hernandez-Garc ´ ´ıa & Konig ¨ , 2018).
14
+
15
+ In this work, we propose a data augmentation strategy for optimizing group fairness constraints such as demographic parity (DP) and equalized odds (EO) (Barocas et al., 2019). Given two sensitive groups such as male and female, instead of directly restricting the disparity, we propose to regularize the model on interpolated distributions between them. Those augmented distributions form a path connecting the two sensitive groups. Figure 1 provides an illustrative example of the idea. The path simulates how the distribution transitions from one group to another via interpolation. Ideally, if the model is invariant to the sensitive attribute, the expected prediction of the model along the path should have a smooth behavior. Therefore, we propose a regularization that favors smooth transitions along the path, which provides a stronger prior on the model class.
16
+
17
+ We adopt mixup (Zhang et al., 2018b), a powerful data augmentation strategy, to construct the interpolated samples. Owing to mixup’s simple form, the smoothness regularization we introduce has a closed form expression that can be easily optimized. One disadvantage of mixup is that the interpolated samples might not lie on the natural data manifold. Verma et al. (2019) propose Manifold Mixup, which generate the mixup samples in a latent space. Previous works (Bojanowski et al., 2018; Berthelot et al., 2018) have shown that interpolations between a pair of latent features correspond to semantically meaningful, smooth interpolation in the input space. By constructing the path in the latent space, we can better capture the semantic changes while traveling between the sensitive groups and hence result in a better fairness regularizer that we coin fair mixup. Empirically, fair mixup improves the generalizability for both DP and EO on tabular, computer- vision, and natural language benchmarks. Theoretically, we prove for a particular case that fair mixup corresponds to a Mahalanobis metric in the feature space in which we perform the classification. This metric ensures group fairness of the model, and involves the Jacobian of the feature map as we travel along the path.
18
+
19
+ ![](images/62ad9b5f7df98a9699e950e834bab96c4809883b1212474b889265c1d52dbd12.jpg)
20
+ Figure 1: (a) Visualization of the path constructed via mixup interpolations between groups that have distribution $P _ { 0 }$ and $P _ { 1 }$ , respectively. (b) Fair mixup penalizes the changes in model’s expected prediction with respect to the interpolated distributions. The regularized model (blue curve) has smaller slopes comparing to the unregularized one (orange curve) along the path from $P _ { 0 }$ to $P _ { 1 }$ , which eventually leads to smaller demographic parity $\Delta \mathbf { D P }$ .
21
+
22
+ In short, this work makes the following contributions:
23
+
24
+ • We develop fair mixup, a data augmentation strategy that improves the generalization of group fairness metrics; • We provide a theoretical analysis to deepen our understanding of the proposed method; • We evaluate our approach via experiments on tabular, vision, and language benchmarks;
25
+
26
+ # 2 RELATED WORK
27
+
28
+ Machine Learning Fairness To mitigate unjustified bias in machine learning systems, various fairness definitions have been proposed. The definitions can usually be classified into individual fairness or group fairness. A system that is individually fair will treat similar users similarly, where the similarity between individuals can be obtained via prior knowledge or metric learning (Dwork et al., 2012; Yurochkin et al., 2019). Group fairness metrics measure the statistical parity between subgroups defined by the sensitive attributes such as gender or race (Zemel et al., 2013; Louizos et al., 2015; Hardt et al., 2016). While fairness can be achieved via pre- or post-processing, optimizing fair metrics at training time can lead to the highest utility (Barocas et al., 2019). For instance, Woodworth et al. (2017) impose independence via regularizing the covariance between predictions and sensitive attributes. Zafar et al. (2017) regularize decision boundaries of convex margin-based classifier to minimize the disparaty between groups. Zhang et al. (2018a) mitigate the bias via minimizing an adversary’s ability to predict sensitive attributes from predictions.
29
+
30
+ Nevertheless, these constraints are data-dependent, even though the constraints are satisfied during training, the model may behave differently at evaluation time. Agarwal et al. (2018) analyze the generalization error of fair classifiers obtained via two-player games. To improve the generalizability, Cotter et al. (2019) inherit the two-player setting while training each player on two separated datasets. In spite of the analytical solutions and theoretical guarantees, game-theoretic approaches could be hard to scale for complex model classes. In contrast, our proposed fair mixup, is a general data augmentation strategy for optimizing the fairness constraints, which is easily compatible with any dataset modality or model class.
31
+
32
+ Data Augmentation and Regularization Data augmentation expands the training data with examples generated via prior knowledge, which can be seen as an implicit regularization (Zhang et al., 2016; Hernandez-Garc ´ ´ıa & Konig ¨ , 2018) where the prior is specified as virtual examples. Zhang et al. (2018b) proposes mixup, which generate augmented samples via convex combinations of pairs of examples. In particular, given two examples $\overline { { z } } _ { i } , z _ { j } \in \mathbb { R } ^ { d }$ where $z$ could include both input and label, mixup constructs virtual samples as $t z _ { i } + ( 1 - t ) z _ { j }$ for $t \in [ 0 , 1 ]$ . State-of-the-art results are obtained via training on mixup samples in different modalities. Verma et al. (2019) introduces manifold mixup and shows that performing mixup in a latent space further improves the generalization. While previous works focus on general learning scenarios, we show that regularizing models on mixup samples can lead to group fairness and improve generalization.
33
+
34
+ # 3 GROUP FAIRNESS
35
+
36
+ Without loss of generality, we consider the standard fair binary classification setup where we obtain inputs $\boldsymbol { X } \in \mathcal { X } \bar { \subset } \mathbb { R } ^ { d }$ , labels $Y \in \mathcal { Y } = \{ 0 , 1 \}$ , sensitive attribute $A \in \{ 0 , 1 \}$ , and prediction score $\hat { Y } \in [ 0 , 1 ]$ from model $f : \mathbb { R } ^ { d } [ 0 , 1 ]$ . We will focus on demographic parity (DP) and equalized odds (EO) in this work, while our approach also encompasses other fairness metrics (detailed discussion in section 5). DP requires the predictions $\hat { Y }$ to be independent of the sensitive attribute $A$ , that is, $P ( \hat { Y } | A = 0 ) = P ( \hat { Y } | A = 1 )$ . However, DP ignores the possible correlations between $Y$ and $A$ and could rule out the perfect predictor if $Y$ 6⊥⊥ $A$ . EO overcomes the limit of DP by conditioning on the label $Y$ . In particular, EO requires $\hat { Y }$ and $A$ to be conditionally independent with respect to $Y$ , that is, $P ( \hat { Y } | A = 1 , Y = y ) = P ( \hat { Y } | A = 0 , Y = y )$ for $y \in \{ 0 , 1 \}$ . Given the difficulty of optimizing the independency constraints, Madras et al. (2018) propose the following relaxed metrics:
37
+
38
+ $$
39
+ \Delta \mathrm { D P } ( f ) = | \mathbb { E } _ { x \sim P _ { 0 } } f ( x ) - \mathbb { E } _ { x \sim P _ { 1 } } f ( x ) | \Delta \mathrm { E O } ( f ) = \sum _ { y \in \{ 0 , 1 \} } \left| \mathbb { E } _ { x \sim P _ { 0 } ^ { y } } f ( x ) - \mathbb { E } _ { x \sim P _ { 1 } ^ { y } } f ( x ) \right|
40
+ $$
41
+
42
+ where we define $P _ { a } = P ( \cdot | A = a )$ and $P _ { a } ^ { y } = P ( \cdot | A = a , Y = y ) , a , $ $a , y \in \{ 0 , 1 \}$ . We denote the joint distribution of $X$ and $Y$ by $P$ . Similar metrics have also been used in Agarwal et al. (2018), Wei et al. (2019), and Taskesen et al. (2020). One can formulate a penalized optimization problem to regularize the fairness measurement, for instance,
43
+
44
+ $$
45
+ ( \mathrm { G a p \ R e g u l a r i z a t i o n } ) ; \quad \operatorname* { m i n } _ { f } \ \mathbb { E } _ { ( x , y ) \sim P } [ \ell ( f ( x ) , y ) ] + \lambda \Delta \mathrm { D P } ( f ) ,
46
+ $$
47
+
48
+ where $\ell$ is the classification loss. In spite of its simplicity, our experiments show that small training values of $\Delta \mathrm { D P } ( f )$ do not necessarily generalize well at evaluation time (See section 6). To improve the generalizability, we introduce a data augmentation strategy via a dynamic form of group fairness metrics.
49
+
50
+ # 4 DYNAMIC FORMULATION OF FAIRNESS: PATHS BETWEEN GROUPS
51
+
52
+ For simplicity, we will first consider $\Delta \mathbf { D P }$ as the fairness metric, and extend our development to $\Delta \mathrm { E O }$ in section 5. $\Delta \mathbf { D P }$ provides a static measurement by quantifying the expected difference at $P _ { 0 }$ and $P _ { 1 }$ . In contrast, one can consider a dynamic metric that measures the change of $\hat { Y }$ while transitioning gradually from $P _ { 0 }$ to $P _ { 1 }$ . To convert from the static to the dynamic formulations, we start with a simple Lemma that bridges two groups with an interpolator $T ( x _ { 0 } , x _ { 1 } , t )$ , which generates interpolated samples between $x _ { 0 }$ and $x _ { 1 }$ based on step $t$ .
53
+
54
+ Lemma 1. Let $T : \mathcal { X } ^ { 2 } \times [ 0 , 1 ] \to \mathcal { X }$ be a function continuously differentiable w.r.t. t such that $T ( x _ { 0 } , x _ { 1 } , 0 ) = x _ { 0 }$ and $T ( x _ { 0 } , x _ { 1 } , 1 ) = x _ { 1 }$ . For any differentiable function $f$ , we have
55
+
56
+ $$
57
+ \Delta { \bf D } { \bf P } ( f ) = \left| \int _ { 0 } ^ { 1 } \frac { d } { d t } \int f ( \underbrace { T ( x _ { 0 } , x _ { 1 } , t ) } _ { \mathrm { i n t e r p o l a t i o n } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \right| = : \left| \int _ { 0 } ^ { 1 } \frac { d } { d t } \mu _ { f } ( t ) d t \right| ,
58
+ $$
59
+
60
+ where we define $\mu _ { f } ( t ) = \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } { f ( T ( x _ { 0 } , x _ { 1 } , t ) ) }$ , the expected output of $f$ with respect to $T ( x _ { 0 } , x _ { 1 } , t )$ .
61
+
62
+ Figure 2 provides an illustrative example of the idea. Lemma 1 relaxes the binary sensitive attribute into a continuous variable $t \in [ 0 , 1 ]$ , where $\mu _ { f }$ captures the behavior of $f$ while traveling from group 0 to group 1 along the path constructed with the interpolator $T$ . In particular, given two examples $x _ { 0 }$ and $x _ { 1 }$ drawn from each group, $T$ generates interpolated samples that change smoothly with respect to $t$ .
63
+
64
+ For instance, given two racial backgrounds in the dataset, $\mu _ { f }$ simulates how the prediction of $f$ changes while the data of one group smoothly transforms to another. We can then detect whether there are “unfair” changes in $\mu _ { f }$ along the path. The dynamic formulation allows us to measure the sensitivity of $f$ with respect to a relaxed continuous sensitive attribute $t$ via the derivative $\begin{array} { r } { \frac { d } { d t } \mu _ { f } ( t ) } \end{array}$ . Ideally, if $f$ is invariant to the sensitive attribute, $\begin{array} { r } { \frac { d } { d t } \mu _ { f } ( t ) } \end{array}$ should be small along the path from $t = 0$ to 1. Importantly, a small $\Delta \mathbf { D P }$ does not imply $\begin{array} { r } { | \frac { d } { d t } \mu _ { f } ( t ) | } \end{array}$ is small for $t \in [ 0 , 1 ]$ since the derivative could fluctuate as it can be seen in Figure 2.
65
+
66
+ ![](images/07eb0534a896a5eb81656f66e6cd0b9ea2531281232e9ba51b637dd628ff676a.jpg)
67
+ Figure 2: The expected output $\mu _ { f } ( t )$ gradually changes as $t \to 1$ . Even when $\Delta \mathbf { D P }$ is small, $\begin{array} { r } { | \frac { d } { d t } \mu _ { f } ( t ) | } \end{array}$ could still be large along the path.
68
+
69
+ # 4.1 SMOOTHNESS REGULARIZATION
70
+
71
+ To make $f$ invariant to $t$ , we propose to regularize the derivative along the path:
72
+
73
+ $$
74
+ \mathrm { ( S m o o t h n e s s ~ R e g u l a r i z e r ) } ; \quad R _ { T } ( f ) = \int _ { 0 } ^ { 1 } \left| \frac { d } { d t } \mu _ { f } ( t ) \right| d t .
75
+ $$
76
+
77
+ Interestingly, $R _ { T } ( f )$ is the arc length of the curve defined by $\mu _ { f } ( t )$ for $t \in [ 0 , 1 ]$ . Now, we can interpret the problem from a geometric point of view. The interpolator $T$ defines a curve $\mu _ { f } ( t ) :$ $[ 0 , 1 ] \to \mathbb { R } .$ , and $\Delta \mathrm { D P } ( f ) = | \bar { \mu _ { f } } ( 0 ) - \bar { \mu _ { f } ( 1 ) } |$ is the Euclidean distance between points $t = 0$ and 1. $\Delta \mathrm { D P } ( f )$ fails to capture the behavior of $f$ while transitioning from $P _ { 0 }$ to $P _ { 1 }$ . In contrast, regularizing the arc length $R _ { T } ( f )$ favors a smooth transition from $t = 0$ to 1, which constrains the fluctuation of the function as the sensitive attributes change. By Jensen’s inequality, $\Delta \mathrm { D P } ( f ) \le R _ { T } ( f )$ for any $f$ , which further justifies the validity of regularizing $\Delta \mathrm { D P } ( f )$ with $R _ { T } ( f )$ .
78
+
79
+ # 5 FAIR MIXUP: REGULARIZING MIXUP PATHS
80
+
81
+ It remains to determine the interpolator $T$ . A good interpolater shall (1) generate meaningful interpolations, and (2) the derivative of $\mu _ { f } ( . )$ with respect to $t$ should be easy to compute. In this section, we show that mixup (Zhang et al., 2018b), a powerful data augmentation strategy, is itself a valid interpolator that satisfies both criterions.
82
+
83
+ Input Mixup We first adopt the standard mixup (Zhang et al., 2018b) by setting the interpolator as the linear interpolation in input space: $T ( x _ { 0 } , \dot { x } _ { 1 } , t ) \stackrel { - } { = } t x _ { 0 } + ( 1 - t ) x _ { 1 }$ . It can be verified that $T _ { \mathrm { m i x u p } }$ satisfies the interpolator criterion defined in Lemma 1. The resulting smoothness regularizer has the following closed form expression1:
84
+
85
+ $$
86
+ R _ { \mathrm { m i x u p } } ^ { \mathrm { { D P } } } ( f ) = \int _ { 0 } ^ { 1 } \left| \int \left. \nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \right| d t .
87
+ $$
88
+
89
+ The regularizer can be easily optimized by computing the Jacobian of $f$ on mixup samples. Jacobian regularization is a common approach to regularize neural networks (Drucker $\&$ LeCun, 1992). For instance, regularizing the norm of the Jacobian can improve adversarial robustness (Chan et al., 2019; Hoffman et al., 2019). Here, we regularize the expected inner product between the Jacobian on mixup samples and the difference $x _ { 0 } - x _ { 1 }$ .
90
+
91
+ Manifold Mixup One disadvantage of input mixup is that the curve is defined with mixup samples, which might not lie on the natural data manifold. Verma et al. (2019) propose Manifold Mixup, which generate the mixup samples in the latent space $\mathcal { Z }$ . In particular, manifold mixup assumes a compositional hypothesis $f \circ g$ where $g : \mathcal { X } \mathcal { Z }$ is the feature encoder and the predictor $f : \mathcal { Z } \to \mathcal { V }$ takes the encoded feature to perform prediction. Similarly, we can establish the equivalence between
92
+
93
+ $\Delta \mathbf { D P }$ and manifold mixup:
94
+
95
+ $$
96
+ \Delta \mathrm { D P } ( f \circ g ) = \left. \int _ { 0 } ^ { 1 } \frac { d } { d t } \int f ( \underbrace { t g ( x _ { 0 } ) + ( 1 - t ) g ( x _ { 1 } ) } _ { \mathrm { M a n i f o l d M i x u p } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \right. ,
97
+ $$
98
+
99
+ which results in the following smoothness regularizer:
100
+
101
+ $$
102
+ R _ { \mathrm { m - m i x u p } } ^ { \mathrm { D P } } ( f \circ g ) = \int _ { 0 } ^ { 1 } \left| \int \left. \nabla _ { z } f ( t g ( x _ { 0 } ) + ( 1 - t ) g ( x _ { 1 } ) ) , g ( x _ { 0 } ) - g ( x _ { 1 } ) \right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \right| d t .
103
+ $$
104
+
105
+ Previous works (Bojanowski et al., 2018; Berthelot et al., 2018) have showed that interpolations between a pair of latent features correspond to semantically meaningful, smooth interpolations in input space. By constructing a curve in the latent space, we can better capture the semantic changes while traveling from $P _ { 0 }$ to $P _ { 1 }$ .
106
+
107
+ Extensions and Implementation The derivations presented so far, can be easily extended to Equalized Odds (EO). In particular, Lemma 1 can be extended to $\Delta \mathrm { E O }$ by interpolating $P _ { 0 } ^ { y }$ and $P _ { 1 } ^ { \bar { y } }$ for $y \in \{ 0 , 1 \}$ :
108
+
109
+ $$
110
+ \Delta \mathrm { E O } ( f ) = \sum _ { y \in \{ 0 , 1 \} } \left| \int _ { 0 } ^ { 1 } \frac { d } { d t } \int f ( T ( x _ { 0 } , x _ { 1 } , t ) ) d P _ { 0 } ^ { y } ( x _ { 0 } ) d P _ { 1 } ^ { y } ( x _ { 1 } ) d t \right| .
111
+ $$
112
+
113
+ The corresponding mixup regularizers can be obtained similarly by substituting $P _ { 0 }$ and $P _ { 1 }$ in $R _ { \mathrm { m i x u p } }$ and $R _ { \mathrm { m - m i x u p } }$ with $\dot { \Gamma } _ { 0 } ^ { y }$ and $P _ { 1 } ^ { \bar { y } }$ :
114
+
115
+ $$
116
+ R _ { \mathrm { m i x u p } } ^ { \mathrm { E O } } ( f ) = \sum _ { y \in \{ 0 , 1 \} } \int _ { 0 } ^ { 1 } \Big | \int \langle \nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \rangle d P _ { 0 } ^ { y } ( x _ { 0 } ) d P _ { 1 } ^ { y } ( x _ { 1 } ) \Big | d t .
117
+ $$
118
+
119
+ Our formulation also encompasses other fairness metrics that quantify the expected difference between groups. This includes group fairness metrics such as accuracy equality which compares the mistreatment rate between groups (Berk et al., 2018). Similar to equation (1), we formulate a penalized optimization problem to enforce fairness via fair mixup:
120
+
121
+ $$
122
+ ( \mathrm { F a i r } \mathrm { M i x u p } ) { \boldsymbol { : } } \quad \operatorname* { m i n } _ { f } \mathbb { E } _ { ( { \boldsymbol { x } } , { \boldsymbol { y } } ) \sim P } [ \ell ( f ( { \boldsymbol { x } } ) , { \boldsymbol { y } } ) ] + \lambda R _ { \mathrm { m i x u p } } ( f ) .
123
+ $$
124
+
125
+ Implementation-wise, we follow Zhang et al. (2018b) where only one $t$ is sampled per batch to perform mixup. This strategy works well in practice and reduce the computational requirements.
126
+
127
+ # 5.1 THEORETICAL ANALYSIS
128
+
129
+ To gain deeper insight, we analyze the optimal solution of fair mixup in a simple case. In particular, we consider the classification loss $\ell ( f ( \bar { x ) } , y ) = - y f ( x )$ and the following hypothesis class:
130
+
131
+ $$
132
+ \mathcal { H } = \{ f | f ( x ) = \left. v , \Phi ( x ) \right. , v \in \mathbb { R } ^ { m } , \Phi : \mathcal { X } \to \mathbb { R } ^ { m } \} .
133
+ $$
134
+
135
+ Define $m _ { \pm } = \mathbb { E } _ { x \sim \mathbb { P } _ { \pm } } \Phi ( x )$ , the label conditional mean embeddings, and $m _ { 0 } = \mathbb { E } _ { x \sim \mathbb { P } _ { 0 } } \Phi ( x )$ and $m _ { 1 } = \mathbb { E } _ { x \sim \mathbb { P } _ { 1 } } \Phi ( x )$ , the group mean embeddings. We then define the expected difference $\delta _ { \pm } = $ $m _ { + } - m _ { - }$ and $\delta _ { 0 , 1 } = m _ { 0 } - m _ { 1 }$ . To derive an interpretable solution, we will consider the L2 variants of the penalized optimization problem. The following proposition gives the analytical solution when we regularize the model with $\Delta \mathbf { D P }$ .
136
+
137
+ Proposition 2. (Gap Regularization) Consider the following minimization problem
138
+
139
+ $$
140
+ \operatorname* { m i n } _ { f \in \mathcal { H } } \mathbb { E } _ { ( x , y ) \sim P } [ \ell ( f ( x ) , y ) ] + \frac { \lambda _ { 1 } } { 2 } \Delta \mathrm { D } \mathbf { P } ( f ) ^ { 2 } + \frac { \lambda _ { 2 } } { 2 } | | f | | _ { \mathcal { H } } ^ { 2 } .
141
+ $$
142
+
143
+ For a fixed embedding $\Phi$ , the optimal solution $f ^ { * }$ corresponds to $v ^ { * }$ given by the following closed form:
144
+
145
+ $$
146
+ v ^ { \ast } = \frac { 1 } { \lambda _ { 2 } } \left( \delta _ { \pm } - p r o j _ { \delta _ { 0 , 1 } } ^ { \frac { \lambda _ { 2 } } { \lambda _ { 1 } } } ( \delta _ { \pm } ) \right) ,
147
+ $$
148
+
149
+ where proj is the soft projection defined as p $\begin{array} { r } { r o j _ { u } ^ { \beta } ( x ) = \frac { u \otimes u } { | | u | | ^ { 2 } + \beta } x } \end{array}$
150
+
151
+ The solution $v ^ { * }$ can be interpreted as the projection of the label discriminating direction $\delta _ { \pm }$ on the subspace that is orthogonal to the group discriminating direction $\delta _ { 0 , 1 }$ . By projecting to this orthogonal subspace, we can prevent the model from using group specific directions, that are unfair directions when performing prediction. Interestingly, the projection trick has been used in Zhang et al. (2018a), where they subtract the gradient of the model parameters in each update step with its projection on unfair directions. We then prove the optimal solution of fair mixup with the same setup as above. Similarly, we introduce an L2 variant of the fair mixup regularizer defined as follows:
152
+
153
+ $$
154
+ R _ { \mathrm { m i x u p } } ^ { \mathrm { D P - 2 } } ( f ) = \int _ { 0 } ^ { 1 } \bigg | \int \left. \nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \bigg | ^ { 2 } d t ,
155
+ $$
156
+
157
+ where we consider the squared absolute value of the derivative within the integral, in order to get a closed form solution.
158
+
159
+ Proposition 3. (Fair Mixup) Consider the following minimization problem
160
+
161
+ $$
162
+ \operatorname* { m i n } _ { f \in \mathcal { H } } \mathbb { E } _ { ( x , y ) \sim P } [ \ell ( f ( x ) , y ) ] + \frac { \lambda _ { 1 } } { 2 } R _ { \mathrm { m i x u p } } ^ { \mathrm { D P - 2 } } ( f ) + \frac { \lambda _ { 2 } } { 2 } | | f | | _ { \mathcal { H } } ^ { 2 } .
163
+ $$
164
+
165
+ Let $m _ { t } = \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } [ \Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ]$ be the $t$ dependent mean embedding, and $\dot { m } _ { t }$ its derivative with respect to $t$ . Let $D$ be a positive-semi definite matrix defined as follows: $D =$ $\begin{array} { r } { \int _ { 0 } ^ { 1 } { \dot { m _ { t } } } \otimes { \dot { m } } _ { t } d t } \end{array}$ . Given an embedding $\Phi$ , the optimal solution $v ^ { * }$ has the following form:
166
+
167
+ $$
168
+ v ^ { * } = ( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \delta _ { \pm } .
169
+ $$
170
+
171
+ Hence the optimal fair mixup classifier can be finally written as :
172
+
173
+ $$
174
+ f ( x ) = \left. \delta _ { \pm } , ( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \Phi ( x ) \right. ,
175
+ $$
176
+
177
+ which means that fair mixup changes the geometry of the decision boundary via a new dot product in the feature space that ensures group fairness, instead of simply projecting on the subspace orthogonal to a single direction as in gap regularization. This dot product leads to a Mahalanobis distance in the feature space that is defined via the covariance of time derivatives of mean embeddings of intermediate densities between the groups. To understand this better, given two points $x _ { 0 }$ in group 0 and $x _ { 1 }$ in group 1, by the mean value theorem, there exists $x _ { c }$ such that:
178
+
179
+ $$
180
+ f ( x _ { 0 } ) = f ( x _ { 1 } ) + \langle \nabla f ( x _ { c } ) , x _ { 0 } - x _ { 1 } \rangle = f ( x _ { 1 } ) + \langle \delta _ { \pm } , ( \lambda _ { 1 } D + \lambda _ { 2 } I ) ^ { - 1 } J \Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } ) \rangle
181
+ $$
182
+
183
+ Note that $D$ provides the correct average conditioning for $J \Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } )$ , this can be seen from the expression of $\dot { m } _ { t }$ $\mathrm { D }$ is a covariance of $J \Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } ) )$ . This conditioned Jacobian ensures that the function does not fluctuate a lot between the groups, which matches our motivation.
184
+
185
+ # 6 EXPERIMENTS
186
+
187
+ We now examine fair mixup with binary classification tasks on tabular benchmarks (Adult), visual recognition (CelebA), and language dataset (Toxicity). For evaluation, we show the trade-offs between average precision (AP) and fairness metrics (∆DP/∆EO) by varying the hyper-parameter $\lambda$ in the objective. We evaluate both AP and fairness metrics on a testing set to assess the generalizability of learned models. For a fair comparison, we will compare fair mixup with baselines that optimize the fairness constraint at training time. In particular, we compare our method with (a) empirical risk minimization (ERM) that trains the model without regularization, (b) gap regularization, which directly regularizes the model as given in Equation (1), and (c) adversarial debiasing (Zhang et al., 2018a) introduced in section 2. Details about the baselines and experimental setups for each dataset can be found in appendix.
188
+
189
+ # 6.1 ADULT
190
+
191
+ UCI Adult dataset (Dua & Graff, 2017) contains information about over 40,000 individuals from the 1994 US Census. The task is to predict whether the income of a person is greater than $\$ 50 k$ given attributes about the person. We consider gender as the sensitive attribute to measure the fairness of the algorithms. The models are two-layer ReLU networks with hidden size 200. We only evaluate input mixup for Adult dataset as the network is not deep enough to produce meaningful latent representations. We retrain each model 10 times and report the mean accuracy and fairness measurement. In each trial, the dataset is randomly randomly split into a training, validation, and testing set with partition $6 0 \%$ , $2 0 \%$ , and $2 0 \%$ , respectively. The models are then selected via the performance on the validation set.
192
+
193
+ ![](images/65119c01cf273da95a9c7b11d1c847be39533ab6522f39237b1ebb31640cc3e3.jpg)
194
+ Figure 3: Adult Dataset. (a,b) The tradeoff between AP and $\Delta \mathrm { D P } / \Delta \mathrm { E O }$ . (c) Visualization of the mixup path for models that regularize $\Delta \mathbf { D P }$ with different algorithms. We plot the calibrated curve $\mu _ { f } ^ { \prime } ( t ) : = \mu _ { f } ( t ) - \mu _ { f } ( 0 )$ for a better visualization. In this case, $\mu _ { f } ^ { \prime } ( 0 ) = 0$ and $| \mu _ { f } ^ { \prime } ( 1 ) | = \Delta \mathrm { D P }$ for all the calibrated curves $\mu _ { f } ^ { \prime }$ . Therefore, we can compare the $\Delta \mathbf { D P }$ of each method with the absolute value of the last points $\dot { \boldsymbol { t } } = 1$ ). The flatness of the path is highly correlated with the $\Delta \mathbf { D P }$ .
195
+
196
+ ![](images/51df03dd15d33607d8544c1de791d40c1c14596e4980ebf195ec0f7dab5ce072.jpg)
197
+ Figure 4: CelebA Dataset. The tradeoff between AP and $\Delta \mathrm { D P } / \Delta \mathrm { E O }$ are shown in the first/second row for each task. Manifold mixup consistently outperforms the baseline across tasks.
198
+
199
+ Figures 3 (a) shows the tradeoff between AP and $\Delta \mathbf { D P }$ . We can see that fair mixup consistently achieves a better tradeoff compared to the baselines. We then show the tradeoff between AP and $\Delta \mathrm { E O }$ in figure 3 (b). For this metric, fair mixup performs slightly better than directly regularizing the EO gap. Interestingly, fair mixup even achieves a better AP compared to ERM, indicating that mixup regularization not only improves the generalization of fairness constraints but also overall accuracy. To understand the effect of fair mixup, we visualize the expected output $\mu _ { f }$ along the path for each method (i.e $\mu _ { f }$ as function of $t$ ). For a fair comparison, we select the models that have similar AP for the visualization. As we can see in figure 3 (c), the flatness of the path is highly correlated to $\Delta \mathbf { D P }$ . Traininig without any regularization leads to the largest derivative along the path, which eventually leads to large $\Delta \mathbf { D P }$ . All the fairness-aware algorithms regularize the slope to some extent, nevertheless, fair mixup achieves the shortest arc length and hence leads to the smallest $\Delta \mathbf { D P }$ .
200
+
201
+ ![](images/4a08b04e57db355f94da875c45227322763730847d175188284e9fc94c21a7a0.jpg)
202
+ Figure 5: Visualization of calibrated paths on attractive classification task for $\Delta \mathbf { D P }$ regularized models. The flatness of both input and latent path plays an important role in regularizing $\Delta \mathbf { D P }$ .
203
+
204
+ # 6.2 CELEBA
205
+
206
+ Next, we show that fair mixup generalizes well to high-dimensional tasks with the CelebA face attributes dataset (Liu et al.). CelebA contains over 200,000 images of celebrity faces, where each image is associated with 40 human-labeled binary attributes including gender. Among the attributes, we select attractive, smile, and wavy hair and use them to form three binary classification tasks while treating gender as the sensitive attribute2. The reason we choose these three attributes is that there exists in all these tasks, a sensitive group that has more positive samples than the other one. For each task, we train a ResNet-18 (He et al., 2016) along with two hidden layers for final prediction. To implement manifold fair mixup, we interpolate the representations before the average pooling layer.
207
+
208
+ The first row in figure 4 shows the tradeoff between AP and $\Delta \mathbf { D P }$ for each task. Again, fair mixup consistently outperforms the baselines by a large margin. We also observe that manifold mixup further boosts the performance for all the tasks. The tradeoffs between AP and $\Delta \mathrm { E O }$ are shown in the second row of figure 4. Again, both input mixup and manifold mixup yields well generalizing classifiers. To gain further insights, we plot the path in both input space and latent space in figure 5 (a) and (b) for the “attractive” attribute classification task. Fair mixup leads to a smoother path in both cases. Without mixup augmentation, gap regularization and adversarial debiasing present similar paths and both have larger $\Delta \mathbf { D P }$ . We also observe that the expected output $\mu _ { f }$ in the latent path is almost linear with respect to the continuous sensitive attribute $t$ , manifold mixup being the curve with the smallest slope and hence smallest $\Delta \mathbf { D P }$ .
209
+
210
+ # 6.3 TOXICITY CLASSIFICATION
211
+
212
+ Lastly, we consider comment toxicity classification with Jigsaw toxic comment dataset (Jigsaw, 2018). The data was initially released by Civil Comments platform, which was then extended to a public Kaggle challenge. The task is to predict whether a comment is toxic or not while being fair across groups. A subset of comments have been labeled with identity attributes, including gender and race. It has been shown that some of the identities (e.g., black) are correlated with the toxicity label. In this work, we consider race as the sensitive attribute and select the subset of comments that contain identities black or asian, as these two groups have the largest gap in terms of probability of being associated with a toxic comment. We use pretrained BERT embeddings (Devlin et al., 2019) to encode each comment into a vector of size 768. A three layer ReLU network is then trained to perform the prediction with the encoded feature. We directly adopt manifold mixup since input mixup is equivalent to manifold mixup by simply setting the encoder $g$ to BERT. Similarly, we retrain each model 10 times using randomly split training, validation, and testing sets, and report mean accuracy and fairness measurement.
213
+
214
+ Figures 6 (a) and (b) show the tradeoff between AP and $\Delta \mathrm { D P } / \Delta \mathrm { E O }$ , respectively. Again, fair mixup consistently achieves a better tradeoff for both $\Delta \mathbf { D P }$ and $\Delta \mathrm { E O }$ . We then show the visualization of calibrated paths for $\Delta \mathbf { D P }$ -regularized models in Figure 6 (c). We can see that even with the powerful BERT embedding, all the baselines present fluctuated paths with similar patterns. In contrast, fair mixup introduces a nearly linear curve with a small slope, which eventually leads to the smallest $\Delta \mathbf { D P }$ .
215
+
216
+ ![](images/e2af1e74704552b1d41bd209c55ee361e444a6f4773390df8b1bfebb5ea6f099.jpg)
217
+ Figure 6: Toxic Classification (a,b) The tradeoff between AP and $\Delta \mathrm { D P } / \Delta \mathrm { E O }$ . (c) Visualization of the calibrated paths for models that regularize $\Delta \mathbf { D P }$ with different algorithms. Interestingly, fair mixup presents a nearly linear curve with small slope, while the baselines introduce “inverted-U” shaped curves.
218
+
219
+ # 7 CONCLUSION
220
+
221
+ In this work, we propose fair mixup, a data augmentation strategy to optimize fairness constraints. By bridging sensitive groups with interpolated samples, fair mixup consistently improves the generalizability of fairness constraints across benchmarks with different modalities. Interesting future directions include (1) generating interpolated samples that lie on the natural data manifold with generative models or via dynamic optimal transport paths between the groups (Benamou & Brenier, 2000), (2) extending fair mixup to other group fairness metrics such as accuracy equality, and (3) estimating the generalization of fairness constraints (Chuang et al., 2020).
222
+
223
+ # REFERENCES
224
+
225
+ Alekh Agarwal, Alina Beygelzimer, Miroslav Dudik, John Langford, and Hanna Wallach. A reductions approach to fair classification. In International Conference on Machine Learning, pp. 60–69, 2018.
226
+
227
+ Solon Barocas, Moritz Hardt, and Arvind Narayanan. Fairness and Machine Learning. fairmlbook.org, 2019. http://www.fairmlbook.org.
228
+
229
+ Jean-David Benamou and Yann Brenier. A computational fluid mechanics solution to the MongeKantorovich mass transfer problem. Numerische Mathematik, 2000.
230
+
231
+ Richard Berk, Hoda Heidari, Shahin Jabbari, Michael Kearns, and Aaron Roth. Fairness in criminal justice risk assessments: The state of the art. Sociological Methods & Research, pp. 0049124118782533, 2018.
232
+
233
+ David Berthelot, Colin Raffel, Aurko Roy, and Ian Goodfellow. Understanding and improving interpolation in autoencoders via an adversarial regularizer. In International Conference on Learning Representations, 2018.
234
+
235
+ Piotr Bojanowski, Armand Joulin, David Lopez-Pas, and Arthur Szlam. Optimizing the latent space of generative networks. In International Conference on Machine Learning, pp. 600–609, 2018.
236
+
237
+ Alvin Chan, Yi Tay, Yew Soon Ong, and Jie Fu. Jacobian adversarially regularized networks for robustness. In International Conference on Learning Representations, 2019.
238
+
239
+ Ching-Yao Chuang, Antonio Torralba, and Stefanie Jegelka. Estimating generalization under distribution shifts via domain-invariant representations. International Conference on Machine Learning, 2020.
240
+
241
+ Andrew Cotter, Maya Gupta, Heinrich Jiang, Nathan Srebro, Karthik Sridharan, Serena Wang, Blake Woodworth, and Seungil You. Training well-generalizing classifiers for fairness metrics and other data-dependent constraints. In International Conference on Machine Learning, pp. 1397–1405, 2019.
242
+
243
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT (1), 2019.
244
+
245
+ Harris Drucker and Yann LeCun. Improving generalization performance using double backpropagation. IEEE Transactions on Neural Networks, 1992.
246
+
247
+ Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml.
248
+
249
+ Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214–226, 2012.
250
+
251
+ Moritz Hardt, Eric Price, and Nati Srebro. Equality of opportunity in supervised learning. In Advances in neural information processing systems, pp. 3315–3323, 2016.
252
+
253
+ 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.
254
+
255
+ Alex Hernandez-Garc ´ ´ıa and Peter Konig. Data augmentation instead of explicit regularization. ¨ arXiv preprint arXiv:1806.03852, 2018.
256
+
257
+ Judy Hoffman, Daniel A Roberts, and Sho Yaida. Robust learning with jacobian regularization. arXiv preprint arXiv:1908.02729, 2019.
258
+
259
+ Jigsaw. Jigsaw unintended bias in toxicity classification, 2018. URL https://www.kaggle. com/c/jigsaw-unintended-bias-in-toxicity-classification.
260
+
261
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
262
+
263
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Large-scale celebfaces attributes (celeba) dataset.
264
+
265
+ Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015.
266
+
267
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. International Conference on Machine Learning, 2018.
268
+
269
+ Bahar Taskesen, Viet Anh Nguyen, Daniel Kuhn, and Jose Blanchet. A distributionally robust approach to fair classification. arXiv preprint arXiv:2007.09530, 2020.
270
+
271
+ Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In International Conference on Machine Learning, pp. 6438–6447. PMLR, 2019.
272
+
273
+ Dennis Wei, Karthikeyan Natesan Ramamurthy, and Flavio du Pin Calmon. Optimized score transformation for fair classification. arXiv preprint arXiv:1906.00066, 2019.
274
+
275
+ Blake Woodworth, Suriya Gunasekar, Mesrob I Ohannessian, and Nathan Srebro. Learning nondiscriminatory predictors. In Conference on Learning Theory, pp. 1920–1953, 2017.
276
+
277
+ Mikhail Yurochkin, Amanda Bower, and Yuekai Sun. Training individually fair ml models with sensitive subspace robustness. In International Conference on Learning Representations, 2019.
278
+
279
+ Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez Rogriguez, and Krishna P Gummadi. Fairness constraints: Mechanisms for fair classification. In Artificial Intelligence and Statistics, pp. 962–970. PMLR, 2017.
280
+
281
+ Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International Conference on Machine Learning, pp. 325–333, 2013.
282
+
283
+ Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating unwanted biases with adversarial learning. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pp. 335–340, 2018a.
284
+
285
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
286
+
287
+ Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018b.
288
+
289
+ # A PROOFS
290
+
291
+ A.1 PROOF OF LEMMA 1
292
+
293
+ Lemma 1. Let $T : \mathcal { X } ^ { 2 } \times [ 0 , 1 ] \to \mathcal { X }$ be a function continuously differentiable w.r.t. t such that $T ( x _ { 0 } , x _ { 1 } , 0 ) = x _ { 0 }$ and $T ( x _ { 0 } , x _ { 1 } , 1 ) = x _ { 1 }$ . For any differentiable function $f$ , we have
294
+
295
+ $$
296
+ \Delta \mathrm { D P } ( f ) = \left| \int _ { 0 } ^ { 1 } \frac { d } { d t } \int f ( \underbrace { T ( x _ { 0 } , x _ { 1 } , t ) } _ { \mathrm { i n t e r p o l a t i o n } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \right| .
297
+ $$
298
+
299
+ Proof. The result follows from the fundamental theorem of calculus. In particular, given an interpolator $T$ , we first rewrite the $\Delta \mathbf { D P }$ with the $T$ :
300
+
301
+ $$
302
+ \begin{array} { r l } & { \Delta \mathrm { D P } ( f ) = | \mathbb { E } _ { x \sim P _ { 0 } } f ( x ) - \mathbb { E } _ { x \sim P _ { 1 } } f ( x ) | } \\ & { \qquad = | \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( x _ { 0 } ) - f ( x _ { 1 } ) | } \\ & { \qquad = | \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 0 ) ) - \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 1 ) ) | . } \end{array}
303
+ $$
304
+
305
+ Not that $\mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , t ) )$ is a real-valued continuous function on $t \in [ 0 , 1 ]$ . Therefore, we have the following equivalence via the fundamental theorem of calculus:
306
+
307
+ $$
308
+ \begin{array} { l } { \displaystyle \Delta \mathrm { D P } ( f ) = \left| \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 0 ) ) - \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 1 ) ) \right| . } \\ { \displaystyle \qquad = \left| \int _ { 0 } ^ { 1 } \frac { d } { d t } \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , t ) ) \right| . } \end{array}
309
+ $$
310
+
311
+ # A.2 PROOF OF PROPOSITION 2
312
+
313
+ Proposition 2. (Gap Regularization) Consider the following minimization problem
314
+
315
+ $$
316
+ \operatorname* { m i n } _ { f \in \mathcal { H } } \mathbb { E } _ { ( x , y ) \sim P } [ \ell ( f ( x ) , y ) ] + \frac { \lambda _ { 1 } } { 2 } \Delta \mathrm { D } \mathbf { P } ( f ) ^ { 2 } + \frac { \lambda _ { 2 } } { 2 } | | f | | _ { \mathcal { H } } ^ { 2 } .
317
+ $$
318
+
319
+ For a fixed embedding $\Phi$ , the optimal solution $f ^ { * }$ corresponds to $v ^ { * }$ given by following closed form:
320
+
321
+ $$
322
+ v ^ { \ast } = \frac { 1 } { \lambda _ { 2 } } \left( \delta _ { \pm } - p r o j _ { \delta _ { 0 , 1 } } ^ { \frac { \lambda _ { 2 } } { \lambda _ { 1 } } } ( \delta _ { \pm } ) \right) ,
323
+ $$
324
+
325
+ where proj is the soft projection defined as pro $\begin{array} { r } { j _ { u } ^ { \beta } ( x ) = \frac { u \otimes u } { | | u | | ^ { 2 } + \beta } x } \end{array}$
326
+
327
+ Proof. The problem above can be written as follows:
328
+
329
+ $$
330
+ \operatorname* { m i n } _ { v \in \mathbb { R } ^ { m } } \mathcal { L } ( v ) : = - ( \langle v , \delta _ { \pm } \rangle ) + \frac { \lambda _ { 1 } } { 2 } | \langle v , \delta _ { 0 , 1 } \rangle | ^ { 2 } + \frac { \lambda _ { 2 } } { 2 } | | v | | _ { 2 } ^ { 2 }
331
+ $$
332
+
333
+ Setting first order condition to zero
334
+
335
+ $$
336
+ \begin{array} { r } { \nabla _ { v } \mathcal { L } ( v ) = - \delta _ { \pm } + \lambda _ { 1 } \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } v + \lambda _ { 2 } v = 0 , } \end{array}
337
+ $$
338
+
339
+ we obtain
340
+
341
+ $$
342
+ ( \lambda _ { 1 } \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } + \lambda _ { 2 } I _ { m } ) v ^ { \ast } = \delta _ { \pm } .
343
+ $$
344
+
345
+ By inverting and applying the Sherman-Morrison Lemma, we have
346
+
347
+ $$
348
+ \begin{array} { l l l } { { v ^ { * } } } & { { = } } & { { \displaystyle ( \lambda _ { 1 } \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \delta _ { \pm } } } \\ { { } } & { { = } } & { { \displaystyle \lambda _ { 1 } ^ { - 1 } \left( \frac { \lambda _ { 2 } } { \lambda _ { 1 } } I _ { m } + \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } \right) ^ { - 1 } \delta _ { \pm } } } \\ { { } } & { { = } } & { { \displaystyle \lambda _ { 1 } ^ { - 1 } \left( I _ { m } - \frac { ( \lambda _ { 1 } ) ^ { 2 } \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } } { 1 + | | \delta _ { 0 , 1 } | | ^ { 2 } \frac { \lambda _ { 1 } } { \lambda _ { 2 } } } \right) \delta _ { \pm } } } \\ { { } } & { { = } } & { { \displaystyle \frac { 1 } { \lambda _ { 2 } } \left( I _ { m } - \frac { \delta _ { 0 , 1 } \otimes \delta _ { 0 , 1 } } { \lambda _ { 2 } } \right) \delta _ { \pm } . } } \end{array}
349
+ $$
350
+
351
+ Note the soft projection on a vector $u$ is defined as follows:
352
+
353
+ $$
354
+ p r o j _ { u } ^ { \beta } ( x ) = \frac { u \otimes u } { | | u | | ^ { 2 } + \beta } x .
355
+ $$
356
+
357
+ It follows that
358
+
359
+ $$
360
+ v ^ { \ast } = \frac { 1 } { \lambda _ { 2 } } \left( \delta _ { \pm } - p r o j _ { \delta _ { 0 , 1 } } ^ { \frac { \lambda _ { 2 } } { \lambda _ { 1 } } } ( \delta _ { \pm } ) \right) ,
361
+ $$
362
+
363
+ which can be interpreted as the projection of the label discriminating direction $\delta _ { \pm }$ on the subspace that is orthogonal to the group discriminating direction $\delta _ { 0 , 1 }$ . □
364
+
365
+ # A.3 PROOF OF PROPOSITION 3
366
+
367
+ Proposition 3. (Fair Mixup) Consider the following minimization problem
368
+
369
+ $$
370
+ \operatorname* { m i n } _ { f \in \mathcal { H } } \mathbb { E } _ { ( x , y ) \sim P } [ \ell ( f ( x ) , y ) ] + \frac { \lambda _ { 1 } } { 2 } R _ { \mathrm { m i x u p } } ^ { \mathrm { D P - 2 } } ( f ) + \frac { \lambda _ { 2 } } { 2 } | | f | | _ { \mathcal { H } } ^ { 2 } .
371
+ $$
372
+
373
+ Define $m _ { t } = \mathbb { E } _ { x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 } } [ \Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ]$ be the $t$ dependent mean embedding, and $\dot { m } _ { t }$ its derivative with respect to $t$ . Let $D$ be a positive-semi definite matrix defined as follows: $D =$ $\begin{array} { r } { \int _ { 0 } ^ { 1 } { \dot { m _ { t } } } \otimes { \dot { m } } _ { t } d t } \end{array}$ . Given an embedding $\Phi$ , the optimal solution $v ^ { * }$ has the following form:
374
+
375
+ $$
376
+ v ^ { * } = ( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \delta _ { \pm } .
377
+ $$
378
+
379
+ Proof. For $t \in [ 0 , 1 ]$ , we note by $\rho _ { t }$ the distribution of $T ( x _ { 0 } , x _ { 1 } , t )$ , for $x _ { 0 } \sim P _ { 0 } , x _ { 1 } \sim P _ { 1 }$ , and note $m _ { t } = \mathbb { E } _ { x \sim \rho _ { t } } \Phi ( x )$ , and $\dot { m } _ { t }$ its time derivative. We consider the $\ell _ { 2 }$ variant of $R _ { T } ( f )$ in the analysis:
380
+
381
+ $$
382
+ \begin{array} { r c l } { { R _ { T } ^ { 2 } ( f ) } } & { { = } } & { { \displaystyle \int _ { 0 } ^ { 1 } \left| \frac { d } { d t } \mu _ { f } ( t ) \right| ^ { 2 } d t = \displaystyle \int _ { 0 } ^ { 1 } \left| \frac { d } { d t } \left. v , m _ { t } \right. \right| ^ { 2 } d t } } \\ { { } } & { { = } } & { { \displaystyle \int _ { 0 } ^ { 1 } | \langle v , \dot { m } _ { t } \rangle | ^ { 2 } d t = \left. v , \left( \displaystyle \int _ { 0 } ^ { 1 } \dot { m } _ { t } \otimes \dot { m } _ { t } d t \right) v \right. , } } \end{array}
383
+ $$
384
+
385
+ We then expand $\dot { m } _ { t }$ when $T$ is mixup:
386
+
387
+ $$
388
+ \dot { m } _ { t } = \frac { d } { d t } \mathbb { E } _ { x _ { 0 } \sim \mathbb { P } _ { 0 } , x _ { 1 } \sim \mathbb { P } _ { 1 } } \Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) = \mathbb { E } _ { x _ { 0 } \sim \mathbb { P } _ { 0 } , x _ { 1 } \sim \mathbb { P } _ { 1 } } J \Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ( x _ { 0 } - x _ { 1 } )
389
+ $$
390
+
391
+ where $J$ denotes the Jacobian. Note that $\begin{array} { r } { D = \int _ { 0 } ^ { 1 } \dot { m _ { t } } \otimes \dot { m } _ { t } d t } \end{array}$ , hence for the classification with fair mixup regularizer, the problem is equivalent to:
392
+
393
+ $$
394
+ \operatorname* { m i n } _ { v \in \mathbb { R } ^ { m } } \mathcal { L } ( v ) : = - ( \langle v , \delta _ { \pm } \rangle ) + \frac { \lambda _ { 1 } } { 2 } \langle v , D v \rangle + \frac { \lambda _ { 2 } } { 2 } | | v | | _ { 2 } ^ { 2 }
395
+ $$
396
+
397
+ Setting first order condition we obtain $( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) v ^ { \ast } = \delta _ { \pm }$ , which gives the optimal solution
398
+
399
+ $$
400
+ v ^ { * } = ( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \delta _ { \pm } .
401
+ $$
402
+
403
+ The corresponding optimal fair mixup classifier can be finally written as
404
+
405
+ $$
406
+ f ( x ) = \left. \delta _ { \pm } , ( \lambda _ { 1 } D + \lambda _ { 2 } I _ { m } ) ^ { - 1 } \Phi ( x ) \right. .
407
+ $$
408
+
409
+ # B EXPERIMENT DETAILS
410
+
411
+ Adult We follow the preprocessing procedure of Yurochkin et al. (2019) by removing some features in the dataset3. We then encode the discrete and quantized continuous attributes with one-hot encoding. We retrain each model 10 times with batch size 1000 and report the mean accuracy and fairness measurement. The models are selected via the performance on validation set. In each trial, the dataset is randomly split into training and testing set with partition $8 0 \%$ and $2 0 \%$ , respectively. The models are optimized with Adam optimizer (Kingma & Ba, 2014) with learning rate $\mathrm { \bar { 1 } } \times e ^ { - \mathrm { \bar { 3 } } }$ For DP, we sample 500 datapoints for each $A \in \{ 0 , 1 \}$ to form a batch. Similarly, for EO, we sample 250 datapoints for each $( A , Y )$ pair where $A , Y \in \{ 0 , 1 \}$ .
412
+
413
+ CelebA Model-wise, we extract the feature of size 512 after the average pooling layer of ResNet18. A two-layer ReLU network with hidden size 512 is then trained to perform prediction. Percentage of positive-labeled datapoints for attractive, wavy hair, and smiling that is male are $2 2 . 7 \%$ , $1 8 . 3 6 \%$ , and $3 4 . 6 \%$ , respectively. We use the original validation set of CelebA to perform model selection and report the accuracy and fairness metrics on the testing set. The visualization paths are also plotted with respect to the testing data. To implement manifold mixup, we interpolate the spatial features before the average pooling layer. Similarly, all the models are optimized with Adam optimizer with learning rate $1 \times e ^ { - 3 }$ .
414
+
415
+ Toxicity Classification We download the Jigsaw toxic comment dataset from Kaggle website4. Percentage of positive-labeled datapoints for black and asian are $1 8 . 8 \%$ and $6 . 4 \%$ , respectively, which together results in a dataset of size 22835. We retrain each model 10 times with batch size 200 and report the mean accuracy and fairness measurement. The models are selected via the performance on validation set. The batch-sampling and data splitting procedure is the same as the one for Adult dataset. The models are again optimized with Adam optimizer with learning rate $1 \times e ^ { - 3 }$ .
416
+
417
+ # C ADDITIONAL EXPERIMENTS
418
+
419
+ # C.1 TRAINING PERFORMANCE
420
+
421
+ In Figure 7, we show the training performance for Adult dataset. As expected, GapReg outperforms Fair mixup on the training set since it directly optimizes the fairness metric. The results also support our motivation: the constraints that are satisfied during training might not generalize at evaluation time.
422
+
423
+ ![](images/38d30429260f23fa3c4cb2c80e1c0feaa90205a73b7d9a5233050439ab5c215b.jpg)
424
+ Figure 7: Training Performance on Adult Dataset. The tradeoff between AP and $\Delta \mathrm { D P } / \Delta \mathrm { E O }$ on training set.
425
+
426
+ # C.2 EVALUATION METRIC
427
+
428
+ The relaxed evaluation metric could overestimate the performance when the predicted confidence is significantly different between groups. For instance, a classifier $f$ can be completely unfair while satisfying this condition: $f ( x ) { \overset { } { = } } 1$ w.p. $60 \%$ , 0 w.p. $40 \%$ on $P _ { 0 }$ , and $f ( x ) \stackrel { - } { = } 0 . 6$ w.p. $100 \%$ on $P _ { 1 }$ . This satisfies this expectation-based condition. However, it is highly unfair if we binarize the prediction by setting the threshold $= 0 . 5$ .
429
+
430
+ To overcome this issue, let $f _ { t }$ be the binarized predictor $f _ { t } ( x ) = \mathbb { 1 } ( f ( x ) \geq t )$ , we evaluate the model with average $\Delta \mathrm { D P } ( \overline { { \Delta \mathrm { D P } } } )$ defined as follows:
431
+
432
+ $$
433
+ \begin{array} { r l } & { \overline { { \Delta \mathrm { D P } } } ( f ) = \displaystyle \frac { 1 } { | T | } \sum _ { t \in \mathcal { T } } \left| \mathbb { E } _ { \boldsymbol { x } \sim P _ { 0 } } f _ { t } ( \boldsymbol { x } ) - \mathbb { E } _ { \boldsymbol { x } \sim P _ { 1 } } f _ { t } ( \boldsymbol { x } ) \right| ; } \\ & { \overline { { \Delta \mathrm { E O } } } ( f ) = \displaystyle \frac { 1 } { | T | } \sum _ { t \in \mathcal { T } } \sum _ { y \in \{ 0 , 1 \} } \left| \mathbb { E } _ { \boldsymbol { x } \sim P _ { 0 } ^ { y } } f _ { t } ( \boldsymbol { x } ) - \mathbb { E } _ { \boldsymbol { x } \sim P _ { 1 } ^ { y } } f _ { t } ( \boldsymbol { x } ) \right| , } \end{array}
434
+ $$
435
+
436
+ where $\tau$ is a set of threshold values. $\overline { { \Delta \mathsf { D P } } }$ averages the $\Delta \mathbf { D P }$ with binarized predictions derived via different thresholds. For instance, by averaging the $\Delta \mathbf { D P }$ with thersholds $\mathcal { T } = [ 0 . 1 , 0 . 2 , \cdot \cdot \cdot , 0 . 9 ] ,$ , $\overline { { \Delta \mathrm { D P } } } = 0 . 5$ instead of 0 for the example above, which captures the unfairness between groups. We report $\overline { { \Delta \mathsf { D P } } }$ for each methods with thersholds $\mathcal { T } = [ 0 . 1 , \bar { 0 } . 2 , \cdot \cdot \cdot . , 0 . 9 ]$ in Figure 8. Similarly, fair mixup exhibits the best tradeoff comparing to the baselines for demographic parity. For equalized odds, the performances of fair mixup and GapReg are similar, where fair mixup achieves a better tradeoff when $\overline { { \Delta \mathrm { E O } } }$ is small.
437
+
438
+ ![](images/5ee5e26b6b027b544d99a89cf0f68d7011e47bc42ed3d946f586dec59c345bb7.jpg)
439
+ Figure 8: Average ∆DP and ∆EO on Adult Dataset.
440
+
441
+ # C.3 SMALLER MODEL SIZE
442
+
443
+ To examine the effect of model size, we reduce the hidden size from 200 to 50 and show the result in Figure 9. Overall, the performance does not vary significantly after reducing the model size. We can again observe that fair mixup outperform the baselines for $\Delta \mathbf { D P }$ . Similar to the results in section C.2, the performances of fair mixup and GapReg are similar, where fair mixup achieves a better tradeoff when $\Delta \mathrm { E O }$ is small.
444
+
445
+ ![](images/472cd71dd38bb056ebae1b91a67bd5645ae14173cedc6b390a003a86962f3536.jpg)
446
+ Figure 9: Reducing the Model Size on Adult Dataset.
parse/train/DNl5s5BXeBn/DNl5s5BXeBn_content_list.json ADDED
@@ -0,0 +1,2170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "FAIR MIXUP: FAIRNESS VIA INTERPOLATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 98,
9
+ 715,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ching-Yao Chuang∗ CSAIL, MIT cychuang@mit.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 343,
21
+ 186
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Youssef Mroueh IBM Research AI mroueh@us.ibm.com ",
28
+ "bbox": [
29
+ 501,
30
+ 145,
31
+ 671,
32
+ 185
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 223,
43
+ 544,
44
+ 238
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Training classifiers under fairness constraints such as group fairness, regularizes the disparities of predictions between the groups. Nevertheless, even though the constraints are satisfied during training, they might not generalize at evaluation time. To improve the generalizability of fair classifiers, we propose fair mixup, a new data augmentation strategy for imposing the fairness constraint. In particular, we show that fairness can be achieved by regularizing the models on paths of interpolated samples between the groups. We use mixup, a powerful data augmentation strategy to generate these interpolates. We analyze fair mixup and empirically show that it ensures a better generalization for both accuracy and fairness measurement in tabular, vision, and language benchmarks. The code is available at https://github.com/chingyaoc/fair-mixup. ",
51
+ "bbox": [
52
+ 233,
53
+ 256,
54
+ 764,
55
+ 409
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 436,
66
+ 336,
67
+ 453
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Fairness has increasingly received attention in machine learning, with the aim of mitigating unjustified bias in learned models. Various statistical metrics were proposed to measure the disparities of model outputs and performance when conditioned on sensitive attributes such as gender or race. Equipped with these metrics, one can formulate constrained optimization problems to impose fairness as a constraint. Nevertheless, these constraints do not necessarily generalize since they are data-dependent, i.e they are estimated from finite samples. In particular, models that minimize the disparities on training sets do not necessarily achieve the same fairness metric on testing sets (Cotter et al., 2019). Conventionally, regularization is required to improve the generalization ability of a model (Zhang et al., 2016). On one hand, explicit regularization such as weight decay and dropout constrain the model capacity. On the other hand, implicit regularization such as data augmentation enlarge the support of the training distribution via prior knowledge (Hernandez-Garc ´ ´ıa & Konig ¨ , 2018). ",
74
+ "bbox": [
75
+ 173,
76
+ 468,
77
+ 825,
78
+ 635
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this work, we propose a data augmentation strategy for optimizing group fairness constraints such as demographic parity (DP) and equalized odds (EO) (Barocas et al., 2019). Given two sensitive groups such as male and female, instead of directly restricting the disparity, we propose to regularize the model on interpolated distributions between them. Those augmented distributions form a path connecting the two sensitive groups. Figure 1 provides an illustrative example of the idea. The path simulates how the distribution transitions from one group to another via interpolation. Ideally, if the model is invariant to the sensitive attribute, the expected prediction of the model along the path should have a smooth behavior. Therefore, we propose a regularization that favors smooth transitions along the path, which provides a stronger prior on the model class. ",
85
+ "bbox": [
86
+ 173,
87
+ 642,
88
+ 825,
89
+ 767
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We adopt mixup (Zhang et al., 2018b), a powerful data augmentation strategy, to construct the interpolated samples. Owing to mixup’s simple form, the smoothness regularization we introduce has a closed form expression that can be easily optimized. One disadvantage of mixup is that the interpolated samples might not lie on the natural data manifold. Verma et al. (2019) propose Manifold Mixup, which generate the mixup samples in a latent space. Previous works (Bojanowski et al., 2018; Berthelot et al., 2018) have shown that interpolations between a pair of latent features correspond to semantically meaningful, smooth interpolation in the input space. By constructing the path in the latent space, we can better capture the semantic changes while traveling between the sensitive groups and hence result in a better fairness regularizer that we coin fair mixup. Empirically, fair mixup improves the generalizability for both DP and EO on tabular, computer- vision, and natural language benchmarks. Theoretically, we prove for a particular case that fair mixup corresponds to a Mahalanobis metric in the feature space in which we perform the classification. This metric ensures group fairness of the model, and involves the Jacobian of the feature map as we travel along the path. ",
96
+ "bbox": [
97
+ 174,
98
+ 775,
99
+ 825,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/62ad9b5f7df98a9699e950e834bab96c4809883b1212474b889265c1d52dbd12.jpg",
107
+ "image_caption": [
108
+ "Figure 1: (a) Visualization of the path constructed via mixup interpolations between groups that have distribution $P _ { 0 }$ and $P _ { 1 }$ , respectively. (b) Fair mixup penalizes the changes in model’s expected prediction with respect to the interpolated distributions. The regularized model (blue curve) has smaller slopes comparing to the unregularized one (orange curve) along the path from $P _ { 0 }$ to $P _ { 1 }$ , which eventually leads to smaller demographic parity $\\Delta \\mathbf { D P }$ . "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 209,
113
+ 103,
114
+ 789,
115
+ 231
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 330,
125
+ 825,
126
+ 400
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In short, this work makes the following contributions: ",
133
+ "bbox": [
134
+ 174,
135
+ 406,
136
+ 526,
137
+ 421
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• We develop fair mixup, a data augmentation strategy that improves the generalization of group fairness metrics; • We provide a theoretical analysis to deepen our understanding of the proposed method; • We evaluate our approach via experiments on tabular, vision, and language benchmarks; ",
144
+ "bbox": [
145
+ 181,
146
+ 434,
147
+ 825,
148
+ 494
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 512,
159
+ 344,
160
+ 529
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Machine Learning Fairness To mitigate unjustified bias in machine learning systems, various fairness definitions have been proposed. The definitions can usually be classified into individual fairness or group fairness. A system that is individually fair will treat similar users similarly, where the similarity between individuals can be obtained via prior knowledge or metric learning (Dwork et al., 2012; Yurochkin et al., 2019). Group fairness metrics measure the statistical parity between subgroups defined by the sensitive attributes such as gender or race (Zemel et al., 2013; Louizos et al., 2015; Hardt et al., 2016). While fairness can be achieved via pre- or post-processing, optimizing fair metrics at training time can lead to the highest utility (Barocas et al., 2019). For instance, Woodworth et al. (2017) impose independence via regularizing the covariance between predictions and sensitive attributes. Zafar et al. (2017) regularize decision boundaries of convex margin-based classifier to minimize the disparaty between groups. Zhang et al. (2018a) mitigate the bias via minimizing an adversary’s ability to predict sensitive attributes from predictions. ",
167
+ "bbox": [
168
+ 173,
169
+ 537,
170
+ 825,
171
+ 705
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Nevertheless, these constraints are data-dependent, even though the constraints are satisfied during training, the model may behave differently at evaluation time. Agarwal et al. (2018) analyze the generalization error of fair classifiers obtained via two-player games. To improve the generalizability, Cotter et al. (2019) inherit the two-player setting while training each player on two separated datasets. In spite of the analytical solutions and theoretical guarantees, game-theoretic approaches could be hard to scale for complex model classes. In contrast, our proposed fair mixup, is a general data augmentation strategy for optimizing the fairness constraints, which is easily compatible with any dataset modality or model class. ",
178
+ "bbox": [
179
+ 173,
180
+ 712,
181
+ 825,
182
+ 824
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Data Augmentation and Regularization Data augmentation expands the training data with examples generated via prior knowledge, which can be seen as an implicit regularization (Zhang et al., 2016; Hernandez-Garc ´ ´ıa & Konig ¨ , 2018) where the prior is specified as virtual examples. Zhang et al. (2018b) proposes mixup, which generate augmented samples via convex combinations of pairs of examples. In particular, given two examples $\\overline { { z } } _ { i } , z _ { j } \\in \\mathbb { R } ^ { d }$ where $z$ could include both input and label, mixup constructs virtual samples as $t z _ { i } + ( 1 - t ) z _ { j }$ for $t \\in [ 0 , 1 ]$ . State-of-the-art results are obtained via training on mixup samples in different modalities. Verma et al. (2019) introduces manifold mixup and shows that performing mixup in a latent space further improves the generalization. While previous works focus on general learning scenarios, we show that regularizing models on mixup samples can lead to group fairness and improve generalization. ",
189
+ "bbox": [
190
+ 174,
191
+ 840,
192
+ 823,
193
+ 924
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "",
200
+ "bbox": [
201
+ 174,
202
+ 103,
203
+ 823,
204
+ 160
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 GROUP FAIRNESS",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 176,
214
+ 180,
215
+ 352,
216
+ 196
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Without loss of generality, we consider the standard fair binary classification setup where we obtain inputs $\\boldsymbol { X } \\in \\mathcal { X } \\bar { \\subset } \\mathbb { R } ^ { d }$ , labels $Y \\in \\mathcal { Y } = \\{ 0 , 1 \\}$ , sensitive attribute $A \\in \\{ 0 , 1 \\}$ , and prediction score $\\hat { Y } \\in [ 0 , 1 ]$ from model $f : \\mathbb { R } ^ { d } [ 0 , 1 ]$ . We will focus on demographic parity (DP) and equalized odds (EO) in this work, while our approach also encompasses other fairness metrics (detailed discussion in section 5). DP requires the predictions $\\hat { Y }$ to be independent of the sensitive attribute $A$ , that is, $P ( \\hat { Y } | A = 0 ) = P ( \\hat { Y } | A = 1 )$ . However, DP ignores the possible correlations between $Y$ and $A$ and could rule out the perfect predictor if $Y$ 6⊥⊥ $A$ . EO overcomes the limit of DP by conditioning on the label $Y$ . In particular, EO requires $\\hat { Y }$ and $A$ to be conditionally independent with respect to $Y$ , that is, $P ( \\hat { Y } | A = 1 , Y = y ) = P ( \\hat { Y } | A = 0 , Y = y )$ for $y \\in \\{ 0 , 1 \\}$ . Given the difficulty of optimizing the independency constraints, Madras et al. (2018) propose the following relaxed metrics: ",
223
+ "bbox": [
224
+ 173,
225
+ 212,
226
+ 825,
227
+ 376
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "equation",
233
+ "img_path": "images/ab400496da5b724b20228fb6982b2836a7fbc7d5302b47f9acc4e89fcde24534.jpg",
234
+ "text": "$$\n\\Delta \\mathrm { D P } ( f ) = | \\mathbb { E } _ { x \\sim P _ { 0 } } f ( x ) - \\mathbb { E } _ { x \\sim P _ { 1 } } f ( x ) | \\Delta \\mathrm { E O } ( f ) = \\sum _ { y \\in \\{ 0 , 1 \\} } \\left| \\mathbb { E } _ { x \\sim P _ { 0 } ^ { y } } f ( x ) - \\mathbb { E } _ { x \\sim P _ { 1 } ^ { y } } f ( x ) \\right|\n$$",
235
+ "text_format": "latex",
236
+ "bbox": [
237
+ 196,
238
+ 381,
239
+ 802,
240
+ 419
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "where we define $P _ { a } = P ( \\cdot | A = a )$ and $P _ { a } ^ { y } = P ( \\cdot | A = a , Y = y ) , a , $ $a , y \\in \\{ 0 , 1 \\}$ . We denote the joint distribution of $X$ and $Y$ by $P$ . Similar metrics have also been used in Agarwal et al. (2018), Wei et al. (2019), and Taskesen et al. (2020). One can formulate a penalized optimization problem to regularize the fairness measurement, for instance, ",
247
+ "bbox": [
248
+ 173,
249
+ 425,
250
+ 825,
251
+ 482
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "equation",
257
+ "img_path": "images/dc30e30fae999becf13d02de022263bef17c03360992aa528102f08a438860da.jpg",
258
+ "text": "$$\n( \\mathrm { G a p \\ R e g u l a r i z a t i o n } ) ; \\quad \\operatorname* { m i n } _ { f } \\ \\mathbb { E } _ { ( x , y ) \\sim P } [ \\ell ( f ( x ) , y ) ] + \\lambda \\Delta \\mathrm { D P } ( f ) ,\n$$",
259
+ "text_format": "latex",
260
+ "bbox": [
261
+ 284,
262
+ 489,
263
+ 712,
264
+ 515
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "where $\\ell$ is the classification loss. In spite of its simplicity, our experiments show that small training values of $\\Delta \\mathrm { D P } ( f )$ do not necessarily generalize well at evaluation time (See section 6). To improve the generalizability, we introduce a data augmentation strategy via a dynamic form of group fairness metrics. ",
271
+ "bbox": [
272
+ 174,
273
+ 521,
274
+ 825,
275
+ 578
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "4 DYNAMIC FORMULATION OF FAIRNESS: PATHS BETWEEN GROUPS ",
282
+ "text_level": 1,
283
+ "bbox": [
284
+ 171,
285
+ 598,
286
+ 759,
287
+ 616
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "For simplicity, we will first consider $\\Delta \\mathbf { D P }$ as the fairness metric, and extend our development to $\\Delta \\mathrm { E O }$ in section 5. $\\Delta \\mathbf { D P }$ provides a static measurement by quantifying the expected difference at $P _ { 0 }$ and $P _ { 1 }$ . In contrast, one can consider a dynamic metric that measures the change of $\\hat { Y }$ while transitioning gradually from $P _ { 0 }$ to $P _ { 1 }$ . To convert from the static to the dynamic formulations, we start with a simple Lemma that bridges two groups with an interpolator $T ( x _ { 0 } , x _ { 1 } , t )$ , which generates interpolated samples between $x _ { 0 }$ and $x _ { 1 }$ based on step $t$ . ",
294
+ "bbox": [
295
+ 173,
296
+ 630,
297
+ 825,
298
+ 717
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Lemma 1. Let $T : \\mathcal { X } ^ { 2 } \\times [ 0 , 1 ] \\to \\mathcal { X }$ be a function continuously differentiable w.r.t. t such that $T ( x _ { 0 } , x _ { 1 } , 0 ) = x _ { 0 }$ and $T ( x _ { 0 } , x _ { 1 } , 1 ) = x _ { 1 }$ . For any differentiable function $f$ , we have ",
305
+ "bbox": [
306
+ 173,
307
+ 720,
308
+ 825,
309
+ 751
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "img_path": "images/b9d95927d143b1a8f9d54bbdca93737131e620b24ff6bfee85ac369a2729c200.jpg",
316
+ "text": "$$\n\\Delta { \\bf D } { \\bf P } ( f ) = \\left| \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\int f ( \\underbrace { T ( x _ { 0 } , x _ { 1 } , t ) } _ { \\mathrm { i n t e r p o l a t i o n } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \\right| = : \\left| \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\mu _ { f } ( t ) d t \\right| ,\n$$",
317
+ "text_format": "latex",
318
+ "bbox": [
319
+ 235,
320
+ 756,
321
+ 761,
322
+ 815
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "where we define $\\mu _ { f } ( t ) = \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } { f ( T ( x _ { 0 } , x _ { 1 } , t ) ) }$ , the expected output of $f$ with respect to $T ( x _ { 0 } , x _ { 1 } , t )$ . ",
329
+ "bbox": [
330
+ 173,
331
+ 821,
332
+ 826,
333
+ 852
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Figure 2 provides an illustrative example of the idea. Lemma 1 relaxes the binary sensitive attribute into a continuous variable $t \\in [ 0 , 1 ]$ , where $\\mu _ { f }$ captures the behavior of $f$ while traveling from group 0 to group 1 along the path constructed with the interpolator $T$ . In particular, given two examples $x _ { 0 }$ and $x _ { 1 }$ drawn from each group, $T$ generates interpolated samples that change smoothly with respect to $t$ . ",
340
+ "bbox": [
341
+ 173,
342
+ 862,
343
+ 825,
344
+ 933
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "For instance, given two racial backgrounds in the dataset, $\\mu _ { f }$ simulates how the prediction of $f$ changes while the data of one group smoothly transforms to another. We can then detect whether there are “unfair” changes in $\\mu _ { f }$ along the path. The dynamic formulation allows us to measure the sensitivity of $f$ with respect to a relaxed continuous sensitive attribute $t$ via the derivative $\\begin{array} { r } { \\frac { d } { d t } \\mu _ { f } ( t ) } \\end{array}$ . Ideally, if $f$ is invariant to the sensitive attribute, $\\begin{array} { r } { \\frac { d } { d t } \\mu _ { f } ( t ) } \\end{array}$ should be small along the path from $t = 0$ to 1. Importantly, a small $\\Delta \\mathbf { D P }$ does not imply $\\begin{array} { r } { | \\frac { d } { d t } \\mu _ { f } ( t ) | } \\end{array}$ is small for $t \\in [ 0 , 1 ]$ since the derivative could fluctuate as it can be seen in Figure 2. ",
351
+ "bbox": [
352
+ 174,
353
+ 103,
354
+ 549,
355
+ 273
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "image",
361
+ "img_path": "images/07eb0534a896a5eb81656f66e6cd0b9ea2531281232e9ba51b637dd628ff676a.jpg",
362
+ "image_caption": [
363
+ "Figure 2: The expected output $\\mu _ { f } ( t )$ gradually changes as $t \\to 1$ . Even when $\\Delta \\mathbf { D P }$ is small, $\\begin{array} { r } { | \\frac { d } { d t } \\mu _ { f } ( t ) | } \\end{array}$ could still be large along the path. "
364
+ ],
365
+ "image_footnote": [],
366
+ "bbox": [
367
+ 570,
368
+ 107,
369
+ 820,
370
+ 233
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "4.1 SMOOTHNESS REGULARIZATION ",
377
+ "text_level": 1,
378
+ "bbox": [
379
+ 176,
380
+ 294,
381
+ 441,
382
+ 308
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "To make $f$ invariant to $t$ , we propose to regularize the derivative along the path: ",
389
+ "bbox": [
390
+ 174,
391
+ 320,
392
+ 694,
393
+ 337
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "equation",
399
+ "img_path": "images/0cb2538b6be508ee70475f3e8397fedc307d143282623161dd8ec86f6be72e0a.jpg",
400
+ "text": "$$\n\\mathrm { ( S m o o t h n e s s ~ R e g u l a r i z e r ) } ; \\quad R _ { T } ( f ) = \\int _ { 0 } ^ { 1 } \\left| \\frac { d } { d t } \\mu _ { f } ( t ) \\right| d t .\n$$",
401
+ "text_format": "latex",
402
+ "bbox": [
403
+ 310,
404
+ 344,
405
+ 687,
406
+ 382
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "Interestingly, $R _ { T } ( f )$ is the arc length of the curve defined by $\\mu _ { f } ( t )$ for $t \\in [ 0 , 1 ]$ . Now, we can interpret the problem from a geometric point of view. The interpolator $T$ defines a curve $\\mu _ { f } ( t ) :$ $[ 0 , 1 ] \\to \\mathbb { R } .$ , and $\\Delta \\mathrm { D P } ( f ) = | \\bar { \\mu _ { f } } ( 0 ) - \\bar { \\mu _ { f } ( 1 ) } |$ is the Euclidean distance between points $t = 0$ and 1. $\\Delta \\mathrm { D P } ( f )$ fails to capture the behavior of $f$ while transitioning from $P _ { 0 }$ to $P _ { 1 }$ . In contrast, regularizing the arc length $R _ { T } ( f )$ favors a smooth transition from $t = 0$ to 1, which constrains the fluctuation of the function as the sensitive attributes change. By Jensen’s inequality, $\\Delta \\mathrm { D P } ( f ) \\le R _ { T } ( f )$ for any $f$ , which further justifies the validity of regularizing $\\Delta \\mathrm { D P } ( f )$ with $R _ { T } ( f )$ . ",
413
+ "bbox": [
414
+ 173,
415
+ 390,
416
+ 826,
417
+ 491
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "5 FAIR MIXUP: REGULARIZING MIXUP PATHS ",
424
+ "text_level": 1,
425
+ "bbox": [
426
+ 174,
427
+ 512,
428
+ 575,
429
+ 529
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "It remains to determine the interpolator $T$ . A good interpolater shall (1) generate meaningful interpolations, and (2) the derivative of $\\mu _ { f } ( . )$ with respect to $t$ should be easy to compute. In this section, we show that mixup (Zhang et al., 2018b), a powerful data augmentation strategy, is itself a valid interpolator that satisfies both criterions. ",
436
+ "bbox": [
437
+ 173,
438
+ 546,
439
+ 825,
440
+ 603
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "Input Mixup We first adopt the standard mixup (Zhang et al., 2018b) by setting the interpolator as the linear interpolation in input space: $T ( x _ { 0 } , \\dot { x } _ { 1 } , t ) \\stackrel { - } { = } t x _ { 0 } + ( 1 - t ) x _ { 1 }$ . It can be verified that $T _ { \\mathrm { m i x u p } }$ satisfies the interpolator criterion defined in Lemma 1. The resulting smoothness regularizer has the following closed form expression1: ",
447
+ "bbox": [
448
+ 173,
449
+ 621,
450
+ 825,
451
+ 680
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "equation",
457
+ "img_path": "images/4bf03cfdf650b4f2d4bf5a633c1f59215e81b99b653899013b8d018c271a4e54.jpg",
458
+ "text": "$$\nR _ { \\mathrm { m i x u p } } ^ { \\mathrm { { D P } } } ( f ) = \\int _ { 0 } ^ { 1 } \\left| \\int \\left. \\nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \\right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \\right| d t .\n$$",
459
+ "text_format": "latex",
460
+ "bbox": [
461
+ 245,
462
+ 689,
463
+ 751,
464
+ 726
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "The regularizer can be easily optimized by computing the Jacobian of $f$ on mixup samples. Jacobian regularization is a common approach to regularize neural networks (Drucker $\\&$ LeCun, 1992). For instance, regularizing the norm of the Jacobian can improve adversarial robustness (Chan et al., 2019; Hoffman et al., 2019). Here, we regularize the expected inner product between the Jacobian on mixup samples and the difference $x _ { 0 } - x _ { 1 }$ . ",
471
+ "bbox": [
472
+ 173,
473
+ 734,
474
+ 825,
475
+ 805
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "Manifold Mixup One disadvantage of input mixup is that the curve is defined with mixup samples, which might not lie on the natural data manifold. Verma et al. (2019) propose Manifold Mixup, which generate the mixup samples in the latent space $\\mathcal { Z }$ . In particular, manifold mixup assumes a compositional hypothesis $f \\circ g$ where $g : \\mathcal { X } \\mathcal { Z }$ is the feature encoder and the predictor $f : \\mathcal { Z } \\to \\mathcal { V }$ takes the encoded feature to perform prediction. Similarly, we can establish the equivalence between ",
482
+ "bbox": [
483
+ 173,
484
+ 823,
485
+ 825,
486
+ 893
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "$\\Delta \\mathbf { D P }$ and manifold mixup: ",
493
+ "bbox": [
494
+ 174,
495
+ 103,
496
+ 351,
497
+ 118
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "equation",
503
+ "img_path": "images/4cead4d2c54a86a2759b39fd28a8cfbb69e23351d7a334e05f98a5220f2f90e1.jpg",
504
+ "text": "$$\n\\Delta \\mathrm { D P } ( f \\circ g ) = \\left. \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\int f ( \\underbrace { t g ( x _ { 0 } ) + ( 1 - t ) g ( x _ { 1 } ) } _ { \\mathrm { M a n i f o l d M i x u p } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \\right. ,\n$$",
505
+ "text_format": "latex",
506
+ "bbox": [
507
+ 254,
508
+ 122,
509
+ 741,
510
+ 181
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "which results in the following smoothness regularizer: ",
517
+ "bbox": [
518
+ 173,
519
+ 184,
520
+ 529,
521
+ 199
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/341112ad106319a299f0dbda2d0c572fc994117f2e61b032d79e0bc6ba435f1e.jpg",
528
+ "text": "$$\nR _ { \\mathrm { m - m i x u p } } ^ { \\mathrm { D P } } ( f \\circ g ) = \\int _ { 0 } ^ { 1 } \\left| \\int \\left. \\nabla _ { z } f ( t g ( x _ { 0 } ) + ( 1 - t ) g ( x _ { 1 } ) ) , g ( x _ { 0 } ) - g ( x _ { 1 } ) \\right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \\right| d t .\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 186,
532
+ 203,
533
+ 812,
534
+ 241
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "Previous works (Bojanowski et al., 2018; Berthelot et al., 2018) have showed that interpolations between a pair of latent features correspond to semantically meaningful, smooth interpolations in input space. By constructing a curve in the latent space, we can better capture the semantic changes while traveling from $P _ { 0 }$ to $P _ { 1 }$ . ",
541
+ "bbox": [
542
+ 173,
543
+ 251,
544
+ 825,
545
+ 308
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Extensions and Implementation The derivations presented so far, can be easily extended to Equalized Odds (EO). In particular, Lemma 1 can be extended to $\\Delta \\mathrm { E O }$ by interpolating $P _ { 0 } ^ { y }$ and $P _ { 1 } ^ { \\bar { y } }$ for $y \\in \\{ 0 , 1 \\}$ : ",
552
+ "bbox": [
553
+ 173,
554
+ 321,
555
+ 826,
556
+ 366
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "equation",
562
+ "img_path": "images/767054284ce2838c01668c39dde1e4ad5adfc00865835873bf9c59aec0ae53dd.jpg",
563
+ "text": "$$\n\\Delta \\mathrm { E O } ( f ) = \\sum _ { y \\in \\{ 0 , 1 \\} } \\left| \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\int f ( T ( x _ { 0 } , x _ { 1 } , t ) ) d P _ { 0 } ^ { y } ( x _ { 0 } ) d P _ { 1 } ^ { y } ( x _ { 1 } ) d t \\right| .\n$$",
564
+ "text_format": "latex",
565
+ "bbox": [
566
+ 274,
567
+ 369,
568
+ 722,
569
+ 412
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "The corresponding mixup regularizers can be obtained similarly by substituting $P _ { 0 }$ and $P _ { 1 }$ in $R _ { \\mathrm { m i x u p } }$ and $R _ { \\mathrm { m - m i x u p } }$ with $\\dot { \\Gamma } _ { 0 } ^ { y }$ and $P _ { 1 } ^ { \\bar { y } }$ : ",
576
+ "bbox": [
577
+ 173,
578
+ 416,
579
+ 823,
580
+ 446
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "equation",
586
+ "img_path": "images/a600adc03939fdfb51f47883b172fd87dc4cca32d376dc7e3f3afc548eb1b3b1.jpg",
587
+ "text": "$$\nR _ { \\mathrm { m i x u p } } ^ { \\mathrm { E O } } ( f ) = \\sum _ { y \\in \\{ 0 , 1 \\} } \\int _ { 0 } ^ { 1 } \\Big | \\int \\langle \\nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \\rangle d P _ { 0 } ^ { y } ( x _ { 0 } ) d P _ { 1 } ^ { y } ( x _ { 1 } ) \\Big | d t .\n$$",
588
+ "text_format": "latex",
589
+ "bbox": [
590
+ 218,
591
+ 450,
592
+ 779,
593
+ 494
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "Our formulation also encompasses other fairness metrics that quantify the expected difference between groups. This includes group fairness metrics such as accuracy equality which compares the mistreatment rate between groups (Berk et al., 2018). Similar to equation (1), we formulate a penalized optimization problem to enforce fairness via fair mixup: ",
600
+ "bbox": [
601
+ 173,
602
+ 498,
603
+ 825,
604
+ 555
605
+ ],
606
+ "page_idx": 4
607
+ },
608
+ {
609
+ "type": "equation",
610
+ "img_path": "images/ccb7553d629f7cab25c20629fac5322cd597f772958772c5940584bd3f14c6c4.jpg",
611
+ "text": "$$\n( \\mathrm { F a i r } \\mathrm { M i x u p } ) { \\boldsymbol { : } } \\quad \\operatorname* { m i n } _ { f } \\mathbb { E } _ { ( { \\boldsymbol { x } } , { \\boldsymbol { y } } ) \\sim P } [ \\ell ( f ( { \\boldsymbol { x } } ) , { \\boldsymbol { y } } ) ] + \\lambda R _ { \\mathrm { m i x u p } } ( f ) .\n$$",
612
+ "text_format": "latex",
613
+ "bbox": [
614
+ 307,
615
+ 559,
616
+ 691,
617
+ 584
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Implementation-wise, we follow Zhang et al. (2018b) where only one $t$ is sampled per batch to perform mixup. This strategy works well in practice and reduce the computational requirements. ",
624
+ "bbox": [
625
+ 171,
626
+ 588,
627
+ 823,
628
+ 618
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "5.1 THEORETICAL ANALYSIS ",
635
+ "text_level": 1,
636
+ "bbox": [
637
+ 174,
638
+ 633,
639
+ 392,
640
+ 648
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "To gain deeper insight, we analyze the optimal solution of fair mixup in a simple case. In particular, we consider the classification loss $\\ell ( f ( \\bar { x ) } , y ) = - y f ( x )$ and the following hypothesis class: ",
647
+ "bbox": [
648
+ 174,
649
+ 660,
650
+ 823,
651
+ 689
652
+ ],
653
+ "page_idx": 4
654
+ },
655
+ {
656
+ "type": "equation",
657
+ "img_path": "images/785c22ac85de89055014909e67e52696f276763bb7cc1647d36526614e21280f.jpg",
658
+ "text": "$$\n\\mathcal { H } = \\{ f | f ( x ) = \\left. v , \\Phi ( x ) \\right. , v \\in \\mathbb { R } ^ { m } , \\Phi : \\mathcal { X } \\to \\mathbb { R } ^ { m } \\} .\n$$",
659
+ "text_format": "latex",
660
+ "bbox": [
661
+ 323,
662
+ 694,
663
+ 671,
664
+ 710
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Define $m _ { \\pm } = \\mathbb { E } _ { x \\sim \\mathbb { P } _ { \\pm } } \\Phi ( x )$ , the label conditional mean embeddings, and $m _ { 0 } = \\mathbb { E } _ { x \\sim \\mathbb { P } _ { 0 } } \\Phi ( x )$ and $m _ { 1 } = \\mathbb { E } _ { x \\sim \\mathbb { P } _ { 1 } } \\Phi ( x )$ , the group mean embeddings. We then define the expected difference $\\delta _ { \\pm } = $ $m _ { + } - m _ { - }$ and $\\delta _ { 0 , 1 } = m _ { 0 } - m _ { 1 }$ . To derive an interpretable solution, we will consider the L2 variants of the penalized optimization problem. The following proposition gives the analytical solution when we regularize the model with $\\Delta \\mathbf { D P }$ . ",
671
+ "bbox": [
672
+ 173,
673
+ 714,
674
+ 825,
675
+ 785
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "Proposition 2. (Gap Regularization) Consider the following minimization problem ",
682
+ "bbox": [
683
+ 176,
684
+ 787,
685
+ 730,
686
+ 804
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "equation",
692
+ "img_path": "images/4d55d21ba9fb626e38a88367e6f69bd726ccbd5d85d63fc7ac2f2b5a16263728.jpg",
693
+ "text": "$$\n\\operatorname* { m i n } _ { f \\in \\mathcal { H } } \\mathbb { E } _ { ( x , y ) \\sim P } [ \\ell ( f ( x ) , y ) ] + \\frac { \\lambda _ { 1 } } { 2 } \\Delta \\mathrm { D } \\mathbf { P } ( f ) ^ { 2 } + \\frac { \\lambda _ { 2 } } { 2 } | | f | | _ { \\mathcal { H } } ^ { 2 } .\n$$",
694
+ "text_format": "latex",
695
+ "bbox": [
696
+ 316,
697
+ 808,
698
+ 678,
699
+ 840
700
+ ],
701
+ "page_idx": 4
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "For a fixed embedding $\\Phi$ , the optimal solution $f ^ { * }$ corresponds to $v ^ { * }$ given by the following closed form: ",
706
+ "bbox": [
707
+ 173,
708
+ 844,
709
+ 823,
710
+ 872
711
+ ],
712
+ "page_idx": 4
713
+ },
714
+ {
715
+ "type": "equation",
716
+ "img_path": "images/4d867026648383ccf4c3fd63a06660263c54666f130d9fce45bfaf5c0b834cf6.jpg",
717
+ "text": "$$\nv ^ { \\ast } = \\frac { 1 } { \\lambda _ { 2 } } \\left( \\delta _ { \\pm } - p r o j _ { \\delta _ { 0 , 1 } } ^ { \\frac { \\lambda _ { 2 } } { \\lambda _ { 1 } } } ( \\delta _ { \\pm } ) \\right) ,\n$$",
718
+ "text_format": "latex",
719
+ "bbox": [
720
+ 390,
721
+ 872,
722
+ 606,
723
+ 906
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "where proj is the soft projection defined as p $\\begin{array} { r } { r o j _ { u } ^ { \\beta } ( x ) = \\frac { u \\otimes u } { | | u | | ^ { 2 } + \\beta } x } \\end{array}$ ",
730
+ "bbox": [
731
+ 173,
732
+ 909,
733
+ 609,
734
+ 928
735
+ ],
736
+ "page_idx": 4
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "The solution $v ^ { * }$ can be interpreted as the projection of the label discriminating direction $\\delta _ { \\pm }$ on the subspace that is orthogonal to the group discriminating direction $\\delta _ { 0 , 1 }$ . By projecting to this orthogonal subspace, we can prevent the model from using group specific directions, that are unfair directions when performing prediction. Interestingly, the projection trick has been used in Zhang et al. (2018a), where they subtract the gradient of the model parameters in each update step with its projection on unfair directions. We then prove the optimal solution of fair mixup with the same setup as above. Similarly, we introduce an L2 variant of the fair mixup regularizer defined as follows: ",
741
+ "bbox": [
742
+ 173,
743
+ 103,
744
+ 825,
745
+ 202
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "equation",
751
+ "img_path": "images/c62ca313c2dd422a031ffb73f0acb011cd2dd7bf4a4c3137d5f0791052b6684a.jpg",
752
+ "text": "$$\nR _ { \\mathrm { m i x u p } } ^ { \\mathrm { D P - 2 } } ( f ) = \\int _ { 0 } ^ { 1 } \\bigg | \\int \\left. \\nabla _ { x } f ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) , x _ { 0 } - x _ { 1 } \\right. d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) \\bigg | ^ { 2 } d t ,\n$$",
753
+ "text_format": "latex",
754
+ "bbox": [
755
+ 243,
756
+ 207,
757
+ 754,
758
+ 244
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "where we consider the squared absolute value of the derivative within the integral, in order to get a closed form solution. ",
765
+ "bbox": [
766
+ 173,
767
+ 250,
768
+ 825,
769
+ 277
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "Proposition 3. (Fair Mixup) Consider the following minimization problem ",
776
+ "bbox": [
777
+ 176,
778
+ 281,
779
+ 674,
780
+ 297
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "equation",
786
+ "img_path": "images/3ce9fd8c4e32d94c1fe2898c9a51885895ea8eb6de1c8b5d86cd4e1e2436d24d.jpg",
787
+ "text": "$$\n\\operatorname* { m i n } _ { f \\in \\mathcal { H } } \\mathbb { E } _ { ( x , y ) \\sim P } [ \\ell ( f ( x ) , y ) ] + \\frac { \\lambda _ { 1 } } { 2 } R _ { \\mathrm { m i x u p } } ^ { \\mathrm { D P - 2 } } ( f ) + \\frac { \\lambda _ { 2 } } { 2 } | | f | | _ { \\mathcal { H } } ^ { 2 } .\n$$",
788
+ "text_format": "latex",
789
+ "bbox": [
790
+ 316,
791
+ 303,
792
+ 679,
793
+ 335
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Let $m _ { t } = \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } [ \\Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ]$ be the $t$ dependent mean embedding, and $\\dot { m } _ { t }$ its derivative with respect to $t$ . Let $D$ be a positive-semi definite matrix defined as follows: $D =$ $\\begin{array} { r } { \\int _ { 0 } ^ { 1 } { \\dot { m _ { t } } } \\otimes { \\dot { m } } _ { t } d t } \\end{array}$ . Given an embedding $\\Phi$ , the optimal solution $v ^ { * }$ has the following form: ",
800
+ "bbox": [
801
+ 173,
802
+ 340,
803
+ 825,
804
+ 387
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "equation",
810
+ "img_path": "images/d046f3698b5a8103f9e73c80eb18b0209a7230e8e2af8c3c1c03fa4aa4c001b7.jpg",
811
+ "text": "$$\nv ^ { * } = ( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\delta _ { \\pm } .\n$$",
812
+ "text_format": "latex",
813
+ "bbox": [
814
+ 408,
815
+ 395,
816
+ 589,
817
+ 412
818
+ ],
819
+ "page_idx": 5
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Hence the optimal fair mixup classifier can be finally written as : ",
824
+ "bbox": [
825
+ 173,
826
+ 426,
827
+ 599,
828
+ 440
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "equation",
834
+ "img_path": "images/57b044f5d2b575b6b0af656450a5612a85b1478aaf48dc56bd66bd1d393b3ae8.jpg",
835
+ "text": "$$\nf ( x ) = \\left. \\delta _ { \\pm } , ( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\Phi ( x ) \\right. ,\n$$",
836
+ "text_format": "latex",
837
+ "bbox": [
838
+ 370,
839
+ 446,
840
+ 625,
841
+ 465
842
+ ],
843
+ "page_idx": 5
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "which means that fair mixup changes the geometry of the decision boundary via a new dot product in the feature space that ensures group fairness, instead of simply projecting on the subspace orthogonal to a single direction as in gap regularization. This dot product leads to a Mahalanobis distance in the feature space that is defined via the covariance of time derivatives of mean embeddings of intermediate densities between the groups. To understand this better, given two points $x _ { 0 }$ in group 0 and $x _ { 1 }$ in group 1, by the mean value theorem, there exists $x _ { c }$ such that: ",
848
+ "bbox": [
849
+ 173,
850
+ 470,
851
+ 825,
852
+ 554
853
+ ],
854
+ "page_idx": 5
855
+ },
856
+ {
857
+ "type": "equation",
858
+ "img_path": "images/fa7a7e29d36776eb1fcfe80496880e3f38e11f98238ab0e78f820aced4331c27.jpg",
859
+ "text": "$$\nf ( x _ { 0 } ) = f ( x _ { 1 } ) + \\langle \\nabla f ( x _ { c } ) , x _ { 0 } - x _ { 1 } \\rangle = f ( x _ { 1 } ) + \\langle \\delta _ { \\pm } , ( \\lambda _ { 1 } D + \\lambda _ { 2 } I ) ^ { - 1 } J \\Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } ) \\rangle\n$$",
860
+ "text_format": "latex",
861
+ "bbox": [
862
+ 200,
863
+ 559,
864
+ 795,
865
+ 579
866
+ ],
867
+ "page_idx": 5
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Note that $D$ provides the correct average conditioning for $J \\Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } )$ , this can be seen from the expression of $\\dot { m } _ { t }$ $\\mathrm { D }$ is a covariance of $J \\Phi ( x _ { c } ) ( x _ { 0 } - x _ { 1 } ) )$ . This conditioned Jacobian ensures that the function does not fluctuate a lot between the groups, which matches our motivation. ",
872
+ "bbox": [
873
+ 174,
874
+ 585,
875
+ 825,
876
+ 628
877
+ ],
878
+ "page_idx": 5
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "6 EXPERIMENTS ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 174,
886
+ 647,
887
+ 326,
888
+ 664
889
+ ],
890
+ "page_idx": 5
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "We now examine fair mixup with binary classification tasks on tabular benchmarks (Adult), visual recognition (CelebA), and language dataset (Toxicity). For evaluation, we show the trade-offs between average precision (AP) and fairness metrics (∆DP/∆EO) by varying the hyper-parameter $\\lambda$ in the objective. We evaluate both AP and fairness metrics on a testing set to assess the generalizability of learned models. For a fair comparison, we will compare fair mixup with baselines that optimize the fairness constraint at training time. In particular, we compare our method with (a) empirical risk minimization (ERM) that trains the model without regularization, (b) gap regularization, which directly regularizes the model as given in Equation (1), and (c) adversarial debiasing (Zhang et al., 2018a) introduced in section 2. Details about the baselines and experimental setups for each dataset can be found in appendix. ",
895
+ "bbox": [
896
+ 174,
897
+ 671,
898
+ 825,
899
+ 811
900
+ ],
901
+ "page_idx": 5
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "6.1 ADULT ",
906
+ "text_level": 1,
907
+ "bbox": [
908
+ 174,
909
+ 828,
910
+ 264,
911
+ 842
912
+ ],
913
+ "page_idx": 5
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "UCI Adult dataset (Dua & Graff, 2017) contains information about over 40,000 individuals from the 1994 US Census. The task is to predict whether the income of a person is greater than $\\$ 50 k$ given attributes about the person. We consider gender as the sensitive attribute to measure the fairness of the algorithms. The models are two-layer ReLU networks with hidden size 200. We only evaluate input mixup for Adult dataset as the network is not deep enough to produce meaningful latent representations. We retrain each model 10 times and report the mean accuracy and fairness measurement. In each trial, the dataset is randomly randomly split into a training, validation, and testing set with partition $6 0 \\%$ , $2 0 \\%$ , and $2 0 \\%$ , respectively. The models are then selected via the performance on the validation set. ",
918
+ "bbox": [
919
+ 174,
920
+ 853,
921
+ 823,
922
+ 924
923
+ ],
924
+ "page_idx": 5
925
+ },
926
+ {
927
+ "type": "image",
928
+ "img_path": "images/65119c01cf273da95a9c7b11d1c847be39533ab6522f39237b1ebb31640cc3e3.jpg",
929
+ "image_caption": [
930
+ "Figure 3: Adult Dataset. (a,b) The tradeoff between AP and $\\Delta \\mathrm { D P } / \\Delta \\mathrm { E O }$ . (c) Visualization of the mixup path for models that regularize $\\Delta \\mathbf { D P }$ with different algorithms. We plot the calibrated curve $\\mu _ { f } ^ { \\prime } ( t ) : = \\mu _ { f } ( t ) - \\mu _ { f } ( 0 )$ for a better visualization. In this case, $\\mu _ { f } ^ { \\prime } ( 0 ) = 0$ and $| \\mu _ { f } ^ { \\prime } ( 1 ) | = \\Delta \\mathrm { D P }$ for all the calibrated curves $\\mu _ { f } ^ { \\prime }$ . Therefore, we can compare the $\\Delta \\mathbf { D P }$ of each method with the absolute value of the last points $\\dot { \\boldsymbol { t } } = 1$ ). The flatness of the path is highly correlated with the $\\Delta \\mathbf { D P }$ . "
931
+ ],
932
+ "image_footnote": [],
933
+ "bbox": [
934
+ 176,
935
+ 101,
936
+ 818,
937
+ 236
938
+ ],
939
+ "page_idx": 6
940
+ },
941
+ {
942
+ "type": "image",
943
+ "img_path": "images/51df03dd15d33607d8544c1de791d40c1c14596e4980ebf195ec0f7dab5ce072.jpg",
944
+ "image_caption": [
945
+ "Figure 4: CelebA Dataset. The tradeoff between AP and $\\Delta \\mathrm { D P } / \\Delta \\mathrm { E O }$ are shown in the first/second row for each task. Manifold mixup consistently outperforms the baseline across tasks. "
946
+ ],
947
+ "image_footnote": [],
948
+ "bbox": [
949
+ 173,
950
+ 353,
951
+ 823,
952
+ 619
953
+ ],
954
+ "page_idx": 6
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "",
959
+ "bbox": [
960
+ 174,
961
+ 694,
962
+ 825,
963
+ 750
964
+ ],
965
+ "page_idx": 6
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Figures 3 (a) shows the tradeoff between AP and $\\Delta \\mathbf { D P }$ . We can see that fair mixup consistently achieves a better tradeoff compared to the baselines. We then show the tradeoff between AP and $\\Delta \\mathrm { E O }$ in figure 3 (b). For this metric, fair mixup performs slightly better than directly regularizing the EO gap. Interestingly, fair mixup even achieves a better AP compared to ERM, indicating that mixup regularization not only improves the generalization of fairness constraints but also overall accuracy. To understand the effect of fair mixup, we visualize the expected output $\\mu _ { f }$ along the path for each method (i.e $\\mu _ { f }$ as function of $t$ ). For a fair comparison, we select the models that have similar AP for the visualization. As we can see in figure 3 (c), the flatness of the path is highly correlated to $\\Delta \\mathbf { D P }$ . Traininig without any regularization leads to the largest derivative along the path, which eventually leads to large $\\Delta \\mathbf { D P }$ . All the fairness-aware algorithms regularize the slope to some extent, nevertheless, fair mixup achieves the shortest arc length and hence leads to the smallest $\\Delta \\mathbf { D P }$ . ",
970
+ "bbox": [
971
+ 173,
972
+ 757,
973
+ 825,
974
+ 922
975
+ ],
976
+ "page_idx": 6
977
+ },
978
+ {
979
+ "type": "image",
980
+ "img_path": "images/4a08b04e57db355f94da875c45227322763730847d175188284e9fc94c21a7a0.jpg",
981
+ "image_caption": [
982
+ "Figure 5: Visualization of calibrated paths on attractive classification task for $\\Delta \\mathbf { D P }$ regularized models. The flatness of both input and latent path plays an important role in regularizing $\\Delta \\mathbf { D P }$ . "
983
+ ],
984
+ "image_footnote": [],
985
+ "bbox": [
986
+ 173,
987
+ 102,
988
+ 627,
989
+ 244
990
+ ],
991
+ "page_idx": 7
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "6.2 CELEBA ",
996
+ "text_level": 1,
997
+ "bbox": [
998
+ 173,
999
+ 266,
1000
+ 274,
1001
+ 280
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Next, we show that fair mixup generalizes well to high-dimensional tasks with the CelebA face attributes dataset (Liu et al.). CelebA contains over 200,000 images of celebrity faces, where each image is associated with 40 human-labeled binary attributes including gender. Among the attributes, we select attractive, smile, and wavy hair and use them to form three binary classification tasks while treating gender as the sensitive attribute2. The reason we choose these three attributes is that there exists in all these tasks, a sensitive group that has more positive samples than the other one. For each task, we train a ResNet-18 (He et al., 2016) along with two hidden layers for final prediction. To implement manifold fair mixup, we interpolate the representations before the average pooling layer. ",
1008
+ "bbox": [
1009
+ 174,
1010
+ 294,
1011
+ 825,
1012
+ 406
1013
+ ],
1014
+ "page_idx": 7
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "The first row in figure 4 shows the tradeoff between AP and $\\Delta \\mathbf { D P }$ for each task. Again, fair mixup consistently outperforms the baselines by a large margin. We also observe that manifold mixup further boosts the performance for all the tasks. The tradeoffs between AP and $\\Delta \\mathrm { E O }$ are shown in the second row of figure 4. Again, both input mixup and manifold mixup yields well generalizing classifiers. To gain further insights, we plot the path in both input space and latent space in figure 5 (a) and (b) for the “attractive” attribute classification task. Fair mixup leads to a smoother path in both cases. Without mixup augmentation, gap regularization and adversarial debiasing present similar paths and both have larger $\\Delta \\mathbf { D P }$ . We also observe that the expected output $\\mu _ { f }$ in the latent path is almost linear with respect to the continuous sensitive attribute $t$ , manifold mixup being the curve with the smallest slope and hence smallest $\\Delta \\mathbf { D P }$ . ",
1019
+ "bbox": [
1020
+ 173,
1021
+ 412,
1022
+ 825,
1023
+ 551
1024
+ ],
1025
+ "page_idx": 7
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "6.3 TOXICITY CLASSIFICATION ",
1030
+ "text_level": 1,
1031
+ "bbox": [
1032
+ 176,
1033
+ 583,
1034
+ 405,
1035
+ 597
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Lastly, we consider comment toxicity classification with Jigsaw toxic comment dataset (Jigsaw, 2018). The data was initially released by Civil Comments platform, which was then extended to a public Kaggle challenge. The task is to predict whether a comment is toxic or not while being fair across groups. A subset of comments have been labeled with identity attributes, including gender and race. It has been shown that some of the identities (e.g., black) are correlated with the toxicity label. In this work, we consider race as the sensitive attribute and select the subset of comments that contain identities black or asian, as these two groups have the largest gap in terms of probability of being associated with a toxic comment. We use pretrained BERT embeddings (Devlin et al., 2019) to encode each comment into a vector of size 768. A three layer ReLU network is then trained to perform the prediction with the encoded feature. We directly adopt manifold mixup since input mixup is equivalent to manifold mixup by simply setting the encoder $g$ to BERT. Similarly, we retrain each model 10 times using randomly split training, validation, and testing sets, and report mean accuracy and fairness measurement. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 604,
1045
+ 825,
1046
+ 784
1047
+ ],
1048
+ "page_idx": 7
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Figures 6 (a) and (b) show the tradeoff between AP and $\\Delta \\mathrm { D P } / \\Delta \\mathrm { E O }$ , respectively. Again, fair mixup consistently achieves a better tradeoff for both $\\Delta \\mathbf { D P }$ and $\\Delta \\mathrm { E O }$ . We then show the visualization of calibrated paths for $\\Delta \\mathbf { D P }$ -regularized models in Figure 6 (c). We can see that even with the powerful BERT embedding, all the baselines present fluctuated paths with similar patterns. In contrast, fair mixup introduces a nearly linear curve with a small slope, which eventually leads to the smallest $\\Delta \\mathbf { D P }$ . ",
1053
+ "bbox": [
1054
+ 173,
1055
+ 791,
1056
+ 825,
1057
+ 875
1058
+ ],
1059
+ "page_idx": 7
1060
+ },
1061
+ {
1062
+ "type": "image",
1063
+ "img_path": "images/e2af1e74704552b1d41bd209c55ee361e444a6f4773390df8b1bfebb5ea6f099.jpg",
1064
+ "image_caption": [
1065
+ "Figure 6: Toxic Classification (a,b) The tradeoff between AP and $\\Delta \\mathrm { D P } / \\Delta \\mathrm { E O }$ . (c) Visualization of the calibrated paths for models that regularize $\\Delta \\mathbf { D P }$ with different algorithms. Interestingly, fair mixup presents a nearly linear curve with small slope, while the baselines introduce “inverted-U” shaped curves. "
1066
+ ],
1067
+ "image_footnote": [],
1068
+ "bbox": [
1069
+ 173,
1070
+ 99,
1071
+ 825,
1072
+ 239
1073
+ ],
1074
+ "page_idx": 8
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "7 CONCLUSION ",
1079
+ "text_level": 1,
1080
+ "bbox": [
1081
+ 176,
1082
+ 327,
1083
+ 318,
1084
+ 342
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "In this work, we propose fair mixup, a data augmentation strategy to optimize fairness constraints. By bridging sensitive groups with interpolated samples, fair mixup consistently improves the generalizability of fairness constraints across benchmarks with different modalities. Interesting future directions include (1) generating interpolated samples that lie on the natural data manifold with generative models or via dynamic optimal transport paths between the groups (Benamou & Brenier, 2000), (2) extending fair mixup to other group fairness metrics such as accuracy equality, and (3) estimating the generalization of fairness constraints (Chuang et al., 2020). ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 348,
1094
+ 825,
1095
+ 445
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "REFERENCES ",
1102
+ "text_level": 1,
1103
+ "bbox": [
1104
+ 174,
1105
+ 468,
1106
+ 285,
1107
+ 483
1108
+ ],
1109
+ "page_idx": 8
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Alekh Agarwal, Alina Beygelzimer, Miroslav Dudik, John Langford, and Hanna Wallach. A reductions approach to fair classification. In International Conference on Machine Learning, pp. 60–69, 2018. ",
1114
+ "bbox": [
1115
+ 173,
1116
+ 492,
1117
+ 821,
1118
+ 534
1119
+ ],
1120
+ "page_idx": 8
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Solon Barocas, Moritz Hardt, and Arvind Narayanan. Fairness and Machine Learning. fairmlbook.org, 2019. http://www.fairmlbook.org. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 545,
1128
+ 820,
1129
+ 575
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Jean-David Benamou and Yann Brenier. A computational fluid mechanics solution to the MongeKantorovich mass transfer problem. Numerische Mathematik, 2000. ",
1136
+ "bbox": [
1137
+ 173,
1138
+ 585,
1139
+ 821,
1140
+ 614
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Richard Berk, Hoda Heidari, Shahin Jabbari, Michael Kearns, and Aaron Roth. Fairness in criminal justice risk assessments: The state of the art. Sociological Methods & Research, pp. 0049124118782533, 2018. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 626,
1150
+ 821,
1151
+ 667
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "David Berthelot, Colin Raffel, Aurko Roy, and Ian Goodfellow. Understanding and improving interpolation in autoencoders via an adversarial regularizer. In International Conference on Learning Representations, 2018. ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 679,
1161
+ 823,
1162
+ 722
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Piotr Bojanowski, Armand Joulin, David Lopez-Pas, and Arthur Szlam. Optimizing the latent space of generative networks. In International Conference on Machine Learning, pp. 600–609, 2018. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 733,
1172
+ 821,
1173
+ 762
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Alvin Chan, Yi Tay, Yew Soon Ong, and Jie Fu. Jacobian adversarially regularized networks for robustness. In International Conference on Learning Representations, 2019. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 772,
1183
+ 821,
1184
+ 803
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Ching-Yao Chuang, Antonio Torralba, and Stefanie Jegelka. Estimating generalization under distribution shifts via domain-invariant representations. International Conference on Machine Learning, 2020. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 814,
1194
+ 823,
1195
+ 856
1196
+ ],
1197
+ "page_idx": 8
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Andrew Cotter, Maya Gupta, Heinrich Jiang, Nathan Srebro, Karthik Sridharan, Serena Wang, Blake Woodworth, and Seungil You. Training well-generalizing classifiers for fairness metrics and other data-dependent constraints. In International Conference on Machine Learning, pp. 1397–1405, 2019. ",
1202
+ "bbox": [
1203
+ 176,
1204
+ 867,
1205
+ 825,
1206
+ 922
1207
+ ],
1208
+ "page_idx": 8
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT (1), 2019. ",
1213
+ "bbox": [
1214
+ 171,
1215
+ 103,
1216
+ 823,
1217
+ 133
1218
+ ],
1219
+ "page_idx": 9
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Harris Drucker and Yann LeCun. Improving generalization performance using double backpropagation. IEEE Transactions on Neural Networks, 1992. ",
1224
+ "bbox": [
1225
+ 171,
1226
+ 142,
1227
+ 821,
1228
+ 171
1229
+ ],
1230
+ "page_idx": 9
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml. ",
1235
+ "bbox": [
1236
+ 173,
1237
+ 180,
1238
+ 820,
1239
+ 210
1240
+ ],
1241
+ "page_idx": 9
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Richard Zemel. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214–226, 2012. ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 219,
1249
+ 821,
1250
+ 262
1251
+ ],
1252
+ "page_idx": 9
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Moritz Hardt, Eric Price, and Nati Srebro. Equality of opportunity in supervised learning. In Advances in neural information processing systems, pp. 3315–3323, 2016. ",
1257
+ "bbox": [
1258
+ 169,
1259
+ 272,
1260
+ 823,
1261
+ 301
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "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. ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 310,
1271
+ 823,
1272
+ 354
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Alex Hernandez-Garc ´ ´ıa and Peter Konig. Data augmentation instead of explicit regularization. ¨ arXiv preprint arXiv:1806.03852, 2018. ",
1279
+ "bbox": [
1280
+ 171,
1281
+ 363,
1282
+ 825,
1283
+ 392
1284
+ ],
1285
+ "page_idx": 9
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Judy Hoffman, Daniel A Roberts, and Sho Yaida. Robust learning with jacobian regularization. arXiv preprint arXiv:1908.02729, 2019. ",
1290
+ "bbox": [
1291
+ 171,
1292
+ 401,
1293
+ 823,
1294
+ 431
1295
+ ],
1296
+ "page_idx": 9
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Jigsaw. Jigsaw unintended bias in toxicity classification, 2018. URL https://www.kaggle. com/c/jigsaw-unintended-bias-in-toxicity-classification. ",
1301
+ "bbox": [
1302
+ 171,
1303
+ 440,
1304
+ 820,
1305
+ 470
1306
+ ],
1307
+ "page_idx": 9
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1312
+ "bbox": [
1313
+ 171,
1314
+ 479,
1315
+ 823,
1316
+ 508
1317
+ ],
1318
+ "page_idx": 9
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Large-scale celebfaces attributes (celeba) dataset. ",
1323
+ "bbox": [
1324
+ 173,
1325
+ 518,
1326
+ 823,
1327
+ 547
1328
+ ],
1329
+ "page_idx": 9
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015. ",
1334
+ "bbox": [
1335
+ 174,
1336
+ 556,
1337
+ 821,
1338
+ 587
1339
+ ],
1340
+ "page_idx": 9
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations. International Conference on Machine Learning, 2018. ",
1345
+ "bbox": [
1346
+ 173,
1347
+ 594,
1348
+ 823,
1349
+ 626
1350
+ ],
1351
+ "page_idx": 9
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "Bahar Taskesen, Viet Anh Nguyen, Daniel Kuhn, and Jose Blanchet. A distributionally robust approach to fair classification. arXiv preprint arXiv:2007.09530, 2020. ",
1356
+ "bbox": [
1357
+ 173,
1358
+ 633,
1359
+ 825,
1360
+ 665
1361
+ ],
1362
+ "page_idx": 9
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In International Conference on Machine Learning, pp. 6438–6447. PMLR, 2019. ",
1367
+ "bbox": [
1368
+ 176,
1369
+ 672,
1370
+ 823,
1371
+ 717
1372
+ ],
1373
+ "page_idx": 9
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "Dennis Wei, Karthikeyan Natesan Ramamurthy, and Flavio du Pin Calmon. Optimized score transformation for fair classification. arXiv preprint arXiv:1906.00066, 2019. ",
1378
+ "bbox": [
1379
+ 173,
1380
+ 726,
1381
+ 823,
1382
+ 756
1383
+ ],
1384
+ "page_idx": 9
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "Blake Woodworth, Suriya Gunasekar, Mesrob I Ohannessian, and Nathan Srebro. Learning nondiscriminatory predictors. In Conference on Learning Theory, pp. 1920–1953, 2017. ",
1389
+ "bbox": [
1390
+ 171,
1391
+ 763,
1392
+ 821,
1393
+ 795
1394
+ ],
1395
+ "page_idx": 9
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Mikhail Yurochkin, Amanda Bower, and Yuekai Sun. Training individually fair ml models with sensitive subspace robustness. In International Conference on Learning Representations, 2019. ",
1400
+ "bbox": [
1401
+ 171,
1402
+ 803,
1403
+ 821,
1404
+ 833
1405
+ ],
1406
+ "page_idx": 9
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez Rogriguez, and Krishna P Gummadi. Fairness constraints: Mechanisms for fair classification. In Artificial Intelligence and Statistics, pp. 962–970. PMLR, 2017. ",
1411
+ "bbox": [
1412
+ 173,
1413
+ 842,
1414
+ 823,
1415
+ 886
1416
+ ],
1417
+ "page_idx": 9
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International Conference on Machine Learning, pp. 325–333, 2013. ",
1422
+ "bbox": [
1423
+ 173,
1424
+ 895,
1425
+ 821,
1426
+ 924
1427
+ ],
1428
+ "page_idx": 9
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating unwanted biases with adversarial learning. In Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, pp. 335–340, 2018a. ",
1433
+ "bbox": [
1434
+ 174,
1435
+ 103,
1436
+ 823,
1437
+ 145
1438
+ ],
1439
+ "page_idx": 10
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016. ",
1444
+ "bbox": [
1445
+ 174,
1446
+ 155,
1447
+ 823,
1448
+ 184
1449
+ ],
1450
+ "page_idx": 10
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018b. ",
1455
+ "bbox": [
1456
+ 174,
1457
+ 193,
1458
+ 823,
1459
+ 222
1460
+ ],
1461
+ "page_idx": 10
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "A PROOFS ",
1466
+ "text_level": 1,
1467
+ "bbox": [
1468
+ 174,
1469
+ 102,
1470
+ 277,
1471
+ 118
1472
+ ],
1473
+ "page_idx": 11
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "A.1 PROOF OF LEMMA 1 ",
1478
+ "bbox": [
1479
+ 174,
1480
+ 132,
1481
+ 359,
1482
+ 147
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Lemma 1. Let $T : \\mathcal { X } ^ { 2 } \\times [ 0 , 1 ] \\to \\mathcal { X }$ be a function continuously differentiable w.r.t. t such that $T ( x _ { 0 } , x _ { 1 } , 0 ) = x _ { 0 }$ and $T ( x _ { 0 } , x _ { 1 } , 1 ) = x _ { 1 }$ . For any differentiable function $f$ , we have ",
1489
+ "bbox": [
1490
+ 171,
1491
+ 157,
1492
+ 825,
1493
+ 189
1494
+ ],
1495
+ "page_idx": 11
1496
+ },
1497
+ {
1498
+ "type": "equation",
1499
+ "img_path": "images/ee5e7a7d2f4cf6b7667eba9998214d3cab41256131206d11593631da836e88fb.jpg",
1500
+ "text": "$$\n\\Delta \\mathrm { D P } ( f ) = \\left| \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\int f ( \\underbrace { T ( x _ { 0 } , x _ { 1 } , t ) } _ { \\mathrm { i n t e r p o l a t i o n } } ) d P _ { 0 } ( x _ { 0 } ) d P _ { 1 } ( x _ { 1 } ) d t \\right| .\n$$",
1501
+ "text_format": "latex",
1502
+ "bbox": [
1503
+ 302,
1504
+ 193,
1505
+ 696,
1506
+ 250
1507
+ ],
1508
+ "page_idx": 11
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Proof. The result follows from the fundamental theorem of calculus. In particular, given an interpolator $T$ , we first rewrite the $\\Delta \\mathbf { D P }$ with the $T$ : ",
1513
+ "bbox": [
1514
+ 173,
1515
+ 262,
1516
+ 821,
1517
+ 290
1518
+ ],
1519
+ "page_idx": 11
1520
+ },
1521
+ {
1522
+ "type": "equation",
1523
+ "img_path": "images/e8870937a7726c1f7b6cef82beae9f4d5291b3e7b6f8842dbb8422914ec7fa07.jpg",
1524
+ "text": "$$\n\\begin{array} { r l } & { \\Delta \\mathrm { D P } ( f ) = | \\mathbb { E } _ { x \\sim P _ { 0 } } f ( x ) - \\mathbb { E } _ { x \\sim P _ { 1 } } f ( x ) | } \\\\ & { \\qquad = | \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( x _ { 0 } ) - f ( x _ { 1 } ) | } \\\\ & { \\qquad = | \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 0 ) ) - \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 1 ) ) | . } \\end{array}\n$$",
1525
+ "text_format": "latex",
1526
+ "bbox": [
1527
+ 243,
1528
+ 292,
1529
+ 754,
1530
+ 349
1531
+ ],
1532
+ "page_idx": 11
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "Not that $\\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , t ) )$ is a real-valued continuous function on $t \\in [ 0 , 1 ]$ . Therefore, we have the following equivalence via the fundamental theorem of calculus: ",
1537
+ "bbox": [
1538
+ 168,
1539
+ 352,
1540
+ 825,
1541
+ 380
1542
+ ],
1543
+ "page_idx": 11
1544
+ },
1545
+ {
1546
+ "type": "equation",
1547
+ "img_path": "images/01f211037fa87723d3645aadd58763a68777e591ecff9829741da087f20b9022.jpg",
1548
+ "text": "$$\n\\begin{array} { l } { \\displaystyle \\Delta \\mathrm { D P } ( f ) = \\left| \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 0 ) ) - \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , 1 ) ) \\right| . } \\\\ { \\displaystyle \\qquad = \\left| \\int _ { 0 } ^ { 1 } \\frac { d } { d t } \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } f ( T ( x _ { 0 } , x _ { 1 } , t ) ) \\right| . } \\end{array}\n$$",
1549
+ "text_format": "latex",
1550
+ "bbox": [
1551
+ 241,
1552
+ 382,
1553
+ 754,
1554
+ 440
1555
+ ],
1556
+ "page_idx": 11
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "A.2 PROOF OF PROPOSITION 2 ",
1561
+ "text_level": 1,
1562
+ "bbox": [
1563
+ 174,
1564
+ 472,
1565
+ 400,
1566
+ 487
1567
+ ],
1568
+ "page_idx": 11
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "Proposition 2. (Gap Regularization) Consider the following minimization problem ",
1573
+ "bbox": [
1574
+ 174,
1575
+ 498,
1576
+ 728,
1577
+ 513
1578
+ ],
1579
+ "page_idx": 11
1580
+ },
1581
+ {
1582
+ "type": "equation",
1583
+ "img_path": "images/1eddad0023153d8c426a252c8f0e4183d7a363c1e2b580dca0257e2b06d45999.jpg",
1584
+ "text": "$$\n\\operatorname* { m i n } _ { f \\in \\mathcal { H } } \\mathbb { E } _ { ( x , y ) \\sim P } [ \\ell ( f ( x ) , y ) ] + \\frac { \\lambda _ { 1 } } { 2 } \\Delta \\mathrm { D } \\mathbf { P } ( f ) ^ { 2 } + \\frac { \\lambda _ { 2 } } { 2 } | | f | | _ { \\mathcal { H } } ^ { 2 } .\n$$",
1585
+ "text_format": "latex",
1586
+ "bbox": [
1587
+ 318,
1588
+ 517,
1589
+ 678,
1590
+ 549
1591
+ ],
1592
+ "page_idx": 11
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "For a fixed embedding $\\Phi$ , the optimal solution $f ^ { * }$ corresponds to $v ^ { * }$ given by following closed form: ",
1597
+ "bbox": [
1598
+ 178,
1599
+ 553,
1600
+ 818,
1601
+ 569
1602
+ ],
1603
+ "page_idx": 11
1604
+ },
1605
+ {
1606
+ "type": "equation",
1607
+ "img_path": "images/311f3a5c39967c49e667250728ba2c4e1e0c28bf158e22b16c25e6ea954336d7.jpg",
1608
+ "text": "$$\nv ^ { \\ast } = \\frac { 1 } { \\lambda _ { 2 } } \\left( \\delta _ { \\pm } - p r o j _ { \\delta _ { 0 , 1 } } ^ { \\frac { \\lambda _ { 2 } } { \\lambda _ { 1 } } } ( \\delta _ { \\pm } ) \\right) ,\n$$",
1609
+ "text_format": "latex",
1610
+ "bbox": [
1611
+ 390,
1612
+ 571,
1613
+ 606,
1614
+ 607
1615
+ ],
1616
+ "page_idx": 11
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "where proj is the soft projection defined as pro $\\begin{array} { r } { j _ { u } ^ { \\beta } ( x ) = \\frac { u \\otimes u } { | | u | | ^ { 2 } + \\beta } x } \\end{array}$ ",
1621
+ "bbox": [
1622
+ 173,
1623
+ 611,
1624
+ 609,
1625
+ 630
1626
+ ],
1627
+ "page_idx": 11
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "Proof. The problem above can be written as follows: ",
1632
+ "bbox": [
1633
+ 174,
1634
+ 643,
1635
+ 522,
1636
+ 659
1637
+ ],
1638
+ "page_idx": 11
1639
+ },
1640
+ {
1641
+ "type": "equation",
1642
+ "img_path": "images/73c25822909c5df0510a85b0dded1567596e84a5a60f98c860256799055d9e3a.jpg",
1643
+ "text": "$$\n\\operatorname* { m i n } _ { v \\in \\mathbb { R } ^ { m } } \\mathcal { L } ( v ) : = - ( \\langle v , \\delta _ { \\pm } \\rangle ) + \\frac { \\lambda _ { 1 } } { 2 } | \\langle v , \\delta _ { 0 , 1 } \\rangle | ^ { 2 } + \\frac { \\lambda _ { 2 } } { 2 } | | v | | _ { 2 } ^ { 2 }\n$$",
1644
+ "text_format": "latex",
1645
+ "bbox": [
1646
+ 316,
1647
+ 662,
1648
+ 679,
1649
+ 694
1650
+ ],
1651
+ "page_idx": 11
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "Setting first order condition to zero ",
1656
+ "bbox": [
1657
+ 174,
1658
+ 698,
1659
+ 406,
1660
+ 712
1661
+ ],
1662
+ "page_idx": 11
1663
+ },
1664
+ {
1665
+ "type": "equation",
1666
+ "img_path": "images/be626835ed51c60973edf74e142c62ca30979bd2bc3043fd2b4c7c27f4356939.jpg",
1667
+ "text": "$$\n\\begin{array} { r } { \\nabla _ { v } \\mathcal { L } ( v ) = - \\delta _ { \\pm } + \\lambda _ { 1 } \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } v + \\lambda _ { 2 } v = 0 , } \\end{array}\n$$",
1668
+ "text_format": "latex",
1669
+ "bbox": [
1670
+ 346,
1671
+ 717,
1672
+ 650,
1673
+ 734
1674
+ ],
1675
+ "page_idx": 11
1676
+ },
1677
+ {
1678
+ "type": "text",
1679
+ "text": "we obtain ",
1680
+ "bbox": [
1681
+ 174,
1682
+ 738,
1683
+ 240,
1684
+ 752
1685
+ ],
1686
+ "page_idx": 11
1687
+ },
1688
+ {
1689
+ "type": "equation",
1690
+ "img_path": "images/29c3db08e93c97b7ba5058c1e4eefbe1629dd79ec378e0364e10d361d5cfaf8c.jpg",
1691
+ "text": "$$\n( \\lambda _ { 1 } \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } + \\lambda _ { 2 } I _ { m } ) v ^ { \\ast } = \\delta _ { \\pm } .\n$$",
1692
+ "text_format": "latex",
1693
+ "bbox": [
1694
+ 388,
1695
+ 751,
1696
+ 607,
1697
+ 767
1698
+ ],
1699
+ "page_idx": 11
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "text": "By inverting and applying the Sherman-Morrison Lemma, we have ",
1704
+ "bbox": [
1705
+ 173,
1706
+ 768,
1707
+ 614,
1708
+ 784
1709
+ ],
1710
+ "page_idx": 11
1711
+ },
1712
+ {
1713
+ "type": "equation",
1714
+ "img_path": "images/b0776530b2091990ab3073b3333a9ba99731a8a30d0f0de831669d641911b554.jpg",
1715
+ "text": "$$\n\\begin{array} { l l l } { { v ^ { * } } } & { { = } } & { { \\displaystyle ( \\lambda _ { 1 } \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\delta _ { \\pm } } } \\\\ { { } } & { { = } } & { { \\displaystyle \\lambda _ { 1 } ^ { - 1 } \\left( \\frac { \\lambda _ { 2 } } { \\lambda _ { 1 } } I _ { m } + \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } \\right) ^ { - 1 } \\delta _ { \\pm } } } \\\\ { { } } & { { = } } & { { \\displaystyle \\lambda _ { 1 } ^ { - 1 } \\left( I _ { m } - \\frac { ( \\lambda _ { 1 } ) ^ { 2 } \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } } { 1 + | | \\delta _ { 0 , 1 } | | ^ { 2 } \\frac { \\lambda _ { 1 } } { \\lambda _ { 2 } } } \\right) \\delta _ { \\pm } } } \\\\ { { } } & { { = } } & { { \\displaystyle \\frac { 1 } { \\lambda _ { 2 } } \\left( I _ { m } - \\frac { \\delta _ { 0 , 1 } \\otimes \\delta _ { 0 , 1 } } { \\lambda _ { 2 } } \\right) \\delta _ { \\pm } . } } \\end{array}\n$$",
1716
+ "text_format": "latex",
1717
+ "bbox": [
1718
+ 349,
1719
+ 786,
1720
+ 645,
1721
+ 931
1722
+ ],
1723
+ "page_idx": 11
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "Note the soft projection on a vector $u$ is defined as follows: ",
1728
+ "bbox": [
1729
+ 173,
1730
+ 103,
1731
+ 562,
1732
+ 118
1733
+ ],
1734
+ "page_idx": 12
1735
+ },
1736
+ {
1737
+ "type": "equation",
1738
+ "img_path": "images/8f95f44e1f8ecef2c592c1ee7cfc13c1a5f7f7b8fbb188b9411bb92a55d8bc7b.jpg",
1739
+ "text": "$$\np r o j _ { u } ^ { \\beta } ( x ) = \\frac { u \\otimes u } { | | u | | ^ { 2 } + \\beta } x .\n$$",
1740
+ "text_format": "latex",
1741
+ "bbox": [
1742
+ 413,
1743
+ 121,
1744
+ 583,
1745
+ 154
1746
+ ],
1747
+ "page_idx": 12
1748
+ },
1749
+ {
1750
+ "type": "text",
1751
+ "text": "It follows that ",
1752
+ "bbox": [
1753
+ 173,
1754
+ 155,
1755
+ 267,
1756
+ 170
1757
+ ],
1758
+ "page_idx": 12
1759
+ },
1760
+ {
1761
+ "type": "equation",
1762
+ "img_path": "images/69c76bd47ced71cd85ab097eaea85965d873e614a28fa1e7440e21e091cfd9f9.jpg",
1763
+ "text": "$$\nv ^ { \\ast } = \\frac { 1 } { \\lambda _ { 2 } } \\left( \\delta _ { \\pm } - p r o j _ { \\delta _ { 0 , 1 } } ^ { \\frac { \\lambda _ { 2 } } { \\lambda _ { 1 } } } ( \\delta _ { \\pm } ) \\right) ,\n$$",
1764
+ "text_format": "latex",
1765
+ "bbox": [
1766
+ 390,
1767
+ 166,
1768
+ 606,
1769
+ 200
1770
+ ],
1771
+ "page_idx": 12
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "which can be interpreted as the projection of the label discriminating direction $\\delta _ { \\pm }$ on the subspace that is orthogonal to the group discriminating direction $\\delta _ { 0 , 1 }$ . □ ",
1776
+ "bbox": [
1777
+ 171,
1778
+ 200,
1779
+ 825,
1780
+ 229
1781
+ ],
1782
+ "page_idx": 12
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "A.3 PROOF OF PROPOSITION 3 ",
1787
+ "text_level": 1,
1788
+ "bbox": [
1789
+ 176,
1790
+ 244,
1791
+ 400,
1792
+ 260
1793
+ ],
1794
+ "page_idx": 12
1795
+ },
1796
+ {
1797
+ "type": "text",
1798
+ "text": "Proposition 3. (Fair Mixup) Consider the following minimization problem ",
1799
+ "bbox": [
1800
+ 174,
1801
+ 271,
1802
+ 673,
1803
+ 286
1804
+ ],
1805
+ "page_idx": 12
1806
+ },
1807
+ {
1808
+ "type": "equation",
1809
+ "img_path": "images/2e82b9c385f69e24aa0de610786988849f090c0e9411be6ae96be206343280e2.jpg",
1810
+ "text": "$$\n\\operatorname* { m i n } _ { f \\in \\mathcal { H } } \\mathbb { E } _ { ( x , y ) \\sim P } [ \\ell ( f ( x ) , y ) ] + \\frac { \\lambda _ { 1 } } { 2 } R _ { \\mathrm { m i x u p } } ^ { \\mathrm { D P - 2 } } ( f ) + \\frac { \\lambda _ { 2 } } { 2 } | | f | | _ { \\mathcal { H } } ^ { 2 } .\n$$",
1811
+ "text_format": "latex",
1812
+ "bbox": [
1813
+ 316,
1814
+ 289,
1815
+ 679,
1816
+ 320
1817
+ ],
1818
+ "page_idx": 12
1819
+ },
1820
+ {
1821
+ "type": "text",
1822
+ "text": "Define $m _ { t } = \\mathbb { E } _ { x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 } } [ \\Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ]$ be the $t$ dependent mean embedding, and $\\dot { m } _ { t }$ its derivative with respect to $t$ . Let $D$ be a positive-semi definite matrix defined as follows: $D =$ $\\begin{array} { r } { \\int _ { 0 } ^ { 1 } { \\dot { m _ { t } } } \\otimes { \\dot { m } } _ { t } d t } \\end{array}$ . Given an embedding $\\Phi$ , the optimal solution $v ^ { * }$ has the following form: ",
1823
+ "bbox": [
1824
+ 174,
1825
+ 324,
1826
+ 826,
1827
+ 371
1828
+ ],
1829
+ "page_idx": 12
1830
+ },
1831
+ {
1832
+ "type": "equation",
1833
+ "img_path": "images/655c2d919f19da1d68289d0217169148a5923a70d0250cb9899fba6ddeeabfcc.jpg",
1834
+ "text": "$$\nv ^ { * } = ( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\delta _ { \\pm } .\n$$",
1835
+ "text_format": "latex",
1836
+ "bbox": [
1837
+ 408,
1838
+ 375,
1839
+ 589,
1840
+ 393
1841
+ ],
1842
+ "page_idx": 12
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "Proof. For $t \\in [ 0 , 1 ]$ , we note by $\\rho _ { t }$ the distribution of $T ( x _ { 0 } , x _ { 1 } , t )$ , for $x _ { 0 } \\sim P _ { 0 } , x _ { 1 } \\sim P _ { 1 }$ , and note $m _ { t } = \\mathbb { E } _ { x \\sim \\rho _ { t } } \\Phi ( x )$ , and $\\dot { m } _ { t }$ its time derivative. We consider the $\\ell _ { 2 }$ variant of $R _ { T } ( f )$ in the analysis: ",
1847
+ "bbox": [
1848
+ 171,
1849
+ 406,
1850
+ 823,
1851
+ 436
1852
+ ],
1853
+ "page_idx": 12
1854
+ },
1855
+ {
1856
+ "type": "equation",
1857
+ "img_path": "images/f9e597fb4c637b15fa45f537e1aa1f8c3589f3eee91f6e0a0b47f47055e67bc3.jpg",
1858
+ "text": "$$\n\\begin{array} { r c l } { { R _ { T } ^ { 2 } ( f ) } } & { { = } } & { { \\displaystyle \\int _ { 0 } ^ { 1 } \\left| \\frac { d } { d t } \\mu _ { f } ( t ) \\right| ^ { 2 } d t = \\displaystyle \\int _ { 0 } ^ { 1 } \\left| \\frac { d } { d t } \\left. v , m _ { t } \\right. \\right| ^ { 2 } d t } } \\\\ { { } } & { { = } } & { { \\displaystyle \\int _ { 0 } ^ { 1 } | \\langle v , \\dot { m } _ { t } \\rangle | ^ { 2 } d t = \\left. v , \\left( \\displaystyle \\int _ { 0 } ^ { 1 } \\dot { m } _ { t } \\otimes \\dot { m } _ { t } d t \\right) v \\right. , } } \\end{array}\n$$",
1859
+ "text_format": "latex",
1860
+ "bbox": [
1861
+ 294,
1862
+ 440,
1863
+ 702,
1864
+ 516
1865
+ ],
1866
+ "page_idx": 12
1867
+ },
1868
+ {
1869
+ "type": "text",
1870
+ "text": "We then expand $\\dot { m } _ { t }$ when $T$ is mixup: ",
1871
+ "bbox": [
1872
+ 174,
1873
+ 516,
1874
+ 426,
1875
+ 531
1876
+ ],
1877
+ "page_idx": 12
1878
+ },
1879
+ {
1880
+ "type": "equation",
1881
+ "img_path": "images/cf53c0c7ac94e3021c46a38f18a4c87a1eb57352286626b68048abd7a0bb7c61.jpg",
1882
+ "text": "$$\n\\dot { m } _ { t } = \\frac { d } { d t } \\mathbb { E } _ { x _ { 0 } \\sim \\mathbb { P } _ { 0 } , x _ { 1 } \\sim \\mathbb { P } _ { 1 } } \\Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) = \\mathbb { E } _ { x _ { 0 } \\sim \\mathbb { P } _ { 0 } , x _ { 1 } \\sim \\mathbb { P } _ { 1 } } J \\Phi ( t x _ { 0 } + ( 1 - t ) x _ { 1 } ) ( x _ { 0 } - x _ { 1 } )\n$$",
1883
+ "text_format": "latex",
1884
+ "bbox": [
1885
+ 196,
1886
+ 535,
1887
+ 799,
1888
+ 564
1889
+ ],
1890
+ "page_idx": 12
1891
+ },
1892
+ {
1893
+ "type": "text",
1894
+ "text": "where $J$ denotes the Jacobian. Note that $\\begin{array} { r } { D = \\int _ { 0 } ^ { 1 } \\dot { m _ { t } } \\otimes \\dot { m } _ { t } d t } \\end{array}$ , hence for the classification with fair mixup regularizer, the problem is equivalent to: ",
1895
+ "bbox": [
1896
+ 174,
1897
+ 568,
1898
+ 820,
1899
+ 599
1900
+ ],
1901
+ "page_idx": 12
1902
+ },
1903
+ {
1904
+ "type": "equation",
1905
+ "img_path": "images/3e2d343fb1b750ec1c021dacafb21a0f5c9eb5ac33b6bb9e7fb2a1bc1d63105e.jpg",
1906
+ "text": "$$\n\\operatorname* { m i n } _ { v \\in \\mathbb { R } ^ { m } } \\mathcal { L } ( v ) : = - ( \\langle v , \\delta _ { \\pm } \\rangle ) + \\frac { \\lambda _ { 1 } } { 2 } \\langle v , D v \\rangle + \\frac { \\lambda _ { 2 } } { 2 } | | v | | _ { 2 } ^ { 2 }\n$$",
1907
+ "text_format": "latex",
1908
+ "bbox": [
1909
+ 326,
1910
+ 602,
1911
+ 669,
1912
+ 633
1913
+ ],
1914
+ "page_idx": 12
1915
+ },
1916
+ {
1917
+ "type": "text",
1918
+ "text": "Setting first order condition we obtain $( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) v ^ { \\ast } = \\delta _ { \\pm }$ , which gives the optimal solution ",
1919
+ "bbox": [
1920
+ 178,
1921
+ 645,
1922
+ 800,
1923
+ 661
1924
+ ],
1925
+ "page_idx": 12
1926
+ },
1927
+ {
1928
+ "type": "equation",
1929
+ "img_path": "images/8635fa88c098edfe50e795f251323e71a40036739d80c93aee29b84110a1b249.jpg",
1930
+ "text": "$$\nv ^ { * } = ( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\delta _ { \\pm } .\n$$",
1931
+ "text_format": "latex",
1932
+ "bbox": [
1933
+ 408,
1934
+ 664,
1935
+ 588,
1936
+ 683
1937
+ ],
1938
+ "page_idx": 12
1939
+ },
1940
+ {
1941
+ "type": "text",
1942
+ "text": "The corresponding optimal fair mixup classifier can be finally written as ",
1943
+ "bbox": [
1944
+ 174,
1945
+ 685,
1946
+ 648,
1947
+ 700
1948
+ ],
1949
+ "page_idx": 12
1950
+ },
1951
+ {
1952
+ "type": "equation",
1953
+ "img_path": "images/d0047c072fae0c32c353560f39081e7ab1984359aa0d5ccf975b699b8c9229ab.jpg",
1954
+ "text": "$$\nf ( x ) = \\left. \\delta _ { \\pm } , ( \\lambda _ { 1 } D + \\lambda _ { 2 } I _ { m } ) ^ { - 1 } \\Phi ( x ) \\right. .\n$$",
1955
+ "text_format": "latex",
1956
+ "bbox": [
1957
+ 370,
1958
+ 702,
1959
+ 625,
1960
+ 722
1961
+ ],
1962
+ "page_idx": 12
1963
+ },
1964
+ {
1965
+ "type": "text",
1966
+ "text": "B EXPERIMENT DETAILS ",
1967
+ "text_level": 1,
1968
+ "bbox": [
1969
+ 174,
1970
+ 758,
1971
+ 398,
1972
+ 775
1973
+ ],
1974
+ "page_idx": 12
1975
+ },
1976
+ {
1977
+ "type": "text",
1978
+ "text": "Adult We follow the preprocessing procedure of Yurochkin et al. (2019) by removing some features in the dataset3. We then encode the discrete and quantized continuous attributes with one-hot encoding. We retrain each model 10 times with batch size 1000 and report the mean accuracy and fairness measurement. The models are selected via the performance on validation set. In each trial, the dataset is randomly split into training and testing set with partition $8 0 \\%$ and $2 0 \\%$ , respectively. The models are optimized with Adam optimizer (Kingma & Ba, 2014) with learning rate $\\mathrm { \\bar { 1 } } \\times e ^ { - \\mathrm { \\bar { 3 } } }$ For DP, we sample 500 datapoints for each $A \\in \\{ 0 , 1 \\}$ to form a batch. Similarly, for EO, we sample 250 datapoints for each $( A , Y )$ pair where $A , Y \\in \\{ 0 , 1 \\}$ . ",
1979
+ "bbox": [
1980
+ 173,
1981
+ 789,
1982
+ 825,
1983
+ 902
1984
+ ],
1985
+ "page_idx": 12
1986
+ },
1987
+ {
1988
+ "type": "text",
1989
+ "text": "CelebA Model-wise, we extract the feature of size 512 after the average pooling layer of ResNet18. A two-layer ReLU network with hidden size 512 is then trained to perform prediction. Percentage of positive-labeled datapoints for attractive, wavy hair, and smiling that is male are $2 2 . 7 \\%$ , $1 8 . 3 6 \\%$ , and $3 4 . 6 \\%$ , respectively. We use the original validation set of CelebA to perform model selection and report the accuracy and fairness metrics on the testing set. The visualization paths are also plotted with respect to the testing data. To implement manifold mixup, we interpolate the spatial features before the average pooling layer. Similarly, all the models are optimized with Adam optimizer with learning rate $1 \\times e ^ { - 3 }$ . ",
1990
+ "bbox": [
1991
+ 173,
1992
+ 103,
1993
+ 825,
1994
+ 215
1995
+ ],
1996
+ "page_idx": 13
1997
+ },
1998
+ {
1999
+ "type": "text",
2000
+ "text": "Toxicity Classification We download the Jigsaw toxic comment dataset from Kaggle website4. Percentage of positive-labeled datapoints for black and asian are $1 8 . 8 \\%$ and $6 . 4 \\%$ , respectively, which together results in a dataset of size 22835. We retrain each model 10 times with batch size 200 and report the mean accuracy and fairness measurement. The models are selected via the performance on validation set. The batch-sampling and data splitting procedure is the same as the one for Adult dataset. The models are again optimized with Adam optimizer with learning rate $1 \\times e ^ { - 3 }$ . ",
2001
+ "bbox": [
2002
+ 174,
2003
+ 229,
2004
+ 825,
2005
+ 314
2006
+ ],
2007
+ "page_idx": 13
2008
+ },
2009
+ {
2010
+ "type": "text",
2011
+ "text": "C ADDITIONAL EXPERIMENTS ",
2012
+ "text_level": 1,
2013
+ "bbox": [
2014
+ 176,
2015
+ 334,
2016
+ 444,
2017
+ 351
2018
+ ],
2019
+ "page_idx": 13
2020
+ },
2021
+ {
2022
+ "type": "text",
2023
+ "text": "C.1 TRAINING PERFORMANCE ",
2024
+ "text_level": 1,
2025
+ "bbox": [
2026
+ 176,
2027
+ 366,
2028
+ 400,
2029
+ 380
2030
+ ],
2031
+ "page_idx": 13
2032
+ },
2033
+ {
2034
+ "type": "text",
2035
+ "text": "In Figure 7, we show the training performance for Adult dataset. As expected, GapReg outperforms Fair mixup on the training set since it directly optimizes the fairness metric. The results also support our motivation: the constraints that are satisfied during training might not generalize at evaluation time. ",
2036
+ "bbox": [
2037
+ 173,
2038
+ 391,
2039
+ 825,
2040
+ 446
2041
+ ],
2042
+ "page_idx": 13
2043
+ },
2044
+ {
2045
+ "type": "image",
2046
+ "img_path": "images/38d30429260f23fa3c4cb2c80e1c0feaa90205a73b7d9a5233050439ab5c215b.jpg",
2047
+ "image_caption": [
2048
+ "Figure 7: Training Performance on Adult Dataset. The tradeoff between AP and $\\Delta \\mathrm { D P } / \\Delta \\mathrm { E O }$ on training set. "
2049
+ ],
2050
+ "image_footnote": [],
2051
+ "bbox": [
2052
+ 271,
2053
+ 459,
2054
+ 725,
2055
+ 604
2056
+ ],
2057
+ "page_idx": 13
2058
+ },
2059
+ {
2060
+ "type": "text",
2061
+ "text": "C.2 EVALUATION METRIC ",
2062
+ "text_level": 1,
2063
+ "bbox": [
2064
+ 176,
2065
+ 683,
2066
+ 369,
2067
+ 696
2068
+ ],
2069
+ "page_idx": 13
2070
+ },
2071
+ {
2072
+ "type": "text",
2073
+ "text": "The relaxed evaluation metric could overestimate the performance when the predicted confidence is significantly different between groups. For instance, a classifier $f$ can be completely unfair while satisfying this condition: $f ( x ) { \\overset { } { = } } 1$ w.p. $60 \\%$ , 0 w.p. $40 \\%$ on $P _ { 0 }$ , and $f ( x ) \\stackrel { - } { = } 0 . 6$ w.p. $100 \\%$ on $P _ { 1 }$ . This satisfies this expectation-based condition. However, it is highly unfair if we binarize the prediction by setting the threshold $= 0 . 5$ . ",
2074
+ "bbox": [
2075
+ 173,
2076
+ 708,
2077
+ 826,
2078
+ 779
2079
+ ],
2080
+ "page_idx": 13
2081
+ },
2082
+ {
2083
+ "type": "text",
2084
+ "text": "To overcome this issue, let $f _ { t }$ be the binarized predictor $f _ { t } ( x ) = \\mathbb { 1 } ( f ( x ) \\geq t )$ , we evaluate the model with average $\\Delta \\mathrm { D P } ( \\overline { { \\Delta \\mathrm { D P } } } )$ defined as follows: ",
2085
+ "bbox": [
2086
+ 176,
2087
+ 785,
2088
+ 823,
2089
+ 815
2090
+ ],
2091
+ "page_idx": 13
2092
+ },
2093
+ {
2094
+ "type": "equation",
2095
+ "img_path": "images/809f942bbd7cf5549d0783e9339b7086aa23f6d0716830d0693892d616d6c001.jpg",
2096
+ "text": "$$\n\\begin{array} { r l } & { \\overline { { \\Delta \\mathrm { D P } } } ( f ) = \\displaystyle \\frac { 1 } { | T | } \\sum _ { t \\in \\mathcal { T } } \\left| \\mathbb { E } _ { \\boldsymbol { x } \\sim P _ { 0 } } f _ { t } ( \\boldsymbol { x } ) - \\mathbb { E } _ { \\boldsymbol { x } \\sim P _ { 1 } } f _ { t } ( \\boldsymbol { x } ) \\right| ; } \\\\ & { \\overline { { \\Delta \\mathrm { E O } } } ( f ) = \\displaystyle \\frac { 1 } { | T | } \\sum _ { t \\in \\mathcal { T } } \\sum _ { y \\in \\{ 0 , 1 \\} } \\left| \\mathbb { E } _ { \\boldsymbol { x } \\sim P _ { 0 } ^ { y } } f _ { t } ( \\boldsymbol { x } ) - \\mathbb { E } _ { \\boldsymbol { x } \\sim P _ { 1 } ^ { y } } f _ { t } ( \\boldsymbol { x } ) \\right| , } \\end{array}\n$$",
2097
+ "text_format": "latex",
2098
+ "bbox": [
2099
+ 302,
2100
+ 821,
2101
+ 694,
2102
+ 901
2103
+ ],
2104
+ "page_idx": 13
2105
+ },
2106
+ {
2107
+ "type": "text",
2108
+ "text": "where $\\tau$ is a set of threshold values. $\\overline { { \\Delta \\mathsf { D P } } }$ averages the $\\Delta \\mathbf { D P }$ with binarized predictions derived via different thresholds. For instance, by averaging the $\\Delta \\mathbf { D P }$ with thersholds $\\mathcal { T } = [ 0 . 1 , 0 . 2 , \\cdot \\cdot \\cdot , 0 . 9 ] ,$ , $\\overline { { \\Delta \\mathrm { D P } } } = 0 . 5$ instead of 0 for the example above, which captures the unfairness between groups. We report $\\overline { { \\Delta \\mathsf { D P } } }$ for each methods with thersholds $\\mathcal { T } = [ 0 . 1 , \\bar { 0 } . 2 , \\cdot \\cdot \\cdot . , 0 . 9 ]$ in Figure 8. Similarly, fair mixup exhibits the best tradeoff comparing to the baselines for demographic parity. For equalized odds, the performances of fair mixup and GapReg are similar, where fair mixup achieves a better tradeoff when $\\overline { { \\Delta \\mathrm { E O } } }$ is small. ",
2109
+ "bbox": [
2110
+ 173,
2111
+ 102,
2112
+ 826,
2113
+ 203
2114
+ ],
2115
+ "page_idx": 14
2116
+ },
2117
+ {
2118
+ "type": "image",
2119
+ "img_path": "images/5ee5e26b6b027b544d99a89cf0f68d7011e47bc42ed3d946f586dec59c345bb7.jpg",
2120
+ "image_caption": [
2121
+ "Figure 8: Average ∆DP and ∆EO on Adult Dataset. "
2122
+ ],
2123
+ "image_footnote": [],
2124
+ "bbox": [
2125
+ 236,
2126
+ 215,
2127
+ 758,
2128
+ 383
2129
+ ],
2130
+ "page_idx": 14
2131
+ },
2132
+ {
2133
+ "type": "text",
2134
+ "text": "C.3 SMALLER MODEL SIZE ",
2135
+ "text_level": 1,
2136
+ "bbox": [
2137
+ 174,
2138
+ 446,
2139
+ 380,
2140
+ 462
2141
+ ],
2142
+ "page_idx": 14
2143
+ },
2144
+ {
2145
+ "type": "text",
2146
+ "text": "To examine the effect of model size, we reduce the hidden size from 200 to 50 and show the result in Figure 9. Overall, the performance does not vary significantly after reducing the model size. We can again observe that fair mixup outperform the baselines for $\\Delta \\mathbf { D P }$ . Similar to the results in section C.2, the performances of fair mixup and GapReg are similar, where fair mixup achieves a better tradeoff when $\\Delta \\mathrm { E O }$ is small. ",
2147
+ "bbox": [
2148
+ 173,
2149
+ 472,
2150
+ 826,
2151
+ 541
2152
+ ],
2153
+ "page_idx": 14
2154
+ },
2155
+ {
2156
+ "type": "image",
2157
+ "img_path": "images/472cd71dd38bb056ebae1b91a67bd5645ae14173cedc6b390a003a86962f3536.jpg",
2158
+ "image_caption": [
2159
+ "Figure 9: Reducing the Model Size on Adult Dataset. "
2160
+ ],
2161
+ "image_footnote": [],
2162
+ "bbox": [
2163
+ 271,
2164
+ 555,
2165
+ 727,
2166
+ 700
2167
+ ],
2168
+ "page_idx": 14
2169
+ }
2170
+ ]
parse/train/DNl5s5BXeBn/DNl5s5BXeBn_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/DNl5s5BXeBn/DNl5s5BXeBn_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/FjnCWyzXu8m/FjnCWyzXu8m.md ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rethinking supervised learning: insights from biological learning and from calling it by its name
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ The renaissance of artificial neural networks was catalysed by the success of classification models, tagged by the community with the broader term supervised learning. The extraordinary results gave rise to a hype loaded with ambitious promises and overstatements. Soon the community realised that the success owed much to the availability of thousands of labelled examples and supervised learning went, for many, from glory to shame: Some criticised deep learning as a whole and others proclaimed that the way forward had to be “alternatives” to supervised learning: predictive, unsupervised, semi-supervised and, more recently, self-supervised learning. However, these seem all brand names, rather than actual categories of a theoretically grounded taxonomy. Moreover, the call to banish supervised learning was motivated by the questionable claim that humans learn with little or no supervision and are capable of robust out-of-distribution generalisation. Here, we review insights about learning and supervision in nature, revisit the notion that learning and generalization are not possible without supervision or inductive biases and argue that we will make better progress if we just call it by its name.
11
+
12
+ # 16 1 Introduction
13
+
14
+ 17 The re-emergence of deep learning during the last decade due to the noteworthy achievements
15
+ 18 of artificial neural networks (ANN) built up a sort of philosophy that nearly anything could be
16
+ 19 automatically learnt from data without human intervention, in contrast to the previous approaches:
17
+ 20 [hand designing good feature extractors, engineering skill and domain expertise]
18
+ 21 can all be avoided if good features can be learned automatically using a general
19
+ 22 purpose learning procedure. This is the key advantage of deep learning (LeCun
20
+ 23 et al., 2015).
21
+ 24 Read in hindsight, this claim was clearly an overstatement. The success of deep learning has
22
+ 25 required iterative hand design of network architectures and techniques that demanded collective, high
23
+ 26 engineering skill and large doses of interdisciplinary domain expertise. Furthermore, deep learning
24
+ 27 owes much to the immense computational power poured into training artificial networks (Amodei &
25
+ 28 Hernandez, 2018; Schwartz et al., 2019) and to the human effort of manually collecting and labelling
26
+ 29 thousands of images and other data modalities (Russakovsky et al., 2015; Cao et al., 2018). However,
27
+ 30 the gist of the claim has permeated machine learning research and is pervasive up to these days.
28
+ 31 The realisation that the success of deep learning was largely due to the availability of huge labelled data
29
+ 32 sets prompted various reactions: some authors strongly questioned the usefulness of the algorithms
30
+ 33 (Marcus, 2018); some delved into the question of whether neural networks generalise beyond or
31
+ 34 simply memorise the training examples (Zhang et al., 2017; Arpit et al., 2017); and some proposed
32
+ 35 new research horizons that can be overly ambitious and potentially misleading: “learning a class
33
+ 36 from a single labelled example”, based on the statement that “humans learn new concepts with very
34
+ 37 little supervision, [but] the standard supervised deep learning paradigm does not offer a satisfactory
35
+ 38 solution for learning new concepts rapidly from little data” (Vinyals et al., 2016). As a consequence,
36
+ 39 multiple research programmes, with various brand names, followed up with the aim of minimising or
37
+ 40 removing the need for “supervision” to train neural networks: few-shot, one-shot, zero-shot, predictive,
38
+ 41 unsupervised, semi-supervised and self-supervised learning are only a few popular examples.
39
+ 42 Exploring alternatives to classification and improving the efficiency of learning algorithms should
40
+ 43 indeed be a priority of machine learning research. As a matter of fact, related approaches have
41
+ 44 been subject of study since long before the explosion of deep learning (Hinton & Sejnowski, 1999;
42
+ 45 Chapelle et al., 2006). However, the current publication and discussion trends in the field denote
43
+ 46 overambitious promises that are in part based on misconceptions and overstatements about biological
44
+ 47 learning, and amplified by overselling nomenclature. While much of the research output derived from
45
+ 48 these programmes does provide us with useful techniques and insight, it leaves behind a landscape of
46
+ 49 confusing terminology and tangled research directions that are hard to navigate and lead many astray.
47
+ 50 In this paper, we reflect upon fundamental concepts in machine learning such as supervision, in
48
+ 51 ductive biases and generalisation, which in spite of resting on theoretical grounds, are at the core
49
+ 52 of misconceptions and overstatements about deep learning commonly seen in the literature. First,
50
+ 53 we review aspects from biological learning, and compare them to the traits often (mis)attributed to
51
+ 54 human learning and generalisation in the machine learning literature (Section 2). Second, we revisit
52
+ 55 insights from classical statistical learning and critically review the terminology and current trends in
53
+ 56 deep learning research (Section 3). Altogether, we aim at tempering certain claims and promises of
54
+ 57 deep learning, helping mitigate the confusion over the terminology and suggesting desirable—in our
55
+ 58 opinion—directions and changes in machine learning research.
56
+
57
+ # 59 2 Supervision in biological learning
58
+
59
+ 60 The link between artificial intelligence—specifically artificial neural networks (Rosenblatt, 1958;
60
+ 61 Fukushima & Miyake, 1982)—and biological learning systems is intrinsic to the field, as one long
61
+ 62 term goal of artificial intelligence is to mirror the capabilities of human intelligence. However, these
62
+ 63 capabilities are, in our view, often overestimated. One example is the argument that intelligence in
63
+ 64 nature evolves without supervision and is capable of robust out-of-distribution generalisation. In
64
+ 65 particular, it is often claimed that humans and other animals learn to visually categorise objects with
65
+ 66 little or no supervision from a few examples (Vinyals et al., 2016; Marcus, 2018; Morgenstern et al.,
66
+ 67 2019). In what follows, we will discuss three aspects of biological learning to argue against this
67
+ 68 view, so as to gain insights that better inform our progress in machine learning: first, we will discuss
68
+ 69 how generalisation requires exposure to relevant training data; second, we will review the variety of
69
+ 70 supervised signals that the brain has access to; third, we will comment on the role of evolution and
70
+ 71 brain development.
71
+
72
+ # 72 2.1 Generalisation requires exposure to relevant training data
73
+
74
+ 73 In the argument that machine learning models should generalise from a few examples, there seems
75
+ 74 to be a promise or aspiration that future better methods will be able to perform robust visual object
76
+ 75 categorisation—for instance—among many object classes after being trained on one or a few examples
77
+ 76 per class. While a primary objective is to develop techniques that efficiently extract the maximum
78
+ 77 possible information from the available examples, we should also remind ourselves that no machine
79
+ 78 learning algorithm can robustly learn anything that cannot be inferred from the data it has been trained
80
+ 79 on. Although this may seem to contradict certain current trends and statements in the literature, we
81
+ 80 should also bear in mind that learning in nature is not different.
82
+ 81 First, the amount of data that animals and humans in particular are exposed to is often underestimated.
83
+ 82 A biological brain continuously receives, processes and integrates multimodal inputs from various
84
+ 83 sensors—images (light), sound, smell, etc. Humans do not learn to recognise objects by looking
85
+ 84 at photos from ImageNet, but are rather exposed to a continuous flow of visual stimuli with slow
86
+ 85 changes of the viewing angle and lighting conditions. Furthermore, the stimuli are coherent across
87
+ 86 modalities, we are allowed to interact with the objects and we even receive multiple supervision
88
+ 87 signals, as we discuss later.
89
+ 88 The exposure to so much training data makes the human visual system remarkably robust, but still its
90
+ 89 capabilities are optimised for the tasks it needs to perform and largely determined by the training data
91
+ 90 distribution—and years of evolution, as we will discuss below. For instance, a well-studied property
92
+ 91 of human vision is that our face recognition ability is severely impaired if faces are presented upside
93
+ 92 down (Yin, 1969; Valentine, 1988). Setting aside the specific complexity of face processing in the
94
+ 93 brain, a compelling explanation for this impairment is that we are simply not used to seeing and
95
+ 94 recognising inverted faces. More generally, while human perception of objects is largely invariant
96
+ 95 under certain conditions (Biederman & Bar, 1999), object recognition is sensitive to changes in view
97
+ 96 angle (Tarr et al., 1998), especially when we see objects from unfamiliar viewpoints (Edelman &
98
+ 97 Bülthoff, 1992; Bülthoff & Newell, 2006; Milivojevic, 2012).
99
+ 98 Furthermore, although better than the one-shot or few-shot generalisation of current ANNs, humans
100
+ 99 also have limited ability to recognise truly novel classes (Morgenstern et al., 2019). Interestingly,
101
+ 100 experiments with certain novel classes of objects known as Greebles showed that, with sufficient
102
+ 101 training, humans can acquire expertise in recognising new objects from different viewpoints, even
103
+ 102 making use of an area of the brain—the fusiform face area—that typically responds strongly with
104
+ 103 face stimuli (Gauthier et al., 1999). This provides evidence that recognition from multiple viewpoints
105
+ 104 is possible but only developed after exposure to similar conditions, that is relevant data. This is
106
+ 105 reminiscent of the effectiveness of data augmentation in deep learning, compared to more naïve
107
+ 106 regularisation methods (Hernández-García & König, 2018).
108
+ 107 The need for exposure to relevant stimuli challenges the notion that humans are capable of strong
109
+ 108 out-of-distribution generalisation. Rather, it seems that the transfer learning capabilities of humans
110
+ 109 are limited to relatively small changes in the data distribution. A compelling example is our difficulty
111
+ 110 to learn new languages: someone who natively speaks or has learnt Spanish will be able to transfer a
112
+ 111 significant amount of knowledge if they are to learn Italian, due to the overlap in the data distribution,
113
+ 112 but they will have very little to transfer for learning Kanien’kéha or Mandarin.
114
+
115
+ # 113 2.2 Supervised signals for the brain
116
+
117
+ 114 Another commonly found argument has it that children—animals in general—learn robust object
118
+ 115 recognition without supervision: “a child can generalize the concept of ‘giraffe’ from a single picture
119
+ 116 in a book” (Vinyals et al., 2016). First of all, we should mention the role of evolution (expanded in
120
+ 117 Section 2.3), which can be interpreted as a pre-trained model, optimised through millions of years of
121
+ 118 data with natural selection as a supervisory signal (Zador, 2019). Second, there is abundant evidence
122
+ 119 to argue against the very claim that children—and adults—learn in fully unsupervised fashion.
123
+ 120 Obviously, the kind of supervision that humans make use of is not that of classification algorithms—
124
+ 121 we do not see a class label on top of every object we look at. However, we receive supervision
125
+ 122 from multiple sources. Even though not for every visual stimulus, children do frequently receive
126
+ 123 information about the object classes they see. For instance, parents would point at objects and name
127
+ 124 them, then we learn how to read, and generally play a crucial role as teachers in language development
128
+ 125 (Kuhl, 2007). Non-human animals such as zebra finches learning to sing have also been found to rely
129
+ 126 on feedback (supervision) from the female adult and not just imitation Carouso-Peck & Goldstein
130
+ 127 (2019). Furthermore, humans usually follow guided hierarchical learning: children do not directly
131
+ 128 learn to tell apart breeds of dogs, but rather start with umbrella terms and then progressively learn
132
+ 129 down the class hierarchy (Bornstein & Arterberry, 2010; Spriet et al., 2021). Gopnik (2021) has
133
+ 130 asserted that “we learn more from other people than we do from any other source” and Hasson et al.
134
+ 131 (2020) mention other examples of supervision from social cues, that is from other humans, such as
135
+ 132 learning to recognise individual faces, produce grammatical sentences, read and write; as well as
136
+ 133 from embodiment and action, such as learning to balance the body while walking or grasping objects.
137
+ 134 In all these actions, we can identify a supervisory signal that surely influences learning in the brain
138
+ 135 (Shapiro, 2012; Gopnik et al., 2020).
139
+ 136 While these supervision signals largely differ from what is most commonly considered supervised
140
+ 137 learning in machine learning, we can still draw some parallels with human learning. We learn to
141
+ 138 categorise many concepts and objects as children, but most people carry on learning new categories as
142
+ 139 adults. For example, some people put effort in improving their understanding of the natural world by
143
+ 140 learning to recognise and name trees, plants or birds. Those who have engaged in such an endeavour
144
+ 141 may have noticed that the learning process is easier and faster if we count upon the expert knowledge
145
+ 142 of a friend or of technology such as iNaturalist (Van Horn et al., 2018). Another example: those
146
+ 143 who have—or attempted to learn—a new language as an adult may have realised that whereas it is
147
+ 144 possible to learn the meaning of a new word by repeated exposure to it in multiple contexts, it is
148
+ 145 certainly easier if we look up the ground truth definition in a dictionary or, even easier, if there exists
149
+ 146 a direct mapping to a word in our native language. Summing up, not only does supervision facilitate
150
+ 147 learning, but human beings actively seek for it.
151
+ 148 Besides this kind of explicit supervision, the brain certainly makes use of more subtle, implicit
152
+ 149 supervised signals, such as temporal stability (Becker, 1999; Wyss et al., 2003): The light that enters
153
+ 150 the retina, and the sound waves that reach the cochlea, are not random signals from a sequence of
154
+ 151 rapidly changing arbitrary photos or noise, but highly coherent and regular flows of slowly changing
155
+ 152 stimuli, especially at the higher, semantical level (Kording et al., 2004). At the very least, this is how
156
+ 153 we perceive it and if such a smooth perception turns out to be a consequence rather than a cause, then
157
+ 154 it should be a by-product of a long process of evolution that would be worth taking into account.
158
+
159
+ # 155 2.3 The role of evolution and brain development
160
+
161
+ 156 In the previous sections, we have discussed some misconceptions or overstatements about how
162
+ 157 humans learn and generalise that are often found in the machine literature. Namely, that humans
163
+ 158 are able to generalise from a few examples and that this occurs with little or no supervision. Still,
164
+ 159 the commonplace comparison of artificial neural networks with human learning and the brain often
165
+ 160 misses a fundamental component of biology, recently brought to the fore by Zador (2019) and Hasson
166
+ 161 et al. (2020), although considered since the early days of artificial intelligence (Turing, 1968): the
167
+ 162 role that millions of years of evolution have played in developing the nervous systems of organisms
168
+ 163 in nature, including the human brain.
169
+ 164 The most common way of training artificial neural networks, especially in machine learning research,
170
+ 165 is from tabula rasa, that is from randomly initialised parameters1. In contrast, a large part of the
171
+ 166 brain connectivity is encoded genetically and certain properties and behaviour are known to be
172
+ 167 innate, that is developed without prior exposure to stimuli (Farroni et al., 2005; Spriet et al., 2021).
173
+ 168 Importantly, evolution not only provides innate behaviour, but also determines what cannot be learnt,
174
+ 169 or relevant constraints—scientists who have trained animals in the laboratory for psychological
175
+ 170 or neuroscientific studies are well aware that tasks have to be carefully adapted to the ecological
176
+ 171 behaviour and limitations of the animal, determined by evolution.
177
+ 172 Taking into account the role of evolution, we can draw conclusions that relate to the claims discussed
178
+ 173 in the previous sections. If our brains are the product of millions of years of exposure to relevant
179
+ 174 stimuli and adaptation, is it really fair to say that humans are capable of robust out-of-distribution
180
+ 175 generalisation and that we learn from from a few examples? If evolution has largely determined
181
+ 176 what our brain can and cannot learn, providing as with a “pre-trained model”, is it really fair to
182
+ 177 say that humans learn in a unsupervised fashion? This questions are relevant for machine learning
183
+ 178 research: if we take biological learning as motivation for artificial intelligence, should we not temper
184
+ 179 our expectations of what learning algorithms should aspire to? And, therefore, would it not be worth
185
+ 180 reconsidering some research programmes?
186
+ 181 On the flip side, insights from evolutionary theory are likely to be a fruitful source of inspiration
187
+ 182 for machine learning (Hasson et al., 2020; Zador, 2019). As we have observed, training a neural
188
+ 183 network from scratch may be more similar to a simulation of evolution than to the process by which
189
+ 184 an adult learns a new concept. As a shortcut to simulating evolution, neuroscience is a rich source
190
+ 185 of inspiration of constraints and inductive biases that determine learning in the biological brain and
191
+ 186 can potentially inform machine learning (Hassabis et al., 2017; Lindsey et al., 2019). For instance,
192
+ 187 simulating properties of the primary visual cortex in the early layers of an artificial neural network
193
+ 188 has been shown to improve adversarial robustness (Dapello et al., 2020; Malhotra et al., 2020).
194
+
195
+ Besides evolution, the focus on the capabilities of adults often makes us miss another important aspect of biological learning, particularly important in humans: the role of learning in infancy and brain development. While learning occurs too in adulthood, childhood is a particularly important and
196
+
197
+ 192 active time for learning (Atkinson, 2002; Gelman & Meyer, 2011). In fact, sensitive or critical periods
198
+ 193 for learning in infancy have been described or hypothesised, for example for vision (Harwerth et al.,
199
+ 194 1986) and language development (Lenneberg, 1967). Machine learning papers that draw motivation
200
+ 195 from the alleged generalisation capabilities of humans often underestimate the amount of input stimuli
201
+ 196 and supervision that infants receive (Gopnik, 2020). However, childhood can be regarded as period
202
+ 197 dedicated almost exclusively to learn, not only formally from parents and teachers, but also through
203
+ 198 playing, which plays a critical role in cognitive development Burghardt (2005); Pelz & Kidd (2020).
204
+ 199 Finally, the fact that humans—and other cognitively advanced animals, such as corvid birds, which
205
+ 200 also exhibit cultural learning—have a comparatively long childhood period, has led Uomini et al.
206
+ 201 (2020) to recently proposed that extended parenting is pivotal in the evolution of cognition. This
207
+ 202 adds to the discussion on the undervalued role of supervision. In sum, we propose machine learning
208
+ 203 research can benefit from drawing inspiration from both evolutionary biology and the literature on
209
+ 204 developmental psychology, brain development and life history and learning (Gopnik et al., 2020).
210
+
211
+ # 205 3 Supervision in machine learning
212
+
213
+ If we open a machine learning textbook (Murphy, 2012; Abu-Mostafa et al., 2012; Goodfellow et al., 2016), we will most surely find a taxonomy of learning algorithms with a clear distinction between supervised and unsupervised learning. However, while this separation can be useful, the boundaries are certainly not clear. As a matter of fact, if we take a look at the deep learning literature of the past years, we will also find abundant work on some variants supposedly in between—semi-supervised learning, self-supervised learning, etc.—whose definitions are all but clear.
214
+
215
+ # 3.1 Catastrophic forgetting of old concepts
216
+
217
+ If we recall a classical result in statistical learning theory and inference, the no free lunch theorem (Wolpert, 1996), no learning algorithm is better than any other at classifying unobserved data points, when averaged over all possible data distributions. Therefore, we need to constrain the distributions or, in other words, introduce prior knowledge—that is supervision. Recently, Locatello et al. (2018) obtained a related result for the case of unsupervised learning of disentangled representations: without inductive biases for both the models and the data sets, unsupervised disentanglement learning is fundamentally impossible. These results are purely theoretical and have limited impact on real world applications (Giraud-Carrier & Provost, 2005), precisely because in practice we use multiple inductive biases and implicit supervision, even when we do so-called unsupervised learning.
218
+
219
+ In a strict sense, even the classical, purely unsupervised methods, such as independent component analysis or nearest neighbours classifiers, make use of inductive biases, such as independence or minimum distance, respectively. Without inductive bias, learning is not possible: purely unsupervised learning is an illusion. While this is not news, the terminology used in the recent and current machine learning literature seems to reject supervision and neglect these nuances, evidencing that the field suffers catastrophic forgetting of well-established notions.
220
+
221
+ # 3.2 The brands of alt-supervised learning
222
+
223
+ Particularly in deep learning and computer vision, the term supervised learning has adopted, in practice, the meaning of classification of examples annotated by humans, that is models trained on examples labelled according to, for instance, the object classes. This is yet another instance of catastrophic forgetting—or, at best, abuse—of well-established concepts. It should not be necessary to recall that, first of all, supervised learning is a broader category than classification, which includes also regression and ranking, among other learning modalities. Second, even if we narrow our view to classification only, supervised learning is not restricted to learning from examples annotated by humans. Goodfellow et al. (2016) did not overlook this in their definition of supervised learning: “In many cases the outputs y may be difficult to collect automatically and must be provided by a human ‘supervisor,’ but the term still applies even when the training set targets were collected automatically”.
224
+
225
+ 239 In turn, the term unsupervised learning is now used for any model that does not use manually collected
226
+ 240 labels, regardless of what other kind of supervision it may use. Further, the term semi-supervised
227
+ 241 learning generally refers in practice to models that are trained with a fraction of the labels, but are
228
+ 242 tested on the same classification benchmarks. Finally, the term self-supervised learning has recently
229
+ 43 gained much popularity, referring to models that are trained on tasks other than the standard task
230
+ 44 defined by classification labels.
231
+ 245 Some of the methods proposed under these categories are certainly useful—that is not the subject of
232
+ 246 criticism of this work—but the terminology is overly confusing and unnecessary. A newcomer would
233
+ 247 easily fall into a scientific rabbit hole trying to discern the meaning of each of these names through
234
+ 248 publications—not to mention if they incorporated social media discussions into their endeavour. By
235
+ 249 way of illustration, the authors of this paper have witnessed how a recurrent question by students who
236
+ 250 learn about recent deep learning methods is whether there is any difference between self-supervised
237
+ 251 and unsupervised learning. Are students missing something fundamental? The following anecdotal
238
+ 252 recall of influential keynote talks at artificial intelligence conferences should shed some light on part
239
+ 253 of the origins of this confusion: In December 2016, Prof. Yann LeCun titled his NeurIPS keynote
240
+ 254 presentation “Predictive Learning”, to refer to “what many people mean by unsupervised learning”
241
+ 255 (LeCun, 2016). A few years later, in his keynote presentation at ISSCC in February 2019, he spoke
242
+ 256 about similar ideas, but this time the title was “Self-Supervised Learning” (LeCun, 2019). In social
243
+ 257 media, he wrote: “I now call it ‘self-supervised learning’, because ‘unsupervised’ is both a loaded
244
+ 258 and confusing term” . Students may be getting things rather right.
245
+
246
+ Is there then a fundamental difference—a theoretically grounded one—between the deep learning methods labelled as unsupervised learning and more recently self-supervised learning? We argue that these are mostly brand names that reflect trends in the field, adding noise to the scientific progress and leading many astray. Therefore, we propose that, given the recent progress, the field of machine learning research would benefit from an exercise of self-reflection and from an effort to devise a rigorous taxonomy of the variety of methods. From a theoretical point of view, both the conventional classification models and the recent wave of self-supervised tasks can all be formalised as sub-categories of supervised learning.
247
+
248
+ # 3.3 Supervision comes in different flavours
249
+
250
+ In Section 2.2, we have seen examples of different forms of supervision used by humans and other animals. In machine learning, the field focused for many years on a few loss functions, such as classification and simple forms of regression. The relatively recent explosion of deep learning has brought about the development of several libraries for automatic differentiation (Baydin et al., 2017), which in turn have enabled the proposal of multiple loss functions and learning tasks with various types of supervision that can easily be optimised numerically by stochastic gradient descent and artificial neural networks. This has certainly opened promising and already fruitful avenues to incorporate richer forms of supervision and inductive biases other than classification, some inspired by biological learning, into machine learning algorithms.
251
+
252
+ 277 A currently popular example is image data augmentation: Although until recently it was seen as a
253
+ 278 naïve technique to simply create additional training data, data augmentation actually encodes rich prior
254
+ 279 knowledge about human visual perception, in the case of computer vision. This is why it outperforms
255
+ 280 explicit regularisation methods, which provide less effective inductive biases Hernández-García &
256
+ 281 König (2018), and was used in “semi-supervised” tasks Laine & Aila (2016). The rich information
257
+ 282 embedded in image transformations has been used to encourage invariant outputs under different
258
+ 283 augmentations through contrastive losses (Ye et al., 2019), and even at intermediate representations,
259
+ 284 inspired by the invariance in the visual cortex (Hernández-García et al., 2019), although these methods
260
+ 285 were not branded as self-supervision. The use of this term for losses based on data augmentation
261
+ 286 was further popularised after the success of similar methods such as SimCLR (Chen et al., 2020).
262
+ 287 Beyond data augmentation invariance, the zoo of self-supervised learning tasks in computer vision is
263
+ 288 rich and diverse: classifying the rotation applied to image patches (Gidaris et al., 2018), predicting
264
+ 289 image colourisation (Larsson et al., 2017), classifying the relative position of two image patches
265
+ 290 (Doersch et al., 2015), or even solving full jigsaw puzzles (Noroozi & Favaro, 2016) (Jing & Tian
266
+ 291 (2020) recently performed an extensive review).
267
+ 292 The current trend is to refer to these methods as self-supervised learning, but similar methods were
268
+ 293 referred to in the past as semi-supervised, unsupervised, and even predictive learning, as we have seen.
269
+ 294 A look at the papers reveals that these terms have been used mostly interchangeably. The terms self
270
+ 295 and semi- and unsupervised learning imply that less supervision is used, but it would be misleading to
271
+ 296 seriously argue that the tasks are devoid of supervision. Most of these techniques make use of a wide
272
+ 297 range of surrogate tasks with supervisory signals defined by humans. In fact, they could have been
273
+ 298 called hyper-supervised2 learning. Here, we contend that these methods are all variants of supervised
274
+ 299 learning, only that supervision comes in different flavours, both in biological and machine learning,
275
+ 300 and we should call it by its name and ideally develop a rigorous taxonomy.
276
+
277
+ # 01 4 Discussion
278
+
279
+ In this paper, we have discussed some of the overambitious promises of the deep learning hype, namely that machine learning models should be able to generalise to unseen distributions, from a few examples, without human intervention or supervision. These claims have often been motivated by alleged generalisation capabilities of humans. In order to assess these motivations, we have first reviewed, in Section 2, some often overlooked characteristics of biological learning relevant to machine learning research. In particular, we have argued that humans and other animals receive extensive and diverse input stimuli as well as multiple supervisory signals, including the long history of evolution and cultural transmission. In the light of these insights from biological learning, we have then, in Section 3, critically reviewed the various terms that are currently used to refer to supposed alternatives to supervised learning: semi-, self- and unsupervised learning, among others. In sum, we pointed out that all these approaches are in fact supervised learning—though not necessarily classification—and the machine learning (research) community would benefit from using more rigorous, less overselling nomenclature, and from devising a more rigorous taxonomy.
280
+
281
+ 15 Supervision is not evil. It is at the core of statistical learning theory: learning is impossible without
282
+ 316 inductive biases or supervision. But supervision comes in different flavours, not only as classification
283
+ 17 labels. Neither is deep learning some sort of exceptional solution to learn without human intervention
284
+ 318 and supervision, nor is it a hopeless model class because it requires large data sets (Marcus, 2018).
285
+ 319 The human visual system is exposed to a lot of stimuli too. One exceptional advantage of deep
286
+ 320 learning is precisely that it is possible to effectively optimise different learning objectives, almost
287
+ 321 end-to-end, from large collections of nearly naturalistic sensory signals, such as digital images (Saxe
288
+ 322 et al., 2020). While other models are known to scale poorly as the amount of data increases, neural
289
+ 323 networks excel at fitting the training data and interpolating on unseen examples (Belkin et al., 2019;
290
+ 324 Hasson et al., 2020). This is a feature, not a bug. But we will make better progress if we exploit
291
+ 325 these advantages of deep learning without neglecting that supervision will always be necessary—the
292
+ 26 critical goal is how to best incorporate it and exploit it.
293
+
294
+ In this regard, we argue that deep learning needs more supervision, and not less. A major focus of the deep learning community in the last decade has been image object classification. This has brought about unprecedented progress and unveiled the limitations of having classification as chief task and class labels as main supervisory signal. For example, deep classifiers have been found to learn spurious features that are highly discriminative for the classification task but with little true generalisation power and clearly not aligned with perceptual features (Jo & Bengio, 2017; Wang et al., 2019; Geirhos et al., 2020). In fact, this mismatch has been argued to be at the root of adversarial vulnerability (Ilyas et al., 2019) and seems to be the consequence of training highly expressive, over-parameterised models in heavily unconstrained tasks. This can be addressed with meaningful constraints, that is more and richer supervision, possibly inspired by human perception and biological learning. For example, combining a classification loss with a similarity loss inspired by the invariance in the visual cortex yields more robust representations without detriment to categorisation (HernándezGarcía et al., 2019), and simulating the properties of the primary visual cortex may improve the adversarial robustness of neural networks (Dapello et al., 2020). Expanding in this direction leads to biologically-inspired, multi-task and representation learning, and away from just classification.
295
+
296
+ # 342 5 Conclusions for future research directions
297
+
298
+ The chief goal of this paper is rather descriptive than prescriptive. We have aimed to identify and describe aspects of the current trends in machine learning research that could be improved, in the hope of inspiring future work that effectively address them. Nonetheless, throughout the paper we have made suggestions that may help mitigate the confusion with the terminology, clarify research directions and ultimately bring about scientific progress in machine learning research. We outline these suggestions here to conclude the paper.
299
+
300
+ 349 We have drawn parallels from cognitive neuroscience to contend that learning in nature also requires
301
+ 350 abundant data and supervision in multiple forms. Even evolution can be regarded as an optimisation
302
+ 351 process where natural selection is the supervisory signal. We have argued, as others have before, that
303
+ 352 these insights from biology, neuroscience and developmental psychology, among other fields, offer a
304
+ 353 great opportunity for machine learning research to draw inspiration and calibrate its compass.
305
+ 354 As we have discussed, research in deep learning has departed from pure classification and has been
306
+ 355 exploring new learning tasks and ways of training artificial neural networks. Nonetheless, in some
307
+ 356 fields such as computer vision, the ultimate benchmark to assess the value of a method is still the
308
+ 357 accuracy on classification data sets, such as ImageNet, even though there is evidence of overfitting
309
+ 358 the test set. While object recognition will remain an important benchmark, as deep learning is
310
+ 359 well suited to learn representations, we should develop methods to assess the quality of the learnt
311
+ 360 representations for tasks other than classification. In this regard, we encourage researchers to evaluate
312
+ 361 their models with tests that are still not widespread, such as the suitability for transfer learning,
313
+ 362 adversarial robustness, comparison with brain measurements, behavioural tasks, etc.
314
+ 363 We have also argued that the field would benefit from an effort to devise a rigorous taxonomy of
315
+ 364 learning methods that sheds light on the ocean of methods proposed in the past years. The terms
316
+ 365 self-, semi- and unsupervised learning have been used interchangeably and this is often a source of
317
+ 366 confusion for students and newcomers. While confusing terminology is natural in a rapidly growing,
318
+ 367 the time might have come for distilling the progress of the past years into rigorous nomenclature that
319
+ 368 better survive the test of time.
320
+ 369 Finally, we recall that most of the learning theory has been developed for simple loss functions such
321
+ 370 as binary classification or mean squared error regression, but certain methods successfully used in
322
+ 371 practice today escape the available theory. Given the success of this kind of more complex supervised
323
+ 372 objectives, the study of these methods from a theoretical point of view might be a fruitful direction
324
+ 373 for future work.
325
+
326
+ # 374 Broader Impact
327
+
328
+ Since this article does not present a new method or results from data sets, potential risks of “bias in the data” or “failure of the system” do not apply. As a critical review of current trends in the field and cite multiple research articles, some researchers could potentially feel addressed and affected by our mentions. We declare that we do not intend to negatively affect any individual researcher and we have only referred to individuals directly in the case of well-established scientist with a reputation. Our goal has been in any case to potentially improve scientific progress through a constructive reflection.
329
+
330
+ # References
331
+
332
+ Abu-Mostafa, Y. S., Magdon-Ismail, M., and Lin, H.-T. Learning from data. AMLBooks, 2012.
333
+
334
+ Amodei, D. and Hernandez, D. AI and compute. Accessed: 2020-09-28, 2018. URL https: //openai.com/blog/ai-and-compute/.
335
+ Arpit, D. et al. A closer look at memorization in deep networks. arXiv preprint arXiv:1706.05394, 2017.
336
+ Atkinson, J. The developing visual brain. Oxford Scholarship Online, 2002.
337
+ Baydin, A. G., Pearlmutter, B. A., Radul, A. A., and Siskind, J. M. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research (JMLR), 2017.
338
+ Becker, S. Implicit learning in 3D object recognition: The importance of temporal context. Neural Computation, 1999.
339
+ Belkin, M., Hsu, D., Ma, S., and Mandal, S. Reconciling modern machine-learning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences (PNAS), 2019.
340
+ Biederman, I. and Bar, M. One-shot viewpoint invariance in matching novel objects. Vision Research, 1999.
341
+ Bornstein, M. H. and Arterberry, M. E. The development of object categorization in young children: Hierarchical inclusiveness, age, perceptual attribute, and group versus individual analyses. Developmental Psychology, 2010.
342
+ Bülthoff, I. and Newell, F. N. The role of familiarity in the recognition of static and dynamic objects. Progress in Brain Research, 2006.
343
+ Burghardt, G. M. The genesis of animal play: Testing the limits. Mit Press, 2005.
344
+ Cao, Q., Shen, L., Xie, W., Parkhi, O. M., and Zisserman, A. VGGFace2: A dataset for recognising faces across pose and age. In IEEE International Conference on Automatic Face & Gesture Recognition. 2018.
345
+ Carouso-Peck, S. and Goldstein, M. H. Female social feedback reveals non-imitative mechanisms of vocal learning in zebra finches. Current Biology, 2019.
346
+ Chapelle, O., Schölkopf, B., and Zien, A. (eds.). Semi-supervised learning. MIT Press, 2006.
347
+ Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. A simple framework for contrastive learning of visual representations. In International conference on machine learning. 2020.
348
+ Dapello, J., Marques, T., Schrimpf, M., Geiger, F., Cox, D. D., and DiCarlo, J. J. Simulating a primary visual cortex at the front of cnns improves robustness to image perturbations. BioRxiv, 2020.
349
+ Doersch, C., Gupta, A., and Efros, A. A. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE international conference on computer vision, 2015.
350
+ Edelman, S. and Bülthoff, H. H. Orientation dependence in the recognition of familiar and novel views of three-dimensional objects. Vision Research, 1992.
351
+ Farroni, T., Johnson, M. H., Menon, E., Zulian, L., Faraguna, D., and Csibra, G. Newborns’ preference for face-relevant stimuli: Effects of contrast polarity. Proceedings of the National Academy of Sciences, 2005.
352
+ Fukushima, K. and Miyake, S. Neocognitron: A new algorithm for pattern recognition tolerant of deformations and shifts in position. Pattern Recognition, 1982.
353
+ Gauthier, I., Tarr, M. J., Anderson, A. W., Skudlarski, P., and Gore, J. C. Activation of the middle fusiform’face area’increases with expertise in recognizing novel objects. Nature Neuroscience, 1999.
354
+ Geirhos, R., Jacobsen, J.-H., Michaelis, C., Zemel, R., Brendel, W., Bethge, M., and Wichmann, F. A. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020.
355
+ Gelman, S. A. and Meyer, M. Child categorization. Wiley Interdisciplinary Reviews: Cognitive Science, 2011.
356
+ Gidaris, S., Singh, P., and Komodakis, N. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018.
357
+ Giraud-Carrier, C. and Provost, F. Toward a justification of meta-learning: Is the no free lunch theorem a show-stopper. In Proceedings of the ICML-2005 Workshop on Meta-learning, 2005.
358
+ Goodfellow, I., Bengio, Y., and Courville, A. Deep learning. MIT Press, 2016.
359
+ Gopnik, A. Childhood as a solution to explore–exploit tensions. Philosophical Transactions of the Royal Society B, 2020.
360
+ Gopnik, A. Brain Inspired podcast, by Paul Middle Middlebrooks. BI 094 Alison Gopnik: ChildInspired AI. https://braininspired.co/podcast/94/, 2021.
361
+ Gopnik, A., Frankenhuis, W. E., and Tomasello, M. Introduction to special issue:‘life history and learning: how childhood, caregiving and old age shape cognition and culture in humans and other animals’, 2020.
362
+ 441 Harwerth, R. S., Smith, E. L., Duncan, G. C., Crawford, M., and Von Noorden, G. K. Multiple sensitive periods in the development of the primate visual system. Science, 1986.
363
+ 443 Hassabis, D., Kumaran, D., Summerfield, C., and Botvinick, M. Neuroscience-inspired artificial intelligence. Neuron, 2017. Hasson, U., Nastase, S. A., and Goldstein, A. Direct fit to nature: An evolutionary perspective on biological and artificial neural networks. Neuron, 2020.
364
+ 447 Hernández-García, A. and König, P. Data augmentation instead of explicit regularization. arXiv preprint arXiv:1806.03852, 2018.
365
+ 449 Hernández-García, A., König, P., and Kietzmann, T. Learning robust visual representations using data augmentation invariance. arXiv preprint arXiv:1906.04547, 2019.
366
+ Hinton, G. and Sejnowski, T. (eds.). Unsupervised learning. MIT Press, 1999.
367
+ 452 Ilyas, A., Santurkar, S., Tsipras, D., Engstrom, L., Tran, B., and Madry, A. Adversarial examples are not bugs, they are features. arXiv preprint arXiv:1905.02175, 2019.
368
+ 454 Jing, L. and Tian, Y. Self-supervised visual feature learning with deep neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2020.
369
+ 456 Jo, J. and Bengio, Y. Measuring the tendency of CNNs to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017.
370
+ 458 Kording, K. P., Kayser, C., Einhauser, W., and Konig, P. How are complex cell properties adapted to the statistics of natural stimuli? Journal of Neurophysiology, 2004.
371
+ Kuhl, P. K. Is speech learning ‘gated’by the social brain? Developmental science, 2007.
372
+ 461 Laine, S. and Aila, T. Temporal ensembling for semi-supervised learning. arXiv preprint arXiv:1610.02242, 2016.
373
+ 463 Larsson, G., Maire, M., and Shakhnarovich, G. Colorization as a proxy task for visual understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. LeCun, Y. Predictive learning, December 2016. URL https://nips.cc/Conferences/2016/ ScheduleMultitrack?event=6197. Invited talk at the Thirtieth Conference on Neural Information Processing Systems (NeurIPS) 2016. Slide 24, starting on minute 14:34.
374
+ 468 LeCun, Y. Deep learning hardware: Past, present, and future, February 2019. URL https://www. youtube.com/watch?v $\mathbf { \simeq }$ YzD7Z2yRL7Y. Invited talk at the International Solid-State Circuits Conference (ISSCC) 2019. Slide 57, starting on minute 27:24.
375
+ 471 LeCun, Y., Bengio, Y., and Hinton, G. Deep learning. Nature, 2015.
376
+ 472 Lenneberg, E. H. The biological foundations of language. Hospital Practice, 1967.
377
+ 473 Lindsey, J., Ocko, S. A., Ganguli, S., and Deny, S. A unified theory of early visual representations from retina to cortex through anatomically constrained deep CNNs. In International Conference on Learning Representations (ICLR), arXiv:1901.00945, 2019. Locatello, F., Bauer, S., Lucic, M., Rätsch, G., Gelly, S., Schölkopf, B., and Bachem, O. Challenging common assumptions in the unsupervised learning of disentangled representations. arXiv preprint arXiv:1811.12359, 2018.
378
+ 479 Malhotra, G., Evans, B. D., and Bowers, J. S. Hiding a plane with a pixel: examining shape-bias in CNNs and the benefit of building in biological constraints. Vision Research, 2020.
379
+ 481 Marcus, G. Deep learning: A critical appraisal. arXiv preprint arXiv:1801.00631, 2018.
380
+ 482 Milivojevic, B. Object recognition can be viewpoint dependent or invariant–it’s just a matter of time and task. Frontiers in Computational Neuroscience, 2012.
381
+
382
+ Morgenstern, Y., Schmidt, F., and Fleming, R. W. One-shot categorization of novel object classes in humans. Vision Research, 2019. Mundt, M., Hong, Y. W., Pliushch, I., and Ramesh, V. A wholistic view of continual learning with deep neural networks: Forgotten lessons and the bridge to active and open world learning. arXiv preprint arXiv:2009.01797, 2020. Murphy, K. P. Machine learning: a probabilistic perspective. MIT Press, 2012. Noroozi, M. and Favaro, P. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision. 2016. Pelz, M. and Kidd, C. The elaboration of exploratory play. Philosophical Transactions of the Royal Society B, 2020. Rosenblatt, F. The perceptron: a probabilistic model for information storage and organization in the brain. Psychological Review, 1958. Russakovsky, O. et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 2015. Saxe, A., Nelli, S., and Summerfield, C. If deep learning is the answer, then what is the question? arXiv preprint arXiv:2004.07580, 2020. Schwartz, R., Dodge, J., Smith, N. A., and Etzioni, O. Green ai. arXiv preprint arXiv:1907.10597, 2019. Shapiro, L. Embodied cognition. Oxford Handbooks Online, 2012. 503 Spriet, C., Abassi, E., Hochmann, J.-R., and Papeo, L. Visual object categorization in infancy. bioRxiv, 2021. Tarr, M. J., Williams, P., Hayward, W. G., and Gauthier, I. Three-dimensional object recognition is viewpoint dependent. Nature Neuroscience, 1998. Turing, A. M. Cybernetics; (Key papers). University Park Press, 1968. Uomini, N., Fairlie, J., Gray, R. D., and Griesser, M. Extended parenting and the evolution of cognition. Philosophical Transactions of the Royal Society B, 2020. Valentine, T. Upside-down faces: A review of the effect of inversion upon face recognition. British Journal of Psychology, 1988. Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C., Shepard, A., Adam, H., Perona, P., and Belongie, S. The inaturalist species classification and detection dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018. Vinyals, O., Blundell, C., Lillicrap, T., Wierstra, D., et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NeurIPS), 2016. Wang, H., Wu, X., Yin, P., and Xing, E. P. High frequency component helps explain the generalization of convolutional neural networks. arXiv preprint arXiv:1905.13545, 2019. Wolpert, D. H. The lack of a priori distinctions between learning algorithms. Neural Computation, 1996. Wyss, R., König, P., and Verschure, P. F. Invariant representations of visual patterns in a temporal population code. Proceedings of the National Academy of Sciences (PNAS), 2003. Ye, M., Zhang, X., Yuen, P. C., and Chang, S.-F. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019. 526 Yin, R. K. Looking at upside-down faces. Journal of Experimental Psychology, 1969.
383
+
384
+ Zador, A. M. A critique of pure learning and what artificial neural networks can learn from animal brains. Nature Communications, 2019.
385
+ Zhang, C., Bengio, S., Hardt, M., Recht, B., and Vinyals, O. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations (ICLR), arXiv:1611.03530, 2017.
386
+ Zhuang, F., Qi, Z., Duan, K., Xi, D., Zhu, Y., Zhu, H., Xiong, H., and He, Q. A comprehensive survey on transfer learning. arXiv preprint arXiv:1911.02685, 2019.
387
+
388
+ # Checklist
389
+
390
+ 1. For all authors...
391
+
392
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
393
+ (b) Did you describe the limitations of your work? [Yes] See the beginning of Section 5.
394
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5.
395
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
396
+
397
+ 2. If you are including theoretical results...
398
+
399
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
400
+
401
+ 3. If you ran experiments...
402
+
403
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [N/A]
404
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A]
405
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
406
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [N/A]
407
+
408
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
409
+
410
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
411
+ (b) Did you mention the license of the assets? [N/A]
412
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
413
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
414
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
415
+
416
+ 5. If you used crowdsourcing or conducted research with human subjects...
417
+
418
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
419
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
420
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/FjnCWyzXu8m/FjnCWyzXu8m_content_list.json ADDED
@@ -0,0 +1,887 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Rethinking supervised learning: insights from biological learning and from calling it by its name ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 197,
8
+ 122,
9
+ 799,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The renaissance of artificial neural networks was catalysed by the success of classification models, tagged by the community with the broader term supervised learning. The extraordinary results gave rise to a hype loaded with ambitious promises and overstatements. Soon the community realised that the success owed much to the availability of thousands of labelled examples and supervised learning went, for many, from glory to shame: Some criticised deep learning as a whole and others proclaimed that the way forward had to be “alternatives” to supervised learning: predictive, unsupervised, semi-supervised and, more recently, self-supervised learning. However, these seem all brand names, rather than actual categories of a theoretically grounded taxonomy. Moreover, the call to banish supervised learning was motivated by the questionable claim that humans learn with little or no supervision and are capable of robust out-of-distribution generalisation. Here, we review insights about learning and supervision in nature, revisit the notion that learning and generalization are not possible without supervision or inductive biases and argue that we will make better progress if we just call it by its name. ",
40
+ "bbox": [
41
+ 148,
42
+ 349,
43
+ 766,
44
+ 558
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "16 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 584,
55
+ 312,
56
+ 602
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "17 The re-emergence of deep learning during the last decade due to the noteworthy achievements \n18 of artificial neural networks (ANN) built up a sort of philosophy that nearly anything could be \n19 automatically learnt from data without human intervention, in contrast to the previous approaches: \n20 [hand designing good feature extractors, engineering skill and domain expertise] \n21 can all be avoided if good features can be learned automatically using a general \n22 purpose learning procedure. This is the key advantage of deep learning (LeCun \n23 et al., 2015). \n24 Read in hindsight, this claim was clearly an overstatement. The success of deep learning has \n25 required iterative hand design of network architectures and techniques that demanded collective, high \n26 engineering skill and large doses of interdisciplinary domain expertise. Furthermore, deep learning \n27 owes much to the immense computational power poured into training artificial networks (Amodei & \n28 Hernandez, 2018; Schwartz et al., 2019) and to the human effort of manually collecting and labelling \n29 thousands of images and other data modalities (Russakovsky et al., 2015; Cao et al., 2018). However, \n30 the gist of the claim has permeated machine learning research and is pervasive up to these days. \n31 The realisation that the success of deep learning was largely due to the availability of huge labelled data \n32 sets prompted various reactions: some authors strongly questioned the usefulness of the algorithms \n33 (Marcus, 2018); some delved into the question of whether neural networks generalise beyond or \n34 simply memorise the training examples (Zhang et al., 2017; Arpit et al., 2017); and some proposed \n35 new research horizons that can be overly ambitious and potentially misleading: “learning a class \n36 from a single labelled example”, based on the statement that “humans learn new concepts with very \n37 little supervision, [but] the standard supervised deep learning paradigm does not offer a satisfactory \n38 solution for learning new concepts rapidly from little data” (Vinyals et al., 2016). As a consequence, \n39 multiple research programmes, with various brand names, followed up with the aim of minimising or \n40 removing the need for “supervision” to train neural networks: few-shot, one-shot, zero-shot, predictive, \n41 unsupervised, semi-supervised and self-supervised learning are only a few popular examples. \n42 Exploring alternatives to classification and improving the efficiency of learning algorithms should \n43 indeed be a priority of machine learning research. As a matter of fact, related approaches have \n44 been subject of study since long before the explosion of deep learning (Hinton & Sejnowski, 1999; \n45 Chapelle et al., 2006). However, the current publication and discussion trends in the field denote \n46 overambitious promises that are in part based on misconceptions and overstatements about biological \n47 learning, and amplified by overselling nomenclature. While much of the research output derived from \n48 these programmes does provide us with useful techniques and insight, it leaves behind a landscape of \n49 confusing terminology and tangled research directions that are hard to navigate and lead many astray. \n50 In this paper, we reflect upon fundamental concepts in machine learning such as supervision, in \n51 ductive biases and generalisation, which in spite of resting on theoretical grounds, are at the core \n52 of misconceptions and overstatements about deep learning commonly seen in the literature. First, \n53 we review aspects from biological learning, and compare them to the traits often (mis)attributed to \n54 human learning and generalisation in the machine learning literature (Section 2). Second, we revisit \n55 insights from classical statistical learning and critically review the terminology and current trends in \n56 deep learning research (Section 3). Altogether, we aim at tempering certain claims and promises of \n57 deep learning, helping mitigate the confusion over the terminology and suggesting desirable—in our \n58 opinion—directions and changes in machine learning research. ",
63
+ "bbox": [
64
+ 148,
65
+ 616,
66
+ 826,
67
+ 659
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 671,
77
+ 767,
78
+ 728
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 741,
88
+ 825,
89
+ 838
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 147,
98
+ 844,
99
+ 823,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 147,
109
+ 92,
110
+ 825,
111
+ 189
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 147,
120
+ 194,
121
+ 825,
122
+ 305
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 147,
131
+ 311,
132
+ 825,
133
+ 436
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "59 2 Supervision in biological learning ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 147,
143
+ 457,
144
+ 485,
145
+ 474
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "60 The link between artificial intelligence—specifically artificial neural networks (Rosenblatt, 1958; \n61 Fukushima & Miyake, 1982)—and biological learning systems is intrinsic to the field, as one long \n62 term goal of artificial intelligence is to mirror the capabilities of human intelligence. However, these \n63 capabilities are, in our view, often overestimated. One example is the argument that intelligence in \n64 nature evolves without supervision and is capable of robust out-of-distribution generalisation. In \n65 particular, it is often claimed that humans and other animals learn to visually categorise objects with \n66 little or no supervision from a few examples (Vinyals et al., 2016; Marcus, 2018; Morgenstern et al., \n67 2019). In what follows, we will discuss three aspects of biological learning to argue against this \n68 view, so as to gain insights that better inform our progress in machine learning: first, we will discuss \n69 how generalisation requires exposure to relevant training data; second, we will review the variety of \n70 supervised signals that the brain has access to; third, we will comment on the role of evolution and \n71 brain development. ",
152
+ "bbox": [
153
+ 147,
154
+ 488,
155
+ 825,
156
+ 654
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "72 2.1 Generalisation requires exposure to relevant training data ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 153,
166
+ 671,
167
+ 616,
168
+ 686
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "73 In the argument that machine learning models should generalise from a few examples, there seems \n74 to be a promise or aspiration that future better methods will be able to perform robust visual object \n75 categorisation—for instance—among many object classes after being trained on one or a few examples \n76 per class. While a primary objective is to develop techniques that efficiently extract the maximum \n77 possible information from the available examples, we should also remind ourselves that no machine \n78 learning algorithm can robustly learn anything that cannot be inferred from the data it has been trained \n79 on. Although this may seem to contradict certain current trends and statements in the literature, we \n80 should also bear in mind that learning in nature is not different. \n81 First, the amount of data that animals and humans in particular are exposed to is often underestimated. \n82 A biological brain continuously receives, processes and integrates multimodal inputs from various \n83 sensors—images (light), sound, smell, etc. Humans do not learn to recognise objects by looking \n84 at photos from ImageNet, but are rather exposed to a continuous flow of visual stimuli with slow \n85 changes of the viewing angle and lighting conditions. Furthermore, the stimuli are coherent across \n86 modalities, we are allowed to interact with the objects and we even receive multiple supervision \n87 signals, as we discuss later. \n88 The exposure to so much training data makes the human visual system remarkably robust, but still its \n89 capabilities are optimised for the tasks it needs to perform and largely determined by the training data \n90 distribution—and years of evolution, as we will discuss below. For instance, a well-studied property \n91 of human vision is that our face recognition ability is severely impaired if faces are presented upside \n92 down (Yin, 1969; Valentine, 1988). Setting aside the specific complexity of face processing in the \n93 brain, a compelling explanation for this impairment is that we are simply not used to seeing and \n94 recognising inverted faces. More generally, while human perception of objects is largely invariant \n95 under certain conditions (Biederman & Bar, 1999), object recognition is sensitive to changes in view \n96 angle (Tarr et al., 1998), especially when we see objects from unfamiliar viewpoints (Edelman & \n97 Bülthoff, 1992; Bülthoff & Newell, 2006; Milivojevic, 2012). \n98 Furthermore, although better than the one-shot or few-shot generalisation of current ANNs, humans \n99 also have limited ability to recognise truly novel classes (Morgenstern et al., 2019). Interestingly, \n100 experiments with certain novel classes of objects known as Greebles showed that, with sufficient \n101 training, humans can acquire expertise in recognising new objects from different viewpoints, even \n102 making use of an area of the brain—the fusiform face area—that typically responds strongly with \n103 face stimuli (Gauthier et al., 1999). This provides evidence that recognition from multiple viewpoints \n104 is possible but only developed after exposure to similar conditions, that is relevant data. This is \n105 reminiscent of the effectiveness of data augmentation in deep learning, compared to more naïve \n106 regularisation methods (Hernández-García & König, 2018). \n107 The need for exposure to relevant stimuli challenges the notion that humans are capable of strong \n108 out-of-distribution generalisation. Rather, it seems that the transfer learning capabilities of humans \n109 are limited to relatively small changes in the data distribution. A compelling example is our difficulty \n110 to learn new languages: someone who natively speaks or has learnt Spanish will be able to transfer a \n111 significant amount of knowledge if they are to learn Italian, due to the overlap in the data distribution, \n112 but they will have very little to transfer for learning Kanien’kéha or Mandarin. ",
175
+ "bbox": [
176
+ 147,
177
+ 696,
178
+ 825,
179
+ 808
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "",
186
+ "bbox": [
187
+ 147,
188
+ 814,
189
+ 825,
190
+ 911
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "",
197
+ "bbox": [
198
+ 145,
199
+ 92,
200
+ 825,
201
+ 229
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "",
208
+ "bbox": [
209
+ 142,
210
+ 236,
211
+ 825,
212
+ 361
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "",
219
+ "bbox": [
220
+ 142,
221
+ 367,
222
+ 825,
223
+ 449
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "113 2.2 Supervised signals for the brain ",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 147,
233
+ 470,
234
+ 433,
235
+ 484
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "114 Another commonly found argument has it that children—animals in general���learn robust object \n115 recognition without supervision: “a child can generalize the concept of ‘giraffe’ from a single picture \n116 in a book” (Vinyals et al., 2016). First of all, we should mention the role of evolution (expanded in \n117 Section 2.3), which can be interpreted as a pre-trained model, optimised through millions of years of \n118 data with natural selection as a supervisory signal (Zador, 2019). Second, there is abundant evidence \n119 to argue against the very claim that children—and adults—learn in fully unsupervised fashion. \n120 Obviously, the kind of supervision that humans make use of is not that of classification algorithms— \n121 we do not see a class label on top of every object we look at. However, we receive supervision \n122 from multiple sources. Even though not for every visual stimulus, children do frequently receive \n123 information about the object classes they see. For instance, parents would point at objects and name \n124 them, then we learn how to read, and generally play a crucial role as teachers in language development \n125 (Kuhl, 2007). Non-human animals such as zebra finches learning to sing have also been found to rely \n126 on feedback (supervision) from the female adult and not just imitation Carouso-Peck & Goldstein \n127 (2019). Furthermore, humans usually follow guided hierarchical learning: children do not directly \n128 learn to tell apart breeds of dogs, but rather start with umbrella terms and then progressively learn \n129 down the class hierarchy (Bornstein & Arterberry, 2010; Spriet et al., 2021). Gopnik (2021) has \n130 asserted that “we learn more from other people than we do from any other source” and Hasson et al. \n131 (2020) mention other examples of supervision from social cues, that is from other humans, such as \n132 learning to recognise individual faces, produce grammatical sentences, read and write; as well as \n133 from embodiment and action, such as learning to balance the body while walking or grasping objects. \n134 In all these actions, we can identify a supervisory signal that surely influences learning in the brain \n135 (Shapiro, 2012; Gopnik et al., 2020). \n136 While these supervision signals largely differ from what is most commonly considered supervised \n137 learning in machine learning, we can still draw some parallels with human learning. We learn to \n138 categorise many concepts and objects as children, but most people carry on learning new categories as \n139 adults. For example, some people put effort in improving their understanding of the natural world by \n140 learning to recognise and name trees, plants or birds. Those who have engaged in such an endeavour \n141 may have noticed that the learning process is easier and faster if we count upon the expert knowledge \n142 of a friend or of technology such as iNaturalist (Van Horn et al., 2018). Another example: those \n143 who have—or attempted to learn—a new language as an adult may have realised that whereas it is \n144 possible to learn the meaning of a new word by repeated exposure to it in multiple contexts, it is \n145 certainly easier if we look up the ground truth definition in a dictionary or, even easier, if there exists \n146 a direct mapping to a word in our native language. Summing up, not only does supervision facilitate \n147 learning, but human beings actively seek for it. \n148 Besides this kind of explicit supervision, the brain certainly makes use of more subtle, implicit \n149 supervised signals, such as temporal stability (Becker, 1999; Wyss et al., 2003): The light that enters \n150 the retina, and the sound waves that reach the cochlea, are not random signals from a sequence of \n151 rapidly changing arbitrary photos or noise, but highly coherent and regular flows of slowly changing \n152 stimuli, especially at the higher, semantical level (Kording et al., 2004). At the very least, this is how \n153 we perceive it and if such a smooth perception turns out to be a consequence rather than a cause, then \n154 it should be a by-product of a long process of evolution that would be worth taking into account. ",
242
+ "bbox": [
243
+ 140,
244
+ 497,
245
+ 825,
246
+ 580
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "",
253
+ "bbox": [
254
+ 140,
255
+ 587,
256
+ 825,
257
+ 808
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "",
264
+ "bbox": [
265
+ 142,
266
+ 814,
267
+ 825,
268
+ 911
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "",
275
+ "bbox": [
276
+ 142,
277
+ 92,
278
+ 825,
279
+ 160
280
+ ],
281
+ "page_idx": 3
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "",
286
+ "bbox": [
287
+ 142,
288
+ 166,
289
+ 825,
290
+ 265
291
+ ],
292
+ "page_idx": 3
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "155 2.3 The role of evolution and brain development ",
297
+ "text_level": 1,
298
+ "bbox": [
299
+ 143,
300
+ 282,
301
+ 522,
302
+ 297
303
+ ],
304
+ "page_idx": 3
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "156 In the previous sections, we have discussed some misconceptions or overstatements about how \n157 humans learn and generalise that are often found in the machine literature. Namely, that humans \n158 are able to generalise from a few examples and that this occurs with little or no supervision. Still, \n159 the commonplace comparison of artificial neural networks with human learning and the brain often \n160 misses a fundamental component of biology, recently brought to the fore by Zador (2019) and Hasson \n161 et al. (2020), although considered since the early days of artificial intelligence (Turing, 1968): the \n162 role that millions of years of evolution have played in developing the nervous systems of organisms \n163 in nature, including the human brain. \n164 The most common way of training artificial neural networks, especially in machine learning research, \n165 is from tabula rasa, that is from randomly initialised parameters1. In contrast, a large part of the \n166 brain connectivity is encoded genetically and certain properties and behaviour are known to be \n167 innate, that is developed without prior exposure to stimuli (Farroni et al., 2005; Spriet et al., 2021). \n168 Importantly, evolution not only provides innate behaviour, but also determines what cannot be learnt, \n169 or relevant constraints—scientists who have trained animals in the laboratory for psychological \n170 or neuroscientific studies are well aware that tasks have to be carefully adapted to the ecological \n171 behaviour and limitations of the animal, determined by evolution. \n172 Taking into account the role of evolution, we can draw conclusions that relate to the claims discussed \n173 in the previous sections. If our brains are the product of millions of years of exposure to relevant \n174 stimuli and adaptation, is it really fair to say that humans are capable of robust out-of-distribution \n175 generalisation and that we learn from from a few examples? If evolution has largely determined \n176 what our brain can and cannot learn, providing as with a “pre-trained model”, is it really fair to \n177 say that humans learn in a unsupervised fashion? This questions are relevant for machine learning \n178 research: if we take biological learning as motivation for artificial intelligence, should we not temper \n179 our expectations of what learning algorithms should aspire to? And, therefore, would it not be worth \n180 reconsidering some research programmes? \n181 On the flip side, insights from evolutionary theory are likely to be a fruitful source of inspiration \n182 for machine learning (Hasson et al., 2020; Zador, 2019). As we have observed, training a neural \n183 network from scratch may be more similar to a simulation of evolution than to the process by which \n184 an adult learns a new concept. As a shortcut to simulating evolution, neuroscience is a rich source \n185 of inspiration of constraints and inductive biases that determine learning in the biological brain and \n186 can potentially inform machine learning (Hassabis et al., 2017; Lindsey et al., 2019). For instance, \n187 simulating properties of the primary visual cortex in the early layers of an artificial neural network \n188 has been shown to improve adversarial robustness (Dapello et al., 2020; Malhotra et al., 2020). ",
309
+ "bbox": [
310
+ 142,
311
+ 309,
312
+ 825,
313
+ 420
314
+ ],
315
+ "page_idx": 3
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "",
320
+ "bbox": [
321
+ 140,
322
+ 426,
323
+ 825,
324
+ 536
325
+ ],
326
+ "page_idx": 3
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "",
331
+ "bbox": [
332
+ 140,
333
+ 542,
334
+ 825,
335
+ 667
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "",
342
+ "bbox": [
343
+ 147,
344
+ 674,
345
+ 825,
346
+ 785
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Besides evolution, the focus on the capabilities of adults often makes us miss another important aspect of biological learning, particularly important in humans: the role of learning in infancy and brain development. While learning occurs too in adulthood, childhood is a particularly important and ",
353
+ "bbox": [
354
+ 168,
355
+ 791,
356
+ 823,
357
+ 833
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "192 active time for learning (Atkinson, 2002; Gelman & Meyer, 2011). In fact, sensitive or critical periods \n193 for learning in infancy have been described or hypothesised, for example for vision (Harwerth et al., \n194 1986) and language development (Lenneberg, 1967). Machine learning papers that draw motivation \n195 from the alleged generalisation capabilities of humans often underestimate the amount of input stimuli \n196 and supervision that infants receive (Gopnik, 2020). However, childhood can be regarded as period \n197 dedicated almost exclusively to learn, not only formally from parents and teachers, but also through \n198 playing, which plays a critical role in cognitive development Burghardt (2005); Pelz & Kidd (2020). \n199 Finally, the fact that humans—and other cognitively advanced animals, such as corvid birds, which \n200 also exhibit cultural learning—have a comparatively long childhood period, has led Uomini et al. \n201 (2020) to recently proposed that extended parenting is pivotal in the evolution of cognition. This \n202 adds to the discussion on the undervalued role of supervision. In sum, we propose machine learning \n203 research can benefit from drawing inspiration from both evolutionary biology and the literature on \n204 developmental psychology, brain development and life history and learning (Gopnik et al., 2020). ",
364
+ "bbox": [
365
+ 140,
366
+ 92,
367
+ 826,
368
+ 271
369
+ ],
370
+ "page_idx": 4
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "205 3 Supervision in machine learning ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 142,
378
+ 292,
379
+ 475,
380
+ 309
381
+ ],
382
+ "page_idx": 4
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "If we open a machine learning textbook (Murphy, 2012; Abu-Mostafa et al., 2012; Goodfellow et al., 2016), we will most surely find a taxonomy of learning algorithms with a clear distinction between supervised and unsupervised learning. However, while this separation can be useful, the boundaries are certainly not clear. As a matter of fact, if we take a look at the deep learning literature of the past years, we will also find abundant work on some variants supposedly in between—semi-supervised learning, self-supervised learning, etc.—whose definitions are all but clear. ",
387
+ "bbox": [
388
+ 173,
389
+ 324,
390
+ 825,
391
+ 409
392
+ ],
393
+ "page_idx": 4
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "3.1 Catastrophic forgetting of old concepts ",
398
+ "text_level": 1,
399
+ "bbox": [
400
+ 168,
401
+ 426,
402
+ 482,
403
+ 441
404
+ ],
405
+ "page_idx": 4
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "If we recall a classical result in statistical learning theory and inference, the no free lunch theorem (Wolpert, 1996), no learning algorithm is better than any other at classifying unobserved data points, when averaged over all possible data distributions. Therefore, we need to constrain the distributions or, in other words, introduce prior knowledge—that is supervision. Recently, Locatello et al. (2018) obtained a related result for the case of unsupervised learning of disentangled representations: without inductive biases for both the models and the data sets, unsupervised disentanglement learning is fundamentally impossible. These results are purely theoretical and have limited impact on real world applications (Giraud-Carrier & Provost, 2005), precisely because in practice we use multiple inductive biases and implicit supervision, even when we do so-called unsupervised learning. ",
410
+ "bbox": [
411
+ 173,
412
+ 452,
413
+ 825,
414
+ 577
415
+ ],
416
+ "page_idx": 4
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "In a strict sense, even the classical, purely unsupervised methods, such as independent component analysis or nearest neighbours classifiers, make use of inductive biases, such as independence or minimum distance, respectively. Without inductive bias, learning is not possible: purely unsupervised learning is an illusion. While this is not news, the terminology used in the recent and current machine learning literature seems to reject supervision and neglect these nuances, evidencing that the field suffers catastrophic forgetting of well-established notions. ",
421
+ "bbox": [
422
+ 174,
423
+ 583,
424
+ 825,
425
+ 666
426
+ ],
427
+ "page_idx": 4
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "3.2 The brands of alt-supervised learning ",
432
+ "text_level": 1,
433
+ "bbox": [
434
+ 161,
435
+ 685,
436
+ 470,
437
+ 699
438
+ ],
439
+ "page_idx": 4
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Particularly in deep learning and computer vision, the term supervised learning has adopted, in practice, the meaning of classification of examples annotated by humans, that is models trained on examples labelled according to, for instance, the object classes. This is yet another instance of catastrophic forgetting—or, at best, abuse—of well-established concepts. It should not be necessary to recall that, first of all, supervised learning is a broader category than classification, which includes also regression and ranking, among other learning modalities. Second, even if we narrow our view to classification only, supervised learning is not restricted to learning from examples annotated by humans. Goodfellow et al. (2016) did not overlook this in their definition of supervised learning: “In many cases the outputs y may be difficult to collect automatically and must be provided by a human ‘supervisor,’ but the term still applies even when the training set targets were collected automatically”. ",
444
+ "bbox": [
445
+ 173,
446
+ 710,
447
+ 825,
448
+ 849
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "239 In turn, the term unsupervised learning is now used for any model that does not use manually collected \n240 labels, regardless of what other kind of supervision it may use. Further, the term semi-supervised \n241 learning generally refers in practice to models that are trained with a fraction of the labels, but are \n242 tested on the same classification benchmarks. Finally, the term self-supervised learning has recently \n43 gained much popularity, referring to models that are trained on tasks other than the standard task \n44 defined by classification labels. \n245 Some of the methods proposed under these categories are certainly useful—that is not the subject of \n246 criticism of this work—but the terminology is overly confusing and unnecessary. A newcomer would \n247 easily fall into a scientific rabbit hole trying to discern the meaning of each of these names through \n248 publications—not to mention if they incorporated social media discussions into their endeavour. By \n249 way of illustration, the authors of this paper have witnessed how a recurrent question by students who \n250 learn about recent deep learning methods is whether there is any difference between self-supervised \n251 and unsupervised learning. Are students missing something fundamental? The following anecdotal \n252 recall of influential keynote talks at artificial intelligence conferences should shed some light on part \n253 of the origins of this confusion: In December 2016, Prof. Yann LeCun titled his NeurIPS keynote \n254 presentation “Predictive Learning”, to refer to “what many people mean by unsupervised learning” \n255 (LeCun, 2016). A few years later, in his keynote presentation at ISSCC in February 2019, he spoke \n256 about similar ideas, but this time the title was “Self-Supervised Learning” (LeCun, 2019). In social \n257 media, he wrote: “I now call it ‘self-supervised learning’, because ‘unsupervised’ is both a loaded \n258 and confusing term” . Students may be getting things rather right. ",
455
+ "bbox": [
456
+ 142,
457
+ 856,
458
+ 823,
459
+ 911
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "",
466
+ "bbox": [
467
+ 155,
468
+ 92,
469
+ 823,
470
+ 119
471
+ ],
472
+ "page_idx": 5
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "",
477
+ "bbox": [
478
+ 147,
479
+ 126,
480
+ 825,
481
+ 319
482
+ ],
483
+ "page_idx": 5
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "Is there then a fundamental difference—a theoretically grounded one—between the deep learning methods labelled as unsupervised learning and more recently self-supervised learning? We argue that these are mostly brand names that reflect trends in the field, adding noise to the scientific progress and leading many astray. Therefore, we propose that, given the recent progress, the field of machine learning research would benefit from an exercise of self-reflection and from an effort to devise a rigorous taxonomy of the variety of methods. From a theoretical point of view, both the conventional classification models and the recent wave of self-supervised tasks can all be formalised as sub-categories of supervised learning. ",
488
+ "bbox": [
489
+ 168,
490
+ 325,
491
+ 825,
492
+ 436
493
+ ],
494
+ "page_idx": 5
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "3.3 Supervision comes in different flavours ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 165,
502
+ 457,
503
+ 483,
504
+ 472
505
+ ],
506
+ "page_idx": 5
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "In Section 2.2, we have seen examples of different forms of supervision used by humans and other animals. In machine learning, the field focused for many years on a few loss functions, such as classification and simple forms of regression. The relatively recent explosion of deep learning has brought about the development of several libraries for automatic differentiation (Baydin et al., 2017), which in turn have enabled the proposal of multiple loss functions and learning tasks with various types of supervision that can easily be optimised numerically by stochastic gradient descent and artificial neural networks. This has certainly opened promising and already fruitful avenues to incorporate richer forms of supervision and inductive biases other than classification, some inspired by biological learning, into machine learning algorithms. ",
511
+ "bbox": [
512
+ 173,
513
+ 483,
514
+ 825,
515
+ 608
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "277 A currently popular example is image data augmentation: Although until recently it was seen as a \n278 naïve technique to simply create additional training data, data augmentation actually encodes rich prior \n279 knowledge about human visual perception, in the case of computer vision. This is why it outperforms \n280 explicit regularisation methods, which provide less effective inductive biases Hernández-García & \n281 König (2018), and was used in “semi-supervised” tasks Laine & Aila (2016). The rich information \n282 embedded in image transformations has been used to encourage invariant outputs under different \n283 augmentations through contrastive losses (Ye et al., 2019), and even at intermediate representations, \n284 inspired by the invariance in the visual cortex (Hernández-García et al., 2019), although these methods \n285 were not branded as self-supervision. The use of this term for losses based on data augmentation \n286 was further popularised after the success of similar methods such as SimCLR (Chen et al., 2020). \n287 Beyond data augmentation invariance, the zoo of self-supervised learning tasks in computer vision is \n288 rich and diverse: classifying the rotation applied to image patches (Gidaris et al., 2018), predicting \n289 image colourisation (Larsson et al., 2017), classifying the relative position of two image patches \n290 (Doersch et al., 2015), or even solving full jigsaw puzzles (Noroozi & Favaro, 2016) (Jing & Tian \n291 (2020) recently performed an extensive review). \n292 The current trend is to refer to these methods as self-supervised learning, but similar methods were \n293 referred to in the past as semi-supervised, unsupervised, and even predictive learning, as we have seen. \n294 A look at the papers reveals that these terms have been used mostly interchangeably. The terms self \n295 and semi- and unsupervised learning imply that less supervision is used, but it would be misleading to \n296 seriously argue that the tasks are devoid of supervision. Most of these techniques make use of a wide \n297 range of surrogate tasks with supervisory signals defined by humans. In fact, they could have been \n298 called hyper-supervised2 learning. Here, we contend that these methods are all variants of supervised \n299 learning, only that supervision comes in different flavours, both in biological and machine learning, \n300 and we should call it by its name and ideally develop a rigorous taxonomy. ",
522
+ "bbox": [
523
+ 140,
524
+ 614,
525
+ 825,
526
+ 821
527
+ ],
528
+ "page_idx": 5
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "",
533
+ "bbox": [
534
+ 140,
535
+ 828,
536
+ 825,
537
+ 911
538
+ ],
539
+ "page_idx": 5
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "",
544
+ "bbox": [
545
+ 147,
546
+ 90,
547
+ 826,
548
+ 133
549
+ ],
550
+ "page_idx": 6
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "01 4 Discussion ",
555
+ "text_level": 1,
556
+ "bbox": [
557
+ 155,
558
+ 154,
559
+ 292,
560
+ 170
561
+ ],
562
+ "page_idx": 6
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "In this paper, we have discussed some of the overambitious promises of the deep learning hype, namely that machine learning models should be able to generalise to unseen distributions, from a few examples, without human intervention or supervision. These claims have often been motivated by alleged generalisation capabilities of humans. In order to assess these motivations, we have first reviewed, in Section 2, some often overlooked characteristics of biological learning relevant to machine learning research. In particular, we have argued that humans and other animals receive extensive and diverse input stimuli as well as multiple supervisory signals, including the long history of evolution and cultural transmission. In the light of these insights from biological learning, we have then, in Section 3, critically reviewed the various terms that are currently used to refer to supposed alternatives to supervised learning: semi-, self- and unsupervised learning, among others. In sum, we pointed out that all these approaches are in fact supervised learning—though not necessarily classification—and the machine learning (research) community would benefit from using more rigorous, less overselling nomenclature, and from devising a more rigorous taxonomy. ",
567
+ "bbox": [
568
+ 173,
569
+ 185,
570
+ 825,
571
+ 364
572
+ ],
573
+ "page_idx": 6
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "15 Supervision is not evil. It is at the core of statistical learning theory: learning is impossible without \n316 inductive biases or supervision. But supervision comes in different flavours, not only as classification \n17 labels. Neither is deep learning some sort of exceptional solution to learn without human intervention \n318 and supervision, nor is it a hopeless model class because it requires large data sets (Marcus, 2018). \n319 The human visual system is exposed to a lot of stimuli too. One exceptional advantage of deep \n320 learning is precisely that it is possible to effectively optimise different learning objectives, almost \n321 end-to-end, from large collections of nearly naturalistic sensory signals, such as digital images (Saxe \n322 et al., 2020). While other models are known to scale poorly as the amount of data increases, neural \n323 networks excel at fitting the training data and interpolating on unseen examples (Belkin et al., 2019; \n324 Hasson et al., 2020). This is a feature, not a bug. But we will make better progress if we exploit \n325 these advantages of deep learning without neglecting that supervision will always be necessary—the \n26 critical goal is how to best incorporate it and exploit it. ",
578
+ "bbox": [
579
+ 150,
580
+ 371,
581
+ 825,
582
+ 536
583
+ ],
584
+ "page_idx": 6
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "In this regard, we argue that deep learning needs more supervision, and not less. A major focus of the deep learning community in the last decade has been image object classification. This has brought about unprecedented progress and unveiled the limitations of having classification as chief task and class labels as main supervisory signal. For example, deep classifiers have been found to learn spurious features that are highly discriminative for the classification task but with little true generalisation power and clearly not aligned with perceptual features (Jo & Bengio, 2017; Wang et al., 2019; Geirhos et al., 2020). In fact, this mismatch has been argued to be at the root of adversarial vulnerability (Ilyas et al., 2019) and seems to be the consequence of training highly expressive, over-parameterised models in heavily unconstrained tasks. This can be addressed with meaningful constraints, that is more and richer supervision, possibly inspired by human perception and biological learning. For example, combining a classification loss with a similarity loss inspired by the invariance in the visual cortex yields more robust representations without detriment to categorisation (HernándezGarcía et al., 2019), and simulating the properties of the primary visual cortex may improve the adversarial robustness of neural networks (Dapello et al., 2020). Expanding in this direction leads to biologically-inspired, multi-task and representation learning, and away from just classification. ",
589
+ "bbox": [
590
+ 165,
591
+ 544,
592
+ 825,
593
+ 751
594
+ ],
595
+ "page_idx": 6
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "342 5 Conclusions for future research directions ",
600
+ "text_level": 1,
601
+ "bbox": [
602
+ 150,
603
+ 770,
604
+ 555,
605
+ 787
606
+ ],
607
+ "page_idx": 6
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "The chief goal of this paper is rather descriptive than prescriptive. We have aimed to identify and describe aspects of the current trends in machine learning research that could be improved, in the hope of inspiring future work that effectively address them. Nonetheless, throughout the paper we have made suggestions that may help mitigate the confusion with the terminology, clarify research directions and ultimately bring about scientific progress in machine learning research. We outline these suggestions here to conclude the paper. ",
612
+ "bbox": [
613
+ 174,
614
+ 803,
615
+ 823,
616
+ 886
617
+ ],
618
+ "page_idx": 6
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "349 We have drawn parallels from cognitive neuroscience to contend that learning in nature also requires \n350 abundant data and supervision in multiple forms. Even evolution can be regarded as an optimisation \n351 process where natural selection is the supervisory signal. We have argued, as others have before, that \n352 these insights from biology, neuroscience and developmental psychology, among other fields, offer a \n353 great opportunity for machine learning research to draw inspiration and calibrate its compass. \n354 As we have discussed, research in deep learning has departed from pure classification and has been \n355 exploring new learning tasks and ways of training artificial neural networks. Nonetheless, in some \n356 fields such as computer vision, the ultimate benchmark to assess the value of a method is still the \n357 accuracy on classification data sets, such as ImageNet, even though there is evidence of overfitting \n358 the test set. While object recognition will remain an important benchmark, as deep learning is \n359 well suited to learn representations, we should develop methods to assess the quality of the learnt \n360 representations for tasks other than classification. In this regard, we encourage researchers to evaluate \n361 their models with tests that are still not widespread, such as the suitability for transfer learning, \n362 adversarial robustness, comparison with brain measurements, behavioural tasks, etc. \n363 We have also argued that the field would benefit from an effort to devise a rigorous taxonomy of \n364 learning methods that sheds light on the ocean of methods proposed in the past years. The terms \n365 self-, semi- and unsupervised learning have been used interchangeably and this is often a source of \n366 confusion for students and newcomers. While confusing terminology is natural in a rapidly growing, \n367 the time might have come for distilling the progress of the past years into rigorous nomenclature that \n368 better survive the test of time. \n369 Finally, we recall that most of the learning theory has been developed for simple loss functions such \n370 as binary classification or mean squared error regression, but certain methods successfully used in \n371 practice today escape the available theory. Given the success of this kind of more complex supervised \n372 objectives, the study of these methods from a theoretical point of view might be a fruitful direction \n373 for future work. ",
623
+ "bbox": [
624
+ 140,
625
+ 92,
626
+ 825,
627
+ 161
628
+ ],
629
+ "page_idx": 7
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "",
634
+ "bbox": [
635
+ 140,
636
+ 166,
637
+ 825,
638
+ 291
639
+ ],
640
+ "page_idx": 7
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "",
645
+ "bbox": [
646
+ 143,
647
+ 297,
648
+ 825,
649
+ 381
650
+ ],
651
+ "page_idx": 7
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "",
656
+ "bbox": [
657
+ 142,
658
+ 387,
659
+ 825,
660
+ 457
661
+ ],
662
+ "page_idx": 7
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "374 Broader Impact ",
667
+ "text_level": 1,
668
+ "bbox": [
669
+ 142,
670
+ 477,
671
+ 310,
672
+ 494
673
+ ],
674
+ "page_idx": 7
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Since this article does not present a new method or results from data sets, potential risks of “bias in the data” or “failure of the system” do not apply. As a critical review of current trends in the field and cite multiple research articles, some researchers could potentially feel addressed and affected by our mentions. We declare that we do not intend to negatively affect any individual researcher and we have only referred to individuals directly in the case of well-established scientist with a reputation. Our goal has been in any case to potentially improve scientific progress through a constructive reflection. ",
679
+ "bbox": [
680
+ 173,
681
+ 508,
682
+ 825,
683
+ 593
684
+ ],
685
+ "page_idx": 7
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "References ",
690
+ "text_level": 1,
691
+ "bbox": [
692
+ 174,
693
+ 613,
694
+ 266,
695
+ 628
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Abu-Mostafa, Y. S., Magdon-Ismail, M., and Lin, H.-T. Learning from data. AMLBooks, 2012. ",
702
+ "bbox": [
703
+ 169,
704
+ 637,
705
+ 802,
706
+ 652
707
+ ],
708
+ "page_idx": 7
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Amodei, D. and Hernandez, D. AI and compute. Accessed: 2020-09-28, 2018. URL https: //openai.com/blog/ai-and-compute/. \nArpit, D. et al. A closer look at memorization in deep networks. arXiv preprint arXiv:1706.05394, 2017. \nAtkinson, J. The developing visual brain. Oxford Scholarship Online, 2002. \nBaydin, A. G., Pearlmutter, B. A., Radul, A. A., and Siskind, J. M. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research (JMLR), 2017. \nBecker, S. Implicit learning in 3D object recognition: The importance of temporal context. Neural Computation, 1999. \nBelkin, M., Hsu, D., Ma, S., and Mandal, S. Reconciling modern machine-learning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences (PNAS), 2019. \nBiederman, I. and Bar, M. One-shot viewpoint invariance in matching novel objects. Vision Research, 1999. \nBornstein, M. H. and Arterberry, M. E. The development of object categorization in young children: Hierarchical inclusiveness, age, perceptual attribute, and group versus individual analyses. Developmental Psychology, 2010. \nBülthoff, I. and Newell, F. N. The role of familiarity in the recognition of static and dynamic objects. Progress in Brain Research, 2006. \nBurghardt, G. M. The genesis of animal play: Testing the limits. Mit Press, 2005. \nCao, Q., Shen, L., Xie, W., Parkhi, O. M., and Zisserman, A. VGGFace2: A dataset for recognising faces across pose and age. In IEEE International Conference on Automatic Face & Gesture Recognition. 2018. \nCarouso-Peck, S. and Goldstein, M. H. Female social feedback reveals non-imitative mechanisms of vocal learning in zebra finches. Current Biology, 2019. \nChapelle, O., Schölkopf, B., and Zien, A. (eds.). Semi-supervised learning. MIT Press, 2006. \nChen, T., Kornblith, S., Norouzi, M., and Hinton, G. A simple framework for contrastive learning of visual representations. In International conference on machine learning. 2020. \nDapello, J., Marques, T., Schrimpf, M., Geiger, F., Cox, D. D., and DiCarlo, J. J. Simulating a primary visual cortex at the front of cnns improves robustness to image perturbations. BioRxiv, 2020. \nDoersch, C., Gupta, A., and Efros, A. A. Unsupervised visual representation learning by context prediction. In Proceedings of the IEEE international conference on computer vision, 2015. \nEdelman, S. and Bülthoff, H. H. Orientation dependence in the recognition of familiar and novel views of three-dimensional objects. Vision Research, 1992. \nFarroni, T., Johnson, M. H., Menon, E., Zulian, L., Faraguna, D., and Csibra, G. Newborns’ preference for face-relevant stimuli: Effects of contrast polarity. Proceedings of the National Academy of Sciences, 2005. \nFukushima, K. and Miyake, S. Neocognitron: A new algorithm for pattern recognition tolerant of deformations and shifts in position. Pattern Recognition, 1982. \nGauthier, I., Tarr, M. J., Anderson, A. W., Skudlarski, P., and Gore, J. C. Activation of the middle fusiform’face area’increases with expertise in recognizing novel objects. Nature Neuroscience, 1999. \nGeirhos, R., Jacobsen, J.-H., Michaelis, C., Zemel, R., Brendel, W., Bethge, M., and Wichmann, F. A. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020. \nGelman, S. A. and Meyer, M. Child categorization. Wiley Interdisciplinary Reviews: Cognitive Science, 2011. \nGidaris, S., Singh, P., and Komodakis, N. Unsupervised representation learning by predicting image rotations. arXiv preprint arXiv:1803.07728, 2018. \nGiraud-Carrier, C. and Provost, F. Toward a justification of meta-learning: Is the no free lunch theorem a show-stopper. In Proceedings of the ICML-2005 Workshop on Meta-learning, 2005. \nGoodfellow, I., Bengio, Y., and Courville, A. Deep learning. MIT Press, 2016. \nGopnik, A. Childhood as a solution to explore–exploit tensions. Philosophical Transactions of the Royal Society B, 2020. \nGopnik, A. Brain Inspired podcast, by Paul Middle Middlebrooks. BI 094 Alison Gopnik: ChildInspired AI. https://braininspired.co/podcast/94/, 2021. \nGopnik, A., Frankenhuis, W. E., and Tomasello, M. Introduction to special issue:‘life history and learning: how childhood, caregiving and old age shape cognition and culture in humans and other animals’, 2020. \n441 Harwerth, R. S., Smith, E. L., Duncan, G. C., Crawford, M., and Von Noorden, G. K. Multiple sensitive periods in the development of the primate visual system. Science, 1986. \n443 Hassabis, D., Kumaran, D., Summerfield, C., and Botvinick, M. Neuroscience-inspired artificial intelligence. Neuron, 2017. Hasson, U., Nastase, S. A., and Goldstein, A. Direct fit to nature: An evolutionary perspective on biological and artificial neural networks. Neuron, 2020. \n447 Hernández-García, A. and König, P. Data augmentation instead of explicit regularization. arXiv preprint arXiv:1806.03852, 2018. \n449 Hernández-García, A., König, P., and Kietzmann, T. Learning robust visual representations using data augmentation invariance. arXiv preprint arXiv:1906.04547, 2019. \nHinton, G. and Sejnowski, T. (eds.). Unsupervised learning. MIT Press, 1999. \n452 Ilyas, A., Santurkar, S., Tsipras, D., Engstrom, L., Tran, B., and Madry, A. Adversarial examples are not bugs, they are features. arXiv preprint arXiv:1905.02175, 2019. \n454 Jing, L. and Tian, Y. Self-supervised visual feature learning with deep neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2020. \n456 Jo, J. and Bengio, Y. Measuring the tendency of CNNs to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017. \n458 Kording, K. P., Kayser, C., Einhauser, W., and Konig, P. How are complex cell properties adapted to the statistics of natural stimuli? Journal of Neurophysiology, 2004. \nKuhl, P. K. Is speech learning ‘gated’by the social brain? Developmental science, 2007. \n461 Laine, S. and Aila, T. Temporal ensembling for semi-supervised learning. arXiv preprint arXiv:1610.02242, 2016. \n463 Larsson, G., Maire, M., and Shakhnarovich, G. Colorization as a proxy task for visual understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. LeCun, Y. Predictive learning, December 2016. URL https://nips.cc/Conferences/2016/ ScheduleMultitrack?event=6197. Invited talk at the Thirtieth Conference on Neural Information Processing Systems (NeurIPS) 2016. Slide 24, starting on minute 14:34. \n468 LeCun, Y. Deep learning hardware: Past, present, and future, February 2019. URL https://www. youtube.com/watch?v $\\mathbf { \\simeq }$ YzD7Z2yRL7Y. Invited talk at the International Solid-State Circuits Conference (ISSCC) 2019. Slide 57, starting on minute 27:24. \n471 LeCun, Y., Bengio, Y., and Hinton, G. Deep learning. Nature, 2015. \n472 Lenneberg, E. H. The biological foundations of language. Hospital Practice, 1967. \n473 Lindsey, J., Ocko, S. A., Ganguli, S., and Deny, S. A unified theory of early visual representations from retina to cortex through anatomically constrained deep CNNs. In International Conference on Learning Representations (ICLR), arXiv:1901.00945, 2019. Locatello, F., Bauer, S., Lucic, M., Rätsch, G., Gelly, S., Schölkopf, B., and Bachem, O. Challenging common assumptions in the unsupervised learning of disentangled representations. arXiv preprint arXiv:1811.12359, 2018. \n479 Malhotra, G., Evans, B. D., and Bowers, J. S. Hiding a plane with a pixel: examining shape-bias in CNNs and the benefit of building in biological constraints. Vision Research, 2020. \n481 Marcus, G. Deep learning: A critical appraisal. arXiv preprint arXiv:1801.00631, 2018. \n482 Milivojevic, B. Object recognition can be viewpoint dependent or invariant–it’s just a matter of time and task. Frontiers in Computational Neuroscience, 2012. ",
713
+ "bbox": [
714
+ 171,
715
+ 643,
716
+ 828,
717
+ 912
718
+ ],
719
+ "page_idx": 7
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "",
724
+ "bbox": [
725
+ 156,
726
+ 98,
727
+ 830,
728
+ 915
729
+ ],
730
+ "page_idx": 8
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "",
735
+ "bbox": [
736
+ 147,
737
+ 78,
738
+ 828,
739
+ 916
740
+ ],
741
+ "page_idx": 9
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Morgenstern, Y., Schmidt, F., and Fleming, R. W. One-shot categorization of novel object classes in humans. Vision Research, 2019. Mundt, M., Hong, Y. W., Pliushch, I., and Ramesh, V. A wholistic view of continual learning with deep neural networks: Forgotten lessons and the bridge to active and open world learning. arXiv preprint arXiv:2009.01797, 2020. Murphy, K. P. Machine learning: a probabilistic perspective. MIT Press, 2012. Noroozi, M. and Favaro, P. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision. 2016. Pelz, M. and Kidd, C. The elaboration of exploratory play. Philosophical Transactions of the Royal Society B, 2020. Rosenblatt, F. The perceptron: a probabilistic model for information storage and organization in the brain. Psychological Review, 1958. Russakovsky, O. et al. ImageNet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 2015. Saxe, A., Nelli, S., and Summerfield, C. If deep learning is the answer, then what is the question? arXiv preprint arXiv:2004.07580, 2020. Schwartz, R., Dodge, J., Smith, N. A., and Etzioni, O. Green ai. arXiv preprint arXiv:1907.10597, 2019. Shapiro, L. Embodied cognition. Oxford Handbooks Online, 2012. 503 Spriet, C., Abassi, E., Hochmann, J.-R., and Papeo, L. Visual object categorization in infancy. bioRxiv, 2021. Tarr, M. J., Williams, P., Hayward, W. G., and Gauthier, I. Three-dimensional object recognition is viewpoint dependent. Nature Neuroscience, 1998. Turing, A. M. Cybernetics; (Key papers). University Park Press, 1968. Uomini, N., Fairlie, J., Gray, R. D., and Griesser, M. Extended parenting and the evolution of cognition. Philosophical Transactions of the Royal Society B, 2020. Valentine, T. Upside-down faces: A review of the effect of inversion upon face recognition. British Journal of Psychology, 1988. Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C., Shepard, A., Adam, H., Perona, P., and Belongie, S. The inaturalist species classification and detection dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018. Vinyals, O., Blundell, C., Lillicrap, T., Wierstra, D., et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NeurIPS), 2016. Wang, H., Wu, X., Yin, P., and Xing, E. P. High frequency component helps explain the generalization of convolutional neural networks. arXiv preprint arXiv:1905.13545, 2019. Wolpert, D. H. The lack of a priori distinctions between learning algorithms. Neural Computation, 1996. Wyss, R., König, P., and Verschure, P. F. Invariant representations of visual patterns in a temporal population code. Proceedings of the National Academy of Sciences (PNAS), 2003. Ye, M., Zhang, X., Yuen, P. C., and Chang, S.-F. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019. 526 Yin, R. K. Looking at upside-down faces. Journal of Experimental Psychology, 1969. ",
746
+ "bbox": [
747
+ 143,
748
+ 85,
749
+ 830,
750
+ 916
751
+ ],
752
+ "page_idx": 10
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Zador, A. M. A critique of pure learning and what artificial neural networks can learn from animal brains. Nature Communications, 2019. \nZhang, C., Bengio, S., Hardt, M., Recht, B., and Vinyals, O. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations (ICLR), arXiv:1611.03530, 2017. \nZhuang, F., Qi, Z., Duan, K., Xi, D., Zhu, Y., Zhu, H., Xiong, H., and He, Q. A comprehensive survey on transfer learning. arXiv preprint arXiv:1911.02685, 2019. ",
757
+ "bbox": [
758
+ 155,
759
+ 90,
760
+ 826,
761
+ 210
762
+ ],
763
+ "page_idx": 11
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Checklist ",
768
+ "text_level": 1,
769
+ "bbox": [
770
+ 163,
771
+ 234,
772
+ 254,
773
+ 251
774
+ ],
775
+ "page_idx": 11
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "1. For all authors... ",
780
+ "bbox": [
781
+ 214,
782
+ 261,
783
+ 339,
784
+ 275
785
+ ],
786
+ "page_idx": 11
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See the beginning of Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
791
+ "bbox": [
792
+ 238,
793
+ 280,
794
+ 825,
795
+ 385
796
+ ],
797
+ "page_idx": 11
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "2. If you are including theoretical results... ",
802
+ "bbox": [
803
+ 214,
804
+ 388,
805
+ 493,
806
+ 404
807
+ ],
808
+ "page_idx": 11
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
813
+ "bbox": [
814
+ 238,
815
+ 407,
816
+ 738,
817
+ 439
818
+ ],
819
+ "page_idx": 11
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "3. If you ran experiments... ",
824
+ "bbox": [
825
+ 214,
826
+ 443,
827
+ 393,
828
+ 458
829
+ ],
830
+ "page_idx": 11
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [N/A] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [N/A] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [N/A] ",
835
+ "bbox": [
836
+ 238,
837
+ 460,
838
+ 825,
839
+ 580
840
+ ],
841
+ "page_idx": 11
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
846
+ "bbox": [
847
+ 212,
848
+ 584,
849
+ 823,
850
+ 599
851
+ ],
852
+ "page_idx": 11
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
857
+ "bbox": [
858
+ 238,
859
+ 603,
860
+ 825,
861
+ 724
862
+ ],
863
+ "page_idx": 11
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
868
+ "bbox": [
869
+ 215,
870
+ 728,
871
+ 705,
872
+ 743
873
+ ],
874
+ "page_idx": 11
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
879
+ "bbox": [
880
+ 238,
881
+ 747,
882
+ 825,
883
+ 837
884
+ ],
885
+ "page_idx": 11
886
+ }
887
+ ]
parse/train/FjnCWyzXu8m/FjnCWyzXu8m_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/FjnCWyzXu8m/FjnCWyzXu8m_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxoX6EKvB/HyxoX6EKvB.md ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # REFLECTION-BASED WORD ATTRIBUTE TRANSFER
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We propose a word attribute transfer framework based on reflection to obtain a word vector with an inverted target attribute for a given word in a word embedding space. Word embeddings based on Pointwise Mutual Information (PMI) represent such analogic relations as ${ \overrightarrow { k i n g } } - { \overrightarrow { m a n } } + { \overrightarrow { w o m a n } } \approx { \overrightarrow { q u e e n } }$ . These relations can be used for changing a word’s attribute from king to queen by changing its gender. This attribute transfer can be performed by subtracting a difference vector $\overrightarrow { m a n } - \overrightarrow { w o m a n }$ from $\overrightarrow { k i n g }$ when we have explicit knowledge of the gender of given word king. However, this knowledge cannot be developed for various words and attributes in practice. For transferring queen into king in this analogy-based manner, we need to know that queen denotes a female and add the difference vector to it. In this work, we transfer such binary attributes based on an assumption that such transfer mapping will become identity mapping when we apply it twice. We introduce a framework based on reflection mapping that satisfies this property; queen should be transferred back to king with the same mapping as the transfer from king to queen. Experimental results show that the proposed method can transfer the word attributes of the given words, and does not change the words that do not have the target attributes.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Distributed representation (Hinton et al., 1984) is a kind of data representation that can capture data similarities in a vector space. In natural language processing, various studies have been conducted on word embeddings (Mikolov et al., 2013a;b; Pennington et al., 2014; Peters et al., 2018; Bojanowski et al., 2017). Word embedding models, such as skip-gram with negative sampling (SGNS) (Mikolov et al., 2013b) or GloVe (Pennington et al., 2014), capture some analogic relations, such as $\overrightarrow { k i n g } -$ $\overrightarrow { m a n } + \overrightarrow { w o m a n } \approx \overrightarrow { q u e e n }$ . Previous work offer theoretical explanation based on Pointwise Mutual Information (PMI; Church & Hanks (1990)) for maintaining the analogic relations in word vectors (Levy & Goldberg, 2014b; Arora et al., 2016; Gittens et al., 2017; Ethayarajh et al., 2019; Allen & Hospedales, 2019).
12
+
13
+ These relations can be used for transferring a certain attribute of a word, such as changing king into queen by transferring the gender. This task, which is called word attribute transfer, enables us to rewrite He is a boy as She is a girl. Word attribute transfer is expected to be applicable for natural language inference and data augmentation in natural language processing. The above analogic relations can be used, including adding difference vector $\overrightarrow { w o m a n } - \overrightarrow { m a n }$ to $\overrightarrow { k i n g }$ to transfer $\overrightarrow { k i n g }$ to $\overrightarrow { q u e e n }$ . This operation requires the explicit knowledge whether an input word is male or female; we have to add a difference vector to a male word and subtract it from a female word for a gender transfer. We also have to avoid changing words without any gender attributes, such as is and $a$ in the example above. Thus, analogy-based word attribute transfer requires explicit knowledge of word attributes, such as king is male, queen is female, and is has no gender attribute. Developing such knowledge is very difficult for various words and attributes in practice.
14
+
15
+ In this study, we propose a novel framework based on reflection, which enables word attribute transfer by a single reflection-based mapping for a certain attribute. Reflection in geometry is a mapping that exchanges the locations of two vectors in a Euclidean space by a hyperplane called a mirror, which satisfies the above desired property: working as identity mapping when it is applied twice and when it is applied to vectors on the mirror. We apply this reflection mapping to the problem of word attribute transfer by estimating an appropriate mirror that maps word pairs with a binary target attribute (e.g., male and female) and keeps the other words without that attribute using training data. We also extend this approach by introducing parameterized mirrors, which work as different mirrors based on the given input words, to overcome a limitation using a single fixed mirror to represent complex transfer mappings for different words. Experimental results show that the reflection-based method enables such transfers, achieves comparable performance to analogy-based methods with explicit attribute knowledge, even though our proposed method does not use such knowledge.
16
+
17
+ The following are the contributions of this paper:
18
+
19
+ • We propose a novel representation learning framework that obtains a vector with an inverted attribute in embedding space without explicit attribute knowledge of the given word. Our proposed reflection-based word attribute transfer enables us to transfer word attributes in up to $76 \%$ for words with target attributes and to avoid changing words without target attributes in over $9 9 \%$ in our experiments.
20
+
21
+ # 2 WORD ATTRIBUTE TRANSFER
22
+
23
+ ![](images/d7258f940354ae874b04c913c0b9c4e30a2bfb5fa96d1d2c84de158be4df3acb.jpg)
24
+ Figure 1: Given word vector ${ \bf v } _ { x }$ and attribute one-hot vector $\mathbf { z }$ , word attribute transfer predicts word vector $\mathbf { v } _ { t }$ , which is the inverted attribute of ${ \bf v } _ { x }$ .
25
+
26
+ Let $x$ denote a word and let ${ \bf v } _ { x }$ denote its vector representation. Here we assume that ${ \bf v } _ { x }$ is learned in advance with an embedding model such as SGNS. In this task, we have two inputs, word $x$ and onehot vector $\mathbf { z }$ , representing a certain target attribute, and one output, return word $t$ with the inverted attribute of $x$ for $\mathbf { z }$ . Let $\mathcal { A }$ denote a set of a triplet $( x , t , \mathbf { z } )$ , e.g., $( m a n , w o m a n , \mathbf { z } _ { \mathrm { g e n d e r } } ) \in \mathcal { A }$ . Let $\mathcal { N }$ denote a set of words without attribute $\mathbf { z }$ , e.g., apple $\in \mathcal { N }$ , when $\mathbf { z }$ represents gender. The purpose of this task is to transfer ${ \bf v } _ { x }$ to $\mathbf { v } _ { t }$ by transfer function $f _ { \mathbf { Z } }$ that inverts attribute $\mathbf { z }$ of ${ \bf v } _ { x }$ . In other words, output $\mathbf { v } _ { y }$ should be close to the vector of corresponding target word $\mathbf { v } _ { t }$ , which is typically the nearest neighbor of $\mathbf { v } _ { t }$ in the word embedding space.
27
+
28
+ $$
29
+ \mathbf { v } _ { t } \approx \mathbf { v } _ { y } = f _ { \mathbf { Z } } ( \mathbf { v } _ { x } ) .
30
+ $$
31
+
32
+ Note that mapping $f _ { \mathbf { Z } }$ transfers word $x$ if it has target attribute $\mathbf { z }$ ; otherwise $f _ { \mathbf { Z } }$ works as identity mapping. For instance with $\mathbf { z } _ { g e n d e r }$ , given input word man, gender attribute transfer $f _ { \mathbf { Z } _ { g e n d e r } } ( \mathbf { v } _ { m a n } )$ should result in a vector close to $\mathbf { v } _ { w o m a n }$ . Given input word apple as $x$ , the results should be $\mathbf { v } _ { a p p l e }$ .
33
+
34
+ # 3 ANALOGY-BASED WORD ATTRIBUTE TRANSFER
35
+
36
+ Analogy is a general idea for realizing attribute transfer. Several PMI-based word embedding methods (Mikolov et al., 2013c; Linzen, 2016) tackled to embed words into word embedding space to capture the analogic relations. An embedded vector with SGNS or GloVe captures analogic relations (Levy & Goldberg, $2 0 1 4 \mathrm { a }$ ; Mikolov et al., 2013c; Linzen, 2016). For instance, ${ \mathbf { v } } _ { q u e e n }$ is near the vector obtained on the right side of Eq. 2. By rearranging Eq. 2, Eq. 3 is obtained:
37
+
38
+ $$
39
+ \begin{array} { r } { \mathbf { v } _ { q u e e n } \approx \mathbf { v } _ { k i n g } - \mathbf { v } _ { m a n } + \mathbf { v } _ { w o m a n } , } \\ { \mathbf { \tau } } \\ { \approx \mathbf { v } _ { k i n g } - ( \mathbf { v } _ { m a n } - \mathbf { v } _ { w o m a n } ) . } \end{array}
40
+ $$
41
+
42
+ We can transfer the gender attribute by subtracting difference vector ${ \bf v } _ { m a n } - { \bf v } _ { w o m a n }$ from input word vectors, e.g., $\mathbf { v } _ { k i n g }$ . The analogy-based transfer function is
43
+
44
+ $$
45
+ f _ { \mathbf { Z } } ( \mathbf { v } _ { x } ) = { \left\{ \begin{array} { l l } { \mathbf { v } _ { x } - \mathbf { d } } & { { \mathrm { ~ i f ~ } } x \in { \mathcal { M } } , } \\ { \mathbf { v } _ { x } + \mathbf { d } } & { { \mathrm { ~ i f ~ } } x \in { \mathcal { F } } , } \end{array} \right. }
46
+ $$
47
+
48
+ where $\mathbf { d }$ is a difference vector of the given word pair such as man and woman, $\mathcal { M }$ is a set of words having a target attribute, and $\mathcal { F }$ is a set of words having an inverse attribute, for example, $m a n \in \mathcal { M }$ and $w o m a n \in { \mathcal { F } }$ for gender attributes. Eq. 4 indicates that the operation changes depending on whether input word $x$ belongs to $\mathcal { M }$ or $\mathcal { F }$ . For gender words, we subtract difference vector $\mathbf { d }$ if $x$ is male, and add it if $x$ is female. Therefore, we need such explicit knowledge. However, this knowledge cannot be developed for various words and attributes in practice.
49
+
50
+ # 4 REFLECTION-BASED WORD ATTRIBUTE TRANSFER
51
+
52
+ # 4.1 IDEALIZED TRANSFER WITHOUT EXPLICIT KNOWLEDGE
53
+
54
+ What is an idealized transfer function $\phi _ { \mathbf { Z } }$ for the word attribute transfer? The following are the idealized natures of such a transfer function:
55
+
56
+ $$
57
+ \begin{array} { r } { \mathbf { v } _ { m } = \phi _ { \mathbf { Z } } ( \mathbf { v } _ { w } ) , } \\ { \mathbf { v } _ { w } = \phi _ { \mathbf { Z } } ( \mathbf { v } _ { m } ) , } \end{array}
58
+ $$
59
+
60
+ where $m \in \mathcal { M }$ and $w \in { \mathcal { F } }$ . This function $\phi _ { \mathbf { Z } }$ enables to transfer a word without explicit knowledge. Function $\phi _ { \mathbf { Z } }$ transfers ${ \bf v } _ { m }$ to ${ \bf v } _ { w }$ and ${ \bf v } _ { w }$ to ${ \bf v } _ { m }$ without such explicit knowledge as $m \in \mathcal { M }$ and $w \in { \mathcal { F } }$ . By combining Eqs. 5 and 6, we obtain the following formula:
61
+
62
+ $$
63
+ \forall m \in \mathcal { M } , \qquad \mathbf { v } _ { m } = \phi _ { \mathbf { Z } } \big ( \phi _ { \mathbf { Z } } ( \mathbf { v } _ { m } \big ) \big ) ,
64
+ $$
65
+
66
+ and
67
+
68
+ $$
69
+ \forall w \in \mathcal { F } , \qquad \mathbf { v } _ { w } = \phi _ { \mathbf { Z } } \big ( \phi _ { \mathbf { Z } } ( \mathbf { v } _ { w } ) \big ) .
70
+ $$
71
+
72
+ Hence, the idealized transfer function is a mapping that becomes an identity mapping when we apply it twice for any $\mathbf { v }$ . Such a mapping is called involution in geometry. For example, $\phi \colon \mathbf { v } \mapsto - \mathbf { v }$ is one example of an involution. Note that the identity map itself, such as $\phi \colon \mathbf { v } \mapsto \mathbf { v }$ , is excluded from the involution.
73
+
74
+ # 4.2 REFLECTION
75
+
76
+ A reflection is an involution that reverses the location between two vectors in a Euclidean space through an affine hyperplane (mirror). Reflection is an idealized function because every point returns to its original location when reflection is applied twice:
77
+
78
+ $$
79
+ \forall \mathbf { v } \in \mathbb { R } ^ { n } , \qquad \mathbf { v } = R e f _ { \mathbf { a } , \mathbf { c } } ( R e f _ { \mathbf { a } , \mathbf { c } } ( \mathbf { v } ) { \bf \phi } ) .
80
+ $$
81
+
82
+ Given vector $\mathbf { v }$ in Euclidean space $\mathbb { R } ^ { n }$ , the formula for the reflection in the mirror is given:
83
+
84
+ $$
85
+ R e f _ { \mathbf { a } , \mathbf { c } } ( \mathbf { v } ) = \mathbf { v } - 2 { \frac { ( \mathbf { v } - \mathbf { c } ) \cdot \mathbf { a } } { \mathbf { a } \cdot \mathbf { a } } } \mathbf { a } ,
86
+ $$
87
+
88
+ where $\mathbf { a } \in \mathbb { R } ^ { n }$ is a vector orthogonal to the mirror (normal vector) and $\mathbf { c } \in \mathbb { R } ^ { n }$ is a point through which the mirror passes. a and c are parameters that determine the mirror.
89
+
90
+ # 4.3 REFLECTION-BASED WORD ATTRIBUTE TRANSFER
91
+
92
+ We apply reflection to the word attribute transfer to invert a specific attribute of an input word without its explicit attribute knowledge. We learn a mirror (hyperplane) in a pre-trained embedding space using training word pairs with a common (binary) attribute $\mathbf { z }$ (Fig. 2). Here since the mirror is uniquely determined by two parameter vectors, a and $\mathbf { c }$ , we estimate a and c from target attribute $\mathbf { z }$ using fully connected multi-layer perceptrons:
93
+
94
+ $$
95
+ \begin{array} { r } { \mathbf { a } = M L P ( \mathbf { z } ) , } \\ { \mathbf { c } = M L P ( \mathbf { z } ) . } \end{array}
96
+ $$
97
+
98
+ Transferred vector $\mathbf { v } _ { y }$ is obtained by inverting attribute $\mathbf { z }$ of ${ \bf v } _ { x }$ by reflection:
99
+
100
+ $$
101
+ \begin{array} { r } { \mathbf { v } _ { y } = R e f _ { \mathbf { a } , \mathbf { c } } ( \mathbf { v } _ { x } ) . } \end{array}
102
+ $$
103
+
104
+ ![](images/4b41c91e239af6f7ce1b9bc1201af457426e51e5f181fbb02278f0acf591f13a.jpg)
105
+ Figure 2: Reflection-based word attribute transfer examples.
106
+
107
+ ![](images/5dec7c1bb005195aa8edc93418d25df229d78394ea104c2d37ea207d3d975c87.jpg)
108
+ Figure 3: Mirror estimation methods
109
+
110
+ # 4.4 PARAMETERIZED MIRRORS
111
+
112
+ Reflection with a mirror by Eqs. 11 and 12 assumes a single mirror depending only on z. Previous discussion assumed that there will be pairs sharing a stable attribute such king and queen. However, often gendered words don’t come in pairs, and gender is far from a stable attribute. For example, actress may be feminine, but actor is clearly neutral in many cases (Fig. 3). Thus, actor isn’t as obvious a masculine counterpart as king. In fact, it is known that there are biases in gender words in the embedding space (Zhao et al., 2018; Kaneko & Bollegala, 2019). This phenomenon can occur not only with the gender attribute, but also with other attributes. With this assumption of a single mirror, the mirror must be a hyperplane that goes through the midpoints for all word vector pairs. However, the vector pairs shown on the left of Fig. 3 cannot be transferred well since the single mirror does not satisfy this constraint due to the bias of the embedding space. To solve this problem, we introduce different mirrors for different words. We propose parameterized mirrors determined by input vector ${ \bf v } _ { x }$ in addition to attribute $\mathbf { z }$ . The following are the definitions of the mirror parameters:
113
+
114
+ $$
115
+ \begin{array} { r } { \mathbf { a } = M L P ( [ \mathbf { z } ; \mathbf { v } _ { x } ] ) , } \\ { \mathbf { \ c } = M L P ( [ \mathbf { z } ; \mathbf { v } _ { x } ] ) , } \end{array}
116
+ $$
117
+
118
+ where $[ \cdot ; \cdot ]$ indicates the vector concatenation in the column. The parameterized mirrors are expected to work flexibly on different words. For instance, as shown in Fig. 3, suppose we learned the mirror (the blue line) that transfers $\mathbf { v } _ { h e r o }$ to $\mathbf { v } _ { h e r o i n e }$ in advance. If input word vector $\mathbf { v } _ { a c t o r }$ resembles $\mathbf { v } _ { h e r o }$ , a mirror that is similar to the one for $\mathbf { v } _ { h e r o }$ should be derived and used for the attribute transfer.
119
+
120
+ # 4.5 LOSS FUNCTION
121
+
122
+ Loss function $\mathcal { L }$ is defined:
123
+
124
+ $$
125
+ \mathcal { L } ( \boldsymbol { \Theta } ) = \frac { 1 } { | \mathcal { A } | } \sum _ { ( x _ { i } , t _ { i } , \mathbf { Z } _ { i } ) \in \mathcal { A } } ( \mathbf { v } _ { y _ { i } } - \mathbf { v } _ { t _ { i } } ) ^ { 2 } + \frac { 1 } { | \mathcal { N } | } \sum _ { x _ { j } \in \mathcal { N } } ( \mathbf { v } _ { y _ { j } } - \mathbf { v } _ { x _ { j } } ) ^ { 2 } ,
126
+ $$
127
+
128
+ where $\begin{array} { r } { \frac { 1 } { | \mathcal { A } | } \sum _ { ( x _ { i } , t _ { i } , \mathbf { Z } _ { i } ) \in \mathcal { A } } ( \mathbf { v } _ { y _ { i } } - \mathbf { v } _ { t _ { i } } ) ^ { 2 } } \end{array}$ is a term that draws target word vector $\mathbf { v } _ { t _ { i } }$ closer to corresponding transferred vector $\mathbf { v } _ { y _ { i } }$ and $\begin{array} { r } { \frac { 1 } { | \mathcal { N } | } \sum _ { x _ { j } \in \mathcal { N } } ( \mathbf { v } _ { y _ { j } } - \mathbf { v } _ { x _ { j } } ) ^ { 2 } } \end{array}$ is a term that prevents words without a target attribute from being moved by transfer function $f _ { \mathbf { Z } } . \Theta$ represents the set of all the trainable parameters. The parameters in the proposed model are the MLP weights used to determine mirror hyperplanes via a and $\mathbf { c }$ . We iteratively update $\Theta$ to minimize $\mathcal { L }$ :
129
+
130
+ $$
131
+ \begin{array} { r } { \Theta _ { t + 1 } \gets \underset { \Theta _ { t } } { \operatorname { a r g m i n } } \mathcal { L } ( \Theta _ { t } ) , } \end{array}
132
+ $$
133
+
134
+ where $t$ is the number of parameter updates at that time.
135
+
136
+ # 5 EXPERIMENT
137
+
138
+ We evaluated the performance of the proposed reflection-based word attribute transfer using data with some different attributes.
139
+
140
+ # 5.1 EXPERIMENTAL SETUP
141
+
142
+ We used three different datasets of word pairs with three binary attributes: Male-Female 1, SingularPlural and Capital-Country, shown in Table 1.These word pairs were collected from analogy test sets (Mikolov et al., 2013a; Gladkova et al., 2016), the Internet and Nguyen et al. (2017) for antonyms of noun2. Since these datasets are very small, we added Gaussian noise $\sigma = 0 . 1$ ) to every input vector ${ \bf v } _ { x }$ during training to avoid overfit. Random noise was applied independently to every sample in every iteration. For a non-attribute dataset $\mathcal { N }$ , we sampled words from the three-million-word vocabulary of the word embedding model. We sampled from 4 to 50 words for training $0 ~ \leq$ $| \mathcal { N } _ { \mathrm { t r a i n } } | \leq 5 0 )$ and 1000 words for the test $\lvert N _ { \mathrm { t e s t } } \rvert = \bar { 1 } 0 0 0 )$ . We used a mixed dataset that included both $| \mathcal { N } _ { \mathrm { t r a i n } } |$ and $| \mathcal { A } _ { \mathrm { t r a i n } } |$ . Note that $\mathcal { N } _ { \mathrm { t e s t } }$ was sampled and excluded words from $\mathcal { N } _ { \mathrm { t r a i n } }$ and $\mathcal { A } _ { \mathrm { t r a i n } }$ . We had no $\mathcal { N } _ { \mathrm { v a l } }$ because the tuning was conducted with only $| \mathcal { A } _ { \mathrm { v a l } } |$ . We used word2vec (Mikolov et al., 2013b) 3 and GloVe (Pennington et al., 2014) 4 as the pre-trained embedding model. The embedded vector dimension is $n = 3 0 0$ .
143
+
144
+ Table 1: Statistics of binary attribute word pair datasets (in the number of word pairs)
145
+
146
+ <table><tr><td>Dataset A</td><td>Train</td><td>Val</td><td>Test</td><td>Total</td></tr><tr><td>Male-Female (MF)</td><td>29</td><td>12</td><td>12</td><td>53</td></tr><tr><td>Singular-Plural (SP)</td><td>90</td><td>25</td><td>25</td><td>140</td></tr><tr><td>Capital-Country (CC)</td><td>59</td><td>25</td><td>25</td><td>109</td></tr><tr><td>Antonym (AN)</td><td>1354</td><td>290</td><td>290</td><td>1934</td></tr></table>
147
+
148
+ # 5.2 EVALUATION METRICS
149
+
150
+ We measured the accuracy and stability performances of the word attribute transfer. The accuracy measures how many input words in $\mathcal { A } _ { \mathrm { t e s t } }$ were transferred correctly to the corresponding target words. The stability score measures how many words in $\mathcal { N } _ { \mathrm { t e s t } }$ are not mapped to other words. For example, in a gender transfer, given man, the transfer is regarded as correct if woman is the closest word to the transferred vector; otherwise it is incorrect. Given apple, the transfer is regarded as correct if apple is the closest word to the transferred vector; otherwise its stability is incorrect. Here we used cosine similarity to measure the similarity of output vector $\mathbf { v } _ { y }$ and target vector $\mathbf { v } _ { t }$ . The accuracy and stability scores are calculated by the following formula:
151
+
152
+ $$
153
+ \delta ( { \bf v } _ { y } , t ) = \left\{ \begin{array} { l l } { 1 } & { \mathrm { ~ i f ~ } \quad \underset { k \in \mathcal { V } } { \arg \operatorname* { m a x } } \frac { { \bf v } _ { y } \cdot { \bf v } _ { k } } { \| { \bf v } _ { y } \| \| { \bf V } _ { k } \| } = t , } \\ { 0 } & { \mathrm { ~ o t h e r w i s e , } } \end{array} \right.
154
+ $$
155
+
156
+ $$
157
+ \mathrm { A c c u r a c y } = \frac { 1 } { | \mathcal { A } _ { \mathrm { t e s t } } | } \sum _ { ( x _ { i } , t _ { i } , \mathbf { Z } _ { i } ) \in \mathcal { A } _ { \mathrm { t e s t } } } \delta ( \mathbf { v } _ { y _ { i } } , t _ { i } ) ,
158
+ $$
159
+
160
+ $$
161
+ \mathrm { S t a b i l i t y } = \frac { 1 } { | \mathcal N _ { \mathrm { t e s t } } | } \sum _ { \substack { x _ { i } \in \mathcal N _ { \mathrm { t e s t } } } } \delta ( \mathbf v _ { y _ { i } } , x _ { i } ) ,
162
+ $$
163
+
164
+ where $\nu$ is the vocabulary of the word embedding model.
165
+
166
+ # 5.3 METHODS AND CONFIGURATIONS
167
+
168
+ In our experiment, we compared our proposed method with the following baseline methods:
169
+
170
+ REF Reflection-based word attribute transfer with a single mirror. We used a fully connected 2-layer MLP with 300 hidden units and ReLU activations to estimate a and c.
171
+
172
+ REF+PM Reflection-based word attribute transfer with parameterized mirrors. We used the same MLP as the REF.
173
+
174
+ MLP Fully connected MLP: $\mathbf v _ { y } = M L P ( [ \mathbf v _ { x } ; \mathbf z ] )$ . The highest accuracy models are a 2-layer MLP for Capital-Country and 3-layer MLP for the other datasets.
175
+
176
+ DIFF Analogy-based word attribute transfer with a difference vector: $\mathbf { d } = \mathbf { v } _ { m } - \mathbf { v } _ { w }$ , where $m$ and $w$ are in the training data of $\mathcal { A }$ . We chose d because it achieved the best accuracy in the validation data of $\mathcal { A }$ . We determined whether to add or subtract $\mathbf { d }$ to ${ \bf v } _ { x }$ based on attribute knowledge (Eq. 4).
177
+
178
+ DIFF $^ +$ Analogy-based word attribute transfer with a difference vector regardless of the attribute knowledge. d was obtained in the same way as the DIFF. We added $\mathbf { d }$ to ${ \bf v } _ { x }$ for any input $x$ : $f _ { \mathbf { Z } } ( \mathbf { v } _ { x } ) = \mathbf { v } _ { x } + \mathbf { d }$ , $\forall \mathbf { v } _ { x } \in \mathbb { R } ^ { n }$ .
179
+
180
+ DIFF − Analogy-based word attribute transfer with a difference vector regardless of the attribute knowledge. d was obtained in the same way as the DIFF. We subtracted $\mathbf { d }$ from ${ \bf v } _ { x }$ for any input $x$ : ${ \bf { \bar { f } } } _ { \mathbf { Z } } ( { \bf v } _ { x } ) = { \bf v } _ { x } - \mathbf { d } , \quad \forall { \bf v } _ { x } \in \mathbb { R } ^ { n } .$ .
181
+
182
+ MEANDIFF Analogy-based word attribute transfer with a mean difference vector $\bar { \bf d }$ : $\bar { \textbf { d } } =$ 1|Atrain| P(mi,wi)∈Atrain (vmi − vwi ). We determined whether to add or subtract d¯ to vx based on the attribute knowledge (Eq.4).
183
+
184
+ MEANDIFF $^ +$ Analogy-based word attribute transfer with a mean difference vector regardless of the attribute knowledge: $f _ { \mathbf { Z } } ( \mathbf { v } _ { x } ) = \mathbf { v } _ { x } + \bar { \mathbf { d } }$ , $\forall \mathbf { v } _ { x } \in \mathbb { R } ^ { n }$ . $\bar { \bf d }$ was obtained in the same way as the MEANDIFF.
185
+
186
+ MEANDIFF − Analogy-based word attribute transfer with a mean difference vector regardless of the attribute knowledge: $f _ { \mathbf { Z } } ( \mathbf { v } _ { x } ) = \mathbf { v } _ { x } - \bar { \mathbf { d } }$ , $\forall \mathbf { v } _ { x } \in \mathbb { R } ^ { n }$ . d¯ was obtained in the same way as the MEANDIFF.
187
+
188
+ Based on the tuning, we used the Adam optimizer (Kingma & Ba, 2015) with a learning rate of $\alpha = 1 0 ^ { - 4 }$ (the other hyperparameters were the same as the original one (Kingma & Ba, 2015)), and a batchsize of 62 for male-female, and 32 for the others. These hyperparameters were identical for the learning-based methods: REF, $\boldsymbol { \mathrm { R E F + P M } }$ , or MLP. We did not use such regularization methods as dropout (Srivastava et al., 2014) or batch normalization (Ioffe & Szegedy, 2015) because they did not show any improvement in our pilot test.
189
+
190
+ # 5.4 ACCURACY AND STABILITY
191
+
192
+ Table 2 and 3 shows the transfer accuracy and stability score results. Both experiments using GloVe or word2vec obtained similar results. $\boldsymbol { \mathrm { R E F + P M } }$ achieved the best accuracy among the methods that did not use explicit attribute knowledge. This means that reflection can be used for word attribute transfers even without attribute knowledge. In the stability evaluation, reflection-based methods (REF, $\mathsf { R E F } + \mathsf { P M } )$ and the analogy-based methods with a mean difference vector (MEANDIFF $-$ , MEANDIFF $^ +$ ) achieved high stability. In particular, reflection-based transfers achieved outstanding stability scores exceeding $9 9 \%$ . The stability of DIFF $^ +$ and DIFF $-$ was much lower than the other methods. Although MEANDIFF − and MEANDIFF + achieved high stability, their accuracy results were very low. Interestingly, reflection-based transfer with parameterized mirrors $( \mathrm { R E F } + \mathrm { P M } )$ achieved high performance in both accuracy and stability. For example, the accuracy of RE $\boldsymbol { \mathbf { \ell } } + \mathbf { P M }$ was $4 1 . 6 7 \%$ , and the stability was $9 9 . 9 \%$ in Male-Female (MF), and the accuracy was $58 \%$ and the stability was $9 9 . 4 0 ~ \%$ in Capital-Country (CC). These results show that the proposed method transfers an input word if it has a target attribute and does not transfer an input word even though it does not use explicit attribute knowledge on the input words. MLP worked poorly both in accuracy and stability. In the antonym (AN), while the transfer accuracy by the proposed method was a bit lower than that by MLP, the stability of the proposed method was $100 \%$ and that of MLP was really poor (almost $0 \%$ ).
193
+
194
+ Table 2: Results in accuracy and stability scores (word2vec).
195
+
196
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>MF</td><td>SP</td><td>CC</td><td>AN</td><td>MF</td><td>SP</td><td>CC</td><td>AN</td></tr><tr><td>REF</td><td></td><td>20.83</td><td>0.00</td><td>36.00</td><td>0.00</td><td>99.80</td><td>100.00</td><td>99.80</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>41.67</td><td>22.00</td><td>58.00</td><td>28.79</td><td>99.90</td><td>99.40</td><td>99.40</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>8.33</td><td>4.00</td><td>12.00</td><td>35.86</td><td>2.20</td><td>0.00</td><td>2.70</td><td>1.90</td></tr><tr><td>DIFF+</td><td></td><td>25.00</td><td>2.00</td><td>32.00</td><td>-</td><td>72.10</td><td>77.90</td><td>53.90</td><td>-</td></tr><tr><td>DIFF-</td><td></td><td>25.00</td><td>2.00</td><td>30.00</td><td>=</td><td>49.60</td><td>78.20</td><td>56.30</td><td>1</td></tr><tr><td>MEANDIFF +</td><td></td><td>4.17</td><td>0.00</td><td>22.00</td><td>=</td><td>98.60</td><td>99.40</td><td>87.60</td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>8.33</td><td>0.00</td><td>14.00</td><td>=</td><td>97.20</td><td>99.30</td><td>92.40</td><td></td></tr><tr><td>DIFF</td><td></td><td>62.50</td><td>4.00</td><td>64.00</td><td></td><td>1</td><td>=</td><td>=</td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>12.50</td><td>0.00</td><td>36.00</td><td></td><td></td><td></td><td></td><td></td></tr></table>
197
+
198
+ Table 3: Results in accuracy and stability scores (GloVe).
199
+
200
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>MF</td><td>SP</td><td>CC</td><td>AN</td><td>MF</td><td>SP</td><td>CC</td><td>AN</td></tr><tr><td>REF</td><td></td><td>12.50</td><td>2.00</td><td>26.00</td><td>0.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>45.83</td><td>50.00</td><td>76.00</td><td>33.54</td><td>99.70</td><td>99.10</td><td>99.20</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>4.17</td><td>10.00</td><td>18.00</td><td>36.72</td><td>5.10</td><td>7.00</td><td>5.20</td><td>1.20</td></tr><tr><td>DIFF+</td><td></td><td>25.00</td><td>2.00</td><td>26.00</td><td>-</td><td>99.30</td><td>94.20</td><td>99.30</td><td>1</td></tr><tr><td>DIFF-</td><td></td><td>25.00</td><td>2.00</td><td>24.00</td><td>=</td><td>100.60</td><td>99.90</td><td>99.50</td><td>=</td></tr><tr><td>MEANDIFF +</td><td></td><td>0.00</td><td>0.00</td><td>22.00</td><td></td><td>100.00</td><td>100.00</td><td>100.00</td><td>一</td></tr><tr><td>MEANDIFF</td><td></td><td>0.00</td><td>0.00</td><td>0.00</td><td></td><td>100.00</td><td>100.00</td><td>100.00</td><td></td></tr><tr><td>DIFF</td><td></td><td>50.00</td><td>4.00</td><td>44.00</td><td></td><td>=</td><td>=</td><td></td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>0.00</td><td>0.00</td><td>0.00</td><td></td><td></td><td>-</td><td></td><td></td></tr></table>
201
+
202
+ We investigated the relation between the size of $| \mathcal { N } _ { \mathrm { t r a i n } } |$ and the stability of learning-based methods by conducting an additional experiment by varying $| \mathcal { N } _ { \mathrm { t r a i n } } |$ from 0 to 50. The stability scores by MLP did not improve (Table 4). On the other hand, REF and $\boldsymbol { \mathrm { R E F } } + \boldsymbol { \mathrm { P M } }$ achieved high stability scores with just $| \bar { \mathcal { N } } _ { \mathrm { t r a i n } } | = 4$ and maintained the accuracy.
203
+
204
+ # 5.5 TRANSFER EXAMPLE
205
+
206
+ Table 5 shows examples of a gender transfer at the sentence level, where the attribute transfer was applied to words in sentence $\bar { X } = \{ x _ { 1 } , x _ { 2 } , \ldots \}$ . Here since such words as $a$ and . are not in the vocabulary of the original word embedding model, we omitted them from the inputs. MLP made many wrong transfers on words without gender attributes, e.g., the became By Katie Klingsporn, was became she, when became Doughty Evening Chronicle, and woman became girlfriend. $\mathrm { D I F F ^ { + } }$ can transfer if $x$ is female, e.g., it transferred from woman to man, but it could not transfer grandfather and boy. Similarly, DIFF − failed to transfer from female to male. In addition, since the stability of these methods was low, they erroneously transferred. For example, in DIFF $^ -$ , the and when became she. REF + PM can selectively transfer words with a gender attribute without using explicit gender information. For example, when woman was given, $R e f ( \mathbf { v } _ { w o m a n } )$ became man without knowledge that woman is a female word, and when man was given, it became woman. When non-attribute word married was given, $R e f ( \mathbf { v } _ { m a r r i e d } )$ became married without knowledge that married has no gender attribute. When we applied the reflection-based transfer twice, the transferred word returned to its original word, e.g., $R e f ( R e f ( \mathbf { v } _ { w o m a n } ) )$ gives woman.
207
+
208
+ Table 4: Relation among size of $| \mathcal { N } _ { \mathrm { t r a i n } } |$ and stability of learning-based methods.
209
+
210
+ <table><tr><td rowspan="2" colspan="2"></td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td colspan="4">Wtrainl</td><td colspan="4">|Wtrainl</td></tr><tr><td></td><td></td><td>0</td><td>4</td><td>10</td><td>50</td><td>0</td><td>4</td><td>10</td><td>50</td></tr><tr><td rowspan="3">MF</td><td>REF</td><td>16.67</td><td>20.83</td><td>20.83</td><td>20.83</td><td>98.30</td><td>98.80</td><td>99.40</td><td>99.80</td></tr><tr><td>REF+PM</td><td>41.67</td><td>45.83</td><td>20.83</td><td>41.67</td><td>38.30</td><td>98.40</td><td>100.00</td><td>99.90</td></tr><tr><td>MLP</td><td>4.17</td><td>8.33</td><td>8.33</td><td>8.33</td><td>0.00</td><td>0.30</td><td>0.30</td><td>2.20</td></tr><tr><td rowspan="3">SP</td><td>REF</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>99.90</td><td>99.90</td><td>99.90</td><td>100.90</td></tr><tr><td>REF+PM</td><td>12.00</td><td>22.00</td><td>18.00</td><td>18.00</td><td>98.40</td><td>99.40</td><td>99.30</td><td>99.80</td></tr><tr><td>MLP</td><td>4.00</td><td>4.00</td><td>2.00</td><td>2.00</td><td>0.00</td><td>0.00</td><td>0.10</td><td>3.40</td></tr><tr><td rowspan="3">CC</td><td>REF</td><td>36.00</td><td>36.00</td><td>36.00</td><td>34.00</td><td>99.80</td><td>99.80</td><td>99.80</td><td>100.00</td></tr><tr><td>REF+PM</td><td>58.00</td><td>56.00</td><td>58.00</td><td>54.00</td><td>73.80</td><td>99.70</td><td>99.40</td><td>99.40</td></tr><tr><td>MLP</td><td>6.00</td><td>6.00</td><td>8.00</td><td>12.00</td><td>0.00</td><td>0.30</td><td>0.50</td><td>2.70</td></tr><tr><td rowspan="3">AN</td><td>REF</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>99.90</td><td>99.90</td><td>99.90</td><td>99.80</td></tr><tr><td>REF+PM</td><td>21.72</td><td>27.24</td><td>28.62</td><td>28.79</td><td>95.30</td><td>99.20</td><td>99.50</td><td>99.80</td></tr><tr><td>MLP</td><td>34.14</td><td>35.00</td><td>34.31</td><td>35.86</td><td>0.00</td><td>0.01</td><td>0.02</td><td>1.90</td></tr></table>
211
+
212
+ Table 5: Transfer results when sentence $X = \{ \mathrm { t h e , . . . , b o y } \}$ was given. Out-of-vocabulary words $a$ and . were not given as input.
213
+
214
+ <table><tr><td>X</td><td>the woman was married when your grandfather was (a) boy (.)</td></tr><tr><td>Ref(x)</td><td>the man was married when your grandmother was (a) girl (.)</td></tr><tr><td>Ref(Ref(x))</td><td>the woman was married when your grandfather was (a) boy (.)</td></tr><tr><td>MLP</td><td>By_Katie_Klingsporn girlfriend she fiancee Doughty_Evening_Chronicle ma&#x27;am daughter she (a) mother (.)</td></tr><tr><td>DIFF+</td><td>the man was married when your grandfather was (a) boy (.)</td></tr><tr><td>DIFF-</td><td>she woman was married she your grandmother was (a) girl (.)</td></tr></table>
215
+
216
+ We can transfer some different attributes of words with reflection-based transfer one-by-one. Table 6 shows that the words having different target attributes were transferred by each reflection-based transfer in the order of Male-Female, Singular-Plural, and Country-Capital. Given actress for a Male-Female transfer, it was transferred to actor and to actors for Singular-Plural. Given Tokyo for Male-Female, Singular-Plural, and Antonym, it was not transferred, but it was transferred to Japan for Country-Capital. Given rich for Male-Female, Singular-Plural, and Capital-Country, it was not transferred, but it was transferred to poor for Antonym.
217
+
218
+ Table 6: Transfer of different attributes with reflection-based word attribute transfer with parameterized mirrors.
219
+
220
+ <table><tr><td>X</td><td>the rich actress and the poor actor want to stay the beautiful city in Tokyo.</td></tr><tr><td>+Male-Female</td><td>the rich actor and the poor actress want to stay the beautiful city in Tokyo.</td></tr><tr><td>+ Singular-Plural</td><td></td></tr><tr><td></td><td>the rich actors and the poor actresses want to stay the beautiful cities in Tokyo.</td></tr><tr><td>+Capital-Country</td><td>the rich actors and the poor actresses want to stay the beautiful citie in Japan.</td></tr><tr><td>+ Antonym</td><td>the poor actors and the rich actresses want to stay the beautiful cities in Japan.</td></tr></table>
221
+
222
+ # 6 RELATED WORK
223
+
224
+ The embedded vectors obtained by SGNS (Mikolov et al., 2013a;b) and GloVe (Pennington et al., 2014) have analogic relations. The theory of analogic relations in word embeddings has been widely discussed: Levy & Goldberg (2014b); Arora et al. (2016); Gittens et al. (2017); Ethayarajh et al. (2019); Allen & Hospedales (2019); Linzen (2016). Levy & Goldberg (2014b) offer the explanation that SGNS factorizes a shifted PMI matrix. Allen & Hospedales (2019) and Ethayarajh et al. (2019) argued that they proved the existence of such analogic relations without strong assumptions. In our work, we focus on the analogic relations in a word embedding space and propose a novel framework to obtain a word vector with inverted attributes. Style transfers (Niu et al., 2018; Prabhumoye et al., 2018; Jain et al., 2019; Logeswaran et al., 2018; Dai et al., 2019; Zhang et al., 2018) resemble our task. In a style transfer, the text style of the input sentences is changed. For instance, Jain et al. (2019) transferred from formal to informal sentences. Logeswaran et al. (2018) transferred sentences by controlling such attributes as mood and tense. These style transfer tasks use sentence pairs; our word attribute transfer task uses word pairs. Style transfer changes sentence styles, but our task changes the word attributes (contents). Soricut & Och (2015) studied the problem of morphological transformation based on character information. Our work aims more general attribute transfer such as gender transfer and country-capital and is not limited to the morphological transformation.
225
+
226
+ # 7 CONCLUSION AND FUTURE WORK
227
+
228
+ We proposed a novel representation learning framework based on reflection to invert a certain attribute of a word vector. We proposed a reflection-based method for word attribute transfers without relying on the explicit attribute knowledge of an input word, which is necessary for a simple analogy-based transfer. Experimental results showed that our proposed method can transfer the word attributes if the input word has a target attribute. If not, reflection does not transfer the word.
229
+
230
+ Future work includes applications to other transfer tasks: sentence by sentence transfer, such Niu et al. (2018); Prabhumoye et al. (2018); Jain et al. (2019), and entity prediction on an analogic graph embedding space (Liu et al., 2017), in the field of computer vision, visual analogy (Reed et al., 2015), or style transfer (Zhu et al., 2017; Liao et al., 2017) with GANs (Radford et al., 2016; Goodfellow et al., 2014) because their latent space holds analogic relations (Radford et al., 2016).
231
+
232
+ # REFERENCES
233
+
234
+ Carl Allen and Timothy M. Hospedales. Analogies Explained: Towards Understanding Word Embeddings. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pp. 223–231, 2019. URL http: //proceedings.mlr.press/v97/allen19a.html.
235
+
236
+ Sanjeev Arora, Yuanzhi Li, Yingyu Liang, Tengyu Ma, and Andrej Risteski. A Latent Variable Model Approach to PMI-based Word Embeddings. Transactions of the Association for Computational Linguistics, 4:385–399, 2016. URL https://transacl.org/ojs/index.php/ tacl/article/view/742.
237
+
238
+ Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching Word Vectors with Subword Information. Transactions of the Association for Computational Linguistics, 5:135–146, 2017. URL https://transacl.org/ojs/index.php/tacl/article/ view/999.
239
+
240
+ Kenneth Ward Church and Patrick Hanks. Word Association Norms, Mutual Information, and Lexicography. Computational Linguistics, 16(1):22–29, 1990.
241
+
242
+ Ning Dai, Jianze Liang, Xipeng Qiu, and Xuanjing Huang. Style Transformer: Unpaired Text Style Transfer without Disentangled Latent Representation. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 5997–6007, 2019. URL https://www.aclweb.org/ anthology/P19-1601/.
243
+
244
+ Kawin Ethayarajh, David Duvenaud, and Graeme Hirst. Towards Understanding Linear Word Analogies. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 3253–3262, 2019. URL https://www.aclweb.org/anthology/P19-1315/.
245
+
246
+ Alex Gittens, Dimitris Achlioptas, and Michael W. Mahoney. Skip-Gram - Zipf $^ +$ Uniform $=$ Vector Additivity. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, ACL 2017, Vancouver, Canada, July 30 - August 4, Volume 1: Long Papers, pp. 69–76, 2017. doi: 10.18653/v1/P17-1007. URL https://doi.org/10.18653/v1/P17-1007.
247
+
248
+ Anna Gladkova, Aleksandr Drozd, and Satoshi Matsuoka. Analogy-based detection of morphological and semantic relations with word embeddings: what works and what doesn’t. In Proceedings of the Student Research Workshop, SRW@HLT-NAACL 2016, The 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego California, USA, June 12-17, 2016, pp. 8–15, 2016. URL https://www.aclweb.org/anthology/N16-2002/.
249
+
250
+ Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 2672–2680, 2014. URL http://papers.nips.cc/paper/5423-generative-adversarial-nets.
251
+
252
+ Geoffrey E Hinton, James L McClelland, David E Rumelhart, et al. Distributed representations. Carnegie-Mellon University Pittsburgh, PA, 1984.
253
+
254
+ Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 448–456, 2015. URL http: //proceedings.mlr.press/v37/ioffe15.html.
255
+
256
+ Parag Jain, Abhijit Mishra, Amar Prakash Azad, and Karthik Sankaranarayanan. Unsupervised Controllable Text Formalization. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019., pp. 6554–6561, 2019. URL https: //aaai.org/ojs/index.php/AAAI/article/view/4623.
257
+
258
+ Masahiro Kaneko and Danushka Bollegala. Gender-preserving Debiasing for Pre-trained Word Embeddings. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 1641–1650, 2019. URL https://www.aclweb.org/anthology/P19-1160/.
259
+
260
+ Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980.
261
+
262
+ Omer Levy and Yoav Goldberg. Linguistic Regularities in Sparse and Explicit Word Representations. In Proceedings of the Eighteenth Conference on Computational Natural Language Learning, CoNLL 2014, Baltimore, Maryland, USA, June 26-27, 2014, pp. 171–180, 2014a. URL https://www.aclweb.org/anthology/W14-1618/.
263
+
264
+ Omer Levy and Yoav Goldberg. Neural Word Embedding as Implicit Matrix Factorization. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 2177–2185, 2014b. URL http://papers.nips.cc/paper/ 5477-neural-word-embedding-as-implicit-matrix-factorization.
265
+
266
+ Jing Liao, Yuan Yao, Lu Yuan, Gang Hua, and Sing Bing Kang. Visual attribute transfer through deep image analogy. ACM Trans. Graph., 36(4):120:1–120:15, 2017. doi: 10.1145/3072959. 3073683. URL https://doi.org/10.1145/3072959.3073683.
267
+
268
+ Tal Linzen. Issues in evaluating semantic spaces using word analogies. In Proceedings of the 1st Workshop on Evaluating Vector-Space Representations for NLP, RepEval@ACL 2016, Berlin, Germany, August 2016, pp. 13–18, 2016. doi: 10.18653/v1/W16-2503. URL https://doi. org/10.18653/v1/W16-2503.
269
+
270
+ Hanxiao Liu, Yuexin Wu, and Yiming Yang. Analogical Inference for Multi-relational Embeddings. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 2168–2178, 2017. URL http://proceedings. mlr.press/v70/liu17d.html.
271
+
272
+ Lajanugen Logeswaran, Honglak Lee, and Samy Bengio. Content preserving text generation with attribute controls. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, 3-8 December 2018, Montreal, Canada. ´ , pp. 5108–5118, 2018. URL http://papers.nips.cc/paper/ 7757-content-preserving-text-generation-with-attribute-controls.
273
+
274
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient Estimation of Word Representations in Vector Space. In 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, Arizona, USA, May 2-4, 2013, Workshop Track Proceedings, 2013a. URL http://arxiv.org/abs/1301.3781.
275
+
276
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. Distributed Representations of Words and Phrases and their Compositionality. In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States., pp. 3111–3119, 2013b. URL http://papers.nips.cc/paper/ 5021-distributed-representations-of-words-and-phrases-and-their-c
277
+
278
+ Tomas Mikolov, Wen-tau Yih, and Geoffrey Zweig. Linguistic Regularities in Continuous Space Word Representations. In Human Language Technologies: Conference of the North American Chapter of the Association of Computational Linguistics, Proceedings, June 9-14, 2013, Westin Peachtree Plaza Hotel, Atlanta, Georgia, USA, pp. 746–751, 2013c. URL https://www. aclweb.org/anthology/N13-1090/.
279
+
280
+ Kim Anh Nguyen, Sabine Schulte im Walde, and Ngoc Thang Vu. Distinguishing Antonyms and Synonyms in a Pattern-based Neural Network. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2017, Valencia, Spain, April 3-7, 2017, Volume 1: Long Papers, pp. 76–85, 2017. URL https://www.aclweb. org/anthology/E17-1008/.
281
+
282
+ Xing Niu, Sudha Rao, and Marine Carpuat. Multi-task neural models for translating between styles within and across languages. In Proceedings of the 27th International Conference on Computational Linguistics, COLING 2018, Santa Fe, New Mexico, USA, August 20-26, 2018, pp. 1008– 1021, 2018. URL https://www.aclweb.org/anthology/C18-1086/.
283
+
284
+ Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global Vectors for Word Representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, October 25-29, 2014, Doha, Qatar, A meeting of SIGDAT, a Special Interest Group of the ACL, pp. 1532–1543, 2014. URL https://www.aclweb. org/anthology/D14-1162/.
285
+
286
+ Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep Contextualized Word Representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2018, New Orleans, Louisiana, USA, June 1-6, 2018, Volume 1 (Long Papers), pp. 2227–2237, 2018. URL https://www.aclweb.org/ anthology/N18-1202/.
287
+
288
+ Shrimai Prabhumoye, Yulia Tsvetkov, Ruslan Salakhutdinov, and Alan W. Black. Style Transfer Through Back-Translation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, ACL 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, pp. 866–876, 2018. doi: 10.18653/v1/P18-1080. URL https://www.aclweb.org/ anthology/P18-1080/.
289
+
290
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv.org/abs/1511.06434.
291
+
292
+ Scott E. Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep Visual AnalogyMaking. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pp. 1252–1260, 2015. URL http://papers.nips.cc/paper/ 5845-deep-visual-analogy-making.
293
+
294
+ Radu Soricut and Franz Josef Och. Unsupervised Morphology Induction Using Word Embeddings. In NAACL HLT 2015, The 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Denver, Colorado, USA, May 31 - June 5, 2015, pp. 1627–1637, 2015. URL https://www.aclweb.org/anthology/ N15-1186/.
295
+
296
+ Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1): 1929–1958, 2014. URL http://dl.acm.org/citation.cfm?id=2670313.
297
+
298
+ Zhirui Zhang, Shuo Ren, Shujie Liu, Jianyong Wang, Peng Chen, Mu Li, Ming Zhou, and Enhong Chen. Style Transfer as Unsupervised Machine Translation. CoRR, abs/1808.07894, 2018. URL http://arxiv.org/abs/1808.07894.
299
+
300
+ Jieyu Zhao, Yichao Zhou, Zeyu Li, Wei Wang, and Kai-Wei Chang. Learning Gender-Neutral Word Embeddings. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 - November 4, 2018, pp. 4847–4853, 2018. URL https://www.aclweb.org/anthology/D18-1521/.
301
+
302
+ Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired Image-to-Image Translation Using Cycle-Consistent Adversarial Networks. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pp. 2242–2251, 2017. doi: 10.1109/ICCV.2017.244. URL https://doi.org/10.1109/ICCV.2017.244.
303
+
304
+ # A TOP THREE ACCURACY AND STABILITY
305
+
306
+ Table 7: Male-Female
307
+
308
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>50.00</td><td>20.83</td><td>62.50</td><td>66.67</td><td>99.80</td><td>99.80</td><td>99.80</td><td>99.80</td></tr><tr><td>REF+PM</td><td></td><td>55.56</td><td>41.67</td><td>58.33</td><td>66.67</td><td>99.13</td><td>99.00</td><td>99.20</td><td>99.20</td></tr><tr><td>MLP</td><td></td><td>20.83</td><td>8.33</td><td>20.83</td><td>33.33</td><td>2.20</td><td>2.20</td><td>2.20</td><td>2.20</td></tr><tr><td>DIFF+</td><td></td><td>31.94</td><td>25.00</td><td>33.33</td><td>37.50</td><td>75.43</td><td>72.10</td><td>75.80</td><td>78.40</td></tr><tr><td>DIFF-</td><td></td><td>31.94</td><td>25.00</td><td>33.33</td><td>37.50</td><td>55.80</td><td>49.60</td><td>57.30</td><td>60.50</td></tr><tr><td>MEANDIFF +</td><td></td><td>23.61</td><td>4.17</td><td>33.33</td><td>33.33</td><td>98.93</td><td>98.60</td><td>99.10</td><td>99.10</td></tr><tr><td>MEANDIFF</td><td></td><td>23.61</td><td>8.33</td><td>29.17</td><td>33.33</td><td>97.63</td><td>97.20</td><td>97.80</td><td>97.90</td></tr><tr><td>DIFF</td><td>√</td><td>68.05</td><td>62.50</td><td>66.66</td><td>75.00</td><td>-</td><td>1</td><td>-</td><td>1</td></tr><tr><td>MEANDIFF</td><td>1</td><td>47.22</td><td>12.50</td><td>62.50</td><td>66.67</td><td>-</td><td>-</td><td>-</td><td>-</td></tr></table>
309
+
310
+ Table 8: Singular-Plural
311
+
312
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>50.00</td><td>0.00</td><td>72.00</td><td>78.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>56.67</td><td>22.00</td><td>72.00</td><td>76.00</td><td>99.70</td><td>99.40</td><td>99.80</td><td>99.90</td></tr><tr><td>MLP</td><td></td><td>7.33</td><td>4.00</td><td>8.00</td><td>10.00</td><td>0.13</td><td>0.00</td><td>0.20</td><td>0.20</td></tr><tr><td>DIFF+</td><td></td><td>36.67</td><td>2.00</td><td>50.00</td><td>58.00</td><td>80.27</td><td>77.90</td><td>79.70</td><td>83.20</td></tr><tr><td>DIFF-</td><td></td><td>36.67</td><td>2.00</td><td>52.00</td><td>56.00</td><td>80.27</td><td>78.20</td><td>80.70</td><td>81.90</td></tr><tr><td>MEANDIFF +</td><td></td><td>42.00</td><td>0.00</td><td>56.00</td><td>70.00</td><td>99.47</td><td>99.40</td><td>99.40</td><td>99.60</td></tr><tr><td>MEANDIFF -</td><td></td><td>39.33</td><td>0.00</td><td>56.00</td><td>62.00</td><td>99.50</td><td>99.30</td><td>99.60</td><td>99.60</td></tr><tr><td>DIFF</td><td>√</td><td>49.33</td><td>4.00</td><td>70.00</td><td>74.00</td><td>1</td><td>-</td><td>1</td><td>1</td></tr><tr><td>MEANDIFF</td><td>√</td><td>52.00</td><td>0.00</td><td>76.00</td><td>80.00</td><td>1</td><td>=</td><td>-</td><td>-</td></tr></table>
313
+
314
+ Table 9: Capital-Country
315
+
316
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>66.67</td><td>36.00</td><td>78.00</td><td>86.00</td><td>99.80</td><td>99.80</td><td>99.80</td><td>99.80</td></tr><tr><td>REF+PM</td><td></td><td>72.67</td><td>58.00</td><td>74.00</td><td>86.00</td><td>99.53</td><td>99.40</td><td>99.60</td><td>99.60</td></tr><tr><td>MLP</td><td></td><td>35.33</td><td>12.00</td><td>40.00</td><td>54.00</td><td>2.80</td><td>2.70</td><td>2.80</td><td>2.90</td></tr><tr><td>DIFF+</td><td></td><td>39.33</td><td>32.00</td><td>42.00</td><td>44.00</td><td>64.87</td><td>53.90</td><td>69.60</td><td>71.10</td></tr><tr><td>DIFF</td><td></td><td>34.67</td><td>30.00</td><td>36.00</td><td>38.00</td><td>58.63</td><td>56.30</td><td>58.90</td><td>60.70</td></tr><tr><td>MEANDIFF +</td><td></td><td>36.00</td><td>22.00</td><td>42.00</td><td>44.00</td><td>89.33</td><td>87.60</td><td>89.70</td><td>90.70</td></tr><tr><td>MEANDIFF-</td><td></td><td>34.67</td><td>14.00</td><td>44.00</td><td>46.00</td><td>93.07</td><td>92.40</td><td>93.10</td><td>93.70</td></tr><tr><td>DIFF</td><td>√</td><td>80.00</td><td>64.00</td><td>86.00</td><td>90.00</td><td>-</td><td>-</td><td>-</td><td>1</td></tr><tr><td>MEANDIFF</td><td>1</td><td>70.67</td><td>36.00</td><td>86.00</td><td>90.00</td><td>=</td><td>-</td><td>-</td><td>-</td></tr></table>
317
+
318
+ Table 10: Antonym
319
+
320
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Knowledge</td><td colspan="4">Accuracy (%)</td><td colspan="4">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>0.94</td><td>0.00</td><td>1.19</td><td>16.21</td><td>99.97</td><td>99.90</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>38.56</td><td>28.79</td><td>41.38</td><td>45.52</td><td>99.93</td><td>99.80</td><td>100.00</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>41.38</td><td>35.86</td><td>42.59</td><td>45.69</td><td>1..97</td><td>1.90</td><td>2.00</td><td>2.00</td></tr></table>
321
+
322
+ # B VISUALIZATION OF PARAMETERIZED MIRRORS
323
+
324
+ Figures below visualize PCA results of a obtained for the test words. We normalized the L2 norm of a to 1 $( \frac { \mathbf { a } } { \lVert \mathbf { a } \rVert } )$ . Corresponding word pairs are connected by solid lines. Figs. 4 and 5 suggest not only the mirror parameters of paired words are similar to each other but also the parameters with the attribute form a cluster — words with the same attribute has similar mirror parameter a. The mirrors of paired words are close to each other in the same attribute (Fig. 4 and 5). Some MF pairs in Fig. 5 are placed away from the cluster of the MF words. This may come from missing principal components due to the small data size used for PCA. Figs. 6, 7, 8, 9, 10, 11, 12, and 13 are the detailed PCA results for four different attributes: MF, SP, CC, and AN. These results show that a reflection transfers a paired word each other by using a similar mirror. For example, rich and poor use almost the same mirror (Fig. 9). On the other hand, different mirrors are used for different word pairs since the mirrors are parameterized. These results shows the effect of the mirror as described in section 4.4.
325
+
326
+ ![](images/786866719e752120c080bcbcca2472a8fa6198330a10cbf7cb7107e46f7e6c45.jpg)
327
+ Figure 4: A PCA result of a (word2vec).
328
+
329
+ ![](images/87bbae84df859c8cedc508264a9f16e82a8e52bf4ef2c7e2881954da13947ebc.jpg)
330
+ Figure 5: A PCA result of a (GloVe).
331
+
332
+ ![](images/3a16a3d5f9aeae75fe79399dd9a0de03e620603e20747108fc9ecaf439fdca14.jpg)
333
+ Figure 6: Male-Female (word2vec)
334
+
335
+ ![](images/028b7a5a4d0e9d42e17b9c8f8b49f949de875485693c188f88a69690d71dddc1.jpg)
336
+ Figure 7: Singular-Plural (word2vec)
337
+
338
+ ![](images/2e61fbd48df681210a7065e038778434d49bc23d8c225b79e76148c229bc3800.jpg)
339
+ Figure 8: Capital-Country (word2vec)
340
+
341
+ ![](images/5f6a179ee60381eba5262a3ceaa8a9fe7c05976f4050571f9bb44f3f008913da.jpg)
342
+ Figure 9: Antonym (word2vec)
343
+
344
+ ![](images/e48e2dec7a093b8d622deaf6b992ade918e682e9aa59d2dccf89851b162157b1.jpg)
345
+ Figure 10: Male-Female (GloVe)
346
+
347
+ ![](images/56e0d4c4e8fc38ff738ff48ea9b51fe47a995ddebc53f3b37269a7e651b3581d.jpg)
348
+ Figure 11: Singular-Plural (GloVe)
349
+
350
+ ![](images/ca7242aaa1ea2d5e327de2696960c27280d651ea2e1fea3fabdadc51337cdabf.jpg)
351
+ Figure 12: Capital-Country (GloVe)
352
+
353
+ ![](images/f2d0836f02185abbc6a71731fec5a2233e99faeaf783994e832748d9de2896c2.jpg)
354
+ Figure 13: Antonym (GloVe)
parse/train/HyxoX6EKvB/HyxoX6EKvB_content_list.json ADDED
@@ -0,0 +1,1786 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "REFLECTION-BASED WORD ATTRIBUTE TRANSFER ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 787,
10
+ 122
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 400,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 209,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We propose a word attribute transfer framework based on reflection to obtain a word vector with an inverted target attribute for a given word in a word embedding space. Word embeddings based on Pointwise Mutual Information (PMI) represent such analogic relations as ${ \\overrightarrow { k i n g } } - { \\overrightarrow { m a n } } + { \\overrightarrow { w o m a n } } \\approx { \\overrightarrow { q u e e n } }$ . These relations can be used for changing a word’s attribute from king to queen by changing its gender. This attribute transfer can be performed by subtracting a difference vector $\\overrightarrow { m a n } - \\overrightarrow { w o m a n }$ from $\\overrightarrow { k i n g }$ when we have explicit knowledge of the gender of given word king. However, this knowledge cannot be developed for various words and attributes in practice. For transferring queen into king in this analogy-based manner, we need to know that queen denotes a female and add the difference vector to it. In this work, we transfer such binary attributes based on an assumption that such transfer mapping will become identity mapping when we apply it twice. We introduce a framework based on reflection mapping that satisfies this property; queen should be transferred back to king with the same mapping as the transfer from king to queen. Experimental results show that the proposed method can transfer the word attributes of the given words, and does not change the words that do not have the target attributes. ",
40
+ "bbox": [
41
+ 232,
42
+ 238,
43
+ 766,
44
+ 482
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 507,
55
+ 336,
56
+ 522
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Distributed representation (Hinton et al., 1984) is a kind of data representation that can capture data similarities in a vector space. In natural language processing, various studies have been conducted on word embeddings (Mikolov et al., 2013a;b; Pennington et al., 2014; Peters et al., 2018; Bojanowski et al., 2017). Word embedding models, such as skip-gram with negative sampling (SGNS) (Mikolov et al., 2013b) or GloVe (Pennington et al., 2014), capture some analogic relations, such as $\\overrightarrow { k i n g } -$ $\\overrightarrow { m a n } + \\overrightarrow { w o m a n } \\approx \\overrightarrow { q u e e n }$ . Previous work offer theoretical explanation based on Pointwise Mutual Information (PMI; Church & Hanks (1990)) for maintaining the analogic relations in word vectors (Levy & Goldberg, 2014b; Arora et al., 2016; Gittens et al., 2017; Ethayarajh et al., 2019; Allen & Hospedales, 2019). ",
63
+ "bbox": [
64
+ 173,
65
+ 537,
66
+ 825,
67
+ 666
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "These relations can be used for transferring a certain attribute of a word, such as changing king into queen by transferring the gender. This task, which is called word attribute transfer, enables us to rewrite He is a boy as She is a girl. Word attribute transfer is expected to be applicable for natural language inference and data augmentation in natural language processing. The above analogic relations can be used, including adding difference vector $\\overrightarrow { w o m a n } - \\overrightarrow { m a n }$ to $\\overrightarrow { k i n g }$ to transfer $\\overrightarrow { k i n g }$ to $\\overrightarrow { q u e e n }$ . This operation requires the explicit knowledge whether an input word is male or female; we have to add a difference vector to a male word and subtract it from a female word for a gender transfer. We also have to avoid changing words without any gender attributes, such as is and $a$ in the example above. Thus, analogy-based word attribute transfer requires explicit knowledge of word attributes, such as king is male, queen is female, and is has no gender attribute. Developing such knowledge is very difficult for various words and attributes in practice. ",
74
+ "bbox": [
75
+ 173,
76
+ 672,
77
+ 825,
78
+ 833
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this study, we propose a novel framework based on reflection, which enables word attribute transfer by a single reflection-based mapping for a certain attribute. Reflection in geometry is a mapping that exchanges the locations of two vectors in a Euclidean space by a hyperplane called a mirror, which satisfies the above desired property: working as identity mapping when it is applied twice and when it is applied to vectors on the mirror. We apply this reflection mapping to the problem of word attribute transfer by estimating an appropriate mirror that maps word pairs with a binary target attribute (e.g., male and female) and keeps the other words without that attribute using training data. We also extend this approach by introducing parameterized mirrors, which work as different mirrors based on the given input words, to overcome a limitation using a single fixed mirror to represent complex transfer mappings for different words. Experimental results show that the reflection-based method enables such transfers, achieves comparable performance to analogy-based methods with explicit attribute knowledge, even though our proposed method does not use such knowledge. ",
85
+ "bbox": [
86
+ 174,
87
+ 840,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 188
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The following are the contributions of this paper: ",
107
+ "bbox": [
108
+ 173,
109
+ 194,
110
+ 496,
111
+ 208
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "• We propose a novel representation learning framework that obtains a vector with an inverted attribute in embedding space without explicit attribute knowledge of the given word. Our proposed reflection-based word attribute transfer enables us to transfer word attributes in up to $76 \\%$ for words with target attributes and to avoid changing words without target attributes in over $9 9 \\%$ in our experiments. ",
118
+ "bbox": [
119
+ 215,
120
+ 220,
121
+ 825,
122
+ 296
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 WORD ATTRIBUTE TRANSFER ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 315,
133
+ 457,
134
+ 332
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "image",
140
+ "img_path": "images/d7258f940354ae874b04c913c0b9c4e30a2bfb5fa96d1d2c84de158be4df3acb.jpg",
141
+ "image_caption": [
142
+ "Figure 1: Given word vector ${ \\bf v } _ { x }$ and attribute one-hot vector $\\mathbf { z }$ , word attribute transfer predicts word vector $\\mathbf { v } _ { t }$ , which is the inverted attribute of ${ \\bf v } _ { x }$ . "
143
+ ],
144
+ "image_footnote": [],
145
+ "bbox": [
146
+ 341,
147
+ 352,
148
+ 650,
149
+ 430
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Let $x$ denote a word and let ${ \\bf v } _ { x }$ denote its vector representation. Here we assume that ${ \\bf v } _ { x }$ is learned in advance with an embedding model such as SGNS. In this task, we have two inputs, word $x$ and onehot vector $\\mathbf { z }$ , representing a certain target attribute, and one output, return word $t$ with the inverted attribute of $x$ for $\\mathbf { z }$ . Let $\\mathcal { A }$ denote a set of a triplet $( x , t , \\mathbf { z } )$ , e.g., $( m a n , w o m a n , \\mathbf { z } _ { \\mathrm { g e n d e r } } ) \\in \\mathcal { A }$ . Let $\\mathcal { N }$ denote a set of words without attribute $\\mathbf { z }$ , e.g., apple $\\in \\mathcal { N }$ , when $\\mathbf { z }$ represents gender. The purpose of this task is to transfer ${ \\bf v } _ { x }$ to $\\mathbf { v } _ { t }$ by transfer function $f _ { \\mathbf { Z } }$ that inverts attribute $\\mathbf { z }$ of ${ \\bf v } _ { x }$ . In other words, output $\\mathbf { v } _ { y }$ should be close to the vector of corresponding target word $\\mathbf { v } _ { t }$ , which is typically the nearest neighbor of $\\mathbf { v } _ { t }$ in the word embedding space. ",
156
+ "bbox": [
157
+ 173,
158
+ 484,
159
+ 825,
160
+ 597
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "equation",
166
+ "img_path": "images/fa7ef3d6c94bd27368dc14353d7db665dcccf3bdba20dee4a01e52ce8cfab19c.jpg",
167
+ "text": "$$\n\\mathbf { v } _ { t } \\approx \\mathbf { v } _ { y } = f _ { \\mathbf { Z } } ( \\mathbf { v } _ { x } ) .\n$$",
168
+ "text_format": "latex",
169
+ "bbox": [
170
+ 415,
171
+ 603,
172
+ 550,
173
+ 621
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "Note that mapping $f _ { \\mathbf { Z } }$ transfers word $x$ if it has target attribute $\\mathbf { z }$ ; otherwise $f _ { \\mathbf { Z } }$ works as identity mapping. For instance with $\\mathbf { z } _ { g e n d e r }$ , given input word man, gender attribute transfer $f _ { \\mathbf { Z } _ { g e n d e r } } ( \\mathbf { v } _ { m a n } )$ should result in a vector close to $\\mathbf { v } _ { w o m a n }$ . Given input word apple as $x$ , the results should be $\\mathbf { v } _ { a p p l e }$ . ",
180
+ "bbox": [
181
+ 174,
182
+ 627,
183
+ 825,
184
+ 671
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "3 ANALOGY-BASED WORD ATTRIBUTE TRANSFER ",
191
+ "text_level": 1,
192
+ "bbox": [
193
+ 173,
194
+ 689,
195
+ 609,
196
+ 707
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "Analogy is a general idea for realizing attribute transfer. Several PMI-based word embedding methods (Mikolov et al., 2013c; Linzen, 2016) tackled to embed words into word embedding space to capture the analogic relations. An embedded vector with SGNS or GloVe captures analogic relations (Levy & Goldberg, $2 0 1 4 \\mathrm { a }$ ; Mikolov et al., 2013c; Linzen, 2016). For instance, ${ \\mathbf { v } } _ { q u e e n }$ is near the vector obtained on the right side of Eq. 2. By rearranging Eq. 2, Eq. 3 is obtained: ",
203
+ "bbox": [
204
+ 173,
205
+ 720,
206
+ 825,
207
+ 792
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "equation",
213
+ "img_path": "images/c70f7271cf1ec2728dd8cb022d5c9205e031aeeb048d9fcf43a26fc8a48f5ed4.jpg",
214
+ "text": "$$\n\\begin{array} { r } { \\mathbf { v } _ { q u e e n } \\approx \\mathbf { v } _ { k i n g } - \\mathbf { v } _ { m a n } + \\mathbf { v } _ { w o m a n } , } \\\\ { \\mathbf { \\tau } } \\\\ { \\approx \\mathbf { v } _ { k i n g } - ( \\mathbf { v } _ { m a n } - \\mathbf { v } _ { w o m a n } ) . } \\end{array}\n$$",
215
+ "text_format": "latex",
216
+ "bbox": [
217
+ 357,
218
+ 799,
219
+ 611,
220
+ 849
221
+ ],
222
+ "page_idx": 1
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "We can transfer the gender attribute by subtracting difference vector ${ \\bf v } _ { m a n } - { \\bf v } _ { w o m a n }$ from input word vectors, e.g., $\\mathbf { v } _ { k i n g }$ . The analogy-based transfer function is ",
227
+ "bbox": [
228
+ 171,
229
+ 854,
230
+ 825,
231
+ 883
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "equation",
237
+ "img_path": "images/e3d8454c7f3719e189735961690833af9c8389dc6b551ec7b225fb1a43138e40.jpg",
238
+ "text": "$$\nf _ { \\mathbf { Z } } ( \\mathbf { v } _ { x } ) = { \\left\\{ \\begin{array} { l l } { \\mathbf { v } _ { x } - \\mathbf { d } } & { { \\mathrm { ~ i f ~ } } x \\in { \\mathcal { M } } , } \\\\ { \\mathbf { v } _ { x } + \\mathbf { d } } & { { \\mathrm { ~ i f ~ } } x \\in { \\mathcal { F } } , } \\end{array} \\right. }\n$$",
239
+ "text_format": "latex",
240
+ "bbox": [
241
+ 362,
242
+ 892,
243
+ 599,
244
+ 928
245
+ ],
246
+ "page_idx": 1
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "where $\\mathbf { d }$ is a difference vector of the given word pair such as man and woman, $\\mathcal { M }$ is a set of words having a target attribute, and $\\mathcal { F }$ is a set of words having an inverse attribute, for example, $m a n \\in \\mathcal { M }$ and $w o m a n \\in { \\mathcal { F } }$ for gender attributes. Eq. 4 indicates that the operation changes depending on whether input word $x$ belongs to $\\mathcal { M }$ or $\\mathcal { F }$ . For gender words, we subtract difference vector $\\mathbf { d }$ if $x$ is male, and add it if $x$ is female. Therefore, we need such explicit knowledge. However, this knowledge cannot be developed for various words and attributes in practice. ",
251
+ "bbox": [
252
+ 174,
253
+ 103,
254
+ 825,
255
+ 188
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "4 REFLECTION-BASED WORD ATTRIBUTE TRANSFER ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 207,
266
+ 632,
267
+ 224
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "4.1 IDEALIZED TRANSFER WITHOUT EXPLICIT KNOWLEDGE ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 173,
277
+ 238,
278
+ 602,
279
+ 252
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "What is an idealized transfer function $\\phi _ { \\mathbf { Z } }$ for the word attribute transfer? The following are the idealized natures of such a transfer function: ",
286
+ "bbox": [
287
+ 173,
288
+ 263,
289
+ 823,
290
+ 292
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "equation",
296
+ "img_path": "images/ded2c11aa051a89f0a02c5f55559326eac53555cf6e0e7e33ebe526babe940c4.jpg",
297
+ "text": "$$\n\\begin{array} { r } { \\mathbf { v } _ { m } = \\phi _ { \\mathbf { Z } } ( \\mathbf { v } _ { w } ) , } \\\\ { \\mathbf { v } _ { w } = \\phi _ { \\mathbf { Z } } ( \\mathbf { v } _ { m } ) , } \\end{array}\n$$",
298
+ "text_format": "latex",
299
+ "bbox": [
300
+ 428,
301
+ 296,
302
+ 535,
303
+ 344
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "where $m \\in \\mathcal { M }$ and $w \\in { \\mathcal { F } }$ . This function $\\phi _ { \\mathbf { Z } }$ enables to transfer a word without explicit knowledge. Function $\\phi _ { \\mathbf { Z } }$ transfers ${ \\bf v } _ { m }$ to ${ \\bf v } _ { w }$ and ${ \\bf v } _ { w }$ to ${ \\bf v } _ { m }$ without such explicit knowledge as $m \\in \\mathcal { M }$ and $w \\in { \\mathcal { F } }$ . By combining Eqs. 5 and 6, we obtain the following formula: ",
310
+ "bbox": [
311
+ 174,
312
+ 348,
313
+ 825,
314
+ 390
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "equation",
320
+ "img_path": "images/4381d9237616e0d1eb3a6f6e8d5d5dda75d2ef55844bdf181e7be053762c70cf.jpg",
321
+ "text": "$$\n\\forall m \\in \\mathcal { M } , \\qquad \\mathbf { v } _ { m } = \\phi _ { \\mathbf { Z } } \\big ( \\phi _ { \\mathbf { Z } } ( \\mathbf { v } _ { m } \\big ) \\big ) ,\n$$",
322
+ "text_format": "latex",
323
+ "bbox": [
324
+ 374,
325
+ 395,
326
+ 620,
327
+ 412
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "and ",
334
+ "bbox": [
335
+ 173,
336
+ 417,
337
+ 200,
338
+ 431
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "equation",
344
+ "img_path": "images/5d873f143cb0b4d9d016120011ab80765a622a4ad373ba80d94711670f061ed4.jpg",
345
+ "text": "$$\n\\forall w \\in \\mathcal { F } , \\qquad \\mathbf { v } _ { w } = \\phi _ { \\mathbf { Z } } \\big ( \\phi _ { \\mathbf { Z } } ( \\mathbf { v } _ { w } ) \\big ) .\n$$",
346
+ "text_format": "latex",
347
+ "bbox": [
348
+ 380,
349
+ 436,
350
+ 616,
351
+ 454
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "Hence, the idealized transfer function is a mapping that becomes an identity mapping when we apply it twice for any $\\mathbf { v }$ . Such a mapping is called involution in geometry. For example, $\\phi \\colon \\mathbf { v } \\mapsto - \\mathbf { v }$ is one example of an involution. Note that the identity map itself, such as $\\phi \\colon \\mathbf { v } \\mapsto \\mathbf { v }$ , is excluded from the involution. ",
358
+ "bbox": [
359
+ 174,
360
+ 459,
361
+ 825,
362
+ 515
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "4.2 REFLECTION ",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 174,
372
+ 531,
373
+ 303,
374
+ 546
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "A reflection is an involution that reverses the location between two vectors in a Euclidean space through an affine hyperplane (mirror). Reflection is an idealized function because every point returns to its original location when reflection is applied twice: ",
381
+ "bbox": [
382
+ 173,
383
+ 558,
384
+ 825,
385
+ 599
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/c1420a90afd4d9c4d80e3ad03975bdeaa973bd33265f239fa5c32d6fb4026a94.jpg",
392
+ "text": "$$\n\\forall \\mathbf { v } \\in \\mathbb { R } ^ { n } , \\qquad \\mathbf { v } = R e f _ { \\mathbf { a } , \\mathbf { c } } ( R e f _ { \\mathbf { a } , \\mathbf { c } } ( \\mathbf { v } ) { \\bf \\phi } ) .\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 356,
396
+ 604,
397
+ 638,
398
+ 622
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "Given vector $\\mathbf { v }$ in Euclidean space $\\mathbb { R } ^ { n }$ , the formula for the reflection in the mirror is given: ",
405
+ "bbox": [
406
+ 174,
407
+ 626,
408
+ 767,
409
+ 642
410
+ ],
411
+ "page_idx": 2
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/f5e6daab1290adc2cc6687450825ff05353bd37fe14ba39f2bfc0816ec8dd5fb.jpg",
416
+ "text": "$$\nR e f _ { \\mathbf { a } , \\mathbf { c } } ( \\mathbf { v } ) = \\mathbf { v } - 2 { \\frac { ( \\mathbf { v } - \\mathbf { c } ) \\cdot \\mathbf { a } } { \\mathbf { a } \\cdot \\mathbf { a } } } \\mathbf { a } ,\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 369,
420
+ 646,
421
+ 594,
422
+ 679
423
+ ],
424
+ "page_idx": 2
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "where $\\mathbf { a } \\in \\mathbb { R } ^ { n }$ is a vector orthogonal to the mirror (normal vector) and $\\mathbf { c } \\in \\mathbb { R } ^ { n }$ is a point through which the mirror passes. a and c are parameters that determine the mirror. ",
429
+ "bbox": [
430
+ 174,
431
+ 681,
432
+ 823,
433
+ 710
434
+ ],
435
+ "page_idx": 2
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "4.3 REFLECTION-BASED WORD ATTRIBUTE TRANSFER ",
440
+ "text_level": 1,
441
+ "bbox": [
442
+ 173,
443
+ 727,
444
+ 570,
445
+ 741
446
+ ],
447
+ "page_idx": 2
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "We apply reflection to the word attribute transfer to invert a specific attribute of an input word without its explicit attribute knowledge. We learn a mirror (hyperplane) in a pre-trained embedding space using training word pairs with a common (binary) attribute $\\mathbf { z }$ (Fig. 2). Here since the mirror is uniquely determined by two parameter vectors, a and $\\mathbf { c }$ , we estimate a and c from target attribute $\\mathbf { z }$ using fully connected multi-layer perceptrons: ",
452
+ "bbox": [
453
+ 173,
454
+ 752,
455
+ 825,
456
+ 823
457
+ ],
458
+ "page_idx": 2
459
+ },
460
+ {
461
+ "type": "equation",
462
+ "img_path": "images/71edb7617d9bee7c4e41ca6707f965422caac7a6d10139e89a087553bd7fe411.jpg",
463
+ "text": "$$\n\\begin{array} { r } { \\mathbf { a } = M L P ( \\mathbf { z } ) , } \\\\ { \\mathbf { c } = M L P ( \\mathbf { z } ) . } \\end{array}\n$$",
464
+ "text_format": "latex",
465
+ "bbox": [
466
+ 429,
467
+ 827,
468
+ 534,
469
+ 873
470
+ ],
471
+ "page_idx": 2
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Transferred vector $\\mathbf { v } _ { y }$ is obtained by inverting attribute $\\mathbf { z }$ of ${ \\bf v } _ { x }$ by reflection: ",
476
+ "bbox": [
477
+ 171,
478
+ 877,
479
+ 678,
480
+ 892
481
+ ],
482
+ "page_idx": 2
483
+ },
484
+ {
485
+ "type": "equation",
486
+ "img_path": "images/8f5a84934ac0f226a4528f86b4cddcb11e7cc8378f69bf2f7ea1ebc5f0e5f5a5.jpg",
487
+ "text": "$$\n\\begin{array} { r } { \\mathbf { v } _ { y } = R e f _ { \\mathbf { a } , \\mathbf { c } } ( \\mathbf { v } _ { x } ) . } \\end{array}\n$$",
488
+ "text_format": "latex",
489
+ "bbox": [
490
+ 418,
491
+ 897,
492
+ 547,
493
+ 915
494
+ ],
495
+ "page_idx": 2
496
+ },
497
+ {
498
+ "type": "image",
499
+ "img_path": "images/4b41c91e239af6f7ce1b9bc1201af457426e51e5f181fbb02278f0acf591f13a.jpg",
500
+ "image_caption": [
501
+ "Figure 2: Reflection-based word attribute transfer examples. "
502
+ ],
503
+ "image_footnote": [],
504
+ "bbox": [
505
+ 236,
506
+ 99,
507
+ 821,
508
+ 253
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "image",
514
+ "img_path": "images/5dec7c1bb005195aa8edc93418d25df229d78394ea104c2d37ea207d3d975c87.jpg",
515
+ "image_caption": [
516
+ "Figure 3: Mirror estimation methods "
517
+ ],
518
+ "image_footnote": [],
519
+ "bbox": [
520
+ 194,
521
+ 291,
522
+ 826,
523
+ 445
524
+ ],
525
+ "page_idx": 3
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "4.4 PARAMETERIZED MIRRORS ",
530
+ "text_level": 1,
531
+ "bbox": [
532
+ 176,
533
+ 497,
534
+ 405,
535
+ 511
536
+ ],
537
+ "page_idx": 3
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Reflection with a mirror by Eqs. 11 and 12 assumes a single mirror depending only on z. Previous discussion assumed that there will be pairs sharing a stable attribute such king and queen. However, often gendered words don’t come in pairs, and gender is far from a stable attribute. For example, actress may be feminine, but actor is clearly neutral in many cases (Fig. 3). Thus, actor isn’t as obvious a masculine counterpart as king. In fact, it is known that there are biases in gender words in the embedding space (Zhao et al., 2018; Kaneko & Bollegala, 2019). This phenomenon can occur not only with the gender attribute, but also with other attributes. With this assumption of a single mirror, the mirror must be a hyperplane that goes through the midpoints for all word vector pairs. However, the vector pairs shown on the left of Fig. 3 cannot be transferred well since the single mirror does not satisfy this constraint due to the bias of the embedding space. To solve this problem, we introduce different mirrors for different words. We propose parameterized mirrors determined by input vector ${ \\bf v } _ { x }$ in addition to attribute $\\mathbf { z }$ . The following are the definitions of the mirror parameters: ",
542
+ "bbox": [
543
+ 173,
544
+ 523,
545
+ 825,
546
+ 690
547
+ ],
548
+ "page_idx": 3
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "img_path": "images/929f4392610c2ee018118a401dd5871005bfdc6e6f559ca1b93f3dba7a426d83.jpg",
553
+ "text": "$$\n\\begin{array} { r } { \\mathbf { a } = M L P ( [ \\mathbf { z } ; \\mathbf { v } _ { x } ] ) , } \\\\ { \\mathbf { \\ c } = M L P ( [ \\mathbf { z } ; \\mathbf { v } _ { x } ] ) , } \\end{array}\n$$",
554
+ "text_format": "latex",
555
+ "bbox": [
556
+ 411,
557
+ 696,
558
+ 552,
559
+ 750
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "where $[ \\cdot ; \\cdot ]$ indicates the vector concatenation in the column. The parameterized mirrors are expected to work flexibly on different words. For instance, as shown in Fig. 3, suppose we learned the mirror (the blue line) that transfers $\\mathbf { v } _ { h e r o }$ to $\\mathbf { v } _ { h e r o i n e }$ in advance. If input word vector $\\mathbf { v } _ { a c t o r }$ resembles $\\mathbf { v } _ { h e r o }$ , a mirror that is similar to the one for $\\mathbf { v } _ { h e r o }$ should be derived and used for the attribute transfer. ",
566
+ "bbox": [
567
+ 174,
568
+ 755,
569
+ 825,
570
+ 825
571
+ ],
572
+ "page_idx": 3
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "4.5 LOSS FUNCTION ",
577
+ "text_level": 1,
578
+ "bbox": [
579
+ 174,
580
+ 842,
581
+ 331,
582
+ 857
583
+ ],
584
+ "page_idx": 3
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "Loss function $\\mathcal { L }$ is defined: ",
589
+ "bbox": [
590
+ 173,
591
+ 868,
592
+ 352,
593
+ 883
594
+ ],
595
+ "page_idx": 3
596
+ },
597
+ {
598
+ "type": "equation",
599
+ "img_path": "images/9b751774a4916f96bde15e8a16015e267bbdc9ed5b02ef1596065d74333e1a24.jpg",
600
+ "text": "$$\n\\mathcal { L } ( \\boldsymbol { \\Theta } ) = \\frac { 1 } { | \\mathcal { A } | } \\sum _ { ( x _ { i } , t _ { i } , \\mathbf { Z } _ { i } ) \\in \\mathcal { A } } ( \\mathbf { v } _ { y _ { i } } - \\mathbf { v } _ { t _ { i } } ) ^ { 2 } + \\frac { 1 } { | \\mathcal { N } | } \\sum _ { x _ { j } \\in \\mathcal { N } } ( \\mathbf { v } _ { y _ { j } } - \\mathbf { v } _ { x _ { j } } ) ^ { 2 } ,\n$$",
601
+ "text_format": "latex",
602
+ "bbox": [
603
+ 267,
604
+ 887,
605
+ 694,
606
+ 928
607
+ ],
608
+ "page_idx": 3
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "where $\\begin{array} { r } { \\frac { 1 } { | \\mathcal { A } | } \\sum _ { ( x _ { i } , t _ { i } , \\mathbf { Z } _ { i } ) \\in \\mathcal { A } } ( \\mathbf { v } _ { y _ { i } } - \\mathbf { v } _ { t _ { i } } ) ^ { 2 } } \\end{array}$ is a term that draws target word vector $\\mathbf { v } _ { t _ { i } }$ closer to corresponding transferred vector $\\mathbf { v } _ { y _ { i } }$ and $\\begin{array} { r } { \\frac { 1 } { | \\mathcal { N } | } \\sum _ { x _ { j } \\in \\mathcal { N } } ( \\mathbf { v } _ { y _ { j } } - \\mathbf { v } _ { x _ { j } } ) ^ { 2 } } \\end{array}$ is a term that prevents words without a target attribute from being moved by transfer function $f _ { \\mathbf { Z } } . \\Theta$ represents the set of all the trainable parameters. The parameters in the proposed model are the MLP weights used to determine mirror hyperplanes via a and $\\mathbf { c }$ . We iteratively update $\\Theta$ to minimize $\\mathcal { L }$ : ",
613
+ "bbox": [
614
+ 173,
615
+ 102,
616
+ 825,
617
+ 181
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "equation",
623
+ "img_path": "images/5f95d2f058b21889153b73f90232368949486244dc5ba9400070a42dcc3c3dd6.jpg",
624
+ "text": "$$\n\\begin{array} { r } { \\Theta _ { t + 1 } \\gets \\underset { \\Theta _ { t } } { \\operatorname { a r g m i n } } \\mathcal { L } ( \\Theta _ { t } ) , } \\end{array}\n$$",
625
+ "text_format": "latex",
626
+ "bbox": [
627
+ 398,
628
+ 185,
629
+ 565,
630
+ 212
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "where $t$ is the number of parameter updates at that time. ",
637
+ "bbox": [
638
+ 173,
639
+ 215,
640
+ 542,
641
+ 231
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "5 EXPERIMENT ",
648
+ "text_level": 1,
649
+ "bbox": [
650
+ 176,
651
+ 251,
652
+ 318,
653
+ 267
654
+ ],
655
+ "page_idx": 4
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "We evaluated the performance of the proposed reflection-based word attribute transfer using data with some different attributes. ",
660
+ "bbox": [
661
+ 176,
662
+ 281,
663
+ 823,
664
+ 310
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "5.1 EXPERIMENTAL SETUP ",
671
+ "text_level": 1,
672
+ "bbox": [
673
+ 174,
674
+ 327,
675
+ 375,
676
+ 340
677
+ ],
678
+ "page_idx": 4
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "We used three different datasets of word pairs with three binary attributes: Male-Female 1, SingularPlural and Capital-Country, shown in Table 1.These word pairs were collected from analogy test sets (Mikolov et al., 2013a; Gladkova et al., 2016), the Internet and Nguyen et al. (2017) for antonyms of noun2. Since these datasets are very small, we added Gaussian noise $\\sigma = 0 . 1$ ) to every input vector ${ \\bf v } _ { x }$ during training to avoid overfit. Random noise was applied independently to every sample in every iteration. For a non-attribute dataset $\\mathcal { N }$ , we sampled words from the three-million-word vocabulary of the word embedding model. We sampled from 4 to 50 words for training $0 ~ \\leq$ $| \\mathcal { N } _ { \\mathrm { t r a i n } } | \\leq 5 0 )$ and 1000 words for the test $\\lvert N _ { \\mathrm { t e s t } } \\rvert = \\bar { 1 } 0 0 0 )$ . We used a mixed dataset that included both $| \\mathcal { N } _ { \\mathrm { t r a i n } } |$ and $| \\mathcal { A } _ { \\mathrm { t r a i n } } |$ . Note that $\\mathcal { N } _ { \\mathrm { t e s t } }$ was sampled and excluded words from $\\mathcal { N } _ { \\mathrm { t r a i n } }$ and $\\mathcal { A } _ { \\mathrm { t r a i n } }$ . We had no $\\mathcal { N } _ { \\mathrm { v a l } }$ because the tuning was conducted with only $| \\mathcal { A } _ { \\mathrm { v a l } } |$ . We used word2vec (Mikolov et al., 2013b) 3 and GloVe (Pennington et al., 2014) 4 as the pre-trained embedding model. The embedded vector dimension is $n = 3 0 0$ . ",
683
+ "bbox": [
684
+ 173,
685
+ 352,
686
+ 825,
687
+ 518
688
+ ],
689
+ "page_idx": 4
690
+ },
691
+ {
692
+ "type": "table",
693
+ "img_path": "images/14ad4493483190c3814551ef38028e23fe7d69aa13f6a41358f1c8878310a92e.jpg",
694
+ "table_caption": [
695
+ "Table 1: Statistics of binary attribute word pair datasets (in the number of word pairs) "
696
+ ],
697
+ "table_footnote": [],
698
+ "table_body": "<table><tr><td>Dataset A</td><td>Train</td><td>Val</td><td>Test</td><td>Total</td></tr><tr><td>Male-Female (MF)</td><td>29</td><td>12</td><td>12</td><td>53</td></tr><tr><td>Singular-Plural (SP)</td><td>90</td><td>25</td><td>25</td><td>140</td></tr><tr><td>Capital-Country (CC)</td><td>59</td><td>25</td><td>25</td><td>109</td></tr><tr><td>Antonym (AN)</td><td>1354</td><td>290</td><td>290</td><td>1934</td></tr></table>",
699
+ "bbox": [
700
+ 313,
701
+ 554,
702
+ 684,
703
+ 640
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "5.2 EVALUATION METRICS ",
710
+ "text_level": 1,
711
+ "bbox": [
712
+ 174,
713
+ 672,
714
+ 375,
715
+ 688
716
+ ],
717
+ "page_idx": 4
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "We measured the accuracy and stability performances of the word attribute transfer. The accuracy measures how many input words in $\\mathcal { A } _ { \\mathrm { t e s t } }$ were transferred correctly to the corresponding target words. The stability score measures how many words in $\\mathcal { N } _ { \\mathrm { t e s t } }$ are not mapped to other words. For example, in a gender transfer, given man, the transfer is regarded as correct if woman is the closest word to the transferred vector; otherwise it is incorrect. Given apple, the transfer is regarded as correct if apple is the closest word to the transferred vector; otherwise its stability is incorrect. Here we used cosine similarity to measure the similarity of output vector $\\mathbf { v } _ { y }$ and target vector $\\mathbf { v } _ { t }$ . The accuracy and stability scores are calculated by the following formula: ",
722
+ "bbox": [
723
+ 173,
724
+ 698,
725
+ 825,
726
+ 810
727
+ ],
728
+ "page_idx": 4
729
+ },
730
+ {
731
+ "type": "equation",
732
+ "img_path": "images/398d93badd0268cafe357f69a932f8a83c17fe80baa5d420877029308cfe289f.jpg",
733
+ "text": "$$\n\\delta ( { \\bf v } _ { y } , t ) = \\left\\{ \\begin{array} { l l } { 1 } & { \\mathrm { ~ i f ~ } \\quad \\underset { k \\in \\mathcal { V } } { \\arg \\operatorname* { m a x } } \\frac { { \\bf v } _ { y } \\cdot { \\bf v } _ { k } } { \\| { \\bf v } _ { y } \\| \\| { \\bf V } _ { k } \\| } = t , } \\\\ { 0 } & { \\mathrm { ~ o t h e r w i s e , } } \\end{array} \\right.\n$$",
734
+ "text_format": "latex",
735
+ "bbox": [
736
+ 326,
737
+ 814,
738
+ 635,
739
+ 859
740
+ ],
741
+ "page_idx": 4
742
+ },
743
+ {
744
+ "type": "equation",
745
+ "img_path": "images/624cd63e8e1c191833731c942651b335d67dfa89b7067329bd1ad5abf1f3b707.jpg",
746
+ "text": "$$\n\\mathrm { A c c u r a c y } = \\frac { 1 } { | \\mathcal { A } _ { \\mathrm { t e s t } } | } \\sum _ { ( x _ { i } , t _ { i } , \\mathbf { Z } _ { i } ) \\in \\mathcal { A } _ { \\mathrm { t e s t } } } \\delta ( \\mathbf { v } _ { y _ { i } } , t _ { i } ) ,\n$$",
747
+ "text_format": "latex",
748
+ "bbox": [
749
+ 330,
750
+ 98,
751
+ 633,
752
+ 138
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "equation",
758
+ "img_path": "images/fc02a56ff9df59bdc47b64cafec0fb1673ce782232d93548a1ac460583e8fc64.jpg",
759
+ "text": "$$\n\\mathrm { S t a b i l i t y } = \\frac { 1 } { | \\mathcal N _ { \\mathrm { t e s t } } | } \\sum _ { \\substack { x _ { i } \\in \\mathcal N _ { \\mathrm { t e s t } } } } \\delta ( \\mathbf v _ { y _ { i } } , x _ { i } ) ,\n$$",
760
+ "text_format": "latex",
761
+ "bbox": [
762
+ 351,
763
+ 154,
764
+ 612,
765
+ 193
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "where $\\nu$ is the vocabulary of the word embedding model. ",
772
+ "bbox": [
773
+ 173,
774
+ 199,
775
+ 550,
776
+ 214
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "5.3 METHODS AND CONFIGURATIONS ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 229,
787
+ 450,
788
+ 244
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "In our experiment, we compared our proposed method with the following baseline methods: ",
795
+ "bbox": [
796
+ 171,
797
+ 256,
798
+ 776,
799
+ 271
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "REF Reflection-based word attribute transfer with a single mirror. We used a fully connected 2-layer MLP with 300 hidden units and ReLU activations to estimate a and c. ",
806
+ "bbox": [
807
+ 171,
808
+ 282,
809
+ 820,
810
+ 311
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "REF+PM Reflection-based word attribute transfer with parameterized mirrors. We used the same MLP as the REF. ",
817
+ "bbox": [
818
+ 173,
819
+ 315,
820
+ 823,
821
+ 344
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "MLP Fully connected MLP: $\\mathbf v _ { y } = M L P ( [ \\mathbf v _ { x } ; \\mathbf z ] )$ . The highest accuracy models are a 2-layer MLP for Capital-Country and 3-layer MLP for the other datasets. ",
828
+ "bbox": [
829
+ 173,
830
+ 348,
831
+ 821,
832
+ 377
833
+ ],
834
+ "page_idx": 5
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "DIFF Analogy-based word attribute transfer with a difference vector: $\\mathbf { d } = \\mathbf { v } _ { m } - \\mathbf { v } _ { w }$ , where $m$ and $w$ are in the training data of $\\mathcal { A }$ . We chose d because it achieved the best accuracy in the validation data of $\\mathcal { A }$ . We determined whether to add or subtract $\\mathbf { d }$ to ${ \\bf v } _ { x }$ based on attribute knowledge (Eq. 4). ",
839
+ "bbox": [
840
+ 174,
841
+ 381,
842
+ 825,
843
+ 438
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "DIFF $^ +$ Analogy-based word attribute transfer with a difference vector regardless of the attribute knowledge. d was obtained in the same way as the DIFF. We added $\\mathbf { d }$ to ${ \\bf v } _ { x }$ for any input $x$ : $f _ { \\mathbf { Z } } ( \\mathbf { v } _ { x } ) = \\mathbf { v } _ { x } + \\mathbf { d }$ , $\\forall \\mathbf { v } _ { x } \\in \\mathbb { R } ^ { n }$ . ",
850
+ "bbox": [
851
+ 171,
852
+ 443,
853
+ 823,
854
+ 484
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "DIFF − Analogy-based word attribute transfer with a difference vector regardless of the attribute knowledge. d was obtained in the same way as the DIFF. We subtracted $\\mathbf { d }$ from ${ \\bf v } _ { x }$ for any input $x$ : ${ \\bf { \\bar { f } } } _ { \\mathbf { Z } } ( { \\bf v } _ { x } ) = { \\bf v } _ { x } - \\mathbf { d } , \\quad \\forall { \\bf v } _ { x } \\in \\mathbb { R } ^ { n } .$ . ",
861
+ "bbox": [
862
+ 173,
863
+ 488,
864
+ 821,
865
+ 531
866
+ ],
867
+ "page_idx": 5
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "MEANDIFF Analogy-based word attribute transfer with a mean difference vector $\\bar { \\bf d }$ : $\\bar { \\textbf { d } } =$ 1|Atrain| P(mi,wi)∈Atrain (vmi − vwi ). We determined whether to add or subtract d¯ to vx based on the attribute knowledge (Eq.4). ",
872
+ "bbox": [
873
+ 173,
874
+ 535,
875
+ 825,
876
+ 580
877
+ ],
878
+ "page_idx": 5
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "MEANDIFF $^ +$ Analogy-based word attribute transfer with a mean difference vector regardless of the attribute knowledge: $f _ { \\mathbf { Z } } ( \\mathbf { v } _ { x } ) = \\mathbf { v } _ { x } + \\bar { \\mathbf { d } }$ , $\\forall \\mathbf { v } _ { x } \\in \\mathbb { R } ^ { n }$ . $\\bar { \\bf d }$ was obtained in the same way as the MEANDIFF. ",
883
+ "bbox": [
884
+ 174,
885
+ 584,
886
+ 825,
887
+ 627
888
+ ],
889
+ "page_idx": 5
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "MEANDIFF − Analogy-based word attribute transfer with a mean difference vector regardless of the attribute knowledge: $f _ { \\mathbf { Z } } ( \\mathbf { v } _ { x } ) = \\mathbf { v } _ { x } - \\bar { \\mathbf { d } }$ , $\\forall \\mathbf { v } _ { x } \\in \\mathbb { R } ^ { n }$ . d¯ was obtained in the same way as the MEANDIFF. ",
894
+ "bbox": [
895
+ 173,
896
+ 631,
897
+ 825,
898
+ 672
899
+ ],
900
+ "page_idx": 5
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Based on the tuning, we used the Adam optimizer (Kingma & Ba, 2015) with a learning rate of $\\alpha = 1 0 ^ { - 4 }$ (the other hyperparameters were the same as the original one (Kingma & Ba, 2015)), and a batchsize of 62 for male-female, and 32 for the others. These hyperparameters were identical for the learning-based methods: REF, $\\boldsymbol { \\mathrm { R E F + P M } }$ , or MLP. We did not use such regularization methods as dropout (Srivastava et al., 2014) or batch normalization (Ioffe & Szegedy, 2015) because they did not show any improvement in our pilot test. ",
905
+ "bbox": [
906
+ 173,
907
+ 685,
908
+ 825,
909
+ 768
910
+ ],
911
+ "page_idx": 5
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "5.4 ACCURACY AND STABILITY ",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 176,
919
+ 786,
920
+ 406,
921
+ 800
922
+ ],
923
+ "page_idx": 5
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Table 2 and 3 shows the transfer accuracy and stability score results. Both experiments using GloVe or word2vec obtained similar results. $\\boldsymbol { \\mathrm { R E F + P M } }$ achieved the best accuracy among the methods that did not use explicit attribute knowledge. This means that reflection can be used for word attribute transfers even without attribute knowledge. In the stability evaluation, reflection-based methods (REF, $\\mathsf { R E F } + \\mathsf { P M } )$ and the analogy-based methods with a mean difference vector (MEANDIFF $-$ , MEANDIFF $^ +$ ) achieved high stability. In particular, reflection-based transfers achieved outstanding stability scores exceeding $9 9 \\%$ . The stability of DIFF $^ +$ and DIFF $-$ was much lower than the other methods. Although MEANDIFF − and MEANDIFF + achieved high stability, their accuracy results were very low. Interestingly, reflection-based transfer with parameterized mirrors $( \\mathrm { R E F } + \\mathrm { P M } )$ achieved high performance in both accuracy and stability. For example, the accuracy of RE $\\boldsymbol { \\mathbf { \\ell } } + \\mathbf { P M }$ was $4 1 . 6 7 \\%$ , and the stability was $9 9 . 9 \\%$ in Male-Female (MF), and the accuracy was $58 \\%$ and the stability was $9 9 . 4 0 ~ \\%$ in Capital-Country (CC). These results show that the proposed method transfers an input word if it has a target attribute and does not transfer an input word even though it does not use explicit attribute knowledge on the input words. MLP worked poorly both in accuracy and stability. In the antonym (AN), while the transfer accuracy by the proposed method was a bit lower than that by MLP, the stability of the proposed method was $100 \\%$ and that of MLP was really poor (almost $0 \\%$ ). ",
928
+ "bbox": [
929
+ 174,
930
+ 811,
931
+ 825,
932
+ 924
933
+ ],
934
+ "page_idx": 5
935
+ },
936
+ {
937
+ "type": "table",
938
+ "img_path": "images/0f16f08f1cfb26a955ee4b00b6e6a413e2be9fee4306051faeabfe12e96eadd5.jpg",
939
+ "table_caption": [
940
+ "Table 2: Results in accuracy and stability scores (word2vec). "
941
+ ],
942
+ "table_footnote": [],
943
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>MF</td><td>SP</td><td>CC</td><td>AN</td><td>MF</td><td>SP</td><td>CC</td><td>AN</td></tr><tr><td>REF</td><td></td><td>20.83</td><td>0.00</td><td>36.00</td><td>0.00</td><td>99.80</td><td>100.00</td><td>99.80</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>41.67</td><td>22.00</td><td>58.00</td><td>28.79</td><td>99.90</td><td>99.40</td><td>99.40</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>8.33</td><td>4.00</td><td>12.00</td><td>35.86</td><td>2.20</td><td>0.00</td><td>2.70</td><td>1.90</td></tr><tr><td>DIFF+</td><td></td><td>25.00</td><td>2.00</td><td>32.00</td><td>-</td><td>72.10</td><td>77.90</td><td>53.90</td><td>-</td></tr><tr><td>DIFF-</td><td></td><td>25.00</td><td>2.00</td><td>30.00</td><td>=</td><td>49.60</td><td>78.20</td><td>56.30</td><td>1</td></tr><tr><td>MEANDIFF +</td><td></td><td>4.17</td><td>0.00</td><td>22.00</td><td>=</td><td>98.60</td><td>99.40</td><td>87.60</td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>8.33</td><td>0.00</td><td>14.00</td><td>=</td><td>97.20</td><td>99.30</td><td>92.40</td><td></td></tr><tr><td>DIFF</td><td></td><td>62.50</td><td>4.00</td><td>64.00</td><td></td><td>1</td><td>=</td><td>=</td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>12.50</td><td>0.00</td><td>36.00</td><td></td><td></td><td></td><td></td><td></td></tr></table>",
944
+ "bbox": [
945
+ 173,
946
+ 125,
947
+ 826,
948
+ 296
949
+ ],
950
+ "page_idx": 6
951
+ },
952
+ {
953
+ "type": "table",
954
+ "img_path": "images/7d9f1402357ae6ccceaee695adca5cfbc4a413c424c0789053a09d2b01081b82.jpg",
955
+ "table_caption": [
956
+ "Table 3: Results in accuracy and stability scores (GloVe). "
957
+ ],
958
+ "table_footnote": [],
959
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>MF</td><td>SP</td><td>CC</td><td>AN</td><td>MF</td><td>SP</td><td>CC</td><td>AN</td></tr><tr><td>REF</td><td></td><td>12.50</td><td>2.00</td><td>26.00</td><td>0.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>45.83</td><td>50.00</td><td>76.00</td><td>33.54</td><td>99.70</td><td>99.10</td><td>99.20</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>4.17</td><td>10.00</td><td>18.00</td><td>36.72</td><td>5.10</td><td>7.00</td><td>5.20</td><td>1.20</td></tr><tr><td>DIFF+</td><td></td><td>25.00</td><td>2.00</td><td>26.00</td><td>-</td><td>99.30</td><td>94.20</td><td>99.30</td><td>1</td></tr><tr><td>DIFF-</td><td></td><td>25.00</td><td>2.00</td><td>24.00</td><td>=</td><td>100.60</td><td>99.90</td><td>99.50</td><td>=</td></tr><tr><td>MEANDIFF +</td><td></td><td>0.00</td><td>0.00</td><td>22.00</td><td></td><td>100.00</td><td>100.00</td><td>100.00</td><td>一</td></tr><tr><td>MEANDIFF</td><td></td><td>0.00</td><td>0.00</td><td>0.00</td><td></td><td>100.00</td><td>100.00</td><td>100.00</td><td></td></tr><tr><td>DIFF</td><td></td><td>50.00</td><td>4.00</td><td>44.00</td><td></td><td>=</td><td>=</td><td></td><td></td></tr><tr><td>MEANDIFF</td><td></td><td>0.00</td><td>0.00</td><td>0.00</td><td></td><td></td><td>-</td><td></td><td></td></tr></table>",
960
+ "bbox": [
961
+ 173,
962
+ 337,
963
+ 838,
964
+ 507
965
+ ],
966
+ "page_idx": 6
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "",
971
+ "bbox": [
972
+ 174,
973
+ 535,
974
+ 825,
975
+ 661
976
+ ],
977
+ "page_idx": 6
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "We investigated the relation between the size of $| \\mathcal { N } _ { \\mathrm { t r a i n } } |$ and the stability of learning-based methods by conducting an additional experiment by varying $| \\mathcal { N } _ { \\mathrm { t r a i n } } |$ from 0 to 50. The stability scores by MLP did not improve (Table 4). On the other hand, REF and $\\boldsymbol { \\mathrm { R E F } } + \\boldsymbol { \\mathrm { P M } }$ achieved high stability scores with just $| \\bar { \\mathcal { N } } _ { \\mathrm { t r a i n } } | = 4$ and maintained the accuracy. ",
982
+ "bbox": [
983
+ 174,
984
+ 667,
985
+ 823,
986
+ 724
987
+ ],
988
+ "page_idx": 6
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "5.5 TRANSFER EXAMPLE ",
993
+ "text_level": 1,
994
+ "bbox": [
995
+ 176,
996
+ 743,
997
+ 362,
998
+ 757
999
+ ],
1000
+ "page_idx": 6
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Table 5 shows examples of a gender transfer at the sentence level, where the attribute transfer was applied to words in sentence $\\bar { X } = \\{ x _ { 1 } , x _ { 2 } , \\ldots \\}$ . Here since such words as $a$ and . are not in the vocabulary of the original word embedding model, we omitted them from the inputs. MLP made many wrong transfers on words without gender attributes, e.g., the became By Katie Klingsporn, was became she, when became Doughty Evening Chronicle, and woman became girlfriend. $\\mathrm { D I F F ^ { + } }$ can transfer if $x$ is female, e.g., it transferred from woman to man, but it could not transfer grandfather and boy. Similarly, DIFF − failed to transfer from female to male. In addition, since the stability of these methods was low, they erroneously transferred. For example, in DIFF $^ -$ , the and when became she. REF + PM can selectively transfer words with a gender attribute without using explicit gender information. For example, when woman was given, $R e f ( \\mathbf { v } _ { w o m a n } )$ became man without knowledge that woman is a female word, and when man was given, it became woman. When non-attribute word married was given, $R e f ( \\mathbf { v } _ { m a r r i e d } )$ became married without knowledge that married has no gender attribute. When we applied the reflection-based transfer twice, the transferred word returned to its original word, e.g., $R e f ( R e f ( \\mathbf { v } _ { w o m a n } ) )$ gives woman. ",
1005
+ "bbox": [
1006
+ 173,
1007
+ 770,
1008
+ 825,
1009
+ 924
1010
+ ],
1011
+ "page_idx": 6
1012
+ },
1013
+ {
1014
+ "type": "table",
1015
+ "img_path": "images/b2e123d72b0df2dac4f5b0e1da33809deaceb6862e5f622c69cc946f381b3eab.jpg",
1016
+ "table_caption": [
1017
+ "Table 4: Relation among size of $| \\mathcal { N } _ { \\mathrm { t r a i n } } |$ and stability of learning-based methods. "
1018
+ ],
1019
+ "table_footnote": [],
1020
+ "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td colspan=\"4\">Wtrainl</td><td colspan=\"4\">|Wtrainl</td></tr><tr><td></td><td></td><td>0</td><td>4</td><td>10</td><td>50</td><td>0</td><td>4</td><td>10</td><td>50</td></tr><tr><td rowspan=\"3\">MF</td><td>REF</td><td>16.67</td><td>20.83</td><td>20.83</td><td>20.83</td><td>98.30</td><td>98.80</td><td>99.40</td><td>99.80</td></tr><tr><td>REF+PM</td><td>41.67</td><td>45.83</td><td>20.83</td><td>41.67</td><td>38.30</td><td>98.40</td><td>100.00</td><td>99.90</td></tr><tr><td>MLP</td><td>4.17</td><td>8.33</td><td>8.33</td><td>8.33</td><td>0.00</td><td>0.30</td><td>0.30</td><td>2.20</td></tr><tr><td rowspan=\"3\">SP</td><td>REF</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>99.90</td><td>99.90</td><td>99.90</td><td>100.90</td></tr><tr><td>REF+PM</td><td>12.00</td><td>22.00</td><td>18.00</td><td>18.00</td><td>98.40</td><td>99.40</td><td>99.30</td><td>99.80</td></tr><tr><td>MLP</td><td>4.00</td><td>4.00</td><td>2.00</td><td>2.00</td><td>0.00</td><td>0.00</td><td>0.10</td><td>3.40</td></tr><tr><td rowspan=\"3\">CC</td><td>REF</td><td>36.00</td><td>36.00</td><td>36.00</td><td>34.00</td><td>99.80</td><td>99.80</td><td>99.80</td><td>100.00</td></tr><tr><td>REF+PM</td><td>58.00</td><td>56.00</td><td>58.00</td><td>54.00</td><td>73.80</td><td>99.70</td><td>99.40</td><td>99.40</td></tr><tr><td>MLP</td><td>6.00</td><td>6.00</td><td>8.00</td><td>12.00</td><td>0.00</td><td>0.30</td><td>0.50</td><td>2.70</td></tr><tr><td rowspan=\"3\">AN</td><td>REF</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>99.90</td><td>99.90</td><td>99.90</td><td>99.80</td></tr><tr><td>REF+PM</td><td>21.72</td><td>27.24</td><td>28.62</td><td>28.79</td><td>95.30</td><td>99.20</td><td>99.50</td><td>99.80</td></tr><tr><td>MLP</td><td>34.14</td><td>35.00</td><td>34.31</td><td>35.86</td><td>0.00</td><td>0.01</td><td>0.02</td><td>1.90</td></tr></table>",
1021
+ "bbox": [
1022
+ 205,
1023
+ 126,
1024
+ 794,
1025
+ 356
1026
+ ],
1027
+ "page_idx": 7
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "",
1032
+ "bbox": [
1033
+ 174,
1034
+ 381,
1035
+ 825,
1036
+ 424
1037
+ ],
1038
+ "page_idx": 7
1039
+ },
1040
+ {
1041
+ "type": "table",
1042
+ "img_path": "images/fe0874db2874fadee852b2743932f7450fffd94af80d5e2234e3cc86521453fc.jpg",
1043
+ "table_caption": [
1044
+ "Table 5: Transfer results when sentence $X = \\{ \\mathrm { t h e , . . . , b o y } \\}$ was given. Out-of-vocabulary words $a$ and . were not given as input. "
1045
+ ],
1046
+ "table_footnote": [],
1047
+ "table_body": "<table><tr><td>X</td><td>the woman was married when your grandfather was (a) boy (.)</td></tr><tr><td>Ref(x)</td><td>the man was married when your grandmother was (a) girl (.)</td></tr><tr><td>Ref(Ref(x))</td><td>the woman was married when your grandfather was (a) boy (.)</td></tr><tr><td>MLP</td><td>By_Katie_Klingsporn girlfriend she fiancee Doughty_Evening_Chronicle ma&#x27;am daughter she (a) mother (.)</td></tr><tr><td>DIFF+</td><td>the man was married when your grandfather was (a) boy (.)</td></tr><tr><td>DIFF-</td><td>she woman was married she your grandmother was (a) girl (.)</td></tr></table>",
1048
+ "bbox": [
1049
+ 230,
1050
+ 473,
1051
+ 766,
1052
+ 595
1053
+ ],
1054
+ "page_idx": 7
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "We can transfer some different attributes of words with reflection-based transfer one-by-one. Table 6 shows that the words having different target attributes were transferred by each reflection-based transfer in the order of Male-Female, Singular-Plural, and Country-Capital. Given actress for a Male-Female transfer, it was transferred to actor and to actors for Singular-Plural. Given Tokyo for Male-Female, Singular-Plural, and Antonym, it was not transferred, but it was transferred to Japan for Country-Capital. Given rich for Male-Female, Singular-Plural, and Capital-Country, it was not transferred, but it was transferred to poor for Antonym. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 616,
1062
+ 825,
1063
+ 714
1064
+ ],
1065
+ "page_idx": 7
1066
+ },
1067
+ {
1068
+ "type": "table",
1069
+ "img_path": "images/df8cc0d4b43b980d0e7ac412654950fbe34e7e0d88681e74378176b8b226faaa.jpg",
1070
+ "table_caption": [
1071
+ "Table 6: Transfer of different attributes with reflection-based word attribute transfer with parameterized mirrors. "
1072
+ ],
1073
+ "table_footnote": [],
1074
+ "table_body": "<table><tr><td>X</td><td>the rich actress and the poor actor want to stay the beautiful city in Tokyo.</td></tr><tr><td>+Male-Female</td><td>the rich actor and the poor actress want to stay the beautiful city in Tokyo.</td></tr><tr><td>+ Singular-Plural</td><td></td></tr><tr><td></td><td>the rich actors and the poor actresses want to stay the beautiful cities in Tokyo.</td></tr><tr><td>+Capital-Country</td><td>the rich actors and the poor actresses want to stay the beautiful citie in Japan.</td></tr><tr><td>+ Antonym</td><td>the poor actors and the rich actresses want to stay the beautiful cities in Japan.</td></tr></table>",
1075
+ "bbox": [
1076
+ 178,
1077
+ 765,
1078
+ 821,
1079
+ 906
1080
+ ],
1081
+ "page_idx": 7
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "6 RELATED WORK ",
1086
+ "text_level": 1,
1087
+ "bbox": [
1088
+ 176,
1089
+ 102,
1090
+ 344,
1091
+ 117
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "The embedded vectors obtained by SGNS (Mikolov et al., 2013a;b) and GloVe (Pennington et al., 2014) have analogic relations. The theory of analogic relations in word embeddings has been widely discussed: Levy & Goldberg (2014b); Arora et al. (2016); Gittens et al. (2017); Ethayarajh et al. (2019); Allen & Hospedales (2019); Linzen (2016). Levy & Goldberg (2014b) offer the explanation that SGNS factorizes a shifted PMI matrix. Allen & Hospedales (2019) and Ethayarajh et al. (2019) argued that they proved the existence of such analogic relations without strong assumptions. In our work, we focus on the analogic relations in a word embedding space and propose a novel framework to obtain a word vector with inverted attributes. Style transfers (Niu et al., 2018; Prabhumoye et al., 2018; Jain et al., 2019; Logeswaran et al., 2018; Dai et al., 2019; Zhang et al., 2018) resemble our task. In a style transfer, the text style of the input sentences is changed. For instance, Jain et al. (2019) transferred from formal to informal sentences. Logeswaran et al. (2018) transferred sentences by controlling such attributes as mood and tense. These style transfer tasks use sentence pairs; our word attribute transfer task uses word pairs. Style transfer changes sentence styles, but our task changes the word attributes (contents). Soricut & Och (2015) studied the problem of morphological transformation based on character information. Our work aims more general attribute transfer such as gender transfer and country-capital and is not limited to the morphological transformation. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 135,
1101
+ 825,
1102
+ 356
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "7 CONCLUSION AND FUTURE WORK ",
1109
+ "text_level": 1,
1110
+ "bbox": [
1111
+ 176,
1112
+ 378,
1113
+ 493,
1114
+ 395
1115
+ ],
1116
+ "page_idx": 8
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "We proposed a novel representation learning framework based on reflection to invert a certain attribute of a word vector. We proposed a reflection-based method for word attribute transfers without relying on the explicit attribute knowledge of an input word, which is necessary for a simple analogy-based transfer. Experimental results showed that our proposed method can transfer the word attributes if the input word has a target attribute. If not, reflection does not transfer the word. ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 411,
1124
+ 823,
1125
+ 481
1126
+ ],
1127
+ "page_idx": 8
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Future work includes applications to other transfer tasks: sentence by sentence transfer, such Niu et al. (2018); Prabhumoye et al. (2018); Jain et al. (2019), and entity prediction on an analogic graph embedding space (Liu et al., 2017), in the field of computer vision, visual analogy (Reed et al., 2015), or style transfer (Zhu et al., 2017; Liao et al., 2017) with GANs (Radford et al., 2016; Goodfellow et al., 2014) because their latent space holds analogic relations (Radford et al., 2016). ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 488,
1135
+ 825,
1136
+ 558
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "REFERENCES ",
1143
+ "text_level": 1,
1144
+ "bbox": [
1145
+ 174,
1146
+ 580,
1147
+ 285,
1148
+ 597
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Carl Allen and Timothy M. Hospedales. Analogies Explained: Towards Understanding Word Embeddings. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, 9-15 June 2019, Long Beach, California, USA, pp. 223–231, 2019. URL http: //proceedings.mlr.press/v97/allen19a.html. ",
1155
+ "bbox": [
1156
+ 174,
1157
+ 606,
1158
+ 825,
1159
+ 661
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Sanjeev Arora, Yuanzhi Li, Yingyu Liang, Tengyu Ma, and Andrej Risteski. A Latent Variable Model Approach to PMI-based Word Embeddings. Transactions of the Association for Computational Linguistics, 4:385–399, 2016. URL https://transacl.org/ojs/index.php/ tacl/article/view/742. ",
1166
+ "bbox": [
1167
+ 174,
1168
+ 674,
1169
+ 825,
1170
+ 731
1171
+ ],
1172
+ "page_idx": 8
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching Word Vectors with Subword Information. Transactions of the Association for Computational Linguistics, 5:135–146, 2017. URL https://transacl.org/ojs/index.php/tacl/article/ view/999. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 743,
1180
+ 825,
1181
+ 799
1182
+ ],
1183
+ "page_idx": 8
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Kenneth Ward Church and Patrick Hanks. Word Association Norms, Mutual Information, and Lexicography. Computational Linguistics, 16(1):22–29, 1990. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 813,
1191
+ 823,
1192
+ 842
1193
+ ],
1194
+ "page_idx": 8
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Ning Dai, Jianze Liang, Xipeng Qiu, and Xuanjing Huang. Style Transformer: Unpaired Text Style Transfer without Disentangled Latent Representation. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 5997–6007, 2019. URL https://www.aclweb.org/ anthology/P19-1601/. ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 854,
1202
+ 825,
1203
+ 924
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Kawin Ethayarajh, David Duvenaud, and Graeme Hirst. Towards Understanding Linear Word Analogies. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 3253–3262, 2019. URL https://www.aclweb.org/anthology/P19-1315/. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 103,
1213
+ 825,
1214
+ 160
1215
+ ],
1216
+ "page_idx": 9
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Alex Gittens, Dimitris Achlioptas, and Michael W. Mahoney. Skip-Gram - Zipf $^ +$ Uniform $=$ Vector Additivity. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, ACL 2017, Vancouver, Canada, July 30 - August 4, Volume 1: Long Papers, pp. 69–76, 2017. doi: 10.18653/v1/P17-1007. URL https://doi.org/10.18653/v1/P17-1007. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 170,
1224
+ 825,
1225
+ 227
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Anna Gladkova, Aleksandr Drozd, and Satoshi Matsuoka. Analogy-based detection of morphological and semantic relations with word embeddings: what works and what doesn’t. In Proceedings of the Student Research Workshop, SRW@HLT-NAACL 2016, The 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego California, USA, June 12-17, 2016, pp. 8–15, 2016. URL https://www.aclweb.org/anthology/N16-2002/. ",
1232
+ "bbox": [
1233
+ 174,
1234
+ 237,
1235
+ 825,
1236
+ 321
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron C. Courville, and Yoshua Bengio. Generative Adversarial Nets. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 2672–2680, 2014. URL http://papers.nips.cc/paper/5423-generative-adversarial-nets. ",
1243
+ "bbox": [
1244
+ 173,
1245
+ 332,
1246
+ 825,
1247
+ 404
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Geoffrey E Hinton, James L McClelland, David E Rumelhart, et al. Distributed representations. Carnegie-Mellon University Pittsburgh, PA, 1984. ",
1254
+ "bbox": [
1255
+ 176,
1256
+ 412,
1257
+ 823,
1258
+ 441
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 448–456, 2015. URL http: //proceedings.mlr.press/v37/ioffe15.html. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 452,
1268
+ 825,
1269
+ 508
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Parag Jain, Abhijit Mishra, Amar Prakash Azad, and Karthik Sankaranarayanan. Unsupervised Controllable Text Formalization. In The Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, The Thirty-First Innovative Applications of Artificial Intelligence Conference, IAAI 2019, The Ninth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2019, Honolulu, Hawaii, USA, January 27 - February 1, 2019., pp. 6554–6561, 2019. URL https: //aaai.org/ojs/index.php/AAAI/article/view/4623. ",
1276
+ "bbox": [
1277
+ 173,
1278
+ 518,
1279
+ 825,
1280
+ 603
1281
+ ],
1282
+ "page_idx": 9
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Masahiro Kaneko and Danushka Bollegala. Gender-preserving Debiasing for Pre-trained Word Embeddings. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28- August 2, 2019, Volume 1: Long Papers, pp. 1641–1650, 2019. URL https://www.aclweb.org/anthology/P19-1160/. ",
1287
+ "bbox": [
1288
+ 174,
1289
+ 613,
1290
+ 825,
1291
+ 671
1292
+ ],
1293
+ "page_idx": 9
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980. ",
1298
+ "bbox": [
1299
+ 174,
1300
+ 680,
1301
+ 823,
1302
+ 723
1303
+ ],
1304
+ "page_idx": 9
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Omer Levy and Yoav Goldberg. Linguistic Regularities in Sparse and Explicit Word Representations. In Proceedings of the Eighteenth Conference on Computational Natural Language Learning, CoNLL 2014, Baltimore, Maryland, USA, June 26-27, 2014, pp. 171–180, 2014a. URL https://www.aclweb.org/anthology/W14-1618/. ",
1309
+ "bbox": [
1310
+ 174,
1311
+ 733,
1312
+ 823,
1313
+ 790
1314
+ ],
1315
+ "page_idx": 9
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Omer Levy and Yoav Goldberg. Neural Word Embedding as Implicit Matrix Factorization. In Advances in Neural Information Processing Systems 27: Annual Conference on Neural Information Processing Systems 2014, December 8-13 2014, Montreal, Quebec, Canada, pp. 2177–2185, 2014b. URL http://papers.nips.cc/paper/ 5477-neural-word-embedding-as-implicit-matrix-factorization. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 800,
1323
+ 825,
1324
+ 871
1325
+ ],
1326
+ "page_idx": 9
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Jing Liao, Yuan Yao, Lu Yuan, Gang Hua, and Sing Bing Kang. Visual attribute transfer through deep image analogy. ACM Trans. Graph., 36(4):120:1–120:15, 2017. doi: 10.1145/3072959. 3073683. URL https://doi.org/10.1145/3072959.3073683. ",
1331
+ "bbox": [
1332
+ 176,
1333
+ 882,
1334
+ 823,
1335
+ 924
1336
+ ],
1337
+ "page_idx": 9
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Tal Linzen. Issues in evaluating semantic spaces using word analogies. In Proceedings of the 1st Workshop on Evaluating Vector-Space Representations for NLP, RepEval@ACL 2016, Berlin, Germany, August 2016, pp. 13–18, 2016. doi: 10.18653/v1/W16-2503. URL https://doi. org/10.18653/v1/W16-2503. ",
1342
+ "bbox": [
1343
+ 174,
1344
+ 103,
1345
+ 825,
1346
+ 160
1347
+ ],
1348
+ "page_idx": 10
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Hanxiao Liu, Yuexin Wu, and Yiming Yang. Analogical Inference for Multi-relational Embeddings. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 2168–2178, 2017. URL http://proceedings. mlr.press/v70/liu17d.html. ",
1353
+ "bbox": [
1354
+ 173,
1355
+ 167,
1356
+ 825,
1357
+ 223
1358
+ ],
1359
+ "page_idx": 10
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Lajanugen Logeswaran, Honglak Lee, and Samy Bengio. Content preserving text generation with attribute controls. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, 3-8 December 2018, Montreal, Canada. ´ , pp. 5108–5118, 2018. URL http://papers.nips.cc/paper/ 7757-content-preserving-text-generation-with-attribute-controls. ",
1364
+ "bbox": [
1365
+ 173,
1366
+ 231,
1367
+ 825,
1368
+ 301
1369
+ ],
1370
+ "page_idx": 10
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient Estimation of Word Representations in Vector Space. In 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, Arizona, USA, May 2-4, 2013, Workshop Track Proceedings, 2013a. URL http://arxiv.org/abs/1301.3781. ",
1375
+ "bbox": [
1376
+ 174,
1377
+ 309,
1378
+ 825,
1379
+ 366
1380
+ ],
1381
+ "page_idx": 10
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. Distributed Representations of Words and Phrases and their Compositionality. In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States., pp. 3111–3119, 2013b. URL http://papers.nips.cc/paper/ 5021-distributed-representations-of-words-and-phrases-and-their-c ",
1386
+ "bbox": [
1387
+ 174,
1388
+ 372,
1389
+ 826,
1390
+ 458
1391
+ ],
1392
+ "page_idx": 10
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Tomas Mikolov, Wen-tau Yih, and Geoffrey Zweig. Linguistic Regularities in Continuous Space Word Representations. In Human Language Technologies: Conference of the North American Chapter of the Association of Computational Linguistics, Proceedings, June 9-14, 2013, Westin Peachtree Plaza Hotel, Atlanta, Georgia, USA, pp. 746–751, 2013c. URL https://www. aclweb.org/anthology/N13-1090/. ",
1397
+ "bbox": [
1398
+ 174,
1399
+ 464,
1400
+ 823,
1401
+ 535
1402
+ ],
1403
+ "page_idx": 10
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Kim Anh Nguyen, Sabine Schulte im Walde, and Ngoc Thang Vu. Distinguishing Antonyms and Synonyms in a Pattern-based Neural Network. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2017, Valencia, Spain, April 3-7, 2017, Volume 1: Long Papers, pp. 76–85, 2017. URL https://www.aclweb. org/anthology/E17-1008/. ",
1408
+ "bbox": [
1409
+ 174,
1410
+ 542,
1411
+ 823,
1412
+ 613
1413
+ ],
1414
+ "page_idx": 10
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Xing Niu, Sudha Rao, and Marine Carpuat. Multi-task neural models for translating between styles within and across languages. In Proceedings of the 27th International Conference on Computational Linguistics, COLING 2018, Santa Fe, New Mexico, USA, August 20-26, 2018, pp. 1008– 1021, 2018. URL https://www.aclweb.org/anthology/C18-1086/. ",
1419
+ "bbox": [
1420
+ 173,
1421
+ 619,
1422
+ 825,
1423
+ 678
1424
+ ],
1425
+ "page_idx": 10
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher D. Manning. Glove: Global Vectors for Word Representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, October 25-29, 2014, Doha, Qatar, A meeting of SIGDAT, a Special Interest Group of the ACL, pp. 1532–1543, 2014. URL https://www.aclweb. org/anthology/D14-1162/. ",
1430
+ "bbox": [
1431
+ 173,
1432
+ 684,
1433
+ 825,
1434
+ 755
1435
+ ],
1436
+ "page_idx": 10
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep Contextualized Word Representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2018, New Orleans, Louisiana, USA, June 1-6, 2018, Volume 1 (Long Papers), pp. 2227–2237, 2018. URL https://www.aclweb.org/ anthology/N18-1202/. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 762,
1444
+ 825,
1445
+ 847
1446
+ ],
1447
+ "page_idx": 10
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Shrimai Prabhumoye, Yulia Tsvetkov, Ruslan Salakhutdinov, and Alan W. Black. Style Transfer Through Back-Translation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, ACL 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, pp. 866–876, 2018. doi: 10.18653/v1/P18-1080. URL https://www.aclweb.org/ anthology/P18-1080/. ",
1452
+ "bbox": [
1453
+ 176,
1454
+ 854,
1455
+ 825,
1456
+ 924
1457
+ ],
1458
+ "page_idx": 10
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. In 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016. URL http://arxiv.org/abs/1511.06434. ",
1463
+ "bbox": [
1464
+ 176,
1465
+ 103,
1466
+ 825,
1467
+ 160
1468
+ ],
1469
+ "page_idx": 11
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "Scott E. Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep Visual AnalogyMaking. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pp. 1252–1260, 2015. URL http://papers.nips.cc/paper/ 5845-deep-visual-analogy-making. ",
1474
+ "bbox": [
1475
+ 173,
1476
+ 169,
1477
+ 825,
1478
+ 239
1479
+ ],
1480
+ "page_idx": 11
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "Radu Soricut and Franz Josef Och. Unsupervised Morphology Induction Using Word Embeddings. In NAACL HLT 2015, The 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Denver, Colorado, USA, May 31 - June 5, 2015, pp. 1627–1637, 2015. URL https://www.aclweb.org/anthology/ N15-1186/. ",
1485
+ "bbox": [
1486
+ 173,
1487
+ 247,
1488
+ 825,
1489
+ 318
1490
+ ],
1491
+ "page_idx": 11
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. J. Mach. Learn. Res., 15(1): 1929–1958, 2014. URL http://dl.acm.org/citation.cfm?id=2670313. ",
1496
+ "bbox": [
1497
+ 174,
1498
+ 327,
1499
+ 823,
1500
+ 371
1501
+ ],
1502
+ "page_idx": 11
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "Zhirui Zhang, Shuo Ren, Shujie Liu, Jianyong Wang, Peng Chen, Mu Li, Ming Zhou, and Enhong Chen. Style Transfer as Unsupervised Machine Translation. CoRR, abs/1808.07894, 2018. URL http://arxiv.org/abs/1808.07894. ",
1507
+ "bbox": [
1508
+ 176,
1509
+ 378,
1510
+ 823,
1511
+ 421
1512
+ ],
1513
+ "page_idx": 11
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "Jieyu Zhao, Yichao Zhou, Zeyu Li, Wei Wang, and Kai-Wei Chang. Learning Gender-Neutral Word Embeddings. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium, October 31 - November 4, 2018, pp. 4847–4853, 2018. URL https://www.aclweb.org/anthology/D18-1521/. ",
1518
+ "bbox": [
1519
+ 173,
1520
+ 430,
1521
+ 825,
1522
+ 487
1523
+ ],
1524
+ "page_idx": 11
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A. Efros. Unpaired Image-to-Image Translation Using Cycle-Consistent Adversarial Networks. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pp. 2242–2251, 2017. doi: 10.1109/ICCV.2017.244. URL https://doi.org/10.1109/ICCV.2017.244. ",
1529
+ "bbox": [
1530
+ 173,
1531
+ 496,
1532
+ 825,
1533
+ 553
1534
+ ],
1535
+ "page_idx": 11
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "A TOP THREE ACCURACY AND STABILITY ",
1540
+ "text_level": 1,
1541
+ "bbox": [
1542
+ 174,
1543
+ 102,
1544
+ 545,
1545
+ 118
1546
+ ],
1547
+ "page_idx": 12
1548
+ },
1549
+ {
1550
+ "type": "table",
1551
+ "img_path": "images/88c21980103fe1cc40467c911512cf53695077051730a3a28aef73c5949228a3.jpg",
1552
+ "table_caption": [
1553
+ "Table 7: Male-Female "
1554
+ ],
1555
+ "table_footnote": [],
1556
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>50.00</td><td>20.83</td><td>62.50</td><td>66.67</td><td>99.80</td><td>99.80</td><td>99.80</td><td>99.80</td></tr><tr><td>REF+PM</td><td></td><td>55.56</td><td>41.67</td><td>58.33</td><td>66.67</td><td>99.13</td><td>99.00</td><td>99.20</td><td>99.20</td></tr><tr><td>MLP</td><td></td><td>20.83</td><td>8.33</td><td>20.83</td><td>33.33</td><td>2.20</td><td>2.20</td><td>2.20</td><td>2.20</td></tr><tr><td>DIFF+</td><td></td><td>31.94</td><td>25.00</td><td>33.33</td><td>37.50</td><td>75.43</td><td>72.10</td><td>75.80</td><td>78.40</td></tr><tr><td>DIFF-</td><td></td><td>31.94</td><td>25.00</td><td>33.33</td><td>37.50</td><td>55.80</td><td>49.60</td><td>57.30</td><td>60.50</td></tr><tr><td>MEANDIFF +</td><td></td><td>23.61</td><td>4.17</td><td>33.33</td><td>33.33</td><td>98.93</td><td>98.60</td><td>99.10</td><td>99.10</td></tr><tr><td>MEANDIFF</td><td></td><td>23.61</td><td>8.33</td><td>29.17</td><td>33.33</td><td>97.63</td><td>97.20</td><td>97.80</td><td>97.90</td></tr><tr><td>DIFF</td><td>√</td><td>68.05</td><td>62.50</td><td>66.66</td><td>75.00</td><td>-</td><td>1</td><td>-</td><td>1</td></tr><tr><td>MEANDIFF</td><td>1</td><td>47.22</td><td>12.50</td><td>62.50</td><td>66.67</td><td>-</td><td>-</td><td>-</td><td>-</td></tr></table>",
1557
+ "bbox": [
1558
+ 173,
1559
+ 161,
1560
+ 852,
1561
+ 333
1562
+ ],
1563
+ "page_idx": 12
1564
+ },
1565
+ {
1566
+ "type": "table",
1567
+ "img_path": "images/741e0783888d0e58705ba45537e365b8096c9e2381cdc8ba0c2507cd4ce50193.jpg",
1568
+ "table_caption": [
1569
+ "Table 8: Singular-Plural "
1570
+ ],
1571
+ "table_footnote": [],
1572
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>50.00</td><td>0.00</td><td>72.00</td><td>78.00</td><td>100.00</td><td>100.00</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>56.67</td><td>22.00</td><td>72.00</td><td>76.00</td><td>99.70</td><td>99.40</td><td>99.80</td><td>99.90</td></tr><tr><td>MLP</td><td></td><td>7.33</td><td>4.00</td><td>8.00</td><td>10.00</td><td>0.13</td><td>0.00</td><td>0.20</td><td>0.20</td></tr><tr><td>DIFF+</td><td></td><td>36.67</td><td>2.00</td><td>50.00</td><td>58.00</td><td>80.27</td><td>77.90</td><td>79.70</td><td>83.20</td></tr><tr><td>DIFF-</td><td></td><td>36.67</td><td>2.00</td><td>52.00</td><td>56.00</td><td>80.27</td><td>78.20</td><td>80.70</td><td>81.90</td></tr><tr><td>MEANDIFF +</td><td></td><td>42.00</td><td>0.00</td><td>56.00</td><td>70.00</td><td>99.47</td><td>99.40</td><td>99.40</td><td>99.60</td></tr><tr><td>MEANDIFF -</td><td></td><td>39.33</td><td>0.00</td><td>56.00</td><td>62.00</td><td>99.50</td><td>99.30</td><td>99.60</td><td>99.60</td></tr><tr><td>DIFF</td><td>√</td><td>49.33</td><td>4.00</td><td>70.00</td><td>74.00</td><td>1</td><td>-</td><td>1</td><td>1</td></tr><tr><td>MEANDIFF</td><td>√</td><td>52.00</td><td>0.00</td><td>76.00</td><td>80.00</td><td>1</td><td>=</td><td>-</td><td>-</td></tr></table>",
1573
+ "bbox": [
1574
+ 173,
1575
+ 378,
1576
+ 872,
1577
+ 547
1578
+ ],
1579
+ "page_idx": 12
1580
+ },
1581
+ {
1582
+ "type": "table",
1583
+ "img_path": "images/5a4299c1e12fe95ceebcc2c62c0707cdcc47295b1775497065c002a59b6edded.jpg",
1584
+ "table_caption": [
1585
+ "Table 9: Capital-Country "
1586
+ ],
1587
+ "table_footnote": [],
1588
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>66.67</td><td>36.00</td><td>78.00</td><td>86.00</td><td>99.80</td><td>99.80</td><td>99.80</td><td>99.80</td></tr><tr><td>REF+PM</td><td></td><td>72.67</td><td>58.00</td><td>74.00</td><td>86.00</td><td>99.53</td><td>99.40</td><td>99.60</td><td>99.60</td></tr><tr><td>MLP</td><td></td><td>35.33</td><td>12.00</td><td>40.00</td><td>54.00</td><td>2.80</td><td>2.70</td><td>2.80</td><td>2.90</td></tr><tr><td>DIFF+</td><td></td><td>39.33</td><td>32.00</td><td>42.00</td><td>44.00</td><td>64.87</td><td>53.90</td><td>69.60</td><td>71.10</td></tr><tr><td>DIFF</td><td></td><td>34.67</td><td>30.00</td><td>36.00</td><td>38.00</td><td>58.63</td><td>56.30</td><td>58.90</td><td>60.70</td></tr><tr><td>MEANDIFF +</td><td></td><td>36.00</td><td>22.00</td><td>42.00</td><td>44.00</td><td>89.33</td><td>87.60</td><td>89.70</td><td>90.70</td></tr><tr><td>MEANDIFF-</td><td></td><td>34.67</td><td>14.00</td><td>44.00</td><td>46.00</td><td>93.07</td><td>92.40</td><td>93.10</td><td>93.70</td></tr><tr><td>DIFF</td><td>√</td><td>80.00</td><td>64.00</td><td>86.00</td><td>90.00</td><td>-</td><td>-</td><td>-</td><td>1</td></tr><tr><td>MEANDIFF</td><td>1</td><td>70.67</td><td>36.00</td><td>86.00</td><td>90.00</td><td>=</td><td>-</td><td>-</td><td>-</td></tr></table>",
1589
+ "bbox": [
1590
+ 173,
1591
+ 593,
1592
+ 852,
1593
+ 765
1594
+ ],
1595
+ "page_idx": 12
1596
+ },
1597
+ {
1598
+ "type": "table",
1599
+ "img_path": "images/8a6a764945a8d934c5cb0b81fd67ce31d79f09680f10a17c748d0c97d549e421.jpg",
1600
+ "table_caption": [
1601
+ "Table 10: Antonym "
1602
+ ],
1603
+ "table_footnote": [],
1604
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Knowledge</td><td colspan=\"4\">Accuracy (%)</td><td colspan=\"4\">Stability (%)</td></tr><tr><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td><td>Mean@3</td><td>@1</td><td>@2</td><td>@3</td></tr><tr><td>REF</td><td></td><td>0.94</td><td>0.00</td><td>1.19</td><td>16.21</td><td>99.97</td><td>99.90</td><td>100.00</td><td>100.00</td></tr><tr><td>REF+PM</td><td></td><td>38.56</td><td>28.79</td><td>41.38</td><td>45.52</td><td>99.93</td><td>99.80</td><td>100.00</td><td>100.00</td></tr><tr><td>MLP</td><td></td><td>41.38</td><td>35.86</td><td>42.59</td><td>45.69</td><td>1..97</td><td>1.90</td><td>2.00</td><td>2.00</td></tr></table>",
1605
+ "bbox": [
1606
+ 173,
1607
+ 126,
1608
+ 848,
1609
+ 212
1610
+ ],
1611
+ "page_idx": 13
1612
+ },
1613
+ {
1614
+ "type": "text",
1615
+ "text": "B VISUALIZATION OF PARAMETERIZED MIRRORS ",
1616
+ "text_level": 1,
1617
+ "bbox": [
1618
+ 174,
1619
+ 236,
1620
+ 598,
1621
+ 251
1622
+ ],
1623
+ "page_idx": 13
1624
+ },
1625
+ {
1626
+ "type": "text",
1627
+ "text": "Figures below visualize PCA results of a obtained for the test words. We normalized the L2 norm of a to 1 $( \\frac { \\mathbf { a } } { \\lVert \\mathbf { a } \\rVert } )$ . Corresponding word pairs are connected by solid lines. Figs. 4 and 5 suggest not only the mirror parameters of paired words are similar to each other but also the parameters with the attribute form a cluster — words with the same attribute has similar mirror parameter a. The mirrors of paired words are close to each other in the same attribute (Fig. 4 and 5). Some MF pairs in Fig. 5 are placed away from the cluster of the MF words. This may come from missing principal components due to the small data size used for PCA. Figs. 6, 7, 8, 9, 10, 11, 12, and 13 are the detailed PCA results for four different attributes: MF, SP, CC, and AN. These results show that a reflection transfers a paired word each other by using a similar mirror. For example, rich and poor use almost the same mirror (Fig. 9). On the other hand, different mirrors are used for different word pairs since the mirrors are parameterized. These results shows the effect of the mirror as described in section 4.4. ",
1628
+ "bbox": [
1629
+ 173,
1630
+ 266,
1631
+ 826,
1632
+ 435
1633
+ ],
1634
+ "page_idx": 13
1635
+ },
1636
+ {
1637
+ "type": "image",
1638
+ "img_path": "images/786866719e752120c080bcbcca2472a8fa6198330a10cbf7cb7107e46f7e6c45.jpg",
1639
+ "image_caption": [
1640
+ "Figure 4: A PCA result of a (word2vec). "
1641
+ ],
1642
+ "image_footnote": [],
1643
+ "bbox": [
1644
+ 245,
1645
+ 449,
1646
+ 750,
1647
+ 638
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "image",
1653
+ "img_path": "images/87bbae84df859c8cedc508264a9f16e82a8e52bf4ef2c7e2881954da13947ebc.jpg",
1654
+ "image_caption": [
1655
+ "Figure 5: A PCA result of a (GloVe). "
1656
+ ],
1657
+ "image_footnote": [],
1658
+ "bbox": [
1659
+ 245,
1660
+ 685,
1661
+ 751,
1662
+ 875
1663
+ ],
1664
+ "page_idx": 13
1665
+ },
1666
+ {
1667
+ "type": "image",
1668
+ "img_path": "images/3a16a3d5f9aeae75fe79399dd9a0de03e620603e20747108fc9ecaf439fdca14.jpg",
1669
+ "image_caption": [
1670
+ "Figure 6: Male-Female (word2vec) "
1671
+ ],
1672
+ "image_footnote": [],
1673
+ "bbox": [
1674
+ 199,
1675
+ 111,
1676
+ 795,
1677
+ 338
1678
+ ],
1679
+ "page_idx": 14
1680
+ },
1681
+ {
1682
+ "type": "image",
1683
+ "img_path": "images/028b7a5a4d0e9d42e17b9c8f8b49f949de875485693c188f88a69690d71dddc1.jpg",
1684
+ "image_caption": [
1685
+ "Figure 7: Singular-Plural (word2vec) "
1686
+ ],
1687
+ "image_footnote": [],
1688
+ "bbox": [
1689
+ 200,
1690
+ 387,
1691
+ 795,
1692
+ 613
1693
+ ],
1694
+ "page_idx": 14
1695
+ },
1696
+ {
1697
+ "type": "image",
1698
+ "img_path": "images/2e61fbd48df681210a7065e038778434d49bc23d8c225b79e76148c229bc3800.jpg",
1699
+ "image_caption": [
1700
+ "Figure 8: Capital-Country (word2vec) "
1701
+ ],
1702
+ "image_footnote": [],
1703
+ "bbox": [
1704
+ 199,
1705
+ 662,
1706
+ 797,
1707
+ 890
1708
+ ],
1709
+ "page_idx": 14
1710
+ },
1711
+ {
1712
+ "type": "image",
1713
+ "img_path": "images/5f6a179ee60381eba5262a3ceaa8a9fe7c05976f4050571f9bb44f3f008913da.jpg",
1714
+ "image_caption": [
1715
+ "Figure 9: Antonym (word2vec) "
1716
+ ],
1717
+ "image_footnote": [],
1718
+ "bbox": [
1719
+ 199,
1720
+ 112,
1721
+ 797,
1722
+ 337
1723
+ ],
1724
+ "page_idx": 15
1725
+ },
1726
+ {
1727
+ "type": "image",
1728
+ "img_path": "images/e48e2dec7a093b8d622deaf6b992ade918e682e9aa59d2dccf89851b162157b1.jpg",
1729
+ "image_caption": [
1730
+ "Figure 10: Male-Female (GloVe) "
1731
+ ],
1732
+ "image_footnote": [],
1733
+ "bbox": [
1734
+ 199,
1735
+ 388,
1736
+ 795,
1737
+ 611
1738
+ ],
1739
+ "page_idx": 15
1740
+ },
1741
+ {
1742
+ "type": "image",
1743
+ "img_path": "images/56e0d4c4e8fc38ff738ff48ea9b51fe47a995ddebc53f3b37269a7e651b3581d.jpg",
1744
+ "image_caption": [
1745
+ "Figure 11: Singular-Plural (GloVe) "
1746
+ ],
1747
+ "image_footnote": [],
1748
+ "bbox": [
1749
+ 199,
1750
+ 660,
1751
+ 795,
1752
+ 887
1753
+ ],
1754
+ "page_idx": 15
1755
+ },
1756
+ {
1757
+ "type": "image",
1758
+ "img_path": "images/ca7242aaa1ea2d5e327de2696960c27280d651ea2e1fea3fabdadc51337cdabf.jpg",
1759
+ "image_caption": [
1760
+ "Figure 12: Capital-Country (GloVe) "
1761
+ ],
1762
+ "image_footnote": [],
1763
+ "bbox": [
1764
+ 199,
1765
+ 181,
1766
+ 795,
1767
+ 402
1768
+ ],
1769
+ "page_idx": 16
1770
+ },
1771
+ {
1772
+ "type": "image",
1773
+ "img_path": "images/f2d0836f02185abbc6a71731fec5a2233e99faeaf783994e832748d9de2896c2.jpg",
1774
+ "image_caption": [
1775
+ "Figure 13: Antonym (GloVe) "
1776
+ ],
1777
+ "image_footnote": [],
1778
+ "bbox": [
1779
+ 199,
1780
+ 593,
1781
+ 799,
1782
+ 819
1783
+ ],
1784
+ "page_idx": 16
1785
+ }
1786
+ ]
parse/train/HyxoX6EKvB/HyxoX6EKvB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyxoX6EKvB/HyxoX6EKvB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/OdklztJBBYH/OdklztJBBYH.md ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Exploring Architectural Ingredients of Adversarially Robust Deep Neural Networks
2
+
3
+ Hanxun Huang1 Yisen Wang2,3 Sarah Erfani1 Quanquan $\mathbf { G u ^ { 4 } }$ James Bailey1 Xingjun $\mathbf { M } \mathbf { a } ^ { \mathsf { \pm } }$
4
+
5
+ 1School of Computing and Information Systems, The University of Melbourne, Victoria, Australia
6
+ 2Key Lab. of Machine Perception, School of Artificial Intelligence, Peking University, Beijing, China 3Institute for Artificial Intelligence, Peking University, Beijing, China 4University of California, Los Angeles, USA 5School of Computer Science, Fudan University, Shanghai, China
7
+
8
+ # Abstract
9
+
10
+ Deep neural networks (DNNs) are known to be vulnerable to adversarial attacks. A range of defense methods have been proposed to train adversarially robust DNNs, among which adversarial training has demonstrated promising results. However, despite preliminary understandings developed for adversarial training, it is still not clear, from the architectural perspective, what configurations can lead to more robust DNNs. In this paper, we address this gap via a comprehensive investigation on the impact of network width and depth on the robustness of adversarially trained DNNs. Specifically, we make the following key observations: 1) more parameters (higher model capacity) does not necessarily help adversarial robustness; 2) reducing capacity at the last stage (the last group of blocks) of the network can actually improve adversarial robustness; and 3) under the same parameter budget, there exists an optimal architectural configuration for adversarial robustness. We also provide a theoretical analysis explaning why such network configuration can help robustness. These architectural insights can help design adversarially robust DNNs. Code is available at https://github.com/HanxunH/RobustWRN.
11
+
12
+ # 1 Introduction
13
+
14
+ Deep neural networks (DNNs) are becoming standard models for many real-world applications such as image classification [1], object detection [2] and natural language processing [3]. However, a line of research has shown that DNNs are vulnerable to adversarial examples (attacks), which can be easily crafted by slightly perturbing the input instance to maximize the model’s prediction error [4–6]. This vulnerability of DNNs has become a major concern for their deployment in security-critical applications such as autonomous driving [7, 8] and medical diagnosis [9, 10].
15
+
16
+ A number of defense methods have been proposed to train adversarially robust DNNs [11–14], among which adversarial training has demonstrated the most promising results [15–17]. Adversarial training can be viewed as a type of data augmentation that trains DNNs on adversarial (instead of natural) examples [15–19]. Based on adversarial training, a set of works have been proposed to understand its learning and convergence behaviors, and the key factors for training adversarially robust DNNs. For example, it has been found that adversarial training encourages the model to learn more robust or compact features [20, 21], and it requires more data [22–25] or higher capacity models to gain more robustness [15, 26]. While these understandings have motivated several improved defense methods, it is still not clear, from an architectural perspective, what makes an adversarially robust DNN.
17
+
18
+ In this paper, we present the first comprehensive investigation on the architectural ingredients of adversarially robust DNNs. Our investigation is based on adversarial training and WideResNet-34-10 (WRN-34-10) [27], one extensively tested architecture in the defense literature. Based on the base architectural configuration of WRN-34-10, we apply a finely-controlled grid search to explore the impact of network width and depth configurations on the robustness of adversarial trained DNNs.
19
+
20
+ The standard WRN-34-10 consists of 3 stages with each stage being a group of 5 (i.e., depth) residual blocks and each residual block having 2 convolutional layers. We denote the three stages as Stage-1, Stage-2 and Stage-3 following the direction from the input to the output. Each stage is configured by a depth (number of residual blocks) and a width (number of filters) factor. The hyper-parameters for width and depth of each stage control the scale of learnable parameters (capacity). In this paper, we explore different configurations of width and depth for each of the three stages. Based on our explorations, we make the following key observations:
21
+
22
+ • Simply increasing the number of parameters (model capacity) by upscaling width or depth does not necessarily lead to improved robustness. This contrasts with current beliefs that, under the same type of architecture, more parameters (higher model capacity) can improve adversarial robustness [15, 26, 28]. Adversarial training does require larger capacity models, but there exists a trade-off. We provide both theoretical and empirical evidences that wider/deeper models increase Lipschitzness (larger Lipschitz constant). • For a larger model used in adversarial training, reducing capacity at the last stage (Stage-3) of WRNs can achieve a better trade-off between capacity and Lipschitzness, thus improving adversarial robustness. This can be achieved by reducing either depth or width, with width reduction being slightly more effective. This highlights that smaller DNNs can also have better robustness if the parameter reduction is applied at the right place (i.e., the last stage). • Under the same type of architectures (i.e., WRNs) and parameter budget, there may exist an optimal architectural configuration that can produce the most robust DNN. We show that the same configuration rule can also be applied to improve the robustness of VGGs, DenseNets (DNs), as well as networks found by Differentiable Architecture Search (DARTS).
23
+
24
+ Furthermore, we provide a series of understandings for the above findings, which can not only provide useful insights for training more robust models with adversarial training, but also shed new light on the architectural ingredients of adversarially robust DNNs.
25
+
26
+ # 2 Related Work
27
+
28
+ # 2.1 Adversarial Training
29
+
30
+ Adversarial training has been demonstrated to be the most reliable training method for obtaining adversarially robust DNNs [29, 30]. The standard adversarial training (SAT) can be formulated as a min-max optimization framework as follows:
31
+
32
+ $$
33
+ \underset { \pmb { \theta } } { \arg \operatorname* { m i n } } \mathbb { E } _ { ( \pmb { x } , \pmb { y } ) \sim \mathbb { D } } \left[ \underset { \pmb { x } ^ { \prime } } { \operatorname* { m a x } } \mathcal { L } ( f _ { \pmb { \theta } } , \pmb { x } ^ { \prime } , \pmb { y } ) \right] ,
34
+ $$
35
+
36
+ where the inner maximization generates adversarial examples $\mathbf { x } ^ { \prime }$ , the outer minimization trains the model on $\mathbf { x } ^ { \prime }$ , $f _ { \theta }$ denote the neural network and $\mathcal { L } ( \cdot )$ is the cross entropy (CE) loss. During the inner maximization process, SAT uses PGD to generate adversarial examples [15]:
37
+
38
+ $$
39
+ \pmb { x } _ { k } ^ { \prime } = \Pi _ { \epsilon } ( \pmb { x } _ { k - 1 } ^ { \prime } + \alpha \cdot \mathrm { s i g n } ( \nabla _ { \pmb { x } } \mathcal { L } ( f _ { \pmb { \theta } } , \pmb { x } _ { k - 1 } ^ { \prime } , y ) ) ) ,
40
+ $$
41
+
42
+ where $\mathrm { s i g n } ( \cdot )$ is the sign function, $ { \boldsymbol { { x } } } _ { k } ^ { \prime }$ is the adversarial example obtained at the $k$ -th (for overall $K$ steps) perturbation step, $\alpha$ is the step size, and $\Pi _ { \epsilon }$ is a projection (clipping) operation that projects the perturbation back onto the $\epsilon$ -ball centered around $_ { \textbf { \em x } }$ if it goes beyond.
43
+
44
+ Improved variants of SAT have also been proposed, such as the trade-off between adversarial robustness and natural accuracy (TRADES) [16], Dynamic AdveRsarial Training (DART) [17], Friendly Adversarial Training (FAT) [31], Misclassification Aware adveRsarial Training (MART) [18], Robust Self-Training (RST) [23], Unsupervised Adversarial Training (UAT) [32], Guided Adversarial Training (GAT) [33], Max-Margin AT [34], using Max-Mahalanobis Center (MMC) loss [35], accelerated AT [36–38], using pre-training [39], incorporating hypersphere embedding [40], self-progressing robust training [41], Adversarial Weight Perturbation (AWP) [19], Adversarial Distributional Training (ADT) [42], Channel-wise Activation Suppressing (CAS) [21], GeometryAware Instance-Reweighted Adversarial Training (GAIRAT) [43] and robustness distillation [44, 45]. Adversarial Training has also been found to cause robust overfitting [46], but it can be mitigated by smoothing techniques [47].
45
+
46
+ # 2.2 Understanding Adversarially Trained DNNs
47
+
48
+ Understanding the working mechanism of adversarial training has been a hot research area. For example, it has been found that adversarial training encourages the model to learn more robust features [20, 48], have good generative ability [49, 50], improve the model’s transferability to downstream tasks [51, 52] and improve performance on clean data [53]. It has also been found that using auxiliary training data with adversarial training can further improve adversarial robustness [22, 23], and that weight decay plays an important role in adversarial training [54]. Another important observation is that using WRNs instead of ResNets (RNs) can bring $\sim 3 \% { - } 5 \%$ more robustness [16–18]. Other works also suggest that adversarial training requires deeper and wider models [15, 26, 55]. Also, the skip-connection operation used in WRN has been found can improve robustness for deeper architectures [56] and there exists a trade-off between depth and width for approximating natural functions [57]. On the other hand, there are also works showing that increasing the number of parameters for the same type of DNN architectures can only lead to limited robustness improvement [28, 58]; and wider networks may cause more perturbation instability [59].
49
+
50
+ Several recent works have applied neural architecture search (NAS) to search for more robust DNN architectures [60]. They found that, 1) densely connected cells result in improved robustness; and 2) under certain computational budget, adding convolution operations to direct connection edge is effective. Other works improve the NAS search strategy by searching on targeted capacity [61], maximizing certified lower bound [62], using the log-normal distribution to approximate the Lipschitz constant [63], using lower and upper confidence bounds in Bandit [64], or using perturbation-based regularization [65]. Another study on hand-crafted versus NAS-based architectures shows that, without adversarial training, NAS-based architectures are more robust for small-scale datasets and simple tasks than hand-crafted architectures, however, hand-crafted architectures are more robust than NAS-based architectures as the dataset size or the task complexity increases [66]. Note that NAS is extremely time-consuming, especially when applied with adversarial training. Previous works using NAS find optimal topological connections within the cell structure [60], but did not investigate depth/width configurations, which arguably has more impact on robustness (e.g., RNs vs. WRNs). In this work, we focus on fine-grained configuration exploration rather than blind search, which can produce more precise understandings of how depth and width affect robustness.
51
+
52
+ # 3 Wider and Deeper Models Increase Lipschitz Upper Bound
53
+
54
+ It has been theoretically shown that high Lipschitzness (larger Lipschitz constant) corresponds to low stability of the model’s output to input perturbations [59]. However, adversarial training does require a larger capacity model (e.g., RN vs. WRN) [15], an empirical finding that goes against the theoretical expectation. In this section, we first theoretically show a trade-off between network capacity (width/depth) and the Lipschitz upper bound. In Section 4, we will empirically examine this trade-off and its relation to the improved adversarial robustness for larger capacity models.
55
+
56
+ The Lipschitz constant $L$ of a DNN measures the maximum rate of change in the output with the change in the input, and is closely related to adversarial robustness [4]. Formally, it is $\| f _ { \pmb \theta } ( \pmb x ) - \bar { f } _ { \pmb \theta } ( \pmb x ^ { \prime } ) \| \le \bar { L } \| \pmb x - \pmb x ^ { \prime } \|$ .
57
+
58
+ Theorem 1 (Lipschitz Constant Upper Bound of a Neural Network with Gaussian Distributed Weights). Consider an $n$ layer DNN $f$ , where the weight parameters $\pmb \theta$ are independent Gaussian random variables distributed as $\mathcal { N } ( 0 , \sigma _ { \theta } ^ { 2 } )$ with $\boldsymbol { \sigma } _ { \theta } ^ { 2 }$ denoting the variance of the Gaussian distribution, and where the activation functions are $I$ -Lipschitz. The expected Lipschitz constant of a DNN with hidden layer size $h$ is upper bounded by:
59
+
60
+ $$
61
+ L ( f _ { \pmb \theta } ) \leq \prod _ { j = 1 } ^ { n } \left( \sqrt { h _ { j - 1 } } + \sqrt { h _ { j } } \right) \cdot \sigma _ { \pmb \theta _ { j } }
62
+ $$
63
+
64
+ Theorem 2. For a convolutional neural network $f$ , each layer’s convolution operation with feature map size $W \times m \times m$ and kernel size $k \times k$ , where the weight parameters $\pmb { \theta }$ are independent Gaussian
65
+
66
+ random variables distributed as $\mathcal { N } ( 0 , \sigma _ { \theta } ^ { 2 } )$ , the expected Lipschitz constant is upper bounded by:
67
+
68
+ $$
69
+ L ( f _ { \pmb \theta } ) \leq \prod _ { j = 1 } ^ { n } ( m _ { j } \sqrt { W _ { j - 1 } } + ( m _ { j } - k _ { j } + 1 ) \sqrt { W _ { j } } ) \cdot \sigma _ { { \pmb \theta } _ { j } }
70
+ $$
71
+
72
+ The proof for Theorem 1 and 2 is inspired by [67–69] and can be found in Appendix A.1. This establishes a connection between the upper bound on the Lipschitz constant of a feed-forward DNN with $n$ layers and width of $h _ { j }$ for each layer. For the $j$ -th layer of convolution operations, the Lipschitz constant upper bound increases with its input dimension $( W _ { j - 1 } \times m _ { j } \times m _ { j } )$ and the number of output channels $W _ { j }$ . More simply, it is upper-bounded by the variance of the weight matrix and the input representation’s dimension plus the output representation’s dimension. For the entire network, the Lipschitz constant upper bound grows exponentially with the depth. This suggests that wider and deeper models have a relatively larger change of the output due to the changes in the input, i.e., lower adversarial robustness.
73
+
74
+ Several works attempt to regularize the network’s Lipschitz constant by using Parseval tight frames on the weight matrixes [70], enforcing constraints on the singular values of the weight matrixes [71], or via a Lipschitz-margin training [72]. However, a follow-up work points out that there exist both experimental and theoretical limitations for the above approaches [73]. Whilst the Lipschitz constant may not be used as a regularization, it has been widely adopted for analyzing the stability and adversarially robustness of DNNs [4, 59, 74].
75
+
76
+ # 4 Exploring Adversarially Robust Architectures
77
+
78
+ Our exploration of the relationship between DNN architectural configuration, Lipschitzness (size of the Lipschitz constant) and adversarial robustnessare starts with a fine-controlled grid search on the width/depth of the WideResNet (WRN) [27]. In Sections 4.1 and 4.2, we show our exploration results with depth and width, respectively. Based on these results, a pattern of robust depth/width configuration is discovered. In Section 4.4, we examine a linear scaling effect with the discovered robust configuration. In Section 4.5, we provide an analysis on the trade-off between model capacity and Lipschitzness, and the key factors contributing to improved adversarial robustness.
79
+
80
+ ![](images/2f9baf00f136e5769fb34335b7fe2d63f3c30fcb5a6832f987221d1bd62d1435.jpg)
81
+ Figure 1: (a): Illustration of WRN-34-10 denoted as $^ { \mathrm { d } } 5 – 5 – 5$ . (b): Grid search results on different depth configurations. The three-digit numbers highlight the depth configurations of only those networks that have either a low $\mathrm { < = 5 0 . 0 \% }$ ) or a high $> = 5 2 . 5 \%$ ) adversarial robustness (against $\mathrm { P G D ^ { 2 0 } }$ ).
82
+
83
+ Base architecture. We take the standard WRN-34-10 designed for CIFAR-10 as our base architecture. Figure 1a provides an overview of the architecture and the detailed configurations are summarized in Appendix Table 3. The standard WRN architecture consists of 3 stages (groups) of residual blocks and 4 fixed convolutional layers. Here, we focus on the configuration of the 3 stages, which are the key components of the network. We denote the depth and width configuration for the $i$ -th $( i \in \{ 1 , 2 , 3 \} )$ ) stage as $D _ { i }$ and $W _ { i }$ , respectively. For standard WRN-34-10, $D _ { 1 / 2 / 3 } = 5$ (denoted as $^ { \mathrm { d } } 5 – 5 – 5 )$ and $W _ { 1 / 2 / 3 } = 1 0$ (denoted as $^ { \mathrm { w } } 1 0 \mathrm { - } 1 0 \mathrm { - } 1 0 $ ). For the rest of this paper, we use $^ { \mathrm { d } } D _ { 1 } { - } D _ { 2 } { - } D _ { 3 }$ and $^ { \mathrm { w } } W _ { 1 ^ { - } } W _ { 2 ^ { - } } W _ { 3 }$ to represent the exact width and depth configurations. We explore the stage-wise depth and width configurations while keeping other configurations unchanged.
84
+
85
+ Experimental settings. We train all explored networks on CIFAR-10 dataset [1] using the standard adversarial training (SAT) with Projected Gradient Descent (PGD) [15] (see definition in equation (2)). Following the typical adversarial training setting, we constrain the $L _ { \infty }$ -norm of the maximum adversarial perturbation to $\epsilon = 8 / 2 5 5$ , and use 10-step PGD $( { \mathrm { P G D } } ^ { 1 0 } )$ with step size $\alpha = 2 / 2 5 5$ . After training, we test the robustness of the network on PGD adversarial examples crafted on the entire test set of CIFAR-10, under the same perturbation constraint $\epsilon = 8 / 2 5 5$ . For evaluation, we use the 20-step PGD $( \mathrm { P G D ^ { 2 0 } } )$ with step size $\bar { \alpha } = \epsilon / 1 0$ . The robustness is measured by the network’s accuracy on the $\mathrm { P G D ^ { 2 0 } }$ test adversarial examples. More details can be found in Appendix B.
86
+
87
+ # 4.1 Exploring Different Depths
88
+
89
+ We first explore different depth configurations based on the base WRN-34-10 architecture introduced above. For each of the three stages (e.g., Stage-1, Stage-2, Stage-3), we explore different depth $D _ { i } \in \{ 1 , 3 , 5 , 7 , 9 \}$ . Since each stage has 5 possible depth configurations, the total number of all possible depth configuration for all 3 stages are 125 (5x5x5, permutation with replacement). We first perform a grid search on all the 125 depth configurations, then take a closer look at the impact at each individual stage. The adversarial robustness of the 125 networks (adversarially trained using SAT) against $\mathrm { P G D ^ { 2 0 } }$ test adversarial examples is plotted in Figure 1b. Note that the depth configuration of standard WRN-34-10 is $^ { \mathrm { d } } 5 – 5 – 5$ . By investigating the robustness scores along the $\mathbf { X }$ -axis (number of parameters), we find that more parameters does not necessarily lead to improved robustness. For example, the networks with more than 80M (million) parameters are even less robust than some of those with only 20M parameters. Given the same level of parameters, for example ${ \sim } 2 0 \mathbf { M }$ , different depth configurations can lead to $\sim 6 \%$ difference in robustness. This implies that, under the same parameter budget, there may exist an optimal depth configuration for adversarial robustness.
90
+
91
+ Next, we take a closer look at the above grid search result and investigate the common characteristics of the top-5 most robust networks, the details of which are reported in Figure 2d. Interestingly, we find that the top-5 networks all have a significantly reduced depth of 1 or 3 at the last stage (i.e., Stage-3). This trend indicates that reducing model capacity at the last (deepest) stage can actually improve robustness. The other observation is that, having more residual blocks (higher depth) at the two shallow stages (i.e., Stage-1/2) can also improve robustness. For example, the top-2 networks have 9 residual blocks at Stage-1, and all top-4 networks have 9 or at least 7 residual blocks at Stage-2. This suggests that capacity is more important for the shallow layers. We conjecture this is because the network still needs sufficient capacity to learn the augmented examples by adversarial training. Note that the best performing model $- 9 - 7 - 1$ only uses half of the parameters of the standard WRN-34-10 (d5-5-5), which is only ranked the 45-th out of all 125 models.
92
+
93
+ ![](images/591388548c726a1145488d9a8b95e16b1587118fa8538106e5fb4c9b6f0b9ecc.jpg)
94
+ Figure 2: (a-c) The impact of depth on adversarial robustness at different stages. When studying one stage, the depths of other two stages are fixed to 5. (d) Clean accuracy and adversarial robustness of the top-5 most robust depth configurations discovered in the grid search. All networks are trained using SAT [15] on CIFAR-10. Robustness evaluated using $\mathrm { P G D ^ { 2 0 } }$ . d5-5-5 is the depth configuration of the baseline WRN-34-10 model.
95
+
96
+ We further explore the distinctive impacts of depth on adversarial robustness at different stages via a control study. Specifically, we add or remove residual blocks from each individual stage of WRN-34-10 (d5-5-5) while keeping the other two stages fixed to depth 5. The robustness results are shown in Figure 2a-2c. As can be observed, reducing depth at the first two stages constantly degrades the robustness, however, it is the other way around at the last stage (i.e., Stage-3). In relation to previous understanding that higher model capacity can lead to more robust models [28, 58], our finding indicates that it is true for the shallow layers but quite the opposite for the deeper layers. In other words, more parameters can improve adversarial robustness only when added to the shallow layers (e.g., layers in Stage-1 and Stage-2).
97
+
98
+ # 4.2 Exploring Different Widths
99
+
100
+ We further explore whether width also has a similar effect as depth. The standard WRN-34-10 has a width upscaling factor 10 applied to each stage, that is, $^ { \mathrm { w } } 1 0 \mathrm { - } 1 0 \mathrm { - } 1 0$ . Based on our above findings with the depth in Section 4.1, here we skip the grid search and directly investigate the impact of width at different stages. At each stage, we investigate different width configurations $W _ { i } \in \{ 2 , 4 , 6 , 8 , 1 0 \}$ for $i = { 1 , 2 , 3 }$ .
101
+
102
+ ![](images/a6e0d6bd4eebb11e4655603cc36f37e7e3881fc56090e66da6c3fba5eb7cf113.jpg)
103
+ Figure 3: (a-c): The impact of width on adversarial robustness at different stages. When studying one stage, the widths of other two stages are fixed to 10. (d): Clean accuracy and adversarial robustness of the networks obtained by reducing width in the last stage (i.e., Stage-3). All networks are trained using SAT [15] on CIFAR-10. Robustness is evaluated using $\mathrm { P G D ^ { 2 0 } }$ . w10-10-10 is the depth configuration of the baseline WRN-34-10 model.
104
+
105
+ The robustness results are illustrated in Figure 3. We find that width reduction generally has a similar effect as depth reduction: reducing width at the first two stages harms robustness until $W _ { \frac { 1 } { 2 } / 2 } = 4$ , however, the same operation can improve robustness when applied to the last stage. This confirms the importance of high capacity at the shallow layers and low capacity at the deeper layers. Compared to depth reduction, we find that, with the same amount of robustness improvement, width reduction (at the last stage) can lead to smaller models. For example, $^ { \mathrm { w } } 1 0 ^ { . } 1 0 ^ { . } 4$ (the second row in Figure 3d) achieves a similar robustness $( \sim 5 4 \% )$ as $^ { \mathrm { d } } 9 . 7 . 1$ (the first row in Figure 2d). However, the number of parameters of the $^ { \mathrm { w } } 1 0 ^ { \phantom { - } } 1 0 ^ { \phantom { - } } $ configuration is only 17.05M, which is much less than the 22.19M of the d9-7-1 configuration.
106
+
107
+ Another interesting observation is that adversarial robustness does not change much if we reduce the width from $W _ { 1 / 2 } = 4$ to $W _ { 1 / 2 } = 2$ at Stage-1 or Stage-2, whereas the same reduction at Stage-3 hurts robustness. This is somewhat expected since, on one hand, the robustness might not be affected much unless a sufficient number of filters (channels) are removed, which is different to depth that configures the entire residual block. On the other hand, if too many filters are removed at the last stage, the network may lose the capacity required for proper learning, while in our depth exploration, there exists at least one residual block $D _ { 3 } \geq 1 \underline { { \cdot } }$ ) at the last stage.
108
+
109
+ # 4.3 Exploring Depth-Width Combinations
110
+
111
+ Although reducing capacity at the last stage via either depth or width can improve robustness, there exists a limit. For example, if we reduce depth and width at the same time or too much of the width, the network may end up with insufficient capacity for proper learning. We first explore an extreme case that removes the entire Stage-3 as $\mathrm { d } 5 . { \dot { 5 } } { - } 0$ . This ends up with $2 \%$ less robustness than baseline WRN-34-10. This result verifies the necessity of Stage-3. We then reduce depth and width simultaneously by setting the depth to $^ { \mathrm { d } } 5 – 5 – 1$ and width to $^ { \mathrm { w } } 1 0 – 1 0 – 2$ . This produces a new network with a similar robustness $( \sim 5 2 \% )$ ) to $\mathrm { P G D ^ { 2 0 } }$ as WRN-34-10. Note that, in this case, comparing to WRN-34-10, the number of parameters has been reduced by $70 \%$ . We then explore all the 25 possible depth-width combinations between the top-5 depth and width configurations in Figure 2d and 3d, respectively. Surprisingly, we find that none of these models can achieve better robustness than simply reducing the width to $^ { \mathrm { w } } 1 0 ^ { . } 1 0 ^ { . } 4$ . These models achieved the same level of robustness $( \sim 5 4 \% )$ ), but require more computations (FLOPS). For instance, the network with depth $^ { \mathrm { d } } 7 . 9 . 3$ and width $^ { \mathrm { w } } 1 0 { - } 1 0 { - } 4$ requires 2 times more FLOPS than WRN-34-10. This does not benefit adversarial training since it is known to be time-consuming. Although a more fine-grained (with decimals) exploration of the width configuration may lead to even more robust WRN models, here we simply take the $^ { \mathrm { w } } 1 0 { - } 1 0 { - } 4$ configuration as our choice of the optimally-reduced WRN.
112
+
113
+ # 4.4 Scaling with the Discovered Configuration
114
+
115
+ Previous works [15, 16] have shown that a wider network like WRN-34-10 can be trained to be more robust than a standard ResNet like RN-34. Here, we investigate if we can obtain more robust models by scaling the discovered width configuration $^ { \mathrm { w } } 1 0 ^ { \phantom { - } } 1 0 ^ { \phantom { - } } 4$ . We test different scaling ratios $\gamma \in [ 0 . 2 5 , 2 . 0 ]$ , and show the robustness results in Table 1. Compared to $^ { \mathrm { w } } 1 0 ^ { \phantom { - } } 1 0 ^ { \phantom { - } } $ $( \gamma = 1 . 0 )$ ), scaling down $\gamma$ to 0.5 or 0.25 decreases the robustness while scaling up $\gamma$ can further improve the robustness, although the improvement become less significant when $\gamma$ goes above 1.5. Note that the network with $\gamma = 0 . 5$ has 10 times fewer parameters than the baseline WRN-34-10, but can already achieve a better robustness against $\mathrm { P G D ^ { 2 0 } }$ . The best robustness is achieved at $\gamma = 2 . 0$ , i.e., $^ { \mathrm { w } } 2 0 – 2 0 – 8$ . We denote the corresponding WRN-34 network as WRN-34-R, more details can be found in Appendix Table 3. In Section 5, we will apply the $^ { \mathrm { w } } 1 0 ^ { \phantom { - } } 1 0 ^ { \phantom { - } } 4$ configuration rule to more network architectures and evaluate their (along with WRN-34-R) adversarial robustness more systematically.
116
+
117
+ Table 1: Clean accuracy and adversarial robustness for scaled $^ { \mathrm { w } } 1 0 – 1 0 – 4$ configurations. All networks are trained using SAT [15] on CIFAR-10 and evaluated using $\mathrm { P G D ^ { 2 0 } }$ .
118
+
119
+ <table><tr><td>Scaling Ratio</td><td>Params (M)</td><td>Clean (%)</td><td>PGD20 (%)</td></tr><tr><td>γ= 0.25</td><td>1.07</td><td>80.61</td><td>50.90</td></tr><tr><td>γ= 0.5</td><td>4.27</td><td>84.31</td><td>54.07</td></tr><tr><td>γ=1.0</td><td>17.05</td><td>87.00</td><td>54.99</td></tr><tr><td>γ= 1.5</td><td>38.33</td><td>87.68</td><td>55.33</td></tr><tr><td>Y=2.0</td><td>68.12</td><td>88.12</td><td>55.35</td></tr></table>
120
+
121
+ # 4.5 Empirical Understanding
122
+
123
+ We apply two closely related metrics, including Perturbation Stability [59] and Empirical Lipschitz [74] to explore the distinctive impact of the deeper layers to adversarial robustness. They measure the output stability of the neural network.
124
+
125
+ Perturbation Stability. Adversarial robustness is typically measured by the percentage of correctly classified adversarial examples, which can be further decomposed into the set of correct clean examples intersect with stable examples [59]. Correct clean examples refer to clean examples that can be correctly classified by the model $\{ ( \pmb { x } , y ) \sim \mathbb { D } , f _ { \pmb { \theta } } ( \pmb { x } ) \ \stackrel { \ } { = } \ y \}$ . Stable examples are defined as, $\{ \pmb { x } : \forall \pmb { x } ^ { \prime } \in \mathcal { X } , f _ { \pmb { \theta } } ( \pmb { x } ) = f _ { \pmb { \theta } } ( \pmb { x } ^ { \prime } ) \}$ , where $\mathcal { X }$ is the domain of the $\epsilon$ -ball around $_ { \textbf { \em x } }$ . This perturbation stability measures the fraction of examples whose outputs cannot be adversarially perturbed. While many factors can affect the model’s performance on the correct clean examples such as the generalization capability of the model, the perturbation stability only measures if adversarial perturbations can change the prediction of the output. We apply this metric to understand the role of neural network architecture in adversarial robustness. More specifically we are interested to find out whether the improved robustness is a result of improved generalization, stability or both.
126
+
127
+ Empirical Lipschitz constant. The empirical Lipschitz constant is defined as [74]:
128
+
129
+ $$
130
+ \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \operatorname* { m a x } _ { \pmb { x } ^ { \prime } \in \mathcal { X } } \frac { \| f _ { \pmb { \theta } } ( \pmb { x } _ { i } ) - f _ { \pmb { \theta } } ( \pmb { x } _ { i } ^ { \prime } ) \| _ { 1 } } { \| \pmb { x } _ { i } - \pmb { x } _ { i } ^ { \prime } \| _ { \infty } } ,
131
+ $$
132
+
133
+ where $\mathcal { X }$ is the domain of the $\epsilon$ -ball around $_ { \textbf { \em x } }$ and $\mathbf { x } ^ { \prime }$ can be generated by an adversarial attack (i.e., $\mathrm { P G D ^ { 2 0 } }$ ). A lower value of the empirical Lipschitz constant implies a smoother and more adversarially robust classifier. For our analysis, we measure the empirical Lipschitz constant of the functions represented by the output layers of different residual blocks or the entire network (logits output). e.g., for block-5, we measure the maximum rate of change in its representation output between clean $( { \pmb x } )$ and adversarial $( { \pmb x } ^ { \prime } )$ inputs.
134
+
135
+ ![](images/6ac9f1800b40e21419d866a7203da0c6c55573dc35565fd9e790a026b8ad5f7c.jpg)
136
+ Figure 4: The change of perturbation stability and empirical Lipschitz constant when (a) depth of Stage-3 is reduced, (b) width of Stage-3 is reduced, or (c) linear scaling with $\gamma$ and $^ { \mathrm { w } } 1 0 ^ { \phantom { - } } 1 0 ^ { \phantom { - } } 4$ .
137
+
138
+ The Trade-off Between Capacity and Lipschitzness. We compute the above two metrics on the test set of CIFAR-10 for models with different depth and width configurations explored in Section 4.1 and 4.2. The results are illustrated in Figure 4, where the empirical Lipschitz constant is computed for the entire network. We can observe that, when depth or width for the given network is reduced, the empirical Lipschitz constant is also reduced, and the perturbation stability improves. This is consistent with our theoretical analysis in the Lipschitz constant upper bound. As shown in Figure 4b and 4c, this observation is more obvious for the width reduction. There exists a trade-off between the network capacity and Lipschitzness. For example, with $\gamma = 0 . 2 5$ scaling, the network achieves a much lower Lipschitzness and better stability, however, it also significantly reduces the clean accuracy. This indicates that adversarial training does require larger capacity models and a better trade-off can be achieved by balancing model capacity and Lipschitzness using proper architectural reduction.
139
+
140
+ ![](images/8f0507b8575bf1878004dd9d1b5ab89ae137a31f57b4eb97d38fd773dc6beac1.jpg)
141
+
142
+ ![](images/1150a3d5e465a31af54c3acc12b01307d78309e86f0793115d7537c5460196a9.jpg)
143
+
144
+ ![](images/97c2d9d09aa79eece94769c1ede44826b43d79cf301db049130142b32066a6d7.jpg)
145
+ (a) Reducing width at Stage-1. (b) Reducing width at Stage-2. (c) WRN-34-12 and WRN-34-R Figure 5: Empirical Lipschitz constant of the output layers of different residual blocks (bins 1-15) or the entire network (bin 16). All experiments are run on CIFAR-10.
146
+
147
+ In Figure 5, we plotted the empirical Lipschitz constant of the output layer of each residual block or the entire network. The $f _ { \pmb \theta } ( \pmb x )$ in equation (3) is replaced with the output of each residual block $f _ { \pmb { \theta } _ { j } } ( \pmb { x } )$ (from input to block output), and the last (16-th) bin is the empirical Lipschitz constant of the entire network (from input to logits). From Figure 5, we find that: 1) within each stage, the empirical Lipschitz increases with depth; 2) when transitioning from one stage to the next, the spatial dimension decreases while the empirical Lipschitz decreases; 3) comparing WRN-34-12 with WRN-34-R (Figure 5c), the empirical Lipschitz increase/decrease with the network width. This provides empirical results for our theoretical analysis in Section 3.
148
+
149
+ Reducing Parameters at Deeper Layers Improves both Perturbation Stability and Lipschitzness. Based on our theoretical analysis, reducing the width at Stage-1 and Stage-2 should improve the Lipschitzness of the corresponding stage as well as the entire network. However, empirically, it is true for the corresponding stage but not necessarily for the entire network. This is because the theoretical analysis in Section 3 only considers the interplay between two adjacent layers (or blocks), not including that of the non-adjacent layers. The empirical results in Figure 5 can fill this gap.
150
+
151
+ Specifically, Stage-1 width reduction (Figure 5a) lowers the Lipschitzness of Stage-1 blocks but not the overall Lipschitzness. Stage-2 width reduction (Figure 5b) can improve both Stage-2 and the overall Lipschitzness but fails to improve clean accuracy, perturbation stability nor adversarial robustness. WRN-34-R in Figure 5c marks our discovered reduction and scaling rule. Compared with standard WRNs, WRN-34-R not only reduces the width of Stage-3 (decreasing Lipschitzness) but also increases the widths of Stage-1 and Stage-2 (increasing Lipschitzness). Figure 5c shows that the increased Lipschitzness at Stage-1 and Stage-2 of WRN-34-R can be effectively mitigated at Stage-3, leading to decreased overall Lipschitzness and improved robustness (see Table 4.4). This also results in higher clean accuracy and perturbation stability (Figure $_ \mathrm { 4 c }$ ). We conjecture this is because Stage-3 (the last stage) is closer to the final output, thus has a more direct impact on the overall Lipschitzness. These empirical results provide a more in-depth understanding of the impact of width and depth configurations to the overall Lipschitzness, perturbation stability and adversarial robustness.
152
+
153
+ # 5 Adversarial Robustness Evaluation
154
+
155
+ In this section, we apply the discovered $^ { \mathrm { w } } 1 0 { - } 1 0 { - } 4$ width configuration rule to VGG, DenseNet (DN), DNNs discovered by NAS, WRN-34-R $^ { \mathrm { w } } 1 0 – 1 0 – 4$ scaled by $\gamma = 2 . 0$ ), and evaluate their robustness with various adversarial attacks and defence methods on CIFAR [1] in the white-box setting. Additional results for CIFAR-10 black-box and ImageNet [75] using FastAT [37] can be found in Appendix D.
156
+
157
+ Experimental Settings. We consider VGG-11 [76], DenseNet-121 (DN-121) [77] and a network found by DARTS [78] with 11 cells. We denote the optimized VGG-11, DN-121 and DARTS networks as VGG-11-R, DN-121-R and DARTS-R (see Appendix B.2 for details), respectively. For a fair comparison between the discovered WRN-34-R (scaled by $\gamma = 2 . 0$ ) and the standard
158
+
159
+ WRN, we upscale WRN-34-10 to WRN-34-12 to make sure the two models have a similar amount of parameters. We train all networks using 4 adversarial training methods: Standard Adversarial Training (SAT) [15], TRADES [16], Misclassification Aware adveRsarial Training (MART) [18] and Robust Self-Training (RST) with 500K additional data [23]. More details are in Appendix B.1.
160
+
161
+ Table 2: White-box robustness results on CIFAR-10 and CIFAR-100. 500K: Additional data used as in [23]. Params: number of parameters. SAT: Adversarial Training [15]; TRADES [16]; MART [18]; GAMA100: 100-step GAMA attack [33]; AA: AutoAttack [30]; $\mathrm { C W } _ { \infty }$ : $L _ { \infty }$ version CW attack [79] optimized by PGD; -R: reconfigured networks following our discovered robust architectural configuration; Last: Results evaluated at the last checkpoint. Best: Results evaluated at the best checkpoint according to $\mathrm { P G D ^ { 2 0 } }$ . The best results are in bold.
162
+
163
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">Model</td><td rowspan="2">Method</td><td rowspan="2">Params (M)</td><td colspan="2">Clean (%)</td><td colspan="2">FGSM (%)</td><td colspan="2">PGD20 (%)</td><td colspan="2">GAMA100 (%)</td><td colspan="2">CW (%)</td><td colspan="2">AA (%)</td></tr><tr><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td></tr><tr><td rowspan="10">CIFAR-10</td><td>VGG-11</td><td>SAT</td><td>9.23</td><td>79.24</td><td>77.84</td><td>55.98 57.35</td><td>56.68</td><td>42.62</td><td>45.46</td><td>38.59</td><td>40.65</td><td>45.45</td><td>46.29</td><td>37.21 38.44</td><td>39.84</td></tr><tr><td>VGG-11-R</td><td>SAT</td><td>5.83</td><td>79.63</td><td>77.34</td><td></td><td>57.11</td><td>43.93</td><td>45.97</td><td>39.71</td><td>41.31</td><td>46.49</td><td>47.23</td><td></td><td>40.65</td></tr><tr><td>DN-121</td><td>SAT</td><td>6.96</td><td>86.87</td><td>86.07</td><td>65.56</td><td>66.58</td><td>51.67</td><td>54.79</td><td>48.60</td><td>51.00</td><td>52.03</td><td>54.00</td><td>47.16</td><td>50.34</td></tr><tr><td>DN-121-R</td><td>SAT</td><td>6.00</td><td>87.22</td><td>86.01</td><td>67.12</td><td>67.20</td><td>52.52</td><td>55.16</td><td>49.37</td><td>51.44</td><td>53.07</td><td>54.67</td><td>47.75</td><td>50.54</td></tr><tr><td>DARTS</td><td>SAT</td><td>6.58</td><td>86.76</td><td>86.55</td><td>64.48</td><td>67.10</td><td>49.44</td><td>54.23</td><td>46.52</td><td>50.74</td><td>52.03</td><td>54.00</td><td>45.16</td><td>49.98</td></tr><tr><td>DARTS-R</td><td>SAT</td><td>2.53</td><td>87.20</td><td>85.79</td><td>66.74</td><td>66.61</td><td>52.36</td><td>55.01</td><td>48.71</td><td>50.94</td><td>53.07</td><td>54.67</td><td>47.75</td><td>50.54</td></tr><tr><td>WRN-34-12</td><td>SAT</td><td>66.46</td><td>86.71</td><td>87.20</td><td>64.06</td><td>66.26</td><td>49.92</td><td>53.09</td><td>47.45</td><td>50.40</td><td>52.23</td><td>53.58</td><td>46.06</td><td>49.18</td></tr><tr><td>WRN-34-R</td><td>SAT</td><td>68.12</td><td>87.62</td><td>87.85</td><td>66.23</td><td>68.15</td><td>51.08</td><td>55.35</td><td>48.45</td><td>51.36</td><td>52.42</td><td>54.57</td><td>46.75</td><td>50.03</td></tr><tr><td>WRN-34-12</td><td>TRADES</td><td>66.46</td><td>85.84</td><td>84.59</td><td>65.70</td><td>66.85</td><td>53.02</td><td>56.01</td><td>49.60</td><td>52.35</td><td>53.35</td><td>54.72</td><td>48.48</td><td>51.83</td></tr><tr><td>WRN-34-R</td><td>TRADES</td><td>68.12</td><td>86.77</td><td>86.02</td><td>67.99</td><td>68.49</td><td>55.15</td><td>57.66 57.95</td><td>51.92</td><td>53.86</td><td>55.41</td><td>56.30 54.61</td><td>50.90</td><td>53.46</td></tr><tr><td></td><td>WRN-34-12</td><td>MART</td><td>66.46</td><td>85.98</td><td>82.62</td><td>66.85</td><td>67.00</td><td>54.30</td><td></td><td>49.58</td><td>52.20</td><td>52.29</td><td></td><td>47.68</td><td>51.21</td></tr><tr><td>CIFAR-10</td><td>WRN-34-R</td><td>MART</td><td>68.12</td><td>86.09</td><td>83.69</td><td>68.79</td><td>68.18</td><td>56.31</td><td>59.13</td><td>51.40</td><td>53.22</td><td>54.20</td><td>55.44</td><td>49.90</td><td>52.48</td></tr><tr><td>+500K</td><td>WRN-34-12</td><td>RST</td><td>66.46</td><td>90.52</td><td>90.36</td><td>76.01</td><td>76.02</td><td>65.52</td><td>65.56</td><td>61.67</td><td>61.70</td><td>64.30</td><td>64.26</td><td>60.90</td><td>60.96</td></tr><tr><td rowspan="2"></td><td>WRN-34-R</td><td>RST</td><td>68.12</td><td>90.73</td><td>90.56</td><td>76.51</td><td>76.44</td><td>66.46</td><td>66.51</td><td>62.38</td><td>62.49</td><td>65.12</td><td>65.10</td><td>61.49</td><td>61.56</td></tr><tr><td>WRN-34-12</td><td>SAT</td><td>66.53</td><td>59.63</td><td>60.64</td><td>33.67</td><td>37.28</td><td>24.50</td><td>27.61</td><td>23.38</td><td>24.95</td><td>43.78</td><td>42.02</td><td>22.27</td><td>24.42</td></tr><tr><td rowspan="6">CIFAR-100</td><td>WRN-34-R</td><td>SAT</td><td>68.16</td><td>61.17</td><td>61.33</td><td>35.00</td><td>38.72</td><td>25.03</td><td>29.02</td><td>23.38</td><td>25.70</td><td>43.52</td><td>41.46</td><td>22.72</td><td>25.20</td></tr><tr><td>WRN-34-12</td><td>TRADES</td><td>66.53</td><td>55.62</td><td>56.47</td><td>35.35</td><td>36.90</td><td>27.52</td><td>29.48</td><td>24.94</td><td>25.21</td><td>44.75</td><td>46.19</td><td>24.58</td><td>24.85</td></tr><tr><td>WRN-34-R</td><td>TRADES</td><td>68.16</td><td>56.83</td><td>56.75</td><td>36.95</td><td>37.68</td><td>29.17</td><td>29.92</td><td>25.48</td><td>25.48</td><td>45.04</td><td>45.52</td><td>25.13</td><td>25.23</td></tr><tr><td>WRN-34-12</td><td>MART</td><td>66.53</td><td>58.51</td><td>57.29</td><td>36.06</td><td>39.48</td><td>26.50</td><td>32.43</td><td>23.85</td><td>27.64</td><td>41.53</td><td>38.73</td><td>23.33</td><td>26.92</td></tr><tr><td>WRN-34-R</td><td>MART</td><td>68.16</td><td>61.72</td><td>58.27</td><td>39.68</td><td>41.24</td><td>29.94</td><td>34.12</td><td>26.27</td><td>29.33</td><td>39.20</td><td>38.45</td><td>25.60</td><td>28.63</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
164
+
165
+ White-box Robustness. We evaluate the robustness of the networks to 5 adversarial attacks including Fast Gradient Sign Method (FGSM) [5], Projected Gradient Descent (PGD) [15], Carlini and Wagner (CW) [79], Guided Adversarial Margin Attack (GAMA) [33] and AutoAttack (AA) [30]. We apply these attacks on the test sets of CIFAR-10 and CIFAR-100 with the same maximum adversarial perturbation $\epsilon = 8 / 2 5 5$ as adopted for model training. For PGD, we use the 20-step PGD $( \mathrm { P G D ^ { 2 0 } } )$ with step size $\alpha = \epsilon / 1 0$ . For GAMA attack, we set its perturbation steps to 100 following the original paper. We report the model’s accuracy on the test adversarial examples crafted by these evaluation attacks for models obtained at both the best and the last checkpoints, following [16, 46, 18].
166
+
167
+ The white-box evaluation results including both clean accuracy and adversarial robustness are reported in Table 2. As can be inferred, a robustness gain of $1 \sim 3 \%$ can be consistently achieved when the networks are reconfigured following our discovered configuration rule. And the improvements are not restricted to a particular architecture nor adversarial training method, except there is slight decrease for $\mathrm { C W } _ { \infty }$ on CIFAR-100 for SAT and MART. This wide range of robustness improvements by a simple architectural reconfiguration confirms that our findings are very general and can be immediately applied to commonly used DNNs to obtain more adversarial robustness. For VGG-11, DN-121 and DARTS, our robust reconfiguration can reduce the parameters by a considerable amount.
168
+
169
+ # 6 Relation to Existing Understandings
170
+
171
+ One recent work [59] shows that wider networks tend to increase the Lipschitzness, a finding that is consistent with ours. In [59], the theoretical analysis is based on Neural Tangent Kernel (NTK) under the assumption that all layers share the same width. By contrast, our analysis provides a more in-depth understanding related to the width and depth of each individual layer. Whilst in [59], the wider network utilizes a stronger regularization to mitigate the vulnerability (instability) caused by increased Lipschitzness, our work shows that this can be achieved alternatively by a simple reconfiguration of the architecture.
172
+
173
+ It has also been found that weight decay plays an important role in adversarial training [54, 80]. This can be explained by our theoretical analysis in Theorem 1 and 2. Considering the weight matrix is normally distributed $\mathcal { N } ( 0 , \sigma _ { \theta } ^ { 2 } )$ , weight decay encourages the model to learn weights of smaller magnitudes, thus reducing the variance $\sigma _ { \theta } ^ { 2 }$ of the weight matrix. This will lead to reduced upper bound of the Lipschitz constant and improved robustness. See Appendix E for more discussions.
174
+
175
+ # 7 Conclusion
176
+
177
+ In this paper, we explored the architectural ingredients of adversarially robust DNNs via extensive fine-controlled experiments and theoretical analysis. Our findings are: 1) more parameters does not necessarily lead to more adversarially robust models; 2) reducing capacity (up to a limit) via either depth or width at the deeper layers improves adversarial robustness; and 3) under the same type of architectures and parameter budget, there may exist an architectural configuration that can exploit the full robustness potential of the network. We also showed that depth and width offer different levels of flexibility for capacity reduction and robustness improvement. Following a width reduction and scaling rule, we showed that our findings are generic, not restricted to a particular adversarial training method, and can be immediately applied to improve both manually-designed or NAS-discovered DNNs. We also provide a series of empirical understandings on the distinctive impacts of the deeper layers on adversarial robustness. Our work can provide useful insights into the architectural perspective of adversarial robustness, and help design more adversarially robust DNNs.
178
+
179
+ # Border Impacts
180
+
181
+ Adversarial training is currently the most effective defense against adversarial attacks, although its performance is yet to be improved. In this work, we extensively studied the impact of network architecture to adversarial robustness. Our findings suggest that models can be made more robust by even reducing capacity at the deep layers. Such reduction can also help save the training cost of adversarial training which is known to be extremely time-consuming. We will open source the discovered architectural configurations to help future research design more robust architectures.
182
+
183
+ # Acknowledgment
184
+
185
+ Yisen Wang is partially supported by the National Natural Science Foundation of China under Grant 62006153, and Project 2020BD006 supported by PKU-Baidu Fund. This research was undertaken using the LIEF HPC-GPGPU Facility hosted at The University of Melbourne. This Facility was established with the assistance of LIEF Grant LE170100200.
186
+
187
+ # References
188
+
189
+ [1] Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
190
+ [2] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014.
191
+ [3] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In EMNLP, 2016.
192
+ [4] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014.
193
+ [5] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015.
194
+ [6] Xingjun Ma, Bo Li, Yisen Wang, Sarah M. Erfani, Sudanthi N. R. Wijewickrema, Grant Schoenebeck, Dawn Song, Michael E. Houle, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In ICLR, 2018.
195
+ [7] Kevin Eykholt, Ivan Evtimov, Earlence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Robust physical-world attacks on deep learning visual classification. In CVPR, 2018.
196
+ [8] Ranjie Duan, Xingjun Ma, Yisen Wang, James Bailey, A. Kai Qin, and Yun Yang. Adversarial camouflage: Hiding physical-world attacks with natural styles. In CVPR, 2020.
197
+ [9] Samuel G Finlayson, John D Bowers, Joichi Ito, Jonathan L Zittrain, Andrew L Beam, and Isaac S Kohane. Adversarial attacks on medical machine learning. Science, 363(6433):1287–1289, 2019.
198
+ [10] Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu. Understanding adversarial attacks on deep learning based medical image analysis systems. Pattern Recognition, 2020.
199
+ [11] Guneet S. Dhillon, Kamyar Azizzadenesheli, Zachary C. Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In ICLR, 2018.
200
+ [12] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan L. Yuille. Mitigating adversarial effects through randomization. In ICLR, 2018.
201
+ [13] Jacob Buckman, Aurko Roy, Colin Raffel, and Ian J. Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In ICLR, 2018.
202
+ [14] Chuan Guo, Mayank Rana, Moustapha Cissé, and Laurens van der Maaten. Countering adversarial images using input transformations. In ICLR, 2018.
203
+ [15] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
204
+ [16] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan. Theoretically principled trade-off between robustness and accuracy. In ICML, 2019.
205
+ [17] Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu. On the convergence and robustness of adversarial training. In ICML, 2019.
206
+ [18] Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Quanquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020.
207
+ [19] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. NeurIPS, 2020.
208
+ [20] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. In NeurIPS, 2019.
209
+ [21] Yang Bai, Yuyuan Zeng, Yong Jiang, Shu-Tao Xia, Xingjun Ma, and Yisen Wang. Improving adversarial robustness via channel-wise activation suppressing. In ICLR, 2021.
210
+ [22] Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. In NeurIPS, 2018.
211
+ [23] Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, John C. Duchi, and Percy Liang. Unlabeled data improves adversarial robustness. In NeurIPS, 2019.
212
+ [24] Aditi Raghunathan, Sang Michael Xie, Fanny Yang, John Duchi, and Percy Liang. Understanding and mitigating the tradeoff between robustness and accuracy. In ICML, 2020.
213
+ [25] Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John Hopcroft, and Liwei Wang. Adversarially robust generalization just requires more unlabeled data. arXiv preprint arXiv:1906.00555, 2019.
214
+ [26] Cihang Xie and Alan L. Yuille. Intriguing properties of adversarial training at scale. In ICLR, 2020.
215
+ [27] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016.
216
+ [28] Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. In ECCV, 2018.
217
+ [29] Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018.
218
+ [30] Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In ICML, 2020.
219
+ [31] Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In ICML, 2020.
220
+ [32] Jean-Baptiste Alayrac, Jonathan Uesato, Po-Sen Huang, Alhussein Fawzi, Robert Stanforth, and Pushmeet Kohli. Are labels required for improving adversarial robustness? In NeurIPS, 2019.
221
+ [33] Gaurang Sriramanan, Sravanti Addepalli, Arya Baburaj, and R Venkatesh Babu. Guided adversarial attack for evaluating and enhancing adversarial defenses. arXiv preprint arXiv:2011.14969, 2020.
222
+ [34] Gavin Weiguang Ding, Yash Sharma, Kry Yik Chau Lui, and Ruitong Huang. Mma training: Direct input space margin maximization through adversarial training. In ICLR, 2020.
223
+ [35] Tianyu Pang, Kun Xu, Yinpeng Dong, Chao Du, Ning Chen, and Jun Zhu. Rethinking softmax crossentropy loss for adversarial robustness. In ICLR, 2020.
224
+ [36] Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John P. Dickerson, Christoph Studer, Larry S. Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! In NeurIPS, 2019.
225
+ [37] Eric Wong, Leslie Rice, and J. Zico Kolter. Fast is better than free: Revisiting adversarial training. In ICLR, 2020.
226
+ [38] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. In NeurIPS, 2020.
227
+ [39] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang. Adversarial robustness: From self-supervised pre-training to fine-tuning. In CVPR, 2020.
228
+ [40] Tianyu Pang, Xiao Yang, Yinpeng Dong, Taufik Xu, Jun Zhu, and Hang Su. Boosting adversarial training with hypersphere embedding. In NeurIPS, 2020.
229
+ [41] Minhao Cheng, Pin-Yu Chen, Sijia Liu, Shiyu Chang, Cho-Jui Hsieh, and Payel Das. Self-progressing robust training. arXiv preprint arXiv:2012.11769, 2020.
230
+ [42] Yinpeng Dong, Zhijie Deng, Tianyu Pang, Jun Zhu, and Hang Su. Adversarial distributional training for robust deep learning. In NeurIPS, 2020.
231
+ [43] Jingfeng Zhang, Jianing Zhu, Gang Niu, Bo Han, Masashi Sugiyama, and Mohan Kankanhalli. Geometryaware instance-reweighted adversarial training. In ICLR, 2021.
232
+ [44] Micah Goldblum, Liam Fowl, Soheil Feizi, and Tom Goldstein. Adversarially robust distillation. In AAAI, 2020.
233
+ [45] Bojia Zi, Shihao Zhao, Xingjun Ma, and Yu-Gang Jiang. Revisiting adversarial robustness distillation: Robust soft labels make student better. ICCV, 2021.
234
+ [46] Leslie Rice, Eric Wong, and J. Zico Kolter. Overfitting in adversarially robust deep learning. In ICML, 2020.
235
+ [47] Tianlong Chen, Zhenyu Zhang, Sijia Liu, Shiyu Chang, and Zhangyang Wang. Robust overfitting may be mitigated by properly learned smoothening. In ICLR, 2021.
236
+ [48] Jie Ren, Die Zhang, Yisen Wang, Lu Chen, Zhanpeng Zhou, Xu Cheng, Xin Wang, Yiting Chen, Jie Shi, and Quanshi Zhang. Game-theoretic understanding of adversarially learned features. arXiv preprint arXiv:2103.07364, 2021.
237
+ [49] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry. Adversarial robustness as a prior for learned representations. arXiv preprint arXiv:1906.00945, 2019.
238
+ [50] Yifei Wang, Yisen Wang, Jiansheng Yang, and Zhouchen Lin. Demystifying adversarial training via a unified probabilistic framework. In ICML 2021 Workshop on Adversarial Machine Learning, 2021.
239
+ [51] Hadi Salman, Andrew Ilyas, Logan Engstrom, Ashish Kapoor, and Aleksander Madry. Do adversarially robust imagenet models transfer better? In NeurIPS, 2020.
240
+ [52] Xin Wang, Jie Ren, Shuyun Lin, Xiangming Zhu, Yisen Wang, and Quanshi Zhang. A unified approach to interpreting and boosting adversarial transferability. In ICLR, 2021.
241
+ [53] Cihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan L Yuille, and Quoc V Le. Adversarial examples improve image recognition. In CVPR, 2020.
242
+ [54] Tianyu Pang, Xiao Yang, Yinpeng Dong, Hang Su, and Jun Zhu. Bag of tricks for adversarial training. In ICLR, 2021.
243
+ [55] Shiyu Tang, Ruihao Gong, Yan Wang, Aishan Liu, Jiakai Wang, Xinyun Chen, Fengwei Yu, Xianglong Liu, Dawn Song, Alan Yuille, et al. Robustart: Benchmarking robustness on architecture design and training techniques. arXiv preprint arXiv:2109.05211, 2021.
244
+ [56] George Cazenavette, Calvin Murdock, and Simon Lucey. Architectural adversarial robustness: The case for deep pursuit. arXiv preprint arXiv:2011.14427, 2020.
245
+ [57] Itay Safran and Ohad Shamir. Depth-width tradeoffs in approximating natural functions with neural networks. In International Conference on Machine Learning, pages 2979–2987. PMLR, 2017.
246
+ [58] Preetum Nakkiran. Adversarial robustness may be at odds with simplicity. arXiv preprint arXiv:1901.00532, 2019.
247
+ [59] Boxi Wu, Jinghui Chen, Deng Cai, Xiaofei He, and Quanquan Gu. Do wider neural networks really help adversarial robustness? In NeurIPS, 2021.
248
+ [60] Minghao Guo, Yuzhe Yang, Rui Xu, Ziwei Liu, and Dahua Lin. When NAS meets robustness: In search of robust architectures against adversarial attacks. In CVPR, 2020.
249
+ [61] Xuefei Ning, Junbo Zhao, Wenshuo Li, Tianchen Zhao, Huazhong Yang, and Yu Wang. Multi-shot nas for discovering adversarially robust convolutional neural architectures at targeted capacities. arXiv preprint arXiv:2012.11835, 2020.
250
+ [62] Ramtin Hosseini, Xingyi Yang, and Pengtao Xie. Dsrna: Differentiable search of robust neural architectures. arXiv preprint arXiv:2012.06122, 2020.
251
+ [63] Minjing Dong, Yanxi Li, Yunhe Wang, and Chang Xu. Adversarially robust neural architectures. arXiv preprint arXiv:2009.00902, 2020.
252
+ [64] Hanlin Chen, Baochang Zhang, Song Xue, Xuan Gong, Hong Liu, Rongrong Ji, and David Doermann. Anti-bandit neural architecture search for model defense. In ECCV, 2020.
253
+ [65] Xiangning Chen and Cho-Jui Hsieh. Stabilizing differentiable architecture search via perturbation-based regularization. In ICML, 2020.
254
+ [66] Chaitanya Devaguptapu, Devansh Agarwal, Gaurav Mittal, and Vineeth N Balasubramanian. An empirical study on the robustness of nas based architectures. arXiv preprint arXiv:2007.08428, 2020.
255
+ [67] Mark Rudelson and Roman Vershynin. Non-asymptotic theory of random matrices: extreme singular values. In International Congress of Mathematicians (ICM), 2010.
256
+ [68] Henry Gouk, Eibe Frank, Bernhard Pfahringer, and Michael J Cree. Regularisation of neural networks by enforcing lipschitz continuity. Machine Learning, 2021.
257
+ [69] SiQi Zhou and Angela P Schoellig. An analysis of the expressiveness of deep neural network architectures based on their lipschitz constants. arXiv preprint arXiv:1912.11511, 2019.
258
+ [70] Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In ICML, 2017.
259
+ [71] Haifeng Qian and Mark N Wegman. L2-nonexpansive neural networks. arXiv preprint arXiv:1802.07896, 2018.
260
+ [72] Yusuke Tsuzuku, Issei Sato, and Masashi Sugiyama. Lipschitz-margin training: Scalable certification of perturbation invariance for deep neural networks. In NeurIPS, 2018.
261
+ [73] Todd Huster, Cho-Yu Jason Chiang, and Ritu Chadha. Limitations of the lipschitz constant as a defense against adversarial examples. In ECML PKDD, 2018.
262
+ [74] Yao-Yuan Yang, Cyrus Rashtchian, Hongyang Zhang, Ruslan Salakhutdinov, and Kamalika Chaudhuri. A closer look at accuracy vs. robustness. NeurIPS, 2020.
263
+ [75] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
264
+ [76] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
265
+ [77] Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, 2017.
266
+ [78] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR, 2019.
267
+ [79] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In S&P, 2017.
268
+ [80] Sven Gowal, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. Uncovering the limits of adversarial training against norm-bounded adversarial examples. arXiv preprint arXiv:2010.03593, 2020.
269
+ [81] Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In ICLR, 2017.
270
+ [82] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
271
+ [83] Linxi Jiang, Xingjun Ma, Zejia Weng, James Bailey, and Yu-Gang Jiang. Imbalanced gradients: A new cause of overestimated adversarial robustness. arXiv preprint arXiv:2006.13726, 2020.
272
+ [84] Vikash Sehwag, Shiqi Wang, Prateek Mittal, and Suman Jana. Hydra: Pruning adversarially robust neural networks. NeurIPS, 2020.
273
+ [85] Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In UAI, 2018.
274
+
275
+ # Checklist
276
+
277
+ The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example:
278
+
279
+ • Did you include the license to the code and datasets? [Yes]
280
+ • Did you include the license to the code and datasets? [No] The code and the data are proprietary.
281
+ • Did you include the license to the code and datasets? [N/A]
282
+
283
+ Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below.
284
+
285
+ 1. For all authors...
286
+
287
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
288
+ (b) Did you describe the limitations of your work? [Yes] We briefly discussed the negative impacts of adversarial attacks in the introduction and border impacts.
289
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes]
290
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
291
+
292
+ 2. If you are including theoretical results...
293
+
294
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A.1
295
+
296
+ 3. If you ran experiments...
297
+
298
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] Code available in supplementary material
299
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
300
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
301
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix B
302
+
303
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
304
+
305
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
306
+
307
+ (b) Did you mention the license of the assets? [Yes]
308
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
309
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
310
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
311
+
312
+ 5. If you used crowdsourcing or conducted research with human subjects...
313
+
314
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
315
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
316
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/OdklztJBBYH/OdklztJBBYH_content_list.json ADDED
@@ -0,0 +1,1252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Exploring Architectural Ingredients of Adversarially Robust Deep Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 179,
8
+ 122,
9
+ 820,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Hanxun Huang1 Yisen Wang2,3 Sarah Erfani1 Quanquan $\\mathbf { G u ^ { 4 } }$ James Bailey1 Xingjun $\\mathbf { M } \\mathbf { a } ^ { \\mathsf { \\pm } }$ ",
17
+ "bbox": [
18
+ 295,
19
+ 224,
20
+ 738,
21
+ 255
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1School of Computing and Information Systems, The University of Melbourne, Victoria, Australia \n2Key Lab. of Machine Perception, School of Artificial Intelligence, Peking University, Beijing, China 3Institute for Artificial Intelligence, Peking University, Beijing, China 4University of California, Los Angeles, USA 5School of Computer Science, Fudan University, Shanghai, China ",
28
+ "bbox": [
29
+ 184,
30
+ 256,
31
+ 848,
32
+ 329
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 364,
43
+ 535,
44
+ 381
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Deep neural networks (DNNs) are known to be vulnerable to adversarial attacks. A range of defense methods have been proposed to train adversarially robust DNNs, among which adversarial training has demonstrated promising results. However, despite preliminary understandings developed for adversarial training, it is still not clear, from the architectural perspective, what configurations can lead to more robust DNNs. In this paper, we address this gap via a comprehensive investigation on the impact of network width and depth on the robustness of adversarially trained DNNs. Specifically, we make the following key observations: 1) more parameters (higher model capacity) does not necessarily help adversarial robustness; 2) reducing capacity at the last stage (the last group of blocks) of the network can actually improve adversarial robustness; and 3) under the same parameter budget, there exists an optimal architectural configuration for adversarial robustness. We also provide a theoretical analysis explaning why such network configuration can help robustness. These architectural insights can help design adversarially robust DNNs. Code is available at https://github.com/HanxunH/RobustWRN. ",
51
+ "bbox": [
52
+ 233,
53
+ 396,
54
+ 766,
55
+ 603
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 628,
66
+ 310,
67
+ 646
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Deep neural networks (DNNs) are becoming standard models for many real-world applications such as image classification [1], object detection [2] and natural language processing [3]. However, a line of research has shown that DNNs are vulnerable to adversarial examples (attacks), which can be easily crafted by slightly perturbing the input instance to maximize the model’s prediction error [4–6]. This vulnerability of DNNs has become a major concern for their deployment in security-critical applications such as autonomous driving [7, 8] and medical diagnosis [9, 10]. ",
74
+ "bbox": [
75
+ 174,
76
+ 661,
77
+ 825,
78
+ 744
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A number of defense methods have been proposed to train adversarially robust DNNs [11–14], among which adversarial training has demonstrated the most promising results [15–17]. Adversarial training can be viewed as a type of data augmentation that trains DNNs on adversarial (instead of natural) examples [15–19]. Based on adversarial training, a set of works have been proposed to understand its learning and convergence behaviors, and the key factors for training adversarially robust DNNs. For example, it has been found that adversarial training encourages the model to learn more robust or compact features [20, 21], and it requires more data [22–25] or higher capacity models to gain more robustness [15, 26]. While these understandings have motivated several improved defense methods, it is still not clear, from an architectural perspective, what makes an adversarially robust DNN. ",
85
+ "bbox": [
86
+ 174,
87
+ 750,
88
+ 825,
89
+ 875
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we present the first comprehensive investigation on the architectural ingredients of adversarially robust DNNs. Our investigation is based on adversarial training and WideResNet-34-10 (WRN-34-10) [27], one extensively tested architecture in the defense literature. Based on the base architectural configuration of WRN-34-10, we apply a finely-controlled grid search to explore the impact of network width and depth configurations on the robustness of adversarial trained DNNs. ",
96
+ "bbox": [
97
+ 174,
98
+ 90,
99
+ 825,
100
+ 161
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The standard WRN-34-10 consists of 3 stages with each stage being a group of 5 (i.e., depth) residual blocks and each residual block having 2 convolutional layers. We denote the three stages as Stage-1, Stage-2 and Stage-3 following the direction from the input to the output. Each stage is configured by a depth (number of residual blocks) and a width (number of filters) factor. The hyper-parameters for width and depth of each stage control the scale of learnable parameters (capacity). In this paper, we explore different configurations of width and depth for each of the three stages. Based on our explorations, we make the following key observations: ",
107
+ "bbox": [
108
+ 174,
109
+ 166,
110
+ 826,
111
+ 265
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "• Simply increasing the number of parameters (model capacity) by upscaling width or depth does not necessarily lead to improved robustness. This contrasts with current beliefs that, under the same type of architecture, more parameters (higher model capacity) can improve adversarial robustness [15, 26, 28]. Adversarial training does require larger capacity models, but there exists a trade-off. We provide both theoretical and empirical evidences that wider/deeper models increase Lipschitzness (larger Lipschitz constant). • For a larger model used in adversarial training, reducing capacity at the last stage (Stage-3) of WRNs can achieve a better trade-off between capacity and Lipschitzness, thus improving adversarial robustness. This can be achieved by reducing either depth or width, with width reduction being slightly more effective. This highlights that smaller DNNs can also have better robustness if the parameter reduction is applied at the right place (i.e., the last stage). • Under the same type of architectures (i.e., WRNs) and parameter budget, there may exist an optimal architectural configuration that can produce the most robust DNN. We show that the same configuration rule can also be applied to improve the robustness of VGGs, DenseNets (DNs), as well as networks found by Differentiable Architecture Search (DARTS). ",
118
+ "bbox": [
119
+ 217,
120
+ 276,
121
+ 828,
122
+ 493
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Furthermore, we provide a series of understandings for the above findings, which can not only provide useful insights for training more robust models with adversarial training, but also shed new light on the architectural ingredients of adversarially robust DNNs. ",
129
+ "bbox": [
130
+ 176,
131
+ 506,
132
+ 825,
133
+ 547
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 Related Work ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 566,
144
+ 321,
145
+ 583
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2.1 Adversarial Training ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 174,
155
+ 598,
156
+ 361,
157
+ 613
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Adversarial training has been demonstrated to be the most reliable training method for obtaining adversarially robust DNNs [29, 30]. The standard adversarial training (SAT) can be formulated as a min-max optimization framework as follows: ",
164
+ "bbox": [
165
+ 174,
166
+ 623,
167
+ 825,
168
+ 665
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "equation",
174
+ "img_path": "images/c268ca84cceff4a5a43b97169a55c12ca36027ae7cad85deb07cc7b2f6b340e7.jpg",
175
+ "text": "$$\n\\underset { \\pmb { \\theta } } { \\arg \\operatorname* { m i n } } \\mathbb { E } _ { ( \\pmb { x } , \\pmb { y } ) \\sim \\mathbb { D } } \\left[ \\underset { \\pmb { x } ^ { \\prime } } { \\operatorname* { m a x } } \\mathcal { L } ( f _ { \\pmb { \\theta } } , \\pmb { x } ^ { \\prime } , \\pmb { y } ) \\right] ,\n$$",
176
+ "text_format": "latex",
177
+ "bbox": [
178
+ 372,
179
+ 671,
180
+ 622,
181
+ 702
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "where the inner maximization generates adversarial examples $\\mathbf { x } ^ { \\prime }$ , the outer minimization trains the model on $\\mathbf { x } ^ { \\prime }$ , $f _ { \\theta }$ denote the neural network and $\\mathcal { L } ( \\cdot )$ is the cross entropy (CE) loss. During the inner maximization process, SAT uses PGD to generate adversarial examples [15]: ",
188
+ "bbox": [
189
+ 174,
190
+ 708,
191
+ 825,
192
+ 751
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "equation",
198
+ "img_path": "images/7242574952d789cec3f58929e406450540823e08153b0ea429e33ae0d0ac3f22.jpg",
199
+ "text": "$$\n\\pmb { x } _ { k } ^ { \\prime } = \\Pi _ { \\epsilon } ( \\pmb { x } _ { k - 1 } ^ { \\prime } + \\alpha \\cdot \\mathrm { s i g n } ( \\nabla _ { \\pmb { x } } \\mathcal { L } ( f _ { \\pmb { \\theta } } , \\pmb { x } _ { k - 1 } ^ { \\prime } , y ) ) ) ,\n$$",
200
+ "text_format": "latex",
201
+ "bbox": [
202
+ 338,
203
+ 756,
204
+ 656,
205
+ 775
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "where $\\mathrm { s i g n } ( \\cdot )$ is the sign function, $ { \\boldsymbol { { x } } } _ { k } ^ { \\prime }$ is the adversarial example obtained at the $k$ -th (for overall $K$ steps) perturbation step, $\\alpha$ is the step size, and $\\Pi _ { \\epsilon }$ is a projection (clipping) operation that projects the perturbation back onto the $\\epsilon$ -ball centered around $_ { \\textbf { \\em x } }$ if it goes beyond. ",
212
+ "bbox": [
213
+ 176,
214
+ 779,
215
+ 825,
216
+ 821
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Improved variants of SAT have also been proposed, such as the trade-off between adversarial robustness and natural accuracy (TRADES) [16], Dynamic AdveRsarial Training (DART) [17], Friendly Adversarial Training (FAT) [31], Misclassification Aware adveRsarial Training (MART) [18], Robust Self-Training (RST) [23], Unsupervised Adversarial Training (UAT) [32], Guided Adversarial Training (GAT) [33], Max-Margin AT [34], using Max-Mahalanobis Center (MMC) loss [35], accelerated AT [36–38], using pre-training [39], incorporating hypersphere embedding [40], self-progressing robust training [41], Adversarial Weight Perturbation (AWP) [19], Adversarial Distributional Training (ADT) [42], Channel-wise Activation Suppressing (CAS) [21], GeometryAware Instance-Reweighted Adversarial Training (GAIRAT) [43] and robustness distillation [44, 45]. Adversarial Training has also been found to cause robust overfitting [46], but it can be mitigated by smoothing techniques [47]. ",
223
+ "bbox": [
224
+ 174,
225
+ 827,
226
+ 825,
227
+ 912
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "",
234
+ "bbox": [
235
+ 174,
236
+ 90,
237
+ 826,
238
+ 161
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "2.2 Understanding Adversarially Trained DNNs ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 174,
248
+ 176,
249
+ 521,
250
+ 191
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Understanding the working mechanism of adversarial training has been a hot research area. For example, it has been found that adversarial training encourages the model to learn more robust features [20, 48], have good generative ability [49, 50], improve the model’s transferability to downstream tasks [51, 52] and improve performance on clean data [53]. It has also been found that using auxiliary training data with adversarial training can further improve adversarial robustness [22, 23], and that weight decay plays an important role in adversarial training [54]. Another important observation is that using WRNs instead of ResNets (RNs) can bring $\\sim 3 \\% { - } 5 \\%$ more robustness [16–18]. Other works also suggest that adversarial training requires deeper and wider models [15, 26, 55]. Also, the skip-connection operation used in WRN has been found can improve robustness for deeper architectures [56] and there exists a trade-off between depth and width for approximating natural functions [57]. On the other hand, there are also works showing that increasing the number of parameters for the same type of DNN architectures can only lead to limited robustness improvement [28, 58]; and wider networks may cause more perturbation instability [59]. ",
257
+ "bbox": [
258
+ 174,
259
+ 200,
260
+ 825,
261
+ 381
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Several recent works have applied neural architecture search (NAS) to search for more robust DNN architectures [60]. They found that, 1) densely connected cells result in improved robustness; and 2) under certain computational budget, adding convolution operations to direct connection edge is effective. Other works improve the NAS search strategy by searching on targeted capacity [61], maximizing certified lower bound [62], using the log-normal distribution to approximate the Lipschitz constant [63], using lower and upper confidence bounds in Bandit [64], or using perturbation-based regularization [65]. Another study on hand-crafted versus NAS-based architectures shows that, without adversarial training, NAS-based architectures are more robust for small-scale datasets and simple tasks than hand-crafted architectures, however, hand-crafted architectures are more robust than NAS-based architectures as the dataset size or the task complexity increases [66]. Note that NAS is extremely time-consuming, especially when applied with adversarial training. Previous works using NAS find optimal topological connections within the cell structure [60], but did not investigate depth/width configurations, which arguably has more impact on robustness (e.g., RNs vs. WRNs). In this work, we focus on fine-grained configuration exploration rather than blind search, which can produce more precise understandings of how depth and width affect robustness. ",
268
+ "bbox": [
269
+ 173,
270
+ 387,
271
+ 825,
272
+ 594
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "3 Wider and Deeper Models Increase Lipschitz Upper Bound ",
279
+ "text_level": 1,
280
+ "bbox": [
281
+ 174,
282
+ 613,
283
+ 699,
284
+ 631
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "It has been theoretically shown that high Lipschitzness (larger Lipschitz constant) corresponds to low stability of the model’s output to input perturbations [59]. However, adversarial training does require a larger capacity model (e.g., RN vs. WRN) [15], an empirical finding that goes against the theoretical expectation. In this section, we first theoretically show a trade-off between network capacity (width/depth) and the Lipschitz upper bound. In Section 4, we will empirically examine this trade-off and its relation to the improved adversarial robustness for larger capacity models. ",
291
+ "bbox": [
292
+ 174,
293
+ 643,
294
+ 825,
295
+ 727
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "The Lipschitz constant $L$ of a DNN measures the maximum rate of change in the output with the change in the input, and is closely related to adversarial robustness [4]. Formally, it is $\\| f _ { \\pmb \\theta } ( \\pmb x ) - \\bar { f } _ { \\pmb \\theta } ( \\pmb x ^ { \\prime } ) \\| \\le \\bar { L } \\| \\pmb x - \\pmb x ^ { \\prime } \\|$ . ",
302
+ "bbox": [
303
+ 176,
304
+ 733,
305
+ 825,
306
+ 776
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Theorem 1 (Lipschitz Constant Upper Bound of a Neural Network with Gaussian Distributed Weights). Consider an $n$ layer DNN $f$ , where the weight parameters $\\pmb \\theta$ are independent Gaussian random variables distributed as $\\mathcal { N } ( 0 , \\sigma _ { \\theta } ^ { 2 } )$ with $\\boldsymbol { \\sigma } _ { \\theta } ^ { 2 }$ denoting the variance of the Gaussian distribution, and where the activation functions are $I$ -Lipschitz. The expected Lipschitz constant of a DNN with hidden layer size $h$ is upper bounded by: ",
313
+ "bbox": [
314
+ 174,
315
+ 776,
316
+ 825,
317
+ 843
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/91f5aca5b3174b10cae1de0e5a0fd40cd6aca6ed46d2f8b0777986d413f519cd.jpg",
324
+ "text": "$$\nL ( f _ { \\pmb \\theta } ) \\leq \\prod _ { j = 1 } ^ { n } \\left( \\sqrt { h _ { j - 1 } } + \\sqrt { h _ { j } } \\right) \\cdot \\sigma _ { \\pmb \\theta _ { j } }\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 383,
328
+ 844,
329
+ 611,
330
+ 882
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Theorem 2. For a convolutional neural network $f$ , each layer’s convolution operation with feature map size $W \\times m \\times m$ and kernel size $k \\times k$ , where the weight parameters $\\pmb { \\theta }$ are independent Gaussian ",
337
+ "bbox": [
338
+ 173,
339
+ 883,
340
+ 821,
341
+ 911
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "random variables distributed as $\\mathcal { N } ( 0 , \\sigma _ { \\theta } ^ { 2 } )$ , the expected Lipschitz constant is upper bounded by: ",
348
+ "bbox": [
349
+ 171,
350
+ 90,
351
+ 802,
352
+ 107
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/9c6f4d0c76fd5a335d1cc1d2e28c982bdc69bc9a6b1d016a7793a37cf76f2809.jpg",
359
+ "text": "$$\nL ( f _ { \\pmb \\theta } ) \\leq \\prod _ { j = 1 } ^ { n } ( m _ { j } \\sqrt { W _ { j - 1 } } + ( m _ { j } - k _ { j } + 1 ) \\sqrt { W _ { j } } ) \\cdot \\sigma _ { { \\pmb \\theta } _ { j } }\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 326,
363
+ 109,
364
+ 668,
365
+ 148
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "The proof for Theorem 1 and 2 is inspired by [67–69] and can be found in Appendix A.1. This establishes a connection between the upper bound on the Lipschitz constant of a feed-forward DNN with $n$ layers and width of $h _ { j }$ for each layer. For the $j$ -th layer of convolution operations, the Lipschitz constant upper bound increases with its input dimension $( W _ { j - 1 } \\times m _ { j } \\times m _ { j } )$ and the number of output channels $W _ { j }$ . More simply, it is upper-bounded by the variance of the weight matrix and the input representation’s dimension plus the output representation’s dimension. For the entire network, the Lipschitz constant upper bound grows exponentially with the depth. This suggests that wider and deeper models have a relatively larger change of the output due to the changes in the input, i.e., lower adversarial robustness. ",
372
+ "bbox": [
373
+ 173,
374
+ 156,
375
+ 825,
376
+ 281
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Several works attempt to regularize the network’s Lipschitz constant by using Parseval tight frames on the weight matrixes [70], enforcing constraints on the singular values of the weight matrixes [71], or via a Lipschitz-margin training [72]. However, a follow-up work points out that there exist both experimental and theoretical limitations for the above approaches [73]. Whilst the Lipschitz constant may not be used as a regularization, it has been widely adopted for analyzing the stability and adversarially robustness of DNNs [4, 59, 74]. ",
383
+ "bbox": [
384
+ 173,
385
+ 287,
386
+ 825,
387
+ 372
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "4 Exploring Adversarially Robust Architectures ",
394
+ "text_level": 1,
395
+ "bbox": [
396
+ 173,
397
+ 390,
398
+ 591,
399
+ 407
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "Our exploration of the relationship between DNN architectural configuration, Lipschitzness (size of the Lipschitz constant) and adversarial robustnessare starts with a fine-controlled grid search on the width/depth of the WideResNet (WRN) [27]. In Sections 4.1 and 4.2, we show our exploration results with depth and width, respectively. Based on these results, a pattern of robust depth/width configuration is discovered. In Section 4.4, we examine a linear scaling effect with the discovered robust configuration. In Section 4.5, we provide an analysis on the trade-off between model capacity and Lipschitzness, and the key factors contributing to improved adversarial robustness. ",
406
+ "bbox": [
407
+ 173,
408
+ 420,
409
+ 825,
410
+ 518
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "image",
416
+ "img_path": "images/2f9baf00f136e5769fb34335b7fe2d63f3c30fcb5a6832f987221d1bd62d1435.jpg",
417
+ "image_caption": [
418
+ "Figure 1: (a): Illustration of WRN-34-10 denoted as $^ { \\mathrm { d } } 5 – 5 – 5$ . (b): Grid search results on different depth configurations. The three-digit numbers highlight the depth configurations of only those networks that have either a low $\\mathrm { < = 5 0 . 0 \\% }$ ) or a high $> = 5 2 . 5 \\%$ ) adversarial robustness (against $\\mathrm { P G D ^ { 2 0 } }$ ). "
419
+ ],
420
+ "image_footnote": [],
421
+ "bbox": [
422
+ 222,
423
+ 531,
424
+ 774,
425
+ 724
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Base architecture. We take the standard WRN-34-10 designed for CIFAR-10 as our base architecture. Figure 1a provides an overview of the architecture and the detailed configurations are summarized in Appendix Table 3. The standard WRN architecture consists of 3 stages (groups) of residual blocks and 4 fixed convolutional layers. Here, we focus on the configuration of the 3 stages, which are the key components of the network. We denote the depth and width configuration for the $i$ -th $( i \\in \\{ 1 , 2 , 3 \\} )$ ) stage as $D _ { i }$ and $W _ { i }$ , respectively. For standard WRN-34-10, $D _ { 1 / 2 / 3 } = 5$ (denoted as $^ { \\mathrm { d } } 5 – 5 – 5 )$ and $W _ { 1 / 2 / 3 } = 1 0$ (denoted as $^ { \\mathrm { w } } 1 0 \\mathrm { - } 1 0 \\mathrm { - } 1 0 $ ). For the rest of this paper, we use $^ { \\mathrm { d } } D _ { 1 } { - } D _ { 2 } { - } D _ { 3 }$ and $^ { \\mathrm { w } } W _ { 1 ^ { - } } W _ { 2 ^ { - } } W _ { 3 }$ to represent the exact width and depth configurations. We explore the stage-wise depth and width configurations while keeping other configurations unchanged. ",
432
+ "bbox": [
433
+ 173,
434
+ 784,
435
+ 825,
436
+ 912
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "Experimental settings. We train all explored networks on CIFAR-10 dataset [1] using the standard adversarial training (SAT) with Projected Gradient Descent (PGD) [15] (see definition in equation (2)). Following the typical adversarial training setting, we constrain the $L _ { \\infty }$ -norm of the maximum adversarial perturbation to $\\epsilon = 8 / 2 5 5$ , and use 10-step PGD $( { \\mathrm { P G D } } ^ { 1 0 } )$ with step size $\\alpha = 2 / 2 5 5$ . After training, we test the robustness of the network on PGD adversarial examples crafted on the entire test set of CIFAR-10, under the same perturbation constraint $\\epsilon = 8 / 2 5 5$ . For evaluation, we use the 20-step PGD $( \\mathrm { P G D ^ { 2 0 } } )$ with step size $\\bar { \\alpha } = \\epsilon / 1 0$ . The robustness is measured by the network’s accuracy on the $\\mathrm { P G D ^ { 2 0 } }$ test adversarial examples. More details can be found in Appendix B. ",
443
+ "bbox": [
444
+ 174,
445
+ 90,
446
+ 826,
447
+ 203
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "4.1 Exploring Different Depths ",
454
+ "text_level": 1,
455
+ "bbox": [
456
+ 174,
457
+ 223,
458
+ 401,
459
+ 238
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "We first explore different depth configurations based on the base WRN-34-10 architecture introduced above. For each of the three stages (e.g., Stage-1, Stage-2, Stage-3), we explore different depth $D _ { i } \\in \\{ 1 , 3 , 5 , 7 , 9 \\}$ . Since each stage has 5 possible depth configurations, the total number of all possible depth configuration for all 3 stages are 125 (5x5x5, permutation with replacement). We first perform a grid search on all the 125 depth configurations, then take a closer look at the impact at each individual stage. The adversarial robustness of the 125 networks (adversarially trained using SAT) against $\\mathrm { P G D ^ { 2 0 } }$ test adversarial examples is plotted in Figure 1b. Note that the depth configuration of standard WRN-34-10 is $^ { \\mathrm { d } } 5 – 5 – 5$ . By investigating the robustness scores along the $\\mathbf { X }$ -axis (number of parameters), we find that more parameters does not necessarily lead to improved robustness. For example, the networks with more than 80M (million) parameters are even less robust than some of those with only 20M parameters. Given the same level of parameters, for example ${ \\sim } 2 0 \\mathbf { M }$ , different depth configurations can lead to $\\sim 6 \\%$ difference in robustness. This implies that, under the same parameter budget, there may exist an optimal depth configuration for adversarial robustness. ",
466
+ "bbox": [
467
+ 173,
468
+ 250,
469
+ 825,
470
+ 430
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Next, we take a closer look at the above grid search result and investigate the common characteristics of the top-5 most robust networks, the details of which are reported in Figure 2d. Interestingly, we find that the top-5 networks all have a significantly reduced depth of 1 or 3 at the last stage (i.e., Stage-3). This trend indicates that reducing model capacity at the last (deepest) stage can actually improve robustness. The other observation is that, having more residual blocks (higher depth) at the two shallow stages (i.e., Stage-1/2) can also improve robustness. For example, the top-2 networks have 9 residual blocks at Stage-1, and all top-4 networks have 9 or at least 7 residual blocks at Stage-2. This suggests that capacity is more important for the shallow layers. We conjecture this is because the network still needs sufficient capacity to learn the augmented examples by adversarial training. Note that the best performing model $- 9 - 7 - 1$ only uses half of the parameters of the standard WRN-34-10 (d5-5-5), which is only ranked the 45-th out of all 125 models. ",
477
+ "bbox": [
478
+ 173,
479
+ 435,
480
+ 825,
481
+ 588
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "image",
487
+ "img_path": "images/591388548c726a1145488d9a8b95e16b1587118fa8538106e5fb4c9b6f0b9ecc.jpg",
488
+ "image_caption": [
489
+ "Figure 2: (a-c) The impact of depth on adversarial robustness at different stages. When studying one stage, the depths of other two stages are fixed to 5. (d) Clean accuracy and adversarial robustness of the top-5 most robust depth configurations discovered in the grid search. All networks are trained using SAT [15] on CIFAR-10. Robustness evaluated using $\\mathrm { P G D ^ { 2 0 } }$ . d5-5-5 is the depth configuration of the baseline WRN-34-10 model. "
490
+ ],
491
+ "image_footnote": [],
492
+ "bbox": [
493
+ 186,
494
+ 604,
495
+ 812,
496
+ 696
497
+ ],
498
+ "page_idx": 4
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "We further explore the distinctive impacts of depth on adversarial robustness at different stages via a control study. Specifically, we add or remove residual blocks from each individual stage of WRN-34-10 (d5-5-5) while keeping the other two stages fixed to depth 5. The robustness results are shown in Figure 2a-2c. As can be observed, reducing depth at the first two stages constantly degrades the robustness, however, it is the other way around at the last stage (i.e., Stage-3). In relation to previous understanding that higher model capacity can lead to more robust models [28, 58], our finding indicates that it is true for the shallow layers but quite the opposite for the deeper layers. In other words, more parameters can improve adversarial robustness only when added to the shallow layers (e.g., layers in Stage-1 and Stage-2). ",
503
+ "bbox": [
504
+ 174,
505
+ 786,
506
+ 825,
507
+ 911
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "4.2 Exploring Different Widths ",
514
+ "text_level": 1,
515
+ "bbox": [
516
+ 174,
517
+ 90,
518
+ 403,
519
+ 106
520
+ ],
521
+ "page_idx": 5
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "We further explore whether width also has a similar effect as depth. The standard WRN-34-10 has a width upscaling factor 10 applied to each stage, that is, $^ { \\mathrm { w } } 1 0 \\mathrm { - } 1 0 \\mathrm { - } 1 0$ . Based on our above findings with the depth in Section 4.1, here we skip the grid search and directly investigate the impact of width at different stages. At each stage, we investigate different width configurations $W _ { i } \\in \\{ 2 , 4 , 6 , 8 , 1 0 \\}$ for $i = { 1 , 2 , 3 }$ . ",
526
+ "bbox": [
527
+ 173,
528
+ 119,
529
+ 825,
530
+ 189
531
+ ],
532
+ "page_idx": 5
533
+ },
534
+ {
535
+ "type": "image",
536
+ "img_path": "images/a6e0d6bd4eebb11e4655603cc36f37e7e3881fc56090e66da6c3fba5eb7cf113.jpg",
537
+ "image_caption": [
538
+ "Figure 3: (a-c): The impact of width on adversarial robustness at different stages. When studying one stage, the widths of other two stages are fixed to 10. (d): Clean accuracy and adversarial robustness of the networks obtained by reducing width in the last stage (i.e., Stage-3). All networks are trained using SAT [15] on CIFAR-10. Robustness is evaluated using $\\mathrm { P G D ^ { 2 0 } }$ . w10-10-10 is the depth configuration of the baseline WRN-34-10 model. "
539
+ ],
540
+ "image_footnote": [],
541
+ "bbox": [
542
+ 183,
543
+ 208,
544
+ 816,
545
+ 306
546
+ ],
547
+ "page_idx": 5
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "The robustness results are illustrated in Figure 3. We find that width reduction generally has a similar effect as depth reduction: reducing width at the first two stages harms robustness until $W _ { \\frac { 1 } { 2 } / 2 } = 4$ , however, the same operation can improve robustness when applied to the last stage. This confirms the importance of high capacity at the shallow layers and low capacity at the deeper layers. Compared to depth reduction, we find that, with the same amount of robustness improvement, width reduction (at the last stage) can lead to smaller models. For example, $^ { \\mathrm { w } } 1 0 ^ { . } 1 0 ^ { . } 4$ (the second row in Figure 3d) achieves a similar robustness $( \\sim 5 4 \\% )$ as $^ { \\mathrm { d } } 9 . 7 . 1$ (the first row in Figure 2d). However, the number of parameters of the $^ { \\mathrm { w } } 1 0 ^ { \\phantom { - } } 1 0 ^ { \\phantom { - } } $ configuration is only 17.05M, which is much less than the 22.19M of the d9-7-1 configuration. ",
552
+ "bbox": [
553
+ 174,
554
+ 409,
555
+ 825,
556
+ 534
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Another interesting observation is that adversarial robustness does not change much if we reduce the width from $W _ { 1 / 2 } = 4$ to $W _ { 1 / 2 } = 2$ at Stage-1 or Stage-2, whereas the same reduction at Stage-3 hurts robustness. This is somewhat expected since, on one hand, the robustness might not be affected much unless a sufficient number of filters (channels) are removed, which is different to depth that configures the entire residual block. On the other hand, if too many filters are removed at the last stage, the network may lose the capacity required for proper learning, while in our depth exploration, there exists at least one residual block $D _ { 3 } \\geq 1 \\underline { { \\cdot } }$ ) at the last stage. ",
563
+ "bbox": [
564
+ 174,
565
+ 540,
566
+ 825,
567
+ 637
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "4.3 Exploring Depth-Width Combinations ",
574
+ "text_level": 1,
575
+ "bbox": [
576
+ 176,
577
+ 661,
578
+ 480,
579
+ 676
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Although reducing capacity at the last stage via either depth or width can improve robustness, there exists a limit. For example, if we reduce depth and width at the same time or too much of the width, the network may end up with insufficient capacity for proper learning. We first explore an extreme case that removes the entire Stage-3 as $\\mathrm { d } 5 . { \\dot { 5 } } { - } 0$ . This ends up with $2 \\%$ less robustness than baseline WRN-34-10. This result verifies the necessity of Stage-3. We then reduce depth and width simultaneously by setting the depth to $^ { \\mathrm { d } } 5 – 5 – 1$ and width to $^ { \\mathrm { w } } 1 0 – 1 0 – 2$ . This produces a new network with a similar robustness $( \\sim 5 2 \\% )$ ) to $\\mathrm { P G D ^ { 2 0 } }$ as WRN-34-10. Note that, in this case, comparing to WRN-34-10, the number of parameters has been reduced by $70 \\%$ . We then explore all the 25 possible depth-width combinations between the top-5 depth and width configurations in Figure 2d and 3d, respectively. Surprisingly, we find that none of these models can achieve better robustness than simply reducing the width to $^ { \\mathrm { w } } 1 0 ^ { . } 1 0 ^ { . } 4$ . These models achieved the same level of robustness $( \\sim 5 4 \\% )$ ), but require more computations (FLOPS). For instance, the network with depth $^ { \\mathrm { d } } 7 . 9 . 3$ and width $^ { \\mathrm { w } } 1 0 { - } 1 0 { - } 4$ requires 2 times more FLOPS than WRN-34-10. This does not benefit adversarial training since it is known to be time-consuming. Although a more fine-grained (with decimals) exploration of the width configuration may lead to even more robust WRN models, here we simply take the $^ { \\mathrm { w } } 1 0 { - } 1 0 { - } 4$ configuration as our choice of the optimally-reduced WRN. ",
586
+ "bbox": [
587
+ 173,
588
+ 690,
589
+ 825,
590
+ 911
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "4.4 Scaling with the Discovered Configuration ",
597
+ "text_level": 1,
598
+ "bbox": [
599
+ 176,
600
+ 90,
601
+ 506,
602
+ 106
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Previous works [15, 16] have shown that a wider network like WRN-34-10 can be trained to be more robust than a standard ResNet like RN-34. Here, we investigate if we can obtain more robust models by scaling the discovered width configuration $^ { \\mathrm { w } } 1 0 ^ { \\phantom { - } } 1 0 ^ { \\phantom { - } } 4$ . We test different scaling ratios $\\gamma \\in [ 0 . 2 5 , 2 . 0 ]$ , and show the robustness results in Table 1. Compared to $^ { \\mathrm { w } } 1 0 ^ { \\phantom { - } } 1 0 ^ { \\phantom { - } } $ $( \\gamma = 1 . 0 )$ ), scaling down $\\gamma$ to 0.5 or 0.25 decreases the robustness while scaling up $\\gamma$ can further improve the robustness, although the improvement become less significant when $\\gamma$ goes above 1.5. Note that the network with $\\gamma = 0 . 5$ has 10 times fewer parameters than the baseline WRN-34-10, but can already achieve a better robustness against $\\mathrm { P G D ^ { 2 0 } }$ . The best robustness is achieved at $\\gamma = 2 . 0$ , i.e., $^ { \\mathrm { w } } 2 0 – 2 0 – 8$ . We denote the corresponding WRN-34 network as WRN-34-R, more details can be found in Appendix Table 3. In Section 5, we will apply the $^ { \\mathrm { w } } 1 0 ^ { \\phantom { - } } 1 0 ^ { \\phantom { - } } 4$ configuration rule to more network architectures and evaluate their (along with WRN-34-R) adversarial robustness more systematically. ",
609
+ "bbox": [
610
+ 173,
611
+ 116,
612
+ 531,
613
+ 267
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "table",
619
+ "img_path": "images/590c848726be0c34f34a0937d0e29df06c5636019ff6290a6ed5f9401c796ce6.jpg",
620
+ "table_caption": [
621
+ "Table 1: Clean accuracy and adversarial robustness for scaled $^ { \\mathrm { w } } 1 0 – 1 0 – 4$ configurations. All networks are trained using SAT [15] on CIFAR-10 and evaluated using $\\mathrm { P G D ^ { 2 0 } }$ . "
622
+ ],
623
+ "table_footnote": [],
624
+ "table_body": "<table><tr><td>Scaling Ratio</td><td>Params (M)</td><td>Clean (%)</td><td>PGD20 (%)</td></tr><tr><td>γ= 0.25</td><td>1.07</td><td>80.61</td><td>50.90</td></tr><tr><td>γ= 0.5</td><td>4.27</td><td>84.31</td><td>54.07</td></tr><tr><td>γ=1.0</td><td>17.05</td><td>87.00</td><td>54.99</td></tr><tr><td>γ= 1.5</td><td>38.33</td><td>87.68</td><td>55.33</td></tr><tr><td>Y=2.0</td><td>68.12</td><td>88.12</td><td>55.35</td></tr></table>",
625
+ "bbox": [
626
+ 542,
627
+ 175,
628
+ 823,
629
+ 266
630
+ ],
631
+ "page_idx": 6
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "",
636
+ "bbox": [
637
+ 174,
638
+ 268,
639
+ 825,
640
+ 338
641
+ ],
642
+ "page_idx": 6
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "4.5 Empirical Understanding ",
647
+ "text_level": 1,
648
+ "bbox": [
649
+ 174,
650
+ 353,
651
+ 392,
652
+ 368
653
+ ],
654
+ "page_idx": 6
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "We apply two closely related metrics, including Perturbation Stability [59] and Empirical Lipschitz [74] to explore the distinctive impact of the deeper layers to adversarial robustness. They measure the output stability of the neural network. ",
659
+ "bbox": [
660
+ 176,
661
+ 377,
662
+ 823,
663
+ 420
664
+ ],
665
+ "page_idx": 6
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "Perturbation Stability. Adversarial robustness is typically measured by the percentage of correctly classified adversarial examples, which can be further decomposed into the set of correct clean examples intersect with stable examples [59]. Correct clean examples refer to clean examples that can be correctly classified by the model $\\{ ( \\pmb { x } , y ) \\sim \\mathbb { D } , f _ { \\pmb { \\theta } } ( \\pmb { x } ) \\ \\stackrel { \\ } { = } \\ y \\}$ . Stable examples are defined as, $\\{ \\pmb { x } : \\forall \\pmb { x } ^ { \\prime } \\in \\mathcal { X } , f _ { \\pmb { \\theta } } ( \\pmb { x } ) = f _ { \\pmb { \\theta } } ( \\pmb { x } ^ { \\prime } ) \\}$ , where $\\mathcal { X }$ is the domain of the $\\epsilon$ -ball around $_ { \\textbf { \\em x } }$ . This perturbation stability measures the fraction of examples whose outputs cannot be adversarially perturbed. While many factors can affect the model’s performance on the correct clean examples such as the generalization capability of the model, the perturbation stability only measures if adversarial perturbations can change the prediction of the output. We apply this metric to understand the role of neural network architecture in adversarial robustness. More specifically we are interested to find out whether the improved robustness is a result of improved generalization, stability or both. ",
670
+ "bbox": [
671
+ 173,
672
+ 426,
673
+ 826,
674
+ 579
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Empirical Lipschitz constant. The empirical Lipschitz constant is defined as [74]: ",
681
+ "bbox": [
682
+ 176,
683
+ 584,
684
+ 720,
685
+ 599
686
+ ],
687
+ "page_idx": 6
688
+ },
689
+ {
690
+ "type": "equation",
691
+ "img_path": "images/85e8eee6745e75f1d447a7cd9f66d36dc87356e2cdf3f06abb5b0b5cb5aece6e.jpg",
692
+ "text": "$$\n\\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\operatorname* { m a x } _ { \\pmb { x } ^ { \\prime } \\in \\mathcal { X } } \\frac { \\| f _ { \\pmb { \\theta } } ( \\pmb { x } _ { i } ) - f _ { \\pmb { \\theta } } ( \\pmb { x } _ { i } ^ { \\prime } ) \\| _ { 1 } } { \\| \\pmb { x } _ { i } - \\pmb { x } _ { i } ^ { \\prime } \\| _ { \\infty } } ,\n$$",
693
+ "text_format": "latex",
694
+ "bbox": [
695
+ 393,
696
+ 602,
697
+ 602,
698
+ 638
699
+ ],
700
+ "page_idx": 6
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "where $\\mathcal { X }$ is the domain of the $\\epsilon$ -ball around $_ { \\textbf { \\em x } }$ and $\\mathbf { x } ^ { \\prime }$ can be generated by an adversarial attack (i.e., $\\mathrm { P G D ^ { 2 0 } }$ ). A lower value of the empirical Lipschitz constant implies a smoother and more adversarially robust classifier. For our analysis, we measure the empirical Lipschitz constant of the functions represented by the output layers of different residual blocks or the entire network (logits output). e.g., for block-5, we measure the maximum rate of change in its representation output between clean $( { \\pmb x } )$ and adversarial $( { \\pmb x } ^ { \\prime } )$ inputs. ",
705
+ "bbox": [
706
+ 173,
707
+ 640,
708
+ 826,
709
+ 724
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "image",
715
+ "img_path": "images/6ac9f1800b40e21419d866a7203da0c6c55573dc35565fd9e790a026b8ad5f7c.jpg",
716
+ "image_caption": [
717
+ "Figure 4: The change of perturbation stability and empirical Lipschitz constant when (a) depth of Stage-3 is reduced, (b) width of Stage-3 is reduced, or (c) linear scaling with $\\gamma$ and $^ { \\mathrm { w } } 1 0 ^ { \\phantom { - } } 1 0 ^ { \\phantom { - } } 4$ . "
718
+ ],
719
+ "image_footnote": [],
720
+ "bbox": [
721
+ 192,
722
+ 728,
723
+ 805,
724
+ 848
725
+ ],
726
+ "page_idx": 6
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "The Trade-off Between Capacity and Lipschitzness. We compute the above two metrics on the test set of CIFAR-10 for models with different depth and width configurations explored in Section 4.1 and 4.2. The results are illustrated in Figure 4, where the empirical Lipschitz constant is computed for the entire network. We can observe that, when depth or width for the given network is reduced, the empirical Lipschitz constant is also reduced, and the perturbation stability improves. This is consistent with our theoretical analysis in the Lipschitz constant upper bound. As shown in Figure 4b and 4c, this observation is more obvious for the width reduction. There exists a trade-off between the network capacity and Lipschitzness. For example, with $\\gamma = 0 . 2 5$ scaling, the network achieves a much lower Lipschitzness and better stability, however, it also significantly reduces the clean accuracy. This indicates that adversarial training does require larger capacity models and a better trade-off can be achieved by balancing model capacity and Lipschitzness using proper architectural reduction. ",
731
+ "bbox": [
732
+ 173,
733
+ 883,
734
+ 821,
735
+ 911
736
+ ],
737
+ "page_idx": 6
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "",
742
+ "bbox": [
743
+ 173,
744
+ 90,
745
+ 825,
746
+ 217
747
+ ],
748
+ "page_idx": 7
749
+ },
750
+ {
751
+ "type": "image",
752
+ "img_path": "images/8f0507b8575bf1878004dd9d1b5ab89ae137a31f57b4eb97d38fd773dc6beac1.jpg",
753
+ "image_caption": [],
754
+ "image_footnote": [],
755
+ "bbox": [
756
+ 403,
757
+ 229,
758
+ 578,
759
+ 309
760
+ ],
761
+ "page_idx": 7
762
+ },
763
+ {
764
+ "type": "image",
765
+ "img_path": "images/1150a3d5e465a31af54c3acc12b01307d78309e86f0793115d7537c5460196a9.jpg",
766
+ "image_caption": [],
767
+ "image_footnote": [],
768
+ "bbox": [
769
+ 601,
770
+ 229,
771
+ 776,
772
+ 309
773
+ ],
774
+ "page_idx": 7
775
+ },
776
+ {
777
+ "type": "image",
778
+ "img_path": "images/97c2d9d09aa79eece94769c1ede44826b43d79cf301db049130142b32066a6d7.jpg",
779
+ "image_caption": [
780
+ "(a) Reducing width at Stage-1. (b) Reducing width at Stage-2. (c) WRN-34-12 and WRN-34-R Figure 5: Empirical Lipschitz constant of the output layers of different residual blocks (bins 1-15) or the entire network (bin 16). All experiments are run on CIFAR-10. "
781
+ ],
782
+ "image_footnote": [],
783
+ "bbox": [
784
+ 205,
785
+ 229,
786
+ 379,
787
+ 310
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "In Figure 5, we plotted the empirical Lipschitz constant of the output layer of each residual block or the entire network. The $f _ { \\pmb \\theta } ( \\pmb x )$ in equation (3) is replaced with the output of each residual block $f _ { \\pmb { \\theta } _ { j } } ( \\pmb { x } )$ (from input to block output), and the last (16-th) bin is the empirical Lipschitz constant of the entire network (from input to logits). From Figure 5, we find that: 1) within each stage, the empirical Lipschitz increases with depth; 2) when transitioning from one stage to the next, the spatial dimension decreases while the empirical Lipschitz decreases; 3) comparing WRN-34-12 with WRN-34-R (Figure 5c), the empirical Lipschitz increase/decrease with the network width. This provides empirical results for our theoretical analysis in Section 3. ",
794
+ "bbox": [
795
+ 173,
796
+ 358,
797
+ 825,
798
+ 469
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Reducing Parameters at Deeper Layers Improves both Perturbation Stability and Lipschitzness. Based on our theoretical analysis, reducing the width at Stage-1 and Stage-2 should improve the Lipschitzness of the corresponding stage as well as the entire network. However, empirically, it is true for the corresponding stage but not necessarily for the entire network. This is because the theoretical analysis in Section 3 only considers the interplay between two adjacent layers (or blocks), not including that of the non-adjacent layers. The empirical results in Figure 5 can fill this gap. ",
805
+ "bbox": [
806
+ 173,
807
+ 476,
808
+ 825,
809
+ 559
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Specifically, Stage-1 width reduction (Figure 5a) lowers the Lipschitzness of Stage-1 blocks but not the overall Lipschitzness. Stage-2 width reduction (Figure 5b) can improve both Stage-2 and the overall Lipschitzness but fails to improve clean accuracy, perturbation stability nor adversarial robustness. WRN-34-R in Figure 5c marks our discovered reduction and scaling rule. Compared with standard WRNs, WRN-34-R not only reduces the width of Stage-3 (decreasing Lipschitzness) but also increases the widths of Stage-1 and Stage-2 (increasing Lipschitzness). Figure 5c shows that the increased Lipschitzness at Stage-1 and Stage-2 of WRN-34-R can be effectively mitigated at Stage-3, leading to decreased overall Lipschitzness and improved robustness (see Table 4.4). This also results in higher clean accuracy and perturbation stability (Figure $_ \\mathrm { 4 c }$ ). We conjecture this is because Stage-3 (the last stage) is closer to the final output, thus has a more direct impact on the overall Lipschitzness. These empirical results provide a more in-depth understanding of the impact of width and depth configurations to the overall Lipschitzness, perturbation stability and adversarial robustness. ",
816
+ "bbox": [
817
+ 174,
818
+ 564,
819
+ 825,
820
+ 731
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "5 Adversarial Robustness Evaluation ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 173,
830
+ 748,
831
+ 500,
832
+ 766
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "In this section, we apply the discovered $^ { \\mathrm { w } } 1 0 { - } 1 0 { - } 4$ width configuration rule to VGG, DenseNet (DN), DNNs discovered by NAS, WRN-34-R $^ { \\mathrm { w } } 1 0 – 1 0 – 4$ scaled by $\\gamma = 2 . 0$ ), and evaluate their robustness with various adversarial attacks and defence methods on CIFAR [1] in the white-box setting. Additional results for CIFAR-10 black-box and ImageNet [75] using FastAT [37] can be found in Appendix D. ",
839
+ "bbox": [
840
+ 174,
841
+ 779,
842
+ 825,
843
+ 849
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Experimental Settings. We consider VGG-11 [76], DenseNet-121 (DN-121) [77] and a network found by DARTS [78] with 11 cells. We denote the optimized VGG-11, DN-121 and DARTS networks as VGG-11-R, DN-121-R and DARTS-R (see Appendix B.2 for details), respectively. For a fair comparison between the discovered WRN-34-R (scaled by $\\gamma = 2 . 0$ ) and the standard ",
850
+ "bbox": [
851
+ 176,
852
+ 854,
853
+ 825,
854
+ 911
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "WRN, we upscale WRN-34-10 to WRN-34-12 to make sure the two models have a similar amount of parameters. We train all networks using 4 adversarial training methods: Standard Adversarial Training (SAT) [15], TRADES [16], Misclassification Aware adveRsarial Training (MART) [18] and Robust Self-Training (RST) with 500K additional data [23]. More details are in Appendix B.1. ",
861
+ "bbox": [
862
+ 173,
863
+ 90,
864
+ 825,
865
+ 147
866
+ ],
867
+ "page_idx": 8
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Table 2: White-box robustness results on CIFAR-10 and CIFAR-100. 500K: Additional data used as in [23]. Params: number of parameters. SAT: Adversarial Training [15]; TRADES [16]; MART [18]; GAMA100: 100-step GAMA attack [33]; AA: AutoAttack [30]; $\\mathrm { C W } _ { \\infty }$ : $L _ { \\infty }$ version CW attack [79] optimized by PGD; -R: reconfigured networks following our discovered robust architectural configuration; Last: Results evaluated at the last checkpoint. Best: Results evaluated at the best checkpoint according to $\\mathrm { P G D ^ { 2 0 } }$ . The best results are in bold. ",
872
+ "bbox": [
873
+ 173,
874
+ 154,
875
+ 825,
876
+ 238
877
+ ],
878
+ "page_idx": 8
879
+ },
880
+ {
881
+ "type": "table",
882
+ "img_path": "images/78f9b35d501c67951cfd12501c6adfcfd0f76a990cb88f5b5f51f43c4aab9a24.jpg",
883
+ "table_caption": [],
884
+ "table_footnote": [],
885
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">Model</td><td rowspan=\"2\">Method</td><td rowspan=\"2\">Params (M)</td><td colspan=\"2\">Clean (%)</td><td colspan=\"2\">FGSM (%)</td><td colspan=\"2\">PGD20 (%)</td><td colspan=\"2\">GAMA100 (%)</td><td colspan=\"2\">CW (%)</td><td colspan=\"2\">AA (%)</td></tr><tr><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td><td>Last</td><td>Best</td></tr><tr><td rowspan=\"10\">CIFAR-10</td><td>VGG-11</td><td>SAT</td><td>9.23</td><td>79.24</td><td>77.84</td><td>55.98 57.35</td><td>56.68</td><td>42.62</td><td>45.46</td><td>38.59</td><td>40.65</td><td>45.45</td><td>46.29</td><td>37.21 38.44</td><td>39.84</td></tr><tr><td>VGG-11-R</td><td>SAT</td><td>5.83</td><td>79.63</td><td>77.34</td><td></td><td>57.11</td><td>43.93</td><td>45.97</td><td>39.71</td><td>41.31</td><td>46.49</td><td>47.23</td><td></td><td>40.65</td></tr><tr><td>DN-121</td><td>SAT</td><td>6.96</td><td>86.87</td><td>86.07</td><td>65.56</td><td>66.58</td><td>51.67</td><td>54.79</td><td>48.60</td><td>51.00</td><td>52.03</td><td>54.00</td><td>47.16</td><td>50.34</td></tr><tr><td>DN-121-R</td><td>SAT</td><td>6.00</td><td>87.22</td><td>86.01</td><td>67.12</td><td>67.20</td><td>52.52</td><td>55.16</td><td>49.37</td><td>51.44</td><td>53.07</td><td>54.67</td><td>47.75</td><td>50.54</td></tr><tr><td>DARTS</td><td>SAT</td><td>6.58</td><td>86.76</td><td>86.55</td><td>64.48</td><td>67.10</td><td>49.44</td><td>54.23</td><td>46.52</td><td>50.74</td><td>52.03</td><td>54.00</td><td>45.16</td><td>49.98</td></tr><tr><td>DARTS-R</td><td>SAT</td><td>2.53</td><td>87.20</td><td>85.79</td><td>66.74</td><td>66.61</td><td>52.36</td><td>55.01</td><td>48.71</td><td>50.94</td><td>53.07</td><td>54.67</td><td>47.75</td><td>50.54</td></tr><tr><td>WRN-34-12</td><td>SAT</td><td>66.46</td><td>86.71</td><td>87.20</td><td>64.06</td><td>66.26</td><td>49.92</td><td>53.09</td><td>47.45</td><td>50.40</td><td>52.23</td><td>53.58</td><td>46.06</td><td>49.18</td></tr><tr><td>WRN-34-R</td><td>SAT</td><td>68.12</td><td>87.62</td><td>87.85</td><td>66.23</td><td>68.15</td><td>51.08</td><td>55.35</td><td>48.45</td><td>51.36</td><td>52.42</td><td>54.57</td><td>46.75</td><td>50.03</td></tr><tr><td>WRN-34-12</td><td>TRADES</td><td>66.46</td><td>85.84</td><td>84.59</td><td>65.70</td><td>66.85</td><td>53.02</td><td>56.01</td><td>49.60</td><td>52.35</td><td>53.35</td><td>54.72</td><td>48.48</td><td>51.83</td></tr><tr><td>WRN-34-R</td><td>TRADES</td><td>68.12</td><td>86.77</td><td>86.02</td><td>67.99</td><td>68.49</td><td>55.15</td><td>57.66 57.95</td><td>51.92</td><td>53.86</td><td>55.41</td><td>56.30 54.61</td><td>50.90</td><td>53.46</td></tr><tr><td></td><td>WRN-34-12</td><td>MART</td><td>66.46</td><td>85.98</td><td>82.62</td><td>66.85</td><td>67.00</td><td>54.30</td><td></td><td>49.58</td><td>52.20</td><td>52.29</td><td></td><td>47.68</td><td>51.21</td></tr><tr><td>CIFAR-10</td><td>WRN-34-R</td><td>MART</td><td>68.12</td><td>86.09</td><td>83.69</td><td>68.79</td><td>68.18</td><td>56.31</td><td>59.13</td><td>51.40</td><td>53.22</td><td>54.20</td><td>55.44</td><td>49.90</td><td>52.48</td></tr><tr><td>+500K</td><td>WRN-34-12</td><td>RST</td><td>66.46</td><td>90.52</td><td>90.36</td><td>76.01</td><td>76.02</td><td>65.52</td><td>65.56</td><td>61.67</td><td>61.70</td><td>64.30</td><td>64.26</td><td>60.90</td><td>60.96</td></tr><tr><td rowspan=\"2\"></td><td>WRN-34-R</td><td>RST</td><td>68.12</td><td>90.73</td><td>90.56</td><td>76.51</td><td>76.44</td><td>66.46</td><td>66.51</td><td>62.38</td><td>62.49</td><td>65.12</td><td>65.10</td><td>61.49</td><td>61.56</td></tr><tr><td>WRN-34-12</td><td>SAT</td><td>66.53</td><td>59.63</td><td>60.64</td><td>33.67</td><td>37.28</td><td>24.50</td><td>27.61</td><td>23.38</td><td>24.95</td><td>43.78</td><td>42.02</td><td>22.27</td><td>24.42</td></tr><tr><td rowspan=\"6\">CIFAR-100</td><td>WRN-34-R</td><td>SAT</td><td>68.16</td><td>61.17</td><td>61.33</td><td>35.00</td><td>38.72</td><td>25.03</td><td>29.02</td><td>23.38</td><td>25.70</td><td>43.52</td><td>41.46</td><td>22.72</td><td>25.20</td></tr><tr><td>WRN-34-12</td><td>TRADES</td><td>66.53</td><td>55.62</td><td>56.47</td><td>35.35</td><td>36.90</td><td>27.52</td><td>29.48</td><td>24.94</td><td>25.21</td><td>44.75</td><td>46.19</td><td>24.58</td><td>24.85</td></tr><tr><td>WRN-34-R</td><td>TRADES</td><td>68.16</td><td>56.83</td><td>56.75</td><td>36.95</td><td>37.68</td><td>29.17</td><td>29.92</td><td>25.48</td><td>25.48</td><td>45.04</td><td>45.52</td><td>25.13</td><td>25.23</td></tr><tr><td>WRN-34-12</td><td>MART</td><td>66.53</td><td>58.51</td><td>57.29</td><td>36.06</td><td>39.48</td><td>26.50</td><td>32.43</td><td>23.85</td><td>27.64</td><td>41.53</td><td>38.73</td><td>23.33</td><td>26.92</td></tr><tr><td>WRN-34-R</td><td>MART</td><td>68.16</td><td>61.72</td><td>58.27</td><td>39.68</td><td>41.24</td><td>29.94</td><td>34.12</td><td>26.27</td><td>29.33</td><td>39.20</td><td>38.45</td><td>25.60</td><td>28.63</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
886
+ "bbox": [
887
+ 173,
888
+ 238,
889
+ 825,
890
+ 441
891
+ ],
892
+ "page_idx": 8
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "White-box Robustness. We evaluate the robustness of the networks to 5 adversarial attacks including Fast Gradient Sign Method (FGSM) [5], Projected Gradient Descent (PGD) [15], Carlini and Wagner (CW) [79], Guided Adversarial Margin Attack (GAMA) [33] and AutoAttack (AA) [30]. We apply these attacks on the test sets of CIFAR-10 and CIFAR-100 with the same maximum adversarial perturbation $\\epsilon = 8 / 2 5 5$ as adopted for model training. For PGD, we use the 20-step PGD $( \\mathrm { P G D ^ { 2 0 } } )$ with step size $\\alpha = \\epsilon / 1 0$ . For GAMA attack, we set its perturbation steps to 100 following the original paper. We report the model’s accuracy on the test adversarial examples crafted by these evaluation attacks for models obtained at both the best and the last checkpoints, following [16, 46, 18]. ",
897
+ "bbox": [
898
+ 173,
899
+ 449,
900
+ 825,
901
+ 560
902
+ ],
903
+ "page_idx": 8
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "The white-box evaluation results including both clean accuracy and adversarial robustness are reported in Table 2. As can be inferred, a robustness gain of $1 \\sim 3 \\%$ can be consistently achieved when the networks are reconfigured following our discovered configuration rule. And the improvements are not restricted to a particular architecture nor adversarial training method, except there is slight decrease for $\\mathrm { C W } _ { \\infty }$ on CIFAR-100 for SAT and MART. This wide range of robustness improvements by a simple architectural reconfiguration confirms that our findings are very general and can be immediately applied to commonly used DNNs to obtain more adversarial robustness. For VGG-11, DN-121 and DARTS, our robust reconfiguration can reduce the parameters by a considerable amount. ",
908
+ "bbox": [
909
+ 174,
910
+ 566,
911
+ 825,
912
+ 678
913
+ ],
914
+ "page_idx": 8
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "6 Relation to Existing Understandings ",
919
+ "text_level": 1,
920
+ "bbox": [
921
+ 174,
922
+ 702,
923
+ 508,
924
+ 719
925
+ ],
926
+ "page_idx": 8
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "One recent work [59] shows that wider networks tend to increase the Lipschitzness, a finding that is consistent with ours. In [59], the theoretical analysis is based on Neural Tangent Kernel (NTK) under the assumption that all layers share the same width. By contrast, our analysis provides a more in-depth understanding related to the width and depth of each individual layer. Whilst in [59], the wider network utilizes a stronger regularization to mitigate the vulnerability (instability) caused by increased Lipschitzness, our work shows that this can be achieved alternatively by a simple reconfiguration of the architecture. ",
931
+ "bbox": [
932
+ 174,
933
+ 737,
934
+ 825,
935
+ 833
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "It has also been found that weight decay plays an important role in adversarial training [54, 80]. This can be explained by our theoretical analysis in Theorem 1 and 2. Considering the weight matrix is normally distributed $\\mathcal { N } ( 0 , \\sigma _ { \\theta } ^ { 2 } )$ , weight decay encourages the model to learn weights of smaller magnitudes, thus reducing the variance $\\sigma _ { \\theta } ^ { 2 }$ of the weight matrix. This will lead to reduced upper bound of the Lipschitz constant and improved robustness. See Appendix E for more discussions. ",
942
+ "bbox": [
943
+ 174,
944
+ 840,
945
+ 825,
946
+ 911
947
+ ],
948
+ "page_idx": 8
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "7 Conclusion ",
953
+ "text_level": 1,
954
+ "bbox": [
955
+ 174,
956
+ 89,
957
+ 299,
958
+ 106
959
+ ],
960
+ "page_idx": 9
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "In this paper, we explored the architectural ingredients of adversarially robust DNNs via extensive fine-controlled experiments and theoretical analysis. Our findings are: 1) more parameters does not necessarily lead to more adversarially robust models; 2) reducing capacity (up to a limit) via either depth or width at the deeper layers improves adversarial robustness; and 3) under the same type of architectures and parameter budget, there may exist an architectural configuration that can exploit the full robustness potential of the network. We also showed that depth and width offer different levels of flexibility for capacity reduction and robustness improvement. Following a width reduction and scaling rule, we showed that our findings are generic, not restricted to a particular adversarial training method, and can be immediately applied to improve both manually-designed or NAS-discovered DNNs. We also provide a series of empirical understandings on the distinctive impacts of the deeper layers on adversarial robustness. Our work can provide useful insights into the architectural perspective of adversarial robustness, and help design more adversarially robust DNNs. ",
965
+ "bbox": [
966
+ 174,
967
+ 119,
968
+ 825,
969
+ 286
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Border Impacts ",
976
+ "text_level": 1,
977
+ "bbox": [
978
+ 174,
979
+ 304,
980
+ 308,
981
+ 321
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Adversarial training is currently the most effective defense against adversarial attacks, although its performance is yet to be improved. In this work, we extensively studied the impact of network architecture to adversarial robustness. Our findings suggest that models can be made more robust by even reducing capacity at the deep layers. Such reduction can also help save the training cost of adversarial training which is known to be extremely time-consuming. We will open source the discovered architectural configurations to help future research design more robust architectures. ",
988
+ "bbox": [
989
+ 174,
990
+ 335,
991
+ 825,
992
+ 419
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Acknowledgment ",
999
+ "text_level": 1,
1000
+ "bbox": [
1001
+ 176,
1002
+ 438,
1003
+ 321,
1004
+ 455
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Yisen Wang is partially supported by the National Natural Science Foundation of China under Grant 62006153, and Project 2020BD006 supported by PKU-Baidu Fund. This research was undertaken using the LIEF HPC-GPGPU Facility hosted at The University of Melbourne. This Facility was established with the assistance of LIEF Grant LE170100200. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 468,
1014
+ 825,
1015
+ 523
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "References ",
1022
+ "text_level": 1,
1023
+ "bbox": [
1024
+ 174,
1025
+ 542,
1026
+ 266,
1027
+ 558
1028
+ ],
1029
+ "page_idx": 9
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "[1] Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. \n[2] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, 2014. \n[3] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In EMNLP, 2016. \n[4] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014. \n[5] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015. \n[6] Xingjun Ma, Bo Li, Yisen Wang, Sarah M. Erfani, Sudanthi N. R. Wijewickrema, Grant Schoenebeck, Dawn Song, Michael E. Houle, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In ICLR, 2018. \n[7] Kevin Eykholt, Ivan Evtimov, Earlence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Robust physical-world attacks on deep learning visual classification. In CVPR, 2018. \n[8] Ranjie Duan, Xingjun Ma, Yisen Wang, James Bailey, A. Kai Qin, and Yun Yang. Adversarial camouflage: Hiding physical-world attacks with natural styles. In CVPR, 2020. \n[9] Samuel G Finlayson, John D Bowers, Joichi Ito, Jonathan L Zittrain, Andrew L Beam, and Isaac S Kohane. Adversarial attacks on medical machine learning. Science, 363(6433):1287–1289, 2019. \n[10] Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu. Understanding adversarial attacks on deep learning based medical image analysis systems. Pattern Recognition, 2020. \n[11] Guneet S. Dhillon, Kamyar Azizzadenesheli, Zachary C. Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Animashree Anandkumar. Stochastic activation pruning for robust adversarial defense. In ICLR, 2018. \n[12] Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan L. Yuille. Mitigating adversarial effects through randomization. In ICLR, 2018. \n[13] Jacob Buckman, Aurko Roy, Colin Raffel, and Ian J. Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In ICLR, 2018. \n[14] Chuan Guo, Mayank Rana, Moustapha Cissé, and Laurens van der Maaten. Countering adversarial images using input transformations. In ICLR, 2018. \n[15] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. \n[16] Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan. Theoretically principled trade-off between robustness and accuracy. In ICML, 2019. \n[17] Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu. On the convergence and robustness of adversarial training. In ICML, 2019. \n[18] Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Quanquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020. \n[19] Dongxian Wu, Shu-Tao Xia, and Yisen Wang. Adversarial weight perturbation helps robust generalization. NeurIPS, 2020. \n[20] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. In NeurIPS, 2019. \n[21] Yang Bai, Yuyuan Zeng, Yong Jiang, Shu-Tao Xia, Xingjun Ma, and Yisen Wang. Improving adversarial robustness via channel-wise activation suppressing. In ICLR, 2021. \n[22] Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. In NeurIPS, 2018. \n[23] Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, John C. Duchi, and Percy Liang. Unlabeled data improves adversarial robustness. In NeurIPS, 2019. \n[24] Aditi Raghunathan, Sang Michael Xie, Fanny Yang, John Duchi, and Percy Liang. Understanding and mitigating the tradeoff between robustness and accuracy. In ICML, 2020. \n[25] Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John Hopcroft, and Liwei Wang. Adversarially robust generalization just requires more unlabeled data. arXiv preprint arXiv:1906.00555, 2019. \n[26] Cihang Xie and Alan L. Yuille. Intriguing properties of adversarial training at scale. In ICLR, 2020. \n[27] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016. \n[28] Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. In ECCV, 2018. \n[29] Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018. \n[30] Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In ICML, 2020. \n[31] Jingfeng Zhang, Xilie Xu, Bo Han, Gang Niu, Lizhen Cui, Masashi Sugiyama, and Mohan Kankanhalli. Attacks which do not kill training make adversarial learning stronger. In ICML, 2020. \n[32] Jean-Baptiste Alayrac, Jonathan Uesato, Po-Sen Huang, Alhussein Fawzi, Robert Stanforth, and Pushmeet Kohli. Are labels required for improving adversarial robustness? In NeurIPS, 2019. \n[33] Gaurang Sriramanan, Sravanti Addepalli, Arya Baburaj, and R Venkatesh Babu. Guided adversarial attack for evaluating and enhancing adversarial defenses. arXiv preprint arXiv:2011.14969, 2020. \n[34] Gavin Weiguang Ding, Yash Sharma, Kry Yik Chau Lui, and Ruitong Huang. Mma training: Direct input space margin maximization through adversarial training. In ICLR, 2020. \n[35] Tianyu Pang, Kun Xu, Yinpeng Dong, Chao Du, Ning Chen, and Jun Zhu. Rethinking softmax crossentropy loss for adversarial robustness. In ICLR, 2020. \n[36] Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John P. Dickerson, Christoph Studer, Larry S. Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! In NeurIPS, 2019. \n[37] Eric Wong, Leslie Rice, and J. Zico Kolter. Fast is better than free: Revisiting adversarial training. In ICLR, 2020. \n[38] Dinghuai Zhang, Tianyuan Zhang, Yiping Lu, Zhanxing Zhu, and Bin Dong. You only propagate once: Accelerating adversarial training via maximal principle. In NeurIPS, 2020. \n[39] Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, and Zhangyang Wang. Adversarial robustness: From self-supervised pre-training to fine-tuning. In CVPR, 2020. \n[40] Tianyu Pang, Xiao Yang, Yinpeng Dong, Taufik Xu, Jun Zhu, and Hang Su. Boosting adversarial training with hypersphere embedding. In NeurIPS, 2020. \n[41] Minhao Cheng, Pin-Yu Chen, Sijia Liu, Shiyu Chang, Cho-Jui Hsieh, and Payel Das. Self-progressing robust training. arXiv preprint arXiv:2012.11769, 2020. \n[42] Yinpeng Dong, Zhijie Deng, Tianyu Pang, Jun Zhu, and Hang Su. Adversarial distributional training for robust deep learning. In NeurIPS, 2020. \n[43] Jingfeng Zhang, Jianing Zhu, Gang Niu, Bo Han, Masashi Sugiyama, and Mohan Kankanhalli. Geometryaware instance-reweighted adversarial training. In ICLR, 2021. \n[44] Micah Goldblum, Liam Fowl, Soheil Feizi, and Tom Goldstein. Adversarially robust distillation. In AAAI, 2020. \n[45] Bojia Zi, Shihao Zhao, Xingjun Ma, and Yu-Gang Jiang. Revisiting adversarial robustness distillation: Robust soft labels make student better. ICCV, 2021. \n[46] Leslie Rice, Eric Wong, and J. Zico Kolter. Overfitting in adversarially robust deep learning. In ICML, 2020. \n[47] Tianlong Chen, Zhenyu Zhang, Sijia Liu, Shiyu Chang, and Zhangyang Wang. Robust overfitting may be mitigated by properly learned smoothening. In ICLR, 2021. \n[48] Jie Ren, Die Zhang, Yisen Wang, Lu Chen, Zhanpeng Zhou, Xu Cheng, Xin Wang, Yiting Chen, Jie Shi, and Quanshi Zhang. Game-theoretic understanding of adversarially learned features. arXiv preprint arXiv:2103.07364, 2021. \n[49] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Brandon Tran, and Aleksander Madry. Adversarial robustness as a prior for learned representations. arXiv preprint arXiv:1906.00945, 2019. \n[50] Yifei Wang, Yisen Wang, Jiansheng Yang, and Zhouchen Lin. Demystifying adversarial training via a unified probabilistic framework. In ICML 2021 Workshop on Adversarial Machine Learning, 2021. \n[51] Hadi Salman, Andrew Ilyas, Logan Engstrom, Ashish Kapoor, and Aleksander Madry. Do adversarially robust imagenet models transfer better? In NeurIPS, 2020. \n[52] Xin Wang, Jie Ren, Shuyun Lin, Xiangming Zhu, Yisen Wang, and Quanshi Zhang. A unified approach to interpreting and boosting adversarial transferability. In ICLR, 2021. \n[53] Cihang Xie, Mingxing Tan, Boqing Gong, Jiang Wang, Alan L Yuille, and Quoc V Le. Adversarial examples improve image recognition. In CVPR, 2020. \n[54] Tianyu Pang, Xiao Yang, Yinpeng Dong, Hang Su, and Jun Zhu. Bag of tricks for adversarial training. In ICLR, 2021. \n[55] Shiyu Tang, Ruihao Gong, Yan Wang, Aishan Liu, Jiakai Wang, Xinyun Chen, Fengwei Yu, Xianglong Liu, Dawn Song, Alan Yuille, et al. Robustart: Benchmarking robustness on architecture design and training techniques. arXiv preprint arXiv:2109.05211, 2021. \n[56] George Cazenavette, Calvin Murdock, and Simon Lucey. Architectural adversarial robustness: The case for deep pursuit. arXiv preprint arXiv:2011.14427, 2020. \n[57] Itay Safran and Ohad Shamir. Depth-width tradeoffs in approximating natural functions with neural networks. In International Conference on Machine Learning, pages 2979–2987. PMLR, 2017. \n[58] Preetum Nakkiran. Adversarial robustness may be at odds with simplicity. arXiv preprint arXiv:1901.00532, 2019. \n[59] Boxi Wu, Jinghui Chen, Deng Cai, Xiaofei He, and Quanquan Gu. Do wider neural networks really help adversarial robustness? In NeurIPS, 2021. \n[60] Minghao Guo, Yuzhe Yang, Rui Xu, Ziwei Liu, and Dahua Lin. When NAS meets robustness: In search of robust architectures against adversarial attacks. In CVPR, 2020. \n[61] Xuefei Ning, Junbo Zhao, Wenshuo Li, Tianchen Zhao, Huazhong Yang, and Yu Wang. Multi-shot nas for discovering adversarially robust convolutional neural architectures at targeted capacities. arXiv preprint arXiv:2012.11835, 2020. \n[62] Ramtin Hosseini, Xingyi Yang, and Pengtao Xie. Dsrna: Differentiable search of robust neural architectures. arXiv preprint arXiv:2012.06122, 2020. \n[63] Minjing Dong, Yanxi Li, Yunhe Wang, and Chang Xu. Adversarially robust neural architectures. arXiv preprint arXiv:2009.00902, 2020. \n[64] Hanlin Chen, Baochang Zhang, Song Xue, Xuan Gong, Hong Liu, Rongrong Ji, and David Doermann. Anti-bandit neural architecture search for model defense. In ECCV, 2020. \n[65] Xiangning Chen and Cho-Jui Hsieh. Stabilizing differentiable architecture search via perturbation-based regularization. In ICML, 2020. \n[66] Chaitanya Devaguptapu, Devansh Agarwal, Gaurav Mittal, and Vineeth N Balasubramanian. An empirical study on the robustness of nas based architectures. arXiv preprint arXiv:2007.08428, 2020. \n[67] Mark Rudelson and Roman Vershynin. Non-asymptotic theory of random matrices: extreme singular values. In International Congress of Mathematicians (ICM), 2010. \n[68] Henry Gouk, Eibe Frank, Bernhard Pfahringer, and Michael J Cree. Regularisation of neural networks by enforcing lipschitz continuity. Machine Learning, 2021. \n[69] SiQi Zhou and Angela P Schoellig. An analysis of the expressiveness of deep neural network architectures based on their lipschitz constants. arXiv preprint arXiv:1912.11511, 2019. \n[70] Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In ICML, 2017. \n[71] Haifeng Qian and Mark N Wegman. L2-nonexpansive neural networks. arXiv preprint arXiv:1802.07896, 2018. \n[72] Yusuke Tsuzuku, Issei Sato, and Masashi Sugiyama. Lipschitz-margin training: Scalable certification of perturbation invariance for deep neural networks. In NeurIPS, 2018. \n[73] Todd Huster, Cho-Yu Jason Chiang, and Ritu Chadha. Limitations of the lipschitz constant as a defense against adversarial examples. In ECML PKDD, 2018. \n[74] Yao-Yuan Yang, Cyrus Rashtchian, Hongyang Zhang, Ruslan Salakhutdinov, and Kamalika Chaudhuri. A closer look at accuracy vs. robustness. NeurIPS, 2020. \n[75] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. \n[76] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. \n[77] Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. In CVPR, 2017. \n[78] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. In ICLR, 2019. \n[79] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In S&P, 2017. \n[80] Sven Gowal, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. Uncovering the limits of adversarial training against norm-bounded adversarial examples. arXiv preprint arXiv:2010.03593, 2020. \n[81] Ilya Loshchilov and Frank Hutter. SGDR: stochastic gradient descent with warm restarts. In ICLR, 2017. \n[82] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. \n[83] Linxi Jiang, Xingjun Ma, Zejia Weng, James Bailey, and Yu-Gang Jiang. Imbalanced gradients: A new cause of overestimated adversarial robustness. arXiv preprint arXiv:2006.13726, 2020. \n[84] Vikash Sehwag, Shiqi Wang, Prateek Mittal, and Suman Jana. Hydra: Pruning adversarially robust neural networks. NeurIPS, 2020. \n[85] Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, and Andrew Gordon Wilson. Averaging weights leads to wider optima and better generalization. In UAI, 2018. ",
1034
+ "bbox": [
1035
+ 178,
1036
+ 563,
1037
+ 826,
1038
+ 911
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "",
1045
+ "bbox": [
1046
+ 171,
1047
+ 77,
1048
+ 828,
1049
+ 917
1050
+ ],
1051
+ "page_idx": 10
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "",
1056
+ "bbox": [
1057
+ 171,
1058
+ 73,
1059
+ 828,
1060
+ 919
1061
+ ],
1062
+ "page_idx": 11
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "",
1067
+ "bbox": [
1068
+ 171,
1069
+ 63,
1070
+ 828,
1071
+ 917
1072
+ ],
1073
+ "page_idx": 12
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "",
1078
+ "bbox": [
1079
+ 173,
1080
+ 90,
1081
+ 828,
1082
+ 284
1083
+ ],
1084
+ "page_idx": 13
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Checklist ",
1089
+ "text_level": 1,
1090
+ "bbox": [
1091
+ 174,
1092
+ 309,
1093
+ 254,
1094
+ 325
1095
+ ],
1096
+ "page_idx": 13
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example: ",
1101
+ "bbox": [
1102
+ 176,
1103
+ 340,
1104
+ 825,
1105
+ 397
1106
+ ],
1107
+ "page_idx": 13
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "• Did you include the license to the code and datasets? [Yes] \n• Did you include the license to the code and datasets? [No] The code and the data are proprietary. \n• Did you include the license to the code and datasets? [N/A] ",
1112
+ "bbox": [
1113
+ 217,
1114
+ 407,
1115
+ 825,
1116
+ 474
1117
+ ],
1118
+ "page_idx": 13
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below. ",
1123
+ "bbox": [
1124
+ 178,
1125
+ 484,
1126
+ 825,
1127
+ 527
1128
+ ],
1129
+ "page_idx": 13
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "1. For all authors... ",
1134
+ "bbox": [
1135
+ 214,
1136
+ 540,
1137
+ 339,
1138
+ 554
1139
+ ],
1140
+ "page_idx": 13
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] We briefly discussed the negative impacts of adversarial attacks in the introduction and border impacts. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1145
+ "bbox": [
1146
+ 238,
1147
+ 559,
1148
+ 825,
1149
+ 664
1150
+ ],
1151
+ "page_idx": 13
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "2. If you are including theoretical results... ",
1156
+ "bbox": [
1157
+ 214,
1158
+ 667,
1159
+ 493,
1160
+ 683
1161
+ ],
1162
+ "page_idx": 13
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] See Appendix A.1 ",
1167
+ "bbox": [
1168
+ 238,
1169
+ 686,
1170
+ 813,
1171
+ 718
1172
+ ],
1173
+ "page_idx": 13
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "3. If you ran experiments... ",
1178
+ "bbox": [
1179
+ 212,
1180
+ 723,
1181
+ 393,
1182
+ 737
1183
+ ],
1184
+ "page_idx": 13
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] Code available in supplementary material \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Appendix B ",
1189
+ "bbox": [
1190
+ 238,
1191
+ 741,
1192
+ 825,
1193
+ 875
1194
+ ],
1195
+ "page_idx": 13
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1200
+ "bbox": [
1201
+ 220,
1202
+ 877,
1203
+ 825,
1204
+ 892
1205
+ ],
1206
+ "page_idx": 13
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] ",
1211
+ "bbox": [
1212
+ 236,
1213
+ 897,
1214
+ 694,
1215
+ 911
1216
+ ],
1217
+ "page_idx": 13
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "(b) Did you mention the license of the assets? [Yes] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1222
+ "bbox": [
1223
+ 238,
1224
+ 90,
1225
+ 825,
1226
+ 196
1227
+ ],
1228
+ "page_idx": 14
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1233
+ "bbox": [
1234
+ 214,
1235
+ 200,
1236
+ 705,
1237
+ 215
1238
+ ],
1239
+ "page_idx": 14
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1244
+ "bbox": [
1245
+ 238,
1246
+ 219,
1247
+ 825,
1248
+ 309
1249
+ ],
1250
+ "page_idx": 14
1251
+ }
1252
+ ]
parse/train/OdklztJBBYH/OdklztJBBYH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/OdklztJBBYH/OdklztJBBYH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v.md ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CAUSAL CURIOSITY: RL AGENTS DISCOVERING SELF-SUPERVISED EXPERIMENTS FOR CAUSAL REPRESENTATION LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Humans show an innate ability to learn the regularities of the world through interaction. By performing experiments in our environment, we are able to discern the causal factors of variation and infer how they affect the dynamics of our world. Analogously, here we attempt to equip reinforcement learning agents with the ability to perform experiments that facilitate a categorization of the rolled-out trajectories, and to subsequently infer the causal factors of the environment in a hierarchical manner. We introduce a novel intrinsic reward, called causal curiosity, and show that it allows our agents to learn optimal sequences of actions, and to discover causal factors in the dynamics. The learned behavior allows the agent to infer a binary quantized representation for the ground-truth causal factors in every environment. Additionally, we find that these experimental behaviors are semantically meaningful (e.g., to differentiate between heavy and light blocks, our agents learn to lift them), and are learnt in a self-supervised manner with approximately 2.5 times less data than conventional supervised planners. We show that these behaviors can be re-purposed and fine-tuned (e.g., from lifting to pushing or other downstream tasks). Finally, we show that the knowledge of causal factor representations aids zero-shot learning for more complex tasks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Discovering causation in environments an agent might encounter remains an open and challenging problem for causal reinforcement learning (Schölkopf (2015), Bengio et al. (2013), Schölkopf (2019)). Most approaches take the form of BAMDPs (Bayes Adaptive Markov Decision Processes) (Zintgraf et al. (2019)) or Hi-Param MDP (Hidden Parameter MDPs) (Doshi-Velez & Konidaris (2016); Yao et al. (2018); Killian et al. (2017); Perez et al. (2020)) which condition the transition $p ( s _ { t + 1 } | s _ { t } , a _ { t } ; H )$ and/or reward function $R ( r _ { t + 1 } | s _ { t } , a _ { t } , s _ { t + 1 } ; H )$ of each environment on hidden parameters (also referred to as causal factors in some of the above studies). Let $s \in { \mathcal { S } } , a \in { \mathcal { A } }$ $r \in \mathcal { R }$ , $H \in { \mathcal { H } }$ where $s , { \mathcal { A } } , { \mathcal { R } }$ , and $\mathcal { H }$ are the set of states, actions, rewards and feasible hidden parameters. In the physical world and in the case of mechanical systems, examples of the parameter $h _ { j } \in \mathcal { H }$ include gravity, coefficients of friction, masses and sizes of objects. Typically, $H$ is treated as a latent variable for which an embedding is learned during training, using variational methods (Kingma et al. (2014); Ilse et al. (2019)). Let $s _ { 0 : T }$ be the entire state trajectory of length $T$ . Similarly, $a _ { 0 : T }$ is the sequence of actions applied during that trajectory by the agent that results in $s _ { 0 : T }$ . In an environment parameterized by these causal factors, these latent variable approaches define a probability distribution over the entire sequence of (rewards, states, actions) conditioned on a latent $z$ as $p ( r _ { 0 : T } , s _ { 0 : T } , a _ { 0 : T - 1 } ; z )$ that factorizes as
12
+
13
+ $$
14
+ \prod _ { i = 1 } ^ { T - 1 } p ( r _ { t + 1 } | s _ { t } , a _ { t } , s _ { t + 1 } , z ) p ( s _ { t + 1 } | s _ { t } , a _ { t } , z ) p ( a _ { t } | s _ { t } , z )
15
+ $$
16
+
17
+ due to the Markov assumption. At test time, the agent infers the causal factor associated with its environment by observing the trajectories produced by its initial actions that can be issued by any policy such as model-based reinforcement learning.
18
+
19
+ In practice, however, discovering causal factors in a physical environment is prone to various challenges that are caused by the disjointed nature of the influence of these factors on the produced trajectories. More specifically, at each time step, the transition function is affected by a subset of global causal factors. This subset is implicitly defined on the basis of the current state and the action taken. For example, if a body in an environment loses contact with the ground, the coefficient of friction between the body and the ground no longer affects the outcome of any action that is taken. Likewise, the outcome of an upward force applied by the agent to a body on the ground is unaffected by the friction coefficient. We can therefore take advantage of this natural discontinuity to discern causal factors.
20
+
21
+ Without knowledge of how independent causal mechanisms affect the outcome of a particular action in a given state in an environment, it becomes impossible for the agent to conclude where the variation it encountered came from. Unsurprisingly, Hi-Param and BAMDP approaches fail to learn a disentangled embedding for the causal factors, making their behaviors uninterpretable (Perez et al. (2020)). For example, if, in an environment, a body remains stationary under a particular force, the Hi-Param or BAMDP agent may apply a higher force to achieve its goal of perhaps moving the body, but will be unable to conclude whether the "un-movability" was caused by high friction or high mass of the body. Additionally, these approaches require human-supervised reward engineering, making it difficult to apply them outside of the simulated environments they are tested in.
22
+
23
+ Our goal is, instead of focusing on maximizing reward for some particular task, to allow agents to discover causal processes through exploratory interaction. During training, our agents discover self-supervised experimental behaviors which they apply to a set of training environments. These behaviors allow them to learn about the various causal mechanisms that govern the transitions in each environment. During inference in a novel environment, they perform these discovered behaviors sequentially and use the outcome of each behavior to infer the embedding for a single causal factor (Figure 1).
24
+
25
+ The main challenge while learning a disentangled representation for the causal factors of the world is that several causal factors may affect the outcome of behaviors in each environment. For example, when pushing a body on the ground, the outcome, i.e., whether the body moves, or how far the body is pushed, depends on several factors, e.g., mass, shape and size, frictional coefficients, etc. However, if, instead of pushing on the ground, the agent executes a perfect grasp-and-lift behavior, only mass will affect whether the body is lifted off the ground or not.
26
+
27
+ Thus, it is clear that not all experimental behaviors are created equal and that the outcomes of some behaviors are caused by fewer causal factors than others. Our agents learn these behaviors without supervision using causal curiosity, an intrinsic reward. The outcome of a single such experimental behavior is then used to infer a binary quantized embedding describing the single isolated causal factor. Even though causal factors of variation in a physical world are easily identifiable to humans, a concrete definition is required to back up our proposed method. We conjecture that the causality of a factor of variation depends on the available actions to the agent. If the set of actions that an agent can take is very limited, there is no way for it to discern a diverse set of causal factors in the environment.
28
+
29
+ Definition 1 (Causal factors). Consider the POMDP $( \mathcal { O } , \mathcal { S } , \mathcal { A } , p , r )$ with observation space $\mathcal { O }$ , state space $s$ , action space $\mathcal { A }$ , the transition function $p$ , and the reward function $r$ . Let $o _ { 0 : T } \in \mathcal { O } ^ { T }$ denotes a trajectory of observations and $T$ be the length of such trajectories. Let $d ( \cdot , \cdot ) : \mathcal { O } ^ { T } \times \mathcal { O } ^ { T } \to \mathbb { R } _ { + }$ be a distance function defined on the space of trajectories of length $T$ . The set $H = \{ h _ { 1 } , h _ { 2 } , \ldots , h _ { k } \}$ is called a set of $\epsilon -$ causal factors if for every $h _ { j } \in H$ , there exists a unique sequence of actions $a _ { 0 : T }$ that clusters the state trajectories into two sets $S$ and $S ^ { \prime }$ such that
30
+
31
+ $$
32
+ \operatorname* { m i n } \{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \prime } ) : o _ { 0 : T } \in O , o _ { 0 : T } ^ { \prime } \in O ^ { \prime } \} > \epsilon
33
+ $$
34
+
35
+ and that $h _ { j }$ is the cause of the trajectory of states obtained i.e.,
36
+
37
+ $$
38
+ p ( o _ { 0 : T } | d o ( h _ { j } = k ) , a _ { 0 : T } ) \neq p ( o _ { 0 : T } | d o ( h _ { j } = k ^ { \prime } ) , a _ { 0 : T } ) \forall k \neq k ^ { \prime }
39
+ $$
40
+
41
+ Intuitively, a factor of variation affecting a set of environments is called causal if there exists a sequence of actions available to the agent where the resultant trajectories are clustered into two or more sets (for simplicity here we assume binary clusters). This is analogous to the human ability to conclude whether objects are heavy or light, big or small. For a gentle introduction to the intuition about this definition, we refer the reader to Appendix D.
42
+
43
+ According to Def. 1, a causal factor is a parameter in the environment whose value, when intervened on (i.e. varied) over a set of values, results in trajectories of states that are divisible into disjoint clusters under a particular sequence of actions. These clusters represent the quantized values of the causal factor. For example, mass, which is a causal factor of a body, under an action sequence of a grasping and lifting motion, results in 2 clusters, liftable (low mass) and not liftable (high mass). However, such an action sequence is not known in advance. Therefore, discovering a causal factor in the environment boils down to finding a sequence of actions that makes the effect of that factor prominent by producing clustered trajectories for different values of that environmental factor.
44
+
45
+ ![](images/bd8a45b5a87224e98efb1cf1c4411698bcdd09b5472eb0da2a01ba7932658e4e.jpg)
46
+ Figure 1: Overview of Inference. The exploration loop produces a series of $K$ experiments allowing the agent to infer the representations for $K$ causal factors. After exploration, the agent utilizes the acquired knowledge for downstream tasks.
47
+
48
+ Using the above, we propose an intrinsic reward, which allows our agents to discover experimental behaviors which are semantically meaningful and can be used to re-train for downstream tasks, resulting in high sample efficiency. Our work, therefore, forms an important link between structured representation learning and skill discovery, two largely disjoint fields in RL, which stand to benefit from each other.
49
+
50
+ The contributions of the work are as follows:
51
+
52
+ • We equip agents with the ability to perform experiments and behave meaningfully in a set of environments in an unsupervised manner. These behaviors can expose or obfuscate specific independent causal mechanisms that occur in the world of the agent, allowing the agent to learn about each in the absence of the others, an important human behavioral trait.
53
+ • We introduce an intrinsic reward, causal curiosity, which allows our agents to discover these behaviors without human-engineered rewards. The outcomes of the experiments are used to learn a disentangled quantized binary representation for the causal factors of the environment, analogous to the human ability to conclude whether objects are light/heavy, big/small etc.
54
+ • Through extensive experiments, we conclude that knowledge of the causal factors aids sample efficiency in two ways - first, that the knowledge of the causal factors aids transfer learning across multiple environments, and, second, that the experimental behaviors acquired can be repurposed for downstream tasks.
55
+
56
+ # 2 METHOD
57
+
58
+ Consider a set of $N$ environments $\mathcal { E }$ with $e ^ { ( i ) } \in \mathcal { E }$ where $e ^ { ( i ) }$ denotes the $i ^ { t h }$ environment.
59
+
60
+ The letter $H$ is overloaded. While $H$ is a set of global causal factors (as defined in Def. 1) such that
61
+ $h _ { j } \in H$ , each causal factor $h _ { j }$ is itself a random variable which assumes a particular value for every ion of an environment. T. For each environment $e ^ { ( i ) }$ is represented by a set of causal factorsepresents the disentangled embedding
62
+ $\{ h _ { j } ^ { ( i ) } \forall j \}$ $e ^ { ( i ) }$ $( z _ { ( 0 ) } ^ { ( i ) } , z _ { ( 1 ) } ^ { ( i ) } . . . z _ { ( K - 1 ) } ^ { ( i ) } )$
63
+ vector, such that z(i)(j) $h _ { j } ^ { ( i ) }$ .
64
+
65
+ # Algorithm 1 Training Scheme
66
+
67
+ 1: Initialize $j = 0$ 2: Initialize training environment set Envs 3: for iteration m to M do . Experiment Planner Training Loop 4: Sample experimental behavior $a _ { 0 : T } \sim \mathbf { C E M } ( \cdot )$ 5: for $i ^ { \star h }$ env in Envs do 6: Apply $a _ { 0 : T }$ to env 7: $\mathbf { C o l l e c t } \ S ^ { ( } i ) = O _ { 0 : T } ^ { ( i ) }$ 8: Reset env 9: Calculate $- L ( S | M )$ given that $M$ is bimodal clustering model $\triangleright$ Calculate Curiosity
68
+ 10: Update CEM(·) distribution with highest reward trajectories
69
+ 11: Use learnt $q _ { M } ( z | S )$ for cluster assignment of each env in Envs i.e. $z _ { j } ^ { ( i ) } = q _ { M } ( z | S ^ { ( i ) } )$
70
+ 12: Update $j = j + 1$
71
+ 13: Repeat from step 2, first setting $E n v s = \{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = 0 \}$ and then, setting $E n v s = \{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = 1 \}$
72
+
73
+ # 2.1 TRAINING THE EXPERIMENT PLANNER
74
+
75
+ To learn about causal processes through interaction, the agent must produce a sequence of actions $a _ { 0 : T - 1 }$ that we call experimental behavior, which, when applied to environment $e ^ { ( i ) } \in \mathcal { E }$ , produces a sequence of observations (state) $s ^ { ( i ) } = [ o _ { 0 } ^ { ( i ) } , o _ { 1 } ^ { ( i ) } . . o _ { T } ^ { ( i ) } ]$ , which is then used to infer the value of the embedding for a single causal factor $z _ { ( j ) } ^ { ( i ) }$ .
76
+
77
+ We motivate this using model selection criterion. Normally in model selection applications, the observations are fixed and the goal is to find a model $M ^ { * }$ that is closest to reality, as represented by:
78
+
79
+ $$
80
+ M ^ { * } = \arg \operatorname* { m i n } _ { M } ( L ( M ) + L ( S | M ) )
81
+ $$
82
+
83
+ where $L ( \cdot )$ is the description length. However, here, the situation is reversed. A simple bi-modal clustering model is fixed, motivated by Definition 1. Then, the agent is motivated to produce actions that result in observations that are best explained by this model. These discovered action sequences are the experimental behaviors we desire.
84
+
85
+ $$
86
+ \begin{array} { r } { \boldsymbol { a } _ { 0 : T } ^ { * } = \underset { \boldsymbol { a } _ { 0 : T } } { \arg \operatorname* { m i n } } ( L ( \boldsymbol { M } ) + L ( \boldsymbol { S } | \boldsymbol { M } ) ) } \end{array}
87
+ $$
88
+
89
+ where each observed trajectory $S = S ( a _ { 0 : T } )$ is a function of the action sequence. As mentioned earlier, the model is fixed in this formulation; hence, the first term $L ( M )$ is constant and not a function of the actions. $- L ( S | M )$ that is fed back to the RL agent as a reward function to maximize. We regard this reward function as causal curiosity.
90
+
91
+ Note that since each causal factor has its own independent causal mechanism that causes $S$ , the MDL of $S$ will be higher if multiple causal factors cause $S$ . On the contrary, if the agent produces actions which result in an $S$ that is easily explained by a low-capacity bi-modal model $M$ , then it will imply that $S$ is caused by fewer causal factors. Consequently, the causal curiosity reward for such an action sequence, $- L ( S | M )$ , will be high. Therefore, causal curiosity favors experimental behaviors that result in observations caused by few causal factors - thereby allowing us to use $S$ to infer a representation for a single causal factor. For details, please refer Appendix A.
92
+
93
+ # 2.2 CAUSAL INFERENCE MODULE
94
+
95
+ By maximizing the causal curiosity reward it is possible to achieve behaviors which result in trajectories of states only caused by a single hidden parameter. However, we wish to use the outcome of performing these experimental behaviors in each environment to infer a representation for the causal factor isolated by the experiment in question.
96
+
97
+ We achieve this through cluster membership. After training the Model Predictive Control Planner (Camacho & Alba (2013)), we sample from an action sequence $a _ { 0 : T }$ and apply it to each of the training environments. The learnt clustering model $M$ is then used to infer a representation for each environment using the collected outcome $\bar { S } ^ { ( i ) }$ obtained by applying $a _ { 0 : T }$ to each environment.
98
+
99
+ $$
100
+ z _ { j } ^ { ( i ) } = q _ { M } ( z | S ^ { ( i ) } )
101
+ $$
102
+
103
+ This corresponds to Step 11 of Algorithm (1). The representation learnt is binary in nature corresponding to the quantization of the continuous spectrum of values a causal factor takes in the training set into high and low values. Note however that a binary quantized embedding is not a necessary part of our method. A dense embedding may alternatively be learnt here similar to (Perez et al. (2020); Zintgraf et al. (2019)) using approximate variational inference. However, performing interventions on a dense embedding (Section 2.3) increases the computational complexity exponentially. Balancing space and time complexity, we report results using the quantized binary form of Equation (6). We discuss the implications of increasing the complexity of $z _ { j } ^ { ( i ) }$ in the discussion.
104
+
105
+ # 2.3 INTERVENTIONS ON BELIEFS
106
+
107
+ Having learnt about the effects of a single causal factor of the environment we wish to learn such experimental behaviors for each of the remaining hidden parameters that may vary in an environment. To achieve this, in an ideal setting, the agent would require access to the generative mechanism of the environments it encounters. Ideally, it would hold the values of the causal factor already learnt about constant i.e. $d o ( h _ { j } = c o n s t a n t )$ , and intervene over (vary the value of) another causal factor over a set of values $K$ i.e. $d o ( h _ { j } = k )$ such that $k \in K$ . For example, if a human scientist were to study the effects of a causal factor, say mass of a body, she would hold the values of all causal factors constant, (interact with cubes of the same size and external texture) and vary only mass to see how it affects the outcome of specific behaviors she applies to each body.
108
+
109
+ However, in the real-world the agent does not have access to the generative mechanism of the environments it encounters, but merely has the ability to act in them. Thus, it can intervene on the representations of a causal factor of the environment i.e. $d o ( z _ { i } = c o n s t a n t )$ . For, example having learnt about gravity, the agent picks all environments it believes have low gravity, and uses them to learn about a separate causal factor say, friction.
110
+
111
+ This corresponds to Step 13 of Algorithm (1). Thus, to learn about the $j ^ { t h }$ causal factor, we repeat steps 3 onwards on each of the clusters obtained for the $j - 1 ^ { t h }$ .
112
+
113
+ $$
114
+ E n v s = \{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = k \} , k \in \{ 0 , 1 \}
115
+ $$
116
+
117
+ This process continues in the form of a tree (Figure 4), where for each cluster of environments, a new experiment learns to split the cluster into 2 sub-clusters depending on the value of another hidden parameter. At level $n$ , the agent produces $2 ^ { n }$ experiments and inference models, having already intervened on the binary quantized representations of $n$ causal factors.
118
+
119
+ # 3 RELATED WORK
120
+
121
+ Doshi-Velez & Konidaris (2016) define a class Markov Decision Processes where transition probabilities $p ( s _ { t + 1 } | s _ { t } , a _ { t } ; \theta )$ depend on a hidden parameter $\theta$ , whose value is not observed, but its effects are felt. Killian et al. (2017) and Yao et al. (2018) utilize these Hidden Parameter MDPs (Markov Decision Processes) to enable efficient policy transfer, assuming that transition probabilities across states are a function of hidden parameters. Perez et al. (2020) relax this assumption, allowing both transition probabilities and reward functions to be functions of hidden parameters. Zintgraf et al. (2019) approach the problem from a Bayes-optimal policy standpoint, defining transition probabilities and reward functions to be dependent on a hidden parameter characteristic of the MDP in consideration. We utilize this setup to define causal factors.
122
+
123
+ Substantial attempts have been made at unsupervised disentanglement, most notably, the $\beta$ -VAE Higgins et al. Burgess et al. (2018), where a combination of factored priors and the information bottleneck force disentangled representations. Kim & Mnih (2018) enforce explicit factorization of the prior without compromising on the mutual information between the data and latent variables, a shortcoming of the $\beta$ -VAE. Chen et al. (2018) factor the KL divergence into a more explicit form, highlighting an improved objective function and a classifier-agnostic disentanglement metric. Locatello et al. (2018) show theoretically that unsupervised disentanglement (in the absence of inductive biases) is impossible and highly unstable, susceptible to random seed values. They follow this up with Locatello et al. (2020) where they show, both theoretically and experimentally, that pair-wise images provide sufficient inductive bias to disentangle causal factors of variation. However, these works have been applied to supervised learning problems whereas we attempt to disentangle the effects of hidden variables in dynamical environments, a relatively untouched question.
124
+
125
+ Curiosity for robotics is not a new area of research. Schmidhuber (2006), Ngo et al. (2012), Pathak et al. (2017) describe curiosity as the motivation behind the behavior of an agent in an environment for which the outcome is unpredictable, i.e., an intrinsic reward that motivates the agent to explore the unseen portions of the state space (and subsequent transitions). While causal curiosity is an intrinsic reward, it differs from these traditional definitions of curiosity in that it motivates the agent to produce structure in the outcome of its behavior.
126
+
127
+ # 4 EXPERIMENTS
128
+
129
+ Our work has 2 main thrusts - the discovered experimental behaviors and the representations obtained from the outcome of the behaviors in environments. The experimental behaviors are tied to contributions 1 and 2 in the Introduction. The causal factors allow us to achieve contribution 3 in the Introduction. We visualize these learnt behaviors and verify that they are indeed semantically meaningful and interpretable. We quantify the utility of the learned behaviors by using the behaviors as pre-training for a downstream task. In our experimental setup, we verify that these behaviors are indeed invariant to all other causal factors except one.
130
+
131
+ We visualize the representations obtained using these behaviors and verify that they are indeed the binary quantized representations for each of the ground truth causal factors that we manipulated in our experiments. Finally, we verify that the knowledge of the representation does indeed aid transfer learning and zero-shot generalizability in downstream tasks.
132
+
133
+ Causal World We use the Causal World Simulation (Ahmed et al. (Under submission 2020)) based on the Pybullet Physics engine to test our approach. The simulator consists of a 3-fingered robot, with 3 joints on each finger. We constrain each environment to consist of a single object that the agent can interact with. The causal factors that we manipulate for each of the objects are size, shape and mass of the blocks. The simulator allows us to capture and track the positions and velocities of each of the movable objects in an environment. While, for most experiments, the 3D position and 3D pose of the blocks is used as the state at each time step, we perform ablation studies where less information is provided to the agent.
134
+
135
+ # 4.1 VISUALIZING DISCOVERED BEHAVIORS
136
+
137
+ We would like to analyze whether the discovered experimental behaviors are human interpretable, i.e., are the experimental behaviors discovered in each of the setups semantically meaningful? We find that our agents learn to perform several useful behaviors without any supervision. For instance, to differentiate between objects with varying mass, we find that they acquire a perfect grasp-and-lift behavior with an upward force. In other random seed experiments, the agents learn to lift the blocks by using the wall of the environment for support. To differentiate between cubes and spheres, the agent discovers a pushing behavior which gently rolls the spheres along a horizontal direction. Qualitatively, we find that these behaviors are stable and predictable. See videos of discovered behaviors here (website under construction).
138
+
139
+ Concurrent with the objective they are trained on, we find that the acquired behaviors impose structure on the outcome when applied to each of the training environments. The outcome of each experimental behavior on the set of training environments results in dividing it into 2 subsets. These subsets correspond to the binary quantized values of a single factor, e.g., large or small, while being invariant to the values of other causal factors of the environments. We also perform ablation studies where instead of providing the full state vector, we provide only one coordinate (e.g., only x, y or z coordinate of the block). We find that causal curiosity results in behaviors that differentiate the environments based on outcomes along the direction provided. For example, when only the $\mathbf { X }$ coordinate was provided, the agent learned to evaluate mass by applying a pushing behavior along the x direction. Similarly, a lifting behavior was obtained when only the z coordinate was supplied to the curiosity module (Figure 2).
140
+
141
+ ![](images/88d18b1b70f86f723c5c9a304545f39a38019220f7b369ab3dd9c9c67412ae78.jpg)
142
+ Figure 2: Examples of discovered behaviors. The agent discovers experimental behaviors that allow it to characterize each environmental object in a binary manner, e.g., heavy/light, big small, rollable/not rollable, etc. These behaviors are acquired without any external supervision by maximizing the causal curiosity reward. A, B, C correspond to self-discovered toss, lift-and-spin and roll behaviors respectively. D shows an ablation study, where the agent is only provided the z coordinate of the block in every environment. Each line corresponds to one environment and the z coordinate of the block is plotted with time when the discovered behavior is applied. It learns a lifting behavior, where cluster 1 represents the heavy blocks (z coordinate does not change much) and cluster 2 represents the light blocks $\mathbf { z }$ increases as block is lifted and then falls when dropped and subsequently increases again when it bounces).
143
+
144
+ # 4.2 UTILITY OF LEARNED BEHAVIORS FOR DOWNSTREAM TASKS
145
+
146
+ While the behaviors acquired are semantically meaningful, we would like to quantify their utility as pre-training for downstream tasks. We analyze the performance on Lifting where the agent must grasp and lift a block to a predetermined height and Travel, where the agent must impart a velocity to the block along a predetermined direction. We re-train the learnt planner using an external reward for these tasks (Curious). We implement a baseline vanilla Cross Entropy Method optimized Model Predictive Control Planner (De Boer et al. (2005)) trained using the identical reward function and compare the rewards per trajectory during training. We also run a baseline (Additive reward) which explores whether the agent recieves both the causal curiosity reward and the external reward. We find high zero-shot generalizability and quicker convergence as compared to the vanilla CEM planner (Figure ??). We find that maximizing the curiosity reward in addition to simultaneously maximizing external rewards results in suboptimal performance due to our formulation of the curiosity reward. To maximize curiosity, the agent must discover behaviors that divide environments into 2 clusters. Thus in the context of the experimental setups, this corresponds to acquiring a lifting/pushing behavior that allows the agent to lift/impart horizontal velocity to blocks in half of the environments, while not being able to do so in the remaining environments. However, the explicit external reward incentivizes the agent to lift/impart horizontal velocity blocks in all environments. Thus these competing objectives result in sub-par performance.
147
+
148
+ # 4.3 VISUALIZATION OF HIERARCHICAL BINARY LATENT SPACE
149
+
150
+ Our agents discover a disentangled latent space such that they are able to isolate the sources of causation of the variability they encounters in their environments. For every environment, they learn a disentangled embedding vector which describes each of the causal factors.
151
+
152
+ To show this, we use 3 separate experimental setups - Mass, SizeMass and ShapeSizeMass where each of the causal factors are allowed to vary over a range of discrete values. During Mass, the agent is allowed access to 5 environments with objects having the same shape (cuboids) and size but differing only in mass. During SizeMass, the agent has access to 30 environments with cuboids having sizes and masses ranging over 6 and 5 values respectively. Finally, during ShapeSizeMass, the agent has access to 60 environments with objects having shapes, sizes and masses ranging over 2, 6, 5, and values respectively.
153
+
154
+ ![](images/8d0cb9d67f34c3e142de473044f931902b4ebb86b24b7f09c85f4164f62cf705.jpg)
155
+
156
+ ![](images/26a347cf44dd8d6fb015c4ab944719c1ed82d32789723592ad4cc3d3c364699d.jpg)
157
+ Figure 3: Utility of discovered behaviors. We find that the behaviors discovered by the agents while optimizing causal curiosity show high zero-shot generalizability and converge to the same performance as conventional planners for downstream tasks. We also analyze the worst case performance and find that the pre-training ensures better performance than random initialization. The table compares the time-steps of training required on an average to acquire a skill with the time steps required to learn a similar behavior using external reward. We find that the unsupervised experimental behaviors are approximately 2.5 times more sample efficient. We also find that maxizing both curiosity and external reward in our experimental setups results in sub-optimal results.
158
+ Figure 4: Discovered hierarchical latent space. The agent learns experiments that differentiate the full set of blocks in ShapeSizeMass into hierarchical binary clusters. At each level, the environments are divided into 2 clusters on the basis of the value of a single causal factor. We also show the principal components of the trajectories in the top left. For brevity, the full of extent of the tree is not depicted here. For each level of hierarchy $k$ , there are $2 ^ { k }$ number of clusters.
159
+
160
+ During training, the agent discovers a hierarchical binary latent space (Figure 4), where each level of hierarchy corresponds to a single causal factor. The binary values at each level of hierarchy correspond to the high/low values of the causal factor in question. To our knowledge, we obtain the first interpretable latent space describing the various causal processes in the environment of an agent. This implies that it learns to quantify each physical attribute of the blocks it encounters in a completely unsupervised manner.
161
+
162
+ # 4.4 KNOWLEDGE OF CAUSAL FACTORS AIDS TRANSFER
163
+
164
+ Next, we test whether knowledge of the causal factors does indeed aid transfer and zero-shot generalizability. To this end, we supply the representations obtained by the agent during the experimental behavior phase as input to a policy network in addition to the state of the simulator, and train it for a place-and-orient downstream task (Figure 1). We define 2 experimental setups - TransferMass and TransferSizeMass. In Mass, the agent is given access to 10 environments, with 10 varying values of mass. In TransferSizeMass, the agent is allowed access to 10 environments, with 2 and 5 values of size and mass respectively. In both setups, the agent learns about the varying causal mechanisms by optimizing causal curiosity. Subsequently, using the causal representation along with the state for each environment, it is trained to maximize external reward. For details of the setup, please see Appendix B.
165
+
166
+ After training, the agents are exposed to a set of unseen test environments, where we analyze their zero-shot generalizability. These test environments consist of unseen masses and sizes and their unseen combinations. This corresponds to "Strong Generalization" as defined by Perez et al. (2020). We report results averaged over 10 random seeds.
167
+
168
+ For each setup, we train a PPO-optimized Actor-Critic Policy (referred to as Causally-curious agent) with access to the causal representations and a 56 dimensional state vector from the environment i.e., $a _ { t } \sim \pi ( \cdot | s _ { t } , z _ { 0 : K } )$ (thus, a total of 57 dimensional input for TransferMass, and a 58 dimensional for TransferSizeMass). Similar to Perez et al. (2020), we implement 2 baselines - the Generalist and the Specialist. The Specialist consists of an agent with identical architecture as Causally-curious agent, but without access to causal representations (i.e., receives a 56 dimensional state vector). It is initialized randomly and is trained only on the test environments, serving as a benchmark for complexity of the test tasks. It performs poorly, indicating that the test tasks are complex. The architecture of the Generalist is identical to the Specialist. Like the Specialist, the Generalist also does not have access to the causal representations, but is trained on the same set of training environments that the Causally-curious agent is trained on. The poor performance of the generalist indicates that the tasks distribution of training and test tasks differs significantly and that memorization of behaviors does not yield good transfer. We find that causally-curious agents significantly outperform the both baselines indicating that indeed, knowledge of the causal representation does aid zero-shot generalizability.
169
+
170
+ ![](images/daa580bc3bf3fbefcb268128d5ed8334c86cc7c830011eff056ed3ca882801b0.jpg)
171
+ Figure 5: Knowledge of causal factors aids transfer. We find that knowledge of the causal representation allows agents to generalize to unseen environments with high zero-shot performance. The table depicts the extra timesteps required by the Generalist in each experimental setup to match the zero-shot performance of causally-curious agent. We find that as the number of varying causal factors increase, the difference in zero-shot performance of the Causally-curious agent and the Generalist increases, showing that the CC agents are indeed robust to multiple varying causal factors.
172
+
173
+ # 5 CONCLUSION
174
+
175
+ We introduce causal curiosity, an intrinsic reward that allows agents to discover binary quantized representations for the causal factors that affect environments an RL agent may encounter. We show that optimizing causal curiosity rewards results in the agent performing self-supervised experiments. We find that these experiments happen to be semantically meaningful and can be used as pre-training for downstream tasks. While our work learns binary quantized causal representations, a dense encoding may improve the amount of encoded information about the causal mechanisms of the environments. We leave this to future work.
176
+
177
+ # REFERENCES
178
+
179
+ Ossama Ahmed, Frederik Träuble, Anirudh Goyal, Alexander Neitz, Manuel Wüthrich, Yoshua Bengio, Bernhard Schölkopf, and Stefan Bauer. Causalworld: A robotic manipulation benchmark for causal structure and transfer learning. Under submission 2020.
180
+
181
+ Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013.
182
+
183
+ Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in $\beta$ -vae. arxiv 2018. arXiv preprint arXiv:1804.03599, 2018.
184
+
185
+ Eduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer Science & Business Media, 2013.
186
+
187
+ Tian Qi Chen, Xuechen Li, Roger B Grosse, and David K Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, pp. 2610–2620, 2018.
188
+
189
+ Marco Cuturi and Mathieu Blondel. Soft-dtw: a differentiable loss function for time-series. arXiv preprint arXiv:1703.01541, 2017.
190
+
191
+ Veronica Czitrom. One-factor-at-a-time versus designed experiments. The American Statistician, 53 (2):126–131, 1999.
192
+
193
+ Pieter-Tjerk De Boer, Dirk P Kroese, Shie Mannor, and Reuven Y Rubinstein. A tutorial on the cross-entropy method. Annals of operations research, 134(1):19–67, 2005.
194
+
195
+ Finale Doshi-Velez and George Konidaris. Hidden parameter markov decision processes: A semiparametric regression approach for discovering latent task parametrizations. In IJCAI: proceedings of the conference, volume 2016, pp. 1432. NIH Public Access, 2016.
196
+
197
+ Ronald Aylmer Fisher. Design of experiments. Br Med J, 1(3923):554–554, 1936.
198
+
199
+ Charles Robert Hicks. Fundamental concepts in the design of experiments. 1964.
200
+
201
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework.
202
+
203
+ Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable baselines. https://github.com/ hill-a/stable-baselines, 2018.
204
+
205
+ Maximilian Ilse, Jakub M Tomczak, Christos Louizos, and Max Welling. Diva: Domain invariant variational autoencoders. arXiv preprint arXiv:1905.10427, 2019.
206
+
207
+ Taylor W Killian, Samuel Daulton, George Konidaris, and Finale Doshi-Velez. Robust and efficient transfer learning with hidden parameter markov decision processes. In Advances in neural information processing systems, pp. 6250–6261, 2017.
208
+
209
+ Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018.
210
+
211
+ Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems, pp. 3581–3589, 2014.
212
+
213
+ Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Rätsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. arXiv preprint arXiv:1811.12359, 2018.
214
+
215
+ Francesco Locatello, Ben Poole, Gunnar Rätsch, Bernhard Schölkopf, Olivier Bachem, and Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020.
216
+
217
+ Hung Ngo, Matthew Luciw, Alexander Forster, and Juergen Schmidhuber. Learning skills from play: artificial curiosity on a katana robot arm. In The 2012 international joint conference on neural networks (IJCNN), pp. 1–8. IEEE, 2012.
218
+
219
+ Giambattista Parascandolo, Niki Kilbertus, Mateo Rojas-Carulla, and Bernhard Schölkopf. Learning independent causal mechanisms. In International Conference on Machine Learning, pp. 4036–4044. PMLR, 2018.
220
+
221
+ Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 16–17, 2017.
222
+
223
+ Christian F Perez, Felipe Petroski Such, and Theofanis Karaletsos. Generalized hidden parameter mdps: Transferable model-based rl in a handful of trials. AAAI Conference On Artifical Intelligence, 2020.
224
+
225
+ Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference. The MIT Press, 2017.
226
+
227
+ Peter J Rousseeuw. Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. Journal of computational and applied mathematics, 20:53–65, 1987.
228
+
229
+ Jürgen Schmidhuber. Developmental robotics, optimal artificial curiosity, creativity, music, and the fine arts. Connection Science, 18(2):173–187, 2006.
230
+
231
+ B. Schölkopf. Artificial intelligence: Learning to see and act (News & Views). Nature, 518(7540): 486–487, 2015.
232
+
233
+ Bernhard Schölkopf. Causality for machine learning. arXiv preprint arXiv:1911.10500, 2019.
234
+
235
+ Jiayu Yao, Taylor Killian, George Konidaris, and Finale Doshi-Velez. Direct policy transfer via hidden parameter markov decision processes. In LLARLA Workshop, FAIM, volume 2018, 2018.
236
+
237
+ Luisa Zintgraf, Kyriacos Shiarlis, Maximilian Igl, Sebastian Schulze, Yarin Gal, Katja Hofmann, and Shimon Whiteson. Varibad: A very good method for bayes-adaptive deep rl via meta-learning. arXiv preprint arXiv:1910.08348, 2019.
238
+
239
+ # A IMPLEMENTATION DETAILS FOR EXPERIMENT DISCOVERY
240
+
241
+ # A.1 PLANNER
242
+
243
+ The Experiment Planner consisted of a uniform distribution planner for a horizon of 6 control signals. The planner was trained using the Cross Entropy Method Model Predictive Control (Camacho & Alba (2013); De Boer et al. (2005)) on the true environment. We sampled 40 plans per iteration from the distribution initialized to uniform U(controlLow, controlHigh). Each of the sampled plans are applied to each of the training environments and the top $10 \%$ of the plans are used to update the distribution.
244
+
245
+ ![](images/aed96a8d6c6d91e88dd7adbfebccc0327a701f19d62f6844b005e1919b787e3b.jpg)
246
+ Figure 6: Overview of training. The experiment planner generates a trajectory of actions which is applied to each of the environments with varying causal factors namely mass, shape and size of blocks. For each environment, an observation trajectory or state $S ^ { ( i ) } \in \mathbb { S }$ is obtained. A simple model with fixed low expressive power is used to approximate the generative model for $S$ . The "information overflow" $L ( S | M )$ is returned as negative reward forcing $\mathbb { S }$ to be caused by few causal factors.
247
+
248
+ # A.2 TRAINING ENVIRONMENTS
249
+
250
+ The training environments vary in each experiment. In Section 4.3, we utilize 3 setups, Mass, SizeMass and ShapeSizeMass. For Mass, we allow the agent to access 5 environments with masses varying from $0 . 1 ~ \mathrm { k g }$ to $0 . 5 ~ \mathrm { k g }$ . In SizeMass, the agent has access to 30 environments with masses varying uniformly from 0.1 to $0 . 5 \mathrm { k g }$ and sizes from 0.05 to 0.1 meters. Finally, in ShapeSizeMass, the agent has access to 60 environments, with masses varying uniformly from 0.1 to $0 . 5 \mathrm { k g }$ , sizes from 0.05 to 0.1 meters and shapes either being cubes or spheres. During experiment discovery, in each environment, the agent has access to the position of the block in the environment along with its quaternion orientation.
251
+
252
+ The total number of causal causal factors of each environment are rather large in number due to the fact that the simulator is a complex realistic physics engine. Examples of the causal factors in the environment include gravity, friction coefficients between all on interacting surfaces, shapes, sizes and masses of blocks, control signal frequencies of the environment. However, we only vary 1 during Mass, 2 during SizeMass and 3 during ShapeSizeMass.
253
+
254
+ # A.3 CURIOSITY REWARD CALCULATION
255
+
256
+ We predetermine the minimum description length of the clustering model $L ( M )$ by assuming that the observations $O _ { 0 : T }$ , obtained by applying experimental behavior $a _ { 0 : T }$ are produced by a bi-modal generator distribution, where each mode corresponds to either a low or high (quantized) value of a causal factor. This also ensures that $L ( M )$ is as small as possible. The planner, eq. (5) solves the following optimization problem:
257
+
258
+ $$
259
+ \begin{array} { r l } { \underset { a _ { 0 : T } \in A ^ { T } } { \mathrm { a r g } \mathrm { m a x } } [ \mathrm { m i n } \{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \prime } ) : o _ { 0 : T } \in O , o _ { 0 : T } ^ { \prime } \in O ^ { \prime } \} - } & { \mathrm { } \mathrm { m a x } \{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \prime \prime } ) : o _ { 0 : T } ^ { \prime \prime } , o _ { 0 : T } \in O \} - } \\ { \mathrm { m a x } \{ d ( o _ { 0 : T } ^ { \prime } , o _ { 0 : T } ^ { \prime \prime } ) : o _ { 0 : T } ^ { \prime } , o _ { 0 : T } ^ { \prime \prime \prime } \in O ^ { \prime } \} ] } \end{array}
260
+ $$
261
+
262
+ the distance function $d ( \cdot , \cdot )$ in the space of trajectories is set to be Soft Dynamic Time Warping (Cuturi $\&$ Blondel (2017)). The trajectory length $T$ is 6 control steps long. The objective is a modified version of the Silhouette Score (Rousseeuw (1987)).
263
+
264
+ Intuitively, Objective (8) expresses the ability of a low complexity model, assumed to be bi-modal, to encode the state $S = o _ { 0 : T }$ . If multiple causal factors control $S$ , then the Minimum Description Length of $L ( S )$ will be high. Subsequently, since $M$ is a simple model, the deviation of $S$ from $M$ will be high i.e. $L ( S | M )$ will be high resulting in a low value of the optimization objective. $O$ and $O ^ { \prime }$ correspond to clusters of outcomes which quantize the values of a causal factor isolated by $a _ { 0 : T }$ $O _ { 0 : T } , o _ { 0 : T } ^ { \prime \prime } \in S$ correspond to trajectories of states i.e. observations obtained by applying $a _ { 0 : T }$ to environments with say, low values of a causal factor while $o _ { 0 : T } ^ { \prime } , o _ { 0 : T } ^ { \prime \prime \prime } \in O ^ { \prime }$ correspond to trajectories of observations i.e. state obtained by applying $a _ { 0 : T }$ to environments with say, high values of the same causal factor. Objective (8) attempts to ensure that these clusters are far apart from each other and are tight i.e. a simple model $M$ encodes $S$ well.
265
+
266
+ We further motivate how this formulation allows disentanglement of causal factors. A central assumption is that causal factors are independent, by definition, i.e. Independent Mechanisms Assumption Peters et al. (2017). Consider the outcome $S$ obtained by applying an action sequence $a _ { 0 : T }$ to a set of environments. If the action sequence $a _ { 0 : T }$ results in multiple causal factors affecting the outcome $S$ , the Kolmogorov complexity of $S$ will be high. The reason for this is that each causal factor has its own independent causal mechanism (Peters et al. (2017); Parascandolo et al. (2018)) that affects $S$ . Thus, given this independence, the information in $S$ will be a sum of the information “injected” into it from the multiple causes. Conversely, if the outcome $S$ obtained by applying an action sequence $a _ { 0 : T }$ has a lower Kolmogorov Complexity, then $S$ is caused by fewer causal factors. Causal Curiosity attempts to reduce this complexity of $S$ , by assuming a simple generative model $M$ is sufficient to encode $S$ . Thus for experimental behaviors which allow several causes to affect $S$ , the “overflow” of $S$ from $M$ will be high and subsequently the causal curiosity reward will be low. Thus, post-optimization of the objective, we arrive at an action sequence that allows for disentanglement of the causal factors.
267
+
268
+ # B IMPLEMENTATION DETAILS FOR TRANSFER
269
+
270
+ In Section 4.4, we show the utility of learning causal representations in 2 separate experimental setups. During TransferMass, the agent has access to 10 environments during training, with masses ranging from 0.1 to $0 . 5 \mathrm { k g }$ . At test time, the agent is required to perform the place-and-orient task masses 2 masses - $0 . 7 \mathrm { k g }$ and $0 . 7 5 \mathrm { k g }$ . During TransferSizeMass, the agent has access to 10 environments during training, with sizes from either 0.01 or $0 . 0 5 \mathrm { m }$ and masses ranging from 0.1 to $0 . 5 \mathrm { k g }$ . At test time the agent is asked to perform the task on 2 environments with masses $0 . 7 \mathrm { k g }$ and $0 . 7 5 \mathrm { k g }$ with sizes $= 0 . 0 5 \mathrm { m }$ .
271
+
272
+ We find that testing with large and light blocks increase the chances of accidental goal completions. Thus, during test-time, we use environments with high masses for out-of-distribution testing. The causal representation is concatenated to the state of the environment as a contextual input and supplied to a PPO-Optimized Actor-Critic Policy. The policy network consists of 2 hidden layers with 256 and 128 units respectively. The experiments are parallelized on 10 CPUs and implemented using stable baselines (Hill et al. (2018)).
273
+
274
+ The agent receives a dense reward at each time step during the maximizing external reward phase (Figure 1), the negative of the distance of the block from the goal position scaled by factor of 1000. The control signal was repeated 10 times to the actuators of the motors on each finger.
275
+
276
+ # C IMPLEMENTATION DETAILS FOR SECTION 4.2
277
+
278
+ In section 4.2, we study how the acquired experimental behaviors obtained through Causal Curiosity can be used as pre-training for a variety of downstream tasks. The Vanilla CEM depicts the cost of training an experiment planner from scratch to maximize an external dense reward where the agent minimizes the distance between the position of a block in an environment from the goal in the Lifting setup and imparts a velocity to the block along a particular direction in the Travel setup.
279
+
280
+ $$
281
+ R ( a _ { 0 : T } ) = - \sum _ { t } d i s t ( g o a l _ { t } - b l o c k _ { t } )
282
+ $$
283
+
284
+ The second baseline (Additive Reward) studies the setup when the agent receives both the curiosity signal and the external reward and attempts to maximize both. The agent receives access all the
285
+
286
+ training environments with varying causal factors and must simultaneously maximize both curiosity and the task reward. The equation below shows the reward maximized for the Lifting task.
287
+
288
+ $$
289
+ \begin{array} { r l r } { \displaystyle R ( a _ { 0 : T } ) = \sum _ { e n v s } \sum _ { t } ^ { T } - d i s t ( g o a l _ { t } - b l o c k _ { t } ) + } & \\ { \displaystyle [ \operatorname* { m i n } \{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \prime } ) : o _ { 0 : T } \in O , o _ { 0 : T } ^ { \prime } \in O ^ { \prime } \} - } & { \operatorname* { m a x } \{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \prime \prime } ) : o _ { 0 : T } ^ { \prime \prime } , o _ { 0 : T } \in O \} - } & \\ { \operatorname* { m a x } \{ d ( o _ { 0 : T } ^ { \prime } , o _ { 0 : T } ^ { \prime \prime \prime } ) : o _ { 0 : T } ^ { \prime } , o _ { 0 : T } ^ { \prime \prime \prime } \in O ^ { \prime } \} ] } & \end{array}
290
+ $$
291
+
292
+ The curious agent first acquired the experimental behavior by interacting with multiple environments with varying causal factors. The lifting skill was obtained during Mass, when the agent attempted to differentiate between multiple blocks of varying mass. The curious agent trained for 600,000 time steps on the curiosity reward. The acquired behavior was then applied to the downstream lifting task and fine tuned to external rewards. The Vanilla CEM baseline had an identical structure to that of the Curious agent, and received only external reward as in Equation (9). The additive agent simultaneously optimized both external reward and the curiosity reward as in Equation (10).
293
+
294
+ # D INTUITION FOR DEFINITION OF CAUSAL FACTORS
295
+
296
+ We begin with a simple example of a person walking on earth. This person experiences various physical processes while interacting in her world, for example gravity, friction, wind etc. These physical processes affect the outcome of interactions of the person with her environment. For example, while jumping on earth, the human experiences gravity which affects the outcome of her jump, the fact that she falls back to the ground. Additionally, these physical processes (or causal mechanisms) are parameterized by causal factors, for example, acceleration constant due to gravity $g = 9 . 8 m / s ^ { 2 }$ on earth, or coefficients of friction between her feet and the ground which assume particular numerical values.
297
+
298
+ These causal factors may vary across multiple environments. For example, the person may walk on sand or on ice, surfaces with varying frictional values. Thus the outcome of running on such surfaces will vary, running on sand will require significant effort, while running on ice may result in the person slipping. Thus the coefficient of friction between the person’s feet and the surface she walks on affects the outcome of a particular behavior in said environment. In our definition, $h _ { j }$ are causal factors such friction with some particular coefficient of friction, or gravity with acceleration constant $g$ or other. $H$ is the global set containing all such causal factors.
299
+
300
+ Now we ask the question (which we subsequently answer), given multiple environments, how would a human characterize each of them depending on the value of a causal factor? Through experimental behaviors. The human in the above example would attempt to run in each of the environments she encountered, be it on sand, on ice, in mud etc. If she slipped in an environment, she would characterize it as slippery. If she didn’t, she would characterize it as non-slippery. We attempt to equip our agent with similar logic. The “sequence of actions” $\left( { { a _ { 0 : T } } } \right)$ described in our paper corresponds to the human running. The state $S ^ { ( i ) }$ in the environment $e ^ { ( i ) }$ consisting of the sequence of observations $\left( o _ { 0 : T } \right)$ corresponds to the outcome of running. $S$ might belong to either of the clusters of outcomes $S$ or $S ^ { \prime }$ corresponding to slipping or not slipping.
301
+
302
+ # E SCALABILITY LIMITATION
303
+
304
+ We utilize the extremely popular One-Factor-at-a-time (OFAT) general paradigm of scientific investigation, as an inspiration for our method. In the case of many hundreds of causal factors, the complexity of this method will scale exponentially. However, we believe that this would indeed be the case given a human experimenter attempting to discover the causation in any system she is studying. Learning about causation is a computationally expensive affair. We point the reader towards a wealth of material on the design of scientific experiments and more specifically the lack of scalability of OFAT (Fisher (1936); Hicks (1964); Czitrom (1999)). Nevertheless, OFAT remains the de facto standard for scientific investigation.
305
+
306
+ 1: Input: Unseen Test Environment env, trained Planner and Causal Inference Module
307
+ 2: Initialize causal $R e p = [ ]$
308
+ 3: Initialize training environment set Envs
309
+ 4: for $\mathbf { k }$ in range(K) do
310
+ 5: Reset env
311
+ 6: Sample experimental behavior $a _ { 0 : T } \sim \mathrm { C E M } ( \cdot | \ c a u s a l R e p )$
312
+ 7: Apply $a _ { 0 : T }$ to env . Exploration Phase
313
+ 8: Collect $S = o _ { 0 : T }$
314
+ 9: Use learnt $q _ { M } ( z | S )$ for cluster assignment i.e. $z _ { k } = q _ { M } ( z | s , c a u s a l R e p )$
315
+ 10: Append $z _ { k }$ to causalRep . Causal Inference Module
316
+ 11: Learn a policy conditioned on causal factors $a _ { t } \sim \pi ( \cdot | o _ { t } , z _ { 0 : K } )$ to maximize external reward.
parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_content_list.json ADDED
@@ -0,0 +1,1631 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "CAUSAL CURIOSITY: RL AGENTS DISCOVERING SELF-SUPERVISED EXPERIMENTS FOR CAUSAL REPRESENTATION LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 759,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 398,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 260,
32
+ 544,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Humans show an innate ability to learn the regularities of the world through interaction. By performing experiments in our environment, we are able to discern the causal factors of variation and infer how they affect the dynamics of our world. Analogously, here we attempt to equip reinforcement learning agents with the ability to perform experiments that facilitate a categorization of the rolled-out trajectories, and to subsequently infer the causal factors of the environment in a hierarchical manner. We introduce a novel intrinsic reward, called causal curiosity, and show that it allows our agents to learn optimal sequences of actions, and to discover causal factors in the dynamics. The learned behavior allows the agent to infer a binary quantized representation for the ground-truth causal factors in every environment. Additionally, we find that these experimental behaviors are semantically meaningful (e.g., to differentiate between heavy and light blocks, our agents learn to lift them), and are learnt in a self-supervised manner with approximately 2.5 times less data than conventional supervised planners. We show that these behaviors can be re-purposed and fine-tuned (e.g., from lifting to pushing or other downstream tasks). Finally, we show that the knowledge of causal factor representations aids zero-shot learning for more complex tasks. ",
40
+ "bbox": [
41
+ 233,
42
+ 289,
43
+ 766,
44
+ 525
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 547,
55
+ 334,
56
+ 564
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Discovering causation in environments an agent might encounter remains an open and challenging problem for causal reinforcement learning (Schölkopf (2015), Bengio et al. (2013), Schölkopf (2019)). Most approaches take the form of BAMDPs (Bayes Adaptive Markov Decision Processes) (Zintgraf et al. (2019)) or Hi-Param MDP (Hidden Parameter MDPs) (Doshi-Velez & Konidaris (2016); Yao et al. (2018); Killian et al. (2017); Perez et al. (2020)) which condition the transition $p ( s _ { t + 1 } | s _ { t } , a _ { t } ; H )$ and/or reward function $R ( r _ { t + 1 } | s _ { t } , a _ { t } , s _ { t + 1 } ; H )$ of each environment on hidden parameters (also referred to as causal factors in some of the above studies). Let $s \\in { \\mathcal { S } } , a \\in { \\mathcal { A } }$ $r \\in \\mathcal { R }$ , $H \\in { \\mathcal { H } }$ where $s , { \\mathcal { A } } , { \\mathcal { R } }$ , and $\\mathcal { H }$ are the set of states, actions, rewards and feasible hidden parameters. In the physical world and in the case of mechanical systems, examples of the parameter $h _ { j } \\in \\mathcal { H }$ include gravity, coefficients of friction, masses and sizes of objects. Typically, $H$ is treated as a latent variable for which an embedding is learned during training, using variational methods (Kingma et al. (2014); Ilse et al. (2019)). Let $s _ { 0 : T }$ be the entire state trajectory of length $T$ . Similarly, $a _ { 0 : T }$ is the sequence of actions applied during that trajectory by the agent that results in $s _ { 0 : T }$ . In an environment parameterized by these causal factors, these latent variable approaches define a probability distribution over the entire sequence of (rewards, states, actions) conditioned on a latent $z$ as $p ( r _ { 0 : T } , s _ { 0 : T } , a _ { 0 : T - 1 } ; z )$ that factorizes as ",
63
+ "bbox": [
64
+ 173,
65
+ 579,
66
+ 825,
67
+ 800
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "equation",
73
+ "img_path": "images/5f07918a1ce73cbad639a0da140097422f02d51aeeb8e0638df921e361568b4c.jpg",
74
+ "text": "$$\n\\prod _ { i = 1 } ^ { T - 1 } p ( r _ { t + 1 } | s _ { t } , a _ { t } , s _ { t + 1 } , z ) p ( s _ { t + 1 } | s _ { t } , a _ { t } , z ) p ( a _ { t } | s _ { t } , z )\n$$",
75
+ "text_format": "latex",
76
+ "bbox": [
77
+ 323,
78
+ 803,
79
+ 674,
80
+ 845
81
+ ],
82
+ "page_idx": 0
83
+ },
84
+ {
85
+ "type": "text",
86
+ "text": "due to the Markov assumption. At test time, the agent infers the causal factor associated with its environment by observing the trajectories produced by its initial actions that can be issued by any policy such as model-based reinforcement learning. ",
87
+ "bbox": [
88
+ 174,
89
+ 847,
90
+ 825,
91
+ 888
92
+ ],
93
+ "page_idx": 0
94
+ },
95
+ {
96
+ "type": "text",
97
+ "text": "In practice, however, discovering causal factors in a physical environment is prone to various challenges that are caused by the disjointed nature of the influence of these factors on the produced trajectories. More specifically, at each time step, the transition function is affected by a subset of global causal factors. This subset is implicitly defined on the basis of the current state and the action taken. For example, if a body in an environment loses contact with the ground, the coefficient of friction between the body and the ground no longer affects the outcome of any action that is taken. Likewise, the outcome of an upward force applied by the agent to a body on the ground is unaffected by the friction coefficient. We can therefore take advantage of this natural discontinuity to discern causal factors. ",
98
+ "bbox": [
99
+ 174,
100
+ 895,
101
+ 823,
102
+ 924
103
+ ],
104
+ "page_idx": 0
105
+ },
106
+ {
107
+ "type": "text",
108
+ "text": "",
109
+ "bbox": [
110
+ 174,
111
+ 103,
112
+ 825,
113
+ 200
114
+ ],
115
+ "page_idx": 1
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "Without knowledge of how independent causal mechanisms affect the outcome of a particular action in a given state in an environment, it becomes impossible for the agent to conclude where the variation it encountered came from. Unsurprisingly, Hi-Param and BAMDP approaches fail to learn a disentangled embedding for the causal factors, making their behaviors uninterpretable (Perez et al. (2020)). For example, if, in an environment, a body remains stationary under a particular force, the Hi-Param or BAMDP agent may apply a higher force to achieve its goal of perhaps moving the body, but will be unable to conclude whether the \"un-movability\" was caused by high friction or high mass of the body. Additionally, these approaches require human-supervised reward engineering, making it difficult to apply them outside of the simulated environments they are tested in. ",
120
+ "bbox": [
121
+ 174,
122
+ 208,
123
+ 825,
124
+ 333
125
+ ],
126
+ "page_idx": 1
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "Our goal is, instead of focusing on maximizing reward for some particular task, to allow agents to discover causal processes through exploratory interaction. During training, our agents discover self-supervised experimental behaviors which they apply to a set of training environments. These behaviors allow them to learn about the various causal mechanisms that govern the transitions in each environment. During inference in a novel environment, they perform these discovered behaviors sequentially and use the outcome of each behavior to infer the embedding for a single causal factor (Figure 1). ",
131
+ "bbox": [
132
+ 174,
133
+ 340,
134
+ 825,
135
+ 438
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "The main challenge while learning a disentangled representation for the causal factors of the world is that several causal factors may affect the outcome of behaviors in each environment. For example, when pushing a body on the ground, the outcome, i.e., whether the body moves, or how far the body is pushed, depends on several factors, e.g., mass, shape and size, frictional coefficients, etc. However, if, instead of pushing on the ground, the agent executes a perfect grasp-and-lift behavior, only mass will affect whether the body is lifted off the ground or not. ",
142
+ "bbox": [
143
+ 174,
144
+ 444,
145
+ 825,
146
+ 527
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "Thus, it is clear that not all experimental behaviors are created equal and that the outcomes of some behaviors are caused by fewer causal factors than others. Our agents learn these behaviors without supervision using causal curiosity, an intrinsic reward. The outcome of a single such experimental behavior is then used to infer a binary quantized embedding describing the single isolated causal factor. Even though causal factors of variation in a physical world are easily identifiable to humans, a concrete definition is required to back up our proposed method. We conjecture that the causality of a factor of variation depends on the available actions to the agent. If the set of actions that an agent can take is very limited, there is no way for it to discern a diverse set of causal factors in the environment. ",
153
+ "bbox": [
154
+ 173,
155
+ 535,
156
+ 825,
157
+ 646
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Definition 1 (Causal factors). Consider the POMDP $( \\mathcal { O } , \\mathcal { S } , \\mathcal { A } , p , r )$ with observation space $\\mathcal { O }$ , state space $s$ , action space $\\mathcal { A }$ , the transition function $p$ , and the reward function $r$ . Let $o _ { 0 : T } \\in \\mathcal { O } ^ { T }$ denotes a trajectory of observations and $T$ be the length of such trajectories. Let $d ( \\cdot , \\cdot ) : \\mathcal { O } ^ { T } \\times \\mathcal { O } ^ { T } \\to \\mathbb { R } _ { + }$ be a distance function defined on the space of trajectories of length $T$ . The set $H = \\{ h _ { 1 } , h _ { 2 } , \\ldots , h _ { k } \\}$ is called a set of $\\epsilon -$ causal factors if for every $h _ { j } \\in H$ , there exists a unique sequence of actions $a _ { 0 : T }$ that clusters the state trajectories into two sets $S$ and $S ^ { \\prime }$ such that ",
164
+ "bbox": [
165
+ 173,
166
+ 650,
167
+ 825,
168
+ 734
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "equation",
174
+ "img_path": "images/6dbdf27818f1a75374388ab52359782af6a86e2e974d8a56f8b9c45ab6ad7fe5.jpg",
175
+ "text": "$$\n\\operatorname* { m i n } \\{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \\prime } ) : o _ { 0 : T } \\in O , o _ { 0 : T } ^ { \\prime } \\in O ^ { \\prime } \\} > \\epsilon\n$$",
176
+ "text_format": "latex",
177
+ "bbox": [
178
+ 344,
179
+ 741,
180
+ 653,
181
+ 758
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "and that $h _ { j }$ is the cause of the trajectory of states obtained i.e., ",
188
+ "bbox": [
189
+ 173,
190
+ 765,
191
+ 584,
192
+ 780
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "equation",
198
+ "img_path": "images/fb96b4ed1f6b5b8d9e540a07c1941c8af72956bc332b79b894efb3ac455b9721.jpg",
199
+ "text": "$$\np ( o _ { 0 : T } | d o ( h _ { j } = k ) , a _ { 0 : T } ) \\neq p ( o _ { 0 : T } | d o ( h _ { j } = k ^ { \\prime } ) , a _ { 0 : T } ) \\forall k \\neq k ^ { \\prime }\n$$",
200
+ "text_format": "latex",
201
+ "bbox": [
202
+ 289,
203
+ 786,
204
+ 709,
205
+ 805
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Intuitively, a factor of variation affecting a set of environments is called causal if there exists a sequence of actions available to the agent where the resultant trajectories are clustered into two or more sets (for simplicity here we assume binary clusters). This is analogous to the human ability to conclude whether objects are heavy or light, big or small. For a gentle introduction to the intuition about this definition, we refer the reader to Appendix D. ",
212
+ "bbox": [
213
+ 174,
214
+ 818,
215
+ 825,
216
+ 888
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "According to Def. 1, a causal factor is a parameter in the environment whose value, when intervened on (i.e. varied) over a set of values, results in trajectories of states that are divisible into disjoint clusters under a particular sequence of actions. These clusters represent the quantized values of the causal factor. For example, mass, which is a causal factor of a body, under an action sequence of a grasping and lifting motion, results in 2 clusters, liftable (low mass) and not liftable (high mass). However, such an action sequence is not known in advance. Therefore, discovering a causal factor in the environment boils down to finding a sequence of actions that makes the effect of that factor prominent by producing clustered trajectories for different values of that environmental factor. ",
223
+ "bbox": [
224
+ 173,
225
+ 895,
226
+ 823,
227
+ 924
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "image",
233
+ "img_path": "images/bd8a45b5a87224e98efb1cf1c4411698bcdd09b5472eb0da2a01ba7932658e4e.jpg",
234
+ "image_caption": [
235
+ "Figure 1: Overview of Inference. The exploration loop produces a series of $K$ experiments allowing the agent to infer the representations for $K$ causal factors. After exploration, the agent utilizes the acquired knowledge for downstream tasks. "
236
+ ],
237
+ "image_footnote": [],
238
+ "bbox": [
239
+ 184,
240
+ 103,
241
+ 807,
242
+ 268
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "",
249
+ "bbox": [
250
+ 174,
251
+ 354,
252
+ 825,
253
+ 439
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Using the above, we propose an intrinsic reward, which allows our agents to discover experimental behaviors which are semantically meaningful and can be used to re-train for downstream tasks, resulting in high sample efficiency. Our work, therefore, forms an important link between structured representation learning and skill discovery, two largely disjoint fields in RL, which stand to benefit from each other. ",
260
+ "bbox": [
261
+ 174,
262
+ 445,
263
+ 825,
264
+ 515
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "The contributions of the work are as follows: ",
271
+ "bbox": [
272
+ 176,
273
+ 522,
274
+ 468,
275
+ 537
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "• We equip agents with the ability to perform experiments and behave meaningfully in a set of environments in an unsupervised manner. These behaviors can expose or obfuscate specific independent causal mechanisms that occur in the world of the agent, allowing the agent to learn about each in the absence of the others, an important human behavioral trait. \n• We introduce an intrinsic reward, causal curiosity, which allows our agents to discover these behaviors without human-engineered rewards. The outcomes of the experiments are used to learn a disentangled quantized binary representation for the causal factors of the environment, analogous to the human ability to conclude whether objects are light/heavy, big/small etc. \n• Through extensive experiments, we conclude that knowledge of the causal factors aids sample efficiency in two ways - first, that the knowledge of the causal factors aids transfer learning across multiple environments, and, second, that the experimental behaviors acquired can be repurposed for downstream tasks. ",
282
+ "bbox": [
283
+ 217,
284
+ 551,
285
+ 825,
286
+ 752
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "2 METHOD ",
293
+ "text_level": 1,
294
+ "bbox": [
295
+ 174,
296
+ 785,
297
+ 282,
298
+ 801
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Consider a set of $N$ environments $\\mathcal { E }$ with $e ^ { ( i ) } \\in \\mathcal { E }$ where $e ^ { ( i ) }$ denotes the $i ^ { t h }$ environment. ",
305
+ "bbox": [
306
+ 171,
307
+ 818,
308
+ 761,
309
+ 834
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "The letter $H$ is overloaded. While $H$ is a set of global causal factors (as defined in Def. 1) such that \n$h _ { j } \\in H$ , each causal factor $h _ { j }$ is itself a random variable which assumes a particular value for every ion of an environment. T. For each environment $e ^ { ( i ) }$ is represented by a set of causal factorsepresents the disentangled embedding \n$\\{ h _ { j } ^ { ( i ) } \\forall j \\}$ $e ^ { ( i ) }$ $( z _ { ( 0 ) } ^ { ( i ) } , z _ { ( 1 ) } ^ { ( i ) } . . . z _ { ( K - 1 ) } ^ { ( i ) } )$ \nvector, such that z(i)(j) $h _ { j } ^ { ( i ) }$ . ",
316
+ "bbox": [
317
+ 173,
318
+ 840,
319
+ 825,
320
+ 926
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "Algorithm 1 Training Scheme ",
327
+ "text_level": 1,
328
+ "bbox": [
329
+ 174,
330
+ 103,
331
+ 377,
332
+ 118
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "1: Initialize $j = 0$ 2: Initialize training environment set Envs 3: for iteration m to M do . Experiment Planner Training Loop 4: Sample experimental behavior $a _ { 0 : T } \\sim \\mathbf { C E M } ( \\cdot )$ 5: for $i ^ { \\star h }$ env in Envs do 6: Apply $a _ { 0 : T }$ to env 7: $\\mathbf { C o l l e c t } \\ S ^ { ( } i ) = O _ { 0 : T } ^ { ( i ) }$ 8: Reset env 9: Calculate $- L ( S | M )$ given that $M$ is bimodal clustering model $\\triangleright$ Calculate Curiosity \n10: Update CEM(·) distribution with highest reward trajectories \n11: Use learnt $q _ { M } ( z | S )$ for cluster assignment of each env in Envs i.e. $z _ { j } ^ { ( i ) } = q _ { M } ( z | S ^ { ( i ) } )$ \n12: Update $j = j + 1$ \n13: Repeat from step 2, first setting $E n v s = \\{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = 0 \\}$ and then, setting $E n v s = \\{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = 1 \\}$ ",
339
+ "bbox": [
340
+ 176,
341
+ 121,
342
+ 826,
343
+ 339
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "2.1 TRAINING THE EXPERIMENT PLANNER ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 174,
353
+ 364,
354
+ 486,
355
+ 381
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "To learn about causal processes through interaction, the agent must produce a sequence of actions $a _ { 0 : T - 1 }$ that we call experimental behavior, which, when applied to environment $e ^ { ( i ) } \\in \\mathcal { E }$ , produces a sequence of observations (state) $s ^ { ( i ) } = [ o _ { 0 } ^ { ( i ) } , o _ { 1 } ^ { ( i ) } . . o _ { T } ^ { ( i ) } ]$ , which is then used to infer the value of the embedding for a single causal factor $z _ { ( j ) } ^ { ( i ) }$ . ",
362
+ "bbox": [
363
+ 173,
364
+ 391,
365
+ 825,
366
+ 460
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "We motivate this using model selection criterion. Normally in model selection applications, the observations are fixed and the goal is to find a model $M ^ { * }$ that is closest to reality, as represented by: ",
373
+ "bbox": [
374
+ 173,
375
+ 465,
376
+ 823,
377
+ 494
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/674320465fbf664b9f9d6fc63df220b40acb91a1a1b9f51d56d1755078c571b4.jpg",
384
+ "text": "$$\nM ^ { * } = \\arg \\operatorname* { m i n } _ { M } ( L ( M ) + L ( S | M ) )\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 382,
388
+ 501,
389
+ 616,
390
+ 526
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "where $L ( \\cdot )$ is the description length. However, here, the situation is reversed. A simple bi-modal clustering model is fixed, motivated by Definition 1. Then, the agent is motivated to produce actions that result in observations that are best explained by this model. These discovered action sequences are the experimental behaviors we desire. ",
397
+ "bbox": [
398
+ 174,
399
+ 534,
400
+ 825,
401
+ 589
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/66d979c69227e9deb138fe1487097ef339ba92be5022f866fa33b2a2abbc751e.jpg",
408
+ "text": "$$\n\\begin{array} { r } { \\boldsymbol { a } _ { 0 : T } ^ { * } = \\underset { \\boldsymbol { a } _ { 0 : T } } { \\arg \\operatorname* { m i n } } ( L ( \\boldsymbol { M } ) + L ( \\boldsymbol { S } | \\boldsymbol { M } ) ) } \\end{array}\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 379,
412
+ 595,
413
+ 619,
414
+ 622
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "where each observed trajectory $S = S ( a _ { 0 : T } )$ is a function of the action sequence. As mentioned earlier, the model is fixed in this formulation; hence, the first term $L ( M )$ is constant and not a function of the actions. $- L ( S | M )$ that is fed back to the RL agent as a reward function to maximize. We regard this reward function as causal curiosity. ",
421
+ "bbox": [
422
+ 174,
423
+ 628,
424
+ 825,
425
+ 685
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Note that since each causal factor has its own independent causal mechanism that causes $S$ , the MDL of $S$ will be higher if multiple causal factors cause $S$ . On the contrary, if the agent produces actions which result in an $S$ that is easily explained by a low-capacity bi-modal model $M$ , then it will imply that $S$ is caused by fewer causal factors. Consequently, the causal curiosity reward for such an action sequence, $- L ( S | M )$ , will be high. Therefore, causal curiosity favors experimental behaviors that result in observations caused by few causal factors - thereby allowing us to use $S$ to infer a representation for a single causal factor. For details, please refer Appendix A. ",
432
+ "bbox": [
433
+ 174,
434
+ 691,
435
+ 825,
436
+ 790
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "2.2 CAUSAL INFERENCE MODULE ",
443
+ "text_level": 1,
444
+ "bbox": [
445
+ 176,
446
+ 806,
447
+ 424,
448
+ 820
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "By maximizing the causal curiosity reward it is possible to achieve behaviors which result in trajectories of states only caused by a single hidden parameter. However, we wish to use the outcome of performing these experimental behaviors in each environment to infer a representation for the causal factor isolated by the experiment in question. ",
455
+ "bbox": [
456
+ 174,
457
+ 832,
458
+ 823,
459
+ 888
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "We achieve this through cluster membership. After training the Model Predictive Control Planner (Camacho & Alba (2013)), we sample from an action sequence $a _ { 0 : T }$ and apply it to each of the training environments. The learnt clustering model $M$ is then used to infer a representation for each environment using the collected outcome $\\bar { S } ^ { ( i ) }$ obtained by applying $a _ { 0 : T }$ to each environment. ",
466
+ "bbox": [
467
+ 173,
468
+ 895,
469
+ 821,
470
+ 924
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "",
477
+ "bbox": [
478
+ 171,
479
+ 103,
480
+ 823,
481
+ 133
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "equation",
487
+ "img_path": "images/bf8c27cdf0e531a4b0528bac7ee0b50ba01df0e0a0015f5ac8d5cbc7c69b4a76.jpg",
488
+ "text": "$$\nz _ { j } ^ { ( i ) } = q _ { M } ( z | S ^ { ( i ) } )\n$$",
489
+ "text_format": "latex",
490
+ "bbox": [
491
+ 437,
492
+ 140,
493
+ 560,
494
+ 162
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "This corresponds to Step 11 of Algorithm (1). The representation learnt is binary in nature corresponding to the quantization of the continuous spectrum of values a causal factor takes in the training set into high and low values. Note however that a binary quantized embedding is not a necessary part of our method. A dense embedding may alternatively be learnt here similar to (Perez et al. (2020); Zintgraf et al. (2019)) using approximate variational inference. However, performing interventions on a dense embedding (Section 2.3) increases the computational complexity exponentially. Balancing space and time complexity, we report results using the quantized binary form of Equation (6). We discuss the implications of increasing the complexity of $z _ { j } ^ { ( i ) }$ in the discussion. ",
501
+ "bbox": [
502
+ 173,
503
+ 165,
504
+ 825,
505
+ 282
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "2.3 INTERVENTIONS ON BELIEFS ",
512
+ "text_level": 1,
513
+ "bbox": [
514
+ 176,
515
+ 297,
516
+ 413,
517
+ 313
518
+ ],
519
+ "page_idx": 4
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Having learnt about the effects of a single causal factor of the environment we wish to learn such experimental behaviors for each of the remaining hidden parameters that may vary in an environment. To achieve this, in an ideal setting, the agent would require access to the generative mechanism of the environments it encounters. Ideally, it would hold the values of the causal factor already learnt about constant i.e. $d o ( h _ { j } = c o n s t a n t )$ , and intervene over (vary the value of) another causal factor over a set of values $K$ i.e. $d o ( h _ { j } = k )$ such that $k \\in K$ . For example, if a human scientist were to study the effects of a causal factor, say mass of a body, she would hold the values of all causal factors constant, (interact with cubes of the same size and external texture) and vary only mass to see how it affects the outcome of specific behaviors she applies to each body. ",
524
+ "bbox": [
525
+ 173,
526
+ 323,
527
+ 825,
528
+ 449
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "However, in the real-world the agent does not have access to the generative mechanism of the environments it encounters, but merely has the ability to act in them. Thus, it can intervene on the representations of a causal factor of the environment i.e. $d o ( z _ { i } = c o n s t a n t )$ . For, example having learnt about gravity, the agent picks all environments it believes have low gravity, and uses them to learn about a separate causal factor say, friction. ",
535
+ "bbox": [
536
+ 174,
537
+ 455,
538
+ 825,
539
+ 526
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "This corresponds to Step 13 of Algorithm (1). Thus, to learn about the $j ^ { t h }$ causal factor, we repeat steps 3 onwards on each of the clusters obtained for the $j - 1 ^ { t h }$ . ",
546
+ "bbox": [
547
+ 176,
548
+ 532,
549
+ 820,
550
+ 560
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "equation",
556
+ "img_path": "images/ab456d01140a053c903457f38c5c5b312456e2a5d8114c0d19ff26d781e35c6d.jpg",
557
+ "text": "$$\nE n v s = \\{ e ^ { ( i ) } : z _ { j - 1 } ^ { ( i ) } = k \\} , k \\in \\{ 0 , 1 \\}\n$$",
558
+ "text_format": "latex",
559
+ "bbox": [
560
+ 370,
561
+ 568,
562
+ 627,
563
+ 590
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "This process continues in the form of a tree (Figure 4), where for each cluster of environments, a new experiment learns to split the cluster into 2 sub-clusters depending on the value of another hidden parameter. At level $n$ , the agent produces $2 ^ { n }$ experiments and inference models, having already intervened on the binary quantized representations of $n$ causal factors. ",
570
+ "bbox": [
571
+ 174,
572
+ 593,
573
+ 825,
574
+ 650
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "3 RELATED WORK ",
581
+ "text_level": 1,
582
+ "bbox": [
583
+ 176,
584
+ 670,
585
+ 344,
586
+ 685
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "Doshi-Velez & Konidaris (2016) define a class Markov Decision Processes where transition probabilities $p ( s _ { t + 1 } | s _ { t } , a _ { t } ; \\theta )$ depend on a hidden parameter $\\theta$ , whose value is not observed, but its effects are felt. Killian et al. (2017) and Yao et al. (2018) utilize these Hidden Parameter MDPs (Markov Decision Processes) to enable efficient policy transfer, assuming that transition probabilities across states are a function of hidden parameters. Perez et al. (2020) relax this assumption, allowing both transition probabilities and reward functions to be functions of hidden parameters. Zintgraf et al. (2019) approach the problem from a Bayes-optimal policy standpoint, defining transition probabilities and reward functions to be dependent on a hidden parameter characteristic of the MDP in consideration. We utilize this setup to define causal factors. ",
593
+ "bbox": [
594
+ 174,
595
+ 700,
596
+ 825,
597
+ 827
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Substantial attempts have been made at unsupervised disentanglement, most notably, the $\\beta$ -VAE Higgins et al. Burgess et al. (2018), where a combination of factored priors and the information bottleneck force disentangled representations. Kim & Mnih (2018) enforce explicit factorization of the prior without compromising on the mutual information between the data and latent variables, a shortcoming of the $\\beta$ -VAE. Chen et al. (2018) factor the KL divergence into a more explicit form, highlighting an improved objective function and a classifier-agnostic disentanglement metric. Locatello et al. (2018) show theoretically that unsupervised disentanglement (in the absence of inductive biases) is impossible and highly unstable, susceptible to random seed values. They follow this up with Locatello et al. (2020) where they show, both theoretically and experimentally, that pair-wise images provide sufficient inductive bias to disentangle causal factors of variation. However, these works have been applied to supervised learning problems whereas we attempt to disentangle the effects of hidden variables in dynamical environments, a relatively untouched question. ",
604
+ "bbox": [
605
+ 174,
606
+ 827,
607
+ 825,
608
+ 924
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "",
615
+ "bbox": [
616
+ 173,
617
+ 103,
618
+ 825,
619
+ 172
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "Curiosity for robotics is not a new area of research. Schmidhuber (2006), Ngo et al. (2012), Pathak et al. (2017) describe curiosity as the motivation behind the behavior of an agent in an environment for which the outcome is unpredictable, i.e., an intrinsic reward that motivates the agent to explore the unseen portions of the state space (and subsequent transitions). While causal curiosity is an intrinsic reward, it differs from these traditional definitions of curiosity in that it motivates the agent to produce structure in the outcome of its behavior. ",
626
+ "bbox": [
627
+ 174,
628
+ 174,
629
+ 823,
630
+ 256
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "4 EXPERIMENTS ",
637
+ "text_level": 1,
638
+ "bbox": [
639
+ 176,
640
+ 285,
641
+ 326,
642
+ 300
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "Our work has 2 main thrusts - the discovered experimental behaviors and the representations obtained from the outcome of the behaviors in environments. The experimental behaviors are tied to contributions 1 and 2 in the Introduction. The causal factors allow us to achieve contribution 3 in the Introduction. We visualize these learnt behaviors and verify that they are indeed semantically meaningful and interpretable. We quantify the utility of the learned behaviors by using the behaviors as pre-training for a downstream task. In our experimental setup, we verify that these behaviors are indeed invariant to all other causal factors except one. ",
649
+ "bbox": [
650
+ 174,
651
+ 320,
652
+ 825,
653
+ 417
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "We visualize the representations obtained using these behaviors and verify that they are indeed the binary quantized representations for each of the ground truth causal factors that we manipulated in our experiments. Finally, we verify that the knowledge of the representation does indeed aid transfer learning and zero-shot generalizability in downstream tasks. ",
660
+ "bbox": [
661
+ 174,
662
+ 419,
663
+ 825,
664
+ 473
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "Causal World We use the Causal World Simulation (Ahmed et al. (Under submission 2020)) based on the Pybullet Physics engine to test our approach. The simulator consists of a 3-fingered robot, with 3 joints on each finger. We constrain each environment to consist of a single object that the agent can interact with. The causal factors that we manipulate for each of the objects are size, shape and mass of the blocks. The simulator allows us to capture and track the positions and velocities of each of the movable objects in an environment. While, for most experiments, the 3D position and 3D pose of the blocks is used as the state at each time step, we perform ablation studies where less information is provided to the agent. ",
671
+ "bbox": [
672
+ 174,
673
+ 473,
674
+ 825,
675
+ 584
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "4.1 VISUALIZING DISCOVERED BEHAVIORS ",
682
+ "text_level": 1,
683
+ "bbox": [
684
+ 176,
685
+ 609,
686
+ 490,
687
+ 623
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "We would like to analyze whether the discovered experimental behaviors are human interpretable, i.e., are the experimental behaviors discovered in each of the setups semantically meaningful? We find that our agents learn to perform several useful behaviors without any supervision. For instance, to differentiate between objects with varying mass, we find that they acquire a perfect grasp-and-lift behavior with an upward force. In other random seed experiments, the agents learn to lift the blocks by using the wall of the environment for support. To differentiate between cubes and spheres, the agent discovers a pushing behavior which gently rolls the spheres along a horizontal direction. Qualitatively, we find that these behaviors are stable and predictable. See videos of discovered behaviors here (website under construction). ",
694
+ "bbox": [
695
+ 174,
696
+ 638,
697
+ 825,
698
+ 763
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Concurrent with the objective they are trained on, we find that the acquired behaviors impose structure on the outcome when applied to each of the training environments. The outcome of each experimental behavior on the set of training environments results in dividing it into 2 subsets. These subsets correspond to the binary quantized values of a single factor, e.g., large or small, while being invariant to the values of other causal factors of the environments. We also perform ablation studies where instead of providing the full state vector, we provide only one coordinate (e.g., only x, y or z coordinate of the block). We find that causal curiosity results in behaviors that differentiate the environments based on outcomes along the direction provided. For example, when only the $\\mathbf { X }$ coordinate was provided, the agent learned to evaluate mass by applying a pushing behavior along the x direction. Similarly, a lifting behavior was obtained when only the z coordinate was supplied to the curiosity module (Figure 2). ",
705
+ "bbox": [
706
+ 174,
707
+ 771,
708
+ 825,
709
+ 924
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "image",
715
+ "img_path": "images/88d18b1b70f86f723c5c9a304545f39a38019220f7b369ab3dd9c9c67412ae78.jpg",
716
+ "image_caption": [
717
+ "Figure 2: Examples of discovered behaviors. The agent discovers experimental behaviors that allow it to characterize each environmental object in a binary manner, e.g., heavy/light, big small, rollable/not rollable, etc. These behaviors are acquired without any external supervision by maximizing the causal curiosity reward. A, B, C correspond to self-discovered toss, lift-and-spin and roll behaviors respectively. D shows an ablation study, where the agent is only provided the z coordinate of the block in every environment. Each line corresponds to one environment and the z coordinate of the block is plotted with time when the discovered behavior is applied. It learns a lifting behavior, where cluster 1 represents the heavy blocks (z coordinate does not change much) and cluster 2 represents the light blocks $\\mathbf { z }$ increases as block is lifted and then falls when dropped and subsequently increases again when it bounces). "
718
+ ],
719
+ "image_footnote": [],
720
+ "bbox": [
721
+ 179,
722
+ 104,
723
+ 813,
724
+ 321
725
+ ],
726
+ "page_idx": 6
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "4.2 UTILITY OF LEARNED BEHAVIORS FOR DOWNSTREAM TASKS ",
731
+ "text_level": 1,
732
+ "bbox": [
733
+ 174,
734
+ 486,
735
+ 635,
736
+ 500
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "While the behaviors acquired are semantically meaningful, we would like to quantify their utility as pre-training for downstream tasks. We analyze the performance on Lifting where the agent must grasp and lift a block to a predetermined height and Travel, where the agent must impart a velocity to the block along a predetermined direction. We re-train the learnt planner using an external reward for these tasks (Curious). We implement a baseline vanilla Cross Entropy Method optimized Model Predictive Control Planner (De Boer et al. (2005)) trained using the identical reward function and compare the rewards per trajectory during training. We also run a baseline (Additive reward) which explores whether the agent recieves both the causal curiosity reward and the external reward. We find high zero-shot generalizability and quicker convergence as compared to the vanilla CEM planner (Figure ??). We find that maximizing the curiosity reward in addition to simultaneously maximizing external rewards results in suboptimal performance due to our formulation of the curiosity reward. To maximize curiosity, the agent must discover behaviors that divide environments into 2 clusters. Thus in the context of the experimental setups, this corresponds to acquiring a lifting/pushing behavior that allows the agent to lift/impart horizontal velocity to blocks in half of the environments, while not being able to do so in the remaining environments. However, the explicit external reward incentivizes the agent to lift/impart horizontal velocity blocks in all environments. Thus these competing objectives result in sub-par performance. ",
743
+ "bbox": [
744
+ 174,
745
+ 513,
746
+ 825,
747
+ 750
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "4.3 VISUALIZATION OF HIERARCHICAL BINARY LATENT SPACE ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 174,
757
+ 776,
758
+ 622,
759
+ 790
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Our agents discover a disentangled latent space such that they are able to isolate the sources of causation of the variability they encounters in their environments. For every environment, they learn a disentangled embedding vector which describes each of the causal factors. ",
766
+ "bbox": [
767
+ 178,
768
+ 805,
769
+ 823,
770
+ 847
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "To show this, we use 3 separate experimental setups - Mass, SizeMass and ShapeSizeMass where each of the causal factors are allowed to vary over a range of discrete values. During Mass, the agent is allowed access to 5 environments with objects having the same shape (cuboids) and size but differing only in mass. During SizeMass, the agent has access to 30 environments with cuboids having sizes and masses ranging over 6 and 5 values respectively. Finally, during ShapeSizeMass, the agent has access to 60 environments with objects having shapes, sizes and masses ranging over 2, 6, 5, and values respectively. ",
777
+ "bbox": [
778
+ 174,
779
+ 854,
780
+ 825,
781
+ 924
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "image",
787
+ "img_path": "images/8d0cb9d67f34c3e142de473044f931902b4ebb86b24b7f09c85f4164f62cf705.jpg",
788
+ "image_caption": [],
789
+ "image_footnote": [],
790
+ "bbox": [
791
+ 179,
792
+ 101,
793
+ 821,
794
+ 205
795
+ ],
796
+ "page_idx": 7
797
+ },
798
+ {
799
+ "type": "image",
800
+ "img_path": "images/26a347cf44dd8d6fb015c4ab944719c1ed82d32789723592ad4cc3d3c364699d.jpg",
801
+ "image_caption": [
802
+ "Figure 3: Utility of discovered behaviors. We find that the behaviors discovered by the agents while optimizing causal curiosity show high zero-shot generalizability and converge to the same performance as conventional planners for downstream tasks. We also analyze the worst case performance and find that the pre-training ensures better performance than random initialization. The table compares the time-steps of training required on an average to acquire a skill with the time steps required to learn a similar behavior using external reward. We find that the unsupervised experimental behaviors are approximately 2.5 times more sample efficient. We also find that maxizing both curiosity and external reward in our experimental setups results in sub-optimal results. ",
803
+ "Figure 4: Discovered hierarchical latent space. The agent learns experiments that differentiate the full set of blocks in ShapeSizeMass into hierarchical binary clusters. At each level, the environments are divided into 2 clusters on the basis of the value of a single causal factor. We also show the principal components of the trajectories in the top left. For brevity, the full of extent of the tree is not depicted here. For each level of hierarchy $k$ , there are $2 ^ { k }$ number of clusters. "
804
+ ],
805
+ "image_footnote": [],
806
+ "bbox": [
807
+ 240,
808
+ 321,
809
+ 758,
810
+ 577
811
+ ],
812
+ "page_idx": 7
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "",
817
+ "bbox": [
818
+ 173,
819
+ 678,
820
+ 823,
821
+ 707
822
+ ],
823
+ "page_idx": 7
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "During training, the agent discovers a hierarchical binary latent space (Figure 4), where each level of hierarchy corresponds to a single causal factor. The binary values at each level of hierarchy correspond to the high/low values of the causal factor in question. To our knowledge, we obtain the first interpretable latent space describing the various causal processes in the environment of an agent. This implies that it learns to quantify each physical attribute of the blocks it encounters in a completely unsupervised manner. ",
828
+ "bbox": [
829
+ 174,
830
+ 713,
831
+ 825,
832
+ 796
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "4.4 KNOWLEDGE OF CAUSAL FACTORS AIDS TRANSFER ",
839
+ "text_level": 1,
840
+ "bbox": [
841
+ 174,
842
+ 815,
843
+ 571,
844
+ 828
845
+ ],
846
+ "page_idx": 7
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Next, we test whether knowledge of the causal factors does indeed aid transfer and zero-shot generalizability. To this end, we supply the representations obtained by the agent during the experimental behavior phase as input to a policy network in addition to the state of the simulator, and train it for a place-and-orient downstream task (Figure 1). We define 2 experimental setups - TransferMass and TransferSizeMass. In Mass, the agent is given access to 10 environments, with 10 varying values of mass. In TransferSizeMass, the agent is allowed access to 10 environments, with 2 and 5 values of size and mass respectively. In both setups, the agent learns about the varying causal mechanisms by optimizing causal curiosity. Subsequently, using the causal representation along with the state for each environment, it is trained to maximize external reward. For details of the setup, please see Appendix B. ",
851
+ "bbox": [
852
+ 174,
853
+ 840,
854
+ 825,
855
+ 924
856
+ ],
857
+ "page_idx": 7
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "",
862
+ "bbox": [
863
+ 174,
864
+ 103,
865
+ 825,
866
+ 159
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "After training, the agents are exposed to a set of unseen test environments, where we analyze their zero-shot generalizability. These test environments consist of unseen masses and sizes and their unseen combinations. This corresponds to \"Strong Generalization\" as defined by Perez et al. (2020). We report results averaged over 10 random seeds. ",
873
+ "bbox": [
874
+ 174,
875
+ 166,
876
+ 825,
877
+ 222
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "For each setup, we train a PPO-optimized Actor-Critic Policy (referred to as Causally-curious agent) with access to the causal representations and a 56 dimensional state vector from the environment i.e., $a _ { t } \\sim \\pi ( \\cdot | s _ { t } , z _ { 0 : K } )$ (thus, a total of 57 dimensional input for TransferMass, and a 58 dimensional for TransferSizeMass). Similar to Perez et al. (2020), we implement 2 baselines - the Generalist and the Specialist. The Specialist consists of an agent with identical architecture as Causally-curious agent, but without access to causal representations (i.e., receives a 56 dimensional state vector). It is initialized randomly and is trained only on the test environments, serving as a benchmark for complexity of the test tasks. It performs poorly, indicating that the test tasks are complex. The architecture of the Generalist is identical to the Specialist. Like the Specialist, the Generalist also does not have access to the causal representations, but is trained on the same set of training environments that the Causally-curious agent is trained on. The poor performance of the generalist indicates that the tasks distribution of training and test tasks differs significantly and that memorization of behaviors does not yield good transfer. We find that causally-curious agents significantly outperform the both baselines indicating that indeed, knowledge of the causal representation does aid zero-shot generalizability. ",
884
+ "bbox": [
885
+ 173,
886
+ 229,
887
+ 825,
888
+ 438
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "image",
894
+ "img_path": "images/daa580bc3bf3fbefcb268128d5ed8334c86cc7c830011eff056ed3ca882801b0.jpg",
895
+ "image_caption": [
896
+ "Figure 5: Knowledge of causal factors aids transfer. We find that knowledge of the causal representation allows agents to generalize to unseen environments with high zero-shot performance. The table depicts the extra timesteps required by the Generalist in each experimental setup to match the zero-shot performance of causally-curious agent. We find that as the number of varying causal factors increase, the difference in zero-shot performance of the Causally-curious agent and the Generalist increases, showing that the CC agents are indeed robust to multiple varying causal factors. "
897
+ ],
898
+ "image_footnote": [],
899
+ "bbox": [
900
+ 178,
901
+ 455,
902
+ 820,
903
+ 570
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "5 CONCLUSION ",
910
+ "text_level": 1,
911
+ "bbox": [
912
+ 176,
913
+ 702,
914
+ 318,
915
+ 718
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "We introduce causal curiosity, an intrinsic reward that allows agents to discover binary quantized representations for the causal factors that affect environments an RL agent may encounter. We show that optimizing causal curiosity rewards results in the agent performing self-supervised experiments. We find that these experiments happen to be semantically meaningful and can be used as pre-training for downstream tasks. While our work learns binary quantized causal representations, a dense encoding may improve the amount of encoded information about the causal mechanisms of the environments. We leave this to future work. ",
922
+ "bbox": [
923
+ 174,
924
+ 736,
925
+ 825,
926
+ 833
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "REFERENCES ",
933
+ "text_level": 1,
934
+ "bbox": [
935
+ 174,
936
+ 857,
937
+ 285,
938
+ 872
939
+ ],
940
+ "page_idx": 8
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Ossama Ahmed, Frederik Träuble, Anirudh Goyal, Alexander Neitz, Manuel Wüthrich, Yoshua Bengio, Bernhard Schölkopf, and Stefan Bauer. Causalworld: A robotic manipulation benchmark for causal structure and transfer learning. Under submission 2020. ",
945
+ "bbox": [
946
+ 176,
947
+ 882,
948
+ 823,
949
+ 922
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013. ",
956
+ "bbox": [
957
+ 174,
958
+ 103,
959
+ 825,
960
+ 146
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in $\\beta$ -vae. arxiv 2018. arXiv preprint arXiv:1804.03599, 2018. ",
967
+ "bbox": [
968
+ 174,
969
+ 156,
970
+ 826,
971
+ 199
972
+ ],
973
+ "page_idx": 9
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Eduardo F Camacho and Carlos Bordons Alba. Model predictive control. Springer Science & Business Media, 2013. ",
978
+ "bbox": [
979
+ 173,
980
+ 209,
981
+ 825,
982
+ 238
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Tian Qi Chen, Xuechen Li, Roger B Grosse, and David K Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, pp. 2610–2620, 2018. ",
989
+ "bbox": [
990
+ 173,
991
+ 248,
992
+ 828,
993
+ 291
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Marco Cuturi and Mathieu Blondel. Soft-dtw: a differentiable loss function for time-series. arXiv preprint arXiv:1703.01541, 2017. ",
1000
+ "bbox": [
1001
+ 169,
1002
+ 301,
1003
+ 825,
1004
+ 330
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Veronica Czitrom. One-factor-at-a-time versus designed experiments. The American Statistician, 53 (2):126–131, 1999. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 340,
1014
+ 823,
1015
+ 369
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Pieter-Tjerk De Boer, Dirk P Kroese, Shie Mannor, and Reuven Y Rubinstein. A tutorial on the cross-entropy method. Annals of operations research, 134(1):19–67, 2005. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 380,
1025
+ 823,
1026
+ 410
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Finale Doshi-Velez and George Konidaris. Hidden parameter markov decision processes: A semiparametric regression approach for discovering latent task parametrizations. In IJCAI: proceedings of the conference, volume 2016, pp. 1432. NIH Public Access, 2016. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 419,
1036
+ 825,
1037
+ 462
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Ronald Aylmer Fisher. Design of experiments. Br Med J, 1(3923):554–554, 1936. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 472,
1047
+ 712,
1048
+ 488
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Charles Robert Hicks. Fundamental concepts in the design of experiments. 1964. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 498,
1058
+ 707,
1059
+ 513
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 523,
1069
+ 826,
1070
+ 565
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable baselines. https://github.com/ hill-a/stable-baselines, 2018. ",
1077
+ "bbox": [
1078
+ 174,
1079
+ 577,
1080
+ 826,
1081
+ 633
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Maximilian Ilse, Jakub M Tomczak, Christos Louizos, and Max Welling. Diva: Domain invariant variational autoencoders. arXiv preprint arXiv:1905.10427, 2019. ",
1088
+ "bbox": [
1089
+ 171,
1090
+ 642,
1091
+ 825,
1092
+ 672
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Taylor W Killian, Samuel Daulton, George Konidaris, and Finale Doshi-Velez. Robust and efficient transfer learning with hidden parameter markov decision processes. In Advances in neural information processing systems, pp. 6250–6261, 2017. ",
1099
+ "bbox": [
1100
+ 174,
1101
+ 683,
1102
+ 825,
1103
+ 726
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. ",
1110
+ "bbox": [
1111
+ 173,
1112
+ 736,
1113
+ 825,
1114
+ 763
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems, pp. 3581–3589, 2014. ",
1121
+ "bbox": [
1122
+ 174,
1123
+ 775,
1124
+ 826,
1125
+ 818
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Rätsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. arXiv preprint arXiv:1811.12359, 2018. ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 828,
1135
+ 825,
1136
+ 871
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Francesco Locatello, Ben Poole, Gunnar Rätsch, Bernhard Schölkopf, Olivier Bachem, and Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020. ",
1143
+ "bbox": [
1144
+ 174,
1145
+ 881,
1146
+ 825,
1147
+ 924
1148
+ ],
1149
+ "page_idx": 9
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Hung Ngo, Matthew Luciw, Alexander Forster, and Juergen Schmidhuber. Learning skills from play: artificial curiosity on a katana robot arm. In The 2012 international joint conference on neural networks (IJCNN), pp. 1–8. IEEE, 2012. ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 103,
1157
+ 823,
1158
+ 146
1159
+ ],
1160
+ "page_idx": 10
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Giambattista Parascandolo, Niki Kilbertus, Mateo Rojas-Carulla, and Bernhard Schölkopf. Learning independent causal mechanisms. In International Conference on Machine Learning, pp. 4036–4044. PMLR, 2018. ",
1165
+ "bbox": [
1166
+ 176,
1167
+ 155,
1168
+ 825,
1169
+ 196
1170
+ ],
1171
+ "page_idx": 10
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 16–17, 2017. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 205,
1179
+ 826,
1180
+ 250
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Christian F Perez, Felipe Petroski Such, and Theofanis Karaletsos. Generalized hidden parameter mdps: Transferable model-based rl in a handful of trials. AAAI Conference On Artifical Intelligence, 2020. ",
1187
+ "bbox": [
1188
+ 173,
1189
+ 257,
1190
+ 826,
1191
+ 300
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference. The MIT Press, 2017. ",
1198
+ "bbox": [
1199
+ 176,
1200
+ 309,
1201
+ 823,
1202
+ 338
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Peter J Rousseeuw. Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. Journal of computational and applied mathematics, 20:53–65, 1987. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 347,
1212
+ 825,
1213
+ 376
1214
+ ],
1215
+ "page_idx": 10
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Jürgen Schmidhuber. Developmental robotics, optimal artificial curiosity, creativity, music, and the fine arts. Connection Science, 18(2):173–187, 2006. ",
1220
+ "bbox": [
1221
+ 176,
1222
+ 385,
1223
+ 825,
1224
+ 414
1225
+ ],
1226
+ "page_idx": 10
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "B. Schölkopf. Artificial intelligence: Learning to see and act (News & Views). Nature, 518(7540): 486–487, 2015. ",
1231
+ "bbox": [
1232
+ 176,
1233
+ 422,
1234
+ 825,
1235
+ 452
1236
+ ],
1237
+ "page_idx": 10
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Bernhard Schölkopf. Causality for machine learning. arXiv preprint arXiv:1911.10500, 2019. ",
1242
+ "bbox": [
1243
+ 173,
1244
+ 460,
1245
+ 790,
1246
+ 477
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Jiayu Yao, Taylor Killian, George Konidaris, and Finale Doshi-Velez. Direct policy transfer via hidden parameter markov decision processes. In LLARLA Workshop, FAIM, volume 2018, 2018. ",
1253
+ "bbox": [
1254
+ 173,
1255
+ 484,
1256
+ 825,
1257
+ 513
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Luisa Zintgraf, Kyriacos Shiarlis, Maximilian Igl, Sebastian Schulze, Yarin Gal, Katja Hofmann, and Shimon Whiteson. Varibad: A very good method for bayes-adaptive deep rl via meta-learning. arXiv preprint arXiv:1910.08348, 2019. ",
1264
+ "bbox": [
1265
+ 173,
1266
+ 522,
1267
+ 826,
1268
+ 565
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "A IMPLEMENTATION DETAILS FOR EXPERIMENT DISCOVERY ",
1275
+ "text_level": 1,
1276
+ "bbox": [
1277
+ 173,
1278
+ 102,
1279
+ 697,
1280
+ 118
1281
+ ],
1282
+ "page_idx": 11
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "A.1 PLANNER ",
1287
+ "text_level": 1,
1288
+ "bbox": [
1289
+ 176,
1290
+ 132,
1291
+ 287,
1292
+ 147
1293
+ ],
1294
+ "page_idx": 11
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "The Experiment Planner consisted of a uniform distribution planner for a horizon of 6 control signals. The planner was trained using the Cross Entropy Method Model Predictive Control (Camacho & Alba (2013); De Boer et al. (2005)) on the true environment. We sampled 40 plans per iteration from the distribution initialized to uniform U(controlLow, controlHigh). Each of the sampled plans are applied to each of the training environments and the top $10 \\%$ of the plans are used to update the distribution. ",
1299
+ "bbox": [
1300
+ 173,
1301
+ 159,
1302
+ 826,
1303
+ 242
1304
+ ],
1305
+ "page_idx": 11
1306
+ },
1307
+ {
1308
+ "type": "image",
1309
+ "img_path": "images/aed96a8d6c6d91e88dd7adbfebccc0327a701f19d62f6844b005e1919b787e3b.jpg",
1310
+ "image_caption": [
1311
+ "Figure 6: Overview of training. The experiment planner generates a trajectory of actions which is applied to each of the environments with varying causal factors namely mass, shape and size of blocks. For each environment, an observation trajectory or state $S ^ { ( i ) } \\in \\mathbb { S }$ is obtained. A simple model with fixed low expressive power is used to approximate the generative model for $S$ . The \"information overflow\" $L ( S | M )$ is returned as negative reward forcing $\\mathbb { S }$ to be caused by few causal factors. "
1312
+ ],
1313
+ "image_footnote": [],
1314
+ "bbox": [
1315
+ 173,
1316
+ 256,
1317
+ 820,
1318
+ 366
1319
+ ],
1320
+ "page_idx": 11
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "A.2 TRAINING ENVIRONMENTS ",
1325
+ "text_level": 1,
1326
+ "bbox": [
1327
+ 176,
1328
+ 481,
1329
+ 406,
1330
+ 496
1331
+ ],
1332
+ "page_idx": 11
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "The training environments vary in each experiment. In Section 4.3, we utilize 3 setups, Mass, SizeMass and ShapeSizeMass. For Mass, we allow the agent to access 5 environments with masses varying from $0 . 1 ~ \\mathrm { k g }$ to $0 . 5 ~ \\mathrm { k g }$ . In SizeMass, the agent has access to 30 environments with masses varying uniformly from 0.1 to $0 . 5 \\mathrm { k g }$ and sizes from 0.05 to 0.1 meters. Finally, in ShapeSizeMass, the agent has access to 60 environments, with masses varying uniformly from 0.1 to $0 . 5 \\mathrm { k g }$ , sizes from 0.05 to 0.1 meters and shapes either being cubes or spheres. During experiment discovery, in each environment, the agent has access to the position of the block in the environment along with its quaternion orientation. ",
1337
+ "bbox": [
1338
+ 174,
1339
+ 507,
1340
+ 825,
1341
+ 618
1342
+ ],
1343
+ "page_idx": 11
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "The total number of causal causal factors of each environment are rather large in number due to the fact that the simulator is a complex realistic physics engine. Examples of the causal factors in the environment include gravity, friction coefficients between all on interacting surfaces, shapes, sizes and masses of blocks, control signal frequencies of the environment. However, we only vary 1 during Mass, 2 during SizeMass and 3 during ShapeSizeMass. ",
1348
+ "bbox": [
1349
+ 173,
1350
+ 625,
1351
+ 825,
1352
+ 695
1353
+ ],
1354
+ "page_idx": 11
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "A.3 CURIOSITY REWARD CALCULATION ",
1359
+ "text_level": 1,
1360
+ "bbox": [
1361
+ 178,
1362
+ 712,
1363
+ 468,
1364
+ 727
1365
+ ],
1366
+ "page_idx": 11
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "We predetermine the minimum description length of the clustering model $L ( M )$ by assuming that the observations $O _ { 0 : T }$ , obtained by applying experimental behavior $a _ { 0 : T }$ are produced by a bi-modal generator distribution, where each mode corresponds to either a low or high (quantized) value of a causal factor. This also ensures that $L ( M )$ is as small as possible. The planner, eq. (5) solves the following optimization problem: ",
1371
+ "bbox": [
1372
+ 174,
1373
+ 737,
1374
+ 823,
1375
+ 808
1376
+ ],
1377
+ "page_idx": 11
1378
+ },
1379
+ {
1380
+ "type": "equation",
1381
+ "img_path": "images/5049f33b313a712831f085b55f235e8088258c15bb8a24536c68962cf023e710.jpg",
1382
+ "text": "$$\n\\begin{array} { r l } { \\underset { a _ { 0 : T } \\in A ^ { T } } { \\mathrm { a r g } \\mathrm { m a x } } [ \\mathrm { m i n } \\{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \\prime } ) : o _ { 0 : T } \\in O , o _ { 0 : T } ^ { \\prime } \\in O ^ { \\prime } \\} - } & { \\mathrm { } \\mathrm { m a x } \\{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \\prime \\prime } ) : o _ { 0 : T } ^ { \\prime \\prime } , o _ { 0 : T } \\in O \\} - } \\\\ { \\mathrm { m a x } \\{ d ( o _ { 0 : T } ^ { \\prime } , o _ { 0 : T } ^ { \\prime \\prime } ) : o _ { 0 : T } ^ { \\prime } , o _ { 0 : T } ^ { \\prime \\prime \\prime } \\in O ^ { \\prime } \\} ] } \\end{array}\n$$",
1383
+ "text_format": "latex",
1384
+ "bbox": [
1385
+ 184,
1386
+ 811,
1387
+ 812,
1388
+ 863
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "the distance function $d ( \\cdot , \\cdot )$ in the space of trajectories is set to be Soft Dynamic Time Warping (Cuturi $\\&$ Blondel (2017)). The trajectory length $T$ is 6 control steps long. The objective is a modified version of the Silhouette Score (Rousseeuw (1987)). ",
1395
+ "bbox": [
1396
+ 176,
1397
+ 881,
1398
+ 823,
1399
+ 924
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Intuitively, Objective (8) expresses the ability of a low complexity model, assumed to be bi-modal, to encode the state $S = o _ { 0 : T }$ . If multiple causal factors control $S$ , then the Minimum Description Length of $L ( S )$ will be high. Subsequently, since $M$ is a simple model, the deviation of $S$ from $M$ will be high i.e. $L ( S | M )$ will be high resulting in a low value of the optimization objective. $O$ and $O ^ { \\prime }$ correspond to clusters of outcomes which quantize the values of a causal factor isolated by $a _ { 0 : T }$ $O _ { 0 : T } , o _ { 0 : T } ^ { \\prime \\prime } \\in S$ correspond to trajectories of states i.e. observations obtained by applying $a _ { 0 : T }$ to environments with say, low values of a causal factor while $o _ { 0 : T } ^ { \\prime } , o _ { 0 : T } ^ { \\prime \\prime \\prime } \\in O ^ { \\prime }$ correspond to trajectories of observations i.e. state obtained by applying $a _ { 0 : T }$ to environments with say, high values of the same causal factor. Objective (8) attempts to ensure that these clusters are far apart from each other and are tight i.e. a simple model $M$ encodes $S$ well. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 103,
1409
+ 825,
1410
+ 242
1411
+ ],
1412
+ "page_idx": 12
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "We further motivate how this formulation allows disentanglement of causal factors. A central assumption is that causal factors are independent, by definition, i.e. Independent Mechanisms Assumption Peters et al. (2017). Consider the outcome $S$ obtained by applying an action sequence $a _ { 0 : T }$ to a set of environments. If the action sequence $a _ { 0 : T }$ results in multiple causal factors affecting the outcome $S$ , the Kolmogorov complexity of $S$ will be high. The reason for this is that each causal factor has its own independent causal mechanism (Peters et al. (2017); Parascandolo et al. (2018)) that affects $S$ . Thus, given this independence, the information in $S$ will be a sum of the information “injected” into it from the multiple causes. Conversely, if the outcome $S$ obtained by applying an action sequence $a _ { 0 : T }$ has a lower Kolmogorov Complexity, then $S$ is caused by fewer causal factors. Causal Curiosity attempts to reduce this complexity of $S$ , by assuming a simple generative model $M$ is sufficient to encode $S$ . Thus for experimental behaviors which allow several causes to affect $S$ , the “overflow” of $S$ from $M$ will be high and subsequently the causal curiosity reward will be low. Thus, post-optimization of the objective, we arrive at an action sequence that allows for disentanglement of the causal factors. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 250,
1420
+ 825,
1421
+ 444
1422
+ ],
1423
+ "page_idx": 12
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "B IMPLEMENTATION DETAILS FOR TRANSFER ",
1428
+ "text_level": 1,
1429
+ "bbox": [
1430
+ 174,
1431
+ 463,
1432
+ 571,
1433
+ 479
1434
+ ],
1435
+ "page_idx": 12
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "In Section 4.4, we show the utility of learning causal representations in 2 separate experimental setups. During TransferMass, the agent has access to 10 environments during training, with masses ranging from 0.1 to $0 . 5 \\mathrm { k g }$ . At test time, the agent is required to perform the place-and-orient task masses 2 masses - $0 . 7 \\mathrm { k g }$ and $0 . 7 5 \\mathrm { k g }$ . During TransferSizeMass, the agent has access to 10 environments during training, with sizes from either 0.01 or $0 . 0 5 \\mathrm { m }$ and masses ranging from 0.1 to $0 . 5 \\mathrm { k g }$ . At test time the agent is asked to perform the task on 2 environments with masses $0 . 7 \\mathrm { k g }$ and $0 . 7 5 \\mathrm { k g }$ with sizes $= 0 . 0 5 \\mathrm { m }$ . ",
1440
+ "bbox": [
1441
+ 174,
1442
+ 494,
1443
+ 825,
1444
+ 593
1445
+ ],
1446
+ "page_idx": 12
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "We find that testing with large and light blocks increase the chances of accidental goal completions. Thus, during test-time, we use environments with high masses for out-of-distribution testing. The causal representation is concatenated to the state of the environment as a contextual input and supplied to a PPO-Optimized Actor-Critic Policy. The policy network consists of 2 hidden layers with 256 and 128 units respectively. The experiments are parallelized on 10 CPUs and implemented using stable baselines (Hill et al. (2018)). ",
1451
+ "bbox": [
1452
+ 173,
1453
+ 599,
1454
+ 825,
1455
+ 684
1456
+ ],
1457
+ "page_idx": 12
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "The agent receives a dense reward at each time step during the maximizing external reward phase (Figure 1), the negative of the distance of the block from the goal position scaled by factor of 1000. The control signal was repeated 10 times to the actuators of the motors on each finger. ",
1462
+ "bbox": [
1463
+ 176,
1464
+ 690,
1465
+ 823,
1466
+ 732
1467
+ ],
1468
+ "page_idx": 12
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "C IMPLEMENTATION DETAILS FOR SECTION 4.2 ",
1473
+ "text_level": 1,
1474
+ "bbox": [
1475
+ 174,
1476
+ 752,
1477
+ 588,
1478
+ 768
1479
+ ],
1480
+ "page_idx": 12
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "In section 4.2, we study how the acquired experimental behaviors obtained through Causal Curiosity can be used as pre-training for a variety of downstream tasks. The Vanilla CEM depicts the cost of training an experiment planner from scratch to maximize an external dense reward where the agent minimizes the distance between the position of a block in an environment from the goal in the Lifting setup and imparts a velocity to the block along a particular direction in the Travel setup. ",
1485
+ "bbox": [
1486
+ 174,
1487
+ 782,
1488
+ 825,
1489
+ 853
1490
+ ],
1491
+ "page_idx": 12
1492
+ },
1493
+ {
1494
+ "type": "equation",
1495
+ "img_path": "images/5b7e0efbe4c05bb2dcf3162407d6c3e80216034225d0dc2e5317b011991601d3.jpg",
1496
+ "text": "$$\nR ( a _ { 0 : T } ) = - \\sum _ { t } d i s t ( g o a l _ { t } - b l o c k _ { t } )\n$$",
1497
+ "text_format": "latex",
1498
+ "bbox": [
1499
+ 369,
1500
+ 858,
1501
+ 629,
1502
+ 891
1503
+ ],
1504
+ "page_idx": 12
1505
+ },
1506
+ {
1507
+ "type": "text",
1508
+ "text": "The second baseline (Additive Reward) studies the setup when the agent receives both the curiosity signal and the external reward and attempts to maximize both. The agent receives access all the ",
1509
+ "bbox": [
1510
+ 174,
1511
+ 895,
1512
+ 821,
1513
+ 924
1514
+ ],
1515
+ "page_idx": 12
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "text": "training environments with varying causal factors and must simultaneously maximize both curiosity and the task reward. The equation below shows the reward maximized for the Lifting task. ",
1520
+ "bbox": [
1521
+ 171,
1522
+ 103,
1523
+ 823,
1524
+ 132
1525
+ ],
1526
+ "page_idx": 13
1527
+ },
1528
+ {
1529
+ "type": "equation",
1530
+ "img_path": "images/e341f661b04b7699d8a4b76c0bbaf8dff370fd02442a4be9cf8f945eef6687bf.jpg",
1531
+ "text": "$$\n\\begin{array} { r l r } { \\displaystyle R ( a _ { 0 : T } ) = \\sum _ { e n v s } \\sum _ { t } ^ { T } - d i s t ( g o a l _ { t } - b l o c k _ { t } ) + } & \\\\ { \\displaystyle [ \\operatorname* { m i n } \\{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \\prime } ) : o _ { 0 : T } \\in O , o _ { 0 : T } ^ { \\prime } \\in O ^ { \\prime } \\} - } & { \\operatorname* { m a x } \\{ d ( o _ { 0 : T } , o _ { 0 : T } ^ { \\prime \\prime } ) : o _ { 0 : T } ^ { \\prime \\prime } , o _ { 0 : T } \\in O \\} - } & \\\\ { \\operatorname* { m a x } \\{ d ( o _ { 0 : T } ^ { \\prime } , o _ { 0 : T } ^ { \\prime \\prime \\prime } ) : o _ { 0 : T } ^ { \\prime } , o _ { 0 : T } ^ { \\prime \\prime \\prime } \\in O ^ { \\prime } \\} ] } & \\end{array}\n$$",
1532
+ "text_format": "latex",
1533
+ "bbox": [
1534
+ 196,
1535
+ 137,
1536
+ 777,
1537
+ 222
1538
+ ],
1539
+ "page_idx": 13
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "The curious agent first acquired the experimental behavior by interacting with multiple environments with varying causal factors. The lifting skill was obtained during Mass, when the agent attempted to differentiate between multiple blocks of varying mass. The curious agent trained for 600,000 time steps on the curiosity reward. The acquired behavior was then applied to the downstream lifting task and fine tuned to external rewards. The Vanilla CEM baseline had an identical structure to that of the Curious agent, and received only external reward as in Equation (9). The additive agent simultaneously optimized both external reward and the curiosity reward as in Equation (10). ",
1544
+ "bbox": [
1545
+ 173,
1546
+ 226,
1547
+ 825,
1548
+ 324
1549
+ ],
1550
+ "page_idx": 13
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "D INTUITION FOR DEFINITION OF CAUSAL FACTORS ",
1555
+ "text_level": 1,
1556
+ "bbox": [
1557
+ 174,
1558
+ 343,
1559
+ 627,
1560
+ 359
1561
+ ],
1562
+ "page_idx": 13
1563
+ },
1564
+ {
1565
+ "type": "text",
1566
+ "text": "We begin with a simple example of a person walking on earth. This person experiences various physical processes while interacting in her world, for example gravity, friction, wind etc. These physical processes affect the outcome of interactions of the person with her environment. For example, while jumping on earth, the human experiences gravity which affects the outcome of her jump, the fact that she falls back to the ground. Additionally, these physical processes (or causal mechanisms) are parameterized by causal factors, for example, acceleration constant due to gravity $g = 9 . 8 m / s ^ { 2 }$ on earth, or coefficients of friction between her feet and the ground which assume particular numerical values. ",
1567
+ "bbox": [
1568
+ 173,
1569
+ 375,
1570
+ 825,
1571
+ 486
1572
+ ],
1573
+ "page_idx": 13
1574
+ },
1575
+ {
1576
+ "type": "text",
1577
+ "text": "These causal factors may vary across multiple environments. For example, the person may walk on sand or on ice, surfaces with varying frictional values. Thus the outcome of running on such surfaces will vary, running on sand will require significant effort, while running on ice may result in the person slipping. Thus the coefficient of friction between the person’s feet and the surface she walks on affects the outcome of a particular behavior in said environment. In our definition, $h _ { j }$ are causal factors such friction with some particular coefficient of friction, or gravity with acceleration constant $g$ or other. $H$ is the global set containing all such causal factors. ",
1578
+ "bbox": [
1579
+ 174,
1580
+ 493,
1581
+ 825,
1582
+ 592
1583
+ ],
1584
+ "page_idx": 13
1585
+ },
1586
+ {
1587
+ "type": "text",
1588
+ "text": "Now we ask the question (which we subsequently answer), given multiple environments, how would a human characterize each of them depending on the value of a causal factor? Through experimental behaviors. The human in the above example would attempt to run in each of the environments she encountered, be it on sand, on ice, in mud etc. If she slipped in an environment, she would characterize it as slippery. If she didn’t, she would characterize it as non-slippery. We attempt to equip our agent with similar logic. The “sequence of actions” $\\left( { { a _ { 0 : T } } } \\right)$ described in our paper corresponds to the human running. The state $S ^ { ( i ) }$ in the environment $e ^ { ( i ) }$ consisting of the sequence of observations $\\left( o _ { 0 : T } \\right)$ corresponds to the outcome of running. $S$ might belong to either of the clusters of outcomes $S$ or $S ^ { \\prime }$ corresponding to slipping or not slipping. ",
1589
+ "bbox": [
1590
+ 173,
1591
+ 598,
1592
+ 825,
1593
+ 726
1594
+ ],
1595
+ "page_idx": 13
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "E SCALABILITY LIMITATION ",
1600
+ "text_level": 1,
1601
+ "bbox": [
1602
+ 176,
1603
+ 746,
1604
+ 429,
1605
+ 761
1606
+ ],
1607
+ "page_idx": 13
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "We utilize the extremely popular One-Factor-at-a-time (OFAT) general paradigm of scientific investigation, as an inspiration for our method. In the case of many hundreds of causal factors, the complexity of this method will scale exponentially. However, we believe that this would indeed be the case given a human experimenter attempting to discover the causation in any system she is studying. Learning about causation is a computationally expensive affair. We point the reader towards a wealth of material on the design of scientific experiments and more specifically the lack of scalability of OFAT (Fisher (1936); Hicks (1964); Czitrom (1999)). Nevertheless, OFAT remains the de facto standard for scientific investigation. ",
1612
+ "bbox": [
1613
+ 173,
1614
+ 776,
1615
+ 826,
1616
+ 888
1617
+ ],
1618
+ "page_idx": 13
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "1: Input: Unseen Test Environment env, trained Planner and Causal Inference Module \n2: Initialize causal $R e p = [ ]$ \n3: Initialize training environment set Envs \n4: for $\\mathbf { k }$ in range(K) do \n5: Reset env \n6: Sample experimental behavior $a _ { 0 : T } \\sim \\mathrm { C E M } ( \\cdot | \\ c a u s a l R e p )$ \n7: Apply $a _ { 0 : T }$ to env . Exploration Phase \n8: Collect $S = o _ { 0 : T }$ \n9: Use learnt $q _ { M } ( z | S )$ for cluster assignment i.e. $z _ { k } = q _ { M } ( z | s , c a u s a l R e p )$ \n10: Append $z _ { k }$ to causalRep . Causal Inference Module \n11: Learn a policy conditioned on causal factors $a _ { t } \\sim \\pi ( \\cdot | o _ { t } , z _ { 0 : K } )$ to maximize external reward. ",
1623
+ "bbox": [
1624
+ 179,
1625
+ 440,
1626
+ 826,
1627
+ 599
1628
+ ],
1629
+ "page_idx": 14
1630
+ }
1631
+ ]
parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Q2iaAc-4I1v/Q2iaAc-4I1v_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Skvd-myR-/Skvd-myR-.md ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING NON-METRIC VISUAL SIMILARITY FOR IMAGE RETRIEVAL
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Measuring visual (dis)similarity between two or more instances within a data distribution is a fundamental task in many applications, especially in image retrieval. Theoretically, non-metric distances are able to generate a more complex and accurate similarity model than metric distances, provided that the non-linear data distribution is precisely captured by the similarity model. In this work, we analyze a simple approach for deep learning networks to be used as an approximation of non-metric similarity functions and we study how these models generalize across different image retrieval datasets.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ For humans, deciding whether two images are visually similar or not is, to some extent, a natural task. However, in computer vision, this is a challenging problem and algorithms do not always succeed in matching pictures that contain similar-looking elements. This is mainly because of the well-known semantic gap problem, which refers to the difference or gap between low-level image pixels and high-level semantic concepts. Estimating visual similarity is a fundamental task that seeks to break this semantic gap by accurately evaluating how alike two or more pictures are. Visual similarity is crucial for many computer vision areas including image retrieval, image classification and object recognition, among others.
12
+
13
+ Given a query image, content-based image retrieval systems rank pictures in a dataset according to how similar they are with respect to the input. This can be broken into two fundamental tasks: 1) computing meaningful image representations that capture the most salient visual information from pixels and 2) measuring accurate visual similarity between these image representations to rank images according to a similarity score.
14
+
15
+ In the last years, several methods to represent visual information from raw pixels in images have been proposed, first by designing handcrafted features such as SIFT Lowe (2004), then by compacting these local features into a single global image descriptor using different techniques such as Fisher Vectors Perronnin et al. (2010) and more recently by extracting deep image representations from neural networks (Babenko et al. (2014)). However, once two images are described by feature vectors, visual similarity is commonly measured by computing a standard metric between them. Although regular distance metrics, such as Euclidean distance or cosine similarity, are fast and easy to implement, they do not take into account the possible interdependency within the dataset, which means that even if a strong nonlinear data dependency is occurring in the visual collection, they might not be able to capture it. This suggests that learning a similarity estimation directly from visual data can improve the performance on image retrieval tasks, provided that the likely nonlinearity dependencies within the dataset are precisely learned by the similarity function.
16
+
17
+ Visual similarity learning is closely related to distance metric learning. Traditionally, distance metric learning algorithms were based on linear metrics such as the Mahalanobis distance. However, if the visual data presents any nonlinear interdependency, better results are expected when using nonlinear approaches. According to some studies Tan et al. (2006), standard metric axioms are not valid for human perception of visual similarity and hence, visual similarity functions should not necessarily satisfy distance metric conditions. Deep learning-based similarity learning methods are mostly focused on learning an optimal mapping from pixels to a linear space in which Euclidean distance can be applied. Instead, we propose a simple approach based on neural networks to learn a non-metric similarity score in the feature space.
18
+
19
+ ![](images/56365ceee1d5c2b6bb70d64f61a9f02ba28a75df5d0963025682de396cd8ad10.jpg)
20
+ Figure 1: System overview. The feature extraction block computes visual representations of images whereas the visual similarity block estimates a similarity score using a neural network.
21
+
22
+ ![](images/43d42d966b7dc716b383d60d8c886ae8ebf5004f97f3b1cd7ac190fa449f1dcf.jpg)
23
+ Figure 2: Siamese architectures (left) map pixels into high-quality vector representations. Our similarity network (right) learns a similarity function on top of the vector representations.
24
+
25
+ Figure 1 shows an overview of the proposed approach. By training a deep learning model, we can estimate a visual similarity function that outperforms methods based on standard metric computations. One convolutional neural network extracts image representations from input images, while a second neural network computes the visual similarity score. The visual similarity neural network is trained using both pairs of similar and dissimilar images in three stages. The output score of the similarity network can be directly applied as a similarity estimation to rank images in an image retrieval task. Experimental results on standard datasets show that our network is able to discriminate when a pair of images is similar or dissimilar and improve standard metrics score on top of that.
26
+
27
+ # 2 RELATED WORK
28
+
29
+ Content-Based Image Retrieval. Content-based image retrieval searches for images by considering their visual content. Given a query image, pictures in a collection are ranked according to their visual similarity with respect to the query. Early methods represent the visual content of images by a set of hand-crafted features, such as SIFT Lowe (2004). As a single image may contain hundreds of these features, aggregation techniques like bag-of-words (BOW) Sivic et al. (2003), Fisher Vectors Perronnin et al. (2010) or VLAD Jegou et al. (2010) encode local descriptors into a compact ´ vector, thereby improving computational efficiency and scalability. Recently, because of the latest advancements on deep learning, features obtained from convolutional neural networks (CNN) have rapidly become the new state-of-the-art in image retrieval.
30
+
31
+ Deep Learning for Image Retrieval. Deep image retrieval extracts activations from CNNs as image representations. At first, some methods Babenko et al. (2014); Sharif Razavian et al. (2014); Wan et al. (2014); Liu et al. (2015) proposed to use representations from one of the last fully connected layers of networks pre-trained on the classification ImageNet dataset Russakovsky et al. (2015). When deeper networks such as GoogLeNet Szegedy et al. (2015) and VGG Simonyan & Zisserman (2014) appeared, some authors Babenko & Lempitsky (2015); Yue-Hei $\mathrm { N g }$ et al. (2015); Sharif Razavian et al. (2014); Xie et al. (2015) showed that mid-layer representations obtained from the convolutional layers performed better in the retrieval task. Since then, there have been several attempts to aggregate these high-dimensional convolutional representations into a compact vector. For example, Gong et al. (2014); Yue-Hei Ng et al. (2015) compacted deep features by using VLAD, Mohedano et al. (2016) encoded the neural codes into an histogram of words, Babenko & Lempitsky (2015); Kalantidis et al. (2016) applied sum-pooling to obtain a compact representation and Razavian et al. (2016); Tolias et al. (2016) aggregated deep features by max-pooling them into a new vector. A different approach is to train the network to directly learn compact binary codes end-to-end (Erin Liong et al., 2015; Lin et al., 2015). Some authors have shown that fine-tunning the networks with similar data to the target task increases the performance significantly (Babenko et al., 2014; Gordo et al., 2016; Radenovic et al., 2016; Salvador et al., 2016; Gordo et al., 2017). ´ Finally, recent work has shown that adding attention models to select meaningful features can be also beneficial for image retrieval (Jimenez et al., 2017; Noh et al., 2017). ´
32
+
33
+ All of these methods are focused on finding high quality features to represent visual content efficiently and visual similarity is computed by simply applying a standard metric distance. General metrics, such as Euclidean distance or cosine similarity, however, might be failing to consider the inner data structure of these visual representations. Learning a similarity function directly from data may help to capture the human perception of visual similarity in a better way.
34
+
35
+ Similarity Learning. Some of the most popular similarity learning work, such as OASIS Chechik et al. (2010) and MLR McFee & Lanckriet (2010), are based on linear metric learning by optimizing the weights of a linear transformation matrix. Although linear methods are easier to optimize and less prone to overfitting, nonlinear algorithms are expected to achieve higher accuracy modeling the possible nonlinearities of data. Nonlinear similarity learning based on deep learning has been recently applied to many different visual contexts. In low-level image matching, CNNs have been trained to match pairs of patches for stereo matching Zagoruyko & Komodakis (2015); Luo et al. (2016) and optical flow Fischer et al. (2015); Thewlis et al. (2016). In high-level image matching, deep learning techniques have been proposed to learn low-dimensional embedding spaces in face verification Chopra et al. (2005), retrieval Wu et al. (2013); Wang et al. (2014), classification Hoffer & Ailon (2015); Qian et al. (2015); Oh Song et al. (2016) and product search Bell & Bala (2015), either by using siamese Chopra et al. (2005) or triplet Wang et al. (2014) architectures.
36
+
37
+ In general, these methods rely on learning a mapping from image pixels to a low dimensional target space to compute the final similarity decision by using a standard metric. They are designed to find the best projection in which a linear distance can be successfully applied. Instead of projecting the visual data into some linear space, that may or may not exist, our approach seeks to learn the nonmetric visual similarity score itself. Similarly, Li et al. (2014) and Han et al. (2015) used a CNN to decide whether or not two input images are a match, applied to pedestrian reindentification and patch matching, respectively. In these methods, the networks are trained as a binary classification problem (i.e. same or different pedestrian/patch), whereas in an image retrieval ranking problem, a regression score is required. Inspired by the results of Wan et al. (2014), which showed that combining deep features with similarity learning techniques can be very beneficial for the performance of image retrieval systems, we propose to train a deep learning algorithm to learn non-metric similarities for image retrieval and improve results in top of high quality image representation methods.
38
+
39
+ # 3 LEARNING VISUAL SIMILARITY
40
+
41
+ # 3.1 DEFINITION
42
+
43
+ Visual similarity is the task that measures how related two images are by using their visual content. Given $n$ samples in the training image collection $I$ , for each image $I _ { i } \in I$ with $i \in [ 1 , n ]$ , a global $d$ -dimensional representation $\bar { x } _ { i } \in \bar { \mathbb { R } } ^ { d }$ is obtained as $x _ { i } = f ( I _ { i } , w _ { f } )$ , where $f$ is the function that maps images into global features and $w _ { f }$ is the set of parameters of $f$ . We define $s _ { i , j }$ as the similarity score which measures how alike two images $I _ { i }$ and $I _ { j }$ are. The higher $s _ { i , j }$ is, the more similar $I _ { i }$ and $I _ { j }$ are. The aim is to learn a visual similarity function $S$ that computes the similarity score from global image representations as:
44
+
45
+ $$
46
+ \begin{array} { r } { s _ { i , j } = S ( x _ { i } , x _ { j } ) = g ( f ( I _ { i } , w _ { f } ) , f ( I _ { j } , w _ { f } ) , w _ { g } ) } \\ { s . t . \quad s _ { i , j } > s _ { i , k } \to I _ { i } , I _ { j } \mathrm { a r e ~ m o r e ~ s i m i l a r ~ t h a n ~ } I _ { i } , I _ { k } } \end{array}
47
+ $$
48
+
49
+ where $g$ is a nonlinear function and $w _ { g }$ is the set of parameters to optimize.
50
+
51
+ Note that $g$ does not have to be a metric in order to be a similarity function and thus, it is not required to satisfy the rigid constraints of metric axioms, i.e. non-negativity, identity of indiscernibles, symmetry and triangle inequality. Some non-metric similarity works such as Tan et al. (2006) suggest that these restrictions are not compatible with human perception. As an example, they showed that although a centaur might be visually similar to both a person and a horse, the person and the horse are not similar to each other. A possible explanation for this phenomenon is that when comparing two images, human beings may pay more attention to similarities and thus, similar portions of the images may be more discriminative than dissimilar parts. To overcome the issues associated with applying strong rigid constraints to visual similarity, we propose to learn the non-metric similarity function $g$ using a neural network approach.
52
+
53
+ # 3.2 IMAGE REPRESENTATION
54
+
55
+ Here we describe the image representation method, $f$ , we use. As this work aims to learn a nonmetric similarity estimation from visual data, our efforts are not focused on improving existing image representation methods, but to learn how to compare them. Without loss of generality, we use the RMAC descriptor proposed in Tolias et al. (2016) as image representation, although any other image representation method can be considered as well.
56
+
57
+ Table 1: Network architectures. Fully connected layers (FC-{filters}) are always followed by a ReLU layer except for the last one. Training: 22.5 million pairs. Validation: 7.5 million pairs.
58
+
59
+ <table><tr><td colspan="2"></td><td rowspan="2"></td><td colspan="2">Training Data</td><td colspan="2">Validation Data</td></tr><tr><td>Config</td><td>Params</td><td>MSE</td><td>p</td><td>MSE</td><td>p</td></tr><tr><td>A</td><td>FC-1024,FC-1024,FC-1</td><td>2.1M</td><td>0.00021</td><td>0.946</td><td>0.00035</td><td>0.909</td></tr><tr><td>B</td><td>FC-4096,FC-4096,FC-1</td><td>21M</td><td>0.00008</td><td>0.978</td><td>0.00019</td><td>0.965</td></tr><tr><td>C</td><td>FC-8192,FC-8192,FC-1</td><td>76M</td><td>0.00007</td><td>0.982</td><td>0.00012</td><td>0.974</td></tr><tr><td>D</td><td>FC-4096,FC-4096,FC-4096,FC-1</td><td>38M</td><td>0.00009</td><td>0.978</td><td>0.00019</td><td>0.964</td></tr></table>
60
+
61
+ RMAC is a deep global image representation obtained from the last convolutional layer of a pretrained CNN on ImageNet classification task Russakovsky et al. (2015). When an image is fed into the network, the last convolutional layer outputs a $W \times H \times K$ response, where $K$ is the number of filters and $W$ and $H$ are the spatial width and height of the output, respectively, that depend on the network architecture as well as on the size of the input image. The response of the $k$ -th filter of the last convolutional layer can be represented by $\Omega _ { k }$ , a 2D tensor of size $W \times H$ . If $\Omega _ { k } ( \boldsymbol { p } )$ is the response at a particular position $p$ , and $R$ is a spatial region within the feature map, the regional feature vector $f _ { R }$ is defined as:
62
+
63
+ $$
64
+ f _ { R } = [ f _ { R , 1 } \ldots f _ { R , k } \ldots f _ { R , K } ] ^ { \top }
65
+ $$
66
+
67
+ where $f _ { R , k } = \operatorname* { m a x } _ { p \in R } \Omega _ { k } ( p )$ . Thus, $f _ { R }$ consists of the maximum activation of each filter inside the region $R$ . Several regional features are extracted at different multi-scale overlapping regions. Each of these regional vectors is independently post-processed with $\ell 2$ -normalization, PCA-whitening and $\ell 2$ -normalization, as suggested in Jegou & Chum (2012). Finally, regional vectors are summed ´ and $\ell { 2 }$ -normalized once again to obtain the final compact vector. The size of the final vector is $K$ , which is independent of the size of the input image, its aspect ratio or the number of regions used.
68
+
69
+ # 3.3 SIMILARITY NETWORK
70
+
71
+ To compare two images and obtain a visual similarity score we learn the similarity function $g$ by training a deep learning architecture. Given two input images $I _ { i }$ and $I _ { j }$ , we first extract their representations $x _ { i }$ and $x _ { j }$ , respectively, as explained in Section 3.2. The two $K$ -dimensional global vectors are concatenated and fed into the similarity network, as shown in Figure 1. This process is different to the standard siamese architecture Chopra et al. (2005) because the latter maps images into vector representations and updates the shared weights according to the learning protocol and our approach trains and updates the similarity network on top of high-quality vector representations. Moreover, in the similarity network architecture, weights in the image representation block are not necessarily shared. Figure 2 shows the difference between both approaches.
72
+
73
+ The similarity network is composed by a set of fully connected layers, each one of them followed by a non-linear function, such as ReLU Krizhevsky et al. (2012). The input of the network is fixed to be of $1 \times K \times 2$ size, so the size of the first layer is $1 \times K \times 2 \times C h$ , where $C h$ is the number of channels. We consider hidden layers of size $1 \times C h \times 2 \times C h$ . Finally, the output layer is of size $1 \times C h \times 2 \times 1$ and it is not followed by a ReLU layer, as the output similarity score is expected to cover a full range of values, both positive and negative. The regression loss function, $L$ , penalizes when the predicted score of the network is far away from an annotated similarity score, such as:
74
+
75
+ $$
76
+ L ( I _ { i } , I _ { j } ) = | s _ { i , j } - y _ { i , j } | = | g ( x _ { i } , x _ { j } , w _ { g } ) - y _ { i , j } |
77
+ $$
78
+
79
+ where $s _ { i , j }$ is the network output and $y _ { i , j }$ is the annotated score. Four configurations A-D with different number of filters $C h$ and number of hidden layers are proposed and tested during our experiments, as shown in Table 1.
80
+
81
+ # 3.4 TRAINING SIMILARITY
82
+
83
+ The visual similarity network is trained in three stages. In each stage the weights are initialized by the trained weights of the previous stage while the learned task gets progressively more difficult.
84
+
85
+ ![](images/f14d25dacad17f5f47fe3d267ac011ec55bc343bee77586d81f7d1f71f5a521d.jpg)
86
+ Figure 3: Misclassified pairs. (Upper) Lower row: (dissimilar) similar images in which the network score is (lower) higher than the cosine similarity.
87
+
88
+ ![](images/38e7e36e2a240dc779a7a5dd10ddba811943cb7fd5980e4bba2bbff4f467c6a1.jpg)
89
+ Figure 4: mAP versus $\Delta$ . Rigid lines are DeepSimH scores, dashed lines are cosine similarity scores.
90
+
91
+ # STAGE 1: STANDARD METRIC
92
+
93
+ In Stage 1, the network learns a standard similarity function based on the cosine similarity. We generate random pairs of vectors, $x _ { i }$ and $x _ { j }$ , and we assign the cosine similarity between them as the score label yi,j :
94
+
95
+ $$
96
+ y _ { i , j } = { \frac { x _ { i } \cdot x _ { j } } { \| x _ { i } \| \| x _ { j } \| } }
97
+ $$
98
+
99
+ In order to train the model in the full range of possible values, pairs are produced so that the cosine similarity is uniformly distributed within the training set.
100
+
101
+ STAGE 2: VISUAL SIMILARITY
102
+
103
+ In Stage 2, the basic similarity network learns to increase the similarity score when given two matching images and to decrease it when a pair of images is not a match. The weights in this training stage are initialized by the weights obtained during Stage 1. We now use pairs of image representation vectors $x _ { i }$ and $x _ { j }$ , randomly chosen from our training image dataset. The score label is set to:
104
+
105
+ $$
106
+ y _ { i , j } = \left\{ \begin{array} { l l } { \frac { x _ { i } \cdot x _ { j } } { \| x _ { i } \| \| x _ { j } \| } + \Delta , } & { \mathrm { i f } x _ { i } \mathrm { a n d } x _ { j } \mathrm { a r e } \mathrm { s i m i l a r } } \\ { \frac { x _ { i } \cdot x _ { j } } { \| x _ { i } \| \| x _ { j } \| } - \Delta , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
107
+ $$
108
+
109
+ where $\Delta$ is the margin parameter. Thus, the model learns to discriminate when a pair of images are similar (dissimilar) and assigns it a higher (lower) value than the standard score.
110
+
111
+ In this stage, the model learns how to compute a similarity score from examples of images that are known to be matching or non-matching. Therefore a relevant dataset to the final retrieval task should be used. Similarity between pairs might be decided using different techniques, such as image classes, score based on local features or manual labeling, among others. Without loss of generality, we consider two images as similar when they belong to the same class and as dissimilar when they belong to different classes.
112
+
113
+ # STAGE 3: HARD EXAMPLES
114
+
115
+ In the Stage 3, the similarity network is refined by training it specifically by using difficult pairs of images. Previous works Gordo et al. (2016); Radenovic et al. (2016) have shown that fine-tunning ´ neural networks using difficult samples is very helpful in terms of performance. This is easy to understand: if the network is only trained by using easy pairs (e.g. a car and a dog), it will not be able to discriminate between difficult pairs (e.g. a car and a van). To choose the set of hard pairs we compute the scores of a random set of image pairs by using the network trained in Stage 2. Those pairs in which the network output is worse than the cosine similarity measure are selected as difficult pairs for retraining1. Examples of difficult image pairs can be seen in Figure 3.
116
+
117
+ # 4 EXPERIMENTS
118
+
119
+ # 4.1 TESTING DATASETS
120
+
121
+ Our approach is evaluated on the standard image retrieval datasets described below.
122
+
123
+ Oxford5k Philbin et al. (2007): a dataset that consists of 5,062 images of 11 different Oxford landmarks. The query set contains 55 annotated images, 5 per landmark.
124
+
125
+ Paris6k Philbin et al. (2008): a datasets that consists of 6,412 images of 11 different Paris landmarks. The query set contains 55 annotated images, 5 per landmark.
126
+
127
+ Land5k: a validation subset of the Landmarks database Babenko et al. (2014). It consists of the 4,915 validation images from 529 classes. A random selection of 45 images is used as queries.
128
+
129
+ Oxford105k, Paris106k: the large-scale versions of Oxford5k and Paris6k, respectively. They include 100,000 distractor images from Flickr Philbin et al. (2007).
130
+
131
+ In both the Oxford5k and the Paris6k collections query images are cropped according to the region of interest provided by the authors of the datasets. Evaluation is performed by computing the mean Average Precision (mAP), using the provided ground truth and algorithms. For Land5k we consider an image to be relevant to the query when it belongs to the same class.
132
+
133
+ # 4.2 TRAINING DATASETS
134
+
135
+ For the purposes of this work, having a training dataset as similar as possible to the final similarity task is essential. We create several versions of the training dataset to evaluate the effect of using different samples in the training process.
136
+
137
+ Landmarks Gordo et al. (2016): an automatically cleaned subset of the full Landmarks Babenko et al. (2014) dataset which officially contains about 49,000 images from 586 landmarks. However, due to broken URLs, we could only download 33,119 training images and 4,915 validation images. This dataset does not contain images from classes that overlap with Oxford5k and Paris6k datasets as they were manually removed.
138
+
139
+ Landmarks-extra500: the Landmarks collection plus 250 random images from each of the Oxford5k and Paris6k datasets. In total, it contains 33,619 training images.
140
+
141
+ Landmarks-extra: the Landmarks collection in addition to about 500 images from Oxford5k and 1,700 images from Paris6k classes. In total, it contains 35,342 training images belonging to 605 different landmarks. Note that query images are not added in any case and they remain unseen by the system.
142
+
143
+ # 4.3 EXPERIMENTAL DETAILS
144
+
145
+ Image Representation. To compute RMAC representations we use the VGG16 network Simonyan & Zisserman (2014), which has been previously pre-trained on the ImageNet dataset Russakovsky et al. (2015). Unless otherwise stated, we use the default values proposed in Tolias et al. (2016) to obtain 512-dimensional RMAC vectors. VGG16 network is used off-the-shelf without any retraining or fine-tunning performed on top of it. Experimental results have shown that RMAC representations are very sensitive to the PCA matrices used in the post-processing step. As we are keeping query images unseen by the system and not using them in the PCA matrices computation as in Tolias et al. (2016), our results are slightly different to theirs.
146
+
147
+ Visual Similarity Learning. Similarity learning is trained using almost a million of random pairs, of which half of the pairs are visual matches and the other half are non-matches. PCA whitening is done using Paris5k images. As RMAC representation performs better in high resolution images, we re-scale all the images up to 1024 pixels, keeping the original aspect ratio of the pictures. For the similarity network, four different configurations A-D (Table 1) are explored during our experiments. The network is optimized using backpropagation and stochastic gradient descent. We use a learning rate of 0.001, a batch size of 100, a weight decay of 0.0005 and momentum of 0.9.
148
+
149
+ Table 2: mAP when using different training configurations and $\Delta$ (in brackets) values.
150
+
151
+ <table><tr><td rowspan="2"></td><td colspan="3">Landmarks</td><td colspan="3">Landmarks-extra500</td><td colspan="3">Landmarks-extra</td></tr><tr><td>Ox5k</td><td>Pa6k</td><td>La5k</td><td>Ox5k</td><td>Pa6k</td><td>La5k</td><td>Ox5k</td><td>Pa6k</td><td>La5k</td></tr><tr><td>Cosine</td><td>0.665</td><td>0.638</td><td>0.564</td><td>0.665</td><td>0.638</td><td>0.564</td><td>0.665</td><td>0.638</td><td>0.564</td></tr><tr><td>DeepCosine</td><td>0.638</td><td>0.596</td><td>0.549</td><td>0.638</td><td>0.596</td><td>0.549</td><td>0.638</td><td>0.596</td><td>0.549</td></tr><tr><td>OASIS</td><td>0.514</td><td>0.385</td><td>0.578</td><td>0.570</td><td>0.651</td><td>0.589</td><td>0.619</td><td>0.853</td><td>0.579</td></tr><tr><td>Linear (0.2)</td><td>0.598</td><td>0.660</td><td>0.508</td><td>0.611</td><td>0.632</td><td>0.514</td><td>0.602</td><td>0.581</td><td>0.502</td></tr><tr><td>DeepSim (0.2)</td><td>0.658</td><td>0.460</td><td>0.669</td><td>0.717</td><td>0.654</td><td>0.671</td><td>0.718</td><td>0.757</td><td>0.668</td></tr><tr><td>DeepSimH(0.2)</td><td>0.655</td><td>0.503</td><td>0.697</td><td>0.719</td><td>0.677</td><td>0.693</td><td>0.786</td><td>0.860</td><td>0.662</td></tr><tr><td>DeepSimH (0.4)</td><td>0.637</td><td>0.504</td><td>0.737</td><td>0.703</td><td>0.701</td><td>0.745</td><td>0.794</td><td>0.878</td><td>0.706</td></tr><tr><td>DeepSimH(0.6)</td><td>0.613</td><td>0.514</td><td>0.776</td><td>0.703</td><td>0.716</td><td>0.776</td><td>0.789</td><td>0.885</td><td>0.735</td></tr><tr><td>DeepSimH (0.8)</td><td>0.600</td><td>0.511</td><td>0.783</td><td>0.685</td><td>0.710</td><td>0.803</td><td>0.808</td><td>0.891</td><td>0.758</td></tr></table>
152
+
153
+ Computational cost. Standard metrics are relatively fast and computationally cheap. Our visual similarity network involves the use of millions of parameters that inevitable increase the computational cost. However, it is still feasible to compute in a reasonable amount of time. In our experiments, training time is about 5 hours in a GeForce GTX 1080 GPU and testing time for a pair of images is $1 . 2 5 ~ \mathrm { m s }$ on average (0.35 ms when using cosine similarity).
154
+
155
+ # 5 RESULTS
156
+
157
+ # 5.1 ARCHITECTURE DISCUSSION
158
+
159
+ Four different configurations A-D for the similarity neural network are proposed. We compare the performance of each one during Stage 1, when the network is trained with the standard cosine similarity measurement. If $s _ { l }$ is the network score and $y _ { l }$ is the cosine similarity of the $l$ -th pair with $l = 1 . . L$ , we evaluate each network by computing the mean squared error, MSE, and the correlation coefficient, $\rho$ , as:
160
+
161
+ $$
162
+ M S E = \frac { 1 } { L } \sum _ { l = 1 } ^ { L } ( s _ { l } - y _ { l } ) ^ { 2 } \rho = \frac { 1 } { L - 1 } \sum _ { l = 1 } ^ { L } \frac { s _ { l } - \mu _ { s } } { \sigma _ { s } } \frac { y _ { l } - \mu _ { y } } { \sigma _ { y } }
163
+ $$
164
+
165
+ where $\mu _ { s }$ and $\sigma _ { s }$ are the mean and standard deviation of the vector of network scores $s$ , and $\mu _ { y }$ and $\sigma _ { y }$ are the mean and standard deviation of the vectors of cosine similarities $y$ .
166
+
167
+ Results are shown in Table 1. Unsurprisingly, the configuration with bigger number of parameters, C, achieves the best MSE and $\rho$ results, both in training and validation sets. However, the performance of networks B and $\mathrm { D }$ is very close to the performance of network C. As network B requires only 21 million parameters and network C requires 76 million parameters, we keep configuration B as our default architecture for the rest of the experiments.
168
+
169
+ # 5.2 EVALUATION OF THE SIMILARITY NETWORK
170
+
171
+ In this section, we study the benefits of using a non-metric distance function trained with neural networks. In order to isolate the contribution of the visual similarity computation and perform a fair comparison between different distance functions, we only train the similarity network part. However, an end-to-end training of the whole image retrieval pipeline is explored in Appendix B.
172
+
173
+ To evaluate our similarity network, we compute the mAP at each stage of the training process (Section 4.2). Results when using different training datasets can be found in Table 2. Cosine similarity is computed as a baseline. We denote as DeepCosine the results obtained after the first stage, when the network is trained to mimic cosine similarity. Naturally, DeepCosine performs worse than the cosine similarity, as it is an estimation of the cosine metric. DeepSim refers to the results obtained after the second stage, when the network is fine-tunned to learn visual similarity with random pairs of images. DeepSimH are the results after the last stage, when the network is trained by using both random and hard pairs of images. We compare our approach against the standard similarity learning algorithm OASIS Chechik et al. (2010). Finally, we also conduct experiments on linear metric learning, which are denoted as Linear in Table 2, by training an affine transformation of the feature vectors using the same training protocol as described in Equation 5.
174
+
175
+ Table 3: mAP results for different state-of-the-art methods. Dim corresponds to the dimensionality of the feature representation. Similarity is the similarity function.
176
+
177
+ <table><tr><td></td><td>Method</td><td>Dim</td><td>Similarity</td><td>Ox5k</td><td>Ox105k</td><td>Pa6k</td><td>Pa106k</td></tr><tr><td rowspan="11">Jltr-ertiti</td><td>Babenko et al. (2014)</td><td>512</td><td>L2</td><td>0.435</td><td>0.392</td><td>=</td><td>1</td></tr><tr><td>Sharif Razavian et al. (2014)</td><td>4096</td><td>Averaged L2</td><td>0.322</td><td>1</td><td>0.495</td><td>1</td></tr><tr><td>Wan et al. (2014)</td><td>4096</td><td>OASIS</td><td>0.466</td><td>1</td><td>0.867</td><td>=</td></tr><tr><td>Babenko &amp; Lempitsky (2015)</td><td>256</td><td>Cosine</td><td>0.657</td><td>0.642</td><td></td><td>=</td></tr><tr><td>Yue-Hei Ng et al. (2015)</td><td>128</td><td>L2</td><td>0.593</td><td>1</td><td>0.59</td><td>=</td></tr><tr><td>Kalantidis et al. (2016)</td><td>512</td><td>L2</td><td>0.708</td><td>0.653</td><td>0.797</td><td>0.722</td></tr><tr><td>Mohedano et al. (2016)</td><td>25k</td><td>Cosine</td><td>0.739</td><td>0.593</td><td>0.82</td><td>0.648</td></tr><tr><td>Salvador et al. (2016)</td><td>512</td><td>Cosine</td><td>0.588</td><td>1</td><td>0.656</td><td>1</td></tr><tr><td>Tolias et al. (2016)</td><td>512</td><td>Cosine</td><td>0.669</td><td>0.616</td><td>0.83</td><td>0.757</td></tr><tr><td>Jiménez et al. (2017)</td><td>512</td><td>Cosine</td><td>0.712</td><td>0.672</td><td>0.805</td><td>0.733</td></tr><tr><td>Ours (△ = 0.8)</td><td>512</td><td>DeepSimH</td><td>0.808</td><td>0.772</td><td>0.891</td><td>0.818</td></tr><tr><td rowspan="7">Binunnau</td><td>Babenko et al. (2014)</td><td>512</td><td>L2</td><td>0.557</td><td>0.522</td><td>1</td><td>1</td></tr><tr><td>Gordo et al. (2016)</td><td>512</td><td>Cosine</td><td>0.831</td><td>0.786</td><td>0.871</td><td>0.797</td></tr><tr><td>Wan et al. (2014)</td><td>4096</td><td>OASIS</td><td>0.783</td><td>1</td><td>0.947</td><td>1</td></tr><tr><td>Radenovic et al. (2016)</td><td>512</td><td>Cosine</td><td>0.77</td><td>0.692</td><td>0.838</td><td>0.764</td></tr><tr><td>Salvador et al. (2016)</td><td>512</td><td>Cosine</td><td>0.71</td><td></td><td>0.798</td><td></td></tr><tr><td>Gordo et al. (2017)</td><td>2048</td><td>Cosine</td><td>0.861</td><td>0.828</td><td>0.945</td><td>0.906</td></tr><tr><td>Ours (△ = 0.8)</td><td>512</td><td>DeepSimH</td><td>0.882</td><td>0.821</td><td>0.882</td><td>0.829</td></tr></table>
178
+
179
+ Our similarity networks outperform OASIS in all the testing datasets. Moreover when using Landmarks-clean-extra as training dataset, results are boosted with respect to the standard metric, achieving improvements ranging from $20 \%$ (Oxford5k) to $40 \%$ (Pairs6k). When using a small subset of images from Oxford5k and Paris6k classes, i.e. Landmarks-clean-extra-500 dataset, our similarity networks also improve mAP with respect to the cosine similarity in the three testing datasets. This indicates that visual similarity can be learnt even when using a reduced subset of the target image domain. Experiments on affine transformations show that, unlike our proposed methods, simple linear metrics are not able to properly fit Equation 5. However, visual similarity does not transfer well across domains when no images of the target domain are used during training. An extended discussion about the effects of the training dataset can be found in Appendix A.
180
+
181
+ Overall, these results suggests that our network is able to learn whether two images are similar or not and provide a similarity score accordingly. Figure 4 shows how the mAP is affected when using different values of $\Delta$ . Except when $\Delta = 0$ (i.e. visual similarity is not learned), DeepSimH always improves mAP with respect to the standard cosine similarity.
182
+
183
+ # 5.3 COMPARISON WITH THE STATE OF THE ART.
184
+
185
+ Finally, we compare our method against several state-of-the-art techniques (Table 3). As standard practice, works are split into two main groups: off-the-shelf and fine-tunning approaches. Off-theshelf are techniques that extract visual representations by using CNNs trained on ImageNet dataset Russakovsky et al. (2015) without modifying the network. On the other hand, fine-tunning methods retrain the network to compute more accurate visual representation. For a fair comparison, we only consider methods that represent each image with a single compact vector and do not apply query expansion or image re-ranking. When using off-the-shelf RMAC features, our DeepSimH approach outperforms previous methods in every dataset. To compare against fine-tunned methods, we compute RMAC vectors using the fine-tunned version of VGG16 proposed in Radenovic et al. (2016) ´ and training our DeepSimH exactly in the same way as in the off-the-shelf version. Accuracy is significantly improved when using our similarity network instead of the analogous cosine similarity method Radenovic et al. (2016). DeepSimH achieves the best mAP precision in´ $_ { \mathrm { O X } 5 \mathrm { k } }$ dataset and comes second in $_ { \mathrm { O X 1 0 5 k } }$ and $\mathrm { P a l 0 6 k }$ after Gordo et al. (2017), which uses the more complex and higher-dimensional ResNet He et al. (2016) instead of a VGG16 network for image representation.
186
+
187
+ # 6 CONCLUSIONS
188
+
189
+ We have presented a method for learning visual similarity directly from visual data. Instead of using a rigid metric distance, such as the standard cosine similarity, we propose to train a neural network model to learn a similarity estimation between a pair of visual representations previously extracted from input images. Our method outperforms state-of-the-art approaches based on rigid distances in standard image retrieval collection of images and experimental results showed that learning a nonmetric visual similarity function is beneficial in image retrieval tasks provided that a small subset of images of the same domain are available during training. Standard image retrieval techniques that are commonly applied after cosine similarity computation, such as query expansion or image re-ranking, might also be applied on top of the similarity network. Finally, we end with an open question, which is the subject of planned future work, concerning efficient computation of exact or approximate K-nearest neighbours based on the learned network similarity function.
190
+
191
+ # REFERENCES
192
+
193
+ Artem Babenko and Victor Lempitsky. Aggregating local deep features for image retrieval. In Proceedings of the IEEE International Conference on Computer Vision, 2015.
194
+
195
+ Artem Babenko, Anton Slesarev, Alexandr Chigorin, and Victor Lempitsky. Neural codes for image retrieval. In Proceedings of the IEEE European Conference on Computer Vision, 2014.
196
+
197
+ Sean Bell and Kavita Bala. Learning visual similarity for product design with convolutional neural networks. ACM Transactions on Graphics (TOG), 34(4), 2015.
198
+
199
+ Gal Chechik, Varun Sharma, Uri Shalit, and Samy Bengio. Large scale online learning of image similarity through ranking. Journal of Machine Learning Research, 11(Mar), 2010.
200
+
201
+ Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2005.
202
+
203
+ Venice Erin Liong, Jiwen Lu, Gang Wang, Pierre Moulin, and Jie Zhou. Deep hashing for compact binary codes learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
204
+
205
+ Philipp Fischer, Alexey Dosovitskiy, Eddy Ilg, Philip Hausser, Caner Hazırbas¸, Vladimir Golkov, ¨ Patrick van der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, 2015.
206
+
207
+ Yunchao Gong, Liwei Wang, Ruiqi Guo, and Svetlana Lazebnik. Multi-scale orderless pooling of deep convolutional activation features. In Proceedings of the IEEE European Conference on Computer Vision, 2014.
208
+
209
+ Albert Gordo, Jon Almazan, Jerome Revaud, and Diane Larlus. Deep image retrieval: Learning ´ global representations for image search. In Proceedings of the IEEE European Conference on Computer Vision, 2016.
210
+
211
+ Albert Gordo, Jon Almazan, Jerome Revaud, and Diane Larlus. End-to-end learning of deep visual representations for image retrieval. International Journal of Computer Vision, 124(2), 2017.
212
+
213
+ Xufeng Han, Thomas Leung, Yangqing Jia, Rahul Sukthankar, and Alexander C Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
214
+
215
+ 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, 2016.
216
+
217
+ Elad Hoffer and Nir Ailon. Deep metric learning using triplet network. In International Workshop on Similarity-Based Pattern Recognition, 2015.
218
+
219
+ Herve J ´ egou and Ond ´ ˇrej Chum. Negative evidences and co-occurences in image retrieval: The benefit of pca and whitening. In Computer Vision–ECCV 2012. Springer, 2012.
220
+
221
+ Herve J ´ egou, Matthijs Douze, Cordelia Schmid, and Patrick P ´ erez. Aggregating local descriptors ´ into a compact image representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010.
222
+
223
+ Albert Jimenez, Jose M Alvarez, and Xavier Gir ´ o Nieto. Class-weighted convolutional features for ´ visual instance search. In Proceedings of the 28th British Machine Vision Conference, 2017.
224
+
225
+ Yannis Kalantidis, Clayton Mellina, and Simon Osindero. Cross-dimensional weighting for aggregated deep convolutional features. In Proceedings of the IEEE European Conference on Computer Vision, 2016.
226
+
227
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, 2012.
228
+
229
+ Brian Kulis et al. Metric learning: A survey. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 5(4), 2013.
230
+
231
+ Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. Deepreid: Deep filter pairing neural network for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2014.
232
+
233
+ Kevin Lin, Huei-Fang Yang, Jen-Hao Hsiao, and Chu-Song Chen. Deep learning of binary hash codes for fast image retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2015.
234
+
235
+ Yu Liu, Yanming Guo, Song Wu, and Michael S Lew. Deepindex for accurate and efficient image retrieval. In Proceedings of the 5th ACM on International Conference on Multimedia Retrieval. ACM, 2015.
236
+
237
+ David G Lowe. Distinctive image features from scale-invariant keypoints. International journal of computer vision, 60(2), 2004.
238
+
239
+ Wenjie Luo, Alexander G Schwing, and Raquel Urtasun. Efficient deep learning for stereo matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016.
240
+
241
+ Brian McFee and Gert R Lanckriet. Metric learning to rank. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), 2010.
242
+
243
+ Eva Mohedano, Kevin McGuinness, Noel E O’Connor, Amaia Salvador, Ferran Marques, and ´ Xavier Giro-i Nieto. Bags of local convolutional features for scalable instance search. In ´ Proceedings of the 2016 ACM on International Conference on Multimedia Retrieval. ACM, 2016.
244
+
245
+ Hyeonwoo Noh, Andre Araujo, Jack Sim, Tobias Weyand, and Bohyung Han. Large-scale image retrieval with attentive deep local features. In The IEEE International Conference on Computer Vision (ICCV), 2017.
246
+
247
+ Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016.
248
+
249
+ Florent Perronnin, Yan Liu, Jorge Sanchez, and Herv ´ e Poirier. Large-scale image retrieval with ´ compressed fisher vectors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010.
250
+
251
+ J. Philbin, O. Chum, M. Isard, J. Sivic, and A. Zisserman. Object retrieval with large vocabularies and fast spatial matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2007.
252
+
253
+ J. Philbin, O. Chum, M. Isard, J. Sivic, and A. Zisserman. Lost in quantization: Improving particular object retrieval in large scale image databases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2008.
254
+
255
+ Qi Qian, Rong Jin, Shenghuo Zhu, and Yuanqing Lin. Fine-grained visual categorization via multistage metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
256
+
257
+ Filip Radenovic, Giorgos Tolias, and Ond ´ ˇrej Chum. Cnn image retrieval learns from bow: Unsupervised fine-tuning with hard examples. In Proceedings of the IEEE European Conference on Computer Vision, 2016.
258
+
259
+ Ali Sharif Razavian, Josephine Sullivan, Stefan Carlsson, and Atsuto Maki. Visual instance retrieval with deep convolutional networks. ITE Transactions on Media Technology and Applications, 4 (3), 2016.
260
+
261
+ 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), 2015.
262
+
263
+ Amaia Salvador, Xavier Giro-i Nieto, Ferran Marqu ´ es, and Shin’ichi Satoh. Faster r-cnn features ´ for instance search. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2016.
264
+
265
+ Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features offthe-shelf: an astounding baseline for recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2014.
266
+
267
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, 2014.
268
+
269
+ Josef Sivic, Andrew Zisserman, et al. Video google: A text retrieval approach to object matching in videos. In Proceedings of the IEEE International Conference on Computer Vision, 2003.
270
+
271
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
272
+
273
+ Xiaoyang Tan, Songcan Chen, Jun Li, and Zhi-Hua Zhou. Learning non-metric partial similarity based on maximal margin criterion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, volume 1, 2006.
274
+
275
+ J. Thewlis, S. Zheng, P. Torr, and A. Vedaldi. Fully-trainable deep matching. In Proceedings of the British Machine Vision Conference, 2016.
276
+
277
+ Giorgos Tolias, Ronan Sicre, and Herve J ´ egou. Particular object retrieval with integral max-pooling ´ of cnn activations. In Proceedings of the International Conference on Learning Representations, 2016.
278
+
279
+ Laurens Van Der Maaten. Accelerating t-sne using tree-based algorithms. Journal of machine learning research, 15(1), 2014.
280
+
281
+ Ji Wan, Dayong Wang, Steven Chu Hong Hoi, Pengcheng Wu, Jianke Zhu, Yongdong Zhang, and Jintao Li. Deep learning for content-based image retrieval: A comprehensive study. In Proceedings of the 22nd ACM international conference on Multimedia. ACM, 2014.
282
+
283
+ Jiang Wang, Yang Song, Thomas Leung, Chuck Rosenberg, Jingbin Wang, James Philbin, Bo Chen, and Ying Wu. Learning fine-grained image similarity with deep ranking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2014.
284
+
285
+ Pengcheng Wu, Steven CH Hoi, Hao Xia, Peilin Zhao, Dayong Wang, and Chunyan Miao. Online multimodal deep similarity learning with application to image retrieval. In Proceedings of the 21st ACM international conference on Multimedia. ACM, 2013.
286
+
287
+ Lingxi Xie, Richang Hong, Bo Zhang, and Qi Tian. Image classification and retrieval are one. In Proceedings of the 5th ACM on International Conference on Multimedia Retrieval. ACM, 2015.
288
+
289
+ Joe Yue-Hei Ng, Fan Yang, and Larry S Davis. Exploiting local features from deep networks for image retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2015.
290
+
291
+ Sergey Zagoruyko and Nikos Komodakis. Learning to compare image patches via convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015.
292
+
293
+ ![](images/4319978d225706a0e00ce9bc4ebe0fc5c78e6a37ce74916c2747867da9e0e095.jpg)
294
+ Figure 5: mAP when using different number of target samples in the training set.
295
+
296
+ # APPENDIX A TRAINING ON TARGET DATASET
297
+
298
+ In this appendix, a further discussion about the influence of the dataset used to train the similarity network and estimate the visual similarity between a pair of images is carried out.
299
+
300
+ As we already noted in Section 5.2, visual similarity does not transfer well across domains. A subset of samples from the target dataset is required during training to learn a meaningful similarity function. This is a well-known problem in the field of metric learning (Kulis et al. (2013)). In Figure 5, we explore the effect on performance when we use different subsets of samples from the target collection in addition to the Landmarks dataset (Gordo et al. (2016)) during the second stage of our training (Section 3.4).
301
+
302
+ Figure 5 shows that there is a clear correlation between the similarity network performance and the number of samples from the target dataset used during training. Indeed, in agreement with previous work in metric learning (Kulis et al. (2013)), we observe that not considering samples from the target dataset to train a similarity function might be harmful. The similarity network, however, outperforms standard metric results even when a small number of samples from the target collection is used during training: only 100 images from $_ { \mathrm { O X } 5 \mathrm { k } }$ and 250 images from Pa6k are required to outperform cosine similarity in $_ { \mathrm { O X } 5 \mathrm { k } }$ and Pa6k datasets, respectively. This fact suggests that the similarity network is able to generalize from a small subset of target samples and is not memorizing the distances in the training collection.
303
+
304
+ Finally, we present some visual results of our findings. Figure 6 and Figure 7 show the t-Distributed Stochastic Neighbor Embedding (t-SNE) (Van Der Maaten, 2014) representation of $_ { \mathrm { O X } 5 \mathrm { k } }$ images when using RMAC as image representation, and cosine similarity or our similarity network as similarity function, respectively. Although RMAC descriptor with a standard metric is already performing well in terms of visual similarity (e.g., in Figure 6 images from Radcliffe camera are grouped together in the right bottom corner), performance can be pushed even more when our similarity network is used instead (Figure 7. In summary, these results indicate the benefit of training a similarity network over a standard metric function such as cosine similarity for the image retrieval task.
305
+
306
+ ![](images/3b75d7f71a158f658f55774c1226cc9c9123f97cee7be8c809a112f09444badc.jpg)
307
+ Figure 6: t-SNE plot for a subset of $5 0 0 \mathrm { O x } 5 \mathrm { k }$ images when using RMAC and cosine similarity.
308
+
309
+ ![](images/7e8787416ced5649f289dc8099d01f497114584fbe5615b98704a60c25ec1ac3.jpg)
310
+ Figure 7: t-SNE plot for a subset of $5 0 0 \mathrm { O x } 5 \mathrm { k }$ images when using RMAC and DeepSim.
311
+
312
+ # APPENDIX B END-TO-END TRAINING
313
+
314
+ So far, we have isolated the similarity computation part in the image retrieval pipeline by only training the similarity network. In this way, it is easy to see that the improvement in the testing datasets compare to when using other similarity methods (Section 5.2) is, in fact, due to the visual similarity network function. In this appendix, however, we explore a real end-to-end approach for image retrieval. The end-to-end approach consists on feeding the system with pixels to obtain a visual similarity score between a pair of images. The whole pipeline is presented in Figure 8. For the feature extraction part, we adopt the MAC compact image representation, following Radenovic´ et al. (2016) work. For the visual similarity part, we use our visual similarity network DeepSim. The whole approach is end-to-end differentiable so backpropagation can be applied during training.
315
+
316
+ ![](images/1a82b4116c061c1069df5e09b436350cd8a0fa681c672ea9e6ac9a5ddd6e8703.jpg)
317
+ Figure 8: End-to-End architecture. The feature extraction part consists on a VGG16 network followed by a max-pooling and a l2-normalization layers. In the visual similarity part, two compact vectors are concatenated and forwarded to the DeepSim network to obtain a similarity score.
318
+
319
+ In this case, we use MAC Tolias et al. (2016) as compact image representation. After feeding a VGG16 network Simonyan & Zisserman (2014) with a pre-processed image, the feature maps from the last convolutional layer are obtained. These feature maps are then max-pooled over the whole region to obtain a compact vector, which is l2-normalized. The final dimensionality of the MAC vector does not depend on the input image size, but in the number of filters in the last convolutional layer. Image pre-processing includes resizing the image to 720 pixels on its largest side (maintaining aspect ratio) and mean subtraction.
320
+
321
+ We initialize the VGG16 network with the weights trained on ImageNet dataset. We then learn the weights of the similarity network by freezing VGG16 weights and applying Stage 1 and Stage 2, as described in Section 3.4. Finally, for the end-to-end training, we unfreeze all the weights of the architecture and fine-tune all the layers one last time. As all the layers have been already pre-trained, the final end-to-end fine-tunning is performed in about 200,000 pairs of images from Landarmarksextra dataset (Section 4.2) for just 5,000 iterations. Note that we adopt MAC Tolias et al. (2016) instead of RMAC as it is easier to train and thus, the results are slightly worst. From Table 4 we note, firstly, a boost in performance when using DeepSim instead of the cosine similarity and finally, a significant improvement when the architecture is trained end-to-end with respect to both the baseline and when only training the visual similarity part.
322
+
323
+ The results are unsurprising as fine-tuning the entire architecture allows us to fit better to a particular dataset. However the key message of the paper is that fine-tuning the final similarity computation, instead on relying on cosines as researchers have been doing so far, may be a worthwhile step that can push accuracy results higher irrespective of the feature vector computation.
324
+
325
+ Table 4: mAP when training different parts of the image retrieval pipeline. In blue, the modules that are fine-tunned in every experiment.
326
+
327
+ <table><tr><td>Features</td><td>Similarity</td><td>Oxford5k</td><td>Paris6k</td><td>Landmarks5k</td></tr><tr><td>MAC</td><td>Cosine</td><td>0.481</td><td>0.539</td><td>0.494</td></tr><tr><td>MAC</td><td>DeepSim</td><td>0.509</td><td>0.683</td><td>0.589</td></tr><tr><td>MAC</td><td>DeepSim</td><td>0.555</td><td>0.710</td><td>0.685</td></tr></table>
parse/train/Skvd-myR-/Skvd-myR-_content_list.json ADDED
@@ -0,0 +1,1761 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING NON-METRIC VISUAL SIMILARITY FOR IMAGE RETRIEVAL ",
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
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Measuring visual (dis)similarity between two or more instances within a data distribution is a fundamental task in many applications, especially in image retrieval. Theoretically, non-metric distances are able to generate a more complex and accurate similarity model than metric distances, provided that the non-linear data distribution is precisely captured by the similarity model. In this work, we analyze a simple approach for deep learning networks to be used as an approximation of non-metric similarity functions and we study how these models generalize across different image retrieval datasets. ",
40
+ "bbox": [
41
+ 232,
42
+ 263,
43
+ 764,
44
+ 376
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 398,
55
+ 336,
56
+ 415
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "For humans, deciding whether two images are visually similar or not is, to some extent, a natural task. However, in computer vision, this is a challenging problem and algorithms do not always succeed in matching pictures that contain similar-looking elements. This is mainly because of the well-known semantic gap problem, which refers to the difference or gap between low-level image pixels and high-level semantic concepts. Estimating visual similarity is a fundamental task that seeks to break this semantic gap by accurately evaluating how alike two or more pictures are. Visual similarity is crucial for many computer vision areas including image retrieval, image classification and object recognition, among others. ",
63
+ "bbox": [
64
+ 174,
65
+ 429,
66
+ 825,
67
+ 541
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Given a query image, content-based image retrieval systems rank pictures in a dataset according to how similar they are with respect to the input. This can be broken into two fundamental tasks: 1) computing meaningful image representations that capture the most salient visual information from pixels and 2) measuring accurate visual similarity between these image representations to rank images according to a similarity score. ",
74
+ "bbox": [
75
+ 174,
76
+ 547,
77
+ 825,
78
+ 617
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In the last years, several methods to represent visual information from raw pixels in images have been proposed, first by designing handcrafted features such as SIFT Lowe (2004), then by compacting these local features into a single global image descriptor using different techniques such as Fisher Vectors Perronnin et al. (2010) and more recently by extracting deep image representations from neural networks (Babenko et al. (2014)). However, once two images are described by feature vectors, visual similarity is commonly measured by computing a standard metric between them. Although regular distance metrics, such as Euclidean distance or cosine similarity, are fast and easy to implement, they do not take into account the possible interdependency within the dataset, which means that even if a strong nonlinear data dependency is occurring in the visual collection, they might not be able to capture it. This suggests that learning a similarity estimation directly from visual data can improve the performance on image retrieval tasks, provided that the likely nonlinearity dependencies within the dataset are precisely learned by the similarity function. ",
85
+ "bbox": [
86
+ 173,
87
+ 625,
88
+ 825,
89
+ 791
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Visual similarity learning is closely related to distance metric learning. Traditionally, distance metric learning algorithms were based on linear metrics such as the Mahalanobis distance. However, if the visual data presents any nonlinear interdependency, better results are expected when using nonlinear approaches. According to some studies Tan et al. (2006), standard metric axioms are not valid for human perception of visual similarity and hence, visual similarity functions should not necessarily satisfy distance metric conditions. Deep learning-based similarity learning methods are mostly focused on learning an optimal mapping from pixels to a linear space in which Euclidean distance can be applied. Instead, we propose a simple approach based on neural networks to learn a non-metric similarity score in the feature space. ",
96
+ "bbox": [
97
+ 174,
98
+ 799,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/56365ceee1d5c2b6bb70d64f61a9f02ba28a75df5d0963025682de396cd8ad10.jpg",
107
+ "image_caption": [
108
+ "Figure 1: System overview. The feature extraction block computes visual representations of images whereas the visual similarity block estimates a similarity score using a neural network. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 173,
113
+ 93,
114
+ 486,
115
+ 193
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "image",
121
+ "img_path": "images/43d42d966b7dc716b383d60d8c886ae8ebf5004f97f3b1cd7ac190fa449f1dcf.jpg",
122
+ "image_caption": [
123
+ "Figure 2: Siamese architectures (left) map pixels into high-quality vector representations. Our similarity network (right) learns a similarity function on top of the vector representations. "
124
+ ],
125
+ "image_footnote": [],
126
+ "bbox": [
127
+ 513,
128
+ 90,
129
+ 799,
130
+ 193
131
+ ],
132
+ "page_idx": 1
133
+ },
134
+ {
135
+ "type": "text",
136
+ "text": "Figure 1 shows an overview of the proposed approach. By training a deep learning model, we can estimate a visual similarity function that outperforms methods based on standard metric computations. One convolutional neural network extracts image representations from input images, while a second neural network computes the visual similarity score. The visual similarity neural network is trained using both pairs of similar and dissimilar images in three stages. The output score of the similarity network can be directly applied as a similarity estimation to rank images in an image retrieval task. Experimental results on standard datasets show that our network is able to discriminate when a pair of images is similar or dissimilar and improve standard metrics score on top of that. ",
137
+ "bbox": [
138
+ 174,
139
+ 282,
140
+ 825,
141
+ 393
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "2 RELATED WORK ",
148
+ "text_level": 1,
149
+ "bbox": [
150
+ 176,
151
+ 417,
152
+ 344,
153
+ 434
154
+ ],
155
+ "page_idx": 1
156
+ },
157
+ {
158
+ "type": "text",
159
+ "text": "Content-Based Image Retrieval. Content-based image retrieval searches for images by considering their visual content. Given a query image, pictures in a collection are ranked according to their visual similarity with respect to the query. Early methods represent the visual content of images by a set of hand-crafted features, such as SIFT Lowe (2004). As a single image may contain hundreds of these features, aggregation techniques like bag-of-words (BOW) Sivic et al. (2003), Fisher Vectors Perronnin et al. (2010) or VLAD Jegou et al. (2010) encode local descriptors into a compact ´ vector, thereby improving computational efficiency and scalability. Recently, because of the latest advancements on deep learning, features obtained from convolutional neural networks (CNN) have rapidly become the new state-of-the-art in image retrieval. ",
160
+ "bbox": [
161
+ 174,
162
+ 450,
163
+ 825,
164
+ 577
165
+ ],
166
+ "page_idx": 1
167
+ },
168
+ {
169
+ "type": "text",
170
+ "text": "Deep Learning for Image Retrieval. Deep image retrieval extracts activations from CNNs as image representations. At first, some methods Babenko et al. (2014); Sharif Razavian et al. (2014); Wan et al. (2014); Liu et al. (2015) proposed to use representations from one of the last fully connected layers of networks pre-trained on the classification ImageNet dataset Russakovsky et al. (2015). When deeper networks such as GoogLeNet Szegedy et al. (2015) and VGG Simonyan & Zisserman (2014) appeared, some authors Babenko & Lempitsky (2015); Yue-Hei $\\mathrm { N g }$ et al. (2015); Sharif Razavian et al. (2014); Xie et al. (2015) showed that mid-layer representations obtained from the convolutional layers performed better in the retrieval task. Since then, there have been several attempts to aggregate these high-dimensional convolutional representations into a compact vector. For example, Gong et al. (2014); Yue-Hei Ng et al. (2015) compacted deep features by using VLAD, Mohedano et al. (2016) encoded the neural codes into an histogram of words, Babenko & Lempitsky (2015); Kalantidis et al. (2016) applied sum-pooling to obtain a compact representation and Razavian et al. (2016); Tolias et al. (2016) aggregated deep features by max-pooling them into a new vector. A different approach is to train the network to directly learn compact binary codes end-to-end (Erin Liong et al., 2015; Lin et al., 2015). Some authors have shown that fine-tunning the networks with similar data to the target task increases the performance significantly (Babenko et al., 2014; Gordo et al., 2016; Radenovic et al., 2016; Salvador et al., 2016; Gordo et al., 2017). ´ Finally, recent work has shown that adding attention models to select meaningful features can be also beneficial for image retrieval (Jimenez et al., 2017; Noh et al., 2017). ´ ",
171
+ "bbox": [
172
+ 173,
173
+ 583,
174
+ 825,
175
+ 847
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "All of these methods are focused on finding high quality features to represent visual content efficiently and visual similarity is computed by simply applying a standard metric distance. General metrics, such as Euclidean distance or cosine similarity, however, might be failing to consider the inner data structure of these visual representations. Learning a similarity function directly from data may help to capture the human perception of visual similarity in a better way. ",
182
+ "bbox": [
183
+ 174,
184
+ 854,
185
+ 823,
186
+ 924
187
+ ],
188
+ "page_idx": 1
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "Similarity Learning. Some of the most popular similarity learning work, such as OASIS Chechik et al. (2010) and MLR McFee & Lanckriet (2010), are based on linear metric learning by optimizing the weights of a linear transformation matrix. Although linear methods are easier to optimize and less prone to overfitting, nonlinear algorithms are expected to achieve higher accuracy modeling the possible nonlinearities of data. Nonlinear similarity learning based on deep learning has been recently applied to many different visual contexts. In low-level image matching, CNNs have been trained to match pairs of patches for stereo matching Zagoruyko & Komodakis (2015); Luo et al. (2016) and optical flow Fischer et al. (2015); Thewlis et al. (2016). In high-level image matching, deep learning techniques have been proposed to learn low-dimensional embedding spaces in face verification Chopra et al. (2005), retrieval Wu et al. (2013); Wang et al. (2014), classification Hoffer & Ailon (2015); Qian et al. (2015); Oh Song et al. (2016) and product search Bell & Bala (2015), either by using siamese Chopra et al. (2005) or triplet Wang et al. (2014) architectures. ",
193
+ "bbox": [
194
+ 174,
195
+ 103,
196
+ 825,
197
+ 270
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "In general, these methods rely on learning a mapping from image pixels to a low dimensional target space to compute the final similarity decision by using a standard metric. They are designed to find the best projection in which a linear distance can be successfully applied. Instead of projecting the visual data into some linear space, that may or may not exist, our approach seeks to learn the nonmetric visual similarity score itself. Similarly, Li et al. (2014) and Han et al. (2015) used a CNN to decide whether or not two input images are a match, applied to pedestrian reindentification and patch matching, respectively. In these methods, the networks are trained as a binary classification problem (i.e. same or different pedestrian/patch), whereas in an image retrieval ranking problem, a regression score is required. Inspired by the results of Wan et al. (2014), which showed that combining deep features with similarity learning techniques can be very beneficial for the performance of image retrieval systems, we propose to train a deep learning algorithm to learn non-metric similarities for image retrieval and improve results in top of high quality image representation methods. ",
204
+ "bbox": [
205
+ 173,
206
+ 277,
207
+ 825,
208
+ 444
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "3 LEARNING VISUAL SIMILARITY ",
215
+ "text_level": 1,
216
+ "bbox": [
217
+ 176,
218
+ 465,
219
+ 472,
220
+ 482
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "3.1 DEFINITION ",
227
+ "text_level": 1,
228
+ "bbox": [
229
+ 174,
230
+ 498,
231
+ 299,
232
+ 513
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "Visual similarity is the task that measures how related two images are by using their visual content. Given $n$ samples in the training image collection $I$ , for each image $I _ { i } \\in I$ with $i \\in [ 1 , n ]$ , a global $d$ -dimensional representation $\\bar { x } _ { i } \\in \\bar { \\mathbb { R } } ^ { d }$ is obtained as $x _ { i } = f ( I _ { i } , w _ { f } )$ , where $f$ is the function that maps images into global features and $w _ { f }$ is the set of parameters of $f$ . We define $s _ { i , j }$ as the similarity score which measures how alike two images $I _ { i }$ and $I _ { j }$ are. The higher $s _ { i , j }$ is, the more similar $I _ { i }$ and $I _ { j }$ are. The aim is to learn a visual similarity function $S$ that computes the similarity score from global image representations as: ",
239
+ "bbox": [
240
+ 174,
241
+ 525,
242
+ 825,
243
+ 623
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "equation",
249
+ "img_path": "images/eca8c5aa628846781e6fca514d4cc4ff9965135714c82fc6ee3ed7d268ab46fa.jpg",
250
+ "text": "$$\n\\begin{array} { r } { s _ { i , j } = S ( x _ { i } , x _ { j } ) = g ( f ( I _ { i } , w _ { f } ) , f ( I _ { j } , w _ { f } ) , w _ { g } ) } \\\\ { s . t . \\quad s _ { i , j } > s _ { i , k } \\to I _ { i } , I _ { j } \\mathrm { a r e ~ m o r e ~ s i m i l a r ~ t h a n ~ } I _ { i } , I _ { k } } \\end{array}\n$$",
251
+ "text_format": "latex",
252
+ "bbox": [
253
+ 325,
254
+ 631,
255
+ 673,
256
+ 669
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "where $g$ is a nonlinear function and $w _ { g }$ is the set of parameters to optimize. ",
263
+ "bbox": [
264
+ 176,
265
+ 675,
266
+ 665,
267
+ 690
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Note that $g$ does not have to be a metric in order to be a similarity function and thus, it is not required to satisfy the rigid constraints of metric axioms, i.e. non-negativity, identity of indiscernibles, symmetry and triangle inequality. Some non-metric similarity works such as Tan et al. (2006) suggest that these restrictions are not compatible with human perception. As an example, they showed that although a centaur might be visually similar to both a person and a horse, the person and the horse are not similar to each other. A possible explanation for this phenomenon is that when comparing two images, human beings may pay more attention to similarities and thus, similar portions of the images may be more discriminative than dissimilar parts. To overcome the issues associated with applying strong rigid constraints to visual similarity, we propose to learn the non-metric similarity function $g$ using a neural network approach. ",
274
+ "bbox": [
275
+ 174,
276
+ 696,
277
+ 825,
278
+ 837
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "3.2 IMAGE REPRESENTATION ",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 176,
288
+ 854,
289
+ 390,
290
+ 869
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "Here we describe the image representation method, $f$ , we use. As this work aims to learn a nonmetric similarity estimation from visual data, our efforts are not focused on improving existing image representation methods, but to learn how to compare them. Without loss of generality, we use the RMAC descriptor proposed in Tolias et al. (2016) as image representation, although any other image representation method can be considered as well. ",
297
+ "bbox": [
298
+ 176,
299
+ 882,
300
+ 823,
301
+ 924
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "table",
307
+ "img_path": "images/ac1e82bf198a844741af08578b8c39f38c184c0cd99d544bafe3817063b73e3c.jpg",
308
+ "table_caption": [
309
+ "Table 1: Network architectures. Fully connected layers (FC-{filters}) are always followed by a ReLU layer except for the last one. Training: 22.5 million pairs. Validation: 7.5 million pairs. "
310
+ ],
311
+ "table_footnote": [],
312
+ "table_body": "<table><tr><td colspan=\"2\"></td><td rowspan=\"2\"></td><td colspan=\"2\">Training Data</td><td colspan=\"2\">Validation Data</td></tr><tr><td>Config</td><td>Params</td><td>MSE</td><td>p</td><td>MSE</td><td>p</td></tr><tr><td>A</td><td>FC-1024,FC-1024,FC-1</td><td>2.1M</td><td>0.00021</td><td>0.946</td><td>0.00035</td><td>0.909</td></tr><tr><td>B</td><td>FC-4096,FC-4096,FC-1</td><td>21M</td><td>0.00008</td><td>0.978</td><td>0.00019</td><td>0.965</td></tr><tr><td>C</td><td>FC-8192,FC-8192,FC-1</td><td>76M</td><td>0.00007</td><td>0.982</td><td>0.00012</td><td>0.974</td></tr><tr><td>D</td><td>FC-4096,FC-4096,FC-4096,FC-1</td><td>38M</td><td>0.00009</td><td>0.978</td><td>0.00019</td><td>0.964</td></tr></table>",
313
+ "bbox": [
314
+ 192,
315
+ 121,
316
+ 802,
317
+ 209
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "",
324
+ "bbox": [
325
+ 174,
326
+ 234,
327
+ 823,
328
+ 263
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "RMAC is a deep global image representation obtained from the last convolutional layer of a pretrained CNN on ImageNet classification task Russakovsky et al. (2015). When an image is fed into the network, the last convolutional layer outputs a $W \\times H \\times K$ response, where $K$ is the number of filters and $W$ and $H$ are the spatial width and height of the output, respectively, that depend on the network architecture as well as on the size of the input image. The response of the $k$ -th filter of the last convolutional layer can be represented by $\\Omega _ { k }$ , a 2D tensor of size $W \\times H$ . If $\\Omega _ { k } ( \\boldsymbol { p } )$ is the response at a particular position $p$ , and $R$ is a spatial region within the feature map, the regional feature vector $f _ { R }$ is defined as: ",
335
+ "bbox": [
336
+ 173,
337
+ 270,
338
+ 825,
339
+ 382
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "equation",
345
+ "img_path": "images/d78a9914e828505a1d8df51779c424d08674b92257e3c8c05ce94784424cc007.jpg",
346
+ "text": "$$\nf _ { R } = [ f _ { R , 1 } \\ldots f _ { R , k } \\ldots f _ { R , K } ] ^ { \\top }\n$$",
347
+ "text_format": "latex",
348
+ "bbox": [
349
+ 395,
350
+ 388,
351
+ 602,
352
+ 407
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "where $f _ { R , k } = \\operatorname* { m a x } _ { p \\in R } \\Omega _ { k } ( p )$ . Thus, $f _ { R }$ consists of the maximum activation of each filter inside the region $R$ . Several regional features are extracted at different multi-scale overlapping regions. Each of these regional vectors is independently post-processed with $\\ell 2$ -normalization, PCA-whitening and $\\ell 2$ -normalization, as suggested in Jegou & Chum (2012). Finally, regional vectors are summed ´ and $\\ell { 2 }$ -normalized once again to obtain the final compact vector. The size of the final vector is $K$ , which is independent of the size of the input image, its aspect ratio or the number of regions used. ",
359
+ "bbox": [
360
+ 174,
361
+ 415,
362
+ 825,
363
+ 500
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "3.3 SIMILARITY NETWORK ",
370
+ "text_level": 1,
371
+ "bbox": [
372
+ 176,
373
+ 518,
374
+ 377,
375
+ 532
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "To compare two images and obtain a visual similarity score we learn the similarity function $g$ by training a deep learning architecture. Given two input images $I _ { i }$ and $I _ { j }$ , we first extract their representations $x _ { i }$ and $x _ { j }$ , respectively, as explained in Section 3.2. The two $K$ -dimensional global vectors are concatenated and fed into the similarity network, as shown in Figure 1. This process is different to the standard siamese architecture Chopra et al. (2005) because the latter maps images into vector representations and updates the shared weights according to the learning protocol and our approach trains and updates the similarity network on top of high-quality vector representations. Moreover, in the similarity network architecture, weights in the image representation block are not necessarily shared. Figure 2 shows the difference between both approaches. ",
382
+ "bbox": [
383
+ 173,
384
+ 544,
385
+ 825,
386
+ 670
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "The similarity network is composed by a set of fully connected layers, each one of them followed by a non-linear function, such as ReLU Krizhevsky et al. (2012). The input of the network is fixed to be of $1 \\times K \\times 2$ size, so the size of the first layer is $1 \\times K \\times 2 \\times C h$ , where $C h$ is the number of channels. We consider hidden layers of size $1 \\times C h \\times 2 \\times C h$ . Finally, the output layer is of size $1 \\times C h \\times 2 \\times 1$ and it is not followed by a ReLU layer, as the output similarity score is expected to cover a full range of values, both positive and negative. The regression loss function, $L$ , penalizes when the predicted score of the network is far away from an annotated similarity score, such as: ",
393
+ "bbox": [
394
+ 173,
395
+ 676,
396
+ 825,
397
+ 775
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "equation",
403
+ "img_path": "images/710286d6b9817825e326f94f9f4d5afa636216a9ccd21f30a174827ce5eb9ef4.jpg",
404
+ "text": "$$\nL ( I _ { i } , I _ { j } ) = | s _ { i , j } - y _ { i , j } | = | g ( x _ { i } , x _ { j } , w _ { g } ) - y _ { i , j } |\n$$",
405
+ "text_format": "latex",
406
+ "bbox": [
407
+ 339,
408
+ 782,
409
+ 658,
410
+ 800
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "where $s _ { i , j }$ is the network output and $y _ { i , j }$ is the annotated score. Four configurations A-D with different number of filters $C h$ and number of hidden layers are proposed and tested during our experiments, as shown in Table 1. ",
417
+ "bbox": [
418
+ 174,
419
+ 808,
420
+ 825,
421
+ 849
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "3.4 TRAINING SIMILARITY ",
428
+ "text_level": 1,
429
+ "bbox": [
430
+ 176,
431
+ 868,
432
+ 375,
433
+ 882
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "The visual similarity network is trained in three stages. In each stage the weights are initialized by the trained weights of the previous stage while the learned task gets progressively more difficult. ",
440
+ "bbox": [
441
+ 173,
442
+ 895,
443
+ 823,
444
+ 924
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "image",
450
+ "img_path": "images/f14d25dacad17f5f47fe3d267ac011ec55bc343bee77586d81f7d1f71f5a521d.jpg",
451
+ "image_caption": [
452
+ "Figure 3: Misclassified pairs. (Upper) Lower row: (dissimilar) similar images in which the network score is (lower) higher than the cosine similarity. "
453
+ ],
454
+ "image_footnote": [],
455
+ "bbox": [
456
+ 196,
457
+ 98,
458
+ 465,
459
+ 256
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "image",
465
+ "img_path": "images/38e7e36e2a240dc779a7a5dd10ddba811943cb7fd5980e4bba2bbff4f467c6a1.jpg",
466
+ "image_caption": [
467
+ "Figure 4: mAP versus $\\Delta$ . Rigid lines are DeepSimH scores, dashed lines are cosine similarity scores. "
468
+ ],
469
+ "image_footnote": [],
470
+ "bbox": [
471
+ 511,
472
+ 98,
473
+ 779,
474
+ 260
475
+ ],
476
+ "page_idx": 4
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "STAGE 1: STANDARD METRIC ",
481
+ "text_level": 1,
482
+ "bbox": [
483
+ 174,
484
+ 342,
485
+ 383,
486
+ 357
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "In Stage 1, the network learns a standard similarity function based on the cosine similarity. We generate random pairs of vectors, $x _ { i }$ and $x _ { j }$ , and we assign the cosine similarity between them as the score label yi,j : ",
493
+ "bbox": [
494
+ 173,
495
+ 366,
496
+ 826,
497
+ 409
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "equation",
503
+ "img_path": "images/445f3df3f580ff6ac08325efa6501793e3459e52f11b34cc022742ad1d2cb565.jpg",
504
+ "text": "$$\ny _ { i , j } = { \\frac { x _ { i } \\cdot x _ { j } } { \\| x _ { i } \\| \\| x _ { j } \\| } }\n$$",
505
+ "text_format": "latex",
506
+ "bbox": [
507
+ 441,
508
+ 409,
509
+ 557,
510
+ 440
511
+ ],
512
+ "page_idx": 4
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "In order to train the model in the full range of possible values, pairs are produced so that the cosine similarity is uniformly distributed within the training set. ",
517
+ "bbox": [
518
+ 173,
519
+ 444,
520
+ 825,
521
+ 472
522
+ ],
523
+ "page_idx": 4
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "STAGE 2: VISUAL SIMILARITY ",
528
+ "bbox": [
529
+ 174,
530
+ 488,
531
+ 388,
532
+ 502
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "In Stage 2, the basic similarity network learns to increase the similarity score when given two matching images and to decrease it when a pair of images is not a match. The weights in this training stage are initialized by the weights obtained during Stage 1. We now use pairs of image representation vectors $x _ { i }$ and $x _ { j }$ , randomly chosen from our training image dataset. The score label is set to: ",
539
+ "bbox": [
540
+ 174,
541
+ 512,
542
+ 825,
543
+ 569
544
+ ],
545
+ "page_idx": 4
546
+ },
547
+ {
548
+ "type": "equation",
549
+ "img_path": "images/8c40564a466feb01d582506ead387537127c9f94512c3c31ccb096aa148cd34e.jpg",
550
+ "text": "$$\ny _ { i , j } = \\left\\{ \\begin{array} { l l } { \\frac { x _ { i } \\cdot x _ { j } } { \\| x _ { i } \\| \\| x _ { j } \\| } + \\Delta , } & { \\mathrm { i f } x _ { i } \\mathrm { a n d } x _ { j } \\mathrm { a r e } \\mathrm { s i m i l a r } } \\\\ { \\frac { x _ { i } \\cdot x _ { j } } { \\| x _ { i } \\| \\| x _ { j } \\| } - \\Delta , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
551
+ "text_format": "latex",
552
+ "bbox": [
553
+ 336,
554
+ 577,
555
+ 661,
556
+ 619
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "where $\\Delta$ is the margin parameter. Thus, the model learns to discriminate when a pair of images are similar (dissimilar) and assigns it a higher (lower) value than the standard score. ",
563
+ "bbox": [
564
+ 171,
565
+ 626,
566
+ 821,
567
+ 655
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "In this stage, the model learns how to compute a similarity score from examples of images that are known to be matching or non-matching. Therefore a relevant dataset to the final retrieval task should be used. Similarity between pairs might be decided using different techniques, such as image classes, score based on local features or manual labeling, among others. Without loss of generality, we consider two images as similar when they belong to the same class and as dissimilar when they belong to different classes. ",
574
+ "bbox": [
575
+ 174,
576
+ 661,
577
+ 825,
578
+ 744
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "STAGE 3: HARD EXAMPLES ",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 176,
588
+ 761,
589
+ 369,
590
+ 776
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "In the Stage 3, the similarity network is refined by training it specifically by using difficult pairs of images. Previous works Gordo et al. (2016); Radenovic et al. (2016) have shown that fine-tunning ´ neural networks using difficult samples is very helpful in terms of performance. This is easy to understand: if the network is only trained by using easy pairs (e.g. a car and a dog), it will not be able to discriminate between difficult pairs (e.g. a car and a van). To choose the set of hard pairs we compute the scores of a random set of image pairs by using the network trained in Stage 2. Those pairs in which the network output is worse than the cosine similarity measure are selected as difficult pairs for retraining1. Examples of difficult image pairs can be seen in Figure 3. ",
597
+ "bbox": [
598
+ 174,
599
+ 785,
600
+ 825,
601
+ 898
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "4 EXPERIMENTS ",
608
+ "text_level": 1,
609
+ "bbox": [
610
+ 176,
611
+ 102,
612
+ 326,
613
+ 118
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "4.1 TESTING DATASETS ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 176,
623
+ 137,
624
+ 352,
625
+ 152
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "Our approach is evaluated on the standard image retrieval datasets described below. ",
632
+ "bbox": [
633
+ 174,
634
+ 166,
635
+ 720,
636
+ 181
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "Oxford5k Philbin et al. (2007): a dataset that consists of 5,062 images of 11 different Oxford landmarks. The query set contains 55 annotated images, 5 per landmark. ",
643
+ "bbox": [
644
+ 173,
645
+ 188,
646
+ 821,
647
+ 217
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Paris6k Philbin et al. (2008): a datasets that consists of 6,412 images of 11 different Paris landmarks. The query set contains 55 annotated images, 5 per landmark. ",
654
+ "bbox": [
655
+ 174,
656
+ 223,
657
+ 820,
658
+ 252
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Land5k: a validation subset of the Landmarks database Babenko et al. (2014). It consists of the 4,915 validation images from 529 classes. A random selection of 45 images is used as queries. ",
665
+ "bbox": [
666
+ 173,
667
+ 258,
668
+ 820,
669
+ 286
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "Oxford105k, Paris106k: the large-scale versions of Oxford5k and Paris6k, respectively. They include 100,000 distractor images from Flickr Philbin et al. (2007). ",
676
+ "bbox": [
677
+ 173,
678
+ 292,
679
+ 821,
680
+ 321
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "In both the Oxford5k and the Paris6k collections query images are cropped according to the region of interest provided by the authors of the datasets. Evaluation is performed by computing the mean Average Precision (mAP), using the provided ground truth and algorithms. For Land5k we consider an image to be relevant to the query when it belongs to the same class. ",
687
+ "bbox": [
688
+ 174,
689
+ 329,
690
+ 825,
691
+ 385
692
+ ],
693
+ "page_idx": 5
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "4.2 TRAINING DATASETS ",
698
+ "text_level": 1,
699
+ "bbox": [
700
+ 176,
701
+ 409,
702
+ 362,
703
+ 422
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "For the purposes of this work, having a training dataset as similar as possible to the final similarity task is essential. We create several versions of the training dataset to evaluate the effect of using different samples in the training process. ",
710
+ "bbox": [
711
+ 174,
712
+ 438,
713
+ 825,
714
+ 479
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Landmarks Gordo et al. (2016): an automatically cleaned subset of the full Landmarks Babenko et al. (2014) dataset which officially contains about 49,000 images from 586 landmarks. However, due to broken URLs, we could only download 33,119 training images and 4,915 validation images. This dataset does not contain images from classes that overlap with Oxford5k and Paris6k datasets as they were manually removed. ",
721
+ "bbox": [
722
+ 174,
723
+ 486,
724
+ 825,
725
+ 556
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Landmarks-extra500: the Landmarks collection plus 250 random images from each of the Oxford5k and Paris6k datasets. In total, it contains 33,619 training images. ",
732
+ "bbox": [
733
+ 173,
734
+ 563,
735
+ 821,
736
+ 592
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Landmarks-extra: the Landmarks collection in addition to about 500 images from Oxford5k and 1,700 images from Paris6k classes. In total, it contains 35,342 training images belonging to 605 different landmarks. Note that query images are not added in any case and they remain unseen by the system. ",
743
+ "bbox": [
744
+ 174,
745
+ 598,
746
+ 825,
747
+ 655
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "4.3 EXPERIMENTAL DETAILS ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 176,
757
+ 679,
758
+ 390,
759
+ 693
760
+ ],
761
+ "page_idx": 5
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "Image Representation. To compute RMAC representations we use the VGG16 network Simonyan & Zisserman (2014), which has been previously pre-trained on the ImageNet dataset Russakovsky et al. (2015). Unless otherwise stated, we use the default values proposed in Tolias et al. (2016) to obtain 512-dimensional RMAC vectors. VGG16 network is used off-the-shelf without any retraining or fine-tunning performed on top of it. Experimental results have shown that RMAC representations are very sensitive to the PCA matrices used in the post-processing step. As we are keeping query images unseen by the system and not using them in the PCA matrices computation as in Tolias et al. (2016), our results are slightly different to theirs. ",
766
+ "bbox": [
767
+ 174,
768
+ 708,
769
+ 823,
770
+ 819
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Visual Similarity Learning. Similarity learning is trained using almost a million of random pairs, of which half of the pairs are visual matches and the other half are non-matches. PCA whitening is done using Paris5k images. As RMAC representation performs better in high resolution images, we re-scale all the images up to 1024 pixels, keeping the original aspect ratio of the pictures. For the similarity network, four different configurations A-D (Table 1) are explored during our experiments. The network is optimized using backpropagation and stochastic gradient descent. We use a learning rate of 0.001, a batch size of 100, a weight decay of 0.0005 and momentum of 0.9. ",
777
+ "bbox": [
778
+ 173,
779
+ 825,
780
+ 825,
781
+ 924
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "table",
787
+ "img_path": "images/f0a6496cfe62f8006b173a5a2544900fd05f776c0b9a6e6b06b9b3a75d3b5de3.jpg",
788
+ "table_caption": [
789
+ "Table 2: mAP when using different training configurations and $\\Delta$ (in brackets) values. "
790
+ ],
791
+ "table_footnote": [],
792
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Landmarks</td><td colspan=\"3\">Landmarks-extra500</td><td colspan=\"3\">Landmarks-extra</td></tr><tr><td>Ox5k</td><td>Pa6k</td><td>La5k</td><td>Ox5k</td><td>Pa6k</td><td>La5k</td><td>Ox5k</td><td>Pa6k</td><td>La5k</td></tr><tr><td>Cosine</td><td>0.665</td><td>0.638</td><td>0.564</td><td>0.665</td><td>0.638</td><td>0.564</td><td>0.665</td><td>0.638</td><td>0.564</td></tr><tr><td>DeepCosine</td><td>0.638</td><td>0.596</td><td>0.549</td><td>0.638</td><td>0.596</td><td>0.549</td><td>0.638</td><td>0.596</td><td>0.549</td></tr><tr><td>OASIS</td><td>0.514</td><td>0.385</td><td>0.578</td><td>0.570</td><td>0.651</td><td>0.589</td><td>0.619</td><td>0.853</td><td>0.579</td></tr><tr><td>Linear (0.2)</td><td>0.598</td><td>0.660</td><td>0.508</td><td>0.611</td><td>0.632</td><td>0.514</td><td>0.602</td><td>0.581</td><td>0.502</td></tr><tr><td>DeepSim (0.2)</td><td>0.658</td><td>0.460</td><td>0.669</td><td>0.717</td><td>0.654</td><td>0.671</td><td>0.718</td><td>0.757</td><td>0.668</td></tr><tr><td>DeepSimH(0.2)</td><td>0.655</td><td>0.503</td><td>0.697</td><td>0.719</td><td>0.677</td><td>0.693</td><td>0.786</td><td>0.860</td><td>0.662</td></tr><tr><td>DeepSimH (0.4)</td><td>0.637</td><td>0.504</td><td>0.737</td><td>0.703</td><td>0.701</td><td>0.745</td><td>0.794</td><td>0.878</td><td>0.706</td></tr><tr><td>DeepSimH(0.6)</td><td>0.613</td><td>0.514</td><td>0.776</td><td>0.703</td><td>0.716</td><td>0.776</td><td>0.789</td><td>0.885</td><td>0.735</td></tr><tr><td>DeepSimH (0.8)</td><td>0.600</td><td>0.511</td><td>0.783</td><td>0.685</td><td>0.710</td><td>0.803</td><td>0.808</td><td>0.891</td><td>0.758</td></tr></table>",
793
+ "bbox": [
794
+ 184,
795
+ 108,
796
+ 810,
797
+ 263
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Computational cost. Standard metrics are relatively fast and computationally cheap. Our visual similarity network involves the use of millions of parameters that inevitable increase the computational cost. However, it is still feasible to compute in a reasonable amount of time. In our experiments, training time is about 5 hours in a GeForce GTX 1080 GPU and testing time for a pair of images is $1 . 2 5 ~ \\mathrm { m s }$ on average (0.35 ms when using cosine similarity). ",
804
+ "bbox": [
805
+ 174,
806
+ 277,
807
+ 825,
808
+ 348
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "5 RESULTS ",
815
+ "text_level": 1,
816
+ "bbox": [
817
+ 174,
818
+ 369,
819
+ 281,
820
+ 386
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "5.1 ARCHITECTURE DISCUSSION ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 176,
830
+ 402,
831
+ 416,
832
+ 416
833
+ ],
834
+ "page_idx": 6
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "Four different configurations A-D for the similarity neural network are proposed. We compare the performance of each one during Stage 1, when the network is trained with the standard cosine similarity measurement. If $s _ { l }$ is the network score and $y _ { l }$ is the cosine similarity of the $l$ -th pair with $l = 1 . . L$ , we evaluate each network by computing the mean squared error, MSE, and the correlation coefficient, $\\rho$ , as: ",
839
+ "bbox": [
840
+ 173,
841
+ 428,
842
+ 825,
843
+ 500
844
+ ],
845
+ "page_idx": 6
846
+ },
847
+ {
848
+ "type": "equation",
849
+ "img_path": "images/d8f58acf91d6fd5d24c57779e4843b25c806856561792d46ea8e28ee4bf1f260.jpg",
850
+ "text": "$$\nM S E = \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } ( s _ { l } - y _ { l } ) ^ { 2 } \\rho = \\frac { 1 } { L - 1 } \\sum _ { l = 1 } ^ { L } \\frac { s _ { l } - \\mu _ { s } } { \\sigma _ { s } } \\frac { y _ { l } - \\mu _ { y } } { \\sigma _ { y } }\n$$",
851
+ "text_format": "latex",
852
+ "bbox": [
853
+ 261,
854
+ 506,
855
+ 736,
856
+ 551
857
+ ],
858
+ "page_idx": 6
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "where $\\mu _ { s }$ and $\\sigma _ { s }$ are the mean and standard deviation of the vector of network scores $s$ , and $\\mu _ { y }$ and $\\sigma _ { y }$ are the mean and standard deviation of the vectors of cosine similarities $y$ . ",
863
+ "bbox": [
864
+ 176,
865
+ 558,
866
+ 821,
867
+ 587
868
+ ],
869
+ "page_idx": 6
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "Results are shown in Table 1. Unsurprisingly, the configuration with bigger number of parameters, C, achieves the best MSE and $\\rho$ results, both in training and validation sets. However, the performance of networks B and $\\mathrm { D }$ is very close to the performance of network C. As network B requires only 21 million parameters and network C requires 76 million parameters, we keep configuration B as our default architecture for the rest of the experiments. ",
874
+ "bbox": [
875
+ 174,
876
+ 593,
877
+ 825,
878
+ 662
879
+ ],
880
+ "page_idx": 6
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "5.2 EVALUATION OF THE SIMILARITY NETWORK ",
885
+ "text_level": 1,
886
+ "bbox": [
887
+ 174,
888
+ 681,
889
+ 522,
890
+ 695
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "In this section, we study the benefits of using a non-metric distance function trained with neural networks. In order to isolate the contribution of the visual similarity computation and perform a fair comparison between different distance functions, we only train the similarity network part. However, an end-to-end training of the whole image retrieval pipeline is explored in Appendix B. ",
897
+ "bbox": [
898
+ 174,
899
+ 708,
900
+ 825,
901
+ 763
902
+ ],
903
+ "page_idx": 6
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "To evaluate our similarity network, we compute the mAP at each stage of the training process (Section 4.2). Results when using different training datasets can be found in Table 2. Cosine similarity is computed as a baseline. We denote as DeepCosine the results obtained after the first stage, when the network is trained to mimic cosine similarity. Naturally, DeepCosine performs worse than the cosine similarity, as it is an estimation of the cosine metric. DeepSim refers to the results obtained after the second stage, when the network is fine-tunned to learn visual similarity with random pairs of images. DeepSimH are the results after the last stage, when the network is trained by using both random and hard pairs of images. We compare our approach against the standard similarity learning algorithm OASIS Chechik et al. (2010). Finally, we also conduct experiments on linear metric learning, which are denoted as Linear in Table 2, by training an affine transformation of the feature vectors using the same training protocol as described in Equation 5. ",
908
+ "bbox": [
909
+ 174,
910
+ 770,
911
+ 825,
912
+ 924
913
+ ],
914
+ "page_idx": 6
915
+ },
916
+ {
917
+ "type": "table",
918
+ "img_path": "images/9dd4185fa3f5668994f2d7574074c065998b5dbf8794d87d31aaba00a6a75286.jpg",
919
+ "table_caption": [
920
+ "Table 3: mAP results for different state-of-the-art methods. Dim corresponds to the dimensionality of the feature representation. Similarity is the similarity function. "
921
+ ],
922
+ "table_footnote": [],
923
+ "table_body": "<table><tr><td></td><td>Method</td><td>Dim</td><td>Similarity</td><td>Ox5k</td><td>Ox105k</td><td>Pa6k</td><td>Pa106k</td></tr><tr><td rowspan=\"11\">Jltr-ertiti</td><td>Babenko et al. (2014)</td><td>512</td><td>L2</td><td>0.435</td><td>0.392</td><td>=</td><td>1</td></tr><tr><td>Sharif Razavian et al. (2014)</td><td>4096</td><td>Averaged L2</td><td>0.322</td><td>1</td><td>0.495</td><td>1</td></tr><tr><td>Wan et al. (2014)</td><td>4096</td><td>OASIS</td><td>0.466</td><td>1</td><td>0.867</td><td>=</td></tr><tr><td>Babenko &amp; Lempitsky (2015)</td><td>256</td><td>Cosine</td><td>0.657</td><td>0.642</td><td></td><td>=</td></tr><tr><td>Yue-Hei Ng et al. (2015)</td><td>128</td><td>L2</td><td>0.593</td><td>1</td><td>0.59</td><td>=</td></tr><tr><td>Kalantidis et al. (2016)</td><td>512</td><td>L2</td><td>0.708</td><td>0.653</td><td>0.797</td><td>0.722</td></tr><tr><td>Mohedano et al. (2016)</td><td>25k</td><td>Cosine</td><td>0.739</td><td>0.593</td><td>0.82</td><td>0.648</td></tr><tr><td>Salvador et al. (2016)</td><td>512</td><td>Cosine</td><td>0.588</td><td>1</td><td>0.656</td><td>1</td></tr><tr><td>Tolias et al. (2016)</td><td>512</td><td>Cosine</td><td>0.669</td><td>0.616</td><td>0.83</td><td>0.757</td></tr><tr><td>Jiménez et al. (2017)</td><td>512</td><td>Cosine</td><td>0.712</td><td>0.672</td><td>0.805</td><td>0.733</td></tr><tr><td>Ours (△ = 0.8)</td><td>512</td><td>DeepSimH</td><td>0.808</td><td>0.772</td><td>0.891</td><td>0.818</td></tr><tr><td rowspan=\"7\">Binunnau</td><td>Babenko et al. (2014)</td><td>512</td><td>L2</td><td>0.557</td><td>0.522</td><td>1</td><td>1</td></tr><tr><td>Gordo et al. (2016)</td><td>512</td><td>Cosine</td><td>0.831</td><td>0.786</td><td>0.871</td><td>0.797</td></tr><tr><td>Wan et al. (2014)</td><td>4096</td><td>OASIS</td><td>0.783</td><td>1</td><td>0.947</td><td>1</td></tr><tr><td>Radenovic et al. (2016)</td><td>512</td><td>Cosine</td><td>0.77</td><td>0.692</td><td>0.838</td><td>0.764</td></tr><tr><td>Salvador et al. (2016)</td><td>512</td><td>Cosine</td><td>0.71</td><td></td><td>0.798</td><td></td></tr><tr><td>Gordo et al. (2017)</td><td>2048</td><td>Cosine</td><td>0.861</td><td>0.828</td><td>0.945</td><td>0.906</td></tr><tr><td>Ours (△ = 0.8)</td><td>512</td><td>DeepSimH</td><td>0.882</td><td>0.821</td><td>0.882</td><td>0.829</td></tr></table>",
924
+ "bbox": [
925
+ 176,
926
+ 121,
927
+ 828,
928
+ 388
929
+ ],
930
+ "page_idx": 7
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "Our similarity networks outperform OASIS in all the testing datasets. Moreover when using Landmarks-clean-extra as training dataset, results are boosted with respect to the standard metric, achieving improvements ranging from $20 \\%$ (Oxford5k) to $40 \\%$ (Pairs6k). When using a small subset of images from Oxford5k and Paris6k classes, i.e. Landmarks-clean-extra-500 dataset, our similarity networks also improve mAP with respect to the cosine similarity in the three testing datasets. This indicates that visual similarity can be learnt even when using a reduced subset of the target image domain. Experiments on affine transformations show that, unlike our proposed methods, simple linear metrics are not able to properly fit Equation 5. However, visual similarity does not transfer well across domains when no images of the target domain are used during training. An extended discussion about the effects of the training dataset can be found in Appendix A. ",
935
+ "bbox": [
936
+ 173,
937
+ 404,
938
+ 825,
939
+ 542
940
+ ],
941
+ "page_idx": 7
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Overall, these results suggests that our network is able to learn whether two images are similar or not and provide a similarity score accordingly. Figure 4 shows how the mAP is affected when using different values of $\\Delta$ . Except when $\\Delta = 0$ (i.e. visual similarity is not learned), DeepSimH always improves mAP with respect to the standard cosine similarity. ",
946
+ "bbox": [
947
+ 174,
948
+ 549,
949
+ 825,
950
+ 604
951
+ ],
952
+ "page_idx": 7
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "5.3 COMPARISON WITH THE STATE OF THE ART. ",
957
+ "text_level": 1,
958
+ "bbox": [
959
+ 174,
960
+ 623,
961
+ 516,
962
+ 637
963
+ ],
964
+ "page_idx": 7
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Finally, we compare our method against several state-of-the-art techniques (Table 3). As standard practice, works are split into two main groups: off-the-shelf and fine-tunning approaches. Off-theshelf are techniques that extract visual representations by using CNNs trained on ImageNet dataset Russakovsky et al. (2015) without modifying the network. On the other hand, fine-tunning methods retrain the network to compute more accurate visual representation. For a fair comparison, we only consider methods that represent each image with a single compact vector and do not apply query expansion or image re-ranking. When using off-the-shelf RMAC features, our DeepSimH approach outperforms previous methods in every dataset. To compare against fine-tunned methods, we compute RMAC vectors using the fine-tunned version of VGG16 proposed in Radenovic et al. (2016) ´ and training our DeepSimH exactly in the same way as in the off-the-shelf version. Accuracy is significantly improved when using our similarity network instead of the analogous cosine similarity method Radenovic et al. (2016). DeepSimH achieves the best mAP precision in´ $_ { \\mathrm { O X } 5 \\mathrm { k } }$ dataset and comes second in $_ { \\mathrm { O X 1 0 5 k } }$ and $\\mathrm { P a l 0 6 k }$ after Gordo et al. (2017), which uses the more complex and higher-dimensional ResNet He et al. (2016) instead of a VGG16 network for image representation. ",
969
+ "bbox": [
970
+ 173,
971
+ 648,
972
+ 825,
973
+ 843
974
+ ],
975
+ "page_idx": 7
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "6 CONCLUSIONS ",
980
+ "text_level": 1,
981
+ "bbox": [
982
+ 176,
983
+ 863,
984
+ 328,
985
+ 880
986
+ ],
987
+ "page_idx": 7
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "We have presented a method for learning visual similarity directly from visual data. Instead of using a rigid metric distance, such as the standard cosine similarity, we propose to train a neural network model to learn a similarity estimation between a pair of visual representations previously extracted from input images. Our method outperforms state-of-the-art approaches based on rigid distances in standard image retrieval collection of images and experimental results showed that learning a nonmetric visual similarity function is beneficial in image retrieval tasks provided that a small subset of images of the same domain are available during training. Standard image retrieval techniques that are commonly applied after cosine similarity computation, such as query expansion or image re-ranking, might also be applied on top of the similarity network. Finally, we end with an open question, which is the subject of planned future work, concerning efficient computation of exact or approximate K-nearest neighbours based on the learned network similarity function. ",
992
+ "bbox": [
993
+ 174,
994
+ 895,
995
+ 823,
996
+ 924
997
+ ],
998
+ "page_idx": 7
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "",
1003
+ "bbox": [
1004
+ 174,
1005
+ 103,
1006
+ 825,
1007
+ 228
1008
+ ],
1009
+ "page_idx": 8
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "REFERENCES ",
1014
+ "text_level": 1,
1015
+ "bbox": [
1016
+ 176,
1017
+ 250,
1018
+ 285,
1019
+ 265
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Artem Babenko and Victor Lempitsky. Aggregating local deep features for image retrieval. In Proceedings of the IEEE International Conference on Computer Vision, 2015. ",
1026
+ "bbox": [
1027
+ 174,
1028
+ 272,
1029
+ 823,
1030
+ 300
1031
+ ],
1032
+ "page_idx": 8
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Artem Babenko, Anton Slesarev, Alexandr Chigorin, and Victor Lempitsky. Neural codes for image retrieval. In Proceedings of the IEEE European Conference on Computer Vision, 2014. ",
1037
+ "bbox": [
1038
+ 176,
1039
+ 308,
1040
+ 820,
1041
+ 338
1042
+ ],
1043
+ "page_idx": 8
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Sean Bell and Kavita Bala. Learning visual similarity for product design with convolutional neural networks. ACM Transactions on Graphics (TOG), 34(4), 2015. ",
1048
+ "bbox": [
1049
+ 176,
1050
+ 344,
1051
+ 820,
1052
+ 375
1053
+ ],
1054
+ "page_idx": 8
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Gal Chechik, Varun Sharma, Uri Shalit, and Samy Bengio. Large scale online learning of image similarity through ranking. Journal of Machine Learning Research, 11(Mar), 2010. ",
1059
+ "bbox": [
1060
+ 176,
1061
+ 381,
1062
+ 820,
1063
+ 411
1064
+ ],
1065
+ "page_idx": 8
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2005. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 417,
1073
+ 825,
1074
+ 460
1075
+ ],
1076
+ "page_idx": 8
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Venice Erin Liong, Jiwen Lu, Gang Wang, Pierre Moulin, and Jie Zhou. Deep hashing for compact binary codes learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
1081
+ "bbox": [
1082
+ 176,
1083
+ 468,
1084
+ 825,
1085
+ 511
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Philipp Fischer, Alexey Dosovitskiy, Eddy Ilg, Philip Hausser, Caner Hazırbas¸, Vladimir Golkov, ¨ Patrick van der Smagt, Daniel Cremers, and Thomas Brox. Flownet: Learning optical flow with convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision, 2015. ",
1092
+ "bbox": [
1093
+ 174,
1094
+ 518,
1095
+ 825,
1096
+ 575
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Yunchao Gong, Liwei Wang, Ruiqi Guo, and Svetlana Lazebnik. Multi-scale orderless pooling of deep convolutional activation features. In Proceedings of the IEEE European Conference on Computer Vision, 2014. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 583,
1106
+ 825,
1107
+ 626
1108
+ ],
1109
+ "page_idx": 8
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Albert Gordo, Jon Almazan, Jerome Revaud, and Diane Larlus. Deep image retrieval: Learning ´ global representations for image search. In Proceedings of the IEEE European Conference on Computer Vision, 2016. ",
1114
+ "bbox": [
1115
+ 174,
1116
+ 633,
1117
+ 825,
1118
+ 676
1119
+ ],
1120
+ "page_idx": 8
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Albert Gordo, Jon Almazan, Jerome Revaud, and Diane Larlus. End-to-end learning of deep visual representations for image retrieval. International Journal of Computer Vision, 124(2), 2017. ",
1125
+ "bbox": [
1126
+ 171,
1127
+ 684,
1128
+ 823,
1129
+ 713
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Xufeng Han, Thomas Leung, Yangqing Jia, Rahul Sukthankar, and Alexander C Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 720,
1139
+ 826,
1140
+ 763
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "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, 2016. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 771,
1150
+ 821,
1151
+ 800
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Elad Hoffer and Nir Ailon. Deep metric learning using triplet network. In International Workshop on Similarity-Based Pattern Recognition, 2015. ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 808,
1161
+ 821,
1162
+ 837
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Herve J ´ egou and Ond ´ ˇrej Chum. Negative evidences and co-occurences in image retrieval: The benefit of pca and whitening. In Computer Vision–ECCV 2012. Springer, 2012. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 844,
1172
+ 820,
1173
+ 873
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Herve J ´ egou, Matthijs Douze, Cordelia Schmid, and Patrick P ´ erez. Aggregating local descriptors ´ into a compact image representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010. ",
1180
+ "bbox": [
1181
+ 176,
1182
+ 881,
1183
+ 823,
1184
+ 924
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Albert Jimenez, Jose M Alvarez, and Xavier Gir ´ o Nieto. Class-weighted convolutional features for ´ visual instance search. In Proceedings of the 28th British Machine Vision Conference, 2017. ",
1191
+ "bbox": [
1192
+ 173,
1193
+ 103,
1194
+ 823,
1195
+ 132
1196
+ ],
1197
+ "page_idx": 9
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Yannis Kalantidis, Clayton Mellina, and Simon Osindero. Cross-dimensional weighting for aggregated deep convolutional features. In Proceedings of the IEEE European Conference on Computer Vision, 2016. ",
1202
+ "bbox": [
1203
+ 176,
1204
+ 140,
1205
+ 823,
1206
+ 183
1207
+ ],
1208
+ "page_idx": 9
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, 2012. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 190,
1216
+ 823,
1217
+ 219
1218
+ ],
1219
+ "page_idx": 9
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Brian Kulis et al. Metric learning: A survey. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 5(4), 2013. ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 227,
1227
+ 823,
1228
+ 257
1229
+ ],
1230
+ "page_idx": 9
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Wei Li, Rui Zhao, Tong Xiao, and Xiaogang Wang. Deepreid: Deep filter pairing neural network for person re-identification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2014. ",
1235
+ "bbox": [
1236
+ 176,
1237
+ 263,
1238
+ 823,
1239
+ 306
1240
+ ],
1241
+ "page_idx": 9
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Kevin Lin, Huei-Fang Yang, Jen-Hao Hsiao, and Chu-Song Chen. Deep learning of binary hash codes for fast image retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2015. ",
1246
+ "bbox": [
1247
+ 176,
1248
+ 314,
1249
+ 823,
1250
+ 358
1251
+ ],
1252
+ "page_idx": 9
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Yu Liu, Yanming Guo, Song Wu, and Michael S Lew. Deepindex for accurate and efficient image retrieval. In Proceedings of the 5th ACM on International Conference on Multimedia Retrieval. ACM, 2015. ",
1257
+ "bbox": [
1258
+ 176,
1259
+ 364,
1260
+ 825,
1261
+ 409
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "David G Lowe. Distinctive image features from scale-invariant keypoints. International journal of computer vision, 60(2), 2004. ",
1268
+ "bbox": [
1269
+ 171,
1270
+ 416,
1271
+ 825,
1272
+ 445
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Wenjie Luo, Alexander G Schwing, and Raquel Urtasun. Efficient deep learning for stereo matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016. ",
1279
+ "bbox": [
1280
+ 171,
1281
+ 453,
1282
+ 823,
1283
+ 483
1284
+ ],
1285
+ "page_idx": 9
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Brian McFee and Gert R Lanckriet. Metric learning to rank. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), 2010. ",
1290
+ "bbox": [
1291
+ 173,
1292
+ 489,
1293
+ 823,
1294
+ 518
1295
+ ],
1296
+ "page_idx": 9
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Eva Mohedano, Kevin McGuinness, Noel E O’Connor, Amaia Salvador, Ferran Marques, and ´ Xavier Giro-i Nieto. Bags of local convolutional features for scalable instance search. In ´ Proceedings of the 2016 ACM on International Conference on Multimedia Retrieval. ACM, 2016. ",
1301
+ "bbox": [
1302
+ 178,
1303
+ 526,
1304
+ 823,
1305
+ 570
1306
+ ],
1307
+ "page_idx": 9
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "Hyeonwoo Noh, Andre Araujo, Jack Sim, Tobias Weyand, and Bohyung Han. Large-scale image retrieval with attentive deep local features. In The IEEE International Conference on Computer Vision (ICCV), 2017. ",
1312
+ "bbox": [
1313
+ 174,
1314
+ 577,
1315
+ 821,
1316
+ 619
1317
+ ],
1318
+ "page_idx": 9
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016. ",
1323
+ "bbox": [
1324
+ 173,
1325
+ 627,
1326
+ 825,
1327
+ 670
1328
+ ],
1329
+ "page_idx": 9
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "Florent Perronnin, Yan Liu, Jorge Sanchez, and Herv ´ e Poirier. Large-scale image retrieval with ´ compressed fisher vectors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2010. ",
1334
+ "bbox": [
1335
+ 174,
1336
+ 678,
1337
+ 825,
1338
+ 722
1339
+ ],
1340
+ "page_idx": 9
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "J. Philbin, O. Chum, M. Isard, J. Sivic, and A. Zisserman. Object retrieval with large vocabularies and fast spatial matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2007. ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 728,
1348
+ 825,
1349
+ 772
1350
+ ],
1351
+ "page_idx": 9
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "J. Philbin, O. Chum, M. Isard, J. Sivic, and A. Zisserman. Lost in quantization: Improving particular object retrieval in large scale image databases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2008. ",
1356
+ "bbox": [
1357
+ 176,
1358
+ 780,
1359
+ 823,
1360
+ 823
1361
+ ],
1362
+ "page_idx": 9
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Qi Qian, Rong Jin, Shenghuo Zhu, and Yuanqing Lin. Fine-grained visual categorization via multistage metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
1367
+ "bbox": [
1368
+ 174,
1369
+ 830,
1370
+ 823,
1371
+ 873
1372
+ ],
1373
+ "page_idx": 9
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "Filip Radenovic, Giorgos Tolias, and Ond ´ ˇrej Chum. Cnn image retrieval learns from bow: Unsupervised fine-tuning with hard examples. In Proceedings of the IEEE European Conference on Computer Vision, 2016. ",
1378
+ "bbox": [
1379
+ 174,
1380
+ 881,
1381
+ 825,
1382
+ 924
1383
+ ],
1384
+ "page_idx": 9
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "Ali Sharif Razavian, Josephine Sullivan, Stefan Carlsson, and Atsuto Maki. Visual instance retrieval with deep convolutional networks. ITE Transactions on Media Technology and Applications, 4 (3), 2016. ",
1389
+ "bbox": [
1390
+ 173,
1391
+ 103,
1392
+ 823,
1393
+ 146
1394
+ ],
1395
+ "page_idx": 10
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "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), 2015. ",
1400
+ "bbox": [
1401
+ 174,
1402
+ 155,
1403
+ 825,
1404
+ 212
1405
+ ],
1406
+ "page_idx": 10
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Amaia Salvador, Xavier Giro-i Nieto, Ferran Marqu ´ es, and Shin’ichi Satoh. Faster r-cnn features ´ for instance search. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2016. ",
1411
+ "bbox": [
1412
+ 174,
1413
+ 219,
1414
+ 826,
1415
+ 262
1416
+ ],
1417
+ "page_idx": 10
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "text": "Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features offthe-shelf: an astounding baseline for recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2014. ",
1422
+ "bbox": [
1423
+ 174,
1424
+ 272,
1425
+ 825,
1426
+ 314
1427
+ ],
1428
+ "page_idx": 10
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, 2014. ",
1433
+ "bbox": [
1434
+ 173,
1435
+ 323,
1436
+ 823,
1437
+ 352
1438
+ ],
1439
+ "page_idx": 10
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "Josef Sivic, Andrew Zisserman, et al. Video google: A text retrieval approach to object matching in videos. In Proceedings of the IEEE International Conference on Computer Vision, 2003. ",
1444
+ "bbox": [
1445
+ 173,
1446
+ 361,
1447
+ 825,
1448
+ 390
1449
+ ],
1450
+ "page_idx": 10
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
1455
+ "bbox": [
1456
+ 173,
1457
+ 398,
1458
+ 825,
1459
+ 441
1460
+ ],
1461
+ "page_idx": 10
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "Xiaoyang Tan, Songcan Chen, Jun Li, and Zhi-Hua Zhou. Learning non-metric partial similarity based on maximal margin criterion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, volume 1, 2006. ",
1466
+ "bbox": [
1467
+ 173,
1468
+ 450,
1469
+ 823,
1470
+ 493
1471
+ ],
1472
+ "page_idx": 10
1473
+ },
1474
+ {
1475
+ "type": "text",
1476
+ "text": "J. Thewlis, S. Zheng, P. Torr, and A. Vedaldi. Fully-trainable deep matching. In Proceedings of the British Machine Vision Conference, 2016. ",
1477
+ "bbox": [
1478
+ 171,
1479
+ 501,
1480
+ 825,
1481
+ 531
1482
+ ],
1483
+ "page_idx": 10
1484
+ },
1485
+ {
1486
+ "type": "text",
1487
+ "text": "Giorgos Tolias, Ronan Sicre, and Herve J ´ egou. Particular object retrieval with integral max-pooling ´ of cnn activations. In Proceedings of the International Conference on Learning Representations, 2016. ",
1488
+ "bbox": [
1489
+ 173,
1490
+ 539,
1491
+ 825,
1492
+ 582
1493
+ ],
1494
+ "page_idx": 10
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "text": "Laurens Van Der Maaten. Accelerating t-sne using tree-based algorithms. Journal of machine learning research, 15(1), 2014. ",
1499
+ "bbox": [
1500
+ 171,
1501
+ 592,
1502
+ 823,
1503
+ 619
1504
+ ],
1505
+ "page_idx": 10
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "Ji Wan, Dayong Wang, Steven Chu Hong Hoi, Pengcheng Wu, Jianke Zhu, Yongdong Zhang, and Jintao Li. Deep learning for content-based image retrieval: A comprehensive study. In Proceedings of the 22nd ACM international conference on Multimedia. ACM, 2014. ",
1510
+ "bbox": [
1511
+ 176,
1512
+ 628,
1513
+ 823,
1514
+ 672
1515
+ ],
1516
+ "page_idx": 10
1517
+ },
1518
+ {
1519
+ "type": "text",
1520
+ "text": "Jiang Wang, Yang Song, Thomas Leung, Chuck Rosenberg, Jingbin Wang, James Philbin, Bo Chen, and Ying Wu. Learning fine-grained image similarity with deep ranking. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2014. ",
1521
+ "bbox": [
1522
+ 174,
1523
+ 680,
1524
+ 823,
1525
+ 723
1526
+ ],
1527
+ "page_idx": 10
1528
+ },
1529
+ {
1530
+ "type": "text",
1531
+ "text": "Pengcheng Wu, Steven CH Hoi, Hao Xia, Peilin Zhao, Dayong Wang, and Chunyan Miao. Online multimodal deep similarity learning with application to image retrieval. In Proceedings of the 21st ACM international conference on Multimedia. ACM, 2013. ",
1532
+ "bbox": [
1533
+ 173,
1534
+ 732,
1535
+ 825,
1536
+ 775
1537
+ ],
1538
+ "page_idx": 10
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "text": "Lingxi Xie, Richang Hong, Bo Zhang, and Qi Tian. Image classification and retrieval are one. In Proceedings of the 5th ACM on International Conference on Multimedia Retrieval. ACM, 2015. ",
1543
+ "bbox": [
1544
+ 173,
1545
+ 784,
1546
+ 821,
1547
+ 813
1548
+ ],
1549
+ "page_idx": 10
1550
+ },
1551
+ {
1552
+ "type": "text",
1553
+ "text": "Joe Yue-Hei Ng, Fan Yang, and Larry S Davis. Exploiting local features from deep networks for image retrieval. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2015. ",
1554
+ "bbox": [
1555
+ 173,
1556
+ 820,
1557
+ 825,
1558
+ 864
1559
+ ],
1560
+ "page_idx": 10
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Learning to compare image patches via convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2015. ",
1565
+ "bbox": [
1566
+ 174,
1567
+ 873,
1568
+ 825,
1569
+ 916
1570
+ ],
1571
+ "page_idx": 10
1572
+ },
1573
+ {
1574
+ "type": "image",
1575
+ "img_path": "images/4319978d225706a0e00ce9bc4ebe0fc5c78e6a37ce74916c2747867da9e0e095.jpg",
1576
+ "image_caption": [
1577
+ "Figure 5: mAP when using different number of target samples in the training set. "
1578
+ ],
1579
+ "image_footnote": [],
1580
+ "bbox": [
1581
+ 140,
1582
+ 127,
1583
+ 812,
1584
+ 351
1585
+ ],
1586
+ "page_idx": 11
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "APPENDIX A TRAINING ON TARGET DATASET ",
1591
+ "text_level": 1,
1592
+ "bbox": [
1593
+ 174,
1594
+ 434,
1595
+ 568,
1596
+ 449
1597
+ ],
1598
+ "page_idx": 11
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "text": "In this appendix, a further discussion about the influence of the dataset used to train the similarity network and estimate the visual similarity between a pair of images is carried out. ",
1603
+ "bbox": [
1604
+ 171,
1605
+ 464,
1606
+ 821,
1607
+ 493
1608
+ ],
1609
+ "page_idx": 11
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "As we already noted in Section 5.2, visual similarity does not transfer well across domains. A subset of samples from the target dataset is required during training to learn a meaningful similarity function. This is a well-known problem in the field of metric learning (Kulis et al. (2013)). In Figure 5, we explore the effect on performance when we use different subsets of samples from the target collection in addition to the Landmarks dataset (Gordo et al. (2016)) during the second stage of our training (Section 3.4). ",
1614
+ "bbox": [
1615
+ 173,
1616
+ 500,
1617
+ 825,
1618
+ 583
1619
+ ],
1620
+ "page_idx": 11
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "Figure 5 shows that there is a clear correlation between the similarity network performance and the number of samples from the target dataset used during training. Indeed, in agreement with previous work in metric learning (Kulis et al. (2013)), we observe that not considering samples from the target dataset to train a similarity function might be harmful. The similarity network, however, outperforms standard metric results even when a small number of samples from the target collection is used during training: only 100 images from $_ { \\mathrm { O X } 5 \\mathrm { k } }$ and 250 images from Pa6k are required to outperform cosine similarity in $_ { \\mathrm { O X } 5 \\mathrm { k } }$ and Pa6k datasets, respectively. This fact suggests that the similarity network is able to generalize from a small subset of target samples and is not memorizing the distances in the training collection. ",
1625
+ "bbox": [
1626
+ 173,
1627
+ 590,
1628
+ 825,
1629
+ 715
1630
+ ],
1631
+ "page_idx": 11
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "Finally, we present some visual results of our findings. Figure 6 and Figure 7 show the t-Distributed Stochastic Neighbor Embedding (t-SNE) (Van Der Maaten, 2014) representation of $_ { \\mathrm { O X } 5 \\mathrm { k } }$ images when using RMAC as image representation, and cosine similarity or our similarity network as similarity function, respectively. Although RMAC descriptor with a standard metric is already performing well in terms of visual similarity (e.g., in Figure 6 images from Radcliffe camera are grouped together in the right bottom corner), performance can be pushed even more when our similarity network is used instead (Figure 7. In summary, these results indicate the benefit of training a similarity network over a standard metric function such as cosine similarity for the image retrieval task. ",
1636
+ "bbox": [
1637
+ 173,
1638
+ 722,
1639
+ 825,
1640
+ 834
1641
+ ],
1642
+ "page_idx": 11
1643
+ },
1644
+ {
1645
+ "type": "image",
1646
+ "img_path": "images/3b75d7f71a158f658f55774c1226cc9c9123f97cee7be8c809a112f09444badc.jpg",
1647
+ "image_caption": [
1648
+ "Figure 6: t-SNE plot for a subset of $5 0 0 \\mathrm { O x } 5 \\mathrm { k }$ images when using RMAC and cosine similarity. "
1649
+ ],
1650
+ "image_footnote": [],
1651
+ "bbox": [
1652
+ 192,
1653
+ 119,
1654
+ 802,
1655
+ 439
1656
+ ],
1657
+ "page_idx": 12
1658
+ },
1659
+ {
1660
+ "type": "image",
1661
+ "img_path": "images/7e8787416ced5649f289dc8099d01f497114584fbe5615b98704a60c25ec1ac3.jpg",
1662
+ "image_caption": [
1663
+ "Figure 7: t-SNE plot for a subset of $5 0 0 \\mathrm { O x } 5 \\mathrm { k }$ images when using RMAC and DeepSim. "
1664
+ ],
1665
+ "image_footnote": [],
1666
+ "bbox": [
1667
+ 194,
1668
+ 530,
1669
+ 802,
1670
+ 859
1671
+ ],
1672
+ "page_idx": 12
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "APPENDIX B END-TO-END TRAINING ",
1677
+ "text_level": 1,
1678
+ "bbox": [
1679
+ 176,
1680
+ 102,
1681
+ 504,
1682
+ 118
1683
+ ],
1684
+ "page_idx": 13
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "text": "So far, we have isolated the similarity computation part in the image retrieval pipeline by only training the similarity network. In this way, it is easy to see that the improvement in the testing datasets compare to when using other similarity methods (Section 5.2) is, in fact, due to the visual similarity network function. In this appendix, however, we explore a real end-to-end approach for image retrieval. The end-to-end approach consists on feeding the system with pixels to obtain a visual similarity score between a pair of images. The whole pipeline is presented in Figure 8. For the feature extraction part, we adopt the MAC compact image representation, following Radenovic´ et al. (2016) work. For the visual similarity part, we use our visual similarity network DeepSim. The whole approach is end-to-end differentiable so backpropagation can be applied during training. ",
1689
+ "bbox": [
1690
+ 173,
1691
+ 133,
1692
+ 825,
1693
+ 258
1694
+ ],
1695
+ "page_idx": 13
1696
+ },
1697
+ {
1698
+ "type": "image",
1699
+ "img_path": "images/1a82b4116c061c1069df5e09b436350cd8a0fa681c672ea9e6ac9a5ddd6e8703.jpg",
1700
+ "image_caption": [
1701
+ "Figure 8: End-to-End architecture. The feature extraction part consists on a VGG16 network followed by a max-pooling and a l2-normalization layers. In the visual similarity part, two compact vectors are concatenated and forwarded to the DeepSim network to obtain a similarity score. "
1702
+ ],
1703
+ "image_footnote": [],
1704
+ "bbox": [
1705
+ 176,
1706
+ 275,
1707
+ 818,
1708
+ 429
1709
+ ],
1710
+ "page_idx": 13
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "In this case, we use MAC Tolias et al. (2016) as compact image representation. After feeding a VGG16 network Simonyan & Zisserman (2014) with a pre-processed image, the feature maps from the last convolutional layer are obtained. These feature maps are then max-pooled over the whole region to obtain a compact vector, which is l2-normalized. The final dimensionality of the MAC vector does not depend on the input image size, but in the number of filters in the last convolutional layer. Image pre-processing includes resizing the image to 720 pixels on its largest side (maintaining aspect ratio) and mean subtraction. ",
1715
+ "bbox": [
1716
+ 174,
1717
+ 501,
1718
+ 825,
1719
+ 598
1720
+ ],
1721
+ "page_idx": 13
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "text": "We initialize the VGG16 network with the weights trained on ImageNet dataset. We then learn the weights of the similarity network by freezing VGG16 weights and applying Stage 1 and Stage 2, as described in Section 3.4. Finally, for the end-to-end training, we unfreeze all the weights of the architecture and fine-tune all the layers one last time. As all the layers have been already pre-trained, the final end-to-end fine-tunning is performed in about 200,000 pairs of images from Landarmarksextra dataset (Section 4.2) for just 5,000 iterations. Note that we adopt MAC Tolias et al. (2016) instead of RMAC as it is easier to train and thus, the results are slightly worst. From Table 4 we note, firstly, a boost in performance when using DeepSim instead of the cosine similarity and finally, a significant improvement when the architecture is trained end-to-end with respect to both the baseline and when only training the visual similarity part. ",
1726
+ "bbox": [
1727
+ 174,
1728
+ 604,
1729
+ 825,
1730
+ 744
1731
+ ],
1732
+ "page_idx": 13
1733
+ },
1734
+ {
1735
+ "type": "text",
1736
+ "text": "The results are unsurprising as fine-tuning the entire architecture allows us to fit better to a particular dataset. However the key message of the paper is that fine-tuning the final similarity computation, instead on relying on cosines as researchers have been doing so far, may be a worthwhile step that can push accuracy results higher irrespective of the feature vector computation. ",
1737
+ "bbox": [
1738
+ 174,
1739
+ 751,
1740
+ 825,
1741
+ 808
1742
+ ],
1743
+ "page_idx": 13
1744
+ },
1745
+ {
1746
+ "type": "table",
1747
+ "img_path": "images/935c4eca4983802bd27443169378bfb5f4cb7b0e8294f2b20ac0072995c5a13b.jpg",
1748
+ "table_caption": [
1749
+ "Table 4: mAP when training different parts of the image retrieval pipeline. In blue, the modules that are fine-tunned in every experiment. "
1750
+ ],
1751
+ "table_footnote": [],
1752
+ "table_body": "<table><tr><td>Features</td><td>Similarity</td><td>Oxford5k</td><td>Paris6k</td><td>Landmarks5k</td></tr><tr><td>MAC</td><td>Cosine</td><td>0.481</td><td>0.539</td><td>0.494</td></tr><tr><td>MAC</td><td>DeepSim</td><td>0.509</td><td>0.683</td><td>0.589</td></tr><tr><td>MAC</td><td>DeepSim</td><td>0.555</td><td>0.710</td><td>0.685</td></tr></table>",
1753
+ "bbox": [
1754
+ 271,
1755
+ 853,
1756
+ 718,
1757
+ 912
1758
+ ],
1759
+ "page_idx": 13
1760
+ }
1761
+ ]
parse/train/Skvd-myR-/Skvd-myR-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Skvd-myR-/Skvd-myR-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Syg-YfWCW/Syg-YfWCW.md ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GO FOR A WALK AND ARRIVE AT THE ANSWER: REASONING OVER PATHS IN KNOWLEDGE BASES USING REINFORCEMENT LEARNING
2
+
3
+ Rajarshi Das?,1, Shehzaad Dhuliawala?,1, Manzil Zaheer?,2
4
+ Luke Vilnis1, Ishan Durugkar3, Akshay Krishnamurthy1, Alex Smola4, Andrew McCallum1
5
+ {rajarshi, sdhuliawala, luke, akshay, mccallum}@cs.umass.edu
6
+ manzil@cmu.edu, ishand@cs.utexas.edu, alex@smola.org
7
+ 1University of Massachusetts, Amherst, 2Carnegie Mellon University
8
+ 3University of Texas at Austin, 4Amazon Web Services
9
+
10
+ # ABSTRACT
11
+
12
+ Knowledge bases (KB), both automatically and manually constructed, are often incomplete — many valid facts can be inferred from the KB by synthesizing existing information. A popular approach to KB completion is to infer new relations by combinatory reasoning over the information found along other paths connecting a pair of entities. Given the enormous size of KBs and the exponential number of paths, previous path-based models have considered only the problem of predicting a missing relation given two entities, or evaluating the truth of a proposed triple. Additionally, these methods have traditionally used random paths between fixed entity pairs or more recently learned to pick paths between them. We propose a new algorithm, MINERVA, which addresses the much more difficult and practical task of answering questions where the relation is known, but only one entity. Since random walks are impractical in a setting with unknown destination and combinatorially many paths from a start node, we present a neural reinforcement learning approach which learns how to navigate the graph conditioned on the input query to find predictive paths. On a comprehensive evaluation on seven knowledge base datasets, we found MINERVA to be competitive with many current state-of-the-art methods.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Automated reasoning, the ability of computing systems to make new inferences from observed evidence, has been a long-standing goal of artificial intelligence. We are interested in automated reasoning on large knowledge bases (KB) with rich and diverse semantics (Suchanek et al., 2007; Bollacker et al., 2008; Carlson et al., 2010). KBs are highly incomplete (Min et al., 2013), and facts not directly stored in a KB can often be inferred from those that are, creating exciting opportunities and challenges for automated reasoning. For example, consider the small knowledge graph in Figure 1. We can answer the question “Who did Malala Yousafzai share her Nobel Peace prize with?” from the following reasoning path: Malala Yousafzai WonAward Nobel Peace Prize $2 0 1 4 $ AwardedTo Kailash Satyarthi. Our goal is to automatically learn such reasoning paths in KBs. We frame the learning problem as one of query answering, that is to say, answering questions of the form (Malala Yousafzai, SharesNobelPrizeWith, ?).
17
+
18
+ From its early days, the focus of automated reasoning approaches has been to build systems that can learn crisp symbolic logical rules (McCarthy, 1960; Nilsson, 1991). Symbolic representations have also been integrated with machine learning especially in statistical relational learning (Muggleton et al., 1992; Getoor & Taskar, 2007; Kok & Domingos, 2007; Lao et al., 2011), but due to poor generalization performance, these approaches have largely been superceded by distributed vector representations. Learning embedding of entities and relations using tensor factorization or neural methods has been a popular approach (Nickel et al., 2011; Bordes et al., 2013; Socher et al., 2013, inter alia), but these methods cannot capture chains of reasoning expressed by KB paths. Neural multi-hop models (Neelakantan et al., 2015; Guu et al., 2015; Toutanova et al., 2016) address the aforementioned problems to some extent by operating on KB paths embedded in vector space. However, these models take as input a set of paths which are gathered by performing random walks independent of the query relation. Additionally, models such as those developed in Neelakantan et al. (2015); Das et al. (2017) use the same set of initially collected paths to answer a diverse set of query types (e.g. MarriedTo, Nationality, WorksIn etc.).
19
+
20
+ ![](images/a69f2413af7626b10b3a41ec0a77ddfd181895d6947d7b00aa9e15fcf6bc7516.jpg)
21
+ Figure 1: A small fragment of a knowledge base represented as a knowledge graph. Solid edges are observed and dashed edges are part of queries. Note how each query relation (e.g. SharesNobelPrizeWith, Nationality, etc.) can be answered by traversing the graph via “logical” paths between entity ‘Malala Yousafzai’ and the corresponding answer.
22
+
23
+ This paper presents a method for efficiently searching the graph for answer-providing paths using reinforcement learning (RL) conditioned on the input question, eliminating any need for precomputed paths. Given a massive knowledge graph, we learn a policy, which, given the query (entity1, relation, ?), starts from entity1 and learns to walk to the answer node by choosing to take a labeled relation edge at each step, conditioning on the query relation and entire path history. This formulates the query-answering task as a reinforcement learning (RL) problem where the goal is to take an optimal sequence of decisions (choices of relation edges) to maximize the expected reward (reaching the correct answer node). We call the RL agent MINERVA for ”Meandering In Networks of Entities to Reach Verisimilar Answers.”
24
+
25
+ Our RL-based formulation has many desirable properties. First, MINERVA has the built-in flexibility to take paths of variable length, which is important for answering harder questions that require complex chains of reasoning (Shen et al., 2017). Secondly, MINERVA needs no pretraining and trains on the knowledge graph from scratch with reinforcement learning; no other supervision or fine-tuning is required representing a significant advance over prior applications of RL in NLP. Third, our path-based approach is computationally efficient, since by searching in a small neighborhood around the query entity it avoids ranking all entities in the KB as in prior work. Finally, the reasoning paths found by our agent automatically form an interpretable provenance for its predictions.
26
+
27
+ The main contributions of the paper are: (a) We present agent MINERVA, which learns to do query answering by walking on a knowledge graph conditioned on an input query, stopping when it reaches the answer node. The agent is trained using reinforcement learning, specifically policy gradients $( \ S 2 )$ . (b) We evaluate MINERVA on several benchmark datasets and compare favorably to Neural Theorem Provers (NTP) (Rocktaschel & Riedel, 2017) and Neural LP (Yang et al., 2017), which do logical ¨ rule learning in KBs, and also state-of-the-art embedding based methods such as DistMult (Yang et al., 2015) and ComplEx (Trouillon et al., 2016) and ConvE (Dettmers et al., 2018). (c) We also extend MINERVA to handle partially structured natural language queries and test it on the WikiMovies dataset $( \ S \ 3 . 3 )$ (Miller et al., 2016).
28
+
29
+ We also compare to DeepPath (Xiong et al., 2017) which uses reinforcement learning to pick paths between entity pairs. The main difference is that the state of their RL agent includes the answer entity since it is designed for the simpler task of predicting if a fact is true or not. As such their method cannot be applied directly to our more challenging query answering task where the second entity is unknown and must be inferred. Nevertheless, MINERVA outperforms DeepPath on their benchmark NELL-995 dataset when compared in their experimental setting $( \ S \ 3 . 2 . 2 )$ .
30
+
31
+ # 2 TASK AND MODEL
32
+
33
+ We formally define the task of query answering in a KB. Let $\mathcal { E }$ denote the set of entities and $\mathcal { R }$ denote the set of binary relations. A KB is a collection of facts stored as triplets $( \mathbf { e } _ { 1 } , \mathbf { r } , \mathbf { e } _ { 2 } )$ where $\mathbf { e } _ { 1 } , \mathbf { e } _ { 2 } \in \mathcal { E }$ and $\mathbf { r } \in \mathcal { R }$ . From the KB, a knowledge graph $\mathcal { G }$ can be constructed where the entities $\mathrm { e } _ { 1 } , \mathrm { e } _ { 2 }$ are represented as the nodes and relation $r$ as labeled edge between them. Formally, a knowledge graph is a directed labeled multigraph $\mathcal { G } = ( V , E , \mathcal { R } )$ , where $V$ and $E$ denote the vertices and edges of the graph respectively. Note that $V = \mathcal { E }$ and $E \subseteq V \times \mathcal { R } \times V$ . Also, following previous approaches (Bordes et al., 2013; Neelakantan et al., 2015; Xiong et al., 2017), we add the inverse relation of every edge, i.e. for an edge $( \mathbf { e } _ { 1 } , \mathbf { r } , \mathbf { e } _ { 2 } ) \in E$ , we add the edge $\left( \mathbf { e } _ { 2 } , \mathbf { r } ^ { - 1 } , \mathbf { e } _ { 1 } \right)$ to the graph. (If the set of binary relations $\mathcal { R }$ does not contain the inverse relation $\mathrm { r } ^ { - 1 }$ , it is added to $\mathcal { R }$ as well.)
34
+
35
+ Since KBs have a lot of missing information, two natural tasks have emerged in the information extraction community - fact prediction and query answering. Query answering seeks to answer questions of the form $\left( \mathbf { e } _ { 1 } , \mathbf { r } , ? \right)$ , e.g. Toronto, locatedIn, ?, whereas fact prediction involves predicting if a fact is true or not, e.g. (Toronto, locatedIn, Canada)?. Algorithms for fact prediction can be used for query answering, but with significant computation overhead, since all candidate answer entities must be evaluated, making it prohibitively expensive for large KBs with millions of entities. In this work, we present a query answering model, that learns to efficiently traverse the knowledge graph to find the correct answer to a query, eliminating the need to evaluate all entities.
36
+
37
+ Query answering reduces naturally to a finite horizon sequential decision making problem as follows: We begin by representing the environment as a deterministic partially observed Markov decision process on a knowledge graph $\mathcal { G }$ derived from the KB $( \ S 2 . 1 )$ . Our RL agent is given an input query of the form $\left( \mathrm { { e } _ { l q } , \mathrm { { r } _ { q } , \mathrm { { ? } } } } \right)$ . Starting from vertex corresponding to $e _ { 1 q }$ in $\mathcal { G }$ , the agent follows a path in the graph stopping at a node that it predicts as the answer $( \ S 2 . 2 )$ . Using a training set of known facts, we train the agent using policy gradients more specifically by REINFORCE (Williams, 1992) with control variates $( \ S 2 . 3 )$ . Let us begin by describing the environment.
38
+
39
+ 2.1 ENVIRONMENT - STATES, ACTIONS, TRANSITIONS AND REWARDS
40
+
41
+ Our environment is a finite horizon, deterministic partially observed Markov decision process that lies on the knowledge graph $\mathcal { G }$ derived from the KB. On this graph we will now specify a deterministic partially observed Markov decision process, which is a 5-tuple $( \mathcal { S } , \mathcal { O } , \mathcal { A } , \mathring { \delta } , \bar { R } )$ , each of which we elaborate below.
42
+
43
+ States. The state space $s$ consists of all valid combinations in $\mathcal { E } \times \mathcal { E } \times \mathcal { R } \times \mathcal { E }$ . Intuitively, we want a state to encode the query $( \mathrm { e } _ { \mathrm { l q } } , \mathrm { r } _ { \mathrm { q } } )$ , the answer $( { \bf e } _ { 2 { \bf q } } )$ , and a location of exploration $\mathrm { e _ { t } }$ (current location of the RL agent). Thus overall a state $S \in S$ is represented by $S = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { 1 \mathrm { q } } , { \bf r } _ { \mathrm { q } } , { \bf e } _ { 2 \mathrm { q } } )$ and the state space consists of all valid combinations.
44
+
45
+ Observations. The complete state of the environment is not observed. Intuitively, the agent knows its current location $\displaystyle \left( \mathrm { e _ { t } } \right)$ and $( { \bf e } _ { \mathrm { l q } } , { \bf r } _ { \mathrm { q } } )$ , but not the answer $\left( \mathrm { e } _ { 2 \mathrm { q } } \right)$ , which remains hidden. Formally, the observation function $\mathcal { O } : \mathcal { S } \mathcal { \bar { E } } \times \mathbf { \bar { \mathcal { E } } } \times \mathcal { R }$ is defined as $\mathcal { O } ( s = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { \mathrm { l q } } , { \bf r } _ { \mathrm { q } } , { \bf e } _ { 2 \mathrm { q } } ) ) = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { \mathrm { l q } } , { \bf r } _ { \mathrm { q } } )$ .
46
+
47
+ Actions. The set of possible actions $\mathcal { A } _ { S }$ from a state $S = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { 1 \mathrm { q } } , { \bf r } _ { \mathrm { q } } , { \bf e } _ { 2 \mathrm { q } } )$ consists of all outgoing edges of the vertex $\mathrm { e _ { t } }$ in $\mathcal { G }$ . Formally $\begin{array} { r } { A _ { S } = \{ ( \mathbf { e } _ { \mathrm { t } } , r , \nu ) \in E : S = ( \mathbf { e } _ { \mathrm { t } } , \overset { \cdot } { \mathbf { e } _ { \mathrm { l q } } } , \overset { \cdot } { \mathbf { r } } _ { \mathrm { q } } , \overset { \cdot } { \mathbf { e } _ { \mathrm { 2 q } } } ) , r \in \mathcal { R } , \nu \in V \} \bigcup \{ ( s , \varpi , s ) \} } \end{array}$ Basically, this means an agent at each state has option to select which outgoing edge it wishes to take having the knowledge of the label of the edge $r$ and destination vertex $\nu$ .
48
+
49
+ During implementation, we unroll the computation graph up to a fixed number of time steps T. We augment each node with a special action called ‘NO OP’ which goes from a node to itself. Some questions are easier to answer and needs fewer steps of reasoning than others. This design decision allows the agent to remain at a node for any number of time steps. This is especially helpful when the agent has managed to reach a correct answer at a time step $t < \mathrm { T }$ and can continue to stay at the ‘answer node’ for the rest of the time steps. Alternatively, we could have allowed the agent to take a special ‘STOP’ action, but we found the current setup to work sufficiently well. As mentioned before, we also add the inverse relation of a triple, i.e. for the triple $( e _ { 1 } , r , e _ { 2 } )$ , we add the triple $( e _ { 2 } , r ^ { - 1 } , e _ { 1 } )$ to the graph. We found this important because this actually allows our agent to undo a potentially wrong decision.
50
+
51
+ Transition. The environment evolves deterministically by just updating the state to the new vertex incident to the edge selected by the agent. The query and answer remains the same. Formally, the transition function is $\delta : { \mathcal { S } } \times { \mathcal { A } } \to { \mathcal { S } }$ defined by $\bar { \boldsymbol { \delta } } ( S , \bar { A } ) = ( \nu , \mathbf { e } _ { 1 \mathrm { q } } , \mathbf { r } _ { \mathrm { q } } , \mathbf { e } _ { 2 \mathrm { q } } )$ , where $S = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { 1 \mathrm { q } } , { \bf r } _ { \mathrm { q } } , { \bf e } _ { 2 \mathrm { q } } )$ and $A = \left( \mathbf { e } _ { \mathrm { t } } , r , \nu \right)$ ).
52
+
53
+ Rewards. We only have a terminal reward of $+ 1$ if the current location is the correct answer at the end and 0 otherwise. To elaborate, if $S _ { T } = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { \mathrm { l q } } , { \bf r } _ { \mathrm { q } } , { \bf e } _ { 2 \mathrm { q } } )$ is the final state, then we receive a reward of $+ 1$ if $\mathbf { e } _ { \mathrm { t } } = \mathbf { e } _ { 2 \mathrm { q } }$ else 0., i.e. $R ( S _ { T } ) = \mathbb { I } \{ \mathbf { e } _ { \mathrm { t } } = \mathbf { e } _ { 2 \mathrm { q } } \}$ .
54
+
55
+ # 2.2 POLICY NETWORK
56
+
57
+ To solve the finite horizon deterministic partially observable Markov decision process described above, we design a randomized non-stationary history-dependent policy $\boldsymbol { \pi } = ( \mathbf { d _ { 1 } } , \mathbf { d } _ { 2 } , . . . , \mathbf { d _ { T - 1 } } )$ , where $\mathbf { d _ { t } } : H _ { t } \to \mathcal { P } ( \bar { \mathcal { A } _ { S _ { t } } } )$ and history $H _ { t } = ( H _ { t - 1 } , A _ { t - 1 } , O _ { t } )$ is just the sequence of observations and actions taken. We restrict ourselves to policies parameterized by long short-term memory network (LSTM) (Hochreiter & Schmidhuber, 1997).
58
+
59
+ An agent based on LSTM encodes the history $H _ { t }$ as a continuous vector $\mathbf { h } _ { \mathbf { t } } \in \mathbb { R } ^ { 2 d }$ . We also have embedding matrix $\mathbf { r } \in \mathbb { R } ^ { | \mathcal { R } | \times d }$ and $\mathbf { e } \in \mathbb { R } ^ { | \mathcal { E } | \times d }$ for the binary relations and entities respectively. The history embedding for $H _ { t } = ( H _ { t - 1 } , A _ { t - 1 } , O _ { t } )$ is updated according to LSTM dynamics:
60
+
61
+ $$
62
+ \mathbf { h } _ { \mathrm { t } } = \mathrm { L S T M } \left( \mathbf { h } _ { \mathrm { t - 1 } } , \left[ \mathbf { a } _ { \mathrm { t - 1 } } ; \mathbf { o } _ { \mathrm { t } } \right] \right)
63
+ $$
64
+
65
+ where $\mathbf { a _ { t - 1 } } \in \mathbb { R } ^ { d }$ and $\mathbf { o _ { t } } \in \mathbb { R } ^ { d }$ denote the vector representation for action/relation at time $t - 1$ and observation/entity at time $t$ respectively and $[ ; ]$ denote vector concatenation. To elucidate, $\mathbf { a _ { t - 1 } } = \mathbf { r } _ { A _ { t - 1 } }$ , i.e. the embedding of the relation corresponding to label of the edge the agent chose at time $t - 1$ and $\mathbf { o } _ { \mathbf { t } } = \mathbf { e } _ { \mathrm { e } _ { t } }$ if $O _ { t } = ( { \bf e } _ { \mathrm { t } } , { \bf e } _ { \mathrm { 1 q } } , { \bf r } _ { \mathrm { q } } )$ i.e. the embedding of the entity corresponding to vertex the agent is at time $t$ .
66
+
67
+ Based on the history embedding $\mathbf { h _ { t } }$ , the policy network makes the decision to choose an action from all available actions $( \boldsymbol { \mathcal { A } } _ { S _ { t } } )$ conditioned on the query relation. Recall that each possible action represents an outgoing edge with information of the edge relation label $l$ and destination vertex/entity $d$ . So embedding for each $A \in { \mathcal { A } } _ { S _ { t } }$ is $[ \mathbf { r } _ { \mathrm { I } } ; \mathbf { e _ { d } } ]$ , and stacking embeddings for all the outgoing edges we obtain the matrix $\mathbf { A _ { t } }$ . The network taking these as inputs is parameterized as a two-layer feedforward network with ReLU nonlinearity which takes in the current history representation $\mathbf { h _ { t } }$ and the embedding for the query relation $\mathbf { r _ { q } }$ and outputs a probability distribution over the possible actions from which a discrete action is sampled. In other words,
68
+
69
+ $$
70
+ \begin{array} { r l } & { \mathbf { d } _ { \mathbf { t } } = \mathrm { s o f t m a x } ( \mathbf { A } _ { \mathbf { t } } ( \mathbf { W } _ { 2 } \mathrm { R e L U } ( \mathbf { W } _ { 1 } [ \mathbf { h } _ { \mathbf { t } } ; \mathbf { o } _ { \mathbf { t } } ; \mathbf { r } _ { \mathbf { q } } ] ) ) ) , } \\ & { A _ { t } \sim \mathrm { C a t e g o r i c a l } ( \mathbf { d } _ { \mathbf { t } } ) . } \end{array}
71
+ $$
72
+
73
+ Note that the nodes in $\mathcal { G }$ do not have a fixed ordering or number of edges coming out from them. The size of matrix $\mathbf { A _ { t } }$ is $| { \mathcal { A } } _ { S _ { t } } | \times 2 d$ , so the decision probabilities $d _ { t }$ lies on simplex of size $\lvert A _ { S _ { t } } \rvert$ . Also the procedure above is invariant to order in which edges are presented as desired and falls in purview of neural networks designed to be permutation invariant (Zaheer et al., 2017). Finally, to summarize, the parameters of the LSTM, the weights $\mathbf { W _ { 1 } } , \mathbf { W _ { 2 } }$ , the corresponding biases (not shown above for brevity), and the embedding matrices form the parameters θ of the policy network.
74
+
75
+ # 2.3 TRAINING
76
+
77
+ For the policy network $\scriptstyle ( \pi _ { \mathsf { \boldsymbol { \theta } } } )$ described above, we want to find parameters θ that maximize the expected reward:
78
+
79
+ $$
80
+ J ( \mathbf { \theta } ) = \mathbb { E } _ { ( e _ { 1 } , r , e _ { 2 } ) \sim D } \mathbb { E } _ { A _ { 1 } , \ldots , A _ { T - 1 } \sim \pi _ { \Theta } } [ R ( S _ { T } ) | S _ { 1 } = ( e _ { 1 } , e _ { 1 } , r , e _ { 2 } ) ] ,
81
+ $$
82
+
83
+ where we assume there is a true underlying distribution $( \mathbf { e } _ { 1 } , \mathbf { r } , \mathbf { e } _ { 2 } ) \sim D$ . To solve this optimization problem, we employ REINFORCE (Williams, 1992) as follows:
84
+
85
+ • The first expectation is replaced with empirical average over the training dataset.
86
+ • For the second expectation, we approximate by running multiple rollouts for each training example. The number of rollouts is fixed and for all our experiments we set this number to 20. For variance reduction, a common strategy is to use an additive control variate baseline (Hammersley, 2013; Fishman, 2013; Evans & Swartz, 2000). We use a moving average of the cumulative discounted reward as the baseline. We tune the weight of this moving average as a hyperparameter. Note that in our experiments we found that using a learned baseline performed similarly, but we finally settled for cumulative discounted reward as the baseline owing to its simplicity.
87
+ • To encourage diversity in the paths sampled by the policy at training time, we add an entropy regularization term to our cost function scaled by a constant $( \beta )$ .
88
+
89
+ Table 1: Statistics of various datasets used in experiments.
90
+
91
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">#entities</td><td rowspan="2">#relations</td><td rowspan="2">#facts</td><td rowspan="2">#queries</td><td colspan="2">#degree</td></tr><tr><td>avg.</td><td>median</td></tr><tr><td>COUNTRIES</td><td>272</td><td>2</td><td>1158</td><td>24</td><td>4.35</td><td>4</td></tr><tr><td>UMLS</td><td>135</td><td>49</td><td>5,216</td><td>661</td><td>38.63</td><td>28</td></tr><tr><td>KINSHIP</td><td>104</td><td>26</td><td>10686</td><td>1074</td><td>82.15</td><td>82</td></tr><tr><td>WN18RR</td><td>40,945</td><td>11</td><td>86,835</td><td>3134</td><td>2.19</td><td>2</td></tr><tr><td>NELL-995</td><td>75,492</td><td>200</td><td>154,213</td><td>3992</td><td>4.07</td><td>1</td></tr><tr><td>FB15K-237</td><td>14,505</td><td>237</td><td>272,115</td><td>20,466</td><td>19.74</td><td>14</td></tr><tr><td>WikiMovies</td><td>43,230</td><td>9</td><td>196,453</td><td>9952</td><td>6.65</td><td>4</td></tr></table>
92
+
93
+ <table><tr><td></td><td>ComplEx</td><td>ConvE</td><td>DistMult</td><td>NTP</td><td>NTP-λ</td><td>NeuralLP</td><td>MINERVA</td></tr><tr><td>S1</td><td>99.37±0.4</td><td>100.0±0.00</td><td>97.91±0.01</td><td>90.83±15.4</td><td>100.0±0.00</td><td>100.0±0.0</td><td>100.0±0.00</td></tr><tr><td>S2</td><td>87.95±2.8</td><td>99.0±1.00</td><td>69.18±2.38</td><td>87.40±11.7</td><td>93.04±0.40</td><td>75.1 ± 0.3</td><td>92.36±2.41</td></tr><tr><td>S3</td><td>48.44±6.3</td><td>86.0±5.00</td><td>15.79±0.64</td><td>56.68±17.6</td><td>77.26±17.0</td><td>92.2 ± 0.2</td><td>95.10±1.20</td></tr></table>
94
+
95
+ Table 2: Performance on three tasks of COUNTRIES dataset with AUC-PR metric. MINERVA significantly outperforms all other methods on the hardest task (S3). Also variance across runs for MINERVA is lower compared to other methods.
96
+
97
+ # 3 EXPERIMENTS
98
+
99
+ We now present empirical studies for MINERVA in order to establish that (i) MINERVA is competitive for query answering on small (Sec. 3.1.1) as well as large KBs (Sec. 3.1.2), (ii) MINERVA is superior to a path based models that do not search the KB efficiently or train query specific models (Sec. 3.2), (iii) MINERVA can not only be used for well formed queries, but can also easily handle partially structured natural language queries (Sec 3.3), (iv) MINERVA is highly capable of reasoning over long chains, and (v) MINERVA is robust to train and has much faster inference time (Sec. 3.5).
100
+
101
+ # 3.1 KNOWLEDGE BASE QUERY ANSWERING
102
+
103
+ To gauge the reasoning capability of MINERVA, we begin with task of query answering on KB, i.e. we want to answer queries of the form $( e _ { 1 } , r , ? )$ . Note that, as mentioned in Sec. 2, this task is subtly different from fact checking in a KB. Also, as most of the previous literature works in the regime of fact checking, their ranking includes variations of both $( e _ { 1 } , r , x )$ and $( x , r , e _ { 2 } )$ . However, since we do not have access to $e _ { 2 }$ in case of question answering scenario the same ranking procedure does not hold for us – we only need to rank on $( e _ { 1 } , r , x )$ . This difference in ranking made it necessary for us to re-run all the implementations of previous work. We used the implementation or the best pre-trained models (whenever available) of Rocktaschel & Riedel (2017); Yang et al. (2017) and Dettmers et al. ¨ (2018). For MINERVA to produce a ranking of answer entities during inference, we do a beam search with a beam width of 50 and rank entities by the probability of the trajectory the model took to reach the entity and remaining entities are given a rank of $\infty$ .
104
+
105
+ Method We compare MINERVA with various state-of-the-art models using $\mathrm { H I T S } @ 1 , 3 , 1 0$ and mean reciprocal rank (MRR), which are standard metrics for KB completion tasks. In particular we compare against embedding based models - DistMult (Yang et al., 2015), ComplEx (Trouillon et al., 2016) and ConvE (Dettmers et al., 2018). For ConvE and ComplEx, we used the implementation released by Dettmers et al. $( 2 0 1 8 ) ^ { 1 }$ on the best hyperparameter settings reported by them. For DistMult, we use our highly tuned implementation (e.g. which performs better than the state-of-the-art results of Toutanova et al. (2015)). We also compare with two recent work in learning logical rules in KB namely Neural Theorem Provers (NTP) (Rocktaschel & Riedel, 2017) and NeuralLP (Yang et al., ¨ 2017). Rocktaschel & Riedel (2017) also reports a NTP model which is trained with an additional ¨ objective function of ComplEx (NTP- $\mathcal { \lambda }$ ). For these models, we used the implementation released by corresponding authors 2 3, again on the best hyperparameter settings reported by them.
106
+
107
+ <table><tr><td>Data</td><td>Metric</td><td>ComplEx</td><td>ConvE</td><td>DistMult</td><td>NTP</td><td>NTP-λ</td><td>NeuralLP</td><td>MINERVA</td></tr><tr><td rowspan="4">KINSHIP</td><td>HITS@1</td><td>0.754</td><td>0.697</td><td>0.808</td><td>0.500</td><td>0.759</td><td>0.475</td><td>0.605</td></tr><tr><td>HITs@3</td><td>0.910</td><td>0.886</td><td>0.942</td><td>0.700</td><td>0.798</td><td>0.707</td><td>0.812</td></tr><tr><td>HITs@10</td><td>0.980</td><td>0.974</td><td>0.979</td><td>0.777</td><td>0.878</td><td>0.912</td><td>0.924</td></tr><tr><td>MRR</td><td>0.838</td><td>0.797</td><td>0.878</td><td>0.612</td><td>0.793</td><td>0.619</td><td>0.720</td></tr><tr><td rowspan="4">UMLS</td><td>HITs@1</td><td>0.823</td><td>0.894</td><td>0.916</td><td>0.817</td><td>0.843</td><td>0.643</td><td>0.728</td></tr><tr><td>HITs@3</td><td>0.962</td><td>0.964</td><td>0.967</td><td>0.906</td><td>0.983</td><td>0.869</td><td>0.900</td></tr><tr><td>HITs@10</td><td>0.995</td><td>0.992</td><td>0.992</td><td>0.970</td><td>1.000</td><td>0.962</td><td>0.968</td></tr><tr><td>MRR</td><td>0.894</td><td>0.933</td><td>0.944</td><td>0.872</td><td>0.912</td><td>0.778</td><td>0.825</td></tr></table>
108
+
109
+ Table 3: Query answering results on KINSHIP and UMLS datasets.
110
+
111
+ # 3.1.1 SMALLER DATASETS
112
+
113
+ Dataset We use three standard datasets: COUNTRIES (Bouchard et al., 2015), KINSHIP, and UMLS (Kok & Domingos, 2007). The COUNTRIES dataset ontains countries, regions, and subregions as entities and is carefully designed to explicitly test the logical rule learning and reasoning capabilities of link prediction models. The queries are of the form LocatedIn(c, ?) and the answer is a region (e.g. LocatedIn(Egypt, ?) with the answer as Africa). The dataset has 3 tasks (S1-3 in table 2) each requiring reasoning steps of increasing length and difficulty (see Rocktaschel & Riedel (2017) for ¨ more details about the tasks). Following the design of the COUNTRIES dataset, for task S1 and S2, we set the maximum path length $T = 2$ and for S3, we set $T = 3$ . The Unified Medical Language System (UMLS) dataset, is from biomedicine. The entities are biomedical concepts (e.g. disease, antibiotic) and relations are like treats and diagnoses. The KINSHIP dataset contains kinship relationships among members of the Alyawarra tribe from Central Australia. For these two task we use maximum path length $T = 2$ . Also, for MINERVA we turn off entity in (1) in these experiments.
114
+
115
+ Observations For the COUNTRIES dataset, in Table 2 we report a stronger metric - the area under the precision-recall curve - as is common in the literature. We can see that MINERVA compares favorably or outperforms all the baseline models except on the task S2 of COUNTRIES, where the ensemble model NTP- $\mathscr { \lambda }$ and ConvE outperforms it, albeit with a higher variance across runs. Our gains are much more prominent in task S3, which is the hardest among all the tasks.
116
+
117
+ The Kinship and UMLS datasets are small KB datasets with around 100 entities each and as we see from Table 3, embedding based methods (ConvE, ComplEx and DistMult) perform much better than methods which aim to learn logical rules (NTP, NeuralLP and MINERVA). On Kinship, MINERVA outperforms both NeuralLP and NTP and matches the HITS $@ 1 0$ performance of NTP on UMLS. Unlike COUNTRIES, these datasets were not designed to test the logical rule learning ability of models and given the small size, embedding based models are able to get really high performance. Combination of both methods gives a slight increase in performance as can be seen from the results of NTP- $\mathcal { \Lambda }$ . However, when we initialized MINERVA with pre-trained embeddings of ComplEx, we did not find a significant increase in performance.
118
+
119
+ # 3.1.2 LARGER DATASETS
120
+
121
+ Dataset Next we evaluate MINERVA on three large KG datasets - WN18RR, FB15K-237 and NELL995. The WN18RR (Dettmers et al., 2018) and FB15K-237 (Toutanova et al., 2015) datasets are created from the original WN18 and FB15K datasets respectively by removing various sources of test leakage, making the datasets more realistic and challenging. The NELL-995 dataset released by Xiong et al. (2017) has separate graphs for each query relation, where a graph for a query relation can have triples from the test set of another query relation. For the query answering experiment, we combine all the graphs and removed all test triples (and the corresponding triples with inverse relations) from the graph. We also noticed that several triples in the test set had an entity (source or target) that never appeared in the graph. Since, there will be no trained embeddings for those entities, we removed them from the test set. This reduced the size of test set from 3992 queries to 2818 queries.4
122
+
123
+ <table><tr><td>Data</td><td>Metric</td><td>ComplEx</td><td>ConvE</td><td>DistMult</td><td>NeuralLP</td><td>Path-Baseline</td><td>MINERVA</td></tr><tr><td rowspan="4">WN18RR</td><td>HITs@1</td><td>0.382</td><td>0.403</td><td>0.410</td><td>0.376</td><td>0.017</td><td>0.413</td></tr><tr><td>HITS@3</td><td>0.433</td><td>0.452</td><td>0.441</td><td>0.468</td><td>0.025</td><td>0.456</td></tr><tr><td>HITs@10</td><td>0.480</td><td>0.519</td><td>0.475</td><td>0.657</td><td>0.046</td><td>0.513</td></tr><tr><td>MRR</td><td>0.415</td><td>0.438</td><td>0.433</td><td>0.463</td><td>0.027</td><td>0.448</td></tr><tr><td rowspan="4">FB15K-237</td><td>HITs@1</td><td>0.303</td><td>0.313</td><td>0.275</td><td>0.166</td><td>0.169</td><td>0.217</td></tr><tr><td>HITS@3</td><td>0.434</td><td>0.457</td><td>0.417</td><td>0.248</td><td>0.248</td><td>0.329</td></tr><tr><td>HITs@10</td><td>0.572</td><td>0.600</td><td>0.568</td><td>0.348</td><td>0.357</td><td>0.456</td></tr><tr><td>MRR</td><td>0.394</td><td>0.410</td><td>0.370</td><td>0.227</td><td>0.227</td><td>0.293</td></tr><tr><td rowspan="4">NELL-995</td><td>HITs@1</td><td>0.612</td><td>0.672</td><td>0.610</td><td>-</td><td>0.300</td><td>0.663</td></tr><tr><td>HITS@3</td><td>0.761</td><td>0.808</td><td>0.733</td><td>=</td><td>0.417</td><td>0.773</td></tr><tr><td>HITs@10</td><td>0.827</td><td>0.864</td><td>0.795</td><td></td><td>0.497</td><td>0.831</td></tr><tr><td>MRR</td><td>0.694</td><td>0.747</td><td>0.680</td><td>=</td><td>0.371</td><td>0.725</td></tr></table>
124
+
125
+ Table 4: Query answering results on WN18RR, FB15K-237 and NELL-995 datasets. NeuralLP does not scale to NELL-995 and hence the entries are kept blank.
126
+
127
+ Observations Table 4 reports the query answering results on the larger WN18RR, FB15K-237 and NELL-995 datasets. We could not include the results of NeuralLP on NELL-995 since it didn’t scale to that size. Similarly NTP did not scale to any of the larger datasets. Apart from these, we are the first to report a comprehensive summary of performance of all baseline methods on these datasets.
128
+
129
+ On NELL-995, MINERVA performs comparably to embedding based methods such as DistMult and ComplEx and performs comparably with ConvE on the stricter HITS $@ 1$ metric. ConvE, however outperforms us on HITS $@ 1 0$ on NELL-995. On WN18RR, logic based based methods (NeuralLP, MINERVA) generally outperform embedding based methods, with MINERVA achieving the highest score on HITS $@ 1$ metric and NeuralLP significantly outperforming on HITS $@ 1 0$ .
130
+
131
+ We observe that on FB15K-237, however, embedding based methods dominate over MINERVA and NeuralLP. Upon deeper inspection, we found that the query relation types of FB15K-237 knowledge graph differs significantly from others.
132
+
133
+ Analysis of query relations of FB15k-237: We analyzed the type of query relation types on the FB15K-237 dataset. Following Bordes et al. (2013), we categorized the query relations into (M)any to 1, 1 to M or 1 to 1 relations. An example of a M to 1 relation would be ‘/people/profession’ (What is the profession of person $\mathbf { \bar { \Sigma } } ^ { \mathbf { \Sigma } } ( \mathbf { X } ^ { \prime } ?$ ). An example of 1 to M relation would be /music/instrument/instrumentalists (‘Who plays the music instrument X?’) or ‘/people/ethnicity/people’ (‘Who are people with ethnicity X?’). From a query answering point of view, the answer to these questions is a list of entities. However, during evaluation time, the model is evaluated based on whether it is able to predict the one target entity which is in the query triple. Also, since MINERVA outputs the end points of the paths as target entities, it is sometimes possible that the particular target entity of the triple does not have a path from the source entity (however there are paths to other ‘correct’ answer entities). Table 9 (in appendix) shows few other examples of relations belonging to different classes.
134
+
135
+ Following Bordes et al. (2013), we classify a relation as 1-to-M if the ratio of cardinality of tail to head entities is greater than 1.5 and as M-to-1 if it is lesser than 0.67. In the validation set of FB15K-237, $54 \%$ of the queries are 1-to-M, whereas only $26 \%$ are M-to-1. Contrasting it with NELL-995, $2 7 \%$ are 1-to-M and $36 \%$ are M-to-1 or UMLS where only $18 \%$ are 1-to-M. Table 10 (in appendix) shows few relations from FB15K-237 dataset which have high tail-to-head ratio. The average ratio for 1-TO-M relations in FB15K-237 is 13.39 (substantially higher than 1.5). As explained before, the current evaluation scheme is not suited when it comes to 1-to-M relations and the high percentage of 1-to-M relations in FB $1 5 \mathrm { K } \cdot 2 3 7$ also explains the sub optimal performance of MINERVA.
136
+
137
+ We also check the frequency of occurrence of various unique path types. We define a path type as the sequence of relation types (ignoring the entities) in a path. Intuitively, a predictive path which generalizes across queries will occur many number of times in the graph. Figure 2 shows the plot. As we can see, the characteristics of FB15K-237 is quite different from other datasets. For example, in NELL-995, more than 1000 different path types occur more than 1000 times. WN18RR has only 11 different relation types which means there are only $1 1 ^ { 3 }$ possible path types of length 3 and even fewer number of them would be predictive. As can be seen, there are few path types which occur more than $1 0 ^ { 4 }$ times and around 50 of them occur more than 1000 times. However in FB15K-237, which has the highest number of relation types, we observe a sharp decrease in the number of path types which occur a significant number of times. Since MINERVA cannot find path types which repeat often, it finds it hard to learn path types that generalize.
138
+
139
+ ![](images/553c62e7ed024a8406667f586884f02ed4deb83ab5b92d6c3f8461d12a706365.jpg)
140
+ Figure 2: Count of number of unique path types of length 3 which occur more than $\mathbf { \epsilon } \cdot \mathbf { \gamma } _ { \mathbf { X } } \mathbf { \epsilon } )$ times in various datasets. For example, in NELL-995 there are more than $1 0 ^ { 3 }$ path types which occur more than $1 0 ^ { 3 }$ times. However, for FB15k-237, we see a sharp decrease as $\mathbf { \epsilon } _ { \mathbf { X } } \mathbf { \epsilon } _ { \mathbf { X } } ,$ becomes higher, suggesting that path types do not repeat often.
141
+
142
+ # 3.2 COMPARISON WITH PATH BASED MODELS
143
+
144
+ # 3.2.1 WITH RANDOM WALK MODELS
145
+
146
+ In this experiment, we compare to a model which gathers path based on random walks and tries to predict the answer entity. Neural multi-hop models (Neelakantan et al., 2015; Toutanova et al., 2016), operate on paths between entity pairs in a KB. However these methods need to know the target entity in order to pre-compute paths between entity pairs. (Guu et al., 2015) is an exception in this regard as they do random walks starting from a source entity $\cdot _ { e 1 } \cdot$ and then using the path, they train a classifier to predict the target answer entity. However, they only consider one path starting from a source entity. In contrast, Neelakantan et al. (2015); Toutanova et al. (2016) use information from multiple paths between the source and target entity. We design a baseline model which combines the strength of both these approaches. Starting from $\cdot _ { e _ { 1 } } ,$ , the model samples $k = 1 0 0$ ) random paths of up to a maximum length of $T = 3$ . Following Neelakantan et al. (2015), we encode each paths with an LSTM followed by a max-pooling operation to featurize the paths. This feature is concatenated with the source entity and query relation vector which is then passed through a feed forward network which scores all possible target entities. The network is trained with a multi-class cross entropy objective based on observed triples and during inference we rank target entities according to the model score.
147
+
148
+ The PATH-BASELINE column of table 4 shows the performance of this model on the three datasets. As we can see MINERVA outperforms this baseline significantly. This shows that a model which predicts based on a set of randomly sampled paths does not do as well as MINERVA because it either loses important paths during random walking or it fails to aggregate predictive features from all the $k$ paths, many of which would be irrelevant to answer the given query. The latter is akin to the problem with distant supervision (Mintz et al., 2009), where important evidence gets lost amidst a plethora of irrelevant information. However, by taking each step conditioned on the query relation, MINERVA can effectively reduce the search space and focus on paths relevant to answer the query.
149
+
150
+ # 3.2.2 WITH DEEPPATH
151
+
152
+ We also compare MINERVA with DeepPath which uses RL to pick paths between entity pairs. For a fair comparison, we only rank the answer entities against the negative examples in the dataset used in their experiments5 and report the mean average precision (MAP) scores for each query relation. DeepPath feeds the paths its agent gathers as input features to the path ranking algorithm (PRA) (Lao et al., 2011), which trains a per-relation classifier. But unlike them, we train one model which learns for all query relations so as to enable our agent to leverage from correlations and more data. If our agent is not able to reach the correct entity or one of the negative entities, the corresponding entities gets a score of negative infinity. If MINERVA fails to reach any of the entities in the set of correct and negative entities. then we fall back to a random ordering of the entities. As show in table 5, we outperform them or achieve comparable performance for all the query relations For this experiment, we set the maximum length $T = 3$ . Although training per-relation models is cumbersome and does not scale to massive KBs with thousands of relation types, we also train per-relation models of MINERVA replicating the settings of DeepPath (MINERVAa in table 5). MINERVAa outperforms DeepPath and performs similarly to MINERVA which is an encouraging result since training one model which performs well for all relation is highly desirable.
153
+
154
+ Table 5: MAP scores for different query relations on the NELL-995 dataset. Note that in this comparison, MINERVA refers to only a single learnt model for all query relations which is competitive with individual DeepPath models trained separately for each query relation. We also trained MINERVA in the setting of DeepPath, i.e. training per-relation models (MINERVAa)
155
+
156
+ <table><tr><td>Task</td><td>DeepPath</td><td>MINERVA</td><td>MINERVAa</td></tr><tr><td>athleteplaysinleague</td><td>0.960</td><td>0.970</td><td>0.940</td></tr><tr><td>worksfor</td><td>0.711</td><td>0.825</td><td>0.810</td></tr><tr><td>organizationhiredperson</td><td>0.742</td><td>0.851</td><td>0.856</td></tr><tr><td>athleteplayssport</td><td>0.957</td><td>0.985</td><td>0.980</td></tr><tr><td>teamplayssport</td><td>0.738</td><td>0.846</td><td>0.880</td></tr><tr><td>personborninlocation</td><td>0.757</td><td>0.793</td><td>0.780</td></tr><tr><td>personleadsorganization</td><td>0.795</td><td>0.851</td><td>0.877</td></tr><tr><td>athletehomestadium</td><td>0.890</td><td>0.895</td><td>0.898</td></tr><tr><td>organizationheadquarteredincity</td><td>0.790</td><td>0.946</td><td>0.940</td></tr><tr><td>athleteplaysforteam</td><td>0.750</td><td>0.824</td><td>0.800</td></tr></table>
157
+
158
+ # 3.3 PARTIALLY STRUCTURED QUERIES
159
+
160
+ Queries in KBs are structured in the form of triples. However, this is unsatisfactory since for most real applications, the queries appear in natural language. As a first step in this direction, we extend MINERVA to take in “partially structured” queries. We use the WikiMovies dataset (Miller et al., 2016) which contains questions in natural language albeit generated by templates created by human annotators. An example question is “Which is a film written by Herb
161
+
162
+ <table><tr><td>Model</td><td>Accuracy</td></tr><tr><td>Memory Network</td><td>78.5</td></tr><tr><td rowspan="3">QA system Key-Value Memory Network</td><td>93.5</td></tr><tr><td>93.9</td></tr><tr><td>94.6</td></tr><tr><td>Neural LP MINERVA</td><td>96.7</td></tr></table>
163
+
164
+ Table 6: Performance on WikiMovies
165
+
166
+ Freed?”. WikiMovies also has an accompanying KB which can be used to answer all the questions.
167
+
168
+ We link the entity occurring in the question to the KB via simple string matching. To form the vector representation of the query relation, we design a simple question encoder which computes the average of the embeddings of the question words. The word embeddings are learned from scratch and we do not use any pretrained embeddings. We compare our results with those reported in Yang et al. (2017) (table 6). For this experiment, we found that $T = 1$ sufficed, suggesting that WikiMovies is not the best testbed for multihop reasoning, but this experiment is a promising first step towards the realistic setup of using KBs to answer natural language question.
169
+
170
+ # 3.4 GRID WORLD PATH FINDING
171
+
172
+ While chains in KB need not be very long to get good empirical results (Neelakantan et al., 2015; Das et al., 2017; Yang et al., 2017), in principle MINERVA can be used to learn long reasoning chains. To evaluate the same, we test our model on a synthetic 16-by-16 grid world dataset created by Yang et al. (2017), where the task is to navigate to a particular cell (answer entity) starting from a random cell (start entity) by following a set of directions (query relation). The KB consists of atomic triples of the form ((2,1), North, (1,1)) – entity (1,1) is north of entity (2,1). The queries consists of a sequence of directions (e.g. North, SouthWest, East). The queries are classified into classes based on the path lengths. Figure 3 shows the accuracy on varying path lengths. Compared to Neural LP, MINERVA is much more robust to queries, which require longer path, showing minimal degradation in performance for even the longest path in the dataset.
173
+
174
+ ![](images/faf82edb7f06d44d51171d677bd4f2a3e34f3ddba99872d5109fc677e3f06c2e.jpg)
175
+ Figure 3: Grid world experiment: We significantly outperform NeuralLP for longer path lengths.
176
+
177
+ ![](images/8c641037b54000c547c9115d252d6c9bdf5580cbd9346d4ee179e44f36d5da7a.jpg)
178
+ Figure 4: Based on the query relation our agent assigns different probabilities to different actions. The dashed edges in the top row denote query relation. Examples in the bottom row are from the WikiMovies dataset and hence the questions are partially structured.
179
+
180
+ # 3.5 FURTHER ANALYSIS
181
+
182
+ Training time. Figure 5 plots the HITS $@ 1 0$ scores on the development set against the training time comparing MINERVA with DistMult. It can be seen that MINERVA converges to a higher score much faster than DistMult. It is also interesting to note that even during the early stages of the training, MINERVA has much higher performance than that of DistMult, as during these initial stages, MINERVA would just be doing random walks in the neighborhood of the source
183
+
184
+ ![](images/5c8daad0a603b56d7b6005e2d0a4bc85799c640df9c714ff454c59a0971848a6.jpg)
185
+ Figure 5: HITS@10 on the development set versus training time.
186
+
187
+ entity $( e _ { 1 } )$ . This implies that MINERVA’s approach of searching for an answer in the neighborhood of $e _ { 1 }$ is a much more efficient and smarter strategy than ranking all entities in the knowledge graph (as done by DistMult and other related methods).
188
+
189
+ Inference Time. At test time, embedding based methods such as ConvE, ComplEx and DistMult rank all entities in the graph. Hence, for a test-time query, the running time is always $\mathcal { O } ( | \mathcal { E } | )$ where $\mathcal { R }$ denotes the set of entities $\left( = \right.$ nodes) in the graph. MINERVA, on the other hand is efficient at inference time since it has to essentially search for answer entities in its local neighborhood. The many cost at inference time for MINERVA is to compute probabilities for all outgoing edges along the path. Thus inference time of MINERVA only depends on degree distribution of the graph. If we assume the knowledge graph to obey a power law degree distribution, like many natural graphs, then for MINERVA the average inference time can be shown to be $O \big ( \frac { \alpha } { \alpha - 1 } \big )$ , when the coefficient of the power law $\alpha > 1$ . The median inference time for MINERVA is $O ( 1 )$ for all values of $\alpha$ . Note that these quantities are independent of size of entities $| \mathcal { E } |$ . For instance, on the test dataset of WN18RR, the wall clock inference time of MINERVA is 63s whereas that of a GPU implementation of DistMult, which is the simplest among the lot, is 211s. Similarly the wall-clock inference time on the test set of NELL-995 for a GPU implementation of DistMult is 115s whereas that of MINERVA is 35s.
190
+
191
+ Query based Decision Making. At each step before making a decision, our agent conditions on the query relation. Figure 4 shows examples, where based on the query relation, the probabilities are peaked on different actions. For example, when the query relation is WorksFor, MINERVA assigns a much higher probability of taking the edge CoachesTeam than AthletePlaysInLeague. We also see similar behavior on the WikiMovies dataset where the query consists of words instead of fixed schema relation.
192
+
193
+ Model Robustness. Table 7 also reports the mean and standard deviation across three independent runs of MINERVA. We found it easy to obtain/reproduce the highest scores across several runs as can be seen from the low deviations in scores.
194
+
195
+ Table 7: Mean and Standard deviation across runs for various datasets.
196
+
197
+ Effectiveness of Remembering Path History. MINERVA encodes the history of decisions it has taken in the past using LSTMs. To test the importance of remembering the sequence of decisions, we did an ablation study in which the agent chose the next action based on only local information i.e. current entity and query and did not have access to the history $\mathrm { h } _ { \mathrm { t } }$ . For the KINSHIP dataset, we observe a $27 \%$ points decrease in HITS $@ 1$ and $13 \%$ decrease in HITS $@ 1 0$ . For grid-world, it is also not surprising that we see a big drop in performance. The final accuracy is 0.23 for path lengths 2-4 and 0.04 for lengths 8-10. For FB15K-237 the HITS $@ 1 0$ performance dropped from 0.456 to 0.408.
198
+
199
+ NO-OP and Inverse Relations. At each step, MINERVA can choose to take a NO-OP edge and remain at the same node. This gives the agent the flexibility of taking paths of variable lengths. Some questions are easier to answer than others and require fewer steps of reasoning and if the agent reaches the answer early, it can choose to remain there. Example (i) in table 8 shows such an example. Similarly inverse relation gives the agent the ability to recover from a potentially wrong decision it has taken before. Example (ii) shows such an example, where the agent took a incorrect decision at the first step but was able to revert the decision because of the presence of inverted edges.
200
+
201
+ Table 8: A few example of paths found by MINERVA on the COUNTRIES and NELL. MINERVA can learn general rules as required by the COUNTRIES dataset (example (i)). It can learn shorter paths if necessary (example (ii)) and has the ability to correct a previously taken decision (example (iii))
202
+
203
+ <table><tr><td>Dataset</td><td>HITS@1</td><td>HITS@3</td><td>HITS@10</td></tr><tr><td>NELL-995</td><td>0.66±0.029</td><td>0.77±0.0016</td><td>0.83±0.0030</td></tr><tr><td>FB15K-237</td><td>0.22±0.002</td><td>0.33 ±0.0008</td><td>0.46±0.0006</td></tr><tr><td>WN18RR</td><td>0.41±0.030</td><td>0.45±0.0180</td><td>0.51±0.0005</td></tr></table>
204
+
205
+ # 4 RELATED WORK
206
+
207
+ Learning vector representations of entities and relations using tensor factorization (Nickel et al., 2011; 2012; Bordes et al., 2013; Riedel et al., 2013; Nickel et al., 2014; Yang et al., 2015) or neural methods (Socher et al., 2013; Toutanova et al., 2015; Verga et al., 2016) has been a popular approach to reasoning with a knowledge base. However, these methods cannot capture more complex reasoning patterns such as those found by following inference paths in KBs. Multi-hop link prediction approaches (Lao et al., 2011; Neelakantan et al., 2015; Guu et al., 2015; Toutanova et al., 2016; Das et al., 2017) address the problems above, but the reasoning paths that they operate on are gathered by performing random walks independent of the type of query relation. Lao et al. (2011) further filters paths from the set of sampled paths based on the restriction that the path must end at one of the target entities in the training set and are within a maximum length. These constraints make them query dependent but they are heuristic in nature. Our approach eliminates any necessity to pre-compute paths and learns to efficiently search the graph conditioned on the input query relation.
208
+
209
+ Inductive Logic Programming (ILP) (Muggleton et al., 1992) aims to learn general purpose predicate rules from examples and background knowledge. Early work in ILP such as FOIL (Quinlan, 1990), PROGOL (Muggleton, 1995) are either rule-based or require negative examples which is often hard to find in KBs (by design, KBs store true facts). Statistical relational learning methods (Getoor & Taskar, 2007; Kok & Domingos, 2007; Schoenmackers et al., 2010) along with probabilistic logic (Richardson & Domingos, 2006; Broecheler et al., 2010; Wang et al., 2013) combine machine learning and logic but these approaches operate on symbols rather than vectors and hence do not enjoy the generalization properties of embedding based approaches.
210
+
211
+ There are few prior work which treat inference as search over the space of natural language. Nogueira & Cho (2016) propose a task (WikiNav) in which each the nodes in the graph are Wikipedia pages and the edges are hyperlinks to other wiki pages. The entity is to be represented by the text in the page and hence the agent is required to reason over natural language space to navigate through the graph. Similar to WikiNav is Wikispeedia (West et al., 2009) in which an agent needs to learn to traverse to a given target entity node (wiki page) as quickly as possible. Angeli & Manning (2014) propose natural logic inference in which they cast the inference as a search from a query to any valid premise. At each step, the actions are one of the seven lexical relations introduced by MacCartney & Manning (2007).
212
+
213
+ Neural Theorem Provers (NTP) (Rocktaschel & Riedel, 2017) and Neural LP (Yang et al., 2017) are ¨ methods to learn logical rules that can be trained end-to-end with gradient based learning. NTPs are constructed by Prolog’s backward chaining inference method. It operates on vectors rather than symbols, thereby providing a success score for each proof path. However, since a score can be computed between any two vectors, the computation graph becomes quite large because of such soft-matching during substitution step of backward chaining. For tractability, it resorts to heuristics such as only keeping the top-K scoring proof paths trading-off guarantees for exact gradients. Also the efficacy of NTPs has yet to be shown on large KBs. Neural LP introduces a differential rule learning system using operators defined in TensorLog (Cohen, 2016). It has a LSTM based controller with a differentiable memory component (Graves et al., 2014; Sukhbaatar et al., 2015) and the rule scores are calculated via attention. Even though, differentiable memory allows end to end training, it necessitates accessing the entire memory, which can be computationally expensive. RL approaches capable of hard selection of memory (Zaremba & Sutskever, 2015) are computationally attractive. MINERVA uses a similar hard selection of relation edges to walk on the graph. More importantly, MINERVA outperforms both these methods on their respective benchmark datasets.
214
+
215
+ DeepPath (Xiong et al., 2017) uses RL based approaches to find paths in KBs. However, the state of their MDP requires the target entity to be known in advance and hence their path finding strategy is dependent on knowing the answer entity. MINERVA does not need any knowledge of the target entity and instead learns to find the answer entity among all entities. DeepPath, additionally feeds its gathered paths to Path Ranking Algorithm (Lao et al., 2011), whereas MINERVA is a complete system trained to do query answering. DeepPath also uses fixed pretrained embeddings for its entity and relations. Lastly, on comparing MINERVA with DeepPath in their experimental setting on the NELL dataset, we match their performance or outperform them. MINERVA is also similar to methods for learning to search for structured prediction (Collins & Roark, 2004; Daume III & Marcu, 2005; ´ Daume III et al., 2009; Ross et al., 2011; Chang et al., 2015). These methods are based on imitating a ´ reference policy (oracle) which make near-optimal decision at every step. In our problem setting, it is unclear what a good reference policy would be. For example, a shortest path oracle between two entities would be unideal, since the answer providing path should depend on the query relation.
216
+
217
+ # 5 CONCLUSION
218
+
219
+ We explored a new way of automated reasoning on large knowledge bases in which we use the knowledge graphs representation of the knowledge base and train an agent to walk to the answer node conditioned on the input query. We achieve state-of-the-art results on multiple benchmark knowledge base completion tasks and we also show that our model is robust and can learn long chains-ofreasoning. Moreover it needs no pretraining or initial supervision. Future research directions include applying more sophisticated RL techniques and working directly on textual queries and documents.
220
+
221
+ # ACKNOWLEDGEMENTS
222
+
223
+ We are grateful to Patrick Verga for letting us use his implementation of DistMult. This work was supported in part by the Center for Data Science and the Center for Intelligent Information Retrieval, in part by DARPA under agreement number FA8750-13-2-0020, in part by Defense Advanced Research Agency (DARPA) contract number HR0011-15-2-0036, in part by the National Science Foundation (NSF) grant numbers DMR-1534431 and IIS-1514053 and in part by the Chan Zuckerberg Initiative under the project Scientific Knowledge Base Construction. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation thereon. Any opinions, findings and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect those of the sponsor.
224
+
225
+ # REFERENCES
226
+
227
+ Gabor Angeli and Christopher D Manning. Naturalli: Natural logic inference for common sense reasoning. In EMNLP, 2014.
228
+
229
+ Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. Freebase: A collaboratively created graph database for structuring human knowledge. In ICDM, 2008.
230
+
231
+ Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In NIPS, 2013.
232
+
233
+ Guillaume Bouchard, Sameer Singh, and Theo Trouillon. On approximate reasoning capabilities of low-rank vector spaces. AAAI Spring Symposium, 2015.
234
+
235
+ Matthias Broecheler, Lilyana Mihalkova, and Lise Getoor. Probabilistic similarity logic. In UAI, 2010.
236
+
237
+ Andrew Carlson, Justin Betteridge, Bryan Kisiel, Burr Settles, Estevam R. Hruschka, Jr., and Tom M. Mitchell. Toward an Architecture for Never-ending Language Learning. In AAAI, 2010.
238
+
239
+ Kai-Wei Chang, Akshay Krishnamurthy, Alekh Agarwal, Hal Daume, and John Langford. Learning to search better than your teacher. In ICML, 2015.
240
+
241
+ William Cohen. Tensorlog: A differentiable deductive database. arXiv:1605.06523, 2016.
242
+
243
+ Michael Collins and Brian Roark. Incremental parsing with the perceptron algorithm. In ACL, 2004.
244
+
245
+ Rajarshi Das, Arvind Neelakantan, David Belanger, and Andrew McCallum. Chains of reasoning over entities, relations, and text using recurrent neural networks. In EACL, 2017.
246
+
247
+ Hal Daume III and Daniel Marcu. Learning as search optimization: Approximate large margin ´ methods for structured prediction. In ICML, 2005.
248
+
249
+ Hal Daume III, John Langford, and Daniel Marcu. Search-based structured prediction. ´ Machine learning, 2009.
250
+
251
+ Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. Convolutional 2d knowledge graph embeddings. In AAAI, 2018.
252
+
253
+ Michael Evans and Timothy Swartz. Approximating integrals via Monte Carlo and deterministic methods. OUP Oxford, 2000.
254
+
255
+ George Fishman. Monte Carlo: concepts, algorithms, and applications. Springer Science & Business Media, 2013.
256
+
257
+ Lise Getoor and Ben Taskar. Introduction to statistical relational learning. MIT press, 2007.
258
+
259
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv:1410.5401, 2014.
260
+
261
+ Kelvin Guu, John Miller, and Percy Liang. Traversing knowledge graphs in vector space. In EMNLP, 2015.
262
+
263
+ John Hammersley. Monte carlo methods. Springer Science & Business Media, 2013.
264
+
265
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
266
+
267
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014.
268
+
269
+ Stanley Kok and Pedro Domingos. Statistical predicate invention. In ICML, 2007.
270
+
271
+ Ni Lao, Tom Mitchell, and William Cohen. Random walk inference and learning in a large scale knowledge base. In EMNLP, 2011.
272
+
273
+ Bill MacCartney and Christopher D Manning. Natural logic for textual inference. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing. Association for Computational Linguistics, 2007.
274
+
275
+ John McCarthy. Programs with common sense. RLE and MIT Computation Center, 1960.
276
+
277
+ Alexander Miller, Adam Fisch, Jesse Dodge, Amir-Hossein Karimi, Antoine Bordes, and Jason Weston. Key-value memory networks for directly reading documents. EMNLP, 2016.
278
+
279
+ Bonan Min, Ralph Grishman, Li Wan, Chang Wang, and David Gondek. Distant supervision for relation extraction with an incomplete knowledge base. In HLT-NAACL, 2013.
280
+
281
+ Mike Mintz, Steven Bills, Rion Snow, and Dan Jurafsky. Distant supervision for relation extraction without labeled data. In ACL, 2009.
282
+
283
+ Stephen Muggleton. Inverse entailment and progol. New generation computing, 1995.
284
+
285
+ Stephen Muggleton, Ramon Otero, and Alireza Tamaddoni-Nezhad. Inductive logic programming. Springer, 1992.
286
+
287
+ Arvind Neelakantan, Benjamin Roth, and Andrew McCallum. Compositional vector space models for knowledge base completion. In ACL, 2015.
288
+
289
+ Maximilian Nickel, Volker Tresp, and Hans-Peter Kriegel. A three-way model for collective learning on multi-relational data. In ICML, 2011.
290
+
291
+ Maximilian Nickel, Volker Tresp, and Hans-Peter Kriegel. Factorizing yago: scalable machine learning for linked data. In WWW, 2012.
292
+
293
+ Maximilian Nickel, Xueyan Jiang, and Volker Tresp. Reducing the rank in relational factorization models by including observable patterns. In NIPS, 2014.
294
+
295
+ Nils J Nilsson. Logic and artificial intelligence. Artificial intelligence, 1991.
296
+
297
+ Rodrigo Nogueira and Kyunghyun Cho. End-to-end goal-driven web navigation. In NIPS, 2016.
298
+
299
+ J Ross Quinlan. Learning logical definitions from relations. Machine learning, 1990.
300
+
301
+ Matthew Richardson and Pedro Domingos. Markov logic networks. Machine learning, 2006.
302
+
303
+ Sebastian Riedel, Limin Yao, Andrew McCallum, and Benjamin M. Marlin. Relation extraction with matrix factorization and universal schemas. In NAACL, 2013.
304
+
305
+ Tim Rocktaschel and Sebastian Riedel. End-to-end differentiable proving. In ¨ NIPS, 2017.
306
+
307
+ Stephane Ross, Geoffrey J Gordon, and Drew Bagnell. A reduction of imitation learning and ´ structured prediction to no-regret online learning. In AISTATS, 2011.
308
+
309
+ Stefan Schoenmackers, Oren Etzioni, Daniel Weld, and Jesse Davis. Learning first-order horn clauses from web text. In EMNLP, 2010.
310
+
311
+ Yelong Shen, Po-Sen Huang, Jianfeng Gao, and Weizhu Chen. Reasonet: Learning to stop reading in machine comprehension. In KDD, 2017.
312
+
313
+ Richard Socher, Danqi Chen, Christopher D Manning, and Andrew Ng. Reasoning with neural tensor networks for knowledge base completion. In NIPS, 2013.
314
+
315
+ Fabian Suchanek, Gjergji Kasneci, and Gerhard Weikum. Yago: A core of semantic knowledge. In WWW, 2007.
316
+
317
+ Sainbayar Sukhbaatar, Jason Weston, and Rob Fergus. End-to-end memory networks. In NIPS, 2015.
318
+
319
+ Kristina Toutanova, Danqi Chen, Patrick Pantel, Hoifung Poon, Pallavi Choudhury, and Michael Gamon. Representing text for joint embedding of text and knowledge bases. In EMNLP, 2015.
320
+
321
+ Kristina Toutanova, Victoria Lin, Wen-tau Yih, Hoifung Poon, and Chris Quirk. Compositional learning of embeddings for relation paths in knowledge base and text. In ACL, 2016.
322
+
323
+ Theo Trouillon, Johannes Welbl, Sebastian Riedel, ´ Eric Gaussier, and Guillaume Bouchard. Complex ´ embeddings for simple link prediction. In ICML, 2016.
324
+
325
+ Patrick Verga, David Belanger, Emma Strubell, Benjamin Roth, and Andrew McCallum. Multilingual relation extraction using compositional universal schema. In NAACL, 2016.
326
+ William Yang Wang, Kathryn Mazaitis, and William W Cohen. Programming with personalized pagerank: a locally groundable first-order probabilistic logic. In CIKM, 2013.
327
+ Robert West, Joelle Pineau, and Doina Precup. Wikispeedia: An online game for inferring semantic distances between concepts. In IJCAI, 2009.
328
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 1992.
329
+ Wenhan Xiong, Thien Hoang, and William Yang Wang. Deeppath: A reinforcement learning method for knowledge graph reasoning. In EMNLP, 2017.
330
+ Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. Embedding entities and relations for learning and inference in knowledge bases. In ICLR, 2015.
331
+ Fan Yang, Zhilin Yang, and William W Cohen. Differentiable learning of logical rules for knowledge base reasoning. In NIPS, 2017.
332
+ Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan Salakhutdinov, and Alexander Smola. Deep sets. In NIPS, 2017.
333
+ Wojciech Zaremba and Ilya Sutskever. Reinforcement learning neural turing machines. arXiv:1505.00521, 2015.
334
+
335
+ Table 9: Few example facts belonging to m to 1, 1 to m relations in FB15K-237
336
+
337
+ <table><tr><td rowspan=1 colspan=1>Relation</td><td rowspan=1 colspan=1>tail/head</td></tr><tr><td rowspan=1 colspan=1>/people/marriage_union_type/unions_of-this_type./people/marriage/location_of_ceremony</td><td rowspan=1 colspan=1>129.75</td></tr><tr><td rowspan=1 colspan=1>/organization/role/leaders./organization/leadership/organization</td><td rowspan=1 colspan=1>65.15</td></tr><tr><td rowspan=1 colspan=1>/location/country/second_level_divisions</td><td rowspan=1 colspan=1>49.18</td></tr><tr><td rowspan=1 colspan=1>/user/ktrueman/default_domain/international_organization/member_states</td><td rowspan=1 colspan=1>36.5</td></tr><tr><td rowspan=1 colspan=1>/base/marchmadness/ncaa_basketball_tournament/seeds./base/marchmadness/ncaa_tournament_seed/team</td><td rowspan=1 colspan=1>33.6</td></tr></table>
338
+
339
+ Table 10: Few example 1-to-M relations from FB15K-237 with high cardinality ratio of tail to head.
340
+
341
+ # 6 APPENDIX
342
+
343
+ # 6.1 HYPERPARAMETERS
344
+
345
+ Experimental Details We choose the relation and embedding dimension size as 200. The action embedding is formed by concatenating the entity and relation embedding. We use a 3 layer LSTM with hidden size of 400. The hidden layer size of MLP (weights $\mathbf { W _ { 1 } }$ and $\mathbf { W } _ { 2 }$ ) is set to 400. We use Adam (Kingma & Ba, 2014) with the default parameters in REINFORCE for the update.
346
+
347
+ In our experiments, we tune our model over two hyper parameters, viz., $\beta$ which is the entropy regularization constant and $\lambda$ which is the moving average constant for the REINFORCE baseline. The table 11 lists the best hyper parameters for all the datasets.
348
+
349
+ Table 11: Best hyper parameters
350
+
351
+ <table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>入</td><td rowspan=1 colspan=1>Path Length</td></tr><tr><td rowspan=1 colspan=1>UMLS</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>KINSHIP</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>Countries S1</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>Countries S2</td><td rowspan=1 colspan=1>0.02</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>Countries S3</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>WN18RR</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>NELL-995</td><td rowspan=1 colspan=1>0.06</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>FB15K-237</td><td rowspan=1 colspan=1>0.02</td><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>3</td></tr><tr><td rowspan=1 colspan=1>WIKIMOVIES</td><td rowspan=1 colspan=1>0.15</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>1</td></tr></table>
352
+
353
+ # 6.2 ADDENDUM TO NELL RESULTS
354
+
355
+ The NELL dataset released by Xiong et al. (2017) includes two additional tasks for which the scores were not reported in the paper and so we were unable to compare them against DeepPath. Nevertheless, we ran MINERVA on these tasks and report our results in table 12 for completeness.
356
+
357
+ Table 12: NELL results for the remaining tasks
358
+
359
+ <table><tr><td>Task</td><td>Single Model</td><td>DeepPath setup</td></tr><tr><td>agentbelongstoorganization</td><td>0.86</td><td>0.87</td></tr><tr><td>teamplaysinleague</td><td>0.97</td><td>0.95</td></tr></table>
parse/train/Syg-YfWCW/Syg-YfWCW_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Syg-YfWCW/Syg-YfWCW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Syg-YfWCW/Syg-YfWCW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyxrxR4KPS/SyxrxR4KPS.md ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEP NEUROETHOLOGY OF A VIRTUAL RODENT
2
+
3
+ Josh Merel?1, Diego Aldarondo $^ { \star 2 , 3 }$ , Jesse Marshal $^ { \star 3 , 4 }$ , Yuval Tassa1, Greg Wayne1, Bence Olveczky ¨ 3,4
4
+
5
+ 1DeepMind, London, UK.
6
+ 2Program in Neuroscience, 3Center for Brain Science, 4Department of Organismic and Evolutionary Biology, Harvard University, Cambridge, MA 02138, USA.
7
+ jsmerel@google.com, diegoaldarondo@g.harvard.edu,
8
+ jesse d marshall@fas.harvard.edu
9
+
10
+ # ABSTRACT
11
+
12
+ Parallel developments in neuroscience and deep learning have led to mutually productive exchanges, pushing our understanding of real and artificial neural networks in sensory and cognitive systems. However, this interaction between fields is less developed in the study of motor control. In this work, we develop a virtual rodent as a platform for the grounded study of motor activity in artificial models of embodied control. We then use this platform to study motor activity across contexts by training a model to solve four complex tasks. Using methods familiar to neuroscientists, we describe the behavioral representations and algorithms employed by different layers of the network using a neuroethological approach to characterize motor activity relative to the rodent’s behavior and goals. We find that the model uses two classes of representations which respectively encode the task-specific behavioral strategies and task-invariant behavioral kinematics. These representations are reflected in the sequential activity and population dynamics of neural subpopulations. Overall, the virtual rodent facilitates grounded collaborations between deep reinforcement learning and motor neuroscience.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Animals have nervous systems that allow them to coordinate their movement and perform a diverse set of complex behaviors. Mammals, in particular, are generalists in that they use the same general neural network to solve a wide variety of tasks. This flexibility in adapting behaviors towards many different goals far surpasses that of robots or artificial motor control systems. Hence, studies of the neural underpinnings of flexible behavior in mammals could yield important insights into the classes of algorithms capable of complex control across contexts and inspire algorithms for flexible control in artificial systems (Merel et al., 2019b).
17
+
18
+ Recent efforts at the interface of neuroscience and machine learning have sparked renewed interest in constructive approaches in which artificial models that solve tasks similar to those solved by animals serve as normative models of biological intelligence. Researchers have attempted to leverage these models to gain insights into the functional transformations implemented by neurobiological circuits, prominently in vision (Khaligh-Razavi & Kriegeskorte, 2014; Yamins et al., 2014; Kar et al., 2019), but also increasingly in other areas, including audition (Kell et al., 2018) and navigation (Banino et al., 2018; Cueva & Wei, 2018). Efforts to construct models of biological locomotion systems have informed our understanding of the mechanisms and evolutionary history of bodies and behavior (Grillner et al., 2007; Ijspeert et al., 2007; Ramdya et al., 2017; Nyakatura et al., 2019). Neural control approaches have also been applied to the study of reaching movements, though often in constrained behavioral paradigms (Lillicrap & Scott, 2013), where supervised training is possible (Sussillo et al., 2015; Michaels et al., 2019).
19
+
20
+ While these approaches model parts of the interactions between animals and their environments (Chiel & Beer, 1997), none attempt to capture the full complexity of embodied control, involving how an animal uses its senses, body and behaviors to solve challenges in a physical environment.
21
+
22
+ The development of models of embodied control is valuable to the field of motor neuroscience, which typically focuses on restricted behaviors in controlled experimental settings. It is also valuable for AI research, where flexible models of embodied control could be applicable to robotics.
23
+
24
+ Here, we introduce a virtual model of a rodent to facilitate grounded investigation of embodied motor systems. The virtual rodent affords a new opportunity to directly compare principles of artificial control to biological data from real-world rodents, which are more experimentally accessible than humans. We draw inspiration from emerging deep reinforcement learning algorithms which now allow artificial agents to perform complex and adaptive movement in physical environments with sensory information that is increasingly similar to that available to animals (Peng et al., 2016; 2017; Heess et al., 2017; Merel et al., 2019a;c). Similarly, our virtual rodent exists in a physical world, equipped with a set of actuators that must be coordinated for it to behave effectively. It also possesses a sensory system that allows it to use visual input from an egocentric camera located on its head and proprioceptive input to sense the configuration of its body in space.
25
+
26
+ There are several questions one could answer using the virtual rodent platform. Here we focus on the problem of embodied control across multiple tasks. While some efforts have been made to analyze neural activity in reduced systems trained to solve multiple tasks (Song et al., 2017; Yang et al., 2019), those studies lacked the important element of motor control in a physical environment. Our rodent platform presents the opportunity to study how representations of movements as well as sequences of movements change as a function of goals and task contexts.
27
+
28
+ To address these questions, we trained our virtual rodent to solve four complex tasks within a physical environment, all requiring the coordinated control of its body. We then ask “Can a neuroscientist understand a virtual rodent?” – a more grounded take on the originally satirical “Can a biologist fix a radio?” (Lazebnik, 2002) or the more recent “Could a neuroscientist understand a microprocessor?” (Jonas & Kording, 2017). We take a more sanguine view of the tremendous advances that have been made in computational neuroscience in the past decade, and posit that the supposed ‘failure’ of these approaches in synthetic systems is partly a misdirection. Analysis approaches in neuroscience were developed with the explicit purpose of understanding sensation and action in real brains, and often implicitly rooted in the types of architectures and processing that are thought relevant in biological control systems. With this philosophy, we use analysis approaches common in neuroscience to explore the types of representations and dynamics that the virtual rodent’s neural network employs to coordinate multiple complex movements in the service of solving motor and cognitive tasks.
29
+
30
+ # 2 APPROACH
31
+
32
+ # 2.1 VIRTUAL RODENT BODY
33
+
34
+ ![](images/8639b3c7d5c3c3b4825ff38bb186f6c5cf1b61335864c27ebc9506840809e1f3.jpg)
35
+ Figure 1: (A) Anatomical skeleton of a rodent (as reference; not part of physical simulation). (B) A body designed around the skeleton to match the anatomy and model collisions with the environment. (C) Purely cosmetic skin to cover the body. (D) Semi-transparent visualization of (A)-(C) overlain.
36
+
37
+ We implemented a virtual rodent body (Figure 1) in MuJoCo (Todorov et al., 2012), based on measurements of laboratory rats (see Appendix A.1). The rodent body has 38 controllable degrees of freedom. The tail, spine, and neck consist of multiple segments with joints, but are controlled by tendons that co-activate multiple joints (spatial tendons in MuJoCo). The rodent will be released as part of dm control/locomotion.
38
+
39
+ The virtual rodent has access to proprioceptive information as well as “raw” egocentric RGB-camera $6 4 \times 6 4$ pixels) input from a head-mounted camera. The proprioceptive inputs include internal joint angles and angular velocities, the positions and velocities of the tendons that provide actuation, egocentric vectors from the root (pelvis) of the body to the positions of the head and paws, a vestibular-like upright orientation vector, touch or contact sensors in the paws, as well as egocentric acceleration, velocity, and 3D angular velocity of the root.
40
+
41
+ # 2.2 VIRTUAL RODENT TASKS
42
+
43
+ ![](images/023d3ca2fd213021246063387e1a45996b8d869e35ac665ccb43f84c5fc03c9d.jpg)
44
+ Figure 2: Visualizations of four tasks the virtual rodent was trained to solve: (A) jumping over gaps (“gaps run”), (B) foraging in a maze (“maze forage”), (C) escaping from a hilly region (“bowl escape”), and (D) touching a ball twice with a forepaw with a precise timing interval between touches (“two-tap”).
45
+
46
+ We implemented four tasks adapted from previous work in deep reinforcement learning and motor neuroscience (Merel et al., 2019a; Tassa et al., 2018; Kawai et al., 2015) to encourage diverse motor behaviors in the rodent. The tasks are as follows: (1) Run along a corridor, over “gaps”, with a reward for traveling along the corridor at a target velocity (Figure 2A). (2) Collect all the blue orbs in a maze, with a sparse reward for each orb collected (Figure 2B). (3) Escape a bowl-shaped region by traversing hilly terrain, with a reward proportional to distance from the center of the bowl (Figure 2C). (4) Approach orbs in an open field, activate them by touching them with a forepaw, and touch them a second time after a precise interval of $8 0 0 \mathrm { m s }$ with a tolerance of $\pm 1 0 0 \mathrm { m s }$ ; there is a time-out period if the touch is not within the tolerated window and rewards are provided sparsely on the first and second touch (Figure 2D). We did not provide the agent with a cue or context indicating its task. Rather, the agent had to infer the task from the visual input and behave appropriately.
47
+
48
+ # 2.3 TRAINING A MULTI-TASK POLICY
49
+
50
+ ![](images/11a13f9194d634d2f4aab607177c6bdcb2c975788a5ea199ecef4324e4e17d02.jpg)
51
+ Figure 3: The virtual rodent agent architecture. Egocentric visual image inputs are encoded into features via a small residual network (He et al., 2016) and proprioceptive state observations are encoded via a small multi-layer perceptron. The features are passed into a recurrent LSTM module (Hochreiter & Schmidhuber, 1997). The core module is trained by backpropogation during training of the value function. The outputs of the core are also passed as features to the policy module (with the dashed arrow indicating no backpropogation along this path during training) along with shortcut paths from the proprioceptive observations as well as encoded features. The policy module consists of one or more stacked LSTMs (with or without skip connections) which then produce the actions via a stochastic policy.
52
+
53
+ Emboldened by recent results in which end-to-end RL produces a single terrain-adaptive policy (Peng et al., 2016; 2017; Heess et al., 2017), we trained a single architecture on the multiple motorcontrol-reliant tasks (see Figure 3). To train a single policy to perform all four tasks, we used an IMPALA-style setup for actor-critic DeepRL (Espeholt et al., 2018); parallel workers collected rollouts, logged them to a replay, from which a central learner sampled data to perform updates. The value-function critic was trained using off-policy correction via V-trace. To update the actor, we used a variant of MPO (Abdolmaleki et al., 2018) where the E-step is performed using advantages determined from the empirical returns and the value-function, instead of the Q-function (Song et al., 2019). Empirically, we found that the “escape” task was more challenging to learn during interleaved training relative to the other tasks. Consequently, we present results arising from training a singletask expert on the escape task and training the multi-task policies using kickstarting for that task (Schmitt et al., 2018), with a weak coefficient (.001 or .005). Kickstarting on this task made the seeds more reliably solve all four tasks, facilitating comparison of the multi-task policies with different architectures (i.e. the policy having 1, 2, or 3 layers, with or without skip connections across those layers). The procedure yields a single neural network that uses visual inputs to determine how to behave and coordinates its body to move in ways required to solve the tasks. See video examples of a single policy solving episodes of each task: gaps, forage, escape, and two-tap.
54
+
55
+ ![](images/91b42c963300f5a2b7162b067eb9426bb53d1881f5c829d0623f855e6e285fe6.jpg)
56
+ Figure 4: Ethology of the virtual rodent. (A) Example jumping sequence in gaps run task with a representative subset of recorded behavioral features. Dashed lines denote the time of the corresponding frames (top). (B) tSNE embedding of 60 behavioral features describing the pose and kinematics of the virtual rodent allows identification of rodent behaviors. Points are colored by hand-labeling of behavioral clusters identified by watershed clustering. (C) The first two principal components of different behavioral features reveals that behaviors are more shared across tasks at short, $5 { - } 2 5 \ \mathrm { H z }$ timescales (fast kinematics), but no longer $0 . 3 – 5 \mathrm { H z }$ timescales (slow kinematics).
57
+
58
+ We analyzed the virtual rodent’s neural network activity in conjunction with its behavior to characterize how it solves multiple tasks (Figure 4A). We used analyses and perturbation techniques adapted from neuroscience, where a range of techniques have been developed to highlight the properties of real neural networks. Biological neural networks have been hypothesized to control, select, and modulate movement through a variety of debated mechanisms, ranging from explicit neural representations of muscle forces and behavioral primitives, to more abstract production of neural dynamics that could underly movement (Graziano, 2006; Kalaska, 2009; Churchland et al., 2012). A challenge with nearly all of these models however is that they have largely been inspired by findings from individual behavioral tasks, making it unclear how to generalize them to a broader range of naturalistic behaviors. To provide insight into mechanisms underlying movement in the virtual rodent, and to potentially give insight by proxy into the mechanisms underlying behavior in real rats, we thus systematically tested how the different network layers encoded and generated different aspects of movement.
59
+
60
+ For all analyses we logged the virtual rodent’s kinematics, joint angles, computed forces, sensory inputs, and the cell unit activity of the LSTMs in core and policy layers during 25 trials per task from each network architecture.
61
+
62
+ # 3.1 VIRTUAL RODENTS EXHIBIT BEHAVIORAL FLEXIBILITY.
63
+
64
+ We began our analysis by quantitatively describing the behavioral repertoire of the virtual rodent. A challenge in understanding the neural mechanisms underlying behavior is that it can be described at many timescales. On short timescales, one could describe rodent locomotion using a set of actuators that produce joint-specific patterns of forces and kinematics. However on longer timescales, these force patterns are organized into coordinated, re-used movements, such as running, jumping, and turning. These movements can be further combined to form behavioral strategies or goal-directed behaviors. Relating neural representations to motor behaviors therefore requires analysis methods that span multiple timescales of behavioral description. To systematically examine the classes of behaviors these networks learn to generate and how they are differentially deployed across tasks, we developed sets of behavioral features that describe the kinematics of the animal on fast (5-25 $\mathrm { H z }$ ), intermediate $\mathrm { 1 - 2 5 \ : H z ) }$ or slow $( 0 . 3 { - } 5 \mathrm { H z } )$ timescales (Appendix A.2, A.3 ). As validation that these features reflected meaningful differences across behaviors, embedding these features using tSNE (Maaten & Hinton, 2008) produced a behavioral map in which virtual rodent behaviors, were segregated to different regions of the map (Figure 4B)(see video). This behavioral repertoire of the virtual rodent consisted of many behaviors observed in rodents, such as rearing, jumping, running, climbing and spinning. While the exact kinematics of the virtual rodent’s behaviors did not exactly match those observed in real rats, they did reproduce unexpected features. For instance the stride frequency of the virtual rodent during galloping matches that observed in rats (Appendix A.3).
65
+
66
+ We next investigated how these behaviors were used by the virtual rodent across tasks. On short timescales, low-level motor features like joint speed and actuator forces occupied similar regions in principal component space (Figure 4C). In contrast, behavioral kinematics, especially on long, $0 . 3 – 5 \ \mathrm { H z }$ timescales, were more differentiated across tasks. Similar results held when examining overlap in other dimensions using multidimensional scaling. Overall this suggests that the network learned to adapt similar movements in a selective manner for different tasks, suggesting that the agent exhibited a form of behavioral flexibility.
67
+
68
+ ![](images/67bcf88435a27a7365450b59b3b78035122bee8d5d50547b9b995054a5efcee3.jpg)
69
+ 3.2 NETWORKS PRIMARILY REFLECT BEHAVIORS, NOT FORCES
70
+ Figure 5: Representational structure of the rodent’s neural network. (A) Example similarity matrices of neural networks and behavioral descriptors. We grouped behavioral descriptors into 50 clusters that and we computed the average neural population vector during each cluster (AppendixA.4). Similarity was assessed by computing the dot product of either the neural population vector or the behavioral feature vector within each cluster. (B) Centered Kernel Alignment (CKA) index of neural and behavioral feature similarity matrices for 3 and 1 policy layer architectures. (C) CKA index of feature similarity matrices across all pairs of network layers. (D) Average CKA index between core and policy layers and behavioral features, compared across architectures. Points show values from individual network seeds. Policy values are averaged across layers.
71
+
72
+ We next examined the neural activity patterns underlying the virtual rodent’s behavior to test if networks produced behaviors through explicit representations of forces, kinematics or behaviors. As expected, core and policy units operate on distinct timescales (See Appendix A.3, Figure 9). Units in the core typically fluctuated over timescales of 1-10 seconds, likely representing variables associated with context and reward. In contrast, units in policy layers were more active over subsecond timescales, potentially encoding motor and behavioral features.
73
+
74
+ To quantify which aspects of behavior were encoded in the core and policy layers, and how these patterns varied across layers, we used representational similarity analysis (RSA) (Kriegeskorte et al., 2008; Kriegeskorte & Diedrichsen, 2019). RSA provides a global measure of how well different features are encoded in layers of a neural network by analyzing the geometries of network activity upon exposure to several stimuli, such as objects. To apply RSA, first a representational similarity (or equivalently, dissimilarity) matrix is computed that quantifies the similarity of neural population responses to a set of stimuli. To test if different neural populations show similar stimulus encodings, these similarity matricies can then be directly compared across different network layers. Multiple metrics, such as the matrix correlation or dot product can be used to compare these neural representational similarity matricies. Here we used the linear centered kernel alignment (CKA) index, which shows invariance to orthonormal rotations of population activity (Kornblith et al., 2019).
75
+
76
+ RSA can also be used to directly test how well a particular stimulus feature is encoded in a population. If each stimuli can be quantitively described by one or more feature vectors, a similarity matrix can also be computed across the set of stimuli themselves. The strength of encoding of a particular set of features can by measured by comparing the correlation of the stimulus feature similarity matrix and the neuronal similarity matrix. The correlation strength directly reflects the ability of a linear decoder trained on the neuronal population vector to distinguish different stimuli (Kriegeskorte & Diedrichsen, 2019). Unlike previous applications of RSA in the analysis of discrete stimuli such as objects, (Khaligh-Razavi & Kriegeskorte, 2014; Yamins et al., 2014) behavior evolves continuously. To adapt RSA to behavioral analysis, we partitioned time by discretizing each behavioral feature into 50 clusters (Appendix A.4).
77
+
78
+ As expected, RSA revealed that core and policy layers encoded somewhat distinct behavioral features. Policy layers contained greater information about fast timescale kinematics in a manner that was largely conserved across layers, while core layers showed more moderate encoding of kinematics that was stronger for slow behavioral features (Figure 5B,C). This difference in encoding was largely consistent across all architectures tested (Figure 5D).
79
+
80
+ The feature encoding of policy networks was somewhat consistent with the emergence of a hierarchy of behavioral abstraction. In networks trained with three policy layers, representations were distributed in timescales across layers, with the last layer (policy 2) showing stronger encoding of fast behavioral features, and the first layer (policy 0) instead showing stronger encoding of slow behavioral features. However, policy layer activity, even close to the motor periphery, did not show strong explicit encoding of behavioral kinematics or forces.
81
+
82
+ # 3.3 BEHAVIORAL REPRESENTATIONS ARE SHARED ACROSS TASKS
83
+
84
+ We then investigated the degree to which the rodent’s neural networks used the same neural representations to produce behaviors, such as running or spinning, that were shared across tasks. Embedding population activity into two-dimensions using multidimensional scaling revealed that core neuron representations were highly distinct across all tasks, while policy layers contained more overlap (Figure 6A), suggesting that some behavioral representations were re-used. Comparison of representational similarity matricies for behaviors that were shared across tasks revealed that policy layers tended to possess a relatively similar encoding of behavioral features, especially fast behavioral features, over tasks (Figure 6C; Appendix A.4). This was validated by inspection of neural activity during individual behaviors shared across tasks (Appendix A.5, Figure 10). Core layer representations across almost all behavioral categories were more variable across tasks, consistent with encoding behavioral sequences or task variables.
85
+
86
+ Interestingly, when comparing this cross-task encoding similarity across architectures, we found that one layer networks showed a marked increase in the similarity of behavioral encoding across tasks (Figure 6D). This suggests that in networks with lower computational capacity, animals must rely on a smaller, shared behavioral representation across tasks.
87
+
88
+ ![](images/7cfb7930dde41aa8ab9af0c64233ad336dd435af1695a82c86c9ca1d187677b6.jpg)
89
+ Figure 6: Policy representations are shared across tasks. (A) Two-dimensional multidimensional scaling embeddings of core and policy activity shows that while policy representations overlap across some tasks, core representations are largely distinct. (B) CKA index of the policy 2 and core network representations of behavioral features during behaviors shared across different tasks (Appendix A.4). Policy 2, but not core networks show similar encoding patterns across the across the maze forage and two-tap tasks, as well as the gaps run and maze forage tasks, consistent with the shared behaviors used across these tasks. (C) The similarity of behavioral feature encoding (CKA index) across different architectures demonstrates that networks with fewer layers show greater similarity across tasks. Points show values from individual seeds.
90
+
91
+ ![](images/19e9873163a055927997db4616b4e2828e139ce2c7387fb4a81445bd3f1d088d.jpg)
92
+ Figure 7: Neurons in core and policy networks show sequential activity during stereotyped behavior. (A) Example video stills showing the virtual rodent engaged in the two-tap task (B) Average absolute $\mathbf { Z }$ -scored activity traces of all 128 neurons in each layer during performance of the two-tap sequence. Traces are sorted by the time of peak average firing rate. Dashed lines indicate the times of first and second taps. Sequential neural activity is present during the two-tap sequence.
93
+
94
+ While RSA described which behavioral features were represented in core and policy activity, we were also interested in describing how neural activity changes over time to produce different behaviors. We began by analyzing neural activity during the production of stereotyped behaviors. Activity patterns in the two-tap task showed peak activity in core and policy units that was sequentially organized (Figure 7), uniformly tiling time between both taps of the two-tap sequence. This sequential activation was observed across tasks and behaviors in the policy network, including during running (see video) where, consistent with policy networks encoding short-timescale kinematic features in a task-invariant manner, neural activity sequences were largely conserved across tasks (See Appendix A.5, Figure 10). These sequences were reliably repeated across instances of the respective behaviors, and in the case of the two-tap sequence, showed reduced neural variability relative to surrounding timepoints (See Appendix A.6, Figure 11).
95
+
96
+ ![](images/3c7fff60bb112e65a8254add79376b65378c141f6c3b1c79f39d6dd1ec12d779.jpg)
97
+ Figure 8: Latent network dynamics within tasks reflect rodent behavior on different timescales. (A) Vector field representation of the first two principal components of neural activity in the core and final policy layers during the two-tap task. PC spaces show signatures of rotational dynamics. (B) Vector field representation of first two jPC planes for the core and final policy layers during the twotap task. Apparent rotations within the different planes are associated with behaviors and behavioral features of different timescales, labeled above. Columns denote layer (as in (A)), while rows denote jPC plane. (C) Characteristic frequency of rotations within each jPC plane. Groups of three points respectively indicate the first, second, and third jPC planes for a given layer. Rotations in the core are slower than those in the policy. (D) Variance explained by each jPC plane.
98
+
99
+ The finding of sequential activity hints at a putative mechanism for the rodent’s behavioral production. We next hoped to systematically quantify the types of sequential and dynamical activity present in core and policy networks without presupposing the behaviors of interest. To describe population dynamics in relation to behavior, we first applied principal components analysis (PCA) to the activity during the performance of single tasks, and visualized the gradient of the population vector as a vector field. Figure 8A shows such a vector field representation of the first two principal components of the core and final policy layer during the two-tap task. We generated vector fields by discretizing the PC space into a two-dimensional grid and calculating the average neural activity gradient with respect to time for each bin.
100
+
101
+ The vector fields showed strong signatures of rotational dynamics across all layers, likely a signature of previously described sequential activity. To extract rotational patterns, we used jPCA, a dimensionality reduction method that extracts latent rotational dynamics in neural activity (Churchland et al., 2012). The resulting jPCs form an orthonormal basis that spans the same space as the first six traditional PCs, while maximally emphasizing rotational dynamics. Figure 8B shows the vector fields of the first two jPC planes for the core and final policy layers along with their characteristic frequency. Consistent with our previous findings, jPC planes in the core have lower characteristic frequencies than those in policy layers across tasks (Figure 8C). The jPC planes also individually explained a large percentage of total neural variability (Figure 8D).
102
+
103
+ These rotational dynamics in the policy and core jPC planes were respectively associated with the production of behaviors and the reward structure of the task. For example, in the two-tap task, rotations in the fastest jPC plane in the core were concurrent with the approach to reward, while rotations in the second fastest jPC were concurrent with long timescale transitions between running to the orb and performing the two-tap sequence. Similarly, the fastest jPC in policy layers was correlated with the phase of running, while the second fastest was correlated with the phase of the two-tap sequence (video). This trend of core and policy neural dynamics respectively reflecting behavioral and task-related features was also present in other tasks. For example, in the maze forage task, the first two jPC planes in the core respectively correlated with reaching the target orb and discovering the location of new orbs, while those in the policy were correlated with low-level locomotor features such as running phase (video). Along with RSA, these findings support a model in which the core layer transforms sensory information into a contextual signal in a task-specific manner. This signal then modulates activity in the policy toward different trajectories that generate appropriate behaviors in a more task-independent fashion. For a more complete set of behaviors with neural dynamics visualizations overlaid, see Appendix A.7.
104
+
105
+ # 3.5 NEURAL PERTURBATIONS CORROBORATE DISTINCT ROLES ACROSS LAYERS
106
+
107
+ To causally demonstrate the differing roles of core and policy units in respectively encoding taskrelevant features and movement, we performed silencing and activation of different neuronal subsets in the two-tap task. We identified two stereotyped behaviors (rears and spinning jumps) that were reliably used in two different seeds of the agent to reach the orb in the task. We ranked neurons according to the degree of modulation of their z-scored activity during the performance of these behaviors. We then inactivated subsets of neurons by clamping activity to the mean values between the first and second taps and observed the effects of inactivation on trial success and behavior.
108
+
109
+ In both seeds analyzed, inactivation of policy units had a stronger effect on motor behavior than the inactivation of core units. For instance, in the two-tap task, ablation of 64 neurons in the final policy layer disrupts the performance of the spinning jump (Appendix A.8 Figure 12B video). In contrast, ablation of behavior-modulated core units did not prevent the production of the behavior, but mildly affected the way in which the behavior is directed toward objects in the environment. For example, ablation of a subset of core units during the performance of a spinning jump had a limited effect, but sometimes resulted in jumps that missed the target orbs (video; See Appendix A.8, Figure 12C).
110
+
111
+ We also performed a complementary perturbation aimed to elicit behaviors by overwriting the cell state of neurons in each layer with the average time-varying trajectory of neural activity measured during natural performance of a target behavior. The efficacy of stimulation was found to depend on the gross body posture and behavioral state of an animal, but was nevertheless successful in some cases. For example, during the two-tap sequence, we were able to elicit spinning movements common to searching behaviors in the forage task (video; See Appendix A.8, Figure 12D, E). The efficacy of this activation was more reliable in layers closer to the motor output (Figure 12D). In fact, activation of core units rarely elicited spins, but rather elicited sporadic dashes reminiscent of the searching strategy of many models during the forage task (video).
112
+
113
+ # 4 DISCUSSION
114
+
115
+ For many computational neuroscientists and artificial intelligence researchers, an aim is to reverseengineer the nervous system at an appropriate level of abstraction. In the motor system, such an effort requires that we build embodied models of animals equipped with artificial nervous systems capable of controlling their synthetic bodies across a range of behavior. Here we introduced a virtual rodent capable of performing a variety of complex locomotor behaviors to solve multiple tasks using a single policy. We then used this virtual nervous system to study principles of the neural control of movement across contexts and described several commonalities between the neural activity of artificial control and previous descriptions of biological control.
116
+
117
+ A key advantage of this approach relative to experimental approaches in neuroscience is that we can fully observe sensory inputs, neural activity, and behavior, facilitating more comprehensive testing of theories related to how behavior can be generated. Furthermore, we have complete knowledge of the connectivity, sources of variance, and training objectives of each component of the model, providing a rare ground truth to test the validity of our neural analyses. With these advantages in mind, we evaluated our analyses based on their capacity to both describe the algorithms and representations employed by the virtual rodent and recapitulate the known functional objectives underlying its creation without prior knowledge.
118
+
119
+ To this end, our description of core and policy as respectively representing value and motor production is consistent with the model’s actor-critic training objectives. But beyond validation, our analyses provide several insights into how these objectives are reached. RSA revealed that the cell activity of core and policy layers had greater similarity with behavioral and postural features than with short-timescale actuators. This suggests that the representation of behavior is useful in the moment-to-moment production of motor actions in artificial control, a model that has been previously proposed in biological action selection and motor control (Mink, 1996; Graziano, 2006). These behavioral representations were more consistent across tasks in the policy than in the core, suggesting that task context and value activity in the core engaged task-specific behavioral strategies through the reuse of shared motor activity in the policy.
120
+
121
+ Our analysis of neural dynamics suggests that reused motor activity patterns are often organized as sequences. Specifically, the activity of policy units uniformly tiles time in the production of several stereotyped behaviors like running, jumping, spinning, and the two-tap sequence. This finding is consistent with reports linking sequential neural activity to the production of stereotyped motor and task-oriented behavior in rodents (Berke et al., 2009; Rueda-Orozco & Robbe, 2015; Dhawale et al., 2019), including during task delay periods (Akhlaghpour et al., 2016), as well as in singing birds (Albert & Margoliash, 1996; Hahnloser et al., 2002). Similarly, by relating rotational dynamics to the virtual rodent’s behavior, we found that different behaviors were seemingly associated with distinct rotations in neural activity space that evolved at different timescales. These findings are consistent with a hierarchical control scheme in which policy layer dynamics that generate reused behaviors are activated and modulated by sensorimotor signals from the core.
122
+
123
+ This work represents an early step toward the constructive modeling of embodied control for the purpose of understanding the neural mechanisms behind the generation of behavior. Incrementally and judiciously increasing the realism of the model’s embodiment, behavioral repertoire, and neural architecture is a natural path for future research. Our virtual rodent possesses far fewer actuators and touch sensors than a real rodent, uses a vastly different sense of vision, and lacks integration with olfactory, auditory, and whisker-based sensation (see Zhuang et al., 2017). While the virtual rodent is capable of locomotor behaviors, an increased diversity of tasks involving decision making, memory-based navigation, and working memory could give insight into “cognitive” behaviors of which rodents are capable. Furthermore, biologically-inspired design of neural architectures and training procedures should facilitate comparisons to real neural recordings and manipulations. We expect that this comparison will help isolate residual elements of animal behavior generation that are poorly captured by current models of motor control, and encourage the development of artificial neural architectures that can produce increasingly realistic behavior.
124
+
125
+ # AUTHOR CONTRIBUTIONS
126
+
127
+ Josh and Yuval built the rodent MuJoCo model, with measurements collected by Diego and Jesse. Josh trained the virtual rodent model. Jesse performed behavioral and neural representation analyses. Diego performed neural dynamics analyses. Josh, Jesse, and Diego drafted the manuscript. All authors contributed to the conception of the project.
128
+
129
+ # ACKNOWLEDGMENTS
130
+
131
+ The rodent skeleton reference model was purchased from leo3Dmodels on TurboSquid. Thanks to Max Cant for the rodent skin, and Marcus Wainwright for the skybox and ground textures. D.A. was supported by NSF GRFP DGE1745303. J.D.M was supported by a fellowship from the Helen Hay Whitney foundation sponsored by Vertex and a K99/R00 award from the NINDS.
132
+
133
+ # REFERENCES
134
+
135
+ Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Heess, and Martin Riedmiller. Maximum a posteriori policy optimisation. In International Conference on Learning Representations, 2018.
136
+
137
+ Hessameddin Akhlaghpour, Joost Wiskerke, Jung Yoon Choi, Joshua P Taliaferro, Jennifer Au, and Ilana B Witten. Dissociated sequential activity and stimulus encoding in the dorsomedial striatum during spatial working memory. Elife, 5:e19507, 2016.
138
+
139
+ C Yu Albert and Daniel Margoliash. Temporal hierarchical control of singing in birds. Science, 273 (5283):1871–1875, 1996.
140
+
141
+ Andrea Banino, Caswell Barry, Benigno Uria, Charles Blundell, Timothy Lillicrap, Piotr Mirowski, Alexander Pritzel, Martin J Chadwick, Thomas Degris, Joseph Modayil, et al. Vector-based navigation using grid-like representations in artificial agents. Nature, 557(7705):429, 2018.
142
+
143
+ Joshua D Berke, Jason T Breck, and Howard Eichenbaum. Striatal versus hippocampal representations during win-stay maze performance. Journal of neurophysiology, 101(3):1575–1587, 2009.
144
+
145
+ Gordon J Berman, Daniel M Choi, William Bialek, and Joshua W Shaevitz. Mapping the stereotyped behaviour of freely moving fruit flies. Journal of The Royal Society Interface, 11(99):20140672, 2014.
146
+
147
+ Hillel J Chiel and Randall D Beer. The brain has a body: adaptive behavior emerges from interactions of nervous system, body and environment. Trends in neurosciences, 20(12):553–557, 1997.
148
+
149
+ Mark M Churchland, M Yu Byron, John P Cunningham, Leo P Sugrue, Marlene R Cohen, Greg S Corrado, William T Newsome, Andrew M Clark, Paymon Hosseini, Benjamin B Scott, et al. Stimulus onset quenches neural variability: a widespread cortical phenomenon. Nature neuroscience, 13(3):369, 2010.
150
+
151
+ Mark M Churchland, John P Cunningham, Matthew T Kaufman, Justin D Foster, Paul Nuyujukian, Stephen I Ryu, and Krishna V Shenoy. Neural population dynamics during reaching. Nature, 487 (7405):51, 2012.
152
+
153
+ Christopher J Cueva and Xue-Xin Wei. Emergence of grid-like representations by training recurrent neural networks to perform spatial localization. arXiv preprint arXiv:1803.07770, 2018.
154
+
155
+ Ashesh K Dhawale, Steffen BE Wolff, Raymond Ko, and Bence P Olveczky. The basal ganglia can ¨ control learned motor sequences independently of motor cortex. bioRxiv, pp. 827261, 2019.
156
+
157
+ Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. IMPALA: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, pp. 1406–1415, 2018.
158
+
159
+ Michael Graziano. The organization of behavioral repertoire in motor cortex. Annu. Rev. Neurosci., 29:105–134, 2006.
160
+
161
+ Sten Grillner, Alexander Kozlov, Paolo Dario, Cesare Stefanini, Arianna Menciassi, Anders Lansner, and Jeanette Hellgren Kotaleski. Modeling a vertebrate motor system: pattern generation, steering and control of body orientation. Progress in brain research, 165:221–234, 2007.
162
+
163
+ Richard HR Hahnloser, Alexay A Kozhevnikov, and Michale S Fee. An ultra-sparse code underliesthe generation of neural sequences in a songbird. Nature, 419(6902):65, 2002.
164
+
165
+ 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.
166
+
167
+ Nicolas Heess, TB Dhruva, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, Ali Eslami, et al. Emergence of locomotion behaviours in rich environments. arXiv preprint arXiv:1707.02286, 2017.
168
+
169
+ Norman C Heglund and C Richard Taylor. Speed, stride frequency and energy cost per stride: how do they change with body size and gait? Journal of Experimental Biology, 138(1):301–318, 1988.
170
+
171
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
172
+
173
+ Auke Jan Ijspeert, Alessandro Crespi, Dimitri Ryczko, and Jean-Marie Cabelguen. From swimming to walking with a salamander robot driven by a spinal cord model. Science, 315(5817):1416– 1420, 2007.
174
+
175
+ Eric Jonas and Konrad Paul Kording. Could a neuroscientist understand a microprocessor? PLoS computational biology, 13(1):e1005268, 2017.
176
+
177
+ John F Kalaska. From intention to action: motor cortex and the control of reaching movements. In Progress in Motor Control, pp. 139–178. Springer, 2009.
178
+
179
+ Kohitij Kar, Jonas Kubilius, Kailyn Schmidt, Elias B Issa, and James J DiCarlo. Evidence that recurrent circuits are critical to the ventral streams execution of core object recognition behavior. Nature neuroscience, 22(6):974, 2019.
180
+
181
+ Risa Kawai, Timothy Markman, Rajesh Poddar, Raymond Ko, Antoniu L Fantana, Ashesh K Dhawale, Adam R Kampff, and Bence P Olveczky. Motor cortex is required for learning but ¨ not for executing a motor skill. Neuron, 86(3):800–812, 2015.
182
+
183
+ Alexander JE Kell, Daniel LK Yamins, Erica N Shook, Sam V Norman-Haignere, and Josh H McDermott. A task-optimized neural network replicates human auditory behavior, predicts brain responses, and reveals a cortical processing hierarchy. Neuron, 98(3):630–644, 2018.
184
+
185
+ Seyed-Mahdi Khaligh-Razavi and Nikolaus Kriegeskorte. Deep supervised, but not unsupervised, models may explain it cortical representation. PLoS computational biology, 10(11):e1003915, 2014.
186
+
187
+ Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey E. Hinton. Similarity of neural network representations revisited. CoRR, abs/1905.00414, 2019.
188
+
189
+ Nikolaus Kriegeskorte and Jorn Diedrichsen. Peeling the onion of brain representations. ¨ Annual Review of Neuroscience, 42(1):407–432, 2019.
190
+
191
+ Nikolaus Kriegeskorte, Marieke Mur, and Peter A Bandettini. Representational similarity analysisconnecting the branches of systems neuroscience. Frontiers in systems neuroscience, 2:4, 2008.
192
+
193
+ Yuri Lazebnik. Can a biologist fix a radio? Or, what I learned while studying apoptosis. Cancer cell, 2(3):179–182, 2002.
194
+
195
+ Timothy P Lillicrap and Stephen H Scott. Preference distributions of primary motor cortex neurons reflect control solutions optimized for limb biomechanics. Neuron, 77(1):168–179, 2013.
196
+
197
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of machine learning research, 9(Nov):2579–2605, 2008.
198
+
199
+ Josh Merel, Arun Ahuja, Vu Pham, Saran Tunyasuvunakool, Siqi Liu, Dhruva Tirumala, Nicolas Heess, and Greg Wayne. Hierarchical visuomotor control of humanoids. In International Conference on Learning Representations, 2019a.
200
+
201
+ Josh Merel, Matthew Botvinick, and Greg Wayne. Hierarchical motor control in mammals and machines. Nature Communications, 10(1):1–12, 2019b.
202
+
203
+ Josh Merel, Leonard Hasenclever, Alexandre Galashov, Arun Ahuja, Vu Pham, Greg Wayne, Yee Whye Teh, and Nicolas Heess. Neural probabilistic motor primitives for humanoid control. In International Conference on Learning Representations, 2019c.
204
+
205
+ Jonathan A Michaels, Stefan Schaffelhofer, Andres Agudelo-Toro, and Hansjorg Scherberger. A ¨ neural network model of flexible grasp movement generation. bioRxiv, pp. 742189, 2019.
206
+
207
+ Jonathan W Mink. The basal ganglia: focused selection and inhibition of competing motor programs. Progress in neurobiology, 50(4):381–425, 1996.
208
+
209
+ John A Nyakatura, Kamilo Melo, Tomislav Horvat, Kostas Karakasiliotis, Vivian R Allen, Amir Andikfar, Emanuel Andrada, Patrick Arnold, Jonas Laustroer, John R Hutchinson, et al. Reverse-¨ engineering the locomotion of a stem amniote. Nature, 565(7739):351, 2019.
210
+
211
+ Xue Bin Peng, Glen Berseth, and Michiel Van de Panne. Terrain-adaptive locomotion skills using deep reinforcement learning. ACM Transactions on Graphics (TOG), 35(4):81, 2016.
212
+
213
+ Xue Bin Peng, Glen Berseth, KangKang Yin, and Michiel Van De Panne. DeepLoco: Dynamic locomotion skills using hierarchical deep reinforcement learning. ACM Transactions on Graphics (TOG), 36(4):41, 2017.
214
+
215
+ Pavan Ramdya, Robin Thandiackal, Raphael Cherney, Thibault Asselborn, Richard Benton, Auke Jan Ijspeert, and Dario Floreano. Climbing favours the tripod gait over alternative faster insect gaits. Nature communications, 8:14494, 2017.
216
+
217
+ Alfonso Renart and Christian K Machens. Variability in neural activity and behavior. Current opinion in neurobiology, 25:211–220, 2014.
218
+
219
+ Pavel E Rueda-Orozco and David Robbe. The striatum multiplexes contextual and kinematic information to constrain motor habits execution. Nature neuroscience, 18(3):453, 2015.
220
+
221
+ Simon Schmitt, Jonathan J Hudson, Augustin Zidek, Simon Osindero, Carl Doersch, Wojciech M Czarnecki, Joel Z Leibo, Heinrich Kuttler, Andrew Zisserman, Karen Simonyan, et al. Kickstarting deep reinforcement learning. arXiv preprint arXiv:1803.03835, 2018.
222
+
223
+ H Francis Song, Guangyu R Yang, and Xiao-Jing Wang. Reward-based training of recurrent neural networks for cognitive and value-based tasks. Elife, 6:e21492, 2017.
224
+
225
+ H Francis Song, Abbas Abdolmaleki, Jost Tobias Springenberg, Aidan Clark, Hubert Soyer, Jack W Rae, Seb Noury, Arun Ahuja, Siqi Liu, Dhruva Tirumala, et al. V-MPO: On-Policy Maximum a Posteriori Policy Optimization for Discrete and Continuous Control. arXiv preprint arXiv:1909.12238, 2019.
226
+
227
+ Greg J Stephens, Bethany Johnson-Kerner, William Bialek, and William S Ryu. Dimensionality and dynamics in the behavior of c. elegans. PLoS computational biology, 4(4):e1000028, 2008.
228
+
229
+ David Sussillo, Mark M Churchland, Matthew T Kaufman, and Krishna V Shenoy. A neural network that finds a naturalistic solution for the production of muscle activity. Nature neuroscience, 18(7): 1025, 2015.
230
+
231
+ Yuval Tassa, Yotam Doron, Alistair Muldal, Tom Erez, Yazhe Li, Diego de Las Casas, David Budden, Abbas Abdolmaleki, Josh Merel, Andrew Lefrancq, Timothy Lillicrap, and Martin Riedmiller. DeepMind control suite. arXiv preprint arXiv:1801.00690, 2018.
232
+
233
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 5026–5033. IEEE, 2012.
234
+
235
+ Daniel LK Yamins, Ha Hong, Charles F Cadieu, Ethan A Solomon, Darren Seibert, and James J DiCarlo. Performance-optimized hierarchical models predict neural responses in higher visual cortex. Proceedings of the National Academy of Sciences, 111(23):8619–8624, 2014.
236
+
237
+ Guangyu Robert Yang, Madhura R Joglekar, H Francis Song, William T Newsome, and Xiao-Jing Wang. Task representations in neural networks trained to perform many cognitive tasks. Nature neuroscience, 22(2):297, 2019.
238
+
239
+ Chengxu Zhuang, Jonas Kubilius, Mitra JZ Hartmann, and Daniel L Yamins. Toward goal-driven neural network models for the rodent whisker-trigeminal system. In Advances in Neural Information Processing Systems, pp. 2555–2565, 2017.
240
+
241
+ # A APPENDIX
242
+
243
+ # A.1 RAT MEASUREMENTS
244
+
245
+ To construct the virtual rodent model, we obtained the mass and lengths of the largest body segments that influence the physical properties of the virtual rodent. First, we dissected cadavers of two female Long-Evans rats, and measured the mass of relevant limb segments and organs. Next, we measured the lengths of body segments over the skin of animals anesthetized with $2 \%$ v/v isoflurane anesthesia in oxygen. We confirmed that these skin based measurements approximated bone lengths by measuring bone lengths in a third cadaver. The care and experimental manipulation of all animals were reviewed and approved by the appropriate Institutional Animal Care and Use Committee.
246
+
247
+ Table 1: Before weighing, limb segments were divided at their respective joints. Mass of all segments includes all bones, skin, muscle, fascia and adipose layers. L and R refer to the left and right sides of the animal. Precision of measurements listed without decimal places is $\pm 0 . 5 \mathrm { g }$
248
+
249
+ <table><tr><td colspan="3">Animal (#)</td><td rowspan="2"></td></tr><tr><td></td><td>63</td><td>64</td></tr><tr><td>Body part</td><td></td><td>Mass (g)</td><td>Average mass (g)</td></tr><tr><td>Hindlimb L</td><td>21</td><td>26</td><td>23.5</td></tr><tr><td>Hindlimb R</td><td>21</td><td>26</td><td>23.5</td></tr><tr><td>Tail</td><td>8</td><td>10</td><td>9</td></tr><tr><td>Forelimb R</td><td>11</td><td>14</td><td>12.5</td></tr><tr><td>Forelimb L</td><td>12</td><td>13</td><td>12.5</td></tr><tr><td>Full torso</td><td>176</td><td>187</td><td>181.5</td></tr><tr><td>Head</td><td>26</td><td>26</td><td>26</td></tr><tr><td>Upper torso</td><td>78</td><td>71</td><td>74.5</td></tr><tr><td>Lower torso</td><td>98</td><td>114</td><td>106</td></tr><tr><td>Torso without organs</td><td>54</td><td>58</td><td>56</td></tr><tr><td>Intestines and stomach</td><td>22</td><td>32</td><td>27</td></tr><tr><td>Liver</td><td>26</td><td>17</td><td>21.5</td></tr><tr><td>Pelvis and kidneys</td><td>74</td><td>80</td><td>77</td></tr><tr><td>Jaw</td><td>2.43</td><td>4.70</td><td>3.57</td></tr><tr><td>Skull</td><td>23</td><td>21</td><td>22</td></tr><tr><td>Tail (base to mid)</td><td>5.92</td><td>7.20</td><td>6.56</td></tr><tr><td>Tail (mid to tip)</td><td>1.78</td><td>2.30</td><td>2.04</td></tr><tr><td>Scapula L</td><td>3.19</td><td>4.70</td><td>3.94</td></tr><tr><td>Humerus L</td><td>6.25</td><td>4.70</td><td>5.48</td></tr><tr><td>Radius/ulna L</td><td>2.61</td><td>2.8</td><td>2.70</td></tr><tr><td>Forepaw L</td><td>0.53</td><td>0.5</td><td>0.52</td></tr><tr><td>Scapula R</td><td>2.23</td><td>3.9</td><td>3.07</td></tr><tr><td>Humerus R</td><td>6.08</td><td>6.7</td><td>6.39</td></tr><tr><td>Radius/ulna R</td><td>2.17</td><td>3.3</td><td>2.74</td></tr><tr><td>Forepaw R</td><td>0.53</td><td>0.5</td><td>0.52</td></tr><tr><td>Hindpaw L</td><td>1.66</td><td>1.7</td><td>1.68</td></tr><tr><td>TibiaL</td><td>9</td><td>9</td><td>9</td></tr><tr><td>Femur L</td><td>13</td><td>16</td><td>14.5</td></tr><tr><td>Hindpaw R</td><td>1.81</td><td>1.6</td><td>1.71</td></tr><tr><td>Tibia R</td><td>5</td><td>6</td><td>5.5</td></tr><tr><td>Femur R</td><td>13</td><td>18</td><td>15.5</td></tr><tr><td>Total</td><td>281</td><td>301</td><td>291</td></tr></table>
250
+
251
+ Table 2: Length measurements of limb segments used to construct the virtual rodent model from 7 female Long-Evans rats. Measurements were performed using calipers either over the skin or over dissected bones $( ^ { * } )$ . Thoracic and sacral refer to vertebral segments. L and R refer to the left and right sides of the animal’s body.
252
+
253
+ <table><tr><td colspan="9">Animal (#)</td></tr><tr><td></td><td>48</td><td>62</td><td>55</td><td>56</td><td>64</td><td>63</td><td>62*</td><td>Average± std</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Age (days)</td><td>382 325</td><td>82 273</td><td>330 389</td><td>330 348</td><td>83 283</td><td>83 269</td><td>83 273</td><td>309 ± 47</td></tr><tr><td>Mass (g)</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Body part</td><td colspan="8">Length (mm)</td></tr><tr><td>Ankle to claw L</td><td>40.2</td><td>39.5</td><td>39.7</td><td>37.8</td><td>39.9</td><td>41.5</td><td>39.8</td><td>39.8 ± 1.1</td></tr><tr><td>Ankle to toe L</td><td>38.4</td><td>38.12</td><td>37.7</td><td>35.6</td><td>36.6</td><td>39.3</td><td>38</td><td>37.7 ± 1.2</td></tr><tr><td>Ankle to pad L</td><td>23.4</td><td>22.2</td><td>23</td><td>22.12</td><td>22.5</td><td>23.3</td><td>6.4</td><td>20.4 ± 6.2</td></tr><tr><td>Ankle to claw R</td><td></td><td>38.2</td><td>40.4</td><td>38.3</td><td>39.3</td><td>39.6</td><td>38.3</td><td>39.0 ± 0.9</td></tr><tr><td>Ankle to toe R</td><td></td><td>37</td><td>38.7</td><td>36.3</td><td>37.7</td><td>38.6</td><td>36.2</td><td>37.4 ± 1.1</td></tr><tr><td>Ankle to pad R</td><td></td><td>22.4</td><td>23.3</td><td>21.9</td><td>21.8</td><td>23.1</td><td>24.1</td><td>22.8 ± 0.9</td></tr><tr><td>Tibia L</td><td>50</td><td>36.3</td><td>38.5</td><td>49.2</td><td>35.8</td><td></td><td></td><td></td></tr><tr><td>Femur L</td><td>44.5</td><td>31.6</td><td>32.1</td><td>37.9</td><td>33.4</td><td>38.7</td><td>34.1</td><td>40.4 ± 6.5</td></tr><tr><td>Tibia R</td><td></td><td>36.7</td><td>39.1</td><td>37.9</td><td></td><td>35.35</td><td>32.4</td><td>35.3 ± 4.6</td></tr><tr><td>Femur R</td><td></td><td>32.9</td><td>32.1</td><td>38.7</td><td>35.1</td><td>38.4</td><td>36.18</td><td>37.2 ± 1.5</td></tr><tr><td>Pelvis</td><td>25.8</td><td></td><td>31.7</td><td>30.2</td><td>31.9</td><td>32.1</td><td>32.6</td><td>33.4 ± 2.6</td></tr><tr><td>Wrist to claw L</td><td>15</td><td>32 18.8</td><td>17.6</td><td>18.6</td><td>26.7 16</td><td>27.2 19.02</td><td>19.2</td><td>28.9 ± 2.7</td></tr><tr><td>Wrist to finger L</td><td></td><td>16</td><td>15.8</td><td>17.4</td><td>15.5</td><td>17.07</td><td>17.6</td><td>17.7 ± 1.6 16.6 ± 0.9</td></tr><tr><td>Wrist to pad L</td><td></td><td>6</td><td>6.4</td><td>8.34</td><td>4.9</td><td>6.1</td><td>6.4</td><td>6.4 ± 1.1</td></tr><tr><td>Wrist to olecranon L</td><td>29.1</td><td>34</td><td>32.5</td><td>31.7</td><td>33.9</td><td>32.1</td><td>29.9</td><td>31.9 ± 1.9</td></tr><tr><td>Humerus L</td><td>31.9</td><td>29.52</td><td>31</td><td>28.2</td><td>27</td><td>31.2</td><td>25.4</td><td>29.2 ± 2.4</td></tr><tr><td>Scapula L</td><td>22.7</td><td>24</td><td>26.4</td><td>29.3</td><td>25.9</td><td>29.1</td><td>26.2</td><td>26.2 ± 2.4</td></tr><tr><td>Wrist to claw R</td><td></td><td>16.8</td><td>17</td><td>17.8</td><td>15.9</td><td>16.3</td><td>18.1</td><td>17.0 ± 0.8</td></tr><tr><td>Wrist to finger R</td><td></td><td>14.1</td><td>13</td><td>15.6</td><td>15.6</td><td>15.3</td><td>16.9</td><td>15.1 ± 1.4</td></tr><tr><td>Wrist to pad R</td><td></td><td>5.6</td><td>5.8</td><td>6.55</td><td>5.2</td><td>5</td><td>5.8</td><td>5.7 ± 0.5</td></tr><tr><td>Wrist to olecranon R</td><td></td><td>30.6</td><td>33.5</td><td>31.2</td><td>30.4</td><td>31.8</td><td>29.9</td><td>31.2 ± 1.3</td></tr><tr><td>Humerus R</td><td></td><td>28.2</td><td>33.5</td><td>28.8</td><td>25</td><td>28.2</td><td>25.2</td><td>28.1 ± 3.1</td></tr><tr><td>Scapula R</td><td></td><td>23.8</td><td>29.5</td><td>25.9</td><td></td><td></td><td></td><td></td></tr><tr><td>Headcap width</td><td>39</td><td></td><td></td><td></td><td>26.2</td><td>28.8</td><td>24.4</td><td>26.4± 2.3 39</td></tr><tr><td>Headcap length</td><td>30</td><td></td><td></td><td></td><td></td><td></td><td></td><td>30</td></tr><tr><td>Skull width</td><td>38.8</td><td>23.35</td><td>23</td><td>21.8</td><td>22.8</td><td>23.9</td><td>22.2</td><td>25.1 ± 6.1</td></tr><tr><td>Skull length</td><td>57</td><td>51.1</td><td>61</td><td>56.48</td><td>53.16</td><td>58.13</td><td>48</td><td>55.0 ± 4.5</td></tr><tr><td>Skull height</td><td></td><td></td><td></td><td></td><td>21.59</td><td>21.5</td><td>21</td><td>21.4 ± 0.3</td></tr><tr><td>Head to thoracic</td><td></td><td>48.6</td><td>71.4</td><td>68.68</td><td>65</td><td>60.4</td><td>71.2</td><td>64.2 ± 8.7</td></tr><tr><td>Thoracic to sacral</td><td></td><td></td><td>73.6</td><td>62.9</td><td>65.04</td><td>64.7</td><td>68.8</td><td>68.0 ± 4.6</td></tr><tr><td>Head to sacral</td><td>145</td><td>73.1</td><td>145.5</td><td>127.05</td><td>127.2</td><td>123.7</td><td>140.9</td><td>133.6 ± 9.7</td></tr><tr><td>Head width</td><td>53.4</td><td>126</td><td></td><td></td><td></td><td></td><td></td><td>53.4</td></tr><tr><td>Ear</td><td>18</td><td>17.55</td><td>19.3</td><td>17.9</td><td>19.2</td><td>18.8</td><td></td><td>18.5 ± 0.7</td></tr><tr><td>Eye</td><td>7.2</td><td>8.25</td><td>8.6</td><td>8.8</td><td>8.2</td><td>8.3</td><td></td><td>8.2 ± 0.6</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
254
+
255
+ # A.2 BEHAVIORAL ANALYSIS
256
+
257
+ We generated features describing the whole-body pose and kinematics of the virtual rodent on fast, intermediate, and slow temporal scales. To describe the whole-body pose, we took the top 15 principal components of the virtual rodent’s joint angles and joint positions to yield two 15 dimensional sets of eigenpostures (Stephens et al., 2008). We combined these into a 30 dimensional set of postural features. To describe the animal’s whole-body kinematics, we computed the continuous wavelet transform of each eigenposture using a Morlet wavelet spanning 25 scales. For each set of eigenpostures this yielded a 375 dimensional time-frequency representation of the underlying kinematics. We then computed the top 15 principal components of each 375 dimensional time-frequency representation and combined them to yield a 30 dimensional representational description of the animal’s behavioral kinematics. To facilitate comparison of kinematics to neural representations on different timescales, we used three sets of wavelet frequencies on 1 to $2 5 \ \mathrm { H z }$ (intermediate), 0.3 to $5 \ : \mathrm { H z }$ (slow) or $5 { - } 2 5 \ \mathrm { H z }$ (fast) timescales. In separate work, we have found that combining postural and kinematic information improves separation of animal behaviors in behavioral embeddings. Therefore, we combined postural and dynamical features, the later on intermediate timescales, to yield a 60 dimensional set of ‘behavioral features’ that we used to map the animal’s behavior using tSNE (Figure 4C) (Berman et al., 2014). tSNEs were made using the Barnes-Hut approximation with a perplexity of 30.
258
+
259
+ ![](images/4ee230bc4a104c4cb785052cf9dc87e6078e6ba3b81777a90583d2471d1d32de.jpg)
260
+ A.3 POWER SPECTRAL DENSITY OF BEHAVIOR AND NETWORK ACTIVITY
261
+ Figure 9: (A) Power spectral density estimates of four different features describing animal behavior, computed by averaging the spectral density of the top ten principal components of each feature, weighted by the variance they explain. (B) Power spectral density estimates of four different network layers, computed by averaging the spectral density of the top ten principal components of each matrix of activations, weighted by the variance they explain. Notice that policy layers have more power in high frequency bands than core layers. Arrows mark peaks in the power spectra corresponding to locomotion. Notably, the $4 { - } 5 \ \mathrm { H z }$ frequency of galloping in the virtual rat matches that measured in laboratory rats (Heglund & Taylor, 1988). Power spectral density was computed using Welch’s method using a $1 0 \mathrm { { s } }$ window size and $5 \mathrm { ~ s ~ }$ overlap.
262
+
263
+ # A.4 REPRESENTATIONAL SIMILARITY ANALYSIS
264
+
265
+ We used representational similarity analysis to compare population representations across different network layers and to compute the encoding strength of different features describing animal behavior in the population. Representational similarity analysis has in the past been used to compare neural population responses in tasks where behavioral stimuli are discrete, for instance corpuses of objects or faces (Kriegeskorte et al., 2008; Kriegeskorte & Diedrichsen, 2019). A challenge in scaling such approaches to neural analysis in the context of behavior is that behavior unfolds continuously in time. It is thus a priori unclear how to discretize behavior into discrete chunks in which to compare representations.
266
+
267
+ Formally, we defined eight sets of features $\mathit { B _ { i = 1 \dots 8 } }$ describing the behavior of the animal on different timescales. These included features such as joint angles, the angular speed of the joint angles, eigenposture coefficients, and actuator forces that vary on short timescales, as well as behavioral kinematics, which vary on longer timescales and ‘behavioral features’, which consisted of both kinematics and eigenpostures. Each feature set is a matrix $B _ { i } \in \mathbb { R } ^ { M x q _ { i } }$ where $M$ is the number of timepoints in the experiment and $q _ { i }$ is the number of features in the set. We discretized each set $B _ { i }$ using $\mathbf { k }$ -means clustering with $k = 5 0$ to yield a partition of the timepoints in the experiment $P _ { i }$ .
268
+
269
+ Using the discretization defined in $P _ { i }$ , we can perform representational similarity analysis to compare the structure of population responses across neural network layers $L _ { m }$ and $L _ { n }$ or between a given network layer and features of the behavior $B _ { i }$ . Following notation in (Kornblith et al., 2019) we let $X \in \mathbb { R } ^ { k x \cdot p }$ be a matrix of population responses across $p$ neurons and the $k$ behavioral categories in $P _ { i }$ . We let $Y \in \mathbb { R } ^ { k x q }$ be either the matrix of population responses from $q$ neurons in a distinct network layer, or a set of $q$ features describing the behavior of the animal in the feature set $B _ { i }$ .
270
+
271
+ After computing the response matricies in a given behavioral partition, we compared the representational structure of the matricies $X X ^ { T }$ and $\check { Y Y } ^ { T }$ . To do so, we compute the similarity between these matricies using the linear Centered Kernel Alignment index, which is invariant under orthonormal rotations of the population activity. Following (Kornblith et al., 2019), the CKA coeffient is:
272
+
273
+ $$
274
+ C K A ( X X ^ { T } , Y Y ^ { T } ) = \frac { \| X Y ^ { T } \| _ { F } } { \| X X ^ { T } \| _ { F } \| Y Y ^ { T } \| _ { F } }
275
+ $$
276
+
277
+ Where $\| \cdot \| _ { F }$ is the Frobenius norm. For centered $X$ and $Y$ , the numerator is equivalent to the dot-product between the vectorized responses $\| X Y ^ { T } \| _ { F } = \langle \mathrm { v e c } ( X X ^ { T } ) , \mathrm { v e c } ( Y Y ^ { T } ) \rangle$ .
278
+
279
+ For a given network layer $L _ { m }$ , and a behavioral partition $P _ { i }$ , we can denote $X X ^ { T } = D _ { P _ { i } } ^ { L _ { m } } = D _ { i } ^ { m }$ Similarly, for a given feature set $B _ { i }$ , let $D _ { P _ { i } } ^ { B _ { i } } = D _ { i } ^ { i }$ . Thus we are interested in characterizing both
280
+
281
+ $$
282
+ C K A \left( D _ { i } ^ { m } , D _ { i } ^ { n } \right)
283
+ $$
284
+
285
+ and
286
+
287
+ $$
288
+ C K A \left( D _ { i } ^ { m } , D _ { i } ^ { i } \right) .
289
+ $$
290
+
291
+ The former equation describes the similarity across two layers of the network, and the later describes the similarity of the network activity to a set of behavioral descriptors.
292
+
293
+ An additional challenge comes when restricting this analysis to comparing the neural representations of behavioral across different tasks $T _ { a }$ , $T _ { b }$ , where not all behaviors are necessarily used in each task. To make such a comparison, we denote $B _ { i } ( T _ { a } )$ to be the set of behavioral clusters observed in task $T _ { a }$ , and $B _ { i } ^ { T _ { a } T _ { b } } = B _ { i } ( T _ { a } ) \cap B _ { i } ( T _ { a } )$ to be the set of behaviors used in each of the two tasks. We can then define a restricted partition of timepoints for each task $P _ { i } ^ { T _ { a } , T _ { b } }$ or $P _ { i } ^ { T _ { b } , T _ { a } }$ that includes only these behaviors, and compute the representational similarity between the same layer across tasks:
294
+
295
+ $$
296
+ C K A \left( D _ { i , T _ { a } } ^ { m } , D _ { i , T _ { b } } ^ { m } \right) .
297
+ $$
298
+
299
+ We have presented a means of performing representational similarity analysis across continuous time domains, where the natural units of discretization are unclear and likely manifold. While we focused on analyzing responses on the population level, it is likely that different subspaces of the population may encode information about distinct behavioral features at different timescales, which is still an emerging domain in representational similarity analysis techniques.
300
+
301
+ ![](images/c2a6ddf23b4ed356dffaa5db6fff4e1709bf3694f0d9191d7ade5cd93679a072.jpg)
302
+ Figure 10: Average activity in the final policy layer (policy 2) during running cycles across different tasks. In each heatmap, rows correspond to the absolute averaged z-scored activity for individual neurons, while columns denote time relative to the mid stance of the running phase. Across heatmaps, neurons are sorted by the time of peak activity in the tasks denoted on the left, such that each column of heatmaps contains the same average activity information with rearranged rows. Aligned running bouts were acquired by manually segmenting the the principal component space of policy 2 activity to find instances of mid-stance running and analyzing the surrounding $2 0 0 \mathrm { m s }$ .
303
+
304
+ # A.6 STEREOTYPED BEHAVIOR INITIATION AND NEURAL VARIABILITY
305
+
306
+ During the execution of stereotyped behaviors, neural variability was reduced (Figure 11). Recall that in our setting, neurons have no intrinsic noise, but inherit motor noise through observations of the state (i.e. via sensory reafference). This effect loosely resembles, and perhaps informs one line of interpretation of the widely reported phenomenon of neural variability reducing with stimulus or task onset (Churchland et al., 2010). Our reproduction of this effect, which simply emerges from training, suggests that variance modulation may partly arise from moments in a task that benefit from increased behavioral precision (Renart & Machens, 2014).
307
+
308
+ ![](images/6b68a4c39694412686de128e665a7da68d6865eb2acac8a39ace635ab95fd84b.jpg)
309
+ Figure 11: Quantification of neural variability in inter-tap interval of two-tap task relative to the second tap. (A) Example normalized activity traces of ten randomly selected neurons in the final policy layer. Lines indicate mean normalized activity whiles shaded regions range from the 20th percentile to the 80th percentile. Dashed lines indicate the times of first and second taps. (B) Standard deviation of normalized activity across all neurons in the final policy layer as a function of time relative to the second tap. Lines indicate the mean standard deviation while shaded regions range from the 20th percentile to the 80th percentile. Observe that variability is reduced during the two-tap interval.
310
+
311
+ # A.7 NEURAL DYNAMICS VISUALIZED DURING TASK BEHAVIOR
312
+
313
+ For completeness, we provide links to videos of a few variants of neural dynamics for each task.
314
+
315
+ Table 3: Links to representative visualizations of neural dynamics and behavior
316
+
317
+ <table><tr><td>Network</td><td>Visualization</td><td>Task (link)</td></tr><tr><td>1-layer policy</td><td>PCA</td><td>gaps</td></tr><tr><td></td><td>PCA</td><td>forage</td></tr><tr><td rowspan="6">3-layer policy</td><td>PCA</td><td></td></tr><tr><td></td><td>escape</td></tr><tr><td>PCA</td><td>two-tap</td></tr><tr><td>PCA</td><td>gaps</td></tr><tr><td>PCA</td><td>forage</td></tr><tr><td>PCA</td><td>escape</td></tr><tr><td></td><td>PCA</td><td>two-tap</td></tr><tr><td rowspan="3">3-layer policy</td><td>jPCA</td><td>gaps</td></tr><tr><td>jPCA</td><td>forage</td></tr><tr><td>jPCA</td><td>escape</td></tr><tr><td></td><td> jPCA</td><td>two-tap</td></tr></table>
318
+
319
+ ![](images/7e8deee90d5d49f7283a2ecc3d59466908cfda5655ff4272f850afdeeb79bb57.jpg)
320
+ Figure 12: Causal manipulations reveal distinct roles for core and policy layers in the production of behavior. (A) Two-tap accuracy during the inactivation of units modulated by idiosyncratic behaviors within the two-tap sequence. Core inactivation has a weaker negative effect on trial success than policy inactivation for several levels of inactivation. (B) Representative example of a failed trial during inactivation of the final policy layer in a model that performs a spinning jump during the two-tap sequence. The model is incapable of producing the spinning jump behavior while inactivated. (C) Representative example of a failed trial during core inactivation in a model that performs a spinning jump during the two-tap sequence. The model is still able to perform the spinning jump behavior, but misses the orb. (D) Proportion of attempts at stimulation that successfully elicited spin behavior during the two-tap task. The efficacy of this activation was more reliable in layers closer to the motor output. (E) Representative example of a single trial in which an extra spin occurs after policy 2 activation.
parse/train/SyxrxR4KPS/SyxrxR4KPS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyxrxR4KPS/SyxrxR4KPS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyxrxR4KPS/SyxrxR4KPS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/oXSw7laxwUpln/oXSw7laxwUpln.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networks
2
+
3
+ Ian J. Goodfellow Mehdi Mirza Da Xiao Aaron Courville Yoshua Bengio
4
+
5
+ goodfeli@iro.umontreal.ca mirzamom@iro.umontreal.ca xiaoda99@bupt.edu.cn aaron.courville@umontreal.ca yoshua.bengio@umontreal.ca
6
+
7
+ # Abstract
8
+
9
+ Catastrophic forgetting is a problem faced by many machine learning models and algorithms. When trained on one task, then trained on a second task, many machine learning models “forget” how to perform the first task. This is widely believed to be a serious problem for neural networks. Here, we investigate the extent to which the catastrophic forgetting problem occurs for modern neural networks, comparing both established and recent gradient-based training algorithms and activation functions. We also examine the effect of the relationship between the first task and the second task on catastrophic forgetting. We find that it is always best to train using the dropout algorithm– the dropout algorithm is consistently best at adapting to the new task, remembering the old task, and has the best tradeoff curve between these two extremes. We find that different tasks and relationships between tasks result in very different rankings of activation function performance. This suggests that the choice of activation function should always be cross-validated.
10
+
11
+ # 1. Introduction
12
+
13
+ Catastrophic forgetting(McCloskey & Cohen, 1989; Ratcliff, 1990) is a problem that affects neural networks, as well as other learning systems, including both biological and machine learning systems. When a learning system is first trained on one task, then trained on a second task, it may forget how to perform the first task. For example, a machine learning system trained with a convex objective will always reach the same configuration at the end of training on the second task, regardless of how it was initialized. This means that an SVM that is trained on two different tasks will completely forget how to perform the first task. Whenever the SVM is able to correctly classify an example from the original task, it is only due to chance similarities between the two tasks.
14
+
15
+ A well-supported model of biological learning in human beings suggests that neocortical neurons learn using an algorithm that is prone to catastrophic forgetting, and that the neocortical learning algorithm is complemented by a virtual experience system that replays memories stored in the hippocampus in order to continually reinforce tasks that have not been recently performed (McClelland et al., 1995). As machine learning researchers, the lesson we can glean from this is that it is acceptable for our learning algorithms to suffer from forgetting, but they may need complementary algorithms to reduce the information loss. Designing such complementary algorithms depends on understanding the characteristics of the forgetting experienced by our contemporary primary learning algorithms.
16
+
17
+ In this paper we investigate the extent to which catastrophic forgetting affects a variety of learning algorithms and neural network activation functions. Neuroscientific evidence suggests that the relationship between the old and new task strongly influences the outcome of the two successive learning experiences (McClelland). Consequently, we examine three different types of relationship between tasks: one in which the tasks are functionally identical but with different formats of the input, one in which the tasks are similar, and one in which the tasks are dissimilar.
18
+
19
+ We find that dropout (Hinton et al., 2012) is consistently the best training algorithm for modern feedforward neural nets. The choice of activation function has a less consistent effect–different activation functions are preferable depending on the task and relationship between tasks, as well as whether one places greater emphasis on adapting to the new task or retaining performance on the old task. When training with dropout, maxout (Goodfellow et al., 2013b) is the only activation function to consistently appear somewhere on the frontier of performance tradeoffs for all tasks we considered. However, maxout is not the best function at all points along the tradeoff curve, and does not have as consistent performance when trained without dropout, so it is still advisable to cross-validate the choice of activation function, particularly when training without dropout.
20
+
21
+ We find that in most cases, dropout increases the optimal size of the net, so the resistance to forgetting may be explained mostly by the larger nets having greater capacity. However, this effect is not consistent, and when using dissimilar task pairs, dropout usually decreases the size of the net. This suggests dropout may have other more subtle beneficial effects to characterize in the future.
22
+
23
+ # 2. Related work
24
+
25
+ Catastrophic forgetting has not been a well-studied property of neural networks in recent years. This property was well-studied in the past, but has not received much attention since the deep learning renaissance that began in 2006. Srivastava et al. (2013) repopularized the idea of studying this aspect of modern deep neural nets.
26
+
27
+ However, the main focus of this work was not to study catastrophic forgetting, so the experiments were limited. Only one neural network was trained in each case. The networks all used the same hyperparameters, and the same heuristically chosen stopping point. Only one pair of tasks was employed, so it is not clear whether the findings apply only to pairs of tasks with the same kind and degree of similarity or whether the findings generalize to many kinds of pairs of tasks. Only one training algorithm, standard gradient descent was employed. We move beyond all of these limitations by training multiple nets with different hyperparameters, stopping using a validation set, evaluating using three task pairs with different task similarity profiles, and including the dropout algorithm in our set of experiments.
28
+
29
+ # 3. Methods
30
+
31
+ In this section, we describe the basic algorithms and techniques used in our experiments.
32
+
33
+ # 3.1. Dropout
34
+
35
+ Dropout (Hinton et al., 2012; Srivastava, 2013) is a recently introduced training algorithm for neural networks. Dropout is designed to regularize neural networks in order to improve their generalization performance.
36
+
37
+ Dropout training is a modification to standard stochastic gradient descent training. When each example is presented to the network during learning, the input states and hidden unit states of the network are multiplied by a binary mask. The zeros in the mask cause some units to be removed from the network. This mask is generated randomly each time an example is presented. Each element of the mask is sampled independently of the others, using some fixed probability $p$ . At test time, no units are dropped, and the weights going out of each unit are multiplied by $p$ to compensate for that unit being present more often than it was during training.
38
+
39
+ Dropout can be seen as an extremely efficient means of training exponentially many neural networks that share weights, then averaging together their predictions. This procedure resembles bagging, which helps to reduce the generalization error. The fact that the learned features must work well in the context of many different models also helps to regularize the model.
40
+
41
+ Dropout is a very effective regularizer. Prior to the introduction of dropout, one of the main ways of reducing the generalization error of a neural network was simply to restrict its capacity by using a small number of hidden units. Dropout enables training of noticeably larger networks. As an example, we performed random hyperparameter search with 25 experiments in each case to find the best two-layer rectifier network (Glorot et al., 2011a) for classifying the MNIST dataset. When training with dropout, the best network according to the validation set had $5 6 . 4 8 \%$ more parameters than the best network trained without dropout.
42
+
43
+ We hypothesize that the increased size of optimally functioning dropout nets means that they are less prone to the catastrophic forgetting problem than traditional neural nets, which were regularized by constraining the capacity to be just barely sufficient to perform the first task.
44
+
45
+ # 3.2. Activation functions
46
+
47
+ Each of the hidden layers of our neural networks transforms some input vector $x$ into an output vector $h$ . In all cases, this is done by first computing a presynaptic activation $z = W x + b$ where $W$ is a matrix of learnable parameters and $b$ is a vector of learnable parameters. The presynaptic activation $z$ is then transformed into a post-synaptic activation $h$ by an activation function: $h = f ( z )$ . $h$ is then provided as the input to the next layer.
48
+
49
+ We studied the following activation functions:
50
+
51
+ 1. Logistic sigmoid:
52
+
53
+ $$
54
+ \forall i , f ( z ) _ { i } = { \frac { 1 } { 1 + \exp ( - z _ { i } ) } }
55
+ $$
56
+
57
+ 2. Rectified linear (Jarrett et al., 2009; Glorot et al., 2011a):
58
+
59
+ $$
60
+ \forall i , f ( z ) _ { i } = \operatorname* { m a x } ( 0 , z _ { i } )
61
+ $$
62
+
63
+ 3. Hard Local Winner Take All (LWTA) (Srivastava et al., 2013):
64
+
65
+ $$
66
+ \forall i , f ( z ) _ { i } = g ( i , z ) z _ { i } .
67
+ $$
68
+
69
+ Here $g$ is a gating function. $z$ is divided into disjoint blocks of size $k$ , and $g ( i , z )$ is $^ { 1 }$ if $z _ { i }$ is the maximal element of its group. If more than one element is tied for the maximum, we break the tie uniformly at random 1. Otherwise $g ( i , z )$ is $0$ .
70
+
71
+ 4. Maxout (Goodfellow et al., 2013b):
72
+
73
+ $$
74
+ \forall i , f ( z ) _ { i } = \operatorname* { m a x } _ { j } \left\{ z _ { k i } , \dots , z _ { k ( i + 1 ) - 1 } \right\}
75
+ $$
76
+
77
+ We trained each of these four activation functions with each of the two algorithms we considered, for a total of eight distinct methods.
78
+
79
+ # 3.3. Random hyperparameter search
80
+
81
+ Making fair comparisons between different deep learning methods is difficult. The performance of most deep learning methods is a complicated non-linear function of multiple hyperparameters. For many applications, the state of the art performance is obtained by a human practitioner selecting hyperparameters for some deep learning method. Human selection is problematic for comparing methods because the human practitioner may be more skillful at selecting hyperparameters for methods that he or she is familiar with. Human practitioners may also have a conflict of interest predisposing them to selecting better hyperparameters for methods that they prefer.
82
+
83
+ Automated selection of hyperparameters allows more fair comparison of methods with a complicated dependence on hyperparameters. However, automated selection of hyperparameters is challenging. Grid search suffers from the curse of dimensionality, requiring exponentially many experiments to explore highdimensional hyperparameter spaces. In this work, we use random hyperparameter search (Bergstra $\&$ Bengio, 2012) instead. This method is simple to implement and obtains roughly state of the art results using only 25 experiments on simple datasets such as MNIST.
84
+
85
+ Other more sophisticated methods of hyperparameter search, such as Bayesian optimization, may be able to obtain better results, but we found that random search was able to obtain state of the art performance on the tasks we consider, so we did not think that the greater complication of using these methods was justified. More sophisticated methods of hyperparameter feedback may also introduce some sort of bias into the experiment, if one of the methods we study satisfies more of the modeling assumptions of the hyperparameter selector.
86
+
87
+ # 4. Experiments
88
+
89
+ All of our experiments follow the same basic form. For each experiment, we define two tasks: the “old task” and the “new task.” We examine the behavior of neural networks that are trained on the old task, then trained on the new task.
90
+
91
+ For each definition of the tasks, we run the same suite of experiments for two kinds of algorithms: stochastic gradient descent training, and dropout training. For each of these algorithms, we try four different activation functions: logistic sigmoid, rectifier, hard LWTA, and maxout.
92
+
93
+ For each of these eight conditions, we randomly generate 25 random sets of hyperparameters. See the code accompanying the paper for details. In all cases, we use a model with two hidden layers followed by a softmax classification layer. The hyperparameters we search over include the magnitude of the maxnorm constraint (Srebro & Shraibman, 2005) for each layer, the method used to initialize the weights for each layer and any hyper-parameters associated with such method, the initial biases for each layer, the parameters controlling a saturating linear learning rate decay and momentum increase schedule, and the size of each layer.
94
+
95
+ We did not search over some hyperparameters for which good values are reasonably well-known. For example, for dropout, the best probability of dropping a hidden unit is known to usually be around 0.5, and the best probability of dropping a visible unit is known to usually be around 0.2. We used these wellknown constants on all experiments. This may reduce the maximum possible performance we are able to obtain using our search, but it makes the search function much better with only 25 experiments since fewer of the experiments fail dramatically.
96
+
97
+ We did our best to keep the hyperparameter searches comparable between different methods. We always used the same hyperparameter search for SGD as for dropout. For the different activation functions, there are some slight differences between the hyperameter searches. All of these differences are related to parameter initialization schemes. For LWTA and maxout, we always set the initial biases to 0, since randomly initializing a bias for each unit can make one unit within a group win the max too often, resulting in dead filters. For rectifiers and sigmoids, we randomly select the initial biases, but using different distributions. Sigmoid networks can benefit from significantly negative initial biases, since this encourages sparsity, but these initializations are fatal to rectifier networks, since a significantly negative initial bias can prevent a unit’s parameters from ever receiving non-zero gradient. Rectifier units can also benefit from slightly positive initial biases, because they help prevent rectifier units from getting stuck, but there is no known reason to believe this helps sigmoid units. We thus use a different range of initial biases for the rectifiers and the sigmoids. This was necessary to make sure that each method is able to achieve roughly state of the art performance with only 25 experiments in the random search. Likewise, there are some differences in the way we initialize the weights for each activation function. For all activation functions, we initialize the weights from a uniform distribution over small values, in at least some cases. For maxout and LWTA, this is always the method we use. For rectifiers and sigmoids, the hyperparameter search may also choose to use the initialization method advocated by Martens $\&$ Sutskever (2011). In this method, all but $k$ of the weights going into a unit are set to 0, while the remaining $k$ are set to relatively large random values. For maxout and LWTA, this method performs poorly because different filters within the same group can be initialized to have extremely dissimilar semantics.
98
+
99
+ In all cases, we first train on the “old task” until the validation set error has not improved in the last 100 epochs. Then we restore the parameters corresponding to the best validation set error, and begin training on the “new task”. We train until the error on the union of the old validation set and new validation set has not improved for 100 epochs.
100
+
101
+ After running all 25 randomly configured experiments for all 8 conditions, we make a possibilities frontier curve showing the minimum amount of test error on the new task obtaining for each amount of test error on the old task. Specifically, these plots are made by drawing a curve that traces out the lower left frontier of the cloud of points of all (old task test error, new task test error) pairs encountered by all 25 models during the course of training on the new task, with one point generated after each pass through the training set. Note that these test set errors are computed after training on only a subset of the training data, because we do not train on the validation set. It is possible to improve further by also training on the validation set, but we do not do so here because we only care about the relative performance of the different methods, not necessarily obtaining state of the art results.
102
+
103
+ (Usually possibilities frontier curves are used in scenarios where higher values are better, and the curves trace out the higher edge of a convex hull of scatterplot. Here, we are plotting error rates, so the lower values are better and the curves trace out the lower edge of a convex hull of a scatterplot. We used error rather than accuracy so that log scale plots would compress regions of bad performance and expand regions of good performance, in order to highlight the differences between the best-performing methods. Note that the log scaling sometimes makes the convex regions apear non-convex)
104
+
105
+ # 4.1. Input reformatting
106
+
107
+ Many naturally occurring tasks are highly similar to each other in terms of the underlying structure that must be understood, but have the input presented in a different format.
108
+
109
+ For example, consider learning to understand Italian after already learning to understand Spanish. Both tasks share the deeper underlying structure of being a natural language understanding problem, and furthermore, Italian and Spanish have similar grammar. However, the specific words in each language are different. A person learning Italian thus benefits from having a pre-existing representation of the general structure of the language. The challenge is to learn to map the new words into these structures (e.g., to attach the Italian word “sei” to the pre-existing concept of the second person conjugation of the verb “to be”) without damaging the ability to understand Spanish. The ability to understand Spanish could diminish if the learning algorithm inadvertently modifies the more abstract definition of language in general (i.e., if neurons that were used for verb conjugation before now get re-purposed for plurality agreement) rather than exploiting the pre-existing definition, or if the learning algorithm removes the associations between individual Spanish words and these pre-existing concepts (e.g., if the net retains the concept of there being a second person conjugation of the verb “to be” but forgets that the Spanish word “eres” corresponds to it).
110
+
111
+ To test this kind of learning problem, we designed a simple pair of tasks, where the tasks are the same, but with different ways of formatting the input. Specifically, we used MNIST classification, but with a different permutation of the pixels for the old task and the new task. Both tasks thus benefit from having concepts like penstroke detectors, or the concept of penstrokes being combined to form digits. However, the meaning of any individual pixel is different. The net must learn to associate new collections of pixels to penstrokes, without significantly disrupting the old higher level concepts, or erasing the old connections between pixels and penstrokes.
112
+
113
+ The classification performance results are presented in Fig. 1. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 2. While the nets were able to basically succeed at this task, we don’t believe that they did so by mapping different sets of pixels into pre-existing concepts. We visualized the first layer weights of the best net (in terms of combined validation set error) and their apparent semantics do not noticeably change between when training on the old task concludes and training on the new task begins. This suggests that the higher layers of the net changed to be able to accomodate a relatively arbitrary projection of the input, rather than remaining the same while the lower layers adapted to the new input format.
114
+
115
+ # 4.2. Similar tasks
116
+
117
+ We next considered what happens when the two tasks are not exactly the same, but semantically similar, and using the same input format. To test this case, we used sentiment analysis of two product categories of Amazon reviews (Blitzer et al., 2007) as the two tasks.
118
+
119
+ ![](images/439876043b347125563b4302f22b1573a3769eb0dc365574e3ccd131b6543e32.jpg)
120
+ Figure 2. Optimal model size with and without dropout on the input reformatting tasks.
121
+
122
+ ![](images/1a891c3439c2f88cc6860282836db0ce0c400f5a86513b0c6e0c7a28c3b8fe5d.jpg)
123
+ Figure 4. Optimal model size with and without dropout on the similar tasks experiment.
124
+
125
+ The task is just to classify the text of a product review as positive or negative in sentiment. We used the same preprocessing as (Glorot et al., 2011b).
126
+
127
+ The classification performance results are presented in Fig. 3. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 6.
128
+
129
+ # 4.3. Dissimilar tasks
130
+
131
+ We next considered what happens when the two tasks are semantically similar. To test this case, we used Amazon reviews as one task, and MNIST classification as another. In order to give both tasks the same output size, we used only two classes of the MNIST dataset. To give them the same validation set size, we randomly subsampled the remaining examples of the MNIST validation set (since the MNIST validation set was originally larger than the Amazon validation set, and we don’t want the estimate of the performance on the Amazon dataset to have higher variance than the MNIST one). The Amazon dataset as we preprocessed it earlier has 5,000 input features, while MNIST has only 784. To give the two tasks the same input size, we reduced the dimensionality of the Amazon data with PCA.
132
+
133
+ Classification performance results are presented in
134
+
135
+ ![](images/d8623b848906d291104729dc1978e8515a386bd637b64b936abd9433ac89725f.jpg)
136
+ Figure 1. Possibilities frontiers for the input reformatting experiment.
137
+
138
+ ![](images/ca28351bde9517c0e6ed2b65896dd91ab510b89828faa915af1f3da1aecb6479.jpg)
139
+ Figure 3. Possibilities frontiers for the similar tasks experiment.
140
+
141
+ ![](images/a55adeed4d54a90c359f1fd3e22a4eb47abbcc1d53858ba394e840616270b07e.jpg)
142
+ Figure 5. Possibilities frontiers for the dissimilar tasks experiment.
143
+
144
+ ![](images/1c8ac5562c915153a85593c6c6554ae9820ab36e59998b20d37bb95f71e3cd08.jpg)
145
+ Figure 6. Optimal model size with and without dropout on the disimilar tasks experiment.
146
+ Fig. 5. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 6.
147
+
148
+ # 5. Discussion
149
+
150
+ Our experiments have shown that training with dropout is always beneficial, at least on the relatively small datasets we used in this paper. Dropout improved performance for all eight methods on all three task pairs. Dropout works the best in terms of performance on the new task, performance on the old task, and points along the tradeoff curve balancing these two extremes, for all three task pairs. Dropout’s resistance to forgetting may be explained in part by the large model sizes that can be trained with dropout. On the input-reformatted task pair and the similar task pair, dropout never decreased the size of the optimal model for any of the four activation functions we tried. However, dropout seems to have additional properties that can help prevent forgetting that we do not yet have an explanation for. On the dissimilar tasks experiment, dropout improved performance but reduced the size of the optimal model for most of the activation functions, and on the other task pairs, it occasionally had no effect on the optimal model size.
151
+
152
+ The only recent previous work on catastrophic forgetting(Srivastava et al., 2013) argued that the choice of activation function has a significant effect on the catastrophic forgetting properties of a net, and in particular that hard LWTA outperforms logistic sigmoid and rectified linear units in this respect when trained with stochastic gradient descent.
153
+
154
+ In our more extensive experiments we found that the choice of activation function has a less consistent effect than the choice of training algorithm. When we performed experiments with different kinds of task pairs, we found that the ranking of the activation functions is very problem dependent. For example, logistic sigmoid is the worst under some conditions but the best under other conditions. This suggests that one should always cross-validate the choice of activation function, as long as it is computationally feasible. We also reject the idea that hard LWTA is particular resistant to catastrophic forgetting in general, or that it makes the standard SGD training algorithm more resistant to catastrophic forgetting. For example, when training with SGD on the input reformatting task pair, hard LWTA’s possibilities frontier is worse than all activation functions except sigmoid for most points along the curve. On the similar task pair, LWTA with SGD is the worst of all eight methods we considered, in terms of best performance on the new task, best performance on the old task, and in terms of attaining points close to the origin of the possibilities frontier plot. However, hard LWTA does perform the best in some circumstances (it has the best performance on the new task for the dissimilar task pair ). This suggests that it is worth including hard LWTA as one of many activation functions in a hyperparameter search. LWTA is however never the leftmost point in any of our three task pairs, so it is probably only useful in sequential task settings where forgetting is an issue.
155
+
156
+ When computational resources are too limited to experiment with multiple activation functions, we recommend using the maxout activation function trained with dropout. This is the only method that appears on the lower-left frontier of the performance tradeoff plots for all three task pairs we considered.
157
+
158
+ # Acknowledgments
159
+
160
+ We would like to thank the developers of Theano (Bergstra et al., 2010; Bastien et al., 2012), Pylearn2 (Goodfellow et al., 2013a). We would also like to thank NSERC, Compute Canada, and Calcul Qu´ebec for providing computational resources. Ian Goodfellow is supported by the 2013 Google Fellowship in Deep Learning.
161
+
162
+ # References
163
+
164
+ Bastien, Fr´ed´eric, Lamblin, Pascal, Pascanu, Razvan, Bergstra, James, Goodfellow, Ian J., Bergeron, Arnaud, Bouchard, Nicolas, and Bengio, Yoshua. Theano: new features and speed improvements. Deep Learning and Unsupervised Feature Learning NIPS 2012 Workshop, 2012.
165
+
166
+ Bergstra, James and Bengio, Yoshua. Random search for hyper-parameter optimization. Journal of Machine Learning Research, 13:281–305, February 2012.
167
+
168
+ Bergstra, James, Breuleux, Olivier, Bastien, Fr´ed´eric,
169
+
170
+ Lamblin, Pascal, Pascanu, Razvan, Desjardins, Guillaume, Turian, Joseph, Warde-Farley, David, and Bengio, Yoshua. Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy), June 2010. Oral Presentation.
171
+
172
+ Blitzer, John, Dredze, Mark, and Pereira, Fernando. Biographies, bollywood, boom-boxes and blenders: Domain adaptation for sentiment classification. In ACL ’07, pp. 440–447, 2007.
173
+
174
+ Glorot, Xavier, Bordes, Antoine, and Bengio, Yoshua. Deep sparse rectifier neural networks. In JMLR W&CP: Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics (AISTATS 2011), April 2011a.
175
+
176
+ Glorot, Xavier, Bordes, Antoine, and Bengio, Yoshua. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of theTwenty-eight International Conference on Machine Learning (ICML’11), volume 27, pp. 97–110, June 2011b.
177
+
178
+ Goodfellow, Ian J., Warde-Farley, David, Lamblin, Pascal, Dumoulin, Vincent, Mirza, Mehdi, Pascanu, Razvan, Bergstra, James, Bastien, Fr´ed´eric, and Bengio, Yoshua. Pylearn2: a machine learning research library. arXiv preprint arXiv:1308.4214, 2013a.
179
+
180
+ Goodfellow, Ian J., Warde-Farley, David, Mirza, Mehdi, Courville, Aaron, and Bengio, Yoshua. Maxout networks. In Dasgupta, Sanjoy and McAllester, David (eds.), Proceedings of the 30th International Conference on Machine Learning (ICML’13), pp. 13191327. ACM, 2013b. URL http://icml.cc/ 2013/.
181
+
182
+ Hinton, Geoffrey E., Srivastava, Nitish, Krizhevsky, Alex, Sutskever, Ilya, and Salakhutdinov, Ruslan. Improving neural networks by preventing coadaptation of feature detectors. Technical report, arXiv:1207.0580, 2012.
183
+
184
+ Jarrett, Kevin, Kavukcuoglu, Koray, Ranzato, Marc’Aurelio, and LeCun, Yann. What is the best multi-stage architecture for object recognition? In Proc. International Conference on Computer Vision (ICCV’09), pp. 2146–2153. IEEE, 2009.
185
+
186
+ Martens, James and Sutskever, Ilya. Learning recurrent neural networks with Hessian-free optimization. In Proc. ICML’2011. ACM, 2011.
187
+
188
+ McClelland, J. L., McNaughton, B. L., and O’Reilly, R. C. Why there are complementary learning systems in the hippocampus and neocortex: Insights from the successes and failures of connectionist models of learning and memory. Psychological Review, 102:419–457, 1995.
189
+
190
+ McClelland, James L.
191
+
192
+ McCloskey, M. and Cohen, N. J. Catastrophic interference in connectionist networks: The sequential learning problem. In Bower, G. H. (ed.), The Psychology of Learning and Motivation, Vol. 24, pp. 109–164. Academic Press, San Diego, CA, 1989.
193
+
194
+ Ratcliff, R. Connectionist models of recognition memory: constraints imposed by learning and forgetting functions. Psychological review, 97(2):285–308, April 1990. ISSN 0033-295X. URL http://view. ncbi.nlm.nih.gov/pubmed/2186426.
195
+
196
+ Srebro, Nathan and Shraibman, Adi. Rank, tracenorm and max-norm. In Proceedings of the 18th Annual Conference on Learning Theory, pp. 545– 560. Springer-Verlag, 2005.
197
+
198
+ Srivastava, Nitish. Improving neural networks with dropout. Master’s thesis, U. Toronto, 2013.
199
+
200
+ Srivastava, Rupesh K, Masci, Jonathan, Kazerounian, Sohrob, Gomez, Faustino, and Schmidhuber, J¨urgen. Compete to compute. In Burges, C.J.C., Bottou, L., Welling, M., Ghahramani, Z., and Weinberger, K.Q. (eds.), Advances in Neural Information Processing Systems 26, pp. 2310–2318. 2013. URL http://media.nips.cc/nipsbooks/ nipspapers/paper_files/nips26/1109.pdf.
parse/train/oXSw7laxwUpln/oXSw7laxwUpln_content_list.json ADDED
@@ -0,0 +1,1161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 156,
8
+ 109,
9
+ 816,
10
+ 154
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ian J. Goodfellow Mehdi Mirza Da Xiao Aaron Courville Yoshua Bengio ",
17
+ "bbox": [
18
+ 88,
19
+ 194,
20
+ 235,
21
+ 270
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "goodfeli@iro.umontreal.ca mirzamom@iro.umontreal.ca xiaoda99@bupt.edu.cn aaron.courville@umontreal.ca yoshua.bengio@umontreal.ca ",
28
+ "bbox": [
29
+ 604,
30
+ 195,
31
+ 869,
32
+ 270
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 238,
42
+ 295,
43
+ 321,
44
+ 313
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Catastrophic forgetting is a problem faced by many machine learning models and algorithms. When trained on one task, then trained on a second task, many machine learning models “forget” how to perform the first task. This is widely believed to be a serious problem for neural networks. Here, we investigate the extent to which the catastrophic forgetting problem occurs for modern neural networks, comparing both established and recent gradient-based training algorithms and activation functions. We also examine the effect of the relationship between the first task and the second task on catastrophic forgetting. We find that it is always best to train using the dropout algorithm– the dropout algorithm is consistently best at adapting to the new task, remembering the old task, and has the best tradeoff curve between these two extremes. We find that different tasks and relationships between tasks result in very different rankings of activation function performance. This suggests that the choice of activation function should always be cross-validated. ",
51
+ "bbox": [
52
+ 120,
53
+ 321,
54
+ 441,
55
+ 698
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1. Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 89,
65
+ 731,
66
+ 235,
67
+ 747
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Catastrophic forgetting(McCloskey & Cohen, 1989; Ratcliff, 1990) is a problem that affects neural networks, as well as other learning systems, including both biological and machine learning systems. When a learning system is first trained on one task, then trained on a second task, it may forget how to perform the first task. For example, a machine learning system trained with a convex objective will always reach the same configuration at the end of training on the second task, regardless of how it was initialized. This means that an SVM that is trained on two different tasks will completely forget how to perform the first task. Whenever the SVM is able to correctly classify an example from the original task, it is only due to chance similarities between the two tasks. ",
74
+ "bbox": [
75
+ 89,
76
+ 757,
77
+ 472,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 501,
87
+ 297,
88
+ 883,
89
+ 433
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "A well-supported model of biological learning in human beings suggests that neocortical neurons learn using an algorithm that is prone to catastrophic forgetting, and that the neocortical learning algorithm is complemented by a virtual experience system that replays memories stored in the hippocampus in order to continually reinforce tasks that have not been recently performed (McClelland et al., 1995). As machine learning researchers, the lesson we can glean from this is that it is acceptable for our learning algorithms to suffer from forgetting, but they may need complementary algorithms to reduce the information loss. Designing such complementary algorithms depends on understanding the characteristics of the forgetting experienced by our contemporary primary learning algorithms. ",
96
+ "bbox": [
97
+ 501,
98
+ 441,
99
+ 883,
100
+ 681
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper we investigate the extent to which catastrophic forgetting affects a variety of learning algorithms and neural network activation functions. Neuroscientific evidence suggests that the relationship between the old and new task strongly influences the outcome of the two successive learning experiences (McClelland). Consequently, we examine three different types of relationship between tasks: one in which the tasks are functionally identical but with different formats of the input, one in which the tasks are similar, and one in which the tasks are dissimilar. ",
107
+ "bbox": [
108
+ 501,
109
+ 690,
110
+ 883,
111
+ 854
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We find that dropout (Hinton et al., 2012) is consistently the best training algorithm for modern feedforward neural nets. The choice of activation function has a less consistent effect–different activation functions are preferable depending on the task and relationship between tasks, as well as whether one places greater emphasis on adapting to the new task or retaining performance on the old task. When training with dropout, maxout (Goodfellow et al., 2013b) is the only activation function to consistently appear somewhere on the frontier of performance tradeoffs for all tasks we considered. However, maxout is not the best function at all points along the tradeoff curve, and does not have as consistent performance when trained without dropout, so it is still advisable to cross-validate the choice of activation function, particularly when training without dropout. ",
118
+ "bbox": [
119
+ 500,
120
+ 864,
121
+ 883,
122
+ 893
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 89,
131
+ 85,
132
+ 472,
133
+ 310
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "We find that in most cases, dropout increases the optimal size of the net, so the resistance to forgetting may be explained mostly by the larger nets having greater capacity. However, this effect is not consistent, and when using dissimilar task pairs, dropout usually decreases the size of the net. This suggests dropout may have other more subtle beneficial effects to characterize in the future. ",
140
+ "bbox": [
141
+ 89,
142
+ 319,
143
+ 472,
144
+ 438
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2. Related work ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 89,
154
+ 458,
155
+ 243,
156
+ 476
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Catastrophic forgetting has not been a well-studied property of neural networks in recent years. This property was well-studied in the past, but has not received much attention since the deep learning renaissance that began in 2006. Srivastava et al. (2013) repopularized the idea of studying this aspect of modern deep neural nets. ",
163
+ "bbox": [
164
+ 89,
165
+ 486,
166
+ 472,
167
+ 590
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "However, the main focus of this work was not to study catastrophic forgetting, so the experiments were limited. Only one neural network was trained in each case. The networks all used the same hyperparameters, and the same heuristically chosen stopping point. Only one pair of tasks was employed, so it is not clear whether the findings apply only to pairs of tasks with the same kind and degree of similarity or whether the findings generalize to many kinds of pairs of tasks. Only one training algorithm, standard gradient descent was employed. We move beyond all of these limitations by training multiple nets with different hyperparameters, stopping using a validation set, evaluating using three task pairs with different task similarity profiles, and including the dropout algorithm in our set of experiments. ",
174
+ "bbox": [
175
+ 89,
176
+ 598,
177
+ 472,
178
+ 838
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "3. Methods ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 501,
188
+ 83,
189
+ 609,
190
+ 99
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "In this section, we describe the basic algorithms and techniques used in our experiments. ",
197
+ "bbox": [
198
+ 501,
199
+ 109,
200
+ 883,
201
+ 138
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "3.1. Dropout ",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 500,
211
+ 156,
212
+ 604,
213
+ 171
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "Dropout (Hinton et al., 2012; Srivastava, 2013) is a recently introduced training algorithm for neural networks. Dropout is designed to regularize neural networks in order to improve their generalization performance. ",
220
+ "bbox": [
221
+ 501,
222
+ 180,
223
+ 883,
224
+ 253
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "Dropout training is a modification to standard stochastic gradient descent training. When each example is presented to the network during learning, the input states and hidden unit states of the network are multiplied by a binary mask. The zeros in the mask cause some units to be removed from the network. This mask is generated randomly each time an example is presented. Each element of the mask is sampled independently of the others, using some fixed probability $p$ . At test time, no units are dropped, and the weights going out of each unit are multiplied by $p$ to compensate for that unit being present more often than it was during training. ",
231
+ "bbox": [
232
+ 501,
233
+ 263,
234
+ 883,
235
+ 458
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Dropout can be seen as an extremely efficient means of training exponentially many neural networks that share weights, then averaging together their predictions. This procedure resembles bagging, which helps to reduce the generalization error. The fact that the learned features must work well in the context of many different models also helps to regularize the model. ",
242
+ "bbox": [
243
+ 501,
244
+ 467,
245
+ 883,
246
+ 571
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "Dropout is a very effective regularizer. Prior to the introduction of dropout, one of the main ways of reducing the generalization error of a neural network was simply to restrict its capacity by using a small number of hidden units. Dropout enables training of noticeably larger networks. As an example, we performed random hyperparameter search with 25 experiments in each case to find the best two-layer rectifier network (Glorot et al., 2011a) for classifying the MNIST dataset. When training with dropout, the best network according to the validation set had $5 6 . 4 8 \\%$ more parameters than the best network trained without dropout. ",
253
+ "bbox": [
254
+ 501,
255
+ 580,
256
+ 883,
257
+ 775
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "We hypothesize that the increased size of optimally functioning dropout nets means that they are less prone to the catastrophic forgetting problem than traditional neural nets, which were regularized by constraining the capacity to be just barely sufficient to perform the first task. ",
264
+ "bbox": [
265
+ 501,
266
+ 784,
267
+ 883,
268
+ 873
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "3.2. Activation functions ",
275
+ "text_level": 1,
276
+ "bbox": [
277
+ 89,
278
+ 85,
279
+ 290,
280
+ 99
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Each of the hidden layers of our neural networks transforms some input vector $x$ into an output vector $h$ . In all cases, this is done by first computing a presynaptic activation $z = W x + b$ where $W$ is a matrix of learnable parameters and $b$ is a vector of learnable parameters. The presynaptic activation $z$ is then transformed into a post-synaptic activation $h$ by an activation function: $h = f ( z )$ . $h$ is then provided as the input to the next layer. ",
287
+ "bbox": [
288
+ 89,
289
+ 108,
290
+ 472,
291
+ 243
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "We studied the following activation functions: ",
298
+ "bbox": [
299
+ 89,
300
+ 251,
301
+ 416,
302
+ 266
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "1. Logistic sigmoid: ",
309
+ "bbox": [
310
+ 99,
311
+ 286,
312
+ 240,
313
+ 301
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "equation",
319
+ "img_path": "images/05c1cbdec876a3eeeed4b971ae2c1c0049a20f276a5850e42ebde7f21afb8eb1.jpg",
320
+ "text": "$$\n\\forall i , f ( z ) _ { i } = { \\frac { 1 } { 1 + \\exp ( - z _ { i } ) } }\n$$",
321
+ "text_format": "latex",
322
+ "bbox": [
323
+ 207,
324
+ 314,
325
+ 385,
326
+ 344
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "2. Rectified linear (Jarrett et al., 2009; Glorot et al., 2011a): ",
333
+ "bbox": [
334
+ 99,
335
+ 361,
336
+ 472,
337
+ 390
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "equation",
343
+ "img_path": "images/f7e651ff4834977f83931a91bd6b98a11fe399b95a46033e8647b5f31d8c6dfb.jpg",
344
+ "text": "$$\n\\forall i , f ( z ) _ { i } = \\operatorname* { m a x } ( 0 , z _ { i } )\n$$",
345
+ "text_format": "latex",
346
+ "bbox": [
347
+ 218,
348
+ 395,
349
+ 372,
350
+ 409
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "3. Hard Local Winner Take All (LWTA) (Srivastava et al., 2013): ",
357
+ "bbox": [
358
+ 98,
359
+ 421,
360
+ 472,
361
+ 452
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "equation",
367
+ "img_path": "images/a88d4ee4ded98b20884611bb237f0ed1eafc36a5b657587e0305d4be6a7567c0.jpg",
368
+ "text": "$$\n\\forall i , f ( z ) _ { i } = g ( i , z ) z _ { i } .\n$$",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 225,
372
+ 467,
373
+ 367,
374
+ 481
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Here $g$ is a gating function. $z$ is divided into disjoint blocks of size $k$ , and $g ( i , z )$ is $^ { 1 }$ if $z _ { i }$ is the maximal element of its group. If more than one element is tied for the maximum, we break the tie uniformly at random 1. Otherwise $g ( i , z )$ is $0$ . ",
381
+ "bbox": [
382
+ 120,
383
+ 493,
384
+ 472,
385
+ 569
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "4. Maxout (Goodfellow et al., 2013b): ",
392
+ "bbox": [
393
+ 101,
394
+ 580,
395
+ 370,
396
+ 594
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "equation",
402
+ "img_path": "images/fc3b9a61a6ea7980b30b8f05887282c9c6f056416c110537a0f82f9d94163570.jpg",
403
+ "text": "$$\n\\forall i , f ( z ) _ { i } = \\operatorname* { m a x } _ { j } \\left\\{ z _ { k i } , \\dots , z _ { k ( i + 1 ) - 1 } \\right\\}\n$$",
404
+ "text_format": "latex",
405
+ "bbox": [
406
+ 168,
407
+ 609,
408
+ 424,
409
+ 626
410
+ ],
411
+ "page_idx": 2
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "We trained each of these four activation functions with each of the two algorithms we considered, for a total of eight distinct methods. ",
416
+ "bbox": [
417
+ 88,
418
+ 643,
419
+ 472,
420
+ 688
421
+ ],
422
+ "page_idx": 2
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "3.3. Random hyperparameter search ",
427
+ "text_level": 1,
428
+ "bbox": [
429
+ 89,
430
+ 704,
431
+ 388,
432
+ 719
433
+ ],
434
+ "page_idx": 2
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Making fair comparisons between different deep learning methods is difficult. The performance of most deep learning methods is a complicated non-linear function of multiple hyperparameters. For many applications, the state of the art performance is obtained by a human practitioner selecting hyperparameters for some deep learning method. Human selection is problematic for comparing methods because the human practitioner may be more skillful at selecting hyperparameters for methods that he or she is familiar with. Human practitioners may also have a conflict of interest predisposing them to selecting better hyperparameters for methods that they prefer. ",
439
+ "bbox": [
440
+ 89,
441
+ 728,
442
+ 472,
443
+ 819
444
+ ],
445
+ "page_idx": 2
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "",
450
+ "bbox": [
451
+ 501,
452
+ 85,
453
+ 883,
454
+ 190
455
+ ],
456
+ "page_idx": 2
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "Automated selection of hyperparameters allows more fair comparison of methods with a complicated dependence on hyperparameters. However, automated selection of hyperparameters is challenging. Grid search suffers from the curse of dimensionality, requiring exponentially many experiments to explore highdimensional hyperparameter spaces. In this work, we use random hyperparameter search (Bergstra $\\&$ Bengio, 2012) instead. This method is simple to implement and obtains roughly state of the art results using only 25 experiments on simple datasets such as MNIST. ",
461
+ "bbox": [
462
+ 501,
463
+ 198,
464
+ 883,
465
+ 363
466
+ ],
467
+ "page_idx": 2
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Other more sophisticated methods of hyperparameter search, such as Bayesian optimization, may be able to obtain better results, but we found that random search was able to obtain state of the art performance on the tasks we consider, so we did not think that the greater complication of using these methods was justified. More sophisticated methods of hyperparameter feedback may also introduce some sort of bias into the experiment, if one of the methods we study satisfies more of the modeling assumptions of the hyperparameter selector. ",
472
+ "bbox": [
473
+ 501,
474
+ 372,
475
+ 883,
476
+ 536
477
+ ],
478
+ "page_idx": 2
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "4. Experiments ",
483
+ "text_level": 1,
484
+ "bbox": [
485
+ 501,
486
+ 556,
487
+ 647,
488
+ 574
489
+ ],
490
+ "page_idx": 2
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "All of our experiments follow the same basic form. For each experiment, we define two tasks: the “old task” and the “new task.” We examine the behavior of neural networks that are trained on the old task, then trained on the new task. ",
495
+ "bbox": [
496
+ 501,
497
+ 583,
498
+ 883,
499
+ 659
500
+ ],
501
+ "page_idx": 2
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "For each definition of the tasks, we run the same suite of experiments for two kinds of algorithms: stochastic gradient descent training, and dropout training. For each of these algorithms, we try four different activation functions: logistic sigmoid, rectifier, hard LWTA, and maxout. ",
506
+ "bbox": [
507
+ 500,
508
+ 666,
509
+ 883,
510
+ 756
511
+ ],
512
+ "page_idx": 2
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "For each of these eight conditions, we randomly generate 25 random sets of hyperparameters. See the code accompanying the paper for details. In all cases, we use a model with two hidden layers followed by a softmax classification layer. The hyperparameters we search over include the magnitude of the maxnorm constraint (Srebro & Shraibman, 2005) for each layer, the method used to initialize the weights for each layer and any hyper-parameters associated with such method, the initial biases for each layer, the parameters controlling a saturating linear learning rate decay and momentum increase schedule, and the size of each layer. ",
517
+ "bbox": [
518
+ 501,
519
+ 763,
520
+ 883,
521
+ 900
522
+ ],
523
+ "page_idx": 2
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "",
528
+ "bbox": [
529
+ 89,
530
+ 85,
531
+ 472,
532
+ 145
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "We did not search over some hyperparameters for which good values are reasonably well-known. For example, for dropout, the best probability of dropping a hidden unit is known to usually be around 0.5, and the best probability of dropping a visible unit is known to usually be around 0.2. We used these wellknown constants on all experiments. This may reduce the maximum possible performance we are able to obtain using our search, but it makes the search function much better with only 25 experiments since fewer of the experiments fail dramatically. ",
539
+ "bbox": [
540
+ 89,
541
+ 154,
542
+ 472,
543
+ 318
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "We did our best to keep the hyperparameter searches comparable between different methods. We always used the same hyperparameter search for SGD as for dropout. For the different activation functions, there are some slight differences between the hyperameter searches. All of these differences are related to parameter initialization schemes. For LWTA and maxout, we always set the initial biases to 0, since randomly initializing a bias for each unit can make one unit within a group win the max too often, resulting in dead filters. For rectifiers and sigmoids, we randomly select the initial biases, but using different distributions. Sigmoid networks can benefit from significantly negative initial biases, since this encourages sparsity, but these initializations are fatal to rectifier networks, since a significantly negative initial bias can prevent a unit’s parameters from ever receiving non-zero gradient. Rectifier units can also benefit from slightly positive initial biases, because they help prevent rectifier units from getting stuck, but there is no known reason to believe this helps sigmoid units. We thus use a different range of initial biases for the rectifiers and the sigmoids. This was necessary to make sure that each method is able to achieve roughly state of the art performance with only 25 experiments in the random search. Likewise, there are some differences in the way we initialize the weights for each activation function. For all activation functions, we initialize the weights from a uniform distribution over small values, in at least some cases. For maxout and LWTA, this is always the method we use. For rectifiers and sigmoids, the hyperparameter search may also choose to use the initialization method advocated by Martens $\\&$ Sutskever (2011). In this method, all but $k$ of the weights going into a unit are set to 0, while the remaining $k$ are set to relatively large random values. For maxout and LWTA, this method performs poorly because different filters within the same group can be initialized to have extremely dissimilar semantics. ",
550
+ "bbox": [
551
+ 89,
552
+ 325,
553
+ 472,
554
+ 901
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "",
561
+ "bbox": [
562
+ 501,
563
+ 85,
564
+ 854,
565
+ 99
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "In all cases, we first train on the “old task” until the validation set error has not improved in the last 100 epochs. Then we restore the parameters corresponding to the best validation set error, and begin training on the “new task”. We train until the error on the union of the old validation set and new validation set has not improved for 100 epochs. ",
572
+ "bbox": [
573
+ 501,
574
+ 108,
575
+ 883,
576
+ 212
577
+ ],
578
+ "page_idx": 3
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "After running all 25 randomly configured experiments for all 8 conditions, we make a possibilities frontier curve showing the minimum amount of test error on the new task obtaining for each amount of test error on the old task. Specifically, these plots are made by drawing a curve that traces out the lower left frontier of the cloud of points of all (old task test error, new task test error) pairs encountered by all 25 models during the course of training on the new task, with one point generated after each pass through the training set. Note that these test set errors are computed after training on only a subset of the training data, because we do not train on the validation set. It is possible to improve further by also training on the validation set, but we do not do so here because we only care about the relative performance of the different methods, not necessarily obtaining state of the art results. ",
583
+ "bbox": [
584
+ 501,
585
+ 220,
586
+ 883,
587
+ 477
588
+ ],
589
+ "page_idx": 3
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "(Usually possibilities frontier curves are used in scenarios where higher values are better, and the curves trace out the higher edge of a convex hull of scatterplot. Here, we are plotting error rates, so the lower values are better and the curves trace out the lower edge of a convex hull of a scatterplot. We used error rather than accuracy so that log scale plots would compress regions of bad performance and expand regions of good performance, in order to highlight the differences between the best-performing methods. Note that the log scaling sometimes makes the convex regions apear non-convex) ",
594
+ "bbox": [
595
+ 501,
596
+ 486,
597
+ 883,
598
+ 665
599
+ ],
600
+ "page_idx": 3
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "4.1. Input reformatting ",
605
+ "text_level": 1,
606
+ "bbox": [
607
+ 501,
608
+ 683,
609
+ 692,
610
+ 698
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "Many naturally occurring tasks are highly similar to each other in terms of the underlying structure that must be understood, but have the input presented in a different format. ",
617
+ "bbox": [
618
+ 501,
619
+ 707,
620
+ 883,
621
+ 766
622
+ ],
623
+ "page_idx": 3
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "For example, consider learning to understand Italian after already learning to understand Spanish. Both tasks share the deeper underlying structure of being a natural language understanding problem, and furthermore, Italian and Spanish have similar grammar. However, the specific words in each language are different. A person learning Italian thus benefits from having a pre-existing representation of the general structure of the language. The challenge is to learn to map the new words into these structures (e.g., to attach the Italian word “sei” to the pre-existing concept of the second person conjugation of the verb “to be”) without damaging the ability to understand Spanish. The ability to understand Spanish could diminish if the learning algorithm inadvertently modifies the more abstract definition of language in general (i.e., if neurons that were used for verb conjugation before now get re-purposed for plurality agreement) rather than exploiting the pre-existing definition, or if the learning algorithm removes the associations between individual Spanish words and these pre-existing concepts (e.g., if the net retains the concept of there being a second person conjugation of the verb “to be” but forgets that the Spanish word “eres” corresponds to it). ",
628
+ "bbox": [
629
+ 501,
630
+ 773,
631
+ 883,
632
+ 895
633
+ ],
634
+ "page_idx": 3
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "",
639
+ "bbox": [
640
+ 89,
641
+ 85,
642
+ 472,
643
+ 325
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "To test this kind of learning problem, we designed a simple pair of tasks, where the tasks are the same, but with different ways of formatting the input. Specifically, we used MNIST classification, but with a different permutation of the pixels for the old task and the new task. Both tasks thus benefit from having concepts like penstroke detectors, or the concept of penstrokes being combined to form digits. However, the meaning of any individual pixel is different. The net must learn to associate new collections of pixels to penstrokes, without significantly disrupting the old higher level concepts, or erasing the old connections between pixels and penstrokes. ",
650
+ "bbox": [
651
+ 89,
652
+ 334,
653
+ 472,
654
+ 529
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "The classification performance results are presented in Fig. 1. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 2. While the nets were able to basically succeed at this task, we don’t believe that they did so by mapping different sets of pixels into pre-existing concepts. We visualized the first layer weights of the best net (in terms of combined validation set error) and their apparent semantics do not noticeably change between when training on the old task concludes and training on the new task begins. This suggests that the higher layers of the net changed to be able to accomodate a relatively arbitrary projection of the input, rather than remaining the same while the lower layers adapted to the new input format. ",
661
+ "bbox": [
662
+ 89,
663
+ 537,
664
+ 472,
665
+ 779
666
+ ],
667
+ "page_idx": 4
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "4.2. Similar tasks ",
672
+ "text_level": 1,
673
+ "bbox": [
674
+ 89,
675
+ 796,
676
+ 232,
677
+ 810
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "We next considered what happens when the two tasks are not exactly the same, but semantically similar, and using the same input format. To test this case, we used sentiment analysis of two product categories of Amazon reviews (Blitzer et al., 2007) as the two tasks. ",
684
+ "bbox": [
685
+ 89,
686
+ 819,
687
+ 472,
688
+ 895
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "image",
694
+ "img_path": "images/439876043b347125563b4302f22b1573a3769eb0dc365574e3ccd131b6543e32.jpg",
695
+ "image_caption": [
696
+ "Figure 2. Optimal model size with and without dropout on the input reformatting tasks. "
697
+ ],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 531,
701
+ 85,
702
+ 852,
703
+ 217
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "image",
709
+ "img_path": "images/1a891c3439c2f88cc6860282836db0ce0c400f5a86513b0c6e0c7a28c3b8fe5d.jpg",
710
+ "image_caption": [
711
+ "Figure 4. Optimal model size with and without dropout on the similar tasks experiment. "
712
+ ],
713
+ "image_footnote": [],
714
+ "bbox": [
715
+ 531,
716
+ 279,
717
+ 852,
718
+ 400
719
+ ],
720
+ "page_idx": 4
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "The task is just to classify the text of a product review as positive or negative in sentiment. We used the same preprocessing as (Glorot et al., 2011b). ",
725
+ "bbox": [
726
+ 500,
727
+ 473,
728
+ 883,
729
+ 517
730
+ ],
731
+ "page_idx": 4
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "The classification performance results are presented in Fig. 3. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 6. ",
736
+ "bbox": [
737
+ 501,
738
+ 526,
739
+ 883,
740
+ 602
741
+ ],
742
+ "page_idx": 4
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "4.3. Dissimilar tasks ",
747
+ "text_level": 1,
748
+ "bbox": [
749
+ 501,
750
+ 618,
751
+ 666,
752
+ 632
753
+ ],
754
+ "page_idx": 4
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "We next considered what happens when the two tasks are semantically similar. To test this case, we used Amazon reviews as one task, and MNIST classification as another. In order to give both tasks the same output size, we used only two classes of the MNIST dataset. To give them the same validation set size, we randomly subsampled the remaining examples of the MNIST validation set (since the MNIST validation set was originally larger than the Amazon validation set, and we don’t want the estimate of the performance on the Amazon dataset to have higher variance than the MNIST one). The Amazon dataset as we preprocessed it earlier has 5,000 input features, while MNIST has only 784. To give the two tasks the same input size, we reduced the dimensionality of the Amazon data with PCA. ",
759
+ "bbox": [
760
+ 501,
761
+ 641,
762
+ 883,
763
+ 882
764
+ ],
765
+ "page_idx": 4
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "Classification performance results are presented in ",
770
+ "bbox": [
771
+ 501,
772
+ 890,
773
+ 883,
774
+ 905
775
+ ],
776
+ "page_idx": 4
777
+ },
778
+ {
779
+ "type": "image",
780
+ "img_path": "images/d8623b848906d291104729dc1978e8515a386bd637b64b936abd9433ac89725f.jpg",
781
+ "image_caption": [
782
+ "Figure 1. Possibilities frontiers for the input reformatting experiment. "
783
+ ],
784
+ "image_footnote": [],
785
+ "bbox": [
786
+ 156,
787
+ 121,
788
+ 808,
789
+ 431
790
+ ],
791
+ "page_idx": 5
792
+ },
793
+ {
794
+ "type": "image",
795
+ "img_path": "images/ca28351bde9517c0e6ed2b65896dd91ab510b89828faa915af1f3da1aecb6479.jpg",
796
+ "image_caption": [
797
+ "Figure 3. Possibilities frontiers for the similar tasks experiment. "
798
+ ],
799
+ "image_footnote": [],
800
+ "bbox": [
801
+ 158,
802
+ 535,
803
+ 810,
804
+ 847
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "image",
810
+ "img_path": "images/a55adeed4d54a90c359f1fd3e22a4eb47abbcc1d53858ba394e840616270b07e.jpg",
811
+ "image_caption": [
812
+ "Figure 5. Possibilities frontiers for the dissimilar tasks experiment. "
813
+ ],
814
+ "image_footnote": [],
815
+ "bbox": [
816
+ 156,
817
+ 107,
818
+ 813,
819
+ 417
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "image",
825
+ "img_path": "images/1c8ac5562c915153a85593c6c6554ae9820ab36e59998b20d37bb95f71e3cd08.jpg",
826
+ "image_caption": [
827
+ "Figure 6. Optimal model size with and without dropout on the disimilar tasks experiment. ",
828
+ "Fig. 5. Using dropout improved the two-task validation set performance for all models on this task pair. We show the effect of dropout on the optimal model size in Fig. 6. "
829
+ ],
830
+ "image_footnote": [],
831
+ "bbox": [
832
+ 122,
833
+ 482,
834
+ 441,
835
+ 608
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "5. Discussion ",
842
+ "text_level": 1,
843
+ "bbox": [
844
+ 89,
845
+ 758,
846
+ 214,
847
+ 775
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Our experiments have shown that training with dropout is always beneficial, at least on the relatively small datasets we used in this paper. Dropout improved performance for all eight methods on all three task pairs. Dropout works the best in terms of performance on the new task, performance on the old task, and points along the tradeoff curve balancing these two extremes, for all three task pairs. Dropout’s resistance to forgetting may be explained in part by the large model sizes that can be trained with dropout. On the input-reformatted task pair and the similar task pair, dropout never decreased the size of the optimal model for any of the four activation functions we tried. However, dropout seems to have additional properties that can help prevent forgetting that we do not yet have an explanation for. On the dissimilar tasks experiment, dropout improved performance but reduced the size of the optimal model for most of the activation functions, and on the other task pairs, it occasionally had no effect on the optimal model size. ",
854
+ "bbox": [
855
+ 89,
856
+ 785,
857
+ 472,
858
+ 905
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "",
865
+ "bbox": [
866
+ 501,
867
+ 487,
868
+ 883,
869
+ 667
870
+ ],
871
+ "page_idx": 6
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "The only recent previous work on catastrophic forgetting(Srivastava et al., 2013) argued that the choice of activation function has a significant effect on the catastrophic forgetting properties of a net, and in particular that hard LWTA outperforms logistic sigmoid and rectified linear units in this respect when trained with stochastic gradient descent. ",
876
+ "bbox": [
877
+ 501,
878
+ 675,
879
+ 883,
880
+ 781
881
+ ],
882
+ "page_idx": 6
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "In our more extensive experiments we found that the choice of activation function has a less consistent effect than the choice of training algorithm. When we performed experiments with different kinds of task pairs, we found that the ranking of the activation functions is very problem dependent. For example, logistic sigmoid is the worst under some conditions but the best under other conditions. This suggests that one should always cross-validate the choice of activation function, as long as it is computationally feasible. We also reject the idea that hard LWTA is particular resistant to catastrophic forgetting in general, or that it makes the standard SGD training algorithm more resistant to catastrophic forgetting. For example, when training with SGD on the input reformatting task pair, hard LWTA’s possibilities frontier is worse than all activation functions except sigmoid for most points along the curve. On the similar task pair, LWTA with SGD is the worst of all eight methods we considered, in terms of best performance on the new task, best performance on the old task, and in terms of attaining points close to the origin of the possibilities frontier plot. However, hard LWTA does perform the best in some circumstances (it has the best performance on the new task for the dissimilar task pair ). This suggests that it is worth including hard LWTA as one of many activation functions in a hyperparameter search. LWTA is however never the leftmost point in any of our three task pairs, so it is probably only useful in sequential task settings where forgetting is an issue. ",
887
+ "bbox": [
888
+ 501,
889
+ 789,
890
+ 883,
891
+ 895
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "",
898
+ "bbox": [
899
+ 89,
900
+ 87,
901
+ 472,
902
+ 431
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "When computational resources are too limited to experiment with multiple activation functions, we recommend using the maxout activation function trained with dropout. This is the only method that appears on the lower-left frontier of the performance tradeoff plots for all three task pairs we considered. ",
909
+ "bbox": [
910
+ 89,
911
+ 440,
912
+ 472,
913
+ 529
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Acknowledgments ",
920
+ "text_level": 1,
921
+ "bbox": [
922
+ 91,
923
+ 546,
924
+ 243,
925
+ 559
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "We would like to thank the developers of Theano (Bergstra et al., 2010; Bastien et al., 2012), Pylearn2 (Goodfellow et al., 2013a). We would also like to thank NSERC, Compute Canada, and Calcul Qu´ebec for providing computational resources. Ian Goodfellow is supported by the 2013 Google Fellowship in Deep Learning. ",
932
+ "bbox": [
933
+ 89,
934
+ 569,
935
+ 472,
936
+ 674
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "References ",
943
+ "text_level": 1,
944
+ "bbox": [
945
+ 89,
946
+ 694,
947
+ 192,
948
+ 710
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Bastien, Fr´ed´eric, Lamblin, Pascal, Pascanu, Razvan, Bergstra, James, Goodfellow, Ian J., Bergeron, Arnaud, Bouchard, Nicolas, and Bengio, Yoshua. Theano: new features and speed improvements. Deep Learning and Unsupervised Feature Learning NIPS 2012 Workshop, 2012. ",
955
+ "bbox": [
956
+ 89,
957
+ 718,
958
+ 472,
959
+ 808
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Bergstra, James and Bengio, Yoshua. Random search for hyper-parameter optimization. Journal of Machine Learning Research, 13:281–305, February 2012. ",
966
+ "bbox": [
967
+ 88,
968
+ 820,
969
+ 472,
970
+ 878
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Bergstra, James, Breuleux, Olivier, Bastien, Fr´ed´eric, ",
977
+ "bbox": [
978
+ 88,
979
+ 890,
980
+ 470,
981
+ 905
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Lamblin, Pascal, Pascanu, Razvan, Desjardins, Guillaume, Turian, Joseph, Warde-Farley, David, and Bengio, Yoshua. Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy), June 2010. Oral Presentation. ",
988
+ "bbox": [
989
+ 516,
990
+ 85,
991
+ 883,
992
+ 174
993
+ ],
994
+ "page_idx": 7
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Blitzer, John, Dredze, Mark, and Pereira, Fernando. Biographies, bollywood, boom-boxes and blenders: Domain adaptation for sentiment classification. In ACL ’07, pp. 440–447, 2007. ",
999
+ "bbox": [
1000
+ 500,
1001
+ 190,
1002
+ 883,
1003
+ 250
1004
+ ],
1005
+ "page_idx": 7
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Glorot, Xavier, Bordes, Antoine, and Bengio, Yoshua. Deep sparse rectifier neural networks. In JMLR W&CP: Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics (AISTATS 2011), April 2011a. ",
1010
+ "bbox": [
1011
+ 501,
1012
+ 263,
1013
+ 885,
1014
+ 338
1015
+ ],
1016
+ "page_idx": 7
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Glorot, Xavier, Bordes, Antoine, and Bengio, Yoshua. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of theTwenty-eight International Conference on Machine Learning (ICML’11), volume 27, pp. 97–110, June 2011b. ",
1021
+ "bbox": [
1022
+ 501,
1023
+ 353,
1024
+ 883,
1025
+ 443
1026
+ ],
1027
+ "page_idx": 7
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Goodfellow, Ian J., Warde-Farley, David, Lamblin, Pascal, Dumoulin, Vincent, Mirza, Mehdi, Pascanu, Razvan, Bergstra, James, Bastien, Fr´ed´eric, and Bengio, Yoshua. Pylearn2: a machine learning research library. arXiv preprint arXiv:1308.4214, 2013a. ",
1032
+ "bbox": [
1033
+ 500,
1034
+ 458,
1035
+ 883,
1036
+ 546
1037
+ ],
1038
+ "page_idx": 7
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Goodfellow, Ian J., Warde-Farley, David, Mirza, Mehdi, Courville, Aaron, and Bengio, Yoshua. Maxout networks. In Dasgupta, Sanjoy and McAllester, David (eds.), Proceedings of the 30th International Conference on Machine Learning (ICML’13), pp. 13191327. ACM, 2013b. URL http://icml.cc/ 2013/. ",
1043
+ "bbox": [
1044
+ 500,
1045
+ 563,
1046
+ 883,
1047
+ 666
1048
+ ],
1049
+ "page_idx": 7
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Hinton, Geoffrey E., Srivastava, Nitish, Krizhevsky, Alex, Sutskever, Ilya, and Salakhutdinov, Ruslan. Improving neural networks by preventing coadaptation of feature detectors. Technical report, arXiv:1207.0580, 2012. ",
1054
+ "bbox": [
1055
+ 500,
1056
+ 681,
1057
+ 883,
1058
+ 756
1059
+ ],
1060
+ "page_idx": 7
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Jarrett, Kevin, Kavukcuoglu, Koray, Ranzato, Marc’Aurelio, and LeCun, Yann. What is the best multi-stage architecture for object recognition? In Proc. International Conference on Computer Vision (ICCV’09), pp. 2146–2153. IEEE, 2009. ",
1065
+ "bbox": [
1066
+ 501,
1067
+ 771,
1068
+ 883,
1069
+ 845
1070
+ ],
1071
+ "page_idx": 7
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Martens, James and Sutskever, Ilya. Learning recurrent neural networks with Hessian-free optimization. In Proc. ICML’2011. ACM, 2011. ",
1076
+ "bbox": [
1077
+ 500,
1078
+ 861,
1079
+ 883,
1080
+ 905
1081
+ ],
1082
+ "page_idx": 7
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "McClelland, J. L., McNaughton, B. L., and O’Reilly, R. C. Why there are complementary learning systems in the hippocampus and neocortex: Insights from the successes and failures of connectionist models of learning and memory. Psychological Review, 102:419–457, 1995. ",
1087
+ "bbox": [
1088
+ 88,
1089
+ 85,
1090
+ 472,
1091
+ 174
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "McClelland, James L. ",
1098
+ "bbox": [
1099
+ 89,
1100
+ 185,
1101
+ 243,
1102
+ 199
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "McCloskey, M. and Cohen, N. J. Catastrophic interference in connectionist networks: The sequential learning problem. In Bower, G. H. (ed.), The Psychology of Learning and Motivation, Vol. 24, pp. 109–164. Academic Press, San Diego, CA, 1989. ",
1109
+ "bbox": [
1110
+ 88,
1111
+ 210,
1112
+ 472,
1113
+ 285
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Ratcliff, R. Connectionist models of recognition memory: constraints imposed by learning and forgetting functions. Psychological review, 97(2):285–308, April 1990. ISSN 0033-295X. URL http://view. ncbi.nlm.nih.gov/pubmed/2186426. ",
1120
+ "bbox": [
1121
+ 88,
1122
+ 296,
1123
+ 470,
1124
+ 371
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Srebro, Nathan and Shraibman, Adi. Rank, tracenorm and max-norm. In Proceedings of the 18th Annual Conference on Learning Theory, pp. 545– 560. Springer-Verlag, 2005. ",
1131
+ "bbox": [
1132
+ 86,
1133
+ 382,
1134
+ 473,
1135
+ 443
1136
+ ],
1137
+ "page_idx": 8
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Srivastava, Nitish. Improving neural networks with dropout. Master’s thesis, U. Toronto, 2013. ",
1142
+ "bbox": [
1143
+ 88,
1144
+ 452,
1145
+ 472,
1146
+ 481
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Srivastava, Rupesh K, Masci, Jonathan, Kazerounian, Sohrob, Gomez, Faustino, and Schmidhuber, J¨urgen. Compete to compute. In Burges, C.J.C., Bottou, L., Welling, M., Ghahramani, Z., and Weinberger, K.Q. (eds.), Advances in Neural Information Processing Systems 26, pp. 2310–2318. 2013. URL http://media.nips.cc/nipsbooks/ nipspapers/paper_files/nips26/1109.pdf. ",
1153
+ "bbox": [
1154
+ 88,
1155
+ 492,
1156
+ 473,
1157
+ 613
1158
+ ],
1159
+ "page_idx": 8
1160
+ }
1161
+ ]
parse/train/oXSw7laxwUpln/oXSw7laxwUpln_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/oXSw7laxwUpln/oXSw7laxwUpln_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1ZdKJ-0W/r1ZdKJ-0W.md ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEP GAUSSIAN EMBEDDING OF GRAPHS: UNSUPERVISED INDUCTIVE LEARNING VIA RANKING
2
+
3
+ Aleksandar Bojchevski, Stephan Gunnemann ¨ Technical University of Munich, Germany {a.bojchevski,guennemann}@in.tum.de
4
+
5
+ # ABSTRACT
6
+
7
+ Methods that learn representations of nodes in a graph play a critical role in network analysis since they enable many downstream learning tasks. We propose Graph2Gauss – an approach that can efficiently learn versatile node embeddings on large scale (attributed) graphs that show strong performance on tasks such as link prediction and node classification. Unlike most approaches that represent nodes as point vectors in a low-dimensional continuous space, we embed each node as a Gaussian distribution, allowing us to capture uncertainty about the representation. Furthermore, we propose an unsupervised method that handles inductive learning scenarios and is applicable to different types of graphs: plain/attributed, directed/undirected. By leveraging both the network structure and the associated node attributes, we are able to generalize to unseen nodes without additional training. To learn the embeddings we adopt a personalized ranking formulation w.r.t. the node distances that exploits the natural ordering of the nodes imposed by the network structure. Experiments on real world networks demonstrate the high performance of our approach, outperforming state-of-the-art network embedding methods on several different tasks. Additionally, we demonstrate the benefits of modeling uncertainty – by analyzing it we can estimate neighborhood diversity and detect the intrinsic latent dimensionality of a graph.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Graphs are a natural representation for a wide variety of real-life data, from social and rating networks (Facebook, Amazon), to gene interactions and citation networks (BioGRID, arXiv). Node embeddings are a powerful and increasingly popular approach to analyze such data (Cai et al., 2017). By operating in the embedding space, one can employ proved learning techniques and bypass the difficulty of incorporating the complex node interactions. Tasks such as link prediction, node classification, community detection, and visualization all greatly benefit from these latent node representations. Furthermore, for attributed graphs by leveraging both sources of information (network structure and attributes) one is able to learn more useful representations compared to approaches that only consider the graph (Yang et al., 2015; Pan et al., 2016; Ganguly & Pudi, 2017).
12
+
13
+ All existing (attributed) graph embedding approaches represent each node by a single point in a low-dimensional continuous vector space. Representing the nodes simply as points, however, has a crucial limitation: we do not have information about the uncertainty of that representation. Yet uncertainty is inherent when describing a node in a complex graph by a single point only. Imagine a node for which the different sources of information are conflicting with each other, e.g. pointing to different communities or even revealing contradicting underlying patterns. Such discrepancy should be reflected in the uncertainty of its embedding. As a solution to this problem, we introduce a novel embedding approach that represents nodes as Gaussian distributions: each node becomes a full distribution rather than a single point. Thereby, we capture uncertainty about its representation.
14
+
15
+ To effectively capture the non-i.i.d. nature of the data arising from the complex interactions between the nodes, we further propose a novel unsupervised personalized ranking formulation to learn the embeddings. Intuitively, from the point of view of a single node, we want nodes in its immediate neighborhood to be closest in the embedding space, while nodes multiple hops away should become increasingly more distant. This ordering between the nodes imposed by the network structure w.r.t the distances between their embeddings naturally leads to our ranking formulation. Taking into account this natural ranking from each node’s point of view, we learn more powerful embeddings since we incorporate information about the network structure beyond first and second order proximity.
16
+
17
+ Furthermore, when node attributes (e.g. text) are available our method is able to leverage them to easily generate embeddings for previously unseen nodes without additional training. In other words, Graph2Gauss is inductive, which is a significant benefit over existing methods that are inherently transductive and do not naturally generalize to unseen nodes. This desirable inductive property comes from the fact that we are learning an encoder that maps the nodes’ attributes to embeddings.
18
+
19
+ The main contributions of our approach are summarized as follows:
20
+
21
+ a) We embed nodes as Gaussian distributions allowing us to capture uncertainty.
22
+ b) Our unsupervised personalized ranking formulation exploits the natural ordering of the nodes capturing the network structure at multiple scales.
23
+ c) We propose an inductive method that generalizes to unseen nodes and is applicable to different types of graphs: plain/attributed, directed/undirected.
24
+
25
+ # 2 RELATED WORK
26
+
27
+ The focus of this paper is on unsupervised learning of node embeddings for which many different approaches have been proposed. For a comprehensive recent survey see Cai et al. (2017), Hamilton et al. (2017), or Goyal & Ferrara (2017). Approaches such as DeepWalk and node2vec (Perozzi et al., 2014; Grover & Leskovec, 2016) look at plain graphs and learn an embedding based on random walks by extending or adapting the Skip-Gram (Mikolov et al., 2013) architecture. LINE (Tang et al., 2015b) uses first- and second-order proximity and trains the embedding via negative sampling. SDNE (Wang et al., 2016) similarly has a component that preserves second-order proximity and exploits first-order proximity to refine the representations. GraRep (Cao et al., 2015) is a factorization based method that considers local and global structural information.
28
+
29
+ Tri-Party Deep Network Representation (TRIDNR) (Pan et al., 2016) considers node attributes, network structure and potentially node labels. CENE (Sun et al., 2016) similarly to Ganguly & Pudi (2017) treats the attributes as special kinds of nodes and learns embeddings on the augmented network. Text-Associated DeepWalk (TADW) (Yang et al., 2015) performs low-rank matrix factorization considering graph structure and text features. Heterogeneous networks are consider in (Tang et al., 2015a; Chang et al., 2015), while Huang et al. similarly to Pan et al. (2016) considers labels. GraphSAGE (Hamilton et al., 2017) is an inductive method that generates embeddings by sampling and aggregating attributes from a nodes local neighborhood and requires the edges of the new nodes.
30
+
31
+ Graph convolutional networks are another family of approaches that adapt conventional CNNs to graph data (Kipf & Welling, 2016a; Defferrard et al., 2016; Henaff et al., 2015; Monti et al., 2016; Niepert et al., 2016; Pham et al., 2017). They utilize the graph Laplacian and the spectral definition of a convolution and boil down to some form of aggregation over neighbors such as averaging. They can be thought of as implicitly learning an embedding, e.g. by taking the output of the last layer before the supervised component. See Monti et al. (2016) for an overview. In contrast to this paper, most of these methods are (semi-)supervised. The graph variational autoencoder (GAE) (Kipf & Welling, 2016b) is a notable exception that learns node embeddings in an unsupervised manner.
32
+
33
+ Few approaches consider the idea of learning an embedding that is a distribution. Vilnis & McCallum (2014) are the first to learn Gaussian word embeddings to capture uncertainty. Closest to our work, He et al. (2015) represent knowledge graphs and Dos Santos et al. (2016) study heterogeneous graphs for node classification. Both approaches are not applicable for the context of unsupervised learning of (attributed) graphs that we are interested in. The method in He et al. (2015) learns an embedding for each component of the triplets (head, tail, relation) in the knowledge graph. Note that we cannot naively employ this method by considering a single relation ”has an edge” and a single entity ”node”. Since their approach considers similarity between entities and relations, all nodes would be trivially similar to the single relation. Considering the semi-supervised approach proposed in Dos Santos et al. (2016), we cannot simply ”turn off” the supervised component to adapt their method for unsupervised learning, since given the defined loss we would trivially map all nodes to the same Gaussian. Additionally, both of these approaches do not consider node attributes.
34
+
35
+ In this section we introduce our method Graph2Gauss (G2G) and detail how both the attributes and the network structure influence the learning of node representations. The embedding is carried out in two steps: (i) the node attributes are passed through a non-linear transformation via a deep neural network (encoder) and yield the parameters associated with the node’s embedding distribution; (ii) we formulate an unsupervised loss function that incorporates the natural ranking of the nodes as given by the network structure w.r.t. a dissimilarity measure on the embedding distributions.
36
+
37
+ Problem definition. Let $G = \left( \mathbf { A } , \mathbf { X } \right)$ be a directed attributed graph, where $\mathbf { A } \in \mathbb { R } ^ { N \times N }$ is an adjacency matrix representing the edges between $N$ nodes and $\breve { \mathbf { X } } \in \mathbb { R } ^ { N \times D }$ collects the attribute information for each node where $\mathbf { x } _ { i }$ is a $D$ dimensional attribute vector of the $i ^ { t h }$ node.1 $V$ denotes the set of all nodes. We aim to find a lower-dimensional Gaussian distribution embedding $\mathbf { h } _ { i } \ =$ $\textstyle { \mathcal { N } } ( \mu _ { i } , \Sigma _ { i } )$ , $\mu _ { i } \in \mathbb { R } ^ { L } , \Sigma _ { i } \in \mathbb { R } ^ { L \times L }$ with $L \ll N , D$ , such that nodes similar w.r.t. attributes and network structure are also similar in the embedding space given a dissimilarity measure $\Delta ( \mathbf { h } _ { i } , \mathbf { h } _ { j } )$ . In Fig.5(a) for example we show nodes that are embedded as two dimensional Gaussians.
38
+
39
+ # 3.1 NETWORK STRUCTURE REPRESENTATION VIA PERSONALIZED RANKING
40
+
41
+ To capture the structural information of the network in the embedding space, we propose a personalized ranking approach. That is, locally per node $i$ we impose a ranking of all remaining nodes w.r.t. their distance to node $i$ in the embedding space. More precisely, in this paper we exploit the $k$ -hop neighborhoods of each node. Given some anchor node $i$ , we define ${ \cal N } _ { i k } = \{ \bar { j } \in V | i \neq j , \operatorname* { m i n } ( s p ( i , j ) , K ) = k \}$ to be the set of nodes who are exactly $k$ hops away from node $i$ , where $V$ is the set of all nodes, $K$ is a hyper-parameter denoting the maximum distance we are wiling to consider, and $s p ( i , j )$ returns either the length of the shortest path starting at node $i$ and ending in node $j$ or $\infty$ if node $j$ is not reachable.
42
+
43
+ Intuitively, we want all nodes belonging to the 1-hop neighborhood of $i$ to be closer to $i$ w.r.t. their embedding, compared to the all nodes in its 2-hop neighborhood, which in turn are closer than the nodes in its 3-hop neighborhood and so on up to $K$ . Thus, the ranking that we want to ensure from the perspective of node $i$ is
44
+
45
+ $$
46
+ \Delta ( \mathbf { h } _ { i } , \mathbf { h } _ { k _ { 1 } } ) < \Delta ( \mathbf { h } _ { i } , \mathbf { h } _ { k _ { 2 } } ) < \cdots < \Delta ( \mathbf { h } _ { i } , \mathbf { h } _ { k _ { K } } ) \quad \forall k _ { 1 } \in N _ { i 1 } , \forall k _ { 2 } \in N _ { i 2 } , \dots , \forall k _ { K } \in N _ { i K }
47
+ $$
48
+
49
+ or equivalently, we aim to satisfy the following pairwise constraints
50
+
51
+ $$
52
+ \Delta ( { \bf h } _ { i } , { \bf h } _ { j } ) < \Delta ( { \bf h } _ { i } , { \bf h } _ { j ^ { \prime } } ) , \forall i \in V , \forall j \in N _ { i k } , \forall j ^ { \prime } \in N _ { i k ^ { \prime } } , \forall k < k ^ { \prime }
53
+ $$
54
+
55
+ Going beyond mere first-order and second-order proximity this enables us to capture the network structure at multiple scales incorporating local and global structure.
56
+
57
+ Dissimilarity measure. To solve the above ranking task we have to define a suitable dissimilarity measure between the latent representation of two nodes. Since our latent representations are distributions, similarly to Dos Santos et al. (2016) and He et al. (2015) we employ the asymmetric KL divergence. This gives the additional benefit of handling directed graphs in a sound way. More specifically, given the latent Gaussian distribution representation of two nodes $\mathbf { h } _ { i } , \mathbf { h } _ { j }$ we define
58
+
59
+ $$
60
+ \Delta ( { \bf h } _ { i } , { \bf h } _ { j } ) = D _ { K L } ( N _ { j } | | \mathcal { N } _ { i } ) = \frac { 1 } { 2 } \bigg [ t r ( \Sigma _ { i } ^ { - 1 } \Sigma _ { j } ) + ( \mu _ { i } - \mu _ { j } ) ^ { T } \Sigma _ { i } ^ { - 1 } ( \mu _ { i } - \mu _ { j } ) - L - l o g \frac { d e t ( \Sigma _ { j } ) } { d e t ( \Sigma _ { i } ) } \bigg ]
61
+ $$
62
+
63
+ Here we use the notation $\mu _ { i } , \Sigma _ { i }$ to denote the outputs of some functions $\mu _ { \boldsymbol { \theta } } ( \mathbf { x } _ { i } )$ and $\Sigma _ { \theta } ( \mathbf { x } _ { i } )$ applied to the attributes $\mathbf { x } _ { i }$ of node $i$ and $t r ( . )$ denotes the trace of a matrix. The asymmetric KL divergence also applies to the case of an undirected graph by simply processing both directions of the edge. We could alternatively use a symmetric dissimilarity measure such as the Jensen-Shannon divergence or the expected likelihood (probability product kernel).
64
+
65
+ # 3.2 DEEP ENCODER
66
+
67
+ The functions $\mu _ { \boldsymbol { \theta } } ( \mathbf { x } _ { i } )$ and $\Sigma _ { \theta } ( \mathbf { x } _ { i } )$ are deep feed-forward non-linear neural networks parametrized by $\theta$ . It is important to note that these parameters are shared across instances and thus enjoy statistical strength benefits. Additionally, we design $\mu _ { \boldsymbol { \theta } } ( \mathbf { x } _ { i } )$ and $\Sigma _ { \theta } ( \mathbf { x } _ { i } )$ such that they share parameters as well. More specifically, a deep encoder $f _ { \theta } ( \mathbf { x } _ { i } )$ processes the node’s attributes and outputs an intermediate hidden representation, which is then in turn used to output $\mu _ { i }$ and $\Sigma _ { i }$ in the final layer of the architecture. We focus on diagonal covariance matrices.2 The mapping from the nodes’ attributes to their embedding via the deep encoder is precisely what enables the inductiveness of Graph2Gauss.
68
+
69
+ # 3.3 LEARNING VIA ENERGY-BASED LOSS
70
+
71
+ Since it is intractable to find a solution that satisfies all of the pairwise constraints defined in Sec. 3.1 we turn to an energy based learning approach. The idea is to define an objective function that penalizes ranking errors given the energy of the pairs. More specifically, denoting the KL divergence between two nodes as the respective energy, $E _ { i j } = D _ { K L } ( \mathcal { N } _ { j } | | \mathcal { N } _ { i } )$ , we define the following loss to be optimized
72
+
73
+ $$
74
+ \mathcal { L } = \sum _ { i } \sum _ { k < l } \sum _ { j _ { k } \in N _ { i k } } \sum _ { j _ { l } \in N _ { i l } } \left( E _ { i j _ { k } } { ^ { 2 } } + \exp ^ { - E _ { i j _ { l } } } \right) = \sum _ { ( i , j _ { k } , j _ { l } ) \in \mathcal { D } _ { t } } \left( E _ { i j _ { k } } { ^ { 2 } } + \exp ^ { - E _ { i j _ { l } } } \right)
75
+ $$
76
+
77
+ where $\mathcal { D } _ { t } = \{ ( i , j _ { k } , j _ { l } ) ~ | ~ s p ( i , j _ { k } ) < s p ( i , j _ { l } ) \}$ is the set of all valid triplets. The $E _ { i j _ { k } }$ terms are positive examples whose energy should be lower compared to the energy of the negative examples $E _ { i j _ { l } }$ . Here, we employed the so called square-exponential loss (LeCun et al., 2006) which unlike other typically used losses (e.g. hinge loss) does not have a fixed margin and pushes the energy of the negative terms to infinity with exponentially decreasing force. In our setting, for a given anchor node $i$ , the energy $E _ { i j }$ should be lowest for nodes $j$ in his 1-hop neighborhood, followed by a higher energy for nodes in his 2-hop neighborhood and so on.
78
+
79
+ Finally, we can optimize the parameters $\theta$ of the deep encoder such that the loss $\mathcal { L }$ is minimized and the pairwise rankings are satisfied. Note again that the parameters are shared across all instances, meaning that we share statistical strength and can learn them more easily in comparison to treating the distribution parameters (e.g. $\mu _ { i } , \Sigma _ { i } )$ independently as free variables. The parameters are optimized using Adam (Kingma & Ba, 2014) with a fixed learning rate of 0.001.
80
+
81
+ Sampling strategy. For large graphs, the complete loss is intractable to compute, confirming the need for a stochastic variant. The naive approach would be to sample triplets from $\mathcal { D } _ { t }$ uniformly, i.e. replace $\sum _ { \left( i , j _ { k } , j _ { l } \right) \in { \mathcal { D } } _ { t } }$ with $\mathbb { E } _ { ( i , j _ { k } , j _ { l } ) \sim \mathcal { D } _ { t } }$ in Eq. 1. However, with the naive sampling we are less likely to sample triplets that involve low-degree nodes since high degree nodes occur in many more pairwise constraints. This in turn means that we update the embedding of low-degree nodes less often which is not desirable. Therefore, we propose an alternative node-anchored sampling strategy. Intuitively, for every node $i$ , we randomly sample one other node from each of its neighborhoods (1-hop, 2-hop, etc.) and then optimize over all the corresponding pairwise constraints $( E _ { i 1 } < E _ { i 2 } , \ldots , E _ { i 1 } < E _ { i K } , E _ { i 2 } < E _ { i 3 } , \ldots E _ { i 2 } <$ $\kappa , E _ { i 2 } < E _ { i 3 } , \ldots E _ { i 2 } < E _ { i K } , \ldots , E _ { i K - 1 } < E _ { i K } )$ .
82
+
83
+ Naively applying the node-anchored sampling strategy and optimizing Eq. 1, however, would lead to biased estimates of the gradient. Theorem 1 shows how to adapt the loss such that it is equal in expectation to the original loss under our new sampling strategy. As a consequence, we have unbiased estimates of the gradient using stochastic optimization of the reformulated loss.
84
+
85
+ Theorem 1 For all $i$ , let $( j _ { 1 } , \dots , j _ { K } )$ be independent uniform random samples from the sets $( N _ { i 1 } , \dots , N _ { i K } )$ and $| N _ { i * } |$ the cardinality of each set. Then $\mathcal { L }$ is equal in expectation to
86
+
87
+ $$
88
+ \mathcal { L } _ { s } = \sum _ { i } \mathbb { E } _ { ( j _ { 1 } , \dots , j _ { K } ) \sim ( N _ { i 1 } , \dots , N _ { i K } ) } \left[ \sum _ { k < l } \vert N _ { i k } \vert \cdot \vert N _ { i l } \vert \cdot \left( E _ { i j _ { k } } ^ { \phantom { - } } + \exp ^ { - E _ { i j _ { l } } } \right) \right] = \mathcal { L }
89
+ $$
90
+
91
+ We provide the proof in the appendix. For cases where the number of nodes $N$ is particularly large we can further subsample mini-batches, by selecting anchor nodes $i$ at random. Furthermore, in our experimental study, we analyze the effect of the sampling strategy on convergence, as well as the quality of the stochastic variant w.r.t. the obtained solution and the reached local optima.
92
+
93
+ # 3.4 DISCUSSION
94
+
95
+ Inductive learning. While during learning we need both the network structure (to evaluate the ranking loss) and the attributes, once the learning concludes, the embedding for a node can be obtained solely based on its attributes. This enables our method to easily handle the issue of obtaining representations for new nodes that were not part of the network during training. To do so we simply pass the attributes of the new node through our learned deep encoder. Most approaches cannot handle this issue at all, with a notable exception being SDNE and GraphSAGE (Wang et al., 2016; Hamilton et al., 2017). However, both approaches require the edges of the new node to get the node’s representation, and cannot handle nodes that have no existing connections. In contrast, our method can handle even such nodes, since after the model is learned we rely only on the attribute information.
96
+
97
+ Plain graph embedding. Even though attributed graphs are often found in the real-world, sometimes it is desirable to analyze plain graphs. As already discussed, our method easily handles plain graphs, when the attributes are not available, by using one-hot encoding of the nodes instead. As we later show in the experiments we are able to learn useful representations in this scenario, even outperforming some attributed approaches. Naturally, in this case we lose the inductive ability to handle unseen nodes. We compare the one-hot encoding version, termed G2G oh, with our full method G2G that utilizes the attributes, as well as all remaining competitors.
98
+
99
+ Encoder architecture. Depending on the type of the node attributes (e.g. images, text) we could in principle use CNNs/RNNs to process them. We could also easily incorporate any of the proposed graph convolutional layers inheriting their benefits. However, we observe that in practice using simple feed-forward architecture with rectifier units is sufficient, while being much faster and easier to train. Better yet, we observed that Graph2Gauss is not sensitive to the choice of hyperparameters such as number and size of hidden layers. We provide more detailed information and sensible defaults in the appendix.
100
+
101
+ Complexity. The time complexity for computing the original loss is $O ( N ^ { 3 } )$ where $N$ is the number of nodes. Using our node-anchored sampling strategy, the complexity of the stochastic version is $O ( K ^ { 2 } N )$ where $K$ is the maximum distance considered. Since a small value of $K \leq 2$ consistently showed good performance, $K ^ { 2 }$ becomes negligible and thus the complexity is $O ( N )$ , meaning linear in the number of nodes. This coupled with the small number of epochs $T$ needed for convergence $T \leq 2 0 0 0$ for all shown experiments, see e.g. Fig. 3(b)) and an efficient GPU implementation also made our method faster than most competitors in terms of wall-clock time.
102
+
103
+ # 4 EMBEDDING EVALUATION
104
+
105
+ We compare Graph2Gauss with and without considering attributes (G2G, G2G oh) to several competitors namely: TRIDNR and TADW (Pan et al., 2016; Yang et al., 2015) as representatives that consider attributed graphs, GAE (Kipf & Welling, 2016b) as the unsupervised graph convolutional representative, and node2vec (Grover & Leskovec, 2016) as a representative of the random walk based plain graph embeddings. Additionally, we include a strong Logistic Regression baseline that considers only the attributes. As with all other methods we train TRIDNR in a unsupervised manner, however, since it can only process raw text as attributes (rather than e.g. bag-of-words) it is not always applicable. Furthermore, since TADW, and GAE only support undirected graphs we must symmetrize the graph before using them – giving them a substantial advantage, especially in the link prediction task. Moreover, in all experiments if the competing techniques use an $L$ dimensional embedding, G2G’s embedding is actually only half of this dimensionality so that the overall number of ’parameters’ per node (mean vector $^ +$ variance terms of the diagonal $\Sigma _ { i }$ ) matches $L$ .
106
+
107
+ Dataset description. We use several attributed graph datasets. Cora (McCallum et al., 2000) is a well-known citation network labeled based on the paper topic. While most approaches report on a small subset of this dataset we additionally extract from the original data the entire network and name these two datasets CORA $( N = 1 9 7 9 3 , E = 6 5 3 1 1 , D = 8 7 1 0 , K = 7 0 )$ and CORA-ML $( N = 2 9 9 5 , E = 8 4 1 6 , D = 2 8 7 9 , K = 7 )$ respectively. CITESEER $( N = 4 2 3 0 , E = 5 3 5 8 , D =$ $2 7 0 1 , K = 6 )$ (Giles et al., 1998), DBLP (Pan et al., 2016) $( N = 1 7 7 1 6 , E = 1 0 5 7 3 4 , D =$ 1639, $K = 4$ ) and PUBMBED $( N = 1 8 2 3 0 , E = 7 9 6 1 2 , D = 5 0 0 , K = 3 )$ (Sen et al., 2008) are other commonly used citation datasets. We provide all datasets, the source code of G2G, and further supplementary material (https://www.kdd.in.tum. $\mathrm { d e } / \mathrm { g } 2 \mathrm { g } )$ ).
108
+
109
+ # 4.1 LINK PREDICTION
110
+
111
+ Setup. Link prediction is a commonly used task to demonstrate the meaningfulness of the embeddings. To evaluate the performance we hide a set of edges/non-edges from the original graph and train on the resulting graph. Similarly to Kipf & Welling (2016b) and Wang et al. (2016) we create a validation/test set that contains $5 \% / 1 0 \%$ randomly selected edges respectively and equal number of randomly selected non-edges.We used the validation set for hyper-parameter tuning and early stopping and the test set only to report the performance. As by convention we report the area under the ROC curve (AUC) and the average precision (AP) scores for each method. To rank the candidate edges we use the negative energy $- E _ { i j }$ for Graph2Gauss, and the exact same approach as in the respective original methods (e.g. dot product of the embeddings).
112
+
113
+ Performance on real-world datasets. Table 1 shows the performance on the link prediction task for different datasets and embedding size $L = 1 2 8$ . As we can see our method significantly outperforms the competitors across all datasets which is a strong sign that the learned embeddings are useful. Furthermore, even the constrained version of our method G2G oh that does not consider attributes at all outperforms the competitors on some datasets. While GAE achieves comparable performance on some of the datasets their approach doesn’t scale to large graphs. In fact, for graphs beyond $1 5 K$ nodes we had to revert to slow training on the CPU since the data did not fit on the GPU memory (12GB). The simple Logistic Regression baseline showed surprisingly strong performance, even outperforming some of the more complicated methods.
114
+
115
+ Table 1: Link prediction performance for real-world datasets with $L = 1 2 8$
116
+
117
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Cora-ML</td><td colspan="2">Cora</td><td colspan="2">Citeseer</td><td colspan="2">DBLP</td><td colspan="2">Pubmed</td><td colspan="2">Cora-ML Easy</td></tr><tr><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td></tr><tr><td>Logistic Regression</td><td>90.01</td><td>89.75</td><td>86.58</td><td>86.51</td><td>81.70</td><td>79.10</td><td>82.04</td><td>81.91</td><td>90.50</td><td>90.99</td><td>90.28</td><td>90.99</td></tr><tr><td>node2vec(Grover &amp; Leskovec,2016)</td><td>76.80</td><td>75.26</td><td>79.95</td><td>78.98</td><td>83.04</td><td>83.74</td><td>95.42</td><td>95.33</td><td>95.42</td><td>95.33</td><td>93.47</td><td>93.53</td></tr><tr><td>TADW(Yang et al., 2015)</td><td>81.26</td><td>81.34</td><td>76.56</td><td>78.06</td><td>70.14</td><td>72.93</td><td>65.67</td><td>59.85</td><td>62.72</td><td>68.02</td><td>83.53</td><td>82.47</td></tr><tr><td>TRIDNR(Pan et al., 2016)</td><td>84.51</td><td>85.69</td><td>81.61</td><td>81.08</td><td>87.23</td><td>88.87</td><td>92.01</td><td>91.62</td><td>NTA</td><td>NTA</td><td>85.59</td><td>86.16</td></tr><tr><td>GAE(Kipf &amp; Welling,2016b)</td><td>96.65</td><td>96.67</td><td>97.91</td><td>98.07</td><td>92.31</td><td>93.88</td><td>95.78</td><td>96.67</td><td>96.07</td><td>96.12</td><td>95.97</td><td>95.17</td></tr><tr><td>G2G_oh</td><td>96.95</td><td>97.54</td><td>98.41</td><td>98.63</td><td>95.89</td><td>95.78</td><td>98.29</td><td>98.46</td><td>96.75</td><td>96.47</td><td>96.98</td><td>96.42</td></tr><tr><td>G2G</td><td>98.01</td><td>98.03</td><td>98.81</td><td>98.78</td><td>96.09</td><td>96.16</td><td>98.65</td><td>98.78</td><td>97.42</td><td>97.85</td><td>98.03</td><td>98.12</td></tr></table>
118
+
119
+ We also include the performance on the so called ”Cora-ML Easy” dataset, obtained from the CoraML dataset by making it undirected and selecting the nodes in the largest connected component. We see that while node2vec struggles on the original real-world data, it significantly improves in this ”easy” setting. On the contrary, Graph2Gauss handles both settings effortlessly. This demonstrates that Graph2Gauss can be readily applied in realistic scenarios on potentially messy real-world data.
120
+
121
+ Sensitivity analysis. In Figs.1(a) and 1(b) we show the performance w.r.t. the dimensionality of the embedding, averaged over 10 trials. G2G is able to learn useful embeddings with strong performance even for relatively small embedding sizes. Even for the case $L = 2$ , where we embed the points as one dimensional Gaussian distributions $( L = 1 + 1$ for the mean and the sigma of the Gaussian), G2G still outperforms all of the competitors irrespective of their much higher embedding sizes.
122
+
123
+ ![](images/8a932d69c197c1a3e0f8320a4a38a85a80651549fda7644ac92413355fa92960.jpg)
124
+ Figure 1: Link prediction performance for different embedding sizes and percentages of training edges on Cora-ML. G2G outperforms the competitors even for small sizes and percentage of edges.
125
+
126
+ Finally, we evaluate the performance w.r.t. the percentage of training edges varying from $1 5 \%$ to $8 5 \%$ , averaged over 10 trials. We can see in Figs.1(c) and 1(d) Graph2Gauss strongly outperforms the competitors, especially for small number of training edges. The dashed line indicates the percentage above which we can guarantee to have every node appear at least once in the training set.3 The performance below that line is then indicative of the performance in the inductive setting. Since, the structure only methods are unable to compute meaningful embeddings for unseen nodes we cannot report their performance below the dashed line.
127
+
128
+ # 4.2 NODE CLASSIFICATION
129
+
130
+ Setup. Node classification is another task commonly used to evaluate the strength of the learned embeddings – after they have been trained in an unsupervised manner. We evaluate the node classification performance for three datasets (Cora-ML, Citeseer and DBLP) that have ground-truth classes. First, we train the embeddings on the entire training data in an unsupervised manner (excluding the class labels). Then, following Perozzi et al. (2014) we use varying percentage of randomly selected nodes and their learned embeddings along with their labels as training data for a logistic regression, while evaluating the performance on the rest of the nodes. We also optimize the regularization strength for each method/dataset via cross-validation. We show results averaged over 10 trials.
131
+
132
+ ![](images/9dfe41f5f0f942d2393078c92264f4f3c1bf45a3aee7e8643ba84bccb167a5d8.jpg)
133
+ Figure 2: Classification performance comparison - both G2G and G2G oh perform strongly.
134
+
135
+ Performance on real-world datasets. Figs. 2 compares the methods w.r.t. the classification performance for different percentage of labeled nodes. We can see that our method clearly outperforms the competitors. Again, the constrained version of our method that does not consider attributes is able to outperform some of the competing approaches. Additionally, we can conclude that in general our method shows stable performance regardless of the percentage of labeled nodes. This is a highly desirable property since it shows that should we need to perform classification it is sufficient to train only on a small percentage of labeled nodes.
136
+
137
+ # 4.3 SAMPLING STRATEGY
138
+
139
+ Figure 3(a) shows the validation set ROC score for the link prediction task w.r.t. the number of triplets $( i , j _ { k } , j _ { l } )$ seen. We can see that both sampling strategies are able to reach the same performance as the full loss in significantly fewer $( < 4 . 2 \%$ ) number of pairs seen (note the log scale). It also shows that the naive random sampling converges slower than the node-anchored sampling strategy. Figures 3(b) gives us some insight as to why – our node-anchored sampling strategy achieves significantly lower loss. Finally, Fig. 3(c) shows that our node-anchored sampling strategy has lower variance of the gradient updates, which is another contributor to faster convergence.
140
+
141
+ ![](images/64ef383bd0bca1f97a6bdaad086b8de2a61848e9e23a02c3696b4d53b541a631.jpg)
142
+ Figure 3: Our sampling strategy converges significantly faster than the full loss, while maintaining good performance. It also achieves better loss and has lower variance compared to naive sampling.
143
+
144
+ Learning an embedding that is a distribution rather than a point-vector allows us to capture uncertainty about the representation. We perform several experiments to evaluate the benefit of modeling uncertainty. Figure 4(a) shows that the learned uncertainty is correlated with neighborhood diversity, where for a node $i$ we define diversity as the number of distinct classes among the nodes in its $p$ -hop neighborhood $\textstyle ( \bigcup _ { 1 \leq k \leq p } N _ { i k } )$ . Since the uncertainty for a node $i$ is an $L$ -dimensional vector (diagonal covariance) we show the average across the dimensions. In line with our intuition, nodes with less diverse neighborhood have significantly lower variance compare to more diverse nodes whose immediate neighbors belong to many different classes, thus making their embedding more uncertain. The figure shows the result on the Cora dataset for $p = 3$ hop neighborhood. Similar results hold for the other datasets. This result is particularly impressive given the fact that we learn our embedding in a completely unsupervised manner, yet the uncertainty was able to capture the diversity w.r.t. the class labels of the neighbors of a node, which were never seen during training.
145
+
146
+ ![](images/5c593abf4a0b86b0814e86b69cc0ee34f42469e0bce9d3a752b172aed8c32348.jpg)
147
+ Figure 4: The benefit of modeling the uncertainty of the nodes.
148
+
149
+ Figure 4(b) shows that using the learned uncertainty we are able to detect the intrinsic latent dimensionality of the graph. Each line represents the average variance (over all nodes) for a given dimension $l$ for each epoch. We can see that as the training progresses past the stopping criterion (link prediction performance on validation set) and we start to overfit, some dimensions exhibit a relatively stable average variance, while for others the variance increases with each epoch. By creating a simply rule that monitors the average change of the variance over time we were able to automatically detect these relevant latent dimensions (colored in red). This result holds for multiple datasets and is shown here for Cora-ML. Interestingly, the number of detected latent dimensions (6) is close to the number of ground-truth communities (7).
150
+
151
+ The next obvious question is then how does the performance change if we remove these highly uncertain dimensions whose variance keeps increasing with training. Figure 4(c) answers exactly that. By removing progressively more and more dimensions, starting with the most uncertain first we see imperceptibly small change in performance. Only once we start removing the true latent dimension we see a noticeable degradation in performance. The dashed lines show the performance if we re-train the model, setting $L = 6$ , equal to the detected number of latent dimensions.
152
+
153
+ As a last study of uncertainty, in a use case analysis, the nodes with high uncertainty reveal additional interesting patterns. For example in the Cora dataset, one of the highly uncertain nodes was the paper ”The use of word shape information for cursive script recognition” by R.J. Whitrow – surprisingly, all citations (edges) of that paper (as extracted from the dataset) were towards other papers by the same author.
154
+
155
+ # 4.5 INDUCTIVE LEARNING: GENERALIZATION TO UNSEEN NODES
156
+
157
+ As discussed in Sec. 3.4 G2G is able to learn embeddings even for nodes that were not part of the networks structure during training time. Thus, it not only supports transductive but also inductive learning. To evaluate how our approach generalizes to unseen nodes we perform the following experiment: (i) first we completely hide $1 0 \% / 2 5 \%$ of nodes from the network at random; (ii) we proceed to learn the node embeddings for the rest of the nodes; (iii) after learning is complete we pass the (new) unseen test nodes through our deep encoder to obtain their embedding; (iv) we evaluate by calculating the link prediction performance (AUC and AP scores) using all their edges and same number of non-edges.
158
+
159
+ Table 2: Inductive link prediction performance.
160
+
161
+ <table><tr><td rowspan="2">Method (% hidden)</td><td colspan="2">Cora-ML</td><td colspan="2">Cora</td><td colspan="2">Citeseer</td><td colspan="2">DBLP</td><td colspan="2">Pubmed</td></tr><tr><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td></tr><tr><td>Log.Reg.10%</td><td>75.95</td><td>78.62</td><td>78.53</td><td>78.70</td><td>73.09</td><td>72.54</td><td>67.55</td><td>69.55</td><td>86.83</td><td>87.34</td></tr><tr><td>G2G 10%</td><td>90.93</td><td>89.37</td><td>94.18</td><td>93.40</td><td>88.58</td><td>88.31</td><td>85.06</td><td>83.75</td><td>92.22</td><td>90.45</td></tr><tr><td>G2G 25%</td><td>87.83</td><td>86.31</td><td>92.96</td><td>92.31</td><td>87.30</td><td>86.61</td><td>83.09</td><td>81.49</td><td>90.20</td><td>88.28</td></tr></table>
162
+
163
+ As the results in Table 2 clearly show, since we are utilizing the rich attribute information, we are able to achieve strong performance for unseen nodes. This is true even when a quarter of the nodes are missing. This makes our method applicable in the context of large graphs where training on the entire network is not feasible. Note that SDNE (Wang et al., 2016) and GraphSAGE (Hamilton et al., 2017) cannot be applied in this scenario, since they also require the edges for the unseen nodes to produce an embedding. Graph2Gauss is the only inductive method that can obtain embeddings for a node based only on the node attributes.
164
+
165
+ # 4.6 NETWORK VISUALIZATION
166
+
167
+ One key application of node embedding approaches is creating meaningful visualizations of a network in 2D/3D that support tasks such as data exploration and understanding. Following Tang et al. (2015b) and Pan et al. (2016) we first learn a lower-dimensional $L = 1 2 8$ embedding for each node and then map those representations in 2D with TSNE (Maaten & Hinton, 2008). Additionally, since our method is able to learn useful representations even in low dimensions we embed the nodes as 2D Gaussians and visualize the resulting embedding. This has the added benefit of visualizing the nodes’ uncertainty as well. Fig. 5 shows the visualization for the Cora-ML dataset. We see that Graph2Gauss learns an embedding in which the different classes are clearly separated.
168
+
169
+ ![](images/e1a164d9a7672be7d5d2534731493901583feced1417dc1496cf52360ff653f2.jpg)
170
+ Figure 5: 2D visualization of the embeddings on the Cora-ML dataset. Color indicates the class label not used during training. Best viewed on screen.
171
+
172
+ # 5 CONCLUSION
173
+
174
+ We proposed Graph2Gauss – the first unsupervised approach that represents nodes in attributed graphs as Gaussian distributions and is therefore able to capture uncertainty. Analyzing the uncertainty reveals the latent dimensionality of a graph and gives insight into the neighborhood diversity of a node. Since we exploit the attribute information of the nodes we can effortlessly generalize to unseen nodes, enabling inductive reasoning. Graph2Gauss leverages the natural ordering of the nodes w.r.t. their neighborhoods via a personalized ranking formulation. The strength of the learned embeddings has been demonstrated on several tasks – specifically achieving high link prediction performance even in the case of low dimensional embeddings. As future work we aim to study personalized rankings beyond the ones imposed by the shortest path distance.
175
+
176
+ # ACKNOWLEDGMENTS
177
+
178
+ This research was supported by the German Research Foundation, Emmy Noether grant GU 1409/2- 1, and by the Technical University of Munich - Institute for Advanced Study, funded by the German Excellence Initiative and the European Union Seventh Framework Programme under grant agreement no 291763, co-funded by the European Union.
179
+
180
+ # REFERENCES
181
+
182
+ Hongyun Cai, Vincent W Zheng, and Kevin Chen-Chuan Chang. A comprehensive survey of graph embedding: Problems, techniques and applications. arXiv preprint arXiv:1709.07604, 2017.
183
+
184
+ Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 891–900. ACM, 2015.
185
+
186
+ Shiyu Chang, Wei Han, Jiliang Tang, Guo-Jun Qi, Charu C Aggarwal, and Thomas S Huang. Heterogeneous network embedding via deep architectures. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 119–128. ACM, 2015.
187
+
188
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3837–3845, 2016.
189
+
190
+ Ludovic Dos Santos, Benjamin Piwowarski, and Patrick Gallinari. Multilabel classification on heterogeneous graphs with gaussian embeddings. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 606–622. Springer, 2016.
191
+
192
+ Soumyajit Ganguly and Vikram Pudi. Paper2vec: Combining graph and text information for scientific paper representation. In European Conference on Information Retrieval, pp. 383–395. Springer, 2017.
193
+
194
+ C Lee Giles, Kurt D Bollacker, and Steve Lawrence. Citeseer: An automatic citation indexing system. In Proceedings of the third ACM conference on Digital libraries, pp. 89–98. ACM, 1998.
195
+
196
+ 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.
197
+
198
+ Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. arXiv preprint arXiv:1705.02801, 2017.
199
+
200
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016.
201
+
202
+ W. L. Hamilton, R. Ying, and J. Leskovec. Representation Learning on Graphs: Methods and Applications. ArXiv e-prints, September 2017.
203
+
204
+ William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017.
205
+
206
+ Shizhu He, Kang Liu, Guoliang Ji, and Jun Zhao. Learning to represent knowledge graphs with gaussian embedding. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 623–632. ACM, 2015.
207
+
208
+ Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015.
209
+
210
+ Xiao Huang, Jundong Li, and Xia Hu. Label informed attributed network embedding.
211
+
212
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
213
+
214
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016a.
215
+
216
+ Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016b.
217
+
218
+ Yann LeCun, Sumit Chopra, Raia Hadsell, M Ranzato, and F Huang. A tutorial on energy-based learning. Predicting structured data, 1:0, 2006.
219
+
220
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
221
+
222
+ Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. Automating the construction of internet portals with machine learning. Information Retrieval, 3(2):127–163, 2000.
223
+
224
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
225
+
226
+ Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016.
227
+
228
+ Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In Proceedings of the 33rd annual international conference on machine learning. ACM, 2016.
229
+
230
+ Shirui Pan, Jia Wu, Xingquan Zhu, Chengqi Zhang, and Yang Wang. Tri-party deep network representation. Network, 11(9):12, 2016.
231
+
232
+ Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014.
233
+
234
+ Trang Pham, Truyen Tran, Dinh Q Phung, and Svetha Venkatesh. Column networks for collective classification. In AAAI, pp. 2485–2491, 2017.
235
+
236
+ Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93, 2008.
237
+
238
+ Xiaofei Sun, Jiang Guo, Xiao Ding, and Ting Liu. A general framework for content-enhanced network representation learning. arXiv preprint arXiv:1610.02906, 2016.
239
+
240
+ Jian Tang, Meng Qu, and Qiaozhu Mei. Pte: Predictive text embedding through large-scale heterogeneous text networks. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1165–1174. ACM, 2015a.
241
+
242
+ Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077. ACM, 2015b.
243
+
244
+ Luke Vilnis and Andrew McCallum. Word representations via gaussian embedding. arXiv preprint arXiv:1412.6623, 2014.
245
+
246
+ Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1225–1234. ACM, 2016.
247
+
248
+ Cheng Yang, Zhiyuan Liu, Deli Zhao, Maosong Sun, and Edward Y Chang. Network representation learning with rich text information. In IJCAI, pp. 2111–2117, 2015.
249
+
250
+ # APPENDIX
251
+
252
+ A PROOF OF THEOREM 1
253
+
254
+ To prove Theorem 1 we start with the loss $\mathcal { L } _ { s }$ (Eq. 2), and show that by applying the expectation operator we will obtain the original loss $\mathcal { L }$ (Eq. 1). From there it trivially follows that taking the gradient with respect to $\mathcal { L } _ { s }$ for a set of samples gives us an unbiased estimate of the gradient of $\mathcal { L }$ .
255
+
256
+ First we notice that both $\mathcal { L }$ and $\mathcal { L } _ { s }$ are summing over $i$ , thus it is sufficient to show that the losses are equal in expectation for a single node $i$ . Denoting with $\mathcal { L } _ { s } ^ { ( i ) }$ the loss for a single node $i$ and with $E _ { i , k , l } = E _ { i j _ { k } } { } ^ { 2 } + \exp ^ { - E _ { i j _ { l } } }$ for notational convenience we have:
257
+
258
+ $$
259
+ \begin{array} { r l } & { \| \nabla _ { x } ^ { \bot } \varphi \| _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } = \frac { 1 } { \lambda _ { x } ^ { 2 } } \sum _ { t _ { i } ^ { \prime } \in \mathcal H _ { 1 } } ^ { 1 } \lambda _ { t _ { i } ^ { \prime } } \sum _ { \lambda _ { x } ^ { \prime } } ^ { \lambda _ { \prime } } \lambda _ { t _ { i } ^ { \prime } } \Big | \nabla _ { x } ^ { \bot } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } } \\ & { \quad - \frac { 1 } { \lambda _ { x } ^ { 2 } } \sum _ { t _ { i } ^ { \prime } \in \mathcal H _ { 1 } } \lambda _ { t _ { i } ^ { \prime } } \sum _ { \lambda _ { x } ^ { \prime } } \lambda _ { t _ { i } ^ { \prime } } \Big | \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } \cdot \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } } \\ & { \quad + \frac { 1 } { \lambda _ { x } ^ { 2 } } \sum _ { t _ { i } ^ { \prime } \in \mathcal H _ { 1 } } \lambda _ { t _ { i } ^ { \prime } } \sum _ { \lambda _ { x } ^ { \prime } } \lambda _ { t _ { i } ^ { \prime } } \Big | \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } \cdot \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } \cdot \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } } \\ & { \quad - \frac { 1 } { \lambda _ { x } ^ { 2 } } \sum _ { t _ { i } ^ { \prime } \in \mathcal H _ { 1 } } \lambda _ { t _ { i } ^ { \prime } } \Big | \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } \cdot \nabla _ { x } \varphi \Big | _ { L ^ { 2 } ( \mathcal H _ { 1 } ) } ^ { 2 } } \\ & \quad - \frac { 1 } { \lambda _ { x } ^ { 2 } } \sum _ { t _ { i } ^ { \prime } \in \mathcal H _ { 1 } } \lambda _ { t _ { i } ^ { \prime } } \Big | \nabla _ { x } \varphi \Big | _ L ^ \end{array}
260
+ $$
261
+
262
+ In step (1) we have expanded the sum over $k \ < \ l$ in independent terms. In step (2) we have marginalized the expectation over the variables that do not appear in the expression, e.g. for the term $\mathbb { E } _ { ( j _ { 1 } , . . . , j _ { K } ) \sim ( N _ { i 1 } , . . . , N _ { i K } ) } | N _ { i 1 } | \cdot | N _ { i 2 } | \cdot E _ { i 1 2 }$ we can marginalize over $j _ { p }$ where $p \neq 1$ and $p \neq 2$ since the term doesn’t depend on them. In step (3) we have expanded the expectation term. In step (4) we have substituted $p ( j _ { p } )$ with $\frac { 1 } { | N _ { i j p } | }$ since we are sampling uniformly at random.
263
+
264
+ Since $\mathcal { L } _ { s } ^ { ( i ) }$ is equal to $\mathcal { L } ^ { ( i ) }$ in expectation it follows that $\nabla { \mathcal { L } } _ { s }$ based on a set of samples is an unbiased estimate of $\nabla \mathcal { L }$ .
265
+
266
+ # B IMPLEMENTATION DETAILS
267
+
268
+ Architecture and hyperparameters. We observed that Graph2Gauss is not sensitive to the choice of hyperparameters such as number and size of hidden layers. Better yet, as shown in Sec. 4.4, Graphs2Gauss is also not sensitive to the size of the embedding $L$ . Thus, for a new graph, one can simply pick a relatively large embedding size and if required prune it later similarly to the analysis performed in Fig. 4(c).
269
+
270
+ As a sensible default we recommend an encoder with a single hidden layer of size $s _ { 1 } = 5 1 2$ . More specifically, to obtain the embeddings for a node $i$ we have
271
+
272
+ $$
273
+ \mathbf { h } _ { i } = \mathrm { r e l u } ( \mathbf { X } _ { i } \mathbf { W } + \mathbf { b } ) \qquad \mu _ { i } = \mathbf { h } _ { \mathbf { i } } \mathbf { W } _ { \mu } + \mathbf { b } _ { \mu } \qquad \sigma _ { i } = \mathrm { e l u } ( \mathbf { h } _ { i } \mathbf { W } _ { \Sigma } + \mathbf { b } _ { \Sigma } ) + 1
274
+ $$
275
+
276
+ where $\mathbf { x } _ { i }$ are node attributes, relu and elu are the rectified linear unit and exponential linear unit respectively. In practice, we found that the softplus works equally well as the elu for making sure that $\sigma _ { i }$ are positive and in turn $\Sigma _ { i }$ is positive definite. We used Xavier initialization (Glorot & Bengio, 2010) for the weight matrices $\mathbf { W } \in \mathbb { R } ^ { D \times s _ { 1 } }$ , $\mathbf { b } \in \mathbb { R } ^ { s _ { 1 } }$ , $\mathbf { W } _ { \mu } \in \mathbb { R } ^ { s _ { 1 } \times L / 2 }$ , $\mathbf { b } _ { \pmb { \mu } } \in \mathbb { R } ^ { L / 2 }$ , $\mathbf { W _ { \Sigma } } \in$ $\mathbb { R } ^ { s _ { 1 } \times L / 2 }$ , $\mathbf { b } _ { \pm } \in \mathbb { R } ^ { L / 2 }$ . As discussed in Sec. 3.4, multiple hidden layers, or other architectures such as CNNs/RNNs can also be used based on the specific problem.
277
+
278
+ Unlike other approaches using Gaussian embeddings (Vilnis & McCallum, 2014; He et al., 2015; Dos Santos et al., 2016) we do not explicitly regularize the norm of the means and we do not clip the covariance matrices. Given the self-regularizing nature of the KL divergence this is unnecessary, as was confirmed in our experiments. The parameters are optimized using Adam (Kingma & Ba, 2014) with a fixed learning rate of 0.001 and no learning rate annealing/decay.
279
+
280
+ Edge cover. Some of the methods such as node2vec (Grover & Leskovec, 2016) are not able to produce an embedding for nodes that have not been seen during training. Therefore, it is important to make sure that during the train-validation-test split of the edge set, every node appears at least once in the train set. Random sampling of the edges does not guarantee this, especially when allocating a low percentage of edges in the train set during the split. To guarantee that every node appears at least once in the train set we have to find an edge cover. An edge cover of a graph is a set of edges such that every node of the graph is incident to at least one edge of the set. The minimum edge cover problem is the problem of finding an edge cover of minimum size. The dashed line in Figures 1(c) and 1(d) indicates exactly the size of the minimum edge cover. This condition had to be satisfied for the competing methods, however, since Graph2Gauss is inductive, it does not require that every node is in the train set.
parse/train/r1ZdKJ-0W/r1ZdKJ-0W_content_list.json ADDED
@@ -0,0 +1,1506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DEEP GAUSSIAN EMBEDDING OF GRAPHS: UNSUPERVISED INDUCTIVE LEARNING VIA RANKING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Aleksandar Bojchevski, Stephan Gunnemann ¨ Technical University of Munich, Germany {a.bojchevski,guennemann}@in.tum.de ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 524,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Methods that learn representations of nodes in a graph play a critical role in network analysis since they enable many downstream learning tasks. We propose Graph2Gauss – an approach that can efficiently learn versatile node embeddings on large scale (attributed) graphs that show strong performance on tasks such as link prediction and node classification. Unlike most approaches that represent nodes as point vectors in a low-dimensional continuous space, we embed each node as a Gaussian distribution, allowing us to capture uncertainty about the representation. Furthermore, we propose an unsupervised method that handles inductive learning scenarios and is applicable to different types of graphs: plain/attributed, directed/undirected. By leveraging both the network structure and the associated node attributes, we are able to generalize to unseen nodes without additional training. To learn the embeddings we adopt a personalized ranking formulation w.r.t. the node distances that exploits the natural ordering of the nodes imposed by the network structure. Experiments on real world networks demonstrate the high performance of our approach, outperforming state-of-the-art network embedding methods on several different tasks. Additionally, we demonstrate the benefits of modeling uncertainty – by analyzing it we can estimate neighborhood diversity and detect the intrinsic latent dimensionality of a graph. ",
40
+ "bbox": [
41
+ 233,
42
+ 281,
43
+ 764,
44
+ 530
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 558,
55
+ 336,
56
+ 574
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Graphs are a natural representation for a wide variety of real-life data, from social and rating networks (Facebook, Amazon), to gene interactions and citation networks (BioGRID, arXiv). Node embeddings are a powerful and increasingly popular approach to analyze such data (Cai et al., 2017). By operating in the embedding space, one can employ proved learning techniques and bypass the difficulty of incorporating the complex node interactions. Tasks such as link prediction, node classification, community detection, and visualization all greatly benefit from these latent node representations. Furthermore, for attributed graphs by leveraging both sources of information (network structure and attributes) one is able to learn more useful representations compared to approaches that only consider the graph (Yang et al., 2015; Pan et al., 2016; Ganguly & Pudi, 2017). ",
63
+ "bbox": [
64
+ 174,
65
+ 589,
66
+ 825,
67
+ 715
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "All existing (attributed) graph embedding approaches represent each node by a single point in a low-dimensional continuous vector space. Representing the nodes simply as points, however, has a crucial limitation: we do not have information about the uncertainty of that representation. Yet uncertainty is inherent when describing a node in a complex graph by a single point only. Imagine a node for which the different sources of information are conflicting with each other, e.g. pointing to different communities or even revealing contradicting underlying patterns. Such discrepancy should be reflected in the uncertainty of its embedding. As a solution to this problem, we introduce a novel embedding approach that represents nodes as Gaussian distributions: each node becomes a full distribution rather than a single point. Thereby, we capture uncertainty about its representation. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 825,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "To effectively capture the non-i.i.d. nature of the data arising from the complex interactions between the nodes, we further propose a novel unsupervised personalized ranking formulation to learn the embeddings. Intuitively, from the point of view of a single node, we want nodes in its immediate neighborhood to be closest in the embedding space, while nodes multiple hops away should become increasingly more distant. This ordering between the nodes imposed by the network structure w.r.t the distances between their embeddings naturally leads to our ranking formulation. Taking into account this natural ranking from each node’s point of view, we learn more powerful embeddings since we incorporate information about the network structure beyond first and second order proximity. ",
85
+ "bbox": [
86
+ 174,
87
+ 854,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 176,
98
+ 103,
99
+ 823,
100
+ 146
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Furthermore, when node attributes (e.g. text) are available our method is able to leverage them to easily generate embeddings for previously unseen nodes without additional training. In other words, Graph2Gauss is inductive, which is a significant benefit over existing methods that are inherently transductive and do not naturally generalize to unseen nodes. This desirable inductive property comes from the fact that we are learning an encoder that maps the nodes’ attributes to embeddings. ",
107
+ "bbox": [
108
+ 174,
109
+ 152,
110
+ 825,
111
+ 223
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The main contributions of our approach are summarized as follows: ",
118
+ "bbox": [
119
+ 174,
120
+ 229,
121
+ 617,
122
+ 244
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "a) We embed nodes as Gaussian distributions allowing us to capture uncertainty. \nb) Our unsupervised personalized ranking formulation exploits the natural ordering of the nodes capturing the network structure at multiple scales. \nc) We propose an inductive method that generalizes to unseen nodes and is applicable to different types of graphs: plain/attributed, directed/undirected. ",
129
+ "bbox": [
130
+ 210,
131
+ 256,
132
+ 825,
133
+ 337
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 357,
144
+ 341,
145
+ 372
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "The focus of this paper is on unsupervised learning of node embeddings for which many different approaches have been proposed. For a comprehensive recent survey see Cai et al. (2017), Hamilton et al. (2017), or Goyal & Ferrara (2017). Approaches such as DeepWalk and node2vec (Perozzi et al., 2014; Grover & Leskovec, 2016) look at plain graphs and learn an embedding based on random walks by extending or adapting the Skip-Gram (Mikolov et al., 2013) architecture. LINE (Tang et al., 2015b) uses first- and second-order proximity and trains the embedding via negative sampling. SDNE (Wang et al., 2016) similarly has a component that preserves second-order proximity and exploits first-order proximity to refine the representations. GraRep (Cao et al., 2015) is a factorization based method that considers local and global structural information. ",
152
+ "bbox": [
153
+ 173,
154
+ 388,
155
+ 825,
156
+ 513
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Tri-Party Deep Network Representation (TRIDNR) (Pan et al., 2016) considers node attributes, network structure and potentially node labels. CENE (Sun et al., 2016) similarly to Ganguly & Pudi (2017) treats the attributes as special kinds of nodes and learns embeddings on the augmented network. Text-Associated DeepWalk (TADW) (Yang et al., 2015) performs low-rank matrix factorization considering graph structure and text features. Heterogeneous networks are consider in (Tang et al., 2015a; Chang et al., 2015), while Huang et al. similarly to Pan et al. (2016) considers labels. GraphSAGE (Hamilton et al., 2017) is an inductive method that generates embeddings by sampling and aggregating attributes from a nodes local neighborhood and requires the edges of the new nodes. ",
163
+ "bbox": [
164
+ 174,
165
+ 520,
166
+ 825,
167
+ 632
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Graph convolutional networks are another family of approaches that adapt conventional CNNs to graph data (Kipf & Welling, 2016a; Defferrard et al., 2016; Henaff et al., 2015; Monti et al., 2016; Niepert et al., 2016; Pham et al., 2017). They utilize the graph Laplacian and the spectral definition of a convolution and boil down to some form of aggregation over neighbors such as averaging. They can be thought of as implicitly learning an embedding, e.g. by taking the output of the last layer before the supervised component. See Monti et al. (2016) for an overview. In contrast to this paper, most of these methods are (semi-)supervised. The graph variational autoencoder (GAE) (Kipf & Welling, 2016b) is a notable exception that learns node embeddings in an unsupervised manner. ",
174
+ "bbox": [
175
+ 174,
176
+ 638,
177
+ 825,
178
+ 750
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Few approaches consider the idea of learning an embedding that is a distribution. Vilnis & McCallum (2014) are the first to learn Gaussian word embeddings to capture uncertainty. Closest to our work, He et al. (2015) represent knowledge graphs and Dos Santos et al. (2016) study heterogeneous graphs for node classification. Both approaches are not applicable for the context of unsupervised learning of (attributed) graphs that we are interested in. The method in He et al. (2015) learns an embedding for each component of the triplets (head, tail, relation) in the knowledge graph. Note that we cannot naively employ this method by considering a single relation ”has an edge” and a single entity ”node”. Since their approach considers similarity between entities and relations, all nodes would be trivially similar to the single relation. Considering the semi-supervised approach proposed in Dos Santos et al. (2016), we cannot simply ”turn off” the supervised component to adapt their method for unsupervised learning, since given the defined loss we would trivially map all nodes to the same Gaussian. Additionally, both of these approaches do not consider node attributes. ",
185
+ "bbox": [
186
+ 174,
187
+ 757,
188
+ 825,
189
+ 924
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "In this section we introduce our method Graph2Gauss (G2G) and detail how both the attributes and the network structure influence the learning of node representations. The embedding is carried out in two steps: (i) the node attributes are passed through a non-linear transformation via a deep neural network (encoder) and yield the parameters associated with the node’s embedding distribution; (ii) we formulate an unsupervised loss function that incorporates the natural ranking of the nodes as given by the network structure w.r.t. a dissimilarity measure on the embedding distributions. ",
196
+ "bbox": [
197
+ 173,
198
+ 132,
199
+ 825,
200
+ 217
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Problem definition. Let $G = \\left( \\mathbf { A } , \\mathbf { X } \\right)$ be a directed attributed graph, where $\\mathbf { A } \\in \\mathbb { R } ^ { N \\times N }$ is an adjacency matrix representing the edges between $N$ nodes and $\\breve { \\mathbf { X } } \\in \\mathbb { R } ^ { N \\times D }$ collects the attribute information for each node where $\\mathbf { x } _ { i }$ is a $D$ dimensional attribute vector of the $i ^ { t h }$ node.1 $V$ denotes the set of all nodes. We aim to find a lower-dimensional Gaussian distribution embedding $\\mathbf { h } _ { i } \\ =$ $\\textstyle { \\mathcal { N } } ( \\mu _ { i } , \\Sigma _ { i } )$ , $\\mu _ { i } \\in \\mathbb { R } ^ { L } , \\Sigma _ { i } \\in \\mathbb { R } ^ { L \\times L }$ with $L \\ll N , D$ , such that nodes similar w.r.t. attributes and network structure are also similar in the embedding space given a dissimilarity measure $\\Delta ( \\mathbf { h } _ { i } , \\mathbf { h } _ { j } )$ . In Fig.5(a) for example we show nodes that are embedded as two dimensional Gaussians. ",
207
+ "bbox": [
208
+ 173,
209
+ 223,
210
+ 825,
211
+ 320
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3.1 NETWORK STRUCTURE REPRESENTATION VIA PERSONALIZED RANKING ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 176,
221
+ 338,
222
+ 710,
223
+ 352
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "To capture the structural information of the network in the embedding space, we propose a personalized ranking approach. That is, locally per node $i$ we impose a ranking of all remaining nodes w.r.t. their distance to node $i$ in the embedding space. More precisely, in this paper we exploit the $k$ -hop neighborhoods of each node. Given some anchor node $i$ , we define ${ \\cal N } _ { i k } = \\{ \\bar { j } \\in V | i \\neq j , \\operatorname* { m i n } ( s p ( i , j ) , K ) = k \\}$ to be the set of nodes who are exactly $k$ hops away from node $i$ , where $V$ is the set of all nodes, $K$ is a hyper-parameter denoting the maximum distance we are wiling to consider, and $s p ( i , j )$ returns either the length of the shortest path starting at node $i$ and ending in node $j$ or $\\infty$ if node $j$ is not reachable. ",
230
+ "bbox": [
231
+ 173,
232
+ 363,
233
+ 825,
234
+ 476
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "Intuitively, we want all nodes belonging to the 1-hop neighborhood of $i$ to be closer to $i$ w.r.t. their embedding, compared to the all nodes in its 2-hop neighborhood, which in turn are closer than the nodes in its 3-hop neighborhood and so on up to $K$ . Thus, the ranking that we want to ensure from the perspective of node $i$ is ",
241
+ "bbox": [
242
+ 174,
243
+ 481,
244
+ 825,
245
+ 537
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "equation",
251
+ "img_path": "images/8cc49e1f472d59ee63b72ec7ebe00bfa2ba448ab852a882f1cd90db422ee15d4.jpg",
252
+ "text": "$$\n\\Delta ( \\mathbf { h } _ { i } , \\mathbf { h } _ { k _ { 1 } } ) < \\Delta ( \\mathbf { h } _ { i } , \\mathbf { h } _ { k _ { 2 } } ) < \\cdots < \\Delta ( \\mathbf { h } _ { i } , \\mathbf { h } _ { k _ { K } } ) \\quad \\forall k _ { 1 } \\in N _ { i 1 } , \\forall k _ { 2 } \\in N _ { i 2 } , \\dots , \\forall k _ { K } \\in N _ { i K }\n$$",
253
+ "text_format": "latex",
254
+ "bbox": [
255
+ 200,
256
+ 541,
257
+ 795,
258
+ 559
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "or equivalently, we aim to satisfy the following pairwise constraints ",
265
+ "bbox": [
266
+ 171,
267
+ 561,
268
+ 624,
269
+ 577
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "equation",
275
+ "img_path": "images/b8ce721d499e57d59ec71bb1e8db0033b149e94e49f54e694a8f044f6624b430.jpg",
276
+ "text": "$$\n\\Delta ( { \\bf h } _ { i } , { \\bf h } _ { j } ) < \\Delta ( { \\bf h } _ { i } , { \\bf h } _ { j ^ { \\prime } } ) , \\forall i \\in V , \\forall j \\in N _ { i k } , \\forall j ^ { \\prime } \\in N _ { i k ^ { \\prime } } , \\forall k < k ^ { \\prime }\n$$",
277
+ "text_format": "latex",
278
+ "bbox": [
279
+ 276,
280
+ 579,
281
+ 722,
282
+ 598
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Going beyond mere first-order and second-order proximity this enables us to capture the network structure at multiple scales incorporating local and global structure. ",
289
+ "bbox": [
290
+ 174,
291
+ 601,
292
+ 821,
293
+ 628
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Dissimilarity measure. To solve the above ranking task we have to define a suitable dissimilarity measure between the latent representation of two nodes. Since our latent representations are distributions, similarly to Dos Santos et al. (2016) and He et al. (2015) we employ the asymmetric KL divergence. This gives the additional benefit of handling directed graphs in a sound way. More specifically, given the latent Gaussian distribution representation of two nodes $\\mathbf { h } _ { i } , \\mathbf { h } _ { j }$ we define ",
300
+ "bbox": [
301
+ 174,
302
+ 636,
303
+ 825,
304
+ 707
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "equation",
310
+ "img_path": "images/bffe8d8c7e49641b415066884e57dd4d02230cf97ee80aaa1a5fa19e29a0b0e4.jpg",
311
+ "text": "$$\n\\Delta ( { \\bf h } _ { i } , { \\bf h } _ { j } ) = D _ { K L } ( N _ { j } | | \\mathcal { N } _ { i } ) = \\frac { 1 } { 2 } \\bigg [ t r ( \\Sigma _ { i } ^ { - 1 } \\Sigma _ { j } ) + ( \\mu _ { i } - \\mu _ { j } ) ^ { T } \\Sigma _ { i } ^ { - 1 } ( \\mu _ { i } - \\mu _ { j } ) - L - l o g \\frac { d e t ( \\Sigma _ { j } ) } { d e t ( \\Sigma _ { i } ) } \\bigg ]\n$$",
312
+ "text_format": "latex",
313
+ "bbox": [
314
+ 183,
315
+ 709,
316
+ 813,
317
+ 744
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Here we use the notation $\\mu _ { i } , \\Sigma _ { i }$ to denote the outputs of some functions $\\mu _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { i } )$ and $\\Sigma _ { \\theta } ( \\mathbf { x } _ { i } )$ applied to the attributes $\\mathbf { x } _ { i }$ of node $i$ and $t r ( . )$ denotes the trace of a matrix. The asymmetric KL divergence also applies to the case of an undirected graph by simply processing both directions of the edge. We could alternatively use a symmetric dissimilarity measure such as the Jensen-Shannon divergence or the expected likelihood (probability product kernel). ",
324
+ "bbox": [
325
+ 174,
326
+ 747,
327
+ 825,
328
+ 818
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "3.2 DEEP ENCODER ",
335
+ "text_level": 1,
336
+ "bbox": [
337
+ 174,
338
+ 833,
339
+ 325,
340
+ 848
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "The functions $\\mu _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { i } )$ and $\\Sigma _ { \\theta } ( \\mathbf { x } _ { i } )$ are deep feed-forward non-linear neural networks parametrized by $\\theta$ . It is important to note that these parameters are shared across instances and thus enjoy statistical strength benefits. Additionally, we design $\\mu _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { i } )$ and $\\Sigma _ { \\theta } ( \\mathbf { x } _ { i } )$ such that they share parameters as well. More specifically, a deep encoder $f _ { \\theta } ( \\mathbf { x } _ { i } )$ processes the node’s attributes and outputs an intermediate hidden representation, which is then in turn used to output $\\mu _ { i }$ and $\\Sigma _ { i }$ in the final layer of the architecture. We focus on diagonal covariance matrices.2 The mapping from the nodes’ attributes to their embedding via the deep encoder is precisely what enables the inductiveness of Graph2Gauss. ",
347
+ "bbox": [
348
+ 176,
349
+ 859,
350
+ 821,
351
+ 888
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "",
358
+ "bbox": [
359
+ 174,
360
+ 103,
361
+ 825,
362
+ 174
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "3.3 LEARNING VIA ENERGY-BASED LOSS ",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 176,
372
+ 194,
373
+ 470,
374
+ 208
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Since it is intractable to find a solution that satisfies all of the pairwise constraints defined in Sec. 3.1 we turn to an energy based learning approach. The idea is to define an objective function that penalizes ranking errors given the energy of the pairs. More specifically, denoting the KL divergence between two nodes as the respective energy, $E _ { i j } = D _ { K L } ( \\mathcal { N } _ { j } | | \\mathcal { N } _ { i } )$ , we define the following loss to be optimized ",
381
+ "bbox": [
382
+ 174,
383
+ 219,
384
+ 825,
385
+ 290
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "equation",
391
+ "img_path": "images/81f1b504f8e8e103ecb32d4de77db72115e47bd35012cb410a2f5013b26ad1e8.jpg",
392
+ "text": "$$\n\\mathcal { L } = \\sum _ { i } \\sum _ { k < l } \\sum _ { j _ { k } \\in N _ { i k } } \\sum _ { j _ { l } \\in N _ { i l } } \\left( E _ { i j _ { k } } { ^ { 2 } } + \\exp ^ { - E _ { i j _ { l } } } \\right) = \\sum _ { ( i , j _ { k } , j _ { l } ) \\in \\mathcal { D } _ { t } } \\left( E _ { i j _ { k } } { ^ { 2 } } + \\exp ^ { - E _ { i j _ { l } } } \\right)\n$$",
393
+ "text_format": "latex",
394
+ "bbox": [
395
+ 218,
396
+ 299,
397
+ 779,
398
+ 342
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "where $\\mathcal { D } _ { t } = \\{ ( i , j _ { k } , j _ { l } ) ~ | ~ s p ( i , j _ { k } ) < s p ( i , j _ { l } ) \\}$ is the set of all valid triplets. The $E _ { i j _ { k } }$ terms are positive examples whose energy should be lower compared to the energy of the negative examples $E _ { i j _ { l } }$ . Here, we employed the so called square-exponential loss (LeCun et al., 2006) which unlike other typically used losses (e.g. hinge loss) does not have a fixed margin and pushes the energy of the negative terms to infinity with exponentially decreasing force. In our setting, for a given anchor node $i$ , the energy $E _ { i j }$ should be lowest for nodes $j$ in his 1-hop neighborhood, followed by a higher energy for nodes in his 2-hop neighborhood and so on. ",
405
+ "bbox": [
406
+ 173,
407
+ 357,
408
+ 825,
409
+ 457
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "Finally, we can optimize the parameters $\\theta$ of the deep encoder such that the loss $\\mathcal { L }$ is minimized and the pairwise rankings are satisfied. Note again that the parameters are shared across all instances, meaning that we share statistical strength and can learn them more easily in comparison to treating the distribution parameters (e.g. $\\mu _ { i } , \\Sigma _ { i } )$ independently as free variables. The parameters are optimized using Adam (Kingma & Ba, 2014) with a fixed learning rate of 0.001. ",
416
+ "bbox": [
417
+ 173,
418
+ 462,
419
+ 825,
420
+ 534
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "Sampling strategy. For large graphs, the complete loss is intractable to compute, confirming the need for a stochastic variant. The naive approach would be to sample triplets from $\\mathcal { D } _ { t }$ uniformly, i.e. replace $\\sum _ { \\left( i , j _ { k } , j _ { l } \\right) \\in { \\mathcal { D } } _ { t } }$ with $\\mathbb { E } _ { ( i , j _ { k } , j _ { l } ) \\sim \\mathcal { D } _ { t } }$ in Eq. 1. However, with the naive sampling we are less likely to sample triplets that involve low-degree nodes since high degree nodes occur in many more pairwise constraints. This in turn means that we update the embedding of low-degree nodes less often which is not desirable. Therefore, we propose an alternative node-anchored sampling strategy. Intuitively, for every node $i$ , we randomly sample one other node from each of its neighborhoods (1-hop, 2-hop, etc.) and then optimize over all the corresponding pairwise constraints $( E _ { i 1 } < E _ { i 2 } , \\ldots , E _ { i 1 } < E _ { i K } , E _ { i 2 } < E _ { i 3 } , \\ldots E _ { i 2 } <$ $\\kappa , E _ { i 2 } < E _ { i 3 } , \\ldots E _ { i 2 } < E _ { i K } , \\ldots , E _ { i K - 1 } < E _ { i K } )$ . ",
427
+ "bbox": [
428
+ 173,
429
+ 539,
430
+ 825,
431
+ 669
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "Naively applying the node-anchored sampling strategy and optimizing Eq. 1, however, would lead to biased estimates of the gradient. Theorem 1 shows how to adapt the loss such that it is equal in expectation to the original loss under our new sampling strategy. As a consequence, we have unbiased estimates of the gradient using stochastic optimization of the reformulated loss. ",
438
+ "bbox": [
439
+ 173,
440
+ 672,
441
+ 825,
442
+ 729
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "Theorem 1 For all $i$ , let $( j _ { 1 } , \\dots , j _ { K } )$ be independent uniform random samples from the sets $( N _ { i 1 } , \\dots , N _ { i K } )$ and $| N _ { i * } |$ the cardinality of each set. Then $\\mathcal { L }$ is equal in expectation to ",
449
+ "bbox": [
450
+ 173,
451
+ 743,
452
+ 826,
453
+ 773
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "equation",
459
+ "img_path": "images/b17799a820a2c306a362ebc52b7f163feebe9c4a800af3a1f620da58d9358e69.jpg",
460
+ "text": "$$\n\\mathcal { L } _ { s } = \\sum _ { i } \\mathbb { E } _ { ( j _ { 1 } , \\dots , j _ { K } ) \\sim ( N _ { i 1 } , \\dots , N _ { i K } ) } \\left[ \\sum _ { k < l } \\vert N _ { i k } \\vert \\cdot \\vert N _ { i l } \\vert \\cdot \\left( E _ { i j _ { k } } ^ { \\phantom { - } } + \\exp ^ { - E _ { i j _ { l } } } \\right) \\right] = \\mathcal { L }\n$$",
461
+ "text_format": "latex",
462
+ "bbox": [
463
+ 228,
464
+ 782,
465
+ 767,
466
+ 821
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "We provide the proof in the appendix. For cases where the number of nodes $N$ is particularly large we can further subsample mini-batches, by selecting anchor nodes $i$ at random. Furthermore, in our experimental study, we analyze the effect of the sampling strategy on convergence, as well as the quality of the stochastic variant w.r.t. the obtained solution and the reached local optima. ",
473
+ "bbox": [
474
+ 174,
475
+ 838,
476
+ 825,
477
+ 895
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "3.4 DISCUSSION ",
484
+ "text_level": 1,
485
+ "bbox": [
486
+ 174,
487
+ 103,
488
+ 302,
489
+ 117
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "Inductive learning. While during learning we need both the network structure (to evaluate the ranking loss) and the attributes, once the learning concludes, the embedding for a node can be obtained solely based on its attributes. This enables our method to easily handle the issue of obtaining representations for new nodes that were not part of the network during training. To do so we simply pass the attributes of the new node through our learned deep encoder. Most approaches cannot handle this issue at all, with a notable exception being SDNE and GraphSAGE (Wang et al., 2016; Hamilton et al., 2017). However, both approaches require the edges of the new node to get the node’s representation, and cannot handle nodes that have no existing connections. In contrast, our method can handle even such nodes, since after the model is learned we rely only on the attribute information. ",
496
+ "bbox": [
497
+ 174,
498
+ 130,
499
+ 825,
500
+ 256
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "Plain graph embedding. Even though attributed graphs are often found in the real-world, sometimes it is desirable to analyze plain graphs. As already discussed, our method easily handles plain graphs, when the attributes are not available, by using one-hot encoding of the nodes instead. As we later show in the experiments we are able to learn useful representations in this scenario, even outperforming some attributed approaches. Naturally, in this case we lose the inductive ability to handle unseen nodes. We compare the one-hot encoding version, termed G2G oh, with our full method G2G that utilizes the attributes, as well as all remaining competitors. ",
507
+ "bbox": [
508
+ 174,
509
+ 262,
510
+ 825,
511
+ 361
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Encoder architecture. Depending on the type of the node attributes (e.g. images, text) we could in principle use CNNs/RNNs to process them. We could also easily incorporate any of the proposed graph convolutional layers inheriting their benefits. However, we observe that in practice using simple feed-forward architecture with rectifier units is sufficient, while being much faster and easier to train. Better yet, we observed that Graph2Gauss is not sensitive to the choice of hyperparameters such as number and size of hidden layers. We provide more detailed information and sensible defaults in the appendix. ",
518
+ "bbox": [
519
+ 174,
520
+ 367,
521
+ 825,
522
+ 464
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Complexity. The time complexity for computing the original loss is $O ( N ^ { 3 } )$ where $N$ is the number of nodes. Using our node-anchored sampling strategy, the complexity of the stochastic version is $O ( K ^ { 2 } N )$ where $K$ is the maximum distance considered. Since a small value of $K \\leq 2$ consistently showed good performance, $K ^ { 2 }$ becomes negligible and thus the complexity is $O ( N )$ , meaning linear in the number of nodes. This coupled with the small number of epochs $T$ needed for convergence $T \\leq 2 0 0 0$ for all shown experiments, see e.g. Fig. 3(b)) and an efficient GPU implementation also made our method faster than most competitors in terms of wall-clock time. ",
529
+ "bbox": [
530
+ 174,
531
+ 470,
532
+ 825,
533
+ 569
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "4 EMBEDDING EVALUATION ",
540
+ "text_level": 1,
541
+ "bbox": [
542
+ 176,
543
+ 593,
544
+ 421,
545
+ 608
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "We compare Graph2Gauss with and without considering attributes (G2G, G2G oh) to several competitors namely: TRIDNR and TADW (Pan et al., 2016; Yang et al., 2015) as representatives that consider attributed graphs, GAE (Kipf & Welling, 2016b) as the unsupervised graph convolutional representative, and node2vec (Grover & Leskovec, 2016) as a representative of the random walk based plain graph embeddings. Additionally, we include a strong Logistic Regression baseline that considers only the attributes. As with all other methods we train TRIDNR in a unsupervised manner, however, since it can only process raw text as attributes (rather than e.g. bag-of-words) it is not always applicable. Furthermore, since TADW, and GAE only support undirected graphs we must symmetrize the graph before using them – giving them a substantial advantage, especially in the link prediction task. Moreover, in all experiments if the competing techniques use an $L$ dimensional embedding, G2G’s embedding is actually only half of this dimensionality so that the overall number of ’parameters’ per node (mean vector $^ +$ variance terms of the diagonal $\\Sigma _ { i }$ ) matches $L$ . ",
552
+ "bbox": [
553
+ 173,
554
+ 625,
555
+ 825,
556
+ 791
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Dataset description. We use several attributed graph datasets. Cora (McCallum et al., 2000) is a well-known citation network labeled based on the paper topic. While most approaches report on a small subset of this dataset we additionally extract from the original data the entire network and name these two datasets CORA $( N = 1 9 7 9 3 , E = 6 5 3 1 1 , D = 8 7 1 0 , K = 7 0 )$ and CORA-ML $( N = 2 9 9 5 , E = 8 4 1 6 , D = 2 8 7 9 , K = 7 )$ respectively. CITESEER $( N = 4 2 3 0 , E = 5 3 5 8 , D =$ $2 7 0 1 , K = 6 )$ (Giles et al., 1998), DBLP (Pan et al., 2016) $( N = 1 7 7 1 6 , E = 1 0 5 7 3 4 , D =$ 1639, $K = 4$ ) and PUBMBED $( N = 1 8 2 3 0 , E = 7 9 6 1 2 , D = 5 0 0 , K = 3 )$ (Sen et al., 2008) are other commonly used citation datasets. We provide all datasets, the source code of G2G, and further supplementary material (https://www.kdd.in.tum. $\\mathrm { d e } / \\mathrm { g } 2 \\mathrm { g } )$ ). ",
563
+ "bbox": [
564
+ 173,
565
+ 799,
566
+ 825,
567
+ 924
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "4.1 LINK PREDICTION",
574
+ "text_level": 1,
575
+ "bbox": [
576
+ 174,
577
+ 104,
578
+ 341,
579
+ 117
580
+ ],
581
+ "page_idx": 5
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Setup. Link prediction is a commonly used task to demonstrate the meaningfulness of the embeddings. To evaluate the performance we hide a set of edges/non-edges from the original graph and train on the resulting graph. Similarly to Kipf & Welling (2016b) and Wang et al. (2016) we create a validation/test set that contains $5 \\% / 1 0 \\%$ randomly selected edges respectively and equal number of randomly selected non-edges.We used the validation set for hyper-parameter tuning and early stopping and the test set only to report the performance. As by convention we report the area under the ROC curve (AUC) and the average precision (AP) scores for each method. To rank the candidate edges we use the negative energy $- E _ { i j }$ for Graph2Gauss, and the exact same approach as in the respective original methods (e.g. dot product of the embeddings). ",
586
+ "bbox": [
587
+ 173,
588
+ 130,
589
+ 825,
590
+ 256
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Performance on real-world datasets. Table 1 shows the performance on the link prediction task for different datasets and embedding size $L = 1 2 8$ . As we can see our method significantly outperforms the competitors across all datasets which is a strong sign that the learned embeddings are useful. Furthermore, even the constrained version of our method G2G oh that does not consider attributes at all outperforms the competitors on some datasets. While GAE achieves comparable performance on some of the datasets their approach doesn’t scale to large graphs. In fact, for graphs beyond $1 5 K$ nodes we had to revert to slow training on the CPU since the data did not fit on the GPU memory (12GB). The simple Logistic Regression baseline showed surprisingly strong performance, even outperforming some of the more complicated methods. ",
597
+ "bbox": [
598
+ 173,
599
+ 262,
600
+ 825,
601
+ 387
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "table",
607
+ "img_path": "images/ec9e50512179cb2af7552da9f40523c3ee1fd7d1a8beb338445fa3463cc08df7.jpg",
608
+ "table_caption": [
609
+ "Table 1: Link prediction performance for real-world datasets with $L = 1 2 8$ "
610
+ ],
611
+ "table_footnote": [],
612
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">Cora-ML</td><td colspan=\"2\">Cora</td><td colspan=\"2\">Citeseer</td><td colspan=\"2\">DBLP</td><td colspan=\"2\">Pubmed</td><td colspan=\"2\">Cora-ML Easy</td></tr><tr><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td></tr><tr><td>Logistic Regression</td><td>90.01</td><td>89.75</td><td>86.58</td><td>86.51</td><td>81.70</td><td>79.10</td><td>82.04</td><td>81.91</td><td>90.50</td><td>90.99</td><td>90.28</td><td>90.99</td></tr><tr><td>node2vec(Grover &amp; Leskovec,2016)</td><td>76.80</td><td>75.26</td><td>79.95</td><td>78.98</td><td>83.04</td><td>83.74</td><td>95.42</td><td>95.33</td><td>95.42</td><td>95.33</td><td>93.47</td><td>93.53</td></tr><tr><td>TADW(Yang et al., 2015)</td><td>81.26</td><td>81.34</td><td>76.56</td><td>78.06</td><td>70.14</td><td>72.93</td><td>65.67</td><td>59.85</td><td>62.72</td><td>68.02</td><td>83.53</td><td>82.47</td></tr><tr><td>TRIDNR(Pan et al., 2016)</td><td>84.51</td><td>85.69</td><td>81.61</td><td>81.08</td><td>87.23</td><td>88.87</td><td>92.01</td><td>91.62</td><td>NTA</td><td>NTA</td><td>85.59</td><td>86.16</td></tr><tr><td>GAE(Kipf &amp; Welling,2016b)</td><td>96.65</td><td>96.67</td><td>97.91</td><td>98.07</td><td>92.31</td><td>93.88</td><td>95.78</td><td>96.67</td><td>96.07</td><td>96.12</td><td>95.97</td><td>95.17</td></tr><tr><td>G2G_oh</td><td>96.95</td><td>97.54</td><td>98.41</td><td>98.63</td><td>95.89</td><td>95.78</td><td>98.29</td><td>98.46</td><td>96.75</td><td>96.47</td><td>96.98</td><td>96.42</td></tr><tr><td>G2G</td><td>98.01</td><td>98.03</td><td>98.81</td><td>98.78</td><td>96.09</td><td>96.16</td><td>98.65</td><td>98.78</td><td>97.42</td><td>97.85</td><td>98.03</td><td>98.12</td></tr></table>",
613
+ "bbox": [
614
+ 176,
615
+ 426,
616
+ 821,
617
+ 525
618
+ ],
619
+ "page_idx": 5
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "We also include the performance on the so called ”Cora-ML Easy” dataset, obtained from the CoraML dataset by making it undirected and selecting the nodes in the largest connected component. We see that while node2vec struggles on the original real-world data, it significantly improves in this ”easy” setting. On the contrary, Graph2Gauss handles both settings effortlessly. This demonstrates that Graph2Gauss can be readily applied in realistic scenarios on potentially messy real-world data. ",
624
+ "bbox": [
625
+ 173,
626
+ 546,
627
+ 825,
628
+ 617
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "Sensitivity analysis. In Figs.1(a) and 1(b) we show the performance w.r.t. the dimensionality of the embedding, averaged over 10 trials. G2G is able to learn useful embeddings with strong performance even for relatively small embedding sizes. Even for the case $L = 2$ , where we embed the points as one dimensional Gaussian distributions $( L = 1 + 1$ for the mean and the sigma of the Gaussian), G2G still outperforms all of the competitors irrespective of their much higher embedding sizes. ",
635
+ "bbox": [
636
+ 173,
637
+ 623,
638
+ 825,
639
+ 694
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "image",
645
+ "img_path": "images/8a932d69c197c1a3e0f8320a4a38a85a80651549fda7644ac92413355fa92960.jpg",
646
+ "image_caption": [
647
+ "Figure 1: Link prediction performance for different embedding sizes and percentages of training edges on Cora-ML. G2G outperforms the competitors even for small sizes and percentage of edges. "
648
+ ],
649
+ "image_footnote": [],
650
+ "bbox": [
651
+ 181,
652
+ 707,
653
+ 816,
654
+ 821
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Finally, we evaluate the performance w.r.t. the percentage of training edges varying from $1 5 \\%$ to $8 5 \\%$ , averaged over 10 trials. We can see in Figs.1(c) and 1(d) Graph2Gauss strongly outperforms the competitors, especially for small number of training edges. The dashed line indicates the percentage above which we can guarantee to have every node appear at least once in the training set.3 The performance below that line is then indicative of the performance in the inductive setting. Since, the structure only methods are unable to compute meaningful embeddings for unseen nodes we cannot report their performance below the dashed line. ",
661
+ "bbox": [
662
+ 174,
663
+ 882,
664
+ 823,
665
+ 924
666
+ ],
667
+ "page_idx": 5
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "",
672
+ "bbox": [
673
+ 174,
674
+ 103,
675
+ 825,
676
+ 159
677
+ ],
678
+ "page_idx": 6
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "4.2 NODE CLASSIFICATION ",
683
+ "text_level": 1,
684
+ "bbox": [
685
+ 174,
686
+ 178,
687
+ 377,
688
+ 190
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Setup. Node classification is another task commonly used to evaluate the strength of the learned embeddings – after they have been trained in an unsupervised manner. We evaluate the node classification performance for three datasets (Cora-ML, Citeseer and DBLP) that have ground-truth classes. First, we train the embeddings on the entire training data in an unsupervised manner (excluding the class labels). Then, following Perozzi et al. (2014) we use varying percentage of randomly selected nodes and their learned embeddings along with their labels as training data for a logistic regression, while evaluating the performance on the rest of the nodes. We also optimize the regularization strength for each method/dataset via cross-validation. We show results averaged over 10 trials. ",
695
+ "bbox": [
696
+ 173,
697
+ 202,
698
+ 826,
699
+ 314
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "image",
705
+ "img_path": "images/9dfe41f5f0f942d2393078c92264f4f3c1bf45a3aee7e8643ba84bccb167a5d8.jpg",
706
+ "image_caption": [
707
+ "Figure 2: Classification performance comparison - both G2G and G2G oh perform strongly. "
708
+ ],
709
+ "image_footnote": [],
710
+ "bbox": [
711
+ 245,
712
+ 325,
713
+ 758,
714
+ 439
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Performance on real-world datasets. Figs. 2 compares the methods w.r.t. the classification performance for different percentage of labeled nodes. We can see that our method clearly outperforms the competitors. Again, the constrained version of our method that does not consider attributes is able to outperform some of the competing approaches. Additionally, we can conclude that in general our method shows stable performance regardless of the percentage of labeled nodes. This is a highly desirable property since it shows that should we need to perform classification it is sufficient to train only on a small percentage of labeled nodes. ",
721
+ "bbox": [
722
+ 173,
723
+ 483,
724
+ 825,
725
+ 580
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "4.3 SAMPLING STRATEGY ",
732
+ "text_level": 1,
733
+ "bbox": [
734
+ 176,
735
+ 598,
736
+ 366,
737
+ 612
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Figure 3(a) shows the validation set ROC score for the link prediction task w.r.t. the number of triplets $( i , j _ { k } , j _ { l } )$ seen. We can see that both sampling strategies are able to reach the same performance as the full loss in significantly fewer $( < 4 . 2 \\%$ ) number of pairs seen (note the log scale). It also shows that the naive random sampling converges slower than the node-anchored sampling strategy. Figures 3(b) gives us some insight as to why – our node-anchored sampling strategy achieves significantly lower loss. Finally, Fig. 3(c) shows that our node-anchored sampling strategy has lower variance of the gradient updates, which is another contributor to faster convergence. ",
744
+ "bbox": [
745
+ 173,
746
+ 623,
747
+ 826,
748
+ 722
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "image",
754
+ "img_path": "images/64ef383bd0bca1f97a6bdaad086b8de2a61848e9e23a02c3696b4d53b541a631.jpg",
755
+ "image_caption": [
756
+ "Figure 3: Our sampling strategy converges significantly faster than the full loss, while maintaining good performance. It also achieves better loss and has lower variance compared to naive sampling. "
757
+ ],
758
+ "image_footnote": [],
759
+ "bbox": [
760
+ 264,
761
+ 734,
762
+ 732,
763
+ 848
764
+ ],
765
+ "page_idx": 6
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "Learning an embedding that is a distribution rather than a point-vector allows us to capture uncertainty about the representation. We perform several experiments to evaluate the benefit of modeling uncertainty. Figure 4(a) shows that the learned uncertainty is correlated with neighborhood diversity, where for a node $i$ we define diversity as the number of distinct classes among the nodes in its $p$ -hop neighborhood $\\textstyle ( \\bigcup _ { 1 \\leq k \\leq p } N _ { i k } )$ . Since the uncertainty for a node $i$ is an $L$ -dimensional vector (diagonal covariance) we show the average across the dimensions. In line with our intuition, nodes with less diverse neighborhood have significantly lower variance compare to more diverse nodes whose immediate neighbors belong to many different classes, thus making their embedding more uncertain. The figure shows the result on the Cora dataset for $p = 3$ hop neighborhood. Similar results hold for the other datasets. This result is particularly impressive given the fact that we learn our embedding in a completely unsupervised manner, yet the uncertainty was able to capture the diversity w.r.t. the class labels of the neighbors of a node, which were never seen during training. ",
770
+ "bbox": [
771
+ 173,
772
+ 130,
773
+ 825,
774
+ 297
775
+ ],
776
+ "page_idx": 7
777
+ },
778
+ {
779
+ "type": "image",
780
+ "img_path": "images/5c593abf4a0b86b0814e86b69cc0ee34f42469e0bce9d3a752b172aed8c32348.jpg",
781
+ "image_caption": [
782
+ "Figure 4: The benefit of modeling the uncertainty of the nodes. "
783
+ ],
784
+ "image_footnote": [],
785
+ "bbox": [
786
+ 222,
787
+ 319,
788
+ 776,
789
+ 434
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "Figure 4(b) shows that using the learned uncertainty we are able to detect the intrinsic latent dimensionality of the graph. Each line represents the average variance (over all nodes) for a given dimension $l$ for each epoch. We can see that as the training progresses past the stopping criterion (link prediction performance on validation set) and we start to overfit, some dimensions exhibit a relatively stable average variance, while for others the variance increases with each epoch. By creating a simply rule that monitors the average change of the variance over time we were able to automatically detect these relevant latent dimensions (colored in red). This result holds for multiple datasets and is shown here for Cora-ML. Interestingly, the number of detected latent dimensions (6) is close to the number of ground-truth communities (7). ",
796
+ "bbox": [
797
+ 173,
798
+ 477,
799
+ 825,
800
+ 603
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "The next obvious question is then how does the performance change if we remove these highly uncertain dimensions whose variance keeps increasing with training. Figure 4(c) answers exactly that. By removing progressively more and more dimensions, starting with the most uncertain first we see imperceptibly small change in performance. Only once we start removing the true latent dimension we see a noticeable degradation in performance. The dashed lines show the performance if we re-train the model, setting $L = 6$ , equal to the detected number of latent dimensions. ",
807
+ "bbox": [
808
+ 174,
809
+ 609,
810
+ 823,
811
+ 693
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "As a last study of uncertainty, in a use case analysis, the nodes with high uncertainty reveal additional interesting patterns. For example in the Cora dataset, one of the highly uncertain nodes was the paper ”The use of word shape information for cursive script recognition” by R.J. Whitrow – surprisingly, all citations (edges) of that paper (as extracted from the dataset) were towards other papers by the same author. ",
818
+ "bbox": [
819
+ 174,
820
+ 700,
821
+ 825,
822
+ 770
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "4.5 INDUCTIVE LEARNING: GENERALIZATION TO UNSEEN NODES ",
829
+ "text_level": 1,
830
+ "bbox": [
831
+ 174,
832
+ 786,
833
+ 642,
834
+ 800
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "As discussed in Sec. 3.4 G2G is able to learn embeddings even for nodes that were not part of the networks structure during training time. Thus, it not only supports transductive but also inductive learning. To evaluate how our approach generalizes to unseen nodes we perform the following experiment: (i) first we completely hide $1 0 \\% / 2 5 \\%$ of nodes from the network at random; (ii) we proceed to learn the node embeddings for the rest of the nodes; (iii) after learning is complete we pass the (new) unseen test nodes through our deep encoder to obtain their embedding; (iv) we evaluate by calculating the link prediction performance (AUC and AP scores) using all their edges and same number of non-edges. ",
841
+ "bbox": [
842
+ 174,
843
+ 811,
844
+ 825,
845
+ 924
846
+ ],
847
+ "page_idx": 7
848
+ },
849
+ {
850
+ "type": "table",
851
+ "img_path": "images/40b95400e458220b14d9a0f6036b43b08647128c288fd4c66cc325311204d8d9.jpg",
852
+ "table_caption": [
853
+ "Table 2: Inductive link prediction performance. "
854
+ ],
855
+ "table_footnote": [],
856
+ "table_body": "<table><tr><td rowspan=\"2\">Method (% hidden)</td><td colspan=\"2\">Cora-ML</td><td colspan=\"2\">Cora</td><td colspan=\"2\">Citeseer</td><td colspan=\"2\">DBLP</td><td colspan=\"2\">Pubmed</td></tr><tr><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td><td>AUC</td><td>AP</td></tr><tr><td>Log.Reg.10%</td><td>75.95</td><td>78.62</td><td>78.53</td><td>78.70</td><td>73.09</td><td>72.54</td><td>67.55</td><td>69.55</td><td>86.83</td><td>87.34</td></tr><tr><td>G2G 10%</td><td>90.93</td><td>89.37</td><td>94.18</td><td>93.40</td><td>88.58</td><td>88.31</td><td>85.06</td><td>83.75</td><td>92.22</td><td>90.45</td></tr><tr><td>G2G 25%</td><td>87.83</td><td>86.31</td><td>92.96</td><td>92.31</td><td>87.30</td><td>86.61</td><td>83.09</td><td>81.49</td><td>90.20</td><td>88.28</td></tr></table>",
857
+ "bbox": [
858
+ 176,
859
+ 126,
860
+ 820,
861
+ 198
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "As the results in Table 2 clearly show, since we are utilizing the rich attribute information, we are able to achieve strong performance for unseen nodes. This is true even when a quarter of the nodes are missing. This makes our method applicable in the context of large graphs where training on the entire network is not feasible. Note that SDNE (Wang et al., 2016) and GraphSAGE (Hamilton et al., 2017) cannot be applied in this scenario, since they also require the edges for the unseen nodes to produce an embedding. Graph2Gauss is the only inductive method that can obtain embeddings for a node based only on the node attributes. ",
868
+ "bbox": [
869
+ 174,
870
+ 219,
871
+ 825,
872
+ 316
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "4.6 NETWORK VISUALIZATION ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 176,
882
+ 333,
883
+ 400,
884
+ 347
885
+ ],
886
+ "page_idx": 8
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "One key application of node embedding approaches is creating meaningful visualizations of a network in 2D/3D that support tasks such as data exploration and understanding. Following Tang et al. (2015b) and Pan et al. (2016) we first learn a lower-dimensional $L = 1 2 8$ embedding for each node and then map those representations in 2D with TSNE (Maaten & Hinton, 2008). Additionally, since our method is able to learn useful representations even in low dimensions we embed the nodes as 2D Gaussians and visualize the resulting embedding. This has the added benefit of visualizing the nodes’ uncertainty as well. Fig. 5 shows the visualization for the Cora-ML dataset. We see that Graph2Gauss learns an embedding in which the different classes are clearly separated. ",
891
+ "bbox": [
892
+ 173,
893
+ 358,
894
+ 825,
895
+ 470
896
+ ],
897
+ "page_idx": 8
898
+ },
899
+ {
900
+ "type": "image",
901
+ "img_path": "images/e1a164d9a7672be7d5d2534731493901583feced1417dc1496cf52360ff653f2.jpg",
902
+ "image_caption": [
903
+ "Figure 5: 2D visualization of the embeddings on the Cora-ML dataset. Color indicates the class label not used during training. Best viewed on screen. "
904
+ ],
905
+ "image_footnote": [],
906
+ "bbox": [
907
+ 267,
908
+ 507,
909
+ 722,
910
+ 698
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "5 CONCLUSION ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 176,
920
+ 767,
921
+ 318,
922
+ 784
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "We proposed Graph2Gauss – the first unsupervised approach that represents nodes in attributed graphs as Gaussian distributions and is therefore able to capture uncertainty. Analyzing the uncertainty reveals the latent dimensionality of a graph and gives insight into the neighborhood diversity of a node. Since we exploit the attribute information of the nodes we can effortlessly generalize to unseen nodes, enabling inductive reasoning. Graph2Gauss leverages the natural ordering of the nodes w.r.t. their neighborhoods via a personalized ranking formulation. The strength of the learned embeddings has been demonstrated on several tasks – specifically achieving high link prediction performance even in the case of low dimensional embeddings. As future work we aim to study personalized rankings beyond the ones imposed by the shortest path distance. ",
929
+ "bbox": [
930
+ 173,
931
+ 797,
932
+ 825,
933
+ 924
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "ACKNOWLEDGMENTS ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 176,
943
+ 103,
944
+ 356,
945
+ 117
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "This research was supported by the German Research Foundation, Emmy Noether grant GU 1409/2- 1, and by the Technical University of Munich - Institute for Advanced Study, funded by the German Excellence Initiative and the European Union Seventh Framework Programme under grant agreement no 291763, co-funded by the European Union. ",
952
+ "bbox": [
953
+ 174,
954
+ 133,
955
+ 825,
956
+ 189
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "REFERENCES ",
963
+ "text_level": 1,
964
+ "bbox": [
965
+ 176,
966
+ 210,
967
+ 287,
968
+ 226
969
+ ],
970
+ "page_idx": 9
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "Hongyun Cai, Vincent W Zheng, and Kevin Chen-Chuan Chang. A comprehensive survey of graph embedding: Problems, techniques and applications. arXiv preprint arXiv:1709.07604, 2017. ",
975
+ "bbox": [
976
+ 174,
977
+ 233,
978
+ 823,
979
+ 262
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 891–900. ACM, 2015. ",
986
+ "bbox": [
987
+ 174,
988
+ 270,
989
+ 823,
990
+ 314
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Shiyu Chang, Wei Han, Jiliang Tang, Guo-Jun Qi, Charu C Aggarwal, and Thomas S Huang. Heterogeneous network embedding via deep architectures. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 119–128. ACM, 2015. ",
997
+ "bbox": [
998
+ 174,
999
+ 321,
1000
+ 821,
1001
+ 366
1002
+ ],
1003
+ "page_idx": 9
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3837–3845, 2016. ",
1008
+ "bbox": [
1009
+ 173,
1010
+ 373,
1011
+ 825,
1012
+ 416
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "Ludovic Dos Santos, Benjamin Piwowarski, and Patrick Gallinari. Multilabel classification on heterogeneous graphs with gaussian embeddings. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 606–622. Springer, 2016. ",
1019
+ "bbox": [
1020
+ 174,
1021
+ 425,
1022
+ 821,
1023
+ 469
1024
+ ],
1025
+ "page_idx": 9
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Soumyajit Ganguly and Vikram Pudi. Paper2vec: Combining graph and text information for scientific paper representation. In European Conference on Information Retrieval, pp. 383–395. Springer, 2017. ",
1030
+ "bbox": [
1031
+ 174,
1032
+ 477,
1033
+ 821,
1034
+ 520
1035
+ ],
1036
+ "page_idx": 9
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "C Lee Giles, Kurt D Bollacker, and Steve Lawrence. Citeseer: An automatic citation indexing system. In Proceedings of the third ACM conference on Digital libraries, pp. 89–98. ACM, 1998. ",
1041
+ "bbox": [
1042
+ 171,
1043
+ 527,
1044
+ 825,
1045
+ 558
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "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. ",
1052
+ "bbox": [
1053
+ 174,
1054
+ 565,
1055
+ 825,
1056
+ 609
1057
+ ],
1058
+ "page_idx": 9
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. arXiv preprint arXiv:1705.02801, 2017. ",
1063
+ "bbox": [
1064
+ 168,
1065
+ 617,
1066
+ 825,
1067
+ 647
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016. ",
1074
+ "bbox": [
1075
+ 174,
1076
+ 655,
1077
+ 825,
1078
+ 698
1079
+ ],
1080
+ "page_idx": 9
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "W. L. Hamilton, R. Ying, and J. Leskovec. Representation Learning on Graphs: Methods and Applications. ArXiv e-prints, September 2017. ",
1085
+ "bbox": [
1086
+ 173,
1087
+ 707,
1088
+ 823,
1089
+ 736
1090
+ ],
1091
+ "page_idx": 9
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017. ",
1096
+ "bbox": [
1097
+ 173,
1098
+ 744,
1099
+ 821,
1100
+ 773
1101
+ ],
1102
+ "page_idx": 9
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Shizhu He, Kang Liu, Guoliang Ji, and Jun Zhao. Learning to represent knowledge graphs with gaussian embedding. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, pp. 623–632. ACM, 2015. ",
1107
+ "bbox": [
1108
+ 174,
1109
+ 781,
1110
+ 823,
1111
+ 825
1112
+ ],
1113
+ "page_idx": 9
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 833,
1121
+ 823,
1122
+ 863
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Xiao Huang, Jundong Li, and Xia Hu. Label informed attributed network embedding. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 871,
1132
+ 736,
1133
+ 887
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1140
+ "bbox": [
1141
+ 173,
1142
+ 895,
1143
+ 821,
1144
+ 924
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016a. ",
1151
+ "bbox": [
1152
+ 171,
1153
+ 103,
1154
+ 823,
1155
+ 132
1156
+ ],
1157
+ "page_idx": 10
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016b. ",
1162
+ "bbox": [
1163
+ 174,
1164
+ 143,
1165
+ 823,
1166
+ 172
1167
+ ],
1168
+ "page_idx": 10
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "Yann LeCun, Sumit Chopra, Raia Hadsell, M Ranzato, and F Huang. A tutorial on energy-based learning. Predicting structured data, 1:0, 2006. ",
1173
+ "bbox": [
1174
+ 174,
1175
+ 184,
1176
+ 821,
1177
+ 213
1178
+ ],
1179
+ "page_idx": 10
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008. ",
1184
+ "bbox": [
1185
+ 173,
1186
+ 224,
1187
+ 823,
1188
+ 253
1189
+ ],
1190
+ "page_idx": 10
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. Automating the construction of internet portals with machine learning. Information Retrieval, 3(2):127–163, 2000. ",
1195
+ "bbox": [
1196
+ 176,
1197
+ 265,
1198
+ 823,
1199
+ 308
1200
+ ],
1201
+ "page_idx": 10
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013. ",
1206
+ "bbox": [
1207
+ 173,
1208
+ 319,
1209
+ 823,
1210
+ 349
1211
+ ],
1212
+ "page_idx": 10
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \\` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016. ",
1217
+ "bbox": [
1218
+ 174,
1219
+ 359,
1220
+ 823,
1221
+ 402
1222
+ ],
1223
+ "page_idx": 10
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. In Proceedings of the 33rd annual international conference on machine learning. ACM, 2016. ",
1228
+ "bbox": [
1229
+ 171,
1230
+ 414,
1231
+ 823,
1232
+ 457
1233
+ ],
1234
+ "page_idx": 10
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "text": "Shirui Pan, Jia Wu, Xingquan Zhu, Chengqi Zhang, and Yang Wang. Tri-party deep network representation. Network, 11(9):12, 2016. ",
1239
+ "bbox": [
1240
+ 171,
1241
+ 468,
1242
+ 821,
1243
+ 498
1244
+ ],
1245
+ "page_idx": 10
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "text": "Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014. ",
1250
+ "bbox": [
1251
+ 174,
1252
+ 508,
1253
+ 821,
1254
+ 553
1255
+ ],
1256
+ "page_idx": 10
1257
+ },
1258
+ {
1259
+ "type": "text",
1260
+ "text": "Trang Pham, Truyen Tran, Dinh Q Phung, and Svetha Venkatesh. Column networks for collective classification. In AAAI, pp. 2485–2491, 2017. ",
1261
+ "bbox": [
1262
+ 173,
1263
+ 563,
1264
+ 823,
1265
+ 593
1266
+ ],
1267
+ "page_idx": 10
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93, 2008. ",
1272
+ "bbox": [
1273
+ 169,
1274
+ 603,
1275
+ 823,
1276
+ 633
1277
+ ],
1278
+ "page_idx": 10
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Xiaofei Sun, Jiang Guo, Xiao Ding, and Ting Liu. A general framework for content-enhanced network representation learning. arXiv preprint arXiv:1610.02906, 2016. ",
1283
+ "bbox": [
1284
+ 171,
1285
+ 643,
1286
+ 825,
1287
+ 672
1288
+ ],
1289
+ "page_idx": 10
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Jian Tang, Meng Qu, and Qiaozhu Mei. Pte: Predictive text embedding through large-scale heterogeneous text networks. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1165–1174. ACM, 2015a. ",
1294
+ "bbox": [
1295
+ 174,
1296
+ 684,
1297
+ 825,
1298
+ 728
1299
+ ],
1300
+ "page_idx": 10
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077. ACM, 2015b. ",
1305
+ "bbox": [
1306
+ 173,
1307
+ 738,
1308
+ 825,
1309
+ 781
1310
+ ],
1311
+ "page_idx": 10
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "Luke Vilnis and Andrew McCallum. Word representations via gaussian embedding. arXiv preprint arXiv:1412.6623, 2014. ",
1316
+ "bbox": [
1317
+ 168,
1318
+ 792,
1319
+ 825,
1320
+ 821
1321
+ ],
1322
+ "page_idx": 10
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1225–1234. ACM, 2016. ",
1327
+ "bbox": [
1328
+ 173,
1329
+ 833,
1330
+ 823,
1331
+ 876
1332
+ ],
1333
+ "page_idx": 10
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "Cheng Yang, Zhiyuan Liu, Deli Zhao, Maosong Sun, and Edward Y Chang. Network representation learning with rich text information. In IJCAI, pp. 2111–2117, 2015. ",
1338
+ "bbox": [
1339
+ 173,
1340
+ 887,
1341
+ 825,
1342
+ 917
1343
+ ],
1344
+ "page_idx": 10
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "APPENDIX ",
1349
+ "text_level": 1,
1350
+ "bbox": [
1351
+ 176,
1352
+ 102,
1353
+ 264,
1354
+ 117
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "A PROOF OF THEOREM 1 ",
1361
+ "bbox": [
1362
+ 176,
1363
+ 138,
1364
+ 357,
1365
+ 154
1366
+ ],
1367
+ "page_idx": 11
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "To prove Theorem 1 we start with the loss $\\mathcal { L } _ { s }$ (Eq. 2), and show that by applying the expectation operator we will obtain the original loss $\\mathcal { L }$ (Eq. 1). From there it trivially follows that taking the gradient with respect to $\\mathcal { L } _ { s }$ for a set of samples gives us an unbiased estimate of the gradient of $\\mathcal { L }$ . ",
1372
+ "bbox": [
1373
+ 174,
1374
+ 167,
1375
+ 825,
1376
+ 212
1377
+ ],
1378
+ "page_idx": 11
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "First we notice that both $\\mathcal { L }$ and $\\mathcal { L } _ { s }$ are summing over $i$ , thus it is sufficient to show that the losses are equal in expectation for a single node $i$ . Denoting with $\\mathcal { L } _ { s } ^ { ( i ) }$ the loss for a single node $i$ and with $E _ { i , k , l } = E _ { i j _ { k } } { } ^ { 2 } + \\exp ^ { - E _ { i j _ { l } } }$ for notational convenience we have: ",
1383
+ "bbox": [
1384
+ 174,
1385
+ 217,
1386
+ 825,
1387
+ 265
1388
+ ],
1389
+ "page_idx": 11
1390
+ },
1391
+ {
1392
+ "type": "equation",
1393
+ "img_path": "images/c09295d6d95af7847045d4999e35f0a95cac1388e46db5c32410f9b11fc67b6e.jpg",
1394
+ "text": "$$\n\\begin{array} { r l } & { \\| \\nabla _ { x } ^ { \\bot } \\varphi \\| _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } = \\frac { 1 } { \\lambda _ { x } ^ { 2 } } \\sum _ { t _ { i } ^ { \\prime } \\in \\mathcal H _ { 1 } } ^ { 1 } \\lambda _ { t _ { i } ^ { \\prime } } \\sum _ { \\lambda _ { x } ^ { \\prime } } ^ { \\lambda _ { \\prime } } \\lambda _ { t _ { i } ^ { \\prime } } \\Big | \\nabla _ { x } ^ { \\bot } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } } \\\\ & { \\quad - \\frac { 1 } { \\lambda _ { x } ^ { 2 } } \\sum _ { t _ { i } ^ { \\prime } \\in \\mathcal H _ { 1 } } \\lambda _ { t _ { i } ^ { \\prime } } \\sum _ { \\lambda _ { x } ^ { \\prime } } \\lambda _ { t _ { i } ^ { \\prime } } \\Big | \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } \\cdot \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } } \\\\ & { \\quad + \\frac { 1 } { \\lambda _ { x } ^ { 2 } } \\sum _ { t _ { i } ^ { \\prime } \\in \\mathcal H _ { 1 } } \\lambda _ { t _ { i } ^ { \\prime } } \\sum _ { \\lambda _ { x } ^ { \\prime } } \\lambda _ { t _ { i } ^ { \\prime } } \\Big | \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } \\cdot \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } \\cdot \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } } \\\\ & { \\quad - \\frac { 1 } { \\lambda _ { x } ^ { 2 } } \\sum _ { t _ { i } ^ { \\prime } \\in \\mathcal H _ { 1 } } \\lambda _ { t _ { i } ^ { \\prime } } \\Big | \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } \\cdot \\nabla _ { x } \\varphi \\Big | _ { L ^ { 2 } ( \\mathcal H _ { 1 } ) } ^ { 2 } } \\\\ & \\quad - \\frac { 1 } { \\lambda _ { x } ^ { 2 } } \\sum _ { t _ { i } ^ { \\prime } \\in \\mathcal H _ { 1 } } \\lambda _ { t _ { i } ^ { \\prime } } \\Big | \\nabla _ { x } \\varphi \\Big | _ L ^ \\end{array}\n$$",
1395
+ "text_format": "latex",
1396
+ "bbox": [
1397
+ 256,
1398
+ 291,
1399
+ 754,
1400
+ 659
1401
+ ],
1402
+ "page_idx": 11
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "In step (1) we have expanded the sum over $k \\ < \\ l$ in independent terms. In step (2) we have marginalized the expectation over the variables that do not appear in the expression, e.g. for the term $\\mathbb { E } _ { ( j _ { 1 } , . . . , j _ { K } ) \\sim ( N _ { i 1 } , . . . , N _ { i K } ) } | N _ { i 1 } | \\cdot | N _ { i 2 } | \\cdot E _ { i 1 2 }$ we can marginalize over $j _ { p }$ where $p \\neq 1$ and $p \\neq 2$ since the term doesn’t depend on them. In step (3) we have expanded the expectation term. In step (4) we have substituted $p ( j _ { p } )$ with $\\frac { 1 } { | N _ { i j p } | }$ since we are sampling uniformly at random. ",
1407
+ "bbox": [
1408
+ 173,
1409
+ 683,
1410
+ 825,
1411
+ 760
1412
+ ],
1413
+ "page_idx": 11
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Since $\\mathcal { L } _ { s } ^ { ( i ) }$ is equal to $\\mathcal { L } ^ { ( i ) }$ in expectation it follows that $\\nabla { \\mathcal { L } } _ { s }$ based on a set of samples is an unbiased estimate of $\\nabla \\mathcal { L }$ . ",
1418
+ "bbox": [
1419
+ 174,
1420
+ 767,
1421
+ 823,
1422
+ 797
1423
+ ],
1424
+ "page_idx": 11
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "B IMPLEMENTATION DETAILS ",
1429
+ "text_level": 1,
1430
+ "bbox": [
1431
+ 174,
1432
+ 824,
1433
+ 390,
1434
+ 838
1435
+ ],
1436
+ "page_idx": 11
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Architecture and hyperparameters. We observed that Graph2Gauss is not sensitive to the choice of hyperparameters such as number and size of hidden layers. Better yet, as shown in Sec. 4.4, Graphs2Gauss is also not sensitive to the size of the embedding $L$ . Thus, for a new graph, one can simply pick a relatively large embedding size and if required prune it later similarly to the analysis performed in Fig. 4(c). ",
1441
+ "bbox": [
1442
+ 174,
1443
+ 853,
1444
+ 825,
1445
+ 924
1446
+ ],
1447
+ "page_idx": 11
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "As a sensible default we recommend an encoder with a single hidden layer of size $s _ { 1 } = 5 1 2$ . More specifically, to obtain the embeddings for a node $i$ we have ",
1452
+ "bbox": [
1453
+ 173,
1454
+ 103,
1455
+ 825,
1456
+ 132
1457
+ ],
1458
+ "page_idx": 12
1459
+ },
1460
+ {
1461
+ "type": "equation",
1462
+ "img_path": "images/f8a44527b2bd061fef4521219d8925761cd869356e50c9cc1fee9c745ca84864.jpg",
1463
+ "text": "$$\n\\mathbf { h } _ { i } = \\mathrm { r e l u } ( \\mathbf { X } _ { i } \\mathbf { W } + \\mathbf { b } ) \\qquad \\mu _ { i } = \\mathbf { h } _ { \\mathbf { i } } \\mathbf { W } _ { \\mu } + \\mathbf { b } _ { \\mu } \\qquad \\sigma _ { i } = \\mathrm { e l u } ( \\mathbf { h } _ { i } \\mathbf { W } _ { \\Sigma } + \\mathbf { b } _ { \\Sigma } ) + 1\n$$",
1464
+ "text_format": "latex",
1465
+ "bbox": [
1466
+ 238,
1467
+ 138,
1468
+ 759,
1469
+ 156
1470
+ ],
1471
+ "page_idx": 12
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "where $\\mathbf { x } _ { i }$ are node attributes, relu and elu are the rectified linear unit and exponential linear unit respectively. In practice, we found that the softplus works equally well as the elu for making sure that $\\sigma _ { i }$ are positive and in turn $\\Sigma _ { i }$ is positive definite. We used Xavier initialization (Glorot & Bengio, 2010) for the weight matrices $\\mathbf { W } \\in \\mathbb { R } ^ { D \\times s _ { 1 } }$ , $\\mathbf { b } \\in \\mathbb { R } ^ { s _ { 1 } }$ , $\\mathbf { W } _ { \\mu } \\in \\mathbb { R } ^ { s _ { 1 } \\times L / 2 }$ , $\\mathbf { b } _ { \\pmb { \\mu } } \\in \\mathbb { R } ^ { L / 2 }$ , $\\mathbf { W _ { \\Sigma } } \\in$ $\\mathbb { R } ^ { s _ { 1 } \\times L / 2 }$ , $\\mathbf { b } _ { \\pm } \\in \\mathbb { R } ^ { L / 2 }$ . As discussed in Sec. 3.4, multiple hidden layers, or other architectures such as CNNs/RNNs can also be used based on the specific problem. ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 170,
1479
+ 825,
1480
+ 258
1481
+ ],
1482
+ "page_idx": 12
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "Unlike other approaches using Gaussian embeddings (Vilnis & McCallum, 2014; He et al., 2015; Dos Santos et al., 2016) we do not explicitly regularize the norm of the means and we do not clip the covariance matrices. Given the self-regularizing nature of the KL divergence this is unnecessary, as was confirmed in our experiments. The parameters are optimized using Adam (Kingma & Ba, 2014) with a fixed learning rate of 0.001 and no learning rate annealing/decay. ",
1487
+ "bbox": [
1488
+ 174,
1489
+ 263,
1490
+ 825,
1491
+ 334
1492
+ ],
1493
+ "page_idx": 12
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "text": "Edge cover. Some of the methods such as node2vec (Grover & Leskovec, 2016) are not able to produce an embedding for nodes that have not been seen during training. Therefore, it is important to make sure that during the train-validation-test split of the edge set, every node appears at least once in the train set. Random sampling of the edges does not guarantee this, especially when allocating a low percentage of edges in the train set during the split. To guarantee that every node appears at least once in the train set we have to find an edge cover. An edge cover of a graph is a set of edges such that every node of the graph is incident to at least one edge of the set. The minimum edge cover problem is the problem of finding an edge cover of minimum size. The dashed line in Figures 1(c) and 1(d) indicates exactly the size of the minimum edge cover. This condition had to be satisfied for the competing methods, however, since Graph2Gauss is inductive, it does not require that every node is in the train set. ",
1498
+ "bbox": [
1499
+ 174,
1500
+ 340,
1501
+ 825,
1502
+ 494
1503
+ ],
1504
+ "page_idx": 12
1505
+ }
1506
+ ]
parse/train/r1ZdKJ-0W/r1ZdKJ-0W_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1ZdKJ-0W/r1ZdKJ-0W_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkxmPgrKwB/rkxmPgrKwB.md ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WEIGHT-SPACE SYMMETRY IN NEURAL NETWORK LOSS LANDSCAPES REVISITED
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Neural network training depends on the structure of the underlying loss landscape, i.e. local minima, saddle points, flat plateaus, and loss barriers. In relation to the structure of the landscape, we study the permutation symmetry of neurons in each layer of a deep neural network, which gives rise not only to multiple equivalent global minima of the loss function but also to critical points in between partner minima. In a network of $d - 1$ hidden layers with $n _ { k }$ neurons in layers $k = 1 , \dots , d$ , we construct continuous paths between equivalent global minima that lead through a ‘permutation point’ where the input and output weight vectors of two neurons in the same hidden layer $k$ collide and interchange. We show that such permutation points are critical points which lie inside high-dimensional subspaces of equal loss, contributing to the global flatness of the landscape. We also find that a permutation point for the exchange of neurons $i$ and $j$ transits into a flat high-dimensional plateau that enables all $n _ { k } !$ permutations of neurons in a given layer $k$ at the same loss value. Moreover, we introduce higher-order permutation points by exploiting the hierarchical structure in the loss landscapes of neural networks, and find that the number of $K$ -th order permutation points is much larger than the (already huge) number of equivalent global minima – at least by a polynomial factor of order $K$ . In two tasks, we demonstrate numerically with our path finding method that continuous paths between partner minima exist: first, in a toy network with a single hidden layer on a function approximation task and, second, in a multilayer network on the MNIST task. Our geometric approach yields a lower bound on the number of critical points generated by weight-space symmetries and provides a simple intuitive link between previous theoretical results and numerical observations.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The structure of the loss landscape plays an important role in the optimization of neural network parameters. A large number of numerical (Dauphin et al., 2014; Goodfellow et al., 2014; Li et al., 2018; Sagun et al., 2014; 2016; Ballard et al., 2017; Garipov et al., 2018; Draxler et al., 2018; Sagun et al., 2017; Baity-Jesi et al., 2018) and theoretical (Choromanska et al., 2015; Rasmussen, 2003; Freeman and Bruna, 2016; Soudry and Carmon, 2016; Nguyen and Hein, 2017) studies have explored the properties of the loss landscape. In particular, in a multilayer network of $d - 1$ hidden layers with $n$ neurons each, there are $( n ! ) ^ { { d - 1 } }$ equivalent configurations corresponding to the permutation of neuron indices in each layer of the network (Goodfellow et al., 2016; Bishop, 1995). The permutation symmetries give rise to a loss landscape where any given global minimum in the weight space must have $( n ! ) ^ { d - 1 } - 1$ completely equivalent partner minima. This property of neural network landscapes is called weight-space symmetry.
12
+
13
+ Several (Saad and Solla, 1995; Amari et al., 2006; Wei et al., 2008) works explored the implications of weight-space symmetry for training dynamics in two-layer networks and found that training dynamics slow down near the singular regions caused by weight-space symmetry. Dauphin et al. (2014); Orhan and Pitkow (2017) argue that optimization paths may get close to the singular regions induced by weight-space symmetry and this, in turn, slows down training for deep neural networks. Exploiting weight-space symmetries, we give insights into and partial explanations of three observations on neural network landscapes.
14
+
15
+ Observation 1. Training dynamics are slow near singular regions caused by weight-space symmetry and stochastic gradient descent might travel near these regions throughout training (Saad and Solla, 1995; Wei et al., 2008; Amari et al., 2006; Dauphin et al., 2014; Orhan and Pitkow, 2017).
16
+
17
+ Observation 2. The Hessian of the loss function has numerous almost-zero eigenvalues throughout training, thus the landscape is flat in many directions (Sagun et al., 2017; Papyan, 2018; Ghorbani et al., 2019).
18
+
19
+ Related to observation 1 and 2, we prove the existence of numerous connected high-dimensional plateaus extending across the landscape due to weight-space symmetries.
20
+
21
+ Observation 3. The number of saddles can grow exponentially in neural network landscapes (Auer et al., 1996; Dauphin et al., 2014; Choromanska et al., 2015).
22
+
23
+ Related to observation 3, we prove that there are at least polynomially many more saddles than the global minima due to weight-space symmetries in neural networks, without any further assumptions.
24
+
25
+ In addition, we propose a novel low-loss path finding algorithm to find barriers between partner minima. We start from the known permutation symmetries and consider continuous low-loss paths that connect two equivalent global minima by merging the weight vectors of two neurons in a specific way. At a so-called permutation point, where the distance between the input and output weight vectors of the two neurons vanishes, the indices of the two neurons can be interchanged at no extra cost. After the change, the system returns on the ‘mirrored’ path back to the original configuration except for the permutation of one pair of indices.
26
+
27
+ Surprisingly, we find that we can permute all neuron indices in the same layer at the same cost as the loss at a permutation point reached by moving along the path that merges a single pair of neurons. These constant-loss permutations are possible because each permutation point lies in a high-dimensional plateau of critical points. Our theory can be extended to higher-order saddles and provides explicit lower bounds for the number of first- and higher-order permutation points. Numerically, we confirm the existence of first-order permutation saddles.
28
+
29
+ In particular, the specific contributions of our work are:
30
+
31
+ • A simple low-loss path-finding algorithm linking partner global minima via a permutation point, implemented by minimization under a single scalar constraint (distance of weight vectors).
32
+ The theoretical characterization of permutation points, for example that these are critical points and several permutation points are connected via paths at equal loss.
33
+ • A lower bound for the number of first- and higher-order permutation points and their corresponding plateaus.
34
+ • Numerical demonstrations of the path finding method in multilayer neural networks trained on MNIST.
35
+
36
+ # 1.1 RELATED WORK
37
+
38
+ Structure of the landscape. For linear networks, it was shown that all the critical points – except for the global minimum – are saddles in the case of two-layer (Baldi and Hornik, 1989) or multilayer networks (Freeman and Bruna, 2016; Kawaguchi, 2016; Lu and Kawaguchi, 2017). Interestingly, deep linear networks are reported to exhibit sharp transitions at the edges of extended plateaus (Saxe et al., 2013), similar to the plateaus observed in deep nonlinear networks (Goodfellow et al., 2014). For nonlinear multilayer networks, Choromanska et al. (2015) argue that all local minima lie below a certain loss value by drawing connections to the spherical spin-glass model. Improving upon this result, Soudry and Carmon (2016); Nguyen and Hein (2017) prove that almost all local minima are global minima for multilayer networks under mild over-parametrization assumptions.
39
+
40
+ Bottom of the landscape. Another line of research studies the bottom of the landscape containing global minima and low-loss barriers between them. Freeman and Bruna (2016) prove the existence of low-loss paths connecting global minima for wide two-layer networks by upper-bounding the loss along the path with a parameter that depends on the number of parameters and data smoothness. Draxler et al. (2018) use Nudged Elastic Band method introduced in Jónsson et al. (1998) to connect independent minima and numerically find that the barrier vanishes consistently for increasing width and depth in DenseNet, ConvNet and ResNet architectures trained on CIFAR datasets. In a simultaneous work, Garipov et al. (2018) confirm that there is no significant barrier by connecting independent minima with polygonal chains.
41
+
42
+ Training dynamics in the landscape. For general loss functions, Lee et al. (2016) show that gradient descent with sufficiently small step-size converges to local minima if all the saddles have at least one negative eigenvalue. For overparametrized neural networks, gradient descent converges to global minima without moving far from initialization (Jacot et al., 2018; Du et al., 2018a;b), thus suggesting convex-like behavior around random initialization. For the finite size networks, how training dynamics converge to a minima and in particular how fast they converge remain an open question. For soft-committee machines, it turns out that the initial learning dynamics are slowed down by correlation of hidden neurons (Saad and Solla, 1995; Engel and Van den Broeck, 2001; Inoue et al., 2003). Amari et al. (2006); Wei et al. (2008) show that training dynamics slow down near singular regions due to weight-space symmetry. Dauphin et al. (2014) empirically argue that the large number of saddle points in the landscape makes training slow. Orhan and Pitkow (2017) numerically find that stochastic gradient descent may slow down near plateaus due to weight-space symmetry for deep (30 layers) feedforward networks trained on CIFAR100.
43
+
44
+ In this paper we show that there is an impressively large number of permutation points. Each permutation point is a critical point (either a local minimum or a saddle) with a large number of flat directions, potentially linked to the empirically observed plateaus. In contrast to an earlier study by Fukumizu and Amari (2000) with a scalar output for two-layered networks where a line of critical points around the permutation point was reported, we study a deep network with $d - 1$ hidden layers and find multi-dimensional equal-loss plateaus. Moreover, we give a novel lower bound on the number of permutation points and construct sample paths between global minima using an algorithm that is different from previously used methods (Garipov et al., 2018; Draxler et al., 2018), since it exploits the symmetries at the permutation point.
45
+
46
+ # 1.2 PRELIMINARIES
47
+
48
+ We study multilayer neural networks $f ( \pmb { x } ; \pmb { \theta } )$ with input $\pmb { x } \in \mathbb { R } ^ { n _ { 0 } }$ , $d$ layers of $n _ { 1 } , \ldots , n _ { d }$ neurons per layer, parameters $\pmb \theta = \{ \pmb W ^ { ( k ) } \in \mathbb { R } ^ { n _ { k } \times n _ { k - 1 } }$ and $b ^ { ( k ) } \in \mathbb { R } ^ { n _ { k } } : k \in \{ 1 , . . . , d \} \} \in \Theta$ and $n _ { d }$ -dimensional output
49
+
50
+ $$
51
+ \begin{array} { r } { f ( \pmb { x } ; \pmb { \theta } ) = \pmb { W } ^ { ( d ) } g \bigg ( \cdot \cdot \cdot g \Big ( \pmb { W } ^ { ( 2 ) } g \big ( \pmb { W } ^ { ( 1 ) } \pmb { x } + \pmb { b } ^ { ( 1 ) } \big ) + \pmb { b } ^ { ( 2 ) } \Big ) \cdot \cdot \cdot \bigg ) + \pmb { b } ^ { ( d ) } , } \end{array}
52
+ $$
53
+
54
+ where $g$ is a nonlinear activation function that operates component-wise on any vector.
55
+
56
+ Definition 1 & 2. (Parameter vector) We define the parameter vector $\vartheta _ { m } ^ { ( k ) }$ of neuron $m$ in layer $k$ as the incoming weights to a neuron $m$ in layer $k$ concatenated with its bias term: $\pmb { \vartheta } _ { m } ^ { ( k ) } = \bigl [ \pmb { W } _ { m , 1 } ^ { ( k ) } , \ldots , \pmb { W } _ { m , n _ { k - 1 } } ^ { ( k ) } , \pmb { b } _ { m } ^ { ( k ) } \bigr ]$ . (Output weight vector) We define the output weight vector of neuron $m$ in layer $k$ as its outgoing weights from neuron $m$ in layer $k$ to the next layer: $\big [ \pmb { W } _ { 1 , m } ^ { ( k + 1 ) } , \ldots , \pmb { W } _ { n _ { k + 1 } , m } ^ { ( k + 1 ) } \big ]$ .
57
+
58
+ Since one can permute the neurons within each layer without changing the network function $f ( \pmb { x } ; \pmb { \theta } )$ , any point $\pmb \theta$ induces a ‘permutation set’. Definition 3. (Permutation set)
59
+
60
+ $$
61
+ \begin{array} { r } { P ( \theta ) = \{ \theta ^ { \prime } \in \Theta : W _ { \sigma ^ { ( k ) } ( i ) , \sigma ^ { ( k - 1 ) } ( j ) } ^ { \prime ( k ) } = W _ { i , j } ^ { ( k ) } \mathrm { ~ a n d ~ } b _ { \sigma ^ { ( k ) } ( i ) } ^ { \prime ( k ) } = b _ { i } ^ { ( k ) } , k \in \{ 1 , \dots , d \} \} , } \end{array}
62
+ $$
63
+
64
+ of points $\pmb { \theta } ^ { \prime }$ with $f ( \pmb { x } ; \pmb { \theta } ) = f ( \pmb { x } ; \pmb { \theta } ^ { \prime } )$ , where $\sigma ^ { ( k ) }$ are permutations of the neuron indices $\{ 1 , \dots , n _ { k } \}$ in (hidden) layer $k$ where $\boldsymbol { \sigma } ^ { ( 0 ) }$ and $\sigma ^ { ( d ) }$ are fixed trivial permutations, since we want to permute neither the indices of the input nor that of the output. We will use the notation $\pmb { \theta } ^ { \prime } = \sigma _ { l m } ^ { ( k ) } ( \pmb { \theta } )$ to indicate a point $\pmb { \theta } ^ { \prime }$ that differs from $\pmb \theta$ only by swapping neurons $l$ and $m$ in layer $k$ .
65
+
66
+ Note that the cardinality of a permutation set is maximal with $\begin{array} { r } { | P ( \pmb { \theta } ) | = \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ only if all parameter vectors following, we will $\vartheta _ { l } ^ { ( k ) } \neq \vartheta _ { m } ^ { ( k ) }$ are distinct for every at global minima, all p $l \neq m$ and layer er vectors $k \in \{ 1 , \ldots , d - 1 \}$ . In t layer $k$
67
+
68
+ Definition 4. (Permutation point) Consider a minimum of a multilayer network with $( n _ { 1 } , \ldots , n _ { k } -$ $1 , \ldots , n _ { d } )$ neurons per layer. We can map this minimum to a configuration in the landscape of a multilayer network with $( n _ { 1 } , \ldots , n _ { k } , \ldots , n _ { d } )$ neurons per layer by duplicating one neuron $m \in$ $\{ 1 , \ldots , n _ { k } - 1 \}$ in layer $k$ as follows: (i) substitute the parameter vector of the new neuron with a copy of the parameter vector $\vartheta _ { m } ^ { ( k ) }$ of neuron $m$ , (ii) replace the output weight vector of the new neuron and the duplicated neuron $m$ with the initial output weight of neuron $m$ rescaled by $\textstyle { \frac { 1 } { 2 } }$ , and (iii) keep all the other parameters the same. This new configuration where the parameter vectors and a permutation point, denoted by the output weight vectors of the new neuron and the duplicated neuron $\pmb { \theta } _ { l m } ^ { ( k ) }$ , i.e. $\pmb { \theta } _ { l \Leftrightarrow m } ^ { ( k ) } = \sigma _ { l \Leftrightarrow m } ^ { ( k ) } ( \pmb { \theta } _ { l m } ^ { ( k ) } )$ . $m$ are the same will be called
69
+
70
+ For training data $D = \{ ( { \pmb x } ^ { \mu } , y ^ { \mu } ) : \mu \in \{ 1 , . . . , T \} \}$ with targets $y ^ { \mu } \in \mathcal { V }$ , we define a loss function $\begin{array} { r } { L ( \pmb { \theta } ; D ) = \frac { 1 } { T } \sum _ { \mu = 1 } ^ { T } \ell \big ( y ^ { \mu } , f ( \pmb { x } ^ { \mu } ; \pmb { \theta } ) \big ) } \end{array}$ , where $\ell : \mathcal { V } \times \mathbb { R } ^ { n _ { d } } \to \mathbb { R }$ is some single-sample loss function. To simplify notation we will usually omit the explicit mentioning of the data in the loss function, i.e. $L ( \mathbf { \boldsymbol { \theta } } ) \equiv L ( \mathbf { \boldsymbol { \theta } } ; D )$ .
71
+
72
+ A
73
+
74
+ ![](images/17479c5aadb93dc09b8ab15e07cef31df8d5f2ff4104acc3965cc0401f37224e.jpg)
75
+ Figure 1: A. Configuration of two parameter vectors $\vartheta _ { l } ^ { ( k ) }$ and $\vartheta _ { m } ^ { ( k ) }$ (black) at a minimum and a potential path (green) towards a permutation point $\theta _ { l m } ^ { ( k ) } ( \star )$ m . The path is parametrized by the distance $d .$ . Along the path the distance $d$ (blue dashed lines) decreases continuously starting at $d _ { l , m } ^ { ( k ) } ( \theta )$ . Note that the path can lead to a permutation point far away from the initial configuration, outside the linear subspace spanned by the parameter vectors ϑ(k)l and $\vartheta _ { m } ^ { ( k ) }$ . B. We exclude hypothetical paths where the distance along the path increases.
76
+
77
+ # 2 MAIN RESULTS
78
+
79
+ In this section, we will first present a novel method to find a low-loss path between partner minima. Our method ensures that this path passes through a ‘permutation point’. We study the properties of permutation points. Furthermore, we will introduce higher-order permutation points and provide a lower-bound on their number.
80
+
81
+ # 2.1 A NOVEL METHOD TO CONSTRUCT LOW-LOSS PATHS BETWEEN PARTNER MINIMA
82
+
83
+ One natural question regarding the geometry of the bottom of the landscape is the following: is it possible to find a continous low-loss path that connects two minima? In this work, we are interested in finding the barriers between partner global minima. In particular, we want to find a continuous low-loss path $\gamma : [ 0 , 1 ] \Theta$ connecting two partner minima by first merging two parameter vectors and output weight vectors (‘permutation point’) and then completing the path using symmetry. We will first introduce some concepts to introduce this low-loss path between partner minima formally.
84
+
85
+ Definition 5. (Distance function) and returns the squared Euclidean $d _ { l , m } ^ { ( k ) } : \Theta \to \mathbb { R } ^ { + }$ is a distance function that takes a the parameter vectors of neuron confiand ration at lay $\pmb \theta$ $l$ $m$ $k$ :
86
+
87
+ $$
88
+ d _ { l , m } ^ { ( k ) } ( \pmb { \theta } ) = \| \pmb { \vartheta } _ { l } ^ { ( k ) } - \pmb { \vartheta } _ { m } ^ { ( k ) } \| ^ { 2 }
89
+ $$
90
+
91
+ Our idea is to find a low-barrier path $\begin{array} { r } { \gamma _ { * } = \arg \operatorname* { m i n } _ { \gamma : [ 0 , \frac { 1 } { 4 } ] \Theta } \operatorname* { m a x } _ { t \in [ 0 , \frac { 1 } { 4 } ] } L ( \gamma ( t ) ) } \end{array}$ under the following constraints for the initial $\mathit { t } = 0$ ) and quarter-way $\textstyle ( t = { \frac { 1 } { 4 } } )$ ) configurations: $\gamma _ { * } ( 0 ) = \theta$ , where $\pmb { \theta }$ is the parameter configuration at the minimum, and $d _ { l , m } ^ { ( k ) } ( \gamma _ { * } ( \textstyle { \frac { 1 } { 4 } } ) ) = 0$ . Furthermore, the distance between parameter vectors $\vartheta _ { l } ^ { ( k ) }$ and $\vartheta _ { m } ^ { ( k ) }$ in layer $k$ is decreasing, i.e. $d _ { l , m } ^ { ( k ) } ( \gamma _ { * } ( t ) ) < d _ { l , m } ^ { ( k ) } ( \gamma _ { * } ( t ^ { \prime } ) )$ for all $t > t ^ { \prime } \in [ 0 , \frac { 1 } { 4 } ] ^ { 1 }$ (see Fig. 1 and pseudocode in Appendix).
92
+
93
+ The quarter-way configuration guarantees that the parameter vectors are identical $\vartheta _ { l } ^ { ( k ) } = \vartheta _ { m } ^ { ( k ) }$ , but puts no constraints on the output weights of neurons $m$ and $l$ in layer $k$ . We can continously move from the quarter-way configuration $\begin{array} { r } { ( \bar { t } = \frac { 1 } { 4 } ) } \end{array}$ ) to a configuration at $\begin{array} { r } { \dot { t } = \frac { 1 } { 2 } } \end{array}$ where the outputs weights of the related neurons are equal, without making any changes to the network output or the loss $L$ as follows: we will increase all output weights $\boldsymbol { W } _ { n , l } ^ { k + 1 }$ of neuron $l$ and decrease the corresponding output weights W k+1n,m of neuron $m$ by the same amount continuously so as to keep their sum fixed until W k+1n,l $\boldsymbol { W } _ { n , l } ^ { k + 1 } = \boldsymbol { W } _ { n , m } ^ { k + 1 }$ for every neuron $n \in \{ 1 , \ldots , n _ { k + 1 } \}$ at layer $k + 1$ (see Appendix Fig. 4).
94
+
95
+ Lemma 1. The configuration at $\begin{array} { r } { t = \frac { 1 } { 2 } } \end{array}$ is one of the permutation points.
96
+
97
+ Once we have reached $\begin{array} { r } { t = \frac { 1 } { 2 } } \end{array}$ , we interchange the neuron indices of the ‘merged’ neurons and continue on the ‘mirror’ path that results from walking the first half of the path backwards with interchanged neuron indices, until we arrive at the partner minimum at $t = 1$ , i.e. $\begin{array} { r } { \gamma ( \frac { 1 } { 2 } + \tau ) = \sigma _ { l \Leftrightarrow m } ^ { ( k ) } ( \gamma ( \frac { 1 } { 2 } - \overline { { \tau } } ) ) } \end{array}$ for $\tau \in [ 0 , \frac { 1 } { 2 } ]$ .
98
+
99
+ To find such paths algorithmically, we reparametrize $\pmb { \vartheta } _ { m } ^ { ( k ) } ( t ) = \pmb { \vartheta } _ { l } ^ { ( k ) } ( t ) + d ( t ) \pmb { e } ( t )$ where $d ( t )$ is a positive scalar and $e ( t )$ is a unit-length vector. We start with $d ( 0 ) = d _ { l , m } ^ { ( k ) } ( \pmb { \theta } )$ and initialize $e$ in direction of the difference $\vartheta _ { m } ^ { ( k ) } - \vartheta _ { l } ^ { ( k ) }$ at the global minimum i.e., the initial parameter configuration. Next, we decrease $d$ infinitesimally and perform gradient descent for fixed $d$ on the loss $L$ until convergence. Note that all parameters can change, including $\vartheta _ { l } ^ { ( k ) }$ and $e$ during gradient descent. This procedure is repeated until $d = 0$ at $\begin{array} { r } { t = \frac { 1 } { 4 } } \end{array}$ . Finally we shift the respective output weights to the same value without changing the network function (see Appendix Fig. 4).
100
+
101
+ Since the path connects two partner minima, there must be at least one saddle point on the path $\gamma ( t ) , t \in [ 0 , 1 ]$ , potentially but not necessarily, at the permutation point. Moreover, there is no guarantee that the highest saddle should be located at the permutation point (see Appendix Fig. 5).
102
+
103
+ # 2.2 CHARACTERIZATION OF PERMUTATION POINTS
104
+
105
+ In an earlier work, Fukumizu and Amari (2000) studied a specific set of critical points induced by the hierarchical structure in the neural network landscapes in two-layer neural networks. Let $L ^ { ( H ) }$ be the loss function (‘landscape’) of a two-layer neural network with $H$ neurons in the hidden layer and a single output. They showed that any critical point in the landscape of $L ^ { ( H - 1 ) }$ induces a line of critical points in the landscape of $L ^ { ( H ) }$ . We study permutation points in the general setup for the neural networks with multiple outputs and multiple layers.
106
+
107
+ Theorem 1. (Fukumizu and Amari, 2000) By duplicating one parameter vector of any critical point in $L ^ { ( H - 1 ) }$ and keeping the sum of the two output weights corresponding to the duplicated parameter vectors fixed at the value of the original output weight, one obtains a line of critical points in $L ^ { ( H ) }$ . 2
108
+
109
+ Proposition 1. (i) Permutation points θ(k)l⇔m are critical points of the original loss function.
110
+
111
+ (ii) Any permutation point lies inside a $n _ { k + 1 }$ -dimensional equal-loss subspace of critical points.
112
+
113
+ (iii) All other permutations of neuron indices in layer $k$ can be performed by continuous equal-loss transformations starting from permutation points $\pmb { \theta } _ { l m } ^ { ( k ) }$ of neurons $l$ and $m$ , i.e. there is a continuous path $\rho : [ 0 , 1 ] \to \Theta$ such that $\pmb { \rho } ( 0 ) = \pmb { \theta } _ { l \Leftrightarrow m } ^ { ( k ) }$ and $\rho ( 1 ) = \theta _ { i \Leftrightarrow j } ^ { ( k ) }$ and $L ( \pmb { \rho } ( t ) ) = L ( \pmb { \rho } ( 0 ) )$ for all $t \in [ 0 , 1 ]$ and all $i \neq j \in \{ 1 , \ldots , n _ { k } \}$ . (Proofs: see appendix).
114
+
115
+ ![](images/2ac7652c42def1467d62b64cf2c5b31a5584f8ea61061652039538915455666b.jpg)
116
+ Figure 2: Paths to the same or to different permutation points. Top row. Configuration of the 5 weight vectors W (1)/b(1) of the first layer at the global minimum (blue) and at a permutation point (red) reached after merging the parameter vectors of two neurons. Note that the global minimum (i.e., the starting configuration) is the same for (A), (B) and (C) but the loss at the permutation point can be the same – (A) and (B) – or different – (A) and (C) – depending on the pair of neurons chosen for merging. Numbers indicate neurons. Bottom row. Quadratic loss $L$ as a function of the distance $d$ between the neurons to be merged. The distance was decreased in 200 logarithmically spaced steps from $d = d _ { l , m } ^ { ( 1 ) } ( \theta ^ { * } )$ to $1 / 1 0 ^ { 4 }$ of the initial value. For each $d$ , full batch gradient descent on the loss $L$ was performed until convergence. Training data was generated by sampling $1 0 ^ { 3 }$ two-dimensional input points $\pmb { x } ^ { \mu }$ from a standard normal distribution and computing labels $y ^ { \mu } = f ( x ^ { \mu } ; \theta ^ { * } )$ using a teacher network (shown in blue, equivalent to the configuration at the global minima). The teacher had a single layer of five hidden neurons with rectified-linear activation function $g$ and one linear output layer.
117
+
118
+ Therefore, each of the $\frac { n _ { k } ( n _ { k } - 1 ) } { 2 }$ different permutation points of layer $k$ corresponds to a plateau of $n _ { k + 1 }$ dimensions. This plateau enables the exchange of all indices in layer $k$ . Note that there can be multiple plateaus on different loss levels that correspond to different local minima of the smaller networks where one of the neurons is dropped at a permutation point. For example in Fig. 2 one can exchange all indices in the hidden layer through the configuration in A and $\mathbf { B }$ or through the configuration in C that has another loss level. Note that, amongst all these permutation points embedded in different plateaus, we could for example search for the one with the lowest cost —and this lowest-cost permutation would then also connect all global minima caused by arbitrary permutations of neurons in layer $k$ .
119
+
120
+ Definition 6. (Higher-order permutation point) Consider a minimum of a multilayer network with $( n _ { 1 } , \ldots , n _ { k } - K , \ldots , n _ { d } )$ neurons per layer. We can map this minimum to a configuration in the landscape of a multilayer network with $( n _ { 1 } , \ldots , n _ { k } , \ldots , n _ { d } )$ neurons per layer by replicating some neurons $m _ { j } \in \{ 1 , \ldots , n _ { k } - K \}$ in layer $k$ to fill out the parameters of new neurons as follows: (i) substitute the parameter vectors of the new neurons with one of the parameter vectors of the initial minimum, (ii) replace the output weight vectors of the new neurons and the output weight of the corresponding parameter vector $m _ { j }$ with the initial output weight of the replicated neuron $m _ { j }$ normalized so that the mentioned output weight vectors sum up to the original output weight vectors, and (iii) keep all the other parameters the same. This new configuration where the parameter vectors and the output weight vectors of the new neurons and the replicated neuron $m _ { j }$ for several $j$ in layer $k$ are the same will be called a $K$ -th order permutation point.
121
+
122
+ This natural generalization on the 1-st order permutation points to higher-orders enables generalizing Proposition 1(i) and (ii) to the $K$ -th order permutation points.
123
+
124
+ Proposition 2. (i) A $K$ -th order permutation point is a critical point of the original landscape. (ii) Any $K$ -th order permutation point at layer $k$ lies in a $K n _ { k + 1 }$ -dimensional subspace of equal loss parameter configurations. (Proofs: see appendix).
125
+
126
+ # 2.3 COUNTING HIGHER-ORDER PERMUTATION POINTS
127
+
128
+ A configuration in the landscape of $L ^ { ( H - K ) }$ can be mapped to an equivalent configuration in $L ^ { ( H ) }$ with the procedure described in Definition 6. We can then count the number of permutation points that reduce to the same configuration in $L ^ { ( H - K ) }$ combinatorially (see Appendix Fig. 6 for the explanation of combinatorial counting). For counting, we consider the cardinality of the permutation set of a permutation point. Since some parameter vectors are replicated, we have to consider permutations of sometimes identical neurons. This enables finding a lower bound on the number of critical points that have higher loss values than the global minima in general.
129
+
130
+ Proposition 3. In a neural network with $( n _ { 1 } , \ldots , n _ { d } )$ neurons per layer, let $T ( K , n _ { k } )$ denote the ratio of the number of $K ^ { \mathrm { t h } }$ -order permutations points at layer $k$ to the number of global minima for $k = 1 , \ldots , d - 1$ and $K \geq 1$ .
131
+
132
+ (i) For $K = 1 , 2 , 3$ and $n _ { k } \ge 2 K$ , we find $T ( K , n _ { k } )$ to be:
133
+
134
+ $$
135
+ \begin{array} { l } { \bullet \ { T ( K = 1 , n _ { k } ) = { \binom { n _ { k } - 1 } { 1 } } { \frac { 1 } { 2 } } } } \\ { \bullet \ { T ( K = 2 , n _ { k } ) = { \binom { n _ { k } - 2 } { 1 } } { \frac { 1 } { 3 ! } } + { \binom { n _ { k } - 2 } { 2 } } { \frac { 1 } { 2 ^ { 2 } } } } } \\ \bullet \ { T ( K = 3 , n _ { k } ) = { \binom { n _ { k } - 3 } { 1 } } { \frac { 1 } { 4 ! } } + { \binom { n _ { k } - 3 } { 2 } } { \frac { 1 } { 3 ! } } + { \binom { n _ { k } - 3 } { 3 } } { \frac { 1 } { 2 ^ { 3 } } } } \end{array}
136
+ $$
137
+
138
+ (ii) For general $K \leq n _ { k } / 2$ , we find the bound $T ( K , n _ { k } ) \ge \binom { n _ { k } - K } { K } \frac { 1 } { 2 ^ { K } }$ . (Proofs: see appendix)
139
+
140
+ Considering all the layers, we note that the number of permutation points of order $K$ is at least $\textstyle \sum _ { k = 1 } ^ { d - 1 } { \frac { 1 } { 2 ^ { K } } } { \binom { { \bar { n } } _ { k } - K } { K } }$ times more than the global minima for $2 K \le \operatorname* { m i n } _ { k } n _ { k }$ .
141
+
142
+ Lemma 2. For finite $K \in \mathbb { Z } ^ { + }$ and $n _ { k } \to \infty$ , $T ( K , n _ { k } ) > c _ { K } n _ { k } ^ { K }$ , since ${ \frac { 1 } { 2 ^ { K } } } \left( { { ^ { n _ { k } - K } } \atop K } \right) \to c _ { K } n _ { k } ^ { K }$
143
+
144
+ When one layer has large number of neurons (i.e. $n _ { k } \infty ,$ ) then the ratio $T ( K , n _ { k } )$ grows with $n _ { k } ^ { K }$
145
+
146
+ Every permutation point lies inside a high-dimensional subspace of equal loss (Proposition 2(ii), see Appendix Fig. 7 for illustration). Importantly, every permutation point lies inside a distinct but connected subspace. Therefore the count for permutation points holds for the corresponding high-dimensional equal-loss subspaces of critical points.
147
+
148
+ netw many h- $( n _ { 1 } , \ldots , n _ { d } )$ neurons per layer, there are (at least)ual-loss subspaces of critical points at the $\begin{array} { r } { \sum _ { k = 1 } ^ { d - 1 } T ( K , n _ { k } ) \prod _ { k = 1 } ^ { d - 1 } n _ { k } ! } \end{array}$ $K n _ { k + 1 }$ loss of a $K$ -th order permutation point for $2 K \le \operatorname* { m i n } _ { k } n _ { k }$
149
+
150
+ We could start at an arbitrary configuration in consider the landscape of $L ^ { ( H - K ) }$ and the corresponding equal-loss high-dimensional subspaces in $L ^ { ( H ) }$ , where each configuration in the subspace computes the same function as the initial configuration. This procedure again would yield the same number of high-dimensional equal-loss subspaces. Therefore due to weight-space symmetry, neural network landscapes do not only exhibit numerous high-dimensional plateaus of critical points but also numerous high-dimensional plateaus (of usually non-critical points) at various loss values.
151
+
152
+ # 3 EMPIRICAL RESULTS
153
+
154
+ Using a similar procedure as in the toy example (see Fig. 2), we constructed paths between global minima in a fully connected three-layer network with $n _ { 1 } = n _ { 2 } = H$ and $n _ { 3 } = 1 0$ neurons (see Fig. 3). In order to study global minima we used a student-teacher setting3: the teacher network was
155
+
156
+ pre-trained on the MNIST data set using negative log-likelihood loss and its parameters $\pmb { \theta } ^ { * }$ were kept fixed thereafter. We initialized the student with the parameters $\pmb { \theta } ^ { * }$ of the teacher and decreased the logarith $d$ cally spaced steps from to of the original $m$ ue. $l$ or every $k = 2$ f , t he $d _ { m , l } ^ { ( 2 ) } ( \pmb { \theta } ^ { * } )$ $1 / 1 0 ^ { 4 }$ $d$ $L$
157
+ output using full batch gradient descent until convergence. With $y ^ { \mu } = f ( \pmb { x } ^ { \mu } ; \pmb { \theta } ^ { * } ) \in \mathbb { R } ^ { 1 0 }$ being the output of the last layer before the softmax operation, we chose $\begin{array} { r } { L = \frac { 1 } { T } \sum _ { \mu = 1 } ^ { T } \| y ^ { \mu } - f \big ( x ^ { \mu } ; \pmb \theta \big ) \| ^ { 2 } / \langle y _ { i } ^ { \mu 2 } \rangle } \end{array}$ as the mean squared error loss between teacher and student, where $\langle . \rangle$ denotes the mean over patterns and dimensions and $\mu = 1 , \ldots , T$ enumerates the samples of the data set. Apart from a few cases, where the trajectory towards the permutation point passed through a saddle on the way, in most cases the loss increased monotonically until the permutation point. This indicates that the permutation point is a saddle, and not a minimum. As expected from theoretical results (Freeman and Bruna, 2016) and empirically observed by (Draxler et al., 2018), the barrier height (loss at saddle) decreased with the number $H$ of hidden neurons per layer.
158
+
159
+ ![](images/5f4fe70e0e6504f2521fc9ea04c235976c7583ed57d0d25c1d2d6af280a729ec.jpg)
160
+ Figure 3: A low-loss permutation path in the loss landscape of a multi-layer network using a student-teacher setup trained on MNIST. We merged the parameter vectors of two neurons with high cosine-similarity in the second hidden layer of a three-layer student network. The corresponding teacher network with $H = 1 0$ , 15, 20 or 25 was trained on MNIST. For each hidden layer size we trained 6 teacher networks with different random seeds and display one curve per hidden layer size and seed. A. In most cases, the mean squared loss $L$ between teacher and student output increases monotonically along our constructed paths from a global minimum until the permutation point. In these cases the latter corresponds to the loss barrier along the path. Note that the barrier height (loss at saddle) decreases with $H$ . B. The MNIST classification accuracy on the training set decreases only marginally when moving to a permutation point.
161
+
162
+ # 4 DISCUSSION
163
+
164
+ The surprising training performance of neural networks despite their highly non-convex nature has been drawing attention to the structure of the loss landscape. In this paper, we explored how weight-space symmetry induces saddles and plateaus in the neural network loss landscape. We found that special critical points, so-called permutation points, are embedded in high-dimensional flat plateaus. We proved that all permutation points in a given layer are connected with equal-loss paths, suggesting new perspectives on loss landscape topology. We provided a novel lower bound for the number of first- and higher-order permutation points and proposed a low-loss path finding method to connect equivalent minima. The empirical validation of our path finding algorithm in a multilayer network trained on MNIST showed that permutation points could indeed be reached in practice. Additionally, we observed that the loss at the permutation point (barrier) decreased with network size and thus confirmed Freeman and Bruna (2016)’s findings for loss barriers between global minima. High-dimensional flat regions around permutation points could be one of the causes of the empirically observed slow phases in training.
165
+
166
+ REFERENCES
167
+ Y. N. Dauphin, R. Pascanu, C. Gulcehre, K. Cho, S. Ganguli, and Y. Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in Neural Information Processing Systems, pages 2933–2941, 2014.
168
+ I. J. Goodfellow, O. Vinyals, and A. M. Saxe. Qualitatively characterizing neural network optimization problems. arXiv preprint arXiv:1412.6544, 2014.
169
+ H. Li, Z. Xu, G. Taylor, C. Studer, and T. Goldstein. Visualizing the loss landscape of neural nets. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems 31, pages 6389–6399. Curran Associates, Inc., 2018.
170
+ L. Sagun, V. U. Guney, G. B. Arous, and Y. LeCun. Explorations on high dimensional landscapes. arXiv preprint arXiv:1412.6615, 2014.
171
+ L. Sagun, L. Bottou, and Y. LeCun. Eigenvalues of the Hessian in deep learning: Singularity and beyond. arXiv preprint arXiv:1611.07476, 2016.
172
+ A. J. Ballard, R. Das, S. Martiniani, D. Mehta, L. Sagun, J. D. Stevenson, and D. J. Wales. Energy landscapes for machine learning. Physical Chemistry Chemical Physics, 19(20):12585–12603, 2017.
173
+ T. Garipov, P. Izmailov, D. Podoprikhin, D. P. Vetrov, and A. G. Wilson. Loss surfaces, mode connectivity, and fast ensembling of DNNs. In Advances in Neural Information Processing Systems, pages 8789–8798, 2018.
174
+ F. Draxler, K. Veschgini, M. Salmhofer, and F. A. Hamprecht. Essentially no barriers in neural network energy landscape. arXiv preprint arXiv:1803.00885, 2018.
175
+ L. Sagun, U. Evci, V. U. Guney, Y. Dauphin, and L. Bottou. Empirical analysis of the Hessian of over-parametrized neural networks. arXiv preprint arXiv:1706.04454, 2017.
176
+ M. Baity-Jesi, L. Sagun, M. Geiger, S. Spigler, G. B. Arous, C. Cammarota, Y. LeCun, M. Wyart, and G. Biroli. Comparing dynamics: Deep neural networks versus glassy systems. arXiv preprint arXiv:1803.06969, 2018.
177
+ A. Choromanska, M. Henaff, M. Mathieu, G. B. Arous, and Y. LeCun. The loss surfaces of multilayer networks. In Artificial Intelligence and Statistics, pages 192–204, 2015.
178
+ C. E. Rasmussen. Gaussian processes in machine learning. In Summer School on Machine Learning, pages 63–71. Springer, 2003.
179
+ C. D. Freeman and J. Bruna. Topology and geometry of half-rectified network optimization. arXiv preprint arXiv:1611.01540, 2016.
180
+ D. Soudry and Y. Carmon. No bad local minima: Data independent training error guarantees for multilayer neural networks. arXiv preprint arXiv:1605.08361, 2016.
181
+ Q. Nguyen and M. Hein. The loss surface of deep and wide neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 2603–2612. JMLR. org, 2017.
182
+ I. Goodfellow, Y. Bengio, and A. Courville. Deep learning. 2016.
183
+ C. M. Bishop. Neural Networks for Pattern Recognition. Clarendon Press, 1995.
184
+ D. Saad and S. A. Solla. On-line learning in soft committee machines. Physical Review E, 52(4): 4225, 1995.
185
+ S.-I. Amari, H. Park, and T. Ozeki. Singularities affect dynamics of learning in neuromanifolds. Neural computation, 18(5):1007–1065, 2006.
186
+ H. Wei, J. Zhang, F. Cousseau, T. Ozeki, and S.-i. Amari. Dynamics of learning near singularities in layered networks. Neural computation, 20(3):813–843, 2008.
187
+ A. E. Orhan and X. Pitkow. Skip connections eliminate singularities. arXiv preprint arXiv:1701.09175, 2017.
188
+ V. Papyan. The full spectrum of deep net Hessians at scale: Dynamics with sample size. arXiv preprint arXiv:1811.07062, 2018.
189
+ B. Ghorbani, S. Krishnan, and Y. Xiao. An investigation into neural net optimization via Hessian eigenvalue density. arXiv preprint arXiv:1901.10159, 2019.
190
+ P. Auer, M. Herbster, and M. K. Warmuth. Exponentially many local minima for single neurons. In Advances in neural information processing systems, pages 316–322, 1996.
191
+ P. Baldi and K. Hornik. Neural networks and principal component analysis: Learning from examples without local minima. Neural Networks, 2(1):53–58, 1989.
192
+ K. Kawaguchi. Deep learning without poor local minima. In Advances in Neural Information Processing Systems, pages 586–594, 2016.
193
+ H. Lu and K. Kawaguchi. Depth creates no bad local minima. arXiv preprint arXiv:1702.08580, 2017.
194
+ A. M. Saxe, J. L. McClelland, and S. Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013.
195
+ H. Jónsson, G. Mills, and K. W. Jacobsen. Nudged elastic band method for finding minimum energy paths of transitions. Classical and Quantum Dynamics in Condensed Phase Simulations, pages 385–404, 1998.
196
+ J. D. Lee, M. Simchowitz, M. I. Jordan, and B. Recht. Gradient descent converges to minimizers. arXiv preprint arXiv:1602.04915, 2016.
197
+ A. Jacot, F. Gabriel, and C. Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in Neural Information Processing Systems, pages 8571–8580, 2018.
198
+ S. S. Du, X. Zhai, B. Poczos, and A. Singh. Gradient descent provably optimizes over-parameterized neural networks. arXiv preprint arXiv:1810.02054, 2018a.
199
+ S. S. Du, J. D. Lee, H. Li, L. Wang, and X. Zhai. Gradient descent finds global minima of deep neural networks. arXiv preprint arXiv:1811.03804, 2018b.
200
+ A. Engel and C. Van den Broeck. Statistical mechanics of learning. Cambridge University Press, 2001.
201
+ M. Inoue, H. Park, and M. Okada. On-line learning theory of soft committee machines with correlated hidden units - a steepest gradient descent and natural gradient descent. Journal of the Physical Society of Japan, 72(4):805–810, 2003.
202
+ K. Fukumizu and S. Amari. Local minima and plateaus in hierarchical structures of multilayer perceptrons. Neural Networks, 13(3):317 – 327, 2000.
203
+
204
+ # A SUPPLEMENTARY FIGURES
205
+
206
+ A
207
+
208
+ B
209
+
210
+ ![](images/fd1d3c5c9eeb5138c4166241c6e8fa949e9a17a7e6bd0d16dbd0ac67764c5141.jpg)
211
+
212
+ Figure 4: A. The loss landscape (schematic) as a function of two parameters: the difference $W _ { m , i } ^ { ( k ) } -$ W (k) between the weights from neuron $i$ to neurons $m$ and $l$ in layer $k$ and the weight $W _ { n , m } ^ { ( k + 1 ) }$ from neuron $m$ to neuron $n$ in the next layer (see $\mathbf { B }$ for network graph). The red curve indicates the path from one of the global minima (red triangbetween the input weight vectors of neurons $m$ to a and $l$ alf-way cin layer $k$ figurationvanishes $( W _ { m , i } ^ { ( k ) } = W _ { l , i } ^ { ( k ) }$ W l,i ence, red square). Along the axis W (k)m,i $W _ { m , i } ^ { ( k ) } - W _ { l , i } ^ { ( k ) } = 0$ , we can change the output weight $W _ { n , m } ^ { ( k + 1 ) }$ at constant ntal line), as long as the sum where the two output weig $W _ { n , m } ^ { ( k + 1 ) } + W _ { n , l } ^ { ( k + 1 ) } = c$ remains constant. The pointssuming the same matching $W _ { n , m } ^ { ( k + 1 ) } = W _ { n , l } ^ { ( k + 1 ) }$
213
+ condition for the other output weights) defines the permutation point $\theta _ { l \Leftrightarrow m } ^ { ( k ) }$ (red $\star$ ) where we can swap the indices of neurons we then shift (dashed green $m$ and e) al $l$ in layer output w $k$ at equal loss aights of neuron continuoin layer sly in pato zero . If for $m$ $k$ $( W _ { n , m } ^ { ( k + 1 ) } = 0$ all $n$ , green filled circle), we are free to change the weight $W _ { m , i } ^ { ( k ) }$ at constant loss (green arrows) so as to perform further permutations of neurons in layer $k$ .
214
+
215
+ ![](images/6d1353e63e93dbf70695b69c847321ef9f55ab7870e092d92ef506177deeb8bc.jpg)
216
+ Figure 5: Loss $L$ (vertical axis) on the permutation path as a function of the distance $d$ between the \*two parameter vectors to be permuted (schematic). A. In the teacher network the two parameter vectors have a distance $d _ { 0 }$ . Along the path, the distance is reduced to zero. At the permutation point $( { \star } )$ , the loss reaches a maximum which corresponds to a saddle point of the total loss function. B. On the path towards the permutation point $( { \star } )$ an intermediate saddle point (S) may occur. C. The permutation point $( { \star } )$ could be a minimum along the path.
217
+
218
+ ![](images/7e85260ea3602df34dffe6333d204bf75b27dad99a3de397dcaf3f9579a14e30.jpg)
219
+ Figure 6: Visualizing how permutation points arise in between global minima for a (hypothetical) network function with scalar inputs and one hidden layer with three neurons. Here we do not consider biases for simplicity. Blue dots: 3! many equivalent global minima. A red $\star$ : One permutation point (of first order at layer $k = 1$ ) represented by its weights in the first layer, i.e. (2.5, 2.5, 0.4). All red $\star$ : One permutation set where the weight value 2.5 is duplicated. All green $\star$ : The other permutation set where the weight value 0.4 is duplicated. Note that overall, we have 6 permutation points that give rise to the same network function as the weight configuration with two hidden neurons with (2.5, 0.4). Indeed, $T ( K = 1 , n _ { 1 } = 3 ) = { \binom { 3 - 1 } { 1 } } { \frac { 1 } { 2 } } = 1$ confirms why the number permutation points corresponding to this particular weight configuration with two hidden neurons is equal to the number of global minima. Note that the weight values are assigned randomly for visualization purposes.
220
+
221
+ ![](images/786f7f496ba688a5916464ef28d963c9eadb8e72a0b9dbac1a098414d955d749.jpg)
222
+ Figure 7: A. Zooming in permutations points of one of the permutation sets (red $\star$ in Fig. 6). B. Visualizing how permutation points (at layer $k = 1$ , see A) lie inside equal-loss lines in the weight space of the layer $k + 1 = 2$ . Only two out of three lines are shown for simplicity. We observe that the number of such equal-loss lines (hyperplanes) is equal to the number of permutation points, i.e. each permutation point lies inside one distinct line.
223
+
224
+ # B PATH FINDING ALGORITHM
225
+
226
+ # Algorithm 1 Finding Low-Loss Paths through Permutation Points
227
+
228
+ Require: parameters $\pmb \theta$ , indices $k , l , m$ , SCHEDULE of decreasing distances
229
+ 1: $\overline { { d _ { 0 } } } \gets \bar { d } _ { l , m } ^ { ( k ) } ( \pmb { \theta } )$ t
230
+ 2: Re-parametrize $\pmb \theta \tilde { \pmb \theta } = ( \{ \tilde { \pmb \vartheta } _ { i } ^ { ( j ) } \} _ { ( i , j ) \neq ( m , k ) } , \pmb e , d )$ s.t. $\vartheta _ { i } ^ { ( j ) } = \tilde { \vartheta } _ { i } ^ { ( j ) }$ , $\vartheta _ { m } ^ { ( k ) } = \tilde { \vartheta } _ { l } ^ { ( k ) } + d e / \vert \vert e \vert \vert$
231
+ 3: d ← d0, e ← ϑ(k)m − ϑ(k)
232
+ 4: for all $d ^ { \prime }$ in SCHEDULE $( d _ { 0 } )$ do
233
+ 5: $d d ^ { \prime }$
234
+ 6: $\gamma ( d ^ { \prime } ) \tilde { \pmb { \theta } } ( d ^ { \prime } )$ as found by gradient descent on $L ( \tilde { { \pmb { \theta } } } \setminus \{ d \} )$
235
+ 7: end for
236
+ 8: return $\gamma$
237
+
238
+ # C PROOFS
239
+
240
+ # C.1 HALF-WAY CONFIGURATIONS ARE PERMUTATION POINTS
241
+
242
+ Proof of Lemma 1. Since the parameter vectors and output vectors of the two neurons are identical at $\begin{array} { r } { t = \frac { 1 } { 2 } } \end{array}$ , we can merge the two neurons into a single one (by appropriately rescaling the corresponding output weights) so that the number of neurons $n _ { k }$ in layer $k$ is reduced by one. Since our path-finding method minimizes the gradient, the configuration at $\begin{array} { r } { t = \frac { 1 } { 2 } } \end{array}$ is a local minimum of the smaller network, hence a permutation point.
243
+
244
+ Alternatively, we will reformalize the path-finding problem with Lagrange multipliers: minimize $L ( \pmb \theta ) + \lambda d _ { l , m } ^ { ( k ) } ( \pmb \theta )$ for increasing values of $\lambda$ , starting with $\lambda \ : = \ : 0$ and increasing (potentially) until $\lambda \infty$ . The goal here is to decrease the distance down to zero while keeping the loss minimal. For every $\lambda$ , we will obtain a minimizer $\pmb \theta$ . This sequence of $\pmb \theta$ configurations will be an approximate discretization of the ideal path $\gamma _ { * }$ . With the Lagrangian formulation, we can easily show that the half-way configuration is a critical point: it is a minimizer of $L ( \pmb \theta ) + \lambda d _ { l , m } ^ { ( k ) } ( \pmb \theta )$ when $d _ { l , m } ^ { ( k ) } ( \pmb { \theta } ) = 0$ for a big enough $\lambda$ . Therefore, $\nabla L ( \pmb \theta ) + \lambda \nabla d _ { l , m } ^ { ( k ) } ( \pmb \theta ) = 0$ . Note that the partial derivatives of $d _ { l , m }$ with respect to the parameter vectors of neuron $l$ and $m$ in layer $k$ are $\begin{array} { r } { \frac { \partial d _ { l , m } ^ { ( k ) } } { \partial \pmb { \vartheta } _ { l } ^ { ( k ) } } = 2 ( \pmb { \vartheta } _ { l } ^ { ( k ) } - \pmb { \vartheta } _ { m } ^ { ( k ) } ) } \end{array}$ $\begin{array} { r } { \frac { \partial \ v { d } _ { l , m } ^ { ( k ) } } { \partial \pmb { \vartheta } _ { l } ^ { ( k ) } } = 2 ( \pmb { \vartheta } _ { m } ^ { ( k ) } - \pmb { \vartheta } _ { l } ^ { ( k ) } ) } \end{array}$ and both are equal to zero at the half way configuration since $\| \vartheta _ { l } ^ { ( k ) } - \vartheta _ { m } ^ { ( k ) } \| ^ { 2 } = 0$ . All other partial derivatives with respect to other parameter vectors are 0 since $d _ { l , m } ^ { ( k ) }$ does not depend on them. Therefore $\nabla d _ { l , m } ^ { ( k ) } ( \pmb { \theta } ) = 0$ . Consequently, . We note that the Lagrangian formulation is an approximation on the ideal path .
245
+
246
+ # C.2 PROPERTIES OF (FIRST-ORDER) PERMUTATION POINTS
247
+
248
+ Proof of Proposition 1. (i) Let us assume we merged the neurons $l$ and $m$ in layer $k$ and scaled the output weight vectors of these neurons with $\begin{array} { l } { { \frac { 1 } { 2 } } } \end{array}$ . In that case, the output vector in layer $k + 1$ remains the same. The derivative with respect to an output in the layer $k + 1$ will be the same, i.e. $\frac { \partial L } { \partial a _ { n } ^ { k } }$ for $n \in [ n _ { k + 1 } ]$ will not change under this mapping. The derivatives with respect to the output weights (say $\mathbf { \Delta } w _ { i } ^ { k }$ for $i \in [ n _ { k } ] )$ of layer $k$ is $\begin{array} { r } { \sum _ { n = 1 } ^ { n _ { k + 1 } } \frac { \partial L } { \partial a _ { n } ^ { k + 1 } } \frac { \partial a _ { n } ^ { k + 1 } } { \partial \pmb { w } _ { i } ^ { k } } } \end{array}$ These derivatives would be the same as the parameter vectors of layer $k$ is $\frac { \partial L } { \partial a _ { m } ^ { k } } \frac { \partial a _ { m } ^ { k } } { \partial \pmb { \vartheta } _ { m } ^ { k } }$ remains the same up to a scaling in the output weight value.
249
+
250
+ All the other derivatives remain the same (up to a scalar constant) as the corresponding derivatives before the mapping is performed. Therefore, a critical point in the landscape of the neural network with $( n _ { 1 } , \ldots , n _ { k } - 1 , \ldots , n _ { d } )$ neurons per layer will map to another critical point in the landscape of the neural network with $( n _ { 1 } , . . . , n _ { k } , . . . , n _ { d } )$ neurons per layer under the function preserving mapping described in the definition of a permutation point. This proposition is a straightforward extension to the Theorem 1 in (Fukumizu and Amari, 2000) for multiple output and multiple-layer neural networks.
251
+
252
+ (ii) Once the parameter vectors of neurons $m$ and $l$ in layer $k$ are identical, they implement the same function. Any change of an output weight W (k+1)n,m preserves the network function, and criticality (see Proposition 1-(i) above), as long as the output weight W (k+1)n,l is coadapted so as to keep the sum W (k+1) $W _ { n , m } ^ { ( k + 1 ) } + W _ { n , l } ^ { ( k + 1 ) }$ constant. The sum-constraint $W _ { n , m } ^ { ( k + 1 ) } + W _ { n , l } ^ { ( k + 1 ) } = c$ for each $n$ in layer $k + 1$ defines an $n _ { k + 1 }$ -dimensional hyperplane of critical points. In particular, at each point in the hyperplane, we have $n _ { k + 1 }$ directions of the Hessian with zero Eigenvalues if the activation function $g$ is twice-differentiable.
253
+
254
+ (iii) We make the following sequence of continuous transformations that are all possible at fixed loss. First, we decrease the output weights of neuron $m$ to zero while increasing those of $l$ by the same amount, keeping the sum of weights $W _ { j , m } ^ { ( k + 1 ) } + W _ { j , l } ^ { ( k + 1 ) }$ constant for each $j$ in layer $k { \pm } 1$ . Second, we change smoothly the input parameter vector of neuron $m$ to match those of an arbitrary other neuron $i$ in the same layer $k$ . Third, we increase the output weights of neuron $m$ while decreasing those of neuron i until all output weights of neuron i are zero, keeping the sum of weights W (k+1)j,m + $W _ { j , m } ^ { ( k + 1 ) } + W _ { j , i } ^ { ( k + 1 ) }$ constant for each $j$ in layer $k + 1$ . Fourth, we reduce the input parameter vector of neuron $i$ to zero. Fifth, we increase the input parameter vector of neuron $i$ to match that of neuron $l$ at the permutation point. Finally, we equally share output weights between neurons $i$ and $l$ so that $i$ has the same weights as previously neuron $m$ at the permutation point.
255
+
256
+ Effectively, this procedure enables us to exchange an arbitrary neuron $i$ with neuron $m$ , but the
257
+ procedure can be repeated for further permutations. The permutations constructed in the proof of
258
+ property (ii) start at permutation points where the parameter vectors of neuroTherefore the loss associated with all the permutations constructed in the proof is $l$ $m$ merge. the one $L ( \pmb { \theta } _ { l m } ^ { ( k ) } )$ $i$ and
259
+ construct the path leading to another $\theta _ { i \Leftrightarrow j } ^ { ( k ) }$ , that has, in general, a different loss.
260
+
261
+ # C.3 PROPERTIES OF HIGHER-ORDER PERMUTATION POINTS
262
+
263
+ Proof of Proposition 2. (i) We take a minimum in the landscape of neural network with $( n _ { 1 } , \ldots , n _ { k } -$ $K , \ldots , n _ { d } )$ neurons per layer. Using Proposition 1-(i), we map to a critical point in the landscape of neural network with $( n _ { 1 } , \ldots , n _ { k } - K + 1 , \ldots , n _ { d } )$ neurons per layer where one parameter vector in layer $k$ is duplicated and the corresponding output weights are rescaled with $\textstyle { \frac { 1 } { 2 } }$ . Repeating the same mapping starting at the latter critical point, we map to another critical point in the landscape of neural network with $( n _ { 1 } , \ldots , n _ { k } - K + 2 , \ldots , n _ { d } )$ neurons per layer. Repeating this mapping for $K$ times, we end up a $K$ -th order permutation point (up to changes in the output weights of the replicated neurons as long as the network function is preserved) and this is a critical point in the landscape of neural network with $( n _ { 1 } , . . . , n _ { k } , . . . , n _ { d } )$ neurons per layer by induction.
264
+
265
+ (ii) We will denote the parameter vectors of a neural network with $( n _ { 1 } , \ldots , l = n _ { k } - K , \ldots , n _ { d } )$ neurons per layer with {ϑ(k)1 , $\{ \vartheta _ { 1 } ^ { ( k ) } , \vartheta _ { 2 } ^ { ( k ) } , \ldots , \vartheta _ { l } ^ { ( k ) } \}$ and that of $f ( n _ { 1 } , \ldots , n _ { k } , \ldots , n _ { d } )$ neurons with {ϑ0(k)1 , $\{ \vartheta _ { 1 } ^ { \prime ( k ) } , \vartheta _ { 2 } ^ { \prime ( k ) } , \ldots , \vartheta _ { n _ { k } } ^ { \prime ( k ) } \}$ . Let’s consider an unordered partition of $n _ { k } = s _ { 1 } + s _ { 2 } + \ldots + s _ { l }$ with $s _ { m } \geq 1$ for $m = 1 , \ldots , l$ . Without loss of generality, let’s assume that the first $s _ { 1 }$ parameter vectors of layer $k$ are the same, then the next $s _ { 2 }$ and so on. Equivalently, for all $m = 1 , \ldots , l$ , we have ϑ0(k) = $\vartheta _ { j } ^ { \prime ( k ) } = \vartheta _ { m } ^ { ( k ) }$ for $j = s _ { m - 1 } + 1 , s _ { m - 1 } + 2 , \ldots , s _ { m - 1 } + s _ { m }$ where $s _ { 0 } = 0$ .
266
+
267
+ The only free variables are the outgoing weights of the replicated neurons- except for the constraint that the summation of these weights is fixed. These constraints correspond to Psm−1+smj=sm−1+1 $\begin{array} { r l } { ~ } & { { } \sum _ { j = s _ { m - 1 } + 1 } ^ { s _ { m - 1 } + s _ { m } } W _ { \mathrm { i , j } } ^ { \prime ( k + 1 ) } = } \end{array}$ $W _ { \mathrm { i , m } } ^ { ( k + 1 ) }$ for all neurons $i$ at layer $k { + 1 }$ . Overall, there are $\begin{array} { r } { ( \sum _ { m = 1 } ^ { l } s _ { m } ) n _ { k + 1 } = n _ { k } n _ { k + 1 } } \end{array}$ free variables constrained by $l n _ { k + 1 }$ equations. One equation defines a $n _ { k } n _ { k + 1 } - 1$ dimensional hyperplane in the $n _ { k } n _ { k + 1 }$ space. Intersecting $l n _ { k + 1 }$ of these hyperplanes, we end up having a $( n _ { k } - l ) n _ { k + 1 } = K n _ { k + 1 }$ dimensional equal-loss hyperplane.
268
+
269
+ We simulate a smaller neural network with the big network of $( n _ { 1 } , . . . , n _ { k } , . . . , n _ { d } )$ neurons across the $d$ layers. We assume that a minimum of the small neural network has $n _ { k } - K$ distinct parameter vectors at layer $k$ and $n _ { j }$ distinct parameter vectors at other layers $j \neq k$ . A $K$ -th order permutation point (at layer $k$ ) of the big network implements all the $( n _ { 1 } , \ldots , n _ { k } - K , \ldots , n _ { d } )$ parameter vectors of the small network and only these. Since the big networks has $n _ { k }$ neurons in layer $k$ and the small network only $n _ { k } - K$ , the big network must reuse some of these parameter vectors of the smaller network several times. Therefore we count the number of permutations of indices to calculate $T ( K , n _ { k } )$ . We will start with $K = 1$ .
270
+
271
+ # Proof of Proposition 3.
272
+
273
+ # (1) The case $K = 1$ :
274
+
275
+ At a first-order permutation point in layer $k$ , we have $l = n _ { k } - 1$ distinct parameter vectors $\{ \vartheta _ { 1 } ^ { ( k ) } , \vartheta _ { 2 } ^ { ( k ) } , \ldots , \bar { \vartheta } _ { l } ^ { ( k ) } \}$ for a total of $n _ { k }$ neurons. Therefore two of the $n _ { k }$ neurons must have the same parameter vector. More formally, there is only one way to partition $n _ { k }$ into $n _ { k } - 1$ positive integers without respecting order and this unordered partition can be represented as $n _ { k } = 2 + 1 + \ldots + 1$ .
276
+
277
+ The duplicated parameter vector could be the first one, $\{ \pmb { \vartheta } _ { 1 } ^ { ( k ) } \}$ , or the second one, ... or the last one, $\{ \pmb { \vartheta } _ { l } ^ { ( k ) } \}$ . Therefore there are $\binom { n _ { k } - 1 } { 1 }$ choices. For each of these choices (say, we double the third parameter vector), we have $\textstyle { \frac { n _ { k } ! } { 2 ! } }$ permutations of indices of neurons in layer $k$ . If we include the permutations that are possible at all other layers, we have $\begin{array} { r } { \binom { n _ { k } - 1 } { 1 } \frac { 1 } { 2 } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ first-order permutation $\begin{array} { r } { | P ( \pmb { \theta } ) | = \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ Since the cardinali, we arrive at a ratio $T ( K = 1 , n _ { k } ) = { \binom { n _ { k } - 1 } { 1 } } { \frac { 1 } { 2 } }$ nduced by a global minimum is.
278
+
279
+ # (2) The case $K = 2$
280
+
281
+ There are two ways to have $n _ { k } \mathrm { ~ - ~ } 2$ distinct vectors out of $n _ { k }$ , corresponding to two unordered partitions of $n _ { k }$ : (i) $n _ { k } = 3 + 1 + . . . + 1$ , and (ii) $n _ { k } = 2 + 2 + 1 + \ldots + 1$ .
282
+
283
+ For this case, we have $\textstyle { \frac { n _ { k } ! } { 3 ! } }$ permutations given by permuting the neuron indices of layer $k$ instead of the usual $n _ { k }$ ! permutations since we should eliminate the equivalent permutations corresponding to the permutations among the replicated parameter vectors with a division by 3!. Therefore, this 2-nd order permutation point induces a permutation set with cardinality $\begin{array} { r } { | P ( \pmb { \theta } ) | = \frac { 1 } { 3 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! . } \end{array}$ .
284
+
285
+ Now we should consider other 2-nd order permutation points (at layer $k$ ) giving rise to the same network function and corresponding to the same unordered partition, which we did not count in this permutation set. If we had chosen another parameter vector to replicate three times, this 2-nd order permutation point would induce another permutation set. Note that we can choose the parameter vector to replicate out of one of the permutation s $n _ { k } - 2$ in ere ${ \binom { n _ { k } - 2 } { 1 } }$ ways and theree end up having 13! Qd−1j=1 nj ! ma ny points in eachmany 2-nd order $\begin{array} { r } { \left( \begin{array} { c } { n _ { k } - 2 } \\ { 1 } \end{array} \right) \frac { 1 } { 3 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ permutation points (at layer $k$ ) corresponding to this unordered partition.
286
+
287
+ For this case, we have $\textstyle { \frac { n _ { k } ! } { 2 ! ^ { 2 } } }$ permutations given by permuting the neuron indices of layer $k$ instead of the usual $n _ { k }$ ! permutations since we should eliminate the equivalent permutations corresponding to the permutations among the two pairs of duplicated parameter vectors with a division by $2 ! ^ { 2 }$ . Therefore, this 2-nd order permutation point induces a permutation set with cardinality $\begin{array} { r } { | P ( \pmb { \theta } ) | = \frac { 1 } { 2 ! ^ { 2 } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$
288
+
289
+ Again, we should consider other 2-nd order permutation points (at layer $k$ ) giving rise to the same network function and corresponding to the same unordered partition. Note that we can choose two parameter vectors to duplicate out of $n _ { k } - 2$ in ${ \binom { n _ { k } - 2 } { 2 } }$ ways and there are 12!2 Qd−1j=1 nj ! many points in each one of the permutation sets. Therefore, we end up having nk−22  12!2 Qd−1j=1 nj ! many 2-nd order permutation points (at layer $k$ ) corresponding to this unordered partition. Overall, we have $\begin{array} { r } { \binom { n _ { k } - 2 } { 1 } \frac { 1 } { 3 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } \bar { ! } + \binom { n _ { k } - 2 } { 2 } \frac { \mathrm { i } } { 2 ! ^ { 2 } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many 2-nd order permutation points at layer $k$ .
290
+
291
+ # (3) The case $K = 3$ :
292
+
293
+ There are three ways to have $n _ { k } - 3$ distinct vectors out of $n _ { k }$ , corresponding to three unordered partitions of $n _ { k }$ : (i) $n _ { k } = 4 + 1 + \ldots + 1$ , (ii) $n _ { k } = 3 + 2 + 1 + \ldots + 1$ , and (iii) $n _ { k } = 2 + 2 + 2 + 1 + \ldots + 1$ .
294
+
295
+ (i) $n _ { k } = 4 + 1 + . . . + 1$ For this case, we have $\textstyle { \frac { n _ { k } ! } { 4 ! } }$ permutations given by permuting the neuron indices of layer $k$ . Therefore, this 3-rd order permutation point induces a permutation set with cardinality $\begin{array} { r } { | P ( \pmb { \theta } ) | = \frac { 1 } { 4 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ .
296
+
297
+ As usual, we should consider other 3-rd order permutation points (at layer $k$ ) giving rise to the same network function and corresponding to the same unordered partition. If we had chosen another parameter vector to replicate four times, this 3-rd order permutation point would induce another permutation set. Note that we can choose the parameter vector to replicate out of nk − 3 in nk−31  ways and there ar e 14! Qd−1j=1 nj ! many points in each one of the permutation sets. Therefore, we end up having $\begin{array} { r } { \left( { \overset { n _ { k } - 3 } { \ 1 } } \right) { \frac { 1 } { 4 ! } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many 3-rd order permutation points (at layer $k$ ) corresponding to this unordered partition.
298
+
299
+ For this case, we have $\textstyle { \frac { n _ { k } ! } { 3 ! 2 ! } }$ permutations given by permuting the neuron indices of layer $k$ . Therefore, this 3-rd order permutation point induces a permutation set with cardinality $\begin{array} { r } { | P ( \pmb { \theta } ) | = \frac { 1 } { 3 ! 2 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$
300
+
301
+ As usual, we should consider other 3-rd order permutation points (at layer $k$ ) giving rise to the same network function and corresponding to the same unordered partition. If we had chosen two other parameter vector to replicate, say ϑ0(k)l and $\vartheta _ { m } ^ { \prime ( k ) }$ , this 3-rd order permutation point would induce another permutation set. Note that we can choose two parameter vectors to replicate out of $n _ { k } - 3$ in $2 ! { \binom { n _ { k } - 3 } { 2 } }$ ways. We have an extra 2! factor here since we have different permutation sets if we replicate ϑ0(k)l twice and $\vartheta _ { m } ^ { \prime ( k ) }$ three times, or vice versa. Yet, there are $\begin{array} { r } { { \frac { 1 } { 3 ! 2 ! } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many points in each one of the permutation sets. Therefore, we end up having $\begin{array} { r } { 2 ! \binom { n _ { k } - 3 } { 2 } \frac { 1 } { 3 ! 2 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! \ = \ \binom { n _ { k } - 3 } { 2 } \frac { 1 } { 3 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many $3 ^ { \mathrm { r d } }$ -order permutation points (at layer $k$ ) corresponding to this unordered partition.
302
+
303
+ (iii) $n _ { k } = 2 + 2 + 2 + 1 + \ldots + 1$
304
+
305
+ For this case, we have $\frac { n _ { k } ! } { 2 ! ^ { 3 } }$ permutations given by permuting the neuron indices of layer $k$ . Therefore, this 3-rd order permutation point induces a permutation set with cardinality $\begin{array} { r } { | P ( \pmb { \theta } ) | = \frac { 1 } { 2 ! ^ { 3 } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$
306
+
307
+ As always, we should consider the other 3-rd order permutation points (at layer $k$ ) giving rise to the same network function and corresponding to the same unordered partition. Note that we can choose three parameter vectors to duplicate out of $n _ { k } - 3$ in $\binom { n _ { k } - 3 } { 3 }$ ways and there are $\begin{array} { r } { { \frac { 1 } { 2 ^ { 3 } } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many points in each one of the permutation sets. Therefore, we end up having $\begin{array} { r } { \binom { n _ { k } - 3 } { 3 } \frac { 1 } { 2 ^ { 3 } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ many 3-rd order permutation points (at layer $k$ ) corresponding to this unordered partition. Overall, we hav e nk−31  14! Qd−1j=1 nj ! + $\begin{array} { r } { \binom { n _ { k } - 3 } { 1 } \frac 1 { 4 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! + \binom { n _ { k } - 3 } { 2 } \frac 1 { 3 ! } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! + \binom { n _ { k } - 3 } { 3 } \frac 1 { 2 ! ^ { 3 } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ nk−33  12!3 Qd−1j=1 nj ! many 3-rd order permutation points at layer $k$ .
308
+
309
+ # (4) A note on the general closed form formula for $T ( K , n _ { k } )$ :
310
+
311
+ For a general integer $K$ there is no closed-form formula for the number of partitions, although it is easy to have a closed-form formula for the number of permutation points for one given unordered partition following the counting arguments. Thus, we believe that there is no way to find a closed-form formula for $T ( K , n _ { k } )$ as a function of $K$ . However, the lower bound for $T ( K , n _ { k } )$ is also the dominating term for large $n _ { k }$ , since every other summand would be a polynomial of at most $( K 1 )$ -th order.
312
+
313
+ # (5) A lower bound for general $K$ :
314
+
315
+ For general $K$ , we have $l = n _ { k } - K$ distinct parameter vectors in the small network. There are many ways to partition $n _ { k }$ into $l$ positive integers without respecting order. Since we are interested in a lower bound, we only consider the following unordered partition: $n _ { k } = 2 + . . . + 2 + 1 + . . . + 1$ , i.e. we have $K$ duplicated parameter vectors and $n _ { k } - 2 K$ parameter vectors that appear once. For this unordered partition, we have ${ \binom { n _ { k } - K } { K } }$ ways to choose the duplicated parameter vectors. For each one of these choices, we can permute the neuron indices in $\textstyle { \frac { n _ { k } ! } { 2 ^ { K } } }$ different ways. Including the permutations in other layers j 6= k, we end up with nk−KK  $\begin{array} { r } { \left( { \overset { n _ { k } - K } { K } } \right) { \frac { 1 } { 2 ^ { K } } } \prod _ { j = 1 } ^ { d - 1 } n _ { j } ! } \end{array}$ points in the permutation set. The number is a lower bound of $T ( K , n _ { k } )$ , because other unordered partitions of $n _ { k }$ give rise to other $K ^ { \mathrm { t h } }$ -order permutation points at layer $k$ .
316
+
317
+ # C.5 PROOF OF LEMMA 2
318
+
319
+ We can approximate the factorial an integer $n$ using Stirling’s formula
320
+
321
+ $$
322
+ n ! \to { \sqrt { 2 \pi n } } { \biggl ( } { \frac { n } { e } } { \biggr ) } ^ { n } \ \mathrm { a s } \ n \to \infty
323
+ $$
324
+
325
+ We note that this approximation leads to accurate results even for small $n$
326
+
327
+ As $n \to \infty$ , both $n - K \to \infty$ and $n - 2 K \to \infty$ for finite $K$ . Therefore, we can apply Stirling’s formula both for $n - K$ and $n - 2 K$ :
328
+
329
+ $$
330
+ \frac { 1 } { 2 ! ^ { K } } { \binom { n - K } { K } } = \frac { 1 } { 2 ! ^ { K } } \frac { ( n - K ) ! } { ( n - 2 K ) ! K ! }
331
+ $$
332
+
333
+ $$
334
+ { \frac { 1 } { 2 ! ^ { K } } } { \frac { ( n - K ) ! } { ( n - 2 K ) ! K ! } } \to { \frac { 1 } { 2 ! ^ { K } } } { \frac { \sqrt { 2 \pi ( n - K ) } { \Big ( } { \frac { n - K } { e } } { \Big ) } ^ { n - K } } { \sqrt { 2 \pi ( n - 2 K ) } { \Big ( } { \frac { n - 2 K } { e } } { \Big ) } ^ { n - 2 K } K ! } } \operatorname { a s } n \to \infty
335
+ $$
336
+
337
+ $$
338
+ = \frac { 1 } { 2 ! ^ { K } } \sqrt { \frac { n - K } { n - 2 K } } \frac { ( n - K ) ^ { n - K } } { ( n - 2 K ) ^ { n - 2 K } } \frac { 1 } { e ^ { K } K ! } \mathrm { a s } n \to \infty
339
+ $$
340
+
341
+ $$
342
+ = \frac { 1 } { 2 ! ^ { K } } \sqrt { \frac { \frac { n } { K } - 1 } { \frac { n } { K } - 2 } } \frac { ( \frac { n } { K } - 1 ) ^ { n - K } } { ( \frac { n } { K } - 2 ) ^ { n - 2 K } } K ^ { K } \frac { 1 } { e ^ { K } K ! } \frac { 1 } { 2 ! ^ { K } } ( \frac { n } { K } ) ^ { K } \frac { K ^ { K } } { e ^ { K } K ! } \mathrm { ~ a s ~ } n \infty
343
+ $$
344
+
345
+ $$
346
+ = { \frac { 1 } { 2 ! ^ { K } } } { \frac { 1 } { e ^ { K } K ! } } n ^ { K } = c _ { K } n ^ { K } \operatorname { a s } n \to \infty
347
+ $$
348
+
349
+ # C.6 PROOF OF LEMMA 3
350
+
351
+ We already know the number of equilavent $K$ -th order permutation points (the ones that reduce to the same configuration in the landscape of the neural network with $( n _ { 1 } , \ldots , n _ { k } - K , \ldots , n _ { d } ) ;$ ) is at least $\begin{array} { r } { \sum _ { k = 1 } ^ { d - 1 } T ( K , n _ { k } ) \prod _ { k = 1 } ^ { d - 1 } n _ { k } ! } \end{array}$ (Proposition 3-(ii)). We can easily that see that every permutation point gives rise to a distinct high-dimensional subspace of critical points by observing that their parameter vectors in layer $k$ would be in distinct positions when projected on the parameters of the layer $k$ since we never repeat the same set of parameters in layer $k$ . If two such subspaces were the same, their projection on a lower dimensional space (parameters of the layer $k$ ) would be same necessarily. Therefore, the subspaces mentioned are distinct and the number of them is equivalent to the number of related permutation po
parse/train/rkxmPgrKwB/rkxmPgrKwB_content_list.json ADDED
The diff for this file is too large to render. See raw diff