ZHANGYUXUAN-zR commited on
Commit
cad30bf
·
verified ·
1 Parent(s): 546794d

Add files using upload-large-folder tool

Browse files
parse/train/Hyg-JC4FDr/Hyg-JC4FDr.md ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # IMITATION LEARNING VIA OFF-POLICY DISTRIBUTION MATCHING
2
+
3
+ Ilya Kostrikov∗, Ofir Nachum, Jonathan Tompson Google Research {kostrikov, ofirnachum, tompson}@google.com
4
+
5
+ # ABSTRACT
6
+
7
+ When performing imitation learning from expert demonstrations, distribution matching is a popular approach, in which one alternates between estimating distribution ratios and then using these ratios as rewards in a standard reinforcement learning (RL) algorithm. Traditionally, estimation of the distribution ratio requires on-policy data, which has caused previous work to either be exorbitantly datainefficient or alter the original objective in a manner that can drastically change its optimum. In this work, we show how the original distribution ratio estimation objective may be transformed in a principled manner to yield a completely off-policy objective. In addition to the data-efficiency that this provides, we are able to show that this objective also renders the use of a separate RL optimization unnecessary. Rather, an imitation policy may be learned directly from this objective without the use of explicit rewards. We call the resulting algorithm ValueDICE and evaluate it on a suite of popular imitation learning benchmarks, finding that it can achieve state-of-the-art sample efficiency and performance.1
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Reinforcement learning (RL) is typically framed as learning a behavior policy based on reward feedback from trial-and-error experience. Accordingly, many successful demonstrations of RL often rely on carefully handcrafted rewards with various bonuses and penalties designed to encourage intended behavior (Nachum et al., 2019a; Andrychowicz et al., 2018). In contrast, many real-world behaviors are easier to demonstrate rather than devise explicit rewards. This realization is at the heart of imitation learning (Ho & Ermon, 2016; Ng et al.; Pomerleau, 1989), in which one aims to learn a behavior policy from a set of expert demonstrations – logged experience data of a near-optimal policy interacting with the environment – without explicit knowledge of rewards.
12
+
13
+ Distribution matching via adversarial learning, or Adversarial Imitation Learning (AIL), has recently become a popular approach for imitation learning (Ho & Ermon, 2016; Fu et al., 2017; Ke et al., 2019; Kostrikov et al., 2019). These methods interpret the states and actions provided in the expert demonstrations as a finite sample from a target distribution. Imitation learning can then be framed as learning a behavior policy which minimizes a divergence between this target distribution and the state-action distribution induced by the behavior policy interacting with the environment. As derived by Ho & Ermon (2016), this divergence minimization may be achieved by iteratively performing two alternating steps, reminiscent of GAN algorithms (Goodfellow et al., 2014). First, one estimates the density ratio of states and actions between the target distribution and the behavior policy. Then, these density ratios are used as rewards for a standard RL algorithm, and the behavior policy is updated to maximize these cumulative rewards (data distribution ratios).
14
+
15
+ The main limitation of current distribution matching approaches is that estimating distribution density ratios (the first step of every iteration) typically requires samples from the behavior policy distribution. This means that every iteration – every update to the behavior policy – requires new interactions with the environment, precluding the use of these algorithms in settings where interactions with the environment are expensive and limited. Several papers attempt to relax this on-policy requirement and resolve the sample inefficiency problem by designing off-policy imitation learning algorithms, which may take advantage of past logged data, usually in the form of a replay buffer (Kostrikov et al., 2019; Sasaki et al., 2019). However, these methods do so by altering the original divergence minimization objective to measure a divergence between the target expert distribution and the replay buffer distribution. Accordingly, there is no guarantee that the learned policy will recover the desired target distribution.
16
+
17
+ In this work, we introduce an algorithm for imitation learning that, on the one hand, performs divergence minimization as in the original AIL methods, while on the other hand, is completely off-policy. We begin by providing a new formulation of the minimum divergence objective that avoids the use of any explicit on-policy expectations. While this objective may be used in the traditional way to estimate data distribution ratios that are then input to an RL algorithm, we go further to show how the specific form of the derived objective renders the use of a separate RL optimization unnecessary. Rather, gradients of the minimum divergence objective with respect to behavior policy may be computed directly. This way, an imitating behavior policy may be learned to minimize the divergence without the use of explicit rewards. We call this stream-lined imitation learning algorithm ValueDICE. In addition to being simpler than standard imitation learning methods, we show that our proposed algorithm is able to achieve state-of-the-art performance on a suite of imitation learning benchmarks.
18
+
19
+ # 2 BACKGROUND
20
+
21
+ We consider environments represented as a Markov Decision Process (MDP) (Puterman, 2014), defined by the tuple, $( \mathcal { S } , \mathcal { A } , \bar { p _ { 0 } } ( s ) , p ( s ^ { \prime } | s , a ) , r ( s , a ) , \gamma )$ , where $s$ and $\mathcal { A }$ are the state and action space, respectively, $p _ { 0 } ( s )$ is an initial state distribution, $p ( s ^ { \prime } | s , a )$ defines environment dynamics represented as a conditional state distribution, $r ( s , a )$ is a reward function, and $\gamma$ is a return discount factor. A behavior policy $\pi ( \cdot | \cdot )$ interacts with the environment to yield experience $\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \right)$ , for $t = 0 , 1 , \ldots$ , where $s _ { 0 } \sim p _ { 0 } ( \cdot )$ , $a _ { t } \sim \pi ( \cdot | s _ { t } )$ , $s _ { t + 1 } \sim p \big ( \cdot | s _ { t } , \dot { a _ { t } } \big )$ , $r _ { t } = r ( s _ { t } , a _ { t } )$ . Without loss of generality, we consider infinite-horizon, non-terminating environments. In standard RL, one aims to learn a behavior policy $\pi ( \cdot | s )$ to maximize cumulative rewards, based on experience gained from interacting with the environment.
22
+
23
+ In imitation learning (Pomerleau, 1989; Abbeel & $\mathrm { N g }$ , 2004; Ho & Ermon, 2016), the environment reward is not observed. Rather, one has access to a set of expert demonstrations $\mathcal { D } : =$ $\{ ( s _ { k } , a _ { k } , s _ { k } ^ { \prime } \} _ { k = 1 } ^ { N }$ given by state-action-next-state transitions in the environment induced by an unknown expert policy $\pi _ { \mathrm { e x p } }$ and the goal is to learn a behavior policy $\pi$ which recovers $\pi _ { \mathrm { e x p } }$ . During the learning process, in addition to the finite set of expert demonstrations $\mathcal { D }$ , one may also optionally interact with the environment (in these interactions, no rewards are observed). This setting describes a number of real-world applications where rewards are unknown, such as Pomerleau (1989); Muller et al. (2006); Bojarski et al. (2016).
24
+
25
+ # 2.1 BEHAVIORAL CLONING (BC)
26
+
27
+ Supervised behavioral cloning (BC) is a popular approach for imitation learning. Given a set of expert demonstrations, a mapping of state observations to actions is fit using regression or density estimation. In the simplest case, one simply trains the behavior policy $\pi$ to minimize the negative log-likelihood of the observed expert actions:
28
+
29
+ $$
30
+ \operatorname* { m i n } _ { \pi } J _ { \mathrm { B C } } ( \pi ) : = - \frac { 1 } { N } \sum _ { k = 1 } ^ { N } \log \pi ( a _ { k } | s _ { k } ) .
31
+ $$
32
+
33
+ Unlike Inverse Reinforcement Learning (IRL) algorithms (e.g. GAIL (Ho & Ermon, 2016)), BC does not perform any additional policy interactions with the learning environment and hence does not suffer from the same issue of policy sample complexity. However, behavioral cloning suffers from distributional drift (Ross et al., 2011); i.e., there is no way for $\pi$ to learn how to recover if it deviates from the expert behavior to a state $\tilde { s }$ not seen in the expert demonstrations.
34
+
35
+ # 2.2 DISTRIBUTION MATCHING
36
+
37
+ The distribution matching approach provides a family of methods that are robust to distributional shift. Rather than considering the policy directly as a conditional distribution $\pi ( \cdot | s )$ over actions, this approach considers the state-action distribution induced by a policy. In particular, under certain conditions (Puterman, 2014), there is a one-to-one correspondence between a policy and its stateaction distribution $d ^ { \pi }$ defined as,∞
38
+
39
+ $$
40
+ d ^ { \pi } ( s , a ) = ( 1 - \gamma ) \cdot \sum _ { t = 0 } ^ { } \gamma ^ { t } p ( s _ { t } = s , a _ { t } = a | s _ { 0 } \sim p _ { 0 } ( \cdot ) , s _ { t } \sim p ( \cdot | s _ { t - 1 } , a _ { t - 1 } ) , a _ { t } \sim \pi ( \cdot | s _ { t } ) ) .
41
+ $$
42
+
43
+ By the same token, the unknown expert policy also possesses a state-action distribution $d ^ { \mathrm { e x p } }$ , and one may usually assume that the expert demonstrations $\mathcal { D } : = \{ ( s _ { k } , a _ { k } , s _ { k } ^ { \prime } \} _ { k = 1 } ^ { N }$ are sampled as $( s _ { k } , a _ { k } ) \sim d ^ { \mathrm { e x p } } , s _ { k } ^ { \prime } \sim p ( \cdot | s _ { k } , a _ { k } )$ .
44
+
45
+ Accordingly, the distribution matching approach proposes to learn $\pi$ to minimize the divergence between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ . The KL-divergence is typically used to measure the discrepancy between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ (Ho & Ermon, 2016; Ke et al., 2019):
46
+
47
+ $$
48
+ \begin{array} { r l } & { \mathrm { \angle U 1 U , \ n c \ e u \ a t . , \angle U 1 5 } ) . } \\ & { \mathrm { \phantom { { \sum } D _ { K L } } } \left( d ^ { \pi } | | d ^ { \mathrm { e x p } } \right) = \mathbb { E } _ { ( s , a ) \sim d ^ { \pi } } \left[ \log \frac { d ^ { \mathrm { e x p } } ( s , a ) } { d ^ { \pi } ( s , a ) } \right] . } \end{array}
49
+ $$
50
+
51
+ The use of the KL-divergence is convenient, as it may be expressed as an RL problem where rewards are given by log distribution ratios:
52
+
53
+ $$
54
+ \begin{array} { r l } & { \textrm { y } \log \mathrm { ~ d r s t r u t o u t o n ~ r i a u t o r s . } } \\ & { \quad - D _ { \mathrm { K L } } \left( d ^ { \pi } | | d ^ { \mathrm { e x p } } \right) = ( 1 - \gamma ) \cdot \underset { s _ { 0 } \sim p _ { 0 } ( \cdot ) , \ a _ { t } \sim \pi ( \cdot | s _ { t } ) } { \mathbb { E } } \left[ \displaystyle \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \log \frac { d ^ { \mathrm { e x p } } \left( s _ { t } , a _ { t } \right) } { d ^ { \pi } \left( s _ { t } , a _ { t } \right) } \right] . } \end{array}
55
+ $$
56
+
57
+ In other words, if one has access to estimates of the distribution ratios of the two policies, then the minimum divergence problem reduces to a max-return RL problem with rewards $\tilde { r } ( s , a ) =$ lo g dexp(s,a)dπ(s,a) . Any on-policy or off-policy RL algorithm can be used to maximize the corresponding expected returns in Equation 4.
58
+
59
+ Capitalizing on this observation, Ho & Ermon (2016) and Ke et al. (2019) propose algorithms (e.g., GAIL) in which the distribution ratio is estimated using a GAN-like objective:
60
+
61
+ $$
62
+ \operatorname* { m a x } _ { h \colon \mathcal { S } \times \mathcal { A } \to ( 0 , 1 ) } J _ { \mathrm { G A I L } } ( h ) : = \mathbb { E } _ { ( s , a ) \sim d ^ { \mathrm { e x p } } } [ \log h ( s , a ) ] + \mathbb { E } _ { ( s , a ) \sim d ^ { \tau } } [ \log ( 1 - h ( s , a ) ) ] .
63
+ $$
64
+
65
+ In this objective, the function $h$ acts as a discriminator, discriminating between samples $( s , a )$ from $d ^ { \mathrm { e x p } }$ and $d ^ { \pi }$ . The optimal discriminator satisfies,
66
+
67
+ $$
68
+ \begin{array} { r l } & { \mathrm { \ a t { 1 0 5 4 . 1 1 1 1 1 1 4 U 1 } \ s a t { 1 5 1 0 5 } } , } \\ & { \log { h ^ { \ast } ( s , a ) } - \log ( 1 - h ^ { \ast } ( s , a ) ) = \log \frac { d ^ { \mathrm { e x p } } ( s , a ) } { d ^ { \pi } ( s , a ) } , } \end{array}
69
+ $$
70
+
71
+ and so the distribution matching rewards may be computed as $\tilde { r } ( s , a ) = \log h ^ { * } ( s , a ) - \log ( 1 -$ $h ^ { * } ( s , a ) )$ . In practice, the discriminator is not fully optimized, and instead gradient updates to the discriminator and policy are alternated.
72
+
73
+ These prior distribution matching approaches possess two limitations which we will resolve with our proposed ValueDICE algorithm:
74
+
75
+ • On-policy. Arguably the main limitation of these prior approaches is that they require access to on-policy samples from $d ^ { \pi }$ . While off-policy RL can be used for learning $\pi$ , optimizing the discriminator $h$ necessitates having on-policy samples (the second expectation in Equation 5). Thus, in practice, GAIL requires a prohibitively large number of environment interactions, making it unfeasible for use in many real-world applications. Attempts to remedy this, such as DiscriminatorActor-Critic (DAC) (Kostrikov et al., 2019), often do so via ad-hoc methods; for example, changing the on-policy expectation $\mathbb { E } _ { ( s , a ) \sim d ^ { \pi } } [ \log ( 1 - h ( s , a ) ) ]$ in Equation 5 to an expectation over the replay buffer $\mathbb { E } _ { ( s , a ) \sim d ^ { \mathrm { R B } } } [ \log ( 1 - h ( s , a ) ) ]$ . While DAC achieves good empirical results, it does not guarantee distribution matching of $\pi$ to $\pi _ { \mathrm { e x p } }$ , especially when $d ^ { \mathrm { R B } }$ is far from $d ^ { \pi }$ .
76
+
77
+ • Separate RL optimization. Prior approaches require iteratively taking alternating steps: first estimate the data distribution ratios using the GAN-like objective, then input these into an RL optimization and repeat. The use of a separate RL algorithm introduces complexity to any implementation of these approaches, with many additional design choices that need to be made and more function approximators to learn (e.g., value functions). Our introduced ValueDICE will be shown to not need a separate RL optimization.
78
+
79
+ # 3 OFF-POLICY FORMULATION OF THE KL-DIVERGENCE
80
+
81
+ As is standard in distribution matching, we begin with the KL-divergence between the policy stateaction occupancies and the expert. However, in contrast to the form used in Equation 4 or 5, we use the Donsker-Varadhan representation (Donsker & Varadhan, 1983) given by,
82
+
83
+ $$
84
+ - D _ { \mathrm { K L } } \left( d ^ { \pi } | | d ^ { \mathrm { e x p } } \right) = \operatorname* { m i n } _ { x : S \times \mathcal { A } \to \mathbb { R } } \log \mathbb { E } _ { ( s , a ) \sim d ^ { \mathrm { e x p } } } [ e ^ { x ( s , a ) } ] - \mathbb { E } _ { ( s , a ) \sim d ^ { \pi } } [ x ( s , a ) ] .
85
+ $$
86
+
87
+ Similar to Equation 5, this dual representation of the KL has a property that is important for imitation learning. The optimal $x ^ { * }$ is equal to the log distribution ratio (plus a constant):2
88
+
89
+ $$
90
+ x ^ { * } ( s , a ) = \log \frac { d ^ { \pi } ( s , a ) } { d ^ { \exp } ( s , a ) } + C .
91
+ $$
92
+
93
+ In our considered infinite-horizon setting, the constant does not affect optimality and so we will ignore it (take $C = 0$ ). If one were to take a GAIL-like approach, they could use this form of the KL to estimate distribution matching rewards given by $\tilde { r } ( \bar { s } , a ) = - x ^ { * } ( s , a )$ , and these could then be maximized by any standard RL algorithm. However, there is no clear advantage of this objective over GAIL since it still relies on an expectation with respect to on-policy samples from $d ^ { \pi }$ .
94
+
95
+ To make this objective practical for off-policy learning, we take inspiration from derivations used in DualDICE (Nachum et al., 2019b), and perform the following change of variables:3
96
+
97
+ $$
98
+ \begin{array} { r } { x ( s , a ) = \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) , } \end{array}
99
+ $$
100
+
101
+ where $B ^ { \pi }$ is the expected Bellman operator with respect to policy $\pi$ and zero reward:
102
+
103
+ $$
104
+ \begin{array} { r } { \mathcal { B } ^ { \pi } \nu ( s , a ) = \gamma \mathbb { E } _ { s ^ { \prime } \sim p ( \cdot \vert s , a ) , a ^ { \prime } \sim \pi ( \cdot \vert s ^ { \prime } ) } [ \nu ( s ^ { \prime } , a ^ { \prime } ) ] . } \end{array}
105
+ $$
106
+
107
+ This change of variables is explicitly chosen to take advantage of the linearity of the second expectation in Equation 7. Specifically, the representation becomes,
108
+
109
+ $$
110
+ - D _ { \mathrm { K L } } \left( d ^ { \pi } | | d ^ { \mathrm { e x p } } \right) = \operatorname* { m i n } _ { \substack { \nu : S \times A \to \mathbb { R } } } \log \underset { ( s , a ) \sim d ^ { \mathrm { e x p } } } { \mathbb { E } } [ e ^ { \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) } ] - \underset { ( s , a ) \sim d ^ { \pi } } { \mathbb { E } } [ \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) ] ,
111
+ $$
112
+
113
+ where the second expectation conveniently telescopes and reduces to an expectation over initial states (see Nachum et al. (2019b) for details):
114
+
115
+ $$
116
+ \operatorname* { m i n } _ { \substack { \nu : S \times A \to \mathbb { R } } } J _ { \mathrm { D I C E } } ( \nu ) : = \log \underset { ( s , a ) \sim d ^ { \mathrm { e x p } } } { \mathbb { E } } [ e ^ { \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) } ] - ( 1 - \gamma ) \cdot \underset { \substack { s _ { 0 } \sim \pi p ( \cdot | s _ { 0 } ) } } { \mathbb { E } } [ \nu ( s _ { 0 } , a _ { 0 } ) ] .
117
+ $$
118
+
119
+ Thus we achieve our $V a l u e D I C E ^ { 4 }$ objective. It allows us to express the KL-divergence between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ in terms of an objective over a ‘value-function’ $\nu$ expressed in an off-policy manner, with expectations over expert demonstrations $d ^ { \mathrm { e x p } }$ and initial state distribution $p _ { 0 } ( \cdot )$ .
120
+
121
+ It is clear that the derived objective in Equation 12 possesses two key characteristics missing from prior distribution matching algorithms: First, the objective does not rely on access to samples from the on-policy distribution $d ^ { \pi }$ , and so may be used in more realistic, off-policy settings. Second, the objective describes a proper divergence between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ , as opposed to estimating a divergence between $d ^ { \mathrm { R B } }$ and $d ^ { \mathrm { e x p } }$ , and thus avoids poor behavior when $d ^ { \mathrm { R B } }$ is far from $d ^ { \pi }$ . In the following section, we will go further to show how the objective in Equation 12 also renders the use of a separate RL optimization unnecessary.
122
+
123
+ # 4 VALUEDICE: IMITATION LEARNING WITH IMPLICIT REWARDS
124
+
125
+ Although it is standard in distribution matching to have separate optimizations for estimating the distribution ratios and learning a policy, in our case this can be mitigated. Indeed, looking at our
126
+
127
+ formulation of the KL in Equation 12, we see that gradients of this objective with respect to $\pi$ may be easily computed. Specifically, we may express the distribution matching objective for $\pi$ as a max-min optimization:
128
+
129
+ $$
130
+ \operatorname* { m a x } _ { \pi } \operatorname* { m i n } _ { \nu : S \times A \to \mathbb { R } } J _ { \mathrm { D I C E } } ( \pi , \nu ) : = \log \underset { ( s , a ) \sim d ^ { \mathrm { e x p } } } { \mathbb { E } } [ e ^ { \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) } ] - ( 1 - \gamma ) \cdot \underset { s _ { 0 } \sim p _ { 0 } ( \cdot ) _ { 0 } } { \mathbb { E } } [ \nu ( s _ { 0 } , a _ { 0 } ) ] .
131
+ $$
132
+
133
+ If the inner objective over $\nu$ is sufficiently optimized, the gradients of $\pi$ may be computed directly (Bertsekas, 1999), noting that,
134
+
135
+ $$
136
+ \frac { \partial } { \partial \pi } e ^ { \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) } = - \gamma \cdot e ^ { \nu ( s , a ) - B ^ { \pi } \nu ( s , a ) } \cdot \mathbb { E } _ { s ^ { \prime } \sim T ( s , a ) , a ^ { \prime } \sim \pi ( s ^ { \prime } ) } [ \nu ( s ^ { \prime } , a ^ { \prime } ) \nabla \log \pi ( a ^ { \prime } | s ^ { \prime } ) ] ,
137
+ $$
138
+
139
+ $$
140
+ \frac { \partial } { \partial \pi } \mathbb { E } _ { s _ { 0 } \sim p _ { 0 } ( \cdot ) , a _ { 0 } \sim \pi ( \cdot | s _ { 0 } ) } [ \nu ( s _ { 0 } , a _ { 0 } ) ] = \mathbb { E } _ { s _ { 0 } \sim p _ { 0 } ( \cdot ) , a _ { 0 } \sim \pi ( \cdot | s _ { 0 } ) } [ \nu ( s _ { 0 } , a _ { 0 } ) \nabla \log \pi ( a _ { 0 } | s _ { 0 } ) ] .
141
+ $$
142
+
143
+ In continuous control environments when $\pi$ is parameterized by a Gaussian and $\nu$ is a neural network, one may use the re-parameterization trick (Haarnoja et al., 2018) to compute gradients of the $\nu$ -values with respect to policy mean and variance directly as opposed to computing $\nabla \log \pi ( a | s )$ . Please see the appendix for a full pseudocode implementation of ValueDICE. We note that in practice, as in GAIL, we do not train $\nu$ until optimality but rather alternate $\nu$ and $\pi$ updates.
144
+
145
+ The mechanics of learning $\pi$ according to the ValueDICE objective are straightforward, but what is the underlying reason for this more streamlined policy learning? How does it relate the standard protocol of alternating data distribution estimation with RL optimization? To better understand this, we consider the form of $\nu$ when it is completely optimized. If we consider the original change of variables (Equation 9) and optimality characterization (Equation 8) we have,
146
+
147
+ $$
148
+ \nu ^ { * } ( s , a ) - \bar { B ^ { \pi } } \nu ^ { * } ( s , a ) = x ^ { * } ( s , a ) = \log \frac { d ^ { \pi } ( s , a ) } { d ^ { \exp } ( s , a ) } .
149
+ $$
150
+
151
+ From this characterization of $\nu ^ { * }$ , we realize that $\nu ^ { * }$ is a sort of $\mathrm { Q }$ -value function: $\nu ^ { * } ( s , a )$ is the future discounted sum of rewards r˜(s, a) := log dπ(s,a)dexp(s,a) when acting according to $\pi$ . The gradients for $\pi$ then encourage the policy to choose actions which minimize $\nu ^ { * } ( s , a )$ , i.e., maximize future discounted log ratios dexp(s,a)dπ(s,a) . Thus we realize that the objective for π in ValueDICE performs exactly the RL optimization suggested by Equation 4. The streamlined nature of ValueDICE comes from the fact that the value function $\nu$ (which would traditionally need to be learned as a critic in a separate actor-critic RL algorithm) is learned directly from the same objective as that used for distribution matching.
152
+
153
+ Thus, in addition to estimating a proper divergence between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ in an off-policy manner, ValueDICE also greatly simplifies the implementation of distribution matching algorithms. There is no longer a need to use a separate RL algorithm for learning $\pi$ , and moreover, the use of $\nu$ as a value function removes any use of explicit rewards. Instead, the objective and implementation are only in terms of policy $\pi$ and function $\nu$ .
154
+
155
+ # 5 SOME PRACTICAL CONSIDERATIONS
156
+
157
+ In order to make use of the ValueDICE objective (Equation 13) in practical scenarios, where one does not have access to $d ^ { \mathrm { e x p } }$ or $p _ { 0 } ( \cdot )$ but rather only limited finite samples, we perform several modifications.
158
+
159
+ # 5.1 EMPIRICAL EXPECTATIONS
160
+
161
+ The objective in Equation 13 contains three expectations:
162
+
163
+ 1. An expectation over $d ^ { \mathrm { e x p } }$ (the first term of the objective). Note that this expectation has a logarithm outside of it, which would make any mini-batch approximations of the gradient of this expectation biased.
164
+ 2. An expectation over $p _ { 0 } ( \cdot )$ (the second term of the objective). This term is linear, and so is very amenable to mini-batch optimization.
165
+
166
+ 3. An expectation over the environment transition $p ( \cdot | s , a )$ used to compute $B ^ { \pi } \nu ( s , a )$ . This expectation has a log-expected-exponent applied to it, so its mini-batch approximated gradient would be biased in general.
167
+
168
+ For the first expectation, previous works have suggested a number of remedies to reduce the bias of mini-batch gradients, such as maintaining moving averages of various quantities (Belghazi et al., 2018). In the setting we considered, we found this to have a negligible effect on performance. In fact, simply using the biased mini-batched gradients was sufficient for good performance, and so we used this for our experiments.
169
+
170
+ For the second expectation, we use standard mini-batch gradients, which are unbiased. Although initial state distributions are usually not used in imitation learning, it is easy to record initial states as they are observed, and thus have access to an empirical sample from $p _ { 0 }$ . Furthermore, as detailed in Section 5.3, it is possible to modify the initial state distribution used in the objective without adverse effects.
171
+
172
+ Finally, for the third expectation, previous works have suggested the use of Fenchel conjugates to remove the bias (Nachum et al., 2019b). In our case, we found this unnecessary and instead use a biased estimate based on the single sample $s ^ { \prime } \sim p ( \cdot | s , a )$ . This naive approach was enough to achieve good performance on the benchmark domains we considered.
173
+
174
+ In summary, the empirical form of the objective is given by,
175
+
176
+ $$
177
+ \begin{array} { r l } & { \hat { J } _ { \mathrm { D I C E } } ( \pi , \nu ) = } \\ & { \qquad \quad \frac { \mathbb { E } } { \mathrm { b a t c h } ( \mathcal { D } ) \sim \mathcal { D } } \left[ \log \underset { s , a , s ^ { \prime } \sim \mathrm { b a t c h } ( \mathcal { D } ) } { \mathbb { E } } \left[ e ^ { \nu ( s , a ) - \gamma \nu ( s ^ { \prime } , a ^ { \prime } ) } \right] - ( 1 - \gamma ) \cdot \underset { s _ { 0 } \sim \mathrm { b a t c h } ( p _ { 0 } ) } { \mathbb { E } } \left[ \nu ( s _ { 0 } , a _ { 0 } ) \right] \right] , } \\ & { \quad \mathrm { b a t c h } ( p _ { 0 } ) \sim \hat { p } _ { 0 } \quad \quad a ^ { \prime } \sim \pi ( \cdot | s ^ { \prime } ) } \end{array}
178
+ $$
179
+
180
+ where batch $( \mathcal { D } )$ is a mini-batch from $\mathcal { D }$ and batch $\left( p _ { 0 } \right)$ is a mini-batch from the recorded initial states $\hat { p } _ { 0 }$ .
181
+
182
+ # 5.2 REPLAY BUFFER REGULARIZATION
183
+
184
+ The original ValueDICE objective uses only expert samples and the initial state distribution. In practice, the number of expert samples may be small and lack diversity, hampering learning. In order to increase the diversity of samples used for training, we consider an alternative objective, with a controllable regularization based on experience in the replay buffer:
185
+
186
+ $$
187
+ \begin{array} { r l } & { J _ { \mathrm { D I C E } } ^ { \mathrm { m i x } } ( \pi , \nu ) : = \log \underset { ( s , a ) \sim d ^ { \mathrm { m i x } } } { \mathbb { E } } [ e ^ { \nu ( s , a ) - \mathcal { B } ^ { \pi } \nu ( s , a ) } ] - ( 1 - \alpha ) ( 1 - \gamma ) \cdot \underset { \underset { a _ { 0 } \sim \pi ( \cdot ) , ( s _ { 0 } ) } { \sum _ { \substack { s _ { 0 } \sim \pi ( \cdot ) , ( s _ { 0 } ) } } } } { \mathbb { E } } [ \nu ( s _ { 0 } , a _ { 0 } ) ] } \\ & { \qquad - \underset { ( s , a ) \sim d ^ { \mathrm { R B } } } { \mathbb { E } } [ \nu ( s , a ) - \mathcal { B } ^ { \pi } \nu ( s , a ) ] , } \end{array}
188
+ $$
189
+
190
+ where $d ^ { \mathrm { m i x } } ( s , a ) = ( 1 - \alpha ) d ^ { \mathrm { e x p } } ( s , a ) + \alpha d ^ { \mathrm { R B } } ( s , a )$ .
191
+
192
+ The main advantage of this formulation is that it introduces $\nu$ -values into the objective on samples that are outside the given expert demonstrations. Thus, if $\pi$ deviates from the expert trajectory, we will still be able to learn optimal actions that return the policy back to the expert behavior. At the same time, one can verify that in this formulation the optimal $\pi$ still matches $\pi _ { \mathrm { e x p } }$ , unlike other proposals for incorporating a replay buffer distribution (Kostrikov et al., 2019). Indeed, the objective in Equation 18 corresponds to the Donsker-Varadhan representation,
193
+
194
+ $$
195
+ \begin{array} { r l } & { \quad - D _ { \mathrm { K L } } ( ( 1 - \alpha ) d ^ { \pi } + \alpha d ^ { \mathrm { R B } } \parallel ( 1 - \alpha ) d ^ { \mathrm { e x p } } + \alpha d ^ { \mathrm { R B } } ) = } \\ & { \quad \underset { x : S \times A \to \mathbb { R } } { \operatorname* { m i n } } \log \mathbb { E } _ { ( s , a ) \sim d ^ { \operatorname* { m i n } } } [ e ^ { x ( s , a ) } ] - ( 1 - \alpha ) \cdot \mathbb { E } _ { ( s , a ) \sim d ^ { \pi } } \left[ x ( s , a ) \right] - \alpha \cdot \mathbb { E } _ { ( s , a ) \sim d ^ { \mathrm { R B } } } \left[ x ( s , a ) \right] , } \end{array}
196
+ $$
197
+
198
+ and so the optimal values of $\nu ^ { * }$ satisfy,
199
+
200
+ $$
201
+ \nu ^ { * } ( s , a ) - \mathcal { B } ^ { \pi } \nu ^ { * } ( s , a ) = x ^ { * } ( s , a ) = \log \frac { ( 1 - \alpha ) d ^ { \pi } ( s , a ) + \alpha d ^ { \mathrm { R B } } ( s , a ) } { ( 1 - \alpha ) d ^ { \exp } ( s , a ) + \alpha d ^ { \mathrm { R B } } ( s , a ) } .
202
+ $$
203
+
204
+ Therefore, the global optimality of $\pi = \pi _ { \mathrm { e x p } }$ is unaffected by any choice of $\alpha < 1$ . We note that in practice we use a small value $\alpha = 0 . 1$ for regularization.
205
+
206
+ # 5.3 INITIAL STATE SAMPLING
207
+
208
+ Recall that $d ^ { \mathrm { e x p } } , d ^ { \pi }$ traditionally refer to discounted state-action distributions. That is, sampling from them is equivalent to first sampling a trajectory $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ and then sampling a time index $t$ from a geometric distribution $\mathrm { G e o m } ( 1 - \gamma )$ (appropriately handling samples that are beyond $T$ ). This means that samples far into the trajectory do not contribute much to the objective. To remedy this, we propose treating every state in a trajectory as an ‘initial state.’ That is, we consider a single environment trajectory $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ as $T$ distinct virtual trajectories $\{ ( s _ { t } , a _ { t } , s _ { t + 1 } , a _ { t + 1 } , \ldots , s _ { T } ) \} _ { t = 0 } ^ { T - 1 }$ . We apply this to both $d ^ { \mathrm { e x p } }$ and $d ^ { \pi }$ , so that not only does it increase the diversity of samples from $d ^ { \mathrm { e x p } }$ , but it also expands the initial state distribution $p _ { 0 } ( \cdot )$ to encompass every state in a trajectory. We note that this does not affect the optimality of the objective with respect to $\pi$ , since in Markovian environments an expert policy should be expert regardless of the state at which it starts (Puterman, 2014).
209
+
210
+ # 6 RELATED WORK
211
+
212
+ In recent years, the development of Adversarial Imitation Learning has been mostly focused on on-policy algorithms. After Ho & Ermon (2016) proposed GAIL to perform imitation learning via adversarial training, a number of extensions has been introduced. Many of these applications of the AIL framework (Li et al., 2017; Hausman et al., 2017; Fu et al., 2017) maintain the same form of distribution ratio estimation as GAIL which necessitates on-policy samples. In contrast, our work presents an off-policy formulation of the same objective.
213
+
214
+ Although several works have attempted to apply the AIL framework to off-policy settings, these previous approaches are markedly different from our own. For example, Kostrikov et al. (2019) proposed to train the discriminator in the GAN-like AIL objective using samples from a replay buffer instead of samples from a policy. This changes the distribution ratio estimation to measure a divergence between the expert and the replay. Although we introduce a controllable parameter $\alpha$ for incorporating samples from the replay buffer into the data distribution objective, we note that in practice we use a very small $\alpha = 0 . 1$ . Furthermore, by using samples from the replay buffer in both terms of the objective as opposed to just one, the global optimality of the expert policy is not affected.
215
+
216
+ The off-policy formulation of the KL-divergence we derive is motivated by similar techniques in DualDICE (Nachum et al., 2019b). Still, our use of these techniques provides several novelties. First, Nachum et al. (2019b) only use the divergence formulation for data distribution estimation (which is used for off-policy evaluation), assuming a fixed policy. We use the formulation for learning a policy to minimize the divergence directly. Moreover, previous works have only applied these derivations to the $f$ -divergence form of the KL-divergence, while we are the first to utilize the Donsker-Varadhan form. Anecdotally in our initial experiments, we found that using the $f$ -divergence form leads to poor performance. We note that our proposed objective follows a form similar to REPS (Peters et al., 2010), which also utilizes a log-average-exp term. However, policy and value learning in REPS are performed via a bi-level optimization (i.e., the policy is learned with respect to a different objective), which is distinct from our algorithm, which trains values and policy with respect to the same objective. Our proposed ValueDICE is also significant for being able to incorporate arbitrary (non-expert) data into its learning.
217
+
218
+ # 7 EXPERIMENTS
219
+
220
+ We evaluate ValueDICE in a variety of settings, starting with a simple synthetic task before continuing to an evaluation on a suite of MuJoCo benchmarks.
221
+
222
+ # 7.1 RING MDP
223
+
224
+ We begin by analyzing the behavior of ValueDICE on a simple synthetic MDP (Figure 1). The states of the MDP are organized in a ring. At each state, two actions are possible: move clockwise or counter-clockwise. We first look at the performance of ValueDICE in a situation where the expert data is sparse and does not cover all states and actions. Specifically, we provide expert demonstrations which cover only states 0, 1, and 2 (see Figure 1 left). While the problem of recovering the true (unknown) expert is ill-defined, it is still possible to find a policy which recovers close to the same occupancies. Indeed, this is the policy found by ValueDICE, which chooses the appropriate actions at each state to optimally reach states 1 and 2 (and alternating between states 1 and 2 when at these states). In many practical scenarios, this is the desired outcome – if the imitating policy somehow encounters a situation which deviates from the expert demonstrations, we would like it to return to the expert behavior as fast as possible. Notably, a technique like behavioral cloning would fail to learn this optimal policy, since its learning is only based on observed expert data.
225
+
226
+ ![](images/2ff15254829b8cfb1c8cdb6e54c49f215f39c79c75058fb8ad858933a24fa0cd.jpg)
227
+ Figure 1: Results of ValueDICE on a simple Ring MDP. Left: The expert data is sparse and only covers states 0, 1, and 2. Nevertheless, ValueDICE is able to learn a policy on all states to best match the observed expert state-action occupancies (the policy learns to always go to states 1 and 2). Right: The expert is stochastic. ValueDICE is able to learn a policy which successfully minimizes the true KL computed between $d ^ { \pi }$ and $d ^ { \mathrm { e x p } }$ .
228
+
229
+ ![](images/e6aa314483fc0a1134e24081dcfdc01334e721b3d325da7bd3612178015a436a.jpg)
230
+ Figure 2: Comparison of algorithms given 1 expert trajectory. We use the original implementation of GAIL (Ho & Ermon, 2016) to produce GAIL and BC results.
231
+
232
+ We also analyzed the behavior of ValueDICE with a stochastic expert (Figure 1 right). By using a synthetic MDP, we are able to measure the divergence $D _ { \mathrm { K L } } ( d ^ { \pi } | | d ^ { \exp } )$ during training. As expected, we find that this divergence decreases during ValueDICE training.
233
+
234
+ # 7.2 MUJOCO BENCHMARKS
235
+
236
+ We compare ValueDICE against Discriminator-Actor-Critic (DAC) (Kostrikov et al., 2019), which is the state-of-the-art in sample-efficient adversarial imitation learning, as well as GAIL (Ho & Ermon, 2016). We evaluate the algorithms on the standard MuJoCo environments using expert demonstrations from Ho & Ermon (2016). We plot the average returns for the learned policies (using a mean action for sampling) every 1000 environment steps using 10 episodes. We perform this procedure for 10 different seeds and compute means and standard deviations (see Fig. 2 and 3, we visualize a half of standard deviation on these plots).
237
+
238
+ ![](images/fa089b6dfddf0856cc431126a3f3e087e9b34a5e6583d32af94ed14eca9a456e.jpg)
239
+ Figure 3: Comparison of algorithms given 10 expert trajectories. ValueDICE outperforms other methods. However, given this amount of data, BC can recover the expert policy as well.
240
+
241
+ We present the extremely low-data regime first. In Figure 2 we present the results of the imitation learning algorithms given only a single expert trajectory. We find that ValueDICE performs similar or better than DAC an all tasks, with the exception of Walker2d where it converges to a slightly worse policy. Notably, in this low-data regime, behavioral cloning (BC) usually cannot recover the expert policy. We also present the results of these algorithms on a larger number of expert demonstrations (Figure 3). We continue to observe strong performance of ValueDICE as well as faster convergence on all tasks. It is worth mentioning that in this large-data regime, Behavior Cloning can recover the expert performance as well. In all of these scenarios, GAIL is too sample-inefficient to make any progress.
242
+
243
+ # 8 CONCLUSION
244
+
245
+ We introduced ValueDICE, an algorithm for imitation learning that outperforms the state-of-the-art on standard MuJoCo tasks. In contrast to other algorithms for off-policy imitation learning, the algorithm introduced in this paper performs robust divergence minimization in a principled off-policy manner and a strong theoretical framework. To the best of our knowledge, this is also the first algorithm for adversarial imitation learning that omits learning or defining rewards explicitly and directly learns a Q-function in the distribution ratio objective directly. We demonstrate the robustness of ValueDICE in a challenging synthetic tabular MDP environment, as well as on standard MuJoCo continuous control benchmark environments, and we show increased performance over baselines in both the low and high data regimes.
246
+
247
+ # REFERENCES
248
+
249
+ Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004.
250
+
251
+ Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. arXiv preprint arXiv:1808.00177, 2018.
252
+
253
+ Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeswar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R Devon Hjelm. Mine: mutual information neural estimation. arXiv preprint arXiv:1801.04062, 2018.
254
+
255
+ D. P. Bertsekas. Nonlinear Programming. Athena Scientific, Belmont, MA, second edition, 1999.
256
+
257
+ Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016.
258
+
259
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
260
+
261
+ Monroe D Donsker and SR Srinivasa Varadhan. Asymptotic evaluation of certain markov process expectations for large time. iv. Communications on Pure and Applied Mathematics, 36(2):183– 212, 1983.
262
+
263
+ Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017.
264
+
265
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
266
+
267
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017.
268
+
269
+ Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018.
270
+
271
+ Karol Hausman, Yevgen Chebotar, Stefan Schaal, Gaurav Sukhatme, and Joseph J Lim. Multimodal imitation learning from unstructured demonstrations using generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 1235–1245, 2017.
272
+
273
+ Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in neural information processing systems, pp. 4565–4573, 2016.
274
+
275
+ Liyiming Ke, Matt Barnes, Wen Sun, Gilwoo Lee, Sanjiban Choudhury, and Siddhartha Srinivasa. Imitation learning as $f$ -divergence minimization. arXiv preprint arXiv:1905.12888, 2019.
276
+
277
+ Ilya Kostrikov, Kumar Krishna Agrawal, Debidatta Dwibedi, Sergey Levine, and Jonathan Tompson. Discriminator-actor-critic: Addressing sample inefficiency and reward bias in adversarial imitation learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ Hk4fpoA5Km.
278
+
279
+ Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In Advances in Neural Information Processing Systems, pp. 3812–3822, 2017.
280
+
281
+ Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann L Cun. Off-road obstacle avoidance through end-to-end learning. In Advances in neural information processing systems, pp. 739– 746, 2006.
282
+
283
+ Ofir Nachum, Michael Ahn, Hugo Ponte, Shixiang Gu, and Vikash Kumar. Multi-agent manipulation via locomotion using hierarchical sim2real. arXiv preprint arXiv:1908.05224, 2019a.
284
+
285
+ Ofir Nachum, Yinlam Chow, Bo Dai, and Lihong Li. Dualdice: Efficient estimation of off-policy stationary distribution corrections. 2019b.
286
+
287
+ Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning.
288
+
289
+ Jan Peters, Katharina Mulling, and Yasemin Altun. Relative entropy policy search. In Twenty-Fourth AAAI Conference on Artificial Intelligence, 2010.
290
+
291
+ Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989.
292
+
293
+ Martin L Puterman. Markov Decision Processes.: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014.
294
+
295
+ Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and struc- ´ tured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011.
296
+
297
+ Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ BkN5UoAqF7.
298
+
299
+ # A IMPLEMENTATION DETAILS
300
+
301
+ All algorithms use networks with an MLP architecture with 2 hidden layers and 256 hidden units. For discriminators, critic, $\nu$ we use Adam optimizer with learning rate $1 0 ^ { - 3 }$ while for the actors we use the learning rate of $1 0 ^ { - 5 }$ . For the discriminator and $\nu$ networks we use gradient penalties from Gulrajani et al. (2017). We also regularize the actor network with the orthogonal regularization (Brock et al., 2018) with a coefficient $1 \bar { 0 } ^ { - 4 }$ . Also we perform 4 updates per 1 environment step. We handle absorbing states of the environments similarly to Kostrikov et al. (2019).
302
+
303
+ # B ALGORITHMS
304
+
305
+ In this section, we present pseudocode for the imitation learning algorithms based on DualDICE.
306
+
307
+ Algorithm 1 ValueDICE
308
+ Input: expert replay buffer $\mathcal { R } _ { E }$ Initialize replay buffer $\mathcal { R } \emptyset$ for $n = 1 , \ldots , \mathbf { d o }$ Sample $( s , a , s ^ { \prime } )$ with $\pi _ { \theta }$ Add $( s , a , s ^ { \prime } )$ to the replay buffer $\mathcal { R }$ $\{ ( s ^ { ( i ) } , a ^ { ( i ) } , s ^ { \prime ( i ) } ) \} _ { i = 1 } ^ { B } \sim \mathcal { R }$ . Geometric sampling, is a st $\triangleright$ Geometric samplingting episode state for $\{ ( s _ { 0 } ^ { ( i ) } , s _ { E } ^ { ( i ) } , a _ { E } ^ { ( i ) } , s _ { E } ^ { \prime ( i ) } ) \} _ { i = 1 } ^ { B } \sim \mathcal { R } _ { E }$ $s _ { 0 } ^ { ( i ) }$ s(i)E a(i ) ∼ πθ (·|s(i)0 ), for i = 1, . . . , B a0(i) ∼ πθ (·|s0(i)), for i = 1, . . . , B $a _ { E } ^ { \prime ( i ) } \sim \pi _ { \theta } ( \cdot | s _ { E } ^ { \prime ( i ) } )$ , for i = 1, . . . , B Compute loss on expert data: $\begin{array} { r } { \hat { J } _ { l o g } ^ { \mathrm { ~ ~ } } = \log \bigl ( \frac { 1 } { B } \sum _ { i = 1 } ^ { B } \bigl ( ( 1 - \alpha ) e ^ { \nu _ { \psi } ( s _ { E } ^ { ( i ) } , a _ { E } ^ { ( i ) } ) - \gamma \nu _ { \psi } ( s _ { E } ^ { \prime ( i ) } , a _ { E } ^ { \prime ( i ) } ) } + \alpha e ^ { \nu _ { \psi } ( s ^ { ( i ) } , a ^ { ( i ) } ) - \gamma \nu _ { \psi } ( s ^ { \prime ( i ) } , a ^ { \prime ( i ) } ) } \bigr ) \bigr ) } \end{array}$ Compute loss on the replay buffer: $\begin{array} { r } { \hat { J } _ { l i n e a r } = \frac { 1 } { B } \sum _ { i = 1 } ^ { B } ( ( 1 - \dot { \alpha } ) ( 1 - \gamma ) \nu _ { \psi } ( s _ { 0 } ^ { ( i ) } , a _ { 0 } ^ { ( i ) } ) + \alpha ( \nu _ { \psi } ( s ^ { ( i ) } , a ^ { ( i ) } ) - \gamma \nu _ { \psi } ( s ^ { \prime ( i ) } , a ^ { \prime ( i ) } ) ) ) } \end{array}$ Update $\psi \psi - \eta _ { \nu } \nabla _ { \psi } ( \hat { J } _ { l o g } - \hat { J } _ { l i n e a r } )$ Update $\theta \psi + \eta _ { \pi } \nabla _ { \theta } \big ( \hat { J } _ { l o g } - \hat { J } _ { l i n e a r } \big )$ end for
309
+
310
+ # C ADDITIONAL EXPERIMENTS
311
+
312
+ We also compared ValueDICE with behavioral cloning in the offline regime, when we sample no additional transitions from the learning environment (see Figure 4). Even given only offline data, ValueDICE outperforms behavioral cloning. For behavioral cloning we used the same regularization as for actor training in ValueDICE.
313
+
314
+ ![](images/c40b80cae8865eb5124efdc9cf33f4d8e08f441eaac4f78921409f7e9ee1c58c.jpg)
315
+ Figure 4: ValueDICE outperforms behavioral cloning given 1 trajectory even without replay regularization.
parse/train/Hyg-JC4FDr/Hyg-JC4FDr_content_list.json ADDED
@@ -0,0 +1,1597 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "IMITATION LEARNING VIA OFF-POLICY DISTRIBUTION MATCHING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 650,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ilya Kostrikov∗, Ofir Nachum, Jonathan Tompson Google Research {kostrikov, ofirnachum, tompson}@google.com ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 601,
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": "When performing imitation learning from expert demonstrations, distribution matching is a popular approach, in which one alternates between estimating distribution ratios and then using these ratios as rewards in a standard reinforcement learning (RL) algorithm. Traditionally, estimation of the distribution ratio requires on-policy data, which has caused previous work to either be exorbitantly datainefficient or alter the original objective in a manner that can drastically change its optimum. In this work, we show how the original distribution ratio estimation objective may be transformed in a principled manner to yield a completely off-policy objective. In addition to the data-efficiency that this provides, we are able to show that this objective also renders the use of a separate RL optimization unnecessary. Rather, an imitation policy may be learned directly from this objective without the use of explicit rewards. We call the resulting algorithm ValueDICE and evaluate it on a suite of popular imitation learning benchmarks, finding that it can achieve state-of-the-art sample efficiency and performance.1 ",
40
+ "bbox": [
41
+ 233,
42
+ 280,
43
+ 764,
44
+ 473
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 497,
55
+ 336,
56
+ 513
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Reinforcement learning (RL) is typically framed as learning a behavior policy based on reward feedback from trial-and-error experience. Accordingly, many successful demonstrations of RL often rely on carefully handcrafted rewards with various bonuses and penalties designed to encourage intended behavior (Nachum et al., 2019a; Andrychowicz et al., 2018). In contrast, many real-world behaviors are easier to demonstrate rather than devise explicit rewards. This realization is at the heart of imitation learning (Ho & Ermon, 2016; Ng et al.; Pomerleau, 1989), in which one aims to learn a behavior policy from a set of expert demonstrations – logged experience data of a near-optimal policy interacting with the environment – without explicit knowledge of rewards. ",
63
+ "bbox": [
64
+ 174,
65
+ 529,
66
+ 825,
67
+ 640
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Distribution matching via adversarial learning, or Adversarial Imitation Learning (AIL), has recently become a popular approach for imitation learning (Ho & Ermon, 2016; Fu et al., 2017; Ke et al., 2019; Kostrikov et al., 2019). These methods interpret the states and actions provided in the expert demonstrations as a finite sample from a target distribution. Imitation learning can then be framed as learning a behavior policy which minimizes a divergence between this target distribution and the state-action distribution induced by the behavior policy interacting with the environment. As derived by Ho & Ermon (2016), this divergence minimization may be achieved by iteratively performing two alternating steps, reminiscent of GAN algorithms (Goodfellow et al., 2014). First, one estimates the density ratio of states and actions between the target distribution and the behavior policy. Then, these density ratios are used as rewards for a standard RL algorithm, and the behavior policy is updated to maximize these cumulative rewards (data distribution ratios). ",
74
+ "bbox": [
75
+ 174,
76
+ 647,
77
+ 825,
78
+ 799
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The main limitation of current distribution matching approaches is that estimating distribution density ratios (the first step of every iteration) typically requires samples from the behavior policy distribution. This means that every iteration – every update to the behavior policy – requires new interactions with the environment, precluding the use of these algorithms in settings where interactions with the environment are expensive and limited. Several papers attempt to relax this on-policy requirement and resolve the sample inefficiency problem by designing off-policy imitation learning algorithms, which may take advantage of past logged data, usually in the form of a replay buffer (Kostrikov et al., 2019; Sasaki et al., 2019). However, these methods do so by altering the original divergence minimization objective to measure a divergence between the target expert distribution and the replay buffer distribution. Accordingly, there is no guarantee that the learned policy will recover the desired target distribution. ",
85
+ "bbox": [
86
+ 174,
87
+ 806,
88
+ 823,
89
+ 876
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": "In this work, we introduce an algorithm for imitation learning that, on the one hand, performs divergence minimization as in the original AIL methods, while on the other hand, is completely off-policy. We begin by providing a new formulation of the minimum divergence objective that avoids the use of any explicit on-policy expectations. While this objective may be used in the traditional way to estimate data distribution ratios that are then input to an RL algorithm, we go further to show how the specific form of the derived objective renders the use of a separate RL optimization unnecessary. Rather, gradients of the minimum divergence objective with respect to behavior policy may be computed directly. This way, an imitating behavior policy may be learned to minimize the divergence without the use of explicit rewards. We call this stream-lined imitation learning algorithm ValueDICE. In addition to being simpler than standard imitation learning methods, we show that our proposed algorithm is able to achieve state-of-the-art performance on a suite of imitation learning benchmarks. ",
107
+ "bbox": [
108
+ 173,
109
+ 194,
110
+ 825,
111
+ 361
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 BACKGROUND ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 392,
122
+ 326,
123
+ 409
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "We consider environments represented as a Markov Decision Process (MDP) (Puterman, 2014), defined by the tuple, $( \\mathcal { S } , \\mathcal { A } , \\bar { p _ { 0 } } ( s ) , p ( s ^ { \\prime } | s , a ) , r ( s , a ) , \\gamma )$ , where $s$ and $\\mathcal { A }$ are the state and action space, respectively, $p _ { 0 } ( s )$ is an initial state distribution, $p ( s ^ { \\prime } | s , a )$ defines environment dynamics represented as a conditional state distribution, $r ( s , a )$ is a reward function, and $\\gamma$ is a return discount factor. A behavior policy $\\pi ( \\cdot | \\cdot )$ interacts with the environment to yield experience $\\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \\right)$ , for $t = 0 , 1 , \\ldots$ , where $s _ { 0 } \\sim p _ { 0 } ( \\cdot )$ , $a _ { t } \\sim \\pi ( \\cdot | s _ { t } )$ , $s _ { t + 1 } \\sim p \\big ( \\cdot | s _ { t } , \\dot { a _ { t } } \\big )$ , $r _ { t } = r ( s _ { t } , a _ { t } )$ . Without loss of generality, we consider infinite-horizon, non-terminating environments. In standard RL, one aims to learn a behavior policy $\\pi ( \\cdot | s )$ to maximize cumulative rewards, based on experience gained from interacting with the environment. ",
130
+ "bbox": [
131
+ 174,
132
+ 429,
133
+ 825,
134
+ 555
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "In imitation learning (Pomerleau, 1989; Abbeel & $\\mathrm { N g }$ , 2004; Ho & Ermon, 2016), the environment reward is not observed. Rather, one has access to a set of expert demonstrations $\\mathcal { D } : =$ $\\{ ( s _ { k } , a _ { k } , s _ { k } ^ { \\prime } \\} _ { k = 1 } ^ { N }$ given by state-action-next-state transitions in the environment induced by an unknown expert policy $\\pi _ { \\mathrm { e x p } }$ and the goal is to learn a behavior policy $\\pi$ which recovers $\\pi _ { \\mathrm { e x p } }$ . During the learning process, in addition to the finite set of expert demonstrations $\\mathcal { D }$ , one may also optionally interact with the environment (in these interactions, no rewards are observed). This setting describes a number of real-world applications where rewards are unknown, such as Pomerleau (1989); Muller et al. (2006); Bojarski et al. (2016). ",
141
+ "bbox": [
142
+ 174,
143
+ 561,
144
+ 825,
145
+ 674
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2.1 BEHAVIORAL CLONING (BC) ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 176,
155
+ 700,
156
+ 418,
157
+ 715
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Supervised behavioral cloning (BC) is a popular approach for imitation learning. Given a set of expert demonstrations, a mapping of state observations to actions is fit using regression or density estimation. In the simplest case, one simply trains the behavior policy $\\pi$ to minimize the negative log-likelihood of the observed expert actions: ",
164
+ "bbox": [
165
+ 174,
166
+ 731,
167
+ 825,
168
+ 787
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "equation",
174
+ "img_path": "images/4bbe2e9e2058a19c946206f2d19e81bda9ab96147eee9686a2922c660c9179d5.jpg",
175
+ "text": "$$\n\\operatorname* { m i n } _ { \\pi } J _ { \\mathrm { B C } } ( \\pi ) : = - \\frac { 1 } { N } \\sum _ { k = 1 } ^ { N } \\log \\pi ( a _ { k } | s _ { k } ) .\n$$",
176
+ "text_format": "latex",
177
+ "bbox": [
178
+ 369,
179
+ 795,
180
+ 630,
181
+ 838
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Unlike Inverse Reinforcement Learning (IRL) algorithms (e.g. GAIL (Ho & Ermon, 2016)), BC does not perform any additional policy interactions with the learning environment and hence does not suffer from the same issue of policy sample complexity. However, behavioral cloning suffers from distributional drift (Ross et al., 2011); i.e., there is no way for $\\pi$ to learn how to recover if it deviates from the expert behavior to a state $\\tilde { s }$ not seen in the expert demonstrations. ",
188
+ "bbox": [
189
+ 174,
190
+ 853,
191
+ 823,
192
+ 924
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "2.2 DISTRIBUTION MATCHING ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 176,
202
+ 103,
203
+ 400,
204
+ 118
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The distribution matching approach provides a family of methods that are robust to distributional shift. Rather than considering the policy directly as a conditional distribution $\\pi ( \\cdot | s )$ over actions, this approach considers the state-action distribution induced by a policy. In particular, under certain conditions (Puterman, 2014), there is a one-to-one correspondence between a policy and its stateaction distribution $d ^ { \\pi }$ defined as,∞ ",
211
+ "bbox": [
212
+ 173,
213
+ 128,
214
+ 825,
215
+ 200
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "equation",
221
+ "img_path": "images/a85d67e9bcc4c6752ff74cf8845cbf24d2f1e5c51e03b3e762f5b652072d6b9a.jpg",
222
+ "text": "$$\nd ^ { \\pi } ( s , a ) = ( 1 - \\gamma ) \\cdot \\sum _ { t = 0 } ^ { } \\gamma ^ { t } p ( s _ { t } = s , a _ { t } = a | s _ { 0 } \\sim p _ { 0 } ( \\cdot ) , s _ { t } \\sim p ( \\cdot | s _ { t - 1 } , a _ { t - 1 } ) , a _ { t } \\sim \\pi ( \\cdot | s _ { t } ) ) .\n$$",
223
+ "text_format": "latex",
224
+ "bbox": [
225
+ 184,
226
+ 200,
227
+ 792,
228
+ 233
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "By the same token, the unknown expert policy also possesses a state-action distribution $d ^ { \\mathrm { e x p } }$ , and one may usually assume that the expert demonstrations $\\mathcal { D } : = \\{ ( s _ { k } , a _ { k } , s _ { k } ^ { \\prime } \\} _ { k = 1 } ^ { N }$ are sampled as $( s _ { k } , a _ { k } ) \\sim d ^ { \\mathrm { e x p } } , s _ { k } ^ { \\prime } \\sim p ( \\cdot | s _ { k } , a _ { k } )$ . ",
235
+ "bbox": [
236
+ 174,
237
+ 234,
238
+ 825,
239
+ 280
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Accordingly, the distribution matching approach proposes to learn $\\pi$ to minimize the divergence between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ . The KL-divergence is typically used to measure the discrepancy between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ (Ho & Ermon, 2016; Ke et al., 2019): ",
246
+ "bbox": [
247
+ 173,
248
+ 285,
249
+ 825,
250
+ 325
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "equation",
256
+ "img_path": "images/7cb8e7bd0dbfd7d9e7738c2254d13a713679664dd55e65f903ade59adf14f020.jpg",
257
+ "text": "$$\n\\begin{array} { r l } & { \\mathrm { \\angle U 1 U , \\ n c \\ e u \\ a t . , \\angle U 1 5 } ) . } \\\\ & { \\mathrm { \\phantom { { \\sum } D _ { K L } } } \\left( d ^ { \\pi } | | d ^ { \\mathrm { e x p } } \\right) = \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\pi } } \\left[ \\log \\frac { d ^ { \\mathrm { e x p } } ( s , a ) } { d ^ { \\pi } ( s , a ) } \\right] . } \\end{array}\n$$",
258
+ "text_format": "latex",
259
+ "bbox": [
260
+ 333,
261
+ 319,
262
+ 665,
263
+ 354
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "The use of the KL-divergence is convenient, as it may be expressed as an RL problem where rewards are given by log distribution ratios: ",
270
+ "bbox": [
271
+ 173,
272
+ 356,
273
+ 821,
274
+ 383
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "equation",
280
+ "img_path": "images/65759ea29c46651ce64c70e1519f0757fe4f1269c2fd671583add1db2973d331.jpg",
281
+ "text": "$$\n\\begin{array} { r l } & { \\textrm { y } \\log \\mathrm { ~ d r s t r u t o u t o n ~ r i a u t o r s . } } \\\\ & { \\quad - D _ { \\mathrm { K L } } \\left( d ^ { \\pi } | | d ^ { \\mathrm { e x p } } \\right) = ( 1 - \\gamma ) \\cdot \\underset { s _ { 0 } \\sim p _ { 0 } ( \\cdot ) , \\ a _ { t } \\sim \\pi ( \\cdot | s _ { t } ) } { \\mathbb { E } } \\left[ \\displaystyle \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\log \\frac { d ^ { \\mathrm { e x p } } \\left( s _ { t } , a _ { t } \\right) } { d ^ { \\pi } \\left( s _ { t } , a _ { t } \\right) } \\right] . } \\end{array}\n$$",
282
+ "text_format": "latex",
283
+ "bbox": [
284
+ 246,
285
+ 376,
286
+ 753,
287
+ 426
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "In other words, if one has access to estimates of the distribution ratios of the two policies, then the minimum divergence problem reduces to a max-return RL problem with rewards $\\tilde { r } ( s , a ) =$ lo g dexp(s,a)dπ(s,a) . Any on-policy or off-policy RL algorithm can be used to maximize the corresponding expected returns in Equation 4. ",
294
+ "bbox": [
295
+ 173,
296
+ 435,
297
+ 825,
298
+ 498
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Capitalizing on this observation, Ho & Ermon (2016) and Ke et al. (2019) propose algorithms (e.g., GAIL) in which the distribution ratio is estimated using a GAN-like objective: ",
305
+ "bbox": [
306
+ 168,
307
+ 503,
308
+ 825,
309
+ 534
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "img_path": "images/1a0d6344e40f518fcd553e7957066631b82bc79c7ec94e7b8ccf9303af46a106.jpg",
316
+ "text": "$$\n\\operatorname* { m a x } _ { h \\colon \\mathcal { S } \\times \\mathcal { A } \\to ( 0 , 1 ) } J _ { \\mathrm { G A I L } } ( h ) : = \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\mathrm { e x p } } } [ \\log h ( s , a ) ] + \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\tau } } [ \\log ( 1 - h ( s , a ) ) ] .\n$$",
317
+ "text_format": "latex",
318
+ "bbox": [
319
+ 232,
320
+ 535,
321
+ 767,
322
+ 560
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "In this objective, the function $h$ acts as a discriminator, discriminating between samples $( s , a )$ from $d ^ { \\mathrm { e x p } }$ and $d ^ { \\pi }$ . The optimal discriminator satisfies, ",
329
+ "bbox": [
330
+ 179,
331
+ 564,
332
+ 823,
333
+ 592
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "equation",
339
+ "img_path": "images/2ee51da2ccbcaa0042978954f18ffca2ceb8ade2dece2807fb40035df5b8304f.jpg",
340
+ "text": "$$\n\\begin{array} { r l } & { \\mathrm { \\ a t { 1 0 5 4 . 1 1 1 1 1 1 4 U 1 } \\ s a t { 1 5 1 0 5 } } , } \\\\ & { \\log { h ^ { \\ast } ( s , a ) } - \\log ( 1 - h ^ { \\ast } ( s , a ) ) = \\log \\frac { d ^ { \\mathrm { e x p } } ( s , a ) } { d ^ { \\pi } ( s , a ) } , } \\end{array}\n$$",
341
+ "text_format": "latex",
342
+ "bbox": [
343
+ 331,
344
+ 585,
345
+ 666,
346
+ 619
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "and so the distribution matching rewards may be computed as $\\tilde { r } ( s , a ) = \\log h ^ { * } ( s , a ) - \\log ( 1 -$ $h ^ { * } ( s , a ) )$ . In practice, the discriminator is not fully optimized, and instead gradient updates to the discriminator and policy are alternated. ",
353
+ "bbox": [
354
+ 174,
355
+ 622,
356
+ 825,
357
+ 665
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "These prior distribution matching approaches possess two limitations which we will resolve with our proposed ValueDICE algorithm: ",
364
+ "bbox": [
365
+ 174,
366
+ 670,
367
+ 821,
368
+ 700
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "• On-policy. Arguably the main limitation of these prior approaches is that they require access to on-policy samples from $d ^ { \\pi }$ . While off-policy RL can be used for learning $\\pi$ , optimizing the discriminator $h$ necessitates having on-policy samples (the second expectation in Equation 5). Thus, in practice, GAIL requires a prohibitively large number of environment interactions, making it unfeasible for use in many real-world applications. Attempts to remedy this, such as DiscriminatorActor-Critic (DAC) (Kostrikov et al., 2019), often do so via ad-hoc methods; for example, changing the on-policy expectation $\\mathbb { E } _ { ( s , a ) \\sim d ^ { \\pi } } [ \\log ( 1 - h ( s , a ) ) ]$ in Equation 5 to an expectation over the replay buffer $\\mathbb { E } _ { ( s , a ) \\sim d ^ { \\mathrm { R B } } } [ \\log ( 1 - h ( s , a ) ) ]$ . While DAC achieves good empirical results, it does not guarantee distribution matching of $\\pi$ to $\\pi _ { \\mathrm { e x p } }$ , especially when $d ^ { \\mathrm { R B } }$ is far from $d ^ { \\pi }$ . ",
375
+ "bbox": [
376
+ 174,
377
+ 705,
378
+ 825,
379
+ 837
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "• Separate RL optimization. Prior approaches require iteratively taking alternating steps: first estimate the data distribution ratios using the GAN-like objective, then input these into an RL optimization and repeat. The use of a separate RL algorithm introduces complexity to any implementation of these approaches, with many additional design choices that need to be made and more function approximators to learn (e.g., value functions). Our introduced ValueDICE will be shown to not need a separate RL optimization. ",
386
+ "bbox": [
387
+ 174,
388
+ 837,
389
+ 825,
390
+ 921
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "3 OFF-POLICY FORMULATION OF THE KL-DIVERGENCE ",
397
+ "text_level": 1,
398
+ "bbox": [
399
+ 173,
400
+ 101,
401
+ 656,
402
+ 118
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "As is standard in distribution matching, we begin with the KL-divergence between the policy stateaction occupancies and the expert. However, in contrast to the form used in Equation 4 or 5, we use the Donsker-Varadhan representation (Donsker & Varadhan, 1983) given by, ",
409
+ "bbox": [
410
+ 173,
411
+ 132,
412
+ 825,
413
+ 176
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "equation",
419
+ "img_path": "images/22437e94c7eb099eb853cf99768266544ee2d314444fb56c29a0456a7147b594.jpg",
420
+ "text": "$$\n- D _ { \\mathrm { K L } } \\left( d ^ { \\pi } | | d ^ { \\mathrm { e x p } } \\right) = \\operatorname* { m i n } _ { x : S \\times \\mathcal { A } \\to \\mathbb { R } } \\log \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\mathrm { e x p } } } [ e ^ { x ( s , a ) } ] - \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\pi } } [ x ( s , a ) ] .\n$$",
421
+ "text_format": "latex",
422
+ "bbox": [
423
+ 248,
424
+ 183,
425
+ 751,
426
+ 208
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "Similar to Equation 5, this dual representation of the KL has a property that is important for imitation learning. The optimal $x ^ { * }$ is equal to the log distribution ratio (plus a constant):2 ",
433
+ "bbox": [
434
+ 174,
435
+ 214,
436
+ 823,
437
+ 243
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "equation",
443
+ "img_path": "images/0dd145ff69c8593736b139d7d7396c9d83dae6ab968267a1ed45c9e988e00a76.jpg",
444
+ "text": "$$\nx ^ { * } ( s , a ) = \\log \\frac { d ^ { \\pi } ( s , a ) } { d ^ { \\exp } ( s , a ) } + C .\n$$",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 395,
448
+ 248,
449
+ 602,
450
+ 284
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "In our considered infinite-horizon setting, the constant does not affect optimality and so we will ignore it (take $C = 0$ ). If one were to take a GAIL-like approach, they could use this form of the KL to estimate distribution matching rewards given by $\\tilde { r } ( \\bar { s } , a ) = - x ^ { * } ( s , a )$ , and these could then be maximized by any standard RL algorithm. However, there is no clear advantage of this objective over GAIL since it still relies on an expectation with respect to on-policy samples from $d ^ { \\pi }$ . ",
457
+ "bbox": [
458
+ 173,
459
+ 289,
460
+ 825,
461
+ 359
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "To make this objective practical for off-policy learning, we take inspiration from derivations used in DualDICE (Nachum et al., 2019b), and perform the following change of variables:3 ",
468
+ "bbox": [
469
+ 173,
470
+ 364,
471
+ 823,
472
+ 395
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "equation",
478
+ "img_path": "images/a5cddfbbd32a2b1fb396da1b07a15c933f07facd1b9367aa89f5561db83cec78.jpg",
479
+ "text": "$$\n\\begin{array} { r } { x ( s , a ) = \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) , } \\end{array}\n$$",
480
+ "text_format": "latex",
481
+ "bbox": [
482
+ 395,
483
+ 400,
484
+ 601,
485
+ 417
486
+ ],
487
+ "page_idx": 3
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "where $B ^ { \\pi }$ is the expected Bellman operator with respect to policy $\\pi$ and zero reward: ",
492
+ "bbox": [
493
+ 174,
494
+ 424,
495
+ 730,
496
+ 439
497
+ ],
498
+ "page_idx": 3
499
+ },
500
+ {
501
+ "type": "equation",
502
+ "img_path": "images/4f02c4c5c38a442a62abf8e5eaa75a7e355f73bf82b26e95fc246636d9e5f5ff.jpg",
503
+ "text": "$$\n\\begin{array} { r } { \\mathcal { B } ^ { \\pi } \\nu ( s , a ) = \\gamma \\mathbb { E } _ { s ^ { \\prime } \\sim p ( \\cdot \\vert s , a ) , a ^ { \\prime } \\sim \\pi ( \\cdot \\vert s ^ { \\prime } ) } [ \\nu ( s ^ { \\prime } , a ^ { \\prime } ) ] . } \\end{array}\n$$",
504
+ "text_format": "latex",
505
+ "bbox": [
506
+ 346,
507
+ 445,
508
+ 651,
509
+ 464
510
+ ],
511
+ "page_idx": 3
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "This change of variables is explicitly chosen to take advantage of the linearity of the second expectation in Equation 7. Specifically, the representation becomes, ",
516
+ "bbox": [
517
+ 173,
518
+ 469,
519
+ 821,
520
+ 497
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "equation",
526
+ "img_path": "images/d67a86b88b6ce34d40afdb5da59ad0c9cb95133dc0919a4cd9fed31ae813a212.jpg",
527
+ "text": "$$\n- D _ { \\mathrm { K L } } \\left( d ^ { \\pi } | | d ^ { \\mathrm { e x p } } \\right) = \\operatorname* { m i n } _ { \\substack { \\nu : S \\times A \\to \\mathbb { R } } } \\log \\underset { ( s , a ) \\sim d ^ { \\mathrm { e x p } } } { \\mathbb { E } } [ e ^ { \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) } ] - \\underset { ( s , a ) \\sim d ^ { \\pi } } { \\mathbb { E } } [ \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) ] ,\n$$",
528
+ "text_format": "latex",
529
+ "bbox": [
530
+ 179,
531
+ 503,
532
+ 789,
533
+ 532
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "where the second expectation conveniently telescopes and reduces to an expectation over initial states (see Nachum et al. (2019b) for details): ",
540
+ "bbox": [
541
+ 173,
542
+ 539,
543
+ 823,
544
+ 566
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "equation",
550
+ "img_path": "images/bf554ca9f2ab5dd2436d552e94293e091d34868549629f6ceb697d8429a86e99.jpg",
551
+ "text": "$$\n\\operatorname* { m i n } _ { \\substack { \\nu : S \\times A \\to \\mathbb { R } } } J _ { \\mathrm { D I C E } } ( \\nu ) : = \\log \\underset { ( s , a ) \\sim d ^ { \\mathrm { e x p } } } { \\mathbb { E } } [ e ^ { \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) } ] - ( 1 - \\gamma ) \\cdot \\underset { \\substack { s _ { 0 } \\sim \\pi p ( \\cdot | s _ { 0 } ) } } { \\mathbb { E } } [ \\nu ( s _ { 0 } , a _ { 0 } ) ] .\n$$",
552
+ "text_format": "latex",
553
+ "bbox": [
554
+ 197,
555
+ 571,
556
+ 776,
557
+ 612
558
+ ],
559
+ "page_idx": 3
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "Thus we achieve our $V a l u e D I C E ^ { 4 }$ objective. It allows us to express the KL-divergence between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ in terms of an objective over a ‘value-function’ $\\nu$ expressed in an off-policy manner, with expectations over expert demonstrations $d ^ { \\mathrm { e x p } }$ and initial state distribution $p _ { 0 } ( \\cdot )$ . ",
564
+ "bbox": [
565
+ 176,
566
+ 619,
567
+ 821,
568
+ 662
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "It is clear that the derived objective in Equation 12 possesses two key characteristics missing from prior distribution matching algorithms: First, the objective does not rely on access to samples from the on-policy distribution $d ^ { \\pi }$ , and so may be used in more realistic, off-policy settings. Second, the objective describes a proper divergence between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ , as opposed to estimating a divergence between $d ^ { \\mathrm { R B } }$ and $d ^ { \\mathrm { e x p } }$ , and thus avoids poor behavior when $d ^ { \\mathrm { R B } }$ is far from $d ^ { \\pi }$ . In the following section, we will go further to show how the objective in Equation 12 also renders the use of a separate RL optimization unnecessary. ",
575
+ "bbox": [
576
+ 173,
577
+ 669,
578
+ 825,
579
+ 767
580
+ ],
581
+ "page_idx": 3
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "4 VALUEDICE: IMITATION LEARNING WITH IMPLICIT REWARDS ",
586
+ "text_level": 1,
587
+ "bbox": [
588
+ 176,
589
+ 787,
590
+ 728,
591
+ 804
592
+ ],
593
+ "page_idx": 3
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "Although it is standard in distribution matching to have separate optimizations for estimating the distribution ratios and learning a policy, in our case this can be mitigated. Indeed, looking at our ",
598
+ "bbox": [
599
+ 176,
600
+ 819,
601
+ 821,
602
+ 848
603
+ ],
604
+ "page_idx": 3
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "formulation of the KL in Equation 12, we see that gradients of this objective with respect to $\\pi$ may be easily computed. Specifically, we may express the distribution matching objective for $\\pi$ as a max-min optimization: ",
609
+ "bbox": [
610
+ 176,
611
+ 103,
612
+ 825,
613
+ 145
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "equation",
619
+ "img_path": "images/a5c5dcc68e8c674b9993b833475699c96fa7fd06c012e73c84addfec844dcd33.jpg",
620
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi } \\operatorname* { m i n } _ { \\nu : S \\times A \\to \\mathbb { R } } J _ { \\mathrm { D I C E } } ( \\pi , \\nu ) : = \\log \\underset { ( s , a ) \\sim d ^ { \\mathrm { e x p } } } { \\mathbb { E } } [ e ^ { \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) } ] - ( 1 - \\gamma ) \\cdot \\underset { s _ { 0 } \\sim p _ { 0 } ( \\cdot ) _ { 0 } } { \\mathbb { E } } [ \\nu ( s _ { 0 } , a _ { 0 } ) ] .\n$$",
621
+ "text_format": "latex",
622
+ "bbox": [
623
+ 183,
624
+ 143,
625
+ 790,
626
+ 184
627
+ ],
628
+ "page_idx": 4
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "If the inner objective over $\\nu$ is sufficiently optimized, the gradients of $\\pi$ may be computed directly (Bertsekas, 1999), noting that, ",
633
+ "bbox": [
634
+ 173,
635
+ 190,
636
+ 823,
637
+ 219
638
+ ],
639
+ "page_idx": 4
640
+ },
641
+ {
642
+ "type": "equation",
643
+ "img_path": "images/fd33fda80140225d917258b8ba632560234967d7516a8e90fe05f61ff4a82f90.jpg",
644
+ "text": "$$\n\\frac { \\partial } { \\partial \\pi } e ^ { \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) } = - \\gamma \\cdot e ^ { \\nu ( s , a ) - B ^ { \\pi } \\nu ( s , a ) } \\cdot \\mathbb { E } _ { s ^ { \\prime } \\sim T ( s , a ) , a ^ { \\prime } \\sim \\pi ( s ^ { \\prime } ) } [ \\nu ( s ^ { \\prime } , a ^ { \\prime } ) \\nabla \\log \\pi ( a ^ { \\prime } | s ^ { \\prime } ) ] ,\n$$",
645
+ "text_format": "latex",
646
+ "bbox": [
647
+ 194,
648
+ 223,
649
+ 776,
650
+ 252
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "equation",
656
+ "img_path": "images/13713bfea58f205525e167d1afcf8cfb647cd40ab52c2077cb7c3b28d89c0dcf.jpg",
657
+ "text": "$$\n\\frac { \\partial } { \\partial \\pi } \\mathbb { E } _ { s _ { 0 } \\sim p _ { 0 } ( \\cdot ) , a _ { 0 } \\sim \\pi ( \\cdot | s _ { 0 } ) } [ \\nu ( s _ { 0 } , a _ { 0 } ) ] = \\mathbb { E } _ { s _ { 0 } \\sim p _ { 0 } ( \\cdot ) , a _ { 0 } \\sim \\pi ( \\cdot | s _ { 0 } ) } [ \\nu ( s _ { 0 } , a _ { 0 } ) \\nabla \\log \\pi ( a _ { 0 } | s _ { 0 } ) ] .\n$$",
658
+ "text_format": "latex",
659
+ "bbox": [
660
+ 214,
661
+ 258,
662
+ 759,
663
+ 287
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "In continuous control environments when $\\pi$ is parameterized by a Gaussian and $\\nu$ is a neural network, one may use the re-parameterization trick (Haarnoja et al., 2018) to compute gradients of the $\\nu$ -values with respect to policy mean and variance directly as opposed to computing $\\nabla \\log \\pi ( a | s )$ . Please see the appendix for a full pseudocode implementation of ValueDICE. We note that in practice, as in GAIL, we do not train $\\nu$ until optimality but rather alternate $\\nu$ and $\\pi$ updates. ",
670
+ "bbox": [
671
+ 173,
672
+ 291,
673
+ 825,
674
+ 362
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "The mechanics of learning $\\pi$ according to the ValueDICE objective are straightforward, but what is the underlying reason for this more streamlined policy learning? How does it relate the standard protocol of alternating data distribution estimation with RL optimization? To better understand this, we consider the form of $\\nu$ when it is completely optimized. If we consider the original change of variables (Equation 9) and optimality characterization (Equation 8) we have, ",
681
+ "bbox": [
682
+ 174,
683
+ 367,
684
+ 825,
685
+ 438
686
+ ],
687
+ "page_idx": 4
688
+ },
689
+ {
690
+ "type": "equation",
691
+ "img_path": "images/ac9dc5c44924d3ad3c713ca3b3ab19a0e00ffbb40c0abf22071c834c4744c541.jpg",
692
+ "text": "$$\n\\nu ^ { * } ( s , a ) - \\bar { B ^ { \\pi } } \\nu ^ { * } ( s , a ) = x ^ { * } ( s , a ) = \\log \\frac { d ^ { \\pi } ( s , a ) } { d ^ { \\exp } ( s , a ) } .\n$$",
693
+ "text_format": "latex",
694
+ "bbox": [
695
+ 326,
696
+ 438,
697
+ 671,
698
+ 472
699
+ ],
700
+ "page_idx": 4
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "From this characterization of $\\nu ^ { * }$ , we realize that $\\nu ^ { * }$ is a sort of $\\mathrm { Q }$ -value function: $\\nu ^ { * } ( s , a )$ is the future discounted sum of rewards r˜(s, a) := log dπ(s,a)dexp(s,a) when acting according to $\\pi$ . The gradients for $\\pi$ then encourage the policy to choose actions which minimize $\\nu ^ { * } ( s , a )$ , i.e., maximize future discounted log ratios dexp(s,a)dπ(s,a) . Thus we realize that the objective for π in ValueDICE performs exactly the RL optimization suggested by Equation 4. The streamlined nature of ValueDICE comes from the fact that the value function $\\nu$ (which would traditionally need to be learned as a critic in a separate actor-critic RL algorithm) is learned directly from the same objective as that used for distribution matching. ",
705
+ "bbox": [
706
+ 173,
707
+ 478,
708
+ 825,
709
+ 604
710
+ ],
711
+ "page_idx": 4
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Thus, in addition to estimating a proper divergence between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ in an off-policy manner, ValueDICE also greatly simplifies the implementation of distribution matching algorithms. There is no longer a need to use a separate RL algorithm for learning $\\pi$ , and moreover, the use of $\\nu$ as a value function removes any use of explicit rewards. Instead, the objective and implementation are only in terms of policy $\\pi$ and function $\\nu$ . ",
716
+ "bbox": [
717
+ 174,
718
+ 609,
719
+ 825,
720
+ 680
721
+ ],
722
+ "page_idx": 4
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "5 SOME PRACTICAL CONSIDERATIONS ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 174,
730
+ 702,
731
+ 513,
732
+ 718
733
+ ],
734
+ "page_idx": 4
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "In order to make use of the ValueDICE objective (Equation 13) in practical scenarios, where one does not have access to $d ^ { \\mathrm { e x p } }$ or $p _ { 0 } ( \\cdot )$ but rather only limited finite samples, we perform several modifications. ",
739
+ "bbox": [
740
+ 174,
741
+ 733,
742
+ 825,
743
+ 776
744
+ ],
745
+ "page_idx": 4
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "5.1 EMPIRICAL EXPECTATIONS ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 176,
753
+ 794,
754
+ 405,
755
+ 808
756
+ ],
757
+ "page_idx": 4
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "The objective in Equation 13 contains three expectations: ",
762
+ "bbox": [
763
+ 174,
764
+ 820,
765
+ 549,
766
+ 835
767
+ ],
768
+ "page_idx": 4
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "1. An expectation over $d ^ { \\mathrm { e x p } }$ (the first term of the objective). Note that this expectation has a logarithm outside of it, which would make any mini-batch approximations of the gradient of this expectation biased. \n2. An expectation over $p _ { 0 } ( \\cdot )$ (the second term of the objective). This term is linear, and so is very amenable to mini-batch optimization. ",
773
+ "bbox": [
774
+ 209,
775
+ 847,
776
+ 825,
777
+ 924
778
+ ],
779
+ "page_idx": 4
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "3. An expectation over the environment transition $p ( \\cdot | s , a )$ used to compute $B ^ { \\pi } \\nu ( s , a )$ . This expectation has a log-expected-exponent applied to it, so its mini-batch approximated gradient would be biased in general. ",
784
+ "bbox": [
785
+ 212,
786
+ 103,
787
+ 823,
788
+ 146
789
+ ],
790
+ "page_idx": 5
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "For the first expectation, previous works have suggested a number of remedies to reduce the bias of mini-batch gradients, such as maintaining moving averages of various quantities (Belghazi et al., 2018). In the setting we considered, we found this to have a negligible effect on performance. In fact, simply using the biased mini-batched gradients was sufficient for good performance, and so we used this for our experiments. ",
795
+ "bbox": [
796
+ 173,
797
+ 159,
798
+ 825,
799
+ 228
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "For the second expectation, we use standard mini-batch gradients, which are unbiased. Although initial state distributions are usually not used in imitation learning, it is easy to record initial states as they are observed, and thus have access to an empirical sample from $p _ { 0 }$ . Furthermore, as detailed in Section 5.3, it is possible to modify the initial state distribution used in the objective without adverse effects. ",
806
+ "bbox": [
807
+ 173,
808
+ 234,
809
+ 825,
810
+ 306
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Finally, for the third expectation, previous works have suggested the use of Fenchel conjugates to remove the bias (Nachum et al., 2019b). In our case, we found this unnecessary and instead use a biased estimate based on the single sample $s ^ { \\prime } \\sim p ( \\cdot | s , a )$ . This naive approach was enough to achieve good performance on the benchmark domains we considered. ",
817
+ "bbox": [
818
+ 173,
819
+ 311,
820
+ 825,
821
+ 368
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "In summary, the empirical form of the objective is given by, ",
828
+ "bbox": [
829
+ 173,
830
+ 375,
831
+ 565,
832
+ 390
833
+ ],
834
+ "page_idx": 5
835
+ },
836
+ {
837
+ "type": "equation",
838
+ "img_path": "images/9e4aa466bab7791fe8b346d18a98611bb674ee8aff90077512c3414522c01b42.jpg",
839
+ "text": "$$\n\\begin{array} { r l } & { \\hat { J } _ { \\mathrm { D I C E } } ( \\pi , \\nu ) = } \\\\ & { \\qquad \\quad \\frac { \\mathbb { E } } { \\mathrm { b a t c h } ( \\mathcal { D } ) \\sim \\mathcal { D } } \\left[ \\log \\underset { s , a , s ^ { \\prime } \\sim \\mathrm { b a t c h } ( \\mathcal { D } ) } { \\mathbb { E } } \\left[ e ^ { \\nu ( s , a ) - \\gamma \\nu ( s ^ { \\prime } , a ^ { \\prime } ) } \\right] - ( 1 - \\gamma ) \\cdot \\underset { s _ { 0 } \\sim \\mathrm { b a t c h } ( p _ { 0 } ) } { \\mathbb { E } } \\left[ \\nu ( s _ { 0 } , a _ { 0 } ) \\right] \\right] , } \\\\ & { \\quad \\mathrm { b a t c h } ( p _ { 0 } ) \\sim \\hat { p } _ { 0 } \\quad \\quad a ^ { \\prime } \\sim \\pi ( \\cdot | s ^ { \\prime } ) } \\end{array}\n$$",
840
+ "text_format": "latex",
841
+ "bbox": [
842
+ 187,
843
+ 395,
844
+ 781,
845
+ 460
846
+ ],
847
+ "page_idx": 5
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "where batch $( \\mathcal { D } )$ is a mini-batch from $\\mathcal { D }$ and batch $\\left( p _ { 0 } \\right)$ is a mini-batch from the recorded initial states $\\hat { p } _ { 0 }$ . ",
852
+ "bbox": [
853
+ 174,
854
+ 469,
855
+ 823,
856
+ 500
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "5.2 REPLAY BUFFER REGULARIZATION ",
863
+ "text_level": 1,
864
+ "bbox": [
865
+ 176,
866
+ 518,
867
+ 460,
868
+ 534
869
+ ],
870
+ "page_idx": 5
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "The original ValueDICE objective uses only expert samples and the initial state distribution. In practice, the number of expert samples may be small and lack diversity, hampering learning. In order to increase the diversity of samples used for training, we consider an alternative objective, with a controllable regularization based on experience in the replay buffer: ",
875
+ "bbox": [
876
+ 174,
877
+ 545,
878
+ 825,
879
+ 602
880
+ ],
881
+ "page_idx": 5
882
+ },
883
+ {
884
+ "type": "equation",
885
+ "img_path": "images/3b91bf8ba6bb7adb77c87020c672d6e05d0eefcd1481b8097d58e5ad5a7e6127.jpg",
886
+ "text": "$$\n\\begin{array} { r l } & { J _ { \\mathrm { D I C E } } ^ { \\mathrm { m i x } } ( \\pi , \\nu ) : = \\log \\underset { ( s , a ) \\sim d ^ { \\mathrm { m i x } } } { \\mathbb { E } } [ e ^ { \\nu ( s , a ) - \\mathcal { B } ^ { \\pi } \\nu ( s , a ) } ] - ( 1 - \\alpha ) ( 1 - \\gamma ) \\cdot \\underset { \\underset { a _ { 0 } \\sim \\pi ( \\cdot ) , ( s _ { 0 } ) } { \\sum _ { \\substack { s _ { 0 } \\sim \\pi ( \\cdot ) , ( s _ { 0 } ) } } } } { \\mathbb { E } } [ \\nu ( s _ { 0 } , a _ { 0 } ) ] } \\\\ & { \\qquad - \\underset { ( s , a ) \\sim d ^ { \\mathrm { R B } } } { \\mathbb { E } } [ \\nu ( s , a ) - \\mathcal { B } ^ { \\pi } \\nu ( s , a ) ] , } \\end{array}\n$$",
887
+ "text_format": "latex",
888
+ "bbox": [
889
+ 187,
890
+ 603,
891
+ 781,
892
+ 674
893
+ ],
894
+ "page_idx": 5
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "where $d ^ { \\mathrm { m i x } } ( s , a ) = ( 1 - \\alpha ) d ^ { \\mathrm { e x p } } ( s , a ) + \\alpha d ^ { \\mathrm { R B } } ( s , a )$ . ",
899
+ "bbox": [
900
+ 176,
901
+ 681,
902
+ 529,
903
+ 696
904
+ ],
905
+ "page_idx": 5
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "The main advantage of this formulation is that it introduces $\\nu$ -values into the objective on samples that are outside the given expert demonstrations. Thus, if $\\pi$ deviates from the expert trajectory, we will still be able to learn optimal actions that return the policy back to the expert behavior. At the same time, one can verify that in this formulation the optimal $\\pi$ still matches $\\pi _ { \\mathrm { e x p } }$ , unlike other proposals for incorporating a replay buffer distribution (Kostrikov et al., 2019). Indeed, the objective in Equation 18 corresponds to the Donsker-Varadhan representation, ",
910
+ "bbox": [
911
+ 174,
912
+ 696,
913
+ 826,
914
+ 779
915
+ ],
916
+ "page_idx": 5
917
+ },
918
+ {
919
+ "type": "equation",
920
+ "img_path": "images/378de2f49d49370ad18918518d36a5199b18b6f458755ff257eb9856ba9c9091.jpg",
921
+ "text": "$$\n\\begin{array} { r l } & { \\quad - D _ { \\mathrm { K L } } ( ( 1 - \\alpha ) d ^ { \\pi } + \\alpha d ^ { \\mathrm { R B } } \\parallel ( 1 - \\alpha ) d ^ { \\mathrm { e x p } } + \\alpha d ^ { \\mathrm { R B } } ) = } \\\\ & { \\quad \\underset { x : S \\times A \\to \\mathbb { R } } { \\operatorname* { m i n } } \\log \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\operatorname* { m i n } } } [ e ^ { x ( s , a ) } ] - ( 1 - \\alpha ) \\cdot \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\pi } } \\left[ x ( s , a ) \\right] - \\alpha \\cdot \\mathbb { E } _ { ( s , a ) \\sim d ^ { \\mathrm { R B } } } \\left[ x ( s , a ) \\right] , } \\end{array}\n$$",
922
+ "text_format": "latex",
923
+ "bbox": [
924
+ 178,
925
+ 781,
926
+ 781,
927
+ 830
928
+ ],
929
+ "page_idx": 5
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "and so the optimal values of $\\nu ^ { * }$ satisfy, ",
934
+ "bbox": [
935
+ 174,
936
+ 838,
937
+ 429,
938
+ 852
939
+ ],
940
+ "page_idx": 5
941
+ },
942
+ {
943
+ "type": "equation",
944
+ "img_path": "images/5be9ab3dfd30e96feb36cc543b49dfb0566d577a9ef5c7dc7135b0f70c301b59.jpg",
945
+ "text": "$$\n\\nu ^ { * } ( s , a ) - \\mathcal { B } ^ { \\pi } \\nu ^ { * } ( s , a ) = x ^ { * } ( s , a ) = \\log \\frac { ( 1 - \\alpha ) d ^ { \\pi } ( s , a ) + \\alpha d ^ { \\mathrm { R B } } ( s , a ) } { ( 1 - \\alpha ) d ^ { \\exp } ( s , a ) + \\alpha d ^ { \\mathrm { R B } } ( s , a ) } .\n$$",
946
+ "text_format": "latex",
947
+ "bbox": [
948
+ 254,
949
+ 852,
950
+ 743,
951
+ 887
952
+ ],
953
+ "page_idx": 5
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "Therefore, the global optimality of $\\pi = \\pi _ { \\mathrm { e x p } }$ is unaffected by any choice of $\\alpha < 1$ . We note that in practice we use a small value $\\alpha = 0 . 1$ for regularization. ",
958
+ "bbox": [
959
+ 173,
960
+ 895,
961
+ 823,
962
+ 924
963
+ ],
964
+ "page_idx": 5
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "5.3 INITIAL STATE SAMPLING ",
969
+ "text_level": 1,
970
+ "bbox": [
971
+ 176,
972
+ 103,
973
+ 397,
974
+ 117
975
+ ],
976
+ "page_idx": 6
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Recall that $d ^ { \\mathrm { e x p } } , d ^ { \\pi }$ traditionally refer to discounted state-action distributions. That is, sampling from them is equivalent to first sampling a trajectory $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ and then sampling a time index $t$ from a geometric distribution $\\mathrm { G e o m } ( 1 - \\gamma )$ (appropriately handling samples that are beyond $T$ ). This means that samples far into the trajectory do not contribute much to the objective. To remedy this, we propose treating every state in a trajectory as an ‘initial state.’ That is, we consider a single environment trajectory $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , . . . , s _ { T } )$ as $T$ distinct virtual trajectories $\\{ ( s _ { t } , a _ { t } , s _ { t + 1 } , a _ { t + 1 } , \\ldots , s _ { T } ) \\} _ { t = 0 } ^ { T - 1 }$ . We apply this to both $d ^ { \\mathrm { e x p } }$ and $d ^ { \\pi }$ , so that not only does it increase the diversity of samples from $d ^ { \\mathrm { e x p } }$ , but it also expands the initial state distribution $p _ { 0 } ( \\cdot )$ to encompass every state in a trajectory. We note that this does not affect the optimality of the objective with respect to $\\pi$ , since in Markovian environments an expert policy should be expert regardless of the state at which it starts (Puterman, 2014). ",
981
+ "bbox": [
982
+ 174,
983
+ 130,
984
+ 825,
985
+ 285
986
+ ],
987
+ "page_idx": 6
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "6 RELATED WORK ",
992
+ "text_level": 1,
993
+ "bbox": [
994
+ 176,
995
+ 306,
996
+ 344,
997
+ 321
998
+ ],
999
+ "page_idx": 6
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "In recent years, the development of Adversarial Imitation Learning has been mostly focused on on-policy algorithms. After Ho & Ermon (2016) proposed GAIL to perform imitation learning via adversarial training, a number of extensions has been introduced. Many of these applications of the AIL framework (Li et al., 2017; Hausman et al., 2017; Fu et al., 2017) maintain the same form of distribution ratio estimation as GAIL which necessitates on-policy samples. In contrast, our work presents an off-policy formulation of the same objective. ",
1004
+ "bbox": [
1005
+ 174,
1006
+ 338,
1007
+ 825,
1008
+ 421
1009
+ ],
1010
+ "page_idx": 6
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Although several works have attempted to apply the AIL framework to off-policy settings, these previous approaches are markedly different from our own. For example, Kostrikov et al. (2019) proposed to train the discriminator in the GAN-like AIL objective using samples from a replay buffer instead of samples from a policy. This changes the distribution ratio estimation to measure a divergence between the expert and the replay. Although we introduce a controllable parameter $\\alpha$ for incorporating samples from the replay buffer into the data distribution objective, we note that in practice we use a very small $\\alpha = 0 . 1$ . Furthermore, by using samples from the replay buffer in both terms of the objective as opposed to just one, the global optimality of the expert policy is not affected. ",
1015
+ "bbox": [
1016
+ 174,
1017
+ 429,
1018
+ 825,
1019
+ 554
1020
+ ],
1021
+ "page_idx": 6
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "The off-policy formulation of the KL-divergence we derive is motivated by similar techniques in DualDICE (Nachum et al., 2019b). Still, our use of these techniques provides several novelties. First, Nachum et al. (2019b) only use the divergence formulation for data distribution estimation (which is used for off-policy evaluation), assuming a fixed policy. We use the formulation for learning a policy to minimize the divergence directly. Moreover, previous works have only applied these derivations to the $f$ -divergence form of the KL-divergence, while we are the first to utilize the Donsker-Varadhan form. Anecdotally in our initial experiments, we found that using the $f$ -divergence form leads to poor performance. We note that our proposed objective follows a form similar to REPS (Peters et al., 2010), which also utilizes a log-average-exp term. However, policy and value learning in REPS are performed via a bi-level optimization (i.e., the policy is learned with respect to a different objective), which is distinct from our algorithm, which trains values and policy with respect to the same objective. Our proposed ValueDICE is also significant for being able to incorporate arbitrary (non-expert) data into its learning. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 560,
1029
+ 825,
1030
+ 741
1031
+ ],
1032
+ "page_idx": 6
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "7 EXPERIMENTS ",
1037
+ "text_level": 1,
1038
+ "bbox": [
1039
+ 176,
1040
+ 762,
1041
+ 326,
1042
+ 779
1043
+ ],
1044
+ "page_idx": 6
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "We evaluate ValueDICE in a variety of settings, starting with a simple synthetic task before continuing to an evaluation on a suite of MuJoCo benchmarks. ",
1049
+ "bbox": [
1050
+ 174,
1051
+ 795,
1052
+ 823,
1053
+ 823
1054
+ ],
1055
+ "page_idx": 6
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "7.1 RING MDP ",
1060
+ "text_level": 1,
1061
+ "bbox": [
1062
+ 174,
1063
+ 840,
1064
+ 294,
1065
+ 856
1066
+ ],
1067
+ "page_idx": 6
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "We begin by analyzing the behavior of ValueDICE on a simple synthetic MDP (Figure 1). The states of the MDP are organized in a ring. At each state, two actions are possible: move clockwise or counter-clockwise. We first look at the performance of ValueDICE in a situation where the expert data is sparse and does not cover all states and actions. Specifically, we provide expert demonstrations which cover only states 0, 1, and 2 (see Figure 1 left). While the problem of recovering the true (unknown) expert is ill-defined, it is still possible to find a policy which recovers close to the same occupancies. Indeed, this is the policy found by ValueDICE, which chooses the appropriate actions at each state to optimally reach states 1 and 2 (and alternating between states 1 and 2 when at these states). In many practical scenarios, this is the desired outcome – if the imitating policy somehow encounters a situation which deviates from the expert demonstrations, we would like it to return to the expert behavior as fast as possible. Notably, a technique like behavioral cloning would fail to learn this optimal policy, since its learning is only based on observed expert data. ",
1072
+ "bbox": [
1073
+ 176,
1074
+ 867,
1075
+ 823,
1076
+ 922
1077
+ ],
1078
+ "page_idx": 6
1079
+ },
1080
+ {
1081
+ "type": "image",
1082
+ "img_path": "images/2ff15254829b8cfb1c8cdb6e54c49f215f39c79c75058fb8ad858933a24fa0cd.jpg",
1083
+ "image_caption": [
1084
+ "Figure 1: Results of ValueDICE on a simple Ring MDP. Left: The expert data is sparse and only covers states 0, 1, and 2. Nevertheless, ValueDICE is able to learn a policy on all states to best match the observed expert state-action occupancies (the policy learns to always go to states 1 and 2). Right: The expert is stochastic. ValueDICE is able to learn a policy which successfully minimizes the true KL computed between $d ^ { \\pi }$ and $d ^ { \\mathrm { e x p } }$ . "
1085
+ ],
1086
+ "image_footnote": [],
1087
+ "bbox": [
1088
+ 192,
1089
+ 99,
1090
+ 800,
1091
+ 212
1092
+ ],
1093
+ "page_idx": 7
1094
+ },
1095
+ {
1096
+ "type": "image",
1097
+ "img_path": "images/e6aa314483fc0a1134e24081dcfdc01334e721b3d325da7bd3612178015a436a.jpg",
1098
+ "image_caption": [
1099
+ "Figure 2: Comparison of algorithms given 1 expert trajectory. We use the original implementation of GAIL (Ho & Ermon, 2016) to produce GAIL and BC results. "
1100
+ ],
1101
+ "image_footnote": [],
1102
+ "bbox": [
1103
+ 232,
1104
+ 310,
1105
+ 759,
1106
+ 414
1107
+ ],
1108
+ "page_idx": 7
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "",
1113
+ "bbox": [
1114
+ 173,
1115
+ 484,
1116
+ 825,
1117
+ 597
1118
+ ],
1119
+ "page_idx": 7
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "We also analyzed the behavior of ValueDICE with a stochastic expert (Figure 1 right). By using a synthetic MDP, we are able to measure the divergence $D _ { \\mathrm { K L } } ( d ^ { \\pi } | | d ^ { \\exp } )$ during training. As expected, we find that this divergence decreases during ValueDICE training. ",
1124
+ "bbox": [
1125
+ 176,
1126
+ 603,
1127
+ 821,
1128
+ 646
1129
+ ],
1130
+ "page_idx": 7
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "7.2 MUJOCO BENCHMARKS ",
1135
+ "text_level": 1,
1136
+ "bbox": [
1137
+ 176,
1138
+ 664,
1139
+ 383,
1140
+ 678
1141
+ ],
1142
+ "page_idx": 7
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "We compare ValueDICE against Discriminator-Actor-Critic (DAC) (Kostrikov et al., 2019), which is the state-of-the-art in sample-efficient adversarial imitation learning, as well as GAIL (Ho & Ermon, 2016). We evaluate the algorithms on the standard MuJoCo environments using expert demonstrations from Ho & Ermon (2016). We plot the average returns for the learned policies (using a mean action for sampling) every 1000 environment steps using 10 episodes. We perform this procedure for 10 different seeds and compute means and standard deviations (see Fig. 2 and 3, we visualize a half of standard deviation on these plots). ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 690,
1150
+ 825,
1151
+ 746
1152
+ ],
1153
+ "page_idx": 7
1154
+ },
1155
+ {
1156
+ "type": "image",
1157
+ "img_path": "images/fa089b6dfddf0856cc431126a3f3e087e9b34a5e6583d32af94ed14eca9a456e.jpg",
1158
+ "image_caption": [
1159
+ "Figure 3: Comparison of algorithms given 10 expert trajectories. ValueDICE outperforms other methods. However, given this amount of data, BC can recover the expert policy as well. "
1160
+ ],
1161
+ "image_footnote": [],
1162
+ "bbox": [
1163
+ 232,
1164
+ 771,
1165
+ 761,
1166
+ 876
1167
+ ],
1168
+ "page_idx": 7
1169
+ },
1170
+ {
1171
+ "type": "text",
1172
+ "text": "",
1173
+ "bbox": [
1174
+ 174,
1175
+ 103,
1176
+ 823,
1177
+ 145
1178
+ ],
1179
+ "page_idx": 8
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "We present the extremely low-data regime first. In Figure 2 we present the results of the imitation learning algorithms given only a single expert trajectory. We find that ValueDICE performs similar or better than DAC an all tasks, with the exception of Walker2d where it converges to a slightly worse policy. Notably, in this low-data regime, behavioral cloning (BC) usually cannot recover the expert policy. We also present the results of these algorithms on a larger number of expert demonstrations (Figure 3). We continue to observe strong performance of ValueDICE as well as faster convergence on all tasks. It is worth mentioning that in this large-data regime, Behavior Cloning can recover the expert performance as well. In all of these scenarios, GAIL is too sample-inefficient to make any progress. ",
1184
+ "bbox": [
1185
+ 174,
1186
+ 152,
1187
+ 825,
1188
+ 279
1189
+ ],
1190
+ "page_idx": 8
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "8 CONCLUSION ",
1195
+ "text_level": 1,
1196
+ "bbox": [
1197
+ 176,
1198
+ 297,
1199
+ 318,
1200
+ 314
1201
+ ],
1202
+ "page_idx": 8
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "We introduced ValueDICE, an algorithm for imitation learning that outperforms the state-of-the-art on standard MuJoCo tasks. In contrast to other algorithms for off-policy imitation learning, the algorithm introduced in this paper performs robust divergence minimization in a principled off-policy manner and a strong theoretical framework. To the best of our knowledge, this is also the first algorithm for adversarial imitation learning that omits learning or defining rewards explicitly and directly learns a Q-function in the distribution ratio objective directly. We demonstrate the robustness of ValueDICE in a challenging synthetic tabular MDP environment, as well as on standard MuJoCo continuous control benchmark environments, and we show increased performance over baselines in both the low and high data regimes. ",
1207
+ "bbox": [
1208
+ 174,
1209
+ 329,
1210
+ 825,
1211
+ 454
1212
+ ],
1213
+ "page_idx": 8
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "REFERENCES ",
1218
+ "text_level": 1,
1219
+ "bbox": [
1220
+ 176,
1221
+ 474,
1222
+ 285,
1223
+ 489
1224
+ ],
1225
+ "page_idx": 8
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Pieter Abbeel and Andrew Y Ng. Apprenticeship learning via inverse reinforcement learning. In Proceedings of the twenty-first international conference on Machine learning, pp. 1. ACM, 2004. ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 497,
1233
+ 823,
1234
+ 525
1235
+ ],
1236
+ "page_idx": 8
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. arXiv preprint arXiv:1808.00177, 2018. ",
1241
+ "bbox": [
1242
+ 174,
1243
+ 532,
1244
+ 825,
1245
+ 575
1246
+ ],
1247
+ "page_idx": 8
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Mohamed Ishmael Belghazi, Aristide Baratin, Sai Rajeswar, Sherjil Ozair, Yoshua Bengio, Aaron Courville, and R Devon Hjelm. Mine: mutual information neural estimation. arXiv preprint arXiv:1801.04062, 2018. ",
1252
+ "bbox": [
1253
+ 174,
1254
+ 583,
1255
+ 825,
1256
+ 626
1257
+ ],
1258
+ "page_idx": 8
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "D. P. Bertsekas. Nonlinear Programming. Athena Scientific, Belmont, MA, second edition, 1999. ",
1263
+ "bbox": [
1264
+ 173,
1265
+ 633,
1266
+ 813,
1267
+ 650
1268
+ ],
1269
+ "page_idx": 8
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. ",
1274
+ "bbox": [
1275
+ 174,
1276
+ 656,
1277
+ 821,
1278
+ 700
1279
+ ],
1280
+ "page_idx": 8
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. ",
1285
+ "bbox": [
1286
+ 173,
1287
+ 707,
1288
+ 821,
1289
+ 736
1290
+ ],
1291
+ "page_idx": 8
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Monroe D Donsker and SR Srinivasa Varadhan. Asymptotic evaluation of certain markov process expectations for large time. iv. Communications on Pure and Applied Mathematics, 36(2):183– 212, 1983. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 743,
1299
+ 823,
1300
+ 786
1301
+ ],
1302
+ "page_idx": 8
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. arXiv preprint arXiv:1710.11248, 2017. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 794,
1310
+ 821,
1311
+ 824
1312
+ ],
1313
+ "page_idx": 8
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 830,
1321
+ 823,
1322
+ 873
1323
+ ],
1324
+ "page_idx": 8
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in neural information processing systems, pp. 5767–5777, 2017. ",
1329
+ "bbox": [
1330
+ 174,
1331
+ 882,
1332
+ 823,
1333
+ 922
1334
+ ],
1335
+ "page_idx": 8
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018. ",
1340
+ "bbox": [
1341
+ 178,
1342
+ 103,
1343
+ 821,
1344
+ 146
1345
+ ],
1346
+ "page_idx": 9
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Karol Hausman, Yevgen Chebotar, Stefan Schaal, Gaurav Sukhatme, and Joseph J Lim. Multimodal imitation learning from unstructured demonstrations using generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 1235–1245, 2017. ",
1351
+ "bbox": [
1352
+ 178,
1353
+ 155,
1354
+ 820,
1355
+ 198
1356
+ ],
1357
+ "page_idx": 9
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in neural information processing systems, pp. 4565–4573, 2016. ",
1362
+ "bbox": [
1363
+ 174,
1364
+ 207,
1365
+ 820,
1366
+ 236
1367
+ ],
1368
+ "page_idx": 9
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Liyiming Ke, Matt Barnes, Wen Sun, Gilwoo Lee, Sanjiban Choudhury, and Siddhartha Srinivasa. Imitation learning as $f$ -divergence minimization. arXiv preprint arXiv:1905.12888, 2019. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 243,
1376
+ 821,
1377
+ 273
1378
+ ],
1379
+ "page_idx": 9
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Ilya Kostrikov, Kumar Krishna Agrawal, Debidatta Dwibedi, Sergey Levine, and Jonathan Tompson. Discriminator-actor-critic: Addressing sample inefficiency and reward bias in adversarial imitation learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ Hk4fpoA5Km. ",
1384
+ "bbox": [
1385
+ 173,
1386
+ 281,
1387
+ 825,
1388
+ 338
1389
+ ],
1390
+ "page_idx": 9
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Yunzhu Li, Jiaming Song, and Stefano Ermon. Infogail: Interpretable imitation learning from visual demonstrations. In Advances in Neural Information Processing Systems, pp. 3812–3822, 2017. ",
1395
+ "bbox": [
1396
+ 173,
1397
+ 347,
1398
+ 821,
1399
+ 376
1400
+ ],
1401
+ "page_idx": 9
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Urs Muller, Jan Ben, Eric Cosatto, Beat Flepp, and Yann L Cun. Off-road obstacle avoidance through end-to-end learning. In Advances in neural information processing systems, pp. 739– 746, 2006. ",
1406
+ "bbox": [
1407
+ 174,
1408
+ 385,
1409
+ 825,
1410
+ 428
1411
+ ],
1412
+ "page_idx": 9
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Ofir Nachum, Michael Ahn, Hugo Ponte, Shixiang Gu, and Vikash Kumar. Multi-agent manipulation via locomotion using hierarchical sim2real. arXiv preprint arXiv:1908.05224, 2019a. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 436,
1420
+ 823,
1421
+ 465
1422
+ ],
1423
+ "page_idx": 9
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Ofir Nachum, Yinlam Chow, Bo Dai, and Lihong Li. Dualdice: Efficient estimation of off-policy stationary distribution corrections. 2019b. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 473,
1431
+ 823,
1432
+ 503
1433
+ ],
1434
+ "page_idx": 9
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Andrew Y Ng, Stuart J Russell, et al. Algorithms for inverse reinforcement learning. ",
1439
+ "bbox": [
1440
+ 173,
1441
+ 511,
1442
+ 730,
1443
+ 527
1444
+ ],
1445
+ "page_idx": 9
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Jan Peters, Katharina Mulling, and Yasemin Altun. Relative entropy policy search. In Twenty-Fourth AAAI Conference on Artificial Intelligence, 2010. ",
1450
+ "bbox": [
1451
+ 173,
1452
+ 536,
1453
+ 823,
1454
+ 565
1455
+ ],
1456
+ "page_idx": 9
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989. ",
1461
+ "bbox": [
1462
+ 173,
1463
+ 574,
1464
+ 823,
1465
+ 603
1466
+ ],
1467
+ "page_idx": 9
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Martin L Puterman. Markov Decision Processes.: Discrete Stochastic Dynamic Programming. John Wiley & Sons, 2014. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 611,
1475
+ 823,
1476
+ 640
1477
+ ],
1478
+ "page_idx": 9
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Stephane Ross, Geoffrey Gordon, and Drew Bagnell. A reduction of imitation learning and struc- ´ tured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 627–635, 2011. ",
1483
+ "bbox": [
1484
+ 174,
1485
+ 648,
1486
+ 821,
1487
+ 693
1488
+ ],
1489
+ "page_idx": 9
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Fumihiro Sasaki, Tetsuya Yohira, and Atsuo Kawaguchi. Sample efficient imitation learning for continuous control. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ BkN5UoAqF7. ",
1494
+ "bbox": [
1495
+ 176,
1496
+ 700,
1497
+ 821,
1498
+ 743
1499
+ ],
1500
+ "page_idx": 9
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "A IMPLEMENTATION DETAILS ",
1505
+ "text_level": 1,
1506
+ "bbox": [
1507
+ 176,
1508
+ 102,
1509
+ 441,
1510
+ 118
1511
+ ],
1512
+ "page_idx": 10
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "All algorithms use networks with an MLP architecture with 2 hidden layers and 256 hidden units. For discriminators, critic, $\\nu$ we use Adam optimizer with learning rate $1 0 ^ { - 3 }$ while for the actors we use the learning rate of $1 0 ^ { - 5 }$ . For the discriminator and $\\nu$ networks we use gradient penalties from Gulrajani et al. (2017). We also regularize the actor network with the orthogonal regularization (Brock et al., 2018) with a coefficient $1 \\bar { 0 } ^ { - 4 }$ . Also we perform 4 updates per 1 environment step. We handle absorbing states of the environments similarly to Kostrikov et al. (2019). ",
1517
+ "bbox": [
1518
+ 173,
1519
+ 133,
1520
+ 825,
1521
+ 218
1522
+ ],
1523
+ "page_idx": 10
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "B ALGORITHMS ",
1528
+ "text_level": 1,
1529
+ "bbox": [
1530
+ 174,
1531
+ 238,
1532
+ 325,
1533
+ 253
1534
+ ],
1535
+ "page_idx": 10
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "In this section, we present pseudocode for the imitation learning algorithms based on DualDICE. ",
1540
+ "bbox": [
1541
+ 169,
1542
+ 268,
1543
+ 807,
1544
+ 284
1545
+ ],
1546
+ "page_idx": 10
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "Algorithm 1 ValueDICE \nInput: expert replay buffer $\\mathcal { R } _ { E }$ Initialize replay buffer $\\mathcal { R } \\emptyset$ for $n = 1 , \\ldots , \\mathbf { d o }$ Sample $( s , a , s ^ { \\prime } )$ with $\\pi _ { \\theta }$ Add $( s , a , s ^ { \\prime } )$ to the replay buffer $\\mathcal { R }$ $\\{ ( s ^ { ( i ) } , a ^ { ( i ) } , s ^ { \\prime ( i ) } ) \\} _ { i = 1 } ^ { B } \\sim \\mathcal { R }$ . Geometric sampling, is a st $\\triangleright$ Geometric samplingting episode state for $\\{ ( s _ { 0 } ^ { ( i ) } , s _ { E } ^ { ( i ) } , a _ { E } ^ { ( i ) } , s _ { E } ^ { \\prime ( i ) } ) \\} _ { i = 1 } ^ { B } \\sim \\mathcal { R } _ { E }$ $s _ { 0 } ^ { ( i ) }$ s(i)E a(i ) ∼ πθ (·|s(i)0 ), for i = 1, . . . , B a0(i) ∼ πθ (·|s0(i)), for i = 1, . . . , B $a _ { E } ^ { \\prime ( i ) } \\sim \\pi _ { \\theta } ( \\cdot | s _ { E } ^ { \\prime ( i ) } )$ , for i = 1, . . . , B Compute loss on expert data: $\\begin{array} { r } { \\hat { J } _ { l o g } ^ { \\mathrm { ~ ~ } } = \\log \\bigl ( \\frac { 1 } { B } \\sum _ { i = 1 } ^ { B } \\bigl ( ( 1 - \\alpha ) e ^ { \\nu _ { \\psi } ( s _ { E } ^ { ( i ) } , a _ { E } ^ { ( i ) } ) - \\gamma \\nu _ { \\psi } ( s _ { E } ^ { \\prime ( i ) } , a _ { E } ^ { \\prime ( i ) } ) } + \\alpha e ^ { \\nu _ { \\psi } ( s ^ { ( i ) } , a ^ { ( i ) } ) - \\gamma \\nu _ { \\psi } ( s ^ { \\prime ( i ) } , a ^ { \\prime ( i ) } ) } \\bigr ) \\bigr ) } \\end{array}$ Compute loss on the replay buffer: $\\begin{array} { r } { \\hat { J } _ { l i n e a r } = \\frac { 1 } { B } \\sum _ { i = 1 } ^ { B } ( ( 1 - \\dot { \\alpha } ) ( 1 - \\gamma ) \\nu _ { \\psi } ( s _ { 0 } ^ { ( i ) } , a _ { 0 } ^ { ( i ) } ) + \\alpha ( \\nu _ { \\psi } ( s ^ { ( i ) } , a ^ { ( i ) } ) - \\gamma \\nu _ { \\psi } ( s ^ { \\prime ( i ) } , a ^ { \\prime ( i ) } ) ) ) } \\end{array}$ Update $\\psi \\psi - \\eta _ { \\nu } \\nabla _ { \\psi } ( \\hat { J } _ { l o g } - \\hat { J } _ { l i n e a r } )$ Update $\\theta \\psi + \\eta _ { \\pi } \\nabla _ { \\theta } \\big ( \\hat { J } _ { l o g } - \\hat { J } _ { l i n e a r } \\big )$ end for ",
1551
+ "bbox": [
1552
+ 174,
1553
+ 300,
1554
+ 826,
1555
+ 604
1556
+ ],
1557
+ "page_idx": 10
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "C ADDITIONAL EXPERIMENTS ",
1562
+ "text_level": 1,
1563
+ "bbox": [
1564
+ 176,
1565
+ 633,
1566
+ 442,
1567
+ 648
1568
+ ],
1569
+ "page_idx": 10
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "We also compared ValueDICE with behavioral cloning in the offline regime, when we sample no additional transitions from the learning environment (see Figure 4). Even given only offline data, ValueDICE outperforms behavioral cloning. For behavioral cloning we used the same regularization as for actor training in ValueDICE. ",
1574
+ "bbox": [
1575
+ 173,
1576
+ 664,
1577
+ 826,
1578
+ 719
1579
+ ],
1580
+ "page_idx": 10
1581
+ },
1582
+ {
1583
+ "type": "image",
1584
+ "img_path": "images/c40b80cae8865eb5124efdc9cf33f4d8e08f441eaac4f78921409f7e9ee1c58c.jpg",
1585
+ "image_caption": [
1586
+ "Figure 4: ValueDICE outperforms behavioral cloning given 1 trajectory even without replay regularization. "
1587
+ ],
1588
+ "image_footnote": [],
1589
+ "bbox": [
1590
+ 232,
1591
+ 734,
1592
+ 759,
1593
+ 837
1594
+ ],
1595
+ "page_idx": 10
1596
+ }
1597
+ ]
parse/train/Hyg-JC4FDr/Hyg-JC4FDr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hyg-JC4FDr/Hyg-JC4FDr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HygsfnR9Ym/HygsfnR9Ym_content_list.json ADDED
@@ -0,0 +1,2351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "RECALL TRACES: BACKTRACKING MODELS FOR EFFICIENT REINFORCEMENT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 759,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anirudh Goyal1, Philemon Brakel2, William Fedus1, Soumye Singhal1,4, Timothy Lillicrap2, Sergey Levine5, Hugo Larochelle3, Yoshua Bengio1 ",
17
+ "bbox": [
18
+ 183,
19
+ 167,
20
+ 683,
21
+ 199
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": "In many environments only a tiny subset of all states yield high reward. In these cases, few of the interactions with the environment provide a relevant learning signal. Hence, we may want to preferentially train on those high-reward states and the probable trajectories leading to them. To this end, we advocate for the use of a backtracking model that predicts the preceding states that terminate at a given high-reward state. We can train a model which, starting from a high value state (or one that is estimated to have high value), predicts and samples which (state, action)-tuples may have led to that high value state. These traces of (state, action) pairs, which we refer to as Recall Traces, sampled from this backtracking model starting from a high value state, are informative as they terminate in good states, and hence we can use these traces to improve a policy. We provide a variational interpretation for this idea and a practical algorithm in which the backtracking model samples from an approximate posterior distribution over trajectories which lead to large rewards. Our method improves the sample efficiency of both on- and off-policy RL algorithms across several environments and tasks. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 474
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 501,
55
+ 336,
56
+ 516
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Training control algorithms efficiently from interactions with the environment is a central issue in reinforcement learning (RL). Model-free RL methods, combined with deep neural networks, have achieved impressive results across a wide range of domains (Lillicrap et al., 2015; Mnih et al., 2016; Silver et al., 2016). However, existing model-free solutions lack sample efficiency, meaning that they require extensive interaction with the environment to achieve these levels of performance. ",
63
+ "bbox": [
64
+ 174,
65
+ 531,
66
+ 823,
67
+ 601
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Model-based methods in RL can mitigate this issue. These approaches learn an unsupervised model of the underlying dynamics of the environment, which does not necessarily require rewards, as the model observes and predicts state-to-state transitions. With a well-trained model, the algorithm can then simulate the environment and look ahead to future events to establish better value estimates, without requiring expensive interactions with the environment. Model-based methods can thus be more sample efficient than their model-free counterparts, but often do not achieve the same asymptotic performance (Deisenroth & Rasmussen, 2011a; Nagabandi et al., 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 608,
77
+ 825,
78
+ 705
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this work, we propose a method that takes advantage of unsupervised observations of state-to-state transitions for increasing the sample efficiency of current model-free RL algorithms, as measured by the number of interactions with the environment required to learn a successful policy. Our idea stems from a simple observation: given a world model, finding a path between a starting state and a goal state can be done either forward from the start or backward from the goal. Here, we explore an idea for leveraging the latter approach and combining it with model-free algorithms. This idea is particularly useful when rewards are sparse. High-value states are rare and trajectories leading to them are particularly useful for a learner. ",
85
+ "bbox": [
86
+ 174,
87
+ 713,
88
+ 825,
89
+ 824
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The availability of an exact backward dynamics model of the environment is a strong and often unrealistic requirement for most domains. Therefore, we propose learning a backward dynamics model, which we refer to as a backtracking model, from the experiences performed by the agent. This backtracking model $p ( s _ { t } , a _ { t } | s _ { t + 1 } )$ , is trained to predict, given a state $s _ { t + 1 }$ , which state $s _ { t }$ the agent visited before $s _ { t + 1 }$ and what action $a _ { t } \\sim \\pi$ was performed in $s _ { t }$ to reach $s _ { t + 1 }$ . Specifically, this is a model which, starting from a future high-value state, can be used to recall traces that have ended at this high value state, that is sequences of (state, action)-tuples. This allows the agent to simulate and be exposed to alternative possible paths to reach a high value state. A final state may be a previously experienced high-value state or a goal state may be explicitly given, or even produced by the agent using a generative model of high-value states (Held et al., 2017). ",
96
+ "bbox": [
97
+ 174,
98
+ 832,
99
+ 823,
100
+ 887
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 173,
109
+ 103,
110
+ 825,
111
+ 188
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our hypothesis is that using a backtracking model in this way should benefit learning, especially in the context of weak or sparse rewards. Indeed, in environments or tasks where the agent receives rewards infrequently, it must leverage this information effectively and efficiently. Exploration methods have been employed successfully (Bellemare et al., 2016; Held et al., 2017; Ostrovski et al., 2017) to increase the frequency at which novel states are discovered. Our proposal can be viewed as a special kind of simulated exploration proceeding backward from presumed high-value states, in order to discover trajectories that may lead to high rewards. A backtracking model aims to augment the experience of the trajectory $\\tau$ leading to a high-value state by generating other ",
118
+ "bbox": [
119
+ 174,
120
+ 194,
121
+ 485,
122
+ 429
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/290cd08fc780f2c7ceeb861c49733079b2326965b620a12e4d0da4afced490e3.jpg",
129
+ "image_caption": [
130
+ "Figure 1: The policy explores the state space $s$ from an initial state. Discovered high value states are then passed to the backtracking model (dashed-lines) to generate new traces that may have led to this high value state. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 516,
135
+ 214,
136
+ 799,
137
+ 329
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "possible traces $\\tilde { \\tau }$ that could have also caused it. To summarize: the main contribution of this paper is an RL method based on the use of a backtracking model, which can easily be integrated with existing on- and off-policy techniques for reducing sample complexity. Empirically, we show with experiments on eight RL environments that the proposed approach is more sample efficient. ",
144
+ "bbox": [
145
+ 174,
146
+ 430,
147
+ 825,
148
+ 486
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 PRELIMINARIES ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 506,
159
+ 339,
160
+ 521
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "We consider a Markov decision process (MDP) defined by the tuple $( S , { \\mathcal { A } } , P , r , \\gamma )$ , where the state space $s$ and the action space $\\mathcal { A }$ may be discrete or continuous. The learner is not explicitly given the environment transition probability $p ( s _ { t + 1 } | s _ { t } , a _ { t } )$ for going from $s _ { t } \\in S$ to $s _ { t + 1 } \\in S$ given $a _ { t } \\in { \\mathcal { A } }$ , but samples from this distribution are observed. The environment emits a bounded reward $r : S \\times$ $\\mathcal { A } [ r _ { m i n } , r _ { m a x } ]$ on each transition and $\\gamma \\in ( 0 , 1 )$ is the discount factor. Let $\\pi$ denote a stochastic policy over actions given states, and let $R ( \\pi ) ~ = ~ \\mathbb { E } _ { \\pi } \\left[ \\sum _ { t = 0 } ^ { T } \\gamma ^ { t } r ( s _ { t } ) \\right]$ denote the expected total return when policy $\\pi$ is followed.The standard objective in reinforcement learning is to maximize the discounted total return $R ( \\pi )$ . Throughout the text we will refer to experienced trajectories as $\\tau = ( s _ { 1 } , a _ { 1 } , \\cdot \\cdot \\cdot , s _ { T } , a _ { T } )$ and we will refer to simulated experiences as traces $\\tilde { \\tau }$ . ",
167
+ "bbox": [
168
+ 173,
169
+ 536,
170
+ 825,
171
+ 671
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2.1 BACKTRACKING MODEL ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 174,
181
+ 688,
182
+ 385,
183
+ 702
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "We introduce the backtracking model $B _ { \\phi } = q _ { \\phi } ( s _ { t } , a _ { t } | s _ { t + 1 } )$ , which is a density estimator of the joint probability distribution over the previous $\\left( { { s _ { t } } , { a _ { t } } } \\right)$ -tuple parameterized by $\\phi$ . This distribution is produced by both a learned backward policy $\\pi _ { b } = q ( a _ { t } | s _ { t + 1 } )$ and a state generator $q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ . The backward policy predicts the previous action $a _ { t }$ given the resulting state $s _ { t + 1 }$ . The state generator estimates the probability of a previous state $s _ { t }$ given the tuple $\\left( a _ { t } , s _ { t + 1 } \\right)$ . With these models, we may decompose $q _ { \\phi } { \\left( s _ { t } , a _ { t } \\vert s _ { t + 1 } \\right) }$ as $q ( s _ { t } | a _ { t } , s _ { t + 1 } ) q ( a _ { t } | s _ { t + 1 } )$ . ",
190
+ "bbox": [
191
+ 173,
192
+ 713,
193
+ 825,
194
+ 799
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "However, for training stability with continuous-valued states, we model the density of state variation $\\Delta s _ { t } = s _ { t } - s _ { t + 1 }$ rather than the raw $s _ { t }$ . Therefore, our density models are given by ",
201
+ "bbox": [
202
+ 169,
203
+ 804,
204
+ 823,
205
+ 833
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "equation",
211
+ "img_path": "images/4568434f7201eb28adae1c2854ce03c7bdfd24acd30882192d3f3e96f5903435.jpg",
212
+ "text": "$$\nq _ { \\phi } ( \\Delta _ { t } , a _ { t } | s _ { t + 1 } ) = q ( \\Delta s _ { t } | a _ { t } , s _ { t + 1 } ) q ( a _ { t } | s _ { t + 1 } ) .\n$$",
213
+ "text_format": "latex",
214
+ "bbox": [
215
+ 346,
216
+ 838,
217
+ 651,
218
+ 856
219
+ ],
220
+ "page_idx": 1
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "Note that for readability, we will drop the $\\phi$ -subscript unless it is necessary for clarity. ",
225
+ "bbox": [
226
+ 171,
227
+ 859,
228
+ 736,
229
+ 875
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "Generating Recall Traces. Analogous to the use of forward models in (Oh et al., 2015; Chiappa et al., 2017; Weber et al., 2017), we may generate a recall trace auto-regressively. To do so, we begin with a state $s _ { t + 1 }$ and sample $a _ { t } \\sim q ( a _ { t } | s _ { t + 1 } )$ . The state generator can then be sampled to produce the change in state $\\Delta s _ { t } \\sim q ( \\Delta s _ { t } | a _ { t } , s _ { t + 1 } )$ . We can continue to unroll this process, repeating with state $s _ { t } = \\Delta s _ { t } + s _ { t + 1 }$ for a desired number of steps. These generated transitions are then stored as a potential trace $\\tilde { \\tau }$ which terminates at some final state. The backtracking model $B _ { \\phi }$ is learned by maximum likelihood, using the policy’s trajectories as observations, as described in Section 3.1. ",
236
+ "bbox": [
237
+ 174,
238
+ 881,
239
+ 823,
240
+ 924
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "",
247
+ "bbox": [
248
+ 174,
249
+ 103,
250
+ 823,
251
+ 160
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "Producing Intended High Value States. Before recursively sampling from the backtracking model, we need to obtain presumed high-value states. Generally, such states will not be known in advance. However, as the agent learns, it will visit states $s _ { t }$ with increasingly high value $\\begin{array} { r } { V ^ { \\pi } ( s _ { t } = s ) = E _ { \\pi } \\left[ \\sum _ { t } \\gamma ^ { t } r ( s _ { t } ) | \\bar { s _ { t } } = s \\right] . } \\end{array}$ The agent’s full experience is maintained in a replay buffer $\\boldsymbol { B }$ , in the form of tuples of $( s _ { t } , a _ { t } , s _ { t + 1 } , r _ { t } )$ . Filtering of trajectories based on the returns is done, so that only top $k _ { t r a j }$ are added to the buffer. In this work, we will investigate our approach with two methods for generating the initial high-value states. ",
258
+ "bbox": [
259
+ 173,
260
+ 166,
261
+ 825,
262
+ 265
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "The first method relies on picking the most valuable states stored in the replay buffer $\\boldsymbol { B }$ . As before, a valuable state may be defined by its estimated expected return $V ^ { \\pi } ( s )$ as computed by a critic (our off-policy method) or state that received a high reward (our on-policy method). ",
269
+ "bbox": [
270
+ 174,
271
+ 271,
272
+ 825,
273
+ 313
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "The second method is based on Goal GAN, recently introduced by (Held et al., 2017) where goal states $g$ are produced via a Generative Adversarial Network (Goodfellow et al., 2014). In our variant, we map the goal state $g$ to a valid point in state space $s$ using a ’decoder’ $D$ . For the point-mass, the goal and state are identical; for Ant, we use a valid random joint-angle configuration at that goal position. The backtracking model is then used to find plausible trajectories that terminate at that state. For both methods, as the learner improves, one would expect that on average, higher value states are used to seed the recall traces. ",
280
+ "bbox": [
281
+ 174,
282
+ 319,
283
+ 825,
284
+ 417
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "3 IMPROVING POLICIES WITH BACKTRACKING MODEL ",
291
+ "text_level": 1,
292
+ "bbox": [
293
+ 174,
294
+ 438,
295
+ 645,
296
+ 454
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "In this section, we describe how to train the backtracking model and how it can be used to improve the efficiency of the agent’s policy and aid with exploration. ",
303
+ "bbox": [
304
+ 173,
305
+ 468,
306
+ 823,
307
+ 497
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "3.1 TRAINING THE BACKTRACKING MODEL ",
314
+ "text_level": 1,
315
+ "bbox": [
316
+ 176,
317
+ 513,
318
+ 493,
319
+ 529
320
+ ],
321
+ "page_idx": 2
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "We use a maximum likelihood training loss for training of the backtracking model $B _ { \\phi }$ on the top $k \\%$ of the agent’s trajectories stored in the state buffer $\\boldsymbol { B }$ . At each iteration, we perform stochastic gradient updates based on agent trajectories $\\tau$ , with respect to the following objective: ",
326
+ "bbox": [
327
+ 176,
328
+ 540,
329
+ 825,
330
+ 583
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "equation",
336
+ "img_path": "images/da4ef053f85bedae3b4ca9beca8275e47cd83163179f92d4a3e6dd0b27187af8.jpg",
337
+ "text": "$$\n\\begin{array} { r l } { \\mathcal { L } _ { \\boldsymbol { B } } = \\log q _ { \\phi } ( \\tau ) = \\log \\displaystyle \\prod _ { t = 0 } ^ { T } q ( \\Delta s _ { t } , a _ { t } | s _ { t + 1 } ) } & { { } = \\displaystyle \\sum _ { t = 0 } ^ { T } \\log q ( a _ { t } | s _ { t + 1 } ) + \\log q ( \\Delta s _ { t } | a _ { t } , s _ { t + 1 } ) , } \\end{array}\n$$",
338
+ "text_format": "latex",
339
+ "bbox": [
340
+ 196,
341
+ 587,
342
+ 781,
343
+ 631
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "where $s _ { t } = \\Delta s _ { t } + s _ { t + 1 }$ and $T$ is the episode length. For our chosen backtracking model, this implies a mean-squared error loss (i.e. corresponding to a conditional Gaussian for $\\Delta s _ { t }$ ) for continuous action tasks and a cross-entropy loss (i.e. corresponding to a conditional Multinoulli for $s _ { t }$ given $a _ { t }$ and $s _ { t + 1 }$ ) for discrete action tasks. The buffer is constantly updated with recent experiences and the backtracking model is trained online in order to encourage generalization as the distribution of trajectories in the buffer evolves. ",
350
+ "bbox": [
351
+ 174,
352
+ 633,
353
+ 825,
354
+ 718
355
+ ],
356
+ "page_idx": 2
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "3.2 IMPROVING THE POLICY FROM THE RECALL TRACES ",
361
+ "text_level": 1,
362
+ "bbox": [
363
+ 174,
364
+ 734,
365
+ 583,
366
+ 750
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "We now describe how we use the recall traces $\\tilde { \\tau }$ to improve the agent’s policy $\\pi _ { \\theta }$ . In brief, the traces $\\tilde { \\tau }$ generated by the backtracking model are used as observations for imitation learning (Pomerleau, 1989; ros, 2011; Bojarski et al., 2016) by the agent. The backtracking model will be continuously updated as new actual experiences are generated, as described in Section 3.1. Imitation learning of the policy is performed simply by maximizing the log-probability of the agent’s action $a _ { t }$ given $s _ { t }$ given by ",
373
+ "bbox": [
374
+ 173,
375
+ 760,
376
+ 825,
377
+ 844
378
+ ],
379
+ "page_idx": 2
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/a156ba88c9320878df9d3c847a8aaf9a1a0f3b1aade7025329b839ac335a6b8b.jpg",
384
+ "text": "$$\n\\mathcal { L } _ { \\mathcal { T } } = \\sum _ { t = 0 } ^ { T } \\log p ( a _ { t } | s _ { t } ) = \\sum _ { t = 0 } ^ { T } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } ) ,\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 354,
388
+ 842,
389
+ 642,
390
+ 886
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "where $\\left( { { s _ { t } } , { a _ { t } } } \\right)$ -tuples come from a generated trace $\\tilde { \\tau }$ . ",
397
+ "bbox": [
398
+ 173,
399
+ 887,
400
+ 519,
401
+ 902
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "Our motivation for having the agent imitate trajectories from the backtracking model is two-fold: ",
408
+ "bbox": [
409
+ 169,
410
+ 909,
411
+ 805,
412
+ 924
413
+ ],
414
+ "page_idx": 2
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Algorithm 1 Improve Policy via Recall Traces and Backtracking Model ",
419
+ "text_level": 1,
420
+ "bbox": [
421
+ 174,
422
+ 102,
423
+ 647,
424
+ 118
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Require: RL algorithm with parameterized policy (i.e. TRPO, Actor-Critic) \nRequire: Agent policy $\\pi _ { \\boldsymbol { \\theta } } ( a | \\boldsymbol { s } )$ \nRequire: Backtracking model $B _ { \\phi } = q _ { \\phi } ( \\Delta s _ { t } , a _ { t } | s _ { t + 1 } )$ \nRequire: Critic $V ( s )$ ",
431
+ "bbox": [
432
+ 174,
433
+ 122,
434
+ 686,
435
+ 179
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "Require: $k$ quantile of best state values used to train backtracking model, $k _ { t r a j }$ number of trajectories filtered by returns. ",
442
+ "bbox": [
443
+ 176,
444
+ 179,
445
+ 821,
446
+ 205
447
+ ],
448
+ "page_idx": 3
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Require: $N$ ; number of backward trajectories per target state ",
453
+ "bbox": [
454
+ 174,
455
+ 207,
456
+ 581,
457
+ 220
458
+ ],
459
+ "page_idx": 3
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "Require: $\\alpha , \\beta$ ; forward, backward learning rates \n1: Randomly initialize agent policy parameters $\\theta$ \n2: Randomly initialize backtracking model parameters $\\phi$ \n3: for $t = 1$ to $K$ do \n4: Execute policy to produce trajectory $\\tau$ \n5: Add trajectory $\\tau = ( s _ { 1 } , a _ { 1 } , r _ { 1 } , \\cdot \\cdot \\cdot , s _ { T } , a _ { T } , r _ { T } )$ in $\\boldsymbol { B }$ \n6: Estimate $\\nabla _ { \\boldsymbol { \\theta } } R ( \\pi _ { \\boldsymbol { \\theta } } )$ from RL algorithm \n7: $\\theta \\theta + \\alpha \\nabla _ { \\theta } \\dot { R } ( \\dot { \\pi } _ { \\theta } )$ \n8: Compute $\\mathcal { L } _ { B }$ via Equation 2, using top $k \\%$ valuable states from top $k _ { t r a j }$ trajectories in $\\boldsymbol { B }$ \n9: $\\phi \\phi + \\beta \\nabla _ { \\phi } \\mathcal { L } _ { B }$ \n10: Obtain target high value state $s$ (see Algorithm 2 for details) \n11: Generate $N$ recall traces $\\tilde { \\tau }$ for $s$ using $B _ { \\phi } ( s )$ \n12: Compute imitation loss $\\mathcal { L } _ { \\mathcal { I } }$ via Equation 3 \n13: $\\theta \\theta + \\alpha \\nabla _ { \\theta } \\mathcal { L } _ { \\mathcal { Z } }$ \n14: end for ",
464
+ "bbox": [
465
+ 178,
466
+ 220,
467
+ 813,
468
+ 429
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Dealing with sparse rewards States with significant return are emphasized by the backtracking model, since the traces it generates are initialized at high value states. We expect this behaviour to help in the context of sparse or weak rewards. ",
475
+ "bbox": [
476
+ 174,
477
+ 457,
478
+ 825,
479
+ 500
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Aiding in exploration The backtracking model can also generate new ways to reach high-value states. So even if it cannot directly discover new high-value states, it can at least point to new ways to reach known high value states, thus aiding with exploration. ",
486
+ "bbox": [
487
+ 174,
488
+ 506,
489
+ 825,
490
+ 549
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "4 VARIATIONAL INTERPRETATION ",
497
+ "text_level": 1,
498
+ "bbox": [
499
+ 176,
500
+ 569,
501
+ 472,
502
+ 585
503
+ ],
504
+ "page_idx": 3
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Thus far, we have motivated the use of a backtracking model intuitively. In this section, we provide a motivation relying on a variational perspective of RL and ideas from the wake-sleep algorithm Hinton et al. (1995). ",
509
+ "bbox": [
510
+ 174,
511
+ 601,
512
+ 825,
513
+ 643
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Let $R$ be the return of a policy trajectory $\\tau$ , i.e. the sum of discounted rewards under this trajectory. Consider the event of the return $R$ being larger than some threshold $L$ . The probability of that event under the agent’s policy is $\\begin{array} { r } { p ( R > \\bar { L } ) \\stackrel { - } { = } \\sum _ { \\tau } p ( R > L | \\tau ) p ( \\tau ) } \\end{array}$ , where $p ( \\tau )$ is distribution of trajectories under policy $\\pi$ , $p ( R > L | \\tau ) = 1 _ { R > L }$ and $1 _ { A }$ is the indicator function that is equal to 1 if $A$ is true and is otherwise 0. ",
520
+ "bbox": [
521
+ 173,
522
+ 650,
523
+ 825,
524
+ 719
525
+ ],
526
+ "page_idx": 3
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Let $q ( \\tau )$ be any other distribution over trajectories, then we have the following classic relationship between the marginal log-probability of an observation $( R > L$ ) and the KL-divergence between $q$ and the posterior over a latent variable $( \\tau )$ : ",
531
+ "bbox": [
532
+ 174,
533
+ 727,
534
+ 823,
535
+ 770
536
+ ],
537
+ "page_idx": 3
538
+ },
539
+ {
540
+ "type": "equation",
541
+ "img_path": "images/9e0ae12a1a9719573083455b28b21f2c940a798db1f064e8491977ba849be488.jpg",
542
+ "text": "$$\n\\log p ( R > L ) = \\mathcal { L } + \\mathrm { K L } ( q ( \\tau ) | | p ( \\tau | R > L ) ) \\geq \\mathcal { L }\n$$",
543
+ "text_format": "latex",
544
+ "bbox": [
545
+ 331,
546
+ 776,
547
+ 669,
548
+ 795
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "where ",
555
+ "bbox": [
556
+ 174,
557
+ 803,
558
+ 215,
559
+ 815
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "equation",
565
+ "img_path": "images/027af9dec62a6ad2ef2eecd4b182dc20c83a4943c51f665026def6826db47d03.jpg",
566
+ "text": "$$\n\\mathcal { L } = \\sum _ { \\tau } q ( \\tau ) \\log \\left( p ( R > L | \\tau ) p ( \\tau ) / q ( \\tau ) \\right) .\n$$",
567
+ "text_format": "latex",
568
+ "bbox": [
569
+ 356,
570
+ 803,
571
+ 642,
572
+ 837
573
+ ],
574
+ "page_idx": 3
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "This suggests an EM-style training procedure, that alternates between training the variational distribution $q ( \\tau )$ towards the posterior $p ( \\tau | R > L )$ and training the policy to maximize $\\mathcal { L }$ . In this context, we view the backtracking model and the high-value states sampler as providing $q ( \\tau )$ implicitly. Specifically, we assume that $q$ factorizes temporally as in Equation 2 with the backtracking model providing $q ( a _ { t } | s _ { t + 1 } )$ and $q ( \\Delta s _ { t } | a _ { t } , s _ { s + 1 } )$ . We parameterize the approximate posterior in this way so that we can take advantage of a model of the backwards transitions to conveniently sample from $q$ starting from a high-value final state $s _ { T }$ . This makes sense in the context of sparse rewards, where few states have significant reward. If we have a way to identify these high-reward states, then it is much easier to obtain these posterior trajectories by starting from them. ",
579
+ "bbox": [
580
+ 173,
581
+ 840,
582
+ 825,
583
+ 924
584
+ ],
585
+ "page_idx": 3
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "",
590
+ "bbox": [
591
+ 176,
592
+ 103,
593
+ 825,
594
+ 146
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "Training $q ( \\tau )$ by minimizing the $\\mathrm { K L } ( q ( \\tau ) | | p ( \\tau | R > L ) )$ term is hard due to the direction of the KL-divergence. Taking inspiration from the wake-sleep algorithm (Hinton et al., 1995), we instead minimize the KL in the opposite direction, $\\mathrm { K L } ( p ( \\tau | R > L ) | | q ( \\tau ) )$ . This can be done by sampling trajectories from $p ( \\tau | R > \\overline { { L } } )$ (e.g. by rejection sampling, keeping only the forward-generated trajectories which lead to $R > L$ ) and maximizing their log-probability under $q ( \\tau )$ . This recovers our algorithm, which trains the backtracking model on high-return trajectories generated by the agent. ",
601
+ "bbox": [
602
+ 174,
603
+ 151,
604
+ 825,
605
+ 236
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "So far we have assumed a known threshold $L$ . However, in practice the choice of $L$ is important. While ultimately we would want $L$ to be close to the highest possible return, at the early stages of training it cannot be, as trajectories from the agent are unlikely to reach that threshold. A better strategy is to gradually increase $L$ . One natural way of doing this is to use the top few percentile trajectories sampled by the agent for training $q ( \\tau )$ , instead of explicitly setting $L$ . This approach can be thought of as providing a curriculum for training the agent that is adapted to its performance. This is also related to evolutionary methods (Hansen, 2016; Baluja, 1994), which keep the “fittest” samples from a population in order to re-estimate a model, from which new samples are generated. ",
612
+ "bbox": [
613
+ 174,
614
+ 242,
615
+ 825,
616
+ 354
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "This variational point of view also tells us how the prior over the last state should be constructed. The ideal prior $q ( s _ { T } )$ is simply a generative model of the final states leading to $R > L$ . Both methods proposed to estimate $q ( s _ { T } )$ with this purpose, either non-parametrically (with the forward samples for which $R > L$ ) or parametrically (with generative model trained from those samples). Also, if goal states are known ahead of time, then we can set $L$ as the reward of those states (minus a small quantity) and we can seed the backwards trajectories from these goal states. In that case the variational objective used to train the policy is a proxy for log-likelihood of reaching a goal state. ",
623
+ "bbox": [
624
+ 174,
625
+ 361,
626
+ 825,
627
+ 459
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "5 RELATED WORK ",
634
+ "text_level": 1,
635
+ "bbox": [
636
+ 176,
637
+ 473,
638
+ 344,
639
+ 489
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "Control as inference The idea of treating control problems as inference has been around for many years (Stengel, 1986; Kappen et al., 2012; Todorov, 2007; Toussaint, 2009; Rawlik et al., 2012). A good example of this idea is to use Expectation Maximization (EM) for RL (Dayan & Hinton, 1997), of which the PoWER algorithm (Kober et al., 2013) is one well-known practical implementation. In EM algorithms for RL, learning is divided between the estimation of the expectation over the trajectories conditioned on the reward observations and estimation of a new policy based on these expectation estimates. While we don’t explicitly try to estimate these expectations, one could argue that the samples from the backtracking model serve a similar purpose. Variational inference has also been proposed for policy search (Neumann et al., 2011; Levine & Koltun, 2013). Probabilistic views of the RL problem have also been used to construct maximum entropy methods for both regular and inverse RL (Haarnoja et al., 2017; Ziebart et al., 2008). ",
646
+ "bbox": [
647
+ 173,
648
+ 498,
649
+ 825,
650
+ 652
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Using off-policy trajectories By incorporating the trajectories of a separate backtracking model, our method is similar in spirit to approaches which combine on-policy learning algorithms with off-policy samples. Recent examples of this, like the interpolated policy gradient (Gu et al., 2017), PGQ (O’Donoghue et al., 2016) and ACER (Wang et al., 2016), combine policy gradient learning with ideas for off-policy learning and methodology inspired by Q-learning. Our method differs by using the backtracking model to obtain off-policy trajectories and is, as an idea, independent of the specific model-free RL method it is combined with. Our work to effectively propagate value updates backwards is also related to the seminal work of prioritized sweeping (Moore & Atkeson, 1993). ",
657
+ "bbox": [
658
+ 174,
659
+ 659,
660
+ 825,
661
+ 770
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Model-based methods A wide range of model-based RL and control methods have been proposed in the literature (Deisenroth et al., 2013). PILCO (Deisenroth & Rasmussen, 2011b), is a model-based policy search method to learn a probabilistic model of dynamics and incorporate model uncertainty into long-term planning. The classic Dyna (Sutton) algorithm was proposed to take advantage of a model to generate simulated experiences, which could be included in the training data for a modelfree algorithm. This method was extended to work with deep neural network policies, but performed best with models that were not neural networks (Gu et al., 2016b). Other extensions to Dyna have also been proposed (Silver et al., 2008; Kalweit & Boedecker; Heess et al., 2015). ",
668
+ "bbox": [
669
+ 174,
670
+ 776,
671
+ 825,
672
+ 888
673
+ ],
674
+ "page_idx": 4
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Other approaches have also been proposed to combine advantages of both value and policy-based approaches (Nachum et al., 2017; Sukhbaatar et al., 2017). Finally, (Edwards et al., 2018) is concurrent work to this and also proposes training on imagined reversal steps from known goal states. (Goyal et al., 2017) proposed to use similar learning rule in the context of generative models to modify the parameters of transition operator to make the reverse of this heated trajectory more likely under a reverse cooling process. ",
679
+ "bbox": [
680
+ 176,
681
+ 895,
682
+ 821,
683
+ 924
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "image",
689
+ "img_path": "images/eefea3db8f94db0088a9a43f7a5a807952871a1389f3002804e8641052c90207.jpg",
690
+ "image_caption": [
691
+ "Figure 2: Training curves from the Four Room Environment for the Actor-Critic baseline (blue) and the backtracking model augmented Actor-Critic (orange). For the size-19 environment, several of the Actor-Critic baselines failed to converge, whereas the augmented recall trace model always succeeded in the number of training steps considered. For additional results see Figure 9 in Appendix. "
692
+ ],
693
+ "image_footnote": [],
694
+ "bbox": [
695
+ 217,
696
+ 106,
697
+ 766,
698
+ 247
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "",
705
+ "bbox": [
706
+ 174,
707
+ 344,
708
+ 825,
709
+ 400
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "6 EXPERIMENTAL RESULTS ",
716
+ "text_level": 1,
717
+ "bbox": [
718
+ 176,
719
+ 422,
720
+ 419,
721
+ 439
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "Our experimental evaluation aims to understand whether our method can improve the sample complexity of off-policy as well as on-policy RL algorithms. Practically, we must choose the length of generated backward traces. Longer traces become increasingly likely to deviate significantly from the traces that the agent can generate from its initial state. Therefore, in our experiments, we sample fairly short traces $\\tilde { \\tau }$ from the backtracking model, where the length is adjusted manually based on the time-scale of each task. ",
728
+ "bbox": [
729
+ 174,
730
+ 455,
731
+ 825,
732
+ 539
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "We empirically show the following results across different experimental settings: ",
739
+ "text_level": 1,
740
+ "bbox": [
741
+ 174,
742
+ 545,
743
+ 732,
744
+ 560
745
+ ],
746
+ "page_idx": 5
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "• Samples from the true backtracking model can be used to improve sample efficiency. • Using a learned backtracking model starting from high value states accelerates learning for off-policy as well as on-policy experiments. • Modeling parametrically and generating high value states (using GoalGAN) also helps. ",
751
+ "bbox": [
752
+ 212,
753
+ 570,
754
+ 825,
755
+ 633
756
+ ],
757
+ "page_idx": 5
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "6.1 ACCESS TO TRUE BACKTRACKING MODEL ",
762
+ "text_level": 1,
763
+ "bbox": [
764
+ 173,
765
+ 651,
766
+ 511,
767
+ 666
768
+ ],
769
+ "page_idx": 5
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Here, we aim to check if in the ideal case when the true backtracking model is known, the proposed approach works. To investigate this, we use the four-room environment from Schaul et al. (2015) of various dimensions. The 4-room grid world is a simple environment where the agent must navigate to a goal position to receive a positive reward through bottleneck states (doorways). We compare the proposed method to the scenario where the policy is trained through the actor-critic method Konda (2002) with generalized advantage estimation (GAE) Schulman et al. (2015b) ",
774
+ "bbox": [
775
+ 174,
776
+ 678,
777
+ 825,
778
+ 762
779
+ ],
780
+ "page_idx": 5
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Finding the goal state becomes more challenging as the dimension increases due to sparsity of rewards. Therefore, we expect that the backtracking model would be a more effective tool in larger environments. Confirming this hypothesis, we see in Figure 2 that, as we increase the dimensionality of the maze, sample efficiency increases thanks to recall traces, compared to our baseline. ",
785
+ "bbox": [
786
+ 174,
787
+ 768,
788
+ 825,
789
+ 825
790
+ ],
791
+ "page_idx": 5
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "6.2 COMPARISON WITH PRIORITIZED EXPERIENCE REPLAY ",
796
+ "text_level": 1,
797
+ "bbox": [
798
+ 174,
799
+ 844,
800
+ 599,
801
+ 858
802
+ ],
803
+ "page_idx": 5
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Here we aim to compare the performance of recall traces with Prioritized Experience Replay (PER). PER stores the past experiences in a buffer and then selectively trains on high value experiences. We again use the Four-room Environment. PER gives an optimistic bias to the critic, and while it allows the reinforcement of sparse rewards, it also converges too quickly to an exploitation mode, which can be difficult to get out of. In order to show this, we plot the state visitation counts of a policies trained with PER and recall traces and see that the latter visit more states. ",
808
+ "bbox": [
809
+ 174,
810
+ 867,
811
+ 823,
812
+ 924
813
+ ],
814
+ "page_idx": 5
815
+ },
816
+ {
817
+ "type": "image",
818
+ "img_path": "images/16904e4d69cdc495b305097ef7fc9f8953482a4c5bf15fda554ad0ab1918f903.jpg",
819
+ "image_caption": [
820
+ "Figure 3: Visitation count visualization of trained policies for PER (left) and Recall Traces (right) for two 4-room grid sizes. "
821
+ ],
822
+ "image_footnote": [],
823
+ "bbox": [
824
+ 318,
825
+ 99,
826
+ 679,
827
+ 183
828
+ ],
829
+ "page_idx": 6
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "",
834
+ "bbox": [
835
+ 174,
836
+ 247,
837
+ 823,
838
+ 275
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "image",
844
+ "img_path": "images/cfbc408eb978e61773fbef4dc973e3dfbdf4be94733efa8523371b9c37ed7847.jpg",
845
+ "image_caption": [
846
+ "Figure 4: Plots for reward vs. time steps, comparing the performance of recall traces (labeled BacktrackingModel), PER and baseline Actor Critic (AC). "
847
+ ],
848
+ "image_footnote": [],
849
+ "bbox": [
850
+ 227,
851
+ 285,
852
+ 769,
853
+ 405
854
+ ],
855
+ "page_idx": 6
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "We show in Figure 4 that while PER is competitive in the smaller 11x11 environment, recall traces outperform it in the larger 15x15 environment. Figure 3 also shows how the use of a backtracking model and recall traces pushes the policy to visit a wider variety of grid positions than PER. ",
860
+ "bbox": [
861
+ 174,
862
+ 462,
863
+ 825,
864
+ 503
865
+ ],
866
+ "page_idx": 6
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "6.3 LEARNED BACKTRACKING MODEL FROM GENERATED STATES ",
871
+ "text_level": 1,
872
+ "bbox": [
873
+ 176,
874
+ 521,
875
+ 648,
876
+ 535
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "One situation in which states to start the backtracking model at are naturally available, is when the method is combined with an algorithm for sub-goal selection. We chose to investigate how well the backtracking model can be used in conjunction with the automatic goal generation algorithm from Held et al. (2017), Goal GAN. It uses a Generative Adversarial Network to produce sub-goals at the appropriate level of difficulty for the agent to reach. As the agent learns, new sub-goals of increasing difficulty are generated. This way, the agent is pressured to explore and learn to be able to reach any location in the state space. We hypothesize that the backtracking model should help the agent to reach the sub-goals faster and explore more efficiently. ",
883
+ "bbox": [
884
+ 174,
885
+ 546,
886
+ 825,
887
+ 659
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Hence, in this learning scenario, what changes is that high value states are now generated by Goal GAN instead of being selected by a critic from a replay buffer. ",
894
+ "bbox": [
895
+ 173,
896
+ 665,
897
+ 823,
898
+ 693
899
+ ],
900
+ "page_idx": 6
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "We performed experiments on the U-Maze Ant task described in Held et al. (2017). It is a challenging robotic locomotion task where a quadruped robot has to navigate its center of mass within some particular distance of a target goal. The objective is to cover as much of the space of the U-shaped maze as possible. We find that using the backtracking model improves data efficiency, by reaching a coverage of more than $63 \\%$ in 155 steps, instead of 275 steps without it (Fig 5). More visualizations and learning curves for U-Maze Ant task as well as the N-Dimensional Point Mass task can be found in Appendix (Figs. 11, 12 and 13). ",
905
+ "bbox": [
906
+ 174,
907
+ 699,
908
+ 825,
909
+ 797
910
+ ],
911
+ "page_idx": 6
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "6.4 LEARNED BACKTRACKING MODEL - ON-POLICY CASE ",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 174,
919
+ 814,
920
+ 598,
921
+ 828
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "We conducted robotic locomotion experiments using the MuJoCo simulator (Todorov et al., 2012). We use the same setup as (Nagabandi et al., 2017). We compare our approach with a pure model-free method on standard benchmark locomotion tasks, to learn the fastest forward-moving gait possible. The model-free approach we consider is the rllab implementation of trust region policy optimization (TRPO) Schulman et al. (2015a). For the TRPO baseline we use the same setup as Nagabandi et al. (2017). See the appendix for the model implementation details. ",
928
+ "bbox": [
929
+ 174,
930
+ 840,
931
+ 825,
932
+ 924
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "image",
938
+ "img_path": "images/5b169c2be83e36aa4be472bee8085e14f1730dca1ed186e974ea6708c8bd23b6.jpg",
939
+ "image_caption": [
940
+ "Figure 5: Visualization of GoalGAN baseline (b) vs backtracking model (c) policy performance for different parts of the state space for Ant Maze task. Red indicates complete success; blue indicates failure. Backtracking model achieves equal coverage rates in fewer steps of training. "
941
+ ],
942
+ "image_footnote": [],
943
+ "bbox": [
944
+ 200,
945
+ 101,
946
+ 789,
947
+ 207
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Performance across tasks: The results in Figure 6 show that our method consistently outperforms TRPO on all of the benchmark tasks in terms of final performance, and learns substantially faster. ",
954
+ "bbox": [
955
+ 174,
956
+ 286,
957
+ 825,
958
+ 315
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "image",
964
+ "img_path": "images/875638c64e7dda53f3ad3a9db7338b2219a3121cda68c8d620aecd1412d1f5b5.jpg",
965
+ "image_caption": [
966
+ "Figure 6: Our model as compared to TRPO. For TRPO baselines, except walker, we ran with 5 different random seeds. For our model, we ran with 5 different random seeds. "
967
+ ],
968
+ "image_footnote": [],
969
+ "bbox": [
970
+ 173,
971
+ 327,
972
+ 838,
973
+ 424
974
+ ],
975
+ "page_idx": 7
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "6.5 LEARNED BACKTRACKING MODEL - OFF POLICY CASE ",
980
+ "text_level": 1,
981
+ "bbox": [
982
+ 173,
983
+ 488,
984
+ 602,
985
+ 503
986
+ ],
987
+ "page_idx": 7
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Here, we evaluate on the same range of challenging continuous control tasks from the OpenAI gym benchmark suite. We compare to Soft Actor Critic (SAC) (Haarnoja et al., 2018), shown to be more sample efficient compared to other off-policy algorithms such as DDPG (Lillicrap et al., 2015) and which consistently outperforms DDPG. Part of the reason for choosing SAC instead of DDPG was that the latter is also known to be more sensitive to hyper-parameter settings, limiting its effectiveness on complex tasks Henderson et al. (2017). For SAC, we use the same hyper-parameters reported in Haarnoja et al. (2018). Implementation details for our model are listed in the Appendix. ",
992
+ "bbox": [
993
+ 173,
994
+ 515,
995
+ 825,
996
+ 613
997
+ ],
998
+ "page_idx": 7
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Performance across tasks - The results in Figure 7 show that our method consistently improves the performance of SAC on all of the benchmark tasks, leading to faster learning. In fact, the largest improvement is observed on the hardest task, Ant. ",
1003
+ "bbox": [
1004
+ 174,
1005
+ 619,
1006
+ 826,
1007
+ 661
1008
+ ],
1009
+ "page_idx": 7
1010
+ },
1011
+ {
1012
+ "type": "image",
1013
+ "img_path": "images/fa977aca2b3a0e6eedfa7c38633d2d6447fb877a9108781a0e86ef394a9801f8.jpg",
1014
+ "image_caption": [
1015
+ "Figure 7: Our model as compared to SAC. We ran SAC baselines with 2 different random seeds. For our model, we ran with 5 different random seeds. "
1016
+ ],
1017
+ "image_footnote": [],
1018
+ "bbox": [
1019
+ 179,
1020
+ 672,
1021
+ 830,
1022
+ 772
1023
+ ],
1024
+ "page_idx": 7
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "7 DISCUSSION ",
1029
+ "text_level": 1,
1030
+ "bbox": [
1031
+ 174,
1032
+ 840,
1033
+ 310,
1034
+ 856
1035
+ ],
1036
+ "page_idx": 7
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "We advocate for the use of a backtracking model for improving sample efficiency and exploration in RL. The method can easily be combined with popular RL algorithms like TRPO and soft actorcritic. Our results indicate that the recall traces generated by such models are able to accelerate learning on a variety of tasks. We also show that the method can be combined with automatic goal generation. The Appendix provides more analysis on the sensitivity of our method to various factors and ablations. We show that a random model is outperformed by a trained backtracking model, confirming its usefulness and present plots showing the effect of varying the length of recall traces. ",
1041
+ "bbox": [
1042
+ 174,
1043
+ 867,
1044
+ 825,
1045
+ 924
1046
+ ],
1047
+ "page_idx": 7
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "",
1052
+ "bbox": [
1053
+ 176,
1054
+ 103,
1055
+ 823,
1056
+ 146
1057
+ ],
1058
+ "page_idx": 8
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "For future work, while we observed empirically that the method has practical value and could relate its workings from a variational perspective, but more could be done to improve our theoretical understanding of its convergence behavior and what kind of assumptions need to hold about the environment. It would also be interesting to investigate how the backtracking model can be combined with forward models from a more conventional model-based system. ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 152,
1066
+ 825,
1067
+ 222
1068
+ ],
1069
+ "page_idx": 8
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "8 ACKNOWLEDGEMENTS ",
1074
+ "text_level": 1,
1075
+ "bbox": [
1076
+ 176,
1077
+ 243,
1078
+ 397,
1079
+ 258
1080
+ ],
1081
+ "page_idx": 8
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "The authors acknowledge the important role played by their colleagues at Mila throughout the duration of this work. The authors would like to thank Alessandro Sordoni for being involved in the earlier phase of the project, and for the Four Room Code. AG would like to thank Doina Precup, Matthew Botvinick, Konrad Kording for useful discussions. William Fedus would like to thank Evan Racah and Valentin Thomas for useful discussions and edits. The authors would also like to thank Nicolas Le Roux, Rahul Sukthankar, Gatan Marceau Caron, Maxime Chevalier-Boisvert, Justin Fu, Nasim Rahaman for the feedback on the draft. The authors would also like to thank NSERC, CIFAR, Google Research, Samsung, Nuance, IBM and Canada Research Chairs, Nvidia for funding, and Compute Canada for computing resources. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 270,
1089
+ 825,
1090
+ 396
1091
+ ],
1092
+ "page_idx": 8
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "REFERENCES ",
1097
+ "text_level": 1,
1098
+ "bbox": [
1099
+ 174,
1100
+ 416,
1101
+ 285,
1102
+ 431
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, 2011. ",
1109
+ "bbox": [
1110
+ 173,
1111
+ 439,
1112
+ 823,
1113
+ 468
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Shumeet Baluja. Population-based incremental learning: A method for integrating genetic search based function optimization and competitive learning. Technical report, 1994. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 477,
1123
+ 823,
1124
+ 506
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In NIPS, 2016. ",
1131
+ "bbox": [
1132
+ 171,
1133
+ 513,
1134
+ 821,
1135
+ 542
1136
+ ],
1137
+ "page_idx": 8
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016. ",
1142
+ "bbox": [
1143
+ 178,
1144
+ 551,
1145
+ 823,
1146
+ 594
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Silvia Chiappa, Sebastien Racaniere, Daan Wierstra, and Shakir Mohamed. Recurrent environment ´ simulators. arXiv preprint arXiv:1704.02254, 2017. ",
1153
+ "bbox": [
1154
+ 171,
1155
+ 602,
1156
+ 823,
1157
+ 631
1158
+ ],
1159
+ "page_idx": 8
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Peter Dayan and Geoffrey E Hinton. Using expectation-maximization for reinforcement learning. Neural Computation, 9(2):271–278, 1997. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 640,
1167
+ 821,
1168
+ 667
1169
+ ],
1170
+ "page_idx": 8
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011a. ",
1175
+ "bbox": [
1176
+ 176,
1177
+ 676,
1178
+ 821,
1179
+ 719
1180
+ ],
1181
+ "page_idx": 8
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Marc Peter Deisenroth and Carl Edward Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, pp. 465–472, USA, 2011b. Omnipress. ISBN 978- 1-4503-0619-5. URL http://dl.acm.org/citation.cfm?id $=$ 3104482.3104541. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 728,
1189
+ 825,
1190
+ 785
1191
+ ],
1192
+ "page_idx": 8
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Marc Peter Deisenroth, Gerhard Neumann, and Jan Peters. A survey on policy search for robotics. Foundations and Trends in Robotics, 2(12):1–142, 2013. ISSN 1935-8253. doi: 10.1561/2300000021. URL http://dx.doi.org/10.1561/2300000021. ",
1197
+ "bbox": [
1198
+ 174,
1199
+ 792,
1200
+ 823,
1201
+ 835
1202
+ ],
1203
+ "page_idx": 8
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Ashley D Edwards, Laura Downs, and James C Davidson. Forward-backward reinforcement learning. arXiv preprint arXiv:1803.10227, 2018. ",
1208
+ "bbox": [
1209
+ 168,
1210
+ 843,
1211
+ 823,
1212
+ 873
1213
+ ],
1214
+ "page_idx": 8
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1219
+ "bbox": [
1220
+ 174,
1221
+ 881,
1222
+ 823,
1223
+ 924
1224
+ ],
1225
+ "page_idx": 8
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Anirudh Goyal Alias Parth Goyal, Nan Rosemary Ke, Surya Ganguli, and Yoshua Bengio. Variational walkback: Learning a transition operator as a stochastic recurrent net. In Advances in Neural Information Processing Systems, pp. 4392–4402, 2017. ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 103,
1233
+ 823,
1234
+ 146
1235
+ ],
1236
+ "page_idx": 9
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, and Sergey Levine. Qprop: Sample-efficient policy gradient with an off-policy critic. arXiv preprint arXiv:1611.02247, 2016a. ",
1241
+ "bbox": [
1242
+ 176,
1243
+ 155,
1244
+ 823,
1245
+ 198
1246
+ ],
1247
+ "page_idx": 9
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Shixiang Gu, Timothy P. Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. CoRR, abs/1603.00748, 2016b. ",
1252
+ "bbox": [
1253
+ 173,
1254
+ 208,
1255
+ 821,
1256
+ 237
1257
+ ],
1258
+ "page_idx": 9
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Shixiang Gu, Tim Lillicrap, Richard E Turner, Zoubin Ghahramani, Bernhard Scholkopf, and Sergey ¨ Levine. Interpolated policy gradient: Merging on-policy and off-policy gradient estimation for deep reinforcement learning. In NIPS, 2017. ",
1263
+ "bbox": [
1264
+ 173,
1265
+ 246,
1266
+ 825,
1267
+ 290
1268
+ ],
1269
+ "page_idx": 9
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. arXiv preprint arXiv:1702.08165, 2017. ",
1274
+ "bbox": [
1275
+ 174,
1276
+ 299,
1277
+ 823,
1278
+ 329
1279
+ ],
1280
+ "page_idx": 9
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. CoRR, abs/1801.01290, 2018. ",
1285
+ "bbox": [
1286
+ 174,
1287
+ 337,
1288
+ 823,
1289
+ 380
1290
+ ],
1291
+ "page_idx": 9
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Nikolaus Hansen. The CMA evolution strategy: A tutorial. CoRR, abs/1604.00772, 2016. URL http://arxiv.org/abs/1604.00772. ",
1296
+ "bbox": [
1297
+ 169,
1298
+ 390,
1299
+ 825,
1300
+ 420
1301
+ ],
1302
+ "page_idx": 9
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Nicolas Heess, Greg Wayne, David Silver, Timothy P. Lillicrap, Yuval Tassa, and Tom Erez. Learning continuous control policies by stochastic value gradients. abs/1510.09142, 2015. ",
1307
+ "bbox": [
1308
+ 173,
1309
+ 428,
1310
+ 821,
1311
+ 458
1312
+ ],
1313
+ "page_idx": 9
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "David Held, Xinyang Geng, Carlos Florensa, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. arXiv preprint arXiv:1705.06366, 2017. ",
1318
+ "bbox": [
1319
+ 171,
1320
+ 467,
1321
+ 823,
1322
+ 497
1323
+ ],
1324
+ "page_idx": 9
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. abs/1709.06560, 2017. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 506,
1332
+ 821,
1333
+ 535
1334
+ ],
1335
+ "page_idx": 9
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Geoffrey E Hinton, Peter Dayan, Brendan J Frey, and Radford M Neal. The” wake-sleep” algorithm for unsupervised neural networks. Science, 268(5214):1158–1161, 1995. ",
1340
+ "bbox": [
1341
+ 176,
1342
+ 544,
1343
+ 821,
1344
+ 574
1345
+ ],
1346
+ "page_idx": 9
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Gabriel Kalweit and Joschka Boedecker. Uncertainty-driven imagination for continuous deep reinforcement learning. In Proceedings of the 1st Annual Conference on Robot Learning, volume 78 of Proceedings of Machine Learning Research. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 583,
1354
+ 825,
1355
+ 626
1356
+ ],
1357
+ "page_idx": 9
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Hilbert J Kappen, Vicenc¸ Gomez, and Manfred Opper. Optimal control as a graphical model infer- ´ ence problem. Machine learning, 87(2):159–182, 2012. ",
1362
+ "bbox": [
1363
+ 173,
1364
+ 636,
1365
+ 821,
1366
+ 665
1367
+ ],
1368
+ "page_idx": 9
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Jens Kober, J Andrew Bagnell, and Jan Peters. Reinforcement learning in robotics: A survey. The International Journal of Robotics Research, 32(11):1238–1274, 2013. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 674,
1376
+ 823,
1377
+ 704
1378
+ ],
1379
+ "page_idx": 9
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Vijaymohan Konda. Actor-critic Algorithms. PhD thesis, Cambridge, MA, USA, 2002. AAI0804543. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 712,
1387
+ 823,
1388
+ 742
1389
+ ],
1390
+ "page_idx": 9
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Sergey Levine and Vladlen Koltun. Variational policy search via trajectory optimization. In NIPS, 2013. ",
1395
+ "bbox": [
1396
+ 171,
1397
+ 751,
1398
+ 825,
1399
+ 781
1400
+ ],
1401
+ "page_idx": 9
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
1406
+ "bbox": [
1407
+ 176,
1408
+ 790,
1409
+ 823,
1410
+ 833
1411
+ ],
1412
+ "page_idx": 9
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In ICML, 2016. ",
1417
+ "bbox": [
1418
+ 174,
1419
+ 843,
1420
+ 823,
1421
+ 886
1422
+ ],
1423
+ "page_idx": 9
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Andrew W Moore and Christopher G Atkeson. Prioritized sweeping: Reinforcement learning with less data and less time. Machine learning, 13(1):103–130, 1993. ",
1428
+ "bbox": [
1429
+ 174,
1430
+ 895,
1431
+ 820,
1432
+ 924
1433
+ ],
1434
+ "page_idx": 9
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. In NIPS, 2017. ",
1439
+ "bbox": [
1440
+ 171,
1441
+ 103,
1442
+ 823,
1443
+ 132
1444
+ ],
1445
+ "page_idx": 10
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Anusha Nagabandi, Gregory Kahn, Ronald S Fearing, and Sergey Levine. Neural network dynamics for model-based deep reinforcement learning with model-free fine-tuning. arXiv preprint arXiv:1708.02596, 2017. ",
1450
+ "bbox": [
1451
+ 173,
1452
+ 142,
1453
+ 823,
1454
+ 184
1455
+ ],
1456
+ "page_idx": 10
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Gerhard Neumann et al. Variational inference for policy search in changing situations. In ICML 2011, 2011. ",
1461
+ "bbox": [
1462
+ 173,
1463
+ 194,
1464
+ 823,
1465
+ 223
1466
+ ],
1467
+ "page_idx": 10
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Brendan O’Donoghue, Remi Munos, Koray Kavukcuoglu, and Volodymyr Mnih. Pgq: Combining policy gradient and q-learning. arXiv preprint arXiv:1611.01626, 2016. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 233,
1475
+ 823,
1476
+ 263
1477
+ ],
1478
+ "page_idx": 10
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NIPS, 2015. ",
1483
+ "bbox": [
1484
+ 173,
1485
+ 272,
1486
+ 825,
1487
+ 301
1488
+ ],
1489
+ "page_idx": 10
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Georg Ostrovski, Marc G Bellemare, Aaron van den Oord, and Remi Munos. Count-based explo- ´ ration with neural density models. arXiv preprint arXiv:1703.01310, 2017. ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 310,
1497
+ 823,
1498
+ 340
1499
+ ],
1500
+ "page_idx": 10
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989. ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 349,
1508
+ 823,
1509
+ 380
1510
+ ],
1511
+ "page_idx": 10
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "Konrad Rawlik, Marc Toussaint, and Sethu Vijayakumar. On stochastic optimal control and reinforcement learning by approximate inference. In Robotics: science and systems, volume 13, pp. 3052–3056, 2012. ",
1516
+ "bbox": [
1517
+ 173,
1518
+ 387,
1519
+ 823,
1520
+ 431
1521
+ ],
1522
+ "page_idx": 10
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal value function approximators. In ICML, 2015. ",
1527
+ "bbox": [
1528
+ 171,
1529
+ 440,
1530
+ 823,
1531
+ 470
1532
+ ],
1533
+ "page_idx": 10
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust region policy optimization. CoRR, abs/1502.05477, 2015a. ",
1538
+ "bbox": [
1539
+ 171,
1540
+ 479,
1541
+ 823,
1542
+ 508
1543
+ ],
1544
+ "page_idx": 10
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. CoRR, abs/1506.02438, 2015b. ",
1549
+ "bbox": [
1550
+ 174,
1551
+ 518,
1552
+ 825,
1553
+ 560
1554
+ ],
1555
+ "page_idx": 10
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "David Silver, Richard S. Sutton, and Martin Muller. Sample-based learning and search with perma- ¨ nent and transient memories. In Proceedings of the 25th International Conference on Machine Learning, ICML ’08, 2008. ",
1560
+ "bbox": [
1561
+ 174,
1562
+ 570,
1563
+ 825,
1564
+ 613
1565
+ ],
1566
+ "page_idx": 10
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016. ",
1571
+ "bbox": [
1572
+ 174,
1573
+ 623,
1574
+ 825,
1575
+ 666
1576
+ ],
1577
+ "page_idx": 10
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "Robert F Stengel. Optimal control and estimation. Courier Corporation, 1986. ",
1582
+ "bbox": [
1583
+ 173,
1584
+ 676,
1585
+ 689,
1586
+ 691
1587
+ ],
1588
+ "page_idx": 10
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "Sainbayar Sukhbaatar, Ilya Kostrikov, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. arXiv preprint arXiv:1703.05407, 2017. ",
1593
+ "bbox": [
1594
+ 173,
1595
+ 700,
1596
+ 823,
1597
+ 731
1598
+ ],
1599
+ "page_idx": 10
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "Richard S. Sutton. Dyna, an integrated architecture for learning, planning, and reacting. SIGART Bull. ",
1604
+ "bbox": [
1605
+ 171,
1606
+ 739,
1607
+ 823,
1608
+ 770
1609
+ ],
1610
+ "page_idx": 10
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In IROS, 2012. ",
1615
+ "bbox": [
1616
+ 176,
1617
+ 779,
1618
+ 825,
1619
+ 809
1620
+ ],
1621
+ "page_idx": 10
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "Emanuel Todorov. Linearly-solvable markov decision problems. In NIPS, 2007. ",
1626
+ "bbox": [
1627
+ 174,
1628
+ 818,
1629
+ 700,
1630
+ 833
1631
+ ],
1632
+ "page_idx": 10
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "text": "Marc Toussaint. Robot trajectory optimization using approximate inference. In Proceedings of the 26th annual international conference on machine learning, 2009. ",
1637
+ "bbox": [
1638
+ 169,
1639
+ 842,
1640
+ 825,
1641
+ 872
1642
+ ],
1643
+ "page_idx": 10
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. arXiv preprint arXiv:1611.01224, 2016. ",
1648
+ "bbox": [
1649
+ 174,
1650
+ 881,
1651
+ 825,
1652
+ 924
1653
+ ],
1654
+ "page_idx": 10
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "Theophane Weber, Sebastien Racani ´ ere, David P. Reichert, Lars Buesing, Arthur Guez, \\` Danilo Jimenez Rezende, Adria Puigdom \\` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, \\` Razvan Pascanu, Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. CoRR, abs/1707.06203, 2017. ",
1659
+ "bbox": [
1660
+ 176,
1661
+ 103,
1662
+ 823,
1663
+ 159
1664
+ ],
1665
+ "page_idx": 11
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, 2008. ",
1670
+ "bbox": [
1671
+ 169,
1672
+ 169,
1673
+ 823,
1674
+ 196
1675
+ ],
1676
+ "page_idx": 11
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "A PSEUDO CODE FOR GAN BASED MODEL ",
1681
+ "bbox": [
1682
+ 176,
1683
+ 102,
1684
+ 549,
1685
+ 118
1686
+ ],
1687
+ "page_idx": 12
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "Algorithm 2 Produce High Value States ",
1692
+ "text_level": 1,
1693
+ "bbox": [
1694
+ 176,
1695
+ 140,
1696
+ 437,
1697
+ 155
1698
+ ],
1699
+ "page_idx": 12
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "text": "Require: Critic $V ( s )$ \nRequire: $D$ ; transformation ’decoder’ from $g$ to $s$ \nRequire: Experience buffer $\\boldsymbol { B }$ with tuples $\\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \\right)$ \nRequire: gen state; boolean whether to generate states \nRequire: $G A N$ , some generative model trained to model high-value goal states \n1: if gen state then \n2: $g \\sim G A N$ \n3: $D : g \\mapsto s$ \n4: Return $s$ \n5: else \n6: Return argmax ${ \\mathrm { : } } ( V ( s ) ) \\ \\forall s \\in B$ \n7: end if ",
1704
+ "bbox": [
1705
+ 174,
1706
+ 159,
1707
+ 704,
1708
+ 328
1709
+ ],
1710
+ "page_idx": 12
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "B PERFORMANCE BY VARYING LENGTH ",
1715
+ "text_level": 1,
1716
+ "bbox": [
1717
+ 176,
1718
+ 359,
1719
+ 521,
1720
+ 376
1721
+ ],
1722
+ "page_idx": 12
1723
+ },
1724
+ {
1725
+ "type": "text",
1726
+ "text": "In Figure 8 we show the performance in learning efficiency when the length of the backward traces is varied. ",
1727
+ "bbox": [
1728
+ 169,
1729
+ 390,
1730
+ 825,
1731
+ 420
1732
+ ],
1733
+ "page_idx": 12
1734
+ },
1735
+ {
1736
+ "type": "image",
1737
+ "img_path": "images/4cbdae02d8b7c74ee8f08da2d651f18271753ec52476874e17bfea3939e7074e.jpg",
1738
+ "image_caption": [
1739
+ "Figure 8: Performance of our model (with TRPO) by varying the length of traces from backtracking model. All the time-steps are in thousands i.e $( \\mathbf { x } 1 0 0 0 )$ "
1740
+ ],
1741
+ "image_footnote": [],
1742
+ "bbox": [
1743
+ 217,
1744
+ 430,
1745
+ 784,
1746
+ 719
1747
+ ],
1748
+ "page_idx": 12
1749
+ },
1750
+ {
1751
+ "type": "text",
1752
+ "text": "C ARCHITECTURE AND IMPLEMENTATION DETAILS ",
1753
+ "text_level": 1,
1754
+ "bbox": [
1755
+ 174,
1756
+ 781,
1757
+ 619,
1758
+ 797
1759
+ ],
1760
+ "page_idx": 12
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "The backtracking model we used for all the experiments consisted of two multi-layer perceptrons: one for the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ and one for the backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ . Both MLPs had two hidden layers of 128 units. The action predictor used hyperbolic tangent units while the inverse state predictor used ReLU units. Each network produced as output the mean and variance parameters of a Gaussian distribution. For the action predictor the output variance was fixed to 1. For the state predictor this value was learned for each dimension. ",
1765
+ "bbox": [
1766
+ 174,
1767
+ 811,
1768
+ 825,
1769
+ 896
1770
+ ],
1771
+ "page_idx": 12
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "We do about a hundred training-steps of the backtracking model for every 5 training-steps of the RL algorithm. For training the backtracking model we maintain a buffer which stores states (state, action, nextstate, reward) yielding high rewards. We sample a batch from the buffer and then normalize the states, actions before training the backtracking model on them. ",
1776
+ "bbox": [
1777
+ 173,
1778
+ 909,
1779
+ 821,
1780
+ 924
1781
+ ],
1782
+ "page_idx": 12
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "",
1787
+ "bbox": [
1788
+ 174,
1789
+ 103,
1790
+ 823,
1791
+ 146
1792
+ ],
1793
+ "page_idx": 13
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "During the sampling phase we feed in the normalized nextstate in the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ to get normalized action. Then we input this normalized action in the backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ to get normalized previous state. We then un-normalize the obtained previous states and action using the corresponding mean and variance to compute the Imitation loss. This is required for stability during sampling. ",
1798
+ "bbox": [
1799
+ 174,
1800
+ 146,
1801
+ 825,
1802
+ 215
1803
+ ],
1804
+ "page_idx": 13
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "D ADDITIONAL RESULTS ",
1809
+ "text_level": 1,
1810
+ "bbox": [
1811
+ 176,
1812
+ 241,
1813
+ 400,
1814
+ 257
1815
+ ],
1816
+ "page_idx": 13
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "FOUR ROOM ENVIRONMENT ",
1821
+ "text_level": 1,
1822
+ "bbox": [
1823
+ 174,
1824
+ 276,
1825
+ 374,
1826
+ 290
1827
+ ],
1828
+ "page_idx": 13
1829
+ },
1830
+ {
1831
+ "type": "image",
1832
+ "img_path": "images/09743a08e364150927a6aa7be84b01ba8cc7daec12d4f13ba72a09f8e14aa2dd.jpg",
1833
+ "image_caption": [
1834
+ "Figure 9: Training curves from the Four Room Environment for the Actor-Critic baseline (blue) and the backtracking model augmented Actor-Critic (orange). As the size of the environment increases, the benefit of the backtracking model increases for the policy. For the size-19 environment, several of the Actor-Critic baselines failed to converge, whereas the augmented recall trace model always succeeded in the number of training steps considered. "
1835
+ ],
1836
+ "image_footnote": [],
1837
+ "bbox": [
1838
+ 207,
1839
+ 318,
1840
+ 779,
1841
+ 460
1842
+ ],
1843
+ "page_idx": 13
1844
+ },
1845
+ {
1846
+ "type": "text",
1847
+ "text": "COMPARISON WITH PER ",
1848
+ "text_level": 1,
1849
+ "bbox": [
1850
+ 174,
1851
+ 582,
1852
+ 348,
1853
+ 594
1854
+ ],
1855
+ "page_idx": 13
1856
+ },
1857
+ {
1858
+ "type": "text",
1859
+ "text": "We show additional results for 13 Dimensional Environment. ",
1860
+ "bbox": [
1861
+ 173,
1862
+ 609,
1863
+ 575,
1864
+ 625
1865
+ ],
1866
+ "page_idx": 13
1867
+ },
1868
+ {
1869
+ "type": "image",
1870
+ "img_path": "images/5f20b21a9b4e2692d1f0c9882b70552984a8b86f870ff82ca03354e587f06ef0.jpg",
1871
+ "image_caption": [
1872
+ "Figure 10: Plot(a) for Reward(y) vs Timesteps $\\mathbf { \\tau } ( \\mathbf { x } )$ comparing the performance of backtracking model, PER and baseline Actor Critic. We can see that backtracking model consistently beats PER and the gap increases for increasing dimension. Heatmaps(b,c) indicating the visitation count on various positions of the grid on trained policies for the 13-Dimensional environment. We can see that the Backtracking visits a lot more states that PER does. "
1873
+ ],
1874
+ "image_footnote": [],
1875
+ "bbox": [
1876
+ 173,
1877
+ 640,
1878
+ 807,
1879
+ 818
1880
+ ],
1881
+ "page_idx": 13
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "text": "U-MAZE NAVIGATION ",
1886
+ "text_level": 1,
1887
+ "bbox": [
1888
+ 174,
1889
+ 103,
1890
+ 331,
1891
+ 117
1892
+ ],
1893
+ "page_idx": 14
1894
+ },
1895
+ {
1896
+ "type": "text",
1897
+ "text": "An agent has to navigate within $\\epsilon -$ distance of the goal position at the end of a U-shaped maze. ",
1898
+ "bbox": [
1899
+ 173,
1900
+ 130,
1901
+ 800,
1902
+ 145
1903
+ ],
1904
+ "page_idx": 14
1905
+ },
1906
+ {
1907
+ "type": "text",
1908
+ "text": "For the Point Mass U-Maze navigation, we use high return trajectories for training the parameters of backtracking model (i.e those trajectories which reach sub-goals defined by Goal GAN). We sample a trajectory of length 20 from our backtracking model and the recall traces are used to improve the policy via imitation learning. ",
1909
+ "bbox": [
1910
+ 173,
1911
+ 151,
1912
+ 826,
1913
+ 207
1914
+ ],
1915
+ "page_idx": 14
1916
+ },
1917
+ {
1918
+ "type": "text",
1919
+ "text": "For the Ant U-Maze navigation, we train identically, only with length-50 traces. ",
1920
+ "bbox": [
1921
+ 171,
1922
+ 213,
1923
+ 696,
1924
+ 229
1925
+ ],
1926
+ "page_idx": 14
1927
+ },
1928
+ {
1929
+ "type": "image",
1930
+ "img_path": "images/b78722a6896dfa20ea01b2ca545cbafb94a59d0b9bc9dc0414d25015b12e58cb.jpg",
1931
+ "image_caption": [
1932
+ "Figure 11: Visualization of Goal GAN baseline (top row) versus backtracking model (bottom row) for different parts of the state space for the N-Dimensional Point Mass task. Red indicates complete success; blue indicates failure. Using the backtracking model achieves greater coverage rates for the same or fewer steps of training. "
1933
+ ],
1934
+ "image_footnote": [],
1935
+ "bbox": [
1936
+ 209,
1937
+ 244,
1938
+ 792,
1939
+ 497
1940
+ ],
1941
+ "page_idx": 14
1942
+ },
1943
+ {
1944
+ "type": "image",
1945
+ "img_path": "images/dec55ba58a5188d0926ed0268a0b778e4ed85cceb16cd4298443cfa9b51674e8.jpg",
1946
+ "image_caption": [
1947
+ "Figure 12: Visualization of Goal GAN baseline (top row) versus backtracking model (bottom row) policy performance for different parts of the state space for Ant Maze task. Red indicates complete success; blue indicates failure. Using the backtracking model achieves equal coverage rates in fewer steps of training. "
1948
+ ],
1949
+ "image_footnote": [],
1950
+ "bbox": [
1951
+ 217,
1952
+ 590,
1953
+ 789,
1954
+ 843
1955
+ ],
1956
+ "page_idx": 14
1957
+ },
1958
+ {
1959
+ "type": "image",
1960
+ "img_path": "images/db42253b4d38cc46437d958badf97da719ba6533e8fc315ec625bf1c70cf500f.jpg",
1961
+ "image_caption": [
1962
+ "Figure 13: Learning curves comparing the training efficiency of our method and the baseline for both the point mass as well as ant maze task. The y-axis indicates the average return over all goal positions in the maze, and the $\\mathbf { X }$ -axis corresponds to the number of iterations which are used for sampling goals. "
1963
+ ],
1964
+ "image_footnote": [],
1965
+ "bbox": [
1966
+ 186,
1967
+ 101,
1968
+ 828,
1969
+ 255
1970
+ ],
1971
+ "page_idx": 15
1972
+ },
1973
+ {
1974
+ "type": "text",
1975
+ "text": "E HYPERPARAMETERS ",
1976
+ "text_level": 1,
1977
+ "bbox": [
1978
+ 174,
1979
+ 347,
1980
+ 379,
1981
+ 363
1982
+ ],
1983
+ "page_idx": 15
1984
+ },
1985
+ {
1986
+ "type": "text",
1987
+ "text": "E.1 ON-POLICY. TRPO ",
1988
+ "text_level": 1,
1989
+ "bbox": [
1990
+ 174,
1991
+ 377,
1992
+ 352,
1993
+ 393
1994
+ ],
1995
+ "page_idx": 15
1996
+ },
1997
+ {
1998
+ "type": "text",
1999
+ "text": "For training the backtracking model, we used an explicit buffer to store states(state, action, nextstate, reward) which yields high rewards. Since, we don’t have an explicit value function, we use high reward states as a proxy for high value states. We tried training the backtracking model directly from the trajectories, but it was unstable, due to changing distributions of trajectories. ",
2000
+ "bbox": [
2001
+ 176,
2002
+ 404,
2003
+ 823,
2004
+ 460
2005
+ ],
2006
+ "page_idx": 15
2007
+ },
2008
+ {
2009
+ "type": "table",
2010
+ "img_path": "images/3e7185cfd375525323dc26c3a4401a72a3856d1dd0b80e6edecf25b7f2384e87.jpg",
2011
+ "table_caption": [
2012
+ "Table 1: On-Policy TRPO Hyper-params:- Length of the trajectory sampled from our backtracking model "
2013
+ ],
2014
+ "table_footnote": [],
2015
+ "table_body": "<table><tr><td>Agent</td><td>Length of trajectory Sampled from Backtracking model</td></tr><tr><td>Half-Cheetah</td><td>20</td></tr><tr><td>Walker</td><td>20</td></tr><tr><td>Hopper</td><td>10</td></tr><tr><td>Ant</td><td>50</td></tr></table>",
2016
+ "bbox": [
2017
+ 251,
2018
+ 473,
2019
+ 745,
2020
+ 549
2021
+ ],
2022
+ "page_idx": 15
2023
+ },
2024
+ {
2025
+ "type": "text",
2026
+ "text": "E.2 OFF-POLICY. SAC ",
2027
+ "text_level": 1,
2028
+ "bbox": [
2029
+ 174,
2030
+ 613,
2031
+ 346,
2032
+ 627
2033
+ ],
2034
+ "page_idx": 15
2035
+ },
2036
+ {
2037
+ "type": "text",
2038
+ "text": "For training the backtracking model, we used the high value states (under the current value function) from the buffer $\\boldsymbol { B }$ . We sample a batch of 20K high value tuples from the experience replay buffer. The length of trajectory sampled from backtracking model for each agent is shown in Table 1. ",
2039
+ "bbox": [
2040
+ 173,
2041
+ 638,
2042
+ 825,
2043
+ 681
2044
+ ],
2045
+ "page_idx": 15
2046
+ },
2047
+ {
2048
+ "type": "table",
2049
+ "img_path": "images/1862e2d543cda2e929415d4b5313d7508f8c85db7ba9d5d1fdde2add538a49db.jpg",
2050
+ "table_caption": [
2051
+ "The rest of the model hyperparameters are identical to those used in Soft Actor Critic Held et al. (2017). ",
2052
+ "Table 2: Off Policy SAC Hyperparams:- Length of the trajectory sampled from our backtracking model "
2053
+ ],
2054
+ "table_footnote": [],
2055
+ "table_body": "<table><tr><td>Agent</td><td>Length of trajectory Sampled from Backtracking model</td></tr><tr><td>Half-Cheetah</td><td>20</td></tr><tr><td>Walker</td><td>20</td></tr><tr><td>Hopper</td><td>20</td></tr><tr><td>Ant</td><td>50</td></tr><tr><td>Humanoid</td><td>50</td></tr></table>",
2056
+ "bbox": [
2057
+ 251,
2058
+ 728,
2059
+ 745,
2060
+ 819
2061
+ ],
2062
+ "page_idx": 15
2063
+ },
2064
+ {
2065
+ "type": "text",
2066
+ "text": "E.3 PRIORITIZED EXPERIENCE REPLAY ",
2067
+ "text_level": 1,
2068
+ "bbox": [
2069
+ 176,
2070
+ 882,
2071
+ 460,
2072
+ 897
2073
+ ],
2074
+ "page_idx": 15
2075
+ },
2076
+ {
2077
+ "type": "text",
2078
+ "text": "The Experience Replay Buffer capacity was fixed at $1 0 0 \\mathrm { k }$ . No entropy regularization was used. ",
2079
+ "bbox": [
2080
+ 173,
2081
+ 909,
2082
+ 795,
2083
+ 925
2084
+ ],
2085
+ "page_idx": 15
2086
+ },
2087
+ {
2088
+ "type": "table",
2089
+ "img_path": "images/7512e6f4cb1f5a5067cda7cb6f6b3bf9564b0cd280a417066212cd23a89cc62a.jpg",
2090
+ "table_caption": [
2091
+ "Table 3: Hyperparameters for the PER Implementation. "
2092
+ ],
2093
+ "table_footnote": [],
2094
+ "table_body": "<table><tr><td>Environment Size</td><td>Batch-size</td><td>Num. of Actor Critic steps per PER step</td><td>PER-α</td><td>PER β</td></tr><tr><td>11x11</td><td>200</td><td>3</td><td>0.8</td><td>0.1</td></tr><tr><td>13x13</td><td>2000</td><td>3</td><td>0.8</td><td>0.1</td></tr><tr><td>15x15</td><td>1000</td><td>3</td><td>0.95</td><td>0.1</td></tr></table>",
2095
+ "bbox": [
2096
+ 176,
2097
+ 101,
2098
+ 823,
2099
+ 160
2100
+ ],
2101
+ "page_idx": 16
2102
+ },
2103
+ {
2104
+ "type": "text",
2105
+ "text": "F RANDOM SEARCH WITH BACKWARD MODEL ",
2106
+ "text_level": 1,
2107
+ "bbox": [
2108
+ 173,
2109
+ 219,
2110
+ 580,
2111
+ 236
2112
+ ],
2113
+ "page_idx": 16
2114
+ },
2115
+ {
2116
+ "type": "text",
2117
+ "text": "We test the performance of backtracking model when it is not learned i.e the backtracking model is a random model, in the Four Room Environment. In this experiment, we compare the scenario when the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ is learned and when it is random. Since in the Four Room Environment, we have access to the true backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ we use that for this experiment. The comparison is shown in the figure 14. It is clear from the figure that it is helpful to learn the backward action predictor $Q \\big ( a _ { t } | s _ { t + 1 } \\big )$ . ",
2118
+ "bbox": [
2119
+ 173,
2120
+ 256,
2121
+ 826,
2122
+ 342
2123
+ ],
2124
+ "page_idx": 16
2125
+ },
2126
+ {
2127
+ "type": "image",
2128
+ "img_path": "images/ea74d0cb96855ca9c9b6544c67337796f29b048aa68dd758dab9878dbe77ce83.jpg",
2129
+ "image_caption": [
2130
+ "Figure 14: Training curves from the Four Room Environment for the Actor-Critic baseline (blue), the backtracking model augmented Actor-Critic (red), and the random search (blue). "
2131
+ ],
2132
+ "image_footnote": [],
2133
+ "bbox": [
2134
+ 336,
2135
+ 363,
2136
+ 707,
2137
+ 529
2138
+ ],
2139
+ "page_idx": 16
2140
+ },
2141
+ {
2142
+ "type": "text",
2143
+ "text": "Figure 15 shows the same comparison for Ant-v1, and Walker2d-v1 where the baseline is Soft Actor Critic (SAC). For our baseline i.e the scenario when backtracking model is not learned, we experimented with all the lengths 1,2,3,4,5, 10 and we choose the best one as our baseline. As you can see in the Figure 15, backtracking model performs best as compared to SAC baseline as well as to the scenario when backtracking model is not trained. Hence proving that backtracking model is not just doing random search. ",
2144
+ "bbox": [
2145
+ 173,
2146
+ 592,
2147
+ 825,
2148
+ 676
2149
+ ],
2150
+ "page_idx": 16
2151
+ },
2152
+ {
2153
+ "type": "image",
2154
+ "img_path": "images/b42b9d4ddaf88f8a8435604795ff5967eabae29950911b090243a97fe8efd84b.jpg",
2155
+ "image_caption": [
2156
+ "Figure 15: Training curves for the Walker2d and Ant agent. Comparing when the backtracking model is learned v/s when it’s not learned. "
2157
+ ],
2158
+ "image_footnote": [],
2159
+ "bbox": [
2160
+ 197,
2161
+ 698,
2162
+ 807,
2163
+ 863
2164
+ ],
2165
+ "page_idx": 16
2166
+ },
2167
+ {
2168
+ "type": "text",
2169
+ "text": "G COMPARISON TO MODEL BASED RL ",
2170
+ "text_level": 1,
2171
+ "bbox": [
2172
+ 174,
2173
+ 102,
2174
+ 513,
2175
+ 118
2176
+ ],
2177
+ "page_idx": 17
2178
+ },
2179
+ {
2180
+ "type": "text",
2181
+ "text": "Dyna algorithm uses a forward model to generate simulated experience that could be included in a model-free algorithm. This method can be used to work with deep neural network policies, but performed best with models which are not neural networks (Gu et al., 2016a). Our intuition says that it might be better to generate simulated experience from backtracking model (starting from a high value state) as compared to forward model, just because we know that traces from backtracking model are good, as they lead to high value state, which is not really the case for the simulated experience from a forward model. In Fig 16, we evaluate the Forward model with On-Policy TRPO on Ant and Humanoid Mujoco tasks. We were not able to get any better results on with forward model as compared to the Baseline TRPO, which is consistent with the findings from (Gu et al., 2016a). ",
2182
+ "bbox": [
2183
+ 173,
2184
+ 136,
2185
+ 825,
2186
+ 275
2187
+ ],
2188
+ "page_idx": 17
2189
+ },
2190
+ {
2191
+ "type": "image",
2192
+ "img_path": "images/057d6cc25fd96ff975e278b44720002a6806ad6662bb9a5cf89bbf2e64ee1e12.jpg",
2193
+ "image_caption": [
2194
+ "Figure 16: Forward Model compared with Baseline TRPO. We can clearly see that on Ant and Humanoid Mujoco tasks using a forward Model-based approach doesn’t help. "
2195
+ ],
2196
+ "image_footnote": [],
2197
+ "bbox": [
2198
+ 176,
2199
+ 292,
2200
+ 821,
2201
+ 402
2202
+ ],
2203
+ "page_idx": 17
2204
+ },
2205
+ {
2206
+ "type": "text",
2207
+ "text": "Building the backward model is necessarily neither harder nor easier. Realistically, building any kind of model and having it be accurate for more than, say, 10 time steps is pretty hard. But if we only have 10 time steps of accurate transitions, it is probably better to take them backward model from different states as compared to from forward model from the same initial state. (as corroborated by our experiments). ",
2208
+ "bbox": [
2209
+ 174,
2210
+ 463,
2211
+ 823,
2212
+ 532
2213
+ ],
2214
+ "page_idx": 17
2215
+ },
2216
+ {
2217
+ "type": "text",
2218
+ "text": "Something which remains as a part of future investigation is to train the forward model and backtracking model jointly. As backtracking model is tied to high value state, the forward model could extract the goal value from the high value state. When trained jointly, this should help the forward model learn some reduced representation of the state that is necessary to evaluate the reward. Ultimately, when planning, we want the model to predict the goal accurately, which helps to optimize for this ”goal-oriented” behaviour directly. This also avoids the need to model irrelevant aspects of the environment. ",
2219
+ "bbox": [
2220
+ 174,
2221
+ 540,
2222
+ 825,
2223
+ 637
2224
+ ],
2225
+ "page_idx": 17
2226
+ },
2227
+ {
2228
+ "type": "text",
2229
+ "text": "H LEARNING THE TRUE ENVIRONMENT VS LEARNING FROM RECALL TRACES ",
2230
+ "text_level": 1,
2231
+ "bbox": [
2232
+ 176,
2233
+ 662,
2234
+ 769,
2235
+ 695
2236
+ ],
2237
+ "page_idx": 17
2238
+ },
2239
+ {
2240
+ "type": "text",
2241
+ "text": "Here, we show the results of various ablations in the four-room environment which highlight the effect various hyperparameters have on performance. ",
2242
+ "bbox": [
2243
+ 174,
2244
+ 714,
2245
+ 823,
2246
+ 742
2247
+ ],
2248
+ "page_idx": 17
2249
+ },
2250
+ {
2251
+ "type": "text",
2252
+ "text": "In Fig 17 we train on the recall traces after a fixed number of iterations of learning in the true environment. For all of the environments, as we increase the ratio of updates in the true environment to updates using recall traces from backward model, the performance decreases significantly. This again highlights the advantages of learning from recall traces. ",
2253
+ "bbox": [
2254
+ 174,
2255
+ 750,
2256
+ 825,
2257
+ 805
2258
+ ],
2259
+ "page_idx": 17
2260
+ },
2261
+ {
2262
+ "type": "text",
2263
+ "text": "In Fig. 18, we see the effects of training from the recall traces multiple times for every iteration of training in the true environment. We can see that as we increase the number of iteration of learning from recall traces, we correspondingly need to choose smaller trace length. For each update in the real environment, making more number of updates helps if the trace length is smaller, and if the trace length is larger, it has a detrimental effect on the learning process as is seen in 18. Also as observed in the cases of $1 2 \\mathrm { x } 1 2$ and 14x14 environment, it may happen that for an increased ratio of learning from recall traces and high trace length, the model achieves the maximum reward initially but after sometime the average reward plummets. ",
2264
+ "bbox": [
2265
+ 174,
2266
+ 811,
2267
+ 825,
2268
+ 924
2269
+ ],
2270
+ "page_idx": 17
2271
+ },
2272
+ {
2273
+ "type": "image",
2274
+ "img_path": "images/1516aac4eb9b061f278485bc1bafd0f9a7a37c4fda916c3b354950ec349bfe32.jpg",
2275
+ "image_caption": [
2276
+ "Figure 17: Legend indicates the ratio of updates in the true environment to updates using recall traces. Here we learn more in the true environment than using traces. We can see that not learning regularly from recall traces gives decreased performance. "
2277
+ ],
2278
+ "image_footnote": [],
2279
+ "bbox": [
2280
+ 200,
2281
+ 101,
2282
+ 805,
2283
+ 388
2284
+ ],
2285
+ "page_idx": 18
2286
+ },
2287
+ {
2288
+ "type": "image",
2289
+ "img_path": "images/a49e244caa64990da77e888e6cd6b2fc5f5e7dcfe914b3c148d3fe9c74da71ba.jpg",
2290
+ "image_caption": [
2291
+ "Figure 18: Legend indicates the ratio of updates in the true environment to updates using recall traces with the trajectory length of traces in parenthesis. Here we learn more using recall traces than actual environment. This tells that more updates using recall traces helps if we have a correspondingly lower trajectory length "
2292
+ ],
2293
+ "image_footnote": [],
2294
+ "bbox": [
2295
+ 196,
2296
+ 457,
2297
+ 805,
2298
+ 746
2299
+ ],
2300
+ "page_idx": 18
2301
+ },
2302
+ {
2303
+ "type": "text",
2304
+ "text": "OFF POLICY CASE FOR MUJOCO ",
2305
+ "text_level": 1,
2306
+ "bbox": [
2307
+ 176,
2308
+ 842,
2309
+ 406,
2310
+ 856
2311
+ ],
2312
+ "page_idx": 18
2313
+ },
2314
+ {
2315
+ "type": "text",
2316
+ "text": "We investigate the effect of doing more updates from the generated recall traces on some Mujoco tasks using Off-Policy SAC. As can be seen from 19, we find that using more traces helps and that for an increased number of updates we need to correspondingly shorten the trajectory length of the sampled traces. ",
2317
+ "bbox": [
2318
+ 174,
2319
+ 867,
2320
+ 825,
2321
+ 924
2322
+ ],
2323
+ "page_idx": 18
2324
+ },
2325
+ {
2326
+ "type": "image",
2327
+ "img_path": "images/11a11f30b732120634bc0a832b845bd06da09fd7d44a5b1864ad8e5bb983ee0d.jpg",
2328
+ "image_caption": [
2329
+ "Figure 19: Legend indicates the number of updates from recall traces(per 5 updates of SAC) with the trajectory length in parentheses. In both the environments doing 10 or 20 updates is better than 5 updates. Also for 20 updates we need to choose a smaller trajectory of length 10 as compared to length 20 for 10(and 5) updates. "
2330
+ ],
2331
+ "image_footnote": [],
2332
+ "bbox": [
2333
+ 196,
2334
+ 101,
2335
+ 807,
2336
+ 244
2337
+ ],
2338
+ "page_idx": 19
2339
+ },
2340
+ {
2341
+ "type": "text",
2342
+ "text": "These experiments show that there is a balance between how much we should train in the actual environment and how much we should learn from the traces generated from the backward model. In the smaller four room-environment, 1:1 balance performed the best. In Mujoco tasks and larger four room environments, doing more updates from the backward model helps, but in the smaller four room maze, doing more updates is detrimental. So depending upon the complexity of the task, we need to decide this ratio. ",
2343
+ "bbox": [
2344
+ 173,
2345
+ 340,
2346
+ 825,
2347
+ 424
2348
+ ],
2349
+ "page_idx": 19
2350
+ }
2351
+ ]
parse/train/HygsfnR9Ym/HygsfnR9Ym_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkhU2fcll/SkhU2fcll.md ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEP MULTI-TASK REPRESENTATION LEARNING: A TENSOR FACTORISATION APPROACH
2
+
3
+ Yongxin Yang, Timothy M. Hospedales Queen Mary, University of London {yongxin.yang, t.hospedales}@qmul.ac.uk
4
+
5
+ # ABSTRACT
6
+
7
+ Most contemporary multi-task learning methods assume linear models. This setting is considered shallow in the era of deep learning. In this paper, we present a new deep multi-task representation learning framework that learns cross-task sharing structure at every layer in a deep network. Our approach is based on generalising the matrix factorisation techniques explicitly or implicitly used by many conventional MTL algorithms to tensor factorisation, to realise automatic learning of end-to-end knowledge sharing in deep networks. This is in contrast to existing deep learning approaches that need a user-defined multi-task sharing strategy. Our approach applies to both homogeneous and heterogeneous MTL. Experiments demonstrate the efficacy of our deep multi-task representation learning in terms of both higher accuracy and fewer design choices.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The paradigm of multi-task learning is to learn multiple related tasks simultaneously so that knowledge obtained from each task can be re-used by the others. Early work in this area focused on neural network models (Caruana, 1997), while more recent methods have shifted focus to kernel methods, sparsity and low-dimensional task representations of linear models (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012). Nevertheless given the impressive practical efficacy ´ of contemporary deep neural networks (DNN)s in many important applications, we are motivated to revisit MTL from a deep learning perspective.
12
+
13
+ While the machine learning community has focused on MTL for shallow linear models recently, applications have continued to exploit neural network MTL (Zhang et al., 2014; Liu et al., 2015). The typical design pattern dates back at least 20 years (Caruana, 1997): define a DNN with shared lower representation layers, which then forks into separate layers and losses for each task. The sharing structure is defined manually: full-sharing up to the fork, and full separation after the fork. However this complicates DNN architecture design because the user must specify the sharing structure: How many task specific layers? How many task independent layers? How to structure sharing if there are many tasks of varying relatedness?
14
+
15
+ In this paper we present a method for end-to-end multi-task learning in DNNs. This contribution can be seen as generalising shallow MTL methods (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012) to learning how to share ´ at every layer of a deep network; or as learning the sharing structure for deep MTL (Caruana, 1997; Zhang et al., 2014; Spieckermann et al., 2014; Liu et al., 2015) which currently must be defined manually on a problem-by-problem basis.
16
+
17
+ Before proceeding it is worth explicitly distinguishing some different problem settings, which have all been loosely referred to as MTL in the literature. Homogeneous MTL: Each task corresponds to a single output. For example, MNIST digit recognition is commonly used to evaluate MTL algorithms by casting it as 10 binary classification tasks (Kumar & Daume III, 2012). ´ Heterogeneous MTL: Each task corresponds to a unique set of output(s) (Zhang et al., 2014). For example, one may want simultaneously predict a person’s age (task one: multi-class classification or regression) as well as identify their gender (task two: binary classification) from a face image.
18
+
19
+ In this paper, we propose a multi-task learning method that works on all these settings. The key idea is to use tensor factorisation to divide each set of model parameters (i.e., both FC weight matrices, and convolutional kernel tensors) into shared and task-specific parts. It is a natural generalisation of shallow MTL methods that explicitly or implicitly are based on matrix factorisation (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Daum ´ e III, 2007). As linear methods, ´ these typically require pre-engineered features. In contrast, as a deep network, our generalisation can learn directly from raw image data, determining sharing structure in a layer-wise fashion. For the simplest NN architecture – no hidden layer, single output – our method reduces to matrix-based ones, therefore matrix-based methods including (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Daum ´ e III, 2007) are special cases of ours. ´
20
+
21
+ # 2 RELATED WORK
22
+
23
+ Multi-Task Learning Most contemporary MTL algorithms assume that the input and model are both $D$ -dimensional vectors. The models of $T$ tasks can then be stacked into a $D \times T$ sized matrix $W$ . Despite different motivations and implementations, many matrix-based MTL methods work by placing constrains on $W$ . For example, posing an $\ell _ { 2 , 1 }$ norm on $W$ to encourage low-rank $W$ (Argyriou et al., 2008). Similarly, (Kumar & Daume III, 2012) factorises ´ $W$ as $W = L S$ , i.e., it assigns a lower rank as a hyper-parameter. An earlier work (Evgeniou & Pontil, 2004) proposes that the linear model for each task $t$ can be written as $w _ { t } = \hat { w } _ { t } + \hat { w } _ { 0 }$ . This is the factorisation $L = [ \hat { w } _ { 0 } , \hat { w } _ { 1 } , \dots , \hat { w } _ { T } ]$ and ${ \cal S } = [ { \bf 1 } _ { 1 \times T } ; { \bf I } _ { T } ]$ . In fact, such matrix factorisation encompasses many MTL methods. E.g., (Xue et al., 2007) assumes $S _ { \cdot , i }$ (the ith column of $S$ ) is a unit vector generated by a Dirichlet Process and (Passos et al., 2012) models $W$ using linear factor analysis with Indian Buffet Process (Griffiths & Ghahramani, 2011) prior on $S$ .
24
+
25
+ Tensor Factorisation In deep learning, tensor factorisation has been used to exploit factorised tensors’ fewer parameters than the original (e.g., 4-way convolutional kernel) tensor, and thus compress and/or speed up the model, e.g., (Lebedev et al., 2015; Novikov et al., 2015). For shallow linear MTL, tensor factorisation has been used to address problems where tasks are described by multiple independent factors rather than merely indexed by a single factor (Yang & Hospedales, 2015). Here the $D$ -dimensional linear models for all unique tasks stack into a tensor $\mathcal { W }$ , of e.g. $D \times T _ { 1 } \times T _ { 2 }$ in the case of two task factors. Knowledge sharing is then achieved by imposing tensor norms on $\mathcal { W }$ (Romera-paredes et al., 2013; Wimalawarne et al., 2014). Our framework factors tensors for the different reason that for DNN models, parameters include convolutional kernels ( $N$ -way tensors) or $D _ { 1 } \times D _ { 2 }$ FC layer weight matrices (2-way tensors). Stacking up these parameters for many tasks results in $D _ { 1 } \times \cdots \times D _ { N } \times T$ tensors within which we share knowledge through factorisation.
26
+
27
+ Heterogeneous MTL and DNNs Some studies consider heterogeneous MTL, where tasks may have different numbers of outputs (Caruana, 1997). This differs from the previously discussed studies (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Bonilla et al., 2007; Jacob et al., 2009; Kumar & Daume III, 2012; Romera-paredes et al., 2013; Wimalawarne et al., 2014) which implicitly as- ´ sume that each task has a single output. Heterogeneous MTL typically uses neural networks with multiple sets of outputs and losses. E.g., Huang et al. (2013) proposes a shared-hidden-layer DNN model for multilingual speech processing, where each task corresponds to an individual language. Zhang et al. (2014) uses a DNN to find facial landmarks (regression) as well as recognise facial attributes (classification); while Liu et al. (2015) proposes a DNN for query classification and information retrieval (ranking for web search). A key commonality of these studies is that they all require a user-defined parameter sharing strategy. A typical design pattern is to use shared layers (same parameters) for lower layers of the DNN and then split (independent parameters) for the top layers. However, there is no systematic way to make such design choices, so researchers usually rely on trial-and-error, further complicating the already somewhat dark art of DNN design. In contrast, our method learns where and how much to share representation parameters across the tasks, hence significantly reducing the space of DNN design choices.
28
+
29
+ Parametrised DNNs Our MTL approach is a parameterised DNN (Sigaud et al., 2015), in that DNN weights are dynamically generated given some side information – in the case of MTL, given the task identity. In a related example of speaker-adaptive speech recognition (Tan et al., 2016) there may be several clusters in the data (e.g., gender, acoustic conditions), and each speaker’s model could be a linweight matrix mbination oas a sum of h e latent taase models cluste, i.e., each speaker . The differe $i$ ’se $W ^ { ( i ) }$ $K$ $\tilde { W }$ $\begin{array} { r } { W ^ { ( i ) } = \sum _ { k = 1 } ^ { K } \lambda _ { p } ^ { ( i ) } \tilde { W } ^ { ( p ) } } \end{array}$ between speakers/tasks comes from $\lambda$ and the base models are shared. An advantage of this is that, when new data come, one can choose to re-train $\lambda$ parameters only, and keep $\tilde { W }$ fixed. This will significantly reduce the number of parameters to learn, and consequently the required training data. Beyond this, Yang & Hospedales (2015) show that it is possible to train another neural network to predict those $\lambda$ values from some abstract metadata. Thus a model for an unseen task can be generated on-the-fly with no training instances given an abstract description of the task. The techniques developed here are compatible with both these ideas of generating models with minimal or no effort.
30
+
31
+ # 3 METHODOLOGY
32
+
33
+ # 3.1 PRELIMINARIES
34
+
35
+ We first recap some tensor factorisation basics before explaining how to factorise DNN weight tensors for multi-task representation learning. An $N$ -way tensor $\mathcal { W }$ with shape $D _ { 1 } \times D _ { 2 } \times \cdot \cdot \cdot D _ { N }$ is an $N$ -dimensional array containing $\textstyle \prod _ { n = 1 } ^ { N } D _ { n }$ elements. Scalars, vectors, and matrices can be seen as $0 , 1$ , and 2-way tensors respectively, although the term tensor is usually used for 3-way or higher. A mode- $\boldsymbol { n }$ fibre of $\mathcal { W }$ is a $D _ { n }$ -dimensional vector obtained by fixing all but the nth index. The mode- $\boldsymbol { n }$ flattening $W _ { ( n ) }$ of $\mathcal { W }$ is the matrix of size $\begin{array} { r } { D _ { n } \times \prod _ { i = n } D _ { i } } \end{array}$ constructed by concatenating all of the $\Pi _ { i \lnot n } D _ { i }$ mode- $\mathbf { \nabla } \cdot n$ fibres along columns.
36
+
37
+ The dot product of two tensors is a natural extension of matrix dot product, e.g., if we have a tensor $\mathcal { A }$ of size $M _ { 1 } \times M _ { 2 } \times \cdot \cdot \cdot P$ and a tensor $\boldsymbol { B }$ of size $P \times N _ { 1 } \times N _ { 2 } \dots$ , the tensor dot product $\mathcal { A } \bullet \mathcal { B }$ will be a tensor of size $M _ { 1 } \times M _ { 2 } \times \cdots N _ { 1 } \times N _ { 2 } \cdot \cdot \cdot$ by matrix dot product $A _ { ( - 1 ) } ^ { T } B _ { ( 1 ) }$ and reshaping1. More generally, tensor dot product can be performed along specified axes, $\mathcal { A } \bullet _ { ( i , j ) } \mathcal { B } = A _ { ( i ) } ^ { T } B _ { ( j ) }$ and reshaping. Here the subscripts indicate the axes of $\mathcal { A }$ and $\boldsymbol { B }$ at which dot product is performed. E.g., when $\mathcal { A }$ is of size $M _ { 1 } \times P \times M _ { 3 } \times \cdot \cdot \cdot M _ { I }$ and $\boldsymbol { B }$ is of size $N _ { 1 } \times N _ { 2 } \times P \times \cdot \cdot \cdot N _ { J }$ , then $\mathbf { \mathcal { A } } \bullet _ { ( 2 , 3 ) } B$ is a tensor of size $M _ { 1 } \times M _ { 3 } \times \cdots M _ { I } \times N _ { 1 } \times N _ { 2 } \times \cdots N _ { J }$ .
38
+
39
+ Matrix-based Knowledge Sharing Assume we have $T$ linear models (tasks) parametrised by $D$ - dimensional weight vectors, so the collection of all models forms a size $D \times T$ matrix $W$ . One commonly used MTL approach (Kumar & Daume III, 2012) is to place a structure constraint on ´ $W$ , e.g., $W = L S$ , where $L$ is a $D \times K$ matrix and $S$ is a $K \times T$ matrix. This factorisation recovers a shared factor $L$ and a task-specific factor $S$ . One can see the columns of $L$ as latent basis tasks, and the model $w ^ { ( i ) }$ for the $i$ th task is the linear combination of those latent basis tasks with task-specific information $S _ { \cdot , i }$ .
40
+
41
+ $$
42
+ w ^ { ( i ) } : = W _ { \cdot , i } = L S _ { \cdot , i } = \sum _ { k = 1 } ^ { K } L _ { \cdot , k } S _ { k , i }
43
+ $$
44
+
45
+ From Single to Multiple Outputs Consider extending this matrix factorisation approach to the case of multiple outputs. The model for each task is then a $D _ { 1 } \times D _ { 2 }$ matrix, for $D _ { 1 }$ input and $D _ { 2 }$ output dimensions. The collection of all those matrices constructs a $D _ { 1 } \times D _ { 2 } \times T$ tensor. A straightforward extension of Eq. 1 to this case is
46
+
47
+ $$
48
+ W ^ { ( i ) } : = \mathcal { W } _ { \cdot , \cdot , i } = \sum _ { k = 1 } ^ { K } \mathcal { L } _ { \cdot , \cdot , k } S _ { k , i }
49
+ $$
50
+
51
+ This is equivalent to imposing the same structural constraint on $W _ { ( 3 ) } ^ { T }$ (transposed mode-3 flattening of $\mathcal { W }$ ). It is important to note that this allows knowledge sharing across the tasks only. I.e., knowledge sharing is only across-tasks not across dimensions within a task. However it may be that the knowledge learned in the mapping to one output dimension may be useful to the others within one task. E.g., consider recognising photos of handwritten and print digits – it may be useful to share across handwritten-print; as well as across different digits within each. In order to support general knowledge sharing across both tasks and outputs within tasks, we propose to use more general tensor factorisation techniques. Unlike for matrices, there are multiple definitions of tensor factorisation, and we use Tucker (Tucker, 1966) and Tensor Train (TT) (Oseledets, 2011) decompositions.
52
+
53
+ # 3.2 TENSOR FACTORISATION FOR KNOWLEDGE SHARING
54
+
55
+ Tucker Decomposition Given an $N$ -way tensor of size $D _ { 1 } \times D _ { 2 } \cdot \cdot \cdot \times D _ { N }$ , Tucker decomposition outputs a core tensor $s$ of size $K _ { 1 } \times K _ { 2 } \cdot \cdot \cdot \times K _ { N }$ , and $N$ matrices $U ^ { ( n ) }$ of size $D _ { n } \times K _ { n }$ , such that,
56
+
57
+ $$
58
+ \begin{array} { r c l } { { \mathcal { W } _ { d _ { 1 } , d _ { 2 } , \dots , d _ { N } } } } & { { = } } & { { \displaystyle \sum _ { k _ { 1 } = 1 } ^ { K _ { 1 } } \sum _ { k _ { 2 } = 1 } ^ { K _ { 2 } } \cdots \sum _ { k _ { N } = 1 } ^ { K _ { N } } S _ { k _ { 1 } , k _ { 2 } , \dots , k _ { N } } U _ { d _ { 1 } , k _ { 1 } } ^ { ( 1 ) } U _ { d _ { 2 } , k _ { 2 } } ^ { ( 2 ) } \cdots U _ { d _ { N } , k _ { N } } ^ { ( N ) } } } \\ { { \mathcal { W } } } & { { = } } & { { \displaystyle \mathcal { S } \bullet _ { ( _ { 1 , 2 } ) } U ^ { ( 1 ) } \bullet _ { ( _ { 1 , 2 } ) } U ^ { ( 2 ) } \cdots \bullet _ { ( _ { 1 , 2 } ) } U ^ { ( N ) } } } \end{array}
59
+ $$
60
+
61
+ Tucker decomposition is usually implemented by an alternating least squares (ALS) method (Kolda & Bader, 2009). However (Lathauwer et al., 2000) treat it as a higher-order singular value decomposition (HOSVD), which is more efficient to solve: $U ^ { ( n ) }$ is exactly the $U$ matrix from the SVD of mode- $n$ flattening $W _ { ( n ) }$ of $\mathcal { W }$ , and the core tensor $s$ is obtained by,
62
+
63
+ $$
64
+ \begin{array} { r } { \pmb { \mathscr { S } } = \mathscr { W } \bullet _ { ( 1 , 1 ) } \boldsymbol { U } ^ { ( 1 ) } \bullet _ { ( 1 , 1 ) } \boldsymbol { U } ^ { ( 2 ) } \cdots \bullet _ { ( 1 , 1 ) } \boldsymbol { U } ^ { ( N ) } } \end{array}
65
+ $$
66
+
67
+ Tensor Train Decomposition Tensor Train (TT) Decomposition outputs 2 matrices $U ^ { ( 1 ) }$ and $U ^ { ( N ) }$ of size $D _ { 1 } \times K _ { 1 }$ and $K _ { N - 1 } \times D _ { N }$ respectively, and $( N - 2 )$ 3-way tensors $\mathcal { U } ^ { ( n ) }$ of size $K _ { n - 1 } \times D _ { n } \times K _ { n }$ . The elements of $\mathcal { W }$ can be computed by,
68
+
69
+ $$
70
+ \begin{array} { l c l } { { \displaystyle \mathcal { W } _ { d _ { 1 } , d _ { 2 } , \dots , d _ { N } } } } & { { = } } & { { \displaystyle \sum _ { k _ { 1 } = 1 } ^ { K _ { 1 } } \sum _ { k _ { 2 } = 1 } ^ { K _ { 2 } } \cdots \sum _ { k _ { N - 1 } = 1 } ^ { K _ { N - 1 } } U _ { d _ { 1 } , k _ { 1 } } ^ { ( 1 ) } \mathcal { U } _ { k _ { 1 } , d _ { 2 } , k _ { 2 } } ^ { ( 2 ) } \mathcal { U } _ { k _ { 2 } , d _ { 3 } , k _ { 3 } } ^ { ( 3 ) } \cdots U _ { k _ { N - 1 } , d _ { N } } ^ { ( N ) } } } \\ { { } } & { { = } } & { { \displaystyle U _ { d _ { 1 } , l } ^ { ( 1 ) } \mathcal { U } _ { , d _ { 2 } , l } ^ { ( 2 ) } \mathcal { U } _ { , d _ { 3 } , \cdot } ^ { ( 3 ) } \cdots U _ { \cdot , d _ { N } } ^ { ( d ) } } } \\ { { \displaystyle \mathcal { W } } } & { { = } } & { { \displaystyle U ^ { ( 1 ) } \bullet \mathcal { U } ^ { ( 2 ) } \cdot \cdots \bullet U ^ { ( N ) } } } \end{array}
71
+ $$
72
+
73
+ where U (n)·,d ,· is a matrix of size $K _ { n - 1 } \times K _ { n }$ sliced from $\mathcal { U } ^ { ( n ) }$ with the second axis fixed at $d _ { n }$ . The TT decomposition is typically realised with a recursive SVD-based solution (Oseledets, 2011).
74
+
75
+ Knowledge Sharing If the final axis of the input tensor above indexes tasks, i.e. if $D _ { N } = T$ then the last factor $U ^ { ( N ) }$ in both decompositions encodes a matrix of task specific knowledge, and the other factors encode shared knowledge.
76
+
77
+ # 3.3 DEEP MULTI-TASK REPRESENTATION LEARNING
78
+
79
+ To realise deep multi-task representation learning (DMTRL), we learn one DNN per-task each with the same architecture2. However each corresponding layer’s weights are generated with one of the knowledge sharing structures in Eq. 2, Eq. 4 or Eq. 8. It is important to note that we apply these ‘right-to-left’ in order to generate weight tensors with the specified sharing structure, rather than actually applying Tucker or TT to decompose an input tensor. In the forward pass, we synthesise weight tensors $\mathcal { W }$ and perform inference as usual, so the method can be thought of as tensor composition rather than decomposition.
80
+
81
+ Our weight generation (construct tensors from smaller pieces) does not introduce non-differentiable terms, so our deep multi-task representation learner is trainable via standard backpropagation. Specifically, in the backward pass over FC layers, rather than directly learning the 3-way tensor $\mathcal { W }$ , our methods learn either $\{ S , U _ { 1 } , U _ { 2 } , U _ { 3 } \}$ (DMTRL-Tucker, Eq. 4), $\{ U _ { 1 } , \mathcal { U } _ { 2 } , U _ { 3 } \}$ (DMTRL-TT, Eq. 8), or in the simplest case $\{ \mathcal { L } , S \}$ (DMTRL- $\mathrm { . L A F ^ { 3 } }$ , Eq. 2). Besides FC layers, contemporary
82
+
83
+ ![](images/bbff1fe62fcb72612a1068843c26d12df81ac25b5a13fefd9886eeb50c6f4718.jpg)
84
+ Figure 1: Illustrative example with two tasks corresponding to two neural networks in homogeneous (single output) and heterogeneous (different output dimension) cases. Weight layers grouped by solid rectangles are tied across networks. Weight layers grouped by dashed rectangles are softly shared across networks with our method. Ungrouped weights are independent.
85
+ Homogeneous MTL Shallow: Left is STL (two independent networks); right is MTL. In the case of vector input and no hidden layer, our method is equivalent to conventional matrix-based MTL methods. Homogeneous MTL Deep: STL (Left) is independent networks. User-defined-MTL (UDMTL) selects layers to share/separate. Our DMTRL learns sharing at every layer. Heterogeneous MTL: UD-MTL selects layers to share/separate. DMTRL learns sharing at every shareable layer.
86
+
87
+ DNN designs often exploit convolutional layers. Those layers usually contain kernel filter parameters that are 3-way tensors of size $H \times W \times C$ , (where $H$ is height, $W$ is width, and $C$ is the number of input channels) or 4-way tensors of size $H \times W \times C \times M$ , where $M$ is the number of filters in this layer (i.e., the number of output channels). The proposed methods naturally extend to convolution layers as convolution just adds more axes on the left-hand side. E.g., the collection of parameters from a given convolutional layer of $T$ neural networks forms a tensor of shape $H \times W \times C \times M \times T$ .
88
+
89
+ These knowledge sharing strategies provide a way to softly share parameters across the corresponding layers of each task’s DNN: where, what, and how much to share are learned from data. This is in contrast to the conventional Deep-MTL approach of manually selecting a set of layers to undergo hard parameter sharing: by tying weights so each task uses exactly the same weight matrix/tensor for the corresponding layer (Zhang et al., 2014; Liu et al., 2015); and a set of layers to be completely separate: by using independent weight matrices/tensors. In contrast our approach benefits from: (i) automatically learning this sharing structure from data rather than requiring user trial and error, and (ii) smoothly interpolating between fully shared and fully segregated layers, rather than a hard switching between these states. An illustration of the proposed framework for different problem settings can be found in Fig. 1.
90
+
91
+ # 4 EXPERIMENTS
92
+
93
+ Implementation Details Our method is implemented with TensorFlow (Abadi et al., 2015). The code is released on $\mathrm { G i t H u b ^ { 4 } }$ . For DMTRL-Tucker, DMTRL-TT, and DMTRL-LAF, we need to assign the rank of each weight tensor. The DNN architecture itself may be complicated and so can benefit from different ranks at different layers, but grid-search is impractical. However, since both Tucker and TT decomposition methods have SVD-based solutions, and vanilla SVD is directly applicable to DMTRL-LAF, we can initialise the model and set the ranks as follows: First train the DNNs independently in single task learning mode. Then pack the layer-wise parameters as the input for tensor decomposition. When SVD is applied, set a threshold for relative error so SVD will pick the appropriate rank. Thus our method needs only a single hyper parameter of max reconstruction error (we set to $\epsilon = 1 0 \%$ throughout) that indirectly specifies the ranks of every layer. Note that training from random initialisation also works, but the STL-based initialisation makes rank selection easy and transparent. Nevertheless, like (Kumar & Daume III, 2012) the framework is not sensitive ´ to rank choice so long as they are big enough. If random initialisation is desired to eliminate the pre-training requirement, good practice is to initialise parameter tensors by a suitable random weight distribution first, then do decomposition, and use the decomposed values for initialising the factors (the real learnable parameters in our framework). In this way, the resulting re-composed tensors will have approximately the intended distribution. Our sharing is applied to weight parameters only, bias terms are not shared. Apart from initialisation, decomposition is not used anywhere.
94
+
95
+ # 4.1 HOMOGENEOUS MTL
96
+
97
+ Dataset, Settings and Baselines We use MNIST handwritten digits. The task is to recognise digit images zero to nine. When this dataset is used for the evaluation of MTL methods, ten 1-vs-all binary classification problems usually define ten tasks (Kumar & Daume III, 2012). The dataset has ´ a given train (60,000 images) and test (10,000 images) split. Each instance is a monochrome image of size $2 8 \times 2 8 \times 1$ .
98
+
99
+ We use a modified LeNet (LeCun et al., 1998) as the CNN architecture. The first convolutional layer has 32 filters of size $5 \times 5$ , followed by $2 \times 2$ max pooling. The second convolutional layer has 64 filters of size $4 \times 4$ , and again a $2 \times 2$ max pooling. After these two convolutional layers, two fully connected layers with 512 and 1 output(s) are placed sequentially. The convolutional and first FC layer use RELU $f ( x ) = \operatorname* { m a x } ( x , 0 )$ activation function. We use hinge loss, $\ell ( y ) = \operatorname* { m a x } ( 0 , 1 - \hat { y } \cdot y )$ , where $y \in \pm 1$ is the true label and $\hat { y }$ is the output of each task’s neural network.
100
+
101
+ Conventional matrix-based MTL methods (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Romera-paredes et al., 2013; Wimalawarne et al., 2014) are linear models taking ´ vector input only, so they need a preprocessing that flattens the image into a vector, and typically reduce dimension by PCA. As per our motivation for studying Deep MTL, our methods decisively outperform such shallow linear baselines. Thus to find a stronger MTL competitor, we instead search user defined architectures for Deep-MTL parameter sharing (cf (Zhang et al., 2014; Liu et al., 2015; Caruana, 1997)). In all of the four parametrised layers (pooling has no parameters), we set the first $N$ $\left( 1 \leq N \leq 3 \right)$ ) to be hard shared5. We then use cross-validation to select among the three userdefined MTL architectures and the best option is $N = 3$ , i.e., the first three layers are fully shared (we denote this model UD-MTL). For our methods, all four parametrised layers are softly shared with the different factorisation approaches. To evaluate different MTL methods and a baseline of single task learning (STL), we take ten different fractions of the given 60K training split, train the model, and test on the 10K testing split. For each fraction, we repeat the experiment 5 times with randomly sampled training data. We report two performance metrics: (1) the mean error rate of the ten binary classification problems and (2) the error rate of recognising a digit by ranking each task’s 1-vs-all output (multi-class classification error).
102
+
103
+ Results As we can see in Fig. 2, all MTL approaches outperform STL, and the advantage is more significant when the training data is small. The proposed methods, DMTRL-TT and DMTRLTucker outperform the best user-defined MTL when the training data is very small, and their performance is comparable when the training data is large.
104
+
105
+ Further Discussion For a slightly unfair comparison, in the case of binary classification with 1000 training data, shallow matrix-based MTL methods with PCA feature (Kang et al., 2011; Kumar & Daume III, 2012) reported ´ $1 4 . 0 \% / \ 1 3 . 4 \%$ error rate. With the same amount of data, our methods have error rate below $6 \%$ . This shows the importance of our deep end-to-end multi-task representation learning contribution versus conventional shallow MTL. Since the error rates in (Kang et al., 2011; Kumar & Daume III, 2012) were produced on a private subset of MNIST dataset with PCA ´ representations only, to ensure a direct comparison, we implement several classic MTL methods and compare them in Appendix A.
106
+
107
+ ![](images/4b3890f21ecf8c5319aa5bc69860e1ea77bf2f965ce0b0fb0495902f41401c7c.jpg)
108
+ Figure 2: Homogeneous MTL: digit recognition on MNIST dataset. Each digit provides a task.
109
+
110
+ For readers interested in the connection to model capacity (number of parameters), we present further analysis in Appendix B.
111
+
112
+ # 4.2 HETEROGENEOUS MTL: FACE ANALYSIS
113
+
114
+ Dataset, Settings and Baselines The AdienceFaces (Eidinger et al., 2014) is a large-scale face images dataset with the labels of each person’s gender and age group. We use this dataset for the evaluation of heterogeneous MTL with two tasks: (i) gender classification (two classes) and (ii) age group classification (eight classes). Two independent CNN models for this benchmark are introduced in (Levi & Hassncer, 2015). The two CNNs have the same architecture except for the last fully-connected layer, since the heterogeneous tasks have different number of outputs (two $/$ eight). We take these CNNs from (Levi & Hassncer, 2015) as the STL baseline. We again search for the best possible user-defined MTL architecture as a strong competitor: the proposed CNN has six layers – three convolutional and three fully-connected layers. The last fully-connected layer has non-shareable parameters because they are of different size. To search the MTL design-space, we try setting the first $N$ $\mathrm { ~ 1 ~ } \leq N \leq \mathrm { ~ 5 ~ }$ ) layers to be hard shared between the tasks. Running 5-fold cross-validation on the train set to evaluate the architectures, we find the best choice is $N = 5$ (i.e., all layers fully shared before the final heterogeneous outputs). For our proposed methods, all the layers before the last heterogeneous dimensionality FC layers are softly shared.
115
+
116
+ We select increasing fractions of the AdienceFaces train split randomly, train the model, and evaluate on the same test set. For reference, there are 12245 images with gender labelled for training, 4007 ones for testing, and 11823 images with age group labelled for training, and 4316 ones for testing.
117
+
118
+ Results Fig. 3 shows the error rate for each task. For the gender recognition task, we find that: (i) User-defined MTL is not consistently better than STL, but (ii) our methods, esp., DMTRLTucker, consistently outperform both STL and the best user-defined MTL. For the harder age group classification task, our methods generally improve on STL. However UD-MTL does not consistently improve on STL, and even reduces performance when the training set is bigger. This is the negative transfer phenomenon (Rosenstein et al., 2005), where using a transfer learning algorithm is worse than not using it. This difference in outcomes is attributed to sufficient data eventually providing some effective task-specific representation. Our methods can discover and exploit this, but UDMTL’s hard switch between sharing and not sharing can not represent or exploit such increasing task-specificity of representation.
119
+
120
+ ![](images/cb0b2ea66c83cfafe25a3bd6b663ffeb9e04a95ebdb2fde22b382108561d05b8.jpg)
121
+ Figure 3: Heterogeneous MTL: Age and Gender recognition in AdienceFace dataset.
122
+
123
+ # 4.3 HETEROGENEOUS MTL: MULTI-ALPHABET RECOGNITION
124
+
125
+ Dataset, Settings and Baselines We next consider the task of learning to recognise handwritten letters in multiple languages using the Omniglot (Lake et al., 2015) dataset. Omniglot contains handwritten characters in 50 different alphabets (e.g., Cyrillic, Korean, Tengwar), each with its own number of unique characters $1 4 \sim 5 5$ ). In total, there are 1623 unique characters, and each has exactly 20 instances. Here each task corresponds to an alphabet, and the goal is to recognise its characters. MTL has a clear motivation here, as cross-alphabet knowledge sharing is likely to be useful as one is unlikely to have extensive training data for a wide variety of less common alphabets.
126
+
127
+ The images are monochrome of size $1 0 5 \times 1 0 5$ . We design a CNN with 3 convolutional and $2 \ : \mathrm { F C }$ layers. The first conv layer has 8 filters of size $5 \times 5$ ; the second conv layer has 12 filters of size $3 \times 3$ , and the third convolutional layer has 16 filters of size $3 \times 3$ . Each convolutional layer is followed by a $2 \times 2$ max-pooling. The first FC layer has 64 neurons, and the second FC layer has size corresponding to the number of unique classes in the alphabet. The activation function is tanh.
128
+
129
+ We use a similar strategy to find the best user-defined MTL model: the CNN has 5 parametrised layers, of which 4 layers are potentially shareable. So we tried hard-sharing the first $N$ $1 \leq N \leq 4 ,$ ) layers. Evaluating these options by 5-fold cross-validation, the best option turned out to be $N = 3$ , i.e., the first three layers are hard shared. For our methods, all four shareable layers are softly shared.
130
+
131
+ Since there is no standard train/test split for this dataset, we use the following setting: We repeatedly pick at random $5 , \ldots 9 0 \%$ of images per class for training. Note that $5 \%$ is the minimum, corresponding to one-shot learning. The remaining data are used for evaluation.
132
+
133
+ Results Fig. 4 reports the average error rate across all 50 tasks (alphabets). Our proposed MTL methods surpass the STL baseline in all cases. User-defined MTL does not work well when the training data is very small, but does help when training fraction is larger than $5 0 \%$ .
134
+
135
+ Measuring the Learned Sharing Compared to the conventional user-defined sharing architectures, our method learns how to share from data. We next try to quantify the amount of sharing estimated by our model on the Omniglot data. Returning to the key factorisation $\mathscr { W } = \mathscr { L } S$ , we can find that $S$ -like matrix appears in all variants of proposed method. It is $S$ in DMTRL-LAF, the transposed $U ^ { ( N ) }$ in DMTRL-Tucker, and $U ^ { ( N ) }$ in DMTRL-TT $N$ is the last axis of $\mathcal { W }$ ). $S$ is a $K \times T$ size matrix, where $T$ is the number of tasks, and $K$ is the number of latent tasks (Kumar & Daume III, 2012) or the dimension of task coding (Yang & Hospedales, 2015). Each column ´ of $S$ is a set of coefficients that produce the final weight matrix/tensor by linear combination. If we put STL and user-defined MTL (for a certain shared layer) in this framework, we see that STL is to assign (rather than learn) $S$ to be an identity matrix $I _ { T }$ . Similarly, user-defined MTL (for a certain shared layer) is to assign $S$ to be a matrix with all zeros but one particular row is all ones, e.g., $S = [ \mathbf { 1 } _ { 1 \times T } ; \mathbf { 0 } ]$ . Between these two extremes, our method learns the sharing structure in $S$ . We propose the following equation to measure the learned sharing strength:
136
+
137
+ $$
138
+ \rho = \frac { 1 } { { \binom { T } { 2 } } } \sum _ { i < j } \Omega ( S _ { \cdot , i } , S _ { \cdot , j } ) = \frac { 2 } { T ( T - 1 ) } \sum _ { i < j } \Omega ( S _ { \cdot , i } , S _ { \cdot , j } )
139
+ $$
140
+
141
+ ![](images/b4e9921c310609c64d55abce2351e70d7c7124ec9b4585bed886236cdd6c9de3.jpg)
142
+ Figure 4: Results of multi-task learning of multilingual character recognition (Omniglot dataset). Below: Illustration of the language pairs estimated to be the most related (left - Georgian Mkhedruli and Inuktitut) and most unrelated (right - Balinese and ULOG) character recognition tasks.
143
+
144
+ Here $\Omega ( a , b )$ is a similarity measure for two vectors $a$ and $b$ and we use cosine similarity. $\rho$ is the average on all combinations of column-wise similarity. So $\rho$ measures how much sharing is encoded by $S$ between $\rho = 0$ for STL (nothing to share) and $\rho = 1$ for user-defined MTL (completely shared). Since $S$ is a real-valued matrix in our scenario, we normalise it before applying Eq. 9: First we take absolute values, because large either positive or negative value suggests a significant coefficient. Second we normalise each column of $S$ by applying a softmax function, so the sum of every column is 1. The motivation behind the second step is to make a matched range of our $S$ with $S = I _ { T }$ or $S = [ \mathbf { 1 } _ { 1 \times T } ; \mathbf { 0 } ]$ , as for those two cases, the sum of each column is 1 and the range is [0, 1].
145
+
146
+ For the Omniglot experiment, we plot the measured sharing amount for training fraction $1 0 \%$ . Fig. 4 reveals that three proposed methods tend to share more for bottom layers (‘Conv1’, ‘Conv2’, and ‘Conv3’) and share less for top layer (‘FC1’). This is qualitatively similar to the best user-defined MTL, where the first three layers are fully shared $( \rho = 1 )$ ) and the 4th layer is completely not shared $\rho = 0 ,$ ). However, our methods: (i) learn this structure in a purely data-driven way and (ii) benefits from the ability to smoothly interpolate between high and low degrees of sharing as depth increases. As an illustration, Fig. 4 also shows example text from the most and least similar language pairs as estimated at our multilingual character recogniser’s FC1 layer (the result can vary across layers).
147
+
148
+ # 5 CONCLUSION
149
+
150
+ In this paper, we propose a novel framework for end-to-end multi-task representation learning in contemporary deep neural networks. The key idea is to generalise matrix factorisation-based multitask ideas to tensor factorisation, in order to flexibly share knowledge in fully connected and convolutional DNN layers. Our method provides consistently better performance than single task learning and comparable or better performance than the best results from exhaustive search of user-defined MTL architectures. It reduces the design choices and architectural search space that must be explored in the workflow of Deep MTL architecture design (Caruana, 1997; Zhang et al., 2014; Liu et al., 2015), relieving researchers of the need to decide how to structure layer sharing/segregation. Instead sharing structure is determined in a data-driven way on a layer-by-layer basis that moreover allows a smooth interpolation between sharing and not sharing in progressively deeper layers.
151
+
152
+ Acknowledgements This work was supported by EPSRC (EP/L023385/1), and the European Union’s Horizon 2020 research and innovation program under grant agreement No 640891.
153
+
154
+ # REFERENCES
155
+
156
+ Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, ´ Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Watten- ´ berg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL http://tensorflow.org/. Software available from tensorflow.org.
157
+
158
+ Andreas Argyriou, Theodoros Evgeniou, and Massimiliano Pontil. Convex multi-task feature learning. Machine Learning, 2008.
159
+
160
+ Edwin V Bonilla, Kian M Chai, and Christopher Williams. Multi-task gaussian process prediction. In Neural Information Processing Systems (NIPS), 2007.
161
+
162
+ Rich Caruana. Multitask learning. Machine Learning, 1997.
163
+
164
+ Hal Daume III. Frustratingly easy domain adaptation. In ´ ACL, 2007.
165
+
166
+ Eran Eidinger, Roee Enbar, and Tal Hassner. Age and gender estimation of unfiltered faces. IEEE Transactions on Information Forensics and Security, 2014.
167
+
168
+ Theodoros Evgeniou and Massimiliano Pontil. Regularized multi–task learning. In Knowledge Discovery and Data Mining (KDD), 2004.
169
+
170
+ Thomas L. Griffiths and Zoubin Ghahramani. The indian buffet process: An introduction and review. Journal of Machine Learning Research (JMLR), 2011.
171
+
172
+ Jui-Ting Huang, Jinyu Li, Dong Yu, Li Deng, and Yifan Gong. Cross-language knowledge transfer using multilingual deep neural network with shared hidden layers. In International Conference on Acoustics, Speech, and Signal Processing (ICASSP), 2013.
173
+
174
+ Laurent Jacob, Jean-philippe Vert, and Francis R Bach. Clustered multi-task learning: A convex formulation. In Neural Information Processing Systems (NIPS), 2009.
175
+
176
+ Zhuoliang Kang, Kristen Grauman, and Fei Sha. Learning with whom to share in multi-task feature learning. In International Conference on Machine Learning (ICML), 2011.
177
+
178
+ Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM Review, 2009.
179
+
180
+ Abhishek Kumar and Hal Daume III. Learning task grouping and overlap in multi-task learning. In ´ International Conference on Machine Learning (ICML), 2012.
181
+
182
+ Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 2015.
183
+
184
+ Lieven De Lathauwer, Bart De Moor, and Joos Vandewalle. A multilinear singular value decomposition. SIAM Journal on Matrix Analysis and Applications, 2000.
185
+
186
+ Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan V. Oseledets, and Victor S. Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. In International Conference on Learning Representations (ICLR), 2015.
187
+
188
+ Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998.
189
+
190
+ G. Levi and T. Hassncer. Age and gender classification using convolutional neural networks. In Computer Vision and Pattern Recognition Workshops (CVPRW), 2015.
191
+
192
+ Xiaodong Liu, Jianfeng Gao, Xiaodong He, Li Deng, Kevin Duh, and Ye-Yi Wang. Representation learning using multi-task deep neural networks for semantic classification and information retrieval. NAACL, 2015.
193
+
194
+ Alexander Novikov, Dmitry Podoprikhin, Anton Osokin, and Dmitry Vetrov. Tensorizing neural networks. In Neural Information Processing Systems (NIPS), 2015.
195
+
196
+ I. V. Oseledets. Tensor-train decomposition. SIAM Journal on Scientific Computing, 2011.
197
+
198
+ Alexandre Passos, Piyush Rai, Jacques Wainer, and Hal Daume III. Flexible modeling of latent task ´ structures in multitask learning. In International Conference on Machine Learning (ICML), 2012.
199
+
200
+ Bernardino Romera-paredes, Hane Aung, Nadia Bianchi-berthouze, and Massimiliano Pontil. Multilinear multitask learning. In International Conference on Machine Learning (ICML), 2013.
201
+
202
+ Michael T. Rosenstein, Zvika Marx, Leslie Pack Kaelbling, and Thomas G. Dietterich. To transfer or not to transfer. In In NIPS Workshop, Inductive Transfer: 10 Years Later, 2005.
203
+
204
+ Olivier Sigaud, Clement Masson, David Filliat, and Freek Stulp. Gated networks: an inventory. arXiv, 2015.
205
+
206
+ Sigurd Spieckermann, Steffen Udluft, and Thomas Runkler. Data-effiicient temporal regression with multitask recurrent neural networks. In NIPS Workshop on Transfer and Multi-Task Learning, 2014.
207
+
208
+ Tian Tan, Yanmin Qian, and Kai Yu. Cluster adaptive training for deep neural network based acoustic model. IEEE/ACM Trans. Audio, Speech & Language Processing, 24(3):459–468, 2016.
209
+
210
+ L. R. Tucker. Some mathematical notes on three-mode factor analysis. Psychometrika, 1966.
211
+
212
+ Kishan Wimalawarne, Masashi Sugiyama, and Ryota Tomioka. Multitask learning meets tensor factorization: task imputation via convex optimization. In Neural Information Processing Systems (NIPS), 2014.
213
+
214
+ Ya Xue, Xuejun Liao, Lawrence Carin, and Balaji Krishnapuram. Multi-task learning for classification with dirichlet process priors. Journal of Machine Learning Research (JMLR), 2007.
215
+
216
+ Yongxin Yang and Timothy M. Hospedales. A unified perspective on multi-domain and multi-task learning. In International Conference on Learning Representations (ICLR), 2015.
217
+
218
+ Zhanpeng Zhang, Ping Luo, Chen Change Loy, and Xiaoou Tang. Facial landmark detection by deep multi-task learning. In European Conference on Computer Vision (ECCV), 2014.
219
+
220
+ # A COMPARISON WITH CLASSIC (SHALLOW) MTL METHODS
221
+
222
+ We provide a comparison with classic (shallow, matrix-based) MTL methods for the first experiment (MNIST, binary one-vs-rest classification, $1 \%$ training data, mean of error rates for 10-fold CV). A subtlety in making this comparison is what feature should the classic methods use? Conventionally they use a PCA feature (obtained by flattening the image, then dimension reduction by PCA). However for visual recognition tasks, performance is better with deep features – a key motivation for our focus on deep approaches to MTL. We therefore also compare the classic methods when using a feature extracted from the penultimate layer of the CNN network used in our experiment.
223
+
224
+ <table><tr><td>Model</td><td>PCAFeature</td><td>CNNFeature</td></tr><tr><td>Single Task Learning</td><td>16.89</td><td>11.52</td></tr><tr><td>Evgeniou &amp; Pontil (2004)</td><td>15.27</td><td>10.32</td></tr><tr><td>Argyriou et al. (2008)</td><td>15.64</td><td>9.56</td></tr><tr><td>Kumar &amp; Daumé I (2012)</td><td>14.08</td><td>9.41</td></tr><tr><td>DMTRL-LAF</td><td>-</td><td>8.25</td></tr><tr><td>DMTRL-Tucker</td><td></td><td>9.24</td></tr><tr><td>DMTRL-TT</td><td></td><td>7.31</td></tr><tr><td>UD-MTL</td><td></td><td>9.34</td></tr></table>
225
+
226
+ Table 1: Comparison with classic MTL methods. MNIST binary classification error rate $( \% )$
227
+
228
+ As expected, the classic methods improve on STL, and they perform significantly better with CNN than PCA features. However, our DMTRL methods still outperform the best classic methods, even when they are enhanced by CNN features. This is due to soft (cf hard) sharing of the feature extraction layers and the ability of end-to-end training of both the classifier and feature extractor. Finally, we note that more fundamentally, the classic methods are restricted to binary problems (due to their matrix-based nature) and so, unlike our tensor-based approach, they are unsuitable for multi-class problems like omniglot and age-group classification.
229
+
230
+ # B MODEL CAPACITY AND PERFORMANCE
231
+
232
+ We list the number of parameters for each model in the first experiment (MNIST, binary one-vs-rest classification) and the performance ( $1 \%$ training data, mean of error rate for 10-fold CV).
233
+
234
+ <table><tr><td>Model</td><td>Error Rate (%)</td><td>Number of parameters</td><td>Ratio</td></tr><tr><td>STL</td><td>11.52</td><td>4351K</td><td>1.00</td></tr><tr><td>DMTRL-LAF</td><td>8.25</td><td>1632K</td><td>0.38</td></tr><tr><td>DMTRL-Tucker</td><td>9.24</td><td>1740K</td><td>0.40</td></tr><tr><td>DMTRL-TT</td><td>7.31</td><td>2187K</td><td>0.50</td></tr><tr><td>UD-MTL</td><td>9.34</td><td>436K</td><td>0.10</td></tr><tr><td>UD-MTL-Large</td><td>9.39</td><td>1644K</td><td>0.38</td></tr></table>
235
+
236
+ Table 2: Comparison of deep models: Error rate and number of parameters.
237
+
238
+ The conventional hard-sharing method (UD-MTL) design is to share all layers except the top layer. Its number of parameter is roughly $1 0 \%$ of the single task learning method (STL), as most parameters are shared across the 10 tasks corresponding to 10 digits. Our soft-sharing methods also significantly reduce the number of parameters compared to STL, but are larger than UD-MTL’s hard sharing.
239
+
240
+ To compare our method to UD-MTL, while controlling for network capacity, we expanded UDMDL by adding more hidden neurons so its number of parameter is close to our methods (denoted UD-MTL-Large). However UD-MDL performance does not increase. This is evidence that our model’s good performance is not simply due to greater capacity than UD-MTL.
parse/train/SkhU2fcll/SkhU2fcll_content_list.json ADDED
@@ -0,0 +1,1320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DEEP MULTI-TASK REPRESENTATION LEARNING: A TENSOR FACTORISATION APPROACH ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 769,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yongxin Yang, Timothy M. Hospedales Queen Mary, University of London {yongxin.yang, t.hospedales}@qmul.ac.uk ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 563,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 248,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Most contemporary multi-task learning methods assume linear models. This setting is considered shallow in the era of deep learning. In this paper, we present a new deep multi-task representation learning framework that learns cross-task sharing structure at every layer in a deep network. Our approach is based on generalising the matrix factorisation techniques explicitly or implicitly used by many conventional MTL algorithms to tensor factorisation, to realise automatic learning of end-to-end knowledge sharing in deep networks. This is in contrast to existing deep learning approaches that need a user-defined multi-task sharing strategy. Our approach applies to both homogeneous and heterogeneous MTL. Experiments demonstrate the efficacy of our deep multi-task representation learning in terms of both higher accuracy and fewer design choices. ",
40
+ "bbox": [
41
+ 233,
42
+ 281,
43
+ 764,
44
+ 433
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 460,
55
+ 336,
56
+ 476
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "The paradigm of multi-task learning is to learn multiple related tasks simultaneously so that knowledge obtained from each task can be re-used by the others. Early work in this area focused on neural network models (Caruana, 1997), while more recent methods have shifted focus to kernel methods, sparsity and low-dimensional task representations of linear models (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012). Nevertheless given the impressive practical efficacy ´ of contemporary deep neural networks (DNN)s in many important applications, we are motivated to revisit MTL from a deep learning perspective. ",
63
+ "bbox": [
64
+ 174,
65
+ 492,
66
+ 825,
67
+ 589
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "While the machine learning community has focused on MTL for shallow linear models recently, applications have continued to exploit neural network MTL (Zhang et al., 2014; Liu et al., 2015). The typical design pattern dates back at least 20 years (Caruana, 1997): define a DNN with shared lower representation layers, which then forks into separate layers and losses for each task. The sharing structure is defined manually: full-sharing up to the fork, and full separation after the fork. However this complicates DNN architecture design because the user must specify the sharing structure: How many task specific layers? How many task independent layers? How to structure sharing if there are many tasks of varying relatedness? ",
74
+ "bbox": [
75
+ 174,
76
+ 595,
77
+ 825,
78
+ 707
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper we present a method for end-to-end multi-task learning in DNNs. This contribution can be seen as generalising shallow MTL methods (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012) to learning how to share ´ at every layer of a deep network; or as learning the sharing structure for deep MTL (Caruana, 1997; Zhang et al., 2014; Spieckermann et al., 2014; Liu et al., 2015) which currently must be defined manually on a problem-by-problem basis. ",
85
+ "bbox": [
86
+ 174,
87
+ 714,
88
+ 823,
89
+ 784
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Before proceeding it is worth explicitly distinguishing some different problem settings, which have all been loosely referred to as MTL in the literature. Homogeneous MTL: Each task corresponds to a single output. For example, MNIST digit recognition is commonly used to evaluate MTL algorithms by casting it as 10 binary classification tasks (Kumar & Daume III, 2012). ´ Heterogeneous MTL: Each task corresponds to a unique set of output(s) (Zhang et al., 2014). For example, one may want simultaneously predict a person’s age (task one: multi-class classification or regression) as well as identify their gender (task two: binary classification) from a face image. ",
96
+ "bbox": [
97
+ 174,
98
+ 791,
99
+ 825,
100
+ 888
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we propose a multi-task learning method that works on all these settings. The key idea is to use tensor factorisation to divide each set of model parameters (i.e., both FC weight matrices, and convolutional kernel tensors) into shared and task-specific parts. It is a natural generalisation of shallow MTL methods that explicitly or implicitly are based on matrix factorisation (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Daum ´ e III, 2007). As linear methods, ´ these typically require pre-engineered features. In contrast, as a deep network, our generalisation can learn directly from raw image data, determining sharing structure in a layer-wise fashion. For the simplest NN architecture – no hidden layer, single output – our method reduces to matrix-based ones, therefore matrix-based methods including (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Daum ´ e III, 2007) are special cases of ours. ´ ",
107
+ "bbox": [
108
+ 173,
109
+ 895,
110
+ 820,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 825,
122
+ 215
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 RELATED WORK ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 239,
133
+ 343,
134
+ 256
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Multi-Task Learning Most contemporary MTL algorithms assume that the input and model are both $D$ -dimensional vectors. The models of $T$ tasks can then be stacked into a $D \\times T$ sized matrix $W$ . Despite different motivations and implementations, many matrix-based MTL methods work by placing constrains on $W$ . For example, posing an $\\ell _ { 2 , 1 }$ norm on $W$ to encourage low-rank $W$ (Argyriou et al., 2008). Similarly, (Kumar & Daume III, 2012) factorises ´ $W$ as $W = L S$ , i.e., it assigns a lower rank as a hyper-parameter. An earlier work (Evgeniou & Pontil, 2004) proposes that the linear model for each task $t$ can be written as $w _ { t } = \\hat { w } _ { t } + \\hat { w } _ { 0 }$ . This is the factorisation $L = [ \\hat { w } _ { 0 } , \\hat { w } _ { 1 } , \\dots , \\hat { w } _ { T } ]$ and ${ \\cal S } = [ { \\bf 1 } _ { 1 \\times T } ; { \\bf I } _ { T } ]$ . In fact, such matrix factorisation encompasses many MTL methods. E.g., (Xue et al., 2007) assumes $S _ { \\cdot , i }$ (the ith column of $S$ ) is a unit vector generated by a Dirichlet Process and (Passos et al., 2012) models $W$ using linear factor analysis with Indian Buffet Process (Griffiths & Ghahramani, 2011) prior on $S$ . ",
141
+ "bbox": [
142
+ 173,
143
+ 273,
144
+ 825,
145
+ 428
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Tensor Factorisation In deep learning, tensor factorisation has been used to exploit factorised tensors’ fewer parameters than the original (e.g., 4-way convolutional kernel) tensor, and thus compress and/or speed up the model, e.g., (Lebedev et al., 2015; Novikov et al., 2015). For shallow linear MTL, tensor factorisation has been used to address problems where tasks are described by multiple independent factors rather than merely indexed by a single factor (Yang & Hospedales, 2015). Here the $D$ -dimensional linear models for all unique tasks stack into a tensor $\\mathcal { W }$ , of e.g. $D \\times T _ { 1 } \\times T _ { 2 }$ in the case of two task factors. Knowledge sharing is then achieved by imposing tensor norms on $\\mathcal { W }$ (Romera-paredes et al., 2013; Wimalawarne et al., 2014). Our framework factors tensors for the different reason that for DNN models, parameters include convolutional kernels ( $N$ -way tensors) or $D _ { 1 } \\times D _ { 2 }$ FC layer weight matrices (2-way tensors). Stacking up these parameters for many tasks results in $D _ { 1 } \\times \\cdots \\times D _ { N } \\times T$ tensors within which we share knowledge through factorisation. ",
152
+ "bbox": [
153
+ 174,
154
+ 434,
155
+ 825,
156
+ 587
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Heterogeneous MTL and DNNs Some studies consider heterogeneous MTL, where tasks may have different numbers of outputs (Caruana, 1997). This differs from the previously discussed studies (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Bonilla et al., 2007; Jacob et al., 2009; Kumar & Daume III, 2012; Romera-paredes et al., 2013; Wimalawarne et al., 2014) which implicitly as- ´ sume that each task has a single output. Heterogeneous MTL typically uses neural networks with multiple sets of outputs and losses. E.g., Huang et al. (2013) proposes a shared-hidden-layer DNN model for multilingual speech processing, where each task corresponds to an individual language. Zhang et al. (2014) uses a DNN to find facial landmarks (regression) as well as recognise facial attributes (classification); while Liu et al. (2015) proposes a DNN for query classification and information retrieval (ranking for web search). A key commonality of these studies is that they all require a user-defined parameter sharing strategy. A typical design pattern is to use shared layers (same parameters) for lower layers of the DNN and then split (independent parameters) for the top layers. However, there is no systematic way to make such design choices, so researchers usually rely on trial-and-error, further complicating the already somewhat dark art of DNN design. In contrast, our method learns where and how much to share representation parameters across the tasks, hence significantly reducing the space of DNN design choices. ",
163
+ "bbox": [
164
+ 174,
165
+ 593,
166
+ 825,
167
+ 816
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Parametrised DNNs Our MTL approach is a parameterised DNN (Sigaud et al., 2015), in that DNN weights are dynamically generated given some side information – in the case of MTL, given the task identity. In a related example of speaker-adaptive speech recognition (Tan et al., 2016) there may be several clusters in the data (e.g., gender, acoustic conditions), and each speaker’s model could be a linweight matrix mbination oas a sum of h e latent taase models cluste, i.e., each speaker . The differe $i$ ’se $W ^ { ( i ) }$ $K$ $\\tilde { W }$ $\\begin{array} { r } { W ^ { ( i ) } = \\sum _ { k = 1 } ^ { K } \\lambda _ { p } ^ { ( i ) } \\tilde { W } ^ { ( p ) } } \\end{array}$ between speakers/tasks comes from $\\lambda$ and the base models are shared. An advantage of this is that, when new data come, one can choose to re-train $\\lambda$ parameters only, and keep $\\tilde { W }$ fixed. This will significantly reduce the number of parameters to learn, and consequently the required training data. Beyond this, Yang & Hospedales (2015) show that it is possible to train another neural network to predict those $\\lambda$ values from some abstract metadata. Thus a model for an unseen task can be generated on-the-fly with no training instances given an abstract description of the task. The techniques developed here are compatible with both these ideas of generating models with minimal or no effort. ",
174
+ "bbox": [
175
+ 174,
176
+ 823,
177
+ 823,
178
+ 924
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "",
185
+ "bbox": [
186
+ 174,
187
+ 103,
188
+ 825,
189
+ 188
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "3 METHODOLOGY ",
196
+ "text_level": 1,
197
+ "bbox": [
198
+ 176,
199
+ 210,
200
+ 341,
201
+ 227
202
+ ],
203
+ "page_idx": 2
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "3.1 PRELIMINARIES ",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 174,
211
+ 243,
212
+ 326,
213
+ 258
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "We first recap some tensor factorisation basics before explaining how to factorise DNN weight tensors for multi-task representation learning. An $N$ -way tensor $\\mathcal { W }$ with shape $D _ { 1 } \\times D _ { 2 } \\times \\cdot \\cdot \\cdot D _ { N }$ is an $N$ -dimensional array containing $\\textstyle \\prod _ { n = 1 } ^ { N } D _ { n }$ elements. Scalars, vectors, and matrices can be seen as $0 , 1$ , and 2-way tensors respectively, although the term tensor is usually used for 3-way or higher. A mode- $\\boldsymbol { n }$ fibre of $\\mathcal { W }$ is a $D _ { n }$ -dimensional vector obtained by fixing all but the nth index. The mode- $\\boldsymbol { n }$ flattening $W _ { ( n ) }$ of $\\mathcal { W }$ is the matrix of size $\\begin{array} { r } { D _ { n } \\times \\prod _ { i = n } D _ { i } } \\end{array}$ constructed by concatenating all of the $\\Pi _ { i \\lnot n } D _ { i }$ mode- $\\mathbf { \\nabla } \\cdot n$ fibres along columns. ",
220
+ "bbox": [
221
+ 173,
222
+ 270,
223
+ 825,
224
+ 373
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "The dot product of two tensors is a natural extension of matrix dot product, e.g., if we have a tensor $\\mathcal { A }$ of size $M _ { 1 } \\times M _ { 2 } \\times \\cdot \\cdot \\cdot P$ and a tensor $\\boldsymbol { B }$ of size $P \\times N _ { 1 } \\times N _ { 2 } \\dots$ , the tensor dot product $\\mathcal { A } \\bullet \\mathcal { B }$ will be a tensor of size $M _ { 1 } \\times M _ { 2 } \\times \\cdots N _ { 1 } \\times N _ { 2 } \\cdot \\cdot \\cdot$ by matrix dot product $A _ { ( - 1 ) } ^ { T } B _ { ( 1 ) }$ and reshaping1. More generally, tensor dot product can be performed along specified axes, $\\mathcal { A } \\bullet _ { ( i , j ) } \\mathcal { B } = A _ { ( i ) } ^ { T } B _ { ( j ) }$ and reshaping. Here the subscripts indicate the axes of $\\mathcal { A }$ and $\\boldsymbol { B }$ at which dot product is performed. E.g., when $\\mathcal { A }$ is of size $M _ { 1 } \\times P \\times M _ { 3 } \\times \\cdot \\cdot \\cdot M _ { I }$ and $\\boldsymbol { B }$ is of size $N _ { 1 } \\times N _ { 2 } \\times P \\times \\cdot \\cdot \\cdot N _ { J }$ , then $\\mathbf { \\mathcal { A } } \\bullet _ { ( 2 , 3 ) } B$ is a tensor of size $M _ { 1 } \\times M _ { 3 } \\times \\cdots M _ { I } \\times N _ { 1 } \\times N _ { 2 } \\times \\cdots N _ { J }$ . ",
231
+ "bbox": [
232
+ 173,
233
+ 378,
234
+ 825,
235
+ 484
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Matrix-based Knowledge Sharing Assume we have $T$ linear models (tasks) parametrised by $D$ - dimensional weight vectors, so the collection of all models forms a size $D \\times T$ matrix $W$ . One commonly used MTL approach (Kumar & Daume III, 2012) is to place a structure constraint on ´ $W$ , e.g., $W = L S$ , where $L$ is a $D \\times K$ matrix and $S$ is a $K \\times T$ matrix. This factorisation recovers a shared factor $L$ and a task-specific factor $S$ . One can see the columns of $L$ as latent basis tasks, and the model $w ^ { ( i ) }$ for the $i$ th task is the linear combination of those latent basis tasks with task-specific information $S _ { \\cdot , i }$ . ",
242
+ "bbox": [
243
+ 173,
244
+ 494,
245
+ 825,
246
+ 593
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "equation",
252
+ "img_path": "images/5b8ee652294c847b2431b22fe1f7d9c8f40b2f901cc59791208337af60d171ef.jpg",
253
+ "text": "$$\nw ^ { ( i ) } : = W _ { \\cdot , i } = L S _ { \\cdot , i } = \\sum _ { k = 1 } ^ { K } L _ { \\cdot , k } S _ { k , i }\n$$",
254
+ "text_format": "latex",
255
+ "bbox": [
256
+ 377,
257
+ 594,
258
+ 620,
259
+ 638
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "From Single to Multiple Outputs Consider extending this matrix factorisation approach to the case of multiple outputs. The model for each task is then a $D _ { 1 } \\times D _ { 2 }$ matrix, for $D _ { 1 }$ input and $D _ { 2 }$ output dimensions. The collection of all those matrices constructs a $D _ { 1 } \\times D _ { 2 } \\times T$ tensor. A straightforward extension of Eq. 1 to this case is ",
266
+ "bbox": [
267
+ 174,
268
+ 643,
269
+ 825,
270
+ 704
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "equation",
276
+ "img_path": "images/7fb02959fdc6351b2ebdb7bc54a4fd50a4d09a07363755bb6e60978d312fa3c9.jpg",
277
+ "text": "$$\nW ^ { ( i ) } : = \\mathcal { W } _ { \\cdot , \\cdot , i } = \\sum _ { k = 1 } ^ { K } \\mathcal { L } _ { \\cdot , \\cdot , k } S _ { k , i }\n$$",
278
+ "text_format": "latex",
279
+ "bbox": [
280
+ 393,
281
+ 713,
282
+ 604,
283
+ 757
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "This is equivalent to imposing the same structural constraint on $W _ { ( 3 ) } ^ { T }$ (transposed mode-3 flattening of $\\mathcal { W }$ ). It is important to note that this allows knowledge sharing across the tasks only. I.e., knowledge sharing is only across-tasks not across dimensions within a task. However it may be that the knowledge learned in the mapping to one output dimension may be useful to the others within one task. E.g., consider recognising photos of handwritten and print digits – it may be useful to share across handwritten-print; as well as across different digits within each. In order to support general knowledge sharing across both tasks and outputs within tasks, we propose to use more general tensor factorisation techniques. Unlike for matrices, there are multiple definitions of tensor factorisation, and we use Tucker (Tucker, 1966) and Tensor Train (TT) (Oseledets, 2011) decompositions. ",
290
+ "bbox": [
291
+ 173,
292
+ 765,
293
+ 825,
294
+ 895
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "3.2 TENSOR FACTORISATION FOR KNOWLEDGE SHARING ",
301
+ "text_level": 1,
302
+ "bbox": [
303
+ 173,
304
+ 103,
305
+ 588,
306
+ 118
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Tucker Decomposition Given an $N$ -way tensor of size $D _ { 1 } \\times D _ { 2 } \\cdot \\cdot \\cdot \\times D _ { N }$ , Tucker decomposition outputs a core tensor $s$ of size $K _ { 1 } \\times K _ { 2 } \\cdot \\cdot \\cdot \\times K _ { N }$ , and $N$ matrices $U ^ { ( n ) }$ of size $D _ { n } \\times K _ { n }$ , such that, ",
313
+ "bbox": [
314
+ 174,
315
+ 132,
316
+ 825,
317
+ 178
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/58784d828622e9c555ebcf8d3c4b15b9dc9cd4670d87e1d8bd5899c1d2045b92.jpg",
324
+ "text": "$$\n\\begin{array} { r c l } { { \\mathcal { W } _ { d _ { 1 } , d _ { 2 } , \\dots , d _ { N } } } } & { { = } } & { { \\displaystyle \\sum _ { k _ { 1 } = 1 } ^ { K _ { 1 } } \\sum _ { k _ { 2 } = 1 } ^ { K _ { 2 } } \\cdots \\sum _ { k _ { N } = 1 } ^ { K _ { N } } S _ { k _ { 1 } , k _ { 2 } , \\dots , k _ { N } } U _ { d _ { 1 } , k _ { 1 } } ^ { ( 1 ) } U _ { d _ { 2 } , k _ { 2 } } ^ { ( 2 ) } \\cdots U _ { d _ { N } , k _ { N } } ^ { ( N ) } } } \\\\ { { \\mathcal { W } } } & { { = } } & { { \\displaystyle \\mathcal { S } \\bullet _ { ( _ { 1 , 2 } ) } U ^ { ( 1 ) } \\bullet _ { ( _ { 1 , 2 } ) } U ^ { ( 2 ) } \\cdots \\bullet _ { ( _ { 1 , 2 } ) } U ^ { ( N ) } } } \\end{array}\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 251,
328
+ 203,
329
+ 743,
330
+ 276
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Tucker decomposition is usually implemented by an alternating least squares (ALS) method (Kolda & Bader, 2009). However (Lathauwer et al., 2000) treat it as a higher-order singular value decomposition (HOSVD), which is more efficient to solve: $U ^ { ( n ) }$ is exactly the $U$ matrix from the SVD of mode- $n$ flattening $W _ { ( n ) }$ of $\\mathcal { W }$ , and the core tensor $s$ is obtained by, ",
337
+ "bbox": [
338
+ 173,
339
+ 287,
340
+ 825,
341
+ 347
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "equation",
347
+ "img_path": "images/46c9d60fdb02c762e1783427318bb210d5aec8d640b28d1cd8d90e3ac324a4f2.jpg",
348
+ "text": "$$\n\\begin{array} { r } { \\pmb { \\mathscr { S } } = \\mathscr { W } \\bullet _ { ( 1 , 1 ) } \\boldsymbol { U } ^ { ( 1 ) } \\bullet _ { ( 1 , 1 ) } \\boldsymbol { U } ^ { ( 2 ) } \\cdots \\bullet _ { ( 1 , 1 ) } \\boldsymbol { U } ^ { ( N ) } } \\end{array}\n$$",
349
+ "text_format": "latex",
350
+ "bbox": [
351
+ 348,
352
+ 362,
353
+ 648,
354
+ 387
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "Tensor Train Decomposition Tensor Train (TT) Decomposition outputs 2 matrices $U ^ { ( 1 ) }$ and $U ^ { ( N ) }$ of size $D _ { 1 } \\times K _ { 1 }$ and $K _ { N - 1 } \\times D _ { N }$ respectively, and $( N - 2 )$ 3-way tensors $\\mathcal { U } ^ { ( n ) }$ of size $K _ { n - 1 } \\times D _ { n } \\times K _ { n }$ . The elements of $\\mathcal { W }$ can be computed by, ",
361
+ "bbox": [
362
+ 176,
363
+ 404,
364
+ 825,
365
+ 449
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "equation",
371
+ "img_path": "images/aaad1a1718515311ee6d1f0a1eda7d952ddd0f7a518c89592faad850694e83d0.jpg",
372
+ "text": "$$\n\\begin{array} { l c l } { { \\displaystyle \\mathcal { W } _ { d _ { 1 } , d _ { 2 } , \\dots , d _ { N } } } } & { { = } } & { { \\displaystyle \\sum _ { k _ { 1 } = 1 } ^ { K _ { 1 } } \\sum _ { k _ { 2 } = 1 } ^ { K _ { 2 } } \\cdots \\sum _ { k _ { N - 1 } = 1 } ^ { K _ { N - 1 } } U _ { d _ { 1 } , k _ { 1 } } ^ { ( 1 ) } \\mathcal { U } _ { k _ { 1 } , d _ { 2 } , k _ { 2 } } ^ { ( 2 ) } \\mathcal { U } _ { k _ { 2 } , d _ { 3 } , k _ { 3 } } ^ { ( 3 ) } \\cdots U _ { k _ { N - 1 } , d _ { N } } ^ { ( N ) } } } \\\\ { { } } & { { = } } & { { \\displaystyle U _ { d _ { 1 } , l } ^ { ( 1 ) } \\mathcal { U } _ { , d _ { 2 } , l } ^ { ( 2 ) } \\mathcal { U } _ { , d _ { 3 } , \\cdot } ^ { ( 3 ) } \\cdots U _ { \\cdot , d _ { N } } ^ { ( d ) } } } \\\\ { { \\displaystyle \\mathcal { W } } } & { { = } } & { { \\displaystyle U ^ { ( 1 ) } \\bullet \\mathcal { U } ^ { ( 2 ) } \\cdot \\cdots \\bullet U ^ { ( N ) } } } \\end{array}\n$$",
373
+ "text_format": "latex",
374
+ "bbox": [
375
+ 238,
376
+ 474,
377
+ 758,
378
+ 565
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "where U (n)·,d ,· is a matrix of size $K _ { n - 1 } \\times K _ { n }$ sliced from $\\mathcal { U } ^ { ( n ) }$ with the second axis fixed at $d _ { n }$ . The TT decomposition is typically realised with a recursive SVD-based solution (Oseledets, 2011). ",
385
+ "bbox": [
386
+ 174,
387
+ 582,
388
+ 823,
389
+ 614
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "Knowledge Sharing If the final axis of the input tensor above indexes tasks, i.e. if $D _ { N } = T$ then the last factor $U ^ { ( N ) }$ in both decompositions encodes a matrix of task specific knowledge, and the other factors encode shared knowledge. ",
396
+ "bbox": [
397
+ 173,
398
+ 619,
399
+ 825,
400
+ 664
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "3.3 DEEP MULTI-TASK REPRESENTATION LEARNING ",
407
+ "text_level": 1,
408
+ "bbox": [
409
+ 174,
410
+ 683,
411
+ 557,
412
+ 696
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "To realise deep multi-task representation learning (DMTRL), we learn one DNN per-task each with the same architecture2. However each corresponding layer’s weights are generated with one of the knowledge sharing structures in Eq. 2, Eq. 4 or Eq. 8. It is important to note that we apply these ‘right-to-left’ in order to generate weight tensors with the specified sharing structure, rather than actually applying Tucker or TT to decompose an input tensor. In the forward pass, we synthesise weight tensors $\\mathcal { W }$ and perform inference as usual, so the method can be thought of as tensor composition rather than decomposition. ",
419
+ "bbox": [
420
+ 174,
421
+ 708,
422
+ 825,
423
+ 806
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "Our weight generation (construct tensors from smaller pieces) does not introduce non-differentiable terms, so our deep multi-task representation learner is trainable via standard backpropagation. Specifically, in the backward pass over FC layers, rather than directly learning the 3-way tensor $\\mathcal { W }$ , our methods learn either $\\{ S , U _ { 1 } , U _ { 2 } , U _ { 3 } \\}$ (DMTRL-Tucker, Eq. 4), $\\{ U _ { 1 } , \\mathcal { U } _ { 2 } , U _ { 3 } \\}$ (DMTRL-TT, Eq. 8), or in the simplest case $\\{ \\mathcal { L } , S \\}$ (DMTRL- $\\mathrm { . L A F ^ { 3 } }$ , Eq. 2). Besides FC layers, contemporary ",
430
+ "bbox": [
431
+ 174,
432
+ 814,
433
+ 825,
434
+ 883
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "image",
440
+ "img_path": "images/bbff1fe62fcb72612a1068843c26d12df81ac25b5a13fefd9886eeb50c6f4718.jpg",
441
+ "image_caption": [
442
+ "Figure 1: Illustrative example with two tasks corresponding to two neural networks in homogeneous (single output) and heterogeneous (different output dimension) cases. Weight layers grouped by solid rectangles are tied across networks. Weight layers grouped by dashed rectangles are softly shared across networks with our method. Ungrouped weights are independent. ",
443
+ "Homogeneous MTL Shallow: Left is STL (two independent networks); right is MTL. In the case of vector input and no hidden layer, our method is equivalent to conventional matrix-based MTL methods. Homogeneous MTL Deep: STL (Left) is independent networks. User-defined-MTL (UDMTL) selects layers to share/separate. Our DMTRL learns sharing at every layer. Heterogeneous MTL: UD-MTL selects layers to share/separate. DMTRL learns sharing at every shareable layer. "
444
+ ],
445
+ "image_footnote": [],
446
+ "bbox": [
447
+ 209,
448
+ 102,
449
+ 789,
450
+ 385
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "DNN designs often exploit convolutional layers. Those layers usually contain kernel filter parameters that are 3-way tensors of size $H \\times W \\times C$ , (where $H$ is height, $W$ is width, and $C$ is the number of input channels) or 4-way tensors of size $H \\times W \\times C \\times M$ , where $M$ is the number of filters in this layer (i.e., the number of output channels). The proposed methods naturally extend to convolution layers as convolution just adds more axes on the left-hand side. E.g., the collection of parameters from a given convolutional layer of $T$ neural networks forms a tensor of shape $H \\times W \\times C \\times M \\times T$ . ",
457
+ "bbox": [
458
+ 174,
459
+ 555,
460
+ 825,
461
+ 638
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "These knowledge sharing strategies provide a way to softly share parameters across the corresponding layers of each task’s DNN: where, what, and how much to share are learned from data. This is in contrast to the conventional Deep-MTL approach of manually selecting a set of layers to undergo hard parameter sharing: by tying weights so each task uses exactly the same weight matrix/tensor for the corresponding layer (Zhang et al., 2014; Liu et al., 2015); and a set of layers to be completely separate: by using independent weight matrices/tensors. In contrast our approach benefits from: (i) automatically learning this sharing structure from data rather than requiring user trial and error, and (ii) smoothly interpolating between fully shared and fully segregated layers, rather than a hard switching between these states. An illustration of the proposed framework for different problem settings can be found in Fig. 1. ",
468
+ "bbox": [
469
+ 174,
470
+ 646,
471
+ 825,
472
+ 786
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "4 EXPERIMENTS ",
479
+ "text_level": 1,
480
+ "bbox": [
481
+ 176,
482
+ 808,
483
+ 326,
484
+ 823
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Implementation Details Our method is implemented with TensorFlow (Abadi et al., 2015). The code is released on $\\mathrm { G i t H u b ^ { 4 } }$ . For DMTRL-Tucker, DMTRL-TT, and DMTRL-LAF, we need to assign the rank of each weight tensor. The DNN architecture itself may be complicated and so can benefit from different ranks at different layers, but grid-search is impractical. However, since both Tucker and TT decomposition methods have SVD-based solutions, and vanilla SVD is directly applicable to DMTRL-LAF, we can initialise the model and set the ranks as follows: First train the DNNs independently in single task learning mode. Then pack the layer-wise parameters as the input for tensor decomposition. When SVD is applied, set a threshold for relative error so SVD will pick the appropriate rank. Thus our method needs only a single hyper parameter of max reconstruction error (we set to $\\epsilon = 1 0 \\%$ throughout) that indirectly specifies the ranks of every layer. Note that training from random initialisation also works, but the STL-based initialisation makes rank selection easy and transparent. Nevertheless, like (Kumar & Daume III, 2012) the framework is not sensitive ´ to rank choice so long as they are big enough. If random initialisation is desired to eliminate the pre-training requirement, good practice is to initialise parameter tensors by a suitable random weight distribution first, then do decomposition, and use the decomposed values for initialising the factors (the real learnable parameters in our framework). In this way, the resulting re-composed tensors will have approximately the intended distribution. Our sharing is applied to weight parameters only, bias terms are not shared. Apart from initialisation, decomposition is not used anywhere. ",
491
+ "bbox": [
492
+ 174,
493
+ 840,
494
+ 825,
495
+ 896
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "",
502
+ "bbox": [
503
+ 174,
504
+ 103,
505
+ 825,
506
+ 297
507
+ ],
508
+ "page_idx": 5
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "4.1 HOMOGENEOUS MTL ",
513
+ "text_level": 1,
514
+ "bbox": [
515
+ 176,
516
+ 316,
517
+ 366,
518
+ 332
519
+ ],
520
+ "page_idx": 5
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "Dataset, Settings and Baselines We use MNIST handwritten digits. The task is to recognise digit images zero to nine. When this dataset is used for the evaluation of MTL methods, ten 1-vs-all binary classification problems usually define ten tasks (Kumar & Daume III, 2012). The dataset has ´ a given train (60,000 images) and test (10,000 images) split. Each instance is a monochrome image of size $2 8 \\times 2 8 \\times 1$ . ",
525
+ "bbox": [
526
+ 174,
527
+ 344,
528
+ 823,
529
+ 412
530
+ ],
531
+ "page_idx": 5
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "We use a modified LeNet (LeCun et al., 1998) as the CNN architecture. The first convolutional layer has 32 filters of size $5 \\times 5$ , followed by $2 \\times 2$ max pooling. The second convolutional layer has 64 filters of size $4 \\times 4$ , and again a $2 \\times 2$ max pooling. After these two convolutional layers, two fully connected layers with 512 and 1 output(s) are placed sequentially. The convolutional and first FC layer use RELU $f ( x ) = \\operatorname* { m a x } ( x , 0 )$ activation function. We use hinge loss, $\\ell ( y ) = \\operatorname* { m a x } ( 0 , 1 - \\hat { y } \\cdot y )$ , where $y \\in \\pm 1$ is the true label and $\\hat { y }$ is the output of each task’s neural network. ",
536
+ "bbox": [
537
+ 174,
538
+ 420,
539
+ 825,
540
+ 503
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "Conventional matrix-based MTL methods (Evgeniou & Pontil, 2004; Argyriou et al., 2008; Kumar & Daume III, 2012; Romera-paredes et al., 2013; Wimalawarne et al., 2014) are linear models taking ´ vector input only, so they need a preprocessing that flattens the image into a vector, and typically reduce dimension by PCA. As per our motivation for studying Deep MTL, our methods decisively outperform such shallow linear baselines. Thus to find a stronger MTL competitor, we instead search user defined architectures for Deep-MTL parameter sharing (cf (Zhang et al., 2014; Liu et al., 2015; Caruana, 1997)). In all of the four parametrised layers (pooling has no parameters), we set the first $N$ $\\left( 1 \\leq N \\leq 3 \\right)$ ) to be hard shared5. We then use cross-validation to select among the three userdefined MTL architectures and the best option is $N = 3$ , i.e., the first three layers are fully shared (we denote this model UD-MTL). For our methods, all four parametrised layers are softly shared with the different factorisation approaches. To evaluate different MTL methods and a baseline of single task learning (STL), we take ten different fractions of the given 60K training split, train the model, and test on the 10K testing split. For each fraction, we repeat the experiment 5 times with randomly sampled training data. We report two performance metrics: (1) the mean error rate of the ten binary classification problems and (2) the error rate of recognising a digit by ranking each task’s 1-vs-all output (multi-class classification error). ",
547
+ "bbox": [
548
+ 174,
549
+ 511,
550
+ 825,
551
+ 733
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Results As we can see in Fig. 2, all MTL approaches outperform STL, and the advantage is more significant when the training data is small. The proposed methods, DMTRL-TT and DMTRLTucker outperform the best user-defined MTL when the training data is very small, and their performance is comparable when the training data is large. ",
558
+ "bbox": [
559
+ 174,
560
+ 741,
561
+ 823,
562
+ 796
563
+ ],
564
+ "page_idx": 5
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Further Discussion For a slightly unfair comparison, in the case of binary classification with 1000 training data, shallow matrix-based MTL methods with PCA feature (Kang et al., 2011; Kumar & Daume III, 2012) reported ´ $1 4 . 0 \\% / \\ 1 3 . 4 \\%$ error rate. With the same amount of data, our methods have error rate below $6 \\%$ . This shows the importance of our deep end-to-end multi-task representation learning contribution versus conventional shallow MTL. Since the error rates in (Kang et al., 2011; Kumar & Daume III, 2012) were produced on a private subset of MNIST dataset with PCA ´ representations only, to ensure a direct comparison, we implement several classic MTL methods and compare them in Appendix A. ",
569
+ "bbox": [
570
+ 176,
571
+ 803,
572
+ 823,
573
+ 845
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "image",
579
+ "img_path": "images/4b3890f21ecf8c5319aa5bc69860e1ea77bf2f965ce0b0fb0495902f41401c7c.jpg",
580
+ "image_caption": [
581
+ "Figure 2: Homogeneous MTL: digit recognition on MNIST dataset. Each digit provides a task. "
582
+ ],
583
+ "image_footnote": [],
584
+ "bbox": [
585
+ 220,
586
+ 98,
587
+ 776,
588
+ 272
589
+ ],
590
+ "page_idx": 6
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "",
595
+ "bbox": [
596
+ 174,
597
+ 349,
598
+ 825,
599
+ 419
600
+ ],
601
+ "page_idx": 6
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "For readers interested in the connection to model capacity (number of parameters), we present further analysis in Appendix B. ",
606
+ "bbox": [
607
+ 174,
608
+ 426,
609
+ 823,
610
+ 454
611
+ ],
612
+ "page_idx": 6
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "4.2 HETEROGENEOUS MTL: FACE ANALYSIS ",
617
+ "text_level": 1,
618
+ "bbox": [
619
+ 174,
620
+ 497,
621
+ 501,
622
+ 512
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "Dataset, Settings and Baselines The AdienceFaces (Eidinger et al., 2014) is a large-scale face images dataset with the labels of each person’s gender and age group. We use this dataset for the evaluation of heterogeneous MTL with two tasks: (i) gender classification (two classes) and (ii) age group classification (eight classes). Two independent CNN models for this benchmark are introduced in (Levi & Hassncer, 2015). The two CNNs have the same architecture except for the last fully-connected layer, since the heterogeneous tasks have different number of outputs (two $/$ eight). We take these CNNs from (Levi & Hassncer, 2015) as the STL baseline. We again search for the best possible user-defined MTL architecture as a strong competitor: the proposed CNN has six layers – three convolutional and three fully-connected layers. The last fully-connected layer has non-shareable parameters because they are of different size. To search the MTL design-space, we try setting the first $N$ $\\mathrm { ~ 1 ~ } \\leq N \\leq \\mathrm { ~ 5 ~ }$ ) layers to be hard shared between the tasks. Running 5-fold cross-validation on the train set to evaluate the architectures, we find the best choice is $N = 5$ (i.e., all layers fully shared before the final heterogeneous outputs). For our proposed methods, all the layers before the last heterogeneous dimensionality FC layers are softly shared. ",
629
+ "bbox": [
630
+ 174,
631
+ 535,
632
+ 825,
633
+ 728
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "We select increasing fractions of the AdienceFaces train split randomly, train the model, and evaluate on the same test set. For reference, there are 12245 images with gender labelled for training, 4007 ones for testing, and 11823 images with age group labelled for training, and 4316 ones for testing. ",
640
+ "bbox": [
641
+ 174,
642
+ 734,
643
+ 825,
644
+ 777
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Results Fig. 3 shows the error rate for each task. For the gender recognition task, we find that: (i) User-defined MTL is not consistently better than STL, but (ii) our methods, esp., DMTRLTucker, consistently outperform both STL and the best user-defined MTL. For the harder age group classification task, our methods generally improve on STL. However UD-MTL does not consistently improve on STL, and even reduces performance when the training set is bigger. This is the negative transfer phenomenon (Rosenstein et al., 2005), where using a transfer learning algorithm is worse than not using it. This difference in outcomes is attributed to sufficient data eventually providing some effective task-specific representation. Our methods can discover and exploit this, but UDMTL’s hard switch between sharing and not sharing can not represent or exploit such increasing task-specificity of representation. ",
651
+ "bbox": [
652
+ 173,
653
+ 785,
654
+ 825,
655
+ 924
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "image",
661
+ "img_path": "images/cb0b2ea66c83cfafe25a3bd6b663ffeb9e04a95ebdb2fde22b382108561d05b8.jpg",
662
+ "image_caption": [
663
+ "Figure 3: Heterogeneous MTL: Age and Gender recognition in AdienceFace dataset. "
664
+ ],
665
+ "image_footnote": [],
666
+ "bbox": [
667
+ 222,
668
+ 98,
669
+ 776,
670
+ 272
671
+ ],
672
+ "page_idx": 7
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "4.3 HETEROGENEOUS MTL: MULTI-ALPHABET RECOGNITION ",
677
+ "text_level": 1,
678
+ "bbox": [
679
+ 174,
680
+ 328,
681
+ 625,
682
+ 343
683
+ ],
684
+ "page_idx": 7
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "Dataset, Settings and Baselines We next consider the task of learning to recognise handwritten letters in multiple languages using the Omniglot (Lake et al., 2015) dataset. Omniglot contains handwritten characters in 50 different alphabets (e.g., Cyrillic, Korean, Tengwar), each with its own number of unique characters $1 4 \\sim 5 5$ ). In total, there are 1623 unique characters, and each has exactly 20 instances. Here each task corresponds to an alphabet, and the goal is to recognise its characters. MTL has a clear motivation here, as cross-alphabet knowledge sharing is likely to be useful as one is unlikely to have extensive training data for a wide variety of less common alphabets. ",
689
+ "bbox": [
690
+ 173,
691
+ 356,
692
+ 825,
693
+ 454
694
+ ],
695
+ "page_idx": 7
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "The images are monochrome of size $1 0 5 \\times 1 0 5$ . We design a CNN with 3 convolutional and $2 \\ : \\mathrm { F C }$ layers. The first conv layer has 8 filters of size $5 \\times 5$ ; the second conv layer has 12 filters of size $3 \\times 3$ , and the third convolutional layer has 16 filters of size $3 \\times 3$ . Each convolutional layer is followed by a $2 \\times 2$ max-pooling. The first FC layer has 64 neurons, and the second FC layer has size corresponding to the number of unique classes in the alphabet. The activation function is tanh. ",
700
+ "bbox": [
701
+ 174,
702
+ 460,
703
+ 825,
704
+ 530
705
+ ],
706
+ "page_idx": 7
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "We use a similar strategy to find the best user-defined MTL model: the CNN has 5 parametrised layers, of which 4 layers are potentially shareable. So we tried hard-sharing the first $N$ $1 \\leq N \\leq 4 ,$ ) layers. Evaluating these options by 5-fold cross-validation, the best option turned out to be $N = 3$ , i.e., the first three layers are hard shared. For our methods, all four shareable layers are softly shared. ",
711
+ "bbox": [
712
+ 174,
713
+ 536,
714
+ 825,
715
+ 593
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "Since there is no standard train/test split for this dataset, we use the following setting: We repeatedly pick at random $5 , \\ldots 9 0 \\%$ of images per class for training. Note that $5 \\%$ is the minimum, corresponding to one-shot learning. The remaining data are used for evaluation. ",
722
+ "bbox": [
723
+ 174,
724
+ 599,
725
+ 825,
726
+ 642
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Results Fig. 4 reports the average error rate across all 50 tasks (alphabets). Our proposed MTL methods surpass the STL baseline in all cases. User-defined MTL does not work well when the training data is very small, but does help when training fraction is larger than $5 0 \\%$ . ",
733
+ "bbox": [
734
+ 174,
735
+ 648,
736
+ 825,
737
+ 691
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "Measuring the Learned Sharing Compared to the conventional user-defined sharing architectures, our method learns how to share from data. We next try to quantify the amount of sharing estimated by our model on the Omniglot data. Returning to the key factorisation $\\mathscr { W } = \\mathscr { L } S$ , we can find that $S$ -like matrix appears in all variants of proposed method. It is $S$ in DMTRL-LAF, the transposed $U ^ { ( N ) }$ in DMTRL-Tucker, and $U ^ { ( N ) }$ in DMTRL-TT $N$ is the last axis of $\\mathcal { W }$ ). $S$ is a $K \\times T$ size matrix, where $T$ is the number of tasks, and $K$ is the number of latent tasks (Kumar & Daume III, 2012) or the dimension of task coding (Yang & Hospedales, 2015). Each column ´ of $S$ is a set of coefficients that produce the final weight matrix/tensor by linear combination. If we put STL and user-defined MTL (for a certain shared layer) in this framework, we see that STL is to assign (rather than learn) $S$ to be an identity matrix $I _ { T }$ . Similarly, user-defined MTL (for a certain shared layer) is to assign $S$ to be a matrix with all zeros but one particular row is all ones, e.g., $S = [ \\mathbf { 1 } _ { 1 \\times T } ; \\mathbf { 0 } ]$ . Between these two extremes, our method learns the sharing structure in $S$ . We propose the following equation to measure the learned sharing strength: ",
744
+ "bbox": [
745
+ 173,
746
+ 698,
747
+ 825,
748
+ 880
749
+ ],
750
+ "page_idx": 7
751
+ },
752
+ {
753
+ "type": "equation",
754
+ "img_path": "images/954950dce55c861123763a36980f4e93559d92ef06137de75f0103e94e11fa67.jpg",
755
+ "text": "$$\n\\rho = \\frac { 1 } { { \\binom { T } { 2 } } } \\sum _ { i < j } \\Omega ( S _ { \\cdot , i } , S _ { \\cdot , j } ) = \\frac { 2 } { T ( T - 1 ) } \\sum _ { i < j } \\Omega ( S _ { \\cdot , i } , S _ { \\cdot , j } )\n$$",
756
+ "text_format": "latex",
757
+ "bbox": [
758
+ 313,
759
+ 888,
760
+ 684,
761
+ 928
762
+ ],
763
+ "page_idx": 7
764
+ },
765
+ {
766
+ "type": "image",
767
+ "img_path": "images/b4e9921c310609c64d55abce2351e70d7c7124ec9b4585bed886236cdd6c9de3.jpg",
768
+ "image_caption": [
769
+ "Figure 4: Results of multi-task learning of multilingual character recognition (Omniglot dataset). Below: Illustration of the language pairs estimated to be the most related (left - Georgian Mkhedruli and Inuktitut) and most unrelated (right - Balinese and ULOG) character recognition tasks. "
770
+ ],
771
+ "image_footnote": [],
772
+ "bbox": [
773
+ 220,
774
+ 99,
775
+ 777,
776
+ 328
777
+ ],
778
+ "page_idx": 8
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Here $\\Omega ( a , b )$ is a similarity measure for two vectors $a$ and $b$ and we use cosine similarity. $\\rho$ is the average on all combinations of column-wise similarity. So $\\rho$ measures how much sharing is encoded by $S$ between $\\rho = 0$ for STL (nothing to share) and $\\rho = 1$ for user-defined MTL (completely shared). Since $S$ is a real-valued matrix in our scenario, we normalise it before applying Eq. 9: First we take absolute values, because large either positive or negative value suggests a significant coefficient. Second we normalise each column of $S$ by applying a softmax function, so the sum of every column is 1. The motivation behind the second step is to make a matched range of our $S$ with $S = I _ { T }$ or $S = [ \\mathbf { 1 } _ { 1 \\times T } ; \\mathbf { 0 } ]$ , as for those two cases, the sum of each column is 1 and the range is [0, 1]. ",
783
+ "bbox": [
784
+ 174,
785
+ 429,
786
+ 825,
787
+ 540
788
+ ],
789
+ "page_idx": 8
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "For the Omniglot experiment, we plot the measured sharing amount for training fraction $1 0 \\%$ . Fig. 4 reveals that three proposed methods tend to share more for bottom layers (‘Conv1’, ‘Conv2’, and ‘Conv3’) and share less for top layer (‘FC1’). This is qualitatively similar to the best user-defined MTL, where the first three layers are fully shared $( \\rho = 1 )$ ) and the 4th layer is completely not shared $\\rho = 0 ,$ ). However, our methods: (i) learn this structure in a purely data-driven way and (ii) benefits from the ability to smoothly interpolate between high and low degrees of sharing as depth increases. As an illustration, Fig. 4 also shows example text from the most and least similar language pairs as estimated at our multilingual character recogniser’s FC1 layer (the result can vary across layers). ",
794
+ "bbox": [
795
+ 173,
796
+ 547,
797
+ 825,
798
+ 659
799
+ ],
800
+ "page_idx": 8
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "5 CONCLUSION ",
805
+ "text_level": 1,
806
+ "bbox": [
807
+ 176,
808
+ 699,
809
+ 318,
810
+ 714
811
+ ],
812
+ "page_idx": 8
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "In this paper, we propose a novel framework for end-to-end multi-task representation learning in contemporary deep neural networks. The key idea is to generalise matrix factorisation-based multitask ideas to tensor factorisation, in order to flexibly share knowledge in fully connected and convolutional DNN layers. Our method provides consistently better performance than single task learning and comparable or better performance than the best results from exhaustive search of user-defined MTL architectures. It reduces the design choices and architectural search space that must be explored in the workflow of Deep MTL architecture design (Caruana, 1997; Zhang et al., 2014; Liu et al., 2015), relieving researchers of the need to decide how to structure layer sharing/segregation. Instead sharing structure is determined in a data-driven way on a layer-by-layer basis that moreover allows a smooth interpolation between sharing and not sharing in progressively deeper layers. ",
817
+ "bbox": [
818
+ 174,
819
+ 742,
820
+ 825,
821
+ 881
822
+ ],
823
+ "page_idx": 8
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "Acknowledgements This work was supported by EPSRC (EP/L023385/1), and the European Union’s Horizon 2020 research and innovation program under grant agreement No 640891. ",
828
+ "bbox": [
829
+ 173,
830
+ 895,
831
+ 821,
832
+ 924
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "REFERENCES ",
839
+ "text_level": 1,
840
+ "bbox": [
841
+ 176,
842
+ 103,
843
+ 285,
844
+ 117
845
+ ],
846
+ "page_idx": 9
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, ´ Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Watten- ´ berg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL http://tensorflow.org/. Software available from tensorflow.org. ",
851
+ "bbox": [
852
+ 174,
853
+ 126,
854
+ 825,
855
+ 251
856
+ ],
857
+ "page_idx": 9
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "Andreas Argyriou, Theodoros Evgeniou, and Massimiliano Pontil. Convex multi-task feature learning. Machine Learning, 2008. ",
862
+ "bbox": [
863
+ 174,
864
+ 260,
865
+ 821,
866
+ 289
867
+ ],
868
+ "page_idx": 9
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Edwin V Bonilla, Kian M Chai, and Christopher Williams. Multi-task gaussian process prediction. In Neural Information Processing Systems (NIPS), 2007. ",
873
+ "bbox": [
874
+ 173,
875
+ 296,
876
+ 821,
877
+ 325
878
+ ],
879
+ "page_idx": 9
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "Rich Caruana. Multitask learning. Machine Learning, 1997. ",
884
+ "bbox": [
885
+ 173,
886
+ 334,
887
+ 571,
888
+ 349
889
+ ],
890
+ "page_idx": 9
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Hal Daume III. Frustratingly easy domain adaptation. In ´ ACL, 2007. ",
895
+ "bbox": [
896
+ 174,
897
+ 358,
898
+ 624,
899
+ 373
900
+ ],
901
+ "page_idx": 9
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Eran Eidinger, Roee Enbar, and Tal Hassner. Age and gender estimation of unfiltered faces. IEEE Transactions on Information Forensics and Security, 2014. ",
906
+ "bbox": [
907
+ 173,
908
+ 381,
909
+ 820,
910
+ 410
911
+ ],
912
+ "page_idx": 9
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Theodoros Evgeniou and Massimiliano Pontil. Regularized multi–task learning. In Knowledge Discovery and Data Mining (KDD), 2004. ",
917
+ "bbox": [
918
+ 173,
919
+ 419,
920
+ 823,
921
+ 448
922
+ ],
923
+ "page_idx": 9
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Thomas L. Griffiths and Zoubin Ghahramani. The indian buffet process: An introduction and review. Journal of Machine Learning Research (JMLR), 2011. ",
928
+ "bbox": [
929
+ 174,
930
+ 455,
931
+ 821,
932
+ 486
933
+ ],
934
+ "page_idx": 9
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Jui-Ting Huang, Jinyu Li, Dong Yu, Li Deng, and Yifan Gong. Cross-language knowledge transfer using multilingual deep neural network with shared hidden layers. In International Conference on Acoustics, Speech, and Signal Processing (ICASSP), 2013. ",
939
+ "bbox": [
940
+ 173,
941
+ 493,
942
+ 825,
943
+ 536
944
+ ],
945
+ "page_idx": 9
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Laurent Jacob, Jean-philippe Vert, and Francis R Bach. Clustered multi-task learning: A convex formulation. In Neural Information Processing Systems (NIPS), 2009. ",
950
+ "bbox": [
951
+ 174,
952
+ 544,
953
+ 823,
954
+ 574
955
+ ],
956
+ "page_idx": 9
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Zhuoliang Kang, Kristen Grauman, and Fei Sha. Learning with whom to share in multi-task feature learning. In International Conference on Machine Learning (ICML), 2011. ",
961
+ "bbox": [
962
+ 174,
963
+ 582,
964
+ 821,
965
+ 611
966
+ ],
967
+ "page_idx": 9
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM Review, 2009. ",
972
+ "bbox": [
973
+ 173,
974
+ 619,
975
+ 821,
976
+ 635
977
+ ],
978
+ "page_idx": 9
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Abhishek Kumar and Hal Daume III. Learning task grouping and overlap in multi-task learning. In ´ International Conference on Machine Learning (ICML), 2012. ",
983
+ "bbox": [
984
+ 173,
985
+ 642,
986
+ 823,
987
+ 672
988
+ ],
989
+ "page_idx": 9
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 2015. ",
994
+ "bbox": [
995
+ 171,
996
+ 680,
997
+ 823,
998
+ 709
999
+ ],
1000
+ "page_idx": 9
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Lieven De Lathauwer, Bart De Moor, and Joos Vandewalle. A multilinear singular value decomposition. SIAM Journal on Matrix Analysis and Applications, 2000. ",
1005
+ "bbox": [
1006
+ 173,
1007
+ 718,
1008
+ 823,
1009
+ 747
1010
+ ],
1011
+ "page_idx": 9
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan V. Oseledets, and Victor S. Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. In International Conference on Learning Representations (ICLR), 2015. ",
1016
+ "bbox": [
1017
+ 176,
1018
+ 755,
1019
+ 823,
1020
+ 797
1021
+ ],
1022
+ "page_idx": 9
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. ",
1027
+ "bbox": [
1028
+ 176,
1029
+ 806,
1030
+ 821,
1031
+ 835
1032
+ ],
1033
+ "page_idx": 9
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "G. Levi and T. Hassncer. Age and gender classification using convolutional neural networks. In Computer Vision and Pattern Recognition Workshops (CVPRW), 2015. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 844,
1041
+ 823,
1042
+ 872
1043
+ ],
1044
+ "page_idx": 9
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Xiaodong Liu, Jianfeng Gao, Xiaodong He, Li Deng, Kevin Duh, and Ye-Yi Wang. Representation learning using multi-task deep neural networks for semantic classification and information retrieval. NAACL, 2015. ",
1049
+ "bbox": [
1050
+ 176,
1051
+ 881,
1052
+ 823,
1053
+ 922
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Alexander Novikov, Dmitry Podoprikhin, Anton Osokin, and Dmitry Vetrov. Tensorizing neural networks. In Neural Information Processing Systems (NIPS), 2015. ",
1060
+ "bbox": [
1061
+ 171,
1062
+ 103,
1063
+ 825,
1064
+ 132
1065
+ ],
1066
+ "page_idx": 10
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "I. V. Oseledets. Tensor-train decomposition. SIAM Journal on Scientific Computing, 2011. ",
1071
+ "bbox": [
1072
+ 171,
1073
+ 140,
1074
+ 769,
1075
+ 157
1076
+ ],
1077
+ "page_idx": 10
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Alexandre Passos, Piyush Rai, Jacques Wainer, and Hal Daume III. Flexible modeling of latent task ´ structures in multitask learning. In International Conference on Machine Learning (ICML), 2012. ",
1082
+ "bbox": [
1083
+ 171,
1084
+ 165,
1085
+ 821,
1086
+ 194
1087
+ ],
1088
+ "page_idx": 10
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Bernardino Romera-paredes, Hane Aung, Nadia Bianchi-berthouze, and Massimiliano Pontil. Multilinear multitask learning. In International Conference on Machine Learning (ICML), 2013. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 202,
1096
+ 823,
1097
+ 232
1098
+ ],
1099
+ "page_idx": 10
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Michael T. Rosenstein, Zvika Marx, Leslie Pack Kaelbling, and Thomas G. Dietterich. To transfer or not to transfer. In In NIPS Workshop, Inductive Transfer: 10 Years Later, 2005. ",
1104
+ "bbox": [
1105
+ 171,
1106
+ 239,
1107
+ 823,
1108
+ 270
1109
+ ],
1110
+ "page_idx": 10
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Olivier Sigaud, Clement Masson, David Filliat, and Freek Stulp. Gated networks: an inventory. arXiv, 2015. ",
1115
+ "bbox": [
1116
+ 173,
1117
+ 277,
1118
+ 821,
1119
+ 308
1120
+ ],
1121
+ "page_idx": 10
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Sigurd Spieckermann, Steffen Udluft, and Thomas Runkler. Data-effiicient temporal regression with multitask recurrent neural networks. In NIPS Workshop on Transfer and Multi-Task Learning, 2014. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 315,
1129
+ 825,
1130
+ 358
1131
+ ],
1132
+ "page_idx": 10
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Tian Tan, Yanmin Qian, and Kai Yu. Cluster adaptive training for deep neural network based acoustic model. IEEE/ACM Trans. Audio, Speech & Language Processing, 24(3):459–468, 2016. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 367,
1140
+ 823,
1141
+ 397
1142
+ ],
1143
+ "page_idx": 10
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "L. R. Tucker. Some mathematical notes on three-mode factor analysis. Psychometrika, 1966. ",
1148
+ "bbox": [
1149
+ 173,
1150
+ 405,
1151
+ 784,
1152
+ 420
1153
+ ],
1154
+ "page_idx": 10
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Kishan Wimalawarne, Masashi Sugiyama, and Ryota Tomioka. Multitask learning meets tensor factorization: task imputation via convex optimization. In Neural Information Processing Systems (NIPS), 2014. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 429,
1162
+ 823,
1163
+ 472
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Ya Xue, Xuejun Liao, Lawrence Carin, and Balaji Krishnapuram. Multi-task learning for classification with dirichlet process priors. Journal of Machine Learning Research (JMLR), 2007. ",
1170
+ "bbox": [
1171
+ 171,
1172
+ 479,
1173
+ 823,
1174
+ 510
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Yongxin Yang and Timothy M. Hospedales. A unified perspective on multi-domain and multi-task learning. In International Conference on Learning Representations (ICLR), 2015. ",
1181
+ "bbox": [
1182
+ 173,
1183
+ 517,
1184
+ 821,
1185
+ 547
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Zhanpeng Zhang, Ping Luo, Chen Change Loy, and Xiaoou Tang. Facial landmark detection by deep multi-task learning. In European Conference on Computer Vision (ECCV), 2014. ",
1192
+ "bbox": [
1193
+ 174,
1194
+ 555,
1195
+ 821,
1196
+ 585
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "A COMPARISON WITH CLASSIC (SHALLOW) MTL METHODS ",
1203
+ "text_level": 1,
1204
+ "bbox": [
1205
+ 174,
1206
+ 102,
1207
+ 687,
1208
+ 118
1209
+ ],
1210
+ "page_idx": 11
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "We provide a comparison with classic (shallow, matrix-based) MTL methods for the first experiment (MNIST, binary one-vs-rest classification, $1 \\%$ training data, mean of error rates for 10-fold CV). A subtlety in making this comparison is what feature should the classic methods use? Conventionally they use a PCA feature (obtained by flattening the image, then dimension reduction by PCA). However for visual recognition tasks, performance is better with deep features – a key motivation for our focus on deep approaches to MTL. We therefore also compare the classic methods when using a feature extracted from the penultimate layer of the CNN network used in our experiment. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 133,
1218
+ 826,
1219
+ 231
1220
+ ],
1221
+ "page_idx": 11
1222
+ },
1223
+ {
1224
+ "type": "table",
1225
+ "img_path": "images/a1ef0d76eea7bf0386e1248977bb3ffdda8efc45672ac4bfa9ef8491df23dd39.jpg",
1226
+ "table_caption": [],
1227
+ "table_footnote": [],
1228
+ "table_body": "<table><tr><td>Model</td><td>PCAFeature</td><td>CNNFeature</td></tr><tr><td>Single Task Learning</td><td>16.89</td><td>11.52</td></tr><tr><td>Evgeniou &amp; Pontil (2004)</td><td>15.27</td><td>10.32</td></tr><tr><td>Argyriou et al. (2008)</td><td>15.64</td><td>9.56</td></tr><tr><td>Kumar &amp; Daumé I (2012)</td><td>14.08</td><td>9.41</td></tr><tr><td>DMTRL-LAF</td><td>-</td><td>8.25</td></tr><tr><td>DMTRL-Tucker</td><td></td><td>9.24</td></tr><tr><td>DMTRL-TT</td><td></td><td>7.31</td></tr><tr><td>UD-MTL</td><td></td><td>9.34</td></tr></table>",
1229
+ "bbox": [
1230
+ 290,
1231
+ 243,
1232
+ 707,
1233
+ 372
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Table 1: Comparison with classic MTL methods. MNIST binary classification error rate $( \\% )$ ",
1240
+ "bbox": [
1241
+ 186,
1242
+ 382,
1243
+ 802,
1244
+ 397
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "As expected, the classic methods improve on STL, and they perform significantly better with CNN than PCA features. However, our DMTRL methods still outperform the best classic methods, even when they are enhanced by CNN features. This is due to soft (cf hard) sharing of the feature extraction layers and the ability of end-to-end training of both the classifier and feature extractor. Finally, we note that more fundamentally, the classic methods are restricted to binary problems (due to their matrix-based nature) and so, unlike our tensor-based approach, they are unsuitable for multi-class problems like omniglot and age-group classification. ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 411,
1254
+ 825,
1255
+ 510
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "B MODEL CAPACITY AND PERFORMANCE ",
1262
+ "text_level": 1,
1263
+ "bbox": [
1264
+ 174,
1265
+ 530,
1266
+ 537,
1267
+ 546
1268
+ ],
1269
+ "page_idx": 11
1270
+ },
1271
+ {
1272
+ "type": "table",
1273
+ "img_path": "images/4f1ee70ad07989a347e57668ffe84fc239a5c6dcf46e8f69cc375648f9fca301.jpg",
1274
+ "table_caption": [
1275
+ "We list the number of parameters for each model in the first experiment (MNIST, binary one-vs-rest classification) and the performance ( $1 \\%$ training data, mean of error rate for 10-fold CV). "
1276
+ ],
1277
+ "table_footnote": [],
1278
+ "table_body": "<table><tr><td>Model</td><td>Error Rate (%)</td><td>Number of parameters</td><td>Ratio</td></tr><tr><td>STL</td><td>11.52</td><td>4351K</td><td>1.00</td></tr><tr><td>DMTRL-LAF</td><td>8.25</td><td>1632K</td><td>0.38</td></tr><tr><td>DMTRL-Tucker</td><td>9.24</td><td>1740K</td><td>0.40</td></tr><tr><td>DMTRL-TT</td><td>7.31</td><td>2187K</td><td>0.50</td></tr><tr><td>UD-MTL</td><td>9.34</td><td>436K</td><td>0.10</td></tr><tr><td>UD-MTL-Large</td><td>9.39</td><td>1644K</td><td>0.38</td></tr></table>",
1279
+ "bbox": [
1280
+ 263,
1281
+ 602,
1282
+ 733,
1283
+ 704
1284
+ ],
1285
+ "page_idx": 11
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Table 2: Comparison of deep models: Error rate and number of parameters. ",
1290
+ "bbox": [
1291
+ 253,
1292
+ 713,
1293
+ 745,
1294
+ 728
1295
+ ],
1296
+ "page_idx": 11
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "The conventional hard-sharing method (UD-MTL) design is to share all layers except the top layer. Its number of parameter is roughly $1 0 \\%$ of the single task learning method (STL), as most parameters are shared across the 10 tasks corresponding to 10 digits. Our soft-sharing methods also significantly reduce the number of parameters compared to STL, but are larger than UD-MTL’s hard sharing. ",
1301
+ "bbox": [
1302
+ 174,
1303
+ 742,
1304
+ 825,
1305
+ 799
1306
+ ],
1307
+ "page_idx": 11
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "To compare our method to UD-MTL, while controlling for network capacity, we expanded UDMDL by adding more hidden neurons so its number of parameter is close to our methods (denoted UD-MTL-Large). However UD-MDL performance does not increase. This is evidence that our model’s good performance is not simply due to greater capacity than UD-MTL. ",
1312
+ "bbox": [
1313
+ 174,
1314
+ 805,
1315
+ 825,
1316
+ 862
1317
+ ],
1318
+ "page_idx": 11
1319
+ }
1320
+ ]
parse/train/SkhU2fcll/SkhU2fcll_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkhU2fcll/SkhU2fcll_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/XjYgR6gbCEc/XjYgR6gbCEc.md ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MODALS: MODALITY-AGNOSTIC AUTOMATED DATAAUGMENTATION IN THE LATENT SPACE
2
+
3
+ Tsz-Him Cheung & Dit-Yan Yeung Department of Computer Science and Engineering The Hong Kong University of Science and Technology {thcheungae,dyyeung}@cse.ust.hk
4
+
5
+ # ABSTRACT
6
+
7
+ Data augmentation is an efficient way to expand a training dataset by creating additional artificial data. While data augmentation is found to be effective in improving the generalization capabilities of models for various machine learning tasks, the underlying augmentation methods are usually manually designed and carefully evaluated for each data modality separately. These include image processing functions for image data and word-replacing rules for text data. In this work, we propose an automated data augmentation approach called MODALS (Modalityagnostic Automated Data Augmentation in the Latent Space) to augment data for any modality in a generic way. MODALS exploits automated data augmentation to fine-tune four universal data transformation operations in the latent space to adapt the transform to data of different modalities. Through comprehensive experiments, we demonstrate the effectiveness of MODALS on multiple datasets for text, tabular, time-series and image modalities.1
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep learning models tend to perform better with more labeled training data. However, labeled data are usually scarce and expensive to collect. Data augmentation is a promising means to extend the training dataset with new artificial data. In image recognition, image processing functions, like randomized cropping, horizontal flipping, and color shifting, are commonly adopted in modern image recognition models (Krizhevsky et al., 2012; Shorten & Khoshgoftaar, 2019). Following the success of image augmentation, it is becoming increasingly common to apply data augmentation in natural language processing tasks, like machine translation, text classification, and semantic parsing. Various word-based transformations have been proposed to perturb word tokens, such as replacing similar words or phrases, swapping word orders, and inserting or dropping random words (Cheng et al., 2018; S¸ ahin & Steedman, 2018; Wei & Zou, 2019).
12
+
13
+ Over the years, more transformation functions have been proposed to augment different datasets. Cutout randomly occludes a part of an image to avoid overfitting (Devries & Taylor, 2017b). For label-mixing methods, CutMix replaces the occluded part in Cutout by a different image (Yun et al., 2019) and Mixup interpolates two images with their corresponding one-hot encoded labels (Zhang et al., 2018). These methods have been tested and found to be effective in multiple image datasets. Alternatively, new data can be created using deep generative models, for example, using GAN-based approaches to generate new images (Antoniou et al., 2017; Sandfort et al., 2019), conditional pretrained language models to generate training sentences (Kumar et al., 2020), and back-translation to paraphrase sentences by translating sentences to another language and back to the original language (Xie et al., 2020). While these generative approaches are found to be useful, the generators or language models are often hard to implement and are expensive to train. Apart from advancing individual transformations, another line of research studies their optimal composition. As the choice and order of the transformations are decided and tested manually, the success of an augmentation scheme in one dataset may not generalize well to other datasets. To tackle this problem, AutoAugment as an automated data augmentation method was proposed to automate this process by learning an optimal augmentation policy, which decides the probability and magnitude to apply pre-defined transformations (Cubuk et al., 2019).
14
+
15
+ Whether it is for standard augmentation or automated augmentation, the transformation functions are often designed and tested carefully for each data modality separately. While it may be intuitive to create new and valid images using image processing techniques, it is non-trivial to define such label-preserving transformations on discrete data like text data. This prohibits the reuse of augmentation schemes across different data modalities. Beyond supervised learning, there is an increasing trend of utilizing data augmentation to extract information from unlabelled data in unsupervised (Xie et al., 2020) or self-supervised learning tasks (Chen et al., 2020; Grill et al., 2020). These current methods are heavily dependent on existing augmentations in vision applications. In order to generalize these methods to other modalities like text and graph data, there is a need for robust data augmentation for each modality. Therefore, we propose MODALS to apply modality-agnostic automated data augmentation in the latent space. The idea of transforming latent features is inspired by representation learning. For image generation, the work of Upchurch et al. (2017) interpolates images along specific directions in the latent space to add new semantics without changing the class identity, such as adding facial hair to the image of a male face by translating the corresponding latent representation towards the direction of male faces with facial hair. This suggests that augmenting data in the latent space can capture diverse semantic transformations which are usually hard to define in the input space.
16
+
17
+ Augmentation in the latent space poses two main challenges: learning a latent space that is continuous for transformation, and finding the effective directions to traverse. Failing to address them properly may cause an augmented example to lose its original class identity. In the previous work by Devries & Taylor (2017a), the latent space is learned by training an autoencoder, which encodes the input data into a latent vector and decodes it back to the original data. The learned latent representations are then transformed by interpolation, extrapolation, or adding Gaussian noise and decoded as synthetic examples for the downstream tasks. For image data, ISDA estimates the semantic directions by inspecting the feature covariance (Wang et al., 2019). LSI and Manifold Mixup apply Mixup to the latent feature vectors (Liu et al., 2018; Verma et al., 2019).
18
+
19
+ We develop our framework as MODALS. At a high level, MODALS applies latent space augmentation to address the data augmentation problem in multiple data modalities. Instead of improving the model performance in a specific domain or modality, the major focus and novelty of this work is to propose a general automated data augmentation framework that can work for multiple data modalities in a generic way. To the best of our knowledge, such an attempt has not been made by others in the research community. MODALS also differs from the previous approaches in three ways. First, as opposed to other operation-based latent space transformation methods, MODALS is jointly trained with augmentation. As it involves no auxiliary models or additional processes to generate examples, it can be efficiently integrated into the popular deep learning frameworks. Second, we observe that examples that are more uncertain to predict, or considered to be hard in the active learning literature, tend to carry richer information for model training. Therefore, we modify standard latent space transformations to create harder examples in MODALS. Third, MODALS introduces additional loss terms to improve the quality of augmentation in the latent space. In summary, we make four major contributions in this paper:
20
+
21
+ • Propose a framework to apply automated augmentation in the latent space.
22
+ • Propose a novel and effective way to create hard examples.
23
+ • Study additional loss terms to improve label-preserving transformations in the latent space.
24
+ • Evaluate MODALS extensively on classification datasets across multiple data modalities using various deep learning models.
25
+
26
+ # 2 RELATED WORK
27
+
28
+ # 2.1 AUTOMATED DATA AUGMENTATION
29
+
30
+ In practice, multiple transformations are used compositely to augment a dataset. The choice and strength of the transformations affect the model performance on different datasets. Motivated by neural architecture search and reinforcement learning, automated data augmentation formulates the tuning of augmentation parameters as a learning task. AutoAugment trains a child model with the augmentation transformations generated by a controller, which is updated by reinforcement learning using the downstream validation accuracy as the reward signals (Cubuk et al., 2019). To reduce the search effort in AutoAugment, various approaches have been proposed. Population Based Augmentation (PBA) adopts an evolution-based search strategy to simultaneously train and perturb a policy with multiple child models (Ho et al., 2019). RandAugment replaces the augmentation parameters in AutoAugment by uniform values across all transformations and searches for the magnitude and the number of transformations to apply (Cubuk et al., 2020). Adversarial AutoAugment finds an adversarial policy that creates difficult examples (Zhang et al., 2020). Luo et al. (2020) considered a text image recognition task and trained a model to distort the text images to create more difficult examples. In our work, we adopt PBA as the search strategy due to its computation being more efficient than AutoAugment and having a larger parameter space than RandAugment.
31
+
32
+ # 2.2 LATENT SPACE DATA AUGMENTATION
33
+
34
+ Interpolation is a simple but effective way to create new data from existing examples. Mixup can operate on general numerical data by interpolating two training examples and their corresponding one-hot encoded labels (Zhang et al., 2018). Manifold Mixup applies Mixup to the outputs from different hidden layers (Verma et al., 2019); LSI applies Mixup in the latent space for image classification (Liu et al., 2018). Previously, Devries & Taylor (2017a) found that extrapolation between features learned by an autoencoder generates more effective synthetic examples than adding Gaussian noise and interpolation. In their experiments, they suspected that interpolation tightens the class boundaries, which leads to overfitting and harms the performance. For text data, Kumar et al. (2019) explored simple latent space transformations and autoencoder-based methods in few-shot intent classification tasks. In general, it remains an open question which transformation in the latent space creates better augmented examples. We leverage automated data augmentation to find the optimal composition of latent space transformations for a variety of datasets of multiple data modalities.
35
+
36
+ # 2.3 HARD EXAMPLE AUGMENTATION
37
+
38
+ Kuchnik & Smith (2019) show that not all training examples are equally useful for augmentation and propose methods to find a subset of useful data to augment. Similar methods are also proposed by the recent augmentation algorithms, which aim to find the composition of transformations that create difficult examples (Luo et al., 2020; Wu et al., 2020; Zhang et al., 2020). In our work, we propose a novel and simple way to create hard examples using latent space transformation.
39
+
40
+ # 3 METHODOLOGY
41
+
42
+ # 3.1 BRIEF OVERVIEW OF POPULATION BASED AUGMENTATION
43
+
44
+ We first briefly review the policy search procedure of PBA (Ho et al., 2019). In PBA, each augmentation function is associated with its probability and magnitude, for example, the tuple (op: rotation, $p = 0 . 4$ , $\lambda = 0 . 5$ ) specifies that the rotation operation is applied with a probability of 0.4 and a magnitude of 0.5. A policy is a set of such operation tuples. When a policy is applied to a mini-batch, 0, 1 or 2 operation tuples are randomly sampled from the policy and applied to the batch of data with their corresponding probability and magnitude.
45
+
46
+ PBA formulates the augmentation policy search as hyperparameter schedule learning. Instead of a fixed policy, it learns a policy schedule that specifies the augmentation parameters at different stages of training. In particular, PBA exploits population-based training (PBT) to optimize the model weights of multiple child models jointly with their policy parameters that maximize the performance. It starts by simultaneously training a fixed number of randomly-initialized child models, each with its own policy. After certain fixed intervals, the child models are evaluated using the validation set. The worst models clone the weights and policies from the best models. The parameters of the cloned policies are either resampled from all possible values or perturbed from the cloned values. The process repeats until the training of the child models completes. The final output of PBA is a schedule of policies unrolled from the best child model. The policy schedule can be applied to augment the dataset when training with more data or larger models. As there is no need to retrain any child model, PBA is considered to be an efficient automated augmentation algorithm. Our method follows the policy formulation and the search strategy used in PBA.
47
+
48
+ # 3.2 MODALS
49
+
50
+ Our main assumption is that, if learned properly, the region corresponding to a class in the latent space learned by a deep neural network is mostly convex and isotropic. Consequently, linear transformation in such a space would result in a smooth transition from real data to artificial data without altering their class identity. Among other non-trivial properties, data points are often sparsely distributed in high-dimensional spaces such that distance-based methods that work well in lower-dimensional spaces fail to take advantage of the distance metrics (Donoho, 2000). In the supplemental materials, we provide empirical evidence to show that the relatively low-dimensional latent spaces used in our experiments are not anisotropic, especially within the local class regions (see Appendix A.1). In what follows, we introduce the latent space transformations and the training objectives of our model.
51
+
52
+ # 3.2.1 TRANSFORMATIONS
53
+
54
+ Hard example interpolation. Given a seed latent representation $\boldsymbol { z } _ { i } ^ { c }$ , which is the latent representation of the $i$ -th example in class $c$ , we interpolate $\boldsymbol { z } _ { i } ^ { c }$ to a hard example. The hard example is taken as the latent representation nearest to $\boldsymbol { z } _ { i } ^ { c }$ among $q$ hard example candidates sampled according to the classification loss. This favours the creation of harder examples and prevents $\boldsymbol { z } _ { i } ^ { c }$ from being aggressively interpolated to distant locations or regions that are close to the class center. In our implementation, we take $q$ as $5 \%$ of the number of examples in class $c$ . Formally, let ${ \cal S } = \{ s _ { i } \} _ { i = 1 } ^ { q }$ denote the set of hard latent representations sampled according to the magnitude of the loss in class c, s = arg mins∈S ikskkzck denote the closest hard example (red circle in Figure 1a), and $\lambda _ { 1 }$ denote a scaling factor. Hard example interpolation is expressed as:
55
+
56
+ $$
57
+ \hat { z _ { i } ^ { c } } = z _ { i } ^ { c } + \lambda _ { 1 } ( \pmb { s } - \pmb { z } _ { i } ^ { c } )
58
+ $$
59
+
60
+ Hard example extrapolation. The data nearer the class boundaries are more difficult to classify. Instead of extrapolating from random examples, we extrapolate $\boldsymbol { z } _ { i } ^ { c }$ from the class center $\begin{array} { r l } { \pmb { \mu } _ { c } } & { { } = } \end{array}$ $\begin{array} { r } { \frac { 1 } { m } \sum _ { j = 1 } ^ { m } z _ { j } ^ { c } } \end{array}$ with $\lambda _ { 2 }$ as the scaling factor. Hard example extrapolation is thus given by:
61
+
62
+ $$
63
+ \hat { z _ { i } ^ { c } } = z _ { i } ^ { c } + \lambda _ { 2 } ( z _ { i } ^ { c } - \pmb { \mu _ { c } } )
64
+ $$
65
+
66
+ Gaussian Noise. We also perturb $\boldsymbol { z } _ { i } ^ { c }$ by adding Gaussian noise with zero mean and per-element standard deviation computed across the examples in the same class. Let $\epsilon \sim \mathcal { N } ( \mathbf { 0 } , \sigma _ { c } ^ { 2 } \mathbf { \bar { I } } )$ and $\lambda _ { 3 }$ be the scaling factor, we have:
67
+
68
+ $$
69
+ \hat { z _ { i } ^ { c } } = z _ { i } ^ { c } + \lambda _ { 3 } \epsilon
70
+ $$
71
+
72
+ Difference Transform. Difference transform is an alternative way to perturb $\boldsymbol { z } _ { i } ^ { c }$ by translating $\boldsymbol { z } _ { i } ^ { c }$ along the direction between two random latent vectors sampled from the same class. Denoting the scaling factor as $\lambda _ { 4 }$ , the difference transform can be written as:
73
+
74
+ $$
75
+ \hat { z _ { i } ^ { c } } = z _ { i } ^ { c } + \lambda _ { 4 } ( z _ { j } ^ { c } - z _ { k } ^ { c } )
76
+ $$
77
+
78
+ These four latent space transformations are illustrated in Figure 1.
79
+
80
+ # 3.2.2 MODEL
81
+
82
+ Instead of training an autoencoder to learn the latent space and generate additional synthetic data for training, we train a classification model jointly with different compositions of latent space augmentations. Given an input space $\mathbb { X }$ , a latent space $\mathbb { Z }$ , and a label space $\mathbb { Y }$ , MODALS trains a feature extraction model $F ( \pmb { x } ; \pmb { \theta } ) : \mathbb { X } \mathbb { Z }$ and a dense layer to map $\mathbb { Z } \to \mathbb { Y }$ . The $i$ -th example $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ is mapped to its latent representation $z _ { i } = F ( \pmb { x } _ { i } )$ and further augmented by a composition of label-preserving transform functions to obtain the augmented latent representation $\hat { z } _ { i } \in \mathbb { Z }$ . We optimize the softmax cross-entropy loss among $k$ classes with $\pmb { W } = [ \pmb { w } _ { 1 } , . . . , \pmb { w } _ { k } ]$ as the weights of the final dense layer and $M$ as the batch size. The classification loss is given by:
83
+
84
+ ![](images/9eabc981aacd27da22da178278bc5abdca6d6be754fb0f78e62d1338f14c0463.jpg)
85
+ Figure 1: Illustration of (a) hard example interpolation, (b) hard example extrapolation, (c) Gaussian noise, and (d) difference transform (triangle: seed latent representation; circle outline: class boundary; black circle: sampled feature; red circle: nearest sampled hard example; square: class mean; dotted line: range of augmented example)
86
+
87
+ $$
88
+ L _ { c l f } ( W , \pmb \theta ) = - \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \log \frac { \exp ( \pmb w _ { y _ { i } } ^ { \top } \hat { z } _ { i } ) } { \sum _ { j = 1 } ^ { k } \exp ( \pmb w _ { j } ^ { \top } \hat { z } _ { i } ) }
89
+ $$
90
+
91
+ In addition to the classification loss, we further employ two additional loss terms to improve the augmentation results. The effect of these two losses will be discussed in Appendix A.2.
92
+
93
+ Adversarial Loss. Sampling in a high-dimensional latent space may fall into invalid regions that are not on the data manifold. In order to produce smooth morphing between sampled latent codes, there are well-studied techniques to enforce a posterior distribution over the latent variables using VAE or GAN-based methods (Kingma & Welling, 2014; Goodfellow et al., 2014). In MODALS, we regularize the latent space by imposing an adversarial loss similar to Adversarial Autoencoder (Makhzani et al., 2016). In particular, we employ a discriminator $D ( z ; \phi )$ to distinguish the latent code generated by the feature extraction model and sampled from the Gaussian distribution. The feature extraction model has to generate latent representations that are similar to the Gaussian distribution to fool the discriminator. This leads to the adversarial objective $L _ { a d v } ( \pmb { \theta } )$ for the feature extraction model and the discriminator loss $L _ { D } ( \phi )$ for the discriminator:
94
+
95
+ $$
96
+ L _ { a d v } ( \pmb \theta ) = - \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \log D ( z _ { i } )
97
+ $$
98
+
99
+ $$
100
+ L _ { D } ( \phi ) = - \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \left( \log D ( \epsilon _ { i } ) + \log [ 1 - D ( z _ { i } ) ] \right) ; \forall i , \epsilon _ { i } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } )
101
+ $$
102
+
103
+ Triplet Loss. Triplet loss is often used in metric learning to learn the latent representations of different classes (Schroff et al., 2015). Triplet loss pulls together the representations from the same class and repels the ones from different classes. We argue that this characteristic facilitates labelpreserving augmentation in the latent space. Intuitively, the data outside the convex hull of the training samples are less likely to correspond to valid data of the same class. As a result of using the triplet loss, the distribution of the latent representations in the same class will be more compact. Interpolating, extrapolating or perturbing latent representations in this denser region is more likely to result in an augmented example sharing the same class identity. In theory, alternative measures, e.g., center loss (Wen et al., 2016), large margin softmax loss (Liu et al., 2016), or other contrastive losses, can also produce similar effects. For simplicity, we use the triplet loss in our implementation: for each anchor latent representation $_ z$ , we randomly sample a positive latent representation $z ^ { + }$ from the same class and a negative representation $z ^ { - }$ from a different class in the same mini-batch. We denote the margin as $\gamma$ and the cosine distance function as $d ( \cdot )$ . The triplet loss $L _ { t r i } ( \pmb { \theta } )$ is given by:
104
+
105
+ $$
106
+ L _ { t r i } ( \pmb \theta ) = \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \left[ d ( z _ { i } , z _ { i } ^ { + } ) - d ( z _ { i } , z _ { i } ^ { - } ) + \gamma \right] _ { + }
107
+ $$
108
+
109
+ ![](images/a58a8486263a6a0b1e9d46324637b2d7c1d641d49fbe2277954f9a67fdb9fea9.jpg)
110
+ Figure 2: MODALS ( $z .$ : seed latent representation; $\hat { z }$ : augmented latent representation; black line: forward propagation; red line: gradient flow from $\boldsymbol { L _ { c l f } }$ ; green line: gradient flow from $L _ { t r i }$ ; orange line: gradient flow from $L _ { a d v }$ ; blue line: reward signal; grey line: gradient flow from $L _ { D }$ .)
111
+
112
+ MODALS is trained by minimizing the combined loss ${ \cal L } = { \cal L } _ { c l f } + \alpha { \cal L } _ { a d v } + \beta { \cal L } _ { t r i }$ , where $\alpha$ and $\beta$ are predefined hyperparameters. Figure 2 shows the overall architecture of MODALS : For each mini-batch, a feature extraction model maps the input data to their latent representations. The representations are used to compute the adversarial and triplet losses, and also augmented to obtain the classification loss and validation accuracy. The combined loss $L$ is back-propagated to the feature extraction network while the validation accuracy is treated as the reward signal to update the policy.
113
+
114
+ # 3.2.3 POLICY SEARCH
115
+
116
+ We apply the PBA policy search strategy to the latent representations with the four proposed transformations. We define four latent space transformations with probability ranging from 0 to 1 and magnitude $\lambda$ ranging from 0 to 0.9, both in intervals of 0.1. As the same operation can be applied twice, the search space is of size $( 1 0 \times 1 1 ) ^ { 8 } \approx 2 . 1 4 \times 1 0 ^ { 1 6 }$ . The total computation cost is the cost to train a single model multiplied by the number of parallel models.
117
+
118
+ # 4 EXPERIMENTS
119
+
120
+ To demonstrate the modality-agnostic property of MODALS, we evaluate it using datasets from four different data modalities: text, tabular, time-series, and image data. For each dataset, we search for the optimal augmentation schedule using PBT with 16 parallel models perturbing every three epochs. The searched policy schedule is applied to the dataset with different numbers of training examples. We implement the discriminator as a 2-layer multilayer perceptron (MLP) model with 256 hidden units in each layer. In all experiments, we set $\alpha = 1$ , $\beta = 0 . 0 3$ and search for the metric margin value from $\{ \ r _ { 0 . 5 , 1 , 2 , 4 , 8 } \}$ . We compare our method with baseline methods that do not involve training an auxiliary model. In particular, we construct the baseline models trained with well-defined input-space augmentation in the data modality and label-mixing augmentation. We report the average classification accuracy from three trials with the baselines. The detailed configuration and policy of each experiment are provided in Appendix A.3.
121
+
122
+ # 4.1 TEXT DATA
123
+
124
+ We test MODALS on the SST2 (Socher et al., 2013) and TREC6 (Li & Roth, 2002) datasets, which are popular benchmarks for binary and multi-class text classification tasks. SST2 is a binary sentiment classification dataset with 6,920 training examples, while TREC6 is a question classification dataset with 5,452 training examples from six question classes. We employ a 2-layer bidirectional
125
+
126
+ LSTM using fixed pre-trained 300-dimensional GloVe as the word embedding (Pennington et al., 2014). The hidden state dimensionality of the model is 256. The first baseline is trained without augmentation. We construct the second baseline by applying manually designed input-space augmentations proposed as easy data augmentation (EDA) techniques in (Wei & Zou, 2019). In this baseline, seed sentences are cloned multiple times, where each cloned sentence is transformed by replacing synonyms, inserting synonyms, deleting random word, or swapping word order. The baseline follows the configurations suggested by EDA for datasets of different sizes. We construct the third baseline using senMixup, which applies mixup augmentation in the last hidden layer before the softmax layer (Guo et al., 2019). We also include the fourth and fifth baselines which use back-translation augmentation. The back-translation baselines are implemented using the Google Translate API to translate the original text to German (DE) or Spanish (ES) and back to English. Then, the model is trained on the back-translated text with the original text. Our experiments show that MODALS outperforms the other baseline methods in five of the settings and is comparable with back-translation (ES) in the TREC6 dataset. While EDA, senMixup and back-translation also show improvement on the full datasets, senMixup and back-translation sometimes slightly underperform the first baseline when the dataset size is small (see Table 1).
127
+
128
+ Table 1: Comparison of five baselines (training without augmentation, EDA, senMixup, backtranslation from German and back-translation from Spanish) with MODALS on two text datasets for different amounts of training examples (s: $10 \%$ , m: $50 \%$ )
129
+
130
+ <table><tr><td></td><td>w/o Aug.</td><td>EDA</td><td>senMixup</td><td>BT (DE)</td><td>BT (ES)</td><td>MODALS</td></tr><tr><td>SST2 (s)</td><td>73.01</td><td>74.52</td><td>73.27</td><td>73.49</td><td>73.04</td><td>75.67</td></tr><tr><td>SST2 (m)</td><td>79.70</td><td>79.77</td><td>79.50</td><td>79.52</td><td>79.48</td><td>81.35</td></tr><tr><td>SST2</td><td>81.91</td><td>82.97</td><td>82.85</td><td>82.90</td><td>83.32</td><td>84.14</td></tr><tr><td>TREC6 (s)</td><td>81.10</td><td>81.10</td><td>78.06</td><td>81.20</td><td>80.40</td><td>83.20</td></tr><tr><td>TREC6 (m)</td><td>90.44</td><td>91.13</td><td>88.67</td><td>92.47</td><td>92.27</td><td>93.00</td></tr><tr><td>TREC6</td><td>92.67</td><td>93.26</td><td>93.07</td><td>93.60</td><td>94.00</td><td>94.00</td></tr></table>
131
+
132
+ # 4.2 TABULAR DATA
133
+
134
+ We also perform an experiment with multiple tabular datasets from the UCI repository (Dua & Graff, 2017), including the Iris, Breast Cancer, Arcene (Guyon et al., 2005), Abalone, and HTRU2 (Lyon et al., 2016) datasets. The data are standardized and trained with a 2-layer MLP that encodes the inputs to 128-dimensional latent codes. We compare the accuracy with baseline methods using no augmentation and using Mixup. The experiment is repeated with different numbers of training examples. Table 2 shows that MODALS outperforms the baseline methods in 13 out of 15 settings. In the remaining two settings, MODALS achieves the same performance as Mixup augmentation.
135
+
136
+ Table 2: Comparison of two baselines (training without augmentation and Mixup) with MODALS on five tabular datasets for different amounts of training examples (s: $20 \%$ , m: $50 \%$ )
137
+
138
+ <table><tr><td>Dataset</td><td>w/o Aug.</td><td>Mixup</td><td>MODALS</td></tr><tr><td>Iris (s)</td><td>86.67</td><td>86.67</td><td>96.67</td></tr><tr><td>Iris (m)</td><td>96.67</td><td>98.00</td><td>98.67</td></tr><tr><td>Iris</td><td>96.67</td><td>98.89</td><td>98.89</td></tr><tr><td>B.Cancer (s)</td><td>95.32</td><td>95.61</td><td>96.67</td></tr><tr><td>B.Cancer (m)</td><td>96.78</td><td>97.08</td><td>97.37</td></tr><tr><td>B.Cancer</td><td>96.78</td><td>97.66</td><td>99.41</td></tr><tr><td>Arcene (s)</td><td>64.33</td><td>69.67</td><td>71.00</td></tr><tr><td>Arcene (m)</td><td>78.00</td><td>78.00</td><td>79.33</td></tr><tr><td>Arcene</td><td>83.33</td><td>83.33</td><td>83.67</td></tr></table>
139
+
140
+ <table><tr><td>Dataset</td><td>w/o Aug.</td><td>Mixup</td><td>MODALS</td></tr><tr><td>Abalone (s)</td><td>62.80</td><td>62.84</td><td>63.40</td></tr><tr><td>Abalone (m)</td><td>64.04</td><td>64.67</td><td>64.95</td></tr><tr><td>Abalone</td><td>64.59</td><td>65.67</td><td>65.71</td></tr><tr><td>HTRU2 (s)</td><td>97.78</td><td>97.85</td><td>98.10</td></tr><tr><td>HTRU2 (m)</td><td>98.01</td><td>98.03</td><td>98.14</td></tr><tr><td>HTRU2</td><td>98.04</td><td>98.16</td><td>98.16</td></tr></table>
141
+
142
+ # 4.3 TIME-SERIES DATA
143
+
144
+ For time-series data, we use the HAR (Anguita et al., 2013) and Malware (Catak, 2019) datasets. HAR and Malware belong to continuous and discrete time-series data, respectively. The input of the HAR dataset consists of multiple continuous smartphone accelerometer and gyroscope readings for six human activities. The input of the Malware dataset consists of sequences of discrete events, specifically, the API call sequences of eight malwares. For both datasets, we train an LSTM model to encode the time-series data as 128-dimensional feature vectors and apply MODALS. MODALS performs the best in all cases (see Table 3).
145
+
146
+ Table 3: Comparison of two baselines (training without augmentation and Mixup) with MODALS on two tabular datasets for different amounts of training examples (s: $10 \%$ , m: $50 \%$ )
147
+
148
+ <table><tr><td>Dataset</td><td>w/o Aug.</td><td>Mixup</td><td>MODALS</td></tr><tr><td>HAR (s)</td><td>49.93</td><td>52.20</td><td>57.71</td></tr><tr><td>HAR (m)</td><td>85.44</td><td>86.05</td><td>89.06</td></tr><tr><td>HAR</td><td>88.64</td><td>91.60</td><td>91.87</td></tr></table>
149
+
150
+ <table><tr><td>Dataset</td><td>w/o Aug.</td><td>Mixup</td><td>MODALS</td></tr><tr><td>Malware (s)</td><td>79.24</td><td>81.14</td><td>84.07</td></tr><tr><td>Malware (m)</td><td>84.76</td><td>85.57</td><td>86.24</td></tr><tr><td>Malware</td><td>86.40</td><td>87.01</td><td>87.12</td></tr></table>
151
+
152
+ # 4.4 IMAGE DATA
153
+
154
+ For image data, we apply MODALS to CIFAR-10, SVHN, and the reduced versions of these two datasets, as in (Ho et al., 2019). CIFAR-10 and its reduced version contain 50,000 and 4,000 training images, respectively, while SVHN and its reduced version contain 73,537 and 1,000 training images, respectively. We use Wide-ResNet-40-2 as the feature extraction model in all experiments (Zagoruyko & Komodakis, 2016). We compare our method against three baselines. For the first baseline, we apply randomized cropping, horizontal flipping, and color normalization. For the second baseline, Cutout randomly occludes a patch of size $1 6 \times 1 6$ from the image on top of the simple augmentation in the first baseline. The third baseline is PBA, which uses the same search strategy as MODALS. Both PBA and MODALS are deployed with their corresponding searched policy schedules on top of Cutout. On the two original and the two reduced datasets, MODALS outperforms simple augmentation and Cutout but underperforms PBA (see Table 4). We suspect that the input-space augmentations used in PBA are able to cover most variations in these datasets due to the continuous nature of image data. As the input-space augmentations are independent of the latent space augmentations, it is possible to combine PBA with MODALS by jointly searching the optimal augmentation policy parameters to further improve the results.
155
+
156
+ Table 4: Comparison of three baselines (training with simple augmentation, Cutout, and PBA) with MODALS on two image datasets for different amounts of training examples
157
+
158
+ <table><tr><td>Dataset</td><td> Simple Aug.</td><td>Cutout</td><td>PBA</td><td>MODALS</td></tr><tr><td>Reduced CIFAR-10</td><td>75.62</td><td>78.90</td><td>81.00</td><td>79.36</td></tr><tr><td>CIFAR-10</td><td>92.04</td><td>92.48</td><td>92.72</td><td>92.51</td></tr><tr><td>Reduced SVHN</td><td>76.17</td><td>76.83</td><td>83.52</td><td>81.23</td></tr><tr><td>SVHN</td><td>96.37</td><td>96.14</td><td>96.54</td><td>96.46</td></tr></table>
159
+
160
+ # 5 ABLATION STUDY
161
+
162
+ Latent space augmentation. We study the effect of latent space augmentation techniques in MODALS. We remove the latent space augmentation to isolate the effect from applying the triplet loss and adversarial loss. Table 5 summarizes the performance of MODALS across eight datasets from different modalities. Our study shows that the use of latent space augmentation contributes to additional performance gain when trained with different loss objectives. The detailed breakdown is listed in Appendix A.2.
163
+
164
+ Additional losses. We perform an ablation study against the baseline models trained with different loss settings on eight datasets. Both the triplet loss and adversarial loss improves the performance when training with latent space augmentation (see Table 5). In Appendix A.2.1, we provide the details and evidence showing that the triplet loss enforces more compact local class regions to preserve the class labels when applying latent space augmentation.
165
+
166
+ Table 5: Comparison of average accuracy when trained under different loss settings and augmentation techniques
167
+
168
+ <table><tr><td></td><td>Lclf</td><td>Lclf+Ladu</td><td>Lclf+Ltri</td><td>Lclf +Ladu+Ltri</td></tr><tr><td>w/ Aug.</td><td>86.35</td><td>88.18</td><td>88.37</td><td>89.12 (MODALS)</td></tr><tr><td>w/o Aug.</td><td>84.71</td><td>86.64</td><td>86.74</td><td>87.69</td></tr></table>
169
+
170
+ Hard examples. We study the effectiveness of our proposed hard augmentation in creating uncertain examples on eight datasets. Taking the difference of the predicted probability between the most likely and second most likely labels as a measurement of prediction certainty, our study shows that the proposed hard example interpolation and extrapolation create $7 . 2 3 \%$ and $2 . 3 4 \%$ , respectively, less certain examples on average (see Table 6). We further validate that the augmented examples improve the classification performance on hard examples (see Appendix A.2.2, A.2.3).
171
+
172
+ Table 6: Comparison of average change in prediction certainty when applied with and without hard augmentation
173
+
174
+ <table><tr><td>w/o Aug.</td><td>+Hard Interpolation</td><td>+Hard Extrapolation</td></tr><tr><td>0.7093</td><td>0.6581 (-7.22%)</td><td>0.6927 (-2.34%)</td></tr></table>
175
+
176
+ # 6 CONCLUSION
177
+
178
+ In this paper, we introduce MODALS to apply automated data augmentation in the latent space using four proposed modality-agnostic transformations trained with additional loss metrics and hard example augmentation techniques. Our method is tested on text, tabular, time-series, and image data and can be readily integrated with popular deep learning models. Beyond the data modalities tested, MODALS also work on all other data modalities given proper feature extraction models. We believe that MODALS makes larger improvements to data modalities in which the input space augmentation is less trivial to be defined, like text data, video data or even graph data in low-resource regimes.
179
+
180
+ # ACKNOWLEDGMENTS
181
+
182
+ This research has been made possible by the Hong Kong PhD Fellowship provided to the first author and research grants (General Research Fund project 16204720 and Collaborative Research Fund project C6030-18GF from the Research Grants Council of Hong Kong; Amazon Web Services Machine Learning Research Award 2020) provided to the second author.
183
+
184
+ # REFERENCES
185
+
186
+ Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra, and Jorge Luis Reyes-Ortiz. A public domain dataset for human activity recognition using smartphones. In 21st European Symposium on Artificial Neural Networks, 2013.
187
+
188
+ Antreas Antoniou, Amos J. Storkey, and Harrison Edwards. Data augmentation generative adversarial networks. arXiv preprint arXiv: 1711.04340, 2017.
189
+
190
+ Ferhat Ozgur Catak. Malware API call dataset, 2019. URL http://dx.doi.org/10.21227/ crfp-kd68.
191
+
192
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 1597– 1607, 2020.
193
+
194
+ Yong Cheng, Zhaopeng Tu, Fandong Meng, Junjie Zhai, and Yang Liu. Towards robust neural machine translation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1756–1766, 2018.
195
+
196
+ Ekin D. Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V. Le. AutoAugment: Learning augmentation strategies from data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 113–123, 2019.
197
+
198
+ Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. RandAugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 3008–3017, 2020.
199
+
200
+ Terrance Devries and Graham W. Taylor. Dataset augmentation in feature space. arXiv preprint arXiv:1702.05538, 2017a.
201
+
202
+ Terrance Devries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017b.
203
+
204
+ David L. Donoho. High-dimensional data analysis: The curses and blessings of dimensionality. In AMS Conference on Math Challenges of the 21st Century, 2000.
205
+
206
+ Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml.
207
+
208
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems 27, pp. 2672–2680. 2014.
209
+
210
+ Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tallec, Pierre H. Richemond, Elena ´ Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, ´ Bilal Piot, Koray Kavukcuoglu, Remi Munos, and Michal Valko. Bootstrap your own latent - ´ A new approach to self-supervised learning. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, 2020.
211
+
212
+ Hongyu Guo, Yongyi Mao, and Richong Zhang. Augmenting data with Mixup for sentence classification: An empirical study. arXiv preprint arXiv:1905.08941, 2019.
213
+
214
+ Isabelle Guyon, Steve Gunn, Asa Ben-Hur, and Gideon Dror. Result analysis of the NIPS 2003 feature selection challenge. In Advances in Neural Information Processing Systems 17, pp. 545– 552. 2005.
215
+
216
+ Daniel Ho, Eric Liang, Xi Chen, Ion Stoica, and Pieter Abbeel. Population based augmentation: Efficient learning of augmentation policy schedules. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2731–2741, 2019.
217
+
218
+ Diederik P. Kingma and M. Welling. Auto-encoding variational bayes. International Conference on Learning Representations, 2014.
219
+
220
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25, pp. 1097– 1105. 2012.
221
+
222
+ Michael Kuchnik and Virginia Smith. Efficient augmentation via data subsampling. In International Conference on Learning Representations, 2019.
223
+
224
+ Varun Kumar, Hadrien Glaude, Cyprien de Lichy, and William Campbell. A closer look at feature space data augmentation for few-shot intent classification. In Proceedings of the 2nd Workshop on Deep Learning Approaches for Low-Resource NLP, DeepLo@EMNLP-IJCNLP 2019, pp. 1–10, 2019.
225
+
226
+ Varun Kumar, Ashutosh Choudhary, and Eunah Cho. Data augmentation using pre-trained transformer models. arXiv preprint arXiv:2003.02245, 2020.
227
+
228
+ Xin Li and Dan Roth. Learning question classifiers. In The 19th International Conference on Computational Linguistics, 2002.
229
+
230
+ Weiyang Liu, Yandong Wen, Zhiding Yu, and Meng Yang. Large-margin softmax loss for convolutional neural networks. In Proceedings of the 33nd International Conference on Machine Learning, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pp. 507–516, 2016.
231
+
232
+ Xiaofeng Liu, Yang Zou, Lingsheng Kong, Zhihui Diao, Junliang Yan, Jun Wang, Site Li, Ping Jia, and Jane You. Data augmentation via latent space interpolation for image classification. In 2018 24th International Conference on Pattern Recognition, pp. 728–733, 2018.
233
+
234
+ Canjie Luo, Yuanzhi Zhu, Lianwen Jin, and Yongpan Wang. Learn to augment: Joint data augmentation and network optimization for text recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13743–13752, 2020.
235
+
236
+ R. J. Lyon, B. Stappers, S. Cooper, J. M. Brooke, and Joshua D. Knowles. Fifty years of pulsar candidate selection: from simple filters to a new principled real-time classification approach. Monthly Notices of the Royal Astronomical Society, 459(1):1104–1123, 2016.
237
+
238
+ Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, and Ian J. Goodfellow. Adversarial Autoencoders. International Conference on Learning Representations, 2016.
239
+
240
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, pp. 1532–1543, 2014.
241
+
242
+ Gozde G ¨ ul S¸ ahin and Mark Steedman. Data augmentation via dependency tree morphing for low- ¨ resource languages. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 5004–5009, 2018.
243
+
244
+ Veit Sandfort, Ke Yan, Perry J. Pickhardt, and Ronald M. Summers. Data augmentation using generative adversarial networks (CycleGAN) to improve generalizability in CT segmentation tasks. Scientific Reports, 9(1), 2019.
245
+
246
+ Tobias Scheffer, Christian Decomain, and Stefan Wrobel. Active hidden Markov models for information extraction. In Proceedings of the 4th International Conference on Advances in Intelligent Data Analysis, IDA’01, pp. 309–318, 2001.
247
+
248
+ Florian Schroff, Dmitry Kalenichenko, and James Philbin. FaceNet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 815–823, 2015.
249
+
250
+ Connor Shorten and Taghi M. Khoshgoftaar. A survey on image data augmentation for deep learning. Journal of Big Data, 6(1):60, 2019.
251
+
252
+ Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 1631–1642, 2013.
253
+
254
+ Paul Upchurch, Jacob R. Gardner, Geoff Pleiss, Kavita Bala, Robert Pless, Noah Snavely, and Kilian Q. Weinberger. Deep feature interpolation for image content changes. 2017 IEEE Conference on Computer Vision and Pattern Recognition, pp. 6090–6099, 2017.
255
+
256
+ Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold Mixup: Better representations by interpolating hidden states. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of $P r o$ - ceedings of Machine Learning Research, pp. 6438–6447, 2019.
257
+
258
+ Yulin Wang, Xuran Pan, Shiji Song, Hong Zhang, Gao Huang, and Cheng Wu. Implicit semantic data augmentation for deep networks. In Advances in Neural Information Processing Systems 32, pp. 12635–12644. 2019.
259
+
260
+ Jason Wei and Kai Zou. EDA: Easy data augmentation techniques for boosting performance on text classification tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, pp. 6382–6388, 2019.
261
+
262
+ Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In Computer Vision - ECCV 2016 - 14th European Conference, volume 9911 of Lecture Notes in Computer Science, pp. 499–515, 2016.
263
+
264
+ Sen Wu, Hongyang Zhang, Gregory Valiant, and Christopher Re. On the generalization effects of linear transformations in data augmentation. In Proceedings of Machine Learning and Systems 2020, pp. 3493–3503. 2020.
265
+
266
+ Qizhe Xie, Zihang Dai, Eduard H. Hovy, Thang Luong, and Quoc Le. Unsupervised data augmentation for consistency training. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, 2020.
267
+
268
+ Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint arXiv:1905.04899, 2019.
269
+
270
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Proceedings of the British Machine Vision Conference, pp. 87.1–87.12, 2016.
271
+
272
+ Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. Mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018.
273
+
274
+ Xinyu Zhang, Qiang Wang, Jian Zhang, and Zhao Zhong. Adversarial AutoAugment. In International Conference on Learning Representations, 2020.
275
+
276
+ # A APPENDIX
277
+
278
+ # A.1 VALIDITY OF ISOTROPIC ASSUMPTION IN THE LATENT SPACE
279
+
280
+ Due to the curse of dimensionality, high-dimensional vectors are usually sparsely distributed. Let us consider a high-dimensional hypersphere with data points evenly distributed inside the hypersphere. As the dimensionality increases, it can be shown that the percentage of data points residing near the surface of the hypersphere will increase significantly. This contradicts our common perception for low-dimensional spaces, such as two- or three-dimensional spaces. Worse still, in case the phenomenon indeed holds, the isotropic assumption about the region of a class will be violated. As such, we want to conduct an experiment to see if there is evidence revealing the occurrence of this unusual phenomenon. Specifically, we study the spread of data points in the latent spaces of different dimensionality used. For each class $c$ of size $m$ , we compute the normalized distances $\{ r _ { i } ^ { c } \} _ { i = 1 } ^ { m }$ from the class mean $\pmb { \mu } _ { c }$ to the latent representations $\{ z _ { i } ^ { c } \} _ { i = 1 } ^ { m }$ :
281
+
282
+ $$
283
+ r _ { i } ^ { c } = \frac { \ell _ { 2 } ( z _ { i } ^ { c } , \pmb { \mu } _ { c } ) } { \frac { 1 } { m } \sum _ { j = 1 } ^ { m } \ell _ { 2 } ( z _ { j } ^ { c } , \pmb { \mu } _ { c } ) }
284
+ $$
285
+
286
+ We repeat the experiment on one dataset for each of the four data modalities. Table 7 reports the average standard deviation of the normalized distances for all classes. The average standard deviation in all datasets shows a decreasing trend as the dimensionality increases, falling between 0.25 to 0.75 for a dimensionality of 128 or 256. In case the unusual phenomenon as described above really holds so that most of the data points have similar distances from their class center, we would expect the standard deviation to be very small or even close to zero. Our experiment shows that this is not the case especially for lower latent space dimensionality.
287
+
288
+ Table 7: Average standard deviation of the normalized distances for all classes as the latent space dimensionality $d$ varies
289
+
290
+ <table><tr><td>d</td><td>SST2</td><td>TREC6</td><td>CIFAR-10</td><td>SVHN</td><td>IRIS</td><td>B. Cancer</td><td>HAR</td><td>Malware</td></tr><tr><td>2</td><td>0.7801</td><td>0.8684</td><td>0.6068</td><td>0.6273</td><td>0.6688</td><td>0.8229</td><td>1.0847</td><td>0.6233</td></tr><tr><td>4</td><td>0.7592</td><td>0.7664</td><td>0.4286</td><td>0.5458</td><td>0.6507</td><td>0.6229</td><td>1.1415</td><td>0.4831</td></tr><tr><td>8</td><td>0.7688</td><td>0.6725</td><td>0.4059</td><td>0.6125</td><td>0.8674</td><td>0.6289</td><td>0.9768</td><td>0.3983</td></tr><tr><td>16</td><td>0.7774</td><td>0.6600</td><td>0.3789</td><td>0.5639</td><td>0.5668</td><td>0.5267</td><td>0.8000</td><td>0.3409</td></tr><tr><td>32</td><td>0.7812</td><td>0.6161</td><td>0.3783</td><td>0.5496</td><td>0.5642</td><td>0.5286</td><td>1.0814</td><td>0.3078</td></tr><tr><td>64</td><td>0.7747</td><td>0.5743</td><td>0.3829</td><td>0.5007</td><td>0.5526</td><td>0.4694</td><td>0.6396</td><td>0.2793</td></tr><tr><td>128</td><td>0.7534</td><td>0.5206</td><td>0.3799</td><td>0.4639</td><td>0.5568</td><td>0.3329</td><td>0.8639</td><td>0.2590</td></tr><tr><td>256</td><td>0.7297</td><td>0.4791</td><td>0.3709</td><td>0.4681</td><td>0.5407</td><td>0.4826</td><td>0.6127</td><td>0.2500</td></tr></table>
291
+
292
+ # A.2 ABLATION STUDY
293
+
294
+ Table 8: Summary of the performance under different settings (Aug.: latent space augmentation; $\boldsymbol { L _ { a d v } }$ : adversarial loss; $L _ { t r i }$ : triplet loss)
295
+
296
+ <table><tr><td>Datasets</td><td>MODALS</td><td>- Aug.</td><td>-Ladu</td><td>-Ltri</td><td>-Ladu -Ltri</td></tr><tr><td>TREC6</td><td>94.00</td><td>92.33</td><td>93.60</td><td>93.20</td><td>91.60</td></tr><tr><td>SST2</td><td>84.14</td><td>81.36</td><td>83.54</td><td>82.28</td><td>82.01</td></tr><tr><td>Iris</td><td>98.89</td><td>96.67</td><td>97.78</td><td>98.89</td><td>97.78</td></tr><tr><td>B.Cancer</td><td>99.41</td><td>98.83</td><td>99.41</td><td>98.83</td><td>97.36</td></tr><tr><td>Reduced CIFAR-10</td><td>79.36</td><td>79.40</td><td>78.88</td><td>79.33</td><td>74.68</td></tr><tr><td>Reduced SVHN</td><td>81.23</td><td>80.65</td><td>79.25</td><td>78.12</td><td>74.01</td></tr><tr><td>HAR</td><td>91.87</td><td>89.01</td><td>91.72</td><td>90.81</td><td>90.96</td></tr><tr><td>Malware (s)</td><td>84.07</td><td>83.27</td><td>82.76</td><td>83.94</td><td>82.46</td></tr><tr><td>Average</td><td>89.12</td><td>87.69</td><td>88.37</td><td>88.18</td><td>86.36</td></tr><tr><td>Change</td><td></td><td>-1.63%</td><td>-0.85%</td><td>-1.07%</td><td>-3.20%</td></tr><tr><td>(cont&#x27;)</td><td></td><td>- Aug.</td><td>- Aug.</td><td>- Aug.</td><td></td></tr><tr><td>TREC6</td><td>94.00</td><td>-Ltri-Ladu 82.67</td><td>-Ladu 92.60</td><td>-Ltri</td><td></td></tr><tr><td>SST2</td><td>84.14</td><td>81.91</td><td>82.15</td><td>92.33 79.52</td><td></td></tr><tr><td>Iris</td><td>98.89</td><td>96.67</td><td>96.67</td><td>96.67</td><td></td></tr><tr><td>B.Cancer</td><td>99.41</td><td>96.78</td><td>97.95</td><td>97.67</td><td></td></tr><tr><td>Reduced CIFAR-10</td><td>79.36</td><td>75.62</td><td>78.06</td><td>79.02</td><td></td></tr><tr><td>Reduced SVHN</td><td>81.23</td><td>76.17</td><td>77.72</td><td>78.07</td><td></td></tr><tr><td>HAR</td><td>91.87</td><td></td><td></td><td></td><td></td></tr><tr><td>Malware (s)</td><td>84.07</td><td>88.64 79.24</td><td>89.36 79.39</td><td>88.59 81.21</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Average</td><td>89.12</td><td>84.71</td><td>86.74</td><td>86.64</td><td></td></tr><tr><td>Change</td><td>1</td><td>-5.20%</td><td>-2.75%</td><td>-2.87%</td><td></td></tr></table>
297
+
298
+ # A.2.1 LOSS
299
+
300
+ Here, we study the effect of using additional loss metrics for data augmentation in the latent space.
301
+ We repeat our previous experiments by removing one or both of the triplet and adversarial losses.
302
+
303
+ Table 8 shows that adding the proposed loss metrics improves the classification performance across all datasets of different modalities.
304
+
305
+ We further analyze the effect of the triplet loss in the augmentation context. Using the triplet loss forces the distribution of data points in the same class to be more compact. Consequently, the local class region becomes more convex and isotropic and hence facilitates smoother label-preserving transformation. We validate our conjecture by constraining the latent space to two dimensions to facilitate visualizing the data points (see Figure 3). Without the triplet loss, some class regions overlap and appear in less regular shapes. When the triplet loss is used, the class regions become more compact and appear in more circular shapes as observed from the coordinate axes and the visualization plots. This favors the convex and isotropic assumption in Section 2 of the paper when we propose to apply linear transformation on the feature vectors in local class regions. As the classes are better separated, the transformation can better preserve the original class labels.
306
+
307
+ ![](images/a0729706d17cf7ff148323d2f690b4d7d79885c890905a332b14397e218d35c5.jpg)
308
+ Figure 3: Visualization of data points in the latent space for the TREC6 dataset
309
+
310
+ In addition to visualizing the data points qualitatively, we also provide quantitative measurements in Table 9 to show the separation between and within the class regions for higher dimensionality. Specifically, we measure the average within-class distance and between-class distance of the latent representations when training with and without the triplet loss. Our study shows that the average within-class distance with the triplet loss is smaller, resulting in a more compact class region. The ratio of between-class and within-class distances suggests a better separation between class regions rather than solely the scaling effect. Similar observations are also noticed in other datasets.
311
+
312
+ Table 9: Quantitative results for within-class and between-class distances under the effect of triplet loss on the TREC6 dataset. $d$ : dimensionality; $c _ { w }$ : within-class distance; $c _ { b }$ : between-class distance)
313
+
314
+ <table><tr><td></td><td colspan="3">w/o triplet loss</td><td colspan="3">w/ triplet loss</td></tr><tr><td>d</td><td>Cw</td><td>Cb</td><td>Cb/Cw</td><td>cw</td><td>Cb</td><td>Cb/Cw</td></tr><tr><td>2</td><td>9.32</td><td>25.86</td><td>2.77</td><td>1.55</td><td>7.68</td><td>4.92</td></tr><tr><td>4</td><td>6.40</td><td>20.26</td><td>3.16</td><td>1.79</td><td>7.11</td><td>3.96</td></tr><tr><td>8</td><td>7.40</td><td>21.09</td><td>2.84</td><td>2.02</td><td>7.14</td><td>3.53</td></tr><tr><td>16</td><td>8.10</td><td>19.51</td><td>2.40</td><td>2.04</td><td>6.56</td><td>3.20</td></tr><tr><td>32</td><td>9.19</td><td>22.17</td><td>2.41</td><td>2.37</td><td>7.07</td><td>2.97</td></tr><tr><td>64</td><td>9.34</td><td>22.07</td><td>2.36</td><td>2.56</td><td>7.01</td><td>2.73</td></tr><tr><td>128</td><td>9.67</td><td>21.26</td><td>2.19</td><td>3.04</td><td>7.53</td><td>2.46</td></tr></table>
315
+
316
+ # A.2.2 HARD EXAMPLE AUGMENTATION
317
+
318
+ Next, we study the effectiveness of our proposed transformation in creating hard examples. In our experiment, we measure the uncertainty of an example by the difference in predicted probability between the most likely and second most likely labels (Scheffer et al., 2001). We call this metric as margin. A smaller margin implies a more uncertain prediction.
319
+
320
+ $$
321
+ M a r g i n ( z ) = p ( y _ { 1 } | z ) - p ( y _ { 2 } | z )
322
+ $$
323
+
324
+ We train the models on eight datasets and compute the margin for the original features and the augmented features. Our results show that hard interpolation is more effective in creating uncertain examples than hard extrapolation in most datasets (see Table 10). Admittedly, this finding is a bit counter-intuitive. We suspect that it may be due to the different shapes and complexity of the class boundaries, but more investigation is needed to understand the reasons behind.
325
+
326
+ Table 10: Comparison of the margin between models trained without augmentation and with hard interpolation or extrapolation
327
+
328
+ <table><tr><td>Dataset</td><td>w/o Aug.</td><td>+hard interpolation</td><td>+hard extrapolation</td></tr><tr><td>SST2</td><td>0.4498</td><td>0.4168 (-7.33%)</td><td>0.4492 (-0.13%)</td></tr><tr><td>TREC</td><td>0.9681</td><td>0.9468 (-2.20%)</td><td>0.9273 (-4.22%)</td></tr><tr><td>Iris</td><td>0.5220</td><td>0.4884 (-6.44%)</td><td>0.4946(-5.25%)</td></tr><tr><td>B.Cancer</td><td>0.8822</td><td>0.8130 (-7.85%)</td><td>0.8634 (-2.14%)</td></tr><tr><td>Reduced SVHN</td><td>0.7770</td><td>0.7066 (-9.07%)</td><td>0.7655 (-1.48%)</td></tr><tr><td>Reduced CIFAR-10</td><td>0.8129</td><td>0.7719 (-5.04%)</td><td>0.7867 (-3.22%)</td></tr><tr><td>HAR</td><td>0.5069</td><td>0.4514 (-10.95%)</td><td>0.5044 (-0.49%)</td></tr><tr><td>Malware (s)</td><td>0.7561</td><td>0.6697 (-11.43 %)</td><td>0.7510 (-0.67%)</td></tr></table>
329
+
330
+ # A.2.3 HARD EXAMPLE TRAINING
331
+
332
+ We also study whether the hard examples created using the proposed transformation benefit model training. In the ablation test, we sample the top $5 \%$ hardest examples based on the classification loss from each class and compare the changes in the margin and accuracy of the hard examples after training with different augmentation settings (see Table 11). We use a fixed augmentation instead of a fine-tuned policy schedule. In the experiment, the models trained with hard example interpolation and extrapolation achieve a higher accuracy on the sampled hard examples. The larger increases in margin show that the models can learn to predict the hard examples with higher certainty.
333
+
334
+ Table 11: Comparison of the change in margin and classification accuracy on the hard examples between models trained with different augmentation schemes
335
+
336
+ <table><tr><td rowspan="2">Dataset</td><td colspan="2">w/o Aug.</td><td colspan="2">+hard interpolation</td><td colspan="2">+hard extrapolation</td></tr><tr><td>margin</td><td> accuracy</td><td>margin</td><td> accuracy</td><td>margin</td><td> accuracy</td></tr><tr><td>SST2</td><td>0.0092</td><td>0.4167</td><td>0.0719</td><td>0.4667</td><td>0.0588</td><td>0.4667</td></tr><tr><td>TREC6</td><td>0.0981</td><td>0.0580</td><td>0.0777</td><td>0.0592</td><td>0.0887</td><td>0.0580</td></tr><tr><td>Reduced CIFAR-10</td><td>0.3572</td><td>0.1900</td><td>0.3847</td><td>0.2533</td><td>0.3729</td><td>0.2133</td></tr><tr><td>Reduced SVHN</td><td>0.2731</td><td>0.7926</td><td>0.3514</td><td>0.8222</td><td>0.3441</td><td>0.8667</td></tr><tr><td>Iris</td><td>-0.0833</td><td>0.0370</td><td>0.1122</td><td>0.2592</td><td>0.0231</td><td>0.0740</td></tr><tr><td>B.Cancer</td><td>0.0542</td><td>0.3589</td><td>0.1077</td><td>0.3895</td><td>0.0666</td><td>0.4102</td></tr><tr><td>HAR</td><td>0.3808</td><td>0.0895</td><td>0.4037</td><td>0.1461</td><td>0.3530</td><td>0.1525</td></tr><tr><td>Malware (s)</td><td>-0.0162</td><td>0.0044</td><td>0.0074</td><td>0.0126</td><td>-0.1121</td><td>0.0259</td></tr></table>
337
+
338
+ Finally, we compare the end-to-end training with simple interpolation and extrapolation to our proposed hard augmentation methods. Table 12 presents the accuracy of the model trained with hard augmentation and simple interpolation and extrapolation.
339
+
340
+ Table 12: Comparison of models trained with simple interpolation and extrapolation and with hard interpolation and extrapolation
341
+
342
+ <table><tr><td>Dataset</td><td>Non-hard</td><td>Hard</td></tr><tr><td>Reduced CIFAR-10</td><td>78.11</td><td>79.36</td></tr><tr><td>Reduced SVHN</td><td>80.11</td><td>81.23</td></tr><tr><td>TREC6</td><td>91.40</td><td>94.00</td></tr><tr><td>SST2</td><td>82.28</td><td>84.14</td></tr><tr><td>Iris</td><td>98.89</td><td>98.89</td></tr><tr><td>B.Cancer</td><td>96.49</td><td>99.41</td></tr><tr><td>HAR</td><td>88.72</td><td>91.87</td></tr><tr><td>Malware (s)</td><td>81.29</td><td>84.07</td></tr></table>
343
+
344
+ # A.3 EXPERIMENT DETAILS
345
+
346
+ In this section, we present the detailed configuration and augmentation schedule for each of the data modalities. In all the experiments, the augmentation policy is searched using $50 \%$ of the data as the validation set. We use 16 child models in PBA implemented using the Ray Tune framework (https://docs.ray.io/en/latest/tune/index.html). The child models are evaluated and perturbed every three epochs. For the discriminator, we employ a 2-layer MLP model with 256 hidden units and ReLU activations. The discriminator is trained using the Adam optimizer with learning rate 0.01.
347
+
348
+ # A.3.1 TEXT DATA
349
+
350
+ We employ a single-layer bidirectional LSTM to encode the 300-dimensional GloVe text embedding input as a 128-dimensional latent representation. The model is trained for 100 epochs using the Adam optimizer with learning rate 0.01 and batch size 100. Figure 4(a,b) and Figure 4(c,d) illustrate the augmentation policies for the SST2 and TREC6 datasets, respectively.
351
+
352
+ # A.3.2 TABULAR DATA
353
+
354
+ For all tabular datasets, we split $20 \%$ of the dataset as the test set unless the test set is explicitly provided in the repository. The tabular data are first standardized and trained with a 2-layer MLP model with 128 hidden units in each hidden layer. We use the Adam optimizer with learning rate 0.01 and batch size 32 to train the model for 30 epochs. In some cases when the dataset size is too small, we use a batch size of 16 instead. Figure 4(e,f) and Figure $^ { 4 ( \mathrm { g , h } ) }$ show the augmentation policies for the IRIS and Breast Cancer datasets, respectively.
355
+
356
+ # A.3.3 TIME-SERIES DATA
357
+
358
+ For the HAR and Malware datasets, the time series are split into subsequences using a sliding window of size 256 with $50 \%$ overlap. In the Malware dataset, we remove consecutive duplicated API calls. We use a single-layer LSTM model to encode the time-series input as a 128-dimensional latent representation. For the Malware dataset, we exploit an additional embedding layer to map the discrete API call events into a 32-dimensional input embedding. The LSTM models are trained using the Adam optimizer with learning rate 0.01 and batch size 128 for 50 epochs. The augmentation policies for the HAR and Malware datasets are presented in Figure $4 ( \mathrm { i , j } )$ and Figure 4(k,l), respectively.
359
+
360
+ # A.3.4 IMAGE DATA
361
+
362
+ We use Wide-ResNet-40-2 as the feature extractor for the CIFAR-10 and SVHN datasets. The models are trained using the SGD optimizer with batch size 100 for 200 epochs. We use a weight decay of $1 0 ^ { - 4 }$ , learning rate of 0.01, and a cosine learning decay with one annealing cycle. Figure ${ 4 } ( \mathrm { m } , \mathrm { n } )$ and Figure 4(o,p) show the augmentation policies for the CIFAR-10 and SVHN datasets, respectively.
363
+
364
+ ![](images/4cb32d3cb2d8b5c9e81747866ae709a987fcb1e87c9093edd9aea1ba9c14502c.jpg)
365
+
366
+ ![](images/8c7340326cb62d020ee23ddb6e4599cfe4dc50b04bb32cde817fe136ad5d40e1.jpg)
367
+ Figure 4: Visualization of the scaling factor and probability of the searched augmentation policies on the SST2 (a,b), TREC6 (c,d), Iris (e,f), B. Cancer (g,h), HAR (i,j), Malware (k,l), CIFAR-10 $\scriptstyle { \mathrm { ( m , n ) } }$ , and SVHN (o,p) datasets
parse/train/XjYgR6gbCEc/XjYgR6gbCEc_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Z7IViZ6Ir1k/Z7IViZ6Ir1k.md ADDED
@@ -0,0 +1,355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Post-processing for Individual Fairness
2
+
3
+ Felix Petersen ∗ University of Konstanz felix.petersen@uni.kn
4
+
5
+ Debarghya Mukherjee ∗ University of Michigan mdeb@umich.edu
6
+
7
+ Yuekai Sun University of Michigan yuekai@umich.edu
8
+
9
+ Mikhail Yurochkin IBM Research, MIT-IBM Watson AI Lab mikhail.yurochkin@ibm.com
10
+
11
+ # Abstract
12
+
13
+ Post-processing in algorithmic fairness is a versatile approach for correcting bias in ML systems that are already used in production. The main appeal of postprocessing is that it avoids expensive retraining. In this work, we propose general post-processing algorithms for individual fairness (IF). We consider a setting where the learner only has access to the predictions of the original model and a similarity graph between individuals guiding the desired fairness constraints. We cast the IF post-processing problem as a graph smoothing problem corresponding to graph Laplacian regularization that preserves the desired “treat similar individuals similarly” interpretation. Our theoretical results demonstrate the connection of the new objective function to a local relaxation of the original individual fairness. Empirically, our post-processing algorithms correct individual biases in large-scale NLP models such as BERT, while preserving accuracy.
14
+
15
+ # 1 Introduction
16
+
17
+ There are many instances of algorithmic bias in machine learning (ML) models [1]–[4], which has led to the development of methods for quantifying and correcting algorithmic bias. To quantify algorithmic bias, researchers have proposed numerous mathematical definitions of algorithmic fairness. Broadly speaking, these definitions fall into two categories: group fairness [5] and individual fairness [6]. The former formalizes the idea that ML system should treat certain groups of individuals similarly, e.g., requiring the average loan approval rate for applicants of different ethnicities be similar [7]. The latter asks for similar treatment of similar individuals, e.g., same outcome for applicants with resumes that differ only in names [8]. Researchers have also developed many ways of correcting algorithmic bias. These fairness interventions broadly fall into three categories: pre-processing the data, enforcing fairness during model training (also known as in-processing), and post-processing the outputs of a model.
18
+
19
+ While both group and individual fairness (IF) definitions have their benefits and drawbacks [5], [6], [9], the existing suite of algorithmic fairness solutions mostly enforces group fairness. The few prior works on individual fairness are all in-processing methods [10]–[13]. Although in-processing is arguably the most-effective type of intervention, it has many practical limitations. For example, it requires training models from scratch. Nowadays, it is more common to fine-tune publicly available models (e.g., language models such as BERT [14] and GPT-3 [15]) than to train models afresh, as many practitioners do not have the necessary computational resources. Even with enough computational resources, training large deep learning models has a significant environmental impact [4], [16].
20
+
21
+ Post-processing offers an easier path towards incorporating algorithmic fairness into deployed ML models, and has potential to reduce environmental harm from re-training with in-processing fairness techniques.
22
+
23
+ In this paper, we propose a computationally efficient method for post-processing off-the-shelf models to be individually fair. We consider a setting where we are given the outputs of a (possibly unfair) ML model on a set of $n$ individuals, and side information about their similarity for the ML task at hand, which can either be obtained using a fair metric on the input space or from external (e.g., human) annotations. Our starting point is a post-processing version of the algorithm by Dwork et al. [6] (see (2.3)). Unfortunately, this method has two drawbacks: poor scalability and an unfavorable trade-off with accuracy. As we shall see, the sharp trade-off is due to the restrictions imposed on dissimilar individuals by Dwork et al. [6]’s global Lipschitz continuity condition. By relaxing these restrictions on dissimilar individuals, we obtain a better trade-off between accuracy and fairness, while preserving the intuition of treating similar individuals similarly. This leads us to consider a graph signal-processing approach to IF post-processing that only enforces similar outputs between similar individuals. The nodes in the underlying graph correspond to individuals, edges (possibly weighted) indicate similarity, and the signal on the graph is the output of the model on the corresponding node-individuals. To enforce IF, we use Laplacian regularization [17], which encourages the signal to
24
+
25
+ be smooth on the graph. We illustrate this idea in Figure 1: a biased model decides whom to show a job ad for a Python programming job based on their CVs and chooses Charlie and Dave but excludes Alice. However, from the qualifications, we can see that Alice, Charlie and Dave are similar because they all have experience in Python, which is the job requirement, and thus should be treated similarly. We represent all five candidates as nodes in a graph, where the node signal (checkmark or cross) is the model’s decision for the corresponding candidate, and the edge weights are indicated by the thickness of the connecting line. Alice and Charlie have the same qualifications and are therefore connected with a large edge-weight. For the predictions to satisfy IF, the graph needs to be smooth, i.e., the similar / connected candidates should have similar node
26
+
27
+ ![](images/f23f92c1b7b23609fd732c54d7541ee19aa81b25fe90a8adab304cc5cb266631.jpg)
28
+ Figure 1: IF on a graph.
29
+
30
+ signals, which can be accomplished by also offering the job to Alice. In contrast, directly enforcing IF constraints [6] requires a certain degree of output similarity on all pairs of candidates, and not just on those which are connected and thus similar. Our main contributions are summarized below.
31
+
32
+ 1. We cast post-processing for individual fairness as a graph smoothing problem and propose a coordinate descent algorithm to scale the approach to large data sets.
33
+ 2. We demonstrate theoretically and verify empirically that graph smoothing enforces individual fairness constraints locally, i.e., it guarantees similar treatment of similar individuals.
34
+ 3. We empirically compare the Laplacian smoothing method to the post-processing adaptation of the algorithm by Dwork et al. [6] enforcing global Lipschitz continuity. The Laplacian smoothing method is not only computationally more efficient but is also more effective in reducing algorithmic bias while preserving accuracy of the original model.
35
+ 4. We demonstrate the efficacy of Laplacian smoothing on two large-scale text data sets by reducing biases in fine-tuned BERT models.
36
+
37
+ # 2 Post-processing Problem Formulation
38
+
39
+ Let $\mathcal { X }$ be the feature space, $\mathcal { V }$ be the set of possible labels/targets, and $h : \mathcal { X } \mathcal { Y }$ be a (possibly unfair) ML model trained for the task. Our goal is to post-process the outputs of $h$ so that they are individually fair. Formally, the post-processor is provided with a set of inputs $\{ x _ { i } \} _ { i = 1 } ^ { n }$ and the outputs of $h$ on the inputs $\{ \widehat { y } _ { i } \triangleq h ( x _ { i } ) \} _ { i = 1 } ^ { n }$ , and its goal is to produce $\{ \widehat { f } _ { i } \} _ { i = 1 } ^ { n }$ that is both individually fair and similar to the $\widehat { y } _ { i }$ b ’s. Recall that individual fairness of $h$ is the Lipschitz continuity of $h$ with respect
40
+
41
+ to a fair metric $d _ { \mathcal { X } }$ on the input space:
42
+
43
+ $$
44
+ d y ( h ( x ) , h ( x ^ { \prime } ) ) \leq L d _ { \mathcal { X } } ( x , x ^ { \prime } ) \mathrm { ~ f o r ~ a l l ~ } x , x ^ { \prime } \in \mathcal { X } ,
45
+ $$
46
+
47
+ where $L > 0$ is a Lipschitz constant. The fair metric encodes problem-specific intuition of which samples should be treated similarly by the ML model. It is analogous to the knowledge of protected attributes in group fairness needed to define corresponding fairness constraints. Recent literature proposes several practical methods for learning fair metric from data [18], [19]. We assume the postprocessor is either given access to the fair metric (it can evaluate the fair distance on any pair of points in $\mathcal { X }$ ), or receives feedback on which inputs should be treated similarly. We encode this information in an adjacency matrix $W \in \mathbb { R } ^ { n \times n }$ of a graph with individuals as nodes. If the post-processor is given the fair metric, then the entries of $W$ are
48
+
49
+ $$
50
+ W _ { i j } = { \left\{ \begin{array} { l l } { \exp ( - \theta d _ { \mathcal { X } } ( x _ { i } , x _ { j } ) ^ { 2 } ) } & { d _ { \mathcal { X } } ( x _ { i } , x _ { j } ) \leq \tau } \\ { 0 } & { { \mathrm { o t h e r w i s e } } , } \end{array} \right. }
51
+ $$
52
+
53
+ where $\theta > 0$ is a scale parameter and $\tau > 0$ is a threshold parameter. If the post-processor is given an annotator’s feedback, then $W$ is a binary matrix with $W _ { i j } = 1$ if $i$ and $j$ are considered to be treated similarly by the annotator and 0 otherwise. Extensions to multiple annotators are straightforward.
54
+
55
+ We start with a simple post-processing adaptation of the algorithm by Dwork et al. [6] for enforcing individual fairness, that projects the (possibly unfair) outputs of $h$ onto a constraint set to enforce (2.1). In other words, the post-processor seeks the closest set of outputs to the $\widehat { y } _ { i }$ ’s that satisfies individual fairness:
56
+
57
+ $$
58
+ \begin{array} { r } { \{ \widehat { f } _ { i } \} _ { i = 1 } ^ { n } \in \left\{ \begin{array} { l l } { \arg \operatorname* { m i n } _ { f _ { 1 } , \ldots , f _ { n } } } & { \sum _ { i = 1 } ^ { n } \frac { 1 } { 2 } d y ( f _ { i } , \widehat { y } _ { i } ) ^ { 2 } } \\ { \mathrm { s u b j e c t ~ t o } } & { d y ( f _ { i } , f _ { j } ) \leq L d _ { \mathcal { X } } ( x _ { i } , x _ { j } ) } \end{array} \right\} . } \end{array}
59
+ $$
60
+
61
+ This objective function, though convex, scales poorly due to the order of $n ^ { 2 }$ constraints. Empirically, we observe that (2.3) leads to post-processed outputs that are dissimilar to the $\widehat { y } _ { i }$ ’s, leading to poor performance in practice. The goal of our method is to improve performance and scalability, while preserving the IF desiderata of treating similar individual similarly. Before presenting our method, we discuss other post-processing perspectives that differ in their applicability and input requirements.
62
+
63
+ # 2.1 Alternative Post-processing Formulations
64
+
65
+ We review three post-processing problem setups and the corresponding methods in the literature. First, one can fine-tune a model via an in-processing algorithm to reduce algorithmic biases. Yurochkin et al. [12] proposed an in-processing algorithm for IF and used it to train fair models for text classification using sentence BERT embeddings. This setting is the most demanding in terms of input and computational requirements: a user needs access to the original model parameters, fair metric function, and train a predictor, e.g., a moderately deep fully connected neural network, with a non-trivial fairness-promoting objective function.
66
+
67
+ Second, it is possible to post-process by training additional models to correct the initial model’s behavior. For example, Kim et al. [20] propose a boosting-based method for group fairness postprocessing. This perspective can be adapted to individual fairness; however, it implicitly assumes that we can train weak-learners to boost. Lohia et al. [21], [22] propose to train a bias detector to post-process for group fairness and a special, group based, notion of individual fairness. Such methods are challenging to apply to text data or other non-tabular data types.
68
+
69
+ The third perspective is the most generic: a user has access to original model outputs only, and a minimal additional feedback guiding fairness constraints. Wei et al. [23] consider such setting and propose a method to satisfy group fairness constraints; however, it is not applicable to individual fairness. Our problem formulation belongs to this post-processing setup. The main benefit of this approach is its broad applicability and ease of deployment.
70
+
71
+ # 3 Graph Laplacian Individual Fairness
72
+
73
+ To formulate our method, we cast IF post-processing as a graph smoothing problem. Using the fair metric or human annotations as discussed in Section 2, we obtain an $n \times n$ matrix $W$ that we treat as an adjacency matrix. As elaborated earlier, the goal of post-processing is to obtain a model $f$ that is individually fair and accurate. The accuracy is achieved by minimizing the distance between the outputs of $f$ and $h$ , a pre-trained model assumed to be accurate but possibly biased. Recall that we do not have access to the parameters of $h$ , but can evaluate its predictions. Our method enforces fairness using a graph Laplacian quadratic form [24] regularizer:
74
+
75
+ $$
76
+ \widehat { \mathbf { f } } = \arg \operatorname* { m i n } _ { \mathbf { f } } { g _ { \lambda } ( \mathbf { f } ) } = \arg \operatorname* { m i n } _ { \mathbf { f } } \ \| \mathbf { f } - \hat { \mathbf { y } } \| _ { 2 } ^ { 2 } + \lambda \mathbf { f } ^ { \top } \mathbb { L } _ { n } \mathbf { f } ,
77
+ $$
78
+
79
+ where $\hat { \mathbf { y } }$ is the output of the model $h$ , and $\widehat { \mathbf { f } }$ is the vector of the post-processed outputs, i.e., ${ \widehat { f } } _ { i } = f ( x _ { i } )$ for $i = 1 , \ldots , n$ . The matrix $\mathbb { L } _ { n } \in \mathbb { R } ^ { n \times n }$ is called graph Laplacian matrix and is a function of $W$ . There are multiple versions of $\mathbb { L } _ { n }$ popularized in the graph literature (see, e.g., [25] or [26]). To elucidwhere t, ual f for s, consider the unnormalized Laplaciais the degree matrix corresponding to $\mathbb { L } _ { u n , n } = D - W$ , $\begin{array} { r } { D _ { i i } = \sum _ { j = 1 } ^ { n } W _ { i j } } \end{array}$ $D _ { i j } = 0$ $i \neq j$ $W$ identity is:
80
+
81
+ $$
82
+ \begin{array} { r } { \mathbf { f } ^ { \top } \mathbb { L } _ { u n , n } \mathbf { f } = \frac { 1 } { 2 } \sum _ { i \neq j } W _ { i j } \left( f _ { i } - f _ { j } \right) ^ { 2 } . } \end{array}
83
+ $$
84
+
85
+ Hence, the Laplacian regularizer is small if the post-processed model outputs $\widehat { f } _ { i }$ and ${ \widehat { f } } _ { j }$ (i.e., treatment) are similar for large $W _ { i j }$ (i.e., for similar individuals $i$ and $j$ ). This promotes the philosophy of individual fairness: “treat similar individuals similarly”. This observation intuitively explains the motivation for minimizing the graph Laplacian quadratic form to achieve IF. In Section 4, we present a more formal discussion on the connections between the graph Laplacian regularization and IF.
86
+
87
+ Our post-processing problem (3.1) is easy to solve: setting the gradient of $g _ { \lambda }$ to 0 implies that the optimal solution $\widehat { \mathbf { f } }$ is:
88
+
89
+ $$
90
+ \widehat { \mathbf { f } } = \left( I + \lambda \left( \frac { \mathbb { L } _ { n } + \mathbb { L } _ { n } ^ { \top } } { 2 } \right) \right) ^ { - 1 } \widehat { \mathbf { y } } .
91
+ $$
92
+
93
+ The Laplacian $\mathbb { L } _ { n }$ is a positive semi-definite matrix ensuring that (3.1) is strongly convex and that (3.3) is a global minimum. In comparison to the computationally expensive constraint optimization problem (2.3), this approach has a simple closed-form expression.
94
+
95
+ Note that the symmetry of the unnormalized Laplacian $\mathbb { L } _ { u n , n }$ simplifies (3.3); however, there are also non-symmetric Laplacian variations. In this work, we also consider the normalized random walk Laplacian $\mathbb { L } _ { n r w , n } = ( I - \widetilde { D } ^ { - 1 } \widetilde { W } )$ , where $\widetilde { W } = D ^ { - 1 / 2 } W D ^ { - 1 / 2 }$ is the normalized adjacency matrix and De is its degree matrix. We discuss its properties in the context of IF in Section 4. Henceforth, we refer to our method as Graph Laplacian Individual Fairness (GLIF) when using the unnormalized Laplacian, and GLIF-NRW when using Normalized Random Walk Laplacian.
96
+
97
+ # 3.1 Prior Work on Graph Laplacians
98
+
99
+ Graph-based learning via a similarity matrix is prevalent in statistics and ML literature, specifically, in semi-supervised learning. The core idea is to gather information from similar unlabeled inputs to improve prediction accuracy (e.g., see [27], [28], [29] and references therein). Laplacian regularization is widely used in science engineering. We refer to Chapelle [17] for a survey.
100
+
101
+ We note that [30], [31] also use graph Laplacian regularizers to enforce individual fairness. Our work builds on their work by elucidating the key role played by the graph Laplacian in enforcing individual fairness. In particular, we clarify the connection between the choice of the graph Laplacian and the exact notion of individual fairness the corresponding graph Laplacian regularizer enforces.
102
+
103
+ # 3.2 Extensions of the Basic Method
104
+
105
+ In this subsection, we present four extensions of our method: multi-dimensional outputs, coordinate descent for large-scale data, an inductive setting, and alternative output space discrepancy measures.
106
+
107
+ # 3.2.1 Multi-dimensional Output
108
+
109
+ We presented our objective function (3.1) and post-processing procedure (3.3) for the case of univariate outputs. This covers regression and binary classification. Our method readily extends to multi-dimensional output space, for example, in classification, $f _ { i } , \widehat { y } _ { i } \in \mathbb { R } ^ { K }$ can represent logits, i.e.,
110
+
111
+ softmax inputs, of the $K$ classes. In this case, f and $\hat { \mathbf { y } }$ are $n \times K$ matrices, and the term f $\mathbf { : } ^ { \top } \mathbb { L } _ { n } \mathbf { f }$ is a $K \times K$ matrix. We use the trace of it as a regularizer. The optimization problem (3.1) then becomes:
112
+
113
+ $$
114
+ \widehat { \mathbf { f } } = \arg \operatorname* { m i n } _ { f } g _ { \lambda } ( \mathbf { f } ) = \arg \operatorname* { m i n } _ { f } \| \mathbf { f } - \widehat { \mathbf { y } } \| _ { F } ^ { 2 } + \lambda \operatorname { t r } \left( \mathbf { f } ^ { \top } \mathbb { L } _ { n } \mathbf { f } \right) ,
115
+ $$
116
+
117
+ where $\| \cdot \| _ { F }$ is the Frobenius norm. Similar to the univariate output case, this yields:
118
+
119
+ $$
120
+ \widehat { \mathbf { f } } = \left( I + \lambda \left( \frac { \mathbb { L } _ { n } + \mathbb { L } _ { n } ^ { \top } } { 2 } \right) \right) ^ { - 1 } \widehat { \mathbf { y } } .
121
+ $$
122
+
123
+ The solution is the same as (3.3); however, now it accounts for multi-dimensional outputs.
124
+
125
+ # 3.2.2 Coordinate Descent for Large-Scale Data
126
+
127
+ Although our method has a closed form solution, it is not immediately scalable, as we have to invert a $n \times n$ matrix to obtain the optimal solution. We propose a coordinate descent variant of our method that readily scales to any data size. The idea stems primarily from the gradient of equation (3.4), where we solve:
128
+
129
+ $$
130
+ \mathbf { f } - \widehat { \mathbf { y } } + \lambda \frac { \mathbb { L } _ { n } + \mathbb { L } _ { n } ^ { \top } } { 2 } \mathbf { f } = 0 .
131
+ $$
132
+
133
+ Fixing $\{ f _ { j } \} _ { j \neq i }$ , we can solve (3.6) for $f _ { i }$
134
+
135
+ $$
136
+ f _ { i } \gets \frac { \hat { y } _ { i } - \frac { \lambda } { 2 } \sum _ { j \neq i } ( \mathbb { L } _ { n , i j } + \mathbb { L } _ { n , j i } ) f _ { j } } { 1 + \lambda \mathbb { L } _ { n , i i } } .
137
+ $$
138
+
139
+ This gives rise to the coordinate descent algorithm. We perform asynchronous updates over randomly selected coordinate batches until convergence. We refer the reader to Wright [32] and the references therein for the convergence properties of (asynchronous) coordinate descent.
140
+
141
+ # 3.2.3 Extension to the Inductive Setting
142
+
143
+ This coordinate descent update is key to extending our approach to the inductive setting. To handle new unseen points, we assume we have a set of test points on which we have already post-processed the outputs of the ML model. To post-process new unseen points, we simply fix the outputs of the other test points and perform a single coordinate descent step with respect to the output of the new point. Similar strategies are often employed to extend transductive graph-based algorithms to the inductive setting [17].
144
+
145
+ # 3.2.4 Alternative Discrepancy Measures on the Output Space
146
+
147
+ So far, we have considered the squared Euclidean distance as a measure of discrepancy between outputs. This is a natural choice for post-processing models with continuous-valued outputs. For models that output a probability distribution over the possible classes, we consider alternative discrepancy measures on the output space. It is possible to replace the squared Euclidean distance with a Bregman divergence with very little change to the algorithm in the case of the unnormalized Laplacian. Below, we work through the details for the KL divergence as a demonstration of the idea. A result for the general Bregman divergence can be found in Appendix B.3 (see Theorem B.4).
148
+
149
+ Suppose the output of the pre-trained model $h$ is $\hat { y } _ { i } \in \Delta ^ { K }$ , where $\begin{array} { r } { \hat { y } _ { i } = \{ e ^ { o _ { i , j } } / \sum _ { k = 1 } ^ { K } e ^ { o _ { i , k } } \} _ { j = 1 } ^ { K } } \end{array}$ a $K$ - dimensional probability vector corresponding to a $K$ class classification problem $\left. { o _ { i , j } } \right\}$ is the output of tand del and is the p $\hat { y } _ { i }$ is obtained by passbability simplex in it thr. Let h softmax) denote the $\Delta ^ { K } = \{ x \in \mathbb { R } ^ { K } : x _ { i } \geq 0 , \sum _ { i = 1 } ^ { K } x _ { i } = 1 \}$ $\mathbb { R } ^ { K }$ $P _ { v }$ multinomial distribution with success probabilities $v$ for any $v \in \Delta ^ { k }$ . Define $\hat { \eta } _ { i } \in \mathbb { R } ^ { K - 1 }$ (resp. $\eta _ { i }$ ) as the natural parameter corresponding to $\hat { y } _ { i }$ (resp. $f _ { i }$ ), i.e., $\hat { \eta } _ { i , j } = \log \left( \hat { y } _ { i , j } / \hat { y } _ { i , K } \right) = o _ { i , j } - o _ { i , K }$ for $1 \leq j \leq K - 1$ . The (unnormalized) Laplacian smoothing problem with the KL divergence is
150
+
151
+ $$
152
+ \left( \widetilde { y } _ { 1 } , \dots , \widetilde { y } _ { n } \right) = \arg \operatorname* { m i n } _ { y _ { 1 } , \dots , y _ { n } \in \Delta ^ { K } } \left[ \sum _ { i } \left\{ \mathsf { K L } \left( P _ { y _ { i } } | | P _ { \widetilde { y } _ { i } } \right) + \frac { \lambda } { 2 } \sum _ { j = 1 , j \neq i } ^ { n } W _ { i j } \mathsf { K L } \left( P _ { y _ { i } } | | P _ { y _ { j } } \right) \right\} \right] .
153
+ $$
154
+
155
+ A coordinate descent approach for solving the above equation is:
156
+
157
+ $$
158
+ \begin{array} { r } { \tilde { y } _ { i } = \arg \operatorname* { m i n } _ { y \in \Delta ^ { k } } \left\{ \mathsf { K L } \left( P _ { y } | | P _ { \hat { y } _ { i } } \right) + \frac { \lambda } { 2 } \sum _ { j = 1 , j \neq i } ^ { n } W _ { i j } \mathsf { K L } \left( P _ { y } | | P _ { \tilde { y } _ { j } } \right) \right\} . } \end{array}
159
+ $$
160
+
161
+ The following theorem establishes that (3.5) solves the above problem in the logit space, or equivalently in the space of the corresponding natural parameters (see Appendix $\mathbf { B }$ for the proof):
162
+
163
+ Theorem 3.1. Consider the following optimization problem on the space of natural parameters:
164
+
165
+ $$
166
+ \begin{array} { r } { \widetilde { \eta } _ { i } = \arg \operatorname* { m i n } _ { \eta } \left[ \| \eta - \widehat { \eta } _ { i } \| ^ { 2 } + \frac { \lambda } { 2 } \sum _ { j = 1 , j \neq i } ^ { n } W _ { i j } \| \eta - \widetilde { \eta } _ { j } \| ^ { 2 } \right] . } \end{array}
167
+ $$
168
+
169
+ Then, the minimizer $\tilde { \eta } _ { i }$ of equation (3.10) is the natural parameter corresponding to the minimizer $\tilde { y } _ { i }$ of (3.8).
170
+
171
+ # 4 Local IF and Graph Laplacian Regularization
172
+
173
+ In this section, we provide theoretical insights into why the graph Laplacian regularizer enforces individual fairness. As pointed out in Section 2, enforcing IF globally is expensive and often reduces a significant amount of accuracy of the final classifier. Here, we establish that solving (3.1) is tantamount to enforcing a localized version of individual fairness, namely Local Individual Fairness, which is defined below:
174
+
175
+ Definition 4.1 (Local Individual Fairness). An ML model $h$ is said to be locally individually fair if it
176
+
177
+ $$
178
+ \mathbb { E } _ { x \sim P } \left[ \operatorname* { l i m } _ { x ^ { \prime } : d _ { \mathcal { X } } ( x , x ^ { \prime } ) \downarrow 0 } \frac { d _ { \mathcal { Y } } ( h ( x ) , h ( x ^ { \prime } ) ) } { d _ { \mathcal { X } } ( x , x ^ { \prime } ) } \right] \leq L < \infty .
179
+ $$
180
+
181
+ For practical purposes, this means that $h$ is locally individually fair with constants $\epsilon$ and $L$ if it satisfies
182
+
183
+ $$
184
+ d y ( h ( x ) , h ( x ^ { \prime } ) ) \leq L d _ { \mathcal { X } } ( x , x ^ { \prime } ) \mathrm { ~ f o r ~ a l l ~ } x , x ^ { \prime } \in \mathcal { X } \mathrm { ~ w h e r e ~ } d _ { \mathcal { X } } ( x , x ^ { \prime } ) \leq \epsilon
185
+ $$
186
+
187
+ in analogy to equation (2.1). Equation (4.2) is a relaxation of traditional IF, where we only care about the Lipschitz-constraint for all pairs of points with small fair distances, i.e., where it is less than some user-defined threshold $\epsilon$ .
188
+
189
+ Example 4.2. For our theoretical analysis, we need to specify a functional form of the fair metric. A popular choice is a Mahalanobis fair metric proposed by $I I 9 J$ , which is defined as:
190
+
191
+ $$
192
+ d _ { \mathcal { X } } ^ { 2 } ( \boldsymbol { x } , \boldsymbol { x } ^ { \prime } ) = ( \boldsymbol { x } - \boldsymbol { x } ^ { \prime } ) ^ { \top } \Sigma ( \boldsymbol { x } - \boldsymbol { x } ^ { \prime } ) ,
193
+ $$
194
+
195
+ where $\Sigma$ is a dispersion matrix that puts lower weight in the directions of sensitive attributes and higher weight in the directions of relevant attributes. [19] also proposed several algorithms to learn such a fair metric from the data. If we further assume $d y ( y _ { 1 } , y _ { 2 } ) = | y _ { 1 } - y _ { 2 } |$ , then a simple application of Lagrange’s mean value theorem yields:
196
+
197
+ $$
198
+ \operatorname* { l i m } _ { x ^ { \prime } : d _ { \mathcal { X } } ( x , x ^ { \prime } ) \downarrow 0 } \frac { | h ( x ) - h ( x ^ { \prime } ) | } { d _ { \mathcal { X } } ( x , x ^ { \prime } ) } \leq \| \Sigma ^ { - 1 / 2 } \nabla h ( x ) \| .
199
+ $$
200
+
201
+ This immediately implies:
202
+
203
+ $$
204
+ \mathbb { E } _ { x \sim P } \left[ \operatorname* { l i m } _ { { x ^ { \prime } : d _ { \mathcal { X } } ( x , x ^ { \prime } ) } \downarrow 0 } \frac { d _ { \mathcal { Y } } ( h ( x ) , h ( x ^ { \prime } ) ) } { d _ { \mathcal { X } } ( x , x ^ { \prime } ) } \right] \leq \mathbb { E } [ \| { \Sigma } ^ { - 1 / 2 } \nabla h ( x ) \| ] ,
205
+ $$
206
+
207
+ i.e., h satisfies local individual fairness constraint as long as $\mathbb { E } [ | | \Sigma ^ { - 1 / 2 } \nabla h ( x ) | | ] < \infty$ . On the other hand, the global $I F$ constraint necessitates $\begin{array} { r } { \operatorname* { s u p } _ { x \in \mathcal { X } } \| \Sigma ^ { - 1 / 2 } \nabla h ( x ) \| < \infty , } \end{array}$ , i.e., h is Lipschitz continuous with respect to the Mahalanobis distance.
208
+
209
+ The main advantage of this local notion of IF over its global counterpart is that the local definition concentrates on the input pairs with smaller fair distance and ignores those with larger distance. For example, in Figure 1, the edge-weights among Alice, Charlie, and Dave are much larger than among any other pairs (which have a weight of 0); therefore, our local notion enforces fairness constraint on the corresponding similar pairs, while ignoring (or being less stringent on) others. This prevents over-smoothing and consequently preserves accuracy while enforcing fairness as is evident from our real data experiments in Section 5.
210
+
211
+ We now present our main theorem, which establishes that, under certain assumptions on the underlying hypothesis class and the distribution of inputs, the graph Laplacian regularizers (both unnormalized and normalized random walk) enforce the local IF constraint (as defined in Definition 4.1) in the limit. For our theory, we work with $d _ { \mathcal { X } }$ as the Mahalanobis distance introduced in Example 4.2 in equation (2.2) along with $\theta = 1 / ( 2 \sigma ^ { 2 } )$ $\sigma$ is a bandwidth parameter which goes to 0 at an appropriate rate as $n \to \infty$ ) and $\tau = \infty$ . All our results will be thorough for any finite $\tau$ but with more tedious technical analysis. Therefore, our weight matrix $W$ becomes:
212
+
213
+ $$
214
+ W _ { i j } = \frac { | \Sigma | ^ { 1 / 2 } } { ( 2 \pi ) ^ { d / 2 } \sigma ^ { d } } \mathrm { e x p } \left( - \frac { 1 } { 2 \sigma ^ { 2 } } ( x _ { i } - x _ { j } ) ^ { \top } \Sigma \left( x _ { i } - x _ { j } \right) \right) .
215
+ $$
216
+
217
+ The constant $| \Sigma | ^ { 1 / 2 } / ( ( 2 \pi ) ^ { d / 2 } \sigma ^ { d } )$ is for the normalization purpose and can be absorbed into the penalty parameter $\lambda$ . We start by listing our assumptions:
218
+
219
+ Assumption 4.3 (Assumption on the domain). The domain of the inputs $\mathcal { X }$ is a compact subset of $\mathbb { R } ^ { d }$ where $d$ is the underlying dimension.
220
+
221
+ Assumption 4.4 (Assumption on the hypothesis). All functions $f \in { \mathcal { F } }$ of the hypothesis class satisfy the following:
222
+
223
+ 1. The $i ^ { t h }$ derivative $f ^ { ( i ) }$ is uniformly bounded over the domain $\mathcal { X }$ of inputs for $i \in \{ 0 , 1 , 2 \}$ .
224
+
225
+ 2. $f ^ { ( 1 ) } ( x ) = 0$ for all $x \in \partial X$ , where $\partial X$ denotes the boundary of $\mathcal { X }$ .
226
+
227
+ Assumption 4.5 (Assumption on the density of inputs). The density $p$ of the input random variable x on the domain $\mathcal { X }$ satisfies the following:
228
+
229
+ 1. There exists $p _ { \operatorname* { m a x } } < \infty$ and $p _ { \operatorname* { m i n } } > 0$ such that, for all $x \in \mathcal { X }$ , we have $p _ { \operatorname* { m i n } } \le p ( x ) \le p _ { \operatorname* { m a x } }$ .
230
+ 2. The derivatives $\{ p ^ { ( i ) } \} _ { i = 0 , 1 , 2 }$ of the density $p$ are uniformly bounded on the domain $\mathcal { X }$ .
231
+
232
+ Discussion on the assumptions Most of our assumptions (e.g., compactness of the domain, bounded derivatives of $f$ or $p$ ) are for technical simplicity and are fairly common for the asymptotic analysis of graph regularization (see, e.g., Hein et al. [25], [33] and references therein). It is possible to relax some of the assumptions: for example, if the domain $\mathcal { X }$ of inputs is unbounded, then the target function $f$ and the density $p$ should decay at certain rate so that observations far away will not be able to affect the convergence (e.g., sub-exponential tails). Part (2.) of Assumption 4.4 can be relaxed if we assume $p ( x )$ is 0 at boundary. However, we do not pursue these extensions further in this manuscript, as they are purely technical and do not add anything of significance to the main intuition of the result.
233
+
234
+ Theorem 4.6. Under Assumptions 4.3 - 4.5, we have:
235
+
236
+ 1. If the sequence of bandwidths $\sigma \equiv \sigma _ { n } \downarrow 0$ such that $n \sigma _ { n } ^ { 2 } \to \infty$ and $\mathbb { L } _ { u n , n }$ is unnormalized Laplacian matrix, then
237
+
238
+ $$
239
+ \frac { 2 } { n ^ { 2 } \sigma ^ { 2 } } \mathbf { f } ^ { \top } \mathbb { L } _ { u n , n } \mathbf { f } \xrightarrow { P } \mathbb { E } _ { x \sim p } \left[ \nabla f ( x ) ^ { \top } \Sigma ^ { - 1 } \nabla f ( x ) p ( x ) \right] .
240
+ $$
241
+
242
+ 2. If the sequence of bandwidths $\sigma \equiv \sigma _ { n } \downarrow 0$ such that $( n \sigma ^ { d + 4 } ) / ( \log { ( 1 / \sigma ) } ) \to \infty$ and $\mathbb { L } _ { n r w , n }$ is the normalized random walk Laplacian matrix, then:
243
+
244
+ $$
245
+ \frac { 1 } { n \sigma ^ { 2 } } \mathbf { f } ^ { \top } \mathbb { L } _ { n r w , n } \mathbf { f } \stackrel { P } { \longrightarrow } \mathbb { E } _ { x \sim p } \left[ \nabla f ( x ) ^ { \top } { \Sigma } ^ { - 1 } \nabla f ( x ) \right] .
246
+ $$
247
+
248
+ where $\mathbf { f } = \{ f ( x _ { i } ) \} _ { i = 1 } ^ { n }$ . Consequently, both Laplacian regularizers asymptotically enforce local IF.
249
+
250
+ The proof of the above theorem can be found in Appendix B. When we use a normalized random walk graph Laplacian matrix $\mathbb { L } _ { n r w , n }$ as regularizer, the regularizer does (asymptotically) penalize $\mathbb { E } \left[ \nabla f ( x ) ^ { \top } \Sigma ^ { - 1 } \nabla f ( x ) \right] = \mathbb { E } \left[ \| \Sigma ^ { - 1 / 2 } \nabla f ( x ) \| ^ { 2 } \right]$ , which, by Example 4.2, is equivalent to enforcing the local IF constraint. Similarly, the un-normalized Laplacian matrix $\mathbb { L } _ { u n , n }$ , also enforces the same under Assumption 4.5 as:
251
+
252
+ $$
253
+ \mathbb { E } \left[ \Vert \Sigma ^ { - 1 / 2 } \nabla f ( x ) \Vert ^ { 2 } \right] \leq \frac { 1 } { p _ { \operatorname* { m i n } } } \mathbb { E } \left[ \nabla f ( x ) ^ { \top } \Sigma ^ { - 1 } \nabla f ( x ) p ( x ) \right] , \mathrm { ~ w h e r e ~ } p _ { \operatorname* { m i n } } = \operatorname* { i n f } _ { x \in \mathcal { X } } p ( x ) .
254
+ $$
255
+
256
+ Although both the Laplacian matrices enforce local IF, the primary difference between them is that the limit of the unnormalized Laplacian involves the density $p ( x )$ , i.e., it upweights the high-density region (consequently stringent imposition of fairness constraint), whereas it down-weights the underrepresented/low-density region. On the other hand, the limit corresponding to the normalized random walk Laplacian matrix does not depend on $p ( x )$ and enforces fairness constraint with equal intensity on the entire input space. We used both regularizers in our experiments, comparing and contrasting their performance on several practical ML problems.
257
+
258
+ # 5 Experiments
259
+
260
+ The goals of our experiments are threefold:
261
+
262
+ 1. Exploring the trade-offs between post-processing for local IF with GLIF and post-processing with (global) IF constraints using our adaptation of the algorithm by Dwork et al. [6] described in (2.3).
263
+ 2. Studying practical implications of theoretical differences between GLIF and GLIF-NRW, i.e., different graph Laplacians, presented in Section 4.
264
+ 3. Evaluating the effectiveness of GLIF in its main application, i.e., computationally light debiasing of large deep learning models such as BERT.
265
+
266
+ The implementation of this work is available at github.com/Felix-Petersen/fairness-post-processing.
267
+
268
+ # 5.1 Comparing GLIF and Global IF-constraints
269
+
270
+ For our first experiment, we consider the sentiment prediction task [34], where our goal is to classify words as having a positive or negative sentiment. The baseline model is a neural network trained with GloVe word embeddings [35]. Following Yurochkin et al. [11], we evaluate the model on a set of names and observe that it assigns varying sentiments to names. An individually fair model should assign similar sentiment scores to all names. Further, we observe that there is a gap between average sentiments of names typical for Caucasian and African-American ethnic groups [36], which is violating group fairness. Yurochkin et al. [11] propose a fair metric learning procedure for this task using a side data set of names, and an in-processing technique for achieving individual fairness. We use their method to obtain the fair metric and compare post-processing of the baseline model with GLIF, GLIF-NRW and the global IF-constraints method. The test set comprises 663 words from the original task and 94 names. For post-processing, no problem specific knowledge is used. The resulting post-processed predictions for the original test set are used to evaluate accuracy, and the predictions on the names are used for evaluating fairness metrics. Even for this small problem, the global IF-constraints method, i.e., a CVXPY [37] implementation of (2.3), takes 7 minutes to run. Due to the poor scalability of the global IF-constraints method, we can use it only for the study of this smaller data set and can not consider it for the large language model experiments in Section 5.2. For GLIF(-NRW), we implement the closed-form solution (3.3) that takes less than a tenth of a second to run. See Appendix A for additional experimental details and a runtime analysis.
271
+
272
+ We evaluate the fairness-accuracy trade-offs for a range of threshold parameters $\tau$ (for GLIF and GLIF-NRW) and for a range of Lipschitz-constants $L$ (for IF-constraints) in Figure 2. Figure 2 (left) shows the standard deviation of the post-processed outputs on all names as a function of test accuracy on the original sentiment task. Lower standard deviations imply that all names received similar predictions, which is the goal of individual fairness. Figure 2 (center) visualizes group fairness and accuracy, i.e., difference in average name sentiment scores for the two ethnic groups. In this problem, individual fairness is a stronger notion of fairness: achieving similar predictions for all names implies similar group averages, but not vice a versa. Therefore, for this task, post-processing for individual fairness also corrects group disparities.
273
+
274
+ ![](images/918fbdc2656ad0da27cbad9688ad1474168f32e745c722f2bcebde4c7b9eda00.jpg)
275
+ Figure 2: Sentiment experiment. Left: Trade-off between standard deviations of logits of names (measuring individual fairness) and accuracy. Center: Trade-off between race gap (measuring group fairness) and accuracy. Right: Frequencies of violations of the global IF constraints after applying GLIF, constraints corresponding to names, and GLIF’s global IF constraint violations for names.
276
+
277
+ In both settings, GLIF and GLIF-NRW achieve substantially better fairness metrics for the same levels of test accuracy in comparison to the IF-constraints method. To understand the reason for this, we study which global IF constraints are violated after applying the GLIF method in Figure 2 (right). Corresponding to the unique pairs of words in our test set, there are $n ( n - 1 ) / 2$ unique constraints in (2.3), and the global IF-constraints method satisfies all of them by design. Each constraint (i.e., each pair of words) corresponds to a fair distance, which is small for (under the fair metric) similar words and large for dissimilar words. We bin the constraints by fair distance and present the proportion of global IF constraints violated after applying the GLIF method for each bin in the histogram in Figure 2 (right). Here, we set the Lipschitz-constant $L$ in (2.3) to $L = 2 . 2 5$ corresponding to a $8 9 . 4 \%$ accuracy of the IF-constraints method and show global IF constraint violations of GLIF corresponding to $9 5 \%$ accuracy in blue. This means that we use strong global IF constraints and use a setting of the GLIF method which maintains most of the accuracy, which would not be possible using the IF-constraints method. GLIF does not violate any constraints corresponding to small fair distances, i.e., it satisfies IF on similar individuals, while violating many large fair distance constraints. This can be seen as basically all constraint violations (blue) are at large fair distances of greater or equal 6. This demonstrates the effect of enforcing local individual fairness from our theoretical analysis in Section 4. At the same time, we display frequency of constraints that correspond to pairs of names in orange, where we can see that almost all constraints corresponding to names occur at small fair distances of smaller or equal to 6. This is expected in this task because we consider all names similar, so fair distances between them should be small. We can see that the distributions of constraint violations after applying GLIF (blue, right) and names (orange, left) are almost disjoint. We mark all global IF constraint violations after applying GLIF that correspond to names in green, and observe that there are none. Summarizing, GLIF ignores unnecessary (in the context of this problem) constraints allowing it to achieve higher accuracy, while satisfying the more relevant local IF constraints leading to improved fairness.
278
+
279
+ Regarding the practical differences between GLIF and GLIF-NRW, in Figure 2 (left) GLIF has smaller standard deviations on the name outputs, but in in Figure 2 (center) GLIF-NRW achieves lower race gap. In Theorem 4.6, we showed that GLIF penalizes fairness violations in high density data regions stronger. As a result, GLIF may favor enforcing similar outputs in the high density region causing lower standard deviation, while leaving outputs nearly unchanged in the lower density region, resulting in larger race gaps. GLIF-NRW weights all data density regions equally, i.e., it is less likely to miss a small subset of names, but is less stringent in the high density regions.
280
+
281
+ # 5.2 Post-processing for Debiasing Large Language Models
282
+
283
+ Large language models have achieved impressive results on many tasks; however, there is also significant evidence demonstrating that they are prone to biases [4], [38], [39]. Debiasing these models remains largely an open problem: most in-processing algorithms are not applicable or computationally prohibitive due to large and highly complex model architectures, and challenges in handling text inputs. Even if an appropriate in-processing algorithm arises, significant environmental impact due to re-training is unavoidable [4], [16]. In our experiments, we evaluate effectiveness of GLIF as a simple post-processing technique to debias BERT-based models for text classification. Another possible solution is to fine-tune BERT with an in-processing technique as was done by Yurochkin et al. [12]. The two approaches are not directly comparable: fine-tuning with SenSeI [12] requires knowledge of the model parameters, alleviates only part of the computational burden, and has more stringent requirements on the fair metric, while post-processing with GLIF is transductive, i.e., it requires access to unlabeled test data (see extended discussion in Section 2.1).
284
+
285
+ ![](images/d8797f1f8a189470f5f4dac9da7fcb31f67a3d412338cd47d6ced12d932c6f3f.jpg)
286
+ Figure 3: Accuracy-Consistency trade-offs for Bios (left) and Toxicity (right).
287
+
288
+ Table 1: Results for the Bios task.
289
+
290
+ <table><tr><td>Method</td><td>Test Acc.</td><td>Pred. Consist.</td></tr><tr><td>Baseline</td><td>0.846 ± 0.003</td><td>0.942 ± 0.002</td></tr><tr><td>GLIF</td><td>0.830± 0.004</td><td>0.986 ± 0.002</td></tr><tr><td>GLIF-NRW</td><td>0.834 ± 0.003</td><td>0.988 ± 0.002</td></tr><tr><td>SenSEI</td><td>0.843 ± 0.003</td><td>0.977 ± 0.001</td></tr></table>
291
+
292
+ Table 2: Results for the Toxicity task.
293
+
294
+ <table><tr><td>Method</td><td>Test Acc.</td><td>Pred. Consist.</td></tr><tr><td>Baseline</td><td>0.809 ± 0.004</td><td>0.614 ± 0.013</td></tr><tr><td>GLIF</td><td>0.803 ±0.003</td><td>0.835 ± 0.012</td></tr><tr><td>GLIF-NRW</td><td>0.803 ± 0.003</td><td>0.844 ± 0.013</td></tr><tr><td>SenSEI</td><td>0.791 ± 0.005</td><td>0.773 ± 0.043</td></tr></table>
295
+
296
+ We replicate the experiments of Yurochkin et al. [12] on Bios [40] and Toxicity1 data sets. They use the approach of Mukherjee et al. [19] for fair metric learning which we reproduce. We refer to the Appendix B.1 of [12] for details. In both tasks, following [12], we quantify performance with balanced accuracy due to class imbalance, and measure individual fairness via prediction consistency, i.e., the fraction of test points where the prediction remains unchanged when performing task-specific input modifications. For implementation details, see Appendix A. In Appendix A.4, we analyze the runtime and distinguish between the closed-form and coordinate descent variants of GLIF.
297
+
298
+ In Bios, the goal is to predict the occupation of a person based on their textual biography. Such models can be useful for recruiting purposes. However, due to historical gender bias in some occupations, the baseline BERT model learns to associate gender pronouns and names with the corresponding occupations. Individual fairness is measured with prediction consistency with respect to gender pronouns and names alterations. A prediction is considered consistent if it is the same after swapping the gender pronouns and names. We present the fairness-accuracy trade-off in Figure 3 (left) for a range of threshold parameters $\tau$ , and compare performance based on hyperparameter values selected with a validation data in Table 1. Both GLIF and GLIF-NRW noticeably improve individual fairness measured with prediction consistency, while retaining most of the accuracy.
299
+
300
+ In Toxicity, the task is to identify toxic comments—an important tool for facilitating inclusive discussions online. The baseline BERT model learns to associate certain identity words with toxicity (e.g., “gay”) because they are often abused in online conversations. The prediction consistency is measured with respect to changes to identity words in the inputs. There are 50 identity words, e.g., “gay”, “muslim”, “asian”, etc. and a prediction is considered consistent if it is the same for all 50 identities. We present the trade-off plots in Figure 3 (right) and compare performance in Table 2 (right). Our methods reduce individual biases in BERT predictions. We note that in both Toxicity and Bios experiments, we observe no practical differences between GLIF and GLIF-NRW.
301
+
302
+ # 6 Summary and Discussion
303
+
304
+ We studied post-processing methods for enforcing individual fairness. The methods provably enforce a local form of IF and scale readily to large data sets. We hope this broadens the appeal of IF by (i) alleviating the computational costs of operationalizing IF and (ii) allowing practitioners to use off-the-shelf models for standard ML tasks. We also note that it is possible to use our objective for in-processing.
305
+
306
+ We conclude with two warnings: First, enforcing any algorithmic fairness definition does not guarantee complete fairness from the perspective of the user. The problem-specific meaning of fairness is often hard to encode exactly with a mathematical fairness definition. Second, while local individual fairness is a reasonable choice in many applications, this choice should be understood and verified by the practitioner depending on the situation.
307
+
308
+ # Acknowledgments and Disclosure of Funding
309
+
310
+ This note is based upon work supported by the National Science Foundation (NSF) under grants no. 1916271, 2027737, and 2113373 and supported by the German Research Foundation (DFG) under Germany’s Excellence Strategy EXC–2117–390829875. Any opinions, findings, and conclusions or recommendations expressed in this note are those of the authors and do not necessarily reflect the views of the NSF nor the DFG.
311
+
312
+ # References
313
+
314
+ [1] S. Barocas and A. D. Selbst, “Big data’s disparate impact,” Calif. L. Rev., vol. 104, p. 671, 2016.
315
+ [2] J. Larson, J. Angwin, L. Kirchner, and S. Mattu, “How we examined racial discrimination in auto insurance prices,” ProPublica, 2017.
316
+ [3] J. Buolamwini and T. Gebru, “Gender shades: Intersectional accuracy disparities in commercial gender classification,” in Conference on fairness, accountability and transparency, PMLR, 2018, pp. 77–91.
317
+ [4] E. M. Bender, T. Gebru, A. McMillan-Major, and S. Shmitchell, “On the dangers of stochastic parrots: Can language models be too big?” In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, 2021, pp. 610–623.
318
+ [5] A. Chouldechova and A. Roth, “A snapshot of the frontiers of fairness in machine learning,” Communications of the ACM, vol. 63, no. 5, pp. 82–89, 2020.
319
+ [6] C. Dwork, M. Hardt, T. Pitassi, O. Reingold, and R. Zemel, “Fairness through awareness,” in Proceedings of the 3rd innovations in theoretical computer science conference, 2012, pp. 214–226.
320
+ [7] D. C. Hsia, “Credit scoring and the equal credit opportunity act,” Hastings LJ, vol. 30, p. 371, 1978.
321
+ [8] M. Bertrand and S. Mullainathan, “Are emily and greg more employable than lakisha and jamal? a field experiment on labor market discrimination,” American Economic Review, vol. 94, no. 4, pp. 991–1013, 2004.
322
+ [9] W. Fleisher, “What’s fair about individual fairness?” Available at SSRN 3819799, 2021.
323
+ [10] C. Jung, M. Kearns, S. Neel, A. Roth, L. Stapleton, and Z. S. Wu, “An algorithmic framework for fairness elicitation,” arXiv preprint arXiv:1905.10660, 2019.
324
+ [11] M. Yurochkin, A. Bower, and Y. Sun, “Training individually fair ML models with sensitive subspace robustness,” in International Conference on Learning Representations (ICLR), 2020.
325
+ [12] M. Yurochkin and Y. Sun, “Sensei: Sensitive set invariance for enforcing individual fairness,” in International Conference on Learning Representations (ICLR), 2021.
326
+ [13] A. Vargo, F. Zhang, M. Yurochkin, and Y. Sun, “Individually fair gradient boosting,” in International Conference on Learning Representations (ICLR), 2021.
327
+ [14] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding. arxiv,” in Proc. Conference of the North American Chapter of the Association for Computational Linguistics (ACL), 2018.
328
+ [15] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, 2020.
329
+ [16] E. Strubell, A. Ganesh, and A. McCallum, “Energy and policy considerations for deep learning in nlp,” in 57th Annual Meeting of the Association for Computational Linguistics, 2019.
330
+ [17] O. Chapelle, B. Schölkopf, and A. Zien, Eds., Semi-Supervised Learning. Cambridge, Mass: MIT Press, 2006.
331
+ [18] C. Ilvento, “Metric Learning for Individual Fairness,” in 1st Symposium on Foundations of Responsible Computing (FORC 2020), Leibniz International Proceedings in Informatics (LIPIcs), vol. 156, Dagstuhl, Germany: Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2020.
332
+ [19] D. Mukherjee, M. Yurochkin, M. Banerjee, and Y. Sun, “Two simple ways to learn individual fairness metrics from data,” in International Conference on Machine Learning (ICML), 2020.
333
+ [20] M. P. Kim, A. Ghorbani, and J. Zou, “Multiaccuracy: Black-box post-processing for fairness in classification,” in Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, 2019.
334
+ [21] P. K. Lohia, K. N. Ramamurthy, M. Bhide, D. Saha, K. R. Varshney, and R. Puri, “Bias mitigation post-processing for individual and group fairness,” in IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2019, pp. 2847–2851.
335
+ [22] P. Lohia, “Priority-based post-processing bias mitigation for individual and group fairness,” arXiv preprint arXiv:2102.00417, 2021.
336
+ [23] D. Wei, K. N. Ramamurthy, and F. d. P. Calmon, “Optimized score transformation for fair classification,” in International Conference on Artificial Intelligence and Statistics (AISTATS), 2020.
337
+ [24] D. Spielman, “Spectral graph theory,” Combinatorial scientific computing, no. 18, 2012.
338
+ [25] M. Hein, J.-Y. Audibert, and U. v. Luxburg, “Graph laplacians and their convergence on random neighborhood graphs.,” Journal of Machine Learning Research, vol. 8, no. 6, 2007.
339
+ [26] R. R. Coifman and S. Lafon, “Diffusion maps,” Applied and computational harmonic analysis, vol. 21, no. 1, 2006.
340
+ [27] D. Zhou and B. Schölkopf, “A regularization framework for learning from graph data,” in ICML 2004 Workshop on Statistical Relational Learning and Its Connections to Other Fields (SRL 2004), 2004, pp. 132–137.
341
+ [28] M. Belkin, I. Matveeva, and P. Niyogi, “Regularization and semi-supervised learning on large graphs,” in International Conference on Computational Learning Theory, Springer, 2004, pp. 624–638.
342
+ [29] A. J. Smola and R. Kondor, “Kernels and regularization on graphs,” in Learning theory and kernel machines, Springer, 2003.
343
+ [30] P. Lahoti, K. P. Gummadi, and G. Weikum, “Ifair: Learning individually fair data representations for algorithmic decision making,” in 2019 ieee 35th international conference on data engineering (icde), IEEE, 2019, pp. 1334–1345.
344
+ [31] J. Kang, J. He, R. Maciejewski, and H. Tong, “Inform: Individual fairness on graph mining,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2020, pp. 379–389.
345
+ [32] S. J. Wright, “Coordinate descent algorithms,” Mathematical Programming, 2015.
346
+ [33] M. Hein, J.-Y. Audibert, and U. Von Luxburg, “From graphs to manifolds–weak and strong pointwise consistency of graph laplacians,” in International Conference on Computational Learning Theory, Springer, 2005.
347
+ [34] M. Hu and B. Liu, “Mining and summarizing customer reviews,” in Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, 2004.
348
+ [35] J. Pennington, R. Socher, and C. D. Manning, “Glove: Global vectors for word representation,” in Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), 2014, pp. 1532–1543.
349
+ [36] A. Caliskan, J. J. Bryson, and A. Narayanan, “Semantics derived automatically from language corpora contain human-like biases,” Science, 2017.
350
+ [37] S. Diamond and S. Boyd, “Cvxpy: A python-embedded modeling language for convex optimization,” The Journal of Machine Learning Research, vol. 17, no. 1, pp. 2909–2913, 2016.
351
+ [38] K. Kurita, N. Vyas, A. Pareek, A. W. Black, and Y. Tsvetkov, “Measuring bias in contextualized word representations,” in First Workshop on Gender Bias in Natural Language Processing, 2019.
352
+ [39] M. Nadeem, A. Bethke, and S. Reddy, “Stereoset: Measuring stereotypical bias in pretrained language models,” arXiv preprint arXiv:2004.09456, 2020.
353
+ [40] M. De-Arteaga, A. Romanov, H. Wallach, J. Chayes, C. Borgs, A. Chouldechova, S. Geyik, K. Kenthapadi, and A. T. Kalai, “Bias in bios: A case study of semantic representation bias in a high-stakes setting,” in Proceedings of the Conference on Fairness, Accountability, and Transparency (ACM FAccT), 2019.
354
+ [41] L. Dixon, J. Li, J. Sorensen, N. Thain, and L. Vasserman, “Measuring and mitigating unintended bias in text classification,” in Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, 2018.
355
+ [42] B. Sen, A gentle introduction to empirical process theory and applications, 2018.
parse/train/Z7IViZ6Ir1k/Z7IViZ6Ir1k_content_list.json ADDED
@@ -0,0 +1,1550 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Post-processing for Individual Fairness ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 261,
8
+ 122,
9
+ 736,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Felix Petersen ∗ University of Konstanz felix.petersen@uni.kn ",
17
+ "bbox": [
18
+ 266,
19
+ 200,
20
+ 447,
21
+ 242
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Debarghya Mukherjee ∗ University of Michigan mdeb@umich.edu ",
28
+ "bbox": [
29
+ 562,
30
+ 200,
31
+ 727,
32
+ 242
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Yuekai Sun University of Michigan yuekai@umich.edu ",
39
+ "bbox": [
40
+ 274,
41
+ 263,
42
+ 429,
43
+ 305
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Mikhail Yurochkin IBM Research, MIT-IBM Watson AI Lab mikhail.yurochkin@ibm.com ",
50
+ "bbox": [
51
+ 504,
52
+ 263,
53
+ 779,
54
+ 305
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 342,
65
+ 535,
66
+ 358
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Post-processing in algorithmic fairness is a versatile approach for correcting bias in ML systems that are already used in production. The main appeal of postprocessing is that it avoids expensive retraining. In this work, we propose general post-processing algorithms for individual fairness (IF). We consider a setting where the learner only has access to the predictions of the original model and a similarity graph between individuals guiding the desired fairness constraints. We cast the IF post-processing problem as a graph smoothing problem corresponding to graph Laplacian regularization that preserves the desired “treat similar individuals similarly” interpretation. Our theoretical results demonstrate the connection of the new objective function to a local relaxation of the original individual fairness. Empirically, our post-processing algorithms correct individual biases in large-scale NLP models such as BERT, while preserving accuracy. ",
73
+ "bbox": [
74
+ 233,
75
+ 375,
76
+ 766,
77
+ 540
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 573,
88
+ 310,
89
+ 590
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "There are many instances of algorithmic bias in machine learning (ML) models [1]–[4], which has led to the development of methods for quantifying and correcting algorithmic bias. To quantify algorithmic bias, researchers have proposed numerous mathematical definitions of algorithmic fairness. Broadly speaking, these definitions fall into two categories: group fairness [5] and individual fairness [6]. The former formalizes the idea that ML system should treat certain groups of individuals similarly, e.g., requiring the average loan approval rate for applicants of different ethnicities be similar [7]. The latter asks for similar treatment of similar individuals, e.g., same outcome for applicants with resumes that differ only in names [8]. Researchers have also developed many ways of correcting algorithmic bias. These fairness interventions broadly fall into three categories: pre-processing the data, enforcing fairness during model training (also known as in-processing), and post-processing the outputs of a model. ",
96
+ "bbox": [
97
+ 173,
98
+ 604,
99
+ 825,
100
+ 757
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "While both group and individual fairness (IF) definitions have their benefits and drawbacks [5], [6], [9], the existing suite of algorithmic fairness solutions mostly enforces group fairness. The few prior works on individual fairness are all in-processing methods [10]–[13]. Although in-processing is arguably the most-effective type of intervention, it has many practical limitations. For example, it requires training models from scratch. Nowadays, it is more common to fine-tune publicly available models (e.g., language models such as BERT [14] and GPT-3 [15]) than to train models afresh, as many practitioners do not have the necessary computational resources. Even with enough computational resources, training large deep learning models has a significant environmental impact [4], [16]. ",
107
+ "bbox": [
108
+ 174,
109
+ 763,
110
+ 825,
111
+ 875
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Post-processing offers an easier path towards incorporating algorithmic fairness into deployed ML models, and has potential to reduce environmental harm from re-training with in-processing fairness techniques. ",
118
+ "bbox": [
119
+ 174,
120
+ 92,
121
+ 823,
122
+ 133
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In this paper, we propose a computationally efficient method for post-processing off-the-shelf models to be individually fair. We consider a setting where we are given the outputs of a (possibly unfair) ML model on a set of $n$ individuals, and side information about their similarity for the ML task at hand, which can either be obtained using a fair metric on the input space or from external (e.g., human) annotations. Our starting point is a post-processing version of the algorithm by Dwork et al. [6] (see (2.3)). Unfortunately, this method has two drawbacks: poor scalability and an unfavorable trade-off with accuracy. As we shall see, the sharp trade-off is due to the restrictions imposed on dissimilar individuals by Dwork et al. [6]’s global Lipschitz continuity condition. By relaxing these restrictions on dissimilar individuals, we obtain a better trade-off between accuracy and fairness, while preserving the intuition of treating similar individuals similarly. This leads us to consider a graph signal-processing approach to IF post-processing that only enforces similar outputs between similar individuals. The nodes in the underlying graph correspond to individuals, edges (possibly weighted) indicate similarity, and the signal on the graph is the output of the model on the corresponding node-individuals. To enforce IF, we use Laplacian regularization [17], which encourages the signal to ",
129
+ "bbox": [
130
+ 173,
131
+ 140,
132
+ 826,
133
+ 333
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "be smooth on the graph. We illustrate this idea in Figure 1: a biased model decides whom to show a job ad for a Python programming job based on their CVs and chooses Charlie and Dave but excludes Alice. However, from the qualifications, we can see that Alice, Charlie and Dave are similar because they all have experience in Python, which is the job requirement, and thus should be treated similarly. We represent all five candidates as nodes in a graph, where the node signal (checkmark or cross) is the model’s decision for the corresponding candidate, and the edge weights are indicated by the thickness of the connecting line. Alice and Charlie have the same qualifications and are therefore connected with a large edge-weight. For the predictions to satisfy IF, the graph needs to be smooth, i.e., the similar / connected candidates should have similar node ",
140
+ "bbox": [
141
+ 174,
142
+ 333,
143
+ 491,
144
+ 579
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/f23f92c1b7b23609fd732c54d7541ee19aa81b25fe90a8adab304cc5cb266631.jpg",
151
+ "image_caption": [
152
+ "Figure 1: IF on a graph. "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 529,
157
+ 348,
158
+ 820,
159
+ 540
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "signals, which can be accomplished by also offering the job to Alice. In contrast, directly enforcing IF constraints [6] requires a certain degree of output similarity on all pairs of candidates, and not just on those which are connected and thus similar. Our main contributions are summarized below. ",
166
+ "bbox": [
167
+ 174,
168
+ 580,
169
+ 825,
170
+ 622
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "1. We cast post-processing for individual fairness as a graph smoothing problem and propose a coordinate descent algorithm to scale the approach to large data sets. \n2. We demonstrate theoretically and verify empirically that graph smoothing enforces individual fairness constraints locally, i.e., it guarantees similar treatment of similar individuals. \n3. We empirically compare the Laplacian smoothing method to the post-processing adaptation of the algorithm by Dwork et al. [6] enforcing global Lipschitz continuity. The Laplacian smoothing method is not only computationally more efficient but is also more effective in reducing algorithmic bias while preserving accuracy of the original model. \n4. We demonstrate the efficacy of Laplacian smoothing on two large-scale text data sets by reducing biases in fine-tuned BERT models. ",
177
+ "bbox": [
178
+ 173,
179
+ 638,
180
+ 826,
181
+ 777
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "2 Post-processing Problem Formulation ",
188
+ "text_level": 1,
189
+ "bbox": [
190
+ 174,
191
+ 803,
192
+ 521,
193
+ 820
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Let $\\mathcal { X }$ be the feature space, $\\mathcal { V }$ be the set of possible labels/targets, and $h : \\mathcal { X } \\mathcal { Y }$ be a (possibly unfair) ML model trained for the task. Our goal is to post-process the outputs of $h$ so that they are individually fair. Formally, the post-processor is provided with a set of inputs $\\{ x _ { i } \\} _ { i = 1 } ^ { n }$ and the outputs of $h$ on the inputs $\\{ \\widehat { y } _ { i } \\triangleq h ( x _ { i } ) \\} _ { i = 1 } ^ { n }$ , and its goal is to produce $\\{ \\widehat { f } _ { i } \\} _ { i = 1 } ^ { n }$ that is both individually fair and similar to the $\\widehat { y } _ { i }$ b ’s. Recall that individual fairness of $h$ is the Lipschitz continuity of $h$ with respect ",
200
+ "bbox": [
201
+ 173,
202
+ 838,
203
+ 825,
204
+ 911
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "to a fair metric $d _ { \\mathcal { X } }$ on the input space: ",
211
+ "bbox": [
212
+ 174,
213
+ 92,
214
+ 423,
215
+ 106
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "equation",
221
+ "img_path": "images/a4811805f8214c0932bc029d8f17d5db72f39e62820dbc31d74e2fc330e5fab3.jpg",
222
+ "text": "$$\nd y ( h ( x ) , h ( x ^ { \\prime } ) ) \\leq L d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) \\mathrm { ~ f o r ~ a l l ~ } x , x ^ { \\prime } \\in \\mathcal { X } ,\n$$",
223
+ "text_format": "latex",
224
+ "bbox": [
225
+ 333,
226
+ 111,
227
+ 663,
228
+ 128
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "where $L > 0$ is a Lipschitz constant. The fair metric encodes problem-specific intuition of which samples should be treated similarly by the ML model. It is analogous to the knowledge of protected attributes in group fairness needed to define corresponding fairness constraints. Recent literature proposes several practical methods for learning fair metric from data [18], [19]. We assume the postprocessor is either given access to the fair metric (it can evaluate the fair distance on any pair of points in $\\mathcal { X }$ ), or receives feedback on which inputs should be treated similarly. We encode this information in an adjacency matrix $W \\in \\mathbb { R } ^ { n \\times n }$ of a graph with individuals as nodes. If the post-processor is given the fair metric, then the entries of $W$ are ",
235
+ "bbox": [
236
+ 173,
237
+ 133,
238
+ 825,
239
+ 246
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "equation",
245
+ "img_path": "images/c9eb76df7d7fb0ce1db8cc3b55eb155865a61794ab44781ad87248725c0e4c83.jpg",
246
+ "text": "$$\nW _ { i j } = { \\left\\{ \\begin{array} { l l } { \\exp ( - \\theta d _ { \\mathcal { X } } ( x _ { i } , x _ { j } ) ^ { 2 } ) } & { d _ { \\mathcal { X } } ( x _ { i } , x _ { j } ) \\leq \\tau } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } , } \\end{array} \\right. }\n$$",
247
+ "text_format": "latex",
248
+ "bbox": [
249
+ 338,
250
+ 251,
251
+ 656,
252
+ 286
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "where $\\theta > 0$ is a scale parameter and $\\tau > 0$ is a threshold parameter. If the post-processor is given an annotator’s feedback, then $W$ is a binary matrix with $W _ { i j } = 1$ if $i$ and $j$ are considered to be treated similarly by the annotator and 0 otherwise. Extensions to multiple annotators are straightforward. ",
259
+ "bbox": [
260
+ 174,
261
+ 292,
262
+ 825,
263
+ 335
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "We start with a simple post-processing adaptation of the algorithm by Dwork et al. [6] for enforcing individual fairness, that projects the (possibly unfair) outputs of $h$ onto a constraint set to enforce (2.1). In other words, the post-processor seeks the closest set of outputs to the $\\widehat { y } _ { i }$ ’s that satisfies individual fairness: ",
270
+ "bbox": [
271
+ 174,
272
+ 340,
273
+ 825,
274
+ 396
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "equation",
280
+ "img_path": "images/37cb1b16f13da1f475472566017c32fa51357ba261c45329114db958659e71c0.jpg",
281
+ "text": "$$\n\\begin{array} { r } { \\{ \\widehat { f } _ { i } \\} _ { i = 1 } ^ { n } \\in \\left\\{ \\begin{array} { l l } { \\arg \\operatorname* { m i n } _ { f _ { 1 } , \\ldots , f _ { n } } } & { \\sum _ { i = 1 } ^ { n } \\frac { 1 } { 2 } d y ( f _ { i } , \\widehat { y } _ { i } ) ^ { 2 } } \\\\ { \\mathrm { s u b j e c t ~ t o } } & { d y ( f _ { i } , f _ { j } ) \\leq L d _ { \\mathcal { X } } ( x _ { i } , x _ { j } ) } \\end{array} \\right\\} . } \\end{array}\n$$",
282
+ "text_format": "latex",
283
+ "bbox": [
284
+ 300,
285
+ 396,
286
+ 697,
287
+ 439
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "This objective function, though convex, scales poorly due to the order of $n ^ { 2 }$ constraints. Empirically, we observe that (2.3) leads to post-processed outputs that are dissimilar to the $\\widehat { y } _ { i }$ ’s, leading to poor performance in practice. The goal of our method is to improve performance and scalability, while preserving the IF desiderata of treating similar individual similarly. Before presenting our method, we discuss other post-processing perspectives that differ in their applicability and input requirements. ",
294
+ "bbox": [
295
+ 174,
296
+ 445,
297
+ 826,
298
+ 516
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "2.1 Alternative Post-processing Formulations ",
305
+ "text_level": 1,
306
+ "bbox": [
307
+ 173,
308
+ 531,
309
+ 501,
310
+ 546
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "We review three post-processing problem setups and the corresponding methods in the literature. First, one can fine-tune a model via an in-processing algorithm to reduce algorithmic biases. Yurochkin et al. [12] proposed an in-processing algorithm for IF and used it to train fair models for text classification using sentence BERT embeddings. This setting is the most demanding in terms of input and computational requirements: a user needs access to the original model parameters, fair metric function, and train a predictor, e.g., a moderately deep fully connected neural network, with a non-trivial fairness-promoting objective function. ",
317
+ "bbox": [
318
+ 173,
319
+ 556,
320
+ 825,
321
+ 654
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Second, it is possible to post-process by training additional models to correct the initial model’s behavior. For example, Kim et al. [20] propose a boosting-based method for group fairness postprocessing. This perspective can be adapted to individual fairness; however, it implicitly assumes that we can train weak-learners to boost. Lohia et al. [21], [22] propose to train a bias detector to post-process for group fairness and a special, group based, notion of individual fairness. Such methods are challenging to apply to text data or other non-tabular data types. ",
328
+ "bbox": [
329
+ 174,
330
+ 660,
331
+ 825,
332
+ 743
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "The third perspective is the most generic: a user has access to original model outputs only, and a minimal additional feedback guiding fairness constraints. Wei et al. [23] consider such setting and propose a method to satisfy group fairness constraints; however, it is not applicable to individual fairness. Our problem formulation belongs to this post-processing setup. The main benefit of this approach is its broad applicability and ease of deployment. ",
339
+ "bbox": [
340
+ 174,
341
+ 750,
342
+ 825,
343
+ 819
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "3 Graph Laplacian Individual Fairness ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 174,
353
+ 838,
354
+ 516,
355
+ 856
356
+ ],
357
+ "page_idx": 2
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "To formulate our method, we cast IF post-processing as a graph smoothing problem. Using the fair metric or human annotations as discussed in Section 2, we obtain an $n \\times n$ matrix $W$ that we treat as an adjacency matrix. As elaborated earlier, the goal of post-processing is to obtain a model $f$ that is individually fair and accurate. The accuracy is achieved by minimizing the distance between the outputs of $f$ and $h$ , a pre-trained model assumed to be accurate but possibly biased. Recall that we do not have access to the parameters of $h$ , but can evaluate its predictions. Our method enforces fairness using a graph Laplacian quadratic form [24] regularizer: ",
362
+ "bbox": [
363
+ 174,
364
+ 869,
365
+ 825,
366
+ 911
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "",
373
+ "bbox": [
374
+ 174,
375
+ 90,
376
+ 825,
377
+ 147
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/45ba0bd0856ffe15c83f6456d6053f2e94cd7915945e175ec3e19e4b71e1a379.jpg",
384
+ "text": "$$\n\\widehat { \\mathbf { f } } = \\arg \\operatorname* { m i n } _ { \\mathbf { f } } { g _ { \\lambda } ( \\mathbf { f } ) } = \\arg \\operatorname* { m i n } _ { \\mathbf { f } } \\ \\| \\mathbf { f } - \\hat { \\mathbf { y } } \\| _ { 2 } ^ { 2 } + \\lambda \\mathbf { f } ^ { \\top } \\mathbb { L } _ { n } \\mathbf { f } ,\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 318,
388
+ 155,
389
+ 676,
390
+ 181
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "where $\\hat { \\mathbf { y } }$ is the output of the model $h$ , and $\\widehat { \\mathbf { f } }$ is the vector of the post-processed outputs, i.e., ${ \\widehat { f } } _ { i } = f ( x _ { i } )$ for $i = 1 , \\ldots , n$ . The matrix $\\mathbb { L } _ { n } \\in \\mathbb { R } ^ { n \\times n }$ is called graph Laplacian matrix and is a function of $W$ . There are multiple versions of $\\mathbb { L } _ { n }$ popularized in the graph literature (see, e.g., [25] or [26]). To elucidwhere t, ual f for s, consider the unnormalized Laplaciais the degree matrix corresponding to $\\mathbb { L } _ { u n , n } = D - W$ , $\\begin{array} { r } { D _ { i i } = \\sum _ { j = 1 } ^ { n } W _ { i j } } \\end{array}$ $D _ { i j } = 0$ $i \\neq j$ $W$ identity is: ",
397
+ "bbox": [
398
+ 173,
399
+ 190,
400
+ 826,
401
+ 279
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/8cfffaa922892d5295494c0391dbbc1ad6e519175c2569ffd61bcd3f82b58bed.jpg",
408
+ "text": "$$\n\\begin{array} { r } { \\mathbf { f } ^ { \\top } \\mathbb { L } _ { u n , n } \\mathbf { f } = \\frac { 1 } { 2 } \\sum _ { i \\neq j } W _ { i j } \\left( f _ { i } - f _ { j } \\right) ^ { 2 } . } \\end{array}\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 372,
412
+ 280,
413
+ 624,
414
+ 301
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "Hence, the Laplacian regularizer is small if the post-processed model outputs $\\widehat { f } _ { i }$ and ${ \\widehat { f } } _ { j }$ (i.e., treatment) are similar for large $W _ { i j }$ (i.e., for similar individuals $i$ and $j$ ). This promotes the philosophy of individual fairness: “treat similar individuals similarly”. This observation intuitively explains the motivation for minimizing the graph Laplacian quadratic form to achieve IF. In Section 4, we present a more formal discussion on the connections between the graph Laplacian regularization and IF. ",
421
+ "bbox": [
422
+ 173,
423
+ 309,
424
+ 825,
425
+ 380
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Our post-processing problem (3.1) is easy to solve: setting the gradient of $g _ { \\lambda }$ to 0 implies that the optimal solution $\\widehat { \\mathbf { f } }$ is: ",
432
+ "bbox": [
433
+ 174,
434
+ 385,
435
+ 820,
436
+ 415
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "equation",
442
+ "img_path": "images/bf1f3c26af9044b24d9bef75a67a86584b276607bddb9a41ea94f8267d796373.jpg",
443
+ "text": "$$\n\\widehat { \\mathbf { f } } = \\left( I + \\lambda \\left( \\frac { \\mathbb { L } _ { n } + \\mathbb { L } _ { n } ^ { \\top } } { 2 } \\right) \\right) ^ { - 1 } \\widehat { \\mathbf { y } } .\n$$",
444
+ "text_format": "latex",
445
+ "bbox": [
446
+ 383,
447
+ 411,
448
+ 611,
449
+ 449
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "The Laplacian $\\mathbb { L } _ { n }$ is a positive semi-definite matrix ensuring that (3.1) is strongly convex and that (3.3) is a global minimum. In comparison to the computationally expensive constraint optimization problem (2.3), this approach has a simple closed-form expression. ",
456
+ "bbox": [
457
+ 174,
458
+ 454,
459
+ 823,
460
+ 497
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Note that the symmetry of the unnormalized Laplacian $\\mathbb { L } _ { u n , n }$ simplifies (3.3); however, there are also non-symmetric Laplacian variations. In this work, we also consider the normalized random walk Laplacian $\\mathbb { L } _ { n r w , n } = ( I - \\widetilde { D } ^ { - 1 } \\widetilde { W } )$ , where $\\widetilde { W } = D ^ { - 1 / 2 } W D ^ { - 1 / 2 }$ is the normalized adjacency matrix and De is its degree matrix. We discuss its properties in the context of IF in Section 4. Henceforth, we refer to our method as Graph Laplacian Individual Fairness (GLIF) when using the unnormalized Laplacian, and GLIF-NRW when using Normalized Random Walk Laplacian. ",
467
+ "bbox": [
468
+ 173,
469
+ 502,
470
+ 825,
471
+ 593
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "3.1 Prior Work on Graph Laplacians ",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 176,
481
+ 611,
482
+ 444,
483
+ 626
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Graph-based learning via a similarity matrix is prevalent in statistics and ML literature, specifically, in semi-supervised learning. The core idea is to gather information from similar unlabeled inputs to improve prediction accuracy (e.g., see [27], [28], [29] and references therein). Laplacian regularization is widely used in science engineering. We refer to Chapelle [17] for a survey. ",
490
+ "bbox": [
491
+ 174,
492
+ 637,
493
+ 825,
494
+ 693
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "We note that [30], [31] also use graph Laplacian regularizers to enforce individual fairness. Our work builds on their work by elucidating the key role played by the graph Laplacian in enforcing individual fairness. In particular, we clarify the connection between the choice of the graph Laplacian and the exact notion of individual fairness the corresponding graph Laplacian regularizer enforces. ",
501
+ "bbox": [
502
+ 173,
503
+ 699,
504
+ 825,
505
+ 756
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "3.2 Extensions of the Basic Method ",
512
+ "text_level": 1,
513
+ "bbox": [
514
+ 174,
515
+ 773,
516
+ 431,
517
+ 787
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "In this subsection, we present four extensions of our method: multi-dimensional outputs, coordinate descent for large-scale data, an inductive setting, and alternative output space discrepancy measures. ",
524
+ "bbox": [
525
+ 174,
526
+ 799,
527
+ 825,
528
+ 829
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "3.2.1 Multi-dimensional Output ",
535
+ "text_level": 1,
536
+ "bbox": [
537
+ 174,
538
+ 844,
539
+ 408,
540
+ 859
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "We presented our objective function (3.1) and post-processing procedure (3.3) for the case of univariate outputs. This covers regression and binary classification. Our method readily extends to multi-dimensional output space, for example, in classification, $f _ { i } , \\widehat { y } _ { i } \\in \\mathbb { R } ^ { K }$ can represent logits, i.e., ",
547
+ "bbox": [
548
+ 174,
549
+ 869,
550
+ 825,
551
+ 911
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "softmax inputs, of the $K$ classes. In this case, f and $\\hat { \\mathbf { y } }$ are $n \\times K$ matrices, and the term f $\\mathbf { : } ^ { \\top } \\mathbb { L } _ { n } \\mathbf { f }$ is a $K \\times K$ matrix. We use the trace of it as a regularizer. The optimization problem (3.1) then becomes: ",
558
+ "bbox": [
559
+ 171,
560
+ 90,
561
+ 825,
562
+ 119
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "equation",
568
+ "img_path": "images/7d2c3e75b1fc3ac083b1de4bcc4e16cd1836e2dbde0518597f1f42cf4be2b6f9.jpg",
569
+ "text": "$$\n\\widehat { \\mathbf { f } } = \\arg \\operatorname* { m i n } _ { f } g _ { \\lambda } ( \\mathbf { f } ) = \\arg \\operatorname* { m i n } _ { f } \\| \\mathbf { f } - \\widehat { \\mathbf { y } } \\| _ { F } ^ { 2 } + \\lambda \\operatorname { t r } \\left( \\mathbf { f } ^ { \\top } \\mathbb { L } _ { n } \\mathbf { f } \\right) ,\n$$",
570
+ "text_format": "latex",
571
+ "bbox": [
572
+ 302,
573
+ 123,
574
+ 692,
575
+ 150
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "where $\\| \\cdot \\| _ { F }$ is the Frobenius norm. Similar to the univariate output case, this yields: ",
582
+ "bbox": [
583
+ 174,
584
+ 155,
585
+ 728,
586
+ 170
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "equation",
592
+ "img_path": "images/676116820a88f7eec0d6242c6ce4fc54e491844342c82fdd770cf7612a29ea8a.jpg",
593
+ "text": "$$\n\\widehat { \\mathbf { f } } = \\left( I + \\lambda \\left( \\frac { \\mathbb { L } _ { n } + \\mathbb { L } _ { n } ^ { \\top } } { 2 } \\right) \\right) ^ { - 1 } \\widehat { \\mathbf { y } } .\n$$",
594
+ "text_format": "latex",
595
+ "bbox": [
596
+ 383,
597
+ 172,
598
+ 611,
599
+ 212
600
+ ],
601
+ "page_idx": 4
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "The solution is the same as (3.3); however, now it accounts for multi-dimensional outputs. ",
606
+ "bbox": [
607
+ 173,
608
+ 214,
609
+ 761,
610
+ 229
611
+ ],
612
+ "page_idx": 4
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "3.2.2 Coordinate Descent for Large-Scale Data ",
617
+ "text_level": 1,
618
+ "bbox": [
619
+ 173,
620
+ 242,
621
+ 513,
622
+ 257
623
+ ],
624
+ "page_idx": 4
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "Although our method has a closed form solution, it is not immediately scalable, as we have to invert a $n \\times n$ matrix to obtain the optimal solution. We propose a coordinate descent variant of our method that readily scales to any data size. The idea stems primarily from the gradient of equation (3.4), where we solve: ",
629
+ "bbox": [
630
+ 173,
631
+ 266,
632
+ 825,
633
+ 320
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "equation",
639
+ "img_path": "images/83ff825ff15b7fd79b2390905d08830423451ccf025d16ec8f9023eed1c64aeb.jpg",
640
+ "text": "$$\n\\mathbf { f } - \\widehat { \\mathbf { y } } + \\lambda \\frac { \\mathbb { L } _ { n } + \\mathbb { L } _ { n } ^ { \\top } } { 2 } \\mathbf { f } = 0 .\n$$",
641
+ "text_format": "latex",
642
+ "bbox": [
643
+ 408,
644
+ 318,
645
+ 589,
646
+ 349
647
+ ],
648
+ "page_idx": 4
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "Fixing $\\{ f _ { j } \\} _ { j \\neq i }$ , we can solve (3.6) for $f _ { i }$ ",
653
+ "bbox": [
654
+ 176,
655
+ 351,
656
+ 447,
657
+ 366
658
+ ],
659
+ "page_idx": 4
660
+ },
661
+ {
662
+ "type": "equation",
663
+ "img_path": "images/5955c091ff740a9916da61ad64bdbb54c5e09bedc4ce986449eef6aadac0fd19.jpg",
664
+ "text": "$$\nf _ { i } \\gets \\frac { \\hat { y } _ { i } - \\frac { \\lambda } { 2 } \\sum _ { j \\neq i } ( \\mathbb { L } _ { n , i j } + \\mathbb { L } _ { n , j i } ) f _ { j } } { 1 + \\lambda \\mathbb { L } _ { n , i i } } .\n$$",
665
+ "text_format": "latex",
666
+ "bbox": [
667
+ 372,
668
+ 369,
669
+ 625,
670
+ 409
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "This gives rise to the coordinate descent algorithm. We perform asynchronous updates over randomly selected coordinate batches until convergence. We refer the reader to Wright [32] and the references therein for the convergence properties of (asynchronous) coordinate descent. ",
677
+ "bbox": [
678
+ 174,
679
+ 410,
680
+ 825,
681
+ 453
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "3.2.3 Extension to the Inductive Setting ",
688
+ "text_level": 1,
689
+ "bbox": [
690
+ 176,
691
+ 467,
692
+ 460,
693
+ 481
694
+ ],
695
+ "page_idx": 4
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "This coordinate descent update is key to extending our approach to the inductive setting. To handle new unseen points, we assume we have a set of test points on which we have already post-processed the outputs of the ML model. To post-process new unseen points, we simply fix the outputs of the other test points and perform a single coordinate descent step with respect to the output of the new point. Similar strategies are often employed to extend transductive graph-based algorithms to the inductive setting [17]. ",
700
+ "bbox": [
701
+ 173,
702
+ 489,
703
+ 826,
704
+ 575
705
+ ],
706
+ "page_idx": 4
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "3.2.4 Alternative Discrepancy Measures on the Output Space ",
711
+ "text_level": 1,
712
+ "bbox": [
713
+ 173,
714
+ 588,
715
+ 611,
716
+ 603
717
+ ],
718
+ "page_idx": 4
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "So far, we have considered the squared Euclidean distance as a measure of discrepancy between outputs. This is a natural choice for post-processing models with continuous-valued outputs. For models that output a probability distribution over the possible classes, we consider alternative discrepancy measures on the output space. It is possible to replace the squared Euclidean distance with a Bregman divergence with very little change to the algorithm in the case of the unnormalized Laplacian. Below, we work through the details for the KL divergence as a demonstration of the idea. A result for the general Bregman divergence can be found in Appendix B.3 (see Theorem B.4). ",
723
+ "bbox": [
724
+ 173,
725
+ 611,
726
+ 826,
727
+ 709
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Suppose the output of the pre-trained model $h$ is $\\hat { y } _ { i } \\in \\Delta ^ { K }$ , where $\\begin{array} { r } { \\hat { y } _ { i } = \\{ e ^ { o _ { i , j } } / \\sum _ { k = 1 } ^ { K } e ^ { o _ { i , k } } \\} _ { j = 1 } ^ { K } } \\end{array}$ a $K$ - dimensional probability vector corresponding to a $K$ class classification problem $\\left. { o _ { i , j } } \\right\\}$ is the output of tand del and is the p $\\hat { y } _ { i }$ is obtained by passbability simplex in it thr. Let h softmax) denote the $\\Delta ^ { K } = \\{ x \\in \\mathbb { R } ^ { K } : x _ { i } \\geq 0 , \\sum _ { i = 1 } ^ { K } x _ { i } = 1 \\}$ $\\mathbb { R } ^ { K }$ $P _ { v }$ multinomial distribution with success probabilities $v$ for any $v \\in \\Delta ^ { k }$ . Define $\\hat { \\eta } _ { i } \\in \\mathbb { R } ^ { K - 1 }$ (resp. $\\eta _ { i }$ ) as the natural parameter corresponding to $\\hat { y } _ { i }$ (resp. $f _ { i }$ ), i.e., $\\hat { \\eta } _ { i , j } = \\log \\left( \\hat { y } _ { i , j } / \\hat { y } _ { i , K } \\right) = o _ { i , j } - o _ { i , K }$ for $1 \\leq j \\leq K - 1$ . The (unnormalized) Laplacian smoothing problem with the KL divergence is ",
734
+ "bbox": [
735
+ 173,
736
+ 715,
737
+ 826,
738
+ 821
739
+ ],
740
+ "page_idx": 4
741
+ },
742
+ {
743
+ "type": "equation",
744
+ "img_path": "images/9dd0506a9937275452912317c54ac78019bd3935d9985875cde83d895333bedc.jpg",
745
+ "text": "$$\n\\left( \\widetilde { y } _ { 1 } , \\dots , \\widetilde { y } _ { n } \\right) = \\arg \\operatorname* { m i n } _ { y _ { 1 } , \\dots , y _ { n } \\in \\Delta ^ { K } } \\left[ \\sum _ { i } \\left\\{ \\mathsf { K L } \\left( P _ { y _ { i } } | | P _ { \\widetilde { y } _ { i } } \\right) + \\frac { \\lambda } { 2 } \\sum _ { j = 1 , j \\neq i } ^ { n } W _ { i j } \\mathsf { K L } \\left( P _ { y _ { i } } | | P _ { y _ { j } } \\right) \\right\\} \\right] .\n$$",
746
+ "text_format": "latex",
747
+ "bbox": [
748
+ 179,
749
+ 824,
750
+ 785,
751
+ 868
752
+ ],
753
+ "page_idx": 4
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "A coordinate descent approach for solving the above equation is: ",
758
+ "bbox": [
759
+ 174,
760
+ 871,
761
+ 599,
762
+ 886
763
+ ],
764
+ "page_idx": 4
765
+ },
766
+ {
767
+ "type": "equation",
768
+ "img_path": "images/f18aa002a91c448315e3a6e6dcf6582a3e3d0be7968e1e7e69415ec500fc988d.jpg",
769
+ "text": "$$\n\\begin{array} { r } { \\tilde { y } _ { i } = \\arg \\operatorname* { m i n } _ { y \\in \\Delta ^ { k } } \\left\\{ \\mathsf { K L } \\left( P _ { y } | | P _ { \\hat { y } _ { i } } \\right) + \\frac { \\lambda } { 2 } \\sum _ { j = 1 , j \\neq i } ^ { n } W _ { i j } \\mathsf { K L } \\left( P _ { y } | | P _ { \\tilde { y } _ { j } } \\right) \\right\\} . } \\end{array}\n$$",
770
+ "text_format": "latex",
771
+ "bbox": [
772
+ 266,
773
+ 888,
774
+ 730,
775
+ 916
776
+ ],
777
+ "page_idx": 4
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "The following theorem establishes that (3.5) solves the above problem in the logit space, or equivalently in the space of the corresponding natural parameters (see Appendix $\\mathbf { B }$ for the proof): ",
782
+ "bbox": [
783
+ 173,
784
+ 90,
785
+ 825,
786
+ 119
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Theorem 3.1. Consider the following optimization problem on the space of natural parameters: ",
793
+ "bbox": [
794
+ 171,
795
+ 123,
796
+ 803,
797
+ 138
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "equation",
803
+ "img_path": "images/ec3fd3b5e15cbbf2a02400539ce77d86a3b1eb29be2aebb244a78e27332fc30b.jpg",
804
+ "text": "$$\n\\begin{array} { r } { \\widetilde { \\eta } _ { i } = \\arg \\operatorname* { m i n } _ { \\eta } \\left[ \\| \\eta - \\widehat { \\eta } _ { i } \\| ^ { 2 } + \\frac { \\lambda } { 2 } \\sum _ { j = 1 , j \\neq i } ^ { n } W _ { i j } \\| \\eta - \\widetilde { \\eta } _ { j } \\| ^ { 2 } \\right] . } \\end{array}\n$$",
805
+ "text_format": "latex",
806
+ "bbox": [
807
+ 305,
808
+ 143,
809
+ 692,
810
+ 171
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Then, the minimizer $\\tilde { \\eta } _ { i }$ of equation (3.10) is the natural parameter corresponding to the minimizer $\\tilde { y } _ { i }$ of (3.8). ",
817
+ "bbox": [
818
+ 171,
819
+ 176,
820
+ 823,
821
+ 205
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "4 Local IF and Graph Laplacian Regularization ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 173,
831
+ 223,
832
+ 591,
833
+ 242
834
+ ],
835
+ "page_idx": 5
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "In this section, we provide theoretical insights into why the graph Laplacian regularizer enforces individual fairness. As pointed out in Section 2, enforcing IF globally is expensive and often reduces a significant amount of accuracy of the final classifier. Here, we establish that solving (3.1) is tantamount to enforcing a localized version of individual fairness, namely Local Individual Fairness, which is defined below: ",
840
+ "bbox": [
841
+ 173,
842
+ 253,
843
+ 825,
844
+ 324
845
+ ],
846
+ "page_idx": 5
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Definition 4.1 (Local Individual Fairness). An ML model $h$ is said to be locally individually fair if it ",
851
+ "bbox": [
852
+ 169,
853
+ 328,
854
+ 826,
855
+ 348
856
+ ],
857
+ "page_idx": 5
858
+ },
859
+ {
860
+ "type": "equation",
861
+ "img_path": "images/41742888f38d5111cad39e02d426cf79090d47d4475a5d7f98c808b5a5b54c19.jpg",
862
+ "text": "$$\n\\mathbb { E } _ { x \\sim P } \\left[ \\operatorname* { l i m } _ { x ^ { \\prime } : d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) \\downarrow 0 } \\frac { d _ { \\mathcal { Y } } ( h ( x ) , h ( x ^ { \\prime } ) ) } { d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) } \\right] \\leq L < \\infty .\n$$",
863
+ "text_format": "latex",
864
+ "bbox": [
865
+ 330,
866
+ 348,
867
+ 666,
868
+ 390
869
+ ],
870
+ "page_idx": 5
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "For practical purposes, this means that $h$ is locally individually fair with constants $\\epsilon$ and $L$ if it satisfies ",
875
+ "bbox": [
876
+ 169,
877
+ 398,
878
+ 825,
879
+ 425
880
+ ],
881
+ "page_idx": 5
882
+ },
883
+ {
884
+ "type": "equation",
885
+ "img_path": "images/dd63b0be464b4931f26357ade74c6c476be9d179a457b30a464228c65a3df717.jpg",
886
+ "text": "$$\nd y ( h ( x ) , h ( x ^ { \\prime } ) ) \\leq L d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) \\mathrm { ~ f o r ~ a l l ~ } x , x ^ { \\prime } \\in \\mathcal { X } \\mathrm { ~ w h e r e ~ } d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) \\leq \\epsilon\n$$",
887
+ "text_format": "latex",
888
+ "bbox": [
889
+ 264,
890
+ 424,
891
+ 730,
892
+ 443
893
+ ],
894
+ "page_idx": 5
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "in analogy to equation (2.1). Equation (4.2) is a relaxation of traditional IF, where we only care about the Lipschitz-constraint for all pairs of points with small fair distances, i.e., where it is less than some user-defined threshold $\\epsilon$ . ",
899
+ "bbox": [
900
+ 174,
901
+ 445,
902
+ 825,
903
+ 487
904
+ ],
905
+ "page_idx": 5
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Example 4.2. For our theoretical analysis, we need to specify a functional form of the fair metric. A popular choice is a Mahalanobis fair metric proposed by $I I 9 J$ , which is defined as: ",
910
+ "bbox": [
911
+ 173,
912
+ 491,
913
+ 823,
914
+ 520
915
+ ],
916
+ "page_idx": 5
917
+ },
918
+ {
919
+ "type": "equation",
920
+ "img_path": "images/0861429dcc4b63fc5165914d35c3d59d296c32b06ccdb232e46b3d7b81ebe133.jpg",
921
+ "text": "$$\nd _ { \\mathcal { X } } ^ { 2 } ( \\boldsymbol { x } , \\boldsymbol { x } ^ { \\prime } ) = ( \\boldsymbol { x } - \\boldsymbol { x } ^ { \\prime } ) ^ { \\top } \\Sigma ( \\boldsymbol { x } - \\boldsymbol { x } ^ { \\prime } ) ,\n$$",
922
+ "text_format": "latex",
923
+ "bbox": [
924
+ 385,
925
+ 525,
926
+ 612,
927
+ 545
928
+ ],
929
+ "page_idx": 5
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "where $\\Sigma$ is a dispersion matrix that puts lower weight in the directions of sensitive attributes and higher weight in the directions of relevant attributes. [19] also proposed several algorithms to learn such a fair metric from the data. If we further assume $d y ( y _ { 1 } , y _ { 2 } ) = | y _ { 1 } - y _ { 2 } |$ , then a simple application of Lagrange’s mean value theorem yields: ",
934
+ "bbox": [
935
+ 173,
936
+ 550,
937
+ 825,
938
+ 607
939
+ ],
940
+ "page_idx": 5
941
+ },
942
+ {
943
+ "type": "equation",
944
+ "img_path": "images/7b0c5559893ff3d76f6eafe4f4b6c6bc3fe268870e454e6dacaeae9980ed1f22.jpg",
945
+ "text": "$$\n\\operatorname* { l i m } _ { x ^ { \\prime } : d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) \\downarrow 0 } \\frac { | h ( x ) - h ( x ^ { \\prime } ) | } { d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) } \\leq \\| \\Sigma ^ { - 1 / 2 } \\nabla h ( x ) \\| .\n$$",
946
+ "text_format": "latex",
947
+ "bbox": [
948
+ 339,
949
+ 612,
950
+ 656,
951
+ 647
952
+ ],
953
+ "page_idx": 5
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "This immediately implies: ",
958
+ "bbox": [
959
+ 173,
960
+ 655,
961
+ 343,
962
+ 669
963
+ ],
964
+ "page_idx": 5
965
+ },
966
+ {
967
+ "type": "equation",
968
+ "img_path": "images/5ce2efb5402acfdd60734388c8ecc732d47faa036222a91e9d36a65191a967bf.jpg",
969
+ "text": "$$\n\\mathbb { E } _ { x \\sim P } \\left[ \\operatorname* { l i m } _ { { x ^ { \\prime } : d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) } \\downarrow 0 } \\frac { d _ { \\mathcal { Y } } ( h ( x ) , h ( x ^ { \\prime } ) ) } { d _ { \\mathcal { X } } ( x , x ^ { \\prime } ) } \\right] \\leq \\mathbb { E } [ \\| { \\Sigma } ^ { - 1 / 2 } \\nabla h ( x ) \\| ] ,\n$$",
970
+ "text_format": "latex",
971
+ "bbox": [
972
+ 294,
973
+ 674,
974
+ 702,
975
+ 717
976
+ ],
977
+ "page_idx": 5
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "i.e., h satisfies local individual fairness constraint as long as $\\mathbb { E } [ | | \\Sigma ^ { - 1 / 2 } \\nabla h ( x ) | | ] < \\infty$ . On the other hand, the global $I F$ constraint necessitates $\\begin{array} { r } { \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\Sigma ^ { - 1 / 2 } \\nabla h ( x ) \\| < \\infty , } \\end{array}$ , i.e., h is Lipschitz continuous with respect to the Mahalanobis distance. ",
982
+ "bbox": [
983
+ 174,
984
+ 723,
985
+ 825,
986
+ 768
987
+ ],
988
+ "page_idx": 5
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "The main advantage of this local notion of IF over its global counterpart is that the local definition concentrates on the input pairs with smaller fair distance and ignores those with larger distance. For example, in Figure 1, the edge-weights among Alice, Charlie, and Dave are much larger than among any other pairs (which have a weight of 0); therefore, our local notion enforces fairness constraint on the corresponding similar pairs, while ignoring (or being less stringent on) others. This prevents over-smoothing and consequently preserves accuracy while enforcing fairness as is evident from our real data experiments in Section 5. ",
993
+ "bbox": [
994
+ 173,
995
+ 779,
996
+ 825,
997
+ 877
998
+ ],
999
+ "page_idx": 5
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "We now present our main theorem, which establishes that, under certain assumptions on the underlying hypothesis class and the distribution of inputs, the graph Laplacian regularizers (both unnormalized and normalized random walk) enforce the local IF constraint (as defined in Definition 4.1) in the limit. For our theory, we work with $d _ { \\mathcal { X } }$ as the Mahalanobis distance introduced in Example 4.2 in equation (2.2) along with $\\theta = 1 / ( 2 \\sigma ^ { 2 } )$ $\\sigma$ is a bandwidth parameter which goes to 0 at an appropriate rate as $n \\to \\infty$ ) and $\\tau = \\infty$ . All our results will be thorough for any finite $\\tau$ but with more tedious technical analysis. Therefore, our weight matrix $W$ becomes: ",
1004
+ "bbox": [
1005
+ 173,
1006
+ 882,
1007
+ 823,
1008
+ 912
1009
+ ],
1010
+ "page_idx": 5
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "",
1015
+ "bbox": [
1016
+ 174,
1017
+ 90,
1018
+ 825,
1019
+ 161
1020
+ ],
1021
+ "page_idx": 6
1022
+ },
1023
+ {
1024
+ "type": "equation",
1025
+ "img_path": "images/f3af875483e730a88c2510ee0184d31983dba7063014ac0c4bd8ee4ee0a67514.jpg",
1026
+ "text": "$$\nW _ { i j } = \\frac { | \\Sigma | ^ { 1 / 2 } } { ( 2 \\pi ) ^ { d / 2 } \\sigma ^ { d } } \\mathrm { e x p } \\left( - \\frac { 1 } { 2 \\sigma ^ { 2 } } ( x _ { i } - x _ { j } ) ^ { \\top } \\Sigma \\left( x _ { i } - x _ { j } \\right) \\right) .\n$$",
1027
+ "text_format": "latex",
1028
+ "bbox": [
1029
+ 310,
1030
+ 162,
1031
+ 687,
1032
+ 199
1033
+ ],
1034
+ "page_idx": 6
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "The constant $| \\Sigma | ^ { 1 / 2 } / ( ( 2 \\pi ) ^ { d / 2 } \\sigma ^ { d } )$ is for the normalization purpose and can be absorbed into the penalty parameter $\\lambda$ . We start by listing our assumptions: ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 202,
1042
+ 823,
1043
+ 232
1044
+ ],
1045
+ "page_idx": 6
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Assumption 4.3 (Assumption on the domain). The domain of the inputs $\\mathcal { X }$ is a compact subset of $\\mathbb { R } ^ { d }$ where $d$ is the underlying dimension. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 233,
1053
+ 823,
1054
+ 262
1055
+ ],
1056
+ "page_idx": 6
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Assumption 4.4 (Assumption on the hypothesis). All functions $f \\in { \\mathcal { F } }$ of the hypothesis class satisfy the following: ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 263,
1064
+ 825,
1065
+ 294
1066
+ ],
1067
+ "page_idx": 6
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "1. The $i ^ { t h }$ derivative $f ^ { ( i ) }$ is uniformly bounded over the domain $\\mathcal { X }$ of inputs for $i \\in \\{ 0 , 1 , 2 \\}$ . ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 295,
1075
+ 787,
1076
+ 310
1077
+ ],
1078
+ "page_idx": 6
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "2. $f ^ { ( 1 ) } ( x ) = 0$ for all $x \\in \\partial X$ , where $\\partial X$ denotes the boundary of $\\mathcal { X }$ . ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 311,
1086
+ 642,
1087
+ 325
1088
+ ],
1089
+ "page_idx": 6
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Assumption 4.5 (Assumption on the density of inputs). The density $p$ of the input random variable x on the domain $\\mathcal { X }$ satisfies the following: ",
1094
+ "bbox": [
1095
+ 174,
1096
+ 328,
1097
+ 823,
1098
+ 357
1099
+ ],
1100
+ "page_idx": 6
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "1. There exists $p _ { \\operatorname* { m a x } } < \\infty$ and $p _ { \\operatorname* { m i n } } > 0$ such that, for all $x \\in \\mathcal { X }$ , we have $p _ { \\operatorname* { m i n } } \\le p ( x ) \\le p _ { \\operatorname* { m a x } }$ . \n2. The derivatives $\\{ p ^ { ( i ) } \\} _ { i = 0 , 1 , 2 }$ of the density $p$ are uniformly bounded on the domain $\\mathcal { X }$ . ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 359,
1108
+ 810,
1109
+ 391
1110
+ ],
1111
+ "page_idx": 6
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Discussion on the assumptions Most of our assumptions (e.g., compactness of the domain, bounded derivatives of $f$ or $p$ ) are for technical simplicity and are fairly common for the asymptotic analysis of graph regularization (see, e.g., Hein et al. [25], [33] and references therein). It is possible to relax some of the assumptions: for example, if the domain $\\mathcal { X }$ of inputs is unbounded, then the target function $f$ and the density $p$ should decay at certain rate so that observations far away will not be able to affect the convergence (e.g., sub-exponential tails). Part (2.) of Assumption 4.4 can be relaxed if we assume $p ( x )$ is 0 at boundary. However, we do not pursue these extensions further in this manuscript, as they are purely technical and do not add anything of significance to the main intuition of the result. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 400,
1119
+ 826,
1120
+ 526
1121
+ ],
1122
+ "page_idx": 6
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Theorem 4.6. Under Assumptions 4.3 - 4.5, we have: ",
1127
+ "bbox": [
1128
+ 174,
1129
+ 527,
1130
+ 529,
1131
+ 542
1132
+ ],
1133
+ "page_idx": 6
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "1. If the sequence of bandwidths $\\sigma \\equiv \\sigma _ { n } \\downarrow 0$ such that $n \\sigma _ { n } ^ { 2 } \\to \\infty$ and $\\mathbb { L } _ { u n , n }$ is unnormalized Laplacian matrix, then ",
1138
+ "bbox": [
1139
+ 173,
1140
+ 550,
1141
+ 823,
1142
+ 579
1143
+ ],
1144
+ "page_idx": 6
1145
+ },
1146
+ {
1147
+ "type": "equation",
1148
+ "img_path": "images/35452ebefc4c3e5c55e3350d27c72744a583cfce03568ad5fb9ef985006b895b.jpg",
1149
+ "text": "$$\n\\frac { 2 } { n ^ { 2 } \\sigma ^ { 2 } } \\mathbf { f } ^ { \\top } \\mathbb { L } _ { u n , n } \\mathbf { f } \\xrightarrow { P } \\mathbb { E } _ { x \\sim p } \\left[ \\nabla f ( x ) ^ { \\top } \\Sigma ^ { - 1 } \\nabla f ( x ) p ( x ) \\right] .\n$$",
1150
+ "text_format": "latex",
1151
+ "bbox": [
1152
+ 325,
1153
+ 582,
1154
+ 694,
1155
+ 612
1156
+ ],
1157
+ "page_idx": 6
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "2. If the sequence of bandwidths $\\sigma \\equiv \\sigma _ { n } \\downarrow 0$ such that $( n \\sigma ^ { d + 4 } ) / ( \\log { ( 1 / \\sigma ) } ) \\to \\infty$ and $\\mathbb { L } _ { n r w , n }$ is the normalized random walk Laplacian matrix, then: ",
1162
+ "bbox": [
1163
+ 179,
1164
+ 614,
1165
+ 823,
1166
+ 643
1167
+ ],
1168
+ "page_idx": 6
1169
+ },
1170
+ {
1171
+ "type": "equation",
1172
+ "img_path": "images/c1c42276b6b29eaba683336661ba5adfe275a6223b5df15a8b5f117976fd34d6.jpg",
1173
+ "text": "$$\n\\frac { 1 } { n \\sigma ^ { 2 } } \\mathbf { f } ^ { \\top } \\mathbb { L } _ { n r w , n } \\mathbf { f } \\stackrel { P } { \\longrightarrow } \\mathbb { E } _ { x \\sim p } \\left[ \\nabla f ( x ) ^ { \\top } { \\Sigma } ^ { - 1 } \\nabla f ( x ) \\right] .\n$$",
1174
+ "text_format": "latex",
1175
+ "bbox": [
1176
+ 339,
1177
+ 645,
1178
+ 678,
1179
+ 675
1180
+ ],
1181
+ "page_idx": 6
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "where $\\mathbf { f } = \\{ f ( x _ { i } ) \\} _ { i = 1 } ^ { n }$ . Consequently, both Laplacian regularizers asymptotically enforce local IF. ",
1186
+ "bbox": [
1187
+ 174,
1188
+ 683,
1189
+ 818,
1190
+ 698
1191
+ ],
1192
+ "page_idx": 6
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "The proof of the above theorem can be found in Appendix B. When we use a normalized random walk graph Laplacian matrix $\\mathbb { L } _ { n r w , n }$ as regularizer, the regularizer does (asymptotically) penalize $\\mathbb { E } \\left[ \\nabla f ( x ) ^ { \\top } \\Sigma ^ { - 1 } \\nabla f ( x ) \\right] = \\mathbb { E } \\left[ \\| \\Sigma ^ { - 1 / 2 } \\nabla f ( x ) \\| ^ { 2 } \\right]$ , which, by Example 4.2, is equivalent to enforcing the local IF constraint. Similarly, the un-normalized Laplacian matrix $\\mathbb { L } _ { u n , n }$ , also enforces the same under Assumption 4.5 as: ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 705,
1200
+ 825,
1201
+ 779
1202
+ ],
1203
+ "page_idx": 6
1204
+ },
1205
+ {
1206
+ "type": "equation",
1207
+ "img_path": "images/e0f800bb3be1d0d6984b0eac9d91672cc99824b2dce72e2f3542aa7dfa4e4da9.jpg",
1208
+ "text": "$$\n\\mathbb { E } \\left[ \\Vert \\Sigma ^ { - 1 / 2 } \\nabla f ( x ) \\Vert ^ { 2 } \\right] \\leq \\frac { 1 } { p _ { \\operatorname* { m i n } } } \\mathbb { E } \\left[ \\nabla f ( x ) ^ { \\top } \\Sigma ^ { - 1 } \\nabla f ( x ) p ( x ) \\right] , \\mathrm { ~ w h e r e ~ } p _ { \\operatorname* { m i n } } = \\operatorname* { i n f } _ { x \\in \\mathcal { X } } p ( x ) .\n$$",
1209
+ "text_format": "latex",
1210
+ "bbox": [
1211
+ 197,
1212
+ 780,
1213
+ 767,
1214
+ 813
1215
+ ],
1216
+ "page_idx": 6
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Although both the Laplacian matrices enforce local IF, the primary difference between them is that the limit of the unnormalized Laplacian involves the density $p ( x )$ , i.e., it upweights the high-density region (consequently stringent imposition of fairness constraint), whereas it down-weights the underrepresented/low-density region. On the other hand, the limit corresponding to the normalized random walk Laplacian matrix does not depend on $p ( x )$ and enforces fairness constraint with equal intensity on the entire input space. We used both regularizers in our experiments, comparing and contrasting their performance on several practical ML problems. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 814,
1224
+ 825,
1225
+ 912
1226
+ ],
1227
+ "page_idx": 6
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "5 Experiments ",
1232
+ "text_level": 1,
1233
+ "bbox": [
1234
+ 173,
1235
+ 89,
1236
+ 312,
1237
+ 107
1238
+ ],
1239
+ "page_idx": 7
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "The goals of our experiments are threefold: ",
1244
+ "bbox": [
1245
+ 176,
1246
+ 125,
1247
+ 455,
1248
+ 138
1249
+ ],
1250
+ "page_idx": 7
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "1. Exploring the trade-offs between post-processing for local IF with GLIF and post-processing with (global) IF constraints using our adaptation of the algorithm by Dwork et al. [6] described in (2.3). \n2. Studying practical implications of theoretical differences between GLIF and GLIF-NRW, i.e., different graph Laplacians, presented in Section 4. \n3. Evaluating the effectiveness of GLIF in its main application, i.e., computationally light debiasing of large deep learning models such as BERT. ",
1255
+ "bbox": [
1256
+ 174,
1257
+ 152,
1258
+ 826,
1259
+ 236
1260
+ ],
1261
+ "page_idx": 7
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "The implementation of this work is available at github.com/Felix-Petersen/fairness-post-processing. ",
1266
+ "bbox": [
1267
+ 174,
1268
+ 250,
1269
+ 821,
1270
+ 265
1271
+ ],
1272
+ "page_idx": 7
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "5.1 Comparing GLIF and Global IF-constraints ",
1277
+ "text_level": 1,
1278
+ "bbox": [
1279
+ 174,
1280
+ 286,
1281
+ 521,
1282
+ 303
1283
+ ],
1284
+ "page_idx": 7
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "For our first experiment, we consider the sentiment prediction task [34], where our goal is to classify words as having a positive or negative sentiment. The baseline model is a neural network trained with GloVe word embeddings [35]. Following Yurochkin et al. [11], we evaluate the model on a set of names and observe that it assigns varying sentiments to names. An individually fair model should assign similar sentiment scores to all names. Further, we observe that there is a gap between average sentiments of names typical for Caucasian and African-American ethnic groups [36], which is violating group fairness. Yurochkin et al. [11] propose a fair metric learning procedure for this task using a side data set of names, and an in-processing technique for achieving individual fairness. We use their method to obtain the fair metric and compare post-processing of the baseline model with GLIF, GLIF-NRW and the global IF-constraints method. The test set comprises 663 words from the original task and 94 names. For post-processing, no problem specific knowledge is used. The resulting post-processed predictions for the original test set are used to evaluate accuracy, and the predictions on the names are used for evaluating fairness metrics. Even for this small problem, the global IF-constraints method, i.e., a CVXPY [37] implementation of (2.3), takes 7 minutes to run. Due to the poor scalability of the global IF-constraints method, we can use it only for the study of this smaller data set and can not consider it for the large language model experiments in Section 5.2. For GLIF(-NRW), we implement the closed-form solution (3.3) that takes less than a tenth of a second to run. See Appendix A for additional experimental details and a runtime analysis. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 314,
1292
+ 826,
1293
+ 564
1294
+ ],
1295
+ "page_idx": 7
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "We evaluate the fairness-accuracy trade-offs for a range of threshold parameters $\\tau$ (for GLIF and GLIF-NRW) and for a range of Lipschitz-constants $L$ (for IF-constraints) in Figure 2. Figure 2 (left) shows the standard deviation of the post-processed outputs on all names as a function of test accuracy on the original sentiment task. Lower standard deviations imply that all names received similar predictions, which is the goal of individual fairness. Figure 2 (center) visualizes group fairness and accuracy, i.e., difference in average name sentiment scores for the two ethnic groups. In this problem, individual fairness is a stronger notion of fairness: achieving similar predictions for all names implies similar group averages, but not vice a versa. Therefore, for this task, post-processing for individual fairness also corrects group disparities. ",
1300
+ "bbox": [
1301
+ 173,
1302
+ 569,
1303
+ 825,
1304
+ 694
1305
+ ],
1306
+ "page_idx": 7
1307
+ },
1308
+ {
1309
+ "type": "image",
1310
+ "img_path": "images/918fbdc2656ad0da27cbad9688ad1474168f32e745c722f2bcebde4c7b9eda00.jpg",
1311
+ "image_caption": [
1312
+ "Figure 2: Sentiment experiment. Left: Trade-off between standard deviations of logits of names (measuring individual fairness) and accuracy. Center: Trade-off between race gap (measuring group fairness) and accuracy. Right: Frequencies of violations of the global IF constraints after applying GLIF, constraints corresponding to names, and GLIF’s global IF constraint violations for names. "
1313
+ ],
1314
+ "image_footnote": [],
1315
+ "bbox": [
1316
+ 176,
1317
+ 726,
1318
+ 823,
1319
+ 842
1320
+ ],
1321
+ "page_idx": 7
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "In both settings, GLIF and GLIF-NRW achieve substantially better fairness metrics for the same levels of test accuracy in comparison to the IF-constraints method. To understand the reason for this, we study which global IF constraints are violated after applying the GLIF method in Figure 2 (right). Corresponding to the unique pairs of words in our test set, there are $n ( n - 1 ) / 2$ unique constraints in (2.3), and the global IF-constraints method satisfies all of them by design. Each constraint (i.e., each pair of words) corresponds to a fair distance, which is small for (under the fair metric) similar words and large for dissimilar words. We bin the constraints by fair distance and present the proportion of global IF constraints violated after applying the GLIF method for each bin in the histogram in Figure 2 (right). Here, we set the Lipschitz-constant $L$ in (2.3) to $L = 2 . 2 5$ corresponding to a $8 9 . 4 \\%$ accuracy of the IF-constraints method and show global IF constraint violations of GLIF corresponding to $9 5 \\%$ accuracy in blue. This means that we use strong global IF constraints and use a setting of the GLIF method which maintains most of the accuracy, which would not be possible using the IF-constraints method. GLIF does not violate any constraints corresponding to small fair distances, i.e., it satisfies IF on similar individuals, while violating many large fair distance constraints. This can be seen as basically all constraint violations (blue) are at large fair distances of greater or equal 6. This demonstrates the effect of enforcing local individual fairness from our theoretical analysis in Section 4. At the same time, we display frequency of constraints that correspond to pairs of names in orange, where we can see that almost all constraints corresponding to names occur at small fair distances of smaller or equal to 6. This is expected in this task because we consider all names similar, so fair distances between them should be small. We can see that the distributions of constraint violations after applying GLIF (blue, right) and names (orange, left) are almost disjoint. We mark all global IF constraint violations after applying GLIF that correspond to names in green, and observe that there are none. Summarizing, GLIF ignores unnecessary (in the context of this problem) constraints allowing it to achieve higher accuracy, while satisfying the more relevant local IF constraints leading to improved fairness. ",
1326
+ "bbox": [
1327
+ 173,
1328
+ 92,
1329
+ 825,
1330
+ 435
1331
+ ],
1332
+ "page_idx": 8
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "Regarding the practical differences between GLIF and GLIF-NRW, in Figure 2 (left) GLIF has smaller standard deviations on the name outputs, but in in Figure 2 (center) GLIF-NRW achieves lower race gap. In Theorem 4.6, we showed that GLIF penalizes fairness violations in high density data regions stronger. As a result, GLIF may favor enforcing similar outputs in the high density region causing lower standard deviation, while leaving outputs nearly unchanged in the lower density region, resulting in larger race gaps. GLIF-NRW weights all data density regions equally, i.e., it is less likely to miss a small subset of names, but is less stringent in the high density regions. ",
1337
+ "bbox": [
1338
+ 174,
1339
+ 443,
1340
+ 825,
1341
+ 540
1342
+ ],
1343
+ "page_idx": 8
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "5.2 Post-processing for Debiasing Large Language Models ",
1348
+ "text_level": 1,
1349
+ "bbox": [
1350
+ 173,
1351
+ 565,
1352
+ 591,
1353
+ 580
1354
+ ],
1355
+ "page_idx": 8
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Large language models have achieved impressive results on many tasks; however, there is also significant evidence demonstrating that they are prone to biases [4], [38], [39]. Debiasing these models remains largely an open problem: most in-processing algorithms are not applicable or computationally prohibitive due to large and highly complex model architectures, and challenges in handling text inputs. Even if an appropriate in-processing algorithm arises, significant environmental impact due to re-training is unavoidable [4], [16]. In our experiments, we evaluate effectiveness of GLIF as a simple post-processing technique to debias BERT-based models for text classification. Another possible solution is to fine-tune BERT with an in-processing technique as was done by Yurochkin et al. [12]. The two approaches are not directly comparable: fine-tuning with SenSeI [12] requires knowledge of the model parameters, alleviates only part of the computational burden, and has more stringent requirements on the fair metric, while post-processing with GLIF is transductive, i.e., it requires access to unlabeled test data (see extended discussion in Section 2.1). ",
1360
+ "bbox": [
1361
+ 173,
1362
+ 594,
1363
+ 825,
1364
+ 734
1365
+ ],
1366
+ "page_idx": 8
1367
+ },
1368
+ {
1369
+ "type": "image",
1370
+ "img_path": "images/d8797f1f8a189470f5f4dac9da7fcb31f67a3d412338cd47d6ced12d932c6f3f.jpg",
1371
+ "image_caption": [
1372
+ "Figure 3: Accuracy-Consistency trade-offs for Bios (left) and Toxicity (right). "
1373
+ ],
1374
+ "image_footnote": [],
1375
+ "bbox": [
1376
+ 176,
1377
+ 767,
1378
+ 823,
1379
+ 883
1380
+ ],
1381
+ "page_idx": 8
1382
+ },
1383
+ {
1384
+ "type": "table",
1385
+ "img_path": "images/40f87c50a69d2e40dec3b8bde390079b4cc58d977aabe44159a9769dfbd20e13.jpg",
1386
+ "table_caption": [
1387
+ "Table 1: Results for the Bios task. "
1388
+ ],
1389
+ "table_footnote": [],
1390
+ "table_body": "<table><tr><td>Method</td><td>Test Acc.</td><td>Pred. Consist.</td></tr><tr><td>Baseline</td><td>0.846 ± 0.003</td><td>0.942 ± 0.002</td></tr><tr><td>GLIF</td><td>0.830± 0.004</td><td>0.986 ± 0.002</td></tr><tr><td>GLIF-NRW</td><td>0.834 ± 0.003</td><td>0.988 ± 0.002</td></tr><tr><td>SenSEI</td><td>0.843 ± 0.003</td><td>0.977 ± 0.001</td></tr></table>",
1391
+ "bbox": [
1392
+ 176,
1393
+ 114,
1394
+ 490,
1395
+ 195
1396
+ ],
1397
+ "page_idx": 9
1398
+ },
1399
+ {
1400
+ "type": "table",
1401
+ "img_path": "images/a7268725e52b9592635f5f79da555517a8410db555847cff5b646f443120b360.jpg",
1402
+ "table_caption": [
1403
+ "Table 2: Results for the Toxicity task. "
1404
+ ],
1405
+ "table_footnote": [],
1406
+ "table_body": "<table><tr><td>Method</td><td>Test Acc.</td><td>Pred. Consist.</td></tr><tr><td>Baseline</td><td>0.809 ± 0.004</td><td>0.614 ± 0.013</td></tr><tr><td>GLIF</td><td>0.803 ±0.003</td><td>0.835 ± 0.012</td></tr><tr><td>GLIF-NRW</td><td>0.803 ± 0.003</td><td>0.844 ± 0.013</td></tr><tr><td>SenSEI</td><td>0.791 ± 0.005</td><td>0.773 ± 0.043</td></tr></table>",
1407
+ "bbox": [
1408
+ 508,
1409
+ 114,
1410
+ 821,
1411
+ 195
1412
+ ],
1413
+ "page_idx": 9
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "",
1418
+ "bbox": [
1419
+ 173,
1420
+ 220,
1421
+ 825,
1422
+ 248
1423
+ ],
1424
+ "page_idx": 9
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "We replicate the experiments of Yurochkin et al. [12] on Bios [40] and Toxicity1 data sets. They use the approach of Mukherjee et al. [19] for fair metric learning which we reproduce. We refer to the Appendix B.1 of [12] for details. In both tasks, following [12], we quantify performance with balanced accuracy due to class imbalance, and measure individual fairness via prediction consistency, i.e., the fraction of test points where the prediction remains unchanged when performing task-specific input modifications. For implementation details, see Appendix A. In Appendix A.4, we analyze the runtime and distinguish between the closed-form and coordinate descent variants of GLIF. ",
1429
+ "bbox": [
1430
+ 173,
1431
+ 255,
1432
+ 825,
1433
+ 352
1434
+ ],
1435
+ "page_idx": 9
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "In Bios, the goal is to predict the occupation of a person based on their textual biography. Such models can be useful for recruiting purposes. However, due to historical gender bias in some occupations, the baseline BERT model learns to associate gender pronouns and names with the corresponding occupations. Individual fairness is measured with prediction consistency with respect to gender pronouns and names alterations. A prediction is considered consistent if it is the same after swapping the gender pronouns and names. We present the fairness-accuracy trade-off in Figure 3 (left) for a range of threshold parameters $\\tau$ , and compare performance based on hyperparameter values selected with a validation data in Table 1. Both GLIF and GLIF-NRW noticeably improve individual fairness measured with prediction consistency, while retaining most of the accuracy. ",
1440
+ "bbox": [
1441
+ 174,
1442
+ 358,
1443
+ 825,
1444
+ 484
1445
+ ],
1446
+ "page_idx": 9
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "In Toxicity, the task is to identify toxic comments—an important tool for facilitating inclusive discussions online. The baseline BERT model learns to associate certain identity words with toxicity (e.g., “gay”) because they are often abused in online conversations. The prediction consistency is measured with respect to changes to identity words in the inputs. There are 50 identity words, e.g., “gay”, “muslim”, “asian”, etc. and a prediction is considered consistent if it is the same for all 50 identities. We present the trade-off plots in Figure 3 (right) and compare performance in Table 2 (right). Our methods reduce individual biases in BERT predictions. We note that in both Toxicity and Bios experiments, we observe no practical differences between GLIF and GLIF-NRW. ",
1451
+ "bbox": [
1452
+ 173,
1453
+ 489,
1454
+ 825,
1455
+ 601
1456
+ ],
1457
+ "page_idx": 9
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "6 Summary and Discussion ",
1462
+ "text_level": 1,
1463
+ "bbox": [
1464
+ 176,
1465
+ 619,
1466
+ 416,
1467
+ 637
1468
+ ],
1469
+ "page_idx": 9
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "We studied post-processing methods for enforcing individual fairness. The methods provably enforce a local form of IF and scale readily to large data sets. We hope this broadens the appeal of IF by (i) alleviating the computational costs of operationalizing IF and (ii) allowing practitioners to use off-the-shelf models for standard ML tasks. We also note that it is possible to use our objective for in-processing. ",
1474
+ "bbox": [
1475
+ 173,
1476
+ 650,
1477
+ 825,
1478
+ 719
1479
+ ],
1480
+ "page_idx": 9
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "text": "We conclude with two warnings: First, enforcing any algorithmic fairness definition does not guarantee complete fairness from the perspective of the user. The problem-specific meaning of fairness is often hard to encode exactly with a mathematical fairness definition. Second, while local individual fairness is a reasonable choice in many applications, this choice should be understood and verified by the practitioner depending on the situation. ",
1485
+ "bbox": [
1486
+ 174,
1487
+ 727,
1488
+ 825,
1489
+ 796
1490
+ ],
1491
+ "page_idx": 9
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Acknowledgments and Disclosure of Funding ",
1496
+ "text_level": 1,
1497
+ "bbox": [
1498
+ 174,
1499
+ 88,
1500
+ 553,
1501
+ 107
1502
+ ],
1503
+ "page_idx": 10
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "This note is based upon work supported by the National Science Foundation (NSF) under grants no. 1916271, 2027737, and 2113373 and supported by the German Research Foundation (DFG) under Germany’s Excellence Strategy EXC–2117–390829875. Any opinions, findings, and conclusions or recommendations expressed in this note are those of the authors and do not necessarily reflect the views of the NSF nor the DFG. ",
1508
+ "bbox": [
1509
+ 174,
1510
+ 119,
1511
+ 826,
1512
+ 189
1513
+ ],
1514
+ "page_idx": 10
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "References ",
1519
+ "text_level": 1,
1520
+ "bbox": [
1521
+ 174,
1522
+ 210,
1523
+ 266,
1524
+ 226
1525
+ ],
1526
+ "page_idx": 10
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "[1] S. Barocas and A. D. Selbst, “Big data’s disparate impact,” Calif. L. Rev., vol. 104, p. 671, 2016. \n[2] J. Larson, J. Angwin, L. Kirchner, and S. Mattu, “How we examined racial discrimination in auto insurance prices,” ProPublica, 2017. \n[3] J. Buolamwini and T. Gebru, “Gender shades: Intersectional accuracy disparities in commercial gender classification,” in Conference on fairness, accountability and transparency, PMLR, 2018, pp. 77–91. \n[4] E. M. Bender, T. Gebru, A. McMillan-Major, and S. Shmitchell, “On the dangers of stochastic parrots: Can language models be too big?” In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, 2021, pp. 610–623. \n[5] A. Chouldechova and A. Roth, “A snapshot of the frontiers of fairness in machine learning,” Communications of the ACM, vol. 63, no. 5, pp. 82–89, 2020. \n[6] C. Dwork, M. Hardt, T. Pitassi, O. Reingold, and R. Zemel, “Fairness through awareness,” in Proceedings of the 3rd innovations in theoretical computer science conference, 2012, pp. 214–226. \n[7] D. C. Hsia, “Credit scoring and the equal credit opportunity act,” Hastings LJ, vol. 30, p. 371, 1978. \n[8] M. Bertrand and S. Mullainathan, “Are emily and greg more employable than lakisha and jamal? a field experiment on labor market discrimination,” American Economic Review, vol. 94, no. 4, pp. 991–1013, 2004. \n[9] W. Fleisher, “What’s fair about individual fairness?” Available at SSRN 3819799, 2021. \n[10] C. Jung, M. Kearns, S. Neel, A. Roth, L. Stapleton, and Z. S. Wu, “An algorithmic framework for fairness elicitation,” arXiv preprint arXiv:1905.10660, 2019. \n[11] M. Yurochkin, A. Bower, and Y. Sun, “Training individually fair ML models with sensitive subspace robustness,” in International Conference on Learning Representations (ICLR), 2020. \n[12] M. Yurochkin and Y. Sun, “Sensei: Sensitive set invariance for enforcing individual fairness,” in International Conference on Learning Representations (ICLR), 2021. \n[13] A. Vargo, F. Zhang, M. Yurochkin, and Y. Sun, “Individually fair gradient boosting,” in International Conference on Learning Representations (ICLR), 2021. \n[14] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of deep bidirectional transformers for language understanding. arxiv,” in Proc. Conference of the North American Chapter of the Association for Computational Linguistics (ACL), 2018. \n[15] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al., “Language models are few-shot learners,” arXiv preprint arXiv:2005.14165, 2020. \n[16] E. Strubell, A. Ganesh, and A. McCallum, “Energy and policy considerations for deep learning in nlp,” in 57th Annual Meeting of the Association for Computational Linguistics, 2019. \n[17] O. Chapelle, B. Schölkopf, and A. Zien, Eds., Semi-Supervised Learning. Cambridge, Mass: MIT Press, 2006. \n[18] C. Ilvento, “Metric Learning for Individual Fairness,” in 1st Symposium on Foundations of Responsible Computing (FORC 2020), Leibniz International Proceedings in Informatics (LIPIcs), vol. 156, Dagstuhl, Germany: Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2020. \n[19] D. Mukherjee, M. Yurochkin, M. Banerjee, and Y. Sun, “Two simple ways to learn individual fairness metrics from data,” in International Conference on Machine Learning (ICML), 2020. \n[20] M. P. Kim, A. Ghorbani, and J. Zou, “Multiaccuracy: Black-box post-processing for fairness in classification,” in Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, 2019. \n[21] P. K. Lohia, K. N. Ramamurthy, M. Bhide, D. Saha, K. R. Varshney, and R. Puri, “Bias mitigation post-processing for individual and group fairness,” in IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2019, pp. 2847–2851. \n[22] P. Lohia, “Priority-based post-processing bias mitigation for individual and group fairness,” arXiv preprint arXiv:2102.00417, 2021. \n[23] D. Wei, K. N. Ramamurthy, and F. d. P. Calmon, “Optimized score transformation for fair classification,” in International Conference on Artificial Intelligence and Statistics (AISTATS), 2020. \n[24] D. Spielman, “Spectral graph theory,” Combinatorial scientific computing, no. 18, 2012. \n[25] M. Hein, J.-Y. Audibert, and U. v. Luxburg, “Graph laplacians and their convergence on random neighborhood graphs.,” Journal of Machine Learning Research, vol. 8, no. 6, 2007. \n[26] R. R. Coifman and S. Lafon, “Diffusion maps,” Applied and computational harmonic analysis, vol. 21, no. 1, 2006. \n[27] D. Zhou and B. Schölkopf, “A regularization framework for learning from graph data,” in ICML 2004 Workshop on Statistical Relational Learning and Its Connections to Other Fields (SRL 2004), 2004, pp. 132–137. \n[28] M. Belkin, I. Matveeva, and P. Niyogi, “Regularization and semi-supervised learning on large graphs,” in International Conference on Computational Learning Theory, Springer, 2004, pp. 624–638. \n[29] A. J. Smola and R. Kondor, “Kernels and regularization on graphs,” in Learning theory and kernel machines, Springer, 2003. \n[30] P. Lahoti, K. P. Gummadi, and G. Weikum, “Ifair: Learning individually fair data representations for algorithmic decision making,” in 2019 ieee 35th international conference on data engineering (icde), IEEE, 2019, pp. 1334–1345. \n[31] J. Kang, J. He, R. Maciejewski, and H. Tong, “Inform: Individual fairness on graph mining,” in Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2020, pp. 379–389. \n[32] S. J. Wright, “Coordinate descent algorithms,” Mathematical Programming, 2015. \n[33] M. Hein, J.-Y. Audibert, and U. Von Luxburg, “From graphs to manifolds–weak and strong pointwise consistency of graph laplacians,” in International Conference on Computational Learning Theory, Springer, 2005. \n[34] M. Hu and B. Liu, “Mining and summarizing customer reviews,” in Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, 2004. \n[35] J. Pennington, R. Socher, and C. D. Manning, “Glove: Global vectors for word representation,” in Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), 2014, pp. 1532–1543. \n[36] A. Caliskan, J. J. Bryson, and A. Narayanan, “Semantics derived automatically from language corpora contain human-like biases,” Science, 2017. \n[37] S. Diamond and S. Boyd, “Cvxpy: A python-embedded modeling language for convex optimization,” The Journal of Machine Learning Research, vol. 17, no. 1, pp. 2909–2913, 2016. \n[38] K. Kurita, N. Vyas, A. Pareek, A. W. Black, and Y. Tsvetkov, “Measuring bias in contextualized word representations,” in First Workshop on Gender Bias in Natural Language Processing, 2019. \n[39] M. Nadeem, A. Bethke, and S. Reddy, “Stereoset: Measuring stereotypical bias in pretrained language models,” arXiv preprint arXiv:2004.09456, 2020. \n[40] M. De-Arteaga, A. Romanov, H. Wallach, J. Chayes, C. Borgs, A. Chouldechova, S. Geyik, K. Kenthapadi, and A. T. Kalai, “Bias in bios: A case study of semantic representation bias in a high-stakes setting,” in Proceedings of the Conference on Fairness, Accountability, and Transparency (ACM FAccT), 2019. \n[41] L. Dixon, J. Li, J. Sorensen, N. Thain, and L. Vasserman, “Measuring and mitigating unintended bias in text classification,” in Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society, 2018. \n[42] B. Sen, A gentle introduction to empirical process theory and applications, 2018. ",
1531
+ "bbox": [
1532
+ 173,
1533
+ 229,
1534
+ 826,
1535
+ 911
1536
+ ],
1537
+ "page_idx": 10
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "",
1542
+ "bbox": [
1543
+ 173,
1544
+ 89,
1545
+ 826,
1546
+ 664
1547
+ ],
1548
+ "page_idx": 11
1549
+ }
1550
+ ]
parse/train/Z7IViZ6Ir1k/Z7IViZ6Ir1k_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Z7IViZ6Ir1k/Z7IViZ6Ir1k_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/huAdB-Tj4yG/huAdB-Tj4yG.md ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Rethinking Graph Transformers with Spectral Attention
2
+
3
+ Devin Kreuzer ∗ McGill University, Mila Montreal, Canada devin.kreuzer@mail.mcgill.ca
4
+
5
+ Dominique Beaini \* Valence Discovery Montreal, Canada dominique@valencediscovery.com
6
+
7
+ William L. Hamilton
8
+ McGill University, Mila
9
+ Montreal, Canada
10
+ wlh@cs.mcgill.ca
11
+
12
+ Vincent Létourneau University of Ottawa Ottawa, Canada vletour2@uottawa.ca
13
+
14
+ Prudencio Tossou Valence Discovery Montreal, Canada prudencio@valencediscovery.com
15
+
16
+ # Abstract
17
+
18
+ In recent years, the Transformer architecture has proven to be very successful in sequence processing, but its application to other data structures, such as graphs, has remained limited due to the difficulty of properly defining positions. Here, we present the Spectral Attention Network (SAN), which uses a learned positional encoding (LPE) that can take advantage of the full Laplacian spectrum to learn the position of each node in a given graph. This LPE is then added to the node features of the graph and passed to a fully-connected Transformer. By leveraging the full spectrum of the Laplacian, our model is theoretically powerful in distinguishing graphs, and can better detect similar sub-structures from their resonance. Further, by fully connecting the graph, the Transformer does not suffer from over-squashing, an information bottleneck of most GNNs, and enables better modeling of physical phenomenons such as heat transfer and electric interaction. When tested empirically on a set of 4 standard datasets, our model performs on par or better than state-of-theart GNNs, and outperforms any attention-based model by a wide margin, becoming the first fully-connected architecture to perform well on graph benchmarks.
19
+
20
+ # 1 Introduction
21
+
22
+ The prevailing strategy for graph neural networks (GNNs) has been to directly encode graph structure structure through a sparse message-passing process [17, 19]. In this approach, vector messages are iteratively passed between nodes that are connected in the graph. Multiple instantiations of this message-passing paradigm have been proposed, differing in the architectural details of the message-passing apparatus (see [19] for a review).
23
+
24
+ However, there is a growing recognition that the message-passing paradigm has inherent limitations. The expressive power of message passing appears inexorably bounded by the Weisfeiler-Lehman isomorphism hierarchy [29, 30, 39]. Message-passing GNNs are known to suffer from pathologies, such as oversmoothing, due to their repeated aggregation of local information [19], and over-squashing, due to the exponential blow-up in computation paths as the model depth increases [1].
25
+
26
+ As a result, there is a growing interest in deep learning techniques that encode graph structure as a soft inductive bias, rather than as a hard-coded aspect of message passing [14, 24]. A central issue with message-passing paradigm is that input graph structure is encoded by restricting the structure of the model’s computation graph, inherently limiting its flexibility. This reminds us of how early recurrent neural networks (RNNs) encoded sequential structure via their computation graph—a strategy that leads to well-known pathologies such as the inability to model long-range dependencies [20].
27
+
28
+ There is a growing trend across deep learning towards more flexible architectures, which avoid strict and structural inductive biases. Most notably, the exceptionally successful Transformer architecture removes any structural inductive bias by encoding the structure via soft inductive biases, such as positional encodings [36]. In the context of GNNs, the self-attention mechanism of a Transformer can be viewed as passing messages between all nodes, regardless of the input graph connectivity.
29
+
30
+ Prior work has proposed to use attention in GNNs in different ways. First, the GAT model [37] proposed local attention on pairs of nodes that allows a learnable convolutional kernel. The GTN work [42] has improved on the GAT for node and link predictions while keeping a similar architecture, while other message-passing approaches have used enhancing spectral features [8, 13] . More recently, the GT model [14] was proposed as a generalization of Transformers to graphs, where they experimented with sparse and full graph attention while providing low-frequency eigenvectors of the Laplacian as positional encodings.
31
+
32
+ In this work, we offer a principled investigation of how Transformer architectures can be applied in graph representation learning. Our primary contribution is the development of novel and powerful learnable positional encoding methods, which are rooted in spectral graph theory. Our positional encoding technique — and the resulting spectral attention network (SAN) architecture — addresses key theoretical limitations in prior graph Transformer work [14] and provably exceeds the expressive power of standard message-passing GNNs. We show that full Transformer-style attention provides consistent empirical gains compared to an equivalent sparse message-passing model, and we demonstrate that our SAN architecture is competitive with or exceeding the state-of-the-art on several well-known graph benchmarks. An overview of the entire method is presented in Figure 1, with a link to the code here: https://github.com/DevinKreuzer/SAN.
33
+
34
+ # 2 Theoretical Motivations
35
+
36
+ There can be a significant loss in structural information if naively generalizing Transformers to graphs. To preserve this information as well as local connectivity, previous studies [37, 14] have proposed to use the eigenfunctions of their Laplacian as positional encodings. Taking this idea further by using the full expressivity of eigenfunctions as positional encodings, we can propose a principled way of understanding graph structures using their spectra. The advantages of our methods compared to previous studies [37, 14] are shown in Table 1.
37
+
38
+ Table 1: Comparison of the properties of different graph Transformer models.
39
+
40
+ <table><tr><td>MODELS</td><td>GAT</td><td>GT sparse</td><td>GT full</td><td>SAN</td></tr><tr><td>Preserves local structure in attention</td><td>&gt;xxx</td><td>√&lt;x√</td><td>xxv√</td><td>?</td></tr><tr><td>Uses edge features</td><td></td><td></td><td></td><td></td></tr><tr><td>Connects non-neighbouring nodes</td><td></td><td></td><td></td><td></td></tr><tr><td>Uses eigenvector-based PE for attention</td><td></td><td></td><td></td><td></td></tr><tr><td>Use a PE with structural information</td><td>x</td><td>←</td><td>+</td><td></td></tr><tr><td>Considers the ordering of the eigenvalues</td><td>X</td><td>√</td><td>vv</td><td></td></tr><tr><td>Invariant to the norm of the eigenvector</td><td></td><td>√</td><td></td><td></td></tr><tr><td>Considers the spectrum of eigenvalues</td><td>X</td><td></td><td></td><td></td></tr><tr><td>Considers variable # of eigenvectors</td><td></td><td></td><td></td><td></td></tr><tr><td>Aware of eigenvalue multiplicities</td><td></td><td>xxx</td><td></td><td>√</td></tr><tr><td>Invariant to the sign of the eigenvectors</td><td></td><td>×</td><td>xxxx</td><td>X</td></tr></table>
41
+
42
+ ![](images/6fdefa909906706bb5dccb238d25f45b161e68c2331a8e8d01f82d197ead59e6.jpg)
43
+ Figure 1: The proposed SAN model with the node LPE, a generalization of Transformers to graphs.
44
+
45
+ # 2.1 Absolute and relative positional encoding with eigenfunctions
46
+
47
+ The notion of positional encodings (PEs) in graphs is not a trivial concept, as there exists no canonical way of ordering nodes or defining axes. In this section, we investigate how eigenfunctions of the Laplacian can be used to define absolute and relative PEs in graphs, to measure physical interactions between nodes, and to enable ”hearing” of specific sub-structures - similar to how the sound of a drum can reveal its structure.
48
+
49
+ # 2.1.1 Eigenvectors equate to sine functions over graphs
50
+
51
+ In the Transformer architecture, a fundamental aspect is the use of sine and cosine functions as PEs for sequences [36]. However, sinusoids cannot be clearly defined for arbitrary graphs, since there is no clear notion of position along an axis. Instead, their equivalent is given by the eigenvectors $\phi$ of the graph Laplacian $\pmb { L }$ . Indeed, in a Euclidean space, the Laplacian (or Laplace) operator corresponds to the divergence of the gradient and its eigenfunctions are sine/cosine functions, with the squared frequencies corresponding to the eigenvalues (we sometimes interchange the two notions from here on). Hence, in the graph domain, the eigenvectors of the graph Laplacian are the natural equivalent of sine functions, and this intuition was employed in multiple recent works which use the eigenvectors as PEs for GNNs [15], for directional flows [4] and for Transformers [14].
52
+
53
+ Being equivalent to sine functions, we naturally find that the Fourier Transform of a function $\mathcal { F } [ f ]$ applied to a graph gives $\mathcal { F } [ f ] ( \lambda _ { i } ) = \langle f , \phi _ { i } \rangle$ , where the eigenvalue is considered as a position in the Fourier domain of that graph [6]. Thus, the eigenvectors are best viewed as vectors positioned on the axis of eigenvalues rather than components of a matrix as illustrated in Figure 2.
54
+
55
+ # 2.1.2 What do eigenfunctions tell us about relative positions?
56
+
57
+ In addition to being the analog of sine functions, the eigenvectors of the Laplacian also hold important information about the physics of a system and can reveal distance metrics. This is not surprising as the Laplacian is a fundamental operator in physics and is notably used in Maxwell’s equations [16] and the heat diffusion [6].
58
+
59
+ ![](images/62eb856f3aba9054a14539ddc42e07cb54b4c6c12479b8ea05b4e55506ff52b1.jpg)
60
+ Figure 2: a) Standard view of the eigenvectors as a matrix. b) Eigenvectors $\phi _ { i }$ viewed as vectors positionned on the axis of frequencies (eigenvalues).
61
+
62
+ In electromagnetic theory, the (pseudo)inverse of the Laplacian, known in mathematics as the Green’s function of the Laplacian [9], represents the electrostatic potential of a given charge. In a graph, the same concept uses the pseudo-inverse of the Laplacian $G$ and can be computed by its eigenfunctions. See equation 1 , where $G ( j _ { 1 } , j _ { 2 } )$ is the electric potential between nodes $j _ { 1 }$ and $j _ { 2 }$ , $\hat { \phi } _ { i }$ and $\hat { \lambda _ { i } }$ are the $i$ -th eigenvectors and eigenvalues of the symmetric Laplacian $D ^ { \frac { - 1 } { 2 } } L D ^ { \frac { - 1 } { 2 } }$ , and $_ D$ is the degree matrix, and $\hat { \phi } _ { i , j }$ the $j$ -th row of the vector.
63
+
64
+ $$
65
+ G ( j _ { 1 } , j _ { 2 } ) = d _ { j _ { 1 } } ^ { \frac { 1 } { 2 } } d _ { j _ { 2 } } ^ { \frac { - 1 } { 2 } } \sum _ { i > 0 } ^ { } \frac { ( \hat { \phi } _ { i , j _ { 1 } } \hat { \phi } _ { i , j _ { 2 } } ) ^ { 2 } } { \hat { \lambda } _ { i } }
66
+ $$
67
+
68
+ Further, the original solution of the heat equation given by Fourier relied on a sum of sines/cosines known as a Fourier series [7]. As eigenvectors of the Laplacian are the analogue of these functions in graphs, we find similar solutions. Knowing that heat kernels are correlated to random walks [6, 4], we use the interaction between two heat kernels to define in equation 2 the diffusion distance $d _ { D }$ between nodes $j _ { 1 } , j _ { 2 }$ [6, 10]. Similarly, the biharmonic distance $d _ { B }$ was proposed as a better measure of distances [28]. Here we use the eigenfunctions of the regular Laplacian $\pmb { L }$ .
69
+
70
+ $$
71
+ d _ { D } ^ { 2 } ( j _ { 1 } , j _ { 2 } ) = \sum _ { k > 0 } e ^ { - 2 t \lambda _ { i } } ( \phi _ { i , j _ { 1 } } - \phi _ { i , j _ { 2 } } ) ^ { 2 } \quad , \quad d _ { B } ^ { 2 } ( j _ { 1 } , j _ { 2 } ) = \sum _ { i > 0 } \frac { ( \phi _ { i , j _ { 1 } } - \phi _ { i , j _ { 2 } } ) ^ { 2 } } { \lambda _ { i } ^ { 2 } }
72
+ $$
73
+
74
+ There are a few things to note from these equations. Firstly, they highlight the importance of pairing eigenvectors and their corresponding eigenvalues when supplying information about relative positions in a graph. Secondly, we notice that the product of eigenvectors is proportional to the electrostatic interaction, while the subtraction is proportional to the diffusion and biharmonic distances. Lastly, there is a consistent pattern across all 3 equations: smaller frequencies/eigenvalues are more heavily weighted when determining distances between nodes.
75
+
76
+ # 2.1.3 Hearing the shape of a graph and its sub-structures
77
+
78
+ Another well-known property of eigenvalues is how they can be used to discriminate between different graph structures and sub-structures, as they can be interpreted as the frequencies of resonance of the graph. This led to the famous question about whether we can hear the shape of a drum from its eigenvalues [23], with the same questions also applying to geometric objects [12] and 3D molecules [33]. Various success was found with the eigenfunctions being used for partial functional correspondence [32], algorithmic understanding geometries [26], and style correspondence [12]. Examples of eigenvectors for molecular graphs are presented in Figure 3.
79
+
80
+ ![](images/b0da6292320ff0dc820d5dede7d45fd8e901266195d4c5355023fa0868362024.jpg)
81
+ Figure 3: Examples of eigenvalues $\lambda _ { i }$ and eigenvectors $\phi _ { i }$ for molecular graphs. The low-frequency eigenvectors $\phi _ { 1 } , \phi _ { 2 }$ are spread accross the graph, while higher frequencies, such as $\phi _ { 1 4 } , \phi _ { 1 5 }$ for the left molecule or $\phi _ { 1 0 } , \phi _ { 1 1 }$ for the right molecule, often resonate in local structures.
82
+
83
+ # 2.2 Laplace Eigenfunctions etiquette
84
+
85
+ In Euclidean space and sequences, using sinusoids as PEs is trivial: we can simply select a set of frequencies, compute the sinusoids, and add or concatenate them to the input embeddings, as is done in the original Transformer [36]. However, in arbitrary graphs, reproducing these steps is not as simple since each graph has a unique set of eigenfunctions. In the following section, we present key principles from spectral graph theory to consider when constructing PEs for graphs, most of which have been overlooked by prior methods. They include normalization, the importance of the eigenvalues and their multiplicities, the number of eigenvectors being variable, and sign ambiguities. Our LPE architectures, presented in section 3, aim to address them.
86
+
87
+ Normalization. Given an eigenvalue of the Laplacian, there is an associated eigenspace of dimension greater than 1. To make use of this information in our model, a single eigenvector has to be chosen. In our work, we use the $L _ { 2 }$ normalization since it is compatible with the definition of the Green’s function (1). Thus, we will always chose eigenvectors $\phi$ such that $\langle \phi , \phi \rangle = 1$ .
88
+
89
+ Eigenvalues. Another fundamental aspect is that the eigenvalue associated with each eigenvector supplies valuable information. An ordering of the eigenvectors based on their eigenvalue works in sequences since the frequencies are pre-determined. However, this assumption does not work in graphs since the eigenvalues in their spectrum can vary. For example, in Figure 3, we observe how an ordering would miss the fact that both molecules resonate at $\lambda = 1$ in different ways.
90
+
91
+ Multiplicities. Another important problem with choosing eigenfunctions is the possibility of a high multiplicity of the eigenvalues, i.e. when an eigenvalue appears as a root of the characteristic polynomial more than once. In this case, the associated eigenspace may have dimension 2 or more as we can generate a valid eigenvector from any linear combination of eigenvectors with the same eigenvalue. This further complicates the problem of choosing eigenvectors for algorithmic computations and highlights the importance of having a model that can handle this ambiguity.
92
+
93
+ Variable number of eigenvectors. A graph $G _ { i }$ can have at most $N _ { i }$ linearly independent eigenvectors with $N _ { i }$ being its number of nodes. Most importantly, $N _ { i }$ can vary across all $G _ { i }$ in the dataset. Prior work [14] elected to select a fixed number $k$ eigenvectors for each graph, where $k \leq N _ { i } , \forall i$ . This produces a major bottleneck when the smallest graphs have significantly fewer nodes than the largest graphs in the dataset since a very small proportion of eigenvectors will be used for large graphs. This inevitably causes loss of information and motivates the need for a model which constructs fixed PEs of dimension $k$ , where $k$ does not depend on the number of eigenvectors in the graph.
94
+
95
+ Sign invariance. As noted earlier, there is a sign ambiguity with the eigenvectors. With the sign of $\phi$ being independent of its normalization, we are left with a total of $2 ^ { k }$ possible combination of signs when choosing $k$ eigenvectors of a graph. Previous work has proposed to do data augmentation by randomly flipping the sign of the eigenvectors [4, 15, 14], and although it can work when $k$ is small, it becomes intractable for large $k$ .
96
+
97
+ # 2.3 Learning with Eigenfunctions
98
+
99
+ Learning generalizable information from eigenfunctions is fundamental to their succesful usage. Here we detail important points that support it is possible to do so if done correctly.
100
+
101
+ Similar graphs have similar spectra. Thus, we can expect the network to transfer patterns across graphs through the similarity of their spectra. In fact, spectral graph theory tells us that the lowest and largest non-zero eigenvalues are both linked to the geometry of the graph (algebraic connectivity and spectral radius).
102
+
103
+ Eigenspaces contain geometric information. Spectral graph theory has studied the geometric and physical properties of graphs from their Laplacian eigenfunctions in depth. Developing a method that can use the full spectrum of a graph makes it theoretically possible capture this information. It us thus important to capture differences between the full eigenspaces instead of minor differences between specific eigenvalues or eigenvectors from graph to graph.
104
+
105
+ Learned positions are relative within graphs. Eigenspaces are used to understand the relationship between nodes within graphs, not across them. Proposed models should therefore only compare the eigenfunctions of nodes within graphs.
106
+
107
+ # 3 Model Architecture
108
+
109
+ In this section, we propose an elegant architecture that can use the eigenfunctions as PEs while addressing the concerns raised in section 2.2. Our Spectral Attention Network (SAN) model inputs eigenfunctions of a graph and projects them into a learned positional encoding (LPE) of fixed size. The LPE allows the network to use up to the entire Laplace spectrum of each graph, learn how the frequencies interact, and decide which are most important for the given task.
110
+
111
+ We propose a two-step learning process summarized earlier in Figure 1. The first step, depicted by blocks (c-d-e) in the figure, applies a Transformer over the eigenfunctions of each node to generate an LPE matrix for each graph. The LPE is then concatenated to the node embeddings (blocks g-h), before being passed to the Graph Transformer (block i). If the task involves graph classification or regression, the final node embeddings are subsequently passed to a final pooling layer.
112
+
113
+ # 3.1 LPE Transformer Over Nodes
114
+
115
+ Using Laplace encodings as node features is ubiquitous in the literature concerning the topic. Here, we propose a method for learning node PEs motivated by the principles from section 2.2. The idea of our LPE is inspired by Figure 2, where the eigenvectors $\phi$ are represented as a non-uniform sequence with the eigenvalue $\lambda$ being the position on the frequency axis. With this representation, Transformers are a natural choice for processing them and generating a fixed-size PE.
116
+
117
+ The proposed LPE architecture is presented in Figure 4. First, we create an embedding matrix of size $2 \times m$ for each node $j$ by concatenating the $m$ -lowest eigenvalues with their associated eigenvectors. Here, $m$ is a hyper-parameter for the maximum number of eigenvectors to compute and is analog to the variable-length sequence for a standard Transformer. For graphs where $m > N$ , a masked-padding is simply added. Note that to capture the entire spectrum of all graphs, one can simply select $m$ such that it is equal to the maximum number of nodes a graph has in the dataset. A linear layer is then applied on the dimension of size 2 to generate new embeddings of size $k$ . A Transformer Encoder then computes self-attention on the sequence of length $m$ and hidden dimension $k$ . Finally, a sum pooling reduces the sequence into a fixed $k$ -dimensional node embedding.
118
+
119
+ The LPE model addresses key limitations of previous graph Transformers and is aligned with the first four etiquettes presented in section 2.2. By concatenating the eigenvalues with the normalized eigenvector, this model directly addresses the first three etiquettes. Namely, it normalizes the eigenvectors, pairs eigenvectors with their eigenvalues and treats the number of eigenvectors as a variable. Furthermore, the model is aware of multiplicities and has the potential to linearly combine or ignore some of the repeated eigenvalues.
120
+
121
+ However, this method still does not address the limitation that the sign of the pre-computed eigenvectors is arbitrary. To combat this issue, we randomly flip the sign of the pre-computed eigenvectors during training as employed by previous work [15, 14], to promote invariance to the sign ambiguity.
122
+
123
+ ![](images/db1815f2d04f6f59e1b99c9323e1f509fa40804dac0fe563e0f4530eb752450e.jpg)
124
+ Figure 4: Learned positional encoding (LPE) architectures, with the model being aware of the graph’s Laplace spectrum by considering $m$ eigenvalues and eigenvectors, where we permit $m \leq N$ , with $N$ denoting the number of nodes. Since the Transformer loops over the nodes, each node can be viewed as an element of a batch to parallelize the computation. Here $\phi _ { i , j }$ is the $j$ -th element of the eigenvector paired to the $i$ -th lowest eigenvalue $\lambda _ { i }$ .
125
+
126
+ # 3.2 LPE Transformer Over Edges
127
+
128
+ Here we present an alternative formulation for Laplace encodings. This method addresses the same issues as the LPE over nodes, but also resolves the eigenvector sign ambiguity. Instead of encoding absolute positions as node features, the idea is to consider relative positions encoded as edge features.
129
+
130
+ Inspired by the physical interactions introduced in 1 and 2, we can take a pair of nodes $( j _ { 1 } , j _ { 2 } )$ and obtain sign-invariant operators using the absolute subtraction $\lvert \phi _ { i , j _ { 1 } } - \bar { \phi } _ { i , j _ { 2 } } \rvert$ and the product $\phi _ { i , j _ { 1 } } \phi _ { i , j _ { 2 } }$ . These operators acknowledge that the sign of $\phi _ { i , j _ { 1 } }$ at a given node $j _ { 1 }$ is not important, but that the relative sign between nodes $j _ { 1 }$ and $j _ { 2 }$ is important. One might argue that we could directly compute the deterministic values from equations $( 1 , 2 )$ as edge features instead. However, our goal is to construct models that can learn which frequencies to emphasize and are not biased towards the lower frequencies — despite lower frequencies being useful in many tasks.
131
+
132
+ This approach is only presented thoroughly in appendix A, since it suffers from a major computational bottleneck compared to the LPE over nodes. In fact, for a fully-connected graph, there are $N$ times more edges than nodes, thus the computation complexity is $\dot { O } ( m ^ { 2 } N ^ { 2 } )$ , or $\bar { O ( N ^ { 4 } ) }$ considering all eigenfunctions. The same limitation also affects memory and prevents the use of large batch sizes.
133
+
134
+ # 3.3 Main Graph Transformer
135
+
136
+ Our attention mechanism in the main Transformer is based on previous work [14], which attempts to repurpose the original Transformer to graphs by considering the graph structure and improving attention estimates with edge feature embeddings.
137
+
138
+ In the following, note that $h _ { i } ^ { l }$ is the $i$ -th node’s features at the $l$ -th layer, and $e _ { i j }$ is the edge feature embedding between nodes $i$ and $j$ . Our model employs multi-head attention over all nodes:
139
+
140
+ $$
141
+ \hat { \pmb { h } } _ { i } ^ { l + 1 } = \pmb { O } _ { h } ^ { l } \prod _ { k = 1 } ^ { H } ( \sum _ { j \in V } w _ { i j } ^ { k , l } V ^ { k , l } { \pmb { h } } _ { j } ^ { l } )
142
+ $$
143
+
144
+ where $O _ { h } ^ { l } \in \mathbb { R } ^ { d \times d }$ , $V ^ { k , l } \in \mathbb { R } ^ { d _ { k } \times d }$ , $H$ denotes the number of heads, $L$ the number of layers, and $| |$ concatenation. Note that $d$ is the hidden dimension, while $d _ { k }$ is the dimension of a head $\begin{array} { r } { \frac { d } { H } = d _ { k } \rangle } \end{array}$ ).
145
+
146
+ A key addition from our work is the design of an architecture that performs full-graph attention while preserving local connectivity with edge features via two sets of attention mechanisms: one for nodes connected by real edges in the sparse graph and one for nodes connected by added edges in the fully-connected graph. The attention weights $w _ { i j } ^ { k , l }$ in equation 3 at layer $l$ and head $k$ are given by:
147
+
148
+ $$
149
+ \begin{array} { r } { \hat { w } _ { i j } ^ { k , l } = \left\{ \begin{array} { l l } { \frac { Q ^ { 1 , k , l } h _ { i } ^ { l } \circ K ^ { 1 , k , l } h _ { j } ^ { l } \circ E ^ { 1 , k , l } e _ { i j } } { \sqrt { d _ { k } } } } & { \mathrm { i f ~ } i \mathrm { a n d ~ } j \mathrm { ~ a r e ~ c o n n e c t e d ~ i n ~ s p a r s e ~ g r a p h } } \\ { \frac { Q ^ { 2 , k , l } h _ { i } ^ { l } \circ K ^ { 2 , k , l } h _ { j } ^ { l } \circ E ^ { 2 , k , l } e _ { i j } } { \sqrt { d _ { k } } } } & { \mathrm { o t h e r w i s e } } \end{array} \right\} } \\ { w _ { i j } ^ { k , l } = \left\{ \begin{array} { l l } { \frac { 1 } { 1 + \gamma } \cdot \mathrm { s o f t m a x } ( \sum _ { d _ { k } } \hat { w } _ { i j } ^ { k , l } ) } & { \mathrm { i f ~ } i \mathrm { a n d ~ } j \mathrm { ~ a r e ~ c o n n e c t e d ~ i n ~ s p a r s e ~ g r a p h } } \\ { \frac { \gamma } { 1 + \gamma } \cdot \mathrm { s o f t m a x } ( \sum _ { d _ { k } } \hat { w } _ { i j } ^ { k , l } ) } & { \mathrm { o t h e r w i s e } } \end{array} \right\} } \end{array}
150
+ $$
151
+
152
+ where $\circ$ denotes element-wise multiplication and $Q ^ { 1 , k , l }$ , $Q ^ { 2 , k , l }$ , ${ \pmb K } ^ { 1 , k , l }$ , $\pmb { K } ^ { 2 , k , l }$ , $\mathbf { \delta } _ { E ^ { 1 , k , l } }$ , $E ^ { 2 , k , l } \in$ $\mathbb { R } ^ { d _ { k } \times d }$ . $\gamma \in \mathbb { R } ^ { + }$ is a hyperparameter which tunes the amount of bias towards full-graph attention, allowing flexibility of the model to different datasets and tasks where the necessity to capture longrange dependencies may vary. Note that softmax outputs are clamped between $- 5$ and 5 for numerical stability and that the keys, queries and edge projections are different for pairs of connected nodes $( Q ^ { 1 } , \dot { K ^ { 1 } } , E ^ { 1 } )$ and disconnected nodes $( Q ^ { \tilde { 2 } } , \dot { K } ^ { 2 } , E ^ { 2 } )$ .
153
+
154
+ A multi-layer perceptron (MLP) with residual connections and normalization layers are then applied to update representations, in the same fashion as the GT method [14].
155
+
156
+ $$
157
+ \begin{array} { r } { \hat { \hat { h } } ^ { l + 1 } = \operatorname { N o r m } ( h _ { i } ^ { l } + \hat { h } _ { i } ^ { l + 1 } ) , \quad \hat { \hat { h } } _ { i } ^ { l + 1 } = W _ { 2 } ^ { l } \operatorname { R e L U } ( W _ { 1 } ^ { l } \hat { \hat { h } } _ { i } ^ { l + 1 } ) , \quad h _ { i } ^ { l + 1 } = \operatorname { N o r m } ( \hat { \hat { h } } ^ { l + 1 } + \hat { \hat { h } } _ { i } ^ { l + 1 } ) } \end{array}
158
+ $$
159
+
160
+ with the weight matrices $W _ { 1 } ^ { l } \in \mathbb { R } ^ { 2 d \times d }$ , $W _ { 2 } ^ { l } \in \mathbb { R } ^ { d \times 2 d }$ . Edge representations are not updated as it adds complexity with little to no performance gain. Bias terms are omitted for presentation.
161
+
162
+ # 3.4 Limitations
163
+
164
+ The first limitation of the node-wise LPE, and noted in Table 1 is the lack of sign invariance of the model. A random sign-flip of an eigenvector can produce different outputs for the LPE, meaning that the model needs to learn a representation invariant to these flips. We resolve this issue with the edge-wise LPE proposed in 3.2, but it comes at a computational cost.
165
+
166
+ Another limitation of the approach is the computational complexity of the LPE being $O ( m ^ { 2 } N )$ , or $O ( N ^ { 3 } )$ if considering all eigenfunctions. Further, as nodes are batched in the LPE, the total memory on the GPU will be num_params \* num_nodes_in_batch instead of num_params $^ *$ batch_size. Although this is limiting, the LPE is not parameter hungry, with $k$ usually kept around 16. Most of the model’s parameters are in the Main Graph Transformer of complexity $O ( \bar { N } ^ { 2 } )$ .
167
+
168
+ Despite Transformers having increased complexity, they managed to revolutionalize the NLP community. We argue that to shift away from the message-passing paradigm and generalize Transformers to graphs, it is natural to expect higher computational complexities. This is exacerbated by sequences being much simpler to understand than graphs due to their linear structure. Future work could overcome this by using variations of Transformers that scale linearly or logarithmically [34].
169
+
170
+ # 3.5 Theoretical properties of the architecture
171
+
172
+ Due to the full connectivity, it is trivial that our model does not suffer from the same limitations in expressivity as its convolutional/message-passing counterpart.
173
+
174
+ WL test and universality. The DGN paper [4] showed that using the eigenvector $\phi _ { 1 }$ is enough to distinguish some non-isomorphic graphs indistinguishable by the 1-WL test.
175
+
176
+ Given that our model uses the full set of eigenfunctions, and given enough parameters, our model can distinguish any pair of non-isomorphic graphs and is more powerful than any WL test in that regard. However, this does not solve the graph isomorphism problem in polynomial time; it only approximates a solution, and the number of parameters required is unknown and possibly non-polynomial. In appendix C, we present a proof of our statement, and discuss why the WL test is not well suited to study the expressivity of graph Transformers due to their universality.
177
+
178
+ Reduced over-squashing. Over-squashing represents the difficulty of a graph neural network to pass information to distant neighbours due to the exponential blow-up in computational paths [1].
179
+
180
+ For the fully-connected network, it is trivial to see that over-squashing is non-existent since there are direct paths between distant nodes.
181
+
182
+ Physical interactions. Another point to consider is the ability of the network to learn physical interactions between nodes. This is especially important when the graph models physical, chemical, or biological structures, but can also help understanding pixel interaction in images [2, 3]. Here, we argue that our SAN model, which uses the Laplace spectrum more effectively, can learn to mimic the physical interactions presented in section 2.1.2. This contrasts with the convolutional approach that requires deep layers for the receptive field to capture long-distance interactions. It also contrasts with the GT model [14], which does not use eigenvalues or enough eigenfunctions to properly model physical interactions in early layers. However, due to the lack of sign-invariance in the proposed node-wise LPE, it is difficult to learn these interactions accurately. The edge-wise LPE (section 3.2) could be better suited for the problem, but it suffers from higher computational complexity.
183
+
184
+ # 4 Experimental Results
185
+
186
+ The model is implemented in PyTorch [31] and DGL [38] and tested on established benchmarks from [15] and [21] provided under MIT license. Specifically, we applied our method on ZINC, PATTERN, CLUSTER, MolHIV and MolPCBA, while following their respective training protocols with minor changes, as detailed in the appendix B.1. The computation time and hardware is provided in appendix B.4.
187
+
188
+ We first conducted an ablation study to fairly compare the benefits of using full attention and/or the node LPE. We then took the best-performing model, tuned some of its hyperparameters, and matched it up against the current state-of-the-art methods. Since we use a similar attention mechanism, our code was developed on top of the code from the GT paper [14], provided under the MIT license.
189
+
190
+ ![](images/d5bbaf77fda3e2b0ff6f576a445dfc5384bfb1722dab6d7b4851bc2e2612da69.jpg)
191
+ Figure 5: Effect of the $\gamma$ parameter on the performance across datasets from [15, 21], using the Node LPE. Dotted black lines indicate sparse attention, which is equivalent to setting $\gamma = 0$ . Each box plot consists of 4 runs, with different seeds (except MolHIV).
192
+
193
+ <table><tr><td rowspan=1 colspan=2>Model details</td><td rowspan=1 colspan=1>ZINC</td><td rowspan=1 colspan=1>PATTERN</td><td rowspan=1 colspan=1>CLUSTER</td><td rowspan=1 colspan=1>MOLHIV</td><td rowspan=6 colspan=2>BestWorst</td></tr><tr><td rowspan=1 colspan=1>AttentionLPE</td><td rowspan=1 colspan=1>LPE</td><td rowspan=1 colspan=1>MAE</td><td rowspan=1 colspan=1>% ACC</td><td rowspan=1 colspan=1>%ACC</td><td rowspan=1 colspan=1>% ROC-AUC</td><td rowspan=5 colspan=1></td><td rowspan=5 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Sparse</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>0.267±0.032</td><td rowspan=1 colspan=1>83.613 ±0.663</td><td rowspan=1 colspan=1>75.683±0.098</td><td rowspan=1 colspan=1>73.46±0.71</td></tr><tr><td rowspan=1 colspan=1>Sparse</td><td rowspan=1 colspan=1>Node</td><td rowspan=1 colspan=1>0.198±0.004</td><td rowspan=1 colspan=1>81.329±2.150</td><td rowspan=1 colspan=1>75.738 ±0.106</td><td rowspan=1 colspan=1>76.61±0.62</td></tr><tr><td rowspan=1 colspan=1>Full</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>0.392 ±0.055</td><td rowspan=1 colspan=1>86.322±0.049</td><td rowspan=1 colspan=1>76.447±0.177</td><td rowspan=1 colspan=1>73.84± 1.80</td></tr><tr><td rowspan=1 colspan=1>Full</td><td rowspan=1 colspan=1>Node</td><td rowspan=1 colspan=1>0.157±0.006</td><td rowspan=1 colspan=1>86.441±0.040</td><td rowspan=1 colspan=1>76.691±0.247</td><td rowspan=1 colspan=1>77.57 ±0.61</td></tr></table>
194
+
195
+ Figure 6: Ablation study on datasets from [15, 21] for the node LPE and full graph attention, with no hyperparameter tuning other than $\gamma$ taken from Figure 5. For a given dataset, all models use the same hyperparameters, but the hidden dimensions are adjusted to have $\sim 5 0 0 k$ learnable parameters. Means and uncertainties are derived from four runs, with different seeds (except MolHIV).
196
+
197
+ # 4.1 Sparse vs. Full Attention
198
+
199
+ To study the effect of incorporating full attention, we present an ablation study of the $\gamma$ parameter in Figure 5. We remind readers that $\gamma$ is used in equation 5 to balance between sparse and full attention. Setting $\gamma = 0$ strictly enables sparse attention, while $\gamma = 1$ does not bias the model in any direction.
200
+
201
+ It is apparent that molecular datasets, namely ZINC and MOLHIV, benefit less from full attention, with the best parameter being $\log { \gamma } \in ( - 7 , - 5 )$ . On the other hand, the larger SBM datasets (PATTERN and CLUSTER) benefit from a higher $\gamma$ value. This can be explained by the fact that molecular graphs rely more on understanding local structures such as the presence of rings and specific bonds, especially in the artificial task from ZINC which relies on counting these specific patterns [15]. Furthermore, molecules are generally smaller than SBMs. As a result, we would expect less need for full attention, as information between distant nodes can be propagated with few iterations of even sparse attention. We also expect molecules to have fewer multiplicities, thus reducing the space of eigenvectors. Lastly, the performance gains in using full attention on the CLUSTER dataset can be attributed to it being a semi-supervised task, where some nodes within each graph are assigned their true labels. With full attention, every node receives information from the labeled nodes at each iteration, reinforcing confidence about the community they belong to.
202
+
203
+ In Figure 6, we present another ablation study to measure the impact of the node LPE in both the sparse and full architectures. We observe that the proposed node-wise LPE contributes significantly to the performance for molecular tasks (ZINC and MOLHIV), and believe that it can be attributed to the detection of substructures (see Figure 3). For PATTERN and CLUSTER, the improvement is modest as the tasks are simple clustering [15]. Previous work even found that the optimal number of eigenvectors to construct PE for PATTERN is only 2 [14].
204
+
205
+ # 4.2 Comparison to the state-of-the-art
206
+
207
+ When comparing to the state-of-the-art (SOTA) models in the literature in Figure 7, we observe that our SAN model consistently performs better on all synthetic datasets from [15], highlighting the strong expressive power of the model. On the MolHIV dataset, the performance on the test set is slightly lower than the SOTA. However, the model performs better on the validation set $( 8 5 . 3 0 \% )$ in comparison to PNA $( 8 4 . 2 5 \% )$ and DGN $( 8 4 . 7 0 \% )$ . This can be attributed to a well-known issue with this dataset: the validation and test metrics have low correlation. In our experiments, we found higher test results with lower validation scores when restricting the number of epochs. Here, we also included results on the MolPCBA dataset, where we witnessed competitive results as well.
208
+
209
+ Other top-performing models, namely PNA [11] and DGN [4], use a message-passing approach [17] with multiple aggregators. When compared to attention-based models, SAN consistently outperforms the SOTA by a wide margin. To the best of our knowledge, SAN is the first fully-connected model to perform well on graph tasks, as is evident by the poor performance of the GT (full) model.
210
+
211
+ ![](images/93b1105e11e1e554e1b6c09555f02af64ce0f2dd31b0d13d2087ec29687349b9.jpg)
212
+
213
+ ![](images/6044e1c2c1c58edc9537adb666ceec63206f09bcdef5ed386de81fa68b83196d.jpg)
214
+ Figure 7: Comparing our tuned model on datasets from [15, 21], against GCN [25], GraphSage [18], GIN [39], GAT [37], GatedGCN [5], PNA [11], and DGN [4]. Means and uncertainties are derived from four runs with different seeds, except MolHIV which uses 10 runs with identical seed. The number of parameters is fixed to $\sim 5 0 0 k$ for ZINC, PATTERN and CLUSTER.
215
+
216
+ # 5 Conclusion
217
+
218
+ In summary, we presented the SAN model for graph neural networks, a new Transformer-based architecture that is aware of the Laplace spectrum of a given graph from the learned positional encodings. The model was shown to perform on par or better than the SOTA on multiple benchmarks and outperforms other Attention-based models by a large margin. As is often the case with Transformers, the current model suffers from a computational bottleneck, and we leave it for future work to implement variations of Transformers that scale linearly or logarithmically. This will enable the edge-wise LPE presented in appendix A, a theoretically more powerful version of the SAN model.
219
+
220
+ Societal Impact. The presented work is focused on theoretical and methodological improvements to graph neural networks, so there are limited direct societal impacts. However, indirect negative impacts could be caused by malicious applications developed using the algorithm. One such example is the tracking of people on social media by representing their interaction as graphs, thus predicting and influencing their behavior towards an external goal. It also has an environmental impact due to the greater energy use that arises from the computational cost $O ( m ^ { 2 } N + N ^ { 2 } )$ being larger than standard message passing or convolutional approaches of $O ( E )$ .
221
+
222
+ # Funding Disclosure.
223
+
224
+ Devin Kreuzer is supported by an NSERC grant.
225
+
226
+ # References
227
+
228
+ [1] Uri Alon and Eran Yahav. On the bottleneck of graph neural networks and its practical implications. arXiv:2006.05205 [cs, stat], 2020.
229
+ [2] Dominique Beaini, Sofiane Achiche, Alexandre Duperré, and Maxime Raison. Deep green function convolution for improving saliency in convolutional neural networks. The Visual Computer, 37(2):227–244, 2020.
230
+ [3] Dominique Beaini, Sofiane Achiche, and Maxime Raison. Improving convolutional neural networks via conservative field regularisation and integration.
231
+ [4] Dominique Beaini, Saro Passaro, Vincent Létourneau, William L. Hamilton, Gabriele Corso, and Pietro Liò. Directional graph networks. ICML2021, 2021.
232
+ [5] Xavier Bresson and Thomas Laurent. Residual gated graph convnets. arXiv preprint arXiv:1711.07553, 2017.
233
+ [6] Michael M. Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017.
234
+ [7] F. Cajori. A History of Mathematics. AMS Chelsea Publishing Series. AMS Chelsea, 1999.
235
+ [8] Heng Chang, Yu Rong, Tingyang Xu, Wenbing Huang, Somayeh Sojoudi, Junzhou Huang, and Wenwu Zhu. Spectral graph attention network. CoRR, abs/2003.07450, 2020.
236
+ [9] Fan Chung and S. T. Yau. Discrete green’s functions. Journal of Combinatorial Theory, Series A, 91(1):191–214, 2000.
237
+ [10] Ronald R. Coifman and Stéphane Lafon. Diffusion maps. Applied and Computational Harmonic Analysis, 21(1):5–30, 2006. Special Issue: Diffusion Maps and Wavelets.
238
+ [11] Gabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò, and Petar Velickovi ˇ c. Principal ´ neighbourhood aggregation for graph nets. arXiv preprint arXiv:2004.05718, 2020.
239
+ [12] Luca Cosmo, Mikhail Panine, Arianna Rampini, Maks Ovsjanikov, Michael M. Bronstein, and Emanuele Rodola. Isospectralization, or how to hear shape, style, and correspondence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
240
+ [13] Yushun Dong, Kaize Ding, Brian Jalaian, Shuiwang Ji, and Jundong Li. Graph neural networks with adaptive frequency response filter. CoRR, abs/2104.12840, 2021.
241
+ [14] Vijay Prakash Dwivedi and Xavier Bresson. A generalization of transformer networks to graphs, 2020.
242
+ [15] Vijay Prakash Dwivedi, Chaitanya K Joshi, Thomas Laurent, Yoshua Bengio, and Xavier Bresson. Benchmarking graph neural networks. arXiv preprint arXiv:2003.00982, 2020.
243
+ [16] Richard Phillips Feynman, Robert Benjamin Leighton, and Matthew Sands. The Feynman lectures on physics; New millennium ed. Basic Books, New York, NY, 2010. Originally published 1963-1965.
244
+ [17] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1263–1272. JMLR. org, 2017.
245
+ [18] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in neural information processing systems, pages 1024–1034, 2017.
246
+ [19] William L. Hamilton. Graph Representation Learning. Morgan and Claypool, 2020.
247
+ [20] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
248
+ [21] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. arXiv preprint arXiv:2005.00687, 2020.
249
+ [22] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. arXiv:1802.04364 [cs, stat], 2018.
250
+ [23] Mark Kac. Can one hear the shape of a drum? The American Mathematical Monthly, 73(4):1, 1966.
251
+ [24] Anees Kazi, Luca Cosmo, Nassir Navab, and Michael Bronstein. Differentiable graph module (dgm) graph convolutional networks. arXiv preprint arXiv:2002.04999, 2020.
252
+ [25] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
253
+ [26] B. Levy. Laplace-beltrami eigenfunctions towards an algorithm that "understands" geometry. In IEEE International Conference on Shape Modeling and Applications 2006 (SMI’06), pages 13–13, 2006.
254
+ [27] Pan Li, Yanbang Wang, Hongwei Wang, and Jure Leskovec. Distance encoding: Design provably more powerful neural networks for graph representation learning, 2020.
255
+ [28] Yaron Lipman, Raif M. Rustamov, and Thomas A. Funkhouser. Biharmonic distance. ACM Trans. Graph., 29(3), July 2010.
256
+ [29] Haggai Maron, Heli Ben-Hamu, Hadar Serviansky, and Yaron Lipman. Provably powerful graph networks. arXiv preprint arXiv:1905.11136, 2019.
257
+ [30] Christopher Morris, Martin Ritzert, Matthias Fey, William L Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4602–4609, 2019.
258
+ [31] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
259
+ [32] Emanuele Rodolà, Luca Cosmo, Michael M. Bronstein, Andrea Torsello, and Daniel Cremers. Partial functional correspondence, 2015.
260
+ [33] Joshua Schrier. Can one hear the shape of a molecule (from its coulomb matrix eigenvalues)? Journal of Chemical Information and Modeling, 60(8):3804–3811, 2020. Publisher: American Chemical Society.
261
+ [34] Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey, 2020.
262
+ [35] Edwin R. van Dam and Willem H. Haemers. Which graphs are determined by their spectrum? Linear Algebra and its Applications, 373:241–272, 2003.
263
+ [36] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, abs/1706.03762, 2017.
264
+ [37] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
265
+ [38] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019.
266
+ [39] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? arXiv preprint arXiv:1810.00826, 2018.
267
+ [40] Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv Kumar. Are transformers universal approximators of sequence-to-sequence functions?, 2020.
268
+ [41] Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv Kumar. $\$ 0( n )5$ connections are expressive enough: Universal approximability of sparse transformers. CoRR, abs/2006.04862, 2020.
269
+ [42] Seongjun Yun, Minbyul Jeong, Raehyun Kim, Jaewoo Kang, and Hyunwoo J. Kim. Graph transformer networks, 2020.
parse/train/huAdB-Tj4yG/huAdB-Tj4yG_content_list.json ADDED
@@ -0,0 +1,1267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Rethinking Graph Transformers with Spectral Attention ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 218,
8
+ 122,
9
+ 781,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Devin Kreuzer ∗ McGill University, Mila Montreal, Canada devin.kreuzer@mail.mcgill.ca ",
17
+ "bbox": [
18
+ 377,
19
+ 222,
20
+ 620,
21
+ 277
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Dominique Beaini \\* Valence Discovery Montreal, Canada dominique@valencediscovery.com ",
28
+ "bbox": [
29
+ 186,
30
+ 297,
31
+ 446,
32
+ 354
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "William L. Hamilton \nMcGill University, Mila \nMontreal, Canada \nwlh@cs.mcgill.ca ",
39
+ "bbox": [
40
+ 465,
41
+ 297,
42
+ 625,
43
+ 354
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Vincent Létourneau University of Ottawa Ottawa, Canada vletour2@uottawa.ca ",
50
+ "bbox": [
51
+ 645,
52
+ 299,
53
+ 812,
54
+ 354
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Prudencio Tossou Valence Discovery Montreal, Canada prudencio@valencediscovery.com ",
61
+ "bbox": [
62
+ 369,
63
+ 376,
64
+ 627,
65
+ 431
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Abstract ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 462,
75
+ 467,
76
+ 535,
77
+ 483
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "In recent years, the Transformer architecture has proven to be very successful in sequence processing, but its application to other data structures, such as graphs, has remained limited due to the difficulty of properly defining positions. Here, we present the Spectral Attention Network (SAN), which uses a learned positional encoding (LPE) that can take advantage of the full Laplacian spectrum to learn the position of each node in a given graph. This LPE is then added to the node features of the graph and passed to a fully-connected Transformer. By leveraging the full spectrum of the Laplacian, our model is theoretically powerful in distinguishing graphs, and can better detect similar sub-structures from their resonance. Further, by fully connecting the graph, the Transformer does not suffer from over-squashing, an information bottleneck of most GNNs, and enables better modeling of physical phenomenons such as heat transfer and electric interaction. When tested empirically on a set of 4 standard datasets, our model performs on par or better than state-of-theart GNNs, and outperforms any attention-based model by a wide margin, becoming the first fully-connected architecture to perform well on graph benchmarks. ",
84
+ "bbox": [
85
+ 233,
86
+ 498,
87
+ 766,
88
+ 705
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 Introduction ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 174,
98
+ 729,
99
+ 310,
100
+ 747
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The prevailing strategy for graph neural networks (GNNs) has been to directly encode graph structure structure through a sparse message-passing process [17, 19]. In this approach, vector messages are iteratively passed between nodes that are connected in the graph. Multiple instantiations of this message-passing paradigm have been proposed, differing in the architectural details of the message-passing apparatus (see [19] for a review). ",
107
+ "bbox": [
108
+ 174,
109
+ 761,
110
+ 825,
111
+ 830
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "However, there is a growing recognition that the message-passing paradigm has inherent limitations. The expressive power of message passing appears inexorably bounded by the Weisfeiler-Lehman isomorphism hierarchy [29, 30, 39]. Message-passing GNNs are known to suffer from pathologies, such as oversmoothing, due to their repeated aggregation of local information [19], and over-squashing, due to the exponential blow-up in computation paths as the model depth increases [1]. ",
118
+ "bbox": [
119
+ 176,
120
+ 837,
121
+ 825,
122
+ 878
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 171,
131
+ 92,
132
+ 825,
133
+ 119
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "As a result, there is a growing interest in deep learning techniques that encode graph structure as a soft inductive bias, rather than as a hard-coded aspect of message passing [14, 24]. A central issue with message-passing paradigm is that input graph structure is encoded by restricting the structure of the model’s computation graph, inherently limiting its flexibility. This reminds us of how early recurrent neural networks (RNNs) encoded sequential structure via their computation graph—a strategy that leads to well-known pathologies such as the inability to model long-range dependencies [20]. ",
140
+ "bbox": [
141
+ 174,
142
+ 126,
143
+ 825,
144
+ 209
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "There is a growing trend across deep learning towards more flexible architectures, which avoid strict and structural inductive biases. Most notably, the exceptionally successful Transformer architecture removes any structural inductive bias by encoding the structure via soft inductive biases, such as positional encodings [36]. In the context of GNNs, the self-attention mechanism of a Transformer can be viewed as passing messages between all nodes, regardless of the input graph connectivity. ",
151
+ "bbox": [
152
+ 174,
153
+ 215,
154
+ 825,
155
+ 285
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Prior work has proposed to use attention in GNNs in different ways. First, the GAT model [37] proposed local attention on pairs of nodes that allows a learnable convolutional kernel. The GTN work [42] has improved on the GAT for node and link predictions while keeping a similar architecture, while other message-passing approaches have used enhancing spectral features [8, 13] . More recently, the GT model [14] was proposed as a generalization of Transformers to graphs, where they experimented with sparse and full graph attention while providing low-frequency eigenvectors of the Laplacian as positional encodings. ",
162
+ "bbox": [
163
+ 174,
164
+ 291,
165
+ 825,
166
+ 388
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "In this work, we offer a principled investigation of how Transformer architectures can be applied in graph representation learning. Our primary contribution is the development of novel and powerful learnable positional encoding methods, which are rooted in spectral graph theory. Our positional encoding technique — and the resulting spectral attention network (SAN) architecture — addresses key theoretical limitations in prior graph Transformer work [14] and provably exceeds the expressive power of standard message-passing GNNs. We show that full Transformer-style attention provides consistent empirical gains compared to an equivalent sparse message-passing model, and we demonstrate that our SAN architecture is competitive with or exceeding the state-of-the-art on several well-known graph benchmarks. An overview of the entire method is presented in Figure 1, with a link to the code here: https://github.com/DevinKreuzer/SAN. ",
173
+ "bbox": [
174
+ 174,
175
+ 393,
176
+ 826,
177
+ 532
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "2 Theoretical Motivations ",
184
+ "text_level": 1,
185
+ "bbox": [
186
+ 176,
187
+ 551,
188
+ 405,
189
+ 569
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "There can be a significant loss in structural information if naively generalizing Transformers to graphs. To preserve this information as well as local connectivity, previous studies [37, 14] have proposed to use the eigenfunctions of their Laplacian as positional encodings. Taking this idea further by using the full expressivity of eigenfunctions as positional encodings, we can propose a principled way of understanding graph structures using their spectra. The advantages of our methods compared to previous studies [37, 14] are shown in Table 1. ",
196
+ "bbox": [
197
+ 174,
198
+ 583,
199
+ 825,
200
+ 667
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "table",
206
+ "img_path": "images/2a3fa9f7cf5a7f2db232ad3eb7037538e4495943b1612d6e1b64db4ca4022e85.jpg",
207
+ "table_caption": [
208
+ "Table 1: Comparison of the properties of different graph Transformer models. "
209
+ ],
210
+ "table_footnote": [],
211
+ "table_body": "<table><tr><td>MODELS</td><td>GAT</td><td>GT sparse</td><td>GT full</td><td>SAN</td></tr><tr><td>Preserves local structure in attention</td><td>&gt;xxx</td><td>√&lt;x√</td><td>xxv√</td><td>?</td></tr><tr><td>Uses edge features</td><td></td><td></td><td></td><td></td></tr><tr><td>Connects non-neighbouring nodes</td><td></td><td></td><td></td><td></td></tr><tr><td>Uses eigenvector-based PE for attention</td><td></td><td></td><td></td><td></td></tr><tr><td>Use a PE with structural information</td><td>x</td><td>←</td><td>+</td><td></td></tr><tr><td>Considers the ordering of the eigenvalues</td><td>X</td><td>√</td><td>vv</td><td></td></tr><tr><td>Invariant to the norm of the eigenvector</td><td></td><td>√</td><td></td><td></td></tr><tr><td>Considers the spectrum of eigenvalues</td><td>X</td><td></td><td></td><td></td></tr><tr><td>Considers variable # of eigenvectors</td><td></td><td></td><td></td><td></td></tr><tr><td>Aware of eigenvalue multiplicities</td><td></td><td>xxx</td><td></td><td>√</td></tr><tr><td>Invariant to the sign of the eigenvectors</td><td></td><td>×</td><td>xxxx</td><td>X</td></tr></table>",
212
+ "bbox": [
213
+ 222,
214
+ 700,
215
+ 777,
216
+ 873
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "image",
222
+ "img_path": "images/6fdefa909906706bb5dccb238d25f45b161e68c2331a8e8d01f82d197ead59e6.jpg",
223
+ "image_caption": [
224
+ "Figure 1: The proposed SAN model with the node LPE, a generalization of Transformers to graphs. "
225
+ ],
226
+ "image_footnote": [],
227
+ "bbox": [
228
+ 173,
229
+ 80,
230
+ 826,
231
+ 464
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "2.1 Absolute and relative positional encoding with eigenfunctions ",
238
+ "text_level": 1,
239
+ "bbox": [
240
+ 174,
241
+ 513,
242
+ 638,
243
+ 529
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "The notion of positional encodings (PEs) in graphs is not a trivial concept, as there exists no canonical way of ordering nodes or defining axes. In this section, we investigate how eigenfunctions of the Laplacian can be used to define absolute and relative PEs in graphs, to measure physical interactions between nodes, and to enable ”hearing” of specific sub-structures - similar to how the sound of a drum can reveal its structure. ",
250
+ "bbox": [
251
+ 174,
252
+ 540,
253
+ 825,
254
+ 609
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "2.1.1 Eigenvectors equate to sine functions over graphs ",
261
+ "text_level": 1,
262
+ "bbox": [
263
+ 173,
264
+ 628,
265
+ 568,
266
+ 642
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "In the Transformer architecture, a fundamental aspect is the use of sine and cosine functions as PEs for sequences [36]. However, sinusoids cannot be clearly defined for arbitrary graphs, since there is no clear notion of position along an axis. Instead, their equivalent is given by the eigenvectors $\\phi$ of the graph Laplacian $\\pmb { L }$ . Indeed, in a Euclidean space, the Laplacian (or Laplace) operator corresponds to the divergence of the gradient and its eigenfunctions are sine/cosine functions, with the squared frequencies corresponding to the eigenvalues (we sometimes interchange the two notions from here on). Hence, in the graph domain, the eigenvectors of the graph Laplacian are the natural equivalent of sine functions, and this intuition was employed in multiple recent works which use the eigenvectors as PEs for GNNs [15], for directional flows [4] and for Transformers [14]. ",
273
+ "bbox": [
274
+ 173,
275
+ 652,
276
+ 825,
277
+ 779
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Being equivalent to sine functions, we naturally find that the Fourier Transform of a function $\\mathcal { F } [ f ]$ applied to a graph gives $\\mathcal { F } [ f ] ( \\lambda _ { i } ) = \\langle f , \\phi _ { i } \\rangle$ , where the eigenvalue is considered as a position in the Fourier domain of that graph [6]. Thus, the eigenvectors are best viewed as vectors positioned on the axis of eigenvalues rather than components of a matrix as illustrated in Figure 2. ",
284
+ "bbox": [
285
+ 174,
286
+ 784,
287
+ 825,
288
+ 840
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "2.1.2 What do eigenfunctions tell us about relative positions? ",
295
+ "text_level": 1,
296
+ "bbox": [
297
+ 173,
298
+ 858,
299
+ 607,
300
+ 873
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "In addition to being the analog of sine functions, the eigenvectors of the Laplacian also hold important information about the physics of a system and can reveal distance metrics. This is not surprising as the Laplacian is a fundamental operator in physics and is notably used in Maxwell’s equations [16] and the heat diffusion [6]. ",
307
+ "bbox": [
308
+ 173,
309
+ 883,
310
+ 825,
311
+ 911
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "image",
317
+ "img_path": "images/62eb856f3aba9054a14539ddc42e07cb54b4c6c12479b8ea05b4e55506ff52b1.jpg",
318
+ "image_caption": [
319
+ "Figure 2: a) Standard view of the eigenvectors as a matrix. b) Eigenvectors $\\phi _ { i }$ viewed as vectors positionned on the axis of frequencies (eigenvalues). "
320
+ ],
321
+ "image_footnote": [],
322
+ "bbox": [
323
+ 228,
324
+ 87,
325
+ 764,
326
+ 156
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "",
333
+ "bbox": [
334
+ 174,
335
+ 207,
336
+ 821,
337
+ 236
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "In electromagnetic theory, the (pseudo)inverse of the Laplacian, known in mathematics as the Green’s function of the Laplacian [9], represents the electrostatic potential of a given charge. In a graph, the same concept uses the pseudo-inverse of the Laplacian $G$ and can be computed by its eigenfunctions. See equation 1 , where $G ( j _ { 1 } , j _ { 2 } )$ is the electric potential between nodes $j _ { 1 }$ and $j _ { 2 }$ , $\\hat { \\phi } _ { i }$ and $\\hat { \\lambda _ { i } }$ are the $i$ -th eigenvectors and eigenvalues of the symmetric Laplacian $D ^ { \\frac { - 1 } { 2 } } L D ^ { \\frac { - 1 } { 2 } }$ , and $_ D$ is the degree matrix, and $\\hat { \\phi } _ { i , j }$ the $j$ -th row of the vector. ",
344
+ "bbox": [
345
+ 173,
346
+ 242,
347
+ 826,
348
+ 334
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "equation",
354
+ "img_path": "images/f0082920e6813a8acaede3a6e6dd1c66bcd9a72eba4b09e6db026fe9635520b6.jpg",
355
+ "text": "$$\nG ( j _ { 1 } , j _ { 2 } ) = d _ { j _ { 1 } } ^ { \\frac { 1 } { 2 } } d _ { j _ { 2 } } ^ { \\frac { - 1 } { 2 } } \\sum _ { i > 0 } ^ { } \\frac { ( \\hat { \\phi } _ { i , j _ { 1 } } \\hat { \\phi } _ { i , j _ { 2 } } ) ^ { 2 } } { \\hat { \\lambda } _ { i } }\n$$",
356
+ "text_format": "latex",
357
+ "bbox": [
358
+ 370,
359
+ 342,
360
+ 627,
361
+ 382
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "Further, the original solution of the heat equation given by Fourier relied on a sum of sines/cosines known as a Fourier series [7]. As eigenvectors of the Laplacian are the analogue of these functions in graphs, we find similar solutions. Knowing that heat kernels are correlated to random walks [6, 4], we use the interaction between two heat kernels to define in equation 2 the diffusion distance $d _ { D }$ between nodes $j _ { 1 } , j _ { 2 }$ [6, 10]. Similarly, the biharmonic distance $d _ { B }$ was proposed as a better measure of distances [28]. Here we use the eigenfunctions of the regular Laplacian $\\pmb { L }$ . ",
368
+ "bbox": [
369
+ 173,
370
+ 395,
371
+ 826,
372
+ 479
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "equation",
378
+ "img_path": "images/43a203c974d8ee197dba4f7fb4950c68ca9da3790a9aabee1e1b1aa64928c3c2.jpg",
379
+ "text": "$$\nd _ { D } ^ { 2 } ( j _ { 1 } , j _ { 2 } ) = \\sum _ { k > 0 } e ^ { - 2 t \\lambda _ { i } } ( \\phi _ { i , j _ { 1 } } - \\phi _ { i , j _ { 2 } } ) ^ { 2 } \\quad , \\quad d _ { B } ^ { 2 } ( j _ { 1 } , j _ { 2 } ) = \\sum _ { i > 0 } \\frac { ( \\phi _ { i , j _ { 1 } } - \\phi _ { i , j _ { 2 } } ) ^ { 2 } } { \\lambda _ { i } ^ { 2 } }\n$$",
380
+ "text_format": "latex",
381
+ "bbox": [
382
+ 232,
383
+ 487,
384
+ 764,
385
+ 526
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "There are a few things to note from these equations. Firstly, they highlight the importance of pairing eigenvectors and their corresponding eigenvalues when supplying information about relative positions in a graph. Secondly, we notice that the product of eigenvectors is proportional to the electrostatic interaction, while the subtraction is proportional to the diffusion and biharmonic distances. Lastly, there is a consistent pattern across all 3 equations: smaller frequencies/eigenvalues are more heavily weighted when determining distances between nodes. ",
392
+ "bbox": [
393
+ 173,
394
+ 539,
395
+ 826,
396
+ 625
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "2.1.3 Hearing the shape of a graph and its sub-structures ",
403
+ "text_level": 1,
404
+ "bbox": [
405
+ 173,
406
+ 638,
407
+ 583,
408
+ 654
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Another well-known property of eigenvalues is how they can be used to discriminate between different graph structures and sub-structures, as they can be interpreted as the frequencies of resonance of the graph. This led to the famous question about whether we can hear the shape of a drum from its eigenvalues [23], with the same questions also applying to geometric objects [12] and 3D molecules [33]. Various success was found with the eigenfunctions being used for partial functional correspondence [32], algorithmic understanding geometries [26], and style correspondence [12]. Examples of eigenvectors for molecular graphs are presented in Figure 3. ",
415
+ "bbox": [
416
+ 173,
417
+ 661,
418
+ 826,
419
+ 760
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "image",
425
+ "img_path": "images/b0da6292320ff0dc820d5dede7d45fd8e901266195d4c5355023fa0868362024.jpg",
426
+ "image_caption": [
427
+ "Figure 3: Examples of eigenvalues $\\lambda _ { i }$ and eigenvectors $\\phi _ { i }$ for molecular graphs. The low-frequency eigenvectors $\\phi _ { 1 } , \\phi _ { 2 }$ are spread accross the graph, while higher frequencies, such as $\\phi _ { 1 4 } , \\phi _ { 1 5 }$ for the left molecule or $\\phi _ { 1 0 } , \\phi _ { 1 1 }$ for the right molecule, often resonate in local structures. "
428
+ ],
429
+ "image_footnote": [],
430
+ "bbox": [
431
+ 250,
432
+ 770,
433
+ 750,
434
+ 856
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "2.2 Laplace Eigenfunctions etiquette ",
441
+ "text_level": 1,
442
+ "bbox": [
443
+ 174,
444
+ 92,
445
+ 436,
446
+ 106
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "In Euclidean space and sequences, using sinusoids as PEs is trivial: we can simply select a set of frequencies, compute the sinusoids, and add or concatenate them to the input embeddings, as is done in the original Transformer [36]. However, in arbitrary graphs, reproducing these steps is not as simple since each graph has a unique set of eigenfunctions. In the following section, we present key principles from spectral graph theory to consider when constructing PEs for graphs, most of which have been overlooked by prior methods. They include normalization, the importance of the eigenvalues and their multiplicities, the number of eigenvectors being variable, and sign ambiguities. Our LPE architectures, presented in section 3, aim to address them. ",
453
+ "bbox": [
454
+ 174,
455
+ 121,
456
+ 825,
457
+ 232
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "Normalization. Given an eigenvalue of the Laplacian, there is an associated eigenspace of dimension greater than 1. To make use of this information in our model, a single eigenvector has to be chosen. In our work, we use the $L _ { 2 }$ normalization since it is compatible with the definition of the Green’s function (1). Thus, we will always chose eigenvectors $\\phi$ such that $\\langle \\phi , \\phi \\rangle = 1$ . ",
464
+ "bbox": [
465
+ 174,
466
+ 238,
467
+ 825,
468
+ 294
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Eigenvalues. Another fundamental aspect is that the eigenvalue associated with each eigenvector supplies valuable information. An ordering of the eigenvectors based on their eigenvalue works in sequences since the frequencies are pre-determined. However, this assumption does not work in graphs since the eigenvalues in their spectrum can vary. For example, in Figure 3, we observe how an ordering would miss the fact that both molecules resonate at $\\lambda = 1$ in different ways. ",
475
+ "bbox": [
476
+ 174,
477
+ 300,
478
+ 825,
479
+ 369
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Multiplicities. Another important problem with choosing eigenfunctions is the possibility of a high multiplicity of the eigenvalues, i.e. when an eigenvalue appears as a root of the characteristic polynomial more than once. In this case, the associated eigenspace may have dimension 2 or more as we can generate a valid eigenvector from any linear combination of eigenvectors with the same eigenvalue. This further complicates the problem of choosing eigenvectors for algorithmic computations and highlights the importance of having a model that can handle this ambiguity. ",
486
+ "bbox": [
487
+ 174,
488
+ 376,
489
+ 825,
490
+ 459
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "Variable number of eigenvectors. A graph $G _ { i }$ can have at most $N _ { i }$ linearly independent eigenvectors with $N _ { i }$ being its number of nodes. Most importantly, $N _ { i }$ can vary across all $G _ { i }$ in the dataset. Prior work [14] elected to select a fixed number $k$ eigenvectors for each graph, where $k \\leq N _ { i } , \\forall i$ . This produces a major bottleneck when the smallest graphs have significantly fewer nodes than the largest graphs in the dataset since a very small proportion of eigenvectors will be used for large graphs. This inevitably causes loss of information and motivates the need for a model which constructs fixed PEs of dimension $k$ , where $k$ does not depend on the number of eigenvectors in the graph. ",
497
+ "bbox": [
498
+ 173,
499
+ 465,
500
+ 825,
501
+ 563
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Sign invariance. As noted earlier, there is a sign ambiguity with the eigenvectors. With the sign of $\\phi$ being independent of its normalization, we are left with a total of $2 ^ { k }$ possible combination of signs when choosing $k$ eigenvectors of a graph. Previous work has proposed to do data augmentation by randomly flipping the sign of the eigenvectors [4, 15, 14], and although it can work when $k$ is small, it becomes intractable for large $k$ . ",
508
+ "bbox": [
509
+ 174,
510
+ 569,
511
+ 825,
512
+ 638
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "2.3 Learning with Eigenfunctions ",
519
+ "text_level": 1,
520
+ "bbox": [
521
+ 176,
522
+ 666,
523
+ 419,
524
+ 681
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Learning generalizable information from eigenfunctions is fundamental to their succesful usage. Here we detail important points that support it is possible to do so if done correctly. ",
531
+ "bbox": [
532
+ 176,
533
+ 696,
534
+ 823,
535
+ 726
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Similar graphs have similar spectra. Thus, we can expect the network to transfer patterns across graphs through the similarity of their spectra. In fact, spectral graph theory tells us that the lowest and largest non-zero eigenvalues are both linked to the geometry of the graph (algebraic connectivity and spectral radius). ",
542
+ "bbox": [
543
+ 174,
544
+ 731,
545
+ 825,
546
+ 786
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Eigenspaces contain geometric information. Spectral graph theory has studied the geometric and physical properties of graphs from their Laplacian eigenfunctions in depth. Developing a method that can use the full spectrum of a graph makes it theoretically possible capture this information. It us thus important to capture differences between the full eigenspaces instead of minor differences between specific eigenvalues or eigenvectors from graph to graph. ",
553
+ "bbox": [
554
+ 174,
555
+ 794,
556
+ 825,
557
+ 863
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "Learned positions are relative within graphs. Eigenspaces are used to understand the relationship between nodes within graphs, not across them. Proposed models should therefore only compare the eigenfunctions of nodes within graphs. ",
564
+ "bbox": [
565
+ 176,
566
+ 869,
567
+ 823,
568
+ 911
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "3 Model Architecture ",
575
+ "text_level": 1,
576
+ "bbox": [
577
+ 174,
578
+ 89,
579
+ 369,
580
+ 106
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "In this section, we propose an elegant architecture that can use the eigenfunctions as PEs while addressing the concerns raised in section 2.2. Our Spectral Attention Network (SAN) model inputs eigenfunctions of a graph and projects them into a learned positional encoding (LPE) of fixed size. The LPE allows the network to use up to the entire Laplace spectrum of each graph, learn how the frequencies interact, and decide which are most important for the given task. ",
587
+ "bbox": [
588
+ 174,
589
+ 122,
590
+ 825,
591
+ 191
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "We propose a two-step learning process summarized earlier in Figure 1. The first step, depicted by blocks (c-d-e) in the figure, applies a Transformer over the eigenfunctions of each node to generate an LPE matrix for each graph. The LPE is then concatenated to the node embeddings (blocks g-h), before being passed to the Graph Transformer (block i). If the task involves graph classification or regression, the final node embeddings are subsequently passed to a final pooling layer. ",
598
+ "bbox": [
599
+ 174,
600
+ 198,
601
+ 825,
602
+ 268
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "3.1 LPE Transformer Over Nodes ",
609
+ "text_level": 1,
610
+ "bbox": [
611
+ 176,
612
+ 287,
613
+ 421,
614
+ 303
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Using Laplace encodings as node features is ubiquitous in the literature concerning the topic. Here, we propose a method for learning node PEs motivated by the principles from section 2.2. The idea of our LPE is inspired by Figure 2, where the eigenvectors $\\phi$ are represented as a non-uniform sequence with the eigenvalue $\\lambda$ being the position on the frequency axis. With this representation, Transformers are a natural choice for processing them and generating a fixed-size PE. ",
621
+ "bbox": [
622
+ 174,
623
+ 314,
624
+ 825,
625
+ 383
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "The proposed LPE architecture is presented in Figure 4. First, we create an embedding matrix of size $2 \\times m$ for each node $j$ by concatenating the $m$ -lowest eigenvalues with their associated eigenvectors. Here, $m$ is a hyper-parameter for the maximum number of eigenvectors to compute and is analog to the variable-length sequence for a standard Transformer. For graphs where $m > N$ , a masked-padding is simply added. Note that to capture the entire spectrum of all graphs, one can simply select $m$ such that it is equal to the maximum number of nodes a graph has in the dataset. A linear layer is then applied on the dimension of size 2 to generate new embeddings of size $k$ . A Transformer Encoder then computes self-attention on the sequence of length $m$ and hidden dimension $k$ . Finally, a sum pooling reduces the sequence into a fixed $k$ -dimensional node embedding. ",
632
+ "bbox": [
633
+ 173,
634
+ 390,
635
+ 825,
636
+ 515
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "The LPE model addresses key limitations of previous graph Transformers and is aligned with the first four etiquettes presented in section 2.2. By concatenating the eigenvalues with the normalized eigenvector, this model directly addresses the first three etiquettes. Namely, it normalizes the eigenvectors, pairs eigenvectors with their eigenvalues and treats the number of eigenvectors as a variable. Furthermore, the model is aware of multiplicities and has the potential to linearly combine or ignore some of the repeated eigenvalues. ",
643
+ "bbox": [
644
+ 173,
645
+ 521,
646
+ 825,
647
+ 604
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "However, this method still does not address the limitation that the sign of the pre-computed eigenvectors is arbitrary. To combat this issue, we randomly flip the sign of the pre-computed eigenvectors during training as employed by previous work [15, 14], to promote invariance to the sign ambiguity. ",
654
+ "bbox": [
655
+ 174,
656
+ 611,
657
+ 825,
658
+ 654
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "image",
664
+ "img_path": "images/db1815f2d04f6f59e1b99c9323e1f509fa40804dac0fe563e0f4530eb752450e.jpg",
665
+ "image_caption": [
666
+ "Figure 4: Learned positional encoding (LPE) architectures, with the model being aware of the graph’s Laplace spectrum by considering $m$ eigenvalues and eigenvectors, where we permit $m \\leq N$ , with $N$ denoting the number of nodes. Since the Transformer loops over the nodes, each node can be viewed as an element of a batch to parallelize the computation. Here $\\phi _ { i , j }$ is the $j$ -th element of the eigenvector paired to the $i$ -th lowest eigenvalue $\\lambda _ { i }$ . "
667
+ ],
668
+ "image_footnote": [],
669
+ "bbox": [
670
+ 171,
671
+ 667,
672
+ 823,
673
+ 741
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "3.2 LPE Transformer Over Edges ",
680
+ "text_level": 1,
681
+ "bbox": [
682
+ 174,
683
+ 842,
684
+ 421,
685
+ 858
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "Here we present an alternative formulation for Laplace encodings. This method addresses the same issues as the LPE over nodes, but also resolves the eigenvector sign ambiguity. Instead of encoding absolute positions as node features, the idea is to consider relative positions encoded as edge features. ",
692
+ "bbox": [
693
+ 174,
694
+ 869,
695
+ 825,
696
+ 911
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Inspired by the physical interactions introduced in 1 and 2, we can take a pair of nodes $( j _ { 1 } , j _ { 2 } )$ and obtain sign-invariant operators using the absolute subtraction $\\lvert \\phi _ { i , j _ { 1 } } - \\bar { \\phi } _ { i , j _ { 2 } } \\rvert$ and the product $\\phi _ { i , j _ { 1 } } \\phi _ { i , j _ { 2 } }$ . These operators acknowledge that the sign of $\\phi _ { i , j _ { 1 } }$ at a given node $j _ { 1 }$ is not important, but that the relative sign between nodes $j _ { 1 }$ and $j _ { 2 }$ is important. One might argue that we could directly compute the deterministic values from equations $( 1 , 2 )$ as edge features instead. However, our goal is to construct models that can learn which frequencies to emphasize and are not biased towards the lower frequencies — despite lower frequencies being useful in many tasks. ",
703
+ "bbox": [
704
+ 173,
705
+ 90,
706
+ 825,
707
+ 189
708
+ ],
709
+ "page_idx": 6
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "This approach is only presented thoroughly in appendix A, since it suffers from a major computational bottleneck compared to the LPE over nodes. In fact, for a fully-connected graph, there are $N$ times more edges than nodes, thus the computation complexity is $\\dot { O } ( m ^ { 2 } N ^ { 2 } )$ , or $\\bar { O ( N ^ { 4 } ) }$ considering all eigenfunctions. The same limitation also affects memory and prevents the use of large batch sizes. ",
714
+ "bbox": [
715
+ 173,
716
+ 194,
717
+ 825,
718
+ 251
719
+ ],
720
+ "page_idx": 6
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "3.3 Main Graph Transformer ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 174,
728
+ 265,
729
+ 393,
730
+ 281
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "Our attention mechanism in the main Transformer is based on previous work [14], which attempts to repurpose the original Transformer to graphs by considering the graph structure and improving attention estimates with edge feature embeddings. ",
737
+ "bbox": [
738
+ 176,
739
+ 291,
740
+ 825,
741
+ 334
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "In the following, note that $h _ { i } ^ { l }$ is the $i$ -th node’s features at the $l$ -th layer, and $e _ { i j }$ is the edge feature embedding between nodes $i$ and $j$ . Our model employs multi-head attention over all nodes: ",
748
+ "bbox": [
749
+ 173,
750
+ 339,
751
+ 821,
752
+ 368
753
+ ],
754
+ "page_idx": 6
755
+ },
756
+ {
757
+ "type": "equation",
758
+ "img_path": "images/f9364f62ffa3844d60241d68113e262bf8075f405b8e4cb878fea96e0efe807d.jpg",
759
+ "text": "$$\n\\hat { \\pmb { h } } _ { i } ^ { l + 1 } = \\pmb { O } _ { h } ^ { l } \\prod _ { k = 1 } ^ { H } ( \\sum _ { j \\in V } w _ { i j } ^ { k , l } V ^ { k , l } { \\pmb { h } } _ { j } ^ { l } )\n$$",
760
+ "text_format": "latex",
761
+ "bbox": [
762
+ 385,
763
+ 371,
764
+ 611,
765
+ 416
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "where $O _ { h } ^ { l } \\in \\mathbb { R } ^ { d \\times d }$ , $V ^ { k , l } \\in \\mathbb { R } ^ { d _ { k } \\times d }$ , $H$ denotes the number of heads, $L$ the number of layers, and $| |$ concatenation. Note that $d$ is the hidden dimension, while $d _ { k }$ is the dimension of a head $\\begin{array} { r } { \\frac { d } { H } = d _ { k } \\rangle } \\end{array}$ ). ",
772
+ "bbox": [
773
+ 169,
774
+ 426,
775
+ 825,
776
+ 459
777
+ ],
778
+ "page_idx": 6
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "A key addition from our work is the design of an architecture that performs full-graph attention while preserving local connectivity with edge features via two sets of attention mechanisms: one for nodes connected by real edges in the sparse graph and one for nodes connected by added edges in the fully-connected graph. The attention weights $w _ { i j } ^ { k , l }$ in equation 3 at layer $l$ and head $k$ are given by: ",
783
+ "bbox": [
784
+ 174,
785
+ 463,
786
+ 825,
787
+ 523
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "equation",
793
+ "img_path": "images/f2fe6f521525fad25b61150be82c97261abcb811159bb6e71247147b4fdddc60.jpg",
794
+ "text": "$$\n\\begin{array} { r } { \\hat { w } _ { i j } ^ { k , l } = \\left\\{ \\begin{array} { l l } { \\frac { Q ^ { 1 , k , l } h _ { i } ^ { l } \\circ K ^ { 1 , k , l } h _ { j } ^ { l } \\circ E ^ { 1 , k , l } e _ { i j } } { \\sqrt { d _ { k } } } } & { \\mathrm { i f ~ } i \\mathrm { a n d ~ } j \\mathrm { ~ a r e ~ c o n n e c t e d ~ i n ~ s p a r s e ~ g r a p h } } \\\\ { \\frac { Q ^ { 2 , k , l } h _ { i } ^ { l } \\circ K ^ { 2 , k , l } h _ { j } ^ { l } \\circ E ^ { 2 , k , l } e _ { i j } } { \\sqrt { d _ { k } } } } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right\\} } \\\\ { w _ { i j } ^ { k , l } = \\left\\{ \\begin{array} { l l } { \\frac { 1 } { 1 + \\gamma } \\cdot \\mathrm { s o f t m a x } ( \\sum _ { d _ { k } } \\hat { w } _ { i j } ^ { k , l } ) } & { \\mathrm { i f ~ } i \\mathrm { a n d ~ } j \\mathrm { ~ a r e ~ c o n n e c t e d ~ i n ~ s p a r s e ~ g r a p h } } \\\\ { \\frac { \\gamma } { 1 + \\gamma } \\cdot \\mathrm { s o f t m a x } ( \\sum _ { d _ { k } } \\hat { w } _ { i j } ^ { k , l } ) } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right\\} } \\end{array}\n$$",
795
+ "text_format": "latex",
796
+ "bbox": [
797
+ 225,
798
+ 529,
799
+ 771,
800
+ 650
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "where $\\circ$ denotes element-wise multiplication and $Q ^ { 1 , k , l }$ , $Q ^ { 2 , k , l }$ , ${ \\pmb K } ^ { 1 , k , l }$ , $\\pmb { K } ^ { 2 , k , l }$ , $\\mathbf { \\delta } _ { E ^ { 1 , k , l } }$ , $E ^ { 2 , k , l } \\in$ $\\mathbb { R } ^ { d _ { k } \\times d }$ . $\\gamma \\in \\mathbb { R } ^ { + }$ is a hyperparameter which tunes the amount of bias towards full-graph attention, allowing flexibility of the model to different datasets and tasks where the necessity to capture longrange dependencies may vary. Note that softmax outputs are clamped between $- 5$ and 5 for numerical stability and that the keys, queries and edge projections are different for pairs of connected nodes $( Q ^ { 1 } , \\dot { K ^ { 1 } } , E ^ { 1 } )$ and disconnected nodes $( Q ^ { \\tilde { 2 } } , \\dot { K } ^ { 2 } , E ^ { 2 } )$ . ",
807
+ "bbox": [
808
+ 173,
809
+ 659,
810
+ 826,
811
+ 744
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "A multi-layer perceptron (MLP) with residual connections and normalization layers are then applied to update representations, in the same fashion as the GT method [14]. ",
818
+ "bbox": [
819
+ 173,
820
+ 750,
821
+ 821,
822
+ 777
823
+ ],
824
+ "page_idx": 6
825
+ },
826
+ {
827
+ "type": "equation",
828
+ "img_path": "images/5a0e7db9212a629d2cb3573b11c3f152e9633257acc1cf14f57d83c349e3bbb5.jpg",
829
+ "text": "$$\n\\begin{array} { r } { \\hat { \\hat { h } } ^ { l + 1 } = \\operatorname { N o r m } ( h _ { i } ^ { l } + \\hat { h } _ { i } ^ { l + 1 } ) , \\quad \\hat { \\hat { h } } _ { i } ^ { l + 1 } = W _ { 2 } ^ { l } \\operatorname { R e L U } ( W _ { 1 } ^ { l } \\hat { \\hat { h } } _ { i } ^ { l + 1 } ) , \\quad h _ { i } ^ { l + 1 } = \\operatorname { N o r m } ( \\hat { \\hat { h } } ^ { l + 1 } + \\hat { \\hat { h } } _ { i } ^ { l + 1 } ) } \\end{array}\n$$",
830
+ "text_format": "latex",
831
+ "bbox": [
832
+ 186,
833
+ 776,
834
+ 790,
835
+ 803
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "with the weight matrices $W _ { 1 } ^ { l } \\in \\mathbb { R } ^ { 2 d \\times d }$ , $W _ { 2 } ^ { l } \\in \\mathbb { R } ^ { d \\times 2 d }$ . Edge representations are not updated as it adds complexity with little to no performance gain. Bias terms are omitted for presentation. ",
842
+ "bbox": [
843
+ 174,
844
+ 811,
845
+ 826,
846
+ 843
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "3.4 Limitations ",
853
+ "text_level": 1,
854
+ "bbox": [
855
+ 174,
856
+ 857,
857
+ 294,
858
+ 872
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "The first limitation of the node-wise LPE, and noted in Table 1 is the lack of sign invariance of the model. A random sign-flip of an eigenvector can produce different outputs for the LPE, meaning that the model needs to learn a representation invariant to these flips. We resolve this issue with the edge-wise LPE proposed in 3.2, but it comes at a computational cost. ",
865
+ "bbox": [
866
+ 173,
867
+ 882,
868
+ 823,
869
+ 912
870
+ ],
871
+ "page_idx": 6
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "",
876
+ "bbox": [
877
+ 171,
878
+ 90,
879
+ 823,
880
+ 119
881
+ ],
882
+ "page_idx": 7
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Another limitation of the approach is the computational complexity of the LPE being $O ( m ^ { 2 } N )$ , or $O ( N ^ { 3 } )$ if considering all eigenfunctions. Further, as nodes are batched in the LPE, the total memory on the GPU will be num_params \\* num_nodes_in_batch instead of num_params $^ *$ batch_size. Although this is limiting, the LPE is not parameter hungry, with $k$ usually kept around 16. Most of the model’s parameters are in the Main Graph Transformer of complexity $O ( \\bar { N } ^ { 2 } )$ . ",
887
+ "bbox": [
888
+ 174,
889
+ 126,
890
+ 825,
891
+ 195
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Despite Transformers having increased complexity, they managed to revolutionalize the NLP community. We argue that to shift away from the message-passing paradigm and generalize Transformers to graphs, it is natural to expect higher computational complexities. This is exacerbated by sequences being much simpler to understand than graphs due to their linear structure. Future work could overcome this by using variations of Transformers that scale linearly or logarithmically [34]. ",
898
+ "bbox": [
899
+ 174,
900
+ 202,
901
+ 825,
902
+ 271
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "3.5 Theoretical properties of the architecture ",
909
+ "text_level": 1,
910
+ "bbox": [
911
+ 176,
912
+ 304,
913
+ 498,
914
+ 319
915
+ ],
916
+ "page_idx": 7
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Due to the full connectivity, it is trivial that our model does not suffer from the same limitations in expressivity as its convolutional/message-passing counterpart. ",
921
+ "bbox": [
922
+ 176,
923
+ 337,
924
+ 821,
925
+ 364
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "WL test and universality. The DGN paper [4] showed that using the eigenvector $\\phi _ { 1 }$ is enough to distinguish some non-isomorphic graphs indistinguishable by the 1-WL test. ",
932
+ "bbox": [
933
+ 176,
934
+ 371,
935
+ 820,
936
+ 398
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Given that our model uses the full set of eigenfunctions, and given enough parameters, our model can distinguish any pair of non-isomorphic graphs and is more powerful than any WL test in that regard. However, this does not solve the graph isomorphism problem in polynomial time; it only approximates a solution, and the number of parameters required is unknown and possibly non-polynomial. In appendix C, we present a proof of our statement, and discuss why the WL test is not well suited to study the expressivity of graph Transformers due to their universality. ",
943
+ "bbox": [
944
+ 174,
945
+ 405,
946
+ 825,
947
+ 488
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Reduced over-squashing. Over-squashing represents the difficulty of a graph neural network to pass information to distant neighbours due to the exponential blow-up in computational paths [1]. ",
954
+ "bbox": [
955
+ 176,
956
+ 494,
957
+ 820,
958
+ 523
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "For the fully-connected network, it is trivial to see that over-squashing is non-existent since there are direct paths between distant nodes. ",
965
+ "bbox": [
966
+ 174,
967
+ 529,
968
+ 821,
969
+ 558
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Physical interactions. Another point to consider is the ability of the network to learn physical interactions between nodes. This is especially important when the graph models physical, chemical, or biological structures, but can also help understanding pixel interaction in images [2, 3]. Here, we argue that our SAN model, which uses the Laplace spectrum more effectively, can learn to mimic the physical interactions presented in section 2.1.2. This contrasts with the convolutional approach that requires deep layers for the receptive field to capture long-distance interactions. It also contrasts with the GT model [14], which does not use eigenvalues or enough eigenfunctions to properly model physical interactions in early layers. However, due to the lack of sign-invariance in the proposed node-wise LPE, it is difficult to learn these interactions accurately. The edge-wise LPE (section 3.2) could be better suited for the problem, but it suffers from higher computational complexity. ",
976
+ "bbox": [
977
+ 174,
978
+ 563,
979
+ 825,
980
+ 702
981
+ ],
982
+ "page_idx": 7
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "4 Experimental Results ",
987
+ "text_level": 1,
988
+ "bbox": [
989
+ 174,
990
+ 738,
991
+ 385,
992
+ 756
993
+ ],
994
+ "page_idx": 7
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "The model is implemented in PyTorch [31] and DGL [38] and tested on established benchmarks from [15] and [21] provided under MIT license. Specifically, we applied our method on ZINC, PATTERN, CLUSTER, MolHIV and MolPCBA, while following their respective training protocols with minor changes, as detailed in the appendix B.1. The computation time and hardware is provided in appendix B.4. ",
999
+ "bbox": [
1000
+ 174,
1001
+ 779,
1002
+ 825,
1003
+ 848
1004
+ ],
1005
+ "page_idx": 7
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "We first conducted an ablation study to fairly compare the benefits of using full attention and/or the node LPE. We then took the best-performing model, tuned some of its hyperparameters, and matched it up against the current state-of-the-art methods. Since we use a similar attention mechanism, our code was developed on top of the code from the GT paper [14], provided under the MIT license. ",
1010
+ "bbox": [
1011
+ 174,
1012
+ 856,
1013
+ 823,
1014
+ 911
1015
+ ],
1016
+ "page_idx": 7
1017
+ },
1018
+ {
1019
+ "type": "image",
1020
+ "img_path": "images/d5bbaf77fda3e2b0ff6f576a445dfc5384bfb1722dab6d7b4851bc2e2612da69.jpg",
1021
+ "image_caption": [
1022
+ "Figure 5: Effect of the $\\gamma$ parameter on the performance across datasets from [15, 21], using the Node LPE. Dotted black lines indicate sparse attention, which is equivalent to setting $\\gamma = 0$ . Each box plot consists of 4 runs, with different seeds (except MolHIV). "
1023
+ ],
1024
+ "image_footnote": [],
1025
+ "bbox": [
1026
+ 227,
1027
+ 79,
1028
+ 767,
1029
+ 207
1030
+ ],
1031
+ "page_idx": 8
1032
+ },
1033
+ {
1034
+ "type": "table",
1035
+ "img_path": "images/fde69eca3ab0ab9a3b0a89a16d6b2f51ea24e8fec0901fc2b4a21c32fd06d366.jpg",
1036
+ "table_caption": [],
1037
+ "table_footnote": [],
1038
+ "table_body": "<table><tr><td rowspan=1 colspan=2>Model details</td><td rowspan=1 colspan=1>ZINC</td><td rowspan=1 colspan=1>PATTERN</td><td rowspan=1 colspan=1>CLUSTER</td><td rowspan=1 colspan=1>MOLHIV</td><td rowspan=6 colspan=2>BestWorst</td></tr><tr><td rowspan=1 colspan=1>AttentionLPE</td><td rowspan=1 colspan=1>LPE</td><td rowspan=1 colspan=1>MAE</td><td rowspan=1 colspan=1>% ACC</td><td rowspan=1 colspan=1>%ACC</td><td rowspan=1 colspan=1>% ROC-AUC</td><td rowspan=5 colspan=1></td><td rowspan=5 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Sparse</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>0.267±0.032</td><td rowspan=1 colspan=1>83.613 ±0.663</td><td rowspan=1 colspan=1>75.683±0.098</td><td rowspan=1 colspan=1>73.46±0.71</td></tr><tr><td rowspan=1 colspan=1>Sparse</td><td rowspan=1 colspan=1>Node</td><td rowspan=1 colspan=1>0.198±0.004</td><td rowspan=1 colspan=1>81.329±2.150</td><td rowspan=1 colspan=1>75.738 ±0.106</td><td rowspan=1 colspan=1>76.61±0.62</td></tr><tr><td rowspan=1 colspan=1>Full</td><td rowspan=1 colspan=1>:</td><td rowspan=1 colspan=1>0.392 ±0.055</td><td rowspan=1 colspan=1>86.322±0.049</td><td rowspan=1 colspan=1>76.447±0.177</td><td rowspan=1 colspan=1>73.84± 1.80</td></tr><tr><td rowspan=1 colspan=1>Full</td><td rowspan=1 colspan=1>Node</td><td rowspan=1 colspan=1>0.157±0.006</td><td rowspan=1 colspan=1>86.441±0.040</td><td rowspan=1 colspan=1>76.691±0.247</td><td rowspan=1 colspan=1>77.57 ±0.61</td></tr></table>",
1039
+ "bbox": [
1040
+ 236,
1041
+ 263,
1042
+ 748,
1043
+ 332
1044
+ ],
1045
+ "page_idx": 8
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Figure 6: Ablation study on datasets from [15, 21] for the node LPE and full graph attention, with no hyperparameter tuning other than $\\gamma$ taken from Figure 5. For a given dataset, all models use the same hyperparameters, but the hidden dimensions are adjusted to have $\\sim 5 0 0 k$ learnable parameters. Means and uncertainties are derived from four runs, with different seeds (except MolHIV). ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 339,
1053
+ 826,
1054
+ 395
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "4.1 Sparse vs. Full Attention ",
1061
+ "text_level": 1,
1062
+ "bbox": [
1063
+ 174,
1064
+ 420,
1065
+ 385,
1066
+ 435
1067
+ ],
1068
+ "page_idx": 8
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "To study the effect of incorporating full attention, we present an ablation study of the $\\gamma$ parameter in Figure 5. We remind readers that $\\gamma$ is used in equation 5 to balance between sparse and full attention. Setting $\\gamma = 0$ strictly enables sparse attention, while $\\gamma = 1$ does not bias the model in any direction. ",
1073
+ "bbox": [
1074
+ 174,
1075
+ 448,
1076
+ 825,
1077
+ 489
1078
+ ],
1079
+ "page_idx": 8
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "It is apparent that molecular datasets, namely ZINC and MOLHIV, benefit less from full attention, with the best parameter being $\\log { \\gamma } \\in ( - 7 , - 5 )$ . On the other hand, the larger SBM datasets (PATTERN and CLUSTER) benefit from a higher $\\gamma$ value. This can be explained by the fact that molecular graphs rely more on understanding local structures such as the presence of rings and specific bonds, especially in the artificial task from ZINC which relies on counting these specific patterns [15]. Furthermore, molecules are generally smaller than SBMs. As a result, we would expect less need for full attention, as information between distant nodes can be propagated with few iterations of even sparse attention. We also expect molecules to have fewer multiplicities, thus reducing the space of eigenvectors. Lastly, the performance gains in using full attention on the CLUSTER dataset can be attributed to it being a semi-supervised task, where some nodes within each graph are assigned their true labels. With full attention, every node receives information from the labeled nodes at each iteration, reinforcing confidence about the community they belong to. ",
1084
+ "bbox": [
1085
+ 174,
1086
+ 496,
1087
+ 825,
1088
+ 662
1089
+ ],
1090
+ "page_idx": 8
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "In Figure 6, we present another ablation study to measure the impact of the node LPE in both the sparse and full architectures. We observe that the proposed node-wise LPE contributes significantly to the performance for molecular tasks (ZINC and MOLHIV), and believe that it can be attributed to the detection of substructures (see Figure 3). For PATTERN and CLUSTER, the improvement is modest as the tasks are simple clustering [15]. Previous work even found that the optimal number of eigenvectors to construct PE for PATTERN is only 2 [14]. ",
1095
+ "bbox": [
1096
+ 174,
1097
+ 669,
1098
+ 825,
1099
+ 752
1100
+ ],
1101
+ "page_idx": 8
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "4.2 Comparison to the state-of-the-art ",
1106
+ "text_level": 1,
1107
+ "bbox": [
1108
+ 176,
1109
+ 773,
1110
+ 450,
1111
+ 787
1112
+ ],
1113
+ "page_idx": 8
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "When comparing to the state-of-the-art (SOTA) models in the literature in Figure 7, we observe that our SAN model consistently performs better on all synthetic datasets from [15], highlighting the strong expressive power of the model. On the MolHIV dataset, the performance on the test set is slightly lower than the SOTA. However, the model performs better on the validation set $( 8 5 . 3 0 \\% )$ in comparison to PNA $( 8 4 . 2 5 \\% )$ and DGN $( 8 4 . 7 0 \\% )$ . This can be attributed to a well-known issue with this dataset: the validation and test metrics have low correlation. In our experiments, we found higher test results with lower validation scores when restricting the number of epochs. Here, we also included results on the MolPCBA dataset, where we witnessed competitive results as well. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 800,
1121
+ 825,
1122
+ 911
1123
+ ],
1124
+ "page_idx": 8
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Other top-performing models, namely PNA [11] and DGN [4], use a message-passing approach [17] with multiple aggregators. When compared to attention-based models, SAN consistently outperforms the SOTA by a wide margin. To the best of our knowledge, SAN is the first fully-connected model to perform well on graph tasks, as is evident by the poor performance of the GT (full) model. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 90,
1132
+ 825,
1133
+ 147
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "image",
1139
+ "img_path": "images/93b1105e11e1e554e1b6c09555f02af64ce0f2dd31b0d13d2087ec29687349b9.jpg",
1140
+ "image_caption": [],
1141
+ "image_footnote": [],
1142
+ "bbox": [
1143
+ 738,
1144
+ 213,
1145
+ 810,
1146
+ 327
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "image",
1152
+ "img_path": "images/6044e1c2c1c58edc9537adb666ceec63206f09bcdef5ed386de81fa68b83196d.jpg",
1153
+ "image_caption": [
1154
+ "Figure 7: Comparing our tuned model on datasets from [15, 21], against GCN [25], GraphSage [18], GIN [39], GAT [37], GatedGCN [5], PNA [11], and DGN [4]. Means and uncertainties are derived from four runs with different seeds, except MolHIV which uses 10 runs with identical seed. The number of parameters is fixed to $\\sim 5 0 0 k$ for ZINC, PATTERN and CLUSTER. "
1155
+ ],
1156
+ "image_footnote": [],
1157
+ "bbox": [
1158
+ 176,
1159
+ 161,
1160
+ 763,
1161
+ 378
1162
+ ],
1163
+ "page_idx": 9
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "5 Conclusion ",
1168
+ "text_level": 1,
1169
+ "bbox": [
1170
+ 174,
1171
+ 469,
1172
+ 299,
1173
+ 488
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "In summary, we presented the SAN model for graph neural networks, a new Transformer-based architecture that is aware of the Laplace spectrum of a given graph from the learned positional encodings. The model was shown to perform on par or better than the SOTA on multiple benchmarks and outperforms other Attention-based models by a large margin. As is often the case with Transformers, the current model suffers from a computational bottleneck, and we leave it for future work to implement variations of Transformers that scale linearly or logarithmically. This will enable the edge-wise LPE presented in appendix A, a theoretically more powerful version of the SAN model. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 502,
1183
+ 825,
1184
+ 599
1185
+ ],
1186
+ "page_idx": 9
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Societal Impact. The presented work is focused on theoretical and methodological improvements to graph neural networks, so there are limited direct societal impacts. However, indirect negative impacts could be caused by malicious applications developed using the algorithm. One such example is the tracking of people on social media by representing their interaction as graphs, thus predicting and influencing their behavior towards an external goal. It also has an environmental impact due to the greater energy use that arises from the computational cost $O ( m ^ { 2 } N + N ^ { 2 } )$ being larger than standard message passing or convolutional approaches of $O ( E )$ . ",
1191
+ "bbox": [
1192
+ 174,
1193
+ 606,
1194
+ 825,
1195
+ 703
1196
+ ],
1197
+ "page_idx": 9
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Funding Disclosure. ",
1202
+ "text_level": 1,
1203
+ "bbox": [
1204
+ 174,
1205
+ 709,
1206
+ 313,
1207
+ 724
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Devin Kreuzer is supported by an NSERC grant. ",
1214
+ "bbox": [
1215
+ 176,
1216
+ 729,
1217
+ 490,
1218
+ 744
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "References ",
1225
+ "text_level": 1,
1226
+ "bbox": [
1227
+ 174,
1228
+ 766,
1229
+ 266,
1230
+ 781
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "[1] Uri Alon and Eran Yahav. On the bottleneck of graph neural networks and its practical implications. arXiv:2006.05205 [cs, stat], 2020. \n[2] Dominique Beaini, Sofiane Achiche, Alexandre Duperré, and Maxime Raison. Deep green function convolution for improving saliency in convolutional neural networks. The Visual Computer, 37(2):227–244, 2020. \n[3] Dominique Beaini, Sofiane Achiche, and Maxime Raison. Improving convolutional neural networks via conservative field regularisation and integration. \n[4] Dominique Beaini, Saro Passaro, Vincent Létourneau, William L. Hamilton, Gabriele Corso, and Pietro Liò. Directional graph networks. ICML2021, 2021. \n[5] Xavier Bresson and Thomas Laurent. Residual gated graph convnets. arXiv preprint arXiv:1711.07553, 2017. \n[6] Michael M. Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017. \n[7] F. Cajori. A History of Mathematics. AMS Chelsea Publishing Series. AMS Chelsea, 1999. \n[8] Heng Chang, Yu Rong, Tingyang Xu, Wenbing Huang, Somayeh Sojoudi, Junzhou Huang, and Wenwu Zhu. Spectral graph attention network. CoRR, abs/2003.07450, 2020. \n[9] Fan Chung and S. T. Yau. Discrete green’s functions. Journal of Combinatorial Theory, Series A, 91(1):191–214, 2000. \n[10] Ronald R. Coifman and Stéphane Lafon. Diffusion maps. Applied and Computational Harmonic Analysis, 21(1):5–30, 2006. Special Issue: Diffusion Maps and Wavelets. \n[11] Gabriele Corso, Luca Cavalleri, Dominique Beaini, Pietro Liò, and Petar Velickovi ˇ c. Principal ´ neighbourhood aggregation for graph nets. arXiv preprint arXiv:2004.05718, 2020. \n[12] Luca Cosmo, Mikhail Panine, Arianna Rampini, Maks Ovsjanikov, Michael M. Bronstein, and Emanuele Rodola. Isospectralization, or how to hear shape, style, and correspondence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[13] Yushun Dong, Kaize Ding, Brian Jalaian, Shuiwang Ji, and Jundong Li. Graph neural networks with adaptive frequency response filter. CoRR, abs/2104.12840, 2021. \n[14] Vijay Prakash Dwivedi and Xavier Bresson. A generalization of transformer networks to graphs, 2020. \n[15] Vijay Prakash Dwivedi, Chaitanya K Joshi, Thomas Laurent, Yoshua Bengio, and Xavier Bresson. Benchmarking graph neural networks. arXiv preprint arXiv:2003.00982, 2020. \n[16] Richard Phillips Feynman, Robert Benjamin Leighton, and Matthew Sands. The Feynman lectures on physics; New millennium ed. Basic Books, New York, NY, 2010. Originally published 1963-1965. \n[17] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1263–1272. JMLR. org, 2017. \n[18] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in neural information processing systems, pages 1024–1034, 2017. \n[19] William L. Hamilton. Graph Representation Learning. Morgan and Claypool, 2020. \n[20] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. \n[21] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. arXiv preprint arXiv:2005.00687, 2020. \n[22] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. arXiv:1802.04364 [cs, stat], 2018. \n[23] Mark Kac. Can one hear the shape of a drum? The American Mathematical Monthly, 73(4):1, 1966. \n[24] Anees Kazi, Luca Cosmo, Nassir Navab, and Michael Bronstein. Differentiable graph module (dgm) graph convolutional networks. arXiv preprint arXiv:2002.04999, 2020. \n[25] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. \n[26] B. Levy. Laplace-beltrami eigenfunctions towards an algorithm that \"understands\" geometry. In IEEE International Conference on Shape Modeling and Applications 2006 (SMI’06), pages 13–13, 2006. \n[27] Pan Li, Yanbang Wang, Hongwei Wang, and Jure Leskovec. Distance encoding: Design provably more powerful neural networks for graph representation learning, 2020. \n[28] Yaron Lipman, Raif M. Rustamov, and Thomas A. Funkhouser. Biharmonic distance. ACM Trans. Graph., 29(3), July 2010. \n[29] Haggai Maron, Heli Ben-Hamu, Hadar Serviansky, and Yaron Lipman. Provably powerful graph networks. arXiv preprint arXiv:1905.11136, 2019. \n[30] Christopher Morris, Martin Ritzert, Matthias Fey, William L Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4602–4609, 2019. \n[31] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. \n[32] Emanuele Rodolà, Luca Cosmo, Michael M. Bronstein, Andrea Torsello, and Daniel Cremers. Partial functional correspondence, 2015. \n[33] Joshua Schrier. Can one hear the shape of a molecule (from its coulomb matrix eigenvalues)? Journal of Chemical Information and Modeling, 60(8):3804–3811, 2020. Publisher: American Chemical Society. \n[34] Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey, 2020. \n[35] Edwin R. van Dam and Willem H. Haemers. Which graphs are determined by their spectrum? Linear Algebra and its Applications, 373:241–272, 2003. \n[36] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, abs/1706.03762, 2017. \n[37] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017. \n[38] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang. Deep graph library: A graph-centric, highly-performant package for graph neural networks. arXiv preprint arXiv:1909.01315, 2019. \n[39] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? arXiv preprint arXiv:1810.00826, 2018. \n[40] Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv Kumar. Are transformers universal approximators of sequence-to-sequence functions?, 2020. \n[41] Chulhee Yun, Yin-Wen Chang, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi, and Sanjiv Kumar. $\\$ 0( n )5$ connections are expressive enough: Universal approximability of sparse transformers. CoRR, abs/2006.04862, 2020. \n[42] Seongjun Yun, Minbyul Jeong, Raehyun Kim, Jaewoo Kang, and Hyunwoo J. Kim. Graph transformer networks, 2020. ",
1237
+ "bbox": [
1238
+ 181,
1239
+ 790,
1240
+ 826,
1241
+ 911
1242
+ ],
1243
+ "page_idx": 9
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "",
1248
+ "bbox": [
1249
+ 169,
1250
+ 34,
1251
+ 828,
1252
+ 917
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "",
1259
+ "bbox": [
1260
+ 169,
1261
+ 80,
1262
+ 828,
1263
+ 920
1264
+ ],
1265
+ "page_idx": 11
1266
+ }
1267
+ ]
parse/train/huAdB-Tj4yG/huAdB-Tj4yG_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/huAdB-Tj4yG/huAdB-Tj4yG_model.json ADDED
The diff for this file is too large to render. See raw diff