ZHANGYUXUAN-zR commited on
Commit
85b86e9
·
verified ·
1 Parent(s): de2b39e

Add files using upload-large-folder tool

Browse files
parse/train/Drynvt7gg4L/Drynvt7gg4L_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJgZrsC5t7/HJgZrsC5t7_content_list.json ADDED
@@ -0,0 +1,1595 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "IMPROVING ON-POLICY LEARNING WITH STATISTICAL REWARD ACCUMULATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 671,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Deep reinforcement learning has obtained significant breakthroughs in recent years. Most methods in deep-RL achieve good results via the maximization of the reward signal provided by the environment, typically in the form of discounted cumulative returns. Such reward signals represent the immediate feedback of a particular action performed by an agent. However, tasks with sparse reward signals are still challenging to on-policy methods. In this paper, we introduce an effective characterization of past reward statistics (which can be seen as long-term feedback signals) to supplement this immediate reward feedback. In particular, value functions are learned with multi-critics supervision, enabling complex value functions to be more easily approximated in on-policy learning, even when the reward signals are sparse. We also introduce a novel exploration mechanism called “hot-wiring” that can give a boost to seemingly trapped agents. We demonstrate the effectiveness of our advantage actor multi-critic (A2MC) method across the discrete domains in Atari games as well as continuous domains in the MuJoCo environments. A video demo is provided at https://youtu.be/zBmpf3Yz8tc and source codes will be made available upon paper acceptance. ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 766,
44
+ 489
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 516,
55
+ 334,
56
+ 532
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Advances in deep learning have mobilized the research community to adopt deep reinforcement learning (RL) agents for challenging control problems, typically in complex environments with raw sensory state-spaces. Breakthroughs by Mnih et al. (2015) show RL-agents can reach abovehuman performance in Atari 2600 games, and AlphaGo Zero Silver et al. (2017) becomes the world champions on the game of Go. Still, training RL agents is non-trivial. Off-policy methods typically require days of training to obtain competitive performance, while on-policy methods could be trapped in local minima. Recent techniques featuring on-policy learning Mnih et al. (2016); Schulman et al. (2017); Wu et al. (2017) have shown promising results in stabilizing the learning processes, enabling an agent to solve a variety of tasks in much less time. In particular, the state-of-the-art on-policy ACKTR agent by Wu et al. (2017) shows improved sample efficiency with the help of Kronecker-factored (K-Fac) approximate curvature for natural gradient updates, resulting in stable and effective model updates towards a more promising direction. ",
63
+ "bbox": [
64
+ 174,
65
+ 547,
66
+ 825,
67
+ 714
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "However, tasks with sparse rewards remain challenging to on-policy methods. An agent could take massive amount of exploration before reaching non-zero rewards; and as the agent learns on-policy, the sparseness of reward feedback (receiving all-zero rewards from most actions performed by the agent) could be malicious and render an agent to falsely predict all states in an environment towards a value of zero. As there does not exist a universal criterion for measuring “task sparseness”, we show an ad-hoc metric in Figure 1 in an attempt to provide intuition. For example, we observe that the ACKTR agent is unable to receive sufficient non-zero immediate rewards that can provide instructive agent updates in Atari games “Freeway” and “Enduro”, resulting in failures when solving these two games. Moreover, if ACKTR gets drawn to and trapped in unfavorable states (as in games like Boxing and WizardOfWor), it could again take long hours of exploration before the agent can get out of the local minima. Such evidence shows that on-policy agent could indeed suffer from the insufficiencies of guidance provided by the exclusive immediate reward signals from the environment. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 825,
78
+ 888
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we introduce an effective auxiliary reward signal in tasks with sparse rewards to remedy the deficiencies of learning purely from standard immediate reward feedbacks. As on-policy agents may take many explorations before reaching non-zero immediate rewards, we argue that we can leverage past reward statistics to provide more instructive feedbacks to agents in the same environment. To this end, we propose to characterize the past reward statistics in order to gauge the “long-term” performance of an agent (detailed in Section 4). After performing an action, an agent will receive a long-term reward signal describing its past performance upon this step, as well as the conventional immediate reward from the environment. To effectively characterize the long-term performance of the agent, we take into considerations both the crude amount of rewards and the volatility of rewards received in the past, where highly volatile distributions of long-term rewards are explicitly penalized. This enables complex value functions to be more easily approximated in multi-critics supervision. We find in practice that by explicitly penalizing highly volatile long-term rewards while maximizing the expectation of short-term rewards, the learning process and the overall performance are improved regarding both sample efficiency and final rewards. We further propose a “hot-wiring” exploration mechanism that can boost seemingly trapped agent in the earlier stage of learning. By leveraging the characterization of long/short-term reward statistics, our proposed advantage actor multi-critic model (A2MC) shows significantly improved performance on the Atari 2600 games and the MuJoCo tasks as compared to the state-of-the-art on-policy methods. ",
85
+ "bbox": [
86
+ 174,
87
+ 895,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/cd753a39ce5a48461924628e1e3afe7243006032133b48f3e336125002681ed3.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Performance of A2MC on Atari games trained with 15 million timesteps. Our method has a winning rate of $5 5 . 3 \\%$ among all the Atari games tested, as compared to the ACKTR. Our A2MC learns quickly in some of the hardest games for on-policy methods, such as “Boxing”, “Enduro”, “Freeway”, “Robotank” and “WizardOfWor”. The sparseness of a game is defined as the sparseness of average rewards $\\mathbf { x }$ obtained by ACKTR within the first $n = 1 0 ^ { 6 }$ timesteps by $\\begin{array} { r } { \\varphi ( \\mathbf { x } ) ^ { \\mathbf { \\tilde { \\alpha } } } = \\left( \\sqrt { n } - \\frac { \\| \\mathbf { x } \\| _ { 1 } } { \\| \\mathbf { x } \\| _ { 2 } } \\right) \\tilde { \\mathbf { \\alpha } } ( \\sqrt { n } - 1 ) } \\end{array}$ . A higher value of sparseness indicates sparser rewards. A relative performance margin (in terms of final reward) larger than $1 0 \\%$ is deemed as winning / losing. The shaded region denotes the standard deviation over 2 random seeds. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 184,
102
+ 108,
103
+ 805,
104
+ 332
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 173,
113
+ 491,
114
+ 825,
115
+ 714
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "2 RELATED WORK ",
122
+ "text_level": 1,
123
+ "bbox": [
124
+ 176,
125
+ 737,
126
+ 344,
127
+ 753
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Reward shaping and pseudo-rewards: To tackle the challenge in tasks with rarely observed rewards, pseudo-rewards maximization is adopted in earlier works Konidaris & Barto (2009); Silver & Ciosek (2012). Auxiliary vision tasks (e.g., learning pixel changes or network features) are adopted in the off-policy UNREAL agent Jaderberg et al. (2016) in order to facilitate learning better feature representations, particularly for sparse reward environments. Another direction of effort involves directly engineering a better reward function or shaping the reward signal. Andrychowicz et al. (2017) enhances off-policy learning by re-producing informative reward in hindsight for sequences of actions that do not lead to success previously. The HRA approach Van Seijen et al. (2017) exploits domain knowledge to define a set of environment-specific rewards based on reward categories. And the winning approach that learns playing “Doom” Lample & Chaplot (2017) shows promising success in the FPS game that carefully crafting the task rewards would indeed be beneficial. In contrast to heuristically defining vision-related auxiliary tasks, our proposed A2MC agent learns from the characterization of intrinsic past reward statistics obtainable from any environment; and different from the hybrid architecture pertaining to Ms. Pacman only and the reward shaping settings tailored specifically to ”Doom”, our proposed reward characterization mechanism is generic and our A2MC generalizes well to a variety of tasks without the need to engineer a decomposition of problemspecific environment rewards. Moreover, the capability of the proposed method to further boost reward shaping is evidenced in our case study on playing Doom (see Appendix F). ",
134
+ "bbox": [
135
+ 174,
136
+ 770,
137
+ 825,
138
+ 924
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "",
145
+ "bbox": [
146
+ 174,
147
+ 103,
148
+ 825,
149
+ 202
150
+ ],
151
+ "page_idx": 2
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Multi-agents: The multi-agent approaches Lanctot et al. (2017); Lowe et al. (2017); Jin et al. (2018) present another promising direction for learning. They propose to train multiple agents in parallel when solving a task, and to combine multiple action-value functions with a centralized action-value function. The multi-critics supervision in our proposed A2MC model can be seen as a form of joint-task or multi-task learning Teh et al. (2017) for both long-term and short-term rewards. ",
156
+ "bbox": [
157
+ 174,
158
+ 208,
159
+ 825,
160
+ 279
161
+ ],
162
+ "page_idx": 2
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "On-policy v.s. Off-policy: Our empirical results based on learning the characterization of long/shortterm reward statistics also echo the effectiveness of a recently proposed off-policy reinforcement learning framework Bellemare et al. (2017) that features a distributional variant of Q-learning, wherein the value functions are learned to match the distribution of standard immediate returns. Also, Wang et al. (2016) shows that applying experience replay to on-policy methods can further enhance learning stability. Schulman et al. (2016) proposes a variant of advantage function using eligibility traces that provides both low-variance and low-bias gradient estimates. These works are orthogonal to our approach can potentially be combined with the proposed characterization of past reward statistics to further enhance learning performance. While our extensive experiments (see also Appendix E and Appendix F) show promising results of our approach in both on- and off-policy frameworks, we focus on “on-policy” methods (i.e., those that do not involve off-policy trajectories or experience replay) as in $\\mathrm { W u }$ et al. (2017) in the main text in order to systematically evaluate the potential of our proposed reward mechanism within the scope of this work. ",
167
+ "bbox": [
168
+ 174,
169
+ 285,
170
+ 825,
171
+ 465
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "3 PRELIMINARY ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 176,
181
+ 488,
182
+ 323,
183
+ 503
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Consider the standard reinforcement learning setting where an agent interacts with an environment over a number of discrete time step. At each time step $t$ , the agent receives an environment state $s _ { t }$ , then executes an action $a _ { t }$ based on policy $\\pi _ { t }$ . The environment produces reward $r _ { t }$ and next state $s _ { t + 1 }$ , according to which the agent gets feedback of its immediate action and will decide its next action $a _ { t + 1 }$ . The process $< { \\bf S } , { \\bf A } , { \\bf R } , { \\bf S } >$ , typically considered as a Markov Decision Process, continues until a terminal state $s _ { T }$ upon which the environment resets itself and produces a new episode. Under conventional settings, the return is calculated as the discounted summation of rewards $r _ { t }$ accumulated from time step $t$ onwards $\\begin{array} { r } { R _ { t } = \\sum _ { k = 0 } ^ { \\infty } \\gamma ^ { k } r _ { t + k } } \\end{array}$ . The goal of the agent is to maximize the expected return from each state $s _ { t }$ while following policy $\\pi$ . Each policy has a corresponding action-value function defined as $Q ^ { \\pi } ( s , a ) = \\mathbb { E } [ R _ { t } | s _ { t } = s , a _ { t } = a ; \\pi ]$ . Similarly, each state $s \\in S$ under policy $\\pi$ has a value function defined as: $V ^ { \\pi } ( s ) = \\mathbb { E } [ R _ { t } | s _ { t } = s ]$ . In value-based approaches (e.g., Q-learning Mnih et al. (2015)), function approximator $Q ( s , a ; \\theta )$ can be used to approximate the optimal action value function $Q ^ { * } ( s , a )$ . This is conventionally learned by iteratively minimizing the below loss function: ",
190
+ "bbox": [
191
+ 173,
192
+ 520,
193
+ 826,
194
+ 715
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "equation",
200
+ "img_path": "images/bdd934fbecb0d5427ee4d48f6748c5378952e4782dc12219900f950e1a877213.jpg",
201
+ "text": "$$\nL ( \\theta ) = \\mathbb { E } [ ( y _ { t } ^ { t a r g e t } - Q ( s _ { t } , a _ { t } ; \\theta ) ) ^ { 2 } ] ,\n$$",
202
+ "text_format": "latex",
203
+ "bbox": [
204
+ 375,
205
+ 715,
206
+ 619,
207
+ 734
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "where ytargett = rt + γ maxa0 Q(st+1, a0; θ) and st+1 is the next state following state st. ",
214
+ "bbox": [
215
+ 171,
216
+ 741,
217
+ 758,
218
+ 757
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "In policy-based approaches (e.g., policy gradient methods), the optimal policy $\\pi ^ { * } ( a | s )$ is approximated using the approximator $\\pi ( a | s ; \\theta )$ . The policy approximator is then learned by gradient ascent on $\\nabla _ { \\boldsymbol { \\theta } } \\mathbb { E } [ h _ { t } ] \\approx \\dot { \\nabla _ { \\boldsymbol { \\theta } } } \\log \\pi ( a _ { t } | s _ { t } ; \\boldsymbol { \\theta } ) \\dot { R } _ { t }$ . The REINFORCE method Williams (1992) further incorporates a baseline $b ( s _ { t } )$ to reduce the variance of the gradient estimator: $\\nabla _ { \\theta } \\mathbb { E } [ R _ { t } ] _ { R E I N F O R C E } \\approx$ $\\nabla _ { \\theta } \\log \\pi ( a _ { t } | s _ { t } ; \\theta ) \\dot { ( R _ { t } - b ( s _ { t } ) ) }$ ",
225
+ "bbox": [
226
+ 174,
227
+ 762,
228
+ 825,
229
+ 835
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "In actor-critic based approaches, the variance reduction further evolves into the advantage function $A ( s _ { t } , a _ { t } ) = Q ( s _ { t } , a _ { t } ) - V ( s _ { t } )$ in Mnih et al. (2016), where the action value $Q ^ { \\pi } ( s _ { t } , a _ { t } )$ is approximated by $R _ { t }$ and $b ( s _ { t } )$ is replaced by $V ^ { \\pi } ( s _ { t } )$ , deriving the advantage actor-critic architecture where actor-head $\\pi ( \\cdot | s )$ and the critic-head $V ( s )$ share low-level features. The gradient update rule w.r.t. the action-head is $\\nabla _ { \\theta } \\log \\pi ( a _ { t } | s _ { t } ; \\theta ) ( R _ { t } - V ( s _ { t } ; \\theta ) )$ . The gradient update w.r.t. the critic-head is: $\\nabla _ { \\boldsymbol { \\theta } } ( R _ { t } - V ( s _ { t } ; \\boldsymbol { \\theta } ) ) ^ { 2 }$ , where $R _ { t } = r _ { t } + \\gamma V ( s _ { t + 1 } )$ . ",
236
+ "bbox": [
237
+ 173,
238
+ 840,
239
+ 825,
240
+ 925
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "image",
246
+ "img_path": "images/691a77d1436be9adc6c816257080ddb1982e633dec02a7c34a27ed2085021986.jpg",
247
+ "image_caption": [
248
+ "Figure 2: Illustration of the proposed variability-weighted reward (VWR). The first row shows the raw reward sequence (blue) while the second row presents the post-processed sequence $\\vec { \\mathcal { R } }$ (green) and the zero-variability reference $\\vec { \\mathcal { R } } ^ { z e r o }$ (orange), and $\\mathcal { R } _ { H }$ is calculated as a reflection of how high the immediate reward is. The third row shows the volatility statistics of $\\delta _ { \\mathcal { R } }$ , representing how varied past rewards were. We curated 3 hypothetical reward sequences – (a) highly varied sequence with low immediate reward, resulting in the lowest VWR; (b) highly varied sequence with high immediate reward, leading to a relatively high VWR; (c) stable sequence with high immediate reward, achieving the best VWR. More examples can be found in the Appendix A. "
249
+ ],
250
+ "image_footnote": [],
251
+ "bbox": [
252
+ 181,
253
+ 104,
254
+ 810,
255
+ 320
256
+ ],
257
+ "page_idx": 3
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "4 CHARACTERIZATION OF PAST REWARD STATISTICS ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 467,
266
+ 633,
267
+ 483
268
+ ],
269
+ "page_idx": 3
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "The conventional reward $r _ { t }$ received from the environment at time step $t$ after an action $a _ { t }$ is performed represents the immediate reward regarding this particular action. This “immediacy” could be interpreted as a short-term horizon of how the agent is doing, i.e., evaluating the agent via judging its actions by immediate rewards. We argue that the deficiencies of learning solely from immediate rewards mainly come from this limitation that the agent is learning from one single type of exclusive short-term feedback. ",
274
+ "bbox": [
275
+ 173,
276
+ 498,
277
+ 825,
278
+ 582
279
+ ],
280
+ "page_idx": 3
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "As the goal of providing reward feedback to an agent is to inform the agent of its performance, we seek to find an auxiliary performance metric that can measure whether the agent is performing consistently well. Inspired by the formulation of Sharpe Ratio $\\begin{array} { r } { ( \\mathbb { E } [ r ] \\times \\frac { 1 } { \\sigma _ { r } } ) } \\end{array}$ in evaluating the long-term performance of porfolio strategies where the return $\\mathbb { E } [ r ]$ is inversely weighted by the risk $\\sigma _ { r }$ , an effective characterization of historical reward statistics should take into account at least two factors, namely 1) how high the immediate reward is and 2) how varied past rewards were, bringing the desired notion of “risk-adjusted return” as in Sharpe (1994). ",
285
+ "bbox": [
286
+ 173,
287
+ 588,
288
+ 826,
289
+ 689
290
+ ],
291
+ "page_idx": 3
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "4.1 VARIABILITY-WEIGHTED REWARD ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 176,
299
+ 705,
300
+ 457,
301
+ 719
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "To this end, we follow insights behind Dowd (2000); Sharpe (1994) and define a variability-weighted characterization of past rewards. This is illustrated in Figure 2. We consider a historical sequence of $T$ rewards upon timestep $t$ (looking backward $T - 1$ timesteps): $\\vec { \\mathbf { r } } = \\left[ r _ { t - ( T - 1 ) } . . . , r _ { t - 2 } , r _ { t - 1 } , r _ { t } \\right]$ . In order to evaluate how high and varied the reward sequence is, a few steps of pre-processing $\\mathcal { G }$ is applied, denoted as $\\vec { \\mathcal { R } } = \\mathcal { G } ( \\vec { \\bf r } )$ . Specifically, we first derive the reward change at each timestep (similar to the “differential return” concept in Sharpe (1994)) with $d _ { n } = r _ { n } - r _ { n - 1 }$ : ",
308
+ "bbox": [
309
+ 173,
310
+ 731,
311
+ 825,
312
+ 818
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "equation",
318
+ "img_path": "images/0d1a41e8d46f16485988e1e846429a2a98dca9d0e35f49628981c04a400babf5.jpg",
319
+ "text": "$$\n\\vec { \\mathbf { d } } = [ d _ { t - ( T - 1 ) } , d _ { t - ( T - 2 ) } , \\dots , d _ { t } ] = [ r _ { t - ( T - 1 ) } , r _ { t - ( T - 2 ) } - r _ { t - ( T - 1 ) } , \\dots , r _ { t } - r _ { t - 1 } ] .\n$$",
320
+ "text_format": "latex",
321
+ "bbox": [
322
+ 215,
323
+ 823,
324
+ 781,
325
+ 843
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "Then we re-order the sequence by flipping 1 with $f _ { n } = d _ { t + 1 - n }$ : ",
332
+ "bbox": [
333
+ 173,
334
+ 848,
335
+ 593,
336
+ 864
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "equation",
342
+ "img_path": "images/c1ca19f978de9502729114ada4eb16aebd622ec6d1b4c6e739e10be181f0620f.jpg",
343
+ "text": "$$\n\\vec { \\mathbf { f } } = [ f _ { 1 } , f _ { 2 } , \\dotsc , f _ { T } ] = [ d _ { t } , d _ { t - 1 } , \\dotsc , d _ { t - ( T - 1 ) } ] .\n$$",
344
+ "text_format": "latex",
345
+ "bbox": [
346
+ 339,
347
+ 868,
348
+ 658,
349
+ 888
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Next we append $f _ { 0 } = 1$ to the head of sequence $\\vec { \\mathbf { f } }$ and take the normalized cumulative sum to obtain the post-processed reward sequence as $\\begin{array} { r } { \\vec { \\mathcal { R } } = [ \\mathcal { R } _ { 0 } , \\mathcal { R } _ { 1 } , \\ldots , \\mathcal { R } _ { T } ] = \\frac { 1 } { T + 1 } [ f _ { 0 } , f _ { 0 } + f _ { 1 } , \\ldots , \\sum _ { i = 0 } ^ { T } f _ { i } ] } \\end{array}$ . Under such processing, numerical instability (see Eq. 4) when all rewards in the sequence are zero can be alleviated, while the averaging term $\\\\frac { 1 } { T + 1 }$ mitigates the effect of introducing the artificial $f _ { 0 }$ . ",
356
+ "bbox": [
357
+ 173,
358
+ 102,
359
+ 825,
360
+ 165
361
+ ],
362
+ "page_idx": 4
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "The resulting $\\vec { \\mathcal { R } }$ is a reward sequence with $\\begin{array} { r } { \\mathcal { R } _ { T } - \\mathcal { R } _ { 0 } = \\frac { 1 } { T + 1 } r _ { t } } \\end{array}$ , and $\\begin{array} { r } { \\mathcal { R } _ { n } - \\mathcal { R } _ { n - 1 } = \\frac { 1 } { T + 1 } ( r _ { t + 1 - n } - } \\end{array}$ $r _ { t - n } )$ . Therefore, the difference between $\\mathcal { R } _ { T }$ and $\\mathcal { R } _ { 0 }$ represents the immediate reward and the whole sequence $\\vec { \\mathcal { R } }$ reflects the volatility of past rewards. In Figure 2, three examples of processed sequence are presented in the second row with the corresponding raw rewards shown in the first row. We account for how high the immediate reward is by defining the relative percentage log total return as: ",
367
+ "bbox": [
368
+ 173,
369
+ 172,
370
+ 825,
371
+ 251
372
+ ],
373
+ "page_idx": 4
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/427ecef02fe5e4c69fa5d7dcf959c9999480044bf1edb915dc4de36f0b6a0a0b.jpg",
378
+ "text": "$$\n\\mathcal { R } _ { H } = 1 0 0 \\times \\left( e ^ { \\frac { 1 } { T } \\ln \\frac { \\mathcal { R } _ { T } } { \\mathcal { R } _ { 0 } } } - 1 \\right) = \\frac { { \\mathcal { R } _ { T } } ^ { 1 / T } - { \\mathcal { R } _ { 0 } } ^ { 1 / T } } { { \\mathcal { R } _ { 0 } } ^ { 1 / T } } \\times 1 0 0 .\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 307,
382
+ 256,
383
+ 691,
384
+ 295
385
+ ],
386
+ "page_idx": 4
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "To account for how varied past rewards were, we first define a smooth zero-variability reference as: $\\vec { \\mathcal { R } } ^ { z e r o } = [ \\mathcal { R } _ { 0 } ^ { z e r o } , \\mathcal { R } _ { 1 } ^ { z e r o } , \\ldots , \\mathcal { R } _ { T } ^ { z e r o } ] = \\mathcal { R } _ { 0 } [ e ^ { 0 \\times \\widetilde { \\mathcal { R } } } , e ^ { 1 \\times \\widetilde { \\mathcal { R } } } , \\ldots , e ^ { T \\widetilde { \\mathcal { R } } } ]$ with $\\begin{array} { r } { \\widetilde { \\mathcal { R } } = \\frac { 1 } { T } \\ln \\frac { \\mathcal { R } _ { T } } { \\mathcal { R } _ { 0 } } } \\end{array}$ , represent a smooth monotonic reference sequence from $\\mathcal { R } _ { 0 }$ to $\\mathcal { R } _ { T }$ . Then we define the reward differential $\\delta _ { \\mathcal { R } }$ as the differential reward versus its zero-variability reference as $\\begin{array} { r } { \\delta _ { \\mathcal { R } } ( n ) = \\frac { \\mathcal { R } _ { n } - \\mathcal { R } _ { n } ^ { z e r o } } { \\mathcal { R } _ { n } ^ { z e r o } } } \\end{array}$ , whose statistics are sketched in the third row of Figure 2. With maximally allowed volatility as $\\sigma _ { m a x }$ , the variability weights can be defined as: $\\begin{array} { r } { \\omega = 1 - \\big [ { \\frac { \\sigma ( \\delta _ { \\mathcal { R } } ) } { \\sigma _ { m a x } } } \\big ] ^ { \\tau } } \\end{array}$ , where $\\sigma ( \\cdot )$ is the standard deviation and $\\tau$ controls the rate to penalize highly volatile reward distribution. Finally we can derive the variability-weighted past reward indicator $r ^ { v w r }$ for the characterization of past reward statistics: ",
391
+ "bbox": [
392
+ 173,
393
+ 300,
394
+ 825,
395
+ 428
396
+ ],
397
+ "page_idx": 4
398
+ },
399
+ {
400
+ "type": "equation",
401
+ "img_path": "images/253d2ea817aaea969bbad50eaf18b1beb7163a9bd883c86f027b1988ecc9f45a.jpg",
402
+ "text": "$$\nr ^ { v w r } = \\left. \\begin{array} { c c } { \\mathcal { R } _ { H } ( 1 - [ \\frac { \\sigma ( \\delta _ { \\mathcal { R } } ) } { \\sigma _ { m a x } } ] ^ { \\tau } ) } & { \\mathrm { i f } \\sigma ( \\delta _ { \\mathcal { R } } ) < \\sigma _ { m a x } , \\mathcal { R } _ { T } > 0 } \\\\ { 0 } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
403
+ "text_format": "latex",
404
+ "bbox": [
405
+ 305,
406
+ 434,
407
+ 692,
408
+ 470
409
+ ],
410
+ "page_idx": 4
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "The formulation of Equation 5 share principled themes as in Sharpe (1994) and Dowd (2000): ",
415
+ "bbox": [
416
+ 173,
417
+ 477,
418
+ 790,
419
+ 492
420
+ ],
421
+ "page_idx": 4
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "1. Dowd (2000) compares the newly obtained $\\mathbf { S R } ^ { n e w }$ with the previous $\\mathbf { S R } ^ { o l d }$ in choosing new assets; we derive $\\mathcal { R } _ { H }$ in Eq. 4 by comparing the latest reward $\\mathcal { R } _ { T }$ with $\\mathcal { R } _ { 0 }$ to explicitly encourage the agent to aim for reward improvements in “choosing new actions”; 2. Both the Sharpe Ratio (SR) and Eq. 5 involve “variability weights” to adjust for the unit risk of return $\\mathbb { E } [ \\mathcal { R } ]$ Sharpe (1994) (i.e., $\\scriptstyle { \\frac { 1 } { \\sigma _ { r } } }$ for SR and $\\begin{array} { r } { 1 - \\big [ \\frac { \\sigma ( \\delta \\mathcal { R } ) } { \\sigma _ { m a x } } \\big ] ^ { \\tau } } \\end{array}$ [ σ(δR) ]τ for rvwr ); 3. Whereas Dowd (2000) introduces the concept of “minimum required return” based on the elasticity of value at risk (VaR), we consider the maximum tolerance level $\\sigma _ { m a x }$ with elasticity controlled by $\\tau$ for improved learning stability of $r ^ { v w r }$ (see also Appendix H). ",
426
+ "bbox": [
427
+ 210,
428
+ 503,
429
+ 825,
430
+ 625
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "Example computed values of $r ^ { v w r }$ for the characterization of different reward statistics are shown in Figure 2 and we show strong empirical results (in Section 6) to confirm the validity and robustness of the proposed formulation in multiple reinforcement learning domains. ",
437
+ "bbox": [
438
+ 174,
439
+ 636,
440
+ 826,
441
+ 679
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "4.2 MULTI-CRITIC ARCHITECTURE ",
448
+ "text_level": 1,
449
+ "bbox": [
450
+ 174,
451
+ 695,
452
+ 433,
453
+ 710
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "A higher value of $r ^ { v w r }$ indicates better agent performance as the result of the historical sequence of actions. The same set of optimization procedures for conventional value function (i.e., via maximization of immediate reward signal $r$ ) update can be applied accordingly. The actual returns computed from both the “long-term” and “short-term” rewards are discounted by the same factor $\\gamma$ In particular, for standard $N$ -step look-ahead approaches, we have: ",
460
+ "bbox": [
461
+ 174,
462
+ 720,
463
+ 825,
464
+ 791
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "equation",
470
+ "img_path": "images/bfd5d11b867e90455afb9c5795897bbe6941eb272481c3dd5ccc7494f377e426.jpg",
471
+ "text": "$$\nR _ { t } ^ { \\mathrm { { s h o r t . e r m } } } = \\sum _ { n = 0 } ^ { N - 1 } \\gamma ^ { n } r _ { t + n } + \\gamma ^ { N } V ( s _ { t + N } ) , \\ : \\ : \\ : R _ { t } ^ { \\mathrm { l o n g . e r m } } = \\sum _ { n = 0 } ^ { N - 1 } \\gamma ^ { n } r _ { t + n } ^ { v w r } + \\gamma ^ { N } V ^ { v w r } ( s _ { t + N } )\n$$",
472
+ "text_format": "latex",
473
+ "bbox": [
474
+ 200,
475
+ 797,
476
+ 777,
477
+ 842
478
+ ],
479
+ "page_idx": 4
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "Similar to the standard state value function $V ( s )$ , we further define $V ^ { v w r } ( s )$ as the value function w.r.t the variability-weighted reward $r ^ { v w r }$ . These value functions form multiple critics judging a given state $s$ . The gradients w.r.t. the critics then become: ",
484
+ "bbox": [
485
+ 174,
486
+ 856,
487
+ 825,
488
+ 898
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "equation",
494
+ "img_path": "images/942d31dd344bb42e1547ebe501d78899219b1ac8ad6fa39b5ecb2b64aba0533e.jpg",
495
+ "text": "$$\n\\nabla _ { \\theta ^ { \\mathrm { s h o r i c m } } } [ ( R _ { t } ^ { \\mathrm { s h o r t - e r m } } - V ( s _ { t } ; \\theta ^ { \\mathrm { s h o r t - e r m } } ) ) ^ { 2 } ] + \\nabla _ { \\theta ^ { \\mathrm { l o r g - t e r m } } } [ ( R _ { t } ^ { \\mathrm { l o n g - t e r m } } - V ^ { v w r } ( s _ { t } ; \\theta ^ { \\mathrm { l o n g - t e r m } } ) ) ^ { 2 } ]\n$$",
496
+ "text_format": "latex",
497
+ "bbox": [
498
+ 199,
499
+ 906,
500
+ 779,
501
+ 925
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "image",
507
+ "img_path": "images/fd2a20fd68d11f839066eb2b4cb98f37deca225e98926d444892f991d6494b10.jpg",
508
+ "image_caption": [
509
+ "Figure 3: Performance of A2MC on Atari games. “Hot-Wiring” exploration makes the agent easier to figure out how to play challenging games like “Robotank” and “WizardOfWor”, and for most games, it provides a better initial state for the agent to start off at a game and hence to obtain better final results. The number in figure legend shows the average reward among the last 100 episodes and the percentage shows the performance margin as compared to ACKTR. The shaded region denotes the standard deviation over 2 random seeds. "
510
+ ],
511
+ "image_footnote": [],
512
+ "bbox": [
513
+ 181,
514
+ 104,
515
+ 816,
516
+ 359
517
+ ],
518
+ "page_idx": 5
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "where the standard grading clipping approach can be applied in Eq. 7 for enhanced stability. More advanced methods for estimating $R _ { t } ^ { \\mathrm { s h o r t - t e r m } }$ and $R _ { t } ^ { \\mathrm { { l o n g - t e r m } } }$ above, such as the online variant of generalized advantage estimation (GAE) using eligibility traces Schulman et al. (2016) can be adopted in place of Eq. 6, as shown below (see also Appendix $\\mathbf { G }$ ): ",
523
+ "bbox": [
524
+ 176,
525
+ 455,
526
+ 823,
527
+ 515
528
+ ],
529
+ "page_idx": 5
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/eb1b8494d87a4ed83938b0f7b62c6811d50ea334bbfc84498118b8b1e5182cba.jpg",
534
+ "text": "$$\n\\begin{array} { r l } & { A _ { t } ^ { \\mathrm { s h o r t . t e r m } } = \\displaystyle \\sum _ { n = 0 } ^ { \\infty } ( \\gamma \\lambda ) ^ { n } \\delta _ { t + n } ^ { v w r } , \\mathrm { w i t h } \\delta _ { t } = r _ { t } + \\gamma V ( s _ { t + 1 } ) - V ( s _ { t } ) } \\\\ & { A _ { t } ^ { \\mathrm { l o n g . t e r m } } = \\displaystyle \\sum _ { n = 0 } ^ { \\infty } ( \\gamma \\lambda ) ^ { n } \\delta _ { t + n } ^ { v w r } , \\mathrm { w i t h } \\delta _ { t } ^ { v w r } = r _ { t } ^ { v w r } + \\gamma V ^ { v w r } ( s _ { t + 1 } ) - V ^ { v w r } ( s _ { t } ) } \\end{array}\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 245,
538
+ 516,
539
+ 753,
540
+ 599
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "where the generalized estimator of the advantage function $A _ { t } ^ { \\mathrm { s h o r t - t e r m } }$ and $A _ { t } ^ { \\mathrm { l o n g - t e r m } }$ allows a trade-off of bias $\\nu . s .$ . variance using the parameter $0 \\leq \\lambda \\leq 1$ , similar to the $\\mathrm { T D } ( \\lambda )$ approach for eligibility traces. We show the effectiveness of the proposed characterization of past reward statistics in multiple advantage actor-critic frameworks (i.e., ACKTR and PPO), where the two different value functions can share the same low-level feature representation, enabling a single agent to learn multiple critics parameterized by $\\theta ^ { j } , j \\in \\{ \\mathrm { s h o r t - t e r m } , \\mathrm { l o n g - t e r m } \\}$ . (See also Appendix I for the full algorithm). ",
547
+ "bbox": [
548
+ 173,
549
+ 602,
550
+ 825,
551
+ 689
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "5 HOT-WIRE $\\epsilon$ -EXPLORATION ",
558
+ "text_level": 1,
559
+ "bbox": [
560
+ 176,
561
+ 707,
562
+ 437,
563
+ 723
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "Being handed a game-stick, a human most likely would try out all the available buttons on it to see which particular button entails whatever actions on the game screen, hence receiving useful feedbacks. Inspired by this, we propose to hot-wire the agent to perform an identical sequence of randomly chosen actions in the N-step look-ahead during the initial stage (randomly pressing down a game-stick button for a while): ",
570
+ "bbox": [
571
+ 173,
572
+ 737,
573
+ 825,
574
+ 808
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "equation",
580
+ "img_path": "images/9e044e8dcdca9627fdc25fd8a0c10fbf649b1d0ef193a2d713811abf0e0d9598.jpg",
581
+ "text": "$$\na _ { t + k } = \\left\\{ \\begin{array} { l l } { { \\mathrm { ~ a ~ r a n d o m ~ a c t i o n ~ i d e n t i c a l ~ f o r ~ a l l ~ k ~ } } } & { { \\mathrm { w i t h ~ p r o b ~ } \\epsilon } } \\\\ { { \\pi ( a _ { t + k } | s _ { t + k } ) ~ \\mathrm { f o r } ~ k = 0 , 1 , 2 , . . . , N - 1 } } & { { \\mathrm { w i t h ~ p r o b ~ } 1 - \\epsilon } } \\end{array} \\right.\n$$",
582
+ "text_format": "latex",
583
+ "bbox": [
584
+ 271,
585
+ 809,
586
+ 728,
587
+ 844
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "We show that by enabling the “hot-wiring” mechanism2, a seemingly trapped agent can be boosted to learn to quickly solve problems where rewards can only be triggered by particular action sequences, as shown in games like “Robotank” and “WizardOfWor” in Figure 3. ",
594
+ "bbox": [
595
+ 174,
596
+ 847,
597
+ 826,
598
+ 888
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "6 EXPERIMENTS ",
605
+ "text_level": 1,
606
+ "bbox": [
607
+ 174,
608
+ 102,
609
+ 326,
610
+ 117
611
+ ],
612
+ "page_idx": 6
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "We use the same network architecture and natural gradient optimization method as in the ACKTR model Wu et al. (2017). We set $\\sigma _ { m a x } = 1 . 0$ , $\\tau = 2 . 0$ and $T = 2 0$ in the computation of variabilityweighted reward (see Appendix C for hyperparameter studies). For hot-wiring exploration, we choose $\\epsilon = 0 . 2 0$ and initial stage to be first $\\scriptstyle { \\frac { 1 } { 4 0 } }$ of the total training period for all experiments. Other hyperparameters such as learning rate and gradient clipping remain the same as in the ACKTR model Wu et al. (2017), in addition to adopting GAE Schulman et al. (2016) for a stronger ACKTR baseline (see Sec 4.2). We first present results of evaluating the proposed A2MC model in two standard benchmarks, the discrete Atari experiments and the continuous MuJoCo domain. Then we show ablation studies on the robustness of the hyper-parameters involved as well as evaluating the extensibility of the proposed long/short-term reward characterizations to other on-policy methods. Further extensions to off-policy domains are presented in Appendix E and Appendix F. ",
617
+ "bbox": [
618
+ 174,
619
+ 133,
620
+ 825,
621
+ 286
622
+ ],
623
+ "page_idx": 6
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "6.1 ATARI 2600 GAMES ",
628
+ "text_level": 1,
629
+ "bbox": [
630
+ 176,
631
+ 303,
632
+ 361,
633
+ 316
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "We follow standard evaluation protocol to evaluate A2MC in a variety of Atari game environments (starting with 30 no-op actions). We train our models for 15 million timesteps for each game environment and score each game based on the average episode rewards obtained among the last 100 episodes as in Wu et al. (2017). The learning results on 12 Atari games are shown in Figure 3 where we also included an ablation experiment of A2MC without hot-wiring. We observe that on average A2MC improves upon ACKTR in terms of final performance under the same training budget. Our A2MC is able to consistently improve agent performance based on the proposed characterization of reward statistics, hence the agent is able to get out of local minima in less time (higher sample efficiency) compared to ACKTR. The complete learning results on all games are attached in the Appendix B. ",
640
+ "bbox": [
641
+ 173,
642
+ 329,
643
+ 825,
644
+ 467
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "table",
650
+ "img_path": "images/2ed308461e3b8e633582fe7e03463a635268184cc2bfcfdb25c6abb428826abe.jpg",
651
+ "table_caption": [
652
+ "Table 1: Comparison of average episode rewards at the end of 50 million timesteps in Atari experiments. The reward scores and the first episodes reaching human-level performance Mnih et al. (2015) are reported as in Wu et al. (2017). A2MC is able to solve games that are challenging to ACKTR and also retain comparable performance in the rest of games. "
653
+ ],
654
+ "table_footnote": [],
655
+ "table_body": "<table><tr><td colspan=\"2\"></td><td colspan=\"2\">ACKTR</td><td colspan=\"2\">A2MC</td></tr><tr><td>Domain</td><td>Human Level</td><td>Rewards</td><td>Episode</td><td>Rewards</td><td>Episode</td></tr><tr><td>Asteroids</td><td>47388.7</td><td>34171.0</td><td>N/A</td><td>830232.5</td><td>11314</td></tr><tr><td>Beamrider</td><td>5775.0</td><td>13581.4</td><td>3279</td><td>13564.3</td><td>3012</td></tr><tr><td>Boxing</td><td>12.1</td><td>1.5</td><td>N/A</td><td>99.1</td><td>158</td></tr><tr><td>Breakout</td><td>31.8</td><td>735.7</td><td>4097</td><td>411.4</td><td>3664</td></tr><tr><td>Double Dunk</td><td>-16.4</td><td>-0.5</td><td>742</td><td>21.3</td><td>544</td></tr><tr><td>Enduro</td><td>860.5</td><td>0.0</td><td>N/A</td><td>3492.2</td><td>730</td></tr><tr><td>Freeway</td><td>29.6</td><td>0.0</td><td>N/A</td><td>32.7</td><td>1058</td></tr><tr><td>Pong</td><td>9.3</td><td>20.9</td><td>904</td><td>19.4</td><td>804</td></tr><tr><td>Q-bert</td><td>13455.0</td><td>21500.3</td><td>6422</td><td>25229.0</td><td>7259</td></tr><tr><td>Robotank</td><td>11.9</td><td>16.5</td><td>-</td><td>25.7</td><td>4158</td></tr><tr><td>Seaquest</td><td>20182.0</td><td>1776.0</td><td>N/A</td><td>1798.6</td><td>N/A</td></tr><tr><td>Space Invaders</td><td>1652.0</td><td>19723.0</td><td>14696</td><td>11774.0</td><td>11064</td></tr><tr><td>Wizard of Wor</td><td>4756.5</td><td>702</td><td>N/A</td><td>7471.0</td><td>8119</td></tr></table>",
656
+ "bbox": [
657
+ 214,
658
+ 536,
659
+ 785,
660
+ 767
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "We further expand the training budget and continue learning the games until 50 million timesteps as in Wu et al. (2017). As shown in Table 1, our A2MC model can solve games like “Boxing”, “Freeway” and “Enduro” that are challenging for the baseline ACKTR model. For a full picture of model performance in Atari games, A2MC has a human-level performance rate of $7 4 . 5 \\%$ (38 out of 51 games) in the Atari benchmarks, compared to $6 3 . 6 \\%$ reached by ACKTR. Individual game scores for all the Atari games are reported in the Appendix B. ",
667
+ "bbox": [
668
+ 173,
669
+ 768,
670
+ 826,
671
+ 853
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "6.2 CONTINUOUS CONTROL ",
678
+ "text_level": 1,
679
+ "bbox": [
680
+ 174,
681
+ 869,
682
+ 382,
683
+ 883
684
+ ],
685
+ "page_idx": 6
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "For the evaluations on continuous control tasks simulated in MuJoCo environment, we first follow $\\mathrm { W u }$ et al. (2017) and tune a different set of hyper-parameters from Atari experiments. Specifically, all ",
690
+ "bbox": [
691
+ 174,
692
+ 895,
693
+ 825,
694
+ 924
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "image",
700
+ "img_path": "images/3a06f904da805d4c7acb1d86247f9e70b0ea241d1cad9dbdc73b865f57ba7291.jpg",
701
+ "image_caption": [
702
+ "Figure 4: Performance on the MuJoCo benchmark. A2MC is also competitive on MuJoCo continuous domain when compared to ACKTR. The shaded region denotes std over 3 random seeds. "
703
+ ],
704
+ "image_footnote": [],
705
+ "bbox": [
706
+ 181,
707
+ 104,
708
+ 816,
709
+ 277
710
+ ],
711
+ "page_idx": 7
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "MuJoCo experiments are trained with a larger batch size of 2500. The results of eight MuJoCo environments trained for 1 million timesteps are shown in Figure 4. We observe that A2MC also performs well in all MuJoCo continuous control tasks. In particular, A2MC has brought significant improvement on the tasks of HalfCheetah, Swimmer and Walker2d (see Table 2). ",
716
+ "bbox": [
717
+ 174,
718
+ 319,
719
+ 825,
720
+ 375
721
+ ],
722
+ "page_idx": 7
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "To test the robustness of A2MC, we perform another set of evaluations on MuJoCo tasks by keeping an identical set of hyper-parameters used in the Atari experiments. Figure 7 in Appendix C shows this ablation result. We observe that even under sub-optimal hyper-parameters, our A2MC model can still learn to solve the MuJoCo control tasks in the long run. Moreover, it is less prone to overfitting when compared to ACKTR under such “stress testing”. Additional hyper-parameter studies can be found in Appendix C. ",
727
+ "bbox": [
728
+ 174,
729
+ 381,
730
+ 825,
731
+ 465
732
+ ],
733
+ "page_idx": 7
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "We also evaluate a multi-critics variant of the proximal policy optimization (PPO) model on the MuJoCo tasks with our proposed long/short-term rewards. In particular, we observe that our proposed variability-weighted reward generalizes well with the vanilla PPO, and our multi-critics PPO variant (MC-PPO) shows more favorable performance, as shown in Table 2. Specifically, MC-PPO shows the best performance on Hopper and Walker- $_ { 2 d }$ among all models under the 1-million timesteps training budget. Both of our multi-critics variants (A2MC and MC-PPO) have won 6 out of the 8 MuJoCo tasks with relative performance margins (percentages in parentheses) larger than $2 5 \\%$ (see Table 2). ",
738
+ "bbox": [
739
+ 173,
740
+ 472,
741
+ 825,
742
+ 570
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "table",
748
+ "img_path": "images/1e2bae610559ebc2f49d3e1e65b4075eea701056682ef5ff8818f3d110903b1a.jpg",
749
+ "table_caption": [
750
+ "Table 2: Average episode rewards obtained among the last 10 episodes upon 1 million timesteps of training in MuJoCo experiments. "
751
+ ],
752
+ "table_footnote": [],
753
+ "table_body": "<table><tr><td>GAMES</td><td>ACKTR</td><td colspan=\"2\">Our A2MC</td><td>PPO</td><td colspan=\"2\">Our MC-PPO</td></tr><tr><td>Ant</td><td>1671.6</td><td>2216.1</td><td>(32.5%)</td><td>411.4 (± 107.7)</td><td>618.9</td><td>(50.4%)</td></tr><tr><td>HalfCheetah</td><td>1676.2</td><td>2696.6</td><td>(60.8%)</td><td>1433.7 (± 83.9)</td><td>2473.4</td><td>(72.5%)</td></tr><tr><td>Hopper</td><td>2259.1</td><td>2835.7</td><td>(25.5%)</td><td>2055.8 (± 274.6)</td><td>3131.3</td><td>(52.3%)</td></tr><tr><td>InvertedDoublePendulum 6295.4</td><td></td><td>7872.6</td><td>(25.0%)</td><td>4454.1 (± 1098.1)</td><td>7648.7</td><td>(71.7%)</td></tr><tr><td>InvertedPendulum</td><td>1000.0</td><td>957.2</td><td>(-4.2%)</td><td>839.7 (± 127.1)</td><td>777.4</td><td>(-7.4%)</td></tr><tr><td>Reacher</td><td>-4.2</td><td>-3.9</td><td>(0.4%)</td><td>-5.47 (± 0.3)</td><td>-10.3</td><td>(-8.5%)</td></tr><tr><td>Swimmer</td><td>43.2</td><td></td><td>187.4 (333.7%)</td><td>79.1 (± 31.2)</td><td>102.9</td><td>(30.2%)</td></tr><tr><td>Walker2d</td><td>1090.8</td><td>2405.9 (120.5%)</td><td></td><td>2300.8 (± 397.6)</td><td>3718.1</td><td>(61.6%)</td></tr><tr><td>Win—Fair—Lose</td><td>N/A</td><td>6-2-0</td><td></td><td>N/A</td><td>6—2-0</td><td></td></tr></table>",
754
+ "bbox": [
755
+ 174,
756
+ 616,
757
+ 823,
758
+ 777
759
+ ],
760
+ "page_idx": 7
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "7 CONCLUSION ",
765
+ "text_level": 1,
766
+ "bbox": [
767
+ 176,
768
+ 795,
769
+ 318,
770
+ 810
771
+ ],
772
+ "page_idx": 7
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "In this work, we introduce an effective auxiliary reward signal to remedy the deficiencies of learning solely from the standard environment rewards. Our proposed characterization of past reward statistics results in improved learning and higher sample efficiencies for on-policy methods, especially in challenging tasks with sparse rewards. Experiments on both discrete tasks in Atari environment and MuJoCo continuous control tasks validate the effectiveness of utilizing the proposed long/short-term reward statistics for on-policy methods using multi-critic architectures. This suggests that expanding the form of reward feedbacks in reinforcement learning is a promising research direction. ",
777
+ "bbox": [
778
+ 173,
779
+ 825,
780
+ 825,
781
+ 924
782
+ ],
783
+ "page_idx": 7
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "REFERENCES ",
788
+ "text_level": 1,
789
+ "bbox": [
790
+ 174,
791
+ 103,
792
+ 287,
793
+ 117
794
+ ],
795
+ "page_idx": 8
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In Advances in Neural Information Processing Systems, pp. 5048–5058, 2017. ",
800
+ "bbox": [
801
+ 174,
802
+ 126,
803
+ 823,
804
+ 169
805
+ ],
806
+ "page_idx": 8
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "Marc G Bellemare, Will Dabney, and Remi Munos. A distributional perspective on reinforcement ´ learning. arXiv preprint arXiv:1707.06887, 2017. ",
811
+ "bbox": [
812
+ 173,
813
+ 176,
814
+ 823,
815
+ 205
816
+ ],
817
+ "page_idx": 8
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Kevin Dowd. Adjusting for risk:: An improved sharpe ratio. International review of economics & finance, 9(3):209–222, 2000. ",
822
+ "bbox": [
823
+ 171,
824
+ 213,
825
+ 823,
826
+ 243
827
+ ],
828
+ "page_idx": 8
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. 2018. ",
833
+ "bbox": [
834
+ 174,
835
+ 251,
836
+ 823,
837
+ 294
838
+ ],
839
+ "page_idx": 8
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "Max Jaderberg, Volodymyr Mnih, Wojciech Marian Czarnecki, Tom Schaul, Joel Z Leibo, David Silver, and Koray Kavukcuoglu. Reinforcement learning with unsupervised auxiliary tasks. arXiv preprint arXiv:1611.05397, 2016. ",
844
+ "bbox": [
845
+ 176,
846
+ 303,
847
+ 823,
848
+ 345
849
+ ],
850
+ "page_idx": 8
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Junqi Jin, Chengru Song, Han Li, Kun Gai, Jun Wang, and Weinan Zhang. Real-time bidding with multi-agent reinforcement learning in display advertising. arXiv preprint arXiv:1802.09756, 2018. ",
855
+ "bbox": [
856
+ 171,
857
+ 353,
858
+ 825,
859
+ 383
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "George Konidaris and Andrew G Barto. Skill discovery in continuous reinforcement learning domains using skill chaining. In Advances in neural information processing systems, pp. 1015–1023, 2009. ",
866
+ "bbox": [
867
+ 171,
868
+ 390,
869
+ 825,
870
+ 421
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Guillaume Lample and Devendra Singh Chaplot. Playing fps games with deep reinforcement learning. In AAAI, 2017. ",
877
+ "bbox": [
878
+ 173,
879
+ 428,
880
+ 825,
881
+ 458
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Marc Lanctot, Vinicius Zambaldi, Audrunas Gruslys, Angeliki Lazaridou, Julien Perolat, David Silver, Thore Graepel, et al. A unified game-theoretic approach to multiagent reinforcement learning. In Advances in Neural Information Processing Systems, pp. 4193–4206, 2017. ",
888
+ "bbox": [
889
+ 176,
890
+ 465,
891
+ 823,
892
+ 510
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In Advances in Neural Information Processing Systems, pp. 6382–6393, 2017. ",
899
+ "bbox": [
900
+ 176,
901
+ 517,
902
+ 823,
903
+ 560
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015. ",
910
+ "bbox": [
911
+ 176,
912
+ 568,
913
+ 823,
914
+ 612
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "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 International Conference on Machine Learning, pp. 1928–1937, 2016. ",
921
+ "bbox": [
922
+ 176,
923
+ 619,
924
+ 823,
925
+ 662
926
+ ],
927
+ "page_idx": 8
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. ICLR, 2016. ",
932
+ "bbox": [
933
+ 173,
934
+ 670,
935
+ 823,
936
+ 700
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. ",
943
+ "bbox": [
944
+ 173,
945
+ 708,
946
+ 823,
947
+ 737
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "William F Sharpe. The sharpe ratio. Journal of portfolio management, 21(1):49–58, 1994. ",
954
+ "bbox": [
955
+ 171,
956
+ 744,
957
+ 766,
958
+ 761
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "David Silver and Kamil Ciosek. Compositional planning using optimal option models. arXiv preprint arXiv:1206.6473, 2012. ",
965
+ "bbox": [
966
+ 173,
967
+ 768,
968
+ 821,
969
+ 797
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, et al. Mastering the game of go without human knowledge. Nature, 550(7676):354, 2017. ",
976
+ "bbox": [
977
+ 176,
978
+ 806,
979
+ 823,
980
+ 849
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018. ",
987
+ "bbox": [
988
+ 173,
989
+ 858,
990
+ 823,
991
+ 873
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Yee Teh, Victor Bapst, Wojciech M Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. In Advances in Neural Information Processing Systems, pp. 4499–4509, 2017. ",
998
+ "bbox": [
999
+ 176,
1000
+ 882,
1001
+ 825,
1002
+ 924
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Harm Van Seijen, Mehdi Fatemi, Joshua Romoff, Romain Laroche, Tavian Barnes, and Jeffrey Tsang. Hybrid reward architecture for reinforcement learning. In NIPS, pp. 5392–5402, 2017. ",
1009
+ "bbox": [
1010
+ 171,
1011
+ 103,
1012
+ 825,
1013
+ 132
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "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. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 141,
1023
+ 823,
1024
+ 184
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Reinforcement Learning, pp. 5–32. Springer, 1992. ",
1031
+ "bbox": [
1032
+ 171,
1033
+ 193,
1034
+ 825,
1035
+ 222
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Yuhuai Wu, Elman Mansimov, Roger B Grosse, Shun Liao, and Jimmy Ba. Scalable trust-region method for deep reinforcement learning using kronecker-factored approximation. In Advances in neural information processing systems, pp. 5285–5294, 2017. ",
1042
+ "bbox": [
1043
+ 178,
1044
+ 231,
1045
+ 823,
1046
+ 272
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "APPENDIX ",
1053
+ "text_level": 1,
1054
+ "bbox": [
1055
+ 174,
1056
+ 103,
1057
+ 254,
1058
+ 117
1059
+ ],
1060
+ "page_idx": 10
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "A EFFECTS OF FLIPPING ",
1065
+ "text_level": 1,
1066
+ "bbox": [
1067
+ 176,
1068
+ 137,
1069
+ 395,
1070
+ 155
1071
+ ],
1072
+ "page_idx": 10
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "While introducing the variability-weighted reward, a flipping operation is conducted in the preprocessing of the reward sequence as formulated in Eq. (3). In Figure 5 and 6, we construct 4 reward sequences to show that the flipping operation can further penalize the oscillation in the recent past rewards while encourage recent stable rewards. (a1, a2, b1, b2) share the same value of immediate reward at $t = 9$ and thus the $\\mathcal { R } _ { H }$ of all reward sequences are the same. Therefore, the variability-weighted reward only depends on the volatility statistics of $\\delta _ { R }$ , i.e., how varied past rewards were. ",
1077
+ "bbox": [
1078
+ 173,
1079
+ 170,
1080
+ 826,
1081
+ 239
1082
+ ],
1083
+ "page_idx": 10
1084
+ },
1085
+ {
1086
+ "type": "image",
1087
+ "img_path": "images/b8c96c2bfb2986a8131744bff4f87fb64d6ad7d6ab6465c97ddc8d0c4bc5483f.jpg",
1088
+ "image_caption": [
1089
+ "Figure 5: Calculation without flipping. "
1090
+ ],
1091
+ "image_footnote": [],
1092
+ "bbox": [
1093
+ 200,
1094
+ 256,
1095
+ 482,
1096
+ 535
1097
+ ],
1098
+ "page_idx": 10
1099
+ },
1100
+ {
1101
+ "type": "image",
1102
+ "img_path": "images/03f318fa74dc2f857ea0e3562e3d4f2c6896c003afc641c8b8400191574d409c.jpg",
1103
+ "image_caption": [
1104
+ "Figure 6: Calculation with flipping. "
1105
+ ],
1106
+ "image_footnote": [],
1107
+ "bbox": [
1108
+ 517,
1109
+ 256,
1110
+ 799,
1111
+ 535
1112
+ ],
1113
+ "page_idx": 10
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "",
1118
+ "bbox": [
1119
+ 173,
1120
+ 569,
1121
+ 826,
1122
+ 598
1123
+ ],
1124
+ "page_idx": 10
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Without flipping. In Figure 5, sequence $( a l )$ and $( a 2 )$ are mirror symmetrical to the $y$ -axis, and the only difference between them is that the recent past rewards $( t = 5 , 6 , 7 , 8 )$ ) of $( a 2 )$ are more stable than (a1). Intuitively, we want to encourage stable past rewards like $( a 2 )$ while penalizing oscillation in (a1). As presented in the third row of Figure 5, the $r ^ { v w r }$ difference of $( a I )$ and $( a 2 )$ is less than 1 without flipping in the pre-processing. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 604,
1132
+ 825,
1133
+ 675
1134
+ ],
1135
+ "page_idx": 10
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "With flipping. In Figure 6, (b1, b2) exactly have the same reward sequence as $( a l , a 2 )$ , respectively. However, flipping is performed as a step of pre-processing, largely increasing the $r ^ { v w r }$ gap (from less than 1 to nearly 4) between the two constructed sequences. Comparing $( b l , b 2 )$ with $( a l , a 2 )$ , the post-processed sequences $\\vec { \\mathcal { R } }$ (shown in green) become centrosymmetric to those without flipping. Specifically, the recent reward drops at $t = 6 , 7 , 8$ are reflected as high values at the beginning of $\\vec { \\mathcal { R } }$ as shown in $( b l )$ , while oscillations long ago are transformed into high values at the end of $\\vec { \\mathcal { R } }$ as presented in $( b 2 )$ . When compared to the zero-variability reference (shown in orange), which is designed as an exponential function, the flipping leads to a higher variability for the former sequence while a lower variability for the latter one, enlarging the $r ^ { v w r }$ gap between those two sequences. ",
1140
+ "bbox": [
1141
+ 173,
1142
+ 681,
1143
+ 826,
1144
+ 813
1145
+ ],
1146
+ "page_idx": 10
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "B COMPLETE RESULTS IN ATARI 2600 GAMES ",
1151
+ "text_level": 1,
1152
+ "bbox": [
1153
+ 174,
1154
+ 102,
1155
+ 576,
1156
+ 118
1157
+ ],
1158
+ "page_idx": 11
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "We show the learning curves for 15 million timesteps on all Atari games in Figure 12 and in Table 3 we show the complete results of training til 50 million timesteps. report the mean episode reward as in Wu et al. (2017). Entries with $\\sim$ indicates approximated value as retrieved from learning figures published by Wu et al. (2017). Results from other models are taken from Wu et al. (2017) and Mnih et al. (2015). We show that A2MC has reached a human-level performance rate of $7 4 . 5 \\%$ (38 out of 51 games) as compared to $6 3 . 6 \\%$ reached by ACKTR. The relative performance margin of A2MC as compared to ACKTR is also shown. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 133,
1166
+ 825,
1167
+ 231
1168
+ ],
1169
+ "page_idx": 11
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "C HYPER-PARAMETER STUDIES ",
1174
+ "text_level": 1,
1175
+ "bbox": [
1176
+ 176,
1177
+ 251,
1178
+ 455,
1179
+ 267
1180
+ ],
1181
+ "page_idx": 11
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "The proposed variability-weighted reward mechanism considers the volatility of rewards by keeping a $T$ -step history of agent’s performance. The hyper-parameter $T = 2 0$ is empirically chosen to be the same as the look-ahead parameter $N$ in standard on-policy methods, so as to keep the same period $\\textstyle T = N = 2 0$ ) in “T-step history” and “N-step forward”. And $\\sigma _ { m a x } = 1$ is chosen as the maximum of the observed volatility based on statistics in the $\\mathrm { T }$ history rewards of the ACKTR models. As parameter choices could be vital, we perform an additional ablation study shown below. The result shows that the performance of A2MC is robust across different parameters of choice and is not too sensitive to changes on either of the hyper-params. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 282,
1189
+ 825,
1190
+ 395
1191
+ ],
1192
+ "page_idx": 11
1193
+ },
1194
+ {
1195
+ "type": "table",
1196
+ "img_path": "images/6ade0ecef6c2b5d9349f04a023ea9f5b2696c56a34037d2a33e639d95a140ad1.jpg",
1197
+ "table_caption": [],
1198
+ "table_footnote": [],
1199
+ "table_body": "<table><tr><td>Games</td><td>ACKTR</td><td>A2MC w/</td><td>T=20 Omax=1</td><td>T=10 Omax=1</td><td>T=10 0max=2</td><td>T=40 Omax=1</td><td>T=40 Omax=2</td></tr><tr><td>Boxing</td><td>1.23</td><td></td><td>99.19</td><td>94.76</td><td>98.51</td><td>99.18</td><td>98.07</td></tr><tr><td>Jamesbond</td><td>409.50</td><td></td><td>453.50</td><td>438.50</td><td>470.00</td><td>442.25</td><td>457.75</td></tr><tr><td>Wizard of Wor</td><td>744.50</td><td></td><td>5448.00</td><td>5601.00</td><td>5363.50</td><td>2528.50</td><td>3287.50</td></tr></table>",
1200
+ "bbox": [
1201
+ 178,
1202
+ 397,
1203
+ 820,
1204
+ 477
1205
+ ],
1206
+ "page_idx": 11
1207
+ },
1208
+ {
1209
+ "type": "image",
1210
+ "img_path": "images/162bf3e0520ec61e2d4440c63fcb2a71cb0c9e75a49eabbe055eb3df783697fa.jpg",
1211
+ "image_caption": [
1212
+ "Figure 7: “Stress testing” ablation study on the MuJoCo continuous benchmark using hyperparameters tuned in Atari discrete control. Although this set of hyperparameters is suboptimal for the MuJoCo continuous control tasks, A2MC still obtain reasonable performance in the long run and it is less prone to overfitting. "
1213
+ ],
1214
+ "image_footnote": [],
1215
+ "bbox": [
1216
+ 181,
1217
+ 500,
1218
+ 816,
1219
+ 671
1220
+ ],
1221
+ "page_idx": 11
1222
+ },
1223
+ {
1224
+ "type": "table",
1225
+ "img_path": "images/d8a6d65006ae7a4e435a5a42e4b9f11f39b7fb4e310a57557618adc84fab20b3.jpg",
1226
+ "table_caption": [
1227
+ "Table 3: Raw scores across all games, starting with 30 no-op actions. Scores are reported by averaging the last 500 episodes upon 50 million timesteps of training as in Wu et al. (2017). A relative margin comparing A2MC to ACKTR is shown. Scores from other models are taken from Wu et al. (2017) and Mnih et al. (2015). "
1228
+ ],
1229
+ "table_footnote": [],
1230
+ "table_body": "<table><tr><td>GAME</td><td>Human</td><td>DQN</td><td>DDQN Prior. Duel</td><td></td><td>ACKTR OurA2MC</td><td></td><td>(Margin)</td></tr><tr><td>Alien</td><td>7127.7</td><td>1620</td><td>3747.7</td><td>3941</td><td>3197.1</td><td>2986.3</td><td>-6.6%</td></tr><tr><td>Amidar</td><td>1719.5</td><td>978</td><td>1793.3</td><td>2296.8</td><td>1059.4</td><td>2040.1</td><td>92.6%</td></tr><tr><td>Assault</td><td>742.0</td><td>4280.4</td><td>5393.2</td><td>11477</td><td>10777.7</td><td>9892.4</td><td>-8.2%</td></tr><tr><td>Asterix</td><td>8503.3</td><td>4359</td><td>17356.5</td><td>375080</td><td>31583.0</td><td>32671.0</td><td>3.4%</td></tr><tr><td>Asteroids</td><td>47388.7</td><td>1364.5</td><td>734.7</td><td>1192.7</td><td>34171.6</td><td>828931.6</td><td>2325.8%</td></tr><tr><td>Atlantis</td><td>29028.1</td><td>279987</td><td>106056</td><td>395762</td><td>3433182.0</td><td>2886274.0</td><td> -15.9%</td></tr><tr><td>Bankheist</td><td>753.1</td><td>455</td><td>1030.6</td><td>1503.1</td><td>1289.7</td><td>1290.6</td><td>0.1%</td></tr><tr><td>Battlezone</td><td>37187.5</td><td>29900</td><td>31700</td><td>35520</td><td>8910.0</td><td>10570.0</td><td>18.6%</td></tr><tr><td>Beamrider</td><td>16926.5</td><td>8627.5</td><td>13772.8</td><td>30276.5</td><td>13581.4</td><td>13715.6</td><td>1.0%</td></tr><tr><td>Berzerk</td><td>2630.4</td><td>585.6</td><td>1225.4</td><td>3409</td><td>927.2</td><td>974.0</td><td>5.0%</td></tr><tr><td>Bowling</td><td>160.7</td><td>50.4</td><td>68.1</td><td>46.7</td><td>24.3</td><td>31.6</td><td>30.0%</td></tr><tr><td>Boxing</td><td>12.1</td><td>88</td><td>91.6</td><td>98.9</td><td>1.5</td><td>93.5</td><td>6344.8%</td></tr><tr><td>Breakout</td><td>30.5</td><td>385.5</td><td>418.5</td><td>366</td><td>735.7</td><td>420.6</td><td>-42.8%</td></tr><tr><td>Centipede</td><td>12017.0</td><td>4657.7</td><td>5409.4</td><td>7687.5</td><td>7125.3</td><td>12096.5</td><td>69.8%</td></tr><tr><td>Choppercommand</td><td>9882.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~8000</td><td>12149.0</td><td>~42.5%</td></tr><tr><td>Crazyclimber</td><td>35829.4</td><td>110763</td><td>117282</td><td>162224</td><td>150444.0</td><td>152439.0</td><td>1.3%</td></tr><tr><td>Demonattack</td><td>1971.0</td><td>12149.4</td><td>58044.2</td><td>72878.6</td><td>274176.7</td><td>361807.1</td><td>32.0%</td></tr><tr><td>Doubledunk</td><td>-16.4</td><td>-6.6</td><td>-5.5</td><td>-12.5</td><td>-0.5</td><td>20.6</td><td>3907.5%</td></tr><tr><td>Enduro</td><td>860.5</td><td>729</td><td>1211.8</td><td>2306.4</td><td>0.0</td><td>3550.6</td><td>8%</td></tr><tr><td>Fishingderby</td><td>-38.7</td><td>-4.9</td><td>15.5</td><td>41.3</td><td>33.7</td><td>38.4</td><td>13.9%</td></tr><tr><td>Freeway</td><td>29.6</td><td>30.8</td><td>33.3</td><td>33</td><td>0.0</td><td>32.7</td><td>0%</td></tr><tr><td>Frostbite</td><td>4335.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~280</td><td>293.7</td><td>~5.1%</td></tr><tr><td>Gopher</td><td>2412.5</td><td>8777.4</td><td>14840.8</td><td>104368.2</td><td>47730.8</td><td>86101.4</td><td>80.4%</td></tr><tr><td>Gravitar</td><td>2672.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~300</td><td>995.0</td><td>-2.9%</td></tr><tr><td>Icehockey</td><td>0.9</td><td>-1.9</td><td>-2.7</td><td>-0.4</td><td>-4.2</td><td>-2.1</td><td>16.3%</td></tr><tr><td>Jamesbond</td><td>302.8</td><td>768.5</td><td>1358</td><td>812</td><td>490.0</td><td>545.0</td><td>11.2%</td></tr><tr><td>Kangaroo</td><td>3035.0</td><td>7259</td><td>12992</td><td>1792</td><td>3150.0</td><td>11269.0</td><td>257.7%</td></tr><tr><td>Krull</td><td>2665.5</td><td>8422.3</td><td>7920.5</td><td>10374.4</td><td>9686.9</td><td>10245.4</td><td>5.8%</td></tr><tr><td>Kungfumaster</td><td>22736.3</td><td>26059</td><td>29710</td><td>48375</td><td>34954.0</td><td>39773.0</td><td>13.8%</td></tr><tr><td>Mspacman</td><td>15693.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~3500</td><td>5006.1</td><td>~34.5%</td></tr><tr><td>Namethisgame</td><td>4076.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~12500</td><td>12569.9</td><td>~0.6%</td></tr><tr><td>Phoenix</td><td>7242.6</td><td>8485.2</td><td>12252.5</td><td>70324.3</td><td>133433.7</td><td>221288.3</td><td>65.8%</td></tr><tr><td>Pitfall</td><td>6463.7</td><td>-286.1</td><td>-29.9</td><td>0</td><td>-1.1</td><td>-2.5</td><td>-0.3%</td></tr><tr><td>Pong</td><td>14.6</td><td>20.9</td><td>21</td><td>20.9</td><td>20.9</td><td>19.7</td><td>-5.9%</td></tr><tr><td>Privateeye</td><td>69571.0</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~560</td><td>507.0</td><td>-9.5%</td></tr><tr><td>Qbert</td><td>13455.0</td><td>13117.3</td><td>15088.5</td><td>18760.3</td><td>23151.5</td><td>24075.8</td><td>4.0%</td></tr><tr><td>Riverraid</td><td>17118.0</td><td>7377.6</td><td>14884.5</td><td>20607.6</td><td>17762.8</td><td>18671.9</td><td>5.1%</td></tr><tr><td>Roadrunner</td><td>7845.0</td><td>39544</td><td>44127</td><td>62151</td><td>53446.0</td><td>50071.0</td><td>-6.3%</td></tr><tr><td>Robotank</td><td>11.9</td><td>63.9</td><td>65.1</td><td>27.5</td><td>16.5</td><td>26.5</td><td>60.5%</td></tr><tr><td>Seaquest</td><td>42054.7</td><td>5860.6</td><td>16452.7</td><td>931.6</td><td>1776.0</td><td>1805.6</td><td>1.7%</td></tr><tr><td>Solaris</td><td>12326.7</td><td>3482.8</td><td>3067.8</td><td>133.4</td><td>2368.6</td><td>2277.2</td><td>-3.9%</td></tr><tr><td>Spaceinvaders</td><td>1668.7</td><td>1692.3</td><td>2525.5</td><td>15311.5</td><td>19723.0</td><td>13544.2</td><td>-31.3%</td></tr><tr><td>Stargunner</td><td>10250.0</td><td>54282</td><td>60142</td><td>125117</td><td>82920.0</td><td>89616.0</td><td>8.1%</td></tr><tr><td>Tennis</td><td>-8.9</td><td>N/A</td><td>N/A</td><td>N/A</td><td>~-12</td><td>-4.7</td><td>~20.4%</td></tr><tr><td>Timepilot</td><td>5229.2</td><td>4870</td><td>8339</td><td>7553</td><td>22286.0</td><td>21992.0</td><td>-1.3%</td></tr><tr><td>Tutankham</td><td>167.6</td><td>68.1</td><td>218.4</td><td>245.9</td><td>314.3</td><td>193.7</td><td>-38.4%</td></tr><tr><td>Upndown</td><td>11693.2</td><td>9989.9</td><td>22972.2</td><td>33879.1</td><td>436665.8</td><td>563659.3</td><td>29.1%</td></tr><tr><td>Videopinball</td><td>17667.9</td><td>196760.4</td><td>309941.9</td><td>479197</td><td>100496.0</td><td>127452.4</td><td>26.8%</td></tr><tr><td>Wizardofwor YarsRevenge</td><td>4756.5</td><td>2704</td><td>7492</td><td>12352</td><td>702.0 125169.0</td><td>7864.0 143141.5</td><td>1020.2% 14.4%</td></tr></table>",
1231
+ "bbox": [
1232
+ 178,
1233
+ 171,
1234
+ 820,
1235
+ 922
1236
+ ],
1237
+ "page_idx": 12
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "D EXTENSION TO MULTI-CRITIC PPO (MC-PPO) ",
1242
+ "text_level": 1,
1243
+ "bbox": [
1244
+ 173,
1245
+ 102,
1246
+ 607,
1247
+ 118
1248
+ ],
1249
+ "page_idx": 13
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "The learning results of the proposed MC-PPO model on the MuJoCo tasks are shown in Figure 8. MC-PPO shows the best performance on Hopper and Walker- $_ { 2 d }$ among all models under the 1-million timesteps training budget. Both of our multi-critics variants (A2MC and MC-PPO) have won 6 out of the 8 MuJoCo tasks with relative performance margins (percentages in parentheses) larger than $2 5 \\%$ . ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 133,
1257
+ 826,
1258
+ 189
1259
+ ],
1260
+ "page_idx": 13
1261
+ },
1262
+ {
1263
+ "type": "image",
1264
+ "img_path": "images/47b1442f99fadd4e266ec71e7ffe602454c89c06ae82dbdc9f5bc465cc0f2b12.jpg",
1265
+ "image_caption": [
1266
+ "Figure 8: Performance on the MuJoCo continuous control benchmarks using PPO-based methods. Our proposed long/short-term reward characterization can be extended to the PPO method, i.e., the proposed multi-critic variant of PPO (MC-PPO). The shaded region denotes the standard deviation over 3 random seeds. "
1267
+ ],
1268
+ "image_footnote": [],
1269
+ "bbox": [
1270
+ 174,
1271
+ 202,
1272
+ 825,
1273
+ 377
1274
+ ],
1275
+ "page_idx": 13
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "E EXTENSION TO OFF-POLICY METHODS ",
1280
+ "text_level": 1,
1281
+ "bbox": [
1282
+ 174,
1283
+ 102,
1284
+ 535,
1285
+ 118
1286
+ ],
1287
+ "page_idx": 14
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Methods involving experience replay belong to the family of off-policy methods as they learn from off-policy trajectories. They were considered to be beyond the scope of this work, as we set out to improve the family of “on-policy” methods and we try to present as complete the analyses as possible (on both Atari and MuJoCo) in the main text. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 133,
1295
+ 825,
1296
+ 189
1297
+ ],
1298
+ "page_idx": 14
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Notwithstanding this, we have been actively exploring the potential of applying the proposed reward mechanism with off-policy methods (in particular, on the strong baseline Rainbow Hessel et al. (2018). For consistencies in comparisons, all hyperparameters (e.g., learning rate, distributional atoms, noisy net $\\sigma _ { 0 }$ ) are kept identical as in Hessel et al. (2018) except that we used a smaller replay buffer size of 50,000 for both the baseline and our method (due to limited compute). Moreover, we use the same experiment settings as in Sec 6 and we have NOT further tuned any parameters in VWR. We show preliminary results at 10 million time steps on Atari games in Figure 9 and we observe it is promising that introducing the proposed characterization of variability-weighted reward mechanism improves off-policy methods as well. ",
1303
+ "bbox": [
1304
+ 174,
1305
+ 195,
1306
+ 825,
1307
+ 321
1308
+ ],
1309
+ "page_idx": 14
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "The robustness of our proposed reward mechanism across both on-policy and off-policy frameworks suggests that the concept of “risk-adjusted return” Sharpe (1994) should apply in reinforcement learning in general, as it brings the desired property in faciliating better sample efficiency and learning stability. Given limited time and computing resources we are not able to present a full analysis on all the off-policy frameworks as we did for the on-policy methods within this paper (since training off-policy models takes significantly longer time). Potentially we aim to have the complete results in an additional paper in our future works. ",
1314
+ "bbox": [
1315
+ 173,
1316
+ 329,
1317
+ 825,
1318
+ 425
1319
+ ],
1320
+ "page_idx": 14
1321
+ },
1322
+ {
1323
+ "type": "image",
1324
+ "img_path": "images/49950388de336cc09e187e4bf97c4e8d8151b5317eb9c6ae2d692622fb39fa69.jpg",
1325
+ "image_caption": [
1326
+ "Figure 9: Performance of applying the variability-weighted reward to the Rainbow model on the Atari benchmark. We observe that introducing the proposed reward characterizations significantly expediate the learning in games such as “Jamesbond” and “NameThisName”, while showing consistent improvement towards the rest. The shaded region denotes the standard deviation over 2 random seeds. "
1327
+ ],
1328
+ "image_footnote": [],
1329
+ "bbox": [
1330
+ 189,
1331
+ 450,
1332
+ 812,
1333
+ 777
1334
+ ],
1335
+ "page_idx": 14
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "F CASE STUDY: PLAYING DOOM WITH REWARD SHAPING ",
1340
+ "text_level": 1,
1341
+ "bbox": [
1342
+ 173,
1343
+ 101,
1344
+ 679,
1345
+ 118
1346
+ ],
1347
+ "page_idx": 15
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "It is worth investigating whether the proposed auxiliary reward signal VWR can work “side-by-side” with carefully shaped rewards specific to some particular game scenario – for example, the FPS game Doom Lample & Chaplot (2017). As our proposed reward characterization is generic in design and orthogonal to reward shaping, we aim to validate that the concept of risk-adjusted return and variability weights can be equally applied under such shaping settings. ",
1352
+ "bbox": [
1353
+ 174,
1354
+ 133,
1355
+ 826,
1356
+ 204
1357
+ ],
1358
+ "page_idx": 15
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "To this end, we adopt the off-policy agent “Arnold” Lample & Chaplot (2017) with experience replay as our baseline and we calculate VWR (see Section 4]) based on the historical sequence of the shaped rewards defined in Lample & Chaplot (2017) (See the Table 4). For VWR parameters, we set $\\sigma _ { m a x } = 5$ since the maximum (minimum) attainable reward is $5 . 0 \\ : ( - 5 . 0 )$ under such reward shaping3. The rest of the game setup and bot numbers are defaulted to the code released by Lample & Chaplot (2017). ",
1363
+ "bbox": [
1364
+ 174,
1365
+ 210,
1366
+ 825,
1367
+ 294
1368
+ ],
1369
+ "page_idx": 15
1370
+ },
1371
+ {
1372
+ "type": "table",
1373
+ "img_path": "images/872c069e17fb0a0b16b5169cdd6906c92712179ea040d6c145f3a06bf76f374f.jpg",
1374
+ "table_caption": [
1375
+ "Table 4: Reward shaping settings as in Arnold Lample & Chaplot (2017) "
1376
+ ],
1377
+ "table_footnote": [],
1378
+ "table_body": "<table><tr><td>Type</td><td>Base /Dist Kill</td><td></td><td></td><td></td><td> Suicide Death Injured Use ammo Weapon /Ammo /Medkit /Armor</td></tr><tr><td>Value</td><td>0.0 5.0 -5.0</td><td>-5.0 -1.0</td><td></td><td>-0.2</td><td>1.0 / 1.0/ 1.0 /1.0</td></tr></table>",
1379
+ "bbox": [
1380
+ 173,
1381
+ 334,
1382
+ 828,
1383
+ 368
1384
+ ],
1385
+ "page_idx": 15
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "We follow the evaluation criterion of Track-1 in ViZDoom AI Competition 2016 using “Frags per episode”, i.e., the number of kills minus the number of suicides for the agent in one round of game (higher is better). The result under 50 training hours is shown in Figure 10 and we consistently observe that the Arnold agent can be significantly boosted with the help of VWR. This confirms that our proposed reward characterization is able to bring further improvements on top of both reward shaping and experience replay methods across domains. ",
1390
+ "bbox": [
1391
+ 173,
1392
+ 383,
1393
+ 825,
1394
+ 467
1395
+ ],
1396
+ "page_idx": 15
1397
+ },
1398
+ {
1399
+ "type": "table",
1400
+ "img_path": "images/219e99cb434509ef5c07a242db4012a9338561375cc58691a61c438f2aa4e136.jpg",
1401
+ "table_caption": [],
1402
+ "table_footnote": [],
1403
+ "table_body": "<table><tr><td colspan=\"3\">(a) Game statistics in 50 hours</td></tr><tr><td>After 24 hours</td><td>Arnold</td><td>Arnod + VWR</td></tr><tr><td>Kills</td><td>105</td><td>183</td></tr><tr><td>Frags</td><td>87</td><td>173</td></tr><tr><td>K/D ratio</td><td>1.48</td><td>2.08</td></tr><tr><td>After 50 hours</td><td></td><td></td></tr><tr><td>Kills</td><td>116</td><td>244</td></tr><tr><td>Frags</td><td>113</td><td>223</td></tr><tr><td>K/D ratio</td><td>2.00</td><td>2.65</td></tr></table>",
1404
+ "bbox": [
1405
+ 184,
1406
+ 506,
1407
+ 485,
1408
+ 715
1409
+ ],
1410
+ "page_idx": 15
1411
+ },
1412
+ {
1413
+ "type": "image",
1414
+ "img_path": "images/db55751aa06be9678b9b3cbbc236a6556fe7f569ecf88f6d40f94b718c84ff35.jpg",
1415
+ "image_caption": [
1416
+ "Figure 10: Doom - Limited Deathmatch (Track-1) "
1417
+ ],
1418
+ "image_footnote": [],
1419
+ "bbox": [
1420
+ 496,
1421
+ 523,
1422
+ 810,
1423
+ 753
1424
+ ],
1425
+ "page_idx": 15
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "(b) Learning results averaged over 2 random seeds ",
1430
+ "bbox": [
1431
+ 501,
1432
+ 507,
1433
+ 802,
1434
+ 520
1435
+ ],
1436
+ "page_idx": 15
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "G ABLATION STUDY: VWR V.S. ELIGIBILITY TRACE ",
1441
+ "text_level": 1,
1442
+ "bbox": [
1443
+ 174,
1444
+ 102,
1445
+ 630,
1446
+ 118
1447
+ ],
1448
+ "page_idx": 16
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "Eligibility traces $\\mathrm { T D } ( \\lambda )$ is widely used in bridging TD algorithms to Monte Carlo (MC) methods. \nEssentially, the discounted cumulative return can be formulated by not just toward “any n-step” return (using n-step look ahead), but toward any average of n-step look-ahead returns Sutton & Barto (2018). \nThe online variant of generalized advantage estimation using eligibility traces (GAE) Schulman et al. \n(2016) confirms that on-policy methods can benefit from $\\mathrm { T D } ( \\lambda )$ learning. ",
1453
+ "bbox": [
1454
+ 174,
1455
+ 133,
1456
+ 826,
1457
+ 204
1458
+ ],
1459
+ "page_idx": 16
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "For the proposed variability-weighted reward, the design theme is to look explicitly backward and to assess the past performance of the agent via the “risk-adjusted return” concept. These two mechanisms can be combined seamlessly via Eq. 8 and our empirical results suggest VWR brings further improvements on top of eligibility traces. ",
1464
+ "bbox": [
1465
+ 174,
1466
+ 210,
1467
+ 825,
1468
+ 266
1469
+ ],
1470
+ "page_idx": 16
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "As VWR and eligibility traces are thematically similar in some sense, we further perform an ablation study to contrast the contributions brought by VWR. As shown in Figure 11, we compare three different settings: (1) ACKTR $^ +$ GAE, (2) ACKTR $^ +$ vwr and (3) $\\mathbf { A C K T R } + \\mathbf { G A E } + \\mathbf { v w r }$ (i.e., the proposed A2MC). We observe that on average VWR brings greater improvements compared to eligibility traces, and the combination of both (i.e., A2MC) results in consistently good performance across the Atari testbed. ",
1475
+ "bbox": [
1476
+ 173,
1477
+ 272,
1478
+ 825,
1479
+ 356
1480
+ ],
1481
+ "page_idx": 16
1482
+ },
1483
+ {
1484
+ "type": "image",
1485
+ "img_path": "images/07967da42241a720cc821748d81b04ae5e04c2e52c7cff56b270943ae05ee01a.jpg",
1486
+ "image_caption": [
1487
+ "Figure 11: Ablation study of separately applying the (1) the eligibility traces (GAE) and (2) variabilityweighted reward (VWR) to the ACKTR model on the Atari benchmark. We observe that the combination of both (i.e., A2MC) results in consistently good performance across the Atari testbed. The shaded region denotes the standard deviation over 2 random seeds. "
1488
+ ],
1489
+ "image_footnote": [],
1490
+ "bbox": [
1491
+ 176,
1492
+ 366,
1493
+ 821,
1494
+ 626
1495
+ ],
1496
+ "page_idx": 16
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "H THE SHARPE RATIO ITSELF ",
1501
+ "text_level": 1,
1502
+ "bbox": [
1503
+ 176,
1504
+ 102,
1505
+ 441,
1506
+ 118
1507
+ ],
1508
+ "page_idx": 17
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "We have explored other forms of reward that fits the general idea of introducing variability weights to the reward shaping mechanism. One example is the “Sharpe Ratio” itself, which is defined as $\\begin{array} { r } { r ^ { S R } \\ = \\ \\frac { \\mathbb { E } [ r ] } { \\sigma ( r ) } } \\end{array}$ . In our initial studies, we found it only improved upon the baseline marginally, as rSR could end up emphasizing on penalizing high-variations and it might discourage the agent too intensively (see Figure below). Thats why we have sought an alternative formulation using the proposed $r ^ { v w r }$ and found that $A 2 M C _ { V \\bar { W } R } ~ > ~ A 2 M \\bar { C _ { S R } } ~ > ~ A C K T R$ . An example highlighting the vwr benefit is provided in Appendix A and a more thorough survey on key components in reward designs/formulations will be included in our future works. ",
1513
+ "bbox": [
1514
+ 173,
1515
+ 132,
1516
+ 826,
1517
+ 252
1518
+ ],
1519
+ "page_idx": 17
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "I ALGORITHM ",
1524
+ "text_level": 1,
1525
+ "bbox": [
1526
+ 174,
1527
+ 286,
1528
+ 308,
1529
+ 303
1530
+ ],
1531
+ "page_idx": 17
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "The learning algorithm of A2MC is shown in Algorithm 1. ",
1536
+ "bbox": [
1537
+ 173,
1538
+ 318,
1539
+ 558,
1540
+ 333
1541
+ ],
1542
+ "page_idx": 17
1543
+ },
1544
+ {
1545
+ "type": "image",
1546
+ "img_path": "images/253d4905e0b1e4bda4a2e88e4a8861653c091bb27f95f978262ed8fdd7f93806.jpg",
1547
+ "image_caption": [],
1548
+ "image_footnote": [],
1549
+ "bbox": [
1550
+ 663,
1551
+ 256,
1552
+ 816,
1553
+ 377
1554
+ ],
1555
+ "page_idx": 17
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "Algorithm 1 Advantage Actor Multi-Critic Learning (A2MC) ",
1560
+ "text_level": 1,
1561
+ "bbox": [
1562
+ 173,
1563
+ 390,
1564
+ 581,
1565
+ 406
1566
+ ],
1567
+ "page_idx": 17
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "1: Initialize parameters: $\\theta _ { a } , \\theta _ { v } ^ { j } , j \\in \\{ \\mathrm { s h o r t - t e r m } , \\mathrm { l o n g - t e r m } \\}$ \n2: Initialize look-ahead steps: $N$ , step counter: $T = 0$ , maximum step: $T _ { m a x }$ \n3: Initialize hot-wire probability: $\\epsilon$ \n4: Initialize environment: Env \n5: Initialize reward history: \\~r \n6: repeat \n7: Reset gradients: $d \\theta \\gets 0$ and $d \\theta _ { v } ^ { j } \\gets 0 , j \\in \\{ \\mathrm { s h o r t } \\mathrm { - t e r m } , \\mathrm { l o n g } \\mathrm { - t e r m } \\}$ \n8: Get state: $s _ { t } \\gets E n v$ \n9: $f l a g = 1$ , $a _ { r a n d }$ is uniformly sampled in action space with probability $\\epsilon$ , otherwise $f l a g = 0$ \n10: for $t = 0 : N - 1$ do \n11: Perform $a _ { t }$ according to policy $\\pi ( a _ { t } | s _ { t } ; \\theta _ { a } )$ if not f lag else $a _ { t } = a _ { r a n d }$ \n12: Received reward $r _ { t }$ and new state $s _ { t + 1 }$ , append $r _ { t }$ to $\\vec { \\bf r }$ \n13: Calculate $r _ { t } ^ { v w r }$ from $\\vec { \\mathbf { r } }$ based on Eq. (2-7) \n14: $T \\gets T + \\dot { 1 }$ \n15: end for \n16: $R ^ { \\mathrm { s h o r t - t e r m } } = V ( s _ { N } ; \\theta _ { v } ^ { \\mathrm { s h o r t - t e r m } } )$ \n17: $R ^ { \\mathrm { { l o n g - t e r m } } } = V ( s _ { N } ; \\theta _ { v } ^ { \\mathrm { { l o n g - t e r m } } } )$ \n18: for $i = N - 1$ to 0 step $- 1$ do \n19: $\\begin{array} { l } { { R _ { } ^ { \\mathrm { s h o r t - t e r m } } r _ { i } + \\bar { \\gamma } R ^ { \\mathrm { s h o r t - t e r m } } } } \\\\ { { R _ { } ^ { \\mathrm { l o n g - t e r m } } r _ { i } ^ { v w r } + \\gamma R ^ { \\mathrm { l o n g - t e r m } } } } \\end{array}$ \n20: \n21: Advantange gradients wrt $\\begin{array} { r } { \\theta _ { a } : d \\theta _ { a } \\gets d \\theta _ { a } + \\nabla _ { \\theta _ { a } } \\log \\pi ( a _ { i } | s _ { i } ; \\theta _ { a } ) \\sum _ { j } ( R ^ { j } - V ( s _ { i } ; \\theta _ { v } ^ { j } ) ) } \\end{array}$ \n22: for $j \\in$ {short-term, long-term} do \n23: Accumulate gradients wrt $\\dot { \\theta } _ { v } ^ { j } : d \\theta _ { v } ^ { j } d \\theta _ { v } ^ { j } + \\partial ( R ^ { j } - V ( s _ { i } ; \\theta _ { v } ^ { j } ) ) ^ { 2 } / \\partial \\theta _ { v } ^ { j }$ \n24: end for \n25: end for \n26: until $T \\geq T _ { m a x }$ ",
1572
+ "bbox": [
1573
+ 173,
1574
+ 412,
1575
+ 826,
1576
+ 781
1577
+ ],
1578
+ "page_idx": 17
1579
+ },
1580
+ {
1581
+ "type": "image",
1582
+ "img_path": "images/9fd25f5ccbc9cf96954f6fdd9cbc44a1bd0277357795eda6b54b4793ba59308d.jpg",
1583
+ "image_caption": [
1584
+ "Figure 12: Performance of A2MC on Atari games. The number in figure legend shows the average reward among the last 100 episodes upon 15 million timesteps and the percentage shows the performance margin as compared to ACKTR. The shaded region denotes the standard deviation over 2 random seeds. "
1585
+ ],
1586
+ "image_footnote": [],
1587
+ "bbox": [
1588
+ 181,
1589
+ 142,
1590
+ 815,
1591
+ 804
1592
+ ],
1593
+ "page_idx": 18
1594
+ }
1595
+ ]
parse/train/HJgZrsC5t7/HJgZrsC5t7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJgZrsC5t7/HJgZrsC5t7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rHCzkRd0UK/rHCzkRd0UK.md ADDED
@@ -0,0 +1,489 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Linear-Time Gromov Wasserstein Distances using Low Rank Couplings and Costs
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ The ability to compare and align related datasets living in heterogeneous spaces plays an increasingly important role in machine learning. The Gromov-Wasserstein (GW) formalism can help tackle this problem. Its main goal is to seek an assignment (more generally a coupling matrix) that can register points across otherwise incomparable datasets. As a non-convex and quadratic generalization of optimal transport (OT), GW is NP-hard. Yet, heuristics are known to work reasonably well in practice, the state of the art approach being to solve a sequence of nested regularized OT problems. While popular, that heuristic remains too costly to scale, with cubic complexity in the number of samples $n$ . We show in this paper how a recent variant of the Sinkhorn algorithm can substantially speed up the resolution of GW. That variant restricts the set of admissible couplings to those admitting a low rank factorization as the product of two sub-couplings. By updating alternatively each sub-coupling, our algorithm computes a stationary point of the problem in quadratic time with respect to the number of samples. When cost matrices have themselves low rank, our algorithm has time complexity ${ \mathcal { O } } ( n )$ . We demonstrate the efficiency of our method on simulated and real data.
11
+
12
+ # 17 1 Introduction
13
+
14
+ 18 The ever increasing interest for Gromov-Wasserstein... Several problems in machine learning
15
+ 19 involve comparing families of points that live in heterogeneous spaces. This situation arises typically
16
+ 20 when realigning two distinct sets of feature representations obtained from the similar source. Recent
17
+ 21 applications to single-cell genomics [15] and NLP [12, 1] provide two cases in point: Thousands
18
+ 22 of cells taken from the same tissue are split in two groups, each group is processed with a different
19
+ 23 experimental protocol, resulting in two distinct sets of heterogeneous feature vectors; Thousands of
20
+ 24 word embeddings for two languages are learned independently. In both cases, one expects to find
21
+ 25 a meaningful way to register points across sets living in heteregeneous spaces, since they contain
22
+ 26 similar overall information. That realignment is usually carried out using the Gromov-Wasserstein
23
+ 27 (GW) machinery proposed by Mémoli [26] and Sturm [36], which seeks a relaxed assignment matrix
24
+ 28 that is as “close” to an isometry as possible, using a quadratic score to quantify that closeness. GW
25
+ 29 has a lot of practical appeal: It has been used in supervised learning [41], generative modeling [7],
26
+ 30 domain adaptation [9], structured prediction [37], quantum chemistry [27] and alignment layers [17].
27
+ 31 ... despite its cubic cost. Because it is an NP-hard problem, these applications rely on approximating
28
+ 32 GW, typically by solving a sequence of OT problems using entropic regularization. This heuristic is
29
+ 33 efficient yet costly, since it requires $\mathcal { O } ( n ^ { 3 } )$ operations to register two sets of $n$ samples, a price that is
30
+ 34 paid when re-instantiating each OT problem. Our goal is to reduce substantially that complexity by
31
+ 35 exploiting low-factorization of both parameters (data) and variable (relaxed assignment) matrices in
32
+ 36 the GW problem, while maintaining state of the art performance in applications.
33
+ 37 Wasserstein: from cubic to linear complexity. A comparatively simpler problem is the registration
34
+ 38 of two populations embedded in the same space. This corresponds to the classic optimal transport
35
+ 39 (OT) problem, which has received considerable attention in ML [28]. OT has found applications
36
+ 40 in computer vision [29], NLP [24], single cell tracking [33] or multi-task regression in neuro
37
+ 41 imaging [22]. While the OT problem is originally cast as a linear program, with a ${ \overline { { O ( n ^ { 3 } \log ( n ) } } } )$ cost,
38
+ 42 many of these works rely on solving instead a penalized OT problem using Sinkhorn’s algorithm [34,
39
+ 43 13]. In its most naive implementation, the Sinkhorn has quadratic complexity [2]. Recent works
40
+ 44 achieve $O ( n )$ complexity by targeting the matrix-vector updates in Sinkhorn’s algorithm using
41
+ 45 low-rank approximations of the data kernel matrix [4, 3, 31]. This idea can be further improved by
42
+ 46 imposing the low-rank constraint on the optimization variables of the original OT problem [19], to
43
+ 47 modify Sinkorn’s steps by enforcing a low rank factorization of the coupling variable [32].
44
+ 48 Gromov-Wasserstein: from NP-hard to linear approximations. The GW problem replaces
45
+ 49 the linear objective function in OT by a non-convex quadratic objective. Much like OT is a re
46
+ 50 laxation of the optimal assignment problem, GW can be seen as a relaxation of the quadratic
47
+ 51 assignment problem (QAP). Both GW and QAP are NP-hard to solve [8]. In practice, iteratively
48
+ 52 minimizing a linearization of that quadratic objective using Sinkhorn works surprisingly well [20, 35].
49
+ 53 This method corresponds to a mirror-descent scheme [27],
50
+ 54 and in the special case of Euclidean distance matrices, the
51
+ 55 loss is concave and it can be also interpreted as a bi-linear
52
+ 56 relaxation [23]. In the most general case, this results in an
53
+ 57 $O ( n ^ { 4 } )$ algorithm (the objective is a quadratic function of a
54
+ 58 $n \times n$ relaxed assignment matrix), that is reduced to $O ( n ^ { 3 } )$
55
+ 59 when using separable losses [27], a price that remains too
56
+ 60 high for several ML applications. It is possible to replace
57
+ 61 the GW distance by cheaper yet only distantly related prox
58
+ 62 ies, such as lower bounds based on OT [26] (see also [30])
59
+ 63 or sliced projections [38]. Whether GW can be efficiently
60
+ 64 sped up remains an open question. We propose in this
61
+ 65 work a novel approach that leverages, as done recently for
62
+ 66 OT, low-rank methods. A very recent line of works attacks
63
+ 67 this problem by quantizing first the two input spaces to
64
+ 68 solve a GW problem of reduced size, thus effectively pro
65
+ 69 ducing an ad-hoc low-rank coupling [11]. A nice feature
66
+ 70 of this approach is that it maintains the triangular inequal
67
+ 71 ity and provides a valid upper-bound on the GW distance.
68
+ 72 Related approaches which also approximate GW distance
69
+ 73 using clustering methods (possibly in a recursive way)
70
+ 74 are [6] and [40]. We take in this paper a direct approach:
71
+ 75 instead of separating clustering and GW resolution in 2
72
+ 76 independent steps, we propose do address them simulta
73
+ 77 neously: our method seeks the least-costly (in GW sense)
74
+ 78 coupling with a low rank constraint, as illustrated in Fig. 1.
75
+ 79 Contributions We introduce the low-rank-GW problem, by imposing a low rank constraint on
76
+ 80 feasible couplings. This method works hand-in-hand with entropic regularization and leads to a
77
+ 81 Sinkhorn-like algorithm. Because of its exclusive reliance on matrix-vector products, the method
78
+ 82 streams well on GPUs. This method can also leverage low-rank factorizations of the input data
79
+ 83 matrices to further reduce the complexity of each iteration to reach linear time. Numerical evaluations
80
+ 84 on simulated and real datasets show that this low-rank approximation maintains the favorable
81
+ 85 property of entropic-regularized GW (namely its ability to compute “good” local minima) for a linear
82
+ 86 computational price, thus paving the way for larger scale uses of GW in ML.
83
+
84
+ ![](images/75f07794a62ec3be032add0ebc59f95a5f74a2fe87bba8885a69e073ad67fc1a.jpg)
85
+ Figure 1: Top row: we compute the GW coupling between two curves in 2D and 3D, with $n = m = 1 0 0 0 0$ points. These points are endowed with the squared L2 distance. Bottom row: coupling obtained with the SoTA entropic approach [20, 27], compared with our linear method with rank $r = 1 0$ . See Appendix D.1 for more details.
86
+
87
+ # 87 2 Background on the Gromov-Wasserstein Framework
88
+
89
+ 88 Comparing measured metric spaces. Let $( \mathcal { X } , d _ { \mathcal { X } } )$ and $( \mathcal { V } , d _ { \mathcal { V } } )$ be two metric spaces, and $\mu$ and
90
+ 89 $\nu$ two discrete probability measures on $\mathcal { X }$ and $\mathcal { V }$ , respectively. We write $\textstyle \mu : = \sum _ { i = 1 } ^ { n } a _ { i } \delta _ { x _ { i } }$ and
91
+ 90 $\begin{array} { r } { \nu : = \sum _ { i = j } ^ { m } b _ { j } \delta _ { y _ { j } } } \end{array}$ where $n , m \geq 1 , a , b$ are two histograms in the probability simplicies $\Delta _ { n } , \Delta _ { m }$ of
92
+ 91 respective size $n$ and $m$ , and $( x _ { 1 } , \ldots , x _ { n } )$ , $\left( y _ { 1 } , \ldots , y _ { m } \right)$ are two families in $\mathcal { X }$ and $\mathcal { V }$ . For $q \geq 1$ ,
93
+ 92 let us also denote $A : = ( d _ { \mathcal { X } } ^ { q } ( x _ { i } , x _ { i ^ { \prime } } ) ) _ { 1 \leq i , i ^ { \prime } \leq n } \in \mathbb { R } ^ { n \times n }$ and $B : = ( d _ { \mathcal { V } } ^ { q } ( x _ { j } , x _ { j ^ { \prime } } ) ) _ { 1 \leq i , i ^ { \prime } \leq m } \in \mathbb { R } ^ { m \times m }$
94
+ 93 X Ytwo pairwise cost matrices between the points in the respective supports of $\mu$ and $\nu$ . The Gromov
95
+ 94 Wasserstein (GW) discrepancy between two discrete metric measure spaces $( \mu , d _ { \mathcal { X } } )$ and $( \nu , d _ { 3 } )$ is
96
+ 95 the solution of the following non-convex quadratic problem, instantiated here for simplicity as a
97
+ 96 function of $( a , A )$ and $( b , B )$ , which contain all the information that is needed:
98
+
99
+ $$
100
+ \mathbf { G } \mathbf { W } ( ( a , A ) , ( b , B ) ) = \operatorname* { m i n } _ { P \in \Pi _ { a , b } } \mathcal { E } _ { A , B } ( P ) , \mathrm { w h e r e ~ } \Pi _ { a , b } : = \{ P \in \mathbb { R } _ { + } ^ { n \times m } | P \mathbf { 1 } _ { m } = a , P ^ { T } \mathbf { 1 } _ { n } = b \} ,
101
+ $$
102
+
103
+ 97 and the energy $\mathcal { E } _ { A , B }$ is a quadratic function parameterized by a loss $L : \mathbb { R } \times \mathbb { R } \to \mathbb { R }$ :
104
+
105
+ $$
106
+ \mathcal { E } _ { A , B } ( P ) : = \sum _ { i , j , i ^ { \prime } , j ^ { \prime } } L ( A _ { i , i ^ { \prime } } , B _ { j , j ^ { \prime } } ) P _ { i , j } P _ { i ^ { \prime } , j ^ { \prime } } \ .
107
+ $$
108
+
109
+ 98 A typical choice of the loss is the $L ^ { p }$ distance $L ( a , b ) = | a - b | ^ { p }$ with $p \geq 1$ . In that case, [26]
110
+ 99 proves that $\mathrm { G W } ^ { 1 / p }$ defines a distance on the space of metric measure spaces quotiented by measure
111
+ 100 preserving isometries. When $p = 2$ , as we consider from now on, the GW objective can be evaluated
112
+ 101 efficiently using the marginal constraints imposed on $P$ , as follows [27]:
113
+
114
+ $$
115
+ \begin{array} { r } { \mathcal { E } _ { A , B } ( P ) = \langle A ^ { \odot 2 } a , a \rangle + \langle B ^ { \odot 2 } b , b \rangle - 2 \langle A P B , P \rangle . } \end{array}
116
+ $$
117
+
118
+ 02 Indeed, (3) can be computed efficiently in $\mathcal { O } ( n ^ { 2 } m + n m ^ { 2 } )$ operations, using only matrix/matrix multiplications, instead of the 103 $\mathcal { O } ( n ^ { 2 } m ^ { 2 } )$ complexity of the naive evaluation of (2).
119
+
120
+ 104 Entropic Gromov-Wasserstein. The original GW problem (1) can be regularized using an entropic
121
+ 105 term [20, 35, 27], leading to the following problem:
122
+
123
+ $$
124
+ \mathbf { G } \mathbf { W } _ { \varepsilon } ( ( a , A ) , ( b , B ) ) = \operatorname* { m i n } _ { P \in \Pi _ { a , b } } \mathcal { E } _ { A , B } ( P ) - \varepsilon H ( P ) ,
125
+ $$
126
+
127
+ 106 where $\begin{array} { r } { H ( P ) ~ : = ~ - \sum _ { i , j } P _ { i , j } ( \log ( P _ { i , j } ) ~ - ~ 1 ) } \end{array}$ is the entropy of $P$ . By applying a Mirror
128
+ 107 Descent (MD) scheme with respect to the KL divergence and by choosing the step-size to
129
+ 108 be $\gamma ~ = ~ 1 / \varepsilon$ , Peyré et al. [27] provide a simple algorithm which consists in solving a se
130
+ 109 quence of regularized OT problem as presented in Algorithm 1. Indeed, each KL pro
131
+ 110 jection in Algorithm 1 can be computed efficiently thanks to the Sinkhorn algorithm [13].
132
+ 112 Computational complexity. Given a cost matrix $C$ , the
133
+ 113 KL projection of $K _ { \varepsilon }$ onto the polytope $\textstyle \prod ( a , b )$ , where
134
+ 114 ${ \mathrm { K L } } ( { \bar { P } } , { \bar { Q } } ) = \langle P , \log ( P / Q ) - 1 \rangle$ , is carried out in the inner
135
+ 115 loop of Algo. 1 using the Sinkhorn algorithm, through
136
+ 116 matrix-vector products. This quadratic complexity (in
137
+ 117 red) is dominated by the cost of updating matrix $C$ at each
138
+ 118 iteration in Algorithm 1, which requires $\mathcal { O } ( n ^ { 2 } m + n m ^ { 2 } )$
139
+ 119 algebraic operations (cubic, in violet). As noted above,
140
+ 120 evaluating the objective $\mathcal { E } _ { A , B } ( \boldsymbol { P } )$ has the same order. In
141
+ 121 the following we show that by considering a low rank
142
+ 122 exact decomposition (or approximation) of the distance
143
+ 123 matrices, the cubic cost of reupdating $C$ and subsequently
144
+ 124 evaluating $\mathcal { E } _ { A , B }$ can be brought down to quadratic.
145
+
146
+ # Algorithm 1 Entropic-GW
147
+
148
+ # 25 3 Exploiting a Low-Rank Factorization for Cost Matrices
149
+
150
+ Exact factorization of cost matrices. In this section we consider the case where the cost matrices $A$ and $B$ admit a low-rank factorization. More precisely, we make the following assumption.
151
+
152
+ Assumption 1. Assume that $A$ and $B$ admit a low-rank factorization, that is there exists $A _ { 1 } , A _ { 2 } \in$ $\mathbb { R } ^ { n \times d }$ and $B _ { 1 } , B _ { 2 } \in \mathbb { R } ^ { m \times d ^ { \prime } }$ such that $A = A _ { 1 } A _ { 2 } ^ { T }$ and $B = B _ { 1 } B _ { 2 } ^ { T }$ , where $d \ll n , d ^ { \prime } \ll m$ .
153
+
154
+ 130 A case in point is when both $A$ and $B$ are squared Euclidean distance matrices, with a sample size
155
+ 131 that is larger than ambient dimension. This case is highly relevant, covering many applications of OT
156
+ 132 to ML. The $d \ll n$ assumption is also likely to hold for most applications, since cases where $d \gg n$
157
+ 133 are known to pose challenges to the estimation of OT [16, 39]. Writing $X = [ x _ { 1 } , \ldots , x _ { n } ] \in \mathbb { R } ^ { d \times n }$ , if
158
+
159
+ 134 $A = \left[ \Vert x _ { i } - x _ { j } \Vert _ { 2 } ^ { 2 } \right] _ { i , j }$ , then one has, writing $z = ( X ^ { \odot 2 } ) ^ { T } \mathbf { 1 } _ { d } \in \mathbb { R } ^ { n }$ that $A = z \mathbf { 1 } _ { n } ^ { T } + \mathbf { 1 } _ { n } z ^ { T } - 2 X ^ { T } X$ . Therefore by denoting 135 $A _ { 1 } = [ z , \mathbf { 1 } _ { n } , - \sqrt { 2 } X ^ { T } ] \in \mathbb { R } ^ { n \times ( d + 2 ) }$ and $A _ { 2 } = [ \mathbf { 1 } _ { n } , z , \sqrt { 2 } X ^ { T } ] \in \mathbb { R } ^ { n \times ( d + 2 ) }$ 136 we obtain the factorization above.
160
+
161
+ 137 Under Assumption 1, the complexity of Algo. 1 is downgraded to quadratic in sample size: the two
162
+ 138 operations that make Algo. 1 cubic lie in the updates of the cost and the computation of the objective.
163
+ 139 Observe that for any given $P \in \mathbb { R } ^ { n \times m }$ , one can compute at each iteration
164
+
165
+ $$
166
+ \begin{array} { r } { C = - 4 A _ { 1 } A _ { 2 } ^ { T } P B _ { 1 } B _ { 2 } ^ { T } } \end{array}
167
+ $$
168
+
169
+ 140 in $n m ( d + d ^ { \prime } ) + d d ^ { \prime } ( n + m )$ algebraic operations. Moreover thanks to the reformulation of
170
+ 141 $\mathcal { E } _ { A , B } ( \boldsymbol { P } )$ given in (3), one can compute it in quadratic time as well. Indeed writing $G _ { 1 } : =$
171
+ 142 $A _ { 1 } ^ { T } P B _ { 2 }$ and $G _ { 2 } : = A _ { 2 } ^ { T } P B _ { 1 }$ , both in $\mathbb { R } ^ { d \times d ^ { \prime } }$ , one has $\langle A P B , P \rangle = \mathbf { 1 } _ { d } ^ { T } ( G _ { 1 } \odot G _ { 2 } ) \mathbf { 1 } _ { d ^ { \prime } }$ . Com
172
+ 143 puting $G _ { 1 } , G _ { 2 }$ given $P$ requires only $2 ( n m d + m d d ^ { \prime } )$ , and computing their dot product adds
173
+ 144 $d d ^ { \prime }$ algebraic operations. The overall complexity to compute $\mathcal { E } _ { A , B } ( { \cal P } )$ is $\mathcal { O } ( n m d + m d d ^ { \prime } )$ .
174
+ 146 General distance matrices. When the original
175
+ 147 cost matrices $A$ , are not low-rank but describe
176
+ 148 distances, we propose to use a recent body of
177
+ 149 work that output their low-rank approximation
178
+ 150 in linear time [5, 21]. These algorithms produce,
179
+ 151 for any distance matrix $D \in \bar { \mathbb { R } } ^ { n \times m }$ and $\gamma > 0$ ,
180
+ 152 matrices $D _ { 1 } \in \mathbb { R } ^ { n \times d }$ , $D _ { 2 } \in \mathbb { R } ^ { m \times d }$ in $\mathcal { O } ( ( m +$
181
+ 153 $\scriptstyle n ) \mathtt { p o l y } ( { \frac { d } { \gamma } } ) )$ algebraic operations such that with
182
+ 154 probability at least 0.99 one has
183
+
184
+ # Algorithm 2 Quadratic Entropic-GW
185
+
186
+ $$
187
+ \| D - D _ { 1 } D _ { 2 } ^ { T } \| _ { F } ^ { 2 } \leq \| D - C _ { d } \| _ { F } ^ { 2 } + \gamma \| D \| _ { F } ^ { 2 }
188
+ $$
189
+
190
+ 155 where $C _ { d }$ denotes the best rank- $d$ approximation
191
+ 156 to $D$ . We fall back on this approach to obtain a
192
+ 157 low-rank factorization of a distance matrix in lin
193
+ 158 ear time whenever needed, aware that this incurs
194
+ 159 an additional approximation. See Appendix B
195
+ 160 for more details.
196
+
197
+ # end
198
+
199
+ $$
200
+ \begin{array} { r l } & { c _ { 1 } \gets \langle A ^ { \odot 2 } a , a \rangle + \langle B ^ { \odot 2 } b , b \rangle \quad \mathcal { O } ( \mathrm { n r } } \\ & { G _ { 2 } \gets A _ { 2 } ^ { T } P B _ { 1 } \quad \mathrm { n m d ~ + ~ m d d } ^ { \flat } , } \\ & { G _ { 1 } \gets A _ { 1 } ^ { T } P B _ { 2 } \quad \mathrm { n m d ~ + ~ m d d } ^ { \flat } } \\ & { c _ { 2 } \gets - 2 \mathbf { 1 } _ { d } ^ { T } ( G _ { 1 } \odot G _ { 2 } ) \mathbf { 1 } _ { d ^ { \prime } } \quad \mathcal { O } ( \mathrm { d d } ^ { \flat } ) } \\ & { \xi _ { A , B } ( P ) \gets c _ { 1 } + c _ { 2 } } \\ & { \mathbf { R e t u r n } \colon \mathcal { E } _ { A , B } ( P ) } \end{array}
201
+ $$
202
+
203
+ # 161 4 Imposing a Low Nonnegative Low-Rank for the Coupling
204
+
205
+ In this section, we shift our attention to a different opportunity for speed-ups, without assuming that Assumption 1 holds: we regularize the GW problem problem by decomposing the coupling as a product of two low-rank couplings, in the footsteps of [18, 32], using the following definition:
206
+
207
+ 165 Definition 1. Given $M \in \mathbb { R } ^ { n \times m }$ , the nonnegative (NN) rank of $M$ is the smallest number of
208
+ 166 nonnegative rank-one matrices into which the matrix can be decomposed additively:
209
+
210
+ $$
211
+ \operatorname { r k } _ { + } ( M ) : = \operatorname* { m i n } \left\{ q | M = \sum _ { i = 1 } ^ { q } R _ { i } , \forall i , \operatorname { r k } ( R _ { i } ) = 1 , R _ { i } \geq 0 \right\} .
212
+ $$
213
+
214
+ 167 Following [18, 32], we propose to constrain GW, enforcing a rank $r$ on the coupling:
215
+
216
+ $$
217
+ \mathrm { G W } \mathrm { L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) : = \operatorname* { m i n } _ { P \in \Pi _ { a , b } ( r ) } \xi _ { A , B } ( P ) , \mathrm { ~ w h e r e ~ } \Pi _ { a , b } ( r ) : = \{ P \in \Pi _ { a , b } , \mathrm { r k } _ { + } ( P ) \leq r \} \ : .
218
+ $$
219
+
220
+ 168 Note that the minimum is always attained as $\Pi _ { a , b } ( r )$ is compact and the objective is continuous.
221
+ 169 In [32], the authors show that one can parameterize any coupling in $\Pi _ { a , b } ( r )$ as a product of two
222
+ 170 low-rank couplings linked by a common marginal. For any $g \in \Delta _ { r } ^ { * }$ , the interior of $\Delta _ { r }$ , writing
223
+
224
+ $$
225
+ \Pi _ { a , g , b } : = \Bigl \{ P \in \mathbb { R } _ { + } ^ { n \times m } , P = Q \mathrm { d i a g } ( 1 / g ) { R } ^ { T } , Q \in \Pi _ { a , g } , \mathrm { a n d } R \in \Pi _ { b , g } \Bigr \} .
226
+ $$
227
+
228
+ one has that 171 $\begin{array} { r } { \bigcup _ { g \in \Delta _ { r } ^ { * } } \Pi _ { a , g , b } = \Pi _ { a , b } ( r ) } \end{array}$ . Therefore GW-LR introduced in (5) can be reformulated as 172 the following optimization problem
229
+
230
+ $$
231
+ \mathrm { G W - L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) = \operatorname* { m i n } _ { ( Q , R , g ) \in { \mathcal C } ( a , b , r ) } { \mathcal E } _ { A , B } ( Q \mathrm { d i a g } ( 1 / g ) R ^ { T } )
232
+ $$
233
+
234
+ 173 where $\mathcal { C } ( a , b , r ) : = \mathcal { C } _ { 1 } ( a , b , r ) \cap \mathcal { C } _ { 2 } ( r )$ , with
235
+
236
+ $$
237
+ \begin{array} { r } { \mathcal { C } _ { 1 } ( a , b , r ) : = \Big \{ ( Q , R , g ) \in \mathbb { R } _ { + } ^ { n \times r } \times \mathbb { R } _ { + } ^ { m \times r } \times \big ( \mathbb { R } _ { + } ^ { * } \big ) ^ { r } \mathrm { s . t . } Q \mathbf { 1 } _ { r } = a , R \mathbf { 1 } _ { r } = b \Big \} , } \\ { \mathcal { C } _ { 2 } ( r ) : = \Big \{ ( Q , R , g ) \in \mathbb { R } _ { + } ^ { n \times r } \times \mathbb { R } _ { + } ^ { m \times r } \times \mathbb { R } _ { + } ^ { r } \mathrm { s . t . } Q ^ { T } \mathbf { 1 } _ { n } = R ^ { T } \mathbf { 1 } _ { m } = g \Big \} . } \end{array}
238
+ $$
239
+
240
+ 174 Stabilization of the Method. [32] propose to stabilize the objective defined in (6) by adding to the
241
+ 175 constraints a lower bound $\alpha$ on the weight vector $g$ such that $g \geq \alpha$ coordinate-wise. Indeed, as
242
+ 176 a solution of (6) must satisfies $g > 0$ coordinate-wise, then for $\alpha$ sufficiently small, the solution
243
+ 177 of the same problem where one adds the constraint $g \geq \alpha$ will remain the same. Therefore let us
244
+ 178 introduce our new set of constraints $\mathcal { C } ( a , b , r , \alpha ) : = \mathcal { C } _ { 1 } ( a , b , r , \alpha ) \cap \mathcal { C } _ { 2 } ( r )$ where $\mathcal { C } _ { 1 } ( a , b , r , \alpha ) : =$
245
+ 179 $\mathcal { C } _ { 1 } ( a , b , r ) \cap \{ ( Q , R , g ) \mid g \geq \alpha \}$ . Another way to stabilize the method is by considering a double
246
+ 180 regularization scheme as proposed in [32] where in addition of constraining the nonnegative rank
247
+ 181 of the coupling, we regularize the objective by adding an entropic term in $( Q , R , g )$ , which is to be
248
+ 182 understood as that of the values of the three respective entropies evaluated for each term.
249
+
250
+ $$
251
+ \mathrm { G W } \mathrm { L R } _ { \varepsilon , \alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) : = \operatorname* { m i n } _ { ( Q , R , g ) \in { \mathscr C } ( a , b , r , \alpha ) } { \mathscr E } _ { A , B } ( Q \mathrm { d i a g } ( 1 / g ) R ^ { T } ) - \varepsilon H ( ( Q , R , g ) ) ~ .
252
+ $$
253
+
254
+ 183 Mirror Descent Scheme. As in [27], we propose to use a MD scheme with respect to the $\mathrm { K L }$
255
+ 184 divergence to approximate $\mathbf { G } \mathbf { W } \mathbf { - L R } _ { \varepsilon , \alpha } ^ { ( r ) }$ in (7). More precisely, for any $\varepsilon \geq 0$ , the MD scheme leads
256
+ 185 for all $k \geq 0$ to the following updates which require solving a convex barycenter problem per step:
257
+
258
+ $$
259
+ ( Q _ { k + 1 } , R _ { k + 1 } , g _ { k + 1 } ) : = \underset { \zeta \in \mathcal { C } ( a , b , r , \alpha ) } { \mathrm { a r g m i n ~ } } \mathrm { K L } ( \zeta , K _ { k } )
260
+ $$
261
+
262
+ 186 where $( Q _ { 0 } , R _ { 0 } , g _ { 0 } ) \in \mathcal { C } ( a , b , r )$ is an initial point such that $ { Q _ { 0 } } \ > \ 0$ and $\begin{array} { r l r } { R _ { 0 } } & { { } > } & { 0 } \end{array}$ ,
263
+ 187 $P _ { k } : = Q _ { k } \mathrm { d i a g } ( 1 / g _ { k } ) R _ { k } ^ { T }$ $\mathring { \mathbf { \ i } } _ { k } , \ \mathbf { K } _ { k } : = \big ( \boldsymbol { K } _ { k } ^ { ( 1 ) } , \boldsymbol { K } _ { k } ^ { ( 2 ) } , \boldsymbol { K } _ { k } ^ { ( 3 ) } \big ) , \ \boldsymbol { K } _ { k } ^ { ( 1 ) } : = \mathrm { e x p } ( 4 \gamma A P _ { k } B R _ { k } \operatorname { d i a g } ( 1 /$
264
+ 188 $( \gamma \varepsilon \mathrm { ~ - ~ } 1 ) \log ( Q _ { k } ) )$ , $\begin{array} { r c l } { K _ { k } ^ { ( z ) } } & { : = } & { \exp ( 4 \gamma B P _ { k } ^ { T } D Q _ { k } \mathrm { d i a g } ( 1 / g _ { k } ) - ( \gamma \varepsilon - 1 ) \log ( R _ { k } ) ) } \end{array}$ , $K _ { k } ^ { ( 3 ) } \ : =$
265
+ 189 $\exp ( - 4 \gamma \omega _ { k } / g _ { k } ^ { 2 } - ( \gamma \varepsilon - 1 ) \log ( g _ { k } ) )$ with $[ \omega _ { k } ] _ { i } : = [ Q _ { k } ^ { T } A P _ { k } B R _ { k } ] _ { i , i }$ for all $i \in \{ 1 , \ldots , r \}$ and
266
+ 190 $\gamma$ is a positive step size. Solving (8) can be done efficiently thanks to the Dykstra’s Algorithm as
267
+ 191 showed in [32]. See Appendix $\textrm { C }$ for more details.
268
+
269
+ Initialization. To initialize our algorithm, we adapt the First Lower Bound of [26] to our case of interest. More precisely, we show the following Proposition. See appendix A for the proof.
270
+
271
+ 194 Proposition 1. Let us denote $\tilde { x } = A ^ { \odot 2 } a \in \mathbb { R } ^ { n }$ , $\tilde { y } = B ^ { \odot 2 } b \in \mathbb { R } ^ { m }$ and $\tilde { C } = ( | \tilde { x } _ { i } - \tilde { y } _ { j } | ^ { 2 } ) _ { i , j } \in \mathbb { R } ^ { n \times m }$
272
+ 195 Then for all $\varepsilon \geq 0$ and $r \geq 1$ we have,
273
+
274
+ $$
275
+ \mathrm { G W - L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) \geq \operatorname* { m i n } _ { ( Q , R , g ) \in { \mathcal C } ( a , b , r , \alpha ) } \langle \tilde { C } , Q \mathrm { d i a g } ( 1 / g ) R ^ { T } \rangle - \varepsilon H ( ( Q , R , g ) ) ~ .
276
+ $$
277
+
278
+ 196 Note that the RHS of the inequality (9) is exactly the problem studied in [32] for which an algorithm
279
+ 197 was proposed. Therefore to initialize our algorithm, we propose to use their approach. Note that here
280
+ 198 the cost $\tilde { C }$ is the squared Euclidean distance between two families $\{ \tilde { x } _ { 1 } , \ldots , \tilde { x } _ { n } \}$ and $\{ \tilde { y } _ { 1 } , \dots , \tilde { y } _ { m } \}$
281
+ 199 in 1-D which admits a low-rank factorization. Therefore we can apply the linear-time version of the
282
+ 200 algorithm presented in [32] to compute the solution. Algorithm 3 summarizes our approach, where
283
+ 201 $\mathcal { D } ( \cdot )$ denotes the operator extracting the diagonal of a square matrix.
284
+ 202 Computational Cost. Computing the initialization goes through the computations of $\tilde { x }$ and $\tilde { y }$ which
285
+ 203 requires $O ( n ^ { 2 } + m ^ { 2 } )$ algebraic operations. Moreover, applying the algorithm proposed in [32]
286
+ 204 when the underlying cost is the squared Euclidean distances between two families in 1-D needs
287
+ 205 only $\mathcal { O } ( ( n + m ) r )$ algebraic operations. Solving the barycenter problem as defined in (8) can be
288
+ 206 207 done given $( K _ { k } ^ { ( 1 ) } , \dot { K } _ { k } ^ { ( 2 ) } , K _ { k } ^ { ( 3 ) } )$ ) Dykstra’s Algorithm. Indeed in [32, Algorithm, each iteration of their algorithm requires only $\mathcal { O } ( ( n + m ) r )$ show thatalgebraic
289
+ 208 operations since it involves only matrix/vector multiplications. However computing the kernel
290
+ 209 matrices $( K _ { k } ^ { ( 1 ) } , K _ { k } ^ { ( 2 ) } , K _ { k } ^ { ( 3 ) } )$ at each iteration of Algorithm 3 requires a quadratic complexity with
291
+ 210 respect to the number of samples. Overall the proposed algorithm, while faster than the cubic
292
+ 211 implementation proposed in [27], still needs $\mathcal { O } ( ( n ^ { 2 } + m ^ { 2 } ) r )$ operations per iteration. In the following
293
+ 212 we will see that by combining both nonnegative low-rank constraints on the coupling and low-rank
294
+ 213 approximations of the distance matrices, we can obtain a linear time algorithm with respect to the
295
+ 214 number of samples which computes an approximation of the GW distance.
296
+
297
+ $\mathrm { A l g o r i t h m } 3 \mathrm { L o w - R a n k } \mathrm { G W } , \mathrm { G W - L R } _ { \varepsilon , \alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$
298
+
299
+ for $k = 1 , \dots$ do
300
+
301
+ # end
302
+
303
+ Return:
304
+
305
+ 215 Convergence of the mirror descent. Even if the objective (7) is not convex in $( Q , R , g )$ , we obtain
306
+ 216 the non-asymptotic stationary convergence of the MD algorithm in this setting. For that purpose
307
+ 217 we consider the same convergence criterion as the one proposed in [32] to obtain non-asymptotic
308
+ 218 stationary convergence of the MD scheme defined as
309
+
310
+ $$
311
+ \Delta _ { \varepsilon , \alpha } ( \pmb { \xi } , \gamma ) : = \frac { 1 } { \gamma ^ { 2 } } ( \mathrm { K L } ( \pmb { \xi } , \mathcal { G } _ { \varepsilon , \alpha } ( \pmb { \xi } , \gamma ) ) + \mathrm { K L } ( \mathcal { G } _ { \varepsilon , \alpha } ( \pmb { \xi } , \gamma ) , \pmb { \xi } ) )
312
+ $$
313
+
314
+ where 219 $\begin{array} { r } { \mathcal { G } _ { \varepsilon , \alpha } ( \pmb { \xi } , \gamma ) : = \mathrm { a r g m i n } _ { \zeta \in \mathcal { C } ( a , b , r , \alpha ) } \{ \langle \nabla \mathcal { E } _ { A , B } ( \pmb { \xi } ) , \pmb { \zeta } \rangle + \frac { 1 } { \gamma } \mathrm { K L } ( \zeta , \pmb { \xi } ) \} } \end{array}$ . For any $1 / r \ge \alpha > 0$ , we 220 show in the following proposition the non-asymptotic stationary convergence of the MD scheme 221 applied to the problem (7). See Appendix A for the proof.
315
+
316
+ 222 Proposition 2. Let $\varepsilon \geq 0$ , $\textstyle { \frac { 1 } { r } } \geq \alpha > 0$ and $N \geq 1$ . By denoting $L _ { \varepsilon , \alpha } : = 2 7 ( \| A \| _ { 2 } \| B \| _ { 2 } / \alpha ^ { 4 } + \varepsilon )$ and by considering a constant stepsize in the MD scheme 223 $\begin{array} { r } { { \bf \Phi } ^ { \left( 8 \right) } \gamma = \frac { 1 } { 2 L _ { \varepsilon , \alpha } } } \end{array}$ , we obtain that
317
+
318
+ $$
319
+ \operatorname* { m i n } _ { 1 \leq k \leq N } \Delta _ { \varepsilon , \alpha } ( ( Q _ { k } , R _ { k } , g _ { k } ) , \gamma ) \leq \frac { 4 L _ { \varepsilon , \alpha } D _ { 0 } } { N } .
320
+ $$
321
+
322
+ where 224 $D _ { 0 } : = \mathscr { E } _ { A , B } ( Q _ { 0 } \mathrm { d i a g } ( 1 / g _ { 0 } R _ { 0 } ^ { T } ) - \mathbf { G } \mathbf { W } \mathbf { - } \mathbf { L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$ is the distance of the initial value 225 to the optimal one.
323
+
324
+ Recall that for $\alpha$ sufficiently small, we have $\mathrm { { \bf G W - L R } } _ { \varepsilon , \alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) = { \bf G W - L R } _ { \varepsilon } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$ . Thus Proposition 2 show that our algorithm reach a stationary point of (7). In particular, if $\varepsilon = 0$ , the proposed algorithm converges towards a stationary point of (5).
325
+
326
+ # 229 5 Double Low-rank Approach for Linear Time GW
327
+
328
+ Almost all operations in Algorithm 3 are linear time, except for the three updates highlighted in red, involving $C _ { 1 }$ and $C _ { 2 }$ , and the computations of $\tilde { x } = A ^ { \odot \tilde { 2 } } a$ and $\tilde { y } = B ^ { \odot 2 } b$ as they still require a quadratic number of algebraic operations. When adding Assumption 1 from $\ S 3$ to the rank constrained approach from $\ S 4$ , we notice that the strengths of both approaches can work hand in hand, both in easier initial evaluations of $\tilde { x } , \tilde { y }$ , but, most importantly, at each new recomputation of a factorized linearization of the quadratic objective:
329
+
330
+ Linear time outfactorization for rms. Because . Indeed, rema $A$ admits a that for a low-rank. Therefore $A ^ { \odot 2 }$ $\begin{array} { r } { \boldsymbol { x } , \boldsymbol { y } \in \mathbb { R } ^ { d } , \langle \boldsymbol { x } , \boldsymbol { y } \rangle ^ { 2 } = \sum _ { i , j = 1 } ^ { d } x _ { i } x _ { j } y _ { i } y _ { j } } \end{array}$
331
+
332
+ by studying the rows of matrices $A _ { 1 } : = [ a _ { 1 } ^ { ( 1 ) } ; . . . ; a _ { n } ^ { ( 1 ) } ]$ and $A _ { 2 } : = [ a _ { 1 } ^ { ( 2 ) } ; . . . ; a _ { n } ^ { ( 2 ) } ]$ , if one writes $\psi ( \boldsymbol { x } ) : = \mathrm { V e c t } ( \boldsymbol { x } \boldsymbol { x } ^ { T } ) \in \mathbb { R } ^ { d ^ { 2 } }$ where $\mathrm { V e c t } ( \cdot )$ is the vectorization operation, we obtain that
333
+
334
+ $$
335
+ \begin{array} { r } { A ^ { \odot 2 } = \tilde { A } _ { 1 } \tilde { A _ { 2 } } ^ { T } \mathrm { ~ w h e r e ~ } \tilde { A _ { 1 } } = [ \psi ( a _ { 1 } ^ { ( 1 ) } ) , \dots , \psi ( a _ { n } ^ { ( 1 ) } ) ] ^ { T } , \tilde { A _ { 2 } } = [ \psi ( a _ { 1 } ^ { ( 2 ) } ) , \dots , \psi ( a _ { n } ^ { ( 2 ) } ) ] ^ { T } \ . } \end{array}
336
+ $$
337
+
338
+ In Algorithm 3, the line “Step 236 $( \star ) ^ { \dagger }$ can thus be replaced by $\tilde { x } \gets \tilde { A _ { 1 } } \tilde { A _ { 2 } } ^ { T } a$ and $\tilde { y } \gets \tilde { B _ { 1 } } \tilde { B _ { 2 } } ^ { T } b$ Note 237 that computing $\tilde { A } _ { 1 }$ given $A _ { 1 }$ requires only $\mathcal { O } ( n d ^ { 2 } )$ operations, so that this alternate code only takes 238 $\mathcal { O } ( n d ^ { 2 } ) \bar { + } \mathcal { O } ( \bar { m } ( d ^ { \prime } ) ^ { 2 } )$ operations.
339
+
340
+ 239 Linear time linearization of the GW objective. The linearization step, the critical step in Algo.1
341
+ 240 that consists in updating $C$ at each iteration, consumes a substantial portion of the computational
342
+ 241 budget of GW. Introducing the low-rank Sinkhorn approach makes this step quadratic in Algo.3; the
343
+ 242 complexity of that step is also quadratic using the low-rank assumption on costs $A$ and $B$ , in Algo.2.
344
+ 243 There is therefore an opportunity to marry both to speed-up that important step. We argue that this is
345
+ 244 indeed what happens, in the sense that combining the two yields indeed linear time complexities in
346
+ 245 sample sizes, by replacing in Algorithm 3, the lines “Step $( \star \star ) ^ { \flat }$ b y
347
+
348
+ $$
349
+ { \cal C } _ { 1 } \gets - A _ { 1 } A _ { 2 } ^ { T } Q \mathrm { d i a g } ( 1 / g ) \quad \mathrm { a n d } \quad { \cal C } _ { 2 } \gets R ^ { T } B _ { 2 } B _ { 1 } ^ { T } .
350
+ $$
351
+
352
+ 246 Note that this speed-up would not be achieved using other approaches that output a low rank
353
+ 247 approximation of the transport plan [4, 3, 31]. The crucial obstacle to using these methods here is that
354
+ 248 the cost matrix $C$ in GW is “synthetic“, in the sense that it is the output of a matrix product $A P B$
355
+ 249 involving the very last transport $P$ . This stands in stark contrast with the requirements in [4, 3, 31]
356
+ 250 that the kernel matrix corresponding to $K _ { \varepsilon } = e ^ { - C / \varepsilon }$ admits favorable properties, such as being p.s.d
357
+ 251 or admitting an explicit (random or not) finite dimensional feature approximation. Since $C$ changes
358
+ 252 at each iteration in Algo.1, they are not directly applicable.
359
+ 53 Combining the results in $\ S 4$ with those from $\ S _ { \mathbf { B } }$ results in updates for $C _ { 1 }$ and $C _ { 2 }$ that only require
360
+ 54 $\mathcal { O } ( n r d )$ and $\mathcal { O } ( m r d ^ { \prime } )$ operations.
361
+
362
+ Linear time GW. Finally all the quadratic operations appearing in Algorithm (3) can be replaced by linear counterparts. The iterations that have not been modified had an overall complexity of $\bar { \mathcal { O } } ( m r ( r + d ^ { \prime } ) + \bar { n } r ( r + d ) )$ at each iteration. The initialization and linearization steps can now be performed in linear time, with respective complexity of respectively $\mathcal { O } ( n ( r + d ^ { 2 } ) + \mathrm { \dot { \ m } } ( ( d ^ { \prime } ) ^ { 2 } + r ) )$ and $\mathcal { O } ( ( n r ( r + d ) + m r ( r + d ^ { \prime } ) )$ .
363
+
364
+ # 260 6 Experiments
365
+
366
+ Our goal in this section is to demonstrate that, for a far smaller computational budget, the GW-LR approach is competitive with the direct entropic approach on datasets that are either synthesized to exhibit local clusters, or directly validated on a real high-dimensional dataset as well. Because both approaches have different hyperparameters, our goal is to stick to a realistic evaluation that stresses both optimality of solutions as a function of computational effort, as well as performance in real life applications. We start by investigating the sensitivity of hyperparamaters $\varepsilon$ and $\gamma$ on our method. Since GW is not convex, these may interact in unexpected ways. Experiments were run on a personal MacBook Pro 2019 laptop. We reused code from github.com/meyerscetbon/LOT, and downloaded genomics data from github.com/rsinghlab/SCOT.
367
+
368
+ Benchmarks. We consider three synthetic problems and one real world problem to evaluate timeaccuracy trade-offs, and also compare the couplings obtained by our method and that of the entropic version [27]. More precisely, we compare the quadratic approach in GW-LR computed with algorithm (3) (and its linear time counterpat, Lin GW-LR as presented in $\ S 5$ ), with EntropicGW, the cubic implementation of [27] (as well as its quadratic counterpart, Quad Entropic-GW presented in Algo. 2). For GW-LR and Lin GW-LR, and in all experiments, we set the lower bound on entries of g to ↵ = 1010 .
369
+
370
+ Initialization To initialize all algorithms with a common strategy, we adapted the first lower bound of [26, Def. 6.1] to the entropic case. In all experiments showing time-accuracy tradeoffs, we choose to use number of operations to provide platform independent quantities. Accuracy is measured by evaluating the ground-truth energy $\mathcal { E } _ { , B }$ (even in scenarios when the method uses a low rank approximation for $A , B$ at optimization time).
371
+
372
+ ![](images/ced3128aec5a3e2f1ee8b3a2ad54bff8f7dd8e662233522796a537c2ee35f7a0.jpg)
373
+ Figure 3: The number of cluster in each distribution is 10 and the number of samples is $n = m = 5 0 0 0$ . The ground cost is the Euclidean distance. As we can evaluate the distance between two arbitrary points, we can obtain in linear-time an efficient approximation of the distance matrices $A$ and $B$ as presented in 3. The rank of their factorizations is fixed to be $d = d ^ { \prime } = 1 0 0$ . GW-LR and EntropicGW corresponds to the case where the full matrices $A$ and $B$ are considered while Lin GW-LR and Quad Entropic-GW take as inputs the low-rank approximations of the distance matrices. We plot the time-accuracy tradeoff for multiple choices of $\gamma$ and rank $r$ defined as a fraction of $n$ . For Entropic-GW and Quad Entropic-GW, we set $\varepsilon = 1 / \gamma$ as proposed in [27]. Recall that for low-rank methods, we set $\varepsilon = 0$ .
374
+
375
+ Sensitivity to $\gamma$ and $\varepsilon$ Here we aim at showing the dependence in both $\gamma$ and $\varepsilon$ of our proposed method. In Figure 2, we compare the GW loss obtained by our algorithm when varying $\varepsilon$ and $\gamma$ on two mixtures. We show that when $\varepsilon = 0$ , the proposed method manage to consistently obtain small GW loss whatever $\gamma$ is. 8 By allowing $\varepsilon > 0$ , the algorithm is able to reach even smaller GW loss, however, the choice of $\varepsilon$ depends highly on $\gamma$ . Therefore in the following experiments, we fix $\varepsilon = 0$ for our method. We also show the dependence in $\gamma$ and $\varepsilon$ of our method in other settings and observe similar behaviors. See Appendix D.2 for 4 more details.
376
+
377
+ Remark 1. As shown in Figure 8 in Appendix D.2, allowing $\varepsilon > 0$ may also increase the speed of convergence of the algorithm. However choosing well $\varepsilon$ for a given $\gamma$ must be done carefully and we prefer in the following experiments to present the performance of our method in the simplest setting where $\varepsilon = 0$ .
378
+
379
+ ![](images/58a709d7ba81bc3cb25edfaf380271a8b7d1638e8c02cdcfc50025f0b4029cf8.jpg)
380
+ Figure 2: In this experiment, we consider two mixtures of (2 and 3) Gaussians in respectively 5-D and 10-D, sampled as discrete measures with $n = m = 5 0 0 0$ points, see more details on setup in Appendix D.2. The ground cost is the squared Euclidean distance, which provides an exact low-rank factorization of the cost as presented in $\ S \ O 3$ . Results on speed (in Appendix) are therefore obtained using Lin GW-LR. The nonnegative rank of the coupling is set to $r = 5 0 = n / 1 0 0$ . We plot the GW loss obtained by Lin GW-LR when varying $\epsilon$ for multiple choices of $\gamma$ . Both size and color have been used to quantify visually the value of the loss at that parameter pair. Occasional inversions are due to the nonconvex nature of the GW problem.
381
+
382
+ 01 Synthetic low-rank problem In this experiment
383
+ 02 we aim at comparing the time-accuracy tradeoff of
384
+ 03 the different methods when the underlying distribu
385
+ 04 tions has a low-rank structure. For that purpose, we
386
+ 05 consider two distributions in respectively 10-D and
387
+ 06 15-D, where the support of each distributions is the
388
+ 07 concatenation of clusters of points, and where the eu
389
+ 08 clidean distance between the centroids of the clusters
390
+ 09 is bigger than a threshold $\beta$ . Here we set $\beta = 1 0$ .
391
+ 10 Both distributions are uniform, have the same number
392
+ 311 of clusters and the same number of points in each cluster. Some illustrations of the simulated data
393
+ 312 is provided in Appendix D.3. In Figure 3, when the underlying cost is the (not squared) Euclidean
394
+ 313 distance, our methods manage to consistently obtain similar accuracy that the ones obtained by
395
+ 314 entropic methods, with very low rank $r = n / 5 0 0$ , while being orders of magnitude faster. In Figure 4,
396
+ 315 we also compare the time-accuracy tradeoffs in the more favorable case where the underlying cost
397
+ 316 is the squared Euclidean distance and obtain similar results. We also show more experiments for
398
+ 317 different number of clusters in Appendix D.3, leading to similar conclusions.
399
+
400
+ ![](images/205bfafdd7068632b78380a9723796c677156a099b7b76bf03b8ebfa0f53f9ad.jpg)
401
+ Figure 4: The number of clusters in each distribution is 5 and the number of samples considered here is $n = m = 1 0 0 0 0$ . The ground cost is the squared Euclidean distance. We compare Lin GW-LR and Quad Entropic-GW as we have an exact factorization of the matrices $A$ and $B$ . We plot the time-accuracy tradeoff when varying $\gamma$ for multiple choices of $r$ . For Quad Entropic-GW, we set $\varepsilon = 1 / \gamma$ and for Lin GW-LR we set $\varepsilon = 0$ .
402
+
403
+ ![](images/f357507bc64ee0a9d0b9ea5317bd8491b5252e6d657cf1bfa6c8e18bf3b3b8cf.jpg)
404
+ Figure 5: We plot, for each cells of the SNAREseq dataset, the FOSCTTM ranked in the increasing order for both GW-LR and Entropic-GW.
405
+
406
+ ![](images/44a0b85b7dc95af7583f8947b4baaddc578e9a97e8c9a0235263eef73478c8a8.jpg)
407
+ Figure 6: Plot of the time-accuracy tradeoff when varying $\gamma$ for multiple choices of rank $r$ on the SNAREseq dataset. For Entropic-GW we set $\varepsilon = 1 / \gamma$ , for GW-LR, we set $\varepsilon = 0$ .
408
+
409
+ Experiments on Single Cell Genomics Data. We reproduce the single-cell alignment experiment introduced in [14]. The dataset consists in single-cell multi-omics data generated by co-assays. In that setup, the ground truth one–to-one correspondence information between cells is known, and can therefore be used to benchmark GW strategies. The dataset considered is the SNAREseq [10], with $n = m = 1 0 4 7$ . We apply the exact same pre-processing steps as proposed in [14] by computing intra-domain distance matrices $A$ and $B$ with a k-NN graphs based on correlations, to compute shortest path distance matrices. Note that in that case, one cannot obtain directly in linear time a low-rank factorization of $A$ and $B$ using [5, 21], since the shortest path distances need to be computed first. Therefore we only consider the quadratic GW-LR and the cubic Entropic-GW. In Figure 6, we compare the alignment performance through the “fraction of samples closer than the true match” (FOSCTTM) introduced in [25]. We see that both algorithm obtain similar performance. However, in Figure 5, we show that whatever the $\gamma$ chosen, GW-LR reaches better accuracy while being order of magnitude faster than Entropic-GW for a very small rank $r = 1 0$ .
410
+
411
+ Conclusion. While the factorization introduced in [32] held the promise to speed up classic OT, we have shown in this work that it delivers an even larger impact when applied to the GW problem: Indeed, the combination of low-rank Sinkhorn factorization with-low rank cost matrices is the only one, to our knowledge, that ensures that the linearization step of the GW objective can be carried out with a linear complexity, throughout outer iterations. This linear complexity is comparable to that of the most recent OT solvers, yet still retains the appealing properties of the Entropic approach, such as stability and convergence to meaningful solutions.
412
+
413
+ # References
414
+
415
+ [1] Jean Alaux, Edouard Grave, Marco Cuturi, and Armand Joulin. Unsupervised hyperalignment for multilingual word embeddings. arXiv preprint arXiv:1811.01124, 2018.
416
+ [2] Jason Altschuler, Jonathan Weed, and Philippe Rigollet. Near-linear time approximation algorithms for optimal transport via sinkhorn iteration. arXiv preprint arXiv:1705.09634, 2017.
417
+ [3] Jason Altschuler, Francis Bach, Alessandro Rudi, and Jonathan Niles-Weed. Massively scalable sinkhorn distances via the nyström method, 2018.
418
+ [4] Jason Altschuler, Francis Bach, Alessandro Rudi, and Jonathan Weed. Approximating the quadratic transportation metric in near-linear time. arXiv preprint arXiv:1810.10046, 2018.
419
+ [5] Ainesh Bakshi and David P. Woodruff. Sublinear time low-rank approximation of distance matrices, 2018.
420
+ [6] Andrew J Blumberg, Mathieu Carriere, Michael A Mandell, Raul Rabadan, and Soledad Villar. Mrec: a fast and versatile framework for aligning and matching point clouds with applications to single cell molecular data. arXiv preprint arXiv:2001.01666, 2020.
421
+ [7] Charlotte Bunne, David Alvarez-Melis, Andreas Krause, and Stefanie Jegelka. Learning generative models across incomparable spaces. arXiv preprint arXiv:1905.05461, 2019.
422
+ [8] Rainer E Burkard, Eranda Cela, Panos M Pardalos, and Leonidas S Pitsoulis. The quadratic assignment problem. In Handbook of combinatorial optimization, pages 1713–1809. Springer, 1998.
423
+ [9] Laetitia Chapel, Mokhtar Alaya, and Gilles Gasso. Partial optimal transport with applications on positive-unlabeled learning. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020), 2020.
424
+ [10] Song Chen, Blue B Lake, and Kun Zhang. High-throughput sequencing of the transcriptome and chromatin accessibility in the same cell. Nature biotechnology, 37(12):1452–1457, 2019.
425
+ [11] Samir Chowdhury, David Miller, and Tom Needham. Quantized gromov-wasserstein. arXiv preprint arXiv:2104.02013, 2021.
426
+ [12] Alexis Conneau, Guillaume Lample, Marc’Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Word translation without parallel data. arXiv preprint arXiv:1710.04087, 2017.
427
+ [13] Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in neural information processing systems, pages 2292–2300, 2013.
428
+ [14] Pinar Demetci, Rebecca Santorella, Björn Sandstede, William Stafford Noble, and Ritambhara Singh. Gromov-wasserstein optimal transport to align single-cell multi-omics data. bioRxiv, 2020. doi: 10.1101/2020.04.28.066787.
429
+ [15] Pinar Demetci, Rebecca Santorella, Bjorn Sandstede, William Stafford Noble, and Ritambhara Singh. Gromov-wasserstein optimal transport to align single-cell multi-omics data. BioRxiv, 2020.
430
+ [16] Richard Mansfield Dudley et al. Weak convergence of probabilities on nonseparable metric spaces and empirical measures on euclidean spaces. Illinois Journal of Mathematics, 10(1): 109–126, 1966.
431
+ [17] Danielle Ezuz, Justin Solomon, Vladimir G Kim, and Mirela Ben-Chen. Gwcnn: A metric alignment layer for deep shape analysis. In Computer Graphics Forum, volume 36, pages 49–57. Wiley Online Library, 2017.
432
+ [18] Aden Forrow, Jan-Christian Hütter, Mor Nitzan, Philippe Rigollet, Geoffrey Schiebinger, and Jonathan Weed. Statistical optimal transport via factored couplings, 2018.
433
+ [19] Aden Forrow, Jan-Christian Hütter, Mor Nitzan, Philippe Rigollet, Geoffrey Schiebinger, and Jonathan Weed. Statistical optimal transport via factored couplings. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 2454–2465. PMLR, 2019.
434
+ [20] Steven Gold and Anand Rangarajan. Softassign versus softmax: Benchmarks in combinatorial optimization. Advances in neural information processing systems, pages 626–632, 1996.
435
+ [21] Piotr Indyk, Ali Vakilian, Tal Wagner, and David Woodruff. Sample-optimal low-rank approximation of distance matrices, 2019.
436
+ [22] Hicham Janati, Thomas Bazeille, Bertrand Thirion, Marco Cuturi, and Alexandre Gramfort. Multi-subject meg/eeg source imaging with sparse multi-task regression. NeuroImage, page 116847, 2020.
437
+ [23] Hiroshi Konno. Maximization of a convex quadratic function under linear constraints. Mathematical programming, 11(1):117–127, 1976.
438
+ [24] Matt Kusner, Yu Sun, Nicholas Kolkin, and Kilian Q Weinberger. From word embeddings to document distances. In Proc. of the 32nd Intern. Conf. on Machine Learning, pages 957–966, 2015.
439
+ [25] Jie Liu, Yuanhao Huang, Ritambhara Singh, Jean-Philippe Vert, and William Stafford Noble. Jointly embedding multiple single-cell omics measurements. BioRxiv, page 644310, 2019.
440
+ [26] Facundo Mémoli. Gromov–wasserstein distances and the metric approach to object matching. Foundations of computational mathematics, 11(4):417–487, 2011.
441
+ [27] Gabriel Peyré, Marco Cuturi, and Justin Solomon. Gromov-wasserstein averaging of kernel and distance matrices. In International Conference on Machine Learning, pages 2664–2672, 2016.
442
+ [28] Gabriel Peyré and Marco Cuturi. Computational optimal transport. Foundations and Trends in Machine Learning, 11(5-6), 2019. ISSN 1935-8245.
443
+ [29] Yossi Rubner, Carlo Tomasi, and Leonidas J. Guibas. The earth mover’s distance as a metric for image retrieval. International Journal of Computer Vision, 40(2):99–121, November 2000.
444
+ [30] Ryoma Sato, Marco Cuturi, Makoto Yamada, and Hisashi Kashima. Fast and robust comparison of probability measures in heterogeneous spaces. arXiv preprint arXiv:2002.01615, 2020.
445
+ [31] Meyer Scetbon and Marco Cuturi. Linear time sinkhorn divergences using positive features, 2020.
446
+ [32] Meyer Scetbon, Marco Cuturi, and Gabriel Peyré. Low-rank sinkhorn factorization, 2021.
447
+ [33] Geoffrey Schiebinger, Jian Shu, Marcin Tabaka, Brian Cleary, Vidya Subramanian, Aryeh Solomon, Joshua Gould, Siyan Liu, Stacie Lin, Peter Berube, et al. Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell, 176 (4):928–943, 2019.
448
+ [34] Richard Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. Ann. Math. Statist., 35:876–879, 1964.
449
+ [35] Justin Solomon, Gabriel Peyré, Vladimir G Kim, and Suvrit Sra. Entropic metric alignment for correspondence problems. ACM Transactions on Graphics (TOG), 35(4):1–13, 2016.
450
+ [36] Karl-Theodor Sturm. The space of spaces: curvature bounds and gradient flows on the space of metric measure spaces. arXiv preprint arXiv:1208.0434, 2012.
451
+ [37] Titouan Vayer, Laetita Chapel, Rémi Flamary, Romain Tavenard, and Nicolas Courty. Fused gromov-wasserstein distance for structured objects: theoretical foundations and mathematical properties. arXiv preprint arXiv:1811.02834, 2018.
452
+ [38] Titouan Vayer, Rémi Flamary, Romain Tavenard, Laetitia Chapel, and Nicolas Courty. Sliced gromov-wasserstein. arXiv preprint arXiv:1905.10124, 2019.
453
+ [39] Jonathan Weed and Francis Bach. Sharp asymptotic and finite-sample rates of convergence of empirical measures in wasserstein distance. Bernoulli, 25(4A):2620–2648, 2019.
454
+ [40] Hongteng Xu, Dixin Luo, and Lawrence Carin. Scalable gromov-wasserstein learning for graph partitioning and matching. arXiv preprint arXiv:1905.07645, 2019.
455
+ [41] Hongteng Xu, Dixin Luo, Hongyuan Zha, and Lawrence Carin Duke. Gromov-wasserstein learning for graph matching and node embedding. In International conference on machine learning, pages 6932–6941. PMLR, 2019.
456
+
457
+ # Checklist
458
+
459
+ 1. For all authors...
460
+
461
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] The main claim of the paper is a linear time (w.r.t. sample size, as commonly understood in OT) computation for GW. Sections $\ S 3 , 4$ and 5 build up that answer. This is experimentally validated across several experiments, both synthetic, to help the reader form intuitions, and on real data where GW was deemed useful.
462
+ (b) Did you describe the limitations of your work?[Yes] Because the GW problem is nonconvex, these limitations are naturally discussed in the experimental section, Section $\ S 6$ We discuss the effects of $\gamma$ and $\varepsilon$ on the method, which are not easy to parse due to the non-convexity of the method.
463
+ (c) Did you discuss any potential negative societal impacts of your work?[N/A] As a purely methodological paper, we do not envision potentially negative impact of this work on its own.
464
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them?[Yes] We have read these guidelines and confirm our paper does conform to them.
465
+
466
+ 2. If you are including theoretical results...
467
+
468
+ (a) Did you state the full set of assumptions of all theoretical results?[Yes] Our theoretical results are of two nature: a bound in Proposition 1, and a guarantee on convergence in Proposition 2, which has no direct consequence on our empirical findings, yet remain useful. Theory is not our main contribution, but rather algorithms.
469
+ (b) Did you include complete proofs of all theoretical results?[Yes] all proofs are in the appendix. Space in the main body of the paper was prioritized to include experimental validation, which, for this non-convex problem, we believe to be equally important.
470
+
471
+ 3. If you ran experiments...
472
+
473
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)?[Yes] We have included portions of the code that we have used. We pledge to make the entire code available later in the reviewing process.
474
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)?[Yes] The main contribution is compute efficiency, that we have considered across several parameter choices.
475
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)?[N/A] Our experiments are deterministic, since we use a predefined initialization.
476
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)?[Yes] The experiments were run with basic computational means, a macbook pro.
477
+
478
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
479
+
480
+ (a) If your work uses existing assets, did you cite the creators?[Yes] We have reused a single toolbox, and accessed data available publicly.
481
+ (b) Did you mention the license of the assets? [Yes] All licenses are open source, see supplementary.
482
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes] Yes, code is shared in the supplementary.
483
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes]
484
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
485
+
486
+ 5. If you used crowdsourcing or conducted research with human subjects...
487
+
488
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
489
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
parse/train/rHCzkRd0UK/rHCzkRd0UK_content_list.json ADDED
@@ -0,0 +1,1321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Linear-Time Gromov Wasserstein Distances using Low Rank Couplings and Costs ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 232,
8
+ 122,
9
+ 766,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 578,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The ability to compare and align related datasets living in heterogeneous spaces plays an increasingly important role in machine learning. The Gromov-Wasserstein (GW) formalism can help tackle this problem. Its main goal is to seek an assignment (more generally a coupling matrix) that can register points across otherwise incomparable datasets. As a non-convex and quadratic generalization of optimal transport (OT), GW is NP-hard. Yet, heuristics are known to work reasonably well in practice, the state of the art approach being to solve a sequence of nested regularized OT problems. While popular, that heuristic remains too costly to scale, with cubic complexity in the number of samples $n$ . We show in this paper how a recent variant of the Sinkhorn algorithm can substantially speed up the resolution of GW. That variant restricts the set of admissible couplings to those admitting a low rank factorization as the product of two sub-couplings. By updating alternatively each sub-coupling, our algorithm computes a stationary point of the problem in quadratic time with respect to the number of samples. When cost matrices have themselves low rank, our algorithm has time complexity ${ \\mathcal { O } } ( n )$ . We demonstrate the efficiency of our method on simulated and real data. ",
40
+ "bbox": [
41
+ 148,
42
+ 349,
43
+ 766,
44
+ 570
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "17 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 598,
55
+ 310,
56
+ 616
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "18 The ever increasing interest for Gromov-Wasserstein... Several problems in machine learning \n19 involve comparing families of points that live in heterogeneous spaces. This situation arises typically \n20 when realigning two distinct sets of feature representations obtained from the similar source. Recent \n21 applications to single-cell genomics [15] and NLP [12, 1] provide two cases in point: Thousands \n22 of cells taken from the same tissue are split in two groups, each group is processed with a different \n23 experimental protocol, resulting in two distinct sets of heterogeneous feature vectors; Thousands of \n24 word embeddings for two languages are learned independently. In both cases, one expects to find \n25 a meaningful way to register points across sets living in heteregeneous spaces, since they contain \n26 similar overall information. That realignment is usually carried out using the Gromov-Wasserstein \n27 (GW) machinery proposed by Mémoli [26] and Sturm [36], which seeks a relaxed assignment matrix \n28 that is as “close” to an isometry as possible, using a quadratic score to quantify that closeness. GW \n29 has a lot of practical appeal: It has been used in supervised learning [41], generative modeling [7], \n30 domain adaptation [9], structured prediction [37], quantum chemistry [27] and alignment layers [17]. \n31 ... despite its cubic cost. Because it is an NP-hard problem, these applications rely on approximating \n32 GW, typically by solving a sequence of OT problems using entropic regularization. This heuristic is \n33 efficient yet costly, since it requires $\\mathcal { O } ( n ^ { 3 } )$ operations to register two sets of $n$ samples, a price that is \n34 paid when re-instantiating each OT problem. Our goal is to reduce substantially that complexity by \n35 exploiting low-factorization of both parameters (data) and variable (relaxed assignment) matrices in \n36 the GW problem, while maintaining state of the art performance in applications. \n37 Wasserstein: from cubic to linear complexity. A comparatively simpler problem is the registration \n38 of two populations embedded in the same space. This corresponds to the classic optimal transport \n39 (OT) problem, which has received considerable attention in ML [28]. OT has found applications \n40 in computer vision [29], NLP [24], single cell tracking [33] or multi-task regression in neuro \n41 imaging [22]. While the OT problem is originally cast as a linear program, with a ${ \\overline { { O ( n ^ { 3 } \\log ( n ) } } } )$ cost, \n42 many of these works rely on solving instead a penalized OT problem using Sinkhorn’s algorithm [34, \n43 13]. In its most naive implementation, the Sinkhorn has quadratic complexity [2]. Recent works \n44 achieve $O ( n )$ complexity by targeting the matrix-vector updates in Sinkhorn’s algorithm using \n45 low-rank approximations of the data kernel matrix [4, 3, 31]. This idea can be further improved by \n46 imposing the low-rank constraint on the optimization variables of the original OT problem [19], to \n47 modify Sinkorn’s steps by enforcing a low rank factorization of the coupling variable [32]. \n48 Gromov-Wasserstein: from NP-hard to linear approximations. The GW problem replaces \n49 the linear objective function in OT by a non-convex quadratic objective. Much like OT is a re \n50 laxation of the optimal assignment problem, GW can be seen as a relaxation of the quadratic \n51 assignment problem (QAP). Both GW and QAP are NP-hard to solve [8]. In practice, iteratively \n52 minimizing a linearization of that quadratic objective using Sinkhorn works surprisingly well [20, 35]. \n53 This method corresponds to a mirror-descent scheme [27], \n54 and in the special case of Euclidean distance matrices, the \n55 loss is concave and it can be also interpreted as a bi-linear \n56 relaxation [23]. In the most general case, this results in an \n57 $O ( n ^ { 4 } )$ algorithm (the objective is a quadratic function of a \n58 $n \\times n$ relaxed assignment matrix), that is reduced to $O ( n ^ { 3 } )$ \n59 when using separable losses [27], a price that remains too \n60 high for several ML applications. It is possible to replace \n61 the GW distance by cheaper yet only distantly related prox \n62 ies, such as lower bounds based on OT [26] (see also [30]) \n63 or sliced projections [38]. Whether GW can be efficiently \n64 sped up remains an open question. We propose in this \n65 work a novel approach that leverages, as done recently for \n66 OT, low-rank methods. A very recent line of works attacks \n67 this problem by quantizing first the two input spaces to \n68 solve a GW problem of reduced size, thus effectively pro \n69 ducing an ad-hoc low-rank coupling [11]. A nice feature \n70 of this approach is that it maintains the triangular inequal \n71 ity and provides a valid upper-bound on the GW distance. \n72 Related approaches which also approximate GW distance \n73 using clustering methods (possibly in a recursive way) \n74 are [6] and [40]. We take in this paper a direct approach: \n75 instead of separating clustering and GW resolution in 2 \n76 independent steps, we propose do address them simulta \n77 neously: our method seeks the least-costly (in GW sense) \n78 coupling with a low rank constraint, as illustrated in Fig. 1. \n79 Contributions We introduce the low-rank-GW problem, by imposing a low rank constraint on \n80 feasible couplings. This method works hand-in-hand with entropic regularization and leads to a \n81 Sinkhorn-like algorithm. Because of its exclusive reliance on matrix-vector products, the method \n82 streams well on GPUs. This method can also leverage low-rank factorizations of the input data \n83 matrices to further reduce the complexity of each iteration to reach linear time. Numerical evaluations \n84 on simulated and real datasets show that this low-rank approximation maintains the favorable \n85 property of entropic-regularized GW (namely its ability to compute “good” local minima) for a linear \n86 computational price, thus paving the way for larger scale uses of GW in ML. ",
63
+ "bbox": [
64
+ 147,
65
+ 631,
66
+ 825,
67
+ 810
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 816,
77
+ 825,
78
+ 900
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 145,
87
+ 92,
88
+ 825,
89
+ 244
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 250,
99
+ 825,
100
+ 319
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 145,
109
+ 320,
110
+ 550,
111
+ 678
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/75f07794a62ec3be032add0ebc59f95a5f74a2fe87bba8885a69e073ad67fc1a.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Top row: we compute the GW coupling between two curves in 2D and 3D, with $n = m = 1 0 0 0 0$ points. These points are endowed with the squared L2 distance. Bottom row: coupling obtained with the SoTA entropic approach [20, 27], compared with our linear method with rank $r = 1 0$ . See Appendix D.1 for more details. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 565,
124
+ 329,
125
+ 821,
126
+ 527
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 147,
135
+ 684,
136
+ 825,
137
+ 795
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "87 2 Background on the Gromov-Wasserstein Framework ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 148,
147
+ 818,
148
+ 648,
149
+ 835
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "88 Comparing measured metric spaces. Let $( \\mathcal { X } , d _ { \\mathcal { X } } )$ and $( \\mathcal { V } , d _ { \\mathcal { V } } )$ be two metric spaces, and $\\mu$ and \n89 $\\nu$ two discrete probability measures on $\\mathcal { X }$ and $\\mathcal { V }$ , respectively. We write $\\textstyle \\mu : = \\sum _ { i = 1 } ^ { n } a _ { i } \\delta _ { x _ { i } }$ and \n90 $\\begin{array} { r } { \\nu : = \\sum _ { i = j } ^ { m } b _ { j } \\delta _ { y _ { j } } } \\end{array}$ where $n , m \\geq 1 , a , b$ are two histograms in the probability simplicies $\\Delta _ { n } , \\Delta _ { m }$ of \n91 respective size $n$ and $m$ , and $( x _ { 1 } , \\ldots , x _ { n } )$ , $\\left( y _ { 1 } , \\ldots , y _ { m } \\right)$ are two families in $\\mathcal { X }$ and $\\mathcal { V }$ . For $q \\geq 1$ , \n92 let us also denote $A : = ( d _ { \\mathcal { X } } ^ { q } ( x _ { i } , x _ { i ^ { \\prime } } ) ) _ { 1 \\leq i , i ^ { \\prime } \\leq n } \\in \\mathbb { R } ^ { n \\times n }$ and $B : = ( d _ { \\mathcal { V } } ^ { q } ( x _ { j } , x _ { j ^ { \\prime } } ) ) _ { 1 \\leq i , i ^ { \\prime } \\leq m } \\in \\mathbb { R } ^ { m \\times m }$ \n93 X Ytwo pairwise cost matrices between the points in the respective supports of $\\mu$ and $\\nu$ . The Gromov \n94 Wasserstein (GW) discrepancy between two discrete metric measure spaces $( \\mu , d _ { \\mathcal { X } } )$ and $( \\nu , d _ { 3 } )$ is \n95 the solution of the following non-convex quadratic problem, instantiated here for simplicity as a \n96 function of $( a , A )$ and $( b , B )$ , which contain all the information that is needed: ",
156
+ "bbox": [
157
+ 147,
158
+ 852,
159
+ 825,
160
+ 912
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 145,
169
+ 90,
170
+ 825,
171
+ 161
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "equation",
177
+ "img_path": "images/991251a13c341e25ad1e28131cef590f08214154c4f03e6bc278e32502a20658.jpg",
178
+ "text": "$$\n\\mathbf { G } \\mathbf { W } ( ( a , A ) , ( b , B ) ) = \\operatorname* { m i n } _ { P \\in \\Pi _ { a , b } } \\mathcal { E } _ { A , B } ( P ) , \\mathrm { w h e r e ~ } \\Pi _ { a , b } : = \\{ P \\in \\mathbb { R } _ { + } ^ { n \\times m } | P \\mathbf { 1 } _ { m } = a , P ^ { T } \\mathbf { 1 } _ { n } = b \\} ,\n$$",
179
+ "text_format": "latex",
180
+ "bbox": [
181
+ 187,
182
+ 167,
183
+ 789,
184
+ 194
185
+ ],
186
+ "page_idx": 2
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "97 and the energy $\\mathcal { E } _ { A , B }$ is a quadratic function parameterized by a loss $L : \\mathbb { R } \\times \\mathbb { R } \\to \\mathbb { R }$ : ",
191
+ "bbox": [
192
+ 143,
193
+ 199,
194
+ 732,
195
+ 215
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "equation",
201
+ "img_path": "images/9f5734633d6ed2d691baffd4d9b10f3558721710a9f10926f1854ae74f7b39e9.jpg",
202
+ "text": "$$\n\\mathcal { E } _ { A , B } ( P ) : = \\sum _ { i , j , i ^ { \\prime } , j ^ { \\prime } } L ( A _ { i , i ^ { \\prime } } , B _ { j , j ^ { \\prime } } ) P _ { i , j } P _ { i ^ { \\prime } , j ^ { \\prime } } \\ .\n$$",
203
+ "text_format": "latex",
204
+ "bbox": [
205
+ 349,
206
+ 222,
207
+ 648,
208
+ 257
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "98 A typical choice of the loss is the $L ^ { p }$ distance $L ( a , b ) = | a - b | ^ { p }$ with $p \\geq 1$ . In that case, [26] \n99 proves that $\\mathrm { G W } ^ { 1 / p }$ defines a distance on the space of metric measure spaces quotiented by measure \n100 preserving isometries. When $p = 2$ , as we consider from now on, the GW objective can be evaluated \n101 efficiently using the marginal constraints imposed on $P$ , as follows [27]: ",
215
+ "bbox": [
216
+ 143,
217
+ 268,
218
+ 826,
219
+ 329
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "equation",
225
+ "img_path": "images/1d27d509cc3df4d58dfb28fd155f93cc420834f784c437a40c4b3d434c537dfb.jpg",
226
+ "text": "$$\n\\begin{array} { r } { \\mathcal { E } _ { A , B } ( P ) = \\langle A ^ { \\odot 2 } a , a \\rangle + \\langle B ^ { \\odot 2 } b , b \\rangle - 2 \\langle A P B , P \\rangle . } \\end{array}\n$$",
227
+ "text_format": "latex",
228
+ "bbox": [
229
+ 326,
230
+ 333,
231
+ 671,
232
+ 352
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "02 Indeed, (3) can be computed efficiently in $\\mathcal { O } ( n ^ { 2 } m + n m ^ { 2 } )$ operations, using only matrix/matrix multiplications, instead of the 103 $\\mathcal { O } ( n ^ { 2 } m ^ { 2 } )$ complexity of the naive evaluation of (2). ",
239
+ "bbox": [
240
+ 150,
241
+ 358,
242
+ 826,
243
+ 388
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "104 Entropic Gromov-Wasserstein. The original GW problem (1) can be regularized using an entropic \n105 term [20, 35, 27], leading to the following problem: ",
250
+ "bbox": [
251
+ 148,
252
+ 393,
253
+ 826,
254
+ 422
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "equation",
260
+ "img_path": "images/e893c5a9770e1411ee323ce2c2a9c1eb7fe0a69b78de07a241f43b50c79d3f2c.jpg",
261
+ "text": "$$\n\\mathbf { G } \\mathbf { W } _ { \\varepsilon } ( ( a , A ) , ( b , B ) ) = \\operatorname* { m i n } _ { P \\in \\Pi _ { a , b } } \\mathcal { E } _ { A , B } ( P ) - \\varepsilon H ( P ) ,\n$$",
262
+ "text_format": "latex",
263
+ "bbox": [
264
+ 326,
265
+ 428,
266
+ 669,
267
+ 454
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "106 where $\\begin{array} { r } { H ( P ) ~ : = ~ - \\sum _ { i , j } P _ { i , j } ( \\log ( P _ { i , j } ) ~ - ~ 1 ) } \\end{array}$ is the entropy of $P$ . By applying a Mirror \n107 Descent (MD) scheme with respect to the KL divergence and by choosing the step-size to \n108 be $\\gamma ~ = ~ 1 / \\varepsilon$ , Peyré et al. [27] provide a simple algorithm which consists in solving a se \n109 quence of regularized OT problem as presented in Algorithm 1. Indeed, each KL pro \n110 jection in Algorithm 1 can be computed efficiently thanks to the Sinkhorn algorithm [13]. \n112 Computational complexity. Given a cost matrix $C$ , the \n113 KL projection of $K _ { \\varepsilon }$ onto the polytope $\\textstyle \\prod ( a , b )$ , where \n114 ${ \\mathrm { K L } } ( { \\bar { P } } , { \\bar { Q } } ) = \\langle P , \\log ( P / Q ) - 1 \\rangle$ , is carried out in the inner \n115 loop of Algo. 1 using the Sinkhorn algorithm, through \n116 matrix-vector products. This quadratic complexity (in \n117 red) is dominated by the cost of updating matrix $C$ at each \n118 iteration in Algorithm 1, which requires $\\mathcal { O } ( n ^ { 2 } m + n m ^ { 2 } )$ \n119 algebraic operations (cubic, in violet). As noted above, \n120 evaluating the objective $\\mathcal { E } _ { A , B } ( \\boldsymbol { P } )$ has the same order. In \n121 the following we show that by considering a low rank \n122 exact decomposition (or approximation) of the distance \n123 matrices, the cubic cost of reupdating $C$ and subsequently \n124 evaluating $\\mathcal { E } _ { A , B }$ can be brought down to quadratic. ",
274
+ "bbox": [
275
+ 140,
276
+ 459,
277
+ 825,
278
+ 532
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "",
285
+ "bbox": [
286
+ 140,
287
+ 551,
288
+ 549,
289
+ 732
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "Algorithm 1 Entropic-GW ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 562,
299
+ 565,
300
+ 740,
301
+ 580
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "25 3 Exploiting a Low-Rank Factorization for Cost Matrices ",
308
+ "text_level": 1,
309
+ "bbox": [
310
+ 156,
311
+ 751,
312
+ 668,
313
+ 768
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "Exact factorization of cost matrices. In this section we consider the case where the cost matrices $A$ and $B$ admit a low-rank factorization. More precisely, we make the following assumption. ",
320
+ "bbox": [
321
+ 166,
322
+ 781,
323
+ 821,
324
+ 811
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "Assumption 1. Assume that $A$ and $B$ admit a low-rank factorization, that is there exists $A _ { 1 } , A _ { 2 } \\in$ $\\mathbb { R } ^ { n \\times d }$ and $B _ { 1 } , B _ { 2 } \\in \\mathbb { R } ^ { m \\times d ^ { \\prime } }$ such that $A = A _ { 1 } A _ { 2 } ^ { T }$ and $B = B _ { 1 } B _ { 2 } ^ { T }$ , where $d \\ll n , d ^ { \\prime } \\ll m$ . ",
331
+ "bbox": [
332
+ 160,
333
+ 814,
334
+ 821,
335
+ 845
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "130 A case in point is when both $A$ and $B$ are squared Euclidean distance matrices, with a sample size \n131 that is larger than ambient dimension. This case is highly relevant, covering many applications of OT \n132 to ML. The $d \\ll n$ assumption is also likely to hold for most applications, since cases where $d \\gg n$ \n133 are known to pose challenges to the estimation of OT [16, 39]. Writing $X = [ x _ { 1 } , \\ldots , x _ { n } ] \\in \\mathbb { R } ^ { d \\times n }$ , if ",
342
+ "bbox": [
343
+ 143,
344
+ 854,
345
+ 825,
346
+ 912
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "134 $A = \\left[ \\Vert x _ { i } - x _ { j } \\Vert _ { 2 } ^ { 2 } \\right] _ { i , j }$ , then one has, writing $z = ( X ^ { \\odot 2 } ) ^ { T } \\mathbf { 1 } _ { d } \\in \\mathbb { R } ^ { n }$ that $A = z \\mathbf { 1 } _ { n } ^ { T } + \\mathbf { 1 } _ { n } z ^ { T } - 2 X ^ { T } X$ . Therefore by denoting 135 $A _ { 1 } = [ z , \\mathbf { 1 } _ { n } , - \\sqrt { 2 } X ^ { T } ] \\in \\mathbb { R } ^ { n \\times ( d + 2 ) }$ and $A _ { 2 } = [ \\mathbf { 1 } _ { n } , z , \\sqrt { 2 } X ^ { T } ] \\in \\mathbb { R } ^ { n \\times ( d + 2 ) }$ 136 we obtain the factorization above. ",
353
+ "bbox": [
354
+ 140,
355
+ 89,
356
+ 826,
357
+ 138
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "137 Under Assumption 1, the complexity of Algo. 1 is downgraded to quadratic in sample size: the two \n138 operations that make Algo. 1 cubic lie in the updates of the cost and the computation of the objective. \n139 Observe that for any given $P \\in \\mathbb { R } ^ { n \\times m }$ , one can compute at each iteration ",
364
+ "bbox": [
365
+ 142,
366
+ 145,
367
+ 826,
368
+ 188
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "equation",
374
+ "img_path": "images/9f7ad62dce9ec791c3a08511e4612ed559e23276c62102ce7f6dfbb3546d24af.jpg",
375
+ "text": "$$\n\\begin{array} { r } { C = - 4 A _ { 1 } A _ { 2 } ^ { T } P B _ { 1 } B _ { 2 } ^ { T } } \\end{array}\n$$",
376
+ "text_format": "latex",
377
+ "bbox": [
378
+ 419,
379
+ 190,
380
+ 578,
381
+ 209
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "140 in $n m ( d + d ^ { \\prime } ) + d d ^ { \\prime } ( n + m )$ algebraic operations. Moreover thanks to the reformulation of \n141 $\\mathcal { E } _ { A , B } ( \\boldsymbol { P } )$ given in (3), one can compute it in quadratic time as well. Indeed writing $G _ { 1 } : =$ \n142 $A _ { 1 } ^ { T } P B _ { 2 }$ and $G _ { 2 } : = A _ { 2 } ^ { T } P B _ { 1 }$ , both in $\\mathbb { R } ^ { d \\times d ^ { \\prime } }$ , one has $\\langle A P B , P \\rangle = \\mathbf { 1 } _ { d } ^ { T } ( G _ { 1 } \\odot G _ { 2 } ) \\mathbf { 1 } _ { d ^ { \\prime } }$ . Com \n143 puting $G _ { 1 } , G _ { 2 }$ given $P$ requires only $2 ( n m d + m d d ^ { \\prime } )$ , and computing their dot product adds \n144 $d d ^ { \\prime }$ algebraic operations. The overall complexity to compute $\\mathcal { E } _ { A , B } ( { \\cal P } )$ is $\\mathcal { O } ( n m d + m d d ^ { \\prime } )$ . \n146 General distance matrices. When the original \n147 cost matrices $A$ , are not low-rank but describe \n148 distances, we propose to use a recent body of \n149 work that output their low-rank approximation \n150 in linear time [5, 21]. These algorithms produce, \n151 for any distance matrix $D \\in \\bar { \\mathbb { R } } ^ { n \\times m }$ and $\\gamma > 0$ , \n152 matrices $D _ { 1 } \\in \\mathbb { R } ^ { n \\times d }$ , $D _ { 2 } \\in \\mathbb { R } ^ { m \\times d }$ in $\\mathcal { O } ( ( m +$ \n153 $\\scriptstyle n ) \\mathtt { p o l y } ( { \\frac { d } { \\gamma } } ) )$ algebraic operations such that with \n154 probability at least 0.99 one has ",
388
+ "bbox": [
389
+ 138,
390
+ 212,
391
+ 826,
392
+ 286
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "",
399
+ "bbox": [
400
+ 140,
401
+ 305,
402
+ 486,
403
+ 434
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "Algorithm 2 Quadratic Entropic-GW ",
410
+ "text_level": 1,
411
+ "bbox": [
412
+ 498,
413
+ 308,
414
+ 745,
415
+ 323
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "equation",
421
+ "img_path": "images/db5b384f8068bd2e2ae60e307354779afb9dcec09128a0599c89dbffa5e7b481.jpg",
422
+ "text": "$$\n\\| D - D _ { 1 } D _ { 2 } ^ { T } \\| _ { F } ^ { 2 } \\leq \\| D - C _ { d } \\| _ { F } ^ { 2 } + \\gamma \\| D \\| _ { F } ^ { 2 }\n$$",
423
+ "text_format": "latex",
424
+ "bbox": [
425
+ 187,
426
+ 436,
427
+ 470,
428
+ 457
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "155 where $C _ { d }$ denotes the best rank- $d$ approximation \n156 to $D$ . We fall back on this approach to obtain a \n157 low-rank factorization of a distance matrix in lin \n158 ear time whenever needed, aware that this incurs \n159 an additional approximation. See Appendix B \n160 for more details. ",
435
+ "bbox": [
436
+ 142,
437
+ 459,
438
+ 485,
439
+ 542
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "end ",
446
+ "text_level": 1,
447
+ "bbox": [
448
+ 496,
449
+ 435,
450
+ 526,
451
+ 448
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "equation",
457
+ "img_path": "images/2eb83bfa3d20e26add9894e25c8eb8c11237e86c2f100eb919e294bc11788e51.jpg",
458
+ "text": "$$\n\\begin{array} { r l } & { c _ { 1 } \\gets \\langle A ^ { \\odot 2 } a , a \\rangle + \\langle B ^ { \\odot 2 } b , b \\rangle \\quad \\mathcal { O } ( \\mathrm { n r } } \\\\ & { G _ { 2 } \\gets A _ { 2 } ^ { T } P B _ { 1 } \\quad \\mathrm { n m d ~ + ~ m d d } ^ { \\flat } , } \\\\ & { G _ { 1 } \\gets A _ { 1 } ^ { T } P B _ { 2 } \\quad \\mathrm { n m d ~ + ~ m d d } ^ { \\flat } } \\\\ & { c _ { 2 } \\gets - 2 \\mathbf { 1 } _ { d } ^ { T } ( G _ { 1 } \\odot G _ { 2 } ) \\mathbf { 1 } _ { d ^ { \\prime } } \\quad \\mathcal { O } ( \\mathrm { d d } ^ { \\flat } ) } \\\\ & { \\xi _ { A , B } ( P ) \\gets c _ { 1 } + c _ { 2 } } \\\\ & { \\mathbf { R e t u r n } \\colon \\mathcal { E } _ { A , B } ( P ) } \\end{array}\n$$",
459
+ "text_format": "latex",
460
+ "bbox": [
461
+ 496,
462
+ 448,
463
+ 738,
464
+ 536
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "161 4 Imposing a Low Nonnegative Low-Rank for the Coupling ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 150,
474
+ 560,
475
+ 686,
476
+ 579
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "In this section, we shift our attention to a different opportunity for speed-ups, without assuming that Assumption 1 holds: we regularize the GW problem problem by decomposing the coupling as a product of two low-rank couplings, in the footsteps of [18, 32], using the following definition: ",
483
+ "bbox": [
484
+ 161,
485
+ 592,
486
+ 826,
487
+ 635
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "165 Definition 1. Given $M \\in \\mathbb { R } ^ { n \\times m }$ , the nonnegative (NN) rank of $M$ is the smallest number of \n166 nonnegative rank-one matrices into which the matrix can be decomposed additively: ",
494
+ "bbox": [
495
+ 147,
496
+ 636,
497
+ 828,
498
+ 666
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "equation",
504
+ "img_path": "images/13f91d810128809398f56c6fedeac1befdc9558925b6f54d93f159cef66e0d34.jpg",
505
+ "text": "$$\n\\operatorname { r k } _ { + } ( M ) : = \\operatorname* { m i n } \\left\\{ q | M = \\sum _ { i = 1 } ^ { q } R _ { i } , \\forall i , \\operatorname { r k } ( R _ { i } ) = 1 , R _ { i } \\geq 0 \\right\\} .\n$$",
506
+ "text_format": "latex",
507
+ "bbox": [
508
+ 299,
509
+ 667,
510
+ 697,
511
+ 710
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "167 Following [18, 32], we propose to constrain GW, enforcing a rank $r$ on the coupling: ",
518
+ "bbox": [
519
+ 138,
520
+ 719,
521
+ 728,
522
+ 736
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "equation",
528
+ "img_path": "images/44f91ec6f3489def2c28c9970b353aad1e4cd526fc7e537ed4fb69d7aa1ab029.jpg",
529
+ "text": "$$\n\\mathrm { G W } \\mathrm { L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) : = \\operatorname* { m i n } _ { P \\in \\Pi _ { a , b } ( r ) } \\xi _ { A , B } ( P ) , \\mathrm { ~ w h e r e ~ } \\Pi _ { a , b } ( r ) : = \\{ P \\in \\Pi _ { a , b } , \\mathrm { r k } _ { + } ( P ) \\leq r \\} \\ : .\n$$",
530
+ "text_format": "latex",
531
+ "bbox": [
532
+ 179,
533
+ 739,
534
+ 797,
535
+ 766
536
+ ],
537
+ "page_idx": 3
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "168 Note that the minimum is always attained as $\\Pi _ { a , b } ( r )$ is compact and the objective is continuous. \n169 In [32], the authors show that one can parameterize any coupling in $\\Pi _ { a , b } ( r )$ as a product of two \n170 low-rank couplings linked by a common marginal. For any $g \\in \\Delta _ { r } ^ { * }$ , the interior of $\\Delta _ { r }$ , writing ",
542
+ "bbox": [
543
+ 140,
544
+ 770,
545
+ 826,
546
+ 814
547
+ ],
548
+ "page_idx": 3
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "img_path": "images/f502f81af8d4c21e3c33200a462c839d721f0af858256e43e7fdcca61e94d3fe.jpg",
553
+ "text": "$$\n\\Pi _ { a , g , b } : = \\Bigl \\{ P \\in \\mathbb { R } _ { + } ^ { n \\times m } , P = Q \\mathrm { d i a g } ( 1 / g ) { R } ^ { T } , Q \\in \\Pi _ { a , g } , \\mathrm { a n d } R \\in \\Pi _ { b , g } \\Bigr \\} .\n$$",
554
+ "text_format": "latex",
555
+ "bbox": [
556
+ 251,
557
+ 816,
558
+ 741,
559
+ 844
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "one has that 171 $\\begin{array} { r } { \\bigcup _ { g \\in \\Delta _ { r } ^ { * } } \\Pi _ { a , g , b } = \\Pi _ { a , b } ( r ) } \\end{array}$ . Therefore GW-LR introduced in (5) can be reformulated as 172 the following optimization problem ",
566
+ "bbox": [
567
+ 137,
568
+ 845,
569
+ 831,
570
+ 878
571
+ ],
572
+ "page_idx": 3
573
+ },
574
+ {
575
+ "type": "equation",
576
+ "img_path": "images/f85869cc445e27aef7e385cd9a11aef3b3b745e30b06b9bb6035078a24b0c2a0.jpg",
577
+ "text": "$$\n\\mathrm { G W - L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) = \\operatorname* { m i n } _ { ( Q , R , g ) \\in { \\mathcal C } ( a , b , r ) } { \\mathcal E } _ { A , B } ( Q \\mathrm { d i a g } ( 1 / g ) R ^ { T } )\n$$",
578
+ "text_format": "latex",
579
+ "bbox": [
580
+ 272,
581
+ 881,
582
+ 723,
583
+ 909
584
+ ],
585
+ "page_idx": 3
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "173 where $\\mathcal { C } ( a , b , r ) : = \\mathcal { C } _ { 1 } ( a , b , r ) \\cap \\mathcal { C } _ { 2 } ( r )$ , with ",
590
+ "bbox": [
591
+ 142,
592
+ 90,
593
+ 465,
594
+ 107
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "equation",
600
+ "img_path": "images/e2d50bd28caea1ad1d6484590e9b7aaa9d4fce217cd7b5634208b89bcde1fbaa.jpg",
601
+ "text": "$$\n\\begin{array} { r } { \\mathcal { C } _ { 1 } ( a , b , r ) : = \\Big \\{ ( Q , R , g ) \\in \\mathbb { R } _ { + } ^ { n \\times r } \\times \\mathbb { R } _ { + } ^ { m \\times r } \\times \\big ( \\mathbb { R } _ { + } ^ { * } \\big ) ^ { r } \\mathrm { s . t . } Q \\mathbf { 1 } _ { r } = a , R \\mathbf { 1 } _ { r } = b \\Big \\} , } \\\\ { \\mathcal { C } _ { 2 } ( r ) : = \\Big \\{ ( Q , R , g ) \\in \\mathbb { R } _ { + } ^ { n \\times r } \\times \\mathbb { R } _ { + } ^ { m \\times r } \\times \\mathbb { R } _ { + } ^ { r } \\mathrm { s . t . } Q ^ { T } \\mathbf { 1 } _ { n } = R ^ { T } \\mathbf { 1 } _ { m } = g \\Big \\} . } \\end{array}\n$$",
602
+ "text_format": "latex",
603
+ "bbox": [
604
+ 236,
605
+ 112,
606
+ 759,
607
+ 169
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "174 Stabilization of the Method. [32] propose to stabilize the objective defined in (6) by adding to the \n175 constraints a lower bound $\\alpha$ on the weight vector $g$ such that $g \\geq \\alpha$ coordinate-wise. Indeed, as \n176 a solution of (6) must satisfies $g > 0$ coordinate-wise, then for $\\alpha$ sufficiently small, the solution \n177 of the same problem where one adds the constraint $g \\geq \\alpha$ will remain the same. Therefore let us \n178 introduce our new set of constraints $\\mathcal { C } ( a , b , r , \\alpha ) : = \\mathcal { C } _ { 1 } ( a , b , r , \\alpha ) \\cap \\mathcal { C } _ { 2 } ( r )$ where $\\mathcal { C } _ { 1 } ( a , b , r , \\alpha ) : =$ \n179 $\\mathcal { C } _ { 1 } ( a , b , r ) \\cap \\{ ( Q , R , g ) \\mid g \\geq \\alpha \\}$ . Another way to stabilize the method is by considering a double \n180 regularization scheme as proposed in [32] where in addition of constraining the nonnegative rank \n181 of the coupling, we regularize the objective by adding an entropic term in $( Q , R , g )$ , which is to be \n182 understood as that of the values of the three respective entropies evaluated for each term. ",
614
+ "bbox": [
615
+ 140,
616
+ 171,
617
+ 825,
618
+ 297
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "img_path": "images/e34d13f7875dad6b2addbdf85ed48c97c2c682e9f2494402836f5b985bf9731d.jpg",
625
+ "text": "$$\n\\mathrm { G W } \\mathrm { L R } _ { \\varepsilon , \\alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) : = \\operatorname* { m i n } _ { ( Q , R , g ) \\in { \\mathscr C } ( a , b , r , \\alpha ) } { \\mathscr E } _ { A , B } ( Q \\mathrm { d i a g } ( 1 / g ) R ^ { T } ) - \\varepsilon H ( ( Q , R , g ) ) ~ .\n$$",
626
+ "text_format": "latex",
627
+ "bbox": [
628
+ 191,
629
+ 304,
630
+ 785,
631
+ 332
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "183 Mirror Descent Scheme. As in [27], we propose to use a MD scheme with respect to the $\\mathrm { K L }$ \n184 divergence to approximate $\\mathbf { G } \\mathbf { W } \\mathbf { - L R } _ { \\varepsilon , \\alpha } ^ { ( r ) }$ in (7). More precisely, for any $\\varepsilon \\geq 0$ , the MD scheme leads \n185 for all $k \\geq 0$ to the following updates which require solving a convex barycenter problem per step: ",
638
+ "bbox": [
639
+ 140,
640
+ 338,
641
+ 826,
642
+ 383
643
+ ],
644
+ "page_idx": 4
645
+ },
646
+ {
647
+ "type": "equation",
648
+ "img_path": "images/edf9708285c5c8d1999d67c204842bcc7c925ee51bd843bd2f675bdf94f193e7.jpg",
649
+ "text": "$$\n( Q _ { k + 1 } , R _ { k + 1 } , g _ { k + 1 } ) : = \\underset { \\zeta \\in \\mathcal { C } ( a , b , r , \\alpha ) } { \\mathrm { a r g m i n ~ } } \\mathrm { K L } ( \\zeta , K _ { k } )\n$$",
650
+ "text_format": "latex",
651
+ "bbox": [
652
+ 346,
653
+ 388,
654
+ 651,
655
+ 417
656
+ ],
657
+ "page_idx": 4
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "186 where $( Q _ { 0 } , R _ { 0 } , g _ { 0 } ) \\in \\mathcal { C } ( a , b , r )$ is an initial point such that $ { Q _ { 0 } } \\ > \\ 0$ and $\\begin{array} { r l r } { R _ { 0 } } & { { } > } & { 0 } \\end{array}$ , \n187 $P _ { k } : = Q _ { k } \\mathrm { d i a g } ( 1 / g _ { k } ) R _ { k } ^ { T }$ $\\mathring { \\mathbf { \\ i } } _ { k } , \\ \\mathbf { K } _ { k } : = \\big ( \\boldsymbol { K } _ { k } ^ { ( 1 ) } , \\boldsymbol { K } _ { k } ^ { ( 2 ) } , \\boldsymbol { K } _ { k } ^ { ( 3 ) } \\big ) , \\ \\boldsymbol { K } _ { k } ^ { ( 1 ) } : = \\mathrm { e x p } ( 4 \\gamma A P _ { k } B R _ { k } \\operatorname { d i a g } ( 1 /$ \n188 $( \\gamma \\varepsilon \\mathrm { ~ - ~ } 1 ) \\log ( Q _ { k } ) )$ , $\\begin{array} { r c l } { K _ { k } ^ { ( z ) } } & { : = } & { \\exp ( 4 \\gamma B P _ { k } ^ { T } D Q _ { k } \\mathrm { d i a g } ( 1 / g _ { k } ) - ( \\gamma \\varepsilon - 1 ) \\log ( R _ { k } ) ) } \\end{array}$ , $K _ { k } ^ { ( 3 ) } \\ : =$ \n189 $\\exp ( - 4 \\gamma \\omega _ { k } / g _ { k } ^ { 2 } - ( \\gamma \\varepsilon - 1 ) \\log ( g _ { k } ) )$ with $[ \\omega _ { k } ] _ { i } : = [ Q _ { k } ^ { T } A P _ { k } B R _ { k } ] _ { i , i }$ for all $i \\in \\{ 1 , \\ldots , r \\}$ and \n190 $\\gamma$ is a positive step size. Solving (8) can be done efficiently thanks to the Dykstra’s Algorithm as \n191 showed in [32]. See Appendix $\\textrm { C }$ for more details. ",
662
+ "bbox": [
663
+ 140,
664
+ 422,
665
+ 826,
666
+ 518
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "Initialization. To initialize our algorithm, we adapt the First Lower Bound of [26] to our case of interest. More precisely, we show the following Proposition. See appendix A for the proof. ",
673
+ "bbox": [
674
+ 163,
675
+ 523,
676
+ 823,
677
+ 553
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "194 Proposition 1. Let us denote $\\tilde { x } = A ^ { \\odot 2 } a \\in \\mathbb { R } ^ { n }$ , $\\tilde { y } = B ^ { \\odot 2 } b \\in \\mathbb { R } ^ { m }$ and $\\tilde { C } = ( | \\tilde { x } _ { i } - \\tilde { y } _ { j } | ^ { 2 } ) _ { i , j } \\in \\mathbb { R } ^ { n \\times m }$ \n195 Then for all $\\varepsilon \\geq 0$ and $r \\geq 1$ we have, ",
684
+ "bbox": [
685
+ 145,
686
+ 556,
687
+ 823,
688
+ 587
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "equation",
694
+ "img_path": "images/165163749c6dedc2569351b606f6281455c75ab37b0fcaf5ff2ce82858404e52.jpg",
695
+ "text": "$$\n\\mathrm { G W - L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) \\geq \\operatorname* { m i n } _ { ( Q , R , g ) \\in { \\mathcal C } ( a , b , r , \\alpha ) } \\langle \\tilde { C } , Q \\mathrm { d i a g } ( 1 / g ) R ^ { T } \\rangle - \\varepsilon H ( ( Q , R , g ) ) ~ .\n$$",
696
+ "text_format": "latex",
697
+ "bbox": [
698
+ 212,
699
+ 592,
700
+ 784,
701
+ 621
702
+ ],
703
+ "page_idx": 4
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "196 Note that the RHS of the inequality (9) is exactly the problem studied in [32] for which an algorithm \n197 was proposed. Therefore to initialize our algorithm, we propose to use their approach. Note that here \n198 the cost $\\tilde { C }$ is the squared Euclidean distance between two families $\\{ \\tilde { x } _ { 1 } , \\ldots , \\tilde { x } _ { n } \\}$ and $\\{ \\tilde { y } _ { 1 } , \\dots , \\tilde { y } _ { m } \\}$ \n199 in 1-D which admits a low-rank factorization. Therefore we can apply the linear-time version of the \n200 algorithm presented in [32] to compute the solution. Algorithm 3 summarizes our approach, where \n201 $\\mathcal { D } ( \\cdot )$ denotes the operator extracting the diagonal of a square matrix. \n202 Computational Cost. Computing the initialization goes through the computations of $\\tilde { x }$ and $\\tilde { y }$ which \n203 requires $O ( n ^ { 2 } + m ^ { 2 } )$ algebraic operations. Moreover, applying the algorithm proposed in [32] \n204 when the underlying cost is the squared Euclidean distances between two families in 1-D needs \n205 only $\\mathcal { O } ( ( n + m ) r )$ algebraic operations. Solving the barycenter problem as defined in (8) can be \n206 207 done given $( K _ { k } ^ { ( 1 ) } , \\dot { K } _ { k } ^ { ( 2 ) } , K _ { k } ^ { ( 3 ) } )$ ) Dykstra’s Algorithm. Indeed in [32, Algorithm, each iteration of their algorithm requires only $\\mathcal { O } ( ( n + m ) r )$ show thatalgebraic \n208 operations since it involves only matrix/vector multiplications. However computing the kernel \n209 matrices $( K _ { k } ^ { ( 1 ) } , K _ { k } ^ { ( 2 ) } , K _ { k } ^ { ( 3 ) } )$ at each iteration of Algorithm 3 requires a quadratic complexity with \n210 respect to the number of samples. Overall the proposed algorithm, while faster than the cubic \n211 implementation proposed in [27], still needs $\\mathcal { O } ( ( n ^ { 2 } + m ^ { 2 } ) r )$ operations per iteration. In the following \n212 we will see that by combining both nonnegative low-rank constraints on the coupling and low-rank \n213 approximations of the distance matrices, we can obtain a linear time algorithm with respect to the \n214 number of samples which computes an approximation of the GW distance. ",
708
+ "bbox": [
709
+ 140,
710
+ 632,
711
+ 825,
712
+ 719
713
+ ],
714
+ "page_idx": 4
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "",
719
+ "bbox": [
720
+ 138,
721
+ 724,
722
+ 825,
723
+ 912
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "$\\mathrm { A l g o r i t h m } 3 \\mathrm { L o w - R a n k } \\mathrm { G W } , \\mathrm { G W - L R } _ { \\varepsilon , \\alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$ ",
730
+ "bbox": [
731
+ 173,
732
+ 92,
733
+ 545,
734
+ 111
735
+ ],
736
+ "page_idx": 5
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "for $k = 1 , \\dots$ do ",
741
+ "bbox": [
742
+ 173,
743
+ 199,
744
+ 290,
745
+ 212
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "end ",
752
+ "text_level": 1,
753
+ "bbox": [
754
+ 173,
755
+ 303,
756
+ 202,
757
+ 314
758
+ ],
759
+ "page_idx": 5
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "Return: ",
764
+ "bbox": [
765
+ 174,
766
+ 385,
767
+ 246,
768
+ 397
769
+ ],
770
+ "page_idx": 5
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "215 Convergence of the mirror descent. Even if the objective (7) is not convex in $( Q , R , g )$ , we obtain \n216 the non-asymptotic stationary convergence of the MD algorithm in this setting. For that purpose \n217 we consider the same convergence criterion as the one proposed in [32] to obtain non-asymptotic \n218 stationary convergence of the MD scheme defined as ",
775
+ "bbox": [
776
+ 140,
777
+ 422,
778
+ 825,
779
+ 478
780
+ ],
781
+ "page_idx": 5
782
+ },
783
+ {
784
+ "type": "equation",
785
+ "img_path": "images/092911e0842e52a37182e38874ceb6a5626fb289aae8c445942906052764ffb4.jpg",
786
+ "text": "$$\n\\Delta _ { \\varepsilon , \\alpha } ( \\pmb { \\xi } , \\gamma ) : = \\frac { 1 } { \\gamma ^ { 2 } } ( \\mathrm { K L } ( \\pmb { \\xi } , \\mathcal { G } _ { \\varepsilon , \\alpha } ( \\pmb { \\xi } , \\gamma ) ) + \\mathrm { K L } ( \\mathcal { G } _ { \\varepsilon , \\alpha } ( \\pmb { \\xi } , \\gamma ) , \\pmb { \\xi } ) )\n$$",
787
+ "text_format": "latex",
788
+ "bbox": [
789
+ 302,
790
+ 484,
791
+ 694,
792
+ 517
793
+ ],
794
+ "page_idx": 5
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "where 219 $\\begin{array} { r } { \\mathcal { G } _ { \\varepsilon , \\alpha } ( \\pmb { \\xi } , \\gamma ) : = \\mathrm { a r g m i n } _ { \\zeta \\in \\mathcal { C } ( a , b , r , \\alpha ) } \\{ \\langle \\nabla \\mathcal { E } _ { A , B } ( \\pmb { \\xi } ) , \\pmb { \\zeta } \\rangle + \\frac { 1 } { \\gamma } \\mathrm { K L } ( \\zeta , \\pmb { \\xi } ) \\} } \\end{array}$ . For any $1 / r \\ge \\alpha > 0$ , we 220 show in the following proposition the non-asymptotic stationary convergence of the MD scheme 221 applied to the problem (7). See Appendix A for the proof. ",
799
+ "bbox": [
800
+ 142,
801
+ 523,
802
+ 826,
803
+ 570
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "222 Proposition 2. Let $\\varepsilon \\geq 0$ , $\\textstyle { \\frac { 1 } { r } } \\geq \\alpha > 0$ and $N \\geq 1$ . By denoting $L _ { \\varepsilon , \\alpha } : = 2 7 ( \\| A \\| _ { 2 } \\| B \\| _ { 2 } / \\alpha ^ { 4 } + \\varepsilon )$ and by considering a constant stepsize in the MD scheme 223 $\\begin{array} { r } { { \\bf \\Phi } ^ { \\left( 8 \\right) } \\gamma = \\frac { 1 } { 2 L _ { \\varepsilon , \\alpha } } } \\end{array}$ , we obtain that ",
810
+ "bbox": [
811
+ 145,
812
+ 571,
813
+ 828,
814
+ 608
815
+ ],
816
+ "page_idx": 5
817
+ },
818
+ {
819
+ "type": "equation",
820
+ "img_path": "images/a5e2eac46bbf41dde0634344967f388d78912eb7c4c1ef6b60fb388f31df82f3.jpg",
821
+ "text": "$$\n\\operatorname* { m i n } _ { 1 \\leq k \\leq N } \\Delta _ { \\varepsilon , \\alpha } ( ( Q _ { k } , R _ { k } , g _ { k } ) , \\gamma ) \\leq \\frac { 4 L _ { \\varepsilon , \\alpha } D _ { 0 } } { N } .\n$$",
822
+ "text_format": "latex",
823
+ "bbox": [
824
+ 352,
825
+ 614,
826
+ 643,
827
+ 647
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "where 224 $D _ { 0 } : = \\mathscr { E } _ { A , B } ( Q _ { 0 } \\mathrm { d i a g } ( 1 / g _ { 0 } R _ { 0 } ^ { T } ) - \\mathbf { G } \\mathbf { W } \\mathbf { - } \\mathbf { L R } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$ is the distance of the initial value 225 to the optimal one. ",
834
+ "bbox": [
835
+ 148,
836
+ 655,
837
+ 826,
838
+ 686
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Recall that for $\\alpha$ sufficiently small, we have $\\mathrm { { \\bf G W - L R } } _ { \\varepsilon , \\alpha } ^ { ( r ) } ( ( a , A ) , ( b , B ) ) = { \\bf G W - L R } _ { \\varepsilon } ^ { ( r ) } ( ( a , A ) , ( b , B ) )$ . Thus Proposition 2 show that our algorithm reach a stationary point of (7). In particular, if $\\varepsilon = 0$ , the proposed algorithm converges towards a stationary point of (5). ",
845
+ "bbox": [
846
+ 158,
847
+ 696,
848
+ 826,
849
+ 742
850
+ ],
851
+ "page_idx": 5
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "229 5 Double Low-rank Approach for Linear Time GW ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 151,
859
+ 760,
860
+ 619,
861
+ 779
862
+ ],
863
+ "page_idx": 5
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Almost all operations in Algorithm 3 are linear time, except for the three updates highlighted in red, involving $C _ { 1 }$ and $C _ { 2 }$ , and the computations of $\\tilde { x } = A ^ { \\odot \\tilde { 2 } } a$ and $\\tilde { y } = B ^ { \\odot 2 } b$ as they still require a quadratic number of algebraic operations. When adding Assumption 1 from $\\ S 3$ to the rank constrained approach from $\\ S 4$ , we notice that the strengths of both approaches can work hand in hand, both in easier initial evaluations of $\\tilde { x } , \\tilde { y }$ , but, most importantly, at each new recomputation of a factorized linearization of the quadratic objective: ",
868
+ "bbox": [
869
+ 173,
870
+ 791,
871
+ 825,
872
+ 876
873
+ ],
874
+ "page_idx": 5
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Linear time outfactorization for rms. Because . Indeed, rema $A$ admits a that for a low-rank. Therefore $A ^ { \\odot 2 }$ $\\begin{array} { r } { \\boldsymbol { x } , \\boldsymbol { y } \\in \\mathbb { R } ^ { d } , \\langle \\boldsymbol { x } , \\boldsymbol { y } \\rangle ^ { 2 } = \\sum _ { i , j = 1 } ^ { d } x _ { i } x _ { j } y _ { i } y _ { j } } \\end{array}$ ",
879
+ "bbox": [
880
+ 171,
881
+ 881,
882
+ 823,
883
+ 914
884
+ ],
885
+ "page_idx": 5
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "by studying the rows of matrices $A _ { 1 } : = [ a _ { 1 } ^ { ( 1 ) } ; . . . ; a _ { n } ^ { ( 1 ) } ]$ and $A _ { 2 } : = [ a _ { 1 } ^ { ( 2 ) } ; . . . ; a _ { n } ^ { ( 2 ) } ]$ , if one writes $\\psi ( \\boldsymbol { x } ) : = \\mathrm { V e c t } ( \\boldsymbol { x } \\boldsymbol { x } ^ { T } ) \\in \\mathbb { R } ^ { d ^ { 2 } }$ where $\\mathrm { V e c t } ( \\cdot )$ is the vectorization operation, we obtain that ",
890
+ "bbox": [
891
+ 173,
892
+ 88,
893
+ 825,
894
+ 123
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "equation",
900
+ "img_path": "images/2b283825516b4de7bd182f0d11f7fdf85f0596c97ce3d4e8dca6594ac5b6fb79.jpg",
901
+ "text": "$$\n\\begin{array} { r } { A ^ { \\odot 2 } = \\tilde { A } _ { 1 } \\tilde { A _ { 2 } } ^ { T } \\mathrm { ~ w h e r e ~ } \\tilde { A _ { 1 } } = [ \\psi ( a _ { 1 } ^ { ( 1 ) } ) , \\dots , \\psi ( a _ { n } ^ { ( 1 ) } ) ] ^ { T } , \\tilde { A _ { 2 } } = [ \\psi ( a _ { 1 } ^ { ( 2 ) } ) , \\dots , \\psi ( a _ { n } ^ { ( 2 ) } ) ] ^ { T } \\ . } \\end{array}\n$$",
902
+ "text_format": "latex",
903
+ "bbox": [
904
+ 215,
905
+ 128,
906
+ 782,
907
+ 151
908
+ ],
909
+ "page_idx": 6
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "In Algorithm 3, the line “Step 236 $( \\star ) ^ { \\dagger }$ can thus be replaced by $\\tilde { x } \\gets \\tilde { A _ { 1 } } \\tilde { A _ { 2 } } ^ { T } a$ and $\\tilde { y } \\gets \\tilde { B _ { 1 } } \\tilde { B _ { 2 } } ^ { T } b$ Note 237 that computing $\\tilde { A } _ { 1 }$ given $A _ { 1 }$ requires only $\\mathcal { O } ( n d ^ { 2 } )$ operations, so that this alternate code only takes 238 $\\mathcal { O } ( n d ^ { 2 } ) \\bar { + } \\mathcal { O } ( \\bar { m } ( d ^ { \\prime } ) ^ { 2 } )$ operations. ",
914
+ "bbox": [
915
+ 140,
916
+ 156,
917
+ 825,
918
+ 207
919
+ ],
920
+ "page_idx": 6
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "239 Linear time linearization of the GW objective. The linearization step, the critical step in Algo.1 \n240 that consists in updating $C$ at each iteration, consumes a substantial portion of the computational \n241 budget of GW. Introducing the low-rank Sinkhorn approach makes this step quadratic in Algo.3; the \n242 complexity of that step is also quadratic using the low-rank assumption on costs $A$ and $B$ , in Algo.2. \n243 There is therefore an opportunity to marry both to speed-up that important step. We argue that this is \n244 indeed what happens, in the sense that combining the two yields indeed linear time complexities in \n245 sample sizes, by replacing in Algorithm 3, the lines “Step $( \\star \\star ) ^ { \\flat }$ b y ",
925
+ "bbox": [
926
+ 138,
927
+ 210,
928
+ 825,
929
+ 309
930
+ ],
931
+ "page_idx": 6
932
+ },
933
+ {
934
+ "type": "equation",
935
+ "img_path": "images/e5d6a415aa8c39fb9491c2d8af0ba1b07a88ead577c50bddef225657275aa9e4.jpg",
936
+ "text": "$$\n{ \\cal C } _ { 1 } \\gets - A _ { 1 } A _ { 2 } ^ { T } Q \\mathrm { d i a g } ( 1 / g ) \\quad \\mathrm { a n d } \\quad { \\cal C } _ { 2 } \\gets R ^ { T } B _ { 2 } B _ { 1 } ^ { T } .\n$$",
937
+ "text_format": "latex",
938
+ "bbox": [
939
+ 318,
940
+ 314,
941
+ 679,
942
+ 333
943
+ ],
944
+ "page_idx": 6
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "246 Note that this speed-up would not be achieved using other approaches that output a low rank \n247 approximation of the transport plan [4, 3, 31]. The crucial obstacle to using these methods here is that \n248 the cost matrix $C$ in GW is “synthetic“, in the sense that it is the output of a matrix product $A P B$ \n249 involving the very last transport $P$ . This stands in stark contrast with the requirements in [4, 3, 31] \n250 that the kernel matrix corresponding to $K _ { \\varepsilon } = e ^ { - C / \\varepsilon }$ admits favorable properties, such as being p.s.d \n251 or admitting an explicit (random or not) finite dimensional feature approximation. Since $C$ changes \n252 at each iteration in Algo.1, they are not directly applicable. \n53 Combining the results in $\\ S 4$ with those from $\\ S _ { \\mathbf { B } }$ results in updates for $C _ { 1 }$ and $C _ { 2 }$ that only require \n54 $\\mathcal { O } ( n r d )$ and $\\mathcal { O } ( m r d ^ { \\prime } )$ operations. ",
949
+ "bbox": [
950
+ 140,
951
+ 338,
952
+ 825,
953
+ 438
954
+ ],
955
+ "page_idx": 6
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "",
960
+ "bbox": [
961
+ 155,
962
+ 443,
963
+ 823,
964
+ 472
965
+ ],
966
+ "page_idx": 6
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Linear time GW. Finally all the quadratic operations appearing in Algorithm (3) can be replaced by linear counterparts. The iterations that have not been modified had an overall complexity of $\\bar { \\mathcal { O } } ( m r ( r + d ^ { \\prime } ) + \\bar { n } r ( r + d ) )$ at each iteration. The initialization and linearization steps can now be performed in linear time, with respective complexity of respectively $\\mathcal { O } ( n ( r + d ^ { 2 } ) + \\mathrm { \\dot { \\ m } } ( ( d ^ { \\prime } ) ^ { 2 } + r ) )$ and $\\mathcal { O } ( ( n r ( r + d ) + m r ( r + d ^ { \\prime } ) )$ . ",
971
+ "bbox": [
972
+ 161,
973
+ 477,
974
+ 825,
975
+ 547
976
+ ],
977
+ "page_idx": 6
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "260 6 Experiments ",
982
+ "text_level": 1,
983
+ "bbox": [
984
+ 150,
985
+ 565,
986
+ 312,
987
+ 583
988
+ ],
989
+ "page_idx": 6
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Our goal in this section is to demonstrate that, for a far smaller computational budget, the GW-LR approach is competitive with the direct entropic approach on datasets that are either synthesized to exhibit local clusters, or directly validated on a real high-dimensional dataset as well. Because both approaches have different hyperparameters, our goal is to stick to a realistic evaluation that stresses both optimality of solutions as a function of computational effort, as well as performance in real life applications. We start by investigating the sensitivity of hyperparamaters $\\varepsilon$ and $\\gamma$ on our method. Since GW is not convex, these may interact in unexpected ways. Experiments were run on a personal MacBook Pro 2019 laptop. We reused code from github.com/meyerscetbon/LOT, and downloaded genomics data from github.com/rsinghlab/SCOT. ",
994
+ "bbox": [
995
+ 171,
996
+ 595,
997
+ 825,
998
+ 722
999
+ ],
1000
+ "page_idx": 6
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Benchmarks. We consider three synthetic problems and one real world problem to evaluate timeaccuracy trade-offs, and also compare the couplings obtained by our method and that of the entropic version [27]. More precisely, we compare the quadratic approach in GW-LR computed with algorithm (3) (and its linear time counterpat, Lin GW-LR as presented in $\\ S 5$ ), with EntropicGW, the cubic implementation of [27] (as well as its quadratic counterpart, Quad Entropic-GW presented in Algo. 2). For GW-LR and Lin GW-LR, and in all experiments, we set the lower bound on entries of g to ↵ = 10\u000010 . ",
1005
+ "bbox": [
1006
+ 158,
1007
+ 727,
1008
+ 825,
1009
+ 825
1010
+ ],
1011
+ "page_idx": 6
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Initialization To initialize all algorithms with a common strategy, we adapted the first lower bound of [26, Def. 6.1] to the entropic case. In all experiments showing time-accuracy tradeoffs, we choose to use number of operations to provide platform independent quantities. Accuracy is measured by evaluating the ground-truth energy $\\mathcal { E } _ { , B }$ (even in scenarios when the method uses a low rank approximation for $A , B$ at optimization time). ",
1016
+ "bbox": [
1017
+ 171,
1018
+ 830,
1019
+ 823,
1020
+ 901
1021
+ ],
1022
+ "page_idx": 6
1023
+ },
1024
+ {
1025
+ "type": "image",
1026
+ "img_path": "images/ced3128aec5a3e2f1ee8b3a2ad54bff8f7dd8e662233522796a537c2ee35f7a0.jpg",
1027
+ "image_caption": [
1028
+ "Figure 3: The number of cluster in each distribution is 10 and the number of samples is $n = m = 5 0 0 0$ . The ground cost is the Euclidean distance. As we can evaluate the distance between two arbitrary points, we can obtain in linear-time an efficient approximation of the distance matrices $A$ and $B$ as presented in 3. The rank of their factorizations is fixed to be $d = d ^ { \\prime } = 1 0 0$ . GW-LR and EntropicGW corresponds to the case where the full matrices $A$ and $B$ are considered while Lin GW-LR and Quad Entropic-GW take as inputs the low-rank approximations of the distance matrices. We plot the time-accuracy tradeoff for multiple choices of $\\gamma$ and rank $r$ defined as a fraction of $n$ . For Entropic-GW and Quad Entropic-GW, we set $\\varepsilon = 1 / \\gamma$ as proposed in [27]. Recall that for low-rank methods, we set $\\varepsilon = 0$ . "
1029
+ ],
1030
+ "image_footnote": [],
1031
+ "bbox": [
1032
+ 173,
1033
+ 87,
1034
+ 825,
1035
+ 209
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Sensitivity to $\\gamma$ and $\\varepsilon$ Here we aim at showing the dependence in both $\\gamma$ and $\\varepsilon$ of our proposed method. In Figure 2, we compare the GW loss obtained by our algorithm when varying $\\varepsilon$ and $\\gamma$ on two mixtures. We show that when $\\varepsilon = 0$ , the proposed method manage to consistently obtain small GW loss whatever $\\gamma$ is. 8 By allowing $\\varepsilon > 0$ , the algorithm is able to reach even smaller GW loss, however, the choice of $\\varepsilon$ depends highly on $\\gamma$ . Therefore in the following experiments, we fix $\\varepsilon = 0$ for our method. We also show the dependence in $\\gamma$ and $\\varepsilon$ of our method in other settings and observe similar behaviors. See Appendix D.2 for 4 more details. ",
1042
+ "bbox": [
1043
+ 156,
1044
+ 375,
1045
+ 517,
1046
+ 553
1047
+ ],
1048
+ "page_idx": 7
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Remark 1. As shown in Figure 8 in Appendix D.2, allowing $\\varepsilon > 0$ may also increase the speed of convergence of the algorithm. However choosing well $\\varepsilon$ for a given $\\gamma$ must be done carefully and we prefer in the following experiments to present the performance of our method in the simplest setting where $\\varepsilon = 0$ . ",
1053
+ "bbox": [
1054
+ 173,
1055
+ 561,
1056
+ 517,
1057
+ 645
1058
+ ],
1059
+ "page_idx": 7
1060
+ },
1061
+ {
1062
+ "type": "image",
1063
+ "img_path": "images/58a709d7ba81bc3cb25edfaf380271a8b7d1638e8c02cdcfc50025f0b4029cf8.jpg",
1064
+ "image_caption": [
1065
+ "Figure 2: In this experiment, we consider two mixtures of (2 and 3) Gaussians in respectively 5-D and 10-D, sampled as discrete measures with $n = m = 5 0 0 0$ points, see more details on setup in Appendix D.2. The ground cost is the squared Euclidean distance, which provides an exact low-rank factorization of the cost as presented in $\\ S \\ O 3$ . Results on speed (in Appendix) are therefore obtained using Lin GW-LR. The nonnegative rank of the coupling is set to $r = 5 0 = n / 1 0 0$ . We plot the GW loss obtained by Lin GW-LR when varying $\\epsilon$ for multiple choices of $\\gamma$ . Both size and color have been used to quantify visually the value of the loss at that parameter pair. Occasional inversions are due to the nonconvex nature of the GW problem. "
1066
+ ],
1067
+ "image_footnote": [],
1068
+ "bbox": [
1069
+ 531,
1070
+ 393,
1071
+ 803,
1072
+ 545
1073
+ ],
1074
+ "page_idx": 7
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "01 Synthetic low-rank problem In this experiment \n02 we aim at comparing the time-accuracy tradeoff of \n03 the different methods when the underlying distribu \n04 tions has a low-rank structure. For that purpose, we \n05 consider two distributions in respectively 10-D and \n06 15-D, where the support of each distributions is the \n07 concatenation of clusters of points, and where the eu \n08 clidean distance between the centroids of the clusters \n09 is bigger than a threshold $\\beta$ . Here we set $\\beta = 1 0$ . \n10 Both distributions are uniform, have the same number \n311 of clusters and the same number of points in each cluster. Some illustrations of the simulated data \n312 is provided in Appendix D.3. In Figure 3, when the underlying cost is the (not squared) Euclidean \n313 distance, our methods manage to consistently obtain similar accuracy that the ones obtained by \n314 entropic methods, with very low rank $r = n / 5 0 0$ , while being orders of magnitude faster. In Figure 4, \n315 we also compare the time-accuracy tradeoffs in the more favorable case where the underlying cost \n316 is the squared Euclidean distance and obtain similar results. We also show more experiments for \n317 different number of clusters in Appendix D.3, leading to similar conclusions. ",
1079
+ "bbox": [
1080
+ 151,
1081
+ 676,
1082
+ 517,
1083
+ 814
1084
+ ],
1085
+ "page_idx": 7
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "",
1090
+ "bbox": [
1091
+ 140,
1092
+ 814,
1093
+ 825,
1094
+ 911
1095
+ ],
1096
+ "page_idx": 7
1097
+ },
1098
+ {
1099
+ "type": "image",
1100
+ "img_path": "images/205bfafdd7068632b78380a9723796c677156a099b7b76bf03b8ebfa0f53f9ad.jpg",
1101
+ "image_caption": [
1102
+ "Figure 4: The number of clusters in each distribution is 5 and the number of samples considered here is $n = m = 1 0 0 0 0$ . The ground cost is the squared Euclidean distance. We compare Lin GW-LR and Quad Entropic-GW as we have an exact factorization of the matrices $A$ and $B$ . We plot the time-accuracy tradeoff when varying $\\gamma$ for multiple choices of $r$ . For Quad Entropic-GW, we set $\\varepsilon = 1 / \\gamma$ and for Lin GW-LR we set $\\varepsilon = 0$ . "
1103
+ ],
1104
+ "image_footnote": [],
1105
+ "bbox": [
1106
+ 173,
1107
+ 88,
1108
+ 823,
1109
+ 196
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "image",
1115
+ "img_path": "images/f357507bc64ee0a9d0b9ea5317bd8491b5252e6d657cf1bfa6c8e18bf3b3b8cf.jpg",
1116
+ "image_caption": [
1117
+ "Figure 5: We plot, for each cells of the SNAREseq dataset, the FOSCTTM ranked in the increasing order for both GW-LR and Entropic-GW. "
1118
+ ],
1119
+ "image_footnote": [],
1120
+ "bbox": [
1121
+ 173,
1122
+ 286,
1123
+ 825,
1124
+ 398
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "image",
1130
+ "img_path": "images/44a0b85b7dc95af7583f8947b4baaddc578e9a97e8c9a0235263eef73478c8a8.jpg",
1131
+ "image_caption": [
1132
+ "Figure 6: Plot of the time-accuracy tradeoff when varying $\\gamma$ for multiple choices of rank $r$ on the SNAREseq dataset. For Entropic-GW we set $\\varepsilon = 1 / \\gamma$ , for GW-LR, we set $\\varepsilon = 0$ . "
1133
+ ],
1134
+ "image_footnote": [],
1135
+ "bbox": [
1136
+ 173,
1137
+ 445,
1138
+ 823,
1139
+ 555
1140
+ ],
1141
+ "page_idx": 8
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Experiments on Single Cell Genomics Data. We reproduce the single-cell alignment experiment introduced in [14]. The dataset consists in single-cell multi-omics data generated by co-assays. In that setup, the ground truth one–to-one correspondence information between cells is known, and can therefore be used to benchmark GW strategies. The dataset considered is the SNAREseq [10], with $n = m = 1 0 4 7$ . We apply the exact same pre-processing steps as proposed in [14] by computing intra-domain distance matrices $A$ and $B$ with a k-NN graphs based on correlations, to compute shortest path distance matrices. Note that in that case, one cannot obtain directly in linear time a low-rank factorization of $A$ and $B$ using [5, 21], since the shortest path distances need to be computed first. Therefore we only consider the quadratic GW-LR and the cubic Entropic-GW. In Figure 6, we compare the alignment performance through the “fraction of samples closer than the true match” (FOSCTTM) introduced in [25]. We see that both algorithm obtain similar performance. However, in Figure 5, we show that whatever the $\\gamma$ chosen, GW-LR reaches better accuracy while being order of magnitude faster than Entropic-GW for a very small rank $r = 1 0$ . ",
1146
+ "bbox": [
1147
+ 171,
1148
+ 616,
1149
+ 825,
1150
+ 796
1151
+ ],
1152
+ "page_idx": 8
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Conclusion. While the factorization introduced in [32] held the promise to speed up classic OT, we have shown in this work that it delivers an even larger impact when applied to the GW problem: Indeed, the combination of low-rank Sinkhorn factorization with-low rank cost matrices is the only one, to our knowledge, that ensures that the linearization step of the GW objective can be carried out with a linear complexity, throughout outer iterations. This linear complexity is comparable to that of the most recent OT solvers, yet still retains the appealing properties of the Entropic approach, such as stability and convergence to meaningful solutions. ",
1157
+ "bbox": [
1158
+ 169,
1159
+ 803,
1160
+ 825,
1161
+ 900
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "References ",
1168
+ "text_level": 1,
1169
+ "bbox": [
1170
+ 151,
1171
+ 90,
1172
+ 267,
1173
+ 106
1174
+ ],
1175
+ "page_idx": 9
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "[1] Jean Alaux, Edouard Grave, Marco Cuturi, and Armand Joulin. Unsupervised hyperalignment for multilingual word embeddings. arXiv preprint arXiv:1811.01124, 2018. \n[2] Jason Altschuler, Jonathan Weed, and Philippe Rigollet. Near-linear time approximation algorithms for optimal transport via sinkhorn iteration. arXiv preprint arXiv:1705.09634, 2017. \n[3] Jason Altschuler, Francis Bach, Alessandro Rudi, and Jonathan Niles-Weed. Massively scalable sinkhorn distances via the nyström method, 2018. \n[4] Jason Altschuler, Francis Bach, Alessandro Rudi, and Jonathan Weed. Approximating the quadratic transportation metric in near-linear time. arXiv preprint arXiv:1810.10046, 2018. \n[5] Ainesh Bakshi and David P. Woodruff. Sublinear time low-rank approximation of distance matrices, 2018. \n[6] Andrew J Blumberg, Mathieu Carriere, Michael A Mandell, Raul Rabadan, and Soledad Villar. Mrec: a fast and versatile framework for aligning and matching point clouds with applications to single cell molecular data. arXiv preprint arXiv:2001.01666, 2020. \n[7] Charlotte Bunne, David Alvarez-Melis, Andreas Krause, and Stefanie Jegelka. Learning generative models across incomparable spaces. arXiv preprint arXiv:1905.05461, 2019. \n[8] Rainer E Burkard, Eranda Cela, Panos M Pardalos, and Leonidas S Pitsoulis. The quadratic assignment problem. In Handbook of combinatorial optimization, pages 1713–1809. Springer, 1998. \n[9] Laetitia Chapel, Mokhtar Alaya, and Gilles Gasso. Partial optimal transport with applications on positive-unlabeled learning. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020), 2020. \n[10] Song Chen, Blue B Lake, and Kun Zhang. High-throughput sequencing of the transcriptome and chromatin accessibility in the same cell. Nature biotechnology, 37(12):1452–1457, 2019. \n[11] Samir Chowdhury, David Miller, and Tom Needham. Quantized gromov-wasserstein. arXiv preprint arXiv:2104.02013, 2021. \n[12] Alexis Conneau, Guillaume Lample, Marc’Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Word translation without parallel data. arXiv preprint arXiv:1710.04087, 2017. \n[13] Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in neural information processing systems, pages 2292–2300, 2013. \n[14] Pinar Demetci, Rebecca Santorella, Björn Sandstede, William Stafford Noble, and Ritambhara Singh. Gromov-wasserstein optimal transport to align single-cell multi-omics data. bioRxiv, 2020. doi: 10.1101/2020.04.28.066787. \n[15] Pinar Demetci, Rebecca Santorella, Bjorn Sandstede, William Stafford Noble, and Ritambhara Singh. Gromov-wasserstein optimal transport to align single-cell multi-omics data. BioRxiv, 2020. \n[16] Richard Mansfield Dudley et al. Weak convergence of probabilities on nonseparable metric spaces and empirical measures on euclidean spaces. Illinois Journal of Mathematics, 10(1): 109–126, 1966. \n[17] Danielle Ezuz, Justin Solomon, Vladimir G Kim, and Mirela Ben-Chen. Gwcnn: A metric alignment layer for deep shape analysis. In Computer Graphics Forum, volume 36, pages 49–57. Wiley Online Library, 2017. \n[18] Aden Forrow, Jan-Christian Hütter, Mor Nitzan, Philippe Rigollet, Geoffrey Schiebinger, and Jonathan Weed. Statistical optimal transport via factored couplings, 2018. \n[19] Aden Forrow, Jan-Christian Hütter, Mor Nitzan, Philippe Rigollet, Geoffrey Schiebinger, and Jonathan Weed. Statistical optimal transport via factored couplings. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 2454–2465. PMLR, 2019. \n[20] Steven Gold and Anand Rangarajan. Softassign versus softmax: Benchmarks in combinatorial optimization. Advances in neural information processing systems, pages 626–632, 1996. \n[21] Piotr Indyk, Ali Vakilian, Tal Wagner, and David Woodruff. Sample-optimal low-rank approximation of distance matrices, 2019. \n[22] Hicham Janati, Thomas Bazeille, Bertrand Thirion, Marco Cuturi, and Alexandre Gramfort. Multi-subject meg/eeg source imaging with sparse multi-task regression. NeuroImage, page 116847, 2020. \n[23] Hiroshi Konno. Maximization of a convex quadratic function under linear constraints. Mathematical programming, 11(1):117–127, 1976. \n[24] Matt Kusner, Yu Sun, Nicholas Kolkin, and Kilian Q Weinberger. From word embeddings to document distances. In Proc. of the 32nd Intern. Conf. on Machine Learning, pages 957–966, 2015. \n[25] Jie Liu, Yuanhao Huang, Ritambhara Singh, Jean-Philippe Vert, and William Stafford Noble. Jointly embedding multiple single-cell omics measurements. BioRxiv, page 644310, 2019. \n[26] Facundo Mémoli. Gromov–wasserstein distances and the metric approach to object matching. Foundations of computational mathematics, 11(4):417–487, 2011. \n[27] Gabriel Peyré, Marco Cuturi, and Justin Solomon. Gromov-wasserstein averaging of kernel and distance matrices. In International Conference on Machine Learning, pages 2664–2672, 2016. \n[28] Gabriel Peyré and Marco Cuturi. Computational optimal transport. Foundations and Trends in Machine Learning, 11(5-6), 2019. ISSN 1935-8245. \n[29] Yossi Rubner, Carlo Tomasi, and Leonidas J. Guibas. The earth mover’s distance as a metric for image retrieval. International Journal of Computer Vision, 40(2):99–121, November 2000. \n[30] Ryoma Sato, Marco Cuturi, Makoto Yamada, and Hisashi Kashima. Fast and robust comparison of probability measures in heterogeneous spaces. arXiv preprint arXiv:2002.01615, 2020. \n[31] Meyer Scetbon and Marco Cuturi. Linear time sinkhorn divergences using positive features, 2020. \n[32] Meyer Scetbon, Marco Cuturi, and Gabriel Peyré. Low-rank sinkhorn factorization, 2021. \n[33] Geoffrey Schiebinger, Jian Shu, Marcin Tabaka, Brian Cleary, Vidya Subramanian, Aryeh Solomon, Joshua Gould, Siyan Liu, Stacie Lin, Peter Berube, et al. Optimal-transport analysis of single-cell gene expression identifies developmental trajectories in reprogramming. Cell, 176 (4):928–943, 2019. \n[34] Richard Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. Ann. Math. Statist., 35:876–879, 1964. \n[35] Justin Solomon, Gabriel Peyré, Vladimir G Kim, and Suvrit Sra. Entropic metric alignment for correspondence problems. ACM Transactions on Graphics (TOG), 35(4):1–13, 2016. \n[36] Karl-Theodor Sturm. The space of spaces: curvature bounds and gradient flows on the space of metric measure spaces. arXiv preprint arXiv:1208.0434, 2012. \n[37] Titouan Vayer, Laetita Chapel, Rémi Flamary, Romain Tavenard, and Nicolas Courty. Fused gromov-wasserstein distance for structured objects: theoretical foundations and mathematical properties. arXiv preprint arXiv:1811.02834, 2018. \n[38] Titouan Vayer, Rémi Flamary, Romain Tavenard, Laetitia Chapel, and Nicolas Courty. Sliced gromov-wasserstein. arXiv preprint arXiv:1905.10124, 2019. \n[39] Jonathan Weed and Francis Bach. Sharp asymptotic and finite-sample rates of convergence of empirical measures in wasserstein distance. Bernoulli, 25(4A):2620–2648, 2019. \n[40] Hongteng Xu, Dixin Luo, and Lawrence Carin. Scalable gromov-wasserstein learning for graph partitioning and matching. arXiv preprint arXiv:1905.07645, 2019. \n[41] Hongteng Xu, Dixin Luo, Hongyuan Zha, and Lawrence Carin Duke. Gromov-wasserstein learning for graph matching and node embedding. In International conference on machine learning, pages 6932–6941. PMLR, 2019. ",
1180
+ "bbox": [
1181
+ 165,
1182
+ 99,
1183
+ 830,
1184
+ 912
1185
+ ],
1186
+ "page_idx": 9
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "",
1191
+ "bbox": [
1192
+ 166,
1193
+ 51,
1194
+ 828,
1195
+ 848
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Checklist ",
1202
+ "text_level": 1,
1203
+ "bbox": [
1204
+ 173,
1205
+ 868,
1206
+ 254,
1207
+ 883
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "1. For all authors... ",
1214
+ "bbox": [
1215
+ 214,
1216
+ 897,
1217
+ 339,
1218
+ 911
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] The main claim of the paper is a linear time (w.r.t. sample size, as commonly understood in OT) computation for GW. Sections $\\ S 3 , 4$ and 5 build up that answer. This is experimentally validated across several experiments, both synthetic, to help the reader form intuitions, and on real data where GW was deemed useful. \n(b) Did you describe the limitations of your work?[Yes] Because the GW problem is nonconvex, these limitations are naturally discussed in the experimental section, Section $\\ S 6$ We discuss the effects of $\\gamma$ and $\\varepsilon$ on the method, which are not easy to parse due to the non-convexity of the method. \n(c) Did you discuss any potential negative societal impacts of your work?[N/A] As a purely methodological paper, we do not envision potentially negative impact of this work on its own. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them?[Yes] We have read these guidelines and confirm our paper does conform to them. ",
1225
+ "bbox": [
1226
+ 238,
1227
+ 92,
1228
+ 825,
1229
+ 320
1230
+ ],
1231
+ "page_idx": 11
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "2. If you are including theoretical results... ",
1236
+ "bbox": [
1237
+ 215,
1238
+ 325,
1239
+ 493,
1240
+ 340
1241
+ ],
1242
+ "page_idx": 11
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "(a) Did you state the full set of assumptions of all theoretical results?[Yes] Our theoretical results are of two nature: a bound in Proposition 1, and a guarantee on convergence in Proposition 2, which has no direct consequence on our empirical findings, yet remain useful. Theory is not our main contribution, but rather algorithms. \n(b) Did you include complete proofs of all theoretical results?[Yes] all proofs are in the appendix. Space in the main body of the paper was prioritized to include experimental validation, which, for this non-convex problem, we believe to be equally important. ",
1247
+ "bbox": [
1248
+ 238,
1249
+ 344,
1250
+ 825,
1251
+ 445
1252
+ ],
1253
+ "page_idx": 11
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "3. If you ran experiments... ",
1258
+ "bbox": [
1259
+ 214,
1260
+ 449,
1261
+ 393,
1262
+ 463
1263
+ ],
1264
+ "page_idx": 11
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)?[Yes] We have included portions of the code that we have used. We pledge to make the entire code available later in the reviewing process. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)?[Yes] The main contribution is compute efficiency, that we have considered across several parameter choices. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)?[N/A] Our experiments are deterministic, since we use a predefined initialization. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)?[Yes] The experiments were run with basic computational means, a macbook pro. ",
1269
+ "bbox": [
1270
+ 238,
1271
+ 469,
1272
+ 825,
1273
+ 656
1274
+ ],
1275
+ "page_idx": 11
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1280
+ "bbox": [
1281
+ 209,
1282
+ 661,
1283
+ 823,
1284
+ 675
1285
+ ],
1286
+ "page_idx": 11
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "(a) If your work uses existing assets, did you cite the creators?[Yes] We have reused a single toolbox, and accessed data available publicly. \n(b) Did you mention the license of the assets? [Yes] All licenses are open source, see supplementary. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] Yes, code is shared in the supplementary. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1291
+ "bbox": [
1292
+ 238,
1293
+ 680,
1294
+ 825,
1295
+ 829
1296
+ ],
1297
+ "page_idx": 11
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1302
+ "bbox": [
1303
+ 214,
1304
+ 833,
1305
+ 705,
1306
+ 848
1307
+ ],
1308
+ "page_idx": 11
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] ",
1313
+ "bbox": [
1314
+ 238,
1315
+ 852,
1316
+ 825,
1317
+ 912
1318
+ ],
1319
+ "page_idx": 11
1320
+ }
1321
+ ]
parse/train/rHCzkRd0UK/rHCzkRd0UK_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rHCzkRd0UK/rHCzkRd0UK_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgYxn09Fm/rJgYxn09Fm.md ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING IMPLICITLY RECURRENT CNNS THROUGH PARAMETER SHARING
2
+
3
+ Pedro Savarese TTI-Chicago savarese@ttic.edu
4
+
5
+ Michael Maire University of Chicago mmaire@uchicago.edu
6
+
7
+ # ABSTRACT
8
+
9
+ We introduce a parameter sharing scheme, in which different layers of a convolutional neural network (CNN) are defined by a learned linear combination of parameter tensors from a global bank of templates. Restricting the number of templates yields a flexible hybridization of traditional CNNs and recurrent networks. Compared to traditional CNNs, we demonstrate substantial parameter savings on standard image classification tasks, while maintaining accuracy.
10
+
11
+ Our simple parameter sharing scheme, though defined via soft weights, in practice often yields trained networks with near strict recurrent structure; with negligible side effects, they convert into networks with actual loops. Training these networks thus implicitly involves discovery of suitable recurrent architectures. Though considering only the design aspect of recurrent links, our trained networks achieve accuracy competitive with those built using state-of-the-art neural architecture search (NAS) procedures.
12
+
13
+ Our hybridization of recurrent and convolutional networks may also represent a beneficial architectural bias. Specifically, on synthetic tasks which are algorithmic in nature, our hybrid networks both train faster and extrapolate better to test examples outside the span of the training set.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ The architectural details of convolutional neural networks (CNNs) have undergone rapid exploration and improvement via both human hand-design (Simonyan & Zisserman, 2015; Szegedy et al., 2015; He et al., 2016; Huang et al., 2017; Zhu et al., 2018) and automated search methods (Zoph & Le, 2017; Liu et al., 2018). Yet, this vast array of work limits itself to a circuit-like view of neural networks. Here, a CNN is regarded as a fixed-depth feed-forward circuit, with a distinct parameter governing each internal connection. These circuits are often trained to perform tasks which, in a prior era, might have been (less accurately) accomplished by running a traditional computer program coded by humans. Programs, and even traditional hardware circuits, have a more reusable internal structure, including subroutines or modules, loops, and associated control flow mechanisms.
18
+
19
+ We bring one aspect of such modularity into CNNs, by making it possible to learn a set of parameters that is reused across multiple layers at different depths. As the pattern of reuse is itself learned, our scheme effectively permits learning the length (iteration count) and content of multiple loops defining the resulting CNN. We view this approach as a first step towards learning neural networks with internal organization reminiscent of computer programs. Though we focus solely on loop-like structures, leaving subroutines and dynamic control flow to future work, this simple change suffices to yield substantial quantitative and qualitative benefits over the standard baseline CNN models.
20
+
21
+ While recurrent neural networks (RNNs) possess a loop-like structure by definition, their loop structure is fixed a priori, rather than learned as part of training. This can actually be a disadvantage in the event that the length of the loop is mismatched to the target task. Our parameter sharing scheme for CNNs permits a mix of loops and feed-forward layers to emerge. For example, trained with our scheme, a 50-layer CNN might learn a 2-layer loop that executes 5 times between layers 10 and 20, a 3-layer loop that runs 4 times from layers 30 to 42, while leaving the remaining layers to assume independent parameter sets. Our approach generalizes both CNNs and RNNs, creating a hybrid.
22
+
23
+ ![](images/a2c9b5bb263d8cd0bf0d9985922b8c7f6508fe346bcd32491b1fd6dc3f69077c.jpg)
24
+ Figure 1: Parameter sharing scheme. Left: A CNN (possibly a variant such as a residual network), with each convolutional layer $_ { i }$ containing an individual parameter set $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ . Middle: Parameter sharing among layers, where parameter templates $\boldsymbol { \mathsf { T } } ^ { ( 1 ) }$ , ${ \boldsymbol { \mathsf { T } } } ^ { ( 2 ) }$ are shared among each layer $_ { i }$ , which now only contains a 2-dimensional parameter $\mathbf { \pmb { \alpha } } ^ { ( i ) }$ . Weights $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ (no longer parameters, illustrated with dotted boxes) used by layer $i$ are generated from $\mathbf { \pmb { \alpha } } ^ { ( i ) }$ and templates ${ \boldsymbol { \mathsf { T } } } ^ { ( 1 ) }$ , ${ \boldsymbol { \mathsf { T } } } ^ { ( 2 ) }$ . Right: If weights $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ are outputs of a linear function (as in our method), learning parameter templates can be viewed as learning layer templates, offering a new (although equivalent) perspective for the middle diagram. Non-linearities are omitted for simplicity.
25
+
26
+ Figure 1 diagrams the parameter sharing scheme facilitating this hybridization. Inspired by dictionary learning, different network layers share, via weighted combination, global parameter templates. This re-parameterization is fully differentiable, allowing learning of sharing weights and template parameters. Section 3 elaborates, and also introduces tools for analyzing learned loop structures.
27
+
28
+ Section 4 demonstrates advantages of our hybrid CNNs across multiple experimental settings. Taking a modern CNN design as a baseline, and re-parameterizing it according to our scheme improves:
29
+
30
+ • Parameter efficiency. Here, we experiment with the standard task of image classification using modern residual networks (He et al., 2016; Zagoruyko & Komodakis, 2016). This task is a good proxy for general usefulness in computer vision, as high-performance classification architectures often serve as a backbone for many other vision tasks, such as semantic segmentation (Chen et al., 2016; Zhao et al., 2017).
31
+
32
+ Our parameter sharing scheme drastically reduces the number of unique parameters required to achieve a given accuracy on CIFAR (Krizhevsky, 2009) or ImageNet (Russakovsky et al., 2015) classification tasks. Re-parameterizing a standard residual network with our scheme cuts parameters, without triggering any drop in accuracy. This suggests that standard CNNs may be overparameterized in part because, by design (and unlike RNNs), they lack capacity to learn reusable internal operations.
33
+
34
+ • Extrapolation and generalization. Here, we explore whether our hybrid networks expand the class of tasks that one can expect to train neural networks to accomplish. This line of inquiry, focusing on synthetic tasks, shares motivations with work on Neural Turing Machines (Graves et al., 2014). Specifically, we would like neural networks to be capable of learning to perform tasks for which there are concise traditional solution algorithms. Graves et al. (2014) uses sorting as an example task. As we examine an extension of CNNs, our tasks take the form of queries about planar graphs encoded as image input.
35
+
36
+ On these tasks, we observe improvements to both generalization ability and learning speed for our hybrid CNNs, in comparison to standard CNNs or RNNs. Our parameter sharing scheme, by virtue of providing an architectural bias towards networks with loops, appears to assist in learning to emulate traditional algorithms.
37
+
38
+ An additional side effect, seen in practice in many of our experiments, is that two different learned layers often snap to the same parameter values. That is, layers $i$ and $j$ , learn coefficient vectors $\mathbf { \alpha } \alpha ^ { ( i ) }$ and $\pmb { \alpha } ^ { ( j ) }$ (see Figure 1) that converge to be the same (up to scaling). This is a form of architecture discovery, as it permits representation of the CNN as a loopy wiring diagram between repeated layers. Section 4.3 presents example results. We also draw comparisons to existing neural architecture search (NAS) techniques. By simply learning recurrent structure as byproduct of training with standard stochastic gradient descent, we achieve accuracy competitive with current NAS procedures.
39
+
40
+ Before delving into the details of our method, Section 2 provides additional context in terms of prior work on recurrent models, parameter reduction techniques, and program emulation. Sections 3 and 4 describe our hybrid shared-parameter CNN, experimental setup, and results. Section 5 concludes with commentary on our results and possible future research pathways.1
41
+
42
+ # 2 RELATED WORK
43
+
44
+ Recurrent variants of CNNs are used extensively for visual tasks. Recently, Zamir et al. (2017) propose utilizing a convolutional LSTM (Shi et al., 2015) as a generic feedback architecture. RNN and CNN combinations have been used for scene labeling (Pinheiro & Collobert, 2014), image captioning with attention (Xu et al., 2015), and understanding video (Donahue et al., 2015), among others. These works combine CNNs and RNNs at a coarse scale, and in a fixed hand-crafted manner. In contrast, we learn the recurrence structure itself, blending it into the inner workings of a CNN.
45
+
46
+ Analysis of residual networks (He et al., 2016) reveals possible connections to recurrent networks stemming from their design (Liao & Poggio, 2016). Greff et al. (2017) provide evidence that residual networks learn to iteratively refine feature representations, making an analogy between a very deep residual network and an unrolled loop. Jastrzebski et al. (2018) further explore this connection, and experiment with training residual networks in which some layers are forced to share identical parameters. This hard parameter sharing scheme again builds a predetermined recurrence structure into the network. It yields successfully trained networks, but does not exhibit the type of performance gains that Section 4 demonstrates for our soft parameter sharing scheme.
47
+
48
+ Closely related to our approach is the idea of hypernetworks (Ha et al., 2016), in which one part of a neural network is parameterized by another neural network. Our shared template-based reparameterization could be viewed as one simple choice of hypernetwork implementation. Perhaps surprisingly, this class of ideas has not been well explored for the purpose of reducing the size of neural networks. Rather, prior work has achieved parameter reduction through explicit representation bottlenecks (Iandola et al., 2016), sparsifying connection structure (Prabhu et al., 2018; Huang et al., 2018; Zhu et al., 2018), and pruning trained networks (Han et al., 2016).
49
+
50
+ Orthogonal to the question of efficiency, there is substantial interest in extending neural networks to tackle new kinds of tasks, including emulation of computer programs. Some approach this problem using additional supervision in the form of execution traces (Reed & de Freitas, 2016; Cai et al., 2017), while other focus on development of network architectures that can learn from input-output pairs alone (Graves et al., 2014; 2016; Zaremba et al., 2016; Trask et al., 2018). Our experiments on synthetic tasks fall into the latter camp. At the level of architectural strategy, Trask et al. (2018) benefit from changing the form of activation function to bias the network towards correctly extrapolating common mathematical formulae. We build in a different implicit bias, towards learning iterative procedures within a CNN, and obtain a boost on correctly emulating programs.
51
+
52
+ # 3 SOFT PARAMETER SHARING
53
+
54
+ In convolutional neural networks (CNNs) and variants such as residual CNNs (ResNets) (He et al., 2016) and DenseNets (Huang et al., 2017), each convolutional layer $i$ contains a set of parameters $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ , with no explicit relation between parameter sets of different layers. Conversely, a strict structure is imposed to layers of recurrent neural networks (RNNs), where, in standard models (Hochreiter & Schmidhuber, 1997), a single parameter set $\pmb { \mathsf { W } }$ is shared among all time steps. This leads to a program-like computational flow, where RNNs can be seen as loops with fixed length and content. While some RNN variants (Graves et al., 2013; Koutn´ık et al., 2014; Yang et al., 2018) are less strict on the length or content of loops, these are still typically fixed beforehand.
55
+
56
+ As an alternative to learning hard parameter sharing schemes – which correspond to the strict structure present in RNNs – our method consists of learning soft sharing schemes through a relaxation of this structure. We accomplish this by expressing each layer’s parameters $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ as a linear combination of parameter templates $\mathbf { \overline { { I } } } ^ { ( 1 ) } , \ldots , \mathbf { \overline { { I } } } ^ { ( k ) }$ , each with the same dimensionality as $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ :
57
+
58
+ ![](images/30aa8071d0e5ad98b194b3c861782577cf515638614a5ad4b9997a5766ff7be7.jpg)
59
+ Figure 2: Connection between the LSM matrix $S$ where $\begin{array} { r } { S _ { i , j } = \frac { | \langle { \pmb { \alpha } } ^ { ( i ) } , { \pmb { \alpha } } ^ { ( j ) } \rangle | } { \| { \pmb { \alpha } } ^ { ( i ) } \| \| { \pmb { \alpha } } ^ { ( j ) } \| } \ ) } \end{array}$ and the structure of the network. White and black entries correspond to maximum and minimum similarities $( S _ { i , j } = 1$ and $S _ { i , j } = 0$ , respectively). Left: Empirically, CNNs present no similarity between parameters of different layers. Middle: Trained with our method, the layer similarity matrix (LSM) captures similarities between different layers, including pairs with close to maximum similarity. Such pairs (depicted by same-colored coefficients and weights, and by white entries in the LSM) perform similar operations on their inputs. Right: We can tie together parameters of similar layers, creating a hard parameter sharing scheme. The network can then be folded, creating self-loops and revealing an explicit recurrent computation structure.
60
+
61
+ $$
62
+ \pmb { \mathsf { W } } ^ { ( i ) } : = \sum _ { j = 1 } ^ { k } \alpha _ { j } ^ { ( i ) } \pmb { \mathsf { T } } ^ { ( j ) }
63
+ $$
64
+
65
+ where $k$ is the number of parameter templates (chosen freely as a hyperparameter) and $\mathbf { \alpha } \alpha ^ { ( i ) }$ , a $k$ - dimensional vector, is the coefficients of layer $i$ . Figure 1 (left and middle) illustrates the difference between networks trained with and without our method. This relaxation allows for coefficients and parameter templates to be (jointly) optimized with gradient-based methods, yielding negligible extra computational cost, with a single constraint that only layers with same parameter sizes can share templates. Note that constraining coefficients $\mathbf { \alpha } \alpha ^ { ( i ) }$ to be one-hot vectors leads to hard sharing schemes, at the cost of non-differentiability.
66
+
67
+ Having $k$ as a free parameter decouples the number of parameters in network from its depth. Typically, $L$ convolutional layers with constant channel and kernel sizes $C , K$ have $O ( L C ^ { 2 } { \dot { K } } ^ { 2 } )$ total parameters. Our soft sharing scheme changes the total number of parameters to $O ( k L + k C ^ { 2 } K ^ { 2 } ) =$ $\scriptstyle \dot { O } ( k C ^ { 2 } K ^ { 2 } )$ . Sections 4.1 and 4.2 show that we can decrease the parameter count of standard models without significantly impacting accuracy, or simply attain higher accuracy with $k = L$ .
68
+
69
+ In the next two subsections, we discuss two consequences of the linearity of Equation (1). First, it enables alternative interpretations of our method. Second, and a major advantage, as is the case in many linear relaxations of integer problems, we are able to extract hard sharing schemes in practice, and consequently detect implicit self-loops in a CNN trained with our method.
70
+
71
+ # 3.1 INTERPRETATION
72
+
73
+ For layers $i$ that are linear in $\boldsymbol { \mathsf { W } } ^ { ( i ) }$ (e.g. matrix multiplication, convolution), we can view our method as learning template layers which are shared among a network. More specifically, for a convolutional layer $\mathbf { U } ^ { ( i ) } ( \mathbf { X } ) = \mathbf { W } ^ { ( i ) } \ast \mathbf { X }$ , and considering Equation (1):
74
+
75
+ $$
76
+ \mathbf { U } ^ { ( i ) } ( \mathbf { X } ) = \mathbf { W } ^ { ( i ) } * \mathbf { X } = \sum _ { j = 1 } ^ { k } \alpha _ { j } ^ { ( i ) } \mathbf { T } ^ { ( j ) } * \mathbf { X }
77
+ $$
78
+
79
+ where $\pmb { \mathsf { T } } ^ { ( j ) } * \pmb { \mathsf { X } }$ , the result of a convolution with filter sets $\bar { \mathsf { T } } ^ { ( j ) }$ , can be seen as the output of a template layer with individual parameters $\boldsymbol { \mathsf { T } } ^ { ( j ) }$ . Such layers can be seen as global feature extractors,
80
+
81
+ and coefficients $\mathbf { \alpha } \alpha ^ { ( i ) }$ determine which features are relevant for the $i$ ’th computation of a network.
82
+ This is illustrated in Figure 1 (right diagram).
83
+
84
+ This view gives a clear connection between coefficients $_ { \pmb { \alpha } }$ and the network’s structure. Having $\pmb { \alpha } ^ { ( i ) } = \pmb { \alpha } ^ { ( i + 2 ) }$ yields $\begin{array} { r } { \mathbf { W } ^ { ( i ) } = \sum _ { j = 1 } ^ { k } \alpha _ { j } ^ { ( i ) } \overline { { \mathbf { T } ^ { ( j ) } } } = \sum _ { j = 1 } ^ { k } \alpha _ { j } ^ { ( i + 2 ) } \overline { { \mathbf { T } ^ { ( j ) } } } = \mathbf { W } ^ { ( i + 2 ) } } \end{array}$ α(i+2)T(j) = W(i+2), and hence layers i and $i + 2$ are functionally equivalent. Such a network can be folded to generate an equivalent model with two layers and a self-loop, an explicitly recurrent network. While this is also possible for networks without parameter sharing, a learned alignment of $C ^ { 2 } K ^ { 2 }$ parameters is required (unlikely in practice), instead of aligning only $k \leq L$ parameters.
85
+
86
+ # 3.2 IMPLICIT RECURRENCES
87
+
88
+ To identify which layers in a network perform approximately the same operation, we can simply check whether their coefficients are similar. We can condense this information for all pairs of layers $i , j$ in a similarity matrix $S$ , where $S _ { i , j } = s ( \pmb { \alpha } ^ { ( i ) } , \pmb { \alpha } ^ { ( j ) } )$ for some similarity measure $s$ .
89
+
90
+ For networks with normalization layers, the network’s output is invariant to weight rescaling. In this setting, a natural measure is $\begin{array} { r } { s ( \pmb { \alpha } ^ { ( i ) } , \pmb { \alpha } ^ { ( j ) } ) = \frac { | \langle \pmb { \alpha } ^ { ( i ) } , \pmb { \alpha } ^ { ( j ) } \rangle | } { \| \pmb { \alpha } ^ { ( i ) } \| \| \pmb { \alpha } ^ { ( j ) } \| } } \end{array}$ (absolute value of cosine similarity), since it possess this same property.2 We call $S$ the layer similarity matrix (LSM). Figure 2 illustrates and Section 4.3 shows experimentally how it can be used to extract recurrent loops from trained CNNs.
91
+
92
+ While structure might emerge naturally, having a bias towards more structured (recurrent) models might be desirable. In this case, we can add a recurrence regularizer to the training objective, pushing parameters to values which result in more structure. For example, we can add the negative of sum of elements of the LSM: $\begin{array} { r } { \mathcal { L } _ { R } = \mathcal { L } - \lambda _ { R } \sum _ { i , j } S _ { i , j } } \end{array}$ , where $\mathcal { L }$ is the original objective. The larger $\lambda _ { R }$ is, the closer the elements of $S$ will be to 1. At an extreme case, this regularizer will push all elements in $S$ to 1, resulting in a network with a single layer and a self-loop.
93
+
94
+ # 4 EXPERIMENTS
95
+
96
+ We begin by training variants of standard models with soft parameter sharing, observing that it can offer parameter savings with little impact on performance, or increase performance at the same parameter count. Section 4.3 demonstrates conversion of a trained model into explicitly recurrent form. We then examine synthetic tasks (Section 4.4), where parameter sharing improves generalization. Appendix B contains details on the initialization for the coefficients $_ { \pmb { \alpha } }$ .
97
+
98
+ # 4.1 CLASSIFICATION ON CIFAR
99
+
100
+ The CIFAR-10 and CIFAR-100 datasets (Krizhevsky, 2009) are composed of 60, 000 colored $3 2 \times 3 2$ images, labeled among 10 and 100 classes respectively, and split into 50, 000 and 10, 000 examples for training and testing. We pre-process the training set with channel-wise normalization, and use horizontal flips and random crops for data augmentation, following He et al. (2016).
101
+
102
+ Using Wide ResNets (WRN) (Zagoruyko & Komodakis, 2016) as a base model, we train networks with the proposed soft parameter sharing method. Since convolution layers have different number of channels and kernel sizes throughout the network, we create 3 layer groups and only share templates among layers in the same group. More specifically, WRNs for CIFAR consist of 3 stages whose inputs and outputs mostly have a constant number of channels ( $C$ , $2 C$ and $_ { 4 C }$ , for some $C$ ). Each stage contains $\frac { L - 4 } { 3 }$ layers for a network with depth $L$ , hence we group layers in the same stage together, except for the first two, a residual block whose input has a different number of channels.
103
+
104
+ Thus, all layers except for the first 2 in each stage perform parameter sharing (illustrated in left diagram of Figure 4). Having $k$ templates per group means that $\textstyle { \frac { L - 4 } { 3 } } - 2$ convolution layers share $k$ parameter templates. We denote by SWRN- $L$ -w- $k$ a WRN with $L$ layers, widen factor $w$ and $k$ parameter templates per group (trained with our method). Setting $k \doteq \textstyle { \frac { L - 4 } { 3 } } - 2$ L−4 − 2 means we have
105
+
106
+ Table 1: Test error $( \% )$ on CIFAR-10 and CIFAR100. SWRN 28-10, the result of training a WRN 28- 10 with our method and one template per layer, significantly outperforms the base model, suggesting that our method aids optimization (both models have the same capacity). SWRN 28-10-1, with a single template per sharing group, performs close to WRN 28-10 while having significantly less parameters and capacity. \* indicates models trained with dropout $p = 0 . 3$ (Srivastava et al., 2014). Results are average of 5 runs.
107
+
108
+ <table><tr><td rowspan=1 colspan=1>CIFAR</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=2>C-10+</td><td rowspan=1 colspan=1>C-10+</td></tr><tr><td rowspan=2 colspan=1>WRN 28-10WRN 28-10*</td><td rowspan=2 colspan=1>36M36M</td><td rowspan=1 colspan=2>4.0</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=2>3.89</td><td></td></tr><tr><td rowspan=2 colspan=1>SWRN28-10SWRN 28-10*SWRN 28-10-1</td><td rowspan=2 colspan=1>36M36M12M</td><td rowspan=1 colspan=2>3.74</td><td rowspan=1 colspan=1>18.78</td></tr><tr><td rowspan=1 colspan=2>3.884.01</td><td rowspan=1 colspan=1>18.4319.73</td></tr></table>
109
+
110
+ Table 2: Performance of wider SWRNs. Parameter reduction $k = 2$ ) leads to lower errors for CIFAR-10, with models being competitive against newer model families that have bottleneck layers, group convolutions, or many layers. Best SWRN results are in bold, and best overall results are underlined.
111
+
112
+ <table><tr><td rowspan=1 colspan=1>CIFAR</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=1>C-10+</td><td rowspan=1 colspan=1>C-100+</td></tr><tr><td rowspan=2 colspan=1>ResNeXt-2916x64DenseNet 100-24DenseNet 190-40</td><td rowspan=1 colspan=1>68M</td><td rowspan=1 colspan=1>3.58</td><td rowspan=1 colspan=1>17.31</td></tr><tr><td rowspan=1 colspan=1>27M26M</td><td rowspan=1 colspan=1>3.743.46</td><td rowspan=1 colspan=1>19.2517.18</td></tr><tr><td rowspan=4 colspan=1>SWRN 28-10*SWRN 28-10-2*SWRN 28-14*-SWRN 28-14-2*SWRN 28-18*SWRN 28-18-2*</td><td rowspan=3 colspan=1>36M17M71M33M</td><td rowspan=1 colspan=1>3.88</td><td rowspan=1 colspan=1>18.43</td></tr><tr><td rowspan=1 colspan=1>3.75</td><td rowspan=1 colspan=1>18.66</td></tr><tr><td rowspan=1 colspan=1>3.673.69</td><td rowspan=1 colspan=1>18.2518.37</td></tr><tr><td rowspan=1 colspan=1>118M55M</td><td rowspan=1 colspan=1>3.483.43</td><td rowspan=1 colspan=1>17.4317.75</td></tr></table>
113
+
114
+ ![](images/518464ecb2ecb59b86a82552d2161e01f30f11f898a98ee94b417a56caf2307c.jpg)
115
+ Figure 3: Parameter efficiency for different models. On both CIFAR-10 and CIFAR-100, SWRNs are significantly more efficient than WRNs. DN and RNX denotes DenseNet and ResNeXt, respectively, and are plotted for illustration: both models employ orthogonal efficiency techniques, such as bottleneck layers. Best viewed in color.
116
+
117
+ one parameter template per layer, and hence no parameter reduction. We denote SWRN-L- $\mathbf { \nabla } \cdot w$ (thus omitting $k$ ) as a model in this setting.
118
+
119
+ Following Zagoruyko & Komodakis (2016), we train each model for 200 epochs with SGD and Nesterov momentum of 0.9 and a batch size of 128. The learning rate is initially set to 0.1 and decays by a factor of 5 at epochs 60, 120 and 160. We also apply weight decay of $\mathrm { 5 \times 1 0 ^ { - 4 } }$ on all parameters except for the coefficients $_ \alpha$ .
120
+
121
+ Tables 1 and 2 present results. Networks trained with our method yield superior performance in the setting with no parameter reduction: SWRN 28-10 presents $6 . 5 \%$ and $2 . 5 \%$ lower relative test errors on C-10 and C-100, compared to the base WRN 28-10 model. With fewer templates than layers, SWRN 28-10-1 (all 6 layers of each group perform the same operation), performs virtually the same as the base WRN 28-10 network, while having $\frac 1 3$ of its parameters. On CIFAR-10, parameter reduction $k = 2$ ) is beneficial to test performance: the best performance is achieved by SWRN 28-18-2 ( $3 . 4 3 \%$ test error), outperforming the ResNeXt-29 16x64 model (Xie et al., 2017), while having fewer parameters (55M against 68M) and no bottleneck layers.
122
+
123
+ Figure 3 shows that our parameter sharing scheme uniformly improves accuracy-parameter efficiency; compare the WRN model family (solid red) to our SWRN models (dotted red).
124
+
125
+ Table 4 presents a comparison between our method and neural architecture search (NAS) techniques (Zoph & Le, 2017; Xie et al., 2019; Liu et al., 2019; Pham et al., 2018; Real et al., 2018) on CIFAR-10 – results differ from Table 2 solely due to cutout (DeVries & Taylor, 2017), which is commonly used in NAS literature; NAS results are quoted from their respective papers. Our method outperforms architectures discovered by recent NAS algorithms, such as DARTS (Liu et al., 2019),
126
+
127
+ Table 3: (below) ImageNet classification results: training WRN 50-2 with soft parameter sharing leads to better performance by itself, without any tuning on the number of templates $k$ . Top-1 and Top-5 errors $( \% )$ are computed using a single crop.
128
+
129
+ <table><tr><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=1>Top-1</td><td rowspan=1 colspan=1>Top-5</td></tr><tr><td rowspan=4 colspan=1>WRN 50-2DenseNet-264ResNet-200SWRN 50-2</td><td rowspan=1 colspan=1>69M</td><td rowspan=1 colspan=1>22.0</td><td rowspan=1 colspan=1>6.05</td></tr><tr><td rowspan=3 colspan=1>33M65M69M</td><td rowspan=1 colspan=1>22.15</td><td rowspan=1 colspan=1>6.12</td></tr><tr><td rowspan=1 colspan=1>21.66</td><td rowspan=2 colspan=1>5.795.95</td></tr><tr><td rowspan=1 colspan=1>21.74</td></tr></table>
130
+
131
+ Table 4: (right) Test error $( \% )$ on CIFAR-10 of SWRNs and models found via neural architecture search (NAS) (all trained with cutout). Networks trained with soft parameter sharing provide competitive performance against NAS methods while having low computational cost.
132
+
133
+ <table><tr><td rowspan=1 colspan=1>CIFAR-10</td><td rowspan=1 colspan=1>Params(M)</td><td rowspan=1 colspan=1>Training Time(GPU days)</td><td rowspan=1 colspan=1>Test Error(%)</td></tr><tr><td rowspan=8 colspan=1>NASNet-ANASNet-AAmoebaNet-BAmoebaNet-BAmoebaNet-BAmoebaNet-BDARTSSNASENAS</td><td rowspan=1 colspan=1>3.3</td><td rowspan=1 colspan=1>1800</td><td rowspan=1 colspan=1>2.65</td></tr><tr><td rowspan=1 colspan=1>27.6</td><td rowspan=1 colspan=1>1800</td><td rowspan=1 colspan=1>2.4</td></tr><tr><td rowspan=1 colspan=1>2.8</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.55</td></tr><tr><td rowspan=1 colspan=1>13.7</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.31</td></tr><tr><td rowspan=1 colspan=1>26.7</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.21</td></tr><tr><td rowspan=1 colspan=1>34.9</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.13</td></tr><tr><td rowspan=1 colspan=1>3.4</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2.83</td></tr><tr><td rowspan=1 colspan=1>2.84.6</td><td rowspan=1 colspan=1>1.50.45</td><td rowspan=1 colspan=1>2.852.89</td></tr><tr><td rowspan=1 colspan=1>WRN28-10(baseline with cutout)</td><td rowspan=1 colspan=1>36.4</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>3.08</td></tr><tr><td rowspan=4 colspan=1>SWRN 28-4-2SWRN 28-6-2SWRN 28-10SWRN 28-10-2SWRN 28-14SWRN 28-14-2</td><td rowspan=1 colspan=1>2.7</td><td rowspan=1 colspan=1>0.12</td><td rowspan=2 colspan=1>3.453.0</td></tr><tr><td rowspan=1 colspan=1>6.1</td><td rowspan=1 colspan=1>0.25</td></tr><tr><td rowspan=1 colspan=1>36.417.1</td><td rowspan=1 colspan=1>0.40.4</td><td rowspan=1 colspan=1>2.72.69</td></tr><tr><td rowspan=1 colspan=1>71.433.5</td><td rowspan=1 colspan=1>0.70.7</td><td rowspan=1 colspan=1>2.552.53</td></tr></table>
134
+
135
+ SNAS (Xie et al., 2019) and ENAS (Pham et al., 2018), while having similarly low training cost. We achieve $2 . 6 9 \%$ test error after training less than 10 hours on a single NVIDIA GTX 1080 Ti. This accuracy is only bested by NAS techniques which are several orders of magnitude more expensive to train. Being based on Wide ResNets, our models do, admittedly, have more parameters.
136
+
137
+ Comparison to recent NAS algorithms, such as DARTS and SNAS, is particularly interesting as our method, though motivated differently, bears some notable similarities. Specifically, all three methods are gradient-based and use an extra set of parameters (architecture parameters in DARTS and SNAS) to perform some kind of soft selection (over operations/paths in DARTS/SNAS; over templates in our method). As Section 4.3 will show, our learned template coefficients $_ { \pmb { \alpha } }$ can often be used to transform our networks into an explicitly recurrent form - a discovered CNN-RNN hybrid.
138
+
139
+ To the extent that our method can be interpreted as a form of architecture search, it might be complementary to standard NAS methods. While NAS methods typically search over operations (e.g. activation functions; $3 \times 3$ or $5 \times 5$ convolutions; non-separable, separable, or grouped filters; dilation; pooling), our soft parameter sharing can be seen as a search over recurrent patterns (which layer processes the output at each step). These seem like orthogonal aspects of neural architectures, both of which may be worth examining in an expanded search space. When using SGD to drive architecture search, these aspects take on distinct forms at the implementation level: soft parameter sharing across layers (our method) vs hard parameter sharing across networks (recent NAS methods).
140
+
141
+ # 4.2 CLASSIFICATION ON IMAGENET
142
+
143
+ We use the ILSVRC 2012 dataset (Russakovsky et al., 2015) as a stronger test of our method. It is composed of 1.2M training and 50, 000 validation images, drawn from 1000 classes. We follow Gross & Wilber (2016), as in Zagoruyko & Komodakis (2016); Huang et al. (2017); Xie et al. (2017), and report Top-1 and Top-5 errors on the validation set using single $2 2 4 \times 2 2 4$ crops. For this experiment, we use WRN 50-2 as a base model, and train it with soft sharing and no parameter reduction. Having bottleneck blocks, this model presents less uniform number of channels of layer inputs and outputs. To apply our method, we group convolutions in 12 groups: for each of the 4 stages in a WRN 50-2, we create 3 groups, one for each type of layer in a bottleneck unit $C B$ , $B B$ and $B C$ channel mappings, for bottleneck $B$ ). Without any change in hyperparameters, the network trained with our method outperforms the base model and also deeper models such as DenseNets (though using more parameters), and performs close to ResNet-200, a model with four times the number of layers and a similar parameter count. See Table 3.
144
+
145
+ ![](images/b732ae6be691db0bfcb9987fe694e903c55b587b5610872d701c1f589fd45a91.jpg)
146
+ Figure 4: Extracting implicit recurrences from a SWRN 28-10-4. Left: Illustration of the stages of a SWRN28-10-4 (residual connections omitted for clarity). The first two layers contain individual parameter sets, while the other six share four templates. All 3 stages of the network follow this structure. Middle: LSM for each stage after training on CIFAR-10, with many elements close to 1. Hard sharing schemes can be created for pairs with large similarity by tying their coefficients (or, equivalently, their effective weights). Right: Folding stages 2 and 3 leads to self-loops and a CNN with recurrent connections – LSM for stage 2 is a repetition of 2 rows/columns, and folding decreases the number of parameters.
147
+
148
+ # 4.3 LEARNING IMPLICIT RECURRENCES
149
+
150
+ Results on CIFAR suggest that training networks with few parameter templates $k$ in our soft sharing scheme results in performance comparable to the base models, which have significantly more parameters. The lower $k$ is, the larger we should expect the layer similarities to be: in the extreme case where $k = 1$ , all layers in a sharing scheme have similarity 1, and can be folded into a single layer with a self-loop.
151
+
152
+ For the case $k > 1$ , there is no trivial way to fold the network, as layer similarities depend on the learned coefficients. We can inspect the model’s layer similarity matrix (LSM) and see if it presents implicit recurrences: a form of recurrence in the rows/columns of the LSM. Surprisingly, we observe that rich structures emerge naturally in networks trained with soft parameter sharing, even without the recurrence regularizer. Figure 4 shows the per-stage LSM for CIFAR-trained SWRN 28-10-4. Here, the six layers of its stage-2 block can be folded into a loop of two layers, leading to an error increase of only $0 . 0 2 \%$ . Appendix A contains an additional example of network folding, diversity of LSM patterns across different runs, and an epoch-wise evolution of the LSM, showing that many patterns are observable after as few as 5 epochs of training.
153
+
154
+ # 4.4 EVALUATION ON NATURALLY RECURRENT TASKS
155
+
156
+ While the propensity of our parameter sharing scheme to encourage learning of recurrent networks is a useful parameter reduction tool, we would also like to leverage it for qualitative advantages over standard CNNs. On tasks for which a natural recurrent algorithm exists, does training CNNs with soft parameter sharing lead to better extrapolation?
157
+
158
+ To answer this, we set up a synthetic algorithmic task: computing shortest paths. Examples are $3 2 \times 3 2$ grids containing two query points and randomly (with probability 0.1) placed obstacles. The objective is to indicate which grid points belong to a shortest path between the query points.
159
+
160
+ We use curriculum learning for training, allowing us to observe how well each model adapts to more difficult examples as training phases progress. Moreover, for this task curriculum learning causes faster learning and superior performance for all trained models.
161
+
162
+ ![](images/4c18a6433c8b4ef4f71dfc645665348dda2d2c2330d29e897fbe70e58b1e7d07.jpg)
163
+
164
+ ![](images/5797e1d23a50ae81bd8845709e604165aa331d04a7a0159a8e27a17f5d892741.jpg)
165
+
166
+ (a) Generated example for the synthetic shortest paths task. Blue pixels indicate the query points; red pixels represent obstacles, and white pixels are points in a shortest path (in terms of Manhattan distance) between query pixels. The task consists of predicting the white pixels (shortest paths) from the blue and red ones (queries and obstacles).
167
+
168
+ (b) Training curves for the shortest paths task, where difficulty of examples increases every 50 epochs. A SCNN adapts faster than a CNN to new phases and performs better, suggesting better extrapolation capacity. With a recurrence regularizer $\lambda _ { R } = 0 . 0 1$ (SCNN-R), the model makes faster progress on the first phase, but fails to adapt to harder examples.
169
+
170
+ Figure 5: Shortest paths task. Best viewed in color.
171
+
172
+ Training consists of 5 curriculum phases, each one containing 5000 examples. The maximum allowed distance between the two query points increases at each phase, thus increasing difficulty. In the first phase, each query point is within a $5 \times 5$ grid around the other query point, and the grid size increases by 2 on each side at each phase, yielding a final grid size of $2 1 \times 2 1$ at phase 5.
173
+
174
+ We train a CNN, a CNN with soft parameter sharing and one template per layer (SCNN), and an SCNN with recurrence regularizer $\lambda _ { R } = 0 . 0 1$ . Each model trains for 50 epochs per phase with Adam (Kingma & Ba, 2015) and a fixed learning rate of 0.01. As classes are heavily unbalanced and the balance itself changes during phases, we compare $F _ { 1 }$ scores instead of classification error.
175
+
176
+ Each model starts with a $1 \times 1$ convolution, mapping the 2 input channels to 32 output channels. Next, there are 20 channel-preserving $3 \times 3$ convolutions, followed by a final $1 \times 1$ convolution that maps 32 channels to 1. Each of the $2 0 3 \times 3$ convolutions is followed by batch normalization (Ioffe & Szegedy, 2015), a ReLU non-linearity (Nair & Hinton, 2010), and has a 1-skip connection.
177
+
178
+ Figure 5 shows one example from our generated dataset and the training curves for the 3 trained models: the SCNN not only outperforms the CNN, but adapts better to harder examples at new curriculum phases. The SCNN is also advantaged over a more RNN-like model: with the recurrence regularizer $\lambda _ { R } = 0 . 0 1$ , all entries in the LSM quickly converge 1, as in a RNN. This leads to faster learning during the first phase, but presents issues in adapting to difficulty changes in latter phases.
179
+
180
+ # 5 CONCLUSION
181
+
182
+ In this work, we take a step toward more modular and compact CNNs by extracting recurrences from feed-forward models where parameters are shared among layers. Experimentally, parameter sharing yields models with lower error on CIFAR and ImageNet, and can be used for parameter reduction by training in a regime with fewer parameter templates than layers. Moreover, we observe that parameter sharing often leads to different layers being functionally equivalent after training, enabling us to collapse them into recurrent blocks. Results on an algorithmic task suggest that our shared parameter structure beneficially biases extrapolation. We gain a more flexible form of behavior typically attributed to RNNs, as our networks adapt better to out-of-domain examples. Our form of architecture discovery is also competitive with neural architecture search (NAS) algorithms, while having a smaller training cost than state-of-the-art gradient-based NAS.
183
+
184
+ As the only requirement for our method is for a network to have groups of layers with matching parameter sizes, it can be applied to a plethora of CNN model families, making it a general technique with negligible computational cost. We hope to raise questions regarding the rigid definitions of
185
+
186
+ CNNs and RNNs, and increase interest in models that fall between these definitions. Adapting our method for models with non-uniform layer parameter sizes (Huang et al., 2017; Zhu et al., 2018) might be of particular future interest.
187
+
188
+ # REFERENCES
189
+
190
+ Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. ICLR, 2017.
191
+
192
+ Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs. arXiv:1606.00915, 2016.
193
+
194
+ Terrance DeVries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. Journal of Machine Learning Research, 2017.
195
+
196
+ Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. CVPR, 2015.
197
+
198
+ Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. ICASSP, 2013.
199
+
200
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural Turing Machines. arXiv:1410.5401, 2014.
201
+
202
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ Adria Puigdom \` enech Badia, Karl Moritz Hermann, Yori Zwols, Georg Ostrovski, Adam Cain, \` Helen King, Christopher Summerfield, Phil Blunsom, Koray Kavukcuoglu, and Demis Hassabis. Hybrid computing using a neural network with dynamic external memory. Nature, 2016.
203
+
204
+ K. Greff, R. K. Srivastava, and J. Schmidhuber. Highway and residual networks learn unrolled iterative estimation. ICLR, 2017.
205
+
206
+ Sam Gross and Martin Wilber. Training and investigating residual nets. https://github.com/ facebook/fb.resnet.torch, 2016.
207
+
208
+ David Ha, Andrew Dai, and Quoc V. Le. Hypernetworks. arXiv:1609.09106, 2016.
209
+
210
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. ICLR, 2016.
211
+
212
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2016.
213
+
214
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
215
+
216
+ Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. CVPR, 2017.
217
+
218
+ Gao Huang, Shichen Liu, Laurens van der Maaten, and Kilian Q. Weinberger. CondenseNet: An efficient DenseNet using learned group convolutions. CVPR, 2018.
219
+
220
+ Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and ${ < } 1 \mathbf { M } \mathbf { B }$ model size. arXiv:1602.07360, 2016.
221
+
222
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. ICML, 2015.
223
+
224
+ Stanislaw Jastrzebski, Devansh Arpit, Nicolas Ballas, Vikas Verma, Tong Che, and Yoshua Bengio. Residual connections encourage iterative inference. ICLR, 2018.
225
+
226
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015.
227
+
228
+ Jan Koutn´ık, Klaus Greff, Faustino Gomez, and Jurgen Schmidhuber. A clockwork RNN. ¨ arXiv:1402.3511, 2014.
229
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
230
+ Qianli Liao and Tomaso A. Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv:1604.03640, 2016.
231
+ Chenxi Liu, Barret Zoph, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan L. Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. ECCV, 2018.
232
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. ICLR, 2019.
233
+ Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. ICML, 2010.
234
+ Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. ICML, 2018.
235
+ Pedro O. Pinheiro and Ronan Collobert. Recurrent convolutional neural networks for scene labeling. ICML, 2014.
236
+ Ameya Prabhu, Girish Varma, and Anoop M. Namboodiri. Deep expander networks: Efficient deep networks from graph theory. ECCV, 2018.
237
+ Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. arXiv:1802.01548, 2018.
238
+ Scott E. Reed and Nando de Freitas. Neural programmer-interpreters. ICLR, 2016.
239
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. IJCV, 115(3), 2015.
240
+ Andrew M. Saxe, James L. McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv:1312.6120, 2013.
241
+ Xingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. NIPS, 2015.
242
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015.
243
+ Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1), 2014.
244
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CVPR, 2015.
245
+ Andrew Trask, Felix Hill, Scott Reed, Jack Rae, Chris Dyer, and Phil Blunsom. Neural arithmetic logic units. arXiv:1808.00508, 2018.
246
+ Saining Xie, Ross B. Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual ´ transformations for deep neural networks. CVPR, 2017.
247
+ Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. ICLR, 2019.
248
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. ICML, 2015.
249
+
250
+ Yibo Yang, Zhisheng Zhong, Tiancheng Shen, and Zhouchen Lin. Convolutional neural networks with alternately updated clique. CVPR, 2018.
251
+
252
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. BMVC, 2016.
253
+
254
+ Amir Roshan Zamir, Te-Lin Wu, Lin Sun, William B. Shen, Jitendra Malik, and Silvio Savarese. Feedback networks. CVPR, 2017.
255
+
256
+ Wojciech Zaremba, Tomas Mikolov, Armand Joulin, and Rob Fergus. Learning simple algorithms from examples. ICML, 2016.
257
+
258
+ Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. CVPR, 2017.
259
+
260
+ Ligeng Zhu, Ruizhi Deng, Zhiwei Deng, Greg Mori, and Ping Tan. Sparsely aggregated convolutional networks. ECCV, 2018.
261
+
262
+ Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. ICLR, 2017.
263
+
264
+ # Appendix
265
+
266
+ # A ADDITIONAL RESULTS FOR IMPLICIT RECURRENCES
267
+
268
+ Section 4.3 presents an example of implicit recurrences and folding of a SWRN 28-10-4 trained on CIFAR-10, where, for example, the last 6 layers in the second stage of the network fold into 2 layers with a self-loop.
269
+
270
+ Figure 6 presents an additional example, where non-trivial recurrences (unlike the one in Figure 4) emerge naturally, resulting in a model that is rich in structure.
271
+
272
+ ![](images/fc06843966b9e39486f71756cf26d0765bf6de008dc1755452226992594fc940.jpg)
273
+ Figure 6: SWRN 40-8-8 (8 parameter templates shared among groups of $\frac { 4 0 - 4 } { 3 } - 2 = 1 0$ layers) trained with soft parameter sharing on CIFAR-10. Each stage (originally with 12 layers – the first two do not participate in parameter sharing) can be folded to yield blocks with complex recurrences. For clarity, we use colors to indicate the computational flow: red takes precedence over green, which in turn has precedence over blue. Colored paths are only taken once per stage. Although not trivial to see, recurrences in each stage’s folded form are determined by row/column repetitions in the respective Layer Similarity Matrix. For example, for stage 2 we have $S _ { 5 , 3 } \approx S _ { 6 , 4 } \approx 1$ , meaning that layers 3, 4, 5 and 6 can be folded into layers 3 and 4 with a loop (captured by the red edge). The same holds for $S _ { 7 , 1 }$ $_ 1 , S _ { 8 , 2 } , S _ { 9 , 3 }$ and $S _ { 1 0 , 4 }$ , hence after the loop with layers 3 and 4, the flow returns to layer 1 and goes all the way to layer 4, which generates the stage’s output. Even though there is an approximation when folding the network (in this example, we are tying layers with similarity close to 0.8), the impact on the test error is less than $0 . 3 \%$ . Also note that the folded model has a total of 24 layers (20 in the stage diagrams, plus 4 which are not shown, corresponding to the first layer of the network and three $1 \times 1$ convolutions in skip-connections), instead of the original 40.
274
+
275
+ ![](images/fdc8c958fab5e3a2b0f2446ac5890d9310f5a57da70a5ba719a29d7cb24d7e4b.jpg)
276
+ Figure 7: LSMs of a SWRN 40-8-8 (composed of 3 stages, each with 10 layers sharing 8 templates) trained on CIFAR-10 for 5 runs with different random seeds. Although the LSMs differ across different runs, hard parameter sharing can be observed in all cases (off-diagonal elements close to 1, depicted by white), characterizing implicit recurrences which would enable network folding. Moreover, the underlying structure is similar across runs, with hard sharing typically happening among layers $_ { i }$ and $i + 2$ , leading to a “chessboard” pattern.
277
+
278
+ ![](images/5de972993320487ca663b8f5109f332ee4d92857e74173a62c2f72f4841412cd.jpg)
279
+ Figure 8: LSMs of a SWRN 40-8-8 (composed of 3 stages, each with 10 layers sharing 8 templates) at different epochs during training on CIFAR-10. The transition from an identity matrix to the final LSM happens mostly in the beginning of training: at epoch 50, the LSM is almost indistinguishable from the final LSM at epoch 200, and most of the final patterns are observable already at epoch 25.
280
+
281
+ # B INITIALIZATION OF COEFFICIENTS
282
+
283
+ During our initial experiments, we explored different initializations for the coefficients $_ { \pmb { \alpha } }$ of each layer, and observed that using an orthogonal initialization (Saxe et al., 2013) resulted in superior performance compared to uniform or normal initialization schemes.
284
+
285
+ Denote $\pmb { A }$ as the $L \times k$ matrix ( $L$ is the number of layers sharing parameters and $k$ the number of templates) with each $\because$ ’th row containing the coefficient of the $i ^ { \because }$ ’th layer $\mathbf { \alpha } \alpha ^ { ( i ) }$ . We initialize it such that $A ^ { T } A = I$ , leading to $\forall _ { i }$ , $\langle \pmb { \alpha } ^ { ( i ) } , \pmb { \alpha } ^ { ( i ) } \rangle = 1$ and $\forall _ { i \neq j } , \langle { \pmb { \alpha } } ^ { ( i ) } , { \pmb { \alpha } } ^ { ( j ) } \rangle = 0$ . While our choice for this is mostly empirical, we believe that there is likely a connection with the motivation for using orthogonal initialization for RNNs.
286
+
287
+ Moreover, we discovered that other initialization options for $\pmb { A }$ work similarly to the orthogonal one. More specifically, either initializing $\pmb { A }$ with the identity matrix when $L = k$ (which naturally leads to $A ^ { T } A = I $ ) or enforcing some sparsity (initialize $\pmb { A }$ with a uniform or normal distribution and randomly setting half of its entries to zero) performs similarly to the orthogonal initialization in a consistent manner. We believe the sparse initialization to be the simplest one, as each coefficient $_ { \pmb { \alpha } }$ can be initialized independently.
288
+
289
+ Finally, note that having $A ^ { T } A = I$ results in the Layer Similarity Matrix also being the identity at initialization (check that Si,j = $\begin{array} { r } { S _ { i , j } = \frac { | \langle { \pmb { \alpha } } ^ { ( i ) } , { \pmb { \alpha } } ^ { ( j ) } \rangle | } { \| { \pmb { \alpha } } ^ { ( i ) } \| \| { \pmb { \alpha } } ^ { ( j ) } \| } = \frac { | ( { \pmb { A } } ^ { T } { \pmb { A } } ) _ { i , j } | } { \| { \pmb { \alpha } } ^ { ( i ) } \| \| { \pmb { \alpha } } ^ { ( j ) } \| } } \end{array}$ |(AT A)i,j |kα(i)kkα(j)k , so if (AT A)i,j = 1, then Si,j = 1, and the same holds for 0. Surprisingly, even though the orthogonal initialization leads to a LSM that has no structure in the beginning of training, the rich patterns that we observe still emerge naturally after optimization.
parse/train/rJgYxn09Fm/rJgYxn09Fm_content_list.json ADDED
@@ -0,0 +1,1490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING IMPLICITLY RECURRENT CNNS THROUGH PARAMETER SHARING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Pedro Savarese TTI-Chicago savarese@ttic.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 352,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Michael Maire University of Chicago mmaire@uchicago.edu ",
28
+ "bbox": [
29
+ 496,
30
+ 170,
31
+ 686,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 452,
42
+ 250,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We introduce a parameter sharing scheme, in which different layers of a convolutional neural network (CNN) are defined by a learned linear combination of parameter tensors from a global bank of templates. Restricting the number of templates yields a flexible hybridization of traditional CNNs and recurrent networks. Compared to traditional CNNs, we demonstrate substantial parameter savings on standard image classification tasks, while maintaining accuracy. ",
51
+ "bbox": [
52
+ 233,
53
+ 280,
54
+ 764,
55
+ 363
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Our simple parameter sharing scheme, though defined via soft weights, in practice often yields trained networks with near strict recurrent structure; with negligible side effects, they convert into networks with actual loops. Training these networks thus implicitly involves discovery of suitable recurrent architectures. Though considering only the design aspect of recurrent links, our trained networks achieve accuracy competitive with those built using state-of-the-art neural architecture search (NAS) procedures. ",
62
+ "bbox": [
63
+ 233,
64
+ 371,
65
+ 764,
66
+ 468
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Our hybridization of recurrent and convolutional networks may also represent a beneficial architectural bias. Specifically, on synthetic tasks which are algorithmic in nature, our hybrid networks both train faster and extrapolate better to test examples outside the span of the training set. ",
73
+ "bbox": [
74
+ 233,
75
+ 477,
76
+ 764,
77
+ 534
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 558,
88
+ 336,
89
+ 574
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The architectural details of convolutional neural networks (CNNs) have undergone rapid exploration and improvement via both human hand-design (Simonyan & Zisserman, 2015; Szegedy et al., 2015; He et al., 2016; Huang et al., 2017; Zhu et al., 2018) and automated search methods (Zoph & Le, 2017; Liu et al., 2018). Yet, this vast array of work limits itself to a circuit-like view of neural networks. Here, a CNN is regarded as a fixed-depth feed-forward circuit, with a distinct parameter governing each internal connection. These circuits are often trained to perform tasks which, in a prior era, might have been (less accurately) accomplished by running a traditional computer program coded by humans. Programs, and even traditional hardware circuits, have a more reusable internal structure, including subroutines or modules, loops, and associated control flow mechanisms. ",
96
+ "bbox": [
97
+ 174,
98
+ 589,
99
+ 825,
100
+ 714
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We bring one aspect of such modularity into CNNs, by making it possible to learn a set of parameters that is reused across multiple layers at different depths. As the pattern of reuse is itself learned, our scheme effectively permits learning the length (iteration count) and content of multiple loops defining the resulting CNN. We view this approach as a first step towards learning neural networks with internal organization reminiscent of computer programs. Though we focus solely on loop-like structures, leaving subroutines and dynamic control flow to future work, this simple change suffices to yield substantial quantitative and qualitative benefits over the standard baseline CNN models. ",
107
+ "bbox": [
108
+ 174,
109
+ 722,
110
+ 825,
111
+ 819
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "While recurrent neural networks (RNNs) possess a loop-like structure by definition, their loop structure is fixed a priori, rather than learned as part of training. This can actually be a disadvantage in the event that the length of the loop is mismatched to the target task. Our parameter sharing scheme for CNNs permits a mix of loops and feed-forward layers to emerge. For example, trained with our scheme, a 50-layer CNN might learn a 2-layer loop that executes 5 times between layers 10 and 20, a 3-layer loop that runs 4 times from layers 30 to 42, while leaving the remaining layers to assume independent parameter sets. Our approach generalizes both CNNs and RNNs, creating a hybrid. ",
118
+ "bbox": [
119
+ 174,
120
+ 825,
121
+ 825,
122
+ 924
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/a2c9b5bb263d8cd0bf0d9985922b8c7f6508fe346bcd32491b1fd6dc3f69077c.jpg",
129
+ "image_caption": [
130
+ "Figure 1: Parameter sharing scheme. Left: A CNN (possibly a variant such as a residual network), with each convolutional layer $_ { i }$ containing an individual parameter set $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ . Middle: Parameter sharing among layers, where parameter templates $\\boldsymbol { \\mathsf { T } } ^ { ( 1 ) }$ , ${ \\boldsymbol { \\mathsf { T } } } ^ { ( 2 ) }$ are shared among each layer $_ { i }$ , which now only contains a 2-dimensional parameter $\\mathbf { \\pmb { \\alpha } } ^ { ( i ) }$ . Weights $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ (no longer parameters, illustrated with dotted boxes) used by layer $i$ are generated from $\\mathbf { \\pmb { \\alpha } } ^ { ( i ) }$ and templates ${ \\boldsymbol { \\mathsf { T } } } ^ { ( 1 ) }$ , ${ \\boldsymbol { \\mathsf { T } } } ^ { ( 2 ) }$ . Right: If weights $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ are outputs of a linear function (as in our method), learning parameter templates can be viewed as learning layer templates, offering a new (although equivalent) perspective for the middle diagram. Non-linearities are omitted for simplicity. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 204,
135
+ 104,
136
+ 776,
137
+ 281
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Figure 1 diagrams the parameter sharing scheme facilitating this hybridization. Inspired by dictionary learning, different network layers share, via weighted combination, global parameter templates. This re-parameterization is fully differentiable, allowing learning of sharing weights and template parameters. Section 3 elaborates, and also introduces tools for analyzing learned loop structures. ",
144
+ "bbox": [
145
+ 173,
146
+ 421,
147
+ 825,
148
+ 477
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Section 4 demonstrates advantages of our hybrid CNNs across multiple experimental settings. Taking a modern CNN design as a baseline, and re-parameterizing it according to our scheme improves: ",
155
+ "bbox": [
156
+ 173,
157
+ 484,
158
+ 823,
159
+ 512
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "• Parameter efficiency. Here, we experiment with the standard task of image classification using modern residual networks (He et al., 2016; Zagoruyko & Komodakis, 2016). This task is a good proxy for general usefulness in computer vision, as high-performance classification architectures often serve as a backbone for many other vision tasks, such as semantic segmentation (Chen et al., 2016; Zhao et al., 2017). ",
166
+ "bbox": [
167
+ 217,
168
+ 525,
169
+ 825,
170
+ 594
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Our parameter sharing scheme drastically reduces the number of unique parameters required to achieve a given accuracy on CIFAR (Krizhevsky, 2009) or ImageNet (Russakovsky et al., 2015) classification tasks. Re-parameterizing a standard residual network with our scheme cuts parameters, without triggering any drop in accuracy. This suggests that standard CNNs may be overparameterized in part because, by design (and unlike RNNs), they lack capacity to learn reusable internal operations. ",
177
+ "bbox": [
178
+ 215,
179
+ 595,
180
+ 825,
181
+ 679
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "• Extrapolation and generalization. Here, we explore whether our hybrid networks expand the class of tasks that one can expect to train neural networks to accomplish. This line of inquiry, focusing on synthetic tasks, shares motivations with work on Neural Turing Machines (Graves et al., 2014). Specifically, we would like neural networks to be capable of learning to perform tasks for which there are concise traditional solution algorithms. Graves et al. (2014) uses sorting as an example task. As we examine an extension of CNNs, our tasks take the form of queries about planar graphs encoded as image input. ",
188
+ "bbox": [
189
+ 218,
190
+ 684,
191
+ 825,
192
+ 781
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "On these tasks, we observe improvements to both generalization ability and learning speed for our hybrid CNNs, in comparison to standard CNNs or RNNs. Our parameter sharing scheme, by virtue of providing an architectural bias towards networks with loops, appears to assist in learning to emulate traditional algorithms. ",
199
+ "bbox": [
200
+ 230,
201
+ 784,
202
+ 823,
203
+ 839
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "An additional side effect, seen in practice in many of our experiments, is that two different learned layers often snap to the same parameter values. That is, layers $i$ and $j$ , learn coefficient vectors $\\mathbf { \\alpha } \\alpha ^ { ( i ) }$ and $\\pmb { \\alpha } ^ { ( j ) }$ (see Figure 1) that converge to be the same (up to scaling). This is a form of architecture discovery, as it permits representation of the CNN as a loopy wiring diagram between repeated layers. Section 4.3 presents example results. We also draw comparisons to existing neural architecture search (NAS) techniques. By simply learning recurrent structure as byproduct of training with standard stochastic gradient descent, we achieve accuracy competitive with current NAS procedures. ",
210
+ "bbox": [
211
+ 174,
212
+ 852,
213
+ 825,
214
+ 924
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "",
221
+ "bbox": [
222
+ 173,
223
+ 103,
224
+ 823,
225
+ 132
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Before delving into the details of our method, Section 2 provides additional context in terms of prior work on recurrent models, parameter reduction techniques, and program emulation. Sections 3 and 4 describe our hybrid shared-parameter CNN, experimental setup, and results. Section 5 concludes with commentary on our results and possible future research pathways.1 ",
232
+ "bbox": [
233
+ 176,
234
+ 138,
235
+ 823,
236
+ 194
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "2 RELATED WORK ",
243
+ "text_level": 1,
244
+ "bbox": [
245
+ 176,
246
+ 217,
247
+ 344,
248
+ 233
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Recurrent variants of CNNs are used extensively for visual tasks. Recently, Zamir et al. (2017) propose utilizing a convolutional LSTM (Shi et al., 2015) as a generic feedback architecture. RNN and CNN combinations have been used for scene labeling (Pinheiro & Collobert, 2014), image captioning with attention (Xu et al., 2015), and understanding video (Donahue et al., 2015), among others. These works combine CNNs and RNNs at a coarse scale, and in a fixed hand-crafted manner. In contrast, we learn the recurrence structure itself, blending it into the inner workings of a CNN. ",
255
+ "bbox": [
256
+ 174,
257
+ 251,
258
+ 825,
259
+ 334
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Analysis of residual networks (He et al., 2016) reveals possible connections to recurrent networks stemming from their design (Liao & Poggio, 2016). Greff et al. (2017) provide evidence that residual networks learn to iteratively refine feature representations, making an analogy between a very deep residual network and an unrolled loop. Jastrzebski et al. (2018) further explore this connection, and experiment with training residual networks in which some layers are forced to share identical parameters. This hard parameter sharing scheme again builds a predetermined recurrence structure into the network. It yields successfully trained networks, but does not exhibit the type of performance gains that Section 4 demonstrates for our soft parameter sharing scheme. ",
266
+ "bbox": [
267
+ 174,
268
+ 342,
269
+ 825,
270
+ 453
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Closely related to our approach is the idea of hypernetworks (Ha et al., 2016), in which one part of a neural network is parameterized by another neural network. Our shared template-based reparameterization could be viewed as one simple choice of hypernetwork implementation. Perhaps surprisingly, this class of ideas has not been well explored for the purpose of reducing the size of neural networks. Rather, prior work has achieved parameter reduction through explicit representation bottlenecks (Iandola et al., 2016), sparsifying connection structure (Prabhu et al., 2018; Huang et al., 2018; Zhu et al., 2018), and pruning trained networks (Han et al., 2016). ",
277
+ "bbox": [
278
+ 174,
279
+ 460,
280
+ 825,
281
+ 558
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Orthogonal to the question of efficiency, there is substantial interest in extending neural networks to tackle new kinds of tasks, including emulation of computer programs. Some approach this problem using additional supervision in the form of execution traces (Reed & de Freitas, 2016; Cai et al., 2017), while other focus on development of network architectures that can learn from input-output pairs alone (Graves et al., 2014; 2016; Zaremba et al., 2016; Trask et al., 2018). Our experiments on synthetic tasks fall into the latter camp. At the level of architectural strategy, Trask et al. (2018) benefit from changing the form of activation function to bias the network towards correctly extrapolating common mathematical formulae. We build in a different implicit bias, towards learning iterative procedures within a CNN, and obtain a boost on correctly emulating programs. ",
288
+ "bbox": [
289
+ 174,
290
+ 564,
291
+ 825,
292
+ 689
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "3 SOFT PARAMETER SHARING ",
299
+ "text_level": 1,
300
+ "bbox": [
301
+ 176,
302
+ 712,
303
+ 441,
304
+ 728
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "In convolutional neural networks (CNNs) and variants such as residual CNNs (ResNets) (He et al., 2016) and DenseNets (Huang et al., 2017), each convolutional layer $i$ contains a set of parameters $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ , with no explicit relation between parameter sets of different layers. Conversely, a strict structure is imposed to layers of recurrent neural networks (RNNs), where, in standard models (Hochreiter & Schmidhuber, 1997), a single parameter set $\\pmb { \\mathsf { W } }$ is shared among all time steps. This leads to a program-like computational flow, where RNNs can be seen as loops with fixed length and content. While some RNN variants (Graves et al., 2013; Koutn´ık et al., 2014; Yang et al., 2018) are less strict on the length or content of loops, these are still typically fixed beforehand. ",
311
+ "bbox": [
312
+ 174,
313
+ 746,
314
+ 825,
315
+ 859
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "As an alternative to learning hard parameter sharing schemes – which correspond to the strict structure present in RNNs – our method consists of learning soft sharing schemes through a relaxation of this structure. We accomplish this by expressing each layer’s parameters $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ as a linear combination of parameter templates $\\mathbf { \\overline { { I } } } ^ { ( 1 ) } , \\ldots , \\mathbf { \\overline { { I } } } ^ { ( k ) }$ , each with the same dimensionality as $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ : ",
322
+ "bbox": [
323
+ 174,
324
+ 867,
325
+ 823,
326
+ 895
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "image",
332
+ "img_path": "images/30aa8071d0e5ad98b194b3c861782577cf515638614a5ad4b9997a5766ff7be7.jpg",
333
+ "image_caption": [
334
+ "Figure 2: Connection between the LSM matrix $S$ \u0000 where $\\begin{array} { r } { S _ { i , j } = \\frac { | \\langle { \\pmb { \\alpha } } ^ { ( i ) } , { \\pmb { \\alpha } } ^ { ( j ) } \\rangle | } { \\| { \\pmb { \\alpha } } ^ { ( i ) } \\| \\| { \\pmb { \\alpha } } ^ { ( j ) } \\| } \\ ) } \\end{array}$ and the structure of the network. White and black entries correspond to maximum and minimum similarities $( S _ { i , j } = 1$ and $S _ { i , j } = 0$ , respectively). Left: Empirically, CNNs present no similarity between parameters of different layers. Middle: Trained with our method, the layer similarity matrix (LSM) captures similarities between different layers, including pairs with close to maximum similarity. Such pairs (depicted by same-colored coefficients and weights, and by white entries in the LSM) perform similar operations on their inputs. Right: We can tie together parameters of similar layers, creating a hard parameter sharing scheme. The network can then be folded, creating self-loops and revealing an explicit recurrent computation structure. "
335
+ ],
336
+ "image_footnote": [],
337
+ "bbox": [
338
+ 204,
339
+ 103,
340
+ 776,
341
+ 276
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "",
348
+ "bbox": [
349
+ 173,
350
+ 420,
351
+ 823,
352
+ 453
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/ed14c1826ceb32bb7c357e1df02cc95ae5df7cb58a999743483076edc0036f32.jpg",
359
+ "text": "$$\n\\pmb { \\mathsf { W } } ^ { ( i ) } : = \\sum _ { j = 1 } ^ { k } \\alpha _ { j } ^ { ( i ) } \\pmb { \\mathsf { T } } ^ { ( j ) }\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 428,
363
+ 457,
364
+ 568,
365
+ 502
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "where $k$ is the number of parameter templates (chosen freely as a hyperparameter) and $\\mathbf { \\alpha } \\alpha ^ { ( i ) }$ , a $k$ - dimensional vector, is the coefficients of layer $i$ . Figure 1 (left and middle) illustrates the difference between networks trained with and without our method. This relaxation allows for coefficients and parameter templates to be (jointly) optimized with gradient-based methods, yielding negligible extra computational cost, with a single constraint that only layers with same parameter sizes can share templates. Note that constraining coefficients $\\mathbf { \\alpha } \\alpha ^ { ( i ) }$ to be one-hot vectors leads to hard sharing schemes, at the cost of non-differentiability. ",
372
+ "bbox": [
373
+ 173,
374
+ 508,
375
+ 825,
376
+ 608
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Having $k$ as a free parameter decouples the number of parameters in network from its depth. Typically, $L$ convolutional layers with constant channel and kernel sizes $C , K$ have $O ( L C ^ { 2 } { \\dot { K } } ^ { 2 } )$ total parameters. Our soft sharing scheme changes the total number of parameters to $O ( k L + k C ^ { 2 } K ^ { 2 } ) =$ $\\scriptstyle \\dot { O } ( k C ^ { 2 } K ^ { 2 } )$ . Sections 4.1 and 4.2 show that we can decrease the parameter count of standard models without significantly impacting accuracy, or simply attain higher accuracy with $k = L$ . ",
383
+ "bbox": [
384
+ 173,
385
+ 614,
386
+ 825,
387
+ 685
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "In the next two subsections, we discuss two consequences of the linearity of Equation (1). First, it enables alternative interpretations of our method. Second, and a major advantage, as is the case in many linear relaxations of integer problems, we are able to extract hard sharing schemes in practice, and consequently detect implicit self-loops in a CNN trained with our method. ",
394
+ "bbox": [
395
+ 173,
396
+ 690,
397
+ 825,
398
+ 747
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "3.1 INTERPRETATION ",
405
+ "text_level": 1,
406
+ "bbox": [
407
+ 174,
408
+ 763,
409
+ 334,
410
+ 779
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "For layers $i$ that are linear in $\\boldsymbol { \\mathsf { W } } ^ { ( i ) }$ (e.g. matrix multiplication, convolution), we can view our method as learning template layers which are shared among a network. More specifically, for a convolutional layer $\\mathbf { U } ^ { ( i ) } ( \\mathbf { X } ) = \\mathbf { W } ^ { ( i ) } \\ast \\mathbf { X }$ , and considering Equation (1): ",
417
+ "bbox": [
418
+ 174,
419
+ 787,
420
+ 825,
421
+ 835
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "equation",
427
+ "img_path": "images/07513eb8445b300d96bc700c309a44f38f6d60609512da1f91bcb711332d7705.jpg",
428
+ "text": "$$\n\\mathbf { U } ^ { ( i ) } ( \\mathbf { X } ) = \\mathbf { W } ^ { ( i ) } * \\mathbf { X } = \\sum _ { j = 1 } ^ { k } \\alpha _ { j } ^ { ( i ) } \\mathbf { T } ^ { ( j ) } * \\mathbf { X }\n$$",
429
+ "text_format": "latex",
430
+ "bbox": [
431
+ 367,
432
+ 839,
433
+ 630,
434
+ 885
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "where $\\pmb { \\mathsf { T } } ^ { ( j ) } * \\pmb { \\mathsf { X } }$ , the result of a convolution with filter sets $\\bar { \\mathsf { T } } ^ { ( j ) }$ , can be seen as the output of a template layer with individual parameters $\\boldsymbol { \\mathsf { T } } ^ { ( j ) }$ . Such layers can be seen as global feature extractors, ",
441
+ "bbox": [
442
+ 174,
443
+ 890,
444
+ 825,
445
+ 924
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "and coefficients $\\mathbf { \\alpha } \\alpha ^ { ( i ) }$ determine which features are relevant for the $i$ ’th computation of a network. \nThis is illustrated in Figure 1 (right diagram). ",
452
+ "bbox": [
453
+ 173,
454
+ 103,
455
+ 821,
456
+ 132
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "This view gives a clear connection between coefficients $_ { \\pmb { \\alpha } }$ and the network’s structure. Having $\\pmb { \\alpha } ^ { ( i ) } = \\pmb { \\alpha } ^ { ( i + 2 ) }$ yields $\\begin{array} { r } { \\mathbf { W } ^ { ( i ) } = \\sum _ { j = 1 } ^ { k } \\alpha _ { j } ^ { ( i ) } \\overline { { \\mathbf { T } ^ { ( j ) } } } = \\sum _ { j = 1 } ^ { k } \\alpha _ { j } ^ { ( i + 2 ) } \\overline { { \\mathbf { T } ^ { ( j ) } } } = \\mathbf { W } ^ { ( i + 2 ) } } \\end{array}$ α(i+2)T(j) = W(i+2), and hence layers i and $i + 2$ are functionally equivalent. Such a network can be folded to generate an equivalent model with two layers and a self-loop, an explicitly recurrent network. While this is also possible for networks without parameter sharing, a learned alignment of $C ^ { 2 } K ^ { 2 }$ parameters is required (unlikely in practice), instead of aligning only $k \\leq L$ parameters. ",
463
+ "bbox": [
464
+ 174,
465
+ 138,
466
+ 825,
467
+ 227
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "3.2 IMPLICIT RECURRENCES",
474
+ "text_level": 1,
475
+ "bbox": [
476
+ 174,
477
+ 244,
478
+ 387,
479
+ 258
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "To identify which layers in a network perform approximately the same operation, we can simply check whether their coefficients are similar. We can condense this information for all pairs of layers $i , j$ in a similarity matrix $S$ , where $S _ { i , j } = s ( \\pmb { \\alpha } ^ { ( i ) } , \\pmb { \\alpha } ^ { ( j ) } )$ for some similarity measure $s$ . ",
486
+ "bbox": [
487
+ 174,
488
+ 270,
489
+ 823,
490
+ 314
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "For networks with normalization layers, the network’s output is invariant to weight rescaling. In this setting, a natural measure is $\\begin{array} { r } { s ( \\pmb { \\alpha } ^ { ( i ) } , \\pmb { \\alpha } ^ { ( j ) } ) = \\frac { | \\langle \\pmb { \\alpha } ^ { ( i ) } , \\pmb { \\alpha } ^ { ( j ) } \\rangle | } { \\| \\pmb { \\alpha } ^ { ( i ) } \\| \\| \\pmb { \\alpha } ^ { ( j ) } \\| } } \\end{array}$ (absolute value of cosine similarity), since it possess this same property.2 We call $S$ the layer similarity matrix (LSM). Figure 2 illustrates and Section 4.3 shows experimentally how it can be used to extract recurrent loops from trained CNNs. ",
497
+ "bbox": [
498
+ 174,
499
+ 320,
500
+ 825,
501
+ 387
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "While structure might emerge naturally, having a bias towards more structured (recurrent) models might be desirable. In this case, we can add a recurrence regularizer to the training objective, pushing parameters to values which result in more structure. For example, we can add the negative of sum of elements of the LSM: $\\begin{array} { r } { \\mathcal { L } _ { R } = \\mathcal { L } - \\lambda _ { R } \\sum _ { i , j } S _ { i , j } } \\end{array}$ , where $\\mathcal { L }$ is the original objective. The larger $\\lambda _ { R }$ is, the closer the elements of $S$ will be to 1. At an extreme case, this regularizer will push all elements in $S$ to 1, resulting in a network with a single layer and a self-loop. ",
508
+ "bbox": [
509
+ 174,
510
+ 393,
511
+ 825,
512
+ 479
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "4 EXPERIMENTS ",
519
+ "text_level": 1,
520
+ "bbox": [
521
+ 176,
522
+ 500,
523
+ 326,
524
+ 516
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "We begin by training variants of standard models with soft parameter sharing, observing that it can offer parameter savings with little impact on performance, or increase performance at the same parameter count. Section 4.3 demonstrates conversion of a trained model into explicitly recurrent form. We then examine synthetic tasks (Section 4.4), where parameter sharing improves generalization. Appendix B contains details on the initialization for the coefficients $_ { \\pmb { \\alpha } }$ . ",
531
+ "bbox": [
532
+ 174,
533
+ 531,
534
+ 825,
535
+ 602
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "4.1 CLASSIFICATION ON CIFAR ",
542
+ "text_level": 1,
543
+ "bbox": [
544
+ 176,
545
+ 618,
546
+ 411,
547
+ 632
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "The CIFAR-10 and CIFAR-100 datasets (Krizhevsky, 2009) are composed of 60, 000 colored $3 2 \\times 3 2$ images, labeled among 10 and 100 classes respectively, and split into 50, 000 and 10, 000 examples for training and testing. We pre-process the training set with channel-wise normalization, and use horizontal flips and random crops for data augmentation, following He et al. (2016). ",
554
+ "bbox": [
555
+ 174,
556
+ 645,
557
+ 825,
558
+ 700
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Using Wide ResNets (WRN) (Zagoruyko & Komodakis, 2016) as a base model, we train networks with the proposed soft parameter sharing method. Since convolution layers have different number of channels and kernel sizes throughout the network, we create 3 layer groups and only share templates among layers in the same group. More specifically, WRNs for CIFAR consist of 3 stages whose inputs and outputs mostly have a constant number of channels ( $C$ , $2 C$ and $_ { 4 C }$ , for some $C$ ). Each stage contains $\\frac { L - 4 } { 3 }$ layers for a network with depth $L$ , hence we group layers in the same stage together, except for the first two, a residual block whose input has a different number of channels. ",
565
+ "bbox": [
566
+ 174,
567
+ 708,
568
+ 825,
569
+ 806
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Thus, all layers except for the first 2 in each stage perform parameter sharing (illustrated in left diagram of Figure 4). Having $k$ templates per group means that $\\textstyle { \\frac { L - 4 } { 3 } } - 2$ convolution layers share $k$ parameter templates. We denote by SWRN- $L$ -w- $k$ a WRN with $L$ layers, widen factor $w$ and $k$ parameter templates per group (trained with our method). Setting $k \\doteq \\textstyle { \\frac { L - 4 } { 3 } } - 2$ L−4 − 2 means we have ",
576
+ "bbox": [
577
+ 174,
578
+ 813,
579
+ 825,
580
+ 869
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Table 1: Test error $( \\% )$ on CIFAR-10 and CIFAR100. SWRN 28-10, the result of training a WRN 28- 10 with our method and one template per layer, significantly outperforms the base model, suggesting that our method aids optimization (both models have the same capacity). SWRN 28-10-1, with a single template per sharing group, performs close to WRN 28-10 while having significantly less parameters and capacity. \\* indicates models trained with dropout $p = 0 . 3$ (Srivastava et al., 2014). Results are average of 5 runs. ",
587
+ "bbox": [
588
+ 174,
589
+ 101,
590
+ 493,
591
+ 228
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "table",
597
+ "img_path": "images/3bf58ac07021f70f3e89f70d7d80ee105e73bafa30fc6a512a91bbc253d5818a.jpg",
598
+ "table_caption": [],
599
+ "table_footnote": [],
600
+ "table_body": "<table><tr><td rowspan=1 colspan=1>CIFAR</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=2>C-10+</td><td rowspan=1 colspan=1>C-10+</td></tr><tr><td rowspan=2 colspan=1>WRN 28-10WRN 28-10*</td><td rowspan=2 colspan=1>36M36M</td><td rowspan=1 colspan=2>4.0</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=2>3.89</td><td></td></tr><tr><td rowspan=2 colspan=1>SWRN28-10SWRN 28-10*SWRN 28-10-1</td><td rowspan=2 colspan=1>36M36M12M</td><td rowspan=1 colspan=2>3.74</td><td rowspan=1 colspan=1>18.78</td></tr><tr><td rowspan=1 colspan=2>3.884.01</td><td rowspan=1 colspan=1>18.4319.73</td></tr></table>",
601
+ "bbox": [
602
+ 183,
603
+ 239,
604
+ 485,
605
+ 319
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Table 2: Performance of wider SWRNs. Parameter reduction $k = 2$ ) leads to lower errors for CIFAR-10, with models being competitive against newer model families that have bottleneck layers, group convolutions, or many layers. Best SWRN results are in bold, and best overall results are underlined. ",
612
+ "bbox": [
613
+ 504,
614
+ 101,
615
+ 823,
616
+ 176
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "table",
622
+ "img_path": "images/32219caf57127ebe7fb1f0d9d1044f691bad4f7b7803dd90b72ef015c42bb956.jpg",
623
+ "table_caption": [],
624
+ "table_footnote": [],
625
+ "table_body": "<table><tr><td rowspan=1 colspan=1>CIFAR</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=1>C-10+</td><td rowspan=1 colspan=1>C-100+</td></tr><tr><td rowspan=2 colspan=1>ResNeXt-2916x64DenseNet 100-24DenseNet 190-40</td><td rowspan=1 colspan=1>68M</td><td rowspan=1 colspan=1>3.58</td><td rowspan=1 colspan=1>17.31</td></tr><tr><td rowspan=1 colspan=1>27M26M</td><td rowspan=1 colspan=1>3.743.46</td><td rowspan=1 colspan=1>19.2517.18</td></tr><tr><td rowspan=4 colspan=1>SWRN 28-10*SWRN 28-10-2*SWRN 28-14*-SWRN 28-14-2*SWRN 28-18*SWRN 28-18-2*</td><td rowspan=3 colspan=1>36M17M71M33M</td><td rowspan=1 colspan=1>3.88</td><td rowspan=1 colspan=1>18.43</td></tr><tr><td rowspan=1 colspan=1>3.75</td><td rowspan=1 colspan=1>18.66</td></tr><tr><td rowspan=1 colspan=1>3.673.69</td><td rowspan=1 colspan=1>18.2518.37</td></tr><tr><td rowspan=1 colspan=1>118M55M</td><td rowspan=1 colspan=1>3.483.43</td><td rowspan=1 colspan=1>17.4317.75</td></tr></table>",
626
+ "bbox": [
627
+ 503,
628
+ 189,
629
+ 825,
630
+ 319
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "image",
636
+ "img_path": "images/518464ecb2ecb59b86a82552d2161e01f30f11f898a98ee94b417a56caf2307c.jpg",
637
+ "image_caption": [
638
+ "Figure 3: Parameter efficiency for different models. On both CIFAR-10 and CIFAR-100, SWRNs are significantly more efficient than WRNs. DN and RNX denotes DenseNet and ResNeXt, respectively, and are plotted for illustration: both models employ orthogonal efficiency techniques, such as bottleneck layers. Best viewed in color. "
639
+ ],
640
+ "image_footnote": [],
641
+ "bbox": [
642
+ 186,
643
+ 333,
644
+ 803,
645
+ 507
646
+ ],
647
+ "page_idx": 5
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "one parameter template per layer, and hence no parameter reduction. We denote SWRN-L- $\\mathbf { \\nabla } \\cdot w$ (thus omitting $k$ ) as a model in this setting. ",
652
+ "bbox": [
653
+ 173,
654
+ 602,
655
+ 823,
656
+ 631
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "Following Zagoruyko & Komodakis (2016), we train each model for 200 epochs with SGD and Nesterov momentum of 0.9 and a batch size of 128. The learning rate is initially set to 0.1 and decays by a factor of 5 at epochs 60, 120 and 160. We also apply weight decay of $\\mathrm { 5 \\times 1 0 ^ { - 4 } }$ on all parameters except for the coefficients $_ \\alpha$ . ",
663
+ "bbox": [
664
+ 174,
665
+ 637,
666
+ 825,
667
+ 693
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "Tables 1 and 2 present results. Networks trained with our method yield superior performance in the setting with no parameter reduction: SWRN 28-10 presents $6 . 5 \\%$ and $2 . 5 \\%$ lower relative test errors on C-10 and C-100, compared to the base WRN 28-10 model. With fewer templates than layers, SWRN 28-10-1 (all 6 layers of each group perform the same operation), performs virtually the same as the base WRN 28-10 network, while having $\\frac 1 3$ of its parameters. On CIFAR-10, parameter reduction $k = 2$ ) is beneficial to test performance: the best performance is achieved by SWRN 28-18-2 ( $3 . 4 3 \\%$ test error), outperforming the ResNeXt-29 16x64 model (Xie et al., 2017), while having fewer parameters (55M against 68M) and no bottleneck layers. ",
674
+ "bbox": [
675
+ 174,
676
+ 700,
677
+ 825,
678
+ 811
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Figure 3 shows that our parameter sharing scheme uniformly improves accuracy-parameter efficiency; compare the WRN model family (solid red) to our SWRN models (dotted red). ",
685
+ "bbox": [
686
+ 174,
687
+ 819,
688
+ 821,
689
+ 847
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Table 4 presents a comparison between our method and neural architecture search (NAS) techniques (Zoph & Le, 2017; Xie et al., 2019; Liu et al., 2019; Pham et al., 2018; Real et al., 2018) on CIFAR-10 – results differ from Table 2 solely due to cutout (DeVries & Taylor, 2017), which is commonly used in NAS literature; NAS results are quoted from their respective papers. Our method outperforms architectures discovered by recent NAS algorithms, such as DARTS (Liu et al., 2019), ",
696
+ "bbox": [
697
+ 174,
698
+ 854,
699
+ 823,
700
+ 924
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "table",
706
+ "img_path": "images/5a6c0ca6505fb42e138eaa5576fa8c85d0d174282021cbd2d6ee19cb662c206a.jpg",
707
+ "table_caption": [
708
+ "Table 3: (below) ImageNet classification results: training WRN 50-2 with soft parameter sharing leads to better performance by itself, without any tuning on the number of templates $k$ . Top-1 and Top-5 errors $( \\% )$ are computed using a single crop. "
709
+ ],
710
+ "table_footnote": [],
711
+ "table_body": "<table><tr><td rowspan=1 colspan=1>ImageNet</td><td rowspan=1 colspan=1>Params</td><td rowspan=1 colspan=1>Top-1</td><td rowspan=1 colspan=1>Top-5</td></tr><tr><td rowspan=4 colspan=1>WRN 50-2DenseNet-264ResNet-200SWRN 50-2</td><td rowspan=1 colspan=1>69M</td><td rowspan=1 colspan=1>22.0</td><td rowspan=1 colspan=1>6.05</td></tr><tr><td rowspan=3 colspan=1>33M65M69M</td><td rowspan=1 colspan=1>22.15</td><td rowspan=1 colspan=1>6.12</td></tr><tr><td rowspan=1 colspan=1>21.66</td><td rowspan=2 colspan=1>5.795.95</td></tr><tr><td rowspan=1 colspan=1>21.74</td></tr></table>",
712
+ "bbox": [
713
+ 174,
714
+ 188,
715
+ 454,
716
+ 256
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "table",
722
+ "img_path": "images/b00389aec001bea95a460c2a9603cc1945686621bdd1c7f7bda6cd5b68b37916.jpg",
723
+ "table_caption": [
724
+ "Table 4: (right) Test error $( \\% )$ on CIFAR-10 of SWRNs and models found via neural architecture search (NAS) (all trained with cutout). Networks trained with soft parameter sharing provide competitive performance against NAS methods while having low computational cost. "
725
+ ],
726
+ "table_footnote": [],
727
+ "table_body": "<table><tr><td rowspan=1 colspan=1>CIFAR-10</td><td rowspan=1 colspan=1>Params(M)</td><td rowspan=1 colspan=1>Training Time(GPU days)</td><td rowspan=1 colspan=1>Test Error(%)</td></tr><tr><td rowspan=8 colspan=1>NASNet-ANASNet-AAmoebaNet-BAmoebaNet-BAmoebaNet-BAmoebaNet-BDARTSSNASENAS</td><td rowspan=1 colspan=1>3.3</td><td rowspan=1 colspan=1>1800</td><td rowspan=1 colspan=1>2.65</td></tr><tr><td rowspan=1 colspan=1>27.6</td><td rowspan=1 colspan=1>1800</td><td rowspan=1 colspan=1>2.4</td></tr><tr><td rowspan=1 colspan=1>2.8</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.55</td></tr><tr><td rowspan=1 colspan=1>13.7</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.31</td></tr><tr><td rowspan=1 colspan=1>26.7</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.21</td></tr><tr><td rowspan=1 colspan=1>34.9</td><td rowspan=1 colspan=1>3150</td><td rowspan=1 colspan=1>2.13</td></tr><tr><td rowspan=1 colspan=1>3.4</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2.83</td></tr><tr><td rowspan=1 colspan=1>2.84.6</td><td rowspan=1 colspan=1>1.50.45</td><td rowspan=1 colspan=1>2.852.89</td></tr><tr><td rowspan=1 colspan=1>WRN28-10(baseline with cutout)</td><td rowspan=1 colspan=1>36.4</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>3.08</td></tr><tr><td rowspan=4 colspan=1>SWRN 28-4-2SWRN 28-6-2SWRN 28-10SWRN 28-10-2SWRN 28-14SWRN 28-14-2</td><td rowspan=1 colspan=1>2.7</td><td rowspan=1 colspan=1>0.12</td><td rowspan=2 colspan=1>3.453.0</td></tr><tr><td rowspan=1 colspan=1>6.1</td><td rowspan=1 colspan=1>0.25</td></tr><tr><td rowspan=1 colspan=1>36.417.1</td><td rowspan=1 colspan=1>0.40.4</td><td rowspan=1 colspan=1>2.72.69</td></tr><tr><td rowspan=1 colspan=1>71.433.5</td><td rowspan=1 colspan=1>0.70.7</td><td rowspan=1 colspan=1>2.552.53</td></tr></table>",
728
+ "bbox": [
729
+ 472,
730
+ 101,
731
+ 821,
732
+ 344
733
+ ],
734
+ "page_idx": 6
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "SNAS (Xie et al., 2019) and ENAS (Pham et al., 2018), while having similarly low training cost. We achieve $2 . 6 9 \\%$ test error after training less than 10 hours on a single NVIDIA GTX 1080 Ti. This accuracy is only bested by NAS techniques which are several orders of magnitude more expensive to train. Being based on Wide ResNets, our models do, admittedly, have more parameters. ",
739
+ "bbox": [
740
+ 174,
741
+ 409,
742
+ 825,
743
+ 465
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "Comparison to recent NAS algorithms, such as DARTS and SNAS, is particularly interesting as our method, though motivated differently, bears some notable similarities. Specifically, all three methods are gradient-based and use an extra set of parameters (architecture parameters in DARTS and SNAS) to perform some kind of soft selection (over operations/paths in DARTS/SNAS; over templates in our method). As Section 4.3 will show, our learned template coefficients $_ { \\pmb { \\alpha } }$ can often be used to transform our networks into an explicitly recurrent form - a discovered CNN-RNN hybrid. ",
750
+ "bbox": [
751
+ 174,
752
+ 472,
753
+ 825,
754
+ 555
755
+ ],
756
+ "page_idx": 6
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "To the extent that our method can be interpreted as a form of architecture search, it might be complementary to standard NAS methods. While NAS methods typically search over operations (e.g. activation functions; $3 \\times 3$ or $5 \\times 5$ convolutions; non-separable, separable, or grouped filters; dilation; pooling), our soft parameter sharing can be seen as a search over recurrent patterns (which layer processes the output at each step). These seem like orthogonal aspects of neural architectures, both of which may be worth examining in an expanded search space. When using SGD to drive architecture search, these aspects take on distinct forms at the implementation level: soft parameter sharing across layers (our method) vs hard parameter sharing across networks (recent NAS methods). ",
761
+ "bbox": [
762
+ 174,
763
+ 563,
764
+ 825,
765
+ 674
766
+ ],
767
+ "page_idx": 6
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "4.2 CLASSIFICATION ON IMAGENET ",
772
+ "text_level": 1,
773
+ "bbox": [
774
+ 176,
775
+ 719,
776
+ 436,
777
+ 733
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "We use the ILSVRC 2012 dataset (Russakovsky et al., 2015) as a stronger test of our method. It is composed of 1.2M training and 50, 000 validation images, drawn from 1000 classes. We follow Gross & Wilber (2016), as in Zagoruyko & Komodakis (2016); Huang et al. (2017); Xie et al. (2017), and report Top-1 and Top-5 errors on the validation set using single $2 2 4 \\times 2 2 4$ crops. For this experiment, we use WRN 50-2 as a base model, and train it with soft sharing and no parameter reduction. Having bottleneck blocks, this model presents less uniform number of channels of layer inputs and outputs. To apply our method, we group convolutions in 12 groups: for each of the 4 stages in a WRN 50-2, we create 3 groups, one for each type of layer in a bottleneck unit $C B$ , $B B$ and $B C$ channel mappings, for bottleneck $B$ ). Without any change in hyperparameters, the network trained with our method outperforms the base model and also deeper models such as DenseNets (though using more parameters), and performs close to ResNet-200, a model with four times the number of layers and a similar parameter count. See Table 3. ",
784
+ "bbox": [
785
+ 173,
786
+ 757,
787
+ 825,
788
+ 924
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "image",
794
+ "img_path": "images/b732ae6be691db0bfcb9987fe694e903c55b587b5610872d701c1f589fd45a91.jpg",
795
+ "image_caption": [
796
+ "Figure 4: Extracting implicit recurrences from a SWRN 28-10-4. Left: Illustration of the stages of a SWRN28-10-4 (residual connections omitted for clarity). The first two layers contain individual parameter sets, while the other six share four templates. All 3 stages of the network follow this structure. Middle: LSM for each stage after training on CIFAR-10, with many elements close to 1. Hard sharing schemes can be created for pairs with large similarity by tying their coefficients (or, equivalently, their effective weights). Right: Folding stages 2 and 3 leads to self-loops and a CNN with recurrent connections – LSM for stage 2 is a repetition of 2 rows/columns, and folding decreases the number of parameters. "
797
+ ],
798
+ "image_footnote": [],
799
+ "bbox": [
800
+ 220,
801
+ 104,
802
+ 759,
803
+ 375
804
+ ],
805
+ "page_idx": 7
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "4.3 LEARNING IMPLICIT RECURRENCES",
810
+ "text_level": 1,
811
+ "bbox": [
812
+ 176,
813
+ 500,
814
+ 465,
815
+ 513
816
+ ],
817
+ "page_idx": 7
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Results on CIFAR suggest that training networks with few parameter templates $k$ in our soft sharing scheme results in performance comparable to the base models, which have significantly more parameters. The lower $k$ is, the larger we should expect the layer similarities to be: in the extreme case where $k = 1$ , all layers in a sharing scheme have similarity 1, and can be folded into a single layer with a self-loop. ",
822
+ "bbox": [
823
+ 174,
824
+ 525,
825
+ 825,
826
+ 594
827
+ ],
828
+ "page_idx": 7
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "For the case $k > 1$ , there is no trivial way to fold the network, as layer similarities depend on the learned coefficients. We can inspect the model’s layer similarity matrix (LSM) and see if it presents implicit recurrences: a form of recurrence in the rows/columns of the LSM. Surprisingly, we observe that rich structures emerge naturally in networks trained with soft parameter sharing, even without the recurrence regularizer. Figure 4 shows the per-stage LSM for CIFAR-trained SWRN 28-10-4. Here, the six layers of its stage-2 block can be folded into a loop of two layers, leading to an error increase of only $0 . 0 2 \\%$ . Appendix A contains an additional example of network folding, diversity of LSM patterns across different runs, and an epoch-wise evolution of the LSM, showing that many patterns are observable after as few as 5 epochs of training. ",
833
+ "bbox": [
834
+ 174,
835
+ 602,
836
+ 825,
837
+ 727
838
+ ],
839
+ "page_idx": 7
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "4.4 EVALUATION ON NATURALLY RECURRENT TASKS ",
844
+ "text_level": 1,
845
+ "bbox": [
846
+ 173,
847
+ 743,
848
+ 562,
849
+ 757
850
+ ],
851
+ "page_idx": 7
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "While the propensity of our parameter sharing scheme to encourage learning of recurrent networks is a useful parameter reduction tool, we would also like to leverage it for qualitative advantages over standard CNNs. On tasks for which a natural recurrent algorithm exists, does training CNNs with soft parameter sharing lead to better extrapolation? ",
856
+ "bbox": [
857
+ 174,
858
+ 770,
859
+ 825,
860
+ 825
861
+ ],
862
+ "page_idx": 7
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "To answer this, we set up a synthetic algorithmic task: computing shortest paths. Examples are $3 2 \\times 3 2$ grids containing two query points and randomly (with probability 0.1) placed obstacles. The objective is to indicate which grid points belong to a shortest path between the query points. ",
867
+ "bbox": [
868
+ 176,
869
+ 833,
870
+ 825,
871
+ 875
872
+ ],
873
+ "page_idx": 7
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "We use curriculum learning for training, allowing us to observe how well each model adapts to more difficult examples as training phases progress. Moreover, for this task curriculum learning causes faster learning and superior performance for all trained models. ",
878
+ "bbox": [
879
+ 176,
880
+ 882,
881
+ 823,
882
+ 924
883
+ ],
884
+ "page_idx": 7
885
+ },
886
+ {
887
+ "type": "image",
888
+ "img_path": "images/4c18a6433c8b4ef4f71dfc645665348dda2d2c2330d29e897fbe70e58b1e7d07.jpg",
889
+ "image_caption": [],
890
+ "image_footnote": [],
891
+ "bbox": [
892
+ 240,
893
+ 111,
894
+ 433,
895
+ 258
896
+ ],
897
+ "page_idx": 8
898
+ },
899
+ {
900
+ "type": "image",
901
+ "img_path": "images/5797e1d23a50ae81bd8845709e604165aa331d04a7a0159a8e27a17f5d892741.jpg",
902
+ "image_caption": [],
903
+ "image_footnote": [],
904
+ "bbox": [
905
+ 529,
906
+ 109,
907
+ 785,
908
+ 253
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "(a) Generated example for the synthetic shortest paths task. Blue pixels indicate the query points; red pixels represent obstacles, and white pixels are points in a shortest path (in terms of Manhattan distance) between query pixels. The task consists of predicting the white pixels (shortest paths) from the blue and red ones (queries and obstacles). ",
915
+ "bbox": [
916
+ 189,
917
+ 265,
918
+ 483,
919
+ 353
920
+ ],
921
+ "page_idx": 8
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "(b) Training curves for the shortest paths task, where difficulty of examples increases every 50 epochs. A SCNN adapts faster than a CNN to new phases and performs better, suggesting better extrapolation capacity. With a recurrence regularizer $\\lambda _ { R } = 0 . 0 1$ (SCNN-R), the model makes faster progress on the first phase, but fails to adapt to harder examples. ",
926
+ "bbox": [
927
+ 514,
928
+ 262,
929
+ 808,
930
+ 363
931
+ ],
932
+ "page_idx": 8
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Figure 5: Shortest paths task. Best viewed in color. ",
937
+ "bbox": [
938
+ 348,
939
+ 376,
940
+ 648,
941
+ 388
942
+ ],
943
+ "page_idx": 8
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Training consists of 5 curriculum phases, each one containing 5000 examples. The maximum allowed distance between the two query points increases at each phase, thus increasing difficulty. In the first phase, each query point is within a $5 \\times 5$ grid around the other query point, and the grid size increases by 2 on each side at each phase, yielding a final grid size of $2 1 \\times 2 1$ at phase 5. ",
948
+ "bbox": [
949
+ 174,
950
+ 420,
951
+ 825,
952
+ 476
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "We train a CNN, a CNN with soft parameter sharing and one template per layer (SCNN), and an SCNN with recurrence regularizer $\\lambda _ { R } = 0 . 0 1$ . Each model trains for 50 epochs per phase with Adam (Kingma & Ba, 2015) and a fixed learning rate of 0.01. As classes are heavily unbalanced and the balance itself changes during phases, we compare $F _ { 1 }$ scores instead of classification error. ",
959
+ "bbox": [
960
+ 174,
961
+ 482,
962
+ 823,
963
+ 537
964
+ ],
965
+ "page_idx": 8
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Each model starts with a $1 \\times 1$ convolution, mapping the 2 input channels to 32 output channels. Next, there are 20 channel-preserving $3 \\times 3$ convolutions, followed by a final $1 \\times 1$ convolution that maps 32 channels to 1. Each of the $2 0 3 \\times 3$ convolutions is followed by batch normalization (Ioffe & Szegedy, 2015), a ReLU non-linearity (Nair & Hinton, 2010), and has a 1-skip connection. ",
970
+ "bbox": [
971
+ 174,
972
+ 545,
973
+ 825,
974
+ 602
975
+ ],
976
+ "page_idx": 8
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Figure 5 shows one example from our generated dataset and the training curves for the 3 trained models: the SCNN not only outperforms the CNN, but adapts better to harder examples at new curriculum phases. The SCNN is also advantaged over a more RNN-like model: with the recurrence regularizer $\\lambda _ { R } = 0 . 0 1$ , all entries in the LSM quickly converge 1, as in a RNN. This leads to faster learning during the first phase, but presents issues in adapting to difficulty changes in latter phases. ",
981
+ "bbox": [
982
+ 174,
983
+ 608,
984
+ 825,
985
+ 679
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "5 CONCLUSION ",
992
+ "text_level": 1,
993
+ "bbox": [
994
+ 176,
995
+ 702,
996
+ 318,
997
+ 718
998
+ ],
999
+ "page_idx": 8
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "In this work, we take a step toward more modular and compact CNNs by extracting recurrences from feed-forward models where parameters are shared among layers. Experimentally, parameter sharing yields models with lower error on CIFAR and ImageNet, and can be used for parameter reduction by training in a regime with fewer parameter templates than layers. Moreover, we observe that parameter sharing often leads to different layers being functionally equivalent after training, enabling us to collapse them into recurrent blocks. Results on an algorithmic task suggest that our shared parameter structure beneficially biases extrapolation. We gain a more flexible form of behavior typically attributed to RNNs, as our networks adapt better to out-of-domain examples. Our form of architecture discovery is also competitive with neural architecture search (NAS) algorithms, while having a smaller training cost than state-of-the-art gradient-based NAS. ",
1004
+ "bbox": [
1005
+ 174,
1006
+ 734,
1007
+ 825,
1008
+ 875
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "As the only requirement for our method is for a network to have groups of layers with matching parameter sizes, it can be applied to a plethora of CNN model families, making it a general technique with negligible computational cost. We hope to raise questions regarding the rigid definitions of ",
1015
+ "bbox": [
1016
+ 176,
1017
+ 882,
1018
+ 823,
1019
+ 924
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "CNNs and RNNs, and increase interest in models that fall between these definitions. Adapting our method for models with non-uniform layer parameter sizes (Huang et al., 2017; Zhu et al., 2018) might be of particular future interest. ",
1026
+ "bbox": [
1027
+ 174,
1028
+ 103,
1029
+ 825,
1030
+ 146
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "REFERENCES ",
1037
+ "text_level": 1,
1038
+ "bbox": [
1039
+ 174,
1040
+ 166,
1041
+ 285,
1042
+ 183
1043
+ ],
1044
+ "page_idx": 9
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Jonathon Cai, Richard Shin, and Dawn Song. Making neural programming architectures generalize via recursion. ICLR, 2017. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 190,
1052
+ 823,
1053
+ 218
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. DeepLab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected CRFs. arXiv:1606.00915, 2016. ",
1060
+ "bbox": [
1061
+ 178,
1062
+ 227,
1063
+ 823,
1064
+ 270
1065
+ ],
1066
+ "page_idx": 9
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Terrance DeVries and Graham W. Taylor. Improved regularization of convolutional neural networks with cutout. Journal of Machine Learning Research, 2017. ",
1071
+ "bbox": [
1072
+ 169,
1073
+ 279,
1074
+ 823,
1075
+ 308
1076
+ ],
1077
+ "page_idx": 9
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. CVPR, 2015. ",
1082
+ "bbox": [
1083
+ 174,
1084
+ 315,
1085
+ 823,
1086
+ 359
1087
+ ],
1088
+ "page_idx": 9
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. ICASSP, 2013. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 367,
1096
+ 823,
1097
+ 397
1098
+ ],
1099
+ "page_idx": 9
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural Turing Machines. arXiv:1410.5401, 2014. ",
1104
+ "bbox": [
1105
+ 173,
1106
+ 405,
1107
+ 808,
1108
+ 421
1109
+ ],
1110
+ "page_idx": 9
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ Adria Puigdom \\` enech Badia, Karl Moritz Hermann, Yori Zwols, Georg Ostrovski, Adam Cain, \\` Helen King, Christopher Summerfield, Phil Blunsom, Koray Kavukcuoglu, and Demis Hassabis. Hybrid computing using a neural network with dynamic external memory. Nature, 2016. ",
1115
+ "bbox": [
1116
+ 174,
1117
+ 429,
1118
+ 825,
1119
+ 500
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "K. Greff, R. K. Srivastava, and J. Schmidhuber. Highway and residual networks learn unrolled iterative estimation. ICLR, 2017. ",
1126
+ "bbox": [
1127
+ 173,
1128
+ 508,
1129
+ 821,
1130
+ 537
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Sam Gross and Martin Wilber. Training and investigating residual nets. https://github.com/ facebook/fb.resnet.torch, 2016. ",
1137
+ "bbox": [
1138
+ 176,
1139
+ 546,
1140
+ 821,
1141
+ 575
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "David Ha, Andrew Dai, and Quoc V. Le. Hypernetworks. arXiv:1609.09106, 2016. ",
1148
+ "bbox": [
1149
+ 174,
1150
+ 583,
1151
+ 723,
1152
+ 599
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. ICLR, 2016. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 608,
1162
+ 820,
1163
+ 637
1164
+ ],
1165
+ "page_idx": 9
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2016. ",
1170
+ "bbox": [
1171
+ 174,
1172
+ 645,
1173
+ 821,
1174
+ 674
1175
+ ],
1176
+ "page_idx": 9
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997. ",
1181
+ "bbox": [
1182
+ 176,
1183
+ 683,
1184
+ 807,
1185
+ 698
1186
+ ],
1187
+ "page_idx": 9
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q. Weinberger. Densely connected convolutional networks. CVPR, 2017. ",
1192
+ "bbox": [
1193
+ 176,
1194
+ 707,
1195
+ 821,
1196
+ 736
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Gao Huang, Shichen Liu, Laurens van der Maaten, and Kilian Q. Weinberger. CondenseNet: An efficient DenseNet using learned group convolutions. CVPR, 2018. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 744,
1206
+ 823,
1207
+ 773
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and ${ < } 1 \\mathbf { M } \\mathbf { B }$ model size. arXiv:1602.07360, 2016. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 781,
1217
+ 825,
1218
+ 824
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. ICML, 2015. ",
1225
+ "bbox": [
1226
+ 174,
1227
+ 833,
1228
+ 821,
1229
+ 863
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Stanislaw Jastrzebski, Devansh Arpit, Nicolas Ballas, Vikas Verma, Tong Che, and Yoshua Bengio. Residual connections encourage iterative inference. ICLR, 2018. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 871,
1239
+ 820,
1240
+ 900
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 909,
1250
+ 794,
1251
+ 924
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Jan Koutn´ık, Klaus Greff, Faustino Gomez, and Jurgen Schmidhuber. A clockwork RNN. ¨ arXiv:1402.3511, 2014. \nAlex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. \nQianli Liao and Tomaso A. Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv:1604.03640, 2016. \nChenxi Liu, Barret Zoph, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan L. Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. ECCV, 2018. \nHanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. ICLR, 2019. \nVinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. ICML, 2010. \nHieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. ICML, 2018. \nPedro O. Pinheiro and Ronan Collobert. Recurrent convolutional neural networks for scene labeling. ICML, 2014. \nAmeya Prabhu, Girish Varma, and Anoop M. Namboodiri. Deep expander networks: Efficient deep networks from graph theory. ECCV, 2018. \nEsteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. arXiv:1802.01548, 2018. \nScott E. Reed and Nando de Freitas. Neural programmer-interpreters. ICLR, 2016. \nOlga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. IJCV, 115(3), 2015. \nAndrew M. Saxe, James L. McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv:1312.6120, 2013. \nXingjian Shi, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional LSTM network: A machine learning approach for precipitation nowcasting. NIPS, 2015. \nKaren Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015. \nNitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1), 2014. \nChristian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. CVPR, 2015. \nAndrew Trask, Felix Hill, Scott Reed, Jack Rae, Chris Dyer, and Phil Blunsom. Neural arithmetic logic units. arXiv:1808.00508, 2018. \nSaining Xie, Ross B. Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual ´ transformations for deep neural networks. CVPR, 2017. \nSirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. ICLR, 2019. \nKelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. ICML, 2015. ",
1258
+ "bbox": [
1259
+ 169,
1260
+ 89,
1261
+ 826,
1262
+ 930
1263
+ ],
1264
+ "page_idx": 10
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Yibo Yang, Zhisheng Zhong, Tiancheng Shen, and Zhouchen Lin. Convolutional neural networks with alternately updated clique. CVPR, 2018. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 103,
1272
+ 825,
1273
+ 132
1274
+ ],
1275
+ "page_idx": 11
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. BMVC, 2016. ",
1280
+ "bbox": [
1281
+ 174,
1282
+ 140,
1283
+ 710,
1284
+ 156
1285
+ ],
1286
+ "page_idx": 11
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Amir Roshan Zamir, Te-Lin Wu, Lin Sun, William B. Shen, Jitendra Malik, and Silvio Savarese. Feedback networks. CVPR, 2017. ",
1291
+ "bbox": [
1292
+ 173,
1293
+ 165,
1294
+ 821,
1295
+ 194
1296
+ ],
1297
+ "page_idx": 11
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Wojciech Zaremba, Tomas Mikolov, Armand Joulin, and Rob Fergus. Learning simple algorithms from examples. ICML, 2016. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 202,
1305
+ 825,
1306
+ 232
1307
+ ],
1308
+ "page_idx": 11
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. CVPR, 2017. ",
1313
+ "bbox": [
1314
+ 174,
1315
+ 239,
1316
+ 825,
1317
+ 270
1318
+ ],
1319
+ "page_idx": 11
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Ligeng Zhu, Ruizhi Deng, Zhiwei Deng, Greg Mori, and Ping Tan. Sparsely aggregated convolutional networks. ECCV, 2018. ",
1324
+ "bbox": [
1325
+ 176,
1326
+ 277,
1327
+ 823,
1328
+ 308
1329
+ ],
1330
+ "page_idx": 11
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. ICLR, 2017. ",
1335
+ "bbox": [
1336
+ 171,
1337
+ 315,
1338
+ 820,
1339
+ 332
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Appendix ",
1346
+ "text_level": 1,
1347
+ "bbox": [
1348
+ 176,
1349
+ 99,
1350
+ 316,
1351
+ 127
1352
+ ],
1353
+ "page_idx": 12
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "A ADDITIONAL RESULTS FOR IMPLICIT RECURRENCES",
1358
+ "text_level": 1,
1359
+ "bbox": [
1360
+ 174,
1361
+ 148,
1362
+ 650,
1363
+ 166
1364
+ ],
1365
+ "page_idx": 12
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Section 4.3 presents an example of implicit recurrences and folding of a SWRN 28-10-4 trained on CIFAR-10, where, for example, the last 6 layers in the second stage of the network fold into 2 layers with a self-loop. ",
1370
+ "bbox": [
1371
+ 173,
1372
+ 188,
1373
+ 825,
1374
+ 229
1375
+ ],
1376
+ "page_idx": 12
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Figure 6 presents an additional example, where non-trivial recurrences (unlike the one in Figure 4) emerge naturally, resulting in a model that is rich in structure. ",
1381
+ "bbox": [
1382
+ 173,
1383
+ 237,
1384
+ 823,
1385
+ 265
1386
+ ],
1387
+ "page_idx": 12
1388
+ },
1389
+ {
1390
+ "type": "image",
1391
+ "img_path": "images/fc06843966b9e39486f71756cf26d0765bf6de008dc1755452226992594fc940.jpg",
1392
+ "image_caption": [
1393
+ "Figure 6: SWRN 40-8-8 (8 parameter templates shared among groups of $\\frac { 4 0 - 4 } { 3 } - 2 = 1 0$ layers) trained with soft parameter sharing on CIFAR-10. Each stage (originally with 12 layers – the first two do not participate in parameter sharing) can be folded to yield blocks with complex recurrences. For clarity, we use colors to indicate the computational flow: red takes precedence over green, which in turn has precedence over blue. Colored paths are only taken once per stage. Although not trivial to see, recurrences in each stage’s folded form are determined by row/column repetitions in the respective Layer Similarity Matrix. For example, for stage 2 we have $S _ { 5 , 3 } \\approx S _ { 6 , 4 } \\approx 1$ , meaning that layers 3, 4, 5 and 6 can be folded into layers 3 and 4 with a loop (captured by the red edge). The same holds for $S _ { 7 , 1 }$ $_ 1 , S _ { 8 , 2 } , S _ { 9 , 3 }$ and $S _ { 1 0 , 4 }$ , hence after the loop with layers 3 and 4, the flow returns to layer 1 and goes all the way to layer 4, which generates the stage’s output. Even though there is an approximation when folding the network (in this example, we are tying layers with similarity close to 0.8), the impact on the test error is less than $0 . 3 \\%$ . Also note that the folded model has a total of 24 layers (20 in the stage diagrams, plus 4 which are not shown, corresponding to the first layer of the network and three $1 \\times 1$ convolutions in skip-connections), instead of the original 40. "
1394
+ ],
1395
+ "image_footnote": [],
1396
+ "bbox": [
1397
+ 235,
1398
+ 285,
1399
+ 761,
1400
+ 723
1401
+ ],
1402
+ "page_idx": 12
1403
+ },
1404
+ {
1405
+ "type": "image",
1406
+ "img_path": "images/fdc8c958fab5e3a2b0f2446ac5890d9310f5a57da70a5ba719a29d7cb24d7e4b.jpg",
1407
+ "image_caption": [
1408
+ "Figure 7: LSMs of a SWRN 40-8-8 (composed of 3 stages, each with 10 layers sharing 8 templates) trained on CIFAR-10 for 5 runs with different random seeds. Although the LSMs differ across different runs, hard parameter sharing can be observed in all cases (off-diagonal elements close to 1, depicted by white), characterizing implicit recurrences which would enable network folding. Moreover, the underlying structure is similar across runs, with hard sharing typically happening among layers $_ { i }$ and $i + 2$ , leading to a “chessboard” pattern. "
1409
+ ],
1410
+ "image_footnote": [],
1411
+ "bbox": [
1412
+ 174,
1413
+ 101,
1414
+ 823,
1415
+ 398
1416
+ ],
1417
+ "page_idx": 13
1418
+ },
1419
+ {
1420
+ "type": "image",
1421
+ "img_path": "images/5de972993320487ca663b8f5109f332ee4d92857e74173a62c2f72f4841412cd.jpg",
1422
+ "image_caption": [
1423
+ "Figure 8: LSMs of a SWRN 40-8-8 (composed of 3 stages, each with 10 layers sharing 8 templates) at different epochs during training on CIFAR-10. The transition from an identity matrix to the final LSM happens mostly in the beginning of training: at epoch 50, the LSM is almost indistinguishable from the final LSM at epoch 200, and most of the final patterns are observable already at epoch 25. "
1424
+ ],
1425
+ "image_footnote": [],
1426
+ "bbox": [
1427
+ 174,
1428
+ 511,
1429
+ 823,
1430
+ 809
1431
+ ],
1432
+ "page_idx": 13
1433
+ },
1434
+ {
1435
+ "type": "text",
1436
+ "text": "B INITIALIZATION OF COEFFICIENTS ",
1437
+ "text_level": 1,
1438
+ "bbox": [
1439
+ 174,
1440
+ 102,
1441
+ 496,
1442
+ 118
1443
+ ],
1444
+ "page_idx": 14
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "During our initial experiments, we explored different initializations for the coefficients $_ { \\pmb { \\alpha } }$ of each layer, and observed that using an orthogonal initialization (Saxe et al., 2013) resulted in superior performance compared to uniform or normal initialization schemes. ",
1449
+ "bbox": [
1450
+ 174,
1451
+ 133,
1452
+ 825,
1453
+ 175
1454
+ ],
1455
+ "page_idx": 14
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Denote $\\pmb { A }$ as the $L \\times k$ matrix ( $L$ is the number of layers sharing parameters and $k$ the number of templates) with each $\\because$ ’th row containing the coefficient of the $i ^ { \\because }$ ’th layer $\\mathbf { \\alpha } \\alpha ^ { ( i ) }$ . We initialize it such that $A ^ { T } A = I$ , leading to $\\forall _ { i }$ , $\\langle \\pmb { \\alpha } ^ { ( i ) } , \\pmb { \\alpha } ^ { ( i ) } \\rangle = 1$ and $\\forall _ { i \\neq j } , \\langle { \\pmb { \\alpha } } ^ { ( i ) } , { \\pmb { \\alpha } } ^ { ( j ) } \\rangle = 0$ . While our choice for this is mostly empirical, we believe that there is likely a connection with the motivation for using orthogonal initialization for RNNs. ",
1460
+ "bbox": [
1461
+ 174,
1462
+ 183,
1463
+ 825,
1464
+ 255
1465
+ ],
1466
+ "page_idx": 14
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Moreover, we discovered that other initialization options for $\\pmb { A }$ work similarly to the orthogonal one. More specifically, either initializing $\\pmb { A }$ with the identity matrix when $L = k$ (which naturally leads to $A ^ { T } A = I $ ) or enforcing some sparsity (initialize $\\pmb { A }$ with a uniform or normal distribution and randomly setting half of its entries to zero) performs similarly to the orthogonal initialization in a consistent manner. We believe the sparse initialization to be the simplest one, as each coefficient $_ { \\pmb { \\alpha } }$ can be initialized independently. ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 261,
1474
+ 825,
1475
+ 345
1476
+ ],
1477
+ "page_idx": 14
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Finally, note that having $A ^ { T } A = I$ results in the Layer Similarity Matrix also being the identity at initialization (check that Si,j = $\\begin{array} { r } { S _ { i , j } = \\frac { | \\langle { \\pmb { \\alpha } } ^ { ( i ) } , { \\pmb { \\alpha } } ^ { ( j ) } \\rangle | } { \\| { \\pmb { \\alpha } } ^ { ( i ) } \\| \\| { \\pmb { \\alpha } } ^ { ( j ) } \\| } = \\frac { | ( { \\pmb { A } } ^ { T } { \\pmb { A } } ) _ { i , j } | } { \\| { \\pmb { \\alpha } } ^ { ( i ) } \\| \\| { \\pmb { \\alpha } } ^ { ( j ) } \\| } } \\end{array}$ |(AT A)i,j |kα(i)kkα(j)k , so if (AT A)i,j = 1, then Si,j = 1, and the same holds for 0. Surprisingly, even though the orthogonal initialization leads to a LSM that has no structure in the beginning of training, the rich patterns that we observe still emerge naturally after optimization. ",
1482
+ "bbox": [
1483
+ 174,
1484
+ 352,
1485
+ 825,
1486
+ 430
1487
+ ],
1488
+ "page_idx": 14
1489
+ }
1490
+ ]
parse/train/rJgYxn09Fm/rJgYxn09Fm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJgYxn09Fm/rJgYxn09Fm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJxHsjRqFQ/rJxHsjRqFQ.md ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HYPERBOLIC ATTENTION NETWORKS
2
+
3
+ Caglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, Nando de Freitas
4
+
5
+ DeepMind
6
+
7
+ # ABSTRACT
8
+
9
+ Recent approaches have successfully demonstrated the benefits of learning the parameters of shallow networks in hyperbolic space. We extend this line of work by imposing hyperbolic geometry on the embeddings used to compute the ubiquitous attention mechanisms for different neural networks architectures. By only changing the geometry of embedding of object representations, we can use the embedding space more efficiently without increasing the number of parameters of the model. Mainly as the number of objects grows exponentially for any semantic distance from the query, hyperbolic geometry –as opposed to Euclidean geometry– can encode those objects without having any interference. Our method shows improvements in generalization on neural machine translation on WMT’14 (English to German), learning on graphs (both on synthetic and real-world graph tasks) and visual question answering (CLEVR) tasks while keeping the neural representations compact.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ The focus of this work is to endow neural network representations with suitable geometry to capture fundamental properties of data, including hierarchy and clustering behaviour. These properties emerge in many real-world scenarios that approximately follow power-law distributions (Newman, 2005; Clauset et al., 2009). This includes a wide range of natural phenomena in physics (Lin and Tegmark, 2017), biology (McGill et al., 2006), and even human-made structures such as metabolic-mass relationships (Borg, 1982), social networks (Krioukov et al., 2010; Papadopoulos et al., 2010), and frequencies of words (Powers, 1998; Piantadosi, 2014; Takahashi and Tanaka-Ishii, 2017).
14
+
15
+ Complex networks (Krioukov et al., 2010), which connect distinguishable heterogeneous sets of elements represented as nodes, provide us an intuitive way of understanding these structures. They will also serve as our starting point for introducing hyperbolic geometry, which is by itself difficult to visualize. Nodes in complex networks are referred to as heterogeneous, in the sense that they can be divided into sub-nodes which are themselves distinguishable from each other. The scale-free structure of natural data manifests itself as a power law distribution on the node degrees of the complex network that describes it.
16
+
17
+ Complex networks can be approximated with tree-like structures, such as taxonomies and dendrograms, and as lucidly presented by Krioukov et al. (2010), hyperbolic spaces can be thought of as smooth trees abstracting the hierarchical organization of complex networks. Let us begin by recalling a simple property of $n$ -ary trees that will help us understand hyperbolic space and why hyperbolic geometry is well suited to model relational data.
18
+
19
+ In an $n$ -ary tree, the number of nodes at distance $r$ from the root and the number of nodes at distance no more than $r$ from the root both grow as $n ^ { r }$ . Similarly, in a two-dimensional hyperbolic space with curvature $- \zeta ^ { 2 } , \zeta > 0$ , the circumference and area of a disc of radius $r$ grows as $2 \pi { \mathrm { s i n h } } ( \zeta r )$ and $2 \pi ( \cosh ( \zeta r ) - 1 )$ , respectively, both of are exponential in $r$ (Krioukov et al., 2009; 2010). The growth of volume in hyperbolic space should be contrasted with Euclidean space where the corresponding quantities expand polynomially, circumference as $2 \pi r$ and area as $\pi r ^ { 2 }$ .
20
+
21
+ In the two-dimensional example of Figure 1, the expanding rings show examples at a fixed semantic distance from the central object (“pug”). The number of concepts grows quickly with semantic distance forcing each successive ring to be more crowded in order to maintain a fixed distance to the center. In contrast, the extra volume of hyperbolic spheres (depicted by reducing the size of the examples) allows all of the examples to remain well separated from their semantic neighbours.
22
+
23
+ ![](images/917015691c7380fd6981c92a366234722e36b16c14b1a9c068b3a31e7d42e0b8.jpg)
24
+ Figure 1: An intuitive depiction of how images might be embedded in 2D. The location of the embeddings reflects the similarity between each image and that of a pug. Since the number of instances within a given semantic distance from the central object grows exponentially, the Euclidean space is not able to compactly represent such structure (left). In hyperbolic space (right) the volume grows exponentially, allowing for sufficient room to embed the images. For visualization, we have shrunk the images in this Euclidean diagram, a trick also used by Escher.
25
+
26
+ Mechanically, the computed embeddings by a random network for objects at a given semantic distance might still seem epsilon distance away from each other (or crowded) as the ones obtained by using Euclidean geometry. However, enforcing hyperbolic geometry intuitively means that all operations with these embeddings take into account, the density in that particular region of the space. For example, any noise introduced in the system (e.g., in gradients) will also be corrected by the density. In contrast to working in Euclidean space, this means that the embeddings will be equally distinguishable regardless of the density.
27
+
28
+ The intimate connection between hyperbolic space and scale free networks (where node degree follows a power law) is made more precise in Krioukov et al. (2010). In particular, there it is shown that the heterogeneous topology implies hyperbolic geometry, and conversely hyperbolic geometry yields heterogeneous topology. Moreover, Sarkar (2011) describes a construction that embeds trees in two-dimensional hyperbolic space with arbitrarily low distortion, which is not possible in Euclidean space of any dimension (Linial et al., 1998). Following this exciting line of research, recently the machine learning community has gained interest in learning non-Euclidean embeddings directly from data (Nickel and Kiela, 2017; Chamberlain et al., 2017; Ritter, 1999; Ontrup and Ritter, 2002; Tay et al., 2018; Bronstein et al., 2017).
29
+
30
+ Fuelled by the desire of increasing the capacity of neural networks without increasing the number of trainable parameters so as to match the complexity of data, we propose hyperbolic attention networks. As opposed to previous approaches, which impose hyperbolic geometry on the parameters of shallow networks (Nickel and Kiela, 2017; Chamberlain et al., 2017), we impose hyperbolic geometry on the activations of deep networks. This allows us to exploit hyperbolic geometry to reason about embeddings produced by deep networks. We introduce efficient hyperbolic operations to express the popular, ubiquitous mechanism of attention (Bahdanau et al., 2014; Duan et al., 2017; Vaswani et al., 2017; Wang et al., 2017). Our method shows improvements in terms of generalization on neural machine translation (Vaswani et al., 2017), learning on graphs and visual question answering (Antol et al., 2015; Malinowski and Fritz, 2014; Johnson et al., 2017) tasks while keeping the representations compact. Simultaneously to our work, Cho et al. (2018) proposed a method to learn SVMs in the hyperboloid model of hyperbolic space, and Nickel and Kiela (2018) proposed a method to learn shallow embeddings of graphs in hyperbolic space by using the hyperboloid model.
31
+
32
+ # 2 MODELS OF HYPERBOLIC SPACE
33
+
34
+ Hyperbolic space cannot be isometrically embedded into Euclidean space (Krioukov et al., 2010); however, there are several ways to endow different subsets of Euclidean space with a hyperbolic metric, leading to different models of hyperbolic space. This leads to the well known Poincaré ball model (Iversen, 1992) and many others.
35
+
36
+ The different models of hyperbolic space are all essentially the same, but different models define different coordinate systems, which offer different affordances for computation. In this paper, we primarily make use of the hyperboloid (or Lorentz) model of the hyperbolic space. Since the hyperboloid is unbounded, it a convenient target for projecting into hyperbolic space. We also make use of the Klein model, because it admits an efficient expression for the hyperbolic aggregation operation we define in Section 4.2.
37
+
38
+ We briefly review the definitions of the hyperboloid and Klein models and the relationship between them, in just enough detail to support the presentation in the remainder of the paper. A more thorough treatment can be found in Iversen (1992). The geometric relationship between the Klein and hyperboloid models is diagrammed in Figure 5 of the supplementary material.
39
+
40
+ Hyperboloid model: This model of $n$ dimensional hyperbolic space is a manifold in the $n + 1$ dimensional Minkowski space. The Minkowski space is $\bar { \mathbb { R } ^ { n + 1 } }$ endowed with the indefinite Minkowski bilinear form
41
+
42
+ $$
43
+ \langle \mathbf { q } , \mathbf { k } \rangle _ { M } { = } \sum _ { i = 1 } ^ { n } q _ { i } k _ { i } { - } q _ { n + 1 } k _ { n + 1 } .
44
+ $$
45
+
46
+ The hyperboloid model consists of the set
47
+
48
+ $$
49
+ \mathbb { H } ^ { n } = \{ \mathbf { x } \in \mathbb { R } ^ { n + 1 } | \langle \mathbf { x } , \mathbf { x } \rangle _ { M } = - 1 , x _ { n + 1 } > 0 \}
50
+ $$
51
+
52
+ endowed with the distance metric $d _ { \mathbb { H } } ( \mathbf { q } , \mathbf { k } ) = \operatorname { a r c c o s h } ( - \left. \mathbf { q } , \mathbf { k } \right. _ { M } )$
53
+
54
+ Klein model: This model of hyperbolic space is a subset of $\mathbb { R } ^ { n }$ given by $\mathbb { K } ^ { n } = \left\{ \mathbf { x } \in \mathbb { R } ^ { n } | \| \mathbf { x } \| < 1 \right\}$ , and a point in the Klein model can be obtained from the corresponding point in the hyperboloid model by projection
55
+
56
+ $$
57
+ \pi _ { \mathbb { H } \mathbb { K } } ( \mathbf { x } ) _ { i } = \frac { x _ { i } } { x _ { n + 1 } } ,
58
+ $$
59
+
60
+ with its inverse given by
61
+
62
+ $$
63
+ \pi _ { \mathbb { K } \to \mathbb { H } } ( \mathbf { x } ) = \frac { 1 } { \sqrt { 1 - \left\| \mathbf { x } \right\| ^ { 2 } } } ( \mathbf { x } , 1 )
64
+ $$
65
+
66
+ Distance computations in the Klein model can be inherited from the hyperboloid, in the sense that $d _ { \mathbb { K } } ( \mathbf { q } , \mathbf { k } ) = d _ { \mathbb { H } } ( \pi _ { \mathbb { K } \mathbb { H } } ( \mathbf { k } ) , \pi _ { \mathbb { K } \mathbb { H } } ( \mathbf { q }$ ).
67
+
68
+ # 3 ATTENTION AS A BUILDING BLOCK FOR RELATIONAL REASONING
69
+
70
+ Learning relations in a graph by using neural networks to model the interactions or relations has shown promising results in visual question answering (Santoro et al., 2017), modelling physical dynamics (Battaglia et al., 2016), and reasoning over graphs (Li et al., 2015; Vendrov et al., 2016; Kipf et al., 2018; Kool and Welling, 2018). Graph neural networks (Li et al., 2015; Battaglia et al., 2016) incorporate a message passing as part of the architecture in order to capture the intrinsic relations between entities. Graph convolution networks (Bruna et al., 2013; Kipf and Welling, 2016; Defferrard et al., 2016) use convolutions to efficiently learn a continuous-space representation for a graph of interest.
71
+
72
+ Many of these relational reasoning models can be expressed in terms of an attentive read operation. In the following subsection, we give a general description of the attentive read, and then discuss its specific instantiations in two relational reasoning models from the literature.
73
+
74
+ # 3.1 ATTENTIVE READ
75
+
76
+ First introduced for translation in Bahdanau et al. (2014), attention has seen widespread use in deep learning, not only for applications in NLP but also for image processing (Wang et al., 2017) imitation
77
+
78
+ learning (Duan et al., 2017) and memory (Graves et al., 2016). The core computation is the attentive read operation, which has the following form:
79
+
80
+ $$
81
+ \mathbf { r } ( \mathbf { q } _ { i } , \{ \mathbf { k } _ { j } \} _ { j } ) = \sum _ { j } \frac { f ( \mathbf { q } _ { i } , \mathbf { k } _ { j } ) } { Z } \mathbf { v } _ { i j } .
82
+ $$
83
+
84
+ Here $\mathbf { q } _ { i }$ is a vector called the query and the $\mathbf { k } _ { j }$ ’s are the keys for the memory locations being read from. The pairwise function $f ( \cdot , \cdot )$ computes a scalar matching score between a query and a key, and the vector $\mathbf { v } _ { i j }$ is a value to be read from location $j$ by query $i$ . $Z > 0$ is a normalization factor for the full sum. Both $\mathbf { v } _ { i j }$ and $Z$ are free to depend on arbitrary information, but we leave any dependencies here implicit.
85
+
86
+ It will be useful in the discussion to break this operation down into two parts. The first is the matching, which computes attention weights $\alpha _ { i j } = f ( \mathbf { q } _ { i } , \mathbf { k } _ { j } )$ and the second is the aggregation, which takes a weighted average of the values using these weights,
87
+
88
+ $$
89
+ m _ { i } ( \{ \alpha _ { i j } \} _ { j } , \{ \mathbf { v } _ { i j } \} _ { j } ) = \sum _ { j } \frac { \alpha _ { i j } } { Z } \mathbf { v } _ { i j } .
90
+ $$
91
+
92
+ Instantiating a particular attentive read operation involves specifying both $f ( \cdot , \cdot )$ and $\mathbf { v } _ { i j }$ along with the normalization constant $Z$ .
93
+
94
+ If one performs an attentive read for each element of the set $j$ then the resulting operation corresponds in a natural way to message passing on a graph, where each node $i$ aggregates messages $\{ \mathbf { v } _ { i j } \} _ { j }$ from its neighbours along edges of weight $f ( \mathbf { q } _ { i } , \mathbf { k } _ { j } ) / Z$ .
95
+
96
+ We can express many (although not all) message passing neural network architectures (Gilmer et al., 2017) using the attentive read operation of Equation 1 as a primitive. In the following sections we do this for two architectures and then discuss how we can replace both the matching and aggregation steps with versions that leverage hyperbolic geometry.
97
+
98
+ # 3.2 RELATION NETWORKS
99
+
100
+ Relation Networks (RNs) (Santoro et al., 2017) are a neural network architecture designed for reasoning about the relationships between objects. An RN operates on a set of objects $O$ by applying a shared operator to each pair of objects $( \mathbf { o } _ { i } , \mathbf { o } _ { j } ) { \in } O \times O$ . The pairs can be augmented by a global information, and the result of each relational operation is passed through a further global transformation.
101
+
102
+ Using the notation of the previous section, we can write the RN as
103
+
104
+ $$
105
+ R N ( O , \mathbf { c } ) = h \left( \sum _ { i } \mathbf { r } ( \mathbf { o } _ { i } , \{ \mathbf { o } _ { j } \} _ { j } ) ) \right) ,
106
+ $$
107
+
108
+ where $f ( \mathbf { o } _ { i } , \mathbf { o } _ { j } ) = 1$ , $\mathbf { v } _ { i j } = g ( \mathbf { o } _ { i } , \mathbf { o } _ { j } , \mathbf { c } )$ , $Z = 1$ . $h$ is the global transformation, $g$ is the local transformation and $\mathbf { c }$ is the global context, as described in Santoro et al. (2017). We augment the basic RN to allow $f ( \mathbf { o } _ { i } , \mathbf { o } _ { j } ) \in [ 0 , \bar { 1 } ]$ to be a general learnable function.
109
+
110
+ Interpreting the RN as learned message passing on a graph over objects, the attention weights take on the semantics of edge weights, where $\alpha _ { i j }$ can be thought of as the probability of the (directed) edge $\mathbf { o } _ { j } \mathbf { o } _ { i }$ appearing in the underlying reasoning graph.
111
+
112
+ # 3.3 SCALED DOT-PRODUCT ATTENTION
113
+
114
+ In the Transformer model of Vaswani et al. (2017) the authors define an all-to-all message passing operation on a set of vectors which they call scaled dot-product attention. In the language of Section 3.1 the scaled dot-product attention operation performs several attentive reads in parallel, one for each element of the input set.
115
+
116
+ Vaswani et al. (2017) write scaled dot-product attention as $\scriptstyle \mathbf { R } = \operatorname { s o f t m a x } \left( { \frac { \mathbf { Q } \mathbf { K } ^ { T } } { \sqrt { d } } } \right) \mathbf { V }$ , where ${ \bf Q } , { \bf K }$ and $\mathbf { V }$ are referred to as the queries, keys, and values respectively, and $d$ is the shared dimensionality of the queries and keys. Using lowercase letters to denote rows of the corresponding matrices, we can write each row of $\mathbf { R }$ as the result of an attentive read with
117
+
118
+ $$
119
+ f ( \mathbf { q } _ { i } , \mathbf { k } _ { j } ) = \exp \left( \frac { 1 } { \sqrt { d } } \langle \mathbf { q } _ { i } , \mathbf { k } _ { j } \rangle \right) , \qquad \mathbf { v } _ { i j } = \mathbf { v } _ { j } , \qquad Z = \sum _ { j } f ( \mathbf { q } _ { i } , \mathbf { k } _ { j } ) .
120
+ $$
121
+
122
+ We experiment with both softmax and sigmoid operations for computing the attention weights in our hyperbolic models. The motivation for considering sigmoid attention weights is that in some applications (e.g. visual question answering), it makes sense for the attention weights over different entities to not compete with each other.
123
+
124
+ # 4 HYPERBOLIC ATTENTION NETWORKS
125
+
126
+ In this section we show how to redefine the attentive read operation of Section 3.1 as an operation on points in hyperbolic space. The key for doing this is to define new matching and aggregation functions that operate on hyperbolic points and take advantage of the metric structure of the manifold they live on. However, in order to apply these operations inside of a network we first we need a way to interpret network activations as points in hyperbolic space.
127
+
128
+ We describe how to map an arbitrary point in $\mathbb { R } ^ { n }$ onto the hyperboloid, where we can interpret the result as a point in hyperbolic space. The choice of mapping is important since we must ensure that the rapid scaling behavior of hyperbolic space is maintained. Armed with an appropriate mapping we proceed to describe the hyperbolic matching and aggregation operations that operate on these points.
129
+
130
+ # 4.1 HYPERBOLIC NETWORK ACTIVATIONS
131
+
132
+ Mapping neural network activations into hyperbolic space requires care, since network activations might live anywhere in $\mathbb { R } ^ { n }$ , but hyperbolic structure can only be imposed on special subsets of Euclidean space (Krioukov et al., 2010). This means we need a way to map activations into an appropriate manifold. We choose to map into the hyperboloid, which is convenient since it is the only unbounded model of hyperbolic space in common use.
133
+
134
+ Pseudo-polar coordinates: In polar coordinates, we express an $n$ -dimensional point as a scalar radius, and $n { - } 1$ angles. Pseudo-polar coordinates consist of a radius $r$ , as in ordinary polar coordinates, and an $n$ -dimensional vector d representing the direction of the point from the origin. In the following discussion we assume that the coordinates are normalized, i.e. that $\lVert \mathbf { d } \rVert = 1$ .
135
+
136
+ If $( \mathbf { d } , r ) \in \mathbb { R } ^ { n + 1 }$ are the activations of a layer in the network, we map them onto the hyperbolid in $\mathbb { R } ^ { n + 1 }$ using $\pi ( ( \mathbf { d } , r ) ) = ( \sinh ( r ) \mathbf { d } , \cosh ( r ) )$ , which increases the scale by an exponential factor.
137
+
138
+ It is easily verified that the resulting point lies in the hyperboloid, and to verify that we maintain the appropriate scaling properties we compute the distance between a point and the origin using this projection:
139
+
140
+ $$
141
+ d _ { \mathbb { H } } ( \mathbf { 0 } , ( \mathbf { d } , r ) ) { = } \mathrm { a r c c o s h } ( - \langle \pi ( \mathbf { 0 } ) , \pi ( ( \mathbf { d } , r ) ) \rangle _ { M } ) { = } r ~ ,
142
+ $$
143
+
144
+ which shows that this projection preserves exponential growth in volume for a linear increase in $r$ . Without the exponential scaling factor the effective distance of $\pi ( ( \mathbf { d } , r ) )$ from the origin grows logarithmically in hyperbolic space.1
145
+
146
+ # 4.2 HYPERBOLIC ATTENTION
147
+
148
+ In this section, we show how to build an attentive read operation that operates on points in hyperbolic space. We consider how to exploit hyperbolic geometry in both the matching and the aggregation steps of the attentive read operation separately.
149
+
150
+ Hyperbolic matching: The most natural way to exploit hyperbolic geometry for matching pairs of points is to use the hyperbolic distance between them. Given a query $\mathbf { q } _ { i }$ and a key $\mathbf { k } _ { j }$ both lying in hyperbolic space we take,
151
+
152
+ $$
153
+ \alpha ( { \bf q } _ { i } , { \bf k } _ { j } ) = f ( - \beta d _ { \mathbb { H } } ( { \bf q } _ { i } , { \bf k } _ { j } ) - c ) ~ ,
154
+ $$
155
+
156
+ where $d _ { \mathbb { H } } ( \cdot , \cdot )$ is the hyperbolic distance, and $\beta$ and $c$ are parameters that can be set manually or learned along with the rest of the network. Having the bias parameter $c$ is useful because distances are non-negative. We take the function $f ( \cdot )$ to be either $\exp ( \cdot )$ , in which case we set the normalization appropriately to obtain a softmax, or sigmoid $( \cdot )$ .
157
+
158
+ ![](images/d84a53f0e9de207b75f14bab09afb67e7fbb20fbfc60af2b7bd7c6cda602effc.jpg)
159
+ Figure 2: The computational graph for the self-attention mechanism of the hyperbolic Transformer.
160
+
161
+ Hyperbolic aggregation: The path to extend the weighted midpoint to hyperbolic space is much less obvious, but fortunately such a extension already exists as the Einstein midpoint. The Einstein midpoint is straightforward to compute by adjusting the aggregation weights appropriately (see Ungar (2005, Definition 4.21))
162
+
163
+ $$
164
+ m _ { i } ( \{ \alpha _ { i j } \} _ { j } , \{ { \bf v } _ { i j } \} _ { j } ) = \sum _ { j } \left[ \frac { \alpha _ { i j } \gamma ( { \bf v } _ { i j } ) } { \sum _ { \ell } \alpha _ { i \ell } \gamma ( { \bf v } _ { i \ell } ) } \right] { \bf v } _ { i j } ,
165
+ $$
166
+
167
+ where the $\gamma ( \mathbf { v } _ { i j } )$ are the Lorentz factors, that are given by $\begin{array} { r } { \gamma ( \mathbf { v } _ { i j } ) = \frac { 1 } { \sqrt { 1 - \| \mathbf { v } _ { i j } \| ^ { 2 } } } } \end{array}$ The norm in the denominator of the Lorentz factor is the Euclidean norm of the Klein coordinates of the point $\mathbf { v } _ { i j }$ , and the correctness of Equation 3 also relies on the points $\mathbf { v } _ { i j }$ being represented by their Klein coordinates. Fortunately the various models of hyperbolic space in common use are all isomorphic, so we can work in an arbitrary hyperbolic model and simply project to and from the Klein model to execute midpoint computations, as discussed in Section 2.
168
+
169
+ The reason for using the Einstein midpoint for hyperbolic aggregation is that it obeys many of the properties that we expect from a weighted average in Euclidean space. In particular, translating the $\mathbf { v } _ { i j }$ ’s by a fixed distance in a common direction also translates the midpoint, and it is invariant to rotations of the constellation of points about the midpoint. The derivation of this operation is quite involved, and beyond the scope of this paper. We point the interested reader to Ungar (2005; 2008) for a full exposition.
170
+
171
+ # 5 EXPERIMENTS
172
+
173
+ We evaluate our models on synthetic and real-world tasks. Experiments where the underlying graph structure is explicitly known clearly show the benefits of using hyperbolic geometry as an inductive bias. At the same time, we show that real-world tasks within implicit graph structure such as a diagnostic visual question answering task (Johnson et al., 2017), and neural machine translation, equally benefit from relying on hyperbolic geometry. We provide experiments with feed-forward networks, the Transformer (Vaswani et al., 2017) and Relation Networks (Santoro et al., 2017) endowed with hyperbolic attention.
174
+
175
+ Our results show the effectiveness of our approach on diverse tasks and architectures. The benefit of our approach is particularly prominent in relatively small models, which supports our hypothesis that hyperbolic geometry induces compact representations and is therefore better able to represent complex functions in limited space.
176
+
177
+ # 5.1 MODELING SCALE-FREE GRAPHS
178
+
179
+ We use the algorithm of von Looz et al. (2015) to efficiently generate large scale-free graphs, and define two predictive tasks that test our model’s ability to represent different aspects of the structure of these networks. For both tasks in this section, we train Recursive Transformer (RT) models, using hyperbolic and Euclidean attention. A Recursive Transformer is identical to the original transformer, except that the weights of each self-attention layer are tied across depth. Simultaneously to our work,
180
+
181
+ ![](images/d237011714960f4e38f8f8d7ea965840240a47c2ae93d9d1bbc33197f838a908.jpg)
182
+ Figure 3: Left: Performance of the Recursive Transformer models on the Shortest Path Length Prediction task on graphs of various sizes. The black dashed line indicates chance performance. Center: Results on Link Prediction Tasks. Right: The histogram of the radiuses for a model trained on a graph with 100 and 400 nodes.
183
+
184
+ Dehghani et al. (2018) have proposed the same model as a generalization of the Transformer model and they referred to it as "Universal Transformers". We use models with 3 recursive self-attention layers, each of which has 4 heads with 4 units each for each of q, k, and v. This model has similarities to Graph Attention Networks (Velickovi ˇ c et al., 2017; Kool and Welling, 2018). ´
185
+
186
+ Link prediction (LP): Link prediction is a classical graph problem, where the task is to predict if an edge exists between two nodes in the graph. We experimented with graphs of 1000 and 1200 nodes and observed that the hyperbolic RT performs better than the Euclidean RT on both tasks. We report the results in Figure 3 (middle). In general, we observed that for graphs of size 1000 and 1200 the hyperbolic transformer performs better than the Euclidean transformer given the same amount of capacity.
187
+
188
+ Shortest path length prediction (SPLP): In this task, the goal is to predict the length of the shortest path between a pair of nodes in the graph. We treat this as a classification problem with a maximum pathlength of 25 which becomes naturally an unbalanced classification problem. We use rejection sampling during training to ensure the network is trained on an approximately uniform distribution of path lengths. At test time we sample paths uniformly at random, so the length distribution follows that of the underlying graphs. We report the results in Figure 3 (left). In Figure 3 (right), we visualize the distribution of the scale of the learned activations $\dot { \boldsymbol { r } }$ in the projection of Section 4.1) when training on graphs of size 100 and 400. We observe that our model tends to use larger scales for the larger graphs. As a baseline, we compare to the optimal constant predictor, which always predicts the most common expected path length. This baseline does quite well since the path length distribution on the test set is quite skewed.
189
+
190
+ For both tasks, we generate training data online. Each example is a new graph in which we query the connectivity of a randomly chosen pair of nodes. To make training easier, we use a curriculum, whereby we start training on smaller graphs and gradually increase the number of vertices towards the final number. More details on the dataset generation procedure and the curriculum scheme are found in the supplementary material.
191
+
192
+ # 5.2 SORT-OF-CLEVR
193
+
194
+ Since we expect hyperbolic attention to be particularly well suited to relational modelling, we investigate our models on the relational variant of the Sort-of-CLEVR dataset (Santoro et al., 2017). This dataset consists of simple visual scenes allowing us to solely focus on the relational aspect of the problem. Our models extend Relation Nets (RNs) with the attention mechanism in hyperbolic space (with the Euclidean or Einstein midpoint aggregation), but otherwise we follow the standard setup-up (Santoro et al., 2017). Our best method yields accuracy of $9 9 . 2 \%$ that significantly exceeds the accuracy of the original RN $( 9 6 \% )$ .
195
+
196
+ However, we are more interested in evaluating models on the low-capacity regime. Indeed, as Figure 4 (left) shows, the attention mechanism computed in the hyperbolic space improves around 20 percent points over the standard RN, where all the models use only two units of the relational MLP.
197
+
198
+ # 5.3 EXPERIMENTS ON CITESEER AND CORA
199
+
200
+ We use two of the standard graph transduction benchmark datasets, Citeseer and Cora (Sen et al., 2008) and used the same experimental protocol defined in Velickovi ˇ c et al. (2017). We use ´ graph attention
201
+
202
+ ![](images/425a0b24b227f503fb044f953043d558bef80a15982e7465eda5cd1a38dc7d38.jpg)
203
+ Figure 4: Left: Comparison of our models with low-capacity on the Sort-of-CLEVR dataset. The “EA” refers to the model that uses hyperbolic attention weights with Euclidean aggregation. Right: Performance of Relation Network extended by attention mechanism in either Euclidean or hyperbolic space on the CLEVR dataset.
204
+
205
+ <table><tr><td colspan="3">Transductive</td></tr><tr><td>Method</td><td>Cora</td><td>Citeseer</td></tr><tr><td>GCN (Kipf and Welling, 2016)</td><td>81.5%</td><td>70.3%</td></tr><tr><td>GAT (Velickovic et al., 2017)</td><td>83.0%±0.14</td><td>72.5%± 0.14</td></tr><tr><td>H-GAT</td><td>83.5% ± 0.12</td><td>72.9% ± 0.078</td></tr></table>
206
+
207
+ Table 1: Results on graph transduction tasks. We have used the same setup that is described in (Velickovi ˇ c et al., 2017). H-GAT refers to our graph attention network with hyperbolic attention ´ mechanism. Table shows the mean performance over 100 random seeds, along with $9 5 \%$ confidence intervals for this estimate.
208
+
209
+ networks (GAT) as our baseline and developed a hyperbolic version of GAT (H-GAT) by replacing the original attention mechanism with the hyperbolic attention using softmax.
210
+
211
+ We report our results in Table 1 and compare against the GAT with the Euclidean attention mechanism. We compute the standard deviations over 100 seeds and got improvements both on Citeseer and Cora datasets over the original GAT model. We show the visualizations of the learned hyperbolic embeddings of q and k in A.4.
212
+
213
+ # 5.4 CLEVR
214
+
215
+ We train our Relation Network with various attention mechanisms on the CLEVR dataset (Johnson et al., 2017). CLEVR is a synthetic visual question answering datasets consisting of 3D rendered objects like spheres, cubes, or cylinders of various size, material, or color. In contrast to other visual question answering datasets (Antol et al., 2015; Malinowski and Fritz, 2014; Zhu et al., 2016), the focus of CLEVR is on relational reasoning.
216
+
217
+ In our experiments, we closely follow the procedure established in (Santoro et al., 2017), both in terms of the model architecture, capacity, or the choice of the hyperparameters, and only differ by the attention mechanism (Euclidean or hyperbolic attention), or sigmoid activations.
218
+
219
+ Results are shown in Figure 4 (Right). For each model, we vary the capacity of the relational part of the network and report the resulting test accuracy. We find that hyperbolic attention with sigmoid consistently outperforms other models. Our RN with hyperbolic attention and sigmoid achieves ${ \bar { 9 } } 5 . 7 \%$ accuracy on the test set at the same capacity level as RN, whereas the latter reportedly achieves $9 5 . 5 \%$ accuracy (Santoro et al., 2017).
220
+
221
+ # 5.5 NEURAL MACHINE TRANSLATION
222
+
223
+ The Transformer (Vaswani et al., 2017) is a recently introduced state of the art model for neural machine translation that relies heavily on attention as its core operation. As described in Section 3.3,
224
+
225
+ <table><tr><td></td><td colspan="3">WMT 2014 En-De BLEU Scores</td></tr><tr><td></td><td>Tiny</td><td>Base</td><td>Big</td></tr><tr><td>Transformer (Vaswani et al. (2017))</td><td>1</td><td>27.3</td><td>28.4</td></tr><tr><td>Transformer (Latest)</td><td>17.3</td><td>27.1</td><td>-</td></tr><tr><td>Hyperbolic Transformer (+Sigmoid)</td><td>17.5</td><td>27.4</td><td>1</td></tr><tr><td>Hyperbolic Transformer(+Softmax,+Pseudo-Polar)</td><td>17.9</td><td>27.4</td><td>=</td></tr><tr><td>Hyperbolic Transformer (+Sigmoid, +Pseudo-Polar)</td><td>18.6</td><td>27.9</td><td>28.52</td></tr></table>
226
+
227
+ Table 2: Results for the WMT14 English to German translation task. Results are computed following the procedure in Vaswani et al. (2017). Citations indicate results taken from the literature. Latest is the result of training a new model using an unmodified version of the same code where we added hyperbolic attention (we have observed that the exact performance of the transformer on this task varies as the Tensor2tensor codebase evolves).
228
+
229
+ we have extended the Transformer2 by replacing its scaled dot-product attention operation with its hyperbolic counterpart. We evaluate all the models on the WMT14 En-De dataset (Bojar et al., 2014).
230
+
231
+ We train several versions of the Transformer model with hyperbolic attention. They use different coordinate systems (Cartesian or pseudo-polar), or different attention normalization functions (softmax or sigmoid). We consider three model sizes, referred to here as tiny, base and big. The tiny model has two layers of encoders and decoders, each with 128 units and 4 attention heads. The base model has 6 layers of encoders and decoders, each with 512 units and 8 attention heads. All hyperparameter configurations for the Euclidean versions of these models are available in the Tensor2tensor repository.
232
+
233
+ Results are shown in Table 2. We observe improvements over the Euclidean model by using hyperbolic attention, in particular when coupled with the sigmoid activation function for the attention weights. The improvements are more significant when the model capacity is restricted.
234
+
235
+ In addition, our best model (with sigmoid activation function and without pseudo-polar coordinates) using the big architecture from Tensor2tensor, achieves 28.52 BLEU score, whereas Vaswani et al. (2017) report 28.4 BLEU score with the original version of this model.3.
236
+
237
+ # 6 CONCLUSION
238
+
239
+ We have presented a novel way to impose the inductive biases from hyperbolic geometry on the activations of deep neural networks. Our proposed hyperbolic attention operation makes use of hyperbolic geometry in both the computation of the attention weights, and in the aggregation operation over values. We implemented our proposed hyperbolic attention mechanism in both Relation Networks and the Transformer and showed that we achieve improved performance on a diverse set of tasks. We have shown improved performance on link prediction and shortest path length prediction in scale free graphs, on two visual question answering datasets, real-world graph transduction tasks and finally on English to German machine translation. The gains are particularly prominent in relatively small models, which confirms our hypothesis that hyperbolic geometry induces more compact representations.
240
+
241
+ Yang and Rush (2016) have proposed to imposed the activations of the neural network to lie on a Lie-group manifold in the memory. Similarly as a future work, an interesting potential future direction is to use hyperbolic geometry as an inductive bias for the activation of neural networks in the memory.
242
+
243
+ # ACKNOWLEDGEMENTS
244
+
245
+ We would like to thank Neil Rabinowitz, Chris Dyer for constructive comments on earlier versions of this draft. We thank Yannis Asseal for helping us with the styles of the plots in this draft. We would like to thank Thomas Paine for the constructive comments.
246
+
247
+ REFERENCES
248
+ Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pages 2425–2433, 2015.
249
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2014.
250
+ Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Advances in neural information processing systems, pages 4502–4510, 2016.
251
+ Ondrej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Johannes Leveling, Christof Monz, Pavel Pecina, Matt Post, Herve Saint-Amand, Radu Soricut, Lucia Specia, and Aleš Tamchyna. Findings of the 2014 workshop on statistical machine translation. In Proceedings of the Ninth Workshop on Statistical Machine Translation, pages 12–58, Baltimore, Maryland, USA, June 2014. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/W/W14/W14-3302.
252
+ Gunnar A Borg. Psychophysical bases of perceived exertion. Med sci sports exerc, 14(5):377–381, 1982.
253
+ 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.
254
+ Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013.
255
+ Benjamin Paul Chamberlain, James Clough, and Marc Peter Deisenroth. Neural embeddings of graphs in hyperbolic space. arXiv preprint arXiv:1705.10359, 2017.
256
+ Hyunghoon Cho, Benjamin DeMeo, Jian Peng, and Bonnie Berger. Large-margin classification in hyperbolic space. arXiv preprint arXiv:1806.00437, 2018.
257
+ Aaron Clauset, Cosma Rohilla Shalizi, and Mark EJ Newman. Power-law distributions in empirical data. SIAM review, 51(4):661–703, 2009.
258
+ Michaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pages 3844–3852, 2016.
259
+ Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers. arXiv preprint arXiv:1807.03819, 2018.
260
+ Yan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pages 1087–1098, 2017.
261
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017.
262
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwinska, ´ Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016.
263
+ Birger Iversen. Hyperbolic geometry, volume 25. Cambridge University Press, 1992.
264
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Computer Vision and Pattern Recognition (CVPR), 2017 IEEE Conference on, pages 1988–1997. IEEE, 2017.
265
+ Thomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. arXiv preprint arXiv:1802.04687, 2018.
266
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
267
+ WWM Kool and M Welling. Attention solves your tsp. arXiv preprint arXiv:1803.08475, 2018.
268
+ Dmitri Krioukov, Fragkiskos Papadopoulos, Amin Vahdat, and Marián Boguná. Curvature and temperature of complex networks. Physical Review E, 80(3):035101, 2009.
269
+ Dmitri Krioukov, Fragkiskos Papadopoulos, Maksim Kitsak, Amin Vahdat, and Marián Boguná. Hyperbolic geometry of complex networks. Physical Review E, 82(3):036106, 2010.
270
+ Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493, 2015.
271
+ Henry W Lin and Max Tegmark. Critical behavior in physics and probabilistic formal languages. Entropy, 19 (7):299, 2017.
272
+ Nathan Linial, Avner Magen, and Michael E Saks. Low distortion euclidean embeddings of trees. Israel Journal of Mathematics, 106(1):339–348, 1998.
273
+ Mateusz Malinowski and Mario Fritz. A multi-world approach to question answering about real-world scenes based on uncertain input. In Advances in neural information processing systems, pages 1682–1690, 2014.
274
+ Brian J McGill, Brian J Enquist, Evan Weiher, and Mark Westoby. Rebuilding community ecology from functional traits. Trends in ecology & evolution, 21(4):178–185, 2006.
275
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
276
+ Mark EJ Newman. Power laws, pareto distributions and zipf’s law. Contemporary physics, 46(5):323–351, 2005.
277
+ Maximilian Nickel and Douwe Kiela. Learning continuous hierarchies in the lorentz model of hyperbolic geometry. arXiv preprint arXiv:1806.03417, 2018.
278
+ Maximillian Nickel and Douwe Kiela. Poincaré embeddings for learning hierarchical representations. In Advances in Neural Information Processing Systems, pages 6341–6350, 2017.
279
+ Jorg Ontrup and Helge Ritter. Hyperbolic self-organizing maps for semantic navigation. In Advances in neural information processing systems, pages 1417–1424, 2002.
280
+ Fragkiskos Papadopoulos, Dmitri Krioukov, Marián Boguñá, and Amin Vahdat. Greedy forwarding in dynamic scale-free networks embedded in hyperbolic metric spaces. In INFOCOM, 2010 Proceedings IEEE, pages 1–9. IEEE, 2010.
281
+ Steven T Piantadosi. Zipf’s word frequency law in natural language: A critical review and future directions. Psychonomic bulletin & review, 21(5):1112–1130, 2014.
282
+ David MW Powers. Applications and explanations of zipf’s law. In Proceedings of the joint conferences on new methods in language processing and computational natural language learning, pages 151–160. Association for Computational Linguistics, 1998.
283
+ Helge Ritter. Self-organizing maps on non-euclidean spaces. In Kohonen maps, pages 97–109. Elsevier, 1999.
284
+ Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pages 4974–4983, 2017.
285
+ Rik Sarkar. Low distortion delaunay embedding of trees in hyperbolic plane. In International Symposium on Graph Drawing, pages 355–366. Springer, 2011.
286
+ Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93, 2008.
287
+ Shuntaro Takahashi and Kumiko Tanaka-Ishii. Do neural nets learn statistical laws behind natural language? PloS one, 12(12):e0189326, 2017.
288
+ Yi Tay, Luu Anh Tuan, and Siu Cheung Hui. Hyperbolic representation learning for fast and efficient neural question answering. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, pages 583–591. ACM, 2018.
289
+ Abraham Albert Ungar. Analytic hyperbolic geometry: Mathematical foundations and applications. World Scientific, 2005.
290
+ Abraham Albert Ungar. A gyrovector space approach to hyperbolic geometry. Synthesis Lectures on Mathematics and Statistics, 1(1):1–194, 2008.
291
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 6000–6010, 2017.
292
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph ´ attention networks. arXiv preprint arXiv:1710.10903, 2017.
293
+ Ivan Vendrov, Ryan Kiros, Sanja Fidler, and Raquel Urtasun. Order-embeddings of images and language. In ICLR, 2016.
294
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pages 2692–2700, 2015.
295
+ Moritz von Looz, Henning Meyerhenke, and Roman Prutkin. Generating random hyperbolic graphs in subquadratic time. In International Symposium on Algorithms and Computation, pages 467–478. Springer, 2015.
296
+ Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. arXiv preprint arXiv:1711.07971, 2017.
297
+ Greg Yang and Alexander M. Rush. Lie access neural turing machine. arXiv preprint arXiv:1602.08671, 2016.
298
+ Yuke Zhu, Oliver Groth, Michael Bernstein, and Li Fei-Fei. Visual7w: Grounded question answering in images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4995–5004, 2016.
299
+
300
+ # A APPENDIX
301
+
302
+ # A.1 MORE ON MODELS OF HYPERBOLIC SPACE
303
+
304
+ In Figure 5, we illustrate the relationship between different models of hyperbolic space. There are one-to-one isometric transformations defined between each different models of the hyperbolic space. Hyperboloid model is unbounded, whereas Klein and Poincare models are bounded in a disk.
305
+
306
+ ![](images/41f4a49d70b83c38929ce3d8718b494f6d1c81c34f1cdb2969748fad366f5fdc.jpg)
307
+ Figure 5: Relationships between different representations of points used in the paper. Left: The relationship between pseudo-polar coordinates in $\mathbb { R } ^ { n }$ and the hyperboloid in $\mathbb { R } ^ { n + 1 }$ . Right: Projections relating the hyperboloid, Klein and Poincaré models of hyperbolic space.
308
+
309
+ # A.2 SCALE-FREE GRAPH GENERATION
310
+
311
+ We use the algorithm described by von Looz et al. (2015). In our experiments, we set the $\alpha$ to 0.95 and edge_radius_R_factor to 0.35. We will release our code both for generating and the operations in the hyperbolic space along with the camera-ready version of our paper.
312
+
313
+ # A.3 SCALE-FREE GRAPH CURRICULUM
314
+
315
+ Curriculum was an essential part of our training on the scale-free graph tasks. On LP and SPLP tasks, we use a curriculum where we extract the connected components from the graph by cutting the disk that the graphs generated on into slices by starting from a 30 degree angle and gradually increasing the size of the slice from the disk by increasing the angle during the training according to the number of lessons that are involved in the curriculum. This process is also visualized in Figure 6.
316
+
317
+ # A.4 VISUALIZATION OF QUERY AND KEY EMBEDDINGS ON CORA
318
+
319
+ In Figure 8 and 9, we visualize the embeddings of the query $( q )$ and the keys $( k )$ going into the hyperbolic matching function on the Poincare Ball model. In Figure 8, the embeddings of a model trained with dropout are bounded in a ball with smaller volume than the model trained without dropout. Also as clearly can be seen from the embedding visualizations k’s and q’s are clustered on different regions of the space.
320
+
321
+ # A.5 TRAVELLING SALESMAN PROBLEM (TSP)
322
+
323
+ We train an off-policy DQN-like agent (Mnih et al., 2015) with the HRT. The graphs for the TSP is generated following the procedure introduced in (Vinyals et al., 2015).
324
+
325
+ On this task, as an ablation we just compared the hyperbolic networks with and The results are provided in Figure 4 (Right) with and without implicit coordinates. Overall, we found that the hyperbolic transformer networks performs better when using the implicit polar coordinates.
326
+
327
+ # A.6 HYPERBOLIC RECURSIVE TRANSFORMER
328
+
329
+ As shown in Figure ??, the hyperbolic RT is an extension of transformer that ties the parameters of the self-attention layers. The self-attention layer gets the representations of the nodes of the graph coming from the encoder and the decoder decodes that representation from the recursive self-attention layers for the prediction.
330
+
331
+ ![](images/ffa7a6033a2daacb09745bba54dd38baace27eac981747e6caed41e2406d1ee5.jpg)
332
+ Figure 6: We show an example of a curriculum on the hyperbolic disk. In the first lesson, we take slices from the graph only between angle 0 and $\pi / 2$ . In the second lesson we will have to take the slice from 0 to $\pi$ .
333
+
334
+ ![](images/2b77d45c72ea00f743e01860b6db1df360e2ea5da868bd7487ae61a8b9f8440c.jpg)
335
+ Figure 7: An illustration of how trees can be represented in hyperbolic (left) and Euclidean geometry (right) in a cone. In hyperbolic space, as the tree grows the angles between the edges $\mathbf { \eta } ^ { ( \theta ) }$ can be preserved from one level to the next. In Euclidean space, since the number of nodes in the tree grows faster than the rate that the volume grows, angles may not be preserved ( $\boldsymbol { \theta }$ to $\alpha$ ). Lines in the left diagram are straight in hyperbolic space, but appear curved in this Euclidean diagram.
336
+
337
+ ![](images/50c796e2835fe35a0d7ba5a320b7318cd3265492d5aea900d09c92c80dc78571.jpg)
338
+ Figure 8: Hyperbolic embedding of $q$ (red) and $k$ (blue) in a Poincare Ball on Cora dataset. Each point corresponds to a node in the graph. This visualization is obtained from a model trained with dropout. The graph on the left is the embeddings going into the attention obtained from the first layer. The Figure on the right is for the embedding of the second layer.
339
+
340
+ ![](images/7cca480e2e9184bdad70ba87b2d79f8801c20858f96bcacc8f3a63211a2645a5.jpg)
341
+ Figure 9: Hyperbolic embeddings of q (red) and k (blue) in a Poincare Ball on Cora dataset. Each point corresponds to a node in the graph. This visualization is obtained from a model trained without dropout. The figure on the left shows the embeddings going into the attention obtained from the first layer. The figure on the right shows the embedding of the second layer.
342
+
343
+ ![](images/bf47e1dd9f14dc878172815ae0d1d82ca15f62ff5c6e5c5671e9d8ba8cdd5112.jpg)
344
+ Figure 10: The comparisons between a hyperbolic recursive transformer with and without pseudo-polar (denoted as $^ +$ spherical in the legend) coordinates on the travelling salesman problem.
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_content_list.json ADDED
@@ -0,0 +1,1559 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HYPERBOLIC ATTENTION NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 627,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Caglar Gulcehre, Misha Denil, Mateusz Malinowski, Ali Razavi, Razvan Pascanu, Karl Moritz Hermann, Peter Battaglia, Victor Bapst, David Raposo, Adam Santoro, Nando de Freitas ",
17
+ "bbox": [
18
+ 183,
19
+ 143,
20
+ 669,
21
+ 186
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "DeepMind ",
28
+ "bbox": [
29
+ 184,
30
+ 193,
31
+ 254,
32
+ 205
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 242,
43
+ 544,
44
+ 258
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recent approaches have successfully demonstrated the benefits of learning the parameters of shallow networks in hyperbolic space. We extend this line of work by imposing hyperbolic geometry on the embeddings used to compute the ubiquitous attention mechanisms for different neural networks architectures. By only changing the geometry of embedding of object representations, we can use the embedding space more efficiently without increasing the number of parameters of the model. Mainly as the number of objects grows exponentially for any semantic distance from the query, hyperbolic geometry –as opposed to Euclidean geometry– can encode those objects without having any interference. Our method shows improvements in generalization on neural machine translation on WMT’14 (English to German), learning on graphs (both on synthetic and real-world graph tasks) and visual question answering (CLEVR) tasks while keeping the neural representations compact. ",
51
+ "bbox": [
52
+ 233,
53
+ 271,
54
+ 766,
55
+ 438
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 460,
66
+ 336,
67
+ 477
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The focus of this work is to endow neural network representations with suitable geometry to capture fundamental properties of data, including hierarchy and clustering behaviour. These properties emerge in many real-world scenarios that approximately follow power-law distributions (Newman, 2005; Clauset et al., 2009). This includes a wide range of natural phenomena in physics (Lin and Tegmark, 2017), biology (McGill et al., 2006), and even human-made structures such as metabolic-mass relationships (Borg, 1982), social networks (Krioukov et al., 2010; Papadopoulos et al., 2010), and frequencies of words (Powers, 1998; Piantadosi, 2014; Takahashi and Tanaka-Ishii, 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 492,
77
+ 825,
78
+ 589
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Complex networks (Krioukov et al., 2010), which connect distinguishable heterogeneous sets of elements represented as nodes, provide us an intuitive way of understanding these structures. They will also serve as our starting point for introducing hyperbolic geometry, which is by itself difficult to visualize. Nodes in complex networks are referred to as heterogeneous, in the sense that they can be divided into sub-nodes which are themselves distinguishable from each other. The scale-free structure of natural data manifests itself as a power law distribution on the node degrees of the complex network that describes it. ",
85
+ "bbox": [
86
+ 174,
87
+ 595,
88
+ 825,
89
+ 679
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Complex networks can be approximated with tree-like structures, such as taxonomies and dendrograms, and as lucidly presented by Krioukov et al. (2010), hyperbolic spaces can be thought of as smooth trees abstracting the hierarchical organization of complex networks. Let us begin by recalling a simple property of $n$ -ary trees that will help us understand hyperbolic space and why hyperbolic geometry is well suited to model relational data. ",
96
+ "bbox": [
97
+ 174,
98
+ 686,
99
+ 825,
100
+ 756
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In an $n$ -ary tree, the number of nodes at distance $r$ from the root and the number of nodes at distance no more than $r$ from the root both grow as $n ^ { r }$ . Similarly, in a two-dimensional hyperbolic space with curvature $- \\zeta ^ { 2 } , \\zeta > 0$ , the circumference and area of a disc of radius $r$ grows as $2 \\pi { \\mathrm { s i n h } } ( \\zeta r )$ and $2 \\pi ( \\cosh ( \\zeta r ) - 1 )$ , respectively, both of are exponential in $r$ (Krioukov et al., 2009; 2010). The growth of volume in hyperbolic space should be contrasted with Euclidean space where the corresponding quantities expand polynomially, circumference as $2 \\pi r$ and area as $\\pi r ^ { 2 }$ . ",
107
+ "bbox": [
108
+ 174,
109
+ 763,
110
+ 825,
111
+ 847
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In the two-dimensional example of Figure 1, the expanding rings show examples at a fixed semantic distance from the central object (“pug”). The number of concepts grows quickly with semantic distance forcing each successive ring to be more crowded in order to maintain a fixed distance to the center. In contrast, the extra volume of hyperbolic spheres (depicted by reducing the size of the examples) allows all of the examples to remain well separated from their semantic neighbours. ",
118
+ "bbox": [
119
+ 176,
120
+ 854,
121
+ 825,
122
+ 924
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "image",
128
+ "img_path": "images/917015691c7380fd6981c92a366234722e36b16c14b1a9c068b3a31e7d42e0b8.jpg",
129
+ "image_caption": [
130
+ "Figure 1: An intuitive depiction of how images might be embedded in 2D. The location of the embeddings reflects the similarity between each image and that of a pug. Since the number of instances within a given semantic distance from the central object grows exponentially, the Euclidean space is not able to compactly represent such structure (left). In hyperbolic space (right) the volume grows exponentially, allowing for sufficient room to embed the images. For visualization, we have shrunk the images in this Euclidean diagram, a trick also used by Escher. "
131
+ ],
132
+ "image_footnote": [],
133
+ "bbox": [
134
+ 179,
135
+ 102,
136
+ 816,
137
+ 286
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Mechanically, the computed embeddings by a random network for objects at a given semantic distance might still seem epsilon distance away from each other (or crowded) as the ones obtained by using Euclidean geometry. However, enforcing hyperbolic geometry intuitively means that all operations with these embeddings take into account, the density in that particular region of the space. For example, any noise introduced in the system (e.g., in gradients) will also be corrected by the density. In contrast to working in Euclidean space, this means that the embeddings will be equally distinguishable regardless of the density. ",
144
+ "bbox": [
145
+ 174,
146
+ 417,
147
+ 825,
148
+ 516
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "The intimate connection between hyperbolic space and scale free networks (where node degree follows a power law) is made more precise in Krioukov et al. (2010). In particular, there it is shown that the heterogeneous topology implies hyperbolic geometry, and conversely hyperbolic geometry yields heterogeneous topology. Moreover, Sarkar (2011) describes a construction that embeds trees in two-dimensional hyperbolic space with arbitrarily low distortion, which is not possible in Euclidean space of any dimension (Linial et al., 1998). Following this exciting line of research, recently the machine learning community has gained interest in learning non-Euclidean embeddings directly from data (Nickel and Kiela, 2017; Chamberlain et al., 2017; Ritter, 1999; Ontrup and Ritter, 2002; Tay et al., 2018; Bronstein et al., 2017). ",
155
+ "bbox": [
156
+ 174,
157
+ 522,
158
+ 825,
159
+ 648
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "Fuelled by the desire of increasing the capacity of neural networks without increasing the number of trainable parameters so as to match the complexity of data, we propose hyperbolic attention networks. As opposed to previous approaches, which impose hyperbolic geometry on the parameters of shallow networks (Nickel and Kiela, 2017; Chamberlain et al., 2017), we impose hyperbolic geometry on the activations of deep networks. This allows us to exploit hyperbolic geometry to reason about embeddings produced by deep networks. We introduce efficient hyperbolic operations to express the popular, ubiquitous mechanism of attention (Bahdanau et al., 2014; Duan et al., 2017; Vaswani et al., 2017; Wang et al., 2017). Our method shows improvements in terms of generalization on neural machine translation (Vaswani et al., 2017), learning on graphs and visual question answering (Antol et al., 2015; Malinowski and Fritz, 2014; Johnson et al., 2017) tasks while keeping the representations compact. Simultaneously to our work, Cho et al. (2018) proposed a method to learn SVMs in the hyperboloid model of hyperbolic space, and Nickel and Kiela (2018) proposed a method to learn shallow embeddings of graphs in hyperbolic space by using the hyperboloid model. ",
166
+ "bbox": [
167
+ 173,
168
+ 655,
169
+ 825,
170
+ 835
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 MODELS OF HYPERBOLIC SPACE ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 176,
180
+ 861,
181
+ 472,
182
+ 877
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Hyperbolic space cannot be isometrically embedded into Euclidean space (Krioukov et al., 2010); however, there are several ways to endow different subsets of Euclidean space with a hyperbolic metric, leading to different models of hyperbolic space. This leads to the well known Poincaré ball model (Iversen, 1992) and many others. ",
189
+ "bbox": [
190
+ 174,
191
+ 895,
192
+ 823,
193
+ 924
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "",
200
+ "bbox": [
201
+ 173,
202
+ 103,
203
+ 823,
204
+ 132
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The different models of hyperbolic space are all essentially the same, but different models define different coordinate systems, which offer different affordances for computation. In this paper, we primarily make use of the hyperboloid (or Lorentz) model of the hyperbolic space. Since the hyperboloid is unbounded, it a convenient target for projecting into hyperbolic space. We also make use of the Klein model, because it admits an efficient expression for the hyperbolic aggregation operation we define in Section 4.2. ",
211
+ "bbox": [
212
+ 174,
213
+ 138,
214
+ 825,
215
+ 222
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "We briefly review the definitions of the hyperboloid and Klein models and the relationship between them, in just enough detail to support the presentation in the remainder of the paper. A more thorough treatment can be found in Iversen (1992). The geometric relationship between the Klein and hyperboloid models is diagrammed in Figure 5 of the supplementary material. ",
222
+ "bbox": [
223
+ 174,
224
+ 229,
225
+ 825,
226
+ 286
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Hyperboloid model: This model of $n$ dimensional hyperbolic space is a manifold in the $n + 1$ dimensional Minkowski space. The Minkowski space is $\\bar { \\mathbb { R } ^ { n + 1 } }$ endowed with the indefinite Minkowski bilinear form ",
233
+ "bbox": [
234
+ 174,
235
+ 291,
236
+ 825,
237
+ 334
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "equation",
243
+ "img_path": "images/830e29287a83032b45b8dce532c328d43d325323b159225f61185589a1c603cc.jpg",
244
+ "text": "$$\n\\langle \\mathbf { q } , \\mathbf { k } \\rangle _ { M } { = } \\sum _ { i = 1 } ^ { n } q _ { i } k _ { i } { - } q _ { n + 1 } k _ { n + 1 } .\n$$",
245
+ "text_format": "latex",
246
+ "bbox": [
247
+ 395,
248
+ 340,
249
+ 602,
250
+ 382
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "The hyperboloid model consists of the set ",
257
+ "bbox": [
258
+ 174,
259
+ 388,
260
+ 442,
261
+ 404
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "equation",
267
+ "img_path": "images/1826c194e5a12e7646a33b95d4498417d29156ec1cd91fab03d96712bacf6d42.jpg",
268
+ "text": "$$\n\\mathbb { H } ^ { n } = \\{ \\mathbf { x } \\in \\mathbb { R } ^ { n + 1 } | \\langle \\mathbf { x } , \\mathbf { x } \\rangle _ { M } = - 1 , x _ { n + 1 } > 0 \\}\n$$",
269
+ "text_format": "latex",
270
+ "bbox": [
271
+ 359,
272
+ 411,
273
+ 638,
274
+ 430
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "endowed with the distance metric $d _ { \\mathbb { H } } ( \\mathbf { q } , \\mathbf { k } ) = \\operatorname { a r c c o s h } ( - \\left. \\mathbf { q } , \\mathbf { k } \\right. _ { M } )$ ",
281
+ "bbox": [
282
+ 174,
283
+ 438,
284
+ 606,
285
+ 453
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "Klein model: This model of hyperbolic space is a subset of $\\mathbb { R } ^ { n }$ given by $\\mathbb { K } ^ { n } = \\left\\{ \\mathbf { x } \\in \\mathbb { R } ^ { n } | \\| \\mathbf { x } \\| < 1 \\right\\}$ , and a point in the Klein model can be obtained from the corresponding point in the hyperboloid model by projection ",
292
+ "bbox": [
293
+ 174,
294
+ 459,
295
+ 825,
296
+ 501
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "equation",
302
+ "img_path": "images/8d90cf38e9e5bcacc85e0ea0ca2af4facb9048c42c027f9bb05bb5ee0c2bd839.jpg",
303
+ "text": "$$\n\\pi _ { \\mathbb { H } \\mathbb { K } } ( \\mathbf { x } ) _ { i } = \\frac { x _ { i } } { x _ { n + 1 } } ,\n$$",
304
+ "text_format": "latex",
305
+ "bbox": [
306
+ 433,
307
+ 508,
308
+ 563,
309
+ 540
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "with its inverse given by ",
316
+ "bbox": [
317
+ 174,
318
+ 546,
319
+ 331,
320
+ 561
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "equation",
326
+ "img_path": "images/a0ace3a2b111caf64d7c380d74ba2bda70e0f8439d77de68291cc576ec2afd45.jpg",
327
+ "text": "$$\n\\pi _ { \\mathbb { K } \\to \\mathbb { H } } ( \\mathbf { x } ) = \\frac { 1 } { \\sqrt { 1 - \\left\\| \\mathbf { x } \\right\\| ^ { 2 } } } ( \\mathbf { x } , 1 )\n$$",
328
+ "text_format": "latex",
329
+ "bbox": [
330
+ 400,
331
+ 569,
332
+ 596,
333
+ 613
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Distance computations in the Klein model can be inherited from the hyperboloid, in the sense that $d _ { \\mathbb { K } } ( \\mathbf { q } , \\mathbf { k } ) = d _ { \\mathbb { H } } ( \\pi _ { \\mathbb { K } \\mathbb { H } } ( \\mathbf { k } ) , \\pi _ { \\mathbb { K } \\mathbb { H } } ( \\mathbf { q }$ ). ",
340
+ "bbox": [
341
+ 173,
342
+ 619,
343
+ 823,
344
+ 650
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "3 ATTENTION AS A BUILDING BLOCK FOR RELATIONAL REASONING ",
351
+ "text_level": 1,
352
+ "bbox": [
353
+ 176,
354
+ 671,
355
+ 743,
356
+ 686
357
+ ],
358
+ "page_idx": 2
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "Learning relations in a graph by using neural networks to model the interactions or relations has shown promising results in visual question answering (Santoro et al., 2017), modelling physical dynamics (Battaglia et al., 2016), and reasoning over graphs (Li et al., 2015; Vendrov et al., 2016; Kipf et al., 2018; Kool and Welling, 2018). Graph neural networks (Li et al., 2015; Battaglia et al., 2016) incorporate a message passing as part of the architecture in order to capture the intrinsic relations between entities. Graph convolution networks (Bruna et al., 2013; Kipf and Welling, 2016; Defferrard et al., 2016) use convolutions to efficiently learn a continuous-space representation for a graph of interest. ",
363
+ "bbox": [
364
+ 173,
365
+ 702,
366
+ 826,
367
+ 801
368
+ ],
369
+ "page_idx": 2
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "Many of these relational reasoning models can be expressed in terms of an attentive read operation. In the following subsection, we give a general description of the attentive read, and then discuss its specific instantiations in two relational reasoning models from the literature. ",
374
+ "bbox": [
375
+ 176,
376
+ 808,
377
+ 825,
378
+ 851
379
+ ],
380
+ "page_idx": 2
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "3.1 ATTENTIVE READ ",
385
+ "text_level": 1,
386
+ "bbox": [
387
+ 174,
388
+ 868,
389
+ 338,
390
+ 882
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "First introduced for translation in Bahdanau et al. (2014), attention has seen widespread use in deep learning, not only for applications in NLP but also for image processing (Wang et al., 2017) imitation ",
397
+ "bbox": [
398
+ 174,
399
+ 895,
400
+ 823,
401
+ 924
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "learning (Duan et al., 2017) and memory (Graves et al., 2016). The core computation is the attentive read operation, which has the following form: ",
408
+ "bbox": [
409
+ 173,
410
+ 103,
411
+ 823,
412
+ 132
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "equation",
418
+ "img_path": "images/4eb6bad891ea0bd373a60684229a133f95ebc39dcd1ad0acbd277fbc32c29ce7.jpg",
419
+ "text": "$$\n\\mathbf { r } ( \\mathbf { q } _ { i } , \\{ \\mathbf { k } _ { j } \\} _ { j } ) = \\sum _ { j } \\frac { f ( \\mathbf { q } _ { i } , \\mathbf { k } _ { j } ) } { Z } \\mathbf { v } _ { i j } .\n$$",
420
+ "text_format": "latex",
421
+ "bbox": [
422
+ 388,
423
+ 133,
424
+ 607,
425
+ 172
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Here $\\mathbf { q } _ { i }$ is a vector called the query and the $\\mathbf { k } _ { j }$ ’s are the keys for the memory locations being read from. The pairwise function $f ( \\cdot , \\cdot )$ computes a scalar matching score between a query and a key, and the vector $\\mathbf { v } _ { i j }$ is a value to be read from location $j$ by query $i$ . $Z > 0$ is a normalization factor for the full sum. Both $\\mathbf { v } _ { i j }$ and $Z$ are free to depend on arbitrary information, but we leave any dependencies here implicit. ",
432
+ "bbox": [
433
+ 173,
434
+ 172,
435
+ 826,
436
+ 231
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "It will be useful in the discussion to break this operation down into two parts. The first is the matching, which computes attention weights $\\alpha _ { i j } = f ( \\mathbf { q } _ { i } , \\mathbf { k } _ { j } )$ and the second is the aggregation, which takes a weighted average of the values using these weights, ",
443
+ "bbox": [
444
+ 173,
445
+ 237,
446
+ 826,
447
+ 279
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "equation",
453
+ "img_path": "images/1b9acc352566ba2226356ce2f4d03f6fa5fd21276a7c1014cf9f32ead7e0180d.jpg",
454
+ "text": "$$\nm _ { i } ( \\{ \\alpha _ { i j } \\} _ { j } , \\{ \\mathbf { v } _ { i j } \\} _ { j } ) = \\sum _ { j } \\frac { \\alpha _ { i j } } { Z } \\mathbf { v } _ { i j } .\n$$",
455
+ "text_format": "latex",
456
+ "bbox": [
457
+ 387,
458
+ 280,
459
+ 611,
460
+ 315
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Instantiating a particular attentive read operation involves specifying both $f ( \\cdot , \\cdot )$ and $\\mathbf { v } _ { i j }$ along with the normalization constant $Z$ . ",
467
+ "bbox": [
468
+ 174,
469
+ 316,
470
+ 825,
471
+ 345
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "If one performs an attentive read for each element of the set $j$ then the resulting operation corresponds in a natural way to message passing on a graph, where each node $i$ aggregates messages $\\{ \\mathbf { v } _ { i j } \\} _ { j }$ from its neighbours along edges of weight $f ( \\mathbf { q } _ { i } , \\mathbf { k } _ { j } ) / Z$ . ",
478
+ "bbox": [
479
+ 174,
480
+ 352,
481
+ 823,
482
+ 396
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "We can express many (although not all) message passing neural network architectures (Gilmer et al., 2017) using the attentive read operation of Equation 1 as a primitive. In the following sections we do this for two architectures and then discuss how we can replace both the matching and aggregation steps with versions that leverage hyperbolic geometry. ",
489
+ "bbox": [
490
+ 173,
491
+ 401,
492
+ 825,
493
+ 458
494
+ ],
495
+ "page_idx": 3
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "3.2 RELATION NETWORKS ",
500
+ "text_level": 1,
501
+ "bbox": [
502
+ 176,
503
+ 473,
504
+ 369,
505
+ 488
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "Relation Networks (RNs) (Santoro et al., 2017) are a neural network architecture designed for reasoning about the relationships between objects. An RN operates on a set of objects $O$ by applying a shared operator to each pair of objects $( \\mathbf { o } _ { i } , \\mathbf { o } _ { j } ) { \\in } O \\times O$ . The pairs can be augmented by a global information, and the result of each relational operation is passed through a further global transformation. ",
512
+ "bbox": [
513
+ 173,
514
+ 498,
515
+ 826,
516
+ 556
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Using the notation of the previous section, we can write the RN as ",
523
+ "bbox": [
524
+ 174,
525
+ 563,
526
+ 599,
527
+ 577
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/a5e92b5af8db86b5926ebb69a21d30a83957cd8eaacfe690d03af7f7d1e54e63.jpg",
534
+ "text": "$$\nR N ( O , \\mathbf { c } ) = h \\left( \\sum _ { i } \\mathbf { r } ( \\mathbf { o } _ { i } , \\{ \\mathbf { o } _ { j } \\} _ { j } ) ) \\right) ,\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 377,
538
+ 578,
539
+ 619,
540
+ 621
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "where $f ( \\mathbf { o } _ { i } , \\mathbf { o } _ { j } ) = 1$ , $\\mathbf { v } _ { i j } = g ( \\mathbf { o } _ { i } , \\mathbf { o } _ { j } , \\mathbf { c } )$ , $Z = 1$ . $h$ is the global transformation, $g$ is the local transformation and $\\mathbf { c }$ is the global context, as described in Santoro et al. (2017). We augment the basic RN to allow $f ( \\mathbf { o } _ { i } , \\mathbf { o } _ { j } ) \\in [ 0 , \\bar { 1 } ]$ to be a general learnable function. ",
547
+ "bbox": [
548
+ 174,
549
+ 622,
550
+ 825,
551
+ 665
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Interpreting the RN as learned message passing on a graph over objects, the attention weights take on the semantics of edge weights, where $\\alpha _ { i j }$ can be thought of as the probability of the (directed) edge $\\mathbf { o } _ { j } \\mathbf { o } _ { i }$ appearing in the underlying reasoning graph. ",
558
+ "bbox": [
559
+ 174,
560
+ 670,
561
+ 825,
562
+ 714
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "3.3 SCALED DOT-PRODUCT ATTENTION ",
569
+ "text_level": 1,
570
+ "bbox": [
571
+ 176,
572
+ 728,
573
+ 459,
574
+ 743
575
+ ],
576
+ "page_idx": 3
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "In the Transformer model of Vaswani et al. (2017) the authors define an all-to-all message passing operation on a set of vectors which they call scaled dot-product attention. In the language of Section 3.1 the scaled dot-product attention operation performs several attentive reads in parallel, one for each element of the input set. ",
581
+ "bbox": [
582
+ 173,
583
+ 753,
584
+ 825,
585
+ 811
586
+ ],
587
+ "page_idx": 3
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Vaswani et al. (2017) write scaled dot-product attention as $\\scriptstyle \\mathbf { R } = \\operatorname { s o f t m a x } \\left( { \\frac { \\mathbf { Q } \\mathbf { K } ^ { T } } { \\sqrt { d } } } \\right) \\mathbf { V }$ , where ${ \\bf Q } , { \\bf K }$ and $\\mathbf { V }$ are referred to as the queries, keys, and values respectively, and $d$ is the shared dimensionality of the queries and keys. Using lowercase letters to denote rows of the corresponding matrices, we can write each row of $\\mathbf { R }$ as the result of an attentive read with ",
592
+ "bbox": [
593
+ 173,
594
+ 818,
595
+ 825,
596
+ 882
597
+ ],
598
+ "page_idx": 3
599
+ },
600
+ {
601
+ "type": "equation",
602
+ "img_path": "images/b3be467b161f001b580f42b050a83a8fb17d0b3ddd756fd128754c565836fc42.jpg",
603
+ "text": "$$\nf ( \\mathbf { q } _ { i } , \\mathbf { k } _ { j } ) = \\exp \\left( \\frac { 1 } { \\sqrt { d } } \\langle \\mathbf { q } _ { i } , \\mathbf { k } _ { j } \\rangle \\right) , \\qquad \\mathbf { v } _ { i j } = \\mathbf { v } _ { j } , \\qquad Z = \\sum _ { j } f ( \\mathbf { q } _ { i } , \\mathbf { k } _ { j } ) .\n$$",
604
+ "text_format": "latex",
605
+ "bbox": [
606
+ 276,
607
+ 882,
608
+ 722,
609
+ 921
610
+ ],
611
+ "page_idx": 3
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "We experiment with both softmax and sigmoid operations for computing the attention weights in our hyperbolic models. The motivation for considering sigmoid attention weights is that in some applications (e.g. visual question answering), it makes sense for the attention weights over different entities to not compete with each other. ",
616
+ "bbox": [
617
+ 174,
618
+ 103,
619
+ 825,
620
+ 160
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "4 HYPERBOLIC ATTENTION NETWORKS ",
627
+ "text_level": 1,
628
+ "bbox": [
629
+ 174,
630
+ 180,
631
+ 514,
632
+ 195
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "In this section we show how to redefine the attentive read operation of Section 3.1 as an operation on points in hyperbolic space. The key for doing this is to define new matching and aggregation functions that operate on hyperbolic points and take advantage of the metric structure of the manifold they live on. However, in order to apply these operations inside of a network we first we need a way to interpret network activations as points in hyperbolic space. ",
639
+ "bbox": [
640
+ 174,
641
+ 210,
642
+ 825,
643
+ 281
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "We describe how to map an arbitrary point in $\\mathbb { R } ^ { n }$ onto the hyperboloid, where we can interpret the result as a point in hyperbolic space. The choice of mapping is important since we must ensure that the rapid scaling behavior of hyperbolic space is maintained. Armed with an appropriate mapping we proceed to describe the hyperbolic matching and aggregation operations that operate on these points. ",
650
+ "bbox": [
651
+ 174,
652
+ 287,
653
+ 825,
654
+ 344
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "4.1 HYPERBOLIC NETWORK ACTIVATIONS ",
661
+ "text_level": 1,
662
+ "bbox": [
663
+ 176,
664
+ 361,
665
+ 477,
666
+ 375
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "Mapping neural network activations into hyperbolic space requires care, since network activations might live anywhere in $\\mathbb { R } ^ { n }$ , but hyperbolic structure can only be imposed on special subsets of Euclidean space (Krioukov et al., 2010). This means we need a way to map activations into an appropriate manifold. We choose to map into the hyperboloid, which is convenient since it is the only unbounded model of hyperbolic space in common use. ",
673
+ "bbox": [
674
+ 174,
675
+ 386,
676
+ 825,
677
+ 457
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Pseudo-polar coordinates: In polar coordinates, we express an $n$ -dimensional point as a scalar radius, and $n { - } 1$ angles. Pseudo-polar coordinates consist of a radius $r$ , as in ordinary polar coordinates, and an $n$ -dimensional vector d representing the direction of the point from the origin. In the following discussion we assume that the coordinates are normalized, i.e. that $\\lVert \\mathbf { d } \\rVert = 1$ . ",
684
+ "bbox": [
685
+ 174,
686
+ 463,
687
+ 825,
688
+ 520
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "If $( \\mathbf { d } , r ) \\in \\mathbb { R } ^ { n + 1 }$ are the activations of a layer in the network, we map them onto the hyperbolid in $\\mathbb { R } ^ { n + 1 }$ using $\\pi ( ( \\mathbf { d } , r ) ) = ( \\sinh ( r ) \\mathbf { d } , \\cosh ( r ) )$ , which increases the scale by an exponential factor. ",
695
+ "bbox": [
696
+ 173,
697
+ 526,
698
+ 823,
699
+ 555
700
+ ],
701
+ "page_idx": 4
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "It is easily verified that the resulting point lies in the hyperboloid, and to verify that we maintain the appropriate scaling properties we compute the distance between a point and the origin using this projection: ",
706
+ "bbox": [
707
+ 174,
708
+ 560,
709
+ 823,
710
+ 590
711
+ ],
712
+ "page_idx": 4
713
+ },
714
+ {
715
+ "type": "equation",
716
+ "img_path": "images/21613ef5c9b784cab8a2118e55aec150ecdd51c2ae0d653767141eb0b8e3d3d3.jpg",
717
+ "text": "$$\nd _ { \\mathbb { H } } ( \\mathbf { 0 } , ( \\mathbf { d } , r ) ) { = } \\mathrm { a r c c o s h } ( - \\langle \\pi ( \\mathbf { 0 } ) , \\pi ( ( \\mathbf { d } , r ) ) \\rangle _ { M } ) { = } r ~ ,\n$$",
718
+ "text_format": "latex",
719
+ "bbox": [
720
+ 323,
721
+ 595,
722
+ 671,
723
+ 614
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "which shows that this projection preserves exponential growth in volume for a linear increase in $r$ . Without the exponential scaling factor the effective distance of $\\pi ( ( \\mathbf { d } , r ) )$ from the origin grows logarithmically in hyperbolic space.1 ",
730
+ "bbox": [
731
+ 173,
732
+ 626,
733
+ 826,
734
+ 669
735
+ ],
736
+ "page_idx": 4
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "4.2 HYPERBOLIC ATTENTION ",
741
+ "text_level": 1,
742
+ "bbox": [
743
+ 174,
744
+ 685,
745
+ 390,
746
+ 699
747
+ ],
748
+ "page_idx": 4
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "In this section, we show how to build an attentive read operation that operates on points in hyperbolic space. We consider how to exploit hyperbolic geometry in both the matching and the aggregation steps of the attentive read operation separately. ",
753
+ "bbox": [
754
+ 174,
755
+ 710,
756
+ 825,
757
+ 753
758
+ ],
759
+ "page_idx": 4
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "Hyperbolic matching: The most natural way to exploit hyperbolic geometry for matching pairs of points is to use the hyperbolic distance between them. Given a query $\\mathbf { q } _ { i }$ and a key $\\mathbf { k } _ { j }$ both lying in hyperbolic space we take, ",
764
+ "bbox": [
765
+ 174,
766
+ 760,
767
+ 825,
768
+ 803
769
+ ],
770
+ "page_idx": 4
771
+ },
772
+ {
773
+ "type": "equation",
774
+ "img_path": "images/8e140aecf7aa9cfcf7dd32021dbcbf994c2c3d1f6f7552680e5aed57736c311e.jpg",
775
+ "text": "$$\n\\alpha ( { \\bf q } _ { i } , { \\bf k } _ { j } ) = f ( - \\beta d _ { \\mathbb { H } } ( { \\bf q } _ { i } , { \\bf k } _ { j } ) - c ) ~ ,\n$$",
776
+ "text_format": "latex",
777
+ "bbox": [
778
+ 385,
779
+ 808,
780
+ 611,
781
+ 825
782
+ ],
783
+ "page_idx": 4
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "where $d _ { \\mathbb { H } } ( \\cdot , \\cdot )$ is the hyperbolic distance, and $\\beta$ and $c$ are parameters that can be set manually or learned along with the rest of the network. Having the bias parameter $c$ is useful because distances are non-negative. We take the function $f ( \\cdot )$ to be either $\\exp ( \\cdot )$ , in which case we set the normalization appropriately to obtain a softmax, or sigmoid $( \\cdot )$ . ",
788
+ "bbox": [
789
+ 174,
790
+ 830,
791
+ 825,
792
+ 887
793
+ ],
794
+ "page_idx": 4
795
+ },
796
+ {
797
+ "type": "image",
798
+ "img_path": "images/d84a53f0e9de207b75f14bab09afb67e7fbb20fbfc60af2b7bd7c6cda602effc.jpg",
799
+ "image_caption": [
800
+ "Figure 2: The computational graph for the self-attention mechanism of the hyperbolic Transformer. "
801
+ ],
802
+ "image_footnote": [],
803
+ "bbox": [
804
+ 218,
805
+ 98,
806
+ 779,
807
+ 275
808
+ ],
809
+ "page_idx": 5
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "Hyperbolic aggregation: The path to extend the weighted midpoint to hyperbolic space is much less obvious, but fortunately such a extension already exists as the Einstein midpoint. The Einstein midpoint is straightforward to compute by adjusting the aggregation weights appropriately (see Ungar (2005, Definition 4.21)) ",
814
+ "bbox": [
815
+ 173,
816
+ 325,
817
+ 825,
818
+ 382
819
+ ],
820
+ "page_idx": 5
821
+ },
822
+ {
823
+ "type": "equation",
824
+ "img_path": "images/92e51016081d03788e10528a1af56f5395a69da044370f7f0c10cd50dd497401.jpg",
825
+ "text": "$$\nm _ { i } ( \\{ \\alpha _ { i j } \\} _ { j } , \\{ { \\bf v } _ { i j } \\} _ { j } ) = \\sum _ { j } \\left[ \\frac { \\alpha _ { i j } \\gamma ( { \\bf v } _ { i j } ) } { \\sum _ { \\ell } \\alpha _ { i \\ell } \\gamma ( { \\bf v } _ { i \\ell } ) } \\right] { \\bf v } _ { i j } ,\n$$",
826
+ "text_format": "latex",
827
+ "bbox": [
828
+ 341,
829
+ 386,
830
+ 655,
831
+ 426
832
+ ],
833
+ "page_idx": 5
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "where the $\\gamma ( \\mathbf { v } _ { i j } )$ are the Lorentz factors, that are given by $\\begin{array} { r } { \\gamma ( \\mathbf { v } _ { i j } ) = \\frac { 1 } { \\sqrt { 1 - \\| \\mathbf { v } _ { i j } \\| ^ { 2 } } } } \\end{array}$ The norm in the denominator of the Lorentz factor is the Euclidean norm of the Klein coordinates of the point $\\mathbf { v } _ { i j }$ , and the correctness of Equation 3 also relies on the points $\\mathbf { v } _ { i j }$ being represented by their Klein coordinates. Fortunately the various models of hyperbolic space in common use are all isomorphic, so we can work in an arbitrary hyperbolic model and simply project to and from the Klein model to execute midpoint computations, as discussed in Section 2. ",
838
+ "bbox": [
839
+ 173,
840
+ 431,
841
+ 825,
842
+ 523
843
+ ],
844
+ "page_idx": 5
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "The reason for using the Einstein midpoint for hyperbolic aggregation is that it obeys many of the properties that we expect from a weighted average in Euclidean space. In particular, translating the $\\mathbf { v } _ { i j }$ ’s by a fixed distance in a common direction also translates the midpoint, and it is invariant to rotations of the constellation of points about the midpoint. The derivation of this operation is quite involved, and beyond the scope of this paper. We point the interested reader to Ungar (2005; 2008) for a full exposition. ",
849
+ "bbox": [
850
+ 174,
851
+ 530,
852
+ 825,
853
+ 601
854
+ ],
855
+ "page_idx": 5
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "5 EXPERIMENTS ",
860
+ "text_level": 1,
861
+ "bbox": [
862
+ 176,
863
+ 619,
864
+ 326,
865
+ 636
866
+ ],
867
+ "page_idx": 5
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "We evaluate our models on synthetic and real-world tasks. Experiments where the underlying graph structure is explicitly known clearly show the benefits of using hyperbolic geometry as an inductive bias. At the same time, we show that real-world tasks within implicit graph structure such as a diagnostic visual question answering task (Johnson et al., 2017), and neural machine translation, equally benefit from relying on hyperbolic geometry. We provide experiments with feed-forward networks, the Transformer (Vaswani et al., 2017) and Relation Networks (Santoro et al., 2017) endowed with hyperbolic attention. ",
872
+ "bbox": [
873
+ 173,
874
+ 650,
875
+ 825,
876
+ 748
877
+ ],
878
+ "page_idx": 5
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Our results show the effectiveness of our approach on diverse tasks and architectures. The benefit of our approach is particularly prominent in relatively small models, which supports our hypothesis that hyperbolic geometry induces compact representations and is therefore better able to represent complex functions in limited space. ",
883
+ "bbox": [
884
+ 174,
885
+ 756,
886
+ 825,
887
+ 811
888
+ ],
889
+ "page_idx": 5
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "5.1 MODELING SCALE-FREE GRAPHS ",
894
+ "text_level": 1,
895
+ "bbox": [
896
+ 176,
897
+ 829,
898
+ 442,
899
+ 842
900
+ ],
901
+ "page_idx": 5
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "We use the algorithm of von Looz et al. (2015) to efficiently generate large scale-free graphs, and define two predictive tasks that test our model’s ability to represent different aspects of the structure of these networks. For both tasks in this section, we train Recursive Transformer (RT) models, using hyperbolic and Euclidean attention. A Recursive Transformer is identical to the original transformer, except that the weights of each self-attention layer are tied across depth. Simultaneously to our work, ",
906
+ "bbox": [
907
+ 174,
908
+ 853,
909
+ 825,
910
+ 924
911
+ ],
912
+ "page_idx": 5
913
+ },
914
+ {
915
+ "type": "image",
916
+ "img_path": "images/d237011714960f4e38f8f8d7ea965840240a47c2ae93d9d1bbc33197f838a908.jpg",
917
+ "image_caption": [
918
+ "Figure 3: Left: Performance of the Recursive Transformer models on the Shortest Path Length Prediction task on graphs of various sizes. The black dashed line indicates chance performance. Center: Results on Link Prediction Tasks. Right: The histogram of the radiuses for a model trained on a graph with 100 and 400 nodes. "
919
+ ],
920
+ "image_footnote": [],
921
+ "bbox": [
922
+ 184,
923
+ 101,
924
+ 813,
925
+ 205
926
+ ],
927
+ "page_idx": 6
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Dehghani et al. (2018) have proposed the same model as a generalization of the Transformer model and they referred to it as \"Universal Transformers\". We use models with 3 recursive self-attention layers, each of which has 4 heads with 4 units each for each of q, k, and v. This model has similarities to Graph Attention Networks (Velickovi ˇ c et al., 2017; Kool and Welling, 2018). ´ ",
932
+ "bbox": [
933
+ 174,
934
+ 301,
935
+ 825,
936
+ 358
937
+ ],
938
+ "page_idx": 6
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Link prediction (LP): Link prediction is a classical graph problem, where the task is to predict if an edge exists between two nodes in the graph. We experimented with graphs of 1000 and 1200 nodes and observed that the hyperbolic RT performs better than the Euclidean RT on both tasks. We report the results in Figure 3 (middle). In general, we observed that for graphs of size 1000 and 1200 the hyperbolic transformer performs better than the Euclidean transformer given the same amount of capacity. ",
943
+ "bbox": [
944
+ 174,
945
+ 364,
946
+ 825,
947
+ 434
948
+ ],
949
+ "page_idx": 6
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Shortest path length prediction (SPLP): In this task, the goal is to predict the length of the shortest path between a pair of nodes in the graph. We treat this as a classification problem with a maximum pathlength of 25 which becomes naturally an unbalanced classification problem. We use rejection sampling during training to ensure the network is trained on an approximately uniform distribution of path lengths. At test time we sample paths uniformly at random, so the length distribution follows that of the underlying graphs. We report the results in Figure 3 (left). In Figure 3 (right), we visualize the distribution of the scale of the learned activations $\\dot { \\boldsymbol { r } }$ in the projection of Section 4.1) when training on graphs of size 100 and 400. We observe that our model tends to use larger scales for the larger graphs. As a baseline, we compare to the optimal constant predictor, which always predicts the most common expected path length. This baseline does quite well since the path length distribution on the test set is quite skewed. ",
954
+ "bbox": [
955
+ 173,
956
+ 441,
957
+ 826,
958
+ 580
959
+ ],
960
+ "page_idx": 6
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "For both tasks, we generate training data online. Each example is a new graph in which we query the connectivity of a randomly chosen pair of nodes. To make training easier, we use a curriculum, whereby we start training on smaller graphs and gradually increase the number of vertices towards the final number. More details on the dataset generation procedure and the curriculum scheme are found in the supplementary material. ",
965
+ "bbox": [
966
+ 174,
967
+ 588,
968
+ 825,
969
+ 657
970
+ ],
971
+ "page_idx": 6
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "5.2 SORT-OF-CLEVR ",
976
+ "text_level": 1,
977
+ "bbox": [
978
+ 176,
979
+ 676,
980
+ 339,
981
+ 690
982
+ ],
983
+ "page_idx": 6
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Since we expect hyperbolic attention to be particularly well suited to relational modelling, we investigate our models on the relational variant of the Sort-of-CLEVR dataset (Santoro et al., 2017). This dataset consists of simple visual scenes allowing us to solely focus on the relational aspect of the problem. Our models extend Relation Nets (RNs) with the attention mechanism in hyperbolic space (with the Euclidean or Einstein midpoint aggregation), but otherwise we follow the standard setup-up (Santoro et al., 2017). Our best method yields accuracy of $9 9 . 2 \\%$ that significantly exceeds the accuracy of the original RN $( 9 6 \\% )$ . ",
988
+ "bbox": [
989
+ 174,
990
+ 703,
991
+ 825,
992
+ 801
993
+ ],
994
+ "page_idx": 6
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "However, we are more interested in evaluating models on the low-capacity regime. Indeed, as Figure 4 (left) shows, the attention mechanism computed in the hyperbolic space improves around 20 percent points over the standard RN, where all the models use only two units of the relational MLP. ",
999
+ "bbox": [
1000
+ 176,
1001
+ 808,
1002
+ 825,
1003
+ 849
1004
+ ],
1005
+ "page_idx": 6
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "5.3 EXPERIMENTS ON CITESEER AND CORA",
1010
+ "text_level": 1,
1011
+ "bbox": [
1012
+ 176,
1013
+ 868,
1014
+ 490,
1015
+ 882
1016
+ ],
1017
+ "page_idx": 6
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "We use two of the standard graph transduction benchmark datasets, Citeseer and Cora (Sen et al., 2008) and used the same experimental protocol defined in Velickovi ˇ c et al. (2017). We use ´ graph attention ",
1022
+ "bbox": [
1023
+ 176,
1024
+ 895,
1025
+ 825,
1026
+ 924
1027
+ ],
1028
+ "page_idx": 6
1029
+ },
1030
+ {
1031
+ "type": "image",
1032
+ "img_path": "images/425a0b24b227f503fb044f953043d558bef80a15982e7465eda5cd1a38dc7d38.jpg",
1033
+ "image_caption": [
1034
+ "Figure 4: Left: Comparison of our models with low-capacity on the Sort-of-CLEVR dataset. The “EA” refers to the model that uses hyperbolic attention weights with Euclidean aggregation. Right: Performance of Relation Network extended by attention mechanism in either Euclidean or hyperbolic space on the CLEVR dataset. "
1035
+ ],
1036
+ "image_footnote": [],
1037
+ "bbox": [
1038
+ 179,
1039
+ 102,
1040
+ 816,
1041
+ 256
1042
+ ],
1043
+ "page_idx": 7
1044
+ },
1045
+ {
1046
+ "type": "table",
1047
+ "img_path": "images/c309b4ee96f47ec461872e7284d394ee98c9d7bfb49ee69b48abd2cb67d8ccba.jpg",
1048
+ "table_caption": [],
1049
+ "table_footnote": [],
1050
+ "table_body": "<table><tr><td colspan=\"3\">Transductive</td></tr><tr><td>Method</td><td>Cora</td><td>Citeseer</td></tr><tr><td>GCN (Kipf and Welling, 2016)</td><td>81.5%</td><td>70.3%</td></tr><tr><td>GAT (Velickovic et al., 2017)</td><td>83.0%±0.14</td><td>72.5%± 0.14</td></tr><tr><td>H-GAT</td><td>83.5% ± 0.12</td><td>72.9% ± 0.078</td></tr></table>",
1051
+ "bbox": [
1052
+ 279,
1053
+ 340,
1054
+ 717,
1055
+ 426
1056
+ ],
1057
+ "page_idx": 7
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Table 1: Results on graph transduction tasks. We have used the same setup that is described in (Velickovi ˇ c et al., 2017). H-GAT refers to our graph attention network with hyperbolic attention ´ mechanism. Table shows the mean performance over 100 random seeds, along with $9 5 \\%$ confidence intervals for this estimate. ",
1062
+ "bbox": [
1063
+ 176,
1064
+ 435,
1065
+ 821,
1066
+ 492
1067
+ ],
1068
+ "page_idx": 7
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "networks (GAT) as our baseline and developed a hyperbolic version of GAT (H-GAT) by replacing the original attention mechanism with the hyperbolic attention using softmax. ",
1073
+ "bbox": [
1074
+ 174,
1075
+ 520,
1076
+ 821,
1077
+ 549
1078
+ ],
1079
+ "page_idx": 7
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "We report our results in Table 1 and compare against the GAT with the Euclidean attention mechanism. We compute the standard deviations over 100 seeds and got improvements both on Citeseer and Cora datasets over the original GAT model. We show the visualizations of the learned hyperbolic embeddings of q and k in A.4. ",
1084
+ "bbox": [
1085
+ 174,
1086
+ 555,
1087
+ 825,
1088
+ 611
1089
+ ],
1090
+ "page_idx": 7
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "5.4 CLEVR ",
1095
+ "text_level": 1,
1096
+ "bbox": [
1097
+ 174,
1098
+ 628,
1099
+ 272,
1100
+ 643
1101
+ ],
1102
+ "page_idx": 7
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "We train our Relation Network with various attention mechanisms on the CLEVR dataset (Johnson et al., 2017). CLEVR is a synthetic visual question answering datasets consisting of 3D rendered objects like spheres, cubes, or cylinders of various size, material, or color. In contrast to other visual question answering datasets (Antol et al., 2015; Malinowski and Fritz, 2014; Zhu et al., 2016), the focus of CLEVR is on relational reasoning. ",
1107
+ "bbox": [
1108
+ 174,
1109
+ 655,
1110
+ 825,
1111
+ 726
1112
+ ],
1113
+ "page_idx": 7
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "In our experiments, we closely follow the procedure established in (Santoro et al., 2017), both in terms of the model architecture, capacity, or the choice of the hyperparameters, and only differ by the attention mechanism (Euclidean or hyperbolic attention), or sigmoid activations. ",
1118
+ "bbox": [
1119
+ 174,
1120
+ 732,
1121
+ 825,
1122
+ 775
1123
+ ],
1124
+ "page_idx": 7
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Results are shown in Figure 4 (Right). For each model, we vary the capacity of the relational part of the network and report the resulting test accuracy. We find that hyperbolic attention with sigmoid consistently outperforms other models. Our RN with hyperbolic attention and sigmoid achieves ${ \\bar { 9 } } 5 . 7 \\%$ accuracy on the test set at the same capacity level as RN, whereas the latter reportedly achieves $9 5 . 5 \\%$ accuracy (Santoro et al., 2017). ",
1129
+ "bbox": [
1130
+ 174,
1131
+ 781,
1132
+ 825,
1133
+ 852
1134
+ ],
1135
+ "page_idx": 7
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "5.5 NEURAL MACHINE TRANSLATION ",
1140
+ "text_level": 1,
1141
+ "bbox": [
1142
+ 176,
1143
+ 869,
1144
+ 446,
1145
+ 883
1146
+ ],
1147
+ "page_idx": 7
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "The Transformer (Vaswani et al., 2017) is a recently introduced state of the art model for neural machine translation that relies heavily on attention as its core operation. As described in Section 3.3, ",
1152
+ "bbox": [
1153
+ 176,
1154
+ 895,
1155
+ 825,
1156
+ 924
1157
+ ],
1158
+ "page_idx": 7
1159
+ },
1160
+ {
1161
+ "type": "table",
1162
+ "img_path": "images/842e242e999ee730ea8059f36574ec928f3845fe887a305011e6f3758e8f1296.jpg",
1163
+ "table_caption": [],
1164
+ "table_footnote": [],
1165
+ "table_body": "<table><tr><td></td><td colspan=\"3\">WMT 2014 En-De BLEU Scores</td></tr><tr><td></td><td>Tiny</td><td>Base</td><td>Big</td></tr><tr><td>Transformer (Vaswani et al. (2017))</td><td>1</td><td>27.3</td><td>28.4</td></tr><tr><td>Transformer (Latest)</td><td>17.3</td><td>27.1</td><td>-</td></tr><tr><td>Hyperbolic Transformer (+Sigmoid)</td><td>17.5</td><td>27.4</td><td>1</td></tr><tr><td>Hyperbolic Transformer(+Softmax,+Pseudo-Polar)</td><td>17.9</td><td>27.4</td><td>=</td></tr><tr><td>Hyperbolic Transformer (+Sigmoid, +Pseudo-Polar)</td><td>18.6</td><td>27.9</td><td>28.52</td></tr></table>",
1166
+ "bbox": [
1167
+ 200,
1168
+ 101,
1169
+ 797,
1170
+ 220
1171
+ ],
1172
+ "page_idx": 8
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Table 2: Results for the WMT14 English to German translation task. Results are computed following the procedure in Vaswani et al. (2017). Citations indicate results taken from the literature. Latest is the result of training a new model using an unmodified version of the same code where we added hyperbolic attention (we have observed that the exact performance of the transformer on this task varies as the Tensor2tensor codebase evolves). ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 229,
1180
+ 825,
1181
+ 300
1182
+ ],
1183
+ "page_idx": 8
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "we have extended the Transformer2 by replacing its scaled dot-product attention operation with its hyperbolic counterpart. We evaluate all the models on the WMT14 En-De dataset (Bojar et al., 2014). ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 325,
1191
+ 823,
1192
+ 353
1193
+ ],
1194
+ "page_idx": 8
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "We train several versions of the Transformer model with hyperbolic attention. They use different coordinate systems (Cartesian or pseudo-polar), or different attention normalization functions (softmax or sigmoid). We consider three model sizes, referred to here as tiny, base and big. The tiny model has two layers of encoders and decoders, each with 128 units and 4 attention heads. The base model has 6 layers of encoders and decoders, each with 512 units and 8 attention heads. All hyperparameter configurations for the Euclidean versions of these models are available in the Tensor2tensor repository. ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 359,
1202
+ 825,
1203
+ 444
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Results are shown in Table 2. We observe improvements over the Euclidean model by using hyperbolic attention, in particular when coupled with the sigmoid activation function for the attention weights. The improvements are more significant when the model capacity is restricted. ",
1210
+ "bbox": [
1211
+ 176,
1212
+ 450,
1213
+ 821,
1214
+ 492
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "In addition, our best model (with sigmoid activation function and without pseudo-polar coordinates) using the big architecture from Tensor2tensor, achieves 28.52 BLEU score, whereas Vaswani et al. (2017) report 28.4 BLEU score with the original version of this model.3. ",
1221
+ "bbox": [
1222
+ 174,
1223
+ 500,
1224
+ 826,
1225
+ 541
1226
+ ],
1227
+ "page_idx": 8
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "6 CONCLUSION ",
1232
+ "text_level": 1,
1233
+ "bbox": [
1234
+ 174,
1235
+ 568,
1236
+ 318,
1237
+ 583
1238
+ ],
1239
+ "page_idx": 8
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "We have presented a novel way to impose the inductive biases from hyperbolic geometry on the activations of deep neural networks. Our proposed hyperbolic attention operation makes use of hyperbolic geometry in both the computation of the attention weights, and in the aggregation operation over values. We implemented our proposed hyperbolic attention mechanism in both Relation Networks and the Transformer and showed that we achieve improved performance on a diverse set of tasks. We have shown improved performance on link prediction and shortest path length prediction in scale free graphs, on two visual question answering datasets, real-world graph transduction tasks and finally on English to German machine translation. The gains are particularly prominent in relatively small models, which confirms our hypothesis that hyperbolic geometry induces more compact representations. ",
1244
+ "bbox": [
1245
+ 174,
1246
+ 602,
1247
+ 825,
1248
+ 728
1249
+ ],
1250
+ "page_idx": 8
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Yang and Rush (2016) have proposed to imposed the activations of the neural network to lie on a Lie-group manifold in the memory. Similarly as a future work, an interesting potential future direction is to use hyperbolic geometry as an inductive bias for the activation of neural networks in the memory. ",
1255
+ "bbox": [
1256
+ 176,
1257
+ 734,
1258
+ 825,
1259
+ 776
1260
+ ],
1261
+ "page_idx": 8
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "ACKNOWLEDGEMENTS ",
1266
+ "text_level": 1,
1267
+ "bbox": [
1268
+ 176,
1269
+ 804,
1270
+ 367,
1271
+ 818
1272
+ ],
1273
+ "page_idx": 8
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "We would like to thank Neil Rabinowitz, Chris Dyer for constructive comments on earlier versions of this draft. We thank Yannis Asseal for helping us with the styles of the plots in this draft. We would like to thank Thomas Paine for the constructive comments. ",
1278
+ "bbox": [
1279
+ 176,
1280
+ 837,
1281
+ 823,
1282
+ 878
1283
+ ],
1284
+ "page_idx": 8
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "REFERENCES \nStanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pages 2425–2433, 2015. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2014. \nPeter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Advances in neural information processing systems, pages 4502–4510, 2016. \nOndrej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Johannes Leveling, Christof Monz, Pavel Pecina, Matt Post, Herve Saint-Amand, Radu Soricut, Lucia Specia, and Aleš Tamchyna. Findings of the 2014 workshop on statistical machine translation. In Proceedings of the Ninth Workshop on Statistical Machine Translation, pages 12–58, Baltimore, Maryland, USA, June 2014. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/W/W14/W14-3302. \nGunnar A Borg. Psychophysical bases of perceived exertion. Med sci sports exerc, 14(5):377–381, 1982. \nMichael 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. \nJoan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013. \nBenjamin Paul Chamberlain, James Clough, and Marc Peter Deisenroth. Neural embeddings of graphs in hyperbolic space. arXiv preprint arXiv:1705.10359, 2017. \nHyunghoon Cho, Benjamin DeMeo, Jian Peng, and Bonnie Berger. Large-margin classification in hyperbolic space. arXiv preprint arXiv:1806.00437, 2018. \nAaron Clauset, Cosma Rohilla Shalizi, and Mark EJ Newman. Power-law distributions in empirical data. SIAM review, 51(4):661–703, 2009. \nMichaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pages 3844–3852, 2016. \nMostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers. arXiv preprint arXiv:1807.03819, 2018. \nYan Duan, Marcin Andrychowicz, Bradly Stadie, OpenAI Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. In Advances in neural information processing systems, pages 1087–1098, 2017. \nJustin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017. \nAlex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwinska, ´ Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626):471, 2016. \nBirger Iversen. Hyperbolic geometry, volume 25. Cambridge University Press, 1992. \nJustin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Computer Vision and Pattern Recognition (CVPR), 2017 IEEE Conference on, pages 1988–1997. IEEE, 2017. \nThomas Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard Zemel. Neural relational inference for interacting systems. arXiv preprint arXiv:1802.04687, 2018. \nThomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. \nWWM Kool and M Welling. Attention solves your tsp. arXiv preprint arXiv:1803.08475, 2018. \nDmitri Krioukov, Fragkiskos Papadopoulos, Amin Vahdat, and Marián Boguná. Curvature and temperature of complex networks. Physical Review E, 80(3):035101, 2009. \nDmitri Krioukov, Fragkiskos Papadopoulos, Maksim Kitsak, Amin Vahdat, and Marián Boguná. Hyperbolic geometry of complex networks. Physical Review E, 82(3):036106, 2010. \nYujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493, 2015. \nHenry W Lin and Max Tegmark. Critical behavior in physics and probabilistic formal languages. Entropy, 19 (7):299, 2017. \nNathan Linial, Avner Magen, and Michael E Saks. Low distortion euclidean embeddings of trees. Israel Journal of Mathematics, 106(1):339–348, 1998. \nMateusz Malinowski and Mario Fritz. A multi-world approach to question answering about real-world scenes based on uncertain input. In Advances in neural information processing systems, pages 1682–1690, 2014. \nBrian J McGill, Brian J Enquist, Evan Weiher, and Mark Westoby. Rebuilding community ecology from functional traits. Trends in ecology & evolution, 21(4):178–185, 2006. \nVolodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015. \nMark EJ Newman. Power laws, pareto distributions and zipf’s law. Contemporary physics, 46(5):323–351, 2005. \nMaximilian Nickel and Douwe Kiela. Learning continuous hierarchies in the lorentz model of hyperbolic geometry. arXiv preprint arXiv:1806.03417, 2018. \nMaximillian Nickel and Douwe Kiela. Poincaré embeddings for learning hierarchical representations. In Advances in Neural Information Processing Systems, pages 6341–6350, 2017. \nJorg Ontrup and Helge Ritter. Hyperbolic self-organizing maps for semantic navigation. In Advances in neural information processing systems, pages 1417–1424, 2002. \nFragkiskos Papadopoulos, Dmitri Krioukov, Marián Boguñá, and Amin Vahdat. Greedy forwarding in dynamic scale-free networks embedded in hyperbolic metric spaces. In INFOCOM, 2010 Proceedings IEEE, pages 1–9. IEEE, 2010. \nSteven T Piantadosi. Zipf’s word frequency law in natural language: A critical review and future directions. Psychonomic bulletin & review, 21(5):1112–1130, 2014. \nDavid MW Powers. Applications and explanations of zipf’s law. In Proceedings of the joint conferences on new methods in language processing and computational natural language learning, pages 151–160. Association for Computational Linguistics, 1998. \nHelge Ritter. Self-organizing maps on non-euclidean spaces. In Kohonen maps, pages 97–109. Elsevier, 1999. \nAdam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in neural information processing systems, pages 4974–4983, 2017. \nRik Sarkar. Low distortion delaunay embedding of trees in hyperbolic plane. In International Symposium on Graph Drawing, pages 355–366. Springer, 2011. \nPrithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93, 2008. \nShuntaro Takahashi and Kumiko Tanaka-Ishii. Do neural nets learn statistical laws behind natural language? PloS one, 12(12):e0189326, 2017. \nYi Tay, Luu Anh Tuan, and Siu Cheung Hui. Hyperbolic representation learning for fast and efficient neural question answering. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, pages 583–591. ACM, 2018. \nAbraham Albert Ungar. Analytic hyperbolic geometry: Mathematical foundations and applications. World Scientific, 2005. \nAbraham Albert Ungar. A gyrovector space approach to hyperbolic geometry. Synthesis Lectures on Mathematics and Statistics, 1(1):1–194, 2008. \nAshish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 6000–6010, 2017. \nPetar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph ´ attention networks. arXiv preprint arXiv:1710.10903, 2017. \nIvan Vendrov, Ryan Kiros, Sanja Fidler, and Raquel Urtasun. Order-embeddings of images and language. In ICLR, 2016. \nOriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Advances in Neural Information Processing Systems, pages 2692–2700, 2015. \nMoritz von Looz, Henning Meyerhenke, and Roman Prutkin. Generating random hyperbolic graphs in subquadratic time. In International Symposium on Algorithms and Computation, pages 467–478. Springer, 2015. \nXiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. arXiv preprint arXiv:1711.07971, 2017. \nGreg Yang and Alexander M. Rush. Lie access neural turing machine. arXiv preprint arXiv:1602.08671, 2016. \nYuke Zhu, Oliver Groth, Michael Bernstein, and Li Fei-Fei. Visual7w: Grounded question answering in images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4995–5004, 2016. ",
1289
+ "bbox": [
1290
+ 171,
1291
+ 84,
1292
+ 828,
1293
+ 925
1294
+ ],
1295
+ "page_idx": 9
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "",
1300
+ "bbox": [
1301
+ 171,
1302
+ 99,
1303
+ 828,
1304
+ 830
1305
+ ],
1306
+ "page_idx": 10
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "A APPENDIX ",
1311
+ "text_level": 1,
1312
+ "bbox": [
1313
+ 176,
1314
+ 102,
1315
+ 297,
1316
+ 117
1317
+ ],
1318
+ "page_idx": 11
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "A.1 MORE ON MODELS OF HYPERBOLIC SPACE ",
1323
+ "text_level": 1,
1324
+ "bbox": [
1325
+ 174,
1326
+ 133,
1327
+ 509,
1328
+ 147
1329
+ ],
1330
+ "page_idx": 11
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "In Figure 5, we illustrate the relationship between different models of hyperbolic space. There are one-to-one isometric transformations defined between each different models of the hyperbolic space. Hyperboloid model is unbounded, whereas Klein and Poincare models are bounded in a disk. ",
1335
+ "bbox": [
1336
+ 174,
1337
+ 157,
1338
+ 823,
1339
+ 196
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "image",
1345
+ "img_path": "images/41f4a49d70b83c38929ce3d8718b494f6d1c81c34f1cdb2969748fad366f5fdc.jpg",
1346
+ "image_caption": [
1347
+ "Figure 5: Relationships between different representations of points used in the paper. Left: The relationship between pseudo-polar coordinates in $\\mathbb { R } ^ { n }$ and the hyperboloid in $\\mathbb { R } ^ { n + 1 }$ . Right: Projections relating the hyperboloid, Klein and Poincaré models of hyperbolic space. "
1348
+ ],
1349
+ "image_footnote": [],
1350
+ "bbox": [
1351
+ 186,
1352
+ 208,
1353
+ 812,
1354
+ 390
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "A.2 SCALE-FREE GRAPH GENERATION ",
1361
+ "text_level": 1,
1362
+ "bbox": [
1363
+ 178,
1364
+ 469,
1365
+ 452,
1366
+ 483
1367
+ ],
1368
+ "page_idx": 11
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "We use the algorithm described by von Looz et al. (2015). In our experiments, we set the $\\alpha$ to 0.95 and edge_radius_R_factor to 0.35. We will release our code both for generating and the operations in the hyperbolic space along with the camera-ready version of our paper. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 494,
1376
+ 825,
1377
+ 532
1378
+ ],
1379
+ "page_idx": 11
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "A.3 SCALE-FREE GRAPH CURRICULUM ",
1384
+ "text_level": 1,
1385
+ "bbox": [
1386
+ 176,
1387
+ 549,
1388
+ 457,
1389
+ 563
1390
+ ],
1391
+ "page_idx": 11
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Curriculum was an essential part of our training on the scale-free graph tasks. On LP and SPLP tasks, we use a curriculum where we extract the connected components from the graph by cutting the disk that the graphs generated on into slices by starting from a 30 degree angle and gradually increasing the size of the slice from the disk by increasing the angle during the training according to the number of lessons that are involved in the curriculum. This process is also visualized in Figure 6. ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 574,
1399
+ 825,
1400
+ 637
1401
+ ],
1402
+ "page_idx": 11
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "A.4 VISUALIZATION OF QUERY AND KEY EMBEDDINGS ON CORA ",
1407
+ "text_level": 1,
1408
+ "bbox": [
1409
+ 183,
1410
+ 654,
1411
+ 637,
1412
+ 667
1413
+ ],
1414
+ "page_idx": 11
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "In Figure 8 and 9, we visualize the embeddings of the query $( q )$ and the keys $( k )$ going into the hyperbolic matching function on the Poincare Ball model. In Figure 8, the embeddings of a model trained with dropout are bounded in a ball with smaller volume than the model trained without dropout. Also as clearly can be seen from the embedding visualizations k’s and q’s are clustered on different regions of the space. ",
1419
+ "bbox": [
1420
+ 174,
1421
+ 679,
1422
+ 825,
1423
+ 729
1424
+ ],
1425
+ "page_idx": 11
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "A.5 TRAVELLING SALESMAN PROBLEM (TSP) ",
1430
+ "text_level": 1,
1431
+ "bbox": [
1432
+ 174,
1433
+ 746,
1434
+ 506,
1435
+ 760
1436
+ ],
1437
+ "page_idx": 11
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "We train an off-policy DQN-like agent (Mnih et al., 2015) with the HRT. The graphs for the TSP is generated following the procedure introduced in (Vinyals et al., 2015). ",
1442
+ "bbox": [
1443
+ 176,
1444
+ 771,
1445
+ 823,
1446
+ 797
1447
+ ],
1448
+ "page_idx": 11
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "On this task, as an ablation we just compared the hyperbolic networks with and The results are provided in Figure 4 (Right) with and without implicit coordinates. Overall, we found that the hyperbolic transformer networks performs better when using the implicit polar coordinates. ",
1453
+ "bbox": [
1454
+ 174,
1455
+ 804,
1456
+ 823,
1457
+ 843
1458
+ ],
1459
+ "page_idx": 11
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "A.6 HYPERBOLIC RECURSIVE TRANSFORMER ",
1464
+ "text_level": 1,
1465
+ "bbox": [
1466
+ 174,
1467
+ 859,
1468
+ 506,
1469
+ 873
1470
+ ],
1471
+ "page_idx": 11
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "As shown in Figure ??, the hyperbolic RT is an extension of transformer that ties the parameters of the self-attention layers. The self-attention layer gets the representations of the nodes of the graph coming from the encoder and the decoder decodes that representation from the recursive self-attention layers for the prediction. ",
1476
+ "bbox": [
1477
+ 176,
1478
+ 883,
1479
+ 823,
1480
+ 922
1481
+ ],
1482
+ "page_idx": 11
1483
+ },
1484
+ {
1485
+ "type": "image",
1486
+ "img_path": "images/ffa7a6033a2daacb09745bba54dd38baace27eac981747e6caed41e2406d1ee5.jpg",
1487
+ "image_caption": [
1488
+ "Figure 6: We show an example of a curriculum on the hyperbolic disk. In the first lesson, we take slices from the graph only between angle 0 and $\\pi / 2$ . In the second lesson we will have to take the slice from 0 to $\\pi$ . "
1489
+ ],
1490
+ "image_footnote": [],
1491
+ "bbox": [
1492
+ 240,
1493
+ 117,
1494
+ 761,
1495
+ 588
1496
+ ],
1497
+ "page_idx": 12
1498
+ },
1499
+ {
1500
+ "type": "image",
1501
+ "img_path": "images/2b77d45c72ea00f743e01860b6db1df360e2ea5da868bd7487ae61a8b9f8440c.jpg",
1502
+ "image_caption": [
1503
+ "Figure 7: An illustration of how trees can be represented in hyperbolic (left) and Euclidean geometry (right) in a cone. In hyperbolic space, as the tree grows the angles between the edges $\\mathbf { \\eta } ^ { ( \\theta ) }$ can be preserved from one level to the next. In Euclidean space, since the number of nodes in the tree grows faster than the rate that the volume grows, angles may not be preserved ( $\\boldsymbol { \\theta }$ to $\\alpha$ ). Lines in the left diagram are straight in hyperbolic space, but appear curved in this Euclidean diagram. "
1504
+ ],
1505
+ "image_footnote": [],
1506
+ "bbox": [
1507
+ 189,
1508
+ 724,
1509
+ 812,
1510
+ 804
1511
+ ],
1512
+ "page_idx": 12
1513
+ },
1514
+ {
1515
+ "type": "image",
1516
+ "img_path": "images/50c796e2835fe35a0d7ba5a320b7318cd3265492d5aea900d09c92c80dc78571.jpg",
1517
+ "image_caption": [
1518
+ "Figure 8: Hyperbolic embedding of $q$ (red) and $k$ (blue) in a Poincare Ball on Cora dataset. Each point corresponds to a node in the graph. This visualization is obtained from a model trained with dropout. The graph on the left is the embeddings going into the attention obtained from the first layer. The Figure on the right is for the embedding of the second layer. "
1519
+ ],
1520
+ "image_footnote": [],
1521
+ "bbox": [
1522
+ 253,
1523
+ 172,
1524
+ 748,
1525
+ 375
1526
+ ],
1527
+ "page_idx": 13
1528
+ },
1529
+ {
1530
+ "type": "image",
1531
+ "img_path": "images/7cca480e2e9184bdad70ba87b2d79f8801c20858f96bcacc8f3a63211a2645a5.jpg",
1532
+ "image_caption": [
1533
+ "Figure 9: Hyperbolic embeddings of q (red) and k (blue) in a Poincare Ball on Cora dataset. Each point corresponds to a node in the graph. This visualization is obtained from a model trained without dropout. The figure on the left shows the embeddings going into the attention obtained from the first layer. The figure on the right shows the embedding of the second layer. "
1534
+ ],
1535
+ "image_footnote": [],
1536
+ "bbox": [
1537
+ 253,
1538
+ 585,
1539
+ 746,
1540
+ 787
1541
+ ],
1542
+ "page_idx": 13
1543
+ },
1544
+ {
1545
+ "type": "image",
1546
+ "img_path": "images/bf47e1dd9f14dc878172815ae0d1d82ca15f62ff5c6e5c5671e9d8ba8cdd5112.jpg",
1547
+ "image_caption": [
1548
+ "Figure 10: The comparisons between a hyperbolic recursive transformer with and without pseudo-polar (denoted as $^ +$ spherical in the legend) coordinates on the travelling salesman problem. "
1549
+ ],
1550
+ "image_footnote": [],
1551
+ "bbox": [
1552
+ 272,
1553
+ 367,
1554
+ 710,
1555
+ 631
1556
+ ],
1557
+ "page_idx": 14
1558
+ }
1559
+ ]
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJxHsjRqFQ/rJxHsjRqFQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/xYGNO86OWDH/xYGNO86OWDH.md ADDED
@@ -0,0 +1,421 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ISOTROPY IN THE CONTEXTUAL EMBEDDING SPACE: CLUSTERS AND MANIFOLDS
2
+
3
+ Xingyu Cai, Jiaji Huang, Yuchen Bian, Kenneth Church Baidu Research, 1195 Bordeaux Dr, Sunnyvale, CA 94089, USA {xingyucai,huangjiaji,yuchenbian,kennethchurch}@baidu.com
4
+
5
+ # ABSTRACT
6
+
7
+ The geometric properties of contextual embedding spaces for deep language models such as BERT and ERNIE, have attracted considerable attention in recent years. Investigations on the contextual embeddings demonstrate a strong anisotropic space such that most of the vectors fall within a narrow cone, leading to high cosine similarities. It is surprising that these LMs are as successful as they are, given that most of their embedding vectors are as similar to one another as they are. In this paper, we argue that the isotropy indeed exists in the space, from a different but more constructive perspective. We identify isolated clusters and low dimensional manifolds in the contextual embedding space, and introduce tools to both qualitatively and quantitatively analyze them. We hope the study in this paper could provide insights towards a better understanding of the deep language models.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The polysemous English word “bank” has two common senses: 1. the money sense, a place that people save or borrow money; 2. the river sense, a slope of earth that prevents the flooding. In modern usage, the two senses are very different from one another, though interestingly, both senses share similar etymologies (and both can be traced back to the same word in Proto-Germanic). In the static embedding, multiple instances of the same word (e.g. “bank”) will be represented using the same vector. On the contrary, the contextual embedding assigns different vectors to different instances of the same word, depending on the context. Historically, static embedding models like Word2vec (Mikolov et al., 2013b) and GloVe (Pennington et al., 2014), predated contextual embedding models such as ELMo (Peters et al., 2018), GPT (Radford et al., 2018), BERT (Devlin et al., 2018) and ERNIE (Sun et al., 2019). Much of the literature on language modeling has moved to contextual embeddings recently, largely because of their superior performance on the downstreaming tasks.
12
+
13
+ # 1.1 RELATED WORK
14
+
15
+ The static embeddings are often found to be easier to interpret. For example, the Word2Vec and GloVe papers discuss adding and subtracting vectors, such as: $\operatorname { v e c } ( \operatorname { k i n g } ) - \operatorname { v e c } ( \operatorname* { m a n } ) + \operatorname { v e c } ( \operatorname { w o m e n } ) =$ vec(queen). Inspired by this relationship, researchers started to explore geometric properties of static embedding spaces. For example, Mu & Viswanath (2018) proposed a very counter-intuitive method that removes the top principle components (the dominating directions in the transformed embedding space), which surprisingly improved the word representations. Rather than completely discarding the principle components, Liu et al. (2019) proposed to use a technique called Conceptor Negation, to softly suppress transformed dimensions with larger variances. Both approaches, simply removing certain principle components as well as Conceptor Negation, produce significant improvements over vanilla embeddings obtained by static language models. In Huang et al. (2020), the authors studied how to effectively transform static word embeddings from one language to another.
16
+
17
+ Unfortunately, the strong illustrative representation like the king-queen example above, is no longer obvious in a general contextual embedding space. Arguing that syntax structure indeed exists in the contextual embeddings, Hewitt & Manning (2019) proposed a structural probe to identify the syntax trees buried in the space, and found the evidence of implicit syntax tree in BERT and ELMo. The advantage of contextual embedding over the static counterpart, mainly come from its capability to assign different vectors to the same word, depending on the word sense in the context. Researchers in (Reif et al., 2019) found such a geometric representation of word senses in the BERT model. These papers reveal the existence of linguistic features embedded implicitly in the contextual vector spaces.
18
+
19
+ The geometric properties of contextual embedding space are also investigated and compared with the static embedding space. Mimno & Thompson (2017) found anisotropy when negative sampling is used. In (Ethayarajh, 2019), the authors characterize how vectors are distributed in the contextual space. They found that most vectors occupy in a relatively narrow cone in the space. Pairs of vectors within this cone have large cosines. This phenomenon can be found in most state-of-the-art contextual embedding models. In (Gao et al., 2019), the authors named this phenomenon ”representation degeneration”, and attempted to mitigate the problem by introducing a regularization term that minimizes cosine similarities between vectors. In a very recent work, Demeter et al. (2020) suggest there is a structure weakness in the space that leads to bias when using soft-max, as is common with deep language models.
20
+
21
+ # 1.2 MOTIVATION AND CONTRIBUTIONS
22
+
23
+ Isotropy often makes the space more effectively utilized and more robust to perturbations (no extreme directions that lead to high condition number). It is counter-intuitive and not clear why those contextual embedding models perform remarkably well on many tasks given their anisotropic embeddings bring all the vectors close together, hard to distinguish one from another. On one hand, it is widely believed that contextual embeddings encode the relevant linguistic information (e.g. (Reif et al., 2019)), but on the other hand, it is also widely believed that the contextual space is anisotropic that representations become degenerated (e.g. (Mimno & Thompson, 2017), (Gao et al., 2019), (Ethayarajh, 2019)). These motivate us to find a reasonable understanding that bridges this gap.
24
+
25
+ This paper is similar in spirit to (Mu & Viswanath, 2018), but different in three aspects. First, we generalize their work on traditional static embeddings to more modern contextual embeddings. Second, we introduce clustering methods to isolate the space, whereas they used PCA to remove dominant dimensions (that tend to dominate the variance). Finally, we identify low dimensional manifolds in the space, and introduce an alternative approach (LID) to characterize local subspaces.
26
+
27
+ Key Contributions: This paper takes a deeper look into the contextual embedding spaces of popular pre-trained models. It identifies the following facts that were misunderstood or not known before: 1) We find isotropy within clusters in the contextual embedding space, in contrast to previous reports of anisotropy (caused by misleading isolated clusters). We introduce clustering and center shifting to reveal the isotropy, and show more consistent layer-wise behavior across models. 2) We find a Swiss-Roll manifold in GPT/GPT2 embeddings, but not in BERT/DistilBERT embeddings. The manifold is related to word frequency, suggesting a difference in how models evolve as they see more data. We use approximate Local Intrinsic Dimension (LID) to characterize the manifold, and find contextual embedding models, including all BERT, GPT families and ELMo, often have small LIDs. The small LIDs can be viewed as the local anisotropy of the space. The code for this paper could be found at https://github.com/TideDancer/IsotropyContxt.
28
+
29
+ # 2 ANALYSIS SETTINGS
30
+
31
+ # 2.1 MODELS AND DATASETS
32
+
33
+ In this paper, we consider popular pre-trained contextual embedding models, including BERT, DistilBERT (Sanh et al., 2019) (or denoted as D-BERT in the rest of the paper), GPT, GPT2 (Radford et al., 2019) and ELMo. For the BERT and GPT families, we perform our evaluations on the pretrained uncased base models from Huggingface (https://huggingface.co/transformers/index.html#). The pre-trained ELMo model is from AllenNLP (https://docs.allennlp.org/v1.0.0/). BERT and DBERT are non-causal models because of their attention mechanism, where tokens can attend to any token in the input, regardless of their relative positions. In contrast, GPT and GPT2 are causal models because attention is limited to the tokens previously seen in the input.
34
+
35
+ Different models achieve contextual embedding in different ways. For instance, BERT adds positional embeddings to the token embeddings, while ELMo performs vector concatenation. Most models start with an initial layer that maps token ids to vectors. This paper is not concerned with that lookup table layer, and only focuses on the layers after that. The base BERT, GPT and GPT2 models have 12 layers of interest, indexed from 0 to 11, while D-BERT has 6 layers and ELMo has two.
36
+
37
+ We use Penn Tree Bank (PTB) (Marcus et al., 1993) and WikiText-2 (Merity et al., 2016) datasets. The PTB has 0.88 million words and WikiText-2 has 2 million. Both of them are the standard datasets for language models. In the rest of the paper, we report on PTB since we see similar results with both datasets. Details on WikiText-2 analysis could be found in Appendix.
38
+
39
+ # 2.2 NOTATION
40
+
41
+ For each position in a corpus, we have a word. Words are converted into tokens, using the appropriate tokenizer for the model. Tokenizers could split some words into subwords, therefore, the number of obtained tokens (denoted as $n$ ) could be more than number of words in the corpus. PTB, for example, contains 0.88 million words, but has $n = 1 . 2$ million tokens, when processed by BERT’s tokenizer. Let $V$ be the vocabulary, a set of distinct tokens. For any element in the vocabulary $V$ , we call it a type. For example, BERT has a vocabulary of roughly 30, 000 types. We may mix using “word” and “type” for ease of reading. We denote the $i$ -th type in $V$ as $t _ { i }$ . Let $\Phi ( t _ { i } ) = \{ \phi _ { 1 } ( t _ { i } ) , \phi _ { 2 } \bar { ( } t _ { i } ) , . . . \}$ be the set of all embedding instances of $t _ { i }$ (note that different contexts in the corpus yield different embeddings of $t _ { i }$ ). By construction, $\begin{array} { r } { \sum _ { t } | \Phi ( t ) | = n } \end{array}$ . We define the inter-type cosine similarity as
42
+
43
+ $$
44
+ S _ { \mathrm { i n t e r } } \triangleq \mathbb { E } _ { i \neq j } \left[ \cos { ( \phi ( t _ { i } ) , \phi ( t _ { j } ) ) } \right]
45
+ $$
46
+
47
+ where $\phi ( t _ { i } )$ is one random sample from $\Phi ( t _ { i } )$ , and the same for $\phi ( t _ { j } ) \in \Phi ( t _ { j } )$ . The expectation is taken over all pairs of different types. Similarly, we define the intra-type cosine similarity as
48
+
49
+ $$
50
+ S _ { \mathrm { i n t r a } } \triangleq \mathbb { E } _ { i } \left[ \mathbb { E } _ { k \neq l } \left[ \cos { ( \phi _ { k } ( t _ { i } ) , \phi _ { l } ( t _ { i } ) ) } \right] \right]
51
+ $$
52
+
53
+ where the inner expectation is over different embeddings $\phi ( t _ { i } )$ for the same type $t _ { i }$ , and the outer expectation is over all types. Both $S _ { \mathrm { i n t e r } }$ and $S _ { \mathrm { i n t r a } }$ take values between $- 1$ and 1. Note that for i.i.d. Gaussian random samples $x , y$ , the expected cosine similarity $\mathbb { E } [ \cos ( x , y ) ] = 0$ . A cosine value closer to 0 often indicates strong isotropy.
54
+
55
+ Clearly, the inter-type metric describes the similarity between different types, where the intra-type one measures similarity between same type’s embedding instances. Our definitions of $S _ { \mathrm { i n t e r } }$ and $S _ { \mathrm { i n t r a } }$ are similar to the measures used in Ethayarajh (2019), but at the corpus level. Note that some types are more frequent than others, especially under a Zipfian distribution (Piantadosi, 2014), and therefore, the size of $\Phi ( t )$ varies dramatically with the frequency of type $t$ .
56
+
57
+ # 2.3 AN INITIAL LOOK AT ANISOTROPY
58
+
59
+ Inspired by Ethayarajh (2019), we follow their procedure and take a first look at the anisotropy identified by Mimno & Thompson (2017) and Ethayarajh (2019), in the contextual embedding space.
60
+
61
+ ![](images/450b687e2c311c12b27e0cf64c746ae2ed7551681cbf37cfbd957ea7f3951a75.jpg)
62
+ Figure 1: $S _ { \mathrm { i n t e r } }$ (left) and $S _ { \mathrm { i n t r a } }$ (right). The $S _ { \mathrm { i n t e r } }$ increases as layer goes deeper, especially for GPT2’s last layer. The $S _ { \mathrm { i n t r a } }$ are generally high. This means arbitrary vectors have high cosine similarities.
63
+
64
+ Figure 1 shows strong anisotropy effects in a number of models. These findings are consistent with Ethayarajh (2019), though we use slightly different metrics. The plots show expected cosine $S _ { \mathrm { i n t e r } }$ and $S _ { \mathrm { { i n t r a . } } }$ ) as a function of layer. For efficiency, we approximate $S _ { \mathrm { i n t r a } }$ by imposing a limit of 1,000 samples for frequent types, $t$ , if $| \Phi ( t ) | > 1 0 0 0$ . From the figure we can see the following:
65
+
66
+ • Both $S _ { \mathrm { i n t e r } }$ and $S _ { \mathrm { i n t r a } }$ are high $( \gg 0 )$ ) across almost all the layers and all the models. In particular, the same as reported in Ethayarajh (2019), GPT2 is relatively more anisotropic. $S _ { \mathrm { { i n t e r } } }$ tends to increase with layer, in contrast with $S _ { \mathrm { i n t r a } }$ which in general decreases but with fluctuations. This means that embeddings for different types are moving closer to one another at deeper layers, while embeddings for the same type’s instances are spreading away.
67
+
68
+ • The last layer is often special. Note that the last layer has smaller cosines than the second last in most cases, with the notable exception of GPT2.
69
+
70
+ In summary, we observe large cosines (across layers/models), especially for the GPT2 model. When cosines are close to 1, embeddings lie in a subspace defined by a very narrow cone (Ethayarajh, 2019). One might expect embeddings to be more effective if they took advantage of a larger subspace. Are these models missing an opportunity to have the benefits from isotropy (Mu & Viswanath, 2018)? We answer this question in the following sections.
71
+
72
+ # 3 CLUSTERS IN THE EMBEDDING SPACE
73
+
74
+ # 3.1 EFFECTIVE DIMENSIONS
75
+
76
+ There are $m = 7 6 8$ embedding dimensions for BERT, D-BERT, GPT and GPT2, and $m = 1 0 2 4$ dimensions for ELMo. We perform PCA to reduce the number of dimensions from $m$ down to $k$ . For each layer of each model, we start with the data matrix, $M \in \mathcal { R } ^ { n \times m }$ , where $n$ is the number of input tokens $\ R = 1 . 2 M$ for PTB dataset), and $m$ is the original number of dimensions. After PCA, we end up with a smaller matrix, $\hat { M } \in \mathcal { R } ^ { n \times k }$ . Let the explained variance ratio be: $\begin{array} { r } { r _ { k } = \sum _ { i = 0 } ^ { k - 1 } \sigma _ { i } / \sum _ { i = 0 } ^ { m - 1 } \sigma _ { i } } \end{array}$ , where $\sigma _ { i }$ is the $i$ -th largest eigen value of $M$ ’s covariance matrix. In this way, we define the $\epsilon$ -effective-dimension to be: $d ( \epsilon ) \triangleq \arg \operatorname* { m i n } _ { k } r _ { k } \geq \epsilon .$ . For example, $d ( 0 . 8 ) = 2$ means that 2 dimensions capture $8 0 \%$ of the variance. There is a direct connection between $d$ and isotropy: the larger $d$ often implies more isotropy, as data spreads in multiple dimensions.
77
+
78
+ Table 1: The effective dimension $d ( 0 . 8 )$
79
+
80
+ <table><tr><td>Layer</td><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td></tr><tr><td>BERT</td><td>262</td><td>273</td><td>271</td><td>273</td><td>276</td><td>283</td><td>288</td><td>282</td><td>282</td><td>282</td><td>283</td><td>270</td></tr><tr><td>D-BERT</td><td>244</td><td>226</td><td>232</td><td>227</td><td>217</td><td>175</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GPT</td><td>265</td><td>141</td><td>65</td><td>76</td><td>173</td><td>210</td><td>205</td><td>217</td><td>221</td><td>253</td><td>269</td><td>307</td></tr><tr><td>GPT2</td><td>114</td><td>73</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>8</td><td>26</td><td>66</td><td>116</td><td>1</td></tr><tr><td>ELMo</td><td>455</td><td>367</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
81
+
82
+ Table 1 reports $d ( 0 . 8 )$ for different layers and models. It is surprising that GPT2 has so few effective dimensions, especially, $d ( 0 . 8 ) = 1$ for layer 2 to 6. The surprisingly small effective dimensionality is another way of saying that GPT2 vectors fall in a narrow cone, and consequently, their pairwise cosines are large. If all the vectors lie on a 1-D line, all the cosines would be 1, and there would be hardly any model capacity. These observations motivate us to look deeper into the embedding space.
83
+
84
+ # 3.2 ISOLATED CLUSTERS
85
+
86
+ ![](images/117dcd6ffe45834dcc6afef290d48b527046ad06bbf9802243931025414ad887.jpg)
87
+ Figure 2: Isolated clusters exist in the embedding spaces for all the models. Here we only show a few representative middle layers for each model. The full visualization can be found in supplementary.
88
+
89
+ By performing PCA to project the original data into a 3-D view, we can visualize GPT2’s layer 6’s embedding space in Figure 2a. The three axes refer to the first three principle components, which account for $8 2 . 8 \%$ of the total variance. All the explained variance ratio will be reported throughout the rest of the paper. The axes values are raw coordinates after PCA. In Figure 2a, there are two disconnected islands that are far away from each other. Note that the first dimension coordinate values spans from 0 to 3000, significantly wider than the other 2 dimensions. In fact this first principle dimension dominates the total variance. The left island is bigger than the one on the right. The fact that the two islands are so well separated by the first principle component suggests that classifying points by island membership accounts for much of the variance. This two-island property is exhibited in layers 2 through 10 for GPT2. The two islands merge into a single large cluster in the last layer.
90
+
91
+ We observe similar clustering behavior for all the models across all the layers, though the separations are less distinct, as illustrated in other panels of Figure 2. This is also consistent with Table 1, the less separation, the higher $d ( \epsilon )$ values. For GPT2, we had hoped to find that some types are associated with one cluster and other types are associated with the other cluster, but that is not verified in our experiments. Please refer to the supplementary for visualizations of all layers in all the models.
92
+
93
+ # 3.3 CLUSTERING
94
+
95
+ Previous literature estimated the space isotropy on pairs of arbitrary tokens, which could reside in two disconnected clusters. But given that the variance is dominated by distances between clusters, such estimation would be biased by the inter-cluster distances. It is more meaningful to consider a per-cluster investigation rather than a global estimate.
96
+
97
+ We start by performing clustering on the embedding space. There are many methods for clustering. We chose K-Means (https://scikit-learn.org/stable/modules/classes.html#), because it is reasonably fast for large inputs $n = 1 . 2$ million vectors) in high $m \geq 7 6 8 )$ dimensions. DBSCAN algorithm (Ester et al., 1996) could be an alternative as it is density based, but only works on small dataset. We use the Silhouette method (Rousseeuw, 1987) to determine the number of clusters, $| C |$ . After running $\mathrm { K }$ -means, each point $p$ (one of the $n$ vectors in $M$ ) is assigned to one of $C$ clusters. For a data point $p$ assigned to the cluster $c \in C$ , calculate the following:
98
+
99
+ $$
100
+ a _ { p } = \frac { 1 } { | c | - 1 } \sum _ { q \in c , p \neq q } \operatorname { d i s t } ( p , q ) ; b _ { p } = \operatorname * { m i n } _ { \tilde { c } \neq c } \sum _ { q \in \tilde { c } } \operatorname { d i s t } ( p , q ) ; s _ { p } = \left\{ \frac { b _ { p } - a _ { p } } { \operatorname { m a x } ( a _ { p } , b _ { p } ) } , \mathrm { ~ i f ~ } | c | > 1 \right\} .
101
+ $$
102
+
103
+ where $a _ { p }$ is the mean distance between $p$ and other points in the same cluster; $b _ { p }$ is the minimum (min over $\tilde { c }$ ) mean distance between $p$ to points of another cluster $\tilde { c }$ ; and $s _ { p }$ is the Silhouette score for point $p \in c$ . The $s _ { p }$ takes value $\in [ - 1 , 1 ]$ . The higher $s _ { p }$ , the better assignment of $p$ to its cluster. Better choices of $| C |$ would lead to better values of $s _ { p }$ (and better clustering). We define the MaximumMean-Silhouette (MMS) score for the embedding space as: $\mathbf { M M S } { \stackrel { \Delta } { = } } \operatorname* { m a x } _ { \mathbf { d i f f e r e n t } } \left| C \right| { \mathbb { E } } _ { p } \left[ s _ { p } \right]$ , where the maximum is over different $| C |$ values for K-Means. Since it is not feasible to evaluate all choices of $| C | \in [ 1 , n ]$ , we consider $| \dot { C } | \in [ 1 , 1 5 ]$ . The expectation $\mathbb { E } _ { p } [ s _ { p } ]$ (the mean Silhouette score), is estimated from 20, 000 sample vectors in $M$ . We select the best $| C |$ that yields MMS.
104
+
105
+ The MMS values provide a systematic way to describe how the clusters are distributed in the space. If the clusters are very distinct and splitted, this yields a higher MMS. On the other hand, if clusters are overlapping, blurring together, the MMS score will be low. Note that if $\mathrm { M M S } < 0 . 1$ , we set $| C |$ to be 1, as the Silhouette score does not show significant evidence of more clusters.
106
+
107
+ Table 2: Number of clusters $| C |$
108
+
109
+ <table><tr><td>Layer</td><td>BERT</td><td>D-BERT</td><td>GPT</td><td>GPT2</td><td>ELMo</td></tr><tr><td>0</td><td>6</td><td>7</td><td>1</td><td>2</td><td>2</td></tr><tr><td>12345678</td><td>6</td><td>10</td><td></td><td>2</td><td>2</td></tr><tr><td></td><td>443</td><td>15</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>14</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>10</td><td></td><td></td><td></td></tr><tr><td></td><td>14</td><td>2</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>622П</td><td></td><td></td><td></td><td></td></tr><tr><td>9</td><td></td><td></td><td>222222221</td><td></td><td></td></tr><tr><td>10</td><td>2</td><td></td><td>1</td><td>222222222</td><td></td></tr><tr><td>11</td><td>9</td><td></td><td>1</td><td>2</td><td></td></tr></table>
110
+
111
+ ![](images/af709fea2fbae351086b0ebcd74fb05e81a67ed08634b0943ae81b32cff89fb6.jpg)
112
+ Figure 3: The MMS for all the models. GPT2 has significantly higher MMS scores than other models from layer 1 to layer 11. This means the cluster effects are more severe in GPT2.
113
+
114
+ Table 2 makes it clear that clustering plays an important role in most layers of most models. Some models (BERT and D-BERT) have more clusters, and some have fewer (GPT, GPT2, ELMo). This dichotomy of models is also reflected in Figure 2.
115
+
116
+ Maximum-Mean-Silhouette scores are shown in Figure 3. There are significantly higher MMS values for GPT2, starting from the 2nd layer. Recall in Figure 2a, we showed that two far-away islands exist in the space and their distance dominates the variance. In Figure 3, the high MMS scores also verifies that. Another interesting observation is, for causal models GPT, GPT2 and ELMo, they all have higher MMS in their middle layers but lower MMS in the end. This means their initial layer and final layers’ embeddings tend to merge. On the contrary, the BERT and DistilBERT have increasing MMS in deeper layers, meaning that the clusters in their embeddings are becoming clearer in deeper layers.
117
+
118
+ # 3.4 ISOTROPY IN CENTERED SPACE WITHIN CLUSTERS
119
+
120
+ As suggest by Mu & Viswanath (2018), the embedding space should be measured after shifting the mean to the origin. We subtract the mean for each cluster, and calculate the adjusted $S _ { \mathrm { i n t e r } }$ . Assuming we have a total of $| C |$ clusters, let $\Phi ^ { c } ( t ) = \{ \phi _ { 1 } ^ { c } ( t ) , \phi _ { 2 } ^ { c } ( t ) , \ldots \}$ be the set of type $t$ ’s embeddings in cluster $c \in C$ , and $\phi ^ { c } ( t )$ be one random sample in $\Phi ^ { c } ( t )$ . Define the adjusted similarity:
121
+
122
+ $$
123
+ S _ { \mathrm { i n t e r } } ^ { \prime } \triangleq \mathbb { E } _ { c } \left[ \mathbb { E } _ { i \neq j } \left[ \cos \left( \bar { \phi } ^ { c } ( t _ { i } ) , \bar { \phi } ^ { c } ( t _ { j } ) \right) \right] \right] , \mathrm { w h e r e } \bar { \phi } ^ { c } ( t ) = \phi ^ { c } ( t ) - \mathbb { E } _ { \phi ^ { c } } \left[ \phi ^ { c } ( t ) \right]
124
+ $$
125
+
126
+ Here $\mathbb { E } _ { c }$ is the average over different clusters, and $\bar { \phi } ^ { c } ( t )$ is the original embedding shifted by mean (subtract the mean), where the mean is taken over the samples in cluster $c$ . Similarly we define
127
+
128
+ $$
129
+ S _ { \mathrm { i n t r a } } ^ { \prime } \triangleq \mathbb { E } _ { c } \left[ \mathbb { E } _ { i } \left[ \mathbb { E } _ { k \neq l } \left[ \cos \left( \bar { \phi } _ { k } ^ { c } ( t _ { i } ) , \bar { \phi } _ { l } ^ { c } ( t _ { i } ) \right) \right] \right] \right]
130
+ $$
131
+
132
+ ![](images/7f09db5e9e8f988b0d46680cb0baf952d389782e0b41c59625673b275260dea1.jpg)
133
+ Figure 4: $S _ { \mathrm { i n t e r } } ^ { \prime }$ (left) and $S _ { \mathrm { i n t r a } } ^ { \prime }$ (right). The adjusted $S _ { \mathrm { i n t e r } } ^ { \prime }$ are close to zero, meaning that the space is isotropic under the adjusted measure.
134
+
135
+ The Figure 4 illustrates the adjusted cosine similarities $S _ { \mathrm { i n t e r } } ^ { \prime }$ and $S _ { \mathrm { i n t r a } } ^ { \prime }$ . It reveals that:
136
+
137
+ • For the adjusted inter-type cosine (the left plot), all models are having consistent near-zero $S _ { \mathrm { i n t e r } } ^ { \prime }$ last layer of GPT2 and BERT has slightly worse isotropic behavior, nevertheless, general inter-type isotropy stays across all layers. This reveals the distinguishable embedding vectors. The general decreasing trend of intra-type cosine (the right plot) shows that the multiple instances for the same type/word, is slowly spreading over the layers. This is consistent with the un-centered intra-type cosine shown in Figure 1.
138
+
139
+ # 4 LOW-DIMENSIONAL MANIFOLDS
140
+
141
+ # 4.1 SWISS ROLL MANIFOLD OF GPT/GPT2
142
+
143
+ While BERT and D-BERT tend to distribute embeddings along more dimensions, GPT and GPT2 embed tokens in low-dimensional manifolds in their contextual embedding spaces. More specifically, we discover that most of the tokens are embedded on a spiral band, and that band gets thicker in the later layers thereafter form a Swiss Roll shaped surface.
144
+
145
+ Figure 5a and 5b show the 2-D front view of the manifold in GPT and GPT2. Figure 5a zooms into the large cluster illustrated in Figure 2a (the left one), and discards the smaller one (the right one).
146
+
147
+ ![](images/0f374686d2f6401f149cbb706c4ff88bd2d571f02766a381e7f14d7577254e33.jpg)
148
+ Figure 5: The 2-D and 3-D view of low-dimensional manifold in GPT/GPT2’s embedding spaces
149
+
150
+ 3-D plots are shown in Figure 5c and 5d to demonstrate two manifolds, a band shaped manifold and a Swiss Roll shaped manifold. These plots were computed over PTB dataset. Similar results have been obtained from WikiText-2 in supplementary. Figure 6 tracks the progression of a narrow band into a Swiss Roll. The Swiss Roll becomes taller and taller with deeper and deeper layers.
151
+
152
+ ![](images/5ea1c3c6cc4901c9f8aac1cd94ebec8f2c4d49d68c0f35ede8ffcb49d15902d6.jpg)
153
+ Figure 6: The evolution from a narrow band into a taller and taller Swiss Roll with deeper layers.
154
+
155
+ # 4.2 TOKENS IN THE SPACE
156
+
157
+ To verify the manifold structure in GPT family, we study the token embeddings in the space. It is believed that similar embeddings (e.g. the embeddings for two instances of the same word) tend to stay close together in a Euclidean space, as they should have high cosine similarities. Figure 7 drills down into the embeddings for six frequent words: three punctuation symbols (“\”, “&”, “.”) and three common words (“the”, “first”, “man”). Each panel uses four colors: three colors (black, red, green) for three words of interest, plus gold color for all the other tokens.
158
+
159
+ ![](images/337622418101df1f4f4cd1c664f43628d5aaaa243e9bb6faffd11a34f69d72a5.jpg)
160
+ Figure 7: Embeddings for symbol tokens and word tokens, in layer 3 of BERT and GPT. This shows that GPT has manifold structure, such that vectors are along the spiral band. BERT’s space is closer to a Euclidean space as similar vectors are in concentrated clusters.
161
+
162
+ As shown in Figure 7a 7b, the BERT model indeed group similar embeddings into small regions in the space (the red, black and green clusters). However, the GPT models are assigning similar embeddings along the manifold we observed before. In Figure 7c 7d, the embeddings for the tokens occupy a spiral band that almost cross the entire space. It does not comply with the Euclidean space geometry as points in such a spiral band would not have high cosine similarity. A Riemannian metric must exist, such that the manifold has larger distance between two spiral bands, but smaller distance on the band. Note that the 3-D plots are obtained using PCA, so there is no density-based nor non-linear reduction involved. Therefore, the manifold structures in GPT embedding spaces are verified.
163
+
164
+ # 4.3 WORD FREQUENCY
165
+
166
+ Another key finding is that all the models are trying to map the high frequent words/types to some specific region in the embedding spaces, rather than spreading them out to the entire space. In Figure 8, embeddings ( 8a 8c ) and corresponding word frequencies ( 8b 8d ) of GPT’s layer 8 and 9 are shown. The darker red denoted higher frequency and blue is lower frequency. The numbers at the colorbar show the number of occurrence (of a particular word / type).
167
+
168
+ ![](images/e89001d54c8ae5db3d86ed07710f60a19ab9b5d908681a00b0e1040a10fffb51.jpg)
169
+ Figure 8: Word frequency heatmap in GPT layer 8 and 9. Red is high frequency, blue is low. High frequency words are at the front end of the Swiss Roll, while low frequency words at the other end. ( 8b 8d are drawn using matplotlib.tricontourf, so the ring at 8b’s bottom should not be closed.)
170
+
171
+ The Figure $\operatorname { 8 a 8 c }$ are after PCA, and selecting the two most significant dimensions. From GPT layer 8 to layer 9, as the Swiss Roll becomes taller, more variance is accounted for along the height of the Swiss Roll. Thus, the perspective switches from a front view to a side view when moving to layer 9.
172
+
173
+ Figures 8b and 8d show that the most frequent words appear at the head of the Swiss Roll, followed by bands of less and less frequent words. The least frequent words appear at the far end of the Swiss Roll. This pattern suggests the model distinguishes more frequent from less frequent words. As the model finds more and more rare words, it appends them at the end of the Swiss Roll.
174
+
175
+ # 4.4 MANIFOLD LOCAL INTRINSIC DIMENSION
176
+
177
+ Although the original space dimension is 768 (1024 for ELMo), the manifold we observed has a lower intrinsic dimension. It means the data point on the manifold has fewer degrees of freedom to move around. For example, on a Swiss Roll in a 3-D space, any point can only have 2-D freedom thus the intrinsic dimension is only 2. A recent research on the intrinsic dimension for deep networks could be found at (Ansuini et al., 2019). In this section, we adopt the Local Intrinsic Dimension (LID) that estimates dimension locally with respect to a reference point. LID is introduced by Houle (2013), and being used in deep learning model characterization recently, e.g. (Ma et al., 2018). The LID is often derived using expansion models (Houle et al., 2012), which tries to obtain the local dimension in the vicinity of a reference point from the growth (expansion) characteristics. To illustrate this, we borrow an example from Ma et al. (2018). Let $\gamma$ be the radius of an $m$ -D ball in the Euclidean space, denote its volume as $\nu$ , then the volume’s growth rate is proportional to $\gamma ^ { m }$ , i.e. $\nu _ { 2 } / \nu _ { 1 } = ( \gamma _ { 2 } / \bar { \gamma _ { 1 } } ) ^ { m }$ , from which we can infer the local dimension $\tilde { m }$ by $\tilde { m } = \log ( \nu _ { 2 } / \nu _ { 1 } ) / \log ( \gamma _ { 2 } / \gamma _ { 1 } )$ .
178
+
179
+ Accurately computing LID is a hard problem which requires a tremendous amount of data samples and enough density around the reference point. So fewer-sample estimate of LID is being studied in the past decade. One of the efficient estimation is proposed by Amsaleg et al. (2015). This technique relies on $K$ nearest neighbor search ( $K$ -NN). For a reference point $p$ , denote the set of its $K$ nearest neighbor points as $\Psi _ { p } = \{ q _ { 1 } , \dots , q _ { K } \}$ . Then the estimate of LID is computed as: $\begin{array} { r } { \mathbf { L } \mathbf { \tilde { I } } \mathbf { D } ( p ) = - \left( \frac { 1 } { K } \sum _ { i = 1 } ^ { K } \log \frac { \mathrm { d i s t } ( p , q _ { i } ) } { \operatorname* { m a x } _ { i } ( \mathrm { d i s t } ( p , q _ { i } ) ) } \right) ^ { - 1 } } \end{array}$ , where the term inside log is the ratio of distance between $p$ to its neighbor, over the maximum distance among them. In our analysis, we use an efficient nearest neighbor computation package FAISS (Johnson et al., 2017) (https://github.com/facebookresearch/faiss) to perform the $K$ -NN. We set $K \ : = \ : 1 0 0$ , the same as in (Aumuller & Ceccarello, 2019). ¨ $\ell _ { 2 }$ distance is used, i.e. $\mathrm { d i s t } ( p , q ) = \| p - q \| _ { 2 }$ . We report the mean LID over all the samples $p$ , as $\mathbb { E } _ { p } [ \mathrm { L } \tilde { \mathrm { I D } } ( p ) ]$ , in Figure 9.
180
+
181
+ ![](images/05827c4a9a84e3e5c58f5e2e6d054af54762972c5d545b9fc40c214024bd9873.jpg)
182
+ Figure 9: The average LID using Euclidean distance. ELMo’s original embdding dimension is 1024, larger than other models’ 768.
183
+
184
+ Table 3: A comparison of LIDs (using cosine similarity) among contextual and static embedding spaces.
185
+
186
+ <table><tr><td></td><td>Model</td><td>n</td><td>m</td><td>avg LID</td></tr><tr><td>Contxt Embeds</td><td>BERT D-BERT GPT GPT2</td><td>1.19 M 1.19 M 0.96 M 1.09 M</td><td>768 768 768 768</td><td>5.6 7.3 6.8 7.0</td></tr><tr><td>Static Embeds</td><td>ELMo GloVe GloVe-2M GNEWS</td><td>0.88 M 1.18 M 2.20M 3.00 M</td><td>1024 100 300 300</td><td>9.1 18.0 26.1 21.1</td></tr></table>
187
+
188
+ As shown in Figure 9, the mean LIDs for all the models in all the layers are below 12. The small mean LID values reveals that the manifold’s intrinsic dimension is relatively low, especially considering that this is a 768-D (1024 for ELMo) embedding space. Since ELMo’s 1024-D is larger than other models 768-D dimension, its LID is also slightly higher than other models as shown in the figure. The existence of a low-dimensional embedding is also suggested in (Reif et al., 2019) when they study the BERT embedding geometry.
189
+
190
+ In all the contextual embedding layers, there is a clear trend of increasing LID values. In Figure 9, we can also see a nearly-linear relationship between layer id and LID. With deeper and deeper layers in the net, the manifold is diffusing and slowly loses concentration. This would lead to data samples spreading, consistent with Figure 4 (recall that intra-type cosines decrease with depth). Note that as layer goes deeper, each token embedding is collecting information from context by adding their embeddings (and non-linear transforms concatenated). This could explain the spreading $/$ expanding of the local subspace, and therefore the LID increases in deeper layers.
191
+
192
+ Table 3 compares LIDs for static and contextual embeddings. The table reports results for three static embeddings: GloVe / GloVe-2M (Pennington et al., 2014), and GNEWS (Mikolov et al., 2013a). Results for static embedding LIDs are based on Aumuller & Ceccarello (2019). Following Aum ¨ uller ¨ & Ceccarello (2019), we use cosine distance here: $\begin{array} { r } { \mathbf { d i s t } ^ { \prime } ( p , q ) = 1 - \cos ( p , q ) = 1 - \frac { \langle p , q \rangle } { \| p \| _ { 2 } \| q \| _ { 2 } } } \end{array}$ Note that estimates for LID using cosines are very close to the estimates using $\ell _ { 2 }$ distances. Table 3 reports averages of LIDs over each model’s layers. Even though GloVe (Pennington et al., 2014) in Table 3 has much fewer embedding dimensions (100-D compared with BERT’s 768-D), the LID is still higher than all of the contextual embedding models. From the table we can find that static embedding spaces generally have higher LID than the contextual ones. This means that the data points are more isotropic in the static embeddings, possibly due to their large vocabularies.
193
+
194
+ # 5 CONCLUSIONS AND FUTURE WORK
195
+
196
+ Previous works have reported the strong anisotropy in deep LMs, which is hard to explain the superior performance achieved by these models. We suggest that the anisotropy is a global view, being largely misled by distinct clusters resided in the space. Our analysis show that it is more constructive to isolate and transform the space to measure the isotropy. From this view, within the clusters, the spaces of different models all have nearly perfect isotropy that could explain the large model capacity. In addition, we investigate the space geometry for different models. Our visualization demonstrates a low-dimensional Swiss Roll manifold for GPT and GPT2 embeddings, that has not been reported before. The tokens and word frequencies are presented to qualitatively show the manifold structure. We propose to use the approximate LID to quantitatively measure the local subspace, and compared with static embedding spaces. The results show smaller LID values for the contextual embedding models, which can be seen as a local anisotropy in the space. We hope this line of research could bring a comprehensive geometric view of contextual embedding space, and gain insights on how the embeddings are affected by attention, compression, multilingualism, etc. Therefore the model performance could be further improved based on the findings.
197
+
198
+ # REFERENCES
199
+
200
+ Laurent Amsaleg, Oussama Chelly, Teddy Furon, Stephane Girard, Michael E Houle, Ken-ichi ´ Kawarabayashi, and Michael Nett. Estimating local intrinsic dimensionality. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 29–38, 2015.
201
+
202
+ Alessio Ansuini, Alessandro Laio, Jakob H Macke, and Davide Zoccolan. Intrinsic dimension of data representations in deep neural networks. In Advances in Neural Information Processing Systems, pp. 6111–6122, 2019.
203
+
204
+ Martin Aumuller and Matteo Ceccarello. The role of local intrinsic dimensionality in benchmarking ¨ nearest neighbor search. In International Conference on Similarity Search and Applications, pp. 113–127. Springer, 2019.
205
+
206
+ Alexis Conneau and Guillaume Lample. Cross-lingual language model pretraining. In Advances in Neural Information Processing Systems, pp. 7059–7069, 2019.
207
+
208
+ David L Davies and Donald W Bouldin. A cluster separation measure. IEEE transactions on pattern analysis and machine intelligence, (2):224–227, 1979.
209
+
210
+ David Demeter, Gregory Kimmel, and Doug Downey. Stolen probability: A structural weakness of neural language models. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 2020.
211
+
212
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
213
+
214
+ Martin Ester, Hans-Peter Kriegel, Jorg Sander, Xiaowei Xu, et al. A density-based algorithm for ¨ discovering clusters in large spatial databases with noise. In Kdd, volume 96, pp. 226–231, 1996.
215
+
216
+ Kawin Ethayarajh. How contextual are contextualized word representations? comparing the geometry of bert, elmo, and gpt-2 embeddings. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 55–65, 2019.
217
+
218
+ Jun Gao, Di He, Xu Tan, Tao Qin, Liwei Wang, and Tieyan Liu. Representation degeneration problem in training natural language generation models. In International Conference on Learning Representations, 2019.
219
+
220
+ John Hewitt and Christopher D Manning. A structural probe for finding syntax in word representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4129–4138, 2019.
221
+
222
+ Michael E Houle. Dimensionality, discriminability, density and distance distributions. In 2013 IEEE 13th International Conference on Data Mining Workshops, pp. 468–473. IEEE, 2013.
223
+
224
+ Michael E Houle, Hisashi Kashima, and Michael Nett. Generalized expansion dimension. In 2012 IEEE 12th International Conference on Data Mining Workshops, pp. 587–594. IEEE, 2012.
225
+
226
+ Jiaji Huang, Xingyu Cai, and Kenneth Church. Improving bilingual lexicon induction for low frequency words. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1310–1314, 2020.
227
+
228
+ Jeff Johnson, Matthijs Douze, and Herve J ´ egou. Billion-scale similarity search with gpus. ´ arXiv preprint arXiv:1702.08734, 2017.
229
+
230
+ Tianlin Liu, Lyle Ungar, and Joao Sedoc. Unsupervised post-processing of word vectors via conceptor negation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 6778– 6785, 2019.
231
+
232
+ Xingjun Ma, Bo Li, Yisen Wang, Sarah M Erfani, Sudanthi Wijewickrema, Grant Schoenebeck, Dawn Song, Michael E Houle, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In International Conference on Learning Representations, 2018.
233
+
234
+ Mitchell Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. Building a large annotated corpus of english: The penn treebank. 1993.
235
+
236
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
237
+
238
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013a.
239
+
240
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013b.
241
+
242
+ David Mimno and Laure Thompson. The strange geometry of skip-gram with negative sampling. In Empirical Methods in Natural Language Processing, 2017.
243
+
244
+ Jiaqi Mu and Pramod Viswanath. All-but-the-top: Simple and effective post-processing for word representations. In 6th International Conference on Learning Representations, ICLR 2018, 2018.
245
+
246
+ Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
247
+
248
+ Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. arXiv preprint arXiv:1802.05365, 2018.
249
+
250
+ Steven T. Piantadosi. Zipf’s word frequency law in natural language: A critical review and future directions. Psychonomic bulletin & review, 21(5):1112–1130, 2014.
251
+
252
+ Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training, 2018.
253
+
254
+ Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8):9, 2019.
255
+
256
+ Emily Reif, Ann Yuan, Martin Wattenberg, Fernanda B Viegas, Andy Coenen, Adam Pearce, and Been Kim. Visualizing and measuring the geometry of bert. In Advances in Neural Information Processing Systems, pp. 8594–8603, 2019.
257
+
258
+ Peter J Rousseeuw. Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. Journal of computational and applied mathematics, 20:53–65, 1987.
259
+
260
+ Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108, 2019.
261
+
262
+ Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Xuyi Chen, Han Zhang, Xin Tian, Danxiang Zhu, Hao Tian, and Hua Wu. Ernie: Enhanced representation through knowledge integration. arXiv preprint arXiv:1904.09223, 2019.
263
+
264
+ # SUPPLEMENTARY: FULL RESULTS ON PTB AND WIKITEXT-2 DATASETS
265
+
266
+ A RESULTS ON WIKITEXT-2 DATASET
267
+
268
+ A.1 THE UNADJUSTED INTER AND INTRA COSINE SIMILARITY
269
+
270
+ Note that ”dist” in the following legends represents DistilBERT model.
271
+
272
+ ![](images/d3b31b73869877931ca23d5335d8e559b86505992ae72bab6d01eea5408d73db.jpg)
273
+ (a) Inter-type cosine similarity. As layers goes deeper, inter-type cosine goes higher. All models’ last layer behaves slightly differently.
274
+
275
+ ![](images/fd112fcbdd7851f1e89a735db24e549230ca05a99c4286c76d3969c383abcae9.jpg)
276
+ (b) Intra-type cosine similarity. The intratype cosine decreases showing the same type’s embedding instances are spreading in deeper layers.
277
+
278
+ # A.2 THE CENTER-SHIFTED AND CLUSTERED COSINE SIMILARITY
279
+
280
+ The inter-type and intra-type cosines are adjusted using the proposed center-shifting and clustering methods. Now it reflects the isotropy in almost all layers in all models.
281
+
282
+ ![](images/27d062567129ed55049d928946d8298204602844f53ff6425e780483f68710d6.jpg)
283
+ (a) The clustered inter-type cosine (center shifted). It shows strong isotropy as the average cosine between different types is close to 0 across all layers in all models. The GPT2’s last layer still has slighly higher cosine compared with others.
284
+ (b) The clustered intra-type cosine (center shifted). The intra-type cosines are much more consistent than the unadjusted counterpart (the cosine decreases nearly monotonically as layers goes deeper).
285
+
286
+ # A.3 THE APPROXIMATE LOCAL INTRINSIC DIMENSIONS
287
+
288
+ ![](images/9d2d424665076507dee26cec957ddc3a85a28d6236f015a5454e21a850ca6376.jpg)
289
+ Figure 12: Local Intrinsic Dimensions. The LID increases as layer goes deeper, reflecting embeddings spreading out in all models’ deeper layers (becoming more locally isotropic).
290
+
291
+ # B FULL VISUALIZATION - PTB DATASET
292
+
293
+ # B.1 BERT
294
+
295
+ ![](images/2e4eaef7513b51bb72fdd99fac9c371d18f71af1418a19c10e5c3bdd8fe2a32c.jpg)
296
+
297
+ # B.2 DISTILBERT AND ELMO
298
+
299
+ ![](images/f5ab49376c5293ae84918964f8ec0d3832317d6dda68fbb0fb601df09cae06a8.jpg)
300
+
301
+ # B.3 GPT
302
+
303
+ ![](images/658c078f041c7f147c5d6a9c00e6fc8005b4f72b6aa37c5876f641601e8ed051.jpg)
304
+
305
+ # B.4 GPT2
306
+
307
+ ![](images/10dc438ddf4b4974ea74c1c03f1afb6172c2fa1415440f1b0694e3657180c496.jpg)
308
+
309
+ # C FULL VISUALIZATION - WIKITEXT-2 DATASET
310
+
311
+ # C.1 BERT
312
+
313
+ ![](images/494ce7bd1b5153c302f3e3bf4176a80030af640fe34fcb735798932f23eb4ef4.jpg)
314
+
315
+ # C.3 GPT
316
+
317
+ ![](images/d3536c57f6da080aaec22a26a2c68bcd539e11588c0e371e08dd478c37f7686c.jpg)
318
+
319
+ # C.4 GPT2
320
+
321
+ ![](images/71c302876402c4800c25f59fac14ac2d2292172d999f401b2fdcf9d5590b1d87.jpg)
322
+
323
+ # D ADDITIONAL STUDIES
324
+
325
+ # D.1 K-MEANS CLUSTERING ACCURACY
326
+
327
+ We use K-Means to perform clustering, which raises two issues here. First, K-Means is very sensitive to initialization, different initialization could leads to different clustering results. However, note that in our task, we are not seeking for optimal clustering. Sub-optimal, e.g. treating two overlapping clusters as a big one, is totally fine.
328
+
329
+ To illustrate this, we add another metric, Davies-Boulding (DB) index (Davies & Bouldin, 1979), to show that slightly different $K$ is fine. This DB index is the average similarity between each cluster and its closest cluster. The value closer to 0, the better clustering is done. We still search in [2, 15], and choose $K$ with the minimum DB index (MDB). MDB sometimes gives different $K$ than that by MMS metric. If MDB is $> 4$ , we discard MDB and treat all data as one single cluster. We provide the comparison of selecting $K$ using MMS (left) and MDB (right) here in Table 4. We can see that for less-distinct clusters, e.g. in BERT, two metric could yield different $K$ values, due to merging or splitting. For very separated clusters, e.g. in GPT2, the two metric agrees. We plot the cosines using MDB’s $K$ values, in Figure 21. It is similar to Figure 4, which uses slightly different $K$ from MMS. The values are close to 0 indicating isotropy in the center-shifted clusters. This means that the procedure to reveal isotropy, is not sensitive to $K$ in K-Means.
330
+
331
+ Table 4: $K$ by MMS(left) vs MDB(right)
332
+
333
+ <table><tr><td rowspan=1 colspan=1>Layer</td><td rowspan=1 colspan=2>BERT D-BERT</td><td rowspan=1 colspan=3>GPT GPT2ELMo</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7 9</td><td rowspan=1 colspan=1>18</td><td rowspan=1 colspan=1>25</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>1015</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>412</td><td rowspan=1 colspan=1>155</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td><td rowspan=10 colspan=1></td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>415</td><td rowspan=1 colspan=1>1411</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>314</td><td rowspan=1 colspan=1>102</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>1413</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>614</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>215</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>27</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>116</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>110</td><td rowspan=1 colspan=1>22</td></tr><tr><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>93</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>22</td></tr></table>
334
+
335
+ ![](images/c74b9f11688be8777c2d718b7ae66e0014c01a49d8b1ef2041c8c50ca7353255.jpg)
336
+ Figure 21: The adjusted inter-type cosines, computed using $K$ from the criteria of minimizing DB index. The values are still close to 0.
337
+
338
+ Another issue is that K-Means implicitly assumes convex clusters, which often does not hold. In fact, it assumes isotropic convex clusters because we simply use $\ell _ { 2 }$ distance. However, density-based clustering such as DBSCAN, is too slow thus cannot handle these datasets (million level). This is a trade-off to use K-Means, and empirical results above show that it is efficient and very useful to distinguish separated clusters.
339
+
340
+ # D.2 CLUSTERS AND WORDS
341
+
342
+ We study the tokens and their relationship to the clusters existed in the contextual embedding spaces. We picked some representative tokens to see how they are distributed. We also study the very unique small cluster in GPT2, and how it connects to the main cluster that is far away. We obtain the following observations:
343
+
344
+ • For BERT, high frequent words (e.g. ’the’) stays at one side of the main big cluster, while low-frequent words are at the other side.
345
+ • For BERT, punctuation are random but occupy distinct islands: ’!’ is a small cluster close to the main island; ’‘’ and ’are distinct islands far away; ’?’ and some others are on the main ´ cluster.
346
+ • For GPT2, almost all single letters (a to z) and mid-to-high frequent would occupy both the left (big) and right (small) islands.
347
+ • For GPT2, we didn’t find any token that only appears in the right small island. It seems the token in the small island always has mirrors in the left big cluster.
348
+
349
+ • For word types, e.g. noun, verb, etc, we didn’t find a clear pattern. We suspect word frequency affects more than categories.
350
+
351
+ We provide a few examples. Figure 22, 23 show BERT layer 3, Figure 24, 25 show GPT2 layer 3.
352
+
353
+ ![](images/aa6919e04668010698db22808030aee83973b3ffbe8e31660f5f094e7c307d5b.jpg)
354
+ Figure 22: BERT Layer 3 Punctuation
355
+
356
+ ![](images/e9503c3fe8b70d306c1306c53809c6e81e2a7c7e621f9de2a1515cde4c47d270.jpg)
357
+ Figure 23: BERT Layer 3 Words
358
+
359
+ (a) Frequent words and infrequent words are on the main cluster, but at two sides. An evidence that words are distributed based on the frequency.
360
+
361
+ ![](images/5a26b55f9580f90ab89586cd6bef05c01ca251fb8c049898500383a8088fd153.jpg)
362
+ Figure 24: GPT2 Layer 3 Punctuation
363
+
364
+ Based on these observations, we have concluded that frequency plays an important role in the token distributions. High frequent words and low frequent words are often taking opposite sides of the space. This is also revealed in Section 4.3. We are yet not clear what causes this, but we suspect it is related to the training process. During training, high frequent words are updated more times. Also, since they are used in many many different context, they play a role as some shared embedding across context. Similar to the XLM model, the shared embedding are often more isotropic and more concentrated. However, this is early hypothesis and due to future research.
365
+
366
+ ![](images/61bcc139cf80ad60418f5affb2f714d3232f2857d1ad86733ec3149d77f18162.jpg)
367
+ Figure 25: GPT2 Layer 3 Words
368
+
369
+ (a) Mid-to-high frequent words often occupy both distinct islands (notice that the right small cluster is also colored), where a roll-shaped alignment can be observed on the larger island.
370
+
371
+ # D.3 EMBEDDING OF TRANSLATION LANGUAGE MODEL XLM
372
+
373
+ We also perform analysis and visualization on the XLM model (Conneau & Lample, 2019). BERT is mask language model (MLM), GPT is causal language model (CLM), and XLM is translation language model (TLM). We provide visualization of XLM’s 6 layers embeddings here. This is on WikiText-2 dataset.
374
+
375
+ ![](images/806dbebb04a4975490ba49bdc803f110776f93f63fded2c8151eadfdb3f3efcb.jpg)
376
+
377
+ We try to establish a systematic view of embedding geometry for different types of deep LMs. We have hypothesis and very preliminary results here. BERT (an MLM) show spreading clusters, but not very distinct. GPT (an CLM) shows highly separated clusters. XLM (an TLM) does not demonstrate clustering effect, and the embedding are centered.
378
+
379
+ One possible explanation for XLM’s behavior, is that this is a multi-lingual model, and the embedding space have to be shared between languages. This is forced during the training process of this translation language models. In that case, a single cluster residing in the center, would be a good shared embedding across languages. However, this is just hypothesis and requires further study on more models.
380
+
381
+ # D.4 LID ESTIMATION ROBUSTNESS
382
+
383
+ We follow (Aumuller & Ceccarello, 2019) to choose ¨ $K = 1 0 0$ for K-Nearest-Neighbor (K-NN) search for LID approximation, and make a direct comparison with them. It raises the concern that 100 samples might not be enough to effectively estimate the local dimension. We conduct additional experiments here to select $K = 2 0 0$ , 500, 1000, and demonstrate that the LID estimation is robust. They provide similar LID estimates across all layers, in all the models. Though using more samples indeed obtain very slightly higher values of LID (in Figure 27, we can see a little bit up-shifting from left-most plot to the right-most plot). This is expected, as less number of samples often tends to under-estimate, and over-smoothing of LID. Nevertheless, the LID is still much smaller than the original dimension 768, so using 100 samples is a good trade-off to efficiently approximate LID.
384
+
385
+ ![](images/a5cd6892ab66d2515b9ffc0312780f17a2e20d75b9fb0caf49ca9208b01539d5.jpg)
386
+ Figure 27: LID estimate using different number of samples for nearest neighbor search.
387
+
388
+ As layer goes deeper, the LID increases. In other words, the local space dimension expands, at a cost of losing density. For example, the spiral band (1-D) in GPT’s front layer, becomes a Swiss Roll (2-D), and the roll surface get thickness (3-D), as layer increases. But we are not clear about the reasons yet, only suspect that data is spreading as more context info is added in later layers (the embedding for a token in deeper layer is based on summation of all embeddings in the context, due to attention). This is due to future study.
389
+
390
+ # D.5 ABLATION ANALYSIS ON CLUSTERING
391
+
392
+ To better study the clustering effect, we conduct experiment that computes the inter-type cosines, on clusterd-only embeddings and clustered plus center-shifted embeddings. The following figure shows GPT2’s cosine on original embeddings without adjustment (blue), the clustering-only embeddings (orange), and full (clustering $^ +$ centering) adjustment (green).
393
+
394
+ ![](images/3dfdde2bfa21ba167cb9517485ea0e877cedf95bdaa8fc62274a36eb7a729fa2.jpg)
395
+
396
+ In the original embedding without adjustment, we see inconsistent behavior in the last layers. However, if we perform clustering and measure the $S _ { \mathrm { i n t e r } }$ within the clusters (orange), we can see much more consistent behavior across layers (more flat curve). This indicates that the clustering effect exists in all the layers, which is also verified by layer-wise visualization in Appendix B.4 and C.4.
397
+
398
+ Meanwhile, the large values of cosines in the orange curve are expected. Now cosines are only computed within clusters, where those clusters are not at the origin. The higher values here, the more concentrated clusters are. These indicate that after clustering, the subspace within each cluster are now consistent, across all the layers. Finally, we shift those clusters to the origin, and get the green curve (values near 0), indicating isotropic cluster shapes.
399
+
400
+ # D.6 POSITIONAL ENCODING IN THE GEOMETRY
401
+
402
+ It is very interesting to investigate whether the positional encoding affects the geometry in the contextual embedding spaces. In particular, since GPT/GPT2 have a unique Swiss-Roll shaped manifold, that is not observed in other models, we look at how the manifold is related to the positional encoding in GPT2. Note that we truncate the whole PTB text into 512-length segments, and feed those segments into the models. The positional encoding is applied to each 512-length segment. We pick a few punctuation and words, and draw them in the space labeled by their relative positions in their corresponding segments. The position ID ranges from 0 to 511.
403
+
404
+ ![](images/4d8857bcef41a545cb24d43fde5ecda6c5151e4852d99c5f604a03bc29255186.jpg)
405
+ Figure 29: GPT2 Layer 3 Punctuation. The position ID is monotonically increasing along the manifold.
406
+
407
+ ![](images/b7340eac72344ac4942d9c8ade5da4b2fd722cdc2dc7ef6bf94ffabee7f3a5f6.jpg)
408
+ Figure 30: GPT2 Layer 3 Words. The position ID is monotonically increasing along the manifold.
409
+
410
+ We select 4 punctuation, “, ’ & $\$ 7$ , and four words “the first super man”, draw them in Figure 29 30. The color bar on the side indicates the relative position ID in their segment. Darker color is smaller IDs and lighter color is bigger IDs. Clearly, for both punctuation and words, the center of the Swiss-Roll corresponds to lower position IDs, where the other end of the manifold are high IDs. Also, the distribution is monotonic. From the center to the far end, the position ID increases. This suggests that the positional encoding is indeed highly correlated with the Swiss-Roll manifold for GPT models. The reason causing this is deferred to future study.
411
+
412
+ Note that this finding is consistent with that reported in (Reif et al., 2019), where they found that positions of the token matters (tokens take all neighbors’ information indiscriminately, rather than only attending up to their semantic boundaries) in the BERT embedding geometry. We also study the context/semantic influence of the embeddings in the next subsection.
413
+
414
+ # D.7 CONTEXT IN THE GEOMETRY
415
+
416
+ We also look at how the context information influences the geometry. It is more sophisticated to analyze the context, so we pick a few examples to look at their context and corresponding positions in the embedding spaces. In particular, we choose the common polysemous words “like” and “interest”, as two examples. The word “like” often has two different use cases: 1. favor; 2. similar to. There are also some fixed phrases such as “would like”. The word “interest” has two senses as well: 1. like to do something; 2. the money sense.
417
+
418
+ We identified the target word token (“like” or “interest”), and then print out 5 tokens before and after the target, as the context for illustration in Figure 31. From the figure we are not able to identify a clear pattern that word sense is correlated with the geometric space. However, this is only inspected by manually checking a few samples. A full statistical analysis should be carried out in the future work.
419
+
420
+ ![](images/52c0ef7a1a1af05fee8d2a5073039265f2911d975831698d802a0a2d86d83e76.jpg)
421
+ Figure 31: The context and positions in the embedding space.
parse/train/xYGNO86OWDH/xYGNO86OWDH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/xYGNO86OWDH/xYGNO86OWDH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/xYGNO86OWDH/xYGNO86OWDH_model.json ADDED
The diff for this file is too large to render. See raw diff